@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
|
-
|
|
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
|
-
]),
|
|
26
|
+
]), g = i({ label: n }), _ = o([
|
|
27
27
|
"bidirectional",
|
|
28
28
|
"destination",
|
|
29
29
|
"source"
|
|
30
|
-
]),
|
|
30
|
+
]), v = i({ label: n }), y = o([
|
|
31
31
|
"apiKey",
|
|
32
32
|
"disabled",
|
|
33
33
|
"oAuth2",
|
|
34
34
|
"none"
|
|
35
|
-
]),
|
|
36
|
-
authMethodId:
|
|
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
|
-
}),
|
|
43
|
+
}), x = i({
|
|
44
44
|
...p,
|
|
45
45
|
typeId: r("connector"),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
],
|
|
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
|
-
},
|
|
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
|
-
],
|
|
126
|
+
], T = /* @__PURE__ */ new Set([
|
|
126
127
|
"createObject",
|
|
127
128
|
"dropObject",
|
|
128
129
|
"removeRecords",
|
|
129
130
|
"upsertRecords"
|
|
130
|
-
]),
|
|
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
|
|
142
|
+
function D(e) {
|
|
142
143
|
let t = !1, n = !1;
|
|
143
|
-
for (let r of e)
|
|
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
|
|
147
|
-
let i =
|
|
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
|
-
},
|
|
160
|
-
let i =
|
|
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
|
|
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(
|
|
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 {
|
|
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>;
|