@salesforce/lds-adapters-cdp-semantic-authoring 1.302.0 → 1.303.0

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