@dpuse/dpuse-shared 0.3.775 → 0.3.776

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.
package/README.md CHANGED
@@ -144,9 +144,9 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
144
144
  |:------ |:-----------|
145
145
  | dist/componentConfig.schema-CK_0vKEB.js | 10.4 kB · brotli 2.2 kB |
146
146
  | dist/dpuse-shared-encoding.es.js | 6.8 kB · brotli 953 B |
147
+ | dist/dpuse-shared-componentModuleConnector.es.js | 3.6 kB · brotli 1.2 kB |
147
148
  | dist/dpuse-shared-utilities.es.js | 3.6 kB · brotli 1.1 kB |
148
149
  | dist/dpuse-shared-errors.es.js | 3.5 kB · brotli 1.1 kB |
149
- | dist/dpuse-shared-componentModuleConnector.es.js | 3.5 kB · brotli 1.1 kB |
150
150
  | dist/dpuse-shared-locale.es.js | 1.0 kB · brotli 393 B |
151
151
  | dist/dpuse-shared-component.es.js | 830 B · brotli 357 B |
152
152
  | dist/dpuse-shared-componentDataView.es.js | 722 B · brotli 310 B |
@@ -1,7 +1,8 @@
1
1
  import { createLabelMap as e, resolveLabel as t } from "./dpuse-shared-locale.es.js";
2
2
  import { a as n, c as r, d as i, f as a, i as o, l as s, m as c, o as l, p as u, s as d, u as f } from "./componentConfig.schema-CK_0vKEB.js";
3
3
  import { t as p } from "./moduleConfig.schema-Cd6AU1nb.js";
4
- o([
4
+ //#region src/component/module/connector/connectorConfig.schema.ts
5
+ var m = o([
5
6
  "abortOperation",
6
7
  "auditObjectContent",
7
8
  "createObject",
@@ -17,38 +18,38 @@ o([
17
18
  "retrieveChunks",
18
19
  "retrieveRecords",
19
20
  "upsertRecords"
20
- ]);
21
- var m = o([
21
+ ]), h = o([
22
22
  "application",
23
23
  "curatedDataset",
24
24
  "database",
25
25
  "fileStore"
26
- ]), h = i({ label: n }), g = o([
26
+ ]), g = i({ label: n }), _ = o([
27
27
  "bidirectional",
28
28
  "destination",
29
29
  "source"
30
- ]), _ = i({ label: n }), v = o([
30
+ ]), v = i({ label: n }), y = o([
31
31
  "apiKey",
32
32
  "disabled",
33
33
  "oAuth2",
34
34
  "none"
35
- ]), y = i({
36
- authMethodId: v,
35
+ ]), b = i({
36
+ authMethodId: y,
37
37
  activeConnectionCount: a(f()),
38
38
  canDescribe: a(d()),
39
39
  id: a(c()),
40
40
  label: a(n),
41
41
  maxConnectionCount: s(f()),
42
42
  params: a(l(u(c(), c())))
43
- }), b = i({
43
+ }), x = i({
44
44
  ...p,
45
45
  typeId: r("connector"),
46
- category: s(h),
47
- categoryId: m,
48
- implementations: u(c(), y),
49
- usage: s(_),
50
- usageId: s(g)
51
- }), x = [
46
+ actionNames: l(m),
47
+ category: s(g),
48
+ categoryId: h,
49
+ implementations: u(c(), b),
50
+ usage: s(v),
51
+ usageId: s(_)
52
+ }), S = [
52
53
  {
53
54
  id: "application",
54
55
  label: {
@@ -77,7 +78,7 @@ var m = o([
77
78
  es: "Almacén de Archivos"
78
79
  }
79
80
  }
80
- ], S = {
81
+ ], C = {
81
82
  abortOperation: "Abort Operation",
82
83
  auditObjectContent: "Audit Object Content",
83
84
  createObject: "Create Object",
@@ -93,7 +94,7 @@ var m = o([
93
94
  retrieveChunks: "Retrieve Chunks",
94
95
  retrieveRecords: "Retrieve Records",
95
96
  upsertRecords: "Upsert Records"
96
- }, C = [
97
+ }, w = [
97
98
  {
98
99
  id: "bidirectional",
99
100
  label: {
@@ -122,12 +123,12 @@ var m = o([
122
123
  es: "Desconocido"
123
124
  }
124
125
  }
125
- ], w = /* @__PURE__ */ new Set([
126
+ ], T = /* @__PURE__ */ new Set([
126
127
  "createObject",
127
128
  "dropObject",
128
129
  "removeRecords",
129
130
  "upsertRecords"
130
- ]), T = /* @__PURE__ */ new Set([
131
+ ]), E = /* @__PURE__ */ new Set([
131
132
  "auditObjectContent",
132
133
  "findObject",
133
134
  "getInfo",
@@ -138,13 +139,13 @@ var m = o([
138
139
  "retrieveChunks",
139
140
  "retrieveRecords"
140
141
  ]);
141
- function E(e) {
142
+ function D(e) {
142
143
  let t = !1, n = !1;
143
- for (let r of e) T.has(r) && (t = !0), w.has(r) && (n = !0);
144
+ for (let r of e) E.has(r) && (t = !0), T.has(r) && (n = !0);
144
145
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "source";
145
146
  }
146
- var D = (n, r = "en") => {
147
- let i = x.find((e) => e.id === n);
147
+ var O = (n, r = "en") => {
148
+ let i = S.find((e) => e.id === n);
148
149
  if (i) {
149
150
  let n = e(i.label);
150
151
  return {
@@ -156,8 +157,8 @@ var D = (n, r = "en") => {
156
157
  label: n,
157
158
  description: ""
158
159
  };
159
- }, O = (n, r = "en") => {
160
- let i = C.find((e) => e.id === n);
160
+ }, k = (n, r = "en") => {
161
+ let i = w.find((e) => e.id === n);
161
162
  if (i) {
162
163
  let n = e(i.label);
163
164
  return {
@@ -170,11 +171,11 @@ var D = (n, r = "en") => {
170
171
  description: ""
171
172
  };
172
173
  };
173
- function k(e) {
174
+ function A(e) {
174
175
  let t = new Set(e), n = "|Action|Supported|\n";
175
176
  n += "|:----|:-------:|\n";
176
- for (let e of Object.keys(S)) n += `| ${S[e]} | ${t.has(e) ? "✓" : ""} |\n`;
177
+ for (let e of Object.keys(C)) n += `| ${C[e]} | ${t.has(e) ? "✓" : ""} |\n`;
177
178
  return n;
178
179
  }
179
180
  //#endregion
180
- export { S as CONNECTOR_ACTION_NAME_MAP, b as connectorConfigSchema, D as constructConnectorCategoryConfig, O as constructConnectorUsageConfig, E as determineConnectorUsageId, k as getConnectorActionsTable };
181
+ export { C as CONNECTOR_ACTION_NAME_MAP, x as connectorConfigSchema, O as constructConnectorCategoryConfig, k as constructConnectorUsageConfig, D as determineConnectorUsageId, A as getConnectorActionsTable };
@@ -18,6 +18,7 @@ export declare const connectorUsageConfigSchema: import('valibot').ObjectSchema<
18
18
  }, undefined>;
19
19
  export declare const connectorConfigSchema: import('valibot').ObjectSchema<{
20
20
  readonly typeId: import('valibot').LiteralSchema<"connector", undefined>;
21
+ readonly actionNames: import('valibot').ArraySchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"auditObjectContent", undefined>, import('valibot').LiteralSchema<"createObject", undefined>, import('valibot').LiteralSchema<"describeConnection", undefined>, import('valibot').LiteralSchema<"dropObject", undefined>, import('valibot').LiteralSchema<"findObject", undefined>, import('valibot').LiteralSchema<"getInfo", 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>;
21
22
  readonly category: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
22
23
  readonly label: import('valibot').ObjectSchema<{
23
24
  readonly en: import('valibot').StringSchema<undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "0.3.775",
3
+ "version": "0.3.776",
4
4
  "private": false,
5
5
  "description": "Common constants, types and utilities used across all DPUse projects.",
6
6
  "license": "MIT",