@datapos/datapos-shared 0.3.379 → 0.3.380
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.
|
@@ -4,14 +4,14 @@ const n = (e) => {
|
|
|
4
4
|
return new Map(o);
|
|
5
5
|
};
|
|
6
6
|
n({ "en-gb": "Application" }), n({ "en-gb": "Curated Dataset" }), n({ "en-gb": "Database" }), n({ "en-gb": "File Store" });
|
|
7
|
-
async function
|
|
7
|
+
async function i(e, o) {
|
|
8
8
|
console.log("loadToolForConnector", e, o);
|
|
9
|
-
const t = `datapos-tool-${o}`, a = e.
|
|
9
|
+
const t = `datapos-tool-${o}`, a = e.find((r) => r.id === t);
|
|
10
10
|
if (!a) throw new Error(`Connector could not load unknown tool '${o}'.`);
|
|
11
11
|
const l = await import(`https://engine-eu.datapos.app/tools/${o}_v${a.version}/${t}.es.js`);
|
|
12
12
|
return new l.Tool();
|
|
13
13
|
}
|
|
14
14
|
export {
|
|
15
15
|
b as connectorConfigSchema,
|
|
16
|
-
|
|
16
|
+
i as loadToolForConnector
|
|
17
17
|
};
|
|
@@ -156,7 +156,7 @@ interface ConnectorCallbackData {
|
|
|
156
156
|
properties: Record<string, unknown>;
|
|
157
157
|
}
|
|
158
158
|
/** Load tool for connector. */
|
|
159
|
-
declare function loadToolForConnector<T>(
|
|
159
|
+
declare function loadToolForConnector<T>(toolConfigs: ToolConfig[], toolId: string): Promise<T>;
|
|
160
160
|
/** Exports. */
|
|
161
161
|
export type { ConnectionColumnConfig, ConnectionConfig, ConnectionNodeConfig, Encoding, UsageTypeId } from './connection';
|
|
162
162
|
export type { Connector, ConnectorCallbackData, ConnectorConfig, ConnectorLocalisedConfig, ConnectorOperationSettings };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.380",
|
|
4
4
|
"description": "A library containing common constants, types and utilities used across all Data Positioning projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|