@datapos/datapos-shared 0.3.102 → 0.3.110

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 (25) hide show
  1. package/dist/datapos-shared.es.js +116 -113
  2. package/dist/types/src/{connection.d.ts → component/connector/connection.d.ts} +3 -3
  3. package/dist/types/src/{connector.d.ts → component/connector/index.d.ts} +5 -5
  4. package/dist/types/src/component/context/index.d.ts +131 -0
  5. package/dist/types/src/{dataView.d.ts → component/dataView/index.d.ts} +9 -9
  6. package/dist/types/src/{dimension.d.ts → component/dimension/index.d.ts} +1 -1
  7. package/dist/types/src/{eventQuery.d.ts → component/eventQuery/index.d.ts} +1 -1
  8. package/dist/types/src/{component.d.ts → component/index.d.ts} +5 -5
  9. package/dist/types/src/{recipe.d.ts → component/informer/recipe.d.ts} +1 -1
  10. package/dist/types/src/{tutorial.d.ts → component/informer/tutorial.d.ts} +1 -1
  11. package/dist/types/src/{presenter.d.ts → component/presenter/index.d.ts} +6 -6
  12. package/dist/types/src/engine.d.ts +4 -4
  13. package/dist/types/src/index.d.ts +42 -33
  14. package/dist/types/src/module.d.ts +49 -0
  15. package/package.json +2 -2
  16. package/dist/types/src/Z_dataConnector.d.ts +0 -0
  17. package/dist/types/src/Z_nodeConnector.d.ts +0 -0
  18. package/dist/types/src/context.d.ts +0 -106
  19. package/dist/types/src/location.d.ts +0 -0
  20. package/dist/types/src/monitor.d.ts +0 -0
  21. package/dist/types/src/package.d.ts +0 -0
  22. package/dist/types/src/service.d.ts +0 -10
  23. package/dist/types/src/state.d.ts +0 -5
  24. /package/dist/types/src/{errors.d.ts → errors/index.d.ts} +0 -0
  25. /package/dist/types/src/{utilities.d.ts → utilities/index.d.ts} +0 -0
