@datapos/datapos-shared 0.3.535 → 0.3.537

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 u } 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 g, 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 m, createLabelMap as p, resolveLabel as C } from "./datapos-shared-locale.es.js";
2
+ import { l as n, o as i, f as t, r as s, d as u, s as e, g as o, b as g, 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,
@@ -8,7 +8,7 @@ const L = n(["apiKey", "disabled", "oAuth2", "none"]), R = i({
8
8
  id: o(e()),
9
9
  label: o(h),
10
10
  maxConnectionCount: t(l()),
11
- params: o(s(d(e(), e())))
11
+ params: o(g(s(e(), e())))
12
12
  }), v = n(["application", "curatedDataset", "database", "fileStore"]), y = n([
13
13
  "abortOperation",
14
14
  "auditObjectContent",
@@ -30,11 +30,11 @@ const L = n(["apiKey", "disabled", "oAuth2", "none"]), R = i({
30
30
  label: f
31
31
  }), F = i({
32
32
  ...O,
33
- typeId: g("connector"),
33
+ typeId: u("connector"),
34
34
  category: t(D),
35
35
  categoryId: v,
36
- implementations: d(e(), R),
37
- operations: s(y),
36
+ implementations: s(e(), R),
37
+ operations: y,
38
38
  usageId: I,
39
39
  vendorAccountURL: t(e()),
40
40
  vendorDocumentationURL: t(e()),
@@ -44,11 +44,11 @@ const L = n(["apiKey", "disabled", "oAuth2", "none"]), R = i({
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
- ], N = (c, b = p) => {
47
+ ], N = (c, d = m) => {
48
48
  const a = A.find((r) => r.id === c);
49
49
  if (a) {
50
- const r = C(a.label), m = u(r, b);
51
- return { id: a.id, label: m ?? a.id };
50
+ const r = p(a.label), b = C(r, d);
51
+ return { id: a.id, label: b ?? a.id };
52
52
  }
53
53
  return { id: c, label: c };
54
54
  };
@@ -47,7 +47,7 @@ declare const connectorConfigSchema: import('valibot').ObjectSchema<{
47
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
- 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>;
50
+ readonly operations: 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>;
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>;
@@ -193,8 +193,8 @@ interface ListNodesResult {
193
193
  * Preview object options.
194
194
  */
195
195
  interface PreviewObjectOptions extends EngineOperationOptions {
196
- chunkSize?: number;
197
- extension?: string;
196
+ chunkSize: number | undefined;
197
+ extension: string | undefined;
198
198
  path: string;
199
199
  }
200
200
  /**
@@ -208,7 +208,7 @@ interface RemoveRecordsOptions extends EngineOperationOptions {
208
208
  * Retrieve chunks options.
209
209
  */
210
210
  interface RetrieveChunksOptions extends EngineOperationOptions {
211
- chunkSize?: number;
211
+ chunkSize: number | undefined;
212
212
  encodingId: string;
213
213
  path: string;
214
214
  valueDelimiterId: ValueDelimiterId;
@@ -217,7 +217,7 @@ interface RetrieveChunksOptions extends EngineOperationOptions {
217
217
  * Retrieve records options and summary.
218
218
  */
219
219
  interface RetrieveRecordsOptions extends EngineOperationOptions {
220
- chunkSize?: number;
220
+ chunkSize: number | undefined;
221
221
  encodingId: string;
222
222
  path: string;
223
223
  valueDelimiterId: ValueDelimiterId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-shared",
3
- "version": "0.3.535",
3
+ "version": "0.3.537",
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>",