@datapos/datapos-shared 0.3.25 → 0.3.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,6 +3,10 @@ export interface Context {
|
|
|
3
3
|
readonly config: ContextConfig;
|
|
4
4
|
listFocuses(settings?: ContextFocusConfigListSettings): Promise<ContextFocusConfigListResult>;
|
|
5
5
|
}
|
|
6
|
+
export interface ContextCallbackData {
|
|
7
|
+
typeId: string;
|
|
8
|
+
properties: Record<string, unknown>;
|
|
9
|
+
}
|
|
6
10
|
export interface ContextConfig extends ComponentConfig {
|
|
7
11
|
focuses: ContextFocusConfig[];
|
|
8
12
|
version: string;
|
|
@@ -15,6 +19,11 @@ export type LocaleContextFocusConfig = Omit<ContextFocusConfig, 'label' | 'descr
|
|
|
15
19
|
label: string;
|
|
16
20
|
description: string;
|
|
17
21
|
};
|
|
22
|
+
export interface ContextOperationSettings {
|
|
23
|
+
accountId?: string;
|
|
24
|
+
appCheckToken?: string;
|
|
25
|
+
sessionAccessToken?: string;
|
|
26
|
+
}
|
|
18
27
|
export interface ContextModelConfig extends ComponentConfig {
|
|
19
28
|
diagramURL?: string;
|
|
20
29
|
dimensionGroupConfigs: ContextDimensionGroupConfig[];
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { ConnectionConfig } from './connection';
|
|
2
2
|
import { AuditContentResult, ConnectorCallbackData, ConnectorOperationSettings, InitialiseSettings, ListResult, RetrieveResult } from './connector';
|
|
3
|
+
import { ContextCallbackData, ContextConfig, ContextOperationSettings } from './context';
|
|
3
4
|
import { DataViewPreviewConfig, EncodingConfig } from './dataView';
|
|
4
5
|
type InitialiseEngine = (settings: InitialiseSettings) => Promise<void>;
|
|
5
|
-
type ProcessConnectorRequest = (id: string, connectionConfig: ConnectionConfig, settings: ConnectorOperationSettings, callback?: ((callbackData:
|
|
6
|
+
type ProcessConnectorRequest = (id: string, connectionConfig: ConnectionConfig, settings: ConnectorOperationSettings, callback?: ((callbackData: ContextCallbackData) => void) | undefined) => Promise<ContextInterfaceResult>;
|
|
7
|
+
export type ContextInterfaceResult = AuditContentResult | DataViewPreviewConfig | ListResult | RetrieveResult;
|
|
8
|
+
type ProcessContextRequest = (id: string, contextConfig: ContextConfig, settings: ContextOperationSettings, callback?: ((callbackData: ConnectorCallbackData) => void) | undefined) => Promise<ConnectorInterfaceResult>;
|
|
6
9
|
export type ConnectorInterfaceResult = AuditContentResult | DataViewPreviewConfig | ListResult | RetrieveResult;
|
|
7
10
|
export interface Engine {
|
|
8
11
|
getEncodingConfigs: (localeId: string) => EncodingConfig[];
|
|
@@ -11,5 +14,6 @@ export interface Engine {
|
|
|
11
14
|
export interface EngineWorkerInterface {
|
|
12
15
|
initialise: InitialiseEngine;
|
|
13
16
|
processConnectorRequest: ProcessConnectorRequest;
|
|
17
|
+
processContextRequest: ProcessContextRequest;
|
|
14
18
|
}
|
|
15
19
|
export {};
|
|
@@ -18,7 +18,7 @@ export type { Context, ContextConfig, ContextFocusConfig, ContextFocusConfigList
|
|
|
18
18
|
export type { ContextEntityConfig, ContextEntityEventConfig, ContextHierarchyConfig, ContextViewConfig, Event } from './context';
|
|
19
19
|
export type { DataFormatId, EncodingConfig, RecordDelimiterId, ValueDelimiterId } from './dataView';
|
|
20
20
|
export type { DataViewConfig, DataViewContentAuditConfig, DataViewPreviewConfig, DataViewRelationshipsAuditConfig, ParsedValue } from './dataView';
|
|
21
|
-
export type { ConnectorInterfaceResult, Engine, EngineWorkerInterface } from './engine';
|
|
21
|
+
export type { ConnectorInterfaceResult, ContextInterfaceResult, Engine, EngineWorkerInterface } from './engine';
|
|
22
22
|
export { APIError, ApplicationError, EngineError, FetchError, OperationalError, VueError, WindowRuntimeError, WindowPromiseRejectionError } from './errors';
|
|
23
23
|
export type { SerialisedError } from './errors';
|
|
24
24
|
export type { EventQueryConfig } from './eventQuery';
|