@salesforce/lds-adapters-industries-recordaggregation 1.283.0 → 1.285.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 (34) hide show
  1. package/dist/es/es2018/industries-recordaggregation.js +1587 -304
  2. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -1
  3. package/dist/es/es2018/types/src/generated/adapters/getRecordAggregationDefinition.d.ts +27 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getRecordAggregationEntityApplicableFields.d.ts +27 -0
  5. package/dist/es/es2018/types/src/generated/adapters/patchRecordAggregationDefinition.d.ts +16 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +6 -1
  8. package/dist/es/es2018/types/src/generated/resources/getConnectRecordAggregationByRecordAggregationDefinitionId.d.ts +15 -0
  9. package/dist/es/es2018/types/src/generated/resources/getConnectRecordAggregationUtilitiesApplicableObjectsApplicableFieldsByObjectName.d.ts +15 -0
  10. package/dist/es/es2018/types/src/generated/resources/patchConnectRecordAggregationByRecordAggregationDefinitionId.d.ts +15 -0
  11. package/dist/es/es2018/types/src/generated/types/RADFieldFilterOutputRepresentation.d.ts +46 -0
  12. package/dist/es/es2018/types/src/generated/types/RADJoinFieldOutputRepresentation.d.ts +31 -0
  13. package/dist/es/es2018/types/src/generated/types/RADNodeFilterOutputRepresentation.d.ts +35 -0
  14. package/dist/es/es2018/types/src/generated/types/RADNodeObjectOutputRepresentation.d.ts +34 -0
  15. package/dist/es/es2018/types/src/generated/types/RADNodeOutputRepresentation.d.ts +43 -0
  16. package/dist/es/es2018/types/src/generated/types/RADOutputRepresentation.d.ts +47 -0
  17. package/dist/es/es2018/types/src/generated/types/RecordAggregationApplicableFieldOutputRepresentation.d.ts +37 -0
  18. package/dist/es/es2018/types/src/generated/types/RecordAggregationApplicableObjectOutputRepresentation.d.ts +0 -1
  19. package/dist/es/es2018/types/src/generated/types/RecordAggregationApplicableObjectsOutputRepresentation.d.ts +0 -1
  20. package/dist/es/es2018/types/src/generated/types/RecordAggregationAssociatedObjectInputRepresentation.d.ts +1 -1
  21. package/dist/es/es2018/types/src/generated/types/RecordAggregationDefinitionPartialUpdateInputRepresentation.d.ts +28 -0
  22. package/dist/es/es2018/types/src/generated/types/RecordAggregationDefinitionPartialUpdateOutputRepresentation.d.ts +40 -0
  23. package/dist/es/es2018/types/src/generated/types/RecordAggregationEntityApplicableFieldsOutputRepresentation.d.ts +42 -0
  24. package/dist/es/es2018/types/src/generated/types/RecordAggregationFilterRowInputRepresentation.d.ts +7 -7
  25. package/dist/es/es2018/types/src/generated/types/RecordAggregationJoinInputRepresentation.d.ts +4 -4
  26. package/dist/es/es2018/types/src/generated/types/RecordAggregationNodeInputRepresentation.d.ts +4 -4
  27. package/dist/es/es2018/types/src/generated/types/RecordAggregationUpdationOutputRepresentation.d.ts +2 -2
  28. package/dist/es/es2018/types/src/generated/types/RecordRollupResultColumnOutputRepresentation.d.ts +4 -12
  29. package/dist/es/es2018/types/src/generated/types/RecordRollupResultOutputRepresentation.d.ts +0 -1
  30. package/dist/es/es2018/types/src/generated/types/RecordRollupResultRowOutputRepresentation.d.ts +0 -1
  31. package/package.json +3 -3
  32. package/sfdc/index.js +1465 -158
  33. package/src/raml/api.raml +231 -28
  34. package/src/raml/luvio.raml +31 -23
@@ -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$4, typeCheckConfig as typeCheckConfig$4, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$7, typeCheckConfig as typeCheckConfig$7, 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;
@@ -69,7 +69,7 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
69
69
  }
70
70
  };
71
71
  }
72
- const keyPrefix = 'RecordAggregation';
72
+ const keyPrefix = 'IndustriesRecordAggregation';
73
73
 
74
74
  const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
75
75
  const { isArray: ArrayIsArray } = Array;
@@ -112,15 +112,15 @@ function createLink(ref) {
112
112
  };
113
113
  }
114
114
 
