@dpuse/dpuse-shared 0.3.648 → 0.3.650

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.
@@ -82,7 +82,13 @@ var m = n([
82
82
  }
83
83
  ], x = (n, r = "en") => {
84
84
  let i = b.find((e) => e.id === n);
85
- return i ? { label: t(e(i.label), r) ?? i.id } : { label: n };
85
+ return i ? {
86
+ label: t(e(i.label), r) ?? i.id,
87
+ description: ""
88
+ } : {
89
+ label: n,
90
+ description: ""
91
+ };
86
92
  };
87
93
  //#endregion
88
94
  export { y as connectorConfigSchema, x as constructConnectorCategoryConfig };
@@ -4,6 +4,7 @@ import { ToolConfig } from '../tool';
4
4
  import { ConnectionDescriptionConfig, ConnectionNodeConfig } from '../../connection';
5
5
  import { connectorCategoryConfigSchema, connectorConfigSchema, connectorOperationNameSchema, connectorUsageIdSchema } from './connectorConfig.schema';
6
6
  import { ContentAuditConfig, ParsingRecord, PreviewConfig, ValueDelimiterId } from '../../dataView';
7
+ import { LocalisedConfig } from '../../../locale';
7
8
  import { EngineConnectorActionOptions, EngineUtilities } from '../../../engine';
8
9
  export { connectorConfigSchema } from './connectorConfig.schema';
9
10
  export interface ConnectorInterface extends Component {
@@ -28,10 +29,7 @@ export interface ConnectorInterface extends Component {
28
29
  export type ConnectorConstructor = new (engineUtilities: EngineUtilities, toolConfigs: ToolConfig[]) => ConnectorInterface;
29
30
  export type ConnectorConfig = InferOutput<typeof connectorConfigSchema>;
30
31
  type ConnectorCategoryConfig = InferOutput<typeof connectorCategoryConfigSchema>;
31
- type ConnectorCategoryLocalisedConfig = Omit<ConnectorCategoryConfig, 'label'> & {
32
- label: string;
33
- };
34
- export declare const constructConnectorCategoryConfig: (id: string, localeId?: import('../../../locale').LocaleId) => ConnectorCategoryLocalisedConfig;
32
+ export declare const constructConnectorCategoryConfig: (id: string, localeId?: import('../../../locale').LocaleId) => LocalisedConfig<ConnectorCategoryConfig>;
35
33
  export type ConnectorOperationName = InferOutput<typeof connectorOperationNameSchema>;
36
34
  export interface AuditObjectContentOptions1 extends EngineConnectorActionOptions {
37
35
  chunkSize: number | undefined;
@@ -1,8 +1,9 @@
1
+ import { ComponentConfig } from '../component';
1
2
  import { EncodingTypeConfig } from '../encoding';
3
+ import { LocalisedConfig } from '../locale';
2
4
  import { ModuleConfig } from '../component/module';
3
- import { ObjectColumnConfig } from '../component/module/connector';
5
+ import { ObjectColumnConfig } from '../component/connection';
4
6
  import { ToolConfig } from '../component/module/tool';
5
- import { ComponentConfig, ComponentLocalisedConfig } from '../component';
6
7
  import { InferenceRecord, InferenceSummary, ParsingRecord } from '../component/dataView';
7
8
  export interface EngineRuntime {
8
9
  getEncodingTypeConfigs: (localeId: string) => EncodingTypeConfig[];
@@ -10,7 +11,7 @@ export interface EngineRuntime {
10
11
  }
11
12
  export interface EngineWorker {
12
13
  initialise: (options: EngineInitialiseOptions) => Promise<void>;
13
- processRequest: (id: string, config: ComponentConfig | ComponentLocalisedConfig, options: EngineAuthActionOptions | EngineConnectorActionOptions | EngineContextActionOptions, callback?: (callbackData: EngineCallbackData) => void) => Promise<unknown>;
14
+ processRequest: (id: string, config: ComponentConfig | LocalisedConfig<ComponentConfig>, options: EngineAuthActionOptions | EngineConnectorActionOptions | EngineContextActionOptions, callback?: (callbackData: EngineCallbackData) => void) => Promise<unknown>;
14
15
  }
15
16
  export interface EngineConfig extends ModuleConfig {
16
17
  typeId: 'engine';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "0.3.648",
3
+ "version": "0.3.650",
4
4
  "description": "Common constants, types and utilities used across all DPUse projects.",
5
5
  "license": "MIT",
6
6
  "author": "Jonathan Terrell <terrell.jm@gmail.com>",