@dpuse/dpuse-shared 0.3.759 → 0.3.760
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,7 +144,7 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
|
|
|
144
144
|
|:------ |:-----------|
|
|
145
145
|
| dist/componentConfig.schema-CqVgZGPq.js | 10.8 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.
|
|
147
|
+
| dist/dpuse-shared-componentModuleConnector.es.js | 3.7 kB · brotli 1.2 kB |
|
|
148
148
|
| dist/dpuse-shared-utilities.es.js | 3.6 kB · brotli 1.1 kB |
|
|
149
149
|
| dist/dpuse-shared-errors.es.js | 3.5 kB · brotli 1.1 kB |
|
|
150
150
|
| dist/dpuse-shared-component.es.js | 1.3 kB · brotli 451 B |
|
|
@@ -27,32 +27,32 @@ var m = n([
|
|
|
27
27
|
"bidirectional",
|
|
28
28
|
"destination",
|
|
29
29
|
"source"
|
|
30
|
-
]), v = i({ label: o }), y =
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
]), v = i({ label: o }), y = n([
|
|
31
|
+
"apiKey",
|
|
32
|
+
"disabled",
|
|
33
|
+
"oAuth2",
|
|
34
|
+
"none"
|
|
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(o),
|
|
41
41
|
maxConnectionCount: s(f()),
|
|
42
42
|
params: a(l(u(c(), c())))
|
|
43
|
-
}),
|
|
43
|
+
}), x = i({
|
|
44
44
|
...p,
|
|
45
45
|
typeId: r("connector"),
|
|
46
46
|
actionNames: l(m),
|
|
47
47
|
category: s(g),
|
|
48
48
|
categoryId: h,
|
|
49
|
-
implementations: u(c(),
|
|
49
|
+
implementations: u(c(), b),
|
|
50
50
|
usage: s(v),
|
|
51
51
|
usageId: s(_),
|
|
52
52
|
vendorAccountURL: s(c()),
|
|
53
53
|
vendorDocumentationURL: s(c()),
|
|
54
54
|
vendorHomeURL: s(c())
|
|
55
|
-
}),
|
|
55
|
+
}), S = [
|
|
56
56
|
{
|
|
57
57
|
id: "application",
|
|
58
58
|
label: {
|
|
@@ -81,7 +81,7 @@ var m = n([
|
|
|
81
81
|
es: "Almacén de Archivos"
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
],
|
|
84
|
+
], C = {
|
|
85
85
|
abortOperation: "Abort Operation",
|
|
86
86
|
auditObjectContent: "Audit Object Content",
|
|
87
87
|
createObject: "Create Object",
|
|
@@ -97,7 +97,7 @@ var m = n([
|
|
|
97
97
|
retrieveChunks: "Retrieve Chunks",
|
|
98
98
|
retrieveRecords: "Retrieve Records",
|
|
99
99
|
upsertRecords: "Upsert Records"
|
|
100
|
-
},
|
|
100
|
+
}, w = [
|
|
101
101
|
{
|
|
102
102
|
id: "bidirectional",
|
|
103
103
|
label: {
|
|
@@ -126,12 +126,12 @@ var m = n([
|
|
|
126
126
|
es: "Desconocido"
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
],
|
|
129
|
+
], T = /* @__PURE__ */ new Set([
|
|
130
130
|
"createObject",
|
|
131
131
|
"dropObject",
|
|
132
132
|
"removeRecords",
|
|
133
133
|
"upsertRecords"
|
|
134
|
-
]),
|
|
134
|
+
]), E = /* @__PURE__ */ new Set([
|
|
135
135
|
"auditObjectContent",
|
|
136
136
|
"findObject",
|
|
137
137
|
"getInfo",
|
|
@@ -142,35 +142,43 @@ var m = n([
|
|
|
142
142
|
"retrieveChunks",
|
|
143
143
|
"retrieveRecords"
|
|
144
144
|
]);
|
|
145
|
-
function
|
|
145
|
+
function D(e) {
|
|
146
146
|
let t = !1, n = !1;
|
|
147
|
-
for (let r of e)
|
|
147
|
+
for (let r of e) E.has(r) && (t = !0), T.has(r) && (n = !0);
|
|
148
148
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "source";
|
|
149
149
|
}
|
|
150
|
-
var
|
|
151
|
-
let i =
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
150
|
+
var O = (n, r = "en") => {
|
|
151
|
+
let i = S.find((e) => e.id === n);
|
|
152
|
+
if (i) {
|
|
153
|
+
let n = e(i.label);
|
|
154
|
+
return {
|
|
155
|
+
label: t(n, r) ?? i.id,
|
|
156
|
+
description: ""
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
return {
|
|
156
160
|
label: n,
|
|
157
161
|
description: ""
|
|
158
162
|
};
|
|
159
|
-
},
|
|
160
|
-
let i =
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
}, k = (n, r = "en") => {
|
|
164
|
+
let i = w.find((e) => e.id === n);
|
|
165
|
+
if (i) {
|
|
166
|
+
let n = e(i.label);
|
|
167
|
+
return {
|
|
168
|
+
label: t(n, r) ?? i.id,
|
|
169
|
+
description: ""
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
return {
|
|
165
173
|
label: n,
|
|
166
174
|
description: ""
|
|
167
175
|
};
|
|
168
176
|
};
|
|
169
|
-
function
|
|
177
|
+
function A(e) {
|
|
170
178
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
171
179
|
n += "|:----|:-------:|\n";
|
|
172
|
-
for (let e of Object.keys(
|
|
180
|
+
for (let e of Object.keys(C)) n += `| ${C[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
173
181
|
return n;
|
|
174
182
|
}
|
|
175
183
|
//#endregion
|
|
176
|
-
export {
|
|
184
|
+
export { C as CONNECTOR_ACTION_NAME_MAP, x as connectorConfigSchema, O as constructConnectorCategoryConfig, k as constructConnectorUsageConfig, D as determineConnectorUsageId, A as getConnectorActionsTable };
|
|
@@ -97,7 +97,7 @@ function m(e, t) {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
function h(t) {
|
|
100
|
-
if (
|
|
100
|
+
if (t != null && t !== "") return t.length > e ? `${t.slice(0, e)}... [truncated]` : t;
|
|
101
101
|
}
|
|
102
102
|
function g(e) {
|
|
103
103
|
let n = e.cause == null ? null : u(e.cause);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.760",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Common constants, types and utilities used across all DPUse projects.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -145,14 +145,14 @@
|
|
|
145
145
|
"devDependencies": {
|
|
146
146
|
"@dpuse/dpuse-development": "^0.3.699",
|
|
147
147
|
"@dpuse/eslint-config-dpuse": "^1.0.113",
|
|
148
|
-
"@types/node": "^26.1.
|
|
149
|
-
"eslint": "^10.
|
|
148
|
+
"@types/node": "^26.1.2",
|
|
149
|
+
"eslint": "^10.8.0",
|
|
150
150
|
"file-type": "^22.0.1",
|
|
151
151
|
"prettier": "^3.9.6",
|
|
152
152
|
"sonda": "^0.14.0",
|
|
153
153
|
"typescript": "^6.0.3",
|
|
154
154
|
"valibot": "^1.4.2",
|
|
155
|
-
"vite": "^8.
|
|
155
|
+
"vite": "^8.2.0",
|
|
156
156
|
"vite-plugin-dts": "^5.0.3",
|
|
157
157
|
"vitest": "^4.1.10"
|
|
158
158
|
}
|