115
- function validate$b(obj, path = 'RecordAggregationFilterRowInputRepresentation') {
115
+ function validate$k(obj, path = 'RecordAggregationFilterRowInputRepresentation') {
116
116
  const v_error = (() => {
117
117
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
118
118
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
119
119
  }
120
- const obj_fieldDeveloperName = obj.fieldDeveloperName;
121
- const path_fieldDeveloperName = path + '.fieldDeveloperName';
122
- if (typeof obj_fieldDeveloperName !== 'string') {
123
- return new TypeError('Expected "string" but received "' + typeof obj_fieldDeveloperName + '" (at "' + path_fieldDeveloperName + '")');
120
+ const obj_fieldApiName = obj.fieldApiName;
121
+ const path_fieldApiName = path + '.fieldApiName';
122
+ if (typeof obj_fieldApiName !== 'string') {
123
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
124
124
  }
125
125
  const obj_operator = obj.operator;
126
126
  const path_operator = path + '.operator';
@@ -141,7 +141,7 @@ function validate$b(obj, path = 'RecordAggregationFilterRowInputRepresentation')
141
141
  return v_error === undefined ? null : v_error;
142
142
  }
143
143
 
144
- function validate$a(obj, path = 'RecordAggregationFilterInputRepresentation') {
144
+ function validate$j(obj, path = 'RecordAggregationFilterInputRepresentation') {
145
145
  const v_error = (() => {
146
146
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
147
147
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -155,7 +155,7 @@ function validate$a(obj, path = 'RecordAggregationFilterInputRepresentation') {
155
155
  for (let i = 0; i < obj_filterConditions.length; i++) {
156
156
  const obj_filterConditions_item = obj_filterConditions[i];
157
157
  const path_filterConditions_item = path_filterConditions + '[' + i + ']';
158
- const referencepath_filterConditions_itemValidationError = validate$b(obj_filterConditions_item, path_filterConditions_item);
158
+ const referencepath_filterConditions_itemValidationError = validate$k(obj_filterConditions_item, path_filterConditions_item);
159
159
  if (referencepath_filterConditions_itemValidationError !== null) {
160
160
  let message = 'Object doesn\'t match RecordAggregationFilterRowInputRepresentation (at "' + path_filterConditions_item + '")\n';
161
161
  message += referencepath_filterConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -174,21 +174,21 @@ function validate$a(obj, path = 'RecordAggregationFilterInputRepresentation') {
174
174
  return v_error === undefined ? null : v_error;
175
175
  }
176
176
 
177
- function validate$9(obj, path = 'RecordAggregationJoinInputRepresentation') {
177
+ function validate$i(obj, path = 'RecordAggregationJoinInputRepresentation') {
178
178
  const v_error = (() => {
179
179
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
180
180
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
181
181
  }
182
- const obj_fieldDeveloperName = obj.fieldDeveloperName;
183
- const path_fieldDeveloperName = path + '.fieldDeveloperName';
184
- if (typeof obj_fieldDeveloperName !== 'string') {
185
- return new TypeError('Expected "string" but received "' + typeof obj_fieldDeveloperName + '" (at "' + path_fieldDeveloperName + '")');
182
+ const obj_fieldApiName = obj.fieldApiName;
183
+ const path_fieldApiName = path + '.fieldApiName';
184
+ if (typeof obj_fieldApiName !== 'string') {
185
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
186
186
  }
187
187
  })();
188
188
  return v_error === undefined ? null : v_error;
189
189
  }
190
190
 
191
- function validate$8(obj, path = 'RecordAggregationAssociatedObjectInputRepresentation') {
191
+ function validate$h(obj, path = 'RecordAggregationAssociatedObjectInputRepresentation') {
192
192
  const v_error = (() => {
193
193
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
194
194
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -202,7 +202,7 @@ function validate$8(obj, path = 'RecordAggregationAssociatedObjectInputRepresent
202
202
  return v_error === undefined ? null : v_error;
203
203
  }
204
204
 
205
- function validate$7(obj, path = 'RecordAggregationNodeInputRepresentation') {
205
+ function validate$g(obj, path = 'RecordAggregationNodeInputRepresentation') {
206
206
  const v_error = (() => {
207
207
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
208
208
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -210,7 +210,7 @@ function validate$7(obj, path = 'RecordAggregationNodeInputRepresentation') {
210
210
  if (obj.filterDetails !== undefined) {
211
211
  const obj_filterDetails = obj.filterDetails;
212
212
  const path_filterDetails = path + '.filterDetails';
213
- const referencepath_filterDetailsValidationError = validate$a(obj_filterDetails, path_filterDetails);
213
+ const referencepath_filterDetailsValidationError = validate$j(obj_filterDetails, path_filterDetails);
214
214
  if (referencepath_filterDetailsValidationError !== null) {
215
215
  let message = 'Object doesn\'t match RecordAggregationFilterInputRepresentation (at "' + path_filterDetails + '")\n';
216
216
  message += referencepath_filterDetailsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -220,7 +220,7 @@ function validate$7(obj, path = 'RecordAggregationNodeInputRepresentation') {
220
220
  if (obj.nextObjectJoinDetails !== undefined) {
221
221
  const obj_nextObjectJoinDetails = obj.nextObjectJoinDetails;
222
222
  const path_nextObjectJoinDetails = path + '.nextObjectJoinDetails';
223
- const referencepath_nextObjectJoinDetailsValidationError = validate$9(obj_nextObjectJoinDetails, path_nextObjectJoinDetails);
223
+ const referencepath_nextObjectJoinDetailsValidationError = validate$i(obj_nextObjectJoinDetails, path_nextObjectJoinDetails);
224
224
  if (referencepath_nextObjectJoinDetailsValidationError !== null) {
225
225
  let message = 'Object doesn\'t match RecordAggregationJoinInputRepresentation (at "' + path_nextObjectJoinDetails + '")\n';
226
226
  message += referencepath_nextObjectJoinDetailsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -229,7 +229,7 @@ function validate$7(obj, path = 'RecordAggregationNodeInputRepresentation') {
229
229
  }
230
230
  const obj_objectDetails = obj.objectDetails;
231
231
  const path_objectDetails = path + '.objectDetails';
232
- const referencepath_objectDetailsValidationError = validate$8(obj_objectDetails, path_objectDetails);
232
+ const referencepath_objectDetailsValidationError = validate$h(obj_objectDetails, path_objectDetails);
233
233
  if (referencepath_objectDetailsValidationError !== null) {
234
234
  let message = 'Object doesn\'t match RecordAggregationAssociatedObjectInputRepresentation (at "' + path_objectDetails + '")\n';
235
235
  message += referencepath_objectDetailsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -238,7 +238,7 @@ function validate$7(obj, path = 'RecordAggregationNodeInputRepresentation') {
238
238
  if (obj.previousObjectJoinDetails !== undefined) {
239
239
  const obj_previousObjectJoinDetails = obj.previousObjectJoinDetails;
240
240
  const path_previousObjectJoinDetails = path + '.previousObjectJoinDetails';
241
- const referencepath_previousObjectJoinDetailsValidationError = validate$9(obj_previousObjectJoinDetails, path_previousObjectJoinDetails);
241
+ const referencepath_previousObjectJoinDetailsValidationError = validate$i(obj_previousObjectJoinDetails, path_previousObjectJoinDetails);
242
242
  if (referencepath_previousObjectJoinDetailsValidationError !== null) {
243
243
  let message = 'Object doesn\'t match RecordAggregationJoinInputRepresentation (at "' + path_previousObjectJoinDetails + '")\n';
244
244
  message += referencepath_previousObjectJoinDetailsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -254,9 +254,9 @@ function validate$7(obj, path = 'RecordAggregationNodeInputRepresentation') {
254
254
  return v_error === undefined ? null : v_error;
255
255
  }
256
256
 
257
- const TTL$3 = 0;
258
- const VERSION$6 = "360b76c13b79ed8a1d3522d29b8a91e1";
259
- function validate$6(obj, path = 'RecordAggregationCreationOutputRepresentation') {
257
+ const TTL$1 = 0;
258
+ const VERSION$f = "360b76c13b79ed8a1d3522d29b8a91e1";
259
+ function validate$f(obj, path = 'RecordAggregationCreationOutputRepresentation') {
260
260
  const v_error = (() => {
261
261
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
262
262
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -279,23 +279,23 @@ function validate$6(obj, path = 'RecordAggregationCreationOutputRepresentation')
279
279
  })();
280
280
  return v_error === undefined ? null : v_error;
281
281
  }
282
- const RepresentationType$3 = 'RecordAggregationCreationOutputRepresentation';
283
- function keyBuilder$4(luvio, config) {
284
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
282
+ const RepresentationType$6 = 'RecordAggregationCreationOutputRepresentation';
283
+ function keyBuilder$9(luvio, config) {
284
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.id;
285
285
  }
286
- function keyBuilderFromType$2(luvio, object) {
286
+ function keyBuilderFromType$3(luvio, object) {
287
287
  const keyParams = {
288
288
  id: object.recordAggregationDefinitionId
289
289
  };
290
- return keyBuilder$4(luvio, keyParams);
290
+ return keyBuilder$9(luvio, keyParams);
291
291
  }
292
- function normalize$3(input, existing, path, luvio, store, timestamp) {
292
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
293
293
  return input;
294
294
  }
295
- const select$a = function RecordAggregationCreationOutputRepresentationSelect() {
295
+ const select$m = function RecordAggregationCreationOutputRepresentationSelect() {
296
296
  return {
297
297
  kind: 'Fragment',
298
- version: VERSION$6,
298
+ version: VERSION$f,
299
299
  private: [],
300
300
  selections: [
301
301
  {
@@ -313,7 +313,7 @@ const select$a = function RecordAggregationCreationOutputRepresentationSelect()
313
313
  ]
314
314
  };
315
315
  };
316
- function equals$6(existing, incoming) {
316
+ function equals$f(existing, incoming) {
317
317
  const existing_message = existing.message;
318
318
  const incoming_message = incoming.message;
319
319
  if (!(existing_message === incoming_message)) {
@@ -331,21 +331,1424 @@ function equals$6(existing, incoming) {
331
331
  }
332
332
  return true;
333
333
  }
334
- const ingest$3 = function RecordAggregationCreationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
334
+ const ingest$6 = function RecordAggregationCreationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
335
+ if (process.env.NODE_ENV !== 'production') {
336
+ const validateError = validate$f(input);
337
+ if (validateError !== null) {
338
+ throw validateError;
339
+ }
340
+ }
341
+ const key = keyBuilderFromType$3(luvio, input);
342
+ const ttlToUse = TTL$1;
343
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "IndustriesRecordAggregation", VERSION$f, RepresentationType$6, equals$f);
344
+ return createLink(key);
345
+ };
346
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
347
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
348
+ const rootKey = keyBuilderFromType$3(luvio, input);
349
+ rootKeySet.set(rootKey, {
350
+ namespace: keyPrefix,
351
+ representationName: RepresentationType$6,
352
+ mergeable: false
353
+ });
354
+ }
355
+
356
+ function select$l(luvio, params) {
357
+ return select$m();
358
+ }
359
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
360
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
361
+ }
362
+ function ingestSuccess$6(luvio, resourceParams, response) {
363
+ const { body } = response;
364
+ const key = keyBuilderFromType$3(luvio, body);
365
+ luvio.storeIngest(key, ingest$6, body);
366
+ const snapshot = luvio.storeLookup({
367
+ recordId: key,
368
+ node: select$l(),
369
+ variables: {},
370
+ });
371
+ if (process.env.NODE_ENV !== 'production') {
372
+ if (snapshot.state !== 'Fulfilled') {
373
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
374
+ }
375
+ }
376
+ deepFreeze(snapshot.data);
377
+ return snapshot;
378
+ }
379
+ function createResourceRequest$6(config) {
380
+ const headers = {};
381
+ return {
382
+ baseUri: '/services/data/v61.0',
383
+ basePath: '/connect/record-aggregation',
384
+ method: 'post',
385
+ body: config.body,
386
+ urlParams: {},
387
+ queryParams: {},
388
+ headers,
389
+ priority: 'normal',
390
+ };
391
+ }
392
+
393
+ const adapterName$6 = 'postRecordAggregationCreation';
394
+ const postRecordAggregationCreation_ConfigPropertyMetadata = [
395
+ generateParamConfigMetadata('aggregationObjects', true, 2 /* Body */, 4 /* Unsupported */, true),
396
+ generateParamConfigMetadata('definitionDescription', false, 2 /* Body */, 0 /* String */),
397
+ generateParamConfigMetadata('definitionDisplayName', true, 2 /* Body */, 0 /* String */),
398
+ ];
399
+ const postRecordAggregationCreation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, postRecordAggregationCreation_ConfigPropertyMetadata);
400
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(postRecordAggregationCreation_ConfigPropertyMetadata);
401
+ function typeCheckConfig$6(untrustedConfig) {
402
+ const config = {};
403
+ typeCheckConfig$7(untrustedConfig, config, postRecordAggregationCreation_ConfigPropertyMetadata);
404
+ const untrustedConfig_aggregationObjects = untrustedConfig.aggregationObjects;
405
+ if (ArrayIsArray$1(untrustedConfig_aggregationObjects)) {
406
+ const untrustedConfig_aggregationObjects_array = [];
407
+ for (let i = 0, arrayLength = untrustedConfig_aggregationObjects.length; i < arrayLength; i++) {
408
+ const untrustedConfig_aggregationObjects_item = untrustedConfig_aggregationObjects[i];
409
+ const referenceRecordAggregationNodeInputRepresentationValidationError = validate$g(untrustedConfig_aggregationObjects_item);
410
+ if (referenceRecordAggregationNodeInputRepresentationValidationError === null) {
411
+ untrustedConfig_aggregationObjects_array.push(untrustedConfig_aggregationObjects_item);
412
+ }
413
+ }
414
+ config.aggregationObjects = untrustedConfig_aggregationObjects_array;
415
+ }
416
+ return config;
417
+ }
418
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
419
+ if (!untrustedIsObject(untrustedConfig)) {
420
+ return null;
421
+ }
422
+ if (process.env.NODE_ENV !== 'production') {
423
+ validateConfig(untrustedConfig, configPropertyNames);
424
+ }
425
+ const config = typeCheckConfig$6(untrustedConfig);
426
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
427
+ return null;
428
+ }
429
+ return config;
430
+ }
431
+ function buildNetworkSnapshot$6(luvio, config, options) {
432
+ const resourceParams = createResourceParams$6(config);
433
+ const request = createResourceRequest$6(resourceParams);
434
+ return luvio.dispatchResourceRequest(request, options)
435
+ .then((response) => {
436
+ return luvio.handleSuccessResponse(() => {
437
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response);
438
+ return luvio.storeBroadcast().then(() => snapshot);
439
+ }, () => {
440
+ const cache = new StoreKeyMap();
441
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
442
+ return cache;
443
+ });
444
+ }, (response) => {
445
+ deepFreeze(response);
446
+ throw response;
447
+ });
448
+ }
449
+ const postRecordAggregationCreationAdapterFactory = (luvio) => {
450
+ return function postRecordAggregationCreation(untrustedConfig) {
451
+ const config = validateAdapterConfig$6(untrustedConfig, postRecordAggregationCreation_ConfigPropertyNames);
452
+ // Invalid or incomplete config
453
+ if (config === null) {
454
+ throw new Error('Invalid config for "postRecordAggregationCreation"');
455
+ }
456
+ return buildNetworkSnapshot$6(luvio, config);
457
+ };
458
+ };
459
+
460
+ const VERSION$e = "e0976ceab3ba0b389e4cc8c2ef45e90c";
461
+ function validate$e(obj, path = 'RecordAggregationApplicableObjectOutputRepresentation') {
462
+ const v_error = (() => {
463
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
464
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
465
+ }
466
+ const obj_apiName = obj.apiName;
467
+ const path_apiName = path + '.apiName';
468
+ if (typeof obj_apiName !== 'string') {
469
+ return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
470
+ }
471
+ const obj_label = obj.label;
472
+ const path_label = path + '.label';
473
+ if (typeof obj_label !== 'string') {
474
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
475
+ }
476
+ })();
477
+ return v_error === undefined ? null : v_error;
478
+ }
479
+ const select$k = function RecordAggregationApplicableObjectOutputRepresentationSelect() {
480
+ return {
481
+ kind: 'Fragment',
482
+ version: VERSION$e,
483
+ private: [],
484
+ selections: [
485
+ {
486
+ name: 'apiName',
487
+ kind: 'Scalar'
488
+ },
489
+ {
490
+ name: 'label',
491
+ kind: 'Scalar'
492
+ }
493
+ ]
494
+ };
495
+ };
496
+ function equals$e(existing, incoming) {
497
+ const existing_apiName = existing.apiName;
498
+ const incoming_apiName = incoming.apiName;
499
+ if (!(existing_apiName === incoming_apiName)) {
500
+ return false;
501
+ }
502
+ const existing_label = existing.label;
503
+ const incoming_label = incoming.label;
504
+ if (!(existing_label === incoming_label)) {
505
+ return false;
506
+ }
507
+ return true;
508
+ }
509
+
510
+ const VERSION$d = "789bb460c399fd0e584cd09a32279a52";
511
+ function validate$d(obj, path = 'RecordAggregationApplicableObjectsOutputRepresentation') {
512
+ const v_error = (() => {
513
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
514
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
515
+ }
516
+ const obj_message = obj.message;
517
+ const path_message = path + '.message';
518
+ if (typeof obj_message !== 'string') {
519
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
520
+ }
521
+ const obj_objects = obj.objects;
522
+ const path_objects = path + '.objects';
523
+ if (!ArrayIsArray(obj_objects)) {
524
+ return new TypeError('Expected "array" but received "' + typeof obj_objects + '" (at "' + path_objects + '")');
525
+ }
526
+ for (let i = 0; i < obj_objects.length; i++) {
527
+ const obj_objects_item = obj_objects[i];
528
+ const path_objects_item = path_objects + '[' + i + ']';
529
+ const referencepath_objects_itemValidationError = validate$e(obj_objects_item, path_objects_item);
530
+ if (referencepath_objects_itemValidationError !== null) {
531
+ let message = 'Object doesn\'t match RecordAggregationApplicableObjectOutputRepresentation (at "' + path_objects_item + '")\n';
532
+ message += referencepath_objects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
533
+ return new TypeError(message);
534
+ }
535
+ }
536
+ const obj_statusCode = obj.statusCode;
537
+ const path_statusCode = path + '.statusCode';
538
+ if (typeof obj_statusCode !== 'string') {
539
+ return new TypeError('Expected "string" but received "' + typeof obj_statusCode + '" (at "' + path_statusCode + '")');
540
+ }
541
+ })();
542
+ return v_error === undefined ? null : v_error;
543
+ }
544
+ const RepresentationType$5 = 'RecordAggregationApplicableObjectsOutputRepresentation';
545
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
546
+ return input;
547
+ }
548
+ const select$j = function RecordAggregationApplicableObjectsOutputRepresentationSelect() {
549
+ const { selections: RecordAggregationApplicableObjectOutputRepresentation__selections, opaque: RecordAggregationApplicableObjectOutputRepresentation__opaque, } = select$k();
550
+ return {
551
+ kind: 'Fragment',
552
+ version: VERSION$d,
553
+ private: [],
554
+ selections: [
555
+ {
556
+ name: 'message',
557
+ kind: 'Scalar'
558
+ },
559
+ {
560
+ name: 'objects',
561
+ kind: 'Object',
562
+ plural: true,
563
+ selections: RecordAggregationApplicableObjectOutputRepresentation__selections
564
+ },
565
+ {
566
+ name: 'statusCode',
567
+ kind: 'Scalar'
568
+ }
569
+ ]
570
+ };
571
+ };
572
+ function equals$d(existing, incoming) {
573
+ const existing_message = existing.message;
574
+ const incoming_message = incoming.message;
575
+ if (!(existing_message === incoming_message)) {
576
+ return false;
577
+ }
578
+ const existing_statusCode = existing.statusCode;
579
+ const incoming_statusCode = incoming.statusCode;
580
+ if (!(existing_statusCode === incoming_statusCode)) {
581
+ return false;
582
+ }
583
+ const existing_objects = existing.objects;
584
+ const incoming_objects = incoming.objects;
585
+ const equals_objects_items = equalsArray(existing_objects, incoming_objects, (existing_objects_item, incoming_objects_item) => {
586
+ if (!(equals$e(existing_objects_item, incoming_objects_item))) {
587
+ return false;
588
+ }
589
+ });
590
+ if (equals_objects_items === false) {
591
+ return false;
592
+ }
593
+ return true;
594
+ }
595
+ const ingest$5 = function RecordAggregationApplicableObjectsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
596
+ if (process.env.NODE_ENV !== 'production') {
597
+ const validateError = validate$d(input);
598
+ if (validateError !== null) {
599
+ throw validateError;
600
+ }
601
+ }
602
+ const key = path.fullPath;
603
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 1000;
604
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "IndustriesRecordAggregation", VERSION$d, RepresentationType$5, equals$d);
605
+ return createLink(key);
606
+ };
607
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
608
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
609
+ const rootKey = fullPathFactory();
610
+ rootKeySet.set(rootKey, {
611
+ namespace: keyPrefix,
612
+ representationName: RepresentationType$5,
613
+ mergeable: false
614
+ });
615
+ }
616
+
617
+ function select$i(luvio, params) {
618
+ return select$j();
619
+ }
620
+ function keyBuilder$8(luvio, params) {
621
+ return keyPrefix + '::RecordAggregationApplicableObjectsOutputRepresentation:(' + ')';
622
+ }
623
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
624
+ getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$8());
625
+ }
626
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
627
+ const { body } = response;
628
+ const key = keyBuilder$8();
629
+ luvio.storeIngest(key, ingest$5, body);
630
+ const snapshot = luvio.storeLookup({
631
+ recordId: key,
632
+ node: select$i(),
633
+ variables: {},
634
+ }, snapshotRefresh);
635
+ if (process.env.NODE_ENV !== 'production') {
636
+ if (snapshot.state !== 'Fulfilled') {
637
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
638
+ }
639
+ }
640
+ deepFreeze(snapshot.data);
641
+ return snapshot;
642
+ }
643
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
644
+ const key = keyBuilder$8();
645
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
646
+ luvio.storeIngestError(key, errorSnapshot);
647
+ return errorSnapshot;
648
+ }
649
+ function createResourceRequest$5(config) {
650
+ const headers = {};
651
+ return {
652
+ baseUri: '/services/data/v61.0',
653
+ basePath: '/connect/record-aggregation/utilities/applicable-objects',
654
+ method: 'get',
655
+ body: null,
656
+ urlParams: {},
657
+ queryParams: {},
658
+ headers,
659
+ priority: 'normal',
660
+ };
661
+ }
662
+
663
+ const adapterName$5 = 'getRecordAggregationApplicableObjects';
664
+ const getRecordAggregationApplicableObjects_ConfigPropertyMetadata = [];
665
+ const getRecordAggregationApplicableObjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getRecordAggregationApplicableObjects_ConfigPropertyMetadata);
666
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(getRecordAggregationApplicableObjects_ConfigPropertyMetadata);
667
+ function keyBuilder$7(luvio, config) {
668
+ createResourceParams$5(config);
669
+ return keyBuilder$8();
670
+ }
671
+ function typeCheckConfig$5(untrustedConfig) {
672
+ const config = {};
673
+ return config;
674
+ }
675
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
676
+ if (!untrustedIsObject(untrustedConfig)) {
677
+ return null;
678
+ }
679
+ if (process.env.NODE_ENV !== 'production') {
680
+ validateConfig(untrustedConfig, configPropertyNames);
681
+ }
682
+ const config = typeCheckConfig$5();
683
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
684
+ return null;
685
+ }
686
+ return config;
687
+ }
688
+ function adapterFragment$2(luvio, config) {
689
+ createResourceParams$5(config);
690
+ return select$i();
691
+ }
692
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
693
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
694
+ config,
695
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
696
+ });
697
+ return luvio.storeBroadcast().then(() => snapshot);
698
+ }
699
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
700
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
701
+ config,
702
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
703
+ });
704
+ return luvio.storeBroadcast().then(() => snapshot);
705
+ }
706
+ function buildNetworkSnapshot$5(luvio, config, options) {
707
+ const resourceParams = createResourceParams$5(config);
708
+ const request = createResourceRequest$5();
709
+ return luvio.dispatchResourceRequest(request, options)
710
+ .then((response) => {
711
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
712
+ const cache = new StoreKeyMap();
713
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
714
+ return cache;
715
+ });
716
+ }, (response) => {
717
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
718
+ });
719
+ }
720
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
721
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
722
+ }
723
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
724
+ const { luvio, config } = context;
725
+ const selector = {
726
+ recordId: keyBuilder$7(luvio, config),
727
+ node: adapterFragment$2(luvio, config),
728
+ variables: {},
729
+ };
730
+ const cacheSnapshot = storeLookup(selector, {
731
+ config,
732
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
733
+ });
734
+ return cacheSnapshot;
735
+ }
736
+ const getRecordAggregationApplicableObjectsAdapterFactory = (luvio) => function IndustriesRecordAggregation__getRecordAggregationApplicableObjects(untrustedConfig, requestContext) {
737
+ const config = validateAdapterConfig$5(untrustedConfig, getRecordAggregationApplicableObjects_ConfigPropertyNames);
738
+ // Invalid or incomplete config
739
+ if (config === null) {
740
+ return null;
741
+ }
742
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
743
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
744
+ };
745
+
746
+ const VERSION$c = "d8a265f3be6d95b8f129771ad56af899";
747
+ function validate$c(obj, path = 'RecordAggregationApplicableFieldOutputRepresentation') {
748
+ const v_error = (() => {
749
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
750
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
751
+ }
752
+ const obj_apiName = obj.apiName;
753
+ const path_apiName = path + '.apiName';
754
+ if (typeof obj_apiName !== 'string') {
755
+ return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
756
+ }
757
+ const obj_dataType = obj.dataType;
758
+ const path_dataType = path + '.dataType';
759
+ if (typeof obj_dataType !== 'string') {
760
+ return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
761
+ }
762
+ const obj_isCompound = obj.isCompound;
763
+ const path_isCompound = path + '.isCompound';
764
+ if (typeof obj_isCompound !== 'boolean') {
765
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isCompound + '" (at "' + path_isCompound + '")');
766
+ }
767
+ const obj_label = obj.label;
768
+ const path_label = path + '.label';
769
+ if (typeof obj_label !== 'string') {
770
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
771
+ }
772
+ })();
773
+ return v_error === undefined ? null : v_error;
774
+ }
775
+ const select$h = function RecordAggregationApplicableFieldOutputRepresentationSelect() {
776
+ return {
777
+ kind: 'Fragment',
778
+ version: VERSION$c,
779
+ private: [],
780
+ selections: [
781
+ {
782
+ name: 'apiName',
783
+ kind: 'Scalar'
784
+ },
785
+ {
786
+ name: 'dataType',
787
+ kind: 'Scalar'
788
+ },
789
+ {
790
+ name: 'isCompound',
791
+ kind: 'Scalar'
792
+ },
793
+ {
794
+ name: 'label',
795
+ kind: 'Scalar'
796
+ }
797
+ ]
798
+ };
799
+ };
800
+ function equals$c(existing, incoming) {
801
+ const existing_isCompound = existing.isCompound;
802
+ const incoming_isCompound = incoming.isCompound;
803
+ if (!(existing_isCompound === incoming_isCompound)) {
804
+ return false;
805
+ }
806
+ const existing_apiName = existing.apiName;
807
+ const incoming_apiName = incoming.apiName;
808
+ if (!(existing_apiName === incoming_apiName)) {
809
+ return false;
810
+ }
811
+ const existing_dataType = existing.dataType;
812
+ const incoming_dataType = incoming.dataType;
813
+ if (!(existing_dataType === incoming_dataType)) {
814
+ return false;
815
+ }
816
+ const existing_label = existing.label;
817
+ const incoming_label = incoming.label;
818
+ if (!(existing_label === incoming_label)) {
819
+ return false;
820
+ }
821
+ return true;
822
+ }
823
+
824
+ const VERSION$b = "3c44d9ec6604e1f30267b907f64fd09f";
825
+ function validate$b(obj, path = 'RecordAggregationEntityApplicableFieldsOutputRepresentation') {
826
+ const v_error = (() => {
827
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
828
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
829
+ }
830
+ const obj_fields = obj.fields;
831
+ const path_fields = path + '.fields';
832
+ if (!ArrayIsArray(obj_fields)) {
833
+ return new TypeError('Expected "array" but received "' + typeof obj_fields + '" (at "' + path_fields + '")');
834
+ }
835
+ for (let i = 0; i < obj_fields.length; i++) {
836
+ const obj_fields_item = obj_fields[i];
837
+ const path_fields_item = path_fields + '[' + i + ']';
838
+ const referencepath_fields_itemValidationError = validate$c(obj_fields_item, path_fields_item);
839
+ if (referencepath_fields_itemValidationError !== null) {
840
+ let message = 'Object doesn\'t match RecordAggregationApplicableFieldOutputRepresentation (at "' + path_fields_item + '")\n';
841
+ message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
842
+ return new TypeError(message);
843
+ }
844
+ }
845
+ const obj_message = obj.message;
846
+ const path_message = path + '.message';
847
+ if (typeof obj_message !== 'string') {
848
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
849
+ }
850
+ const obj_statusCode = obj.statusCode;
851
+ const path_statusCode = path + '.statusCode';
852
+ if (typeof obj_statusCode !== 'string') {
853
+ return new TypeError('Expected "string" but received "' + typeof obj_statusCode + '" (at "' + path_statusCode + '")');
854
+ }
855
+ const obj_validOperators = obj.validOperators;
856
+ const path_validOperators = path + '.validOperators';
857
+ if (typeof obj_validOperators !== 'object' || ArrayIsArray(obj_validOperators) || obj_validOperators === null) {
858
+ return new TypeError('Expected "object" but received "' + typeof obj_validOperators + '" (at "' + path_validOperators + '")');
859
+ }
860
+ const obj_validOperators_keys = ObjectKeys(obj_validOperators);
861
+ for (let i = 0; i < obj_validOperators_keys.length; i++) {
862
+ const key = obj_validOperators_keys[i];
863
+ const obj_validOperators_prop = obj_validOperators[key];
864
+ const path_validOperators_prop = path_validOperators + '["' + key + '"]';
865
+ if (obj_validOperators_prop === undefined) {
866
+ return new TypeError('Expected "defined" but received "' + typeof obj_validOperators_prop + '" (at "' + path_validOperators_prop + '")');
867
+ }
868
+ }
869
+ })();
870
+ return v_error === undefined ? null : v_error;
871
+ }
872
+ const RepresentationType$4 = 'RecordAggregationEntityApplicableFieldsOutputRepresentation';
873
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
874
+ return input;
875
+ }
876
+ const select$g = function RecordAggregationEntityApplicableFieldsOutputRepresentationSelect() {
877
+ const { selections: RecordAggregationApplicableFieldOutputRepresentation__selections, opaque: RecordAggregationApplicableFieldOutputRepresentation__opaque, } = select$h();
878
+ return {
879
+ kind: 'Fragment',
880
+ version: VERSION$b,
881
+ private: [],
882
+ selections: [
883
+ {
884
+ name: 'fields',
885
+ kind: 'Object',
886
+ plural: true,
887
+ selections: RecordAggregationApplicableFieldOutputRepresentation__selections
888
+ },
889
+ {
890
+ name: 'message',
891
+ kind: 'Scalar'
892
+ },
893
+ {
894
+ name: 'statusCode',
895
+ kind: 'Scalar'
896
+ },
897
+ {
898
+ name: 'validOperators',
899
+ kind: 'Object',
900
+ // any
901
+ }
902
+ ]
903
+ };
904
+ };
905
+ function equals$b(existing, incoming) {
906
+ const existing_message = existing.message;
907
+ const incoming_message = incoming.message;
908
+ if (!(existing_message === incoming_message)) {
909
+ return false;
910
+ }
911
+ const existing_statusCode = existing.statusCode;
912
+ const incoming_statusCode = incoming.statusCode;
913
+ if (!(existing_statusCode === incoming_statusCode)) {
914
+ return false;
915
+ }
916
+ const existing_fields = existing.fields;
917
+ const incoming_fields = incoming.fields;
918
+ const equals_fields_items = equalsArray(existing_fields, incoming_fields, (existing_fields_item, incoming_fields_item) => {
919
+ if (!(equals$c(existing_fields_item, incoming_fields_item))) {
920
+ return false;
921
+ }
922
+ });
923
+ if (equals_fields_items === false) {
924
+ return false;
925
+ }
926
+ const existing_validOperators = existing.validOperators;
927
+ const incoming_validOperators = incoming.validOperators;
928
+ const equals_validOperators_props = equalsObject(existing_validOperators, incoming_validOperators, (existing_validOperators_prop, incoming_validOperators_prop) => {
929
+ if (JSONStringify(incoming_validOperators_prop) !== JSONStringify(existing_validOperators_prop)) {
930
+ return false;
931
+ }
932
+ });
933
+ if (equals_validOperators_props === false) {
934
+ return false;
935
+ }
936
+ return true;
937
+ }
938
+ const ingest$4 = function RecordAggregationEntityApplicableFieldsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
939
+ if (process.env.NODE_ENV !== 'production') {
940
+ const validateError = validate$b(input);
941
+ if (validateError !== null) {
942
+ throw validateError;
943
+ }
944
+ }
945
+ const key = path.fullPath;
946
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 1000;
947
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "IndustriesRecordAggregation", VERSION$b, RepresentationType$4, equals$b);
948
+ return createLink(key);
949
+ };
950
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
951
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
952
+ const rootKey = fullPathFactory();
953
+ rootKeySet.set(rootKey, {
954
+ namespace: keyPrefix,
955
+ representationName: RepresentationType$4,
956
+ mergeable: false
957
+ });
958
+ }
959
+
960
+ function select$f(luvio, params) {
961
+ return select$g();
962
+ }
963
+ function keyBuilder$6(luvio, params) {
964
+ return keyPrefix + '::RecordAggregationEntityApplicableFieldsOutputRepresentation:(' + 'objectName:' + params.urlParams.objectName + ')';
965
+ }
966
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
967
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
968
+ }
969
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
970
+ const { body } = response;
971
+ const key = keyBuilder$6(luvio, resourceParams);
972
+ luvio.storeIngest(key, ingest$4, body);
973
+ const snapshot = luvio.storeLookup({
974
+ recordId: key,
975
+ node: select$f(),
976
+ variables: {},
977
+ }, snapshotRefresh);
978
+ if (process.env.NODE_ENV !== 'production') {
979
+ if (snapshot.state !== 'Fulfilled') {
980
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
981
+ }
982
+ }
983
+ deepFreeze(snapshot.data);
984
+ return snapshot;
985
+ }
986
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
987
+ const key = keyBuilder$6(luvio, params);
988
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
989
+ luvio.storeIngestError(key, errorSnapshot);
990
+ return errorSnapshot;
991
+ }
992
+ function createResourceRequest$4(config) {
993
+ const headers = {};
994
+ return {
995
+ baseUri: '/services/data/v61.0',
996
+ basePath: '/connect/record-aggregation/utilities/applicable-objects/' + config.urlParams.objectName + '/applicable-fields',
997
+ method: 'get',
998
+ body: null,
999
+ urlParams: config.urlParams,
1000
+ queryParams: {},
1001
+ headers,
1002
+ priority: 'normal',
1003
+ };
1004
+ }
1005
+
1006
+ const adapterName$4 = 'getRecordAggregationEntityApplicableFields';
1007
+ const getRecordAggregationEntityApplicableFields_ConfigPropertyMetadata = [
1008
+ generateParamConfigMetadata('objectName', true, 0 /* UrlParameter */, 0 /* String */),
1009
+ ];
1010
+ const getRecordAggregationEntityApplicableFields_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getRecordAggregationEntityApplicableFields_ConfigPropertyMetadata);
1011
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(getRecordAggregationEntityApplicableFields_ConfigPropertyMetadata);
1012
+ function keyBuilder$5(luvio, config) {
1013
+ const resourceParams = createResourceParams$4(config);
1014
+ return keyBuilder$6(luvio, resourceParams);
1015
+ }
1016
+ function typeCheckConfig$4(untrustedConfig) {
1017
+ const config = {};
1018
+ typeCheckConfig$7(untrustedConfig, config, getRecordAggregationEntityApplicableFields_ConfigPropertyMetadata);
1019
+ return config;
1020
+ }
1021
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1022
+ if (!untrustedIsObject(untrustedConfig)) {
1023
+ return null;
1024
+ }
1025
+ if (process.env.NODE_ENV !== 'production') {
1026
+ validateConfig(untrustedConfig, configPropertyNames);
1027
+ }
1028
+ const config = typeCheckConfig$4(untrustedConfig);
1029
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1030
+ return null;
1031
+ }
1032
+ return config;
1033
+ }
1034
+ function adapterFragment$1(luvio, config) {
1035
+ createResourceParams$4(config);
1036
+ return select$f();
1037
+ }
1038
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
1039
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
1040
+ config,
1041
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1042
+ });
1043
+ return luvio.storeBroadcast().then(() => snapshot);
1044
+ }
1045
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
1046
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
1047
+ config,
1048
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1049
+ });
1050
+ return luvio.storeBroadcast().then(() => snapshot);
1051
+ }
1052
+ function buildNetworkSnapshot$4(luvio, config, options) {
1053
+ const resourceParams = createResourceParams$4(config);
1054
+ const request = createResourceRequest$4(resourceParams);
1055
+ return luvio.dispatchResourceRequest(request, options)
1056
+ .then((response) => {
1057
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
1058
+ const cache = new StoreKeyMap();
1059
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
1060
+ return cache;
1061
+ });
1062
+ }, (response) => {
1063
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
1064
+ });
1065
+ }
1066
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
1067
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
1068
+ }
1069
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1070
+ const { luvio, config } = context;
1071
+ const selector = {
1072
+ recordId: keyBuilder$5(luvio, config),
1073
+ node: adapterFragment$1(luvio, config),
1074
+ variables: {},
1075
+ };
1076
+ const cacheSnapshot = storeLookup(selector, {
1077
+ config,
1078
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1079
+ });
1080
+ return cacheSnapshot;
1081
+ }
1082
+ const getRecordAggregationEntityApplicableFieldsAdapterFactory = (luvio) => function IndustriesRecordAggregation__getRecordAggregationEntityApplicableFields(untrustedConfig, requestContext) {
1083
+ const config = validateAdapterConfig$4(untrustedConfig, getRecordAggregationEntityApplicableFields_ConfigPropertyNames);
1084
+ // Invalid or incomplete config
1085
+ if (config === null) {
1086
+ return null;
1087
+ }
1088
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1089
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
1090
+ };
1091
+
1092
+ const VERSION$a = "194b30263c77f9da7e866abebe5a9939";
1093
+ function validate$a(obj, path = 'RADFieldFilterOutputRepresentation') {
1094
+ const v_error = (() => {
1095
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1096
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1097
+ }
1098
+ const obj_fieldApiName = obj.fieldApiName;
1099
+ const path_fieldApiName = path + '.fieldApiName';
1100
+ if (typeof obj_fieldApiName !== 'string') {
1101
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
1102
+ }
1103
+ const obj_fieldLabel = obj.fieldLabel;
1104
+ const path_fieldLabel = path + '.fieldLabel';
1105
+ if (typeof obj_fieldLabel !== 'string') {
1106
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldLabel + '" (at "' + path_fieldLabel + '")');
1107
+ }
1108
+ const obj_operator = obj.operator;
1109
+ const path_operator = path + '.operator';
1110
+ if (typeof obj_operator !== 'string') {
1111
+ return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
1112
+ }
1113
+ const obj_operatorLabel = obj.operatorLabel;
1114
+ const path_operatorLabel = path + '.operatorLabel';
1115
+ if (typeof obj_operatorLabel !== 'string') {
1116
+ return new TypeError('Expected "string" but received "' + typeof obj_operatorLabel + '" (at "' + path_operatorLabel + '")');
1117
+ }
1118
+ const obj_recordId = obj.recordId;
1119
+ const path_recordId = path + '.recordId';
1120
+ if (typeof obj_recordId !== 'string') {
1121
+ return new TypeError('Expected "string" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
1122
+ }
1123
+ const obj_sequence = obj.sequence;
1124
+ const path_sequence = path + '.sequence';
1125
+ if (typeof obj_sequence !== 'number' || (typeof obj_sequence === 'number' && Math.floor(obj_sequence) !== obj_sequence)) {
1126
+ return new TypeError('Expected "integer" but received "' + typeof obj_sequence + '" (at "' + path_sequence + '")');
1127
+ }
1128
+ const obj_value = obj.value;
1129
+ const path_value = path + '.value';
1130
+ if (typeof obj_value !== 'string') {
1131
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1132
+ }
1133
+ })();
1134
+ return v_error === undefined ? null : v_error;
1135
+ }
1136
+ const select$e = function RADFieldFilterOutputRepresentationSelect() {
1137
+ return {
1138
+ kind: 'Fragment',
1139
+ version: VERSION$a,
1140
+ private: [],
1141
+ selections: [
1142
+ {
1143
+ name: 'fieldApiName',
1144
+ kind: 'Scalar'
1145
+ },
1146
+ {
1147
+ name: 'fieldLabel',
1148
+ kind: 'Scalar'
1149
+ },
1150
+ {
1151
+ name: 'operator',
1152
+ kind: 'Scalar'
1153
+ },
1154
+ {
1155
+ name: 'operatorLabel',
1156
+ kind: 'Scalar'
1157
+ },
1158
+ {
1159
+ name: 'recordId',
1160
+ kind: 'Scalar'
1161
+ },
1162
+ {
1163
+ name: 'sequence',
1164
+ kind: 'Scalar'
1165
+ },
1166
+ {
1167
+ name: 'value',
1168
+ kind: 'Scalar'
1169
+ }
1170
+ ]
1171
+ };
1172
+ };
1173
+ function equals$a(existing, incoming) {
1174
+ const existing_sequence = existing.sequence;
1175
+ const incoming_sequence = incoming.sequence;
1176
+ if (!(existing_sequence === incoming_sequence)) {
1177
+ return false;
1178
+ }
1179
+ const existing_fieldApiName = existing.fieldApiName;
1180
+ const incoming_fieldApiName = incoming.fieldApiName;
1181
+ if (!(existing_fieldApiName === incoming_fieldApiName)) {
1182
+ return false;
1183
+ }
1184
+ const existing_fieldLabel = existing.fieldLabel;
1185
+ const incoming_fieldLabel = incoming.fieldLabel;
1186
+ if (!(existing_fieldLabel === incoming_fieldLabel)) {
1187
+ return false;
1188
+ }
1189
+ const existing_operator = existing.operator;
1190
+ const incoming_operator = incoming.operator;
1191
+ if (!(existing_operator === incoming_operator)) {
1192
+ return false;
1193
+ }
1194
+ const existing_operatorLabel = existing.operatorLabel;
1195
+ const incoming_operatorLabel = incoming.operatorLabel;
1196
+ if (!(existing_operatorLabel === incoming_operatorLabel)) {
1197
+ return false;
1198
+ }
1199
+ const existing_recordId = existing.recordId;
1200
+ const incoming_recordId = incoming.recordId;
1201
+ if (!(existing_recordId === incoming_recordId)) {
1202
+ return false;
1203
+ }
1204
+ const existing_value = existing.value;
1205
+ const incoming_value = incoming.value;
1206
+ if (!(existing_value === incoming_value)) {
1207
+ return false;
1208
+ }
1209
+ return true;
1210
+ }
1211
+
1212
+ const VERSION$9 = "291b8d0ca0b1000c0cfd0428ed183892";
1213
+ function validate$9(obj, path = 'RADNodeFilterOutputRepresentation') {
1214
+ const v_error = (() => {
1215
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1216
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1217
+ }
1218
+ if (obj.filterConditions !== undefined) {
1219
+ const obj_filterConditions = obj.filterConditions;
1220
+ const path_filterConditions = path + '.filterConditions';
1221
+ if (!ArrayIsArray(obj_filterConditions)) {
1222
+ return new TypeError('Expected "array" but received "' + typeof obj_filterConditions + '" (at "' + path_filterConditions + '")');
1223
+ }
1224
+ for (let i = 0; i < obj_filterConditions.length; i++) {
1225
+ const obj_filterConditions_item = obj_filterConditions[i];
1226
+ const path_filterConditions_item = path_filterConditions + '[' + i + ']';
1227
+ const referencepath_filterConditions_itemValidationError = validate$a(obj_filterConditions_item, path_filterConditions_item);
1228
+ if (referencepath_filterConditions_itemValidationError !== null) {
1229
+ let message = 'Object doesn\'t match RADFieldFilterOutputRepresentation (at "' + path_filterConditions_item + '")\n';
1230
+ message += referencepath_filterConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1231
+ return new TypeError(message);
1232
+ }
1233
+ }
1234
+ }
1235
+ if (obj.filterCriteria !== undefined) {
1236
+ const obj_filterCriteria = obj.filterCriteria;
1237
+ const path_filterCriteria = path + '.filterCriteria';
1238
+ if (typeof obj_filterCriteria !== 'string') {
1239
+ return new TypeError('Expected "string" but received "' + typeof obj_filterCriteria + '" (at "' + path_filterCriteria + '")');
1240
+ }
1241
+ }
1242
+ if (obj.filterCriteriaDescription !== undefined) {
1243
+ const obj_filterCriteriaDescription = obj.filterCriteriaDescription;
1244
+ const path_filterCriteriaDescription = path + '.filterCriteriaDescription';
1245
+ if (typeof obj_filterCriteriaDescription !== 'string') {
1246
+ return new TypeError('Expected "string" but received "' + typeof obj_filterCriteriaDescription + '" (at "' + path_filterCriteriaDescription + '")');
1247
+ }
1248
+ }
1249
+ })();
1250
+ return v_error === undefined ? null : v_error;
1251
+ }
1252
+ const select$d = function RADNodeFilterOutputRepresentationSelect() {
1253
+ const { selections: RADFieldFilterOutputRepresentation__selections, opaque: RADFieldFilterOutputRepresentation__opaque, } = select$e();
1254
+ return {
1255
+ kind: 'Fragment',
1256
+ version: VERSION$9,
1257
+ private: [],
1258
+ selections: [
1259
+ {
1260
+ name: 'filterConditions',
1261
+ kind: 'Object',
1262
+ plural: true,
1263
+ selections: RADFieldFilterOutputRepresentation__selections,
1264
+ required: false
1265
+ },
1266
+ {
1267
+ name: 'filterCriteria',
1268
+ kind: 'Scalar',
1269
+ required: false
1270
+ },
1271
+ {
1272
+ name: 'filterCriteriaDescription',
1273
+ kind: 'Scalar',
1274
+ required: false
1275
+ }
1276
+ ]
1277
+ };
1278
+ };
1279
+ function equals$9(existing, incoming) {
1280
+ const existing_filterCriteria = existing.filterCriteria;
1281
+ const incoming_filterCriteria = incoming.filterCriteria;
1282
+ // if at least one of these optionals is defined
1283
+ if (existing_filterCriteria !== undefined || incoming_filterCriteria !== undefined) {
1284
+ // if one of these is not defined we know the other is defined and therefore
1285
+ // not equal
1286
+ if (existing_filterCriteria === undefined || incoming_filterCriteria === undefined) {
1287
+ return false;
1288
+ }
1289
+ if (!(existing_filterCriteria === incoming_filterCriteria)) {
1290
+ return false;
1291
+ }
1292
+ }
1293
+ const existing_filterCriteriaDescription = existing.filterCriteriaDescription;
1294
+ const incoming_filterCriteriaDescription = incoming.filterCriteriaDescription;
1295
+ // if at least one of these optionals is defined
1296
+ if (existing_filterCriteriaDescription !== undefined || incoming_filterCriteriaDescription !== undefined) {
1297
+ // if one of these is not defined we know the other is defined and therefore
1298
+ // not equal
1299
+ if (existing_filterCriteriaDescription === undefined || incoming_filterCriteriaDescription === undefined) {
1300
+ return false;
1301
+ }
1302
+ if (!(existing_filterCriteriaDescription === incoming_filterCriteriaDescription)) {
1303
+ return false;
1304
+ }
1305
+ }
1306
+ const existing_filterConditions = existing.filterConditions;
1307
+ const incoming_filterConditions = incoming.filterConditions;
1308
+ // if at least one of these optionals is defined
1309
+ if (existing_filterConditions !== undefined || incoming_filterConditions !== undefined) {
1310
+ // if one of these is not defined we know the other is defined and therefore
1311
+ // not equal
1312
+ if (existing_filterConditions === undefined || incoming_filterConditions === undefined) {
1313
+ return false;
1314
+ }
1315
+ const equals_filterConditions_items = equalsArray(existing_filterConditions, incoming_filterConditions, (existing_filterConditions_item, incoming_filterConditions_item) => {
1316
+ if (!(equals$a(existing_filterConditions_item, incoming_filterConditions_item))) {
1317
+ return false;
1318
+ }
1319
+ });
1320
+ if (equals_filterConditions_items === false) {
1321
+ return false;
1322
+ }
1323
+ }
1324
+ return true;
1325
+ }
1326
+
1327
+ const VERSION$8 = "f2c00d9b691171207e7e5e9027b5f138";
1328
+ function validate$8(obj, path = 'RADJoinFieldOutputRepresentation') {
1329
+ const v_error = (() => {
1330
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1331
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1332
+ }
1333
+ const obj_fieldApiName = obj.fieldApiName;
1334
+ const path_fieldApiName = path + '.fieldApiName';
1335
+ if (typeof obj_fieldApiName !== 'string') {
1336
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
1337
+ }
1338
+ const obj_fieldLabel = obj.fieldLabel;
1339
+ const path_fieldLabel = path + '.fieldLabel';
1340
+ if (typeof obj_fieldLabel !== 'string') {
1341
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldLabel + '" (at "' + path_fieldLabel + '")');
1342
+ }
1343
+ })();
1344
+ return v_error === undefined ? null : v_error;
1345
+ }
1346
+ const select$c = function RADJoinFieldOutputRepresentationSelect() {
1347
+ return {
1348
+ kind: 'Fragment',
1349
+ version: VERSION$8,
1350
+ private: [],
1351
+ selections: [
1352
+ {
1353
+ name: 'fieldApiName',
1354
+ kind: 'Scalar'
1355
+ },
1356
+ {
1357
+ name: 'fieldLabel',
1358
+ kind: 'Scalar'
1359
+ }
1360
+ ]
1361
+ };
1362
+ };
1363
+ function equals$8(existing, incoming) {
1364
+ const existing_fieldApiName = existing.fieldApiName;
1365
+ const incoming_fieldApiName = incoming.fieldApiName;
1366
+ if (!(existing_fieldApiName === incoming_fieldApiName)) {
1367
+ return false;
1368
+ }
1369
+ const existing_fieldLabel = existing.fieldLabel;
1370
+ const incoming_fieldLabel = incoming.fieldLabel;
1371
+ if (!(existing_fieldLabel === incoming_fieldLabel)) {
1372
+ return false;
1373
+ }
1374
+ return true;
1375
+ }
1376
+
1377
+ const VERSION$7 = "fd3686fb156e2a098696af8b545b9105";
1378
+ function validate$7(obj, path = 'RADNodeObjectOutputRepresentation') {
1379
+ const v_error = (() => {
1380
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1381
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1382
+ }
1383
+ const obj_apiName = obj.apiName;
1384
+ const path_apiName = path + '.apiName';
1385
+ if (typeof obj_apiName !== 'string') {
1386
+ return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
1387
+ }
1388
+ const obj_label = obj.label;
1389
+ const path_label = path + '.label';
1390
+ if (typeof obj_label !== 'string') {
1391
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1392
+ }
1393
+ const obj_objectId = obj.objectId;
1394
+ const path_objectId = path + '.objectId';
1395
+ if (typeof obj_objectId !== 'string') {
1396
+ return new TypeError('Expected "string" but received "' + typeof obj_objectId + '" (at "' + path_objectId + '")');
1397
+ }
1398
+ })();
1399
+ return v_error === undefined ? null : v_error;
1400
+ }
1401
+ const select$b = function RADNodeObjectOutputRepresentationSelect() {
1402
+ return {
1403
+ kind: 'Fragment',
1404
+ version: VERSION$7,
1405
+ private: [],
1406
+ selections: [
1407
+ {
1408
+ name: 'apiName',
1409
+ kind: 'Scalar'
1410
+ },
1411
+ {
1412
+ name: 'label',
1413
+ kind: 'Scalar'
1414
+ },
1415
+ {
1416
+ name: 'objectId',
1417
+ kind: 'Scalar'
1418
+ }
1419
+ ]
1420
+ };
1421
+ };
1422
+ function equals$7(existing, incoming) {
1423
+ const existing_apiName = existing.apiName;
1424
+ const incoming_apiName = incoming.apiName;
1425
+ if (!(existing_apiName === incoming_apiName)) {
1426
+ return false;
1427
+ }
1428
+ const existing_label = existing.label;
1429
+ const incoming_label = incoming.label;
1430
+ if (!(existing_label === incoming_label)) {
1431
+ return false;
1432
+ }
1433
+ const existing_objectId = existing.objectId;
1434
+ const incoming_objectId = incoming.objectId;
1435
+ if (!(existing_objectId === incoming_objectId)) {
1436
+ return false;
1437
+ }
1438
+ return true;
1439
+ }
1440
+
1441
+ const VERSION$6 = "39e3ae51001702727f0adea383e9abb3";
1442
+ function validate$6(obj, path = 'RADNodeOutputRepresentation') {
1443
+ const v_error = (() => {
1444
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1445
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1446
+ }
1447
+ if (obj.filterDetails !== undefined) {
1448
+ const obj_filterDetails = obj.filterDetails;
1449
+ const path_filterDetails = path + '.filterDetails';
1450
+ const referencepath_filterDetailsValidationError = validate$9(obj_filterDetails, path_filterDetails);
1451
+ if (referencepath_filterDetailsValidationError !== null) {
1452
+ let message = 'Object doesn\'t match RADNodeFilterOutputRepresentation (at "' + path_filterDetails + '")\n';
1453
+ message += referencepath_filterDetailsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1454
+ return new TypeError(message);
1455
+ }
1456
+ }
1457
+ if (obj.nextObjectJoinDetails !== undefined) {
1458
+ const obj_nextObjectJoinDetails = obj.nextObjectJoinDetails;
1459
+ const path_nextObjectJoinDetails = path + '.nextObjectJoinDetails';
1460
+ const referencepath_nextObjectJoinDetailsValidationError = validate$8(obj_nextObjectJoinDetails, path_nextObjectJoinDetails);
1461
+ if (referencepath_nextObjectJoinDetailsValidationError !== null) {
1462
+ let message = 'Object doesn\'t match RADJoinFieldOutputRepresentation (at "' + path_nextObjectJoinDetails + '")\n';
1463
+ message += referencepath_nextObjectJoinDetailsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1464
+ return new TypeError(message);
1465
+ }
1466
+ }
1467
+ const obj_objectDetails = obj.objectDetails;
1468
+ const path_objectDetails = path + '.objectDetails';
1469
+ const referencepath_objectDetailsValidationError = validate$7(obj_objectDetails, path_objectDetails);
1470
+ if (referencepath_objectDetailsValidationError !== null) {
1471
+ let message = 'Object doesn\'t match RADNodeObjectOutputRepresentation (at "' + path_objectDetails + '")\n';
1472
+ message += referencepath_objectDetailsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1473
+ return new TypeError(message);
1474
+ }
1475
+ if (obj.previousObjectJoinDetails !== undefined) {
1476
+ const obj_previousObjectJoinDetails = obj.previousObjectJoinDetails;
1477
+ const path_previousObjectJoinDetails = path + '.previousObjectJoinDetails';
1478
+ const referencepath_previousObjectJoinDetailsValidationError = validate$8(obj_previousObjectJoinDetails, path_previousObjectJoinDetails);
1479
+ if (referencepath_previousObjectJoinDetailsValidationError !== null) {
1480
+ let message = 'Object doesn\'t match RADJoinFieldOutputRepresentation (at "' + path_previousObjectJoinDetails + '")\n';
1481
+ message += referencepath_previousObjectJoinDetailsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1482
+ return new TypeError(message);
1483
+ }
1484
+ }
1485
+ const obj_sequence = obj.sequence;
1486
+ const path_sequence = path + '.sequence';
1487
+ if (typeof obj_sequence !== 'number' || (typeof obj_sequence === 'number' && Math.floor(obj_sequence) !== obj_sequence)) {
1488
+ return new TypeError('Expected "integer" but received "' + typeof obj_sequence + '" (at "' + path_sequence + '")');
1489
+ }
1490
+ })();
1491
+ return v_error === undefined ? null : v_error;
1492
+ }
1493
+ const select$a = function RADNodeOutputRepresentationSelect() {
1494
+ const { selections: RADNodeFilterOutputRepresentation__selections, opaque: RADNodeFilterOutputRepresentation__opaque, } = select$d();
1495
+ const { selections: RADJoinFieldOutputRepresentation__selections, opaque: RADJoinFieldOutputRepresentation__opaque, } = select$c();
1496
+ const { selections: RADNodeObjectOutputRepresentation__selections, opaque: RADNodeObjectOutputRepresentation__opaque, } = select$b();
1497
+ return {
1498
+ kind: 'Fragment',
1499
+ version: VERSION$6,
1500
+ private: [],
1501
+ selections: [
1502
+ {
1503
+ name: 'filterDetails',
1504
+ kind: 'Object',
1505
+ selections: RADNodeFilterOutputRepresentation__selections,
1506
+ required: false
1507
+ },
1508
+ {
1509
+ name: 'nextObjectJoinDetails',
1510
+ kind: 'Object',
1511
+ selections: RADJoinFieldOutputRepresentation__selections,
1512
+ required: false
1513
+ },
1514
+ {
1515
+ name: 'objectDetails',
1516
+ kind: 'Object',
1517
+ selections: RADNodeObjectOutputRepresentation__selections
1518
+ },
1519
+ {
1520
+ name: 'previousObjectJoinDetails',
1521
+ kind: 'Object',
1522
+ selections: RADJoinFieldOutputRepresentation__selections,
1523
+ required: false
1524
+ },
1525
+ {
1526
+ name: 'sequence',
1527
+ kind: 'Scalar'
1528
+ }
1529
+ ]
1530
+ };
1531
+ };
1532
+ function equals$6(existing, incoming) {
1533
+ const existing_sequence = existing.sequence;
1534
+ const incoming_sequence = incoming.sequence;
1535
+ if (!(existing_sequence === incoming_sequence)) {
1536
+ return false;
1537
+ }
1538
+ const existing_filterDetails = existing.filterDetails;
1539
+ const incoming_filterDetails = incoming.filterDetails;
1540
+ // if at least one of these optionals is defined
1541
+ if (existing_filterDetails !== undefined || incoming_filterDetails !== undefined) {
1542
+ // if one of these is not defined we know the other is defined and therefore
1543
+ // not equal
1544
+ if (existing_filterDetails === undefined || incoming_filterDetails === undefined) {
1545
+ return false;
1546
+ }
1547
+ if (!(equals$9(existing_filterDetails, incoming_filterDetails))) {
1548
+ return false;
1549
+ }
1550
+ }
1551
+ const existing_nextObjectJoinDetails = existing.nextObjectJoinDetails;
1552
+ const incoming_nextObjectJoinDetails = incoming.nextObjectJoinDetails;
1553
+ // if at least one of these optionals is defined
1554
+ if (existing_nextObjectJoinDetails !== undefined || incoming_nextObjectJoinDetails !== undefined) {
1555
+ // if one of these is not defined we know the other is defined and therefore
1556
+ // not equal
1557
+ if (existing_nextObjectJoinDetails === undefined || incoming_nextObjectJoinDetails === undefined) {
1558
+ return false;
1559
+ }
1560
+ if (!(equals$8(existing_nextObjectJoinDetails, incoming_nextObjectJoinDetails))) {
1561
+ return false;
1562
+ }
1563
+ }
1564
+ const existing_objectDetails = existing.objectDetails;
1565
+ const incoming_objectDetails = incoming.objectDetails;
1566
+ if (!(equals$7(existing_objectDetails, incoming_objectDetails))) {
1567
+ return false;
1568
+ }
1569
+ const existing_previousObjectJoinDetails = existing.previousObjectJoinDetails;
1570
+ const incoming_previousObjectJoinDetails = incoming.previousObjectJoinDetails;
1571
+ // if at least one of these optionals is defined
1572
+ if (existing_previousObjectJoinDetails !== undefined || incoming_previousObjectJoinDetails !== undefined) {
1573
+ // if one of these is not defined we know the other is defined and therefore
1574
+ // not equal
1575
+ if (existing_previousObjectJoinDetails === undefined || incoming_previousObjectJoinDetails === undefined) {
1576
+ return false;
1577
+ }
1578
+ if (!(equals$8(existing_previousObjectJoinDetails, incoming_previousObjectJoinDetails))) {
1579
+ return false;
1580
+ }
1581
+ }
1582
+ return true;
1583
+ }
1584
+
1585
+ const VERSION$5 = "25b07f5ebd0f734dbb86348532ab7e1b";
1586
+ function validate$5(obj, path = 'RADOutputRepresentation') {
1587
+ const v_error = (() => {
1588
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1589
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1590
+ }
1591
+ const obj_aggregationObjects = obj.aggregationObjects;
1592
+ const path_aggregationObjects = path + '.aggregationObjects';
1593
+ if (!ArrayIsArray(obj_aggregationObjects)) {
1594
+ return new TypeError('Expected "array" but received "' + typeof obj_aggregationObjects + '" (at "' + path_aggregationObjects + '")');
1595
+ }
1596
+ for (let i = 0; i < obj_aggregationObjects.length; i++) {
1597
+ const obj_aggregationObjects_item = obj_aggregationObjects[i];
1598
+ const path_aggregationObjects_item = path_aggregationObjects + '[' + i + ']';
1599
+ const referencepath_aggregationObjects_itemValidationError = validate$6(obj_aggregationObjects_item, path_aggregationObjects_item);
1600
+ if (referencepath_aggregationObjects_itemValidationError !== null) {
1601
+ let message = 'Object doesn\'t match RADNodeOutputRepresentation (at "' + path_aggregationObjects_item + '")\n';
1602
+ message += referencepath_aggregationObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1603
+ return new TypeError(message);
1604
+ }
1605
+ }
1606
+ const obj_canEditDefinition = obj.canEditDefinition;
1607
+ const path_canEditDefinition = path + '.canEditDefinition';
1608
+ if (typeof obj_canEditDefinition !== 'boolean') {
1609
+ return new TypeError('Expected "boolean" but received "' + typeof obj_canEditDefinition + '" (at "' + path_canEditDefinition + '")');
1610
+ }
1611
+ if (obj.description !== undefined) {
1612
+ const obj_description = obj.description;
1613
+ const path_description = path + '.description';
1614
+ if (typeof obj_description !== 'string') {
1615
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1616
+ }
1617
+ }
1618
+ const obj_displayName = obj.displayName;
1619
+ const path_displayName = path + '.displayName';
1620
+ if (typeof obj_displayName !== 'string') {
1621
+ return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
1622
+ }
1623
+ const obj_message = obj.message;
1624
+ const path_message = path + '.message';
1625
+ if (typeof obj_message !== 'string') {
1626
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
1627
+ }
1628
+ const obj_status = obj.status;
1629
+ const path_status = path + '.status';
1630
+ if (typeof obj_status !== 'string') {
1631
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
1632
+ }
1633
+ const obj_statusCode = obj.statusCode;
1634
+ const path_statusCode = path + '.statusCode';
1635
+ if (typeof obj_statusCode !== 'string') {
1636
+ return new TypeError('Expected "string" but received "' + typeof obj_statusCode + '" (at "' + path_statusCode + '")');
1637
+ }
1638
+ })();
1639
+ return v_error === undefined ? null : v_error;
1640
+ }
1641
+ const RepresentationType$3 = 'RADOutputRepresentation';
1642
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
1643
+ return input;
1644
+ }
1645
+ const select$9 = function RADOutputRepresentationSelect() {
1646
+ const { selections: RADNodeOutputRepresentation__selections, opaque: RADNodeOutputRepresentation__opaque, } = select$a();
1647
+ return {
1648
+ kind: 'Fragment',
1649
+ version: VERSION$5,
1650
+ private: [],
1651
+ selections: [
1652
+ {
1653
+ name: 'aggregationObjects',
1654
+ kind: 'Object',
1655
+ plural: true,
1656
+ selections: RADNodeOutputRepresentation__selections
1657
+ },
1658
+ {
1659
+ name: 'canEditDefinition',
1660
+ kind: 'Scalar'
1661
+ },
1662
+ {
1663
+ name: 'description',
1664
+ kind: 'Scalar',
1665
+ required: false
1666
+ },
1667
+ {
1668
+ name: 'displayName',
1669
+ kind: 'Scalar'
1670
+ },
1671
+ {
1672
+ name: 'message',
1673
+ kind: 'Scalar'
1674
+ },
1675
+ {
1676
+ name: 'status',
1677
+ kind: 'Scalar'
1678
+ },
1679
+ {
1680
+ name: 'statusCode',
1681
+ kind: 'Scalar'
1682
+ }
1683
+ ]
1684
+ };
1685
+ };
1686
+ function equals$5(existing, incoming) {
1687
+ const existing_canEditDefinition = existing.canEditDefinition;
1688
+ const incoming_canEditDefinition = incoming.canEditDefinition;
1689
+ if (!(existing_canEditDefinition === incoming_canEditDefinition)) {
1690
+ return false;
1691
+ }
1692
+ const existing_description = existing.description;
1693
+ const incoming_description = incoming.description;
1694
+ // if at least one of these optionals is defined
1695
+ if (existing_description !== undefined || incoming_description !== undefined) {
1696
+ // if one of these is not defined we know the other is defined and therefore
1697
+ // not equal
1698
+ if (existing_description === undefined || incoming_description === undefined) {
1699
+ return false;
1700
+ }
1701
+ if (!(existing_description === incoming_description)) {
1702
+ return false;
1703
+ }
1704
+ }
1705
+ const existing_displayName = existing.displayName;
1706
+ const incoming_displayName = incoming.displayName;
1707
+ if (!(existing_displayName === incoming_displayName)) {
1708
+ return false;
1709
+ }
1710
+ const existing_message = existing.message;
1711
+ const incoming_message = incoming.message;
1712
+ if (!(existing_message === incoming_message)) {
1713
+ return false;
1714
+ }
1715
+ const existing_status = existing.status;
1716
+ const incoming_status = incoming.status;
1717
+ if (!(existing_status === incoming_status)) {
1718
+ return false;
1719
+ }
1720
+ const existing_statusCode = existing.statusCode;
1721
+ const incoming_statusCode = incoming.statusCode;
1722
+ if (!(existing_statusCode === incoming_statusCode)) {
1723
+ return false;
1724
+ }
1725
+ const existing_aggregationObjects = existing.aggregationObjects;
1726
+ const incoming_aggregationObjects = incoming.aggregationObjects;
1727
+ const equals_aggregationObjects_items = equalsArray(existing_aggregationObjects, incoming_aggregationObjects, (existing_aggregationObjects_item, incoming_aggregationObjects_item) => {
1728
+ if (!(equals$6(existing_aggregationObjects_item, incoming_aggregationObjects_item))) {
1729
+ return false;
1730
+ }
1731
+ });
1732
+ if (equals_aggregationObjects_items === false) {
1733
+ return false;
1734
+ }
1735
+ return true;
1736
+ }
1737
+ const ingest$3 = function RADOutputRepresentationIngest(input, path, luvio, store, timestamp) {
335
1738
  if (process.env.NODE_ENV !== 'production') {
336
- const validateError = validate$6(input);
1739
+ const validateError = validate$5(input);
337
1740
  if (validateError !== null) {
338
1741
  throw validateError;
339
1742
  }
340
1743
  }
341
- const key = keyBuilderFromType$2(luvio, input);
342
- const ttlToUse = TTL$3;
343
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "RecordAggregation", VERSION$6, RepresentationType$3, equals$6);
1744
+ const key = path.fullPath;
1745
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 1000;
1746
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "IndustriesRecordAggregation", VERSION$5, RepresentationType$3, equals$5);
344
1747
  return createLink(key);
