@salesforce/lds-adapters-cdp-semantic-authoring 1.334.0 → 1.336.0
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/es/es2018/cdp-semantic-authoring.js +1460 -855
- package/dist/es/es2018/types/src/generated/adapters/deleteGoalFromSubMetric.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/adapters/getLeafDependenciesByTypes.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getSemanticMetricsByIds.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/adapters/getSemanticSubMetricsById.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/adapters/patchSemanticMetricGoal.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/resources/deleteSsotSemanticModelsSubMetricsGoalByModelApiNameOrIdAndSubMetricNameOrId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticMetricsByMetricIds.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsDependenciesByModelApiNameOrId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsSubMetricsGoalByModelApiNameOrIdAndSubMetricNameOrId.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticSubMetricsBySubMetricIds.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/resources/patchSsotSemanticModelsSubMetricsGoalByModelApiNameOrIdAndSubMetricNameOrId.d.ts +3 -5
- package/dist/es/es2018/types/src/generated/types/SemanticGoalStatusConditionInputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/SemanticGoalStatusConditionOutputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/SemanticMetricGoalInputRepresentation.d.ts +8 -12
- package/dist/es/es2018/types/src/generated/types/SemanticMetricGoalOutputRepresentation.d.ts +4 -12
- package/package.json +3 -3
- package/sfdc/index.js +1398 -776
- package/src/raml/api.raml +111 -60
- package/src/raml/luvio.raml +13 -0
- package/dist/es/es2018/types/src/generated/types/SemanticGoalDateRangeInputRepresentation.d.ts +0 -31
- package/dist/es/es2018/types/src/generated/types/SemanticGoalDateRangeOutputRepresentation.d.ts +0 -31
- package/dist/es/es2018/types/src/generated/types/SemanticGoalValueInputRepresentation.d.ts +0 -28
- package/dist/es/es2018/types/src/generated/types/SemanticGoalValueOutputRepresentation.d.ts +0 -28
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$g, typeCheckConfig as typeCheckConfig$g, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$a } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -1639,7 +1639,7 @@ function validate$E(obj, path = 'SemanticParameterInputRepresentation') {
|
|
|
1639
1639
|
return v_error === undefined ? null : v_error;
|
|
1640
1640
|
}
|
|
1641
1641
|
|
|
1642
|
-
const VERSION$
|
|
1642
|
+
const VERSION$w = "3a32d382e7a2268096278aa8e5c6761a";
|
|
1643
1643
|
function validate$D(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
1644
1644
|
const v_error = (() => {
|
|
1645
1645
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1660,10 +1660,10 @@ function validate$D(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
|
1660
1660
|
})();
|
|
1661
1661
|
return v_error === undefined ? null : v_error;
|
|
1662
1662
|
}
|
|
1663
|
-
const select$
|
|
1663
|
+
const select$K = function SemanticBaseModelOutputRepresentationSelect() {
|
|
1664
1664
|
return {
|
|
1665
1665
|
kind: 'Fragment',
|
|
1666
|
-
version: VERSION$
|
|
1666
|
+
version: VERSION$w,
|
|
1667
1667
|
private: [],
|
|
1668
1668
|
selections: [
|
|
1669
1669
|
{
|
|
@@ -1678,7 +1678,7 @@ const select$F = function SemanticBaseModelOutputRepresentationSelect() {
|
|
|
1678
1678
|
]
|
|
1679
1679
|
};
|
|
1680
1680
|
};
|
|
1681
|
-
function equals$
|
|
1681
|
+
function equals$w(existing, incoming) {
|
|
1682
1682
|
const existing_apiName = existing.apiName;
|
|
1683
1683
|
const incoming_apiName = incoming.apiName;
|
|
1684
1684
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -1700,7 +1700,7 @@ function equals$t(existing, incoming) {
|
|
|
1700
1700
|
return true;
|
|
1701
1701
|
}
|
|
1702
1702
|
|
|
1703
|
-
const VERSION$
|
|
1703
|
+
const VERSION$v = "9b5a0e85af6a943c95625e2dfe81ab96";
|
|
1704
1704
|
function validate$C(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
1705
1705
|
const v_error = (() => {
|
|
1706
1706
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1730,10 +1730,10 @@ function validate$C(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
|
1730
1730
|
})();
|
|
1731
1731
|
return v_error === undefined ? null : v_error;
|
|
1732
1732
|
}
|
|
1733
|
-
const select$
|
|
1733
|
+
const select$J = function SemanticFilterOutputRepresentationSelect() {
|
|
1734
1734
|
return {
|
|
1735
1735
|
kind: 'Fragment',
|
|
1736
|
-
version: VERSION$
|
|
1736
|
+
version: VERSION$v,
|
|
1737
1737
|
private: [],
|
|
1738
1738
|
selections: [
|
|
1739
1739
|
{
|
|
@@ -1754,7 +1754,7 @@ const select$E = function SemanticFilterOutputRepresentationSelect() {
|
|
|
1754
1754
|
]
|
|
1755
1755
|
};
|
|
1756
1756
|
};
|
|
1757
|
-
function equals$
|
|
1757
|
+
function equals$v(existing, incoming) {
|
|
1758
1758
|
const existing_fieldName = existing.fieldName;
|
|
1759
1759
|
const incoming_fieldName = incoming.fieldName;
|
|
1760
1760
|
// if at least one of these optionals is defined
|
|
@@ -1797,7 +1797,7 @@ function equals$s(existing, incoming) {
|
|
|
1797
1797
|
return true;
|
|
1798
1798
|
}
|
|
1799
1799
|
|
|
1800
|
-
const VERSION$
|
|
1800
|
+
const VERSION$u = "51514a172af5e420504a2143725b4528";
|
|
1801
1801
|
function validate$B(obj, path = 'SemanticCalculatedDimensionOutputRepresentation') {
|
|
1802
1802
|
const v_error = (() => {
|
|
1803
1803
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1948,24 +1948,24 @@ function validate$B(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
1948
1948
|
})();
|
|
1949
1949
|
return v_error === undefined ? null : v_error;
|
|
1950
1950
|
}
|
|
1951
|
-
const RepresentationType$
|
|
1952
|
-
function keyBuilder$
|
|
1953
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1951
|
+
const RepresentationType$h = 'SemanticCalculatedDimensionOutputRepresentation';
|
|
1952
|
+
function keyBuilder$x(luvio, config) {
|
|
1953
|
+
return keyPrefix + '::' + RepresentationType$h + ':' + config.name;
|
|
1954
1954
|
}
|
|
1955
1955
|
function keyBuilderFromType$b(luvio, object) {
|
|
1956
1956
|
const keyParams = {
|
|
1957
1957
|
name: object.id
|
|
1958
1958
|
};
|
|
1959
|
-
return keyBuilder$
|
|
1959
|
+
return keyBuilder$x(luvio, keyParams);
|
|
1960
1960
|
}
|
|
1961
|
-
function normalize$
|
|
1961
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
1962
1962
|
return input;
|
|
1963
1963
|
}
|
|
1964
|
-
const select$
|
|
1965
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
1964
|
+
const select$I = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
1965
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$J();
|
|
1966
1966
|
return {
|
|
1967
1967
|
kind: 'Fragment',
|
|
1968
|
-
version: VERSION$
|
|
1968
|
+
version: VERSION$u,
|
|
1969
1969
|
private: [],
|
|
1970
1970
|
selections: [
|
|
1971
1971
|
{
|
|
@@ -2069,7 +2069,7 @@ const select$D = function SemanticCalculatedDimensionOutputRepresentationSelect(
|
|
|
2069
2069
|
]
|
|
2070
2070
|
};
|
|
2071
2071
|
};
|
|
2072
|
-
function equals$
|
|
2072
|
+
function equals$u(existing, incoming) {
|
|
2073
2073
|
const existing_isVisible = existing.isVisible;
|
|
2074
2074
|
const incoming_isVisible = incoming.isVisible;
|
|
2075
2075
|
// if at least one of these optionals is defined
|
|
@@ -2295,7 +2295,7 @@ function equals$r(existing, incoming) {
|
|
|
2295
2295
|
return false;
|
|
2296
2296
|
}
|
|
2297
2297
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
2298
|
-
if (!(equals$
|
|
2298
|
+
if (!(equals$v(existing_filters_item, incoming_filters_item))) {
|
|
2299
2299
|
return false;
|
|
2300
2300
|
}
|
|
2301
2301
|
});
|
|
@@ -2305,7 +2305,7 @@ function equals$r(existing, incoming) {
|
|
|
2305
2305
|
}
|
|
2306
2306
|
return true;
|
|
2307
2307
|
}
|
|
2308
|
-
const ingest$
|
|
2308
|
+
const ingest$h = function SemanticCalculatedDimensionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2309
2309
|
if (process.env.NODE_ENV !== 'production') {
|
|
2310
2310
|
const validateError = validate$B(input);
|
|
2311
2311
|
if (validateError !== null) {
|
|
@@ -2314,20 +2314,20 @@ const ingest$g = function SemanticCalculatedDimensionOutputRepresentationIngest(
|
|
|
2314
2314
|
}
|
|
2315
2315
|
const key = keyBuilderFromType$b(luvio, input);
|
|
2316
2316
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
2317
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2317
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SemanticAuthoring", VERSION$u, RepresentationType$h, equals$u);
|
|
2318
2318
|
return createLink(key);
|
|
2319
2319
|
};
|
|
2320
|
-
function getTypeCacheKeys$
|
|
2320
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
2321
2321
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2322
2322
|
const rootKey = keyBuilderFromType$b(luvio, input);
|
|
2323
2323
|
rootKeySet.set(rootKey, {
|
|
2324
2324
|
namespace: keyPrefix,
|
|
2325
|
-
representationName: RepresentationType$
|
|
2325
|
+
representationName: RepresentationType$h,
|
|
2326
2326
|
mergeable: false
|
|
2327
2327
|
});
|
|
2328
2328
|
}
|
|
2329
2329
|
|
|
2330
|
-
const VERSION$
|
|
2330
|
+
const VERSION$t = "6c8d910667cf399d3aa6e5a57e1fdd61";
|
|
2331
2331
|
function validate$A(obj, path = 'SemanticCalculatedMeasurementOutputRepresentation') {
|
|
2332
2332
|
const v_error = (() => {
|
|
2333
2333
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2520,24 +2520,24 @@ function validate$A(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
2520
2520
|
})();
|
|
2521
2521
|
return v_error === undefined ? null : v_error;
|
|
2522
2522
|
}
|
|
2523
|
-
const RepresentationType$
|
|
2524
|
-
function keyBuilder$
|
|
2525
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2523
|
+
const RepresentationType$g = 'SemanticCalculatedMeasurementOutputRepresentation';
|
|
2524
|
+
function keyBuilder$w(luvio, config) {
|
|
2525
|
+
return keyPrefix + '::' + RepresentationType$g + ':' + config.name;
|
|
2526
2526
|
}
|
|
2527
2527
|
function keyBuilderFromType$a(luvio, object) {
|
|
2528
2528
|
const keyParams = {
|
|
2529
2529
|
name: object.id
|
|
2530
2530
|
};
|
|
2531
|
-
return keyBuilder$
|
|
2531
|
+
return keyBuilder$w(luvio, keyParams);
|
|
2532
2532
|
}
|
|
2533
|
-
function normalize$
|
|
2533
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
2534
2534
|
return input;
|
|
2535
2535
|
}
|
|
2536
|
-
const select$
|
|
2537
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
2536
|
+
const select$H = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
2537
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$J();
|
|
2538
2538
|
return {
|
|
2539
2539
|
kind: 'Fragment',
|
|
2540
|
-
version: VERSION$
|
|
2540
|
+
version: VERSION$t,
|
|
2541
2541
|
private: [],
|
|
2542
2542
|
selections: [
|
|
2543
2543
|
{
|
|
@@ -2671,7 +2671,7 @@ const select$C = function SemanticCalculatedMeasurementOutputRepresentationSelec
|
|
|
2671
2671
|
]
|
|
2672
2672
|
};
|
|
2673
2673
|
};
|
|
2674
|
-
function equals$
|
|
2674
|
+
function equals$t(existing, incoming) {
|
|
2675
2675
|
const existing_isAggregatable = existing.isAggregatable;
|
|
2676
2676
|
const incoming_isAggregatable = incoming.isAggregatable;
|
|
2677
2677
|
// if at least one of these optionals is defined
|
|
@@ -2975,7 +2975,7 @@ function equals$q(existing, incoming) {
|
|
|
2975
2975
|
return false;
|
|
2976
2976
|
}
|
|
2977
2977
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
2978
|
-
if (!(equals$
|
|
2978
|
+
if (!(equals$v(existing_filters_item, incoming_filters_item))) {
|
|
2979
2979
|
return false;
|
|
2980
2980
|
}
|
|
2981
2981
|
});
|
|
@@ -2985,7 +2985,7 @@ function equals$q(existing, incoming) {
|
|
|
2985
2985
|
}
|
|
2986
2986
|
return true;
|
|
2987
2987
|
}
|
|
2988
|
-
const ingest$
|
|
2988
|
+
const ingest$g = function SemanticCalculatedMeasurementOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2989
2989
|
if (process.env.NODE_ENV !== 'production') {
|
|
2990
2990
|
const validateError = validate$A(input);
|
|
2991
2991
|
if (validateError !== null) {
|
|
@@ -2994,15 +2994,15 @@ const ingest$f = function SemanticCalculatedMeasurementOutputRepresentationInges
|
|
|
2994
2994
|
}
|
|
2995
2995
|
const key = keyBuilderFromType$a(luvio, input);
|
|
2996
2996
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
2997
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2997
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SemanticAuthoring", VERSION$t, RepresentationType$g, equals$t);
|
|
2998
2998
|
return createLink(key);
|
|
2999
2999
|
};
|
|
3000
|
-
function getTypeCacheKeys$
|
|
3000
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
3001
3001
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3002
3002
|
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
3003
3003
|
rootKeySet.set(rootKey, {
|
|
3004
3004
|
namespace: keyPrefix,
|
|
3005
|
-
representationName: RepresentationType$
|
|
3005
|
+
representationName: RepresentationType$g,
|
|
3006
3006
|
mergeable: false
|
|
3007
3007
|
});
|
|
3008
3008
|
}
|
|
@@ -3324,7 +3324,7 @@ function validate$y(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
|
3324
3324
|
return v_error === undefined ? null : v_error;
|
|
3325
3325
|
}
|
|
3326
3326
|
|
|
3327
|
-
const VERSION$
|
|
3327
|
+
const VERSION$s = "4f111b93807b811179eb310384efdc35";
|
|
3328
3328
|
function validate$x(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
3329
3329
|
const v_error = (() => {
|
|
3330
3330
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3495,34 +3495,34 @@ function validate$x(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
3495
3495
|
})();
|
|
3496
3496
|
return v_error === undefined ? null : v_error;
|
|
3497
3497
|
}
|
|
3498
|
-
const RepresentationType$
|
|
3499
|
-
function keyBuilder$
|
|
3500
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3498
|
+
const RepresentationType$f = 'SemanticDataObjectOutputRepresentation';
|
|
3499
|
+
function keyBuilder$v(luvio, config) {
|
|
3500
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.name;
|
|
3501
3501
|
}
|
|
3502
3502
|
function keyBuilderFromType$9(luvio, object) {
|
|
3503
3503
|
const keyParams = {
|
|
3504
3504
|
name: object.id
|
|
3505
3505
|
};
|
|
3506
|
-
return keyBuilder$
|
|
3506
|
+
return keyBuilder$v(luvio, keyParams);
|
|
3507
3507
|
}
|
|
3508
|
-
function normalize$
|
|
3508
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
3509
3509
|
return input;
|
|
3510
3510
|
}
|
|
3511
|
-
const select$
|
|
3511
|
+
const select$G = function SemanticDataObjectOutputRepresentationSelect() {
|
|
3512
3512
|
return {
|
|
3513
3513
|
kind: 'Fragment',
|
|
3514
|
-
version: VERSION$
|
|
3514
|
+
version: VERSION$s,
|
|
3515
3515
|
private: [],
|
|
3516
3516
|
opaque: true
|
|
3517
3517
|
};
|
|
3518
3518
|
};
|
|
3519
|
-
function equals$
|
|
3519
|
+
function equals$s(existing, incoming) {
|
|
3520
3520
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3521
3521
|
return false;
|
|
3522
3522
|
}
|
|
3523
3523
|
return true;
|
|
3524
3524
|
}
|
|
3525
|
-
const ingest$
|
|
3525
|
+
const ingest$f = function SemanticDataObjectOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3526
3526
|
if (process.env.NODE_ENV !== 'production') {
|
|
3527
3527
|
const validateError = validate$x(input);
|
|
3528
3528
|
if (validateError !== null) {
|
|
@@ -3531,20 +3531,20 @@ const ingest$e = function SemanticDataObjectOutputRepresentationIngest(input, pa
|
|
|
3531
3531
|
}
|
|
3532
3532
|
const key = keyBuilderFromType$9(luvio, input);
|
|
3533
3533
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
3534
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3534
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SemanticAuthoring", VERSION$s, RepresentationType$f, equals$s);
|
|
3535
3535
|
return createLink(key);
|
|
3536
3536
|
};
|
|
3537
|
-
function getTypeCacheKeys$
|
|
3537
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
3538
3538
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3539
3539
|
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
3540
3540
|
rootKeySet.set(rootKey, {
|
|
3541
3541
|
namespace: keyPrefix,
|
|
3542
|
-
representationName: RepresentationType$
|
|
3542
|
+
representationName: RepresentationType$f,
|
|
3543
3543
|
mergeable: false
|
|
3544
3544
|
});
|
|
3545
3545
|
}
|
|
3546
3546
|
|
|
3547
|
-
const VERSION$
|
|
3547
|
+
const VERSION$r = "ed64ca1a99171ace8b53aff11746cc2a";
|
|
3548
3548
|
function validate$w(obj, path = 'BinDimensionConfigurationOutputRepresentation') {
|
|
3549
3549
|
const v_error = (() => {
|
|
3550
3550
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3554,10 +3554,10 @@ function validate$w(obj, path = 'BinDimensionConfigurationOutputRepresentation')
|
|
|
3554
3554
|
})();
|
|
3555
3555
|
return v_error === undefined ? null : v_error;
|
|
3556
3556
|
}
|
|
3557
|
-
const select$
|
|
3557
|
+
const select$F = function BinDimensionConfigurationOutputRepresentationSelect() {
|
|
3558
3558
|
return {
|
|
3559
3559
|
kind: 'Fragment',
|
|
3560
|
-
version: VERSION$
|
|
3560
|
+
version: VERSION$r,
|
|
3561
3561
|
private: [],
|
|
3562
3562
|
selections: [
|
|
3563
3563
|
{
|
|
@@ -3567,7 +3567,7 @@ const select$A = function BinDimensionConfigurationOutputRepresentationSelect()
|
|
|
3567
3567
|
]
|
|
3568
3568
|
};
|
|
3569
3569
|
};
|
|
3570
|
-
function equals$
|
|
3570
|
+
function equals$r(existing, incoming) {
|
|
3571
3571
|
const existing_constantBinSize = existing.constantBinSize;
|
|
3572
3572
|
const incoming_constantBinSize = incoming.constantBinSize;
|
|
3573
3573
|
if (!(existing_constantBinSize === incoming_constantBinSize)) {
|
|
@@ -3576,7 +3576,7 @@ function equals$o(existing, incoming) {
|
|
|
3576
3576
|
return true;
|
|
3577
3577
|
}
|
|
3578
3578
|
|
|
3579
|
-
const VERSION$
|
|
3579
|
+
const VERSION$q = "2cdadcd630abb7b981b2d131880a68c0";
|
|
3580
3580
|
function validate$v(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
3581
3581
|
const v_error = (() => {
|
|
3582
3582
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3604,10 +3604,10 @@ function validate$v(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
|
3604
3604
|
})();
|
|
3605
3605
|
return v_error === undefined ? null : v_error;
|
|
3606
3606
|
}
|
|
3607
|
-
const select$
|
|
3607
|
+
const select$E = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
3608
3608
|
return {
|
|
3609
3609
|
kind: 'Fragment',
|
|
3610
|
-
version: VERSION$
|
|
3610
|
+
version: VERSION$q,
|
|
3611
3611
|
private: [],
|
|
3612
3612
|
selections: [
|
|
3613
3613
|
{
|
|
@@ -3623,7 +3623,7 @@ const select$z = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
|
3623
3623
|
]
|
|
3624
3624
|
};
|
|
3625
3625
|
};
|
|
3626
|
-
function equals$
|
|
3626
|
+
function equals$q(existing, incoming) {
|
|
3627
3627
|
const existing_name = existing.name;
|
|
3628
3628
|
const incoming_name = incoming.name;
|
|
3629
3629
|
if (!(existing_name === incoming_name)) {
|
|
@@ -3650,7 +3650,7 @@ function equals$n(existing, incoming) {
|
|
|
3650
3650
|
return true;
|
|
3651
3651
|
}
|
|
3652
3652
|
|
|
3653
|
-
const VERSION$
|
|
3653
|
+
const VERSION$p = "55c60b6207985632192cb4e419822a86";
|
|
3654
3654
|
function validate$u(obj, path = 'GroupDimensionConfigurationOutputRepresentation') {
|
|
3655
3655
|
const v_error = (() => {
|
|
3656
3656
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3683,11 +3683,11 @@ function validate$u(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
3683
3683
|
})();
|
|
3684
3684
|
return v_error === undefined ? null : v_error;
|
|
3685
3685
|
}
|
|
3686
|
-
const select$
|
|
3687
|
-
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$
|
|
3686
|
+
const select$D = function GroupDimensionConfigurationOutputRepresentationSelect() {
|
|
3687
|
+
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$E();
|
|
3688
3688
|
return {
|
|
3689
3689
|
kind: 'Fragment',
|
|
3690
|
-
version: VERSION$
|
|
3690
|
+
version: VERSION$p,
|
|
3691
3691
|
private: [],
|
|
3692
3692
|
selections: [
|
|
3693
3693
|
{
|
|
@@ -3705,7 +3705,7 @@ const select$y = function GroupDimensionConfigurationOutputRepresentationSelect(
|
|
|
3705
3705
|
]
|
|
3706
3706
|
};
|
|
3707
3707
|
};
|
|
3708
|
-
function equals$
|
|
3708
|
+
function equals$p(existing, incoming) {
|
|
3709
3709
|
const existing_ungroupedValuesGroupName = existing.ungroupedValuesGroupName;
|
|
3710
3710
|
const incoming_ungroupedValuesGroupName = incoming.ungroupedValuesGroupName;
|
|
3711
3711
|
// if at least one of these optionals is defined
|
|
@@ -3729,7 +3729,7 @@ function equals$m(existing, incoming) {
|
|
|
3729
3729
|
return false;
|
|
3730
3730
|
}
|
|
3731
3731
|
const equals_groups_items = equalsArray(existing_groups, incoming_groups, (existing_groups_item, incoming_groups_item) => {
|
|
3732
|
-
if (!(equals$
|
|
3732
|
+
if (!(equals$q(existing_groups_item, incoming_groups_item))) {
|
|
3733
3733
|
return false;
|
|
3734
3734
|
}
|
|
3735
3735
|
});
|
|
@@ -3740,7 +3740,7 @@ function equals$m(existing, incoming) {
|
|
|
3740
3740
|
return true;
|
|
3741
3741
|
}
|
|
3742
3742
|
|
|
3743
|
-
const VERSION$
|
|
3743
|
+
const VERSION$o = "50dc390b159159afb1945b9a811c9f80";
|
|
3744
3744
|
function validate$t(obj, path = 'SemanticGroupingConfigurationOutputRepresentation') {
|
|
3745
3745
|
const v_error = (() => {
|
|
3746
3746
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3769,12 +3769,12 @@ function validate$t(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
3769
3769
|
})();
|
|
3770
3770
|
return v_error === undefined ? null : v_error;
|
|
3771
3771
|
}
|
|
3772
|
-
const select$
|
|
3773
|
-
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
3774
|
-
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
3772
|
+
const select$C = function SemanticGroupingConfigurationOutputRepresentationSelect() {
|
|
3773
|
+
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$F();
|
|
3774
|
+
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$D();
|
|
3775
3775
|
return {
|
|
3776
3776
|
kind: 'Fragment',
|
|
3777
|
-
version: VERSION$
|
|
3777
|
+
version: VERSION$o,
|
|
3778
3778
|
private: [],
|
|
3779
3779
|
selections: [
|
|
3780
3780
|
{
|
|
@@ -3792,7 +3792,7 @@ const select$x = function SemanticGroupingConfigurationOutputRepresentationSelec
|
|
|
3792
3792
|
]
|
|
3793
3793
|
};
|
|
3794
3794
|
};
|
|
3795
|
-
function equals$
|
|
3795
|
+
function equals$o(existing, incoming) {
|
|
3796
3796
|
const existing_binDimension = existing.binDimension;
|
|
3797
3797
|
const incoming_binDimension = incoming.binDimension;
|
|
3798
3798
|
// if at least one of these optionals is defined
|
|
@@ -3802,7 +3802,7 @@ function equals$l(existing, incoming) {
|
|
|
3802
3802
|
if (existing_binDimension === undefined || incoming_binDimension === undefined) {
|
|
3803
3803
|
return false;
|
|
3804
3804
|
}
|
|
3805
|
-
if (!(equals$
|
|
3805
|
+
if (!(equals$r(existing_binDimension, incoming_binDimension))) {
|
|
3806
3806
|
return false;
|
|
3807
3807
|
}
|
|
3808
3808
|
}
|
|
@@ -3815,14 +3815,14 @@ function equals$l(existing, incoming) {
|
|
|
3815
3815
|
if (existing_groupDimension === undefined || incoming_groupDimension === undefined) {
|
|
3816
3816
|
return false;
|
|
3817
3817
|
}
|
|
3818
|
-
if (!(equals$
|
|
3818
|
+
if (!(equals$p(existing_groupDimension, incoming_groupDimension))) {
|
|
3819
3819
|
return false;
|
|
3820
3820
|
}
|
|
3821
3821
|
}
|
|
3822
3822
|
return true;
|
|
3823
3823
|
}
|
|
3824
3824
|
|
|
3825
|
-
const VERSION$
|
|
3825
|
+
const VERSION$n = "a2976cd68e629a917463a3b690cf2527";
|
|
3826
3826
|
function validate$s(obj, path = 'SemanticTableFieldReferenceOutputRepresentation') {
|
|
3827
3827
|
const v_error = (() => {
|
|
3828
3828
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3845,10 +3845,10 @@ function validate$s(obj, path = 'SemanticTableFieldReferenceOutputRepresentation
|
|
|
3845
3845
|
})();
|
|
3846
3846
|
return v_error === undefined ? null : v_error;
|
|
3847
3847
|
}
|
|
3848
|
-
const select$
|
|
3848
|
+
const select$B = function SemanticTableFieldReferenceOutputRepresentationSelect() {
|
|
3849
3849
|
return {
|
|
3850
3850
|
kind: 'Fragment',
|
|
3851
|
-
version: VERSION$
|
|
3851
|
+
version: VERSION$n,
|
|
3852
3852
|
private: [],
|
|
3853
3853
|
selections: [
|
|
3854
3854
|
{
|
|
@@ -3864,7 +3864,7 @@ const select$w = function SemanticTableFieldReferenceOutputRepresentationSelect(
|
|
|
3864
3864
|
]
|
|
3865
3865
|
};
|
|
3866
3866
|
};
|
|
3867
|
-
function equals$
|
|
3867
|
+
function equals$n(existing, incoming) {
|
|
3868
3868
|
const existing_fieldApiName = existing.fieldApiName;
|
|
3869
3869
|
const incoming_fieldApiName = incoming.fieldApiName;
|
|
3870
3870
|
// if at least one of these optionals is defined
|
|
@@ -3894,7 +3894,7 @@ function equals$k(existing, incoming) {
|
|
|
3894
3894
|
return true;
|
|
3895
3895
|
}
|
|
3896
3896
|
|
|
3897
|
-
const VERSION$
|
|
3897
|
+
const VERSION$m = "f49a2cbbe308f6f74cda3e2144fa66cd";
|
|
3898
3898
|
function validate$r(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
3899
3899
|
const v_error = (() => {
|
|
3900
3900
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3920,11 +3920,11 @@ function validate$r(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
|
3920
3920
|
})();
|
|
3921
3921
|
return v_error === undefined ? null : v_error;
|
|
3922
3922
|
}
|
|
3923
|
-
const select$
|
|
3924
|
-
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$
|
|
3923
|
+
const select$A = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
3924
|
+
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$B();
|
|
3925
3925
|
return {
|
|
3926
3926
|
kind: 'Fragment',
|
|
3927
|
-
version: VERSION$
|
|
3927
|
+
version: VERSION$m,
|
|
3928
3928
|
private: [],
|
|
3929
3929
|
selections: [
|
|
3930
3930
|
{
|
|
@@ -3941,7 +3941,7 @@ const select$v = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
|
3941
3941
|
]
|
|
3942
3942
|
};
|
|
3943
3943
|
};
|
|
3944
|
-
function equals$
|
|
3944
|
+
function equals$m(existing, incoming) {
|
|
3945
3945
|
const existing_calculatedFieldApiName = existing.calculatedFieldApiName;
|
|
3946
3946
|
const incoming_calculatedFieldApiName = incoming.calculatedFieldApiName;
|
|
3947
3947
|
// if at least one of these optionals is defined
|
|
@@ -3964,14 +3964,14 @@ function equals$j(existing, incoming) {
|
|
|
3964
3964
|
if (existing_tableFieldReference === undefined || incoming_tableFieldReference === undefined) {
|
|
3965
3965
|
return false;
|
|
3966
3966
|
}
|
|
3967
|
-
if (!(equals$
|
|
3967
|
+
if (!(equals$n(existing_tableFieldReference, incoming_tableFieldReference))) {
|
|
3968
3968
|
return false;
|
|
3969
3969
|
}
|
|
3970
3970
|
}
|
|
3971
3971
|
return true;
|
|
3972
3972
|
}
|
|
3973
3973
|
|
|
3974
|
-
const VERSION$
|
|
3974
|
+
const VERSION$l = "1daec40706bf767c719fa58831fad462";
|
|
3975
3975
|
function validate$q(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
3976
3976
|
const v_error = (() => {
|
|
3977
3977
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4063,25 +4063,25 @@ function validate$q(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
4063
4063
|
})();
|
|
4064
4064
|
return v_error === undefined ? null : v_error;
|
|
4065
4065
|
}
|
|
4066
|
-
const RepresentationType$
|
|
4067
|
-
function keyBuilder$
|
|
4068
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4066
|
+
const RepresentationType$e = 'SemanticGroupingOutputRepresentation';
|
|
4067
|
+
function keyBuilder$u(luvio, config) {
|
|
4068
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.name;
|
|
4069
4069
|
}
|
|
4070
4070
|
function keyBuilderFromType$8(luvio, object) {
|
|
4071
4071
|
const keyParams = {
|
|
4072
4072
|
name: object.id
|
|
4073
4073
|
};
|
|
4074
|
-
return keyBuilder$
|
|
4074
|
+
return keyBuilder$u(luvio, keyParams);
|
|
4075
4075
|
}
|
|
4076
|
-
function normalize$
|
|
4076
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
4077
4077
|
return input;
|
|
4078
4078
|
}
|
|
4079
|
-
const select$
|
|
4080
|
-
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$
|
|
4081
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
4079
|
+
const select$z = function SemanticGroupingOutputRepresentationSelect() {
|
|
4080
|
+
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$C();
|
|
4081
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$A();
|
|
4082
4082
|
return {
|
|
4083
4083
|
kind: 'Fragment',
|
|
4084
|
-
version: VERSION$
|
|
4084
|
+
version: VERSION$l,
|
|
4085
4085
|
private: [],
|
|
4086
4086
|
selections: [
|
|
4087
4087
|
{
|
|
@@ -4147,7 +4147,7 @@ const select$u = function SemanticGroupingOutputRepresentationSelect() {
|
|
|
4147
4147
|
]
|
|
4148
4148
|
};
|
|
4149
4149
|
};
|
|
4150
|
-
function equals$
|
|
4150
|
+
function equals$l(existing, incoming) {
|
|
4151
4151
|
const existing_apiName = existing.apiName;
|
|
4152
4152
|
const incoming_apiName = incoming.apiName;
|
|
4153
4153
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -4253,17 +4253,17 @@ function equals$i(existing, incoming) {
|
|
|
4253
4253
|
}
|
|
4254
4254
|
const existing_configuration = existing.configuration;
|
|
4255
4255
|
const incoming_configuration = incoming.configuration;
|
|
4256
|
-
if (!(equals$
|
|
4256
|
+
if (!(equals$o(existing_configuration, incoming_configuration))) {
|
|
4257
4257
|
return false;
|
|
4258
4258
|
}
|
|
4259
4259
|
const existing_fieldReference = existing.fieldReference;
|
|
4260
4260
|
const incoming_fieldReference = incoming.fieldReference;
|
|
4261
|
-
if (!(equals$
|
|
4261
|
+
if (!(equals$m(existing_fieldReference, incoming_fieldReference))) {
|
|
4262
4262
|
return false;
|
|
4263
4263
|
}
|
|
4264
4264
|
return true;
|
|
4265
4265
|
}
|
|
4266
|
-
const ingest$
|
|
4266
|
+
const ingest$e = function SemanticGroupingOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4267
4267
|
if (process.env.NODE_ENV !== 'production') {
|
|
4268
4268
|
const validateError = validate$q(input);
|
|
4269
4269
|
if (validateError !== null) {
|
|
@@ -4272,20 +4272,20 @@ const ingest$d = function SemanticGroupingOutputRepresentationIngest(input, path
|
|
|
4272
4272
|
}
|
|
4273
4273
|
const key = keyBuilderFromType$8(luvio, input);
|
|
4274
4274
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
4275
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4275
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SemanticAuthoring", VERSION$l, RepresentationType$e, equals$l);
|
|
4276
4276
|
return createLink(key);
|
|
4277
4277
|
};
|
|
4278
|
-
function getTypeCacheKeys$
|
|
4278
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
4279
4279
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4280
4280
|
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
4281
4281
|
rootKeySet.set(rootKey, {
|
|
4282
4282
|
namespace: keyPrefix,
|
|
4283
|
-
representationName: RepresentationType$
|
|
4283
|
+
representationName: RepresentationType$e,
|
|
4284
4284
|
mergeable: false
|
|
4285
4285
|
});
|
|
4286
4286
|
}
|
|
4287
4287
|
|
|
4288
|
-
const VERSION$
|
|
4288
|
+
const VERSION$k = "c5144c317ac72b60d580cab803514b8d";
|
|
4289
4289
|
function validate$p(obj, path = 'SemanticRelationshipCriteriaOutputRepresentation') {
|
|
4290
4290
|
const v_error = (() => {
|
|
4291
4291
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4329,10 +4329,10 @@ function validate$p(obj, path = 'SemanticRelationshipCriteriaOutputRepresentatio
|
|
|
4329
4329
|
})();
|
|
4330
4330
|
return v_error === undefined ? null : v_error;
|
|
4331
4331
|
}
|
|
4332
|
-
const select$
|
|
4332
|
+
const select$y = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
4333
4333
|
return {
|
|
4334
4334
|
kind: 'Fragment',
|
|
4335
|
-
version: VERSION$
|
|
4335
|
+
version: VERSION$k,
|
|
4336
4336
|
private: [],
|
|
4337
4337
|
selections: [
|
|
4338
4338
|
{
|
|
@@ -4363,7 +4363,7 @@ const select$t = function SemanticRelationshipCriteriaOutputRepresentationSelect
|
|
|
4363
4363
|
]
|
|
4364
4364
|
};
|
|
4365
4365
|
};
|
|
4366
|
-
function equals$
|
|
4366
|
+
function equals$k(existing, incoming) {
|
|
4367
4367
|
const existing_joinOperator = existing.joinOperator;
|
|
4368
4368
|
const incoming_joinOperator = incoming.joinOperator;
|
|
4369
4369
|
// if at least one of these optionals is defined
|
|
@@ -4432,7 +4432,7 @@ function equals$h(existing, incoming) {
|
|
|
4432
4432
|
return true;
|
|
4433
4433
|
}
|
|
4434
4434
|
|
|
4435
|
-
const VERSION$
|
|
4435
|
+
const VERSION$j = "b9778dace5726fcb57804d3afd529246";
|
|
4436
4436
|
function validate$o(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
4437
4437
|
const v_error = (() => {
|
|
4438
4438
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4562,24 +4562,24 @@ function validate$o(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
4562
4562
|
})();
|
|
4563
4563
|
return v_error === undefined ? null : v_error;
|
|
4564
4564
|
}
|
|
4565
|
-
const RepresentationType$
|
|
4566
|
-
function keyBuilder$
|
|
4567
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4565
|
+
const RepresentationType$d = 'SemanticRelationshipOutputRepresentation';
|
|
4566
|
+
function keyBuilder$t(luvio, config) {
|
|
4567
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.name;
|
|
4568
4568
|
}
|
|
4569
4569
|
function keyBuilderFromType$7(luvio, object) {
|
|
4570
4570
|
const keyParams = {
|
|
4571
4571
|
name: object.id
|
|
4572
4572
|
};
|
|
4573
|
-
return keyBuilder$
|
|
4573
|
+
return keyBuilder$t(luvio, keyParams);
|
|
4574
4574
|
}
|
|
4575
|
-
function normalize$
|
|
4575
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
4576
4576
|
return input;
|
|
4577
4577
|
}
|
|
4578
|
-
const select$
|
|
4579
|
-
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$
|
|
4578
|
+
const select$x = function SemanticRelationshipOutputRepresentationSelect() {
|
|
4579
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$y();
|
|
4580
4580
|
return {
|
|
4581
4581
|
kind: 'Fragment',
|
|
4582
|
-
version: VERSION$
|
|
4582
|
+
version: VERSION$j,
|
|
4583
4583
|
private: [],
|
|
4584
4584
|
selections: [
|
|
4585
4585
|
{
|
|
@@ -4668,7 +4668,7 @@ const select$s = function SemanticRelationshipOutputRepresentationSelect() {
|
|
|
4668
4668
|
]
|
|
4669
4669
|
};
|
|
4670
4670
|
};
|
|
4671
|
-
function equals$
|
|
4671
|
+
function equals$j(existing, incoming) {
|
|
4672
4672
|
const existing_isEnabled = existing.isEnabled;
|
|
4673
4673
|
const incoming_isEnabled = incoming.isEnabled;
|
|
4674
4674
|
// if at least one of these optionals is defined
|
|
@@ -4855,7 +4855,7 @@ function equals$g(existing, incoming) {
|
|
|
4855
4855
|
return false;
|
|
4856
4856
|
}
|
|
4857
4857
|
const equals_criteria_items = equalsArray(existing_criteria, incoming_criteria, (existing_criteria_item, incoming_criteria_item) => {
|
|
4858
|
-
if (!(equals$
|
|
4858
|
+
if (!(equals$k(existing_criteria_item, incoming_criteria_item))) {
|
|
4859
4859
|
return false;
|
|
4860
4860
|
}
|
|
4861
4861
|
});
|
|
@@ -4865,7 +4865,7 @@ function equals$g(existing, incoming) {
|
|
|
4865
4865
|
}
|
|
4866
4866
|
return true;
|
|
4867
4867
|
}
|
|
4868
|
-
const ingest$
|
|
4868
|
+
const ingest$d = function SemanticRelationshipOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4869
4869
|
if (process.env.NODE_ENV !== 'production') {
|
|
4870
4870
|
const validateError = validate$o(input);
|
|
4871
4871
|
if (validateError !== null) {
|
|
@@ -4874,20 +4874,20 @@ const ingest$c = function SemanticRelationshipOutputRepresentationIngest(input,
|
|
|
4874
4874
|
}
|
|
4875
4875
|
const key = keyBuilderFromType$7(luvio, input);
|
|
4876
4876
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
4877
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4877
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SemanticAuthoring", VERSION$j, RepresentationType$d, equals$j);
|
|
4878
4878
|
return createLink(key);
|
|
4879
4879
|
};
|
|
4880
|
-
function getTypeCacheKeys$
|
|
4880
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
4881
4881
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4882
4882
|
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
4883
4883
|
rootKeySet.set(rootKey, {
|
|
4884
4884
|
namespace: keyPrefix,
|
|
4885
|
-
representationName: RepresentationType$
|
|
4885
|
+
representationName: RepresentationType$d,
|
|
4886
4886
|
mergeable: false
|
|
4887
4887
|
});
|
|
4888
4888
|
}
|
|
4889
4889
|
|
|
4890
|
-
const VERSION$
|
|
4890
|
+
const VERSION$i = "eaf9b57a92e764fb2b5c27b6e031cfe1";
|
|
4891
4891
|
function validate$n(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
4892
4892
|
const v_error = (() => {
|
|
4893
4893
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5002,34 +5002,34 @@ function validate$n(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
5002
5002
|
})();
|
|
5003
5003
|
return v_error === undefined ? null : v_error;
|
|
5004
5004
|
}
|
|
5005
|
-
const RepresentationType$
|
|
5006
|
-
function keyBuilder$
|
|
5007
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5005
|
+
const RepresentationType$c = 'SemanticMappedFieldOutputRepresentation';
|
|
5006
|
+
function keyBuilder$s(luvio, config) {
|
|
5007
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.name;
|
|
5008
5008
|
}
|
|
5009
5009
|
function keyBuilderFromType$6(luvio, object) {
|
|
5010
5010
|
const keyParams = {
|
|
5011
5011
|
name: object.id
|
|
5012
5012
|
};
|
|
5013
|
-
return keyBuilder$
|
|
5013
|
+
return keyBuilder$s(luvio, keyParams);
|
|
5014
5014
|
}
|
|
5015
|
-
function normalize$
|
|
5015
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
5016
5016
|
return input;
|
|
5017
5017
|
}
|
|
5018
|
-
const select$
|
|
5018
|
+
const select$w = function SemanticMappedFieldOutputRepresentationSelect() {
|
|
5019
5019
|
return {
|
|
5020
5020
|
kind: 'Fragment',
|
|
5021
|
-
version: VERSION$
|
|
5021
|
+
version: VERSION$i,
|
|
5022
5022
|
private: [],
|
|
5023
5023
|
opaque: true
|
|
5024
5024
|
};
|
|
5025
5025
|
};
|
|
5026
|
-
function equals$
|
|
5026
|
+
function equals$i(existing, incoming) {
|
|
5027
5027
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5028
5028
|
return false;
|
|
5029
5029
|
}
|
|
5030
5030
|
return true;
|
|
5031
5031
|
}
|
|
5032
|
-
const ingest$
|
|
5032
|
+
const ingest$c = function SemanticMappedFieldOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5033
5033
|
if (process.env.NODE_ENV !== 'production') {
|
|
5034
5034
|
const validateError = validate$n(input);
|
|
5035
5035
|
if (validateError !== null) {
|
|
@@ -5038,20 +5038,20 @@ const ingest$b = function SemanticMappedFieldOutputRepresentationIngest(input, p
|
|
|
5038
5038
|
}
|
|
5039
5039
|
const key = keyBuilderFromType$6(luvio, input);
|
|
5040
5040
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
5041
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5041
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SemanticAuthoring", VERSION$i, RepresentationType$c, equals$i);
|
|
5042
5042
|
return createLink(key);
|
|
5043
5043
|
};
|
|
5044
|
-
function getTypeCacheKeys$
|
|
5044
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
5045
5045
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5046
5046
|
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
5047
5047
|
rootKeySet.set(rootKey, {
|
|
5048
5048
|
namespace: keyPrefix,
|
|
5049
|
-
representationName: RepresentationType$
|
|
5049
|
+
representationName: RepresentationType$c,
|
|
5050
5050
|
mergeable: false
|
|
5051
5051
|
});
|
|
5052
5052
|
}
|
|
5053
5053
|
|
|
5054
|
-
const VERSION$
|
|
5054
|
+
const VERSION$h = "69fe23112140e9fae50135dcb15c24c2";
|
|
5055
5055
|
function validate$m(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
5056
5056
|
const v_error = (() => {
|
|
5057
5057
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5178,24 +5178,24 @@ function validate$m(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
5178
5178
|
})();
|
|
5179
5179
|
return v_error === undefined ? null : v_error;
|
|
5180
5180
|
}
|
|
5181
|
-
const RepresentationType$
|
|
5182
|
-
function keyBuilder$
|
|
5183
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5181
|
+
const RepresentationType$b = 'SemanticUnionOutputRepresentation';
|
|
5182
|
+
function keyBuilder$r(luvio, config) {
|
|
5183
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.name;
|
|
5184
5184
|
}
|
|
5185
5185
|
function keyBuilderFromType$5(luvio, object) {
|
|
5186
5186
|
const keyParams = {
|
|
5187
5187
|
name: object.id
|
|
5188
5188
|
};
|
|
5189
|
-
return keyBuilder$
|
|
5189
|
+
return keyBuilder$r(luvio, keyParams);
|
|
5190
5190
|
}
|
|
5191
|
-
function normalize$
|
|
5191
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
5192
5192
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
5193
5193
|
const input_semanticDataObjects_id = path.fullPath + '__semanticDataObjects';
|
|
5194
5194
|
if (input_semanticDataObjects !== undefined) {
|
|
5195
5195
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
5196
5196
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
5197
5197
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
5198
|
-
input_semanticDataObjects[i] = ingest$
|
|
5198
|
+
input_semanticDataObjects[i] = ingest$f(input_semanticDataObjects_item, {
|
|
5199
5199
|
fullPath: input_semanticDataObjects_item_id,
|
|
5200
5200
|
propertyName: i,
|
|
5201
5201
|
parent: {
|
|
@@ -5213,7 +5213,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
5213
5213
|
for (let i = 0; i < input_semanticMappedFields.length; i++) {
|
|
5214
5214
|
const input_semanticMappedFields_item = input_semanticMappedFields[i];
|
|
5215
5215
|
let input_semanticMappedFields_item_id = input_semanticMappedFields_id + '__' + i;
|
|
5216
|
-
input_semanticMappedFields[i] = ingest$
|
|
5216
|
+
input_semanticMappedFields[i] = ingest$c(input_semanticMappedFields_item, {
|
|
5217
5217
|
fullPath: input_semanticMappedFields_item_id,
|
|
5218
5218
|
propertyName: i,
|
|
5219
5219
|
parent: {
|
|
@@ -5227,10 +5227,10 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
5227
5227
|
}
|
|
5228
5228
|
return input;
|
|
5229
5229
|
}
|
|
5230
|
-
const select$
|
|
5230
|
+
const select$v = function SemanticUnionOutputRepresentationSelect() {
|
|
5231
5231
|
return {
|
|
5232
5232
|
kind: 'Fragment',
|
|
5233
|
-
version: VERSION$
|
|
5233
|
+
version: VERSION$h,
|
|
5234
5234
|
private: [],
|
|
5235
5235
|
selections: [
|
|
5236
5236
|
{
|
|
@@ -5289,19 +5289,19 @@ const select$q = function SemanticUnionOutputRepresentationSelect() {
|
|
|
5289
5289
|
kind: 'Link',
|
|
5290
5290
|
plural: true,
|
|
5291
5291
|
required: false,
|
|
5292
|
-
fragment: select$
|
|
5292
|
+
fragment: select$G()
|
|
5293
5293
|
},
|
|
5294
5294
|
{
|
|
5295
5295
|
name: 'semanticMappedFields',
|
|
5296
5296
|
kind: 'Link',
|
|
5297
5297
|
plural: true,
|
|
5298
5298
|
required: false,
|
|
5299
|
-
fragment: select$
|
|
5299
|
+
fragment: select$w()
|
|
5300
5300
|
}
|
|
5301
5301
|
]
|
|
5302
5302
|
};
|
|
5303
5303
|
};
|
|
5304
|
-
function equals$
|
|
5304
|
+
function equals$h(existing, incoming) {
|
|
5305
5305
|
const existing_apiName = existing.apiName;
|
|
5306
5306
|
const incoming_apiName = incoming.apiName;
|
|
5307
5307
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -5451,7 +5451,7 @@ function equals$e(existing, incoming) {
|
|
|
5451
5451
|
}
|
|
5452
5452
|
return true;
|
|
5453
5453
|
}
|
|
5454
|
-
const ingest$
|
|
5454
|
+
const ingest$b = function SemanticUnionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5455
5455
|
if (process.env.NODE_ENV !== 'production') {
|
|
5456
5456
|
const validateError = validate$m(input);
|
|
5457
5457
|
if (validateError !== null) {
|
|
@@ -5460,32 +5460,32 @@ const ingest$a = function SemanticUnionOutputRepresentationIngest(input, path, l
|
|
|
5460
5460
|
}
|
|
5461
5461
|
const key = keyBuilderFromType$5(luvio, input);
|
|
5462
5462
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
5463
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5463
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SemanticAuthoring", VERSION$h, RepresentationType$b, equals$h);
|
|
5464
5464
|
return createLink(key);
|
|
5465
5465
|
};
|
|
5466
|
-
function getTypeCacheKeys$
|
|
5466
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
5467
5467
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5468
5468
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
5469
5469
|
rootKeySet.set(rootKey, {
|
|
5470
5470
|
namespace: keyPrefix,
|
|
5471
|
-
representationName: RepresentationType$
|
|
5471
|
+
representationName: RepresentationType$b,
|
|
5472
5472
|
mergeable: false
|
|
5473
5473
|
});
|
|
5474
5474
|
if (input.semanticDataObjects !== undefined) {
|
|
5475
5475
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
5476
5476
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
5477
|
-
getTypeCacheKeys$
|
|
5477
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
5478
5478
|
}
|
|
5479
5479
|
}
|
|
5480
5480
|
if (input.semanticMappedFields !== undefined) {
|
|
5481
5481
|
const input_semanticMappedFields_length = input.semanticMappedFields.length;
|
|
5482
5482
|
for (let i = 0; i < input_semanticMappedFields_length; i++) {
|
|
5483
|
-
getTypeCacheKeys$
|
|
5483
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.semanticMappedFields[i]);
|
|
5484
5484
|
}
|
|
5485
5485
|
}
|
|
5486
5486
|
}
|
|
5487
5487
|
|
|
5488
|
-
const VERSION$
|
|
5488
|
+
const VERSION$g = "281e0163ea1fc7d956974394f5310216";
|
|
5489
5489
|
function validate$l(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
5490
5490
|
const v_error = (() => {
|
|
5491
5491
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5636,24 +5636,24 @@ function validate$l(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
5636
5636
|
})();
|
|
5637
5637
|
return v_error === undefined ? null : v_error;
|
|
5638
5638
|
}
|
|
5639
|
-
const RepresentationType$
|
|
5640
|
-
function keyBuilder$
|
|
5641
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5639
|
+
const RepresentationType$a = 'SemanticLogicalViewOutputRepresentation';
|
|
5640
|
+
function keyBuilder$q(luvio, config) {
|
|
5641
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.name;
|
|
5642
5642
|
}
|
|
5643
5643
|
function keyBuilderFromType$4(luvio, object) {
|
|
5644
5644
|
const keyParams = {
|
|
5645
5645
|
name: object.id
|
|
5646
5646
|
};
|
|
5647
|
-
return keyBuilder$
|
|
5647
|
+
return keyBuilder$q(luvio, keyParams);
|
|
5648
5648
|
}
|
|
5649
|
-
function normalize$
|
|
5649
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
5650
5650
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
5651
5651
|
const input_semanticDataObjects_id = path.fullPath + '__semanticDataObjects';
|
|
5652
5652
|
if (input_semanticDataObjects !== undefined) {
|
|
5653
5653
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
5654
5654
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
5655
5655
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
5656
|
-
input_semanticDataObjects[i] = ingest$
|
|
5656
|
+
input_semanticDataObjects[i] = ingest$f(input_semanticDataObjects_item, {
|
|
5657
5657
|
fullPath: input_semanticDataObjects_item_id,
|
|
5658
5658
|
propertyName: i,
|
|
5659
5659
|
parent: {
|
|
@@ -5671,7 +5671,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
5671
5671
|
for (let i = 0; i < input_semanticRelationships.length; i++) {
|
|
5672
5672
|
const input_semanticRelationships_item = input_semanticRelationships[i];
|
|
5673
5673
|
let input_semanticRelationships_item_id = input_semanticRelationships_id + '__' + i;
|
|
5674
|
-
input_semanticRelationships[i] = ingest$
|
|
5674
|
+
input_semanticRelationships[i] = ingest$d(input_semanticRelationships_item, {
|
|
5675
5675
|
fullPath: input_semanticRelationships_item_id,
|
|
5676
5676
|
propertyName: i,
|
|
5677
5677
|
parent: {
|
|
@@ -5689,7 +5689,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
5689
5689
|
for (let i = 0; i < input_semanticUnions.length; i++) {
|
|
5690
5690
|
const input_semanticUnions_item = input_semanticUnions[i];
|
|
5691
5691
|
let input_semanticUnions_item_id = input_semanticUnions_id + '__' + i;
|
|
5692
|
-
input_semanticUnions[i] = ingest$
|
|
5692
|
+
input_semanticUnions[i] = ingest$b(input_semanticUnions_item, {
|
|
5693
5693
|
fullPath: input_semanticUnions_item_id,
|
|
5694
5694
|
propertyName: i,
|
|
5695
5695
|
parent: {
|
|
@@ -5703,11 +5703,11 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
5703
5703
|
}
|
|
5704
5704
|
return input;
|
|
5705
5705
|
}
|
|
5706
|
-
const select$
|
|
5707
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
5706
|
+
const select$u = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
5707
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$J();
|
|
5708
5708
|
return {
|
|
5709
5709
|
kind: 'Fragment',
|
|
5710
|
-
version: VERSION$
|
|
5710
|
+
version: VERSION$g,
|
|
5711
5711
|
private: [],
|
|
5712
5712
|
selections: [
|
|
5713
5713
|
{
|
|
@@ -5778,21 +5778,21 @@ const select$p = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
5778
5778
|
kind: 'Link',
|
|
5779
5779
|
plural: true,
|
|
5780
5780
|
required: false,
|
|
5781
|
-
fragment: select$
|
|
5781
|
+
fragment: select$G()
|
|
5782
5782
|
},
|
|
5783
5783
|
{
|
|
5784
5784
|
name: 'semanticRelationships',
|
|
5785
5785
|
kind: 'Link',
|
|
5786
5786
|
plural: true,
|
|
5787
5787
|
required: false,
|
|
5788
|
-
fragment: select$
|
|
5788
|
+
fragment: select$x()
|
|
5789
5789
|
},
|
|
5790
5790
|
{
|
|
5791
5791
|
name: 'semanticUnions',
|
|
5792
5792
|
kind: 'Link',
|
|
5793
5793
|
plural: true,
|
|
5794
5794
|
required: false,
|
|
5795
|
-
fragment: select$
|
|
5795
|
+
fragment: select$v()
|
|
5796
5796
|
},
|
|
5797
5797
|
{
|
|
5798
5798
|
name: 'semanticViewTypeEnum',
|
|
@@ -5802,7 +5802,7 @@ const select$p = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
5802
5802
|
]
|
|
5803
5803
|
};
|
|
5804
5804
|
};
|
|
5805
|
-
function equals$
|
|
5805
|
+
function equals$g(existing, incoming) {
|
|
5806
5806
|
const existing_apiName = existing.apiName;
|
|
5807
5807
|
const incoming_apiName = incoming.apiName;
|
|
5808
5808
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -5950,7 +5950,7 @@ function equals$d(existing, incoming) {
|
|
|
5950
5950
|
return false;
|
|
5951
5951
|
}
|
|
5952
5952
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
5953
|
-
if (!(equals$
|
|
5953
|
+
if (!(equals$v(existing_filters_item, incoming_filters_item))) {
|
|
5954
5954
|
return false;
|
|
5955
5955
|
}
|
|
5956
5956
|
});
|
|
@@ -6014,7 +6014,7 @@ function equals$d(existing, incoming) {
|
|
|
6014
6014
|
}
|
|
6015
6015
|
return true;
|
|
6016
6016
|
}
|
|
6017
|
-
const ingest$
|
|
6017
|
+
const ingest$a = function SemanticLogicalViewOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6018
6018
|
if (process.env.NODE_ENV !== 'production') {
|
|
6019
6019
|
const validateError = validate$l(input);
|
|
6020
6020
|
if (validateError !== null) {
|
|
@@ -6023,38 +6023,38 @@ const ingest$9 = function SemanticLogicalViewOutputRepresentationIngest(input, p
|
|
|
6023
6023
|
}
|
|
6024
6024
|
const key = keyBuilderFromType$4(luvio, input);
|
|
6025
6025
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
6026
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6026
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SemanticAuthoring", VERSION$g, RepresentationType$a, equals$g);
|
|
6027
6027
|
return createLink(key);
|
|
6028
6028
|
};
|
|
6029
|
-
function getTypeCacheKeys$
|
|
6029
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
6030
6030
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6031
6031
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
6032
6032
|
rootKeySet.set(rootKey, {
|
|
6033
6033
|
namespace: keyPrefix,
|
|
6034
|
-
representationName: RepresentationType$
|
|
6034
|
+
representationName: RepresentationType$a,
|
|
6035
6035
|
mergeable: false
|
|
6036
6036
|
});
|
|
6037
6037
|
if (input.semanticDataObjects !== undefined) {
|
|
6038
6038
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
6039
6039
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
6040
|
-
getTypeCacheKeys$
|
|
6040
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
6041
6041
|
}
|
|
6042
6042
|
}
|
|
6043
6043
|
if (input.semanticRelationships !== undefined) {
|
|
6044
6044
|
const input_semanticRelationships_length = input.semanticRelationships.length;
|
|
6045
6045
|
for (let i = 0; i < input_semanticRelationships_length; i++) {
|
|
6046
|
-
getTypeCacheKeys$
|
|
6046
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.semanticRelationships[i]);
|
|
6047
6047
|
}
|
|
6048
6048
|
}
|
|
6049
6049
|
if (input.semanticUnions !== undefined) {
|
|
6050
6050
|
const input_semanticUnions_length = input.semanticUnions.length;
|
|
6051
6051
|
for (let i = 0; i < input_semanticUnions_length; i++) {
|
|
6052
|
-
getTypeCacheKeys$
|
|
6052
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.semanticUnions[i]);
|
|
6053
6053
|
}
|
|
6054
6054
|
}
|
|
6055
6055
|
}
|
|
6056
6056
|
|
|
6057
|
-
const VERSION$
|
|
6057
|
+
const VERSION$f = "a50848c632bb205d5e910bb726d9219e";
|
|
6058
6058
|
function validate$k(obj, path = 'SemanticIdentifyingDimensionOutputRepresentation') {
|
|
6059
6059
|
const v_error = (() => {
|
|
6060
6060
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6083,11 +6083,11 @@ function validate$k(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
6083
6083
|
})();
|
|
6084
6084
|
return v_error === undefined ? null : v_error;
|
|
6085
6085
|
}
|
|
6086
|
-
const select$
|
|
6087
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6086
|
+
const select$t = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
6087
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$A();
|
|
6088
6088
|
return {
|
|
6089
6089
|
kind: 'Fragment',
|
|
6090
|
-
version: VERSION$
|
|
6090
|
+
version: VERSION$f,
|
|
6091
6091
|
private: [],
|
|
6092
6092
|
selections: [
|
|
6093
6093
|
{
|
|
@@ -6105,7 +6105,7 @@ const select$o = function SemanticIdentifyingDimensionOutputRepresentationSelect
|
|
|
6105
6105
|
]
|
|
6106
6106
|
};
|
|
6107
6107
|
};
|
|
6108
|
-
function equals$
|
|
6108
|
+
function equals$f(existing, incoming) {
|
|
6109
6109
|
const existing_identifierDimensionReference = existing.identifierDimensionReference;
|
|
6110
6110
|
const incoming_identifierDimensionReference = incoming.identifierDimensionReference;
|
|
6111
6111
|
// if at least one of these optionals is defined
|
|
@@ -6115,7 +6115,7 @@ function equals$c(existing, incoming) {
|
|
|
6115
6115
|
if (existing_identifierDimensionReference === undefined || incoming_identifierDimensionReference === undefined) {
|
|
6116
6116
|
return false;
|
|
6117
6117
|
}
|
|
6118
|
-
if (!(equals$
|
|
6118
|
+
if (!(equals$m(existing_identifierDimensionReference, incoming_identifierDimensionReference))) {
|
|
6119
6119
|
return false;
|
|
6120
6120
|
}
|
|
6121
6121
|
}
|
|
@@ -6128,14 +6128,14 @@ function equals$c(existing, incoming) {
|
|
|
6128
6128
|
if (existing_namingDimensionReference === undefined || incoming_namingDimensionReference === undefined) {
|
|
6129
6129
|
return false;
|
|
6130
6130
|
}
|
|
6131
|
-
if (!(equals$
|
|
6131
|
+
if (!(equals$m(existing_namingDimensionReference, incoming_namingDimensionReference))) {
|
|
6132
6132
|
return false;
|
|
6133
6133
|
}
|
|
6134
6134
|
}
|
|
6135
6135
|
return true;
|
|
6136
6136
|
}
|
|
6137
6137
|
|
|
6138
|
-
const VERSION$
|
|
6138
|
+
const VERSION$e = "1b8cf2283d5d5c480459506274f0604c";
|
|
6139
6139
|
function validate$j(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
6140
6140
|
const v_error = (() => {
|
|
6141
6141
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6158,10 +6158,10 @@ function validate$j(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
|
6158
6158
|
})();
|
|
6159
6159
|
return v_error === undefined ? null : v_error;
|
|
6160
6160
|
}
|
|
6161
|
-
const select$
|
|
6161
|
+
const select$s = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
6162
6162
|
return {
|
|
6163
6163
|
kind: 'Fragment',
|
|
6164
|
-
version: VERSION$
|
|
6164
|
+
version: VERSION$e,
|
|
6165
6165
|
private: [],
|
|
6166
6166
|
selections: [
|
|
6167
6167
|
{
|
|
@@ -6177,7 +6177,7 @@ const select$n = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
|
6177
6177
|
]
|
|
6178
6178
|
};
|
|
6179
6179
|
};
|
|
6180
|
-
function equals$
|
|
6180
|
+
function equals$e(existing, incoming) {
|
|
6181
6181
|
const existing_enabled = existing.enabled;
|
|
6182
6182
|
const incoming_enabled = incoming.enabled;
|
|
6183
6183
|
// if at least one of these optionals is defined
|
|
@@ -6207,7 +6207,7 @@ function equals$b(existing, incoming) {
|
|
|
6207
6207
|
return true;
|
|
6208
6208
|
}
|
|
6209
6209
|
|
|
6210
|
-
const VERSION$
|
|
6210
|
+
const VERSION$d = "a3f5972287be7bcf9ca205af56046a58";
|
|
6211
6211
|
function validate$i(obj, path = 'SemanticInsightsSettingsOutputRepresentation') {
|
|
6212
6212
|
const v_error = (() => {
|
|
6213
6213
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6281,13 +6281,13 @@ function validate$i(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
6281
6281
|
})();
|
|
6282
6282
|
return v_error === undefined ? null : v_error;
|
|
6283
6283
|
}
|
|
6284
|
-
const select$
|
|
6285
|
-
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$
|
|
6286
|
-
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$
|
|
6287
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6284
|
+
const select$r = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
6285
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$t();
|
|
6286
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$s();
|
|
6287
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$A();
|
|
6288
6288
|
return {
|
|
6289
6289
|
kind: 'Fragment',
|
|
6290
|
-
version: VERSION$
|
|
6290
|
+
version: VERSION$d,
|
|
6291
6291
|
private: [],
|
|
6292
6292
|
selections: [
|
|
6293
6293
|
{
|
|
@@ -6328,7 +6328,7 @@ const select$m = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
|
6328
6328
|
]
|
|
6329
6329
|
};
|
|
6330
6330
|
};
|
|
6331
|
-
function equals$
|
|
6331
|
+
function equals$d(existing, incoming) {
|
|
6332
6332
|
const existing_pluralNoun = existing.pluralNoun;
|
|
6333
6333
|
const incoming_pluralNoun = incoming.pluralNoun;
|
|
6334
6334
|
// if at least one of these optionals is defined
|
|
@@ -6377,7 +6377,7 @@ function equals$a(existing, incoming) {
|
|
|
6377
6377
|
if (existing_identifyingDimension === undefined || incoming_identifyingDimension === undefined) {
|
|
6378
6378
|
return false;
|
|
6379
6379
|
}
|
|
6380
|
-
if (!(equals$
|
|
6380
|
+
if (!(equals$f(existing_identifyingDimension, incoming_identifyingDimension))) {
|
|
6381
6381
|
return false;
|
|
6382
6382
|
}
|
|
6383
6383
|
}
|
|
@@ -6391,7 +6391,7 @@ function equals$a(existing, incoming) {
|
|
|
6391
6391
|
return false;
|
|
6392
6392
|
}
|
|
6393
6393
|
const equals_insightTypes_items = equalsArray(existing_insightTypes, incoming_insightTypes, (existing_insightTypes_item, incoming_insightTypes_item) => {
|
|
6394
|
-
if (!(equals$
|
|
6394
|
+
if (!(equals$e(existing_insightTypes_item, incoming_insightTypes_item))) {
|
|
6395
6395
|
return false;
|
|
6396
6396
|
}
|
|
6397
6397
|
});
|
|
@@ -6409,7 +6409,7 @@ function equals$a(existing, incoming) {
|
|
|
6409
6409
|
return false;
|
|
6410
6410
|
}
|
|
6411
6411
|
const equals_insightsDimensionsReferences_items = equalsArray(existing_insightsDimensionsReferences, incoming_insightsDimensionsReferences, (existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item) => {
|
|
6412
|
-
if (!(equals$
|
|
6412
|
+
if (!(equals$m(existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item))) {
|
|
6413
6413
|
return false;
|
|
6414
6414
|
}
|
|
6415
6415
|
});
|
|
@@ -6420,7 +6420,7 @@ function equals$a(existing, incoming) {
|
|
|
6420
6420
|
return true;
|
|
6421
6421
|
}
|
|
6422
6422
|
|
|
6423
|
-
const VERSION$
|
|
6423
|
+
const VERSION$c = "0873ccd85b32d14c753931243d20ac8b";
|
|
6424
6424
|
function validate$h(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
6425
6425
|
const v_error = (() => {
|
|
6426
6426
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6590,26 +6590,26 @@ function validate$h(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6590
6590
|
})();
|
|
6591
6591
|
return v_error === undefined ? null : v_error;
|
|
6592
6592
|
}
|
|
6593
|
-
const RepresentationType$
|
|
6594
|
-
function keyBuilder$
|
|
6595
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6593
|
+
const RepresentationType$9 = 'SemanticMetricOutputRepresentation';
|
|
6594
|
+
function keyBuilder$p(luvio, config) {
|
|
6595
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.name;
|
|
6596
6596
|
}
|
|
6597
6597
|
function keyBuilderFromType$3(luvio, object) {
|
|
6598
6598
|
const keyParams = {
|
|
6599
6599
|
name: object.id
|
|
6600
6600
|
};
|
|
6601
|
-
return keyBuilder$
|
|
6601
|
+
return keyBuilder$p(luvio, keyParams);
|
|
6602
6602
|
}
|
|
6603
|
-
function normalize$
|
|
6603
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
6604
6604
|
return input;
|
|
6605
6605
|
}
|
|
6606
|
-
const select$
|
|
6607
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6608
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
6609
|
-
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$
|
|
6606
|
+
const select$q = function SemanticMetricOutputRepresentationSelect() {
|
|
6607
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$A();
|
|
6608
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$J();
|
|
6609
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$r();
|
|
6610
6610
|
return {
|
|
6611
6611
|
kind: 'Fragment',
|
|
6612
|
-
version: VERSION$
|
|
6612
|
+
version: VERSION$c,
|
|
6613
6613
|
private: [],
|
|
6614
6614
|
selections: [
|
|
6615
6615
|
{
|
|
@@ -6714,7 +6714,7 @@ const select$l = function SemanticMetricOutputRepresentationSelect() {
|
|
|
6714
6714
|
]
|
|
6715
6715
|
};
|
|
6716
6716
|
};
|
|
6717
|
-
function equals$
|
|
6717
|
+
function equals$c(existing, incoming) {
|
|
6718
6718
|
const existing_isCumulative = existing.isCumulative;
|
|
6719
6719
|
const incoming_isCumulative = incoming.isCumulative;
|
|
6720
6720
|
// if at least one of these optionals is defined
|
|
@@ -6862,7 +6862,7 @@ function equals$9(existing, incoming) {
|
|
|
6862
6862
|
return false;
|
|
6863
6863
|
}
|
|
6864
6864
|
const equals_additionalDimensions_items = equalsArray(existing_additionalDimensions, incoming_additionalDimensions, (existing_additionalDimensions_item, incoming_additionalDimensions_item) => {
|
|
6865
|
-
if (!(equals$
|
|
6865
|
+
if (!(equals$m(existing_additionalDimensions_item, incoming_additionalDimensions_item))) {
|
|
6866
6866
|
return false;
|
|
6867
6867
|
}
|
|
6868
6868
|
});
|
|
@@ -6880,7 +6880,7 @@ function equals$9(existing, incoming) {
|
|
|
6880
6880
|
return false;
|
|
6881
6881
|
}
|
|
6882
6882
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
6883
|
-
if (!(equals$
|
|
6883
|
+
if (!(equals$v(existing_filters_item, incoming_filters_item))) {
|
|
6884
6884
|
return false;
|
|
6885
6885
|
}
|
|
6886
6886
|
});
|
|
@@ -6897,7 +6897,7 @@ function equals$9(existing, incoming) {
|
|
|
6897
6897
|
if (existing_insightsSettings === undefined || incoming_insightsSettings === undefined) {
|
|
6898
6898
|
return false;
|
|
6899
6899
|
}
|
|
6900
|
-
if (!(equals$
|
|
6900
|
+
if (!(equals$d(existing_insightsSettings, incoming_insightsSettings))) {
|
|
6901
6901
|
return false;
|
|
6902
6902
|
}
|
|
6903
6903
|
}
|
|
@@ -6910,7 +6910,7 @@ function equals$9(existing, incoming) {
|
|
|
6910
6910
|
if (existing_measurementReference === undefined || incoming_measurementReference === undefined) {
|
|
6911
6911
|
return false;
|
|
6912
6912
|
}
|
|
6913
|
-
if (!(equals$
|
|
6913
|
+
if (!(equals$m(existing_measurementReference, incoming_measurementReference))) {
|
|
6914
6914
|
return false;
|
|
6915
6915
|
}
|
|
6916
6916
|
}
|
|
@@ -6923,7 +6923,7 @@ function equals$9(existing, incoming) {
|
|
|
6923
6923
|
if (existing_timeDimensionReference === undefined || incoming_timeDimensionReference === undefined) {
|
|
6924
6924
|
return false;
|
|
6925
6925
|
}
|
|
6926
|
-
if (!(equals$
|
|
6926
|
+
if (!(equals$m(existing_timeDimensionReference, incoming_timeDimensionReference))) {
|
|
6927
6927
|
return false;
|
|
6928
6928
|
}
|
|
6929
6929
|
}
|
|
@@ -6947,7 +6947,7 @@ function equals$9(existing, incoming) {
|
|
|
6947
6947
|
}
|
|
6948
6948
|
return true;
|
|
6949
6949
|
}
|
|
6950
|
-
const ingest$
|
|
6950
|
+
const ingest$9 = function SemanticMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6951
6951
|
if (process.env.NODE_ENV !== 'production') {
|
|
6952
6952
|
const validateError = validate$h(input);
|
|
6953
6953
|
if (validateError !== null) {
|
|
@@ -6956,20 +6956,20 @@ const ingest$8 = function SemanticMetricOutputRepresentationIngest(input, path,
|
|
|
6956
6956
|
}
|
|
6957
6957
|
const key = keyBuilderFromType$3(luvio, input);
|
|
6958
6958
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
6959
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6959
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SemanticAuthoring", VERSION$c, RepresentationType$9, equals$c);
|
|
6960
6960
|
return createLink(key);
|
|
6961
6961
|
};
|
|
6962
|
-
function getTypeCacheKeys$
|
|
6962
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
6963
6963
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6964
6964
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
6965
6965
|
rootKeySet.set(rootKey, {
|
|
6966
6966
|
namespace: keyPrefix,
|
|
6967
|
-
representationName: RepresentationType$
|
|
6967
|
+
representationName: RepresentationType$9,
|
|
6968
6968
|
mergeable: false
|
|
6969
6969
|
});
|
|
6970
6970
|
}
|
|
6971
6971
|
|
|
6972
|
-
const VERSION$
|
|
6972
|
+
const VERSION$b = "562f9618d0de907973cf252f01ea567d";
|
|
6973
6973
|
function validate$g(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
6974
6974
|
const v_error = (() => {
|
|
6975
6975
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -7096,23 +7096,23 @@ function validate$g(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
7096
7096
|
})();
|
|
7097
7097
|
return v_error === undefined ? null : v_error;
|
|
7098
7098
|
}
|
|
7099
|
-
const RepresentationType$
|
|
7100
|
-
function keyBuilder$
|
|
7101
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7099
|
+
const RepresentationType$8 = 'SemanticParameterOutputRepresentation';
|
|
7100
|
+
function keyBuilder$o(luvio, config) {
|
|
7101
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.name;
|
|
7102
7102
|
}
|
|
7103
7103
|
function keyBuilderFromType$2(luvio, object) {
|
|
7104
7104
|
const keyParams = {
|
|
7105
7105
|
name: object.id
|
|
7106
7106
|
};
|
|
7107
|
-
return keyBuilder$
|
|
7107
|
+
return keyBuilder$o(luvio, keyParams);
|
|
7108
7108
|
}
|
|
7109
|
-
function normalize$
|
|
7109
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
7110
7110
|
return input;
|
|
7111
7111
|
}
|
|
7112
|
-
const select$
|
|
7112
|
+
const select$p = function SemanticParameterOutputRepresentationSelect() {
|
|
7113
7113
|
return {
|
|
7114
7114
|
kind: 'Fragment',
|
|
7115
|
-
version: VERSION$
|
|
7115
|
+
version: VERSION$b,
|
|
7116
7116
|
private: [],
|
|
7117
7117
|
selections: [
|
|
7118
7118
|
{
|
|
@@ -7200,7 +7200,7 @@ const select$k = function SemanticParameterOutputRepresentationSelect() {
|
|
|
7200
7200
|
]
|
|
7201
7201
|
};
|
|
7202
7202
|
};
|
|
7203
|
-
function equals$
|
|
7203
|
+
function equals$b(existing, incoming) {
|
|
7204
7204
|
const existing_apiName = existing.apiName;
|
|
7205
7205
|
const incoming_apiName = incoming.apiName;
|
|
7206
7206
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -7397,7 +7397,7 @@ function equals$8(existing, incoming) {
|
|
|
7397
7397
|
}
|
|
7398
7398
|
return true;
|
|
7399
7399
|
}
|
|
7400
|
-
const ingest$
|
|
7400
|
+
const ingest$8 = function SemanticParameterOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7401
7401
|
if (process.env.NODE_ENV !== 'production') {
|
|
7402
7402
|
const validateError = validate$g(input);
|
|
7403
7403
|
if (validateError !== null) {
|
|
@@ -7406,20 +7406,20 @@ const ingest$7 = function SemanticParameterOutputRepresentationIngest(input, pat
|
|
|
7406
7406
|
}
|
|
7407
7407
|
const key = keyBuilderFromType$2(luvio, input);
|
|
7408
7408
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7409
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7409
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SemanticAuthoring", VERSION$b, RepresentationType$8, equals$b);
|
|
7410
7410
|
return createLink(key);
|
|
7411
7411
|
};
|
|
7412
|
-
function getTypeCacheKeys$
|
|
7412
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
7413
7413
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7414
7414
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
7415
7415
|
rootKeySet.set(rootKey, {
|
|
7416
7416
|
namespace: keyPrefix,
|
|
7417
|
-
representationName: RepresentationType$
|
|
7417
|
+
representationName: RepresentationType$8,
|
|
7418
7418
|
mergeable: false
|
|
7419
7419
|
});
|
|
7420
7420
|
}
|
|
7421
7421
|
|
|
7422
|
-
const VERSION$
|
|
7422
|
+
const VERSION$a = "5cda82e85d7322d459ba16b10b81ee96";
|
|
7423
7423
|
function validate$f(obj, path = 'SemanticModelOutputRepresentation') {
|
|
7424
7424
|
const v_error = (() => {
|
|
7425
7425
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -7736,24 +7736,24 @@ function validate$f(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
7736
7736
|
})();
|
|
7737
7737
|
return v_error === undefined ? null : v_error;
|
|
7738
7738
|
}
|
|
7739
|
-
const RepresentationType$
|
|
7740
|
-
function keyBuilder$
|
|
7741
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7739
|
+
const RepresentationType$7 = 'SemanticModelOutputRepresentation';
|
|
7740
|
+
function keyBuilder$n(luvio, config) {
|
|
7741
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.name;
|
|
7742
7742
|
}
|
|
7743
7743
|
function keyBuilderFromType$1(luvio, object) {
|
|
7744
7744
|
const keyParams = {
|
|
7745
7745
|
name: object.id
|
|
7746
7746
|
};
|
|
7747
|
-
return keyBuilder$
|
|
7747
|
+
return keyBuilder$n(luvio, keyParams);
|
|
7748
7748
|
}
|
|
7749
|
-
function normalize$
|
|
7749
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
7750
7750
|
const input_semanticCalculatedDimensions = input.semanticCalculatedDimensions;
|
|
7751
7751
|
const input_semanticCalculatedDimensions_id = path.fullPath + '__semanticCalculatedDimensions';
|
|
7752
7752
|
if (input_semanticCalculatedDimensions !== undefined) {
|
|
7753
7753
|
for (let i = 0; i < input_semanticCalculatedDimensions.length; i++) {
|
|
7754
7754
|
const input_semanticCalculatedDimensions_item = input_semanticCalculatedDimensions[i];
|
|
7755
7755
|
let input_semanticCalculatedDimensions_item_id = input_semanticCalculatedDimensions_id + '__' + i;
|
|
7756
|
-
input_semanticCalculatedDimensions[i] = ingest$
|
|
7756
|
+
input_semanticCalculatedDimensions[i] = ingest$h(input_semanticCalculatedDimensions_item, {
|
|
7757
7757
|
fullPath: input_semanticCalculatedDimensions_item_id,
|
|
7758
7758
|
propertyName: i,
|
|
7759
7759
|
parent: {
|
|
@@ -7771,7 +7771,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7771
7771
|
for (let i = 0; i < input_semanticCalculatedMeasurements.length; i++) {
|
|
7772
7772
|
const input_semanticCalculatedMeasurements_item = input_semanticCalculatedMeasurements[i];
|
|
7773
7773
|
let input_semanticCalculatedMeasurements_item_id = input_semanticCalculatedMeasurements_id + '__' + i;
|
|
7774
|
-
input_semanticCalculatedMeasurements[i] = ingest$
|
|
7774
|
+
input_semanticCalculatedMeasurements[i] = ingest$g(input_semanticCalculatedMeasurements_item, {
|
|
7775
7775
|
fullPath: input_semanticCalculatedMeasurements_item_id,
|
|
7776
7776
|
propertyName: i,
|
|
7777
7777
|
parent: {
|
|
@@ -7789,7 +7789,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7789
7789
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
7790
7790
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
7791
7791
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
7792
|
-
input_semanticDataObjects[i] = ingest$
|
|
7792
|
+
input_semanticDataObjects[i] = ingest$f(input_semanticDataObjects_item, {
|
|
7793
7793
|
fullPath: input_semanticDataObjects_item_id,
|
|
7794
7794
|
propertyName: i,
|
|
7795
7795
|
parent: {
|
|
@@ -7807,7 +7807,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7807
7807
|
for (let i = 0; i < input_semanticGroupings.length; i++) {
|
|
7808
7808
|
const input_semanticGroupings_item = input_semanticGroupings[i];
|
|
7809
7809
|
let input_semanticGroupings_item_id = input_semanticGroupings_id + '__' + i;
|
|
7810
|
-
input_semanticGroupings[i] = ingest$
|
|
7810
|
+
input_semanticGroupings[i] = ingest$e(input_semanticGroupings_item, {
|
|
7811
7811
|
fullPath: input_semanticGroupings_item_id,
|
|
7812
7812
|
propertyName: i,
|
|
7813
7813
|
parent: {
|
|
@@ -7825,7 +7825,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7825
7825
|
for (let i = 0; i < input_semanticLogicalViews.length; i++) {
|
|
7826
7826
|
const input_semanticLogicalViews_item = input_semanticLogicalViews[i];
|
|
7827
7827
|
let input_semanticLogicalViews_item_id = input_semanticLogicalViews_id + '__' + i;
|
|
7828
|
-
input_semanticLogicalViews[i] = ingest$
|
|
7828
|
+
input_semanticLogicalViews[i] = ingest$a(input_semanticLogicalViews_item, {
|
|
7829
7829
|
fullPath: input_semanticLogicalViews_item_id,
|
|
7830
7830
|
propertyName: i,
|
|
7831
7831
|
parent: {
|
|
@@ -7843,7 +7843,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7843
7843
|
for (let i = 0; i < input_semanticMetrics.length; i++) {
|
|
7844
7844
|
const input_semanticMetrics_item = input_semanticMetrics[i];
|
|
7845
7845
|
let input_semanticMetrics_item_id = input_semanticMetrics_id + '__' + i;
|
|
7846
|
-
input_semanticMetrics[i] = ingest$
|
|
7846
|
+
input_semanticMetrics[i] = ingest$9(input_semanticMetrics_item, {
|
|
7847
7847
|
fullPath: input_semanticMetrics_item_id,
|
|
7848
7848
|
propertyName: i,
|
|
7849
7849
|
parent: {
|
|
@@ -7861,7 +7861,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7861
7861
|
for (let i = 0; i < input_semanticParameters.length; i++) {
|
|
7862
7862
|
const input_semanticParameters_item = input_semanticParameters[i];
|
|
7863
7863
|
let input_semanticParameters_item_id = input_semanticParameters_id + '__' + i;
|
|
7864
|
-
input_semanticParameters[i] = ingest$
|
|
7864
|
+
input_semanticParameters[i] = ingest$8(input_semanticParameters_item, {
|
|
7865
7865
|
fullPath: input_semanticParameters_item_id,
|
|
7866
7866
|
propertyName: i,
|
|
7867
7867
|
parent: {
|
|
@@ -7879,7 +7879,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7879
7879
|
for (let i = 0; i < input_semanticRelationships.length; i++) {
|
|
7880
7880
|
const input_semanticRelationships_item = input_semanticRelationships[i];
|
|
7881
7881
|
let input_semanticRelationships_item_id = input_semanticRelationships_id + '__' + i;
|
|
7882
|
-
input_semanticRelationships[i] = ingest$
|
|
7882
|
+
input_semanticRelationships[i] = ingest$d(input_semanticRelationships_item, {
|
|
7883
7883
|
fullPath: input_semanticRelationships_item_id,
|
|
7884
7884
|
propertyName: i,
|
|
7885
7885
|
parent: {
|
|
@@ -7893,11 +7893,11 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7893
7893
|
}
|
|
7894
7894
|
return input;
|
|
7895
7895
|
}
|
|
7896
|
-
const select$
|
|
7897
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
7896
|
+
const select$o = function SemanticModelOutputRepresentationSelect() {
|
|
7897
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$K();
|
|
7898
7898
|
return {
|
|
7899
7899
|
kind: 'Fragment',
|
|
7900
|
-
version: VERSION$
|
|
7900
|
+
version: VERSION$a,
|
|
7901
7901
|
private: [],
|
|
7902
7902
|
selections: [
|
|
7903
7903
|
{
|
|
@@ -7983,7 +7983,7 @@ const select$j = function SemanticModelOutputRepresentationSelect() {
|
|
|
7983
7983
|
kind: 'Link',
|
|
7984
7984
|
plural: true,
|
|
7985
7985
|
required: false,
|
|
7986
|
-
fragment: select$
|
|
7986
|
+
fragment: select$I()
|
|
7987
7987
|
},
|
|
7988
7988
|
{
|
|
7989
7989
|
name: 'semanticCalculatedDimensionsUrl',
|
|
@@ -7995,7 +7995,7 @@ const select$j = function SemanticModelOutputRepresentationSelect() {
|
|
|
7995
7995
|
kind: 'Link',
|
|
7996
7996
|
plural: true,
|
|
7997
7997
|
required: false,
|
|
7998
|
-
fragment: select$
|
|
7998
|
+
fragment: select$H()
|
|
7999
7999
|
},
|
|
8000
8000
|
{
|
|
8001
8001
|
name: 'semanticCalculatedMeasurementsUrl',
|
|
@@ -8007,7 +8007,7 @@ const select$j = function SemanticModelOutputRepresentationSelect() {
|
|
|
8007
8007
|
kind: 'Link',
|
|
8008
8008
|
plural: true,
|
|
8009
8009
|
required: false,
|
|
8010
|
-
fragment: select$
|
|
8010
|
+
fragment: select$G()
|
|
8011
8011
|
},
|
|
8012
8012
|
{
|
|
8013
8013
|
name: 'semanticDataObjectsUrl',
|
|
@@ -8019,7 +8019,7 @@ const select$j = function SemanticModelOutputRepresentationSelect() {
|
|
|
8019
8019
|
kind: 'Link',
|
|
8020
8020
|
plural: true,
|
|
8021
8021
|
required: false,
|
|
8022
|
-
fragment: select$
|
|
8022
|
+
fragment: select$z()
|
|
8023
8023
|
},
|
|
8024
8024
|
{
|
|
8025
8025
|
name: 'semanticGroupingsUrl',
|
|
@@ -8031,21 +8031,21 @@ const select$j = function SemanticModelOutputRepresentationSelect() {
|
|
|
8031
8031
|
kind: 'Link',
|
|
8032
8032
|
plural: true,
|
|
8033
8033
|
required: false,
|
|
8034
|
-
fragment: select$
|
|
8034
|
+
fragment: select$u()
|
|
8035
8035
|
},
|
|
8036
8036
|
{
|
|
8037
8037
|
name: 'semanticMetrics',
|
|
8038
8038
|
kind: 'Link',
|
|
8039
8039
|
plural: true,
|
|
8040
8040
|
required: false,
|
|
8041
|
-
fragment: select$
|
|
8041
|
+
fragment: select$q()
|
|
8042
8042
|
},
|
|
8043
8043
|
{
|
|
8044
8044
|
name: 'semanticParameters',
|
|
8045
8045
|
kind: 'Link',
|
|
8046
8046
|
plural: true,
|
|
8047
8047
|
required: false,
|
|
8048
|
-
fragment: select$
|
|
8048
|
+
fragment: select$p()
|
|
8049
8049
|
},
|
|
8050
8050
|
{
|
|
8051
8051
|
name: 'semanticParametersUrl',
|
|
@@ -8057,7 +8057,7 @@ const select$j = function SemanticModelOutputRepresentationSelect() {
|
|
|
8057
8057
|
kind: 'Link',
|
|
8058
8058
|
plural: true,
|
|
8059
8059
|
required: false,
|
|
8060
|
-
fragment: select$
|
|
8060
|
+
fragment: select$x()
|
|
8061
8061
|
},
|
|
8062
8062
|
{
|
|
8063
8063
|
name: 'semanticRelationshipsUrl',
|
|
@@ -8077,7 +8077,7 @@ const select$j = function SemanticModelOutputRepresentationSelect() {
|
|
|
8077
8077
|
]
|
|
8078
8078
|
};
|
|
8079
8079
|
};
|
|
8080
|
-
function equals$
|
|
8080
|
+
function equals$a(existing, incoming) {
|
|
8081
8081
|
const existing_isLocked = existing.isLocked;
|
|
8082
8082
|
const incoming_isLocked = incoming.isLocked;
|
|
8083
8083
|
// if at least one of these optionals is defined
|
|
@@ -8321,7 +8321,7 @@ function equals$7(existing, incoming) {
|
|
|
8321
8321
|
return false;
|
|
8322
8322
|
}
|
|
8323
8323
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
8324
|
-
if (!(equals$
|
|
8324
|
+
if (!(equals$w(existing_baseModels_item, incoming_baseModels_item))) {
|
|
8325
8325
|
return false;
|
|
8326
8326
|
}
|
|
8327
8327
|
});
|
|
@@ -8506,7 +8506,7 @@ function equals$7(existing, incoming) {
|
|
|
8506
8506
|
}
|
|
8507
8507
|
return true;
|
|
8508
8508
|
}
|
|
8509
|
-
const ingest$
|
|
8509
|
+
const ingest$7 = function SemanticModelOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8510
8510
|
if (process.env.NODE_ENV !== 'production') {
|
|
8511
8511
|
const validateError = validate$f(input);
|
|
8512
8512
|
if (validateError !== null) {
|
|
@@ -8515,80 +8515,80 @@ const ingest$6 = function SemanticModelOutputRepresentationIngest(input, path, l
|
|
|
8515
8515
|
}
|
|
8516
8516
|
const key = keyBuilderFromType$1(luvio, input);
|
|
8517
8517
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
8518
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
8518
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SemanticAuthoring", VERSION$a, RepresentationType$7, equals$a);
|
|
8519
8519
|
return createLink(key);
|
|
8520
8520
|
};
|
|
8521
|
-
function getTypeCacheKeys$
|
|
8521
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
8522
8522
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
8523
8523
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
8524
8524
|
rootKeySet.set(rootKey, {
|
|
8525
8525
|
namespace: keyPrefix,
|
|
8526
|
-
representationName: RepresentationType$
|
|
8526
|
+
representationName: RepresentationType$7,
|
|
8527
8527
|
mergeable: false
|
|
8528
8528
|
});
|
|
8529
8529
|
if (input.semanticCalculatedDimensions !== undefined) {
|
|
8530
8530
|
const input_semanticCalculatedDimensions_length = input.semanticCalculatedDimensions.length;
|
|
8531
8531
|
for (let i = 0; i < input_semanticCalculatedDimensions_length; i++) {
|
|
8532
|
-
getTypeCacheKeys$
|
|
8532
|
+
getTypeCacheKeys$h(rootKeySet, luvio, input.semanticCalculatedDimensions[i]);
|
|
8533
8533
|
}
|
|
8534
8534
|
}
|
|
8535
8535
|
if (input.semanticCalculatedMeasurements !== undefined) {
|
|
8536
8536
|
const input_semanticCalculatedMeasurements_length = input.semanticCalculatedMeasurements.length;
|
|
8537
8537
|
for (let i = 0; i < input_semanticCalculatedMeasurements_length; i++) {
|
|
8538
|
-
getTypeCacheKeys$
|
|
8538
|
+
getTypeCacheKeys$g(rootKeySet, luvio, input.semanticCalculatedMeasurements[i]);
|
|
8539
8539
|
}
|
|
8540
8540
|
}
|
|
8541
8541
|
if (input.semanticDataObjects !== undefined) {
|
|
8542
8542
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
8543
8543
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
8544
|
-
getTypeCacheKeys$
|
|
8544
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
8545
8545
|
}
|
|
8546
8546
|
}
|
|
8547
8547
|
if (input.semanticGroupings !== undefined) {
|
|
8548
8548
|
const input_semanticGroupings_length = input.semanticGroupings.length;
|
|
8549
8549
|
for (let i = 0; i < input_semanticGroupings_length; i++) {
|
|
8550
|
-
getTypeCacheKeys$
|
|
8550
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.semanticGroupings[i]);
|
|
8551
8551
|
}
|
|
8552
8552
|
}
|
|
8553
8553
|
if (input.semanticLogicalViews !== undefined) {
|
|
8554
8554
|
const input_semanticLogicalViews_length = input.semanticLogicalViews.length;
|
|
8555
8555
|
for (let i = 0; i < input_semanticLogicalViews_length; i++) {
|
|
8556
|
-
getTypeCacheKeys$
|
|
8556
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.semanticLogicalViews[i]);
|
|
8557
8557
|
}
|
|
8558
8558
|
}
|
|
8559
8559
|
if (input.semanticMetrics !== undefined) {
|
|
8560
8560
|
const input_semanticMetrics_length = input.semanticMetrics.length;
|
|
8561
8561
|
for (let i = 0; i < input_semanticMetrics_length; i++) {
|
|
8562
|
-
getTypeCacheKeys$
|
|
8562
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.semanticMetrics[i]);
|
|
8563
8563
|
}
|
|
8564
8564
|
}
|
|
8565
8565
|
if (input.semanticParameters !== undefined) {
|
|
8566
8566
|
const input_semanticParameters_length = input.semanticParameters.length;
|
|
8567
8567
|
for (let i = 0; i < input_semanticParameters_length; i++) {
|
|
8568
|
-
getTypeCacheKeys$
|
|
8568
|
+
getTypeCacheKeys$8(rootKeySet, luvio, input.semanticParameters[i]);
|
|
8569
8569
|
}
|
|
8570
8570
|
}
|
|
8571
8571
|
if (input.semanticRelationships !== undefined) {
|
|
8572
8572
|
const input_semanticRelationships_length = input.semanticRelationships.length;
|
|
8573
8573
|
for (let i = 0; i < input_semanticRelationships_length; i++) {
|
|
8574
|
-
getTypeCacheKeys$
|
|
8574
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.semanticRelationships[i]);
|
|
8575
8575
|
}
|
|
8576
8576
|
}
|
|
8577
8577
|
}
|
|
8578
8578
|
|
|
8579
|
-
function select$
|
|
8580
|
-
return select$
|
|
8579
|
+
function select$n(luvio, params) {
|
|
8580
|
+
return select$o();
|
|
8581
8581
|
}
|
|
8582
|
-
function getResponseCacheKeys$
|
|
8583
|
-
getTypeCacheKeys$
|
|
8582
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
8583
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
8584
8584
|
}
|
|
8585
|
-
function ingestSuccess$
|
|
8585
|
+
function ingestSuccess$d(luvio, resourceParams, response) {
|
|
8586
8586
|
const { body } = response;
|
|
8587
8587
|
const key = keyBuilderFromType$1(luvio, body);
|
|
8588
|
-
luvio.storeIngest(key, ingest$
|
|
8588
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
8589
8589
|
const snapshot = luvio.storeLookup({
|
|
8590
8590
|
recordId: key,
|
|
8591
|
-
node: select$
|
|
8591
|
+
node: select$n(),
|
|
8592
8592
|
variables: {},
|
|
8593
8593
|
});
|
|
8594
8594
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -8599,10 +8599,10 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
8599
8599
|
deepFreeze(snapshot.data);
|
|
8600
8600
|
return snapshot;
|
|
8601
8601
|
}
|
|
8602
|
-
function createResourceRequest$
|
|
8602
|
+
function createResourceRequest$f(config) {
|
|
8603
8603
|
const headers = {};
|
|
8604
8604
|
return {
|
|
8605
|
-
baseUri: '/services/data/
|
|
8605
|
+
baseUri: '/services/data/v64.0',
|
|
8606
8606
|
basePath: '/ssot/semantic/models',
|
|
8607
8607
|
method: 'post',
|
|
8608
8608
|
body: config.body,
|
|
@@ -8613,7 +8613,7 @@ function createResourceRequest$c(config) {
|
|
|
8613
8613
|
};
|
|
8614
8614
|
}
|
|
8615
8615
|
|
|
8616
|
-
const adapterName$
|
|
8616
|
+
const adapterName$f = 'createSemanticModel';
|
|
8617
8617
|
const createSemanticModel_ConfigPropertyMetadata = [
|
|
8618
8618
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
8619
8619
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -8634,11 +8634,11 @@ const createSemanticModel_ConfigPropertyMetadata = [
|
|
|
8634
8634
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
8635
8635
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
8636
8636
|
];
|
|
8637
|
-
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8638
|
-
const createResourceParams$
|
|
8639
|
-
function typeCheckConfig$
|
|
8637
|
+
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, createSemanticModel_ConfigPropertyMetadata);
|
|
8638
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$g(createSemanticModel_ConfigPropertyMetadata);
|
|
8639
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
8640
8640
|
const config = {};
|
|
8641
|
-
typeCheckConfig$
|
|
8641
|
+
typeCheckConfig$g(untrustedConfig, config, createSemanticModel_ConfigPropertyMetadata);
|
|
8642
8642
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
8643
8643
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
8644
8644
|
const untrustedConfig_baseModels_array = [];
|
|
@@ -8749,30 +8749,30 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
8749
8749
|
}
|
|
8750
8750
|
return config;
|
|
8751
8751
|
}
|
|
8752
|
-
function validateAdapterConfig$
|
|
8752
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
8753
8753
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
8754
8754
|
return null;
|
|
8755
8755
|
}
|
|
8756
8756
|
if (process.env.NODE_ENV !== 'production') {
|
|
8757
8757
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
8758
8758
|
}
|
|
8759
|
-
const config = typeCheckConfig$
|
|
8759
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
8760
8760
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
8761
8761
|
return null;
|
|
8762
8762
|
}
|
|
8763
8763
|
return config;
|
|
8764
8764
|
}
|
|
8765
|
-
function buildNetworkSnapshot$
|
|
8766
|
-
const resourceParams = createResourceParams$
|
|
8767
|
-
const request = createResourceRequest$
|
|
8765
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
8766
|
+
const resourceParams = createResourceParams$f(config);
|
|
8767
|
+
const request = createResourceRequest$f(resourceParams);
|
|
8768
8768
|
return luvio.dispatchResourceRequest(request, options)
|
|
8769
8769
|
.then((response) => {
|
|
8770
8770
|
return luvio.handleSuccessResponse(() => {
|
|
8771
|
-
const snapshot = ingestSuccess$
|
|
8771
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response);
|
|
8772
8772
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8773
8773
|
}, () => {
|
|
8774
8774
|
const cache = new StoreKeyMap();
|
|
8775
|
-
getResponseCacheKeys$
|
|
8775
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
8776
8776
|
return cache;
|
|
8777
8777
|
});
|
|
8778
8778
|
}, (response) => {
|
|
@@ -8782,87 +8782,100 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
8782
8782
|
}
|
|
8783
8783
|
const createSemanticModelAdapterFactory = (luvio) => {
|
|
8784
8784
|
return function createSemanticModel(untrustedConfig) {
|
|
8785
|
-
const config = validateAdapterConfig$
|
|
8785
|
+
const config = validateAdapterConfig$f(untrustedConfig, createSemanticModel_ConfigPropertyNames);
|
|
8786
8786
|
// Invalid or incomplete config
|
|
8787
8787
|
if (config === null) {
|
|
8788
8788
|
throw new Error('Invalid config for "createSemanticModel"');
|
|
8789
8789
|
}
|
|
8790
|
-
return buildNetworkSnapshot$
|
|
8790
|
+
return buildNetworkSnapshot$f(luvio, config);
|
|
8791
8791
|
};
|
|
8792
8792
|
};
|
|
8793
8793
|
|
|
8794
|
-
function validate$e(obj, path = '
|
|
8794
|
+
function validate$e(obj, path = 'SemanticGoalStatusConditionInputRepresentation') {
|
|
8795
8795
|
const v_error = (() => {
|
|
8796
8796
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8797
8797
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8798
8798
|
}
|
|
8799
|
-
if (obj.
|
|
8800
|
-
const
|
|
8801
|
-
const
|
|
8802
|
-
if (typeof
|
|
8803
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
8799
|
+
if (obj.color !== undefined) {
|
|
8800
|
+
const obj_color = obj.color;
|
|
8801
|
+
const path_color = path + '.color';
|
|
8802
|
+
if (typeof obj_color !== 'string') {
|
|
8803
|
+
return new TypeError('Expected "string" but received "' + typeof obj_color + '" (at "' + path_color + '")');
|
|
8804
8804
|
}
|
|
8805
8805
|
}
|
|
8806
|
-
if (obj.
|
|
8807
|
-
const
|
|
8808
|
-
const
|
|
8809
|
-
if (typeof
|
|
8810
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
8806
|
+
if (obj.currencyIsoCode !== undefined) {
|
|
8807
|
+
const obj_currencyIsoCode = obj.currencyIsoCode;
|
|
8808
|
+
const path_currencyIsoCode = path + '.currencyIsoCode';
|
|
8809
|
+
if (typeof obj_currencyIsoCode !== 'string') {
|
|
8810
|
+
return new TypeError('Expected "string" but received "' + typeof obj_currencyIsoCode + '" (at "' + path_currencyIsoCode + '")');
|
|
8811
8811
|
}
|
|
8812
8812
|
}
|
|
8813
|
-
|
|
8814
|
-
|
|
8815
|
-
|
|
8816
|
-
|
|
8817
|
-
|
|
8818
|
-
|
|
8819
|
-
|
|
8820
|
-
|
|
8813
|
+
if (obj.operator !== undefined) {
|
|
8814
|
+
const obj_operator = obj.operator;
|
|
8815
|
+
const path_operator = path + '.operator';
|
|
8816
|
+
if (typeof obj_operator !== 'string') {
|
|
8817
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
8818
|
+
}
|
|
8819
|
+
}
|
|
8820
|
+
if (obj.primary !== undefined) {
|
|
8821
|
+
const obj_primary = obj.primary;
|
|
8822
|
+
const path_primary = path + '.primary';
|
|
8823
|
+
if (typeof obj_primary !== 'boolean') {
|
|
8824
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_primary + '" (at "' + path_primary + '")');
|
|
8825
|
+
}
|
|
8826
|
+
}
|
|
8827
|
+
if (obj.statusName !== undefined) {
|
|
8828
|
+
const obj_statusName = obj.statusName;
|
|
8829
|
+
const path_statusName = path + '.statusName';
|
|
8830
|
+
if (typeof obj_statusName !== 'string') {
|
|
8831
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusName + '" (at "' + path_statusName + '")');
|
|
8832
|
+
}
|
|
8821
8833
|
}
|
|
8822
|
-
if (obj.
|
|
8823
|
-
obj.
|
|
8834
|
+
if (obj.value !== undefined) {
|
|
8835
|
+
const obj_value = obj.value;
|
|
8836
|
+
const path_value = path + '.value';
|
|
8837
|
+
if (typeof obj_value !== 'string') {
|
|
8838
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
8839
|
+
}
|
|
8824
8840
|
}
|
|
8825
8841
|
})();
|
|
8826
8842
|
return v_error === undefined ? null : v_error;
|
|
8827
8843
|
}
|
|
8828
8844
|
|
|
8829
|
-
function validate$
|
|
8845
|
+
function validate$d(obj, path = 'SemanticMetricGoalInputRepresentation') {
|
|
8830
8846
|
const v_error = (() => {
|
|
8831
8847
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8832
8848
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8833
8849
|
}
|
|
8834
|
-
if (obj.
|
|
8835
|
-
const
|
|
8836
|
-
const
|
|
8837
|
-
|
|
8838
|
-
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
let message = 'Object doesn\'t match SemanticGoalValueInputRepresentation (at "' + path_value + '")\n';
|
|
8857
|
-
message += referencepath_valueValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
8858
|
-
return new TypeError(message);
|
|
8850
|
+
if (obj.forecasting !== undefined) {
|
|
8851
|
+
const obj_forecasting = obj.forecasting;
|
|
8852
|
+
const path_forecasting = path + '.forecasting';
|
|
8853
|
+
if (typeof obj_forecasting !== 'boolean') {
|
|
8854
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_forecasting + '" (at "' + path_forecasting + '")');
|
|
8855
|
+
}
|
|
8856
|
+
}
|
|
8857
|
+
if (obj.statusConditions !== undefined) {
|
|
8858
|
+
const obj_statusConditions = obj.statusConditions;
|
|
8859
|
+
const path_statusConditions = path + '.statusConditions';
|
|
8860
|
+
if (!ArrayIsArray(obj_statusConditions)) {
|
|
8861
|
+
return new TypeError('Expected "array" but received "' + typeof obj_statusConditions + '" (at "' + path_statusConditions + '")');
|
|
8862
|
+
}
|
|
8863
|
+
for (let i = 0; i < obj_statusConditions.length; i++) {
|
|
8864
|
+
const obj_statusConditions_item = obj_statusConditions[i];
|
|
8865
|
+
const path_statusConditions_item = path_statusConditions + '[' + i + ']';
|
|
8866
|
+
const referencepath_statusConditions_itemValidationError = validate$e(obj_statusConditions_item, path_statusConditions_item);
|
|
8867
|
+
if (referencepath_statusConditions_itemValidationError !== null) {
|
|
8868
|
+
let message = 'Object doesn\'t match SemanticGoalStatusConditionInputRepresentation (at "' + path_statusConditions_item + '")\n';
|
|
8869
|
+
message += referencepath_statusConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
8870
|
+
return new TypeError(message);
|
|
8871
|
+
}
|
|
8859
8872
|
}
|
|
8860
8873
|
}
|
|
8861
8874
|
})();
|
|
8862
8875
|
return v_error === undefined ? null : v_error;
|
|
8863
8876
|
}
|
|
8864
8877
|
|
|
8865
|
-
function validate$
|
|
8878
|
+
function validate$c(obj, path = 'SemanticTimeRangeInputRepresentation') {
|
|
8866
8879
|
const v_error = (() => {
|
|
8867
8880
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8868
8881
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8892,72 +8905,21 @@ function validate$b(obj, path = 'SemanticTimeRangeInputRepresentation') {
|
|
|
8892
8905
|
return v_error === undefined ? null : v_error;
|
|
8893
8906
|
}
|
|
8894
8907
|
|
|
8895
|
-
function validate$
|
|
8908
|
+
function validate$b(obj, path = 'SemanticMetricGoalOutputRepresentation') {
|
|
8896
8909
|
const v_error = (() => {
|
|
8897
8910
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8898
8911
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8899
8912
|
}
|
|
8900
|
-
|
|
8901
|
-
|
|
8902
|
-
|
|
8903
|
-
|
|
8904
|
-
return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
|
|
8905
|
-
}
|
|
8906
|
-
}
|
|
8907
|
-
if (obj.startDate !== undefined) {
|
|
8908
|
-
const obj_startDate = obj.startDate;
|
|
8909
|
-
const path_startDate = path + '.startDate';
|
|
8910
|
-
if (typeof obj_startDate !== 'string') {
|
|
8911
|
-
return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
|
|
8912
|
-
}
|
|
8913
|
+
const obj_forecasting = obj.forecasting;
|
|
8914
|
+
const path_forecasting = path + '.forecasting';
|
|
8915
|
+
if (typeof obj_forecasting !== 'boolean') {
|
|
8916
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_forecasting + '" (at "' + path_forecasting + '")');
|
|
8913
8917
|
}
|
|
8914
8918
|
})();
|
|
8915
8919
|
return v_error === undefined ? null : v_error;
|
|
8916
8920
|
}
|
|
8917
8921
|
|
|
8918
|
-
function validate$
|
|
8919
|
-
const v_error = (() => {
|
|
8920
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8921
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8922
|
-
}
|
|
8923
|
-
if (obj.staticValue !== undefined) {
|
|
8924
|
-
obj.staticValue;
|
|
8925
|
-
}
|
|
8926
|
-
})();
|
|
8927
|
-
return v_error === undefined ? null : v_error;
|
|
8928
|
-
}
|
|
8929
|
-
|
|
8930
|
-
function validate$8(obj, path = 'SemanticMetricGoalOutputRepresentation') {
|
|
8931
|
-
const v_error = (() => {
|
|
8932
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8933
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8934
|
-
}
|
|
8935
|
-
const obj_date = obj.date;
|
|
8936
|
-
const path_date = path + '.date';
|
|
8937
|
-
const referencepath_dateValidationError = validate$a(obj_date, path_date);
|
|
8938
|
-
if (referencepath_dateValidationError !== null) {
|
|
8939
|
-
let message = 'Object doesn\'t match SemanticGoalDateRangeOutputRepresentation (at "' + path_date + '")\n';
|
|
8940
|
-
message += referencepath_dateValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
8941
|
-
return new TypeError(message);
|
|
8942
|
-
}
|
|
8943
|
-
const obj_goalType = obj.goalType;
|
|
8944
|
-
const path_goalType = path + '.goalType';
|
|
8945
|
-
if (typeof obj_goalType !== 'string') {
|
|
8946
|
-
return new TypeError('Expected "string" but received "' + typeof obj_goalType + '" (at "' + path_goalType + '")');
|
|
8947
|
-
}
|
|
8948
|
-
const obj_value = obj.value;
|
|
8949
|
-
const path_value = path + '.value';
|
|
8950
|
-
const referencepath_valueValidationError = validate$9(obj_value, path_value);
|
|
8951
|
-
if (referencepath_valueValidationError !== null) {
|
|
8952
|
-
let message = 'Object doesn\'t match SemanticGoalValueOutputRepresentation (at "' + path_value + '")\n';
|
|
8953
|
-
message += referencepath_valueValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
8954
|
-
return new TypeError(message);
|
|
8955
|
-
}
|
|
8956
|
-
})();
|
|
8957
|
-
return v_error === undefined ? null : v_error;
|
|
8958
|
-
}
|
|
8959
|
-
|
|
8960
|
-
function validate$7(obj, path = 'SemanticTimeRangeOutputRepresentation') {
|
|
8922
|
+
function validate$a(obj, path = 'SemanticTimeRangeOutputRepresentation') {
|
|
8961
8923
|
const v_error = (() => {
|
|
8962
8924
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8963
8925
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8987,8 +8949,8 @@ function validate$7(obj, path = 'SemanticTimeRangeOutputRepresentation') {
|
|
|
8987
8949
|
return v_error === undefined ? null : v_error;
|
|
8988
8950
|
}
|
|
8989
8951
|
|
|
8990
|
-
const VERSION$
|
|
8991
|
-
function validate$
|
|
8952
|
+
const VERSION$9 = "34ece37408ddd80874097c87b829ae97";
|
|
8953
|
+
function validate$9(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
8992
8954
|
const v_error = (() => {
|
|
8993
8955
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8994
8956
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -9056,7 +9018,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
9056
9018
|
if (obj.goal !== undefined) {
|
|
9057
9019
|
const obj_goal = obj.goal;
|
|
9058
9020
|
const path_goal = path + '.goal';
|
|
9059
|
-
const referencepath_goalValidationError = validate$
|
|
9021
|
+
const referencepath_goalValidationError = validate$b(obj_goal, path_goal);
|
|
9060
9022
|
if (referencepath_goalValidationError !== null) {
|
|
9061
9023
|
let message = 'Object doesn\'t match SemanticMetricGoalOutputRepresentation (at "' + path_goal + '")\n';
|
|
9062
9024
|
message += referencepath_goalValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9109,7 +9071,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
9109
9071
|
if (obj.timeRange !== undefined) {
|
|
9110
9072
|
const obj_timeRange = obj.timeRange;
|
|
9111
9073
|
const path_timeRange = path + '.timeRange';
|
|
9112
|
-
const referencepath_timeRangeValidationError = validate$
|
|
9074
|
+
const referencepath_timeRangeValidationError = validate$a(obj_timeRange, path_timeRange);
|
|
9113
9075
|
if (referencepath_timeRangeValidationError !== null) {
|
|
9114
9076
|
let message = 'Object doesn\'t match SemanticTimeRangeOutputRepresentation (at "' + path_timeRange + '")\n';
|
|
9115
9077
|
message += referencepath_timeRangeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9119,68 +9081,68 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
9119
9081
|
})();
|
|
9120
9082
|
return v_error === undefined ? null : v_error;
|
|
9121
9083
|
}
|
|
9122
|
-
const RepresentationType$
|
|
9123
|
-
function keyBuilder$
|
|
9124
|
-
return keyPrefix + '::' + RepresentationType$
|
|
9084
|
+
const RepresentationType$6 = 'SemanticSubMetricOutputRepresentation';
|
|
9085
|
+
function keyBuilder$m(luvio, config) {
|
|
9086
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.name;
|
|
9125
9087
|
}
|
|
9126
9088
|
function keyBuilderFromType(luvio, object) {
|
|
9127
9089
|
const keyParams = {
|
|
9128
9090
|
name: object.id
|
|
9129
9091
|
};
|
|
9130
|
-
return keyBuilder$
|
|
9092
|
+
return keyBuilder$m(luvio, keyParams);
|
|
9131
9093
|
}
|
|
9132
|
-
function normalize$
|
|
9094
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
9133
9095
|
return input;
|
|
9134
9096
|
}
|
|
9135
|
-
const select$
|
|
9097
|
+
const select$m = function SemanticSubMetricOutputRepresentationSelect() {
|
|
9136
9098
|
return {
|
|
9137
9099
|
kind: 'Fragment',
|
|
9138
|
-
version: VERSION$
|
|
9100
|
+
version: VERSION$9,
|
|
9139
9101
|
private: [],
|
|
9140
9102
|
opaque: true
|
|
9141
9103
|
};
|
|
9142
9104
|
};
|
|
9143
|
-
function equals$
|
|
9105
|
+
function equals$9(existing, incoming) {
|
|
9144
9106
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
9145
9107
|
return false;
|
|
9146
9108
|
}
|
|
9147
9109
|
return true;
|
|
9148
9110
|
}
|
|
9149
|
-
const ingest$
|
|
9111
|
+
const ingest$6 = function SemanticSubMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9150
9112
|
if (process.env.NODE_ENV !== 'production') {
|
|
9151
|
-
const validateError = validate$
|
|
9113
|
+
const validateError = validate$9(input);
|
|
9152
9114
|
if (validateError !== null) {
|
|
9153
9115
|
throw validateError;
|
|
9154
9116
|
}
|
|
9155
9117
|
}
|
|
9156
9118
|
const key = keyBuilderFromType(luvio, input);
|
|
9157
9119
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
9158
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
9120
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SemanticAuthoring", VERSION$9, RepresentationType$6, equals$9);
|
|
9159
9121
|
return createLink(key);
|
|
9160
9122
|
};
|
|
9161
|
-
function getTypeCacheKeys$
|
|
9123
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
9162
9124
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
9163
9125
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
9164
9126
|
rootKeySet.set(rootKey, {
|
|
9165
9127
|
namespace: keyPrefix,
|
|
9166
|
-
representationName: RepresentationType$
|
|
9128
|
+
representationName: RepresentationType$6,
|
|
9167
9129
|
mergeable: false
|
|
9168
9130
|
});
|
|
9169
9131
|
}
|
|
9170
9132
|
|
|
9171
|
-
function select$
|
|
9172
|
-
return select$
|
|
9133
|
+
function select$l(luvio, params) {
|
|
9134
|
+
return select$m();
|
|
9173
9135
|
}
|
|
9174
|
-
function getResponseCacheKeys$
|
|
9175
|
-
getTypeCacheKeys$
|
|
9136
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
9137
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
9176
9138
|
}
|
|
9177
|
-
function ingestSuccess$
|
|
9139
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
9178
9140
|
const { body } = response;
|
|
9179
9141
|
const key = keyBuilderFromType(luvio, body);
|
|
9180
|
-
luvio.storeIngest(key, ingest$
|
|
9142
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
9181
9143
|
const snapshot = luvio.storeLookup({
|
|
9182
9144
|
recordId: key,
|
|
9183
|
-
node: select$
|
|
9145
|
+
node: select$l(),
|
|
9184
9146
|
variables: {},
|
|
9185
9147
|
});
|
|
9186
9148
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9191,10 +9153,10 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
9191
9153
|
deepFreeze(snapshot.data);
|
|
9192
9154
|
return snapshot;
|
|
9193
9155
|
}
|
|
9194
|
-
function createResourceRequest$
|
|
9156
|
+
function createResourceRequest$e(config) {
|
|
9195
9157
|
const headers = {};
|
|
9196
9158
|
return {
|
|
9197
|
-
baseUri: '/services/data/
|
|
9159
|
+
baseUri: '/services/data/v64.0',
|
|
9198
9160
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics',
|
|
9199
9161
|
method: 'post',
|
|
9200
9162
|
body: config.body,
|
|
@@ -9205,7 +9167,7 @@ function createResourceRequest$b(config) {
|
|
|
9205
9167
|
};
|
|
9206
9168
|
}
|
|
9207
9169
|
|
|
9208
|
-
const adapterName$
|
|
9170
|
+
const adapterName$e = 'createSemanticSubMetric';
|
|
9209
9171
|
const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
9210
9172
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9211
9173
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -9217,11 +9179,11 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
9217
9179
|
generateParamConfigMetadata('semanticMetricDefinitionApiName', false, 2 /* Body */, 0 /* String */),
|
|
9218
9180
|
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
9219
9181
|
];
|
|
9220
|
-
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9221
|
-
const createResourceParams$
|
|
9222
|
-
function typeCheckConfig$
|
|
9182
|
+
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
9183
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$g(createSemanticSubMetric_ConfigPropertyMetadata);
|
|
9184
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
9223
9185
|
const config = {};
|
|
9224
|
-
typeCheckConfig$
|
|
9186
|
+
typeCheckConfig$g(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
9225
9187
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
9226
9188
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
9227
9189
|
const untrustedConfig_filters_array = [];
|
|
@@ -9235,41 +9197,41 @@ function typeCheckConfig$b(untrustedConfig) {
|
|
|
9235
9197
|
config.filters = untrustedConfig_filters_array;
|
|
9236
9198
|
}
|
|
9237
9199
|
const untrustedConfig_goal = untrustedConfig.goal;
|
|
9238
|
-
const referenceSemanticMetricGoalInputRepresentationValidationError = validate$
|
|
9200
|
+
const referenceSemanticMetricGoalInputRepresentationValidationError = validate$d(untrustedConfig_goal);
|
|
9239
9201
|
if (referenceSemanticMetricGoalInputRepresentationValidationError === null) {
|
|
9240
9202
|
config.goal = untrustedConfig_goal;
|
|
9241
9203
|
}
|
|
9242
9204
|
const untrustedConfig_timeRange = untrustedConfig.timeRange;
|
|
9243
|
-
const referenceSemanticTimeRangeInputRepresentationValidationError = validate$
|
|
9205
|
+
const referenceSemanticTimeRangeInputRepresentationValidationError = validate$c(untrustedConfig_timeRange);
|
|
9244
9206
|
if (referenceSemanticTimeRangeInputRepresentationValidationError === null) {
|
|
9245
9207
|
config.timeRange = untrustedConfig_timeRange;
|
|
9246
9208
|
}
|
|
9247
9209
|
return config;
|
|
9248
9210
|
}
|
|
9249
|
-
function validateAdapterConfig$
|
|
9211
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
9250
9212
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9251
9213
|
return null;
|
|
9252
9214
|
}
|
|
9253
9215
|
if (process.env.NODE_ENV !== 'production') {
|
|
9254
9216
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9255
9217
|
}
|
|
9256
|
-
const config = typeCheckConfig$
|
|
9218
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
9257
9219
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9258
9220
|
return null;
|
|
9259
9221
|
}
|
|
9260
9222
|
return config;
|
|
9261
9223
|
}
|
|
9262
|
-
function buildNetworkSnapshot$
|
|
9263
|
-
const resourceParams = createResourceParams$
|
|
9264
|
-
const request = createResourceRequest$
|
|
9224
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
9225
|
+
const resourceParams = createResourceParams$e(config);
|
|
9226
|
+
const request = createResourceRequest$e(resourceParams);
|
|
9265
9227
|
return luvio.dispatchResourceRequest(request, options)
|
|
9266
9228
|
.then((response) => {
|
|
9267
9229
|
return luvio.handleSuccessResponse(() => {
|
|
9268
|
-
const snapshot = ingestSuccess$
|
|
9230
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
9269
9231
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9270
9232
|
}, () => {
|
|
9271
9233
|
const cache = new StoreKeyMap();
|
|
9272
|
-
getResponseCacheKeys$
|
|
9234
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
9273
9235
|
return cache;
|
|
9274
9236
|
});
|
|
9275
9237
|
}, (response) => {
|
|
@@ -9279,118 +9241,652 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
9279
9241
|
}
|
|
9280
9242
|
const createSemanticSubMetricAdapterFactory = (luvio) => {
|
|
9281
9243
|
return function createSemanticSubMetric(untrustedConfig) {
|
|
9282
|
-
const config = validateAdapterConfig$
|
|
9244
|
+
const config = validateAdapterConfig$e(untrustedConfig, createSemanticSubMetric_ConfigPropertyNames);
|
|
9283
9245
|
// Invalid or incomplete config
|
|
9284
9246
|
if (config === null) {
|
|
9285
9247
|
throw new Error('Invalid config for "createSemanticSubMetric"');
|
|
9286
9248
|
}
|
|
9287
|
-
return buildNetworkSnapshot$
|
|
9249
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
9250
|
+
};
|
|
9251
|
+
};
|
|
9252
|
+
|
|
9253
|
+
function keyBuilder$l(luvio, params) {
|
|
9254
|
+
return keyBuilder$m(luvio, {
|
|
9255
|
+
name: params.urlParams.subMetricNameOrId
|
|
9256
|
+
});
|
|
9257
|
+
}
|
|
9258
|
+
function getResponseCacheKeys$d(cacheKeyMap, luvio, resourceParams) {
|
|
9259
|
+
const key = keyBuilder$l(luvio, resourceParams);
|
|
9260
|
+
cacheKeyMap.set(key, {
|
|
9261
|
+
namespace: keyPrefix,
|
|
9262
|
+
representationName: RepresentationType$6,
|
|
9263
|
+
mergeable: false
|
|
9264
|
+
});
|
|
9265
|
+
}
|
|
9266
|
+
function evictSuccess$1(luvio, resourceParams) {
|
|
9267
|
+
const key = keyBuilder$l(luvio, resourceParams);
|
|
9268
|
+
luvio.storeEvict(key);
|
|
9269
|
+
}
|
|
9270
|
+
function createResourceRequest$d(config) {
|
|
9271
|
+
const headers = {};
|
|
9272
|
+
return {
|
|
9273
|
+
baseUri: '/services/data/v64.0',
|
|
9274
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '/goal',
|
|
9275
|
+
method: 'delete',
|
|
9276
|
+
body: null,
|
|
9277
|
+
urlParams: config.urlParams,
|
|
9278
|
+
queryParams: {},
|
|
9279
|
+
headers,
|
|
9280
|
+
priority: 'normal',
|
|
9281
|
+
};
|
|
9282
|
+
}
|
|
9283
|
+
|
|
9284
|
+
const adapterName$d = 'deleteGoalFromSubMetric';
|
|
9285
|
+
const deleteGoalFromSubMetric_ConfigPropertyMetadata = [
|
|
9286
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9287
|
+
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9288
|
+
];
|
|
9289
|
+
const deleteGoalFromSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
9290
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$g(deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
9291
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
9292
|
+
const config = {};
|
|
9293
|
+
typeCheckConfig$g(untrustedConfig, config, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
9294
|
+
return config;
|
|
9295
|
+
}
|
|
9296
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
9297
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
9298
|
+
return null;
|
|
9299
|
+
}
|
|
9300
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9301
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
9302
|
+
}
|
|
9303
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
9304
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9305
|
+
return null;
|
|
9306
|
+
}
|
|
9307
|
+
return config;
|
|
9308
|
+
}
|
|
9309
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
9310
|
+
const resourceParams = createResourceParams$d(config);
|
|
9311
|
+
const request = createResourceRequest$d(resourceParams);
|
|
9312
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
9313
|
+
.then(() => {
|
|
9314
|
+
return luvio.handleSuccessResponse(() => {
|
|
9315
|
+
evictSuccess$1(luvio, resourceParams);
|
|
9316
|
+
return luvio.storeBroadcast();
|
|
9317
|
+
}, () => {
|
|
9318
|
+
const cache = new StoreKeyMap();
|
|
9319
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams);
|
|
9320
|
+
return cache;
|
|
9321
|
+
});
|
|
9322
|
+
}, (response) => {
|
|
9323
|
+
deepFreeze(response);
|
|
9324
|
+
throw response;
|
|
9325
|
+
});
|
|
9326
|
+
}
|
|
9327
|
+
const deleteGoalFromSubMetricAdapterFactory = (luvio) => {
|
|
9328
|
+
return function SemanticAuthoringdeleteGoalFromSubMetric(untrustedConfig) {
|
|
9329
|
+
const config = validateAdapterConfig$d(untrustedConfig, deleteGoalFromSubMetric_ConfigPropertyNames);
|
|
9330
|
+
// Invalid or incomplete config
|
|
9331
|
+
if (config === null) {
|
|
9332
|
+
throw new Error(`Invalid config for "${adapterName$d}"`);
|
|
9333
|
+
}
|
|
9334
|
+
return buildNetworkSnapshot$d(luvio, config);
|
|
9288
9335
|
};
|
|
9289
9336
|
};
|
|
9290
9337
|
|
|
9291
|
-
function keyBuilder$
|
|
9292
|
-
return keyBuilder$
|
|
9338
|
+
function keyBuilder$k(luvio, params) {
|
|
9339
|
+
return keyBuilder$m(luvio, {
|
|
9293
9340
|
name: params.urlParams.subMetricNameOrId
|
|
9294
9341
|
});
|
|
9295
9342
|
}
|
|
9296
|
-
function getResponseCacheKeys$
|
|
9297
|
-
const key = keyBuilder$
|
|
9343
|
+
function getResponseCacheKeys$c(cacheKeyMap, luvio, resourceParams) {
|
|
9344
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
9298
9345
|
cacheKeyMap.set(key, {
|
|
9346
|
+
namespace: keyPrefix,
|
|
9347
|
+
representationName: RepresentationType$6,
|
|
9348
|
+
mergeable: false
|
|
9349
|
+
});
|
|
9350
|
+
}
|
|
9351
|
+
function evictSuccess(luvio, resourceParams) {
|
|
9352
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
9353
|
+
luvio.storeEvict(key);
|
|
9354
|
+
}
|
|
9355
|
+
function createResourceRequest$c(config) {
|
|
9356
|
+
const headers = {};
|
|
9357
|
+
return {
|
|
9358
|
+
baseUri: '/services/data/v64.0',
|
|
9359
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '',
|
|
9360
|
+
method: 'delete',
|
|
9361
|
+
body: null,
|
|
9362
|
+
urlParams: config.urlParams,
|
|
9363
|
+
queryParams: {},
|
|
9364
|
+
headers,
|
|
9365
|
+
priority: 'normal',
|
|
9366
|
+
};
|
|
9367
|
+
}
|
|
9368
|
+
|
|
9369
|
+
const adapterName$c = 'deleteSemanticSubMetric';
|
|
9370
|
+
const deleteSemanticSubMetric_ConfigPropertyMetadata = [
|
|
9371
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9372
|
+
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9373
|
+
];
|
|
9374
|
+
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
9375
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$g(deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
9376
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
9377
|
+
const config = {};
|
|
9378
|
+
typeCheckConfig$g(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
9379
|
+
return config;
|
|
9380
|
+
}
|
|
9381
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
9382
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
9383
|
+
return null;
|
|
9384
|
+
}
|
|
9385
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9386
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
9387
|
+
}
|
|
9388
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
9389
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9390
|
+
return null;
|
|
9391
|
+
}
|
|
9392
|
+
return config;
|
|
9393
|
+
}
|
|
9394
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
9395
|
+
const resourceParams = createResourceParams$c(config);
|
|
9396
|
+
const request = createResourceRequest$c(resourceParams);
|
|
9397
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
9398
|
+
.then(() => {
|
|
9399
|
+
return luvio.handleSuccessResponse(() => {
|
|
9400
|
+
evictSuccess(luvio, resourceParams);
|
|
9401
|
+
return luvio.storeBroadcast();
|
|
9402
|
+
}, () => {
|
|
9403
|
+
const cache = new StoreKeyMap();
|
|
9404
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams);
|
|
9405
|
+
return cache;
|
|
9406
|
+
});
|
|
9407
|
+
}, (response) => {
|
|
9408
|
+
deepFreeze(response);
|
|
9409
|
+
throw response;
|
|
9410
|
+
});
|
|
9411
|
+
}
|
|
9412
|
+
const deleteSemanticSubMetricAdapterFactory = (luvio) => {
|
|
9413
|
+
return function SemanticAuthoringdeleteSemanticSubMetric(untrustedConfig) {
|
|
9414
|
+
const config = validateAdapterConfig$c(untrustedConfig, deleteSemanticSubMetric_ConfigPropertyNames);
|
|
9415
|
+
// Invalid or incomplete config
|
|
9416
|
+
if (config === null) {
|
|
9417
|
+
throw new Error(`Invalid config for "${adapterName$c}"`);
|
|
9418
|
+
}
|
|
9419
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
9420
|
+
};
|
|
9421
|
+
};
|
|
9422
|
+
|
|
9423
|
+
const VERSION$8 = "e96f6d15d947eadd33aeb16dd9222420";
|
|
9424
|
+
function validate$8(obj, path = 'SemanticDependencyOutputRepresentation') {
|
|
9425
|
+
const v_error = (() => {
|
|
9426
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9427
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
9428
|
+
}
|
|
9429
|
+
const obj_apiName = obj.apiName;
|
|
9430
|
+
const path_apiName = path + '.apiName';
|
|
9431
|
+
if (typeof obj_apiName !== 'string') {
|
|
9432
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
9433
|
+
}
|
|
9434
|
+
if (obj.definitionType !== undefined) {
|
|
9435
|
+
const obj_definitionType = obj.definitionType;
|
|
9436
|
+
const path_definitionType = path + '.definitionType';
|
|
9437
|
+
if (typeof obj_definitionType !== 'string') {
|
|
9438
|
+
return new TypeError('Expected "string" but received "' + typeof obj_definitionType + '" (at "' + path_definitionType + '")');
|
|
9439
|
+
}
|
|
9440
|
+
}
|
|
9441
|
+
if (obj.label !== undefined) {
|
|
9442
|
+
const obj_label = obj.label;
|
|
9443
|
+
const path_label = path + '.label';
|
|
9444
|
+
if (typeof obj_label !== 'string') {
|
|
9445
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
9446
|
+
}
|
|
9447
|
+
}
|
|
9448
|
+
if (obj.modelApiName !== undefined) {
|
|
9449
|
+
const obj_modelApiName = obj.modelApiName;
|
|
9450
|
+
const path_modelApiName = path + '.modelApiName';
|
|
9451
|
+
if (typeof obj_modelApiName !== 'string') {
|
|
9452
|
+
return new TypeError('Expected "string" but received "' + typeof obj_modelApiName + '" (at "' + path_modelApiName + '")');
|
|
9453
|
+
}
|
|
9454
|
+
}
|
|
9455
|
+
})();
|
|
9456
|
+
return v_error === undefined ? null : v_error;
|
|
9457
|
+
}
|
|
9458
|
+
const select$k = function SemanticDependencyOutputRepresentationSelect() {
|
|
9459
|
+
return {
|
|
9460
|
+
kind: 'Fragment',
|
|
9461
|
+
version: VERSION$8,
|
|
9462
|
+
private: [],
|
|
9463
|
+
selections: [
|
|
9464
|
+
{
|
|
9465
|
+
name: 'apiName',
|
|
9466
|
+
kind: 'Scalar'
|
|
9467
|
+
},
|
|
9468
|
+
{
|
|
9469
|
+
name: 'definitionType',
|
|
9470
|
+
kind: 'Scalar',
|
|
9471
|
+
required: false
|
|
9472
|
+
},
|
|
9473
|
+
{
|
|
9474
|
+
name: 'label',
|
|
9475
|
+
kind: 'Scalar',
|
|
9476
|
+
required: false
|
|
9477
|
+
},
|
|
9478
|
+
{
|
|
9479
|
+
name: 'modelApiName',
|
|
9480
|
+
kind: 'Scalar',
|
|
9481
|
+
required: false
|
|
9482
|
+
}
|
|
9483
|
+
]
|
|
9484
|
+
};
|
|
9485
|
+
};
|
|
9486
|
+
function equals$8(existing, incoming) {
|
|
9487
|
+
const existing_apiName = existing.apiName;
|
|
9488
|
+
const incoming_apiName = incoming.apiName;
|
|
9489
|
+
if (!(existing_apiName === incoming_apiName)) {
|
|
9490
|
+
return false;
|
|
9491
|
+
}
|
|
9492
|
+
const existing_definitionType = existing.definitionType;
|
|
9493
|
+
const incoming_definitionType = incoming.definitionType;
|
|
9494
|
+
// if at least one of these optionals is defined
|
|
9495
|
+
if (existing_definitionType !== undefined || incoming_definitionType !== undefined) {
|
|
9496
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9497
|
+
// not equal
|
|
9498
|
+
if (existing_definitionType === undefined || incoming_definitionType === undefined) {
|
|
9499
|
+
return false;
|
|
9500
|
+
}
|
|
9501
|
+
if (!(existing_definitionType === incoming_definitionType)) {
|
|
9502
|
+
return false;
|
|
9503
|
+
}
|
|
9504
|
+
}
|
|
9505
|
+
const existing_label = existing.label;
|
|
9506
|
+
const incoming_label = incoming.label;
|
|
9507
|
+
// if at least one of these optionals is defined
|
|
9508
|
+
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
9509
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9510
|
+
// not equal
|
|
9511
|
+
if (existing_label === undefined || incoming_label === undefined) {
|
|
9512
|
+
return false;
|
|
9513
|
+
}
|
|
9514
|
+
if (!(existing_label === incoming_label)) {
|
|
9515
|
+
return false;
|
|
9516
|
+
}
|
|
9517
|
+
}
|
|
9518
|
+
const existing_modelApiName = existing.modelApiName;
|
|
9519
|
+
const incoming_modelApiName = incoming.modelApiName;
|
|
9520
|
+
// if at least one of these optionals is defined
|
|
9521
|
+
if (existing_modelApiName !== undefined || incoming_modelApiName !== undefined) {
|
|
9522
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9523
|
+
// not equal
|
|
9524
|
+
if (existing_modelApiName === undefined || incoming_modelApiName === undefined) {
|
|
9525
|
+
return false;
|
|
9526
|
+
}
|
|
9527
|
+
if (!(existing_modelApiName === incoming_modelApiName)) {
|
|
9528
|
+
return false;
|
|
9529
|
+
}
|
|
9530
|
+
}
|
|
9531
|
+
return true;
|
|
9532
|
+
}
|
|
9533
|
+
|
|
9534
|
+
const VERSION$7 = "62e5e0ffeb783cdde37da72d400b0869";
|
|
9535
|
+
function validate$7(obj, path = 'SemanticDependencyInnerCollectionOutputRepresentation') {
|
|
9536
|
+
const v_error = (() => {
|
|
9537
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9538
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
9539
|
+
}
|
|
9540
|
+
if (obj.definitionApiName !== undefined) {
|
|
9541
|
+
const obj_definitionApiName = obj.definitionApiName;
|
|
9542
|
+
const path_definitionApiName = path + '.definitionApiName';
|
|
9543
|
+
if (typeof obj_definitionApiName !== 'string') {
|
|
9544
|
+
return new TypeError('Expected "string" but received "' + typeof obj_definitionApiName + '" (at "' + path_definitionApiName + '")');
|
|
9545
|
+
}
|
|
9546
|
+
}
|
|
9547
|
+
if (obj.dependencies !== undefined) {
|
|
9548
|
+
const obj_dependencies = obj.dependencies;
|
|
9549
|
+
const path_dependencies = path + '.dependencies';
|
|
9550
|
+
if (!ArrayIsArray(obj_dependencies)) {
|
|
9551
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dependencies + '" (at "' + path_dependencies + '")');
|
|
9552
|
+
}
|
|
9553
|
+
for (let i = 0; i < obj_dependencies.length; i++) {
|
|
9554
|
+
const obj_dependencies_item = obj_dependencies[i];
|
|
9555
|
+
const path_dependencies_item = path_dependencies + '[' + i + ']';
|
|
9556
|
+
const referencepath_dependencies_itemValidationError = validate$8(obj_dependencies_item, path_dependencies_item);
|
|
9557
|
+
if (referencepath_dependencies_itemValidationError !== null) {
|
|
9558
|
+
let message = 'Object doesn\'t match SemanticDependencyOutputRepresentation (at "' + path_dependencies_item + '")\n';
|
|
9559
|
+
message += referencepath_dependencies_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
9560
|
+
return new TypeError(message);
|
|
9561
|
+
}
|
|
9562
|
+
}
|
|
9563
|
+
}
|
|
9564
|
+
if (obj.fieldApiName !== undefined) {
|
|
9565
|
+
const obj_fieldApiName = obj.fieldApiName;
|
|
9566
|
+
const path_fieldApiName = path + '.fieldApiName';
|
|
9567
|
+
if (typeof obj_fieldApiName !== 'string') {
|
|
9568
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
|
|
9569
|
+
}
|
|
9570
|
+
}
|
|
9571
|
+
})();
|
|
9572
|
+
return v_error === undefined ? null : v_error;
|
|
9573
|
+
}
|
|
9574
|
+
const select$j = function SemanticDependencyInnerCollectionOutputRepresentationSelect() {
|
|
9575
|
+
const { selections: SemanticDependencyOutputRepresentation__selections, opaque: SemanticDependencyOutputRepresentation__opaque, } = select$k();
|
|
9576
|
+
return {
|
|
9577
|
+
kind: 'Fragment',
|
|
9578
|
+
version: VERSION$7,
|
|
9579
|
+
private: [],
|
|
9580
|
+
selections: [
|
|
9581
|
+
{
|
|
9582
|
+
name: 'definitionApiName',
|
|
9583
|
+
kind: 'Scalar',
|
|
9584
|
+
required: false
|
|
9585
|
+
},
|
|
9586
|
+
{
|
|
9587
|
+
name: 'dependencies',
|
|
9588
|
+
kind: 'Object',
|
|
9589
|
+
plural: true,
|
|
9590
|
+
selections: SemanticDependencyOutputRepresentation__selections,
|
|
9591
|
+
required: false
|
|
9592
|
+
},
|
|
9593
|
+
{
|
|
9594
|
+
name: 'fieldApiName',
|
|
9595
|
+
kind: 'Scalar',
|
|
9596
|
+
required: false
|
|
9597
|
+
}
|
|
9598
|
+
]
|
|
9599
|
+
};
|
|
9600
|
+
};
|
|
9601
|
+
function equals$7(existing, incoming) {
|
|
9602
|
+
const existing_definitionApiName = existing.definitionApiName;
|
|
9603
|
+
const incoming_definitionApiName = incoming.definitionApiName;
|
|
9604
|
+
// if at least one of these optionals is defined
|
|
9605
|
+
if (existing_definitionApiName !== undefined || incoming_definitionApiName !== undefined) {
|
|
9606
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9607
|
+
// not equal
|
|
9608
|
+
if (existing_definitionApiName === undefined || incoming_definitionApiName === undefined) {
|
|
9609
|
+
return false;
|
|
9610
|
+
}
|
|
9611
|
+
if (!(existing_definitionApiName === incoming_definitionApiName)) {
|
|
9612
|
+
return false;
|
|
9613
|
+
}
|
|
9614
|
+
}
|
|
9615
|
+
const existing_fieldApiName = existing.fieldApiName;
|
|
9616
|
+
const incoming_fieldApiName = incoming.fieldApiName;
|
|
9617
|
+
// if at least one of these optionals is defined
|
|
9618
|
+
if (existing_fieldApiName !== undefined || incoming_fieldApiName !== undefined) {
|
|
9619
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9620
|
+
// not equal
|
|
9621
|
+
if (existing_fieldApiName === undefined || incoming_fieldApiName === undefined) {
|
|
9622
|
+
return false;
|
|
9623
|
+
}
|
|
9624
|
+
if (!(existing_fieldApiName === incoming_fieldApiName)) {
|
|
9625
|
+
return false;
|
|
9626
|
+
}
|
|
9627
|
+
}
|
|
9628
|
+
const existing_dependencies = existing.dependencies;
|
|
9629
|
+
const incoming_dependencies = incoming.dependencies;
|
|
9630
|
+
// if at least one of these optionals is defined
|
|
9631
|
+
if (existing_dependencies !== undefined || incoming_dependencies !== undefined) {
|
|
9632
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9633
|
+
// not equal
|
|
9634
|
+
if (existing_dependencies === undefined || incoming_dependencies === undefined) {
|
|
9635
|
+
return false;
|
|
9636
|
+
}
|
|
9637
|
+
const equals_dependencies_items = equalsArray(existing_dependencies, incoming_dependencies, (existing_dependencies_item, incoming_dependencies_item) => {
|
|
9638
|
+
if (!(equals$8(existing_dependencies_item, incoming_dependencies_item))) {
|
|
9639
|
+
return false;
|
|
9640
|
+
}
|
|
9641
|
+
});
|
|
9642
|
+
if (equals_dependencies_items === false) {
|
|
9643
|
+
return false;
|
|
9644
|
+
}
|
|
9645
|
+
}
|
|
9646
|
+
return true;
|
|
9647
|
+
}
|
|
9648
|
+
|
|
9649
|
+
const VERSION$6 = "e710141192798ab103ce7e9b469baad4";
|
|
9650
|
+
function validate$6(obj, path = 'SemanticDependencyCollectionOutputRepresentation') {
|
|
9651
|
+
const v_error = (() => {
|
|
9652
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9653
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
9654
|
+
}
|
|
9655
|
+
if (obj.item !== undefined) {
|
|
9656
|
+
const obj_item = obj.item;
|
|
9657
|
+
const path_item = path + '.item';
|
|
9658
|
+
if (!ArrayIsArray(obj_item)) {
|
|
9659
|
+
return new TypeError('Expected "array" but received "' + typeof obj_item + '" (at "' + path_item + '")');
|
|
9660
|
+
}
|
|
9661
|
+
for (let i = 0; i < obj_item.length; i++) {
|
|
9662
|
+
const obj_item_item = obj_item[i];
|
|
9663
|
+
const path_item_item = path_item + '[' + i + ']';
|
|
9664
|
+
const referencepath_item_itemValidationError = validate$7(obj_item_item, path_item_item);
|
|
9665
|
+
if (referencepath_item_itemValidationError !== null) {
|
|
9666
|
+
let message = 'Object doesn\'t match SemanticDependencyInnerCollectionOutputRepresentation (at "' + path_item_item + '")\n';
|
|
9667
|
+
message += referencepath_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
9668
|
+
return new TypeError(message);
|
|
9669
|
+
}
|
|
9670
|
+
}
|
|
9671
|
+
}
|
|
9672
|
+
})();
|
|
9673
|
+
return v_error === undefined ? null : v_error;
|
|
9674
|
+
}
|
|
9675
|
+
const RepresentationType$5 = 'SemanticDependencyCollectionOutputRepresentation';
|
|
9676
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
9677
|
+
return input;
|
|
9678
|
+
}
|
|
9679
|
+
const select$i = function SemanticDependencyCollectionOutputRepresentationSelect() {
|
|
9680
|
+
const { selections: SemanticDependencyInnerCollectionOutputRepresentation__selections, opaque: SemanticDependencyInnerCollectionOutputRepresentation__opaque, } = select$j();
|
|
9681
|
+
return {
|
|
9682
|
+
kind: 'Fragment',
|
|
9683
|
+
version: VERSION$6,
|
|
9684
|
+
private: [],
|
|
9685
|
+
selections: [
|
|
9686
|
+
{
|
|
9687
|
+
name: 'item',
|
|
9688
|
+
kind: 'Object',
|
|
9689
|
+
plural: true,
|
|
9690
|
+
selections: SemanticDependencyInnerCollectionOutputRepresentation__selections,
|
|
9691
|
+
required: false
|
|
9692
|
+
}
|
|
9693
|
+
]
|
|
9694
|
+
};
|
|
9695
|
+
};
|
|
9696
|
+
function equals$6(existing, incoming) {
|
|
9697
|
+
const existing_item = existing.item;
|
|
9698
|
+
const incoming_item = incoming.item;
|
|
9699
|
+
// if at least one of these optionals is defined
|
|
9700
|
+
if (existing_item !== undefined || incoming_item !== undefined) {
|
|
9701
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9702
|
+
// not equal
|
|
9703
|
+
if (existing_item === undefined || incoming_item === undefined) {
|
|
9704
|
+
return false;
|
|
9705
|
+
}
|
|
9706
|
+
const equals_item_items = equalsArray(existing_item, incoming_item, (existing_item_item, incoming_item_item) => {
|
|
9707
|
+
if (!(equals$7(existing_item_item, incoming_item_item))) {
|
|
9708
|
+
return false;
|
|
9709
|
+
}
|
|
9710
|
+
});
|
|
9711
|
+
if (equals_item_items === false) {
|
|
9712
|
+
return false;
|
|
9713
|
+
}
|
|
9714
|
+
}
|
|
9715
|
+
return true;
|
|
9716
|
+
}
|
|
9717
|
+
const ingest$5 = function SemanticDependencyCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9718
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9719
|
+
const validateError = validate$6(input);
|
|
9720
|
+
if (validateError !== null) {
|
|
9721
|
+
throw validateError;
|
|
9722
|
+
}
|
|
9723
|
+
}
|
|
9724
|
+
const key = path.fullPath;
|
|
9725
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
9726
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "SemanticAuthoring", VERSION$6, RepresentationType$5, equals$6);
|
|
9727
|
+
return createLink(key);
|
|
9728
|
+
};
|
|
9729
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
9730
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
9731
|
+
const rootKey = fullPathFactory();
|
|
9732
|
+
rootKeySet.set(rootKey, {
|
|
9299
9733
|
namespace: keyPrefix,
|
|
9300
9734
|
representationName: RepresentationType$5,
|
|
9301
9735
|
mergeable: false
|
|
9302
9736
|
});
|
|
9303
9737
|
}
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9738
|
+
|
|
9739
|
+
function select$h(luvio, params) {
|
|
9740
|
+
return select$i();
|
|
9307
9741
|
}
|
|
9308
|
-
function
|
|
9742
|
+
function keyBuilder$j(luvio, params) {
|
|
9743
|
+
return keyPrefix + '::SemanticDependencyCollectionOutputRepresentation:(' + 'types:' + params.queryParams.types + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
9744
|
+
}
|
|
9745
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
9746
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
|
|
9747
|
+
}
|
|
9748
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
9749
|
+
const { body } = response;
|
|
9750
|
+
const key = keyBuilder$j(luvio, resourceParams);
|
|
9751
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
9752
|
+
const snapshot = luvio.storeLookup({
|
|
9753
|
+
recordId: key,
|
|
9754
|
+
node: select$h(),
|
|
9755
|
+
variables: {},
|
|
9756
|
+
}, snapshotRefresh);
|
|
9757
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9758
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
9759
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
9760
|
+
}
|
|
9761
|
+
}
|
|
9762
|
+
deepFreeze(snapshot.data);
|
|
9763
|
+
return snapshot;
|
|
9764
|
+
}
|
|
9765
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
9766
|
+
const key = keyBuilder$j(luvio, params);
|
|
9767
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
9768
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
9769
|
+
return errorSnapshot;
|
|
9770
|
+
}
|
|
9771
|
+
function createResourceRequest$b(config) {
|
|
9309
9772
|
const headers = {};
|
|
9310
9773
|
return {
|
|
9311
|
-
baseUri: '/services/data/
|
|
9312
|
-
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/
|
|
9313
|
-
method: '
|
|
9774
|
+
baseUri: '/services/data/v64.0',
|
|
9775
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/dependencies',
|
|
9776
|
+
method: 'get',
|
|
9314
9777
|
body: null,
|
|
9315
9778
|
urlParams: config.urlParams,
|
|
9316
|
-
queryParams:
|
|
9779
|
+
queryParams: config.queryParams,
|
|
9317
9780
|
headers,
|
|
9318
9781
|
priority: 'normal',
|
|
9319
9782
|
};
|
|
9320
9783
|
}
|
|
9321
9784
|
|
|
9322
|
-
const adapterName$
|
|
9323
|
-
const
|
|
9785
|
+
const adapterName$b = 'getLeafDependenciesByTypes';
|
|
9786
|
+
const getLeafDependenciesByTypes_ConfigPropertyMetadata = [
|
|
9324
9787
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9325
|
-
generateParamConfigMetadata('
|
|
9788
|
+
generateParamConfigMetadata('types', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
9326
9789
|
];
|
|
9327
|
-
const
|
|
9328
|
-
const createResourceParams$
|
|
9329
|
-
function
|
|
9790
|
+
const getLeafDependenciesByTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
9791
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$g(getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
9792
|
+
function keyBuilder$i(luvio, config) {
|
|
9793
|
+
const resourceParams = createResourceParams$b(config);
|
|
9794
|
+
return keyBuilder$j(luvio, resourceParams);
|
|
9795
|
+
}
|
|
9796
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
9330
9797
|
const config = {};
|
|
9331
|
-
typeCheckConfig$
|
|
9798
|
+
typeCheckConfig$g(untrustedConfig, config, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
9332
9799
|
return config;
|
|
9333
9800
|
}
|
|
9334
|
-
function validateAdapterConfig$
|
|
9801
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
9335
9802
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9336
9803
|
return null;
|
|
9337
9804
|
}
|
|
9338
9805
|
if (process.env.NODE_ENV !== 'production') {
|
|
9339
9806
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9340
9807
|
}
|
|
9341
|
-
const config = typeCheckConfig$
|
|
9808
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
9342
9809
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9343
9810
|
return null;
|
|
9344
9811
|
}
|
|
9345
9812
|
return config;
|
|
9346
9813
|
}
|
|
9347
|
-
function
|
|
9348
|
-
|
|
9349
|
-
|
|
9814
|
+
function adapterFragment$9(luvio, config) {
|
|
9815
|
+
createResourceParams$b(config);
|
|
9816
|
+
return select$h();
|
|
9817
|
+
}
|
|
9818
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
9819
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
9820
|
+
config,
|
|
9821
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
9822
|
+
});
|
|
9823
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
9824
|
+
}
|
|
9825
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
9826
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
9827
|
+
config,
|
|
9828
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
9829
|
+
});
|
|
9830
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
9831
|
+
}
|
|
9832
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
9833
|
+
const resourceParams = createResourceParams$b(config);
|
|
9834
|
+
const request = createResourceRequest$b(resourceParams);
|
|
9350
9835
|
return luvio.dispatchResourceRequest(request, options)
|
|
9351
|
-
.then(() => {
|
|
9352
|
-
return luvio.handleSuccessResponse(() => {
|
|
9353
|
-
evictSuccess(luvio, resourceParams);
|
|
9354
|
-
return luvio.storeBroadcast();
|
|
9355
|
-
}, () => {
|
|
9836
|
+
.then((response) => {
|
|
9837
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
9356
9838
|
const cache = new StoreKeyMap();
|
|
9357
|
-
getResponseCacheKeys$
|
|
9839
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
9358
9840
|
return cache;
|
|
9359
9841
|
});
|
|
9360
9842
|
}, (response) => {
|
|
9361
|
-
|
|
9362
|
-
throw response;
|
|
9843
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
9363
9844
|
});
|
|
9364
9845
|
}
|
|
9365
|
-
|
|
9366
|
-
return
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
|
|
9370
|
-
|
|
9371
|
-
|
|
9372
|
-
|
|
9846
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
9847
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
9848
|
+
}
|
|
9849
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
9850
|
+
const { luvio, config } = context;
|
|
9851
|
+
const selector = {
|
|
9852
|
+
recordId: keyBuilder$i(luvio, config),
|
|
9853
|
+
node: adapterFragment$9(luvio, config),
|
|
9854
|
+
variables: {},
|
|
9373
9855
|
};
|
|
9856
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
9857
|
+
config,
|
|
9858
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
9859
|
+
});
|
|
9860
|
+
return cacheSnapshot;
|
|
9861
|
+
}
|
|
9862
|
+
const getLeafDependenciesByTypesAdapterFactory = (luvio) => function SemanticAuthoring__getLeafDependenciesByTypes(untrustedConfig, requestContext) {
|
|
9863
|
+
const config = validateAdapterConfig$b(untrustedConfig, getLeafDependenciesByTypes_ConfigPropertyNames);
|
|
9864
|
+
// Invalid or incomplete config
|
|
9865
|
+
if (config === null) {
|
|
9866
|
+
return null;
|
|
9867
|
+
}
|
|
9868
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
9869
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
9374
9870
|
};
|
|
9375
9871
|
|
|
9376
|
-
function select$
|
|
9377
|
-
return select$
|
|
9872
|
+
function select$g(luvio, params) {
|
|
9873
|
+
return select$q();
|
|
9378
9874
|
}
|
|
9379
9875
|
function keyBuilder$h(luvio, params) {
|
|
9380
|
-
return keyBuilder$
|
|
9876
|
+
return keyBuilder$p(luvio, {
|
|
9381
9877
|
name: params.urlParams.metricNameOrId
|
|
9382
9878
|
});
|
|
9383
9879
|
}
|
|
9384
|
-
function getResponseCacheKeys$
|
|
9385
|
-
getTypeCacheKeys$
|
|
9880
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
9881
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
9386
9882
|
}
|
|
9387
|
-
function ingestSuccess$
|
|
9883
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
9388
9884
|
const { body } = response;
|
|
9389
9885
|
const key = keyBuilder$h(luvio, resourceParams);
|
|
9390
|
-
luvio.storeIngest(key, ingest$
|
|
9886
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
9391
9887
|
const snapshot = luvio.storeLookup({
|
|
9392
9888
|
recordId: key,
|
|
9393
|
-
node: select$
|
|
9889
|
+
node: select$g(),
|
|
9394
9890
|
variables: {},
|
|
9395
9891
|
}, snapshotRefresh);
|
|
9396
9892
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9407,10 +9903,10 @@ function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
|
9407
9903
|
luvio.storeIngestError(key, errorSnapshot);
|
|
9408
9904
|
return errorSnapshot;
|
|
9409
9905
|
}
|
|
9410
|
-
function createResourceRequest$
|
|
9906
|
+
function createResourceRequest$a(config) {
|
|
9411
9907
|
const headers = {};
|
|
9412
9908
|
return {
|
|
9413
|
-
baseUri: '/services/data/
|
|
9909
|
+
baseUri: '/services/data/v64.0',
|
|
9414
9910
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metrics/' + config.urlParams.metricNameOrId + '',
|
|
9415
9911
|
method: 'get',
|
|
9416
9912
|
body: null,
|
|
@@ -9425,64 +9921,64 @@ function createResourceRequestFromRepresentation$2(representation) {
|
|
|
9425
9921
|
urlParams: {},
|
|
9426
9922
|
};
|
|
9427
9923
|
config.urlParams.metricNameOrId = representation.id;
|
|
9428
|
-
return createResourceRequest$
|
|
9924
|
+
return createResourceRequest$a(config);
|
|
9429
9925
|
}
|
|
9430
9926
|
|
|
9431
|
-
const adapterName$
|
|
9927
|
+
const adapterName$a = 'getSemanticMetric';
|
|
9432
9928
|
const getSemanticMetric_ConfigPropertyMetadata = [
|
|
9433
9929
|
generateParamConfigMetadata('metricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9434
9930
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9435
9931
|
];
|
|
9436
|
-
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9437
|
-
const createResourceParams$
|
|
9932
|
+
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getSemanticMetric_ConfigPropertyMetadata);
|
|
9933
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$g(getSemanticMetric_ConfigPropertyMetadata);
|
|
9438
9934
|
function keyBuilder$g(luvio, config) {
|
|
9439
|
-
const resourceParams = createResourceParams$
|
|
9935
|
+
const resourceParams = createResourceParams$a(config);
|
|
9440
9936
|
return keyBuilder$h(luvio, resourceParams);
|
|
9441
9937
|
}
|
|
9442
|
-
function typeCheckConfig$
|
|
9938
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
9443
9939
|
const config = {};
|
|
9444
|
-
typeCheckConfig$
|
|
9940
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
9445
9941
|
return config;
|
|
9446
9942
|
}
|
|
9447
|
-
function validateAdapterConfig$
|
|
9943
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
9448
9944
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9449
9945
|
return null;
|
|
9450
9946
|
}
|
|
9451
9947
|
if (process.env.NODE_ENV !== 'production') {
|
|
9452
9948
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9453
9949
|
}
|
|
9454
|
-
const config = typeCheckConfig$
|
|
9950
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
9455
9951
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9456
9952
|
return null;
|
|
9457
9953
|
}
|
|
9458
9954
|
return config;
|
|
9459
9955
|
}
|
|
9460
9956
|
function adapterFragment$8(luvio, config) {
|
|
9461
|
-
createResourceParams$
|
|
9462
|
-
return select$
|
|
9957
|
+
createResourceParams$a(config);
|
|
9958
|
+
return select$g();
|
|
9463
9959
|
}
|
|
9464
9960
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
9465
|
-
const snapshot = ingestSuccess$
|
|
9961
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
9466
9962
|
config,
|
|
9467
|
-
resolve: () => buildNetworkSnapshot$
|
|
9963
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
9468
9964
|
});
|
|
9469
9965
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9470
9966
|
}
|
|
9471
9967
|
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
9472
9968
|
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
9473
9969
|
config,
|
|
9474
|
-
resolve: () => buildNetworkSnapshot$
|
|
9970
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
9475
9971
|
});
|
|
9476
9972
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9477
9973
|
}
|
|
9478
|
-
function buildNetworkSnapshot$
|
|
9479
|
-
const resourceParams = createResourceParams$
|
|
9480
|
-
const request = createResourceRequest$
|
|
9974
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
9975
|
+
const resourceParams = createResourceParams$a(config);
|
|
9976
|
+
const request = createResourceRequest$a(resourceParams);
|
|
9481
9977
|
return luvio.dispatchResourceRequest(request, options)
|
|
9482
9978
|
.then((response) => {
|
|
9483
9979
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
9484
9980
|
const cache = new StoreKeyMap();
|
|
9485
|
-
getResponseCacheKeys$
|
|
9981
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
9486
9982
|
return cache;
|
|
9487
9983
|
});
|
|
9488
9984
|
}, (response) => {
|
|
@@ -9490,7 +9986,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
9490
9986
|
});
|
|
9491
9987
|
}
|
|
9492
9988
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
9493
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9989
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
9494
9990
|
}
|
|
9495
9991
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
9496
9992
|
const { luvio, config } = context;
|
|
@@ -9501,12 +9997,12 @@ function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
|
9501
9997
|
};
|
|
9502
9998
|
const cacheSnapshot = storeLookup(selector, {
|
|
9503
9999
|
config,
|
|
9504
|
-
resolve: () => buildNetworkSnapshot$
|
|
10000
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
9505
10001
|
});
|
|
9506
10002
|
return cacheSnapshot;
|
|
9507
10003
|
}
|
|
9508
10004
|
const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetric(untrustedConfig, requestContext) {
|
|
9509
|
-
const config = validateAdapterConfig$
|
|
10005
|
+
const config = validateAdapterConfig$a(untrustedConfig, getSemanticMetric_ConfigPropertyNames);
|
|
9510
10006
|
// Invalid or incomplete config
|
|
9511
10007
|
if (config === null) {
|
|
9512
10008
|
return null;
|
|
@@ -9516,7 +10012,7 @@ const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
9516
10012
|
};
|
|
9517
10013
|
const notifyChangeFactory$2 = (luvio, options) => {
|
|
9518
10014
|
return function getSsotSemanticModelsMetricsByMetricNameOrIdAndModelApiNameOrIdNotifyChange(configs) {
|
|
9519
|
-
const keys = configs.map(c => keyBuilder$
|
|
10015
|
+
const keys = configs.map(c => keyBuilder$p(luvio, c));
|
|
9520
10016
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
9521
10017
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
9522
10018
|
const { key, record: val } = entries[i];
|
|
@@ -9525,11 +10021,11 @@ const notifyChangeFactory$2 = (luvio, options) => {
|
|
|
9525
10021
|
.then((response) => {
|
|
9526
10022
|
return luvio.handleSuccessResponse(() => {
|
|
9527
10023
|
const { body } = response;
|
|
9528
|
-
luvio.storeIngest(key, ingest$
|
|
10024
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
9529
10025
|
return luvio.storeBroadcast();
|
|
9530
10026
|
}, () => {
|
|
9531
10027
|
const cache = new StoreKeyMap();
|
|
9532
|
-
getTypeCacheKeys$
|
|
10028
|
+
getTypeCacheKeys$9(cache, luvio, response.body);
|
|
9533
10029
|
return cache;
|
|
9534
10030
|
});
|
|
9535
10031
|
}, (error) => {
|
|
@@ -9575,7 +10071,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9575
10071
|
for (let i = 0; i < input_metrics.length; i++) {
|
|
9576
10072
|
const input_metrics_item = input_metrics[i];
|
|
9577
10073
|
let input_metrics_item_id = input_metrics_id + '__' + i;
|
|
9578
|
-
input_metrics[i] = ingest$
|
|
10074
|
+
input_metrics[i] = ingest$9(input_metrics_item, {
|
|
9579
10075
|
fullPath: input_metrics_item_id,
|
|
9580
10076
|
propertyName: i,
|
|
9581
10077
|
parent: {
|
|
@@ -9589,7 +10085,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9589
10085
|
}
|
|
9590
10086
|
return input;
|
|
9591
10087
|
}
|
|
9592
|
-
const select$
|
|
10088
|
+
const select$f = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
9593
10089
|
return {
|
|
9594
10090
|
kind: 'Fragment',
|
|
9595
10091
|
version: VERSION$5,
|
|
@@ -9600,7 +10096,7 @@ const select$e = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
|
9600
10096
|
kind: 'Link',
|
|
9601
10097
|
plural: true,
|
|
9602
10098
|
required: false,
|
|
9603
|
-
fragment: select$
|
|
10099
|
+
fragment: select$q()
|
|
9604
10100
|
}
|
|
9605
10101
|
]
|
|
9606
10102
|
};
|
|
@@ -9649,27 +10145,27 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9649
10145
|
if (input.metrics !== undefined) {
|
|
9650
10146
|
const input_metrics_length = input.metrics.length;
|
|
9651
10147
|
for (let i = 0; i < input_metrics_length; i++) {
|
|
9652
|
-
getTypeCacheKeys$
|
|
10148
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.metrics[i]);
|
|
9653
10149
|
}
|
|
9654
10150
|
}
|
|
9655
10151
|
}
|
|
9656
10152
|
|
|
9657
|
-
function select$
|
|
9658
|
-
return select$
|
|
10153
|
+
function select$e(luvio, params) {
|
|
10154
|
+
return select$f();
|
|
9659
10155
|
}
|
|
9660
10156
|
function keyBuilder$f(luvio, params) {
|
|
9661
10157
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
9662
10158
|
}
|
|
9663
|
-
function getResponseCacheKeys$
|
|
10159
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
9664
10160
|
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
|
|
9665
10161
|
}
|
|
9666
|
-
function ingestSuccess$
|
|
10162
|
+
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
9667
10163
|
const { body } = response;
|
|
9668
10164
|
const key = keyBuilder$f(luvio, resourceParams);
|
|
9669
10165
|
luvio.storeIngest(key, ingest$4, body);
|
|
9670
10166
|
const snapshot = luvio.storeLookup({
|
|
9671
10167
|
recordId: key,
|
|
9672
|
-
node: select$
|
|
10168
|
+
node: select$e(),
|
|
9673
10169
|
variables: {},
|
|
9674
10170
|
}, snapshotRefresh);
|
|
9675
10171
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9686,10 +10182,10 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
9686
10182
|
luvio.storeIngestError(key, errorSnapshot);
|
|
9687
10183
|
return errorSnapshot;
|
|
9688
10184
|
}
|
|
9689
|
-
function createResourceRequest$
|
|
10185
|
+
function createResourceRequest$9(config) {
|
|
9690
10186
|
const headers = {};
|
|
9691
10187
|
return {
|
|
9692
|
-
baseUri: '/services/data/
|
|
10188
|
+
baseUri: '/services/data/v64.0',
|
|
9693
10189
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metrics',
|
|
9694
10190
|
method: 'get',
|
|
9695
10191
|
body: null,
|
|
@@ -9700,60 +10196,60 @@ function createResourceRequest$8(config) {
|
|
|
9700
10196
|
};
|
|
9701
10197
|
}
|
|
9702
10198
|
|
|
9703
|
-
const adapterName$
|
|
10199
|
+
const adapterName$9 = 'getSemanticMetrics';
|
|
9704
10200
|
const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
9705
10201
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9706
10202
|
];
|
|
9707
|
-
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9708
|
-
const createResourceParams$
|
|
10203
|
+
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSemanticMetrics_ConfigPropertyMetadata);
|
|
10204
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$g(getSemanticMetrics_ConfigPropertyMetadata);
|
|
9709
10205
|
function keyBuilder$e(luvio, config) {
|
|
9710
|
-
const resourceParams = createResourceParams$
|
|
10206
|
+
const resourceParams = createResourceParams$9(config);
|
|
9711
10207
|
return keyBuilder$f(luvio, resourceParams);
|
|
9712
10208
|
}
|
|
9713
|
-
function typeCheckConfig$
|
|
10209
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
9714
10210
|
const config = {};
|
|
9715
|
-
typeCheckConfig$
|
|
10211
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
9716
10212
|
return config;
|
|
9717
10213
|
}
|
|
9718
|
-
function validateAdapterConfig$
|
|
10214
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
9719
10215
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9720
10216
|
return null;
|
|
9721
10217
|
}
|
|
9722
10218
|
if (process.env.NODE_ENV !== 'production') {
|
|
9723
10219
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9724
10220
|
}
|
|
9725
|
-
const config = typeCheckConfig$
|
|
10221
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
9726
10222
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9727
10223
|
return null;
|
|
9728
10224
|
}
|
|
9729
10225
|
return config;
|
|
9730
10226
|
}
|
|
9731
10227
|
function adapterFragment$7(luvio, config) {
|
|
9732
|
-
createResourceParams$
|
|
9733
|
-
return select$
|
|
10228
|
+
createResourceParams$9(config);
|
|
10229
|
+
return select$e();
|
|
9734
10230
|
}
|
|
9735
10231
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
9736
|
-
const snapshot = ingestSuccess$
|
|
10232
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
9737
10233
|
config,
|
|
9738
|
-
resolve: () => buildNetworkSnapshot$
|
|
10234
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
9739
10235
|
});
|
|
9740
10236
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9741
10237
|
}
|
|
9742
10238
|
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
9743
10239
|
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
9744
10240
|
config,
|
|
9745
|
-
resolve: () => buildNetworkSnapshot$
|
|
10241
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
9746
10242
|
});
|
|
9747
10243
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9748
10244
|
}
|
|
9749
|
-
function buildNetworkSnapshot$
|
|
9750
|
-
const resourceParams = createResourceParams$
|
|
9751
|
-
const request = createResourceRequest$
|
|
10245
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
10246
|
+
const resourceParams = createResourceParams$9(config);
|
|
10247
|
+
const request = createResourceRequest$9(resourceParams);
|
|
9752
10248
|
return luvio.dispatchResourceRequest(request, options)
|
|
9753
10249
|
.then((response) => {
|
|
9754
10250
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
9755
10251
|
const cache = new StoreKeyMap();
|
|
9756
|
-
getResponseCacheKeys$
|
|
10252
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
9757
10253
|
return cache;
|
|
9758
10254
|
});
|
|
9759
10255
|
}, (response) => {
|
|
@@ -9761,7 +10257,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
9761
10257
|
});
|
|
9762
10258
|
}
|
|
9763
10259
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
9764
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10260
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
9765
10261
|
}
|
|
9766
10262
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
9767
10263
|
const { luvio, config } = context;
|
|
@@ -9772,12 +10268,12 @@ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
|
9772
10268
|
};
|
|
9773
10269
|
const cacheSnapshot = storeLookup(selector, {
|
|
9774
10270
|
config,
|
|
9775
|
-
resolve: () => buildNetworkSnapshot$
|
|
10271
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
9776
10272
|
});
|
|
9777
10273
|
return cacheSnapshot;
|
|
9778
10274
|
}
|
|
9779
10275
|
const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetrics(untrustedConfig, requestContext) {
|
|
9780
|
-
const config = validateAdapterConfig$
|
|
10276
|
+
const config = validateAdapterConfig$9(untrustedConfig, getSemanticMetrics_ConfigPropertyNames);
|
|
9781
10277
|
// Invalid or incomplete config
|
|
9782
10278
|
if (config === null) {
|
|
9783
10279
|
return null;
|
|
@@ -9786,22 +10282,22 @@ const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__
|
|
|
9786
10282
|
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
9787
10283
|
};
|
|
9788
10284
|
|
|
9789
|
-
function select$
|
|
9790
|
-
return select$
|
|
10285
|
+
function select$d(luvio, params) {
|
|
10286
|
+
return select$f();
|
|
9791
10287
|
}
|
|
9792
10288
|
function keyBuilder$d(luvio, params) {
|
|
9793
|
-
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'metricIds:' + params.urlParams.metricIds + ')';
|
|
10289
|
+
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'metricIds:' + params.urlParams.metricIds + ')';
|
|
9794
10290
|
}
|
|
9795
|
-
function getResponseCacheKeys$
|
|
10291
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
9796
10292
|
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
|
|
9797
10293
|
}
|
|
9798
|
-
function ingestSuccess$
|
|
10294
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
9799
10295
|
const { body } = response;
|
|
9800
10296
|
const key = keyBuilder$d(luvio, resourceParams);
|
|
9801
10297
|
luvio.storeIngest(key, ingest$4, body);
|
|
9802
10298
|
const snapshot = luvio.storeLookup({
|
|
9803
10299
|
recordId: key,
|
|
9804
|
-
node: select$
|
|
10300
|
+
node: select$d(),
|
|
9805
10301
|
variables: {},
|
|
9806
10302
|
}, snapshotRefresh);
|
|
9807
10303
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9818,74 +10314,76 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
9818
10314
|
luvio.storeIngestError(key, errorSnapshot);
|
|
9819
10315
|
return errorSnapshot;
|
|
9820
10316
|
}
|
|
9821
|
-
function createResourceRequest$
|
|
10317
|
+
function createResourceRequest$8(config) {
|
|
9822
10318
|
const headers = {};
|
|
9823
10319
|
return {
|
|
9824
|
-
baseUri: '/services/data/
|
|
10320
|
+
baseUri: '/services/data/v64.0',
|
|
9825
10321
|
basePath: '/ssot/semantic/metrics/' + config.urlParams.metricIds + '',
|
|
9826
10322
|
method: 'get',
|
|
9827
10323
|
body: null,
|
|
9828
10324
|
urlParams: config.urlParams,
|
|
9829
|
-
queryParams:
|
|
10325
|
+
queryParams: config.queryParams,
|
|
9830
10326
|
headers,
|
|
9831
10327
|
priority: 'normal',
|
|
9832
10328
|
};
|
|
9833
10329
|
}
|
|
9834
10330
|
|
|
9835
|
-
const adapterName$
|
|
10331
|
+
const adapterName$8 = 'getSemanticMetricsByIds';
|
|
9836
10332
|
const getSemanticMetricsByIds_ConfigPropertyMetadata = [
|
|
9837
10333
|
generateParamConfigMetadata('metricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10334
|
+
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10335
|
+
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9838
10336
|
];
|
|
9839
|
-
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9840
|
-
const createResourceParams$
|
|
10337
|
+
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
10338
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$g(getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
9841
10339
|
function keyBuilder$c(luvio, config) {
|
|
9842
|
-
const resourceParams = createResourceParams$
|
|
10340
|
+
const resourceParams = createResourceParams$8(config);
|
|
9843
10341
|
return keyBuilder$d(luvio, resourceParams);
|
|
9844
10342
|
}
|
|
9845
|
-
function typeCheckConfig$
|
|
10343
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
9846
10344
|
const config = {};
|
|
9847
|
-
typeCheckConfig$
|
|
10345
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
9848
10346
|
return config;
|
|
9849
10347
|
}
|
|
9850
|
-
function validateAdapterConfig$
|
|
10348
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
9851
10349
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9852
10350
|
return null;
|
|
9853
10351
|
}
|
|
9854
10352
|
if (process.env.NODE_ENV !== 'production') {
|
|
9855
10353
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9856
10354
|
}
|
|
9857
|
-
const config = typeCheckConfig$
|
|
10355
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
9858
10356
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9859
10357
|
return null;
|
|
9860
10358
|
}
|
|
9861
10359
|
return config;
|
|
9862
10360
|
}
|
|
9863
10361
|
function adapterFragment$6(luvio, config) {
|
|
9864
|
-
createResourceParams$
|
|
9865
|
-
return select$
|
|
10362
|
+
createResourceParams$8(config);
|
|
10363
|
+
return select$d();
|
|
9866
10364
|
}
|
|
9867
10365
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
9868
|
-
const snapshot = ingestSuccess$
|
|
10366
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
9869
10367
|
config,
|
|
9870
|
-
resolve: () => buildNetworkSnapshot$
|
|
10368
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
9871
10369
|
});
|
|
9872
10370
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9873
10371
|
}
|
|
9874
10372
|
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
9875
10373
|
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
9876
10374
|
config,
|
|
9877
|
-
resolve: () => buildNetworkSnapshot$
|
|
10375
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
9878
10376
|
});
|
|
9879
10377
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9880
10378
|
}
|
|
9881
|
-
function buildNetworkSnapshot$
|
|
9882
|
-
const resourceParams = createResourceParams$
|
|
9883
|
-
const request = createResourceRequest$
|
|
10379
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
10380
|
+
const resourceParams = createResourceParams$8(config);
|
|
10381
|
+
const request = createResourceRequest$8(resourceParams);
|
|
9884
10382
|
return luvio.dispatchResourceRequest(request, options)
|
|
9885
10383
|
.then((response) => {
|
|
9886
10384
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
9887
10385
|
const cache = new StoreKeyMap();
|
|
9888
|
-
getResponseCacheKeys$
|
|
10386
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
9889
10387
|
return cache;
|
|
9890
10388
|
});
|
|
9891
10389
|
}, (response) => {
|
|
@@ -9893,7 +10391,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
9893
10391
|
});
|
|
9894
10392
|
}
|
|
9895
10393
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
9896
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10394
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
9897
10395
|
}
|
|
9898
10396
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
9899
10397
|
const { luvio, config } = context;
|
|
@@ -9904,12 +10402,12 @@ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
|
9904
10402
|
};
|
|
9905
10403
|
const cacheSnapshot = storeLookup(selector, {
|
|
9906
10404
|
config,
|
|
9907
|
-
resolve: () => buildNetworkSnapshot$
|
|
10405
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
9908
10406
|
});
|
|
9909
10407
|
return cacheSnapshot;
|
|
9910
10408
|
}
|
|
9911
10409
|
const getSemanticMetricsByIdsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsByIds(untrustedConfig, requestContext) {
|
|
9912
|
-
const config = validateAdapterConfig$
|
|
10410
|
+
const config = validateAdapterConfig$8(untrustedConfig, getSemanticMetricsByIds_ConfigPropertyNames);
|
|
9913
10411
|
// Invalid or incomplete config
|
|
9914
10412
|
if (config === null) {
|
|
9915
10413
|
return null;
|
|
@@ -9956,7 +10454,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
9956
10454
|
for (let i = 0; i < input_subMetrics.length; i++) {
|
|
9957
10455
|
const input_subMetrics_item = input_subMetrics[i];
|
|
9958
10456
|
let input_subMetrics_item_id = input_subMetrics_id + '__' + i;
|
|
9959
|
-
input_subMetrics[i] = ingest$
|
|
10457
|
+
input_subMetrics[i] = ingest$6(input_subMetrics_item, {
|
|
9960
10458
|
fullPath: input_subMetrics_item_id,
|
|
9961
10459
|
propertyName: i,
|
|
9962
10460
|
parent: {
|
|
@@ -9970,7 +10468,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
9970
10468
|
}
|
|
9971
10469
|
return input;
|
|
9972
10470
|
}
|
|
9973
|
-
const select$
|
|
10471
|
+
const select$c = function SemanticSubMetricsByMetricOutputRepresentationSelect() {
|
|
9974
10472
|
return {
|
|
9975
10473
|
kind: 'Fragment',
|
|
9976
10474
|
version: VERSION$4,
|
|
@@ -9986,7 +10484,7 @@ const select$b = function SemanticSubMetricsByMetricOutputRepresentationSelect()
|
|
|
9986
10484
|
kind: 'Link',
|
|
9987
10485
|
plural: true,
|
|
9988
10486
|
required: false,
|
|
9989
|
-
fragment: select$
|
|
10487
|
+
fragment: select$m()
|
|
9990
10488
|
}
|
|
9991
10489
|
]
|
|
9992
10490
|
};
|
|
@@ -10048,7 +10546,7 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10048
10546
|
if (input.subMetrics !== undefined) {
|
|
10049
10547
|
const input_subMetrics_length = input.subMetrics.length;
|
|
10050
10548
|
for (let i = 0; i < input_subMetrics_length; i++) {
|
|
10051
|
-
getTypeCacheKeys$
|
|
10549
|
+
getTypeCacheKeys$6(rootKeySet, luvio, input.subMetrics[i]);
|
|
10052
10550
|
}
|
|
10053
10551
|
}
|
|
10054
10552
|
}
|
|
@@ -10098,7 +10596,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
10098
10596
|
}
|
|
10099
10597
|
return input;
|
|
10100
10598
|
}
|
|
10101
|
-
const select$
|
|
10599
|
+
const select$b = function SemanticSubMetricsByMetricCollectionOutputRepresentationSelect() {
|
|
10102
10600
|
return {
|
|
10103
10601
|
kind: 'Fragment',
|
|
10104
10602
|
version: VERSION$3,
|
|
@@ -10109,7 +10607,7 @@ const select$a = function SemanticSubMetricsByMetricCollectionOutputRepresentati
|
|
|
10109
10607
|
kind: 'Link',
|
|
10110
10608
|
plural: true,
|
|
10111
10609
|
required: false,
|
|
10112
|
-
fragment: select$
|
|
10610
|
+
fragment: select$c()
|
|
10113
10611
|
}
|
|
10114
10612
|
]
|
|
10115
10613
|
};
|
|
@@ -10163,22 +10661,22 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10163
10661
|
}
|
|
10164
10662
|
}
|
|
10165
10663
|
|
|
10166
|
-
function select$
|
|
10167
|
-
return select$
|
|
10664
|
+
function select$a(luvio, params) {
|
|
10665
|
+
return select$b();
|
|
10168
10666
|
}
|
|
10169
10667
|
function keyBuilder$b(luvio, params) {
|
|
10170
10668
|
return keyPrefix + '::SemanticSubMetricsByMetricCollectionOutputRepresentation:(' + 'metricApiNames:' + params.urlParams.metricApiNames + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
10171
10669
|
}
|
|
10172
|
-
function getResponseCacheKeys$
|
|
10670
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
10173
10671
|
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
10174
10672
|
}
|
|
10175
|
-
function ingestSuccess$
|
|
10673
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
10176
10674
|
const { body } = response;
|
|
10177
10675
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
10178
10676
|
luvio.storeIngest(key, ingest$2, body);
|
|
10179
10677
|
const snapshot = luvio.storeLookup({
|
|
10180
10678
|
recordId: key,
|
|
10181
|
-
node: select$
|
|
10679
|
+
node: select$a(),
|
|
10182
10680
|
variables: {},
|
|
10183
10681
|
}, snapshotRefresh);
|
|
10184
10682
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10195,10 +10693,10 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
10195
10693
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10196
10694
|
return errorSnapshot;
|
|
10197
10695
|
}
|
|
10198
|
-
function createResourceRequest$
|
|
10696
|
+
function createResourceRequest$7(config) {
|
|
10199
10697
|
const headers = {};
|
|
10200
10698
|
return {
|
|
10201
|
-
baseUri: '/services/data/
|
|
10699
|
+
baseUri: '/services/data/v64.0',
|
|
10202
10700
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metric-api-names/' + config.urlParams.metricApiNames + '/sub-metrics',
|
|
10203
10701
|
method: 'get',
|
|
10204
10702
|
body: null,
|
|
@@ -10209,61 +10707,61 @@ function createResourceRequest$6(config) {
|
|
|
10209
10707
|
};
|
|
10210
10708
|
}
|
|
10211
10709
|
|
|
10212
|
-
const adapterName$
|
|
10710
|
+
const adapterName$7 = 'getSemanticMetricsToSubMetrics';
|
|
10213
10711
|
const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
10214
10712
|
generateParamConfigMetadata('metricApiNames', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10215
10713
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10216
10714
|
];
|
|
10217
|
-
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10218
|
-
const createResourceParams$
|
|
10715
|
+
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10716
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$g(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10219
10717
|
function keyBuilder$a(luvio, config) {
|
|
10220
|
-
const resourceParams = createResourceParams$
|
|
10718
|
+
const resourceParams = createResourceParams$7(config);
|
|
10221
10719
|
return keyBuilder$b(luvio, resourceParams);
|
|
10222
10720
|
}
|
|
10223
|
-
function typeCheckConfig$
|
|
10721
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
10224
10722
|
const config = {};
|
|
10225
|
-
typeCheckConfig$
|
|
10723
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10226
10724
|
return config;
|
|
10227
10725
|
}
|
|
10228
|
-
function validateAdapterConfig$
|
|
10726
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
10229
10727
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10230
10728
|
return null;
|
|
10231
10729
|
}
|
|
10232
10730
|
if (process.env.NODE_ENV !== 'production') {
|
|
10233
10731
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10234
10732
|
}
|
|
10235
|
-
const config = typeCheckConfig$
|
|
10733
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
10236
10734
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10237
10735
|
return null;
|
|
10238
10736
|
}
|
|
10239
10737
|
return config;
|
|
10240
10738
|
}
|
|
10241
10739
|
function adapterFragment$5(luvio, config) {
|
|
10242
|
-
createResourceParams$
|
|
10243
|
-
return select$
|
|
10740
|
+
createResourceParams$7(config);
|
|
10741
|
+
return select$a();
|
|
10244
10742
|
}
|
|
10245
10743
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
10246
|
-
const snapshot = ingestSuccess$
|
|
10744
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
10247
10745
|
config,
|
|
10248
|
-
resolve: () => buildNetworkSnapshot$
|
|
10746
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
10249
10747
|
});
|
|
10250
10748
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10251
10749
|
}
|
|
10252
10750
|
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
10253
10751
|
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
10254
10752
|
config,
|
|
10255
|
-
resolve: () => buildNetworkSnapshot$
|
|
10753
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
10256
10754
|
});
|
|
10257
10755
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10258
10756
|
}
|
|
10259
|
-
function buildNetworkSnapshot$
|
|
10260
|
-
const resourceParams = createResourceParams$
|
|
10261
|
-
const request = createResourceRequest$
|
|
10757
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
10758
|
+
const resourceParams = createResourceParams$7(config);
|
|
10759
|
+
const request = createResourceRequest$7(resourceParams);
|
|
10262
10760
|
return luvio.dispatchResourceRequest(request, options)
|
|
10263
10761
|
.then((response) => {
|
|
10264
10762
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
10265
10763
|
const cache = new StoreKeyMap();
|
|
10266
|
-
getResponseCacheKeys$
|
|
10764
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
10267
10765
|
return cache;
|
|
10268
10766
|
});
|
|
10269
10767
|
}, (response) => {
|
|
@@ -10271,7 +10769,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
10271
10769
|
});
|
|
10272
10770
|
}
|
|
10273
10771
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
10274
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10772
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
10275
10773
|
}
|
|
10276
10774
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
10277
10775
|
const { luvio, config } = context;
|
|
@@ -10282,12 +10780,12 @@ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
|
10282
10780
|
};
|
|
10283
10781
|
const cacheSnapshot = storeLookup(selector, {
|
|
10284
10782
|
config,
|
|
10285
|
-
resolve: () => buildNetworkSnapshot$
|
|
10783
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
10286
10784
|
});
|
|
10287
10785
|
return cacheSnapshot;
|
|
10288
10786
|
}
|
|
10289
10787
|
const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsToSubMetrics(untrustedConfig, requestContext) {
|
|
10290
|
-
const config = validateAdapterConfig$
|
|
10788
|
+
const config = validateAdapterConfig$7(untrustedConfig, getSemanticMetricsToSubMetrics_ConfigPropertyNames);
|
|
10291
10789
|
// Invalid or incomplete config
|
|
10292
10790
|
if (config === null) {
|
|
10293
10791
|
return null;
|
|
@@ -10296,24 +10794,24 @@ const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function Semanti
|
|
|
10296
10794
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
10297
10795
|
};
|
|
10298
10796
|
|
|
10299
|
-
function select$
|
|
10300
|
-
return select$
|
|
10797
|
+
function select$9(luvio, params) {
|
|
10798
|
+
return select$o();
|
|
10301
10799
|
}
|
|
10302
10800
|
function keyBuilder$9(luvio, params) {
|
|
10303
|
-
return keyBuilder$
|
|
10801
|
+
return keyBuilder$n(luvio, {
|
|
10304
10802
|
name: params.urlParams.modelApiNameOrId
|
|
10305
10803
|
});
|
|
10306
10804
|
}
|
|
10307
|
-
function getResponseCacheKeys$
|
|
10308
|
-
getTypeCacheKeys$
|
|
10805
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
10806
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
10309
10807
|
}
|
|
10310
|
-
function ingestSuccess$
|
|
10808
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
10311
10809
|
const { body } = response;
|
|
10312
10810
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
10313
|
-
luvio.storeIngest(key, ingest$
|
|
10811
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
10314
10812
|
const snapshot = luvio.storeLookup({
|
|
10315
10813
|
recordId: key,
|
|
10316
|
-
node: select$
|
|
10814
|
+
node: select$9(),
|
|
10317
10815
|
variables: {},
|
|
10318
10816
|
}, snapshotRefresh);
|
|
10319
10817
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10330,10 +10828,10 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
10330
10828
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10331
10829
|
return errorSnapshot;
|
|
10332
10830
|
}
|
|
10333
|
-
function createResourceRequest$
|
|
10831
|
+
function createResourceRequest$6(config) {
|
|
10334
10832
|
const headers = {};
|
|
10335
10833
|
return {
|
|
10336
|
-
baseUri: '/services/data/
|
|
10834
|
+
baseUri: '/services/data/v64.0',
|
|
10337
10835
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '',
|
|
10338
10836
|
method: 'get',
|
|
10339
10837
|
body: null,
|
|
@@ -10349,66 +10847,66 @@ function createResourceRequestFromRepresentation$1(representation) {
|
|
|
10349
10847
|
queryParams: {},
|
|
10350
10848
|
};
|
|
10351
10849
|
config.urlParams.modelApiNameOrId = representation.id;
|
|
10352
|
-
return createResourceRequest$
|
|
10850
|
+
return createResourceRequest$6(config);
|
|
10353
10851
|
}
|
|
10354
10852
|
|
|
10355
|
-
const adapterName$
|
|
10853
|
+
const adapterName$6 = 'getSemanticModel';
|
|
10356
10854
|
const getSemanticModel_ConfigPropertyMetadata = [
|
|
10357
10855
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10358
10856
|
generateParamConfigMetadata('fieldName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10359
10857
|
generateParamConfigMetadata('includeModelContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10360
10858
|
generateParamConfigMetadata('includeTableKeys', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10361
10859
|
];
|
|
10362
|
-
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10363
|
-
const createResourceParams$
|
|
10860
|
+
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticModel_ConfigPropertyMetadata);
|
|
10861
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$g(getSemanticModel_ConfigPropertyMetadata);
|
|
10364
10862
|
function keyBuilder$8(luvio, config) {
|
|
10365
|
-
const resourceParams = createResourceParams$
|
|
10863
|
+
const resourceParams = createResourceParams$6(config);
|
|
10366
10864
|
return keyBuilder$9(luvio, resourceParams);
|
|
10367
10865
|
}
|
|
10368
|
-
function typeCheckConfig$
|
|
10866
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
10369
10867
|
const config = {};
|
|
10370
|
-
typeCheckConfig$
|
|
10868
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
10371
10869
|
return config;
|
|
10372
10870
|
}
|
|
10373
|
-
function validateAdapterConfig$
|
|
10871
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
10374
10872
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10375
10873
|
return null;
|
|
10376
10874
|
}
|
|
10377
10875
|
if (process.env.NODE_ENV !== 'production') {
|
|
10378
10876
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10379
10877
|
}
|
|
10380
|
-
const config = typeCheckConfig$
|
|
10878
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
10381
10879
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10382
10880
|
return null;
|
|
10383
10881
|
}
|
|
10384
10882
|
return config;
|
|
10385
10883
|
}
|
|
10386
10884
|
function adapterFragment$4(luvio, config) {
|
|
10387
|
-
createResourceParams$
|
|
10388
|
-
return select$
|
|
10885
|
+
createResourceParams$6(config);
|
|
10886
|
+
return select$9();
|
|
10389
10887
|
}
|
|
10390
10888
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
10391
|
-
const snapshot = ingestSuccess$
|
|
10889
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
10392
10890
|
config,
|
|
10393
|
-
resolve: () => buildNetworkSnapshot$
|
|
10891
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
10394
10892
|
});
|
|
10395
10893
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10396
10894
|
}
|
|
10397
10895
|
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
10398
10896
|
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
10399
10897
|
config,
|
|
10400
|
-
resolve: () => buildNetworkSnapshot$
|
|
10898
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
10401
10899
|
});
|
|
10402
10900
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10403
10901
|
}
|
|
10404
|
-
function buildNetworkSnapshot$
|
|
10405
|
-
const resourceParams = createResourceParams$
|
|
10406
|
-
const request = createResourceRequest$
|
|
10902
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
10903
|
+
const resourceParams = createResourceParams$6(config);
|
|
10904
|
+
const request = createResourceRequest$6(resourceParams);
|
|
10407
10905
|
return luvio.dispatchResourceRequest(request, options)
|
|
10408
10906
|
.then((response) => {
|
|
10409
10907
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
10410
10908
|
const cache = new StoreKeyMap();
|
|
10411
|
-
getResponseCacheKeys$
|
|
10909
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
10412
10910
|
return cache;
|
|
10413
10911
|
});
|
|
10414
10912
|
}, (response) => {
|
|
@@ -10416,7 +10914,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
10416
10914
|
});
|
|
10417
10915
|
}
|
|
10418
10916
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
10419
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10917
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
10420
10918
|
}
|
|
10421
10919
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
10422
10920
|
const { luvio, config } = context;
|
|
@@ -10427,12 +10925,12 @@ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
|
10427
10925
|
};
|
|
10428
10926
|
const cacheSnapshot = storeLookup(selector, {
|
|
10429
10927
|
config,
|
|
10430
|
-
resolve: () => buildNetworkSnapshot$
|
|
10928
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
10431
10929
|
});
|
|
10432
10930
|
return cacheSnapshot;
|
|
10433
10931
|
}
|
|
10434
10932
|
const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModel(untrustedConfig, requestContext) {
|
|
10435
|
-
const config = validateAdapterConfig$
|
|
10933
|
+
const config = validateAdapterConfig$6(untrustedConfig, getSemanticModel_ConfigPropertyNames);
|
|
10436
10934
|
// Invalid or incomplete config
|
|
10437
10935
|
if (config === null) {
|
|
10438
10936
|
return null;
|
|
@@ -10442,7 +10940,7 @@ const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__ge
|
|
|
10442
10940
|
};
|
|
10443
10941
|
const notifyChangeFactory$1 = (luvio, options) => {
|
|
10444
10942
|
return function getSsotSemanticModelsByModelApiNameOrIdNotifyChange(configs) {
|
|
10445
|
-
const keys = configs.map(c => keyBuilder$
|
|
10943
|
+
const keys = configs.map(c => keyBuilder$n(luvio, c));
|
|
10446
10944
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
10447
10945
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
10448
10946
|
const { key, record: val } = entries[i];
|
|
@@ -10451,11 +10949,11 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
10451
10949
|
.then((response) => {
|
|
10452
10950
|
return luvio.handleSuccessResponse(() => {
|
|
10453
10951
|
const { body } = response;
|
|
10454
|
-
luvio.storeIngest(key, ingest$
|
|
10952
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
10455
10953
|
return luvio.storeBroadcast();
|
|
10456
10954
|
}, () => {
|
|
10457
10955
|
const cache = new StoreKeyMap();
|
|
10458
|
-
getTypeCacheKeys$
|
|
10956
|
+
getTypeCacheKeys$7(cache, luvio, response.body);
|
|
10459
10957
|
return cache;
|
|
10460
10958
|
});
|
|
10461
10959
|
}, (error) => {
|
|
@@ -10675,8 +11173,8 @@ function validate$2(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
10675
11173
|
})();
|
|
10676
11174
|
return v_error === undefined ? null : v_error;
|
|
10677
11175
|
}
|
|
10678
|
-
const select$
|
|
10679
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
11176
|
+
const select$8 = function SemanticModelPartialOutputRepresentationSelect() {
|
|
11177
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$K();
|
|
10680
11178
|
return {
|
|
10681
11179
|
kind: 'Fragment',
|
|
10682
11180
|
version: VERSION$2,
|
|
@@ -11047,7 +11545,7 @@ function equals$2(existing, incoming) {
|
|
|
11047
11545
|
return false;
|
|
11048
11546
|
}
|
|
11049
11547
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
11050
|
-
if (!(equals$
|
|
11548
|
+
if (!(equals$w(existing_baseModels_item, incoming_baseModels_item))) {
|
|
11051
11549
|
return false;
|
|
11052
11550
|
}
|
|
11053
11551
|
});
|
|
@@ -11213,8 +11711,8 @@ const RepresentationType$1 = 'SemanticModelCollectionOutputRepresentation';
|
|
|
11213
11711
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
11214
11712
|
return input;
|
|
11215
11713
|
}
|
|
11216
|
-
const select$
|
|
11217
|
-
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$
|
|
11714
|
+
const select$7 = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
11715
|
+
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$8();
|
|
11218
11716
|
return {
|
|
11219
11717
|
kind: 'Fragment',
|
|
11220
11718
|
version: VERSION$1,
|
|
@@ -11345,22 +11843,22 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
11345
11843
|
});
|
|
11346
11844
|
}
|
|
11347
11845
|
|
|
11348
|
-
function select$
|
|
11349
|
-
return select$
|
|
11846
|
+
function select$6(luvio, params) {
|
|
11847
|
+
return select$7();
|
|
11350
11848
|
}
|
|
11351
11849
|
function keyBuilder$7(luvio, params) {
|
|
11352
11850
|
return keyPrefix + '::SemanticModelCollectionOutputRepresentation:(' + 'app:' + params.queryParams.app + ',' + 'category:' + params.queryParams.category + ',' + 'dataspace:' + params.queryParams.dataspace + ',' + 'label:' + params.queryParams.label + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'sourceCreation:' + params.queryParams.sourceCreation + ',' + 'sourceCreationName:' + params.queryParams.sourceCreationName + ')';
|
|
11353
11851
|
}
|
|
11354
|
-
function getResponseCacheKeys$
|
|
11852
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
11355
11853
|
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
11356
11854
|
}
|
|
11357
|
-
function ingestSuccess$
|
|
11855
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
11358
11856
|
const { body } = response;
|
|
11359
11857
|
const key = keyBuilder$7(luvio, resourceParams);
|
|
11360
11858
|
luvio.storeIngest(key, ingest$1, body);
|
|
11361
11859
|
const snapshot = luvio.storeLookup({
|
|
11362
11860
|
recordId: key,
|
|
11363
|
-
node: select$
|
|
11861
|
+
node: select$6(),
|
|
11364
11862
|
variables: {},
|
|
11365
11863
|
}, snapshotRefresh);
|
|
11366
11864
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11377,10 +11875,10 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
11377
11875
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11378
11876
|
return errorSnapshot;
|
|
11379
11877
|
}
|
|
11380
|
-
function createResourceRequest$
|
|
11878
|
+
function createResourceRequest$5(config) {
|
|
11381
11879
|
const headers = {};
|
|
11382
11880
|
return {
|
|
11383
|
-
baseUri: '/services/data/
|
|
11881
|
+
baseUri: '/services/data/v64.0',
|
|
11384
11882
|
basePath: '/ssot/semantic/models',
|
|
11385
11883
|
method: 'get',
|
|
11386
11884
|
body: null,
|
|
@@ -11391,7 +11889,7 @@ function createResourceRequest$4(config) {
|
|
|
11391
11889
|
};
|
|
11392
11890
|
}
|
|
11393
11891
|
|
|
11394
|
-
const adapterName$
|
|
11892
|
+
const adapterName$5 = 'getSemanticModels';
|
|
11395
11893
|
const getSemanticModels_ConfigPropertyMetadata = [
|
|
11396
11894
|
generateParamConfigMetadata('app', false, 1 /* QueryParameter */, 0 /* String */),
|
|
11397
11895
|
generateParamConfigMetadata('category', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -11403,56 +11901,56 @@ const getSemanticModels_ConfigPropertyMetadata = [
|
|
|
11403
11901
|
generateParamConfigMetadata('sourceCreation', false, 1 /* QueryParameter */, 0 /* String */),
|
|
11404
11902
|
generateParamConfigMetadata('sourceCreationName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
11405
11903
|
];
|
|
11406
|
-
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11407
|
-
const createResourceParams$
|
|
11904
|
+
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSemanticModels_ConfigPropertyMetadata);
|
|
11905
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$g(getSemanticModels_ConfigPropertyMetadata);
|
|
11408
11906
|
function keyBuilder$6(luvio, config) {
|
|
11409
|
-
const resourceParams = createResourceParams$
|
|
11907
|
+
const resourceParams = createResourceParams$5(config);
|
|
11410
11908
|
return keyBuilder$7(luvio, resourceParams);
|
|
11411
11909
|
}
|
|
11412
|
-
function typeCheckConfig$
|
|
11910
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
11413
11911
|
const config = {};
|
|
11414
|
-
typeCheckConfig$
|
|
11912
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
|
|
11415
11913
|
return config;
|
|
11416
11914
|
}
|
|
11417
|
-
function validateAdapterConfig$
|
|
11915
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
11418
11916
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11419
11917
|
return null;
|
|
11420
11918
|
}
|
|
11421
11919
|
if (process.env.NODE_ENV !== 'production') {
|
|
11422
11920
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11423
11921
|
}
|
|
11424
|
-
const config = typeCheckConfig$
|
|
11922
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
11425
11923
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11426
11924
|
return null;
|
|
11427
11925
|
}
|
|
11428
11926
|
return config;
|
|
11429
11927
|
}
|
|
11430
11928
|
function adapterFragment$3(luvio, config) {
|
|
11431
|
-
createResourceParams$
|
|
11432
|
-
return select$
|
|
11929
|
+
createResourceParams$5(config);
|
|
11930
|
+
return select$6();
|
|
11433
11931
|
}
|
|
11434
11932
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
11435
|
-
const snapshot = ingestSuccess$
|
|
11933
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
11436
11934
|
config,
|
|
11437
|
-
resolve: () => buildNetworkSnapshot$
|
|
11935
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
11438
11936
|
});
|
|
11439
11937
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11440
11938
|
}
|
|
11441
11939
|
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
11442
11940
|
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
11443
11941
|
config,
|
|
11444
|
-
resolve: () => buildNetworkSnapshot$
|
|
11942
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
11445
11943
|
});
|
|
11446
11944
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11447
11945
|
}
|
|
11448
|
-
function buildNetworkSnapshot$
|
|
11449
|
-
const resourceParams = createResourceParams$
|
|
11450
|
-
const request = createResourceRequest$
|
|
11946
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
11947
|
+
const resourceParams = createResourceParams$5(config);
|
|
11948
|
+
const request = createResourceRequest$5(resourceParams);
|
|
11451
11949
|
return luvio.dispatchResourceRequest(request, options)
|
|
11452
11950
|
.then((response) => {
|
|
11453
11951
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
11454
11952
|
const cache = new StoreKeyMap();
|
|
11455
|
-
getResponseCacheKeys$
|
|
11953
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
11456
11954
|
return cache;
|
|
11457
11955
|
});
|
|
11458
11956
|
}, (response) => {
|
|
@@ -11460,7 +11958,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
11460
11958
|
});
|
|
11461
11959
|
}
|
|
11462
11960
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
11463
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11961
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
11464
11962
|
}
|
|
11465
11963
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
11466
11964
|
const { luvio, config } = context;
|
|
@@ -11471,12 +11969,12 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
|
11471
11969
|
};
|
|
11472
11970
|
const cacheSnapshot = storeLookup(selector, {
|
|
11473
11971
|
config,
|
|
11474
|
-
resolve: () => buildNetworkSnapshot$
|
|
11972
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
11475
11973
|
});
|
|
11476
11974
|
return cacheSnapshot;
|
|
11477
11975
|
}
|
|
11478
11976
|
const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModels(untrustedConfig, requestContext) {
|
|
11479
|
-
const config = validateAdapterConfig$
|
|
11977
|
+
const config = validateAdapterConfig$5(untrustedConfig, getSemanticModels_ConfigPropertyNames);
|
|
11480
11978
|
// Invalid or incomplete config
|
|
11481
11979
|
if (config === null) {
|
|
11482
11980
|
return null;
|
|
@@ -11485,24 +11983,24 @@ const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
11485
11983
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
11486
11984
|
};
|
|
11487
11985
|
|
|
11488
|
-
function select$
|
|
11489
|
-
return select$
|
|
11986
|
+
function select$5(luvio, params) {
|
|
11987
|
+
return select$m();
|
|
11490
11988
|
}
|
|
11491
11989
|
function keyBuilder$5(luvio, params) {
|
|
11492
|
-
return keyBuilder$
|
|
11990
|
+
return keyBuilder$m(luvio, {
|
|
11493
11991
|
name: params.urlParams.subMetricNameOrId
|
|
11494
11992
|
});
|
|
11495
11993
|
}
|
|
11496
|
-
function getResponseCacheKeys$
|
|
11497
|
-
getTypeCacheKeys$
|
|
11994
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
11995
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
11498
11996
|
}
|
|
11499
|
-
function ingestSuccess$
|
|
11997
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
11500
11998
|
const { body } = response;
|
|
11501
11999
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
11502
|
-
luvio.storeIngest(key, ingest$
|
|
12000
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
11503
12001
|
const snapshot = luvio.storeLookup({
|
|
11504
12002
|
recordId: key,
|
|
11505
|
-
node: select$
|
|
12003
|
+
node: select$5(),
|
|
11506
12004
|
variables: {},
|
|
11507
12005
|
}, snapshotRefresh);
|
|
11508
12006
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11519,10 +12017,10 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
11519
12017
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11520
12018
|
return errorSnapshot;
|
|
11521
12019
|
}
|
|
11522
|
-
function createResourceRequest$
|
|
12020
|
+
function createResourceRequest$4(config) {
|
|
11523
12021
|
const headers = {};
|
|
11524
12022
|
return {
|
|
11525
|
-
baseUri: '/services/data/
|
|
12023
|
+
baseUri: '/services/data/v64.0',
|
|
11526
12024
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '',
|
|
11527
12025
|
method: 'get',
|
|
11528
12026
|
body: null,
|
|
@@ -11537,64 +12035,64 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
11537
12035
|
urlParams: {},
|
|
11538
12036
|
};
|
|
11539
12037
|
config.urlParams.subMetricNameOrId = representation.id;
|
|
11540
|
-
return createResourceRequest$
|
|
12038
|
+
return createResourceRequest$4(config);
|
|
11541
12039
|
}
|
|
11542
12040
|
|
|
11543
|
-
const adapterName$
|
|
12041
|
+
const adapterName$4 = 'getSemanticSubMetric';
|
|
11544
12042
|
const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
11545
12043
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11546
12044
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11547
12045
|
];
|
|
11548
|
-
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11549
|
-
const createResourceParams$
|
|
12046
|
+
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
12047
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11550
12048
|
function keyBuilder$4(luvio, config) {
|
|
11551
|
-
const resourceParams = createResourceParams$
|
|
12049
|
+
const resourceParams = createResourceParams$4(config);
|
|
11552
12050
|
return keyBuilder$5(luvio, resourceParams);
|
|
11553
12051
|
}
|
|
11554
|
-
function typeCheckConfig$
|
|
12052
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
11555
12053
|
const config = {};
|
|
11556
|
-
typeCheckConfig$
|
|
12054
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11557
12055
|
return config;
|
|
11558
12056
|
}
|
|
11559
|
-
function validateAdapterConfig$
|
|
12057
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
11560
12058
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11561
12059
|
return null;
|
|
11562
12060
|
}
|
|
11563
12061
|
if (process.env.NODE_ENV !== 'production') {
|
|
11564
12062
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11565
12063
|
}
|
|
11566
|
-
const config = typeCheckConfig$
|
|
12064
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
11567
12065
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11568
12066
|
return null;
|
|
11569
12067
|
}
|
|
11570
12068
|
return config;
|
|
11571
12069
|
}
|
|
11572
12070
|
function adapterFragment$2(luvio, config) {
|
|
11573
|
-
createResourceParams$
|
|
11574
|
-
return select$
|
|
12071
|
+
createResourceParams$4(config);
|
|
12072
|
+
return select$5();
|
|
11575
12073
|
}
|
|
11576
12074
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
11577
|
-
const snapshot = ingestSuccess$
|
|
12075
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
11578
12076
|
config,
|
|
11579
|
-
resolve: () => buildNetworkSnapshot$
|
|
12077
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
11580
12078
|
});
|
|
11581
12079
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11582
12080
|
}
|
|
11583
12081
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
11584
12082
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
11585
12083
|
config,
|
|
11586
|
-
resolve: () => buildNetworkSnapshot$
|
|
12084
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
11587
12085
|
});
|
|
11588
12086
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11589
12087
|
}
|
|
11590
|
-
function buildNetworkSnapshot$
|
|
11591
|
-
const resourceParams = createResourceParams$
|
|
11592
|
-
const request = createResourceRequest$
|
|
12088
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
12089
|
+
const resourceParams = createResourceParams$4(config);
|
|
12090
|
+
const request = createResourceRequest$4(resourceParams);
|
|
11593
12091
|
return luvio.dispatchResourceRequest(request, options)
|
|
11594
12092
|
.then((response) => {
|
|
11595
12093
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
11596
12094
|
const cache = new StoreKeyMap();
|
|
11597
|
-
getResponseCacheKeys$
|
|
12095
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
11598
12096
|
return cache;
|
|
11599
12097
|
});
|
|
11600
12098
|
}, (response) => {
|
|
@@ -11602,7 +12100,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
11602
12100
|
});
|
|
11603
12101
|
}
|
|
11604
12102
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
11605
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12103
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
11606
12104
|
}
|
|
11607
12105
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
11608
12106
|
const { luvio, config } = context;
|
|
@@ -11613,12 +12111,12 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
|
11613
12111
|
};
|
|
11614
12112
|
const cacheSnapshot = storeLookup(selector, {
|
|
11615
12113
|
config,
|
|
11616
|
-
resolve: () => buildNetworkSnapshot$
|
|
12114
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
11617
12115
|
});
|
|
11618
12116
|
return cacheSnapshot;
|
|
11619
12117
|
}
|
|
11620
12118
|
const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetric(untrustedConfig, requestContext) {
|
|
11621
|
-
const config = validateAdapterConfig$
|
|
12119
|
+
const config = validateAdapterConfig$4(untrustedConfig, getSemanticSubMetric_ConfigPropertyNames);
|
|
11622
12120
|
// Invalid or incomplete config
|
|
11623
12121
|
if (config === null) {
|
|
11624
12122
|
return null;
|
|
@@ -11628,7 +12126,7 @@ const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring
|
|
|
11628
12126
|
};
|
|
11629
12127
|
const notifyChangeFactory = (luvio, options) => {
|
|
11630
12128
|
return function getSsotSemanticModelsSubMetricsByModelApiNameOrIdAndSubMetricNameOrIdNotifyChange(configs) {
|
|
11631
|
-
const keys = configs.map(c => keyBuilder$
|
|
12129
|
+
const keys = configs.map(c => keyBuilder$m(luvio, c));
|
|
11632
12130
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
11633
12131
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
11634
12132
|
const { key, record: val } = entries[i];
|
|
@@ -11637,11 +12135,11 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
11637
12135
|
.then((response) => {
|
|
11638
12136
|
return luvio.handleSuccessResponse(() => {
|
|
11639
12137
|
const { body } = response;
|
|
11640
|
-
luvio.storeIngest(key, ingest$
|
|
12138
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
11641
12139
|
return luvio.storeBroadcast();
|
|
11642
12140
|
}, () => {
|
|
11643
12141
|
const cache = new StoreKeyMap();
|
|
11644
|
-
getTypeCacheKeys$
|
|
12142
|
+
getTypeCacheKeys$6(cache, luvio, response.body);
|
|
11645
12143
|
return cache;
|
|
11646
12144
|
});
|
|
11647
12145
|
}, (error) => {
|
|
@@ -11687,7 +12185,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
11687
12185
|
for (let i = 0; i < input_items.length; i++) {
|
|
11688
12186
|
const input_items_item = input_items[i];
|
|
11689
12187
|
let input_items_item_id = input_items_id + '__' + i;
|
|
11690
|
-
input_items[i] = ingest$
|
|
12188
|
+
input_items[i] = ingest$6(input_items_item, {
|
|
11691
12189
|
fullPath: input_items_item_id,
|
|
11692
12190
|
propertyName: i,
|
|
11693
12191
|
parent: {
|
|
@@ -11701,7 +12199,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
11701
12199
|
}
|
|
11702
12200
|
return input;
|
|
11703
12201
|
}
|
|
11704
|
-
const select$
|
|
12202
|
+
const select$4 = function SemanticSubMetricCollectionOutputRepresentationSelect() {
|
|
11705
12203
|
return {
|
|
11706
12204
|
kind: 'Fragment',
|
|
11707
12205
|
version: VERSION,
|
|
@@ -11712,7 +12210,7 @@ const select$3 = function SemanticSubMetricCollectionOutputRepresentationSelect(
|
|
|
11712
12210
|
kind: 'Link',
|
|
11713
12211
|
plural: true,
|
|
11714
12212
|
required: false,
|
|
11715
|
-
fragment: select$
|
|
12213
|
+
fragment: select$m()
|
|
11716
12214
|
}
|
|
11717
12215
|
]
|
|
11718
12216
|
};
|
|
@@ -11761,27 +12259,27 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
11761
12259
|
if (input.items !== undefined) {
|
|
11762
12260
|
const input_items_length = input.items.length;
|
|
11763
12261
|
for (let i = 0; i < input_items_length; i++) {
|
|
11764
|
-
getTypeCacheKeys$
|
|
12262
|
+
getTypeCacheKeys$6(rootKeySet, luvio, input.items[i]);
|
|
11765
12263
|
}
|
|
11766
12264
|
}
|
|
11767
12265
|
}
|
|
11768
12266
|
|
|
11769
|
-
function select$
|
|
11770
|
-
return select$
|
|
12267
|
+
function select$3(luvio, params) {
|
|
12268
|
+
return select$4();
|
|
11771
12269
|
}
|
|
11772
12270
|
function keyBuilder$3(luvio, params) {
|
|
11773
12271
|
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11774
12272
|
}
|
|
11775
|
-
function getResponseCacheKeys$
|
|
12273
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
11776
12274
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
11777
12275
|
}
|
|
11778
|
-
function ingestSuccess$
|
|
12276
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
11779
12277
|
const { body } = response;
|
|
11780
12278
|
const key = keyBuilder$3(luvio, resourceParams);
|
|
11781
12279
|
luvio.storeIngest(key, ingest, body);
|
|
11782
12280
|
const snapshot = luvio.storeLookup({
|
|
11783
12281
|
recordId: key,
|
|
11784
|
-
node: select$
|
|
12282
|
+
node: select$3(),
|
|
11785
12283
|
variables: {},
|
|
11786
12284
|
}, snapshotRefresh);
|
|
11787
12285
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11798,10 +12296,10 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
11798
12296
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11799
12297
|
return errorSnapshot;
|
|
11800
12298
|
}
|
|
11801
|
-
function createResourceRequest$
|
|
12299
|
+
function createResourceRequest$3(config) {
|
|
11802
12300
|
const headers = {};
|
|
11803
12301
|
return {
|
|
11804
|
-
baseUri: '/services/data/
|
|
12302
|
+
baseUri: '/services/data/v64.0',
|
|
11805
12303
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics',
|
|
11806
12304
|
method: 'get',
|
|
11807
12305
|
body: null,
|
|
@@ -11812,60 +12310,60 @@ function createResourceRequest$2(config) {
|
|
|
11812
12310
|
};
|
|
11813
12311
|
}
|
|
11814
12312
|
|
|
11815
|
-
const adapterName$
|
|
12313
|
+
const adapterName$3 = 'getSemanticSubMetrics';
|
|
11816
12314
|
const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
11817
12315
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11818
12316
|
];
|
|
11819
|
-
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11820
|
-
const createResourceParams$
|
|
12317
|
+
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
12318
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11821
12319
|
function keyBuilder$2(luvio, config) {
|
|
11822
|
-
const resourceParams = createResourceParams$
|
|
12320
|
+
const resourceParams = createResourceParams$3(config);
|
|
11823
12321
|
return keyBuilder$3(luvio, resourceParams);
|
|
11824
12322
|
}
|
|
11825
|
-
function typeCheckConfig$
|
|
12323
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
11826
12324
|
const config = {};
|
|
11827
|
-
typeCheckConfig$
|
|
12325
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11828
12326
|
return config;
|
|
11829
12327
|
}
|
|
11830
|
-
function validateAdapterConfig$
|
|
12328
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
11831
12329
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11832
12330
|
return null;
|
|
11833
12331
|
}
|
|
11834
12332
|
if (process.env.NODE_ENV !== 'production') {
|
|
11835
12333
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11836
12334
|
}
|
|
11837
|
-
const config = typeCheckConfig$
|
|
12335
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
11838
12336
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11839
12337
|
return null;
|
|
11840
12338
|
}
|
|
11841
12339
|
return config;
|
|
11842
12340
|
}
|
|
11843
12341
|
function adapterFragment$1(luvio, config) {
|
|
11844
|
-
createResourceParams$
|
|
11845
|
-
return select$
|
|
12342
|
+
createResourceParams$3(config);
|
|
12343
|
+
return select$3();
|
|
11846
12344
|
}
|
|
11847
12345
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
11848
|
-
const snapshot = ingestSuccess$
|
|
12346
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
11849
12347
|
config,
|
|
11850
|
-
resolve: () => buildNetworkSnapshot$
|
|
12348
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
11851
12349
|
});
|
|
11852
12350
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11853
12351
|
}
|
|
11854
12352
|
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
11855
12353
|
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
11856
12354
|
config,
|
|
11857
|
-
resolve: () => buildNetworkSnapshot$
|
|
12355
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
11858
12356
|
});
|
|
11859
12357
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11860
12358
|
}
|
|
11861
|
-
function buildNetworkSnapshot$
|
|
11862
|
-
const resourceParams = createResourceParams$
|
|
11863
|
-
const request = createResourceRequest$
|
|
12359
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
12360
|
+
const resourceParams = createResourceParams$3(config);
|
|
12361
|
+
const request = createResourceRequest$3(resourceParams);
|
|
11864
12362
|
return luvio.dispatchResourceRequest(request, options)
|
|
11865
12363
|
.then((response) => {
|
|
11866
12364
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
11867
12365
|
const cache = new StoreKeyMap();
|
|
11868
|
-
getResponseCacheKeys$
|
|
12366
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
11869
12367
|
return cache;
|
|
11870
12368
|
});
|
|
11871
12369
|
}, (response) => {
|
|
@@ -11873,7 +12371,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
11873
12371
|
});
|
|
11874
12372
|
}
|
|
11875
12373
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
11876
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12374
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
11877
12375
|
}
|
|
11878
12376
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
11879
12377
|
const { luvio, config } = context;
|
|
@@ -11884,12 +12382,12 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
|
11884
12382
|
};
|
|
11885
12383
|
const cacheSnapshot = storeLookup(selector, {
|
|
11886
12384
|
config,
|
|
11887
|
-
resolve: () => buildNetworkSnapshot$
|
|
12385
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
11888
12386
|
});
|
|
11889
12387
|
return cacheSnapshot;
|
|
11890
12388
|
}
|
|
11891
12389
|
const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetrics(untrustedConfig, requestContext) {
|
|
11892
|
-
const config = validateAdapterConfig$
|
|
12390
|
+
const config = validateAdapterConfig$3(untrustedConfig, getSemanticSubMetrics_ConfigPropertyNames);
|
|
11893
12391
|
// Invalid or incomplete config
|
|
11894
12392
|
if (config === null) {
|
|
11895
12393
|
return null;
|
|
@@ -11898,22 +12396,22 @@ const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthorin
|
|
|
11898
12396
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
11899
12397
|
};
|
|
11900
12398
|
|
|
11901
|
-
function select$
|
|
11902
|
-
return select$
|
|
12399
|
+
function select$2(luvio, params) {
|
|
12400
|
+
return select$4();
|
|
11903
12401
|
}
|
|
11904
12402
|
function keyBuilder$1(luvio, params) {
|
|
11905
|
-
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
12403
|
+
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
11906
12404
|
}
|
|
11907
|
-
function getResponseCacheKeys$
|
|
12405
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
11908
12406
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
11909
12407
|
}
|
|
11910
|
-
function ingestSuccess$
|
|
12408
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
11911
12409
|
const { body } = response;
|
|
11912
12410
|
const key = keyBuilder$1(luvio, resourceParams);
|
|
11913
12411
|
luvio.storeIngest(key, ingest, body);
|
|
11914
12412
|
const snapshot = luvio.storeLookup({
|
|
11915
12413
|
recordId: key,
|
|
11916
|
-
node: select$
|
|
12414
|
+
node: select$2(),
|
|
11917
12415
|
variables: {},
|
|
11918
12416
|
}, snapshotRefresh);
|
|
11919
12417
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11930,74 +12428,76 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
11930
12428
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11931
12429
|
return errorSnapshot;
|
|
11932
12430
|
}
|
|
11933
|
-
function createResourceRequest$
|
|
12431
|
+
function createResourceRequest$2(config) {
|
|
11934
12432
|
const headers = {};
|
|
11935
12433
|
return {
|
|
11936
|
-
baseUri: '/services/data/
|
|
12434
|
+
baseUri: '/services/data/v64.0',
|
|
11937
12435
|
basePath: '/ssot/semantic/sub-metrics/' + config.urlParams.subMetricIds + '',
|
|
11938
12436
|
method: 'get',
|
|
11939
12437
|
body: null,
|
|
11940
12438
|
urlParams: config.urlParams,
|
|
11941
|
-
queryParams:
|
|
12439
|
+
queryParams: config.queryParams,
|
|
11942
12440
|
headers,
|
|
11943
12441
|
priority: 'normal',
|
|
11944
12442
|
};
|
|
11945
12443
|
}
|
|
11946
12444
|
|
|
11947
|
-
const adapterName$
|
|
12445
|
+
const adapterName$2 = 'getSemanticSubMetricsById';
|
|
11948
12446
|
const getSemanticSubMetricsById_ConfigPropertyMetadata = [
|
|
11949
12447
|
generateParamConfigMetadata('subMetricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12448
|
+
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12449
|
+
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
11950
12450
|
];
|
|
11951
|
-
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11952
|
-
const createResourceParams$
|
|
12451
|
+
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12452
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11953
12453
|
function keyBuilder(luvio, config) {
|
|
11954
|
-
const resourceParams = createResourceParams$
|
|
12454
|
+
const resourceParams = createResourceParams$2(config);
|
|
11955
12455
|
return keyBuilder$1(luvio, resourceParams);
|
|
11956
12456
|
}
|
|
11957
|
-
function typeCheckConfig$
|
|
12457
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
11958
12458
|
const config = {};
|
|
11959
|
-
typeCheckConfig$
|
|
12459
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11960
12460
|
return config;
|
|
11961
12461
|
}
|
|
11962
|
-
function validateAdapterConfig$
|
|
12462
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
11963
12463
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11964
12464
|
return null;
|
|
11965
12465
|
}
|
|
11966
12466
|
if (process.env.NODE_ENV !== 'production') {
|
|
11967
12467
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11968
12468
|
}
|
|
11969
|
-
const config = typeCheckConfig$
|
|
12469
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
11970
12470
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11971
12471
|
return null;
|
|
11972
12472
|
}
|
|
11973
12473
|
return config;
|
|
11974
12474
|
}
|
|
11975
12475
|
function adapterFragment(luvio, config) {
|
|
11976
|
-
createResourceParams$
|
|
11977
|
-
return select$
|
|
12476
|
+
createResourceParams$2(config);
|
|
12477
|
+
return select$2();
|
|
11978
12478
|
}
|
|
11979
12479
|
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
11980
|
-
const snapshot = ingestSuccess$
|
|
12480
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
11981
12481
|
config,
|
|
11982
|
-
resolve: () => buildNetworkSnapshot$
|
|
12482
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
11983
12483
|
});
|
|
11984
12484
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11985
12485
|
}
|
|
11986
12486
|
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
11987
12487
|
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
11988
12488
|
config,
|
|
11989
|
-
resolve: () => buildNetworkSnapshot$
|
|
12489
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
11990
12490
|
});
|
|
11991
12491
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11992
12492
|
}
|
|
11993
|
-
function buildNetworkSnapshot$
|
|
11994
|
-
const resourceParams = createResourceParams$
|
|
11995
|
-
const request = createResourceRequest$
|
|
12493
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
12494
|
+
const resourceParams = createResourceParams$2(config);
|
|
12495
|
+
const request = createResourceRequest$2(resourceParams);
|
|
11996
12496
|
return luvio.dispatchResourceRequest(request, options)
|
|
11997
12497
|
.then((response) => {
|
|
11998
12498
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
11999
12499
|
const cache = new StoreKeyMap();
|
|
12000
|
-
getResponseCacheKeys$
|
|
12500
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
12001
12501
|
return cache;
|
|
12002
12502
|
});
|
|
12003
12503
|
}, (response) => {
|
|
@@ -12005,7 +12505,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
12005
12505
|
});
|
|
12006
12506
|
}
|
|
12007
12507
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
12008
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12508
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
12009
12509
|
}
|
|
12010
12510
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
12011
12511
|
const { luvio, config } = context;
|
|
@@ -12016,12 +12516,12 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
12016
12516
|
};
|
|
12017
12517
|
const cacheSnapshot = storeLookup(selector, {
|
|
12018
12518
|
config,
|
|
12019
|
-
resolve: () => buildNetworkSnapshot$
|
|
12519
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
12020
12520
|
});
|
|
12021
12521
|
return cacheSnapshot;
|
|
12022
12522
|
}
|
|
12023
12523
|
const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetricsById(untrustedConfig, requestContext) {
|
|
12024
|
-
const config = validateAdapterConfig$
|
|
12524
|
+
const config = validateAdapterConfig$2(untrustedConfig, getSemanticSubMetricsById_ConfigPropertyNames);
|
|
12025
12525
|
// Invalid or incomplete config
|
|
12026
12526
|
if (config === null) {
|
|
12027
12527
|
return null;
|
|
@@ -12030,16 +12530,121 @@ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuth
|
|
|
12030
12530
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
12031
12531
|
};
|
|
12032
12532
|
|
|
12533
|
+
function select$1(luvio, params) {
|
|
12534
|
+
return select$m();
|
|
12535
|
+
}
|
|
12536
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
12537
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
12538
|
+
}
|
|
12539
|
+
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
12540
|
+
const { body } = response;
|
|
12541
|
+
const key = keyBuilderFromType(luvio, body);
|
|
12542
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
12543
|
+
const snapshot = luvio.storeLookup({
|
|
12544
|
+
recordId: key,
|
|
12545
|
+
node: select$1(),
|
|
12546
|
+
variables: {},
|
|
12547
|
+
});
|
|
12548
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12549
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
12550
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
12551
|
+
}
|
|
12552
|
+
}
|
|
12553
|
+
deepFreeze(snapshot.data);
|
|
12554
|
+
return snapshot;
|
|
12555
|
+
}
|
|
12556
|
+
function createResourceRequest$1(config) {
|
|
12557
|
+
const headers = {};
|
|
12558
|
+
return {
|
|
12559
|
+
baseUri: '/services/data/v64.0',
|
|
12560
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '/goal',
|
|
12561
|
+
method: 'patch',
|
|
12562
|
+
body: config.body,
|
|
12563
|
+
urlParams: config.urlParams,
|
|
12564
|
+
queryParams: {},
|
|
12565
|
+
headers,
|
|
12566
|
+
priority: 'normal',
|
|
12567
|
+
};
|
|
12568
|
+
}
|
|
12569
|
+
|
|
12570
|
+
const adapterName$1 = 'patchSemanticMetricGoal';
|
|
12571
|
+
const patchSemanticMetricGoal_ConfigPropertyMetadata = [
|
|
12572
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12573
|
+
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12574
|
+
generateParamConfigMetadata('forecasting', false, 2 /* Body */, 1 /* Boolean */),
|
|
12575
|
+
generateParamConfigMetadata('statusConditions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
12576
|
+
];
|
|
12577
|
+
const patchSemanticMetricGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12578
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$g(patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12579
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
12580
|
+
const config = {};
|
|
12581
|
+
typeCheckConfig$g(untrustedConfig, config, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12582
|
+
const untrustedConfig_statusConditions = untrustedConfig.statusConditions;
|
|
12583
|
+
if (ArrayIsArray$1(untrustedConfig_statusConditions)) {
|
|
12584
|
+
const untrustedConfig_statusConditions_array = [];
|
|
12585
|
+
for (let i = 0, arrayLength = untrustedConfig_statusConditions.length; i < arrayLength; i++) {
|
|
12586
|
+
const untrustedConfig_statusConditions_item = untrustedConfig_statusConditions[i];
|
|
12587
|
+
const referenceSemanticGoalStatusConditionInputRepresentationValidationError = validate$e(untrustedConfig_statusConditions_item);
|
|
12588
|
+
if (referenceSemanticGoalStatusConditionInputRepresentationValidationError === null) {
|
|
12589
|
+
untrustedConfig_statusConditions_array.push(untrustedConfig_statusConditions_item);
|
|
12590
|
+
}
|
|
12591
|
+
}
|
|
12592
|
+
config.statusConditions = untrustedConfig_statusConditions_array;
|
|
12593
|
+
}
|
|
12594
|
+
return config;
|
|
12595
|
+
}
|
|
12596
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
12597
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
12598
|
+
return null;
|
|
12599
|
+
}
|
|
12600
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12601
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
12602
|
+
}
|
|
12603
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
12604
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
12605
|
+
return null;
|
|
12606
|
+
}
|
|
12607
|
+
return config;
|
|
12608
|
+
}
|
|
12609
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
12610
|
+
const resourceParams = createResourceParams$1(config);
|
|
12611
|
+
const request = createResourceRequest$1(resourceParams);
|
|
12612
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
12613
|
+
.then((response) => {
|
|
12614
|
+
return luvio.handleSuccessResponse(() => {
|
|
12615
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response);
|
|
12616
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
12617
|
+
}, () => {
|
|
12618
|
+
const cache = new StoreKeyMap();
|
|
12619
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
12620
|
+
return cache;
|
|
12621
|
+
});
|
|
12622
|
+
}, (response) => {
|
|
12623
|
+
deepFreeze(response);
|
|
12624
|
+
throw response;
|
|
12625
|
+
});
|
|
12626
|
+
}
|
|
12627
|
+
const patchSemanticMetricGoalAdapterFactory = (luvio) => {
|
|
12628
|
+
return function patchSemanticMetricGoal(untrustedConfig) {
|
|
12629
|
+
const config = validateAdapterConfig$1(untrustedConfig, patchSemanticMetricGoal_ConfigPropertyNames);
|
|
12630
|
+
// Invalid or incomplete config
|
|
12631
|
+
if (config === null) {
|
|
12632
|
+
throw new Error('Invalid config for "patchSemanticMetricGoal"');
|
|
12633
|
+
}
|
|
12634
|
+
return buildNetworkSnapshot$1(luvio, config);
|
|
12635
|
+
};
|
|
12636
|
+
};
|
|
12637
|
+
|
|
12033
12638
|
function select(luvio, params) {
|
|
12034
|
-
return select$
|
|
12639
|
+
return select$o();
|
|
12035
12640
|
}
|
|
12036
12641
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
12037
|
-
getTypeCacheKeys$
|
|
12642
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
12038
12643
|
}
|
|
12039
12644
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
12040
12645
|
const { body } = response;
|
|
12041
12646
|
const key = keyBuilderFromType$1(luvio, body);
|
|
12042
|
-
luvio.storeIngest(key, ingest$
|
|
12647
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
12043
12648
|
const snapshot = luvio.storeLookup({
|
|
12044
12649
|
recordId: key,
|
|
12045
12650
|
node: select(),
|
|
@@ -12056,7 +12661,7 @@ function ingestSuccess(luvio, resourceParams, response) {
|
|
|
12056
12661
|
function createResourceRequest(config) {
|
|
12057
12662
|
const headers = {};
|
|
12058
12663
|
return {
|
|
12059
|
-
baseUri: '/services/data/
|
|
12664
|
+
baseUri: '/services/data/v64.0',
|
|
12060
12665
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '',
|
|
12061
12666
|
method: 'patch',
|
|
12062
12667
|
body: config.body,
|
|
@@ -12090,10 +12695,10 @@ const patchSemanticModel_ConfigPropertyMetadata = [
|
|
|
12090
12695
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
12091
12696
|
];
|
|
12092
12697
|
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, patchSemanticModel_ConfigPropertyMetadata);
|
|
12093
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
12698
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$g(patchSemanticModel_ConfigPropertyMetadata);
|
|
12094
12699
|
function typeCheckConfig(untrustedConfig) {
|
|
12095
12700
|
const config = {};
|
|
12096
|
-
typeCheckConfig$
|
|
12701
|
+
typeCheckConfig$g(untrustedConfig, config, patchSemanticModel_ConfigPropertyMetadata);
|
|
12097
12702
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
12098
12703
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
12099
12704
|
const untrustedConfig_baseModels_array = [];
|
|
@@ -12248,7 +12853,9 @@ const patchSemanticModelAdapterFactory = (luvio) => {
|
|
|
12248
12853
|
|
|
12249
12854
|
let createSemanticModel;
|
|
12250
12855
|
let createSemanticSubMetric;
|
|
12856
|
+
let deleteGoalFromSubMetric;
|
|
12251
12857
|
let deleteSemanticSubMetric;
|
|
12858
|
+
let getLeafDependenciesByTypes;
|
|
12252
12859
|
let getSemanticMetric;
|
|
12253
12860
|
let getSemanticMetricNotifyChange;
|
|
12254
12861
|
let getSemanticMetrics;
|
|
@@ -12261,8 +12868,10 @@ let getSemanticSubMetric;
|
|
|
12261
12868
|
let getSemanticSubMetricNotifyChange;
|
|
12262
12869
|
let getSemanticSubMetrics;
|
|
12263
12870
|
let getSemanticSubMetricsById;
|
|
12871
|
+
let patchSemanticMetricGoal;
|
|
12264
12872
|
let patchSemanticModel;
|
|
12265
12873
|
// Imperative GET Adapters
|
|
12874
|
+
let getLeafDependenciesByTypes_imperative;
|
|
12266
12875
|
let getSemanticMetric_imperative;
|
|
12267
12876
|
let getSemanticMetrics_imperative;
|
|
12268
12877
|
let getSemanticMetricsByIds_imperative;
|
|
@@ -12272,6 +12881,10 @@ let getSemanticModels_imperative;
|
|
|
12272
12881
|
let getSemanticSubMetric_imperative;
|
|
12273
12882
|
let getSemanticSubMetrics_imperative;
|
|
12274
12883
|
let getSemanticSubMetricsById_imperative;
|
|
12884
|
+
const getLeafDependenciesByTypesMetadata = {
|
|
12885
|
+
apiFamily: 'SemanticAuthoring',
|
|
12886
|
+
name: 'getLeafDependenciesByTypes',
|
|
12887
|
+
};
|
|
12275
12888
|
const getSemanticMetricMetadata = { apiFamily: 'SemanticAuthoring', name: 'getSemanticMetric' };
|
|
12276
12889
|
const getSemanticMetricsMetadata = { apiFamily: 'SemanticAuthoring', name: 'getSemanticMetrics' };
|
|
12277
12890
|
const getSemanticMetricsByIdsMetadata = {
|
|
@@ -12299,6 +12912,7 @@ const getSemanticSubMetricsByIdMetadata = {
|
|
|
12299
12912
|
// Notify Update Available
|
|
12300
12913
|
function bindExportsTo(luvio) {
|
|
12301
12914
|
// LDS Adapters
|
|
12915
|
+
const getLeafDependenciesByTypes_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getLeafDependenciesByTypes', getLeafDependenciesByTypesAdapterFactory), getLeafDependenciesByTypesMetadata);
|
|
12302
12916
|
const getSemanticMetric_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSemanticMetric', getSemanticMetricAdapterFactory), getSemanticMetricMetadata);
|
|
12303
12917
|
const getSemanticMetrics_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSemanticMetrics', getSemanticMetricsAdapterFactory), getSemanticMetricsMetadata);
|
|
12304
12918
|
const getSemanticMetricsByIds_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSemanticMetricsByIds', getSemanticMetricsByIdsAdapterFactory), getSemanticMetricsByIdsMetadata);
|
|
@@ -12315,7 +12929,9 @@ function bindExportsTo(luvio) {
|
|
|
12315
12929
|
return {
|
|
12316
12930
|
createSemanticModel: unwrapSnapshotData(createSemanticModelAdapterFactory),
|
|
12317
12931
|
createSemanticSubMetric: unwrapSnapshotData(createSemanticSubMetricAdapterFactory),
|
|
12318
|
-
|
|
12932
|
+
deleteGoalFromSubMetric: createLDSAdapter(luvio, adapterName$d, deleteGoalFromSubMetricAdapterFactory),
|
|
12933
|
+
deleteSemanticSubMetric: createLDSAdapter(luvio, adapterName$c, deleteSemanticSubMetricAdapterFactory),
|
|
12934
|
+
getLeafDependenciesByTypes: createWireAdapterConstructor(luvio, getLeafDependenciesByTypes_ldsAdapter, getLeafDependenciesByTypesMetadata),
|
|
12319
12935
|
getSemanticMetric: createWireAdapterConstructor(luvio, getSemanticMetric_ldsAdapter, getSemanticMetricMetadata),
|
|
12320
12936
|
getSemanticMetricNotifyChange: createLDSAdapter(luvio, 'getSemanticMetricNotifyChange', notifyChangeFactory$2),
|
|
12321
12937
|
getSemanticMetrics: createWireAdapterConstructor(luvio, getSemanticMetrics_ldsAdapter, getSemanticMetricsMetadata),
|
|
@@ -12328,8 +12944,10 @@ function bindExportsTo(luvio) {
|
|
|
12328
12944
|
getSemanticSubMetricNotifyChange: createLDSAdapter(luvio, 'getSemanticSubMetricNotifyChange', notifyChangeFactory),
|
|
12329
12945
|
getSemanticSubMetrics: createWireAdapterConstructor(luvio, getSemanticSubMetrics_ldsAdapter, getSemanticSubMetricsMetadata),
|
|
12330
12946
|
getSemanticSubMetricsById: createWireAdapterConstructor(luvio, getSemanticSubMetricsById_ldsAdapter, getSemanticSubMetricsByIdMetadata),
|
|
12947
|
+
patchSemanticMetricGoal: unwrapSnapshotData(patchSemanticMetricGoalAdapterFactory),
|
|
12331
12948
|
patchSemanticModel: unwrapSnapshotData(patchSemanticModelAdapterFactory),
|
|
12332
12949
|
// Imperative GET Adapters
|
|
12950
|
+
getLeafDependenciesByTypes_imperative: createImperativeAdapter(luvio, getLeafDependenciesByTypes_ldsAdapter, getLeafDependenciesByTypesMetadata),
|
|
12333
12951
|
getSemanticMetric_imperative: createImperativeAdapter(luvio, getSemanticMetric_ldsAdapter, getSemanticMetricMetadata),
|
|
12334
12952
|
getSemanticMetrics_imperative: createImperativeAdapter(luvio, getSemanticMetrics_ldsAdapter, getSemanticMetricsMetadata),
|
|
12335
12953
|
getSemanticMetricsByIds_imperative: createImperativeAdapter(luvio, getSemanticMetricsByIds_ldsAdapter, getSemanticMetricsByIdsMetadata),
|
|
@@ -12346,7 +12964,9 @@ withDefaultLuvio((luvio) => {
|
|
|
12346
12964
|
({
|
|
12347
12965
|
createSemanticModel,
|
|
12348
12966
|
createSemanticSubMetric,
|
|
12967
|
+
deleteGoalFromSubMetric,
|
|
12349
12968
|
deleteSemanticSubMetric,
|
|
12969
|
+
getLeafDependenciesByTypes,
|
|
12350
12970
|
getSemanticMetric,
|
|
12351
12971
|
getSemanticMetricNotifyChange,
|
|
12352
12972
|
getSemanticMetrics,
|
|
@@ -12359,7 +12979,9 @@ withDefaultLuvio((luvio) => {
|
|
|
12359
12979
|
getSemanticSubMetricNotifyChange,
|
|
12360
12980
|
getSemanticSubMetrics,
|
|
12361
12981
|
getSemanticSubMetricsById,
|
|
12982
|
+
patchSemanticMetricGoal,
|
|
12362
12983
|
patchSemanticModel,
|
|
12984
|
+
getLeafDependenciesByTypes_imperative,
|
|
12363
12985
|
getSemanticMetric_imperative,
|
|
12364
12986
|
getSemanticMetrics_imperative,
|
|
12365
12987
|
getSemanticMetricsByIds_imperative,
|
|
@@ -12372,5 +12994,5 @@ withDefaultLuvio((luvio) => {
|
|
|
12372
12994
|
} = bindExportsTo(luvio));
|
|
12373
12995
|
});
|
|
12374
12996
|
|
|
12375
|
-
export { createSemanticModel, createSemanticSubMetric, deleteSemanticSubMetric, getSemanticMetric, getSemanticMetricNotifyChange, getSemanticMetric_imperative, getSemanticMetrics, getSemanticMetricsByIds, getSemanticMetricsByIds_imperative, getSemanticMetricsToSubMetrics, getSemanticMetricsToSubMetrics_imperative, getSemanticMetrics_imperative, getSemanticModel, getSemanticModelNotifyChange, getSemanticModel_imperative, getSemanticModels, getSemanticModels_imperative, getSemanticSubMetric, getSemanticSubMetricNotifyChange, getSemanticSubMetric_imperative, getSemanticSubMetrics, getSemanticSubMetricsById, getSemanticSubMetricsById_imperative, getSemanticSubMetrics_imperative, patchSemanticModel };
|
|
12376
|
-
// version: 1.
|
|
12997
|
+
export { createSemanticModel, createSemanticSubMetric, deleteGoalFromSubMetric, deleteSemanticSubMetric, getLeafDependenciesByTypes, getLeafDependenciesByTypes_imperative, getSemanticMetric, getSemanticMetricNotifyChange, getSemanticMetric_imperative, getSemanticMetrics, getSemanticMetricsByIds, getSemanticMetricsByIds_imperative, getSemanticMetricsToSubMetrics, getSemanticMetricsToSubMetrics_imperative, getSemanticMetrics_imperative, getSemanticModel, getSemanticModelNotifyChange, getSemanticModel_imperative, getSemanticModels, getSemanticModels_imperative, getSemanticSubMetric, getSemanticSubMetricNotifyChange, getSemanticSubMetric_imperative, getSemanticSubMetrics, getSemanticSubMetricsById, getSemanticSubMetricsById_imperative, getSemanticSubMetrics_imperative, patchSemanticMetricGoal, patchSemanticModel };
|
|
12998
|
+
// version: 1.336.0-1b35a3afd9
|