@salesforce/lds-adapters-cdp-semantic-authoring 1.308.0 → 1.309.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 (40) hide show
  1. package/dist/es/es2018/cdp-semantic-authoring.js +1705 -837
  2. package/dist/es/es2018/types/src/generated/adapters/getSemanticSubMetricsById.d.ts +27 -0
  3. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
  4. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
  5. package/dist/es/es2018/types/src/generated/resources/deleteSsotSemanticModelsMappedFieldsByMappedFieldNameOrIdAndModelApiNameOrId.d.ts +12 -0
  6. package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsMappedFieldsByMappedFieldNameOrIdAndModelApiNameOrId.d.ts +16 -0
  7. package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsMappedFieldsByModelApiNameOrId.d.ts +15 -0
  8. package/dist/es/es2018/types/src/generated/resources/getSsotSemanticSubMetricsBySubMetricIds.d.ts +15 -0
  9. package/dist/es/es2018/types/src/generated/resources/patchSsotSemanticModelsByModelApiNameOrId.d.ts +2 -0
  10. package/dist/es/es2018/types/src/generated/resources/postSsotSemanticModels.d.ts +2 -0
  11. package/dist/es/es2018/types/src/generated/resources/postSsotSemanticModelsCalculatedDimensionsByModelApiNameOrId.d.ts +0 -1
  12. package/dist/es/es2018/types/src/generated/resources/postSsotSemanticModelsCloneByModelApiNameOrId.d.ts +12 -0
  13. package/dist/es/es2018/types/src/generated/resources/postSsotSemanticModelsDataObjectsDimensionsByDataObjectNameOrIdAndModelApiNameOrId.d.ts +0 -1
  14. package/dist/es/es2018/types/src/generated/resources/postSsotSemanticModelsMappedFieldsByModelApiNameOrId.d.ts +24 -0
  15. package/dist/es/es2018/types/src/generated/resources/putSsotSemanticModelsByModelApiNameOrId.d.ts +2 -0
  16. package/dist/es/es2018/types/src/generated/resources/putSsotSemanticModelsCalculatedDimensionsByCalculatedDimensionNameOrIdAndModelApiNameOrId.d.ts +0 -1
  17. package/dist/es/es2018/types/src/generated/resources/putSsotSemanticModelsCalculatedMeasurementsConvertToDimensionByCalculatedMeasurementNameOrIdAndModelApiNameOrId.d.ts +0 -1
  18. package/dist/es/es2018/types/src/generated/resources/putSsotSemanticModelsDataObjectsDimensionsByDataObjectNameOrIdAndDimensionNameOrIdAndModelApiNameOrId.d.ts +0 -1
  19. package/dist/es/es2018/types/src/generated/resources/putSsotSemanticModelsDataObjectsMeasurementsConvertToDimensionByDataObjectNameOrIdAndMeasurementNameOrIdAndModelApiNameOrId.d.ts +0 -1
  20. package/dist/es/es2018/types/src/generated/resources/putSsotSemanticModelsMappedFieldsByMappedFieldNameOrIdAndModelApiNameOrId.d.ts +25 -0
  21. package/dist/es/es2018/types/src/generated/types/SemanticCalculatedDimensionInputRepresentation.d.ts +1 -4
  22. package/dist/es/es2018/types/src/generated/types/SemanticCalculatedDimensionOutputRepresentation.d.ts +1 -4
  23. package/dist/es/es2018/types/src/generated/types/SemanticCalculatedMeasurementInputRepresentation.d.ts +1 -1
  24. package/dist/es/es2018/types/src/generated/types/SemanticCalculatedMeasurementOutputRepresentation.d.ts +1 -1
  25. package/dist/es/es2018/types/src/generated/types/SemanticDimensionInputRepresentation.d.ts +1 -4
  26. package/dist/es/es2018/types/src/generated/types/SemanticDimensionOutputRepresentation.d.ts +1 -4
  27. package/dist/es/es2018/types/src/generated/types/SemanticMappedFieldCollectionOutputRepresentation.d.ts +38 -0
  28. package/dist/es/es2018/types/src/generated/types/SemanticMeasurementInputRepresentation.d.ts +1 -1
  29. package/dist/es/es2018/types/src/generated/types/SemanticMeasurementOutputRepresentation.d.ts +1 -1
  30. package/dist/es/es2018/types/src/generated/types/SemanticModelInputRepresentation.d.ts +5 -1
  31. package/dist/es/es2018/types/src/generated/types/SemanticModelObjectCoordinateOutputRepresentation.d.ts +4 -1
  32. package/dist/es/es2018/types/src/generated/types/SemanticModelOutputRepresentation.d.ts +10 -1
  33. package/dist/es/es2018/types/src/generated/types/SemanticModelPartialOutputRepresentation.d.ts +4 -1
  34. package/dist/es/es2018/types/src/generated/types/SemanticUnionOutputRepresentation.d.ts +4 -1
  35. package/dist/es/es2018/types/src/generated/types/SemanticValidationPartialInputRepresentation.d.ts +28 -0
  36. package/dist/es/es2018/types/src/generated/types/SemanticValidationPartialOutputRepresentation.d.ts +34 -0
  37. package/package.json +3 -3
  38. package/sfdc/index.js +1606 -727
  39. package/src/raml/api.raml +1021 -902
  40. package/src/raml/luvio.raml +5 -0
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$7, typeCheckConfig as typeCheckConfig$9, StoreKeyMap, createResourceParams as createResourceParams$9 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8, typeCheckConfig as typeCheckConfig$a, StoreKeyMap, createResourceParams as createResourceParams$a } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -92,8 +92,8 @@ function createLink(ref) {
92
92
  };
93
93
  }
94
94
 
