@datapos/datapos-development 0.3.179 â 0.3.181
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.
|
@@ -7440,7 +7440,41 @@ function Rc(e, t = {}) {
|
|
|
7440
7440
|
function Dc(e) {
|
|
7441
7441
|
return gu(e);
|
|
7442
7442
|
}
|
|
7443
|
-
const Mc = Ce([T("amber"), T("green"), T("red"), T("other")]), zc = Ce([
|
|
7443
|
+
const Mc = Ce([T("amber"), T("green"), T("red"), T("other")]), zc = Ce([
|
|
7444
|
+
T("alpha"),
|
|
7445
|
+
T("beta"),
|
|
7446
|
+
T("generalAvailability"),
|
|
7447
|
+
T("notApplicable"),
|
|
7448
|
+
T("preAlpha"),
|
|
7449
|
+
T("proposed"),
|
|
7450
|
+
T("releaseCandidate"),
|
|
7451
|
+
T("unavailable"),
|
|
7452
|
+
T("underReview")
|
|
7453
|
+
]), Vc = Ce([
|
|
7454
|
+
T("app"),
|
|
7455
|
+
T("connector"),
|
|
7456
|
+
T("connectorConnection"),
|
|
7457
|
+
T("context"),
|
|
7458
|
+
T("contextModelGroup"),
|
|
7459
|
+
T("contextModel"),
|
|
7460
|
+
T("contextModelDimensionGroup"),
|
|
7461
|
+
T("contextModelDimension"),
|
|
7462
|
+
T("contextModelDimensionHierarchy"),
|
|
7463
|
+
T("contextModelEntityGroup"),
|
|
7464
|
+
T("contextModelEntity"),
|
|
7465
|
+
T("contextModelEntityDataItem"),
|
|
7466
|
+
T("contextModelEntityEvent"),
|
|
7467
|
+
T("contextModelEntityPrimaryMeasure"),
|
|
7468
|
+
T("contextModelSecondaryMeasureGroup"),
|
|
7469
|
+
T("contextModelSecondaryMeasure"),
|
|
7470
|
+
T("dataView"),
|
|
7471
|
+
T("dimension"),
|
|
7472
|
+
T("engine"),
|
|
7473
|
+
T("eventQuery"),
|
|
7474
|
+
T("presenter"),
|
|
7475
|
+
T("presenterPresentation"),
|
|
7476
|
+
T("tool")
|
|
7477
|
+
]), Fc = Ce([T("en-au"), T("en-gb"), T("en-us"), T("es-es")]), jc = lt(Fc, ie()), $c = Zt({
|
|
7444
7478
|
id: ie(),
|
|
7445
7479
|
color: Mc,
|
|
7446
7480
|
label: ie()
|
|
@@ -7452,7 +7486,7 @@ const Mc = Ce([T("amber"), T("green"), T("red"), T("other")]), zc = Ce([T("alpha
|
|
|
7452
7486
|
icon: ie().optional(),
|
|
7453
7487
|
iconDark: ie().optional(),
|
|
7454
7488
|
lastUpdatedAt: Rt().optional(),
|
|
7455
|
-
status: $c.optional(),
|
|
7489
|
+
status: $c.nullable().optional(),
|
|
7456
7490
|
statusId: zc,
|
|
7457
7491
|
typeId: Vc
|
|
7458
7492
|
}), Zc = Ce([T("app"), T("engine"), T("connector"), T("context"), T("presenter"), T("tool")]), Uc = Zt({
|
|
@@ -7466,7 +7500,20 @@ const Mc = Ce([T("amber"), T("green"), T("red"), T("other")]), zc = Ce([T("alpha
|
|
|
7466
7500
|
label: jc.optional(),
|
|
7467
7501
|
maxConnectionCount: Rt().optional(),
|
|
7468
7502
|
params: ki(lt(ie(), ie())).optional()
|
|
7469
|
-
}), Hc = Ce([T("application"), T("curatedDataset"), T("database"), T("fileStore")]), Wc = Ce([
|
|
7503
|
+
}), Hc = Ce([T("application"), T("curatedDataset"), T("database"), T("fileStore")]), Wc = Ce([
|
|
7504
|
+
T("abortOperation"),
|
|
7505
|
+
T("authenticateConnection"),
|
|
7506
|
+
T("createObject"),
|
|
7507
|
+
T("describeConnection"),
|
|
7508
|
+
T("dropObject"),
|
|
7509
|
+
T("findObject"),
|
|
7510
|
+
T("getRecord"),
|
|
7511
|
+
T("listNodes"),
|
|
7512
|
+
T("previewObject"),
|
|
7513
|
+
T("removeRecords"),
|
|
7514
|
+
T("retrieveRecords"),
|
|
7515
|
+
T("upsertRecords")
|
|
7516
|
+
]), Kc = Ce([T("bidirectional"), T("destination"), T("source"), T("unknown")]), Gc = Bc.extend({
|
|
7470
7517
|
typeId: Zc,
|
|
7471
7518
|
version: ie()
|
|
7472
7519
|
}), fs = Gc.extend({
|
|
@@ -7476,17 +7523,17 @@ const Mc = Ce([T("amber"), T("green"), T("red"), T("other")]), zc = Ce([T("alpha
|
|
|
7476
7523
|
operations: ki(Wc),
|
|
7477
7524
|
typeId: T("connector"),
|
|
7478
7525
|
usageId: Kc,
|
|
7479
|
-
vendorAccountURL: ie().optional(),
|
|
7480
|
-
vendorDocumentationURL: ie().optional(),
|
|
7481
|
-
vendorHomeURL: ie().optional()
|
|
7526
|
+
vendorAccountURL: ie().nullable().optional(),
|
|
7527
|
+
vendorDocumentationURL: ie().nullable().optional(),
|
|
7528
|
+
vendorHomeURL: ie().nullable().optional()
|
|
7482
7529
|
});
|
|
7483
7530
|
console.log(1111, fs);
|
|
7484
7531
|
const Jc = ["critical", "high", "moderate", "low", "unknown"], ct = gs(vs);
|
|
7485
7532
|
async function rh() {
|
|
7486
7533
|
try {
|
|
7487
7534
|
console.info("đ Building configuration...");
|
|
7488
|
-
const e = JSON.parse(await F.readFile("package.json", "utf8")), t = JSON.parse(await F.readFile("config.json", "utf8"))
|
|
7489
|
-
|
|
7535
|
+
const e = JSON.parse(await F.readFile("package.json", "utf8")), t = JSON.parse(await F.readFile("config.json", "utf8"));
|
|
7536
|
+
e.name != null && (t.id = e.name.replace("@datapos/", "").replace("@data-positioning/", "")), e.version != null && (t.version = e.version), await F.writeFile("config.json", JSON.stringify(t, void 0, 4), "utf8"), console.info("â
Configuration built.");
|
|
7490
7537
|
} catch (e) {
|
|
7491
7538
|
console.error("â Error building configuration.", e);
|
|
7492
7539
|
}
|
|
@@ -7529,11 +7576,13 @@ async function nh() {
|
|
|
7529
7576
|
try {
|
|
7530
7577
|
console.info("đ Building connector configuration...");
|
|
7531
7578
|
const [e, t, i] = await Promise.all([
|
|
7532
|
-
F.readFile("package.json", "utf8").then((
|
|
7533
|
-
F.readFile("config.json", "utf8").then((
|
|
7579
|
+
F.readFile("package.json", "utf8").then((h) => JSON.parse(h)),
|
|
7580
|
+
F.readFile("config.json", "utf8").then((h) => JSON.parse(h)),
|
|
7534
7581
|
F.readFile("src/index.ts", "utf8")
|
|
7535
|
-
]), r =
|
|
7536
|
-
|
|
7582
|
+
]), r = fs.parse(t);
|
|
7583
|
+
console.log(2222, r);
|
|
7584
|
+
const n = Xc(i), u = Qc(n);
|
|
7585
|
+
n.operations.length > 0 ? console.info(`âšī¸ Implements ${n.operations.length} operations.`) : console.warn("â ī¸ Implements no operations."), u === "unknown" ? console.warn("â ī¸ No usage identified.") : console.info(`âšī¸ Supports '${u}' usage.`), t.id = e.name ?? t.id, t.version = e.version ?? t.version, t.operations = n.operations, t.usageId = u, await F.writeFile("config.json", JSON.stringify(t, void 0, 4), "utf8"), console.info("â
Connector configuration built.");
|
|
7537
7586
|
} catch (e) {
|
|
7538
7587
|
console.error("â Error building connector configuration.", e);
|
|
7539
7588
|
}
|
|
@@ -16,11 +16,11 @@ export declare const connectorConfigSchema: z.ZodObject<{
|
|
|
16
16
|
icon: z.ZodOptional<z.ZodString>;
|
|
17
17
|
iconDark: z.ZodOptional<z.ZodString>;
|
|
18
18
|
lastUpdatedAt: z.ZodOptional<z.ZodNumber>;
|
|
19
|
-
status: z.ZodOptional<z.ZodObject<{
|
|
19
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
20
|
id: z.ZodString;
|
|
21
21
|
color: z.ZodUnion<readonly [z.ZodLiteral<"amber">, z.ZodLiteral<"green">, z.ZodLiteral<"red">, z.ZodLiteral<"other">]>;
|
|
22
22
|
label: z.ZodString;
|
|
23
|
-
}, z.core.$strip
|
|
23
|
+
}, z.core.$strip>>>;
|
|
24
24
|
statusId: z.ZodUnion<readonly [z.ZodLiteral<"alpha">, z.ZodLiteral<"beta">, z.ZodLiteral<"generalAvailability">, z.ZodLiteral<"notApplicable">, z.ZodLiteral<"preAlpha">, z.ZodLiteral<"proposed">, z.ZodLiteral<"releaseCandidate">, z.ZodLiteral<"unavailable">, z.ZodLiteral<"underReview">]>;
|
|
25
25
|
version: z.ZodString;
|
|
26
26
|
category: z.ZodOptional<z.ZodObject<{
|
|
@@ -40,7 +40,7 @@ export declare const connectorConfigSchema: z.ZodObject<{
|
|
|
40
40
|
operations: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"abortOperation">, z.ZodLiteral<"authenticateConnection">, z.ZodLiteral<"createObject">, z.ZodLiteral<"describeConnection">, z.ZodLiteral<"dropObject">, z.ZodLiteral<"findObject">, z.ZodLiteral<"getRecord">, z.ZodLiteral<"listNodes">, z.ZodLiteral<"previewObject">, z.ZodLiteral<"removeRecords">, z.ZodLiteral<"retrieveRecords">, z.ZodLiteral<"upsertRecords">]>>;
|
|
41
41
|
typeId: z.ZodLiteral<"connector">;
|
|
42
42
|
usageId: z.ZodUnion<readonly [z.ZodLiteral<"bidirectional">, z.ZodLiteral<"destination">, z.ZodLiteral<"source">, z.ZodLiteral<"unknown">]>;
|
|
43
|
-
vendorAccountURL: z.ZodOptional<z.ZodString
|
|
44
|
-
vendorDocumentationURL: z.ZodOptional<z.ZodString
|
|
45
|
-
vendorHomeURL: z.ZodOptional<z.ZodString
|
|
43
|
+
vendorAccountURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
vendorDocumentationURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
vendorHomeURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
46
|
}, z.core.$strip>;
|
package/package.json
CHANGED