@datapos/datapos-shared 0.3.122 → 0.3.123
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.
|
@@ -33,7 +33,7 @@ function B() {
|
|
|
33
33
|
const S = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", I = "highcharts";
|
|
34
34
|
let b, T = !1;
|
|
35
35
|
function H() {
|
|
36
|
-
async function e(o, s,
|
|
36
|
+
async function e(o, s, d, c) {
|
|
37
37
|
await t();
|
|
38
38
|
const i = [];
|
|
39
39
|
for (const u of s.data.measures)
|
|
@@ -45,10 +45,10 @@ function H() {
|
|
|
45
45
|
title: { text: s.title.text },
|
|
46
46
|
xAxis: { categories: s.data.categoryLabels },
|
|
47
47
|
yAxis: { title: { text: s.data.name } }
|
|
48
|
-
}, m = b.chart(
|
|
48
|
+
}, m = b.chart(d, p, c);
|
|
49
49
|
return { chart: m, resize: () => m.reflow(), vendorId: I };
|
|
50
50
|
}
|
|
51
|
-
async function r(o, s,
|
|
51
|
+
async function r(o, s, d, c) {
|
|
52
52
|
await Promise.all([t(), n()]);
|
|
53
53
|
const i = [];
|
|
54
54
|
for (const u of s.data.measures)
|
|
@@ -60,10 +60,10 @@ function H() {
|
|
|
60
60
|
title: { text: s.title.text },
|
|
61
61
|
xAxis: { categories: s.data.categoryLabels },
|
|
62
62
|
yAxis: { title: { text: s.data.name } }
|
|
63
|
-
}, m = b.chart(
|
|
63
|
+
}, m = b.chart(d, p, c);
|
|
64
64
|
return { chart: m, resize: () => m.reflow(), vendorId: I };
|
|
65
65
|
}
|
|
66
|
-
async function a(o, s,
|
|
66
|
+
async function a(o, s, d, c) {
|
|
67
67
|
await Promise.all([t(), n()]);
|
|
68
68
|
const i = [], p = [];
|
|
69
69
|
for (let f = 0; f < s.data.measures[0].data.length; f++)
|
|
@@ -76,18 +76,18 @@ function H() {
|
|
|
76
76
|
title: { text: s.title.text },
|
|
77
77
|
xAxis: { categories: s.data.categoryLabels },
|
|
78
78
|
yAxis: { title: { text: s.data.name } }
|
|
79
|
-
}, u = b.chart(
|
|
79
|
+
}, u = b.chart(d, m, c);
|
|
80
80
|
return { chart: u, resize: () => u.reflow(), vendorId: I };
|
|
81
81
|
}
|
|
82
82
|
async function t() {
|
|
83
83
|
if (b) return;
|
|
84
|
-
const o = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", s = `${o}highcharts.src.js`,
|
|
84
|
+
const o = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", s = `${o}highcharts.src.js`, d = `${o}modules/accessibility.src.js`;
|
|
85
85
|
b = (await import(
|
|
86
86
|
/* @vite-ignore */
|
|
87
87
|
s
|
|
88
88
|
)).default, await import(
|
|
89
89
|
/* @vite-ignore */
|
|
90
|
-
|
|
90
|
+
d
|
|
91
91
|
);
|
|
92
92
|
}
|
|
93
93
|
async function n() {
|
|
@@ -280,7 +280,7 @@ const D = "en-US", E = {}, q = (e) => {
|
|
|
280
280
|
const r = [];
|
|
281
281
|
for (const a of O) r.push({ ...a, label: a.label[e] || a.label[g] || a.id });
|
|
282
282
|
return r;
|
|
283
|
-
},
|
|
283
|
+
}, C = [
|
|
284
284
|
{ id: `
|
|
285
285
|
`, label: { "en-gb": "Newline" } },
|
|
286
286
|
{ id: "\r", label: { "en-gb": "Carriage Return" } },
|
|
@@ -288,10 +288,10 @@ const D = "en-US", E = {}, q = (e) => {
|
|
|
288
288
|
`, label: { "en-gb": "Carriage Return/Newline" } }
|
|
289
289
|
], oe = (e = g) => {
|
|
290
290
|
const r = [];
|
|
291
|
-
for (const a of
|
|
291
|
+
for (const a of C)
|
|
292
292
|
r.push({ ...a, label: a.label[e] || a.label[g] || a.id });
|
|
293
293
|
return r;
|
|
294
|
-
},
|
|
294
|
+
}, R = [
|
|
295
295
|
{ id: ":", label: { "en-gb": "Colon" } },
|
|
296
296
|
{ id: ",", label: { "en-gb": "Comma" } },
|
|
297
297
|
{ id: "!", label: { "en-gb": "Exclamation Mark" } },
|
|
@@ -305,10 +305,10 @@ const D = "en-US", E = {}, q = (e) => {
|
|
|
305
305
|
{ id: "|", label: { "en-gb": "Vertical Bar" } }
|
|
306
306
|
], se = (e = g) => {
|
|
307
307
|
const r = [];
|
|
308
|
-
for (const a of
|
|
308
|
+
for (const a of R)
|
|
309
309
|
r.push({ ...a, label: a.label[e] || a.label[g] || a.id });
|
|
310
310
|
return r;
|
|
311
|
-
},
|
|
311
|
+
}, A = [
|
|
312
312
|
{ id: "alpha", color: "red", label: { "en-gb": "alpha" } },
|
|
313
313
|
{ id: "beta", color: "amber", label: { "en-gb": "beta" } },
|
|
314
314
|
{ id: "generalAvailability", color: "green", label: { "en-gb": "" } },
|
|
@@ -319,20 +319,20 @@ const D = "en-US", E = {}, q = (e) => {
|
|
|
319
319
|
{ id: "unavailable", color: "other", label: { "en-gb": "unavailable" } },
|
|
320
320
|
{ id: "underReview", color: "other", label: { "en-gb": "under-review" } }
|
|
321
321
|
], ie = (e, r = g) => {
|
|
322
|
-
const a =
|
|
322
|
+
const a = A.find((t) => t.id === e);
|
|
323
323
|
return a ? { ...a, label: a.label[r] || a.label[g] || e } : { id: e, color: "other", label: e };
|
|
324
324
|
}, $ = ["createObject", "dropObject", "removeRecords", "upsertRecords"], _ = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
|
|
325
325
|
async function le() {
|
|
326
326
|
try {
|
|
327
327
|
const e = await JSON.parse(await y.readFile("package.json", "utf8")), r = await JSON.parse(await y.readFile("config.json", "utf8")), a = await y.readFile("src/index.ts", "utf8");
|
|
328
328
|
let t = !1, n = !1;
|
|
329
|
-
const o = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, s = [...a.matchAll(o)].filter((
|
|
330
|
-
const i =
|
|
329
|
+
const o = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, s = [...a.matchAll(o)].filter((c) => !c[1] && c[2] !== "constructor").map((c) => {
|
|
330
|
+
const i = c[2];
|
|
331
331
|
return t = t || $.includes(i), n = n || _.includes(i), i;
|
|
332
|
-
}),
|
|
333
|
-
e.name && (r.id = e.name), r.operations = s,
|
|
332
|
+
}), d = n && t ? "bidirectional" : n ? "source" : t ? "destination" : null;
|
|
333
|
+
e.name && (r.id = e.name), r.operations = s, r.usageId = d, e.version && (r.version = e.version), await y.writeFile("config.json", JSON.stringify(r, void 0, 4), "utf8"), console.log("✅ Connector configuration built.");
|
|
334
334
|
} catch (e) {
|
|
335
|
-
console.warn("Error building connector configuration.", e);
|
|
335
|
+
console.warn("❌ Error building connector configuration.", e);
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
const g = "en-gb";
|
|
@@ -3,3 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare function buildConnectorConfig(): Promise<void>;
|
|
5
5
|
export declare function buildContextConfig(): Promise<void>;
|
|
6
|
+
export declare function buildInformerConfig(): Promise<void>;
|
|
7
|
+
export declare function buildPresenterConfig(): Promise<void>;
|
|
8
|
+
export declare function bumpVersion(): Promise<void>;
|
|
@@ -22,7 +22,7 @@ export interface ConnectorModuleConfig extends ModuleConfig {
|
|
|
22
22
|
iconDark: string;
|
|
23
23
|
operations: ConnectorModuleOperation[];
|
|
24
24
|
typeId: 'connector';
|
|
25
|
-
usageId
|
|
25
|
+
usageId: ConnectorModuleUsageId | null;
|
|
26
26
|
vendorAccountURL?: string;
|
|
27
27
|
vendorDocumentationURL?: string;
|
|
28
28
|
vendorHomeURL?: string;
|