@@ -1,8 +1,11 @@
1
- const R = 0, F = (e) => e, L = () => Date.now(), k = {
2
- cartesian_area: { categoryId: "cartesian", typeId: "area", label: { "en-gb": "Area" }, options: { highchartsType: "area" } },
1
+ const R = 0, L = (e) => e, F = () => Date.now(), _ = {
2
+ cartesian_areaLine: { categoryId: "cartesian", typeId: "areaLine", label: { "en-gb": "Area Line" }, options: { highchartsType: "area" } },
3
+ cartesian_areaSpline: { categoryId: "cartesian", typeId: "areaSpline", label: { "en-gb": "Area Spline" }, options: { highchartsType: "area" } },
3
4
  cartesian_bar: { categoryId: "cartesian", typeId: "bar", label: { "en-gb": "Bar" }, options: { highchartsType: "bar" } },
4
5
  cartesian_column: { categoryId: "cartesian", typeId: "column", label: { "en-gb": "Column" }, options: { highchartsType: "column" } },
5
6
  cartesian_line: { categoryId: "cartesian", typeId: "line", label: { "en-gb": "Line" }, options: { highchartsType: "line" } },
7
+ cartesian_pyramid: { categoryId: "cartesian", typeId: "line", label: { "en-gb": "Pyramid" }, options: { highchartsType: "line" } },
8
+ cartesian_spline: { categoryId: "cartesian", typeId: "line", label: { "en-gb": "Spline" }, options: { highchartsType: "line" } },
6
9
  chordDiagram: { categoryId: "chordDiagram", label: { "en-gb": "Chord Diagram" }, options: {} },
7
10
  polar_area: { categoryId: "polar", typeId: "area", label: { "en-gb": "Radar (Area)" }, options: { highchartsType: "area" } },
8
11
  polar_column: { categoryId: "polar", typeId: "column", label: { "en-gb": "Radar (Column)" }, options: { highchartsType: "column" } },
@@ -14,106 +17,21 @@ const R = 0, F = (e) => e, L = () => Date.now(), k = {
14
17
  streamgraph: { categoryId: "streamgraph", label: { "en-gb": "Streamgraph" }, options: {} },
15
18
  values: { categoryId: "values", label: { "en-gb": "Values" }, options: {} }
16
19
  };
17
- class I extends Error {
18
- locator;
19
- constructor(t, a, r) {
20
- super(t, r), this.name = "DataPosError", this.locator = a, Error.captureStackTrace?.(this, new.target);
21
- }
22
- }
23
- class p extends I {
24
- constructor(t, a, r) {
25
- super(t, a, r), this.name = "ApplicationError";
26
- }
27
- }
28
- class O extends p {
29
- constructor(t, a, r) {
30
- super(t, a, r), this.name = "APIError";
31
- }
32
- }
33
- class _ extends p {
34
- constructor(t, a, r) {
35
- super(t, a, r), this.name = "EngineError";
36
- }
37
- }
38
- class D extends p {
39
- body;
40
- constructor(t, a, r, o) {
41
- super(t, a, o), this.name = "FetchError", this.body = r;
42
- }
43
- }
44
- class v extends p {
45
- componentName;
46
- info;
47
- constructor(t, a, r, o, n) {
48
- super(t, a, n), this.name = "VueHandledError", this.info = r, this.componentName = o;
49
- }
50
- }
51
- class M extends p {
52
- constructor(t, a, r) {
53
- super(t, a, r), this.name = "WindowHandledRuntimeError";
54
- }
55
- }
56
- class U extends p {
57
- constructor(t, a, r) {
58
- super(t, a, r), this.name = "WindowHandledPromiseRejectionError";
59
- }
60
- }
61
- class B extends I {
62
- constructor(t, a, r) {
63
- super(t, a, r), this.name = "OperationalError";
64
- }
65
- }
66
- async function j(e, t, a) {
67
- const r = `${t} Response status '${e.status}${e.statusText ? ` - ${e.statusText}` : ""}' received.`, o = await e.text();
68
- return new D(r, a, o);
69
- }
70
- function H(e) {
71
- return e.map((t) => t.message).join(" ");
72
- }
73
- function W(e, t = "Unknown error.") {
74
- if (e instanceof Error) return e;
75
- if (typeof e == "string") return new Error(e);
76
- try {
77
- return new Error(JSON.stringify(e ?? t));
78
- } catch {
79
- return new Error(t);
80
- }
81
- }
82
- function z(e) {
83
- const t = /* @__PURE__ */ new Set(), a = [];
84
- let r = e;
85
- for (; r && !t.has(r); ) {
86
- t.add(r);
87
- let o;
88
- if (r instanceof D)
89
- o = { body: r.body, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
90
- else if (r instanceof v)
91
- o = { componentName: r.componentName, info: r.info, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
92
- else if (r instanceof I)
93
- o = { locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
94
- else if (r instanceof Error) {
95
- const n = r;
96
- o = { locator: "", message: n.message, name: n.name, stack: n.stack }, r = n.cause;
97
- } else r ? (o = { locator: "", message: String(r), name: "Error" }, r = void 0) : (o = { locator: "", message: "Unknown error.", name: "Error" }, r = void 0);
98
- /(?:\.{3}|[.!?])$/.test(o.message) || (o.message += "."), a.push(o);
99
- }
100
- return a;
101
- }
102
- function V() {
20
+ function k() {
103
21
  function e(t, a, r) {
104
22
  r.textContent = "Cytoscape.js diagram goes here...";
105
23
  }
106
24
  return { render: e };
107
25
  }
108
- function X() {
26
+ function O() {
109
27
  function e(t, a, r) {
110
28
  r.textContent = "values table goes here...";
111
29
  }
112
30
  return { render: e };
113
31
  }
114
- const S = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", E = "highcharts";
32
+ const v = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", E = "highcharts";
115
33
  let b, w = !1;
116
- function G() {
34
+ function M() {
117
35
  async function e(n, s, u, h) {
118
36
  await r();
119
37
  const l = [];
@@ -173,11 +91,96 @@ function G() {
173
91
  }
174
92
  async function o() {
175
93
  if (w) return;
176
- await import(`${S}highcharts-more.src.js`), w = !0;
94
+ await import(`${v}highcharts-more.src.js`), w = !0;
177
95
  }
178
96
  return { renderCartesianChart: e, renderPolarChart: t, renderRangeChart: a };
179
97
  }
180
- const T = "en-US", y = {}, P = (e) => {
98
+ class I extends Error {
99
+ locator;
100
+ constructor(t, a, r) {
101
+ super(t, r), this.name = "DataPosError", this.locator = a, Error.captureStackTrace?.(this, new.target);
102
+ }
103
+ }
104
+ class p extends I {
105
+ constructor(t, a, r) {
106
+ super(t, a, r), this.name = "ApplicationError";
107
+ }
108
+ }
109
+ class U extends p {
110
+ constructor(t, a, r) {
111
+ super(t, a, r), this.name = "APIError";
112
+ }
113
+ }
114
+ class B extends p {
115
+ constructor(t, a, r) {
116
+ super(t, a, r), this.name = "EngineError";
117
+ }
118
+ }
119
+ class T extends p {
120
+ body;
121
+ constructor(t, a, r, o) {
122
+ super(t, a, o), this.name = "FetchError", this.body = r;
123
+ }
124
+ }
125
+ class S extends p {
126
+ componentName;
127
+ info;
128
+ constructor(t, a, r, o, n) {
129
+ super(t, a, n), this.name = "VueHandledError", this.info = r, this.componentName = o;
130
+ }
131
+ }
132
+ class j extends p {
133
+ constructor(t, a, r) {
134
+ super(t, a, r), this.name = "WindowHandledRuntimeError";
135
+ }
136
+ }
137
+ class H extends p {
138
+ constructor(t, a, r) {
139
+ super(t, a, r), this.name = "WindowHandledPromiseRejectionError";
140
+ }
141
+ }
142
+ class W extends I {
143
+ constructor(t, a, r) {
144
+ super(t, a, r), this.name = "OperationalError";
145
+ }
146
+ }
147
+ async function z(e, t, a) {
148
+ const r = `${t} Response status '${e.status}${e.statusText ? ` - ${e.statusText}` : ""}' received.`, o = await e.text();
149
+ return new T(r, a, o);
150
+ }
151
+ function P(e) {
152
+ return e.map((t) => t.message).join(" ");
153
+ }
154
+ function V(e, t = "Unknown error.") {
155
+ if (e instanceof Error) return e;
156
+ if (typeof e == "string") return new Error(e);
157
+ try {
158
+ return new Error(JSON.stringify(e ?? t));
159
+ } catch {
160
+ return new Error(t);
161
+ }
162
+ }
163
+ function X(e) {
164
+ const t = /* @__PURE__ */ new Set(), a = [];
165
+ let r = e;
166
+ for (; r && !t.has(r); ) {
167
+ t.add(r);
168
+ let o;
169
+ if (r instanceof T)
170
+ o = { body: r.body, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
171
+ else if (r instanceof S)
172
+ o = { componentName: r.componentName, info: r.info, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
173
+ else if (r instanceof I)
174
+ o = { locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
175
+ else if (r instanceof Error) {
176
+ const n = r;
177
+ o = { locator: "", message: n.message, name: n.name, stack: n.stack }, r = n.cause;
178
+ } else r ? (o = { locator: "", message: String(r), name: "Error" }, r = void 0) : (o = { locator: "", message: "Unknown error.", name: "Error" }, r = void 0);
179
+ /(?:\.{3}|[.!?])$/.test(o.message) || (o.message += "."), a.push(o);
180
+ }
181
+ return a;
182
+ }
183
+ const D = "en-US", y = {}, G = (e) => {
181
184
  switch (e) {
182
185
  case "Edm.Binary":
183
186
  return "unknown";
@@ -226,7 +229,7 @@ const T = "en-US", y = {}, P = (e) => {
226
229
  const t = e.lastIndexOf(".");
227
230
  if (t > -1) return e.substring(t + 1);
228
231
  }
229
- }, i = (e, t = 2, a = t, r = T) => {
232
+ }, i = (e, t = 2, a = t, r = D) => {
230
233
  if (e == null) return "";
231
234
  const o = `${r}decimal${t}.${a}`;
232
235
  let n = y[o];
@@ -238,7 +241,7 @@ const T = "en-US", y = {}, P = (e) => {
238
241
  style: "decimal",
239
242
  useGrouping: !0
240
243
  }), y[o] = n), n.format(e);
241
- }, q = (e) => e == null ? "" : e < 1e3 ? x(e) : e < 1e6 ? `${i(e / 1e3, 2, 0)}K` : e < 1e9 ? `${i(e / 1e6, 2, 0)}M` : e < 1e12 ? `${i(e / 1e9, 2, 0)}B` : `${i(e / 1e12, 2, 0)}T`, Q = (e) => e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${x(e)} bytes` : e < 1048576 ? `${i(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${i(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${i(e / 1073741824, 2, 0)} GB` : `${i(e / 1099511627776, 2, 0)} TB`, Y = (e) => e == null ? "" : e < 1e3 ? `${x(e)} ms` : e === 1e3 ? `${x(e)} sec` : e < 6e4 ? `${i(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${i(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${i(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${i(e / 864e5, 2, 0)} days`, x = (e, t = T) => {
244
+ }, q = (e) => e == null ? "" : e < 1e3 ? x(e) : e < 1e6 ? `${i(e / 1e3, 2, 0)}K` : e < 1e9 ? `${i(e / 1e6, 2, 0)}M` : e < 1e12 ? `${i(e / 1e9, 2, 0)}B` : `${i(e / 1e12, 2, 0)}T`, Q = (e) => e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${x(e)} bytes` : e < 1048576 ? `${i(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${i(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${i(e / 1073741824, 2, 0)} GB` : `${i(e / 1099511627776, 2, 0)} TB`, Y = (e) => e == null ? "" : e < 1e3 ? `${x(e)} ms` : e === 1e3 ? `${x(e)} sec` : e < 6e4 ? `${i(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${i(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${i(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${i(e / 864e5, 2, 0)} days`, x = (e, t = D) => {
242
245
  if (e == null) return "";
243
246
  const a = `${t}decimal0.0`;
244
247
  let r = y[a];
@@ -319,20 +322,20 @@ const T = "en-US", y = {}, P = (e) => {
319
322
  return a ? { ...a, label: a.label[t] || a.label[d] || e } : { id: e, color: "other", label: e };
320
323
  }, d = "en-gb";
321
324
  export {
322
- O as APIError,
325
+ U as APIError,
323
326
  p as ApplicationError,
324
327
  d as DEFAULT_LOCALE_CODE,
325
328
  R as DefaultTimestamp,
326
- _ as EngineError,
327
- D as FetchError,
328
- B as OperationalError,
329
- v as VueError,
330
- U as WindowPromiseRejectionError,
331
- M as WindowRuntimeError,
332
- j as buildFetchError,
333
- H as concatenateSerialisedErrorMessages,
334
- F as convertMillisecondsToTimestamp,
335
- P as convertODataTypeIdToUsageTypeId,
329
+ B as EngineError,
330
+ T as FetchError,
331
+ W as OperationalError,
332
+ S as VueError,
333
+ H as WindowPromiseRejectionError,
334
+ j as WindowRuntimeError,
335
+ z as buildFetchError,
336
+ P as concatenateSerialisedErrorMessages,
337
+ L as convertMillisecondsToTimestamp,
338
+ G as convertODataTypeIdToUsageTypeId,
336
339
  K as extractExtensionFromPath,
337
340
  J as extractNameFromPath,
338
341
  i as formatNumberAsDecimalNumber,
@@ -341,15 +344,15 @@ export {
341
344
  Q as formatNumberAsStorageSize,
342
345
  x as formatNumberAsWholeNumber,
343
346
  ae as getComponentStatus,
344
- L as getCurrentTimestamp,
347
+ F as getCurrentTimestamp,
345
348
  ee as getDataFormats,
346
349
  re as getRecordDelimiters,
347
350
  te as getValueDelimiters,
348
351
  Z as lookupMimeTypeForExtension,
349
- W as normalizeToError,
350
- k as presentationViewTypeMap,
351
- z as serialiseError,
352
- V as useCytoscapeJS,
353
- X as useDataTable,
354
- G as useHighcharts
352
+ V as normalizeToError,
353
+ _ as presentationViewTypeMap,
354
+ X as serialiseError,
355
+ k as useCytoscapeJS,
356
+ O as useDataTable,
357
+ M as useHighcharts
355
358
  };
@@ -1,6 +1,6 @@
1
- import { ComponentConfig } from './component';
2
- import { ConnectorConfig } from './connector';
3
- import { Timestamp } from './timestamp';
1
+ import { ComponentConfig } from '..';
2
+ import { ConnectorConfig } from '.';
3
+ import { Timestamp } from '../../timestamp';
4
4
  export interface ConnectionAuthorizationConfig {
5
5
  accessToken: string;
6
6
  accountId: string;
@@ -1,12 +1,12 @@
1
1
  import { parse as csvParse } from 'csv-parse/browser/esm';
2
2
  import { parse as dateFnsParse } from 'date-fns';
3
3
  import { nanoid } from 'nanoid';
4
- import { ComponentConfig } from './component';
5
- import { buildFetchError, OperationalError } from './errors';
4
+ import { ComponentConfig } from '..';
5
+ import { buildFetchError, OperationalError } from '../../errors';
6
6
  import { ConnectionConfig, ConnectionDescription, ConnectionNodeConfig } from './connection';
7
- import { convertMillisecondsToTimestamp, LocalisedString } from './index';
8
- import { DataViewContentAuditConfig, ValueDelimiterId } from './dataView';
9
- import { extractExtensionFromPath, extractNameFromPath, lookupMimeTypeForExtension } from './utilities';
7
+ import { convertMillisecondsToTimestamp, LocalisedString } from '../../index';
8
+ import { DataViewContentAuditConfig, ValueDelimiterId } from '../dataView';
9
+ import { extractExtensionFromPath, extractNameFromPath, lookupMimeTypeForExtension } from '../../utilities';
10
10
  export interface Connector {
11
11
  abortController?: AbortController | undefined;
12
12
  readonly config: ConnectorConfig;
@@ -0,0 +1,131 @@
1
+ import { ComponentConfig, ComponentRef } from '..';
2
+ export interface Context {
3
+ readonly config: ContextConfig;
4
+ list(settings?: ContextListSettings): Promise<ContextListResult>;
5
+ }
6
+ export type ContextListSettings = {};
7
+ export type ContextListResult = {
8
+ models: ContextModelGroupConfig[];
9
+ };
10
+ export type ContextCallbackData = {
11
+ typeId: string;
12
+ properties: Record<string, unknown>;
13
+ };
14
+ export interface ContextConfig extends ComponentConfig {
15
+ models: ContextModelGroupConfig[];
16
+ version: string;
17
+ }
18
+ export type ContextLocalisedConfig = Omit<ContextConfig, 'label' | 'description'> & {
19
+ label: string;
20
+ description: string;
21
+ };
22
+ export interface ContextModelGroupConfig extends ComponentConfig {
23
+ modelRefs: ComponentRef[];
24
+ order: number;
25
+ }
26
+ export type ContextModelGroupLocalisedConfig = Omit<ContextModelGroupConfig, 'label' | 'description'> & {
27
+ label: string;
28
+ description: string;
29
+ };
30
+ export interface ContextModelConfig extends ComponentConfig {
31
+ diagramURL?: string;
32
+ dimension: ContextModelDimensionGroupConfig[];
33
+ entities: ContextModelEntityGroupConfig[];
34
+ secondaryMeasures: ContextModelSecondaryMeasureGroupConfig[];
35
+ }
36
+ export type ContextModelLocalisedConfig = Omit<ContextModelConfig, 'label' | 'description'> & {
37
+ label: string;
38
+ description: string;
39
+ };
40
+ export interface ContextModelDimensionGroupConfig {
41
+ id: string;
42
+ label: Record<string, string>;
43
+ description?: Record<string, unknown>;
44
+ dimensionRefs: ComponentRef[];
45
+ }
46
+ export type ContextModelDimensionGroupLocalisedConfig = Omit<ContextModelDimensionGroupConfig, 'label' | 'description'> & {
47
+ label: string;
48
+ description: string;
49
+ };
50
+ export interface ContextModelDimensionConfig {
51
+ id: string;
52
+ label: Record<string, string>;
53
+ hierarchies: ContextModelDimensionHierarchyConfig[];
54
+ }
55
+ export type ContextModelDimensionLocalisedConfig = Omit<ContextModelDimensionConfig, 'label' | 'description'> & {
56
+ label: string;
57
+ description: string;
58
+ };
59
+ export interface ContextModelDimensionHierarchyConfig {
60
+ id: string;
61
+ label: Record<string, string>;
62
+ }
63
+ export type ContextModelDimensionHierarchyLocalisedConfig = Omit<ContextModelDimensionHierarchyConfig, 'label' | 'description'> & {
64
+ label: string;
65
+ description: string;
66
+ };
67
+ export interface ContextModelEntityGroupConfig {
68
+ id: string;
69
+ label: Record<string, string>;
70
+ description?: Record<string, unknown>;
71
+ entityRefs: ComponentRef[];
72
+ }
73
+ export type ContextModelEntityGroupLocalisedConfig = Omit<ContextModelEntityGroupConfig, 'label' | 'description'> & {
74
+ label: string;
75
+ description: string;
76
+ };
77
+ export interface ContextModelEntityConfig {
78
+ id: string;
79
+ label: Record<string, string>;
80
+ labelPlural: Record<string, string>;
81
+ dataItems: ContextModelEntityDataItemConfig[];
82
+ events: ContextModelEntityEventConfig[];
83
+ primaryMeasures: ContextModelEntityPrimaryMeasureConfig[];
84
+ }
85
+ export type ContextModelEntityLocalisedConfig = Omit<ContextModelEntityConfig, 'label' | 'description'> & {
86
+ label: string;
87
+ description: string;
88
+ };
89
+ export interface ContextModelEntityDataItemConfig {
90
+ id: string;
91
+ label: Record<string, string>;
92
+ }
93
+ export type ContextModelEntityDataItemLocalisedConfig = Omit<ContextModelEntityDataItemConfig, 'label' | 'description'> & {
94
+ label: string;
95
+ description: string;
96
+ };
97
+ export interface ContextModelEntityEventConfig {
98
+ id: string;
99
+ labelAction: Record<string, string>;
100
+ labelState: Record<string, string>;
101
+ }
102
+ export type ContextModelEntityEventLocalisedConfig = Omit<ContextModelEntityEventConfig, 'label' | 'description'> & {
103
+ label: string;
104
+ description: string;
105
+ };
106
+ export interface ContextModelEntityPrimaryMeasureConfig {
107
+ id: string;
108
+ label: Record<string, string>;
109
+ }
110
+ export type ContextModelEntityPrimaryMeasureLocalisedConfig = Omit<ContextModelEntityPrimaryMeasureConfig, 'label' | 'description'> & {
111
+ label: string;
112
+ description: string;
113
+ };
114
+ export interface ContextModelSecondaryMeasureGroupConfig {
115
+ id: string;
116
+ label: Record<string, string>;
117
+ description?: Record<string, unknown>;
118
+ secondaryMeasureRefs: ComponentRef[];
119
+ }
120
+ export type ContextModelSecondaryMeasureGroupLocalisedConfig = Omit<ContextModelSecondaryMeasureGroupConfig, 'label' | 'description'> & {
121
+ label: string;
122
+ description: string;
123
+ };
124
+ export interface ContextModelSecondaryMeasureConfig {
125
+ id: string;
126
+ label: Record<string, string>;
127
+ }
128
+ export type ContextModelSecondaryMeasureLocalisedConfig = Omit<ContextModelSecondaryMeasureConfig, 'label' | 'description'> & {
129
+ label: string;
130
+ description: string;
131
+ };
@@ -1,6 +1,6 @@
1
- import { ComponentConfig } from './component';
2
- import { Timestamp } from './timestamp';
3
- import { ConnectionColumnConfig, ConnectionNodeConfig } from './connection';
1
+ import { ComponentConfig } from '..';
2
+ import { Timestamp } from '../../timestamp';
3
+ import { ConnectionColumnConfig, ConnectionNodeConfig } from '../../connection';
4
4
  export interface DataViewConfig extends ComponentConfig {
5
5
  connectionId?: string;
6
6
  connectionNodeConfig?: ConnectionNodeConfig;
@@ -54,20 +54,20 @@ type DataFormat = {
54
54
  id: string;
55
55
  label: string;
56
56
  };
57
- export declare const getDataFormat: (id: string, localeId?: import('./index').LocaleCode) => DataFormat;
58
- export declare const getDataFormats: (localeId?: import('./index').LocaleCode) => DataFormat[];
57
+ export declare const getDataFormat: (id: string, localeId?: import('../../index').LocaleCode) => DataFormat;
58
+ export declare const getDataFormats: (localeId?: import('../../index').LocaleCode) => DataFormat[];
59
59
  type RecordDelimiter = {
60
60
  id: string;
61
61
  label: string;
62
62
  };
63
- export declare const getRecordDelimiter: (id: string, localeId?: import('./index').LocaleCode) => RecordDelimiter;
64
- export declare const getRecordDelimiters: (localeId?: import('./index').LocaleCode) => RecordDelimiter[];
63
+ export declare const getRecordDelimiter: (id: string, localeId?: import('../../index').LocaleCode) => RecordDelimiter;
64
+ export declare const getRecordDelimiters: (localeId?: import('../../index').LocaleCode) => RecordDelimiter[];
65
65
  type ValueDelimiter = {
66
66
  id: string;
67
67
  label: string;
68
68
  };
69
- export declare const getValueDelimiter: (id: string, localeId?: import('./index').LocaleCode) => ValueDelimiter;
70
- export declare const getValueDelimiters: (localeId?: import('./index').LocaleCode) => ValueDelimiter[];
69
+ export declare const getValueDelimiter: (id: string, localeId?: import('../../index').LocaleCode) => ValueDelimiter;
70
+ export declare const getValueDelimiters: (localeId?: import('../../index').LocaleCode) => ValueDelimiter[];
71
71
  export type ParsedValue = bigint | boolean | number | string | null;
72
72
  export type DataFormatId = 'dtv' | 'e/e' | 'jsonArray' | 'spss' | 'xls' | 'xlsx' | 'xml';
73
73
  export type RecordDelimiterId = '\n' | '\r' | '\r\n';
@@ -1,4 +1,4 @@
1
- import { ComponentConfig } from './component';
1
+ import { ComponentConfig } from '..';
2
2
  export interface DimensionConfig extends ComponentConfig {
3
3
  placeholder?: string;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { ComponentConfig } from './component';
1
+ import { ComponentConfig } from '..';
2
2
  export interface EventQueryConfig extends ComponentConfig {
3
3
  placeholder?: string;
4
4
  }
@@ -1,5 +1,5 @@
1
- import { Timestamp } from './timestamp';
2
- import { LocaleCode, LocalisedString, StatusColorId } from './index';
1
+ import { Timestamp } from '../timestamp';
2
+ import { LocaleCode, LocalisedString, StatusColorId } from '../index';
3
3
  export interface ComponentConfig {
4
4
  id: string;
5
5
  label: Partial<LocalisedString>;
@@ -12,13 +12,14 @@ export interface ComponentConfig {
12
12
  statusId: ComponentStatusId;
13
13
  typeId: ComponentTypeId;
14
14
  }
15
- export interface ComponentRef {
15
+ export type ComponentTypeId = 'connector' | 'connectorConnection' | 'context' | 'contextModelGroup' | 'contextModel' | 'contextModelDimensionGroup' | 'contextModelDimension' | 'contextModelDimensionHierarchy' | 'contextModelEntityGroup' | 'contextModelEntity' | 'contextModelEntityDataItem' | 'contextModelEntityEvent' | 'contextModelEntityPrimaryMeasure' | 'contextModelSecondaryMeasureGroup' | 'contextModelSecondaryMeasure' | 'dataView' | 'dimension' | 'eventQuery' | 'presenter' | 'presenterPresentation' | 'informer' | 'informerDocument';
16
+ export type ComponentRef = {
16
17
  id: string;
17
18
  label: Partial<LocalisedString>;
18
19
  description: Partial<LocalisedString>;
19
20
  order: number;
20
21
  path: string;
21
- }
22
+ };
22
23
  export type ComponentStatus = {
23
24
  id: string;
24
25
  color: StatusColorId;
@@ -26,4 +27,3 @@ export type ComponentStatus = {
26
27
  };
27
28
  export type ComponentStatusId = 'alpha' | 'beta' | 'generalAvailability' | 'notApplicable' | 'preAlpha' | 'proposed' | 'releaseCandidate' | 'unavailable' | 'underReview';
28
29
  export declare const getComponentStatus: (id: string, localeId?: LocaleCode) => ComponentStatus;
29
- export type ComponentTypeId = 'app' | 'engine' | 'connector' | 'connectorConnection' | 'context' | 'contextModelGroup' | 'contextModel' | 'contextModelDimensionGroup' | 'contextModelDimension' | 'contextModelDimensionHierarchy' | 'contextModelEntityGroup' | 'contextModelEntity' | 'contextModelEntityDataItems' | 'contextModelEntityEvent' | 'contextModelEntityPrimaryMeasure' | 'contextModelSecondaryMeasureGroup' | 'contextModelSecondaryMeasure' | 'contextModelPresentationGroup' | 'contextModelPresentation' | 'dataView' | 'dimension' | 'eventQuery' | 'presenter' | 'presenterPresentation' | 'informer' | 'informerDocument';
@@ -1,4 +1,4 @@
1
- import { ComponentConfig } from './component';
1
+ import { ComponentConfig } from '..';
2
2
  export interface Recipe {
3
3
  readonly config: RecipeConfig;
4
4
  list(path: string): RecipeItemConfig[];
@@ -1,4 +1,4 @@
1
- import { ComponentConfig } from './component';
1
+ import { ComponentConfig } from '..';
2
2
  export interface TutorialConfig extends ComponentConfig {
3
3
  placeholder?: string;
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import { default as markdownIt } from 'markdown-it';
2
- import { ComponentConfig, ComponentRef } from './component';
2
+ import { ComponentConfig, ComponentRef } from '..';
3
3
  export interface Presenter {
4
4
  readonly config: PresenterConfig;
5
5
  readonly tools: PresenterTools;
@@ -21,10 +21,6 @@ export interface PresentationConfig extends ComponentConfig {
21
21
  content: string;
22
22
  order: number;
23
23
  }
24
- export interface PresentationView {
25
- resize: () => void;
26
- vendorId: string;
27
- }
28
24
  export type PresentationVisualConfig = {
29
25
  content: PresentationVisualContentConfig;
30
26
  views: PresentationVisualViewConfig[];
@@ -74,7 +70,7 @@ export interface PresentationVisualValuesViewConfig extends PresentationVisualVi
74
70
  export type PresentationVisualViewType = PresentationVisualCartesianViewType | PresentationVisualChordViewType | PresentationVisualPolarViewType | PresentationVisualRangeViewType | PresentationVisualSankeyDiagramViewType | PresentationVisualStreamgraphViewType | PresentationVisualValuesViewType;
75
71
  export type PresentationVisualCartesianViewType = {
76
72
  categoryId: 'cartesian';
77
- typeId: 'area' | 'bar' | 'column' | 'line';
73
+ typeId: 'areaLine' | 'areaSpline' | 'bar' | 'column' | 'line' | 'pyramid' | 'spline';
78
74
  label: Record<string, string>;
79
75
  options: {
80
76
  highchartsType: 'area' | 'bar' | 'column' | 'line';
@@ -119,4 +115,8 @@ export type PresentationVisualValuesViewType = {
119
115
  label: Record<string, string>;
120
116
  options: {};
121
117
  };
118
+ export interface PresentationView {
119
+ resize: () => void;
120
+ vendorId: string;
121
+ }
122
122
  export declare const presentationViewTypeMap: Record<string, PresentationVisualViewType>;
@@ -1,7 +1,7 @@
1
- import { ConnectionConfig } from './connection';
2
- import { AuditContentResult, ConnectorCallbackData, ConnectorOperationSettings, InitialiseSettings, ListResult, RetrieveResult } from './connector';
3
- import { ContextCallbackData, ContextConfig, ContextOperationSettings } from './context';
4
- import { DataViewPreviewConfig, EncodingConfig } from './dataView';
1
+ import { ConnectionConfig } from './component/connector/connection';
2
+ import { AuditContentResult, ConnectorCallbackData, ConnectorOperationSettings, InitialiseSettings, ListResult, RetrieveResult } from './component/connector';
3
+ import { ContextCallbackData, ContextConfig, ContextOperationSettings } from './component/context';
4
+ import { DataViewPreviewConfig, EncodingConfig } from './component/dataView';
5
5
  type InitialiseEngine = (settings: InitialiseSettings) => Promise<void>;
6
6
  type ProcessConnectorRequest = (id: string, connectionConfig: ConnectionConfig, settings: ConnectorOperationSettings, callback?: ((callbackData: ContextCallbackData) => void) | undefined) => Promise<ContextInterfaceResult>;
7
7
  export type ContextInterfaceResult = AuditContentResult | DataViewPreviewConfig | ListResult | RetrieveResult;
@@ -1,50 +1,59 @@
1
+ /**
2
+ * Shared composables, constants, interfaces, errors, types and utilities.
3
+ */
1
4
  export type LocaleCode = 'en-au' | 'en-gb' | 'en-us' | 'es-es';
2
5
  export type LocalisedString = Record<LocaleCode, string>;
3
6
  export type StatusColorId = 'amber' | 'green' | 'red' | 'other';
4
- export declare const DEFAULT_LOCALE_CODE: LocaleCode;
5
- export { DefaultTimestamp } from './timestamp';
6
- export { presentationViewTypeMap } from './presenter';
7
+ export type { AppModuleConfig, ConnectorModuleConfig, EngineModuleConfig, InformerModuleConfig, PresenterModuleConfig } from './module';
7
8
  export type { ComponentConfig, ComponentRef, ComponentStatus, ComponentStatusId, ComponentTypeId } from './component';
8
- export type { AuditContentResult, AuditContentSettings } from './connector';
9
- export type { Connector, ConnectorCallbackData, ConnectorConfig, ConnectorImplementation, ConnectorOperationSettings, ConnectorLocalisedConfig, ConnectorTools } from './connector';
10
- export type { CreateSettings } from './connector';
11
- export type { DropSettings } from './connector';
12
- export type { FindResult, FindSettings } from './connector';
13
- export type { GetResult, GetSettings } from './connector';
14
- export type { InitialiseSettings } from './connector';
15
- export type { ListResult, ListSettings } from './connector';
16
- export type { PreviewResult, PreviewSettings } from './connector';
17
- export type { RemoveSettings } from './connector';
18
- export type { RetrieveResult, RetrieveSettings, RetrieveSummary } from './connector';
19
- export type { UpsertSettings } from './connector';
20
- export type { ConnectionAuthorizationConfig, ConnectionColumnConfig, ConnectionConfig, ConnectionNodeConfig } from './connection';
21
- export type { DPAFileSystemFileHandle, Encoding, StorageTypeId, UsageTypeId } from './connection';
22
- export type { Context, ContextConfig, ContextFocusConfig, ContextFocusConfigListResult, ContextFocusConfigListSettings, ContextModelConfig, ContextDimensionConfig, ContextDimensionGroupConfig, ContextEntityCharacteristicConfig, ContextEntityGroupConfig, ContextEntityComputationConfig, ContextSecondaryMeasureGroupConfig, ContextViewGroupConfig, ContextFocusLocalisedConfig } from './context';
23
- export type { ContextEntityConfig, ContextEntityEventConfig, ContextHierarchyConfig, ContextViewConfig, Event } from './context';
24
- export type { DataFormatId, EncodingConfig, RecordDelimiterId, ValueDelimiterId } from './dataView';
25
- export type { DataViewConfig, DataViewContentAuditConfig, DataViewLocalisedConfig, DataViewPreviewConfig, DataViewRelationshipsAuditConfig, ParsedValue } from './dataView';
26
- export type { DimensionConfig, DimensionLocalisedConfig } from './dimension';
9
+ export type { AuditContentResult, AuditContentSettings } from './component/connector';
10
+ export type { Connector, ConnectorCallbackData, ConnectorConfig, ConnectorImplementation, ConnectorOperationSettings, ConnectorLocalisedConfig, ConnectorTools } from './component/connector';
11
+ export type { CreateSettings } from './component/connector';
12
+ export type { DropSettings } from './component/connector';
13
+ export type { FindResult, FindSettings } from './component/connector';
14
+ export type { GetResult, GetSettings } from './component/connector';
15
+ export type { InitialiseSettings } from './component/connector';
16
+ export type { ListResult, ListSettings } from './component/connector';
17
+ export type { PreviewResult, PreviewSettings } from './component/connector';
18
+ export type { RemoveSettings } from './component/connector';
19
+ export type { RetrieveResult, RetrieveSettings, RetrieveSummary } from './component/connector';
20
+ export type { UpsertSettings } from './component/connector';
21
+ export type { ConnectionAuthorizationConfig, ConnectionColumnConfig, ConnectionConfig, ConnectionNodeConfig } from './component/connector/connection';
22
+ export type { DPAFileSystemFileHandle, Encoding, StorageTypeId, UsageTypeId } from './component/connector/connection';
23
+ export type { Context, ContextConfig, ContextLocalisedConfig, ContextListSettings, ContextListResult, ContextModelGroupConfig, ContextModelGroupLocalisedConfig, ContextModelConfig, ContextModelLocalisedConfig, ContextModelDimensionGroupConfig, ContextModelDimensionGroupLocalisedConfig, ContextModelDimensionConfig, ContextModelDimensionLocalisedConfig, ContextModelDimensionHierarchyConfig, ContextModelDimensionHierarchyLocalisedConfig, ContextModelEntityGroupConfig, ContextModelEntityGroupLocalisedConfig, ContextModelEntityConfig, ContextModelEntityLocalisedConfig, ContextModelEntityDataItemConfig, // Data items.
24
+ ContextModelEntityDataItemLocalisedConfig, ContextModelEntityEventConfig, // Events.
25
+ ContextModelEntityEventLocalisedConfig, ContextModelEntityPrimaryMeasureConfig, // Primary measures.
26
+ ContextModelEntityPrimaryMeasureLocalisedConfig, ContextModelSecondaryMeasureGroupConfig, ContextModelSecondaryMeasureGroupLocalisedConfig, ContextModelSecondaryMeasureConfig, ContextModelSecondaryMeasureLocalisedConfig } from './component/context';
27
+ export type { DataFormatId, EncodingConfig, RecordDelimiterId, ValueDelimiterId } from './component/dataView';
28
+ export type { DataViewConfig, DataViewContentAuditConfig, DataViewLocalisedConfig, DataViewPreviewConfig, DataViewRelationshipsAuditConfig, ParsedValue } from './component/dataView';
29
+ export type { DimensionConfig, DimensionLocalisedConfig } from './component/dimension';
27
30
  export type { ConnectorInterfaceResult, ContextInterfaceResult, Engine, EngineWorker } from './engine';
28
31
  export type { SerialisedError } from './errors';
29
- export type { EventQueryConfig, EventQueryLocalisedConfig } from './eventQuery';
30
- export type { Presenter, PresenterConfig, PresenterLocalisedConfig, PresenterTools } from './presenter';
31
- export type { PresentationConfig, PresentationView } from './presenter';
32
- export type { PresentationVisualConfig, PresentationVisualContentConfig, PresentationVisualViewConfig, PresentationVisualCartesianViewConfig, PresentationVisualChordDiagramViewConfig, PresentationVisualPolarViewConfig, PresentationVisualRangeViewConfig, PresentationVisualSankeyDiagramViewConfig, PresentationVisualStreamgraphViewConfig, PresentationVisualValuesViewConfig } from './presenter';
33
- export type { PresentationVisualViewType, PresentationVisualCartesianViewType, PresentationVisualChordViewType, PresentationVisualPolarViewType, PresentationVisualRangeViewType, PresentationVisualSankeyDiagramViewType, PresentationVisualStreamgraphViewType, PresentationVisualValuesViewType } from './presenter';
34
- export type { Recipe, RecipeConfig, RecipeLocalisedConfig } from './recipe';
35
- export type { ServiceData } from './service';
36
- export type { StateConfig } from './state';
32
+ export type { EventQueryConfig, EventQueryLocalisedConfig } from './component/eventQuery';
33
+ export type { Presenter, PresenterConfig, PresenterLocalisedConfig, PresenterTools } from './component/presenter';
34
+ export type { PresentationConfig, PresentationView } from './component/presenter';
35
+ export type { PresentationVisualConfig, PresentationVisualContentConfig, PresentationVisualViewConfig, PresentationVisualCartesianViewConfig, PresentationVisualChordDiagramViewConfig, PresentationVisualPolarViewConfig, PresentationVisualRangeViewConfig, PresentationVisualSankeyDiagramViewConfig, PresentationVisualStreamgraphViewConfig, PresentationVisualValuesViewConfig } from './component/presenter';
36
+ export type { PresentationVisualViewType, PresentationVisualCartesianViewType, PresentationVisualChordViewType, PresentationVisualPolarViewType, PresentationVisualRangeViewType, PresentationVisualSankeyDiagramViewType, PresentationVisualStreamgraphViewType, PresentationVisualValuesViewType } from './component/presenter';
37
+ export type { Recipe, RecipeConfig, RecipeLocalisedConfig } from './component/informer/recipe';
38
+ export interface ContextOperationSettings {
39
+ accountId?: string;
40
+ appCheckToken?: string;
41
+ sessionAccessToken?: string;
42
+ }
37
43
  export type { Timestamp } from './timestamp';
38
- export type { TutorialConfig } from './tutorial';
39
- export { APIError, ApplicationError, EngineError, FetchError, OperationalError, VueError, WindowRuntimeError, WindowPromiseRejectionError } from './errors';
44
+ export type { TutorialConfig } from './component/informer/tutorial';
45
+ export declare const DEFAULT_LOCALE_CODE: LocaleCode;
46
+ export { DefaultTimestamp } from './timestamp';
47
+ export { presentationViewTypeMap } from './component/presenter';
40
48
  export { type CytoscapeJSView, useCytoscapeJS } from './composables/useCytoscapeJS';
41
49
  export { useDataTable } from './composables/useDataTable';
42
50
  export { type HighchartsView, useHighcharts } from './composables/useHighcharts';
51
+ export { APIError, ApplicationError, EngineError, FetchError, OperationalError, VueError, WindowRuntimeError, WindowPromiseRejectionError } from './errors';
43
52
  export { buildFetchError, concatenateSerialisedErrorMessages, normalizeToError, serialiseError } from './errors';
44
53
  export { convertMillisecondsToTimestamp, getCurrentTimestamp } from './timestamp';
45
54
  export { convertODataTypeIdToUsageTypeId } from './utilities';
46
55
  export { extractExtensionFromPath, extractNameFromPath } from './utilities';
47
56
  export { formatNumberAsDecimalNumber, formatNumberAsDuration, formatNumberAsSize, formatNumberAsStorageSize, formatNumberAsWholeNumber } from './utilities';
48
- export { getDataFormats, getRecordDelimiters, getValueDelimiters } from './dataView';
57
+ export { getDataFormats, getRecordDelimiters, getValueDelimiters } from './component/dataView';
49
58
  export { getComponentStatus } from './component';
50
59
  export { lookupMimeTypeForExtension } from './utilities';
@@ -0,0 +1,49 @@
1
+ import { ContextModelGroupConfig } from './component/context';
2
+ import { LocalisedString } from './index';
3
+ interface ModuleConfig {
4
+ id: string;
5
+ label: Partial<LocalisedString>;
6
+ description: Partial<LocalisedString>;
7
+ statusId: unknown;
8
+ typeId: ModuleTypeId;
9
+ version: string;
10
+ }
11
+ type ModuleTypeId = 'app' | 'engine' | 'connector' | 'context' | 'presenter' | 'informer';
12
+ export interface AppModuleConfig extends ModuleConfig {
13
+ typeId: 'app';
14
+ }
15
+ export interface EngineModuleConfig extends ModuleConfig {
16
+ typeId: 'engine';
17
+ }
18
+ export interface ConnectorModuleConfig extends ModuleConfig {
19
+ categoryId: ConnectorModuleCategoryId;
20
+ implementations: Record<string, unknown>;
21
+ icon: string;
22
+ iconDark: string;
23
+ interfaces: ConnectorModuleInterface[];
24
+ typeId: 'connector';
25
+ usageId: ConnectorModuleUsageId;
26
+ vendorAccountURL?: string;
27
+ vendorDocumentationURL?: string;
28
+ vendorHomeURL?: string;
29
+ }
30
+ type ConnectorModuleCategoryId = 'application' | 'curatedDataset' | 'database' | 'fileStore';
31
+ type ConnectorModuleInterface = 'abortOperation' | 'authenticateConnection' | 'createObject' | 'describeConnection' | 'dropObject' | 'findObject' | 'getRecord' | 'listNodes' | 'previewObject' | 'removeRecords' | 'retrieveRecords' | 'upsertRecords';
32
+ type ConnectorModuleUsageId = 'bidirectional' | 'destination' | 'source';
33
+ export interface ContextModuleConfig extends ModuleConfig {
34
+ interfaces: ContextModuleInterface[];
35
+ models: ContextModelGroupConfig[];
36
+ typeId: 'context';
37
+ }
38
+ type ContextModuleInterface = 'list';
39
+ export interface InformerModuleConfig extends ModuleConfig {
40
+ interfaces: InformerModuleInterface[];
41
+ typeId: 'informer';
42
+ }
43
+ type InformerModuleInterface = 'list' | 'render';
44
+ export interface PresenterModuleConfig extends ModuleConfig {
45
+ interfaces: PresenterModuleInterface[];
46
+ typeId: 'presenter';
47
+ }
48
+ type PresenterModuleInterface = 'list' | 'render';
49
+ export {};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@datapos/datapos-shared",
3
3
  "license": "MIT",
4
4
  "private": false,
5
- "version": "0.3.102",
5
+ "version": "0.3.110",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"
@@ -45,7 +45,7 @@
45
45
  "check": "npm outdated; npm-check-updates -i && retire",
46
46
  "document": "license-report --only=prod,peer > LICENSES.json && license-report-check --source ./LICENSES.json --allowed 'MIT' --allowed 'n/a' --allowed 'Apache-2.0' --output=table",
47
47
  "format": "prettier --write *.ts",
48
- "lint": "eslint src/**/*.ts",
48
+ "lint": "eslint src/",
49
49
  "publishToNPM": "npm publish --access public",
50
50
  "release": "npm run syncWithGitHub && npm run build && npm run publishToNPM",
51
51
  "syncWithGitHub": "npm run bumpVersion && node -e \"require('@datapos/datapos-development').syncWithGitHub()\"",
File without changes
File without changes
@@ -1,106 +0,0 @@
1
- import { ComponentConfig, ComponentRef } from './component';
2
- export interface Context {
3
- readonly config: ContextConfig;
4
- listFocuses(settings?: ContextFocusConfigListSettings): Promise<ContextFocusConfigListResult>;
5
- }
6
- export interface ContextCallbackData {
7
- typeId: string;
8
- properties: Record<string, unknown>;
9
- }
10
- export interface ContextConfig extends ComponentConfig {
11
- focuses: ContextFocusConfig[];
12
- version: string;
13
- }
14
- export interface ContextFocusConfig extends ComponentConfig {
15
- modelRefs: ComponentRef[];
16
- order: number;
17
- }
18
- export type ContextFocusLocalisedConfig = Omit<ContextFocusConfig, 'label' | 'description'> & {
19
- label: string;
20
- description: string;
21
- };
22
- export interface ContextOperationSettings {
23
- accountId?: string;
24
- appCheckToken?: string;
25
- sessionAccessToken?: string;
26
- }
27
- export interface ContextModelConfig extends ComponentConfig {
28
- diagramURL?: string;
29
- dimensionGroupConfigs: ContextDimensionGroupConfig[];
30
- entityGroupConfigs: ContextEntityGroupConfig[];
31
- secondaryMeasureGroupConfigs: ContextSecondaryMeasureGroupConfig[];
32
- viewGroupConfigs: ContextViewGroupConfig[];
33
- }
34
- export interface ContextDimensionGroupConfig {
35
- id: string;
36
- label: Record<string, string>;
37
- description?: Record<string, unknown>;
38
- dimensionRefs: ComponentRef[];
39
- }
40
- export interface ContextEntityGroupConfig {
41
- id: string;
42
- label: Record<string, string>;
43
- description?: Record<string, unknown>;
44
- entityRefs: ComponentRef[];
45
- }
46
- export interface ContextSecondaryMeasureGroupConfig {
47
- id: string;
48
- label: Record<string, string>;
49
- description?: Record<string, unknown>;
50
- secondaryMeasureRefs: ComponentRef[];
51
- }
52
- export interface ContextViewGroupConfig {
53
- id: string;
54
- label: Record<string, string>;
55
- description?: Record<string, unknown>;
56
- viewRefs: ComponentRef[];
57
- }
58
- export interface ContextDimensionConfig {
59
- id: string;
60
- label: Record<string, string>;
61
- hierarchies: ContextHierarchyConfig[];
62
- }
63
- export interface ContextHierarchyConfig {
64
- id: string;
65
- label: Record<string, string>;
66
- }
67
- export interface ContextEntityConfig {
68
- id: string;
69
- label: Record<string, string>;
70
- labelPlural: Record<string, string>;
71
- characteristics: ContextEntityCharacteristicConfig[];
72
- computations: ContextEntityComputationConfig[];
73
- events: ContextEntityEventConfig[];
74
- }
75
- export interface ContextEntityCharacteristicConfig {
76
- id: string;
77
- label: Record<string, string>;
78
- }
79
- export interface ContextEntityComputationConfig {
80
- id: string;
81
- label: Record<string, string>;
82
- }
83
- export interface ContextEntityEventConfig {
84
- id: string;
85
- labelAction: Record<string, string>;
86
- labelState: Record<string, string>;
87
- }
88
- export interface ContextSecondaryMeasureConfig {
89
- id: string;
90
- label: Record<string, string>;
91
- }
92
- export interface ContextViewConfig {
93
- id: string;
94
- label: Record<string, string>;
95
- }
96
- export interface ContextFocusConfigListResult {
97
- focusConfigs: ContextFocusConfig[];
98
- }
99
- export interface ContextFocusConfigListSettings {
100
- }
101
- export interface Event {
102
- id?: number;
103
- entityId: string;
104
- effDate: number;
105
- typeId: string;
106
- }
File without changes
File without changes
File without changes
@@ -1,10 +0,0 @@
1
- export interface ServiceData {
2
- label: string;
3
- monitorEvents: {
4
- [vendorId: string]: {
5
- [locationId: string]: {
6
- [regionId: string]: [number, number];
7
- };
8
- };
9
- };
10
- }
@@ -1,5 +0,0 @@
1
- import { ComponentConfig } from './component';
2
- export interface StateConfig {
3
- id: string;
4
- data: ComponentConfig;
5
- }