react-semaphor 0.1.408 → 0.1.410
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/analytics-protocol/index.cjs +1 -1
- package/dist/analytics-protocol/index.js +22 -21
- package/dist/chunks/{calendar-preferences-dialog-BEJunQM-.js → calendar-preferences-dialog-B8FmFRHX.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-BDovl96B.js → calendar-preferences-dialog-ck4AU-to.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-D-G1kXb8.js → dashboard-briefing-launcher-Br_1IK1z.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DmybDHiR.js → dashboard-briefing-launcher-Tr2SqDMK.js} +2 -2
- package/dist/chunks/{dashboard-controls-DgjlAGWu.js → dashboard-controls-B2bEv8uG.js} +3 -3
- package/dist/chunks/{dashboard-controls-DIPQW6Vj.js → dashboard-controls-B7OObDNl.js} +1 -1
- package/dist/chunks/{dashboard-json-DUmEB8x3.js → dashboard-json-DAB8WVyb.js} +1 -1
- package/dist/chunks/{dashboard-json-DvW8_MWp.js → dashboard-json-DNixjalS.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-BZnVLA4S.js → edit-dashboard-visual-DWygSAp3.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-BuwFsoeW.js → edit-dashboard-visual-Dh8Ge3-B.js} +2 -2
- package/dist/chunks/{index-DhkNgPPm.js → index-BkTLAfKy.js} +4 -4
- package/dist/chunks/{index-D7JKnhyA.js → index-CQIMj-FF.js} +2 -2
- package/dist/chunks/source-identity-BM2FvJDP.js +1 -0
- package/dist/chunks/{source-identity-y0VSSreA.js → source-identity-Cv4Nm3TM.js} +23 -15
- package/dist/chunks/{update-policy-Bv3_5LFK.js → update-policy-BnEbPhHW.js} +305 -282
- package/dist/chunks/update-policy-CWg9c08k.js +3 -0
- package/dist/chunks/{use-create-flow-overlay-state-C9QPAd9_.js → use-create-flow-overlay-state-CZA-dSns.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-B8clS9IG.js → use-create-flow-overlay-state-uujasvbD.js} +1 -1
- package/dist/chunks/{validators-DaBsAUsR.js → validators-C-_9Ew5G.js} +1 -1
- package/dist/chunks/{validators-BCQB11_y.js → validators-CB9BFarT.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.cjs +1 -1
- package/dist/dashboard-authoring/index.js +2 -2
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +1 -1
- package/dist/data-app-codegen/index.cjs +1 -1
- package/dist/data-app-codegen/index.js +1 -1
- package/dist/data-app-codegen-node/index.cjs +304 -105
- package/dist/data-app-codegen-node/index.js +800 -503
- package/dist/data-app-sdk/index.cjs +2 -2
- package/dist/data-app-sdk/index.js +158 -155
- package/dist/data-app-sdk-adapters/index.cjs +1 -1
- package/dist/data-app-sdk-adapters/index.js +1 -1
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +4 -4
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/analytics-protocol.d.ts +2 -0
- package/dist/types/data-app-sdk.d.ts +3 -0
- package/package.json +1 -1
- package/dist/chunks/source-identity-uMaUe036.js +0 -1
- package/dist/chunks/update-policy-2M0canB_.js +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function n(e){return e?e.kind==="semantic"?[e.kind,e.domainId,e.datasetId?`datasetId:${e.datasetId}`:`datasetName:${e.datasetName}`].join(":"):e.kind==="physical"?[e.kind,e.connectionId,e.databaseName||"",e.schemaName||"",e.tableName].join(":"):[e.kind,e.connectionId,e.dialect||"",e.label||""].join(":"):""}function o(e,a){return!e||!a?e===a:e.kind!==a.kind?!1:e.kind==="semantic"&&a.kind==="semantic"?e.domainId!==a.domainId?!1:e.datasetId&&a.datasetId?e.datasetId===a.datasetId:e.datasetName===a.datasetName:n(e)===n(a)}function i(e,a){return e.kind!=="semantic"||a.kind!=="semantic"?e:{...e,datasetName:e.datasetName||a.datasetName,datasetId:e.datasetId||a.datasetId,label:e.label||a.label,connectionId:e.connectionId||a.connectionId}}function r(e){const a=[];for(const d of e){const t=a.findIndex(s=>o(s,d));if(t===-1){a.push(d);continue}a[t]=i(a[t],d)}return a}function m(e,a){return e.name===a.name&&o(e.source,a.source)}function c(e){return[e.source?n(e.source):"unknown",(e.aggregate||"SUM").toUpperCase(),e.name].filter(Boolean).join(":")}function p(e,a){return{...e,label:e.label||a.label,role:e.role||a.role,dataType:e.dataType||a.dataType,source:e.source&&a.source?i(e.source,a.source):e.source||a.source}}exports.mergeSemaphorSourcesByIdentity=r;exports.preferSemaphorFieldRefMetadata=p;exports.preferSemaphorSourceMetadata=i;exports.semaphorFieldRefsMatch=m;exports.semaphorMetricMeasureBindingKey=c;exports.semaphorSourceIdentityKey=n;exports.semaphorSourcesReferToSameDataset=o;
|
|
@@ -19,7 +19,7 @@ function t(a) {
|
|
|
19
19
|
function i(a, e) {
|
|
20
20
|
return !a || !e ? a === e : a.kind !== e.kind ? !1 : a.kind === "semantic" && e.kind === "semantic" ? a.domainId !== e.domainId ? !1 : a.datasetId && e.datasetId ? a.datasetId === e.datasetId : a.datasetName === e.datasetName : t(a) === t(e);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function o(a, e) {
|
|
23
23
|
return a.kind !== "semantic" || e.kind !== "semantic" ? a : {
|
|
24
24
|
...a,
|
|
25
25
|
datasetName: a.datasetName || e.datasetName,
|
|
@@ -30,38 +30,46 @@ function s(a, e) {
|
|
|
30
30
|
}
|
|
31
31
|
function m(a) {
|
|
32
32
|
const e = [];
|
|
33
|
-
for (const
|
|
34
|
-
const
|
|
35
|
-
(
|
|
33
|
+
for (const n of a) {
|
|
34
|
+
const d = e.findIndex(
|
|
35
|
+
(s) => i(s, n)
|
|
36
36
|
);
|
|
37
|
-
if (
|
|
38
|
-
e.push(
|
|
37
|
+
if (d === -1) {
|
|
38
|
+
e.push(n);
|
|
39
39
|
continue;
|
|
40
40
|
}
|
|
41
|
-
e[
|
|
42
|
-
e[
|
|
43
|
-
|
|
41
|
+
e[d] = o(
|
|
42
|
+
e[d],
|
|
43
|
+
n
|
|
44
44
|
);
|
|
45
45
|
}
|
|
46
46
|
return e;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function r(a, e) {
|
|
49
49
|
return a.name === e.name && i(a.source, e.source);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function I(a) {
|
|
52
|
+
return [
|
|
53
|
+
a.source ? t(a.source) : "unknown",
|
|
54
|
+
(a.aggregate || "SUM").toUpperCase(),
|
|
55
|
+
a.name
|
|
56
|
+
].filter(Boolean).join(":");
|
|
57
|
+
}
|
|
58
|
+
function c(a, e) {
|
|
52
59
|
return {
|
|
53
60
|
...a,
|
|
54
61
|
label: a.label || e.label,
|
|
55
62
|
role: a.role || e.role,
|
|
56
63
|
dataType: a.dataType || e.dataType,
|
|
57
|
-
source: a.source && e.source ?
|
|
64
|
+
source: a.source && e.source ? o(a.source, e.source) : a.source || e.source
|
|
58
65
|
};
|
|
59
66
|
}
|
|
60
67
|
export {
|
|
61
68
|
t as a,
|
|
62
69
|
i as b,
|
|
63
|
-
|
|
70
|
+
o as c,
|
|
71
|
+
I as d,
|
|
64
72
|
m,
|
|
65
|
-
|
|
66
|
-
|
|
73
|
+
c as p,
|
|
74
|
+
r as s
|
|
67
75
|
};
|