@datapos/datapos-shared 0.3.531 → 0.3.533
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,5 +1,5 @@
|
|
|
1
1
|
import { DEFAULT_LOCALE_CODE as p, createLabelMap as C, resolveLabel as u } from "./datapos-shared-locale.es.js";
|
|
2
|
-
import { l as n, o as i, f as
|
|
2
|
+
import { l as n, o as i, f as t, b as s, r as d, d as g, s as e, g as o, n as l, h, i as S, p as f } from "./componentConfig.schema-C0C6ceb5.js";
|
|
3
3
|
import { m as O } from "./moduleConfig.schema-DNq1iU4S.js";
|
|
4
4
|
const L = n(["apiKey", "disabled", "oAuth2", "none"]), R = i({
|
|
5
5
|
authMethodId: L,
|
|
@@ -7,7 +7,7 @@ const L = n(["apiKey", "disabled", "oAuth2", "none"]), R = i({
|
|
|
7
7
|
canDescribe: o(S()),
|
|
8
8
|
id: o(e()),
|
|
9
9
|
label: o(h),
|
|
10
|
-
maxConnectionCount:
|
|
10
|
+
maxConnectionCount: t(l()),
|
|
11
11
|
params: o(s(d(e(), e())))
|
|
12
12
|
}), v = n(["application", "curatedDataset", "database", "fileStore"]), y = n([
|
|
13
13
|
"abortOperation",
|
|
@@ -31,24 +31,24 @@ const L = n(["apiKey", "disabled", "oAuth2", "none"]), R = i({
|
|
|
31
31
|
}), F = i({
|
|
32
32
|
...O,
|
|
33
33
|
typeId: g("connector"),
|
|
34
|
-
category:
|
|
34
|
+
category: t(D),
|
|
35
35
|
categoryId: v,
|
|
36
36
|
implementations: d(e(), R),
|
|
37
37
|
operations: s(y),
|
|
38
38
|
usageId: I,
|
|
39
|
-
vendorAccountURL:
|
|
40
|
-
vendorDocumentationURL:
|
|
41
|
-
vendorHomeURL:
|
|
39
|
+
vendorAccountURL: t(e()),
|
|
40
|
+
vendorDocumentationURL: t(e()),
|
|
41
|
+
vendorHomeURL: t(e())
|
|
42
42
|
}), A = [
|
|
43
43
|
{ id: "application", label: { "en-gb": "Application" } },
|
|
44
44
|
{ id: "curatedDataset", label: { "en-gb": "Curated Dataset" } },
|
|
45
45
|
{ id: "database", label: { "en-gb": "Database" } },
|
|
46
46
|
{ id: "fileStore", label: { "en-gb": "File Store" } }
|
|
47
47
|
], N = (c, b = p) => {
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
50
|
-
const r = C(
|
|
51
|
-
return { id:
|
|
48
|
+
const a = A.find((r) => r.id === c);
|
|
49
|
+
if (a) {
|
|
50
|
+
const r = C(a.label), m = u(r, b);
|
|
51
|
+
return { id: a.id, label: m ?? a.id };
|
|
52
52
|
}
|
|
53
53
|
return { id: c, label: c };
|
|
54
54
|
};
|
|
@@ -44,7 +44,7 @@ declare const connectorConfigSchema: import('valibot').ObjectSchema<{
|
|
|
44
44
|
readonly 'en-us': import('valibot').StringSchema<undefined>;
|
|
45
45
|
readonly 'es-es': import('valibot').StringSchema<undefined>;
|
|
46
46
|
}, undefined>, undefined>;
|
|
47
|
-
readonly maxConnectionCount: import('valibot').
|
|
47
|
+
readonly maxConnectionCount: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
48
48
|
readonly params: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').RecordSchema<import('valibot').StringSchema<undefined>, import('valibot').StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
49
49
|
}, undefined>, undefined>;
|
|
50
50
|
readonly operations: import('valibot').ArraySchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"auditObjectContent", 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>;
|
|
@@ -39,7 +39,7 @@ interface ConnectorInterface extends Component {
|
|
|
39
39
|
/**
|
|
40
40
|
* Find an object for a specified connection.
|
|
41
41
|
*/
|
|
42
|
-
findObject?(options:
|
|
42
|
+
findObject?(options: FindObjectOptions): Promise<FindObjectResult>;
|
|
43
43
|
/**
|
|
44
44
|
* Get a reader that can retrieve all records from an object for a specified connection.
|
|
45
45
|
*/
|
|
@@ -147,11 +147,15 @@ interface DropObjectOptions extends EngineOperationOptions {
|
|
|
147
147
|
path: string;
|
|
148
148
|
}
|
|
149
149
|
/**
|
|
150
|
-
* Find object
|
|
150
|
+
* Find object options and result.
|
|
151
151
|
*/
|
|
152
|
-
interface
|
|
153
|
-
|
|
152
|
+
interface FindObjectOptions extends EngineOperationOptions {
|
|
153
|
+
containerId: string | undefined;
|
|
154
154
|
nodeId: string;
|
|
155
|
+
object: unknown;
|
|
156
|
+
}
|
|
157
|
+
interface FindObjectResult {
|
|
158
|
+
folderPath: string;
|
|
155
159
|
}
|
|
156
160
|
/**
|
|
157
161
|
* Get readable stream options.
|
|
@@ -266,4 +270,4 @@ declare const constructConnectorCategoryConfig: (id: string, localeId?: import('
|
|
|
266
270
|
export { connectorConfigSchema } from './connectorConfig.schema';
|
|
267
271
|
export { constructConnectorCategoryConfig };
|
|
268
272
|
export type { ConnectionConfig, ConnectionNodeConfig, ObjectColumnConfig } from './connection';
|
|
269
|
-
export type { AuditObjectContentOptions1, AuditObjectContentResult1, AuditObjectContentOptions, AuditObjectContentResult, ConnectorConfig, ConnectorConstructor, ConnectorInterface, ConnectorLocalisedConfig, ConnectorOperationName, ConnectorUsageId, CreateObjectOptions, DropObjectOptions,
|
|
273
|
+
export type { AuditObjectContentOptions1, AuditObjectContentResult1, AuditObjectContentOptions, AuditObjectContentResult, ConnectorConfig, ConnectorConstructor, ConnectorInterface, ConnectorLocalisedConfig, ConnectorOperationName, ConnectorUsageId, CreateObjectOptions, DropObjectOptions, FindObjectOptions, FindObjectResult, GetReadableStreamOptions, GetRecordOptions, GetRecordResult, ListNodesOptions, ListNodesResult, 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.533",
|
|
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>",
|