95
- const VERSION$o = "3a32d382e7a2268096278aa8e5c6761a";
96
- function validate$t(obj, path = 'SemanticBaseModelOutputRepresentation') {
95
+ const VERSION$t = "3a32d382e7a2268096278aa8e5c6761a";
96
+ function validate$y(obj, path = 'SemanticBaseModelOutputRepresentation') {
97
97
  const v_error = (() => {
98
98
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
99
99
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -113,10 +113,10 @@ function validate$t(obj, path = 'SemanticBaseModelOutputRepresentation') {
113
113
  })();
114
114
  return v_error === undefined ? null : v_error;
115
115
  }
116
- const select$w = function SemanticBaseModelOutputRepresentationSelect() {
116
+ const select$C = function SemanticBaseModelOutputRepresentationSelect() {
117
117
  return {
118
118
  kind: 'Fragment',
119
- version: VERSION$o,
119
+ version: VERSION$t,
120
120
  private: [],
121
121
  selections: [
122
122
  {
@@ -131,7 +131,7 @@ const select$w = function SemanticBaseModelOutputRepresentationSelect() {
131
131
  ]
132
132
  };
133
133
  };
134
- function equals$o(existing, incoming) {
134
+ function equals$t(existing, incoming) {
135
135
  const existing_apiName = existing.apiName;
136
136
  const incoming_apiName = incoming.apiName;
137
137
  if (!(existing_apiName === incoming_apiName)) {
@@ -153,8 +153,8 @@ function equals$o(existing, incoming) {
153
153
  return true;
154
154
  }
155
155
 
156
- const VERSION$n = "420bd0401e6440b145b7f094d87f9d77";
157
- function validate$s(obj, path = 'SemanticModelPartialOutputRepresentation') {
156
+ const VERSION$s = "e01a91fd79dacbb09de6099af9690841";
157
+ function validate$x(obj, path = 'SemanticModelPartialOutputRepresentation') {
158
158
  const v_error = (() => {
159
159
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
160
160
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -187,7 +187,7 @@ function validate$s(obj, path = 'SemanticModelPartialOutputRepresentation') {
187
187
  for (let i = 0; i < obj_baseModels.length; i++) {
188
188
  const obj_baseModels_item = obj_baseModels[i];
189
189
  const path_baseModels_item = path_baseModels + '[' + i + ']';
190
- const referencepath_baseModels_itemValidationError = validate$t(obj_baseModels_item, path_baseModels_item);
190
+ const referencepath_baseModels_itemValidationError = validate$y(obj_baseModels_item, path_baseModels_item);
191
191
  if (referencepath_baseModels_itemValidationError !== null) {
192
192
  let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
193
193
  message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -285,6 +285,34 @@ function validate$s(obj, path = 'SemanticModelPartialOutputRepresentation') {
285
285
  return new TypeError('Expected "string" but received "' + typeof obj_semanticDataObjectsUrl + '" (at "' + path_semanticDataObjectsUrl + '")');
286
286
  }
287
287
  }
288
+ if (obj.semanticGroupingsUrl !== undefined) {
289
+ const obj_semanticGroupingsUrl = obj.semanticGroupingsUrl;
290
+ const path_semanticGroupingsUrl = path + '.semanticGroupingsUrl';
291
+ let obj_semanticGroupingsUrl_union0 = null;
292
+ const obj_semanticGroupingsUrl_union0_error = (() => {
293
+ if (typeof obj_semanticGroupingsUrl !== 'string') {
294
+ return new TypeError('Expected "string" but received "' + typeof obj_semanticGroupingsUrl + '" (at "' + path_semanticGroupingsUrl + '")');
295
+ }
296
+ })();
297
+ if (obj_semanticGroupingsUrl_union0_error != null) {
298
+ obj_semanticGroupingsUrl_union0 = obj_semanticGroupingsUrl_union0_error.message;
299
+ }
300
+ let obj_semanticGroupingsUrl_union1 = null;
301
+ const obj_semanticGroupingsUrl_union1_error = (() => {
302
+ if (obj_semanticGroupingsUrl !== null) {
303
+ return new TypeError('Expected "null" but received "' + typeof obj_semanticGroupingsUrl + '" (at "' + path_semanticGroupingsUrl + '")');
304
+ }
305
+ })();
306
+ if (obj_semanticGroupingsUrl_union1_error != null) {
307
+ obj_semanticGroupingsUrl_union1 = obj_semanticGroupingsUrl_union1_error.message;
308
+ }
309
+ if (obj_semanticGroupingsUrl_union0 && obj_semanticGroupingsUrl_union1) {
310
+ let message = 'Object doesn\'t match union (at "' + path_semanticGroupingsUrl + '")';
311
+ message += '\n' + obj_semanticGroupingsUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
312
+ message += '\n' + obj_semanticGroupingsUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
313
+ return new TypeError(message);
314
+ }
315
+ }
288
316
  if (obj.semanticParametersUrl !== undefined) {
289
317
  const obj_semanticParametersUrl = obj.semanticParametersUrl;
290
318
  const path_semanticParametersUrl = path + '.semanticParametersUrl';
@@ -316,11 +344,11 @@ function validate$s(obj, path = 'SemanticModelPartialOutputRepresentation') {
316
344
  })();
317
345
  return v_error === undefined ? null : v_error;
318
346
  }
319
- const select$v = function SemanticModelPartialOutputRepresentationSelect() {
320
- const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$w();
347
+ const select$B = function SemanticModelPartialOutputRepresentationSelect() {
348
+ const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$C();
321
349
  return {
322
350
  kind: 'Fragment',
323
- version: VERSION$n,
351
+ version: VERSION$s,
324
352
  private: [],
325
353
  selections: [
326
354
  {
@@ -406,6 +434,11 @@ const select$v = function SemanticModelPartialOutputRepresentationSelect() {
406
434
  kind: 'Scalar',
407
435
  required: false
408
436
  },
437
+ {
438
+ name: 'semanticGroupingsUrl',
439
+ kind: 'Scalar',
440
+ required: false
441
+ },
409
442
  {
410
443
  name: 'semanticParametersUrl',
411
444
  kind: 'Scalar',
@@ -429,7 +462,7 @@ const select$v = function SemanticModelPartialOutputRepresentationSelect() {
429
462
  ]
430
463
  };
431
464
  };
432
- function equals$n(existing, incoming) {
465
+ function equals$s(existing, incoming) {
433
466
  const existing_apiName = existing.apiName;
434
467
  const incoming_apiName = incoming.apiName;
435
468
  if (!(existing_apiName === incoming_apiName)) {
@@ -647,7 +680,7 @@ function equals$n(existing, incoming) {
647
680
  return false;
648
681
  }
649
682
  const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
650
- if (!(equals$o(existing_baseModels_item, incoming_baseModels_item))) {
683
+ if (!(equals$t(existing_baseModels_item, incoming_baseModels_item))) {
651
684
  return false;
652
685
  }
653
686
  });
@@ -673,11 +706,24 @@ function equals$n(existing, incoming) {
673
706
  return false;
674
707
  }
675
708
  }
709
+ const existing_semanticGroupingsUrl = existing.semanticGroupingsUrl;
710
+ const incoming_semanticGroupingsUrl = incoming.semanticGroupingsUrl;
711
+ // if at least one of these optionals is defined
712
+ if (existing_semanticGroupingsUrl !== undefined || incoming_semanticGroupingsUrl !== undefined) {
713
+ // if one of these is not defined we know the other is defined and therefore
714
+ // not equal
715
+ if (existing_semanticGroupingsUrl === undefined || incoming_semanticGroupingsUrl === undefined) {
716
+ return false;
717
+ }
718
+ if (!(existing_semanticGroupingsUrl === incoming_semanticGroupingsUrl)) {
719
+ return false;
720
+ }
721
+ }
676
722
  return true;
677
723
  }
678
724
 
679
- const VERSION$m = "198423ec58354256cc7ea6f4661ef669";
680
- function validate$r(obj, path = 'SemanticModelCollectionOutputRepresentation') {
725
+ const VERSION$r = "198423ec58354256cc7ea6f4661ef669";
726
+ function validate$w(obj, path = 'SemanticModelCollectionOutputRepresentation') {
681
727
  const v_error = (() => {
682
728
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
683
729
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -724,7 +770,7 @@ function validate$r(obj, path = 'SemanticModelCollectionOutputRepresentation') {
724
770
  for (let i = 0; i < obj_items.length; i++) {
725
771
  const obj_items_item = obj_items[i];
726
772
  const path_items_item = path_items + '[' + i + ']';
727
- const referencepath_items_itemValidationError = validate$s(obj_items_item, path_items_item);
773
+ const referencepath_items_itemValidationError = validate$x(obj_items_item, path_items_item);
728
774
  if (referencepath_items_itemValidationError !== null) {
729
775
  let message = 'Object doesn\'t match SemanticModelPartialOutputRepresentation (at "' + path_items_item + '")\n';
730
776
  message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -796,15 +842,15 @@ function validate$r(obj, path = 'SemanticModelCollectionOutputRepresentation') {
796
842
  })();
797
843
  return v_error === undefined ? null : v_error;
798
844
  }
799
- const RepresentationType$f = 'SemanticModelCollectionOutputRepresentation';
800
- function normalize$f(input, existing, path, luvio, store, timestamp) {
845
+ const RepresentationType$g = 'SemanticModelCollectionOutputRepresentation';
846
+ function normalize$g(input, existing, path, luvio, store, timestamp) {
801
847
  return input;
802
848
  }
803
- const select$u = function SemanticModelCollectionOutputRepresentationSelect() {
804
- const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$v();
849
+ const select$A = function SemanticModelCollectionOutputRepresentationSelect() {
850
+ const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$B();
805
851
  return {
806
852
  kind: 'Fragment',
807
- version: VERSION$m,
853
+ version: VERSION$r,
808
854
  private: [],
809
855
  selections: [
810
856
  {
@@ -840,7 +886,7 @@ const select$u = function SemanticModelCollectionOutputRepresentationSelect() {
840
886
  ]
841
887
  };
842
888
  };
843
- function equals$m(existing, incoming) {
889
+ function equals$r(existing, incoming) {
844
890
  const existing_count = existing.count;
845
891
  const incoming_count = incoming.count;
846
892
  if (!(existing_count === incoming_count)) {
@@ -874,7 +920,7 @@ function equals$m(existing, incoming) {
874
920
  return false;
875
921
  }
876
922
  const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
877
- if (!(equals$n(existing_items_item, incoming_items_item))) {
923
+ if (!(equals$s(existing_items_item, incoming_items_item))) {
878
924
  return false;
879
925
  }
880
926
  });
@@ -910,44 +956,44 @@ function equals$m(existing, incoming) {
910
956
  }
911
957
  return true;
912
958
  }
913
- const ingest$f = function SemanticModelCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
959
+ const ingest$g = function SemanticModelCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
914
960
  if (process.env.NODE_ENV !== 'production') {
915
- const validateError = validate$r(input);
961
+ const validateError = validate$w(input);
916
962
  if (validateError !== null) {
917
963
  throw validateError;
918
964
  }
919
965
  }
920
966
  const key = path.fullPath;
921
967
  const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
922
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SemanticAuthoring", VERSION$m, RepresentationType$f, equals$m);
968
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SemanticAuthoring", VERSION$r, RepresentationType$g, equals$r);
923
969
  return createLink(key);
924
970
  };
925
- function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
971
+ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
926
972
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
927
973
  const rootKey = fullPathFactory();
928
974
  rootKeySet.set(rootKey, {
929
975
  namespace: keyPrefix,
930
- representationName: RepresentationType$f,
976
+ representationName: RepresentationType$g,
931
977
  mergeable: false
932
978
  });
933
979
  }
934
980
 
935
- function select$t(luvio, params) {
936
- return select$u();
981
+ function select$z(luvio, params) {
982
+ return select$A();
937
983
  }
938
- function keyBuilder$p(luvio, params) {
984
+ function keyBuilder$s(luvio, params) {
939
985
  return keyPrefix + '::SemanticModelCollectionOutputRepresentation:(' + 'app:' + params.queryParams.app + ',' + 'category:' + params.queryParams.category + ',' + 'dataspace:' + params.queryParams.dataspace + ',' + 'label:' + params.queryParams.label + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'sourceCreation:' + params.queryParams.sourceCreation + ',' + 'sourceCreationName:' + params.queryParams.sourceCreationName + ')';
940
986
  }
941
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
942
- getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$p(luvio, resourceParams));
987
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
988
+ getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$s(luvio, resourceParams));
943
989
  }
944
- function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
990
+ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
945
991
  const { body } = response;
946
- const key = keyBuilder$p(luvio, resourceParams);
947
- luvio.storeIngest(key, ingest$f, body);
992
+ const key = keyBuilder$s(luvio, resourceParams);
993
+ luvio.storeIngest(key, ingest$g, body);
948
994
  const snapshot = luvio.storeLookup({
949
995
  recordId: key,
950
- node: select$t(),
996
+ node: select$z(),
951
997
  variables: {},
952
998
  }, snapshotRefresh);
953
999
  if (process.env.NODE_ENV !== 'production') {
@@ -958,13 +1004,13 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
958
1004
  deepFreeze(snapshot.data);
959
1005
  return snapshot;
960
1006
  }
961
- function ingestError$6(luvio, params, error, snapshotRefresh) {
962
- const key = keyBuilder$p(luvio, params);
1007
+ function ingestError$7(luvio, params, error, snapshotRefresh) {
1008
+ const key = keyBuilder$s(luvio, params);
963
1009
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
964
1010
  luvio.storeIngestError(key, errorSnapshot);
965
1011
  return errorSnapshot;
966
1012
  }
967
- function createResourceRequest$8(config) {
1013
+ function createResourceRequest$9(config) {
968
1014
  const headers = {};
969
1015
  return {
970
1016
  baseUri: '/services/data/v62.0',
@@ -978,7 +1024,7 @@ function createResourceRequest$8(config) {
978
1024
  };
979
1025
  }
980
1026
 
981
- const adapterName$8 = 'getSemanticModels';
1027
+ const adapterName$9 = 'getSemanticModels';
982
1028
  const getSemanticModels_ConfigPropertyMetadata = [
983
1029
  generateParamConfigMetadata('app', false, 1 /* QueryParameter */, 0 /* String */),
984
1030
  generateParamConfigMetadata('category', false, 1 /* QueryParameter */, 0 /* String */),
@@ -990,90 +1036,90 @@ const getSemanticModels_ConfigPropertyMetadata = [
990
1036
  generateParamConfigMetadata('sourceCreation', false, 1 /* QueryParameter */, 0 /* String */),
991
1037
  generateParamConfigMetadata('sourceCreationName', false, 1 /* QueryParameter */, 0 /* String */),
992
1038
  ];
993
- const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticModels_ConfigPropertyMetadata);
994
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$9(getSemanticModels_ConfigPropertyMetadata);
995
- function keyBuilder$o(luvio, config) {
996
- const resourceParams = createResourceParams$8(config);
997
- return keyBuilder$p(luvio, resourceParams);
1039
+ const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSemanticModels_ConfigPropertyMetadata);
1040
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$a(getSemanticModels_ConfigPropertyMetadata);
1041
+ function keyBuilder$r(luvio, config) {
1042
+ const resourceParams = createResourceParams$9(config);
1043
+ return keyBuilder$s(luvio, resourceParams);
998
1044
  }
999
- function typeCheckConfig$8(untrustedConfig) {
1045
+ function typeCheckConfig$9(untrustedConfig) {
1000
1046
  const config = {};
1001
- typeCheckConfig$9(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
1047
+ typeCheckConfig$a(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
1002
1048
  return config;
1003
1049
  }
1004
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1050
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
1005
1051
  if (!untrustedIsObject(untrustedConfig)) {
1006
1052
  return null;
1007
1053
  }
1008
1054
  if (process.env.NODE_ENV !== 'production') {
1009
1055
  validateConfig(untrustedConfig, configPropertyNames);
1010
1056
  }
1011
- const config = typeCheckConfig$8(untrustedConfig);
1057
+ const config = typeCheckConfig$9(untrustedConfig);
1012
1058
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1013
1059
  return null;
1014
1060
  }
1015
1061
  return config;
1016
1062
  }
1017
- function adapterFragment$6(luvio, config) {
1018
- createResourceParams$8(config);
1019
- return select$t();
1063
+ function adapterFragment$7(luvio, config) {
1064
+ createResourceParams$9(config);
1065
+ return select$z();
1020
1066
  }
1021
- function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
1022
- const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
1067
+ function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
1068
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
1023
1069
  config,
1024
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
1070
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
1025
1071
  });
1026
1072
  return luvio.storeBroadcast().then(() => snapshot);
1027
1073
  }
1028
- function onFetchResponseError$6(luvio, config, resourceParams, response) {
1029
- const snapshot = ingestError$6(luvio, resourceParams, response, {
1074
+ function onFetchResponseError$7(luvio, config, resourceParams, response) {
1075
+ const snapshot = ingestError$7(luvio, resourceParams, response, {
1030
1076
  config,
1031
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
1077
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
1032
1078
  });
1033
1079
  return luvio.storeBroadcast().then(() => snapshot);
1034
1080
  }
1035
- function buildNetworkSnapshot$8(luvio, config, options) {
1036
- const resourceParams = createResourceParams$8(config);
1037
- const request = createResourceRequest$8(resourceParams);
1081
+ function buildNetworkSnapshot$9(luvio, config, options) {
1082
+ const resourceParams = createResourceParams$9(config);
1083
+ const request = createResourceRequest$9(resourceParams);
1038
1084
  return luvio.dispatchResourceRequest(request, options)
1039
1085
  .then((response) => {
1040
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
1086
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
1041
1087
  const cache = new StoreKeyMap();
1042
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1088
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
1043
1089
  return cache;
1044
1090
  });
1045
1091
  }, (response) => {
1046
- return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
1092
+ return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
1047
1093
  });
1048
1094
  }
1049
- function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
1050
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
1095
+ function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
1096
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
1051
1097
  }
1052
- function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
1098
+ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
1053
1099
  const { luvio, config } = context;
1054
1100
  const selector = {
1055
- recordId: keyBuilder$o(luvio, config),
1056
- node: adapterFragment$6(luvio, config),
1101
+ recordId: keyBuilder$r(luvio, config),
1102
+ node: adapterFragment$7(luvio, config),
1057
1103
  variables: {},
1058
1104
  };
1059
1105
  const cacheSnapshot = storeLookup(selector, {
1060
1106
  config,
1061
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
1107
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
1062
1108
  });
1063
1109
  return cacheSnapshot;
1064
1110
  }
1065
1111
  const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModels(untrustedConfig, requestContext) {
1066
- const config = validateAdapterConfig$8(untrustedConfig, getSemanticModels_ConfigPropertyNames);
1112
+ const config = validateAdapterConfig$9(untrustedConfig, getSemanticModels_ConfigPropertyNames);
1067
1113
  // Invalid or incomplete config
1068
1114
  if (config === null) {
1069
1115
  return null;
1070
1116
  }
1071
1117
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1072
- buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
1118
+ buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
1073
1119
  };
1074
1120
 
1075
- const VERSION$l = "9b5a0e85af6a943c95625e2dfe81ab96";
1076
- function validate$q(obj, path = 'SemanticFilterOutputRepresentation') {
1121
+ const VERSION$q = "9b5a0e85af6a943c95625e2dfe81ab96";
1122
+ function validate$v(obj, path = 'SemanticFilterOutputRepresentation') {
1077
1123
  const v_error = (() => {
1078
1124
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1079
1125
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1102,10 +1148,10 @@ function validate$q(obj, path = 'SemanticFilterOutputRepresentation') {
1102
1148
  })();
1103
1149
  return v_error === undefined ? null : v_error;
1104
1150
  }
1105
- const select$s = function SemanticFilterOutputRepresentationSelect() {
1151
+ const select$y = function SemanticFilterOutputRepresentationSelect() {
1106
1152
  return {
1107
1153
  kind: 'Fragment',
1108
- version: VERSION$l,
1154
+ version: VERSION$q,
1109
1155
  private: [],
1110
1156
  selections: [
1111
1157
  {
@@ -1126,7 +1172,7 @@ const select$s = function SemanticFilterOutputRepresentationSelect() {
1126
1172
  ]
1127
1173
  };
1128
1174
  };
1129
- function equals$l(existing, incoming) {
1175
+ function equals$q(existing, incoming) {
1130
1176
  const existing_fieldName = existing.fieldName;
1131
1177
  const incoming_fieldName = incoming.fieldName;
1132
1178
  // if at least one of these optionals is defined
@@ -1169,8 +1215,8 @@ function equals$l(existing, incoming) {
1169
1215
  return true;
1170
1216
  }
1171
1217
 
1172
- const VERSION$k = "ebb80fb184ae0803a01d296dfd9943fa";
1173
- function validate$p(obj, path = 'SemanticCalculatedDimensionOutputRepresentation') {
1218
+ const VERSION$p = "ff65b61056eb2b2c8408d53df92d147b";
1219
+ function validate$u(obj, path = 'SemanticCalculatedDimensionOutputRepresentation') {
1174
1220
  const v_error = (() => {
1175
1221
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1176
1222
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1248,7 +1294,7 @@ function validate$p(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
1248
1294
  for (let i = 0; i < obj_filters.length; i++) {
1249
1295
  const obj_filters_item = obj_filters[i];
1250
1296
  const path_filters_item = path_filters + '[' + i + ']';
1251
- const referencepath_filters_itemValidationError = validate$q(obj_filters_item, path_filters_item);
1297
+ const referencepath_filters_itemValidationError = validate$v(obj_filters_item, path_filters_item);
1252
1298
  if (referencepath_filters_itemValidationError !== null) {
1253
1299
  let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
1254
1300
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1256,13 +1302,6 @@ function validate$p(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
1256
1302
  }
1257
1303
  }
1258
1304
  }
1259
- if (obj.geoRole !== undefined) {
1260
- const obj_geoRole = obj.geoRole;
1261
- const path_geoRole = path + '.geoRole';
1262
- if (typeof obj_geoRole !== 'string') {
1263
- return new TypeError('Expected "string" but received "' + typeof obj_geoRole + '" (at "' + path_geoRole + '")');
1264
- }
1265
- }
1266
1305
  const obj_id = obj.id;
1267
1306
  const path_id = path + '.id';
1268
1307
  if (typeof obj_id !== 'string') {
@@ -1320,24 +1359,24 @@ function validate$p(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
1320
1359
  })();
1321
1360
  return v_error === undefined ? null : v_error;
1322
1361
  }
1323
- const RepresentationType$e = 'SemanticCalculatedDimensionOutputRepresentation';
1324
- function keyBuilder$n(luvio, config) {
1325
- return keyPrefix + '::' + RepresentationType$e + ':' + config.name;
1362
+ const RepresentationType$f = 'SemanticCalculatedDimensionOutputRepresentation';
1363
+ function keyBuilder$q(luvio, config) {
1364
+ return keyPrefix + '::' + RepresentationType$f + ':' + config.name;
1326
1365
  }
1327
- function keyBuilderFromType$a(luvio, object) {
1366
+ function keyBuilderFromType$b(luvio, object) {
1328
1367
  const keyParams = {
1329
1368
  name: object.id
1330
1369
  };
1331
- return keyBuilder$n(luvio, keyParams);
1370
+ return keyBuilder$q(luvio, keyParams);
1332
1371
  }
1333
- function normalize$e(input, existing, path, luvio, store, timestamp) {
1372
+ function normalize$f(input, existing, path, luvio, store, timestamp) {
1334
1373
  return input;
1335
1374
  }
1336
- const select$r = function SemanticCalculatedDimensionOutputRepresentationSelect() {
1337
- const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$s();
1375
+ const select$x = function SemanticCalculatedDimensionOutputRepresentationSelect() {
1376
+ const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$y();
1338
1377
  return {
1339
1378
  kind: 'Fragment',
1340
- version: VERSION$k,
1379
+ version: VERSION$p,
1341
1380
  private: [],
1342
1381
  selections: [
1343
1382
  {
@@ -1394,11 +1433,6 @@ const select$r = function SemanticCalculatedDimensionOutputRepresentationSelect(
1394
1433
  selections: SemanticFilterOutputRepresentation__selections,
1395
1434
  required: false
1396
1435
  },
1397
- {
1398
- name: 'geoRole',
1399
- kind: 'Scalar',
1400
- required: false
1401
- },
1402
1436
  {
1403
1437
  name: 'id',
1404
1438
  kind: 'Scalar'
@@ -1441,7 +1475,7 @@ const select$r = function SemanticCalculatedDimensionOutputRepresentationSelect(
1441
1475
  ]
1442
1476
  };
1443
1477
  };
1444
- function equals$k(existing, incoming) {
1478
+ function equals$p(existing, incoming) {
1445
1479
  const existing_isVisible = existing.isVisible;
1446
1480
  const incoming_isVisible = incoming.isVisible;
1447
1481
  // if at least one of these optionals is defined
@@ -1561,19 +1595,6 @@ function equals$k(existing, incoming) {
1561
1595
  return false;
1562
1596
  }
1563
1597
  }
1564
- const existing_geoRole = existing.geoRole;
1565
- const incoming_geoRole = incoming.geoRole;
1566
- // if at least one of these optionals is defined
1567
- if (existing_geoRole !== undefined || incoming_geoRole !== undefined) {
1568
- // if one of these is not defined we know the other is defined and therefore
1569
- // not equal
1570
- if (existing_geoRole === undefined || incoming_geoRole === undefined) {
1571
- return false;
1572
- }
1573
- if (!(existing_geoRole === incoming_geoRole)) {
1574
- return false;
1575
- }
1576
- }
1577
1598
  const existing_id = existing.id;
1578
1599
  const incoming_id = incoming.id;
1579
1600
  if (!(existing_id === incoming_id)) {
@@ -1667,7 +1688,7 @@ function equals$k(existing, incoming) {
1667
1688
  return false;
1668
1689
  }
1669
1690
  const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
1670
- if (!(equals$l(existing_filters_item, incoming_filters_item))) {
1691
+ if (!(equals$q(existing_filters_item, incoming_filters_item))) {
1671
1692
  return false;
1672
1693
  }
1673
1694
  });
@@ -1677,30 +1698,30 @@ function equals$k(existing, incoming) {
1677
1698
  }
1678
1699
  return true;
1679
1700
  }
1680
- const ingest$e = function SemanticCalculatedDimensionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1701
+ const ingest$f = function SemanticCalculatedDimensionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1681
1702
  if (process.env.NODE_ENV !== 'production') {
1682
- const validateError = validate$p(input);
1703
+ const validateError = validate$u(input);
1683
1704
  if (validateError !== null) {
1684
1705
  throw validateError;
1685
1706
  }
1686
1707
  }
1687
- const key = keyBuilderFromType$a(luvio, input);
1708
+ const key = keyBuilderFromType$b(luvio, input);
1688
1709
  const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
1689
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SemanticAuthoring", VERSION$k, RepresentationType$e, equals$k);
1710
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SemanticAuthoring", VERSION$p, RepresentationType$f, equals$p);
1690
1711
  return createLink(key);
1691
1712
  };
1692
- function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
1713
+ function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
1693
1714
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1694
- const rootKey = keyBuilderFromType$a(luvio, input);
1715
+ const rootKey = keyBuilderFromType$b(luvio, input);
1695
1716
  rootKeySet.set(rootKey, {
1696
1717
  namespace: keyPrefix,
1697
- representationName: RepresentationType$e,
1718
+ representationName: RepresentationType$f,
1698
1719
  mergeable: false
1699
1720
  });
1700
1721
  }
1701
1722
 
1702
- const VERSION$j = "1941c0559a1eafb8d429d1f9d139b28f";
1703
- function validate$o(obj, path = 'SemanticCalculatedMeasurementOutputRepresentation') {
1723
+ const VERSION$o = "1941c0559a1eafb8d429d1f9d139b28f";
1724
+ function validate$t(obj, path = 'SemanticCalculatedMeasurementOutputRepresentation') {
1704
1725
  const v_error = (() => {
1705
1726
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1706
1727
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1792,7 +1813,7 @@ function validate$o(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
1792
1813
  for (let i = 0; i < obj_filters.length; i++) {
1793
1814
  const obj_filters_item = obj_filters[i];
1794
1815
  const path_filters_item = path_filters + '[' + i + ']';
1795
- const referencepath_filters_itemValidationError = validate$q(obj_filters_item, path_filters_item);
1816
+ const referencepath_filters_itemValidationError = validate$v(obj_filters_item, path_filters_item);
1796
1817
  if (referencepath_filters_itemValidationError !== null) {
1797
1818
  let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
1798
1819
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1878,24 +1899,24 @@ function validate$o(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
1878
1899
  })();
1879
1900
  return v_error === undefined ? null : v_error;
1880
1901
  }
1881
- const RepresentationType$d = 'SemanticCalculatedMeasurementOutputRepresentation';
1882
- function keyBuilder$m(luvio, config) {
1883
- return keyPrefix + '::' + RepresentationType$d + ':' + config.name;
1902
+ const RepresentationType$e = 'SemanticCalculatedMeasurementOutputRepresentation';
1903
+ function keyBuilder$p(luvio, config) {
1904
+ return keyPrefix + '::' + RepresentationType$e + ':' + config.name;
1884
1905
  }
1885
- function keyBuilderFromType$9(luvio, object) {
1906
+ function keyBuilderFromType$a(luvio, object) {
1886
1907
  const keyParams = {
1887
1908
  name: object.id
1888
1909
  };
1889
- return keyBuilder$m(luvio, keyParams);
1910
+ return keyBuilder$p(luvio, keyParams);
1890
1911
  }
1891
- function normalize$d(input, existing, path, luvio, store, timestamp) {
1912
+ function normalize$e(input, existing, path, luvio, store, timestamp) {
1892
1913
  return input;
1893
1914
  }
1894
- const select$q = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
1895
- const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$s();
1915
+ const select$w = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
1916
+ const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$y();
1896
1917
  return {
1897
1918
  kind: 'Fragment',
1898
- version: VERSION$j,
1919
+ version: VERSION$o,
1899
1920
  private: [],
1900
1921
  selections: [
1901
1922
  {
@@ -2019,7 +2040,7 @@ const select$q = function SemanticCalculatedMeasurementOutputRepresentationSelec
2019
2040
  ]
2020
2041
  };
2021
2042
  };
2022
- function equals$j(existing, incoming) {
2043
+ function equals$o(existing, incoming) {
2023
2044
  const existing_isAggregatable = existing.isAggregatable;
2024
2045
  const incoming_isAggregatable = incoming.isAggregatable;
2025
2046
  // if at least one of these optionals is defined
@@ -2297,7 +2318,7 @@ function equals$j(existing, incoming) {
2297
2318
  return false;
2298
2319
  }
2299
2320
  const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
2300
- if (!(equals$l(existing_filters_item, incoming_filters_item))) {
2321
+ if (!(equals$q(existing_filters_item, incoming_filters_item))) {
2301
2322
  return false;
2302
2323
  }
2303
2324
  });
@@ -2307,29 +2328,29 @@ function equals$j(existing, incoming) {
2307
2328
  }
2308
2329
  return true;
2309
2330
  }
2310
- const ingest$d = function SemanticCalculatedMeasurementOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2331
+ const ingest$e = function SemanticCalculatedMeasurementOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2311
2332
  if (process.env.NODE_ENV !== 'production') {
2312
- const validateError = validate$o(input);
2333
+ const validateError = validate$t(input);
2313
2334
  if (validateError !== null) {
2314
2335
  throw validateError;
2315
2336
  }
2316
2337
  }
2317
- const key = keyBuilderFromType$9(luvio, input);
2338
+ const key = keyBuilderFromType$a(luvio, input);
2318
2339
  const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
2319
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SemanticAuthoring", VERSION$j, RepresentationType$d, equals$j);
2340
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SemanticAuthoring", VERSION$o, RepresentationType$e, equals$o);
2320
2341
  return createLink(key);
2321
2342
  };
2322
- function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
2343
+ function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
2323
2344
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2324
- const rootKey = keyBuilderFromType$9(luvio, input);
2345
+ const rootKey = keyBuilderFromType$a(luvio, input);
2325
2346
  rootKeySet.set(rootKey, {
2326
2347
  namespace: keyPrefix,
2327
- representationName: RepresentationType$d,
2348
+ representationName: RepresentationType$e,
2328
2349
  mergeable: false
2329
2350
  });
2330
2351
  }
2331
2352
 
2332
- function validate$n(obj, path = 'SemanticDimensionOutputRepresentation') {
2353
+ function validate$s(obj, path = 'SemanticDimensionOutputRepresentation') {
2333
2354
  const v_error = (() => {
2334
2355
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2335
2356
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2391,13 +2412,6 @@ function validate$n(obj, path = 'SemanticDimensionOutputRepresentation') {
2391
2412
  return new TypeError('Expected "string" but received "' + typeof obj_displayCategory + '" (at "' + path_displayCategory + '")');
2392
2413
  }
2393
2414
  }
2394
- if (obj.geoRole !== undefined) {
2395
- const obj_geoRole = obj.geoRole;
2396
- const path_geoRole = path + '.geoRole';
2397
- if (typeof obj_geoRole !== 'string') {
2398
- return new TypeError('Expected "string" but received "' + typeof obj_geoRole + '" (at "' + path_geoRole + '")');
2399
- }
2400
- }
2401
2415
  const obj_id = obj.id;
2402
2416
  const path_id = path + '.id';
2403
2417
  if (typeof obj_id !== 'string') {
@@ -2449,7 +2463,7 @@ function validate$n(obj, path = 'SemanticDimensionOutputRepresentation') {
2449
2463
  return v_error === undefined ? null : v_error;
2450
2464
  }
2451
2465
 
2452
- function validate$m(obj, path = 'SemanticMeasurementOutputRepresentation') {
2466
+ function validate$r(obj, path = 'SemanticMeasurementOutputRepresentation') {
2453
2467
  const v_error = (() => {
2454
2468
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2455
2469
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2590,8 +2604,8 @@ function validate$m(obj, path = 'SemanticMeasurementOutputRepresentation') {
2590
2604
  return v_error === undefined ? null : v_error;
2591
2605
  }
2592
2606
 
2593
- const VERSION$i = "1dea062ab9ae6d8661840da6e8db32f5";
2594
- function validate$l(obj, path = 'SemanticDataObjectOutputRepresentation') {
2607
+ const VERSION$n = "1dea062ab9ae6d8661840da6e8db32f5";
2608
+ function validate$q(obj, path = 'SemanticDataObjectOutputRepresentation') {
2595
2609
  const v_error = (() => {
2596
2610
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2597
2611
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2655,7 +2669,7 @@ function validate$l(obj, path = 'SemanticDataObjectOutputRepresentation') {
2655
2669
  for (let i = 0; i < obj_filters.length; i++) {
2656
2670
  const obj_filters_item = obj_filters[i];
2657
2671
  const path_filters_item = path_filters + '[' + i + ']';
2658
- const referencepath_filters_itemValidationError = validate$q(obj_filters_item, path_filters_item);
2672
+ const referencepath_filters_itemValidationError = validate$v(obj_filters_item, path_filters_item);
2659
2673
  if (referencepath_filters_itemValidationError !== null) {
2660
2674
  let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
2661
2675
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2705,7 +2719,7 @@ function validate$l(obj, path = 'SemanticDataObjectOutputRepresentation') {
2705
2719
  for (let i = 0; i < obj_semanticDimensions.length; i++) {
2706
2720
  const obj_semanticDimensions_item = obj_semanticDimensions[i];
2707
2721
  const path_semanticDimensions_item = path_semanticDimensions + '[' + i + ']';
2708
- const referencepath_semanticDimensions_itemValidationError = validate$n(obj_semanticDimensions_item, path_semanticDimensions_item);
2722
+ const referencepath_semanticDimensions_itemValidationError = validate$s(obj_semanticDimensions_item, path_semanticDimensions_item);
2709
2723
  if (referencepath_semanticDimensions_itemValidationError !== null) {
2710
2724
  let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimensions_item + '")\n';
2711
2725
  message += referencepath_semanticDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2729,7 +2743,7 @@ function validate$l(obj, path = 'SemanticDataObjectOutputRepresentation') {
2729
2743
  for (let i = 0; i < obj_semanticMeasurements.length; i++) {
2730
2744
  const obj_semanticMeasurements_item = obj_semanticMeasurements[i];
2731
2745
  const path_semanticMeasurements_item = path_semanticMeasurements + '[' + i + ']';
2732
- const referencepath_semanticMeasurements_itemValidationError = validate$m(obj_semanticMeasurements_item, path_semanticMeasurements_item);
2746
+ const referencepath_semanticMeasurements_itemValidationError = validate$r(obj_semanticMeasurements_item, path_semanticMeasurements_item);
2733
2747
  if (referencepath_semanticMeasurements_itemValidationError !== null) {
2734
2748
  let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurements_item + '")\n';
2735
2749
  message += referencepath_semanticMeasurements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2754,160 +2768,876 @@ function validate$l(obj, path = 'SemanticDataObjectOutputRepresentation') {
2754
2768
  })();
2755
2769
  return v_error === undefined ? null : v_error;
2756
2770
  }
2757
- const RepresentationType$c = 'SemanticDataObjectOutputRepresentation';
2758
- function keyBuilder$l(luvio, config) {
2759
- return keyPrefix + '::' + RepresentationType$c + ':' + config.name;
2771
+ const RepresentationType$d = 'SemanticDataObjectOutputRepresentation';
2772
+ function keyBuilder$o(luvio, config) {
2773
+ return keyPrefix + '::' + RepresentationType$d + ':' + config.name;
2760
2774
  }
2761
- function keyBuilderFromType$8(luvio, object) {
2775
+ function keyBuilderFromType$9(luvio, object) {
2762
2776
  const keyParams = {
2763
2777
  name: object.id
2764
2778
  };
2765
- return keyBuilder$l(luvio, keyParams);
2779
+ return keyBuilder$o(luvio, keyParams);
2766
2780
  }
2767
- function normalize$c(input, existing, path, luvio, store, timestamp) {
2781
+ function normalize$d(input, existing, path, luvio, store, timestamp) {
2768
2782
  return input;
2769
2783
  }
2770
- const select$p = function SemanticDataObjectOutputRepresentationSelect() {
2784
+ const select$v = function SemanticDataObjectOutputRepresentationSelect() {
2771
2785
  return {
2772
2786
  kind: 'Fragment',
2773
- version: VERSION$i,
2787
+ version: VERSION$n,
2774
2788
  private: [],
2775
2789
  opaque: true
2776
2790
  };
2777
2791
  };
2778
- function equals$i(existing, incoming) {
2792
+ function equals$n(existing, incoming) {
2779
2793
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2780
2794
  return false;
2781
2795
  }
2782
2796
  return true;
2783
2797
  }
2784
- const ingest$c = function SemanticDataObjectOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2798
+ const ingest$d = function SemanticDataObjectOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2785
2799
  if (process.env.NODE_ENV !== 'production') {
2786
- const validateError = validate$l(input);
2800
+ const validateError = validate$q(input);
2787
2801
  if (validateError !== null) {
2788
2802
  throw validateError;
2789
2803
  }
2790
2804
  }
2791
- const key = keyBuilderFromType$8(luvio, input);
2805
+ const key = keyBuilderFromType$9(luvio, input);
2792
2806
  const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
2793
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SemanticAuthoring", VERSION$i, RepresentationType$c, equals$i);
2807
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SemanticAuthoring", VERSION$n, RepresentationType$d, equals$n);
2794
2808
  return createLink(key);
2795
2809
  };
2796
- function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
2810
+ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
2797
2811
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2798
- const rootKey = keyBuilderFromType$8(luvio, input);
2812
+ const rootKey = keyBuilderFromType$9(luvio, input);
2799
2813
  rootKeySet.set(rootKey, {
2800
2814
  namespace: keyPrefix,
2801
- representationName: RepresentationType$c,
2815
+ representationName: RepresentationType$d,
2802
2816
  mergeable: false
2803
2817
  });
2804
2818
  }
2805
2819
 
2806
- const VERSION$h = "c5144c317ac72b60d580cab803514b8d";
2807
- function validate$k(obj, path = 'SemanticRelationshipCriteriaOutputRepresentation') {
2820
+ const VERSION$m = "ed64ca1a99171ace8b53aff11746cc2a";
2821
+ function validate$p(obj, path = 'BinDimensionConfigurationOutputRepresentation') {
2808
2822
  const v_error = (() => {
2809
2823
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2810
2824
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2811
2825
  }
2812
- if (obj.joinOperator !== undefined) {
2813
- const obj_joinOperator = obj.joinOperator;
2814
- const path_joinOperator = path + '.joinOperator';
2815
- if (typeof obj_joinOperator !== 'string') {
2816
- return new TypeError('Expected "string" but received "' + typeof obj_joinOperator + '" (at "' + path_joinOperator + '")');
2817
- }
2818
- }
2819
- if (obj.leftFieldType !== undefined) {
2820
- const obj_leftFieldType = obj.leftFieldType;
2821
- const path_leftFieldType = path + '.leftFieldType';
2822
- if (typeof obj_leftFieldType !== 'string') {
2823
- return new TypeError('Expected "string" but received "' + typeof obj_leftFieldType + '" (at "' + path_leftFieldType + '")');
2826
+ obj.constantBinSize;
2827
+ })();
2828
+ return v_error === undefined ? null : v_error;
2829
+ }
2830
+ const select$u = function BinDimensionConfigurationOutputRepresentationSelect() {
2831
+ return {
2832
+ kind: 'Fragment',
2833
+ version: VERSION$m,
2834
+ private: [],
2835
+ selections: [
2836
+ {
2837
+ name: 'constantBinSize',
2838
+ kind: 'Scalar'
2824
2839
  }
2840
+ ]
2841
+ };
2842
+ };
2843
+ function equals$m(existing, incoming) {
2844
+ const existing_constantBinSize = existing.constantBinSize;
2845
+ const incoming_constantBinSize = incoming.constantBinSize;
2846
+ if (!(existing_constantBinSize === incoming_constantBinSize)) {
2847
+ return false;
2848
+ }
2849
+ return true;
2850
+ }
2851
+
2852
+ const VERSION$l = "2cdadcd630abb7b981b2d131880a68c0";
2853
+ function validate$o(obj, path = 'GroupDimensionGroupOutputRepresentation') {
2854
+ const v_error = (() => {
2855
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2856
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2825
2857
  }
2826
- if (obj.leftSemanticFieldApiName !== undefined) {
2827
- const obj_leftSemanticFieldApiName = obj.leftSemanticFieldApiName;
2828
- const path_leftSemanticFieldApiName = path + '.leftSemanticFieldApiName';
2829
- if (typeof obj_leftSemanticFieldApiName !== 'string') {
2830
- return new TypeError('Expected "string" but received "' + typeof obj_leftSemanticFieldApiName + '" (at "' + path_leftSemanticFieldApiName + '")');
2831
- }
2858
+ const obj_name = obj.name;
2859
+ const path_name = path + '.name';
2860
+ if (typeof obj_name !== 'string') {
2861
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
2832
2862
  }
2833
- if (obj.rightFieldType !== undefined) {
2834
- const obj_rightFieldType = obj.rightFieldType;
2835
- const path_rightFieldType = path + '.rightFieldType';
2836
- if (typeof obj_rightFieldType !== 'string') {
2837
- return new TypeError('Expected "string" but received "' + typeof obj_rightFieldType + '" (at "' + path_rightFieldType + '")');
2863
+ if (obj.values !== undefined) {
2864
+ const obj_values = obj.values;
2865
+ const path_values = path + '.values';
2866
+ if (!ArrayIsArray(obj_values)) {
2867
+ return new TypeError('Expected "array" but received "' + typeof obj_values + '" (at "' + path_values + '")');
2838
2868
  }
2839
- }
2840
- if (obj.rightSemanticFieldApiName !== undefined) {
2841
- const obj_rightSemanticFieldApiName = obj.rightSemanticFieldApiName;
2842
- const path_rightSemanticFieldApiName = path + '.rightSemanticFieldApiName';
2843
- if (typeof obj_rightSemanticFieldApiName !== 'string') {
2844
- return new TypeError('Expected "string" but received "' + typeof obj_rightSemanticFieldApiName + '" (at "' + path_rightSemanticFieldApiName + '")');
2869
+ for (let i = 0; i < obj_values.length; i++) {
2870
+ const obj_values_item = obj_values[i];
2871
+ const path_values_item = path_values + '[' + i + ']';
2872
+ if (typeof obj_values_item !== 'string') {
2873
+ return new TypeError('Expected "string" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
2874
+ }
2845
2875
  }
2846
2876
  }
2847
2877
  })();
2848
2878
  return v_error === undefined ? null : v_error;
2849
2879
  }
2850
- const select$o = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
2880
+ const select$t = function GroupDimensionGroupOutputRepresentationSelect() {
2851
2881
  return {
2852
2882
  kind: 'Fragment',
2853
- version: VERSION$h,
2883
+ version: VERSION$l,
2854
2884
  private: [],
2855
2885
  selections: [
2856
2886
  {
2857
- name: 'joinOperator',
2858
- kind: 'Scalar',
2859
- required: false
2860
- },
2861
- {
2862
- name: 'leftFieldType',
2863
- kind: 'Scalar',
2864
- required: false
2865
- },
2866
- {
2867
- name: 'leftSemanticFieldApiName',
2868
- kind: 'Scalar',
2869
- required: false
2870
- },
2871
- {
2872
- name: 'rightFieldType',
2873
- kind: 'Scalar',
2874
- required: false
2887
+ name: 'name',
2888
+ kind: 'Scalar'
2875
2889
  },
2876
2890
  {
2877
- name: 'rightSemanticFieldApiName',
2891
+ name: 'values',
2878
2892
  kind: 'Scalar',
2893
+ plural: true,
2879
2894
  required: false
2880
2895
  }
2881
2896
  ]
2882
2897
  };
2883
2898
  };
2884
- function equals$h(existing, incoming) {
2885
- const existing_joinOperator = existing.joinOperator;
2886
- const incoming_joinOperator = incoming.joinOperator;
2899
+ function equals$l(existing, incoming) {
2900
+ const existing_name = existing.name;
2901
+ const incoming_name = incoming.name;
2902
+ if (!(existing_name === incoming_name)) {
2903
+ return false;
2904
+ }
2905
+ const existing_values = existing.values;
2906
+ const incoming_values = incoming.values;
2887
2907
  // if at least one of these optionals is defined
2888
- if (existing_joinOperator !== undefined || incoming_joinOperator !== undefined) {
2908
+ if (existing_values !== undefined || incoming_values !== undefined) {
2889
2909
  // if one of these is not defined we know the other is defined and therefore
2890
2910
  // not equal
2891
- if (existing_joinOperator === undefined || incoming_joinOperator === undefined) {
2911
+ if (existing_values === undefined || incoming_values === undefined) {
2892
2912
  return false;
2893
2913
  }
2894
- if (!(existing_joinOperator === incoming_joinOperator)) {
2914
+ const equals_values_items = equalsArray(existing_values, incoming_values, (existing_values_item, incoming_values_item) => {
2915
+ if (!(existing_values_item === incoming_values_item)) {
2916
+ return false;
2917
+ }
2918
+ });
2919
+ if (equals_values_items === false) {
2895
2920
  return false;
2896
2921
  }
2897
2922
  }
2898
- const existing_leftFieldType = existing.leftFieldType;
2899
- const incoming_leftFieldType = incoming.leftFieldType;
2900
- // if at least one of these optionals is defined
2901
- if (existing_leftFieldType !== undefined || incoming_leftFieldType !== undefined) {
2902
- // if one of these is not defined we know the other is defined and therefore
2903
- // not equal
2904
- if (existing_leftFieldType === undefined || incoming_leftFieldType === undefined) {
2905
- return false;
2923
+ return true;
2924
+ }
2925
+
2926
+ const VERSION$k = "55c60b6207985632192cb4e419822a86";
2927
+ function validate$n(obj, path = 'GroupDimensionConfigurationOutputRepresentation') {
2928
+ const v_error = (() => {
2929
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2930
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2906
2931
  }
2907
- if (!(existing_leftFieldType === incoming_leftFieldType)) {
2908
- return false;
2932
+ if (obj.groups !== undefined) {
2933
+ const obj_groups = obj.groups;
2934
+ const path_groups = path + '.groups';
2935
+ if (!ArrayIsArray(obj_groups)) {
2936
+ return new TypeError('Expected "array" but received "' + typeof obj_groups + '" (at "' + path_groups + '")');
2937
+ }
2938
+ for (let i = 0; i < obj_groups.length; i++) {
2939
+ const obj_groups_item = obj_groups[i];
2940
+ const path_groups_item = path_groups + '[' + i + ']';
2941
+ const referencepath_groups_itemValidationError = validate$o(obj_groups_item, path_groups_item);
2942
+ if (referencepath_groups_itemValidationError !== null) {
2943
+ let message = 'Object doesn\'t match GroupDimensionGroupOutputRepresentation (at "' + path_groups_item + '")\n';
2944
+ message += referencepath_groups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2945
+ return new TypeError(message);
2946
+ }
2947
+ }
2909
2948
  }
2910
- }
2949
+ if (obj.ungroupedValuesGroupName !== undefined) {
2950
+ const obj_ungroupedValuesGroupName = obj.ungroupedValuesGroupName;
2951
+ const path_ungroupedValuesGroupName = path + '.ungroupedValuesGroupName';
2952
+ if (typeof obj_ungroupedValuesGroupName !== 'string') {
2953
+ return new TypeError('Expected "string" but received "' + typeof obj_ungroupedValuesGroupName + '" (at "' + path_ungroupedValuesGroupName + '")');
2954
+ }
2955
+ }
2956
+ })();
2957
+ return v_error === undefined ? null : v_error;
2958
+ }
2959
+ const select$s = function GroupDimensionConfigurationOutputRepresentationSelect() {
2960
+ const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$t();
2961
+ return {
2962
+ kind: 'Fragment',
2963
+ version: VERSION$k,
2964
+ private: [],
2965
+ selections: [
2966
+ {
2967
+ name: 'groups',
2968
+ kind: 'Object',
2969
+ plural: true,
2970
+ selections: GroupDimensionGroupOutputRepresentation__selections,
2971
+ required: false
2972
+ },
2973
+ {
2974
+ name: 'ungroupedValuesGroupName',
2975
+ kind: 'Scalar',
2976
+ required: false
2977
+ }
2978
+ ]
2979
+ };
2980
+ };
2981
+ function equals$k(existing, incoming) {
2982
+ const existing_ungroupedValuesGroupName = existing.ungroupedValuesGroupName;
2983
+ const incoming_ungroupedValuesGroupName = incoming.ungroupedValuesGroupName;
2984
+ // if at least one of these optionals is defined
2985
+ if (existing_ungroupedValuesGroupName !== undefined || incoming_ungroupedValuesGroupName !== undefined) {
2986
+ // if one of these is not defined we know the other is defined and therefore
2987
+ // not equal
2988
+ if (existing_ungroupedValuesGroupName === undefined || incoming_ungroupedValuesGroupName === undefined) {
2989
+ return false;
2990
+ }
2991
+ if (!(existing_ungroupedValuesGroupName === incoming_ungroupedValuesGroupName)) {
2992
+ return false;
2993
+ }
2994
+ }
2995
+ const existing_groups = existing.groups;
2996
+ const incoming_groups = incoming.groups;
2997
+ // if at least one of these optionals is defined
2998
+ if (existing_groups !== undefined || incoming_groups !== undefined) {
2999
+ // if one of these is not defined we know the other is defined and therefore
3000
+ // not equal
3001
+ if (existing_groups === undefined || incoming_groups === undefined) {
3002
+ return false;
3003
+ }
3004
+ const equals_groups_items = equalsArray(existing_groups, incoming_groups, (existing_groups_item, incoming_groups_item) => {
3005
+ if (!(equals$l(existing_groups_item, incoming_groups_item))) {
3006
+ return false;
3007
+ }
3008
+ });
3009
+ if (equals_groups_items === false) {
3010
+ return false;
3011
+ }
3012
+ }
3013
+ return true;
3014
+ }
3015
+
3016
+ const VERSION$j = "50dc390b159159afb1945b9a811c9f80";
3017
+ function validate$m(obj, path = 'SemanticGroupingConfigurationOutputRepresentation') {
3018
+ const v_error = (() => {
3019
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3020
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3021
+ }
3022
+ if (obj.binDimension !== undefined) {
3023
+ const obj_binDimension = obj.binDimension;
3024
+ const path_binDimension = path + '.binDimension';
3025
+ const referencepath_binDimensionValidationError = validate$p(obj_binDimension, path_binDimension);
3026
+ if (referencepath_binDimensionValidationError !== null) {
3027
+ let message = 'Object doesn\'t match BinDimensionConfigurationOutputRepresentation (at "' + path_binDimension + '")\n';
3028
+ message += referencepath_binDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3029
+ return new TypeError(message);
3030
+ }
3031
+ }
3032
+ if (obj.groupDimension !== undefined) {
3033
+ const obj_groupDimension = obj.groupDimension;
3034
+ const path_groupDimension = path + '.groupDimension';
3035
+ const referencepath_groupDimensionValidationError = validate$n(obj_groupDimension, path_groupDimension);
3036
+ if (referencepath_groupDimensionValidationError !== null) {
3037
+ let message = 'Object doesn\'t match GroupDimensionConfigurationOutputRepresentation (at "' + path_groupDimension + '")\n';
3038
+ message += referencepath_groupDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3039
+ return new TypeError(message);
3040
+ }
3041
+ }
3042
+ })();
3043
+ return v_error === undefined ? null : v_error;
3044
+ }
3045
+ const select$r = function SemanticGroupingConfigurationOutputRepresentationSelect() {
3046
+ const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$u();
3047
+ const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$s();
3048
+ return {
3049
+ kind: 'Fragment',
3050
+ version: VERSION$j,
3051
+ private: [],
3052
+ selections: [
3053
+ {
3054
+ name: 'binDimension',
3055
+ kind: 'Object',
3056
+ selections: BinDimensionConfigurationOutputRepresentation__selections,
3057
+ required: false
3058
+ },
3059
+ {
3060
+ name: 'groupDimension',
3061
+ kind: 'Object',
3062
+ selections: GroupDimensionConfigurationOutputRepresentation__selections,
3063
+ required: false
3064
+ }
3065
+ ]
3066
+ };
3067
+ };
3068
+ function equals$j(existing, incoming) {
3069
+ const existing_binDimension = existing.binDimension;
3070
+ const incoming_binDimension = incoming.binDimension;
3071
+ // if at least one of these optionals is defined
3072
+ if (existing_binDimension !== undefined || incoming_binDimension !== undefined) {
3073
+ // if one of these is not defined we know the other is defined and therefore
3074
+ // not equal
3075
+ if (existing_binDimension === undefined || incoming_binDimension === undefined) {
3076
+ return false;
3077
+ }
3078
+ if (!(equals$m(existing_binDimension, incoming_binDimension))) {
3079
+ return false;
3080
+ }
3081
+ }
3082
+ const existing_groupDimension = existing.groupDimension;
3083
+ const incoming_groupDimension = incoming.groupDimension;
3084
+ // if at least one of these optionals is defined
3085
+ if (existing_groupDimension !== undefined || incoming_groupDimension !== undefined) {
3086
+ // if one of these is not defined we know the other is defined and therefore
3087
+ // not equal
3088
+ if (existing_groupDimension === undefined || incoming_groupDimension === undefined) {
3089
+ return false;
3090
+ }
3091
+ if (!(equals$k(existing_groupDimension, incoming_groupDimension))) {
3092
+ return false;
3093
+ }
3094
+ }
3095
+ return true;
3096
+ }
3097
+
3098
+ const VERSION$i = "a2976cd68e629a917463a3b690cf2527";
3099
+ function validate$l(obj, path = 'SemanticTableFieldReferenceOutputRepresentation') {
3100
+ const v_error = (() => {
3101
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3102
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3103
+ }
3104
+ if (obj.fieldApiName !== undefined) {
3105
+ const obj_fieldApiName = obj.fieldApiName;
3106
+ const path_fieldApiName = path + '.fieldApiName';
3107
+ if (typeof obj_fieldApiName !== 'string') {
3108
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
3109
+ }
3110
+ }
3111
+ if (obj.tableApiName !== undefined) {
3112
+ const obj_tableApiName = obj.tableApiName;
3113
+ const path_tableApiName = path + '.tableApiName';
3114
+ if (typeof obj_tableApiName !== 'string') {
3115
+ return new TypeError('Expected "string" but received "' + typeof obj_tableApiName + '" (at "' + path_tableApiName + '")');
3116
+ }
3117
+ }
3118
+ })();
3119
+ return v_error === undefined ? null : v_error;
3120
+ }
3121
+ const select$q = function SemanticTableFieldReferenceOutputRepresentationSelect() {
3122
+ return {
3123
+ kind: 'Fragment',
3124
+ version: VERSION$i,
3125
+ private: [],
3126
+ selections: [
3127
+ {
3128
+ name: 'fieldApiName',
3129
+ kind: 'Scalar',
3130
+ required: false
3131
+ },
3132
+ {
3133
+ name: 'tableApiName',
3134
+ kind: 'Scalar',
3135
+ required: false
3136
+ }
3137
+ ]
3138
+ };
3139
+ };
3140
+ function equals$i(existing, incoming) {
3141
+ const existing_fieldApiName = existing.fieldApiName;
3142
+ const incoming_fieldApiName = incoming.fieldApiName;
3143
+ // if at least one of these optionals is defined
3144
+ if (existing_fieldApiName !== undefined || incoming_fieldApiName !== undefined) {
3145
+ // if one of these is not defined we know the other is defined and therefore
3146
+ // not equal
3147
+ if (existing_fieldApiName === undefined || incoming_fieldApiName === undefined) {
3148
+ return false;
3149
+ }
3150
+ if (!(existing_fieldApiName === incoming_fieldApiName)) {
3151
+ return false;
3152
+ }
3153
+ }
3154
+ const existing_tableApiName = existing.tableApiName;
3155
+ const incoming_tableApiName = incoming.tableApiName;
3156
+ // if at least one of these optionals is defined
3157
+ if (existing_tableApiName !== undefined || incoming_tableApiName !== undefined) {
3158
+ // if one of these is not defined we know the other is defined and therefore
3159
+ // not equal
3160
+ if (existing_tableApiName === undefined || incoming_tableApiName === undefined) {
3161
+ return false;
3162
+ }
3163
+ if (!(existing_tableApiName === incoming_tableApiName)) {
3164
+ return false;
3165
+ }
3166
+ }
3167
+ return true;
3168
+ }
3169
+
3170
+ const VERSION$h = "f49a2cbbe308f6f74cda3e2144fa66cd";
3171
+ function validate$k(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
3172
+ const v_error = (() => {
3173
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3174
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3175
+ }
3176
+ if (obj.calculatedFieldApiName !== undefined) {
3177
+ const obj_calculatedFieldApiName = obj.calculatedFieldApiName;
3178
+ const path_calculatedFieldApiName = path + '.calculatedFieldApiName';
3179
+ if (typeof obj_calculatedFieldApiName !== 'string') {
3180
+ return new TypeError('Expected "string" but received "' + typeof obj_calculatedFieldApiName + '" (at "' + path_calculatedFieldApiName + '")');
3181
+ }
3182
+ }
3183
+ if (obj.tableFieldReference !== undefined) {
3184
+ const obj_tableFieldReference = obj.tableFieldReference;
3185
+ const path_tableFieldReference = path + '.tableFieldReference';
3186
+ const referencepath_tableFieldReferenceValidationError = validate$l(obj_tableFieldReference, path_tableFieldReference);
3187
+ if (referencepath_tableFieldReferenceValidationError !== null) {
3188
+ let message = 'Object doesn\'t match SemanticTableFieldReferenceOutputRepresentation (at "' + path_tableFieldReference + '")\n';
3189
+ message += referencepath_tableFieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3190
+ return new TypeError(message);
3191
+ }
3192
+ }
3193
+ })();
3194
+ return v_error === undefined ? null : v_error;
3195
+ }
3196
+ const select$p = function SemanticFieldReferenceOutputRepresentationSelect() {
3197
+ const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$q();
3198
+ return {
3199
+ kind: 'Fragment',
3200
+ version: VERSION$h,
3201
+ private: [],
3202
+ selections: [
3203
+ {
3204
+ name: 'calculatedFieldApiName',
3205
+ kind: 'Scalar',
3206
+ required: false
3207
+ },
3208
+ {
3209
+ name: 'tableFieldReference',
3210
+ kind: 'Object',
3211
+ selections: SemanticTableFieldReferenceOutputRepresentation__selections,
3212
+ required: false
3213
+ }
3214
+ ]
3215
+ };
3216
+ };
3217
+ function equals$h(existing, incoming) {
3218
+ const existing_calculatedFieldApiName = existing.calculatedFieldApiName;
3219
+ const incoming_calculatedFieldApiName = incoming.calculatedFieldApiName;
3220
+ // if at least one of these optionals is defined
3221
+ if (existing_calculatedFieldApiName !== undefined || incoming_calculatedFieldApiName !== undefined) {
3222
+ // if one of these is not defined we know the other is defined and therefore
3223
+ // not equal
3224
+ if (existing_calculatedFieldApiName === undefined || incoming_calculatedFieldApiName === undefined) {
3225
+ return false;
3226
+ }
3227
+ if (!(existing_calculatedFieldApiName === incoming_calculatedFieldApiName)) {
3228
+ return false;
3229
+ }
3230
+ }
3231
+ const existing_tableFieldReference = existing.tableFieldReference;
3232
+ const incoming_tableFieldReference = incoming.tableFieldReference;
3233
+ // if at least one of these optionals is defined
3234
+ if (existing_tableFieldReference !== undefined || incoming_tableFieldReference !== undefined) {
3235
+ // if one of these is not defined we know the other is defined and therefore
3236
+ // not equal
3237
+ if (existing_tableFieldReference === undefined || incoming_tableFieldReference === undefined) {
3238
+ return false;
3239
+ }
3240
+ if (!(equals$i(existing_tableFieldReference, incoming_tableFieldReference))) {
3241
+ return false;
3242
+ }
3243
+ }
3244
+ return true;
3245
+ }
3246
+
3247
+ const VERSION$g = "79ff229f45e15671c1db4ce569f7bc8c";
3248
+ function validate$j(obj, path = 'SemanticGroupingOutputRepresentation') {
3249
+ const v_error = (() => {
3250
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3251
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3252
+ }
3253
+ const obj_apiName = obj.apiName;
3254
+ const path_apiName = path + '.apiName';
3255
+ if (typeof obj_apiName !== 'string') {
3256
+ return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
3257
+ }
3258
+ if (obj.baseModelApiName !== undefined) {
3259
+ const obj_baseModelApiName = obj.baseModelApiName;
3260
+ const path_baseModelApiName = path + '.baseModelApiName';
3261
+ if (typeof obj_baseModelApiName !== 'string') {
3262
+ return new TypeError('Expected "string" but received "' + typeof obj_baseModelApiName + '" (at "' + path_baseModelApiName + '")');
3263
+ }
3264
+ }
3265
+ const obj_configuration = obj.configuration;
3266
+ const path_configuration = path + '.configuration';
3267
+ const referencepath_configurationValidationError = validate$m(obj_configuration, path_configuration);
3268
+ if (referencepath_configurationValidationError !== null) {
3269
+ let message = 'Object doesn\'t match SemanticGroupingConfigurationOutputRepresentation (at "' + path_configuration + '")\n';
3270
+ message += referencepath_configurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3271
+ return new TypeError(message);
3272
+ }
3273
+ const obj_createdBy = obj.createdBy;
3274
+ const path_createdBy = path + '.createdBy';
3275
+ if (typeof obj_createdBy !== 'string') {
3276
+ return new TypeError('Expected "string" but received "' + typeof obj_createdBy + '" (at "' + path_createdBy + '")');
3277
+ }
3278
+ const obj_createdDate = obj.createdDate;
3279
+ const path_createdDate = path + '.createdDate';
3280
+ if (typeof obj_createdDate !== 'string') {
3281
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
3282
+ }
3283
+ if (obj.description !== undefined) {
3284
+ const obj_description = obj.description;
3285
+ const path_description = path + '.description';
3286
+ if (typeof obj_description !== 'string') {
3287
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
3288
+ }
3289
+ }
3290
+ const obj_fieldReference = obj.fieldReference;
3291
+ const path_fieldReference = path + '.fieldReference';
3292
+ const referencepath_fieldReferenceValidationError = validate$k(obj_fieldReference, path_fieldReference);
3293
+ if (referencepath_fieldReferenceValidationError !== null) {
3294
+ let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_fieldReference + '")\n';
3295
+ message += referencepath_fieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3296
+ return new TypeError(message);
3297
+ }
3298
+ const obj_id = obj.id;
3299
+ const path_id = path + '.id';
3300
+ if (typeof obj_id !== 'string') {
3301
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
3302
+ }
3303
+ if (obj.label !== undefined) {
3304
+ const obj_label = obj.label;
3305
+ const path_label = path + '.label';
3306
+ if (typeof obj_label !== 'string') {
3307
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3308
+ }
3309
+ }
3310
+ if (obj.lastModifiedBy !== undefined) {
3311
+ const obj_lastModifiedBy = obj.lastModifiedBy;
3312
+ const path_lastModifiedBy = path + '.lastModifiedBy';
3313
+ if (typeof obj_lastModifiedBy !== 'string') {
3314
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedBy + '" (at "' + path_lastModifiedBy + '")');
3315
+ }
3316
+ }
3317
+ if (obj.lastModifiedDate !== undefined) {
3318
+ const obj_lastModifiedDate = obj.lastModifiedDate;
3319
+ const path_lastModifiedDate = path + '.lastModifiedDate';
3320
+ if (typeof obj_lastModifiedDate !== 'string') {
3321
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
3322
+ }
3323
+ }
3324
+ const obj_type = obj.type;
3325
+ const path_type = path + '.type';
3326
+ if (typeof obj_type !== 'string') {
3327
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
3328
+ }
3329
+ })();
3330
+ return v_error === undefined ? null : v_error;
3331
+ }
3332
+ const RepresentationType$c = 'SemanticGroupingOutputRepresentation';
3333
+ function keyBuilder$n(luvio, config) {
3334
+ return keyPrefix + '::' + RepresentationType$c + ':' + config.name;
3335
+ }
3336
+ function keyBuilderFromType$8(luvio, object) {
3337
+ const keyParams = {
3338
+ name: object.id
3339
+ };
3340
+ return keyBuilder$n(luvio, keyParams);
3341
+ }
3342
+ function normalize$c(input, existing, path, luvio, store, timestamp) {
3343
+ return input;
3344
+ }
3345
+ const select$o = function SemanticGroupingOutputRepresentationSelect() {
3346
+ const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$r();
3347
+ const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$p();
3348
+ return {
3349
+ kind: 'Fragment',
3350
+ version: VERSION$g,
3351
+ private: [],
3352
+ selections: [
3353
+ {
3354
+ name: 'apiName',
3355
+ kind: 'Scalar'
3356
+ },
3357
+ {
3358
+ name: 'baseModelApiName',
3359
+ kind: 'Scalar',
3360
+ required: false
3361
+ },
3362
+ {
3363
+ name: 'configuration',
3364
+ kind: 'Object',
3365
+ selections: SemanticGroupingConfigurationOutputRepresentation__selections
3366
+ },
3367
+ {
3368
+ name: 'createdBy',
3369
+ kind: 'Scalar'
3370
+ },
3371
+ {
3372
+ name: 'createdDate',
3373
+ kind: 'Scalar'
3374
+ },
3375
+ {
3376
+ name: 'description',
3377
+ kind: 'Scalar',
3378
+ required: false
3379
+ },
3380
+ {
3381
+ name: 'fieldReference',
3382
+ kind: 'Object',
3383
+ selections: SemanticFieldReferenceOutputRepresentation__selections
3384
+ },
3385
+ {
3386
+ name: 'id',
3387
+ kind: 'Scalar'
3388
+ },
3389
+ {
3390
+ name: 'label',
3391
+ kind: 'Scalar',
3392
+ required: false
3393
+ },
3394
+ {
3395
+ name: 'lastModifiedBy',
3396
+ kind: 'Scalar',
3397
+ required: false
3398
+ },
3399
+ {
3400
+ name: 'lastModifiedDate',
3401
+ kind: 'Scalar',
3402
+ required: false
3403
+ },
3404
+ {
3405
+ name: 'type',
3406
+ kind: 'Scalar'
3407
+ }
3408
+ ]
3409
+ };
3410
+ };
3411
+ function equals$g(existing, incoming) {
3412
+ const existing_apiName = existing.apiName;
3413
+ const incoming_apiName = incoming.apiName;
3414
+ if (!(existing_apiName === incoming_apiName)) {
3415
+ return false;
3416
+ }
3417
+ const existing_baseModelApiName = existing.baseModelApiName;
3418
+ const incoming_baseModelApiName = incoming.baseModelApiName;
3419
+ // if at least one of these optionals is defined
3420
+ if (existing_baseModelApiName !== undefined || incoming_baseModelApiName !== undefined) {
3421
+ // if one of these is not defined we know the other is defined and therefore
3422
+ // not equal
3423
+ if (existing_baseModelApiName === undefined || incoming_baseModelApiName === undefined) {
3424
+ return false;
3425
+ }
3426
+ if (!(existing_baseModelApiName === incoming_baseModelApiName)) {
3427
+ return false;
3428
+ }
3429
+ }
3430
+ const existing_createdBy = existing.createdBy;
3431
+ const incoming_createdBy = incoming.createdBy;
3432
+ if (!(existing_createdBy === incoming_createdBy)) {
3433
+ return false;
3434
+ }
3435
+ const existing_createdDate = existing.createdDate;
3436
+ const incoming_createdDate = incoming.createdDate;
3437
+ if (!(existing_createdDate === incoming_createdDate)) {
3438
+ return false;
3439
+ }
3440
+ const existing_description = existing.description;
3441
+ const incoming_description = incoming.description;
3442
+ // if at least one of these optionals is defined
3443
+ if (existing_description !== undefined || incoming_description !== undefined) {
3444
+ // if one of these is not defined we know the other is defined and therefore
3445
+ // not equal
3446
+ if (existing_description === undefined || incoming_description === undefined) {
3447
+ return false;
3448
+ }
3449
+ if (!(existing_description === incoming_description)) {
3450
+ return false;
3451
+ }
3452
+ }
3453
+ const existing_id = existing.id;
3454
+ const incoming_id = incoming.id;
3455
+ if (!(existing_id === incoming_id)) {
3456
+ return false;
3457
+ }
3458
+ const existing_label = existing.label;
3459
+ const incoming_label = incoming.label;
3460
+ // if at least one of these optionals is defined
3461
+ if (existing_label !== undefined || incoming_label !== undefined) {
3462
+ // if one of these is not defined we know the other is defined and therefore
3463
+ // not equal
3464
+ if (existing_label === undefined || incoming_label === undefined) {
3465
+ return false;
3466
+ }
3467
+ if (!(existing_label === incoming_label)) {
3468
+ return false;
3469
+ }
3470
+ }
3471
+ const existing_lastModifiedBy = existing.lastModifiedBy;
3472
+ const incoming_lastModifiedBy = incoming.lastModifiedBy;
3473
+ // if at least one of these optionals is defined
3474
+ if (existing_lastModifiedBy !== undefined || incoming_lastModifiedBy !== undefined) {
3475
+ // if one of these is not defined we know the other is defined and therefore
3476
+ // not equal
3477
+ if (existing_lastModifiedBy === undefined || incoming_lastModifiedBy === undefined) {
3478
+ return false;
3479
+ }
3480
+ if (!(existing_lastModifiedBy === incoming_lastModifiedBy)) {
3481
+ return false;
3482
+ }
3483
+ }
3484
+ const existing_lastModifiedDate = existing.lastModifiedDate;
3485
+ const incoming_lastModifiedDate = incoming.lastModifiedDate;
3486
+ // if at least one of these optionals is defined
3487
+ if (existing_lastModifiedDate !== undefined || incoming_lastModifiedDate !== undefined) {
3488
+ // if one of these is not defined we know the other is defined and therefore
3489
+ // not equal
3490
+ if (existing_lastModifiedDate === undefined || incoming_lastModifiedDate === undefined) {
3491
+ return false;
3492
+ }
3493
+ if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
3494
+ return false;
3495
+ }
3496
+ }
3497
+ const existing_type = existing.type;
3498
+ const incoming_type = incoming.type;
3499
+ if (!(existing_type === incoming_type)) {
3500
+ return false;
3501
+ }
3502
+ const existing_configuration = existing.configuration;
3503
+ const incoming_configuration = incoming.configuration;
3504
+ if (!(equals$j(existing_configuration, incoming_configuration))) {
3505
+ return false;
3506
+ }
3507
+ const existing_fieldReference = existing.fieldReference;
3508
+ const incoming_fieldReference = incoming.fieldReference;
3509
+ if (!(equals$h(existing_fieldReference, incoming_fieldReference))) {
3510
+ return false;
3511
+ }
3512
+ return true;
3513
+ }
3514
+ const ingest$c = function SemanticGroupingOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3515
+ if (process.env.NODE_ENV !== 'production') {
3516
+ const validateError = validate$j(input);
3517
+ if (validateError !== null) {
3518
+ throw validateError;
3519
+ }
3520
+ }
3521
+ const key = keyBuilderFromType$8(luvio, input);
3522
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
3523
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SemanticAuthoring", VERSION$g, RepresentationType$c, equals$g);
3524
+ return createLink(key);
3525
+ };
3526
+ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
3527
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3528
+ const rootKey = keyBuilderFromType$8(luvio, input);
3529
+ rootKeySet.set(rootKey, {
3530
+ namespace: keyPrefix,
3531
+ representationName: RepresentationType$c,
3532
+ mergeable: false
3533
+ });
3534
+ }
3535
+
3536
+ const VERSION$f = "c5144c317ac72b60d580cab803514b8d";
3537
+ function validate$i(obj, path = 'SemanticRelationshipCriteriaOutputRepresentation') {
3538
+ const v_error = (() => {
3539
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3540
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3541
+ }
3542
+ if (obj.joinOperator !== undefined) {
3543
+ const obj_joinOperator = obj.joinOperator;
3544
+ const path_joinOperator = path + '.joinOperator';
3545
+ if (typeof obj_joinOperator !== 'string') {
3546
+ return new TypeError('Expected "string" but received "' + typeof obj_joinOperator + '" (at "' + path_joinOperator + '")');
3547
+ }
3548
+ }
3549
+ if (obj.leftFieldType !== undefined) {
3550
+ const obj_leftFieldType = obj.leftFieldType;
3551
+ const path_leftFieldType = path + '.leftFieldType';
3552
+ if (typeof obj_leftFieldType !== 'string') {
3553
+ return new TypeError('Expected "string" but received "' + typeof obj_leftFieldType + '" (at "' + path_leftFieldType + '")');
3554
+ }
3555
+ }
3556
+ if (obj.leftSemanticFieldApiName !== undefined) {
3557
+ const obj_leftSemanticFieldApiName = obj.leftSemanticFieldApiName;
3558
+ const path_leftSemanticFieldApiName = path + '.leftSemanticFieldApiName';
3559
+ if (typeof obj_leftSemanticFieldApiName !== 'string') {
3560
+ return new TypeError('Expected "string" but received "' + typeof obj_leftSemanticFieldApiName + '" (at "' + path_leftSemanticFieldApiName + '")');
3561
+ }
3562
+ }
3563
+ if (obj.rightFieldType !== undefined) {
3564
+ const obj_rightFieldType = obj.rightFieldType;
3565
+ const path_rightFieldType = path + '.rightFieldType';
3566
+ if (typeof obj_rightFieldType !== 'string') {
3567
+ return new TypeError('Expected "string" but received "' + typeof obj_rightFieldType + '" (at "' + path_rightFieldType + '")');
3568
+ }
3569
+ }
3570
+ if (obj.rightSemanticFieldApiName !== undefined) {
3571
+ const obj_rightSemanticFieldApiName = obj.rightSemanticFieldApiName;
3572
+ const path_rightSemanticFieldApiName = path + '.rightSemanticFieldApiName';
3573
+ if (typeof obj_rightSemanticFieldApiName !== 'string') {
3574
+ return new TypeError('Expected "string" but received "' + typeof obj_rightSemanticFieldApiName + '" (at "' + path_rightSemanticFieldApiName + '")');
3575
+ }
3576
+ }
3577
+ })();
3578
+ return v_error === undefined ? null : v_error;
3579
+ }
3580
+ const select$n = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
3581
+ return {
3582
+ kind: 'Fragment',
3583
+ version: VERSION$f,
3584
+ private: [],
3585
+ selections: [
3586
+ {
3587
+ name: 'joinOperator',
3588
+ kind: 'Scalar',
3589
+ required: false
3590
+ },
3591
+ {
3592
+ name: 'leftFieldType',
3593
+ kind: 'Scalar',
3594
+ required: false
3595
+ },
3596
+ {
3597
+ name: 'leftSemanticFieldApiName',
3598
+ kind: 'Scalar',
3599
+ required: false
3600
+ },
3601
+ {
3602
+ name: 'rightFieldType',
3603
+ kind: 'Scalar',
3604
+ required: false
3605
+ },
3606
+ {
3607
+ name: 'rightSemanticFieldApiName',
3608
+ kind: 'Scalar',
3609
+ required: false
3610
+ }
3611
+ ]
3612
+ };
3613
+ };
3614
+ function equals$f(existing, incoming) {
3615
+ const existing_joinOperator = existing.joinOperator;
3616
+ const incoming_joinOperator = incoming.joinOperator;
3617
+ // if at least one of these optionals is defined
3618
+ if (existing_joinOperator !== undefined || incoming_joinOperator !== undefined) {
3619
+ // if one of these is not defined we know the other is defined and therefore
3620
+ // not equal
3621
+ if (existing_joinOperator === undefined || incoming_joinOperator === undefined) {
3622
+ return false;
3623
+ }
3624
+ if (!(existing_joinOperator === incoming_joinOperator)) {
3625
+ return false;
3626
+ }
3627
+ }
3628
+ const existing_leftFieldType = existing.leftFieldType;
3629
+ const incoming_leftFieldType = incoming.leftFieldType;
3630
+ // if at least one of these optionals is defined
3631
+ if (existing_leftFieldType !== undefined || incoming_leftFieldType !== undefined) {
3632
+ // if one of these is not defined we know the other is defined and therefore
3633
+ // not equal
3634
+ if (existing_leftFieldType === undefined || incoming_leftFieldType === undefined) {
3635
+ return false;
3636
+ }
3637
+ if (!(existing_leftFieldType === incoming_leftFieldType)) {
3638
+ return false;
3639
+ }
3640
+ }
2911
3641
  const existing_leftSemanticFieldApiName = existing.leftSemanticFieldApiName;
2912
3642
  const incoming_leftSemanticFieldApiName = incoming.leftSemanticFieldApiName;
2913
3643
  // if at least one of these optionals is defined
@@ -2950,8 +3680,8 @@ function equals$h(existing, incoming) {
2950
3680
  return true;
2951
3681
  }
2952
3682
 
2953
- const VERSION$g = "126676ee704fc98f17b1aa33fb3ec5e3";
2954
- function validate$j(obj, path = 'SemanticRelationshipOutputRepresentation') {
3683
+ const VERSION$e = "126676ee704fc98f17b1aa33fb3ec5e3";
3684
+ function validate$h(obj, path = 'SemanticRelationshipOutputRepresentation') {
2955
3685
  const v_error = (() => {
2956
3686
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2957
3687
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2994,7 +3724,7 @@ function validate$j(obj, path = 'SemanticRelationshipOutputRepresentation') {
2994
3724
  for (let i = 0; i < obj_criteria.length; i++) {
2995
3725
  const obj_criteria_item = obj_criteria[i];
2996
3726
  const path_criteria_item = path_criteria + '[' + i + ']';
2997
- const referencepath_criteria_itemValidationError = validate$k(obj_criteria_item, path_criteria_item);
3727
+ const referencepath_criteria_itemValidationError = validate$i(obj_criteria_item, path_criteria_item);
2998
3728
  if (referencepath_criteria_itemValidationError !== null) {
2999
3729
  let message = 'Object doesn\'t match SemanticRelationshipCriteriaOutputRepresentation (at "' + path_criteria_item + '")\n';
3000
3730
  message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3074,23 +3804,23 @@ function validate$j(obj, path = 'SemanticRelationshipOutputRepresentation') {
3074
3804
  return v_error === undefined ? null : v_error;
3075
3805
  }
3076
3806
  const RepresentationType$b = 'SemanticRelationshipOutputRepresentation';
3077
- function keyBuilder$k(luvio, config) {
3807
+ function keyBuilder$m(luvio, config) {
3078
3808
  return keyPrefix + '::' + RepresentationType$b + ':' + config.name;
3079
3809
  }
3080
3810
  function keyBuilderFromType$7(luvio, object) {
3081
3811
  const keyParams = {
3082
3812
  name: object.id
3083
3813
  };
3084
- return keyBuilder$k(luvio, keyParams);
3814
+ return keyBuilder$m(luvio, keyParams);
3085
3815
  }
3086
3816
  function normalize$b(input, existing, path, luvio, store, timestamp) {
3087
3817
  return input;
3088
3818
  }
3089
- const select$n = function SemanticRelationshipOutputRepresentationSelect() {
3090
- const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$o();
3819
+ const select$m = function SemanticRelationshipOutputRepresentationSelect() {
3820
+ const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$n();
3091
3821
  return {
3092
3822
  kind: 'Fragment',
3093
- version: VERSION$g,
3823
+ version: VERSION$e,
3094
3824
  private: [],
3095
3825
  selections: [
3096
3826
  {
@@ -3174,7 +3904,7 @@ const select$n = function SemanticRelationshipOutputRepresentationSelect() {
3174
3904
  ]
3175
3905
  };
3176
3906
  };
3177
- function equals$g(existing, incoming) {
3907
+ function equals$e(existing, incoming) {
3178
3908
  const existing_isEnabled = existing.isEnabled;
3179
3909
  const incoming_isEnabled = incoming.isEnabled;
3180
3910
  // if at least one of these optionals is defined
@@ -3317,143 +4047,71 @@ function equals$g(existing, incoming) {
3317
4047
  // if at least one of these optionals is defined
3318
4048
  if (existing_logicalViewId !== undefined || incoming_logicalViewId !== undefined) {
3319
4049
  // if one of these is not defined we know the other is defined and therefore
3320
- // not equal
3321
- if (existing_logicalViewId === undefined || incoming_logicalViewId === undefined) {
3322
- return false;
3323
- }
3324
- if (!(existing_logicalViewId === incoming_logicalViewId)) {
3325
- return false;
3326
- }
3327
- }
3328
- const existing_rightSemanticDefinitionApiName = existing.rightSemanticDefinitionApiName;
3329
- const incoming_rightSemanticDefinitionApiName = incoming.rightSemanticDefinitionApiName;
3330
- // if at least one of these optionals is defined
3331
- if (existing_rightSemanticDefinitionApiName !== undefined || incoming_rightSemanticDefinitionApiName !== undefined) {
3332
- // if one of these is not defined we know the other is defined and therefore
3333
- // not equal
3334
- if (existing_rightSemanticDefinitionApiName === undefined || incoming_rightSemanticDefinitionApiName === undefined) {
3335
- return false;
3336
- }
3337
- if (!(existing_rightSemanticDefinitionApiName === incoming_rightSemanticDefinitionApiName)) {
3338
- return false;
3339
- }
3340
- }
3341
- const existing_criteria = existing.criteria;
3342
- const incoming_criteria = incoming.criteria;
3343
- // if at least one of these optionals is defined
3344
- if (existing_criteria !== undefined || incoming_criteria !== undefined) {
3345
- // if one of these is not defined we know the other is defined and therefore
3346
- // not equal
3347
- if (existing_criteria === undefined || incoming_criteria === undefined) {
3348
- return false;
3349
- }
3350
- const equals_criteria_items = equalsArray(existing_criteria, incoming_criteria, (existing_criteria_item, incoming_criteria_item) => {
3351
- if (!(equals$h(existing_criteria_item, incoming_criteria_item))) {
3352
- return false;
3353
- }
3354
- });
3355
- if (equals_criteria_items === false) {
3356
- return false;
3357
- }
3358
- }
3359
- return true;
3360
- }
3361
- const ingest$b = function SemanticRelationshipOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3362
- if (process.env.NODE_ENV !== 'production') {
3363
- const validateError = validate$j(input);
3364
- if (validateError !== null) {
3365
- throw validateError;
3366
- }
3367
- }
3368
- const key = keyBuilderFromType$7(luvio, input);
3369
- const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
3370
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SemanticAuthoring", VERSION$g, RepresentationType$b, equals$g);
3371
- return createLink(key);
3372
- };
3373
- function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
3374
- // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3375
- const rootKey = keyBuilderFromType$7(luvio, input);
3376
- rootKeySet.set(rootKey, {
3377
- namespace: keyPrefix,
3378
- representationName: RepresentationType$b,
3379
- mergeable: false
3380
- });
3381
- }
3382
-
3383
- const VERSION$f = "a2976cd68e629a917463a3b690cf2527";
3384
- function validate$i(obj, path = 'SemanticTableFieldReferenceOutputRepresentation') {
3385
- const v_error = (() => {
3386
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3387
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3388
- }
3389
- if (obj.fieldApiName !== undefined) {
3390
- const obj_fieldApiName = obj.fieldApiName;
3391
- const path_fieldApiName = path + '.fieldApiName';
3392
- if (typeof obj_fieldApiName !== 'string') {
3393
- return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
3394
- }
3395
- }
3396
- if (obj.tableApiName !== undefined) {
3397
- const obj_tableApiName = obj.tableApiName;
3398
- const path_tableApiName = path + '.tableApiName';
3399
- if (typeof obj_tableApiName !== 'string') {
3400
- return new TypeError('Expected "string" but received "' + typeof obj_tableApiName + '" (at "' + path_tableApiName + '")');
3401
- }
3402
- }
3403
- })();
3404
- return v_error === undefined ? null : v_error;
3405
- }
3406
- const select$m = function SemanticTableFieldReferenceOutputRepresentationSelect() {
3407
- return {
3408
- kind: 'Fragment',
3409
- version: VERSION$f,
3410
- private: [],
3411
- selections: [
3412
- {
3413
- name: 'fieldApiName',
3414
- kind: 'Scalar',
3415
- required: false
3416
- },
3417
- {
3418
- name: 'tableApiName',
3419
- kind: 'Scalar',
3420
- required: false
3421
- }
3422
- ]
3423
- };
3424
- };
3425
- function equals$f(existing, incoming) {
3426
- const existing_fieldApiName = existing.fieldApiName;
3427
- const incoming_fieldApiName = incoming.fieldApiName;
4050
+ // not equal
4051
+ if (existing_logicalViewId === undefined || incoming_logicalViewId === undefined) {
4052
+ return false;
4053
+ }
4054
+ if (!(existing_logicalViewId === incoming_logicalViewId)) {
4055
+ return false;
4056
+ }
4057
+ }
4058
+ const existing_rightSemanticDefinitionApiName = existing.rightSemanticDefinitionApiName;
4059
+ const incoming_rightSemanticDefinitionApiName = incoming.rightSemanticDefinitionApiName;
3428
4060
  // if at least one of these optionals is defined
3429
- if (existing_fieldApiName !== undefined || incoming_fieldApiName !== undefined) {
4061
+ if (existing_rightSemanticDefinitionApiName !== undefined || incoming_rightSemanticDefinitionApiName !== undefined) {
3430
4062
  // if one of these is not defined we know the other is defined and therefore
3431
4063
  // not equal
3432
- if (existing_fieldApiName === undefined || incoming_fieldApiName === undefined) {
4064
+ if (existing_rightSemanticDefinitionApiName === undefined || incoming_rightSemanticDefinitionApiName === undefined) {
3433
4065
  return false;
3434
4066
  }
3435
- if (!(existing_fieldApiName === incoming_fieldApiName)) {
4067
+ if (!(existing_rightSemanticDefinitionApiName === incoming_rightSemanticDefinitionApiName)) {
3436
4068
  return false;
3437
4069
  }
3438
4070
  }
3439
- const existing_tableApiName = existing.tableApiName;
3440
- const incoming_tableApiName = incoming.tableApiName;
4071
+ const existing_criteria = existing.criteria;
4072
+ const incoming_criteria = incoming.criteria;
3441
4073
  // if at least one of these optionals is defined
3442
- if (existing_tableApiName !== undefined || incoming_tableApiName !== undefined) {
4074
+ if (existing_criteria !== undefined || incoming_criteria !== undefined) {
3443
4075
  // if one of these is not defined we know the other is defined and therefore
3444
4076
  // not equal
3445
- if (existing_tableApiName === undefined || incoming_tableApiName === undefined) {
4077
+ if (existing_criteria === undefined || incoming_criteria === undefined) {
3446
4078
  return false;
3447
4079
  }
3448
- if (!(existing_tableApiName === incoming_tableApiName)) {
4080
+ const equals_criteria_items = equalsArray(existing_criteria, incoming_criteria, (existing_criteria_item, incoming_criteria_item) => {
4081
+ if (!(equals$f(existing_criteria_item, incoming_criteria_item))) {
4082
+ return false;
4083
+ }
4084
+ });
4085
+ if (equals_criteria_items === false) {
3449
4086
  return false;
3450
4087
  }
3451
4088
  }
3452
4089
  return true;
3453
4090
  }
4091
+ const ingest$b = function SemanticRelationshipOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4092
+ if (process.env.NODE_ENV !== 'production') {
4093
+ const validateError = validate$h(input);
4094
+ if (validateError !== null) {
4095
+ throw validateError;
4096
+ }
4097
+ }
4098
+ const key = keyBuilderFromType$7(luvio, input);
4099
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
4100
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SemanticAuthoring", VERSION$e, RepresentationType$b, equals$e);
4101
+ return createLink(key);
4102
+ };
4103
+ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
4104
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4105
+ const rootKey = keyBuilderFromType$7(luvio, input);
4106
+ rootKeySet.set(rootKey, {
4107
+ namespace: keyPrefix,
4108
+ representationName: RepresentationType$b,
4109
+ mergeable: false
4110
+ });
4111
+ }
3454
4112
 
3455
- const VERSION$e = "bc4b5bb87acebe62d6fb1a20acda10bb";
3456
- function validate$h(obj, path = 'SemanticMappedFieldOutputRepresentation') {
4113
+ const VERSION$d = "bc4b5bb87acebe62d6fb1a20acda10bb";
4114
+ function validate$g(obj, path = 'SemanticMappedFieldOutputRepresentation') {
3457
4115
  const v_error = (() => {
3458
4116
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3459
4117
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3496,7 +4154,7 @@ function validate$h(obj, path = 'SemanticMappedFieldOutputRepresentation') {
3496
4154
  for (let i = 0; i < obj_fields.length; i++) {
3497
4155
  const obj_fields_item = obj_fields[i];
3498
4156
  const path_fields_item = path_fields + '[' + i + ']';
3499
- const referencepath_fields_itemValidationError = validate$i(obj_fields_item, path_fields_item);
4157
+ const referencepath_fields_itemValidationError = validate$l(obj_fields_item, path_fields_item);
3500
4158
  if (referencepath_fields_itemValidationError !== null) {
3501
4159
  let message = 'Object doesn\'t match SemanticTableFieldReferenceOutputRepresentation (at "' + path_fields_item + '")\n';
3502
4160
  message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3540,7 +4198,7 @@ function validate$h(obj, path = 'SemanticMappedFieldOutputRepresentation') {
3540
4198
  if (obj.semanticDimension !== undefined) {
3541
4199
  const obj_semanticDimension = obj.semanticDimension;
3542
4200
  const path_semanticDimension = path + '.semanticDimension';
3543
- const referencepath_semanticDimensionValidationError = validate$n(obj_semanticDimension, path_semanticDimension);
4201
+ const referencepath_semanticDimensionValidationError = validate$s(obj_semanticDimension, path_semanticDimension);
3544
4202
  if (referencepath_semanticDimensionValidationError !== null) {
3545
4203
  let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimension + '")\n';
3546
4204
  message += referencepath_semanticDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3550,7 +4208,7 @@ function validate$h(obj, path = 'SemanticMappedFieldOutputRepresentation') {
3550
4208
  if (obj.semanticMeasurement !== undefined) {
3551
4209
  const obj_semanticMeasurement = obj.semanticMeasurement;
3552
4210
  const path_semanticMeasurement = path + '.semanticMeasurement';
3553
- const referencepath_semanticMeasurementValidationError = validate$m(obj_semanticMeasurement, path_semanticMeasurement);
4211
+ const referencepath_semanticMeasurementValidationError = validate$r(obj_semanticMeasurement, path_semanticMeasurement);
3554
4212
  if (referencepath_semanticMeasurementValidationError !== null) {
3555
4213
  let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurement + '")\n';
3556
4214
  message += referencepath_semanticMeasurementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3561,14 +4219,14 @@ function validate$h(obj, path = 'SemanticMappedFieldOutputRepresentation') {
3561
4219
  return v_error === undefined ? null : v_error;
3562
4220
  }
3563
4221
  const RepresentationType$a = 'SemanticMappedFieldOutputRepresentation';
3564
- function keyBuilder$j(luvio, config) {
4222
+ function keyBuilder$l(luvio, config) {
3565
4223
  return keyPrefix + '::' + RepresentationType$a + ':' + config.name;
3566
4224
  }
3567
4225
  function keyBuilderFromType$6(luvio, object) {
3568
4226
  const keyParams = {
3569
4227
  name: object.id
3570
4228
  };
3571
- return keyBuilder$j(luvio, keyParams);
4229
+ return keyBuilder$l(luvio, keyParams);
3572
4230
  }
3573
4231
  function normalize$a(input, existing, path, luvio, store, timestamp) {
3574
4232
  return input;
@@ -3576,12 +4234,12 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
3576
4234
  const select$l = function SemanticMappedFieldOutputRepresentationSelect() {
3577
4235
  return {
3578
4236
  kind: 'Fragment',
3579
- version: VERSION$e,
4237
+ version: VERSION$d,
3580
4238
  private: [],
3581
4239
  opaque: true
3582
4240
  };
3583
4241
  };
3584
- function equals$e(existing, incoming) {
4242
+ function equals$d(existing, incoming) {
3585
4243
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
3586
4244
  return false;
3587
4245
  }
@@ -3589,14 +4247,14 @@ function equals$e(existing, incoming) {
3589
4247
  }
3590
4248
  const ingest$a = function SemanticMappedFieldOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3591
4249
  if (process.env.NODE_ENV !== 'production') {
3592
- const validateError = validate$h(input);
4250
+ const validateError = validate$g(input);
3593
4251
  if (validateError !== null) {
3594
4252
  throw validateError;
3595
4253
  }
3596
4254
  }
3597
4255
  const key = keyBuilderFromType$6(luvio, input);
3598
4256
  const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
3599
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SemanticAuthoring", VERSION$e, RepresentationType$a, equals$e);
4257
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SemanticAuthoring", VERSION$d, RepresentationType$a, equals$d);
3600
4258
  return createLink(key);
3601
4259
  };
3602
4260
  function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
@@ -3609,8 +4267,8 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
3609
4267
  });
3610
4268
  }
3611
4269
 
3612
- const VERSION$d = "1b52cb482b6e6bf9858049a6bd3ed8f9";
3613
- function validate$g(obj, path = 'SemanticUnionOutputRepresentation') {
4270
+ const VERSION$c = "405ff251703b1f5480363199ebeaf8a9";
4271
+ function validate$f(obj, path = 'SemanticUnionOutputRepresentation') {
3614
4272
  const v_error = (() => {
3615
4273
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3616
4274
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3670,6 +4328,34 @@ function validate$g(obj, path = 'SemanticUnionOutputRepresentation') {
3670
4328
  return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
3671
4329
  }
3672
4330
  }
4331
+ if (obj.logicalViewId !== undefined) {
4332
+ const obj_logicalViewId = obj.logicalViewId;
4333
+ const path_logicalViewId = path + '.logicalViewId';
4334
+ let obj_logicalViewId_union0 = null;
4335
+ const obj_logicalViewId_union0_error = (() => {
4336
+ if (typeof obj_logicalViewId !== 'string') {
4337
+ return new TypeError('Expected "string" but received "' + typeof obj_logicalViewId + '" (at "' + path_logicalViewId + '")');
4338
+ }
4339
+ })();
4340
+ if (obj_logicalViewId_union0_error != null) {
4341
+ obj_logicalViewId_union0 = obj_logicalViewId_union0_error.message;
4342
+ }
4343
+ let obj_logicalViewId_union1 = null;
4344
+ const obj_logicalViewId_union1_error = (() => {
4345
+ if (obj_logicalViewId !== null) {
4346
+ return new TypeError('Expected "null" but received "' + typeof obj_logicalViewId + '" (at "' + path_logicalViewId + '")');
4347
+ }
4348
+ })();
4349
+ if (obj_logicalViewId_union1_error != null) {
4350
+ obj_logicalViewId_union1 = obj_logicalViewId_union1_error.message;
4351
+ }
4352
+ if (obj_logicalViewId_union0 && obj_logicalViewId_union1) {
4353
+ let message = 'Object doesn\'t match union (at "' + path_logicalViewId + '")';
4354
+ message += '\n' + obj_logicalViewId_union0.split('\n').map((line) => '\t' + line).join('\n');
4355
+ message += '\n' + obj_logicalViewId_union1.split('\n').map((line) => '\t' + line).join('\n');
4356
+ return new TypeError(message);
4357
+ }
4358
+ }
3673
4359
  if (obj.semanticDataObjects !== undefined) {
3674
4360
  const obj_semanticDataObjects = obj.semanticDataObjects;
3675
4361
  const path_semanticDataObjects = path + '.semanticDataObjects';
@@ -3702,14 +4388,14 @@ function validate$g(obj, path = 'SemanticUnionOutputRepresentation') {
3702
4388
  return v_error === undefined ? null : v_error;
3703
4389
  }
3704
4390
  const RepresentationType$9 = 'SemanticUnionOutputRepresentation';
3705
- function keyBuilder$i(luvio, config) {
4391
+ function keyBuilder$k(luvio, config) {
3706
4392
  return keyPrefix + '::' + RepresentationType$9 + ':' + config.name;
3707
4393
  }
3708
4394
  function keyBuilderFromType$5(luvio, object) {
3709
4395
  const keyParams = {
3710
4396
  name: object.id
3711
4397
  };
3712
- return keyBuilder$i(luvio, keyParams);
4398
+ return keyBuilder$k(luvio, keyParams);
3713
4399
  }
3714
4400
  function normalize$9(input, existing, path, luvio, store, timestamp) {
3715
4401
  const input_semanticDataObjects = input.semanticDataObjects;
@@ -3718,7 +4404,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
3718
4404
  for (let i = 0; i < input_semanticDataObjects.length; i++) {
3719
4405
  const input_semanticDataObjects_item = input_semanticDataObjects[i];
3720
4406
  let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
3721
- input_semanticDataObjects[i] = ingest$c(input_semanticDataObjects_item, {
4407
+ input_semanticDataObjects[i] = ingest$d(input_semanticDataObjects_item, {
3722
4408
  fullPath: input_semanticDataObjects_item_id,
3723
4409
  propertyName: i,
3724
4410
  parent: {
@@ -3753,7 +4439,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
3753
4439
  const select$k = function SemanticUnionOutputRepresentationSelect() {
3754
4440
  return {
3755
4441
  kind: 'Fragment',
3756
- version: VERSION$d,
4442
+ version: VERSION$c,
3757
4443
  private: [],
3758
4444
  selections: [
3759
4445
  {
@@ -3797,12 +4483,17 @@ const select$k = function SemanticUnionOutputRepresentationSelect() {
3797
4483
  kind: 'Scalar',
3798
4484
  required: false
3799
4485
  },
4486
+ {
4487
+ name: 'logicalViewId',
4488
+ kind: 'Scalar',
4489
+ required: false
4490
+ },
3800
4491
  {
3801
4492
  name: 'semanticDataObjects',
3802
4493
  kind: 'Link',
3803
4494
  plural: true,
3804
4495
  required: false,
3805
- fragment: select$p()
4496
+ fragment: select$v()
3806
4497
  },
3807
4498
  {
3808
4499
  name: 'semanticMappedFields',
@@ -3814,7 +4505,7 @@ const select$k = function SemanticUnionOutputRepresentationSelect() {
3814
4505
  ]
3815
4506
  };
3816
4507
  };
3817
- function equals$d(existing, incoming) {
4508
+ function equals$c(existing, incoming) {
3818
4509
  const existing_apiName = existing.apiName;
3819
4510
  const incoming_apiName = incoming.apiName;
3820
4511
  if (!(existing_apiName === incoming_apiName)) {
@@ -3900,6 +4591,19 @@ function equals$d(existing, incoming) {
3900
4591
  return false;
3901
4592
  }
3902
4593
  }
4594
+ const existing_logicalViewId = existing.logicalViewId;
4595
+ const incoming_logicalViewId = incoming.logicalViewId;
4596
+ // if at least one of these optionals is defined
4597
+ if (existing_logicalViewId !== undefined || incoming_logicalViewId !== undefined) {
4598
+ // if one of these is not defined we know the other is defined and therefore
4599
+ // not equal
4600
+ if (existing_logicalViewId === undefined || incoming_logicalViewId === undefined) {
4601
+ return false;
4602
+ }
4603
+ if (!(existing_logicalViewId === incoming_logicalViewId)) {
4604
+ return false;
4605
+ }
4606
+ }
3903
4607
  const existing_semanticDataObjects = existing.semanticDataObjects;
3904
4608
  const incoming_semanticDataObjects = incoming.semanticDataObjects;
3905
4609
  // if at least one of these optionals is defined
@@ -3940,14 +4644,14 @@ function equals$d(existing, incoming) {
3940
4644
  }
3941
4645
  const ingest$9 = function SemanticUnionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3942
4646
  if (process.env.NODE_ENV !== 'production') {
3943
- const validateError = validate$g(input);
4647
+ const validateError = validate$f(input);
3944
4648
  if (validateError !== null) {
3945
4649
  throw validateError;
3946
4650
  }
3947
4651
  }
3948
4652
  const key = keyBuilderFromType$5(luvio, input);
3949
4653
  const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
3950
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SemanticAuthoring", VERSION$d, RepresentationType$9, equals$d);
4654
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SemanticAuthoring", VERSION$c, RepresentationType$9, equals$c);
3951
4655
  return createLink(key);
3952
4656
  };
3953
4657
  function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
@@ -3961,7 +4665,7 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
3961
4665
  if (input.semanticDataObjects !== undefined) {
3962
4666
  const input_semanticDataObjects_length = input.semanticDataObjects.length;
3963
4667
  for (let i = 0; i < input_semanticDataObjects_length; i++) {
3964
- getTypeCacheKeys$c(rootKeySet, luvio, input.semanticDataObjects[i]);
4668
+ getTypeCacheKeys$d(rootKeySet, luvio, input.semanticDataObjects[i]);
3965
4669
  }
3966
4670
  }
3967
4671
  if (input.semanticMappedFields !== undefined) {
@@ -3972,8 +4676,8 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
3972
4676
  }
3973
4677
  }
3974
4678
 
3975
- const VERSION$c = "9273b6e07a8a8da6ead5ed811f877bdc";
3976
- function validate$f(obj, path = 'SemanticLogicalViewOutputRepresentation') {
4679
+ const VERSION$b = "9273b6e07a8a8da6ead5ed811f877bdc";
4680
+ function validate$e(obj, path = 'SemanticLogicalViewOutputRepresentation') {
3977
4681
  const v_error = (() => {
3978
4682
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3979
4683
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4023,7 +4727,7 @@ function validate$f(obj, path = 'SemanticLogicalViewOutputRepresentation') {
4023
4727
  for (let i = 0; i < obj_filters.length; i++) {
4024
4728
  const obj_filters_item = obj_filters[i];
4025
4729
  const path_filters_item = path_filters + '[' + i + ']';
4026
- const referencepath_filters_itemValidationError = validate$q(obj_filters_item, path_filters_item);
4730
+ const referencepath_filters_itemValidationError = validate$v(obj_filters_item, path_filters_item);
4027
4731
  if (referencepath_filters_itemValidationError !== null) {
4028
4732
  let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
4029
4733
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4103,14 +4807,14 @@ function validate$f(obj, path = 'SemanticLogicalViewOutputRepresentation') {
4103
4807
  return v_error === undefined ? null : v_error;
4104
4808
  }
4105
4809
  const RepresentationType$8 = 'SemanticLogicalViewOutputRepresentation';
4106
- function keyBuilder$h(luvio, config) {
4810
+ function keyBuilder$j(luvio, config) {
4107
4811
  return keyPrefix + '::' + RepresentationType$8 + ':' + config.name;
4108
4812
  }
4109
4813
  function keyBuilderFromType$4(luvio, object) {
4110
4814
  const keyParams = {
4111
4815
  name: object.id
4112
4816
  };
4113
- return keyBuilder$h(luvio, keyParams);
4817
+ return keyBuilder$j(luvio, keyParams);
4114
4818
  }
4115
4819
  function normalize$8(input, existing, path, luvio, store, timestamp) {
4116
4820
  const input_semanticDataObjects = input.semanticDataObjects;
@@ -4119,7 +4823,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
4119
4823
  for (let i = 0; i < input_semanticDataObjects.length; i++) {
4120
4824
  const input_semanticDataObjects_item = input_semanticDataObjects[i];
4121
4825
  let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
4122
- input_semanticDataObjects[i] = ingest$c(input_semanticDataObjects_item, {
4826
+ input_semanticDataObjects[i] = ingest$d(input_semanticDataObjects_item, {
4123
4827
  fullPath: input_semanticDataObjects_item_id,
4124
4828
  propertyName: i,
4125
4829
  parent: {
@@ -4170,10 +4874,10 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
4170
4874
  return input;
4171
4875
  }
4172
4876
  const select$j = function SemanticLogicalViewOutputRepresentationSelect() {
4173
- const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$s();
4877
+ const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$y();
4174
4878
  return {
4175
4879
  kind: 'Fragment',
4176
- version: VERSION$c,
4880
+ version: VERSION$b,
4177
4881
  private: [],
4178
4882
  selections: [
4179
4883
  {
@@ -4234,14 +4938,14 @@ const select$j = function SemanticLogicalViewOutputRepresentationSelect() {
4234
4938
  kind: 'Link',
4235
4939
  plural: true,
4236
4940
  required: false,
4237
- fragment: select$p()
4941
+ fragment: select$v()
4238
4942
  },
4239
4943
  {
4240
4944
  name: 'semanticRelationships',
4241
4945
  kind: 'Link',
4242
4946
  plural: true,
4243
4947
  required: false,
4244
- fragment: select$n()
4948
+ fragment: select$m()
4245
4949
  },
4246
4950
  {
4247
4951
  name: 'semanticUnions',
@@ -4253,7 +4957,7 @@ const select$j = function SemanticLogicalViewOutputRepresentationSelect() {
4253
4957
  ]
4254
4958
  };
4255
4959
  };
4256
- function equals$c(existing, incoming) {
4960
+ function equals$b(existing, incoming) {
4257
4961
  const existing_apiName = existing.apiName;
4258
4962
  const incoming_apiName = incoming.apiName;
4259
4963
  if (!(existing_apiName === incoming_apiName)) {
@@ -4362,7 +5066,7 @@ function equals$c(existing, incoming) {
4362
5066
  return false;
4363
5067
  }
4364
5068
  const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
4365
- if (!(equals$l(existing_filters_item, incoming_filters_item))) {
5069
+ if (!(equals$q(existing_filters_item, incoming_filters_item))) {
4366
5070
  return false;
4367
5071
  }
4368
5072
  });
@@ -4428,14 +5132,14 @@ function equals$c(existing, incoming) {
4428
5132
  }
4429
5133
  const ingest$8 = function SemanticLogicalViewOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4430
5134
  if (process.env.NODE_ENV !== 'production') {
4431
- const validateError = validate$f(input);
5135
+ const validateError = validate$e(input);
4432
5136
  if (validateError !== null) {
4433
5137
  throw validateError;
4434
5138
  }
4435
5139
  }
4436
5140
  const key = keyBuilderFromType$4(luvio, input);
4437
5141
  const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
4438
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SemanticAuthoring", VERSION$c, RepresentationType$8, equals$c);
5142
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SemanticAuthoring", VERSION$b, RepresentationType$8, equals$b);
4439
5143
  return createLink(key);
4440
5144
  };
4441
5145
  function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
@@ -4449,7 +5153,7 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
4449
5153
  if (input.semanticDataObjects !== undefined) {
4450
5154
  const input_semanticDataObjects_length = input.semanticDataObjects.length;
4451
5155
  for (let i = 0; i < input_semanticDataObjects_length; i++) {
4452
- getTypeCacheKeys$c(rootKeySet, luvio, input.semanticDataObjects[i]);
5156
+ getTypeCacheKeys$d(rootKeySet, luvio, input.semanticDataObjects[i]);
4453
5157
  }
4454
5158
  }
4455
5159
  if (input.semanticRelationships !== undefined) {
@@ -4466,83 +5170,6 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
4466
5170
  }
4467
5171
  }
4468
5172
 
4469
- const VERSION$b = "f49a2cbbe308f6f74cda3e2144fa66cd";
4470
- function validate$e(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
4471
- const v_error = (() => {
4472
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4473
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4474
- }
4475
- if (obj.calculatedFieldApiName !== undefined) {
4476
- const obj_calculatedFieldApiName = obj.calculatedFieldApiName;
4477
- const path_calculatedFieldApiName = path + '.calculatedFieldApiName';
4478
- if (typeof obj_calculatedFieldApiName !== 'string') {
4479
- return new TypeError('Expected "string" but received "' + typeof obj_calculatedFieldApiName + '" (at "' + path_calculatedFieldApiName + '")');
4480
- }
4481
- }
4482
- if (obj.tableFieldReference !== undefined) {
4483
- const obj_tableFieldReference = obj.tableFieldReference;
4484
- const path_tableFieldReference = path + '.tableFieldReference';
4485
- const referencepath_tableFieldReferenceValidationError = validate$i(obj_tableFieldReference, path_tableFieldReference);
4486
- if (referencepath_tableFieldReferenceValidationError !== null) {
4487
- let message = 'Object doesn\'t match SemanticTableFieldReferenceOutputRepresentation (at "' + path_tableFieldReference + '")\n';
4488
- message += referencepath_tableFieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4489
- return new TypeError(message);
4490
- }
4491
- }
4492
- })();
4493
- return v_error === undefined ? null : v_error;
4494
- }
4495
- const select$i = function SemanticFieldReferenceOutputRepresentationSelect() {
4496
- const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$m();
4497
- return {
4498
- kind: 'Fragment',
4499
- version: VERSION$b,
4500
- private: [],
4501
- selections: [
4502
- {
4503
- name: 'calculatedFieldApiName',
4504
- kind: 'Scalar',
4505
- required: false
4506
- },
4507
- {
4508
- name: 'tableFieldReference',
4509
- kind: 'Object',
4510
- selections: SemanticTableFieldReferenceOutputRepresentation__selections,
4511
- required: false
4512
- }
4513
- ]
4514
- };
4515
- };
4516
- function equals$b(existing, incoming) {
4517
- const existing_calculatedFieldApiName = existing.calculatedFieldApiName;
4518
- const incoming_calculatedFieldApiName = incoming.calculatedFieldApiName;
4519
- // if at least one of these optionals is defined
4520
- if (existing_calculatedFieldApiName !== undefined || incoming_calculatedFieldApiName !== undefined) {
4521
- // if one of these is not defined we know the other is defined and therefore
4522
- // not equal
4523
- if (existing_calculatedFieldApiName === undefined || incoming_calculatedFieldApiName === undefined) {
4524
- return false;
4525
- }
4526
- if (!(existing_calculatedFieldApiName === incoming_calculatedFieldApiName)) {
4527
- return false;
4528
- }
4529
- }
4530
- const existing_tableFieldReference = existing.tableFieldReference;
4531
- const incoming_tableFieldReference = incoming.tableFieldReference;
4532
- // if at least one of these optionals is defined
4533
- if (existing_tableFieldReference !== undefined || incoming_tableFieldReference !== undefined) {
4534
- // if one of these is not defined we know the other is defined and therefore
4535
- // not equal
4536
- if (existing_tableFieldReference === undefined || incoming_tableFieldReference === undefined) {
4537
- return false;
4538
- }
4539
- if (!(equals$f(existing_tableFieldReference, incoming_tableFieldReference))) {
4540
- return false;
4541
- }
4542
- }
4543
- return true;
4544
- }
4545
-
4546
5173
  const VERSION$a = "a50848c632bb205d5e910bb726d9219e";
4547
5174
  function validate$d(obj, path = 'SemanticIdentifyingDimensionOutputRepresentation') {
4548
5175
  const v_error = (() => {
@@ -4552,7 +5179,7 @@ function validate$d(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
4552
5179
  if (obj.identifierDimensionReference !== undefined) {
4553
5180
  const obj_identifierDimensionReference = obj.identifierDimensionReference;
4554
5181
  const path_identifierDimensionReference = path + '.identifierDimensionReference';
4555
- const referencepath_identifierDimensionReferenceValidationError = validate$e(obj_identifierDimensionReference, path_identifierDimensionReference);
5182
+ const referencepath_identifierDimensionReferenceValidationError = validate$k(obj_identifierDimensionReference, path_identifierDimensionReference);
4556
5183
  if (referencepath_identifierDimensionReferenceValidationError !== null) {
4557
5184
  let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_identifierDimensionReference + '")\n';
4558
5185
  message += referencepath_identifierDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4562,7 +5189,7 @@ function validate$d(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
4562
5189
  if (obj.namingDimensionReference !== undefined) {
4563
5190
  const obj_namingDimensionReference = obj.namingDimensionReference;
4564
5191
  const path_namingDimensionReference = path + '.namingDimensionReference';
4565
- const referencepath_namingDimensionReferenceValidationError = validate$e(obj_namingDimensionReference, path_namingDimensionReference);
5192
+ const referencepath_namingDimensionReferenceValidationError = validate$k(obj_namingDimensionReference, path_namingDimensionReference);
4566
5193
  if (referencepath_namingDimensionReferenceValidationError !== null) {
4567
5194
  let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_namingDimensionReference + '")\n';
4568
5195
  message += referencepath_namingDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4572,8 +5199,8 @@ function validate$d(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
4572
5199
  })();
4573
5200
  return v_error === undefined ? null : v_error;
4574
5201
  }
4575
- const select$h = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
4576
- const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$i();
5202
+ const select$i = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
5203
+ const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$p();
4577
5204
  return {
4578
5205
  kind: 'Fragment',
4579
5206
  version: VERSION$a,
@@ -4604,7 +5231,7 @@ function equals$a(existing, incoming) {
4604
5231
  if (existing_identifierDimensionReference === undefined || incoming_identifierDimensionReference === undefined) {
4605
5232
  return false;
4606
5233
  }
4607
- if (!(equals$b(existing_identifierDimensionReference, incoming_identifierDimensionReference))) {
5234
+ if (!(equals$h(existing_identifierDimensionReference, incoming_identifierDimensionReference))) {
4608
5235
  return false;
4609
5236
  }
4610
5237
  }
@@ -4617,7 +5244,7 @@ function equals$a(existing, incoming) {
4617
5244
  if (existing_namingDimensionReference === undefined || incoming_namingDimensionReference === undefined) {
4618
5245
  return false;
4619
5246
  }
4620
- if (!(equals$b(existing_namingDimensionReference, incoming_namingDimensionReference))) {
5247
+ if (!(equals$h(existing_namingDimensionReference, incoming_namingDimensionReference))) {
4621
5248
  return false;
4622
5249
  }
4623
5250
  }
@@ -4647,7 +5274,7 @@ function validate$c(obj, path = 'SemanticInsightTypeOutputRepresentation') {
4647
5274
  })();
4648
5275
  return v_error === undefined ? null : v_error;
4649
5276
  }
4650
- const select$g = function SemanticInsightTypeOutputRepresentationSelect() {
5277
+ const select$h = function SemanticInsightTypeOutputRepresentationSelect() {
4651
5278
  return {
4652
5279
  kind: 'Fragment',
4653
5280
  version: VERSION$9,
@@ -4738,7 +5365,7 @@ function validate$b(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
4738
5365
  for (let i = 0; i < obj_insightsDimensionsReferences.length; i++) {
4739
5366
  const obj_insightsDimensionsReferences_item = obj_insightsDimensionsReferences[i];
4740
5367
  const path_insightsDimensionsReferences_item = path_insightsDimensionsReferences + '[' + i + ']';
4741
- const referencepath_insightsDimensionsReferences_itemValidationError = validate$e(obj_insightsDimensionsReferences_item, path_insightsDimensionsReferences_item);
5368
+ const referencepath_insightsDimensionsReferences_itemValidationError = validate$k(obj_insightsDimensionsReferences_item, path_insightsDimensionsReferences_item);
4742
5369
  if (referencepath_insightsDimensionsReferences_itemValidationError !== null) {
4743
5370
  let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_insightsDimensionsReferences_item + '")\n';
4744
5371
  message += referencepath_insightsDimensionsReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4770,10 +5397,10 @@ function validate$b(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
4770
5397
  })();
4771
5398
  return v_error === undefined ? null : v_error;
4772
5399
  }
4773
- const select$f = function SemanticInsightsSettingsOutputRepresentationSelect() {
4774
- const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$h();
4775
- const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$g();
4776
- const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$i();
5400
+ const select$g = function SemanticInsightsSettingsOutputRepresentationSelect() {
5401
+ const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$i();
5402
+ const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$h();
5403
+ const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$p();
4777
5404
  return {
4778
5405
  kind: 'Fragment',
4779
5406
  version: VERSION$8,
@@ -4898,7 +5525,7 @@ function equals$8(existing, incoming) {
4898
5525
  return false;
4899
5526
  }
4900
5527
  const equals_insightsDimensionsReferences_items = equalsArray(existing_insightsDimensionsReferences, incoming_insightsDimensionsReferences, (existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item) => {
4901
- if (!(equals$b(existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item))) {
5528
+ if (!(equals$h(existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item))) {
4902
5529
  return false;
4903
5530
  }
4904
5531
  });
@@ -4924,7 +5551,7 @@ function validate$a(obj, path = 'SemanticMetricOutputRepresentation') {
4924
5551
  for (let i = 0; i < obj_additionalDimensions.length; i++) {
4925
5552
  const obj_additionalDimensions_item = obj_additionalDimensions[i];
4926
5553
  const path_additionalDimensions_item = path_additionalDimensions + '[' + i + ']';
4927
- const referencepath_additionalDimensions_itemValidationError = validate$e(obj_additionalDimensions_item, path_additionalDimensions_item);
5554
+ const referencepath_additionalDimensions_itemValidationError = validate$k(obj_additionalDimensions_item, path_additionalDimensions_item);
4928
5555
  if (referencepath_additionalDimensions_itemValidationError !== null) {
4929
5556
  let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_additionalDimensions_item + '")\n';
4930
5557
  message += referencepath_additionalDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4984,7 +5611,7 @@ function validate$a(obj, path = 'SemanticMetricOutputRepresentation') {
4984
5611
  for (let i = 0; i < obj_filters.length; i++) {
4985
5612
  const obj_filters_item = obj_filters[i];
4986
5613
  const path_filters_item = path_filters + '[' + i + ']';
4987
- const referencepath_filters_itemValidationError = validate$q(obj_filters_item, path_filters_item);
5614
+ const referencepath_filters_itemValidationError = validate$v(obj_filters_item, path_filters_item);
4988
5615
  if (referencepath_filters_itemValidationError !== null) {
4989
5616
  let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
4990
5617
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5038,7 +5665,7 @@ function validate$a(obj, path = 'SemanticMetricOutputRepresentation') {
5038
5665
  if (obj.measurementReference !== undefined) {
5039
5666
  const obj_measurementReference = obj.measurementReference;
5040
5667
  const path_measurementReference = path + '.measurementReference';
5041
- const referencepath_measurementReferenceValidationError = validate$e(obj_measurementReference, path_measurementReference);
5668
+ const referencepath_measurementReferenceValidationError = validate$k(obj_measurementReference, path_measurementReference);
5042
5669
  if (referencepath_measurementReferenceValidationError !== null) {
5043
5670
  let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_measurementReference + '")\n';
5044
5671
  message += referencepath_measurementReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5048,7 +5675,7 @@ function validate$a(obj, path = 'SemanticMetricOutputRepresentation') {
5048
5675
  if (obj.timeDimensionReference !== undefined) {
5049
5676
  const obj_timeDimensionReference = obj.timeDimensionReference;
5050
5677
  const path_timeDimensionReference = path + '.timeDimensionReference';
5051
- const referencepath_timeDimensionReferenceValidationError = validate$e(obj_timeDimensionReference, path_timeDimensionReference);
5678
+ const referencepath_timeDimensionReferenceValidationError = validate$k(obj_timeDimensionReference, path_timeDimensionReference);
5052
5679
  if (referencepath_timeDimensionReferenceValidationError !== null) {
5053
5680
  let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_timeDimensionReference + '")\n';
5054
5681
  message += referencepath_timeDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5073,22 +5700,22 @@ function validate$a(obj, path = 'SemanticMetricOutputRepresentation') {
5073
5700
  return v_error === undefined ? null : v_error;
5074
5701
  }
5075
5702
  const RepresentationType$7 = 'SemanticMetricOutputRepresentation';
5076
- function keyBuilder$g(luvio, config) {
5703
+ function keyBuilder$i(luvio, config) {
5077
5704
  return keyPrefix + '::' + RepresentationType$7 + ':' + config.name;
5078
5705
  }
5079
5706
  function keyBuilderFromType$3(luvio, object) {
5080
5707
  const keyParams = {
5081
5708
  name: object.id
5082
5709
  };
5083
- return keyBuilder$g(luvio, keyParams);
5710
+ return keyBuilder$i(luvio, keyParams);
5084
5711
  }
5085
5712
  function normalize$7(input, existing, path, luvio, store, timestamp) {
5086
5713
  return input;
5087
5714
  }
5088
- const select$e = function SemanticMetricOutputRepresentationSelect() {
5089
- const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$i();
5090
- const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$s();
5091
- const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$f();
5715
+ const select$f = function SemanticMetricOutputRepresentationSelect() {
5716
+ const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$p();
5717
+ const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$y();
5718
+ const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$g();
5092
5719
  return {
5093
5720
  kind: 'Fragment',
5094
5721
  version: VERSION$7,
@@ -5326,7 +5953,7 @@ function equals$7(existing, incoming) {
5326
5953
  return false;
5327
5954
  }
5328
5955
  const equals_additionalDimensions_items = equalsArray(existing_additionalDimensions, incoming_additionalDimensions, (existing_additionalDimensions_item, incoming_additionalDimensions_item) => {
5329
- if (!(equals$b(existing_additionalDimensions_item, incoming_additionalDimensions_item))) {
5956
+ if (!(equals$h(existing_additionalDimensions_item, incoming_additionalDimensions_item))) {
5330
5957
  return false;
5331
5958
  }
5332
5959
  });
@@ -5344,7 +5971,7 @@ function equals$7(existing, incoming) {
5344
5971
  return false;
5345
5972
  }
5346
5973
  const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
5347
- if (!(equals$l(existing_filters_item, incoming_filters_item))) {
5974
+ if (!(equals$q(existing_filters_item, incoming_filters_item))) {
5348
5975
  return false;
5349
5976
  }
5350
5977
  });
@@ -5374,7 +6001,7 @@ function equals$7(existing, incoming) {
5374
6001
  if (existing_measurementReference === undefined || incoming_measurementReference === undefined) {
5375
6002
  return false;
5376
6003
  }
5377
- if (!(equals$b(existing_measurementReference, incoming_measurementReference))) {
6004
+ if (!(equals$h(existing_measurementReference, incoming_measurementReference))) {
5378
6005
  return false;
5379
6006
  }
5380
6007
  }
@@ -5387,7 +6014,7 @@ function equals$7(existing, incoming) {
5387
6014
  if (existing_timeDimensionReference === undefined || incoming_timeDimensionReference === undefined) {
5388
6015
  return false;
5389
6016
  }
5390
- if (!(equals$b(existing_timeDimensionReference, incoming_timeDimensionReference))) {
6017
+ if (!(equals$h(existing_timeDimensionReference, incoming_timeDimensionReference))) {
5391
6018
  return false;
5392
6019
  }
5393
6020
  }
@@ -5554,19 +6181,19 @@ function validate$9(obj, path = 'SemanticParameterOutputRepresentation') {
5554
6181
  return v_error === undefined ? null : v_error;
5555
6182
  }
5556
6183
  const RepresentationType$6 = 'SemanticParameterOutputRepresentation';
5557
- function keyBuilder$f(luvio, config) {
6184
+ function keyBuilder$h(luvio, config) {
5558
6185
  return keyPrefix + '::' + RepresentationType$6 + ':' + config.name;
5559
6186
  }
5560
6187
  function keyBuilderFromType$2(luvio, object) {
5561
6188
  const keyParams = {
5562
6189
  name: object.id
5563
6190
  };
5564
- return keyBuilder$f(luvio, keyParams);
6191
+ return keyBuilder$h(luvio, keyParams);
5565
6192
  }
5566
6193
  function normalize$6(input, existing, path, luvio, store, timestamp) {
5567
6194
  return input;
5568
6195
  }
5569
- const select$d = function SemanticParameterOutputRepresentationSelect() {
6196
+ const select$e = function SemanticParameterOutputRepresentationSelect() {
5570
6197
  return {
5571
6198
  kind: 'Fragment',
5572
6199
  version: VERSION$6,
@@ -5858,7 +6485,7 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
5858
6485
  });
5859
6486
  }
5860
6487
 
5861
- const VERSION$5 = "2b83a1cf84bf1ccbe3783be82ff4d013";
6488
+ const VERSION$5 = "3fb33fd1e310fdf42bf0170a5f20e206";
5862
6489
  function validate$8(obj, path = 'SemanticModelOutputRepresentation') {
5863
6490
  const v_error = (() => {
5864
6491
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5892,7 +6519,7 @@ function validate$8(obj, path = 'SemanticModelOutputRepresentation') {
5892
6519
  for (let i = 0; i < obj_baseModels.length; i++) {
5893
6520
  const obj_baseModels_item = obj_baseModels[i];
5894
6521
  const path_baseModels_item = path_baseModels + '[' + i + ']';
5895
- const referencepath_baseModels_itemValidationError = validate$t(obj_baseModels_item, path_baseModels_item);
6522
+ const referencepath_baseModels_itemValidationError = validate$y(obj_baseModels_item, path_baseModels_item);
5896
6523
  if (referencepath_baseModels_itemValidationError !== null) {
5897
6524
  let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
5898
6525
  message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6032,6 +6659,48 @@ function validate$8(obj, path = 'SemanticModelOutputRepresentation') {
6032
6659
  return new TypeError('Expected "string" but received "' + typeof obj_semanticDataObjectsUrl + '" (at "' + path_semanticDataObjectsUrl + '")');
6033
6660
  }
6034
6661
  }
6662
+ if (obj.semanticGroupings !== undefined) {
6663
+ const obj_semanticGroupings = obj.semanticGroupings;
6664
+ const path_semanticGroupings = path + '.semanticGroupings';
6665
+ if (!ArrayIsArray(obj_semanticGroupings)) {
6666
+ return new TypeError('Expected "array" but received "' + typeof obj_semanticGroupings + '" (at "' + path_semanticGroupings + '")');
6667
+ }
6668
+ for (let i = 0; i < obj_semanticGroupings.length; i++) {
6669
+ const obj_semanticGroupings_item = obj_semanticGroupings[i];
6670
+ const path_semanticGroupings_item = path_semanticGroupings + '[' + i + ']';
6671
+ if (typeof obj_semanticGroupings_item !== 'object') {
6672
+ return new TypeError('Expected "object" but received "' + typeof obj_semanticGroupings_item + '" (at "' + path_semanticGroupings_item + '")');
6673
+ }
6674
+ }
6675
+ }
6676
+ if (obj.semanticGroupingsUrl !== undefined) {
6677
+ const obj_semanticGroupingsUrl = obj.semanticGroupingsUrl;
6678
+ const path_semanticGroupingsUrl = path + '.semanticGroupingsUrl';
6679
+ let obj_semanticGroupingsUrl_union0 = null;
6680
+ const obj_semanticGroupingsUrl_union0_error = (() => {
6681
+ if (typeof obj_semanticGroupingsUrl !== 'string') {
6682
+ return new TypeError('Expected "string" but received "' + typeof obj_semanticGroupingsUrl + '" (at "' + path_semanticGroupingsUrl + '")');
6683
+ }
6684
+ })();
6685
+ if (obj_semanticGroupingsUrl_union0_error != null) {
6686
+ obj_semanticGroupingsUrl_union0 = obj_semanticGroupingsUrl_union0_error.message;
6687
+ }
6688
+ let obj_semanticGroupingsUrl_union1 = null;
6689
+ const obj_semanticGroupingsUrl_union1_error = (() => {
6690
+ if (obj_semanticGroupingsUrl !== null) {
6691
+ return new TypeError('Expected "null" but received "' + typeof obj_semanticGroupingsUrl + '" (at "' + path_semanticGroupingsUrl + '")');
6692
+ }
6693
+ })();
6694
+ if (obj_semanticGroupingsUrl_union1_error != null) {
6695
+ obj_semanticGroupingsUrl_union1 = obj_semanticGroupingsUrl_union1_error.message;
6696
+ }
6697
+ if (obj_semanticGroupingsUrl_union0 && obj_semanticGroupingsUrl_union1) {
6698
+ let message = 'Object doesn\'t match union (at "' + path_semanticGroupingsUrl + '")';
6699
+ message += '\n' + obj_semanticGroupingsUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
6700
+ message += '\n' + obj_semanticGroupingsUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
6701
+ return new TypeError(message);
6702
+ }
6703
+ }
6035
6704
  if (obj.semanticLogicalViews !== undefined) {
6036
6705
  const obj_semanticLogicalViews = obj.semanticLogicalViews;
6037
6706
  const path_semanticLogicalViews = path + '.semanticLogicalViews';
@@ -6120,14 +6789,14 @@ function validate$8(obj, path = 'SemanticModelOutputRepresentation') {
6120
6789
  return v_error === undefined ? null : v_error;
6121
6790
  }
6122
6791
  const RepresentationType$5 = 'SemanticModelOutputRepresentation';
6123
- function keyBuilder$e(luvio, config) {
6792
+ function keyBuilder$g(luvio, config) {
6124
6793
  return keyPrefix + '::' + RepresentationType$5 + ':' + config.name;
6125
6794
  }
6126
6795
  function keyBuilderFromType$1(luvio, object) {
6127
6796
  const keyParams = {
6128
6797
  name: object.id
6129
6798
  };
6130
- return keyBuilder$e(luvio, keyParams);
6799
+ return keyBuilder$g(luvio, keyParams);
6131
6800
  }
6132
6801
  function normalize$5(input, existing, path, luvio, store, timestamp) {
6133
6802
  const input_semanticCalculatedDimensions = input.semanticCalculatedDimensions;
@@ -6136,7 +6805,7 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
6136
6805
  for (let i = 0; i < input_semanticCalculatedDimensions.length; i++) {
6137
6806
  const input_semanticCalculatedDimensions_item = input_semanticCalculatedDimensions[i];
6138
6807
  let input_semanticCalculatedDimensions_item_id = input_semanticCalculatedDimensions_id + '__' + i;
6139
- input_semanticCalculatedDimensions[i] = ingest$e(input_semanticCalculatedDimensions_item, {
6808
+ input_semanticCalculatedDimensions[i] = ingest$f(input_semanticCalculatedDimensions_item, {
6140
6809
  fullPath: input_semanticCalculatedDimensions_item_id,
6141
6810
  propertyName: i,
6142
6811
  parent: {
@@ -6154,7 +6823,7 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
6154
6823
  for (let i = 0; i < input_semanticCalculatedMeasurements.length; i++) {
6155
6824
  const input_semanticCalculatedMeasurements_item = input_semanticCalculatedMeasurements[i];
6156
6825
  let input_semanticCalculatedMeasurements_item_id = input_semanticCalculatedMeasurements_id + '__' + i;
6157
- input_semanticCalculatedMeasurements[i] = ingest$d(input_semanticCalculatedMeasurements_item, {
6826
+ input_semanticCalculatedMeasurements[i] = ingest$e(input_semanticCalculatedMeasurements_item, {
6158
6827
  fullPath: input_semanticCalculatedMeasurements_item_id,
6159
6828
  propertyName: i,
6160
6829
  parent: {
@@ -6172,7 +6841,7 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
6172
6841
  for (let i = 0; i < input_semanticDataObjects.length; i++) {
6173
6842
  const input_semanticDataObjects_item = input_semanticDataObjects[i];
6174
6843
  let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
6175
- input_semanticDataObjects[i] = ingest$c(input_semanticDataObjects_item, {
6844
+ input_semanticDataObjects[i] = ingest$d(input_semanticDataObjects_item, {
6176
6845
  fullPath: input_semanticDataObjects_item_id,
6177
6846
  propertyName: i,
6178
6847
  parent: {
@@ -6184,6 +6853,24 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
6184
6853
  }, luvio, store, timestamp);
6185
6854
  }
6186
6855
  }
6856
+ const input_semanticGroupings = input.semanticGroupings;
6857
+ const input_semanticGroupings_id = path.fullPath + '__semanticGroupings';
6858
+ if (input_semanticGroupings !== undefined) {
6859
+ for (let i = 0; i < input_semanticGroupings.length; i++) {
6860
+ const input_semanticGroupings_item = input_semanticGroupings[i];
6861
+ let input_semanticGroupings_item_id = input_semanticGroupings_id + '__' + i;
6862
+ input_semanticGroupings[i] = ingest$c(input_semanticGroupings_item, {
6863
+ fullPath: input_semanticGroupings_item_id,
6864
+ propertyName: i,
6865
+ parent: {
6866
+ data: input,
6867
+ key: path.fullPath,
6868
+ existing: existing,
6869
+ },
6870
+ ttl: path.ttl
6871
+ }, luvio, store, timestamp);
6872
+ }
6873
+ }
6187
6874
  const input_semanticLogicalViews = input.semanticLogicalViews;
6188
6875
  const input_semanticLogicalViews_id = path.fullPath + '__semanticLogicalViews';
6189
6876
  if (input_semanticLogicalViews !== undefined) {
@@ -6258,8 +6945,8 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
6258
6945
  }
6259
6946
  return input;
6260
6947
  }
6261
- const select$c = function SemanticModelOutputRepresentationSelect() {
6262
- const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$w();
6948
+ const select$d = function SemanticModelOutputRepresentationSelect() {
6949
+ const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$C();
6263
6950
  return {
6264
6951
  kind: 'Fragment',
6265
6952
  version: VERSION$5,
@@ -6338,7 +7025,7 @@ const select$c = function SemanticModelOutputRepresentationSelect() {
6338
7025
  kind: 'Link',
6339
7026
  plural: true,
6340
7027
  required: false,
6341
- fragment: select$r()
7028
+ fragment: select$x()
6342
7029
  },
6343
7030
  {
6344
7031
  name: 'semanticCalculatedDimensionsUrl',
@@ -6350,7 +7037,7 @@ const select$c = function SemanticModelOutputRepresentationSelect() {
6350
7037
  kind: 'Link',
6351
7038
  plural: true,
6352
7039
  required: false,
6353
- fragment: select$q()
7040
+ fragment: select$w()
6354
7041
  },
6355
7042
  {
6356
7043
  name: 'semanticCalculatedMeasurementsUrl',
@@ -6362,13 +7049,25 @@ const select$c = function SemanticModelOutputRepresentationSelect() {
6362
7049
  kind: 'Link',
6363
7050
  plural: true,
6364
7051
  required: false,
6365
- fragment: select$p()
7052
+ fragment: select$v()
6366
7053
  },
6367
7054
  {
6368
7055
  name: 'semanticDataObjectsUrl',
6369
7056
  kind: 'Scalar',
6370
7057
  required: false
6371
7058
  },
7059
+ {
7060
+ name: 'semanticGroupings',
7061
+ kind: 'Link',
7062
+ plural: true,
7063
+ required: false,
7064
+ fragment: select$o()
7065
+ },
7066
+ {
7067
+ name: 'semanticGroupingsUrl',
7068
+ kind: 'Scalar',
7069
+ required: false
7070
+ },
6372
7071
  {
6373
7072
  name: 'semanticLogicalViews',
6374
7073
  kind: 'Link',
@@ -6381,14 +7080,14 @@ const select$c = function SemanticModelOutputRepresentationSelect() {
6381
7080
  kind: 'Link',
6382
7081
  plural: true,
6383
7082
  required: false,
6384
- fragment: select$e()
7083
+ fragment: select$f()
6385
7084
  },
6386
7085
  {
6387
7086
  name: 'semanticParameters',
6388
7087
  kind: 'Link',
6389
7088
  plural: true,
6390
7089
  required: false,
6391
- fragment: select$d()
7090
+ fragment: select$e()
6392
7091
  },
6393
7092
  {
6394
7093
  name: 'semanticParametersUrl',
@@ -6400,7 +7099,7 @@ const select$c = function SemanticModelOutputRepresentationSelect() {
6400
7099
  kind: 'Link',
6401
7100
  plural: true,
6402
7101
  required: false,
6403
- fragment: select$n()
7102
+ fragment: select$m()
6404
7103
  },
6405
7104
  {
6406
7105
  name: 'semanticRelationshipsUrl',
@@ -6638,7 +7337,7 @@ function equals$5(existing, incoming) {
6638
7337
  return false;
6639
7338
  }
6640
7339
  const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
6641
- if (!(equals$o(existing_baseModels_item, incoming_baseModels_item))) {
7340
+ if (!(equals$t(existing_baseModels_item, incoming_baseModels_item))) {
6642
7341
  return false;
6643
7342
  }
6644
7343
  });
@@ -6688,33 +7387,64 @@ function equals$5(existing, incoming) {
6688
7387
  if (existing_semanticCalculatedMeasurements !== undefined || incoming_semanticCalculatedMeasurements !== undefined) {
6689
7388
  // if one of these is not defined we know the other is defined and therefore
6690
7389
  // not equal
6691
- if (existing_semanticCalculatedMeasurements === undefined || incoming_semanticCalculatedMeasurements === undefined) {
7390
+ if (existing_semanticCalculatedMeasurements === undefined || incoming_semanticCalculatedMeasurements === undefined) {
7391
+ return false;
7392
+ }
7393
+ const equals_semanticCalculatedMeasurements_items = equalsArray(existing_semanticCalculatedMeasurements, incoming_semanticCalculatedMeasurements, (existing_semanticCalculatedMeasurements_item, incoming_semanticCalculatedMeasurements_item) => {
7394
+ if (!(existing_semanticCalculatedMeasurements_item.__ref === incoming_semanticCalculatedMeasurements_item.__ref)) {
7395
+ return false;
7396
+ }
7397
+ });
7398
+ if (equals_semanticCalculatedMeasurements_items === false) {
7399
+ return false;
7400
+ }
7401
+ }
7402
+ const existing_semanticDataObjects = existing.semanticDataObjects;
7403
+ const incoming_semanticDataObjects = incoming.semanticDataObjects;
7404
+ // if at least one of these optionals is defined
7405
+ if (existing_semanticDataObjects !== undefined || incoming_semanticDataObjects !== undefined) {
7406
+ // if one of these is not defined we know the other is defined and therefore
7407
+ // not equal
7408
+ if (existing_semanticDataObjects === undefined || incoming_semanticDataObjects === undefined) {
7409
+ return false;
7410
+ }
7411
+ const equals_semanticDataObjects_items = equalsArray(existing_semanticDataObjects, incoming_semanticDataObjects, (existing_semanticDataObjects_item, incoming_semanticDataObjects_item) => {
7412
+ if (!(existing_semanticDataObjects_item.__ref === incoming_semanticDataObjects_item.__ref)) {
7413
+ return false;
7414
+ }
7415
+ });
7416
+ if (equals_semanticDataObjects_items === false) {
7417
+ return false;
7418
+ }
7419
+ }
7420
+ const existing_semanticGroupings = existing.semanticGroupings;
7421
+ const incoming_semanticGroupings = incoming.semanticGroupings;
7422
+ // if at least one of these optionals is defined
7423
+ if (existing_semanticGroupings !== undefined || incoming_semanticGroupings !== undefined) {
7424
+ // if one of these is not defined we know the other is defined and therefore
7425
+ // not equal
7426
+ if (existing_semanticGroupings === undefined || incoming_semanticGroupings === undefined) {
6692
7427
  return false;
6693
7428
  }
6694
- const equals_semanticCalculatedMeasurements_items = equalsArray(existing_semanticCalculatedMeasurements, incoming_semanticCalculatedMeasurements, (existing_semanticCalculatedMeasurements_item, incoming_semanticCalculatedMeasurements_item) => {
6695
- if (!(existing_semanticCalculatedMeasurements_item.__ref === incoming_semanticCalculatedMeasurements_item.__ref)) {
7429
+ const equals_semanticGroupings_items = equalsArray(existing_semanticGroupings, incoming_semanticGroupings, (existing_semanticGroupings_item, incoming_semanticGroupings_item) => {
7430
+ if (!(existing_semanticGroupings_item.__ref === incoming_semanticGroupings_item.__ref)) {
6696
7431
  return false;
6697
7432
  }
6698
7433
  });
6699
- if (equals_semanticCalculatedMeasurements_items === false) {
7434
+ if (equals_semanticGroupings_items === false) {
6700
7435
  return false;
6701
7436
  }
6702
7437
  }
6703
- const existing_semanticDataObjects = existing.semanticDataObjects;
6704
- const incoming_semanticDataObjects = incoming.semanticDataObjects;
7438
+ const existing_semanticGroupingsUrl = existing.semanticGroupingsUrl;
7439
+ const incoming_semanticGroupingsUrl = incoming.semanticGroupingsUrl;
6705
7440
  // if at least one of these optionals is defined
6706
- if (existing_semanticDataObjects !== undefined || incoming_semanticDataObjects !== undefined) {
7441
+ if (existing_semanticGroupingsUrl !== undefined || incoming_semanticGroupingsUrl !== undefined) {
6707
7442
  // if one of these is not defined we know the other is defined and therefore
6708
7443
  // not equal
6709
- if (existing_semanticDataObjects === undefined || incoming_semanticDataObjects === undefined) {
7444
+ if (existing_semanticGroupingsUrl === undefined || incoming_semanticGroupingsUrl === undefined) {
6710
7445
  return false;
6711
7446
  }
6712
- const equals_semanticDataObjects_items = equalsArray(existing_semanticDataObjects, incoming_semanticDataObjects, (existing_semanticDataObjects_item, incoming_semanticDataObjects_item) => {
6713
- if (!(existing_semanticDataObjects_item.__ref === incoming_semanticDataObjects_item.__ref)) {
6714
- return false;
6715
- }
6716
- });
6717
- if (equals_semanticDataObjects_items === false) {
7447
+ if (!(existing_semanticGroupingsUrl === incoming_semanticGroupingsUrl)) {
6718
7448
  return false;
6719
7449
  }
6720
7450
  }
@@ -6815,19 +7545,25 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
6815
7545
  if (input.semanticCalculatedDimensions !== undefined) {
6816
7546
  const input_semanticCalculatedDimensions_length = input.semanticCalculatedDimensions.length;
6817
7547
  for (let i = 0; i < input_semanticCalculatedDimensions_length; i++) {
6818
- getTypeCacheKeys$e(rootKeySet, luvio, input.semanticCalculatedDimensions[i]);
7548
+ getTypeCacheKeys$f(rootKeySet, luvio, input.semanticCalculatedDimensions[i]);
6819
7549
  }
6820
7550
  }
6821
7551
  if (input.semanticCalculatedMeasurements !== undefined) {
6822
7552
  const input_semanticCalculatedMeasurements_length = input.semanticCalculatedMeasurements.length;
6823
7553
  for (let i = 0; i < input_semanticCalculatedMeasurements_length; i++) {
6824
- getTypeCacheKeys$d(rootKeySet, luvio, input.semanticCalculatedMeasurements[i]);
7554
+ getTypeCacheKeys$e(rootKeySet, luvio, input.semanticCalculatedMeasurements[i]);
6825
7555
  }
6826
7556
  }
6827
7557
  if (input.semanticDataObjects !== undefined) {
6828
7558
  const input_semanticDataObjects_length = input.semanticDataObjects.length;
6829
7559
  for (let i = 0; i < input_semanticDataObjects_length; i++) {
6830
- getTypeCacheKeys$c(rootKeySet, luvio, input.semanticDataObjects[i]);
7560
+ getTypeCacheKeys$d(rootKeySet, luvio, input.semanticDataObjects[i]);
7561
+ }
7562
+ }
7563
+ if (input.semanticGroupings !== undefined) {
7564
+ const input_semanticGroupings_length = input.semanticGroupings.length;
7565
+ for (let i = 0; i < input_semanticGroupings_length; i++) {
7566
+ getTypeCacheKeys$c(rootKeySet, luvio, input.semanticGroupings[i]);
6831
7567
  }
6832
7568
  }
6833
7569
  if (input.semanticLogicalViews !== undefined) {
@@ -6856,24 +7592,24 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
6856
7592
  }
6857
7593
  }
6858
7594
 
6859
- function select$b(luvio, params) {
6860
- return select$c();
7595
+ function select$c(luvio, params) {
7596
+ return select$d();
6861
7597
  }
6862
- function keyBuilder$d(luvio, params) {
6863
- return keyBuilder$e(luvio, {
7598
+ function keyBuilder$f(luvio, params) {
7599
+ return keyBuilder$g(luvio, {
6864
7600
  name: params.urlParams.modelApiNameOrId
6865
7601
  });
6866
7602
  }
6867
- function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
7603
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
6868
7604
  getTypeCacheKeys$5(storeKeyMap, luvio, response);
6869
7605
  }
6870
- function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
7606
+ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
6871
7607
  const { body } = response;
6872
- const key = keyBuilder$d(luvio, resourceParams);
7608
+ const key = keyBuilder$f(luvio, resourceParams);
6873
7609
  luvio.storeIngest(key, ingest$5, body);
6874
7610
  const snapshot = luvio.storeLookup({
6875
7611
  recordId: key,
6876
- node: select$b(),
7612
+ node: select$c(),
6877
7613
  variables: {},
6878
7614
  }, snapshotRefresh);
6879
7615
  if (process.env.NODE_ENV !== 'production') {
@@ -6884,13 +7620,13 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
6884
7620
  deepFreeze(snapshot.data);
6885
7621
  return snapshot;
6886
7622
  }
6887
- function ingestError$5(luvio, params, error, snapshotRefresh) {
6888
- const key = keyBuilder$d(luvio, params);
7623
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
7624
+ const key = keyBuilder$f(luvio, params);
6889
7625
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
6890
7626
  luvio.storeIngestError(key, errorSnapshot);
6891
7627
  return errorSnapshot;
6892
7628
  }
6893
- function createResourceRequest$7(config) {
7629
+ function createResourceRequest$8(config) {
6894
7630
  const headers = {};
6895
7631
  return {
6896
7632
  baseUri: '/services/data/v62.0',
@@ -6904,92 +7640,92 @@ function createResourceRequest$7(config) {
6904
7640
  };
6905
7641
  }
6906
7642
 
6907
- const adapterName$7 = 'getSemanticModel';
7643
+ const adapterName$8 = 'getSemanticModel';
6908
7644
  const getSemanticModel_ConfigPropertyMetadata = [
6909
7645
  generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
6910
7646
  generateParamConfigMetadata('fieldName', false, 1 /* QueryParameter */, 0 /* String */),
6911
7647
  generateParamConfigMetadata('includeModelContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
6912
7648
  ];
6913
- const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticModel_ConfigPropertyMetadata);
6914
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$9(getSemanticModel_ConfigPropertyMetadata);
6915
- function keyBuilder$c(luvio, config) {
6916
- const resourceParams = createResourceParams$7(config);
6917
- return keyBuilder$d(luvio, resourceParams);
7649
+ const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticModel_ConfigPropertyMetadata);
7650
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$a(getSemanticModel_ConfigPropertyMetadata);
7651
+ function keyBuilder$e(luvio, config) {
7652
+ const resourceParams = createResourceParams$8(config);
7653
+ return keyBuilder$f(luvio, resourceParams);
6918
7654
  }
6919
- function typeCheckConfig$7(untrustedConfig) {
7655
+ function typeCheckConfig$8(untrustedConfig) {
6920
7656
  const config = {};
6921
- typeCheckConfig$9(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
7657
+ typeCheckConfig$a(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
6922
7658
  return config;
6923
7659
  }
6924
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
7660
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
6925
7661
  if (!untrustedIsObject(untrustedConfig)) {
6926
7662
  return null;
6927
7663
  }
6928
7664
  if (process.env.NODE_ENV !== 'production') {
6929
7665
  validateConfig(untrustedConfig, configPropertyNames);
6930
7666
  }
6931
- const config = typeCheckConfig$7(untrustedConfig);
7667
+ const config = typeCheckConfig$8(untrustedConfig);
6932
7668
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
6933
7669
  return null;
6934
7670
  }
6935
7671
  return config;
6936
7672
  }
6937
- function adapterFragment$5(luvio, config) {
6938
- createResourceParams$7(config);
6939
- return select$b();
7673
+ function adapterFragment$6(luvio, config) {
7674
+ createResourceParams$8(config);
7675
+ return select$c();
6940
7676
  }
6941
- function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
6942
- const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
7677
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
7678
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
6943
7679
  config,
6944
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
7680
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
6945
7681
  });
6946
7682
  return luvio.storeBroadcast().then(() => snapshot);
6947
7683
  }
6948
- function onFetchResponseError$5(luvio, config, resourceParams, response) {
6949
- const snapshot = ingestError$5(luvio, resourceParams, response, {
7684
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
7685
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
6950
7686
  config,
6951
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
7687
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
6952
7688
  });
6953
7689
  return luvio.storeBroadcast().then(() => snapshot);
6954
7690
  }
6955
- function buildNetworkSnapshot$7(luvio, config, options) {
6956
- const resourceParams = createResourceParams$7(config);
6957
- const request = createResourceRequest$7(resourceParams);
7691
+ function buildNetworkSnapshot$8(luvio, config, options) {
7692
+ const resourceParams = createResourceParams$8(config);
7693
+ const request = createResourceRequest$8(resourceParams);
6958
7694
  return luvio.dispatchResourceRequest(request, options)
6959
7695
  .then((response) => {
6960
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
7696
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
6961
7697
  const cache = new StoreKeyMap();
6962
- getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
7698
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
6963
7699
  return cache;
6964
7700
  });
6965
7701
  }, (response) => {
6966
- return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
7702
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
6967
7703
  });
6968
7704
  }
6969
- function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
6970
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
7705
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
7706
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
6971
7707
  }
6972
- function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
7708
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
6973
7709
  const { luvio, config } = context;
6974
7710
  const selector = {
6975
- recordId: keyBuilder$c(luvio, config),
6976
- node: adapterFragment$5(luvio, config),
7711
+ recordId: keyBuilder$e(luvio, config),
7712
+ node: adapterFragment$6(luvio, config),
6977
7713
  variables: {},
6978
7714
  };
6979
7715
  const cacheSnapshot = storeLookup(selector, {
6980
7716
  config,
6981
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
7717
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
6982
7718
  });
6983
7719
  return cacheSnapshot;
6984
7720
  }
6985
7721
  const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModel(untrustedConfig, requestContext) {
6986
- const config = validateAdapterConfig$7(untrustedConfig, getSemanticModel_ConfigPropertyNames);
7722
+ const config = validateAdapterConfig$8(untrustedConfig, getSemanticModel_ConfigPropertyNames);
6987
7723
  // Invalid or incomplete config
6988
7724
  if (config === null) {
6989
7725
  return null;
6990
7726
  }
6991
7727
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
6992
- buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
7728
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
6993
7729
  };
6994
7730
 
6995
7731
  function validate$7(obj, path = 'SemanticTimeRangeOutputRepresentation') {
@@ -7073,7 +7809,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
7073
7809
  for (let i = 0; i < obj_filters.length; i++) {
7074
7810
  const obj_filters_item = obj_filters[i];
7075
7811
  const path_filters_item = path_filters + '[' + i + ']';
7076
- const referencepath_filters_itemValidationError = validate$q(obj_filters_item, path_filters_item);
7812
+ const referencepath_filters_itemValidationError = validate$v(obj_filters_item, path_filters_item);
7077
7813
  if (referencepath_filters_itemValidationError !== null) {
7078
7814
  let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
7079
7815
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -7138,19 +7874,19 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
7138
7874
  return v_error === undefined ? null : v_error;
7139
7875
  }
7140
7876
  const RepresentationType$4 = 'SemanticSubMetricOutputRepresentation';
7141
- function keyBuilder$b(luvio, config) {
7877
+ function keyBuilder$d(luvio, config) {
7142
7878
  return keyPrefix + '::' + RepresentationType$4 + ':' + config.name;
7143
7879
  }
7144
7880
  function keyBuilderFromType(luvio, object) {
7145
7881
  const keyParams = {
7146
7882
  name: object.id
7147
7883
  };
7148
- return keyBuilder$b(luvio, keyParams);
7884
+ return keyBuilder$d(luvio, keyParams);
7149
7885
  }
7150
7886
  function normalize$4(input, existing, path, luvio, store, timestamp) {
7151
7887
  return input;
7152
7888
  }
7153
- const select$a = function SemanticSubMetricOutputRepresentationSelect() {
7889
+ const select$b = function SemanticSubMetricOutputRepresentationSelect() {
7154
7890
  return {
7155
7891
  kind: 'Fragment',
7156
7892
  version: VERSION$4,
@@ -7238,7 +7974,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
7238
7974
  }
7239
7975
  return input;
7240
7976
  }
7241
- const select$9 = function SemanticSubMetricsByMetricOutputRepresentationSelect() {
7977
+ const select$a = function SemanticSubMetricsByMetricOutputRepresentationSelect() {
7242
7978
  return {
7243
7979
  kind: 'Fragment',
7244
7980
  version: VERSION$3,
@@ -7254,7 +7990,7 @@ const select$9 = function SemanticSubMetricsByMetricOutputRepresentationSelect()
7254
7990
  kind: 'Link',
7255
7991
  plural: true,
7256
7992
  required: false,
7257
- fragment: select$a()
7993
+ fragment: select$b()
7258
7994
  }
7259
7995
  ]
7260
7996
  };
@@ -7366,7 +8102,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
7366
8102
  }
7367
8103
  return input;
7368
8104
  }
7369
- const select$8 = function SemanticSubMetricsByMetricCollectionOutputRepresentationSelect() {
8105
+ const select$9 = function SemanticSubMetricsByMetricCollectionOutputRepresentationSelect() {
7370
8106
  return {
7371
8107
  kind: 'Fragment',
7372
8108
  version: VERSION$2,
@@ -7377,7 +8113,7 @@ const select$8 = function SemanticSubMetricsByMetricCollectionOutputRepresentati
7377
8113
  kind: 'Link',
7378
8114
  plural: true,
7379
8115
  required: false,
7380
- fragment: select$9()
8116
+ fragment: select$a()
7381
8117
  }
7382
8118
  ]
7383
8119
  };
@@ -7431,22 +8167,22 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
7431
8167
  }
7432
8168
  }
7433
8169
 
7434
- function select$7(luvio, params) {
7435
- return select$8();
8170
+ function select$8(luvio, params) {
8171
+ return select$9();
7436
8172
  }
7437
- function keyBuilder$a(luvio, params) {
8173
+ function keyBuilder$c(luvio, params) {
7438
8174
  return keyPrefix + '::SemanticSubMetricsByMetricCollectionOutputRepresentation:(' + 'metricApiNames:' + params.urlParams.metricApiNames + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
7439
8175
  }
7440
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
7441
- getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
8176
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
8177
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$c(luvio, resourceParams));
7442
8178
  }
7443
- function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
8179
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
7444
8180
  const { body } = response;
7445
- const key = keyBuilder$a(luvio, resourceParams);
8181
+ const key = keyBuilder$c(luvio, resourceParams);
7446
8182
  luvio.storeIngest(key, ingest$2, body);
7447
8183
  const snapshot = luvio.storeLookup({
7448
8184
  recordId: key,
7449
- node: select$7(),
8185
+ node: select$8(),
7450
8186
  variables: {},
7451
8187
  }, snapshotRefresh);
7452
8188
  if (process.env.NODE_ENV !== 'production') {
@@ -7457,13 +8193,13 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
7457
8193
  deepFreeze(snapshot.data);
7458
8194
  return snapshot;
7459
8195
  }
7460
- function ingestError$4(luvio, params, error, snapshotRefresh) {
7461
- const key = keyBuilder$a(luvio, params);
8196
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
8197
+ const key = keyBuilder$c(luvio, params);
7462
8198
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
7463
8199
  luvio.storeIngestError(key, errorSnapshot);
7464
8200
  return errorSnapshot;
7465
8201
  }
7466
- function createResourceRequest$6(config) {
8202
+ function createResourceRequest$7(config) {
7467
8203
  const headers = {};
7468
8204
  return {
7469
8205
  baseUri: '/services/data/v62.0',
@@ -7477,91 +8213,91 @@ function createResourceRequest$6(config) {
7477
8213
  };
7478
8214
  }
7479
8215
 
7480
- const adapterName$6 = 'getSemanticMetricsToSubMetrics';
8216
+ const adapterName$7 = 'getSemanticMetricsToSubMetrics';
7481
8217
  const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
7482
8218
  generateParamConfigMetadata('metricApiNames', true, 0 /* UrlParameter */, 0 /* String */),
7483
8219
  generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
7484
8220
  ];
7485
- const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
7486
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$9(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
7487
- function keyBuilder$9(luvio, config) {
7488
- const resourceParams = createResourceParams$6(config);
7489
- return keyBuilder$a(luvio, resourceParams);
8221
+ const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
8222
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$a(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
8223
+ function keyBuilder$b(luvio, config) {
8224
+ const resourceParams = createResourceParams$7(config);
8225
+ return keyBuilder$c(luvio, resourceParams);
7490
8226
  }
7491
- function typeCheckConfig$6(untrustedConfig) {
8227
+ function typeCheckConfig$7(untrustedConfig) {
7492
8228
  const config = {};
7493
- typeCheckConfig$9(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
8229
+ typeCheckConfig$a(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
7494
8230
  return config;
7495
8231
  }
7496
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
8232
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
7497
8233
  if (!untrustedIsObject(untrustedConfig)) {
7498
8234
  return null;
7499
8235
  }
7500
8236
  if (process.env.NODE_ENV !== 'production') {
7501
8237
  validateConfig(untrustedConfig, configPropertyNames);
7502
8238
  }
7503
- const config = typeCheckConfig$6(untrustedConfig);
8239
+ const config = typeCheckConfig$7(untrustedConfig);
7504
8240
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
7505
8241
  return null;
7506
8242
  }
7507
8243
  return config;
7508
8244
  }
7509
- function adapterFragment$4(luvio, config) {
7510
- createResourceParams$6(config);
7511
- return select$7();
8245
+ function adapterFragment$5(luvio, config) {
8246
+ createResourceParams$7(config);
8247
+ return select$8();
7512
8248
  }
7513
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
7514
- const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
8249
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
8250
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
7515
8251
  config,
7516
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
8252
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
7517
8253
  });
7518
8254
  return luvio.storeBroadcast().then(() => snapshot);
7519
8255
  }
7520
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
7521
- const snapshot = ingestError$4(luvio, resourceParams, response, {
8256
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
8257
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
7522
8258
  config,
7523
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
8259
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
7524
8260
  });
7525
8261
  return luvio.storeBroadcast().then(() => snapshot);
7526
8262
  }
7527
- function buildNetworkSnapshot$6(luvio, config, options) {
7528
- const resourceParams = createResourceParams$6(config);
7529
- const request = createResourceRequest$6(resourceParams);
8263
+ function buildNetworkSnapshot$7(luvio, config, options) {
8264
+ const resourceParams = createResourceParams$7(config);
8265
+ const request = createResourceRequest$7(resourceParams);
7530
8266
  return luvio.dispatchResourceRequest(request, options)
7531
8267
  .then((response) => {
7532
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
8268
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
7533
8269
  const cache = new StoreKeyMap();
7534
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
8270
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
7535
8271
  return cache;
7536
8272
  });
7537
8273
  }, (response) => {
7538
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
8274
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
7539
8275
  });
7540
8276
  }
7541
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
7542
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
8277
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
8278
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
7543
8279
  }
7544
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
8280
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
7545
8281
  const { luvio, config } = context;
7546
8282
  const selector = {
7547
- recordId: keyBuilder$9(luvio, config),
7548
- node: adapterFragment$4(luvio, config),
8283
+ recordId: keyBuilder$b(luvio, config),
8284
+ node: adapterFragment$5(luvio, config),
7549
8285
  variables: {},
7550
8286
  };
7551
8287
  const cacheSnapshot = storeLookup(selector, {
7552
8288
  config,
7553
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
8289
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
7554
8290
  });
7555
8291
  return cacheSnapshot;
7556
8292
  }
7557
8293
  const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsToSubMetrics(untrustedConfig, requestContext) {
7558
- const config = validateAdapterConfig$6(untrustedConfig, getSemanticMetricsToSubMetrics_ConfigPropertyNames);
8294
+ const config = validateAdapterConfig$7(untrustedConfig, getSemanticMetricsToSubMetrics_ConfigPropertyNames);
7559
8295
  // Invalid or incomplete config
7560
8296
  if (config === null) {
7561
8297
  return null;
7562
8298
  }
7563
8299
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
7564
- buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
8300
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
7565
8301
  };
7566
8302
 
7567
8303
  const VERSION$1 = "a6709a9f16e02d0d8e3d8423ebc79c2b";
@@ -7609,7 +8345,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
7609
8345
  }
7610
8346
  return input;
7611
8347
  }
7612
- const select$6 = function SemanticMetricCollectionOutputRepresentationSelect() {
8348
+ const select$7 = function SemanticMetricCollectionOutputRepresentationSelect() {
7613
8349
  return {
7614
8350
  kind: 'Fragment',
7615
8351
  version: VERSION$1,
@@ -7620,7 +8356,7 @@ const select$6 = function SemanticMetricCollectionOutputRepresentationSelect() {
7620
8356
  kind: 'Link',
7621
8357
  plural: true,
7622
8358
  required: false,
7623
- fragment: select$e()
8359
+ fragment: select$f()
7624
8360
  }
7625
8361
  ]
7626
8362
  };
@@ -7674,22 +8410,22 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
7674
8410
  }
7675
8411
  }
7676
8412
 
7677
- function select$5(luvio, params) {
7678
- return select$6();
8413
+ function select$6(luvio, params) {
8414
+ return select$7();
7679
8415
  }
7680
- function keyBuilder$8(luvio, params) {
8416
+ function keyBuilder$a(luvio, params) {
7681
8417
  return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
7682
8418
  }
7683
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
7684
- getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
8419
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
8420
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
7685
8421
  }
7686
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
8422
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
7687
8423
  const { body } = response;
7688
- const key = keyBuilder$8(luvio, resourceParams);
8424
+ const key = keyBuilder$a(luvio, resourceParams);
7689
8425
  luvio.storeIngest(key, ingest$1, body);
7690
8426
  const snapshot = luvio.storeLookup({
7691
8427
  recordId: key,
7692
- node: select$5(),
8428
+ node: select$6(),
7693
8429
  variables: {},
7694
8430
  }, snapshotRefresh);
7695
8431
  if (process.env.NODE_ENV !== 'production') {
@@ -7700,13 +8436,13 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
7700
8436
  deepFreeze(snapshot.data);
7701
8437
  return snapshot;
7702
8438
  }
7703
- function ingestError$3(luvio, params, error, snapshotRefresh) {
7704
- const key = keyBuilder$8(luvio, params);
8439
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
8440
+ const key = keyBuilder$a(luvio, params);
7705
8441
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
7706
8442
  luvio.storeIngestError(key, errorSnapshot);
7707
8443
  return errorSnapshot;
7708
8444
  }
7709
- function createResourceRequest$5(config) {
8445
+ function createResourceRequest$6(config) {
7710
8446
  const headers = {};
7711
8447
  return {
7712
8448
  baseUri: '/services/data/v62.0',
@@ -7720,110 +8456,110 @@ function createResourceRequest$5(config) {
7720
8456
  };
7721
8457
  }
7722
8458
 
7723
- const adapterName$5 = 'getSemanticMetrics';
8459
+ const adapterName$6 = 'getSemanticMetrics';
7724
8460
  const getSemanticMetrics_ConfigPropertyMetadata = [
7725
8461
  generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
7726
8462
  ];
7727
- const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSemanticMetrics_ConfigPropertyMetadata);
7728
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$9(getSemanticMetrics_ConfigPropertyMetadata);
7729
- function keyBuilder$7(luvio, config) {
7730
- const resourceParams = createResourceParams$5(config);
7731
- return keyBuilder$8(luvio, resourceParams);
8463
+ const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticMetrics_ConfigPropertyMetadata);
8464
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$a(getSemanticMetrics_ConfigPropertyMetadata);
8465
+ function keyBuilder$9(luvio, config) {
8466
+ const resourceParams = createResourceParams$6(config);
8467
+ return keyBuilder$a(luvio, resourceParams);
7732
8468
  }
7733
- function typeCheckConfig$5(untrustedConfig) {
8469
+ function typeCheckConfig$6(untrustedConfig) {
7734
8470
  const config = {};
7735
- typeCheckConfig$9(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
8471
+ typeCheckConfig$a(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
7736
8472
  return config;
7737
8473
  }
7738
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
8474
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
7739
8475
  if (!untrustedIsObject(untrustedConfig)) {
7740
8476
  return null;
7741
8477
  }
7742
8478
  if (process.env.NODE_ENV !== 'production') {
7743
8479
  validateConfig(untrustedConfig, configPropertyNames);
7744
8480
  }
7745
- const config = typeCheckConfig$5(untrustedConfig);
8481
+ const config = typeCheckConfig$6(untrustedConfig);
7746
8482
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
7747
8483
  return null;
7748
8484
  }
7749
8485
  return config;
7750
8486
  }
7751
- function adapterFragment$3(luvio, config) {
7752
- createResourceParams$5(config);
7753
- return select$5();
8487
+ function adapterFragment$4(luvio, config) {
8488
+ createResourceParams$6(config);
8489
+ return select$6();
7754
8490
  }
7755
- function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
7756
- const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
8491
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
8492
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
7757
8493
  config,
7758
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
8494
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
7759
8495
  });
7760
8496
  return luvio.storeBroadcast().then(() => snapshot);
7761
8497
  }
7762
- function onFetchResponseError$3(luvio, config, resourceParams, response) {
7763
- const snapshot = ingestError$3(luvio, resourceParams, response, {
8498
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
8499
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
7764
8500
  config,
7765
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
8501
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
7766
8502
  });
7767
8503
  return luvio.storeBroadcast().then(() => snapshot);
7768
8504
  }
7769
- function buildNetworkSnapshot$5(luvio, config, options) {
7770
- const resourceParams = createResourceParams$5(config);
7771
- const request = createResourceRequest$5(resourceParams);
8505
+ function buildNetworkSnapshot$6(luvio, config, options) {
8506
+ const resourceParams = createResourceParams$6(config);
8507
+ const request = createResourceRequest$6(resourceParams);
7772
8508
  return luvio.dispatchResourceRequest(request, options)
7773
8509
  .then((response) => {
7774
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
8510
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
7775
8511
  const cache = new StoreKeyMap();
7776
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
8512
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
7777
8513
  return cache;
7778
8514
  });
7779
8515
  }, (response) => {
7780
- return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
8516
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
7781
8517
  });
7782
8518
  }
7783
- function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
7784
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
8519
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
8520
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
7785
8521
  }
7786
- function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
8522
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
7787
8523
  const { luvio, config } = context;
7788
8524
  const selector = {
7789
- recordId: keyBuilder$7(luvio, config),
7790
- node: adapterFragment$3(luvio, config),
8525
+ recordId: keyBuilder$9(luvio, config),
8526
+ node: adapterFragment$4(luvio, config),
7791
8527
  variables: {},
7792
8528
  };
7793
8529
  const cacheSnapshot = storeLookup(selector, {
7794
8530
  config,
7795
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
8531
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
7796
8532
  });
7797
8533
  return cacheSnapshot;
7798
8534
  }
7799
8535
  const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetrics(untrustedConfig, requestContext) {
7800
- const config = validateAdapterConfig$5(untrustedConfig, getSemanticMetrics_ConfigPropertyNames);
8536
+ const config = validateAdapterConfig$6(untrustedConfig, getSemanticMetrics_ConfigPropertyNames);
7801
8537
  // Invalid or incomplete config
7802
8538
  if (config === null) {
7803
8539
  return null;
7804
8540
  }
7805
8541
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
7806
- buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
8542
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
7807
8543
  };
7808
8544
 
7809
- function select$4(luvio, params) {
7810
- return select$e();
8545
+ function select$5(luvio, params) {
8546
+ return select$f();
7811
8547
  }
7812
- function keyBuilder$6(luvio, params) {
7813
- return keyBuilder$g(luvio, {
8548
+ function keyBuilder$8(luvio, params) {
8549
+ return keyBuilder$i(luvio, {
7814
8550
  name: params.urlParams.metricNameOrId
7815
8551
  });
7816
8552
  }
7817
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
8553
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
7818
8554
  getTypeCacheKeys$7(storeKeyMap, luvio, response);
7819
8555
  }
7820
- function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
8556
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
7821
8557
  const { body } = response;
7822
- const key = keyBuilder$6(luvio, resourceParams);
8558
+ const key = keyBuilder$8(luvio, resourceParams);
7823
8559
  luvio.storeIngest(key, ingest$7, body);
7824
8560
  const snapshot = luvio.storeLookup({
7825
8561
  recordId: key,
7826
- node: select$4(),
8562
+ node: select$5(),
7827
8563
  variables: {},
7828
8564
  }, snapshotRefresh);
7829
8565
  if (process.env.NODE_ENV !== 'production') {
@@ -7834,13 +8570,13 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
7834
8570
  deepFreeze(snapshot.data);
7835
8571
  return snapshot;
7836
8572
  }
7837
- function ingestError$2(luvio, params, error, snapshotRefresh) {
7838
- const key = keyBuilder$6(luvio, params);
8573
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
8574
+ const key = keyBuilder$8(luvio, params);
7839
8575
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
7840
8576
  luvio.storeIngestError(key, errorSnapshot);
7841
8577
  return errorSnapshot;
7842
8578
  }
7843
- function createResourceRequest$4(config) {
8579
+ function createResourceRequest$5(config) {
7844
8580
  const headers = {};
7845
8581
  return {
7846
8582
  baseUri: '/services/data/v62.0',
@@ -7854,91 +8590,91 @@ function createResourceRequest$4(config) {
7854
8590
  };
7855
8591
  }
7856
8592
 
7857
- const adapterName$4 = 'getSemanticMetric';
8593
+ const adapterName$5 = 'getSemanticMetric';
7858
8594
  const getSemanticMetric_ConfigPropertyMetadata = [
7859
8595
  generateParamConfigMetadata('metricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
7860
8596
  generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
7861
8597
  ];
7862
- const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSemanticMetric_ConfigPropertyMetadata);
7863
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$9(getSemanticMetric_ConfigPropertyMetadata);
7864
- function keyBuilder$5(luvio, config) {
7865
- const resourceParams = createResourceParams$4(config);
7866
- return keyBuilder$6(luvio, resourceParams);
8598
+ const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSemanticMetric_ConfigPropertyMetadata);
8599
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$a(getSemanticMetric_ConfigPropertyMetadata);
8600
+ function keyBuilder$7(luvio, config) {
8601
+ const resourceParams = createResourceParams$5(config);
8602
+ return keyBuilder$8(luvio, resourceParams);
7867
8603
  }
7868
- function typeCheckConfig$4(untrustedConfig) {
8604
+ function typeCheckConfig$5(untrustedConfig) {
7869
8605
  const config = {};
7870
- typeCheckConfig$9(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
8606
+ typeCheckConfig$a(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
7871
8607
  return config;
7872
8608
  }
7873
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
8609
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
7874
8610
  if (!untrustedIsObject(untrustedConfig)) {
7875
8611
  return null;
7876
8612
  }
7877
8613
  if (process.env.NODE_ENV !== 'production') {
7878
8614
  validateConfig(untrustedConfig, configPropertyNames);
7879
8615
  }
7880
- const config = typeCheckConfig$4(untrustedConfig);
8616
+ const config = typeCheckConfig$5(untrustedConfig);
7881
8617
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
7882
8618
  return null;
7883
8619
  }
7884
8620
  return config;
7885
8621
  }
7886
- function adapterFragment$2(luvio, config) {
7887
- createResourceParams$4(config);
7888
- return select$4();
8622
+ function adapterFragment$3(luvio, config) {
8623
+ createResourceParams$5(config);
8624
+ return select$5();
7889
8625
  }
7890
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
7891
- const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
8626
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
8627
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
7892
8628
  config,
7893
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
8629
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
7894
8630
  });
7895
8631
  return luvio.storeBroadcast().then(() => snapshot);
7896
8632
  }
7897
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
7898
- const snapshot = ingestError$2(luvio, resourceParams, response, {
8633
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
8634
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
7899
8635
  config,
7900
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
8636
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
7901
8637
  });
7902
8638
  return luvio.storeBroadcast().then(() => snapshot);
7903
8639
  }
7904
- function buildNetworkSnapshot$4(luvio, config, options) {
7905
- const resourceParams = createResourceParams$4(config);
7906
- const request = createResourceRequest$4(resourceParams);
8640
+ function buildNetworkSnapshot$5(luvio, config, options) {
8641
+ const resourceParams = createResourceParams$5(config);
8642
+ const request = createResourceRequest$5(resourceParams);
7907
8643
  return luvio.dispatchResourceRequest(request, options)
7908
8644
  .then((response) => {
7909
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
8645
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
7910
8646
  const cache = new StoreKeyMap();
7911
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
8647
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
7912
8648
  return cache;
7913
8649
  });
7914
8650
  }, (response) => {
7915
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
8651
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
7916
8652
  });
7917
8653
  }
7918
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
7919
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
8654
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
8655
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
7920
8656
  }
7921
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
8657
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
7922
8658
  const { luvio, config } = context;
7923
8659
  const selector = {
7924
- recordId: keyBuilder$5(luvio, config),
7925
- node: adapterFragment$2(luvio, config),
8660
+ recordId: keyBuilder$7(luvio, config),
8661
+ node: adapterFragment$3(luvio, config),
7926
8662
  variables: {},
7927
8663
  };
7928
8664
  const cacheSnapshot = storeLookup(selector, {
7929
8665
  config,
7930
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
8666
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
7931
8667
  });
7932
8668
  return cacheSnapshot;
7933
8669
  }
7934
8670
  const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetric(untrustedConfig, requestContext) {
7935
- const config = validateAdapterConfig$4(untrustedConfig, getSemanticMetric_ConfigPropertyNames);
8671
+ const config = validateAdapterConfig$5(untrustedConfig, getSemanticMetric_ConfigPropertyNames);
7936
8672
  // Invalid or incomplete config
7937
8673
  if (config === null) {
7938
8674
  return null;
7939
8675
  }
7940
8676
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
7941
- buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
8677
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
7942
8678
  };
7943
8679
 
7944
8680
  const VERSION = "542f239a7dc422c67d6cdffb0ff866eb";
@@ -7986,7 +8722,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
7986
8722
  }
7987
8723
  return input;
7988
8724
  }
7989
- const select$3 = function SemanticSubMetricCollectionOutputRepresentationSelect() {
8725
+ const select$4 = function SemanticSubMetricCollectionOutputRepresentationSelect() {
7990
8726
  return {
7991
8727
  kind: 'Fragment',
7992
8728
  version: VERSION,
@@ -7997,7 +8733,7 @@ const select$3 = function SemanticSubMetricCollectionOutputRepresentationSelect(
7997
8733
  kind: 'Link',
7998
8734
  plural: true,
7999
8735
  required: false,
8000
- fragment: select$a()
8736
+ fragment: select$b()
8001
8737
  }
8002
8738
  ]
8003
8739
  };
@@ -8051,22 +8787,22 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
8051
8787
  }
8052
8788
  }
8053
8789
 
8054
- function select$2(luvio, params) {
8055
- return select$3();
8790
+ function select$3(luvio, params) {
8791
+ return select$4();
8056
8792
  }
8057
- function keyBuilder$4(luvio, params) {
8793
+ function keyBuilder$6(luvio, params) {
8058
8794
  return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
8059
8795
  }
8060
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
8061
- getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
8796
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
8797
+ getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
8062
8798
  }
8063
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
8799
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
8064
8800
  const { body } = response;
8065
- const key = keyBuilder$4(luvio, resourceParams);
8801
+ const key = keyBuilder$6(luvio, resourceParams);
8066
8802
  luvio.storeIngest(key, ingest, body);
8067
8803
  const snapshot = luvio.storeLookup({
8068
8804
  recordId: key,
8069
- node: select$2(),
8805
+ node: select$3(),
8070
8806
  variables: {},
8071
8807
  }, snapshotRefresh);
8072
8808
  if (process.env.NODE_ENV !== 'production') {
@@ -8077,13 +8813,13 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
8077
8813
  deepFreeze(snapshot.data);
8078
8814
  return snapshot;
8079
8815
  }
8080
- function ingestError$1(luvio, params, error, snapshotRefresh) {
8081
- const key = keyBuilder$4(luvio, params);
8816
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
8817
+ const key = keyBuilder$6(luvio, params);
8082
8818
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
8083
8819
  luvio.storeIngestError(key, errorSnapshot);
8084
8820
  return errorSnapshot;
8085
8821
  }
8086
- function createResourceRequest$3(config) {
8822
+ function createResourceRequest$4(config) {
8087
8823
  const headers = {};
8088
8824
  return {
8089
8825
  baseUri: '/services/data/v62.0',
@@ -8097,90 +8833,90 @@ function createResourceRequest$3(config) {
8097
8833
  };
8098
8834
  }
8099
8835
 
8100
- const adapterName$3 = 'getSemanticSubMetrics';
8836
+ const adapterName$4 = 'getSemanticSubMetrics';
8101
8837
  const getSemanticSubMetrics_ConfigPropertyMetadata = [
8102
8838
  generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
8103
8839
  ];
8104
- const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticSubMetrics_ConfigPropertyMetadata);
8105
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$9(getSemanticSubMetrics_ConfigPropertyMetadata);
8106
- function keyBuilder$3(luvio, config) {
8107
- const resourceParams = createResourceParams$3(config);
8108
- return keyBuilder$4(luvio, resourceParams);
8840
+ const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSemanticSubMetrics_ConfigPropertyMetadata);
8841
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$a(getSemanticSubMetrics_ConfigPropertyMetadata);
8842
+ function keyBuilder$5(luvio, config) {
8843
+ const resourceParams = createResourceParams$4(config);
8844
+ return keyBuilder$6(luvio, resourceParams);
8109
8845
  }
8110
- function typeCheckConfig$3(untrustedConfig) {
8846
+ function typeCheckConfig$4(untrustedConfig) {
8111
8847
  const config = {};
8112
- typeCheckConfig$9(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
8848
+ typeCheckConfig$a(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
8113
8849
  return config;
8114
8850
  }
8115
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
8851
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
8116
8852
  if (!untrustedIsObject(untrustedConfig)) {
8117
8853
  return null;
8118
8854
  }
8119
8855
  if (process.env.NODE_ENV !== 'production') {
8120
8856
  validateConfig(untrustedConfig, configPropertyNames);
8121
8857
  }
8122
- const config = typeCheckConfig$3(untrustedConfig);
8858
+ const config = typeCheckConfig$4(untrustedConfig);
8123
8859
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
8124
8860
  return null;
8125
8861
  }
8126
8862
  return config;
8127
8863
  }
8128
- function adapterFragment$1(luvio, config) {
8129
- createResourceParams$3(config);
8130
- return select$2();
8864
+ function adapterFragment$2(luvio, config) {
8865
+ createResourceParams$4(config);
8866
+ return select$3();
8131
8867
  }
8132
- function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
8133
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
8868
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
8869
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
8134
8870
  config,
8135
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
8871
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
8136
8872
  });
8137
8873
  return luvio.storeBroadcast().then(() => snapshot);
8138
8874
  }
8139
- function onFetchResponseError$1(luvio, config, resourceParams, response) {
8140
- const snapshot = ingestError$1(luvio, resourceParams, response, {
8875
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
8876
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
8141
8877
  config,
8142
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
8878
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
8143
8879
  });
8144
8880
  return luvio.storeBroadcast().then(() => snapshot);
8145
8881
  }
8146
- function buildNetworkSnapshot$3(luvio, config, options) {
8147
- const resourceParams = createResourceParams$3(config);
8148
- const request = createResourceRequest$3(resourceParams);
8882
+ function buildNetworkSnapshot$4(luvio, config, options) {
8883
+ const resourceParams = createResourceParams$4(config);
8884
+ const request = createResourceRequest$4(resourceParams);
8149
8885
  return luvio.dispatchResourceRequest(request, options)
8150
8886
  .then((response) => {
8151
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
8887
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
8152
8888
  const cache = new StoreKeyMap();
8153
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
8889
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
8154
8890
  return cache;
8155
8891
  });
8156
8892
  }, (response) => {
8157
- return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
8893
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
8158
8894
  });
8159
8895
  }
8160
- function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
8161
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
8896
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
8897
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
8162
8898
  }
8163
- function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
8899
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
8164
8900
  const { luvio, config } = context;
8165
8901
  const selector = {
8166
- recordId: keyBuilder$3(luvio, config),
8167
- node: adapterFragment$1(luvio, config),
8902
+ recordId: keyBuilder$5(luvio, config),
8903
+ node: adapterFragment$2(luvio, config),
8168
8904
  variables: {},
8169
8905
  };
8170
8906
  const cacheSnapshot = storeLookup(selector, {
8171
8907
  config,
8172
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
8908
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
8173
8909
  });
8174
8910
  return cacheSnapshot;
8175
8911
  }
8176
8912
  const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetrics(untrustedConfig, requestContext) {
8177
- const config = validateAdapterConfig$3(untrustedConfig, getSemanticSubMetrics_ConfigPropertyNames);
8913
+ const config = validateAdapterConfig$4(untrustedConfig, getSemanticSubMetrics_ConfigPropertyNames);
8178
8914
  // Invalid or incomplete config
8179
8915
  if (config === null) {
8180
8916
  return null;
8181
8917
  }
8182
8918
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
8183
- buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
8919
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
8184
8920
  };
8185
8921
 
8186
8922
  function validate$1(obj, path = 'SemanticFilterInputRepresentation') {
@@ -8243,19 +8979,19 @@ function validate(obj, path = 'SemanticTimeRangeInputRepresentation') {
8243
8979
  return v_error === undefined ? null : v_error;
8244
8980
  }
8245
8981
 
8246
- function select$1(luvio, params) {
8247
- return select$a();
8982
+ function select$2(luvio, params) {
8983
+ return select$b();
8248
8984
  }
8249
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
8985
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
8250
8986
  getTypeCacheKeys$4(storeKeyMap, luvio, response);
8251
8987
  }
8252
- function ingestSuccess$1(luvio, resourceParams, response) {
8988
+ function ingestSuccess$2(luvio, resourceParams, response) {
8253
8989
  const { body } = response;
8254
8990
  const key = keyBuilderFromType(luvio, body);
8255
8991
  luvio.storeIngest(key, ingest$4, body);
8256
8992
  const snapshot = luvio.storeLookup({
8257
8993
  recordId: key,
8258
- node: select$1(),
8994
+ node: select$2(),
8259
8995
  variables: {},
8260
8996
  });
8261
8997
  if (process.env.NODE_ENV !== 'production') {
@@ -8266,7 +9002,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
8266
9002
  deepFreeze(snapshot.data);
8267
9003
  return snapshot;
8268
9004
  }
8269
- function createResourceRequest$2(config) {
9005
+ function createResourceRequest$3(config) {
8270
9006
  const headers = {};
8271
9007
  return {
8272
9008
  baseUri: '/services/data/v62.0',
@@ -8280,7 +9016,7 @@ function createResourceRequest$2(config) {
8280
9016
  };
8281
9017
  }
8282
9018
 
8283
- const adapterName$2 = 'createSemanticSubMetric';
9019
+ const adapterName$3 = 'createSemanticSubMetric';
8284
9020
  const createSemanticSubMetric_ConfigPropertyMetadata = [
8285
9021
  generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
8286
9022
  generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
@@ -8291,11 +9027,11 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
8291
9027
  generateParamConfigMetadata('semanticMetricDefinitionApiName', false, 2 /* Body */, 0 /* String */),
8292
9028
  generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
8293
9029
  ];
8294
- const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createSemanticSubMetric_ConfigPropertyMetadata);
8295
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$9(createSemanticSubMetric_ConfigPropertyMetadata);
8296
- function typeCheckConfig$2(untrustedConfig) {
9030
+ const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createSemanticSubMetric_ConfigPropertyMetadata);
9031
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$a(createSemanticSubMetric_ConfigPropertyMetadata);
9032
+ function typeCheckConfig$3(untrustedConfig) {
8297
9033
  const config = {};
8298
- typeCheckConfig$9(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
9034
+ typeCheckConfig$a(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
8299
9035
  const untrustedConfig_filters = untrustedConfig.filters;
8300
9036
  if (ArrayIsArray$1(untrustedConfig_filters)) {
8301
9037
  const untrustedConfig_filters_array = [];
@@ -8315,30 +9051,30 @@ function typeCheckConfig$2(untrustedConfig) {
8315
9051
  }
8316
9052
  return config;
8317
9053
  }
8318
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
9054
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
8319
9055
  if (!untrustedIsObject(untrustedConfig)) {
8320
9056
  return null;
8321
9057
  }
8322
9058
  if (process.env.NODE_ENV !== 'production') {
8323
9059
  validateConfig(untrustedConfig, configPropertyNames);
8324
9060
  }
8325
- const config = typeCheckConfig$2(untrustedConfig);
9061
+ const config = typeCheckConfig$3(untrustedConfig);
8326
9062
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
8327
9063
  return null;
8328
9064
  }
8329
9065
  return config;
8330
9066
  }
8331
- function buildNetworkSnapshot$2(luvio, config, options) {
8332
- const resourceParams = createResourceParams$2(config);
8333
- const request = createResourceRequest$2(resourceParams);
9067
+ function buildNetworkSnapshot$3(luvio, config, options) {
9068
+ const resourceParams = createResourceParams$3(config);
9069
+ const request = createResourceRequest$3(resourceParams);
8334
9070
  return luvio.dispatchResourceRequest(request, options)
8335
9071
  .then((response) => {
8336
9072
  return luvio.handleSuccessResponse(() => {
8337
- const snapshot = ingestSuccess$1(luvio, resourceParams, response);
9073
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response);
8338
9074
  return luvio.storeBroadcast().then(() => snapshot);
8339
9075
  }, () => {
8340
9076
  const cache = new StoreKeyMap();
8341
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
9077
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
8342
9078
  return cache;
8343
9079
  });
8344
9080
  }, (response) => {
@@ -8348,22 +9084,22 @@ function buildNetworkSnapshot$2(luvio, config, options) {
8348
9084
  }
8349
9085
  const createSemanticSubMetricAdapterFactory = (luvio) => {
8350
9086
  return function createSemanticSubMetric(untrustedConfig) {
8351
- const config = validateAdapterConfig$2(untrustedConfig, createSemanticSubMetric_ConfigPropertyNames);
9087
+ const config = validateAdapterConfig$3(untrustedConfig, createSemanticSubMetric_ConfigPropertyNames);
8352
9088
  // Invalid or incomplete config
8353
9089
  if (config === null) {
8354
9090
  throw new Error('Invalid config for "createSemanticSubMetric"');
8355
9091
  }
8356
- return buildNetworkSnapshot$2(luvio, config);
9092
+ return buildNetworkSnapshot$3(luvio, config);
8357
9093
  };
8358
9094
  };
8359
9095
 
8360
- function keyBuilder$2(luvio, params) {
8361
- return keyBuilder$b(luvio, {
9096
+ function keyBuilder$4(luvio, params) {
9097
+ return keyBuilder$d(luvio, {
8362
9098
  name: params.urlParams.subMetricNameOrId
8363
9099
  });
8364
9100
  }
8365
- function getResponseCacheKeys$1(cacheKeyMap, luvio, resourceParams) {
8366
- const key = keyBuilder$2(luvio, resourceParams);
9101
+ function getResponseCacheKeys$2(cacheKeyMap, luvio, resourceParams) {
9102
+ const key = keyBuilder$4(luvio, resourceParams);
8367
9103
  cacheKeyMap.set(key, {
8368
9104
  namespace: keyPrefix,
8369
9105
  representationName: RepresentationType$4,
@@ -8371,10 +9107,10 @@ function getResponseCacheKeys$1(cacheKeyMap, luvio, resourceParams) {
8371
9107
  });
8372
9108
  }
8373
9109
  function evictSuccess(luvio, resourceParams) {
8374
- const key = keyBuilder$2(luvio, resourceParams);
9110
+ const key = keyBuilder$4(luvio, resourceParams);
8375
9111
  luvio.storeEvict(key);
8376
9112
  }
8377
- function createResourceRequest$1(config) {
9113
+ function createResourceRequest$2(config) {
8378
9114
  const headers = {};
8379
9115
  return {
8380
9116
  baseUri: '/services/data/v62.0',
@@ -8388,34 +9124,34 @@ function createResourceRequest$1(config) {
8388
9124
  };
8389
9125
  }
8390
9126
 
8391
- const adapterName$1 = 'deleteSemanticSubMetric';
9127
+ const adapterName$2 = 'deleteSemanticSubMetric';
8392
9128
  const deleteSemanticSubMetric_ConfigPropertyMetadata = [
8393
9129
  generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
8394
9130
  generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
8395
9131
  ];
8396
- const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, deleteSemanticSubMetric_ConfigPropertyMetadata);
8397
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$9(deleteSemanticSubMetric_ConfigPropertyMetadata);
8398
- function typeCheckConfig$1(untrustedConfig) {
9132
+ const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, deleteSemanticSubMetric_ConfigPropertyMetadata);
9133
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$a(deleteSemanticSubMetric_ConfigPropertyMetadata);
9134
+ function typeCheckConfig$2(untrustedConfig) {
8399
9135
  const config = {};
8400
- typeCheckConfig$9(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
9136
+ typeCheckConfig$a(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
8401
9137
  return config;
8402
9138
  }
8403
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
9139
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
8404
9140
  if (!untrustedIsObject(untrustedConfig)) {
8405
9141
  return null;
8406
9142
  }
8407
9143
  if (process.env.NODE_ENV !== 'production') {
8408
9144
  validateConfig(untrustedConfig, configPropertyNames);
8409
9145
  }
8410
- const config = typeCheckConfig$1(untrustedConfig);
9146
+ const config = typeCheckConfig$2(untrustedConfig);
8411
9147
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
8412
9148
  return null;
8413
9149
  }
8414
9150
  return config;
8415
9151
  }
8416
- function buildNetworkSnapshot$1(luvio, config, options) {
8417
- const resourceParams = createResourceParams$1(config);
8418
- const request = createResourceRequest$1(resourceParams);
9152
+ function buildNetworkSnapshot$2(luvio, config, options) {
9153
+ const resourceParams = createResourceParams$2(config);
9154
+ const request = createResourceRequest$2(resourceParams);
8419
9155
  return luvio.dispatchResourceRequest(request, options)
8420
9156
  .then(() => {
8421
9157
  return luvio.handleSuccessResponse(() => {
@@ -8423,7 +9159,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
8423
9159
  return luvio.storeBroadcast();
8424
9160
  }, () => {
8425
9161
  const cache = new StoreKeyMap();
8426
- getResponseCacheKeys$1(cache, luvio, resourceParams);
9162
+ getResponseCacheKeys$2(cache, luvio, resourceParams);
8427
9163
  return cache;
8428
9164
  });
8429
9165
  }, (response) => {
@@ -8433,30 +9169,163 @@ function buildNetworkSnapshot$1(luvio, config, options) {
8433
9169
  }
8434
9170
  const deleteSemanticSubMetricAdapterFactory = (luvio) => {
8435
9171
  return function SemanticAuthoringdeleteSemanticSubMetric(untrustedConfig) {
8436
- const config = validateAdapterConfig$1(untrustedConfig, deleteSemanticSubMetric_ConfigPropertyNames);
9172
+ const config = validateAdapterConfig$2(untrustedConfig, deleteSemanticSubMetric_ConfigPropertyNames);
8437
9173
  // Invalid or incomplete config
8438
9174
  if (config === null) {
8439
- throw new Error(`Invalid config for "${adapterName$1}"`);
9175
+ throw new Error(`Invalid config for "${adapterName$2}"`);
8440
9176
  }
8441
- return buildNetworkSnapshot$1(luvio, config);
9177
+ return buildNetworkSnapshot$2(luvio, config);
8442
9178
  };
8443
9179
  };
8444
9180
 
8445
- function select(luvio, params) {
8446
- return select$a();
9181
+ function select$1(luvio, params) {
9182
+ return select$b();
8447
9183
  }
8448
- function keyBuilder$1(luvio, params) {
8449
- return keyBuilder$b(luvio, {
9184
+ function keyBuilder$3(luvio, params) {
9185
+ return keyBuilder$d(luvio, {
8450
9186
  name: params.urlParams.subMetricNameOrId
8451
9187
  });
8452
9188
  }
8453
- function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
9189
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
8454
9190
  getTypeCacheKeys$4(storeKeyMap, luvio, response);
8455
9191
  }
9192
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
9193
+ const { body } = response;
9194
+ const key = keyBuilder$3(luvio, resourceParams);
9195
+ luvio.storeIngest(key, ingest$4, body);
9196
+ const snapshot = luvio.storeLookup({
9197
+ recordId: key,
9198
+ node: select$1(),
9199
+ variables: {},
9200
+ }, snapshotRefresh);
9201
+ if (process.env.NODE_ENV !== 'production') {
9202
+ if (snapshot.state !== 'Fulfilled') {
9203
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
9204
+ }
9205
+ }
9206
+ deepFreeze(snapshot.data);
9207
+ return snapshot;
9208
+ }
9209
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
9210
+ const key = keyBuilder$3(luvio, params);
9211
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
9212
+ luvio.storeIngestError(key, errorSnapshot);
9213
+ return errorSnapshot;
9214
+ }
9215
+ function createResourceRequest$1(config) {
9216
+ const headers = {};
9217
+ return {
9218
+ baseUri: '/services/data/v62.0',
9219
+ basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '',
9220
+ method: 'get',
9221
+ body: null,
9222
+ urlParams: config.urlParams,
9223
+ queryParams: {},
9224
+ headers,
9225
+ priority: 'normal',
9226
+ };
9227
+ }
9228
+
9229
+ const adapterName$1 = 'getSemanticSubMetric';
9230
+ const getSemanticSubMetric_ConfigPropertyMetadata = [
9231
+ generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
9232
+ generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
9233
+ ];
9234
+ const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSemanticSubMetric_ConfigPropertyMetadata);
9235
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$a(getSemanticSubMetric_ConfigPropertyMetadata);
9236
+ function keyBuilder$2(luvio, config) {
9237
+ const resourceParams = createResourceParams$1(config);
9238
+ return keyBuilder$3(luvio, resourceParams);
9239
+ }
9240
+ function typeCheckConfig$1(untrustedConfig) {
9241
+ const config = {};
9242
+ typeCheckConfig$a(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
9243
+ return config;
9244
+ }
9245
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
9246
+ if (!untrustedIsObject(untrustedConfig)) {
9247
+ return null;
9248
+ }
9249
+ if (process.env.NODE_ENV !== 'production') {
9250
+ validateConfig(untrustedConfig, configPropertyNames);
9251
+ }
9252
+ const config = typeCheckConfig$1(untrustedConfig);
9253
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
9254
+ return null;
9255
+ }
9256
+ return config;
9257
+ }
9258
+ function adapterFragment$1(luvio, config) {
9259
+ createResourceParams$1(config);
9260
+ return select$1();
9261
+ }
9262
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
9263
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
9264
+ config,
9265
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
9266
+ });
9267
+ return luvio.storeBroadcast().then(() => snapshot);
9268
+ }
9269
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
9270
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
9271
+ config,
9272
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
9273
+ });
9274
+ return luvio.storeBroadcast().then(() => snapshot);
9275
+ }
9276
+ function buildNetworkSnapshot$1(luvio, config, options) {
9277
+ const resourceParams = createResourceParams$1(config);
9278
+ const request = createResourceRequest$1(resourceParams);
9279
+ return luvio.dispatchResourceRequest(request, options)
9280
+ .then((response) => {
9281
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
9282
+ const cache = new StoreKeyMap();
9283
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
9284
+ return cache;
9285
+ });
9286
+ }, (response) => {
9287
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
9288
+ });
9289
+ }
9290
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
9291
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
9292
+ }
9293
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
9294
+ const { luvio, config } = context;
9295
+ const selector = {
9296
+ recordId: keyBuilder$2(luvio, config),
9297
+ node: adapterFragment$1(luvio, config),
9298
+ variables: {},
9299
+ };
9300
+ const cacheSnapshot = storeLookup(selector, {
9301
+ config,
9302
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
9303
+ });
9304
+ return cacheSnapshot;
9305
+ }
9306
+ const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetric(untrustedConfig, requestContext) {
9307
+ const config = validateAdapterConfig$1(untrustedConfig, getSemanticSubMetric_ConfigPropertyNames);
9308
+ // Invalid or incomplete config
9309
+ if (config === null) {
9310
+ return null;
9311
+ }
9312
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
9313
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
9314
+ };
9315
+
9316
+ function select(luvio, params) {
9317
+ return select$4();
9318
+ }
9319
+ function keyBuilder$1(luvio, params) {
9320
+ return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
9321
+ }
9322
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
9323
+ getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
9324
+ }
8456
9325
  function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
8457
9326
  const { body } = response;
8458
9327
  const key = keyBuilder$1(luvio, resourceParams);
8459
- luvio.storeIngest(key, ingest$4, body);
9328
+ luvio.storeIngest(key, ingest, body);
8460
9329
  const snapshot = luvio.storeLookup({
8461
9330
  recordId: key,
8462
9331
  node: select(),
@@ -8480,7 +9349,7 @@ function createResourceRequest(config) {
8480
9349
  const headers = {};
8481
9350
  return {
8482
9351
  baseUri: '/services/data/v62.0',
8483
- basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '',
9352
+ basePath: '/ssot/semantic/sub-metrics/' + config.urlParams.subMetricIds + '',
8484
9353
  method: 'get',
8485
9354
  body: null,
8486
9355
  urlParams: config.urlParams,
@@ -8490,20 +9359,19 @@ function createResourceRequest(config) {
8490
9359
  };
8491
9360
  }
8492
9361
 
8493
- const adapterName = 'getSemanticSubMetric';
8494
- const getSemanticSubMetric_ConfigPropertyMetadata = [
8495
- generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
8496
- generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
9362
+ const adapterName = 'getSemanticSubMetricsById';
9363
+ const getSemanticSubMetricsById_ConfigPropertyMetadata = [
9364
+ generateParamConfigMetadata('subMetricIds', true, 0 /* UrlParameter */, 0 /* String */),
8497
9365
  ];
8498
- const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSemanticSubMetric_ConfigPropertyMetadata);
8499
- const createResourceParams = /*#__PURE__*/ createResourceParams$9(getSemanticSubMetric_ConfigPropertyMetadata);
9366
+ const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSemanticSubMetricsById_ConfigPropertyMetadata);
9367
+ const createResourceParams = /*#__PURE__*/ createResourceParams$a(getSemanticSubMetricsById_ConfigPropertyMetadata);
8500
9368
  function keyBuilder(luvio, config) {
8501
9369
  const resourceParams = createResourceParams(config);
8502
9370
  return keyBuilder$1(luvio, resourceParams);
8503
9371
  }
8504
9372
  function typeCheckConfig(untrustedConfig) {
8505
9373
  const config = {};
8506
- typeCheckConfig$9(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
9374
+ typeCheckConfig$a(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
8507
9375
  return config;
8508
9376
  }
8509
9377
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -8552,7 +9420,7 @@ function buildNetworkSnapshot(luvio, config, options) {
8552
9420
  });
8553
9421
  }
8554
9422
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
8555
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
9423
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
8556
9424
  }
8557
9425
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
8558
9426
  const { luvio, config } = context;
@@ -8567,8 +9435,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
8567
9435
  });
8568
9436
  return cacheSnapshot;
8569
9437
  }
8570
- const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetric(untrustedConfig, requestContext) {
8571
- const config = validateAdapterConfig(untrustedConfig, getSemanticSubMetric_ConfigPropertyNames);
9438
+ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetricsById(untrustedConfig, requestContext) {
9439
+ const config = validateAdapterConfig(untrustedConfig, getSemanticSubMetricsById_ConfigPropertyNames);
8572
9440
  // Invalid or incomplete config
8573
9441
  if (config === null) {
8574
9442
  return null;
@@ -8577,4 +9445,4 @@ const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring
8577
9445
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
8578
9446
  };
8579
9447
 
8580
- export { createSemanticSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory };
9448
+ export { createSemanticSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory };