@dpuse/dpuse-shared 0.3.772 → 0.3.774

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,16 +144,16 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
144
144
  |:------ |:-----------|
145
145
  | dist/componentConfig.schema-BRbvCPIW.js | 10.7 kB · brotli 2.3 kB |
146
146
  | dist/dpuse-shared-encoding.es.js | 6.8 kB · brotli 953 B |
147
- | dist/dpuse-shared-componentModuleConnector.es.js | 3.7 kB · brotli 1.2 kB |
148
147
  | dist/dpuse-shared-utilities.es.js | 3.6 kB · brotli 1.1 kB |
149
148
  | 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 359 B |
152
152
  | dist/dpuse-shared-componentDataView.es.js | 722 B · brotli 310 B |
153
- | dist/dpuse-shared-componentModulePresenter.es.js | 411 B · brotli 226 B |
154
- | dist/dpuse-shared-componentModuleCookbook.es.js | 370 B · brotli 214 B |
153
+ | dist/dpuse-shared-componentModulePresenter.es.js | 411 B · brotli 222 B |
154
+ | dist/moduleConfig.schema-CRVOuOCJ.js | 405 B · brotli 226 B |
155
+ | dist/dpuse-shared-componentModuleCookbook.es.js | 370 B · brotli 230 B |
155
156
  | dist/dpuse-shared-componentModuleTool.es.js | 325 B · brotli 223 B |
156
- | dist/moduleConfig.schema-DOb6pxQ0.js | 313 B · brotli 210 B |
157
157
  | dist/dpuse-shared-componentRecipe.es.js | 94 B · brotli 70 B |
158
158
  | dist/dpuse-shared-componentConnection.es.js | 0 B · brotli 1 B |
159
159
  | dist/dpuse-shared-componentContext.es.js | 0 B · brotli 1 B |