345
1748
  };
346
1749
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
347
1750
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
348
- const rootKey = keyBuilderFromType$2(luvio, input);
1751
+ const rootKey = fullPathFactory();
349
1752
  rootKeySet.set(rootKey, {
350
1753
  namespace: keyPrefix,
351
1754
  representationName: RepresentationType$3,
@@ -353,21 +1756,24 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
353
1756
  });
354
1757
  }
355
1758
 
356
- function select$9(luvio, params) {
357
- return select$a();
1759
+ function select$8(luvio, params) {
1760
+ return select$9();
1761
+ }
1762
+ function keyBuilder$4(luvio, params) {
1763
+ return keyPrefix + '::RADOutputRepresentation:(' + 'recordAggregationDefinitionId:' + params.urlParams.recordAggregationDefinitionId + ')';
358
1764
  }
359
1765
  function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
360
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
1766
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
361
1767
  }
362
- function ingestSuccess$3(luvio, resourceParams, response) {
1768
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
363
1769
  const { body } = response;
364
- const key = keyBuilderFromType$2(luvio, body);
1770
+ const key = keyBuilder$4(luvio, resourceParams);
365
1771
  luvio.storeIngest(key, ingest$3, body);
366
1772
  const snapshot = luvio.storeLookup({
367
1773
  recordId: key,
368
- node: select$9(),
1774
+ node: select$8(),
369
1775
  variables: {},
370
- });
1776
+ }, snapshotRefresh);
371
1777
  if (process.env.NODE_ENV !== 'production') {
372
1778
  if (snapshot.state !== 'Fulfilled') {
373
1779
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
@@ -376,43 +1782,39 @@ function ingestSuccess$3(luvio, resourceParams, response) {
376
1782
  deepFreeze(snapshot.data);
377
1783
  return snapshot;
378
1784
  }
1785
+ function ingestError(luvio, params, error, snapshotRefresh) {
1786
+ const key = keyBuilder$4(luvio, params);
1787
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1788
+ luvio.storeIngestError(key, errorSnapshot);
1789
+ return errorSnapshot;
1790
+ }
379
1791
  function createResourceRequest$3(config) {
380
1792
  const headers = {};
381
1793
  return {
382
1794
  baseUri: '/services/data/v61.0',
383
- basePath: '/connect/record-aggregation',
384
- method: 'post',
385
- body: config.body,
386
- urlParams: {},
1795
+ basePath: '/connect/record-aggregation/' + config.urlParams.recordAggregationDefinitionId + '',
1796
+ method: 'get',
1797
+ body: null,
1798
+ urlParams: config.urlParams,
387
1799
  queryParams: {},
388
1800
  headers,
389
1801
  priority: 'normal',
390
1802
  };
391
1803
  }
392
1804
 
393
- const adapterName$3 = 'postRecordAggregationCreation';
394
- const postRecordAggregationCreation_ConfigPropertyMetadata = [
395
- generateParamConfigMetadata('aggregationObjects', true, 2 /* Body */, 4 /* Unsupported */, true),
396
- generateParamConfigMetadata('definitionDescription', false, 2 /* Body */, 0 /* String */),
397
- generateParamConfigMetadata('definitionDisplayName', true, 2 /* Body */, 0 /* String */),
1805
+ const adapterName$3 = 'getRecordAggregationDefinition';
1806
+ const getRecordAggregationDefinition_ConfigPropertyMetadata = [
1807
+ generateParamConfigMetadata('recordAggregationDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
398
1808
  ];
399
- const postRecordAggregationCreation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, postRecordAggregationCreation_ConfigPropertyMetadata);
400
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(postRecordAggregationCreation_ConfigPropertyMetadata);
1809
+ const getRecordAggregationDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getRecordAggregationDefinition_ConfigPropertyMetadata);
1810
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(getRecordAggregationDefinition_ConfigPropertyMetadata);
1811
+ function keyBuilder$3(luvio, config) {
1812
+ const resourceParams = createResourceParams$3(config);
1813
+ return keyBuilder$4(luvio, resourceParams);
1814
+ }
401
1815
  function typeCheckConfig$3(untrustedConfig) {
402
1816
  const config = {};
403
- typeCheckConfig$4(untrustedConfig, config, postRecordAggregationCreation_ConfigPropertyMetadata);
404
- const untrustedConfig_aggregationObjects = untrustedConfig.aggregationObjects;
405
- if (ArrayIsArray$1(untrustedConfig_aggregationObjects)) {
406
- const untrustedConfig_aggregationObjects_array = [];
407
- for (let i = 0, arrayLength = untrustedConfig_aggregationObjects.length; i < arrayLength; i++) {
408
- const untrustedConfig_aggregationObjects_item = untrustedConfig_aggregationObjects[i];
409
- const referenceRecordAggregationNodeInputRepresentationValidationError = validate$7(untrustedConfig_aggregationObjects_item);
410
- if (referenceRecordAggregationNodeInputRepresentationValidationError === null) {
411
- untrustedConfig_aggregationObjects_array.push(untrustedConfig_aggregationObjects_item);
412
- }
413
- }
414
- config.aggregationObjects = untrustedConfig_aggregationObjects_array;
415
- }
1817
+ typeCheckConfig$7(untrustedConfig, config, getRecordAggregationDefinition_ConfigPropertyMetadata);
416
1818
  return config;
417
1819
  }
418
1820
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -428,88 +1830,66 @@ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
428
1830
  }
429
1831
  return config;
430
1832
  }
