@datapos/datapos-shared 0.3.400 → 0.3.402
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.
|
@@ -26,7 +26,7 @@ interface ConnectorInterface extends Component {
|
|
|
26
26
|
createObject?(connector: ConnectorInterface, settings: CreateSettings): Promise<void>;
|
|
27
27
|
describeConnection?(connector: ConnectorInterface, settings: DescribeSettings): Promise<DescribeResult>;
|
|
28
28
|
dropObject?(connector: ConnectorInterface, settings: DropSettings): Promise<void>;
|
|
29
|
-
findObject?(connector: ConnectorInterface, settings:
|
|
29
|
+
findObject?(connector: ConnectorInterface, settings: FindObjectFolderPathSettings): Promise<string | null>;
|
|
30
30
|
getReadableStream?(connector: ConnectorInterface, settings: GetReadableStreamSettings): Promise<ReadableStream<Uint8Array<ArrayBuffer>>>;
|
|
31
31
|
getRecord?(connector: ConnectorInterface, settings: GetRecordSettings): Promise<GetRecordResult>;
|
|
32
32
|
listNodes?(connector: ConnectorInterface, settings: ListSettings): Promise<ListResult>;
|
|
@@ -42,10 +42,10 @@ interface ConnectorOperationSettings {
|
|
|
42
42
|
appCheckToken?: string;
|
|
43
43
|
sessionAccessToken?: string;
|
|
44
44
|
}
|
|
45
|
-
/** Get find object settings. */
|
|
46
|
-
interface
|
|
45
|
+
/** Get find object folder path settings. */
|
|
46
|
+
interface FindObjectFolderPathSettings extends ConnectorOperationSettings {
|
|
47
47
|
containerName: string | undefined;
|
|
48
|
-
|
|
48
|
+
nodeId: string;
|
|
49
49
|
}
|
|
50
50
|
/** Get readable stream settings. */
|
|
51
51
|
interface GetReadableStreamSettings extends ConnectorOperationSettings {
|
|
@@ -102,18 +102,6 @@ interface RetrieveChunksSettings extends ConnectorOperationSettings {
|
|
|
102
102
|
path: string;
|
|
103
103
|
valueDelimiterId: ValueDelimiterId;
|
|
104
104
|
}
|
|
105
|
-
interface RetrieveRecordsSettings extends ConnectorOperationSettings {
|
|
106
|
-
chunkSize?: number;
|
|
107
|
-
encodingId: string;
|
|
108
|
-
path: string;
|
|
109
|
-
valueDelimiterId: ValueDelimiterId;
|
|
110
|
-
}
|
|
111
|
-
interface RetrieveChunksResult {
|
|
112
|
-
records: (string[] | Record<string, unknown>)[];
|
|
113
|
-
}
|
|
114
|
-
interface RetrieveRecordsResult {
|
|
115
|
-
records: (string[] | Record<string, unknown>)[];
|
|
116
|
-
}
|
|
117
105
|
interface RetrieveChunksSummary {
|
|
118
106
|
byteCount: number;
|
|
119
107
|
commentLineCount: number;
|
|
@@ -122,6 +110,12 @@ interface RetrieveChunksSummary {
|
|
|
122
110
|
lineCount: number;
|
|
123
111
|
recordCount: number;
|
|
124
112
|
}
|
|
113
|
+
interface RetrieveRecordsSettings extends ConnectorOperationSettings {
|
|
114
|
+
chunkSize?: number;
|
|
115
|
+
encodingId: string;
|
|
116
|
+
path: string;
|
|
117
|
+
valueDelimiterId: ValueDelimiterId;
|
|
118
|
+
}
|
|
125
119
|
interface RetrieveRecordsSummary {
|
|
126
120
|
byteCount: number;
|
|
127
121
|
commentLineCount: number;
|
|
@@ -144,5 +138,5 @@ declare const getConnectorCategory: (id: string, localeId?: import('../../index'
|
|
|
144
138
|
export { getConnectorCategory };
|
|
145
139
|
export type { ConnectionColumnConfig, ConnectionConfig, ConnectionNodeConfig, Encoding, UsageTypeId } from './connection';
|
|
146
140
|
export type { ConnectorConfig, ConnectorInterface, ConnectorLocalisedConfig, ConnectorOperationSettings };
|
|
147
|
-
export type { CreateSettings, DropSettings,
|
|
141
|
+
export type { CreateSettings, DropSettings, FindObjectFolderPathSettings, GetReadableStreamSettings, GetRecordResult, GetRecordSettings, ListResult, ListSettings, PreviewResult, PreviewSettings, RemoveSettings, RetrieveChunksSettings, RetrieveChunksSummary, RetrieveRecordsSettings, RetrieveRecordsSummary, UpsertSettings };
|
|
148
142
|
export { connectorConfigSchema } from './connectorConfig.schema';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.402",
|
|
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>",
|