@salesforce/lds-adapters-industries-recordaggregation 1.324.0 → 1.325.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.
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$7, typeCheckConfig as typeCheckConfig$7, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$8, typeCheckConfig as typeCheckConfig$8, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3 } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -279,14 +279,14 @@ function validate$f(obj, path = 'RecordAggregationCreationOutputRepresentation')
279
279
  return v_error === undefined ? null : v_error;
280
280
  }
281
281
  const RepresentationType$6 = 'RecordAggregationCreationOutputRepresentation';
282
- function keyBuilder$9(luvio, config) {
282
+ function keyBuilder$b(luvio, config) {
283
283
  return keyPrefix + '::' + RepresentationType$6 + ':' + config.id;
284
284
  }
285
- function keyBuilderFromType$3(luvio, object) {
285
+ function keyBuilderFromType$4(luvio, object) {
286
286
  const keyParams = {
287
287
  id: object.recordAggregationDefinitionId
288
288
  };
289
- return keyBuilder$9(luvio, keyParams);
289
+ return keyBuilder$b(luvio, keyParams);
290
290
  }
291
291
  function normalize$6(input, existing, path, luvio, store, timestamp) {
292
292
  return input;
@@ -337,14 +337,14 @@ const ingest$6 = function RecordAggregationCreationOutputRepresentationIngest(in
337
337
  throw validateError;
338
338
  }
339
339
  }
340
- const key = keyBuilderFromType$3(luvio, input);
340
+ const key = keyBuilderFromType$4(luvio, input);
341
341
  const ttlToUse = path.ttl !== undefined ? path.ttl : 100;
342
342
  ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "IndustriesRecordAggregation", VERSION$f, RepresentationType$6, equals$f);
343
343
  return createLink(key);
344
344
  };
345
345
  function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
