@datapos/datapos-shared 0.3.259 → 0.3.260
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.
|
@@ -7,11 +7,18 @@ export interface EngineConfig extends ModuleConfig {
|
|
|
7
7
|
typeId: 'engine';
|
|
8
8
|
}
|
|
9
9
|
type InitialiseEngine = (settings: InitialiseSettings) => Promise<void>;
|
|
10
|
-
type ProcessConnectorRequest = (id: string, connectionConfig: ConnectionConfig, settings: ConnectorOperationSettings, callback?: ((callbackData: ContextCallbackData) => void) | undefined) => Promise<
|
|
11
|
-
export type ContextInterfaceResult = AuditContentResult | DataViewPreviewConfig | ListResult | RetrieveResult;
|
|
12
|
-
type ProcessContextRequest = (id: string, contextConfig: ContextConfig, settings: ContextOperationSettings, callback?: ((callbackData: ConnectorCallbackData) => void) | undefined) => Promise<ConnectorInterfaceResult>;
|
|
10
|
+
type ProcessConnectorRequest = (id: string, connectionConfig: ConnectionConfig, settings: ConnectorOperationSettings, callback?: ((callbackData: ContextCallbackData) => void) | undefined) => Promise<ConnectorInterfaceResult>;
|
|
13
11
|
export type ConnectorInterfaceResult = AuditContentResult | DataViewPreviewConfig | ListResult | RetrieveResult;
|
|
14
|
-
type
|
|
12
|
+
type ProcessContextRequest = (id: string, contextConfig: ContextConfig, settings: ContextOperationSettings, callback?: ((callbackData: ConnectorCallbackData) => void) | undefined) => Promise<ContextInterfaceResult>;
|
|
13
|
+
export type ContextInterfaceResult = AuditContentResult | DataViewPreviewConfig | ListResult | RetrieveResult;
|
|
14
|
+
type ProcessTestRequest = (settings: TestSettings) => Promise<Record<string, unknown>>;
|
|
15
|
+
export type TestSettings = {
|
|
16
|
+
action?: string;
|
|
17
|
+
delimiter?: string;
|
|
18
|
+
forceFallback?: boolean;
|
|
19
|
+
hasHeaders?: boolean;
|
|
20
|
+
readable: ReadableStream<Uint8Array>;
|
|
21
|
+
};
|
|
15
22
|
export interface Engine extends Component {
|
|
16
23
|
getEncodingConfigs: (localeId: string) => EncodingConfig[];
|
|
17
24
|
invokeWorker(errorEventCallback: (errorEvent: ErrorEvent) => void): EngineWorker;
|
|
@@ -35,7 +35,7 @@ export type { ContextModelSecondaryMeasureGroupConfig, ContextModelSecondaryMeas
|
|
|
35
35
|
export type { DataFormatId, EncodingConfig, RecordDelimiterId, ValueDelimiterId } from './component/dataView';
|
|
36
36
|
export type { DataViewConfig, DataViewContentAuditConfig, DataViewLocalisedConfig, DataViewPreviewConfig, DataViewRelationshipsAuditConfig, ParsedValue } from './component/dataView';
|
|
37
37
|
export type { DimensionConfig, DimensionLocalisedConfig } from './component/dimension';
|
|
38
|
-
export type { ConnectorInterfaceResult, ContextInterfaceResult, Engine, EngineConfig, EngineWorker } from './engine';
|
|
38
|
+
export type { ConnectorInterfaceResult, ContextInterfaceResult, Engine, EngineConfig, EngineWorker, TestSettings } from './engine';
|
|
39
39
|
export type { SerialisedError } from './errors';
|
|
40
40
|
export type { EventQueryConfig, EventQueryLocalisedConfig } from './component/eventQuery';
|
|
41
41
|
export type { Presenter, PresenterConfig, PresenterLocalisedConfig, PresenterOperation } from './component/presenter';
|
package/package.json
CHANGED