1833
+ function adapterFragment(luvio, config) {
1834
+ createResourceParams$3(config);
1835
+ return select$8();
1836
+ }
1837
+ function onFetchResponseSuccess(luvio, config, resourceParams, response) {
1838
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
1839
+ config,
1840
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1841
+ });
1842
+ return luvio.storeBroadcast().then(() => snapshot);
1843
+ }
1844
+ function onFetchResponseError(luvio, config, resourceParams, response) {
1845
+ const snapshot = ingestError(luvio, resourceParams, response, {
1846
+ config,
1847
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1848
+ });
1849
+ return luvio.storeBroadcast().then(() => snapshot);
1850
+ }
431
1851
  function buildNetworkSnapshot$3(luvio, config, options) {
432
1852
  const resourceParams = createResourceParams$3(config);
433
1853
  const request = createResourceRequest$3(resourceParams);
434
1854
  return luvio.dispatchResourceRequest(request, options)
435
1855
  .then((response) => {
436
- return luvio.handleSuccessResponse(() => {
437
- const snapshot = ingestSuccess$3(luvio, resourceParams, response);
438
- return luvio.storeBroadcast().then(() => snapshot);
439
- }, () => {
1856
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
440
1857
  const cache = new StoreKeyMap();
441
1858
  getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
442
1859
  return cache;
443
1860
  });
444
1861
  }, (response) => {
445
- deepFreeze(response);
446
- throw response;
1862
+ return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
447
1863
  });
448
1864
  }