346
346
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
347
- const rootKey = keyBuilderFromType$3(luvio, input);
347
+ const rootKey = keyBuilderFromType$4(luvio, input);
348
348
  rootKeySet.set(rootKey, {
349
349
  namespace: keyPrefix,
350
350
  representationName: RepresentationType$6,
@@ -355,12 +355,12 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
355
355
  function select$l(luvio, params) {
356
356
  return select$m();
357
357
  }
358
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
358
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
359
359
  getTypeCacheKeys$6(storeKeyMap, luvio, response);
360
360
  }
361
361
  function ingestSuccess$6(luvio, resourceParams, response) {
362
362
  const { body } = response;
363
- const key = keyBuilderFromType$3(luvio, body);
363
+ const key = keyBuilderFromType$4(luvio, body);
364
364
  luvio.storeIngest(key, ingest$6, body);
365
365
  const snapshot = luvio.storeLookup({
366
366
  recordId: key,
@@ -375,7 +375,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
375
375
  deepFreeze(snapshot.data);
376
376
  return snapshot;
377
377
  }
378
- function createResourceRequest$6(config) {
378
+ function createResourceRequest$7(config) {
379
379
  const headers = {};
380
380
  return {
381
381
  baseUri: '/services/data/v63.0',
@@ -389,17 +389,17 @@ function createResourceRequest$6(config) {
389
389
  };
390
390
  }
391
391
 
392
- const adapterName$6 = 'postRecordAggregationCreation';
392
+ const adapterName$7 = 'postRecordAggregationCreation';
393
393
  const postRecordAggregationCreation_ConfigPropertyMetadata = [
394
394
  generateParamConfigMetadata('aggregationObjects', true, 2 /* Body */, 4 /* Unsupported */, true),
395
395
  generateParamConfigMetadata('definitionDescription', false, 2 /* Body */, 0 /* String */),
396
396
  generateParamConfigMetadata('definitionDisplayName', true, 2 /* Body */, 0 /* String */),
397
397
  ];
398
- const postRecordAggregationCreation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, postRecordAggregationCreation_ConfigPropertyMetadata);
399
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(postRecordAggregationCreation_ConfigPropertyMetadata);
400
- function typeCheckConfig$6(untrustedConfig) {
398
+ const postRecordAggregationCreation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, postRecordAggregationCreation_ConfigPropertyMetadata);
399
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(postRecordAggregationCreation_ConfigPropertyMetadata);
400
+ function typeCheckConfig$7(untrustedConfig) {
401
401
  const config = {};
402
- typeCheckConfig$7(untrustedConfig, config, postRecordAggregationCreation_ConfigPropertyMetadata);
402
+ typeCheckConfig$8(untrustedConfig, config, postRecordAggregationCreation_ConfigPropertyMetadata);
403
403
  const untrustedConfig_aggregationObjects = untrustedConfig.aggregationObjects;
404
404
  if (ArrayIsArray$1(untrustedConfig_aggregationObjects)) {
405
405
  const untrustedConfig_aggregationObjects_array = [];
@@ -414,22 +414,22 @@ function typeCheckConfig$6(untrustedConfig) {
414
414
  }
415
415
  return config;
416
416
  }
417
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
417
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
418
418
  if (!untrustedIsObject(untrustedConfig)) {
419
419
  return null;
420
420
  }
421
421
  if (process.env.NODE_ENV !== 'production') {
422
422
  validateConfig(untrustedConfig, configPropertyNames);
423
423
  }
424
- const config = typeCheckConfig$6(untrustedConfig);
424
+ const config = typeCheckConfig$7(untrustedConfig);
425
425
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
426
426
  return null;
427
427
  }
428
428
  return config;
429
429
  }
430
- function buildNetworkSnapshot$6(luvio, config, options) {
431
- const resourceParams = createResourceParams$6(config);
432
- const request = createResourceRequest$6(resourceParams);
430
+ function buildNetworkSnapshot$7(luvio, config, options) {
431
+ const resourceParams = createResourceParams$7(config);
432
+ const request = createResourceRequest$7(resourceParams);
433
433
  return luvio.dispatchResourceRequest(request, options)
434
434
  .then((response) => {
435
435
  return luvio.handleSuccessResponse(() => {
@@ -437,7 +437,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
437
437
  return luvio.storeBroadcast().then(() => snapshot);
438
438
  }, () => {
439
439
  const cache = new StoreKeyMap();
440
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
440
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
441
441
  return cache;
442
442
  });
443
443
  }, (response) => {
@@ -447,12 +447,12 @@ function buildNetworkSnapshot$6(luvio, config, options) {
447
447
  }
448
448
  const postRecordAggregationCreationAdapterFactory = (luvio) => {
449
449
  return function postRecordAggregationCreation(untrustedConfig) {
450
- const config = validateAdapterConfig$6(untrustedConfig, postRecordAggregationCreation_ConfigPropertyNames);
450
+ const config = validateAdapterConfig$7(untrustedConfig, postRecordAggregationCreation_ConfigPropertyNames);
451
451
  // Invalid or incomplete config
452
452
  if (config === null) {
453
453
  throw new Error('Invalid config for "postRecordAggregationCreation"');
454
454
  }
455
- return buildNetworkSnapshot$6(luvio, config);
455
+ return buildNetworkSnapshot$7(luvio, config);
456
456
  };
457
457
  };
458
458
 
@@ -616,15 +616,15 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
616
616
  function select$i(luvio, params) {
617
617
  return select$j();
618
618
  }
619
- function keyBuilder$8(luvio, params) {
619
+ function keyBuilder$a(luvio, params) {
620
620
  return keyPrefix + '::RecordAggregationApplicableObjectsOutputRepresentation:(' + ')';
621
621
  }
622
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
623
- getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$8());
622
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
623
+ getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$a());
624
624
  }
625
625
  function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
626
626
  const { body } = response;
627
- const key = keyBuilder$8();
627
+ const key = keyBuilder$a();
628
628
  luvio.storeIngest(key, ingest$5, body);
629
629
  const snapshot = luvio.storeLookup({
630
630
  recordId: key,
@@ -640,12 +640,12 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
640
640
  return snapshot;
641
641
  }
642
642
  function ingestError$2(luvio, params, error, snapshotRefresh) {
643
- const key = keyBuilder$8();
643
+ const key = keyBuilder$a();
644
644
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
645
645
  luvio.storeIngestError(key, errorSnapshot);
646
646
  return errorSnapshot;
647
647
  }
648
- function createResourceRequest$5(config) {
648
+ function createResourceRequest$6(config) {
649
649
  const headers = {};
650
650
  return {
651
651
  baseUri: '/services/data/v63.0',
@@ -659,57 +659,57 @@ function createResourceRequest$5(config) {
659
659
  };
660
660
  }
661
661
 
662
- const adapterName$5 = 'getRecordAggregationApplicableObjects';
662
+ const adapterName$6 = 'getRecordAggregationApplicableObjects';
663
663
  const getRecordAggregationApplicableObjects_ConfigPropertyMetadata = [];
664
- const getRecordAggregationApplicableObjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getRecordAggregationApplicableObjects_ConfigPropertyMetadata);
665
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(getRecordAggregationApplicableObjects_ConfigPropertyMetadata);
666
- function keyBuilder$7(luvio, config) {
667
- createResourceParams$5(config);
668
- return keyBuilder$8();
664
+ const getRecordAggregationApplicableObjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getRecordAggregationApplicableObjects_ConfigPropertyMetadata);
665
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(getRecordAggregationApplicableObjects_ConfigPropertyMetadata);
666
+ function keyBuilder$9(luvio, config) {
667
+ createResourceParams$6(config);
668
+ return keyBuilder$a();
669
669
  }
670
- function typeCheckConfig$5(untrustedConfig) {
670
+ function typeCheckConfig$6(untrustedConfig) {
671
671
  const config = {};
672
672
  return config;
673
673
  }
674
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
674
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
675
675
  if (!untrustedIsObject(untrustedConfig)) {
676
676
  return null;
677
677
  }
678
678
  if (process.env.NODE_ENV !== 'production') {
679
679
  validateConfig(untrustedConfig, configPropertyNames);
680
680
  }
681
- const config = typeCheckConfig$5();
681
+ const config = typeCheckConfig$6();
682
682
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
683
683
  return null;
684
684
  }
685
685
  return config;
686
686
  }
687
687
  function adapterFragment$2(luvio, config) {
688
- createResourceParams$5(config);
688
+ createResourceParams$6(config);
689
689
  return select$i();
690
690
  }
691
691
  function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
692
692
  const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
693
693
  config,
694
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
694
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
695
695
  });
696
696
  return luvio.storeBroadcast().then(() => snapshot);
697
697
  }
698
698
  function onFetchResponseError$2(luvio, config, resourceParams, response) {
699
699
  const snapshot = ingestError$2(luvio, resourceParams, response, {
700
700
  config,
701
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
701
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
702
702
  });
703
703
  return luvio.storeBroadcast().then(() => snapshot);
704
704
  }
705
- function buildNetworkSnapshot$5(luvio, config, options) {
706
- const resourceParams = createResourceParams$5(config);
707
- const request = createResourceRequest$5();
705
+ function buildNetworkSnapshot$6(luvio, config, options) {
706
+ const resourceParams = createResourceParams$6(config);
707
+ const request = createResourceRequest$6();
708
708
  return luvio.dispatchResourceRequest(request, options)
709
709
  .then((response) => {
710
710
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
711
711
  const cache = new StoreKeyMap();
712
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
712
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
713
713
  return cache;
714
714
  });
715
715
  }, (response) => {
@@ -717,23 +717,23 @@ function buildNetworkSnapshot$5(luvio, config, options) {
717
717
  });
718
718
  }
719
719
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
720
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
720
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
721
721
  }
722
722
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
723
723
  const { luvio, config } = context;
724
724
  const selector = {
725
- recordId: keyBuilder$7(luvio, config),
725
+ recordId: keyBuilder$9(luvio, config),
726
726
  node: adapterFragment$2(luvio, config),
727
727
  variables: {},
728
728
  };
729
729
  const cacheSnapshot = storeLookup(selector, {
730
730
  config,
731
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
731
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
732
732
  });
733
733
  return cacheSnapshot;
734
734
  }
735
735
  const getRecordAggregationApplicableObjectsAdapterFactory = (luvio) => function IndustriesRecordAggregation__getRecordAggregationApplicableObjects(untrustedConfig, requestContext) {
736
- const config = validateAdapterConfig$5(untrustedConfig, getRecordAggregationApplicableObjects_ConfigPropertyNames);
736
+ const config = validateAdapterConfig$6(untrustedConfig, getRecordAggregationApplicableObjects_ConfigPropertyNames);
737
737
  // Invalid or incomplete config
738
738
  if (config === null) {
739
739
  return null;
@@ -984,15 +984,15 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
984
984
  function select$f(luvio, params) {
985
985
  return select$g();
986
986
  }
987
- function keyBuilder$6(luvio, params) {
987
+ function keyBuilder$8(luvio, params) {
988
988
  return keyPrefix + '::RecordAggregationEntityApplicableFieldsOutputRepresentation:(' + 'objectName:' + params.urlParams.objectName + ')';
989
989
  }
990
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
991
- getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
990
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
991
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
992
992
  }
993
993
  function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
994
994
  const { body } = response;
995
- const key = keyBuilder$6(luvio, resourceParams);
995
+ const key = keyBuilder$8(luvio, resourceParams);
996
996
  luvio.storeIngest(key, ingest$4, body);
997
997
  const snapshot = luvio.storeLookup({
998
998
  recordId: key,
@@ -1008,12 +1008,12 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1008
1008
  return snapshot;
1009
1009
  }
1010
1010
  function ingestError$1(luvio, params, error, snapshotRefresh) {
1011
- const key = keyBuilder$6(luvio, params);
1011
+ const key = keyBuilder$8(luvio, params);
1012
1012
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1013
1013
  luvio.storeIngestError(key, errorSnapshot);
1014
1014
  return errorSnapshot;
1015
1015
  }
1016
- function createResourceRequest$4(config) {
1016
+ function createResourceRequest$5(config) {
1017
1017
  const headers = {};
1018
1018
  return {
1019
1019
  baseUri: '/services/data/v63.0',
@@ -1027,60 +1027,60 @@ function createResourceRequest$4(config) {
1027
1027
  };
1028
1028
  }
1029
1029
 
1030
- const adapterName$4 = 'getRecordAggregationEntityApplicableFields';
1030
+ const adapterName$5 = 'getRecordAggregationEntityApplicableFields';
1031
1031
  const getRecordAggregationEntityApplicableFields_ConfigPropertyMetadata = [
1032
1032
  generateParamConfigMetadata('objectName', true, 0 /* UrlParameter */, 0 /* String */),
1033
1033
  ];
1034
- const getRecordAggregationEntityApplicableFields_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getRecordAggregationEntityApplicableFields_ConfigPropertyMetadata);
1035
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(getRecordAggregationEntityApplicableFields_ConfigPropertyMetadata);
1036
- function keyBuilder$5(luvio, config) {
1037
- const resourceParams = createResourceParams$4(config);
1038
- return keyBuilder$6(luvio, resourceParams);
1034
+ const getRecordAggregationEntityApplicableFields_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getRecordAggregationEntityApplicableFields_ConfigPropertyMetadata);
1035
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(getRecordAggregationEntityApplicableFields_ConfigPropertyMetadata);
1036
+ function keyBuilder$7(luvio, config) {
1037
+ const resourceParams = createResourceParams$5(config);
1038
+ return keyBuilder$8(luvio, resourceParams);
1039
1039
  }
1040
- function typeCheckConfig$4(untrustedConfig) {
1040
+ function typeCheckConfig$5(untrustedConfig) {
1041
1041
  const config = {};
1042
- typeCheckConfig$7(untrustedConfig, config, getRecordAggregationEntityApplicableFields_ConfigPropertyMetadata);
1042
+ typeCheckConfig$8(untrustedConfig, config, getRecordAggregationEntityApplicableFields_ConfigPropertyMetadata);
1043
1043
  return config;
1044
1044
  }
1045
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1045
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
1046
1046
  if (!untrustedIsObject(untrustedConfig)) {
1047
1047
  return null;
1048
1048
  }
1049
1049
  if (process.env.NODE_ENV !== 'production') {
1050
1050
  validateConfig(untrustedConfig, configPropertyNames);
1051
1051
  }
1052
- const config = typeCheckConfig$4(untrustedConfig);
1052
+ const config = typeCheckConfig$5(untrustedConfig);
1053
1053
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1054
1054
  return null;
1055
1055
  }
1056
1056
  return config;
1057
1057
  }
1058
1058
  function adapterFragment$1(luvio, config) {
1059
- createResourceParams$4(config);
1059
+ createResourceParams$5(config);
1060
1060
  return select$f();
1061
1061
  }
1062
1062
  function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
1063
1063
  const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
1064
1064
  config,
1065
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1065
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
1066
1066
  });
1067
1067
  return luvio.storeBroadcast().then(() => snapshot);
1068
1068
  }
1069
1069
  function onFetchResponseError$1(luvio, config, resourceParams, response) {
1070
1070
  const snapshot = ingestError$1(luvio, resourceParams, response, {
1071
1071
  config,
1072
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1072
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
1073
1073
  });
1074
1074
  return luvio.storeBroadcast().then(() => snapshot);
1075
1075
  }
1076
- function buildNetworkSnapshot$4(luvio, config, options) {
1077
- const resourceParams = createResourceParams$4(config);
1078
- const request = createResourceRequest$4(resourceParams);
1076
+ function buildNetworkSnapshot$5(luvio, config, options) {
1077
+ const resourceParams = createResourceParams$5(config);
1078
+ const request = createResourceRequest$5(resourceParams);
1079
1079
  return luvio.dispatchResourceRequest(request, options)
1080
1080
  .then((response) => {
1081
1081
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
1082
1082
  const cache = new StoreKeyMap();
1083
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
1083
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
1084
1084
  return cache;
1085
1085
  });
1086
1086
  }, (response) => {
@@ -1088,23 +1088,23 @@ function buildNetworkSnapshot$4(luvio, config, options) {
1088
1088
  });
1089
1089
  }
1090
1090
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
1091
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
1091
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
1092
1092
  }
