@dpuse/dpuse-shared 0.3.622 → 0.3.627

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.
Files changed (36) hide show
  1. package/dist/{locale-CrC0-wPd.js → componentConfig.schema-CpjcH9JV.js} +68 -21
  2. package/dist/dpuse-shared-component.es.js +38 -11
  3. package/dist/{dpuse-shared-dataview.es.js → dpuse-shared-componentDataView.es.js} +1 -1
  4. package/dist/dpuse-shared-componentEventQuery.es.js +0 -0
  5. package/dist/dpuse-shared-componentModule.es.js +0 -0
  6. package/dist/dpuse-shared-componentModuleConnector.es.js +88 -0
  7. package/dist/dpuse-shared-componentModuleContext.es.js +16 -0
  8. package/dist/dpuse-shared-componentModulePresenter.es.js +15 -0
  9. package/dist/dpuse-shared-componentModulePresenterPresentation.es.js +0 -0
  10. package/dist/{dpuse-shared-tools.es.js → dpuse-shared-componentModuleTool.es.js} +1 -1
  11. package/dist/dpuse-shared-locale.es.js +27 -2
  12. package/dist/{moduleConfig.schema-Ct8Q53dE.js → moduleConfig.schema-DE8ldb7c.js} +4 -5
  13. package/dist/types/src/component/connection/index.d.ts +8 -30
  14. package/dist/types/src/component/dataView/index.d.ts +0 -66
  15. package/dist/types/src/component/index.d.ts +2 -2
  16. package/dist/types/src/component/module/connector/index.d.ts +32 -114
  17. package/dist/types/src/component/module/context/contextConfig.schema.d.ts +0 -3
  18. package/dist/types/src/component/module/context/index.d.ts +10 -10
  19. package/dist/types/src/component/module/index.d.ts +2 -5
  20. package/dist/types/src/component/module/presenter/index.d.ts +2 -5
  21. package/dist/types/src/component/module/presenter/{presentation.d.ts → presentation/index.d.ts} +2 -3
  22. package/dist/types/src/component/module/presenter/presenterConfig.schema.d.ts +0 -3
  23. package/dist/types/src/component/module/tool/index.d.ts +5 -0
  24. package/dist/types/src/encoding/index.d.ts +4 -17
  25. package/dist/types/src/engine/index.d.ts +1 -1
  26. package/dist/types/src/locale/index.d.ts +5 -8
  27. package/dist/types/src/locale/locale.schema.d.ts +8 -0
  28. package/dist/types/src/utilities/index.d.ts +0 -3
  29. package/package.json +26 -10
  30. package/dist/componentConfig.schema-Bvr66FJf.js +0 -68
  31. package/dist/dpuse-shared-connector.es.js +0 -76
  32. package/dist/dpuse-shared.es.js +0 -26
  33. package/dist/types/src/component/tool/index.d.ts +0 -13
  34. package/dist/types/src/index.d.ts +0 -28
  35. /package/dist/{dpuse-shared-connection.es.js → dpuse-shared-componentConnection.es.js} +0 -0
  36. /package/dist/{dpuse-shared-module.es.js → dpuse-shared-componentDimension.es.js} +0 -0
@@ -1,10 +1,11 @@
1
1
  import { InferOutput } from 'valibot';
2
2
  import { Component } from '../..';
3
- import { ToolConfig } from '../../tool';
3
+ 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
7
  import { EngineConnectorActionOptions, EngineUtilities } from '../../../engine';
