@dpuse/dpuse-shared 0.3.599 → 0.3.600
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.
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* of connector manifests and capability discovery at runtime.
|
|
6
6
|
*/
|
|
7
7
|
/** Operation names a connector may support. */
|
|
8
|
-
declare const connectorOperationNameSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"auditObjectContent", undefined>, import('valibot').LiteralSchema<"
|
|
8
|
+
declare const connectorOperationNameSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"auditObjectContent", undefined>, import('valibot').LiteralSchema<"createObject", undefined>, import('valibot').LiteralSchema<"describeConnection", undefined>, import('valibot').LiteralSchema<"dropObject", undefined>, import('valibot').LiteralSchema<"findObject", undefined>, import('valibot').LiteralSchema<"getReadableStream", undefined>, import('valibot').LiteralSchema<"getRecord", undefined>, import('valibot').LiteralSchema<"listNodes", undefined>, import('valibot').LiteralSchema<"previewObject", undefined>, import('valibot').LiteralSchema<"removeRecords", undefined>, import('valibot').LiteralSchema<"retrieveChunks", undefined>, import('valibot').LiteralSchema<"retrieveRecords", undefined>, import('valibot').LiteralSchema<"upsertRecords", undefined>], undefined>;
|
|
9
9
|
/** Connector data pipeline usage identifiers. */
|
|
10
10
|
declare const connectorUsageIdSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"bidirectional", undefined>, import('valibot').LiteralSchema<"destination", undefined>, import('valibot').LiteralSchema<"source", undefined>, import('valibot').LiteralSchema<"unknown", undefined>], undefined>;
|
|
11
11
|
/**
|
|
@@ -41,7 +41,7 @@ declare const connectorConfigSchema: import('valibot').ObjectSchema<{
|
|
|
41
41
|
readonly maxConnectionCount: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
42
42
|
readonly params: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').RecordSchema<import('valibot').StringSchema<undefined>, import('valibot').StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
43
43
|
}, undefined>, undefined>;
|
|
44
|
-
readonly operations: import('valibot').ArraySchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"auditObjectContent", undefined>, import('valibot').LiteralSchema<"
|
|
44
|
+
readonly operations: import('valibot').ArraySchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"auditObjectContent", undefined>, import('valibot').LiteralSchema<"createObject", undefined>, import('valibot').LiteralSchema<"describeConnection", undefined>, import('valibot').LiteralSchema<"dropObject", undefined>, import('valibot').LiteralSchema<"findObject", undefined>, import('valibot').LiteralSchema<"getReadableStream", undefined>, import('valibot').LiteralSchema<"getRecord", undefined>, import('valibot').LiteralSchema<"listNodes", undefined>, import('valibot').LiteralSchema<"previewObject", undefined>, import('valibot').LiteralSchema<"removeRecords", undefined>, import('valibot').LiteralSchema<"retrieveChunks", undefined>, import('valibot').LiteralSchema<"retrieveRecords", undefined>, import('valibot').LiteralSchema<"upsertRecords", undefined>], undefined>, undefined>;
|
|
45
45
|
readonly usageId: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"bidirectional", undefined>, import('valibot').LiteralSchema<"destination", undefined>, import('valibot').LiteralSchema<"source", undefined>, import('valibot').LiteralSchema<"unknown", undefined>], undefined>;
|
|
46
46
|
readonly vendorAccountURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
47
47
|
readonly vendorDocumentationURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
@@ -11,7 +11,6 @@ export interface ConnectorInterface extends Component {
|
|
|
11
11
|
readonly toolConfigs: ToolConfig[];
|
|
12
12
|
abortOperation?(): void;
|
|
13
13
|
auditObjectContent?(options: AuditObjectContentOptions, chunk: (rowCount: number) => void): Promise<AuditObjectContentResult>;
|
|
14
|
-
authenticateConnection?(accountId: string, windowCenterX: number, windowCenterY: number): Window | undefined;
|
|
15
14
|
createObject?(options: CreateObjectOptions): Promise<void>;
|
|
16
15
|
describeConnection?(options: DescribeConnectionOptions): Promise<DescribeConnectionResult>;
|
|
17
16
|
dropObject?(options: DropObjectOptions): Promise<void>;
|
|
@@ -5,54 +5,32 @@ import { ObjectColumnConfig } from '../component/connector';
|
|
|
5
5
|
import { ToolConfig } from '../component/tool';
|
|
6
6
|
import { ContextConfig, ContextOperationOptions } from '../component/context';
|
|
7
7
|
import { InferenceRecord, InferenceSummary, ParsingRecord } from '../component/dataView';
|
|
8
|
-
|
|
9
|
-
* Engine runtime interface.
|
|
10
|
-
*/
|
|
11
|
-
interface EngineRuntimeInterface {
|
|
8
|
+
export interface EngineRuntime {
|
|
12
9
|
getEncodingTypeConfigs: (localeId: string) => EncodingTypeConfig[];
|
|
13
|
-
invokeWorker(errorEventCallback: (errorEvent: ErrorEvent) => void):
|
|
10
|
+
invokeWorker(errorEventCallback: (errorEvent: ErrorEvent) => void): EngineWorker;
|
|
14
11
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*/
|
|
18
|
-
interface EngineOperationOptions {
|
|
19
|
-
accountId?: string;
|
|
20
|
-
appCheckToken?: string;
|
|
21
|
-
sessionAccessToken?: string;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Engine worker interface.
|
|
25
|
-
*/
|
|
26
|
-
interface EngineWorkerInterface {
|
|
27
|
-
initialise: (options: EngineWorkerInitialiseOptions) => Promise<void>;
|
|
12
|
+
export interface EngineWorker {
|
|
13
|
+
initialise: (options: EngineInitialiseOptions) => Promise<void>;
|
|
28
14
|
processRequest: (id: string, config: ConnectionConfig | ContextConfig, options: EngineOperationOptions | ContextOperationOptions, callback?: (callbackData: EngineCallbackData) => void) => Promise<unknown>;
|
|
29
15
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
interface
|
|
16
|
+
export interface EngineConfig extends ModuleConfig {
|
|
17
|
+
typeId: 'engine';
|
|
18
|
+
}
|
|
19
|
+
export interface EngineInitialiseOptions {
|
|
34
20
|
connectorStorageURLPrefix: string;
|
|
35
21
|
toolConfigs: ToolConfig[];
|
|
36
22
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
typeId: 'engine';
|
|
23
|
+
export interface EngineOperationOptions {
|
|
24
|
+
accountId?: string;
|
|
25
|
+
appCheckToken?: string;
|
|
26
|
+
sessionAccessToken?: string;
|
|
42
27
|
}
|
|
43
|
-
|
|
44
|
-
* Engine callback data.
|
|
45
|
-
*/
|
|
46
|
-
interface EngineCallbackData {
|
|
28
|
+
export interface EngineCallbackData {
|
|
47
29
|
typeId: string;
|
|
48
30
|
properties: Record<string, unknown>;
|
|
49
31
|
}
|
|
50
|
-
|
|
51
|
-
* Engine utilities.
|
|
52
|
-
*/
|
|
53
|
-
interface EngineUtilities {
|
|
32
|
+
export interface EngineUtilities {
|
|
54
33
|
hasReadableStreamTransferSupport(): boolean;
|
|
55
34
|
inferValues: (parsedRecord: ParsingRecord, columnConfigs: ObjectColumnConfig[], leadingRecord: boolean) => InferenceRecord;
|
|
56
35
|
inferDataTypes: (parsedRecords: ParsingRecord[]) => InferenceSummary;
|
|
57
36
|
}
|
|
58
|
-
export type { EngineCallbackData, EngineConfig, EngineOperationOptions, EngineRuntimeInterface, EngineUtilities, EngineWorkerInitialiseOptions, EngineWorkerInterface };
|
package/package.json
CHANGED