449
- const postRecordAggregationCreationAdapterFactory = (luvio) => {
450
- return function postRecordAggregationCreation(untrustedConfig) {
451
- const config = validateAdapterConfig$3(untrustedConfig, postRecordAggregationCreation_ConfigPropertyNames);
452
- // Invalid or incomplete config
453
- if (config === null) {
454
- throw new Error('Invalid config for "postRecordAggregationCreation"');
455
- }
456
- return buildNetworkSnapshot$3(luvio, config);
457
- };
458
- };
459
-
460
- const VERSION$5 = "e0976ceab3ba0b389e4cc8c2ef45e90c";
461
- function validate$5(obj, path = 'RecordAggregationApplicableObjectOutputRepresentation') {
462
- const v_error = (() => {
463
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
464
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
465
- }
466
- const obj_apiName = obj.apiName;
467
- const path_apiName = path + '.apiName';
468
- if (typeof obj_apiName !== 'string') {
469
- return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
470
- }
471
- const obj_label = obj.label;
472
- const path_label = path + '.label';
473
- if (typeof obj_label !== 'string') {
474
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
475
- }
476
- })();
477
- return v_error === undefined ? null : v_error;
1865
+ function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1866
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
478
1867
  }
479
- const select$8 = function RecordAggregationApplicableObjectOutputRepresentationSelect() {
480
- return {
481
- kind: 'Fragment',
482
- version: VERSION$5,
483
- private: [],
484
- selections: [
485
- {
486
- name: 'apiName',
487
- kind: 'Scalar'
488
- },
489
- {
490
- name: 'label',
491
- kind: 'Scalar'
492
- }
493
- ]
1868
+ function buildCachedSnapshotCachePolicy(context, storeLookup) {
1869
+ const { luvio, config } = context;
1870
+ const selector = {
1871
+ recordId: keyBuilder$3(luvio, config),
1872
+ node: adapterFragment(luvio, config),
1873
+ variables: {},
494
1874
  };
495
- };
496
- function equals$5(existing, incoming) {
497
- const existing_apiName = existing.apiName;
498
- const incoming_apiName = incoming.apiName;
499
- if (!(existing_apiName === incoming_apiName)) {
500
- return false;
501
- }
502
- const existing_label = existing.label;
503
- const incoming_label = incoming.label;
504
- if (!(existing_label === incoming_label)) {
505
- return false;
506
- }
507
- return true;
1875
+ const cacheSnapshot = storeLookup(selector, {
1876
+ config,
1877
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1878
+ });
1879
+ return cacheSnapshot;
508
1880
  }
1881
+ const getRecordAggregationDefinitionAdapterFactory = (luvio) => function IndustriesRecordAggregation__getRecordAggregationDefinition(untrustedConfig, requestContext) {
1882
+ const config = validateAdapterConfig$3(untrustedConfig, getRecordAggregationDefinition_ConfigPropertyNames);
1883
+ // Invalid or incomplete config
1884
+ if (config === null) {
1885
+ return null;
1886
+ }
1887
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1888
+ buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
1889
+ };
509
1890
 
510
- const TTL$2 = 1000;
511
- const VERSION$4 = "789bb460c399fd0e584cd09a32279a52";
512
- function validate$4(obj, path = 'RecordAggregationApplicableObjectsOutputRepresentation') {
1891
+ const VERSION$4 = "283ece02338d0d6ce28909ac02e76bc1";
1892
+ function validate$4(obj, path = 'RecordAggregationDefinitionPartialUpdateOutputRepresentation') {
513
1893
  const v_error = (() => {
514
1894
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
515
1895
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -519,21 +1899,6 @@ function validate$4(obj, path = 'RecordAggregationApplicableObjectsOutputReprese
519
1899
  if (typeof obj_message !== 'string') {
520
1900
  return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
521
1901
  }
522
- const obj_objects = obj.objects;
523
- const path_objects = path + '.objects';
524
- if (!ArrayIsArray(obj_objects)) {
525
- return new TypeError('Expected "array" but received "' + typeof obj_objects + '" (at "' + path_objects + '")');
526
- }
527
- for (let i = 0; i < obj_objects.length; i++) {
528
- const obj_objects_item = obj_objects[i];
529
- const path_objects_item = path_objects + '[' + i + ']';
530
- const referencepath_objects_itemValidationError = validate$5(obj_objects_item, path_objects_item);
531
- if (referencepath_objects_itemValidationError !== null) {
532
- let message = 'Object doesn\'t match RecordAggregationApplicableObjectOutputRepresentation (at "' + path_objects_item + '")\n';
533
- message += referencepath_objects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
534
- return new TypeError(message);
535
- }
536
- }
537
1902
  const obj_statusCode = obj.statusCode;
538
1903
  const path_statusCode = path + '.statusCode';
539
1904
  if (typeof obj_statusCode !== 'string') {
@@ -542,12 +1907,20 @@ function validate$4(obj, path = 'RecordAggregationApplicableObjectsOutputReprese
542
1907
  })();
543
1908
  return v_error === undefined ? null : v_error;
544
1909
  }
545
- const RepresentationType$2 = 'RecordAggregationApplicableObjectsOutputRepresentation';
1910
+ const RepresentationType$2 = 'RecordAggregationDefinitionPartialUpdateOutputRepresentation';
1911
+ function keyBuilder$2(luvio, config) {
1912
+ return keyPrefix + '::' + RepresentationType$2 + ':' + config.id;
1913
+ }
1914
+ function keyBuilderFromType$2(luvio, object) {
1915
+ const keyParams = {
1916
+ id: object.statusCode
1917
+ };
1918
+ return keyBuilder$2(luvio, keyParams);
1919
+ }
546
1920
  function normalize$2(input, existing, path, luvio, store, timestamp) {
547
1921
  return input;
548
1922
  }
549
- const select$7 = function RecordAggregationApplicableObjectsOutputRepresentationSelect() {
550
- const { selections: RecordAggregationApplicableObjectOutputRepresentation__selections, opaque: RecordAggregationApplicableObjectOutputRepresentation__opaque, } = select$8();
1923
+ const select$7 = function RecordAggregationDefinitionPartialUpdateOutputRepresentationSelect() {
551
1924
  return {
552
1925
  kind: 'Fragment',
553
1926
  version: VERSION$4,
@@ -557,12 +1930,6 @@ const select$7 = function RecordAggregationApplicableObjectsOutputRepresentation
557
1930
  name: 'message',
558
1931
  kind: 'Scalar'
559
1932
  },
560
- {
561
- name: 'objects',
562
- kind: 'Object',
563
- plural: true,
564
- selections: RecordAggregationApplicableObjectOutputRepresentation__selections
565
- },
566
1933
  {
567
1934
  name: 'statusCode',
568
1935
  kind: 'Scalar'
@@ -581,33 +1948,23 @@ function equals$4(existing, incoming) {
581
1948
  if (!(existing_statusCode === incoming_statusCode)) {
582
1949
  return false;
583
1950
  }
584
- const existing_objects = existing.objects;
585
- const incoming_objects = incoming.objects;
586
- const equals_objects_items = equalsArray(existing_objects, incoming_objects, (existing_objects_item, incoming_objects_item) => {
587
- if (!(equals$5(existing_objects_item, incoming_objects_item))) {
588
- return false;
589
- }
590
- });
591
- if (equals_objects_items === false) {
592
- return false;
593
- }
594
1951
  return true;
595
1952
  }
596
- const ingest$2 = function RecordAggregationApplicableObjectsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1953
+ const ingest$2 = function RecordAggregationDefinitionPartialUpdateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
597
1954
  if (process.env.NODE_ENV !== 'production') {
598
1955
  const validateError = validate$4(input);
599
1956
  if (validateError !== null) {
600
1957
  throw validateError;
601
1958
  }
602
1959
  }
603
- const key = path.fullPath;
604
- const ttlToUse = TTL$2;
605
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "RecordAggregation", VERSION$4, RepresentationType$2, equals$4);
1960
+ const key = keyBuilderFromType$2(luvio, input);
1961
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 1000;
1962
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "IndustriesRecordAggregation", VERSION$4, RepresentationType$2, equals$4);
606
1963
  return createLink(key);
607
1964
  };
608
1965
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
609
1966
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
610
- const rootKey = fullPathFactory();
1967
+ const rootKey = keyBuilderFromType$2(luvio, input);
611
1968
  rootKeySet.set(rootKey, {
612
1969
  namespace: keyPrefix,
613
1970
  representationName: RepresentationType$2,
@@ -618,21 +1975,18 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
618
1975
  function select$6(luvio, params) {
619
1976
  return select$7();
620
1977
  }
621
- function keyBuilder$3(luvio, params) {
622
- return keyPrefix + '::RecordAggregationApplicableObjectsOutputRepresentation:(' + ')';
623
- }
624
1978
  function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
625
- getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$3());
1979
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
626
1980
  }
627
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
1981
+ function ingestSuccess$2(luvio, resourceParams, response) {
628
1982
  const { body } = response;
629
- const key = keyBuilder$3();
1983
+ const key = keyBuilderFromType$2(luvio, body);
630
1984
  luvio.storeIngest(key, ingest$2, body);
631
1985
  const snapshot = luvio.storeLookup({
632
1986
  recordId: key,
633
1987
  node: select$6(),
634
1988
  variables: {},
635
- }, snapshotRefresh);
1989
+ });
636
1990
  if (process.env.NODE_ENV !== 'production') {
637
1991
  if (snapshot.state !== 'Fulfilled') {
638
1992
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
@@ -641,42 +1995,30 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
641
1995
  deepFreeze(snapshot.data);
642
1996
  return snapshot;
643
1997
  }
644
- function ingestError(luvio, params, error, snapshotRefresh) {
645
- const key = keyBuilder$3();
646
- const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
647
- const storeMetadataParams = {
648
- ttl: TTL$2,
649
- namespace: keyPrefix,
650
- version: VERSION$4,
651
- representationName: RepresentationType$2
652
- };
653
- luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
654
- return errorSnapshot;
655
- }
656
1998
  function createResourceRequest$2(config) {
657
1999
  const headers = {};
658
2000
  return {
659
2001
  baseUri: '/services/data/v61.0',
660
- basePath: '/connect/record-aggregation/utilities/applicable-objects',
661
- method: 'get',
662
- body: null,
663
- urlParams: {},
2002
+ basePath: '/connect/record-aggregation/' + config.urlParams.recordAggregationDefinitionId + '',
2003
+ method: 'patch',
2004
+ body: config.body,
2005
+ urlParams: config.urlParams,
664
2006
  queryParams: {},
665
2007
  headers,
666
2008
  priority: 'normal',
667
2009
  };
668
2010
  }
669
2011
 
670
- const adapterName$2 = 'getRecordAggregationApplicableObjects';
671
- const getRecordAggregationApplicableObjects_ConfigPropertyMetadata = [];
672
- const getRecordAggregationApplicableObjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getRecordAggregationApplicableObjects_ConfigPropertyMetadata);
673
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(getRecordAggregationApplicableObjects_ConfigPropertyMetadata);
674
- function keyBuilder$2(luvio, config) {
675
- createResourceParams$2(config);
676
- return keyBuilder$3();
677
- }
2012
+ const adapterName$2 = 'patchRecordAggregationDefinition';
2013
+ const patchRecordAggregationDefinition_ConfigPropertyMetadata = [
2014
+ generateParamConfigMetadata('recordAggregationDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
2015
+ generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
2016
+ ];
2017
+ const patchRecordAggregationDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, patchRecordAggregationDefinition_ConfigPropertyMetadata);
2018
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(patchRecordAggregationDefinition_ConfigPropertyMetadata);
678
2019
  function typeCheckConfig$2(untrustedConfig) {
679
2020
  const config = {};
2021
+ typeCheckConfig$7(untrustedConfig, config, patchRecordAggregationDefinition_ConfigPropertyMetadata);
680
2022
  return config;
681
2023
  }
682
2024
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -686,71 +2028,42 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
686
2028
  if (process.env.NODE_ENV !== 'production') {
687
2029
  validateConfig(untrustedConfig, configPropertyNames);
688
2030
  }
689
- const config = typeCheckConfig$2();
2031
+ const config = typeCheckConfig$2(untrustedConfig);
690
2032
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
691
2033
  return null;
692
2034
  }
693
2035
  return config;
694
2036
  }
695
- function adapterFragment(luvio, config) {
696
- createResourceParams$2(config);
697
- return select$6();
698
- }
699
- function onFetchResponseSuccess(luvio, config, resourceParams, response) {
700
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
701
- config,
702
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
703
- });
704
- return luvio.storeBroadcast().then(() => snapshot);
705
- }
706
- function onFetchResponseError(luvio, config, resourceParams, response) {
707
- const snapshot = ingestError(luvio, resourceParams, response, {
708
- config,
709
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
710
- });
711
- return luvio.storeBroadcast().then(() => snapshot);
712
- }
713
2037
  function buildNetworkSnapshot$2(luvio, config, options) {
714
2038
  const resourceParams = createResourceParams$2(config);
715
- const request = createResourceRequest$2();
2039
+ const request = createResourceRequest$2(resourceParams);
716
2040
  return luvio.dispatchResourceRequest(request, options)
717
2041
  .then((response) => {
718
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
2042
+ return luvio.handleSuccessResponse(() => {
2043
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response);
2044
+ return luvio.storeBroadcast().then(() => snapshot);
2045
+ }, () => {
719
2046
  const cache = new StoreKeyMap();
720
2047
  getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
721
2048
  return cache;
722
2049
  });
723
2050
  }, (response) => {
724
- return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
2051
+ deepFreeze(response);
2052
+ throw response;
725
2053
  });
726
2054
  }
