Skip to main content

Module: data

Functions

subscribe

subscribe(id, callback, options?): unknown

Methods used by extension developers to get and update data

Parameters

NameType
idstring
callback(data: { id: string ; data: unknown }) => void | Promise<unknown>
options?Object
options.selectors?string[]

Returns

unknown

Defined in

packages/admin-sdk/src/data/index.ts:10


get

get(messageOptions): Promise<unknown>

Parameters

NameType
messageOptionsMessageDataType<"datasetGet">

Returns

Promise<unknown>

Defined in

packages/admin-sdk/src/channel.ts:446


update

update(messageOptions): Promise<unknown>

Parameters

NameType
messageOptionsMessageDataType<"datasetUpdate">

Returns

Promise<unknown>

Defined in

packages/admin-sdk/src/channel.ts:446


register

register(data): Promise<void>

Internal methods used by the administration

Parameters

NameType
dataOmit<datasetRegistration, "responseType">

Returns

Promise<void>

Defined in

packages/admin-sdk/src/channel.ts:566


updateSubscriber

updateSubscriber(id, callback, options?): unknown

Parameters

NameType
idstring
callback(data: { id: string ; data: unknown }) => void | Promise<unknown>
options?Object
options.selectors?string[]

Returns

unknown

Defined in

packages/admin-sdk/src/data/index.ts:10


handleGet

handleGet(method): () => void

Parameters

NameType
method(data: MessageDataType<"datasetGet">, additionalInformation: { _event_: MessageEvent<string> }) => unknown

Returns

fn

▸ (): void

Returns

void

The return value is a cancel function to stop listening to the events

Defined in

packages/admin-sdk/src/channel.ts:464

Type Aliases

datasetRegistration

Ƭ datasetRegistration: Object

Type declaration

NameType
responseType{ id: string ; data: unknown }
responseType.idstring
responseType.dataunknown
idstring
dataunknown

Defined in

packages/admin-sdk/src/data/index.ts:69


datasetSubscribe

Ƭ datasetSubscribe: Object

Type declaration

NameType
responseTypeunknown
idstring
dataunknown
selectors?string[]

Defined in

packages/admin-sdk/src/data/index.ts:80


datasetSubscribeRegistration

Ƭ datasetSubscribeRegistration: Object

Will be used for giving the admin the information that a window wants to subscribe to a dataset

Type declaration

NameType
responseTypeunknown
idstring
selectors?string[]

Defined in

packages/admin-sdk/src/data/index.ts:94


datasetUpdate

Ƭ datasetUpdate: Object

Type declaration

NameType
responseTypeunknown
idstring
dataunknown

Defined in

packages/admin-sdk/src/data/index.ts:102


datasetGet

Ƭ datasetGet: Object

Type declaration

NameType
responseTypeunknown
idstring
data?unknown
selectors?string[]

Defined in

packages/admin-sdk/src/data/index.ts:110

Variables

Classes

Const Classes: Object

Type declaration

NameType
Criteriatypeof default
Entitytypeof default
EntityCollectiontypeof default

Defined in

packages/admin-sdk/src/data/index.ts:120

References

repository

Renames and re-exports default