@salesforce/lds-adapters-analytics-app-framework 1.309.0-dev12 → 1.309.0-dev14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8, typeCheckConfig as typeCheckConfig$a, StoreKeyMap, createResourceParams as createResourceParams$a } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$9, typeCheckConfig as typeCheckConfig$b, StoreKeyMap, createResourceParams as createResourceParams$b } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -112,8 +112,8 @@ function createLink(ref) {
112
112
  };
113
113
  }
114
114
 
115
- const VERSION$h = "8747a45321deaf63f65cf74537b07eb6";
116
- function validate$e(obj, path = 'UserRepresentation') {
115
+ const VERSION$i = "8747a45321deaf63f65cf74537b07eb6";
116
+ function validate$f(obj, path = 'UserRepresentation') {
117
117
  const v_error = (() => {
118
118
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
119
119
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -157,10 +157,10 @@ function validate$e(obj, path = 'UserRepresentation') {
157
157
  })();
158
158
  return v_error === undefined ? null : v_error;
159
159
  }
160
- const select$q = function UserRepresentationSelect() {
160
+ const select$s = function UserRepresentationSelect() {
161
161
  return {
162
162
  kind: 'Fragment',
163
- version: VERSION$h,
163
+ version: VERSION$i,
164
164
  private: [],
165
165
  selections: [
166
166
  {
@@ -178,7 +178,7 @@ const select$q = function UserRepresentationSelect() {
178
178
  ]
179
179
  };
180
180
  };
181
- function equals$e(existing, incoming) {
181
+ function equals$f(existing, incoming) {
182
182
  const existing_id = existing.id;
183
183
  const incoming_id = incoming.id;
184
184
  if (!(existing_id === incoming_id)) {
@@ -197,8 +197,8 @@ function equals$e(existing, incoming) {
197
197
  return true;
198
198
  }
199
199
 
200
- const VERSION$g = "74662b770f974cec987197380f2580ea";
201
- function validate$d(obj, path = 'ScheduledTimezoneRepresentation') {
200
+ const VERSION$h = "74662b770f974cec987197380f2580ea";
201
+ function validate$e(obj, path = 'ScheduledTimezoneRepresentation') {
202
202
  const v_error = (() => {
203
203
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
204
204
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -217,10 +217,10 @@ function validate$d(obj, path = 'ScheduledTimezoneRepresentation') {
217
217
  })();
218
218
  return v_error === undefined ? null : v_error;
219
219
  }
220
- const select$p = function ScheduledTimezoneRepresentationSelect() {
220
+ const select$r = function ScheduledTimezoneRepresentationSelect() {
221
221
  return {
222
222
  kind: 'Fragment',
223
- version: VERSION$g,
223
+ version: VERSION$h,
224
224
  private: [],
225
225
  selections: [
226
226
  {
@@ -238,7 +238,7 @@ const select$p = function ScheduledTimezoneRepresentationSelect() {
238
238
  ]
239
239
  };
240
240
  };
241
- function equals$d(existing, incoming) {
241
+ function equals$e(existing, incoming) {
242
242
  const existing_name = existing.name;
243
243
  const incoming_name = incoming.name;
244
244
  if (!(existing_name === incoming_name)) {
@@ -257,8 +257,8 @@ function equals$d(existing, incoming) {
257
257
  return true;
258
258
  }
259
259
 
260
- const VERSION$f = "d96bf6818be64d5924beaaad8e684221";
261
- function validate$c(obj, path = 'ScheduledTimeRepresentation') {
260
+ const VERSION$g = "d96bf6818be64d5924beaaad8e684221";
261
+ function validate$d(obj, path = 'ScheduledTimeRepresentation') {
262
262
  const v_error = (() => {
263
263
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
264
264
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -275,7 +275,7 @@ function validate$c(obj, path = 'ScheduledTimeRepresentation') {
275
275
  }
276
276
  const obj_timezone = obj.timezone;
277
277
  const path_timezone = path + '.timezone';
278
- const referencepath_timezoneValidationError = validate$d(obj_timezone, path_timezone);
278
+ const referencepath_timezoneValidationError = validate$e(obj_timezone, path_timezone);
279
279
  if (referencepath_timezoneValidationError !== null) {
280
280
  let message = 'Object doesn\'t match ScheduledTimezoneRepresentation (at "' + path_timezone + '")\n';
281
281
  message += referencepath_timezoneValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -284,11 +284,11 @@ function validate$c(obj, path = 'ScheduledTimeRepresentation') {
284
284
  })();
285
285
  return v_error === undefined ? null : v_error;
286
286
  }
287
- const select$o = function ScheduledTimeRepresentationSelect() {
288
- const { selections: ScheduledTimezoneRepresentation__selections, opaque: ScheduledTimezoneRepresentation__opaque, } = select$p();
287
+ const select$q = function ScheduledTimeRepresentationSelect() {
288
+ const { selections: ScheduledTimezoneRepresentation__selections, opaque: ScheduledTimezoneRepresentation__opaque, } = select$r();
289
289
  return {
290
290
  kind: 'Fragment',
291
- version: VERSION$f,
291
+ version: VERSION$g,
292
292
  private: [],
293
293
  selections: [
294
294
  {
@@ -307,7 +307,7 @@ const select$o = function ScheduledTimeRepresentationSelect() {
307
307
  ]
308
308
  };
309
309
  };
310
- function equals$c(existing, incoming) {
310
+ function equals$d(existing, incoming) {
311
311
  const existing_hour = existing.hour;
312
312
  const incoming_hour = incoming.hour;
313
313
  if (!(existing_hour === incoming_hour)) {
@@ -320,18 +320,18 @@ function equals$c(existing, incoming) {
320
320
  }
321
321
  const existing_timezone = existing.timezone;
322
322
  const incoming_timezone = incoming.timezone;
323
- if (!(equals$d(existing_timezone, incoming_timezone))) {
323
+ if (!(equals$e(existing_timezone, incoming_timezone))) {
324
324
  return false;
325
325
  }
326
326
  return true;
327
327
  }
328
328
 
329
- const VERSION$e = "91838b86aa135ce828af6242b11ae888";
330
- const select$n = function HourlyScheduledItemRepresentationSelect() {
331
- const { selections: ScheduledItemRepresentationSelections } = select$k();
329
+ const VERSION$f = "91838b86aa135ce828af6242b11ae888";
330
+ const select$p = function HourlyScheduledItemRepresentationSelect() {
331
+ const { selections: ScheduledItemRepresentationSelections } = select$m();
332
332
  return {
333
333
  kind: 'Fragment',
334
- version: VERSION$e,
334
+ version: VERSION$f,
335
335
  private: [],
336
336
  selections: [
337
337
  ...ScheduledItemRepresentationSelections,
@@ -348,12 +348,12 @@ const select$n = function HourlyScheduledItemRepresentationSelect() {
348
348
  };
349
349
  };
350
350
 
351
- const VERSION$d = "46260a34f0b2c2d7adc7f8c150a8d8fb";
352
- const select$m = function WeeklyScheduledItemRepresentationSelect() {
353
- const { selections: ScheduledItemRepresentationSelections } = select$k();
351
+ const VERSION$e = "46260a34f0b2c2d7adc7f8c150a8d8fb";
352
+ const select$o = function WeeklyScheduledItemRepresentationSelect() {
353
+ const { selections: ScheduledItemRepresentationSelections } = select$m();
354
354
  return {
355
355
  kind: 'Fragment',
356
- version: VERSION$d,
356
+ version: VERSION$e,
357
357
  private: [],
358
358
  selections: [
359
359
  ...ScheduledItemRepresentationSelections,
@@ -366,12 +366,12 @@ const select$m = function WeeklyScheduledItemRepresentationSelect() {
366
366
  };
367
367
  };
368
368
 
369
- const VERSION$c = "dcda6d015a01d9acde5fac241448cfe4";
370
- const select$l = function DailyScheduledItemRepresentationSelect() {
371
- const { selections: ScheduledItemRepresentationSelections } = select$k();
369
+ const VERSION$d = "dcda6d015a01d9acde5fac241448cfe4";
370
+ const select$n = function DailyScheduledItemRepresentationSelect() {
371
+ const { selections: ScheduledItemRepresentationSelections } = select$m();
372
372
  return {
373
373
  kind: 'Fragment',
374
- version: VERSION$c,
374
+ version: VERSION$d,
375
375
  private: [],
376
376
  selections: [
377
377
  ...ScheduledItemRepresentationSelections,
@@ -385,8 +385,8 @@ var DiscriminatorValues;
385
385
  DiscriminatorValues["Weekly"] = "Weekly";
386
386
  DiscriminatorValues["Daily"] = "Daily";
387
387
  })(DiscriminatorValues || (DiscriminatorValues = {}));
388
- const VERSION$b = "193484b4261ca5840b61caaab3dea067";
389
- function validate$b(obj, path = 'ScheduledItemRepresentation') {
388
+ const VERSION$c = "193484b4261ca5840b61caaab3dea067";
389
+ function validate$c(obj, path = 'ScheduledItemRepresentation') {
390
390
  const v_error = (() => {
391
391
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
392
392
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -403,7 +403,7 @@ function validate$b(obj, path = 'ScheduledItemRepresentation') {
403
403
  }
404
404
  const obj_time = obj.time;
405
405
  const path_time = path + '.time';
406
- const referencepath_timeValidationError = validate$c(obj_time, path_time);
406
+ const referencepath_timeValidationError = validate$d(obj_time, path_time);
407
407
  if (referencepath_timeValidationError !== null) {
408
408
  let message = 'Object doesn\'t match ScheduledTimeRepresentation (at "' + path_time + '")\n';
409
409
  message += referencepath_timeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -413,9 +413,9 @@ function validate$b(obj, path = 'ScheduledItemRepresentation') {
413
413
  return v_error === undefined ? null : v_error;
414
414
  }
415
415
  const selectChildren = function ScheduledItemRepresentationSelectChildren() {
416
- const hourlyScheduledItemRepresentationSelections = select$n();
417
- const weeklyScheduledItemRepresentationSelections = select$m();
418
- const dailyScheduledItemRepresentationSelections = select$l();
416
+ const hourlyScheduledItemRepresentationSelections = select$p();
417
+ const weeklyScheduledItemRepresentationSelections = select$o();
418
+ const dailyScheduledItemRepresentationSelections = select$n();
419
419
  return {
420
420
  kind: 'Fragment',
421
421
  union: true,
@@ -427,11 +427,11 @@ const selectChildren = function ScheduledItemRepresentationSelectChildren() {
427
427
  }
428
428
  };
429
429
  };
430
- const select$k = function ScheduledItemRepresentationSelect() {
431
- const { selections: ScheduledTimeRepresentation__selections, opaque: ScheduledTimeRepresentation__opaque, } = select$o();
430
+ const select$m = function ScheduledItemRepresentationSelect() {
431
+ const { selections: ScheduledTimeRepresentation__selections, opaque: ScheduledTimeRepresentation__opaque, } = select$q();
432
432
  return {
433
433
  kind: 'Fragment',
434
- version: VERSION$b,
434
+ version: VERSION$c,
435
435
  private: [],
436
436
  selections: [
437
437
  {
@@ -450,7 +450,7 @@ const select$k = function ScheduledItemRepresentationSelect() {
450
450
  ]
451
451
  };
452
452
  };
453
- function equals$b(existing, incoming) {
453
+ function equals$c(existing, incoming) {
454
454
  const existing_frequency = existing.frequency;
455
455
  const incoming_frequency = incoming.frequency;
456
456
  if (!(existing_frequency === incoming_frequency)) {
@@ -463,14 +463,14 @@ function equals$b(existing, incoming) {
463
463
  }
464
464
  const existing_time = existing.time;
465
465
  const incoming_time = incoming.time;
466
- if (!(equals$c(existing_time, incoming_time))) {
466
+ if (!(equals$d(existing_time, incoming_time))) {
467
467
  return false;
468
468
  }
469
469
  return true;
470
470
  }
471
471
 
472
- const VERSION$a = "06b5da5162febff2692d819c9b718be5";
473
- function validate$a(obj, path = 'AppScheduleRepresentation') {
472
+ const VERSION$b = "06b5da5162febff2692d819c9b718be5";
473
+ function validate$b(obj, path = 'AppScheduleRepresentation') {
474
474
  const v_error = (() => {
475
475
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
476
476
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -479,7 +479,7 @@ function validate$a(obj, path = 'AppScheduleRepresentation') {
479
479
  const path_dataRefreshSchedule = path + '.dataRefreshSchedule';
480
480
  let obj_dataRefreshSchedule_union0 = null;
481
481
  const obj_dataRefreshSchedule_union0_error = (() => {
482
- const referencepath_dataRefreshScheduleValidationError = validate$b(obj_dataRefreshSchedule, path_dataRefreshSchedule);
482
+ const referencepath_dataRefreshScheduleValidationError = validate$c(obj_dataRefreshSchedule, path_dataRefreshSchedule);
483
483
  if (referencepath_dataRefreshScheduleValidationError !== null) {
484
484
  let message = 'Object doesn\'t match ScheduledItemRepresentation (at "' + path_dataRefreshSchedule + '")\n';
485
485
  message += referencepath_dataRefreshScheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -533,11 +533,11 @@ function validate$a(obj, path = 'AppScheduleRepresentation') {
533
533
  })();
534
534
  return v_error === undefined ? null : v_error;
535
535
  }
536
- const select$j = function AppScheduleRepresentationSelect() {
536
+ const select$l = function AppScheduleRepresentationSelect() {
537
537
  const ScheduledItemRepresentation__unionSelections = selectChildren();
538
538
  return {
539
539
  kind: 'Fragment',
540
- version: VERSION$a,
540
+ version: VERSION$b,
541
541
  private: [],
542
542
  selections: [
543
543
  {
@@ -555,13 +555,13 @@ const select$j = function AppScheduleRepresentationSelect() {
555
555
  ]
556
556
  };
557
557
  };
558
- function equals$a(existing, incoming) {
558
+ function equals$b(existing, incoming) {
559
559
  const existing_dataRefreshSchedule = existing.dataRefreshSchedule;
560
560
  const incoming_dataRefreshSchedule = incoming.dataRefreshSchedule;
561
561
  if (!(existing_dataRefreshSchedule === incoming_dataRefreshSchedule
562
562
  || (existing_dataRefreshSchedule != null &&
563
563
  incoming_dataRefreshSchedule != null &&
564
- equals$b(existing_dataRefreshSchedule, incoming_dataRefreshSchedule)))) {
564
+ equals$c(existing_dataRefreshSchedule, incoming_dataRefreshSchedule)))) {
565
565
  return false;
566
566
  }
567
567
  const existing_url = existing.url;
@@ -572,9 +572,9 @@ function equals$a(existing, incoming) {
572
572
  return true;
573
573
  }
574
574
 
575
- const TTL$9 = 5000;
576
- const VERSION$9 = "be6294bb853a9581fb3b06a2d8caa5d5";
577
- function validate$9(obj, path = 'AppRepresentation') {
575
+ const TTL$a = 5000;
576
+ const VERSION$a = "be6294bb853a9581fb3b06a2d8caa5d5";
577
+ function validate$a(obj, path = 'AppRepresentation') {
578
578
  const v_error = (() => {
579
579
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
580
580
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -596,7 +596,7 @@ function validate$9(obj, path = 'AppRepresentation') {
596
596
  }
597
597
  const obj_createdBy = obj.createdBy;
598
598
  const path_createdBy = path + '.createdBy';
599
- const referencepath_createdByValidationError = validate$e(obj_createdBy, path_createdBy);
599
+ const referencepath_createdByValidationError = validate$f(obj_createdBy, path_createdBy);
600
600
  if (referencepath_createdByValidationError !== null) {
601
601
  let message = 'Object doesn\'t match UserRepresentation (at "' + path_createdBy + '")\n';
602
602
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -650,7 +650,7 @@ function validate$9(obj, path = 'AppRepresentation') {
650
650
  }
651
651
  const obj_lastModifiedBy = obj.lastModifiedBy;
652
652
  const path_lastModifiedBy = path + '.lastModifiedBy';
653
- const referencepath_lastModifiedByValidationError = validate$e(obj_lastModifiedBy, path_lastModifiedBy);
653
+ const referencepath_lastModifiedByValidationError = validate$f(obj_lastModifiedBy, path_lastModifiedBy);
654
654
  if (referencepath_lastModifiedByValidationError !== null) {
655
655
  let message = 'Object doesn\'t match UserRepresentation (at "' + path_lastModifiedBy + '")\n';
656
656
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -675,7 +675,7 @@ function validate$9(obj, path = 'AppRepresentation') {
675
675
  const path_schedule = path + '.schedule';
676
676
  let obj_schedule_union0 = null;
677
677
  const obj_schedule_union0_error = (() => {
678
- const referencepath_scheduleValidationError = validate$a(obj_schedule, path_schedule);
678
+ const referencepath_scheduleValidationError = validate$b(obj_schedule, path_schedule);
679
679
  if (referencepath_scheduleValidationError !== null) {
680
680
  let message = 'Object doesn\'t match AppScheduleRepresentation (at "' + path_schedule + '")\n';
681
681
  message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -737,25 +737,25 @@ function validate$9(obj, path = 'AppRepresentation') {
737
737
  })();
738
738
  return v_error === undefined ? null : v_error;
739
739
  }
740
- const RepresentationType$9 = 'AppRepresentation';
741
- function keyBuilder$o(luvio, config) {
742
- return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
740
+ const RepresentationType$a = 'AppRepresentation';
741
+ function keyBuilder$q(luvio, config) {
742
+ return keyPrefix + '::' + RepresentationType$a + ':' + config.id;
743
743
  }
744
744
  function keyBuilderFromType$7(luvio, object) {
745
745
  const keyParams = {
746
746
  id: object.id
747
747
  };
748
- return keyBuilder$o(luvio, keyParams);
748
+ return keyBuilder$q(luvio, keyParams);
749
749
  }
750
- function normalize$9(input, existing, path, luvio, store, timestamp) {
750
+ function normalize$a(input, existing, path, luvio, store, timestamp) {
751
751
  return input;
752
752
  }
753
- const select$i = function AppRepresentationSelect() {
754
- const { selections: UserRepresentation__selections, opaque: UserRepresentation__opaque, } = select$q();
755
- const { selections: AppScheduleRepresentation__selections, opaque: AppScheduleRepresentation__opaque, } = select$j();
753
+ const select$k = function AppRepresentationSelect() {
754
+ const { selections: UserRepresentation__selections, opaque: UserRepresentation__opaque, } = select$s();
755
+ const { selections: AppScheduleRepresentation__selections, opaque: AppScheduleRepresentation__opaque, } = select$l();
756
756
  return {
757
757
  kind: 'Fragment',
758
- version: VERSION$9,
758
+ version: VERSION$a,
759
759
  private: [],
760
760
  selections: [
761
761
  {
@@ -842,7 +842,7 @@ const select$i = function AppRepresentationSelect() {
842
842
  ]
843
843
  };
844
844
  };
845
- function equals$9(existing, incoming) {
845
+ function equals$a(existing, incoming) {
846
846
  const existing_activitiesUrl = existing.activitiesUrl;
847
847
  const incoming_activitiesUrl = incoming.activitiesUrl;
848
848
  if (!(existing_activitiesUrl === incoming_activitiesUrl)) {
@@ -915,7 +915,7 @@ function equals$9(existing, incoming) {
915
915
  }
916
916
  const existing_createdBy = existing.createdBy;
917
917
  const incoming_createdBy = incoming.createdBy;
918
- if (!(equals$e(existing_createdBy, incoming_createdBy))) {
918
+ if (!(equals$f(existing_createdBy, incoming_createdBy))) {
919
919
  return false;
920
920
  }
921
921
  const existing_description = existing.description;
@@ -925,7 +925,7 @@ function equals$9(existing, incoming) {
925
925
  }
926
926
  const existing_lastModifiedBy = existing.lastModifiedBy;
927
927
  const incoming_lastModifiedBy = incoming.lastModifiedBy;
928
- if (!(equals$e(existing_lastModifiedBy, incoming_lastModifiedBy))) {
928
+ if (!(equals$f(existing_lastModifiedBy, incoming_lastModifiedBy))) {
929
929
  return false;
930
930
  }
931
931
  const existing_schedule = existing.schedule;
@@ -933,7 +933,7 @@ function equals$9(existing, incoming) {
933
933
  if (!(existing_schedule === incoming_schedule
934
934
  || (existing_schedule != null &&
935
935
  incoming_schedule != null &&
936
- equals$a(existing_schedule, incoming_schedule)))) {
936
+ equals$b(existing_schedule, incoming_schedule)))) {
937
937
  return false;
938
938
  }
939
939
  const existing_templateValues = existing.templateValues;
@@ -948,31 +948,31 @@ function equals$9(existing, incoming) {
948
948
  }
949
949
  return true;
950
950
  }
951
- const ingest$9 = function AppRepresentationIngest(input, path, luvio, store, timestamp) {
951
+ const ingest$a = function AppRepresentationIngest(input, path, luvio, store, timestamp) {
952
952
  if (process.env.NODE_ENV !== 'production') {
953
- const validateError = validate$9(input);
953
+ const validateError = validate$a(input);
954
954
  if (validateError !== null) {
955
955
  throw validateError;
956
956
  }
957
957
  }
958
958
  const key = keyBuilderFromType$7(luvio, input);
959
- const ttlToUse = TTL$9;
960
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "AppFramework", VERSION$9, RepresentationType$9, equals$9);
959
+ const ttlToUse = TTL$a;
960
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "AppFramework", VERSION$a, RepresentationType$a, equals$a);
961
961
  return createLink(key);
962
962
  };
963
- function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
963
+ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
964
964
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
965
965
  const rootKey = keyBuilderFromType$7(luvio, input);
966
966
  rootKeySet.set(rootKey, {
967
967
  namespace: keyPrefix,
968
- representationName: RepresentationType$9,
968
+ representationName: RepresentationType$a,
969
969
  mergeable: false
970
970
  });
971
971
  }
972
972
 
973
- const TTL$8 = 5000;
974
- const VERSION$8 = "2dd7266897d8b84ea0207582ca533d29";
975
- function validate$8(obj, path = 'AppCollectionRepresentation') {
973
+ const TTL$9 = 5000;
974
+ const VERSION$9 = "2dd7266897d8b84ea0207582ca533d29";
975
+ function validate$9(obj, path = 'AppCollectionRepresentation') {
976
976
  const v_error = (() => {
977
977
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
978
978
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -992,14 +992,14 @@ function validate$8(obj, path = 'AppCollectionRepresentation') {
992
992
  })();
993
993
  return v_error === undefined ? null : v_error;
994
994
  }
995
- const RepresentationType$8 = 'AppCollectionRepresentation';
996
- function normalize$8(input, existing, path, luvio, store, timestamp) {
995
+ const RepresentationType$9 = 'AppCollectionRepresentation';
996
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
997
997
  const input_apps = input.apps;
998
998
  const input_apps_id = path.fullPath + '__apps';
999
999
  for (let i = 0; i < input_apps.length; i++) {
1000
1000
  const input_apps_item = input_apps[i];
1001
1001
  let input_apps_item_id = input_apps_id + '__' + i;
1002
- input_apps[i] = ingest$9(input_apps_item, {
1002
+ input_apps[i] = ingest$a(input_apps_item, {
1003
1003
  fullPath: input_apps_item_id,
1004
1004
  propertyName: i,
1005
1005
  parent: {
@@ -1012,22 +1012,22 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
1012
1012
  }
1013
1013
  return input;
1014
1014
  }
1015
- const select$h = function AppCollectionRepresentationSelect() {
1015
+ const select$j = function AppCollectionRepresentationSelect() {
1016
1016
  return {
1017
1017
  kind: 'Fragment',
1018
- version: VERSION$8,
1018
+ version: VERSION$9,
1019
1019
  private: [],
1020
1020
  selections: [
1021
1021
  {
1022
1022
  name: 'apps',
1023
1023
  kind: 'Link',
1024
1024
  plural: true,
1025
- fragment: select$i()
1025
+ fragment: select$k()
1026
1026
  }
1027
1027
  ]
1028
1028
  };
1029
1029
  };
1030
- function equals$8(existing, incoming) {
1030
+ function equals$9(existing, incoming) {
1031
1031
  const existing_apps = existing.apps;
1032
1032
  const incoming_apps = incoming.apps;
1033
1033
  const equals_apps_items = equalsArray(existing_apps, incoming_apps, (existing_apps_item, incoming_apps_item) => {
@@ -1040,48 +1040,48 @@ function equals$8(existing, incoming) {
1040
1040
  }
1041
1041
  return true;
1042
1042
  }
1043
- const ingest$8 = function AppCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1043
+ const ingest$9 = function AppCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1044
1044
  if (process.env.NODE_ENV !== 'production') {
1045
- const validateError = validate$8(input);
1045
+ const validateError = validate$9(input);
1046
1046
  if (validateError !== null) {
1047
1047
  throw validateError;
1048
1048
  }
1049
1049
  }
1050
1050
  const key = path.fullPath;
1051
- const ttlToUse = TTL$8;
1052
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "AppFramework", VERSION$8, RepresentationType$8, equals$8);
1051
+ const ttlToUse = TTL$9;
1052
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "AppFramework", VERSION$9, RepresentationType$9, equals$9);
1053
1053
  return createLink(key);
1054
1054
  };
1055
- function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
1055
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
1056
1056
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1057
1057
  const rootKey = fullPathFactory();
1058
1058
  rootKeySet.set(rootKey, {
1059
1059
  namespace: keyPrefix,
1060
- representationName: RepresentationType$8,
1060
+ representationName: RepresentationType$9,
1061
1061
  mergeable: false
1062
1062
  });
1063
1063
  const input_apps_length = input.apps.length;
1064
1064
  for (let i = 0; i < input_apps_length; i++) {
1065
- getTypeCacheKeys$9(rootKeySet, luvio, input.apps[i]);
1065
+ getTypeCacheKeys$a(rootKeySet, luvio, input.apps[i]);
1066
1066
  }
1067
1067
  }
1068
1068
 
1069
- function select$g(luvio, params) {
1070
- return select$h();
1069
+ function select$i(luvio, params) {
1070
+ return select$j();
1071
1071
  }
1072
- function keyBuilder$n(luvio, params) {
1072
+ function keyBuilder$p(luvio, params) {
1073
1073
  return keyPrefix + '::AppCollectionRepresentation:(' + 'templateSourceId:' + params.queryParams.templateSourceId + ',' + 'type:' + params.queryParams.type + ')';
1074
1074
  }
1075
- function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
1076
- getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$n(luvio, resourceParams));
1075
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
1076
+ getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$p(luvio, resourceParams));
1077
1077
  }
1078
- function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
1078
+ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
1079
1079
  const { body } = response;
1080
- const key = keyBuilder$n(luvio, resourceParams);
1081
- luvio.storeIngest(key, ingest$8, body);
1080
+ const key = keyBuilder$p(luvio, resourceParams);
1081
+ luvio.storeIngest(key, ingest$9, body);
1082
1082
  const snapshot = luvio.storeLookup({
1083
1083
  recordId: key,
1084
- node: select$g(),
1084
+ node: select$i(),
1085
1085
  variables: {},
1086
1086
  }, snapshotRefresh);
1087
1087
  if (process.env.NODE_ENV !== 'production') {
@@ -1092,19 +1092,19 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
1092
1092
  deepFreeze(snapshot.data);
1093
1093
  return snapshot;
1094
1094
  }
1095
- function ingestError$7(luvio, params, error, snapshotRefresh) {
1096
- const key = keyBuilder$n(luvio, params);
1095
+ function ingestError$8(luvio, params, error, snapshotRefresh) {
1096
+ const key = keyBuilder$p(luvio, params);
1097
1097
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1098
1098
  const storeMetadataParams = {
1099
- ttl: TTL$8,
1099
+ ttl: TTL$9,
1100
1100
  namespace: keyPrefix,
1101
- version: VERSION$8,
1102
- representationName: RepresentationType$8
1101
+ version: VERSION$9,
1102
+ representationName: RepresentationType$9
1103
1103
  };
1104
1104
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1105
1105
  return errorSnapshot;
1106
1106
  }
1107
- function createResourceRequest$9(config) {
1107
+ function createResourceRequest$a(config) {
1108
1108
  const headers = {};
1109
1109
  return {
1110
1110
  baseUri: '/services/data/v62.0',
@@ -1118,96 +1118,96 @@ function createResourceRequest$9(config) {
1118
1118
  };
1119
1119
  }
1120
1120
 
1121
- const adapterName$9 = 'getApps';
1121
+ const adapterName$a = 'getApps';
1122
1122
  const getApps_ConfigPropertyMetadata = [
1123
1123
  generateParamConfigMetadata('templateSourceId', false, 1 /* QueryParameter */, 0 /* String */),
1124
1124
  generateParamConfigMetadata('type', false, 1 /* QueryParameter */, 0 /* String */),
1125
1125
  ];
1126
- const getApps_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getApps_ConfigPropertyMetadata);
1127
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$a(getApps_ConfigPropertyMetadata);
1128
- function keyBuilder$m(luvio, config) {
1129
- const resourceParams = createResourceParams$9(config);
1130
- return keyBuilder$n(luvio, resourceParams);
1126
+ const getApps_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getApps_ConfigPropertyMetadata);
1127
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$b(getApps_ConfigPropertyMetadata);
1128
+ function keyBuilder$o(luvio, config) {
1129
+ const resourceParams = createResourceParams$a(config);
1130
+ return keyBuilder$p(luvio, resourceParams);
1131
1131
  }
1132
- function typeCheckConfig$9(untrustedConfig) {
1132
+ function typeCheckConfig$a(untrustedConfig) {
1133
1133
  const config = {};
1134
- typeCheckConfig$a(untrustedConfig, config, getApps_ConfigPropertyMetadata);
1134
+ typeCheckConfig$b(untrustedConfig, config, getApps_ConfigPropertyMetadata);
1135
1135
  return config;
1136
1136
  }
1137
- function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
1137
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
1138
1138
  if (!untrustedIsObject(untrustedConfig)) {
1139
1139
  return null;
1140
1140
  }
1141
1141
  if (process.env.NODE_ENV !== 'production') {
1142
1142
  validateConfig(untrustedConfig, configPropertyNames);
1143
1143
  }
1144
- const config = typeCheckConfig$9(untrustedConfig);
1144
+ const config = typeCheckConfig$a(untrustedConfig);
1145
1145
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1146
1146
  return null;
1147
1147
  }
1148
1148
  return config;
1149
1149
  }
1150
- function adapterFragment$7(luvio, config) {
1151
- createResourceParams$9(config);
1152
- return select$g();
1150
+ function adapterFragment$8(luvio, config) {
1151
+ createResourceParams$a(config);
1152
+ return select$i();
1153
1153
  }
1154
- function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
1155
- const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
1154
+ function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
1155
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
1156
1156
  config,
1157
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
1157
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
1158
1158
  });
1159
1159
  return luvio.storeBroadcast().then(() => snapshot);
1160
1160
  }
1161
- function onFetchResponseError$7(luvio, config, resourceParams, response) {
1162
- const snapshot = ingestError$7(luvio, resourceParams, response, {
1161
+ function onFetchResponseError$8(luvio, config, resourceParams, response) {
1162
+ const snapshot = ingestError$8(luvio, resourceParams, response, {
1163
1163
  config,
1164
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
1164
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
1165
1165
  });
1166
1166
  return luvio.storeBroadcast().then(() => snapshot);
1167
1167
  }
1168
- function buildNetworkSnapshot$9(luvio, config, options) {
1169
- const resourceParams = createResourceParams$9(config);
1170
- const request = createResourceRequest$9(resourceParams);
1168
+ function buildNetworkSnapshot$a(luvio, config, options) {
1169
+ const resourceParams = createResourceParams$a(config);
1170
+ const request = createResourceRequest$a(resourceParams);
1171
1171
  return luvio.dispatchResourceRequest(request, options)
1172
1172
  .then((response) => {
1173
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
1173
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
1174
1174
  const cache = new StoreKeyMap();
1175
- getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
1175
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
1176
1176
  return cache;
1177
1177
  });
1178
1178
  }, (response) => {
1179
- return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
1179
+ return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
1180
1180
  });
1181
1181
  }
1182
- function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
1183
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
1182
+ function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
1183
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
1184
1184
  }
1185
- function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
1185
+ function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
1186
1186
  const { luvio, config } = context;
1187
1187
  const selector = {
1188
- recordId: keyBuilder$m(luvio, config),
1189
- node: adapterFragment$7(luvio, config),
1188
+ recordId: keyBuilder$o(luvio, config),
1189
+ node: adapterFragment$8(luvio, config),
1190
1190
  variables: {},
1191
1191
  };
1192
1192
  const cacheSnapshot = storeLookup(selector, {
1193
1193
  config,
1194
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
1194
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
1195
1195
  });
1196
1196
  return cacheSnapshot;
1197
1197
  }
1198
1198
  const getAppsAdapterFactory = (luvio) => function AppFramework__getApps(untrustedConfig, requestContext) {
1199
- const config = validateAdapterConfig$9(untrustedConfig, getApps_ConfigPropertyNames);
1199
+ const config = validateAdapterConfig$a(untrustedConfig, getApps_ConfigPropertyNames);
1200
1200
  // Invalid or incomplete config
1201
1201
  if (config === null) {
1202
1202
  return null;
1203
1203
  }
1204
1204
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1205
- buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
1205
+ buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
1206
1206
  };
1207
1207
 
1208
- const TTL$7 = 5000;
1209
- const VERSION$7 = "1e01d8ae397bfbae02ba4cfae1dac4fc";
1210
- function validate$7(obj, path = 'AppResultRepresentation') {
1208
+ const TTL$8 = 5000;
1209
+ const VERSION$8 = "1e01d8ae397bfbae02ba4cfae1dac4fc";
1210
+ function validate$8(obj, path = 'AppResultRepresentation') {
1211
1211
  const v_error = (() => {
1212
1212
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1213
1213
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1265,20 +1265,20 @@ function validate$7(obj, path = 'AppResultRepresentation') {
1265
1265
  })();
1266
1266
  return v_error === undefined ? null : v_error;
1267
1267
  }
1268
- const RepresentationType$7 = 'AppResultRepresentation';
1269
- function keyBuilder$l(luvio, config) {
1270
- return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
1268
+ const RepresentationType$8 = 'AppResultRepresentation';
1269
+ function keyBuilder$n(luvio, config) {
1270
+ return keyPrefix + '::' + RepresentationType$8 + ':' + config.id;
1271
1271
  }
1272
1272
  function keyBuilderFromType$6(luvio, object) {
1273
1273
  const keyParams = {
1274
1274
  id: object.app.id
1275
1275
  };
1276
- return keyBuilder$l(luvio, keyParams);
1276
+ return keyBuilder$n(luvio, keyParams);
1277
1277
  }
1278
- function normalize$7(input, existing, path, luvio, store, timestamp) {
1278
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
1279
1279
  const input_app = input.app;
1280
1280
  const input_app_id = path.fullPath + '__app';
1281
- input.app = ingest$9(input_app, {
1281
+ input.app = ingest$a(input_app, {
1282
1282
  fullPath: input_app_id,
1283
1283
  propertyName: 'app',
1284
1284
  parent: {
@@ -1290,16 +1290,16 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
1290
1290
  }, luvio, store, timestamp);
1291
1291
  return input;
1292
1292
  }
1293
- const select$f = function AppResultRepresentationSelect() {
1293
+ const select$h = function AppResultRepresentationSelect() {
1294
1294
  return {
1295
1295
  kind: 'Fragment',
1296
- version: VERSION$7,
1296
+ version: VERSION$8,
1297
1297
  private: [],
1298
1298
  selections: [
1299
1299
  {
1300
1300
  name: 'app',
1301
1301
  kind: 'Link',
1302
- fragment: select$i()
1302
+ fragment: select$k()
1303
1303
  },
1304
1304
  {
1305
1305
  name: 'failureMessage',
@@ -1317,7 +1317,7 @@ const select$f = function AppResultRepresentationSelect() {
1317
1317
  ]
1318
1318
  };
1319
1319
  };
1320
- function equals$7(existing, incoming) {
1320
+ function equals$8(existing, incoming) {
1321
1321
  const existing_runtimeRequestId = existing.runtimeRequestId;
1322
1322
  const incoming_runtimeRequestId = incoming.runtimeRequestId;
1323
1323
  if (!(existing_runtimeRequestId === incoming_runtimeRequestId)) {
@@ -1345,42 +1345,42 @@ function equals$7(existing, incoming) {
1345
1345
  }
1346
1346
  return true;
1347
1347
  }
1348
- const ingest$7 = function AppResultRepresentationIngest(input, path, luvio, store, timestamp) {
1348
+ const ingest$8 = function AppResultRepresentationIngest(input, path, luvio, store, timestamp) {
1349
1349
  if (process.env.NODE_ENV !== 'production') {
1350
- const validateError = validate$7(input);
1350
+ const validateError = validate$8(input);
1351
1351
  if (validateError !== null) {
1352
1352
  throw validateError;
1353
1353
  }
1354
1354
  }
1355
1355
  const key = keyBuilderFromType$6(luvio, input);
1356
- const ttlToUse = TTL$7;
1357
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "AppFramework", VERSION$7, RepresentationType$7, equals$7);
1356
+ const ttlToUse = TTL$8;
1357
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "AppFramework", VERSION$8, RepresentationType$8, equals$8);
1358
1358
  return createLink(key);
1359
1359
  };
1360
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1360
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
1361
1361
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1362
1362
  const rootKey = keyBuilderFromType$6(luvio, input);
1363
1363
  rootKeySet.set(rootKey, {
1364
1364
  namespace: keyPrefix,
1365
- representationName: RepresentationType$7,
1365
+ representationName: RepresentationType$8,
1366
1366
  mergeable: false
1367
1367
  });
1368
- getTypeCacheKeys$9(rootKeySet, luvio, input.app);
1368
+ getTypeCacheKeys$a(rootKeySet, luvio, input.app);
1369
1369
  }
1370
1370
 
1371
- function select$e(luvio, params) {
1372
- return select$f();
1371
+ function select$g(luvio, params) {
1372
+ return select$h();
1373
1373
  }
1374
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
1375
- getTypeCacheKeys$7(storeKeyMap, luvio, response);
1374
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
1375
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
1376
1376
  }
1377
- function ingestSuccess$7(luvio, resourceParams, response) {
1377
+ function ingestSuccess$8(luvio, resourceParams, response) {
1378
1378
  const { body } = response;
1379
1379
  const key = keyBuilderFromType$6(luvio, body);
1380
- luvio.storeIngest(key, ingest$7, body);
1380
+ luvio.storeIngest(key, ingest$8, body);
1381
1381
  const snapshot = luvio.storeLookup({
1382
1382
  recordId: key,
1383
- node: select$e(),
1383
+ node: select$g(),
1384
1384
  variables: {},
1385
1385
  });
1386
1386
  if (process.env.NODE_ENV !== 'production') {
@@ -1391,7 +1391,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
1391
1391
  deepFreeze(snapshot.data);
1392
1392
  return snapshot;
1393
1393
  }
1394
- function createResourceRequest$8(config) {
1394
+ function createResourceRequest$9(config) {
1395
1395
  const headers = {};
1396
1396
  return {
1397
1397
  baseUri: '/services/data/v62.0',
@@ -1405,7 +1405,7 @@ function createResourceRequest$8(config) {
1405
1405
  };
1406
1406
  }
1407
1407
 
1408
- const adapterName$8 = 'createApp';
1408
+ const adapterName$9 = 'createApp';
1409
1409
  const createApp_ConfigPropertyMetadata = [
1410
1410
  generateParamConfigMetadata('assetIcon', false, 2 /* Body */, 0 /* String */),
1411
1411
  generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
@@ -1418,11 +1418,11 @@ const createApp_ConfigPropertyMetadata = [
1418
1418
  generateParamConfigMetadata('templateValues', false, 2 /* Body */, 4 /* Unsupported */),
1419
1419
  generateParamConfigMetadata('templateVersion', false, 2 /* Body */, 0 /* String */),
1420
1420
  ];
1421
- const createApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createApp_ConfigPropertyMetadata);
1422
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$a(createApp_ConfigPropertyMetadata);
1423
- function typeCheckConfig$8(untrustedConfig) {
1421
+ const createApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createApp_ConfigPropertyMetadata);
1422
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$b(createApp_ConfigPropertyMetadata);
1423
+ function typeCheckConfig$9(untrustedConfig) {
1424
1424
  const config = {};
1425
- typeCheckConfig$a(untrustedConfig, config, createApp_ConfigPropertyMetadata);
1425
+ typeCheckConfig$b(untrustedConfig, config, createApp_ConfigPropertyMetadata);
1426
1426
  const untrustedConfig_templateValues = untrustedConfig.templateValues;
1427
1427
  if (untrustedIsObject(untrustedConfig_templateValues)) {
1428
1428
  const untrustedConfig_templateValues_object = {};
@@ -1440,30 +1440,30 @@ function typeCheckConfig$8(untrustedConfig) {
1440
1440
  }
1441
1441
  return config;
1442
1442
  }
1443
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1443
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
1444
1444
  if (!untrustedIsObject(untrustedConfig)) {
1445
1445
  return null;
1446
1446
  }
1447
1447
  if (process.env.NODE_ENV !== 'production') {
1448
1448
  validateConfig(untrustedConfig, configPropertyNames);
1449
1449
  }
1450
- const config = typeCheckConfig$8(untrustedConfig);
1450
+ const config = typeCheckConfig$9(untrustedConfig);
1451
1451
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1452
1452
  return null;
1453
1453
  }
1454
1454
  return config;
1455
1455
  }
1456
- function buildNetworkSnapshot$8(luvio, config, options) {
1457
- const resourceParams = createResourceParams$8(config);
1458
- const request = createResourceRequest$8(resourceParams);
1456
+ function buildNetworkSnapshot$9(luvio, config, options) {
1457
+ const resourceParams = createResourceParams$9(config);
1458
+ const request = createResourceRequest$9(resourceParams);
1459
1459
  return luvio.dispatchResourceRequest(request, options)
1460
1460
  .then((response) => {
1461
1461
  return luvio.handleSuccessResponse(() => {
1462
- const snapshot = ingestSuccess$7(luvio, resourceParams, response);
1462
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response);
1463
1463
  return luvio.storeBroadcast().then(() => snapshot);
1464
1464
  }, () => {
1465
1465
  const cache = new StoreKeyMap();
1466
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1466
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
1467
1467
  return cache;
1468
1468
  });
1469
1469
  }, (response) => {
@@ -1473,33 +1473,33 @@ function buildNetworkSnapshot$8(luvio, config, options) {
1473
1473
  }
1474
1474
  const createAppAdapterFactory = (luvio) => {
1475
1475
  return function createApp(untrustedConfig) {
1476
- const config = validateAdapterConfig$8(untrustedConfig, createApp_ConfigPropertyNames);
1476
+ const config = validateAdapterConfig$9(untrustedConfig, createApp_ConfigPropertyNames);
1477
1477
  // Invalid or incomplete config
1478
1478
  if (config === null) {
1479
1479
  throw new Error('Invalid config for "createApp"');
1480
1480
  }
1481
- return buildNetworkSnapshot$8(luvio, config);
1481
+ return buildNetworkSnapshot$9(luvio, config);
1482
1482
  };
1483
1483
  };
1484
1484
 
1485
- function keyBuilder$k(luvio, params) {
1486
- return keyBuilder$o(luvio, {
1485
+ function keyBuilder$m(luvio, params) {
1486
+ return keyBuilder$q(luvio, {
1487
1487
  id: params.urlParams.appIdOrApiName
1488
1488
  });
1489
1489
  }
1490
- function getResponseCacheKeys$7(cacheKeyMap, luvio, resourceParams) {
1491
- const key = keyBuilder$k(luvio, resourceParams);
1490
+ function getResponseCacheKeys$8(cacheKeyMap, luvio, resourceParams) {
1491
+ const key = keyBuilder$m(luvio, resourceParams);
1492
1492
  cacheKeyMap.set(key, {
1493
1493
  namespace: keyPrefix,
1494
- representationName: RepresentationType$9,
1494
+ representationName: RepresentationType$a,
1495
1495
  mergeable: false
1496
1496
  });
1497
1497
  }
1498
1498
  function evictSuccess(luvio, resourceParams) {
1499
- const key = keyBuilder$k(luvio, resourceParams);
1499
+ const key = keyBuilder$m(luvio, resourceParams);
1500
1500
  luvio.storeEvict(key);
1501
1501
  }
1502
- function createResourceRequest$7(config) {
1502
+ function createResourceRequest$8(config) {
1503
1503
  const headers = {};
1504
1504
  return {
1505
1505
  baseUri: '/services/data/v62.0',
@@ -1513,33 +1513,33 @@ function createResourceRequest$7(config) {
1513
1513
  };
1514
1514
  }
1515
1515
 
1516
- const adapterName$7 = 'deleteApp';
1516
+ const adapterName$8 = 'deleteApp';
1517
1517
  const deleteApp_ConfigPropertyMetadata = [
1518
1518
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1519
1519
  ];
1520
- const deleteApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, deleteApp_ConfigPropertyMetadata);
1521
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$a(deleteApp_ConfigPropertyMetadata);
1522
- function typeCheckConfig$7(untrustedConfig) {
1520
+ const deleteApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, deleteApp_ConfigPropertyMetadata);
1521
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$b(deleteApp_ConfigPropertyMetadata);
1522
+ function typeCheckConfig$8(untrustedConfig) {
1523
1523
  const config = {};
1524
- typeCheckConfig$a(untrustedConfig, config, deleteApp_ConfigPropertyMetadata);
1524
+ typeCheckConfig$b(untrustedConfig, config, deleteApp_ConfigPropertyMetadata);
1525
1525
  return config;
1526
1526
  }
1527
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1527
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1528
1528
  if (!untrustedIsObject(untrustedConfig)) {
1529
1529
  return null;
1530
1530
  }
1531
1531
  if (process.env.NODE_ENV !== 'production') {
1532
1532
  validateConfig(untrustedConfig, configPropertyNames);
1533
1533
  }
1534
- const config = typeCheckConfig$7(untrustedConfig);
1534
+ const config = typeCheckConfig$8(untrustedConfig);
1535
1535
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1536
1536
  return null;
1537
1537
  }
1538
1538
  return config;
1539
1539
  }
1540
- function buildNetworkSnapshot$7(luvio, config, options) {
1541
- const resourceParams = createResourceParams$7(config);
1542
- const request = createResourceRequest$7(resourceParams);
1540
+ function buildNetworkSnapshot$8(luvio, config, options) {
1541
+ const resourceParams = createResourceParams$8(config);
1542
+ const request = createResourceRequest$8(resourceParams);
1543
1543
  return luvio.dispatchResourceRequest(request, options)
1544
1544
  .then(() => {
1545
1545
  return luvio.handleSuccessResponse(() => {
@@ -1547,7 +1547,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
1547
1547
  return luvio.storeBroadcast();
1548
1548
  }, () => {
1549
1549
  const cache = new StoreKeyMap();
1550
- getResponseCacheKeys$7(cache, luvio, resourceParams);
1550
+ getResponseCacheKeys$8(cache, luvio, resourceParams);
1551
1551
  return cache;
1552
1552
  });
1553
1553
  }, (response) => {
@@ -1557,33 +1557,33 @@ function buildNetworkSnapshot$7(luvio, config, options) {
1557
1557
  }
1558
1558
  const deleteAppAdapterFactory = (luvio) => {
1559
1559
  return function AppFrameworkdeleteApp(untrustedConfig) {
1560
- const config = validateAdapterConfig$7(untrustedConfig, deleteApp_ConfigPropertyNames);
1560
+ const config = validateAdapterConfig$8(untrustedConfig, deleteApp_ConfigPropertyNames);
1561
1561
  // Invalid or incomplete config
1562
1562
  if (config === null) {
1563
- throw new Error(`Invalid config for "${adapterName$7}"`);
1563
+ throw new Error(`Invalid config for "${adapterName$8}"`);
1564
1564
  }
1565
- return buildNetworkSnapshot$7(luvio, config);
1565
+ return buildNetworkSnapshot$8(luvio, config);
1566
1566
  };
1567
1567
  };
1568
1568
 
1569
- function select$d(luvio, params) {
1570
- return select$i();
1569
+ function select$f(luvio, params) {
1570
+ return select$k();
1571
1571
  }
1572
- function keyBuilder$j(luvio, params) {
1573
- return keyBuilder$o(luvio, {
1572
+ function keyBuilder$l(luvio, params) {
1573
+ return keyBuilder$q(luvio, {
1574
1574
  id: params.urlParams.appIdOrApiName
1575
1575
  });
1576
1576
  }
1577
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1578
- getTypeCacheKeys$9(storeKeyMap, luvio, response);
1577
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1578
+ getTypeCacheKeys$a(storeKeyMap, luvio, response);
1579
1579
  }
1580
- function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1580
+ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
1581
1581
  const { body } = response;
1582
- const key = keyBuilder$j(luvio, resourceParams);
1583
- luvio.storeIngest(key, ingest$9, body);
1582
+ const key = keyBuilder$l(luvio, resourceParams);
1583
+ luvio.storeIngest(key, ingest$a, body);
1584
1584
  const snapshot = luvio.storeLookup({
1585
1585
  recordId: key,
1586
- node: select$d(),
1586
+ node: select$f(),
1587
1587
  variables: {},
1588
1588
  }, snapshotRefresh);
1589
1589
  if (process.env.NODE_ENV !== 'production') {
@@ -1594,19 +1594,19 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1594
1594
  deepFreeze(snapshot.data);
1595
1595
  return snapshot;
1596
1596
  }
1597
- function ingestError$6(luvio, params, error, snapshotRefresh) {
1598
- const key = keyBuilder$j(luvio, params);
1597
+ function ingestError$7(luvio, params, error, snapshotRefresh) {
1598
+ const key = keyBuilder$l(luvio, params);
1599
1599
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1600
1600
  const storeMetadataParams = {
1601
- ttl: TTL$9,
1601
+ ttl: TTL$a,
1602
1602
  namespace: keyPrefix,
1603
- version: VERSION$9,
1604
- representationName: RepresentationType$9
1603
+ version: VERSION$a,
1604
+ representationName: RepresentationType$a
1605
1605
  };
1606
1606
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1607
1607
  return errorSnapshot;
1608
1608
  }
1609
- function createResourceRequest$6(config) {
1609
+ function createResourceRequest$7(config) {
1610
1610
  const headers = {};
1611
1611
  return {
1612
1612
  baseUri: '/services/data/v62.0',
@@ -1620,95 +1620,95 @@ function createResourceRequest$6(config) {
1620
1620
  };
1621
1621
  }
1622
1622
 
1623
- const adapterName$6 = 'getApp';
1623
+ const adapterName$7 = 'getApp';
1624
1624
  const getApp_ConfigPropertyMetadata = [
1625
1625
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1626
1626
  ];
1627
- const getApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getApp_ConfigPropertyMetadata);
1628
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$a(getApp_ConfigPropertyMetadata);
1629
- function keyBuilder$i(luvio, config) {
1630
- const resourceParams = createResourceParams$6(config);
1631
- return keyBuilder$j(luvio, resourceParams);
1627
+ const getApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getApp_ConfigPropertyMetadata);
1628
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$b(getApp_ConfigPropertyMetadata);
1629
+ function keyBuilder$k(luvio, config) {
1630
+ const resourceParams = createResourceParams$7(config);
1631
+ return keyBuilder$l(luvio, resourceParams);
1632
1632
  }
1633
- function typeCheckConfig$6(untrustedConfig) {
1633
+ function typeCheckConfig$7(untrustedConfig) {
1634
1634
  const config = {};
1635
- typeCheckConfig$a(untrustedConfig, config, getApp_ConfigPropertyMetadata);
1635
+ typeCheckConfig$b(untrustedConfig, config, getApp_ConfigPropertyMetadata);
1636
1636
  return config;
1637
1637
  }
1638
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1638
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1639
1639
  if (!untrustedIsObject(untrustedConfig)) {
1640
1640
  return null;
1641
1641
  }
1642
1642
  if (process.env.NODE_ENV !== 'production') {
1643
1643
  validateConfig(untrustedConfig, configPropertyNames);
1644
1644
  }
1645
- const config = typeCheckConfig$6(untrustedConfig);
1645
+ const config = typeCheckConfig$7(untrustedConfig);
1646
1646
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1647
1647
  return null;
1648
1648
  }
1649
1649
  return config;
1650
1650
  }
1651
- function adapterFragment$6(luvio, config) {
1652
- createResourceParams$6(config);
1653
- return select$d();
1651
+ function adapterFragment$7(luvio, config) {
1652
+ createResourceParams$7(config);
1653
+ return select$f();
1654
1654
  }
1655
- function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
1656
- const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
1655
+ function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
1656
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
1657
1657
  config,
1658
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1658
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1659
1659
  });
1660
1660
  return luvio.storeBroadcast().then(() => snapshot);
1661
1661
  }
1662
- function onFetchResponseError$6(luvio, config, resourceParams, response) {
1663
- const snapshot = ingestError$6(luvio, resourceParams, response, {
1662
+ function onFetchResponseError$7(luvio, config, resourceParams, response) {
1663
+ const snapshot = ingestError$7(luvio, resourceParams, response, {
1664
1664
  config,
1665
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1665
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1666
1666
  });
1667
1667
  return luvio.storeBroadcast().then(() => snapshot);
1668
1668
  }
1669
- function buildNetworkSnapshot$6(luvio, config, options) {
1670
- const resourceParams = createResourceParams$6(config);
1671
- const request = createResourceRequest$6(resourceParams);
1669
+ function buildNetworkSnapshot$7(luvio, config, options) {
1670
+ const resourceParams = createResourceParams$7(config);
1671
+ const request = createResourceRequest$7(resourceParams);
1672
1672
  return luvio.dispatchResourceRequest(request, options)
1673
1673
  .then((response) => {
1674
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
1674
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
1675
1675
  const cache = new StoreKeyMap();
1676
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
1676
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1677
1677
  return cache;
1678
1678
  });
1679
1679
  }, (response) => {
1680
- return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
1680
+ return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
1681
1681
  });
1682
1682
  }
1683
- function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
1684
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
1683
+ function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
1684
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
1685
1685
  }
1686
- function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
1686
+ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
1687
1687
  const { luvio, config } = context;
1688
1688
  const selector = {
1689
- recordId: keyBuilder$i(luvio, config),
1690
- node: adapterFragment$6(luvio, config),
1689
+ recordId: keyBuilder$k(luvio, config),
1690
+ node: adapterFragment$7(luvio, config),
1691
1691
  variables: {},
1692
1692
  };
1693
1693
  const cacheSnapshot = storeLookup(selector, {
1694
1694
  config,
1695
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1695
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1696
1696
  });
1697
1697
  return cacheSnapshot;
1698
1698
  }
1699
1699
  const getAppAdapterFactory = (luvio) => function AppFramework__getApp(untrustedConfig, requestContext) {
1700
- const config = validateAdapterConfig$6(untrustedConfig, getApp_ConfigPropertyNames);
1700
+ const config = validateAdapterConfig$7(untrustedConfig, getApp_ConfigPropertyNames);
1701
1701
  // Invalid or incomplete config
1702
1702
  if (config === null) {
1703
1703
  return null;
1704
1704
  }
1705
1705
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1706
- buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
1706
+ buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
1707
1707
  };
1708
1708
 
1709
- const TTL$6 = 5000;
1710
- const VERSION$6 = "b8e879a936b5069ec247355c66198ca7";
1711
- function validate$6(obj, path = 'AppActivityItemRepresentation') {
1709
+ const TTL$7 = 5000;
1710
+ const VERSION$7 = "b8e879a936b5069ec247355c66198ca7";
1711
+ function validate$7(obj, path = 'AppActivityItemRepresentation') {
1712
1712
  const v_error = (() => {
1713
1713
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1714
1714
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1750,24 +1750,24 @@ function validate$6(obj, path = 'AppActivityItemRepresentation') {
1750
1750
  })();
1751
1751
  return v_error === undefined ? null : v_error;
1752
1752
  }
1753
- const RepresentationType$6 = 'AppActivityItemRepresentation';
1754
- function keyBuilder$h(luvio, config) {
1755
- return keyPrefix + '::' + RepresentationType$6 + ':' + config.appId + ':' + config.id;
1753
+ const RepresentationType$7 = 'AppActivityItemRepresentation';
1754
+ function keyBuilder$j(luvio, config) {
1755
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.appId + ':' + config.id;
1756
1756
  }
1757
1757
  function keyBuilderFromType$5(luvio, object) {
1758
1758
  const keyParams = {
1759
1759
  appId: object.appId,
1760
1760
  id: object.id
1761
1761
  };
1762
- return keyBuilder$h(luvio, keyParams);
1762
+ return keyBuilder$j(luvio, keyParams);
1763
1763
  }
1764
- function normalize$6(input, existing, path, luvio, store, timestamp) {
1764
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
1765
1765
  return input;
1766
1766
  }
1767
- const select$c = function AppActivityItemRepresentationSelect() {
1767
+ const select$e = function AppActivityItemRepresentationSelect() {
1768
1768
  return {
1769
1769
  kind: 'Fragment',
1770
- version: VERSION$6,
1770
+ version: VERSION$7,
1771
1771
  private: [],
1772
1772
  selections: [
1773
1773
  {
@@ -1794,7 +1794,7 @@ const select$c = function AppActivityItemRepresentationSelect() {
1794
1794
  ]
1795
1795
  };
1796
1796
  };
1797
- function equals$6(existing, incoming) {
1797
+ function equals$7(existing, incoming) {
1798
1798
  const existing_activityType = existing.activityType;
1799
1799
  const incoming_activityType = incoming.activityType;
1800
1800
  if (!(existing_activityType === incoming_activityType)) {
@@ -1827,31 +1827,31 @@ function equals$6(existing, incoming) {
1827
1827
  }
1828
1828
  return true;
1829
1829
  }
1830
- const ingest$6 = function AppActivityItemRepresentationIngest(input, path, luvio, store, timestamp) {
1830
+ const ingest$7 = function AppActivityItemRepresentationIngest(input, path, luvio, store, timestamp) {
1831
1831
  if (process.env.NODE_ENV !== 'production') {
1832
- const validateError = validate$6(input);
1832
+ const validateError = validate$7(input);
1833
1833
  if (validateError !== null) {
1834
1834
  throw validateError;
1835
1835
  }
1836
1836
  }
1837
1837
  const key = keyBuilderFromType$5(luvio, input);
1838
- const ttlToUse = TTL$6;
1839
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "AppFramework", VERSION$6, RepresentationType$6, equals$6);
1838
+ const ttlToUse = TTL$7;
1839
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "AppFramework", VERSION$7, RepresentationType$7, equals$7);
1840
1840
  return createLink(key);
1841
1841
  };
1842
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1842
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1843
1843
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1844
1844
  const rootKey = keyBuilderFromType$5(luvio, input);
1845
1845
  rootKeySet.set(rootKey, {
1846
1846
  namespace: keyPrefix,
1847
- representationName: RepresentationType$6,
1847
+ representationName: RepresentationType$7,
1848
1848
  mergeable: false
1849
1849
  });
1850
1850
  }
1851
1851
 
1852
- const TTL$5 = 5000;
1853
- const VERSION$5 = "e0f049ec23678e696fb7c592c9641c65";
1854
- function validate$5(obj, path = 'AppActivityCollectionRepresentation') {
1852
+ const TTL$6 = 5000;
1853
+ const VERSION$6 = "e0f049ec23678e696fb7c592c9641c65";
1854
+ function validate$6(obj, path = 'AppActivityCollectionRepresentation') {
1855
1855
  const v_error = (() => {
1856
1856
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1857
1857
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1876,23 +1876,23 @@ function validate$5(obj, path = 'AppActivityCollectionRepresentation') {
1876
1876
  })();
1877
1877
  return v_error === undefined ? null : v_error;
1878
1878
  }
1879
- const RepresentationType$5 = 'AppActivityCollectionRepresentation';
1880
- function keyBuilder$g(luvio, config) {
1881
- return keyPrefix + '::' + RepresentationType$5 + ':' + config.appId;
1879
+ const RepresentationType$6 = 'AppActivityCollectionRepresentation';
1880
+ function keyBuilder$i(luvio, config) {
1881
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.appId;
1882
1882
  }
1883
1883
  function keyBuilderFromType$4(luvio, object) {
1884
1884
  const keyParams = {
1885
1885
  appId: object.appId
1886
1886
  };
1887
- return keyBuilder$g(luvio, keyParams);
1887
+ return keyBuilder$i(luvio, keyParams);
1888
1888
  }
1889
- function normalize$5(input, existing, path, luvio, store, timestamp) {
1889
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
1890
1890
  const input_items = input.items;
1891
1891
  const input_items_id = path.fullPath + '__items';
1892
1892
  for (let i = 0; i < input_items.length; i++) {
1893
1893
  const input_items_item = input_items[i];
1894
1894
  let input_items_item_id = input_items_id + '__' + i;
1895
- input_items[i] = ingest$6(input_items_item, {
1895
+ input_items[i] = ingest$7(input_items_item, {
1896
1896
  fullPath: input_items_item_id,
1897
1897
  propertyName: i,
1898
1898
  parent: {
@@ -1905,10 +1905,10 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
1905
1905
  }
1906
1906
  return input;
1907
1907
  }
1908
- const select$b = function AppActivityCollectionRepresentationSelect() {
1908
+ const select$d = function AppActivityCollectionRepresentationSelect() {
1909
1909
  return {
1910
1910
  kind: 'Fragment',
1911
- version: VERSION$5,
1911
+ version: VERSION$6,
1912
1912
  private: [],
1913
1913
  selections: [
1914
1914
  {
@@ -1919,12 +1919,12 @@ const select$b = function AppActivityCollectionRepresentationSelect() {
1919
1919
  name: 'items',
1920
1920
  kind: 'Link',
1921
1921
  plural: true,
1922
- fragment: select$c()
1922
+ fragment: select$e()
1923
1923
  }
1924
1924
  ]
1925
1925
  };
1926
1926
  };
1927
- function equals$5(existing, incoming) {
1927
+ function equals$6(existing, incoming) {
1928
1928
  const existing_appId = existing.appId;
1929
1929
  const incoming_appId = incoming.appId;
1930
1930
  if (!(existing_appId === incoming_appId)) {
@@ -1942,50 +1942,50 @@ function equals$5(existing, incoming) {
1942
1942
  }
1943
1943
  return true;
1944
1944
  }
1945
- const ingest$5 = function AppActivityCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1945
+ const ingest$6 = function AppActivityCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1946
1946
  if (process.env.NODE_ENV !== 'production') {
1947
- const validateError = validate$5(input);
1947
+ const validateError = validate$6(input);
1948
1948
  if (validateError !== null) {
1949
1949
  throw validateError;
1950
1950
  }
1951
1951
  }
1952
1952
  const key = keyBuilderFromType$4(luvio, input);
1953
- const ttlToUse = TTL$5;
1954
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "AppFramework", VERSION$5, RepresentationType$5, equals$5);
1953
+ const ttlToUse = TTL$6;
1954
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "AppFramework", VERSION$6, RepresentationType$6, equals$6);
1955
1955
  return createLink(key);
1956
1956
  };
1957
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1957
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1958
1958
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1959
1959
  const rootKey = keyBuilderFromType$4(luvio, input);
1960
1960
  rootKeySet.set(rootKey, {
1961
1961
  namespace: keyPrefix,
1962
- representationName: RepresentationType$5,
1962
+ representationName: RepresentationType$6,
1963
1963
  mergeable: false
1964
1964
  });
1965
1965
  const input_items_length = input.items.length;
1966
1966
  for (let i = 0; i < input_items_length; i++) {
1967
- getTypeCacheKeys$6(rootKeySet, luvio, input.items[i]);
1967
+ getTypeCacheKeys$7(rootKeySet, luvio, input.items[i]);
1968
1968
  }
1969
1969
  }
1970
1970
 
1971
- function select$a(luvio, params) {
1972
- return select$b();
1971
+ function select$c(luvio, params) {
1972
+ return select$d();
1973
1973
  }
1974
- function keyBuilder$f(luvio, params) {
1975
- return keyBuilder$g(luvio, {
1974
+ function keyBuilder$h(luvio, params) {
1975
+ return keyBuilder$i(luvio, {
1976
1976
  appId: params.urlParams.appIdOrApiName
1977
1977
  });
1978
1978
  }
1979
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1980
- getTypeCacheKeys$5(storeKeyMap, luvio, response);
1979
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1980
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
1981
1981
  }
1982
- function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
1982
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1983
1983
  const { body } = response;
1984
- const key = keyBuilder$f(luvio, resourceParams);
1985
- luvio.storeIngest(key, ingest$5, body);
1984
+ const key = keyBuilder$h(luvio, resourceParams);
1985
+ luvio.storeIngest(key, ingest$6, body);
1986
1986
  const snapshot = luvio.storeLookup({
1987
1987
  recordId: key,
1988
- node: select$a(),
1988
+ node: select$c(),
1989
1989
  variables: {},
1990
1990
  }, snapshotRefresh);
1991
1991
  if (process.env.NODE_ENV !== 'production') {
@@ -1996,19 +1996,19 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
1996
1996
  deepFreeze(snapshot.data);
1997
1997
  return snapshot;
1998
1998
  }
1999
- function ingestError$5(luvio, params, error, snapshotRefresh) {
2000
- const key = keyBuilder$f(luvio, params);
1999
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
2000
+ const key = keyBuilder$h(luvio, params);
2001
2001
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2002
2002
  const storeMetadataParams = {
2003
- ttl: TTL$5,
2003
+ ttl: TTL$6,
2004
2004
  namespace: keyPrefix,
2005
- version: VERSION$5,
2006
- representationName: RepresentationType$5
2005
+ version: VERSION$6,
2006
+ representationName: RepresentationType$6
2007
2007
  };
2008
2008
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2009
2009
  return errorSnapshot;
2010
2010
  }
2011
- function createResourceRequest$5(config) {
2011
+ function createResourceRequest$6(config) {
2012
2012
  const headers = {};
2013
2013
  return {
2014
2014
  baseUri: '/services/data/v62.0',
@@ -2022,111 +2022,111 @@ function createResourceRequest$5(config) {
2022
2022
  };
2023
2023
  }
2024
2024
 
2025
- const adapterName$5 = 'getAppActivities';
2025
+ const adapterName$6 = 'getAppActivities';
2026
2026
  const getAppActivities_ConfigPropertyMetadata = [
2027
2027
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2028
2028
  ];
2029
- const getAppActivities_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getAppActivities_ConfigPropertyMetadata);
2030
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$a(getAppActivities_ConfigPropertyMetadata);
2031
- function keyBuilder$e(luvio, config) {
2032
- const resourceParams = createResourceParams$5(config);
2033
- return keyBuilder$f(luvio, resourceParams);
2029
+ const getAppActivities_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getAppActivities_ConfigPropertyMetadata);
2030
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$b(getAppActivities_ConfigPropertyMetadata);
2031
+ function keyBuilder$g(luvio, config) {
2032
+ const resourceParams = createResourceParams$6(config);
2033
+ return keyBuilder$h(luvio, resourceParams);
2034
2034
  }
2035
- function typeCheckConfig$5(untrustedConfig) {
2035
+ function typeCheckConfig$6(untrustedConfig) {
2036
2036
  const config = {};
2037
- typeCheckConfig$a(untrustedConfig, config, getAppActivities_ConfigPropertyMetadata);
2037
+ typeCheckConfig$b(untrustedConfig, config, getAppActivities_ConfigPropertyMetadata);
2038
2038
  return config;
2039
2039
  }
2040
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
2040
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
2041
2041
  if (!untrustedIsObject(untrustedConfig)) {
2042
2042
  return null;
2043
2043
  }
2044
2044
  if (process.env.NODE_ENV !== 'production') {
2045
2045
  validateConfig(untrustedConfig, configPropertyNames);
2046
2046
  }
2047
- const config = typeCheckConfig$5(untrustedConfig);
2047
+ const config = typeCheckConfig$6(untrustedConfig);
2048
2048
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2049
2049
  return null;
2050
2050
  }
2051
2051
  return config;
2052
2052
  }
2053
- function adapterFragment$5(luvio, config) {
2054
- createResourceParams$5(config);
2055
- return select$a();
2053
+ function adapterFragment$6(luvio, config) {
2054
+ createResourceParams$6(config);
2055
+ return select$c();
2056
2056
  }
2057
- function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
2058
- const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
2057
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
2058
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
2059
2059
  config,
2060
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2060
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2061
2061
  });
2062
2062
  return luvio.storeBroadcast().then(() => snapshot);
2063
2063
  }
2064
- function onFetchResponseError$5(luvio, config, resourceParams, response) {
2065
- const snapshot = ingestError$5(luvio, resourceParams, response, {
2064
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
2065
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
2066
2066
  config,
2067
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2067
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2068
2068
  });
2069
2069
  return luvio.storeBroadcast().then(() => snapshot);
2070
2070
  }
2071
- function buildNetworkSnapshot$5(luvio, config, options) {
2072
- const resourceParams = createResourceParams$5(config);
2073
- const request = createResourceRequest$5(resourceParams);
2071
+ function buildNetworkSnapshot$6(luvio, config, options) {
2072
+ const resourceParams = createResourceParams$6(config);
2073
+ const request = createResourceRequest$6(resourceParams);
2074
2074
  return luvio.dispatchResourceRequest(request, options)
2075
2075
  .then((response) => {
2076
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
2076
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
2077
2077
  const cache = new StoreKeyMap();
2078
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
2078
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
2079
2079
  return cache;
2080
2080
  });
2081
2081
  }, (response) => {
2082
- return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
2082
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
2083
2083
  });
2084
2084
  }
2085
- function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
2086
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
2085
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
2086
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
2087
2087
  }
2088
- function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
2088
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
2089
2089
  const { luvio, config } = context;
2090
2090
  const selector = {
2091
- recordId: keyBuilder$e(luvio, config),
2092
- node: adapterFragment$5(luvio, config),
2091
+ recordId: keyBuilder$g(luvio, config),
2092
+ node: adapterFragment$6(luvio, config),
2093
2093
  variables: {},
2094
2094
  };
2095
2095
  const cacheSnapshot = storeLookup(selector, {
2096
2096
  config,
2097
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2097
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2098
2098
  });
2099
2099
  return cacheSnapshot;
2100
2100
  }
2101
2101
  const getAppActivitiesAdapterFactory = (luvio) => function AppFramework__getAppActivities(untrustedConfig, requestContext) {
2102
- const config = validateAdapterConfig$5(untrustedConfig, getAppActivities_ConfigPropertyNames);
2102
+ const config = validateAdapterConfig$6(untrustedConfig, getAppActivities_ConfigPropertyNames);
2103
2103
  // Invalid or incomplete config
2104
2104
  if (config === null) {
2105
2105
  return null;
2106
2106
  }
2107
2107
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2108
- buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
2108
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
2109
2109
  };
2110
2110
 
2111
- function select$9(luvio, params) {
2112
- return select$c();
2111
+ function select$b(luvio, params) {
2112
+ return select$e();
2113
2113
  }
2114
- function keyBuilder$d(luvio, params) {
2115
- return keyBuilder$h(luvio, {
2114
+ function keyBuilder$f(luvio, params) {
2115
+ return keyBuilder$j(luvio, {
2116
2116
  appId: params.urlParams.appIdOrApiName,
2117
2117
  id: params.urlParams.id
2118
2118
  });
2119
2119
  }
2120
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2121
- getTypeCacheKeys$6(storeKeyMap, luvio, response);
2120
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
2121
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
2122
2122
  }
2123
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2123
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
2124
2124
  const { body } = response;
2125
- const key = keyBuilder$d(luvio, resourceParams);
2126
- luvio.storeIngest(key, ingest$6, body);
2125
+ const key = keyBuilder$f(luvio, resourceParams);
2126
+ luvio.storeIngest(key, ingest$7, body);
2127
2127
  const snapshot = luvio.storeLookup({
2128
2128
  recordId: key,
2129
- node: select$9(),
2129
+ node: select$b(),
2130
2130
  variables: {},
2131
2131
  }, snapshotRefresh);
2132
2132
  if (process.env.NODE_ENV !== 'production') {
@@ -2137,19 +2137,19 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2137
2137
  deepFreeze(snapshot.data);
2138
2138
  return snapshot;
2139
2139
  }
2140
- function ingestError$4(luvio, params, error, snapshotRefresh) {
2141
- const key = keyBuilder$d(luvio, params);
2140
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
2141
+ const key = keyBuilder$f(luvio, params);
2142
2142
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2143
2143
  const storeMetadataParams = {
2144
- ttl: TTL$6,
2144
+ ttl: TTL$7,
2145
2145
  namespace: keyPrefix,
2146
- version: VERSION$6,
2147
- representationName: RepresentationType$6
2146
+ version: VERSION$7,
2147
+ representationName: RepresentationType$7
2148
2148
  };
2149
2149
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2150
2150
  return errorSnapshot;
2151
2151
  }
2152
- function createResourceRequest$4(config) {
2152
+ function createResourceRequest$5(config) {
2153
2153
  const headers = {};
2154
2154
  return {
2155
2155
  baseUri: '/services/data/v62.0',
@@ -2163,96 +2163,96 @@ function createResourceRequest$4(config) {
2163
2163
  };
2164
2164
  }
2165
2165
 
2166
- const adapterName$4 = 'getAppActivity';
2166
+ const adapterName$5 = 'getAppActivity';
2167
2167
  const getAppActivity_ConfigPropertyMetadata = [
2168
2168
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2169
2169
  generateParamConfigMetadata('id', true, 0 /* UrlParameter */, 0 /* String */),
2170
2170
  ];
2171
- const getAppActivity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAppActivity_ConfigPropertyMetadata);
2172
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$a(getAppActivity_ConfigPropertyMetadata);
2173
- function keyBuilder$c(luvio, config) {
2174
- const resourceParams = createResourceParams$4(config);
2175
- return keyBuilder$d(luvio, resourceParams);
2171
+ const getAppActivity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getAppActivity_ConfigPropertyMetadata);
2172
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$b(getAppActivity_ConfigPropertyMetadata);
2173
+ function keyBuilder$e(luvio, config) {
2174
+ const resourceParams = createResourceParams$5(config);
2175
+ return keyBuilder$f(luvio, resourceParams);
2176
2176
  }
2177
- function typeCheckConfig$4(untrustedConfig) {
2177
+ function typeCheckConfig$5(untrustedConfig) {
2178
2178
  const config = {};
2179
- typeCheckConfig$a(untrustedConfig, config, getAppActivity_ConfigPropertyMetadata);
2179
+ typeCheckConfig$b(untrustedConfig, config, getAppActivity_ConfigPropertyMetadata);
2180
2180
  return config;
2181
2181
  }
2182
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2182
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
2183
2183
  if (!untrustedIsObject(untrustedConfig)) {
2184
2184
  return null;
2185
2185
  }
2186
2186
  if (process.env.NODE_ENV !== 'production') {
2187
2187
  validateConfig(untrustedConfig, configPropertyNames);
2188
2188
  }
2189
- const config = typeCheckConfig$4(untrustedConfig);
2189
+ const config = typeCheckConfig$5(untrustedConfig);
2190
2190
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2191
2191
  return null;
2192
2192
  }
2193
2193
  return config;
2194
2194
  }
2195
- function adapterFragment$4(luvio, config) {
2196
- createResourceParams$4(config);
2197
- return select$9();
2195
+ function adapterFragment$5(luvio, config) {
2196
+ createResourceParams$5(config);
2197
+ return select$b();
2198
2198
  }
2199
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
2200
- const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2199
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
2200
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
2201
2201
  config,
2202
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2202
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2203
2203
  });
2204
2204
  return luvio.storeBroadcast().then(() => snapshot);
2205
2205
  }
2206
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
2207
- const snapshot = ingestError$4(luvio, resourceParams, response, {
2206
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
2207
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
2208
2208
  config,
2209
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2209
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2210
2210
  });
2211
2211
  return luvio.storeBroadcast().then(() => snapshot);
2212
2212
  }
2213
- function buildNetworkSnapshot$4(luvio, config, options) {
2214
- const resourceParams = createResourceParams$4(config);
2215
- const request = createResourceRequest$4(resourceParams);
2213
+ function buildNetworkSnapshot$5(luvio, config, options) {
2214
+ const resourceParams = createResourceParams$5(config);
2215
+ const request = createResourceRequest$5(resourceParams);
2216
2216
  return luvio.dispatchResourceRequest(request, options)
2217
2217
  .then((response) => {
2218
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
2218
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
2219
2219
  const cache = new StoreKeyMap();
2220
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2220
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
2221
2221
  return cache;
2222
2222
  });
2223
2223
  }, (response) => {
2224
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
2224
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
2225
2225
  });
2226
2226
  }
2227
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
2228
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2227
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
2228
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
2229
2229
  }
2230
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2230
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
2231
2231
  const { luvio, config } = context;
2232
2232
  const selector = {
2233
- recordId: keyBuilder$c(luvio, config),
2234
- node: adapterFragment$4(luvio, config),
2233
+ recordId: keyBuilder$e(luvio, config),
2234
+ node: adapterFragment$5(luvio, config),
2235
2235
  variables: {},
2236
2236
  };
2237
2237
  const cacheSnapshot = storeLookup(selector, {
2238
2238
  config,
2239
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2239
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2240
2240
  });
2241
2241
  return cacheSnapshot;
2242
2242
  }
2243
2243
  const getAppActivityAdapterFactory = (luvio) => function AppFramework__getAppActivity(untrustedConfig, requestContext) {
2244
- const config = validateAdapterConfig$4(untrustedConfig, getAppActivity_ConfigPropertyNames);
2244
+ const config = validateAdapterConfig$5(untrustedConfig, getAppActivity_ConfigPropertyNames);
2245
2245
  // Invalid or incomplete config
2246
2246
  if (config === null) {
2247
2247
  return null;
2248
2248
  }
2249
2249
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2250
- buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
2250
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
2251
2251
  };
2252
2252
 
2253
- const TTL$4 = 5000;
2254
- const VERSION$4 = "34bc50b3e68f546eb8e99af16e45d84b";
2255
- function validate$4(obj, path = 'AssetRepresentation') {
2253
+ const TTL$5 = 5000;
2254
+ const VERSION$5 = "b91a35834fb34f4f6cede2d5dc29dc5d";
2255
+ function validate$5(obj, path = 'AssetRepresentation') {
2256
2256
  const v_error = (() => {
2257
2257
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2258
2258
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2350,6 +2350,32 @@ function validate$4(obj, path = 'AssetRepresentation') {
2350
2350
  message += '\n' + obj_templateAssetSourceName_union1.split('\n').map((line) => '\t' + line).join('\n');
2351
2351
  return new TypeError(message);
2352
2352
  }
2353
+ const obj_templateSourceId = obj.templateSourceId;
2354
+ const path_templateSourceId = path + '.templateSourceId';
2355
+ let obj_templateSourceId_union0 = null;
2356
+ const obj_templateSourceId_union0_error = (() => {
2357
+ if (typeof obj_templateSourceId !== 'string') {
2358
+ return new TypeError('Expected "string" but received "' + typeof obj_templateSourceId + '" (at "' + path_templateSourceId + '")');
2359
+ }
2360
+ })();
2361
+ if (obj_templateSourceId_union0_error != null) {
2362
+ obj_templateSourceId_union0 = obj_templateSourceId_union0_error.message;
2363
+ }
2364
+ let obj_templateSourceId_union1 = null;
2365
+ const obj_templateSourceId_union1_error = (() => {
2366
+ if (obj_templateSourceId !== null) {
2367
+ return new TypeError('Expected "null" but received "' + typeof obj_templateSourceId + '" (at "' + path_templateSourceId + '")');
2368
+ }
2369
+ })();
2370
+ if (obj_templateSourceId_union1_error != null) {
2371
+ obj_templateSourceId_union1 = obj_templateSourceId_union1_error.message;
2372
+ }
2373
+ if (obj_templateSourceId_union0 && obj_templateSourceId_union1) {
2374
+ let message = 'Object doesn\'t match union (at "' + path_templateSourceId + '")';
2375
+ message += '\n' + obj_templateSourceId_union0.split('\n').map((line) => '\t' + line).join('\n');
2376
+ message += '\n' + obj_templateSourceId_union1.split('\n').map((line) => '\t' + line).join('\n');
2377
+ return new TypeError(message);
2378
+ }
2353
2379
  const obj_type = obj.type;
2354
2380
  const path_type = path + '.type';
2355
2381
  let obj_type_union0 = null;
@@ -2379,23 +2405,23 @@ function validate$4(obj, path = 'AssetRepresentation') {
2379
2405
  })();
2380
2406
  return v_error === undefined ? null : v_error;
2381
2407
  }
2382
- const RepresentationType$4 = 'AssetRepresentation';
2383
- function keyBuilder$b(luvio, config) {
2384
- return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
2408
+ const RepresentationType$5 = 'AssetRepresentation';
2409
+ function keyBuilder$d(luvio, config) {
2410
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
2385
2411
  }
2386
2412
  function keyBuilderFromType$3(luvio, object) {
2387
2413
  const keyParams = {
2388
2414
  id: object.id
2389
2415
  };
2390
- return keyBuilder$b(luvio, keyParams);
2416
+ return keyBuilder$d(luvio, keyParams);
2391
2417
  }
2392
- function normalize$4(input, existing, path, luvio, store, timestamp) {
2418
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
2393
2419
  return input;
2394
2420
  }
2395
- const select$8 = function AssetRepresentationSelect() {
2421
+ const select$a = function AssetRepresentationSelect() {
2396
2422
  return {
2397
2423
  kind: 'Fragment',
2398
- version: VERSION$4,
2424
+ version: VERSION$5,
2399
2425
  private: [],
2400
2426
  selections: [
2401
2427
  {
@@ -2422,6 +2448,10 @@ const select$8 = function AssetRepresentationSelect() {
2422
2448
  name: 'templateAssetSourceName',
2423
2449
  kind: 'Scalar'
2424
2450
  },
2451
+ {
2452
+ name: 'templateSourceId',
2453
+ kind: 'Scalar'
2454
+ },
2425
2455
  {
2426
2456
  name: 'type',
2427
2457
  kind: 'Scalar'
@@ -2429,7 +2459,7 @@ const select$8 = function AssetRepresentationSelect() {
2429
2459
  ]
2430
2460
  };
2431
2461
  };
2432
- function equals$4(existing, incoming) {
2462
+ function equals$5(existing, incoming) {
2433
2463
  const existing_appId = existing.appId;
2434
2464
  const incoming_appId = incoming.appId;
2435
2465
  if (!(existing_appId === incoming_appId)) {
@@ -2460,6 +2490,11 @@ function equals$4(existing, incoming) {
2460
2490
  if (!(existing_templateAssetSourceName === incoming_templateAssetSourceName)) {
2461
2491
  return false;
2462
2492
  }
2493
+ const existing_templateSourceId = existing.templateSourceId;
2494
+ const incoming_templateSourceId = incoming.templateSourceId;
2495
+ if (!(existing_templateSourceId === incoming_templateSourceId)) {
2496
+ return false;
2497
+ }
2463
2498
  const existing_type = existing.type;
2464
2499
  const incoming_type = incoming.type;
2465
2500
  if (!(existing_type === incoming_type)) {
@@ -2467,31 +2502,31 @@ function equals$4(existing, incoming) {
2467
2502
  }
2468
2503
  return true;
2469
2504
  }
2470
- const ingest$4 = function AssetRepresentationIngest(input, path, luvio, store, timestamp) {
2505
+ const ingest$5 = function AssetRepresentationIngest(input, path, luvio, store, timestamp) {
2471
2506
  if (process.env.NODE_ENV !== 'production') {
2472
- const validateError = validate$4(input);
2507
+ const validateError = validate$5(input);
2473
2508
  if (validateError !== null) {
2474
2509
  throw validateError;
2475
2510
  }
2476
2511
  }
2477
2512
  const key = keyBuilderFromType$3(luvio, input);
2478
- const ttlToUse = TTL$4;
2479
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "AppFramework", VERSION$4, RepresentationType$4, equals$4);
2513
+ const ttlToUse = TTL$5;
2514
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "AppFramework", VERSION$5, RepresentationType$5, equals$5);
2480
2515
  return createLink(key);
2481
2516
  };
2482
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2517
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
2483
2518
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2484
2519
  const rootKey = keyBuilderFromType$3(luvio, input);
2485
2520
  rootKeySet.set(rootKey, {
2486
2521
  namespace: keyPrefix,
2487
- representationName: RepresentationType$4,
2522
+ representationName: RepresentationType$5,
2488
2523
  mergeable: false
2489
2524
  });
2490
2525
  }
2491
2526
 
2492
- const TTL$3 = 5000;
2493
- const VERSION$3 = "1a10175fcc2ad43823e47bfbbdf917f6";
2494
- function validate$3(obj, path = 'AssetCollectionRepresentation') {
2527
+ const TTL$4 = 5000;
2528
+ const VERSION$4 = "1a10175fcc2ad43823e47bfbbdf917f6";
2529
+ function validate$4(obj, path = 'AssetCollectionRepresentation') {
2495
2530
  const v_error = (() => {
2496
2531
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2497
2532
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2516,23 +2551,23 @@ function validate$3(obj, path = 'AssetCollectionRepresentation') {
2516
2551
  })();
2517
2552
  return v_error === undefined ? null : v_error;
2518
2553
  }
2519
- const RepresentationType$3 = 'AssetCollectionRepresentation';
2520
- function keyBuilder$a(luvio, config) {
2521
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.appId;
2554
+ const RepresentationType$4 = 'AssetCollectionRepresentation';
2555
+ function keyBuilder$c(luvio, config) {
2556
+ return keyPrefix + '::' + RepresentationType$4 + ':' + config.appId;
2522
2557
  }
2523
2558
  function keyBuilderFromType$2(luvio, object) {
2524
2559
  const keyParams = {
2525
2560
  appId: object.appId
2526
2561
  };
2527
- return keyBuilder$a(luvio, keyParams);
2562
+ return keyBuilder$c(luvio, keyParams);
2528
2563
  }
2529
- function normalize$3(input, existing, path, luvio, store, timestamp) {
2564
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
2530
2565
  const input_assets = input.assets;
2531
2566
  const input_assets_id = path.fullPath + '__assets';
2532
2567
  for (let i = 0; i < input_assets.length; i++) {
2533
2568
  const input_assets_item = input_assets[i];
2534
2569
  let input_assets_item_id = input_assets_id + '__' + i;
2535
- input_assets[i] = ingest$4(input_assets_item, {
2570
+ input_assets[i] = ingest$5(input_assets_item, {
2536
2571
  fullPath: input_assets_item_id,
2537
2572
  propertyName: i,
2538
2573
  parent: {
@@ -2545,10 +2580,10 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
2545
2580
  }
2546
2581
  return input;
2547
2582
  }
2548
- const select$7 = function AssetCollectionRepresentationSelect() {
2583
+ const select$9 = function AssetCollectionRepresentationSelect() {
2549
2584
  return {
2550
2585
  kind: 'Fragment',
2551
- version: VERSION$3,
2586
+ version: VERSION$4,
2552
2587
  private: [],
2553
2588
  selections: [
2554
2589
  {
@@ -2559,12 +2594,12 @@ const select$7 = function AssetCollectionRepresentationSelect() {
2559
2594
  name: 'assets',
2560
2595
  kind: 'Link',
2561
2596
  plural: true,
2562
- fragment: select$8()
2597
+ fragment: select$a()
2563
2598
  }
2564
2599
  ]
2565
2600
  };
2566
2601
  };
2567
- function equals$3(existing, incoming) {
2602
+ function equals$4(existing, incoming) {
2568
2603
  const existing_appId = existing.appId;
2569
2604
  const incoming_appId = incoming.appId;
2570
2605
  if (!(existing_appId === incoming_appId)) {
@@ -2582,21 +2617,259 @@ function equals$3(existing, incoming) {
2582
2617
  }
2583
2618
  return true;
2584
2619
  }
2585
- const ingest$3 = function AssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2620
+ const ingest$4 = function AssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2586
2621
  if (process.env.NODE_ENV !== 'production') {
2587
- const validateError = validate$3(input);
2622
+ const validateError = validate$4(input);
2588
2623
  if (validateError !== null) {
2589
2624
  throw validateError;
2590
2625
  }
2591
2626
  }
2592
2627
  const key = keyBuilderFromType$2(luvio, input);
2628
+ const ttlToUse = TTL$4;
2629
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "AppFramework", VERSION$4, RepresentationType$4, equals$4);
2630
+ return createLink(key);
2631
+ };
2632
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2633
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2634
+ const rootKey = keyBuilderFromType$2(luvio, input);
2635
+ rootKeySet.set(rootKey, {
2636
+ namespace: keyPrefix,
2637
+ representationName: RepresentationType$4,
2638
+ mergeable: false
2639
+ });
2640
+ const input_assets_length = input.assets.length;
2641
+ for (let i = 0; i < input_assets_length; i++) {
2642
+ getTypeCacheKeys$5(rootKeySet, luvio, input.assets[i]);
2643
+ }
2644
+ }
2645
+
2646
+ function select$8(luvio, params) {
2647
+ return select$9();
2648
+ }
2649
+ function keyBuilder$b(luvio, params) {
2650
+ return keyBuilder$c(luvio, {
2651
+ appId: params.urlParams.appIdOrApiName
2652
+ });
2653
+ }
2654
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2655
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
2656
+ }
2657
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2658
+ const { body } = response;
2659
+ const key = keyBuilder$b(luvio, resourceParams);
2660
+ luvio.storeIngest(key, ingest$4, body);
2661
+ const snapshot = luvio.storeLookup({
2662
+ recordId: key,
2663
+ node: select$8(),
2664
+ variables: {},
2665
+ }, snapshotRefresh);
2666
+ if (process.env.NODE_ENV !== 'production') {
2667
+ if (snapshot.state !== 'Fulfilled') {
2668
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2669
+ }
2670
+ }
2671
+ deepFreeze(snapshot.data);
2672
+ return snapshot;
2673
+ }
2674
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
2675
+ const key = keyBuilder$b(luvio, params);
2676
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2677
+ const storeMetadataParams = {
2678
+ ttl: TTL$4,
2679
+ namespace: keyPrefix,
2680
+ version: VERSION$4,
2681
+ representationName: RepresentationType$4
2682
+ };
2683
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2684
+ return errorSnapshot;
2685
+ }
2686
+ function createResourceRequest$4(config) {
2687
+ const headers = {};
2688
+ return {
2689
+ baseUri: '/services/data/v62.0',
2690
+ basePath: '/app-framework/apps/' + config.urlParams.appIdOrApiName + '/assets',
2691
+ method: 'get',
2692
+ body: null,
2693
+ urlParams: config.urlParams,
2694
+ queryParams: config.queryParams,
2695
+ headers,
2696
+ priority: 'normal',
2697
+ };
2698
+ }
2699
+
2700
+ const adapterName$4 = 'getAppAssets';
2701
+ const getAppAssets_ConfigPropertyMetadata = [
2702
+ generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2703
+ generateParamConfigMetadata('assetType', false, 1 /* QueryParameter */, 0 /* String */),
2704
+ generateParamConfigMetadata('templateAssetName', false, 1 /* QueryParameter */, 0 /* String */),
2705
+ ];
2706
+ const getAppAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAppAssets_ConfigPropertyMetadata);
2707
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$b(getAppAssets_ConfigPropertyMetadata);
2708
+ function keyBuilder$a(luvio, config) {
2709
+ const resourceParams = createResourceParams$4(config);
2710
+ return keyBuilder$b(luvio, resourceParams);
2711
+ }
2712
+ function typeCheckConfig$4(untrustedConfig) {
2713
+ const config = {};
2714
+ typeCheckConfig$b(untrustedConfig, config, getAppAssets_ConfigPropertyMetadata);
2715
+ return config;
2716
+ }
2717
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2718
+ if (!untrustedIsObject(untrustedConfig)) {
2719
+ return null;
2720
+ }
2721
+ if (process.env.NODE_ENV !== 'production') {
2722
+ validateConfig(untrustedConfig, configPropertyNames);
2723
+ }
2724
+ const config = typeCheckConfig$4(untrustedConfig);
2725
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2726
+ return null;
2727
+ }
2728
+ return config;
2729
+ }
2730
+ function adapterFragment$4(luvio, config) {
2731
+ createResourceParams$4(config);
2732
+ return select$8();
2733
+ }
2734
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
2735
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2736
+ config,
2737
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2738
+ });
2739
+ return luvio.storeBroadcast().then(() => snapshot);
2740
+ }
2741
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
2742
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
2743
+ config,
2744
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2745
+ });
2746
+ return luvio.storeBroadcast().then(() => snapshot);
2747
+ }
2748
+ function buildNetworkSnapshot$4(luvio, config, options) {
2749
+ const resourceParams = createResourceParams$4(config);
2750
+ const request = createResourceRequest$4(resourceParams);
2751
+ return luvio.dispatchResourceRequest(request, options)
2752
+ .then((response) => {
2753
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
2754
+ const cache = new StoreKeyMap();
2755
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2756
+ return cache;
2757
+ });
2758
+ }, (response) => {
2759
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
2760
+ });
2761
+ }
2762
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
2763
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2764
+ }
2765
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2766
+ const { luvio, config } = context;
2767
+ const selector = {
2768
+ recordId: keyBuilder$a(luvio, config),
2769
+ node: adapterFragment$4(luvio, config),
2770
+ variables: {},
2771
+ };
2772
+ const cacheSnapshot = storeLookup(selector, {
2773
+ config,
2774
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2775
+ });
2776
+ return cacheSnapshot;
2777
+ }
2778
+ const getAppAssetsAdapterFactory = (luvio) => function AppFramework__getAppAssets(untrustedConfig, requestContext) {
2779
+ const config = validateAdapterConfig$4(untrustedConfig, getAppAssets_ConfigPropertyNames);
2780
+ // Invalid or incomplete config
2781
+ if (config === null) {
2782
+ return null;
2783
+ }
2784
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2785
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
2786
+ };
2787
+
2788
+ const TTL$3 = 5000;
2789
+ const VERSION$3 = "4b0d1bee319e31459f529b802621d6b8";
2790
+ function validate$3(obj, path = 'InstalledAssetCollectionRepresentation') {
2791
+ const v_error = (() => {
2792
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2793
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2794
+ }
2795
+ const obj_assets = obj.assets;
2796
+ const path_assets = path + '.assets';
2797
+ if (!ArrayIsArray(obj_assets)) {
2798
+ return new TypeError('Expected "array" but received "' + typeof obj_assets + '" (at "' + path_assets + '")');
2799
+ }
2800
+ for (let i = 0; i < obj_assets.length; i++) {
2801
+ const obj_assets_item = obj_assets[i];
2802
+ const path_assets_item = path_assets + '[' + i + ']';
2803
+ if (typeof obj_assets_item !== 'object') {
2804
+ return new TypeError('Expected "object" but received "' + typeof obj_assets_item + '" (at "' + path_assets_item + '")');
2805
+ }
2806
+ }
2807
+ })();
2808
+ return v_error === undefined ? null : v_error;
2809
+ }
2810
+ const RepresentationType$3 = 'InstalledAssetCollectionRepresentation';
2811
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
2812
+ const input_assets = input.assets;
2813
+ const input_assets_id = path.fullPath + '__assets';
2814
+ for (let i = 0; i < input_assets.length; i++) {
2815
+ const input_assets_item = input_assets[i];
2816
+ let input_assets_item_id = input_assets_id + '__' + i;
2817
+ input_assets[i] = ingest$5(input_assets_item, {
2818
+ fullPath: input_assets_item_id,
2819
+ propertyName: i,
2820
+ parent: {
2821
+ data: input,
2822
+ key: path.fullPath,
2823
+ existing: existing,
2824
+ },
2825
+ ttl: path.ttl
2826
+ }, luvio, store, timestamp);
2827
+ }
2828
+ return input;
2829
+ }
2830
+ const select$7 = function InstalledAssetCollectionRepresentationSelect() {
2831
+ return {
2832
+ kind: 'Fragment',
2833
+ version: VERSION$3,
2834
+ private: [],
2835
+ selections: [
2836
+ {
2837
+ name: 'assets',
2838
+ kind: 'Link',
2839
+ plural: true,
2840
+ fragment: select$a()
2841
+ }
2842
+ ]
2843
+ };
2844
+ };
2845
+ function equals$3(existing, incoming) {
2846
+ const existing_assets = existing.assets;
2847
+ const incoming_assets = incoming.assets;
2848
+ const equals_assets_items = equalsArray(existing_assets, incoming_assets, (existing_assets_item, incoming_assets_item) => {
2849
+ if (!(existing_assets_item.__ref === incoming_assets_item.__ref)) {
2850
+ return false;
2851
+ }
2852
+ });
2853
+ if (equals_assets_items === false) {
2854
+ return false;
2855
+ }
2856
+ return true;
2857
+ }
2858
+ const ingest$3 = function InstalledAssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2859
+ if (process.env.NODE_ENV !== 'production') {
2860
+ const validateError = validate$3(input);
2861
+ if (validateError !== null) {
2862
+ throw validateError;
2863
+ }
2864
+ }
2865
+ const key = path.fullPath;
2593
2866
  const ttlToUse = TTL$3;
2594
2867
  ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "AppFramework", VERSION$3, RepresentationType$3, equals$3);
2595
2868
  return createLink(key);
2596
2869
  };
2597
2870
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2598
2871
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2599
- const rootKey = keyBuilderFromType$2(luvio, input);
2872
+ const rootKey = fullPathFactory();
2600
2873
  rootKeySet.set(rootKey, {
2601
2874
  namespace: keyPrefix,
2602
2875
  representationName: RepresentationType$3,
@@ -2604,7 +2877,7 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2604
2877
  });
2605
2878
  const input_assets_length = input.assets.length;
2606
2879
  for (let i = 0; i < input_assets_length; i++) {
2607
- getTypeCacheKeys$4(rootKeySet, luvio, input.assets[i]);
2880
+ getTypeCacheKeys$5(rootKeySet, luvio, input.assets[i]);
2608
2881
  }
2609
2882
  }
2610
2883
 
@@ -2612,12 +2885,10 @@ function select$6(luvio, params) {
2612
2885
  return select$7();
2613
2886
  }
2614
2887
  function keyBuilder$9(luvio, params) {
2615
- return keyBuilder$a(luvio, {
2616
- appId: params.urlParams.appIdOrApiName
2617
- });
2888
+ return keyPrefix + '::InstalledAssetCollectionRepresentation:(' + 'assetIdOrName:' + params.queryParams.assetIdOrName + ',' + 'assetType:' + params.queryParams.assetType + ')';
2618
2889
  }
2619
2890
  function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2620
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
2891
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
2621
2892
  }
2622
2893
  function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
2623
2894
  const { body } = response;
@@ -2652,31 +2923,30 @@ function createResourceRequest$3(config) {
2652
2923
  const headers = {};
2653
2924
  return {
2654
2925
  baseUri: '/services/data/v62.0',
2655
- basePath: '/app-framework/apps/' + config.urlParams.appIdOrApiName + '/assets',
2926
+ basePath: '/app-framework/installed-assets',
2656
2927
  method: 'get',
2657
2928
  body: null,
2658
- urlParams: config.urlParams,
2929
+ urlParams: {},
2659
2930
  queryParams: config.queryParams,
2660
2931
  headers,
2661
2932
  priority: 'normal',
2662
2933
  };
2663
2934
  }
2664
2935
 
2665
- const adapterName$3 = 'getAppAssets';
2666
- const getAppAssets_ConfigPropertyMetadata = [
2667
- generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2936
+ const adapterName$3 = 'getInstalledAssets';
2937
+ const getInstalledAssets_ConfigPropertyMetadata = [
2938
+ generateParamConfigMetadata('assetIdOrName', false, 1 /* QueryParameter */, 0 /* String */),
2668
2939
  generateParamConfigMetadata('assetType', false, 1 /* QueryParameter */, 0 /* String */),
2669
- generateParamConfigMetadata('templateAssetName', false, 1 /* QueryParameter */, 0 /* String */),
2670
2940
  ];
2671
- const getAppAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getAppAssets_ConfigPropertyMetadata);
2672
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$a(getAppAssets_ConfigPropertyMetadata);
2941
+ const getInstalledAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getInstalledAssets_ConfigPropertyMetadata);
2942
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$b(getInstalledAssets_ConfigPropertyMetadata);
2673
2943
  function keyBuilder$8(luvio, config) {
2674
2944
  const resourceParams = createResourceParams$3(config);
2675
2945
  return keyBuilder$9(luvio, resourceParams);
2676
2946
  }
2677
2947
  function typeCheckConfig$3(untrustedConfig) {
2678
2948
  const config = {};
2679
- typeCheckConfig$a(untrustedConfig, config, getAppAssets_ConfigPropertyMetadata);
2949
+ typeCheckConfig$b(untrustedConfig, config, getInstalledAssets_ConfigPropertyMetadata);
2680
2950
  return config;
2681
2951
  }
2682
2952
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -2725,7 +2995,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
2725
2995
  });
2726
2996
  }
2727
2997
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2728
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
2998
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
2729
2999
  }
2730
3000
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2731
3001
  const { luvio, config } = context;
@@ -2740,8 +3010,8 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2740
3010
  });
2741
3011
  return cacheSnapshot;
2742
3012
  }
2743
- const getAppAssetsAdapterFactory = (luvio) => function AppFramework__getAppAssets(untrustedConfig, requestContext) {
2744
- const config = validateAdapterConfig$3(untrustedConfig, getAppAssets_ConfigPropertyNames);
3013
+ const getInstalledAssetsAdapterFactory = (luvio) => function AppFramework__getInstalledAssets(untrustedConfig, requestContext) {
3014
+ const config = validateAdapterConfig$3(untrustedConfig, getInstalledAssets_ConfigPropertyNames);
2745
3015
  // Invalid or incomplete config
2746
3016
  if (config === null) {
2747
3017
  return null;
@@ -3077,7 +3347,7 @@ function createResourceRequest$2(config) {
3077
3347
  const adapterName$2 = 'getTemplates';
3078
3348
  const getTemplates_ConfigPropertyMetadata = [];
3079
3349
  const getTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getTemplates_ConfigPropertyMetadata);
3080
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$a(getTemplates_ConfigPropertyMetadata);
3350
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$b(getTemplates_ConfigPropertyMetadata);
3081
3351
  function keyBuilder$5(luvio, config) {
3082
3352
  createResourceParams$2(config);
3083
3353
  return keyBuilder$6();
@@ -3132,7 +3402,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
3132
3402
  });
3133
3403
  }
3134
3404
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
3135
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3405
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3136
3406
  }
3137
3407
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
3138
3408
  const { luvio, config } = context;
@@ -3216,14 +3486,14 @@ const getTemplate_ConfigPropertyMetadata = [
3216
3486
  generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
3217
3487
  ];
3218
3488
  const getTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getTemplate_ConfigPropertyMetadata);
3219
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$a(getTemplate_ConfigPropertyMetadata);
3489
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$b(getTemplate_ConfigPropertyMetadata);
3220
3490
  function keyBuilder$3(luvio, config) {
3221
3491
  const resourceParams = createResourceParams$1(config);
3222
3492
  return keyBuilder$4(luvio, resourceParams);
3223
3493
  }
3224
3494
  function typeCheckConfig$1(untrustedConfig) {
3225
3495
  const config = {};
3226
- typeCheckConfig$a(untrustedConfig, config, getTemplate_ConfigPropertyMetadata);
3496
+ typeCheckConfig$b(untrustedConfig, config, getTemplate_ConfigPropertyMetadata);
3227
3497
  return config;
3228
3498
  }
3229
3499
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -3272,7 +3542,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
3272
3542
  });
3273
3543
  }
3274
3544
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
3275
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
3545
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
3276
3546
  }
3277
3547
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
3278
3548
  const { luvio, config } = context;
@@ -3441,14 +3711,14 @@ const getTemplateConfig_ConfigPropertyMetadata = [
3441
3711
  generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
3442
3712
  ];
3443
3713
  const getTemplateConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTemplateConfig_ConfigPropertyMetadata);
3444
- const createResourceParams = /*#__PURE__*/ createResourceParams$a(getTemplateConfig_ConfigPropertyMetadata);
3714
+ const createResourceParams = /*#__PURE__*/ createResourceParams$b(getTemplateConfig_ConfigPropertyMetadata);
3445
3715
  function keyBuilder(luvio, config) {
3446
3716
  const resourceParams = createResourceParams(config);
3447
3717
  return keyBuilder$1(luvio, resourceParams);
3448
3718
  }
3449
3719
  function typeCheckConfig(untrustedConfig) {
3450
3720
  const config = {};
3451
- typeCheckConfig$a(untrustedConfig, config, getTemplateConfig_ConfigPropertyMetadata);
3721
+ typeCheckConfig$b(untrustedConfig, config, getTemplateConfig_ConfigPropertyMetadata);
3452
3722
  return config;
3453
3723
  }
3454
3724
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -3497,7 +3767,7 @@ function buildNetworkSnapshot(luvio, config, options) {
3497
3767
  });
3498
3768
  }
3499
3769
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
3500
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
3770
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
3501
3771
  }
3502
3772
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
3503
3773
  const { luvio, config } = context;
@@ -3522,4 +3792,4 @@ const getTemplateConfigAdapterFactory = (luvio) => function AppFramework__getTem
3522
3792
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
3523
3793
  };
3524
3794
 
3525
- export { createAppAdapterFactory, deleteAppAdapterFactory, getAppActivitiesAdapterFactory, getAppActivityAdapterFactory, getAppAdapterFactory, getAppAssetsAdapterFactory, getAppsAdapterFactory, getTemplateAdapterFactory, getTemplateConfigAdapterFactory, getTemplatesAdapterFactory };
3795
+ export { createAppAdapterFactory, deleteAppAdapterFactory, getAppActivitiesAdapterFactory, getAppActivityAdapterFactory, getAppAdapterFactory, getAppAssetsAdapterFactory, getAppsAdapterFactory, getInstalledAssetsAdapterFactory, getTemplateAdapterFactory, getTemplateConfigAdapterFactory, getTemplatesAdapterFactory };