@datapos/datapos-shared 0.3.103 → 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.
- package/dist/datapos-shared.es.js +102 -102
- package/dist/types/src/{connection.d.ts → component/connector/connection.d.ts} +3 -3
- package/dist/types/src/{connector.d.ts → component/connector/index.d.ts} +5 -5
- package/dist/types/src/component/context/index.d.ts +131 -0
- package/dist/types/src/{dataView.d.ts → component/dataView/index.d.ts} +9 -9
- package/dist/types/src/{dimension.d.ts → component/dimension/index.d.ts} +1 -1
- package/dist/types/src/{eventQuery.d.ts → component/eventQuery/index.d.ts} +1 -1
- package/dist/types/src/{component.d.ts → component/index.d.ts} +5 -5
- package/dist/types/src/{recipe.d.ts → component/informer/recipe.d.ts} +1 -1
- package/dist/types/src/{tutorial.d.ts → component/informer/tutorial.d.ts} +1 -1
- package/dist/types/src/{presenter.d.ts → component/presenter/index.d.ts} +5 -5
- package/dist/types/src/engine.d.ts +4 -4
- package/dist/types/src/index.d.ts +42 -33
- package/dist/types/src/module.d.ts +49 -0
- package/package.json +2 -2
- package/dist/types/src/Z_dataConnector.d.ts +0 -0
- package/dist/types/src/Z_nodeConnector.d.ts +0 -0
- package/dist/types/src/context.d.ts +0 -106
- package/dist/types/src/location.d.ts +0 -0
- package/dist/types/src/monitor.d.ts +0 -0
- package/dist/types/src/package.d.ts +0 -0
- package/dist/types/src/service.d.ts +0 -10
- package/dist/types/src/state.d.ts +0 -5
- /package/dist/types/src/{errors.d.ts → errors/index.d.ts} +0 -0
- /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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
151
|
+
function P(e) {
|
|
74
152
|
return e.map((t) => t.message).join(" ");
|
|
75
153
|
}
|
|
76
|
-
function
|
|
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
|
|
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
|
|
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
|
-
|
|
325
|
+
U as APIError,
|
|
326
326
|
p as ApplicationError,
|
|
327
327
|
d as DEFAULT_LOCALE_CODE,
|
|
328
328
|
R as DefaultTimestamp,
|
|
329
|
-
|
|
329
|
+
B as EngineError,
|
|
330
330
|
T as FetchError,
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
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
|
-
|
|
352
|
+
V as normalizeToError,
|
|
353
353
|
_ as presentationViewTypeMap,
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
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 '
|
|
2
|
-
import { ConnectorConfig } from '
|
|
3
|
-
import { Timestamp } from '
|
|
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 '
|
|
5
|
-
import { buildFetchError, OperationalError } from '
|
|
4
|
+
import { ComponentConfig } from '..';
|
|
5
|
+
import { buildFetchError, OperationalError } from '../../errors';
|
|
6
6
|
import { ConnectionConfig, ConnectionDescription, ConnectionNodeConfig } from './connection';
|
|
7
|
-
import { convertMillisecondsToTimestamp, LocalisedString } from '
|
|
8
|
-
import { DataViewContentAuditConfig, ValueDelimiterId } from '
|
|
9
|
-
import { extractExtensionFromPath, extractNameFromPath, lookupMimeTypeForExtension } from '
|
|
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 '
|
|
2
|
-
import { Timestamp } from '
|
|
3
|
-
import { ConnectionColumnConfig, ConnectionNodeConfig } from '
|
|
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('
|
|
58
|
-
export declare const getDataFormats: (localeId?: import('
|
|
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('
|
|
64
|
-
export declare const getRecordDelimiters: (localeId?: import('
|
|
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('
|
|
70
|
-
export declare const getValueDelimiters: (localeId?: import('
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { Timestamp } from '
|
|
2
|
-
import { LocaleCode, LocalisedString, StatusColorId } from '
|
|
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
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { default as markdownIt } from 'markdown-it';
|
|
2
|
-
import { ComponentConfig, ComponentRef } from '
|
|
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>;
|
|
@@ -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
|
|
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,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export type {
|
|
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
|
|
36
|
-
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|