@datapos/datapos-shared 0.3.417 → 0.3.419
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,8 +24,7 @@ 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
|
-
|
|
28
|
-
type ConnectorConstructor = new (config: ConnectorConfig, toolConfigs: ToolConfig[]) => ConnectorInterface;
|
|
27
|
+
type ConnectorConstructor = new (toolConfigs: ToolConfig[]) => ConnectorInterface;
|
|
29
28
|
/** Operation names a connector may support. */
|
|
30
29
|
type ConnectorOperationName = InferOutput<typeof connectorOperationNameSchema>;
|
|
31
30
|
/** Connector data pipeline usage identifiers. */
|
|
@@ -5,7 +5,7 @@ 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(settings?: ContextListSettings): Promise<ContextListResult>;
|
|
8
|
+
list?(settings?: ContextListSettings): Promise<ContextListResult>;
|
|
9
9
|
}
|
|
10
10
|
export type ContextOperationOptions = object;
|
|
11
11
|
export type ContextListSettings = object;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.419",
|
|
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>",
|