@datapos/datapos-shared 0.3.380 → 0.3.384
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.
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import { connectorConfigSchema as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
return new Map(
|
|
1
|
+
import { connectorConfigSchema as r } from "./datapos-shared.es.js";
|
|
2
|
+
const e = (a) => {
|
|
3
|
+
const t = Object.entries(a).filter((n) => typeof n[1] == "string");
|
|
4
|
+
return new Map(t);
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
async function i(e, o) {
|
|
8
|
-
console.log("loadToolForConnector", e, o);
|
|
9
|
-
const t = `datapos-tool-${o}`, a = e.find((r) => r.id === t);
|
|
10
|
-
if (!a) throw new Error(`Connector could not load unknown tool '${o}'.`);
|
|
11
|
-
const l = await import(`https://engine-eu.datapos.app/tools/${o}_v${a.version}/${t}.es.js`);
|
|
12
|
-
return new l.Tool();
|
|
13
|
-
}
|
|
6
|
+
e({ "en-gb": "Application" }), e({ "en-gb": "Curated Dataset" }), e({ "en-gb": "Database" }), e({ "en-gb": "File Store" });
|
|
14
7
|
export {
|
|
15
|
-
|
|
16
|
-
i as loadToolForConnector
|
|
8
|
+
r as connectorConfigSchema
|
|
17
9
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
async function c(n, o) {
|
|
2
|
+
console.log("loadToolForConnector", n, o);
|
|
3
|
+
const t = `datapos-tool-${o}`, e = n.find((s) => s.id === t);
|
|
4
|
+
if (!e) throw new Error(`Connector could not load unknown tool '${o}'.`);
|
|
5
|
+
const l = await import(`https://engine-eu.datapos.app/tools/${o}_v${e.version}/${t}.es.js`);
|
|
6
|
+
return new l.Tool();
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
c as loadTool
|
|
10
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { InferOutput } from 'valibot';
|
|
2
2
|
import { Component } from '..';
|
|
3
3
|
import { connectorConfigSchema } from './connectorConfig.schema';
|
|
4
|
+
import { ToolConfig } from '../tool';
|
|
4
5
|
import { ConnectionConfig, ConnectionDescription, ConnectionNodeConfig } from './connection';
|
|
5
6
|
import { DataViewContentAuditConfig, ValueDelimiterId } from '../dataView';
|
|
6
|
-
import { ToolConfig } from '../../index';
|
|
7
7
|
/** Authentication method identifiers supported by a connector implementation. */
|
|
8
8
|
/** Connector implementation. */
|
|
9
9
|
/** Category identifiers used for grouping and filtering connectors. */
|
|
@@ -155,11 +155,8 @@ interface ConnectorCallbackData {
|
|
|
155
155
|
typeId: string;
|
|
156
156
|
properties: Record<string, unknown>;
|
|
157
157
|
}
|
|
158
|
-
/** Load tool for connector. */
|
|
159
|
-
declare function loadToolForConnector<T>(toolConfigs: ToolConfig[], toolId: string): Promise<T>;
|
|
160
158
|
/** Exports. */
|
|
161
159
|
export type { ConnectionColumnConfig, ConnectionConfig, ConnectionNodeConfig, Encoding, UsageTypeId } from './connection';
|
|
162
160
|
export type { Connector, ConnectorCallbackData, ConnectorConfig, ConnectorLocalisedConfig, ConnectorOperationSettings };
|
|
163
161
|
export type { AuditContentResult, AuditContentSettings, CreateSettings, DropSettings, FindResult, FindSettings, GetReadableStreamResult, GetReadableStreamSettings, GetRecordResult, GetRecordSettings, InitialiseSettings, ListResult, ListSettings, PreviewResult, PreviewSettings, RemoveSettings, RetrieveChunksResult, RetrieveChunksSettings, RetrieveChunksSummary, RetrieveRecordsResult, RetrieveRecordsSettings, RetrieveRecordsSummary, UpsertSettings };
|
|
164
|
-
export { loadToolForConnector };
|
|
165
162
|
export { connectorConfigSchema } from './connectorConfig.schema';
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { ModuleConfig } from '..';
|
|
2
|
-
|
|
2
|
+
/** Tool configuration. */
|
|
3
|
+
interface ToolConfig extends ModuleConfig {
|
|
3
4
|
typeId: 'tool';
|
|
4
5
|
}
|
|
6
|
+
/** Load tool. */
|
|
7
|
+
declare function loadTool<T>(toolConfigs: ToolConfig[], toolId: string): Promise<T>;
|
|
8
|
+
export { loadTool, type ToolConfig };
|
|
@@ -51,7 +51,6 @@ export type { Presenter, PresenterConfig, PresenterLocalisedConfig, PresenterOpe
|
|
|
51
51
|
/** Interfaces/Types - Presenter presentation. */
|
|
52
52
|
export type { PresentationConfig, PresentationView } from './component/presenter/presentation';
|
|
53
53
|
export type { PresentationCategoryId, PresentationCartesianTypeId, PresentationPolarTypeId, PresentationRangeTypeId, PresentationVisualConfig, PresentationVisualContentConfig, PresentationVisualViewConfig, PresentationVisualCartesianChartViewConfig, PresentationVisualChordDiagramViewConfig, PresentationVisualPeriodFlowBoundariesChartViewConfig, PresentationVisualPolarChartViewConfig, PresentationVisualRangeChartViewConfig, PresentationVisualSankeyDiagramViewConfig, PresentationVisualStreamGraphViewConfig, PresentationVisualValueTableViewConfig } from './component/presenter/presentation';
|
|
54
|
-
export type { ToolConfig } from './component/tool';
|
|
55
54
|
/** Composables */
|
|
56
55
|
export { type CytoscapeJSView, useCytoscapeJS } from './composables/useCytoscapeJS';
|
|
57
56
|
export { useDataTable } from './composables/useDataTable';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.384",
|
|
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>",
|
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
"import": "./dist/datapos-shared-connector.es.js",
|
|
26
26
|
"types": "./dist/types/src/component/connector/index.d.ts"
|
|
27
27
|
},
|
|
28
|
+
"./component/tools": {
|
|
29
|
+
"import": "./dist/datapos-shared-tools.es.js",
|
|
30
|
+
"types": "./dist/types/src/component/tool/index.d.ts"
|
|
31
|
+
},
|
|
28
32
|
"./errors": {
|
|
29
33
|
"import": "./dist/datapos-shared-errors.es.js",
|
|
30
34
|
"types": "./dist/types/src/errors/index.d.ts"
|