@@ -1,8 +1,7 @@
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-BRbvCPIW.js";
3
- import { t as p } from "./moduleConfig.schema-DOb6pxQ0.js";
4
- //#region src/component/module/connector/connectorConfig.schema.ts
5
- var m = o([
3
+ import { t as p } from "./moduleConfig.schema-CRVOuOCJ.js";
4
+ o([
6
5
  "abortOperation",
7
6
  "auditObjectContent",
8
7
  "createObject",
@@ -18,41 +17,38 @@ var m = o([
18
17
  "retrieveChunks",
19
18
  "retrieveRecords",
20
19
  "upsertRecords"
21
- ]), h = o([
20
+ ]);
21
+ var m = o([
22
22
  "application",
23
23
  "curatedDataset",
24
24
  "database",
25
25
  "fileStore"
26
- ]), g = i({ label: n }), _ = o([
26
+ ]), h = i({ label: n }), g = o([
27
27
  "bidirectional",
28
28
  "destination",
29
29
  "source"
30
- ]), v = i({ label: n }), y = o([
30
+ ]), _ = i({ label: n }), v = o([
31
31
  "apiKey",
32
32
  "disabled",
33
33
  "oAuth2",
34
34
  "none"
35
- ]), b = i({
36
- authMethodId: y,
35
+ ]), y = i({
36
+ authMethodId: v,
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
- }), x = i({
43
+ }), b = i({
44
44
  ...p,
45
45
  typeId: r("connector"),
46
- actionNames: l(m),
47
- category: s(g),
48
- categoryId: h,
49
- implementations: u(c(), b),
50
- usage: s(v),
51
- usageId: s(_),
52
- vendorAccountURL: s(c()),
53
- vendorDocumentationURL: s(c()),
54
- vendorHomeURL: s(c())
55
- }), S = [
46
+ category: s(h),
47
+ categoryId: m,
48
+ implementations: u(c(), y),
49
+ usage: s(_),
50
+ usageId: s(g)
51
+ }), x = [
56
52
  {
57
53
  id: "application",
58
54
  label: {
@@ -81,7 +77,7 @@ var m = o([
81
77
  es: "Almacén de Archivos"
82
78
  }
83
79
  }
84
- ], C = {
80
+ ], S = {
85
81
  abortOperation: "Abort Operation",
86
82
  auditObjectContent: "Audit Object Content",
87
83
  createObject: "Create Object",
@@ -97,7 +93,7 @@ var m = o([
97
93
  retrieveChunks: "Retrieve Chunks",
98
94
  retrieveRecords: "Retrieve Records",
99
95
  upsertRecords: "Upsert Records"
100
- }, w = [
96
+ }, C = [
101
97
  {
102
98
  id: "bidirectional",
103
99
  label: {
@@ -126,12 +122,12 @@ var m = o([
126
122
  es: "Desconocido"
127
123
  }
128
124
  }
129
- ], T = /* @__PURE__ */ new Set([
125
+ ], w = /* @__PURE__ */ new Set([
130
126
  "createObject",
131
127
  "dropObject",
132
128
  "removeRecords",
133
129
  "upsertRecords"
134
- ]), E = /* @__PURE__ */ new Set([
130
+ ]), T = /* @__PURE__ */ new Set([
135
131
  "auditObjectContent",
136
132
  "findObject",
137
133
  "getInfo",
@@ -142,13 +138,13 @@ var m = o([
142
138
  "retrieveChunks",
143
139
  "retrieveRecords"
144
140
  ]);
145
- function D(e) {
141
+ function E(e) {
146
142
  let t = !1, n = !1;
147
- for (let r of e) E.has(r) && (t = !0), T.has(r) && (n = !0);
143
+ for (let r of e) T.has(r) && (t = !0), w.has(r) && (n = !0);
148
144
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "source";
149
145
  }
150
- var O = (n, r = "en") => {
151
- let i = S.find((e) => e.id === n);
146
+ var D = (n, r = "en") => {
147
+ let i = x.find((e) => e.id === n);
152
148
  if (i) {
153
149
  let n = e(i.label);
154
150
  return {
@@ -160,8 +156,8 @@ var O = (n, r = "en") => {
160
156
  label: n,
161
157
  description: ""
162
158
  };
163
- }, k = (n, r = "en") => {
164
- let i = w.find((e) => e.id === n);
159
+ }, O = (n, r = "en") => {
160
+ let i = C.find((e) => e.id === n);
165
161
  if (i) {
166
162
  let n = e(i.label);
167
163
  return {
@@ -174,11 +170,11 @@ var O = (n, r = "en") => {
174
170
  description: ""
175
171
  };
176
172
  };
177
- function A(e) {
173
+ function k(e) {
178
174
  let t = new Set(e), n = "|Action|Supported|\n";
179
175
  n += "|:----|:-------:|\n";
180
- for (let e of Object.keys(C)) n += `| ${C[e]} | ${t.has(e) ? "✓" : ""} |\n`;
176
+ for (let e of Object.keys(S)) n += `| ${S[e]} | ${t.has(e) ? "✓" : ""} |\n`;
181
177
  return n;
182
178
  }
183
179
  //#endregion
184
- export { C as CONNECTOR_ACTION_NAME_MAP, x as connectorConfigSchema, O as constructConnectorCategoryConfig, k as constructConnectorUsageConfig, D as determineConnectorUsageId, A as getConnectorActionsTable };
180
+ export { S as CONNECTOR_ACTION_NAME_MAP, b as connectorConfigSchema, D as constructConnectorCategoryConfig, O as constructConnectorUsageConfig, E as determineConnectorUsageId, k as getConnectorActionsTable };
@@ -1,5 +1,5 @@
1
1
  import { c as e, d as t, i as n, o as r, r as i } from "./componentConfig.schema-BRbvCPIW.js";
2
- import { t as a } from "./moduleConfig.schema-DOb6pxQ0.js";
2
+ import { t as a } from "./moduleConfig.schema-CRVOuOCJ.js";
3
3
  //#region src/component/module/cookbook/cookbookConfig.schema.ts
4
4
  var o = n(["list"]), s = t({
5
5
  ...a,
@@ -1,5 +1,5 @@
1
1
  import { c as e, d as t, i as n, o as r, r as i } from "./componentConfig.schema-BRbvCPIW.js";
2
- import { t as a } from "./moduleConfig.schema-DOb6pxQ0.js";
2
+ import { t as a } from "./moduleConfig.schema-CRVOuOCJ.js";
3
3
  //#region src/component/module/presenter/presenterConfig.schema.ts
4
4
  var o = n([
5
5
  "list",
@@ -0,0 +1,22 @@
1
+ import { d as e, i as t, l as n, m as r, t as i } from "./componentConfig.schema-BRbvCPIW.js";
2
+ //#region src/component/module/moduleConfig.schema.ts
3
+ var a = t([
4
+ "app",
5
+ "engine",
6
+ "connector",
7
+ "cookbook",
8
+ "presenter",
9
+ "tool"
10
+ ]), o = {
11
+ ...i,
12
+ version: r()
13
+ };
14
+ e({
15
+ ...o,
16
+ typeId: a,
17
+ vendorAccountURL: n(r()),
18
+ vendorDocumentationURL: n(r()),
19
+ vendorHomeURL: n(r())
20
+ });
21
+ //#endregion
22
+ export { o as t };
@@ -18,7 +18,6 @@ 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>;
22
21
  readonly category: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
23
22
  readonly label: import('valibot').ObjectSchema<{
24
23
  readonly en: import('valibot').StringSchema<undefined>;
@@ -45,9 +44,6 @@ export declare const connectorConfigSchema: import('valibot').ObjectSchema<{
45
44
  }, undefined>;
46
45
  }, undefined>, undefined>;
47
46
  readonly usageId: import('valibot').NullableSchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"bidirectional", undefined>, import('valibot').LiteralSchema<"destination", undefined>, import('valibot').LiteralSchema<"source", undefined>], undefined>, undefined>;
48
- readonly vendorAccountURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
49
- readonly vendorDocumentationURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
50
- readonly vendorHomeURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
51
47
  readonly version: import('valibot').StringSchema<undefined>;
52
48
  readonly firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
53
49
  readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
@@ -23,6 +23,9 @@ export declare const moduleConfigCoreFields: {
23
23
  };
24
24
  export declare const moduleConfigSchema: import('valibot').ObjectSchema<{
25
25
  readonly typeId: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"app", undefined>, import('valibot').LiteralSchema<"engine", undefined>, import('valibot').LiteralSchema<"connector", undefined>, import('valibot').LiteralSchema<"cookbook", undefined>, import('valibot').LiteralSchema<"presenter", undefined>, import('valibot').LiteralSchema<"tool", undefined>], undefined>;
26
+ readonly vendorAccountURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
27
+ readonly vendorDocumentationURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
28
+ readonly vendorHomeURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
26
29
  readonly version: import('valibot').StringSchema<undefined>;
27
30
  readonly firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
28
31
  readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "0.3.772",
3
+ "version": "0.3.774",
4
4
  "private": false,
5
5
  "description": "Common constants, types and utilities used across all DPUse projects.",
6
6
  "license": "MIT",
@@ -1,19 +0,0 @@
1
- import { d as e, i as t, m as n, t as r } from "./componentConfig.schema-BRbvCPIW.js";
2
- //#region src/component/module/moduleConfig.schema.ts
3
- var i = t([
4
- "app",
5
- "engine",
6
- "connector",
7
- "cookbook",
8
- "presenter",
9
- "tool"
10
- ]), a = {
11
- ...r,
12
- version: n()
13
- };
14
- e({
15
- ...a,
16
- typeId: i
17
- });
18
- //#endregion
19
- export { a as t };