@datapos/datapos-shared 0.3.511 → 0.3.513

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
- import { DEFAULT_LOCALE_CODE as p, createLabelMap as C, resolveLabel as g } from "./datapos-shared-locale.es.js";
2
- import { l as n, o as i, f as t, b as s, r as d, d as u, s as e, g as o, n as l, h, i as S, p as f } from "./componentConfig.schema-C0C6ceb5.js";
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 a, 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,
@@ -11,6 +11,7 @@ const L = n(["apiKey", "disabled", "oAuth2", "none"]), R = i({
11
11
  params: o(s(d(e(), e())))
12
12
  }), v = n(["application", "curatedDataset", "database", "fileStore"]), y = n([
13
13
  "abortOperation",
14
+ "auditContent",
14
15
  "authenticateConnection",
15
16
  "createObject",
16
17
  "describeConnection",
@@ -29,25 +30,25 @@ const L = n(["apiKey", "disabled", "oAuth2", "none"]), R = i({
29
30
  label: f
30
31
  }), F = i({
31
32
  ...O,
32
- typeId: u("connector"),
33
- category: t(D),
33
+ typeId: g("connector"),
34
+ category: a(D),
34
35
  categoryId: v,
35
36
  implementations: d(e(), R),
36
37
  operations: s(y),
37
38
  usageId: I,
38
- vendorAccountURL: t(e()),
39
- vendorDocumentationURL: t(e()),
40
- vendorHomeURL: t(e())
39
+ vendorAccountURL: a(e()),
40
+ vendorDocumentationURL: a(e()),
41
+ vendorHomeURL: a(e())
41
42
  }), A = [
42
43
  { id: "application", label: { "en-gb": "Application" } },
43
44
  { id: "curatedDataset", label: { "en-gb": "Curated Dataset" } },
44
45
  { id: "database", label: { "en-gb": "Database" } },
45
46
  { id: "fileStore", label: { "en-gb": "File Store" } }
46
47
  ], N = (c, b = p) => {
47
- const a = A.find((r) => r.id === c);
48
- if (a) {
49
- const r = C(a.label), m = g(r, b);
50
- return { id: a.id, label: m ?? a.id };
48
+ const t = A.find((r) => r.id === c);
49
+ if (t) {
50
+ const r = C(t.label), m = u(r, b);
51
+ return { id: t.id, label: m ?? t.id };
51
52
  }
52
53
  return { id: c, label: c };
53
54
  };
@@ -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<"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>;
8
+ declare const connectorOperationNameSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"auditContent", 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>;
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
  /**
@@ -47,7 +47,7 @@ declare const connectorConfigSchema: import('valibot').ObjectSchema<{
47
47
  readonly maxConnectionCount: import('valibot').OptionalSchema<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
- 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>;
50
+ readonly operations: import('valibot').ArraySchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"auditContent", 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>;
51
51
  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>;
52
52
  readonly vendorAccountURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
53
53
  readonly vendorDocumentationURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
@@ -42,6 +42,7 @@ interface EngineCallbackData {
42
42
  * Engine utilities.
43
43
  */
44
44
  interface EngineUtilities {
45
+ hasReadableStreamTransferSupport(): boolean;
45
46
  inferValues: (parsingRecord: ParsingRecord, columnConfigs: ObjectColumnConfig[], leadingRecord: boolean) => InferenceRecord;
46
47
  inferDataTypes: (parsedRecords: ParsingRecord[]) => InferenceSummary;
47
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-shared",
3
- "version": "0.3.511",
3
+ "version": "0.3.513",
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>",