@datapos/datapos-shared 0.3.16 → 0.3.18
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/context.d.ts +30 -24
- package/dist/types/src/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,77 +1,83 @@
|
|
|
1
1
|
import { ComponentConfig, ComponentRef } from './component';
|
|
2
|
-
export interface
|
|
3
|
-
|
|
2
|
+
export interface Context {
|
|
3
|
+
readonly config: ContextConfig;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export interface ContextConfig {
|
|
6
|
+
focuses: ContextFocusConfig[];
|
|
7
|
+
}
|
|
8
|
+
export interface ContextFocusConfig extends ComponentConfig {
|
|
9
|
+
modelRefs: ContextModelConfig[];
|
|
10
|
+
}
|
|
11
|
+
export type LocaleContextFocusConfig = Omit<ContextFocusConfig, 'label' | 'description'> & {
|
|
6
12
|
label: string;
|
|
7
13
|
description: string;
|
|
8
14
|
};
|
|
9
|
-
export interface
|
|
15
|
+
export interface ContextModelConfig extends ComponentConfig {
|
|
10
16
|
diagramURL?: string;
|
|
11
|
-
dimensionGroupConfigs:
|
|
12
|
-
entityGroupConfigs:
|
|
13
|
-
secondaryMeasureGroupConfigs:
|
|
14
|
-
viewGroupConfigs:
|
|
17
|
+
dimensionGroupConfigs: ContextDimensionGroupConfig[];
|
|
18
|
+
entityGroupConfigs: ContextEntityGroupConfig[];
|
|
19
|
+
secondaryMeasureGroupConfigs: ContextSecondaryMeasureGroupConfig[];
|
|
20
|
+
viewGroupConfigs: ContextViewGroupConfig[];
|
|
15
21
|
}
|
|
16
|
-
export interface
|
|
22
|
+
export interface ContextDimensionGroupConfig {
|
|
17
23
|
id: string;
|
|
18
24
|
label: Record<string, string>;
|
|
19
25
|
description?: Record<string, unknown>;
|
|
20
26
|
dimensionRefs: ComponentRef[];
|
|
21
27
|
}
|
|
22
|
-
export interface
|
|
28
|
+
export interface ContextEntityGroupConfig {
|
|
23
29
|
id: string;
|
|
24
30
|
label: Record<string, string>;
|
|
25
31
|
description?: Record<string, unknown>;
|
|
26
32
|
entityRefs: ComponentRef[];
|
|
27
33
|
}
|
|
28
|
-
export interface
|
|
34
|
+
export interface ContextSecondaryMeasureGroupConfig {
|
|
29
35
|
id: string;
|
|
30
36
|
label: Record<string, string>;
|
|
31
37
|
description?: Record<string, unknown>;
|
|
32
38
|
secondaryMeasureRefs: ComponentRef[];
|
|
33
39
|
}
|
|
34
|
-
export interface
|
|
40
|
+
export interface ContextViewGroupConfig {
|
|
35
41
|
id: string;
|
|
36
42
|
label: Record<string, string>;
|
|
37
43
|
description?: Record<string, unknown>;
|
|
38
44
|
viewRefs: ComponentRef[];
|
|
39
45
|
}
|
|
40
|
-
export interface
|
|
46
|
+
export interface ContextDimensionConfig {
|
|
41
47
|
id: string;
|
|
42
48
|
label: Record<string, string>;
|
|
43
|
-
hierarchies:
|
|
49
|
+
hierarchies: ContextHierarchyConfig[];
|
|
44
50
|
}
|
|
45
|
-
export interface
|
|
51
|
+
export interface ContextHierarchyConfig {
|
|
46
52
|
id: string;
|
|
47
53
|
label: Record<string, string>;
|
|
48
54
|
}
|
|
49
|
-
export interface
|
|
55
|
+
export interface ContextEntityConfig {
|
|
50
56
|
id: string;
|
|
51
57
|
label: Record<string, string>;
|
|
52
58
|
labelPlural: Record<string, string>;
|
|
53
|
-
characteristics:
|
|
54
|
-
computations:
|
|
55
|
-
events:
|
|
59
|
+
characteristics: ContextEntityCharacteristicConfig[];
|
|
60
|
+
computations: ContextEntityComputationConfig[];
|
|
61
|
+
events: ContextEntityEventConfig[];
|
|
56
62
|
}
|
|
57
|
-
export interface
|
|
63
|
+
export interface ContextEntityCharacteristicConfig {
|
|
58
64
|
id: string;
|
|
59
65
|
label: Record<string, string>;
|
|
60
66
|
}
|
|
61
|
-
export interface
|
|
67
|
+
export interface ContextEntityComputationConfig {
|
|
62
68
|
id: string;
|
|
63
69
|
label: Record<string, string>;
|
|
64
70
|
}
|
|
65
|
-
export interface
|
|
71
|
+
export interface ContextEntityEventConfig {
|
|
66
72
|
id: string;
|
|
67
73
|
labelAction: Record<string, string>;
|
|
68
74
|
labelState: Record<string, string>;
|
|
69
75
|
}
|
|
70
|
-
export interface
|
|
76
|
+
export interface ContextSecondaryMeasureConfig {
|
|
71
77
|
id: string;
|
|
72
78
|
label: Record<string, string>;
|
|
73
79
|
}
|
|
74
|
-
export interface
|
|
80
|
+
export interface ContextViewConfig {
|
|
75
81
|
id: string;
|
|
76
82
|
label: Record<string, string>;
|
|
77
83
|
}
|
|
@@ -14,8 +14,8 @@ export type { PreviewResult, PreviewSettings } from './connector';
|
|
|
14
14
|
export type { RemoveSettings } from './connector';
|
|
15
15
|
export type { RetrieveResult, RetrieveSettings, RetrieveSummary, RetrieveTools } from './connector';
|
|
16
16
|
export type { UpsertSettings } from './connector';
|
|
17
|
-
export type {
|
|
18
|
-
export type {
|
|
17
|
+
export type { Context, ContextConfig, ContextFocusConfig, ContextModelConfig, ContextDimensionConfig, ContextDimensionGroupConfig, ContextEntityCharacteristicConfig, ContextEntityGroupConfig, ContextEntityComputationConfig, ContextSecondaryMeasureGroupConfig, ContextViewGroupConfig, LocaleContextFocusConfig } from './context';
|
|
18
|
+
export type { ContextEntityConfig, ContextEntityEventConfig, ContextHierarchyConfig, ContextViewConfig, Event } from './context';
|
|
19
19
|
export type { DataFormatId, EncodingConfig, RecordDelimiterId, ValueDelimiterId } from './dataView';
|
|
20
20
|
export type { DataViewConfig, DataViewContentAuditConfig, DataViewPreviewConfig, DataViewRelationshipsAuditConfig, ParsedValue } from './dataView';
|
|
21
21
|
export type { ConnectorInterfaceResult, Engine, EngineWorkerInterface } from './engine';
|