@datapos/datapos-shared 0.3.103 → 0.3.114

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 (29) hide show
  1. package/dist/datapos-shared.es.js +102 -102
  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} +9 -9
  4. package/dist/types/src/component/context/index.d.ts +132 -0
  5. package/dist/types/src/{Z_ContentAuditColumn.d.ts → component/dataView/OLD_ContentAuditColumn.d.ts} +1 -1
  6. package/dist/types/src/{dataView.d.ts → component/dataView/index.d.ts} +9 -9
  7. package/dist/types/src/{dimension.d.ts → component/dimension/index.d.ts} +1 -1
  8. package/dist/types/src/{eventQuery.d.ts → component/eventQuery/index.d.ts} +1 -1
  9. package/dist/types/src/{component.d.ts → component/index.d.ts} +5 -5
  10. package/dist/types/src/{recipe.d.ts → component/informer/recipe.d.ts} +1 -1
  11. package/dist/types/src/{tutorial.d.ts → component/informer/tutorial.d.ts} +1 -1
  12. package/dist/types/src/{presenter.d.ts → component/presenter/index.d.ts} +5 -5
  13. package/dist/types/src/devOps/buildConnectorConfig.d.ts +4 -0
  14. package/dist/types/src/{engine.d.ts → engine/index.d.ts} +4 -4
  15. package/dist/types/src/index.d.ts +42 -33
  16. package/dist/types/src/module/index.d.ts +49 -0
  17. package/dist/types/vite.config.d.ts +3 -0
  18. package/package.json +3 -3
  19. package/dist/types/src/Z_dataConnector.d.ts +0 -0
  20. package/dist/types/src/Z_nodeConnector.d.ts +0 -0
  21. package/dist/types/src/context.d.ts +0 -106
  22. package/dist/types/src/location.d.ts +0 -0
  23. package/dist/types/src/monitor.d.ts +0 -0
  24. package/dist/types/src/package.d.ts +0 -0
  25. package/dist/types/src/service.d.ts +0 -10
  26. package/dist/types/src/state.d.ts +0 -5
  27. /package/dist/types/src/{Z_PreviewColumn.d.ts → component/dataView/OLD_PreviewColumn.d.ts} +0 -0
  28. /package/dist/types/src/{errors.d.ts → errors/index.d.ts} +0 -0
  29. /package/dist/types/src/{utilities.d.ts → utilities/index.d.ts} +0 -0
@@ -17,6 +17,84 @@ const R = 0, L = (e) => e, F = () => Date.now(), _ = {
17
17
  streamgraph: { categoryId: "streamgraph", label: { "en-gb": "Streamgraph" }, options: {} },
18
18
  values: { categoryId: "values", label: { "en-gb": "Values" }, options: {} }
19
19
  };
