@datapos/datapos-shared 0.3.401 → 0.3.403
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
let D;
|
|
2
2
|
// @__NO_SIDE_EFFECTS__
|
|
3
|
-
function
|
|
3
|
+
function F(n) {
|
|
4
4
|
return {
|
|
5
5
|
lang: n?.lang ?? D?.lang,
|
|
6
6
|
message: n?.message,
|
|
@@ -8,10 +8,10 @@ function U(n) {
|
|
|
8
8
|
abortPipeEarly: n?.abortPipeEarly ?? D?.abortPipeEarly
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
let
|
|
11
|
+
let U;
|
|
12
12
|
// @__NO_SIDE_EFFECTS__
|
|
13
13
|
function G(n) {
|
|
14
|
-
return
|
|
14
|
+
return U?.get(n);
|
|
15
15
|
}
|
|
16
16
|
let N;
|
|
17
17
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -51,7 +51,7 @@ function m(n) {
|
|
|
51
51
|
version: 1,
|
|
52
52
|
vendor: "valibot",
|
|
53
53
|
validate(t) {
|
|
54
|
-
return n["~run"]({ value: t }, /* @__PURE__ */
|
|
54
|
+
return n["~run"]({ value: t }, /* @__PURE__ */ F());
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
}
|
|
@@ -339,11 +339,11 @@ function A(n) {
|
|
|
339
339
|
return t;
|
|
340
340
|
}
|
|
341
341
|
// @__NO_SIDE_EFFECTS__
|
|
342
|
-
function
|
|
342
|
+
function P(n, t) {
|
|
343
343
|
return {
|
|
344
344
|
kind: "schema",
|
|
345
345
|
type: "union",
|
|
346
|
-
reference:
|
|
346
|
+
reference: P,
|
|
347
347
|
expects: /* @__PURE__ */ K(n.map((e) => e.expects), "|"),
|
|
348
348
|
async: !1,
|
|
349
349
|
options: n,
|
|
@@ -374,7 +374,7 @@ function w(n, t) {
|
|
|
374
374
|
}
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
|
-
const g = (n) => /* @__PURE__ */
|
|
377
|
+
const g = (n) => /* @__PURE__ */ P(n.map((t) => /* @__PURE__ */ k(t))), H = /* @__PURE__ */ y({
|
|
378
378
|
"en-au": /* @__PURE__ */ a(),
|
|
379
379
|
"en-gb": /* @__PURE__ */ a(),
|
|
380
380
|
"en-us": /* @__PURE__ */ a(),
|
|
@@ -435,7 +435,7 @@ const g = (n) => /* @__PURE__ */ w(n.map((t) => /* @__PURE__ */ k(t))), H = /* @
|
|
|
435
435
|
}, ce = /* @__PURE__ */ y({
|
|
436
436
|
...I,
|
|
437
437
|
typeId: Q
|
|
438
|
-
}),
|
|
438
|
+
}), w = /* @__PURE__ */ y({
|
|
439
439
|
id: /* @__PURE__ */ a(),
|
|
440
440
|
label: C,
|
|
441
441
|
description: C,
|
|
@@ -462,7 +462,7 @@ const O = {
|
|
|
462
462
|
"createObject",
|
|
463
463
|
"describeConnection",
|
|
464
464
|
"dropObject",
|
|
465
|
-
"
|
|
465
|
+
"findObjectFolderPath",
|
|
466
466
|
"getReadableStream",
|
|
467
467
|
"getRecord",
|
|
468
468
|
"listNodes",
|
|
@@ -485,7 +485,7 @@ const O = {
|
|
|
485
485
|
}), te = g(["list"]), se = /* @__PURE__ */ y({
|
|
486
486
|
...I,
|
|
487
487
|
typeId: /* @__PURE__ */ k("contextModelGroup"),
|
|
488
|
-
modelRefs: /* @__PURE__ */ v(
|
|
488
|
+
modelRefs: /* @__PURE__ */ v(w),
|
|
489
489
|
order: /* @__PURE__ */ S()
|
|
490
490
|
}), fe = /* @__PURE__ */ y({
|
|
491
491
|
...O,
|
|
@@ -495,7 +495,7 @@ const O = {
|
|
|
495
495
|
}), re = g(["list", "render", "setColorMode"]), de = /* @__PURE__ */ y({
|
|
496
496
|
...O,
|
|
497
497
|
typeId: /* @__PURE__ */ k("presenter"),
|
|
498
|
-
presentations: /* @__PURE__ */ v(
|
|
498
|
+
presentations: /* @__PURE__ */ v(w),
|
|
499
499
|
operations: /* @__PURE__ */ v(re)
|
|
500
500
|
});
|
|
501
501
|
function ye() {
|
|
@@ -26,7 +26,7 @@ export declare const connectorImplementationSchema: import('valibot').ObjectSche
|
|
|
26
26
|
/** Category identifiers used for grouping and filtering connectors. */
|
|
27
27
|
export declare const connectorCategoryIdSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"application", undefined>, import('valibot').LiteralSchema<"curatedDataset", undefined>, import('valibot').LiteralSchema<"database", undefined>, import('valibot').LiteralSchema<"fileStore", undefined>], undefined>;
|
|
28
28
|
/** Operation names a connector may support. */
|
|
29
|
-
export declare const connectorOperationNameSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"authenticateConnection", undefined>, import('valibot').LiteralSchema<"createObject", undefined>, import('valibot').LiteralSchema<"describeConnection", undefined>, import('valibot').LiteralSchema<"dropObject", undefined>, import('valibot').LiteralSchema<"
|
|
29
|
+
export declare const connectorOperationNameSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"authenticateConnection", undefined>, import('valibot').LiteralSchema<"createObject", undefined>, import('valibot').LiteralSchema<"describeConnection", undefined>, import('valibot').LiteralSchema<"dropObject", undefined>, import('valibot').LiteralSchema<"findObjectFolderPath", 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>;
|
|
30
30
|
/** Connector data pipeline usage identifiers. */
|
|
31
31
|
export 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>;
|
|
32
32
|
/** Top-level connector configuration object. */
|
|
@@ -51,7 +51,7 @@ export declare const connectorConfigSchema: import('valibot').ObjectSchema<{
|
|
|
51
51
|
readonly maxConnectionCount: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
52
52
|
readonly params: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').RecordSchema<import('valibot').StringSchema<undefined>, import('valibot').StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
53
53
|
}, undefined>, undefined>;
|
|
54
|
-
readonly operations: import('valibot').ArraySchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"authenticateConnection", undefined>, import('valibot').LiteralSchema<"createObject", undefined>, import('valibot').LiteralSchema<"describeConnection", undefined>, import('valibot').LiteralSchema<"dropObject", undefined>, import('valibot').LiteralSchema<"
|
|
54
|
+
readonly operations: import('valibot').ArraySchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"authenticateConnection", undefined>, import('valibot').LiteralSchema<"createObject", undefined>, import('valibot').LiteralSchema<"describeConnection", undefined>, import('valibot').LiteralSchema<"dropObject", undefined>, import('valibot').LiteralSchema<"findObjectFolderPath", 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>;
|
|
55
55
|
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>;
|
|
56
56
|
readonly vendorAccountURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
57
57
|
readonly vendorDocumentationURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
@@ -45,7 +45,7 @@ interface ConnectorOperationSettings {
|
|
|
45
45
|
/** Get find object folder path settings. */
|
|
46
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, FindObjectFolderPathSettings, GetReadableStreamSettings, GetRecordResult, GetRecordSettings, ListResult, ListSettings, PreviewResult, PreviewSettings, RemoveSettings,
|
|
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.403",
|
|
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>",
|