@dpuse/dpuse-shared 0.3.759 → 0.3.762
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 +6 -6
- package/dist/dpuse-shared-component.es.js +1 -1
- package/dist/dpuse-shared-componentModuleConnector.es.js +41 -33
- package/dist/dpuse-shared-componentModuleCookbook.es.js +2 -2
- package/dist/dpuse-shared-componentModulePresenter.es.js +2 -2
- package/dist/dpuse-shared-errors.es.js +1 -1
- package/dist/{moduleConfig.schema-vxTWrD6x.js → moduleConfig.schema-BLGmtg3P.js} +1 -1
- package/dist/types/src/component/index.d.ts +3 -3
- package/package.json +4 -4
- /package/dist/{componentConfig.schema-CqVgZGPq.js → config.schema-CqVgZGPq.js} +0 -0
- /package/dist/types/src/component/{componentConfig.schema.d.ts → config.schema.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -142,18 +142,18 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
|
|
|
142
142
|
|
|
143
143
|
|Chunk/Module/File|Composition|
|
|
144
144
|
|:------ |:-----------|
|
|
145
|
-
| dist/
|
|
145
|
+
| dist/config.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
|
-
| dist/dpuse-shared-component.es.js | 1.3 kB · brotli
|
|
150
|
+
| dist/dpuse-shared-component.es.js | 1.3 kB · brotli 463 B |
|
|
151
151
|
| dist/dpuse-shared-locale.es.js | 987 B · brotli 390 B |
|
|
152
152
|
| dist/dpuse-shared-componentDataView.es.js | 722 B · brotli 310 B |
|
|
153
|
-
| dist/dpuse-shared-componentModulePresenter.es.js |
|
|
154
|
-
| dist/dpuse-shared-componentModuleCookbook.es.js |
|
|
153
|
+
| dist/dpuse-shared-componentModulePresenter.es.js | 402 B · brotli 226 B |
|
|
154
|
+
| dist/dpuse-shared-componentModuleCookbook.es.js | 361 B · brotli 237 B |
|
|
155
155
|
| dist/dpuse-shared-componentModuleTool.es.js | 325 B · brotli 223 B |
|
|
156
|
-
| dist/moduleConfig.schema-
|
|
156
|
+
| dist/moduleConfig.schema-BLGmtg3P.js | 304 B · brotli 212 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,6 +1,6 @@
|
|
|
1
1
|
import { createLabelMap as e, resolveLabel as t } from "./dpuse-shared-locale.es.js";
|
|
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 "./
|
|
3
|
-
import { t as p } from "./moduleConfig.schema-
|
|
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 "./config.schema-CqVgZGPq.js";
|
|
3
|
+
import { t as p } from "./moduleConfig.schema-BLGmtg3P.js";
|
|
4
4
|
//#region src/component/module/connector/connectorConfig.schema.ts
|
|
5
5
|
var m = n([
|
|
6
6
|
"abortOperation",
|
|
@@ -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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, o as r, r as i } from "./
|
|
2
|
-
import { t as a } from "./moduleConfig.schema-
|
|
1
|
+
import { a as e, c as t, d as n, o as r, r as i } from "./config.schema-CqVgZGPq.js";
|
|
2
|
+
import { t as a } from "./moduleConfig.schema-BLGmtg3P.js";
|
|
3
3
|
//#region src/component/module/cookbook/cookbookConfig.schema.ts
|
|
4
4
|
var o = e(["list"]), s = n({
|
|
5
5
|
...a,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, o as r, r as i } from "./
|
|
2
|
-
import { t as a } from "./moduleConfig.schema-
|
|
1
|
+
import { a as e, c as t, d as n, o as r, r as i } from "./config.schema-CqVgZGPq.js";
|
|
2
|
+
import { t as a } from "./moduleConfig.schema-BLGmtg3P.js";
|
|
3
3
|
//#region src/component/module/presenter/presenterConfig.schema.ts
|
|
4
4
|
var o = e([
|
|
5
5
|
"list",
|
|
@@ -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);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { componentBaseSchema, componentConfigSchema, componentReferenceSchema, componentStatusColorIdSchema, componentStatusConfigSchema } from './
|
|
1
|
+
import { InferOutput, object } from 'valibot';
|
|
2
|
+
import { componentBaseSchema, componentConfigSchema, componentReferenceSchema, componentStatusColorIdSchema, componentStatusConfigSchema } from './config.schema';
|
|
3
3
|
import { LocaleId } from '../locale';
|
|
4
|
-
export { componentConfigSchema } from './
|
|
4
|
+
export { componentConfigSchema } from './config.schema';
|
|
5
5
|
export interface Component {
|
|
6
6
|
readonly config: ComponentConfig;
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.762",
|
|
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
|
}
|
|
File without changes
|
|
File without changes
|