@salesforce/lds-adapters-cdp-semantic-authoring 1.309.0-dev16 → 1.309.0-dev17
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 +903 -539
- package/dist/es/es2018/types/src/generated/adapters/deleteGoalFromSubMetric.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/adapters/getSemanticSubMetrics.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/patchSemanticMetricGoal.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/deleteSsotSemanticModelsSubMetricsGoalByModelApiNameOrIdAndSubMetricNameOrId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsSubMetricsByModelApiNameOrId.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsSubMetricsGoalByModelApiNameOrIdAndSubMetricNameOrId.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticPermissions.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/patchSsotSemanticModelsLogicalViewsByLogicalViewApiNameOrIdAndModelApiNameOrId.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postSsotSemanticModelsLogicalViewsByModelApiNameOrId.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/putSsotSemanticModelsLogicalViewsByLogicalViewApiNameOrIdAndModelApiNameOrId.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/types/SemanticCalculatedFieldInputRepresentation.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/SemanticLogicalViewInputRepresentation.d.ts +7 -4
- package/dist/es/es2018/types/src/generated/types/SemanticLogicalViewOutputRepresentation.d.ts +9 -4
- package/dist/es/es2018/types/src/generated/types/SemanticModelInfoOutputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/SemanticModelOutputRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/SemanticPermissionOutputRepresentation.d.ts +39 -0
- package/package.json +3 -3
- package/sfdc/index.js +881 -511
- package/src/raml/api.raml +128 -5
- package/src/raml/luvio.raml +9 -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$8, typeCheckConfig as typeCheckConfig$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8, typeCheckConfig as typeCheckConfig$e, StoreKeyMap, createResourceParams as createResourceParams$e } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -92,8 +92,8 @@ function createLink(ref) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
const VERSION$
|
|
96
|
-
function validate
|
|
95
|
+
const VERSION$u = "3a32d382e7a2268096278aa8e5c6761a";
|
|
96
|
+
function validate$10(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
97
97
|
const v_error = (() => {
|
|
98
98
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
99
99
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -113,10 +113,10 @@ function validate$$(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
|
113
113
|
})();
|
|
114
114
|
return v_error === undefined ? null : v_error;
|
|
115
115
|
}
|
|
116
|
-
const select$
|
|
116
|
+
const select$G = function SemanticBaseModelOutputRepresentationSelect() {
|
|
117
117
|
return {
|
|
118
118
|
kind: 'Fragment',
|
|
119
|
-
version: VERSION$
|
|
119
|
+
version: VERSION$u,
|
|
120
120
|
private: [],
|
|
121
121
|
selections: [
|
|
122
122
|
{
|
|
@@ -131,7 +131,7 @@ const select$E = function SemanticBaseModelOutputRepresentationSelect() {
|
|
|
131
131
|
]
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
|
-
function equals$
|
|
134
|
+
function equals$u(existing, incoming) {
|
|
135
135
|
const existing_apiName = existing.apiName;
|
|
136
136
|
const incoming_apiName = incoming.apiName;
|
|
137
137
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -153,8 +153,8 @@ function equals$t(existing, incoming) {
|
|
|
153
153
|
return true;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
const VERSION$
|
|
157
|
-
function validate
|
|
156
|
+
const VERSION$t = "c9079354cd8127a37c0c13ea6686383c";
|
|
157
|
+
function validate$$(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
158
158
|
const v_error = (() => {
|
|
159
159
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
160
160
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -187,7 +187,7 @@ function validate$_(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
187
187
|
for (let i = 0; i < obj_baseModels.length; i++) {
|
|
188
188
|
const obj_baseModels_item = obj_baseModels[i];
|
|
189
189
|
const path_baseModels_item = path_baseModels + '[' + i + ']';
|
|
190
|
-
const referencepath_baseModels_itemValidationError = validate
|
|
190
|
+
const referencepath_baseModels_itemValidationError = validate$10(obj_baseModels_item, path_baseModels_item);
|
|
191
191
|
if (referencepath_baseModels_itemValidationError !== null) {
|
|
192
192
|
let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
|
|
193
193
|
message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -358,11 +358,11 @@ function validate$_(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
358
358
|
})();
|
|
359
359
|
return v_error === undefined ? null : v_error;
|
|
360
360
|
}
|
|
361
|
-
const select$
|
|
362
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
361
|
+
const select$F = function SemanticModelPartialOutputRepresentationSelect() {
|
|
362
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$G();
|
|
363
363
|
return {
|
|
364
364
|
kind: 'Fragment',
|
|
365
|
-
version: VERSION$
|
|
365
|
+
version: VERSION$t,
|
|
366
366
|
private: [],
|
|
367
367
|
selections: [
|
|
368
368
|
{
|
|
@@ -486,7 +486,7 @@ const select$D = function SemanticModelPartialOutputRepresentationSelect() {
|
|
|
486
486
|
]
|
|
487
487
|
};
|
|
488
488
|
};
|
|
489
|
-
function equals$
|
|
489
|
+
function equals$t(existing, incoming) {
|
|
490
490
|
const existing_isLocked = existing.isLocked;
|
|
491
491
|
const incoming_isLocked = incoming.isLocked;
|
|
492
492
|
// if at least one of these optionals is defined
|
|
@@ -730,7 +730,7 @@ function equals$s(existing, incoming) {
|
|
|
730
730
|
return false;
|
|
731
731
|
}
|
|
732
732
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
733
|
-
if (!(equals$
|
|
733
|
+
if (!(equals$u(existing_baseModels_item, incoming_baseModels_item))) {
|
|
734
734
|
return false;
|
|
735
735
|
}
|
|
736
736
|
});
|
|
@@ -772,8 +772,8 @@ function equals$s(existing, incoming) {
|
|
|
772
772
|
return true;
|
|
773
773
|
}
|
|
774
774
|
|
|
775
|
-
const VERSION$
|
|
776
|
-
function validate$
|
|
775
|
+
const VERSION$s = "198423ec58354256cc7ea6f4661ef669";
|
|
776
|
+
function validate$_(obj, path = 'SemanticModelCollectionOutputRepresentation') {
|
|
777
777
|
const v_error = (() => {
|
|
778
778
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
779
779
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -820,7 +820,7 @@ function validate$Z(obj, path = 'SemanticModelCollectionOutputRepresentation') {
|
|
|
820
820
|
for (let i = 0; i < obj_items.length; i++) {
|
|
821
821
|
const obj_items_item = obj_items[i];
|
|
822
822
|
const path_items_item = path_items + '[' + i + ']';
|
|
823
|
-
const referencepath_items_itemValidationError = validate
|
|
823
|
+
const referencepath_items_itemValidationError = validate$$(obj_items_item, path_items_item);
|
|
824
824
|
if (referencepath_items_itemValidationError !== null) {
|
|
825
825
|
let message = 'Object doesn\'t match SemanticModelPartialOutputRepresentation (at "' + path_items_item + '")\n';
|
|
826
826
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -896,11 +896,11 @@ const RepresentationType$g = 'SemanticModelCollectionOutputRepresentation';
|
|
|
896
896
|
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
897
897
|
return input;
|
|
898
898
|
}
|
|
899
|
-
const select$
|
|
900
|
-
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$
|
|
899
|
+
const select$E = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
900
|
+
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$F();
|
|
901
901
|
return {
|
|
902
902
|
kind: 'Fragment',
|
|
903
|
-
version: VERSION$
|
|
903
|
+
version: VERSION$s,
|
|
904
904
|
private: [],
|
|
905
905
|
selections: [
|
|
906
906
|
{
|
|
@@ -936,7 +936,7 @@ const select$C = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
|
936
936
|
]
|
|
937
937
|
};
|
|
938
938
|
};
|
|
939
|
-
function equals$
|
|
939
|
+
function equals$s(existing, incoming) {
|
|
940
940
|
const existing_count = existing.count;
|
|
941
941
|
const incoming_count = incoming.count;
|
|
942
942
|
if (!(existing_count === incoming_count)) {
|
|
@@ -970,7 +970,7 @@ function equals$r(existing, incoming) {
|
|
|
970
970
|
return false;
|
|
971
971
|
}
|
|
972
972
|
const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
|
|
973
|
-
if (!(equals$
|
|
973
|
+
if (!(equals$t(existing_items_item, incoming_items_item))) {
|
|
974
974
|
return false;
|
|
975
975
|
}
|
|
976
976
|
});
|
|
@@ -1008,14 +1008,14 @@ function equals$r(existing, incoming) {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
const ingest$g = function SemanticModelCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1010
1010
|
if (process.env.NODE_ENV !== 'production') {
|
|
1011
|
-
const validateError = validate$
|
|
1011
|
+
const validateError = validate$_(input);
|
|
1012
1012
|
if (validateError !== null) {
|
|
1013
1013
|
throw validateError;
|
|
1014
1014
|
}
|
|
1015
1015
|
}
|
|
1016
1016
|
const key = path.fullPath;
|
|
1017
1017
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
1018
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SemanticAuthoring", VERSION$
|
|
1018
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SemanticAuthoring", VERSION$s, RepresentationType$g, equals$s);
|
|
1019
1019
|
return createLink(key);
|
|
1020
1020
|
};
|
|
1021
1021
|
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1028,22 +1028,22 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1028
1028
|
});
|
|
1029
1029
|
}
|
|
1030
1030
|
|
|
1031
|
-
function select$
|
|
1032
|
-
return select$
|
|
1031
|
+
function select$D(luvio, params) {
|
|
1032
|
+
return select$E();
|
|
1033
1033
|
}
|
|
1034
|
-
function keyBuilder$
|
|
1034
|
+
function keyBuilder$t(luvio, params) {
|
|
1035
1035
|
return keyPrefix + '::SemanticModelCollectionOutputRepresentation:(' + 'app:' + params.queryParams.app + ',' + 'category:' + params.queryParams.category + ',' + 'dataspace:' + params.queryParams.dataspace + ',' + 'label:' + params.queryParams.label + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'sourceCreation:' + params.queryParams.sourceCreation + ',' + 'sourceCreationName:' + params.queryParams.sourceCreationName + ')';
|
|
1036
1036
|
}
|
|
1037
|
-
function getResponseCacheKeys$
|
|
1038
|
-
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$
|
|
1037
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
1038
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$t(luvio, resourceParams));
|
|
1039
1039
|
}
|
|
1040
|
-
function ingestSuccess$
|
|
1040
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
1041
1041
|
const { body } = response;
|
|
1042
|
-
const key = keyBuilder$
|
|
1042
|
+
const key = keyBuilder$t(luvio, resourceParams);
|
|
1043
1043
|
luvio.storeIngest(key, ingest$g, body);
|
|
1044
1044
|
const snapshot = luvio.storeLookup({
|
|
1045
1045
|
recordId: key,
|
|
1046
|
-
node: select$
|
|
1046
|
+
node: select$D(),
|
|
1047
1047
|
variables: {},
|
|
1048
1048
|
}, snapshotRefresh);
|
|
1049
1049
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1055,12 +1055,12 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1055
1055
|
return snapshot;
|
|
1056
1056
|
}
|
|
1057
1057
|
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
1058
|
-
const key = keyBuilder$
|
|
1058
|
+
const key = keyBuilder$t(luvio, params);
|
|
1059
1059
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1060
1060
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1061
1061
|
return errorSnapshot;
|
|
1062
1062
|
}
|
|
1063
|
-
function createResourceRequest$
|
|
1063
|
+
function createResourceRequest$d(config) {
|
|
1064
1064
|
const headers = {};
|
|
1065
1065
|
return {
|
|
1066
1066
|
baseUri: '/services/data/v62.0',
|
|
@@ -1074,7 +1074,7 @@ function createResourceRequest$b(config) {
|
|
|
1074
1074
|
};
|
|
1075
1075
|
}
|
|
1076
1076
|
|
|
1077
|
-
const adapterName$
|
|
1077
|
+
const adapterName$d = 'getSemanticModels';
|
|
1078
1078
|
const getSemanticModels_ConfigPropertyMetadata = [
|
|
1079
1079
|
generateParamConfigMetadata('app', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1080
1080
|
generateParamConfigMetadata('category', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -1086,56 +1086,56 @@ const getSemanticModels_ConfigPropertyMetadata = [
|
|
|
1086
1086
|
generateParamConfigMetadata('sourceCreation', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1087
1087
|
generateParamConfigMetadata('sourceCreationName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1088
1088
|
];
|
|
1089
|
-
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1090
|
-
const createResourceParams$
|
|
1091
|
-
function keyBuilder$
|
|
1092
|
-
const resourceParams = createResourceParams$
|
|
1093
|
-
return keyBuilder$
|
|
1089
|
+
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSemanticModels_ConfigPropertyMetadata);
|
|
1090
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$e(getSemanticModels_ConfigPropertyMetadata);
|
|
1091
|
+
function keyBuilder$s(luvio, config) {
|
|
1092
|
+
const resourceParams = createResourceParams$d(config);
|
|
1093
|
+
return keyBuilder$t(luvio, resourceParams);
|
|
1094
1094
|
}
|
|
1095
|
-
function typeCheckConfig$
|
|
1095
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
1096
1096
|
const config = {};
|
|
1097
|
-
typeCheckConfig$
|
|
1097
|
+
typeCheckConfig$e(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
|
|
1098
1098
|
return config;
|
|
1099
1099
|
}
|
|
1100
|
-
function validateAdapterConfig$
|
|
1100
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
1101
1101
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1102
1102
|
return null;
|
|
1103
1103
|
}
|
|
1104
1104
|
if (process.env.NODE_ENV !== 'production') {
|
|
1105
1105
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1106
1106
|
}
|
|
1107
|
-
const config = typeCheckConfig$
|
|
1107
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
1108
1108
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1109
1109
|
return null;
|
|
1110
1110
|
}
|
|
1111
1111
|
return config;
|
|
1112
1112
|
}
|
|
1113
1113
|
function adapterFragment$7(luvio, config) {
|
|
1114
|
-
createResourceParams$
|
|
1115
|
-
return select$
|
|
1114
|
+
createResourceParams$d(config);
|
|
1115
|
+
return select$D();
|
|
1116
1116
|
}
|
|
1117
1117
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
1118
|
-
const snapshot = ingestSuccess$
|
|
1118
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
1119
1119
|
config,
|
|
1120
|
-
resolve: () => buildNetworkSnapshot$
|
|
1120
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
1121
1121
|
});
|
|
1122
1122
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1123
1123
|
}
|
|
1124
1124
|
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
1125
1125
|
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
1126
1126
|
config,
|
|
1127
|
-
resolve: () => buildNetworkSnapshot$
|
|
1127
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
1128
1128
|
});
|
|
1129
1129
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1130
1130
|
}
|
|
1131
|
-
function buildNetworkSnapshot$
|
|
1132
|
-
const resourceParams = createResourceParams$
|
|
1133
|
-
const request = createResourceRequest$
|
|
1131
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
1132
|
+
const resourceParams = createResourceParams$d(config);
|
|
1133
|
+
const request = createResourceRequest$d(resourceParams);
|
|
1134
1134
|
return luvio.dispatchResourceRequest(request, options)
|
|
1135
1135
|
.then((response) => {
|
|
1136
1136
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
1137
1137
|
const cache = new StoreKeyMap();
|
|
1138
|
-
getResponseCacheKeys$
|
|
1138
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
1139
1139
|
return cache;
|
|
1140
1140
|
});
|
|
1141
1141
|
}, (response) => {
|
|
@@ -1143,23 +1143,23 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
1143
1143
|
});
|
|
1144
1144
|
}
|
|
1145
1145
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
1146
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1146
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
1147
1147
|
}
|
|
1148
1148
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
1149
1149
|
const { luvio, config } = context;
|
|
1150
1150
|
const selector = {
|
|
1151
|
-
recordId: keyBuilder$
|
|
1151
|
+
recordId: keyBuilder$s(luvio, config),
|
|
1152
1152
|
node: adapterFragment$7(luvio, config),
|
|
1153
1153
|
variables: {},
|
|
1154
1154
|
};
|
|
1155
1155
|
const cacheSnapshot = storeLookup(selector, {
|
|
1156
1156
|
config,
|
|
1157
|
-
resolve: () => buildNetworkSnapshot$
|
|
1157
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
1158
1158
|
});
|
|
1159
1159
|
return cacheSnapshot;
|
|
1160
1160
|
}
|
|
1161
1161
|
const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModels(untrustedConfig, requestContext) {
|
|
1162
|
-
const config = validateAdapterConfig$
|
|
1162
|
+
const config = validateAdapterConfig$d(untrustedConfig, getSemanticModels_ConfigPropertyNames);
|
|
1163
1163
|
// Invalid or incomplete config
|
|
1164
1164
|
if (config === null) {
|
|
1165
1165
|
return null;
|
|
@@ -1168,7 +1168,7 @@ const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
1168
1168
|
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
1169
1169
|
};
|
|
1170
1170
|
|
|
1171
|
-
function validate$
|
|
1171
|
+
function validate$Z(obj, path = 'SemanticBaseModelInputRepresentation') {
|
|
1172
1172
|
const v_error = (() => {
|
|
1173
1173
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1174
1174
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1184,7 +1184,7 @@ function validate$Y(obj, path = 'SemanticBaseModelInputRepresentation') {
|
|
|
1184
1184
|
return v_error === undefined ? null : v_error;
|
|
1185
1185
|
}
|
|
1186
1186
|
|
|
1187
|
-
function validate$
|
|
1187
|
+
function validate$Y(obj, path = 'SemanticFilterInputRepresentation') {
|
|
1188
1188
|
const v_error = (() => {
|
|
1189
1189
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1190
1190
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1214,7 +1214,7 @@ function validate$X(obj, path = 'SemanticFilterInputRepresentation') {
|
|
|
1214
1214
|
return v_error === undefined ? null : v_error;
|
|
1215
1215
|
}
|
|
1216
1216
|
|
|
1217
|
-
function validate$
|
|
1217
|
+
function validate$X(obj, path = 'SemanticCalculatedDimensionInputRepresentation') {
|
|
1218
1218
|
const v_error = (() => {
|
|
1219
1219
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1220
1220
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1277,7 +1277,7 @@ function validate$W(obj, path = 'SemanticCalculatedDimensionInputRepresentation'
|
|
|
1277
1277
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
1278
1278
|
const obj_filters_item = obj_filters[i];
|
|
1279
1279
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
1280
|
-
const referencepath_filters_itemValidationError = validate$
|
|
1280
|
+
const referencepath_filters_itemValidationError = validate$Y(obj_filters_item, path_filters_item);
|
|
1281
1281
|
if (referencepath_filters_itemValidationError !== null) {
|
|
1282
1282
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
1283
1283
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1324,7 +1324,7 @@ function validate$W(obj, path = 'SemanticCalculatedDimensionInputRepresentation'
|
|
|
1324
1324
|
return v_error === undefined ? null : v_error;
|
|
1325
1325
|
}
|
|
1326
1326
|
|
|
1327
|
-
function validate$
|
|
1327
|
+
function validate$W(obj, path = 'SemanticCalculatedMeasurementInputRepresentation') {
|
|
1328
1328
|
const v_error = (() => {
|
|
1329
1329
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1330
1330
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1401,7 +1401,7 @@ function validate$V(obj, path = 'SemanticCalculatedMeasurementInputRepresentatio
|
|
|
1401
1401
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
1402
1402
|
const obj_filters_item = obj_filters[i];
|
|
1403
1403
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
1404
|
-
const referencepath_filters_itemValidationError = validate$
|
|
1404
|
+
const referencepath_filters_itemValidationError = validate$Y(obj_filters_item, path_filters_item);
|
|
1405
1405
|
if (referencepath_filters_itemValidationError !== null) {
|
|
1406
1406
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
1407
1407
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1469,7 +1469,7 @@ function validate$V(obj, path = 'SemanticCalculatedMeasurementInputRepresentatio
|
|
|
1469
1469
|
return v_error === undefined ? null : v_error;
|
|
1470
1470
|
}
|
|
1471
1471
|
|
|
1472
|
-
function validate$
|
|
1472
|
+
function validate$V(obj, path = 'SemanticDimensionInputRepresentation') {
|
|
1473
1473
|
const v_error = (() => {
|
|
1474
1474
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1475
1475
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1548,7 +1548,7 @@ function validate$U(obj, path = 'SemanticDimensionInputRepresentation') {
|
|
|
1548
1548
|
return v_error === undefined ? null : v_error;
|
|
1549
1549
|
}
|
|
1550
1550
|
|
|
1551
|
-
function validate$
|
|
1551
|
+
function validate$U(obj, path = 'SemanticMeasurementInputRepresentation') {
|
|
1552
1552
|
const v_error = (() => {
|
|
1553
1553
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1554
1554
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1655,7 +1655,7 @@ function validate$T(obj, path = 'SemanticMeasurementInputRepresentation') {
|
|
|
1655
1655
|
return v_error === undefined ? null : v_error;
|
|
1656
1656
|
}
|
|
1657
1657
|
|
|
1658
|
-
function validate$
|
|
1658
|
+
function validate$T(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
1659
1659
|
const v_error = (() => {
|
|
1660
1660
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1661
1661
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1704,7 +1704,7 @@ function validate$S(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
1704
1704
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
1705
1705
|
const obj_filters_item = obj_filters[i];
|
|
1706
1706
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
1707
|
-
const referencepath_filters_itemValidationError = validate$
|
|
1707
|
+
const referencepath_filters_itemValidationError = validate$Y(obj_filters_item, path_filters_item);
|
|
1708
1708
|
if (referencepath_filters_itemValidationError !== null) {
|
|
1709
1709
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
1710
1710
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1735,7 +1735,7 @@ function validate$S(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
1735
1735
|
for (let i = 0; i < obj_semanticDimensions.length; i++) {
|
|
1736
1736
|
const obj_semanticDimensions_item = obj_semanticDimensions[i];
|
|
1737
1737
|
const path_semanticDimensions_item = path_semanticDimensions + '[' + i + ']';
|
|
1738
|
-
const referencepath_semanticDimensions_itemValidationError = validate$
|
|
1738
|
+
const referencepath_semanticDimensions_itemValidationError = validate$V(obj_semanticDimensions_item, path_semanticDimensions_item);
|
|
1739
1739
|
if (referencepath_semanticDimensions_itemValidationError !== null) {
|
|
1740
1740
|
let message = 'Object doesn\'t match SemanticDimensionInputRepresentation (at "' + path_semanticDimensions_item + '")\n';
|
|
1741
1741
|
message += referencepath_semanticDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1752,7 +1752,7 @@ function validate$S(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
1752
1752
|
for (let i = 0; i < obj_semanticMeasurements.length; i++) {
|
|
1753
1753
|
const obj_semanticMeasurements_item = obj_semanticMeasurements[i];
|
|
1754
1754
|
const path_semanticMeasurements_item = path_semanticMeasurements + '[' + i + ']';
|
|
1755
|
-
const referencepath_semanticMeasurements_itemValidationError = validate$
|
|
1755
|
+
const referencepath_semanticMeasurements_itemValidationError = validate$U(obj_semanticMeasurements_item, path_semanticMeasurements_item);
|
|
1756
1756
|
if (referencepath_semanticMeasurements_itemValidationError !== null) {
|
|
1757
1757
|
let message = 'Object doesn\'t match SemanticMeasurementInputRepresentation (at "' + path_semanticMeasurements_item + '")\n';
|
|
1758
1758
|
message += referencepath_semanticMeasurements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1771,7 +1771,7 @@ function validate$S(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
1771
1771
|
return v_error === undefined ? null : v_error;
|
|
1772
1772
|
}
|
|
1773
1773
|
|
|
1774
|
-
function validate$
|
|
1774
|
+
function validate$S(obj, path = 'BinDimensionConfigurationInputRepresentation') {
|
|
1775
1775
|
const v_error = (() => {
|
|
1776
1776
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1777
1777
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1783,7 +1783,7 @@ function validate$R(obj, path = 'BinDimensionConfigurationInputRepresentation')
|
|
|
1783
1783
|
return v_error === undefined ? null : v_error;
|
|
1784
1784
|
}
|
|
1785
1785
|
|
|
1786
|
-
function validate$
|
|
1786
|
+
function validate$R(obj, path = 'GroupDimensionGroupInputRepresentation') {
|
|
1787
1787
|
const v_error = (() => {
|
|
1788
1788
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1789
1789
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1813,7 +1813,7 @@ function validate$Q(obj, path = 'GroupDimensionGroupInputRepresentation') {
|
|
|
1813
1813
|
return v_error === undefined ? null : v_error;
|
|
1814
1814
|
}
|
|
1815
1815
|
|
|
1816
|
-
function validate$
|
|
1816
|
+
function validate$Q(obj, path = 'GroupDimensionConfigurationInputRepresentation') {
|
|
1817
1817
|
const v_error = (() => {
|
|
1818
1818
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1819
1819
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1827,7 +1827,7 @@ function validate$P(obj, path = 'GroupDimensionConfigurationInputRepresentation'
|
|
|
1827
1827
|
for (let i = 0; i < obj_groups.length; i++) {
|
|
1828
1828
|
const obj_groups_item = obj_groups[i];
|
|
1829
1829
|
const path_groups_item = path_groups + '[' + i + ']';
|
|
1830
|
-
const referencepath_groups_itemValidationError = validate$
|
|
1830
|
+
const referencepath_groups_itemValidationError = validate$R(obj_groups_item, path_groups_item);
|
|
1831
1831
|
if (referencepath_groups_itemValidationError !== null) {
|
|
1832
1832
|
let message = 'Object doesn\'t match GroupDimensionGroupInputRepresentation (at "' + path_groups_item + '")\n';
|
|
1833
1833
|
message += referencepath_groups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1846,7 +1846,7 @@ function validate$P(obj, path = 'GroupDimensionConfigurationInputRepresentation'
|
|
|
1846
1846
|
return v_error === undefined ? null : v_error;
|
|
1847
1847
|
}
|
|
1848
1848
|
|
|
1849
|
-
function validate$
|
|
1849
|
+
function validate$P(obj, path = 'SemanticGroupingConfigurationInputRepresentation') {
|
|
1850
1850
|
const v_error = (() => {
|
|
1851
1851
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1852
1852
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1854,7 +1854,7 @@ function validate$O(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
1854
1854
|
if (obj.binDimension !== undefined) {
|
|
1855
1855
|
const obj_binDimension = obj.binDimension;
|
|
1856
1856
|
const path_binDimension = path + '.binDimension';
|
|
1857
|
-
const referencepath_binDimensionValidationError = validate$
|
|
1857
|
+
const referencepath_binDimensionValidationError = validate$S(obj_binDimension, path_binDimension);
|
|
1858
1858
|
if (referencepath_binDimensionValidationError !== null) {
|
|
1859
1859
|
let message = 'Object doesn\'t match BinDimensionConfigurationInputRepresentation (at "' + path_binDimension + '")\n';
|
|
1860
1860
|
message += referencepath_binDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1864,7 +1864,7 @@ function validate$O(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
1864
1864
|
if (obj.groupDimension !== undefined) {
|
|
1865
1865
|
const obj_groupDimension = obj.groupDimension;
|
|
1866
1866
|
const path_groupDimension = path + '.groupDimension';
|
|
1867
|
-
const referencepath_groupDimensionValidationError = validate$
|
|
1867
|
+
const referencepath_groupDimensionValidationError = validate$Q(obj_groupDimension, path_groupDimension);
|
|
1868
1868
|
if (referencepath_groupDimensionValidationError !== null) {
|
|
1869
1869
|
let message = 'Object doesn\'t match GroupDimensionConfigurationInputRepresentation (at "' + path_groupDimension + '")\n';
|
|
1870
1870
|
message += referencepath_groupDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1875,7 +1875,7 @@ function validate$O(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
1875
1875
|
return v_error === undefined ? null : v_error;
|
|
1876
1876
|
}
|
|
1877
1877
|
|
|
1878
|
-
function validate$
|
|
1878
|
+
function validate$O(obj, path = 'SemanticTableFieldReferenceInputRepresentation') {
|
|
1879
1879
|
const v_error = (() => {
|
|
1880
1880
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1881
1881
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1898,7 +1898,7 @@ function validate$N(obj, path = 'SemanticTableFieldReferenceInputRepresentation'
|
|
|
1898
1898
|
return v_error === undefined ? null : v_error;
|
|
1899
1899
|
}
|
|
1900
1900
|
|
|
1901
|
-
function validate$
|
|
1901
|
+
function validate$N(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
1902
1902
|
const v_error = (() => {
|
|
1903
1903
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1904
1904
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1913,7 +1913,7 @@ function validate$M(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
|
1913
1913
|
if (obj.tableFieldReference !== undefined) {
|
|
1914
1914
|
const obj_tableFieldReference = obj.tableFieldReference;
|
|
1915
1915
|
const path_tableFieldReference = path + '.tableFieldReference';
|
|
1916
|
-
const referencepath_tableFieldReferenceValidationError = validate$
|
|
1916
|
+
const referencepath_tableFieldReferenceValidationError = validate$O(obj_tableFieldReference, path_tableFieldReference);
|
|
1917
1917
|
if (referencepath_tableFieldReferenceValidationError !== null) {
|
|
1918
1918
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceInputRepresentation (at "' + path_tableFieldReference + '")\n';
|
|
1919
1919
|
message += referencepath_tableFieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1924,7 +1924,7 @@ function validate$M(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
|
1924
1924
|
return v_error === undefined ? null : v_error;
|
|
1925
1925
|
}
|
|
1926
1926
|
|
|
1927
|
-
function validate$
|
|
1927
|
+
function validate$M(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
1928
1928
|
const v_error = (() => {
|
|
1929
1929
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1930
1930
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1939,7 +1939,7 @@ function validate$L(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
1939
1939
|
if (obj.configuration !== undefined) {
|
|
1940
1940
|
const obj_configuration = obj.configuration;
|
|
1941
1941
|
const path_configuration = path + '.configuration';
|
|
1942
|
-
const referencepath_configurationValidationError = validate$
|
|
1942
|
+
const referencepath_configurationValidationError = validate$P(obj_configuration, path_configuration);
|
|
1943
1943
|
if (referencepath_configurationValidationError !== null) {
|
|
1944
1944
|
let message = 'Object doesn\'t match SemanticGroupingConfigurationInputRepresentation (at "' + path_configuration + '")\n';
|
|
1945
1945
|
message += referencepath_configurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1956,7 +1956,7 @@ function validate$L(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
1956
1956
|
if (obj.fieldReference !== undefined) {
|
|
1957
1957
|
const obj_fieldReference = obj.fieldReference;
|
|
1958
1958
|
const path_fieldReference = path + '.fieldReference';
|
|
1959
|
-
const referencepath_fieldReferenceValidationError = validate$
|
|
1959
|
+
const referencepath_fieldReferenceValidationError = validate$N(obj_fieldReference, path_fieldReference);
|
|
1960
1960
|
if (referencepath_fieldReferenceValidationError !== null) {
|
|
1961
1961
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_fieldReference + '")\n';
|
|
1962
1962
|
message += referencepath_fieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1981,7 +1981,7 @@ function validate$L(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
1981
1981
|
return v_error === undefined ? null : v_error;
|
|
1982
1982
|
}
|
|
1983
1983
|
|
|
1984
|
-
function validate$
|
|
1984
|
+
function validate$L(obj, path = 'SemanticRelationshipCriteriaInputRepresentation') {
|
|
1985
1985
|
const v_error = (() => {
|
|
1986
1986
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1987
1987
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2025,7 +2025,7 @@ function validate$K(obj, path = 'SemanticRelationshipCriteriaInputRepresentation
|
|
|
2025
2025
|
return v_error === undefined ? null : v_error;
|
|
2026
2026
|
}
|
|
2027
2027
|
|
|
2028
|
-
function validate$
|
|
2028
|
+
function validate$K(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
2029
2029
|
const v_error = (() => {
|
|
2030
2030
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2031
2031
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2053,7 +2053,7 @@ function validate$J(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
|
2053
2053
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
2054
2054
|
const obj_criteria_item = obj_criteria[i];
|
|
2055
2055
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
2056
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
2056
|
+
const referencepath_criteria_itemValidationError = validate$L(obj_criteria_item, path_criteria_item);
|
|
2057
2057
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
2058
2058
|
let message = 'Object doesn\'t match SemanticRelationshipCriteriaInputRepresentation (at "' + path_criteria_item + '")\n';
|
|
2059
2059
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2114,7 +2114,7 @@ function validate$J(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
|
2114
2114
|
return v_error === undefined ? null : v_error;
|
|
2115
2115
|
}
|
|
2116
2116
|
|
|
2117
|
-
function validate$
|
|
2117
|
+
function validate$J(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
2118
2118
|
const v_error = (() => {
|
|
2119
2119
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2120
2120
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2142,7 +2142,7 @@ function validate$I(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
2142
2142
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
2143
2143
|
const obj_fields_item = obj_fields[i];
|
|
2144
2144
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
2145
|
-
const referencepath_fields_itemValidationError = validate$
|
|
2145
|
+
const referencepath_fields_itemValidationError = validate$O(obj_fields_item, path_fields_item);
|
|
2146
2146
|
if (referencepath_fields_itemValidationError !== null) {
|
|
2147
2147
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceInputRepresentation (at "' + path_fields_item + '")\n';
|
|
2148
2148
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2167,7 +2167,7 @@ function validate$I(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
2167
2167
|
if (obj.semanticDimension !== undefined) {
|
|
2168
2168
|
const obj_semanticDimension = obj.semanticDimension;
|
|
2169
2169
|
const path_semanticDimension = path + '.semanticDimension';
|
|
2170
|
-
const referencepath_semanticDimensionValidationError = validate$
|
|
2170
|
+
const referencepath_semanticDimensionValidationError = validate$V(obj_semanticDimension, path_semanticDimension);
|
|
2171
2171
|
if (referencepath_semanticDimensionValidationError !== null) {
|
|
2172
2172
|
let message = 'Object doesn\'t match SemanticDimensionInputRepresentation (at "' + path_semanticDimension + '")\n';
|
|
2173
2173
|
message += referencepath_semanticDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2177,7 +2177,7 @@ function validate$I(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
2177
2177
|
if (obj.semanticMeasurement !== undefined) {
|
|
2178
2178
|
const obj_semanticMeasurement = obj.semanticMeasurement;
|
|
2179
2179
|
const path_semanticMeasurement = path + '.semanticMeasurement';
|
|
2180
|
-
const referencepath_semanticMeasurementValidationError = validate$
|
|
2180
|
+
const referencepath_semanticMeasurementValidationError = validate$U(obj_semanticMeasurement, path_semanticMeasurement);
|
|
2181
2181
|
if (referencepath_semanticMeasurementValidationError !== null) {
|
|
2182
2182
|
let message = 'Object doesn\'t match SemanticMeasurementInputRepresentation (at "' + path_semanticMeasurement + '")\n';
|
|
2183
2183
|
message += referencepath_semanticMeasurementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2188,7 +2188,7 @@ function validate$I(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
2188
2188
|
return v_error === undefined ? null : v_error;
|
|
2189
2189
|
}
|
|
2190
2190
|
|
|
2191
|
-
function validate$
|
|
2191
|
+
function validate$I(obj, path = 'SemanticUnionInputRepresentation') {
|
|
2192
2192
|
const v_error = (() => {
|
|
2193
2193
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2194
2194
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2223,7 +2223,7 @@ function validate$H(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
2223
2223
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
2224
2224
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
2225
2225
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
2226
|
-
const referencepath_semanticDataObjects_itemValidationError = validate$
|
|
2226
|
+
const referencepath_semanticDataObjects_itemValidationError = validate$T(obj_semanticDataObjects_item, path_semanticDataObjects_item);
|
|
2227
2227
|
if (referencepath_semanticDataObjects_itemValidationError !== null) {
|
|
2228
2228
|
let message = 'Object doesn\'t match SemanticDataObjectInputRepresentation (at "' + path_semanticDataObjects_item + '")\n';
|
|
2229
2229
|
message += referencepath_semanticDataObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2240,7 +2240,7 @@ function validate$H(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
2240
2240
|
for (let i = 0; i < obj_semanticMappedFields.length; i++) {
|
|
2241
2241
|
const obj_semanticMappedFields_item = obj_semanticMappedFields[i];
|
|
2242
2242
|
const path_semanticMappedFields_item = path_semanticMappedFields + '[' + i + ']';
|
|
2243
|
-
const referencepath_semanticMappedFields_itemValidationError = validate$
|
|
2243
|
+
const referencepath_semanticMappedFields_itemValidationError = validate$J(obj_semanticMappedFields_item, path_semanticMappedFields_item);
|
|
2244
2244
|
if (referencepath_semanticMappedFields_itemValidationError !== null) {
|
|
2245
2245
|
let message = 'Object doesn\'t match SemanticMappedFieldInputRepresentation (at "' + path_semanticMappedFields_item + '")\n';
|
|
2246
2246
|
message += referencepath_semanticMappedFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2252,11 +2252,18 @@ function validate$H(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
2252
2252
|
return v_error === undefined ? null : v_error;
|
|
2253
2253
|
}
|
|
2254
2254
|
|
|
2255
|
-
function validate$
|
|
2255
|
+
function validate$H(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
2256
2256
|
const v_error = (() => {
|
|
2257
2257
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2258
2258
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2259
2259
|
}
|
|
2260
|
+
if (obj.CustomSql !== undefined) {
|
|
2261
|
+
const obj_CustomSql = obj.CustomSql;
|
|
2262
|
+
const path_CustomSql = path + '.CustomSql';
|
|
2263
|
+
if (typeof obj_CustomSql !== 'string') {
|
|
2264
|
+
return new TypeError('Expected "string" but received "' + typeof obj_CustomSql + '" (at "' + path_CustomSql + '")');
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2260
2267
|
if (obj.apiName !== undefined) {
|
|
2261
2268
|
const obj_apiName = obj.apiName;
|
|
2262
2269
|
const path_apiName = path + '.apiName';
|
|
@@ -2264,13 +2271,6 @@ function validate$G(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
2264
2271
|
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
2265
2272
|
}
|
|
2266
2273
|
}
|
|
2267
|
-
if (obj.customSql !== undefined) {
|
|
2268
|
-
const obj_customSql = obj.customSql;
|
|
2269
|
-
const path_customSql = path + '.customSql';
|
|
2270
|
-
if (typeof obj_customSql !== 'string') {
|
|
2271
|
-
return new TypeError('Expected "string" but received "' + typeof obj_customSql + '" (at "' + path_customSql + '")');
|
|
2272
|
-
}
|
|
2273
|
-
}
|
|
2274
2274
|
if (obj.description !== undefined) {
|
|
2275
2275
|
const obj_description = obj.description;
|
|
2276
2276
|
const path_description = path + '.description';
|
|
@@ -2294,7 +2294,7 @@ function validate$G(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
2294
2294
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
2295
2295
|
const obj_filters_item = obj_filters[i];
|
|
2296
2296
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
2297
|
-
const referencepath_filters_itemValidationError = validate$
|
|
2297
|
+
const referencepath_filters_itemValidationError = validate$Y(obj_filters_item, path_filters_item);
|
|
2298
2298
|
if (referencepath_filters_itemValidationError !== null) {
|
|
2299
2299
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
2300
2300
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2309,6 +2309,23 @@ function validate$G(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
2309
2309
|
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
2310
2310
|
}
|
|
2311
2311
|
}
|
|
2312
|
+
if (obj.referenceIntegritySemanticDataObjects !== undefined) {
|
|
2313
|
+
const obj_referenceIntegritySemanticDataObjects = obj.referenceIntegritySemanticDataObjects;
|
|
2314
|
+
const path_referenceIntegritySemanticDataObjects = path + '.referenceIntegritySemanticDataObjects';
|
|
2315
|
+
if (!ArrayIsArray(obj_referenceIntegritySemanticDataObjects)) {
|
|
2316
|
+
return new TypeError('Expected "array" but received "' + typeof obj_referenceIntegritySemanticDataObjects + '" (at "' + path_referenceIntegritySemanticDataObjects + '")');
|
|
2317
|
+
}
|
|
2318
|
+
for (let i = 0; i < obj_referenceIntegritySemanticDataObjects.length; i++) {
|
|
2319
|
+
const obj_referenceIntegritySemanticDataObjects_item = obj_referenceIntegritySemanticDataObjects[i];
|
|
2320
|
+
const path_referenceIntegritySemanticDataObjects_item = path_referenceIntegritySemanticDataObjects + '[' + i + ']';
|
|
2321
|
+
const referencepath_referenceIntegritySemanticDataObjects_itemValidationError = validate$T(obj_referenceIntegritySemanticDataObjects_item, path_referenceIntegritySemanticDataObjects_item);
|
|
2322
|
+
if (referencepath_referenceIntegritySemanticDataObjects_itemValidationError !== null) {
|
|
2323
|
+
let message = 'Object doesn\'t match SemanticDataObjectInputRepresentation (at "' + path_referenceIntegritySemanticDataObjects_item + '")\n';
|
|
2324
|
+
message += referencepath_referenceIntegritySemanticDataObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2325
|
+
return new TypeError(message);
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
}
|
|
2312
2329
|
if (obj.semanticDataObjects !== undefined) {
|
|
2313
2330
|
const obj_semanticDataObjects = obj.semanticDataObjects;
|
|
2314
2331
|
const path_semanticDataObjects = path + '.semanticDataObjects';
|
|
@@ -2318,7 +2335,7 @@ function validate$G(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
2318
2335
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
2319
2336
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
2320
2337
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
2321
|
-
const referencepath_semanticDataObjects_itemValidationError = validate$
|
|
2338
|
+
const referencepath_semanticDataObjects_itemValidationError = validate$T(obj_semanticDataObjects_item, path_semanticDataObjects_item);
|
|
2322
2339
|
if (referencepath_semanticDataObjects_itemValidationError !== null) {
|
|
2323
2340
|
let message = 'Object doesn\'t match SemanticDataObjectInputRepresentation (at "' + path_semanticDataObjects_item + '")\n';
|
|
2324
2341
|
message += referencepath_semanticDataObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2335,7 +2352,7 @@ function validate$G(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
2335
2352
|
for (let i = 0; i < obj_semanticRelationships.length; i++) {
|
|
2336
2353
|
const obj_semanticRelationships_item = obj_semanticRelationships[i];
|
|
2337
2354
|
const path_semanticRelationships_item = path_semanticRelationships + '[' + i + ']';
|
|
2338
|
-
const referencepath_semanticRelationships_itemValidationError = validate$
|
|
2355
|
+
const referencepath_semanticRelationships_itemValidationError = validate$K(obj_semanticRelationships_item, path_semanticRelationships_item);
|
|
2339
2356
|
if (referencepath_semanticRelationships_itemValidationError !== null) {
|
|
2340
2357
|
let message = 'Object doesn\'t match SemanticRelationshipInputRepresentation (at "' + path_semanticRelationships_item + '")\n';
|
|
2341
2358
|
message += referencepath_semanticRelationships_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2352,7 +2369,7 @@ function validate$G(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
2352
2369
|
for (let i = 0; i < obj_semanticUnions.length; i++) {
|
|
2353
2370
|
const obj_semanticUnions_item = obj_semanticUnions[i];
|
|
2354
2371
|
const path_semanticUnions_item = path_semanticUnions + '[' + i + ']';
|
|
2355
|
-
const referencepath_semanticUnions_itemValidationError = validate$
|
|
2372
|
+
const referencepath_semanticUnions_itemValidationError = validate$I(obj_semanticUnions_item, path_semanticUnions_item);
|
|
2356
2373
|
if (referencepath_semanticUnions_itemValidationError !== null) {
|
|
2357
2374
|
let message = 'Object doesn\'t match SemanticUnionInputRepresentation (at "' + path_semanticUnions_item + '")\n';
|
|
2358
2375
|
message += referencepath_semanticUnions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2364,7 +2381,7 @@ function validate$G(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
2364
2381
|
return v_error === undefined ? null : v_error;
|
|
2365
2382
|
}
|
|
2366
2383
|
|
|
2367
|
-
function validate$
|
|
2384
|
+
function validate$G(obj, path = 'SemanticIdentifyingDimensionInputRepresentation') {
|
|
2368
2385
|
const v_error = (() => {
|
|
2369
2386
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2370
2387
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2372,7 +2389,7 @@ function validate$F(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
2372
2389
|
if (obj.identifierDimensionReference !== undefined) {
|
|
2373
2390
|
const obj_identifierDimensionReference = obj.identifierDimensionReference;
|
|
2374
2391
|
const path_identifierDimensionReference = path + '.identifierDimensionReference';
|
|
2375
|
-
const referencepath_identifierDimensionReferenceValidationError = validate$
|
|
2392
|
+
const referencepath_identifierDimensionReferenceValidationError = validate$N(obj_identifierDimensionReference, path_identifierDimensionReference);
|
|
2376
2393
|
if (referencepath_identifierDimensionReferenceValidationError !== null) {
|
|
2377
2394
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_identifierDimensionReference + '")\n';
|
|
2378
2395
|
message += referencepath_identifierDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2382,7 +2399,7 @@ function validate$F(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
2382
2399
|
if (obj.namingDimensionReference !== undefined) {
|
|
2383
2400
|
const obj_namingDimensionReference = obj.namingDimensionReference;
|
|
2384
2401
|
const path_namingDimensionReference = path + '.namingDimensionReference';
|
|
2385
|
-
const referencepath_namingDimensionReferenceValidationError = validate$
|
|
2402
|
+
const referencepath_namingDimensionReferenceValidationError = validate$N(obj_namingDimensionReference, path_namingDimensionReference);
|
|
2386
2403
|
if (referencepath_namingDimensionReferenceValidationError !== null) {
|
|
2387
2404
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_namingDimensionReference + '")\n';
|
|
2388
2405
|
message += referencepath_namingDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2393,7 +2410,7 @@ function validate$F(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
2393
2410
|
return v_error === undefined ? null : v_error;
|
|
2394
2411
|
}
|
|
2395
2412
|
|
|
2396
|
-
function validate$
|
|
2413
|
+
function validate$F(obj, path = 'SemanticInsightTypeInputRepresentation') {
|
|
2397
2414
|
const v_error = (() => {
|
|
2398
2415
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2399
2416
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2416,7 +2433,7 @@ function validate$E(obj, path = 'SemanticInsightTypeInputRepresentation') {
|
|
|
2416
2433
|
return v_error === undefined ? null : v_error;
|
|
2417
2434
|
}
|
|
2418
2435
|
|
|
2419
|
-
function validate$
|
|
2436
|
+
function validate$E(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
2420
2437
|
const v_error = (() => {
|
|
2421
2438
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2422
2439
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2424,7 +2441,7 @@ function validate$D(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
2424
2441
|
if (obj.identifyingDimension !== undefined) {
|
|
2425
2442
|
const obj_identifyingDimension = obj.identifyingDimension;
|
|
2426
2443
|
const path_identifyingDimension = path + '.identifyingDimension';
|
|
2427
|
-
const referencepath_identifyingDimensionValidationError = validate$
|
|
2444
|
+
const referencepath_identifyingDimensionValidationError = validate$G(obj_identifyingDimension, path_identifyingDimension);
|
|
2428
2445
|
if (referencepath_identifyingDimensionValidationError !== null) {
|
|
2429
2446
|
let message = 'Object doesn\'t match SemanticIdentifyingDimensionInputRepresentation (at "' + path_identifyingDimension + '")\n';
|
|
2430
2447
|
message += referencepath_identifyingDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2440,7 +2457,7 @@ function validate$D(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
2440
2457
|
for (let i = 0; i < obj_insightTypes.length; i++) {
|
|
2441
2458
|
const obj_insightTypes_item = obj_insightTypes[i];
|
|
2442
2459
|
const path_insightTypes_item = path_insightTypes + '[' + i + ']';
|
|
2443
|
-
const referencepath_insightTypes_itemValidationError = validate$
|
|
2460
|
+
const referencepath_insightTypes_itemValidationError = validate$F(obj_insightTypes_item, path_insightTypes_item);
|
|
2444
2461
|
if (referencepath_insightTypes_itemValidationError !== null) {
|
|
2445
2462
|
let message = 'Object doesn\'t match SemanticInsightTypeInputRepresentation (at "' + path_insightTypes_item + '")\n';
|
|
2446
2463
|
message += referencepath_insightTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2457,7 +2474,7 @@ function validate$D(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
2457
2474
|
for (let i = 0; i < obj_insightsDimensionsReferences.length; i++) {
|
|
2458
2475
|
const obj_insightsDimensionsReferences_item = obj_insightsDimensionsReferences[i];
|
|
2459
2476
|
const path_insightsDimensionsReferences_item = path_insightsDimensionsReferences + '[' + i + ']';
|
|
2460
|
-
const referencepath_insightsDimensionsReferences_itemValidationError = validate$
|
|
2477
|
+
const referencepath_insightsDimensionsReferences_itemValidationError = validate$N(obj_insightsDimensionsReferences_item, path_insightsDimensionsReferences_item);
|
|
2461
2478
|
if (referencepath_insightsDimensionsReferences_itemValidationError !== null) {
|
|
2462
2479
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_insightsDimensionsReferences_item + '")\n';
|
|
2463
2480
|
message += referencepath_insightsDimensionsReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2490,7 +2507,7 @@ function validate$D(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
2490
2507
|
return v_error === undefined ? null : v_error;
|
|
2491
2508
|
}
|
|
2492
2509
|
|
|
2493
|
-
function validate$
|
|
2510
|
+
function validate$D(obj, path = 'SemanticMetricInputRepresentation') {
|
|
2494
2511
|
const v_error = (() => {
|
|
2495
2512
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2496
2513
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2504,7 +2521,7 @@ function validate$C(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
2504
2521
|
for (let i = 0; i < obj_additionalDimensions.length; i++) {
|
|
2505
2522
|
const obj_additionalDimensions_item = obj_additionalDimensions[i];
|
|
2506
2523
|
const path_additionalDimensions_item = path_additionalDimensions + '[' + i + ']';
|
|
2507
|
-
const referencepath_additionalDimensions_itemValidationError = validate$
|
|
2524
|
+
const referencepath_additionalDimensions_itemValidationError = validate$N(obj_additionalDimensions_item, path_additionalDimensions_item);
|
|
2508
2525
|
if (referencepath_additionalDimensions_itemValidationError !== null) {
|
|
2509
2526
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_additionalDimensions_item + '")\n';
|
|
2510
2527
|
message += referencepath_additionalDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2549,7 +2566,7 @@ function validate$C(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
2549
2566
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
2550
2567
|
const obj_filters_item = obj_filters[i];
|
|
2551
2568
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
2552
|
-
const referencepath_filters_itemValidationError = validate$
|
|
2569
|
+
const referencepath_filters_itemValidationError = validate$Y(obj_filters_item, path_filters_item);
|
|
2553
2570
|
if (referencepath_filters_itemValidationError !== null) {
|
|
2554
2571
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
2555
2572
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2560,7 +2577,7 @@ function validate$C(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
2560
2577
|
if (obj.insightsSettings !== undefined) {
|
|
2561
2578
|
const obj_insightsSettings = obj.insightsSettings;
|
|
2562
2579
|
const path_insightsSettings = path + '.insightsSettings';
|
|
2563
|
-
const referencepath_insightsSettingsValidationError = validate$
|
|
2580
|
+
const referencepath_insightsSettingsValidationError = validate$E(obj_insightsSettings, path_insightsSettings);
|
|
2564
2581
|
if (referencepath_insightsSettingsValidationError !== null) {
|
|
2565
2582
|
let message = 'Object doesn\'t match SemanticInsightsSettingsInputRepresentation (at "' + path_insightsSettings + '")\n';
|
|
2566
2583
|
message += referencepath_insightsSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2584,7 +2601,7 @@ function validate$C(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
2584
2601
|
if (obj.measurementReference !== undefined) {
|
|
2585
2602
|
const obj_measurementReference = obj.measurementReference;
|
|
2586
2603
|
const path_measurementReference = path + '.measurementReference';
|
|
2587
|
-
const referencepath_measurementReferenceValidationError = validate$
|
|
2604
|
+
const referencepath_measurementReferenceValidationError = validate$N(obj_measurementReference, path_measurementReference);
|
|
2588
2605
|
if (referencepath_measurementReferenceValidationError !== null) {
|
|
2589
2606
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_measurementReference + '")\n';
|
|
2590
2607
|
message += referencepath_measurementReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2594,7 +2611,7 @@ function validate$C(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
2594
2611
|
if (obj.timeDimensionReference !== undefined) {
|
|
2595
2612
|
const obj_timeDimensionReference = obj.timeDimensionReference;
|
|
2596
2613
|
const path_timeDimensionReference = path + '.timeDimensionReference';
|
|
2597
|
-
const referencepath_timeDimensionReferenceValidationError = validate$
|
|
2614
|
+
const referencepath_timeDimensionReferenceValidationError = validate$N(obj_timeDimensionReference, path_timeDimensionReference);
|
|
2598
2615
|
if (referencepath_timeDimensionReferenceValidationError !== null) {
|
|
2599
2616
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_timeDimensionReference + '")\n';
|
|
2600
2617
|
message += referencepath_timeDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2619,7 +2636,7 @@ function validate$C(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
2619
2636
|
return v_error === undefined ? null : v_error;
|
|
2620
2637
|
}
|
|
2621
2638
|
|
|
2622
|
-
function validate$
|
|
2639
|
+
function validate$C(obj, path = 'SemanticParameterInputRepresentation') {
|
|
2623
2640
|
const v_error = (() => {
|
|
2624
2641
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2625
2642
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2705,6 +2722,70 @@ function validate$B(obj, path = 'SemanticParameterInputRepresentation') {
|
|
|
2705
2722
|
return v_error === undefined ? null : v_error;
|
|
2706
2723
|
}
|
|
2707
2724
|
|
|
2725
|
+
const VERSION$r = "a5dca07e6f41c01f86fa997330d3b1b1";
|
|
2726
|
+
function validate$B(obj, path = 'SemanticModelInfoOutputRepresentation') {
|
|
2727
|
+
const v_error = (() => {
|
|
2728
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2729
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2730
|
+
}
|
|
2731
|
+
const obj_definitionsCount = obj.definitionsCount;
|
|
2732
|
+
const path_definitionsCount = path + '.definitionsCount';
|
|
2733
|
+
if (typeof obj_definitionsCount !== 'number' || (typeof obj_definitionsCount === 'number' && Math.floor(obj_definitionsCount) !== obj_definitionsCount)) {
|
|
2734
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_definitionsCount + '" (at "' + path_definitionsCount + '")');
|
|
2735
|
+
}
|
|
2736
|
+
const obj_maxDefinitionCount = obj.maxDefinitionCount;
|
|
2737
|
+
const path_maxDefinitionCount = path + '.maxDefinitionCount';
|
|
2738
|
+
if (typeof obj_maxDefinitionCount !== 'number' || (typeof obj_maxDefinitionCount === 'number' && Math.floor(obj_maxDefinitionCount) !== obj_maxDefinitionCount)) {
|
|
2739
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_maxDefinitionCount + '" (at "' + path_maxDefinitionCount + '")');
|
|
2740
|
+
}
|
|
2741
|
+
const obj_modelHierarchyDepth = obj.modelHierarchyDepth;
|
|
2742
|
+
const path_modelHierarchyDepth = path + '.modelHierarchyDepth';
|
|
2743
|
+
if (typeof obj_modelHierarchyDepth !== 'number' || (typeof obj_modelHierarchyDepth === 'number' && Math.floor(obj_modelHierarchyDepth) !== obj_modelHierarchyDepth)) {
|
|
2744
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_modelHierarchyDepth + '" (at "' + path_modelHierarchyDepth + '")');
|
|
2745
|
+
}
|
|
2746
|
+
})();
|
|
2747
|
+
return v_error === undefined ? null : v_error;
|
|
2748
|
+
}
|
|
2749
|
+
const select$C = function SemanticModelInfoOutputRepresentationSelect() {
|
|
2750
|
+
return {
|
|
2751
|
+
kind: 'Fragment',
|
|
2752
|
+
version: VERSION$r,
|
|
2753
|
+
private: [],
|
|
2754
|
+
selections: [
|
|
2755
|
+
{
|
|
2756
|
+
name: 'definitionsCount',
|
|
2757
|
+
kind: 'Scalar'
|
|
2758
|
+
},
|
|
2759
|
+
{
|
|
2760
|
+
name: 'maxDefinitionCount',
|
|
2761
|
+
kind: 'Scalar'
|
|
2762
|
+
},
|
|
2763
|
+
{
|
|
2764
|
+
name: 'modelHierarchyDepth',
|
|
2765
|
+
kind: 'Scalar'
|
|
2766
|
+
}
|
|
2767
|
+
]
|
|
2768
|
+
};
|
|
2769
|
+
};
|
|
2770
|
+
function equals$r(existing, incoming) {
|
|
2771
|
+
const existing_definitionsCount = existing.definitionsCount;
|
|
2772
|
+
const incoming_definitionsCount = incoming.definitionsCount;
|
|
2773
|
+
if (!(existing_definitionsCount === incoming_definitionsCount)) {
|
|
2774
|
+
return false;
|
|
2775
|
+
}
|
|
2776
|
+
const existing_maxDefinitionCount = existing.maxDefinitionCount;
|
|
2777
|
+
const incoming_maxDefinitionCount = incoming.maxDefinitionCount;
|
|
2778
|
+
if (!(existing_maxDefinitionCount === incoming_maxDefinitionCount)) {
|
|
2779
|
+
return false;
|
|
2780
|
+
}
|
|
2781
|
+
const existing_modelHierarchyDepth = existing.modelHierarchyDepth;
|
|
2782
|
+
const incoming_modelHierarchyDepth = incoming.modelHierarchyDepth;
|
|
2783
|
+
if (!(existing_modelHierarchyDepth === incoming_modelHierarchyDepth)) {
|
|
2784
|
+
return false;
|
|
2785
|
+
}
|
|
2786
|
+
return true;
|
|
2787
|
+
}
|
|
2788
|
+
|
|
2708
2789
|
const VERSION$q = "9b5a0e85af6a943c95625e2dfe81ab96";
|
|
2709
2790
|
function validate$A(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
2710
2791
|
const v_error = (() => {
|
|
@@ -2735,7 +2816,7 @@ function validate$A(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
|
2735
2816
|
})();
|
|
2736
2817
|
return v_error === undefined ? null : v_error;
|
|
2737
2818
|
}
|
|
2738
|
-
const select$
|
|
2819
|
+
const select$B = function SemanticFilterOutputRepresentationSelect() {
|
|
2739
2820
|
return {
|
|
2740
2821
|
kind: 'Fragment',
|
|
2741
2822
|
version: VERSION$q,
|
|
@@ -2954,20 +3035,20 @@ function validate$z(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
2954
3035
|
return v_error === undefined ? null : v_error;
|
|
2955
3036
|
}
|
|
2956
3037
|
const RepresentationType$f = 'SemanticCalculatedDimensionOutputRepresentation';
|
|
2957
|
-
function keyBuilder$
|
|
3038
|
+
function keyBuilder$r(luvio, config) {
|
|
2958
3039
|
return keyPrefix + '::' + RepresentationType$f + ':' + config.name;
|
|
2959
3040
|
}
|
|
2960
3041
|
function keyBuilderFromType$b(luvio, object) {
|
|
2961
3042
|
const keyParams = {
|
|
2962
3043
|
name: object.id
|
|
2963
3044
|
};
|
|
2964
|
-
return keyBuilder$
|
|
3045
|
+
return keyBuilder$r(luvio, keyParams);
|
|
2965
3046
|
}
|
|
2966
3047
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
2967
3048
|
return input;
|
|
2968
3049
|
}
|
|
2969
|
-
const select$
|
|
2970
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
3050
|
+
const select$A = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
3051
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$B();
|
|
2971
3052
|
return {
|
|
2972
3053
|
kind: 'Fragment',
|
|
2973
3054
|
version: VERSION$p,
|
|
@@ -3526,20 +3607,20 @@ function validate$y(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
3526
3607
|
return v_error === undefined ? null : v_error;
|
|
3527
3608
|
}
|
|
3528
3609
|
const RepresentationType$e = 'SemanticCalculatedMeasurementOutputRepresentation';
|
|
3529
|
-
function keyBuilder$
|
|
3610
|
+
function keyBuilder$q(luvio, config) {
|
|
3530
3611
|
return keyPrefix + '::' + RepresentationType$e + ':' + config.name;
|
|
3531
3612
|
}
|
|
3532
3613
|
function keyBuilderFromType$a(luvio, object) {
|
|
3533
3614
|
const keyParams = {
|
|
3534
3615
|
name: object.id
|
|
3535
3616
|
};
|
|
3536
|
-
return keyBuilder$
|
|
3617
|
+
return keyBuilder$q(luvio, keyParams);
|
|
3537
3618
|
}
|
|
3538
3619
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
3539
3620
|
return input;
|
|
3540
3621
|
}
|
|
3541
|
-
const select$
|
|
3542
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
3622
|
+
const select$z = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
3623
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$B();
|
|
3543
3624
|
return {
|
|
3544
3625
|
kind: 'Fragment',
|
|
3545
3626
|
version: VERSION$o,
|
|
@@ -4501,19 +4582,19 @@ function validate$v(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
4501
4582
|
return v_error === undefined ? null : v_error;
|
|
4502
4583
|
}
|
|
4503
4584
|
const RepresentationType$d = 'SemanticDataObjectOutputRepresentation';
|
|
4504
|
-
function keyBuilder$
|
|
4585
|
+
function keyBuilder$p(luvio, config) {
|
|
4505
4586
|
return keyPrefix + '::' + RepresentationType$d + ':' + config.name;
|
|
4506
4587
|
}
|
|
4507
4588
|
function keyBuilderFromType$9(luvio, object) {
|
|
4508
4589
|
const keyParams = {
|
|
4509
4590
|
name: object.id
|
|
4510
4591
|
};
|
|
4511
|
-
return keyBuilder$
|
|
4592
|
+
return keyBuilder$p(luvio, keyParams);
|
|
4512
4593
|
}
|
|
4513
4594
|
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
4514
4595
|
return input;
|
|
4515
4596
|
}
|
|
4516
|
-
const select$
|
|
4597
|
+
const select$y = function SemanticDataObjectOutputRepresentationSelect() {
|
|
4517
4598
|
return {
|
|
4518
4599
|
kind: 'Fragment',
|
|
4519
4600
|
version: VERSION$n,
|
|
@@ -4559,7 +4640,7 @@ function validate$u(obj, path = 'BinDimensionConfigurationOutputRepresentation')
|
|
|
4559
4640
|
})();
|
|
4560
4641
|
return v_error === undefined ? null : v_error;
|
|
4561
4642
|
}
|
|
4562
|
-
const select$
|
|
4643
|
+
const select$x = function BinDimensionConfigurationOutputRepresentationSelect() {
|
|
4563
4644
|
return {
|
|
4564
4645
|
kind: 'Fragment',
|
|
4565
4646
|
version: VERSION$m,
|
|
@@ -4609,7 +4690,7 @@ function validate$t(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
|
4609
4690
|
})();
|
|
4610
4691
|
return v_error === undefined ? null : v_error;
|
|
4611
4692
|
}
|
|
4612
|
-
const select$
|
|
4693
|
+
const select$w = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
4613
4694
|
return {
|
|
4614
4695
|
kind: 'Fragment',
|
|
4615
4696
|
version: VERSION$l,
|
|
@@ -4688,8 +4769,8 @@ function validate$s(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
4688
4769
|
})();
|
|
4689
4770
|
return v_error === undefined ? null : v_error;
|
|
4690
4771
|
}
|
|
4691
|
-
const select$
|
|
4692
|
-
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$
|
|
4772
|
+
const select$v = function GroupDimensionConfigurationOutputRepresentationSelect() {
|
|
4773
|
+
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$w();
|
|
4693
4774
|
return {
|
|
4694
4775
|
kind: 'Fragment',
|
|
4695
4776
|
version: VERSION$k,
|
|
@@ -4774,9 +4855,9 @@ function validate$r(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
4774
4855
|
})();
|
|
4775
4856
|
return v_error === undefined ? null : v_error;
|
|
4776
4857
|
}
|
|
4777
|
-
const select$
|
|
4778
|
-
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
4779
|
-
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
4858
|
+
const select$u = function SemanticGroupingConfigurationOutputRepresentationSelect() {
|
|
4859
|
+
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$x();
|
|
4860
|
+
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$v();
|
|
4780
4861
|
return {
|
|
4781
4862
|
kind: 'Fragment',
|
|
4782
4863
|
version: VERSION$j,
|
|
@@ -4850,7 +4931,7 @@ function validate$q(obj, path = 'SemanticTableFieldReferenceOutputRepresentation
|
|
|
4850
4931
|
})();
|
|
4851
4932
|
return v_error === undefined ? null : v_error;
|
|
4852
4933
|
}
|
|
4853
|
-
const select$
|
|
4934
|
+
const select$t = function SemanticTableFieldReferenceOutputRepresentationSelect() {
|
|
4854
4935
|
return {
|
|
4855
4936
|
kind: 'Fragment',
|
|
4856
4937
|
version: VERSION$i,
|
|
@@ -4925,8 +5006,8 @@ function validate$p(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
|
4925
5006
|
})();
|
|
4926
5007
|
return v_error === undefined ? null : v_error;
|
|
4927
5008
|
}
|
|
4928
|
-
const select$
|
|
4929
|
-
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$
|
|
5009
|
+
const select$s = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
5010
|
+
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$t();
|
|
4930
5011
|
return {
|
|
4931
5012
|
kind: 'Fragment',
|
|
4932
5013
|
version: VERSION$h,
|
|
@@ -5069,21 +5150,21 @@ function validate$o(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
5069
5150
|
return v_error === undefined ? null : v_error;
|
|
5070
5151
|
}
|
|
5071
5152
|
const RepresentationType$c = 'SemanticGroupingOutputRepresentation';
|
|
5072
|
-
function keyBuilder$
|
|
5153
|
+
function keyBuilder$o(luvio, config) {
|
|
5073
5154
|
return keyPrefix + '::' + RepresentationType$c + ':' + config.name;
|
|
5074
5155
|
}
|
|
5075
5156
|
function keyBuilderFromType$8(luvio, object) {
|
|
5076
5157
|
const keyParams = {
|
|
5077
5158
|
name: object.id
|
|
5078
5159
|
};
|
|
5079
|
-
return keyBuilder$
|
|
5160
|
+
return keyBuilder$o(luvio, keyParams);
|
|
5080
5161
|
}
|
|
5081
5162
|
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
5082
5163
|
return input;
|
|
5083
5164
|
}
|
|
5084
|
-
const select$
|
|
5085
|
-
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$
|
|
5086
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
5165
|
+
const select$r = function SemanticGroupingOutputRepresentationSelect() {
|
|
5166
|
+
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$u();
|
|
5167
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$s();
|
|
5087
5168
|
return {
|
|
5088
5169
|
kind: 'Fragment',
|
|
5089
5170
|
version: VERSION$g,
|
|
@@ -5334,7 +5415,7 @@ function validate$n(obj, path = 'SemanticRelationshipCriteriaOutputRepresentatio
|
|
|
5334
5415
|
})();
|
|
5335
5416
|
return v_error === undefined ? null : v_error;
|
|
5336
5417
|
}
|
|
5337
|
-
const select$
|
|
5418
|
+
const select$q = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
5338
5419
|
return {
|
|
5339
5420
|
kind: 'Fragment',
|
|
5340
5421
|
version: VERSION$f,
|
|
@@ -5568,20 +5649,20 @@ function validate$m(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
5568
5649
|
return v_error === undefined ? null : v_error;
|
|
5569
5650
|
}
|
|
5570
5651
|
const RepresentationType$b = 'SemanticRelationshipOutputRepresentation';
|
|
5571
|
-
function keyBuilder$
|
|
5652
|
+
function keyBuilder$n(luvio, config) {
|
|
5572
5653
|
return keyPrefix + '::' + RepresentationType$b + ':' + config.name;
|
|
5573
5654
|
}
|
|
5574
5655
|
function keyBuilderFromType$7(luvio, object) {
|
|
5575
5656
|
const keyParams = {
|
|
5576
5657
|
name: object.id
|
|
5577
5658
|
};
|
|
5578
|
-
return keyBuilder$
|
|
5659
|
+
return keyBuilder$n(luvio, keyParams);
|
|
5579
5660
|
}
|
|
5580
5661
|
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
5581
5662
|
return input;
|
|
5582
5663
|
}
|
|
5583
|
-
const select$
|
|
5584
|
-
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$
|
|
5664
|
+
const select$p = function SemanticRelationshipOutputRepresentationSelect() {
|
|
5665
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$q();
|
|
5585
5666
|
return {
|
|
5586
5667
|
kind: 'Fragment',
|
|
5587
5668
|
version: VERSION$e,
|
|
@@ -6008,19 +6089,19 @@ function validate$l(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
6008
6089
|
return v_error === undefined ? null : v_error;
|
|
6009
6090
|
}
|
|
6010
6091
|
const RepresentationType$a = 'SemanticMappedFieldOutputRepresentation';
|
|
6011
|
-
function keyBuilder$
|
|
6092
|
+
function keyBuilder$m(luvio, config) {
|
|
6012
6093
|
return keyPrefix + '::' + RepresentationType$a + ':' + config.name;
|
|
6013
6094
|
}
|
|
6014
6095
|
function keyBuilderFromType$6(luvio, object) {
|
|
6015
6096
|
const keyParams = {
|
|
6016
6097
|
name: object.id
|
|
6017
6098
|
};
|
|
6018
|
-
return keyBuilder$
|
|
6099
|
+
return keyBuilder$m(luvio, keyParams);
|
|
6019
6100
|
}
|
|
6020
6101
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
6021
6102
|
return input;
|
|
6022
6103
|
}
|
|
6023
|
-
const select$
|
|
6104
|
+
const select$o = function SemanticMappedFieldOutputRepresentationSelect() {
|
|
6024
6105
|
return {
|
|
6025
6106
|
kind: 'Fragment',
|
|
6026
6107
|
version: VERSION$d,
|
|
@@ -6184,14 +6265,14 @@ function validate$k(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
6184
6265
|
return v_error === undefined ? null : v_error;
|
|
6185
6266
|
}
|
|
6186
6267
|
const RepresentationType$9 = 'SemanticUnionOutputRepresentation';
|
|
6187
|
-
function keyBuilder$
|
|
6268
|
+
function keyBuilder$l(luvio, config) {
|
|
6188
6269
|
return keyPrefix + '::' + RepresentationType$9 + ':' + config.name;
|
|
6189
6270
|
}
|
|
6190
6271
|
function keyBuilderFromType$5(luvio, object) {
|
|
6191
6272
|
const keyParams = {
|
|
6192
6273
|
name: object.id
|
|
6193
6274
|
};
|
|
6194
|
-
return keyBuilder$
|
|
6275
|
+
return keyBuilder$l(luvio, keyParams);
|
|
6195
6276
|
}
|
|
6196
6277
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
6197
6278
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
@@ -6232,7 +6313,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
6232
6313
|
}
|
|
6233
6314
|
return input;
|
|
6234
6315
|
}
|
|
6235
|
-
const select$
|
|
6316
|
+
const select$n = function SemanticUnionOutputRepresentationSelect() {
|
|
6236
6317
|
return {
|
|
6237
6318
|
kind: 'Fragment',
|
|
6238
6319
|
version: VERSION$c,
|
|
@@ -6294,14 +6375,14 @@ const select$m = function SemanticUnionOutputRepresentationSelect() {
|
|
|
6294
6375
|
kind: 'Link',
|
|
6295
6376
|
plural: true,
|
|
6296
6377
|
required: false,
|
|
6297
|
-
fragment: select$
|
|
6378
|
+
fragment: select$y()
|
|
6298
6379
|
},
|
|
6299
6380
|
{
|
|
6300
6381
|
name: 'semanticMappedFields',
|
|
6301
6382
|
kind: 'Link',
|
|
6302
6383
|
plural: true,
|
|
6303
6384
|
required: false,
|
|
6304
|
-
fragment: select$
|
|
6385
|
+
fragment: select$o()
|
|
6305
6386
|
}
|
|
6306
6387
|
]
|
|
6307
6388
|
};
|
|
@@ -6490,12 +6571,19 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6490
6571
|
}
|
|
6491
6572
|
}
|
|
6492
6573
|
|
|
6493
|
-
const VERSION$b = "
|
|
6574
|
+
const VERSION$b = "9632101159ed742cb74ca0427f6c9da2";
|
|
6494
6575
|
function validate$j(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
6495
6576
|
const v_error = (() => {
|
|
6496
6577
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6497
6578
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6498
6579
|
}
|
|
6580
|
+
if (obj.CustomSql !== undefined) {
|
|
6581
|
+
const obj_CustomSql = obj.CustomSql;
|
|
6582
|
+
const path_CustomSql = path + '.CustomSql';
|
|
6583
|
+
if (typeof obj_CustomSql !== 'string') {
|
|
6584
|
+
return new TypeError('Expected "string" but received "' + typeof obj_CustomSql + '" (at "' + path_CustomSql + '")');
|
|
6585
|
+
}
|
|
6586
|
+
}
|
|
6499
6587
|
const obj_apiName = obj.apiName;
|
|
6500
6588
|
const path_apiName = path + '.apiName';
|
|
6501
6589
|
if (typeof obj_apiName !== 'string') {
|
|
@@ -6525,13 +6613,6 @@ function validate$j(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
6525
6613
|
if (typeof obj_createdDate !== 'string') {
|
|
6526
6614
|
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
6527
6615
|
}
|
|
6528
|
-
if (obj.customSql !== undefined) {
|
|
6529
|
-
const obj_customSql = obj.customSql;
|
|
6530
|
-
const path_customSql = path + '.customSql';
|
|
6531
|
-
if (typeof obj_customSql !== 'string') {
|
|
6532
|
-
return new TypeError('Expected "string" but received "' + typeof obj_customSql + '" (at "' + path_customSql + '")');
|
|
6533
|
-
}
|
|
6534
|
-
}
|
|
6535
6616
|
if (obj.description !== undefined) {
|
|
6536
6617
|
const obj_description = obj.description;
|
|
6537
6618
|
const path_description = path + '.description';
|
|
@@ -6589,6 +6670,20 @@ function validate$j(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
6589
6670
|
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
6590
6671
|
}
|
|
6591
6672
|
}
|
|
6673
|
+
if (obj.referenceIntegritySemanticDataObjects !== undefined) {
|
|
6674
|
+
const obj_referenceIntegritySemanticDataObjects = obj.referenceIntegritySemanticDataObjects;
|
|
6675
|
+
const path_referenceIntegritySemanticDataObjects = path + '.referenceIntegritySemanticDataObjects';
|
|
6676
|
+
if (!ArrayIsArray(obj_referenceIntegritySemanticDataObjects)) {
|
|
6677
|
+
return new TypeError('Expected "array" but received "' + typeof obj_referenceIntegritySemanticDataObjects + '" (at "' + path_referenceIntegritySemanticDataObjects + '")');
|
|
6678
|
+
}
|
|
6679
|
+
for (let i = 0; i < obj_referenceIntegritySemanticDataObjects.length; i++) {
|
|
6680
|
+
const obj_referenceIntegritySemanticDataObjects_item = obj_referenceIntegritySemanticDataObjects[i];
|
|
6681
|
+
const path_referenceIntegritySemanticDataObjects_item = path_referenceIntegritySemanticDataObjects + '[' + i + ']';
|
|
6682
|
+
if (typeof obj_referenceIntegritySemanticDataObjects_item !== 'object') {
|
|
6683
|
+
return new TypeError('Expected "object" but received "' + typeof obj_referenceIntegritySemanticDataObjects_item + '" (at "' + path_referenceIntegritySemanticDataObjects_item + '")');
|
|
6684
|
+
}
|
|
6685
|
+
}
|
|
6686
|
+
}
|
|
6592
6687
|
if (obj.semanticDataObjects !== undefined) {
|
|
6593
6688
|
const obj_semanticDataObjects = obj.semanticDataObjects;
|
|
6594
6689
|
const path_semanticDataObjects = path + '.semanticDataObjects';
|
|
@@ -6642,16 +6737,34 @@ function validate$j(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
6642
6737
|
return v_error === undefined ? null : v_error;
|
|
6643
6738
|
}
|
|
6644
6739
|
const RepresentationType$8 = 'SemanticLogicalViewOutputRepresentation';
|
|
6645
|
-
function keyBuilder$
|
|
6740
|
+
function keyBuilder$k(luvio, config) {
|
|
6646
6741
|
return keyPrefix + '::' + RepresentationType$8 + ':' + config.name;
|
|
6647
6742
|
}
|
|
6648
6743
|
function keyBuilderFromType$4(luvio, object) {
|
|
6649
6744
|
const keyParams = {
|
|
6650
6745
|
name: object.id
|
|
6651
6746
|
};
|
|
6652
|
-
return keyBuilder$
|
|
6747
|
+
return keyBuilder$k(luvio, keyParams);
|
|
6653
6748
|
}
|
|
6654
6749
|
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
6750
|
+
const input_referenceIntegritySemanticDataObjects = input.referenceIntegritySemanticDataObjects;
|
|
6751
|
+
const input_referenceIntegritySemanticDataObjects_id = path.fullPath + '__referenceIntegritySemanticDataObjects';
|
|
6752
|
+
if (input_referenceIntegritySemanticDataObjects !== undefined) {
|
|
6753
|
+
for (let i = 0; i < input_referenceIntegritySemanticDataObjects.length; i++) {
|
|
6754
|
+
const input_referenceIntegritySemanticDataObjects_item = input_referenceIntegritySemanticDataObjects[i];
|
|
6755
|
+
let input_referenceIntegritySemanticDataObjects_item_id = input_referenceIntegritySemanticDataObjects_id + '__' + i;
|
|
6756
|
+
input_referenceIntegritySemanticDataObjects[i] = ingest$d(input_referenceIntegritySemanticDataObjects_item, {
|
|
6757
|
+
fullPath: input_referenceIntegritySemanticDataObjects_item_id,
|
|
6758
|
+
propertyName: i,
|
|
6759
|
+
parent: {
|
|
6760
|
+
data: input,
|
|
6761
|
+
key: path.fullPath,
|
|
6762
|
+
existing: existing,
|
|
6763
|
+
},
|
|
6764
|
+
ttl: path.ttl
|
|
6765
|
+
}, luvio, store, timestamp);
|
|
6766
|
+
}
|
|
6767
|
+
}
|
|
6655
6768
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
6656
6769
|
const input_semanticDataObjects_id = path.fullPath + '__semanticDataObjects';
|
|
6657
6770
|
if (input_semanticDataObjects !== undefined) {
|
|
@@ -6708,13 +6821,18 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
6708
6821
|
}
|
|
6709
6822
|
return input;
|
|
6710
6823
|
}
|
|
6711
|
-
const select$
|
|
6712
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
6824
|
+
const select$m = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
6825
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$B();
|
|
6713
6826
|
return {
|
|
6714
6827
|
kind: 'Fragment',
|
|
6715
6828
|
version: VERSION$b,
|
|
6716
6829
|
private: [],
|
|
6717
6830
|
selections: [
|
|
6831
|
+
{
|
|
6832
|
+
name: 'CustomSql',
|
|
6833
|
+
kind: 'Scalar',
|
|
6834
|
+
required: false
|
|
6835
|
+
},
|
|
6718
6836
|
{
|
|
6719
6837
|
name: 'apiName',
|
|
6720
6838
|
kind: 'Scalar'
|
|
@@ -6737,11 +6855,6 @@ const select$l = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
6737
6855
|
name: 'createdDate',
|
|
6738
6856
|
kind: 'Scalar'
|
|
6739
6857
|
},
|
|
6740
|
-
{
|
|
6741
|
-
name: 'customSql',
|
|
6742
|
-
kind: 'Scalar',
|
|
6743
|
-
required: false
|
|
6744
|
-
},
|
|
6745
6858
|
{
|
|
6746
6859
|
name: 'description',
|
|
6747
6860
|
kind: 'Scalar',
|
|
@@ -6778,26 +6891,33 @@ const select$l = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
6778
6891
|
kind: 'Scalar',
|
|
6779
6892
|
required: false
|
|
6780
6893
|
},
|
|
6894
|
+
{
|
|
6895
|
+
name: 'referenceIntegritySemanticDataObjects',
|
|
6896
|
+
kind: 'Link',
|
|
6897
|
+
plural: true,
|
|
6898
|
+
required: false,
|
|
6899
|
+
fragment: select$y()
|
|
6900
|
+
},
|
|
6781
6901
|
{
|
|
6782
6902
|
name: 'semanticDataObjects',
|
|
6783
6903
|
kind: 'Link',
|
|
6784
6904
|
plural: true,
|
|
6785
6905
|
required: false,
|
|
6786
|
-
fragment: select$
|
|
6906
|
+
fragment: select$y()
|
|
6787
6907
|
},
|
|
6788
6908
|
{
|
|
6789
6909
|
name: 'semanticRelationships',
|
|
6790
6910
|
kind: 'Link',
|
|
6791
6911
|
plural: true,
|
|
6792
6912
|
required: false,
|
|
6793
|
-
fragment: select$
|
|
6913
|
+
fragment: select$p()
|
|
6794
6914
|
},
|
|
6795
6915
|
{
|
|
6796
6916
|
name: 'semanticUnions',
|
|
6797
6917
|
kind: 'Link',
|
|
6798
6918
|
plural: true,
|
|
6799
6919
|
required: false,
|
|
6800
|
-
fragment: select$
|
|
6920
|
+
fragment: select$n()
|
|
6801
6921
|
},
|
|
6802
6922
|
{
|
|
6803
6923
|
name: 'semanticViewTypeEnum',
|
|
@@ -6808,6 +6928,19 @@ const select$l = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
6808
6928
|
};
|
|
6809
6929
|
};
|
|
6810
6930
|
function equals$b(existing, incoming) {
|
|
6931
|
+
const existing_CustomSql = existing.CustomSql;
|
|
6932
|
+
const incoming_CustomSql = incoming.CustomSql;
|
|
6933
|
+
// if at least one of these optionals is defined
|
|
6934
|
+
if (existing_CustomSql !== undefined || incoming_CustomSql !== undefined) {
|
|
6935
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
6936
|
+
// not equal
|
|
6937
|
+
if (existing_CustomSql === undefined || incoming_CustomSql === undefined) {
|
|
6938
|
+
return false;
|
|
6939
|
+
}
|
|
6940
|
+
if (!(existing_CustomSql === incoming_CustomSql)) {
|
|
6941
|
+
return false;
|
|
6942
|
+
}
|
|
6943
|
+
}
|
|
6811
6944
|
const existing_apiName = existing.apiName;
|
|
6812
6945
|
const incoming_apiName = incoming.apiName;
|
|
6813
6946
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -6849,19 +6982,6 @@ function equals$b(existing, incoming) {
|
|
|
6849
6982
|
if (!(existing_createdDate === incoming_createdDate)) {
|
|
6850
6983
|
return false;
|
|
6851
6984
|
}
|
|
6852
|
-
const existing_customSql = existing.customSql;
|
|
6853
|
-
const incoming_customSql = incoming.customSql;
|
|
6854
|
-
// if at least one of these optionals is defined
|
|
6855
|
-
if (existing_customSql !== undefined || incoming_customSql !== undefined) {
|
|
6856
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
6857
|
-
// not equal
|
|
6858
|
-
if (existing_customSql === undefined || incoming_customSql === undefined) {
|
|
6859
|
-
return false;
|
|
6860
|
-
}
|
|
6861
|
-
if (!(existing_customSql === incoming_customSql)) {
|
|
6862
|
-
return false;
|
|
6863
|
-
}
|
|
6864
|
-
}
|
|
6865
6985
|
const existing_description = existing.description;
|
|
6866
6986
|
const incoming_description = incoming.description;
|
|
6867
6987
|
// if at least one of these optionals is defined
|
|
@@ -6963,6 +7083,24 @@ function equals$b(existing, incoming) {
|
|
|
6963
7083
|
return false;
|
|
6964
7084
|
}
|
|
6965
7085
|
}
|
|
7086
|
+
const existing_referenceIntegritySemanticDataObjects = existing.referenceIntegritySemanticDataObjects;
|
|
7087
|
+
const incoming_referenceIntegritySemanticDataObjects = incoming.referenceIntegritySemanticDataObjects;
|
|
7088
|
+
// if at least one of these optionals is defined
|
|
7089
|
+
if (existing_referenceIntegritySemanticDataObjects !== undefined || incoming_referenceIntegritySemanticDataObjects !== undefined) {
|
|
7090
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7091
|
+
// not equal
|
|
7092
|
+
if (existing_referenceIntegritySemanticDataObjects === undefined || incoming_referenceIntegritySemanticDataObjects === undefined) {
|
|
7093
|
+
return false;
|
|
7094
|
+
}
|
|
7095
|
+
const equals_referenceIntegritySemanticDataObjects_items = equalsArray(existing_referenceIntegritySemanticDataObjects, incoming_referenceIntegritySemanticDataObjects, (existing_referenceIntegritySemanticDataObjects_item, incoming_referenceIntegritySemanticDataObjects_item) => {
|
|
7096
|
+
if (!(existing_referenceIntegritySemanticDataObjects_item.__ref === incoming_referenceIntegritySemanticDataObjects_item.__ref)) {
|
|
7097
|
+
return false;
|
|
7098
|
+
}
|
|
7099
|
+
});
|
|
7100
|
+
if (equals_referenceIntegritySemanticDataObjects_items === false) {
|
|
7101
|
+
return false;
|
|
7102
|
+
}
|
|
7103
|
+
}
|
|
6966
7104
|
const existing_semanticDataObjects = existing.semanticDataObjects;
|
|
6967
7105
|
const incoming_semanticDataObjects = incoming.semanticDataObjects;
|
|
6968
7106
|
// if at least one of these optionals is defined
|
|
@@ -7039,6 +7177,12 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7039
7177
|
representationName: RepresentationType$8,
|
|
7040
7178
|
mergeable: false
|
|
7041
7179
|
});
|
|
7180
|
+
if (input.referenceIntegritySemanticDataObjects !== undefined) {
|
|
7181
|
+
const input_referenceIntegritySemanticDataObjects_length = input.referenceIntegritySemanticDataObjects.length;
|
|
7182
|
+
for (let i = 0; i < input_referenceIntegritySemanticDataObjects_length; i++) {
|
|
7183
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.referenceIntegritySemanticDataObjects[i]);
|
|
7184
|
+
}
|
|
7185
|
+
}
|
|
7042
7186
|
if (input.semanticDataObjects !== undefined) {
|
|
7043
7187
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
7044
7188
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
@@ -7088,8 +7232,8 @@ function validate$i(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
7088
7232
|
})();
|
|
7089
7233
|
return v_error === undefined ? null : v_error;
|
|
7090
7234
|
}
|
|
7091
|
-
const select$
|
|
7092
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
7235
|
+
const select$l = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
7236
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$s();
|
|
7093
7237
|
return {
|
|
7094
7238
|
kind: 'Fragment',
|
|
7095
7239
|
version: VERSION$a,
|
|
@@ -7163,7 +7307,7 @@ function validate$h(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
|
7163
7307
|
})();
|
|
7164
7308
|
return v_error === undefined ? null : v_error;
|
|
7165
7309
|
}
|
|
7166
|
-
const select$
|
|
7310
|
+
const select$k = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
7167
7311
|
return {
|
|
7168
7312
|
kind: 'Fragment',
|
|
7169
7313
|
version: VERSION$9,
|
|
@@ -7286,10 +7430,10 @@ function validate$g(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
7286
7430
|
})();
|
|
7287
7431
|
return v_error === undefined ? null : v_error;
|
|
7288
7432
|
}
|
|
7289
|
-
const select$
|
|
7290
|
-
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$
|
|
7291
|
-
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$
|
|
7292
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
7433
|
+
const select$j = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
7434
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$l();
|
|
7435
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$k();
|
|
7436
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$s();
|
|
7293
7437
|
return {
|
|
7294
7438
|
kind: 'Fragment',
|
|
7295
7439
|
version: VERSION$8,
|
|
@@ -7596,22 +7740,22 @@ function validate$f(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
7596
7740
|
return v_error === undefined ? null : v_error;
|
|
7597
7741
|
}
|
|
7598
7742
|
const RepresentationType$7 = 'SemanticMetricOutputRepresentation';
|
|
7599
|
-
function keyBuilder$
|
|
7743
|
+
function keyBuilder$j(luvio, config) {
|
|
7600
7744
|
return keyPrefix + '::' + RepresentationType$7 + ':' + config.name;
|
|
7601
7745
|
}
|
|
7602
7746
|
function keyBuilderFromType$3(luvio, object) {
|
|
7603
7747
|
const keyParams = {
|
|
7604
7748
|
name: object.id
|
|
7605
7749
|
};
|
|
7606
|
-
return keyBuilder$
|
|
7750
|
+
return keyBuilder$j(luvio, keyParams);
|
|
7607
7751
|
}
|
|
7608
7752
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
7609
7753
|
return input;
|
|
7610
7754
|
}
|
|
7611
|
-
const select$
|
|
7612
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
7613
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
7614
|
-
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$
|
|
7755
|
+
const select$i = function SemanticMetricOutputRepresentationSelect() {
|
|
7756
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$s();
|
|
7757
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$B();
|
|
7758
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$j();
|
|
7615
7759
|
return {
|
|
7616
7760
|
kind: 'Fragment',
|
|
7617
7761
|
version: VERSION$7,
|
|
@@ -8102,19 +8246,19 @@ function validate$e(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
8102
8246
|
return v_error === undefined ? null : v_error;
|
|
8103
8247
|
}
|
|
8104
8248
|
const RepresentationType$6 = 'SemanticParameterOutputRepresentation';
|
|
8105
|
-
function keyBuilder$
|
|
8249
|
+
function keyBuilder$i(luvio, config) {
|
|
8106
8250
|
return keyPrefix + '::' + RepresentationType$6 + ':' + config.name;
|
|
8107
8251
|
}
|
|
8108
8252
|
function keyBuilderFromType$2(luvio, object) {
|
|
8109
8253
|
const keyParams = {
|
|
8110
8254
|
name: object.id
|
|
8111
8255
|
};
|
|
8112
|
-
return keyBuilder$
|
|
8256
|
+
return keyBuilder$i(luvio, keyParams);
|
|
8113
8257
|
}
|
|
8114
8258
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
8115
8259
|
return input;
|
|
8116
8260
|
}
|
|
8117
|
-
const select$
|
|
8261
|
+
const select$h = function SemanticParameterOutputRepresentationSelect() {
|
|
8118
8262
|
return {
|
|
8119
8263
|
kind: 'Fragment',
|
|
8120
8264
|
version: VERSION$6,
|
|
@@ -8424,7 +8568,7 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
8424
8568
|
});
|
|
8425
8569
|
}
|
|
8426
8570
|
|
|
8427
|
-
const VERSION$5 = "
|
|
8571
|
+
const VERSION$5 = "f98076dda77572e1909b66b7e6172c95";
|
|
8428
8572
|
function validate$d(obj, path = 'SemanticModelOutputRepresentation') {
|
|
8429
8573
|
const v_error = (() => {
|
|
8430
8574
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -8458,7 +8602,7 @@ function validate$d(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
8458
8602
|
for (let i = 0; i < obj_baseModels.length; i++) {
|
|
8459
8603
|
const obj_baseModels_item = obj_baseModels[i];
|
|
8460
8604
|
const path_baseModels_item = path_baseModels + '[' + i + ']';
|
|
8461
|
-
const referencepath_baseModels_itemValidationError = validate
|
|
8605
|
+
const referencepath_baseModels_itemValidationError = validate$10(obj_baseModels_item, path_baseModels_item);
|
|
8462
8606
|
if (referencepath_baseModels_itemValidationError !== null) {
|
|
8463
8607
|
let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
|
|
8464
8608
|
message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8682,6 +8826,16 @@ function validate$d(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
8682
8826
|
}
|
|
8683
8827
|
}
|
|
8684
8828
|
}
|
|
8829
|
+
if (obj.semanticModelInfo !== undefined) {
|
|
8830
|
+
const obj_semanticModelInfo = obj.semanticModelInfo;
|
|
8831
|
+
const path_semanticModelInfo = path + '.semanticModelInfo';
|
|
8832
|
+
const referencepath_semanticModelInfoValidationError = validate$B(obj_semanticModelInfo, path_semanticModelInfo);
|
|
8833
|
+
if (referencepath_semanticModelInfoValidationError !== null) {
|
|
8834
|
+
let message = 'Object doesn\'t match SemanticModelInfoOutputRepresentation (at "' + path_semanticModelInfo + '")\n';
|
|
8835
|
+
message += referencepath_semanticModelInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
8836
|
+
return new TypeError(message);
|
|
8837
|
+
}
|
|
8838
|
+
}
|
|
8685
8839
|
if (obj.semanticParameters !== undefined) {
|
|
8686
8840
|
const obj_semanticParameters = obj.semanticParameters;
|
|
8687
8841
|
const path_semanticParameters = path + '.semanticParameters';
|
|
@@ -8742,14 +8896,14 @@ function validate$d(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
8742
8896
|
return v_error === undefined ? null : v_error;
|
|
8743
8897
|
}
|
|
8744
8898
|
const RepresentationType$5 = 'SemanticModelOutputRepresentation';
|
|
8745
|
-
function keyBuilder$
|
|
8899
|
+
function keyBuilder$h(luvio, config) {
|
|
8746
8900
|
return keyPrefix + '::' + RepresentationType$5 + ':' + config.name;
|
|
8747
8901
|
}
|
|
8748
8902
|
function keyBuilderFromType$1(luvio, object) {
|
|
8749
8903
|
const keyParams = {
|
|
8750
8904
|
name: object.id
|
|
8751
8905
|
};
|
|
8752
|
-
return keyBuilder$
|
|
8906
|
+
return keyBuilder$h(luvio, keyParams);
|
|
8753
8907
|
}
|
|
8754
8908
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
8755
8909
|
const input_semanticCalculatedDimensions = input.semanticCalculatedDimensions;
|
|
@@ -8898,8 +9052,9 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
|
8898
9052
|
}
|
|
8899
9053
|
return input;
|
|
8900
9054
|
}
|
|
8901
|
-
const select$
|
|
8902
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
9055
|
+
const select$g = function SemanticModelOutputRepresentationSelect() {
|
|
9056
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$G();
|
|
9057
|
+
const { selections: SemanticModelInfoOutputRepresentation__selections, opaque: SemanticModelInfoOutputRepresentation__opaque, } = select$C();
|
|
8903
9058
|
return {
|
|
8904
9059
|
kind: 'Fragment',
|
|
8905
9060
|
version: VERSION$5,
|
|
@@ -8988,7 +9143,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
8988
9143
|
kind: 'Link',
|
|
8989
9144
|
plural: true,
|
|
8990
9145
|
required: false,
|
|
8991
|
-
fragment: select$
|
|
9146
|
+
fragment: select$A()
|
|
8992
9147
|
},
|
|
8993
9148
|
{
|
|
8994
9149
|
name: 'semanticCalculatedDimensionsUrl',
|
|
@@ -9000,7 +9155,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9000
9155
|
kind: 'Link',
|
|
9001
9156
|
plural: true,
|
|
9002
9157
|
required: false,
|
|
9003
|
-
fragment: select$
|
|
9158
|
+
fragment: select$z()
|
|
9004
9159
|
},
|
|
9005
9160
|
{
|
|
9006
9161
|
name: 'semanticCalculatedMeasurementsUrl',
|
|
@@ -9012,7 +9167,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9012
9167
|
kind: 'Link',
|
|
9013
9168
|
plural: true,
|
|
9014
9169
|
required: false,
|
|
9015
|
-
fragment: select$
|
|
9170
|
+
fragment: select$y()
|
|
9016
9171
|
},
|
|
9017
9172
|
{
|
|
9018
9173
|
name: 'semanticDataObjectsUrl',
|
|
@@ -9024,7 +9179,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9024
9179
|
kind: 'Link',
|
|
9025
9180
|
plural: true,
|
|
9026
9181
|
required: false,
|
|
9027
|
-
fragment: select$
|
|
9182
|
+
fragment: select$r()
|
|
9028
9183
|
},
|
|
9029
9184
|
{
|
|
9030
9185
|
name: 'semanticGroupingsUrl',
|
|
@@ -9036,21 +9191,27 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9036
9191
|
kind: 'Link',
|
|
9037
9192
|
plural: true,
|
|
9038
9193
|
required: false,
|
|
9039
|
-
fragment: select$
|
|
9194
|
+
fragment: select$m()
|
|
9040
9195
|
},
|
|
9041
9196
|
{
|
|
9042
9197
|
name: 'semanticMetrics',
|
|
9043
9198
|
kind: 'Link',
|
|
9044
9199
|
plural: true,
|
|
9045
9200
|
required: false,
|
|
9046
|
-
fragment: select$
|
|
9201
|
+
fragment: select$i()
|
|
9202
|
+
},
|
|
9203
|
+
{
|
|
9204
|
+
name: 'semanticModelInfo',
|
|
9205
|
+
kind: 'Object',
|
|
9206
|
+
selections: SemanticModelInfoOutputRepresentation__selections,
|
|
9207
|
+
required: false
|
|
9047
9208
|
},
|
|
9048
9209
|
{
|
|
9049
9210
|
name: 'semanticParameters',
|
|
9050
9211
|
kind: 'Link',
|
|
9051
9212
|
plural: true,
|
|
9052
9213
|
required: false,
|
|
9053
|
-
fragment: select$
|
|
9214
|
+
fragment: select$h()
|
|
9054
9215
|
},
|
|
9055
9216
|
{
|
|
9056
9217
|
name: 'semanticParametersUrl',
|
|
@@ -9062,7 +9223,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9062
9223
|
kind: 'Link',
|
|
9063
9224
|
plural: true,
|
|
9064
9225
|
required: false,
|
|
9065
|
-
fragment: select$
|
|
9226
|
+
fragment: select$p()
|
|
9066
9227
|
},
|
|
9067
9228
|
{
|
|
9068
9229
|
name: 'semanticRelationshipsUrl',
|
|
@@ -9326,7 +9487,7 @@ function equals$5(existing, incoming) {
|
|
|
9326
9487
|
return false;
|
|
9327
9488
|
}
|
|
9328
9489
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
9329
|
-
if (!(equals$
|
|
9490
|
+
if (!(equals$u(existing_baseModels_item, incoming_baseModels_item))) {
|
|
9330
9491
|
return false;
|
|
9331
9492
|
}
|
|
9332
9493
|
});
|
|
@@ -9473,6 +9634,19 @@ function equals$5(existing, incoming) {
|
|
|
9473
9634
|
return false;
|
|
9474
9635
|
}
|
|
9475
9636
|
}
|
|
9637
|
+
const existing_semanticModelInfo = existing.semanticModelInfo;
|
|
9638
|
+
const incoming_semanticModelInfo = incoming.semanticModelInfo;
|
|
9639
|
+
// if at least one of these optionals is defined
|
|
9640
|
+
if (existing_semanticModelInfo !== undefined || incoming_semanticModelInfo !== undefined) {
|
|
9641
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9642
|
+
// not equal
|
|
9643
|
+
if (existing_semanticModelInfo === undefined || incoming_semanticModelInfo === undefined) {
|
|
9644
|
+
return false;
|
|
9645
|
+
}
|
|
9646
|
+
if (!(equals$r(existing_semanticModelInfo, incoming_semanticModelInfo))) {
|
|
9647
|
+
return false;
|
|
9648
|
+
}
|
|
9649
|
+
}
|
|
9476
9650
|
const existing_semanticParameters = existing.semanticParameters;
|
|
9477
9651
|
const incoming_semanticParameters = incoming.semanticParameters;
|
|
9478
9652
|
// if at least one of these optionals is defined
|
|
@@ -9581,19 +9755,19 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9581
9755
|
}
|
|
9582
9756
|
}
|
|
9583
9757
|
|
|
9584
|
-
function select$
|
|
9585
|
-
return select$
|
|
9758
|
+
function select$f(luvio, params) {
|
|
9759
|
+
return select$g();
|
|
9586
9760
|
}
|
|
9587
|
-
function getResponseCacheKeys$
|
|
9761
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
9588
9762
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
9589
9763
|
}
|
|
9590
|
-
function ingestSuccess$
|
|
9764
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
9591
9765
|
const { body } = response;
|
|
9592
9766
|
const key = keyBuilderFromType$1(luvio, body);
|
|
9593
9767
|
luvio.storeIngest(key, ingest$5, body);
|
|
9594
9768
|
const snapshot = luvio.storeLookup({
|
|
9595
9769
|
recordId: key,
|
|
9596
|
-
node: select$
|
|
9770
|
+
node: select$f(),
|
|
9597
9771
|
variables: {},
|
|
9598
9772
|
});
|
|
9599
9773
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9604,7 +9778,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
9604
9778
|
deepFreeze(snapshot.data);
|
|
9605
9779
|
return snapshot;
|
|
9606
9780
|
}
|
|
9607
|
-
function createResourceRequest$
|
|
9781
|
+
function createResourceRequest$c(config) {
|
|
9608
9782
|
const headers = {};
|
|
9609
9783
|
return {
|
|
9610
9784
|
baseUri: '/services/data/v62.0',
|
|
@@ -9618,7 +9792,7 @@ function createResourceRequest$a(config) {
|
|
|
9618
9792
|
};
|
|
9619
9793
|
}
|
|
9620
9794
|
|
|
9621
|
-
const adapterName$
|
|
9795
|
+
const adapterName$c = 'createSemanticModel';
|
|
9622
9796
|
const createSemanticModel_ConfigPropertyMetadata = [
|
|
9623
9797
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
9624
9798
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -9639,17 +9813,17 @@ const createSemanticModel_ConfigPropertyMetadata = [
|
|
|
9639
9813
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9640
9814
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9641
9815
|
];
|
|
9642
|
-
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9643
|
-
const createResourceParams$
|
|
9644
|
-
function typeCheckConfig$
|
|
9816
|
+
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createSemanticModel_ConfigPropertyMetadata);
|
|
9817
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$e(createSemanticModel_ConfigPropertyMetadata);
|
|
9818
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
9645
9819
|
const config = {};
|
|
9646
|
-
typeCheckConfig$
|
|
9820
|
+
typeCheckConfig$e(untrustedConfig, config, createSemanticModel_ConfigPropertyMetadata);
|
|
9647
9821
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
9648
9822
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
9649
9823
|
const untrustedConfig_baseModels_array = [];
|
|
9650
9824
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
9651
9825
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
9652
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate$
|
|
9826
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$Z(untrustedConfig_baseModels_item);
|
|
9653
9827
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
9654
9828
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
9655
9829
|
}
|
|
@@ -9661,7 +9835,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9661
9835
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
9662
9836
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
9663
9837
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
9664
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
9838
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$X(untrustedConfig_semanticCalculatedDimensions_item);
|
|
9665
9839
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
9666
9840
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
9667
9841
|
}
|
|
@@ -9673,7 +9847,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9673
9847
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
9674
9848
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
9675
9849
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
9676
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
9850
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$W(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
9677
9851
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
9678
9852
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
9679
9853
|
}
|
|
@@ -9685,7 +9859,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9685
9859
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
9686
9860
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
9687
9861
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
9688
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
9862
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$T(untrustedConfig_semanticDataObjects_item);
|
|
9689
9863
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
9690
9864
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
9691
9865
|
}
|
|
@@ -9697,7 +9871,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9697
9871
|
const untrustedConfig_semanticGroupings_array = [];
|
|
9698
9872
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
9699
9873
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
9700
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
9874
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$M(untrustedConfig_semanticGroupings_item);
|
|
9701
9875
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
9702
9876
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
9703
9877
|
}
|
|
@@ -9709,7 +9883,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9709
9883
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
9710
9884
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
9711
9885
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
9712
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
9886
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$H(untrustedConfig_semanticLogicalViews_item);
|
|
9713
9887
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
9714
9888
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
9715
9889
|
}
|
|
@@ -9721,7 +9895,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9721
9895
|
const untrustedConfig_semanticMetrics_array = [];
|
|
9722
9896
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
9723
9897
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
9724
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
9898
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$D(untrustedConfig_semanticMetrics_item);
|
|
9725
9899
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
9726
9900
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
9727
9901
|
}
|
|
@@ -9733,7 +9907,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9733
9907
|
const untrustedConfig_semanticParameters_array = [];
|
|
9734
9908
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
9735
9909
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
9736
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
9910
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$C(untrustedConfig_semanticParameters_item);
|
|
9737
9911
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
9738
9912
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
9739
9913
|
}
|
|
@@ -9745,7 +9919,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9745
9919
|
const untrustedConfig_semanticRelationships_array = [];
|
|
9746
9920
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
9747
9921
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
9748
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
9922
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$K(untrustedConfig_semanticRelationships_item);
|
|
9749
9923
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
9750
9924
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
9751
9925
|
}
|
|
@@ -9754,30 +9928,30 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9754
9928
|
}
|
|
9755
9929
|
return config;
|
|
9756
9930
|
}
|
|
9757
|
-
function validateAdapterConfig$
|
|
9931
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
9758
9932
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9759
9933
|
return null;
|
|
9760
9934
|
}
|
|
9761
9935
|
if (process.env.NODE_ENV !== 'production') {
|
|
9762
9936
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9763
9937
|
}
|
|
9764
|
-
const config = typeCheckConfig$
|
|
9938
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
9765
9939
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9766
9940
|
return null;
|
|
9767
9941
|
}
|
|
9768
9942
|
return config;
|
|
9769
9943
|
}
|
|
9770
|
-
function buildNetworkSnapshot$
|
|
9771
|
-
const resourceParams = createResourceParams$
|
|
9772
|
-
const request = createResourceRequest$
|
|
9944
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
9945
|
+
const resourceParams = createResourceParams$c(config);
|
|
9946
|
+
const request = createResourceRequest$c(resourceParams);
|
|
9773
9947
|
return luvio.dispatchResourceRequest(request, options)
|
|
9774
9948
|
.then((response) => {
|
|
9775
9949
|
return luvio.handleSuccessResponse(() => {
|
|
9776
|
-
const snapshot = ingestSuccess$
|
|
9950
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
9777
9951
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9778
9952
|
}, () => {
|
|
9779
9953
|
const cache = new StoreKeyMap();
|
|
9780
|
-
getResponseCacheKeys$
|
|
9954
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
9781
9955
|
return cache;
|
|
9782
9956
|
});
|
|
9783
9957
|
}, (response) => {
|
|
@@ -9787,33 +9961,33 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
9787
9961
|
}
|
|
9788
9962
|
const createSemanticModelAdapterFactory = (luvio) => {
|
|
9789
9963
|
return function createSemanticModel(untrustedConfig) {
|
|
9790
|
-
const config = validateAdapterConfig$
|
|
9964
|
+
const config = validateAdapterConfig$c(untrustedConfig, createSemanticModel_ConfigPropertyNames);
|
|
9791
9965
|
// Invalid or incomplete config
|
|
9792
9966
|
if (config === null) {
|
|
9793
9967
|
throw new Error('Invalid config for "createSemanticModel"');
|
|
9794
9968
|
}
|
|
9795
|
-
return buildNetworkSnapshot$
|
|
9969
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
9796
9970
|
};
|
|
9797
9971
|
};
|
|
9798
9972
|
|
|
9799
|
-
function select$
|
|
9800
|
-
return select$
|
|
9973
|
+
function select$e(luvio, params) {
|
|
9974
|
+
return select$g();
|
|
9801
9975
|
}
|
|
9802
|
-
function keyBuilder$
|
|
9803
|
-
return keyBuilder$
|
|
9976
|
+
function keyBuilder$g(luvio, params) {
|
|
9977
|
+
return keyBuilder$h(luvio, {
|
|
9804
9978
|
name: params.urlParams.modelApiNameOrId
|
|
9805
9979
|
});
|
|
9806
9980
|
}
|
|
9807
|
-
function getResponseCacheKeys$
|
|
9981
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
9808
9982
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
9809
9983
|
}
|
|
9810
|
-
function ingestSuccess$
|
|
9984
|
+
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
9811
9985
|
const { body } = response;
|
|
9812
|
-
const key = keyBuilder$
|
|
9986
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
9813
9987
|
luvio.storeIngest(key, ingest$5, body);
|
|
9814
9988
|
const snapshot = luvio.storeLookup({
|
|
9815
9989
|
recordId: key,
|
|
9816
|
-
node: select$
|
|
9990
|
+
node: select$e(),
|
|
9817
9991
|
variables: {},
|
|
9818
9992
|
}, snapshotRefresh);
|
|
9819
9993
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9825,12 +9999,12 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
9825
9999
|
return snapshot;
|
|
9826
10000
|
}
|
|
9827
10001
|
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
9828
|
-
const key = keyBuilder$
|
|
10002
|
+
const key = keyBuilder$g(luvio, params);
|
|
9829
10003
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
9830
10004
|
luvio.storeIngestError(key, errorSnapshot);
|
|
9831
10005
|
return errorSnapshot;
|
|
9832
10006
|
}
|
|
9833
|
-
function createResourceRequest$
|
|
10007
|
+
function createResourceRequest$b(config) {
|
|
9834
10008
|
const headers = {};
|
|
9835
10009
|
return {
|
|
9836
10010
|
baseUri: '/services/data/v62.0',
|
|
@@ -9844,63 +10018,63 @@ function createResourceRequest$9(config) {
|
|
|
9844
10018
|
};
|
|
9845
10019
|
}
|
|
9846
10020
|
|
|
9847
|
-
const adapterName$
|
|
10021
|
+
const adapterName$b = 'getSemanticModel';
|
|
9848
10022
|
const getSemanticModel_ConfigPropertyMetadata = [
|
|
9849
10023
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9850
10024
|
generateParamConfigMetadata('fieldName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9851
10025
|
generateParamConfigMetadata('includeModelContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
9852
10026
|
generateParamConfigMetadata('includeTableKeys', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
9853
10027
|
];
|
|
9854
|
-
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9855
|
-
const createResourceParams$
|
|
9856
|
-
function keyBuilder$
|
|
9857
|
-
const resourceParams = createResourceParams$
|
|
9858
|
-
return keyBuilder$
|
|
10028
|
+
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSemanticModel_ConfigPropertyMetadata);
|
|
10029
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$e(getSemanticModel_ConfigPropertyMetadata);
|
|
10030
|
+
function keyBuilder$f(luvio, config) {
|
|
10031
|
+
const resourceParams = createResourceParams$b(config);
|
|
10032
|
+
return keyBuilder$g(luvio, resourceParams);
|
|
9859
10033
|
}
|
|
9860
|
-
function typeCheckConfig$
|
|
10034
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
9861
10035
|
const config = {};
|
|
9862
|
-
typeCheckConfig$
|
|
10036
|
+
typeCheckConfig$e(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
9863
10037
|
return config;
|
|
9864
10038
|
}
|
|
9865
|
-
function validateAdapterConfig$
|
|
10039
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
9866
10040
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9867
10041
|
return null;
|
|
9868
10042
|
}
|
|
9869
10043
|
if (process.env.NODE_ENV !== 'production') {
|
|
9870
10044
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9871
10045
|
}
|
|
9872
|
-
const config = typeCheckConfig$
|
|
10046
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
9873
10047
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9874
10048
|
return null;
|
|
9875
10049
|
}
|
|
9876
10050
|
return config;
|
|
9877
10051
|
}
|
|
9878
10052
|
function adapterFragment$6(luvio, config) {
|
|
9879
|
-
createResourceParams$
|
|
9880
|
-
return select$
|
|
10053
|
+
createResourceParams$b(config);
|
|
10054
|
+
return select$e();
|
|
9881
10055
|
}
|
|
9882
10056
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
9883
|
-
const snapshot = ingestSuccess$
|
|
10057
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
9884
10058
|
config,
|
|
9885
|
-
resolve: () => buildNetworkSnapshot$
|
|
10059
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
9886
10060
|
});
|
|
9887
10061
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9888
10062
|
}
|
|
9889
10063
|
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
9890
10064
|
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
9891
10065
|
config,
|
|
9892
|
-
resolve: () => buildNetworkSnapshot$
|
|
10066
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
9893
10067
|
});
|
|
9894
10068
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9895
10069
|
}
|
|
9896
|
-
function buildNetworkSnapshot$
|
|
9897
|
-
const resourceParams = createResourceParams$
|
|
9898
|
-
const request = createResourceRequest$
|
|
10070
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
10071
|
+
const resourceParams = createResourceParams$b(config);
|
|
10072
|
+
const request = createResourceRequest$b(resourceParams);
|
|
9899
10073
|
return luvio.dispatchResourceRequest(request, options)
|
|
9900
10074
|
.then((response) => {
|
|
9901
10075
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
9902
10076
|
const cache = new StoreKeyMap();
|
|
9903
|
-
getResponseCacheKeys$
|
|
10077
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
9904
10078
|
return cache;
|
|
9905
10079
|
});
|
|
9906
10080
|
}, (response) => {
|
|
@@ -9908,23 +10082,23 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
9908
10082
|
});
|
|
9909
10083
|
}
|
|
9910
10084
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
9911
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10085
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
9912
10086
|
}
|
|
9913
10087
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
9914
10088
|
const { luvio, config } = context;
|
|
9915
10089
|
const selector = {
|
|
9916
|
-
recordId: keyBuilder$
|
|
10090
|
+
recordId: keyBuilder$f(luvio, config),
|
|
9917
10091
|
node: adapterFragment$6(luvio, config),
|
|
9918
10092
|
variables: {},
|
|
9919
10093
|
};
|
|
9920
10094
|
const cacheSnapshot = storeLookup(selector, {
|
|
9921
10095
|
config,
|
|
9922
|
-
resolve: () => buildNetworkSnapshot$
|
|
10096
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
9923
10097
|
});
|
|
9924
10098
|
return cacheSnapshot;
|
|
9925
10099
|
}
|
|
9926
10100
|
const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModel(untrustedConfig, requestContext) {
|
|
9927
|
-
const config = validateAdapterConfig$
|
|
10101
|
+
const config = validateAdapterConfig$b(untrustedConfig, getSemanticModel_ConfigPropertyNames);
|
|
9928
10102
|
// Invalid or incomplete config
|
|
9929
10103
|
if (config === null) {
|
|
9930
10104
|
return null;
|
|
@@ -9933,19 +10107,19 @@ const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__ge
|
|
|
9933
10107
|
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
9934
10108
|
};
|
|
9935
10109
|
|
|
9936
|
-
function select$
|
|
9937
|
-
return select$
|
|
10110
|
+
function select$d(luvio, params) {
|
|
10111
|
+
return select$g();
|
|
9938
10112
|
}
|
|
9939
|
-
function getResponseCacheKeys$
|
|
10113
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
9940
10114
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
9941
10115
|
}
|
|
9942
|
-
function ingestSuccess$
|
|
10116
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
9943
10117
|
const { body } = response;
|
|
9944
10118
|
const key = keyBuilderFromType$1(luvio, body);
|
|
9945
10119
|
luvio.storeIngest(key, ingest$5, body);
|
|
9946
10120
|
const snapshot = luvio.storeLookup({
|
|
9947
10121
|
recordId: key,
|
|
9948
|
-
node: select$
|
|
10122
|
+
node: select$d(),
|
|
9949
10123
|
variables: {},
|
|
9950
10124
|
});
|
|
9951
10125
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9956,7 +10130,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
9956
10130
|
deepFreeze(snapshot.data);
|
|
9957
10131
|
return snapshot;
|
|
9958
10132
|
}
|
|
9959
|
-
function createResourceRequest$
|
|
10133
|
+
function createResourceRequest$a(config) {
|
|
9960
10134
|
const headers = {};
|
|
9961
10135
|
return {
|
|
9962
10136
|
baseUri: '/services/data/v62.0',
|
|
@@ -9970,7 +10144,7 @@ function createResourceRequest$8(config) {
|
|
|
9970
10144
|
};
|
|
9971
10145
|
}
|
|
9972
10146
|
|
|
9973
|
-
const adapterName$
|
|
10147
|
+
const adapterName$a = 'patchSemanticModel';
|
|
9974
10148
|
const patchSemanticModel_ConfigPropertyMetadata = [
|
|
9975
10149
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9976
10150
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -9992,17 +10166,17 @@ const patchSemanticModel_ConfigPropertyMetadata = [
|
|
|
9992
10166
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9993
10167
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9994
10168
|
];
|
|
9995
|
-
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9996
|
-
const createResourceParams$
|
|
9997
|
-
function typeCheckConfig$
|
|
10169
|
+
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, patchSemanticModel_ConfigPropertyMetadata);
|
|
10170
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$e(patchSemanticModel_ConfigPropertyMetadata);
|
|
10171
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
9998
10172
|
const config = {};
|
|
9999
|
-
typeCheckConfig$
|
|
10173
|
+
typeCheckConfig$e(untrustedConfig, config, patchSemanticModel_ConfigPropertyMetadata);
|
|
10000
10174
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
10001
10175
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
10002
10176
|
const untrustedConfig_baseModels_array = [];
|
|
10003
10177
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
10004
10178
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
10005
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate$
|
|
10179
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$Z(untrustedConfig_baseModels_item);
|
|
10006
10180
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
10007
10181
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
10008
10182
|
}
|
|
@@ -10014,7 +10188,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10014
10188
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
10015
10189
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
10016
10190
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
10017
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
10191
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$X(untrustedConfig_semanticCalculatedDimensions_item);
|
|
10018
10192
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
10019
10193
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
10020
10194
|
}
|
|
@@ -10026,7 +10200,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10026
10200
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
10027
10201
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
10028
10202
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
10029
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
10203
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$W(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
10030
10204
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
10031
10205
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
10032
10206
|
}
|
|
@@ -10038,7 +10212,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10038
10212
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
10039
10213
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
10040
10214
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
10041
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
10215
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$T(untrustedConfig_semanticDataObjects_item);
|
|
10042
10216
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
10043
10217
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
10044
10218
|
}
|
|
@@ -10050,7 +10224,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10050
10224
|
const untrustedConfig_semanticGroupings_array = [];
|
|
10051
10225
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
10052
10226
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
10053
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
10227
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$M(untrustedConfig_semanticGroupings_item);
|
|
10054
10228
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
10055
10229
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
10056
10230
|
}
|
|
@@ -10062,7 +10236,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10062
10236
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
10063
10237
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
10064
10238
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
10065
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
10239
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$H(untrustedConfig_semanticLogicalViews_item);
|
|
10066
10240
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
10067
10241
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
10068
10242
|
}
|
|
@@ -10074,7 +10248,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10074
10248
|
const untrustedConfig_semanticMetrics_array = [];
|
|
10075
10249
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
10076
10250
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
10077
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
10251
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$D(untrustedConfig_semanticMetrics_item);
|
|
10078
10252
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
10079
10253
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
10080
10254
|
}
|
|
@@ -10086,7 +10260,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10086
10260
|
const untrustedConfig_semanticParameters_array = [];
|
|
10087
10261
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
10088
10262
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
10089
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
10263
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$C(untrustedConfig_semanticParameters_item);
|
|
10090
10264
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
10091
10265
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
10092
10266
|
}
|
|
@@ -10098,7 +10272,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10098
10272
|
const untrustedConfig_semanticRelationships_array = [];
|
|
10099
10273
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
10100
10274
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
10101
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
10275
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$K(untrustedConfig_semanticRelationships_item);
|
|
10102
10276
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
10103
10277
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
10104
10278
|
}
|
|
@@ -10107,30 +10281,30 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10107
10281
|
}
|
|
10108
10282
|
return config;
|
|
10109
10283
|
}
|
|
10110
|
-
function validateAdapterConfig$
|
|
10284
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
10111
10285
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10112
10286
|
return null;
|
|
10113
10287
|
}
|
|
10114
10288
|
if (process.env.NODE_ENV !== 'production') {
|
|
10115
10289
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10116
10290
|
}
|
|
10117
|
-
const config = typeCheckConfig$
|
|
10291
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
10118
10292
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10119
10293
|
return null;
|
|
10120
10294
|
}
|
|
10121
10295
|
return config;
|
|
10122
10296
|
}
|
|
10123
|
-
function buildNetworkSnapshot$
|
|
10124
|
-
const resourceParams = createResourceParams$
|
|
10125
|
-
const request = createResourceRequest$
|
|
10297
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
10298
|
+
const resourceParams = createResourceParams$a(config);
|
|
10299
|
+
const request = createResourceRequest$a(resourceParams);
|
|
10126
10300
|
return luvio.dispatchResourceRequest(request, options)
|
|
10127
10301
|
.then((response) => {
|
|
10128
10302
|
return luvio.handleSuccessResponse(() => {
|
|
10129
|
-
const snapshot = ingestSuccess$
|
|
10303
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
10130
10304
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10131
10305
|
}, () => {
|
|
10132
10306
|
const cache = new StoreKeyMap();
|
|
10133
|
-
getResponseCacheKeys$
|
|
10307
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
10134
10308
|
return cache;
|
|
10135
10309
|
});
|
|
10136
10310
|
}, (response) => {
|
|
@@ -10140,12 +10314,12 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
10140
10314
|
}
|
|
10141
10315
|
const patchSemanticModelAdapterFactory = (luvio) => {
|
|
10142
10316
|
return function patchSemanticModel(untrustedConfig) {
|
|
10143
|
-
const config = validateAdapterConfig$
|
|
10317
|
+
const config = validateAdapterConfig$a(untrustedConfig, patchSemanticModel_ConfigPropertyNames);
|
|
10144
10318
|
// Invalid or incomplete config
|
|
10145
10319
|
if (config === null) {
|
|
10146
10320
|
throw new Error('Invalid config for "patchSemanticModel"');
|
|
10147
10321
|
}
|
|
10148
|
-
return buildNetworkSnapshot$
|
|
10322
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
10149
10323
|
};
|
|
10150
10324
|
};
|
|
10151
10325
|
|
|
@@ -10377,19 +10551,19 @@ function validate$8(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10377
10551
|
return v_error === undefined ? null : v_error;
|
|
10378
10552
|
}
|
|
10379
10553
|
const RepresentationType$4 = 'SemanticSubMetricOutputRepresentation';
|
|
10380
|
-
function keyBuilder$
|
|
10554
|
+
function keyBuilder$e(luvio, config) {
|
|
10381
10555
|
return keyPrefix + '::' + RepresentationType$4 + ':' + config.name;
|
|
10382
10556
|
}
|
|
10383
10557
|
function keyBuilderFromType(luvio, object) {
|
|
10384
10558
|
const keyParams = {
|
|
10385
10559
|
name: object.id
|
|
10386
10560
|
};
|
|
10387
|
-
return keyBuilder$
|
|
10561
|
+
return keyBuilder$e(luvio, keyParams);
|
|
10388
10562
|
}
|
|
10389
10563
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
10390
10564
|
return input;
|
|
10391
10565
|
}
|
|
10392
|
-
const select$
|
|
10566
|
+
const select$c = function SemanticSubMetricOutputRepresentationSelect() {
|
|
10393
10567
|
return {
|
|
10394
10568
|
kind: 'Fragment',
|
|
10395
10569
|
version: VERSION$4,
|
|
@@ -10477,7 +10651,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
10477
10651
|
}
|
|
10478
10652
|
return input;
|
|
10479
10653
|
}
|
|
10480
|
-
const select$
|
|
10654
|
+
const select$b = function SemanticSubMetricsByMetricOutputRepresentationSelect() {
|
|
10481
10655
|
return {
|
|
10482
10656
|
kind: 'Fragment',
|
|
10483
10657
|
version: VERSION$3,
|
|
@@ -10493,7 +10667,7 @@ const select$a = function SemanticSubMetricsByMetricOutputRepresentationSelect()
|
|
|
10493
10667
|
kind: 'Link',
|
|
10494
10668
|
plural: true,
|
|
10495
10669
|
required: false,
|
|
10496
|
-
fragment: select$
|
|
10670
|
+
fragment: select$c()
|
|
10497
10671
|
}
|
|
10498
10672
|
]
|
|
10499
10673
|
};
|
|
@@ -10605,7 +10779,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
10605
10779
|
}
|
|
10606
10780
|
return input;
|
|
10607
10781
|
}
|
|
10608
|
-
const select$
|
|
10782
|
+
const select$a = function SemanticSubMetricsByMetricCollectionOutputRepresentationSelect() {
|
|
10609
10783
|
return {
|
|
10610
10784
|
kind: 'Fragment',
|
|
10611
10785
|
version: VERSION$2,
|
|
@@ -10616,7 +10790,7 @@ const select$9 = function SemanticSubMetricsByMetricCollectionOutputRepresentati
|
|
|
10616
10790
|
kind: 'Link',
|
|
10617
10791
|
plural: true,
|
|
10618
10792
|
required: false,
|
|
10619
|
-
fragment: select$
|
|
10793
|
+
fragment: select$b()
|
|
10620
10794
|
}
|
|
10621
10795
|
]
|
|
10622
10796
|
};
|
|
@@ -10670,22 +10844,22 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10670
10844
|
}
|
|
10671
10845
|
}
|
|
10672
10846
|
|
|
10673
|
-
function select$
|
|
10674
|
-
return select$
|
|
10847
|
+
function select$9(luvio, params) {
|
|
10848
|
+
return select$a();
|
|
10675
10849
|
}
|
|
10676
|
-
function keyBuilder$
|
|
10850
|
+
function keyBuilder$d(luvio, params) {
|
|
10677
10851
|
return keyPrefix + '::SemanticSubMetricsByMetricCollectionOutputRepresentation:(' + 'metricApiNames:' + params.urlParams.metricApiNames + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
10678
10852
|
}
|
|
10679
|
-
function getResponseCacheKeys$
|
|
10680
|
-
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$
|
|
10853
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
10854
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
|
|
10681
10855
|
}
|
|
10682
|
-
function ingestSuccess$
|
|
10856
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
10683
10857
|
const { body } = response;
|
|
10684
|
-
const key = keyBuilder$
|
|
10858
|
+
const key = keyBuilder$d(luvio, resourceParams);
|
|
10685
10859
|
luvio.storeIngest(key, ingest$2, body);
|
|
10686
10860
|
const snapshot = luvio.storeLookup({
|
|
10687
10861
|
recordId: key,
|
|
10688
|
-
node: select$
|
|
10862
|
+
node: select$9(),
|
|
10689
10863
|
variables: {},
|
|
10690
10864
|
}, snapshotRefresh);
|
|
10691
10865
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10697,12 +10871,12 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
10697
10871
|
return snapshot;
|
|
10698
10872
|
}
|
|
10699
10873
|
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
10700
|
-
const key = keyBuilder$
|
|
10874
|
+
const key = keyBuilder$d(luvio, params);
|
|
10701
10875
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
10702
10876
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10703
10877
|
return errorSnapshot;
|
|
10704
10878
|
}
|
|
10705
|
-
function createResourceRequest$
|
|
10879
|
+
function createResourceRequest$9(config) {
|
|
10706
10880
|
const headers = {};
|
|
10707
10881
|
return {
|
|
10708
10882
|
baseUri: '/services/data/v62.0',
|
|
@@ -10716,61 +10890,61 @@ function createResourceRequest$7(config) {
|
|
|
10716
10890
|
};
|
|
10717
10891
|
}
|
|
10718
10892
|
|
|
10719
|
-
const adapterName$
|
|
10893
|
+
const adapterName$9 = 'getSemanticMetricsToSubMetrics';
|
|
10720
10894
|
const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
10721
10895
|
generateParamConfigMetadata('metricApiNames', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10722
10896
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10723
10897
|
];
|
|
10724
|
-
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10725
|
-
const createResourceParams$
|
|
10726
|
-
function keyBuilder$
|
|
10727
|
-
const resourceParams = createResourceParams$
|
|
10728
|
-
return keyBuilder$
|
|
10898
|
+
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10899
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$e(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10900
|
+
function keyBuilder$c(luvio, config) {
|
|
10901
|
+
const resourceParams = createResourceParams$9(config);
|
|
10902
|
+
return keyBuilder$d(luvio, resourceParams);
|
|
10729
10903
|
}
|
|
10730
|
-
function typeCheckConfig$
|
|
10904
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
10731
10905
|
const config = {};
|
|
10732
|
-
typeCheckConfig$
|
|
10906
|
+
typeCheckConfig$e(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10733
10907
|
return config;
|
|
10734
10908
|
}
|
|
10735
|
-
function validateAdapterConfig$
|
|
10909
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
10736
10910
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10737
10911
|
return null;
|
|
10738
10912
|
}
|
|
10739
10913
|
if (process.env.NODE_ENV !== 'production') {
|
|
10740
10914
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10741
10915
|
}
|
|
10742
|
-
const config = typeCheckConfig$
|
|
10916
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
10743
10917
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10744
10918
|
return null;
|
|
10745
10919
|
}
|
|
10746
10920
|
return config;
|
|
10747
10921
|
}
|
|
10748
10922
|
function adapterFragment$5(luvio, config) {
|
|
10749
|
-
createResourceParams$
|
|
10750
|
-
return select$
|
|
10923
|
+
createResourceParams$9(config);
|
|
10924
|
+
return select$9();
|
|
10751
10925
|
}
|
|
10752
10926
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
10753
|
-
const snapshot = ingestSuccess$
|
|
10927
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
10754
10928
|
config,
|
|
10755
|
-
resolve: () => buildNetworkSnapshot$
|
|
10929
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
10756
10930
|
});
|
|
10757
10931
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10758
10932
|
}
|
|
10759
10933
|
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
10760
10934
|
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
10761
10935
|
config,
|
|
10762
|
-
resolve: () => buildNetworkSnapshot$
|
|
10936
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
10763
10937
|
});
|
|
10764
10938
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10765
10939
|
}
|
|
10766
|
-
function buildNetworkSnapshot$
|
|
10767
|
-
const resourceParams = createResourceParams$
|
|
10768
|
-
const request = createResourceRequest$
|
|
10940
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
10941
|
+
const resourceParams = createResourceParams$9(config);
|
|
10942
|
+
const request = createResourceRequest$9(resourceParams);
|
|
10769
10943
|
return luvio.dispatchResourceRequest(request, options)
|
|
10770
10944
|
.then((response) => {
|
|
10771
10945
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
10772
10946
|
const cache = new StoreKeyMap();
|
|
10773
|
-
getResponseCacheKeys$
|
|
10947
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
10774
10948
|
return cache;
|
|
10775
10949
|
});
|
|
10776
10950
|
}, (response) => {
|
|
@@ -10778,23 +10952,23 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
10778
10952
|
});
|
|
10779
10953
|
}
|
|
10780
10954
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
10781
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10955
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
10782
10956
|
}
|
|
10783
10957
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
10784
10958
|
const { luvio, config } = context;
|
|
10785
10959
|
const selector = {
|
|
10786
|
-
recordId: keyBuilder$
|
|
10960
|
+
recordId: keyBuilder$c(luvio, config),
|
|
10787
10961
|
node: adapterFragment$5(luvio, config),
|
|
10788
10962
|
variables: {},
|
|
10789
10963
|
};
|
|
10790
10964
|
const cacheSnapshot = storeLookup(selector, {
|
|
10791
10965
|
config,
|
|
10792
|
-
resolve: () => buildNetworkSnapshot$
|
|
10966
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
10793
10967
|
});
|
|
10794
10968
|
return cacheSnapshot;
|
|
10795
10969
|
}
|
|
10796
10970
|
const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsToSubMetrics(untrustedConfig, requestContext) {
|
|
10797
|
-
const config = validateAdapterConfig$
|
|
10971
|
+
const config = validateAdapterConfig$9(untrustedConfig, getSemanticMetricsToSubMetrics_ConfigPropertyNames);
|
|
10798
10972
|
// Invalid or incomplete config
|
|
10799
10973
|
if (config === null) {
|
|
10800
10974
|
return null;
|
|
@@ -10848,7 +11022,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
10848
11022
|
}
|
|
10849
11023
|
return input;
|
|
10850
11024
|
}
|
|
10851
|
-
const select$
|
|
11025
|
+
const select$8 = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
10852
11026
|
return {
|
|
10853
11027
|
kind: 'Fragment',
|
|
10854
11028
|
version: VERSION$1,
|
|
@@ -10859,7 +11033,7 @@ const select$7 = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
|
10859
11033
|
kind: 'Link',
|
|
10860
11034
|
plural: true,
|
|
10861
11035
|
required: false,
|
|
10862
|
-
fragment: select$
|
|
11036
|
+
fragment: select$i()
|
|
10863
11037
|
}
|
|
10864
11038
|
]
|
|
10865
11039
|
};
|
|
@@ -10913,22 +11087,22 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10913
11087
|
}
|
|
10914
11088
|
}
|
|
10915
11089
|
|
|
10916
|
-
function select$
|
|
10917
|
-
return select$
|
|
11090
|
+
function select$7(luvio, params) {
|
|
11091
|
+
return select$8();
|
|
10918
11092
|
}
|
|
10919
|
-
function keyBuilder$
|
|
11093
|
+
function keyBuilder$b(luvio, params) {
|
|
10920
11094
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
10921
11095
|
}
|
|
10922
|
-
function getResponseCacheKeys$
|
|
10923
|
-
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
11096
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
11097
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
10924
11098
|
}
|
|
10925
|
-
function ingestSuccess$
|
|
11099
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
10926
11100
|
const { body } = response;
|
|
10927
|
-
const key = keyBuilder$
|
|
11101
|
+
const key = keyBuilder$b(luvio, resourceParams);
|
|
10928
11102
|
luvio.storeIngest(key, ingest$1, body);
|
|
10929
11103
|
const snapshot = luvio.storeLookup({
|
|
10930
11104
|
recordId: key,
|
|
10931
|
-
node: select$
|
|
11105
|
+
node: select$7(),
|
|
10932
11106
|
variables: {},
|
|
10933
11107
|
}, snapshotRefresh);
|
|
10934
11108
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10940,12 +11114,12 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
10940
11114
|
return snapshot;
|
|
10941
11115
|
}
|
|
10942
11116
|
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
10943
|
-
const key = keyBuilder$
|
|
11117
|
+
const key = keyBuilder$b(luvio, params);
|
|
10944
11118
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
10945
11119
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10946
11120
|
return errorSnapshot;
|
|
10947
11121
|
}
|
|
10948
|
-
function createResourceRequest$
|
|
11122
|
+
function createResourceRequest$8(config) {
|
|
10949
11123
|
const headers = {};
|
|
10950
11124
|
return {
|
|
10951
11125
|
baseUri: '/services/data/v62.0',
|
|
@@ -10959,60 +11133,60 @@ function createResourceRequest$6(config) {
|
|
|
10959
11133
|
};
|
|
10960
11134
|
}
|
|
10961
11135
|
|
|
10962
|
-
const adapterName$
|
|
11136
|
+
const adapterName$8 = 'getSemanticMetrics';
|
|
10963
11137
|
const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
10964
11138
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10965
11139
|
];
|
|
10966
|
-
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10967
|
-
const createResourceParams$
|
|
10968
|
-
function keyBuilder$
|
|
10969
|
-
const resourceParams = createResourceParams$
|
|
10970
|
-
return keyBuilder$
|
|
11140
|
+
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticMetrics_ConfigPropertyMetadata);
|
|
11141
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$e(getSemanticMetrics_ConfigPropertyMetadata);
|
|
11142
|
+
function keyBuilder$a(luvio, config) {
|
|
11143
|
+
const resourceParams = createResourceParams$8(config);
|
|
11144
|
+
return keyBuilder$b(luvio, resourceParams);
|
|
10971
11145
|
}
|
|
10972
|
-
function typeCheckConfig$
|
|
11146
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
10973
11147
|
const config = {};
|
|
10974
|
-
typeCheckConfig$
|
|
11148
|
+
typeCheckConfig$e(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
10975
11149
|
return config;
|
|
10976
11150
|
}
|
|
10977
|
-
function validateAdapterConfig$
|
|
11151
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
10978
11152
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10979
11153
|
return null;
|
|
10980
11154
|
}
|
|
10981
11155
|
if (process.env.NODE_ENV !== 'production') {
|
|
10982
11156
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10983
11157
|
}
|
|
10984
|
-
const config = typeCheckConfig$
|
|
11158
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
10985
11159
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10986
11160
|
return null;
|
|
10987
11161
|
}
|
|
10988
11162
|
return config;
|
|
10989
11163
|
}
|
|
10990
11164
|
function adapterFragment$4(luvio, config) {
|
|
10991
|
-
createResourceParams$
|
|
10992
|
-
return select$
|
|
11165
|
+
createResourceParams$8(config);
|
|
11166
|
+
return select$7();
|
|
10993
11167
|
}
|
|
10994
11168
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
10995
|
-
const snapshot = ingestSuccess$
|
|
11169
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
10996
11170
|
config,
|
|
10997
|
-
resolve: () => buildNetworkSnapshot$
|
|
11171
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
10998
11172
|
});
|
|
10999
11173
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11000
11174
|
}
|
|
11001
11175
|
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
11002
11176
|
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
11003
11177
|
config,
|
|
11004
|
-
resolve: () => buildNetworkSnapshot$
|
|
11178
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
11005
11179
|
});
|
|
11006
11180
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11007
11181
|
}
|
|
11008
|
-
function buildNetworkSnapshot$
|
|
11009
|
-
const resourceParams = createResourceParams$
|
|
11010
|
-
const request = createResourceRequest$
|
|
11182
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
11183
|
+
const resourceParams = createResourceParams$8(config);
|
|
11184
|
+
const request = createResourceRequest$8(resourceParams);
|
|
11011
11185
|
return luvio.dispatchResourceRequest(request, options)
|
|
11012
11186
|
.then((response) => {
|
|
11013
11187
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
11014
11188
|
const cache = new StoreKeyMap();
|
|
11015
|
-
getResponseCacheKeys$
|
|
11189
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
11016
11190
|
return cache;
|
|
11017
11191
|
});
|
|
11018
11192
|
}, (response) => {
|
|
@@ -11020,23 +11194,23 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
11020
11194
|
});
|
|
11021
11195
|
}
|
|
11022
11196
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
11023
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11197
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
11024
11198
|
}
|
|
11025
11199
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
11026
11200
|
const { luvio, config } = context;
|
|
11027
11201
|
const selector = {
|
|
11028
|
-
recordId: keyBuilder$
|
|
11202
|
+
recordId: keyBuilder$a(luvio, config),
|
|
11029
11203
|
node: adapterFragment$4(luvio, config),
|
|
11030
11204
|
variables: {},
|
|
11031
11205
|
};
|
|
11032
11206
|
const cacheSnapshot = storeLookup(selector, {
|
|
11033
11207
|
config,
|
|
11034
|
-
resolve: () => buildNetworkSnapshot$
|
|
11208
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
11035
11209
|
});
|
|
11036
11210
|
return cacheSnapshot;
|
|
11037
11211
|
}
|
|
11038
11212
|
const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetrics(untrustedConfig, requestContext) {
|
|
11039
|
-
const config = validateAdapterConfig$
|
|
11213
|
+
const config = validateAdapterConfig$8(untrustedConfig, getSemanticMetrics_ConfigPropertyNames);
|
|
11040
11214
|
// Invalid or incomplete config
|
|
11041
11215
|
if (config === null) {
|
|
11042
11216
|
return null;
|
|
@@ -11045,24 +11219,24 @@ const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__
|
|
|
11045
11219
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
11046
11220
|
};
|
|
11047
11221
|
|
|
11048
|
-
function select$
|
|
11049
|
-
return select$
|
|
11222
|
+
function select$6(luvio, params) {
|
|
11223
|
+
return select$i();
|
|
11050
11224
|
}
|
|
11051
|
-
function keyBuilder$
|
|
11052
|
-
return keyBuilder$
|
|
11225
|
+
function keyBuilder$9(luvio, params) {
|
|
11226
|
+
return keyBuilder$j(luvio, {
|
|
11053
11227
|
name: params.urlParams.metricNameOrId
|
|
11054
11228
|
});
|
|
11055
11229
|
}
|
|
11056
|
-
function getResponseCacheKeys$
|
|
11230
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
11057
11231
|
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
11058
11232
|
}
|
|
11059
|
-
function ingestSuccess$
|
|
11233
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
11060
11234
|
const { body } = response;
|
|
11061
|
-
const key = keyBuilder$
|
|
11235
|
+
const key = keyBuilder$9(luvio, resourceParams);
|
|
11062
11236
|
luvio.storeIngest(key, ingest$7, body);
|
|
11063
11237
|
const snapshot = luvio.storeLookup({
|
|
11064
11238
|
recordId: key,
|
|
11065
|
-
node: select$
|
|
11239
|
+
node: select$6(),
|
|
11066
11240
|
variables: {},
|
|
11067
11241
|
}, snapshotRefresh);
|
|
11068
11242
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11074,12 +11248,12 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
11074
11248
|
return snapshot;
|
|
11075
11249
|
}
|
|
11076
11250
|
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
11077
|
-
const key = keyBuilder$
|
|
11251
|
+
const key = keyBuilder$9(luvio, params);
|
|
11078
11252
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
11079
11253
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11080
11254
|
return errorSnapshot;
|
|
11081
11255
|
}
|
|
11082
|
-
function createResourceRequest$
|
|
11256
|
+
function createResourceRequest$7(config) {
|
|
11083
11257
|
const headers = {};
|
|
11084
11258
|
return {
|
|
11085
11259
|
baseUri: '/services/data/v62.0',
|
|
@@ -11093,61 +11267,61 @@ function createResourceRequest$5(config) {
|
|
|
11093
11267
|
};
|
|
11094
11268
|
}
|
|
11095
11269
|
|
|
11096
|
-
const adapterName$
|
|
11270
|
+
const adapterName$7 = 'getSemanticMetric';
|
|
11097
11271
|
const getSemanticMetric_ConfigPropertyMetadata = [
|
|
11098
11272
|
generateParamConfigMetadata('metricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11099
11273
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11100
11274
|
];
|
|
11101
|
-
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11102
|
-
const createResourceParams$
|
|
11103
|
-
function keyBuilder$
|
|
11104
|
-
const resourceParams = createResourceParams$
|
|
11105
|
-
return keyBuilder$
|
|
11275
|
+
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticMetric_ConfigPropertyMetadata);
|
|
11276
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$e(getSemanticMetric_ConfigPropertyMetadata);
|
|
11277
|
+
function keyBuilder$8(luvio, config) {
|
|
11278
|
+
const resourceParams = createResourceParams$7(config);
|
|
11279
|
+
return keyBuilder$9(luvio, resourceParams);
|
|
11106
11280
|
}
|
|
11107
|
-
function typeCheckConfig$
|
|
11281
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
11108
11282
|
const config = {};
|
|
11109
|
-
typeCheckConfig$
|
|
11283
|
+
typeCheckConfig$e(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
11110
11284
|
return config;
|
|
11111
11285
|
}
|
|
11112
|
-
function validateAdapterConfig$
|
|
11286
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
11113
11287
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11114
11288
|
return null;
|
|
11115
11289
|
}
|
|
11116
11290
|
if (process.env.NODE_ENV !== 'production') {
|
|
11117
11291
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11118
11292
|
}
|
|
11119
|
-
const config = typeCheckConfig$
|
|
11293
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
11120
11294
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11121
11295
|
return null;
|
|
11122
11296
|
}
|
|
11123
11297
|
return config;
|
|
11124
11298
|
}
|
|
11125
11299
|
function adapterFragment$3(luvio, config) {
|
|
11126
|
-
createResourceParams$
|
|
11127
|
-
return select$
|
|
11300
|
+
createResourceParams$7(config);
|
|
11301
|
+
return select$6();
|
|
11128
11302
|
}
|
|
11129
11303
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
11130
|
-
const snapshot = ingestSuccess$
|
|
11304
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
11131
11305
|
config,
|
|
11132
|
-
resolve: () => buildNetworkSnapshot$
|
|
11306
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
11133
11307
|
});
|
|
11134
11308
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11135
11309
|
}
|
|
11136
11310
|
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
11137
11311
|
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
11138
11312
|
config,
|
|
11139
|
-
resolve: () => buildNetworkSnapshot$
|
|
11313
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
11140
11314
|
});
|
|
11141
11315
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11142
11316
|
}
|
|
11143
|
-
function buildNetworkSnapshot$
|
|
11144
|
-
const resourceParams = createResourceParams$
|
|
11145
|
-
const request = createResourceRequest$
|
|
11317
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
11318
|
+
const resourceParams = createResourceParams$7(config);
|
|
11319
|
+
const request = createResourceRequest$7(resourceParams);
|
|
11146
11320
|
return luvio.dispatchResourceRequest(request, options)
|
|
11147
11321
|
.then((response) => {
|
|
11148
11322
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
11149
11323
|
const cache = new StoreKeyMap();
|
|
11150
|
-
getResponseCacheKeys$
|
|
11324
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
11151
11325
|
return cache;
|
|
11152
11326
|
});
|
|
11153
11327
|
}, (response) => {
|
|
@@ -11155,23 +11329,23 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
11155
11329
|
});
|
|
11156
11330
|
}
|
|
11157
11331
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
11158
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11332
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
11159
11333
|
}
|
|
11160
11334
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
11161
11335
|
const { luvio, config } = context;
|
|
11162
11336
|
const selector = {
|
|
11163
|
-
recordId: keyBuilder$
|
|
11337
|
+
recordId: keyBuilder$8(luvio, config),
|
|
11164
11338
|
node: adapterFragment$3(luvio, config),
|
|
11165
11339
|
variables: {},
|
|
11166
11340
|
};
|
|
11167
11341
|
const cacheSnapshot = storeLookup(selector, {
|
|
11168
11342
|
config,
|
|
11169
|
-
resolve: () => buildNetworkSnapshot$
|
|
11343
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
11170
11344
|
});
|
|
11171
11345
|
return cacheSnapshot;
|
|
11172
11346
|
}
|
|
11173
11347
|
const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetric(untrustedConfig, requestContext) {
|
|
11174
|
-
const config = validateAdapterConfig$
|
|
11348
|
+
const config = validateAdapterConfig$7(untrustedConfig, getSemanticMetric_ConfigPropertyNames);
|
|
11175
11349
|
// Invalid or incomplete config
|
|
11176
11350
|
if (config === null) {
|
|
11177
11351
|
return null;
|
|
@@ -11225,7 +11399,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
11225
11399
|
}
|
|
11226
11400
|
return input;
|
|
11227
11401
|
}
|
|
11228
|
-
const select$
|
|
11402
|
+
const select$5 = function SemanticSubMetricCollectionOutputRepresentationSelect() {
|
|
11229
11403
|
return {
|
|
11230
11404
|
kind: 'Fragment',
|
|
11231
11405
|
version: VERSION,
|
|
@@ -11236,7 +11410,7 @@ const select$4 = function SemanticSubMetricCollectionOutputRepresentationSelect(
|
|
|
11236
11410
|
kind: 'Link',
|
|
11237
11411
|
plural: true,
|
|
11238
11412
|
required: false,
|
|
11239
|
-
fragment: select$
|
|
11413
|
+
fragment: select$c()
|
|
11240
11414
|
}
|
|
11241
11415
|
]
|
|
11242
11416
|
};
|
|
@@ -11290,22 +11464,22 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
11290
11464
|
}
|
|
11291
11465
|
}
|
|
11292
11466
|
|
|
11293
|
-
function select$
|
|
11294
|
-
return select$
|
|
11467
|
+
function select$4(luvio, params) {
|
|
11468
|
+
return select$5();
|
|
11295
11469
|
}
|
|
11296
|
-
function keyBuilder$
|
|
11297
|
-
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11470
|
+
function keyBuilder$7(luvio, params) {
|
|
11471
|
+
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'hasGoal:' + params.queryParams.hasGoal + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11298
11472
|
}
|
|
11299
|
-
function getResponseCacheKeys$
|
|
11300
|
-
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$
|
|
11473
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
11474
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
11301
11475
|
}
|
|
11302
|
-
function ingestSuccess$
|
|
11476
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
11303
11477
|
const { body } = response;
|
|
11304
|
-
const key = keyBuilder$
|
|
11478
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
11305
11479
|
luvio.storeIngest(key, ingest, body);
|
|
11306
11480
|
const snapshot = luvio.storeLookup({
|
|
11307
11481
|
recordId: key,
|
|
11308
|
-
node: select$
|
|
11482
|
+
node: select$4(),
|
|
11309
11483
|
variables: {},
|
|
11310
11484
|
}, snapshotRefresh);
|
|
11311
11485
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11317,12 +11491,12 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
11317
11491
|
return snapshot;
|
|
11318
11492
|
}
|
|
11319
11493
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
11320
|
-
const key = keyBuilder$
|
|
11494
|
+
const key = keyBuilder$7(luvio, params);
|
|
11321
11495
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
11322
11496
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11323
11497
|
return errorSnapshot;
|
|
11324
11498
|
}
|
|
11325
|
-
function createResourceRequest$
|
|
11499
|
+
function createResourceRequest$6(config) {
|
|
11326
11500
|
const headers = {};
|
|
11327
11501
|
return {
|
|
11328
11502
|
baseUri: '/services/data/v62.0',
|
|
@@ -11330,66 +11504,67 @@ function createResourceRequest$4(config) {
|
|
|
11330
11504
|
method: 'get',
|
|
11331
11505
|
body: null,
|
|
11332
11506
|
urlParams: config.urlParams,
|
|
11333
|
-
queryParams:
|
|
11507
|
+
queryParams: config.queryParams,
|
|
11334
11508
|
headers,
|
|
11335
11509
|
priority: 'normal',
|
|
11336
11510
|
};
|
|
11337
11511
|
}
|
|
11338
11512
|
|
|
11339
|
-
const adapterName$
|
|
11513
|
+
const adapterName$6 = 'getSemanticSubMetrics';
|
|
11340
11514
|
const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
11341
11515
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11516
|
+
generateParamConfigMetadata('hasGoal', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
11342
11517
|
];
|
|
11343
|
-
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11344
|
-
const createResourceParams$
|
|
11345
|
-
function keyBuilder$
|
|
11346
|
-
const resourceParams = createResourceParams$
|
|
11347
|
-
return keyBuilder$
|
|
11518
|
+
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11519
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$e(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11520
|
+
function keyBuilder$6(luvio, config) {
|
|
11521
|
+
const resourceParams = createResourceParams$6(config);
|
|
11522
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
11348
11523
|
}
|
|
11349
|
-
function typeCheckConfig$
|
|
11524
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
11350
11525
|
const config = {};
|
|
11351
|
-
typeCheckConfig$
|
|
11526
|
+
typeCheckConfig$e(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11352
11527
|
return config;
|
|
11353
11528
|
}
|
|
11354
|
-
function validateAdapterConfig$
|
|
11529
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
11355
11530
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11356
11531
|
return null;
|
|
11357
11532
|
}
|
|
11358
11533
|
if (process.env.NODE_ENV !== 'production') {
|
|
11359
11534
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11360
11535
|
}
|
|
11361
|
-
const config = typeCheckConfig$
|
|
11536
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
11362
11537
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11363
11538
|
return null;
|
|
11364
11539
|
}
|
|
11365
11540
|
return config;
|
|
11366
11541
|
}
|
|
11367
11542
|
function adapterFragment$2(luvio, config) {
|
|
11368
|
-
createResourceParams$
|
|
11369
|
-
return select$
|
|
11543
|
+
createResourceParams$6(config);
|
|
11544
|
+
return select$4();
|
|
11370
11545
|
}
|
|
11371
11546
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
11372
|
-
const snapshot = ingestSuccess$
|
|
11547
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
11373
11548
|
config,
|
|
11374
|
-
resolve: () => buildNetworkSnapshot$
|
|
11549
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
11375
11550
|
});
|
|
11376
11551
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11377
11552
|
}
|
|
11378
11553
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
11379
11554
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
11380
11555
|
config,
|
|
11381
|
-
resolve: () => buildNetworkSnapshot$
|
|
11556
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
11382
11557
|
});
|
|
11383
11558
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11384
11559
|
}
|
|
11385
|
-
function buildNetworkSnapshot$
|
|
11386
|
-
const resourceParams = createResourceParams$
|
|
11387
|
-
const request = createResourceRequest$
|
|
11560
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
11561
|
+
const resourceParams = createResourceParams$6(config);
|
|
11562
|
+
const request = createResourceRequest$6(resourceParams);
|
|
11388
11563
|
return luvio.dispatchResourceRequest(request, options)
|
|
11389
11564
|
.then((response) => {
|
|
11390
11565
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
11391
11566
|
const cache = new StoreKeyMap();
|
|
11392
|
-
getResponseCacheKeys$
|
|
11567
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
11393
11568
|
return cache;
|
|
11394
11569
|
});
|
|
11395
11570
|
}, (response) => {
|
|
@@ -11397,23 +11572,23 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
11397
11572
|
});
|
|
11398
11573
|
}
|
|
11399
11574
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
11400
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11575
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
11401
11576
|
}
|
|
11402
11577
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
11403
11578
|
const { luvio, config } = context;
|
|
11404
11579
|
const selector = {
|
|
11405
|
-
recordId: keyBuilder$
|
|
11580
|
+
recordId: keyBuilder$6(luvio, config),
|
|
11406
11581
|
node: adapterFragment$2(luvio, config),
|
|
11407
11582
|
variables: {},
|
|
11408
11583
|
};
|
|
11409
11584
|
const cacheSnapshot = storeLookup(selector, {
|
|
11410
11585
|
config,
|
|
11411
|
-
resolve: () => buildNetworkSnapshot$
|
|
11586
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
11412
11587
|
});
|
|
11413
11588
|
return cacheSnapshot;
|
|
11414
11589
|
}
|
|
11415
11590
|
const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetrics(untrustedConfig, requestContext) {
|
|
11416
|
-
const config = validateAdapterConfig$
|
|
11591
|
+
const config = validateAdapterConfig$6(untrustedConfig, getSemanticSubMetrics_ConfigPropertyNames);
|
|
11417
11592
|
// Invalid or incomplete config
|
|
11418
11593
|
if (config === null) {
|
|
11419
11594
|
return null;
|
|
@@ -11523,19 +11698,19 @@ function validate(obj, path = 'SemanticTimeRangeInputRepresentation') {
|
|
|
11523
11698
|
return v_error === undefined ? null : v_error;
|
|
11524
11699
|
}
|
|
11525
11700
|
|
|
11526
|
-
function select$
|
|
11527
|
-
return select$
|
|
11701
|
+
function select$3(luvio, params) {
|
|
11702
|
+
return select$c();
|
|
11528
11703
|
}
|
|
11529
|
-
function getResponseCacheKeys$
|
|
11704
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
11530
11705
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
11531
11706
|
}
|
|
11532
|
-
function ingestSuccess$
|
|
11707
|
+
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
11533
11708
|
const { body } = response;
|
|
11534
11709
|
const key = keyBuilderFromType(luvio, body);
|
|
11535
11710
|
luvio.storeIngest(key, ingest$4, body);
|
|
11536
11711
|
const snapshot = luvio.storeLookup({
|
|
11537
11712
|
recordId: key,
|
|
11538
|
-
node: select$
|
|
11713
|
+
node: select$3(),
|
|
11539
11714
|
variables: {},
|
|
11540
11715
|
});
|
|
11541
11716
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11546,7 +11721,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
|
|
|
11546
11721
|
deepFreeze(snapshot.data);
|
|
11547
11722
|
return snapshot;
|
|
11548
11723
|
}
|
|
11549
|
-
function createResourceRequest$
|
|
11724
|
+
function createResourceRequest$5(config) {
|
|
11550
11725
|
const headers = {};
|
|
11551
11726
|
return {
|
|
11552
11727
|
baseUri: '/services/data/v62.0',
|
|
@@ -11560,7 +11735,7 @@ function createResourceRequest$3(config) {
|
|
|
11560
11735
|
};
|
|
11561
11736
|
}
|
|
11562
11737
|
|
|
11563
|
-
const adapterName$
|
|
11738
|
+
const adapterName$5 = 'createSemanticSubMetric';
|
|
11564
11739
|
const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
11565
11740
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11566
11741
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -11572,17 +11747,17 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
11572
11747
|
generateParamConfigMetadata('semanticMetricDefinitionApiName', false, 2 /* Body */, 0 /* String */),
|
|
11573
11748
|
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
11574
11749
|
];
|
|
11575
|
-
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11576
|
-
const createResourceParams$
|
|
11577
|
-
function typeCheckConfig$
|
|
11750
|
+
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11751
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$e(createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11752
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
11578
11753
|
const config = {};
|
|
11579
|
-
typeCheckConfig$
|
|
11754
|
+
typeCheckConfig$e(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11580
11755
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
11581
11756
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
11582
11757
|
const untrustedConfig_filters_array = [];
|
|
11583
11758
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
11584
11759
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
11585
|
-
const referenceSemanticFilterInputRepresentationValidationError = validate$
|
|
11760
|
+
const referenceSemanticFilterInputRepresentationValidationError = validate$Y(untrustedConfig_filters_item);
|
|
11586
11761
|
if (referenceSemanticFilterInputRepresentationValidationError === null) {
|
|
11587
11762
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
11588
11763
|
}
|
|
@@ -11601,30 +11776,30 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
11601
11776
|
}
|
|
11602
11777
|
return config;
|
|
11603
11778
|
}
|
|
11604
|
-
function validateAdapterConfig$
|
|
11779
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
11605
11780
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11606
11781
|
return null;
|
|
11607
11782
|
}
|
|
11608
11783
|
if (process.env.NODE_ENV !== 'production') {
|
|
11609
11784
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11610
11785
|
}
|
|
11611
|
-
const config = typeCheckConfig$
|
|
11786
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
11612
11787
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11613
11788
|
return null;
|
|
11614
11789
|
}
|
|
11615
11790
|
return config;
|
|
11616
11791
|
}
|
|
11617
|
-
function buildNetworkSnapshot$
|
|
11618
|
-
const resourceParams = createResourceParams$
|
|
11619
|
-
const request = createResourceRequest$
|
|
11792
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
11793
|
+
const resourceParams = createResourceParams$5(config);
|
|
11794
|
+
const request = createResourceRequest$5(resourceParams);
|
|
11620
11795
|
return luvio.dispatchResourceRequest(request, options)
|
|
11621
11796
|
.then((response) => {
|
|
11622
11797
|
return luvio.handleSuccessResponse(() => {
|
|
11623
|
-
const snapshot = ingestSuccess$
|
|
11798
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
11624
11799
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11625
11800
|
}, () => {
|
|
11626
11801
|
const cache = new StoreKeyMap();
|
|
11627
|
-
getResponseCacheKeys$
|
|
11802
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
11628
11803
|
return cache;
|
|
11629
11804
|
});
|
|
11630
11805
|
}, (response) => {
|
|
@@ -11634,33 +11809,33 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
11634
11809
|
}
|
|
11635
11810
|
const createSemanticSubMetricAdapterFactory = (luvio) => {
|
|
11636
11811
|
return function createSemanticSubMetric(untrustedConfig) {
|
|
11637
|
-
const config = validateAdapterConfig$
|
|
11812
|
+
const config = validateAdapterConfig$5(untrustedConfig, createSemanticSubMetric_ConfigPropertyNames);
|
|
11638
11813
|
// Invalid or incomplete config
|
|
11639
11814
|
if (config === null) {
|
|
11640
11815
|
throw new Error('Invalid config for "createSemanticSubMetric"');
|
|
11641
11816
|
}
|
|
11642
|
-
return buildNetworkSnapshot$
|
|
11817
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
11643
11818
|
};
|
|
11644
11819
|
};
|
|
11645
11820
|
|
|
11646
|
-
function keyBuilder$
|
|
11647
|
-
return keyBuilder$
|
|
11821
|
+
function keyBuilder$5(luvio, params) {
|
|
11822
|
+
return keyBuilder$e(luvio, {
|
|
11648
11823
|
name: params.urlParams.subMetricNameOrId
|
|
11649
11824
|
});
|
|
11650
11825
|
}
|
|
11651
|
-
function getResponseCacheKeys$
|
|
11652
|
-
const key = keyBuilder$
|
|
11826
|
+
function getResponseCacheKeys$4(cacheKeyMap, luvio, resourceParams) {
|
|
11827
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
11653
11828
|
cacheKeyMap.set(key, {
|
|
11654
11829
|
namespace: keyPrefix,
|
|
11655
11830
|
representationName: RepresentationType$4,
|
|
11656
11831
|
mergeable: false
|
|
11657
11832
|
});
|
|
11658
11833
|
}
|
|
11659
|
-
function evictSuccess(luvio, resourceParams) {
|
|
11660
|
-
const key = keyBuilder$
|
|
11834
|
+
function evictSuccess$1(luvio, resourceParams) {
|
|
11835
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
11661
11836
|
luvio.storeEvict(key);
|
|
11662
11837
|
}
|
|
11663
|
-
function createResourceRequest$
|
|
11838
|
+
function createResourceRequest$4(config) {
|
|
11664
11839
|
const headers = {};
|
|
11665
11840
|
return {
|
|
11666
11841
|
baseUri: '/services/data/v62.0',
|
|
@@ -11674,42 +11849,42 @@ function createResourceRequest$2(config) {
|
|
|
11674
11849
|
};
|
|
11675
11850
|
}
|
|
11676
11851
|
|
|
11677
|
-
const adapterName$
|
|
11852
|
+
const adapterName$4 = 'deleteSemanticSubMetric';
|
|
11678
11853
|
const deleteSemanticSubMetric_ConfigPropertyMetadata = [
|
|
11679
11854
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11680
11855
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11681
11856
|
];
|
|
11682
|
-
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11683
|
-
const createResourceParams$
|
|
11684
|
-
function typeCheckConfig$
|
|
11857
|
+
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11858
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$e(deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11859
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
11685
11860
|
const config = {};
|
|
11686
|
-
typeCheckConfig$
|
|
11861
|
+
typeCheckConfig$e(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11687
11862
|
return config;
|
|
11688
11863
|
}
|
|
11689
|
-
function validateAdapterConfig$
|
|
11864
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
11690
11865
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11691
11866
|
return null;
|
|
11692
11867
|
}
|
|
11693
11868
|
if (process.env.NODE_ENV !== 'production') {
|
|
11694
11869
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11695
11870
|
}
|
|
11696
|
-
const config = typeCheckConfig$
|
|
11871
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
11697
11872
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11698
11873
|
return null;
|
|
11699
11874
|
}
|
|
11700
11875
|
return config;
|
|
11701
11876
|
}
|
|
11702
|
-
function buildNetworkSnapshot$
|
|
11703
|
-
const resourceParams = createResourceParams$
|
|
11704
|
-
const request = createResourceRequest$
|
|
11877
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
11878
|
+
const resourceParams = createResourceParams$4(config);
|
|
11879
|
+
const request = createResourceRequest$4(resourceParams);
|
|
11705
11880
|
return luvio.dispatchResourceRequest(request, options)
|
|
11706
11881
|
.then(() => {
|
|
11707
11882
|
return luvio.handleSuccessResponse(() => {
|
|
11708
|
-
evictSuccess(luvio, resourceParams);
|
|
11883
|
+
evictSuccess$1(luvio, resourceParams);
|
|
11709
11884
|
return luvio.storeBroadcast();
|
|
11710
11885
|
}, () => {
|
|
11711
11886
|
const cache = new StoreKeyMap();
|
|
11712
|
-
getResponseCacheKeys$
|
|
11887
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams);
|
|
11713
11888
|
return cache;
|
|
11714
11889
|
});
|
|
11715
11890
|
}, (response) => {
|
|
@@ -11719,33 +11894,33 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
11719
11894
|
}
|
|
11720
11895
|
const deleteSemanticSubMetricAdapterFactory = (luvio) => {
|
|
11721
11896
|
return function SemanticAuthoringdeleteSemanticSubMetric(untrustedConfig) {
|
|
11722
|
-
const config = validateAdapterConfig$
|
|
11897
|
+
const config = validateAdapterConfig$4(untrustedConfig, deleteSemanticSubMetric_ConfigPropertyNames);
|
|
11723
11898
|
// Invalid or incomplete config
|
|
11724
11899
|
if (config === null) {
|
|
11725
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
11900
|
+
throw new Error(`Invalid config for "${adapterName$4}"`);
|
|
11726
11901
|
}
|
|
11727
|
-
return buildNetworkSnapshot$
|
|
11902
|
+
return buildNetworkSnapshot$4(luvio, config);
|
|
11728
11903
|
};
|
|
11729
11904
|
};
|
|
11730
11905
|
|
|
11731
|
-
function select$
|
|
11732
|
-
return select$
|
|
11906
|
+
function select$2(luvio, params) {
|
|
11907
|
+
return select$c();
|
|
11733
11908
|
}
|
|
11734
|
-
function keyBuilder$
|
|
11735
|
-
return keyBuilder$
|
|
11909
|
+
function keyBuilder$4(luvio, params) {
|
|
11910
|
+
return keyBuilder$e(luvio, {
|
|
11736
11911
|
name: params.urlParams.subMetricNameOrId
|
|
11737
11912
|
});
|
|
11738
11913
|
}
|
|
11739
|
-
function getResponseCacheKeys$
|
|
11914
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
11740
11915
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
11741
11916
|
}
|
|
11742
|
-
function ingestSuccess$
|
|
11917
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
11743
11918
|
const { body } = response;
|
|
11744
|
-
const key = keyBuilder$
|
|
11919
|
+
const key = keyBuilder$4(luvio, resourceParams);
|
|
11745
11920
|
luvio.storeIngest(key, ingest$4, body);
|
|
11746
11921
|
const snapshot = luvio.storeLookup({
|
|
11747
11922
|
recordId: key,
|
|
11748
|
-
node: select$
|
|
11923
|
+
node: select$2(),
|
|
11749
11924
|
variables: {},
|
|
11750
11925
|
}, snapshotRefresh);
|
|
11751
11926
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11757,12 +11932,12 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
11757
11932
|
return snapshot;
|
|
11758
11933
|
}
|
|
11759
11934
|
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
11760
|
-
const key = keyBuilder$
|
|
11935
|
+
const key = keyBuilder$4(luvio, params);
|
|
11761
11936
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
11762
11937
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11763
11938
|
return errorSnapshot;
|
|
11764
11939
|
}
|
|
11765
|
-
function createResourceRequest$
|
|
11940
|
+
function createResourceRequest$3(config) {
|
|
11766
11941
|
const headers = {};
|
|
11767
11942
|
return {
|
|
11768
11943
|
baseUri: '/services/data/v62.0',
|
|
@@ -11776,61 +11951,61 @@ function createResourceRequest$1(config) {
|
|
|
11776
11951
|
};
|
|
11777
11952
|
}
|
|
11778
11953
|
|
|
11779
|
-
const adapterName$
|
|
11954
|
+
const adapterName$3 = 'getSemanticSubMetric';
|
|
11780
11955
|
const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
11781
11956
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11782
11957
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11783
11958
|
];
|
|
11784
|
-
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11785
|
-
const createResourceParams$
|
|
11786
|
-
function keyBuilder$
|
|
11787
|
-
const resourceParams = createResourceParams$
|
|
11788
|
-
return keyBuilder$
|
|
11959
|
+
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11960
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$e(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11961
|
+
function keyBuilder$3(luvio, config) {
|
|
11962
|
+
const resourceParams = createResourceParams$3(config);
|
|
11963
|
+
return keyBuilder$4(luvio, resourceParams);
|
|
11789
11964
|
}
|
|
11790
|
-
function typeCheckConfig$
|
|
11965
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
11791
11966
|
const config = {};
|
|
11792
|
-
typeCheckConfig$
|
|
11967
|
+
typeCheckConfig$e(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11793
11968
|
return config;
|
|
11794
11969
|
}
|
|
11795
|
-
function validateAdapterConfig$
|
|
11970
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
11796
11971
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11797
11972
|
return null;
|
|
11798
11973
|
}
|
|
11799
11974
|
if (process.env.NODE_ENV !== 'production') {
|
|
11800
11975
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11801
11976
|
}
|
|
11802
|
-
const config = typeCheckConfig$
|
|
11977
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
11803
11978
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11804
11979
|
return null;
|
|
11805
11980
|
}
|
|
11806
11981
|
return config;
|
|
11807
11982
|
}
|
|
11808
11983
|
function adapterFragment$1(luvio, config) {
|
|
11809
|
-
createResourceParams$
|
|
11810
|
-
return select$
|
|
11984
|
+
createResourceParams$3(config);
|
|
11985
|
+
return select$2();
|
|
11811
11986
|
}
|
|
11812
11987
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
11813
|
-
const snapshot = ingestSuccess$
|
|
11988
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
11814
11989
|
config,
|
|
11815
|
-
resolve: () => buildNetworkSnapshot$
|
|
11990
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
11816
11991
|
});
|
|
11817
11992
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11818
11993
|
}
|
|
11819
11994
|
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
11820
11995
|
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
11821
11996
|
config,
|
|
11822
|
-
resolve: () => buildNetworkSnapshot$
|
|
11997
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
11823
11998
|
});
|
|
11824
11999
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11825
12000
|
}
|
|
11826
|
-
function buildNetworkSnapshot$
|
|
11827
|
-
const resourceParams = createResourceParams$
|
|
11828
|
-
const request = createResourceRequest$
|
|
12001
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
12002
|
+
const resourceParams = createResourceParams$3(config);
|
|
12003
|
+
const request = createResourceRequest$3(resourceParams);
|
|
11829
12004
|
return luvio.dispatchResourceRequest(request, options)
|
|
11830
12005
|
.then((response) => {
|
|
11831
12006
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
11832
12007
|
const cache = new StoreKeyMap();
|
|
11833
|
-
getResponseCacheKeys$
|
|
12008
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
11834
12009
|
return cache;
|
|
11835
12010
|
});
|
|
11836
12011
|
}, (response) => {
|
|
@@ -11838,23 +12013,23 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
11838
12013
|
});
|
|
11839
12014
|
}
|
|
11840
12015
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
11841
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
12016
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
11842
12017
|
}
|
|
11843
12018
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
11844
12019
|
const { luvio, config } = context;
|
|
11845
12020
|
const selector = {
|
|
11846
|
-
recordId: keyBuilder$
|
|
12021
|
+
recordId: keyBuilder$3(luvio, config),
|
|
11847
12022
|
node: adapterFragment$1(luvio, config),
|
|
11848
12023
|
variables: {},
|
|
11849
12024
|
};
|
|
11850
12025
|
const cacheSnapshot = storeLookup(selector, {
|
|
11851
12026
|
config,
|
|
11852
|
-
resolve: () => buildNetworkSnapshot$
|
|
12027
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
11853
12028
|
});
|
|
11854
12029
|
return cacheSnapshot;
|
|
11855
12030
|
}
|
|
11856
12031
|
const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetric(untrustedConfig, requestContext) {
|
|
11857
|
-
const config = validateAdapterConfig$
|
|
12032
|
+
const config = validateAdapterConfig$3(untrustedConfig, getSemanticSubMetric_ConfigPropertyNames);
|
|
11858
12033
|
// Invalid or incomplete config
|
|
11859
12034
|
if (config === null) {
|
|
11860
12035
|
return null;
|
|
@@ -11863,8 +12038,197 @@ const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring
|
|
|
11863
12038
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
11864
12039
|
};
|
|
11865
12040
|
|
|
12041
|
+
function keyBuilder$2(luvio, params) {
|
|
12042
|
+
return keyBuilder$e(luvio, {
|
|
12043
|
+
name: params.urlParams.subMetricNameOrId
|
|
12044
|
+
});
|
|
12045
|
+
}
|
|
12046
|
+
function getResponseCacheKeys$2(cacheKeyMap, luvio, resourceParams) {
|
|
12047
|
+
const key = keyBuilder$2(luvio, resourceParams);
|
|
12048
|
+
cacheKeyMap.set(key, {
|
|
12049
|
+
namespace: keyPrefix,
|
|
12050
|
+
representationName: RepresentationType$4,
|
|
12051
|
+
mergeable: false
|
|
12052
|
+
});
|
|
12053
|
+
}
|
|
12054
|
+
function evictSuccess(luvio, resourceParams) {
|
|
12055
|
+
const key = keyBuilder$2(luvio, resourceParams);
|
|
12056
|
+
luvio.storeEvict(key);
|
|
12057
|
+
}
|
|
12058
|
+
function createResourceRequest$2(config) {
|
|
12059
|
+
const headers = {};
|
|
12060
|
+
return {
|
|
12061
|
+
baseUri: '/services/data/v62.0',
|
|
12062
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '/goal',
|
|
12063
|
+
method: 'delete',
|
|
12064
|
+
body: null,
|
|
12065
|
+
urlParams: config.urlParams,
|
|
12066
|
+
queryParams: {},
|
|
12067
|
+
headers,
|
|
12068
|
+
priority: 'normal',
|
|
12069
|
+
};
|
|
12070
|
+
}
|
|
12071
|
+
|
|
12072
|
+
const adapterName$2 = 'deleteGoalFromSubMetric';
|
|
12073
|
+
const deleteGoalFromSubMetric_ConfigPropertyMetadata = [
|
|
12074
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12075
|
+
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12076
|
+
];
|
|
12077
|
+
const deleteGoalFromSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12078
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$e(deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12079
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
12080
|
+
const config = {};
|
|
12081
|
+
typeCheckConfig$e(untrustedConfig, config, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12082
|
+
return config;
|
|
12083
|
+
}
|
|
12084
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
12085
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
12086
|
+
return null;
|
|
12087
|
+
}
|
|
12088
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12089
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
12090
|
+
}
|
|
12091
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
12092
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
12093
|
+
return null;
|
|
12094
|
+
}
|
|
12095
|
+
return config;
|
|
12096
|
+
}
|
|
12097
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
12098
|
+
const resourceParams = createResourceParams$2(config);
|
|
12099
|
+
const request = createResourceRequest$2(resourceParams);
|
|
12100
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
12101
|
+
.then(() => {
|
|
12102
|
+
return luvio.handleSuccessResponse(() => {
|
|
12103
|
+
evictSuccess(luvio, resourceParams);
|
|
12104
|
+
return luvio.storeBroadcast();
|
|
12105
|
+
}, () => {
|
|
12106
|
+
const cache = new StoreKeyMap();
|
|
12107
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams);
|
|
12108
|
+
return cache;
|
|
12109
|
+
});
|
|
12110
|
+
}, (response) => {
|
|
12111
|
+
deepFreeze(response);
|
|
12112
|
+
throw response;
|
|
12113
|
+
});
|
|
12114
|
+
}
|
|
12115
|
+
const deleteGoalFromSubMetricAdapterFactory = (luvio) => {
|
|
12116
|
+
return function SemanticAuthoringdeleteGoalFromSubMetric(untrustedConfig) {
|
|
12117
|
+
const config = validateAdapterConfig$2(untrustedConfig, deleteGoalFromSubMetric_ConfigPropertyNames);
|
|
12118
|
+
// Invalid or incomplete config
|
|
12119
|
+
if (config === null) {
|
|
12120
|
+
throw new Error(`Invalid config for "${adapterName$2}"`);
|
|
12121
|
+
}
|
|
12122
|
+
return buildNetworkSnapshot$2(luvio, config);
|
|
12123
|
+
};
|
|
12124
|
+
};
|
|
12125
|
+
|
|
12126
|
+
function select$1(luvio, params) {
|
|
12127
|
+
return select$c();
|
|
12128
|
+
}
|
|
12129
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
12130
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
12131
|
+
}
|
|
12132
|
+
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
12133
|
+
const { body } = response;
|
|
12134
|
+
const key = keyBuilderFromType(luvio, body);
|
|
12135
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
12136
|
+
const snapshot = luvio.storeLookup({
|
|
12137
|
+
recordId: key,
|
|
12138
|
+
node: select$1(),
|
|
12139
|
+
variables: {},
|
|
12140
|
+
});
|
|
12141
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12142
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
12143
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
12144
|
+
}
|
|
12145
|
+
}
|
|
12146
|
+
deepFreeze(snapshot.data);
|
|
12147
|
+
return snapshot;
|
|
12148
|
+
}
|
|
12149
|
+
function createResourceRequest$1(config) {
|
|
12150
|
+
const headers = {};
|
|
12151
|
+
return {
|
|
12152
|
+
baseUri: '/services/data/v62.0',
|
|
12153
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '/goal',
|
|
12154
|
+
method: 'patch',
|
|
12155
|
+
body: config.body,
|
|
12156
|
+
urlParams: config.urlParams,
|
|
12157
|
+
queryParams: {},
|
|
12158
|
+
headers,
|
|
12159
|
+
priority: 'normal',
|
|
12160
|
+
};
|
|
12161
|
+
}
|
|
12162
|
+
|
|
12163
|
+
const adapterName$1 = 'patchSemanticMetricGoal';
|
|
12164
|
+
const patchSemanticMetricGoal_ConfigPropertyMetadata = [
|
|
12165
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12166
|
+
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12167
|
+
generateParamConfigMetadata('date', false, 2 /* Body */, 4 /* Unsupported */),
|
|
12168
|
+
generateParamConfigMetadata('goalType', false, 2 /* Body */, 0 /* String */),
|
|
12169
|
+
generateParamConfigMetadata('value', false, 2 /* Body */, 4 /* Unsupported */),
|
|
12170
|
+
];
|
|
12171
|
+
const patchSemanticMetricGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12172
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$e(patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12173
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
12174
|
+
const config = {};
|
|
12175
|
+
typeCheckConfig$e(untrustedConfig, config, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12176
|
+
const untrustedConfig_date = untrustedConfig.date;
|
|
12177
|
+
const referenceSemanticGoalDateRangeInputRepresentationValidationError = validate$3(untrustedConfig_date);
|
|
12178
|
+
if (referenceSemanticGoalDateRangeInputRepresentationValidationError === null) {
|
|
12179
|
+
config.date = untrustedConfig_date;
|
|
12180
|
+
}
|
|
12181
|
+
const untrustedConfig_value = untrustedConfig.value;
|
|
12182
|
+
const referenceSemanticGoalValueInputRepresentationValidationError = validate$2(untrustedConfig_value);
|
|
12183
|
+
if (referenceSemanticGoalValueInputRepresentationValidationError === null) {
|
|
12184
|
+
config.value = untrustedConfig_value;
|
|
12185
|
+
}
|
|
12186
|
+
return config;
|
|
12187
|
+
}
|
|
12188
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
12189
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
12190
|
+
return null;
|
|
12191
|
+
}
|
|
12192
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12193
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
12194
|
+
}
|
|
12195
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
12196
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
12197
|
+
return null;
|
|
12198
|
+
}
|
|
12199
|
+
return config;
|
|
12200
|
+
}
|
|
12201
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
12202
|
+
const resourceParams = createResourceParams$1(config);
|
|
12203
|
+
const request = createResourceRequest$1(resourceParams);
|
|
12204
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
12205
|
+
.then((response) => {
|
|
12206
|
+
return luvio.handleSuccessResponse(() => {
|
|
12207
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response);
|
|
12208
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
12209
|
+
}, () => {
|
|
12210
|
+
const cache = new StoreKeyMap();
|
|
12211
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
12212
|
+
return cache;
|
|
12213
|
+
});
|
|
12214
|
+
}, (response) => {
|
|
12215
|
+
deepFreeze(response);
|
|
12216
|
+
throw response;
|
|
12217
|
+
});
|
|
12218
|
+
}
|
|
12219
|
+
const patchSemanticMetricGoalAdapterFactory = (luvio) => {
|
|
12220
|
+
return function patchSemanticMetricGoal(untrustedConfig) {
|
|
12221
|
+
const config = validateAdapterConfig$1(untrustedConfig, patchSemanticMetricGoal_ConfigPropertyNames);
|
|
12222
|
+
// Invalid or incomplete config
|
|
12223
|
+
if (config === null) {
|
|
12224
|
+
throw new Error('Invalid config for "patchSemanticMetricGoal"');
|
|
12225
|
+
}
|
|
12226
|
+
return buildNetworkSnapshot$1(luvio, config);
|
|
12227
|
+
};
|
|
12228
|
+
};
|
|
12229
|
+
|
|
11866
12230
|
function select(luvio, params) {
|
|
11867
|
-
return select$
|
|
12231
|
+
return select$5();
|
|
11868
12232
|
}
|
|
11869
12233
|
function keyBuilder$1(luvio, params) {
|
|
11870
12234
|
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
@@ -11914,14 +12278,14 @@ const getSemanticSubMetricsById_ConfigPropertyMetadata = [
|
|
|
11914
12278
|
generateParamConfigMetadata('subMetricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11915
12279
|
];
|
|
11916
12280
|
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11917
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
12281
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$e(getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11918
12282
|
function keyBuilder(luvio, config) {
|
|
11919
12283
|
const resourceParams = createResourceParams(config);
|
|
11920
12284
|
return keyBuilder$1(luvio, resourceParams);
|
|
11921
12285
|
}
|
|
11922
12286
|
function typeCheckConfig(untrustedConfig) {
|
|
11923
12287
|
const config = {};
|
|
11924
|
-
typeCheckConfig$
|
|
12288
|
+
typeCheckConfig$e(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11925
12289
|
return config;
|
|
11926
12290
|
}
|
|
11927
12291
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -11995,4 +12359,4 @@ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuth
|
|
|
11995
12359
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
11996
12360
|
};
|
|
11997
12361
|
|
|
11998
|
-
export { createSemanticModelAdapterFactory, createSemanticSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory, patchSemanticModelAdapterFactory };
|
|
12362
|
+
export { createSemanticModelAdapterFactory, createSemanticSubMetricAdapterFactory, deleteGoalFromSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory, patchSemanticMetricGoalAdapterFactory, patchSemanticModelAdapterFactory };
|