@dpuse/dpuse-shared 0.3.732 → 0.3.735
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.
|
@@ -89,7 +89,27 @@ var m = n([
|
|
|
89
89
|
retrieveChunks: "Retrieve Chunks",
|
|
90
90
|
retrieveRecords: "Retrieve Records",
|
|
91
91
|
upsertRecords: "Upsert Records"
|
|
92
|
-
}, x =
|
|
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
|
|
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,
|
|
129
|
+
export { b as CONNECTOR_ACTION_NAME_MAP, v as connectorConfigSchema, w as constructConnectorCategoryConfig, C as determineConnectorUsageId, T as getConnectorActionsTable };
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.735",
|
|
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.
|
|
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.
|
|
149
|
+
"vitest": "^4.1.10"
|
|
150
150
|
}
|
|
151
151
|
}
|