@dpuse/dpuse-shared 1.0.125 → 1.0.127

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.
@@ -9,6 +9,13 @@ export declare const connectorCategoryConfigSchema: import('valibot').StrictObje
9
9
  readonly es: import('valibot').StringSchema<undefined>;
10
10
  }, undefined>;
11
11
  }, undefined>;
12
+ export declare const connectorItemTypeIdSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"apiEndpoint", undefined>, import('valibot').LiteralSchema<"file", undefined>, import('valibot').LiteralSchema<"table", undefined>], undefined>;
13
+ export declare const connectorItemTypeConfigSchema: import('valibot').StrictObjectSchema<{
14
+ readonly label: import('valibot').StrictObjectSchema<{
15
+ readonly en: import('valibot').StringSchema<undefined>;
16
+ readonly es: import('valibot').StringSchema<undefined>;
17
+ }, undefined>;
18
+ }, undefined>;
12
19
  export declare const connectorUsageIdSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"bidirectional", undefined>, import('valibot').LiteralSchema<"destination", undefined>, import('valibot').LiteralSchema<"source", undefined>, import('valibot').LiteralSchema<"unknown", undefined>], undefined>;
13
20
  export declare const connectorUsageConfigSchema: import('valibot').StrictObjectSchema<{
14
21
  readonly label: import('valibot').StrictObjectSchema<{
@@ -38,6 +45,7 @@ export declare const connectorConfigSchema: import('valibot').StrictObjectSchema
38
45
  readonly maxConnectionCount: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
39
46
  readonly params: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').RecordSchema<import('valibot').StringSchema<undefined>, import('valibot').StringSchema<undefined>, undefined>, undefined>, undefined>;
40
47
  }, undefined>, undefined>;
48
+ readonly itemTypeId: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"apiEndpoint", undefined>, import('valibot').LiteralSchema<"file", undefined>, import('valibot').LiteralSchema<"table", undefined>], undefined>;
41
49
  readonly usage: import('valibot').NullableSchema<import('valibot').StrictObjectSchema<{
42
50
  readonly label: import('valibot').StrictObjectSchema<{
43
51
  readonly en: import('valibot').StringSchema<undefined>;
@@ -4,7 +4,7 @@ import { EngineConnectorActionOptions } from '../engine';
4
4
  import { LocalisedConfig } from '../../../locale';
5
5
  import { ToolConfig } from '../tool';
6
6
  import { ConnectionDescriptionConfig, ConnectionNodeConfig, ObjectColumnConfig } from '../../connection';
7
- import { connectorActionNameSchema, connectorCategoryConfigSchema, connectorConfigSchema, connectorUsageConfigSchema, connectorUsageIdSchema } from './connectorConfig.schema';
7
+ import { connectorActionNameSchema, connectorCategoryConfigSchema, connectorConfigSchema, connectorItemTypeConfigSchema, connectorItemTypeIdSchema, connectorUsageConfigSchema, connectorUsageIdSchema } from './connectorConfig.schema';
8
8
  import { InferenceRecord, InferenceSummary, ParsingRecord, PreviewConfig, ValueDelimiterId } from '../../dataView';
9
9
  export { connectorConfigSchema } from './connectorConfig.schema';
10
10
  export interface ConnectorInterface extends Component {
@@ -36,6 +36,8 @@ export interface ConnectorUtilities {
36
36
  }
37
37
  export type ConnectorConfig = InferOutput<typeof connectorConfigSchema>;
38
38
  type ConnectorCategoryConfig = InferOutput<typeof connectorCategoryConfigSchema>;
39
+ type ConnectorItemTypeConfig = InferOutput<typeof connectorItemTypeConfigSchema>;
40
+ export type ConnectorItemTypeId = InferOutput<typeof connectorItemTypeIdSchema>;
39
41
  type ConnectorUsageConfig = InferOutput<typeof connectorUsageConfigSchema>;
40
42
  export interface AuditObjectContentOptions extends EngineConnectorActionOptions {
41
43
  chunkSize: number | undefined;
@@ -133,5 +135,6 @@ export interface UpsertRecordsOptions extends EngineConnectorActionOptions {
133
135
  export type ConnectorUsageId = InferOutput<typeof connectorUsageIdSchema>;
134
136
  export declare function determineConnectorUsageId(actionNames: ConnectorActionName[]): ConnectorUsageId;
135
137
  export declare const constructConnectorCategoryConfig: (id: string, localeId?: import('../../../locale').LocaleId) => LocalisedConfig<ConnectorCategoryConfig>;
138
+ export declare const constructConnectorItemTypeConfig: (id: string, localeId?: import('../../../locale').LocaleId) => LocalisedConfig<ConnectorItemTypeConfig>;
136
139
  export declare const constructConnectorUsageConfig: (id: string, localeId?: import('../../../locale').LocaleId) => LocalisedConfig<ConnectorUsageConfig>;
137
140
  export declare function getConnectorActionsTable(supported: ConnectorActionName[]): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "1.0.125",
3
+ "version": "1.0.127",
4
4
  "private": false,
5
5
  "description": "Common constants, types and utilities used across DPUse projects.",
6
6
  "license": "MIT",
@@ -65,11 +65,11 @@
65
65
  },
66
66
  "devDependencies": {
67
67
  "@dpuse/dpuse-development": "^1.0.125",
68
- "@dpuse/eslint-config-dpuse": "^1.0.139",
68
+ "@dpuse/eslint-config-dpuse": "^1.0.141",
69
69
  "@types/node": "^26.6.5",
70
- "@vitest/coverage-v8": "^5.0.4",
71
- "eslint": "^10.12.0",
72
- "fallow": "^3.33.1",
70
+ "@vitest/coverage-v8": "^5.0.5",
71
+ "eslint": "^10.13.0",
72
+ "fallow": "^3.34.1",
73
73
  "fast-check": "^4.10.2",
74
74
  "jschardet": "^4.0.0",
75
75
  "prettier": "^3.9.10",
@@ -77,6 +77,6 @@
77
77
  "typescript": "^6.0.3",
78
78
  "vite": "^8.3.4",
79
79
  "vite-plugin-dts": "^5.1.2",
80
- "vitest": "^5.0.4"
80
+ "vitest": "^5.0.5"
81
81
  }
82
82
  }