@salesforce/lds-adapters-cdp-semantic-authoring 1.302.0 → 1.304.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 +1837 -390
- package/dist/es/es2018/types/src/generated/adapters/getSemanticMetricsToSubMetrics.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getSemanticSubMetric.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getSemanticSubMetrics.d.ts +27 -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 +8 -1
- package/dist/es/es2018/types/src/generated/resources/deleteSsotSemanticModelsMetricsByMetricNameOrIdAndModelApiNameOrId.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/deleteSsotSemanticModelsSubMetricsByModelApiNameOrIdAndSubMetricNameOrId.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsMetricApiNamesSubMetricsByMetricApiNamesAndModelApiNameOrId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsSubMetricsByModelApiNameOrId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsSubMetricsByModelApiNameOrIdAndSubMetricNameOrId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/postSsotSemanticModelsMetricsByModelApiNameOrId.d.ts +25 -0
- package/dist/es/es2018/types/src/generated/resources/postSsotSemanticModelsSubMetricsByModelApiNameOrId.d.ts +22 -0
- package/dist/es/es2018/types/src/generated/resources/putSsotSemanticModelsMetricsByMetricNameOrIdAndModelApiNameOrId.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/resources/putSsotSemanticModelsSubMetricsByModelApiNameOrIdAndSubMetricNameOrId.d.ts +23 -0
- package/dist/es/es2018/types/src/generated/types/SemanticSubMetricCollectionOutputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/SemanticSubMetricInputRepresentation.d.ts +49 -0
- package/dist/es/es2018/types/src/generated/types/SemanticSubMetricOutputRepresentation.d.ts +75 -0
- package/dist/es/es2018/types/src/generated/types/SemanticSubMetricsByMetricCollectionOutputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/SemanticSubMetricsByMetricOutputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/SemanticTimeRangeInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/SemanticTimeRangeOutputRepresentation.d.ts +34 -0
- package/package.json +3 -3
- package/sfdc/index.js +5125 -3606
- package/src/raml/api.raml +280 -10
- package/src/raml/luvio.raml +17 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$7, typeCheckConfig as typeCheckConfig$7, StoreKeyMap, createResourceParams as createResourceParams$7 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -91,8 +91,8 @@ function createLink(ref) {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
const VERSION$
|
|
95
|
-
function validate$
|
|
94
|
+
const VERSION$p = "95c8802fb610fc9f0f94dba2098b4473";
|
|
95
|
+
function validate$p(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
96
96
|
const v_error = (() => {
|
|
97
97
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
98
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -445,10 +445,10 @@ function validate$k(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
445
445
|
})();
|
|
446
446
|
return v_error === undefined ? null : v_error;
|
|
447
447
|
}
|
|
448
|
-
const select$
|
|
448
|
+
const select$w = function SemanticModelPartialOutputRepresentationSelect() {
|
|
449
449
|
return {
|
|
450
450
|
kind: 'Fragment',
|
|
451
|
-
version: VERSION$
|
|
451
|
+
version: VERSION$p,
|
|
452
452
|
private: [],
|
|
453
453
|
selections: [
|
|
454
454
|
{
|
|
@@ -534,7 +534,7 @@ const select$o = function SemanticModelPartialOutputRepresentationSelect() {
|
|
|
534
534
|
]
|
|
535
535
|
};
|
|
536
536
|
};
|
|
537
|
-
function equals$
|
|
537
|
+
function equals$p(existing, incoming) {
|
|
538
538
|
const existing_apiName = existing.apiName;
|
|
539
539
|
const incoming_apiName = incoming.apiName;
|
|
540
540
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -716,8 +716,8 @@ function equals$k(existing, incoming) {
|
|
|
716
716
|
return true;
|
|
717
717
|
}
|
|
718
718
|
|
|
719
|
-
const VERSION$
|
|
720
|
-
function validate$
|
|
719
|
+
const VERSION$o = "73c687cae9892dfdc5145743352ced92";
|
|
720
|
+
function validate$o(obj, path = 'SemanticModelCollectionOutputRepresentation') {
|
|
721
721
|
const v_error = (() => {
|
|
722
722
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
723
723
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -785,7 +785,7 @@ function validate$j(obj, path = 'SemanticModelCollectionOutputRepresentation') {
|
|
|
785
785
|
for (let i = 0; i < obj_items.length; i++) {
|
|
786
786
|
const obj_items_item = obj_items[i];
|
|
787
787
|
const path_items_item = path_items + '[' + i + ']';
|
|
788
|
-
const referencepath_items_itemValidationError = validate$
|
|
788
|
+
const referencepath_items_itemValidationError = validate$p(obj_items_item, path_items_item);
|
|
789
789
|
if (referencepath_items_itemValidationError !== null) {
|
|
790
790
|
let message = 'Object doesn\'t match SemanticModelPartialOutputRepresentation (at "' + path_items_item + '")\n';
|
|
791
791
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -878,15 +878,15 @@ function validate$j(obj, path = 'SemanticModelCollectionOutputRepresentation') {
|
|
|
878
878
|
})();
|
|
879
879
|
return v_error === undefined ? null : v_error;
|
|
880
880
|
}
|
|
881
|
-
const RepresentationType$
|
|
882
|
-
function normalize$
|
|
881
|
+
const RepresentationType$7 = 'SemanticModelCollectionOutputRepresentation';
|
|
882
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
883
883
|
return input;
|
|
884
884
|
}
|
|
885
|
-
const select$
|
|
886
|
-
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$
|
|
885
|
+
const select$v = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
886
|
+
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$w();
|
|
887
887
|
return {
|
|
888
888
|
kind: 'Fragment',
|
|
889
|
-
version: VERSION$
|
|
889
|
+
version: VERSION$o,
|
|
890
890
|
private: [],
|
|
891
891
|
selections: [
|
|
892
892
|
{
|
|
@@ -922,7 +922,7 @@ const select$n = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
|
922
922
|
]
|
|
923
923
|
};
|
|
924
924
|
};
|
|
925
|
-
function equals$
|
|
925
|
+
function equals$o(existing, incoming) {
|
|
926
926
|
const existing_count = existing.count;
|
|
927
927
|
const incoming_count = incoming.count;
|
|
928
928
|
if (!(existing_count === incoming_count)) {
|
|
@@ -951,7 +951,7 @@ function equals$j(existing, incoming) {
|
|
|
951
951
|
return false;
|
|
952
952
|
}
|
|
953
953
|
const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
|
|
954
|
-
if (!(equals$
|
|
954
|
+
if (!(equals$p(existing_items_item, incoming_items_item))) {
|
|
955
955
|
return false;
|
|
956
956
|
}
|
|
957
957
|
});
|
|
@@ -992,44 +992,44 @@ function equals$j(existing, incoming) {
|
|
|
992
992
|
}
|
|
993
993
|
return true;
|
|
994
994
|
}
|
|
995
|
-
const ingest$
|
|
995
|
+
const ingest$7 = function SemanticModelCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
996
996
|
if (process.env.NODE_ENV !== 'production') {
|
|
997
|
-
const validateError = validate$
|
|
997
|
+
const validateError = validate$o(input);
|
|
998
998
|
if (validateError !== null) {
|
|
999
999
|
throw validateError;
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
1002
|
const key = path.fullPath;
|
|
1003
1003
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
1004
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1004
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SemanticAuthoring", VERSION$o, RepresentationType$7, equals$o);
|
|
1005
1005
|
return createLink(key);
|
|
1006
1006
|
};
|
|
1007
|
-
function getTypeCacheKeys$
|
|
1007
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
1008
1008
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1009
1009
|
const rootKey = fullPathFactory();
|
|
1010
1010
|
rootKeySet.set(rootKey, {
|
|
1011
1011
|
namespace: keyPrefix,
|
|
1012
|
-
representationName: RepresentationType$
|
|
1012
|
+
representationName: RepresentationType$7,
|
|
1013
1013
|
mergeable: false
|
|
1014
1014
|
});
|
|
1015
1015
|
}
|
|
1016
1016
|
|
|
1017
|
-
function select$
|
|
1018
|
-
return select$
|
|
1017
|
+
function select$u(luvio, params) {
|
|
1018
|
+
return select$v();
|
|
1019
1019
|
}
|
|
1020
|
-
function keyBuilder$
|
|
1020
|
+
function keyBuilder$g(luvio, params) {
|
|
1021
1021
|
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 + ')';
|
|
1022
1022
|
}
|
|
1023
|
-
function getResponseCacheKeys$
|
|
1024
|
-
getTypeCacheKeys$
|
|
1023
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
1024
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
|
|
1025
1025
|
}
|
|
1026
|
-
function ingestSuccess$
|
|
1026
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
1027
1027
|
const { body } = response;
|
|
1028
|
-
const key = keyBuilder$
|
|
1029
|
-
luvio.storeIngest(key, ingest$
|
|
1028
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
1029
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
1030
1030
|
const snapshot = luvio.storeLookup({
|
|
1031
1031
|
recordId: key,
|
|
1032
|
-
node: select$
|
|
1032
|
+
node: select$u(),
|
|
1033
1033
|
variables: {},
|
|
1034
1034
|
}, snapshotRefresh);
|
|
1035
1035
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1040,13 +1040,13 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1040
1040
|
deepFreeze(snapshot.data);
|
|
1041
1041
|
return snapshot;
|
|
1042
1042
|
}
|
|
1043
|
-
function ingestError$
|
|
1044
|
-
const key = keyBuilder$
|
|
1043
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
1044
|
+
const key = keyBuilder$g(luvio, params);
|
|
1045
1045
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1046
1046
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1047
1047
|
return errorSnapshot;
|
|
1048
1048
|
}
|
|
1049
|
-
function createResourceRequest$
|
|
1049
|
+
function createResourceRequest$6(config) {
|
|
1050
1050
|
const headers = {};
|
|
1051
1051
|
return {
|
|
1052
1052
|
baseUri: '/services/data/v62.0',
|
|
@@ -1060,7 +1060,7 @@ function createResourceRequest$3(config) {
|
|
|
1060
1060
|
};
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
|
-
const adapterName$
|
|
1063
|
+
const adapterName$6 = 'getSemanticModels';
|
|
1064
1064
|
const getSemanticModels_ConfigPropertyMetadata = [
|
|
1065
1065
|
generateParamConfigMetadata('app', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1066
1066
|
generateParamConfigMetadata('category', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -1070,90 +1070,90 @@ const getSemanticModels_ConfigPropertyMetadata = [
|
|
|
1070
1070
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1071
1071
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1072
1072
|
];
|
|
1073
|
-
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1074
|
-
const createResourceParams$
|
|
1075
|
-
function keyBuilder$
|
|
1076
|
-
const resourceParams = createResourceParams$
|
|
1077
|
-
return keyBuilder$
|
|
1073
|
+
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticModels_ConfigPropertyMetadata);
|
|
1074
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(getSemanticModels_ConfigPropertyMetadata);
|
|
1075
|
+
function keyBuilder$f(luvio, config) {
|
|
1076
|
+
const resourceParams = createResourceParams$6(config);
|
|
1077
|
+
return keyBuilder$g(luvio, resourceParams);
|
|
1078
1078
|
}
|
|
1079
|
-
function typeCheckConfig$
|
|
1079
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
1080
1080
|
const config = {};
|
|
1081
|
-
typeCheckConfig$
|
|
1081
|
+
typeCheckConfig$7(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
|
|
1082
1082
|
return config;
|
|
1083
1083
|
}
|
|
1084
|
-
function validateAdapterConfig$
|
|
1084
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
1085
1085
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1086
1086
|
return null;
|
|
1087
1087
|
}
|
|
1088
1088
|
if (process.env.NODE_ENV !== 'production') {
|
|
1089
1089
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1090
1090
|
}
|
|
1091
|
-
const config = typeCheckConfig$
|
|
1091
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
1092
1092
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1093
1093
|
return null;
|
|
1094
1094
|
}
|
|
1095
1095
|
return config;
|
|
1096
1096
|
}
|
|
1097
|
-
function adapterFragment$
|
|
1098
|
-
createResourceParams$
|
|
1099
|
-
return select$
|
|
1097
|
+
function adapterFragment$6(luvio, config) {
|
|
1098
|
+
createResourceParams$6(config);
|
|
1099
|
+
return select$u();
|
|
1100
1100
|
}
|
|
1101
|
-
function onFetchResponseSuccess$
|
|
1102
|
-
const snapshot = ingestSuccess$
|
|
1101
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
1102
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
1103
1103
|
config,
|
|
1104
|
-
resolve: () => buildNetworkSnapshot$
|
|
1104
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
1105
1105
|
});
|
|
1106
1106
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1107
1107
|
}
|
|
1108
|
-
function onFetchResponseError$
|
|
1109
|
-
const snapshot = ingestError$
|
|
1108
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
1109
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
1110
1110
|
config,
|
|
1111
|
-
resolve: () => buildNetworkSnapshot$
|
|
1111
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
1112
1112
|
});
|
|
1113
1113
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1114
1114
|
}
|
|
1115
|
-
function buildNetworkSnapshot$
|
|
1116
|
-
const resourceParams = createResourceParams$
|
|
1117
|
-
const request = createResourceRequest$
|
|
1115
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
1116
|
+
const resourceParams = createResourceParams$6(config);
|
|
1117
|
+
const request = createResourceRequest$6(resourceParams);
|
|
1118
1118
|
return luvio.dispatchResourceRequest(request, options)
|
|
1119
1119
|
.then((response) => {
|
|
1120
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1120
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
1121
1121
|
const cache = new StoreKeyMap();
|
|
1122
|
-
getResponseCacheKeys$
|
|
1122
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
1123
1123
|
return cache;
|
|
1124
1124
|
});
|
|
1125
1125
|
}, (response) => {
|
|
1126
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1126
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
1127
1127
|
});
|
|
1128
1128
|
}
|
|
1129
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1130
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1129
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
1130
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
1131
1131
|
}
|
|
1132
|
-
function buildCachedSnapshotCachePolicy$
|
|
1132
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
1133
1133
|
const { luvio, config } = context;
|
|
1134
1134
|
const selector = {
|
|
1135
|
-
recordId: keyBuilder$
|
|
1136
|
-
node: adapterFragment$
|
|
1135
|
+
recordId: keyBuilder$f(luvio, config),
|
|
1136
|
+
node: adapterFragment$6(luvio, config),
|
|
1137
1137
|
variables: {},
|
|
1138
1138
|
};
|
|
1139
1139
|
const cacheSnapshot = storeLookup(selector, {
|
|
1140
1140
|
config,
|
|
1141
|
-
resolve: () => buildNetworkSnapshot$
|
|
1141
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
1142
1142
|
});
|
|
1143
1143
|
return cacheSnapshot;
|
|
1144
1144
|
}
|
|
1145
1145
|
const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModels(untrustedConfig, requestContext) {
|
|
1146
|
-
const config = validateAdapterConfig$
|
|
1146
|
+
const config = validateAdapterConfig$6(untrustedConfig, getSemanticModels_ConfigPropertyNames);
|
|
1147
1147
|
// Invalid or incomplete config
|
|
1148
1148
|
if (config === null) {
|
|
1149
1149
|
return null;
|
|
1150
1150
|
}
|
|
1151
1151
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1152
|
-
buildCachedSnapshotCachePolicy$
|
|
1152
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
1153
1153
|
};
|
|
1154
1154
|
|
|
1155
|
-
const VERSION$
|
|
1156
|
-
function validate$
|
|
1155
|
+
const VERSION$n = "e9ae7c3531e6dd805fbd77a43e94ec1a";
|
|
1156
|
+
function validate$n(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
1157
1157
|
const v_error = (() => {
|
|
1158
1158
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1159
1159
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1194,10 +1194,10 @@ function validate$i(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
|
1194
1194
|
})();
|
|
1195
1195
|
return v_error === undefined ? null : v_error;
|
|
1196
1196
|
}
|
|
1197
|
-
const select$
|
|
1197
|
+
const select$t = function SemanticBaseModelOutputRepresentationSelect() {
|
|
1198
1198
|
return {
|
|
1199
1199
|
kind: 'Fragment',
|
|
1200
|
-
version: VERSION$
|
|
1200
|
+
version: VERSION$n,
|
|
1201
1201
|
private: [],
|
|
1202
1202
|
selections: [
|
|
1203
1203
|
{
|
|
@@ -1212,7 +1212,7 @@ const select$l = function SemanticBaseModelOutputRepresentationSelect() {
|
|
|
1212
1212
|
]
|
|
1213
1213
|
};
|
|
1214
1214
|
};
|
|
1215
|
-
function equals$
|
|
1215
|
+
function equals$n(existing, incoming) {
|
|
1216
1216
|
const existing_apiName = existing.apiName;
|
|
1217
1217
|
const incoming_apiName = incoming.apiName;
|
|
1218
1218
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -1234,8 +1234,8 @@ function equals$i(existing, incoming) {
|
|
|
1234
1234
|
return true;
|
|
1235
1235
|
}
|
|
1236
1236
|
|
|
1237
|
-
const VERSION$
|
|
1238
|
-
function validate$
|
|
1237
|
+
const VERSION$m = "ed73d00cb57883d07a5148ec2bb1348c";
|
|
1238
|
+
function validate$m(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
1239
1239
|
const v_error = (() => {
|
|
1240
1240
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1241
1241
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1300,10 +1300,10 @@ function validate$h(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
|
1300
1300
|
})();
|
|
1301
1301
|
return v_error === undefined ? null : v_error;
|
|
1302
1302
|
}
|
|
1303
|
-
const select$
|
|
1303
|
+
const select$s = function SemanticFilterOutputRepresentationSelect() {
|
|
1304
1304
|
return {
|
|
1305
1305
|
kind: 'Fragment',
|
|
1306
|
-
version: VERSION$
|
|
1306
|
+
version: VERSION$m,
|
|
1307
1307
|
private: [],
|
|
1308
1308
|
selections: [
|
|
1309
1309
|
{
|
|
@@ -1321,7 +1321,7 @@ const select$k = function SemanticFilterOutputRepresentationSelect() {
|
|
|
1321
1321
|
]
|
|
1322
1322
|
};
|
|
1323
1323
|
};
|
|
1324
|
-
function equals$
|
|
1324
|
+
function equals$m(existing, incoming) {
|
|
1325
1325
|
const existing_operator = existing.operator;
|
|
1326
1326
|
const incoming_operator = incoming.operator;
|
|
1327
1327
|
if (!(existing_operator === incoming_operator)) {
|
|
@@ -1340,8 +1340,8 @@ function equals$h(existing, incoming) {
|
|
|
1340
1340
|
return true;
|
|
1341
1341
|
}
|
|
1342
1342
|
|
|
1343
|
-
const VERSION$
|
|
1344
|
-
function validate$
|
|
1343
|
+
const VERSION$l = "592932a3b04369a9fb00de010cfffb35";
|
|
1344
|
+
function validate$l(obj, path = 'SemanticCalculatedDimensionOutputRepresentation') {
|
|
1345
1345
|
const v_error = (() => {
|
|
1346
1346
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1347
1347
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1494,7 +1494,7 @@ function validate$g(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
1494
1494
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
1495
1495
|
const obj_filters_item = obj_filters[i];
|
|
1496
1496
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
1497
|
-
const referencepath_filters_itemValidationError = validate$
|
|
1497
|
+
const referencepath_filters_itemValidationError = validate$m(obj_filters_item, path_filters_item);
|
|
1498
1498
|
if (referencepath_filters_itemValidationError !== null) {
|
|
1499
1499
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
1500
1500
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1641,11 +1641,11 @@ function validate$g(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
1641
1641
|
})();
|
|
1642
1642
|
return v_error === undefined ? null : v_error;
|
|
1643
1643
|
}
|
|
1644
|
-
const select$
|
|
1645
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
1644
|
+
const select$r = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
1645
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$s();
|
|
1646
1646
|
return {
|
|
1647
1647
|
kind: 'Fragment',
|
|
1648
|
-
version: VERSION$
|
|
1648
|
+
version: VERSION$l,
|
|
1649
1649
|
private: [],
|
|
1650
1650
|
selections: [
|
|
1651
1651
|
{
|
|
@@ -1737,7 +1737,7 @@ const select$j = function SemanticCalculatedDimensionOutputRepresentationSelect(
|
|
|
1737
1737
|
]
|
|
1738
1738
|
};
|
|
1739
1739
|
};
|
|
1740
|
-
function equals$
|
|
1740
|
+
function equals$l(existing, incoming) {
|
|
1741
1741
|
const existing_apiName = existing.apiName;
|
|
1742
1742
|
const incoming_apiName = incoming.apiName;
|
|
1743
1743
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -1877,7 +1877,7 @@ function equals$g(existing, incoming) {
|
|
|
1877
1877
|
return false;
|
|
1878
1878
|
}
|
|
1879
1879
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
1880
|
-
if (!(equals$
|
|
1880
|
+
if (!(equals$m(existing_filters_item, incoming_filters_item))) {
|
|
1881
1881
|
return false;
|
|
1882
1882
|
}
|
|
1883
1883
|
});
|
|
@@ -1932,8 +1932,8 @@ function equals$g(existing, incoming) {
|
|
|
1932
1932
|
return true;
|
|
1933
1933
|
}
|
|
1934
1934
|
|
|
1935
|
-
const VERSION$
|
|
1936
|
-
function validate$
|
|
1935
|
+
const VERSION$k = "e34e657daf61e9ceba1b2c16eb16dc79";
|
|
1936
|
+
function validate$k(obj, path = 'SemanticCalculatedMeasurementOutputRepresentation') {
|
|
1937
1937
|
const v_error = (() => {
|
|
1938
1938
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1939
1939
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2100,7 +2100,7 @@ function validate$f(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
2100
2100
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
2101
2101
|
const obj_filters_item = obj_filters[i];
|
|
2102
2102
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
2103
|
-
const referencepath_filters_itemValidationError = validate$
|
|
2103
|
+
const referencepath_filters_itemValidationError = validate$m(obj_filters_item, path_filters_item);
|
|
2104
2104
|
if (referencepath_filters_itemValidationError !== null) {
|
|
2105
2105
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
2106
2106
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2301,11 +2301,11 @@ function validate$f(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
2301
2301
|
})();
|
|
2302
2302
|
return v_error === undefined ? null : v_error;
|
|
2303
2303
|
}
|
|
2304
|
-
const select$
|
|
2305
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
2304
|
+
const select$q = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
2305
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$s();
|
|
2306
2306
|
return {
|
|
2307
2307
|
kind: 'Fragment',
|
|
2308
|
-
version: VERSION$
|
|
2308
|
+
version: VERSION$k,
|
|
2309
2309
|
private: [],
|
|
2310
2310
|
selections: [
|
|
2311
2311
|
{
|
|
@@ -2416,7 +2416,7 @@ const select$i = function SemanticCalculatedMeasurementOutputRepresentationSelec
|
|
|
2416
2416
|
]
|
|
2417
2417
|
};
|
|
2418
2418
|
};
|
|
2419
|
-
function equals$
|
|
2419
|
+
function equals$k(existing, incoming) {
|
|
2420
2420
|
const existing_aggregationType = existing.aggregationType;
|
|
2421
2421
|
const incoming_aggregationType = incoming.aggregationType;
|
|
2422
2422
|
// if at least one of these optionals is defined
|
|
@@ -2582,7 +2582,7 @@ function equals$f(existing, incoming) {
|
|
|
2582
2582
|
return false;
|
|
2583
2583
|
}
|
|
2584
2584
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
2585
|
-
if (!(equals$
|
|
2585
|
+
if (!(equals$m(existing_filters_item, incoming_filters_item))) {
|
|
2586
2586
|
return false;
|
|
2587
2587
|
}
|
|
2588
2588
|
});
|
|
@@ -2655,8 +2655,8 @@ function equals$f(existing, incoming) {
|
|
|
2655
2655
|
return true;
|
|
2656
2656
|
}
|
|
2657
2657
|
|
|
2658
|
-
const VERSION$
|
|
2659
|
-
function validate$
|
|
2658
|
+
const VERSION$j = "c32aedfacb9f0a25f9ccd92b5fe90915";
|
|
2659
|
+
function validate$j(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
2660
2660
|
const v_error = (() => {
|
|
2661
2661
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2662
2662
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2902,10 +2902,10 @@ function validate$e(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
|
2902
2902
|
})();
|
|
2903
2903
|
return v_error === undefined ? null : v_error;
|
|
2904
2904
|
}
|
|
2905
|
-
const select$
|
|
2905
|
+
const select$p = function SemanticDimensionOutputRepresentationSelect() {
|
|
2906
2906
|
return {
|
|
2907
2907
|
kind: 'Fragment',
|
|
2908
|
-
version: VERSION$
|
|
2908
|
+
version: VERSION$j,
|
|
2909
2909
|
private: [],
|
|
2910
2910
|
selections: [
|
|
2911
2911
|
{
|
|
@@ -2979,7 +2979,7 @@ const select$h = function SemanticDimensionOutputRepresentationSelect() {
|
|
|
2979
2979
|
]
|
|
2980
2980
|
};
|
|
2981
2981
|
};
|
|
2982
|
-
function equals$
|
|
2982
|
+
function equals$j(existing, incoming) {
|
|
2983
2983
|
const existing_apiName = existing.apiName;
|
|
2984
2984
|
const incoming_apiName = incoming.apiName;
|
|
2985
2985
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -3122,8 +3122,8 @@ function equals$e(existing, incoming) {
|
|
|
3122
3122
|
return true;
|
|
3123
3123
|
}
|
|
3124
3124
|
|
|
3125
|
-
const VERSION$
|
|
3126
|
-
function validate$
|
|
3125
|
+
const VERSION$i = "04258917d0aa599e280cde52a47a98ef";
|
|
3126
|
+
function validate$i(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
3127
3127
|
const v_error = (() => {
|
|
3128
3128
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3129
3129
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3430,10 +3430,10 @@ function validate$d(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
|
3430
3430
|
})();
|
|
3431
3431
|
return v_error === undefined ? null : v_error;
|
|
3432
3432
|
}
|
|
3433
|
-
const select$
|
|
3433
|
+
const select$o = function SemanticMeasurementOutputRepresentationSelect() {
|
|
3434
3434
|
return {
|
|
3435
3435
|
kind: 'Fragment',
|
|
3436
|
-
version: VERSION$
|
|
3436
|
+
version: VERSION$i,
|
|
3437
3437
|
private: [],
|
|
3438
3438
|
selections: [
|
|
3439
3439
|
{
|
|
@@ -3521,7 +3521,7 @@ const select$g = function SemanticMeasurementOutputRepresentationSelect() {
|
|
|
3521
3521
|
]
|
|
3522
3522
|
};
|
|
3523
3523
|
};
|
|
3524
|
-
function equals$
|
|
3524
|
+
function equals$i(existing, incoming) {
|
|
3525
3525
|
const existing_aggregationType = existing.aggregationType;
|
|
3526
3526
|
const incoming_aggregationType = incoming.aggregationType;
|
|
3527
3527
|
// if at least one of these optionals is defined
|
|
@@ -3695,8 +3695,8 @@ function equals$d(existing, incoming) {
|
|
|
3695
3695
|
return true;
|
|
3696
3696
|
}
|
|
3697
3697
|
|
|
3698
|
-
const VERSION$
|
|
3699
|
-
function validate$
|
|
3698
|
+
const VERSION$h = "eea0acd948e6ff7224d6fc05254b5b46";
|
|
3699
|
+
function validate$h(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
3700
3700
|
const v_error = (() => {
|
|
3701
3701
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3702
3702
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3812,7 +3812,7 @@ function validate$c(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
3812
3812
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
3813
3813
|
const obj_filters_item = obj_filters[i];
|
|
3814
3814
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
3815
|
-
const referencepath_filters_itemValidationError = validate$
|
|
3815
|
+
const referencepath_filters_itemValidationError = validate$m(obj_filters_item, path_filters_item);
|
|
3816
3816
|
if (referencepath_filters_itemValidationError !== null) {
|
|
3817
3817
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
3818
3818
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3944,7 +3944,7 @@ function validate$c(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
3944
3944
|
for (let i = 0; i < obj_semanticDimensions.length; i++) {
|
|
3945
3945
|
const obj_semanticDimensions_item = obj_semanticDimensions[i];
|
|
3946
3946
|
const path_semanticDimensions_item = path_semanticDimensions + '[' + i + ']';
|
|
3947
|
-
const referencepath_semanticDimensions_itemValidationError = validate$
|
|
3947
|
+
const referencepath_semanticDimensions_itemValidationError = validate$j(obj_semanticDimensions_item, path_semanticDimensions_item);
|
|
3948
3948
|
if (referencepath_semanticDimensions_itemValidationError !== null) {
|
|
3949
3949
|
let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimensions_item + '")\n';
|
|
3950
3950
|
message += referencepath_semanticDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3989,7 +3989,7 @@ function validate$c(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
3989
3989
|
for (let i = 0; i < obj_semanticMeasurements.length; i++) {
|
|
3990
3990
|
const obj_semanticMeasurements_item = obj_semanticMeasurements[i];
|
|
3991
3991
|
const path_semanticMeasurements_item = path_semanticMeasurements + '[' + i + ']';
|
|
3992
|
-
const referencepath_semanticMeasurements_itemValidationError = validate$
|
|
3992
|
+
const referencepath_semanticMeasurements_itemValidationError = validate$i(obj_semanticMeasurements_item, path_semanticMeasurements_item);
|
|
3993
3993
|
if (referencepath_semanticMeasurements_itemValidationError !== null) {
|
|
3994
3994
|
let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurements_item + '")\n';
|
|
3995
3995
|
message += referencepath_semanticMeasurements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4054,13 +4054,13 @@ function validate$c(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
4054
4054
|
})();
|
|
4055
4055
|
return v_error === undefined ? null : v_error;
|
|
4056
4056
|
}
|
|
4057
|
-
const select$
|
|
4058
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
4059
|
-
const { selections: SemanticDimensionOutputRepresentation__selections, opaque: SemanticDimensionOutputRepresentation__opaque, } = select$
|
|
4060
|
-
const { selections: SemanticMeasurementOutputRepresentation__selections, opaque: SemanticMeasurementOutputRepresentation__opaque, } = select$
|
|
4057
|
+
const select$n = function SemanticDataObjectOutputRepresentationSelect() {
|
|
4058
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$s();
|
|
4059
|
+
const { selections: SemanticDimensionOutputRepresentation__selections, opaque: SemanticDimensionOutputRepresentation__opaque, } = select$p();
|
|
4060
|
+
const { selections: SemanticMeasurementOutputRepresentation__selections, opaque: SemanticMeasurementOutputRepresentation__opaque, } = select$o();
|
|
4061
4061
|
return {
|
|
4062
4062
|
kind: 'Fragment',
|
|
4063
|
-
version: VERSION$
|
|
4063
|
+
version: VERSION$h,
|
|
4064
4064
|
private: [],
|
|
4065
4065
|
selections: [
|
|
4066
4066
|
{
|
|
@@ -4154,7 +4154,7 @@ const select$f = function SemanticDataObjectOutputRepresentationSelect() {
|
|
|
4154
4154
|
]
|
|
4155
4155
|
};
|
|
4156
4156
|
};
|
|
4157
|
-
function equals$
|
|
4157
|
+
function equals$h(existing, incoming) {
|
|
4158
4158
|
const existing_apiName = existing.apiName;
|
|
4159
4159
|
const incoming_apiName = incoming.apiName;
|
|
4160
4160
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -4221,7 +4221,7 @@ function equals$c(existing, incoming) {
|
|
|
4221
4221
|
return false;
|
|
4222
4222
|
}
|
|
4223
4223
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
4224
|
-
if (!(equals$
|
|
4224
|
+
if (!(equals$m(existing_filters_item, incoming_filters_item))) {
|
|
4225
4225
|
return false;
|
|
4226
4226
|
}
|
|
4227
4227
|
});
|
|
@@ -4283,7 +4283,7 @@ function equals$c(existing, incoming) {
|
|
|
4283
4283
|
return false;
|
|
4284
4284
|
}
|
|
4285
4285
|
const equals_semanticDimensions_items = equalsArray(existing_semanticDimensions, incoming_semanticDimensions, (existing_semanticDimensions_item, incoming_semanticDimensions_item) => {
|
|
4286
|
-
if (!(equals$
|
|
4286
|
+
if (!(equals$j(existing_semanticDimensions_item, incoming_semanticDimensions_item))) {
|
|
4287
4287
|
return false;
|
|
4288
4288
|
}
|
|
4289
4289
|
});
|
|
@@ -4314,7 +4314,7 @@ function equals$c(existing, incoming) {
|
|
|
4314
4314
|
return false;
|
|
4315
4315
|
}
|
|
4316
4316
|
const equals_semanticMeasurements_items = equalsArray(existing_semanticMeasurements, incoming_semanticMeasurements, (existing_semanticMeasurements_item, incoming_semanticMeasurements_item) => {
|
|
4317
|
-
if (!(equals$
|
|
4317
|
+
if (!(equals$i(existing_semanticMeasurements_item, incoming_semanticMeasurements_item))) {
|
|
4318
4318
|
return false;
|
|
4319
4319
|
}
|
|
4320
4320
|
});
|
|
@@ -4343,8 +4343,8 @@ function equals$c(existing, incoming) {
|
|
|
4343
4343
|
return true;
|
|
4344
4344
|
}
|
|
4345
4345
|
|
|
4346
|
-
const VERSION$
|
|
4347
|
-
function validate$
|
|
4346
|
+
const VERSION$g = "c51c0cf4309a052b985d4a53984fcee4";
|
|
4347
|
+
function validate$g(obj, path = 'SemanticRelationshipCriteriaOutputRepresentation') {
|
|
4348
4348
|
const v_error = (() => {
|
|
4349
4349
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4350
4350
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4404,10 +4404,10 @@ function validate$b(obj, path = 'SemanticRelationshipCriteriaOutputRepresentatio
|
|
|
4404
4404
|
})();
|
|
4405
4405
|
return v_error === undefined ? null : v_error;
|
|
4406
4406
|
}
|
|
4407
|
-
const select$
|
|
4407
|
+
const select$m = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
4408
4408
|
return {
|
|
4409
4409
|
kind: 'Fragment',
|
|
4410
|
-
version: VERSION$
|
|
4410
|
+
version: VERSION$g,
|
|
4411
4411
|
private: [],
|
|
4412
4412
|
selections: [
|
|
4413
4413
|
{
|
|
@@ -4421,7 +4421,7 @@ const select$e = function SemanticRelationshipCriteriaOutputRepresentationSelect
|
|
|
4421
4421
|
]
|
|
4422
4422
|
};
|
|
4423
4423
|
};
|
|
4424
|
-
function equals$
|
|
4424
|
+
function equals$g(existing, incoming) {
|
|
4425
4425
|
const existing_leftSemanticFieldApiName = existing.leftSemanticFieldApiName;
|
|
4426
4426
|
const incoming_leftSemanticFieldApiName = incoming.leftSemanticFieldApiName;
|
|
4427
4427
|
if (!(existing_leftSemanticFieldApiName === incoming_leftSemanticFieldApiName)) {
|
|
@@ -4435,8 +4435,8 @@ function equals$b(existing, incoming) {
|
|
|
4435
4435
|
return true;
|
|
4436
4436
|
}
|
|
4437
4437
|
|
|
4438
|
-
const VERSION$
|
|
4439
|
-
function validate$
|
|
4438
|
+
const VERSION$f = "a0476da7b21cff34e93ec58cd69409f3";
|
|
4439
|
+
function validate$f(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
4440
4440
|
const v_error = (() => {
|
|
4441
4441
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4442
4442
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4469,7 +4469,7 @@ function validate$a(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
4469
4469
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
4470
4470
|
const obj_criteria_item = obj_criteria[i];
|
|
4471
4471
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
4472
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
4472
|
+
const referencepath_criteria_itemValidationError = validate$g(obj_criteria_item, path_criteria_item);
|
|
4473
4473
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
4474
4474
|
let message = 'Object doesn\'t match SemanticRelationshipCriteriaOutputRepresentation (at "' + path_criteria_item + '")\n';
|
|
4475
4475
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4705,11 +4705,11 @@ function validate$a(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
4705
4705
|
})();
|
|
4706
4706
|
return v_error === undefined ? null : v_error;
|
|
4707
4707
|
}
|
|
4708
|
-
const select$
|
|
4709
|
-
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$
|
|
4708
|
+
const select$l = function SemanticRelationshipOutputRepresentationSelect() {
|
|
4709
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$m();
|
|
4710
4710
|
return {
|
|
4711
4711
|
kind: 'Fragment',
|
|
4712
|
-
version: VERSION$
|
|
4712
|
+
version: VERSION$f,
|
|
4713
4713
|
private: [],
|
|
4714
4714
|
selections: [
|
|
4715
4715
|
{
|
|
@@ -4781,7 +4781,7 @@ const select$d = function SemanticRelationshipOutputRepresentationSelect() {
|
|
|
4781
4781
|
]
|
|
4782
4782
|
};
|
|
4783
4783
|
};
|
|
4784
|
-
function equals$
|
|
4784
|
+
function equals$f(existing, incoming) {
|
|
4785
4785
|
const existing_apiName = existing.apiName;
|
|
4786
4786
|
const incoming_apiName = incoming.apiName;
|
|
4787
4787
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -4815,7 +4815,7 @@ function equals$a(existing, incoming) {
|
|
|
4815
4815
|
const existing_criteria = existing.criteria;
|
|
4816
4816
|
const incoming_criteria = incoming.criteria;
|
|
4817
4817
|
const equals_criteria_items = equalsArray(existing_criteria, incoming_criteria, (existing_criteria_item, incoming_criteria_item) => {
|
|
4818
|
-
if (!(equals$
|
|
4818
|
+
if (!(equals$g(existing_criteria_item, incoming_criteria_item))) {
|
|
4819
4819
|
return false;
|
|
4820
4820
|
}
|
|
4821
4821
|
});
|
|
@@ -4897,8 +4897,8 @@ function equals$a(existing, incoming) {
|
|
|
4897
4897
|
return true;
|
|
4898
4898
|
}
|
|
4899
4899
|
|
|
4900
|
-
const VERSION$
|
|
4901
|
-
function validate$
|
|
4900
|
+
const VERSION$e = "a64ebec0737aa5979459f9802d86c492";
|
|
4901
|
+
function validate$e(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
4902
4902
|
const v_error = (() => {
|
|
4903
4903
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4904
4904
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4983,7 +4983,7 @@ function validate$9(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
4983
4983
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
4984
4984
|
const obj_filters_item = obj_filters[i];
|
|
4985
4985
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
4986
|
-
const referencepath_filters_itemValidationError = validate$
|
|
4986
|
+
const referencepath_filters_itemValidationError = validate$m(obj_filters_item, path_filters_item);
|
|
4987
4987
|
if (referencepath_filters_itemValidationError !== null) {
|
|
4988
4988
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
4989
4989
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5087,7 +5087,7 @@ function validate$9(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
5087
5087
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
5088
5088
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
5089
5089
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
5090
|
-
const referencepath_semanticDataObjects_itemValidationError = validate$
|
|
5090
|
+
const referencepath_semanticDataObjects_itemValidationError = validate$h(obj_semanticDataObjects_item, path_semanticDataObjects_item);
|
|
5091
5091
|
if (referencepath_semanticDataObjects_itemValidationError !== null) {
|
|
5092
5092
|
let message = 'Object doesn\'t match SemanticDataObjectOutputRepresentation (at "' + path_semanticDataObjects_item + '")\n';
|
|
5093
5093
|
message += referencepath_semanticDataObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5104,7 +5104,7 @@ function validate$9(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
5104
5104
|
for (let i = 0; i < obj_semanticRelationships.length; i++) {
|
|
5105
5105
|
const obj_semanticRelationships_item = obj_semanticRelationships[i];
|
|
5106
5106
|
const path_semanticRelationships_item = path_semanticRelationships + '[' + i + ']';
|
|
5107
|
-
const referencepath_semanticRelationships_itemValidationError = validate$
|
|
5107
|
+
const referencepath_semanticRelationships_itemValidationError = validate$f(obj_semanticRelationships_item, path_semanticRelationships_item);
|
|
5108
5108
|
if (referencepath_semanticRelationships_itemValidationError !== null) {
|
|
5109
5109
|
let message = 'Object doesn\'t match SemanticRelationshipOutputRepresentation (at "' + path_semanticRelationships_item + '")\n';
|
|
5110
5110
|
message += referencepath_semanticRelationships_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5115,13 +5115,13 @@ function validate$9(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
5115
5115
|
})();
|
|
5116
5116
|
return v_error === undefined ? null : v_error;
|
|
5117
5117
|
}
|
|
5118
|
-
const select$
|
|
5119
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
5120
|
-
const { selections: SemanticDataObjectOutputRepresentation__selections, opaque: SemanticDataObjectOutputRepresentation__opaque, } = select$
|
|
5121
|
-
const { selections: SemanticRelationshipOutputRepresentation__selections, opaque: SemanticRelationshipOutputRepresentation__opaque, } = select$
|
|
5118
|
+
const select$k = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
5119
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$s();
|
|
5120
|
+
const { selections: SemanticDataObjectOutputRepresentation__selections, opaque: SemanticDataObjectOutputRepresentation__opaque, } = select$n();
|
|
5121
|
+
const { selections: SemanticRelationshipOutputRepresentation__selections, opaque: SemanticRelationshipOutputRepresentation__opaque, } = select$l();
|
|
5122
5122
|
return {
|
|
5123
5123
|
kind: 'Fragment',
|
|
5124
|
-
version: VERSION$
|
|
5124
|
+
version: VERSION$e,
|
|
5125
5125
|
private: [],
|
|
5126
5126
|
selections: [
|
|
5127
5127
|
{
|
|
@@ -5188,7 +5188,7 @@ const select$c = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
5188
5188
|
]
|
|
5189
5189
|
};
|
|
5190
5190
|
};
|
|
5191
|
-
function equals$
|
|
5191
|
+
function equals$e(existing, incoming) {
|
|
5192
5192
|
const existing_apiName = existing.apiName;
|
|
5193
5193
|
const incoming_apiName = incoming.apiName;
|
|
5194
5194
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -5245,7 +5245,7 @@ function equals$9(existing, incoming) {
|
|
|
5245
5245
|
return false;
|
|
5246
5246
|
}
|
|
5247
5247
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
5248
|
-
if (!(equals$
|
|
5248
|
+
if (!(equals$m(existing_filters_item, incoming_filters_item))) {
|
|
5249
5249
|
return false;
|
|
5250
5250
|
}
|
|
5251
5251
|
});
|
|
@@ -5294,7 +5294,7 @@ function equals$9(existing, incoming) {
|
|
|
5294
5294
|
return false;
|
|
5295
5295
|
}
|
|
5296
5296
|
const equals_semanticDataObjects_items = equalsArray(existing_semanticDataObjects, incoming_semanticDataObjects, (existing_semanticDataObjects_item, incoming_semanticDataObjects_item) => {
|
|
5297
|
-
if (!(equals$
|
|
5297
|
+
if (!(equals$h(existing_semanticDataObjects_item, incoming_semanticDataObjects_item))) {
|
|
5298
5298
|
return false;
|
|
5299
5299
|
}
|
|
5300
5300
|
});
|
|
@@ -5312,7 +5312,7 @@ function equals$9(existing, incoming) {
|
|
|
5312
5312
|
return false;
|
|
5313
5313
|
}
|
|
5314
5314
|
const equals_semanticRelationships_items = equalsArray(existing_semanticRelationships, incoming_semanticRelationships, (existing_semanticRelationships_item, incoming_semanticRelationships_item) => {
|
|
5315
|
-
if (!(equals$
|
|
5315
|
+
if (!(equals$f(existing_semanticRelationships_item, incoming_semanticRelationships_item))) {
|
|
5316
5316
|
return false;
|
|
5317
5317
|
}
|
|
5318
5318
|
});
|
|
@@ -5323,8 +5323,8 @@ function equals$9(existing, incoming) {
|
|
|
5323
5323
|
return true;
|
|
5324
5324
|
}
|
|
5325
5325
|
|
|
5326
|
-
const VERSION$
|
|
5327
|
-
function validate$
|
|
5326
|
+
const VERSION$d = "442247cb49454990440ef77777be194b";
|
|
5327
|
+
function validate$d(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
5328
5328
|
const v_error = (() => {
|
|
5329
5329
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5330
5330
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5598,10 +5598,10 @@ function validate$8(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
5598
5598
|
})();
|
|
5599
5599
|
return v_error === undefined ? null : v_error;
|
|
5600
5600
|
}
|
|
5601
|
-
const select$
|
|
5601
|
+
const select$j = function SemanticParameterOutputRepresentationSelect() {
|
|
5602
5602
|
return {
|
|
5603
5603
|
kind: 'Fragment',
|
|
5604
|
-
version: VERSION$
|
|
5604
|
+
version: VERSION$d,
|
|
5605
5605
|
private: [],
|
|
5606
5606
|
selections: [
|
|
5607
5607
|
{
|
|
@@ -5676,7 +5676,7 @@ const select$b = function SemanticParameterOutputRepresentationSelect() {
|
|
|
5676
5676
|
]
|
|
5677
5677
|
};
|
|
5678
5678
|
};
|
|
5679
|
-
function equals$
|
|
5679
|
+
function equals$d(existing, incoming) {
|
|
5680
5680
|
const existing_apiName = existing.apiName;
|
|
5681
5681
|
const incoming_apiName = incoming.apiName;
|
|
5682
5682
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -5824,8 +5824,8 @@ function equals$8(existing, incoming) {
|
|
|
5824
5824
|
return true;
|
|
5825
5825
|
}
|
|
5826
5826
|
|
|
5827
|
-
const VERSION$
|
|
5828
|
-
function validate$
|
|
5827
|
+
const VERSION$c = "e1b09a763dac9b0c84047bbd44fcc930";
|
|
5828
|
+
function validate$c(obj, path = 'SemanticDataObjectFieldReferenceOutputRepresentation') {
|
|
5829
5829
|
const v_error = (() => {
|
|
5830
5830
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5831
5831
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5885,10 +5885,10 @@ function validate$7(obj, path = 'SemanticDataObjectFieldReferenceOutputRepresent
|
|
|
5885
5885
|
})();
|
|
5886
5886
|
return v_error === undefined ? null : v_error;
|
|
5887
5887
|
}
|
|
5888
|
-
const select$
|
|
5888
|
+
const select$i = function SemanticDataObjectFieldReferenceOutputRepresentationSelect() {
|
|
5889
5889
|
return {
|
|
5890
5890
|
kind: 'Fragment',
|
|
5891
|
-
version: VERSION$
|
|
5891
|
+
version: VERSION$c,
|
|
5892
5892
|
private: [],
|
|
5893
5893
|
selections: [
|
|
5894
5894
|
{
|
|
@@ -5902,7 +5902,7 @@ const select$a = function SemanticDataObjectFieldReferenceOutputRepresentationSe
|
|
|
5902
5902
|
]
|
|
5903
5903
|
};
|
|
5904
5904
|
};
|
|
5905
|
-
function equals$
|
|
5905
|
+
function equals$c(existing, incoming) {
|
|
5906
5906
|
const existing_dataObjectApiName = existing.dataObjectApiName;
|
|
5907
5907
|
const incoming_dataObjectApiName = incoming.dataObjectApiName;
|
|
5908
5908
|
if (!(existing_dataObjectApiName === incoming_dataObjectApiName)) {
|
|
@@ -5916,8 +5916,8 @@ function equals$7(existing, incoming) {
|
|
|
5916
5916
|
return true;
|
|
5917
5917
|
}
|
|
5918
5918
|
|
|
5919
|
-
const VERSION$
|
|
5920
|
-
function validate$
|
|
5919
|
+
const VERSION$b = "b87f807330c30ae791b72a0c78ed20f0";
|
|
5920
|
+
function validate$b(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
5921
5921
|
const v_error = (() => {
|
|
5922
5922
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5923
5923
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5953,7 +5953,7 @@ function validate$6(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
|
5953
5953
|
if (obj.dataObjectFieldReference !== undefined) {
|
|
5954
5954
|
const obj_dataObjectFieldReference = obj.dataObjectFieldReference;
|
|
5955
5955
|
const path_dataObjectFieldReference = path + '.dataObjectFieldReference';
|
|
5956
|
-
const referencepath_dataObjectFieldReferenceValidationError = validate$
|
|
5956
|
+
const referencepath_dataObjectFieldReferenceValidationError = validate$c(obj_dataObjectFieldReference, path_dataObjectFieldReference);
|
|
5957
5957
|
if (referencepath_dataObjectFieldReferenceValidationError !== null) {
|
|
5958
5958
|
let message = 'Object doesn\'t match SemanticDataObjectFieldReferenceOutputRepresentation (at "' + path_dataObjectFieldReference + '")\n';
|
|
5959
5959
|
message += referencepath_dataObjectFieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5963,11 +5963,11 @@ function validate$6(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
|
5963
5963
|
})();
|
|
5964
5964
|
return v_error === undefined ? null : v_error;
|
|
5965
5965
|
}
|
|
5966
|
-
const select$
|
|
5967
|
-
const { selections: SemanticDataObjectFieldReferenceOutputRepresentation__selections, opaque: SemanticDataObjectFieldReferenceOutputRepresentation__opaque, } = select$
|
|
5966
|
+
const select$h = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
5967
|
+
const { selections: SemanticDataObjectFieldReferenceOutputRepresentation__selections, opaque: SemanticDataObjectFieldReferenceOutputRepresentation__opaque, } = select$i();
|
|
5968
5968
|
return {
|
|
5969
5969
|
kind: 'Fragment',
|
|
5970
|
-
version: VERSION$
|
|
5970
|
+
version: VERSION$b,
|
|
5971
5971
|
private: [],
|
|
5972
5972
|
selections: [
|
|
5973
5973
|
{
|
|
@@ -5984,7 +5984,7 @@ const select$9 = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
|
5984
5984
|
]
|
|
5985
5985
|
};
|
|
5986
5986
|
};
|
|
5987
|
-
function equals$
|
|
5987
|
+
function equals$b(existing, incoming) {
|
|
5988
5988
|
const existing_calculatedFieldApiName = existing.calculatedFieldApiName;
|
|
5989
5989
|
const incoming_calculatedFieldApiName = incoming.calculatedFieldApiName;
|
|
5990
5990
|
// if at least one of these optionals is defined
|
|
@@ -6007,15 +6007,15 @@ function equals$6(existing, incoming) {
|
|
|
6007
6007
|
if (existing_dataObjectFieldReference === undefined || incoming_dataObjectFieldReference === undefined) {
|
|
6008
6008
|
return false;
|
|
6009
6009
|
}
|
|
6010
|
-
if (!(equals$
|
|
6010
|
+
if (!(equals$c(existing_dataObjectFieldReference, incoming_dataObjectFieldReference))) {
|
|
6011
6011
|
return false;
|
|
6012
6012
|
}
|
|
6013
6013
|
}
|
|
6014
6014
|
return true;
|
|
6015
6015
|
}
|
|
6016
6016
|
|
|
6017
|
-
const VERSION$
|
|
6018
|
-
function validate$
|
|
6017
|
+
const VERSION$a = "a50848c632bb205d5e910bb726d9219e";
|
|
6018
|
+
function validate$a(obj, path = 'SemanticIdentifyingDimensionOutputRepresentation') {
|
|
6019
6019
|
const v_error = (() => {
|
|
6020
6020
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6021
6021
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6023,7 +6023,7 @@ function validate$5(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
6023
6023
|
if (obj.identifierDimensionReference !== undefined) {
|
|
6024
6024
|
const obj_identifierDimensionReference = obj.identifierDimensionReference;
|
|
6025
6025
|
const path_identifierDimensionReference = path + '.identifierDimensionReference';
|
|
6026
|
-
const referencepath_identifierDimensionReferenceValidationError = validate$
|
|
6026
|
+
const referencepath_identifierDimensionReferenceValidationError = validate$b(obj_identifierDimensionReference, path_identifierDimensionReference);
|
|
6027
6027
|
if (referencepath_identifierDimensionReferenceValidationError !== null) {
|
|
6028
6028
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_identifierDimensionReference + '")\n';
|
|
6029
6029
|
message += referencepath_identifierDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6033,7 +6033,7 @@ function validate$5(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
6033
6033
|
if (obj.namingDimensionReference !== undefined) {
|
|
6034
6034
|
const obj_namingDimensionReference = obj.namingDimensionReference;
|
|
6035
6035
|
const path_namingDimensionReference = path + '.namingDimensionReference';
|
|
6036
|
-
const referencepath_namingDimensionReferenceValidationError = validate$
|
|
6036
|
+
const referencepath_namingDimensionReferenceValidationError = validate$b(obj_namingDimensionReference, path_namingDimensionReference);
|
|
6037
6037
|
if (referencepath_namingDimensionReferenceValidationError !== null) {
|
|
6038
6038
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_namingDimensionReference + '")\n';
|
|
6039
6039
|
message += referencepath_namingDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6043,11 +6043,11 @@ function validate$5(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
6043
6043
|
})();
|
|
6044
6044
|
return v_error === undefined ? null : v_error;
|
|
6045
6045
|
}
|
|
6046
|
-
const select$
|
|
6047
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6046
|
+
const select$g = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
6047
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$h();
|
|
6048
6048
|
return {
|
|
6049
6049
|
kind: 'Fragment',
|
|
6050
|
-
version: VERSION$
|
|
6050
|
+
version: VERSION$a,
|
|
6051
6051
|
private: [],
|
|
6052
6052
|
selections: [
|
|
6053
6053
|
{
|
|
@@ -6065,7 +6065,7 @@ const select$8 = function SemanticIdentifyingDimensionOutputRepresentationSelect
|
|
|
6065
6065
|
]
|
|
6066
6066
|
};
|
|
6067
6067
|
};
|
|
6068
|
-
function equals$
|
|
6068
|
+
function equals$a(existing, incoming) {
|
|
6069
6069
|
const existing_identifierDimensionReference = existing.identifierDimensionReference;
|
|
6070
6070
|
const incoming_identifierDimensionReference = incoming.identifierDimensionReference;
|
|
6071
6071
|
// if at least one of these optionals is defined
|
|
@@ -6075,7 +6075,7 @@ function equals$5(existing, incoming) {
|
|
|
6075
6075
|
if (existing_identifierDimensionReference === undefined || incoming_identifierDimensionReference === undefined) {
|
|
6076
6076
|
return false;
|
|
6077
6077
|
}
|
|
6078
|
-
if (!(equals$
|
|
6078
|
+
if (!(equals$b(existing_identifierDimensionReference, incoming_identifierDimensionReference))) {
|
|
6079
6079
|
return false;
|
|
6080
6080
|
}
|
|
6081
6081
|
}
|
|
@@ -6088,15 +6088,15 @@ function equals$5(existing, incoming) {
|
|
|
6088
6088
|
if (existing_namingDimensionReference === undefined || incoming_namingDimensionReference === undefined) {
|
|
6089
6089
|
return false;
|
|
6090
6090
|
}
|
|
6091
|
-
if (!(equals$
|
|
6091
|
+
if (!(equals$b(existing_namingDimensionReference, incoming_namingDimensionReference))) {
|
|
6092
6092
|
return false;
|
|
6093
6093
|
}
|
|
6094
6094
|
}
|
|
6095
6095
|
return true;
|
|
6096
6096
|
}
|
|
6097
6097
|
|
|
6098
|
-
const VERSION$
|
|
6099
|
-
function validate$
|
|
6098
|
+
const VERSION$9 = "17b3627ed32ce14cf094b612f904868c";
|
|
6099
|
+
function validate$9(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
6100
6100
|
const v_error = (() => {
|
|
6101
6101
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6102
6102
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6139,10 +6139,10 @@ function validate$4(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
|
6139
6139
|
})();
|
|
6140
6140
|
return v_error === undefined ? null : v_error;
|
|
6141
6141
|
}
|
|
6142
|
-
const select$
|
|
6142
|
+
const select$f = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
6143
6143
|
return {
|
|
6144
6144
|
kind: 'Fragment',
|
|
6145
|
-
version: VERSION$
|
|
6145
|
+
version: VERSION$9,
|
|
6146
6146
|
private: [],
|
|
6147
6147
|
selections: [
|
|
6148
6148
|
{
|
|
@@ -6158,7 +6158,7 @@ const select$7 = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
|
6158
6158
|
]
|
|
6159
6159
|
};
|
|
6160
6160
|
};
|
|
6161
|
-
function equals$
|
|
6161
|
+
function equals$9(existing, incoming) {
|
|
6162
6162
|
const existing_type = existing.type;
|
|
6163
6163
|
const incoming_type = incoming.type;
|
|
6164
6164
|
// if at least one of these optionals is defined
|
|
@@ -6188,8 +6188,8 @@ function equals$4(existing, incoming) {
|
|
|
6188
6188
|
return true;
|
|
6189
6189
|
}
|
|
6190
6190
|
|
|
6191
|
-
const VERSION$
|
|
6192
|
-
function validate$
|
|
6191
|
+
const VERSION$8 = "fa7fce3f52560f7be73634e0fd800f69";
|
|
6192
|
+
function validate$8(obj, path = 'SemanticInsightsSettingsOutputRepresentation') {
|
|
6193
6193
|
const v_error = (() => {
|
|
6194
6194
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6195
6195
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6197,7 +6197,7 @@ function validate$3(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
6197
6197
|
if (obj.identifyingDimension !== undefined) {
|
|
6198
6198
|
const obj_identifyingDimension = obj.identifyingDimension;
|
|
6199
6199
|
const path_identifyingDimension = path + '.identifyingDimension';
|
|
6200
|
-
const referencepath_identifyingDimensionValidationError = validate$
|
|
6200
|
+
const referencepath_identifyingDimensionValidationError = validate$a(obj_identifyingDimension, path_identifyingDimension);
|
|
6201
6201
|
if (referencepath_identifyingDimensionValidationError !== null) {
|
|
6202
6202
|
let message = 'Object doesn\'t match SemanticIdentifyingDimensionOutputRepresentation (at "' + path_identifyingDimension + '")\n';
|
|
6203
6203
|
message += referencepath_identifyingDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6213,7 +6213,7 @@ function validate$3(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
6213
6213
|
for (let i = 0; i < obj_insightTypes.length; i++) {
|
|
6214
6214
|
const obj_insightTypes_item = obj_insightTypes[i];
|
|
6215
6215
|
const path_insightTypes_item = path_insightTypes + '[' + i + ']';
|
|
6216
|
-
const referencepath_insightTypes_itemValidationError = validate$
|
|
6216
|
+
const referencepath_insightTypes_itemValidationError = validate$9(obj_insightTypes_item, path_insightTypes_item);
|
|
6217
6217
|
if (referencepath_insightTypes_itemValidationError !== null) {
|
|
6218
6218
|
let message = 'Object doesn\'t match SemanticInsightTypeOutputRepresentation (at "' + path_insightTypes_item + '")\n';
|
|
6219
6219
|
message += referencepath_insightTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6230,7 +6230,7 @@ function validate$3(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
6230
6230
|
for (let i = 0; i < obj_insightsDimensionsReferences.length; i++) {
|
|
6231
6231
|
const obj_insightsDimensionsReferences_item = obj_insightsDimensionsReferences[i];
|
|
6232
6232
|
const path_insightsDimensionsReferences_item = path_insightsDimensionsReferences + '[' + i + ']';
|
|
6233
|
-
const referencepath_insightsDimensionsReferences_itemValidationError = validate$
|
|
6233
|
+
const referencepath_insightsDimensionsReferences_itemValidationError = validate$b(obj_insightsDimensionsReferences_item, path_insightsDimensionsReferences_item);
|
|
6234
6234
|
if (referencepath_insightsDimensionsReferences_itemValidationError !== null) {
|
|
6235
6235
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_insightsDimensionsReferences_item + '")\n';
|
|
6236
6236
|
message += referencepath_insightsDimensionsReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6297,13 +6297,13 @@ function validate$3(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
6297
6297
|
})();
|
|
6298
6298
|
return v_error === undefined ? null : v_error;
|
|
6299
6299
|
}
|
|
6300
|
-
const select$
|
|
6301
|
-
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$
|
|
6302
|
-
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$
|
|
6303
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6300
|
+
const select$e = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
6301
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$g();
|
|
6302
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$f();
|
|
6303
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$h();
|
|
6304
6304
|
return {
|
|
6305
6305
|
kind: 'Fragment',
|
|
6306
|
-
version: VERSION$
|
|
6306
|
+
version: VERSION$8,
|
|
6307
6307
|
private: [],
|
|
6308
6308
|
selections: [
|
|
6309
6309
|
{
|
|
@@ -6339,7 +6339,7 @@ const select$6 = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
|
6339
6339
|
]
|
|
6340
6340
|
};
|
|
6341
6341
|
};
|
|
6342
|
-
function equals$
|
|
6342
|
+
function equals$8(existing, incoming) {
|
|
6343
6343
|
const existing_identifyingDimension = existing.identifyingDimension;
|
|
6344
6344
|
const incoming_identifyingDimension = incoming.identifyingDimension;
|
|
6345
6345
|
// if at least one of these optionals is defined
|
|
@@ -6349,7 +6349,7 @@ function equals$3(existing, incoming) {
|
|
|
6349
6349
|
if (existing_identifyingDimension === undefined || incoming_identifyingDimension === undefined) {
|
|
6350
6350
|
return false;
|
|
6351
6351
|
}
|
|
6352
|
-
if (!(equals$
|
|
6352
|
+
if (!(equals$a(existing_identifyingDimension, incoming_identifyingDimension))) {
|
|
6353
6353
|
return false;
|
|
6354
6354
|
}
|
|
6355
6355
|
}
|
|
@@ -6363,7 +6363,7 @@ function equals$3(existing, incoming) {
|
|
|
6363
6363
|
return false;
|
|
6364
6364
|
}
|
|
6365
6365
|
const equals_insightTypes_items = equalsArray(existing_insightTypes, incoming_insightTypes, (existing_insightTypes_item, incoming_insightTypes_item) => {
|
|
6366
|
-
if (!(equals$
|
|
6366
|
+
if (!(equals$9(existing_insightTypes_item, incoming_insightTypes_item))) {
|
|
6367
6367
|
return false;
|
|
6368
6368
|
}
|
|
6369
6369
|
});
|
|
@@ -6381,7 +6381,7 @@ function equals$3(existing, incoming) {
|
|
|
6381
6381
|
return false;
|
|
6382
6382
|
}
|
|
6383
6383
|
const equals_insightsDimensionsReferences_items = equalsArray(existing_insightsDimensionsReferences, incoming_insightsDimensionsReferences, (existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item) => {
|
|
6384
|
-
if (!(equals$
|
|
6384
|
+
if (!(equals$b(existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item))) {
|
|
6385
6385
|
return false;
|
|
6386
6386
|
}
|
|
6387
6387
|
});
|
|
@@ -6418,8 +6418,8 @@ function equals$3(existing, incoming) {
|
|
|
6418
6418
|
return true;
|
|
6419
6419
|
}
|
|
6420
6420
|
|
|
6421
|
-
const VERSION$
|
|
6422
|
-
function validate$
|
|
6421
|
+
const VERSION$7 = "7215db3e07d470ddcb00280a19f7fbcd";
|
|
6422
|
+
function validate$7(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
6423
6423
|
const v_error = (() => {
|
|
6424
6424
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6425
6425
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6433,7 +6433,7 @@ function validate$2(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6433
6433
|
for (let i = 0; i < obj_adjustableFilters.length; i++) {
|
|
6434
6434
|
const obj_adjustableFilters_item = obj_adjustableFilters[i];
|
|
6435
6435
|
const path_adjustableFilters_item = path_adjustableFilters + '[' + i + ']';
|
|
6436
|
-
const referencepath_adjustableFilters_itemValidationError = validate$
|
|
6436
|
+
const referencepath_adjustableFilters_itemValidationError = validate$b(obj_adjustableFilters_item, path_adjustableFilters_item);
|
|
6437
6437
|
if (referencepath_adjustableFilters_itemValidationError !== null) {
|
|
6438
6438
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_adjustableFilters_item + '")\n';
|
|
6439
6439
|
message += referencepath_adjustableFilters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6521,7 +6521,7 @@ function validate$2(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6521
6521
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
6522
6522
|
const obj_filters_item = obj_filters[i];
|
|
6523
6523
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
6524
|
-
const referencepath_filters_itemValidationError = validate$
|
|
6524
|
+
const referencepath_filters_itemValidationError = validate$m(obj_filters_item, path_filters_item);
|
|
6525
6525
|
if (referencepath_filters_itemValidationError !== null) {
|
|
6526
6526
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
6527
6527
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6537,7 +6537,7 @@ function validate$2(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6537
6537
|
if (obj.insightsSettings !== undefined) {
|
|
6538
6538
|
const obj_insightsSettings = obj.insightsSettings;
|
|
6539
6539
|
const path_insightsSettings = path + '.insightsSettings';
|
|
6540
|
-
const referencepath_insightsSettingsValidationError = validate$
|
|
6540
|
+
const referencepath_insightsSettingsValidationError = validate$8(obj_insightsSettings, path_insightsSettings);
|
|
6541
6541
|
if (referencepath_insightsSettingsValidationError !== null) {
|
|
6542
6542
|
let message = 'Object doesn\'t match SemanticInsightsSettingsOutputRepresentation (at "' + path_insightsSettings + '")\n';
|
|
6543
6543
|
message += referencepath_insightsSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6629,7 +6629,7 @@ function validate$2(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6629
6629
|
if (obj.measurementReference !== undefined) {
|
|
6630
6630
|
const obj_measurementReference = obj.measurementReference;
|
|
6631
6631
|
const path_measurementReference = path + '.measurementReference';
|
|
6632
|
-
const referencepath_measurementReferenceValidationError = validate$
|
|
6632
|
+
const referencepath_measurementReferenceValidationError = validate$b(obj_measurementReference, path_measurementReference);
|
|
6633
6633
|
if (referencepath_measurementReferenceValidationError !== null) {
|
|
6634
6634
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_measurementReference + '")\n';
|
|
6635
6635
|
message += referencepath_measurementReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6639,7 +6639,7 @@ function validate$2(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6639
6639
|
if (obj.timeDimensionReference !== undefined) {
|
|
6640
6640
|
const obj_timeDimensionReference = obj.timeDimensionReference;
|
|
6641
6641
|
const path_timeDimensionReference = path + '.timeDimensionReference';
|
|
6642
|
-
const referencepath_timeDimensionReferenceValidationError = validate$
|
|
6642
|
+
const referencepath_timeDimensionReferenceValidationError = validate$b(obj_timeDimensionReference, path_timeDimensionReference);
|
|
6643
6643
|
if (referencepath_timeDimensionReferenceValidationError !== null) {
|
|
6644
6644
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_timeDimensionReference + '")\n';
|
|
6645
6645
|
message += referencepath_timeDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6663,26 +6663,26 @@ function validate$2(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6663
6663
|
})();
|
|
6664
6664
|
return v_error === undefined ? null : v_error;
|
|
6665
6665
|
}
|
|
6666
|
-
const RepresentationType$
|
|
6667
|
-
function keyBuilder$
|
|
6668
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6666
|
+
const RepresentationType$6 = 'SemanticMetricOutputRepresentation';
|
|
6667
|
+
function keyBuilder$e(luvio, config) {
|
|
6668
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.name;
|
|
6669
6669
|
}
|
|
6670
|
-
function keyBuilderFromType$
|
|
6670
|
+
function keyBuilderFromType$2(luvio, object) {
|
|
6671
6671
|
const keyParams = {
|
|
6672
6672
|
name: object.id
|
|
6673
6673
|
};
|
|
6674
|
-
return keyBuilder$
|
|
6674
|
+
return keyBuilder$e(luvio, keyParams);
|
|
6675
6675
|
}
|
|
6676
|
-
function normalize$
|
|
6676
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
6677
6677
|
return input;
|
|
6678
6678
|
}
|
|
6679
|
-
const select$
|
|
6680
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6681
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
6682
|
-
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$
|
|
6679
|
+
const select$d = function SemanticMetricOutputRepresentationSelect() {
|
|
6680
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$h();
|
|
6681
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$s();
|
|
6682
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$e();
|
|
6683
6683
|
return {
|
|
6684
6684
|
kind: 'Fragment',
|
|
6685
|
-
version: VERSION$
|
|
6685
|
+
version: VERSION$7,
|
|
6686
6686
|
private: [],
|
|
6687
6687
|
selections: [
|
|
6688
6688
|
{
|
|
@@ -6766,7 +6766,7 @@ const select$5 = function SemanticMetricOutputRepresentationSelect() {
|
|
|
6766
6766
|
]
|
|
6767
6767
|
};
|
|
6768
6768
|
};
|
|
6769
|
-
function equals$
|
|
6769
|
+
function equals$7(existing, incoming) {
|
|
6770
6770
|
const existing_apiName = existing.apiName;
|
|
6771
6771
|
const incoming_apiName = incoming.apiName;
|
|
6772
6772
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -6797,7 +6797,7 @@ function equals$2(existing, incoming) {
|
|
|
6797
6797
|
return false;
|
|
6798
6798
|
}
|
|
6799
6799
|
const equals_adjustableFilters_items = equalsArray(existing_adjustableFilters, incoming_adjustableFilters, (existing_adjustableFilters_item, incoming_adjustableFilters_item) => {
|
|
6800
|
-
if (!(equals$
|
|
6800
|
+
if (!(equals$b(existing_adjustableFilters_item, incoming_adjustableFilters_item))) {
|
|
6801
6801
|
return false;
|
|
6802
6802
|
}
|
|
6803
6803
|
});
|
|
@@ -6841,7 +6841,7 @@ function equals$2(existing, incoming) {
|
|
|
6841
6841
|
return false;
|
|
6842
6842
|
}
|
|
6843
6843
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
6844
|
-
if (!(equals$
|
|
6844
|
+
if (!(equals$m(existing_filters_item, incoming_filters_item))) {
|
|
6845
6845
|
return false;
|
|
6846
6846
|
}
|
|
6847
6847
|
});
|
|
@@ -6858,7 +6858,7 @@ function equals$2(existing, incoming) {
|
|
|
6858
6858
|
if (existing_insightsSettings === undefined || incoming_insightsSettings === undefined) {
|
|
6859
6859
|
return false;
|
|
6860
6860
|
}
|
|
6861
|
-
if (!(equals$
|
|
6861
|
+
if (!(equals$8(existing_insightsSettings, incoming_insightsSettings))) {
|
|
6862
6862
|
return false;
|
|
6863
6863
|
}
|
|
6864
6864
|
}
|
|
@@ -6902,7 +6902,7 @@ function equals$2(existing, incoming) {
|
|
|
6902
6902
|
if (existing_measurementReference === undefined || incoming_measurementReference === undefined) {
|
|
6903
6903
|
return false;
|
|
6904
6904
|
}
|
|
6905
|
-
if (!(equals$
|
|
6905
|
+
if (!(equals$b(existing_measurementReference, incoming_measurementReference))) {
|
|
6906
6906
|
return false;
|
|
6907
6907
|
}
|
|
6908
6908
|
}
|
|
@@ -6915,7 +6915,7 @@ function equals$2(existing, incoming) {
|
|
|
6915
6915
|
if (existing_timeDimensionReference === undefined || incoming_timeDimensionReference === undefined) {
|
|
6916
6916
|
return false;
|
|
6917
6917
|
}
|
|
6918
|
-
if (!(equals$
|
|
6918
|
+
if (!(equals$b(existing_timeDimensionReference, incoming_timeDimensionReference))) {
|
|
6919
6919
|
return false;
|
|
6920
6920
|
}
|
|
6921
6921
|
}
|
|
@@ -6939,30 +6939,30 @@ function equals$2(existing, incoming) {
|
|
|
6939
6939
|
}
|
|
6940
6940
|
return true;
|
|
6941
6941
|
}
|
|
6942
|
-
const ingest$
|
|
6942
|
+
const ingest$6 = function SemanticMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6943
6943
|
if (process.env.NODE_ENV !== 'production') {
|
|
6944
|
-
const validateError = validate$
|
|
6944
|
+
const validateError = validate$7(input);
|
|
6945
6945
|
if (validateError !== null) {
|
|
6946
6946
|
throw validateError;
|
|
6947
6947
|
}
|
|
6948
6948
|
}
|
|
6949
|
-
const key = keyBuilderFromType$
|
|
6949
|
+
const key = keyBuilderFromType$2(luvio, input);
|
|
6950
6950
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
6951
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6951
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SemanticAuthoring", VERSION$7, RepresentationType$6, equals$7);
|
|
6952
6952
|
return createLink(key);
|
|
6953
6953
|
};
|
|
6954
|
-
function getTypeCacheKeys$
|
|
6954
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
6955
6955
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6956
|
-
const rootKey = keyBuilderFromType$
|
|
6956
|
+
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
6957
6957
|
rootKeySet.set(rootKey, {
|
|
6958
6958
|
namespace: keyPrefix,
|
|
6959
|
-
representationName: RepresentationType$
|
|
6959
|
+
representationName: RepresentationType$6,
|
|
6960
6960
|
mergeable: false
|
|
6961
6961
|
});
|
|
6962
6962
|
}
|
|
6963
6963
|
|
|
6964
|
-
const VERSION$
|
|
6965
|
-
function validate$
|
|
6964
|
+
const VERSION$6 = "211d40c65f36ad1fef49d7348f6d9a76";
|
|
6965
|
+
function validate$6(obj, path = 'SemanticModelOutputRepresentation') {
|
|
6966
6966
|
const v_error = (() => {
|
|
6967
6967
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6968
6968
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7009,7 +7009,7 @@ function validate$1(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
7009
7009
|
for (let i = 0; i < obj_baseModels.length; i++) {
|
|
7010
7010
|
const obj_baseModels_item = obj_baseModels[i];
|
|
7011
7011
|
const path_baseModels_item = path_baseModels + '[' + i + ']';
|
|
7012
|
-
const referencepath_baseModels_itemValidationError = validate$
|
|
7012
|
+
const referencepath_baseModels_itemValidationError = validate$n(obj_baseModels_item, path_baseModels_item);
|
|
7013
7013
|
if (referencepath_baseModels_itemValidationError !== null) {
|
|
7014
7014
|
let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
|
|
7015
7015
|
message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7198,7 +7198,7 @@ function validate$1(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
7198
7198
|
for (let i = 0; i < obj_semanticCalculatedDimensions.length; i++) {
|
|
7199
7199
|
const obj_semanticCalculatedDimensions_item = obj_semanticCalculatedDimensions[i];
|
|
7200
7200
|
const path_semanticCalculatedDimensions_item = path_semanticCalculatedDimensions + '[' + i + ']';
|
|
7201
|
-
const referencepath_semanticCalculatedDimensions_itemValidationError = validate$
|
|
7201
|
+
const referencepath_semanticCalculatedDimensions_itemValidationError = validate$l(obj_semanticCalculatedDimensions_item, path_semanticCalculatedDimensions_item);
|
|
7202
7202
|
if (referencepath_semanticCalculatedDimensions_itemValidationError !== null) {
|
|
7203
7203
|
let message = 'Object doesn\'t match SemanticCalculatedDimensionOutputRepresentation (at "' + path_semanticCalculatedDimensions_item + '")\n';
|
|
7204
7204
|
message += referencepath_semanticCalculatedDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7243,7 +7243,7 @@ function validate$1(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
7243
7243
|
for (let i = 0; i < obj_semanticCalculatedMeasurements.length; i++) {
|
|
7244
7244
|
const obj_semanticCalculatedMeasurements_item = obj_semanticCalculatedMeasurements[i];
|
|
7245
7245
|
const path_semanticCalculatedMeasurements_item = path_semanticCalculatedMeasurements + '[' + i + ']';
|
|
7246
|
-
const referencepath_semanticCalculatedMeasurements_itemValidationError = validate$
|
|
7246
|
+
const referencepath_semanticCalculatedMeasurements_itemValidationError = validate$k(obj_semanticCalculatedMeasurements_item, path_semanticCalculatedMeasurements_item);
|
|
7247
7247
|
if (referencepath_semanticCalculatedMeasurements_itemValidationError !== null) {
|
|
7248
7248
|
let message = 'Object doesn\'t match SemanticCalculatedMeasurementOutputRepresentation (at "' + path_semanticCalculatedMeasurements_item + '")\n';
|
|
7249
7249
|
message += referencepath_semanticCalculatedMeasurements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7288,7 +7288,7 @@ function validate$1(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
7288
7288
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
7289
7289
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
7290
7290
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
7291
|
-
const referencepath_semanticDataObjects_itemValidationError = validate$
|
|
7291
|
+
const referencepath_semanticDataObjects_itemValidationError = validate$h(obj_semanticDataObjects_item, path_semanticDataObjects_item);
|
|
7292
7292
|
if (referencepath_semanticDataObjects_itemValidationError !== null) {
|
|
7293
7293
|
let message = 'Object doesn\'t match SemanticDataObjectOutputRepresentation (at "' + path_semanticDataObjects_item + '")\n';
|
|
7294
7294
|
message += referencepath_semanticDataObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7333,7 +7333,7 @@ function validate$1(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
7333
7333
|
for (let i = 0; i < obj_semanticLogicalViews.length; i++) {
|
|
7334
7334
|
const obj_semanticLogicalViews_item = obj_semanticLogicalViews[i];
|
|
7335
7335
|
const path_semanticLogicalViews_item = path_semanticLogicalViews + '[' + i + ']';
|
|
7336
|
-
const referencepath_semanticLogicalViews_itemValidationError = validate$
|
|
7336
|
+
const referencepath_semanticLogicalViews_itemValidationError = validate$e(obj_semanticLogicalViews_item, path_semanticLogicalViews_item);
|
|
7337
7337
|
if (referencepath_semanticLogicalViews_itemValidationError !== null) {
|
|
7338
7338
|
let message = 'Object doesn\'t match SemanticLogicalViewOutputRepresentation (at "' + path_semanticLogicalViews_item + '")\n';
|
|
7339
7339
|
message += referencepath_semanticLogicalViews_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7364,7 +7364,7 @@ function validate$1(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
7364
7364
|
for (let i = 0; i < obj_semanticParameters.length; i++) {
|
|
7365
7365
|
const obj_semanticParameters_item = obj_semanticParameters[i];
|
|
7366
7366
|
const path_semanticParameters_item = path_semanticParameters + '[' + i + ']';
|
|
7367
|
-
const referencepath_semanticParameters_itemValidationError = validate$
|
|
7367
|
+
const referencepath_semanticParameters_itemValidationError = validate$d(obj_semanticParameters_item, path_semanticParameters_item);
|
|
7368
7368
|
if (referencepath_semanticParameters_itemValidationError !== null) {
|
|
7369
7369
|
let message = 'Object doesn\'t match SemanticParameterOutputRepresentation (at "' + path_semanticParameters_item + '")\n';
|
|
7370
7370
|
message += referencepath_semanticParameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7409,7 +7409,7 @@ function validate$1(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
7409
7409
|
for (let i = 0; i < obj_semanticRelationships.length; i++) {
|
|
7410
7410
|
const obj_semanticRelationships_item = obj_semanticRelationships[i];
|
|
7411
7411
|
const path_semanticRelationships_item = path_semanticRelationships + '[' + i + ']';
|
|
7412
|
-
const referencepath_semanticRelationships_itemValidationError = validate$
|
|
7412
|
+
const referencepath_semanticRelationships_itemValidationError = validate$f(obj_semanticRelationships_item, path_semanticRelationships_item);
|
|
7413
7413
|
if (referencepath_semanticRelationships_itemValidationError !== null) {
|
|
7414
7414
|
let message = 'Object doesn\'t match SemanticRelationshipOutputRepresentation (at "' + path_semanticRelationships_item + '")\n';
|
|
7415
7415
|
message += referencepath_semanticRelationships_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7448,24 +7448,24 @@ function validate$1(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
7448
7448
|
})();
|
|
7449
7449
|
return v_error === undefined ? null : v_error;
|
|
7450
7450
|
}
|
|
7451
|
-
const RepresentationType$
|
|
7452
|
-
function keyBuilder$
|
|
7453
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7451
|
+
const RepresentationType$5 = 'SemanticModelOutputRepresentation';
|
|
7452
|
+
function keyBuilder$d(luvio, config) {
|
|
7453
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + config.name;
|
|
7454
7454
|
}
|
|
7455
|
-
function keyBuilderFromType(luvio, object) {
|
|
7455
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
7456
7456
|
const keyParams = {
|
|
7457
7457
|
name: object.apiName
|
|
7458
7458
|
};
|
|
7459
|
-
return keyBuilder$
|
|
7459
|
+
return keyBuilder$d(luvio, keyParams);
|
|
7460
7460
|
}
|
|
7461
|
-
function normalize$
|
|
7461
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
7462
7462
|
const input_semanticMetrics = input.semanticMetrics;
|
|
7463
7463
|
const input_semanticMetrics_id = path.fullPath + '__semanticMetrics';
|
|
7464
7464
|
if (input_semanticMetrics !== undefined) {
|
|
7465
7465
|
for (let i = 0; i < input_semanticMetrics.length; i++) {
|
|
7466
7466
|
const input_semanticMetrics_item = input_semanticMetrics[i];
|
|
7467
7467
|
let input_semanticMetrics_item_id = input_semanticMetrics_id + '__' + i;
|
|
7468
|
-
input_semanticMetrics[i] = ingest$
|
|
7468
|
+
input_semanticMetrics[i] = ingest$6(input_semanticMetrics_item, {
|
|
7469
7469
|
fullPath: input_semanticMetrics_item_id,
|
|
7470
7470
|
propertyName: i,
|
|
7471
7471
|
parent: {
|
|
@@ -7479,17 +7479,17 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
7479
7479
|
}
|
|
7480
7480
|
return input;
|
|
7481
7481
|
}
|
|
7482
|
-
const select$
|
|
7483
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
7484
|
-
const { selections: SemanticCalculatedDimensionOutputRepresentation__selections, opaque: SemanticCalculatedDimensionOutputRepresentation__opaque, } = select$
|
|
7485
|
-
const { selections: SemanticCalculatedMeasurementOutputRepresentation__selections, opaque: SemanticCalculatedMeasurementOutputRepresentation__opaque, } = select$
|
|
7486
|
-
const { selections: SemanticDataObjectOutputRepresentation__selections, opaque: SemanticDataObjectOutputRepresentation__opaque, } = select$
|
|
7487
|
-
const { selections: SemanticLogicalViewOutputRepresentation__selections, opaque: SemanticLogicalViewOutputRepresentation__opaque, } = select$
|
|
7488
|
-
const { selections: SemanticParameterOutputRepresentation__selections, opaque: SemanticParameterOutputRepresentation__opaque, } = select$
|
|
7489
|
-
const { selections: SemanticRelationshipOutputRepresentation__selections, opaque: SemanticRelationshipOutputRepresentation__opaque, } = select$
|
|
7482
|
+
const select$c = function SemanticModelOutputRepresentationSelect() {
|
|
7483
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$t();
|
|
7484
|
+
const { selections: SemanticCalculatedDimensionOutputRepresentation__selections, opaque: SemanticCalculatedDimensionOutputRepresentation__opaque, } = select$r();
|
|
7485
|
+
const { selections: SemanticCalculatedMeasurementOutputRepresentation__selections, opaque: SemanticCalculatedMeasurementOutputRepresentation__opaque, } = select$q();
|
|
7486
|
+
const { selections: SemanticDataObjectOutputRepresentation__selections, opaque: SemanticDataObjectOutputRepresentation__opaque, } = select$n();
|
|
7487
|
+
const { selections: SemanticLogicalViewOutputRepresentation__selections, opaque: SemanticLogicalViewOutputRepresentation__opaque, } = select$k();
|
|
7488
|
+
const { selections: SemanticParameterOutputRepresentation__selections, opaque: SemanticParameterOutputRepresentation__opaque, } = select$j();
|
|
7489
|
+
const { selections: SemanticRelationshipOutputRepresentation__selections, opaque: SemanticRelationshipOutputRepresentation__opaque, } = select$l();
|
|
7490
7490
|
return {
|
|
7491
7491
|
kind: 'Fragment',
|
|
7492
|
-
version: VERSION$
|
|
7492
|
+
version: VERSION$6,
|
|
7493
7493
|
private: [],
|
|
7494
7494
|
selections: [
|
|
7495
7495
|
{
|
|
@@ -7602,7 +7602,7 @@ const select$4 = function SemanticModelOutputRepresentationSelect() {
|
|
|
7602
7602
|
kind: 'Link',
|
|
7603
7603
|
plural: true,
|
|
7604
7604
|
required: false,
|
|
7605
|
-
fragment: select$
|
|
7605
|
+
fragment: select$d()
|
|
7606
7606
|
},
|
|
7607
7607
|
{
|
|
7608
7608
|
name: 'semanticParameters',
|
|
@@ -7631,7 +7631,7 @@ const select$4 = function SemanticModelOutputRepresentationSelect() {
|
|
|
7631
7631
|
]
|
|
7632
7632
|
};
|
|
7633
7633
|
};
|
|
7634
|
-
function equals$
|
|
7634
|
+
function equals$6(existing, incoming) {
|
|
7635
7635
|
const existing_apiName = existing.apiName;
|
|
7636
7636
|
const incoming_apiName = incoming.apiName;
|
|
7637
7637
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -7688,7 +7688,7 @@ function equals$1(existing, incoming) {
|
|
|
7688
7688
|
return false;
|
|
7689
7689
|
}
|
|
7690
7690
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
7691
|
-
if (!(equals$
|
|
7691
|
+
if (!(equals$n(existing_baseModels_item, incoming_baseModels_item))) {
|
|
7692
7692
|
return false;
|
|
7693
7693
|
}
|
|
7694
7694
|
});
|
|
@@ -7773,7 +7773,7 @@ function equals$1(existing, incoming) {
|
|
|
7773
7773
|
return false;
|
|
7774
7774
|
}
|
|
7775
7775
|
const equals_semanticCalculatedDimensions_items = equalsArray(existing_semanticCalculatedDimensions, incoming_semanticCalculatedDimensions, (existing_semanticCalculatedDimensions_item, incoming_semanticCalculatedDimensions_item) => {
|
|
7776
|
-
if (!(equals$
|
|
7776
|
+
if (!(equals$l(existing_semanticCalculatedDimensions_item, incoming_semanticCalculatedDimensions_item))) {
|
|
7777
7777
|
return false;
|
|
7778
7778
|
}
|
|
7779
7779
|
});
|
|
@@ -7804,7 +7804,7 @@ function equals$1(existing, incoming) {
|
|
|
7804
7804
|
return false;
|
|
7805
7805
|
}
|
|
7806
7806
|
const equals_semanticCalculatedMeasurements_items = equalsArray(existing_semanticCalculatedMeasurements, incoming_semanticCalculatedMeasurements, (existing_semanticCalculatedMeasurements_item, incoming_semanticCalculatedMeasurements_item) => {
|
|
7807
|
-
if (!(equals$
|
|
7807
|
+
if (!(equals$k(existing_semanticCalculatedMeasurements_item, incoming_semanticCalculatedMeasurements_item))) {
|
|
7808
7808
|
return false;
|
|
7809
7809
|
}
|
|
7810
7810
|
});
|
|
@@ -7835,7 +7835,7 @@ function equals$1(existing, incoming) {
|
|
|
7835
7835
|
return false;
|
|
7836
7836
|
}
|
|
7837
7837
|
const equals_semanticDataObjects_items = equalsArray(existing_semanticDataObjects, incoming_semanticDataObjects, (existing_semanticDataObjects_item, incoming_semanticDataObjects_item) => {
|
|
7838
|
-
if (!(equals$
|
|
7838
|
+
if (!(equals$h(existing_semanticDataObjects_item, incoming_semanticDataObjects_item))) {
|
|
7839
7839
|
return false;
|
|
7840
7840
|
}
|
|
7841
7841
|
});
|
|
@@ -7866,7 +7866,7 @@ function equals$1(existing, incoming) {
|
|
|
7866
7866
|
return false;
|
|
7867
7867
|
}
|
|
7868
7868
|
const equals_semanticLogicalViews_items = equalsArray(existing_semanticLogicalViews, incoming_semanticLogicalViews, (existing_semanticLogicalViews_item, incoming_semanticLogicalViews_item) => {
|
|
7869
|
-
if (!(equals$
|
|
7869
|
+
if (!(equals$e(existing_semanticLogicalViews_item, incoming_semanticLogicalViews_item))) {
|
|
7870
7870
|
return false;
|
|
7871
7871
|
}
|
|
7872
7872
|
});
|
|
@@ -7902,7 +7902,7 @@ function equals$1(existing, incoming) {
|
|
|
7902
7902
|
return false;
|
|
7903
7903
|
}
|
|
7904
7904
|
const equals_semanticParameters_items = equalsArray(existing_semanticParameters, incoming_semanticParameters, (existing_semanticParameters_item, incoming_semanticParameters_item) => {
|
|
7905
|
-
if (!(equals$
|
|
7905
|
+
if (!(equals$d(existing_semanticParameters_item, incoming_semanticParameters_item))) {
|
|
7906
7906
|
return false;
|
|
7907
7907
|
}
|
|
7908
7908
|
});
|
|
@@ -7933,7 +7933,7 @@ function equals$1(existing, incoming) {
|
|
|
7933
7933
|
return false;
|
|
7934
7934
|
}
|
|
7935
7935
|
const equals_semanticRelationships_items = equalsArray(existing_semanticRelationships, incoming_semanticRelationships, (existing_semanticRelationships_item, incoming_semanticRelationships_item) => {
|
|
7936
|
-
if (!(equals$
|
|
7936
|
+
if (!(equals$f(existing_semanticRelationships_item, incoming_semanticRelationships_item))) {
|
|
7937
7937
|
return false;
|
|
7938
7938
|
}
|
|
7939
7939
|
});
|
|
@@ -7956,52 +7956,52 @@ function equals$1(existing, incoming) {
|
|
|
7956
7956
|
}
|
|
7957
7957
|
return true;
|
|
7958
7958
|
}
|
|
7959
|
-
const ingest$
|
|
7959
|
+
const ingest$5 = function SemanticModelOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7960
7960
|
if (process.env.NODE_ENV !== 'production') {
|
|
7961
|
-
const validateError = validate$
|
|
7961
|
+
const validateError = validate$6(input);
|
|
7962
7962
|
if (validateError !== null) {
|
|
7963
7963
|
throw validateError;
|
|
7964
7964
|
}
|
|
7965
7965
|
}
|
|
7966
|
-
const key = keyBuilderFromType(luvio, input);
|
|
7966
|
+
const key = keyBuilderFromType$1(luvio, input);
|
|
7967
7967
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7968
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7968
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "SemanticAuthoring", VERSION$6, RepresentationType$5, equals$6);
|
|
7969
7969
|
return createLink(key);
|
|
7970
7970
|
};
|
|
7971
|
-
function getTypeCacheKeys$
|
|
7971
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
7972
7972
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7973
|
-
const rootKey = keyBuilderFromType(luvio, input);
|
|
7973
|
+
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
7974
7974
|
rootKeySet.set(rootKey, {
|
|
7975
7975
|
namespace: keyPrefix,
|
|
7976
|
-
representationName: RepresentationType$
|
|
7976
|
+
representationName: RepresentationType$5,
|
|
7977
7977
|
mergeable: false
|
|
7978
7978
|
});
|
|
7979
7979
|
if (input.semanticMetrics !== undefined) {
|
|
7980
7980
|
const input_semanticMetrics_length = input.semanticMetrics.length;
|
|
7981
7981
|
for (let i = 0; i < input_semanticMetrics_length; i++) {
|
|
7982
|
-
getTypeCacheKeys$
|
|
7982
|
+
getTypeCacheKeys$6(rootKeySet, luvio, input.semanticMetrics[i]);
|
|
7983
7983
|
}
|
|
7984
7984
|
}
|
|
7985
7985
|
}
|
|
7986
7986
|
|
|
7987
|
-
function select$
|
|
7988
|
-
return select$
|
|
7987
|
+
function select$b(luvio, params) {
|
|
7988
|
+
return select$c();
|
|
7989
7989
|
}
|
|
7990
|
-
function keyBuilder$
|
|
7991
|
-
return keyBuilder$
|
|
7990
|
+
function keyBuilder$c(luvio, params) {
|
|
7991
|
+
return keyBuilder$d(luvio, {
|
|
7992
7992
|
name: params.urlParams.modelApiNameOrId
|
|
7993
7993
|
});
|
|
7994
7994
|
}
|
|
7995
|
-
function getResponseCacheKeys$
|
|
7996
|
-
getTypeCacheKeys$
|
|
7995
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
7996
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
7997
7997
|
}
|
|
7998
|
-
function ingestSuccess$
|
|
7998
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
7999
7999
|
const { body } = response;
|
|
8000
|
-
const key = keyBuilder$
|
|
8001
|
-
luvio.storeIngest(key, ingest$
|
|
8000
|
+
const key = keyBuilder$c(luvio, resourceParams);
|
|
8001
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
8002
8002
|
const snapshot = luvio.storeLookup({
|
|
8003
8003
|
recordId: key,
|
|
8004
|
-
node: select$
|
|
8004
|
+
node: select$b(),
|
|
8005
8005
|
variables: {},
|
|
8006
8006
|
}, snapshotRefresh);
|
|
8007
8007
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -8012,13 +8012,13 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
8012
8012
|
deepFreeze(snapshot.data);
|
|
8013
8013
|
return snapshot;
|
|
8014
8014
|
}
|
|
8015
|
-
function ingestError$
|
|
8016
|
-
const key = keyBuilder$
|
|
8015
|
+
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
8016
|
+
const key = keyBuilder$c(luvio, params);
|
|
8017
8017
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
8018
8018
|
luvio.storeIngestError(key, errorSnapshot);
|
|
8019
8019
|
return errorSnapshot;
|
|
8020
8020
|
}
|
|
8021
|
-
function createResourceRequest$
|
|
8021
|
+
function createResourceRequest$5(config) {
|
|
8022
8022
|
const headers = {};
|
|
8023
8023
|
return {
|
|
8024
8024
|
baseUri: '/services/data/v62.0',
|
|
@@ -8032,168 +8032,1613 @@ function createResourceRequest$2(config) {
|
|
|
8032
8032
|
};
|
|
8033
8033
|
}
|
|
8034
8034
|
|
|
8035
|
-
const adapterName$
|
|
8035
|
+
const adapterName$5 = 'getSemanticModel';
|
|
8036
8036
|
const getSemanticModel_ConfigPropertyMetadata = [
|
|
8037
8037
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8038
8038
|
generateParamConfigMetadata('fieldName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
8039
8039
|
generateParamConfigMetadata('includeModelContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
8040
8040
|
];
|
|
8041
|
-
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8042
|
-
const createResourceParams$
|
|
8043
|
-
function keyBuilder$
|
|
8044
|
-
const resourceParams = createResourceParams$
|
|
8045
|
-
return keyBuilder$
|
|
8041
|
+
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSemanticModel_ConfigPropertyMetadata);
|
|
8042
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(getSemanticModel_ConfigPropertyMetadata);
|
|
8043
|
+
function keyBuilder$b(luvio, config) {
|
|
8044
|
+
const resourceParams = createResourceParams$5(config);
|
|
8045
|
+
return keyBuilder$c(luvio, resourceParams);
|
|
8046
8046
|
}
|
|
8047
|
-
function typeCheckConfig$
|
|
8047
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
8048
8048
|
const config = {};
|
|
8049
|
-
typeCheckConfig$
|
|
8049
|
+
typeCheckConfig$7(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
8050
8050
|
return config;
|
|
8051
8051
|
}
|
|
8052
|
-
function validateAdapterConfig$
|
|
8052
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
8053
8053
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
8054
8054
|
return null;
|
|
8055
8055
|
}
|
|
8056
8056
|
if (process.env.NODE_ENV !== 'production') {
|
|
8057
8057
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
8058
8058
|
}
|
|
8059
|
-
const config = typeCheckConfig$
|
|
8059
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
8060
8060
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
8061
8061
|
return null;
|
|
8062
8062
|
}
|
|
8063
8063
|
return config;
|
|
8064
8064
|
}
|
|
8065
|
-
function adapterFragment$
|
|
8066
|
-
createResourceParams$
|
|
8067
|
-
return select$
|
|
8065
|
+
function adapterFragment$5(luvio, config) {
|
|
8066
|
+
createResourceParams$5(config);
|
|
8067
|
+
return select$b();
|
|
8068
8068
|
}
|
|
8069
|
-
function onFetchResponseSuccess$
|
|
8070
|
-
const snapshot = ingestSuccess$
|
|
8069
|
+
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
8070
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
8071
8071
|
config,
|
|
8072
|
-
resolve: () => buildNetworkSnapshot$
|
|
8072
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
8073
8073
|
});
|
|
8074
8074
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8075
8075
|
}
|
|
8076
|
-
function onFetchResponseError$
|
|
8077
|
-
const snapshot = ingestError$
|
|
8076
|
+
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
8077
|
+
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
8078
8078
|
config,
|
|
8079
|
-
resolve: () => buildNetworkSnapshot$
|
|
8079
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
8080
8080
|
});
|
|
8081
8081
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8082
8082
|
}
|
|
8083
|
-
function buildNetworkSnapshot$
|
|
8084
|
-
const resourceParams = createResourceParams$
|
|
8085
|
-
const request = createResourceRequest$
|
|
8083
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
8084
|
+
const resourceParams = createResourceParams$5(config);
|
|
8085
|
+
const request = createResourceRequest$5(resourceParams);
|
|
8086
8086
|
return luvio.dispatchResourceRequest(request, options)
|
|
8087
8087
|
.then((response) => {
|
|
8088
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
8088
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
8089
8089
|
const cache = new StoreKeyMap();
|
|
8090
|
-
getResponseCacheKeys$
|
|
8090
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
8091
8091
|
return cache;
|
|
8092
8092
|
});
|
|
8093
8093
|
}, (response) => {
|
|
8094
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
8094
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
|
|
8095
8095
|
});
|
|
8096
8096
|
}
|
|
8097
|
-
function buildNetworkSnapshotCachePolicy$
|
|
8098
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8097
|
+
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
8098
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
8099
8099
|
}
|
|
8100
|
-
function buildCachedSnapshotCachePolicy$
|
|
8100
|
+
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
8101
8101
|
const { luvio, config } = context;
|
|
8102
8102
|
const selector = {
|
|
8103
|
-
recordId: keyBuilder$
|
|
8104
|
-
node: adapterFragment$
|
|
8103
|
+
recordId: keyBuilder$b(luvio, config),
|
|
8104
|
+
node: adapterFragment$5(luvio, config),
|
|
8105
8105
|
variables: {},
|
|
8106
8106
|
};
|
|
8107
8107
|
const cacheSnapshot = storeLookup(selector, {
|
|
8108
8108
|
config,
|
|
8109
|
-
resolve: () => buildNetworkSnapshot$
|
|
8109
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
8110
8110
|
});
|
|
8111
8111
|
return cacheSnapshot;
|
|
8112
8112
|
}
|
|
8113
8113
|
const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModel(untrustedConfig, requestContext) {
|
|
8114
|
-
const config = validateAdapterConfig$
|
|
8114
|
+
const config = validateAdapterConfig$5(untrustedConfig, getSemanticModel_ConfigPropertyNames);
|
|
8115
8115
|
// Invalid or incomplete config
|
|
8116
8116
|
if (config === null) {
|
|
8117
8117
|
return null;
|
|
8118
8118
|
}
|
|
8119
8119
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
8120
|
-
buildCachedSnapshotCachePolicy$
|
|
8120
|
+
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
8121
8121
|
};
|
|
8122
8122
|
|
|
8123
|
-
const VERSION = "
|
|
8124
|
-
function validate(obj, path = '
|
|
8123
|
+
const VERSION$5 = "52571b5259c434dbcab4ff3fc2fb1007";
|
|
8124
|
+
function validate$5(obj, path = 'SemanticTimeRangeOutputRepresentation') {
|
|
8125
8125
|
const v_error = (() => {
|
|
8126
8126
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8127
8127
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8128
8128
|
}
|
|
8129
|
-
|
|
8130
|
-
|
|
8131
|
-
|
|
8132
|
-
|
|
8129
|
+
if (obj.customerEndDate !== undefined) {
|
|
8130
|
+
const obj_customerEndDate = obj.customerEndDate;
|
|
8131
|
+
const path_customerEndDate = path + '.customerEndDate';
|
|
8132
|
+
let obj_customerEndDate_union0 = null;
|
|
8133
|
+
const obj_customerEndDate_union0_error = (() => {
|
|
8134
|
+
if (typeof obj_customerEndDate !== 'string') {
|
|
8135
|
+
return new TypeError('Expected "string" but received "' + typeof obj_customerEndDate + '" (at "' + path_customerEndDate + '")');
|
|
8136
|
+
}
|
|
8137
|
+
})();
|
|
8138
|
+
if (obj_customerEndDate_union0_error != null) {
|
|
8139
|
+
obj_customerEndDate_union0 = obj_customerEndDate_union0_error.message;
|
|
8140
|
+
}
|
|
8141
|
+
let obj_customerEndDate_union1 = null;
|
|
8142
|
+
const obj_customerEndDate_union1_error = (() => {
|
|
8143
|
+
if (obj_customerEndDate !== null) {
|
|
8144
|
+
return new TypeError('Expected "null" but received "' + typeof obj_customerEndDate + '" (at "' + path_customerEndDate + '")');
|
|
8145
|
+
}
|
|
8146
|
+
})();
|
|
8147
|
+
if (obj_customerEndDate_union1_error != null) {
|
|
8148
|
+
obj_customerEndDate_union1 = obj_customerEndDate_union1_error.message;
|
|
8149
|
+
}
|
|
8150
|
+
if (obj_customerEndDate_union0 && obj_customerEndDate_union1) {
|
|
8151
|
+
let message = 'Object doesn\'t match union (at "' + path_customerEndDate + '")';
|
|
8152
|
+
message += '\n' + obj_customerEndDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
8153
|
+
message += '\n' + obj_customerEndDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
8154
|
+
return new TypeError(message);
|
|
8155
|
+
}
|
|
8133
8156
|
}
|
|
8134
|
-
|
|
8135
|
-
const
|
|
8136
|
-
const
|
|
8137
|
-
|
|
8138
|
-
|
|
8157
|
+
if (obj.customerStartDate !== undefined) {
|
|
8158
|
+
const obj_customerStartDate = obj.customerStartDate;
|
|
8159
|
+
const path_customerStartDate = path + '.customerStartDate';
|
|
8160
|
+
let obj_customerStartDate_union0 = null;
|
|
8161
|
+
const obj_customerStartDate_union0_error = (() => {
|
|
8162
|
+
if (typeof obj_customerStartDate !== 'string') {
|
|
8163
|
+
return new TypeError('Expected "string" but received "' + typeof obj_customerStartDate + '" (at "' + path_customerStartDate + '")');
|
|
8164
|
+
}
|
|
8165
|
+
})();
|
|
8166
|
+
if (obj_customerStartDate_union0_error != null) {
|
|
8167
|
+
obj_customerStartDate_union0 = obj_customerStartDate_union0_error.message;
|
|
8168
|
+
}
|
|
8169
|
+
let obj_customerStartDate_union1 = null;
|
|
8170
|
+
const obj_customerStartDate_union1_error = (() => {
|
|
8171
|
+
if (obj_customerStartDate !== null) {
|
|
8172
|
+
return new TypeError('Expected "null" but received "' + typeof obj_customerStartDate + '" (at "' + path_customerStartDate + '")');
|
|
8173
|
+
}
|
|
8174
|
+
})();
|
|
8175
|
+
if (obj_customerStartDate_union1_error != null) {
|
|
8176
|
+
obj_customerStartDate_union1 = obj_customerStartDate_union1_error.message;
|
|
8177
|
+
}
|
|
8178
|
+
if (obj_customerStartDate_union0 && obj_customerStartDate_union1) {
|
|
8179
|
+
let message = 'Object doesn\'t match union (at "' + path_customerStartDate + '")';
|
|
8180
|
+
message += '\n' + obj_customerStartDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
8181
|
+
message += '\n' + obj_customerStartDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
8182
|
+
return new TypeError(message);
|
|
8183
|
+
}
|
|
8184
|
+
}
|
|
8185
|
+
if (obj.timeRangeType !== undefined) {
|
|
8186
|
+
const obj_timeRangeType = obj.timeRangeType;
|
|
8187
|
+
const path_timeRangeType = path + '.timeRangeType';
|
|
8188
|
+
let obj_timeRangeType_union0 = null;
|
|
8189
|
+
const obj_timeRangeType_union0_error = (() => {
|
|
8190
|
+
if (typeof obj_timeRangeType !== 'string') {
|
|
8191
|
+
return new TypeError('Expected "string" but received "' + typeof obj_timeRangeType + '" (at "' + path_timeRangeType + '")');
|
|
8192
|
+
}
|
|
8193
|
+
})();
|
|
8194
|
+
if (obj_timeRangeType_union0_error != null) {
|
|
8195
|
+
obj_timeRangeType_union0 = obj_timeRangeType_union0_error.message;
|
|
8196
|
+
}
|
|
8197
|
+
let obj_timeRangeType_union1 = null;
|
|
8198
|
+
const obj_timeRangeType_union1_error = (() => {
|
|
8199
|
+
if (obj_timeRangeType !== null) {
|
|
8200
|
+
return new TypeError('Expected "null" but received "' + typeof obj_timeRangeType + '" (at "' + path_timeRangeType + '")');
|
|
8201
|
+
}
|
|
8202
|
+
})();
|
|
8203
|
+
if (obj_timeRangeType_union1_error != null) {
|
|
8204
|
+
obj_timeRangeType_union1 = obj_timeRangeType_union1_error.message;
|
|
8205
|
+
}
|
|
8206
|
+
if (obj_timeRangeType_union0 && obj_timeRangeType_union1) {
|
|
8207
|
+
let message = 'Object doesn\'t match union (at "' + path_timeRangeType + '")';
|
|
8208
|
+
message += '\n' + obj_timeRangeType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
8209
|
+
message += '\n' + obj_timeRangeType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
8210
|
+
return new TypeError(message);
|
|
8139
8211
|
}
|
|
8140
8212
|
}
|
|
8141
8213
|
})();
|
|
8142
8214
|
return v_error === undefined ? null : v_error;
|
|
8143
8215
|
}
|
|
8144
|
-
const
|
|
8145
|
-
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
8146
|
-
const input_metrics = input.metrics;
|
|
8147
|
-
const input_metrics_id = path.fullPath + '__metrics';
|
|
8148
|
-
for (let i = 0; i < input_metrics.length; i++) {
|
|
8149
|
-
const input_metrics_item = input_metrics[i];
|
|
8150
|
-
let input_metrics_item_id = input_metrics_id + '__' + i;
|
|
8151
|
-
input_metrics[i] = ingest$2(input_metrics_item, {
|
|
8152
|
-
fullPath: input_metrics_item_id,
|
|
8153
|
-
propertyName: i,
|
|
8154
|
-
parent: {
|
|
8155
|
-
data: input,
|
|
8156
|
-
key: path.fullPath,
|
|
8157
|
-
existing: existing,
|
|
8158
|
-
},
|
|
8159
|
-
ttl: path.ttl
|
|
8160
|
-
}, luvio, store, timestamp);
|
|
8161
|
-
}
|
|
8162
|
-
return input;
|
|
8163
|
-
}
|
|
8164
|
-
const select$2 = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
8216
|
+
const select$a = function SemanticTimeRangeOutputRepresentationSelect() {
|
|
8165
8217
|
return {
|
|
8166
8218
|
kind: 'Fragment',
|
|
8167
|
-
version: VERSION,
|
|
8219
|
+
version: VERSION$5,
|
|
8168
8220
|
private: [],
|
|
8169
8221
|
selections: [
|
|
8170
8222
|
{
|
|
8171
|
-
name: '
|
|
8172
|
-
kind: '
|
|
8173
|
-
|
|
8174
|
-
|
|
8223
|
+
name: 'customerEndDate',
|
|
8224
|
+
kind: 'Scalar',
|
|
8225
|
+
required: false
|
|
8226
|
+
},
|
|
8227
|
+
{
|
|
8228
|
+
name: 'customerStartDate',
|
|
8229
|
+
kind: 'Scalar',
|
|
8230
|
+
required: false
|
|
8231
|
+
},
|
|
8232
|
+
{
|
|
8233
|
+
name: 'timeRangeType',
|
|
8234
|
+
kind: 'Scalar',
|
|
8235
|
+
required: false
|
|
8175
8236
|
}
|
|
8176
8237
|
]
|
|
8177
8238
|
};
|
|
8178
8239
|
};
|
|
8179
|
-
function equals(existing, incoming) {
|
|
8180
|
-
const
|
|
8181
|
-
const
|
|
8182
|
-
|
|
8183
|
-
|
|
8240
|
+
function equals$5(existing, incoming) {
|
|
8241
|
+
const existing_customerEndDate = existing.customerEndDate;
|
|
8242
|
+
const incoming_customerEndDate = incoming.customerEndDate;
|
|
8243
|
+
// if at least one of these optionals is defined
|
|
8244
|
+
if (existing_customerEndDate !== undefined || incoming_customerEndDate !== undefined) {
|
|
8245
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8246
|
+
// not equal
|
|
8247
|
+
if (existing_customerEndDate === undefined || incoming_customerEndDate === undefined) {
|
|
8248
|
+
return false;
|
|
8249
|
+
}
|
|
8250
|
+
if (!(existing_customerEndDate === incoming_customerEndDate)) {
|
|
8184
8251
|
return false;
|
|
8185
8252
|
}
|
|
8186
|
-
});
|
|
8187
|
-
if (equals_metrics_items === false) {
|
|
8188
|
-
return false;
|
|
8189
8253
|
}
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
if (
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8254
|
+
const existing_customerStartDate = existing.customerStartDate;
|
|
8255
|
+
const incoming_customerStartDate = incoming.customerStartDate;
|
|
8256
|
+
// if at least one of these optionals is defined
|
|
8257
|
+
if (existing_customerStartDate !== undefined || incoming_customerStartDate !== undefined) {
|
|
8258
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8259
|
+
// not equal
|
|
8260
|
+
if (existing_customerStartDate === undefined || incoming_customerStartDate === undefined) {
|
|
8261
|
+
return false;
|
|
8262
|
+
}
|
|
8263
|
+
if (!(existing_customerStartDate === incoming_customerStartDate)) {
|
|
8264
|
+
return false;
|
|
8265
|
+
}
|
|
8266
|
+
}
|
|
8267
|
+
const existing_timeRangeType = existing.timeRangeType;
|
|
8268
|
+
const incoming_timeRangeType = incoming.timeRangeType;
|
|
8269
|
+
// if at least one of these optionals is defined
|
|
8270
|
+
if (existing_timeRangeType !== undefined || incoming_timeRangeType !== undefined) {
|
|
8271
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8272
|
+
// not equal
|
|
8273
|
+
if (existing_timeRangeType === undefined || incoming_timeRangeType === undefined) {
|
|
8274
|
+
return false;
|
|
8275
|
+
}
|
|
8276
|
+
if (!(existing_timeRangeType === incoming_timeRangeType)) {
|
|
8277
|
+
return false;
|
|
8278
|
+
}
|
|
8279
|
+
}
|
|
8280
|
+
return true;
|
|
8281
|
+
}
|
|
8282
|
+
|
|
8283
|
+
const VERSION$4 = "ed3364f5079040e53fbc5d2980bbcaa4";
|
|
8284
|
+
function validate$4(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
8285
|
+
const v_error = (() => {
|
|
8286
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8287
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8288
|
+
}
|
|
8289
|
+
const obj_apiName = obj.apiName;
|
|
8290
|
+
const path_apiName = path + '.apiName';
|
|
8291
|
+
if (typeof obj_apiName !== 'string') {
|
|
8292
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
8293
|
+
}
|
|
8294
|
+
if (obj.baseModelApiName !== undefined) {
|
|
8295
|
+
const obj_baseModelApiName = obj.baseModelApiName;
|
|
8296
|
+
const path_baseModelApiName = path + '.baseModelApiName';
|
|
8297
|
+
if (typeof obj_baseModelApiName !== 'string') {
|
|
8298
|
+
return new TypeError('Expected "string" but received "' + typeof obj_baseModelApiName + '" (at "' + path_baseModelApiName + '")');
|
|
8299
|
+
}
|
|
8300
|
+
}
|
|
8301
|
+
const obj_createdBy = obj.createdBy;
|
|
8302
|
+
const path_createdBy = path + '.createdBy';
|
|
8303
|
+
if (typeof obj_createdBy !== 'string') {
|
|
8304
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdBy + '" (at "' + path_createdBy + '")');
|
|
8305
|
+
}
|
|
8306
|
+
const obj_createdDate = obj.createdDate;
|
|
8307
|
+
const path_createdDate = path + '.createdDate';
|
|
8308
|
+
if (typeof obj_createdDate !== 'string') {
|
|
8309
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
8310
|
+
}
|
|
8311
|
+
if (obj.description !== undefined) {
|
|
8312
|
+
const obj_description = obj.description;
|
|
8313
|
+
const path_description = path + '.description';
|
|
8314
|
+
let obj_description_union0 = null;
|
|
8315
|
+
const obj_description_union0_error = (() => {
|
|
8316
|
+
if (typeof obj_description !== 'string') {
|
|
8317
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
8318
|
+
}
|
|
8319
|
+
})();
|
|
8320
|
+
if (obj_description_union0_error != null) {
|
|
8321
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
8322
|
+
}
|
|
8323
|
+
let obj_description_union1 = null;
|
|
8324
|
+
const obj_description_union1_error = (() => {
|
|
8325
|
+
if (obj_description !== null) {
|
|
8326
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
8327
|
+
}
|
|
8328
|
+
})();
|
|
8329
|
+
if (obj_description_union1_error != null) {
|
|
8330
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
8331
|
+
}
|
|
8332
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
8333
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
8334
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
8335
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
8336
|
+
return new TypeError(message);
|
|
8337
|
+
}
|
|
8338
|
+
}
|
|
8339
|
+
if (obj.filterLogic !== undefined) {
|
|
8340
|
+
const obj_filterLogic = obj.filterLogic;
|
|
8341
|
+
const path_filterLogic = path + '.filterLogic';
|
|
8342
|
+
let obj_filterLogic_union0 = null;
|
|
8343
|
+
const obj_filterLogic_union0_error = (() => {
|
|
8344
|
+
if (typeof obj_filterLogic !== 'string') {
|
|
8345
|
+
return new TypeError('Expected "string" but received "' + typeof obj_filterLogic + '" (at "' + path_filterLogic + '")');
|
|
8346
|
+
}
|
|
8347
|
+
})();
|
|
8348
|
+
if (obj_filterLogic_union0_error != null) {
|
|
8349
|
+
obj_filterLogic_union0 = obj_filterLogic_union0_error.message;
|
|
8350
|
+
}
|
|
8351
|
+
let obj_filterLogic_union1 = null;
|
|
8352
|
+
const obj_filterLogic_union1_error = (() => {
|
|
8353
|
+
if (obj_filterLogic !== null) {
|
|
8354
|
+
return new TypeError('Expected "null" but received "' + typeof obj_filterLogic + '" (at "' + path_filterLogic + '")');
|
|
8355
|
+
}
|
|
8356
|
+
})();
|
|
8357
|
+
if (obj_filterLogic_union1_error != null) {
|
|
8358
|
+
obj_filterLogic_union1 = obj_filterLogic_union1_error.message;
|
|
8359
|
+
}
|
|
8360
|
+
if (obj_filterLogic_union0 && obj_filterLogic_union1) {
|
|
8361
|
+
let message = 'Object doesn\'t match union (at "' + path_filterLogic + '")';
|
|
8362
|
+
message += '\n' + obj_filterLogic_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
8363
|
+
message += '\n' + obj_filterLogic_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
8364
|
+
return new TypeError(message);
|
|
8365
|
+
}
|
|
8366
|
+
}
|
|
8367
|
+
if (obj.filters !== undefined) {
|
|
8368
|
+
const obj_filters = obj.filters;
|
|
8369
|
+
const path_filters = path + '.filters';
|
|
8370
|
+
if (!ArrayIsArray(obj_filters)) {
|
|
8371
|
+
return new TypeError('Expected "array" but received "' + typeof obj_filters + '" (at "' + path_filters + '")');
|
|
8372
|
+
}
|
|
8373
|
+
for (let i = 0; i < obj_filters.length; i++) {
|
|
8374
|
+
const obj_filters_item = obj_filters[i];
|
|
8375
|
+
const path_filters_item = path_filters + '[' + i + ']';
|
|
8376
|
+
const referencepath_filters_itemValidationError = validate$m(obj_filters_item, path_filters_item);
|
|
8377
|
+
if (referencepath_filters_itemValidationError !== null) {
|
|
8378
|
+
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
8379
|
+
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
8380
|
+
return new TypeError(message);
|
|
8381
|
+
}
|
|
8382
|
+
}
|
|
8383
|
+
}
|
|
8384
|
+
if (obj.id !== undefined) {
|
|
8385
|
+
const obj_id = obj.id;
|
|
8386
|
+
const path_id = path + '.id';
|
|
8387
|
+
if (typeof obj_id !== 'string') {
|
|
8388
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
8389
|
+
}
|
|
8390
|
+
}
|
|
8391
|
+
const obj_label = obj.label;
|
|
8392
|
+
const path_label = path + '.label';
|
|
8393
|
+
let obj_label_union0 = null;
|
|
8394
|
+
const obj_label_union0_error = (() => {
|
|
8395
|
+
if (typeof obj_label !== 'string') {
|
|
8396
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
8397
|
+
}
|
|
8398
|
+
})();
|
|
8399
|
+
if (obj_label_union0_error != null) {
|
|
8400
|
+
obj_label_union0 = obj_label_union0_error.message;
|
|
8401
|
+
}
|
|
8402
|
+
let obj_label_union1 = null;
|
|
8403
|
+
const obj_label_union1_error = (() => {
|
|
8404
|
+
if (obj_label !== null) {
|
|
8405
|
+
return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
8406
|
+
}
|
|
8407
|
+
})();
|
|
8408
|
+
if (obj_label_union1_error != null) {
|
|
8409
|
+
obj_label_union1 = obj_label_union1_error.message;
|
|
8410
|
+
}
|
|
8411
|
+
if (obj_label_union0 && obj_label_union1) {
|
|
8412
|
+
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
8413
|
+
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
8414
|
+
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
8415
|
+
return new TypeError(message);
|
|
8416
|
+
}
|
|
8417
|
+
if (obj.lastModifiedBy !== undefined) {
|
|
8418
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
8419
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
8420
|
+
let obj_lastModifiedBy_union0 = null;
|
|
8421
|
+
const obj_lastModifiedBy_union0_error = (() => {
|
|
8422
|
+
if (typeof obj_lastModifiedBy !== 'string') {
|
|
8423
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedBy + '" (at "' + path_lastModifiedBy + '")');
|
|
8424
|
+
}
|
|
8425
|
+
})();
|
|
8426
|
+
if (obj_lastModifiedBy_union0_error != null) {
|
|
8427
|
+
obj_lastModifiedBy_union0 = obj_lastModifiedBy_union0_error.message;
|
|
8428
|
+
}
|
|
8429
|
+
let obj_lastModifiedBy_union1 = null;
|
|
8430
|
+
const obj_lastModifiedBy_union1_error = (() => {
|
|
8431
|
+
if (obj_lastModifiedBy !== null) {
|
|
8432
|
+
return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedBy + '" (at "' + path_lastModifiedBy + '")');
|
|
8433
|
+
}
|
|
8434
|
+
})();
|
|
8435
|
+
if (obj_lastModifiedBy_union1_error != null) {
|
|
8436
|
+
obj_lastModifiedBy_union1 = obj_lastModifiedBy_union1_error.message;
|
|
8437
|
+
}
|
|
8438
|
+
if (obj_lastModifiedBy_union0 && obj_lastModifiedBy_union1) {
|
|
8439
|
+
let message = 'Object doesn\'t match union (at "' + path_lastModifiedBy + '")';
|
|
8440
|
+
message += '\n' + obj_lastModifiedBy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
8441
|
+
message += '\n' + obj_lastModifiedBy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
8442
|
+
return new TypeError(message);
|
|
8443
|
+
}
|
|
8444
|
+
}
|
|
8445
|
+
if (obj.lastModifiedDate !== undefined) {
|
|
8446
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
8447
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
8448
|
+
let obj_lastModifiedDate_union0 = null;
|
|
8449
|
+
const obj_lastModifiedDate_union0_error = (() => {
|
|
8450
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
8451
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
8452
|
+
}
|
|
8453
|
+
})();
|
|
8454
|
+
if (obj_lastModifiedDate_union0_error != null) {
|
|
8455
|
+
obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
|
|
8456
|
+
}
|
|
8457
|
+
let obj_lastModifiedDate_union1 = null;
|
|
8458
|
+
const obj_lastModifiedDate_union1_error = (() => {
|
|
8459
|
+
if (obj_lastModifiedDate !== null) {
|
|
8460
|
+
return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
8461
|
+
}
|
|
8462
|
+
})();
|
|
8463
|
+
if (obj_lastModifiedDate_union1_error != null) {
|
|
8464
|
+
obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
|
|
8465
|
+
}
|
|
8466
|
+
if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
|
|
8467
|
+
let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
|
|
8468
|
+
message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
8469
|
+
message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
8470
|
+
return new TypeError(message);
|
|
8471
|
+
}
|
|
8472
|
+
}
|
|
8473
|
+
if (obj.semanticMetricDefinitionApiName !== undefined) {
|
|
8474
|
+
const obj_semanticMetricDefinitionApiName = obj.semanticMetricDefinitionApiName;
|
|
8475
|
+
const path_semanticMetricDefinitionApiName = path + '.semanticMetricDefinitionApiName';
|
|
8476
|
+
let obj_semanticMetricDefinitionApiName_union0 = null;
|
|
8477
|
+
const obj_semanticMetricDefinitionApiName_union0_error = (() => {
|
|
8478
|
+
if (typeof obj_semanticMetricDefinitionApiName !== 'string') {
|
|
8479
|
+
return new TypeError('Expected "string" but received "' + typeof obj_semanticMetricDefinitionApiName + '" (at "' + path_semanticMetricDefinitionApiName + '")');
|
|
8480
|
+
}
|
|
8481
|
+
})();
|
|
8482
|
+
if (obj_semanticMetricDefinitionApiName_union0_error != null) {
|
|
8483
|
+
obj_semanticMetricDefinitionApiName_union0 = obj_semanticMetricDefinitionApiName_union0_error.message;
|
|
8484
|
+
}
|
|
8485
|
+
let obj_semanticMetricDefinitionApiName_union1 = null;
|
|
8486
|
+
const obj_semanticMetricDefinitionApiName_union1_error = (() => {
|
|
8487
|
+
if (obj_semanticMetricDefinitionApiName !== null) {
|
|
8488
|
+
return new TypeError('Expected "null" but received "' + typeof obj_semanticMetricDefinitionApiName + '" (at "' + path_semanticMetricDefinitionApiName + '")');
|
|
8489
|
+
}
|
|
8490
|
+
})();
|
|
8491
|
+
if (obj_semanticMetricDefinitionApiName_union1_error != null) {
|
|
8492
|
+
obj_semanticMetricDefinitionApiName_union1 = obj_semanticMetricDefinitionApiName_union1_error.message;
|
|
8493
|
+
}
|
|
8494
|
+
if (obj_semanticMetricDefinitionApiName_union0 && obj_semanticMetricDefinitionApiName_union1) {
|
|
8495
|
+
let message = 'Object doesn\'t match union (at "' + path_semanticMetricDefinitionApiName + '")';
|
|
8496
|
+
message += '\n' + obj_semanticMetricDefinitionApiName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
8497
|
+
message += '\n' + obj_semanticMetricDefinitionApiName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
8498
|
+
return new TypeError(message);
|
|
8499
|
+
}
|
|
8500
|
+
}
|
|
8501
|
+
if (obj.timeRange !== undefined) {
|
|
8502
|
+
const obj_timeRange = obj.timeRange;
|
|
8503
|
+
const path_timeRange = path + '.timeRange';
|
|
8504
|
+
let obj_timeRange_union0 = null;
|
|
8505
|
+
const obj_timeRange_union0_error = (() => {
|
|
8506
|
+
const referencepath_timeRangeValidationError = validate$5(obj_timeRange, path_timeRange);
|
|
8507
|
+
if (referencepath_timeRangeValidationError !== null) {
|
|
8508
|
+
let message = 'Object doesn\'t match SemanticTimeRangeOutputRepresentation (at "' + path_timeRange + '")\n';
|
|
8509
|
+
message += referencepath_timeRangeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
8510
|
+
return new TypeError(message);
|
|
8511
|
+
}
|
|
8512
|
+
})();
|
|
8513
|
+
if (obj_timeRange_union0_error != null) {
|
|
8514
|
+
obj_timeRange_union0 = obj_timeRange_union0_error.message;
|
|
8515
|
+
}
|
|
8516
|
+
let obj_timeRange_union1 = null;
|
|
8517
|
+
const obj_timeRange_union1_error = (() => {
|
|
8518
|
+
if (obj_timeRange !== null) {
|
|
8519
|
+
return new TypeError('Expected "null" but received "' + typeof obj_timeRange + '" (at "' + path_timeRange + '")');
|
|
8520
|
+
}
|
|
8521
|
+
})();
|
|
8522
|
+
if (obj_timeRange_union1_error != null) {
|
|
8523
|
+
obj_timeRange_union1 = obj_timeRange_union1_error.message;
|
|
8524
|
+
}
|
|
8525
|
+
if (obj_timeRange_union0 && obj_timeRange_union1) {
|
|
8526
|
+
let message = 'Object doesn\'t match union (at "' + path_timeRange + '")';
|
|
8527
|
+
message += '\n' + obj_timeRange_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
8528
|
+
message += '\n' + obj_timeRange_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
8529
|
+
return new TypeError(message);
|
|
8530
|
+
}
|
|
8531
|
+
}
|
|
8532
|
+
})();
|
|
8533
|
+
return v_error === undefined ? null : v_error;
|
|
8534
|
+
}
|
|
8535
|
+
const RepresentationType$4 = 'SemanticSubMetricOutputRepresentation';
|
|
8536
|
+
function keyBuilder$a(luvio, config) {
|
|
8537
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.name;
|
|
8538
|
+
}
|
|
8539
|
+
function keyBuilderFromType(luvio, object) {
|
|
8540
|
+
const keyParams = {
|
|
8541
|
+
name: object.apiName
|
|
8542
|
+
};
|
|
8543
|
+
return keyBuilder$a(luvio, keyParams);
|
|
8544
|
+
}
|
|
8545
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
8546
|
+
return input;
|
|
8547
|
+
}
|
|
8548
|
+
const select$9 = function SemanticSubMetricOutputRepresentationSelect() {
|
|
8549
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$s();
|
|
8550
|
+
const { selections: SemanticTimeRangeOutputRepresentation__selections, opaque: SemanticTimeRangeOutputRepresentation__opaque, } = select$a();
|
|
8551
|
+
return {
|
|
8552
|
+
kind: 'Fragment',
|
|
8553
|
+
version: VERSION$4,
|
|
8554
|
+
private: [],
|
|
8555
|
+
selections: [
|
|
8556
|
+
{
|
|
8557
|
+
name: 'apiName',
|
|
8558
|
+
kind: 'Scalar'
|
|
8559
|
+
},
|
|
8560
|
+
{
|
|
8561
|
+
name: 'baseModelApiName',
|
|
8562
|
+
kind: 'Scalar',
|
|
8563
|
+
required: false
|
|
8564
|
+
},
|
|
8565
|
+
{
|
|
8566
|
+
name: 'createdBy',
|
|
8567
|
+
kind: 'Scalar'
|
|
8568
|
+
},
|
|
8569
|
+
{
|
|
8570
|
+
name: 'createdDate',
|
|
8571
|
+
kind: 'Scalar'
|
|
8572
|
+
},
|
|
8573
|
+
{
|
|
8574
|
+
name: 'description',
|
|
8575
|
+
kind: 'Scalar',
|
|
8576
|
+
required: false
|
|
8577
|
+
},
|
|
8578
|
+
{
|
|
8579
|
+
name: 'filterLogic',
|
|
8580
|
+
kind: 'Scalar',
|
|
8581
|
+
required: false
|
|
8582
|
+
},
|
|
8583
|
+
{
|
|
8584
|
+
name: 'filters',
|
|
8585
|
+
kind: 'Object',
|
|
8586
|
+
plural: true,
|
|
8587
|
+
selections: SemanticFilterOutputRepresentation__selections,
|
|
8588
|
+
required: false
|
|
8589
|
+
},
|
|
8590
|
+
{
|
|
8591
|
+
name: 'id',
|
|
8592
|
+
kind: 'Scalar',
|
|
8593
|
+
required: false
|
|
8594
|
+
},
|
|
8595
|
+
{
|
|
8596
|
+
name: 'label',
|
|
8597
|
+
kind: 'Scalar'
|
|
8598
|
+
},
|
|
8599
|
+
{
|
|
8600
|
+
name: 'lastModifiedBy',
|
|
8601
|
+
kind: 'Scalar',
|
|
8602
|
+
required: false
|
|
8603
|
+
},
|
|
8604
|
+
{
|
|
8605
|
+
name: 'lastModifiedDate',
|
|
8606
|
+
kind: 'Scalar',
|
|
8607
|
+
required: false
|
|
8608
|
+
},
|
|
8609
|
+
{
|
|
8610
|
+
name: 'semanticMetricDefinitionApiName',
|
|
8611
|
+
kind: 'Scalar',
|
|
8612
|
+
required: false
|
|
8613
|
+
},
|
|
8614
|
+
{
|
|
8615
|
+
name: 'timeRange',
|
|
8616
|
+
kind: 'Object',
|
|
8617
|
+
nullable: true,
|
|
8618
|
+
selections: SemanticTimeRangeOutputRepresentation__selections,
|
|
8619
|
+
required: false
|
|
8620
|
+
}
|
|
8621
|
+
]
|
|
8622
|
+
};
|
|
8623
|
+
};
|
|
8624
|
+
function equals$4(existing, incoming) {
|
|
8625
|
+
const existing_apiName = existing.apiName;
|
|
8626
|
+
const incoming_apiName = incoming.apiName;
|
|
8627
|
+
if (!(existing_apiName === incoming_apiName)) {
|
|
8628
|
+
return false;
|
|
8629
|
+
}
|
|
8630
|
+
const existing_baseModelApiName = existing.baseModelApiName;
|
|
8631
|
+
const incoming_baseModelApiName = incoming.baseModelApiName;
|
|
8632
|
+
// if at least one of these optionals is defined
|
|
8633
|
+
if (existing_baseModelApiName !== undefined || incoming_baseModelApiName !== undefined) {
|
|
8634
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8635
|
+
// not equal
|
|
8636
|
+
if (existing_baseModelApiName === undefined || incoming_baseModelApiName === undefined) {
|
|
8637
|
+
return false;
|
|
8638
|
+
}
|
|
8639
|
+
if (!(existing_baseModelApiName === incoming_baseModelApiName)) {
|
|
8640
|
+
return false;
|
|
8641
|
+
}
|
|
8642
|
+
}
|
|
8643
|
+
const existing_createdBy = existing.createdBy;
|
|
8644
|
+
const incoming_createdBy = incoming.createdBy;
|
|
8645
|
+
if (!(existing_createdBy === incoming_createdBy)) {
|
|
8646
|
+
return false;
|
|
8647
|
+
}
|
|
8648
|
+
const existing_createdDate = existing.createdDate;
|
|
8649
|
+
const incoming_createdDate = incoming.createdDate;
|
|
8650
|
+
if (!(existing_createdDate === incoming_createdDate)) {
|
|
8651
|
+
return false;
|
|
8652
|
+
}
|
|
8653
|
+
const existing_id = existing.id;
|
|
8654
|
+
const incoming_id = incoming.id;
|
|
8655
|
+
// if at least one of these optionals is defined
|
|
8656
|
+
if (existing_id !== undefined || incoming_id !== undefined) {
|
|
8657
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8658
|
+
// not equal
|
|
8659
|
+
if (existing_id === undefined || incoming_id === undefined) {
|
|
8660
|
+
return false;
|
|
8661
|
+
}
|
|
8662
|
+
if (!(existing_id === incoming_id)) {
|
|
8663
|
+
return false;
|
|
8664
|
+
}
|
|
8665
|
+
}
|
|
8666
|
+
const existing_description = existing.description;
|
|
8667
|
+
const incoming_description = incoming.description;
|
|
8668
|
+
// if at least one of these optionals is defined
|
|
8669
|
+
if (existing_description !== undefined || incoming_description !== undefined) {
|
|
8670
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8671
|
+
// not equal
|
|
8672
|
+
if (existing_description === undefined || incoming_description === undefined) {
|
|
8673
|
+
return false;
|
|
8674
|
+
}
|
|
8675
|
+
if (!(existing_description === incoming_description)) {
|
|
8676
|
+
return false;
|
|
8677
|
+
}
|
|
8678
|
+
}
|
|
8679
|
+
const existing_filterLogic = existing.filterLogic;
|
|
8680
|
+
const incoming_filterLogic = incoming.filterLogic;
|
|
8681
|
+
// if at least one of these optionals is defined
|
|
8682
|
+
if (existing_filterLogic !== undefined || incoming_filterLogic !== undefined) {
|
|
8683
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8684
|
+
// not equal
|
|
8685
|
+
if (existing_filterLogic === undefined || incoming_filterLogic === undefined) {
|
|
8686
|
+
return false;
|
|
8687
|
+
}
|
|
8688
|
+
if (!(existing_filterLogic === incoming_filterLogic)) {
|
|
8689
|
+
return false;
|
|
8690
|
+
}
|
|
8691
|
+
}
|
|
8692
|
+
const existing_filters = existing.filters;
|
|
8693
|
+
const incoming_filters = incoming.filters;
|
|
8694
|
+
// if at least one of these optionals is defined
|
|
8695
|
+
if (existing_filters !== undefined || incoming_filters !== undefined) {
|
|
8696
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8697
|
+
// not equal
|
|
8698
|
+
if (existing_filters === undefined || incoming_filters === undefined) {
|
|
8699
|
+
return false;
|
|
8700
|
+
}
|
|
8701
|
+
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
8702
|
+
if (!(equals$m(existing_filters_item, incoming_filters_item))) {
|
|
8703
|
+
return false;
|
|
8704
|
+
}
|
|
8705
|
+
});
|
|
8706
|
+
if (equals_filters_items === false) {
|
|
8707
|
+
return false;
|
|
8708
|
+
}
|
|
8709
|
+
}
|
|
8710
|
+
const existing_label = existing.label;
|
|
8711
|
+
const incoming_label = incoming.label;
|
|
8712
|
+
if (!(existing_label === incoming_label)) {
|
|
8713
|
+
return false;
|
|
8714
|
+
}
|
|
8715
|
+
const existing_lastModifiedBy = existing.lastModifiedBy;
|
|
8716
|
+
const incoming_lastModifiedBy = incoming.lastModifiedBy;
|
|
8717
|
+
// if at least one of these optionals is defined
|
|
8718
|
+
if (existing_lastModifiedBy !== undefined || incoming_lastModifiedBy !== undefined) {
|
|
8719
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8720
|
+
// not equal
|
|
8721
|
+
if (existing_lastModifiedBy === undefined || incoming_lastModifiedBy === undefined) {
|
|
8722
|
+
return false;
|
|
8723
|
+
}
|
|
8724
|
+
if (!(existing_lastModifiedBy === incoming_lastModifiedBy)) {
|
|
8725
|
+
return false;
|
|
8726
|
+
}
|
|
8727
|
+
}
|
|
8728
|
+
const existing_lastModifiedDate = existing.lastModifiedDate;
|
|
8729
|
+
const incoming_lastModifiedDate = incoming.lastModifiedDate;
|
|
8730
|
+
// if at least one of these optionals is defined
|
|
8731
|
+
if (existing_lastModifiedDate !== undefined || incoming_lastModifiedDate !== undefined) {
|
|
8732
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8733
|
+
// not equal
|
|
8734
|
+
if (existing_lastModifiedDate === undefined || incoming_lastModifiedDate === undefined) {
|
|
8735
|
+
return false;
|
|
8736
|
+
}
|
|
8737
|
+
if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
|
|
8738
|
+
return false;
|
|
8739
|
+
}
|
|
8740
|
+
}
|
|
8741
|
+
const existing_semanticMetricDefinitionApiName = existing.semanticMetricDefinitionApiName;
|
|
8742
|
+
const incoming_semanticMetricDefinitionApiName = incoming.semanticMetricDefinitionApiName;
|
|
8743
|
+
// if at least one of these optionals is defined
|
|
8744
|
+
if (existing_semanticMetricDefinitionApiName !== undefined || incoming_semanticMetricDefinitionApiName !== undefined) {
|
|
8745
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8746
|
+
// not equal
|
|
8747
|
+
if (existing_semanticMetricDefinitionApiName === undefined || incoming_semanticMetricDefinitionApiName === undefined) {
|
|
8748
|
+
return false;
|
|
8749
|
+
}
|
|
8750
|
+
if (!(existing_semanticMetricDefinitionApiName === incoming_semanticMetricDefinitionApiName)) {
|
|
8751
|
+
return false;
|
|
8752
|
+
}
|
|
8753
|
+
}
|
|
8754
|
+
const existing_timeRange = existing.timeRange;
|
|
8755
|
+
const incoming_timeRange = incoming.timeRange;
|
|
8756
|
+
// if at least one of these optionals is defined
|
|
8757
|
+
if (existing_timeRange !== undefined || incoming_timeRange !== undefined) {
|
|
8758
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8759
|
+
// not equal
|
|
8760
|
+
if (existing_timeRange === undefined || incoming_timeRange === undefined) {
|
|
8761
|
+
return false;
|
|
8762
|
+
}
|
|
8763
|
+
if (!(existing_timeRange === incoming_timeRange
|
|
8764
|
+
|| (existing_timeRange != null &&
|
|
8765
|
+
incoming_timeRange != null &&
|
|
8766
|
+
equals$5(existing_timeRange, incoming_timeRange)))) {
|
|
8767
|
+
return false;
|
|
8768
|
+
}
|
|
8769
|
+
}
|
|
8770
|
+
return true;
|
|
8771
|
+
}
|
|
8772
|
+
const ingest$4 = function SemanticSubMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8773
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
8774
|
+
const validateError = validate$4(input);
|
|
8775
|
+
if (validateError !== null) {
|
|
8776
|
+
throw validateError;
|
|
8777
|
+
}
|
|
8778
|
+
}
|
|
8779
|
+
const key = keyBuilderFromType(luvio, input);
|
|
8780
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
8781
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "SemanticAuthoring", VERSION$4, RepresentationType$4, equals$4);
|
|
8782
|
+
return createLink(key);
|
|
8783
|
+
};
|
|
8784
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
8785
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
8786
|
+
const rootKey = keyBuilderFromType(luvio, input);
|
|
8787
|
+
rootKeySet.set(rootKey, {
|
|
8788
|
+
namespace: keyPrefix,
|
|
8789
|
+
representationName: RepresentationType$4,
|
|
8790
|
+
mergeable: false
|
|
8791
|
+
});
|
|
8792
|
+
}
|
|
8793
|
+
|
|
8794
|
+
const VERSION$3 = "386f507f0ce3151b9b2009eae0ea1d99";
|
|
8795
|
+
function validate$3(obj, path = 'SemanticSubMetricsByMetricOutputRepresentation') {
|
|
8796
|
+
const v_error = (() => {
|
|
8797
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8798
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8799
|
+
}
|
|
8800
|
+
if (obj.metricApiName !== undefined) {
|
|
8801
|
+
const obj_metricApiName = obj.metricApiName;
|
|
8802
|
+
const path_metricApiName = path + '.metricApiName';
|
|
8803
|
+
let obj_metricApiName_union0 = null;
|
|
8804
|
+
const obj_metricApiName_union0_error = (() => {
|
|
8805
|
+
if (typeof obj_metricApiName !== 'string') {
|
|
8806
|
+
return new TypeError('Expected "string" but received "' + typeof obj_metricApiName + '" (at "' + path_metricApiName + '")');
|
|
8807
|
+
}
|
|
8808
|
+
})();
|
|
8809
|
+
if (obj_metricApiName_union0_error != null) {
|
|
8810
|
+
obj_metricApiName_union0 = obj_metricApiName_union0_error.message;
|
|
8811
|
+
}
|
|
8812
|
+
let obj_metricApiName_union1 = null;
|
|
8813
|
+
const obj_metricApiName_union1_error = (() => {
|
|
8814
|
+
if (obj_metricApiName !== null) {
|
|
8815
|
+
return new TypeError('Expected "null" but received "' + typeof obj_metricApiName + '" (at "' + path_metricApiName + '")');
|
|
8816
|
+
}
|
|
8817
|
+
})();
|
|
8818
|
+
if (obj_metricApiName_union1_error != null) {
|
|
8819
|
+
obj_metricApiName_union1 = obj_metricApiName_union1_error.message;
|
|
8820
|
+
}
|
|
8821
|
+
if (obj_metricApiName_union0 && obj_metricApiName_union1) {
|
|
8822
|
+
let message = 'Object doesn\'t match union (at "' + path_metricApiName + '")';
|
|
8823
|
+
message += '\n' + obj_metricApiName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
8824
|
+
message += '\n' + obj_metricApiName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
8825
|
+
return new TypeError(message);
|
|
8826
|
+
}
|
|
8827
|
+
}
|
|
8828
|
+
if (obj.subMetrics !== undefined) {
|
|
8829
|
+
const obj_subMetrics = obj.subMetrics;
|
|
8830
|
+
const path_subMetrics = path + '.subMetrics';
|
|
8831
|
+
if (!ArrayIsArray(obj_subMetrics)) {
|
|
8832
|
+
return new TypeError('Expected "array" but received "' + typeof obj_subMetrics + '" (at "' + path_subMetrics + '")');
|
|
8833
|
+
}
|
|
8834
|
+
for (let i = 0; i < obj_subMetrics.length; i++) {
|
|
8835
|
+
const obj_subMetrics_item = obj_subMetrics[i];
|
|
8836
|
+
const path_subMetrics_item = path_subMetrics + '[' + i + ']';
|
|
8837
|
+
if (typeof obj_subMetrics_item !== 'object') {
|
|
8838
|
+
return new TypeError('Expected "object" but received "' + typeof obj_subMetrics_item + '" (at "' + path_subMetrics_item + '")');
|
|
8839
|
+
}
|
|
8840
|
+
}
|
|
8841
|
+
}
|
|
8842
|
+
})();
|
|
8843
|
+
return v_error === undefined ? null : v_error;
|
|
8844
|
+
}
|
|
8845
|
+
const RepresentationType$3 = 'SemanticSubMetricsByMetricOutputRepresentation';
|
|
8846
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
8847
|
+
const input_subMetrics = input.subMetrics;
|
|
8848
|
+
const input_subMetrics_id = path.fullPath + '__subMetrics';
|
|
8849
|
+
if (input_subMetrics !== undefined) {
|
|
8850
|
+
for (let i = 0; i < input_subMetrics.length; i++) {
|
|
8851
|
+
const input_subMetrics_item = input_subMetrics[i];
|
|
8852
|
+
let input_subMetrics_item_id = input_subMetrics_id + '__' + i;
|
|
8853
|
+
input_subMetrics[i] = ingest$4(input_subMetrics_item, {
|
|
8854
|
+
fullPath: input_subMetrics_item_id,
|
|
8855
|
+
propertyName: i,
|
|
8856
|
+
parent: {
|
|
8857
|
+
data: input,
|
|
8858
|
+
key: path.fullPath,
|
|
8859
|
+
existing: existing,
|
|
8860
|
+
},
|
|
8861
|
+
ttl: path.ttl
|
|
8862
|
+
}, luvio, store, timestamp);
|
|
8863
|
+
}
|
|
8864
|
+
}
|
|
8865
|
+
return input;
|
|
8866
|
+
}
|
|
8867
|
+
const select$8 = function SemanticSubMetricsByMetricOutputRepresentationSelect() {
|
|
8868
|
+
return {
|
|
8869
|
+
kind: 'Fragment',
|
|
8870
|
+
version: VERSION$3,
|
|
8871
|
+
private: [],
|
|
8872
|
+
selections: [
|
|
8873
|
+
{
|
|
8874
|
+
name: 'metricApiName',
|
|
8875
|
+
kind: 'Scalar',
|
|
8876
|
+
required: false
|
|
8877
|
+
},
|
|
8878
|
+
{
|
|
8879
|
+
name: 'subMetrics',
|
|
8880
|
+
kind: 'Link',
|
|
8881
|
+
plural: true,
|
|
8882
|
+
required: false,
|
|
8883
|
+
fragment: select$9()
|
|
8884
|
+
}
|
|
8885
|
+
]
|
|
8886
|
+
};
|
|
8887
|
+
};
|
|
8888
|
+
function equals$3(existing, incoming) {
|
|
8889
|
+
const existing_metricApiName = existing.metricApiName;
|
|
8890
|
+
const incoming_metricApiName = incoming.metricApiName;
|
|
8891
|
+
// if at least one of these optionals is defined
|
|
8892
|
+
if (existing_metricApiName !== undefined || incoming_metricApiName !== undefined) {
|
|
8893
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8894
|
+
// not equal
|
|
8895
|
+
if (existing_metricApiName === undefined || incoming_metricApiName === undefined) {
|
|
8896
|
+
return false;
|
|
8897
|
+
}
|
|
8898
|
+
if (!(existing_metricApiName === incoming_metricApiName)) {
|
|
8899
|
+
return false;
|
|
8900
|
+
}
|
|
8901
|
+
}
|
|
8902
|
+
const existing_subMetrics = existing.subMetrics;
|
|
8903
|
+
const incoming_subMetrics = incoming.subMetrics;
|
|
8904
|
+
// if at least one of these optionals is defined
|
|
8905
|
+
if (existing_subMetrics !== undefined || incoming_subMetrics !== undefined) {
|
|
8906
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8907
|
+
// not equal
|
|
8908
|
+
if (existing_subMetrics === undefined || incoming_subMetrics === undefined) {
|
|
8909
|
+
return false;
|
|
8910
|
+
}
|
|
8911
|
+
const equals_subMetrics_items = equalsArray(existing_subMetrics, incoming_subMetrics, (existing_subMetrics_item, incoming_subMetrics_item) => {
|
|
8912
|
+
if (!(existing_subMetrics_item.__ref === incoming_subMetrics_item.__ref)) {
|
|
8913
|
+
return false;
|
|
8914
|
+
}
|
|
8915
|
+
});
|
|
8916
|
+
if (equals_subMetrics_items === false) {
|
|
8917
|
+
return false;
|
|
8918
|
+
}
|
|
8919
|
+
}
|
|
8920
|
+
return true;
|
|
8921
|
+
}
|
|
8922
|
+
const ingest$3 = function SemanticSubMetricsByMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8923
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
8924
|
+
const validateError = validate$3(input);
|
|
8925
|
+
if (validateError !== null) {
|
|
8926
|
+
throw validateError;
|
|
8927
|
+
}
|
|
8928
|
+
}
|
|
8929
|
+
const key = path.fullPath;
|
|
8930
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
8931
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "SemanticAuthoring", VERSION$3, RepresentationType$3, equals$3);
|
|
8932
|
+
return createLink(key);
|
|
8933
|
+
};
|
|
8934
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
8935
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
8936
|
+
const rootKey = fullPathFactory();
|
|
8937
|
+
rootKeySet.set(rootKey, {
|
|
8938
|
+
namespace: keyPrefix,
|
|
8939
|
+
representationName: RepresentationType$3,
|
|
8940
|
+
mergeable: false
|
|
8941
|
+
});
|
|
8942
|
+
if (input.subMetrics !== undefined) {
|
|
8943
|
+
const input_subMetrics_length = input.subMetrics.length;
|
|
8944
|
+
for (let i = 0; i < input_subMetrics_length; i++) {
|
|
8945
|
+
getTypeCacheKeys$4(rootKeySet, luvio, input.subMetrics[i]);
|
|
8946
|
+
}
|
|
8947
|
+
}
|
|
8948
|
+
}
|
|
8949
|
+
|
|
8950
|
+
const VERSION$2 = "6fbd75e1a154b08c14ba6560c06488db";
|
|
8951
|
+
function validate$2(obj, path = 'SemanticSubMetricsByMetricCollectionOutputRepresentation') {
|
|
8952
|
+
const v_error = (() => {
|
|
8953
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8954
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8955
|
+
}
|
|
8956
|
+
if (obj.items !== undefined) {
|
|
8957
|
+
const obj_items = obj.items;
|
|
8958
|
+
const path_items = path + '.items';
|
|
8959
|
+
if (!ArrayIsArray(obj_items)) {
|
|
8960
|
+
return new TypeError('Expected "array" but received "' + typeof obj_items + '" (at "' + path_items + '")');
|
|
8961
|
+
}
|
|
8962
|
+
for (let i = 0; i < obj_items.length; i++) {
|
|
8963
|
+
const obj_items_item = obj_items[i];
|
|
8964
|
+
const path_items_item = path_items + '[' + i + ']';
|
|
8965
|
+
if (typeof obj_items_item !== 'object') {
|
|
8966
|
+
return new TypeError('Expected "object" but received "' + typeof obj_items_item + '" (at "' + path_items_item + '")');
|
|
8967
|
+
}
|
|
8968
|
+
}
|
|
8969
|
+
}
|
|
8970
|
+
})();
|
|
8971
|
+
return v_error === undefined ? null : v_error;
|
|
8972
|
+
}
|
|
8973
|
+
const RepresentationType$2 = 'SemanticSubMetricsByMetricCollectionOutputRepresentation';
|
|
8974
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
8975
|
+
const input_items = input.items;
|
|
8976
|
+
const input_items_id = path.fullPath + '__items';
|
|
8977
|
+
if (input_items !== undefined) {
|
|
8978
|
+
for (let i = 0; i < input_items.length; i++) {
|
|
8979
|
+
const input_items_item = input_items[i];
|
|
8980
|
+
let input_items_item_id = input_items_id + '__' + i;
|
|
8981
|
+
input_items[i] = ingest$3(input_items_item, {
|
|
8982
|
+
fullPath: input_items_item_id,
|
|
8983
|
+
propertyName: i,
|
|
8984
|
+
parent: {
|
|
8985
|
+
data: input,
|
|
8986
|
+
key: path.fullPath,
|
|
8987
|
+
existing: existing,
|
|
8988
|
+
},
|
|
8989
|
+
ttl: path.ttl
|
|
8990
|
+
}, luvio, store, timestamp);
|
|
8991
|
+
}
|
|
8992
|
+
}
|
|
8993
|
+
return input;
|
|
8994
|
+
}
|
|
8995
|
+
const select$7 = function SemanticSubMetricsByMetricCollectionOutputRepresentationSelect() {
|
|
8996
|
+
return {
|
|
8997
|
+
kind: 'Fragment',
|
|
8998
|
+
version: VERSION$2,
|
|
8999
|
+
private: [],
|
|
9000
|
+
selections: [
|
|
9001
|
+
{
|
|
9002
|
+
name: 'items',
|
|
9003
|
+
kind: 'Link',
|
|
9004
|
+
plural: true,
|
|
9005
|
+
required: false,
|
|
9006
|
+
fragment: select$8()
|
|
9007
|
+
}
|
|
9008
|
+
]
|
|
9009
|
+
};
|
|
9010
|
+
};
|
|
9011
|
+
function equals$2(existing, incoming) {
|
|
9012
|
+
const existing_items = existing.items;
|
|
9013
|
+
const incoming_items = incoming.items;
|
|
9014
|
+
// if at least one of these optionals is defined
|
|
9015
|
+
if (existing_items !== undefined || incoming_items !== undefined) {
|
|
9016
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9017
|
+
// not equal
|
|
9018
|
+
if (existing_items === undefined || incoming_items === undefined) {
|
|
9019
|
+
return false;
|
|
9020
|
+
}
|
|
9021
|
+
const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
|
|
9022
|
+
if (!(existing_items_item.__ref === incoming_items_item.__ref)) {
|
|
9023
|
+
return false;
|
|
9024
|
+
}
|
|
9025
|
+
});
|
|
9026
|
+
if (equals_items_items === false) {
|
|
9027
|
+
return false;
|
|
9028
|
+
}
|
|
9029
|
+
}
|
|
9030
|
+
return true;
|
|
9031
|
+
}
|
|
9032
|
+
const ingest$2 = function SemanticSubMetricsByMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9033
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9034
|
+
const validateError = validate$2(input);
|
|
9035
|
+
if (validateError !== null) {
|
|
9036
|
+
throw validateError;
|
|
9037
|
+
}
|
|
9038
|
+
}
|
|
9039
|
+
const key = path.fullPath;
|
|
9040
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
9041
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "SemanticAuthoring", VERSION$2, RepresentationType$2, equals$2);
|
|
9042
|
+
return createLink(key);
|
|
9043
|
+
};
|
|
9044
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
9045
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
9046
|
+
const rootKey = fullPathFactory();
|
|
9047
|
+
rootKeySet.set(rootKey, {
|
|
9048
|
+
namespace: keyPrefix,
|
|
9049
|
+
representationName: RepresentationType$2,
|
|
9050
|
+
mergeable: false
|
|
9051
|
+
});
|
|
9052
|
+
if (input.items !== undefined) {
|
|
9053
|
+
const input_items_length = input.items.length;
|
|
9054
|
+
for (let i = 0; i < input_items_length; i++) {
|
|
9055
|
+
getTypeCacheKeys$3(rootKeySet, luvio, input.items[i], () => '');
|
|
9056
|
+
}
|
|
9057
|
+
}
|
|
9058
|
+
}
|
|
9059
|
+
|
|
9060
|
+
function select$6(luvio, params) {
|
|
9061
|
+
return select$7();
|
|
9062
|
+
}
|
|
9063
|
+
function keyBuilder$9(luvio, params) {
|
|
9064
|
+
return keyPrefix + '::SemanticSubMetricsByMetricCollectionOutputRepresentation:(' + 'metricApiNames:' + params.urlParams.metricApiNames + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
9065
|
+
}
|
|
9066
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
9067
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
9068
|
+
}
|
|
9069
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
9070
|
+
const { body } = response;
|
|
9071
|
+
const key = keyBuilder$9(luvio, resourceParams);
|
|
9072
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
9073
|
+
const snapshot = luvio.storeLookup({
|
|
9074
|
+
recordId: key,
|
|
9075
|
+
node: select$6(),
|
|
9076
|
+
variables: {},
|
|
9077
|
+
}, snapshotRefresh);
|
|
9078
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9079
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
9080
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
9081
|
+
}
|
|
9082
|
+
}
|
|
9083
|
+
deepFreeze(snapshot.data);
|
|
9084
|
+
return snapshot;
|
|
9085
|
+
}
|
|
9086
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
9087
|
+
const key = keyBuilder$9(luvio, params);
|
|
9088
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
9089
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
9090
|
+
return errorSnapshot;
|
|
9091
|
+
}
|
|
9092
|
+
function createResourceRequest$4(config) {
|
|
9093
|
+
const headers = {};
|
|
9094
|
+
return {
|
|
9095
|
+
baseUri: '/services/data/v62.0',
|
|
9096
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metric-api-names/' + config.urlParams.metricApiNames + '/sub-metrics',
|
|
9097
|
+
method: 'get',
|
|
9098
|
+
body: null,
|
|
9099
|
+
urlParams: config.urlParams,
|
|
9100
|
+
queryParams: {},
|
|
9101
|
+
headers,
|
|
9102
|
+
priority: 'normal',
|
|
9103
|
+
};
|
|
9104
|
+
}
|
|
9105
|
+
|
|
9106
|
+
const adapterName$4 = 'getSemanticMetricsToSubMetrics';
|
|
9107
|
+
const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
9108
|
+
generateParamConfigMetadata('metricApiNames', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9109
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9110
|
+
];
|
|
9111
|
+
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
9112
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
9113
|
+
function keyBuilder$8(luvio, config) {
|
|
9114
|
+
const resourceParams = createResourceParams$4(config);
|
|
9115
|
+
return keyBuilder$9(luvio, resourceParams);
|
|
9116
|
+
}
|
|
9117
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
9118
|
+
const config = {};
|
|
9119
|
+
typeCheckConfig$7(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
9120
|
+
return config;
|
|
9121
|
+
}
|
|
9122
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
9123
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
9124
|
+
return null;
|
|
9125
|
+
}
|
|
9126
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9127
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
9128
|
+
}
|
|
9129
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
9130
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9131
|
+
return null;
|
|
9132
|
+
}
|
|
9133
|
+
return config;
|
|
9134
|
+
}
|
|
9135
|
+
function adapterFragment$4(luvio, config) {
|
|
9136
|
+
createResourceParams$4(config);
|
|
9137
|
+
return select$6();
|
|
9138
|
+
}
|
|
9139
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
9140
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
9141
|
+
config,
|
|
9142
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
9143
|
+
});
|
|
9144
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
9145
|
+
}
|
|
9146
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
9147
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
9148
|
+
config,
|
|
9149
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
9150
|
+
});
|
|
9151
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
9152
|
+
}
|
|
9153
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
9154
|
+
const resourceParams = createResourceParams$4(config);
|
|
9155
|
+
const request = createResourceRequest$4(resourceParams);
|
|
9156
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
9157
|
+
.then((response) => {
|
|
9158
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
9159
|
+
const cache = new StoreKeyMap();
|
|
9160
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
9161
|
+
return cache;
|
|
9162
|
+
});
|
|
9163
|
+
}, (response) => {
|
|
9164
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
9165
|
+
});
|
|
9166
|
+
}
|
|
9167
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
9168
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
9169
|
+
}
|
|
9170
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
9171
|
+
const { luvio, config } = context;
|
|
9172
|
+
const selector = {
|
|
9173
|
+
recordId: keyBuilder$8(luvio, config),
|
|
9174
|
+
node: adapterFragment$4(luvio, config),
|
|
9175
|
+
variables: {},
|
|
9176
|
+
};
|
|
9177
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
9178
|
+
config,
|
|
9179
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
9180
|
+
});
|
|
9181
|
+
return cacheSnapshot;
|
|
9182
|
+
}
|
|
9183
|
+
const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsToSubMetrics(untrustedConfig, requestContext) {
|
|
9184
|
+
const config = validateAdapterConfig$4(untrustedConfig, getSemanticMetricsToSubMetrics_ConfigPropertyNames);
|
|
9185
|
+
// Invalid or incomplete config
|
|
9186
|
+
if (config === null) {
|
|
9187
|
+
return null;
|
|
9188
|
+
}
|
|
9189
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
9190
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
9191
|
+
};
|
|
9192
|
+
|
|
9193
|
+
const VERSION$1 = "099ecda89ead862ebc5bbba6125bfa88";
|
|
9194
|
+
function validate$1(obj, path = 'SemanticMetricCollectionOutputRepresentation') {
|
|
9195
|
+
const v_error = (() => {
|
|
9196
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9197
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
9198
|
+
}
|
|
9199
|
+
const obj_metrics = obj.metrics;
|
|
9200
|
+
const path_metrics = path + '.metrics';
|
|
9201
|
+
if (!ArrayIsArray(obj_metrics)) {
|
|
9202
|
+
return new TypeError('Expected "array" but received "' + typeof obj_metrics + '" (at "' + path_metrics + '")');
|
|
9203
|
+
}
|
|
9204
|
+
for (let i = 0; i < obj_metrics.length; i++) {
|
|
9205
|
+
const obj_metrics_item = obj_metrics[i];
|
|
9206
|
+
const path_metrics_item = path_metrics + '[' + i + ']';
|
|
9207
|
+
if (typeof obj_metrics_item !== 'object') {
|
|
9208
|
+
return new TypeError('Expected "object" but received "' + typeof obj_metrics_item + '" (at "' + path_metrics_item + '")');
|
|
9209
|
+
}
|
|
9210
|
+
}
|
|
9211
|
+
})();
|
|
9212
|
+
return v_error === undefined ? null : v_error;
|
|
9213
|
+
}
|
|
9214
|
+
const RepresentationType$1 = 'SemanticMetricCollectionOutputRepresentation';
|
|
9215
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
9216
|
+
const input_metrics = input.metrics;
|
|
9217
|
+
const input_metrics_id = path.fullPath + '__metrics';
|
|
9218
|
+
for (let i = 0; i < input_metrics.length; i++) {
|
|
9219
|
+
const input_metrics_item = input_metrics[i];
|
|
9220
|
+
let input_metrics_item_id = input_metrics_id + '__' + i;
|
|
9221
|
+
input_metrics[i] = ingest$6(input_metrics_item, {
|
|
9222
|
+
fullPath: input_metrics_item_id,
|
|
9223
|
+
propertyName: i,
|
|
9224
|
+
parent: {
|
|
9225
|
+
data: input,
|
|
9226
|
+
key: path.fullPath,
|
|
9227
|
+
existing: existing,
|
|
9228
|
+
},
|
|
9229
|
+
ttl: path.ttl
|
|
9230
|
+
}, luvio, store, timestamp);
|
|
9231
|
+
}
|
|
9232
|
+
return input;
|
|
9233
|
+
}
|
|
9234
|
+
const select$5 = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
9235
|
+
return {
|
|
9236
|
+
kind: 'Fragment',
|
|
9237
|
+
version: VERSION$1,
|
|
9238
|
+
private: [],
|
|
9239
|
+
selections: [
|
|
9240
|
+
{
|
|
9241
|
+
name: 'metrics',
|
|
9242
|
+
kind: 'Link',
|
|
9243
|
+
plural: true,
|
|
9244
|
+
fragment: select$d()
|
|
9245
|
+
}
|
|
9246
|
+
]
|
|
9247
|
+
};
|
|
9248
|
+
};
|
|
9249
|
+
function equals$1(existing, incoming) {
|
|
9250
|
+
const existing_metrics = existing.metrics;
|
|
9251
|
+
const incoming_metrics = incoming.metrics;
|
|
9252
|
+
const equals_metrics_items = equalsArray(existing_metrics, incoming_metrics, (existing_metrics_item, incoming_metrics_item) => {
|
|
9253
|
+
if (!(existing_metrics_item.__ref === incoming_metrics_item.__ref)) {
|
|
9254
|
+
return false;
|
|
9255
|
+
}
|
|
9256
|
+
});
|
|
9257
|
+
if (equals_metrics_items === false) {
|
|
9258
|
+
return false;
|
|
9259
|
+
}
|
|
9260
|
+
return true;
|
|
9261
|
+
}
|
|
9262
|
+
const ingest$1 = function SemanticMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9263
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9264
|
+
const validateError = validate$1(input);
|
|
9265
|
+
if (validateError !== null) {
|
|
9266
|
+
throw validateError;
|
|
9267
|
+
}
|
|
9268
|
+
}
|
|
9269
|
+
const key = path.fullPath;
|
|
9270
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
9271
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "SemanticAuthoring", VERSION$1, RepresentationType$1, equals$1);
|
|
9272
|
+
return createLink(key);
|
|
9273
|
+
};
|
|
9274
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
9275
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
9276
|
+
const rootKey = fullPathFactory();
|
|
9277
|
+
rootKeySet.set(rootKey, {
|
|
9278
|
+
namespace: keyPrefix,
|
|
9279
|
+
representationName: RepresentationType$1,
|
|
9280
|
+
mergeable: false
|
|
9281
|
+
});
|
|
9282
|
+
const input_metrics_length = input.metrics.length;
|
|
9283
|
+
for (let i = 0; i < input_metrics_length; i++) {
|
|
9284
|
+
getTypeCacheKeys$6(rootKeySet, luvio, input.metrics[i]);
|
|
9285
|
+
}
|
|
9286
|
+
}
|
|
9287
|
+
|
|
9288
|
+
function select$4(luvio, params) {
|
|
9289
|
+
return select$5();
|
|
9290
|
+
}
|
|
9291
|
+
function keyBuilder$7(luvio, params) {
|
|
9292
|
+
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
9293
|
+
}
|
|
9294
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
9295
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
9296
|
+
}
|
|
9297
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
9298
|
+
const { body } = response;
|
|
9299
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
9300
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
9301
|
+
const snapshot = luvio.storeLookup({
|
|
9302
|
+
recordId: key,
|
|
9303
|
+
node: select$4(),
|
|
9304
|
+
variables: {},
|
|
9305
|
+
}, snapshotRefresh);
|
|
9306
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9307
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
9308
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
9309
|
+
}
|
|
9310
|
+
}
|
|
9311
|
+
deepFreeze(snapshot.data);
|
|
9312
|
+
return snapshot;
|
|
9313
|
+
}
|
|
9314
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
9315
|
+
const key = keyBuilder$7(luvio, params);
|
|
9316
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
9317
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
9318
|
+
return errorSnapshot;
|
|
9319
|
+
}
|
|
9320
|
+
function createResourceRequest$3(config) {
|
|
9321
|
+
const headers = {};
|
|
9322
|
+
return {
|
|
9323
|
+
baseUri: '/services/data/v62.0',
|
|
9324
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metrics',
|
|
9325
|
+
method: 'get',
|
|
9326
|
+
body: null,
|
|
9327
|
+
urlParams: config.urlParams,
|
|
9328
|
+
queryParams: {},
|
|
9329
|
+
headers,
|
|
9330
|
+
priority: 'normal',
|
|
9331
|
+
};
|
|
9332
|
+
}
|
|
9333
|
+
|
|
9334
|
+
const adapterName$3 = 'getSemanticMetrics';
|
|
9335
|
+
const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
9336
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9337
|
+
];
|
|
9338
|
+
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticMetrics_ConfigPropertyMetadata);
|
|
9339
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(getSemanticMetrics_ConfigPropertyMetadata);
|
|
9340
|
+
function keyBuilder$6(luvio, config) {
|
|
9341
|
+
const resourceParams = createResourceParams$3(config);
|
|
9342
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
9343
|
+
}
|
|
9344
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
9345
|
+
const config = {};
|
|
9346
|
+
typeCheckConfig$7(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
9347
|
+
return config;
|
|
9348
|
+
}
|
|
9349
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
9350
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
9351
|
+
return null;
|
|
9352
|
+
}
|
|
9353
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9354
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
9355
|
+
}
|
|
9356
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
9357
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9358
|
+
return null;
|
|
9359
|
+
}
|
|
9360
|
+
return config;
|
|
9361
|
+
}
|
|
9362
|
+
function adapterFragment$3(luvio, config) {
|
|
9363
|
+
createResourceParams$3(config);
|
|
9364
|
+
return select$4();
|
|
9365
|
+
}
|
|
9366
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
9367
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
9368
|
+
config,
|
|
9369
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
9370
|
+
});
|
|
9371
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
9372
|
+
}
|
|
9373
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
9374
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
9375
|
+
config,
|
|
9376
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
9377
|
+
});
|
|
9378
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
9379
|
+
}
|
|
9380
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
9381
|
+
const resourceParams = createResourceParams$3(config);
|
|
9382
|
+
const request = createResourceRequest$3(resourceParams);
|
|
9383
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
9384
|
+
.then((response) => {
|
|
9385
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
9386
|
+
const cache = new StoreKeyMap();
|
|
9387
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
9388
|
+
return cache;
|
|
9389
|
+
});
|
|
9390
|
+
}, (response) => {
|
|
9391
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
9392
|
+
});
|
|
9393
|
+
}
|
|
9394
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
9395
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
9396
|
+
}
|
|
9397
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
9398
|
+
const { luvio, config } = context;
|
|
9399
|
+
const selector = {
|
|
9400
|
+
recordId: keyBuilder$6(luvio, config),
|
|
9401
|
+
node: adapterFragment$3(luvio, config),
|
|
9402
|
+
variables: {},
|
|
9403
|
+
};
|
|
9404
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
9405
|
+
config,
|
|
9406
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
9407
|
+
});
|
|
9408
|
+
return cacheSnapshot;
|
|
9409
|
+
}
|
|
9410
|
+
const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetrics(untrustedConfig, requestContext) {
|
|
9411
|
+
const config = validateAdapterConfig$3(untrustedConfig, getSemanticMetrics_ConfigPropertyNames);
|
|
9412
|
+
// Invalid or incomplete config
|
|
9413
|
+
if (config === null) {
|
|
9414
|
+
return null;
|
|
9415
|
+
}
|
|
9416
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
9417
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
9418
|
+
};
|
|
9419
|
+
|
|
9420
|
+
function select$3(luvio, params) {
|
|
9421
|
+
return select$d();
|
|
9422
|
+
}
|
|
9423
|
+
function keyBuilder$5(luvio, params) {
|
|
9424
|
+
return keyBuilder$e(luvio, {
|
|
9425
|
+
name: params.urlParams.metricNameOrId
|
|
9426
|
+
});
|
|
9427
|
+
}
|
|
9428
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
9429
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
9430
|
+
}
|
|
9431
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
9432
|
+
const { body } = response;
|
|
9433
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
9434
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
9435
|
+
const snapshot = luvio.storeLookup({
|
|
9436
|
+
recordId: key,
|
|
9437
|
+
node: select$3(),
|
|
9438
|
+
variables: {},
|
|
9439
|
+
}, snapshotRefresh);
|
|
9440
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9441
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
9442
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
9443
|
+
}
|
|
9444
|
+
}
|
|
9445
|
+
deepFreeze(snapshot.data);
|
|
9446
|
+
return snapshot;
|
|
9447
|
+
}
|
|
9448
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
9449
|
+
const key = keyBuilder$5(luvio, params);
|
|
9450
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
9451
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
9452
|
+
return errorSnapshot;
|
|
9453
|
+
}
|
|
9454
|
+
function createResourceRequest$2(config) {
|
|
9455
|
+
const headers = {};
|
|
9456
|
+
return {
|
|
9457
|
+
baseUri: '/services/data/v62.0',
|
|
9458
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metrics/' + config.urlParams.metricNameOrId + '',
|
|
9459
|
+
method: 'get',
|
|
9460
|
+
body: null,
|
|
9461
|
+
urlParams: config.urlParams,
|
|
9462
|
+
queryParams: {},
|
|
9463
|
+
headers,
|
|
9464
|
+
priority: 'normal',
|
|
9465
|
+
};
|
|
9466
|
+
}
|
|
9467
|
+
|
|
9468
|
+
const adapterName$2 = 'getSemanticMetric';
|
|
9469
|
+
const getSemanticMetric_ConfigPropertyMetadata = [
|
|
9470
|
+
generateParamConfigMetadata('metricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9471
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9472
|
+
];
|
|
9473
|
+
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSemanticMetric_ConfigPropertyMetadata);
|
|
9474
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(getSemanticMetric_ConfigPropertyMetadata);
|
|
9475
|
+
function keyBuilder$4(luvio, config) {
|
|
9476
|
+
const resourceParams = createResourceParams$2(config);
|
|
9477
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
9478
|
+
}
|
|
9479
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
9480
|
+
const config = {};
|
|
9481
|
+
typeCheckConfig$7(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
9482
|
+
return config;
|
|
9483
|
+
}
|
|
9484
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
9485
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
9486
|
+
return null;
|
|
9487
|
+
}
|
|
9488
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9489
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
9490
|
+
}
|
|
9491
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
9492
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9493
|
+
return null;
|
|
9494
|
+
}
|
|
9495
|
+
return config;
|
|
9496
|
+
}
|
|
9497
|
+
function adapterFragment$2(luvio, config) {
|
|
9498
|
+
createResourceParams$2(config);
|
|
9499
|
+
return select$3();
|
|
9500
|
+
}
|
|
9501
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
9502
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
9503
|
+
config,
|
|
9504
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
9505
|
+
});
|
|
9506
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
9507
|
+
}
|
|
9508
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
9509
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
9510
|
+
config,
|
|
9511
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
9512
|
+
});
|
|
9513
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
9514
|
+
}
|
|
9515
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
9516
|
+
const resourceParams = createResourceParams$2(config);
|
|
9517
|
+
const request = createResourceRequest$2(resourceParams);
|
|
9518
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
9519
|
+
.then((response) => {
|
|
9520
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
9521
|
+
const cache = new StoreKeyMap();
|
|
9522
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
9523
|
+
return cache;
|
|
9524
|
+
});
|
|
9525
|
+
}, (response) => {
|
|
9526
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
9527
|
+
});
|
|
9528
|
+
}
|
|
9529
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
9530
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
9531
|
+
}
|
|
9532
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
9533
|
+
const { luvio, config } = context;
|
|
9534
|
+
const selector = {
|
|
9535
|
+
recordId: keyBuilder$4(luvio, config),
|
|
9536
|
+
node: adapterFragment$2(luvio, config),
|
|
9537
|
+
variables: {},
|
|
9538
|
+
};
|
|
9539
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
9540
|
+
config,
|
|
9541
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
9542
|
+
});
|
|
9543
|
+
return cacheSnapshot;
|
|
9544
|
+
}
|
|
9545
|
+
const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetric(untrustedConfig, requestContext) {
|
|
9546
|
+
const config = validateAdapterConfig$2(untrustedConfig, getSemanticMetric_ConfigPropertyNames);
|
|
9547
|
+
// Invalid or incomplete config
|
|
9548
|
+
if (config === null) {
|
|
9549
|
+
return null;
|
|
9550
|
+
}
|
|
9551
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
9552
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
9553
|
+
};
|
|
9554
|
+
|
|
9555
|
+
const VERSION = "542f239a7dc422c67d6cdffb0ff866eb";
|
|
9556
|
+
function validate(obj, path = 'SemanticSubMetricCollectionOutputRepresentation') {
|
|
9557
|
+
const v_error = (() => {
|
|
9558
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9559
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
9560
|
+
}
|
|
9561
|
+
if (obj.items !== undefined) {
|
|
9562
|
+
const obj_items = obj.items;
|
|
9563
|
+
const path_items = path + '.items';
|
|
9564
|
+
if (!ArrayIsArray(obj_items)) {
|
|
9565
|
+
return new TypeError('Expected "array" but received "' + typeof obj_items + '" (at "' + path_items + '")');
|
|
9566
|
+
}
|
|
9567
|
+
for (let i = 0; i < obj_items.length; i++) {
|
|
9568
|
+
const obj_items_item = obj_items[i];
|
|
9569
|
+
const path_items_item = path_items + '[' + i + ']';
|
|
9570
|
+
if (typeof obj_items_item !== 'object') {
|
|
9571
|
+
return new TypeError('Expected "object" but received "' + typeof obj_items_item + '" (at "' + path_items_item + '")');
|
|
9572
|
+
}
|
|
9573
|
+
}
|
|
9574
|
+
}
|
|
9575
|
+
})();
|
|
9576
|
+
return v_error === undefined ? null : v_error;
|
|
9577
|
+
}
|
|
9578
|
+
const RepresentationType = 'SemanticSubMetricCollectionOutputRepresentation';
|
|
9579
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
9580
|
+
const input_items = input.items;
|
|
9581
|
+
const input_items_id = path.fullPath + '__items';
|
|
9582
|
+
if (input_items !== undefined) {
|
|
9583
|
+
for (let i = 0; i < input_items.length; i++) {
|
|
9584
|
+
const input_items_item = input_items[i];
|
|
9585
|
+
let input_items_item_id = input_items_id + '__' + i;
|
|
9586
|
+
input_items[i] = ingest$4(input_items_item, {
|
|
9587
|
+
fullPath: input_items_item_id,
|
|
9588
|
+
propertyName: i,
|
|
9589
|
+
parent: {
|
|
9590
|
+
data: input,
|
|
9591
|
+
key: path.fullPath,
|
|
9592
|
+
existing: existing,
|
|
9593
|
+
},
|
|
9594
|
+
ttl: path.ttl
|
|
9595
|
+
}, luvio, store, timestamp);
|
|
9596
|
+
}
|
|
9597
|
+
}
|
|
9598
|
+
return input;
|
|
9599
|
+
}
|
|
9600
|
+
const select$2 = function SemanticSubMetricCollectionOutputRepresentationSelect() {
|
|
9601
|
+
return {
|
|
9602
|
+
kind: 'Fragment',
|
|
9603
|
+
version: VERSION,
|
|
9604
|
+
private: [],
|
|
9605
|
+
selections: [
|
|
9606
|
+
{
|
|
9607
|
+
name: 'items',
|
|
9608
|
+
kind: 'Link',
|
|
9609
|
+
plural: true,
|
|
9610
|
+
required: false,
|
|
9611
|
+
fragment: select$9()
|
|
9612
|
+
}
|
|
9613
|
+
]
|
|
9614
|
+
};
|
|
9615
|
+
};
|
|
9616
|
+
function equals(existing, incoming) {
|
|
9617
|
+
const existing_items = existing.items;
|
|
9618
|
+
const incoming_items = incoming.items;
|
|
9619
|
+
// if at least one of these optionals is defined
|
|
9620
|
+
if (existing_items !== undefined || incoming_items !== undefined) {
|
|
9621
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9622
|
+
// not equal
|
|
9623
|
+
if (existing_items === undefined || incoming_items === undefined) {
|
|
9624
|
+
return false;
|
|
9625
|
+
}
|
|
9626
|
+
const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
|
|
9627
|
+
if (!(existing_items_item.__ref === incoming_items_item.__ref)) {
|
|
9628
|
+
return false;
|
|
9629
|
+
}
|
|
9630
|
+
});
|
|
9631
|
+
if (equals_items_items === false) {
|
|
9632
|
+
return false;
|
|
9633
|
+
}
|
|
9634
|
+
}
|
|
9635
|
+
return true;
|
|
9636
|
+
}
|
|
9637
|
+
const ingest = function SemanticSubMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9638
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9639
|
+
const validateError = validate(input);
|
|
9640
|
+
if (validateError !== null) {
|
|
9641
|
+
throw validateError;
|
|
8197
9642
|
}
|
|
8198
9643
|
}
|
|
8199
9644
|
const key = path.fullPath;
|
|
@@ -8209,9 +9654,11 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
8209
9654
|
representationName: RepresentationType,
|
|
8210
9655
|
mergeable: false
|
|
8211
9656
|
});
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
9657
|
+
if (input.items !== undefined) {
|
|
9658
|
+
const input_items_length = input.items.length;
|
|
9659
|
+
for (let i = 0; i < input_items_length; i++) {
|
|
9660
|
+
getTypeCacheKeys$4(rootKeySet, luvio, input.items[i]);
|
|
9661
|
+
}
|
|
8215
9662
|
}
|
|
8216
9663
|
}
|
|
8217
9664
|
|
|
@@ -8219,7 +9666,7 @@ function select$1(luvio, params) {
|
|
|
8219
9666
|
return select$2();
|
|
8220
9667
|
}
|
|
8221
9668
|
function keyBuilder$3(luvio, params) {
|
|
8222
|
-
return keyPrefix + '::
|
|
9669
|
+
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
8223
9670
|
}
|
|
8224
9671
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
8225
9672
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
@@ -8251,7 +9698,7 @@ function createResourceRequest$1(config) {
|
|
|
8251
9698
|
const headers = {};
|
|
8252
9699
|
return {
|
|
8253
9700
|
baseUri: '/services/data/v62.0',
|
|
8254
|
-
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metrics',
|
|
9701
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics',
|
|
8255
9702
|
method: 'get',
|
|
8256
9703
|
body: null,
|
|
8257
9704
|
urlParams: config.urlParams,
|
|
@@ -8261,19 +9708,19 @@ function createResourceRequest$1(config) {
|
|
|
8261
9708
|
};
|
|
8262
9709
|
}
|
|
8263
9710
|
|
|
8264
|
-
const adapterName$1 = '
|
|
8265
|
-
const
|
|
9711
|
+
const adapterName$1 = 'getSemanticSubMetrics';
|
|
9712
|
+
const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
8266
9713
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8267
9714
|
];
|
|
8268
|
-
const
|
|
8269
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
9715
|
+
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
9716
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$7(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
8270
9717
|
function keyBuilder$2(luvio, config) {
|
|
8271
9718
|
const resourceParams = createResourceParams$1(config);
|
|
8272
9719
|
return keyBuilder$3(luvio, resourceParams);
|
|
8273
9720
|
}
|
|
8274
9721
|
function typeCheckConfig$1(untrustedConfig) {
|
|
8275
9722
|
const config = {};
|
|
8276
|
-
typeCheckConfig$
|
|
9723
|
+
typeCheckConfig$7(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
8277
9724
|
return config;
|
|
8278
9725
|
}
|
|
8279
9726
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -8322,7 +9769,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
8322
9769
|
});
|
|
8323
9770
|
}
|
|
8324
9771
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
8325
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9772
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
8326
9773
|
}
|
|
8327
9774
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
8328
9775
|
const { luvio, config } = context;
|
|
@@ -8337,8 +9784,8 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
|
8337
9784
|
});
|
|
8338
9785
|
return cacheSnapshot;
|
|
8339
9786
|
}
|
|
8340
|
-
const
|
|
8341
|
-
const config = validateAdapterConfig$1(untrustedConfig,
|
|
9787
|
+
const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetrics(untrustedConfig, requestContext) {
|
|
9788
|
+
const config = validateAdapterConfig$1(untrustedConfig, getSemanticSubMetrics_ConfigPropertyNames);
|
|
8342
9789
|
// Invalid or incomplete config
|
|
8343
9790
|
if (config === null) {
|
|
8344
9791
|
return null;
|
|
@@ -8348,20 +9795,20 @@ const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__
|
|
|
8348
9795
|
};
|
|
8349
9796
|
|
|
8350
9797
|
function select(luvio, params) {
|
|
8351
|
-
return select$
|
|
9798
|
+
return select$9();
|
|
8352
9799
|
}
|
|
8353
9800
|
function keyBuilder$1(luvio, params) {
|
|
8354
|
-
return keyBuilder$
|
|
8355
|
-
name: params.urlParams.
|
|
9801
|
+
return keyBuilder$a(luvio, {
|
|
9802
|
+
name: params.urlParams.subMetricNameOrId
|
|
8356
9803
|
});
|
|
8357
9804
|
}
|
|
8358
9805
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
8359
|
-
getTypeCacheKeys$
|
|
9806
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
8360
9807
|
}
|
|
8361
9808
|
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
8362
9809
|
const { body } = response;
|
|
8363
9810
|
const key = keyBuilder$1(luvio, resourceParams);
|
|
8364
|
-
luvio.storeIngest(key, ingest$
|
|
9811
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
8365
9812
|
const snapshot = luvio.storeLookup({
|
|
8366
9813
|
recordId: key,
|
|
8367
9814
|
node: select(),
|
|
@@ -8385,7 +9832,7 @@ function createResourceRequest(config) {
|
|
|
8385
9832
|
const headers = {};
|
|
8386
9833
|
return {
|
|
8387
9834
|
baseUri: '/services/data/v62.0',
|
|
8388
|
-
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metrics/' + config.urlParams.
|
|
9835
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '',
|
|
8389
9836
|
method: 'get',
|
|
8390
9837
|
body: null,
|
|
8391
9838
|
urlParams: config.urlParams,
|
|
@@ -8395,20 +9842,20 @@ function createResourceRequest(config) {
|
|
|
8395
9842
|
};
|
|
8396
9843
|
}
|
|
8397
9844
|
|
|
8398
|
-
const adapterName = '
|
|
8399
|
-
const
|
|
8400
|
-
generateParamConfigMetadata('metricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9845
|
+
const adapterName = 'getSemanticSubMetric';
|
|
9846
|
+
const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
8401
9847
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9848
|
+
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8402
9849
|
];
|
|
8403
|
-
const
|
|
8404
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
9850
|
+
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
9851
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$7(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
8405
9852
|
function keyBuilder(luvio, config) {
|
|
8406
9853
|
const resourceParams = createResourceParams(config);
|
|
8407
9854
|
return keyBuilder$1(luvio, resourceParams);
|
|
8408
9855
|
}
|
|
8409
9856
|
function typeCheckConfig(untrustedConfig) {
|
|
8410
9857
|
const config = {};
|
|
8411
|
-
typeCheckConfig$
|
|
9858
|
+
typeCheckConfig$7(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
8412
9859
|
return config;
|
|
8413
9860
|
}
|
|
8414
9861
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -8457,7 +9904,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
8457
9904
|
});
|
|
8458
9905
|
}
|
|
8459
9906
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
8460
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9907
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
8461
9908
|
}
|
|
8462
9909
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
8463
9910
|
const { luvio, config } = context;
|
|
@@ -8472,8 +9919,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
8472
9919
|
});
|
|
8473
9920
|
return cacheSnapshot;
|
|
8474
9921
|
}
|
|
8475
|
-
const
|
|
8476
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
9922
|
+
const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetric(untrustedConfig, requestContext) {
|
|
9923
|
+
const config = validateAdapterConfig(untrustedConfig, getSemanticSubMetric_ConfigPropertyNames);
|
|
8477
9924
|
// Invalid or incomplete config
|
|
8478
9925
|
if (config === null) {
|
|
8479
9926
|
return null;
|
|
@@ -8482,4 +9929,4 @@ const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
8482
9929
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
8483
9930
|
};
|
|
8484
9931
|
|
|
8485
|
-
export { getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory };
|
|
9932
|
+
export { getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory };
|