727
- function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
728
- return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
729
- }
730
- function buildCachedSnapshotCachePolicy(context, storeLookup) {
731
- const { luvio, config } = context;
732
- const selector = {
733
- recordId: keyBuilder$2(luvio, config),
734
- node: adapterFragment(luvio, config),
735
- variables: {},
2055
+ const patchRecordAggregationDefinitionAdapterFactory = (luvio) => {
2056
+ return function patchRecordAggregationDefinition(untrustedConfig) {
2057
+ const config = validateAdapterConfig$2(untrustedConfig, patchRecordAggregationDefinition_ConfigPropertyNames);
2058
+ // Invalid or incomplete config
2059
+ if (config === null) {
2060
+ throw new Error('Invalid config for "patchRecordAggregationDefinition"');
2061
+ }
2062
+ return buildNetworkSnapshot$2(luvio, config);
736
2063
  };
737
- const cacheSnapshot = storeLookup(selector, {
738
- config,
739
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
740
- });
741
- return cacheSnapshot;
742
- }
743
- const getRecordAggregationApplicableObjectsAdapterFactory = (luvio) => function RecordAggregation__getRecordAggregationApplicableObjects(untrustedConfig, requestContext) {
744
- const config = validateAdapterConfig$2(untrustedConfig, getRecordAggregationApplicableObjects_ConfigPropertyNames);
745
- // Invalid or incomplete config
746
- if (config === null) {
747
- return null;
748
- }
749
- return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
750
- buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
751
2064
  };
752
2065
 
753
- const TTL$1 = 0;
2066
+ const TTL = 0;
754
2067
  const VERSION$3 = "f0ea8c85a5a54a087ec6802a512e69cd";
755
2068
  function validate$3(obj, path = 'RecordAggregationUpdationOutputRepresentation') {
756
2069
  const v_error = (() => {
@@ -821,8 +2134,8 @@ const ingest$1 = function RecordAggregationUpdationOutputRepresentationIngest(in
821
2134
  }
822
2135
  }
823
2136
  const key = keyBuilderFromType$1(luvio, input);
824
- const ttlToUse = TTL$1;
825
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "RecordAggregation", VERSION$3, RepresentationType$1, equals$3);
2137
+ const ttlToUse = TTL;
2138
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "IndustriesRecordAggregation", VERSION$3, RepresentationType$1, equals$3);
826
2139
  return createLink(key);
827
2140
  };
828
2141
  function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
@@ -880,16 +2193,16 @@ const putRecordAggregationDefinition_ConfigPropertyMetadata = [
880
2193
  generateParamConfigMetadata('definitionDisplayName', true, 2 /* Body */, 0 /* String */),
881
2194
  ];
882
2195
  const putRecordAggregationDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, putRecordAggregationDefinition_ConfigPropertyMetadata);
