@dpuse/dpuse-shared 0.3.733 → 0.3.736

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.
@@ -435,7 +435,6 @@ var O = (e) => /* @__PURE__ */ D(e.map((e) => /* @__PURE__ */ y(e))), k = /* @__
435
435
  description: A,
436
436
  icon: /* @__PURE__ */ b(/* @__PURE__ */ T()),
437
437
  iconDark: /* @__PURE__ */ b(/* @__PURE__ */ T()),
438
- iconNeutral: /* @__PURE__ */ b(/* @__PURE__ */ T()),
439
438
  order: /* @__PURE__ */ x(),
440
439
  path: /* @__PURE__ */ T()
441
440
  }), L = {
@@ -445,7 +444,6 @@ var O = (e) => /* @__PURE__ */ D(e.map((e) => /* @__PURE__ */ y(e))), k = /* @__
445
444
  firstCreatedAt: /* @__PURE__ */ b(/* @__PURE__ */ x()),
446
445
  icon: /* @__PURE__ */ b(/* @__PURE__ */ T()),
447
446
  iconDark: /* @__PURE__ */ b(/* @__PURE__ */ T()),
448
- iconNeutral: /* @__PURE__ */ b(/* @__PURE__ */ T()),
449
447
  lastUpdatedAt: /* @__PURE__ */ b(/* @__PURE__ */ x()),
450
448
  status: /* @__PURE__ */ b(F),
451
449
  statusId: /* @__PURE__ */ b(P)
@@ -1,5 +1,5 @@
1
1
  import "./dpuse-shared-locale.es.js";
2
- import { n as e } from "./componentConfig.schema-dBVLwQIt.js";
2
+ import { n as e } from "./componentConfig.schema-DzuoA1f0.js";
3
3
  //#region src/component/index.ts
4
4
  var t = [
5
5
  {
@@ -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 "./componentConfig.schema-dBVLwQIt.js";
3
- import { t as p } from "./moduleConfig.schema-CUHmgYLu.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 "./componentConfig.schema-DzuoA1f0.js";
3
+ import { t as p } from "./moduleConfig.schema-COF8ocp_.js";
4
4
  //#region src/component/module/connector/connectorConfig.schema.ts
5
5
  var m = n([
6
6
  "abortOperation",
@@ -89,7 +89,27 @@ var m = n([
89
89
  retrieveChunks: "Retrieve Chunks",
90
90
  retrieveRecords: "Retrieve Records",
91
91
  upsertRecords: "Upsert Records"
92
- }, x = (n, r = "en") => {
92
+ }, x = /* @__PURE__ */ new Set([
93
+ "createObject",
94
+ "dropObject",
95
+ "removeRecords",
96
+ "upsertRecords"
97
+ ]), S = /* @__PURE__ */ new Set([
98
+ "auditObjectContent",
99
+ "findObject",
100
+ "getReadableStream",
101
+ "getRecord",
102
+ "listNodes",
103
+ "previewObject",
104
+ "retrieveChunks",
105
+ "retrieveRecords"
106
+ ]);
107
+ function C(e) {
108
+ let t = !1, n = !1;
109
+ for (let r of e) S.has(r) && (t = !0), x.has(r) && (n = !0);
110
+ return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
111
+ }
112
+ var w = (n, r = "en") => {
93
113
  let i = y.find((e) => e.id === n);
94
114
  return i ? {
95
115
  label: t(e(i.label), r) ?? i.id,
@@ -99,11 +119,11 @@ var m = n([
99
119
  description: []
100
120
  };
101
121
  };
102
- function S(e) {
122
+ function T(e) {
103
123
  let t = new Set(e), n = "|Action|Supported|\n";
104
124
  n += "|:----|:-------:|\n";
105
125
  for (let e of Object.keys(b)) n += `| ${b[e]} | ${t.has(e) ? "✓" : ""} |\n`;
106
126
  return n;
107
127
  }
108
128
  //#endregion
109
- export { b as CONNECTOR_ACTION_NAME_MAP, v as connectorConfigSchema, x as constructConnectorCategoryConfig, S as getConnectorActionsTable };
129
+ export { b as CONNECTOR_ACTION_NAME_MAP, v as connectorConfigSchema, w as constructConnectorCategoryConfig, C as determineConnectorUsageId, T as getConnectorActionsTable };
@@ -1,5 +1,5 @@
1
- import { a as e, c as t, d as n, o as r, r as i, t as a, u as o } from "./componentConfig.schema-dBVLwQIt.js";
2
- import { t as s } from "./moduleConfig.schema-CUHmgYLu.js";
1
+ import { a as e, c as t, d as n, o as r, r as i, t as a, u as o } from "./componentConfig.schema-DzuoA1f0.js";
2
+ import { t as s } from "./moduleConfig.schema-COF8ocp_.js";
3
3
  //#region src/component/module/context/contextConfig.schema.ts
4
4
  var c = n({
5
5
  typeId: t("contextArea"),
@@ -1,5 +1,5 @@
1
- import { a as e, c as t, d as n, o as r, r as i } from "./componentConfig.schema-dBVLwQIt.js";
2
- import { t as a } from "./moduleConfig.schema-CUHmgYLu.js";
1
+ import { a as e, c as t, d as n, o as r, r as i } from "./componentConfig.schema-DzuoA1f0.js";
2
+ import { t as a } from "./moduleConfig.schema-COF8ocp_.js";
3
3
  //#region src/component/module/presenter/presenterConfig.schema.ts
4
4
  var o = e([
5
5
  "list",
@@ -1,4 +1,4 @@
1
- import { a as e, d as t, m as n, t as r } from "./componentConfig.schema-dBVLwQIt.js";
1
+ import { a as e, d as t, m as n, t as r } from "./componentConfig.schema-DzuoA1f0.js";
2
2
  //#region src/component/module/moduleConfig.schema.ts
3
3
  var i = e([
4
4
  "app",
@@ -17,7 +17,6 @@ export declare const componentReferenceSchema: import('valibot').ObjectSchema<{
17
17
  }, undefined>;
18
18
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
19
19
  readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
20
- readonly iconNeutral: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
21
20
  readonly order: import('valibot').NumberSchema<undefined>;
22
21
  readonly path: import('valibot').StringSchema<undefined>;
23
22
  }, undefined>;
@@ -34,7 +33,6 @@ export declare const componentConfigCoreFields: {
34
33
  firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
35
34
  icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
36
35
  iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
37
- iconNeutral: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
38
36
  lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
39
37
  status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
40
38
  readonly color: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"amber", undefined>, import('valibot').LiteralSchema<"green", undefined>, import('valibot').LiteralSchema<"red", undefined>, import('valibot').LiteralSchema<"other", undefined>], undefined>;
@@ -55,7 +53,6 @@ export declare const componentConfigSchema: import('valibot').ObjectSchema<{
55
53
  readonly firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
56
54
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
57
55
  readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
58
- readonly iconNeutral: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
59
56
  readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
60
57
  readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
61
58
  readonly color: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"amber", undefined>, import('valibot').LiteralSchema<"green", undefined>, import('valibot').LiteralSchema<"red", undefined>, import('valibot').LiteralSchema<"other", undefined>], undefined>;
@@ -46,7 +46,6 @@ export declare const connectorConfigSchema: import('valibot').ObjectSchema<{
46
46
  readonly firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
47
47
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
48
48
  readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
49
- readonly iconNeutral: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
50
49
  readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
51
50
  readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
52
51
  readonly color: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"amber", undefined>, import('valibot').LiteralSchema<"green", undefined>, import('valibot').LiteralSchema<"red", undefined>, import('valibot').LiteralSchema<"other", undefined>], undefined>;
@@ -132,5 +132,7 @@ export interface UpsertRecordsOptions extends EngineConnectorActionOptions {
132
132
  path: string;
133
133
  }
134
134
  export declare const CONNECTOR_ACTION_NAME_MAP: Record<ConnectorActionName, string>;
135
+ export type ConnectorUsageId = 'bidirectional' | 'destination' | 'source' | 'unknown';
136
+ export declare function determineConnectorUsageId(actionNames: ConnectorActionName[]): ConnectorUsageId;
135
137
  export declare const constructConnectorCategoryConfig: (id: string, localeId?: import('../../../locale').LocaleId) => LocalisedConfig<ConnectorCategoryConfig>;
136
138
  export declare function getConnectorActionsTable(supported: ConnectorActionName[]): string;
@@ -14,7 +14,6 @@ export declare const contextConfigSchema: import('valibot').ObjectSchema<{
14
14
  }, undefined>;
15
15
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
16
16
  readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
17
- readonly iconNeutral: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
18
17
  readonly order: import('valibot').NumberSchema<undefined>;
19
18
  readonly path: import('valibot').StringSchema<undefined>;
20
19
  }, undefined>, undefined>;
@@ -31,7 +30,6 @@ export declare const contextConfigSchema: import('valibot').ObjectSchema<{
31
30
  readonly firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
32
31
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
33
32
  readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
34
- readonly iconNeutral: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
35
33
  readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
36
34
  readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
37
35
  readonly color: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"amber", undefined>, import('valibot').LiteralSchema<"green", undefined>, import('valibot').LiteralSchema<"red", undefined>, import('valibot').LiteralSchema<"other", undefined>], undefined>;
@@ -53,7 +51,6 @@ export declare const contextConfigSchema: import('valibot').ObjectSchema<{
53
51
  readonly firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
54
52
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
55
53
  readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
56
- readonly iconNeutral: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
57
54
  readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
58
55
  readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
59
56
  readonly color: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"amber", undefined>, import('valibot').LiteralSchema<"green", undefined>, import('valibot').LiteralSchema<"red", undefined>, import('valibot').LiteralSchema<"other", undefined>], undefined>;
@@ -13,7 +13,6 @@ export declare const cookbookConfigSchema: import('valibot').ObjectSchema<{
13
13
  }, undefined>;
14
14
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
15
15
  readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
16
- readonly iconNeutral: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
17
16
  readonly order: import('valibot').NumberSchema<undefined>;
18
17
  readonly path: import('valibot').StringSchema<undefined>;
19
18
  }, undefined>, undefined>;
@@ -30,7 +29,6 @@ export declare const cookbookConfigSchema: import('valibot').ObjectSchema<{
30
29
  readonly firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
31
30
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
32
31
  readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
33
- readonly iconNeutral: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
34
32
  readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
35
33
  readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
36
34
  readonly color: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"amber", undefined>, import('valibot').LiteralSchema<"green", undefined>, import('valibot').LiteralSchema<"red", undefined>, import('valibot').LiteralSchema<"other", undefined>], undefined>;
@@ -13,7 +13,6 @@ export declare const moduleConfigCoreFields: {
13
13
  firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
14
14
  icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
15
15
  iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
16
- iconNeutral: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
17
16
  lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
18
17
  status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
19
18
  readonly color: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"amber", undefined>, import('valibot').LiteralSchema<"green", undefined>, import('valibot').LiteralSchema<"red", undefined>, import('valibot').LiteralSchema<"other", undefined>], undefined>;
@@ -36,7 +35,6 @@ export declare const moduleConfigSchema: import('valibot').ObjectSchema<{
36
35
  readonly firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
37
36
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
38
37
  readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
39
- readonly iconNeutral: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
40
38
  readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
41
39
  readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
42
40
  readonly color: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"amber", undefined>, import('valibot').LiteralSchema<"green", undefined>, import('valibot').LiteralSchema<"red", undefined>, import('valibot').LiteralSchema<"other", undefined>], undefined>;
@@ -13,7 +13,6 @@ export declare const presenterConfigSchema: import('valibot').ObjectSchema<{
13
13
  }, undefined>;
14
14
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
15
15
  readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
16
- readonly iconNeutral: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
17
16
  readonly order: import('valibot').NumberSchema<undefined>;
18
17
  readonly path: import('valibot').StringSchema<undefined>;
19
18
  }, undefined>, undefined>;
@@ -30,7 +29,6 @@ export declare const presenterConfigSchema: import('valibot').ObjectSchema<{
30
29
  readonly firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
31
30
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
32
31
  readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
33
- readonly iconNeutral: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
34
32
  readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
35
33
  readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
36
34
  readonly color: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"amber", undefined>, import('valibot').LiteralSchema<"green", undefined>, import('valibot').LiteralSchema<"red", undefined>, import('valibot').LiteralSchema<"other", undefined>], undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "0.3.733",
3
+ "version": "0.3.736",
4
4
  "private": false,
5
5
  "description": "Common constants, types and utilities used across all DPUse projects.",
6
6
  "license": "MIT",
@@ -135,7 +135,7 @@
135
135
  "test": "node -e \"import('@dpuse/dpuse-development').then(m => m.testProject())\""
136
136
  },
137
137
  "devDependencies": {
138
- "@dpuse/dpuse-development": "^0.3.661",
138
+ "@dpuse/dpuse-development": "^0.3.664",
139
139
  "@dpuse/eslint-config-dpuse": "^1.0.105",
140
140
  "@types/node": "^26.1.0",
141
141
  "eslint": "^10.6.0",
@@ -146,6 +146,6 @@
146
146
  "valibot": "^1.4.2",
147
147
  "vite": "^8.1.3",
148
148
  "vite-plugin-dts": "^5.0.3",
149
- "vitest": "^4.1.9"
149
+ "vitest": "^4.1.10"
150
150
  }
151
151
  }