@salesforce/lds-adapters-analytics-app-framework 1.351.1 → 1.353.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$b, typeCheckConfig as typeCheckConfig$n, StoreKeyMap, createResourceParams as createResourceParams$n } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$c, typeCheckConfig as typeCheckConfig$o, StoreKeyMap, createResourceParams as createResourceParams$o } 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$v = "8747a45321deaf63f65cf74537b07eb6";
116
- function validate$y(obj, path = 'UserRepresentation') {
115
+ const VERSION$x = "8747a45321deaf63f65cf74537b07eb6";
116
+ function validate$A(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$y(obj, path = 'UserRepresentation') {
157
157
  })();
158
158
  return v_error === undefined ? null : v_error;
159
159
  }
160
- const select$P = function UserRepresentationSelect() {
160
+ const select$S = function UserRepresentationSelect() {
161
161
  return {
162
162
  kind: 'Fragment',
163
- version: VERSION$v,
163
+ version: VERSION$x,
164
164
  private: [],
165
165
  selections: [
166
166
  {
@@ -178,7 +178,7 @@ const select$P = function UserRepresentationSelect() {
178
178
  ]
179
179
  };
180
180
  };
181
- function equals$s(existing, incoming) {
181
+ function equals$u(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$s(existing, incoming) {
197
197
  return true;
198
198
  }
199
199
 
200
- const VERSION$u = "74662b770f974cec987197380f2580ea";
201
- function validate$x(obj, path = 'ScheduledTimezoneRepresentation') {
200
+ const VERSION$w = "74662b770f974cec987197380f2580ea";
201
+ function validate$z(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$x(obj, path = 'ScheduledTimezoneRepresentation') {
217
217
  })();
218
218
  return v_error === undefined ? null : v_error;
219
219
  }
220
- const select$O = function ScheduledTimezoneRepresentationSelect() {
220
+ const select$R = function ScheduledTimezoneRepresentationSelect() {
221
221
  return {
222
222
  kind: 'Fragment',
223
- version: VERSION$u,
223
+ version: VERSION$w,
224
224
  private: [],
225
225
  selections: [
226
226
  {
@@ -238,7 +238,7 @@ const select$O = function ScheduledTimezoneRepresentationSelect() {
238
238
  ]
239
239
  };
240
240
  };
241
- function equals$r(existing, incoming) {
241
+ function equals$t(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$r(existing, incoming) {
257
257
  return true;
258
258
  }
259
259
 
260
- const VERSION$t = "d96bf6818be64d5924beaaad8e684221";
261
- function validate$w(obj, path = 'ScheduledTimeRepresentation') {
260
+ const VERSION$v = "d96bf6818be64d5924beaaad8e684221";
261
+ function validate$y(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$w(obj, path = 'ScheduledTimeRepresentation') {
275
275
  }
276
276
  const obj_timezone = obj.timezone;
277
277
  const path_timezone = path + '.timezone';
278
- const referencepath_timezoneValidationError = validate$x(obj_timezone, path_timezone);
278
+ const referencepath_timezoneValidationError = validate$z(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$w(obj, path = 'ScheduledTimeRepresentation') {
284
284
  })();
285
285
  return v_error === undefined ? null : v_error;
286
286
  }
287
- const select$N = function ScheduledTimeRepresentationSelect() {
288
- const { selections: ScheduledTimezoneRepresentation__selections, opaque: ScheduledTimezoneRepresentation__opaque, } = select$O();
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$t,
291
+ version: VERSION$v,
292
292
  private: [],
293
293
  selections: [
294
294
  {
@@ -307,7 +307,7 @@ const select$N = function ScheduledTimeRepresentationSelect() {
307
307
  ]
308
308
  };
309
309
  };
310
- function equals$q(existing, incoming) {
310
+ function equals$s(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$q(existing, incoming) {
320
320
  }
321
321
  const existing_timezone = existing.timezone;
322
322
  const incoming_timezone = incoming.timezone;
323
- if (!(equals$r(existing_timezone, incoming_timezone))) {
323
+ if (!(equals$t(existing_timezone, incoming_timezone))) {
324
324
  return false;
325
325
  }
326
326
  return true;
327
327
  }
328
328
 
329
- const VERSION$s = "91838b86aa135ce828af6242b11ae888";
330
- const select$M = function HourlyScheduledItemRepresentationSelect() {
331
- const { selections: ScheduledItemRepresentationSelections } = select$J();
329
+ const VERSION$u = "91838b86aa135ce828af6242b11ae888";
330
+ const select$P = function HourlyScheduledItemRepresentationSelect() {
331
+ const { selections: ScheduledItemRepresentationSelections } = select$M();
332
332
  return {
333
333
  kind: 'Fragment',
334
- version: VERSION$s,
334
+ version: VERSION$u,
335
335
  private: [],
336
336
  selections: [
337
337
  ...ScheduledItemRepresentationSelections,
@@ -348,12 +348,12 @@ const select$M = function HourlyScheduledItemRepresentationSelect() {
348
348
  };
349
349
  };
350
350
 
351
- const VERSION$r = "46260a34f0b2c2d7adc7f8c150a8d8fb";
352
- const select$L = function WeeklyScheduledItemRepresentationSelect() {
353
- const { selections: ScheduledItemRepresentationSelections } = select$J();
351
+ const VERSION$t = "46260a34f0b2c2d7adc7f8c150a8d8fb";
352
+ const select$O = function WeeklyScheduledItemRepresentationSelect() {
353
+ const { selections: ScheduledItemRepresentationSelections } = select$M();
354
354
  return {
355
355
  kind: 'Fragment',
356
- version: VERSION$r,
356
+ version: VERSION$t,
357
357
  private: [],
358
358
  selections: [
359
359
  ...ScheduledItemRepresentationSelections,
@@ -366,12 +366,12 @@ const select$L = function WeeklyScheduledItemRepresentationSelect() {
366
366
  };
367
367
  };
368
368
 
369
- const VERSION$q = "dcda6d015a01d9acde5fac241448cfe4";
370
- const select$K = function DailyScheduledItemRepresentationSelect() {
371
- const { selections: ScheduledItemRepresentationSelections } = select$J();
369
+ const VERSION$s = "dcda6d015a01d9acde5fac241448cfe4";
370
+ const select$N = function DailyScheduledItemRepresentationSelect() {
371
+ const { selections: ScheduledItemRepresentationSelections } = select$M();
372
372
  return {
373
373
  kind: 'Fragment',
374
- version: VERSION$q,
374
+ version: VERSION$s,
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$p = "193484b4261ca5840b61caaab3dea067";
389
- function validate$v(obj, path = 'ScheduledItemRepresentation') {
388
+ const VERSION$r = "193484b4261ca5840b61caaab3dea067";
389
+ function validate$x(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$v(obj, path = 'ScheduledItemRepresentation') {
403
403
  }
404
404
  const obj_time = obj.time;
405
405
  const path_time = path + '.time';
406
- const referencepath_timeValidationError = validate$w(obj_time, path_time);
406
+ const referencepath_timeValidationError = validate$y(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$v(obj, path = 'ScheduledItemRepresentation') {
413
413
  return v_error === undefined ? null : v_error;
414
414
  }
415
415
  const selectChildren = function ScheduledItemRepresentationSelectChildren() {
416
- const hourlyScheduledItemRepresentationSelections = select$M();
417
- const weeklyScheduledItemRepresentationSelections = select$L();
418
- const dailyScheduledItemRepresentationSelections = select$K();
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$J = function ScheduledItemRepresentationSelect() {
431
- const { selections: ScheduledTimeRepresentation__selections, opaque: ScheduledTimeRepresentation__opaque, } = select$N();
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$p,
434
+ version: VERSION$r,
435
435
  private: [],
436
436
  selections: [
437
437
  {
@@ -450,7 +450,7 @@ const select$J = function ScheduledItemRepresentationSelect() {
450
450
  ]
451
451
  };
452
452
  };
453
- function equals$p(existing, incoming) {
453
+ function equals$r(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$p(existing, incoming) {
463
463
  }
464
464
  const existing_time = existing.time;
465
465
  const incoming_time = incoming.time;
466
- if (!(equals$q(existing_time, incoming_time))) {
466
+ if (!(equals$s(existing_time, incoming_time))) {
467
467
  return false;
468
468
  }
469
469
  return true;
470
470
  }
471
471
 
472
- const VERSION$o = "06b5da5162febff2692d819c9b718be5";
473
- function validate$u(obj, path = 'AppScheduleRepresentation') {
472
+ const VERSION$q = "06b5da5162febff2692d819c9b718be5";
473
+ function validate$w(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$u(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$v(obj_dataRefreshSchedule, path_dataRefreshSchedule);
482
+ const referencepath_dataRefreshScheduleValidationError = validate$x(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$u(obj, path = 'AppScheduleRepresentation') {
533
533
  })();
534
534
  return v_error === undefined ? null : v_error;
535
535
  }
536
- const select$I = function AppScheduleRepresentationSelect() {
536
+ const select$L = function AppScheduleRepresentationSelect() {
537
537
  const ScheduledItemRepresentation__unionSelections = selectChildren();
538
538
  return {
539
539
  kind: 'Fragment',
540
- version: VERSION$o,
540
+ version: VERSION$q,
541
541
  private: [],
542
542
  selections: [
543
543
  {
@@ -555,13 +555,13 @@ const select$I = function AppScheduleRepresentationSelect() {
555
555
  ]
556
556
  };
557
557
  };
558
- function equals$o(existing, incoming) {
558
+ function equals$q(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$p(existing_dataRefreshSchedule, incoming_dataRefreshSchedule)))) {
564
+ equals$r(existing_dataRefreshSchedule, incoming_dataRefreshSchedule)))) {
565
565
  return false;
566
566
  }
567
567
  const existing_url = existing.url;
@@ -572,9 +572,9 @@ function equals$o(existing, incoming) {
572
572
  return true;
573
573
  }
574
574
 
575
- const TTL$c = 5000;
576
- const VERSION$n = "83db5eb45b2ef59314498ac2065f8703";
577
- function validate$t(obj, path = 'AppRepresentation') {
575
+ const TTL$e = 5000;
576
+ const VERSION$p = "83db5eb45b2ef59314498ac2065f8703";
577
+ function validate$v(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$t(obj, path = 'AppRepresentation') {
596
596
  }
597
597
  const obj_createdBy = obj.createdBy;
598
598
  const path_createdBy = path + '.createdBy';
599
- const referencepath_createdByValidationError = validate$y(obj_createdBy, path_createdBy);
599
+ const referencepath_createdByValidationError = validate$A(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$t(obj, path = 'AppRepresentation') {
650
650
  }
651
651
  const obj_lastModifiedBy = obj.lastModifiedBy;
652
652
  const path_lastModifiedBy = path + '.lastModifiedBy';
653
- const referencepath_lastModifiedByValidationError = validate$y(obj_lastModifiedBy, path_lastModifiedBy);
653
+ const referencepath_lastModifiedByValidationError = validate$A(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');
@@ -680,7 +680,7 @@ function validate$t(obj, path = 'AppRepresentation') {
680
680
  const path_schedule = path + '.schedule';
681
681
  let obj_schedule_union0 = null;
682
682
  const obj_schedule_union0_error = (() => {
683
- const referencepath_scheduleValidationError = validate$u(obj_schedule, path_schedule);
683
+ const referencepath_scheduleValidationError = validate$w(obj_schedule, path_schedule);
684
684
  if (referencepath_scheduleValidationError !== null) {
685
685
  let message = 'Object doesn\'t match AppScheduleRepresentation (at "' + path_schedule + '")\n';
686
686
  message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -810,25 +810,25 @@ function validate$t(obj, path = 'AppRepresentation') {
810
810
  })();
811
811
  return v_error === undefined ? null : v_error;
812
812
  }
813
- const RepresentationType$c = 'AppRepresentation';
814
- function keyBuilder$y(luvio, config) {
815
- return keyPrefix + '::' + RepresentationType$c + ':' + config.id;
813
+ const RepresentationType$e = 'AppRepresentation';
814
+ function keyBuilder$B(luvio, config) {
815
+ return keyPrefix + '::' + RepresentationType$e + ':' + config.id;
816
816
  }
817
- function keyBuilderFromType$9(luvio, object) {
817
+ function keyBuilderFromType$a(luvio, object) {
818
818
  const keyParams = {
819
819
  id: object.id
820
820
  };
821
- return keyBuilder$y(luvio, keyParams);
821
+ return keyBuilder$B(luvio, keyParams);
822
822
  }
823
- function normalize$c(input, existing, path, luvio, store, timestamp) {
823
+ function normalize$e(input, existing, path, luvio, store, timestamp) {
824
824
  return input;
825
825
  }
826
- const select$H = function AppRepresentationSelect() {
827
- const { selections: UserRepresentation__selections, opaque: UserRepresentation__opaque, } = select$P();
828
- const { selections: AppScheduleRepresentation__selections, opaque: AppScheduleRepresentation__opaque, } = select$I();
826
+ const select$K = function AppRepresentationSelect() {
827
+ const { selections: UserRepresentation__selections, opaque: UserRepresentation__opaque, } = select$S();
828
+ const { selections: AppScheduleRepresentation__selections, opaque: AppScheduleRepresentation__opaque, } = select$L();
829
829
  return {
830
830
  kind: 'Fragment',
831
- version: VERSION$n,
831
+ version: VERSION$p,
832
832
  private: [],
833
833
  selections: [
834
834
  {
@@ -923,7 +923,7 @@ const select$H = function AppRepresentationSelect() {
923
923
  ]
924
924
  };
925
925
  };
926
- function equals$n(existing, incoming) {
926
+ function equals$p(existing, incoming) {
927
927
  const existing_activitiesUrl = existing.activitiesUrl;
928
928
  const incoming_activitiesUrl = incoming.activitiesUrl;
929
929
  if (!(existing_activitiesUrl === incoming_activitiesUrl)) {
@@ -991,7 +991,7 @@ function equals$n(existing, incoming) {
991
991
  }
992
992
  const existing_createdBy = existing.createdBy;
993
993
  const incoming_createdBy = incoming.createdBy;
994
- if (!(equals$s(existing_createdBy, incoming_createdBy))) {
994
+ if (!(equals$u(existing_createdBy, incoming_createdBy))) {
995
995
  return false;
996
996
  }
997
997
  const existing_description = existing.description;
@@ -1001,7 +1001,7 @@ function equals$n(existing, incoming) {
1001
1001
  }
1002
1002
  const existing_lastModifiedBy = existing.lastModifiedBy;
1003
1003
  const incoming_lastModifiedBy = incoming.lastModifiedBy;
1004
- if (!(equals$s(existing_lastModifiedBy, incoming_lastModifiedBy))) {
1004
+ if (!(equals$u(existing_lastModifiedBy, incoming_lastModifiedBy))) {
1005
1005
  return false;
1006
1006
  }
1007
1007
  const existing_schedule = existing.schedule;
@@ -1009,7 +1009,7 @@ function equals$n(existing, incoming) {
1009
1009
  if (!(existing_schedule === incoming_schedule
1010
1010
  || (existing_schedule != null &&
1011
1011
  incoming_schedule != null &&
1012
- equals$o(existing_schedule, incoming_schedule)))) {
1012
+ equals$q(existing_schedule, incoming_schedule)))) {
1013
1013
  return false;
1014
1014
  }
1015
1015
  const existing_templateSourceId = existing.templateSourceId;
@@ -1039,31 +1039,31 @@ function equals$n(existing, incoming) {
1039
1039
  }
1040
1040
  return true;
1041
1041
  }
1042
- const ingest$c = function AppRepresentationIngest(input, path, luvio, store, timestamp) {
1042
+ const ingest$e = function AppRepresentationIngest(input, path, luvio, store, timestamp) {
1043
1043
  if (process.env.NODE_ENV !== 'production') {
1044
- const validateError = validate$t(input);
1044
+ const validateError = validate$v(input);
1045
1045
  if (validateError !== null) {
1046
1046
  throw validateError;
1047
1047
  }
1048
1048
  }
1049
- const key = keyBuilderFromType$9(luvio, input);
1050
- const ttlToUse = TTL$c;
1051
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "AppFramework", VERSION$n, RepresentationType$c, equals$n);
1049
+ const key = keyBuilderFromType$a(luvio, input);
1050
+ const ttlToUse = TTL$e;
1051
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "AppFramework", VERSION$p, RepresentationType$e, equals$p);
1052
1052
  return createLink(key);
1053
1053
  };
1054
- function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
1054
+ function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
1055
1055
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1056
- const rootKey = keyBuilderFromType$9(luvio, input);
1056
+ const rootKey = keyBuilderFromType$a(luvio, input);
1057
1057
  rootKeySet.set(rootKey, {
1058
1058
  namespace: keyPrefix,
1059
- representationName: RepresentationType$c,
1059
+ representationName: RepresentationType$e,
1060
1060
  mergeable: false
1061
1061
  });
1062
1062
  }
1063
1063
 
1064
- const TTL$b = 5000;
1065
- const VERSION$m = "2dd7266897d8b84ea0207582ca533d29";
1066
- function validate$s(obj, path = 'AppCollectionRepresentation') {
1064
+ const TTL$d = 5000;
1065
+ const VERSION$o = "2dd7266897d8b84ea0207582ca533d29";
1066
+ function validate$u(obj, path = 'AppCollectionRepresentation') {
1067
1067
  const v_error = (() => {
1068
1068
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1069
1069
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1083,14 +1083,14 @@ function validate$s(obj, path = 'AppCollectionRepresentation') {
1083
1083
  })();
1084
1084
  return v_error === undefined ? null : v_error;
1085
1085
  }
1086
- const RepresentationType$b = 'AppCollectionRepresentation';
1087
- function normalize$b(input, existing, path, luvio, store, timestamp) {
1086
+ const RepresentationType$d = 'AppCollectionRepresentation';
1087
+ function normalize$d(input, existing, path, luvio, store, timestamp) {
1088
1088
  const input_apps = input.apps;
1089
1089
  const input_apps_id = path.fullPath + '__apps';
1090
1090
  for (let i = 0; i < input_apps.length; i++) {
1091
1091
  const input_apps_item = input_apps[i];
1092
1092
  let input_apps_item_id = input_apps_id + '__' + i;
1093
- input_apps[i] = ingest$c(input_apps_item, {
1093
+ input_apps[i] = ingest$e(input_apps_item, {
1094
1094
  fullPath: input_apps_item_id,
1095
1095
  propertyName: i,
1096
1096
  parent: {
@@ -1103,22 +1103,22 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
1103
1103
  }
1104
1104
  return input;
1105
1105
  }
1106
- const select$G = function AppCollectionRepresentationSelect() {
1106
+ const select$J = function AppCollectionRepresentationSelect() {
1107
1107
  return {
1108
1108
  kind: 'Fragment',
1109
- version: VERSION$m,
1109
+ version: VERSION$o,
1110
1110
  private: [],
1111
1111
  selections: [
1112
1112
  {
1113
1113
  name: 'apps',
1114
1114
  kind: 'Link',
1115
1115
  plural: true,
1116
- fragment: select$H()
1116
+ fragment: select$K()
1117
1117
  }
1118
1118
  ]
1119
1119
  };
1120
1120
  };
1121
- function equals$m(existing, incoming) {
1121
+ function equals$o(existing, incoming) {
1122
1122
  const existing_apps = existing.apps;
1123
1123
  const incoming_apps = incoming.apps;
1124
1124
  const equals_apps_items = equalsArray(existing_apps, incoming_apps, (existing_apps_item, incoming_apps_item) => {
@@ -1131,48 +1131,48 @@ function equals$m(existing, incoming) {
1131
1131
  }
1132
1132
  return true;
1133
1133
  }
1134
- const ingest$b = function AppCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1134
+ const ingest$d = function AppCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1135
1135
  if (process.env.NODE_ENV !== 'production') {
1136
- const validateError = validate$s(input);
1136
+ const validateError = validate$u(input);
1137
1137
  if (validateError !== null) {
1138
1138
  throw validateError;
1139
1139
  }
1140
1140
  }
1141
1141
  const key = path.fullPath;
1142
- const ttlToUse = TTL$b;
1143
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "AppFramework", VERSION$m, RepresentationType$b, equals$m);
1142
+ const ttlToUse = TTL$d;
1143
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "AppFramework", VERSION$o, RepresentationType$d, equals$o);
1144
1144
  return createLink(key);
1145
1145
  };
1146
- function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
1146
+ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
1147
1147
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1148
1148
  const rootKey = fullPathFactory();
1149
1149
  rootKeySet.set(rootKey, {
1150
1150
  namespace: keyPrefix,
1151
- representationName: RepresentationType$b,
1151
+ representationName: RepresentationType$d,
1152
1152
  mergeable: false
1153
1153
  });
1154
1154
  const input_apps_length = input.apps.length;
1155
1155
  for (let i = 0; i < input_apps_length; i++) {
1156
- getTypeCacheKeys$c(rootKeySet, luvio, input.apps[i]);
1156
+ getTypeCacheKeys$e(rootKeySet, luvio, input.apps[i]);
1157
1157
  }
1158
1158
  }
1159
1159
 
1160
- function select$F(luvio, params) {
1161
- return select$G();
1160
+ function select$I(luvio, params) {
1161
+ return select$J();
1162
1162
  }
1163
- function keyBuilder$x(luvio, params) {
1163
+ function keyBuilder$A(luvio, params) {
1164
1164
  return keyPrefix + '::AppCollectionRepresentation:(' + 'templateSourceId:' + params.queryParams.templateSourceId + ',' + 'templateSubtype:' + params.queryParams.templateSubtype + ',' + 'type:' + params.queryParams.type + ')';
1165
1165
  }
1166
- function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
1167
- getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$x(luvio, resourceParams));
1166
+ function getResponseCacheKeys$n(storeKeyMap, luvio, resourceParams, response) {
1167
+ getTypeCacheKeys$d(storeKeyMap, luvio, response, () => keyBuilder$A(luvio, resourceParams));
1168
1168
  }
1169
- function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
1169
+ function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
1170
1170
  const { body } = response;
1171
- const key = keyBuilder$x(luvio, resourceParams);
1172
- luvio.storeIngest(key, ingest$b, body);
1171
+ const key = keyBuilder$A(luvio, resourceParams);
1172
+ luvio.storeIngest(key, ingest$d, body);
1173
1173
  const snapshot = luvio.storeLookup({
1174
1174
  recordId: key,
1175
- node: select$F(),
1175
+ node: select$I(),
1176
1176
  variables: {},
1177
1177
  }, snapshotRefresh);
1178
1178
  if (process.env.NODE_ENV !== 'production') {
@@ -1183,19 +1183,19 @@ function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
1183
1183
  deepFreeze(snapshot.data);
1184
1184
  return snapshot;
1185
1185
  }
1186
- function ingestError$a(luvio, params, error, snapshotRefresh) {
1187
- const key = keyBuilder$x(luvio, params);
1186
+ function ingestError$b(luvio, params, error, snapshotRefresh) {
1187
+ const key = keyBuilder$A(luvio, params);
1188
1188
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1189
1189
  const storeMetadataParams = {
1190
- ttl: TTL$b,
1190
+ ttl: TTL$d,
1191
1191
  namespace: keyPrefix,
1192
- version: VERSION$m,
1193
- representationName: RepresentationType$b
1192
+ version: VERSION$o,
1193
+ representationName: RepresentationType$d
1194
1194
  };
1195
1195
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1196
1196
  return errorSnapshot;
1197
1197
  }
1198
- function createResourceRequest$m(config) {
1198
+ function createResourceRequest$n(config) {
1199
1199
  const headers = {};
1200
1200
  return {
1201
1201
  baseUri: '/services/data/v64.0',
@@ -1209,97 +1209,97 @@ function createResourceRequest$m(config) {
1209
1209
  };
1210
1210
  }
1211
1211
 
1212
- const adapterName$m = 'getApps';
1212
+ const adapterName$n = 'getApps';
1213
1213
  const getApps_ConfigPropertyMetadata = [
1214
1214
  generateParamConfigMetadata('templateSourceId', false, 1 /* QueryParameter */, 0 /* String */),
1215
1215
  generateParamConfigMetadata('templateSubtype', false, 1 /* QueryParameter */, 0 /* String */),
1216
1216
  generateParamConfigMetadata('type', false, 1 /* QueryParameter */, 0 /* String */),
1217
1217
  ];
1218
- const getApps_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, getApps_ConfigPropertyMetadata);
1219
- const createResourceParams$m = /*#__PURE__*/ createResourceParams$n(getApps_ConfigPropertyMetadata);
1220
- function keyBuilder$w(luvio, config) {
1221
- const resourceParams = createResourceParams$m(config);
1222
- return keyBuilder$x(luvio, resourceParams);
1218
+ const getApps_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, getApps_ConfigPropertyMetadata);
1219
+ const createResourceParams$n = /*#__PURE__*/ createResourceParams$o(getApps_ConfigPropertyMetadata);
1220
+ function keyBuilder$z(luvio, config) {
1221
+ const resourceParams = createResourceParams$n(config);
1222
+ return keyBuilder$A(luvio, resourceParams);
1223
1223
  }
1224
- function typeCheckConfig$m(untrustedConfig) {
1224
+ function typeCheckConfig$n(untrustedConfig) {
1225
1225
  const config = {};
1226
- typeCheckConfig$n(untrustedConfig, config, getApps_ConfigPropertyMetadata);
1226
+ typeCheckConfig$o(untrustedConfig, config, getApps_ConfigPropertyMetadata);
1227
1227
  return config;
1228
1228
  }
1229
- function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
1229
+ function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
1230
1230
  if (!untrustedIsObject(untrustedConfig)) {
1231
1231
  return null;
1232
1232
  }
1233
1233
  if (process.env.NODE_ENV !== 'production') {
1234
1234
  validateConfig(untrustedConfig, configPropertyNames);
1235
1235
  }
1236
- const config = typeCheckConfig$m(untrustedConfig);
1236
+ const config = typeCheckConfig$n(untrustedConfig);
1237
1237
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1238
1238
  return null;
1239
1239
  }
1240
1240
  return config;
1241
1241
  }
1242
- function adapterFragment$a(luvio, config) {
1243
- createResourceParams$m(config);
1244
- return select$F();
1242
+ function adapterFragment$b(luvio, config) {
1243
+ createResourceParams$n(config);
1244
+ return select$I();
1245
1245
  }
1246
- function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
1247
- const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
1246
+ function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
1247
+ const snapshot = ingestSuccess$k(luvio, resourceParams, response, {
1248
1248
  config,
1249
- resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
1249
+ resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
1250
1250
  });
1251
1251
  return luvio.storeBroadcast().then(() => snapshot);
1252
1252
  }
1253
- function onFetchResponseError$a(luvio, config, resourceParams, response) {
1254
- const snapshot = ingestError$a(luvio, resourceParams, response, {
1253
+ function onFetchResponseError$b(luvio, config, resourceParams, response) {
1254
+ const snapshot = ingestError$b(luvio, resourceParams, response, {
1255
1255
  config,
1256
- resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
1256
+ resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
1257
1257
  });
1258
1258
  return luvio.storeBroadcast().then(() => snapshot);
1259
1259
  }
1260
- function buildNetworkSnapshot$m(luvio, config, options) {
1261
- const resourceParams = createResourceParams$m(config);
1262
- const request = createResourceRequest$m(resourceParams);
1260
+ function buildNetworkSnapshot$n(luvio, config, options) {
1261
+ const resourceParams = createResourceParams$n(config);
1262
+ const request = createResourceRequest$n(resourceParams);
1263
1263
  return luvio.dispatchResourceRequest(request, options)
1264
1264
  .then((response) => {
1265
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
1265
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
1266
1266
  const cache = new StoreKeyMap();
1267
- getResponseCacheKeys$m(cache, luvio, resourceParams, response.body);
1267
+ getResponseCacheKeys$n(cache, luvio, resourceParams, response.body);
1268
1268
  return cache;
1269
1269
  });
1270
1270
  }, (response) => {
1271
- return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
1271
+ return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
1272
1272
  });
1273
1273
  }
1274
- function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
1275
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$m, undefined, false);
1274
+ function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
1275
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$n, undefined, false);
1276
1276
  }
1277
- function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
1277
+ function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
1278
1278
  const { luvio, config } = context;
1279
1279
  const selector = {
1280
- recordId: keyBuilder$w(luvio, config),
1281
- node: adapterFragment$a(luvio, config),
1280
+ recordId: keyBuilder$z(luvio, config),
1281
+ node: adapterFragment$b(luvio, config),
1282
1282
  variables: {},
1283
1283
  };
1284
1284
  const cacheSnapshot = storeLookup(selector, {
1285
1285
  config,
1286
- resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
1286
+ resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
1287
1287
  });
1288
1288
  return cacheSnapshot;
1289
1289
  }
1290
1290
  const getAppsAdapterFactory = (luvio) => function AppFramework__getApps(untrustedConfig, requestContext) {
1291
- const config = validateAdapterConfig$m(untrustedConfig, getApps_ConfigPropertyNames);
1291
+ const config = validateAdapterConfig$n(untrustedConfig, getApps_ConfigPropertyNames);
1292
1292
  // Invalid or incomplete config
1293
1293
  if (config === null) {
1294
1294
  return null;
1295
1295
  }
1296
1296
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1297
- buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
1297
+ buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
1298
1298
  };
1299
1299
 
1300
- const TTL$a = 5000;
1301
- const VERSION$l = "3cd3a4ce44c5f52cad5f810dd8ef6467";
1302
- function validate$r(obj, path = 'AppResultRepresentation') {
1300
+ const TTL$c = 5000;
1301
+ const VERSION$n = "3cd3a4ce44c5f52cad5f810dd8ef6467";
1302
+ function validate$t(obj, path = 'AppResultRepresentation') {
1303
1303
  const v_error = (() => {
1304
1304
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1305
1305
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1378,20 +1378,20 @@ function validate$r(obj, path = 'AppResultRepresentation') {
1378
1378
  })();
1379
1379
  return v_error === undefined ? null : v_error;
1380
1380
  }
1381
- const RepresentationType$a = 'AppResultRepresentation';
1382
- function keyBuilder$v(luvio, config) {
1383
- return keyPrefix + '::' + RepresentationType$a + ':' + config.id;
1381
+ const RepresentationType$c = 'AppResultRepresentation';
1382
+ function keyBuilder$y(luvio, config) {
1383
+ return keyPrefix + '::' + RepresentationType$c + ':' + config.id;
1384
1384
  }
1385
- function keyBuilderFromType$8(luvio, object) {
1385
+ function keyBuilderFromType$9(luvio, object) {
1386
1386
  const keyParams = {
1387
1387
  id: object.app.id
1388
1388
  };
1389
- return keyBuilder$v(luvio, keyParams);
1389
+ return keyBuilder$y(luvio, keyParams);
1390
1390
  }
1391
- function normalize$a(input, existing, path, luvio, store, timestamp) {
1391
+ function normalize$c(input, existing, path, luvio, store, timestamp) {
1392
1392
  const input_app = input.app;
1393
1393
  const input_app_id = path.fullPath + '__app';
1394
- input.app = ingest$c(input_app, {
1394
+ input.app = ingest$e(input_app, {
1395
1395
  fullPath: input_app_id,
1396
1396
  propertyName: 'app',
1397
1397
  parent: {
@@ -1403,16 +1403,16 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
1403
1403
  }, luvio, store, timestamp);
1404
1404
  return input;
1405
1405
  }
1406
- const select$E = function AppResultRepresentationSelect() {
1406
+ const select$H = function AppResultRepresentationSelect() {
1407
1407
  return {
1408
1408
  kind: 'Fragment',
1409
- version: VERSION$l,
1409
+ version: VERSION$n,
1410
1410
  private: [],
1411
1411
  selections: [
1412
1412
  {
1413
1413
  name: 'app',
1414
1414
  kind: 'Link',
1415
- fragment: select$H()
1415
+ fragment: select$K()
1416
1416
  },
1417
1417
  {
1418
1418
  name: 'failureMessage',
@@ -1430,7 +1430,7 @@ const select$E = function AppResultRepresentationSelect() {
1430
1430
  ]
1431
1431
  };
1432
1432
  };
1433
- function equals$l(existing, incoming) {
1433
+ function equals$n(existing, incoming) {
1434
1434
  const existing_app = existing.app;
1435
1435
  const incoming_app = incoming.app;
1436
1436
  if (!(existing_app.__ref === incoming_app.__ref)) {
@@ -1458,42 +1458,42 @@ function equals$l(existing, incoming) {
1458
1458
  }
1459
1459
  return true;
1460
1460
  }
1461
- const ingest$a = function AppResultRepresentationIngest(input, path, luvio, store, timestamp) {
1461
+ const ingest$c = function AppResultRepresentationIngest(input, path, luvio, store, timestamp) {
1462
1462
  if (process.env.NODE_ENV !== 'production') {
1463
- const validateError = validate$r(input);
1463
+ const validateError = validate$t(input);
1464
1464
  if (validateError !== null) {
1465
1465
  throw validateError;
1466
1466
  }
1467
1467
  }
1468
- const key = keyBuilderFromType$8(luvio, input);
1469
- const ttlToUse = TTL$a;
1470
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "AppFramework", VERSION$l, RepresentationType$a, equals$l);
1468
+ const key = keyBuilderFromType$9(luvio, input);
1469
+ const ttlToUse = TTL$c;
1470
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "AppFramework", VERSION$n, RepresentationType$c, equals$n);
1471
1471
  return createLink(key);
1472
1472
  };
1473
- function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
1473
+ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
1474
1474
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1475
- const rootKey = keyBuilderFromType$8(luvio, input);
1475
+ const rootKey = keyBuilderFromType$9(luvio, input);
1476
1476
  rootKeySet.set(rootKey, {
1477
1477
  namespace: keyPrefix,
1478
- representationName: RepresentationType$a,
1478
+ representationName: RepresentationType$c,
1479
1479
  mergeable: false
1480
1480
  });
1481
- getTypeCacheKeys$c(rootKeySet, luvio, input.app);
1481
+ getTypeCacheKeys$e(rootKeySet, luvio, input.app);
1482
1482
  }
1483
1483
 
1484
- function select$D(luvio, params) {
1485
- return select$E();
1484
+ function select$G(luvio, params) {
1485
+ return select$H();
1486
1486
  }
1487
- function getResponseCacheKeys$l(storeKeyMap, luvio, resourceParams, response) {
1488
- getTypeCacheKeys$a(storeKeyMap, luvio, response);
1487
+ function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
1488
+ getTypeCacheKeys$c(storeKeyMap, luvio, response);
1489
1489
  }
1490
- function ingestSuccess$i(luvio, resourceParams, response) {
1490
+ function ingestSuccess$j(luvio, resourceParams, response) {
1491
1491
  const { body } = response;
1492
- const key = keyBuilderFromType$8(luvio, body);
1493
- luvio.storeIngest(key, ingest$a, body);
1492
+ const key = keyBuilderFromType$9(luvio, body);
1493
+ luvio.storeIngest(key, ingest$c, body);
1494
1494
  const snapshot = luvio.storeLookup({
1495
1495
  recordId: key,
1496
- node: select$D(),
1496
+ node: select$G(),
1497
1497
  variables: {},
1498
1498
  });
1499
1499
  if (process.env.NODE_ENV !== 'production') {
@@ -1504,7 +1504,7 @@ function ingestSuccess$i(luvio, resourceParams, response) {
1504
1504
  deepFreeze(snapshot.data);
1505
1505
  return snapshot;
1506
1506
  }
1507
- function createResourceRequest$l(config) {
1507
+ function createResourceRequest$m(config) {
1508
1508
  const headers = {};
1509
1509
  return {
1510
1510
  baseUri: '/services/data/v64.0',
@@ -1518,7 +1518,7 @@ function createResourceRequest$l(config) {
1518
1518
  };
1519
1519
  }
1520
1520
 
1521
- const adapterName$l = 'createApp';
1521
+ const adapterName$m = 'createApp';
1522
1522
  const createApp_ConfigPropertyMetadata = [
1523
1523
  generateParamConfigMetadata('assetIcon', false, 2 /* Body */, 0 /* String */),
1524
1524
  generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
@@ -1533,11 +1533,11 @@ const createApp_ConfigPropertyMetadata = [
1533
1533
  generateParamConfigMetadata('templateVersion', false, 2 /* Body */, 0 /* String */),
1534
1534
  generateParamConfigMetadata('assetIds', false, 2 /* Body */, 0 /* String */, true),
1535
1535
  ];
1536
- const createApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, createApp_ConfigPropertyMetadata);
1537
- const createResourceParams$l = /*#__PURE__*/ createResourceParams$n(createApp_ConfigPropertyMetadata);
1538
- function typeCheckConfig$l(untrustedConfig) {
1536
+ const createApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, createApp_ConfigPropertyMetadata);
1537
+ const createResourceParams$m = /*#__PURE__*/ createResourceParams$o(createApp_ConfigPropertyMetadata);
1538
+ function typeCheckConfig$m(untrustedConfig) {
1539
1539
  const config = {};
1540
- typeCheckConfig$n(untrustedConfig, config, createApp_ConfigPropertyMetadata);
1540
+ typeCheckConfig$o(untrustedConfig, config, createApp_ConfigPropertyMetadata);
1541
1541
  const untrustedConfig_templateValues = untrustedConfig.templateValues;
1542
1542
  if (untrustedIsObject(untrustedConfig_templateValues)) {
1543
1543
  const untrustedConfig_templateValues_object = {};
@@ -1555,30 +1555,30 @@ function typeCheckConfig$l(untrustedConfig) {
1555
1555
  }
1556
1556
  return config;
1557
1557
  }
1558
- function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
1558
+ function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
1559
1559
  if (!untrustedIsObject(untrustedConfig)) {
1560
1560
  return null;
1561
1561
  }
1562
1562
  if (process.env.NODE_ENV !== 'production') {
1563
1563
  validateConfig(untrustedConfig, configPropertyNames);
1564
1564
  }
1565
- const config = typeCheckConfig$l(untrustedConfig);
1565
+ const config = typeCheckConfig$m(untrustedConfig);
1566
1566
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1567
1567
  return null;
1568
1568
  }
1569
1569
  return config;
1570
1570
  }
1571
- function buildNetworkSnapshot$l(luvio, config, options) {
1572
- const resourceParams = createResourceParams$l(config);
1573
- const request = createResourceRequest$l(resourceParams);
1571
+ function buildNetworkSnapshot$m(luvio, config, options) {
1572
+ const resourceParams = createResourceParams$m(config);
1573
+ const request = createResourceRequest$m(resourceParams);
1574
1574
  return luvio.dispatchResourceRequest(request, options)
1575
1575
  .then((response) => {
1576
1576
  return luvio.handleSuccessResponse(() => {
1577
- const snapshot = ingestSuccess$i(luvio, resourceParams, response);
1577
+ const snapshot = ingestSuccess$j(luvio, resourceParams, response);
1578
1578
  return luvio.storeBroadcast().then(() => snapshot);
1579
1579
  }, () => {
1580
1580
  const cache = new StoreKeyMap();
1581
- getResponseCacheKeys$l(cache, luvio, resourceParams, response.body);
1581
+ getResponseCacheKeys$m(cache, luvio, resourceParams, response.body);
1582
1582
  return cache;
1583
1583
  });
1584
1584
  }, (response) => {
@@ -1588,33 +1588,33 @@ function buildNetworkSnapshot$l(luvio, config, options) {
1588
1588
  }
1589
1589
  const createAppAdapterFactory = (luvio) => {
1590
1590
  return function createApp(untrustedConfig) {
1591
- const config = validateAdapterConfig$l(untrustedConfig, createApp_ConfigPropertyNames);
1591
+ const config = validateAdapterConfig$m(untrustedConfig, createApp_ConfigPropertyNames);
1592
1592
  // Invalid or incomplete config
1593
1593
  if (config === null) {
1594
1594
  throw new Error('Invalid config for "createApp"');
1595
1595
  }
1596
- return buildNetworkSnapshot$l(luvio, config);
1596
+ return buildNetworkSnapshot$m(luvio, config);
1597
1597
  };
1598
1598
  };
1599
1599
 
1600
- function keyBuilder$u(luvio, params) {
1601
- return keyBuilder$y(luvio, {
1600
+ function keyBuilder$x(luvio, params) {
1601
+ return keyBuilder$B(luvio, {
1602
1602
  id: params.urlParams.appIdOrApiName
1603
1603
  });
1604
1604
  }
1605
- function getResponseCacheKeys$k(cacheKeyMap, luvio, resourceParams) {
1606
- const key = keyBuilder$u(luvio, resourceParams);
1605
+ function getResponseCacheKeys$l(cacheKeyMap, luvio, resourceParams) {
1606
+ const key = keyBuilder$x(luvio, resourceParams);
1607
1607
  cacheKeyMap.set(key, {
1608
1608
  namespace: keyPrefix,
1609
- representationName: RepresentationType$c,
1609
+ representationName: RepresentationType$e,
1610
1610
  mergeable: false
1611
1611
  });
1612
1612
  }
1613
1613
  function evictSuccess$2(luvio, resourceParams) {
1614
- const key = keyBuilder$u(luvio, resourceParams);
1614
+ const key = keyBuilder$x(luvio, resourceParams);
1615
1615
  luvio.storeEvict(key);
1616
1616
  }
1617
- function createResourceRequest$k(config) {
1617
+ function createResourceRequest$l(config) {
1618
1618
  const headers = {};
1619
1619
  return {
1620
1620
  baseUri: '/services/data/v64.0',
@@ -1628,33 +1628,33 @@ function createResourceRequest$k(config) {
1628
1628
  };
1629
1629
  }
1630
1630
 
1631
- const adapterName$k = 'deleteApp';
1631
+ const adapterName$l = 'deleteApp';
1632
1632
  const deleteApp_ConfigPropertyMetadata = [
1633
1633
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1634
1634
  ];
1635
- const deleteApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, deleteApp_ConfigPropertyMetadata);
1636
- const createResourceParams$k = /*#__PURE__*/ createResourceParams$n(deleteApp_ConfigPropertyMetadata);
1637
- function typeCheckConfig$k(untrustedConfig) {
1635
+ const deleteApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, deleteApp_ConfigPropertyMetadata);
1636
+ const createResourceParams$l = /*#__PURE__*/ createResourceParams$o(deleteApp_ConfigPropertyMetadata);
1637
+ function typeCheckConfig$l(untrustedConfig) {
1638
1638
  const config = {};
1639
- typeCheckConfig$n(untrustedConfig, config, deleteApp_ConfigPropertyMetadata);
1639
+ typeCheckConfig$o(untrustedConfig, config, deleteApp_ConfigPropertyMetadata);
1640
1640
  return config;
1641
1641
  }
1642
- function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
1642
+ function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
1643
1643
  if (!untrustedIsObject(untrustedConfig)) {
1644
1644
  return null;
1645
1645
  }
1646
1646
  if (process.env.NODE_ENV !== 'production') {
1647
1647
  validateConfig(untrustedConfig, configPropertyNames);
1648
1648
  }
1649
- const config = typeCheckConfig$k(untrustedConfig);
1649
+ const config = typeCheckConfig$l(untrustedConfig);
1650
1650
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1651
1651
  return null;
1652
1652
  }
1653
1653
  return config;
1654
1654
  }
1655
- function buildNetworkSnapshot$k(luvio, config, options) {
1656
- const resourceParams = createResourceParams$k(config);
1657
- const request = createResourceRequest$k(resourceParams);
1655
+ function buildNetworkSnapshot$l(luvio, config, options) {
1656
+ const resourceParams = createResourceParams$l(config);
1657
+ const request = createResourceRequest$l(resourceParams);
1658
1658
  return luvio.dispatchResourceRequest(request, options)
1659
1659
  .then(() => {
1660
1660
  return luvio.handleSuccessResponse(() => {
@@ -1662,7 +1662,7 @@ function buildNetworkSnapshot$k(luvio, config, options) {
1662
1662
  return luvio.storeBroadcast();
1663
1663
  }, () => {
1664
1664
  const cache = new StoreKeyMap();
1665
- getResponseCacheKeys$k(cache, luvio, resourceParams);
1665
+ getResponseCacheKeys$l(cache, luvio, resourceParams);
1666
1666
  return cache;
1667
1667
  });
1668
1668
  }, (response) => {
@@ -1672,33 +1672,33 @@ function buildNetworkSnapshot$k(luvio, config, options) {
1672
1672
  }
1673
1673
  const deleteAppAdapterFactory = (luvio) => {
1674
1674
  return function AppFrameworkdeleteApp(untrustedConfig) {
1675
- const config = validateAdapterConfig$k(untrustedConfig, deleteApp_ConfigPropertyNames);
1675
+ const config = validateAdapterConfig$l(untrustedConfig, deleteApp_ConfigPropertyNames);
1676
1676
  // Invalid or incomplete config
1677
1677
  if (config === null) {
1678
- throw new Error(`Invalid config for "${adapterName$k}"`);
1678
+ throw new Error(`Invalid config for "${adapterName$l}"`);
1679
1679
  }
1680
- return buildNetworkSnapshot$k(luvio, config);
1680
+ return buildNetworkSnapshot$l(luvio, config);
1681
1681
  };
1682
1682
  };
1683
1683
 
1684
- function select$C(luvio, params) {
1685
- return select$H();
1684
+ function select$F(luvio, params) {
1685
+ return select$K();
1686
1686
  }
1687
- function keyBuilder$t(luvio, params) {
1688
- return keyBuilder$y(luvio, {
1687
+ function keyBuilder$w(luvio, params) {
1688
+ return keyBuilder$B(luvio, {
1689
1689
  id: params.urlParams.appIdOrApiName
1690
1690
  });
1691
1691
  }
1692
- function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
1693
- getTypeCacheKeys$c(storeKeyMap, luvio, response);
1692
+ function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
1693
+ getTypeCacheKeys$e(storeKeyMap, luvio, response);
1694
1694
  }
1695
- function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
1695
+ function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
1696
1696
  const { body } = response;
1697
- const key = keyBuilder$t(luvio, resourceParams);
1698
- luvio.storeIngest(key, ingest$c, body);
1697
+ const key = keyBuilder$w(luvio, resourceParams);
1698
+ luvio.storeIngest(key, ingest$e, body);
1699
1699
  const snapshot = luvio.storeLookup({
1700
1700
  recordId: key,
1701
- node: select$C(),
1701
+ node: select$F(),
1702
1702
  variables: {},
1703
1703
  }, snapshotRefresh);
1704
1704
  if (process.env.NODE_ENV !== 'production') {
@@ -1709,19 +1709,19 @@ function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
1709
1709
  deepFreeze(snapshot.data);
1710
1710
  return snapshot;
1711
1711
  }
1712
- function ingestError$9(luvio, params, error, snapshotRefresh) {
1713
- const key = keyBuilder$t(luvio, params);
1712
+ function ingestError$a(luvio, params, error, snapshotRefresh) {
1713
+ const key = keyBuilder$w(luvio, params);
1714
1714
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1715
1715
  const storeMetadataParams = {
1716
- ttl: TTL$c,
1716
+ ttl: TTL$e,
1717
1717
  namespace: keyPrefix,
1718
- version: VERSION$n,
1719
- representationName: RepresentationType$c
1718
+ version: VERSION$p,
1719
+ representationName: RepresentationType$e
1720
1720
  };
1721
1721
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1722
1722
  return errorSnapshot;
1723
1723
  }
1724
- function createResourceRequest$j(config) {
1724
+ function createResourceRequest$k(config) {
1725
1725
  const headers = {};
1726
1726
  return {
1727
1727
  baseUri: '/services/data/v64.0',
@@ -1735,105 +1735,105 @@ function createResourceRequest$j(config) {
1735
1735
  };
1736
1736
  }
1737
1737
 
1738
- const adapterName$j = 'getApp';
1738
+ const adapterName$k = 'getApp';
1739
1739
  const getApp_ConfigPropertyMetadata = [
1740
1740
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1741
1741
  ];
1742
- const getApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, getApp_ConfigPropertyMetadata);
1743
- const createResourceParams$j = /*#__PURE__*/ createResourceParams$n(getApp_ConfigPropertyMetadata);
1744
- function keyBuilder$s(luvio, config) {
1745
- const resourceParams = createResourceParams$j(config);
1746
- return keyBuilder$t(luvio, resourceParams);
1742
+ const getApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getApp_ConfigPropertyMetadata);
1743
+ const createResourceParams$k = /*#__PURE__*/ createResourceParams$o(getApp_ConfigPropertyMetadata);
1744
+ function keyBuilder$v(luvio, config) {
1745
+ const resourceParams = createResourceParams$k(config);
1746
+ return keyBuilder$w(luvio, resourceParams);
1747
1747
  }
1748
- function typeCheckConfig$j(untrustedConfig) {
1748
+ function typeCheckConfig$k(untrustedConfig) {
1749
1749
  const config = {};
1750
- typeCheckConfig$n(untrustedConfig, config, getApp_ConfigPropertyMetadata);
1750
+ typeCheckConfig$o(untrustedConfig, config, getApp_ConfigPropertyMetadata);
1751
1751
  return config;
1752
1752
  }
1753
- function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
1753
+ function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
1754
1754
  if (!untrustedIsObject(untrustedConfig)) {
1755
1755
  return null;
1756
1756
  }
1757
1757
  if (process.env.NODE_ENV !== 'production') {
1758
1758
  validateConfig(untrustedConfig, configPropertyNames);
1759
1759
  }
1760
- const config = typeCheckConfig$j(untrustedConfig);
1760
+ const config = typeCheckConfig$k(untrustedConfig);
1761
1761
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1762
1762
  return null;
1763
1763
  }
1764
1764
  return config;
1765
1765
  }
1766
- function adapterFragment$9(luvio, config) {
1767
- createResourceParams$j(config);
1768
- return select$C();
1766
+ function adapterFragment$a(luvio, config) {
1767
+ createResourceParams$k(config);
1768
+ return select$F();
1769
1769
  }
1770
- function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
1771
- const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
1770
+ function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
1771
+ const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
1772
1772
  config,
1773
- resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
1773
+ resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
1774
1774
  });
1775
1775
  return luvio.storeBroadcast().then(() => snapshot);
1776
1776
  }
1777
- function onFetchResponseError$9(luvio, config, resourceParams, response) {
1778
- const snapshot = ingestError$9(luvio, resourceParams, response, {
1777
+ function onFetchResponseError$a(luvio, config, resourceParams, response) {
1778
+ const snapshot = ingestError$a(luvio, resourceParams, response, {
1779
1779
  config,
1780
- resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
1780
+ resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
1781
1781
  });
1782
1782
  return luvio.storeBroadcast().then(() => snapshot);
1783
1783
  }
1784
- function buildNetworkSnapshot$j(luvio, config, options) {
1785
- const resourceParams = createResourceParams$j(config);
1786
- const request = createResourceRequest$j(resourceParams);
1784
+ function buildNetworkSnapshot$k(luvio, config, options) {
1785
+ const resourceParams = createResourceParams$k(config);
1786
+ const request = createResourceRequest$k(resourceParams);
1787
1787
  return luvio.dispatchResourceRequest(request, options)
1788
1788
  .then((response) => {
1789
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
1789
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
1790
1790
  const cache = new StoreKeyMap();
1791
- getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
1791
+ getResponseCacheKeys$k(cache, luvio, resourceParams, response.body);
1792
1792
  return cache;
1793
1793
  });
1794
1794
  }, (response) => {
1795
- return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
1795
+ return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
1796
1796
  });
1797
1797
  }
1798
- function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
1799
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
1798
+ function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
1799
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
1800
1800
  }
1801
- function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
1801
+ function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
1802
1802
  const { luvio, config } = context;
1803
1803
  const selector = {
1804
- recordId: keyBuilder$s(luvio, config),
1805
- node: adapterFragment$9(luvio, config),
1804
+ recordId: keyBuilder$v(luvio, config),
1805
+ node: adapterFragment$a(luvio, config),
1806
1806
  variables: {},
1807
1807
  };
1808
1808
  const cacheSnapshot = storeLookup(selector, {
1809
1809
  config,
1810
- resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
1810
+ resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
1811
1811
  });
1812
1812
  return cacheSnapshot;
1813
1813
  }
1814
1814
  const getAppAdapterFactory = (luvio) => function AppFramework__getApp(untrustedConfig, requestContext) {
1815
- const config = validateAdapterConfig$j(untrustedConfig, getApp_ConfigPropertyNames);
1815
+ const config = validateAdapterConfig$k(untrustedConfig, getApp_ConfigPropertyNames);
1816
1816
  // Invalid or incomplete config
1817
1817
  if (config === null) {
1818
1818
  return null;
1819
1819
  }
1820
1820
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1821
- buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
1821
+ buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
1822
1822
  };
1823
1823
 
1824
- function select$B(luvio, params) {
1825
- return select$E();
1824
+ function select$E(luvio, params) {
1825
+ return select$H();
1826
1826
  }
1827
- function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
1828
- getTypeCacheKeys$a(storeKeyMap, luvio, response);
1827
+ function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
1828
+ getTypeCacheKeys$c(storeKeyMap, luvio, response);
1829
1829
  }
1830
- function ingestSuccess$g(luvio, resourceParams, response) {
1830
+ function ingestSuccess$h(luvio, resourceParams, response) {
1831
1831
  const { body } = response;
1832
- const key = keyBuilderFromType$8(luvio, body);
1833
- luvio.storeIngest(key, ingest$a, body);
1832
+ const key = keyBuilderFromType$9(luvio, body);
1833
+ luvio.storeIngest(key, ingest$c, body);
1834
1834
  const snapshot = luvio.storeLookup({
1835
1835
  recordId: key,
1836
- node: select$B(),
1836
+ node: select$E(),
1837
1837
  variables: {},
1838
1838
  });
1839
1839
  if (process.env.NODE_ENV !== 'production') {
@@ -1844,7 +1844,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
1844
1844
  deepFreeze(snapshot.data);
1845
1845
  return snapshot;
1846
1846
  }
1847
- function createResourceRequest$i(config) {
1847
+ function createResourceRequest$j(config) {
1848
1848
  const headers = {};
1849
1849
  return {
1850
1850
  baseUri: '/services/data/v64.0',
@@ -1858,7 +1858,7 @@ function createResourceRequest$i(config) {
1858
1858
  };
1859
1859
  }
1860
1860
 
1861
- const adapterName$i = 'updateApp';
1861
+ const adapterName$j = 'updateApp';
1862
1862
  const updateApp_ConfigPropertyMetadata = [
1863
1863
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1864
1864
  generateParamConfigMetadata('logLevel', false, 2 /* Body */, 0 /* String */),
@@ -1866,11 +1866,11 @@ const updateApp_ConfigPropertyMetadata = [
1866
1866
  generateParamConfigMetadata('templateSourceId', true, 2 /* Body */, 0 /* String */),
1867
1867
  generateParamConfigMetadata('templateValues', false, 2 /* Body */, 4 /* Unsupported */),
1868
1868
  ];
1869
- const updateApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, updateApp_ConfigPropertyMetadata);
1870
- const createResourceParams$i = /*#__PURE__*/ createResourceParams$n(updateApp_ConfigPropertyMetadata);
1871
- function typeCheckConfig$i(untrustedConfig) {
1869
+ const updateApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, updateApp_ConfigPropertyMetadata);
1870
+ const createResourceParams$j = /*#__PURE__*/ createResourceParams$o(updateApp_ConfigPropertyMetadata);
1871
+ function typeCheckConfig$j(untrustedConfig) {
1872
1872
  const config = {};
1873
- typeCheckConfig$n(untrustedConfig, config, updateApp_ConfigPropertyMetadata);
1873
+ typeCheckConfig$o(untrustedConfig, config, updateApp_ConfigPropertyMetadata);
1874
1874
  const untrustedConfig_templateValues = untrustedConfig.templateValues;
1875
1875
  if (untrustedIsObject(untrustedConfig_templateValues)) {
1876
1876
  const untrustedConfig_templateValues_object = {};
@@ -1888,30 +1888,30 @@ function typeCheckConfig$i(untrustedConfig) {
1888
1888
  }
1889
1889
  return config;
1890
1890
  }
1891
- function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
1891
+ function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
1892
1892
  if (!untrustedIsObject(untrustedConfig)) {
1893
1893
  return null;
1894
1894
  }
1895
1895
  if (process.env.NODE_ENV !== 'production') {
1896
1896
  validateConfig(untrustedConfig, configPropertyNames);
1897
1897
  }
1898
- const config = typeCheckConfig$i(untrustedConfig);
1898
+ const config = typeCheckConfig$j(untrustedConfig);
1899
1899
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1900
1900
  return null;
1901
1901
  }
1902
1902
  return config;
1903
1903
  }
1904
- function buildNetworkSnapshot$i(luvio, config, options) {
1905
- const resourceParams = createResourceParams$i(config);
1906
- const request = createResourceRequest$i(resourceParams);
1904
+ function buildNetworkSnapshot$j(luvio, config, options) {
1905
+ const resourceParams = createResourceParams$j(config);
1906
+ const request = createResourceRequest$j(resourceParams);
1907
1907
  return luvio.dispatchResourceRequest(request, options)
1908
1908
  .then((response) => {
1909
1909
  return luvio.handleSuccessResponse(() => {
1910
- const snapshot = ingestSuccess$g(luvio, resourceParams, response);
1910
+ const snapshot = ingestSuccess$h(luvio, resourceParams, response);
1911
1911
  return luvio.storeBroadcast().then(() => snapshot);
1912
1912
  }, () => {
1913
1913
  const cache = new StoreKeyMap();
1914
- getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
1914
+ getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
1915
1915
  return cache;
1916
1916
  });
1917
1917
  }, (response) => {
@@ -1921,18 +1921,18 @@ function buildNetworkSnapshot$i(luvio, config, options) {
1921
1921
  }
1922
1922
  const updateAppAdapterFactory = (luvio) => {
1923
1923
  return function updateApp(untrustedConfig) {
1924
- const config = validateAdapterConfig$i(untrustedConfig, updateApp_ConfigPropertyNames);
1924
+ const config = validateAdapterConfig$j(untrustedConfig, updateApp_ConfigPropertyNames);
1925
1925
  // Invalid or incomplete config
1926
1926
  if (config === null) {
1927
1927
  throw new Error('Invalid config for "updateApp"');
1928
1928
  }
1929
- return buildNetworkSnapshot$i(luvio, config);
1929
+ return buildNetworkSnapshot$j(luvio, config);
1930
1930
  };
1931
1931
  };
1932
1932
 
1933
- const TTL$9 = 5000;
1934
- const VERSION$k = "b8e879a936b5069ec247355c66198ca7";
1935
- function validate$q(obj, path = 'AppActivityItemRepresentation') {
1933
+ const TTL$b = 5000;
1934
+ const VERSION$m = "b8e879a936b5069ec247355c66198ca7";
1935
+ function validate$s(obj, path = 'AppActivityItemRepresentation') {
1936
1936
  const v_error = (() => {
1937
1937
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1938
1938
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1974,24 +1974,24 @@ function validate$q(obj, path = 'AppActivityItemRepresentation') {
1974
1974
  })();
1975
1975
  return v_error === undefined ? null : v_error;
1976
1976
  }
1977
- const RepresentationType$9 = 'AppActivityItemRepresentation';
1978
- function keyBuilder$r(luvio, config) {
1979
- return keyPrefix + '::' + RepresentationType$9 + ':' + config.appId + ':' + config.id;
1977
+ const RepresentationType$b = 'AppActivityItemRepresentation';
1978
+ function keyBuilder$u(luvio, config) {
1979
+ return keyPrefix + '::' + RepresentationType$b + ':' + config.appId + ':' + config.id;
1980
1980
  }
1981
- function keyBuilderFromType$7(luvio, object) {
1981
+ function keyBuilderFromType$8(luvio, object) {
1982
1982
  const keyParams = {
1983
1983
  appId: object.appId,
1984
1984
  id: object.id
1985
1985
  };
1986
- return keyBuilder$r(luvio, keyParams);
1986
+ return keyBuilder$u(luvio, keyParams);
1987
1987
  }
1988
- function normalize$9(input, existing, path, luvio, store, timestamp) {
1988
+ function normalize$b(input, existing, path, luvio, store, timestamp) {
1989
1989
  return input;
1990
1990
  }
1991
- const select$A = function AppActivityItemRepresentationSelect() {
1991
+ const select$D = function AppActivityItemRepresentationSelect() {
1992
1992
  return {
1993
1993
  kind: 'Fragment',
1994
- version: VERSION$k,
1994
+ version: VERSION$m,
1995
1995
  private: [],
1996
1996
  selections: [
1997
1997
  {
@@ -2018,7 +2018,7 @@ const select$A = function AppActivityItemRepresentationSelect() {
2018
2018
  ]
2019
2019
  };
2020
2020
  };
2021
- function equals$k(existing, incoming) {
2021
+ function equals$m(existing, incoming) {
2022
2022
  const existing_activityType = existing.activityType;
2023
2023
  const incoming_activityType = incoming.activityType;
2024
2024
  if (!(existing_activityType === incoming_activityType)) {
@@ -2051,31 +2051,31 @@ function equals$k(existing, incoming) {
2051
2051
  }
2052
2052
  return true;
2053
2053
  }
2054
- const ingest$9 = function AppActivityItemRepresentationIngest(input, path, luvio, store, timestamp) {
2054
+ const ingest$b = function AppActivityItemRepresentationIngest(input, path, luvio, store, timestamp) {
2055
2055
  if (process.env.NODE_ENV !== 'production') {
2056
- const validateError = validate$q(input);
2056
+ const validateError = validate$s(input);
2057
2057
  if (validateError !== null) {
2058
2058
  throw validateError;
2059
2059
  }
2060
2060
  }
2061
- const key = keyBuilderFromType$7(luvio, input);
2062
- const ttlToUse = TTL$9;
2063
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "AppFramework", VERSION$k, RepresentationType$9, equals$k);
2061
+ const key = keyBuilderFromType$8(luvio, input);
2062
+ const ttlToUse = TTL$b;
2063
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "AppFramework", VERSION$m, RepresentationType$b, equals$m);
2064
2064
  return createLink(key);
2065
2065
  };
2066
- function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
2066
+ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
2067
2067
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2068
- const rootKey = keyBuilderFromType$7(luvio, input);
2068
+ const rootKey = keyBuilderFromType$8(luvio, input);
2069
2069
  rootKeySet.set(rootKey, {
2070
2070
  namespace: keyPrefix,
2071
- representationName: RepresentationType$9,
2071
+ representationName: RepresentationType$b,
2072
2072
  mergeable: false
2073
2073
  });
2074
2074
  }
2075
2075
 
2076
- const TTL$8 = 5000;
2077
- const VERSION$j = "e0f049ec23678e696fb7c592c9641c65";
2078
- function validate$p(obj, path = 'AppActivityCollectionRepresentation') {
2076
+ const TTL$a = 5000;
2077
+ const VERSION$l = "e0f049ec23678e696fb7c592c9641c65";
2078
+ function validate$r(obj, path = 'AppActivityCollectionRepresentation') {
2079
2079
  const v_error = (() => {
2080
2080
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2081
2081
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2100,23 +2100,23 @@ function validate$p(obj, path = 'AppActivityCollectionRepresentation') {
2100
2100
  })();
2101
2101
  return v_error === undefined ? null : v_error;
2102
2102
  }
2103
- const RepresentationType$8 = 'AppActivityCollectionRepresentation';
2104
- function keyBuilder$q(luvio, config) {
2105
- return keyPrefix + '::' + RepresentationType$8 + ':' + config.appId;
2103
+ const RepresentationType$a = 'AppActivityCollectionRepresentation';
2104
+ function keyBuilder$t(luvio, config) {
2105
+ return keyPrefix + '::' + RepresentationType$a + ':' + config.appId;
2106
2106
  }
2107
- function keyBuilderFromType$6(luvio, object) {
2107
+ function keyBuilderFromType$7(luvio, object) {
2108
2108
  const keyParams = {
2109
2109
  appId: object.appId
2110
2110
  };
2111
- return keyBuilder$q(luvio, keyParams);
2111
+ return keyBuilder$t(luvio, keyParams);
2112
2112
  }
2113
- function normalize$8(input, existing, path, luvio, store, timestamp) {
2113
+ function normalize$a(input, existing, path, luvio, store, timestamp) {
2114
2114
  const input_items = input.items;
2115
2115
  const input_items_id = path.fullPath + '__items';
2116
2116
  for (let i = 0; i < input_items.length; i++) {
2117
2117
  const input_items_item = input_items[i];
2118
2118
  let input_items_item_id = input_items_id + '__' + i;
2119
- input_items[i] = ingest$9(input_items_item, {
2119
+ input_items[i] = ingest$b(input_items_item, {
2120
2120
  fullPath: input_items_item_id,
2121
2121
  propertyName: i,
2122
2122
  parent: {
@@ -2129,10 +2129,10 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
2129
2129
  }
2130
2130
  return input;
2131
2131
  }
2132
- const select$z = function AppActivityCollectionRepresentationSelect() {
2132
+ const select$C = function AppActivityCollectionRepresentationSelect() {
2133
2133
  return {
2134
2134
  kind: 'Fragment',
2135
- version: VERSION$j,
2135
+ version: VERSION$l,
2136
2136
  private: [],
2137
2137
  selections: [
2138
2138
  {
@@ -2143,12 +2143,12 @@ const select$z = function AppActivityCollectionRepresentationSelect() {
2143
2143
  name: 'items',
2144
2144
  kind: 'Link',
2145
2145
  plural: true,
2146
- fragment: select$A()
2146
+ fragment: select$D()
2147
2147
  }
2148
2148
  ]
2149
2149
  };
2150
2150
  };
2151
- function equals$j(existing, incoming) {
2151
+ function equals$l(existing, incoming) {
2152
2152
  const existing_appId = existing.appId;
2153
2153
  const incoming_appId = incoming.appId;
2154
2154
  if (!(existing_appId === incoming_appId)) {
@@ -2166,50 +2166,50 @@ function equals$j(existing, incoming) {
2166
2166
  }
2167
2167
  return true;
2168
2168
  }
2169
- const ingest$8 = function AppActivityCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2169
+ const ingest$a = function AppActivityCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2170
2170
  if (process.env.NODE_ENV !== 'production') {
2171
- const validateError = validate$p(input);
2171
+ const validateError = validate$r(input);
2172
2172
  if (validateError !== null) {
2173
2173
  throw validateError;
2174
2174
  }
2175
2175
  }
2176
- const key = keyBuilderFromType$6(luvio, input);
2177
- const ttlToUse = TTL$8;
2178
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "AppFramework", VERSION$j, RepresentationType$8, equals$j);
2176
+ const key = keyBuilderFromType$7(luvio, input);
2177
+ const ttlToUse = TTL$a;
2178
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "AppFramework", VERSION$l, RepresentationType$a, equals$l);
2179
2179
  return createLink(key);
2180
2180
  };
2181
- function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
2181
+ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
2182
2182
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2183
- const rootKey = keyBuilderFromType$6(luvio, input);
2183
+ const rootKey = keyBuilderFromType$7(luvio, input);
2184
2184
  rootKeySet.set(rootKey, {
2185
2185
  namespace: keyPrefix,
2186
- representationName: RepresentationType$8,
2186
+ representationName: RepresentationType$a,
2187
2187
  mergeable: false
2188
2188
  });
2189
2189
  const input_items_length = input.items.length;
2190
2190
  for (let i = 0; i < input_items_length; i++) {
2191
- getTypeCacheKeys$9(rootKeySet, luvio, input.items[i]);
2191
+ getTypeCacheKeys$b(rootKeySet, luvio, input.items[i]);
2192
2192
  }
2193
2193
  }
2194
2194
 
2195
- function select$y(luvio, params) {
2196
- return select$z();
2195
+ function select$B(luvio, params) {
2196
+ return select$C();
2197
2197
  }
2198
- function keyBuilder$p(luvio, params) {
2199
- return keyBuilder$q(luvio, {
2198
+ function keyBuilder$s(luvio, params) {
2199
+ return keyBuilder$t(luvio, {
2200
2200
  appId: params.urlParams.appIdOrApiName
2201
2201
  });
2202
2202
  }
2203
- function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
2204
- getTypeCacheKeys$8(storeKeyMap, luvio, response);
2203
+ function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
2204
+ getTypeCacheKeys$a(storeKeyMap, luvio, response);
2205
2205
  }
2206
- function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
2206
+ function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
2207
2207
  const { body } = response;
2208
- const key = keyBuilder$p(luvio, resourceParams);
2209
- luvio.storeIngest(key, ingest$8, body);
2208
+ const key = keyBuilder$s(luvio, resourceParams);
2209
+ luvio.storeIngest(key, ingest$a, body);
2210
2210
  const snapshot = luvio.storeLookup({
2211
2211
  recordId: key,
2212
- node: select$y(),
2212
+ node: select$B(),
2213
2213
  variables: {},
2214
2214
  }, snapshotRefresh);
2215
2215
  if (process.env.NODE_ENV !== 'production') {
@@ -2220,19 +2220,19 @@ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
2220
2220
  deepFreeze(snapshot.data);
2221
2221
  return snapshot;
2222
2222
  }
2223
- function ingestError$8(luvio, params, error, snapshotRefresh) {
2224
- const key = keyBuilder$p(luvio, params);
2223
+ function ingestError$9(luvio, params, error, snapshotRefresh) {
2224
+ const key = keyBuilder$s(luvio, params);
2225
2225
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2226
2226
  const storeMetadataParams = {
2227
- ttl: TTL$8,
2227
+ ttl: TTL$a,
2228
2228
  namespace: keyPrefix,
2229
- version: VERSION$j,
2230
- representationName: RepresentationType$8
2229
+ version: VERSION$l,
2230
+ representationName: RepresentationType$a
2231
2231
  };
2232
2232
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2233
2233
  return errorSnapshot;
2234
2234
  }
2235
- function createResourceRequest$h(config) {
2235
+ function createResourceRequest$i(config) {
2236
2236
  const headers = {};
2237
2237
  return {
2238
2238
  baseUri: '/services/data/v64.0',
@@ -2246,111 +2246,111 @@ function createResourceRequest$h(config) {
2246
2246
  };
2247
2247
  }
2248
2248
 
2249
- const adapterName$h = 'getAppActivities';
2249
+ const adapterName$i = 'getAppActivities';
2250
2250
  const getAppActivities_ConfigPropertyMetadata = [
2251
2251
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2252
2252
  ];
2253
- const getAppActivities_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getAppActivities_ConfigPropertyMetadata);
2254
- const createResourceParams$h = /*#__PURE__*/ createResourceParams$n(getAppActivities_ConfigPropertyMetadata);
2255
- function keyBuilder$o(luvio, config) {
2256
- const resourceParams = createResourceParams$h(config);
2257
- return keyBuilder$p(luvio, resourceParams);
2253
+ const getAppActivities_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getAppActivities_ConfigPropertyMetadata);
2254
+ const createResourceParams$i = /*#__PURE__*/ createResourceParams$o(getAppActivities_ConfigPropertyMetadata);
2255
+ function keyBuilder$r(luvio, config) {
2256
+ const resourceParams = createResourceParams$i(config);
2257
+ return keyBuilder$s(luvio, resourceParams);
2258
2258
  }
2259
- function typeCheckConfig$h(untrustedConfig) {
2259
+ function typeCheckConfig$i(untrustedConfig) {
2260
2260
  const config = {};
2261
- typeCheckConfig$n(untrustedConfig, config, getAppActivities_ConfigPropertyMetadata);
2261
+ typeCheckConfig$o(untrustedConfig, config, getAppActivities_ConfigPropertyMetadata);
2262
2262
  return config;
2263
2263
  }
2264
- function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
2264
+ function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
2265
2265
  if (!untrustedIsObject(untrustedConfig)) {
2266
2266
  return null;
2267
2267
  }
2268
2268
  if (process.env.NODE_ENV !== 'production') {
2269
2269
  validateConfig(untrustedConfig, configPropertyNames);
2270
2270
  }
2271
- const config = typeCheckConfig$h(untrustedConfig);
2271
+ const config = typeCheckConfig$i(untrustedConfig);
2272
2272
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2273
2273
  return null;
2274
2274
  }
2275
2275
  return config;
2276
2276
  }
2277
- function adapterFragment$8(luvio, config) {
2278
- createResourceParams$h(config);
2279
- return select$y();
2277
+ function adapterFragment$9(luvio, config) {
2278
+ createResourceParams$i(config);
2279
+ return select$B();
2280
2280
  }
2281
- function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
2282
- const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
2281
+ function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
2282
+ const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
2283
2283
  config,
2284
- resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
2284
+ resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
2285
2285
  });
2286
2286
  return luvio.storeBroadcast().then(() => snapshot);
2287
2287
  }
2288
- function onFetchResponseError$8(luvio, config, resourceParams, response) {
2289
- const snapshot = ingestError$8(luvio, resourceParams, response, {
2288
+ function onFetchResponseError$9(luvio, config, resourceParams, response) {
2289
+ const snapshot = ingestError$9(luvio, resourceParams, response, {
2290
2290
  config,
2291
- resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
2291
+ resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
2292
2292
  });
2293
2293
  return luvio.storeBroadcast().then(() => snapshot);
2294
2294
  }
2295
- function buildNetworkSnapshot$h(luvio, config, options) {
2296
- const resourceParams = createResourceParams$h(config);
2297
- const request = createResourceRequest$h(resourceParams);
2295
+ function buildNetworkSnapshot$i(luvio, config, options) {
2296
+ const resourceParams = createResourceParams$i(config);
2297
+ const request = createResourceRequest$i(resourceParams);
2298
2298
  return luvio.dispatchResourceRequest(request, options)
2299
2299
  .then((response) => {
2300
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
2300
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
2301
2301
  const cache = new StoreKeyMap();
2302
- getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
2302
+ getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
2303
2303
  return cache;
2304
2304
  });
2305
2305
  }, (response) => {
2306
- return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
2306
+ return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
2307
2307
  });
2308
2308
  }
2309
- function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
2310
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
2309
+ function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
2310
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
2311
2311
  }
2312
- function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
2312
+ function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
2313
2313
  const { luvio, config } = context;
2314
2314
  const selector = {
2315
- recordId: keyBuilder$o(luvio, config),
2316
- node: adapterFragment$8(luvio, config),
2315
+ recordId: keyBuilder$r(luvio, config),
2316
+ node: adapterFragment$9(luvio, config),
2317
2317
  variables: {},
2318
2318
  };
2319
2319
  const cacheSnapshot = storeLookup(selector, {
2320
2320
  config,
2321
- resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
2321
+ resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
2322
2322
  });
2323
2323
  return cacheSnapshot;
2324
2324
  }
2325
2325
  const getAppActivitiesAdapterFactory = (luvio) => function AppFramework__getAppActivities(untrustedConfig, requestContext) {
2326
- const config = validateAdapterConfig$h(untrustedConfig, getAppActivities_ConfigPropertyNames);
2326
+ const config = validateAdapterConfig$i(untrustedConfig, getAppActivities_ConfigPropertyNames);
2327
2327
  // Invalid or incomplete config
2328
2328
  if (config === null) {
2329
2329
  return null;
2330
2330
  }
2331
2331
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2332
- buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
2332
+ buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
2333
2333
  };
2334
2334
 
2335
- function select$x(luvio, params) {
2336
- return select$A();
2335
+ function select$A(luvio, params) {
2336
+ return select$D();
2337
2337
  }
2338
- function keyBuilder$n(luvio, params) {
2339
- return keyBuilder$r(luvio, {
2338
+ function keyBuilder$q(luvio, params) {
2339
+ return keyBuilder$u(luvio, {
2340
2340
  appId: params.urlParams.appIdOrApiName,
2341
2341
  id: params.urlParams.id
2342
2342
  });
2343
2343
  }
2344
- function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
2345
- getTypeCacheKeys$9(storeKeyMap, luvio, response);
2344
+ function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
2345
+ getTypeCacheKeys$b(storeKeyMap, luvio, response);
2346
2346
  }
2347
- function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
2347
+ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
2348
2348
  const { body } = response;
2349
- const key = keyBuilder$n(luvio, resourceParams);
2350
- luvio.storeIngest(key, ingest$9, body);
2349
+ const key = keyBuilder$q(luvio, resourceParams);
2350
+ luvio.storeIngest(key, ingest$b, body);
2351
2351
  const snapshot = luvio.storeLookup({
2352
2352
  recordId: key,
2353
- node: select$x(),
2353
+ node: select$A(),
2354
2354
  variables: {},
2355
2355
  }, snapshotRefresh);
2356
2356
  if (process.env.NODE_ENV !== 'production') {
@@ -2361,19 +2361,19 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
2361
2361
  deepFreeze(snapshot.data);
2362
2362
  return snapshot;
2363
2363
  }
2364
- function ingestError$7(luvio, params, error, snapshotRefresh) {
2365
- const key = keyBuilder$n(luvio, params);
2364
+ function ingestError$8(luvio, params, error, snapshotRefresh) {
2365
+ const key = keyBuilder$q(luvio, params);
2366
2366
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2367
2367
  const storeMetadataParams = {
2368
- ttl: TTL$9,
2368
+ ttl: TTL$b,
2369
2369
  namespace: keyPrefix,
2370
- version: VERSION$k,
2371
- representationName: RepresentationType$9
2370
+ version: VERSION$m,
2371
+ representationName: RepresentationType$b
2372
2372
  };
2373
2373
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2374
2374
  return errorSnapshot;
2375
2375
  }
2376
- function createResourceRequest$g(config) {
2376
+ function createResourceRequest$h(config) {
2377
2377
  const headers = {};
2378
2378
  return {
2379
2379
  baseUri: '/services/data/v64.0',
@@ -2387,96 +2387,96 @@ function createResourceRequest$g(config) {
2387
2387
  };
2388
2388
  }
2389
2389
 
2390
- const adapterName$g = 'getAppActivity';
2390
+ const adapterName$h = 'getAppActivity';
2391
2391
  const getAppActivity_ConfigPropertyMetadata = [
2392
2392
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2393
2393
  generateParamConfigMetadata('id', true, 0 /* UrlParameter */, 0 /* String */),
2394
2394
  ];
2395
- const getAppActivity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getAppActivity_ConfigPropertyMetadata);
2396
- const createResourceParams$g = /*#__PURE__*/ createResourceParams$n(getAppActivity_ConfigPropertyMetadata);
2397
- function keyBuilder$m(luvio, config) {
2398
- const resourceParams = createResourceParams$g(config);
2399
- return keyBuilder$n(luvio, resourceParams);
2395
+ const getAppActivity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getAppActivity_ConfigPropertyMetadata);
2396
+ const createResourceParams$h = /*#__PURE__*/ createResourceParams$o(getAppActivity_ConfigPropertyMetadata);
2397
+ function keyBuilder$p(luvio, config) {
2398
+ const resourceParams = createResourceParams$h(config);
2399
+ return keyBuilder$q(luvio, resourceParams);
2400
2400
  }
2401
- function typeCheckConfig$g(untrustedConfig) {
2401
+ function typeCheckConfig$h(untrustedConfig) {
2402
2402
  const config = {};
2403
- typeCheckConfig$n(untrustedConfig, config, getAppActivity_ConfigPropertyMetadata);
2403
+ typeCheckConfig$o(untrustedConfig, config, getAppActivity_ConfigPropertyMetadata);
2404
2404
  return config;
2405
2405
  }
2406
- function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
2406
+ function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
2407
2407
  if (!untrustedIsObject(untrustedConfig)) {
2408
2408
  return null;
2409
2409
  }
2410
2410
  if (process.env.NODE_ENV !== 'production') {
2411
2411
  validateConfig(untrustedConfig, configPropertyNames);
2412
2412
  }
2413
- const config = typeCheckConfig$g(untrustedConfig);
2413
+ const config = typeCheckConfig$h(untrustedConfig);
2414
2414
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2415
2415
  return null;
2416
2416
  }
2417
2417
  return config;
2418
2418
  }
2419
- function adapterFragment$7(luvio, config) {
2420
- createResourceParams$g(config);
2421
- return select$x();
2419
+ function adapterFragment$8(luvio, config) {
2420
+ createResourceParams$h(config);
2421
+ return select$A();
2422
2422
  }
2423
- function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
2424
- const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
2423
+ function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
2424
+ const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
2425
2425
  config,
2426
- resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
2426
+ resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
2427
2427
  });
2428
2428
  return luvio.storeBroadcast().then(() => snapshot);
2429
2429
  }
2430
- function onFetchResponseError$7(luvio, config, resourceParams, response) {
2431
- const snapshot = ingestError$7(luvio, resourceParams, response, {
2430
+ function onFetchResponseError$8(luvio, config, resourceParams, response) {
2431
+ const snapshot = ingestError$8(luvio, resourceParams, response, {
2432
2432
  config,
2433
- resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
2433
+ resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
2434
2434
  });
2435
2435
  return luvio.storeBroadcast().then(() => snapshot);
2436
2436
  }
2437
- function buildNetworkSnapshot$g(luvio, config, options) {
2438
- const resourceParams = createResourceParams$g(config);
2439
- const request = createResourceRequest$g(resourceParams);
2437
+ function buildNetworkSnapshot$h(luvio, config, options) {
2438
+ const resourceParams = createResourceParams$h(config);
2439
+ const request = createResourceRequest$h(resourceParams);
2440
2440
  return luvio.dispatchResourceRequest(request, options)
2441
2441
  .then((response) => {
2442
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
2442
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
2443
2443
  const cache = new StoreKeyMap();
2444
- getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
2444
+ getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
2445
2445
  return cache;
2446
2446
  });
2447
2447
  }, (response) => {
2448
- return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
2448
+ return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
2449
2449
  });
2450
2450
  }
2451
- function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
2452
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
2451
+ function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
2452
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
2453
2453
  }
2454
- function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
2454
+ function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
2455
2455
  const { luvio, config } = context;
2456
2456
  const selector = {
2457
- recordId: keyBuilder$m(luvio, config),
2458
- node: adapterFragment$7(luvio, config),
2457
+ recordId: keyBuilder$p(luvio, config),
2458
+ node: adapterFragment$8(luvio, config),
2459
2459
  variables: {},
2460
2460
  };
2461
2461
  const cacheSnapshot = storeLookup(selector, {
2462
2462
  config,
2463
- resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
2463
+ resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
2464
2464
  });
2465
2465
  return cacheSnapshot;
2466
2466
  }
2467
2467
  const getAppActivityAdapterFactory = (luvio) => function AppFramework__getAppActivity(untrustedConfig, requestContext) {
2468
- const config = validateAdapterConfig$g(untrustedConfig, getAppActivity_ConfigPropertyNames);
2468
+ const config = validateAdapterConfig$h(untrustedConfig, getAppActivity_ConfigPropertyNames);
2469
2469
  // Invalid or incomplete config
2470
2470
  if (config === null) {
2471
2471
  return null;
2472
2472
  }
2473
2473
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2474
- buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
2474
+ buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
2475
2475
  };
2476
2476
 
2477
- const TTL$7 = 5000;
2478
- const VERSION$i = "b91a35834fb34f4f6cede2d5dc29dc5d";
2479
- function validate$o(obj, path = 'AssetRepresentation') {
2477
+ const TTL$9 = 5000;
2478
+ const VERSION$k = "b91a35834fb34f4f6cede2d5dc29dc5d";
2479
+ function validate$q(obj, path = 'AssetRepresentation') {
2480
2480
  const v_error = (() => {
2481
2481
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2482
2482
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2629,23 +2629,23 @@ function validate$o(obj, path = 'AssetRepresentation') {
2629
2629
  })();
2630
2630
  return v_error === undefined ? null : v_error;
2631
2631
  }
2632
- const RepresentationType$7 = 'AssetRepresentation';
2633
- function keyBuilder$l(luvio, config) {
2634
- return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
2632
+ const RepresentationType$9 = 'AssetRepresentation';
2633
+ function keyBuilder$o(luvio, config) {
2634
+ return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
2635
2635
  }
2636
- function keyBuilderFromType$5(luvio, object) {
2636
+ function keyBuilderFromType$6(luvio, object) {
2637
2637
  const keyParams = {
2638
2638
  id: object.id
2639
2639
  };
2640
- return keyBuilder$l(luvio, keyParams);
2640
+ return keyBuilder$o(luvio, keyParams);
2641
2641
  }
2642
- function normalize$7(input, existing, path, luvio, store, timestamp) {
2642
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
2643
2643
  return input;
2644
2644
  }
2645
- const select$w = function AssetRepresentationSelect() {
2645
+ const select$z = function AssetRepresentationSelect() {
2646
2646
  return {
2647
2647
  kind: 'Fragment',
2648
- version: VERSION$i,
2648
+ version: VERSION$k,
2649
2649
  private: [],
2650
2650
  selections: [
2651
2651
  {
@@ -2683,7 +2683,7 @@ const select$w = function AssetRepresentationSelect() {
2683
2683
  ]
2684
2684
  };
2685
2685
  };
2686
- function equals$i(existing, incoming) {
2686
+ function equals$k(existing, incoming) {
2687
2687
  const existing_appId = existing.appId;
2688
2688
  const incoming_appId = incoming.appId;
2689
2689
  if (!(existing_appId === incoming_appId)) {
@@ -2726,31 +2726,31 @@ function equals$i(existing, incoming) {
2726
2726
  }
2727
2727
  return true;
2728
2728
  }
2729
- const ingest$7 = function AssetRepresentationIngest(input, path, luvio, store, timestamp) {
2729
+ const ingest$9 = function AssetRepresentationIngest(input, path, luvio, store, timestamp) {
2730
2730
  if (process.env.NODE_ENV !== 'production') {
2731
- const validateError = validate$o(input);
2731
+ const validateError = validate$q(input);
2732
2732
  if (validateError !== null) {
2733
2733
  throw validateError;
2734
2734
  }
2735
2735
  }
2736
- const key = keyBuilderFromType$5(luvio, input);
2737
- const ttlToUse = TTL$7;
2738
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "AppFramework", VERSION$i, RepresentationType$7, equals$i);
2736
+ const key = keyBuilderFromType$6(luvio, input);
2737
+ const ttlToUse = TTL$9;
2738
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "AppFramework", VERSION$k, RepresentationType$9, equals$k);
2739
2739
  return createLink(key);
2740
2740
  };
2741
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
2741
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
2742
2742
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2743
- const rootKey = keyBuilderFromType$5(luvio, input);
2743
+ const rootKey = keyBuilderFromType$6(luvio, input);
2744
2744
  rootKeySet.set(rootKey, {
2745
2745
  namespace: keyPrefix,
2746
- representationName: RepresentationType$7,
2746
+ representationName: RepresentationType$9,
2747
2747
  mergeable: false
2748
2748
  });
2749
2749
  }
2750
2750
 
2751
- const TTL$6 = 5000;
2752
- const VERSION$h = "1a10175fcc2ad43823e47bfbbdf917f6";
2753
- function validate$n(obj, path = 'AssetCollectionRepresentation') {
2751
+ const TTL$8 = 5000;
2752
+ const VERSION$j = "1a10175fcc2ad43823e47bfbbdf917f6";
2753
+ function validate$p(obj, path = 'AssetCollectionRepresentation') {
2754
2754
  const v_error = (() => {
2755
2755
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2756
2756
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2775,23 +2775,23 @@ function validate$n(obj, path = 'AssetCollectionRepresentation') {
2775
2775
  })();
2776
2776
  return v_error === undefined ? null : v_error;
2777
2777
  }
2778
- const RepresentationType$6 = 'AssetCollectionRepresentation';
2779
- function keyBuilder$k(luvio, config) {
2780
- return keyPrefix + '::' + RepresentationType$6 + ':' + config.appId;
2778
+ const RepresentationType$8 = 'AssetCollectionRepresentation';
2779
+ function keyBuilder$n(luvio, config) {
2780
+ return keyPrefix + '::' + RepresentationType$8 + ':' + config.appId;
2781
2781
  }
2782
- function keyBuilderFromType$4(luvio, object) {
2782
+ function keyBuilderFromType$5(luvio, object) {
2783
2783
  const keyParams = {
2784
2784
  appId: object.appId
2785
2785
  };
2786
- return keyBuilder$k(luvio, keyParams);
2786
+ return keyBuilder$n(luvio, keyParams);
2787
2787
  }
2788
- function normalize$6(input, existing, path, luvio, store, timestamp) {
2788
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
2789
2789
  const input_assets = input.assets;
2790
2790
  const input_assets_id = path.fullPath + '__assets';
2791
2791
  for (let i = 0; i < input_assets.length; i++) {
2792
2792
  const input_assets_item = input_assets[i];
2793
2793
  let input_assets_item_id = input_assets_id + '__' + i;
2794
- input_assets[i] = ingest$7(input_assets_item, {
2794
+ input_assets[i] = ingest$9(input_assets_item, {
2795
2795
  fullPath: input_assets_item_id,
2796
2796
  propertyName: i,
2797
2797
  parent: {
@@ -2804,10 +2804,10 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
2804
2804
  }
2805
2805
  return input;
2806
2806
  }
2807
- const select$v = function AssetCollectionRepresentationSelect() {
2807
+ const select$y = function AssetCollectionRepresentationSelect() {
2808
2808
  return {
2809
2809
  kind: 'Fragment',
2810
- version: VERSION$h,
2810
+ version: VERSION$j,
2811
2811
  private: [],
2812
2812
  selections: [
2813
2813
  {
@@ -2818,12 +2818,12 @@ const select$v = function AssetCollectionRepresentationSelect() {
2818
2818
  name: 'assets',
2819
2819
  kind: 'Link',
2820
2820
  plural: true,
2821
- fragment: select$w()
2821
+ fragment: select$z()
2822
2822
  }
2823
2823
  ]
2824
2824
  };
2825
2825
  };
2826
- function equals$h(existing, incoming) {
2826
+ function equals$j(existing, incoming) {
2827
2827
  const existing_appId = existing.appId;
2828
2828
  const incoming_appId = incoming.appId;
2829
2829
  if (!(existing_appId === incoming_appId)) {
@@ -2841,50 +2841,50 @@ function equals$h(existing, incoming) {
2841
2841
  }
2842
2842
  return true;
2843
2843
  }
2844
- const ingest$6 = function AssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2844
+ const ingest$8 = function AssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2845
2845
  if (process.env.NODE_ENV !== 'production') {
2846
- const validateError = validate$n(input);
2846
+ const validateError = validate$p(input);
2847
2847
  if (validateError !== null) {
2848
2848
  throw validateError;
2849
2849
  }
2850
2850
  }
2851
- const key = keyBuilderFromType$4(luvio, input);
2852
- const ttlToUse = TTL$6;
2853
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "AppFramework", VERSION$h, RepresentationType$6, equals$h);
2851
+ const key = keyBuilderFromType$5(luvio, input);
2852
+ const ttlToUse = TTL$8;
2853
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "AppFramework", VERSION$j, RepresentationType$8, equals$j);
2854
2854
  return createLink(key);
2855
2855
  };
2856
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
2856
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
2857
2857
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2858
- const rootKey = keyBuilderFromType$4(luvio, input);
2858
+ const rootKey = keyBuilderFromType$5(luvio, input);
2859
2859
  rootKeySet.set(rootKey, {
2860
2860
  namespace: keyPrefix,
2861
- representationName: RepresentationType$6,
2861
+ representationName: RepresentationType$8,
2862
2862
  mergeable: false
2863
2863
  });
2864
2864
  const input_assets_length = input.assets.length;
2865
2865
  for (let i = 0; i < input_assets_length; i++) {
2866
- getTypeCacheKeys$7(rootKeySet, luvio, input.assets[i]);
2866
+ getTypeCacheKeys$9(rootKeySet, luvio, input.assets[i]);
2867
2867
  }
2868
2868
  }
2869
2869
 
2870
- function select$u(luvio, params) {
2871
- return select$v();
2870
+ function select$x(luvio, params) {
2871
+ return select$y();
2872
2872
  }
2873
- function keyBuilder$j(luvio, params) {
2874
- return keyBuilder$k(luvio, {
2873
+ function keyBuilder$m(luvio, params) {
2874
+ return keyBuilder$n(luvio, {
2875
2875
  appId: params.urlParams.appIdOrApiName
2876
2876
  });
2877
2877
  }
2878
- function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
2879
- getTypeCacheKeys$6(storeKeyMap, luvio, response);
2878
+ function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
2879
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
2880
2880
  }
2881
- function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
2881
+ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
2882
2882
  const { body } = response;
2883
- const key = keyBuilder$j(luvio, resourceParams);
2884
- luvio.storeIngest(key, ingest$6, body);
2883
+ const key = keyBuilder$m(luvio, resourceParams);
2884
+ luvio.storeIngest(key, ingest$8, body);
2885
2885
  const snapshot = luvio.storeLookup({
2886
2886
  recordId: key,
2887
- node: select$u(),
2887
+ node: select$x(),
2888
2888
  variables: {},
2889
2889
  }, snapshotRefresh);
2890
2890
  if (process.env.NODE_ENV !== 'production') {
@@ -2895,19 +2895,19 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
2895
2895
  deepFreeze(snapshot.data);
2896
2896
  return snapshot;
2897
2897
  }
2898
- function ingestError$6(luvio, params, error, snapshotRefresh) {
2899
- const key = keyBuilder$j(luvio, params);
2898
+ function ingestError$7(luvio, params, error, snapshotRefresh) {
2899
+ const key = keyBuilder$m(luvio, params);
2900
2900
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2901
2901
  const storeMetadataParams = {
2902
- ttl: TTL$6,
2902
+ ttl: TTL$8,
2903
2903
  namespace: keyPrefix,
2904
- version: VERSION$h,
2905
- representationName: RepresentationType$6
2904
+ version: VERSION$j,
2905
+ representationName: RepresentationType$8
2906
2906
  };
2907
2907
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2908
2908
  return errorSnapshot;
2909
2909
  }
2910
- function createResourceRequest$f(config) {
2910
+ function createResourceRequest$g(config) {
2911
2911
  const headers = {};
2912
2912
  return {
2913
2913
  baseUri: '/services/data/v64.0',
@@ -2921,107 +2921,107 @@ function createResourceRequest$f(config) {
2921
2921
  };
2922
2922
  }
2923
2923
 
2924
- const adapterName$f = 'getAppAssets';
2924
+ const adapterName$g = 'getAppAssets';
2925
2925
  const getAppAssets_ConfigPropertyMetadata = [
2926
2926
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2927
2927
  generateParamConfigMetadata('assetType', false, 1 /* QueryParameter */, 0 /* String */),
2928
2928
  generateParamConfigMetadata('templateAssetName', false, 1 /* QueryParameter */, 0 /* String */),
2929
2929
  ];
2930
- const getAppAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getAppAssets_ConfigPropertyMetadata);
2931
- const createResourceParams$f = /*#__PURE__*/ createResourceParams$n(getAppAssets_ConfigPropertyMetadata);
2932
- function keyBuilder$i(luvio, config) {
2933
- const resourceParams = createResourceParams$f(config);
2934
- return keyBuilder$j(luvio, resourceParams);
2930
+ const getAppAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getAppAssets_ConfigPropertyMetadata);
2931
+ const createResourceParams$g = /*#__PURE__*/ createResourceParams$o(getAppAssets_ConfigPropertyMetadata);
2932
+ function keyBuilder$l(luvio, config) {
2933
+ const resourceParams = createResourceParams$g(config);
2934
+ return keyBuilder$m(luvio, resourceParams);
2935
2935
  }
2936
- function typeCheckConfig$f(untrustedConfig) {
2936
+ function typeCheckConfig$g(untrustedConfig) {
2937
2937
  const config = {};
2938
- typeCheckConfig$n(untrustedConfig, config, getAppAssets_ConfigPropertyMetadata);
2938
+ typeCheckConfig$o(untrustedConfig, config, getAppAssets_ConfigPropertyMetadata);
2939
2939
  return config;
2940
2940
  }
2941
- function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
2941
+ function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
2942
2942
  if (!untrustedIsObject(untrustedConfig)) {
2943
2943
  return null;
2944
2944
  }
2945
2945
  if (process.env.NODE_ENV !== 'production') {
2946
2946
  validateConfig(untrustedConfig, configPropertyNames);
2947
2947
  }
2948
- const config = typeCheckConfig$f(untrustedConfig);
2948
+ const config = typeCheckConfig$g(untrustedConfig);
2949
2949
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2950
2950
  return null;
2951
2951
  }
2952
2952
  return config;
2953
2953
  }
2954
- function adapterFragment$6(luvio, config) {
2955
- createResourceParams$f(config);
2956
- return select$u();
2954
+ function adapterFragment$7(luvio, config) {
2955
+ createResourceParams$g(config);
2956
+ return select$x();
2957
2957
  }
2958
- function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
2959
- const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
2958
+ function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
2959
+ const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
2960
2960
  config,
2961
- resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
2961
+ resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
2962
2962
  });
2963
2963
  return luvio.storeBroadcast().then(() => snapshot);
2964
2964
  }
2965
- function onFetchResponseError$6(luvio, config, resourceParams, response) {
2966
- const snapshot = ingestError$6(luvio, resourceParams, response, {
2965
+ function onFetchResponseError$7(luvio, config, resourceParams, response) {
2966
+ const snapshot = ingestError$7(luvio, resourceParams, response, {
2967
2967
  config,
2968
- resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
2968
+ resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
2969
2969
  });
2970
2970
  return luvio.storeBroadcast().then(() => snapshot);
2971
2971
  }
2972
- function buildNetworkSnapshot$f(luvio, config, options) {
2973
- const resourceParams = createResourceParams$f(config);
2974
- const request = createResourceRequest$f(resourceParams);
2972
+ function buildNetworkSnapshot$g(luvio, config, options) {
2973
+ const resourceParams = createResourceParams$g(config);
2974
+ const request = createResourceRequest$g(resourceParams);
2975
2975
  return luvio.dispatchResourceRequest(request, options)
2976
2976
  .then((response) => {
2977
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
2977
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
2978
2978
  const cache = new StoreKeyMap();
2979
- getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
2979
+ getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
2980
2980
  return cache;
2981
2981
  });
2982
2982
  }, (response) => {
2983
- return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
2983
+ return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
2984
2984
  });
2985
2985
  }
2986
- function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
2987
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
2986
+ function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
2987
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
2988
2988
  }
2989
- function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
2989
+ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
2990
2990
  const { luvio, config } = context;
2991
2991
  const selector = {
2992
- recordId: keyBuilder$i(luvio, config),
2993
- node: adapterFragment$6(luvio, config),
2992
+ recordId: keyBuilder$l(luvio, config),
2993
+ node: adapterFragment$7(luvio, config),
2994
2994
  variables: {},
2995
2995
  };
2996
2996
  const cacheSnapshot = storeLookup(selector, {
2997
2997
  config,
2998
- resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
2998
+ resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
2999
2999
  });
3000
3000
  return cacheSnapshot;
3001
3001
  }
3002
3002
  const getAppAssetsAdapterFactory = (luvio) => function AppFramework__getAppAssets(untrustedConfig, requestContext) {
3003
- const config = validateAdapterConfig$f(untrustedConfig, getAppAssets_ConfigPropertyNames);
3003
+ const config = validateAdapterConfig$g(untrustedConfig, getAppAssets_ConfigPropertyNames);
3004
3004
  // Invalid or incomplete config
3005
3005
  if (config === null) {
3006
3006
  return null;
3007
3007
  }
3008
3008
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3009
- buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
3009
+ buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
3010
3010
  };
3011
3011
 
3012
- function select$t(luvio, params) {
3013
- return select$w();
3012
+ function select$w(luvio, params) {
3013
+ return select$z();
3014
3014
  }
3015
- function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
3016
- getTypeCacheKeys$7(storeKeyMap, luvio, response);
3015
+ function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
3016
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
3017
3017
  }
3018
- function ingestSuccess$c(luvio, resourceParams, response) {
3018
+ function ingestSuccess$d(luvio, resourceParams, response) {
3019
3019
  const { body } = response;
3020
- const key = keyBuilderFromType$5(luvio, body);
3021
- luvio.storeIngest(key, ingest$7, body);
3020
+ const key = keyBuilderFromType$6(luvio, body);
3021
+ luvio.storeIngest(key, ingest$9, body);
3022
3022
  const snapshot = luvio.storeLookup({
3023
3023
  recordId: key,
3024
- node: select$t(),
3024
+ node: select$w(),
3025
3025
  variables: {},
3026
3026
  });
3027
3027
  if (process.env.NODE_ENV !== 'production') {
@@ -3032,7 +3032,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
3032
3032
  deepFreeze(snapshot.data);
3033
3033
  return snapshot;
3034
3034
  }
3035
- function createResourceRequest$e(config) {
3035
+ function createResourceRequest$f(config) {
3036
3036
  const headers = {};
3037
3037
  return {
3038
3038
  baseUri: '/services/data/v64.0',
@@ -3046,7 +3046,7 @@ function createResourceRequest$e(config) {
3046
3046
  };
3047
3047
  }
3048
3048
 
3049
- const adapterName$e = 'createAppAsset';
3049
+ const adapterName$f = 'createAppAsset';
3050
3050
  const createAppAsset_ConfigPropertyMetadata = [
3051
3051
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
3052
3052
  generateParamConfigMetadata('appId', false, 2 /* Body */, 0 /* String */),
@@ -3057,11 +3057,11 @@ const createAppAsset_ConfigPropertyMetadata = [
3057
3057
  generateParamConfigMetadata('templateSourceId', false, 2 /* Body */, 4 /* Unsupported */),
3058
3058
  generateParamConfigMetadata('type', false, 2 /* Body */, 4 /* Unsupported */),
3059
3059
  ];
3060
- const createAppAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, createAppAsset_ConfigPropertyMetadata);
3061
- const createResourceParams$e = /*#__PURE__*/ createResourceParams$n(createAppAsset_ConfigPropertyMetadata);
3062
- function typeCheckConfig$e(untrustedConfig) {
3060
+ const createAppAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, createAppAsset_ConfigPropertyMetadata);
3061
+ const createResourceParams$f = /*#__PURE__*/ createResourceParams$o(createAppAsset_ConfigPropertyMetadata);
3062
+ function typeCheckConfig$f(untrustedConfig) {
3063
3063
  const config = {};
3064
- typeCheckConfig$n(untrustedConfig, config, createAppAsset_ConfigPropertyMetadata);
3064
+ typeCheckConfig$o(untrustedConfig, config, createAppAsset_ConfigPropertyMetadata);
3065
3065
  const untrustedConfig_assetIdOrName2 = untrustedConfig.assetIdOrName2;
3066
3066
  if (typeof untrustedConfig_assetIdOrName2 === 'string') {
3067
3067
  config.assetIdOrName2 = untrustedConfig_assetIdOrName2;
@@ -3099,30 +3099,30 @@ function typeCheckConfig$e(untrustedConfig) {
3099
3099
  }
3100
3100
  return config;
3101
3101
  }
3102
- function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
3102
+ function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
3103
3103
  if (!untrustedIsObject(untrustedConfig)) {
3104
3104
  return null;
3105
3105
  }
3106
3106
  if (process.env.NODE_ENV !== 'production') {
3107
3107
  validateConfig(untrustedConfig, configPropertyNames);
3108
3108
  }
3109
- const config = typeCheckConfig$e(untrustedConfig);
3109
+ const config = typeCheckConfig$f(untrustedConfig);
3110
3110
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3111
3111
  return null;
3112
3112
  }
3113
3113
  return config;
3114
3114
  }
3115
- function buildNetworkSnapshot$e(luvio, config, options) {
3116
- const resourceParams = createResourceParams$e(config);
3117
- const request = createResourceRequest$e(resourceParams);
3115
+ function buildNetworkSnapshot$f(luvio, config, options) {
3116
+ const resourceParams = createResourceParams$f(config);
3117
+ const request = createResourceRequest$f(resourceParams);
3118
3118
  return luvio.dispatchResourceRequest(request, options)
3119
3119
  .then((response) => {
3120
3120
  return luvio.handleSuccessResponse(() => {
3121
- const snapshot = ingestSuccess$c(luvio, resourceParams, response);
3121
+ const snapshot = ingestSuccess$d(luvio, resourceParams, response);
3122
3122
  return luvio.storeBroadcast().then(() => snapshot);
3123
3123
  }, () => {
3124
3124
  const cache = new StoreKeyMap();
3125
- getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
3125
+ getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
3126
3126
  return cache;
3127
3127
  });
3128
3128
  }, (response) => {
@@ -3132,34 +3132,34 @@ function buildNetworkSnapshot$e(luvio, config, options) {
3132
3132
  }
3133
3133
  const createAppAssetAdapterFactory = (luvio) => {
3134
3134
  return function createAppAsset(untrustedConfig) {
3135
- const config = validateAdapterConfig$e(untrustedConfig, createAppAsset_ConfigPropertyNames);
3135
+ const config = validateAdapterConfig$f(untrustedConfig, createAppAsset_ConfigPropertyNames);
3136
3136
  // Invalid or incomplete config
3137
3137
  if (config === null) {
3138
3138
  throw new Error('Invalid config for "createAppAsset"');
3139
3139
  }
3140
- return buildNetworkSnapshot$e(luvio, config);
3140
+ return buildNetworkSnapshot$f(luvio, config);
3141
3141
  };
3142
3142
  };
3143
3143
 
3144
- function select$s(luvio, params) {
3145
- return select$w();
3144
+ function select$v(luvio, params) {
3145
+ return select$z();
3146
3146
  }
3147
- function keyBuilder$h(luvio, params) {
3148
- return keyBuilder$l(luvio, {
3147
+ function keyBuilder$k(luvio, params) {
3148
+ return keyBuilder$o(luvio, {
3149
3149
  appId: params.urlParams.appIdOrApiName,
3150
3150
  id: params.urlParams.appAssetId
3151
3151
  });
3152
3152
  }
3153
- function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
3154
- getTypeCacheKeys$7(storeKeyMap, luvio, response);
3153
+ function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
3154
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
3155
3155
  }
3156
- function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
3156
+ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
3157
3157
  const { body } = response;
3158
- const key = keyBuilder$h(luvio, resourceParams);
3159
- luvio.storeIngest(key, ingest$7, body);
3158
+ const key = keyBuilder$k(luvio, resourceParams);
3159
+ luvio.storeIngest(key, ingest$9, body);
3160
3160
  const snapshot = luvio.storeLookup({
3161
3161
  recordId: key,
3162
- node: select$s(),
3162
+ node: select$v(),
3163
3163
  variables: {},
3164
3164
  }, snapshotRefresh);
3165
3165
  if (process.env.NODE_ENV !== 'production') {
@@ -3170,19 +3170,19 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
3170
3170
  deepFreeze(snapshot.data);
3171
3171
  return snapshot;
3172
3172
  }
3173
- function ingestError$5(luvio, params, error, snapshotRefresh) {
3174
- const key = keyBuilder$h(luvio, params);
3173
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
3174
+ const key = keyBuilder$k(luvio, params);
3175
3175
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3176
3176
  const storeMetadataParams = {
3177
- ttl: TTL$7,
3177
+ ttl: TTL$9,
3178
3178
  namespace: keyPrefix,
3179
- version: VERSION$i,
3180
- representationName: RepresentationType$7
3179
+ version: VERSION$k,
3180
+ representationName: RepresentationType$9
3181
3181
  };
3182
3182
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3183
3183
  return errorSnapshot;
3184
3184
  }
3185
- function createResourceRequest$d(config) {
3185
+ function createResourceRequest$e(config) {
3186
3186
  const headers = {};
3187
3187
  return {
3188
3188
  baseUri: '/services/data/v64.0',
@@ -3196,112 +3196,112 @@ function createResourceRequest$d(config) {
3196
3196
  };
3197
3197
  }
3198
3198
 
3199
- const adapterName$d = 'getAppAsset';
3199
+ const adapterName$e = 'getAppAsset';
3200
3200
  const getAppAsset_ConfigPropertyMetadata = [
3201
3201
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
3202
3202
  generateParamConfigMetadata('appAssetId', true, 0 /* UrlParameter */, 0 /* String */),
3203
3203
  ];
3204
- const getAppAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getAppAsset_ConfigPropertyMetadata);
3205
- const createResourceParams$d = /*#__PURE__*/ createResourceParams$n(getAppAsset_ConfigPropertyMetadata);
3206
- function keyBuilder$g(luvio, config) {
3207
- const resourceParams = createResourceParams$d(config);
3208
- return keyBuilder$h(luvio, resourceParams);
3204
+ const getAppAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getAppAsset_ConfigPropertyMetadata);
3205
+ const createResourceParams$e = /*#__PURE__*/ createResourceParams$o(getAppAsset_ConfigPropertyMetadata);
3206
+ function keyBuilder$j(luvio, config) {
3207
+ const resourceParams = createResourceParams$e(config);
3208
+ return keyBuilder$k(luvio, resourceParams);
3209
3209
  }
3210
- function typeCheckConfig$d(untrustedConfig) {
3210
+ function typeCheckConfig$e(untrustedConfig) {
3211
3211
  const config = {};
3212
- typeCheckConfig$n(untrustedConfig, config, getAppAsset_ConfigPropertyMetadata);
3212
+ typeCheckConfig$o(untrustedConfig, config, getAppAsset_ConfigPropertyMetadata);
3213
3213
  return config;
3214
3214
  }
3215
- function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
3215
+ function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
3216
3216
  if (!untrustedIsObject(untrustedConfig)) {
3217
3217
  return null;
3218
3218
  }
3219
3219
  if (process.env.NODE_ENV !== 'production') {
3220
3220
  validateConfig(untrustedConfig, configPropertyNames);
3221
3221
  }
3222
- const config = typeCheckConfig$d(untrustedConfig);
3222
+ const config = typeCheckConfig$e(untrustedConfig);
3223
3223
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3224
3224
  return null;
3225
3225
  }
3226
3226
  return config;
3227
3227
  }
3228
- function adapterFragment$5(luvio, config) {
3229
- createResourceParams$d(config);
3230
- return select$s();
3228
+ function adapterFragment$6(luvio, config) {
3229
+ createResourceParams$e(config);
3230
+ return select$v();
3231
3231
  }
3232
- function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
3233
- const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
3232
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
3233
+ const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
3234
3234
  config,
3235
- resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
3235
+ resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
3236
3236
  });
3237
3237
  return luvio.storeBroadcast().then(() => snapshot);
3238
3238
  }
3239
- function onFetchResponseError$5(luvio, config, resourceParams, response) {
3240
- const snapshot = ingestError$5(luvio, resourceParams, response, {
3239
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
3240
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
3241
3241
  config,
3242
- resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
3242
+ resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
3243
3243
  });
3244
3244
  return luvio.storeBroadcast().then(() => snapshot);
3245
3245
  }
3246
- function buildNetworkSnapshot$d(luvio, config, options) {
3247
- const resourceParams = createResourceParams$d(config);
3248
- const request = createResourceRequest$d(resourceParams);
3246
+ function buildNetworkSnapshot$e(luvio, config, options) {
3247
+ const resourceParams = createResourceParams$e(config);
3248
+ const request = createResourceRequest$e(resourceParams);
3249
3249
  return luvio.dispatchResourceRequest(request, options)
3250
3250
  .then((response) => {
3251
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
3251
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
3252
3252
  const cache = new StoreKeyMap();
3253
- getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
3253
+ getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
3254
3254
  return cache;
3255
3255
  });
3256
3256
  }, (response) => {
3257
- return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
3257
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
3258
3258
  });
3259
3259
  }
3260
- function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
3261
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
3260
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
3261
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
3262
3262
  }
3263
- function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
3263
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
3264
3264
  const { luvio, config } = context;
3265
3265
  const selector = {
3266
- recordId: keyBuilder$g(luvio, config),
3267
- node: adapterFragment$5(luvio, config),
3266
+ recordId: keyBuilder$j(luvio, config),
3267
+ node: adapterFragment$6(luvio, config),
3268
3268
  variables: {},
3269
3269
  };
3270
3270
  const cacheSnapshot = storeLookup(selector, {
3271
3271
  config,
3272
- resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
3272
+ resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
3273
3273
  });
3274
3274
  return cacheSnapshot;
3275
3275
  }
3276
3276
  const getAppAssetAdapterFactory = (luvio) => function AppFramework__getAppAsset(untrustedConfig, requestContext) {
3277
- const config = validateAdapterConfig$d(untrustedConfig, getAppAsset_ConfigPropertyNames);
3277
+ const config = validateAdapterConfig$e(untrustedConfig, getAppAsset_ConfigPropertyNames);
3278
3278
  // Invalid or incomplete config
3279
3279
  if (config === null) {
3280
3280
  return null;
3281
3281
  }
3282
3282
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3283
- buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
3283
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
3284
3284
  };
3285
3285
 
3286
- function keyBuilder$f(luvio, params) {
3287
- return keyBuilder$l(luvio, {
3286
+ function keyBuilder$i(luvio, params) {
3287
+ return keyBuilder$o(luvio, {
3288
3288
  appId: params.urlParams.appIdOrApiName,
3289
3289
  id: params.urlParams.appAssetId
3290
3290
  });
3291
3291
  }
3292
- function getResponseCacheKeys$c(cacheKeyMap, luvio, resourceParams) {
3293
- const key = keyBuilder$f(luvio, resourceParams);
3292
+ function getResponseCacheKeys$d(cacheKeyMap, luvio, resourceParams) {
3293
+ const key = keyBuilder$i(luvio, resourceParams);
3294
3294
  cacheKeyMap.set(key, {
3295
3295
  namespace: keyPrefix,
3296
- representationName: RepresentationType$7,
3296
+ representationName: RepresentationType$9,
3297
3297
  mergeable: false
3298
3298
  });
3299
3299
  }
3300
3300
  function evictSuccess$1(luvio, resourceParams) {
3301
- const key = keyBuilder$f(luvio, resourceParams);
3301
+ const key = keyBuilder$i(luvio, resourceParams);
3302
3302
  luvio.storeEvict(key);
3303
3303
  }
3304
- function createResourceRequest$c(config) {
3304
+ function createResourceRequest$d(config) {
3305
3305
  const headers = {};
3306
3306
  return {
3307
3307
  baseUri: '/services/data/v64.0',
@@ -3315,34 +3315,34 @@ function createResourceRequest$c(config) {
3315
3315
  };
3316
3316
  }
3317
3317
 
3318
- const adapterName$c = 'deleteAppAsset';
3318
+ const adapterName$d = 'deleteAppAsset';
3319
3319
  const deleteAppAsset_ConfigPropertyMetadata = [
3320
3320
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
3321
3321
  generateParamConfigMetadata('appAssetId', true, 0 /* UrlParameter */, 0 /* String */),
3322
3322
  ];
3323
- const deleteAppAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteAppAsset_ConfigPropertyMetadata);
3324
- const createResourceParams$c = /*#__PURE__*/ createResourceParams$n(deleteAppAsset_ConfigPropertyMetadata);
3325
- function typeCheckConfig$c(untrustedConfig) {
3323
+ const deleteAppAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, deleteAppAsset_ConfigPropertyMetadata);
3324
+ const createResourceParams$d = /*#__PURE__*/ createResourceParams$o(deleteAppAsset_ConfigPropertyMetadata);
3325
+ function typeCheckConfig$d(untrustedConfig) {
3326
3326
  const config = {};
3327
- typeCheckConfig$n(untrustedConfig, config, deleteAppAsset_ConfigPropertyMetadata);
3327
+ typeCheckConfig$o(untrustedConfig, config, deleteAppAsset_ConfigPropertyMetadata);
3328
3328
  return config;
3329
3329
  }
3330
- function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
3330
+ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
3331
3331
  if (!untrustedIsObject(untrustedConfig)) {
3332
3332
  return null;
3333
3333
  }
3334
3334
  if (process.env.NODE_ENV !== 'production') {
3335
3335
  validateConfig(untrustedConfig, configPropertyNames);
3336
3336
  }
3337
- const config = typeCheckConfig$c(untrustedConfig);
3337
+ const config = typeCheckConfig$d(untrustedConfig);
3338
3338
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3339
3339
  return null;
3340
3340
  }
3341
3341
  return config;
3342
3342
  }
3343
- function buildNetworkSnapshot$c(luvio, config, options) {
3344
- const resourceParams = createResourceParams$c(config);
3345
- const request = createResourceRequest$c(resourceParams);
3343
+ function buildNetworkSnapshot$d(luvio, config, options) {
3344
+ const resourceParams = createResourceParams$d(config);
3345
+ const request = createResourceRequest$d(resourceParams);
3346
3346
  return luvio.dispatchResourceRequest(request, options)
3347
3347
  .then(() => {
3348
3348
  return luvio.handleSuccessResponse(() => {
@@ -3350,7 +3350,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
3350
3350
  return luvio.storeBroadcast();
3351
3351
  }, () => {
3352
3352
  const cache = new StoreKeyMap();
3353
- getResponseCacheKeys$c(cache, luvio, resourceParams);
3353
+ getResponseCacheKeys$d(cache, luvio, resourceParams);
3354
3354
  return cache;
3355
3355
  });
3356
3356
  }, (response) => {
@@ -3360,28 +3360,28 @@ function buildNetworkSnapshot$c(luvio, config, options) {
3360
3360
  }
3361
3361
  const deleteAppAssetAdapterFactory = (luvio) => {
3362
3362
  return function AppFrameworkdeleteAppAsset(untrustedConfig) {
3363
- const config = validateAdapterConfig$c(untrustedConfig, deleteAppAsset_ConfigPropertyNames);
3363
+ const config = validateAdapterConfig$d(untrustedConfig, deleteAppAsset_ConfigPropertyNames);
3364
3364
  // Invalid or incomplete config
3365
3365
  if (config === null) {
3366
- throw new Error(`Invalid config for "${adapterName$c}"`);
3366
+ throw new Error(`Invalid config for "${adapterName$d}"`);
3367
3367
  }
3368
- return buildNetworkSnapshot$c(luvio, config);
3368
+ return buildNetworkSnapshot$d(luvio, config);
3369
3369
  };
3370
3370
  };
3371
3371
 
3372
- function select$r(luvio, params) {
3373
- return select$w();
3372
+ function select$u(luvio, params) {
3373
+ return select$z();
3374
3374
  }
3375
- function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
3376
- getTypeCacheKeys$7(storeKeyMap, luvio, response);
3375
+ function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
3376
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
3377
3377
  }
3378
- function ingestSuccess$a(luvio, resourceParams, response) {
3378
+ function ingestSuccess$b(luvio, resourceParams, response) {
3379
3379
  const { body } = response;
3380
- const key = keyBuilderFromType$5(luvio, body);
3381
- luvio.storeIngest(key, ingest$7, body);
3380
+ const key = keyBuilderFromType$6(luvio, body);
3381
+ luvio.storeIngest(key, ingest$9, body);
3382
3382
  const snapshot = luvio.storeLookup({
3383
3383
  recordId: key,
3384
- node: select$r(),
3384
+ node: select$u(),
3385
3385
  variables: {},
3386
3386
  });
3387
3387
  if (process.env.NODE_ENV !== 'production') {
@@ -3392,7 +3392,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
3392
3392
  deepFreeze(snapshot.data);
3393
3393
  return snapshot;
3394
3394
  }
3395
- function createResourceRequest$b(config) {
3395
+ function createResourceRequest$c(config) {
3396
3396
  const headers = {};
3397
3397
  return {
3398
3398
  baseUri: '/services/data/v64.0',
@@ -3406,7 +3406,7 @@ function createResourceRequest$b(config) {
3406
3406
  };
3407
3407
  }
3408
3408
 
3409
- const adapterName$b = 'updateAppAsset';
3409
+ const adapterName$c = 'updateAppAsset';
3410
3410
  const updateAppAsset_ConfigPropertyMetadata = [
3411
3411
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
3412
3412
  generateParamConfigMetadata('appAssetId', true, 0 /* UrlParameter */, 0 /* String */),
@@ -3418,11 +3418,11 @@ const updateAppAsset_ConfigPropertyMetadata = [
3418
3418
  generateParamConfigMetadata('templateSourceId', false, 2 /* Body */, 4 /* Unsupported */),
3419
3419
  generateParamConfigMetadata('type', false, 2 /* Body */, 4 /* Unsupported */),
3420
3420
  ];
3421
- const updateAppAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, updateAppAsset_ConfigPropertyMetadata);
3422
- const createResourceParams$b = /*#__PURE__*/ createResourceParams$n(updateAppAsset_ConfigPropertyMetadata);
3423
- function typeCheckConfig$b(untrustedConfig) {
3421
+ const updateAppAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, updateAppAsset_ConfigPropertyMetadata);
3422
+ const createResourceParams$c = /*#__PURE__*/ createResourceParams$o(updateAppAsset_ConfigPropertyMetadata);
3423
+ function typeCheckConfig$c(untrustedConfig) {
3424
3424
  const config = {};
3425
- typeCheckConfig$n(untrustedConfig, config, updateAppAsset_ConfigPropertyMetadata);
3425
+ typeCheckConfig$o(untrustedConfig, config, updateAppAsset_ConfigPropertyMetadata);
3426
3426
  const untrustedConfig_assetIdOrName2 = untrustedConfig.assetIdOrName2;
3427
3427
  if (typeof untrustedConfig_assetIdOrName2 === 'string') {
3428
3428
  config.assetIdOrName2 = untrustedConfig_assetIdOrName2;
@@ -3460,30 +3460,30 @@ function typeCheckConfig$b(untrustedConfig) {
3460
3460
  }
3461
3461
  return config;
3462
3462
  }
3463
- function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
3463
+ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
3464
3464
  if (!untrustedIsObject(untrustedConfig)) {
3465
3465
  return null;
3466
3466
  }
3467
3467
  if (process.env.NODE_ENV !== 'production') {
3468
3468
  validateConfig(untrustedConfig, configPropertyNames);
3469
3469
  }
3470
- const config = typeCheckConfig$b(untrustedConfig);
3470
+ const config = typeCheckConfig$c(untrustedConfig);
3471
3471
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3472
3472
  return null;
3473
3473
  }
3474
3474
  return config;
3475
3475
  }
3476
- function buildNetworkSnapshot$b(luvio, config, options) {
3477
- const resourceParams = createResourceParams$b(config);
3478
- const request = createResourceRequest$b(resourceParams);
3476
+ function buildNetworkSnapshot$c(luvio, config, options) {
3477
+ const resourceParams = createResourceParams$c(config);
3478
+ const request = createResourceRequest$c(resourceParams);
3479
3479
  return luvio.dispatchResourceRequest(request, options)
3480
3480
  .then((response) => {
3481
3481
  return luvio.handleSuccessResponse(() => {
3482
- const snapshot = ingestSuccess$a(luvio, resourceParams, response);
3482
+ const snapshot = ingestSuccess$b(luvio, resourceParams, response);
3483
3483
  return luvio.storeBroadcast().then(() => snapshot);
3484
3484
  }, () => {
3485
3485
  const cache = new StoreKeyMap();
3486
- getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
3486
+ getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
3487
3487
  return cache;
3488
3488
  });
3489
3489
  }, (response) => {
@@ -3493,28 +3493,28 @@ function buildNetworkSnapshot$b(luvio, config, options) {
3493
3493
  }
3494
3494
  const updateAppAssetAdapterFactory = (luvio) => {
3495
3495
  return function updateAppAsset(untrustedConfig) {
3496
- const config = validateAdapterConfig$b(untrustedConfig, updateAppAsset_ConfigPropertyNames);
3496
+ const config = validateAdapterConfig$c(untrustedConfig, updateAppAsset_ConfigPropertyNames);
3497
3497
  // Invalid or incomplete config
3498
3498
  if (config === null) {
3499
3499
  throw new Error('Invalid config for "updateAppAsset"');
3500
3500
  }
3501
- return buildNetworkSnapshot$b(luvio, config);
3501
+ return buildNetworkSnapshot$c(luvio, config);
3502
3502
  };
3503
3503
  };
3504
3504
 
3505
- function select$q(luvio, params) {
3506
- return select$E();
3505
+ function select$t(luvio, params) {
3506
+ return select$H();
3507
3507
  }
3508
- function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
3509
- getTypeCacheKeys$a(storeKeyMap, luvio, response);
3508
+ function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
3509
+ getTypeCacheKeys$c(storeKeyMap, luvio, response);
3510
3510
  }
3511
- function ingestSuccess$9(luvio, resourceParams, response) {
3511
+ function ingestSuccess$a(luvio, resourceParams, response) {
3512
3512
  const { body } = response;
3513
- const key = keyBuilderFromType$8(luvio, body);
3514
- luvio.storeIngest(key, ingest$a, body);
3513
+ const key = keyBuilderFromType$9(luvio, body);
3514
+ luvio.storeIngest(key, ingest$c, body);
3515
3515
  const snapshot = luvio.storeLookup({
3516
3516
  recordId: key,
3517
- node: select$q(),
3517
+ node: select$t(),
3518
3518
  variables: {},
3519
3519
  });
3520
3520
  if (process.env.NODE_ENV !== 'production') {
@@ -3525,7 +3525,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
3525
3525
  deepFreeze(snapshot.data);
3526
3526
  return snapshot;
3527
3527
  }
3528
- function createResourceRequest$a(config) {
3528
+ function createResourceRequest$b(config) {
3529
3529
  const headers = {};
3530
3530
  return {
3531
3531
  baseUri: '/services/data/v64.0',
@@ -3539,42 +3539,42 @@ function createResourceRequest$a(config) {
3539
3539
  };
3540
3540
  }
3541
3541
 
3542
- const adapterName$a = 'updateBasicApp';
3542
+ const adapterName$b = 'updateBasicApp';
3543
3543
  const updateBasicApp_ConfigPropertyMetadata = [
3544
3544
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
3545
3545
  generateParamConfigMetadata('assetIds', true, 2 /* Body */, 0 /* String */, true),
3546
3546
  ];
3547
- const updateBasicApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, updateBasicApp_ConfigPropertyMetadata);
3548
- const createResourceParams$a = /*#__PURE__*/ createResourceParams$n(updateBasicApp_ConfigPropertyMetadata);
3549
- function typeCheckConfig$a(untrustedConfig) {
3547
+ const updateBasicApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, updateBasicApp_ConfigPropertyMetadata);
3548
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$o(updateBasicApp_ConfigPropertyMetadata);
3549
+ function typeCheckConfig$b(untrustedConfig) {
3550
3550
  const config = {};
3551
- typeCheckConfig$n(untrustedConfig, config, updateBasicApp_ConfigPropertyMetadata);
3551
+ typeCheckConfig$o(untrustedConfig, config, updateBasicApp_ConfigPropertyMetadata);
3552
3552
  return config;
3553
3553
  }
3554
- function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
3554
+ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
3555
3555
  if (!untrustedIsObject(untrustedConfig)) {
3556
3556
  return null;
3557
3557
  }
3558
3558
  if (process.env.NODE_ENV !== 'production') {
3559
3559
  validateConfig(untrustedConfig, configPropertyNames);
3560
3560
  }
3561
- const config = typeCheckConfig$a(untrustedConfig);
3561
+ const config = typeCheckConfig$b(untrustedConfig);
3562
3562
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3563
3563
  return null;
3564
3564
  }
3565
3565
  return config;
3566
3566
  }
3567
- function buildNetworkSnapshot$a(luvio, config, options) {
3568
- const resourceParams = createResourceParams$a(config);
3569
- const request = createResourceRequest$a(resourceParams);
3567
+ function buildNetworkSnapshot$b(luvio, config, options) {
3568
+ const resourceParams = createResourceParams$b(config);
3569
+ const request = createResourceRequest$b(resourceParams);
3570
3570
  return luvio.dispatchResourceRequest(request, options)
3571
3571
  .then((response) => {
3572
3572
  return luvio.handleSuccessResponse(() => {
3573
- const snapshot = ingestSuccess$9(luvio, resourceParams, response);
3573
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response);
3574
3574
  return luvio.storeBroadcast().then(() => snapshot);
3575
3575
  }, () => {
3576
3576
  const cache = new StoreKeyMap();
3577
- getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
3577
+ getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
3578
3578
  return cache;
3579
3579
  });
3580
3580
  }, (response) => {
@@ -3584,18 +3584,18 @@ function buildNetworkSnapshot$a(luvio, config, options) {
3584
3584
  }
3585
3585
  const updateBasicAppAdapterFactory = (luvio) => {
3586
3586
  return function updateBasicApp(untrustedConfig) {
3587
- const config = validateAdapterConfig$a(untrustedConfig, updateBasicApp_ConfigPropertyNames);
3587
+ const config = validateAdapterConfig$b(untrustedConfig, updateBasicApp_ConfigPropertyNames);
3588
3588
  // Invalid or incomplete config
3589
3589
  if (config === null) {
3590
3590
  throw new Error('Invalid config for "updateBasicApp"');
3591
3591
  }
3592
- return buildNetworkSnapshot$a(luvio, config);
3592
+ return buildNetworkSnapshot$b(luvio, config);
3593
3593
  };
3594
3594
  };
3595
3595
 
3596
- const TTL$5 = 5000;
3597
- const VERSION$g = "4b0d1bee319e31459f529b802621d6b8";
3598
- function validate$m(obj, path = 'InstalledAssetCollectionRepresentation') {
3596
+ const TTL$7 = 5000;
3597
+ const VERSION$i = "4b0d1bee319e31459f529b802621d6b8";
3598
+ function validate$o(obj, path = 'InstalledAssetCollectionRepresentation') {
3599
3599
  const v_error = (() => {
3600
3600
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3601
3601
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3615,14 +3615,14 @@ function validate$m(obj, path = 'InstalledAssetCollectionRepresentation') {
3615
3615
  })();
3616
3616
  return v_error === undefined ? null : v_error;
3617
3617
  }
3618
- const RepresentationType$5 = 'InstalledAssetCollectionRepresentation';
3619
- function normalize$5(input, existing, path, luvio, store, timestamp) {
3618
+ const RepresentationType$7 = 'InstalledAssetCollectionRepresentation';
3619
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
3620
3620
  const input_assets = input.assets;
3621
3621
  const input_assets_id = path.fullPath + '__assets';
3622
3622
  for (let i = 0; i < input_assets.length; i++) {
3623
3623
  const input_assets_item = input_assets[i];
3624
3624
  let input_assets_item_id = input_assets_id + '__' + i;
3625
- input_assets[i] = ingest$7(input_assets_item, {
3625
+ input_assets[i] = ingest$9(input_assets_item, {
3626
3626
  fullPath: input_assets_item_id,
3627
3627
  propertyName: i,
3628
3628
  parent: {
@@ -3635,22 +3635,22 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
3635
3635
  }
3636
3636
  return input;
3637
3637
  }
3638
- const select$p = function InstalledAssetCollectionRepresentationSelect() {
3638
+ const select$s = function InstalledAssetCollectionRepresentationSelect() {
3639
3639
  return {
3640
3640
  kind: 'Fragment',
3641
- version: VERSION$g,
3641
+ version: VERSION$i,
3642
3642
  private: [],
3643
3643
  selections: [
3644
3644
  {
3645
3645
  name: 'assets',
3646
3646
  kind: 'Link',
3647
3647
  plural: true,
3648
- fragment: select$w()
3648
+ fragment: select$z()
3649
3649
  }
3650
3650
  ]
3651
3651
  };
3652
3652
  };
3653
- function equals$g(existing, incoming) {
3653
+ function equals$i(existing, incoming) {
3654
3654
  const existing_assets = existing.assets;
3655
3655
  const incoming_assets = incoming.assets;
3656
3656
  const equals_assets_items = equalsArray(existing_assets, incoming_assets, (existing_assets_item, incoming_assets_item) => {
@@ -3663,48 +3663,48 @@ function equals$g(existing, incoming) {
3663
3663
  }
3664
3664
  return true;
3665
3665
  }
3666
- const ingest$5 = function InstalledAssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
3666
+ const ingest$7 = function InstalledAssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
3667
3667
  if (process.env.NODE_ENV !== 'production') {
3668
- const validateError = validate$m(input);
3668
+ const validateError = validate$o(input);
3669
3669
  if (validateError !== null) {
3670
3670
  throw validateError;
3671
3671
  }
3672
3672
  }
3673
3673
  const key = path.fullPath;
3674
- const ttlToUse = TTL$5;
3675
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "AppFramework", VERSION$g, RepresentationType$5, equals$g);
3674
+ const ttlToUse = TTL$7;
3675
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "AppFramework", VERSION$i, RepresentationType$7, equals$i);
3676
3676
  return createLink(key);
3677
3677
  };
3678
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
3678
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
3679
3679
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3680
3680
  const rootKey = fullPathFactory();
3681
3681
  rootKeySet.set(rootKey, {
3682
3682
  namespace: keyPrefix,
3683
- representationName: RepresentationType$5,
3683
+ representationName: RepresentationType$7,
3684
3684
  mergeable: false
3685
3685
  });
3686
3686
  const input_assets_length = input.assets.length;
3687
3687
  for (let i = 0; i < input_assets_length; i++) {
3688
- getTypeCacheKeys$7(rootKeySet, luvio, input.assets[i]);
3688
+ getTypeCacheKeys$9(rootKeySet, luvio, input.assets[i]);
3689
3689
  }
3690
3690
  }
3691
3691
 
3692
- function select$o(luvio, params) {
3693
- return select$p();
3692
+ function select$r(luvio, params) {
3693
+ return select$s();
3694
3694
  }
3695
- function keyBuilder$e(luvio, params) {
3695
+ function keyBuilder$h(luvio, params) {
3696
3696
  return keyPrefix + '::InstalledAssetCollectionRepresentation:(' + 'assetIdOrName:' + params.queryParams.assetIdOrName + ',' + 'assetType:' + params.queryParams.assetType + ')';
3697
3697
  }
3698
- function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
3699
- getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$e(luvio, resourceParams));
3698
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
3699
+ getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$h(luvio, resourceParams));
3700
3700
  }
3701
- function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
3701
+ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
3702
3702
  const { body } = response;
3703
- const key = keyBuilder$e(luvio, resourceParams);
3704
- luvio.storeIngest(key, ingest$5, body);
3703
+ const key = keyBuilder$h(luvio, resourceParams);
3704
+ luvio.storeIngest(key, ingest$7, body);
3705
3705
  const snapshot = luvio.storeLookup({
3706
3706
  recordId: key,
3707
- node: select$o(),
3707
+ node: select$r(),
3708
3708
  variables: {},
3709
3709
  }, snapshotRefresh);
3710
3710
  if (process.env.NODE_ENV !== 'production') {
@@ -3715,19 +3715,19 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
3715
3715
  deepFreeze(snapshot.data);
3716
3716
  return snapshot;
3717
3717
  }
3718
- function ingestError$4(luvio, params, error, snapshotRefresh) {
3719
- const key = keyBuilder$e(luvio, params);
3718
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
3719
+ const key = keyBuilder$h(luvio, params);
3720
3720
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3721
3721
  const storeMetadataParams = {
3722
- ttl: TTL$5,
3722
+ ttl: TTL$7,
3723
3723
  namespace: keyPrefix,
3724
- version: VERSION$g,
3725
- representationName: RepresentationType$5
3724
+ version: VERSION$i,
3725
+ representationName: RepresentationType$7
3726
3726
  };
3727
3727
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3728
3728
  return errorSnapshot;
3729
3729
  }
3730
- function createResourceRequest$9(config) {
3730
+ function createResourceRequest$a(config) {
3731
3731
  const headers = {};
3732
3732
  return {
3733
3733
  baseUri: '/services/data/v64.0',
@@ -3741,95 +3741,95 @@ function createResourceRequest$9(config) {
3741
3741
  };
3742
3742
  }
3743
3743
 
3744
- const adapterName$9 = 'getInstalledAssets';
3744
+ const adapterName$a = 'getInstalledAssets';
3745
3745
  const getInstalledAssets_ConfigPropertyMetadata = [
3746
3746
  generateParamConfigMetadata('assetIdOrName', false, 1 /* QueryParameter */, 0 /* String */),
3747
3747
  generateParamConfigMetadata('assetType', false, 1 /* QueryParameter */, 0 /* String */),
3748
3748
  ];
3749
- const getInstalledAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getInstalledAssets_ConfigPropertyMetadata);
3750
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$n(getInstalledAssets_ConfigPropertyMetadata);
3751
- function keyBuilder$d(luvio, config) {
3752
- const resourceParams = createResourceParams$9(config);
3753
- return keyBuilder$e(luvio, resourceParams);
3749
+ const getInstalledAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getInstalledAssets_ConfigPropertyMetadata);
3750
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$o(getInstalledAssets_ConfigPropertyMetadata);
3751
+ function keyBuilder$g(luvio, config) {
3752
+ const resourceParams = createResourceParams$a(config);
3753
+ return keyBuilder$h(luvio, resourceParams);
3754
3754
  }
3755
- function typeCheckConfig$9(untrustedConfig) {
3755
+ function typeCheckConfig$a(untrustedConfig) {
3756
3756
  const config = {};
3757
- typeCheckConfig$n(untrustedConfig, config, getInstalledAssets_ConfigPropertyMetadata);
3757
+ typeCheckConfig$o(untrustedConfig, config, getInstalledAssets_ConfigPropertyMetadata);
3758
3758
  return config;
3759
3759
  }
3760
- function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
3760
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
3761
3761
  if (!untrustedIsObject(untrustedConfig)) {
3762
3762
  return null;
3763
3763
  }
3764
3764
  if (process.env.NODE_ENV !== 'production') {
3765
3765
  validateConfig(untrustedConfig, configPropertyNames);
3766
3766
  }
3767
- const config = typeCheckConfig$9(untrustedConfig);
3767
+ const config = typeCheckConfig$a(untrustedConfig);
3768
3768
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3769
3769
  return null;
3770
3770
  }
3771
3771
  return config;
3772
3772
  }
3773
- function adapterFragment$4(luvio, config) {
3774
- createResourceParams$9(config);
3775
- return select$o();
3773
+ function adapterFragment$5(luvio, config) {
3774
+ createResourceParams$a(config);
3775
+ return select$r();
3776
3776
  }
3777
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
3778
- const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
3777
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
3778
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
3779
3779
  config,
3780
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
3780
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
3781
3781
  });
3782
3782
  return luvio.storeBroadcast().then(() => snapshot);
3783
3783
  }
3784
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
3785
- const snapshot = ingestError$4(luvio, resourceParams, response, {
3784
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
3785
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
3786
3786
  config,
3787
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
3787
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
3788
3788
  });
3789
3789
  return luvio.storeBroadcast().then(() => snapshot);
3790
3790
  }
3791
- function buildNetworkSnapshot$9(luvio, config, options) {
3792
- const resourceParams = createResourceParams$9(config);
3793
- const request = createResourceRequest$9(resourceParams);
3791
+ function buildNetworkSnapshot$a(luvio, config, options) {
3792
+ const resourceParams = createResourceParams$a(config);
3793
+ const request = createResourceRequest$a(resourceParams);
3794
3794
  return luvio.dispatchResourceRequest(request, options)
3795
3795
  .then((response) => {
3796
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
3796
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
3797
3797
  const cache = new StoreKeyMap();
3798
- getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
3798
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
3799
3799
  return cache;
3800
3800
  });
3801
3801
  }, (response) => {
3802
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
3802
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
3803
3803
  });
3804
3804
  }
3805
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
3806
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
3805
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
3806
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
3807
3807
  }
3808
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
3808
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
3809
3809
  const { luvio, config } = context;
3810
3810
  const selector = {
3811
- recordId: keyBuilder$d(luvio, config),
3812
- node: adapterFragment$4(luvio, config),
3811
+ recordId: keyBuilder$g(luvio, config),
3812
+ node: adapterFragment$5(luvio, config),
3813
3813
  variables: {},
3814
3814
  };
3815
3815
  const cacheSnapshot = storeLookup(selector, {
3816
3816
  config,
3817
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
3817
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
3818
3818
  });
3819
3819
  return cacheSnapshot;
3820
3820
  }
3821
3821
  const getInstalledAssetsAdapterFactory = (luvio) => function AppFramework__getInstalledAssets(untrustedConfig, requestContext) {
3822
- const config = validateAdapterConfig$9(untrustedConfig, getInstalledAssets_ConfigPropertyNames);
3822
+ const config = validateAdapterConfig$a(untrustedConfig, getInstalledAssets_ConfigPropertyNames);
3823
3823
  // Invalid or incomplete config
3824
3824
  if (config === null) {
3825
3825
  return null;
3826
3826
  }
3827
3827
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3828
- buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
3828
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
3829
3829
  };
3830
3830
 
3831
- const VERSION$f = "37cd2df78831b62dfcd672b30f4ca0eb";
3832
- function validate$l(obj, path = 'ChainDefinitionRepresentation') {
3831
+ const VERSION$h = "37cd2df78831b62dfcd672b30f4ca0eb";
3832
+ function validate$n(obj, path = 'ChainDefinitionRepresentation') {
3833
3833
  const v_error = (() => {
3834
3834
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3835
3835
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3899,10 +3899,10 @@ function validate$l(obj, path = 'ChainDefinitionRepresentation') {
3899
3899
  })();
3900
3900
  return v_error === undefined ? null : v_error;
3901
3901
  }
3902
- const select$n = function ChainDefinitionRepresentationSelect() {
3902
+ const select$q = function ChainDefinitionRepresentationSelect() {
3903
3903
  return {
3904
3904
  kind: 'Fragment',
3905
- version: VERSION$f,
3905
+ version: VERSION$h,
3906
3906
  private: [],
3907
3907
  selections: [
3908
3908
  {
@@ -3924,7 +3924,7 @@ const select$n = function ChainDefinitionRepresentationSelect() {
3924
3924
  ]
3925
3925
  };
3926
3926
  };
3927
- function equals$f(existing, incoming) {
3927
+ function equals$h(existing, incoming) {
3928
3928
  const existing_file = existing.file;
3929
3929
  const incoming_file = incoming.file;
3930
3930
  if (!(existing_file === incoming_file)) {
@@ -3948,8 +3948,8 @@ function equals$f(existing, incoming) {
3948
3948
  return true;
3949
3949
  }
3950
3950
 
3951
- const VERSION$e = "6edb78368a9283c1d755574e7b7d6c4a";
3952
- function validate$k(obj, path = 'TemplateImageRepresentation') {
3951
+ const VERSION$g = "6edb78368a9283c1d755574e7b7d6c4a";
3952
+ function validate$m(obj, path = 'TemplateImageRepresentation') {
3953
3953
  const v_error = (() => {
3954
3954
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3955
3955
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3976,10 +3976,10 @@ function validate$k(obj, path = 'TemplateImageRepresentation') {
3976
3976
  })();
3977
3977
  return v_error === undefined ? null : v_error;
3978
3978
  }
3979
- const select$m = function TemplateImageRepresentationSelect() {
3979
+ const select$p = function TemplateImageRepresentationSelect() {
3980
3980
  return {
3981
3981
  kind: 'Fragment',
3982
- version: VERSION$e,
3982
+ version: VERSION$g,
3983
3983
  private: [],
3984
3984
  selections: [
3985
3985
  {
@@ -3999,7 +3999,7 @@ const select$m = function TemplateImageRepresentationSelect() {
3999
3999
  ]
4000
4000
  };
4001
4001
  };
4002
- function equals$e(existing, incoming) {
4002
+ function equals$g(existing, incoming) {
4003
4003
  const existing_file = existing.file;
4004
4004
  const incoming_file = incoming.file;
4005
4005
  // if at least one of these optionals is defined
@@ -4034,8 +4034,8 @@ function equals$e(existing, incoming) {
4034
4034
  return true;
4035
4035
  }
4036
4036
 
4037
- const VERSION$d = "d3949dd1d6f86bd2faba882f02bed307";
4038
- function validate$j(obj, path = 'TemplateIconsRepresentation') {
4037
+ const VERSION$f = "d3949dd1d6f86bd2faba882f02bed307";
4038
+ function validate$l(obj, path = 'TemplateIconsRepresentation') {
4039
4039
  const v_error = (() => {
4040
4040
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4041
4041
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4044,7 +4044,7 @@ function validate$j(obj, path = 'TemplateIconsRepresentation') {
4044
4044
  const path_appBadge = path + '.appBadge';
4045
4045
  let obj_appBadge_union0 = null;
4046
4046
  const obj_appBadge_union0_error = (() => {
4047
- const referencepath_appBadgeValidationError = validate$k(obj_appBadge, path_appBadge);
4047
+ const referencepath_appBadgeValidationError = validate$m(obj_appBadge, path_appBadge);
4048
4048
  if (referencepath_appBadgeValidationError !== null) {
4049
4049
  let message = 'Object doesn\'t match TemplateImageRepresentation (at "' + path_appBadge + '")\n';
4050
4050
  message += referencepath_appBadgeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4073,7 +4073,7 @@ function validate$j(obj, path = 'TemplateIconsRepresentation') {
4073
4073
  const path_templateBadge = path + '.templateBadge';
4074
4074
  let obj_templateBadge_union0 = null;
4075
4075
  const obj_templateBadge_union0_error = (() => {
4076
- const referencepath_templateBadgeValidationError = validate$k(obj_templateBadge, path_templateBadge);
4076
+ const referencepath_templateBadgeValidationError = validate$m(obj_templateBadge, path_templateBadge);
4077
4077
  if (referencepath_templateBadgeValidationError !== null) {
4078
4078
  let message = 'Object doesn\'t match TemplateImageRepresentation (at "' + path_templateBadge + '")\n';
4079
4079
  message += referencepath_templateBadgeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4106,7 +4106,7 @@ function validate$j(obj, path = 'TemplateIconsRepresentation') {
4106
4106
  for (let i = 0; i < obj_templatePreviews.length; i++) {
4107
4107
  const obj_templatePreviews_item = obj_templatePreviews[i];
4108
4108
  const path_templatePreviews_item = path_templatePreviews + '[' + i + ']';
4109
- const referencepath_templatePreviews_itemValidationError = validate$k(obj_templatePreviews_item, path_templatePreviews_item);
4109
+ const referencepath_templatePreviews_itemValidationError = validate$m(obj_templatePreviews_item, path_templatePreviews_item);
4110
4110
  if (referencepath_templatePreviews_itemValidationError !== null) {
4111
4111
  let message = 'Object doesn\'t match TemplateImageRepresentation (at "' + path_templatePreviews_item + '")\n';
4112
4112
  message += referencepath_templatePreviews_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4116,11 +4116,11 @@ function validate$j(obj, path = 'TemplateIconsRepresentation') {
4116
4116
  })();
4117
4117
  return v_error === undefined ? null : v_error;
4118
4118
  }
4119
- const select$l = function TemplateIconsRepresentationSelect() {
4120
- const { selections: TemplateImageRepresentation__selections, opaque: TemplateImageRepresentation__opaque, } = select$m();
4119
+ const select$o = function TemplateIconsRepresentationSelect() {
4120
+ const { selections: TemplateImageRepresentation__selections, opaque: TemplateImageRepresentation__opaque, } = select$p();
4121
4121
  return {
4122
4122
  kind: 'Fragment',
4123
- version: VERSION$d,
4123
+ version: VERSION$f,
4124
4124
  private: [],
4125
4125
  selections: [
4126
4126
  {
@@ -4144,13 +4144,13 @@ const select$l = function TemplateIconsRepresentationSelect() {
4144
4144
  ]
4145
4145
  };
4146
4146
  };
4147
- function equals$d(existing, incoming) {
4147
+ function equals$f(existing, incoming) {
4148
4148
  const existing_appBadge = existing.appBadge;
4149
4149
  const incoming_appBadge = incoming.appBadge;
4150
4150
  if (!(existing_appBadge === incoming_appBadge
4151
4151
  || (existing_appBadge != null &&
4152
4152
  incoming_appBadge != null &&
4153
- equals$e(existing_appBadge, incoming_appBadge)))) {
4153
+ equals$g(existing_appBadge, incoming_appBadge)))) {
4154
4154
  return false;
4155
4155
  }
4156
4156
  const existing_templateBadge = existing.templateBadge;
@@ -4158,13 +4158,13 @@ function equals$d(existing, incoming) {
4158
4158
  if (!(existing_templateBadge === incoming_templateBadge
4159
4159
  || (existing_templateBadge != null &&
4160
4160
  incoming_templateBadge != null &&
4161
- equals$e(existing_templateBadge, incoming_templateBadge)))) {
4161
+ equals$g(existing_templateBadge, incoming_templateBadge)))) {
4162
4162
  return false;
4163
4163
  }
4164
4164
  const existing_templatePreviews = existing.templatePreviews;
4165
4165
  const incoming_templatePreviews = incoming.templatePreviews;
4166
4166
  const equals_templatePreviews_items = equalsArray(existing_templatePreviews, incoming_templatePreviews, (existing_templatePreviews_item, incoming_templatePreviews_item) => {
4167
- if (!(equals$e(existing_templatePreviews_item, incoming_templatePreviews_item))) {
4167
+ if (!(equals$g(existing_templatePreviews_item, incoming_templatePreviews_item))) {
4168
4168
  return false;
4169
4169
  }
4170
4170
  });
@@ -4174,8 +4174,8 @@ function equals$d(existing, incoming) {
4174
4174
  return true;
4175
4175
  }
4176
4176
 
4177
- const VERSION$c = "3fc4320afdc399fc752a2e482573a828";
4178
- function validate$i(obj, path = 'ReleaseInfoRepresentation') {
4177
+ const VERSION$e = "3fc4320afdc399fc752a2e482573a828";
4178
+ function validate$k(obj, path = 'ReleaseInfoRepresentation') {
4179
4179
  const v_error = (() => {
4180
4180
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4181
4181
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4214,10 +4214,10 @@ function validate$i(obj, path = 'ReleaseInfoRepresentation') {
4214
4214
  })();
4215
4215
  return v_error === undefined ? null : v_error;
4216
4216
  }
4217
- const select$k = function ReleaseInfoRepresentationSelect() {
4217
+ const select$n = function ReleaseInfoRepresentationSelect() {
4218
4218
  return {
4219
4219
  kind: 'Fragment',
4220
- version: VERSION$c,
4220
+ version: VERSION$e,
4221
4221
  private: [],
4222
4222
  selections: [
4223
4223
  {
@@ -4231,7 +4231,7 @@ const select$k = function ReleaseInfoRepresentationSelect() {
4231
4231
  ]
4232
4232
  };
4233
4233
  };
4234
- function equals$c(existing, incoming) {
4234
+ function equals$e(existing, incoming) {
4235
4235
  const existing_templateVersion = existing.templateVersion;
4236
4236
  const incoming_templateVersion = incoming.templateVersion;
4237
4237
  if (!(existing_templateVersion === incoming_templateVersion)) {
@@ -4245,8 +4245,8 @@ function equals$c(existing, incoming) {
4245
4245
  return true;
4246
4246
  }
4247
4247
 
4248
- const VERSION$b = "11e304d2f006486e36c7ceadcc930fca";
4249
- function validate$h(obj, path = 'RuleInfoRepresentation') {
4248
+ const VERSION$d = "11e304d2f006486e36c7ceadcc930fca";
4249
+ function validate$j(obj, path = 'RuleInfoRepresentation') {
4250
4250
  const v_error = (() => {
4251
4251
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4252
4252
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4264,10 +4264,10 @@ function validate$h(obj, path = 'RuleInfoRepresentation') {
4264
4264
  })();
4265
4265
  return v_error === undefined ? null : v_error;
4266
4266
  }
4267
- const select$j = function RuleInfoRepresentationSelect() {
4267
+ const select$m = function RuleInfoRepresentationSelect() {
4268
4268
  return {
4269
4269
  kind: 'Fragment',
4270
- version: VERSION$b,
4270
+ version: VERSION$d,
4271
4271
  private: [],
4272
4272
  selections: [
4273
4273
  {
@@ -4281,7 +4281,7 @@ const select$j = function RuleInfoRepresentationSelect() {
4281
4281
  ]
4282
4282
  };
4283
4283
  };
4284
- function equals$b(existing, incoming) {
4284
+ function equals$d(existing, incoming) {
4285
4285
  const existing_file = existing.file;
4286
4286
  const incoming_file = incoming.file;
4287
4287
  if (!(existing_file === incoming_file)) {
@@ -4295,9 +4295,9 @@ function equals$b(existing, incoming) {
4295
4295
  return true;
4296
4296
  }
4297
4297
 
4298
- const TTL$4 = 5000;
4299
- const VERSION$a = "dd0aa8a59d7655eec95623d20af6168b";
4300
- function validate$g(obj, path = 'TemplateRepresentation') {
4298
+ const TTL$6 = 5000;
4299
+ const VERSION$c = "dd0aa8a59d7655eec95623d20af6168b";
4300
+ function validate$i(obj, path = 'TemplateRepresentation') {
4301
4301
  const v_error = (() => {
4302
4302
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4303
4303
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4362,7 +4362,7 @@ function validate$g(obj, path = 'TemplateRepresentation') {
4362
4362
  for (let i = 0; i < obj_chainDefinitions.length; i++) {
4363
4363
  const obj_chainDefinitions_item = obj_chainDefinitions[i];
4364
4364
  const path_chainDefinitions_item = path_chainDefinitions + '[' + i + ']';
4365
- const referencepath_chainDefinitions_itemValidationError = validate$l(obj_chainDefinitions_item, path_chainDefinitions_item);
4365
+ const referencepath_chainDefinitions_itemValidationError = validate$n(obj_chainDefinitions_item, path_chainDefinitions_item);
4366
4366
  if (referencepath_chainDefinitions_itemValidationError !== null) {
4367
4367
  let message = 'Object doesn\'t match ChainDefinitionRepresentation (at "' + path_chainDefinitions_item + '")\n';
4368
4368
  message += referencepath_chainDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4430,7 +4430,7 @@ function validate$g(obj, path = 'TemplateRepresentation') {
4430
4430
  const path_icons = path + '.icons';
4431
4431
  let obj_icons_union0 = null;
4432
4432
  const obj_icons_union0_error = (() => {
4433
- const referencepath_iconsValidationError = validate$j(obj_icons, path_icons);
4433
+ const referencepath_iconsValidationError = validate$l(obj_icons, path_icons);
4434
4434
  if (referencepath_iconsValidationError !== null) {
4435
4435
  let message = 'Object doesn\'t match TemplateIconsRepresentation (at "' + path_icons + '")\n';
4436
4436
  message += referencepath_iconsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4583,7 +4583,7 @@ function validate$g(obj, path = 'TemplateRepresentation') {
4583
4583
  const path_releaseInfo = path + '.releaseInfo';
4584
4584
  let obj_releaseInfo_union0 = null;
4585
4585
  const obj_releaseInfo_union0_error = (() => {
4586
- const referencepath_releaseInfoValidationError = validate$i(obj_releaseInfo, path_releaseInfo);
4586
+ const referencepath_releaseInfoValidationError = validate$k(obj_releaseInfo, path_releaseInfo);
4587
4587
  if (referencepath_releaseInfoValidationError !== null) {
4588
4588
  let message = 'Object doesn\'t match ReleaseInfoRepresentation (at "' + path_releaseInfo + '")\n';
4589
4589
  message += referencepath_releaseInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4616,7 +4616,7 @@ function validate$g(obj, path = 'TemplateRepresentation') {
4616
4616
  for (let i = 0; i < obj_rules.length; i++) {
4617
4617
  const obj_rules_item = obj_rules[i];
4618
4618
  const path_rules_item = path_rules + '[' + i + ']';
4619
- const referencepath_rules_itemValidationError = validate$h(obj_rules_item, path_rules_item);
4619
+ const referencepath_rules_itemValidationError = validate$j(obj_rules_item, path_rules_item);
4620
4620
  if (referencepath_rules_itemValidationError !== null) {
4621
4621
  let message = 'Object doesn\'t match RuleInfoRepresentation (at "' + path_rules_item + '")\n';
4622
4622
  message += referencepath_rules_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4702,27 +4702,27 @@ function validate$g(obj, path = 'TemplateRepresentation') {
4702
4702
  })();
4703
4703
  return v_error === undefined ? null : v_error;
4704
4704
  }
4705
- const RepresentationType$4 = 'TemplateRepresentation';
4706
- function keyBuilder$c(luvio, config) {
4707
- return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
4705
+ const RepresentationType$6 = 'TemplateRepresentation';
4706
+ function keyBuilder$f(luvio, config) {
4707
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.id;
4708
4708
  }
4709
- function keyBuilderFromType$3(luvio, object) {
4709
+ function keyBuilderFromType$4(luvio, object) {
4710
4710
  const keyParams = {
4711
4711
  id: object.id
4712
4712
  };
4713
- return keyBuilder$c(luvio, keyParams);
4713
+ return keyBuilder$f(luvio, keyParams);
4714
4714
  }
4715
- function normalize$4(input, existing, path, luvio, store, timestamp) {
4715
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
4716
4716
  return input;
4717
4717
  }
4718
- const select$i = function TemplateRepresentationSelect() {
4719
- const { selections: ChainDefinitionRepresentation__selections, opaque: ChainDefinitionRepresentation__opaque, } = select$n();
4720
- const { selections: TemplateIconsRepresentation__selections, opaque: TemplateIconsRepresentation__opaque, } = select$l();
4721
- const { selections: ReleaseInfoRepresentation__selections, opaque: ReleaseInfoRepresentation__opaque, } = select$k();
4722
- const { selections: RuleInfoRepresentation__selections, opaque: RuleInfoRepresentation__opaque, } = select$j();
4718
+ const select$l = function TemplateRepresentationSelect() {
4719
+ const { selections: ChainDefinitionRepresentation__selections, opaque: ChainDefinitionRepresentation__opaque, } = select$q();
4720
+ const { selections: TemplateIconsRepresentation__selections, opaque: TemplateIconsRepresentation__opaque, } = select$o();
4721
+ const { selections: ReleaseInfoRepresentation__selections, opaque: ReleaseInfoRepresentation__opaque, } = select$n();
4722
+ const { selections: RuleInfoRepresentation__selections, opaque: RuleInfoRepresentation__opaque, } = select$m();
4723
4723
  return {
4724
4724
  kind: 'Fragment',
4725
- version: VERSION$a,
4725
+ version: VERSION$c,
4726
4726
  private: [],
4727
4727
  selections: [
4728
4728
  {
@@ -4825,7 +4825,7 @@ const select$i = function TemplateRepresentationSelect() {
4825
4825
  ]
4826
4826
  };
4827
4827
  };
4828
- function equals$a(existing, incoming) {
4828
+ function equals$c(existing, incoming) {
4829
4829
  const existing_configurationUrl = existing.configurationUrl;
4830
4830
  const incoming_configurationUrl = incoming.configurationUrl;
4831
4831
  if (!(existing_configurationUrl === incoming_configurationUrl)) {
@@ -4874,7 +4874,7 @@ function equals$a(existing, incoming) {
4874
4874
  const existing_chainDefinitions = existing.chainDefinitions;
4875
4875
  const incoming_chainDefinitions = incoming.chainDefinitions;
4876
4876
  const equals_chainDefinitions_items = equalsArray(existing_chainDefinitions, incoming_chainDefinitions, (existing_chainDefinitions_item, incoming_chainDefinitions_item) => {
4877
- if (!(equals$f(existing_chainDefinitions_item, incoming_chainDefinitions_item))) {
4877
+ if (!(equals$h(existing_chainDefinitions_item, incoming_chainDefinitions_item))) {
4878
4878
  return false;
4879
4879
  }
4880
4880
  });
@@ -4896,7 +4896,7 @@ function equals$a(existing, incoming) {
4896
4896
  if (!(existing_icons === incoming_icons
4897
4897
  || (existing_icons != null &&
4898
4898
  incoming_icons != null &&
4899
- equals$d(existing_icons, incoming_icons)))) {
4899
+ equals$f(existing_icons, incoming_icons)))) {
4900
4900
  return false;
4901
4901
  }
4902
4902
  const existing_lastModifiedDate = existing.lastModifiedDate;
@@ -4924,13 +4924,13 @@ function equals$a(existing, incoming) {
4924
4924
  if (!(existing_releaseInfo === incoming_releaseInfo
4925
4925
  || (existing_releaseInfo != null &&
4926
4926
  incoming_releaseInfo != null &&
4927
- equals$c(existing_releaseInfo, incoming_releaseInfo)))) {
4927
+ equals$e(existing_releaseInfo, incoming_releaseInfo)))) {
4928
4928
  return false;
4929
4929
  }
4930
4930
  const existing_rules = existing.rules;
4931
4931
  const incoming_rules = incoming.rules;
4932
4932
  const equals_rules_items = equalsArray(existing_rules, incoming_rules, (existing_rules_item, incoming_rules_item) => {
4933
- if (!(equals$b(existing_rules_item, incoming_rules_item))) {
4933
+ if (!(equals$d(existing_rules_item, incoming_rules_item))) {
4934
4934
  return false;
4935
4935
  }
4936
4936
  });
@@ -4959,31 +4959,31 @@ function equals$a(existing, incoming) {
4959
4959
  }
4960
4960
  return true;
4961
4961
  }
4962
- const ingest$4 = function TemplateRepresentationIngest(input, path, luvio, store, timestamp) {
4962
+ const ingest$6 = function TemplateRepresentationIngest(input, path, luvio, store, timestamp) {
4963
4963
  if (process.env.NODE_ENV !== 'production') {
4964
- const validateError = validate$g(input);
4964
+ const validateError = validate$i(input);
4965
4965
  if (validateError !== null) {
4966
4966
  throw validateError;
4967
4967
  }
4968
4968
  }
4969
- const key = keyBuilderFromType$3(luvio, input);
4970
- const ttlToUse = TTL$4;
4971
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "AppFramework", VERSION$a, RepresentationType$4, equals$a);
4969
+ const key = keyBuilderFromType$4(luvio, input);
4970
+ const ttlToUse = TTL$6;
4971
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "AppFramework", VERSION$c, RepresentationType$6, equals$c);
4972
4972
  return createLink(key);
4973
4973
  };
4974
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
4974
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
4975
4975
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4976
- const rootKey = keyBuilderFromType$3(luvio, input);
4976
+ const rootKey = keyBuilderFromType$4(luvio, input);
4977
4977
  rootKeySet.set(rootKey, {
4978
4978
  namespace: keyPrefix,
4979
- representationName: RepresentationType$4,
4979
+ representationName: RepresentationType$6,
4980
4980
  mergeable: false
4981
4981
  });
4982
4982
  }
4983
4983
 
4984
- const TTL$3 = 5000;
4985
- const VERSION$9 = "4d3fc84707ae344f06fb99bd22e68f46";
4986
- function validate$f(obj, path = 'TemplateCollectionRepresentation') {
4984
+ const TTL$5 = 5000;
4985
+ const VERSION$b = "4d3fc84707ae344f06fb99bd22e68f46";
4986
+ function validate$h(obj, path = 'TemplateCollectionRepresentation') {
4987
4987
  const v_error = (() => {
4988
4988
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4989
4989
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5003,14 +5003,14 @@ function validate$f(obj, path = 'TemplateCollectionRepresentation') {
5003
5003
  })();
5004
5004
  return v_error === undefined ? null : v_error;
5005
5005
  }
5006
- const RepresentationType$3 = 'TemplateCollectionRepresentation';
5007
- function normalize$3(input, existing, path, luvio, store, timestamp) {
5006
+ const RepresentationType$5 = 'TemplateCollectionRepresentation';
5007
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
5008
5008
  const input_templates = input.templates;
5009
5009
  const input_templates_id = path.fullPath + '__templates';
5010
5010
  for (let i = 0; i < input_templates.length; i++) {
5011
5011
  const input_templates_item = input_templates[i];
5012
5012
  let input_templates_item_id = input_templates_id + '__' + i;
5013
- input_templates[i] = ingest$4(input_templates_item, {
5013
+ input_templates[i] = ingest$6(input_templates_item, {
5014
5014
  fullPath: input_templates_item_id,
5015
5015
  propertyName: i,
5016
5016
  parent: {
@@ -5023,22 +5023,22 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
5023
5023
  }
5024
5024
  return input;
5025
5025
  }
5026
- const select$h = function TemplateCollectionRepresentationSelect() {
5026
+ const select$k = function TemplateCollectionRepresentationSelect() {
5027
5027
  return {
5028
5028
  kind: 'Fragment',
5029
- version: VERSION$9,
5029
+ version: VERSION$b,
5030
5030
  private: [],
5031
5031
  selections: [
5032
5032
  {
5033
5033
  name: 'templates',
5034
5034
  kind: 'Link',
5035
5035
  plural: true,
5036
- fragment: select$i()
5036
+ fragment: select$l()
5037
5037
  }
5038
5038
  ]
5039
5039
  };
5040
5040
  };
5041
- function equals$9(existing, incoming) {
5041
+ function equals$b(existing, incoming) {
5042
5042
  const existing_templates = existing.templates;
5043
5043
  const incoming_templates = incoming.templates;
5044
5044
  const equals_templates_items = equalsArray(existing_templates, incoming_templates, (existing_templates_item, incoming_templates_item) => {
@@ -5051,48 +5051,48 @@ function equals$9(existing, incoming) {
5051
5051
  }
5052
5052
  return true;
5053
5053
  }
5054
- const ingest$3 = function TemplateCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
5054
+ const ingest$5 = function TemplateCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
5055
5055
  if (process.env.NODE_ENV !== 'production') {
5056
- const validateError = validate$f(input);
5056
+ const validateError = validate$h(input);
5057
5057
  if (validateError !== null) {
5058
5058
  throw validateError;
5059
5059
  }
5060
5060
  }
5061
5061
  const key = path.fullPath;
5062
- const ttlToUse = TTL$3;
5063
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "AppFramework", VERSION$9, RepresentationType$3, equals$9);
5062
+ const ttlToUse = TTL$5;
5063
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "AppFramework", VERSION$b, RepresentationType$5, equals$b);
5064
5064
  return createLink(key);
5065
5065
  };
5066
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
5066
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
5067
5067
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5068
5068
  const rootKey = fullPathFactory();
5069
5069
  rootKeySet.set(rootKey, {
5070
5070
  namespace: keyPrefix,
5071
- representationName: RepresentationType$3,
5071
+ representationName: RepresentationType$5,
5072
5072
  mergeable: false
5073
5073
  });
5074
5074
  const input_templates_length = input.templates.length;
5075
5075
  for (let i = 0; i < input_templates_length; i++) {
5076
- getTypeCacheKeys$4(rootKeySet, luvio, input.templates[i]);
5076
+ getTypeCacheKeys$6(rootKeySet, luvio, input.templates[i]);
5077
5077
  }
5078
5078
  }
5079
5079
 
5080
- function select$g(luvio, params) {
5081
- return select$h();
5080
+ function select$j(luvio, params) {
5081
+ return select$k();
5082
5082
  }
5083
- function keyBuilder$b(luvio, params) {
5083
+ function keyBuilder$e(luvio, params) {
5084
5084
  return keyPrefix + '::TemplateCollectionRepresentation:(' + 'templateSubtype:' + params.queryParams.templateSubtype + ',' + 'type:' + params.queryParams.type + ')';
5085
5085
  }
5086
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
5087
- getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
5086
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
5087
+ getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$e(luvio, resourceParams));
5088
5088
  }
5089
- function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
5089
+ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
5090
5090
  const { body } = response;
5091
- const key = keyBuilder$b(luvio, resourceParams);
5092
- luvio.storeIngest(key, ingest$3, body);
5091
+ const key = keyBuilder$e(luvio, resourceParams);
5092
+ luvio.storeIngest(key, ingest$5, body);
5093
5093
  const snapshot = luvio.storeLookup({
5094
5094
  recordId: key,
5095
- node: select$g(),
5095
+ node: select$j(),
5096
5096
  variables: {},
5097
5097
  }, snapshotRefresh);
5098
5098
  if (process.env.NODE_ENV !== 'production') {
@@ -5103,19 +5103,19 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
5103
5103
  deepFreeze(snapshot.data);
5104
5104
  return snapshot;
5105
5105
  }
5106
- function ingestError$3(luvio, params, error, snapshotRefresh) {
5107
- const key = keyBuilder$b(luvio, params);
5106
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
5107
+ const key = keyBuilder$e(luvio, params);
5108
5108
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
5109
5109
  const storeMetadataParams = {
5110
- ttl: TTL$3,
5110
+ ttl: TTL$5,
5111
5111
  namespace: keyPrefix,
5112
- version: VERSION$9,
5113
- representationName: RepresentationType$3
5112
+ version: VERSION$b,
5113
+ representationName: RepresentationType$5
5114
5114
  };
5115
5115
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
5116
5116
  return errorSnapshot;
5117
5117
  }
5118
- function createResourceRequest$8(config) {
5118
+ function createResourceRequest$9(config) {
5119
5119
  const headers = {};
5120
5120
  return {
5121
5121
  baseUri: '/services/data/v64.0',
@@ -5129,94 +5129,94 @@ function createResourceRequest$8(config) {
5129
5129
  };
5130
5130
  }
5131
5131
 
5132
- const adapterName$8 = 'getTemplates';
5132
+ const adapterName$9 = 'getTemplates';
5133
5133
  const getTemplates_ConfigPropertyMetadata = [
5134
5134
  generateParamConfigMetadata('templateSubtype', false, 1 /* QueryParameter */, 0 /* String */),
5135
5135
  generateParamConfigMetadata('type', false, 1 /* QueryParameter */, 0 /* String */),
5136
5136
  ];
5137
- const getTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getTemplates_ConfigPropertyMetadata);
5138
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$n(getTemplates_ConfigPropertyMetadata);
5139
- function keyBuilder$a(luvio, config) {
5140
- const resourceParams = createResourceParams$8(config);
5141
- return keyBuilder$b(luvio, resourceParams);
5137
+ const getTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getTemplates_ConfigPropertyMetadata);
5138
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$o(getTemplates_ConfigPropertyMetadata);
5139
+ function keyBuilder$d(luvio, config) {
5140
+ const resourceParams = createResourceParams$9(config);
5141
+ return keyBuilder$e(luvio, resourceParams);
5142
5142
  }
5143
- function typeCheckConfig$8(untrustedConfig) {
5143
+ function typeCheckConfig$9(untrustedConfig) {
5144
5144
  const config = {};
5145
- typeCheckConfig$n(untrustedConfig, config, getTemplates_ConfigPropertyMetadata);
5145
+ typeCheckConfig$o(untrustedConfig, config, getTemplates_ConfigPropertyMetadata);
5146
5146
  return config;
5147
5147
  }
5148
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
5148
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
5149
5149
  if (!untrustedIsObject(untrustedConfig)) {
5150
5150
  return null;
5151
5151
  }
5152
5152
  if (process.env.NODE_ENV !== 'production') {
5153
5153
  validateConfig(untrustedConfig, configPropertyNames);
5154
5154
  }
5155
- const config = typeCheckConfig$8(untrustedConfig);
5155
+ const config = typeCheckConfig$9(untrustedConfig);
5156
5156
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
5157
5157
  return null;
5158
5158
  }
5159
5159
  return config;
5160
5160
  }
5161
- function adapterFragment$3(luvio, config) {
5162
- createResourceParams$8(config);
5163
- return select$g();
5161
+ function adapterFragment$4(luvio, config) {
5162
+ createResourceParams$9(config);
5163
+ return select$j();
5164
5164
  }
5165
- function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
5166
- const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
5165
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
5166
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
5167
5167
  config,
5168
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
5168
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
5169
5169
  });
5170
5170
  return luvio.storeBroadcast().then(() => snapshot);
5171
5171
  }
5172
- function onFetchResponseError$3(luvio, config, resourceParams, response) {
5173
- const snapshot = ingestError$3(luvio, resourceParams, response, {
5172
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
5173
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
5174
5174
  config,
5175
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
5175
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
5176
5176
  });
5177
5177
  return luvio.storeBroadcast().then(() => snapshot);
5178
5178
  }
5179
- function buildNetworkSnapshot$8(luvio, config, options) {
5180
- const resourceParams = createResourceParams$8(config);
5181
- const request = createResourceRequest$8(resourceParams);
5179
+ function buildNetworkSnapshot$9(luvio, config, options) {
5180
+ const resourceParams = createResourceParams$9(config);
5181
+ const request = createResourceRequest$9(resourceParams);
5182
5182
  return luvio.dispatchResourceRequest(request, options)
5183
5183
  .then((response) => {
5184
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
5184
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
5185
5185
  const cache = new StoreKeyMap();
5186
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
5186
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
5187
5187
  return cache;
5188
5188
  });
5189
5189
  }, (response) => {
5190
- return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
5190
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
5191
5191
  });
5192
5192
  }
5193
- function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
5194
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
5193
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
5194
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
5195
5195
  }
5196
- function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
5196
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
5197
5197
  const { luvio, config } = context;
5198
5198
  const selector = {
5199
- recordId: keyBuilder$a(luvio, config),
5200
- node: adapterFragment$3(luvio, config),
5199
+ recordId: keyBuilder$d(luvio, config),
5200
+ node: adapterFragment$4(luvio, config),
5201
5201
  variables: {},
5202
5202
  };
5203
5203
  const cacheSnapshot = storeLookup(selector, {
5204
5204
  config,
5205
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
5205
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
5206
5206
  });
5207
5207
  return cacheSnapshot;
5208
5208
  }
5209
5209
  const getTemplatesAdapterFactory = (luvio) => function AppFramework__getTemplates(untrustedConfig, requestContext) {
5210
- const config = validateAdapterConfig$8(untrustedConfig, getTemplates_ConfigPropertyNames);
5210
+ const config = validateAdapterConfig$9(untrustedConfig, getTemplates_ConfigPropertyNames);
5211
5211
  // Invalid or incomplete config
5212
5212
  if (config === null) {
5213
5213
  return null;
5214
5214
  }
5215
5215
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
5216
- buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
5216
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
5217
5217
  };
5218
5218
 
5219
- function validate$e(obj, path = 'ChainDefinitionInputRepresentation') {
5219
+ function validate$g(obj, path = 'ChainDefinitionInputRepresentation') {
5220
5220
  const v_error = (() => {
5221
5221
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5222
5222
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5242,7 +5242,7 @@ function validate$e(obj, path = 'ChainDefinitionInputRepresentation') {
5242
5242
  return v_error === undefined ? null : v_error;
5243
5243
  }
5244
5244
 
5245
- function validate$d(obj, path = 'TemplateImageInputRepresentation') {
5245
+ function validate$f(obj, path = 'TemplateImageInputRepresentation') {
5246
5246
  const v_error = (() => {
5247
5247
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5248
5248
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5263,14 +5263,14 @@ function validate$d(obj, path = 'TemplateImageInputRepresentation') {
5263
5263
  return v_error === undefined ? null : v_error;
5264
5264
  }
5265
5265
 
5266
- function validate$c(obj, path = 'TemplateIconsInputRepresentation') {
5266
+ function validate$e(obj, path = 'TemplateIconsInputRepresentation') {
5267
5267
  const v_error = (() => {
5268
5268
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5269
5269
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5270
5270
  }
5271
5271
  const obj_appBadge = obj.appBadge;
5272
5272
  const path_appBadge = path + '.appBadge';
5273
- const referencepath_appBadgeValidationError = validate$d(obj_appBadge, path_appBadge);
5273
+ const referencepath_appBadgeValidationError = validate$f(obj_appBadge, path_appBadge);
5274
5274
  if (referencepath_appBadgeValidationError !== null) {
5275
5275
  let message = 'Object doesn\'t match TemplateImageInputRepresentation (at "' + path_appBadge + '")\n';
5276
5276
  message += referencepath_appBadgeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5278,7 +5278,7 @@ function validate$c(obj, path = 'TemplateIconsInputRepresentation') {
5278
5278
  }
5279
5279
  const obj_templateBadge = obj.templateBadge;
5280
5280
  const path_templateBadge = path + '.templateBadge';
5281
- const referencepath_templateBadgeValidationError = validate$d(obj_templateBadge, path_templateBadge);
5281
+ const referencepath_templateBadgeValidationError = validate$f(obj_templateBadge, path_templateBadge);
5282
5282
  if (referencepath_templateBadgeValidationError !== null) {
5283
5283
  let message = 'Object doesn\'t match TemplateImageInputRepresentation (at "' + path_templateBadge + '")\n';
5284
5284
  message += referencepath_templateBadgeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5292,7 +5292,7 @@ function validate$c(obj, path = 'TemplateIconsInputRepresentation') {
5292
5292
  for (let i = 0; i < obj_templatePreviews.length; i++) {
5293
5293
  const obj_templatePreviews_item = obj_templatePreviews[i];
5294
5294
  const path_templatePreviews_item = path_templatePreviews + '[' + i + ']';
5295
- const referencepath_templatePreviews_itemValidationError = validate$d(obj_templatePreviews_item, path_templatePreviews_item);
5295
+ const referencepath_templatePreviews_itemValidationError = validate$f(obj_templatePreviews_item, path_templatePreviews_item);
5296
5296
  if (referencepath_templatePreviews_itemValidationError !== null) {
5297
5297
  let message = 'Object doesn\'t match TemplateImageInputRepresentation (at "' + path_templatePreviews_item + '")\n';
5298
5298
  message += referencepath_templatePreviews_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5303,7 +5303,7 @@ function validate$c(obj, path = 'TemplateIconsInputRepresentation') {
5303
5303
  return v_error === undefined ? null : v_error;
5304
5304
  }
5305
5305
 
5306
- function validate$b(obj, path = 'ReleaseInfoInputRepresentation') {
5306
+ function validate$d(obj, path = 'ReleaseInfoInputRepresentation') {
5307
5307
  const v_error = (() => {
5308
5308
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5309
5309
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5324,7 +5324,7 @@ function validate$b(obj, path = 'ReleaseInfoInputRepresentation') {
5324
5324
  return v_error === undefined ? null : v_error;
5325
5325
  }
5326
5326
 
5327
- function validate$a(obj, path = 'RuleInfoInputRepresentation') {
5327
+ function validate$c(obj, path = 'RuleInfoInputRepresentation') {
5328
5328
  const v_error = (() => {
5329
5329
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5330
5330
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5343,19 +5343,19 @@ function validate$a(obj, path = 'RuleInfoInputRepresentation') {
5343
5343
  return v_error === undefined ? null : v_error;
5344
5344
  }
5345
5345
 
5346
- function select$f(luvio, params) {
5347
- return select$i();
5346
+ function select$i(luvio, params) {
5347
+ return select$l();
5348
5348
  }
5349
- function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
5350
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
5349
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
5350
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
5351
5351
  }
5352
- function ingestSuccess$6(luvio, resourceParams, response) {
5352
+ function ingestSuccess$7(luvio, resourceParams, response) {
5353
5353
  const { body } = response;
5354
- const key = keyBuilderFromType$3(luvio, body);
5355
- luvio.storeIngest(key, ingest$4, body);
5354
+ const key = keyBuilderFromType$4(luvio, body);
5355
+ luvio.storeIngest(key, ingest$6, body);
5356
5356
  const snapshot = luvio.storeLookup({
5357
5357
  recordId: key,
5358
- node: select$f(),
5358
+ node: select$i(),
5359
5359
  variables: {},
5360
5360
  });
5361
5361
  if (process.env.NODE_ENV !== 'production') {
@@ -5366,7 +5366,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
5366
5366
  deepFreeze(snapshot.data);
5367
5367
  return snapshot;
5368
5368
  }
5369
- function createResourceRequest$7(config) {
5369
+ function createResourceRequest$8(config) {
5370
5370
  const headers = {};
5371
5371
  return {
5372
5372
  baseUri: '/services/data/v64.0',
@@ -5380,7 +5380,7 @@ function createResourceRequest$7(config) {
5380
5380
  };
5381
5381
  }
5382
5382
 
5383
- const adapterName$7 = 'createTemplate';
5383
+ const adapterName$8 = 'createTemplate';
5384
5384
  const createTemplate_ConfigPropertyMetadata = [
5385
5385
  generateParamConfigMetadata('applicationSourceId', false, 2 /* Body */, 0 /* String */),
5386
5386
  generateParamConfigMetadata('assetVersion', false, 2 /* Body */, 2 /* Number */),
@@ -5400,17 +5400,17 @@ const createTemplate_ConfigPropertyMetadata = [
5400
5400
  generateParamConfigMetadata('templateType', true, 2 /* Body */, 0 /* String */),
5401
5401
  generateParamConfigMetadata('variableDefinition', false, 2 /* Body */, 0 /* String */),
5402
5402
  ];
5403
- const createTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createTemplate_ConfigPropertyMetadata);
5404
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$n(createTemplate_ConfigPropertyMetadata);
5405
- function typeCheckConfig$7(untrustedConfig) {
5403
+ const createTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createTemplate_ConfigPropertyMetadata);
5404
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$o(createTemplate_ConfigPropertyMetadata);
5405
+ function typeCheckConfig$8(untrustedConfig) {
5406
5406
  const config = {};
5407
- typeCheckConfig$n(untrustedConfig, config, createTemplate_ConfigPropertyMetadata);
5407
+ typeCheckConfig$o(untrustedConfig, config, createTemplate_ConfigPropertyMetadata);
5408
5408
  const untrustedConfig_chainDefinitions = untrustedConfig.chainDefinitions;
5409
5409
  if (ArrayIsArray$1(untrustedConfig_chainDefinitions)) {
5410
5410
  const untrustedConfig_chainDefinitions_array = [];
5411
5411
  for (let i = 0, arrayLength = untrustedConfig_chainDefinitions.length; i < arrayLength; i++) {
5412
5412
  const untrustedConfig_chainDefinitions_item = untrustedConfig_chainDefinitions[i];
5413
- const referenceChainDefinitionInputRepresentationValidationError = validate$e(untrustedConfig_chainDefinitions_item);
5413
+ const referenceChainDefinitionInputRepresentationValidationError = validate$g(untrustedConfig_chainDefinitions_item);
5414
5414
  if (referenceChainDefinitionInputRepresentationValidationError === null) {
5415
5415
  untrustedConfig_chainDefinitions_array.push(untrustedConfig_chainDefinitions_item);
5416
5416
  }
@@ -5418,12 +5418,12 @@ function typeCheckConfig$7(untrustedConfig) {
5418
5418
  config.chainDefinitions = untrustedConfig_chainDefinitions_array;
5419
5419
  }
5420
5420
  const untrustedConfig_icons = untrustedConfig.icons;
5421
- const referenceTemplateIconsInputRepresentationValidationError = validate$c(untrustedConfig_icons);
5421
+ const referenceTemplateIconsInputRepresentationValidationError = validate$e(untrustedConfig_icons);
5422
5422
  if (referenceTemplateIconsInputRepresentationValidationError === null) {
5423
5423
  config.icons = untrustedConfig_icons;
5424
5424
  }
5425
5425
  const untrustedConfig_releaseInfo = untrustedConfig.releaseInfo;
5426
- const referenceReleaseInfoInputRepresentationValidationError = validate$b(untrustedConfig_releaseInfo);
5426
+ const referenceReleaseInfoInputRepresentationValidationError = validate$d(untrustedConfig_releaseInfo);
5427
5427
  if (referenceReleaseInfoInputRepresentationValidationError === null) {
5428
5428
  config.releaseInfo = untrustedConfig_releaseInfo;
5429
5429
  }
@@ -5432,7 +5432,7 @@ function typeCheckConfig$7(untrustedConfig) {
5432
5432
  const untrustedConfig_rules_array = [];
5433
5433
  for (let i = 0, arrayLength = untrustedConfig_rules.length; i < arrayLength; i++) {
5434
5434
  const untrustedConfig_rules_item = untrustedConfig_rules[i];
5435
- const referenceRuleInfoInputRepresentationValidationError = validate$a(untrustedConfig_rules_item);
5435
+ const referenceRuleInfoInputRepresentationValidationError = validate$c(untrustedConfig_rules_item);
5436
5436
  if (referenceRuleInfoInputRepresentationValidationError === null) {
5437
5437
  untrustedConfig_rules_array.push(untrustedConfig_rules_item);
5438
5438
  }
@@ -5456,30 +5456,30 @@ function typeCheckConfig$7(untrustedConfig) {
5456
5456
  }
5457
5457
  return config;
5458
5458
  }
5459
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
5459
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
5460
5460
  if (!untrustedIsObject(untrustedConfig)) {
5461
5461
  return null;
5462
5462
  }
5463
5463
  if (process.env.NODE_ENV !== 'production') {
5464
5464
  validateConfig(untrustedConfig, configPropertyNames);
5465
5465
  }
5466
- const config = typeCheckConfig$7(untrustedConfig);
5466
+ const config = typeCheckConfig$8(untrustedConfig);
5467
5467
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
5468
5468
  return null;
5469
5469
  }
5470
5470
  return config;
5471
5471
  }
5472
- function buildNetworkSnapshot$7(luvio, config, options) {
5473
- const resourceParams = createResourceParams$7(config);
5474
- const request = createResourceRequest$7(resourceParams);
5472
+ function buildNetworkSnapshot$8(luvio, config, options) {
5473
+ const resourceParams = createResourceParams$8(config);
5474
+ const request = createResourceRequest$8(resourceParams);
5475
5475
  return luvio.dispatchResourceRequest(request, options)
5476
5476
  .then((response) => {
5477
5477
  return luvio.handleSuccessResponse(() => {
5478
- const snapshot = ingestSuccess$6(luvio, resourceParams, response);
5478
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
5479
5479
  return luvio.storeBroadcast().then(() => snapshot);
5480
5480
  }, () => {
5481
5481
  const cache = new StoreKeyMap();
5482
- getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
5482
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
5483
5483
  return cache;
5484
5484
  });
5485
5485
  }, (response) => {
@@ -5489,33 +5489,33 @@ function buildNetworkSnapshot$7(luvio, config, options) {
5489
5489
  }
5490
5490
  const createTemplateAdapterFactory = (luvio) => {
5491
5491
  return function createTemplate(untrustedConfig) {
5492
- const config = validateAdapterConfig$7(untrustedConfig, createTemplate_ConfigPropertyNames);
5492
+ const config = validateAdapterConfig$8(untrustedConfig, createTemplate_ConfigPropertyNames);
5493
5493
  // Invalid or incomplete config
5494
5494
  if (config === null) {
5495
5495
  throw new Error('Invalid config for "createTemplate"');
5496
5496
  }
5497
- return buildNetworkSnapshot$7(luvio, config);
5497
+ return buildNetworkSnapshot$8(luvio, config);
5498
5498
  };
5499
5499
  };
5500
5500
 
5501
- function select$e(luvio, params) {
5502
- return select$i();
5501
+ function select$h(luvio, params) {
5502
+ return select$l();
5503
5503
  }
5504
- function keyBuilder$9(luvio, params) {
5505
- return keyBuilder$c(luvio, {
5504
+ function keyBuilder$c(luvio, params) {
5505
+ return keyBuilder$f(luvio, {
5506
5506
  id: params.urlParams.templateIdOrApiName
5507
5507
  });
5508
5508
  }
5509
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
5510
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
5509
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
5510
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
5511
5511
  }
5512
- function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
5512
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
5513
5513
  const { body } = response;
5514
- const key = keyBuilder$9(luvio, resourceParams);
5515
- luvio.storeIngest(key, ingest$4, body);
5514
+ const key = keyBuilder$c(luvio, resourceParams);
5515
+ luvio.storeIngest(key, ingest$6, body);
5516
5516
  const snapshot = luvio.storeLookup({
5517
5517
  recordId: key,
5518
- node: select$e(),
5518
+ node: select$h(),
5519
5519
  variables: {},
5520
5520
  }, snapshotRefresh);
5521
5521
  if (process.env.NODE_ENV !== 'production') {
@@ -5526,19 +5526,19 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
5526
5526
  deepFreeze(snapshot.data);
5527
5527
  return snapshot;
5528
5528
  }
5529
- function ingestError$2(luvio, params, error, snapshotRefresh) {
5530
- const key = keyBuilder$9(luvio, params);
5529
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
5530
+ const key = keyBuilder$c(luvio, params);
5531
5531
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
5532
5532
  const storeMetadataParams = {
5533
- ttl: TTL$4,
5533
+ ttl: TTL$6,
5534
5534
  namespace: keyPrefix,
5535
- version: VERSION$a,
5536
- representationName: RepresentationType$4
5535
+ version: VERSION$c,
5536
+ representationName: RepresentationType$6
5537
5537
  };
5538
5538
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
5539
5539
  return errorSnapshot;
5540
5540
  }
5541
- function createResourceRequest$6(config) {
5541
+ function createResourceRequest$7(config) {
5542
5542
  const headers = {};
5543
5543
  return {
5544
5544
  baseUri: '/services/data/v64.0',
@@ -5552,105 +5552,105 @@ function createResourceRequest$6(config) {
5552
5552
  };
5553
5553
  }
5554
5554
 
5555
- const adapterName$6 = 'getTemplate';
5555
+ const adapterName$7 = 'getTemplate';
5556
5556
  const getTemplate_ConfigPropertyMetadata = [
5557
5557
  generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
5558
5558
  ];
5559
- const getTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getTemplate_ConfigPropertyMetadata);
5560
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$n(getTemplate_ConfigPropertyMetadata);
5561
- function keyBuilder$8(luvio, config) {
5562
- const resourceParams = createResourceParams$6(config);
5563
- return keyBuilder$9(luvio, resourceParams);
5559
+ const getTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getTemplate_ConfigPropertyMetadata);
5560
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$o(getTemplate_ConfigPropertyMetadata);
5561
+ function keyBuilder$b(luvio, config) {
5562
+ const resourceParams = createResourceParams$7(config);
5563
+ return keyBuilder$c(luvio, resourceParams);
5564
5564
  }
5565
- function typeCheckConfig$6(untrustedConfig) {
5565
+ function typeCheckConfig$7(untrustedConfig) {
5566
5566
  const config = {};
5567
- typeCheckConfig$n(untrustedConfig, config, getTemplate_ConfigPropertyMetadata);
5567
+ typeCheckConfig$o(untrustedConfig, config, getTemplate_ConfigPropertyMetadata);
5568
5568
  return config;
5569
5569
  }
5570
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
5570
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
5571
5571
  if (!untrustedIsObject(untrustedConfig)) {
5572
5572
  return null;
5573
5573
  }
5574
5574
  if (process.env.NODE_ENV !== 'production') {
5575
5575
  validateConfig(untrustedConfig, configPropertyNames);
5576
5576
  }
5577
- const config = typeCheckConfig$6(untrustedConfig);
5577
+ const config = typeCheckConfig$7(untrustedConfig);
5578
5578
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
5579
5579
  return null;
5580
5580
  }
5581
5581
  return config;
5582
5582
  }
5583
- function adapterFragment$2(luvio, config) {
5584
- createResourceParams$6(config);
5585
- return select$e();
5583
+ function adapterFragment$3(luvio, config) {
5584
+ createResourceParams$7(config);
5585
+ return select$h();
5586
5586
  }
5587
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
5588
- const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
5587
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
5588
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
5589
5589
  config,
5590
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
5590
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
5591
5591
  });
5592
5592
  return luvio.storeBroadcast().then(() => snapshot);
5593
5593
  }
5594
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
5595
- const snapshot = ingestError$2(luvio, resourceParams, response, {
5594
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
5595
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
5596
5596
  config,
5597
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
5597
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
5598
5598
  });
5599
5599
  return luvio.storeBroadcast().then(() => snapshot);
5600
5600
  }
5601
- function buildNetworkSnapshot$6(luvio, config, options) {
5602
- const resourceParams = createResourceParams$6(config);
5603
- const request = createResourceRequest$6(resourceParams);
5601
+ function buildNetworkSnapshot$7(luvio, config, options) {
5602
+ const resourceParams = createResourceParams$7(config);
5603
+ const request = createResourceRequest$7(resourceParams);
5604
5604
  return luvio.dispatchResourceRequest(request, options)
5605
5605
  .then((response) => {
5606
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
5606
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
5607
5607
  const cache = new StoreKeyMap();
5608
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
5608
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
5609
5609
  return cache;
5610
5610
  });
5611
5611
  }, (response) => {
5612
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
5612
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
5613
5613
  });
5614
5614
  }
5615
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
5616
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
5615
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
5616
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
5617
5617
  }
5618
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
5618
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
5619
5619
  const { luvio, config } = context;
5620
5620
  const selector = {
5621
- recordId: keyBuilder$8(luvio, config),
5622
- node: adapterFragment$2(luvio, config),
5621
+ recordId: keyBuilder$b(luvio, config),
5622
+ node: adapterFragment$3(luvio, config),
5623
5623
  variables: {},
5624
5624
  };
5625
5625
  const cacheSnapshot = storeLookup(selector, {
5626
5626
  config,
5627
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
5627
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
5628
5628
  });
5629
5629
  return cacheSnapshot;
5630
5630
  }
5631
5631
  const getTemplateAdapterFactory = (luvio) => function AppFramework__getTemplate(untrustedConfig, requestContext) {
5632
- const config = validateAdapterConfig$6(untrustedConfig, getTemplate_ConfigPropertyNames);
5632
+ const config = validateAdapterConfig$7(untrustedConfig, getTemplate_ConfigPropertyNames);
5633
5633
  // Invalid or incomplete config
5634
5634
  if (config === null) {
5635
5635
  return null;
5636
5636
  }
5637
5637
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
5638
- buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
5638
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
5639
5639
  };
5640
5640
 
5641
- function select$d(luvio, params) {
5642
- return select$i();
5641
+ function select$g(luvio, params) {
5642
+ return select$l();
5643
5643
  }
5644
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
5645
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
5644
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
5645
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
5646
5646
  }
5647
- function ingestSuccess$4(luvio, resourceParams, response) {
5647
+ function ingestSuccess$5(luvio, resourceParams, response) {
5648
5648
  const { body } = response;
5649
- const key = keyBuilderFromType$3(luvio, body);
5650
- luvio.storeIngest(key, ingest$4, body);
5649
+ const key = keyBuilderFromType$4(luvio, body);
5650
+ luvio.storeIngest(key, ingest$6, body);
5651
5651
  const snapshot = luvio.storeLookup({
5652
5652
  recordId: key,
5653
- node: select$d(),
5653
+ node: select$g(),
5654
5654
  variables: {},
5655
5655
  });
5656
5656
  if (process.env.NODE_ENV !== 'production') {
@@ -5661,7 +5661,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
5661
5661
  deepFreeze(snapshot.data);
5662
5662
  return snapshot;
5663
5663
  }
5664
- function createResourceRequest$5(config) {
5664
+ function createResourceRequest$6(config) {
5665
5665
  const headers = {};
5666
5666
  return {
5667
5667
  baseUri: '/services/data/v64.0',
@@ -5675,7 +5675,7 @@ function createResourceRequest$5(config) {
5675
5675
  };
5676
5676
  }
5677
5677
 
5678
- const adapterName$5 = 'updateTemplate';
5678
+ const adapterName$6 = 'updateTemplate';
5679
5679
  const updateTemplate_ConfigPropertyMetadata = [
5680
5680
  generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
5681
5681
  generateParamConfigMetadata('applicationSourceId', false, 2 /* Body */, 0 /* String */),
@@ -5683,42 +5683,42 @@ const updateTemplate_ConfigPropertyMetadata = [
5683
5683
  generateParamConfigMetadata('releaseInfo', false, 2 /* Body */, 4 /* Unsupported */),
5684
5684
  generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
5685
5685
  ];
5686
- const updateTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, updateTemplate_ConfigPropertyMetadata);
5687
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$n(updateTemplate_ConfigPropertyMetadata);
5688
- function typeCheckConfig$5(untrustedConfig) {
5686
+ const updateTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, updateTemplate_ConfigPropertyMetadata);
5687
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$o(updateTemplate_ConfigPropertyMetadata);
5688
+ function typeCheckConfig$6(untrustedConfig) {
5689
5689
  const config = {};
5690
- typeCheckConfig$n(untrustedConfig, config, updateTemplate_ConfigPropertyMetadata);
5690
+ typeCheckConfig$o(untrustedConfig, config, updateTemplate_ConfigPropertyMetadata);
5691
5691
  const untrustedConfig_releaseInfo = untrustedConfig.releaseInfo;
5692
- const referenceReleaseInfoInputRepresentationValidationError = validate$b(untrustedConfig_releaseInfo);
5692
+ const referenceReleaseInfoInputRepresentationValidationError = validate$d(untrustedConfig_releaseInfo);
5693
5693
  if (referenceReleaseInfoInputRepresentationValidationError === null) {
5694
5694
  config.releaseInfo = untrustedConfig_releaseInfo;
5695
5695
  }
5696
5696
  return config;
5697
5697
  }
5698
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
5698
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
5699
5699
  if (!untrustedIsObject(untrustedConfig)) {
5700
5700
  return null;
5701
5701
  }
5702
5702
  if (process.env.NODE_ENV !== 'production') {
5703
5703
  validateConfig(untrustedConfig, configPropertyNames);
5704
5704
  }
5705
- const config = typeCheckConfig$5(untrustedConfig);
5705
+ const config = typeCheckConfig$6(untrustedConfig);
5706
5706
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
5707
5707
  return null;
5708
5708
  }
5709
5709
  return config;
5710
5710
  }
5711
- function buildNetworkSnapshot$5(luvio, config, options) {
5712
- const resourceParams = createResourceParams$5(config);
5713
- const request = createResourceRequest$5(resourceParams);
5711
+ function buildNetworkSnapshot$6(luvio, config, options) {
5712
+ const resourceParams = createResourceParams$6(config);
5713
+ const request = createResourceRequest$6(resourceParams);
5714
5714
  return luvio.dispatchResourceRequest(request, options)
5715
5715
  .then((response) => {
5716
5716
  return luvio.handleSuccessResponse(() => {
5717
- const snapshot = ingestSuccess$4(luvio, resourceParams, response);
5717
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
5718
5718
  return luvio.storeBroadcast().then(() => snapshot);
5719
5719
  }, () => {
5720
5720
  const cache = new StoreKeyMap();
5721
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
5721
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
5722
5722
  return cache;
5723
5723
  });
5724
5724
  }, (response) => {
@@ -5728,33 +5728,33 @@ function buildNetworkSnapshot$5(luvio, config, options) {
5728
5728
  }
5729
5729
  const updateTemplateAdapterFactory = (luvio) => {
5730
5730
  return function updateTemplate(untrustedConfig) {
5731
- const config = validateAdapterConfig$5(untrustedConfig, updateTemplate_ConfigPropertyNames);
5731
+ const config = validateAdapterConfig$6(untrustedConfig, updateTemplate_ConfigPropertyNames);
5732
5732
  // Invalid or incomplete config
5733
5733
  if (config === null) {
5734
5734
  throw new Error('Invalid config for "updateTemplate"');
5735
5735
  }
5736
- return buildNetworkSnapshot$5(luvio, config);
5736
+ return buildNetworkSnapshot$6(luvio, config);
5737
5737
  };
5738
5738
  };
5739
5739
 
5740
- function keyBuilder$7(luvio, params) {
5741
- return keyBuilder$c(luvio, {
5740
+ function keyBuilder$a(luvio, params) {
5741
+ return keyBuilder$f(luvio, {
5742
5742
  id: params.urlParams.templateIdOrApiName
5743
5743
  });
5744
5744
  }
5745
- function getResponseCacheKeys$4(cacheKeyMap, luvio, resourceParams) {
5746
- const key = keyBuilder$7(luvio, resourceParams);
5745
+ function getResponseCacheKeys$5(cacheKeyMap, luvio, resourceParams) {
5746
+ const key = keyBuilder$a(luvio, resourceParams);
5747
5747
  cacheKeyMap.set(key, {
5748
5748
  namespace: keyPrefix,
5749
- representationName: RepresentationType$4,
5749
+ representationName: RepresentationType$6,
5750
5750
  mergeable: false
5751
5751
  });
5752
5752
  }
5753
5753
  function evictSuccess(luvio, resourceParams) {
5754
- const key = keyBuilder$7(luvio, resourceParams);
5754
+ const key = keyBuilder$a(luvio, resourceParams);
5755
5755
  luvio.storeEvict(key);
5756
5756
  }
5757
- function createResourceRequest$4(config) {
5757
+ function createResourceRequest$5(config) {
5758
5758
  const headers = {};
5759
5759
  return {
5760
5760
  baseUri: '/services/data/v64.0',
@@ -5768,33 +5768,33 @@ function createResourceRequest$4(config) {
5768
5768
  };
5769
5769
  }
5770
5770
 
5771
- const adapterName$4 = 'deleteTemplate';
5771
+ const adapterName$5 = 'deleteTemplate';
5772
5772
  const deleteTemplate_ConfigPropertyMetadata = [
5773
5773
  generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
5774
5774
  ];
5775
- const deleteTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deleteTemplate_ConfigPropertyMetadata);
5776
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$n(deleteTemplate_ConfigPropertyMetadata);
5777
- function typeCheckConfig$4(untrustedConfig) {
5775
+ const deleteTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, deleteTemplate_ConfigPropertyMetadata);
5776
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$o(deleteTemplate_ConfigPropertyMetadata);
5777
+ function typeCheckConfig$5(untrustedConfig) {
5778
5778
  const config = {};
5779
- typeCheckConfig$n(untrustedConfig, config, deleteTemplate_ConfigPropertyMetadata);
5779
+ typeCheckConfig$o(untrustedConfig, config, deleteTemplate_ConfigPropertyMetadata);
5780
5780
  return config;
5781
5781
  }
5782
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
5782
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
5783
5783
  if (!untrustedIsObject(untrustedConfig)) {
5784
5784
  return null;
5785
5785
  }
5786
5786
  if (process.env.NODE_ENV !== 'production') {
5787
5787
  validateConfig(untrustedConfig, configPropertyNames);
5788
5788
  }
5789
- const config = typeCheckConfig$4(untrustedConfig);
5789
+ const config = typeCheckConfig$5(untrustedConfig);
5790
5790
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
5791
5791
  return null;
5792
5792
  }
5793
5793
  return config;
5794
5794
  }
5795
- function buildNetworkSnapshot$4(luvio, config, options) {
5796
- const resourceParams = createResourceParams$4(config);
5797
- const request = createResourceRequest$4(resourceParams);
5795
+ function buildNetworkSnapshot$5(luvio, config, options) {
5796
+ const resourceParams = createResourceParams$5(config);
5797
+ const request = createResourceRequest$5(resourceParams);
5798
5798
  return luvio.dispatchResourceRequest(request, options)
5799
5799
  .then(() => {
5800
5800
  return luvio.handleSuccessResponse(() => {
@@ -5802,7 +5802,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
5802
5802
  return luvio.storeBroadcast();
5803
5803
  }, () => {
5804
5804
  const cache = new StoreKeyMap();
5805
- getResponseCacheKeys$4(cache, luvio, resourceParams);
5805
+ getResponseCacheKeys$5(cache, luvio, resourceParams);
5806
5806
  return cache;
5807
5807
  });
5808
5808
  }, (response) => {
@@ -5812,15 +5812,432 @@ function buildNetworkSnapshot$4(luvio, config, options) {
5812
5812
  }
5813
5813
  const deleteTemplateAdapterFactory = (luvio) => {
5814
5814
  return function AppFrameworkdeleteTemplate(untrustedConfig) {
5815
- const config = validateAdapterConfig$4(untrustedConfig, deleteTemplate_ConfigPropertyNames);
5815
+ const config = validateAdapterConfig$5(untrustedConfig, deleteTemplate_ConfigPropertyNames);
5816
5816
  // Invalid or incomplete config
5817
5817
  if (config === null) {
5818
- throw new Error(`Invalid config for "${adapterName$4}"`);
5818
+ throw new Error(`Invalid config for "${adapterName$5}"`);
5819
5819
  }
5820
- return buildNetworkSnapshot$4(luvio, config);
5820
+ return buildNetworkSnapshot$5(luvio, config);
5821
5821
  };
5822
5822
  };
5823
5823
 
5824
+ const TTL$4 = 5000;
5825
+ const VERSION$a = "4e343e5af1f633a89fc929a65d39fd84";
5826
+ function validate$b(obj, path = 'TemplatedAssetRepresentation') {
5827
+ const v_error = (() => {
5828
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5829
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5830
+ }
5831
+ const obj_assetType = obj.assetType;
5832
+ const path_assetType = path + '.assetType';
5833
+ if (typeof obj_assetType !== 'string') {
5834
+ return new TypeError('Expected "string" but received "' + typeof obj_assetType + '" (at "' + path_assetType + '")');
5835
+ }
5836
+ const obj_body = obj.body;
5837
+ const path_body = path + '.body';
5838
+ let obj_body_union0 = null;
5839
+ const obj_body_union0_error = (() => {
5840
+ if (typeof obj_body !== 'string') {
5841
+ return new TypeError('Expected "string" but received "' + typeof obj_body + '" (at "' + path_body + '")');
5842
+ }
5843
+ })();
5844
+ if (obj_body_union0_error != null) {
5845
+ obj_body_union0 = obj_body_union0_error.message;
5846
+ }
5847
+ let obj_body_union1 = null;
5848
+ const obj_body_union1_error = (() => {
5849
+ if (obj_body !== null) {
5850
+ return new TypeError('Expected "null" but received "' + typeof obj_body + '" (at "' + path_body + '")');
5851
+ }
5852
+ })();
5853
+ if (obj_body_union1_error != null) {
5854
+ obj_body_union1 = obj_body_union1_error.message;
5855
+ }
5856
+ if (obj_body_union0 && obj_body_union1) {
5857
+ let message = 'Object doesn\'t match union (at "' + path_body + '")';
5858
+ message += '\n' + obj_body_union0.split('\n').map((line) => '\t' + line).join('\n');
5859
+ message += '\n' + obj_body_union1.split('\n').map((line) => '\t' + line).join('\n');
5860
+ return new TypeError(message);
5861
+ }
5862
+ const obj_fileName = obj.fileName;
5863
+ const path_fileName = path + '.fileName';
5864
+ let obj_fileName_union0 = null;
5865
+ const obj_fileName_union0_error = (() => {
5866
+ if (typeof obj_fileName !== 'string') {
5867
+ return new TypeError('Expected "string" but received "' + typeof obj_fileName + '" (at "' + path_fileName + '")');
5868
+ }
5869
+ })();
5870
+ if (obj_fileName_union0_error != null) {
5871
+ obj_fileName_union0 = obj_fileName_union0_error.message;
5872
+ }
5873
+ let obj_fileName_union1 = null;
5874
+ const obj_fileName_union1_error = (() => {
5875
+ if (obj_fileName !== null) {
5876
+ return new TypeError('Expected "null" but received "' + typeof obj_fileName + '" (at "' + path_fileName + '")');
5877
+ }
5878
+ })();
5879
+ if (obj_fileName_union1_error != null) {
5880
+ obj_fileName_union1 = obj_fileName_union1_error.message;
5881
+ }
5882
+ if (obj_fileName_union0 && obj_fileName_union1) {
5883
+ let message = 'Object doesn\'t match union (at "' + path_fileName + '")';
5884
+ message += '\n' + obj_fileName_union0.split('\n').map((line) => '\t' + line).join('\n');
5885
+ message += '\n' + obj_fileName_union1.split('\n').map((line) => '\t' + line).join('\n');
5886
+ return new TypeError(message);
5887
+ }
5888
+ const obj_id = obj.id;
5889
+ const path_id = path + '.id';
5890
+ if (typeof obj_id !== 'string') {
5891
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
5892
+ }
5893
+ const obj_templateId = obj.templateId;
5894
+ const path_templateId = path + '.templateId';
5895
+ if (typeof obj_templateId !== 'string') {
5896
+ return new TypeError('Expected "string" but received "' + typeof obj_templateId + '" (at "' + path_templateId + '")');
5897
+ }
5898
+ const obj_templatedAssetName = obj.templatedAssetName;
5899
+ const path_templatedAssetName = path + '.templatedAssetName';
5900
+ if (typeof obj_templatedAssetName !== 'string') {
5901
+ return new TypeError('Expected "string" but received "' + typeof obj_templatedAssetName + '" (at "' + path_templatedAssetName + '")');
5902
+ }
5903
+ })();
5904
+ return v_error === undefined ? null : v_error;
5905
+ }
5906
+ const RepresentationType$4 = 'TemplatedAssetRepresentation';
5907
+ function keyBuilder$9(luvio, config) {
5908
+ return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
5909
+ }
5910
+ function keyBuilderFromType$3(luvio, object) {
5911
+ const keyParams = {
5912
+ id: object.id
5913
+ };
5914
+ return keyBuilder$9(luvio, keyParams);
5915
+ }
5916
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
5917
+ return input;
5918
+ }
5919
+ const select$f = function TemplatedAssetRepresentationSelect() {
5920
+ return {
5921
+ kind: 'Fragment',
5922
+ version: VERSION$a,
5923
+ private: [],
5924
+ selections: [
5925
+ {
5926
+ name: 'assetType',
5927
+ kind: 'Scalar'
5928
+ },
5929
+ {
5930
+ name: 'body',
5931
+ kind: 'Scalar'
5932
+ },
5933
+ {
5934
+ name: 'fileName',
5935
+ kind: 'Scalar'
5936
+ },
5937
+ {
5938
+ name: 'id',
5939
+ kind: 'Scalar'
5940
+ },
5941
+ {
5942
+ name: 'templateId',
5943
+ kind: 'Scalar'
5944
+ },
5945
+ {
5946
+ name: 'templatedAssetName',
5947
+ kind: 'Scalar'
5948
+ }
5949
+ ]
5950
+ };
5951
+ };
5952
+ function equals$a(existing, incoming) {
5953
+ const existing_assetType = existing.assetType;
5954
+ const incoming_assetType = incoming.assetType;
5955
+ if (!(existing_assetType === incoming_assetType)) {
5956
+ return false;
5957
+ }
5958
+ const existing_id = existing.id;
5959
+ const incoming_id = incoming.id;
5960
+ if (!(existing_id === incoming_id)) {
5961
+ return false;
5962
+ }
5963
+ const existing_templateId = existing.templateId;
5964
+ const incoming_templateId = incoming.templateId;
5965
+ if (!(existing_templateId === incoming_templateId)) {
5966
+ return false;
5967
+ }
5968
+ const existing_templatedAssetName = existing.templatedAssetName;
5969
+ const incoming_templatedAssetName = incoming.templatedAssetName;
5970
+ if (!(existing_templatedAssetName === incoming_templatedAssetName)) {
5971
+ return false;
5972
+ }
5973
+ const existing_body = existing.body;
5974
+ const incoming_body = incoming.body;
5975
+ if (!(existing_body === incoming_body)) {
5976
+ return false;
5977
+ }
5978
+ const existing_fileName = existing.fileName;
5979
+ const incoming_fileName = incoming.fileName;
5980
+ if (!(existing_fileName === incoming_fileName)) {
5981
+ return false;
5982
+ }
5983
+ return true;
5984
+ }
5985
+ const ingest$4 = function TemplatedAssetRepresentationIngest(input, path, luvio, store, timestamp) {
5986
+ if (process.env.NODE_ENV !== 'production') {
5987
+ const validateError = validate$b(input);
5988
+ if (validateError !== null) {
5989
+ throw validateError;
5990
+ }
5991
+ }
5992
+ const key = keyBuilderFromType$3(luvio, input);
5993
+ const ttlToUse = TTL$4;
5994
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "AppFramework", VERSION$a, RepresentationType$4, equals$a);
5995
+ return createLink(key);
5996
+ };
5997
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
5998
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5999
+ const rootKey = keyBuilderFromType$3(luvio, input);
6000
+ rootKeySet.set(rootKey, {
6001
+ namespace: keyPrefix,
6002
+ representationName: RepresentationType$4,
6003
+ mergeable: false
6004
+ });
6005
+ }
6006
+
6007
+ const TTL$3 = 5000;
6008
+ const VERSION$9 = "4b1832ffd3e3307762285c9d2cbd6143";
6009
+ function validate$a(obj, path = 'TemplatedAssetCollectionRepresentation') {
6010
+ const v_error = (() => {
6011
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6012
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6013
+ }
6014
+ const obj_templatedAssets = obj.templatedAssets;
6015
+ const path_templatedAssets = path + '.templatedAssets';
6016
+ if (!ArrayIsArray(obj_templatedAssets)) {
6017
+ return new TypeError('Expected "array" but received "' + typeof obj_templatedAssets + '" (at "' + path_templatedAssets + '")');
6018
+ }
6019
+ for (let i = 0; i < obj_templatedAssets.length; i++) {
6020
+ const obj_templatedAssets_item = obj_templatedAssets[i];
6021
+ const path_templatedAssets_item = path_templatedAssets + '[' + i + ']';
6022
+ if (typeof obj_templatedAssets_item !== 'object') {
6023
+ return new TypeError('Expected "object" but received "' + typeof obj_templatedAssets_item + '" (at "' + path_templatedAssets_item + '")');
6024
+ }
6025
+ }
6026
+ })();
6027
+ return v_error === undefined ? null : v_error;
6028
+ }
6029
+ const RepresentationType$3 = 'TemplatedAssetCollectionRepresentation';
6030
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
6031
+ const input_templatedAssets = input.templatedAssets;
6032
+ const input_templatedAssets_id = path.fullPath + '__templatedAssets';
6033
+ for (let i = 0; i < input_templatedAssets.length; i++) {
6034
+ const input_templatedAssets_item = input_templatedAssets[i];
6035
+ let input_templatedAssets_item_id = input_templatedAssets_id + '__' + i;
6036
+ input_templatedAssets[i] = ingest$4(input_templatedAssets_item, {
6037
+ fullPath: input_templatedAssets_item_id,
6038
+ propertyName: i,
6039
+ parent: {
6040
+ data: input,
6041
+ key: path.fullPath,
6042
+ existing: existing,
6043
+ },
6044
+ ttl: path.ttl
6045
+ }, luvio, store, timestamp);
6046
+ }
6047
+ return input;
6048
+ }
6049
+ const select$e = function TemplatedAssetCollectionRepresentationSelect() {
6050
+ return {
6051
+ kind: 'Fragment',
6052
+ version: VERSION$9,
6053
+ private: [],
6054
+ selections: [
6055
+ {
6056
+ name: 'templatedAssets',
6057
+ kind: 'Link',
6058
+ plural: true,
6059
+ fragment: select$f()
6060
+ }
6061
+ ]
6062
+ };
6063
+ };
6064
+ function equals$9(existing, incoming) {
6065
+ const existing_templatedAssets = existing.templatedAssets;
6066
+ const incoming_templatedAssets = incoming.templatedAssets;
6067
+ const equals_templatedAssets_items = equalsArray(existing_templatedAssets, incoming_templatedAssets, (existing_templatedAssets_item, incoming_templatedAssets_item) => {
6068
+ if (!(existing_templatedAssets_item.__ref === incoming_templatedAssets_item.__ref)) {
6069
+ return false;
6070
+ }
6071
+ });
6072
+ if (equals_templatedAssets_items === false) {
6073
+ return false;
6074
+ }
6075
+ return true;
6076
+ }
6077
+ const ingest$3 = function TemplatedAssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
6078
+ if (process.env.NODE_ENV !== 'production') {
6079
+ const validateError = validate$a(input);
6080
+ if (validateError !== null) {
6081
+ throw validateError;
6082
+ }
6083
+ }
6084
+ const key = path.fullPath;
6085
+ const ttlToUse = TTL$3;
6086
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "AppFramework", VERSION$9, RepresentationType$3, equals$9);
6087
+ return createLink(key);
6088
+ };
6089
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
6090
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
6091
+ const rootKey = fullPathFactory();
6092
+ rootKeySet.set(rootKey, {
6093
+ namespace: keyPrefix,
6094
+ representationName: RepresentationType$3,
6095
+ mergeable: false
6096
+ });
6097
+ const input_templatedAssets_length = input.templatedAssets.length;
6098
+ for (let i = 0; i < input_templatedAssets_length; i++) {
6099
+ getTypeCacheKeys$4(rootKeySet, luvio, input.templatedAssets[i]);
6100
+ }
6101
+ }
6102
+
6103
+ function select$d(luvio, params) {
6104
+ return select$e();
6105
+ }
6106
+ function keyBuilder$8(luvio, params) {
6107
+ return keyPrefix + '::TemplatedAssetCollectionRepresentation:(' + 'templateIdOrApiName:' + params.urlParams.templateIdOrApiName + ')';
6108
+ }
6109
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
6110
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
6111
+ }
6112
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
6113
+ const { body } = response;
6114
+ const key = keyBuilder$8(luvio, resourceParams);
6115
+ luvio.storeIngest(key, ingest$3, body);
6116
+ const snapshot = luvio.storeLookup({
6117
+ recordId: key,
6118
+ node: select$d(),
6119
+ variables: {},
6120
+ }, snapshotRefresh);
6121
+ if (process.env.NODE_ENV !== 'production') {
6122
+ if (snapshot.state !== 'Fulfilled') {
6123
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
6124
+ }
6125
+ }
6126
+ deepFreeze(snapshot.data);
6127
+ return snapshot;
6128
+ }
6129
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
6130
+ const key = keyBuilder$8(luvio, params);
6131
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
6132
+ const storeMetadataParams = {
6133
+ ttl: TTL$3,
6134
+ namespace: keyPrefix,
6135
+ version: VERSION$9,
6136
+ representationName: RepresentationType$3
6137
+ };
6138
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
6139
+ return errorSnapshot;
6140
+ }
6141
+ function createResourceRequest$4(config) {
6142
+ const headers = {};
6143
+ return {
6144
+ baseUri: '/services/data/v64.0',
6145
+ basePath: '/app-framework/templates/' + config.urlParams.templateIdOrApiName + '/assets',
6146
+ method: 'get',
6147
+ body: null,
6148
+ urlParams: config.urlParams,
6149
+ queryParams: {},
6150
+ headers,
6151
+ priority: 'normal',
6152
+ };
6153
+ }
6154
+
6155
+ const adapterName$4 = 'getTemplateAssets';
6156
+ const getTemplateAssets_ConfigPropertyMetadata = [
6157
+ generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
6158
+ ];
6159
+ const getTemplateAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getTemplateAssets_ConfigPropertyMetadata);
6160
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$o(getTemplateAssets_ConfigPropertyMetadata);
6161
+ function keyBuilder$7(luvio, config) {
6162
+ const resourceParams = createResourceParams$4(config);
6163
+ return keyBuilder$8(luvio, resourceParams);
6164
+ }
6165
+ function typeCheckConfig$4(untrustedConfig) {
6166
+ const config = {};
6167
+ typeCheckConfig$o(untrustedConfig, config, getTemplateAssets_ConfigPropertyMetadata);
6168
+ return config;
6169
+ }
6170
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
6171
+ if (!untrustedIsObject(untrustedConfig)) {
6172
+ return null;
6173
+ }
6174
+ if (process.env.NODE_ENV !== 'production') {
6175
+ validateConfig(untrustedConfig, configPropertyNames);
6176
+ }
6177
+ const config = typeCheckConfig$4(untrustedConfig);
6178
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
6179
+ return null;
6180
+ }
6181
+ return config;
6182
+ }
6183
+ function adapterFragment$2(luvio, config) {
6184
+ createResourceParams$4(config);
6185
+ return select$d();
6186
+ }
6187
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
6188
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
6189
+ config,
6190
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
6191
+ });
6192
+ return luvio.storeBroadcast().then(() => snapshot);
6193
+ }
6194
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
6195
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
6196
+ config,
6197
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
6198
+ });
6199
+ return luvio.storeBroadcast().then(() => snapshot);
6200
+ }
6201
+ function buildNetworkSnapshot$4(luvio, config, options) {
6202
+ const resourceParams = createResourceParams$4(config);
6203
+ const request = createResourceRequest$4(resourceParams);
6204
+ return luvio.dispatchResourceRequest(request, options)
6205
+ .then((response) => {
6206
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
6207
+ const cache = new StoreKeyMap();
6208
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
6209
+ return cache;
6210
+ });
6211
+ }, (response) => {
6212
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
6213
+ });
6214
+ }
6215
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
6216
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
6217
+ }
6218
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
6219
+ const { luvio, config } = context;
6220
+ const selector = {
6221
+ recordId: keyBuilder$7(luvio, config),
6222
+ node: adapterFragment$2(luvio, config),
6223
+ variables: {},
6224
+ };
6225
+ const cacheSnapshot = storeLookup(selector, {
6226
+ config,
6227
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
6228
+ });
6229
+ return cacheSnapshot;
6230
+ }
6231
+ const getTemplateAssetsAdapterFactory = (luvio) => function AppFramework__getTemplateAssets(untrustedConfig, requestContext) {
6232
+ const config = validateAdapterConfig$4(untrustedConfig, getTemplateAssets_ConfigPropertyNames);
6233
+ // Invalid or incomplete config
6234
+ if (config === null) {
6235
+ return null;
6236
+ }
6237
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
6238
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
6239
+ };
6240
+
5824
6241
  const VERSION$8 = "c0e40695f975d64bf46ee8f48e2b5f38";
5825
6242
  function validate$9(obj, path = 'ImageReferenceRepresentation') {
5826
6243
  const v_error = (() => {
@@ -6625,14 +7042,14 @@ const getTemplateConfig_ConfigPropertyMetadata = [
6625
7042
  generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
6626
7043
  ];
6627
7044
  const getTemplateConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getTemplateConfig_ConfigPropertyMetadata);
6628
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$n(getTemplateConfig_ConfigPropertyMetadata);
7045
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$o(getTemplateConfig_ConfigPropertyMetadata);
6629
7046
  function keyBuilder$4(luvio, config) {
6630
7047
  const resourceParams = createResourceParams$3(config);
6631
7048
  return keyBuilder$5(luvio, resourceParams);
6632
7049
  }
6633
7050
  function typeCheckConfig$3(untrustedConfig) {
6634
7051
  const config = {};
6635
- typeCheckConfig$n(untrustedConfig, config, getTemplateConfig_ConfigPropertyMetadata);
7052
+ typeCheckConfig$o(untrustedConfig, config, getTemplateConfig_ConfigPropertyMetadata);
6636
7053
  return config;
6637
7054
  }
6638
7055
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -6681,7 +7098,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
6681
7098
  });
6682
7099
  }
6683
7100
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
6684
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
7101
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
6685
7102
  }
6686
7103
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
6687
7104
  const { luvio, config } = context;
@@ -6978,10 +7395,10 @@ const readinessCheck_ConfigPropertyMetadata = [
6978
7395
  generateParamConfigMetadata('templateValues', false, 2 /* Body */, 4 /* Unsupported */),
6979
7396
  ];
6980
7397
  const readinessCheck_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, readinessCheck_ConfigPropertyMetadata);
6981
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$n(readinessCheck_ConfigPropertyMetadata);
7398
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$o(readinessCheck_ConfigPropertyMetadata);
6982
7399
  function typeCheckConfig$2(untrustedConfig) {
6983
7400
  const config = {};
6984
- typeCheckConfig$n(untrustedConfig, config, readinessCheck_ConfigPropertyMetadata);
7401
+ typeCheckConfig$o(untrustedConfig, config, readinessCheck_ConfigPropertyMetadata);
6985
7402
  const untrustedConfig_templateValues = untrustedConfig.templateValues;
6986
7403
  if (untrustedIsObject(untrustedConfig_templateValues)) {
6987
7404
  const untrustedConfig_templateValues_object = {};
@@ -7200,14 +7617,14 @@ const getTags_ConfigPropertyMetadata = [
7200
7617
  generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
7201
7618
  ];
7202
7619
  const getTags_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getTags_ConfigPropertyMetadata);
7203
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$n(getTags_ConfigPropertyMetadata);
7620
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$o(getTags_ConfigPropertyMetadata);
7204
7621
  function keyBuilder(luvio, config) {
7205
7622
  const resourceParams = createResourceParams$1(config);
7206
7623
  return keyBuilder$1(luvio, resourceParams);
7207
7624
  }
7208
7625
  function typeCheckConfig$1(untrustedConfig) {
7209
7626
  const config = {};
7210
- typeCheckConfig$n(untrustedConfig, config, getTags_ConfigPropertyMetadata);
7627
+ typeCheckConfig$o(untrustedConfig, config, getTags_ConfigPropertyMetadata);
7211
7628
  return config;
7212
7629
  }
7213
7630
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -7256,7 +7673,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
7256
7673
  });
7257
7674
  }
7258
7675
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
7259
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
7676
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
7260
7677
  }
7261
7678
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
7262
7679
  const { luvio, config } = context;
@@ -7324,10 +7741,10 @@ const setTags_ConfigPropertyMetadata = [
7324
7741
  generateParamConfigMetadata('tags', false, 2 /* Body */, 4 /* Unsupported */),
7325
7742
  ];
7326
7743
  const setTags_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, setTags_ConfigPropertyMetadata);
7327
- const createResourceParams = /*#__PURE__*/ createResourceParams$n(setTags_ConfigPropertyMetadata);
7744
+ const createResourceParams = /*#__PURE__*/ createResourceParams$o(setTags_ConfigPropertyMetadata);
7328
7745
  function typeCheckConfig(untrustedConfig) {
7329
7746
  const config = {};
7330
- typeCheckConfig$n(untrustedConfig, config, setTags_ConfigPropertyMetadata);
7747
+ typeCheckConfig$o(untrustedConfig, config, setTags_ConfigPropertyMetadata);
7331
7748
  const untrustedConfig_tags = untrustedConfig.tags;
7332
7749
  if (untrustedIsObject(untrustedConfig_tags)) {
7333
7750
  const untrustedConfig_tags_object = {};
@@ -7387,4 +7804,4 @@ const setTagsAdapterFactory = (luvio) => {
7387
7804
  };
7388
7805
  };
7389
7806
 
7390
- export { createAppAdapterFactory, createAppAssetAdapterFactory, createTemplateAdapterFactory, deleteAppAdapterFactory, deleteAppAssetAdapterFactory, deleteTemplateAdapterFactory, getAppActivitiesAdapterFactory, getAppActivityAdapterFactory, getAppAdapterFactory, getAppAssetAdapterFactory, getAppAssetsAdapterFactory, getAppsAdapterFactory, getInstalledAssetsAdapterFactory, getTagsAdapterFactory, getTemplateAdapterFactory, getTemplateConfigAdapterFactory, getTemplatesAdapterFactory, readinessCheckAdapterFactory, setTagsAdapterFactory, updateAppAdapterFactory, updateAppAssetAdapterFactory, updateBasicAppAdapterFactory, updateTemplateAdapterFactory };
7807
+ export { createAppAdapterFactory, createAppAssetAdapterFactory, createTemplateAdapterFactory, deleteAppAdapterFactory, deleteAppAssetAdapterFactory, deleteTemplateAdapterFactory, getAppActivitiesAdapterFactory, getAppActivityAdapterFactory, getAppAdapterFactory, getAppAssetAdapterFactory, getAppAssetsAdapterFactory, getAppsAdapterFactory, getInstalledAssetsAdapterFactory, getTagsAdapterFactory, getTemplateAdapterFactory, getTemplateAssetsAdapterFactory, getTemplateConfigAdapterFactory, getTemplatesAdapterFactory, readinessCheckAdapterFactory, setTagsAdapterFactory, updateAppAdapterFactory, updateAppAssetAdapterFactory, updateBasicAppAdapterFactory, updateTemplateAdapterFactory };