@dpuse/dpuse-shared 0.3.645 → 0.3.647
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.
- package/dist/types/src/component/connection/index.d.ts +1 -2
- package/dist/types/src/component/dataView/index.d.ts +1 -3
- package/dist/types/src/component/dimension/index.d.ts +0 -2
- package/dist/types/src/component/eventQuery/index.d.ts +0 -2
- package/dist/types/src/component/index.d.ts +1 -2
- package/dist/types/src/component/module/connector/index.d.ts +0 -2
- package/dist/types/src/component/module/context/index.d.ts +0 -3
- package/dist/types/src/component/module/context/model/dimension/index.d.ts +1 -3
- package/dist/types/src/component/module/context/model/entity/dataItem/index.d.ts +1 -2
- package/dist/types/src/component/module/context/model/entity/event/index.d.ts +0 -2
- package/dist/types/src/component/module/context/model/entity/index.d.ts +1 -2
- package/dist/types/src/component/module/context/model/entity/primaryMeasure/index.d.ts +1 -2
- package/dist/types/src/component/module/context/model/index.d.ts +1 -5
- package/dist/types/src/component/module/context/model/secondaryMeasure/index.d.ts +1 -2
- package/dist/types/src/component/module/presenter/index.d.ts +0 -2
- package/dist/types/src/locale/index.d.ts +5 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentConfig } from '..';
|
|
2
2
|
import { ConnectorConfig } from '../module/connector';
|
|
3
|
-
import {
|
|
3
|
+
import { LocaleLabel } from '../../locale';
|
|
4
4
|
import { DataSubtypeId, DataTypeId } from '../dataView';
|
|
5
5
|
export interface ConnectionConfig extends ComponentConfig {
|
|
6
6
|
authorisation: Record<string, ConnectionAuthorisationConfig>;
|
|
@@ -8,7 +8,6 @@ export interface ConnectionConfig extends ComponentConfig {
|
|
|
8
8
|
lastVerifiedAt: number;
|
|
9
9
|
notation: string | undefined;
|
|
10
10
|
}
|
|
11
|
-
export type ConnectionLocalisedConfig = LocalisedConfig<ConnectionConfig>;
|
|
12
11
|
export interface ConnectionAuthorisationConfig {
|
|
13
12
|
accessToken: string;
|
|
14
13
|
accountId: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FileTypeResult } from 'file-type';
|
|
2
2
|
import { Component, ComponentConfig } from '..';
|
|
3
3
|
import { ConnectionNodeConfig, ObjectColumnConfig } from '../connection';
|
|
4
|
-
import { LocalisedConfig } from '../../locale';
|
|
5
4
|
type DataViewInterface = Component;
|
|
6
5
|
interface DataViewConfig extends ComponentConfig {
|
|
7
6
|
connectionId: string | undefined;
|
|
@@ -10,7 +9,6 @@ interface DataViewConfig extends ComponentConfig {
|
|
|
10
9
|
contentAuditConfig: ContentAuditConfig | undefined;
|
|
11
10
|
relationshipsAuditConfig: RelationshipsAuditConfig | undefined;
|
|
12
11
|
}
|
|
13
|
-
type DataViewLocalisedConfig = LocalisedConfig<DataViewConfig>;
|
|
14
12
|
interface PreviewConfig {
|
|
15
13
|
asAt: number;
|
|
16
14
|
commentMarkId?: string | undefined;
|
|
@@ -136,7 +134,7 @@ interface UnknownInferenceResult {
|
|
|
136
134
|
inferredValue: null;
|
|
137
135
|
}
|
|
138
136
|
export { ORDERED_VALUE_DELIMITER_IDS };
|
|
139
|
-
export type { DataViewInterface, DataViewConfig,
|
|
137
|
+
export type { DataViewInterface, DataViewConfig, PreviewConfig, ContentAuditConfig, RelationshipsAuditConfig, DataFormatId, RecordDelimiterId, ValueDelimiterId, ParsingRecord, ParsingResult, DataTypeId, // Data type.
|
|
140
138
|
DataSubtypeId, NumericSubtypeId, // Numeric subtype and characteristics.
|
|
141
139
|
NumericSignId, NumericUnitsId, StringSubtypeId, // String subtype.
|
|
142
140
|
TemporalSubtypeId, // Temporal subtype.
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { InferOutput } from 'valibot';
|
|
2
2
|
import { componentConfigSchema, componentReferenceSchema, componentStatusColorIdSchema, componentStatusConfigSchema } from './componentConfig.schema';
|
|
3
|
-
import { LocaleId
|
|
3
|
+
import { LocaleId } from '../locale';
|
|
4
4
|
export { componentConfigSchema } from './componentConfig.schema';
|
|
5
5
|
export interface Component {
|
|
6
6
|
readonly config: ComponentConfig;
|
|
7
7
|
}
|
|
8
8
|
export type ComponentConfig = InferOutput<typeof componentConfigSchema>;
|
|
9
|
-
export type ComponentLocalisedConfig = LocalisedConfig<ComponentConfig>;
|
|
10
9
|
export type ComponentReference = InferOutput<typeof componentReferenceSchema>;
|
|
11
10
|
export type ComponentStatus = InferOutput<typeof componentStatusConfigSchema>;
|
|
12
11
|
export type ComponentStatusColorId = InferOutput<typeof componentStatusColorIdSchema>;
|
|
@@ -4,7 +4,6 @@ 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';
|
|
8
7
|
import { EngineConnectorActionOptions, EngineUtilities } from '../../../engine';
|
|
9
8
|
export { connectorConfigSchema } from './connectorConfig.schema';
|
|
10
9
|
export interface ConnectorInterface extends Component {
|
|
@@ -28,7 +27,6 @@ export interface ConnectorInterface extends Component {
|
|
|
28
27
|
}
|
|
29
28
|
export type ConnectorConstructor = new (engineUtilities: EngineUtilities, toolConfigs: ToolConfig[]) => ConnectorInterface;
|
|
30
29
|
export type ConnectorConfig = InferOutput<typeof connectorConfigSchema>;
|
|
31
|
-
export type ConnectorLocalisedConfig = LocalisedConfig<ConnectorConfig>;
|
|
32
30
|
type ConnectorCategoryConfig = InferOutput<typeof connectorCategoryConfigSchema>;
|
|
33
31
|
type ConnectorCategoryLocalisedConfig = Omit<ConnectorCategoryConfig, 'label'> & {
|
|
34
32
|
label: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { InferOutput } from 'valibot';
|
|
2
2
|
import { EngineContextActionOptions } from '../../../engine';
|
|
3
|
-
import { LocalisedConfig } from '../../../locale';
|
|
4
3
|
import { Component, ComponentConfig, ComponentReference } from '../..';
|
|
5
4
|
import { contextConfigSchema, contextOperationNameSchema } from './contextConfig.schema';
|
|
6
5
|
export { contextConfigSchema } from './contextConfig.schema';
|
|
@@ -9,13 +8,11 @@ export interface ContextInterface extends Component {
|
|
|
9
8
|
listContextFocuses?(context: ContextInterface, options?: ListContextOptions): Promise<ListContextResult>;
|
|
10
9
|
}
|
|
11
10
|
export type ContextConfig = InferOutput<typeof contextConfigSchema>;
|
|
12
|
-
export type ContextLocalisedConfig = LocalisedConfig<ContextConfig>;
|
|
13
11
|
export type ContextOperationName = InferOutput<typeof contextOperationNameSchema>;
|
|
14
12
|
export interface ContextModelGroupConfig extends ComponentConfig {
|
|
15
13
|
modelRefs: ComponentReference[];
|
|
16
14
|
order: number;
|
|
17
15
|
}
|
|
18
|
-
export type ContextModelGroupLocalisedConfig = LocalisedConfig<ContextModelGroupConfig>;
|
|
19
16
|
export interface ListContextOptions extends EngineContextActionOptions {
|
|
20
17
|
placeholder: unknown;
|
|
21
18
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { LocaleLabel
|
|
1
|
+
import { LocaleLabel } from '../../../../../locale';
|
|
2
2
|
export interface ContextModelDimensionConfig {
|
|
3
3
|
id: string;
|
|
4
4
|
label: LocaleLabel;
|
|
5
5
|
hierarchies: ContextModelDimensionHierarchyConfig[];
|
|
6
6
|
}
|
|
7
|
-
export type ContextModelDimensionLocalisedConfig = LocalisedConfig<ContextModelDimensionConfig>;
|
|
8
7
|
export interface ContextModelDimensionHierarchyConfig {
|
|
9
8
|
id: string;
|
|
10
9
|
label: LocaleLabel;
|
|
11
10
|
}
|
|
12
|
-
export type ContextModelDimensionHierarchyLocalisedConfig = LocalisedConfig<ContextModelDimensionHierarchyConfig>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { LocaleLabel
|
|
1
|
+
import { LocaleLabel } from '../../../../../../locale';
|
|
2
2
|
export interface ContextModelEntityDataItemConfig {
|
|
3
3
|
id: string;
|
|
4
4
|
label: LocaleLabel;
|
|
5
5
|
}
|
|
6
|
-
export type ContextModelEntityDataItemLocalisedConfig = LocalisedConfig<ContextModelEntityDataItemConfig>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { LocalisedConfig } from '../../../../../../locale';
|
|
2
1
|
export interface ContextModelEntityEventConfig {
|
|
3
2
|
id: string;
|
|
4
3
|
labelAction: Record<string, string>;
|
|
5
4
|
labelState: Record<string, string>;
|
|
6
5
|
}
|
|
7
|
-
export type ContextModelEntityEventLocalisedConfig = LocalisedConfig<ContextModelEntityEventConfig>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ContextModelEntityDataItemConfig } from './dataItem';
|
|
2
2
|
import { ContextModelEntityEventConfig } from './event';
|
|
3
3
|
import { ContextModelEntityPrimaryMeasureConfig } from './primaryMeasure';
|
|
4
|
-
import { LocaleLabel
|
|
4
|
+
import { LocaleLabel } from '../../../../../locale';
|
|
5
5
|
export interface ContextModelEntityConfig {
|
|
6
6
|
id: string;
|
|
7
7
|
label: LocaleLabel;
|
|
@@ -10,4 +10,3 @@ export interface ContextModelEntityConfig {
|
|
|
10
10
|
events: ContextModelEntityEventConfig[];
|
|
11
11
|
primaryMeasures: ContextModelEntityPrimaryMeasureConfig[];
|
|
12
12
|
}
|
|
13
|
-
export type ContextModelEntityLocalisedConfig = LocalisedConfig<ContextModelEntityConfig>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { LocaleLabel
|
|
1
|
+
import { LocaleLabel } from '../../../../../../locale';
|
|
2
2
|
export interface ContextModelEntityPrimaryMeasureConfig {
|
|
3
3
|
id: string;
|
|
4
4
|
label: LocaleLabel;
|
|
5
5
|
}
|
|
6
|
-
export type ContextModelEntityPrimaryMeasureLocalisedConfig = LocalisedConfig<ContextModelEntityPrimaryMeasureConfig>;
|
|
@@ -1,30 +1,26 @@
|
|
|
1
|
+
import { LocaleLabel } from '../../../../locale';
|
|
1
2
|
import { ComponentConfig, ComponentReference } from '../../..';
|
|
2
|
-
import { LocaleLabel, LocalisedConfig } from '../../../../locale';
|
|
3
3
|
export interface ContextModelConfig extends ComponentConfig {
|
|
4
4
|
diagramURL?: string;
|
|
5
5
|
dimensions: ContextModelDimensionGroupConfig[];
|
|
6
6
|
entities: ContextModelEntityGroupConfig[];
|
|
7
7
|
secondaryMeasures: ContextModelSecondaryMeasureGroupConfig[];
|
|
8
8
|
}
|
|
9
|
-
export type ContextModelLocalisedConfig = LocalisedConfig<ContextModelConfig>;
|
|
10
9
|
export interface ContextModelDimensionGroupConfig {
|
|
11
10
|
id: string;
|
|
12
11
|
label: LocaleLabel;
|
|
13
12
|
description: LocaleLabel;
|
|
14
13
|
dimensionRefs: ComponentReference[];
|
|
15
14
|
}
|
|
16
|
-
export type ContextModelDimensionGroupLocalisedConfig = LocalisedConfig<ContextModelDimensionGroupConfig>;
|
|
17
15
|
export interface ContextModelEntityGroupConfig {
|
|
18
16
|
id: string;
|
|
19
17
|
label: LocaleLabel;
|
|
20
18
|
description?: Record<string, unknown>;
|
|
21
19
|
entityRefs: ComponentReference[];
|
|
22
20
|
}
|
|
23
|
-
export type ContextModelEntityGroupLocalisedConfig = LocalisedConfig<ContextModelEntityGroupConfig>;
|
|
24
21
|
export interface ContextModelSecondaryMeasureGroupConfig {
|
|
25
22
|
id: string;
|
|
26
23
|
label: LocaleLabel;
|
|
27
24
|
description?: Record<string, unknown>;
|
|
28
25
|
secondaryMeasureRefs: ComponentReference[];
|
|
29
26
|
}
|
|
30
|
-
export type ContextModelSecondaryMeasureGroupLocalisedConfig = LocalisedConfig<ContextModelSecondaryMeasureGroupConfig>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { LocaleLabel
|
|
1
|
+
import { LocaleLabel } from '../../../../../locale';
|
|
2
2
|
export interface ContextModelSecondaryMeasureConfig {
|
|
3
3
|
id: string;
|
|
4
4
|
label: LocaleLabel;
|
|
5
5
|
}
|
|
6
|
-
export type ContextModelSecondaryMeasureLocalisedConfig = LocalisedConfig<ContextModelSecondaryMeasureConfig>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { InferOutput } from 'valibot';
|
|
2
|
-
import { LocalisedConfig } from '../../../locale';
|
|
3
2
|
import { ModuleConfig } from '..';
|
|
4
3
|
import { presenterOperationNameSchema } from './presenterConfig.schema';
|
|
5
4
|
import { Component, ComponentReference } from '../..';
|
|
@@ -15,5 +14,4 @@ export interface PresenterConfig extends ModuleConfig {
|
|
|
15
14
|
operations: PresenterOperationName[];
|
|
16
15
|
typeId: 'presenter';
|
|
17
16
|
}
|
|
18
|
-
export type PresenterLocalisedConfig = LocalisedConfig<PresenterConfig>;
|
|
19
17
|
export type PresenterOperationName = InferOutput<typeof presenterOperationNameSchema>;
|
|
@@ -2,11 +2,11 @@ export type FlagId = 'es' | 'gb';
|
|
|
2
2
|
export type LocaleId = 'en' | 'es';
|
|
3
3
|
export type LocaleLabel = Partial<Record<LocaleId, string>>;
|
|
4
4
|
export type LocaleLabelMap = ReadonlyMap<string, string>;
|
|
5
|
-
export type
|
|
5
|
+
export type LocalisedConfig<T> = Omit<T, 'label' | 'description'> & {
|
|
6
6
|
label: string;
|
|
7
7
|
description: string;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
interface UnlocalisedConfig {
|
|
10
10
|
id: string;
|
|
11
11
|
label: LocaleLabel;
|
|
12
12
|
description: LocaleLabel;
|
|
@@ -18,6 +18,7 @@ export declare const SUPPORTED_LANGUAGES: {
|
|
|
18
18
|
label: string;
|
|
19
19
|
}[];
|
|
20
20
|
export declare function createLabelMap(labels: Record<string, string>): LocaleLabelMap;
|
|
21
|
-
export declare function localiseConfig<T extends UnlocalisedConfig>(config: T, localeId: LocaleId):
|
|
22
|
-
export declare function localiseConfigs<T extends UnlocalisedConfig>(configs: T[], localeId: LocaleId):
|
|
21
|
+
export declare function localiseConfig<T extends UnlocalisedConfig>(config: T, localeId: LocaleId): LocalisedConfig<T>;
|
|
22
|
+
export declare function localiseConfigs<T extends UnlocalisedConfig>(configs: T[], localeId: LocaleId): LocalisedConfig<T>[];
|
|
23
23
|
export declare function resolveLabel(labels: LocaleLabelMap, localeId: string, fallbackLocaleId?: LocaleId): string | undefined;
|
|
24
|
+
export {};
|
package/package.json
CHANGED