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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/sfdc/index.js CHANGED
@@ -14,7 +14,7 @@
14
14
  /* proxy-compat-disable */
15
15
  import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
16
16
  import { withDefaultLuvio } from 'force/ldsEngine';
17
- import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$a, typeCheckConfig as typeCheckConfig$a, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8 } from 'force/luvioEngine';
17
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$b, typeCheckConfig as typeCheckConfig$b, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$9 } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -122,8 +122,8 @@ function createLink(ref) {
122
122
  };
123
123
  }
124
124
 
125
- const VERSION$h = "8747a45321deaf63f65cf74537b07eb6";
126
- function validate$e(obj, path = 'UserRepresentation') {
125
+ const VERSION$i = "8747a45321deaf63f65cf74537b07eb6";
126
+ function validate$f(obj, path = 'UserRepresentation') {
127
127
  const v_error = (() => {
128
128
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
129
129
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -167,10 +167,10 @@ function validate$e(obj, path = 'UserRepresentation') {
167
167
  })();
168
168
  return v_error === undefined ? null : v_error;
169
169
  }
170
- const select$q = function UserRepresentationSelect() {
170
+ const select$s = function UserRepresentationSelect() {
171
171
  return {
172
172
  kind: 'Fragment',
173
- version: VERSION$h,
173
+ version: VERSION$i,
174
174
  private: [],
175
175
  selections: [
176
176
  {
@@ -188,7 +188,7 @@ const select$q = function UserRepresentationSelect() {
188
188
  ]
189
189
  };
190
190
  };
191
- function equals$e(existing, incoming) {
191
+ function equals$f(existing, incoming) {
192
192
  const existing_id = existing.id;
193
193
  const incoming_id = incoming.id;
194
194
  if (!(existing_id === incoming_id)) {
@@ -207,8 +207,8 @@ function equals$e(existing, incoming) {
207
207
  return true;
208
208
  }
209
209
 
210
- const VERSION$g = "74662b770f974cec987197380f2580ea";
211
- function validate$d(obj, path = 'ScheduledTimezoneRepresentation') {
210
+ const VERSION$h = "74662b770f974cec987197380f2580ea";
211
+ function validate$e(obj, path = 'ScheduledTimezoneRepresentation') {
212
212
  const v_error = (() => {
213
213
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
214
214
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -227,10 +227,10 @@ function validate$d(obj, path = 'ScheduledTimezoneRepresentation') {
227
227
  })();
228
228
  return v_error === undefined ? null : v_error;
229
229
  }
230
- const select$p = function ScheduledTimezoneRepresentationSelect() {
230
+ const select$r = function ScheduledTimezoneRepresentationSelect() {
231
231
  return {
232
232
  kind: 'Fragment',
233
- version: VERSION$g,
233
+ version: VERSION$h,
234
234
  private: [],
235
235
  selections: [
236
236
  {
@@ -248,7 +248,7 @@ const select$p = function ScheduledTimezoneRepresentationSelect() {
248
248
  ]
249
249
  };
250
250
  };
251
- function equals$d(existing, incoming) {
251
+ function equals$e(existing, incoming) {
252
252
  const existing_name = existing.name;
253
253
  const incoming_name = incoming.name;
254
254
  if (!(existing_name === incoming_name)) {
@@ -267,8 +267,8 @@ function equals$d(existing, incoming) {
267
267
  return true;
268
268
  }
269
269
 
270
- const VERSION$f = "d96bf6818be64d5924beaaad8e684221";
271
- function validate$c(obj, path = 'ScheduledTimeRepresentation') {
270
+ const VERSION$g = "d96bf6818be64d5924beaaad8e684221";
271
+ function validate$d(obj, path = 'ScheduledTimeRepresentation') {
272
272
  const v_error = (() => {
273
273
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
274
274
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -285,7 +285,7 @@ function validate$c(obj, path = 'ScheduledTimeRepresentation') {
285
285
  }
286
286
  const obj_timezone = obj.timezone;
287
287
  const path_timezone = path + '.timezone';
288
- const referencepath_timezoneValidationError = validate$d(obj_timezone, path_timezone);
288
+ const referencepath_timezoneValidationError = validate$e(obj_timezone, path_timezone);
289
289
  if (referencepath_timezoneValidationError !== null) {
290
290
  let message = 'Object doesn\'t match ScheduledTimezoneRepresentation (at "' + path_timezone + '")\n';
291
291
  message += referencepath_timezoneValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -294,11 +294,11 @@ function validate$c(obj, path = 'ScheduledTimeRepresentation') {
294
294
  })();
295
295
  return v_error === undefined ? null : v_error;
296
296
  }
297
- const select$o = function ScheduledTimeRepresentationSelect() {
298
- const { selections: ScheduledTimezoneRepresentation__selections, opaque: ScheduledTimezoneRepresentation__opaque, } = select$p();
297
+ const select$q = function ScheduledTimeRepresentationSelect() {
298
+ const { selections: ScheduledTimezoneRepresentation__selections, opaque: ScheduledTimezoneRepresentation__opaque, } = select$r();
299
299
  return {
300
300
  kind: 'Fragment',
301
- version: VERSION$f,
301
+ version: VERSION$g,
302
302
  private: [],
303
303
  selections: [
304
304
  {
@@ -317,7 +317,7 @@ const select$o = function ScheduledTimeRepresentationSelect() {
317
317
  ]
318
318
  };
319
319
  };
320
- function equals$c(existing, incoming) {
320
+ function equals$d(existing, incoming) {
321
321
  const existing_hour = existing.hour;
322
322
  const incoming_hour = incoming.hour;
323
323
  if (!(existing_hour === incoming_hour)) {
@@ -330,18 +330,18 @@ function equals$c(existing, incoming) {
330
330
  }
331
331
  const existing_timezone = existing.timezone;
332
332
  const incoming_timezone = incoming.timezone;
333
- if (!(equals$d(existing_timezone, incoming_timezone))) {
333
+ if (!(equals$e(existing_timezone, incoming_timezone))) {
334
334
  return false;
335
335
  }
336
336
  return true;
337
337
  }
338
338
 
339
- const VERSION$e = "91838b86aa135ce828af6242b11ae888";
340
- const select$n = function HourlyScheduledItemRepresentationSelect() {
341
- const { selections: ScheduledItemRepresentationSelections } = select$k();
339
+ const VERSION$f = "91838b86aa135ce828af6242b11ae888";
340
+ const select$p = function HourlyScheduledItemRepresentationSelect() {
341
+ const { selections: ScheduledItemRepresentationSelections } = select$m();
342
342
  return {
343
343
  kind: 'Fragment',
344
- version: VERSION$e,
344
+ version: VERSION$f,
345
345
  private: [],
346
346
  selections: [
347
347
  ...ScheduledItemRepresentationSelections,
@@ -358,12 +358,12 @@ const select$n = function HourlyScheduledItemRepresentationSelect() {
358
358
  };
359
359
  };
360
360
 
361
- const VERSION$d = "46260a34f0b2c2d7adc7f8c150a8d8fb";
362
- const select$m = function WeeklyScheduledItemRepresentationSelect() {
363
- const { selections: ScheduledItemRepresentationSelections } = select$k();
361
+ const VERSION$e = "46260a34f0b2c2d7adc7f8c150a8d8fb";
362
+ const select$o = function WeeklyScheduledItemRepresentationSelect() {
363
+ const { selections: ScheduledItemRepresentationSelections } = select$m();
364
364
  return {
365
365
  kind: 'Fragment',
366
- version: VERSION$d,
366
+ version: VERSION$e,
367
367
  private: [],
368
368
  selections: [
369
369
  ...ScheduledItemRepresentationSelections,
@@ -376,12 +376,12 @@ const select$m = function WeeklyScheduledItemRepresentationSelect() {
376
376
  };
377
377
  };
378
378
 
379
- const VERSION$c = "dcda6d015a01d9acde5fac241448cfe4";
380
- const select$l = function DailyScheduledItemRepresentationSelect() {
381
- const { selections: ScheduledItemRepresentationSelections } = select$k();
379
+ const VERSION$d = "dcda6d015a01d9acde5fac241448cfe4";
380
+ const select$n = function DailyScheduledItemRepresentationSelect() {
381
+ const { selections: ScheduledItemRepresentationSelections } = select$m();
382
382
  return {
383
383
  kind: 'Fragment',
384
- version: VERSION$c,
384
+ version: VERSION$d,
385
385
  private: [],
386
386
  selections: [
387
387
  ...ScheduledItemRepresentationSelections,
@@ -395,8 +395,8 @@ var DiscriminatorValues;
395
395
  DiscriminatorValues["Weekly"] = "Weekly";
396
396
  DiscriminatorValues["Daily"] = "Daily";
397
397
  })(DiscriminatorValues || (DiscriminatorValues = {}));
398
- const VERSION$b = "193484b4261ca5840b61caaab3dea067";
399
- function validate$b(obj, path = 'ScheduledItemRepresentation') {
398
+ const VERSION$c = "193484b4261ca5840b61caaab3dea067";
399
+ function validate$c(obj, path = 'ScheduledItemRepresentation') {
400
400
  const v_error = (() => {
401
401
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
402
402
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -413,7 +413,7 @@ function validate$b(obj, path = 'ScheduledItemRepresentation') {
413
413
  }
414
414
  const obj_time = obj.time;
415
415
  const path_time = path + '.time';
416
- const referencepath_timeValidationError = validate$c(obj_time, path_time);
416
+ const referencepath_timeValidationError = validate$d(obj_time, path_time);
417
417
  if (referencepath_timeValidationError !== null) {
418
418
  let message = 'Object doesn\'t match ScheduledTimeRepresentation (at "' + path_time + '")\n';
419
419
  message += referencepath_timeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -423,9 +423,9 @@ function validate$b(obj, path = 'ScheduledItemRepresentation') {
423
423
  return v_error === undefined ? null : v_error;
424
424
  }
425
425
  const selectChildren = function ScheduledItemRepresentationSelectChildren() {
426
- const hourlyScheduledItemRepresentationSelections = select$n();
427
- const weeklyScheduledItemRepresentationSelections = select$m();
428
- const dailyScheduledItemRepresentationSelections = select$l();
426
+ const hourlyScheduledItemRepresentationSelections = select$p();
427
+ const weeklyScheduledItemRepresentationSelections = select$o();
428
+ const dailyScheduledItemRepresentationSelections = select$n();
429
429
  return {
430
430
  kind: 'Fragment',
431
431
  union: true,
@@ -437,11 +437,11 @@ const selectChildren = function ScheduledItemRepresentationSelectChildren() {
437
437
  }
438
438
  };
439
439
  };
440
- const select$k = function ScheduledItemRepresentationSelect() {
441
- const { selections: ScheduledTimeRepresentation__selections, opaque: ScheduledTimeRepresentation__opaque, } = select$o();
440
+ const select$m = function ScheduledItemRepresentationSelect() {
441
+ const { selections: ScheduledTimeRepresentation__selections, opaque: ScheduledTimeRepresentation__opaque, } = select$q();
442
442
  return {
443
443
  kind: 'Fragment',
444
- version: VERSION$b,
444
+ version: VERSION$c,
445
445
  private: [],
446
446
  selections: [
447
447
  {
@@ -460,7 +460,7 @@ const select$k = function ScheduledItemRepresentationSelect() {
460
460
  ]
461
461
  };
462
462
  };
463
- function equals$b(existing, incoming) {
463
+ function equals$c(existing, incoming) {
464
464
  const existing_frequency = existing.frequency;
465
465
  const incoming_frequency = incoming.frequency;
466
466
  if (!(existing_frequency === incoming_frequency)) {
@@ -473,14 +473,14 @@ function equals$b(existing, incoming) {
473
473
  }
474
474
  const existing_time = existing.time;
475
475
  const incoming_time = incoming.time;
476
- if (!(equals$c(existing_time, incoming_time))) {
476
+ if (!(equals$d(existing_time, incoming_time))) {
477
477
  return false;
478
478
  }
479
479
  return true;
480
480
  }
481
481
 
482
- const VERSION$a = "06b5da5162febff2692d819c9b718be5";
483
- function validate$a(obj, path = 'AppScheduleRepresentation') {
482
+ const VERSION$b = "06b5da5162febff2692d819c9b718be5";
483
+ function validate$b(obj, path = 'AppScheduleRepresentation') {
484
484
  const v_error = (() => {
485
485
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
486
486
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -489,7 +489,7 @@ function validate$a(obj, path = 'AppScheduleRepresentation') {
489
489
  const path_dataRefreshSchedule = path + '.dataRefreshSchedule';
490
490
  let obj_dataRefreshSchedule_union0 = null;
491
491
  const obj_dataRefreshSchedule_union0_error = (() => {
492
- const referencepath_dataRefreshScheduleValidationError = validate$b(obj_dataRefreshSchedule, path_dataRefreshSchedule);
492
+ const referencepath_dataRefreshScheduleValidationError = validate$c(obj_dataRefreshSchedule, path_dataRefreshSchedule);
493
493
  if (referencepath_dataRefreshScheduleValidationError !== null) {
494
494
  let message = 'Object doesn\'t match ScheduledItemRepresentation (at "' + path_dataRefreshSchedule + '")\n';
495
495
  message += referencepath_dataRefreshScheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -543,11 +543,11 @@ function validate$a(obj, path = 'AppScheduleRepresentation') {
543
543
  })();
544
544
  return v_error === undefined ? null : v_error;
545
545
  }
546
- const select$j = function AppScheduleRepresentationSelect() {
546
+ const select$l = function AppScheduleRepresentationSelect() {
547
547
  const ScheduledItemRepresentation__unionSelections = selectChildren();
548
548
  return {
549
549
  kind: 'Fragment',
550
- version: VERSION$a,
550
+ version: VERSION$b,
551
551
  private: [],
552
552
  selections: [
553
553
  {
@@ -565,13 +565,13 @@ const select$j = function AppScheduleRepresentationSelect() {
565
565
  ]
566
566
  };
567
567
  };
568
- function equals$a(existing, incoming) {
568
+ function equals$b(existing, incoming) {
569
569
  const existing_dataRefreshSchedule = existing.dataRefreshSchedule;
570
570
  const incoming_dataRefreshSchedule = incoming.dataRefreshSchedule;
571
571
  if (!(existing_dataRefreshSchedule === incoming_dataRefreshSchedule
572
572
  || (existing_dataRefreshSchedule != null &&
573
573
  incoming_dataRefreshSchedule != null &&
574
- equals$b(existing_dataRefreshSchedule, incoming_dataRefreshSchedule)))) {
574
+ equals$c(existing_dataRefreshSchedule, incoming_dataRefreshSchedule)))) {
575
575
  return false;
576
576
  }
577
577
  const existing_url = existing.url;
@@ -582,9 +582,9 @@ function equals$a(existing, incoming) {
582
582
  return true;
583
583
  }
584
584
 
585
- const TTL$9 = 5000;
586
- const VERSION$9 = "be6294bb853a9581fb3b06a2d8caa5d5";
587
- function validate$9(obj, path = 'AppRepresentation') {
585
+ const TTL$a = 5000;
586
+ const VERSION$a = "be6294bb853a9581fb3b06a2d8caa5d5";
587
+ function validate$a(obj, path = 'AppRepresentation') {
588
588
  const v_error = (() => {
589
589
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
590
590
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -606,7 +606,7 @@ function validate$9(obj, path = 'AppRepresentation') {
606
606
  }
607
607
  const obj_createdBy = obj.createdBy;
608
608
  const path_createdBy = path + '.createdBy';
609
- const referencepath_createdByValidationError = validate$e(obj_createdBy, path_createdBy);
609
+ const referencepath_createdByValidationError = validate$f(obj_createdBy, path_createdBy);
610
610
  if (referencepath_createdByValidationError !== null) {
611
611
  let message = 'Object doesn\'t match UserRepresentation (at "' + path_createdBy + '")\n';
612
612
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -660,7 +660,7 @@ function validate$9(obj, path = 'AppRepresentation') {
660
660
  }
661
661
  const obj_lastModifiedBy = obj.lastModifiedBy;
662
662
  const path_lastModifiedBy = path + '.lastModifiedBy';
663
- const referencepath_lastModifiedByValidationError = validate$e(obj_lastModifiedBy, path_lastModifiedBy);
663
+ const referencepath_lastModifiedByValidationError = validate$f(obj_lastModifiedBy, path_lastModifiedBy);
664
664
  if (referencepath_lastModifiedByValidationError !== null) {
665
665
  let message = 'Object doesn\'t match UserRepresentation (at "' + path_lastModifiedBy + '")\n';
666
666
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -685,7 +685,7 @@ function validate$9(obj, path = 'AppRepresentation') {
685
685
  const path_schedule = path + '.schedule';
686
686
  let obj_schedule_union0 = null;
687
687
  const obj_schedule_union0_error = (() => {
688
- const referencepath_scheduleValidationError = validate$a(obj_schedule, path_schedule);
688
+ const referencepath_scheduleValidationError = validate$b(obj_schedule, path_schedule);
689
689
  if (referencepath_scheduleValidationError !== null) {
690
690
  let message = 'Object doesn\'t match AppScheduleRepresentation (at "' + path_schedule + '")\n';
691
691
  message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -747,25 +747,25 @@ function validate$9(obj, path = 'AppRepresentation') {
747
747
  })();
748
748
  return v_error === undefined ? null : v_error;
749
749
  }
750
- const RepresentationType$9 = 'AppRepresentation';
751
- function keyBuilder$o(luvio, config) {
752
- return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
750
+ const RepresentationType$a = 'AppRepresentation';
751
+ function keyBuilder$q(luvio, config) {
752
+ return keyPrefix + '::' + RepresentationType$a + ':' + config.id;
753
753
  }
754
754
  function keyBuilderFromType$7(luvio, object) {
755
755
  const keyParams = {
756
756
  id: object.id
757
757
  };
758
- return keyBuilder$o(luvio, keyParams);
758
+ return keyBuilder$q(luvio, keyParams);
759
759
  }
760
- function normalize$9(input, existing, path, luvio, store, timestamp) {
760
+ function normalize$a(input, existing, path, luvio, store, timestamp) {
761
761
  return input;
762
762
  }
763
- const select$i = function AppRepresentationSelect() {
764
- const { selections: UserRepresentation__selections, opaque: UserRepresentation__opaque, } = select$q();
765
- const { selections: AppScheduleRepresentation__selections, opaque: AppScheduleRepresentation__opaque, } = select$j();
763
+ const select$k = function AppRepresentationSelect() {
764
+ const { selections: UserRepresentation__selections, opaque: UserRepresentation__opaque, } = select$s();
765
+ const { selections: AppScheduleRepresentation__selections, opaque: AppScheduleRepresentation__opaque, } = select$l();
766
766
  return {
767
767
  kind: 'Fragment',
768
- version: VERSION$9,
768
+ version: VERSION$a,
769
769
  private: [],
770
770
  selections: [
771
771
  {
@@ -852,7 +852,7 @@ const select$i = function AppRepresentationSelect() {
852
852
  ]
853
853
  };
854
854
  };
855
- function equals$9(existing, incoming) {
855
+ function equals$a(existing, incoming) {
856
856
  const existing_activitiesUrl = existing.activitiesUrl;
857
857
  const incoming_activitiesUrl = incoming.activitiesUrl;
858
858
  if (!(existing_activitiesUrl === incoming_activitiesUrl)) {
@@ -925,7 +925,7 @@ function equals$9(existing, incoming) {
925
925
  }
926
926
  const existing_createdBy = existing.createdBy;
927
927
  const incoming_createdBy = incoming.createdBy;
928
- if (!(equals$e(existing_createdBy, incoming_createdBy))) {
928
+ if (!(equals$f(existing_createdBy, incoming_createdBy))) {
929
929
  return false;
930
930
  }
931
931
  const existing_description = existing.description;
@@ -935,7 +935,7 @@ function equals$9(existing, incoming) {
935
935
  }
936
936
  const existing_lastModifiedBy = existing.lastModifiedBy;
937
937
  const incoming_lastModifiedBy = incoming.lastModifiedBy;
938
- if (!(equals$e(existing_lastModifiedBy, incoming_lastModifiedBy))) {
938
+ if (!(equals$f(existing_lastModifiedBy, incoming_lastModifiedBy))) {
939
939
  return false;
940
940
  }
941
941
  const existing_schedule = existing.schedule;
@@ -943,7 +943,7 @@ function equals$9(existing, incoming) {
943
943
  if (!(existing_schedule === incoming_schedule
944
944
  || (existing_schedule != null &&
945
945
  incoming_schedule != null &&
946
- equals$a(existing_schedule, incoming_schedule)))) {
946
+ equals$b(existing_schedule, incoming_schedule)))) {
947
947
  return false;
948
948
  }
949
949
  const existing_templateValues = existing.templateValues;
@@ -958,31 +958,31 @@ function equals$9(existing, incoming) {
958
958
  }
959
959
  return true;
960
960
  }
961
- const ingest$9 = function AppRepresentationIngest(input, path, luvio, store, timestamp) {
961
+ const ingest$a = function AppRepresentationIngest(input, path, luvio, store, timestamp) {
962
962
  if (process.env.NODE_ENV !== 'production') {
963
- const validateError = validate$9(input);
963
+ const validateError = validate$a(input);
964
964
  if (validateError !== null) {
965
965
  throw validateError;
966
966
  }
967
967
  }
968
968
  const key = keyBuilderFromType$7(luvio, input);
969
- const ttlToUse = TTL$9;
970
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "AppFramework", VERSION$9, RepresentationType$9, equals$9);
969
+ const ttlToUse = TTL$a;
970
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "AppFramework", VERSION$a, RepresentationType$a, equals$a);
971
971
  return createLink(key);
972
972
  };
973
- function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
973
+ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
974
974
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
975
975
  const rootKey = keyBuilderFromType$7(luvio, input);
976
976
  rootKeySet.set(rootKey, {
977
977
  namespace: keyPrefix,
978
- representationName: RepresentationType$9,
978
+ representationName: RepresentationType$a,
979
979
  mergeable: false
980
980
  });
981
981
  }
982
982
 
983
- const TTL$8 = 5000;
984
- const VERSION$8 = "1e01d8ae397bfbae02ba4cfae1dac4fc";
985
- function validate$8(obj, path = 'AppResultRepresentation') {
983
+ const TTL$9 = 5000;
984
+ const VERSION$9 = "1e01d8ae397bfbae02ba4cfae1dac4fc";
985
+ function validate$9(obj, path = 'AppResultRepresentation') {
986
986
  const v_error = (() => {
987
987
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
988
988
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1040,20 +1040,20 @@ function validate$8(obj, path = 'AppResultRepresentation') {
1040
1040
  })();
1041
1041
  return v_error === undefined ? null : v_error;
1042
1042
  }
1043
- const RepresentationType$8 = 'AppResultRepresentation';
1044
- function keyBuilder$n(luvio, config) {
1045
- return keyPrefix + '::' + RepresentationType$8 + ':' + config.id;
1043
+ const RepresentationType$9 = 'AppResultRepresentation';
1044
+ function keyBuilder$p(luvio, config) {
1045
+ return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
1046
1046
  }
1047
1047
  function keyBuilderFromType$6(luvio, object) {
1048
1048
  const keyParams = {
1049
1049
  id: object.app.id
1050
1050
  };
1051
- return keyBuilder$n(luvio, keyParams);
1051
+ return keyBuilder$p(luvio, keyParams);
1052
1052
  }
1053
- function normalize$8(input, existing, path, luvio, store, timestamp) {
1053
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
1054
1054
  const input_app = input.app;
1055
1055
  const input_app_id = path.fullPath + '__app';
1056
- input.app = ingest$9(input_app, {
1056
+ input.app = ingest$a(input_app, {
1057
1057
  fullPath: input_app_id,
1058
1058
  propertyName: 'app',
1059
1059
  parent: {
@@ -1065,16 +1065,16 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
1065
1065
  }, luvio, store, timestamp);
1066
1066
  return input;
1067
1067
  }
1068
- const select$h = function AppResultRepresentationSelect() {
1068
+ const select$j = function AppResultRepresentationSelect() {
1069
1069
  return {
1070
1070
  kind: 'Fragment',
1071
- version: VERSION$8,
1071
+ version: VERSION$9,
1072
1072
  private: [],
1073
1073
  selections: [
1074
1074
  {
1075
1075
  name: 'app',
1076
1076
  kind: 'Link',
1077
- fragment: select$i()
1077
+ fragment: select$k()
1078
1078
  },
1079
1079
  {
1080
1080
  name: 'failureMessage',
@@ -1092,7 +1092,7 @@ const select$h = function AppResultRepresentationSelect() {
1092
1092
  ]
1093
1093
  };
1094
1094
  };
1095
- function equals$8(existing, incoming) {
1095
+ function equals$9(existing, incoming) {
1096
1096
  const existing_runtimeRequestId = existing.runtimeRequestId;
1097
1097
  const incoming_runtimeRequestId = incoming.runtimeRequestId;
1098
1098
  if (!(existing_runtimeRequestId === incoming_runtimeRequestId)) {
@@ -1120,42 +1120,42 @@ function equals$8(existing, incoming) {
1120
1120
  }
1121
1121
  return true;
1122
1122
  }
1123
- const ingest$8 = function AppResultRepresentationIngest(input, path, luvio, store, timestamp) {
1123
+ const ingest$9 = function AppResultRepresentationIngest(input, path, luvio, store, timestamp) {
1124
1124
  if (process.env.NODE_ENV !== 'production') {
1125
- const validateError = validate$8(input);
1125
+ const validateError = validate$9(input);
1126
1126
  if (validateError !== null) {
1127
1127
  throw validateError;
1128
1128
  }
1129
1129
  }
1130
1130
  const key = keyBuilderFromType$6(luvio, input);
1131
- const ttlToUse = TTL$8;
1132
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "AppFramework", VERSION$8, RepresentationType$8, equals$8);
1131
+ const ttlToUse = TTL$9;
1132
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "AppFramework", VERSION$9, RepresentationType$9, equals$9);
1133
1133
  return createLink(key);
1134
1134
  };
1135
- function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
1135
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
1136
1136
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1137
1137
  const rootKey = keyBuilderFromType$6(luvio, input);
1138
1138
  rootKeySet.set(rootKey, {
1139
1139
  namespace: keyPrefix,
1140
- representationName: RepresentationType$8,
1140
+ representationName: RepresentationType$9,
1141
1141
  mergeable: false
1142
1142
  });
1143
- getTypeCacheKeys$9(rootKeySet, luvio, input.app);
1143
+ getTypeCacheKeys$a(rootKeySet, luvio, input.app);
1144
1144
  }
1145
1145
 
1146
- function select$g(luvio, params) {
1147
- return select$h();
1146
+ function select$i(luvio, params) {
1147
+ return select$j();
1148
1148
  }
1149
- function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
1150
- getTypeCacheKeys$8(storeKeyMap, luvio, response);
1149
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
1150
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
1151
1151
  }
1152
- function ingestSuccess$8(luvio, resourceParams, response) {
1152
+ function ingestSuccess$9(luvio, resourceParams, response) {
1153
1153
  const { body } = response;
1154
1154
  const key = keyBuilderFromType$6(luvio, body);
1155
- luvio.storeIngest(key, ingest$8, body);
1155
+ luvio.storeIngest(key, ingest$9, body);
1156
1156
  const snapshot = luvio.storeLookup({
1157
1157
  recordId: key,
1158
- node: select$g(),
1158
+ node: select$i(),
1159
1159
  variables: {},
1160
1160
  });
1161
1161
  if (process.env.NODE_ENV !== 'production') {
@@ -1166,7 +1166,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
1166
1166
  deepFreeze(snapshot.data);
1167
1167
  return snapshot;
1168
1168
  }
1169
- function createResourceRequest$9(config) {
1169
+ function createResourceRequest$a(config) {
1170
1170
  const headers = {};
1171
1171
  return {
1172
1172
  baseUri: '/services/data/v62.0',
@@ -1180,7 +1180,7 @@ function createResourceRequest$9(config) {
1180
1180
  };
1181
1181
  }
1182
1182
 
1183
- const adapterName$9 = 'createApp';
1183
+ const adapterName$a = 'createApp';
1184
1184
  const createApp_ConfigPropertyMetadata = [
1185
1185
  generateParamConfigMetadata('assetIcon', false, 2 /* Body */, 0 /* String */),
1186
1186
  generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
@@ -1193,11 +1193,11 @@ const createApp_ConfigPropertyMetadata = [
1193
1193
  generateParamConfigMetadata('templateValues', false, 2 /* Body */, 4 /* Unsupported */),
1194
1194
  generateParamConfigMetadata('templateVersion', false, 2 /* Body */, 0 /* String */),
1195
1195
  ];
1196
- const createApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createApp_ConfigPropertyMetadata);
1197
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$a(createApp_ConfigPropertyMetadata);
1198
- function typeCheckConfig$9(untrustedConfig) {
1196
+ const createApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createApp_ConfigPropertyMetadata);
1197
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$b(createApp_ConfigPropertyMetadata);
1198
+ function typeCheckConfig$a(untrustedConfig) {
1199
1199
  const config = {};
1200
- typeCheckConfig$a(untrustedConfig, config, createApp_ConfigPropertyMetadata);
1200
+ typeCheckConfig$b(untrustedConfig, config, createApp_ConfigPropertyMetadata);
1201
1201
  const untrustedConfig_templateValues = untrustedConfig.templateValues;
1202
1202
  if (untrustedIsObject(untrustedConfig_templateValues)) {
1203
1203
  const untrustedConfig_templateValues_object = {};
@@ -1215,30 +1215,30 @@ function typeCheckConfig$9(untrustedConfig) {
1215
1215
  }
1216
1216
  return config;
1217
1217
  }
1218
- function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
1218
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
1219
1219
  if (!untrustedIsObject(untrustedConfig)) {
1220
1220
  return null;
1221
1221
  }
1222
1222
  if (process.env.NODE_ENV !== 'production') {
1223
1223
  validateConfig(untrustedConfig, configPropertyNames);
1224
1224
  }
1225
- const config = typeCheckConfig$9(untrustedConfig);
1225
+ const config = typeCheckConfig$a(untrustedConfig);
1226
1226
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1227
1227
  return null;
1228
1228
  }
1229
1229
  return config;
1230
1230
  }
1231
- function buildNetworkSnapshot$9(luvio, config, options) {
1232
- const resourceParams = createResourceParams$9(config);
1233
- const request = createResourceRequest$9(resourceParams);
1231
+ function buildNetworkSnapshot$a(luvio, config, options) {
1232
+ const resourceParams = createResourceParams$a(config);
1233
+ const request = createResourceRequest$a(resourceParams);
1234
1234
  return luvio.dispatchResourceRequest(request, options)
1235
1235
  .then((response) => {
1236
1236
  return luvio.handleSuccessResponse(() => {
1237
- const snapshot = ingestSuccess$8(luvio, resourceParams, response);
1237
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response);
1238
1238
  return luvio.storeBroadcast().then(() => snapshot);
1239
1239
  }, () => {
1240
1240
  const cache = new StoreKeyMap();
1241
- getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
1241
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
1242
1242
  return cache;
1243
1243
  });
1244
1244
  }, (response) => {
@@ -1248,33 +1248,33 @@ function buildNetworkSnapshot$9(luvio, config, options) {
1248
1248
  }
1249
1249
  const createAppAdapterFactory = (luvio) => {
1250
1250
  return function createApp(untrustedConfig) {
1251
- const config = validateAdapterConfig$9(untrustedConfig, createApp_ConfigPropertyNames);
1251
+ const config = validateAdapterConfig$a(untrustedConfig, createApp_ConfigPropertyNames);
1252
1252
  // Invalid or incomplete config
1253
1253
  if (config === null) {
1254
1254
  throw new Error('Invalid config for "createApp"');
1255
1255
  }
1256
- return buildNetworkSnapshot$9(luvio, config);
1256
+ return buildNetworkSnapshot$a(luvio, config);
1257
1257
  };
1258
1258
  };
1259
1259
 
1260
- function keyBuilder$m(luvio, params) {
1261
- return keyBuilder$o(luvio, {
1260
+ function keyBuilder$o(luvio, params) {
1261
+ return keyBuilder$q(luvio, {
1262
1262
  id: params.urlParams.appIdOrApiName
1263
1263
  });
1264
1264
  }
1265
- function getResponseCacheKeys$8(cacheKeyMap, luvio, resourceParams) {
1266
- const key = keyBuilder$m(luvio, resourceParams);
1265
+ function getResponseCacheKeys$9(cacheKeyMap, luvio, resourceParams) {
1266
+ const key = keyBuilder$o(luvio, resourceParams);
1267
1267
  cacheKeyMap.set(key, {
1268
1268
  namespace: keyPrefix,
1269
- representationName: RepresentationType$9,
1269
+ representationName: RepresentationType$a,
1270
1270
  mergeable: false
1271
1271
  });
1272
1272
  }
1273
1273
  function evictSuccess(luvio, resourceParams) {
1274
- const key = keyBuilder$m(luvio, resourceParams);
1274
+ const key = keyBuilder$o(luvio, resourceParams);
1275
1275
  luvio.storeEvict(key);
1276
1276
  }
1277
- function createResourceRequest$8(config) {
1277
+ function createResourceRequest$9(config) {
1278
1278
  const headers = {};
1279
1279
  return {
1280
1280
  baseUri: '/services/data/v62.0',
@@ -1288,33 +1288,33 @@ function createResourceRequest$8(config) {
1288
1288
  };
1289
1289
  }
1290
1290
 
1291
- const adapterName$8 = 'deleteApp';
1291
+ const adapterName$9 = 'deleteApp';
1292
1292
  const deleteApp_ConfigPropertyMetadata = [
1293
1293
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1294
1294
  ];
1295
- const deleteApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, deleteApp_ConfigPropertyMetadata);
1296
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$a(deleteApp_ConfigPropertyMetadata);
1297
- function typeCheckConfig$8(untrustedConfig) {
1295
+ const deleteApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, deleteApp_ConfigPropertyMetadata);
1296
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$b(deleteApp_ConfigPropertyMetadata);
1297
+ function typeCheckConfig$9(untrustedConfig) {
1298
1298
  const config = {};
1299
- typeCheckConfig$a(untrustedConfig, config, deleteApp_ConfigPropertyMetadata);
1299
+ typeCheckConfig$b(untrustedConfig, config, deleteApp_ConfigPropertyMetadata);
1300
1300
  return config;
1301
1301
  }
1302
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1302
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
1303
1303
  if (!untrustedIsObject(untrustedConfig)) {
1304
1304
  return null;
1305
1305
  }
1306
1306
  if (process.env.NODE_ENV !== 'production') {
1307
1307
  validateConfig(untrustedConfig, configPropertyNames);
1308
1308
  }
1309
- const config = typeCheckConfig$8(untrustedConfig);
1309
+ const config = typeCheckConfig$9(untrustedConfig);
1310
1310
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1311
1311
  return null;
1312
1312
  }
1313
1313
  return config;
1314
1314
  }
1315
- function buildNetworkSnapshot$8(luvio, config, options) {
1316
- const resourceParams = createResourceParams$8(config);
1317
- const request = createResourceRequest$8(resourceParams);
1315
+ function buildNetworkSnapshot$9(luvio, config, options) {
1316
+ const resourceParams = createResourceParams$9(config);
1317
+ const request = createResourceRequest$9(resourceParams);
1318
1318
  return luvio.dispatchResourceRequest(request, options)
1319
1319
  .then(() => {
1320
1320
  return luvio.handleSuccessResponse(() => {
@@ -1322,7 +1322,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
1322
1322
  return luvio.storeBroadcast();
1323
1323
  }, () => {
1324
1324
  const cache = new StoreKeyMap();
1325
- getResponseCacheKeys$8(cache, luvio, resourceParams);
1325
+ getResponseCacheKeys$9(cache, luvio, resourceParams);
1326
1326
  return cache;
1327
1327
  });
1328
1328
  }, (response) => {
@@ -1332,33 +1332,33 @@ function buildNetworkSnapshot$8(luvio, config, options) {
1332
1332
  }
1333
1333
  const deleteAppAdapterFactory = (luvio) => {
1334
1334
  return function AppFrameworkdeleteApp(untrustedConfig) {
1335
- const config = validateAdapterConfig$8(untrustedConfig, deleteApp_ConfigPropertyNames);
1335
+ const config = validateAdapterConfig$9(untrustedConfig, deleteApp_ConfigPropertyNames);
1336
1336
  // Invalid or incomplete config
1337
1337
  if (config === null) {
1338
- throw new Error(`Invalid config for "${adapterName$8}"`);
1338
+ throw new Error(`Invalid config for "${adapterName$9}"`);
1339
1339
  }
1340
- return buildNetworkSnapshot$8(luvio, config);
1340
+ return buildNetworkSnapshot$9(luvio, config);
1341
1341
  };
1342
1342
  };
1343
1343
 
1344
- function select$f(luvio, params) {
1345
- return select$i();
1344
+ function select$h(luvio, params) {
1345
+ return select$k();
1346
1346
  }
1347
- function keyBuilder$l(luvio, params) {
1348
- return keyBuilder$o(luvio, {
1347
+ function keyBuilder$n(luvio, params) {
1348
+ return keyBuilder$q(luvio, {
1349
1349
  id: params.urlParams.appIdOrApiName
1350
1350
  });
1351
1351
  }
1352
- function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1353
- getTypeCacheKeys$9(storeKeyMap, luvio, response);
1352
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
1353
+ getTypeCacheKeys$a(storeKeyMap, luvio, response);
1354
1354
  }
1355
- function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
1355
+ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
1356
1356
  const { body } = response;
1357
- const key = keyBuilder$l(luvio, resourceParams);
1358
- luvio.storeIngest(key, ingest$9, body);
1357
+ const key = keyBuilder$n(luvio, resourceParams);
1358
+ luvio.storeIngest(key, ingest$a, body);
1359
1359
  const snapshot = luvio.storeLookup({
1360
1360
  recordId: key,
1361
- node: select$f(),
1361
+ node: select$h(),
1362
1362
  variables: {},
1363
1363
  }, snapshotRefresh);
1364
1364
  if (process.env.NODE_ENV !== 'production') {
@@ -1369,19 +1369,19 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
1369
1369
  deepFreeze(snapshot.data);
1370
1370
  return snapshot;
1371
1371
  }
1372
- function ingestError$7(luvio, params, error, snapshotRefresh) {
1373
- const key = keyBuilder$l(luvio, params);
1372
+ function ingestError$8(luvio, params, error, snapshotRefresh) {
1373
+ const key = keyBuilder$n(luvio, params);
1374
1374
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1375
1375
  const storeMetadataParams = {
1376
- ttl: TTL$9,
1376
+ ttl: TTL$a,
1377
1377
  namespace: keyPrefix,
1378
- version: VERSION$9,
1379
- representationName: RepresentationType$9
1378
+ version: VERSION$a,
1379
+ representationName: RepresentationType$a
1380
1380
  };
1381
1381
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1382
1382
  return errorSnapshot;
1383
1383
  }
1384
- function createResourceRequest$7(config) {
1384
+ function createResourceRequest$8(config) {
1385
1385
  const headers = {};
1386
1386
  return {
1387
1387
  baseUri: '/services/data/v62.0',
@@ -1399,97 +1399,97 @@ function createResourceRequestFromRepresentation$5(representation) {
1399
1399
  urlParams: {},
1400
1400
  };
1401
1401
  config.urlParams.appIdOrApiName = representation.id;
1402
- return createResourceRequest$7(config);
1402
+ return createResourceRequest$8(config);
1403
1403
  }
1404
1404
 
1405
- const adapterName$7 = 'getApp';
1405
+ const adapterName$8 = 'getApp';
1406
1406
  const getApp_ConfigPropertyMetadata = [
1407
1407
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1408
1408
  ];
1409
- const getApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getApp_ConfigPropertyMetadata);
1410
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$a(getApp_ConfigPropertyMetadata);
1411
- function keyBuilder$k(luvio, config) {
1412
- const resourceParams = createResourceParams$7(config);
1413
- return keyBuilder$l(luvio, resourceParams);
1409
+ const getApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getApp_ConfigPropertyMetadata);
1410
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$b(getApp_ConfigPropertyMetadata);
1411
+ function keyBuilder$m(luvio, config) {
1412
+ const resourceParams = createResourceParams$8(config);
1413
+ return keyBuilder$n(luvio, resourceParams);
1414
1414
  }
1415
- function typeCheckConfig$7(untrustedConfig) {
1415
+ function typeCheckConfig$8(untrustedConfig) {
1416
1416
  const config = {};
1417
- typeCheckConfig$a(untrustedConfig, config, getApp_ConfigPropertyMetadata);
1417
+ typeCheckConfig$b(untrustedConfig, config, getApp_ConfigPropertyMetadata);
1418
1418
  return config;
1419
1419
  }
1420
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1420
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1421
1421
  if (!untrustedIsObject(untrustedConfig)) {
1422
1422
  return null;
1423
1423
  }
1424
1424
  if (process.env.NODE_ENV !== 'production') {
1425
1425
  validateConfig(untrustedConfig, configPropertyNames);
1426
1426
  }
1427
- const config = typeCheckConfig$7(untrustedConfig);
1427
+ const config = typeCheckConfig$8(untrustedConfig);
1428
1428
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1429
1429
  return null;
1430
1430
  }
1431
1431
  return config;
1432
1432
  }
1433
- function adapterFragment$7(luvio, config) {
1434
- createResourceParams$7(config);
1435
- return select$f();
1433
+ function adapterFragment$8(luvio, config) {
1434
+ createResourceParams$8(config);
1435
+ return select$h();
1436
1436
  }
1437
- function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
1438
- const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
1437
+ function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
1438
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
1439
1439
  config,
1440
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1440
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
1441
1441
  });
1442
1442
  return luvio.storeBroadcast().then(() => snapshot);
1443
1443
  }
1444
- function onFetchResponseError$7(luvio, config, resourceParams, response) {
1445
- const snapshot = ingestError$7(luvio, resourceParams, response, {
1444
+ function onFetchResponseError$8(luvio, config, resourceParams, response) {
1445
+ const snapshot = ingestError$8(luvio, resourceParams, response, {
1446
1446
  config,
1447
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1447
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
1448
1448
  });
1449
1449
  return luvio.storeBroadcast().then(() => snapshot);
1450
1450
  }
1451
- function buildNetworkSnapshot$7(luvio, config, options) {
1452
- const resourceParams = createResourceParams$7(config);
1453
- const request = createResourceRequest$7(resourceParams);
1451
+ function buildNetworkSnapshot$8(luvio, config, options) {
1452
+ const resourceParams = createResourceParams$8(config);
1453
+ const request = createResourceRequest$8(resourceParams);
1454
1454
  return luvio.dispatchResourceRequest(request, options)
1455
1455
  .then((response) => {
1456
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
1456
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
1457
1457
  const cache = new StoreKeyMap();
1458
- getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1458
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1459
1459
  return cache;
1460
1460
  });
1461
1461
  }, (response) => {
1462
- return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
1462
+ return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
1463
1463
  });
1464
1464
  }
1465
- function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
1466
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
1465
+ function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
1466
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
1467
1467
  }
1468
- function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
1468
+ function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
1469
1469
  const { luvio, config } = context;
1470
1470
  const selector = {
1471
- recordId: keyBuilder$k(luvio, config),
1472
- node: adapterFragment$7(luvio, config),
1471
+ recordId: keyBuilder$m(luvio, config),
1472
+ node: adapterFragment$8(luvio, config),
1473
1473
  variables: {},
1474
1474
  };
1475
1475
  const cacheSnapshot = storeLookup(selector, {
1476
1476
  config,
1477
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1477
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
1478
1478
  });
1479
1479
  return cacheSnapshot;
1480
1480
  }
1481
1481
  const getAppAdapterFactory = (luvio) => function AppFramework__getApp(untrustedConfig, requestContext) {
1482
- const config = validateAdapterConfig$7(untrustedConfig, getApp_ConfigPropertyNames);
1482
+ const config = validateAdapterConfig$8(untrustedConfig, getApp_ConfigPropertyNames);
1483
1483
  // Invalid or incomplete config
1484
1484
  if (config === null) {
1485
1485
  return null;
1486
1486
  }
1487
1487
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1488
- buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
1488
+ buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
1489
1489
  };
1490
1490
  const notifyChangeFactory$5 = (luvio, options) => {
1491
1491
  return function getAppFrameworkAppsByAppIdOrApiNameNotifyChange(configs) {
1492
- const keys = configs.map(c => keyBuilder$o(luvio, c));
1492
+ const keys = configs.map(c => keyBuilder$q(luvio, c));
1493
1493
  luvio.getNotifyChangeStoreEntries(keys).then(entries => {
1494
1494
  for (let i = 0, len = entries.length; i < len; i++) {
1495
1495
  const { key, record: val } = entries[i];
@@ -1498,21 +1498,21 @@ const notifyChangeFactory$5 = (luvio, options) => {
1498
1498
  .then((response) => {
1499
1499
  return luvio.handleSuccessResponse(() => {
1500
1500
  const { body } = response;
1501
- luvio.storeIngest(key, ingest$9, body);
1501
+ luvio.storeIngest(key, ingest$a, body);
1502
1502
  return luvio.storeBroadcast();
1503
1503
  }, () => {
1504
1504
  const cache = new StoreKeyMap();
1505
- getTypeCacheKeys$9(cache, luvio, response.body);
1505
+ getTypeCacheKeys$a(cache, luvio, response.body);
1506
1506
  return cache;
1507
1507
  });
1508
1508
  }, (error) => {
1509
1509
  return luvio.handleErrorResponse(() => {
1510
1510
  const errorSnapshot = luvio.errorSnapshot(error);
1511
1511
  luvio.storeIngestError(key, errorSnapshot, {
1512
- ttl: TTL$9,
1512
+ ttl: TTL$a,
1513
1513
  namespace: keyPrefix,
1514
- version: VERSION$9,
1515
- representationName: RepresentationType$9
1514
+ version: VERSION$a,
1515
+ representationName: RepresentationType$a
1516
1516
  });
1517
1517
  return luvio.storeBroadcast().then(() => errorSnapshot);
1518
1518
  });
@@ -1522,9 +1522,9 @@ const notifyChangeFactory$5 = (luvio, options) => {
1522
1522
  };
1523
1523
  };
1524
1524
 
1525
- const TTL$7 = 5000;
1526
- const VERSION$7 = "b8e879a936b5069ec247355c66198ca7";
1527
- function validate$7(obj, path = 'AppActivityItemRepresentation') {
1525
+ const TTL$8 = 5000;
1526
+ const VERSION$8 = "b8e879a936b5069ec247355c66198ca7";
1527
+ function validate$8(obj, path = 'AppActivityItemRepresentation') {
1528
1528
  const v_error = (() => {
1529
1529
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1530
1530
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1566,24 +1566,24 @@ function validate$7(obj, path = 'AppActivityItemRepresentation') {
1566
1566
  })();
1567
1567
  return v_error === undefined ? null : v_error;
1568
1568
  }
1569
- const RepresentationType$7 = 'AppActivityItemRepresentation';
1570
- function keyBuilder$j(luvio, config) {
1571
- return keyPrefix + '::' + RepresentationType$7 + ':' + config.appId + ':' + config.id;
1569
+ const RepresentationType$8 = 'AppActivityItemRepresentation';
1570
+ function keyBuilder$l(luvio, config) {
1571
+ return keyPrefix + '::' + RepresentationType$8 + ':' + config.appId + ':' + config.id;
1572
1572
  }
1573
1573
  function keyBuilderFromType$5(luvio, object) {
1574
1574
  const keyParams = {
1575
1575
  appId: object.appId,
1576
1576
  id: object.id
1577
1577
  };
1578
- return keyBuilder$j(luvio, keyParams);
1578
+ return keyBuilder$l(luvio, keyParams);
1579
1579
  }
1580
- function normalize$7(input, existing, path, luvio, store, timestamp) {
1580
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
1581
1581
  return input;
1582
1582
  }
1583
- const select$e = function AppActivityItemRepresentationSelect() {
1583
+ const select$g = function AppActivityItemRepresentationSelect() {
1584
1584
  return {
1585
1585
  kind: 'Fragment',
1586
- version: VERSION$7,
1586
+ version: VERSION$8,
1587
1587
  private: [],
1588
1588
  selections: [
1589
1589
  {
@@ -1610,7 +1610,7 @@ const select$e = function AppActivityItemRepresentationSelect() {
1610
1610
  ]
1611
1611
  };
1612
1612
  };
1613
- function equals$7(existing, incoming) {
1613
+ function equals$8(existing, incoming) {
1614
1614
  const existing_activityType = existing.activityType;
1615
1615
  const incoming_activityType = incoming.activityType;
1616
1616
  if (!(existing_activityType === incoming_activityType)) {
@@ -1643,31 +1643,31 @@ function equals$7(existing, incoming) {
1643
1643
  }
1644
1644
  return true;
1645
1645
  }
1646
- const ingest$7 = function AppActivityItemRepresentationIngest(input, path, luvio, store, timestamp) {
1646
+ const ingest$8 = function AppActivityItemRepresentationIngest(input, path, luvio, store, timestamp) {
1647
1647
  if (process.env.NODE_ENV !== 'production') {
1648
- const validateError = validate$7(input);
1648
+ const validateError = validate$8(input);
1649
1649
  if (validateError !== null) {
1650
1650
  throw validateError;
1651
1651
  }
1652
1652
  }
1653
1653
  const key = keyBuilderFromType$5(luvio, input);
1654
- const ttlToUse = TTL$7;
1655
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "AppFramework", VERSION$7, RepresentationType$7, equals$7);
1654
+ const ttlToUse = TTL$8;
1655
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "AppFramework", VERSION$8, RepresentationType$8, equals$8);
1656
1656
  return createLink(key);
1657
1657
  };
1658
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1658
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
1659
1659
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1660
1660
  const rootKey = keyBuilderFromType$5(luvio, input);
1661
1661
  rootKeySet.set(rootKey, {
1662
1662
  namespace: keyPrefix,
1663
- representationName: RepresentationType$7,
1663
+ representationName: RepresentationType$8,
1664
1664
  mergeable: false
1665
1665
  });
1666
1666
  }
1667
1667
 
1668
- const TTL$6 = 5000;
1669
- const VERSION$6 = "e0f049ec23678e696fb7c592c9641c65";
1670
- function validate$6(obj, path = 'AppActivityCollectionRepresentation') {
1668
+ const TTL$7 = 5000;
1669
+ const VERSION$7 = "e0f049ec23678e696fb7c592c9641c65";
1670
+ function validate$7(obj, path = 'AppActivityCollectionRepresentation') {
1671
1671
  const v_error = (() => {
1672
1672
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1673
1673
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1692,23 +1692,23 @@ function validate$6(obj, path = 'AppActivityCollectionRepresentation') {
1692
1692
  })();
1693
1693
  return v_error === undefined ? null : v_error;
1694
1694
  }
1695
- const RepresentationType$6 = 'AppActivityCollectionRepresentation';
1696
- function keyBuilder$i(luvio, config) {
1697
- return keyPrefix + '::' + RepresentationType$6 + ':' + config.appId;
1695
+ const RepresentationType$7 = 'AppActivityCollectionRepresentation';
1696
+ function keyBuilder$k(luvio, config) {
1697
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.appId;
1698
1698
  }
1699
1699
  function keyBuilderFromType$4(luvio, object) {
1700
1700
  const keyParams = {
1701
1701
  appId: object.appId
1702
1702
  };
1703
- return keyBuilder$i(luvio, keyParams);
1703
+ return keyBuilder$k(luvio, keyParams);
1704
1704
  }
1705
- function normalize$6(input, existing, path, luvio, store, timestamp) {
1705
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
1706
1706
  const input_items = input.items;
1707
1707
  const input_items_id = path.fullPath + '__items';
1708
1708
  for (let i = 0; i < input_items.length; i++) {
1709
1709
  const input_items_item = input_items[i];
1710
1710
  let input_items_item_id = input_items_id + '__' + i;
1711
- input_items[i] = ingest$7(input_items_item, {
1711
+ input_items[i] = ingest$8(input_items_item, {
1712
1712
  fullPath: input_items_item_id,
1713
1713
  propertyName: i,
1714
1714
  parent: {
@@ -1721,10 +1721,10 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
1721
1721
  }
1722
1722
  return input;
1723
1723
  }
1724
- const select$d = function AppActivityCollectionRepresentationSelect() {
1724
+ const select$f = function AppActivityCollectionRepresentationSelect() {
1725
1725
  return {
1726
1726
  kind: 'Fragment',
1727
- version: VERSION$6,
1727
+ version: VERSION$7,
1728
1728
  private: [],
1729
1729
  selections: [
1730
1730
  {
@@ -1735,12 +1735,12 @@ const select$d = function AppActivityCollectionRepresentationSelect() {
1735
1735
  name: 'items',
1736
1736
  kind: 'Link',
1737
1737
  plural: true,
1738
- fragment: select$e()
1738
+ fragment: select$g()
1739
1739
  }
1740
1740
  ]
1741
1741
  };
1742
1742
  };
1743
- function equals$6(existing, incoming) {
1743
+ function equals$7(existing, incoming) {
1744
1744
  const existing_appId = existing.appId;
1745
1745
  const incoming_appId = incoming.appId;
1746
1746
  if (!(existing_appId === incoming_appId)) {
@@ -1758,50 +1758,50 @@ function equals$6(existing, incoming) {
1758
1758
  }
1759
1759
  return true;
1760
1760
  }
1761
- const ingest$6 = function AppActivityCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1761
+ const ingest$7 = function AppActivityCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1762
1762
  if (process.env.NODE_ENV !== 'production') {
1763
- const validateError = validate$6(input);
1763
+ const validateError = validate$7(input);
1764
1764
  if (validateError !== null) {
1765
1765
  throw validateError;
1766
1766
  }
1767
1767
  }
1768
1768
  const key = keyBuilderFromType$4(luvio, input);
1769
- const ttlToUse = TTL$6;
1770
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "AppFramework", VERSION$6, RepresentationType$6, equals$6);
1769
+ const ttlToUse = TTL$7;
1770
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "AppFramework", VERSION$7, RepresentationType$7, equals$7);
1771
1771
  return createLink(key);
1772
1772
  };
1773
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1773
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1774
1774
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1775
1775
  const rootKey = keyBuilderFromType$4(luvio, input);
1776
1776
  rootKeySet.set(rootKey, {
1777
1777
  namespace: keyPrefix,
1778
- representationName: RepresentationType$6,
1778
+ representationName: RepresentationType$7,
1779
1779
  mergeable: false
1780
1780
  });
1781
1781
  const input_items_length = input.items.length;
1782
1782
  for (let i = 0; i < input_items_length; i++) {
1783
- getTypeCacheKeys$7(rootKeySet, luvio, input.items[i]);
1783
+ getTypeCacheKeys$8(rootKeySet, luvio, input.items[i]);
1784
1784
  }
1785
1785
  }
1786
1786
 
1787
- function select$c(luvio, params) {
1788
- return select$d();
1787
+ function select$e(luvio, params) {
1788
+ return select$f();
1789
1789
  }
1790
- function keyBuilder$h(luvio, params) {
1791
- return keyBuilder$i(luvio, {
1790
+ function keyBuilder$j(luvio, params) {
1791
+ return keyBuilder$k(luvio, {
1792
1792
  appId: params.urlParams.appIdOrApiName
1793
1793
  });
1794
1794
  }
1795
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1796
- getTypeCacheKeys$6(storeKeyMap, luvio, response);
1795
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1796
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
1797
1797
  }
1798
- function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1798
+ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
1799
1799
  const { body } = response;
1800
- const key = keyBuilder$h(luvio, resourceParams);
1801
- luvio.storeIngest(key, ingest$6, body);
1800
+ const key = keyBuilder$j(luvio, resourceParams);
1801
+ luvio.storeIngest(key, ingest$7, body);
1802
1802
  const snapshot = luvio.storeLookup({
1803
1803
  recordId: key,
1804
- node: select$c(),
1804
+ node: select$e(),
1805
1805
  variables: {},
1806
1806
  }, snapshotRefresh);
1807
1807
  if (process.env.NODE_ENV !== 'production') {
@@ -1812,19 +1812,19 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1812
1812
  deepFreeze(snapshot.data);
1813
1813
  return snapshot;
1814
1814
  }
1815
- function ingestError$6(luvio, params, error, snapshotRefresh) {
1816
- const key = keyBuilder$h(luvio, params);
1815
+ function ingestError$7(luvio, params, error, snapshotRefresh) {
1816
+ const key = keyBuilder$j(luvio, params);
1817
1817
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1818
1818
  const storeMetadataParams = {
1819
- ttl: TTL$6,
1819
+ ttl: TTL$7,
1820
1820
  namespace: keyPrefix,
1821
- version: VERSION$6,
1822
- representationName: RepresentationType$6
1821
+ version: VERSION$7,
1822
+ representationName: RepresentationType$7
1823
1823
  };
1824
1824
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1825
1825
  return errorSnapshot;
1826
1826
  }
1827
- function createResourceRequest$6(config) {
1827
+ function createResourceRequest$7(config) {
1828
1828
  const headers = {};
1829
1829
  return {
1830
1830
  baseUri: '/services/data/v62.0',
@@ -1842,97 +1842,97 @@ function createResourceRequestFromRepresentation$4(representation) {
1842
1842
  urlParams: {},
1843
1843
  };
1844
1844
  config.urlParams.appIdOrApiName = representation.appId;
1845
- return createResourceRequest$6(config);
1845
+ return createResourceRequest$7(config);
1846
1846
  }
1847
1847
 
1848
- const adapterName$6 = 'getAppActivities';
1848
+ const adapterName$7 = 'getAppActivities';
1849
1849
  const getAppActivities_ConfigPropertyMetadata = [
1850
1850
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1851
1851
  ];
1852
- const getAppActivities_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getAppActivities_ConfigPropertyMetadata);
1853
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$a(getAppActivities_ConfigPropertyMetadata);
1854
- function keyBuilder$g(luvio, config) {
1855
- const resourceParams = createResourceParams$6(config);
1856
- return keyBuilder$h(luvio, resourceParams);
1852
+ const getAppActivities_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getAppActivities_ConfigPropertyMetadata);
1853
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$b(getAppActivities_ConfigPropertyMetadata);
1854
+ function keyBuilder$i(luvio, config) {
1855
+ const resourceParams = createResourceParams$7(config);
1856
+ return keyBuilder$j(luvio, resourceParams);
1857
1857
  }
1858
- function typeCheckConfig$6(untrustedConfig) {
1858
+ function typeCheckConfig$7(untrustedConfig) {
1859
1859
  const config = {};
1860
- typeCheckConfig$a(untrustedConfig, config, getAppActivities_ConfigPropertyMetadata);
1860
+ typeCheckConfig$b(untrustedConfig, config, getAppActivities_ConfigPropertyMetadata);
1861
1861
  return config;
1862
1862
  }
1863
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1863
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1864
1864
  if (!untrustedIsObject(untrustedConfig)) {
1865
1865
  return null;
1866
1866
  }
1867
1867
  if (process.env.NODE_ENV !== 'production') {
1868
1868
  validateConfig(untrustedConfig, configPropertyNames);
1869
1869
  }
1870
- const config = typeCheckConfig$6(untrustedConfig);
1870
+ const config = typeCheckConfig$7(untrustedConfig);
1871
1871
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1872
1872
  return null;
1873
1873
  }
1874
1874
  return config;
1875
1875
  }
1876
- function adapterFragment$6(luvio, config) {
1877
- createResourceParams$6(config);
1878
- return select$c();
1876
+ function adapterFragment$7(luvio, config) {
1877
+ createResourceParams$7(config);
1878
+ return select$e();
1879
1879
  }
1880
- function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
1881
- const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
1880
+ function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
1881
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
1882
1882
  config,
1883
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1883
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1884
1884
  });
1885
1885
  return luvio.storeBroadcast().then(() => snapshot);
1886
1886
  }
1887
- function onFetchResponseError$6(luvio, config, resourceParams, response) {
1888
- const snapshot = ingestError$6(luvio, resourceParams, response, {
1887
+ function onFetchResponseError$7(luvio, config, resourceParams, response) {
1888
+ const snapshot = ingestError$7(luvio, resourceParams, response, {
1889
1889
  config,
1890
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1890
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1891
1891
  });
1892
1892
  return luvio.storeBroadcast().then(() => snapshot);
1893
1893
  }
1894
- function buildNetworkSnapshot$6(luvio, config, options) {
1895
- const resourceParams = createResourceParams$6(config);
1896
- const request = createResourceRequest$6(resourceParams);
1894
+ function buildNetworkSnapshot$7(luvio, config, options) {
1895
+ const resourceParams = createResourceParams$7(config);
1896
+ const request = createResourceRequest$7(resourceParams);
1897
1897
  return luvio.dispatchResourceRequest(request, options)
1898
1898
  .then((response) => {
1899
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
1899
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
1900
1900
  const cache = new StoreKeyMap();
1901
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
1901
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1902
1902
  return cache;
1903
1903
  });
1904
1904
  }, (response) => {
1905
- return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
1905
+ return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
1906
1906
  });
1907
1907
  }
1908
- function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
1909
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
1908
+ function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
1909
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
1910
1910
  }
1911
- function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
1911
+ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
1912
1912
  const { luvio, config } = context;
1913
1913
  const selector = {
1914
- recordId: keyBuilder$g(luvio, config),
1915
- node: adapterFragment$6(luvio, config),
1914
+ recordId: keyBuilder$i(luvio, config),
1915
+ node: adapterFragment$7(luvio, config),
1916
1916
  variables: {},
1917
1917
  };
1918
1918
  const cacheSnapshot = storeLookup(selector, {
1919
1919
  config,
1920
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1920
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1921
1921
  });
1922
1922
  return cacheSnapshot;
1923
1923
  }
1924
1924
  const getAppActivitiesAdapterFactory = (luvio) => function AppFramework__getAppActivities(untrustedConfig, requestContext) {
1925
- const config = validateAdapterConfig$6(untrustedConfig, getAppActivities_ConfigPropertyNames);
1925
+ const config = validateAdapterConfig$7(untrustedConfig, getAppActivities_ConfigPropertyNames);
1926
1926
  // Invalid or incomplete config
1927
1927
  if (config === null) {
1928
1928
  return null;
1929
1929
  }
1930
1930
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1931
- buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
1931
+ buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
1932
1932
  };
1933
1933
  const notifyChangeFactory$4 = (luvio, options) => {
1934
1934
  return function getAppFrameworkAppsActivitiesByAppIdOrApiNameNotifyChange(configs) {
1935
- const keys = configs.map(c => keyBuilder$i(luvio, c));
1935
+ const keys = configs.map(c => keyBuilder$k(luvio, c));
1936
1936
  luvio.getNotifyChangeStoreEntries(keys).then(entries => {
1937
1937
  for (let i = 0, len = entries.length; i < len; i++) {
1938
1938
  const { key, record: val } = entries[i];
@@ -1941,21 +1941,21 @@ const notifyChangeFactory$4 = (luvio, options) => {
1941
1941
  .then((response) => {
1942
1942
  return luvio.handleSuccessResponse(() => {
1943
1943
  const { body } = response;
1944
- luvio.storeIngest(key, ingest$6, body);
1944
+ luvio.storeIngest(key, ingest$7, body);
1945
1945
  return luvio.storeBroadcast();
1946
1946
  }, () => {
1947
1947
  const cache = new StoreKeyMap();
1948
- getTypeCacheKeys$6(cache, luvio, response.body);
1948
+ getTypeCacheKeys$7(cache, luvio, response.body);
1949
1949
  return cache;
1950
1950
  });
1951
1951
  }, (error) => {
1952
1952
  return luvio.handleErrorResponse(() => {
1953
1953
  const errorSnapshot = luvio.errorSnapshot(error);
1954
1954
  luvio.storeIngestError(key, errorSnapshot, {
1955
- ttl: TTL$6,
1955
+ ttl: TTL$7,
1956
1956
  namespace: keyPrefix,
1957
- version: VERSION$6,
1958
- representationName: RepresentationType$6
1957
+ version: VERSION$7,
1958
+ representationName: RepresentationType$7
1959
1959
  });
1960
1960
  return luvio.storeBroadcast().then(() => errorSnapshot);
1961
1961
  });
@@ -1965,25 +1965,25 @@ const notifyChangeFactory$4 = (luvio, options) => {
1965
1965
  };
1966
1966
  };
1967
1967
 
1968
- function select$b(luvio, params) {
1969
- return select$e();
1968
+ function select$d(luvio, params) {
1969
+ return select$g();
1970
1970
  }
1971
- function keyBuilder$f(luvio, params) {
1972
- return keyBuilder$j(luvio, {
1971
+ function keyBuilder$h(luvio, params) {
1972
+ return keyBuilder$l(luvio, {
1973
1973
  appId: params.urlParams.appIdOrApiName,
1974
1974
  id: params.urlParams.id
1975
1975
  });
1976
1976
  }
1977
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1978
- getTypeCacheKeys$7(storeKeyMap, luvio, response);
1977
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1978
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
1979
1979
  }
1980
- function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
1980
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1981
1981
  const { body } = response;
1982
- const key = keyBuilder$f(luvio, resourceParams);
1983
- luvio.storeIngest(key, ingest$7, body);
1982
+ const key = keyBuilder$h(luvio, resourceParams);
1983
+ luvio.storeIngest(key, ingest$8, body);
1984
1984
  const snapshot = luvio.storeLookup({
1985
1985
  recordId: key,
1986
- node: select$b(),
1986
+ node: select$d(),
1987
1987
  variables: {},
1988
1988
  }, snapshotRefresh);
1989
1989
  if (process.env.NODE_ENV !== 'production') {
@@ -1994,19 +1994,19 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
1994
1994
  deepFreeze(snapshot.data);
1995
1995
  return snapshot;
1996
1996
  }
1997
- function ingestError$5(luvio, params, error, snapshotRefresh) {
1998
- const key = keyBuilder$f(luvio, params);
1997
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
1998
+ const key = keyBuilder$h(luvio, params);
1999
1999
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2000
2000
  const storeMetadataParams = {
2001
- ttl: TTL$7,
2001
+ ttl: TTL$8,
2002
2002
  namespace: keyPrefix,
2003
- version: VERSION$7,
2004
- representationName: RepresentationType$7
2003
+ version: VERSION$8,
2004
+ representationName: RepresentationType$8
2005
2005
  };
2006
2006
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2007
2007
  return errorSnapshot;
2008
2008
  }
2009
- function createResourceRequest$5(config) {
2009
+ function createResourceRequest$6(config) {
2010
2010
  const headers = {};
2011
2011
  return {
2012
2012
  baseUri: '/services/data/v62.0',
@@ -2025,98 +2025,98 @@ function createResourceRequestFromRepresentation$3(representation) {
2025
2025
  };
2026
2026
  config.urlParams.appIdOrApiName = representation.appId;
2027
2027
  config.urlParams.id = representation.id;
2028
- return createResourceRequest$5(config);
2028
+ return createResourceRequest$6(config);
2029
2029
  }
2030
2030
 
2031
- const adapterName$5 = 'getAppActivity';
2031
+ const adapterName$6 = 'getAppActivity';
2032
2032
  const getAppActivity_ConfigPropertyMetadata = [
2033
2033
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2034
2034
  generateParamConfigMetadata('id', true, 0 /* UrlParameter */, 0 /* String */),
2035
2035
  ];
2036
- const getAppActivity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getAppActivity_ConfigPropertyMetadata);
2037
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$a(getAppActivity_ConfigPropertyMetadata);
2038
- function keyBuilder$e(luvio, config) {
2039
- const resourceParams = createResourceParams$5(config);
2040
- return keyBuilder$f(luvio, resourceParams);
2036
+ const getAppActivity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getAppActivity_ConfigPropertyMetadata);
2037
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$b(getAppActivity_ConfigPropertyMetadata);
2038
+ function keyBuilder$g(luvio, config) {
2039
+ const resourceParams = createResourceParams$6(config);
2040
+ return keyBuilder$h(luvio, resourceParams);
2041
2041
  }
2042
- function typeCheckConfig$5(untrustedConfig) {
2042
+ function typeCheckConfig$6(untrustedConfig) {
2043
2043
  const config = {};
2044
- typeCheckConfig$a(untrustedConfig, config, getAppActivity_ConfigPropertyMetadata);
2044
+ typeCheckConfig$b(untrustedConfig, config, getAppActivity_ConfigPropertyMetadata);
2045
2045
  return config;
2046
2046
  }
2047
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
2047
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
2048
2048
  if (!untrustedIsObject(untrustedConfig)) {
2049
2049
  return null;
2050
2050
  }
2051
2051
  if (process.env.NODE_ENV !== 'production') {
2052
2052
  validateConfig(untrustedConfig, configPropertyNames);
2053
2053
  }
2054
- const config = typeCheckConfig$5(untrustedConfig);
2054
+ const config = typeCheckConfig$6(untrustedConfig);
2055
2055
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2056
2056
  return null;
2057
2057
  }
2058
2058
  return config;
2059
2059
  }
2060
- function adapterFragment$5(luvio, config) {
2061
- createResourceParams$5(config);
2062
- return select$b();
2060
+ function adapterFragment$6(luvio, config) {
2061
+ createResourceParams$6(config);
2062
+ return select$d();
2063
2063
  }
2064
- function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
2065
- const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
2064
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
2065
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
2066
2066
  config,
2067
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2067
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2068
2068
  });
2069
2069
  return luvio.storeBroadcast().then(() => snapshot);
2070
2070
  }
2071
- function onFetchResponseError$5(luvio, config, resourceParams, response) {
2072
- const snapshot = ingestError$5(luvio, resourceParams, response, {
2071
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
2072
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
2073
2073
  config,
2074
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2074
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2075
2075
  });
2076
2076
  return luvio.storeBroadcast().then(() => snapshot);
2077
2077
  }
2078
- function buildNetworkSnapshot$5(luvio, config, options) {
2079
- const resourceParams = createResourceParams$5(config);
2080
- const request = createResourceRequest$5(resourceParams);
2078
+ function buildNetworkSnapshot$6(luvio, config, options) {
2079
+ const resourceParams = createResourceParams$6(config);
2080
+ const request = createResourceRequest$6(resourceParams);
2081
2081
  return luvio.dispatchResourceRequest(request, options)
2082
2082
  .then((response) => {
2083
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
2083
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
2084
2084
  const cache = new StoreKeyMap();
2085
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
2085
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
2086
2086
  return cache;
2087
2087
  });
2088
2088
  }, (response) => {
2089
- return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
2089
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
2090
2090
  });
2091
2091
  }
2092
- function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
2093
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
2092
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
2093
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
2094
2094
  }
2095
- function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
2095
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
2096
2096
  const { luvio, config } = context;
2097
2097
  const selector = {
2098
- recordId: keyBuilder$e(luvio, config),
2099
- node: adapterFragment$5(luvio, config),
2098
+ recordId: keyBuilder$g(luvio, config),
2099
+ node: adapterFragment$6(luvio, config),
2100
2100
  variables: {},
2101
2101
  };
2102
2102
  const cacheSnapshot = storeLookup(selector, {
2103
2103
  config,
2104
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2104
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2105
2105
  });
2106
2106
  return cacheSnapshot;
2107
2107
  }
2108
2108
  const getAppActivityAdapterFactory = (luvio) => function AppFramework__getAppActivity(untrustedConfig, requestContext) {
2109
- const config = validateAdapterConfig$5(untrustedConfig, getAppActivity_ConfigPropertyNames);
2109
+ const config = validateAdapterConfig$6(untrustedConfig, getAppActivity_ConfigPropertyNames);
2110
2110
  // Invalid or incomplete config
2111
2111
  if (config === null) {
2112
2112
  return null;
2113
2113
  }
2114
2114
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2115
- buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
2115
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
2116
2116
  };
2117
2117
  const notifyChangeFactory$3 = (luvio, options) => {
2118
2118
  return function getAppFrameworkAppsActivitiesByAppIdOrApiNameAndIdNotifyChange(configs) {
2119
- const keys = configs.map(c => keyBuilder$j(luvio, c));
2119
+ const keys = configs.map(c => keyBuilder$l(luvio, c));
2120
2120
  luvio.getNotifyChangeStoreEntries(keys).then(entries => {
2121
2121
  for (let i = 0, len = entries.length; i < len; i++) {
2122
2122
  const { key, record: val } = entries[i];
@@ -2125,21 +2125,21 @@ const notifyChangeFactory$3 = (luvio, options) => {
2125
2125
  .then((response) => {
2126
2126
  return luvio.handleSuccessResponse(() => {
2127
2127
  const { body } = response;
2128
- luvio.storeIngest(key, ingest$7, body);
2128
+ luvio.storeIngest(key, ingest$8, body);
2129
2129
  return luvio.storeBroadcast();
2130
2130
  }, () => {
2131
2131
  const cache = new StoreKeyMap();
2132
- getTypeCacheKeys$7(cache, luvio, response.body);
2132
+ getTypeCacheKeys$8(cache, luvio, response.body);
2133
2133
  return cache;
2134
2134
  });
2135
2135
  }, (error) => {
2136
2136
  return luvio.handleErrorResponse(() => {
2137
2137
  const errorSnapshot = luvio.errorSnapshot(error);
2138
2138
  luvio.storeIngestError(key, errorSnapshot, {
2139
- ttl: TTL$7,
2139
+ ttl: TTL$8,
2140
2140
  namespace: keyPrefix,
2141
- version: VERSION$7,
2142
- representationName: RepresentationType$7
2141
+ version: VERSION$8,
2142
+ representationName: RepresentationType$8
2143
2143
  });
2144
2144
  return luvio.storeBroadcast().then(() => errorSnapshot);
2145
2145
  });
@@ -2149,9 +2149,9 @@ const notifyChangeFactory$3 = (luvio, options) => {
2149
2149
  };
2150
2150
  };
2151
2151
 
2152
- const TTL$5 = 5000;
2153
- const VERSION$5 = "34bc50b3e68f546eb8e99af16e45d84b";
2154
- function validate$5(obj, path = 'AssetRepresentation') {
2152
+ const TTL$6 = 5000;
2153
+ const VERSION$6 = "b91a35834fb34f4f6cede2d5dc29dc5d";
2154
+ function validate$6(obj, path = 'AssetRepresentation') {
2155
2155
  const v_error = (() => {
2156
2156
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2157
2157
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2249,6 +2249,32 @@ function validate$5(obj, path = 'AssetRepresentation') {
2249
2249
  message += '\n' + obj_templateAssetSourceName_union1.split('\n').map((line) => '\t' + line).join('\n');
2250
2250
  return new TypeError(message);
2251
2251
  }
2252
+ const obj_templateSourceId = obj.templateSourceId;
2253
+ const path_templateSourceId = path + '.templateSourceId';
2254
+ let obj_templateSourceId_union0 = null;
2255
+ const obj_templateSourceId_union0_error = (() => {
2256
+ if (typeof obj_templateSourceId !== 'string') {
2257
+ return new TypeError('Expected "string" but received "' + typeof obj_templateSourceId + '" (at "' + path_templateSourceId + '")');
2258
+ }
2259
+ })();
2260
+ if (obj_templateSourceId_union0_error != null) {
2261
+ obj_templateSourceId_union0 = obj_templateSourceId_union0_error.message;
2262
+ }
2263
+ let obj_templateSourceId_union1 = null;
2264
+ const obj_templateSourceId_union1_error = (() => {
2265
+ if (obj_templateSourceId !== null) {
2266
+ return new TypeError('Expected "null" but received "' + typeof obj_templateSourceId + '" (at "' + path_templateSourceId + '")');
2267
+ }
2268
+ })();
2269
+ if (obj_templateSourceId_union1_error != null) {
2270
+ obj_templateSourceId_union1 = obj_templateSourceId_union1_error.message;
2271
+ }
2272
+ if (obj_templateSourceId_union0 && obj_templateSourceId_union1) {
2273
+ let message = 'Object doesn\'t match union (at "' + path_templateSourceId + '")';
2274
+ message += '\n' + obj_templateSourceId_union0.split('\n').map((line) => '\t' + line).join('\n');
2275
+ message += '\n' + obj_templateSourceId_union1.split('\n').map((line) => '\t' + line).join('\n');
2276
+ return new TypeError(message);
2277
+ }
2252
2278
  const obj_type = obj.type;
2253
2279
  const path_type = path + '.type';
2254
2280
  let obj_type_union0 = null;
@@ -2278,23 +2304,23 @@ function validate$5(obj, path = 'AssetRepresentation') {
2278
2304
  })();
2279
2305
  return v_error === undefined ? null : v_error;
2280
2306
  }
2281
- const RepresentationType$5 = 'AssetRepresentation';
2282
- function keyBuilder$d(luvio, config) {
2283
- return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
2307
+ const RepresentationType$6 = 'AssetRepresentation';
2308
+ function keyBuilder$f(luvio, config) {
2309
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.id;
2284
2310
  }
2285
2311
  function keyBuilderFromType$3(luvio, object) {
2286
2312
  const keyParams = {
2287
2313
  id: object.id
2288
2314
  };
2289
- return keyBuilder$d(luvio, keyParams);
2315
+ return keyBuilder$f(luvio, keyParams);
2290
2316
  }
2291
- function normalize$5(input, existing, path, luvio, store, timestamp) {
2317
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
2292
2318
  return input;
2293
2319
  }
2294
- const select$a = function AssetRepresentationSelect() {
2320
+ const select$c = function AssetRepresentationSelect() {
2295
2321
  return {
2296
2322
  kind: 'Fragment',
2297
- version: VERSION$5,
2323
+ version: VERSION$6,
2298
2324
  private: [],
2299
2325
  selections: [
2300
2326
  {
@@ -2321,6 +2347,10 @@ const select$a = function AssetRepresentationSelect() {
2321
2347
  name: 'templateAssetSourceName',
2322
2348
  kind: 'Scalar'
2323
2349
  },
2350
+ {
2351
+ name: 'templateSourceId',
2352
+ kind: 'Scalar'
2353
+ },
2324
2354
  {
2325
2355
  name: 'type',
2326
2356
  kind: 'Scalar'
@@ -2328,7 +2358,7 @@ const select$a = function AssetRepresentationSelect() {
2328
2358
  ]
2329
2359
  };
2330
2360
  };
2331
- function equals$5(existing, incoming) {
2361
+ function equals$6(existing, incoming) {
2332
2362
  const existing_appId = existing.appId;
2333
2363
  const incoming_appId = incoming.appId;
2334
2364
  if (!(existing_appId === incoming_appId)) {
@@ -2359,6 +2389,11 @@ function equals$5(existing, incoming) {
2359
2389
  if (!(existing_templateAssetSourceName === incoming_templateAssetSourceName)) {
2360
2390
  return false;
2361
2391
  }
2392
+ const existing_templateSourceId = existing.templateSourceId;
2393
+ const incoming_templateSourceId = incoming.templateSourceId;
2394
+ if (!(existing_templateSourceId === incoming_templateSourceId)) {
2395
+ return false;
2396
+ }
2362
2397
  const existing_type = existing.type;
2363
2398
  const incoming_type = incoming.type;
2364
2399
  if (!(existing_type === incoming_type)) {
@@ -2366,31 +2401,31 @@ function equals$5(existing, incoming) {
2366
2401
  }
2367
2402
  return true;
2368
2403
  }
2369
- const ingest$5 = function AssetRepresentationIngest(input, path, luvio, store, timestamp) {
2404
+ const ingest$6 = function AssetRepresentationIngest(input, path, luvio, store, timestamp) {
2370
2405
  if (process.env.NODE_ENV !== 'production') {
2371
- const validateError = validate$5(input);
2406
+ const validateError = validate$6(input);
2372
2407
  if (validateError !== null) {
2373
2408
  throw validateError;
2374
2409
  }
2375
2410
  }
2376
2411
  const key = keyBuilderFromType$3(luvio, input);
2377
- const ttlToUse = TTL$5;
2378
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "AppFramework", VERSION$5, RepresentationType$5, equals$5);
2412
+ const ttlToUse = TTL$6;
2413
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "AppFramework", VERSION$6, RepresentationType$6, equals$6);
2379
2414
  return createLink(key);
2380
2415
  };
2381
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
2416
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
2382
2417
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2383
2418
  const rootKey = keyBuilderFromType$3(luvio, input);
2384
2419
  rootKeySet.set(rootKey, {
2385
2420
  namespace: keyPrefix,
2386
- representationName: RepresentationType$5,
2421
+ representationName: RepresentationType$6,
2387
2422
  mergeable: false
2388
2423
  });
2389
2424
  }
2390
2425
 
2391
- const TTL$4 = 5000;
2392
- const VERSION$4 = "1a10175fcc2ad43823e47bfbbdf917f6";
2393
- function validate$4(obj, path = 'AssetCollectionRepresentation') {
2426
+ const TTL$5 = 5000;
2427
+ const VERSION$5 = "1a10175fcc2ad43823e47bfbbdf917f6";
2428
+ function validate$5(obj, path = 'AssetCollectionRepresentation') {
2394
2429
  const v_error = (() => {
2395
2430
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2396
2431
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2415,23 +2450,23 @@ function validate$4(obj, path = 'AssetCollectionRepresentation') {
2415
2450
  })();
2416
2451
  return v_error === undefined ? null : v_error;
2417
2452
  }
2418
- const RepresentationType$4 = 'AssetCollectionRepresentation';
2419
- function keyBuilder$c(luvio, config) {
2420
- return keyPrefix + '::' + RepresentationType$4 + ':' + config.appId;
2453
+ const RepresentationType$5 = 'AssetCollectionRepresentation';
2454
+ function keyBuilder$e(luvio, config) {
2455
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.appId;
2421
2456
  }
2422
2457
  function keyBuilderFromType$2(luvio, object) {
2423
2458
  const keyParams = {
2424
2459
  appId: object.appId
2425
2460
  };
2426
- return keyBuilder$c(luvio, keyParams);
2461
+ return keyBuilder$e(luvio, keyParams);
2427
2462
  }
2428
- function normalize$4(input, existing, path, luvio, store, timestamp) {
2463
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
2429
2464
  const input_assets = input.assets;
2430
2465
  const input_assets_id = path.fullPath + '__assets';
2431
2466
  for (let i = 0; i < input_assets.length; i++) {
2432
2467
  const input_assets_item = input_assets[i];
2433
2468
  let input_assets_item_id = input_assets_id + '__' + i;
2434
- input_assets[i] = ingest$5(input_assets_item, {
2469
+ input_assets[i] = ingest$6(input_assets_item, {
2435
2470
  fullPath: input_assets_item_id,
2436
2471
  propertyName: i,
2437
2472
  parent: {
@@ -2444,10 +2479,10 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
2444
2479
  }
2445
2480
  return input;
2446
2481
  }
2447
- const select$9 = function AssetCollectionRepresentationSelect() {
2482
+ const select$b = function AssetCollectionRepresentationSelect() {
2448
2483
  return {
2449
2484
  kind: 'Fragment',
2450
- version: VERSION$4,
2485
+ version: VERSION$5,
2451
2486
  private: [],
2452
2487
  selections: [
2453
2488
  {
@@ -2458,12 +2493,12 @@ const select$9 = function AssetCollectionRepresentationSelect() {
2458
2493
  name: 'assets',
2459
2494
  kind: 'Link',
2460
2495
  plural: true,
2461
- fragment: select$a()
2496
+ fragment: select$c()
2462
2497
  }
2463
2498
  ]
2464
2499
  };
2465
2500
  };
2466
- function equals$4(existing, incoming) {
2501
+ function equals$5(existing, incoming) {
2467
2502
  const existing_appId = existing.appId;
2468
2503
  const incoming_appId = incoming.appId;
2469
2504
  if (!(existing_appId === incoming_appId)) {
@@ -2481,50 +2516,50 @@ function equals$4(existing, incoming) {
2481
2516
  }
2482
2517
  return true;
2483
2518
  }
2484
- const ingest$4 = function AssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2519
+ const ingest$5 = function AssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2485
2520
  if (process.env.NODE_ENV !== 'production') {
2486
- const validateError = validate$4(input);
2521
+ const validateError = validate$5(input);
2487
2522
  if (validateError !== null) {
2488
2523
  throw validateError;
2489
2524
  }
2490
2525
  }
2491
2526
  const key = keyBuilderFromType$2(luvio, input);
2492
- const ttlToUse = TTL$4;
2493
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "AppFramework", VERSION$4, RepresentationType$4, equals$4);
2527
+ const ttlToUse = TTL$5;
2528
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "AppFramework", VERSION$5, RepresentationType$5, equals$5);
2494
2529
  return createLink(key);
2495
2530
  };
2496
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2531
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
2497
2532
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2498
2533
  const rootKey = keyBuilderFromType$2(luvio, input);
2499
2534
  rootKeySet.set(rootKey, {
2500
2535
  namespace: keyPrefix,
2501
- representationName: RepresentationType$4,
2536
+ representationName: RepresentationType$5,
2502
2537
  mergeable: false
2503
2538
  });
2504
2539
  const input_assets_length = input.assets.length;
2505
2540
  for (let i = 0; i < input_assets_length; i++) {
2506
- getTypeCacheKeys$5(rootKeySet, luvio, input.assets[i]);
2541
+ getTypeCacheKeys$6(rootKeySet, luvio, input.assets[i]);
2507
2542
  }
2508
2543
  }
2509
2544
 
2510
- function select$8(luvio, params) {
2511
- return select$9();
2545
+ function select$a(luvio, params) {
2546
+ return select$b();
2512
2547
  }
2513
- function keyBuilder$b(luvio, params) {
2514
- return keyBuilder$c(luvio, {
2548
+ function keyBuilder$d(luvio, params) {
2549
+ return keyBuilder$e(luvio, {
2515
2550
  appId: params.urlParams.appIdOrApiName
2516
2551
  });
2517
2552
  }
2518
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2519
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
2553
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
2554
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
2520
2555
  }
2521
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2556
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
2522
2557
  const { body } = response;
2523
- const key = keyBuilder$b(luvio, resourceParams);
2524
- luvio.storeIngest(key, ingest$4, body);
2558
+ const key = keyBuilder$d(luvio, resourceParams);
2559
+ luvio.storeIngest(key, ingest$5, body);
2525
2560
  const snapshot = luvio.storeLookup({
2526
2561
  recordId: key,
2527
- node: select$8(),
2562
+ node: select$a(),
2528
2563
  variables: {},
2529
2564
  }, snapshotRefresh);
2530
2565
  if (process.env.NODE_ENV !== 'production') {
@@ -2535,19 +2570,19 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2535
2570
  deepFreeze(snapshot.data);
2536
2571
  return snapshot;
2537
2572
  }
2538
- function ingestError$4(luvio, params, error, snapshotRefresh) {
2539
- const key = keyBuilder$b(luvio, params);
2573
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
2574
+ const key = keyBuilder$d(luvio, params);
2540
2575
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2541
2576
  const storeMetadataParams = {
2542
- ttl: TTL$4,
2577
+ ttl: TTL$5,
2543
2578
  namespace: keyPrefix,
2544
- version: VERSION$4,
2545
- representationName: RepresentationType$4
2579
+ version: VERSION$5,
2580
+ representationName: RepresentationType$5
2546
2581
  };
2547
2582
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2548
2583
  return errorSnapshot;
2549
2584
  }
2550
- function createResourceRequest$4(config) {
2585
+ function createResourceRequest$5(config) {
2551
2586
  const headers = {};
2552
2587
  return {
2553
2588
  baseUri: '/services/data/v62.0',
@@ -2566,99 +2601,99 @@ function createResourceRequestFromRepresentation$2(representation) {
2566
2601
  queryParams: {},
2567
2602
  };
2568
2603
  config.urlParams.appIdOrApiName = representation.appId;
2569
- return createResourceRequest$4(config);
2604
+ return createResourceRequest$5(config);
2570
2605
  }
2571
2606
 
2572
- const adapterName$4 = 'getAppAssets';
2607
+ const adapterName$5 = 'getAppAssets';
2573
2608
  const getAppAssets_ConfigPropertyMetadata = [
2574
2609
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2575
2610
  generateParamConfigMetadata('assetType', false, 1 /* QueryParameter */, 0 /* String */),
2576
2611
  generateParamConfigMetadata('templateAssetName', false, 1 /* QueryParameter */, 0 /* String */),
2577
2612
  ];
2578
- const getAppAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAppAssets_ConfigPropertyMetadata);
2579
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$a(getAppAssets_ConfigPropertyMetadata);
2580
- function keyBuilder$a(luvio, config) {
2581
- const resourceParams = createResourceParams$4(config);
2582
- return keyBuilder$b(luvio, resourceParams);
2613
+ const getAppAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getAppAssets_ConfigPropertyMetadata);
2614
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$b(getAppAssets_ConfigPropertyMetadata);
2615
+ function keyBuilder$c(luvio, config) {
2616
+ const resourceParams = createResourceParams$5(config);
2617
+ return keyBuilder$d(luvio, resourceParams);
2583
2618
  }
2584
- function typeCheckConfig$4(untrustedConfig) {
2619
+ function typeCheckConfig$5(untrustedConfig) {
2585
2620
  const config = {};
2586
- typeCheckConfig$a(untrustedConfig, config, getAppAssets_ConfigPropertyMetadata);
2621
+ typeCheckConfig$b(untrustedConfig, config, getAppAssets_ConfigPropertyMetadata);
2587
2622
  return config;
2588
2623
  }
2589
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2624
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
2590
2625
  if (!untrustedIsObject(untrustedConfig)) {
2591
2626
  return null;
2592
2627
  }
2593
2628
  if (process.env.NODE_ENV !== 'production') {
2594
2629
  validateConfig(untrustedConfig, configPropertyNames);
2595
2630
  }
2596
- const config = typeCheckConfig$4(untrustedConfig);
2631
+ const config = typeCheckConfig$5(untrustedConfig);
2597
2632
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2598
2633
  return null;
2599
2634
  }
2600
2635
  return config;
2601
2636
  }
2602
- function adapterFragment$4(luvio, config) {
2603
- createResourceParams$4(config);
2604
- return select$8();
2637
+ function adapterFragment$5(luvio, config) {
2638
+ createResourceParams$5(config);
2639
+ return select$a();
2605
2640
  }
2606
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
2607
- const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2641
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
2642
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
2608
2643
  config,
2609
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2644
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2610
2645
  });
2611
2646
  return luvio.storeBroadcast().then(() => snapshot);
2612
2647
  }
2613
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
2614
- const snapshot = ingestError$4(luvio, resourceParams, response, {
2648
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
2649
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
2615
2650
  config,
2616
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2651
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2617
2652
  });
2618
2653
  return luvio.storeBroadcast().then(() => snapshot);
2619
2654
  }
2620
- function buildNetworkSnapshot$4(luvio, config, options) {
2621
- const resourceParams = createResourceParams$4(config);
2622
- const request = createResourceRequest$4(resourceParams);
2655
+ function buildNetworkSnapshot$5(luvio, config, options) {
2656
+ const resourceParams = createResourceParams$5(config);
2657
+ const request = createResourceRequest$5(resourceParams);
2623
2658
  return luvio.dispatchResourceRequest(request, options)
2624
2659
  .then((response) => {
2625
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
2660
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
2626
2661
  const cache = new StoreKeyMap();
2627
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2662
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
2628
2663
  return cache;
2629
2664
  });
2630
2665
  }, (response) => {
2631
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
2666
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
2632
2667
  });
2633
2668
  }
2634
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
2635
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2669
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
2670
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
2636
2671
  }
2637
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2672
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
2638
2673
  const { luvio, config } = context;
2639
2674
  const selector = {
2640
- recordId: keyBuilder$a(luvio, config),
2641
- node: adapterFragment$4(luvio, config),
2675
+ recordId: keyBuilder$c(luvio, config),
2676
+ node: adapterFragment$5(luvio, config),
2642
2677
  variables: {},
2643
2678
  };
2644
2679
  const cacheSnapshot = storeLookup(selector, {
2645
2680
  config,
2646
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2681
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2647
2682
  });
2648
2683
  return cacheSnapshot;
2649
2684
  }
2650
2685
  const getAppAssetsAdapterFactory = (luvio) => function AppFramework__getAppAssets(untrustedConfig, requestContext) {
2651
- const config = validateAdapterConfig$4(untrustedConfig, getAppAssets_ConfigPropertyNames);
2686
+ const config = validateAdapterConfig$5(untrustedConfig, getAppAssets_ConfigPropertyNames);
2652
2687
  // Invalid or incomplete config
2653
2688
  if (config === null) {
2654
2689
  return null;
2655
2690
  }
2656
2691
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2657
- buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
2692
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
2658
2693
  };
2659
2694
  const notifyChangeFactory$2 = (luvio, options) => {
2660
2695
  return function getAppFrameworkAppsAssetsByAppIdOrApiNameNotifyChange(configs) {
2661
- const keys = configs.map(c => keyBuilder$c(luvio, c));
2696
+ const keys = configs.map(c => keyBuilder$e(luvio, c));
2662
2697
  luvio.getNotifyChangeStoreEntries(keys).then(entries => {
2663
2698
  for (let i = 0, len = entries.length; i < len; i++) {
2664
2699
  const { key, record: val } = entries[i];
@@ -2667,21 +2702,21 @@ const notifyChangeFactory$2 = (luvio, options) => {
2667
2702
  .then((response) => {
2668
2703
  return luvio.handleSuccessResponse(() => {
2669
2704
  const { body } = response;
2670
- luvio.storeIngest(key, ingest$4, body);
2705
+ luvio.storeIngest(key, ingest$5, body);
2671
2706
  return luvio.storeBroadcast();
2672
2707
  }, () => {
2673
2708
  const cache = new StoreKeyMap();
2674
- getTypeCacheKeys$4(cache, luvio, response.body);
2709
+ getTypeCacheKeys$5(cache, luvio, response.body);
2675
2710
  return cache;
2676
2711
  });
2677
2712
  }, (error) => {
2678
2713
  return luvio.handleErrorResponse(() => {
2679
2714
  const errorSnapshot = luvio.errorSnapshot(error);
2680
2715
  luvio.storeIngestError(key, errorSnapshot, {
2681
- ttl: TTL$4,
2716
+ ttl: TTL$5,
2682
2717
  namespace: keyPrefix,
2683
- version: VERSION$4,
2684
- representationName: RepresentationType$4
2718
+ version: VERSION$5,
2719
+ representationName: RepresentationType$5
2685
2720
  });
2686
2721
  return luvio.storeBroadcast().then(() => errorSnapshot);
2687
2722
  });
@@ -2691,9 +2726,9 @@ const notifyChangeFactory$2 = (luvio, options) => {
2691
2726
  };
2692
2727
  };
2693
2728
 
2694
- const TTL$3 = 5000;
2695
- const VERSION$3 = "2dd7266897d8b84ea0207582ca533d29";
2696
- function validate$3(obj, path = 'AppCollectionRepresentation') {
2729
+ const TTL$4 = 5000;
2730
+ const VERSION$4 = "2dd7266897d8b84ea0207582ca533d29";
2731
+ function validate$4(obj, path = 'AppCollectionRepresentation') {
2697
2732
  const v_error = (() => {
2698
2733
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2699
2734
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2713,14 +2748,14 @@ function validate$3(obj, path = 'AppCollectionRepresentation') {
2713
2748
  })();
2714
2749
  return v_error === undefined ? null : v_error;
2715
2750
  }
2716
- const RepresentationType$3 = 'AppCollectionRepresentation';
2717
- function normalize$3(input, existing, path, luvio, store, timestamp) {
2751
+ const RepresentationType$4 = 'AppCollectionRepresentation';
2752
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
2718
2753
  const input_apps = input.apps;
2719
2754
  const input_apps_id = path.fullPath + '__apps';
2720
2755
  for (let i = 0; i < input_apps.length; i++) {
2721
2756
  const input_apps_item = input_apps[i];
2722
2757
  let input_apps_item_id = input_apps_id + '__' + i;
2723
- input_apps[i] = ingest$9(input_apps_item, {
2758
+ input_apps[i] = ingest$a(input_apps_item, {
2724
2759
  fullPath: input_apps_item_id,
2725
2760
  propertyName: i,
2726
2761
  parent: {
@@ -2733,22 +2768,22 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
2733
2768
  }
2734
2769
  return input;
2735
2770
  }
2736
- const select$7 = function AppCollectionRepresentationSelect() {
2771
+ const select$9 = function AppCollectionRepresentationSelect() {
2737
2772
  return {
2738
2773
  kind: 'Fragment',
2739
- version: VERSION$3,
2774
+ version: VERSION$4,
2740
2775
  private: [],
2741
2776
  selections: [
2742
2777
  {
2743
2778
  name: 'apps',
2744
2779
  kind: 'Link',
2745
2780
  plural: true,
2746
- fragment: select$i()
2781
+ fragment: select$k()
2747
2782
  }
2748
2783
  ]
2749
2784
  };
2750
2785
  };
2751
- function equals$3(existing, incoming) {
2786
+ function equals$4(existing, incoming) {
2752
2787
  const existing_apps = existing.apps;
2753
2788
  const incoming_apps = incoming.apps;
2754
2789
  const equals_apps_items = equalsArray(existing_apps, incoming_apps, (existing_apps_item, incoming_apps_item) => {
@@ -2761,7 +2796,242 @@ function equals$3(existing, incoming) {
2761
2796
  }
2762
2797
  return true;
2763
2798
  }
2764
- const ingest$3 = function AppCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2799
+ const ingest$4 = function AppCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2800
+ if (process.env.NODE_ENV !== 'production') {
2801
+ const validateError = validate$4(input);
2802
+ if (validateError !== null) {
2803
+ throw validateError;
2804
+ }
2805
+ }
2806
+ const key = path.fullPath;
2807
+ const ttlToUse = TTL$4;
2808
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "AppFramework", VERSION$4, RepresentationType$4, equals$4);
2809
+ return createLink(key);
2810
+ };
2811
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2812
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2813
+ const rootKey = fullPathFactory();
2814
+ rootKeySet.set(rootKey, {
2815
+ namespace: keyPrefix,
2816
+ representationName: RepresentationType$4,
2817
+ mergeable: false
2818
+ });
2819
+ const input_apps_length = input.apps.length;
2820
+ for (let i = 0; i < input_apps_length; i++) {
2821
+ getTypeCacheKeys$a(rootKeySet, luvio, input.apps[i]);
2822
+ }
2823
+ }
2824
+
2825
+ function select$8(luvio, params) {
2826
+ return select$9();
2827
+ }
2828
+ function keyBuilder$b(luvio, params) {
2829
+ return keyPrefix + '::AppCollectionRepresentation:(' + 'templateSourceId:' + params.queryParams.templateSourceId + ',' + 'type:' + params.queryParams.type + ')';
2830
+ }
2831
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2832
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
2833
+ }
2834
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2835
+ const { body } = response;
2836
+ const key = keyBuilder$b(luvio, resourceParams);
2837
+ luvio.storeIngest(key, ingest$4, body);
2838
+ const snapshot = luvio.storeLookup({
2839
+ recordId: key,
2840
+ node: select$8(),
2841
+ variables: {},
2842
+ }, snapshotRefresh);
2843
+ if (process.env.NODE_ENV !== 'production') {
2844
+ if (snapshot.state !== 'Fulfilled') {
2845
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2846
+ }
2847
+ }
2848
+ deepFreeze(snapshot.data);
2849
+ return snapshot;
2850
+ }
2851
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
2852
+ const key = keyBuilder$b(luvio, params);
2853
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2854
+ const storeMetadataParams = {
2855
+ ttl: TTL$4,
2856
+ namespace: keyPrefix,
2857
+ version: VERSION$4,
2858
+ representationName: RepresentationType$4
2859
+ };
2860
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2861
+ return errorSnapshot;
2862
+ }
2863
+ function createResourceRequest$4(config) {
2864
+ const headers = {};
2865
+ return {
2866
+ baseUri: '/services/data/v62.0',
2867
+ basePath: '/app-framework/apps',
2868
+ method: 'get',
2869
+ body: null,
2870
+ urlParams: {},
2871
+ queryParams: config.queryParams,
2872
+ headers,
2873
+ priority: 'normal',
2874
+ };
2875
+ }
2876
+
2877
+ const adapterName$4 = 'getApps';
2878
+ const getApps_ConfigPropertyMetadata = [
2879
+ generateParamConfigMetadata('templateSourceId', false, 1 /* QueryParameter */, 0 /* String */),
2880
+ generateParamConfigMetadata('type', false, 1 /* QueryParameter */, 0 /* String */),
2881
+ ];
2882
+ const getApps_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getApps_ConfigPropertyMetadata);
2883
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$b(getApps_ConfigPropertyMetadata);
2884
+ function keyBuilder$a(luvio, config) {
2885
+ const resourceParams = createResourceParams$4(config);
2886
+ return keyBuilder$b(luvio, resourceParams);
2887
+ }
2888
+ function typeCheckConfig$4(untrustedConfig) {
2889
+ const config = {};
2890
+ typeCheckConfig$b(untrustedConfig, config, getApps_ConfigPropertyMetadata);
2891
+ return config;
2892
+ }
2893
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2894
+ if (!untrustedIsObject(untrustedConfig)) {
2895
+ return null;
2896
+ }
2897
+ if (process.env.NODE_ENV !== 'production') {
2898
+ validateConfig(untrustedConfig, configPropertyNames);
2899
+ }
2900
+ const config = typeCheckConfig$4(untrustedConfig);
2901
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2902
+ return null;
2903
+ }
2904
+ return config;
2905
+ }
2906
+ function adapterFragment$4(luvio, config) {
2907
+ createResourceParams$4(config);
2908
+ return select$8();
2909
+ }
2910
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
2911
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2912
+ config,
2913
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2914
+ });
2915
+ return luvio.storeBroadcast().then(() => snapshot);
2916
+ }
2917
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
2918
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
2919
+ config,
2920
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2921
+ });
2922
+ return luvio.storeBroadcast().then(() => snapshot);
2923
+ }
2924
+ function buildNetworkSnapshot$4(luvio, config, options) {
2925
+ const resourceParams = createResourceParams$4(config);
2926
+ const request = createResourceRequest$4(resourceParams);
2927
+ return luvio.dispatchResourceRequest(request, options)
2928
+ .then((response) => {
2929
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
2930
+ const cache = new StoreKeyMap();
2931
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2932
+ return cache;
2933
+ });
2934
+ }, (response) => {
2935
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
2936
+ });
2937
+ }
2938
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
2939
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2940
+ }
2941
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2942
+ const { luvio, config } = context;
2943
+ const selector = {
2944
+ recordId: keyBuilder$a(luvio, config),
2945
+ node: adapterFragment$4(luvio, config),
2946
+ variables: {},
2947
+ };
2948
+ const cacheSnapshot = storeLookup(selector, {
2949
+ config,
2950
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2951
+ });
2952
+ return cacheSnapshot;
2953
+ }
2954
+ const getAppsAdapterFactory = (luvio) => function AppFramework__getApps(untrustedConfig, requestContext) {
2955
+ const config = validateAdapterConfig$4(untrustedConfig, getApps_ConfigPropertyNames);
2956
+ // Invalid or incomplete config
2957
+ if (config === null) {
2958
+ return null;
2959
+ }
2960
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2961
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
2962
+ };
2963
+
2964
+ const TTL$3 = 5000;
2965
+ const VERSION$3 = "4b0d1bee319e31459f529b802621d6b8";
2966
+ function validate$3(obj, path = 'InstalledAssetCollectionRepresentation') {
2967
+ const v_error = (() => {
2968
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2969
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2970
+ }
2971
+ const obj_assets = obj.assets;
2972
+ const path_assets = path + '.assets';
2973
+ if (!ArrayIsArray(obj_assets)) {
2974
+ return new TypeError('Expected "array" but received "' + typeof obj_assets + '" (at "' + path_assets + '")');
2975
+ }
2976
+ for (let i = 0; i < obj_assets.length; i++) {
2977
+ const obj_assets_item = obj_assets[i];
2978
+ const path_assets_item = path_assets + '[' + i + ']';
2979
+ if (typeof obj_assets_item !== 'object') {
2980
+ return new TypeError('Expected "object" but received "' + typeof obj_assets_item + '" (at "' + path_assets_item + '")');
2981
+ }
2982
+ }
2983
+ })();
2984
+ return v_error === undefined ? null : v_error;
2985
+ }
2986
+ const RepresentationType$3 = 'InstalledAssetCollectionRepresentation';
2987
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
2988
+ const input_assets = input.assets;
2989
+ const input_assets_id = path.fullPath + '__assets';
2990
+ for (let i = 0; i < input_assets.length; i++) {
2991
+ const input_assets_item = input_assets[i];
2992
+ let input_assets_item_id = input_assets_id + '__' + i;
2993
+ input_assets[i] = ingest$6(input_assets_item, {
2994
+ fullPath: input_assets_item_id,
2995
+ propertyName: i,
2996
+ parent: {
2997
+ data: input,
2998
+ key: path.fullPath,
2999
+ existing: existing,
3000
+ },
3001
+ ttl: path.ttl
3002
+ }, luvio, store, timestamp);
3003
+ }
3004
+ return input;
3005
+ }
3006
+ const select$7 = function InstalledAssetCollectionRepresentationSelect() {
3007
+ return {
3008
+ kind: 'Fragment',
3009
+ version: VERSION$3,
3010
+ private: [],
3011
+ selections: [
3012
+ {
3013
+ name: 'assets',
3014
+ kind: 'Link',
3015
+ plural: true,
3016
+ fragment: select$c()
3017
+ }
3018
+ ]
3019
+ };
3020
+ };
3021
+ function equals$3(existing, incoming) {
3022
+ const existing_assets = existing.assets;
3023
+ const incoming_assets = incoming.assets;
3024
+ const equals_assets_items = equalsArray(existing_assets, incoming_assets, (existing_assets_item, incoming_assets_item) => {
3025
+ if (!(existing_assets_item.__ref === incoming_assets_item.__ref)) {
3026
+ return false;
3027
+ }
3028
+ });
3029
+ if (equals_assets_items === false) {
3030
+ return false;
3031
+ }
3032
+ return true;
3033
+ }
3034
+ const ingest$3 = function InstalledAssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2765
3035
  if (process.env.NODE_ENV !== 'production') {
2766
3036
  const validateError = validate$3(input);
2767
3037
  if (validateError !== null) {
@@ -2781,9 +3051,9 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2781
3051
  representationName: RepresentationType$3,
2782
3052
  mergeable: false
2783
3053
  });
2784
- const input_apps_length = input.apps.length;
2785
- for (let i = 0; i < input_apps_length; i++) {
2786
- getTypeCacheKeys$9(rootKeySet, luvio, input.apps[i]);
3054
+ const input_assets_length = input.assets.length;
3055
+ for (let i = 0; i < input_assets_length; i++) {
3056
+ getTypeCacheKeys$6(rootKeySet, luvio, input.assets[i]);
2787
3057
  }
2788
3058
  }
2789
3059
 
@@ -2791,7 +3061,7 @@ function select$6(luvio, params) {
2791
3061
  return select$7();
2792
3062
  }
2793
3063
  function keyBuilder$9(luvio, params) {
2794
- return keyPrefix + '::AppCollectionRepresentation:(' + 'templateSourceId:' + params.queryParams.templateSourceId + ',' + 'type:' + params.queryParams.type + ')';
3064
+ return keyPrefix + '::InstalledAssetCollectionRepresentation:(' + 'assetIdOrName:' + params.queryParams.assetIdOrName + ',' + 'assetType:' + params.queryParams.assetType + ')';
2795
3065
  }
2796
3066
  function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2797
3067
  getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
@@ -2829,7 +3099,7 @@ function createResourceRequest$3(config) {
2829
3099
  const headers = {};
2830
3100
  return {
2831
3101
  baseUri: '/services/data/v62.0',
2832
- basePath: '/app-framework/apps',
3102
+ basePath: '/app-framework/installed-assets',
2833
3103
  method: 'get',
2834
3104
  body: null,
2835
3105
  urlParams: {},
@@ -2839,20 +3109,20 @@ function createResourceRequest$3(config) {
2839
3109
  };
2840
3110
  }
2841
3111
 
2842
- const adapterName$3 = 'getApps';
2843
- const getApps_ConfigPropertyMetadata = [
2844
- generateParamConfigMetadata('templateSourceId', false, 1 /* QueryParameter */, 0 /* String */),
2845
- generateParamConfigMetadata('type', false, 1 /* QueryParameter */, 0 /* String */),
3112
+ const adapterName$3 = 'getInstalledAssets';
3113
+ const getInstalledAssets_ConfigPropertyMetadata = [
3114
+ generateParamConfigMetadata('assetIdOrName', false, 1 /* QueryParameter */, 0 /* String */),
3115
+ generateParamConfigMetadata('assetType', false, 1 /* QueryParameter */, 0 /* String */),
2846
3116
  ];
2847
- const getApps_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getApps_ConfigPropertyMetadata);
2848
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$a(getApps_ConfigPropertyMetadata);
3117
+ const getInstalledAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getInstalledAssets_ConfigPropertyMetadata);
3118
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$b(getInstalledAssets_ConfigPropertyMetadata);
2849
3119
  function keyBuilder$8(luvio, config) {
2850
3120
  const resourceParams = createResourceParams$3(config);
2851
3121
  return keyBuilder$9(luvio, resourceParams);
2852
3122
  }
2853
3123
  function typeCheckConfig$3(untrustedConfig) {
2854
3124
  const config = {};
2855
- typeCheckConfig$a(untrustedConfig, config, getApps_ConfigPropertyMetadata);
3125
+ typeCheckConfig$b(untrustedConfig, config, getInstalledAssets_ConfigPropertyMetadata);
2856
3126
  return config;
2857
3127
  }
2858
3128
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -2901,7 +3171,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
2901
3171
  });
2902
3172
  }
2903
3173
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2904
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
3174
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
2905
3175
  }
2906
3176
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2907
3177
  const { luvio, config } = context;
@@ -2916,8 +3186,8 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2916
3186
  });
2917
3187
  return cacheSnapshot;
2918
3188
  }
2919
- const getAppsAdapterFactory = (luvio) => function AppFramework__getApps(untrustedConfig, requestContext) {
2920
- const config = validateAdapterConfig$3(untrustedConfig, getApps_ConfigPropertyNames);
3189
+ const getInstalledAssetsAdapterFactory = (luvio) => function AppFramework__getInstalledAssets(untrustedConfig, requestContext) {
3190
+ const config = validateAdapterConfig$3(untrustedConfig, getInstalledAssets_ConfigPropertyNames);
2921
3191
  // Invalid or incomplete config
2922
3192
  if (config === null) {
2923
3193
  return null;
@@ -3168,14 +3438,14 @@ const getTemplate_ConfigPropertyMetadata = [
3168
3438
  generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
3169
3439
  ];
3170
3440
  const getTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getTemplate_ConfigPropertyMetadata);
3171
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$a(getTemplate_ConfigPropertyMetadata);
3441
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$b(getTemplate_ConfigPropertyMetadata);
3172
3442
  function keyBuilder$5(luvio, config) {
3173
3443
  const resourceParams = createResourceParams$2(config);
3174
3444
  return keyBuilder$6(luvio, resourceParams);
3175
3445
  }
3176
3446
  function typeCheckConfig$2(untrustedConfig) {
3177
3447
  const config = {};
3178
- typeCheckConfig$a(untrustedConfig, config, getTemplate_ConfigPropertyMetadata);
3448
+ typeCheckConfig$b(untrustedConfig, config, getTemplate_ConfigPropertyMetadata);
3179
3449
  return config;
3180
3450
  }
3181
3451
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -3224,7 +3494,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
3224
3494
  });
3225
3495
  }
3226
3496
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
3227
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3497
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3228
3498
  }
3229
3499
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
3230
3500
  const { luvio, config } = context;
@@ -3434,14 +3704,14 @@ const getTemplateConfig_ConfigPropertyMetadata = [
3434
3704
  generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
3435
3705
  ];
3436
3706
  const getTemplateConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getTemplateConfig_ConfigPropertyMetadata);
3437
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$a(getTemplateConfig_ConfigPropertyMetadata);
3707
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$b(getTemplateConfig_ConfigPropertyMetadata);
3438
3708
  function keyBuilder$2(luvio, config) {
3439
3709
  const resourceParams = createResourceParams$1(config);
3440
3710
  return keyBuilder$3(luvio, resourceParams);
3441
3711
  }
3442
3712
  function typeCheckConfig$1(untrustedConfig) {
3443
3713
  const config = {};
3444
- typeCheckConfig$a(untrustedConfig, config, getTemplateConfig_ConfigPropertyMetadata);
3714
+ typeCheckConfig$b(untrustedConfig, config, getTemplateConfig_ConfigPropertyMetadata);
3445
3715
  return config;
3446
3716
  }
3447
3717
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -3490,7 +3760,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
3490
3760
  });
3491
3761
  }
3492
3762
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
3493
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
3763
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
3494
3764
  }
3495
3765
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
3496
3766
  const { luvio, config } = context;
@@ -3700,7 +3970,7 @@ function createResourceRequest(config) {
3700
3970
  const adapterName = 'getTemplates';
3701
3971
  const getTemplates_ConfigPropertyMetadata = [];
3702
3972
  const getTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTemplates_ConfigPropertyMetadata);
3703
- const createResourceParams = /*#__PURE__*/ createResourceParams$a(getTemplates_ConfigPropertyMetadata);
3973
+ const createResourceParams = /*#__PURE__*/ createResourceParams$b(getTemplates_ConfigPropertyMetadata);
3704
3974
  function keyBuilder(luvio, config) {
3705
3975
  createResourceParams(config);
3706
3976
  return keyBuilder$1();
@@ -3755,7 +4025,7 @@ function buildNetworkSnapshot(luvio, config, options) {
3755
4025
  });
3756
4026
  }
3757
4027
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
3758
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
4028
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
3759
4029
  }
3760
4030
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
3761
4031
  const { luvio, config } = context;
@@ -3791,6 +4061,7 @@ let getAppAssets;
3791
4061
  let getAppAssetsNotifyChange;
3792
4062
  let getAppNotifyChange;
3793
4063
  let getApps;
4064
+ let getInstalledAssets;
3794
4065
  let getTemplate;
3795
4066
  let getTemplateConfig;
3796
4067
  let getTemplateConfigNotifyChange;
@@ -3802,6 +4073,7 @@ let getAppActivities_imperative;
3802
4073
  let getAppActivity_imperative;
3803
4074
  let getAppAssets_imperative;
3804
4075
  let getApps_imperative;
4076
+ let getInstalledAssets_imperative;
3805
4077
  let getTemplate_imperative;
3806
4078
  let getTemplateConfig_imperative;
3807
4079
  let getTemplates_imperative;
@@ -3810,6 +4082,11 @@ const getAppActivitiesMetadata = { apiFamily: 'AppFramework', name: 'getAppActiv
3810
4082
  const getAppActivityMetadata = { apiFamily: 'AppFramework', name: 'getAppActivity', ttl: 5000 };
3811
4083
  const getAppAssetsMetadata = { apiFamily: 'AppFramework', name: 'getAppAssets', ttl: 5000 };
3812
4084
  const getAppsMetadata = { apiFamily: 'AppFramework', name: 'getApps', ttl: 5000 };
4085
+ const getInstalledAssetsMetadata = {
4086
+ apiFamily: 'AppFramework',
4087
+ name: 'getInstalledAssets',
4088
+ ttl: 5000,
4089
+ };
3813
4090
  const getTemplateMetadata = { apiFamily: 'AppFramework', name: 'getTemplate', ttl: 5000 };
3814
4091
  const getTemplateConfigMetadata = {
3815
4092
  apiFamily: 'AppFramework',
@@ -3825,6 +4102,7 @@ function bindExportsTo(luvio) {
3825
4102
  const getAppActivity_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAppActivity', getAppActivityAdapterFactory), getAppActivityMetadata);
3826
4103
  const getAppAssets_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAppAssets', getAppAssetsAdapterFactory), getAppAssetsMetadata);
3827
4104
  const getApps_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getApps', getAppsAdapterFactory), getAppsMetadata);
4105
+ const getInstalledAssets_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getInstalledAssets', getInstalledAssetsAdapterFactory), getInstalledAssetsMetadata);
3828
4106
  const getTemplate_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getTemplate', getTemplateAdapterFactory), getTemplateMetadata);
3829
4107
  const getTemplateConfig_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getTemplateConfig', getTemplateConfigAdapterFactory), getTemplateConfigMetadata);
3830
4108
  const getTemplates_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getTemplates', getTemplatesAdapterFactory), getTemplatesMetadata);
@@ -3834,7 +4112,7 @@ function bindExportsTo(luvio) {
3834
4112
  }
3835
4113
  return {
3836
4114
  createApp: unwrapSnapshotData(createAppAdapterFactory),
3837
- deleteApp: createLDSAdapter(luvio, adapterName$8, deleteAppAdapterFactory),
4115
+ deleteApp: createLDSAdapter(luvio, adapterName$9, deleteAppAdapterFactory),
3838
4116
  getApp: createWireAdapterConstructor(luvio, getApp_ldsAdapter, getAppMetadata),
3839
4117
  getAppActivities: createWireAdapterConstructor(luvio, getAppActivities_ldsAdapter, getAppActivitiesMetadata),
3840
4118
  getAppActivitiesNotifyChange: createLDSAdapter(luvio, 'getAppActivitiesNotifyChange', notifyChangeFactory$4),
@@ -3844,6 +4122,7 @@ function bindExportsTo(luvio) {
3844
4122
  getAppAssetsNotifyChange: createLDSAdapter(luvio, 'getAppAssetsNotifyChange', notifyChangeFactory$2),
3845
4123
  getAppNotifyChange: createLDSAdapter(luvio, 'getAppNotifyChange', notifyChangeFactory$5),
3846
4124
  getApps: createWireAdapterConstructor(luvio, getApps_ldsAdapter, getAppsMetadata),
4125
+ getInstalledAssets: createWireAdapterConstructor(luvio, getInstalledAssets_ldsAdapter, getInstalledAssetsMetadata),
3847
4126
  getTemplate: createWireAdapterConstructor(luvio, getTemplate_ldsAdapter, getTemplateMetadata),
3848
4127
  getTemplateConfig: createWireAdapterConstructor(luvio, getTemplateConfig_ldsAdapter, getTemplateConfigMetadata),
3849
4128
  getTemplateConfigNotifyChange: createLDSAdapter(luvio, 'getTemplateConfigNotifyChange', notifyChangeFactory),
@@ -3855,6 +4134,7 @@ function bindExportsTo(luvio) {
3855
4134
  getAppActivity_imperative: createImperativeAdapter(luvio, getAppActivity_ldsAdapter, getAppActivityMetadata),
3856
4135
  getAppAssets_imperative: createImperativeAdapter(luvio, getAppAssets_ldsAdapter, getAppAssetsMetadata),
3857
4136
  getApps_imperative: createImperativeAdapter(luvio, getApps_ldsAdapter, getAppsMetadata),
4137
+ getInstalledAssets_imperative: createImperativeAdapter(luvio, getInstalledAssets_ldsAdapter, getInstalledAssetsMetadata),
3858
4138
  getTemplate_imperative: createImperativeAdapter(luvio, getTemplate_ldsAdapter, getTemplateMetadata),
3859
4139
  getTemplateConfig_imperative: createImperativeAdapter(luvio, getTemplateConfig_ldsAdapter, getTemplateConfigMetadata),
3860
4140
  getTemplates_imperative: createImperativeAdapter(luvio, getTemplates_ldsAdapter, getTemplatesMetadata),
@@ -3874,6 +4154,7 @@ withDefaultLuvio((luvio) => {
3874
4154
  getAppAssetsNotifyChange,
3875
4155
  getAppNotifyChange,
3876
4156
  getApps,
4157
+ getInstalledAssets,
3877
4158
  getTemplate,
3878
4159
  getTemplateConfig,
3879
4160
  getTemplateConfigNotifyChange,
@@ -3884,11 +4165,12 @@ withDefaultLuvio((luvio) => {
3884
4165
  getAppActivity_imperative,
3885
4166
  getAppAssets_imperative,
3886
4167
  getApps_imperative,
4168
+ getInstalledAssets_imperative,
3887
4169
  getTemplate_imperative,
3888
4170
  getTemplateConfig_imperative,
3889
4171
  getTemplates_imperative,
3890
4172
  } = bindExportsTo(luvio));
3891
4173
  });
3892
4174
 
3893
- export { createApp, deleteApp, getApp, getAppActivities, getAppActivitiesNotifyChange, getAppActivities_imperative, getAppActivity, getAppActivityNotifyChange, getAppActivity_imperative, getAppAssets, getAppAssetsNotifyChange, getAppAssets_imperative, getAppNotifyChange, getApp_imperative, getApps, getApps_imperative, getTemplate, getTemplateConfig, getTemplateConfigNotifyChange, getTemplateConfig_imperative, getTemplateNotifyChange, getTemplate_imperative, getTemplates, getTemplates_imperative };
3894
- // version: 1.309.0-dev12-9b91cf52fb
4175
+ export { createApp, deleteApp, getApp, getAppActivities, getAppActivitiesNotifyChange, getAppActivities_imperative, getAppActivity, getAppActivityNotifyChange, getAppActivity_imperative, getAppAssets, getAppAssetsNotifyChange, getAppAssets_imperative, getAppNotifyChange, getApp_imperative, getApps, getApps_imperative, getInstalledAssets, getInstalledAssets_imperative, getTemplate, getTemplateConfig, getTemplateConfigNotifyChange, getTemplateConfig_imperative, getTemplateNotifyChange, getTemplate_imperative, getTemplates, getTemplates_imperative };
4176
+ // version: 1.309.0-dev14-d0a3778177