8
+ export { connectorConfigSchema } from './connectorConfig.schema';
8
9
  export interface ConnectorInterface extends Component {
9
10
  abortController: AbortController | undefined;
10
11
  readonly config: ConnectorConfig;
@@ -25,39 +26,27 @@ export interface ConnectorInterface extends Component {
25
26
  upsertRecords?(options: UpsertRecordsOptions): Promise<void>;
26
27
  }
27
28
  export type ConnectorConstructor = new (engineUtilities: EngineUtilities, toolConfigs: ToolConfig[]) => ConnectorInterface;
28
- export type RetrievalTypeId = 'jsonRecordArray' | 'parsingRecordArray';
29
- export type ConnectorOperationName = InferOutput<typeof connectorOperationNameSchema>;
30
- /**
31
- * Connector data pipeline usage identifiers.
32
- */
33
- type ConnectorUsageId = InferOutput<typeof connectorUsageIdSchema>;
34
- /**
35
- * Connector configuration.
36
- */
37
- type ConnectorConfig = InferOutput<typeof connectorConfigSchema>;
38
- type ConnectorLocalisedConfig = Omit<ConnectorConfig, 'label' | 'description'> & {
29
+ export type ConnectorConfig = InferOutput<typeof connectorConfigSchema>;
30
+ export type ConnectorLocalisedConfig = Omit<ConnectorConfig, 'label' | 'description'> & {
39
31
  label: string;
40
32
  description: string;
41
33
  };
42
- /**
43
- * Audit object content options and result.
44
- */
45
- interface AuditObjectContentOptions1 extends EngineConnectorActionOptions {
34
+ type ConnectorCategoryConfig = InferOutput<typeof connectorCategoryConfigSchema>;
35
+ type ConnectorCategoryLocalisedConfig = Omit<ConnectorCategoryConfig, 'label'> & {
36
+ label: string;
37
+ };
38
+ export declare const constructConnectorCategoryConfig: (id: string, localeId?: import('../../../locale').LocaleId) => ConnectorCategoryLocalisedConfig;
39
+ export type ConnectorOperationName = InferOutput<typeof connectorOperationNameSchema>;
40
+ export interface AuditObjectContentOptions1 extends EngineConnectorActionOptions {
46
41
  chunkSize: number | undefined;
47
42
  encodingId: string;
48
43
  path: string;
49
44
  valueDelimiterId: ValueDelimiterId;
50
45
  }
51
- /**
52
- *
53
- */
54
- interface AuditObjectContentResult1 {
46
+ export interface AuditObjectContentResult1 {
55
47
  contentAuditConfig: ContentAuditConfig;
56
48
  }
57
- /**
58
- * Audit object content options.
59
- */
60
- interface AuditObjectContentOptions extends EngineConnectorActionOptions {
49
+ export interface AuditObjectContentOptions extends EngineConnectorActionOptions {
61
50
  chunkSize: number | undefined;
62
51
  encodingId: string;
63
52
  parsingToolName: string | undefined;
@@ -65,154 +54,83 @@ interface AuditObjectContentOptions extends EngineConnectorActionOptions {
65
54
  supportsTransferableStreams: boolean;
66
55
  valueDelimiterId: ValueDelimiterId;
67
56
  }
68
- /**
69
- * Audit object content result.
70
- */
71
- interface AuditObjectContentResult {
57
+ export interface AuditObjectContentResult {
72
58
  processedRowCount: number;
73
59
  durationMs: number;
74
60
  }
75
- /**
76
- * Create object options.
77
- */
78
- interface CreateObjectOptions extends EngineConnectorActionOptions {
61
+ export interface CreateObjectOptions extends EngineConnectorActionOptions {
79
62
  path: string;
80
63
  structure: string;
81
64
  }
82
- /**
83
- * Describe connection options and result.
84
- */
85
- type DescribeConnectionOptions = EngineConnectorActionOptions;
65
+ export type DescribeConnectionOptions = EngineConnectorActionOptions;
86
66
  interface DescribeConnectionResult {
87
67
  descriptionConfig: ConnectionDescriptionConfig;
88
68
  }
89
- /**
90
- * Drop object options.
91
- */
92
- interface DropObjectOptions extends EngineConnectorActionOptions {
69
+ export interface DropObjectOptions extends EngineConnectorActionOptions {
93
70
  path: string;
94
71
  }
95
- /**
96
- * Find object options and result.
97
- */
98
- interface FindObjectOptions extends EngineConnectorActionOptions {
72
+ export interface FindObjectOptions extends EngineConnectorActionOptions {
99
73
  storeId: string | undefined;
100
74
  nodeId: string;
101
75
  }
102
- interface FindObjectResult {
76
+ export interface FindObjectResult {
103
77
  path: string | undefined;
104
78
  }
105
- /**
106
- * Get readable stream options.
107
- */
108
- interface GetReadableStreamOptions extends EngineConnectorActionOptions {
79
+ export interface GetReadableStreamOptions extends EngineConnectorActionOptions {
109
80
  id: string;
110
81
  path: string;
111
82
  }
112
- /**
113
- * Get record options and result.
114
- */
115
- interface GetRecordOptions extends EngineConnectorActionOptions {
83
+ export interface GetRecordOptions extends EngineConnectorActionOptions {
116
84
  id: string;
117
85
  path: string;
118
86
  }
119
- interface GetRecordResult {
87
+ export interface GetRecordResult {
120
88
  record?: string[] | Record<string, unknown>;
121
89
  }
122
- /**
123
- * List nodes options and result.
124
- */
125
- interface ListNodesOptions extends EngineConnectorActionOptions {
90
+ export interface ListNodesOptions extends EngineConnectorActionOptions {
126
91
  folderPath: string;
127
92
  limit?: number;
128
93
  offset?: number;
129
94
  totalCount?: number;
130
95
  }
131
- interface ListNodesResult {
96
+ export interface ListNodesResult {
132
97
  cursor: string | number | undefined;
133
98
  connectionNodeConfigs: ConnectionNodeConfig[];
134
99
  isMore: boolean;
135
100
  totalCount: number;
136
101
  }
137
- /**
138
- * Preview object options.
139
- */
140
- interface PreviewObjectOptions extends EngineConnectorActionOptions {
102
+ export interface PreviewObjectOptions extends EngineConnectorActionOptions {
141
103
  chunkSize: number | undefined;
142
104
  extension: string | undefined;
143
105
  path: string;
144
106
  }
145
- /**
146
- * Remove records options.
147
- */
148
- interface RemoveRecordsOptions extends EngineConnectorActionOptions {
107
+ export interface RemoveRecordsOptions extends EngineConnectorActionOptions {
149
108
  keys: string[];
150
109
  path: string;
151
110
  }
152
- /**
153
- * Retrieve chunks options.
154
- */
155
- interface RetrieveChunksOptions extends EngineConnectorActionOptions {
111
+ export interface RetrieveChunksOptions extends EngineConnectorActionOptions {
156
112
  chunkSize: number | undefined;
157
113
  encodingId: string;
158
114
  path: string;
159
115
  valueDelimiterId: ValueDelimiterId;
160
116
  }
161
- /**
162
- * Retrieve records options and summary.
163
- */
164
- interface RetrieveRecordsOptions extends EngineConnectorActionOptions {
117
+ export interface RetrieveRecordsOptions extends EngineConnectorActionOptions {
165
118
  chunkSize: number | undefined;
166
119
  encodingId: string;
167
120
  path: string;
168
121
  valueDelimiterId: ValueDelimiterId;
169
122
  }
170
- interface RetrieveRecordsSummary {
171
- /**
172
- * Number of processed bytes.
173
- */
123
+ export interface RetrieveRecordsSummary {
174
124
  byteCount: number;
175
- /**
176
- * Count the number of lines being fully commented.
177
- */
178
125
  commentLineCount: number;
179
- /**
180
- * Count the number of processed empty lines; work only with the skip_empty_lines option or an error will be thrown
181
- * if an empty line is found.
182
- */
183
126
  emptyLineCount: number;
184
- /**
185
- * Number of lines encountered in the source dataset, start at 1 for the first line.
186
- */
187
127
  lineCount: number;
188
- /**
189
- * Number of non uniform records when relax_column_count is true.
190
- */
191
128
  nonUniformRecordCount: number;
192
- /**
193
- * Count the number of processed records.
194
- */
195
129
  recordCount: number;
196
130
  }
197
- /**
198
- * Upsert records options.
199
- */
200
- interface UpsertRecordsOptions extends EngineConnectorActionOptions {
131
+ export interface UpsertRecordsOptions extends EngineConnectorActionOptions {
201
132
  records: Record<string, unknown>[];
202
133
  path: string;
203
134
  }
204
- /**
205
- * Connector category configuration.
206
- */
207
- type ConnectorCategoryConfig = InferOutput<typeof connectorCategoryConfigSchema>;
208
- type ConnectorCategoryLocalisedConfig = Omit<ConnectorCategoryConfig, 'label'> & {
209
- label: string;
210
- };
211
- /**
212
- * Construct connector category configuration.
213
- */
214
- declare const constructConnectorCategoryConfig: (id: string, localeId?: import('../../../locale').LocaleId) => ConnectorCategoryLocalisedConfig;
215
- export { connectorConfigSchema } from './connectorConfig.schema';
216
- export { constructConnectorCategoryConfig };
217
- export type { ConnectionConfig, ConnectionLocalisedConfig, ConnectionNodeConfig, ObjectColumnConfig } from '../../connection';
218
- export type { AuditObjectContentOptions1, AuditObjectContentResult1, AuditObjectContentOptions, AuditObjectContentResult, ConnectorConfig, ConnectorLocalisedConfig, ConnectorUsageId, CreateObjectOptions, DropObjectOptions, FindObjectOptions, FindObjectResult, GetReadableStreamOptions, GetRecordOptions, GetRecordResult, ListNodesOptions, ListNodesResult, PreviewObjectOptions, RemoveRecordsOptions, RetrieveChunksOptions, RetrieveRecordsOptions, RetrieveRecordsSummary, UpsertRecordsOptions };
135
+ export type RetrievalTypeId = 'jsonRecordArray' | 'parsingRecordArray';
136
+ export type ConnectorUsageId = InferOutput<typeof connectorUsageIdSchema>;
@@ -1,6 +1,3 @@
1
- /**
2
- * Context schema.
3
- */
4
1
  export declare const contextConfigSchema: import('valibot').ObjectSchema<{
5
2
  readonly typeId: import('valibot').LiteralSchema<"context", undefined>;
6
3
  readonly models: import('valibot').ArraySchema<import('valibot').ObjectSchema<{
@@ -4,15 +4,10 @@ import { EngineContextActionOptions } from '../../../engine';
4
4
  import { LocaleLabel } from '../../../locale';
5
5
  import { ModuleConfig } from '..';
6
6
  import { Component, ComponentConfig, ComponentReference } from '../..';
7
- export interface Context extends Component {
7
+ export { contextConfigSchema } from './contextConfig.schema';
8
+ export interface ContextInterface extends Component {
8
9
  readonly config: ContextConfig;
9
- listContextFocuses?(context: Context, options?: ListContextOptions): Promise<ContextListResult>;
10
- }
11
- export interface ListContextOptions extends EngineContextActionOptions {
12
- placeholder: unknown;
13
- }
14
- export interface ContextListResult {
15
- models: ContextModelGroupConfig[];
10
+ listContextFocuses?(context: ContextInterface, options?: ListContextOptions): Promise<ContextListResult>;
16
11
  }
17
12
  export type ContextConfig = InferOutput<typeof contextConfigSchema>;
18
13
  export interface ContextConfig1 extends ModuleConfig {
@@ -20,11 +15,11 @@ export interface ContextConfig1 extends ModuleConfig {
20
15
  operations: ContextOperation[];
21
16
  typeId: 'context';
22
17
  }
23
- export type ContextOperation = 'list';
24
18
  export type ContextLocalisedConfig = Omit<ContextConfig, 'label' | 'description'> & {
25
19
  label: string;
26
20
  description: string;
27
21
  };
22
+ export type ContextOperation = 'list';
28
23
  export interface ContextModelGroupConfig extends ComponentConfig {
29
24
  modelRefs: ComponentReference[];
30
25
  order: number;
@@ -135,4 +130,9 @@ export type ContextModelSecondaryMeasureLocalisedConfig = Omit<ContextModelSecon
135
130
  label: string;
136
131
  description: string;
137
132
  };
138
- export { contextConfigSchema } from './contextConfig.schema';
133
+ export interface ListContextOptions extends EngineContextActionOptions {
134
+ placeholder: unknown;
135
+ }
136
+ export interface ContextListResult {
137
+ models: ContextModelGroupConfig[];
138
+ }
@@ -1,7 +1,4 @@
1
1
  import { InferOutput } from 'valibot';
2
2
  import { moduleConfigSchema, moduleTypeIdSchema } from './moduleConfig.schema';
3
- /** Module configuration. */
4
- type ModuleConfig = InferOutput<typeof moduleConfigSchema>;
5
- /** Module type identifier. */
6
- type ModuleTypeId = InferOutput<typeof moduleTypeIdSchema>;
7
- export type { ModuleConfig, ModuleTypeId };
3
+ export type ModuleConfig = InferOutput<typeof moduleConfigSchema>;
4
+ export type ModuleTypeId = InferOutput<typeof moduleTypeIdSchema>;
@@ -1,10 +1,7 @@
1
1
  import { ModuleConfig } from '..';
2
2
  import { Component, ComponentReference } from '../..';
3
- /**
4
- * Presenter composables, constants, errors, types/interfaces and utilities.
5
- */
6
3
  export { presenterConfigSchema } from './presenterConfig.schema';
7
- export interface Presenter extends Component {
4
+ export interface PresenterInterface extends Component {
8
5
  readonly config: PresenterConfig;
9
6
  list(): ComponentReference[];
10
7
  render(presentationPath: string, renderTo: HTMLElement, data?: unknown): Promise<void>;
@@ -15,8 +12,8 @@ export interface PresenterConfig extends ModuleConfig {
15
12
  operations: PresenterOperation[];
16
13
  typeId: 'presenter';
17
14
  }
18
- export type PresenterOperation = 'list' | 'render' | 'setColorMode';
19
15
  export type PresenterLocalisedConfig = Omit<PresenterConfig, 'label' | 'description'> & {
20
16
  label: string;
21
17
  description: string;
22
18
  };
19
+ export type PresenterOperation = 'list' | 'render' | 'setColorMode';
@@ -1,6 +1,6 @@
1
1
  import { InferOutput } from 'valibot';
2
- import { ComponentConfig } from '../..';
3
- import { presenterConfigSchema } from './presenterConfig.schema';
2
+ import { ComponentConfig } from '../../..';
3
+ import { presenterConfigSchema } from '../presenterConfig.schema';
4
4
  export type PresentationConfig = InferOutput<typeof presenterConfigSchema>;
5
5
  export interface PresentationConfig1 extends ComponentConfig {
6
6
  content: string;
@@ -74,4 +74,3 @@ export interface PresentationView {
74
74
  resize: () => void;
75
75
  vendorId: string;
76
76
  }
77
- export { presenterConfigSchema } from './presenterConfig.schema';
@@ -1,6 +1,3 @@
1
- /**
2
- * Presenter schema (drafted by Copilot).
3
- */
4
1
  export declare const presenterConfigSchema: import('valibot').ObjectSchema<{
5
2
  readonly typeId: import('valibot').LiteralSchema<"presenter", undefined>;
6
3
  readonly presentations: import('valibot').ArraySchema<import('valibot').ObjectSchema<{
@@ -0,0 +1,5 @@
1
+ import { ModuleConfig } from '..';
2
+ export interface ToolConfig extends ModuleConfig {
3
+ typeId: 'tool';
4
+ }
5
+ export declare function loadTool<T>(toolConfigs: ToolConfig[], toolId: string): Promise<T>;
@@ -1,26 +1,13 @@
1
- /**
2
- * Encoding.
3
- */
4
- /**
5
- * Encoding configuration.
6
- */
7
- interface EncodingConfig {
1
+ export interface EncodingConfig {
8
2
  id: string;
9
3
  confidenceLevel: number | undefined;
10
4
  }
11
- /**
12
- * Encoding type configuration.
13
- */
14
- interface EncodingTypeConfig {
5
+ export interface EncodingTypeConfig {
15
6
  id: string;
16
7
  groupLabel: string;
17
8
  label: string;
18
9
  isDetectable: boolean;
19
10
  isDecodable: boolean;
20
11
  }
21
- declare const encodingConfigMap: Record<string, EncodingTypeConfig>;
22
- /**
23
- * Get encoding type configurations.
24
- */
25
- declare function getEncodingTypeConfigs(localeId?: string): EncodingTypeConfig[];
26
- export { type EncodingConfig, encodingConfigMap, type EncodingTypeConfig, getEncodingTypeConfigs };
12
+ export declare const encodingConfigMap: Record<string, EncodingTypeConfig>;
13
+ export declare function getEncodingTypeConfigs(localeId?: string): EncodingTypeConfig[];
@@ -1,7 +1,7 @@
1
1
  import { EncodingTypeConfig } from '../encoding';
2
2
  import { ModuleConfig } from '../component/module';
3
3
  import { ObjectColumnConfig } from '../component/module/connector';
4
- import { ToolConfig } from '../component/tool';
4
+ import { ToolConfig } from '../component/module/tool';
5
5
  import { ComponentConfig, ComponentLocalisedConfig } from '../component';
6
6
  import { InferenceRecord, InferenceSummary, ParsingRecord } from '../component/dataView';
7
7
  export interface EngineRuntime {
@@ -1,11 +1,3 @@
1
- export declare const localeLabelSchema: import('valibot').ObjectSchema<{
2
- readonly en: import('valibot').StringSchema<undefined>;
3
- readonly es: import('valibot').StringSchema<undefined>;
4
- }, undefined>;
5
- export declare const partialLocalLabelSchema: import('valibot').ObjectSchema<{
6
- readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
7
- readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
8
- }, undefined>;
9
1
  export type FlagId = 'es' | 'gb';
10
2
  export type LocaleId = 'en' | 'es';
11
3
  export type LocaleLabel = Partial<Record<LocaleId, string>>;
@@ -17,4 +9,9 @@ export declare const SUPPORTED_LANGUAGES: {
17
9
  label: string;
18
10
  }[];
19
11
  export declare function createLabelMap(labels: Record<string, string>): LocaleLabelMap;
12
+ export declare function localiseConfigs<T>(configs: {
13
+ id: string;
14
+ label: LocaleLabel;
15
+ description: LocaleLabel;
16
+ }[], localeId: LocaleId): T[];
20
17
  export declare function resolveLabel(labels: LocaleLabelMap, localeId: string, fallbackLocaleId?: LocaleId): string | undefined;
@@ -0,0 +1,8 @@
1
+ export declare const localeLabelSchema: import('valibot').ObjectSchema<{
2
+ readonly en: import('valibot').StringSchema<undefined>;
3
+ readonly es: import('valibot').StringSchema<undefined>;
4
+ }, undefined>;
5
+ export declare const partialLocaleLabelSchema: import('valibot').ObjectSchema<{
6
+ readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
7
+ readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
8
+ }, undefined>;
@@ -1,6 +1,3 @@
1
- /**
2
- * Utilities.
3
- */
4
1
  export declare function convertODataTypeIdToUsageTypeId(oDataTypeId: string): string;
5
2
  export declare function extractNameFromPath(itemPath: string): string | undefined;
6
3
  export declare function extractExtensionFromPath(itemPath: string): string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "0.3.622",
3
+ "version": "0.3.627",
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>",
@@ -17,10 +17,6 @@
17
17
  "module": "./dist/dpuse-shared.es.js",
18
18
  "types": "./dist/types/src/index.d.ts",
19
19
  "exports": {
20
- ".": {
21
- "import": "./dist/dpuse-shared.es.js",
22
- "types": "./dist/types/src/index.d.ts"
23
- },
24
20
  "./component": {
25
21
  "import": "./dist/dpuse-shared-component.es.js",
26
22
  "types": "./dist/types/src/component/index.d.ts"
@@ -33,17 +29,37 @@
33
29
  "import": "./dist/dpuse-shared-dataview.es.js",
34
30
  "types": "./dist/types/src/component/dataView/index.d.ts"
35
31
  },
32
+ "./component/dimension": {
33
+ "import": "./dist/dpuse-shared-dimension.es.js",
34
+ "types": "./dist/types/src/component/dimension/index.d.ts"
35
+ },
36
+ "./component/eventQuery": {
37
+ "import": "./dist/dpuse-shared-eventQuery.es.js",
38
+ "types": "./dist/types/src/component/eventQuery/index.d.ts"
39
+ },
36
40
  "./component/module": {
37
- "import": "./dist/dpuse-shared-module.es.js",
41
+ "import": "./dist/dpuse-shared-componentModule.es.js",
38
42
  "types": "./dist/types/src/component/module/index.d.ts"
39
43
  },
40
44
  "./component/module/connector": {
41
- "import": "./dist/dpuse-shared-connector.es.js",
45
+ "import": "./dist/dpuse-shared-componentModuleConnector.es.js",
42
46
  "types": "./dist/types/src/component/module/connector/index.d.ts"
43
47
  },
44
- "./component/tool": {
45
- "import": "./dist/dpuse-shared-tools.es.js",
46
- "types": "./dist/types/src/component/tool/index.d.ts"
48
+ "./component/module/context": {
49
+ "import": "./dist/dpuse-shared-componentModuleContext.es.js",
50
+ "types": "./dist/types/src/component/module/context/index.d.ts"
51
+ },
52
+ "./component/module/presenter": {
53
+ "import": "./dist/dpuse-shared-componentModulePresenter.es.js",
54
+ "types": "./dist/types/src/component/module/presenter/index.d.ts"
55
+ },
56
+ "./component/module/presenter/presentation": {
57
+ "import": "./dist/dpuse-shared-componentModulePresenterPresentation.es.js",
58
+ "types": "./dist/types/src/component/module/presenter/presentation/index.d.ts"
59
+ },
60
+ "./component/module/tool": {
61
+ "import": "./dist/dpuse-shared-componentModuleTool.es.js",
62
+ "types": "./dist/types/src/component/module/tool/index.d.ts"
47
63
  },
48
64
  "./encoding": {
49
65
  "import": "./dist/dpuse-shared-encoding.es.js",
@@ -1,68 +0,0 @@
1
- import { a as e, d as t, f as n, g as r, h as i, l as a, u as o } from "./locale-CrC0-wPd.js";
2
- //#region src/schema.ts
3
- var s = (e) => r(e.map((e) => a(e))), c = s([
4
- "app",
5
- "connector",
6
- "connectorConnection",
7
- "context",
8
- "contextModelGroup",
9
- "contextModel",
10
- "contextModelDimensionGroup",
11
- "contextModelDimension",
12
- "contextModelDimensionHierarchy",
13
- "contextModelEntityGroup",
14
- "contextModelEntity",
15
- "contextModelEntityDataItem",
16
- "contextModelEntityEvent",
17
- "contextModelEntityPrimaryMeasure",
18
- "contextModelSecondaryMeasureGroup",
19
- "contextModelSecondaryMeasure",
20
- "dataView",
21
- "dimension",
22
- "engine",
23
- "eventQuery",
24
- "presenter",
25
- "presenterPresentation",
26
- "tool"
27
- ]), l = s([
28
- "amber",
29
- "green",
30
- "red",
31
- "other"
32
- ]), u = s([
33
- "alpha",
34
- "beta",
35
- "generalAvailability",
36
- "notApplicable",
37
- "preAlpha",
38
- "proposed",
39
- "releaseCandidate",
40
- "unavailable",
41
- "underReview"
42
- ]), d = n({
43
- color: l,
44
- label: i()
45
- }), f = n({
46
- id: i(),
47
- label: e,
48
- description: e,
49
- icon: o(i()),
50
- iconDark: o(i()),
51
- order: t(),
52
- path: i()
53
- }), p = {
54
- id: i(),
55
- label: e,
56
- description: e,
57
- firstCreatedAt: o(t()),
58
- icon: o(i()),
59
- iconDark: o(i()),
60
- lastUpdatedAt: o(t()),
61
- status: o(d),
62
- statusId: o(u)
63
- }, m = n({
64
- ...p,
65
- typeId: c
66
- });
67
- //#endregion
68
- export { s as i, m as n, f as r, p as t };
@@ -1,76 +0,0 @@
1
- import { c as e, d as t, f as n, h as r, i, l as a, m as o, o as s, p as c, r as l, s as u, u as d } from "./locale-CrC0-wPd.js";
2
- import { i as f } from "./componentConfig.schema-Bvr66FJf.js";
3
- import { t as p } from "./moduleConfig.schema-Ct8Q53dE.js";
4
- //#region src/component/module/connector/connectorConfig.schema.ts
5
- var m = f([
6
- "application",
7
- "curatedDataset",
8
- "database",
9
- "fileStore"
10
- ]), h = n({ label: i }), g = n({
11
- authMethodId: f([
12
- "apiKey",
13
- "disabled",
14
- "oAuth2",
15
- "none"
16
- ]),
17
- activeConnectionCount: c(t()),
18
- canDescribe: c(e()),
19
- id: c(r()),
20
- label: c(i),
21
- maxConnectionCount: d(t()),
22
- params: c(u(o(r(), r())))
23
- }), _ = f([
24
- "abortOperation",
25
- "auditObjectContent",
26
- "createObject",
27
- "describeConnection",
28
- "dropObject",
29
- "findObject",
30
- "getReadableStream",
31
- "getRecord",
32
- "listNodes",
33
- "previewObject",
34
- "removeRecords",
35
- "retrieveChunks",
36
- "retrieveRecords",
37
- "upsertRecords"
38
- ]), v = f([
39
- "bidirectional",
40
- "destination",
41
- "source",
42
- "unknown"
43
- ]), y = n({
44
- ...p,
45
- typeId: a("connector"),
46
- category: d(h),
47
- categoryId: m,
48
- implementations: o(r(), g),
49
- operations: u(_),
50
- usageId: v,
51
- vendorAccountURL: d(r()),
52
- vendorDocumentationURL: d(r()),
53
- vendorHomeURL: d(r())
54
- }), b = [
55
- {
56
- id: "application",
57
- label: { en: "Application" }
58
- },
59
- {
60
- id: "curatedDataset",
61
- label: { en: "Curated Dataset" }
62
- },
63
- {
64
- id: "database",
65
- label: { en: "Database" }
66
- },
67
- {
68
- id: "fileStore",
69
- label: { en: "File Store" }
70
- }
71
- ], x = (e, t = "en") => {
72
- let n = b.find((t) => t.id === e);
73
- return n ? { label: s(l(n.label), t) ?? n.id } : { label: e };
74
- };
75
- //#endregion
76
- export { y as connectorConfigSchema, x as constructConnectorCategoryConfig };
@@ -1,26 +0,0 @@
1
- import { d as e, f as t, l as n, s as r } from "./locale-CrC0-wPd.js";
2
- import { i, r as a, t as o } from "./componentConfig.schema-Bvr66FJf.js";
3
- import { t as s } from "./moduleConfig.schema-Ct8Q53dE.js";
4
- //#region src/component/module/context/contextConfig.schema.ts
5
- var c = i(["list"]), l = t({
6
- ...o,
7
- typeId: n("contextModelGroup"),
8
- modelRefs: r(a),
9
- order: e()
10
- }), u = t({
11
- ...s,
12
- typeId: n("context"),
13
- models: r(l),
14
- operations: r(c)
15
- }), d = i([
16
- "list",
17
- "render",
18
- "setColorMode"
19
- ]), f = t({
20
- ...s,
21
- typeId: n("presenter"),
22
- presentations: r(a),
23
- operations: r(d)
24
- });
25
- //#endregion
26
- export { u as contextConfigSchema, f as presenterConfigSchema };