@datapos/datapos-shared 0.3.426 → 0.3.428
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.
|
@@ -2,9 +2,9 @@ import { InferOutput } from 'valibot';
|
|
|
2
2
|
import { Component } from '..';
|
|
3
3
|
import { EngineShared } from '../../engine';
|
|
4
4
|
import { ToolConfig } from '../tool';
|
|
5
|
-
import { ValueDelimiterId } from '../dataView';
|
|
6
5
|
import { ConnectionDescription, ConnectionNodeConfig } from './connection';
|
|
7
6
|
import { connectorCategoryConfigSchema, connectorConfigSchema, connectorOperationNameSchema, connectorUsageIdSchema } from './connectorConfig.schema';
|
|
7
|
+
import { DataViewPreviewConfig, ValueDelimiterId } from '../dataView';
|
|
8
8
|
/** Connector interface an constructor. */
|
|
9
9
|
interface ConnectorInterface extends Component {
|
|
10
10
|
abortController: AbortController | undefined;
|
|
@@ -19,7 +19,7 @@ interface ConnectorInterface extends Component {
|
|
|
19
19
|
getReadableStream?(connector: ConnectorInterface, options: GetReadableStreamOptions): Promise<ReadableStream<Uint8Array>>;
|
|
20
20
|
getRecord?(connector: ConnectorInterface, options: GetRecordOptions): Promise<GetRecordResult>;
|
|
21
21
|
listNodes?(connector: ConnectorInterface, options: ListNodesOptions): Promise<ListNodesResult>;
|
|
22
|
-
previewObject?(engineShared: EngineShared, connector: ConnectorInterface, options: PreviewObjectOptions): Promise<
|
|
22
|
+
previewObject?(engineShared: EngineShared, connector: ConnectorInterface, options: PreviewObjectOptions): Promise<DataViewPreviewConfig>;
|
|
23
23
|
removeRecords?(connector: ConnectorInterface, options: RemoveRecordsOptions): Promise<void>;
|
|
24
24
|
retrieveChunks?(connector: ConnectorInterface, options: RetrieveChunksOptions, chunk: (records: (string[] | Record<string, unknown>)[]) => void, complete: () => void): Promise<void>;
|
|
25
25
|
retrieveRecords?(connector: ConnectorInterface, options: RetrieveRecordsOptions, chunk: (records: (string[] | Record<string, unknown>)[]) => void, complete: (result: RetrieveRecordsSummary) => void): Promise<void>;
|
|
@@ -87,16 +87,12 @@ interface ListNodesResult {
|
|
|
87
87
|
isMore: boolean;
|
|
88
88
|
totalCount: number;
|
|
89
89
|
}
|
|
90
|
-
/** Preview object options
|
|
90
|
+
/** Preview object options. */
|
|
91
91
|
interface PreviewObjectOptions extends ConnectorOperationOptions {
|
|
92
92
|
chunkSize?: number;
|
|
93
93
|
extension?: string;
|
|
94
94
|
path: string;
|
|
95
95
|
}
|
|
96
|
-
interface PreviewObjectResult {
|
|
97
|
-
data: Record<string, unknown>[] | Uint8Array;
|
|
98
|
-
typeId: 'jsonArray' | 'uint8Array';
|
|
99
|
-
}
|
|
100
96
|
/** Remove records options. */
|
|
101
97
|
interface RemoveRecordsOptions extends ConnectorOperationOptions {
|
|
102
98
|
keys: string[];
|
|
@@ -140,4 +136,4 @@ declare const constructConnectorCategoryConfig: (id: string, localeId?: import('
|
|
|
140
136
|
export { connectorConfigSchema } from './connectorConfig.schema';
|
|
141
137
|
export { constructConnectorCategoryConfig };
|
|
142
138
|
export type { ConnectionColumnConfig, ConnectionConfig, ConnectionNodeConfig, Encoding, UsageTypeId } from './connection';
|
|
143
|
-
export type { ConnectorConfig, ConnectorConstructor, ConnectorInterface, ConnectorLocalisedConfig, ConnectorOperationName, ConnectorOperationOptions, ConnectorUsageId, CreateObjectOptions, DropObjectOptions, FindObjectFolderPathOptions, GetReadableStreamOptions, GetRecordResult, GetRecordOptions, ListNodesResult, ListNodesOptions,
|
|
139
|
+
export type { ConnectorConfig, ConnectorConstructor, ConnectorInterface, ConnectorLocalisedConfig, ConnectorOperationName, ConnectorOperationOptions, ConnectorUsageId, CreateObjectOptions, DropObjectOptions, FindObjectFolderPathOptions, GetReadableStreamOptions, GetRecordResult, GetRecordOptions, ListNodesResult, ListNodesOptions, PreviewObjectOptions, RemoveRecordsOptions, RetrieveChunksOptions, RetrieveRecordsOptions, RetrieveRecordsSummary, UpsertRecordsOptions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.428",
|
|
4
4
|
"description": "A library containing common constants, types and utilities used across all Data Positioning projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|