883
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(putRecordAggregationDefinition_ConfigPropertyMetadata);
2196
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$7(putRecordAggregationDefinition_ConfigPropertyMetadata);
884
2197
  function typeCheckConfig$1(untrustedConfig) {
885
2198
  const config = {};
886
- typeCheckConfig$4(untrustedConfig, config, putRecordAggregationDefinition_ConfigPropertyMetadata);
2199
+ typeCheckConfig$7(untrustedConfig, config, putRecordAggregationDefinition_ConfigPropertyMetadata);
887
2200
  const untrustedConfig_aggregationObjects = untrustedConfig.aggregationObjects;
888
2201
  if (ArrayIsArray$1(untrustedConfig_aggregationObjects)) {
889
2202
  const untrustedConfig_aggregationObjects_array = [];
890
2203
  for (let i = 0, arrayLength = untrustedConfig_aggregationObjects.length; i < arrayLength; i++) {
891
2204
  const untrustedConfig_aggregationObjects_item = untrustedConfig_aggregationObjects[i];
892
- const referenceRecordAggregationNodeInputRepresentationValidationError = validate$7(untrustedConfig_aggregationObjects_item);
2205
+ const referenceRecordAggregationNodeInputRepresentationValidationError = validate$g(untrustedConfig_aggregationObjects_item);
893
2206
  if (referenceRecordAggregationNodeInputRepresentationValidationError === null) {
894
2207
  untrustedConfig_aggregationObjects_array.push(untrustedConfig_aggregationObjects_item);
895
2208
  }
@@ -940,7 +2253,7 @@ const putRecordAggregationDefinitionAdapterFactory = (luvio) => {
940
2253
  };
941
2254
  };
942
2255
 
943
- const VERSION$2 = "e49c16a279ffeb72bc05c88d9a9cf0ea";
2256
+ const VERSION$2 = "f23f946a0e550dc86cae4bcf623b1386";
944
2257
  function validate$2(obj, path = 'RecordRollupResultColumnOutputRepresentation') {
945
2258
  const v_error = (() => {
946
2259
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -951,35 +2264,21 @@ function validate$2(obj, path = 'RecordRollupResultColumnOutputRepresentation')
951
2264
  if (typeof obj_displayFormatType !== 'string') {
952
2265
  return new TypeError('Expected "string" but received "' + typeof obj_displayFormatType + '" (at "' + path_displayFormatType + '")');
953
2266
  }
954
- const obj_displayFormatTypeAttributes = obj.displayFormatTypeAttributes;
955
- const path_displayFormatTypeAttributes = path + '.displayFormatTypeAttributes';
956
- if (typeof obj_displayFormatTypeAttributes !== 'object' || ArrayIsArray(obj_displayFormatTypeAttributes) || obj_displayFormatTypeAttributes === null) {
957
- return new TypeError('Expected "object" but received "' + typeof obj_displayFormatTypeAttributes + '" (at "' + path_displayFormatTypeAttributes + '")');
958
- }
959
- const obj_displayFormatTypeAttributes_keys = ObjectKeys(obj_displayFormatTypeAttributes);
960
- for (let i = 0; i < obj_displayFormatTypeAttributes_keys.length; i++) {
961
- const key = obj_displayFormatTypeAttributes_keys[i];
962
- const obj_displayFormatTypeAttributes_prop = obj_displayFormatTypeAttributes[key];
963
- const path_displayFormatTypeAttributes_prop = path_displayFormatTypeAttributes + '["' + key + '"]';
964
- if (obj_displayFormatTypeAttributes_prop === undefined) {
965
- return new TypeError('Expected "defined" but received "' + typeof obj_displayFormatTypeAttributes_prop + '" (at "' + path_displayFormatTypeAttributes_prop + '")');
966
- }
967
- }
968
2267
  const obj_fieldApiName = obj.fieldApiName;
969
2268
  const path_fieldApiName = path + '.fieldApiName';
970
2269
  if (typeof obj_fieldApiName !== 'string') {
971
2270
  return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
972
2271
  }
973
- const obj_fieldDataType = obj.fieldDataType;
974
- const path_fieldDataType = path + '.fieldDataType';
975
- if (typeof obj_fieldDataType !== 'string') {
976
- return new TypeError('Expected "string" but received "' + typeof obj_fieldDataType + '" (at "' + path_fieldDataType + '")');
977
- }
978
2272
  const obj_fieldLabel = obj.fieldLabel;
979
2273
  const path_fieldLabel = path + '.fieldLabel';
980
2274
  if (typeof obj_fieldLabel !== 'string') {
981
2275
  return new TypeError('Expected "string" but received "' + typeof obj_fieldLabel + '" (at "' + path_fieldLabel + '")');
982
2276
  }
2277
+ const obj_isRedirectionEnabled = obj.isRedirectionEnabled;
2278
+ const path_isRedirectionEnabled = path + '.isRedirectionEnabled';
2279
+ if (typeof obj_isRedirectionEnabled !== 'boolean') {
2280
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isRedirectionEnabled + '" (at "' + path_isRedirectionEnabled + '")');
2281
+ }
983
2282
  const obj_sequence = obj.sequence;
984
2283
  const path_sequence = path + '.sequence';
985
2284
  if (typeof obj_sequence !== 'number' || (typeof obj_sequence === 'number' && Math.floor(obj_sequence) !== obj_sequence)) {
@@ -998,21 +2297,16 @@ const select$3 = function RecordRollupResultColumnOutputRepresentationSelect() {
998
2297
  name: 'displayFormatType',
999
2298
  kind: 'Scalar'
1000
2299
  },
1001
- {
1002
- name: 'displayFormatTypeAttributes',
1003
- kind: 'Object',
1004
- // any
1005
- },
1006
2300
  {
1007
2301
  name: 'fieldApiName',
1008
2302
  kind: 'Scalar'
1009
2303
  },
1010
2304
  {
1011
- name: 'fieldDataType',
2305
+ name: 'fieldLabel',
1012
2306
  kind: 'Scalar'
1013
2307
  },
1014
2308
  {
1015
- name: 'fieldLabel',
2309
+ name: 'isRedirectionEnabled',
1016
2310
  kind: 'Scalar'
1017
2311
  },
1018
2312
  {
@@ -1023,6 +2317,11 @@ const select$3 = function RecordRollupResultColumnOutputRepresentationSelect() {
1023
2317
  };
1024
2318
  };
1025
2319
  function equals$2(existing, incoming) {
2320
+ const existing_isRedirectionEnabled = existing.isRedirectionEnabled;
2321
+ const incoming_isRedirectionEnabled = incoming.isRedirectionEnabled;
2322
+ if (!(existing_isRedirectionEnabled === incoming_isRedirectionEnabled)) {
2323
+ return false;
2324
+ }
1026
2325
  const existing_sequence = existing.sequence;
1027
2326
  const incoming_sequence = incoming.sequence;
1028
2327
  if (!(existing_sequence === incoming_sequence)) {
@@ -1038,26 +2337,11 @@ function equals$2(existing, incoming) {
1038
2337
  if (!(existing_fieldApiName === incoming_fieldApiName)) {
1039
2338
  return false;
1040
2339
  }
1041
- const existing_fieldDataType = existing.fieldDataType;
1042
- const incoming_fieldDataType = incoming.fieldDataType;
1043
- if (!(existing_fieldDataType === incoming_fieldDataType)) {
1044
- return false;
1045
- }
1046
2340
  const existing_fieldLabel = existing.fieldLabel;
1047
2341
  const incoming_fieldLabel = incoming.fieldLabel;
1048
2342
  if (!(existing_fieldLabel === incoming_fieldLabel)) {
1049
2343
  return false;
1050
2344
  }
1051
- const existing_displayFormatTypeAttributes = existing.displayFormatTypeAttributes;
1052
- const incoming_displayFormatTypeAttributes = incoming.displayFormatTypeAttributes;
1053
- const equals_displayFormatTypeAttributes_props = equalsObject(existing_displayFormatTypeAttributes, incoming_displayFormatTypeAttributes, (existing_displayFormatTypeAttributes_prop, incoming_displayFormatTypeAttributes_prop) => {
1054
- if (JSONStringify(incoming_displayFormatTypeAttributes_prop) !== JSONStringify(existing_displayFormatTypeAttributes_prop)) {
1055
- return false;
1056
- }
1057
- });
1058
- if (equals_displayFormatTypeAttributes_props === false) {
1059
- return false;
1060
- }
1061
2345
  return true;
1062
2346
  }
1063
2347
 
@@ -1112,7 +2396,6 @@ function equals$1(existing, incoming) {
1112
2396
  return true;
1113
2397
  }
1114
2398
 
1115
- const TTL = 1000;
1116
2399
  const VERSION = "ee9d1f2387330046032268a28eb63475";
1117
2400
  function validate(obj, path = 'RecordRollupResultOutputRepresentation') {
1118
2401
  const v_error = (() => {
@@ -1275,8 +2558,8 @@ const ingest = function RecordRollupResultOutputRepresentationIngest(input, path
1275
2558
  }
1276
2559
  }
1277
2560
  const key = keyBuilderFromType(luvio, input);
1278
- const ttlToUse = TTL;
1279
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "RecordAggregation", VERSION, RepresentationType, equals);
2561
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 1000;
2562
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "IndustriesRecordAggregation", VERSION, RepresentationType, equals);
1280
2563
  return createLink(key);
1281
2564
  };
1282
2565
  function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
@@ -1334,10 +2617,10 @@ const postGenerateRecordRollupResult_ConfigPropertyMetadata = [
1334
2617
  generateParamConfigMetadata('sortBy', false, 2 /* Body */, 0 /* String */),
1335
2618
  ];
1336
2619
  const postGenerateRecordRollupResult_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postGenerateRecordRollupResult_ConfigPropertyMetadata);
1337
- const createResourceParams = /*#__PURE__*/ createResourceParams$4(postGenerateRecordRollupResult_ConfigPropertyMetadata);
2620
+ const createResourceParams = /*#__PURE__*/ createResourceParams$7(postGenerateRecordRollupResult_ConfigPropertyMetadata);
1338
2621
  function typeCheckConfig(untrustedConfig) {
1339
2622
  const config = {};
1340
- typeCheckConfig$4(untrustedConfig, config, postGenerateRecordRollupResult_ConfigPropertyMetadata);
2623
+ typeCheckConfig$7(untrustedConfig, config, postGenerateRecordRollupResult_ConfigPropertyMetadata);
1341
2624
  return config;
1342
2625
  }
1343
2626
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -1382,4 +2665,4 @@ const postGenerateRecordRollupResultAdapterFactory = (luvio) => {
1382
2665
  };
1383
2666
  };
1384
2667
 
1385
- export { getRecordAggregationApplicableObjectsAdapterFactory, postGenerateRecordRollupResultAdapterFactory, postRecordAggregationCreationAdapterFactory, putRecordAggregationDefinitionAdapterFactory };
2668
+ export { getRecordAggregationApplicableObjectsAdapterFactory, getRecordAggregationDefinitionAdapterFactory, getRecordAggregationEntityApplicableFieldsAdapterFactory, patchRecordAggregationDefinitionAdapterFactory, postGenerateRecordRollupResultAdapterFactory, postRecordAggregationCreationAdapterFactory, putRecordAggregationDefinitionAdapterFactory };