@datapos/datapos-shared 0.3.306 → 0.3.307
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.307",
|
|
4
4
|
"description": "A library containing common constants, types and utilities used across all Data Positioning projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { LocalisedString } from '../../index';
|
|
2
|
-
import { Component, ComponentConfig, ComponentRef, ModuleConfig } from '..';
|
|
3
|
-
export interface Context extends Component {
|
|
4
|
-
readonly config: ContextConfig;
|
|
5
|
-
list(settings?: ContextListSettings): Promise<ContextListResult>;
|
|
6
|
-
}
|
|
7
|
-
export type ContextOperationSettings = {};
|
|
8
|
-
export type ContextListSettings = {};
|
|
9
|
-
export type ContextListResult = {
|
|
10
|
-
models: ContextModelGroupConfig[];
|
|
11
|
-
};
|
|
12
|
-
export type ContextCallbackData = {
|
|
13
|
-
typeId: string;
|
|
14
|
-
properties: Record<string, unknown>;
|
|
15
|
-
};
|
|
16
|
-
export interface ContextConfig extends ModuleConfig {
|
|
17
|
-
models: ContextModelGroupConfig[];
|
|
18
|
-
operations: ContextOperation[];
|
|
19
|
-
typeId: 'context';
|
|
20
|
-
}
|
|
21
|
-
export type ContextOperation = 'list';
|
|
22
|
-
export type ContextLocalisedConfig = Omit<ContextConfig, 'label' | 'description'> & {
|
|
23
|
-
label: string;
|
|
24
|
-
description: string;
|
|
25
|
-
};
|
|
26
|
-
export interface ContextModelGroupConfig extends ComponentConfig {
|
|
27
|
-
modelRefs: ComponentRef[];
|
|
28
|
-
order: number;
|
|
29
|
-
}
|
|
30
|
-
export type ContextModelGroupLocalisedConfig = Omit<ContextModelGroupConfig, 'label' | 'description'> & {
|
|
31
|
-
label: string;
|
|
32
|
-
description: string;
|
|
33
|
-
};
|
|
34
|
-
export interface ContextModelConfig extends ComponentConfig {
|
|
35
|
-
diagramURL?: string;
|
|
36
|
-
dimension: ContextModelDimensionGroupConfig[];
|
|
37
|
-
entities: ContextModelEntityGroupConfig[];
|
|
38
|
-
secondaryMeasures: ContextModelSecondaryMeasureGroupConfig[];
|
|
39
|
-
}
|
|
40
|
-
export type ContextModelLocalisedConfig = Omit<ContextModelConfig, 'label' | 'description'> & {
|
|
41
|
-
label: string;
|
|
42
|
-
description: string;
|
|
43
|
-
};
|
|
44
|
-
export interface ContextModelDimensionGroupConfig {
|
|
45
|
-
id: string;
|
|
46
|
-
label: Partial<LocalisedString>;
|
|
47
|
-
description: Partial<LocalisedString>;
|
|
48
|
-
dimensionRefs: ComponentRef[];
|
|
49
|
-
}
|
|
50
|
-
export type ContextModelDimensionGroupLocalisedConfig = Omit<ContextModelDimensionGroupConfig, 'label' | 'description'> & {
|
|
51
|
-
label: string;
|
|
52
|
-
description: string;
|
|
53
|
-
};
|
|
54
|
-
export interface ContextModelDimensionConfig {
|
|
55
|
-
id: string;
|
|
56
|
-
label: Partial<LocalisedString>;
|
|
57
|
-
hierarchies: ContextModelDimensionHierarchyConfig[];
|
|
58
|
-
}
|
|
59
|
-
export type ContextModelDimensionLocalisedConfig = Omit<ContextModelDimensionConfig, 'label' | 'description'> & {
|
|
60
|
-
label: string;
|
|
61
|
-
description: string;
|
|
62
|
-
};
|
|
63
|
-
export interface ContextModelDimensionHierarchyConfig {
|
|
64
|
-
id: string;
|
|
65
|
-
label: Partial<LocalisedString>;
|
|
66
|
-
}
|
|
67
|
-
export type ContextModelDimensionHierarchyLocalisedConfig = Omit<ContextModelDimensionHierarchyConfig, 'label' | 'description'> & {
|
|
68
|
-
label: string;
|
|
69
|
-
description: string;
|
|
70
|
-
};
|
|
71
|
-
export interface ContextModelEntityGroupConfig {
|
|
72
|
-
id: string;
|
|
73
|
-
label: Partial<LocalisedString>;
|
|
74
|
-
description?: Record<string, unknown>;
|
|
75
|
-
entityRefs: ComponentRef[];
|
|
76
|
-
}
|
|
77
|
-
export type ContextModelEntityGroupLocalisedConfig = Omit<ContextModelEntityGroupConfig, 'label' | 'description'> & {
|
|
78
|
-
label: string;
|
|
79
|
-
description: string;
|
|
80
|
-
};
|
|
81
|
-
export interface ContextModelEntityConfig {
|
|
82
|
-
id: string;
|
|
83
|
-
label: Partial<LocalisedString>;
|
|
84
|
-
labelPlural: Partial<LocalisedString>;
|
|
85
|
-
dataItems: ContextModelEntityDataItemConfig[];
|
|
86
|
-
events: ContextModelEntityEventConfig[];
|
|
87
|
-
primaryMeasures: ContextModelEntityPrimaryMeasureConfig[];
|
|
88
|
-
}
|
|
89
|
-
export type ContextModelEntityLocalisedConfig = Omit<ContextModelEntityConfig, 'label' | 'description'> & {
|
|
90
|
-
label: string;
|
|
91
|
-
description: string;
|
|
92
|
-
};
|
|
93
|
-
export interface ContextModelEntityDataItemConfig {
|
|
94
|
-
id: string;
|
|
95
|
-
label: Partial<LocalisedString>;
|
|
96
|
-
}
|
|
97
|
-
export type ContextModelEntityDataItemLocalisedConfig = Omit<ContextModelEntityDataItemConfig, 'label' | 'description'> & {
|
|
98
|
-
label: string;
|
|
99
|
-
description: string;
|
|
100
|
-
};
|
|
101
|
-
export interface ContextModelEntityEventConfig {
|
|
102
|
-
id: string;
|
|
103
|
-
labelAction: Record<string, string>;
|
|
104
|
-
labelState: Record<string, string>;
|
|
105
|
-
}
|
|
106
|
-
export type ContextModelEntityEventLocalisedConfig = Omit<ContextModelEntityEventConfig, 'label' | 'description'> & {
|
|
107
|
-
label: string;
|
|
108
|
-
description: string;
|
|
109
|
-
};
|
|
110
|
-
export interface ContextModelEntityPrimaryMeasureConfig {
|
|
111
|
-
id: string;
|
|
112
|
-
label: Partial<LocalisedString>;
|
|
113
|
-
}
|
|
114
|
-
export type ContextModelEntityPrimaryMeasureLocalisedConfig = Omit<ContextModelEntityPrimaryMeasureConfig, 'label' | 'description'> & {
|
|
115
|
-
label: string;
|
|
116
|
-
description: string;
|
|
117
|
-
};
|
|
118
|
-
export interface ContextModelSecondaryMeasureGroupConfig {
|
|
119
|
-
id: string;
|
|
120
|
-
label: Partial<LocalisedString>;
|
|
121
|
-
description?: Record<string, unknown>;
|
|
122
|
-
secondaryMeasureRefs: ComponentRef[];
|
|
123
|
-
}
|
|
124
|
-
export type ContextModelSecondaryMeasureGroupLocalisedConfig = Omit<ContextModelSecondaryMeasureGroupConfig, 'label' | 'description'> & {
|
|
125
|
-
label: string;
|
|
126
|
-
description: string;
|
|
127
|
-
};
|
|
128
|
-
export interface ContextModelSecondaryMeasureConfig {
|
|
129
|
-
id: string;
|
|
130
|
-
label: Partial<LocalisedString>;
|
|
131
|
-
}
|
|
132
|
-
export type ContextModelSecondaryMeasureLocalisedConfig = Omit<ContextModelSecondaryMeasureConfig, 'label' | 'description'> & {
|
|
133
|
-
label: string;
|
|
134
|
-
description: string;
|
|
135
|
-
};
|