@dpuse/dpuse-shared 0.3.814 → 0.3.816
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.
|
@@ -32,24 +32,24 @@ var m = o([
|
|
|
32
32
|
"disabled",
|
|
33
33
|
"oAuth2",
|
|
34
34
|
"none"
|
|
35
|
-
]), b = i({
|
|
35
|
+
]), b = u(c(), c()), x = i({
|
|
36
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
|
-
params: a(l(
|
|
43
|
-
}),
|
|
42
|
+
params: a(l(b))
|
|
43
|
+
}), S = 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(), x),
|
|
50
50
|
usage: s(v),
|
|
51
51
|
usageId: s(_)
|
|
52
|
-
}),
|
|
52
|
+
}), C = [
|
|
53
53
|
{
|
|
54
54
|
id: "application",
|
|
55
55
|
label: {
|
|
@@ -78,7 +78,7 @@ var m = o([
|
|
|
78
78
|
es: "Almacén de Archivos"
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
],
|
|
81
|
+
], w = {
|
|
82
82
|
abortOperation: "Abort Operation",
|
|
83
83
|
auditObjectContent: "Audit Object Content",
|
|
84
84
|
createObject: "Create Object",
|
|
@@ -94,7 +94,7 @@ var m = o([
|
|
|
94
94
|
retrieveChunks: "Retrieve Chunks",
|
|
95
95
|
retrieveRecords: "Retrieve Records",
|
|
96
96
|
upsertRecords: "Upsert Records"
|
|
97
|
-
},
|
|
97
|
+
}, T = [
|
|
98
98
|
{
|
|
99
99
|
id: "bidirectional",
|
|
100
100
|
label: {
|
|
@@ -123,12 +123,12 @@ var m = o([
|
|
|
123
123
|
es: "Desconocido"
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
],
|
|
126
|
+
], E = /* @__PURE__ */ new Set([
|
|
127
127
|
"createObject",
|
|
128
128
|
"dropObject",
|
|
129
129
|
"removeRecords",
|
|
130
130
|
"upsertRecords"
|
|
131
|
-
]),
|
|
131
|
+
]), D = /* @__PURE__ */ new Set([
|
|
132
132
|
"auditObjectContent",
|
|
133
133
|
"findObject",
|
|
134
134
|
"getInfo",
|
|
@@ -139,13 +139,13 @@ var m = o([
|
|
|
139
139
|
"retrieveChunks",
|
|
140
140
|
"retrieveRecords"
|
|
141
141
|
]);
|
|
142
|
-
function
|
|
142
|
+
function O(e) {
|
|
143
143
|
let t = !1, n = !1;
|
|
144
|
-
for (let r of e)
|
|
144
|
+
for (let r of e) D.has(r) && (t = !0), E.has(r) && (n = !0);
|
|
145
145
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "source";
|
|
146
146
|
}
|
|
147
|
-
var
|
|
148
|
-
let i =
|
|
147
|
+
var k = (n, r = "en") => {
|
|
148
|
+
let i = C.find((e) => e.id === n);
|
|
149
149
|
if (i) {
|
|
150
150
|
let n = e(i.label);
|
|
151
151
|
return {
|
|
@@ -157,8 +157,8 @@ var O = (n, r = "en") => {
|
|
|
157
157
|
label: n,
|
|
158
158
|
description: ""
|
|
159
159
|
};
|
|
160
|
-
},
|
|
161
|
-
let i =
|
|
160
|
+
}, A = (n, r = "en") => {
|
|
161
|
+
let i = T.find((e) => e.id === n);
|
|
162
162
|
if (i) {
|
|
163
163
|
let n = e(i.label);
|
|
164
164
|
return {
|
|
@@ -171,11 +171,11 @@ var O = (n, r = "en") => {
|
|
|
171
171
|
description: ""
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
|
-
function
|
|
174
|
+
function j(e) {
|
|
175
175
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
176
176
|
n += "|:----|:-------:|\n";
|
|
177
|
-
for (let e of Object.keys(
|
|
177
|
+
for (let e of Object.keys(w)) n += `| ${w[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
178
178
|
return n;
|
|
179
179
|
}
|
|
180
180
|
//#endregion
|
|
181
|
-
export {
|
|
181
|
+
export { w as CONNECTOR_ACTION_NAME_MAP, S as connectorConfigSchema, k as constructConnectorCategoryConfig, A as constructConnectorUsageConfig, O as determineConnectorUsageId, j as getConnectorActionsTable };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.816",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Common constants, types and utilities used across all DPUse projects.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -163,12 +163,12 @@
|
|
|
163
163
|
"test": "node -e \"import('@dpuse/dpuse-development').then(m => m.testProject())\""
|
|
164
164
|
},
|
|
165
165
|
"devDependencies": {
|
|
166
|
-
"@dpuse/dpuse-development": "^0.3.
|
|
166
|
+
"@dpuse/dpuse-development": "^0.3.719",
|
|
167
167
|
"@dpuse/eslint-config-dpuse": "^1.0.117",
|
|
168
168
|
"@types/node": "^26.6.2",
|
|
169
169
|
"eslint": "^10.11.0",
|
|
170
170
|
"file-type": "^22.1.1",
|
|
171
|
-
"prettier": "^3.9.
|
|
171
|
+
"prettier": "^3.9.9",
|
|
172
172
|
"sonda": "^0.14.0",
|
|
173
173
|
"typescript": "^6.0.3",
|
|
174
174
|
"valibot": "^1.5.0",
|