20
+ function k() {
21
+ function e(t, a, r) {
22
+ r.textContent = "Cytoscape.js diagram goes here...";
23
+ }
24
+ return { render: e };
25
+ }
26
+ function O() {
27
+ function e(t, a, r) {
28
+ r.textContent = "values table goes here...";
29
+ }
30
+ return { render: e };
31
+ }
32
+ const v = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", E = "highcharts";
33
+ let b, w = !1;
34
+ function M() {
35
+ async function e(n, s, u, h) {
36
+ await r();
37
+ const l = [];
38
+ for (const c of s.data.measures)
39
+ l.push({ type: n.options.highchartsType, name: c.name, data: c.data });
40
+ const g = {
41
+ chart: { type: n.options.highchartsType },
42
+ plotOptions: { series: { borderColor: "#333" } },
43
+ series: l,
44
+ title: { text: s.title.text },
45
+ xAxis: { categories: s.data.categoryLabels },
46
+ yAxis: { title: { text: s.data.name } }
47
+ }, m = b.chart(u, g, h);
48
+ return { chart: m, resize: () => m.reflow(), vendorId: E };
49
+ }
50
+ async function t(n, s, u, h) {
51
+ await Promise.all([r(), o()]);
52
+ const l = [];
53
+ for (const c of s.data.measures)
54
+ l.push({ type: n.options.highchartsType, name: c.name, data: c.data });
55
+ const g = {
56
+ chart: { polar: !0 },
57
+ plotOptions: { series: { borderColor: "#333" } },
58
+ series: l,
59
+ title: { text: s.title.text },
60
+ xAxis: { categories: s.data.categoryLabels },
61
+ yAxis: { title: { text: s.data.name } }
62
+ }, m = b.chart(u, g, h);
63
+ return { chart: m, resize: () => m.reflow(), vendorId: E };
64
+ }
65
+ async function a(n, s, u, h) {
66
+ await Promise.all([r(), o()]);
67
+ const l = [], g = [];
68
+ for (let f = 0; f < s.data.measures[0].data.length; f++)
69
+ g.push([s.data.measures[0].data[f][0], s.data.measures[1].data[f][0]]);
70
+ l.push({ type: n.options.highchartsType, name: "Unknown", data: g });
71
+ const m = {
72
+ chart: { type: n.options.highchartsType, inverted: n.options.inverted },
73
+ plotOptions: { series: { borderColor: "#333" } },
74
+ series: l,
75
+ title: { text: s.title.text },
76
+ xAxis: { categories: s.data.categoryLabels },
77
+ yAxis: { title: { text: s.data.name } }
78
+ }, c = b.chart(u, m, h);
79
+ return { chart: c, resize: () => c.reflow(), vendorId: E };
80
+ }
81
+ async function r() {
82
+ if (b) return;
83
+ const n = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", s = `${n}highcharts.src.js`, u = `${n}modules/accessibility.src.js`;
84
+ b = (await import(
85
+ /* @vite-ignore */
86
+ s
87
+ )).default, await import(
88
+ /* @vite-ignore */
89
+ u
90
+ );
91
+ }
92
+ async function o() {
93
+ if (w) return;
94
+ await import(`${v}highcharts-more.src.js`), w = !0;
95
+ }
96
+ return { renderCartesianChart: e, renderPolarChart: t, renderRangeChart: a };
97
+ }
20
98
  class I extends Error {
21
99
  locator;
22
100
  constructor(t, a, r) {
@@ -28,12 +106,12 @@ class p extends I {
28
106
  super(t, a, r), this.name = "ApplicationError";
29
107
  }
30
108
  }
31
- class k extends p {
109
+ class U extends p {
32
110
  constructor(t, a, r) {
33
111
  super(t, a, r), this.name = "APIError";
34
112
  }
35
113
  }
36
- class O extends p {
114
+ class B extends p {
37
115
  constructor(t, a, r) {
38
116
  super(t, a, r), this.name = "EngineError";
39
117
  }
@@ -44,36 +122,36 @@ class T extends p {
44
122
  super(t, a, o), this.name = "FetchError", this.body = r;
45
123
  }
46
124
  }
47
- class v extends p {
125
+ class S extends p {
48
126
  componentName;
49
127
  info;
50
128
  constructor(t, a, r, o, n) {
51
129
  super(t, a, n), this.name = "VueHandledError", this.info = r, this.componentName = o;
52
130
  }
53
131
  }
54
- class M extends p {
132
+ class j extends p {
55
133
  constructor(t, a, r) {
56
134
  super(t, a, r), this.name = "WindowHandledRuntimeError";
57
135
  }
58
136
  }
59
- class U extends p {
137
+ class H extends p {
60
138
  constructor(t, a, r) {
61
139
  super(t, a, r), this.name = "WindowHandledPromiseRejectionError";
62
140
  }
63
141
  }
64
- class B extends I {
142
+ class W extends I {
65
143
  constructor(t, a, r) {
66
144
  super(t, a, r), this.name = "OperationalError";
67
145
  }
68
146
  }
69
- async function j(e, t, a) {
147
+ async function z(e, t, a) {
70
148
  const r = `${t} Response status '${e.status}${e.statusText ? ` - ${e.statusText}` : ""}' received.`, o = await e.text();
71
149
  return new T(r, a, o);
72
150
  }
73
- function H(e) {
151
+ function P(e) {
74
152
  return e.map((t) => t.message).join(" ");
75
153
  }
76
- function W(e, t = "Unknown error.") {
154
+ function V(e, t = "Unknown error.") {
77
155
  if (e instanceof Error) return e;
78
156
  if (typeof e == "string") return new Error(e);
79
157
  try {
@@ -82,7 +160,7 @@ function W(e, t = "Unknown error.") {
82
160
  return new Error(t);
83
161
  }
84
162
  }
85
- function z(e) {
163
+ function X(e) {
86
164
  const t = /* @__PURE__ */ new Set(), a = [];
87
165
  let r = e;
88
166
  for (; r && !t.has(r); ) {
@@ -90,7 +168,7 @@ function z(e) {
90
168
  let o;
91
169
  if (r instanceof T)
92
170
  o = { body: r.body, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
93
- else if (r instanceof v)
171
+ else if (r instanceof S)
94
172
  o = { componentName: r.componentName, info: r.info, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
95
173
  else if (r instanceof I)
96
174
  o = { locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
@@ -102,84 +180,6 @@ function z(e) {
102
180
  }
103
181
  return a;
104
182
  }
105
- function P() {
106
- function e(t, a, r) {
107
- r.textContent = "Cytoscape.js diagram goes here...";
108
- }
109
- return { render: e };
110
- }
111
- function V() {
112
- function e(t, a, r) {
113
- r.textContent = "values table goes here...";
114
- }
115
- return { render: e };
116
- }
117
- const S = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", E = "highcharts";
118
- let b, w = !1;
119
- function X() {
120
- async function e(n, s, u, h) {
121
- await r();
122
- const l = [];
123
- for (const c of s.data.measures)
124
- l.push({ type: n.options.highchartsType, name: c.name, data: c.data });
125
- const g = {
126
- chart: { type: n.options.highchartsType },
127
- plotOptions: { series: { borderColor: "#333" } },
128
- series: l,
129
- title: { text: s.title.text },
130
- xAxis: { categories: s.data.categoryLabels },
131
- yAxis: { title: { text: s.data.name } }
132
- }, m = b.chart(u, g, h);
133
- return { chart: m, resize: () => m.reflow(), vendorId: E };
134
- }
135
- async function t(n, s, u, h) {
136
- await Promise.all([r(), o()]);
137
- const l = [];
138
- for (const c of s.data.measures)
139
- l.push({ type: n.options.highchartsType, name: c.name, data: c.data });
140
- const g = {
141
- chart: { polar: !0 },
142
- plotOptions: { series: { borderColor: "#333" } },
143
- series: l,
144
- title: { text: s.title.text },
145
- xAxis: { categories: s.data.categoryLabels },
146
- yAxis: { title: { text: s.data.name } }
147
- }, m = b.chart(u, g, h);
148
- return { chart: m, resize: () => m.reflow(), vendorId: E };
149
- }
150
- async function a(n, s, u, h) {
151
- await Promise.all([r(), o()]);
152
- const l = [], g = [];
153
- for (let f = 0; f < s.data.measures[0].data.length; f++)
154
- g.push([s.data.measures[0].data[f][0], s.data.measures[1].data[f][0]]);
155
- l.push({ type: n.options.highchartsType, name: "Unknown", data: g });
156
- const m = {
157
- chart: { type: n.options.highchartsType, inverted: n.options.inverted },
158
- plotOptions: { series: { borderColor: "#333" } },
159
- series: l,
160
- title: { text: s.title.text },
161
- xAxis: { categories: s.data.categoryLabels },
162
- yAxis: { title: { text: s.data.name } }
163
- }, c = b.chart(u, m, h);
164
- return { chart: c, resize: () => c.reflow(), vendorId: E };
165
- }
166
- async function r() {
167
- if (b) return;
168
- const n = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", s = `${n}highcharts.src.js`, u = `${n}modules/accessibility.src.js`;
169
- b = (await import(
170
- /* @vite-ignore */
171
- s
172
- )).default, await import(
173
- /* @vite-ignore */
174
- u
175
- );
176
- }
177
- async function o() {
178
- if (w) return;
179
- await import(`${S}highcharts-more.src.js`), w = !0;
180
- }
181
- return { renderCartesianChart: e, renderPolarChart: t, renderRangeChart: a };
182
- }
183
183
  const D = "en-US", y = {}, G = (e) => {
184
184
  switch (e) {
185
185
  case "Edm.Binary":
@@ -322,18 +322,18 @@ const D = "en-US", y = {}, G = (e) => {
322
322
  return a ? { ...a, label: a.label[t] || a.label[d] || e } : { id: e, color: "other", label: e };
323
323
  }, d = "en-gb";
324
324
  export {
325
- k as APIError,
325
+ U as APIError,
326
326
  p as ApplicationError,
327
327
  d as DEFAULT_LOCALE_CODE,
328
328
  R as DefaultTimestamp,
329
- O as EngineError,
329
+ B as EngineError,
330
330
  T as FetchError,
331
- B as OperationalError,
332
- v as VueError,
333
- U as WindowPromiseRejectionError,
334
- M as WindowRuntimeError,
335
- j as buildFetchError,
336
- H as concatenateSerialisedErrorMessages,
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
337
  L as convertMillisecondsToTimestamp,
338
338
  G as convertODataTypeIdToUsageTypeId,
339
339
  K as extractExtensionFromPath,
@@ -349,10 +349,10 @@ export {
349
349
  re as getRecordDelimiters,
350
350
  te as getValueDelimiters,
351
351
  Z as lookupMimeTypeForExtension,
352
- W as normalizeToError,
352
+ V as normalizeToError,
353
353
  _ as presentationViewTypeMap,
354
- z as serialiseError,
355
- P as useCytoscapeJS,
356
- V as useDataTable,
357
- X as useHighcharts
354
+ X as serialiseError,
355
+ k as useCytoscapeJS,
356
+ O as useDataTable,
357
+ M as useHighcharts
358
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;
@@ -35,6 +35,10 @@ export interface ConnectorConfig extends ComponentConfig {
35
35
  vendorHomeURL?: string;
36
36
  version: string;
37
37
  }
38
+ export type ConnectorLocalisedConfig = Omit<ConnectorConfig, 'label' | 'description'> & {
39
+ label: string;
40
+ description: string;
41
+ };
38
42
  export type ConnectorImplementation = {
39
43
  activeConnectionCount?: number;
40
44
  canDescribe?: boolean;
@@ -44,10 +48,6 @@ export type ConnectorImplementation = {
44
48
  maxConnectionCount?: number;
45
49
  params?: Record<string, string>[];
46
50
  };
47
- export type ConnectorLocalisedConfig = Omit<ConnectorConfig, 'label' | 'description'> & {
48
- label: string;
49
- description: string;
50
- };
51
51
  export type ConnectorTools = {
52
52
  csvParse: typeof csvParse;
53
53
  dataPos: {
@@ -0,0 +1,132 @@
1
+ import { ComponentConfig, ComponentRef } from '..';
2
+ export interface Context {
3
+ readonly config: ContextConfig;
4
+ list(settings?: ContextListSettings): Promise<ContextListResult>;
5
+ }
6
+ export type ContextOperationSettings = {};
7
+ export type ContextListSettings = {};
8
+ export type ContextListResult = {
9
+ models: ContextModelGroupConfig[];
10
+ };
11
+ export type ContextCallbackData = {
12
+ typeId: string;
13
+ properties: Record<string, unknown>;
14
+ };
15
+ export interface ContextConfig extends ComponentConfig {
16
+ models: ContextModelGroupConfig[];
17
+ version: string;
18
+ }
19
+ export type ContextLocalisedConfig = Omit<ContextConfig, 'label' | 'description'> & {
20
+ label: string;
21
+ description: string;
22
+ };
23
+ export interface ContextModelGroupConfig extends ComponentConfig {
24
+ modelRefs: ComponentRef[];
25
+ order: number;
26
+ }
27
+ export type ContextModelGroupLocalisedConfig = Omit<ContextModelGroupConfig, 'label' | 'description'> & {
28
+ label: string;
29
+ description: string;
30
+ };
31
+ export interface ContextModelConfig extends ComponentConfig {
32
+ diagramURL?: string;
33
+ dimension: ContextModelDimensionGroupConfig[];
34
+ entities: ContextModelEntityGroupConfig[];
35
+ secondaryMeasures: ContextModelSecondaryMeasureGroupConfig[];
36
+ }
37
+ export type ContextModelLocalisedConfig = Omit<ContextModelConfig, 'label' | 'description'> & {
38
+ label: string;
39
+ description: string;
40
+ };
41
+ export interface ContextModelDimensionGroupConfig {
42
+ id: string;
43
+ label: Record<string, string>;
44
+ description?: Record<string, unknown>;
45
+ dimensionRefs: ComponentRef[];
46
+ }
47
+ export type ContextModelDimensionGroupLocalisedConfig = Omit<ContextModelDimensionGroupConfig, 'label' | 'description'> & {
48
+ label: string;
49
+ description: string;
50
+ };
51
+ export interface ContextModelDimensionConfig {
52
+ id: string;
53
+ label: Record<string, string>;
54
+ hierarchies: ContextModelDimensionHierarchyConfig[];
55
+ }
56
+ export type ContextModelDimensionLocalisedConfig = Omit<ContextModelDimensionConfig, 'label' | 'description'> & {
57
+ label: string;
58
+ description: string;
59
+ };
60
+ export interface ContextModelDimensionHierarchyConfig {
61
+ id: string;
62
+ label: Record<string, string>;
63
+ }
64
+ export type ContextModelDimensionHierarchyLocalisedConfig = Omit<ContextModelDimensionHierarchyConfig, 'label' | 'description'> & {
65
+ label: string;
66
+ description: string;
67
+ };
68
+ export interface ContextModelEntityGroupConfig {
69
+ id: string;
70
+ label: Record<string, string>;
71
+ description?: Record<string, unknown>;
72
+ entityRefs: ComponentRef[];
73
+ }
74
+ export type ContextModelEntityGroupLocalisedConfig = Omit<ContextModelEntityGroupConfig, 'label' | 'description'> & {
75
+ label: string;
76
+ description: string;
77
+ };
78
+ export interface ContextModelEntityConfig {
79
+ id: string;
80
+ label: Record<string, string>;
81
+ labelPlural: Record<string, string>;
82
+ dataItems: ContextModelEntityDataItemConfig[];
83
+ events: ContextModelEntityEventConfig[];
84
+ primaryMeasures: ContextModelEntityPrimaryMeasureConfig[];
85
+ }
86
+ export type ContextModelEntityLocalisedConfig = Omit<ContextModelEntityConfig, 'label' | 'description'> & {
87
+ label: string;
88
+ description: string;
89
+ };
90
+ export interface ContextModelEntityDataItemConfig {
91
+ id: string;
92
+ label: Record<string, string>;
93
+ }
94
+ export type ContextModelEntityDataItemLocalisedConfig = Omit<ContextModelEntityDataItemConfig, 'label' | 'description'> & {
95
+ label: string;
96
+ description: string;
97
+ };
98
+ export interface ContextModelEntityEventConfig {
99
+ id: string;
100
+ labelAction: Record<string, string>;
101
+ labelState: Record<string, string>;
102
+ }
103
+ export type ContextModelEntityEventLocalisedConfig = Omit<ContextModelEntityEventConfig, 'label' | 'description'> & {
104
+ label: string;
105
+ description: string;
106
+ };
107
+ export interface ContextModelEntityPrimaryMeasureConfig {
108
+ id: string;
109
+ label: Record<string, string>;
110
+ }
111
+ export type ContextModelEntityPrimaryMeasureLocalisedConfig = Omit<ContextModelEntityPrimaryMeasureConfig, 'label' | 'description'> & {
112
+ label: string;
113
+ description: string;
114
+ };
115
+ export interface ContextModelSecondaryMeasureGroupConfig {
116
+ id: string;
117
+ label: Record<string, string>;
118
+ description?: Record<string, unknown>;
119
+ secondaryMeasureRefs: ComponentRef[];
120
+ }
121
+ export type ContextModelSecondaryMeasureGroupLocalisedConfig = Omit<ContextModelSecondaryMeasureGroupConfig, 'label' | 'description'> & {
122
+ label: string;
123
+ description: string;
124
+ };
125
+ export interface ContextModelSecondaryMeasureConfig {
126
+ id: string;
127
+ label: Record<string, string>;
128
+ }
129
+ export type ContextModelSecondaryMeasureLocalisedConfig = Omit<ContextModelSecondaryMeasureConfig, 'label' | 'description'> & {
130
+ label: string;
131
+ description: string;
132
+ };
@@ -1,4 +1,4 @@
1
- import { PreviewColumn } from './Z_PreviewColumn';
1
+ import { PreviewColumn } from '../../Z_PreviewColumn';
2
2
  export type ParsedValue = {
3
3
  isValid: boolean;
4
4
  value: bigint | boolean | number | string | null;
@@ -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[];
@@ -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>;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Build connector configuration.
3
+ */
4
+ export declare function buildConnectorConfig(): Promise<void>;
@@ -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 {};
@@ -1,2 +1,5 @@
1
+ /**
2
+ * Vite configuration.
3
+ */
1
4
  declare const _default: import('vite').UserConfig;
2
5
  export default _default;
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.103",
5
+ "version": "0.3.114",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"
@@ -35,7 +35,7 @@
35
35
  "prettier": "^3.6.2",
36
36
  "retire": "^5.3.0",
37
37
  "typescript": "^5.9.3",
38
- "vite": "^7.1.12",
38
+ "vite": "^7.2.1",
39
39
  "vite-plugin-dts": "^4.5.4"
40
40
  },
41
41
  "scripts": {
@@ -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
- }