@datapos/datapos-shared 0.3.418 → 0.3.420
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,7 +4,7 @@ import { ToolConfig } from '../tool';
|
|
|
4
4
|
import { ValueDelimiterId } from '../dataView';
|
|
5
5
|
import { ConnectionDescription, ConnectionNodeConfig } from './connection';
|
|
6
6
|
import { connectorCategoryConfigSchema, connectorConfigSchema, connectorOperationNameSchema, connectorUsageIdSchema } from './connectorConfig.schema';
|
|
7
|
-
/** Connector
|
|
7
|
+
/** Connector interface an constructor. */
|
|
8
8
|
interface ConnectorInterface extends Component {
|
|
9
9
|
abortController: AbortController | undefined;
|
|
10
10
|
readonly config: ConnectorConfig;
|
|
@@ -24,7 +24,6 @@ interface ConnectorInterface extends Component {
|
|
|
24
24
|
retrieveRecords?(connector: ConnectorInterface, options: RetrieveRecordsOptions, chunk: (records: (string[] | Record<string, unknown>)[]) => void, complete: (result: RetrieveRecordsSummary) => void): Promise<void>;
|
|
25
25
|
upsertRecords?(connector: ConnectorInterface, options: UpsertRecordsOptions): Promise<void>;
|
|
26
26
|
}
|
|
27
|
-
/** Class constructor that builds a ConnectorInterface. */
|
|
28
27
|
type ConnectorConstructor = new (toolConfigs: ToolConfig[]) => ConnectorInterface;
|
|
29
28
|
/** Operation names a connector may support. */
|
|
30
29
|
type ConnectorOperationName = InferOutput<typeof connectorOperationNameSchema>;
|
|
@@ -5,10 +5,10 @@ import { ModuleConfig } from '../module';
|
|
|
5
5
|
import { Component, ComponentConfig, ComponentReference } from '..';
|
|
6
6
|
export interface Context extends Component {
|
|
7
7
|
readonly config: ContextConfig;
|
|
8
|
-
list(
|
|
8
|
+
list?(context: Context, options?: ContextListOptions): Promise<ContextListResult>;
|
|
9
9
|
}
|
|
10
10
|
export type ContextOperationOptions = object;
|
|
11
|
-
export type
|
|
11
|
+
export type ContextListOptions = object;
|
|
12
12
|
export interface ContextListResult {
|
|
13
13
|
models: ContextModelGroupConfig[];
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.420",
|
|
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>",
|