1093
1093
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1094
1094
  const { luvio, config } = context;
1095
1095
  const selector = {
1096
- recordId: keyBuilder$5(luvio, config),
1096
+ recordId: keyBuilder$7(luvio, config),
1097
1097
  node: adapterFragment$1(luvio, config),
1098
1098
  variables: {},
1099
1099
  };
1100
1100
  const cacheSnapshot = storeLookup(selector, {
1101
1101
  config,
1102
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1102
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
1103
1103
  });
1104
1104
  return cacheSnapshot;
1105
1105
  }
1106
1106
  const getRecordAggregationEntityApplicableFieldsAdapterFactory = (luvio) => function IndustriesRecordAggregation__getRecordAggregationEntityApplicableFields(untrustedConfig, requestContext) {
1107
- const config = validateAdapterConfig$4(untrustedConfig, getRecordAggregationEntityApplicableFields_ConfigPropertyNames);
1107
+ const config = validateAdapterConfig$5(untrustedConfig, getRecordAggregationEntityApplicableFields_ConfigPropertyNames);
1108
1108
  // Invalid or incomplete config
1109
1109
  if (config === null) {
1110
1110
  return null;
@@ -1606,7 +1606,7 @@ function equals$6(existing, incoming) {
1606
1606
  return true;
1607
1607
  }
1608
1608
 
1609
- const VERSION$5 = "25b07f5ebd0f734dbb86348532ab7e1b";
1609
+ const VERSION$5 = "0f4bded158c8e3f43081a3f9490f8209";
1610
1610
  function validate$5(obj, path = 'RADOutputRepresentation') {
1611
1611
  const v_error = (() => {
1612
1612
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1649,6 +1649,11 @@ function validate$5(obj, path = 'RADOutputRepresentation') {
1649
1649
  if (typeof obj_message !== 'string') {
1650
1650
  return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
1651
1651
  }
1652
+ const obj_recordAggregationDefinitionId = obj.recordAggregationDefinitionId;
1653
+ const path_recordAggregationDefinitionId = path + '.recordAggregationDefinitionId';
1654
+ if (typeof obj_recordAggregationDefinitionId !== 'string') {
1655
+ return new TypeError('Expected "string" but received "' + typeof obj_recordAggregationDefinitionId + '" (at "' + path_recordAggregationDefinitionId + '")');
1656
+ }
1652
1657
  const obj_status = obj.status;
1653
1658
  const path_status = path + '.status';
1654
1659
  if (typeof obj_status !== 'string') {
@@ -1663,6 +1668,15 @@ function validate$5(obj, path = 'RADOutputRepresentation') {
1663
1668
  return v_error === undefined ? null : v_error;
1664
1669
  }
1665
1670
  const RepresentationType$3 = 'RADOutputRepresentation';
1671
+ function keyBuilder$6(luvio, config) {
1672
+ return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
1673
+ }
1674
+ function keyBuilderFromType$3(luvio, object) {
1675
+ const keyParams = {
1676
+ id: object.recordAggregationDefinitionId
1677
+ };
1678
+ return keyBuilder$6(luvio, keyParams);
1679
+ }
1666
1680
  function normalize$3(input, existing, path, luvio, store, timestamp) {
1667
1681
  return input;
1668
1682
  }
@@ -1696,6 +1710,10 @@ const select$9 = function RADOutputRepresentationSelect() {
1696
1710
  name: 'message',
1697
1711
  kind: 'Scalar'
1698
1712
  },
1713
+ {
1714
+ name: 'recordAggregationDefinitionId',
1715
+ kind: 'Scalar'
1716
+ },
1699
1717
  {
1700
1718
  name: 'status',
1701
1719
  kind: 'Scalar'
@@ -1736,6 +1754,11 @@ function equals$5(existing, incoming) {
1736
1754
  if (!(existing_message === incoming_message)) {
1737
1755
  return false;
1738
1756
  }
1757
+ const existing_recordAggregationDefinitionId = existing.recordAggregationDefinitionId;
1758
+ const incoming_recordAggregationDefinitionId = incoming.recordAggregationDefinitionId;
1759
+ if (!(existing_recordAggregationDefinitionId === incoming_recordAggregationDefinitionId)) {
1760
+ return false;
1761
+ }
1739
1762
  const existing_status = existing.status;
1740
1763
  const incoming_status = incoming.status;
1741
1764
  if (!(existing_status === incoming_status)) {
@@ -1765,14 +1788,14 @@ const ingest$3 = function RADOutputRepresentationIngest(input, path, luvio, stor
1765
1788
  throw validateError;
1766
1789
  }
1767
1790
  }
1768
- const key = path.fullPath;
1791
+ const key = keyBuilderFromType$3(luvio, input);
1769
1792
  const ttlToUse = path.ttl !== undefined ? path.ttl : 100;
1770
1793
  ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "IndustriesRecordAggregation", VERSION$5, RepresentationType$3, equals$5);
1771
1794
  return createLink(key);
1772
1795
  };
1773
1796
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1774
1797
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1775
- const rootKey = fullPathFactory();
1798
+ const rootKey = keyBuilderFromType$3(luvio, input);
1776
1799
  rootKeySet.set(rootKey, {
1777
1800
  namespace: keyPrefix,
1778
1801
  representationName: RepresentationType$3,
@@ -1783,15 +1806,17 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1783
1806
  function select$8(luvio, params) {
1784
1807
  return select$9();
1785
1808
  }
1786
- function keyBuilder$4(luvio, params) {
1787
- return keyPrefix + '::RADOutputRepresentation:(' + 'recordAggregationDefinitionId:' + params.urlParams.recordAggregationDefinitionId + ')';
1809
+ function keyBuilder$5(luvio, params) {
1810
+ return keyBuilder$6(luvio, {
1811
+ id: params.urlParams.recordAggregationDefinitionId
1812
+ });
1788
1813
  }
1789
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
1790
- getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
1814
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1815
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
1791
1816
  }
1792
1817
  function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
1793
1818
  const { body } = response;
1794
- const key = keyBuilder$4(luvio, resourceParams);
1819
+ const key = keyBuilder$5(luvio, resourceParams);
1795
1820
  luvio.storeIngest(key, ingest$3, body);
1796
1821
  const snapshot = luvio.storeLookup({
1797
1822
  recordId: key,
@@ -1807,12 +1832,12 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
1807
1832
  return snapshot;
1808
1833
  }
1809
1834
  function ingestError(luvio, params, error, snapshotRefresh) {
1810
- const key = keyBuilder$4(luvio, params);
1835
+ const key = keyBuilder$5(luvio, params);
1811
1836
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1812
1837
  luvio.storeIngestError(key, errorSnapshot);
1813
1838
  return errorSnapshot;
1814
1839
  }
1815
- function createResourceRequest$3(config) {
1840
+ function createResourceRequest$4(config) {
1816
1841
  const headers = {};
1817
1842
  return {
1818
1843
  baseUri: '/services/data/v63.0',
@@ -1826,60 +1851,60 @@ function createResourceRequest$3(config) {
1826
1851
  };
1827
1852
  }
1828
1853
 
1829
- const adapterName$3 = 'getRecordAggregationDefinition';
1854
+ const adapterName$4 = 'getRecordAggregationDefinition';
1830
1855
  const getRecordAggregationDefinition_ConfigPropertyMetadata = [
1831
1856
  generateParamConfigMetadata('recordAggregationDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
1832
1857
  ];
1833
- const getRecordAggregationDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getRecordAggregationDefinition_ConfigPropertyMetadata);
1834
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(getRecordAggregationDefinition_ConfigPropertyMetadata);
1835
- function keyBuilder$3(luvio, config) {
1836
- const resourceParams = createResourceParams$3(config);
1837
- return keyBuilder$4(luvio, resourceParams);
1858
+ const getRecordAggregationDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getRecordAggregationDefinition_ConfigPropertyMetadata);
1859
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(getRecordAggregationDefinition_ConfigPropertyMetadata);
1860
+ function keyBuilder$4(luvio, config) {
1861
+ const resourceParams = createResourceParams$4(config);
1862
+ return keyBuilder$5(luvio, resourceParams);
1838
1863
  }
1839
- function typeCheckConfig$3(untrustedConfig) {
1864
+ function typeCheckConfig$4(untrustedConfig) {
1840
1865
  const config = {};
1841
- typeCheckConfig$7(untrustedConfig, config, getRecordAggregationDefinition_ConfigPropertyMetadata);
1866
+ typeCheckConfig$8(untrustedConfig, config, getRecordAggregationDefinition_ConfigPropertyMetadata);
1842
1867
  return config;
1843
1868
  }
1844
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
1869
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1845
1870
  if (!untrustedIsObject(untrustedConfig)) {
1846
1871
  return null;
1847
1872
  }
1848
1873
  if (process.env.NODE_ENV !== 'production') {
1849
1874
  validateConfig(untrustedConfig, configPropertyNames);
1850
1875
  }
1851
- const config = typeCheckConfig$3(untrustedConfig);
1876
+ const config = typeCheckConfig$4(untrustedConfig);
1852
1877
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1853
1878
  return null;
1854
1879
  }
1855
1880
  return config;
1856
1881
  }
1857
1882
  function adapterFragment(luvio, config) {
1858
- createResourceParams$3(config);
1883
+ createResourceParams$4(config);
1859
1884
  return select$8();
1860
1885
  }
1861
1886
  function onFetchResponseSuccess(luvio, config, resourceParams, response) {
1862
1887
  const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
1863
1888
  config,
1864
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1889
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1865
1890
  });
1866
1891
  return luvio.storeBroadcast().then(() => snapshot);
1867
1892
  }
1868
1893
  function onFetchResponseError(luvio, config, resourceParams, response) {
1869
1894
  const snapshot = ingestError(luvio, resourceParams, response, {
1870
1895
  config,
1871
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1896
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1872
1897
  });
1873
1898
  return luvio.storeBroadcast().then(() => snapshot);
1874
1899
  }
1875
- function buildNetworkSnapshot$3(luvio, config, options) {
1876
- const resourceParams = createResourceParams$3(config);
1877
- const request = createResourceRequest$3(resourceParams);
1900
+ function buildNetworkSnapshot$4(luvio, config, options) {
1901
+ const resourceParams = createResourceParams$4(config);
1902
+ const request = createResourceRequest$4(resourceParams);
1878
1903
  return luvio.dispatchResourceRequest(request, options)
1879
1904
  .then((response) => {
1880
1905
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
1881
1906
  const cache = new StoreKeyMap();
1882
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
1907
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
1883
1908
  return cache;
1884
1909
  });
1885
1910
  }, (response) => {
@@ -1887,23 +1912,23 @@ function buildNetworkSnapshot$3(luvio, config, options) {
1887
1912
  });
1888
1913
  }
1889
1914
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1890
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
1915
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
1891
1916
  }
1892
1917
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
1893
1918
  const { luvio, config } = context;
1894
1919
  const selector = {
1895
- recordId: keyBuilder$3(luvio, config),
1920
+ recordId: keyBuilder$4(luvio, config),
1896
1921
  node: adapterFragment(luvio, config),
1897
1922
  variables: {},
1898
1923
  };
1899
1924
  const cacheSnapshot = storeLookup(selector, {
1900
1925
  config,
1901
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1926
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1902
1927
  });
1903
1928
  return cacheSnapshot;
1904
1929
  }
1905
1930
  const getRecordAggregationDefinitionAdapterFactory = (luvio) => function IndustriesRecordAggregation__getRecordAggregationDefinition(untrustedConfig, requestContext) {
1906
- const config = validateAdapterConfig$3(untrustedConfig, getRecordAggregationDefinition_ConfigPropertyNames);
1931
+ const config = validateAdapterConfig$4(untrustedConfig, getRecordAggregationDefinition_ConfigPropertyNames);
1907
1932
  // Invalid or incomplete config
1908
1933
  if (config === null) {
1909
1934
  return null;
@@ -1932,14 +1957,14 @@ function validate$4(obj, path = 'RecordAggregationDefinitionPartialUpdateOutputR
1932
1957
  return v_error === undefined ? null : v_error;
1933
1958
  }
1934
1959
  const RepresentationType$2 = 'RecordAggregationDefinitionPartialUpdateOutputRepresentation';
1935
- function keyBuilder$2(luvio, config) {
1960
+ function keyBuilder$3(luvio, config) {
1936
1961
  return keyPrefix + '::' + RepresentationType$2 + ':' + config.id;
1937
1962
  }
1938
1963
  function keyBuilderFromType$2(luvio, object) {
1939
1964
  const keyParams = {
1940
1965
  id: object.statusCode
1941
1966
  };
1942
- return keyBuilder$2(luvio, keyParams);
1967
+ return keyBuilder$3(luvio, keyParams);
1943
1968
  }
1944
1969
  function normalize$2(input, existing, path, luvio, store, timestamp) {
1945
1970
  return input;
@@ -1999,7 +2024,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1999
2024
  function select$6(luvio, params) {
2000
2025
  return select$7();
2001
2026
  }
2002
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
2027
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2003
2028
  getTypeCacheKeys$2(storeKeyMap, luvio, response);
2004
2029
  }
2005
2030
  function ingestSuccess$2(luvio, resourceParams, response) {
@@ -2019,7 +2044,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
2019
2044
  deepFreeze(snapshot.data);
2020
2045
  return snapshot;
2021
2046
  }
2022
- function createResourceRequest$2(config) {
2047
+ function createResourceRequest$3(config) {
2023
2048
  const headers = {};
2024
2049
  return {
2025
2050
  baseUri: '/services/data/v63.0',
@@ -2033,34 +2058,36 @@ function createResourceRequest$2(config) {
2033
2058
  };
2034
2059
  }
2035
2060
 
2036
- const adapterName$2 = 'patchRecordAggregationDefinition';
2061
+ const adapterName$3 = 'patchRecordAggregationDefinition';
2037
2062
  const patchRecordAggregationDefinition_ConfigPropertyMetadata = [
2038
2063
  generateParamConfigMetadata('recordAggregationDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
2039
- generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
2064
+ generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
2065
+ generateParamConfigMetadata('definitionDisplayName', false, 2 /* Body */, 0 /* String */),
2066
+ generateParamConfigMetadata('definitionDescription', false, 2 /* Body */, 0 /* String */),
2040
2067
  ];
2041
- const patchRecordAggregationDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, patchRecordAggregationDefinition_ConfigPropertyMetadata);
2042
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(patchRecordAggregationDefinition_ConfigPropertyMetadata);
2043
- function typeCheckConfig$2(untrustedConfig) {
2068
+ const patchRecordAggregationDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, patchRecordAggregationDefinition_ConfigPropertyMetadata);
2069
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(patchRecordAggregationDefinition_ConfigPropertyMetadata);
2070
+ function typeCheckConfig$3(untrustedConfig) {
2044
2071
  const config = {};
2045
- typeCheckConfig$7(untrustedConfig, config, patchRecordAggregationDefinition_ConfigPropertyMetadata);
2072
+ typeCheckConfig$8(untrustedConfig, config, patchRecordAggregationDefinition_ConfigPropertyMetadata);
2046
2073
  return config;
2047
2074
  }
2048
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
2075
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
2049
2076
  if (!untrustedIsObject(untrustedConfig)) {
2050
2077
  return null;
2051
2078
  }
2052
2079
  if (process.env.NODE_ENV !== 'production') {
2053
2080
  validateConfig(untrustedConfig, configPropertyNames);
2054
2081
  }
2055
- const config = typeCheckConfig$2(untrustedConfig);
2082
+ const config = typeCheckConfig$3(untrustedConfig);
2056
2083
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2057
2084
  return null;
2058
2085
  }
2059
2086
  return config;
2060
2087
  }
2061
- function buildNetworkSnapshot$2(luvio, config, options) {
2062
- const resourceParams = createResourceParams$2(config);
2063
- const request = createResourceRequest$2(resourceParams);
2088
+ function buildNetworkSnapshot$3(luvio, config, options) {
2089
+ const resourceParams = createResourceParams$3(config);
2090
+ const request = createResourceRequest$3(resourceParams);
2064
2091
  return luvio.dispatchResourceRequest(request, options)
2065
2092
  .then((response) => {
2066
2093
  return luvio.handleSuccessResponse(() => {
@@ -2068,7 +2095,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
2068
2095
  return luvio.storeBroadcast().then(() => snapshot);
2069
2096
  }, () => {
2070
2097
  const cache = new StoreKeyMap();
2071
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
2098
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
2072
2099
  return cache;
2073
2100
  });
2074
2101
  }, (response) => {
@@ -2078,12 +2105,12 @@ function buildNetworkSnapshot$2(luvio, config, options) {
2078
2105
  }
2079
2106
  const patchRecordAggregationDefinitionAdapterFactory = (luvio) => {
2080
2107
  return function patchRecordAggregationDefinition(untrustedConfig) {
2081
- const config = validateAdapterConfig$2(untrustedConfig, patchRecordAggregationDefinition_ConfigPropertyNames);
2108
+ const config = validateAdapterConfig$3(untrustedConfig, patchRecordAggregationDefinition_ConfigPropertyNames);
2082
2109
  // Invalid or incomplete config
2083
2110
  if (config === null) {
2084
2111
  throw new Error('Invalid config for "patchRecordAggregationDefinition"');
2085
2112
  }
2086
- return buildNetworkSnapshot$2(luvio, config);
2113
+ return buildNetworkSnapshot$3(luvio, config);
2087
2114
  };
2088
2115
  };
2089
2116
 
@@ -2107,14 +2134,14 @@ function validate$3(obj, path = 'RecordAggregationUpdationOutputRepresentation')
2107
2134
  return v_error === undefined ? null : v_error;
2108
2135
  }
2109
2136
  const RepresentationType$1 = 'RecordAggregationUpdationOutputRepresentation';
2110
- function keyBuilder$1(luvio, config) {
2137
+ function keyBuilder$2(luvio, config) {
2111
2138
  return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
2112
2139
  }
2113
2140
  function keyBuilderFromType$1(luvio, object) {
2114
2141
  const keyParams = {
2115
2142
  id: object.statusCode
2116
2143
  };
2117
- return keyBuilder$1(luvio, keyParams);
2144
+ return keyBuilder$2(luvio, keyParams);
2118
2145
  }
2119
2146
  function normalize$1(input, existing, path, luvio, store, timestamp) {
2120
2147
  return input;
@@ -2174,7 +2201,7 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
2174
2201
  function select$4(luvio, params) {
2175
2202
  return select$5();
2176
2203
  }
2177
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
2204
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
2178
2205
  getTypeCacheKeys$1(storeKeyMap, luvio, response);
2179
2206
  }
2180
2207
  function ingestSuccess$1(luvio, resourceParams, response) {
@@ -2194,7 +2221,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
2194
2221
  deepFreeze(snapshot.data);
2195
2222
  return snapshot;
2196
2223
  }
2197
- function createResourceRequest$1(config) {
2224
+ function createResourceRequest$2(config) {
2198
2225
  const headers = {};
2199
2226
  return {
2200
2227
  baseUri: '/services/data/v63.0',
@@ -2208,7 +2235,7 @@ function createResourceRequest$1(config) {
2208
2235
  };
2209
2236
  }
2210
2237
 
2211
- const adapterName$1 = 'putRecordAggregationDefinition';
2238
+ const adapterName$2 = 'putRecordAggregationDefinition';
2212
2239
  const putRecordAggregationDefinition_ConfigPropertyMetadata = [
2213
2240
  generateParamConfigMetadata('recordAggregationDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
2214
2241
  generateParamConfigMetadata('aggregationObjects', true, 2 /* Body */, 4 /* Unsupported */, true),
@@ -2216,11 +2243,11 @@ const putRecordAggregationDefinition_ConfigPropertyMetadata = [
2216
2243
  generateParamConfigMetadata('definitionDisplayName', true, 2 /* Body */, 0 /* String */),
2217
2244
  generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
2218
2245
  ];
2219
- const putRecordAggregationDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, putRecordAggregationDefinition_ConfigPropertyMetadata);
2220
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$7(putRecordAggregationDefinition_ConfigPropertyMetadata);
2221
- function typeCheckConfig$1(untrustedConfig) {
2246
+ const putRecordAggregationDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, putRecordAggregationDefinition_ConfigPropertyMetadata);
2247
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(putRecordAggregationDefinition_ConfigPropertyMetadata);
2248
+ function typeCheckConfig$2(untrustedConfig) {
2222
2249
  const config = {};
2223
- typeCheckConfig$7(untrustedConfig, config, putRecordAggregationDefinition_ConfigPropertyMetadata);
2250
+ typeCheckConfig$8(untrustedConfig, config, putRecordAggregationDefinition_ConfigPropertyMetadata);
2224
2251
  const untrustedConfig_aggregationObjects = untrustedConfig.aggregationObjects;
2225
2252
  if (ArrayIsArray$1(untrustedConfig_aggregationObjects)) {
2226
2253
  const untrustedConfig_aggregationObjects_array = [];
@@ -2235,22 +2262,22 @@ function typeCheckConfig$1(untrustedConfig) {
2235
2262
  }
2236
2263
  return config;
2237
2264
  }
2238
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
2265
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
2239
2266
  if (!untrustedIsObject(untrustedConfig)) {
2240
2267
  return null;
2241
2268
  }
2242
2269
  if (process.env.NODE_ENV !== 'production') {
2243
2270
  validateConfig(untrustedConfig, configPropertyNames);
2244
2271
  }
2245
- const config = typeCheckConfig$1(untrustedConfig);
2272
+ const config = typeCheckConfig$2(untrustedConfig);
2246
2273
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2247
2274
  return null;
2248
2275
  }
2249
2276
  return config;
2250
2277
  }
2251
- function buildNetworkSnapshot$1(luvio, config, options) {
2252
- const resourceParams = createResourceParams$1(config);
2253
- const request = createResourceRequest$1(resourceParams);
2278
+ function buildNetworkSnapshot$2(luvio, config, options) {
2279
+ const resourceParams = createResourceParams$2(config);
2280
+ const request = createResourceRequest$2(resourceParams);
2254
2281
  return luvio.dispatchResourceRequest(request, options)
2255
2282
  .then((response) => {
2256
2283
  return luvio.handleSuccessResponse(() => {
@@ -2258,7 +2285,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
2258
2285
  return luvio.storeBroadcast().then(() => snapshot);
2259
2286
  }, () => {
2260
2287
  const cache = new StoreKeyMap();
2261
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
2288
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
2262
2289
  return cache;
2263
2290
  });
2264
2291
  }, (response) => {
@@ -2268,11 +2295,95 @@ function buildNetworkSnapshot$1(luvio, config, options) {
2268
2295
  }
2269
2296
  const putRecordAggregationDefinitionAdapterFactory = (luvio) => {
2270
2297
  return function putRecordAggregationDefinition(untrustedConfig) {
2271
- const config = validateAdapterConfig$1(untrustedConfig, putRecordAggregationDefinition_ConfigPropertyNames);
2298
+ const config = validateAdapterConfig$2(untrustedConfig, putRecordAggregationDefinition_ConfigPropertyNames);
2272
2299
  // Invalid or incomplete config
2273
2300
  if (config === null) {
2274
2301
  throw new Error('Invalid config for "putRecordAggregationDefinition"');
2275
2302
  }
2303
+ return buildNetworkSnapshot$2(luvio, config);
2304
+ };
2305
+ };
2306
+
2307
+ function keyBuilder$1(luvio, params) {
2308
+ return keyBuilder$6(luvio, {
2309
+ id: params.urlParams.recordAggregationDefinitionId
2310
+ });
2311
+ }
2312
+ function getResponseCacheKeys$1(cacheKeyMap, luvio, resourceParams) {
2313
+ const key = keyBuilder$1(luvio, resourceParams);
2314
+ cacheKeyMap.set(key, {
2315
+ namespace: keyPrefix,
2316
+ representationName: RepresentationType$3,
2317
+ mergeable: false
2318
+ });
2319
+ }
2320
+ function evictSuccess(luvio, resourceParams) {
2321
+ const key = keyBuilder$1(luvio, resourceParams);
2322
+ luvio.storeEvict(key);
2323
+ }
2324
+ function createResourceRequest$1(config) {
2325
+ const headers = {};
2326
+ return {
2327
+ baseUri: '/services/data/v63.0',
2328
+ basePath: '/connect/record-aggregation/' + config.urlParams.recordAggregationDefinitionId + '',
2329
+ method: 'delete',
2330
+ body: null,
2331
+ urlParams: config.urlParams,
2332
+ queryParams: {},
2333
+ headers,
2334
+ priority: 'normal',
2335
+ };
2336
+ }
2337
+
2338
+ const adapterName$1 = 'deleteRecordAggregationDefinition';
2339
+ const deleteRecordAggregationDefinition_ConfigPropertyMetadata = [
2340
+ generateParamConfigMetadata('recordAggregationDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
2341
+ ];
2342
+ const deleteRecordAggregationDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, deleteRecordAggregationDefinition_ConfigPropertyMetadata);
2343
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$8(deleteRecordAggregationDefinition_ConfigPropertyMetadata);
2344
+ function typeCheckConfig$1(untrustedConfig) {
2345
+ const config = {};
2346
+ typeCheckConfig$8(untrustedConfig, config, deleteRecordAggregationDefinition_ConfigPropertyMetadata);
2347
+ return config;
2348
+ }
2349
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
2350
+ if (!untrustedIsObject(untrustedConfig)) {
2351
+ return null;
2352
+ }
2353
+ if (process.env.NODE_ENV !== 'production') {
2354
+ validateConfig(untrustedConfig, configPropertyNames);
2355
+ }
2356
+ const config = typeCheckConfig$1(untrustedConfig);
2357
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2358
+ return null;
2359
+ }
2360
+ return config;
2361
+ }
2362
+ function buildNetworkSnapshot$1(luvio, config, options) {
2363
+ const resourceParams = createResourceParams$1(config);
2364
+ const request = createResourceRequest$1(resourceParams);
2365
+ return luvio.dispatchResourceRequest(request, options)
2366
+ .then(() => {
2367
+ return luvio.handleSuccessResponse(() => {
2368
+ evictSuccess(luvio, resourceParams);
2369
+ return luvio.storeBroadcast();
2370
+ }, () => {
2371
+ const cache = new StoreKeyMap();
2372
+ getResponseCacheKeys$1(cache, luvio, resourceParams);
2373
+ return cache;
2374
+ });
2375
+ }, (response) => {
2376
+ deepFreeze(response);
2377
+ throw response;
2378
+ });
2379
+ }
2380
+ const deleteRecordAggregationDefinitionAdapterFactory = (luvio) => {
2381
+ return function IndustriesRecordAggregationdeleteRecordAggregationDefinition(untrustedConfig) {
2382
+ const config = validateAdapterConfig$1(untrustedConfig, deleteRecordAggregationDefinition_ConfigPropertyNames);
2383
+ // Invalid or incomplete config
2384
+ if (config === null) {
2385
+ throw new Error(`Invalid config for "${adapterName$1}"`);
2386
+ }
2276
2387
  return buildNetworkSnapshot$1(luvio, config);
2277
2388
  };
2278
2389
  };
@@ -2683,10 +2794,10 @@ const postGenerateRecordRollupResult_ConfigPropertyMetadata = [
2683
2794
  generateParamConfigMetadata('sortBy', false, 2 /* Body */, 0 /* String */),
2684
2795
  ];
2685
2796
  const postGenerateRecordRollupResult_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postGenerateRecordRollupResult_ConfigPropertyMetadata);
2686
- const createResourceParams = /*#__PURE__*/ createResourceParams$7(postGenerateRecordRollupResult_ConfigPropertyMetadata);
2797
+ const createResourceParams = /*#__PURE__*/ createResourceParams$8(postGenerateRecordRollupResult_ConfigPropertyMetadata);
2687
2798
  function typeCheckConfig(untrustedConfig) {
2688
2799
  const config = {};
2689
- typeCheckConfig$7(untrustedConfig, config, postGenerateRecordRollupResult_ConfigPropertyMetadata);
2800
+ typeCheckConfig$8(untrustedConfig, config, postGenerateRecordRollupResult_ConfigPropertyMetadata);
2690
2801
  return config;
2691
2802
  }
2692
2803
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -2731,4 +2842,4 @@ const postGenerateRecordRollupResultAdapterFactory = (luvio) => {
2731
2842
  };
2732
2843
  };
2733
2844
 
2734
- export { getRecordAggregationApplicableObjectsAdapterFactory, getRecordAggregationDefinitionAdapterFactory, getRecordAggregationEntityApplicableFieldsAdapterFactory, patchRecordAggregationDefinitionAdapterFactory, postGenerateRecordRollupResultAdapterFactory, postRecordAggregationCreationAdapterFactory, putRecordAggregationDefinitionAdapterFactory };
2845
+ export { deleteRecordAggregationDefinitionAdapterFactory, getRecordAggregationApplicableObjectsAdapterFactory, getRecordAggregationDefinitionAdapterFactory, getRecordAggregationEntityApplicableFieldsAdapterFactory, patchRecordAggregationDefinitionAdapterFactory, postGenerateRecordRollupResultAdapterFactory, postRecordAggregationCreationAdapterFactory, putRecordAggregationDefinitionAdapterFactory };