@salesforce/lds-adapters-analytics-app-framework 1.308.0 → 1.309.0-dev9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/es/es2018/analytics-app-framework.js +954 -315
  2. package/dist/es/es2018/types/src/generated/adapters/createApp.d.ts +3 -0
  3. package/dist/es/es2018/types/src/generated/adapters/getAppActivities.d.ts +28 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getAppActivity.d.ts +29 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getApps.d.ts +1 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -1
  8. package/dist/es/es2018/types/src/generated/resources/getAppFrameworkApps.d.ts +1 -0
  9. package/dist/es/es2018/types/src/generated/resources/getAppFrameworkAppsActivitiesByAppIdOrApiName.d.ts +16 -0
  10. package/dist/es/es2018/types/src/generated/resources/getAppFrameworkAppsActivitiesByAppIdOrApiNameAndId.d.ts +17 -0
  11. package/dist/es/es2018/types/src/generated/resources/postAppFrameworkApps.d.ts +3 -0
  12. package/dist/es/es2018/types/src/generated/types/AppActivityCollectionRepresentation.d.ts +51 -0
  13. package/dist/es/es2018/types/src/generated/types/AppActivityItemInputRepresentation.d.ts +37 -0
  14. package/dist/es/es2018/types/src/generated/types/AppActivityItemRepresentation.d.ts +57 -0
  15. package/dist/es/es2018/types/src/generated/types/AppInputRepresentation.d.ts +10 -1
  16. package/dist/es/es2018/types/src/generated/types/AppRepresentation.d.ts +10 -1
  17. package/dist/es/es2018/types/src/generated/types/AppResultRepresentation.d.ts +4 -1
  18. package/dist/es/es2018/types/src/generated/types/AssetCollectionRepresentation.d.ts +4 -4
  19. package/dist/es/es2018/types/src/generated/types/AssetRepresentation.d.ts +4 -1
  20. package/dist/es/es2018/types/src/generated/types/TemplateInputRepresentation.d.ts +4 -1
  21. package/dist/es/es2018/types/src/generated/types/TemplateRepresentation.d.ts +3 -3
  22. package/package.json +3 -3
  23. package/sfdc/index.js +1036 -292
  24. package/src/raml/api.raml +149 -1
  25. package/src/raml/luvio.raml +24 -2
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$6, typeCheckConfig as typeCheckConfig$8, StoreKeyMap, createResourceParams as createResourceParams$8 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8, typeCheckConfig as typeCheckConfig$a, StoreKeyMap, createResourceParams as createResourceParams$a } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -112,8 +112,8 @@ function createLink(ref) {
112
112
  };
113
113
  }
114
114
 
115
- const VERSION$f = "8747a45321deaf63f65cf74537b07eb6";
116
- function validate$c(obj, path = 'UserRepresentation') {
115
+ const VERSION$h = "8747a45321deaf63f65cf74537b07eb6";
116
+ function validate$e(obj, path = 'UserRepresentation') {
117
117
  const v_error = (() => {
118
118
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
119
119
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -157,10 +157,10 @@ function validate$c(obj, path = 'UserRepresentation') {
157
157
  })();
158
158
  return v_error === undefined ? null : v_error;
159
159
  }
160
- const select$m = function UserRepresentationSelect() {
160
+ const select$q = function UserRepresentationSelect() {
161
161
  return {
162
162
  kind: 'Fragment',
163
- version: VERSION$f,
163
+ version: VERSION$h,
164
164
  private: [],
165
165
  selections: [
166
166
  {
@@ -178,7 +178,7 @@ const select$m = function UserRepresentationSelect() {
178
178
  ]
179
179
  };
180
180
  };
181
- function equals$c(existing, incoming) {
181
+ function equals$e(existing, incoming) {
182
182
  const existing_id = existing.id;
183
183
  const incoming_id = incoming.id;
184
184
  if (!(existing_id === incoming_id)) {
@@ -197,8 +197,8 @@ function equals$c(existing, incoming) {
197
197
  return true;
198
198
  }
199
199
 
200
- const VERSION$e = "74662b770f974cec987197380f2580ea";
201
- function validate$b(obj, path = 'ScheduledTimezoneRepresentation') {
200
+ const VERSION$g = "74662b770f974cec987197380f2580ea";
201
+ function validate$d(obj, path = 'ScheduledTimezoneRepresentation') {
202
202
  const v_error = (() => {
203
203
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
204
204
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -217,10 +217,10 @@ function validate$b(obj, path = 'ScheduledTimezoneRepresentation') {
217
217
  })();
218
218
  return v_error === undefined ? null : v_error;
219
219
  }
220
- const select$l = function ScheduledTimezoneRepresentationSelect() {
220
+ const select$p = function ScheduledTimezoneRepresentationSelect() {
221
221
  return {
222
222
  kind: 'Fragment',
223
- version: VERSION$e,
223
+ version: VERSION$g,
224
224
  private: [],
225
225
  selections: [
226
226
  {
@@ -238,7 +238,7 @@ const select$l = function ScheduledTimezoneRepresentationSelect() {
238
238
  ]
239
239
  };
240
240
  };
241
- function equals$b(existing, incoming) {
241
+ function equals$d(existing, incoming) {
242
242
  const existing_name = existing.name;
243
243
  const incoming_name = incoming.name;
244
244
  if (!(existing_name === incoming_name)) {
@@ -257,8 +257,8 @@ function equals$b(existing, incoming) {
257
257
  return true;
258
258
  }
259
259
 
260
- const VERSION$d = "d96bf6818be64d5924beaaad8e684221";
261
- function validate$a(obj, path = 'ScheduledTimeRepresentation') {
260
+ const VERSION$f = "d96bf6818be64d5924beaaad8e684221";
261
+ function validate$c(obj, path = 'ScheduledTimeRepresentation') {
262
262
  const v_error = (() => {
263
263
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
264
264
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -275,7 +275,7 @@ function validate$a(obj, path = 'ScheduledTimeRepresentation') {
275
275
  }
276
276
  const obj_timezone = obj.timezone;
277
277
  const path_timezone = path + '.timezone';
278
- const referencepath_timezoneValidationError = validate$b(obj_timezone, path_timezone);
278
+ const referencepath_timezoneValidationError = validate$d(obj_timezone, path_timezone);
279
279
  if (referencepath_timezoneValidationError !== null) {
280
280
  let message = 'Object doesn\'t match ScheduledTimezoneRepresentation (at "' + path_timezone + '")\n';
281
281
  message += referencepath_timezoneValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -284,11 +284,11 @@ function validate$a(obj, path = 'ScheduledTimeRepresentation') {
284
284
  })();
285
285
  return v_error === undefined ? null : v_error;
286
286
  }
287
- const select$k = function ScheduledTimeRepresentationSelect() {
288
- const { selections: ScheduledTimezoneRepresentation__selections, opaque: ScheduledTimezoneRepresentation__opaque, } = select$l();
287
+ const select$o = function ScheduledTimeRepresentationSelect() {
288
+ const { selections: ScheduledTimezoneRepresentation__selections, opaque: ScheduledTimezoneRepresentation__opaque, } = select$p();
289
289
  return {
290
290
  kind: 'Fragment',
291
- version: VERSION$d,
291
+ version: VERSION$f,
292
292
  private: [],
293
293
  selections: [
294
294
  {
@@ -307,7 +307,7 @@ const select$k = function ScheduledTimeRepresentationSelect() {
307
307
  ]
308
308
  };
309
309
  };
310
- function equals$a(existing, incoming) {
310
+ function equals$c(existing, incoming) {
311
311
  const existing_hour = existing.hour;
312
312
  const incoming_hour = incoming.hour;
313
313
  if (!(existing_hour === incoming_hour)) {
@@ -320,18 +320,18 @@ function equals$a(existing, incoming) {
320
320
  }
321
321
  const existing_timezone = existing.timezone;
322
322
  const incoming_timezone = incoming.timezone;
323
- if (!(equals$b(existing_timezone, incoming_timezone))) {
323
+ if (!(equals$d(existing_timezone, incoming_timezone))) {
324
324
  return false;
325
325
  }
326
326
  return true;
327
327
  }
328
328
 
329
- const VERSION$c = "91838b86aa135ce828af6242b11ae888";
330
- const select$j = function HourlyScheduledItemRepresentationSelect() {
331
- const { selections: ScheduledItemRepresentationSelections } = select$g();
329
+ const VERSION$e = "91838b86aa135ce828af6242b11ae888";
330
+ const select$n = function HourlyScheduledItemRepresentationSelect() {
331
+ const { selections: ScheduledItemRepresentationSelections } = select$k();
332
332
  return {
333
333
  kind: 'Fragment',
334
- version: VERSION$c,
334
+ version: VERSION$e,
335
335
  private: [],
336
336
  selections: [
337
337
  ...ScheduledItemRepresentationSelections,
@@ -348,12 +348,12 @@ const select$j = function HourlyScheduledItemRepresentationSelect() {
348
348
  };
349
349
  };
350
350
 
351
- const VERSION$b = "46260a34f0b2c2d7adc7f8c150a8d8fb";
352
- const select$i = function WeeklyScheduledItemRepresentationSelect() {
353
- const { selections: ScheduledItemRepresentationSelections } = select$g();
351
+ const VERSION$d = "46260a34f0b2c2d7adc7f8c150a8d8fb";
352
+ const select$m = function WeeklyScheduledItemRepresentationSelect() {
353
+ const { selections: ScheduledItemRepresentationSelections } = select$k();
354
354
  return {
355
355
  kind: 'Fragment',
356
- version: VERSION$b,
356
+ version: VERSION$d,
357
357
  private: [],
358
358
  selections: [
359
359
  ...ScheduledItemRepresentationSelections,
@@ -366,12 +366,12 @@ const select$i = function WeeklyScheduledItemRepresentationSelect() {
366
366
  };
367
367
  };
368
368
 
369
- const VERSION$a = "dcda6d015a01d9acde5fac241448cfe4";
370
- const select$h = function DailyScheduledItemRepresentationSelect() {
371
- const { selections: ScheduledItemRepresentationSelections } = select$g();
369
+ const VERSION$c = "dcda6d015a01d9acde5fac241448cfe4";
370
+ const select$l = function DailyScheduledItemRepresentationSelect() {
371
+ const { selections: ScheduledItemRepresentationSelections } = select$k();
372
372
  return {
373
373
  kind: 'Fragment',
374
- version: VERSION$a,
374
+ version: VERSION$c,
375
375
  private: [],
376
376
  selections: [
377
377
  ...ScheduledItemRepresentationSelections,
@@ -385,8 +385,8 @@ var DiscriminatorValues;
385
385
  DiscriminatorValues["Weekly"] = "Weekly";
386
386
  DiscriminatorValues["Daily"] = "Daily";
387
387
  })(DiscriminatorValues || (DiscriminatorValues = {}));
388
- const VERSION$9 = "193484b4261ca5840b61caaab3dea067";
389
- function validate$9(obj, path = 'ScheduledItemRepresentation') {
388
+ const VERSION$b = "193484b4261ca5840b61caaab3dea067";
389
+ function validate$b(obj, path = 'ScheduledItemRepresentation') {
390
390
  const v_error = (() => {
391
391
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
392
392
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -403,7 +403,7 @@ function validate$9(obj, path = 'ScheduledItemRepresentation') {
403
403
  }
404
404
  const obj_time = obj.time;
405
405
  const path_time = path + '.time';
406
- const referencepath_timeValidationError = validate$a(obj_time, path_time);
406
+ const referencepath_timeValidationError = validate$c(obj_time, path_time);
407
407
  if (referencepath_timeValidationError !== null) {
408
408
  let message = 'Object doesn\'t match ScheduledTimeRepresentation (at "' + path_time + '")\n';
409
409
  message += referencepath_timeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -413,9 +413,9 @@ function validate$9(obj, path = 'ScheduledItemRepresentation') {
413
413
  return v_error === undefined ? null : v_error;
414
414
  }
415
415
  const selectChildren = function ScheduledItemRepresentationSelectChildren() {
416
- const hourlyScheduledItemRepresentationSelections = select$j();
417
- const weeklyScheduledItemRepresentationSelections = select$i();
418
- const dailyScheduledItemRepresentationSelections = select$h();
416
+ const hourlyScheduledItemRepresentationSelections = select$n();
417
+ const weeklyScheduledItemRepresentationSelections = select$m();
418
+ const dailyScheduledItemRepresentationSelections = select$l();
419
419
  return {
420
420
  kind: 'Fragment',
421
421
  union: true,
@@ -427,11 +427,11 @@ const selectChildren = function ScheduledItemRepresentationSelectChildren() {
427
427
  }
428
428
  };
429
429
  };
430
- const select$g = function ScheduledItemRepresentationSelect() {
431
- const { selections: ScheduledTimeRepresentation__selections, opaque: ScheduledTimeRepresentation__opaque, } = select$k();
430
+ const select$k = function ScheduledItemRepresentationSelect() {
431
+ const { selections: ScheduledTimeRepresentation__selections, opaque: ScheduledTimeRepresentation__opaque, } = select$o();
432
432
  return {
433
433
  kind: 'Fragment',
434
- version: VERSION$9,
434
+ version: VERSION$b,
435
435
  private: [],
436
436
  selections: [
437
437
  {
@@ -450,7 +450,7 @@ const select$g = function ScheduledItemRepresentationSelect() {
450
450
  ]
451
451
  };
452
452
  };
453
- function equals$9(existing, incoming) {
453
+ function equals$b(existing, incoming) {
454
454
  const existing_frequency = existing.frequency;
455
455
  const incoming_frequency = incoming.frequency;
456
456
  if (!(existing_frequency === incoming_frequency)) {
@@ -463,14 +463,14 @@ function equals$9(existing, incoming) {
463
463
  }
464
464
  const existing_time = existing.time;
465
465
  const incoming_time = incoming.time;
466
- if (!(equals$a(existing_time, incoming_time))) {
466
+ if (!(equals$c(existing_time, incoming_time))) {
467
467
  return false;
468
468
  }
469
469
  return true;
470
470
  }
471
471
 
472
- const VERSION$8 = "06b5da5162febff2692d819c9b718be5";
473
- function validate$8(obj, path = 'AppScheduleRepresentation') {
472
+ const VERSION$a = "06b5da5162febff2692d819c9b718be5";
473
+ function validate$a(obj, path = 'AppScheduleRepresentation') {
474
474
  const v_error = (() => {
475
475
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
476
476
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -479,7 +479,7 @@ function validate$8(obj, path = 'AppScheduleRepresentation') {
479
479
  const path_dataRefreshSchedule = path + '.dataRefreshSchedule';
480
480
  let obj_dataRefreshSchedule_union0 = null;
481
481
  const obj_dataRefreshSchedule_union0_error = (() => {
482
- const referencepath_dataRefreshScheduleValidationError = validate$9(obj_dataRefreshSchedule, path_dataRefreshSchedule);
482
+ const referencepath_dataRefreshScheduleValidationError = validate$b(obj_dataRefreshSchedule, path_dataRefreshSchedule);
483
483
  if (referencepath_dataRefreshScheduleValidationError !== null) {
484
484
  let message = 'Object doesn\'t match ScheduledItemRepresentation (at "' + path_dataRefreshSchedule + '")\n';
485
485
  message += referencepath_dataRefreshScheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -533,11 +533,11 @@ function validate$8(obj, path = 'AppScheduleRepresentation') {
533
533
  })();
534
534
  return v_error === undefined ? null : v_error;
535
535
  }
536
- const select$f = function AppScheduleRepresentationSelect() {
536
+ const select$j = function AppScheduleRepresentationSelect() {
537
537
  const ScheduledItemRepresentation__unionSelections = selectChildren();
538
538
  return {
539
539
  kind: 'Fragment',
540
- version: VERSION$8,
540
+ version: VERSION$a,
541
541
  private: [],
542
542
  selections: [
543
543
  {
@@ -555,13 +555,13 @@ const select$f = function AppScheduleRepresentationSelect() {
555
555
  ]
556
556
  };
557
557
  };
558
- function equals$8(existing, incoming) {
558
+ function equals$a(existing, incoming) {
559
559
  const existing_dataRefreshSchedule = existing.dataRefreshSchedule;
560
560
  const incoming_dataRefreshSchedule = incoming.dataRefreshSchedule;
561
561
  if (!(existing_dataRefreshSchedule === incoming_dataRefreshSchedule
562
562
  || (existing_dataRefreshSchedule != null &&
563
563
  incoming_dataRefreshSchedule != null &&
564
- equals$9(existing_dataRefreshSchedule, incoming_dataRefreshSchedule)))) {
564
+ equals$b(existing_dataRefreshSchedule, incoming_dataRefreshSchedule)))) {
565
565
  return false;
566
566
  }
567
567
  const existing_url = existing.url;
@@ -572,13 +572,18 @@ function equals$8(existing, incoming) {
572
572
  return true;
573
573
  }
574
574
 
575
- const TTL$7 = 5000;
576
- const VERSION$7 = "27f4629fb5003a11b4c23a2bfb40ee60";
577
- function validate$7(obj, path = 'AppRepresentation') {
575
+ const TTL$9 = 5000;
576
+ const VERSION$9 = "be6294bb853a9581fb3b06a2d8caa5d5";
577
+ function validate$9(obj, path = 'AppRepresentation') {
578
578
  const v_error = (() => {
579
579
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
580
580
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
581
581
  }
582
+ const obj_activitiesUrl = obj.activitiesUrl;
583
+ const path_activitiesUrl = path + '.activitiesUrl';
584
+ if (typeof obj_activitiesUrl !== 'string') {
585
+ return new TypeError('Expected "string" but received "' + typeof obj_activitiesUrl + '" (at "' + path_activitiesUrl + '")');
586
+ }
582
587
  const obj_applicationStatus = obj.applicationStatus;
583
588
  const path_applicationStatus = path + '.applicationStatus';
584
589
  if (typeof obj_applicationStatus !== 'string') {
@@ -591,7 +596,7 @@ function validate$7(obj, path = 'AppRepresentation') {
591
596
  }
592
597
  const obj_createdBy = obj.createdBy;
593
598
  const path_createdBy = path + '.createdBy';
594
- const referencepath_createdByValidationError = validate$c(obj_createdBy, path_createdBy);
599
+ const referencepath_createdByValidationError = validate$e(obj_createdBy, path_createdBy);
595
600
  if (referencepath_createdByValidationError !== null) {
596
601
  let message = 'Object doesn\'t match UserRepresentation (at "' + path_createdBy + '")\n';
597
602
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -645,7 +650,7 @@ function validate$7(obj, path = 'AppRepresentation') {
645
650
  }
646
651
  const obj_lastModifiedBy = obj.lastModifiedBy;
647
652
  const path_lastModifiedBy = path + '.lastModifiedBy';
648
- const referencepath_lastModifiedByValidationError = validate$c(obj_lastModifiedBy, path_lastModifiedBy);
653
+ const referencepath_lastModifiedByValidationError = validate$e(obj_lastModifiedBy, path_lastModifiedBy);
649
654
  if (referencepath_lastModifiedByValidationError !== null) {
650
655
  let message = 'Object doesn\'t match UserRepresentation (at "' + path_lastModifiedBy + '")\n';
651
656
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -656,6 +661,11 @@ function validate$7(obj, path = 'AppRepresentation') {
656
661
  if (typeof obj_lastModifiedDate !== 'string') {
657
662
  return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
658
663
  }
664
+ const obj_latestActivityUrl = obj.latestActivityUrl;
665
+ const path_latestActivityUrl = path + '.latestActivityUrl';
666
+ if (typeof obj_latestActivityUrl !== 'string') {
667
+ return new TypeError('Expected "string" but received "' + typeof obj_latestActivityUrl + '" (at "' + path_latestActivityUrl + '")');
668
+ }
659
669
  const obj_name = obj.name;
660
670
  const path_name = path + '.name';
661
671
  if (typeof obj_name !== 'string') {
@@ -665,7 +675,7 @@ function validate$7(obj, path = 'AppRepresentation') {
665
675
  const path_schedule = path + '.schedule';
666
676
  let obj_schedule_union0 = null;
667
677
  const obj_schedule_union0_error = (() => {
668
- const referencepath_scheduleValidationError = validate$8(obj_schedule, path_schedule);
678
+ const referencepath_scheduleValidationError = validate$a(obj_schedule, path_schedule);
669
679
  if (referencepath_scheduleValidationError !== null) {
670
680
  let message = 'Object doesn\'t match AppScheduleRepresentation (at "' + path_schedule + '")\n';
671
681
  message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -695,6 +705,11 @@ function validate$7(obj, path = 'AppRepresentation') {
695
705
  if (typeof obj_templateSourceId !== 'string') {
696
706
  return new TypeError('Expected "string" but received "' + typeof obj_templateSourceId + '" (at "' + path_templateSourceId + '")');
697
707
  }
708
+ const obj_templateType = obj.templateType;
709
+ const path_templateType = path + '.templateType';
710
+ if (typeof obj_templateType !== 'string') {
711
+ return new TypeError('Expected "string" but received "' + typeof obj_templateType + '" (at "' + path_templateType + '")');
712
+ }
698
713
  const obj_templateValues = obj.templateValues;
699
714
  const path_templateValues = path + '.templateValues';
700
715
  if (typeof obj_templateValues !== 'object' || ArrayIsArray(obj_templateValues) || obj_templateValues === null) {
@@ -722,27 +737,31 @@ function validate$7(obj, path = 'AppRepresentation') {
722
737
  })();
723
738
  return v_error === undefined ? null : v_error;
724
739
  }
725
- const RepresentationType$7 = 'AppRepresentation';
726
- function keyBuilder$i(luvio, config) {
727
- return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
740
+ const RepresentationType$9 = 'AppRepresentation';
741
+ function keyBuilder$o(luvio, config) {
742
+ return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
728
743
  }
729
- function keyBuilderFromType$5(luvio, object) {
744
+ function keyBuilderFromType$7(luvio, object) {
730
745
  const keyParams = {
731
746
  id: object.id
732
747
  };
733
- return keyBuilder$i(luvio, keyParams);
748
+ return keyBuilder$o(luvio, keyParams);
734
749
  }
735
- function normalize$7(input, existing, path, luvio, store, timestamp) {
750
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
736
751
  return input;
737
752
  }
738
- const select$e = function AppRepresentationSelect() {
739
- const { selections: UserRepresentation__selections, opaque: UserRepresentation__opaque, } = select$m();
740
- const { selections: AppScheduleRepresentation__selections, opaque: AppScheduleRepresentation__opaque, } = select$f();
753
+ const select$i = function AppRepresentationSelect() {
754
+ const { selections: UserRepresentation__selections, opaque: UserRepresentation__opaque, } = select$q();
755
+ const { selections: AppScheduleRepresentation__selections, opaque: AppScheduleRepresentation__opaque, } = select$j();
741
756
  return {
742
757
  kind: 'Fragment',
743
- version: VERSION$7,
758
+ version: VERSION$9,
744
759
  private: [],
745
760
  selections: [
761
+ {
762
+ name: 'activitiesUrl',
763
+ kind: 'Scalar'
764
+ },
746
765
  {
747
766
  name: 'applicationStatus',
748
767
  kind: 'Scalar'
@@ -785,6 +804,10 @@ const select$e = function AppRepresentationSelect() {
785
804
  name: 'lastModifiedDate',
786
805
  kind: 'Scalar'
787
806
  },
807
+ {
808
+ name: 'latestActivityUrl',
809
+ kind: 'Scalar'
810
+ },
788
811
  {
789
812
  name: 'name',
790
813
  kind: 'Scalar'
@@ -799,6 +822,10 @@ const select$e = function AppRepresentationSelect() {
799
822
  name: 'templateSourceId',
800
823
  kind: 'Scalar'
801
824
  },
825
+ {
826
+ name: 'templateType',
827
+ kind: 'Scalar'
828
+ },
802
829
  {
803
830
  name: 'templateValues',
804
831
  kind: 'Object',
@@ -815,7 +842,12 @@ const select$e = function AppRepresentationSelect() {
815
842
  ]
816
843
  };
817
844
  };
818
- function equals$7(existing, incoming) {
845
+ function equals$9(existing, incoming) {
846
+ const existing_activitiesUrl = existing.activitiesUrl;
847
+ const incoming_activitiesUrl = incoming.activitiesUrl;
848
+ if (!(existing_activitiesUrl === incoming_activitiesUrl)) {
849
+ return false;
850
+ }
819
851
  const existing_applicationStatus = existing.applicationStatus;
820
852
  const incoming_applicationStatus = incoming.applicationStatus;
821
853
  if (!(existing_applicationStatus === incoming_applicationStatus)) {
@@ -851,6 +883,11 @@ function equals$7(existing, incoming) {
851
883
  if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
852
884
  return false;
853
885
  }
886
+ const existing_latestActivityUrl = existing.latestActivityUrl;
887
+ const incoming_latestActivityUrl = incoming.latestActivityUrl;
888
+ if (!(existing_latestActivityUrl === incoming_latestActivityUrl)) {
889
+ return false;
890
+ }
854
891
  const existing_name = existing.name;
855
892
  const incoming_name = incoming.name;
856
893
  if (!(existing_name === incoming_name)) {
@@ -861,6 +898,11 @@ function equals$7(existing, incoming) {
861
898
  if (!(existing_templateSourceId === incoming_templateSourceId)) {
862
899
  return false;
863
900
  }
901
+ const existing_templateType = existing.templateType;
902
+ const incoming_templateType = incoming.templateType;
903
+ if (!(existing_templateType === incoming_templateType)) {
904
+ return false;
905
+ }
864
906
  const existing_templateVersion = existing.templateVersion;
865
907
  const incoming_templateVersion = incoming.templateVersion;
866
908
  if (!(existing_templateVersion === incoming_templateVersion)) {
@@ -873,7 +915,7 @@ function equals$7(existing, incoming) {
873
915
  }
874
916
  const existing_createdBy = existing.createdBy;
875
917
  const incoming_createdBy = incoming.createdBy;
876
- if (!(equals$c(existing_createdBy, incoming_createdBy))) {
918
+ if (!(equals$e(existing_createdBy, incoming_createdBy))) {
877
919
  return false;
878
920
  }
879
921
  const existing_description = existing.description;
@@ -883,7 +925,7 @@ function equals$7(existing, incoming) {
883
925
  }
884
926
  const existing_lastModifiedBy = existing.lastModifiedBy;
885
927
  const incoming_lastModifiedBy = incoming.lastModifiedBy;
886
- if (!(equals$c(existing_lastModifiedBy, incoming_lastModifiedBy))) {
928
+ if (!(equals$e(existing_lastModifiedBy, incoming_lastModifiedBy))) {
887
929
  return false;
888
930
  }
889
931
  const existing_schedule = existing.schedule;
@@ -891,7 +933,7 @@ function equals$7(existing, incoming) {
891
933
  if (!(existing_schedule === incoming_schedule
892
934
  || (existing_schedule != null &&
893
935
  incoming_schedule != null &&
894
- equals$8(existing_schedule, incoming_schedule)))) {
936
+ equals$a(existing_schedule, incoming_schedule)))) {
895
937
  return false;
896
938
  }
897
939
  const existing_templateValues = existing.templateValues;
@@ -906,31 +948,31 @@ function equals$7(existing, incoming) {
906
948
  }
907
949
  return true;
908
950
  }
909
- const ingest$7 = function AppRepresentationIngest(input, path, luvio, store, timestamp) {
951
+ const ingest$9 = function AppRepresentationIngest(input, path, luvio, store, timestamp) {
910
952
  if (process.env.NODE_ENV !== 'production') {
911
- const validateError = validate$7(input);
953
+ const validateError = validate$9(input);
912
954
  if (validateError !== null) {
913
955
  throw validateError;
914
956
  }
915
957
  }
916
- const key = keyBuilderFromType$5(luvio, input);
917
- const ttlToUse = TTL$7;
918
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "AppFramework", VERSION$7, RepresentationType$7, equals$7);
958
+ const key = keyBuilderFromType$7(luvio, input);
959
+ const ttlToUse = TTL$9;
960
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "AppFramework", VERSION$9, RepresentationType$9, equals$9);
919
961
  return createLink(key);
920
962
  };
921
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
963
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
922
964
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
923
- const rootKey = keyBuilderFromType$5(luvio, input);
965
+ const rootKey = keyBuilderFromType$7(luvio, input);
924
966
  rootKeySet.set(rootKey, {
925
967
  namespace: keyPrefix,
926
- representationName: RepresentationType$7,
968
+ representationName: RepresentationType$9,
927
969
  mergeable: false
928
970
  });
929
971
  }
930
972
 
931
- const TTL$6 = 5000;
932
- const VERSION$6 = "2dd7266897d8b84ea0207582ca533d29";
933
- function validate$6(obj, path = 'AppCollectionRepresentation') {
973
+ const TTL$8 = 5000;
974
+ const VERSION$8 = "2dd7266897d8b84ea0207582ca533d29";
975
+ function validate$8(obj, path = 'AppCollectionRepresentation') {
934
976
  const v_error = (() => {
935
977
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
936
978
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -950,14 +992,14 @@ function validate$6(obj, path = 'AppCollectionRepresentation') {
950
992
  })();
951
993
  return v_error === undefined ? null : v_error;
952
994
  }
953
- const RepresentationType$6 = 'AppCollectionRepresentation';
954
- function normalize$6(input, existing, path, luvio, store, timestamp) {
995
+ const RepresentationType$8 = 'AppCollectionRepresentation';
996
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
955
997
  const input_apps = input.apps;
956
998
  const input_apps_id = path.fullPath + '__apps';
957
999
  for (let i = 0; i < input_apps.length; i++) {
958
1000
  const input_apps_item = input_apps[i];
959
1001
  let input_apps_item_id = input_apps_id + '__' + i;
960
- input_apps[i] = ingest$7(input_apps_item, {
1002
+ input_apps[i] = ingest$9(input_apps_item, {
961
1003
  fullPath: input_apps_item_id,
962
1004
  propertyName: i,
963
1005
  parent: {
@@ -970,22 +1012,22 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
970
1012
  }
971
1013
  return input;
972
1014
  }
973
- const select$d = function AppCollectionRepresentationSelect() {
1015
+ const select$h = function AppCollectionRepresentationSelect() {
974
1016
  return {
975
1017
  kind: 'Fragment',
976
- version: VERSION$6,
1018
+ version: VERSION$8,
977
1019
  private: [],
978
1020
  selections: [
979
1021
  {
980
1022
  name: 'apps',
981
1023
  kind: 'Link',
982
1024
  plural: true,
983
- fragment: select$e()
1025
+ fragment: select$i()
984
1026
  }
985
1027
  ]
986
1028
  };
987
1029
  };
988
- function equals$6(existing, incoming) {
1030
+ function equals$8(existing, incoming) {
989
1031
  const existing_apps = existing.apps;
990
1032
  const incoming_apps = incoming.apps;
991
1033
  const equals_apps_items = equalsArray(existing_apps, incoming_apps, (existing_apps_item, incoming_apps_item) => {
@@ -998,48 +1040,48 @@ function equals$6(existing, incoming) {
998
1040
  }
999
1041
  return true;
1000
1042
  }
1001
- const ingest$6 = function AppCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1043
+ const ingest$8 = function AppCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1002
1044
  if (process.env.NODE_ENV !== 'production') {
1003
- const validateError = validate$6(input);
1045
+ const validateError = validate$8(input);
1004
1046
  if (validateError !== null) {
1005
1047
  throw validateError;
1006
1048
  }
1007
1049
  }
1008
1050
  const key = path.fullPath;
1009
- const ttlToUse = TTL$6;
1010
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "AppFramework", VERSION$6, RepresentationType$6, equals$6);
1051
+ const ttlToUse = TTL$8;
1052
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "AppFramework", VERSION$8, RepresentationType$8, equals$8);
1011
1053
  return createLink(key);
1012
1054
  };
1013
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1055
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
1014
1056
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1015
1057
  const rootKey = fullPathFactory();
1016
1058
  rootKeySet.set(rootKey, {
1017
1059
  namespace: keyPrefix,
1018
- representationName: RepresentationType$6,
1060
+ representationName: RepresentationType$8,
1019
1061
  mergeable: false
1020
1062
  });
1021
1063
  const input_apps_length = input.apps.length;
1022
1064
  for (let i = 0; i < input_apps_length; i++) {
1023
- getTypeCacheKeys$7(rootKeySet, luvio, input.apps[i]);
1065
+ getTypeCacheKeys$9(rootKeySet, luvio, input.apps[i]);
1024
1066
  }
1025
1067
  }
1026
1068
 
1027
- function select$c(luvio, params) {
1028
- return select$d();
1069
+ function select$g(luvio, params) {
1070
+ return select$h();
1029
1071
  }
1030
- function keyBuilder$h(luvio, params) {
1031
- return keyPrefix + '::AppCollectionRepresentation:(' + 'templateSourceId:' + params.queryParams.templateSourceId + ')';
1072
+ function keyBuilder$n(luvio, params) {
1073
+ return keyPrefix + '::AppCollectionRepresentation:(' + 'templateSourceId:' + params.queryParams.templateSourceId + ',' + 'type:' + params.queryParams.type + ')';
1032
1074
  }
1033
- function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1034
- getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$h(luvio, resourceParams));
1075
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
1076
+ getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$n(luvio, resourceParams));
1035
1077
  }
1036
- function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1078
+ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
1037
1079
  const { body } = response;
1038
- const key = keyBuilder$h(luvio, resourceParams);
1039
- luvio.storeIngest(key, ingest$6, body);
1080
+ const key = keyBuilder$n(luvio, resourceParams);
1081
+ luvio.storeIngest(key, ingest$8, body);
1040
1082
  const snapshot = luvio.storeLookup({
1041
1083
  recordId: key,
1042
- node: select$c(),
1084
+ node: select$g(),
1043
1085
  variables: {},
1044
1086
  }, snapshotRefresh);
1045
1087
  if (process.env.NODE_ENV !== 'production') {
@@ -1050,19 +1092,19 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1050
1092
  deepFreeze(snapshot.data);
1051
1093
  return snapshot;
1052
1094
  }
1053
- function ingestError$5(luvio, params, error, snapshotRefresh) {
1054
- const key = keyBuilder$h(luvio, params);
1095
+ function ingestError$7(luvio, params, error, snapshotRefresh) {
1096
+ const key = keyBuilder$n(luvio, params);
1055
1097
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1056
1098
  const storeMetadataParams = {
1057
- ttl: TTL$6,
1099
+ ttl: TTL$8,
1058
1100
  namespace: keyPrefix,
1059
- version: VERSION$6,
1060
- representationName: RepresentationType$6
1101
+ version: VERSION$8,
1102
+ representationName: RepresentationType$8
1061
1103
  };
1062
1104
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1063
1105
  return errorSnapshot;
1064
1106
  }
1065
- function createResourceRequest$7(config) {
1107
+ function createResourceRequest$9(config) {
1066
1108
  const headers = {};
1067
1109
  return {
1068
1110
  baseUri: '/services/data/v62.0',
@@ -1076,95 +1118,96 @@ function createResourceRequest$7(config) {
1076
1118
  };
1077
1119
  }
1078
1120
 
1079
- const adapterName$7 = 'getApps';
1121
+ const adapterName$9 = 'getApps';
1080
1122
  const getApps_ConfigPropertyMetadata = [
1081
1123
  generateParamConfigMetadata('templateSourceId', false, 1 /* QueryParameter */, 0 /* String */),
1124
+ generateParamConfigMetadata('type', false, 1 /* QueryParameter */, 0 /* String */),
1082
1125
  ];
1083
- const getApps_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getApps_ConfigPropertyMetadata);
1084
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(getApps_ConfigPropertyMetadata);
1085
- function keyBuilder$g(luvio, config) {
1086
- const resourceParams = createResourceParams$7(config);
1087
- return keyBuilder$h(luvio, resourceParams);
1126
+ const getApps_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getApps_ConfigPropertyMetadata);
1127
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$a(getApps_ConfigPropertyMetadata);
1128
+ function keyBuilder$m(luvio, config) {
1129
+ const resourceParams = createResourceParams$9(config);
1130
+ return keyBuilder$n(luvio, resourceParams);
1088
1131
  }
1089
- function typeCheckConfig$7(untrustedConfig) {
1132
+ function typeCheckConfig$9(untrustedConfig) {
1090
1133
  const config = {};
1091
- typeCheckConfig$8(untrustedConfig, config, getApps_ConfigPropertyMetadata);
1134
+ typeCheckConfig$a(untrustedConfig, config, getApps_ConfigPropertyMetadata);
1092
1135
  return config;
1093
1136
  }
1094
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1137
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
1095
1138
  if (!untrustedIsObject(untrustedConfig)) {
1096
1139
  return null;
1097
1140
  }
1098
1141
  if (process.env.NODE_ENV !== 'production') {
1099
1142
  validateConfig(untrustedConfig, configPropertyNames);
1100
1143
  }
1101
- const config = typeCheckConfig$7(untrustedConfig);
1144
+ const config = typeCheckConfig$9(untrustedConfig);
1102
1145
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1103
1146
  return null;
1104
1147
  }
1105
1148
  return config;
1106
1149
  }
1107
- function adapterFragment$5(luvio, config) {
1108
- createResourceParams$7(config);
1109
- return select$c();
1150
+ function adapterFragment$7(luvio, config) {
1151
+ createResourceParams$9(config);
1152
+ return select$g();
1110
1153
  }
1111
- function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
1112
- const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
1154
+ function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
1155
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
1113
1156
  config,
1114
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1157
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
1115
1158
  });
1116
1159
  return luvio.storeBroadcast().then(() => snapshot);
1117
1160
  }
1118
- function onFetchResponseError$5(luvio, config, resourceParams, response) {
1119
- const snapshot = ingestError$5(luvio, resourceParams, response, {
1161
+ function onFetchResponseError$7(luvio, config, resourceParams, response) {
1162
+ const snapshot = ingestError$7(luvio, resourceParams, response, {
1120
1163
  config,
1121
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1164
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
1122
1165
  });
1123
1166
  return luvio.storeBroadcast().then(() => snapshot);
1124
1167
  }
1125
- function buildNetworkSnapshot$7(luvio, config, options) {
1126
- const resourceParams = createResourceParams$7(config);
1127
- const request = createResourceRequest$7(resourceParams);
1168
+ function buildNetworkSnapshot$9(luvio, config, options) {
1169
+ const resourceParams = createResourceParams$9(config);
1170
+ const request = createResourceRequest$9(resourceParams);
1128
1171
  return luvio.dispatchResourceRequest(request, options)
1129
1172
  .then((response) => {
1130
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
1173
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
1131
1174
  const cache = new StoreKeyMap();
1132
- getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1175
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
1133
1176
  return cache;
1134
1177
  });
1135
1178
  }, (response) => {
1136
- return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
1179
+ return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
1137
1180
  });
1138
1181
  }
1139
- function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
1140
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
1182
+ function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
1183
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
1141
1184
  }
1142
- function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
1185
+ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
1143
1186
  const { luvio, config } = context;
1144
1187
  const selector = {
1145
- recordId: keyBuilder$g(luvio, config),
1146
- node: adapterFragment$5(luvio, config),
1188
+ recordId: keyBuilder$m(luvio, config),
1189
+ node: adapterFragment$7(luvio, config),
1147
1190
  variables: {},
1148
1191
  };
1149
1192
  const cacheSnapshot = storeLookup(selector, {
1150
1193
  config,
1151
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1194
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
1152
1195
  });
1153
1196
  return cacheSnapshot;
1154
1197
  }
1155
1198
  const getAppsAdapterFactory = (luvio) => function AppFramework__getApps(untrustedConfig, requestContext) {
1156
- const config = validateAdapterConfig$7(untrustedConfig, getApps_ConfigPropertyNames);
1199
+ const config = validateAdapterConfig$9(untrustedConfig, getApps_ConfigPropertyNames);
1157
1200
  // Invalid or incomplete config
1158
1201
  if (config === null) {
1159
1202
  return null;
1160
1203
  }
1161
1204
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1162
- buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
1205
+ buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
1163
1206
  };
1164
1207
 
1165
- const TTL$5 = 5000;
1166
- const VERSION$5 = "e7a1233115fcb9b27ee13367015ae7e0";
1167
- function validate$5(obj, path = 'AppResultRepresentation') {
1208
+ const TTL$7 = 5000;
1209
+ const VERSION$7 = "1e01d8ae397bfbae02ba4cfae1dac4fc";
1210
+ function validate$7(obj, path = 'AppResultRepresentation') {
1168
1211
  const v_error = (() => {
1169
1212
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1170
1213
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1174,6 +1217,32 @@ function validate$5(obj, path = 'AppResultRepresentation') {
1174
1217
  if (typeof obj_app !== 'object') {
1175
1218
  return new TypeError('Expected "object" but received "' + typeof obj_app + '" (at "' + path_app + '")');
1176
1219
  }
1220
+ const obj_failureMessage = obj.failureMessage;
1221
+ const path_failureMessage = path + '.failureMessage';
1222
+ let obj_failureMessage_union0 = null;
1223
+ const obj_failureMessage_union0_error = (() => {
1224
+ if (typeof obj_failureMessage !== 'string') {
1225
+ return new TypeError('Expected "string" but received "' + typeof obj_failureMessage + '" (at "' + path_failureMessage + '")');
1226
+ }
1227
+ })();
1228
+ if (obj_failureMessage_union0_error != null) {
1229
+ obj_failureMessage_union0 = obj_failureMessage_union0_error.message;
1230
+ }
1231
+ let obj_failureMessage_union1 = null;
1232
+ const obj_failureMessage_union1_error = (() => {
1233
+ if (obj_failureMessage !== null) {
1234
+ return new TypeError('Expected "null" but received "' + typeof obj_failureMessage + '" (at "' + path_failureMessage + '")');
1235
+ }
1236
+ })();
1237
+ if (obj_failureMessage_union1_error != null) {
1238
+ obj_failureMessage_union1 = obj_failureMessage_union1_error.message;
1239
+ }
1240
+ if (obj_failureMessage_union0 && obj_failureMessage_union1) {
1241
+ let message = 'Object doesn\'t match union (at "' + path_failureMessage + '")';
1242
+ message += '\n' + obj_failureMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
1243
+ message += '\n' + obj_failureMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
1244
+ return new TypeError(message);
1245
+ }
1177
1246
  const obj_runtimeRequestId = obj.runtimeRequestId;
1178
1247
  const path_runtimeRequestId = path + '.runtimeRequestId';
1179
1248
  if (typeof obj_runtimeRequestId !== 'string') {
@@ -1196,20 +1265,20 @@ function validate$5(obj, path = 'AppResultRepresentation') {
1196
1265
  })();
1197
1266
  return v_error === undefined ? null : v_error;
1198
1267
  }
1199
- const RepresentationType$5 = 'AppResultRepresentation';
1200
- function keyBuilder$f(luvio, config) {
1201
- return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
1268
+ const RepresentationType$7 = 'AppResultRepresentation';
1269
+ function keyBuilder$l(luvio, config) {
1270
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
1202
1271
  }
1203
- function keyBuilderFromType$4(luvio, object) {
1272
+ function keyBuilderFromType$6(luvio, object) {
1204
1273
  const keyParams = {
1205
1274
  id: object.app.id
1206
1275
  };
1207
- return keyBuilder$f(luvio, keyParams);
1276
+ return keyBuilder$l(luvio, keyParams);
1208
1277
  }
1209
- function normalize$5(input, existing, path, luvio, store, timestamp) {
1278
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
1210
1279
  const input_app = input.app;
1211
1280
  const input_app_id = path.fullPath + '__app';
1212
- input.app = ingest$7(input_app, {
1281
+ input.app = ingest$9(input_app, {
1213
1282
  fullPath: input_app_id,
1214
1283
  propertyName: 'app',
1215
1284
  parent: {
@@ -1221,16 +1290,20 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
1221
1290
  }, luvio, store, timestamp);
1222
1291
  return input;
1223
1292
  }
1224
- const select$b = function AppResultRepresentationSelect() {
1293
+ const select$f = function AppResultRepresentationSelect() {
1225
1294
  return {
1226
1295
  kind: 'Fragment',
1227
- version: VERSION$5,
1296
+ version: VERSION$7,
1228
1297
  private: [],
1229
1298
  selections: [
1230
1299
  {
1231
1300
  name: 'app',
1232
1301
  kind: 'Link',
1233
- fragment: select$e()
1302
+ fragment: select$i()
1303
+ },
1304
+ {
1305
+ name: 'failureMessage',
1306
+ kind: 'Scalar'
1234
1307
  },
1235
1308
  {
1236
1309
  name: 'runtimeRequestId',
@@ -1244,7 +1317,7 @@ const select$b = function AppResultRepresentationSelect() {
1244
1317
  ]
1245
1318
  };
1246
1319
  };
1247
- function equals$5(existing, incoming) {
1320
+ function equals$7(existing, incoming) {
1248
1321
  const existing_runtimeRequestId = existing.runtimeRequestId;
1249
1322
  const incoming_runtimeRequestId = incoming.runtimeRequestId;
1250
1323
  if (!(existing_runtimeRequestId === incoming_runtimeRequestId)) {
@@ -1255,6 +1328,11 @@ function equals$5(existing, incoming) {
1255
1328
  if (!(existing_app.__ref === incoming_app.__ref)) {
1256
1329
  return false;
1257
1330
  }
1331
+ const existing_failureMessage = existing.failureMessage;
1332
+ const incoming_failureMessage = incoming.failureMessage;
1333
+ if (!(existing_failureMessage === incoming_failureMessage)) {
1334
+ return false;
1335
+ }
1258
1336
  const existing_state = existing.state;
1259
1337
  const incoming_state = incoming.state;
1260
1338
  const equals_state_props = equalsObject(existing_state, incoming_state, (existing_state_prop, incoming_state_prop) => {
@@ -1267,42 +1345,42 @@ function equals$5(existing, incoming) {
1267
1345
  }
1268
1346
  return true;
1269
1347
  }
1270
- const ingest$5 = function AppResultRepresentationIngest(input, path, luvio, store, timestamp) {
1348
+ const ingest$7 = function AppResultRepresentationIngest(input, path, luvio, store, timestamp) {
1271
1349
  if (process.env.NODE_ENV !== 'production') {
1272
- const validateError = validate$5(input);
1350
+ const validateError = validate$7(input);
1273
1351
  if (validateError !== null) {
1274
1352
  throw validateError;
1275
1353
  }
1276
1354
  }
1277
- const key = keyBuilderFromType$4(luvio, input);
1278
- const ttlToUse = TTL$5;
1279
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "AppFramework", VERSION$5, RepresentationType$5, equals$5);
1355
+ const key = keyBuilderFromType$6(luvio, input);
1356
+ const ttlToUse = TTL$7;
1357
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "AppFramework", VERSION$7, RepresentationType$7, equals$7);
1280
1358
  return createLink(key);
1281
1359
  };
1282
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1360
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1283
1361
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1284
- const rootKey = keyBuilderFromType$4(luvio, input);
1362
+ const rootKey = keyBuilderFromType$6(luvio, input);
1285
1363
  rootKeySet.set(rootKey, {
1286
1364
  namespace: keyPrefix,
1287
- representationName: RepresentationType$5,
1365
+ representationName: RepresentationType$7,
1288
1366
  mergeable: false
1289
1367
  });
1290
- getTypeCacheKeys$7(rootKeySet, luvio, input.app);
1368
+ getTypeCacheKeys$9(rootKeySet, luvio, input.app);
1291
1369
  }
1292
1370
 
1293
- function select$a(luvio, params) {
1294
- return select$b();
1371
+ function select$e(luvio, params) {
1372
+ return select$f();
1295
1373
  }
1296
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1297
- getTypeCacheKeys$5(storeKeyMap, luvio, response);
1374
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
1375
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
1298
1376
  }
1299
- function ingestSuccess$5(luvio, resourceParams, response) {
1377
+ function ingestSuccess$7(luvio, resourceParams, response) {
1300
1378
  const { body } = response;
1301
- const key = keyBuilderFromType$4(luvio, body);
1302
- luvio.storeIngest(key, ingest$5, body);
1379
+ const key = keyBuilderFromType$6(luvio, body);
1380
+ luvio.storeIngest(key, ingest$7, body);
1303
1381
  const snapshot = luvio.storeLookup({
1304
1382
  recordId: key,
1305
- node: select$a(),
1383
+ node: select$e(),
1306
1384
  variables: {},
1307
1385
  });
1308
1386
  if (process.env.NODE_ENV !== 'production') {
@@ -1313,7 +1391,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
1313
1391
  deepFreeze(snapshot.data);
1314
1392
  return snapshot;
1315
1393
  }
1316
- function createResourceRequest$6(config) {
1394
+ function createResourceRequest$8(config) {
1317
1395
  const headers = {};
1318
1396
  return {
1319
1397
  baseUri: '/services/data/v62.0',
@@ -1327,21 +1405,24 @@ function createResourceRequest$6(config) {
1327
1405
  };
1328
1406
  }
1329
1407
 
1330
- const adapterName$6 = 'createApp';
1408
+ const adapterName$8 = 'createApp';
1331
1409
  const createApp_ConfigPropertyMetadata = [
1332
1410
  generateParamConfigMetadata('assetIcon', false, 2 /* Body */, 0 /* String */),
1333
1411
  generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
1334
1412
  generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
1413
+ generateParamConfigMetadata('logLevel', false, 2 /* Body */, 0 /* String */),
1335
1414
  generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
1415
+ generateParamConfigMetadata('runtimeMethod', false, 2 /* Body */, 0 /* String */),
1336
1416
  generateParamConfigMetadata('templateSourceId', true, 2 /* Body */, 0 /* String */),
1417
+ generateParamConfigMetadata('templateType', false, 2 /* Body */, 0 /* String */),
1337
1418
  generateParamConfigMetadata('templateValues', false, 2 /* Body */, 4 /* Unsupported */),
1338
1419
  generateParamConfigMetadata('templateVersion', false, 2 /* Body */, 0 /* String */),
1339
1420
  ];
1340
- const createApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createApp_ConfigPropertyMetadata);
1341
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(createApp_ConfigPropertyMetadata);
1342
- function typeCheckConfig$6(untrustedConfig) {
1421
+ const createApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createApp_ConfigPropertyMetadata);
1422
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$a(createApp_ConfigPropertyMetadata);
1423
+ function typeCheckConfig$8(untrustedConfig) {
1343
1424
  const config = {};
1344
- typeCheckConfig$8(untrustedConfig, config, createApp_ConfigPropertyMetadata);
1425
+ typeCheckConfig$a(untrustedConfig, config, createApp_ConfigPropertyMetadata);
1345
1426
  const untrustedConfig_templateValues = untrustedConfig.templateValues;
1346
1427
  if (untrustedIsObject(untrustedConfig_templateValues)) {
1347
1428
  const untrustedConfig_templateValues_object = {};
@@ -1359,30 +1440,30 @@ function typeCheckConfig$6(untrustedConfig) {
1359
1440
  }
1360
1441
  return config;
1361
1442
  }
1362
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1443
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1363
1444
  if (!untrustedIsObject(untrustedConfig)) {
1364
1445
  return null;
1365
1446
  }
1366
1447
  if (process.env.NODE_ENV !== 'production') {
1367
1448
  validateConfig(untrustedConfig, configPropertyNames);
1368
1449
  }
1369
- const config = typeCheckConfig$6(untrustedConfig);
1450
+ const config = typeCheckConfig$8(untrustedConfig);
1370
1451
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1371
1452
  return null;
1372
1453
  }
1373
1454
  return config;
1374
1455
  }
1375
- function buildNetworkSnapshot$6(luvio, config, options) {
1376
- const resourceParams = createResourceParams$6(config);
1377
- const request = createResourceRequest$6(resourceParams);
1456
+ function buildNetworkSnapshot$8(luvio, config, options) {
1457
+ const resourceParams = createResourceParams$8(config);
1458
+ const request = createResourceRequest$8(resourceParams);
1378
1459
  return luvio.dispatchResourceRequest(request, options)
1379
1460
  .then((response) => {
1380
1461
  return luvio.handleSuccessResponse(() => {
1381
- const snapshot = ingestSuccess$5(luvio, resourceParams, response);
1462
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
1382
1463
  return luvio.storeBroadcast().then(() => snapshot);
1383
1464
  }, () => {
1384
1465
  const cache = new StoreKeyMap();
1385
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
1466
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1386
1467
  return cache;
1387
1468
  });
1388
1469
  }, (response) => {
@@ -1392,33 +1473,33 @@ function buildNetworkSnapshot$6(luvio, config, options) {
1392
1473
  }
1393
1474
  const createAppAdapterFactory = (luvio) => {
1394
1475
  return function createApp(untrustedConfig) {
1395
- const config = validateAdapterConfig$6(untrustedConfig, createApp_ConfigPropertyNames);
1476
+ const config = validateAdapterConfig$8(untrustedConfig, createApp_ConfigPropertyNames);
1396
1477
  // Invalid or incomplete config
1397
1478
  if (config === null) {
1398
1479
  throw new Error('Invalid config for "createApp"');
1399
1480
  }
1400
- return buildNetworkSnapshot$6(luvio, config);
1481
+ return buildNetworkSnapshot$8(luvio, config);
1401
1482
  };
1402
1483
  };
1403
1484
 
1404
- function keyBuilder$e(luvio, params) {
1405
- return keyBuilder$i(luvio, {
1485
+ function keyBuilder$k(luvio, params) {
1486
+ return keyBuilder$o(luvio, {
1406
1487
  id: params.urlParams.appIdOrApiName
1407
1488
  });
1408
1489
  }
1409
- function getResponseCacheKeys$5(cacheKeyMap, luvio, resourceParams) {
1410
- const key = keyBuilder$e(luvio, resourceParams);
1490
+ function getResponseCacheKeys$7(cacheKeyMap, luvio, resourceParams) {
1491
+ const key = keyBuilder$k(luvio, resourceParams);
1411
1492
  cacheKeyMap.set(key, {
1412
1493
  namespace: keyPrefix,
1413
- representationName: RepresentationType$7,
1494
+ representationName: RepresentationType$9,
1414
1495
  mergeable: false
1415
1496
  });
1416
1497
  }
1417
1498
  function evictSuccess(luvio, resourceParams) {
1418
- const key = keyBuilder$e(luvio, resourceParams);
1499
+ const key = keyBuilder$k(luvio, resourceParams);
1419
1500
  luvio.storeEvict(key);
1420
1501
  }
1421
- function createResourceRequest$5(config) {
1502
+ function createResourceRequest$7(config) {
1422
1503
  const headers = {};
1423
1504
  return {
1424
1505
  baseUri: '/services/data/v62.0',
@@ -1432,33 +1513,33 @@ function createResourceRequest$5(config) {
1432
1513
  };
1433
1514
  }
1434
1515
 
1435
- const adapterName$5 = 'deleteApp';
1516
+ const adapterName$7 = 'deleteApp';
1436
1517
  const deleteApp_ConfigPropertyMetadata = [
1437
1518
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1438
1519
  ];
1439
- const deleteApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, deleteApp_ConfigPropertyMetadata);
1440
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(deleteApp_ConfigPropertyMetadata);
1441
- function typeCheckConfig$5(untrustedConfig) {
1520
+ const deleteApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, deleteApp_ConfigPropertyMetadata);
1521
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$a(deleteApp_ConfigPropertyMetadata);
1522
+ function typeCheckConfig$7(untrustedConfig) {
1442
1523
  const config = {};
1443
- typeCheckConfig$8(untrustedConfig, config, deleteApp_ConfigPropertyMetadata);
1524
+ typeCheckConfig$a(untrustedConfig, config, deleteApp_ConfigPropertyMetadata);
1444
1525
  return config;
1445
1526
  }
1446
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
1527
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1447
1528
  if (!untrustedIsObject(untrustedConfig)) {
1448
1529
  return null;
1449
1530
  }
1450
1531
  if (process.env.NODE_ENV !== 'production') {
1451
1532
  validateConfig(untrustedConfig, configPropertyNames);
1452
1533
  }
1453
- const config = typeCheckConfig$5(untrustedConfig);
1534
+ const config = typeCheckConfig$7(untrustedConfig);
1454
1535
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1455
1536
  return null;
1456
1537
  }
1457
1538
  return config;
1458
1539
  }
1459
- function buildNetworkSnapshot$5(luvio, config, options) {
1460
- const resourceParams = createResourceParams$5(config);
1461
- const request = createResourceRequest$5(resourceParams);
1540
+ function buildNetworkSnapshot$7(luvio, config, options) {
1541
+ const resourceParams = createResourceParams$7(config);
1542
+ const request = createResourceRequest$7(resourceParams);
1462
1543
  return luvio.dispatchResourceRequest(request, options)
1463
1544
  .then(() => {
1464
1545
  return luvio.handleSuccessResponse(() => {
@@ -1466,7 +1547,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
1466
1547
  return luvio.storeBroadcast();
1467
1548
  }, () => {
1468
1549
  const cache = new StoreKeyMap();
1469
- getResponseCacheKeys$5(cache, luvio, resourceParams);
1550
+ getResponseCacheKeys$7(cache, luvio, resourceParams);
1470
1551
  return cache;
1471
1552
  });
1472
1553
  }, (response) => {
@@ -1476,33 +1557,33 @@ function buildNetworkSnapshot$5(luvio, config, options) {
1476
1557
  }
1477
1558
  const deleteAppAdapterFactory = (luvio) => {
1478
1559
  return function AppFrameworkdeleteApp(untrustedConfig) {
1479
- const config = validateAdapterConfig$5(untrustedConfig, deleteApp_ConfigPropertyNames);
1560
+ const config = validateAdapterConfig$7(untrustedConfig, deleteApp_ConfigPropertyNames);
1480
1561
  // Invalid or incomplete config
1481
1562
  if (config === null) {
1482
- throw new Error(`Invalid config for "${adapterName$5}"`);
1563
+ throw new Error(`Invalid config for "${adapterName$7}"`);
1483
1564
  }
1484
- return buildNetworkSnapshot$5(luvio, config);
1565
+ return buildNetworkSnapshot$7(luvio, config);
1485
1566
  };
1486
1567
  };
1487
1568
 
1488
- function select$9(luvio, params) {
1489
- return select$e();
1569
+ function select$d(luvio, params) {
1570
+ return select$i();
1490
1571
  }
1491
- function keyBuilder$d(luvio, params) {
1492
- return keyBuilder$i(luvio, {
1572
+ function keyBuilder$j(luvio, params) {
1573
+ return keyBuilder$o(luvio, {
1493
1574
  id: params.urlParams.appIdOrApiName
1494
1575
  });
1495
1576
  }
1496
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1497
- getTypeCacheKeys$7(storeKeyMap, luvio, response);
1577
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1578
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
1498
1579
  }
1499
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1580
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1500
1581
  const { body } = response;
1501
- const key = keyBuilder$d(luvio, resourceParams);
1502
- luvio.storeIngest(key, ingest$7, body);
1582
+ const key = keyBuilder$j(luvio, resourceParams);
1583
+ luvio.storeIngest(key, ingest$9, body);
1503
1584
  const snapshot = luvio.storeLookup({
1504
1585
  recordId: key,
1505
- node: select$9(),
1586
+ node: select$d(),
1506
1587
  variables: {},
1507
1588
  }, snapshotRefresh);
1508
1589
  if (process.env.NODE_ENV !== 'production') {
@@ -1513,19 +1594,19 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1513
1594
  deepFreeze(snapshot.data);
1514
1595
  return snapshot;
1515
1596
  }
1516
- function ingestError$4(luvio, params, error, snapshotRefresh) {
1517
- const key = keyBuilder$d(luvio, params);
1597
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
1598
+ const key = keyBuilder$j(luvio, params);
1518
1599
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1519
1600
  const storeMetadataParams = {
1520
- ttl: TTL$7,
1601
+ ttl: TTL$9,
1521
1602
  namespace: keyPrefix,
1522
- version: VERSION$7,
1523
- representationName: RepresentationType$7
1603
+ version: VERSION$9,
1604
+ representationName: RepresentationType$9
1524
1605
  };
1525
1606
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1526
1607
  return errorSnapshot;
1527
1608
  }
1528
- function createResourceRequest$4(config) {
1609
+ function createResourceRequest$6(config) {
1529
1610
  const headers = {};
1530
1611
  return {
1531
1612
  baseUri: '/services/data/v62.0',
@@ -1539,131 +1620,680 @@ function createResourceRequest$4(config) {
1539
1620
  };
1540
1621
  }
1541
1622
 
1542
- const adapterName$4 = 'getApp';
1623
+ const adapterName$6 = 'getApp';
1543
1624
  const getApp_ConfigPropertyMetadata = [
1544
1625
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1545
1626
  ];
1546
- const getApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getApp_ConfigPropertyMetadata);
1547
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(getApp_ConfigPropertyMetadata);
1548
- function keyBuilder$c(luvio, config) {
1549
- const resourceParams = createResourceParams$4(config);
1550
- return keyBuilder$d(luvio, resourceParams);
1627
+ const getApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getApp_ConfigPropertyMetadata);
1628
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$a(getApp_ConfigPropertyMetadata);
1629
+ function keyBuilder$i(luvio, config) {
1630
+ const resourceParams = createResourceParams$6(config);
1631
+ return keyBuilder$j(luvio, resourceParams);
1551
1632
  }
1552
- function typeCheckConfig$4(untrustedConfig) {
1633
+ function typeCheckConfig$6(untrustedConfig) {
1553
1634
  const config = {};
1554
- typeCheckConfig$8(untrustedConfig, config, getApp_ConfigPropertyMetadata);
1635
+ typeCheckConfig$a(untrustedConfig, config, getApp_ConfigPropertyMetadata);
1555
1636
  return config;
1556
1637
  }
1557
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1638
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1558
1639
  if (!untrustedIsObject(untrustedConfig)) {
1559
1640
  return null;
1560
1641
  }
1561
1642
  if (process.env.NODE_ENV !== 'production') {
1562
1643
  validateConfig(untrustedConfig, configPropertyNames);
1563
1644
  }
1564
- const config = typeCheckConfig$4(untrustedConfig);
1645
+ const config = typeCheckConfig$6(untrustedConfig);
1565
1646
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1566
1647
  return null;
1567
1648
  }
1568
1649
  return config;
1569
1650
  }
1570
- function adapterFragment$4(luvio, config) {
1571
- createResourceParams$4(config);
1572
- return select$9();
1651
+ function adapterFragment$6(luvio, config) {
1652
+ createResourceParams$6(config);
1653
+ return select$d();
1573
1654
  }
1574
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
1575
- const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
1655
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
1656
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
1576
1657
  config,
1577
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1658
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1578
1659
  });
1579
1660
  return luvio.storeBroadcast().then(() => snapshot);
1580
1661
  }
1581
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
1582
- const snapshot = ingestError$4(luvio, resourceParams, response, {
1662
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
1663
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
1583
1664
  config,
1584
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1665
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1585
1666
  });
1586
1667
  return luvio.storeBroadcast().then(() => snapshot);
1587
1668
  }
1588
- function buildNetworkSnapshot$4(luvio, config, options) {
1589
- const resourceParams = createResourceParams$4(config);
1590
- const request = createResourceRequest$4(resourceParams);
1669
+ function buildNetworkSnapshot$6(luvio, config, options) {
1670
+ const resourceParams = createResourceParams$6(config);
1671
+ const request = createResourceRequest$6(resourceParams);
1591
1672
  return luvio.dispatchResourceRequest(request, options)
1592
1673
  .then((response) => {
1593
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
1674
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
1594
1675
  const cache = new StoreKeyMap();
1595
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
1676
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
1596
1677
  return cache;
1597
1678
  });
1598
1679
  }, (response) => {
1599
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
1680
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
1600
1681
  });
1601
1682
  }
1602
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
1603
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
1683
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
1684
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
1604
1685
  }
1605
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
1686
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
1606
1687
  const { luvio, config } = context;
1607
1688
  const selector = {
1608
- recordId: keyBuilder$c(luvio, config),
1609
- node: adapterFragment$4(luvio, config),
1689
+ recordId: keyBuilder$i(luvio, config),
1690
+ node: adapterFragment$6(luvio, config),
1610
1691
  variables: {},
1611
1692
  };
1612
1693
  const cacheSnapshot = storeLookup(selector, {
1613
1694
  config,
1614
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1695
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1615
1696
  });
1616
1697
  return cacheSnapshot;
1617
1698
  }
1618
1699
  const getAppAdapterFactory = (luvio) => function AppFramework__getApp(untrustedConfig, requestContext) {
1619
- const config = validateAdapterConfig$4(untrustedConfig, getApp_ConfigPropertyNames);
1700
+ const config = validateAdapterConfig$6(untrustedConfig, getApp_ConfigPropertyNames);
1620
1701
  // Invalid or incomplete config
1621
1702
  if (config === null) {
1622
1703
  return null;
1623
1704
  }
1624
1705
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1625
- buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
1706
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
1626
1707
  };
1627
1708
 
1628
- const TTL$4 = 5000;
1629
- const VERSION$4 = "522326f05ee6a404b50ed781361a75b1";
1630
- function validate$4(obj, path = 'AssetRepresentation') {
1709
+ const TTL$6 = 5000;
1710
+ const VERSION$6 = "b8e879a936b5069ec247355c66198ca7";
1711
+ function validate$6(obj, path = 'AppActivityItemRepresentation') {
1631
1712
  const v_error = (() => {
1632
1713
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1633
1714
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1634
1715
  }
1635
- const obj_assetIdOrName = obj.assetIdOrName;
1636
- const path_assetIdOrName = path + '.assetIdOrName';
1637
- if (typeof obj_assetIdOrName !== 'string') {
1638
- return new TypeError('Expected "string" but received "' + typeof obj_assetIdOrName + '" (at "' + path_assetIdOrName + '")');
1716
+ const obj_activityType = obj.activityType;
1717
+ const path_activityType = path + '.activityType';
1718
+ if (typeof obj_activityType !== 'string') {
1719
+ return new TypeError('Expected "string" but received "' + typeof obj_activityType + '" (at "' + path_activityType + '")');
1639
1720
  }
1640
- const obj_assetIdOrName2 = obj.assetIdOrName2;
1641
- const path_assetIdOrName2 = path + '.assetIdOrName2';
1642
- let obj_assetIdOrName2_union0 = null;
1643
- const obj_assetIdOrName2_union0_error = (() => {
1644
- if (typeof obj_assetIdOrName2 !== 'string') {
1645
- return new TypeError('Expected "string" but received "' + typeof obj_assetIdOrName2 + '" (at "' + path_assetIdOrName2 + '")');
1646
- }
1647
- })();
1648
- if (obj_assetIdOrName2_union0_error != null) {
1649
- obj_assetIdOrName2_union0 = obj_assetIdOrName2_union0_error.message;
1721
+ const obj_appId = obj.appId;
1722
+ const path_appId = path + '.appId';
1723
+ if (typeof obj_appId !== 'string') {
1724
+ return new TypeError('Expected "string" but received "' + typeof obj_appId + '" (at "' + path_appId + '")');
1650
1725
  }
1651
- let obj_assetIdOrName2_union1 = null;
1652
- const obj_assetIdOrName2_union1_error = (() => {
1653
- if (obj_assetIdOrName2 !== null) {
1654
- return new TypeError('Expected "null" but received "' + typeof obj_assetIdOrName2 + '" (at "' + path_assetIdOrName2 + '")');
1655
- }
1656
- })();
1657
- if (obj_assetIdOrName2_union1_error != null) {
1658
- obj_assetIdOrName2_union1 = obj_assetIdOrName2_union1_error.message;
1726
+ const obj_id = obj.id;
1727
+ const path_id = path + '.id';
1728
+ if (typeof obj_id !== 'string') {
1729
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1659
1730
  }
1660
- if (obj_assetIdOrName2_union0 && obj_assetIdOrName2_union1) {
1661
- let message = 'Object doesn\'t match union (at "' + path_assetIdOrName2 + '")';
1662
- message += '\n' + obj_assetIdOrName2_union0.split('\n').map((line) => '\t' + line).join('\n');
1663
- message += '\n' + obj_assetIdOrName2_union1.split('\n').map((line) => '\t' + line).join('\n');
1664
- return new TypeError(message);
1731
+ const obj_runtimeRequest = obj.runtimeRequest;
1732
+ const path_runtimeRequest = path + '.runtimeRequest';
1733
+ if (typeof obj_runtimeRequest !== 'object' || ArrayIsArray(obj_runtimeRequest) || obj_runtimeRequest === null) {
1734
+ return new TypeError('Expected "object" but received "' + typeof obj_runtimeRequest + '" (at "' + path_runtimeRequest + '")');
1735
+ }
1736
+ const obj_runtimeRequest_keys = ObjectKeys(obj_runtimeRequest);
1737
+ for (let i = 0; i < obj_runtimeRequest_keys.length; i++) {
1738
+ const key = obj_runtimeRequest_keys[i];
1739
+ const obj_runtimeRequest_prop = obj_runtimeRequest[key];
1740
+ const path_runtimeRequest_prop = path_runtimeRequest + '["' + key + '"]';
1741
+ if (obj_runtimeRequest_prop === undefined) {
1742
+ return new TypeError('Expected "defined" but received "' + typeof obj_runtimeRequest_prop + '" (at "' + path_runtimeRequest_prop + '")');
1743
+ }
1665
1744
  }
1666
- const obj_assetIdOrName3 = obj.assetIdOrName3;
1745
+ const obj_url = obj.url;
1746
+ const path_url = path + '.url';
1747
+ if (typeof obj_url !== 'string') {
1748
+ return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
1749
+ }
1750
+ })();
1751
+ return v_error === undefined ? null : v_error;
1752
+ }
1753
+ const RepresentationType$6 = 'AppActivityItemRepresentation';
1754
+ function keyBuilder$h(luvio, config) {
1755
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.appId + ':' + config.id;
1756
+ }
1757
+ function keyBuilderFromType$5(luvio, object) {
1758
+ const keyParams = {
1759
+ appId: object.appId,
1760
+ id: object.id
1761
+ };
1762
+ return keyBuilder$h(luvio, keyParams);
1763
+ }
1764
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
1765
+ return input;
1766
+ }
1767
+ const select$c = function AppActivityItemRepresentationSelect() {
1768
+ return {
1769
+ kind: 'Fragment',
1770
+ version: VERSION$6,
1771
+ private: [],
1772
+ selections: [
1773
+ {
1774
+ name: 'activityType',
1775
+ kind: 'Scalar'
1776
+ },
1777
+ {
1778
+ name: 'appId',
1779
+ kind: 'Scalar'
1780
+ },
1781
+ {
1782
+ name: 'id',
1783
+ kind: 'Scalar'
1784
+ },
1785
+ {
1786
+ name: 'runtimeRequest',
1787
+ kind: 'Object',
1788
+ // any
1789
+ },
1790
+ {
1791
+ name: 'url',
1792
+ kind: 'Scalar'
1793
+ }
1794
+ ]
1795
+ };
1796
+ };
1797
+ function equals$6(existing, incoming) {
1798
+ const existing_activityType = existing.activityType;
1799
+ const incoming_activityType = incoming.activityType;
1800
+ if (!(existing_activityType === incoming_activityType)) {
1801
+ return false;
1802
+ }
1803
+ const existing_appId = existing.appId;
1804
+ const incoming_appId = incoming.appId;
1805
+ if (!(existing_appId === incoming_appId)) {
1806
+ return false;
1807
+ }
1808
+ const existing_id = existing.id;
1809
+ const incoming_id = incoming.id;
1810
+ if (!(existing_id === incoming_id)) {
1811
+ return false;
1812
+ }
1813
+ const existing_url = existing.url;
1814
+ const incoming_url = incoming.url;
1815
+ if (!(existing_url === incoming_url)) {
1816
+ return false;
1817
+ }
1818
+ const existing_runtimeRequest = existing.runtimeRequest;
1819
+ const incoming_runtimeRequest = incoming.runtimeRequest;
1820
+ const equals_runtimeRequest_props = equalsObject(existing_runtimeRequest, incoming_runtimeRequest, (existing_runtimeRequest_prop, incoming_runtimeRequest_prop) => {
1821
+ if (JSONStringify(incoming_runtimeRequest_prop) !== JSONStringify(existing_runtimeRequest_prop)) {
1822
+ return false;
1823
+ }
1824
+ });
1825
+ if (equals_runtimeRequest_props === false) {
1826
+ return false;
1827
+ }
1828
+ return true;
1829
+ }
1830
+ const ingest$6 = function AppActivityItemRepresentationIngest(input, path, luvio, store, timestamp) {
1831
+ if (process.env.NODE_ENV !== 'production') {
1832
+ const validateError = validate$6(input);
1833
+ if (validateError !== null) {
1834
+ throw validateError;
1835
+ }
1836
+ }
1837
+ const key = keyBuilderFromType$5(luvio, input);
1838
+ const ttlToUse = TTL$6;
1839
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "AppFramework", VERSION$6, RepresentationType$6, equals$6);
1840
+ return createLink(key);
1841
+ };
1842
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1843
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1844
+ const rootKey = keyBuilderFromType$5(luvio, input);
1845
+ rootKeySet.set(rootKey, {
1846
+ namespace: keyPrefix,
1847
+ representationName: RepresentationType$6,
1848
+ mergeable: false
1849
+ });
1850
+ }
1851
+
1852
+ const TTL$5 = 5000;
1853
+ const VERSION$5 = "e0f049ec23678e696fb7c592c9641c65";
1854
+ function validate$5(obj, path = 'AppActivityCollectionRepresentation') {
1855
+ const v_error = (() => {
1856
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1857
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1858
+ }
1859
+ const obj_appId = obj.appId;
1860
+ const path_appId = path + '.appId';
1861
+ if (typeof obj_appId !== 'string') {
1862
+ return new TypeError('Expected "string" but received "' + typeof obj_appId + '" (at "' + path_appId + '")');
1863
+ }
1864
+ const obj_items = obj.items;
1865
+ const path_items = path + '.items';
1866
+ if (!ArrayIsArray(obj_items)) {
1867
+ return new TypeError('Expected "array" but received "' + typeof obj_items + '" (at "' + path_items + '")');
1868
+ }
1869
+ for (let i = 0; i < obj_items.length; i++) {
1870
+ const obj_items_item = obj_items[i];
1871
+ const path_items_item = path_items + '[' + i + ']';
1872
+ if (typeof obj_items_item !== 'object') {
1873
+ return new TypeError('Expected "object" but received "' + typeof obj_items_item + '" (at "' + path_items_item + '")');
1874
+ }
1875
+ }
1876
+ })();
1877
+ return v_error === undefined ? null : v_error;
1878
+ }
1879
+ const RepresentationType$5 = 'AppActivityCollectionRepresentation';
1880
+ function keyBuilder$g(luvio, config) {
1881
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.appId;
1882
+ }
1883
+ function keyBuilderFromType$4(luvio, object) {
1884
+ const keyParams = {
1885
+ appId: object.appId
1886
+ };
1887
+ return keyBuilder$g(luvio, keyParams);
1888
+ }
1889
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
1890
+ const input_items = input.items;
1891
+ const input_items_id = path.fullPath + '__items';
1892
+ for (let i = 0; i < input_items.length; i++) {
1893
+ const input_items_item = input_items[i];
1894
+ let input_items_item_id = input_items_id + '__' + i;
1895
+ input_items[i] = ingest$6(input_items_item, {
1896
+ fullPath: input_items_item_id,
1897
+ propertyName: i,
1898
+ parent: {
1899
+ data: input,
1900
+ key: path.fullPath,
1901
+ existing: existing,
1902
+ },
1903
+ ttl: path.ttl
1904
+ }, luvio, store, timestamp);
1905
+ }
1906
+ return input;
1907
+ }
1908
+ const select$b = function AppActivityCollectionRepresentationSelect() {
1909
+ return {
1910
+ kind: 'Fragment',
1911
+ version: VERSION$5,
1912
+ private: [],
1913
+ selections: [
1914
+ {
1915
+ name: 'appId',
1916
+ kind: 'Scalar'
1917
+ },
1918
+ {
1919
+ name: 'items',
1920
+ kind: 'Link',
1921
+ plural: true,
1922
+ fragment: select$c()
1923
+ }
1924
+ ]
1925
+ };
1926
+ };
1927
+ function equals$5(existing, incoming) {
1928
+ const existing_appId = existing.appId;
1929
+ const incoming_appId = incoming.appId;
1930
+ if (!(existing_appId === incoming_appId)) {
1931
+ return false;
1932
+ }
1933
+ const existing_items = existing.items;
1934
+ const incoming_items = incoming.items;
1935
+ const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
1936
+ if (!(existing_items_item.__ref === incoming_items_item.__ref)) {
1937
+ return false;
1938
+ }
1939
+ });
1940
+ if (equals_items_items === false) {
1941
+ return false;
1942
+ }
1943
+ return true;
1944
+ }
1945
+ const ingest$5 = function AppActivityCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1946
+ if (process.env.NODE_ENV !== 'production') {
1947
+ const validateError = validate$5(input);
1948
+ if (validateError !== null) {
1949
+ throw validateError;
1950
+ }
1951
+ }
1952
+ const key = keyBuilderFromType$4(luvio, input);
1953
+ const ttlToUse = TTL$5;
1954
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "AppFramework", VERSION$5, RepresentationType$5, equals$5);
1955
+ return createLink(key);
1956
+ };
1957
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1958
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1959
+ const rootKey = keyBuilderFromType$4(luvio, input);
1960
+ rootKeySet.set(rootKey, {
1961
+ namespace: keyPrefix,
1962
+ representationName: RepresentationType$5,
1963
+ mergeable: false
1964
+ });
1965
+ const input_items_length = input.items.length;
1966
+ for (let i = 0; i < input_items_length; i++) {
1967
+ getTypeCacheKeys$6(rootKeySet, luvio, input.items[i]);
1968
+ }
1969
+ }
1970
+
1971
+ function select$a(luvio, params) {
1972
+ return select$b();
1973
+ }
1974
+ function keyBuilder$f(luvio, params) {
1975
+ return keyBuilder$g(luvio, {
1976
+ appId: params.urlParams.appIdOrApiName
1977
+ });
1978
+ }
1979
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1980
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
1981
+ }
1982
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
1983
+ const { body } = response;
1984
+ const key = keyBuilder$f(luvio, resourceParams);
1985
+ luvio.storeIngest(key, ingest$5, body);
1986
+ const snapshot = luvio.storeLookup({
1987
+ recordId: key,
1988
+ node: select$a(),
1989
+ variables: {},
1990
+ }, snapshotRefresh);
1991
+ if (process.env.NODE_ENV !== 'production') {
1992
+ if (snapshot.state !== 'Fulfilled') {
1993
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1994
+ }
1995
+ }
1996
+ deepFreeze(snapshot.data);
1997
+ return snapshot;
1998
+ }
1999
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
2000
+ const key = keyBuilder$f(luvio, params);
2001
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2002
+ const storeMetadataParams = {
2003
+ ttl: TTL$5,
2004
+ namespace: keyPrefix,
2005
+ version: VERSION$5,
2006
+ representationName: RepresentationType$5
2007
+ };
2008
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2009
+ return errorSnapshot;
2010
+ }
2011
+ function createResourceRequest$5(config) {
2012
+ const headers = {};
2013
+ return {
2014
+ baseUri: '/services/data/v62.0',
2015
+ basePath: '/app-framework/apps/' + config.urlParams.appIdOrApiName + '/activities',
2016
+ method: 'get',
2017
+ body: null,
2018
+ urlParams: config.urlParams,
2019
+ queryParams: {},
2020
+ headers,
2021
+ priority: 'normal',
2022
+ };
2023
+ }
2024
+
2025
+ const adapterName$5 = 'getAppActivities';
2026
+ const getAppActivities_ConfigPropertyMetadata = [
2027
+ generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2028
+ ];
2029
+ const getAppActivities_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getAppActivities_ConfigPropertyMetadata);
2030
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$a(getAppActivities_ConfigPropertyMetadata);
2031
+ function keyBuilder$e(luvio, config) {
2032
+ const resourceParams = createResourceParams$5(config);
2033
+ return keyBuilder$f(luvio, resourceParams);
2034
+ }
2035
+ function typeCheckConfig$5(untrustedConfig) {
2036
+ const config = {};
2037
+ typeCheckConfig$a(untrustedConfig, config, getAppActivities_ConfigPropertyMetadata);
2038
+ return config;
2039
+ }
2040
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
2041
+ if (!untrustedIsObject(untrustedConfig)) {
2042
+ return null;
2043
+ }
2044
+ if (process.env.NODE_ENV !== 'production') {
2045
+ validateConfig(untrustedConfig, configPropertyNames);
2046
+ }
2047
+ const config = typeCheckConfig$5(untrustedConfig);
2048
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2049
+ return null;
2050
+ }
2051
+ return config;
2052
+ }
2053
+ function adapterFragment$5(luvio, config) {
2054
+ createResourceParams$5(config);
2055
+ return select$a();
2056
+ }
2057
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
2058
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
2059
+ config,
2060
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2061
+ });
2062
+ return luvio.storeBroadcast().then(() => snapshot);
2063
+ }
2064
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
2065
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
2066
+ config,
2067
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2068
+ });
2069
+ return luvio.storeBroadcast().then(() => snapshot);
2070
+ }
2071
+ function buildNetworkSnapshot$5(luvio, config, options) {
2072
+ const resourceParams = createResourceParams$5(config);
2073
+ const request = createResourceRequest$5(resourceParams);
2074
+ return luvio.dispatchResourceRequest(request, options)
2075
+ .then((response) => {
2076
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
2077
+ const cache = new StoreKeyMap();
2078
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
2079
+ return cache;
2080
+ });
2081
+ }, (response) => {
2082
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
2083
+ });
2084
+ }
2085
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
2086
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
2087
+ }
2088
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
2089
+ const { luvio, config } = context;
2090
+ const selector = {
2091
+ recordId: keyBuilder$e(luvio, config),
2092
+ node: adapterFragment$5(luvio, config),
2093
+ variables: {},
2094
+ };
2095
+ const cacheSnapshot = storeLookup(selector, {
2096
+ config,
2097
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2098
+ });
2099
+ return cacheSnapshot;
2100
+ }
2101
+ const getAppActivitiesAdapterFactory = (luvio) => function AppFramework__getAppActivities(untrustedConfig, requestContext) {
2102
+ const config = validateAdapterConfig$5(untrustedConfig, getAppActivities_ConfigPropertyNames);
2103
+ // Invalid or incomplete config
2104
+ if (config === null) {
2105
+ return null;
2106
+ }
2107
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2108
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
2109
+ };
2110
+
2111
+ function select$9(luvio, params) {
2112
+ return select$c();
2113
+ }
2114
+ function keyBuilder$d(luvio, params) {
2115
+ return keyBuilder$h(luvio, {
2116
+ appId: params.urlParams.appIdOrApiName,
2117
+ id: params.urlParams.id
2118
+ });
2119
+ }
2120
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2121
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
2122
+ }
2123
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2124
+ const { body } = response;
2125
+ const key = keyBuilder$d(luvio, resourceParams);
2126
+ luvio.storeIngest(key, ingest$6, body);
2127
+ const snapshot = luvio.storeLookup({
2128
+ recordId: key,
2129
+ node: select$9(),
2130
+ variables: {},
2131
+ }, snapshotRefresh);
2132
+ if (process.env.NODE_ENV !== 'production') {
2133
+ if (snapshot.state !== 'Fulfilled') {
2134
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2135
+ }
2136
+ }
2137
+ deepFreeze(snapshot.data);
2138
+ return snapshot;
2139
+ }
2140
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
2141
+ const key = keyBuilder$d(luvio, params);
2142
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2143
+ const storeMetadataParams = {
2144
+ ttl: TTL$6,
2145
+ namespace: keyPrefix,
2146
+ version: VERSION$6,
2147
+ representationName: RepresentationType$6
2148
+ };
2149
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2150
+ return errorSnapshot;
2151
+ }
2152
+ function createResourceRequest$4(config) {
2153
+ const headers = {};
2154
+ return {
2155
+ baseUri: '/services/data/v62.0',
2156
+ basePath: '/app-framework/apps/' + config.urlParams.appIdOrApiName + '/activities/' + config.urlParams.id + '',
2157
+ method: 'get',
2158
+ body: null,
2159
+ urlParams: config.urlParams,
2160
+ queryParams: {},
2161
+ headers,
2162
+ priority: 'normal',
2163
+ };
2164
+ }
2165
+
2166
+ const adapterName$4 = 'getAppActivity';
2167
+ const getAppActivity_ConfigPropertyMetadata = [
2168
+ generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2169
+ generateParamConfigMetadata('id', true, 0 /* UrlParameter */, 0 /* String */),
2170
+ ];
2171
+ const getAppActivity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAppActivity_ConfigPropertyMetadata);
2172
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$a(getAppActivity_ConfigPropertyMetadata);
2173
+ function keyBuilder$c(luvio, config) {
2174
+ const resourceParams = createResourceParams$4(config);
2175
+ return keyBuilder$d(luvio, resourceParams);
2176
+ }
2177
+ function typeCheckConfig$4(untrustedConfig) {
2178
+ const config = {};
2179
+ typeCheckConfig$a(untrustedConfig, config, getAppActivity_ConfigPropertyMetadata);
2180
+ return config;
2181
+ }
2182
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2183
+ if (!untrustedIsObject(untrustedConfig)) {
2184
+ return null;
2185
+ }
2186
+ if (process.env.NODE_ENV !== 'production') {
2187
+ validateConfig(untrustedConfig, configPropertyNames);
2188
+ }
2189
+ const config = typeCheckConfig$4(untrustedConfig);
2190
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2191
+ return null;
2192
+ }
2193
+ return config;
2194
+ }
2195
+ function adapterFragment$4(luvio, config) {
2196
+ createResourceParams$4(config);
2197
+ return select$9();
2198
+ }
2199
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
2200
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2201
+ config,
2202
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2203
+ });
2204
+ return luvio.storeBroadcast().then(() => snapshot);
2205
+ }
2206
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
2207
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
2208
+ config,
2209
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2210
+ });
2211
+ return luvio.storeBroadcast().then(() => snapshot);
2212
+ }
2213
+ function buildNetworkSnapshot$4(luvio, config, options) {
2214
+ const resourceParams = createResourceParams$4(config);
2215
+ const request = createResourceRequest$4(resourceParams);
2216
+ return luvio.dispatchResourceRequest(request, options)
2217
+ .then((response) => {
2218
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
2219
+ const cache = new StoreKeyMap();
2220
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2221
+ return cache;
2222
+ });
2223
+ }, (response) => {
2224
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
2225
+ });
2226
+ }
2227
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
2228
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2229
+ }
2230
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2231
+ const { luvio, config } = context;
2232
+ const selector = {
2233
+ recordId: keyBuilder$c(luvio, config),
2234
+ node: adapterFragment$4(luvio, config),
2235
+ variables: {},
2236
+ };
2237
+ const cacheSnapshot = storeLookup(selector, {
2238
+ config,
2239
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2240
+ });
2241
+ return cacheSnapshot;
2242
+ }
2243
+ const getAppActivityAdapterFactory = (luvio) => function AppFramework__getAppActivity(untrustedConfig, requestContext) {
2244
+ const config = validateAdapterConfig$4(untrustedConfig, getAppActivity_ConfigPropertyNames);
2245
+ // Invalid or incomplete config
2246
+ if (config === null) {
2247
+ return null;
2248
+ }
2249
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2250
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
2251
+ };
2252
+
2253
+ const TTL$4 = 5000;
2254
+ const VERSION$4 = "34bc50b3e68f546eb8e99af16e45d84b";
2255
+ function validate$4(obj, path = 'AssetRepresentation') {
2256
+ const v_error = (() => {
2257
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2258
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2259
+ }
2260
+ const obj_appId = obj.appId;
2261
+ const path_appId = path + '.appId';
2262
+ if (typeof obj_appId !== 'string') {
2263
+ return new TypeError('Expected "string" but received "' + typeof obj_appId + '" (at "' + path_appId + '")');
2264
+ }
2265
+ const obj_assetIdOrName = obj.assetIdOrName;
2266
+ const path_assetIdOrName = path + '.assetIdOrName';
2267
+ if (typeof obj_assetIdOrName !== 'string') {
2268
+ return new TypeError('Expected "string" but received "' + typeof obj_assetIdOrName + '" (at "' + path_assetIdOrName + '")');
2269
+ }
2270
+ const obj_assetIdOrName2 = obj.assetIdOrName2;
2271
+ const path_assetIdOrName2 = path + '.assetIdOrName2';
2272
+ let obj_assetIdOrName2_union0 = null;
2273
+ const obj_assetIdOrName2_union0_error = (() => {
2274
+ if (typeof obj_assetIdOrName2 !== 'string') {
2275
+ return new TypeError('Expected "string" but received "' + typeof obj_assetIdOrName2 + '" (at "' + path_assetIdOrName2 + '")');
2276
+ }
2277
+ })();
2278
+ if (obj_assetIdOrName2_union0_error != null) {
2279
+ obj_assetIdOrName2_union0 = obj_assetIdOrName2_union0_error.message;
2280
+ }
2281
+ let obj_assetIdOrName2_union1 = null;
2282
+ const obj_assetIdOrName2_union1_error = (() => {
2283
+ if (obj_assetIdOrName2 !== null) {
2284
+ return new TypeError('Expected "null" but received "' + typeof obj_assetIdOrName2 + '" (at "' + path_assetIdOrName2 + '")');
2285
+ }
2286
+ })();
2287
+ if (obj_assetIdOrName2_union1_error != null) {
2288
+ obj_assetIdOrName2_union1 = obj_assetIdOrName2_union1_error.message;
2289
+ }
2290
+ if (obj_assetIdOrName2_union0 && obj_assetIdOrName2_union1) {
2291
+ let message = 'Object doesn\'t match union (at "' + path_assetIdOrName2 + '")';
2292
+ message += '\n' + obj_assetIdOrName2_union0.split('\n').map((line) => '\t' + line).join('\n');
2293
+ message += '\n' + obj_assetIdOrName2_union1.split('\n').map((line) => '\t' + line).join('\n');
2294
+ return new TypeError(message);
2295
+ }
2296
+ const obj_assetIdOrName3 = obj.assetIdOrName3;
1667
2297
  const path_assetIdOrName3 = path + '.assetIdOrName3';
1668
2298
  let obj_assetIdOrName3_union0 = null;
1669
2299
  const obj_assetIdOrName3_union0_error = (() => {
@@ -1768,6 +2398,10 @@ const select$8 = function AssetRepresentationSelect() {
1768
2398
  version: VERSION$4,
1769
2399
  private: [],
1770
2400
  selections: [
2401
+ {
2402
+ name: 'appId',
2403
+ kind: 'Scalar'
2404
+ },
1771
2405
  {
1772
2406
  name: 'assetIdOrName',
1773
2407
  kind: 'Scalar'
@@ -1796,6 +2430,11 @@ const select$8 = function AssetRepresentationSelect() {
1796
2430
  };
1797
2431
  };
1798
2432
  function equals$4(existing, incoming) {
2433
+ const existing_appId = existing.appId;
2434
+ const incoming_appId = incoming.appId;
2435
+ if (!(existing_appId === incoming_appId)) {
2436
+ return false;
2437
+ }
1799
2438
  const existing_assetIdOrName = existing.assetIdOrName;
1800
2439
  const incoming_assetIdOrName = incoming.assetIdOrName;
1801
2440
  if (!(existing_assetIdOrName === incoming_assetIdOrName)) {
@@ -1851,7 +2490,7 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1851
2490
  }
1852
2491
 
1853
2492
  const TTL$3 = 5000;
1854
- const VERSION$3 = "484e47e46cb53f96b32bb3c8c9de8053";
2493
+ const VERSION$3 = "1a10175fcc2ad43823e47bfbbdf917f6";
1855
2494
  function validate$3(obj, path = 'AssetCollectionRepresentation') {
1856
2495
  const v_error = (() => {
1857
2496
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1879,11 +2518,11 @@ function validate$3(obj, path = 'AssetCollectionRepresentation') {
1879
2518
  }
1880
2519
  const RepresentationType$3 = 'AssetCollectionRepresentation';
1881
2520
  function keyBuilder$a(luvio, config) {
1882
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
2521
+ return keyPrefix + '::' + RepresentationType$3 + ':' + config.appId;
1883
2522
  }
1884
2523
  function keyBuilderFromType$2(luvio, object) {
1885
2524
  const keyParams = {
1886
- id: object.appId
2525
+ appId: object.appId
1887
2526
  };
1888
2527
  return keyBuilder$a(luvio, keyParams);
1889
2528
  }
@@ -1974,7 +2613,7 @@ function select$6(luvio, params) {
1974
2613
  }
1975
2614
  function keyBuilder$9(luvio, params) {
1976
2615
  return keyBuilder$a(luvio, {
1977
- id: params.urlParams.appIdOrApiName
2616
+ appId: params.urlParams.appIdOrApiName
1978
2617
  });
1979
2618
  }
1980
2619
  function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
@@ -2030,14 +2669,14 @@ const getAppAssets_ConfigPropertyMetadata = [
2030
2669
  generateParamConfigMetadata('templateAssetName', false, 1 /* QueryParameter */, 0 /* String */),
2031
2670
  ];
2032
2671
  const getAppAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getAppAssets_ConfigPropertyMetadata);
2033
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(getAppAssets_ConfigPropertyMetadata);
2672
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$a(getAppAssets_ConfigPropertyMetadata);
2034
2673
  function keyBuilder$8(luvio, config) {
2035
2674
  const resourceParams = createResourceParams$3(config);
2036
2675
  return keyBuilder$9(luvio, resourceParams);
2037
2676
  }
2038
2677
  function typeCheckConfig$3(untrustedConfig) {
2039
2678
  const config = {};
2040
- typeCheckConfig$8(untrustedConfig, config, getAppAssets_ConfigPropertyMetadata);
2679
+ typeCheckConfig$a(untrustedConfig, config, getAppAssets_ConfigPropertyMetadata);
2041
2680
  return config;
2042
2681
  }
2043
2682
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -2086,7 +2725,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
2086
2725
  });
2087
2726
  }
2088
2727
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2089
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
2728
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
2090
2729
  }
2091
2730
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2092
2731
  const { luvio, config } = context;
@@ -2112,7 +2751,7 @@ const getAppAssetsAdapterFactory = (luvio) => function AppFramework__getAppAsset
2112
2751
  };
2113
2752
 
2114
2753
  const TTL$2 = 5000;
2115
- const VERSION$2 = "85c6e0101e9036689e3419fa8307a5c4";
2754
+ const VERSION$2 = "a234a33bacb2228183eba50f4f96aef4";
2116
2755
  function validate$2(obj, path = 'TemplateRepresentation') {
2117
2756
  const v_error = (() => {
2118
2757
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2164,10 +2803,10 @@ function validate$2(obj, path = 'TemplateRepresentation') {
2164
2803
  if (typeof obj_name !== 'string') {
2165
2804
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
2166
2805
  }
2167
- const obj_type = obj.type;
2168
- const path_type = path + '.type';
2169
- if (typeof obj_type !== 'string') {
2170
- return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
2806
+ const obj_templateType = obj.templateType;
2807
+ const path_templateType = path + '.templateType';
2808
+ if (typeof obj_templateType !== 'string') {
2809
+ return new TypeError('Expected "string" but received "' + typeof obj_templateType + '" (at "' + path_templateType + '")');
2171
2810
  }
2172
2811
  const obj_url = obj.url;
2173
2812
  const path_url = path + '.url';
@@ -2217,7 +2856,7 @@ const select$5 = function TemplateRepresentationSelect() {
2217
2856
  kind: 'Scalar'
2218
2857
  },
2219
2858
  {
2220
- name: 'type',
2859
+ name: 'templateType',
2221
2860
  kind: 'Scalar'
2222
2861
  },
2223
2862
  {
@@ -2248,9 +2887,9 @@ function equals$2(existing, incoming) {
2248
2887
  if (!(existing_name === incoming_name)) {
2249
2888
  return false;
2250
2889
  }
2251
- const existing_type = existing.type;
2252
- const incoming_type = incoming.type;
2253
- if (!(existing_type === incoming_type)) {
2890
+ const existing_templateType = existing.templateType;
2891
+ const incoming_templateType = incoming.templateType;
2892
+ if (!(existing_templateType === incoming_templateType)) {
2254
2893
  return false;
2255
2894
  }
2256
2895
  const existing_url = existing.url;
@@ -2438,7 +3077,7 @@ function createResourceRequest$2(config) {
2438
3077
  const adapterName$2 = 'getTemplates';
2439
3078
  const getTemplates_ConfigPropertyMetadata = [];
2440
3079
  const getTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getTemplates_ConfigPropertyMetadata);
2441
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(getTemplates_ConfigPropertyMetadata);
3080
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$a(getTemplates_ConfigPropertyMetadata);
2442
3081
  function keyBuilder$5(luvio, config) {
2443
3082
  createResourceParams$2(config);
2444
3083
  return keyBuilder$6();
@@ -2493,7 +3132,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
2493
3132
  });
2494
3133
  }
2495
3134
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
2496
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3135
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
2497
3136
  }
2498
3137
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
2499
3138
  const { luvio, config } = context;
@@ -2577,14 +3216,14 @@ const getTemplate_ConfigPropertyMetadata = [
2577
3216
  generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2578
3217
  ];
2579
3218
  const getTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getTemplate_ConfigPropertyMetadata);
2580
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$8(getTemplate_ConfigPropertyMetadata);
3219
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$a(getTemplate_ConfigPropertyMetadata);
2581
3220
  function keyBuilder$3(luvio, config) {
2582
3221
  const resourceParams = createResourceParams$1(config);
2583
3222
  return keyBuilder$4(luvio, resourceParams);
2584
3223
  }
2585
3224
  function typeCheckConfig$1(untrustedConfig) {
2586
3225
  const config = {};
2587
- typeCheckConfig$8(untrustedConfig, config, getTemplate_ConfigPropertyMetadata);
3226
+ typeCheckConfig$a(untrustedConfig, config, getTemplate_ConfigPropertyMetadata);
2588
3227
  return config;
2589
3228
  }
2590
3229
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -2633,7 +3272,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
2633
3272
  });
2634
3273
  }
2635
3274
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
2636
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
3275
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
2637
3276
  }
2638
3277
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
2639
3278
  const { luvio, config } = context;
@@ -2802,14 +3441,14 @@ const getTemplateConfig_ConfigPropertyMetadata = [
2802
3441
  generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2803
3442
  ];
2804
3443
  const getTemplateConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTemplateConfig_ConfigPropertyMetadata);
2805
- const createResourceParams = /*#__PURE__*/ createResourceParams$8(getTemplateConfig_ConfigPropertyMetadata);
3444
+ const createResourceParams = /*#__PURE__*/ createResourceParams$a(getTemplateConfig_ConfigPropertyMetadata);
2806
3445
  function keyBuilder(luvio, config) {
2807
3446
  const resourceParams = createResourceParams(config);
2808
3447
  return keyBuilder$1(luvio, resourceParams);
2809
3448
  }
2810
3449
  function typeCheckConfig(untrustedConfig) {
2811
3450
  const config = {};
2812
- typeCheckConfig$8(untrustedConfig, config, getTemplateConfig_ConfigPropertyMetadata);
3451
+ typeCheckConfig$a(untrustedConfig, config, getTemplateConfig_ConfigPropertyMetadata);
2813
3452
  return config;
2814
3453
  }
2815
3454
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -2858,7 +3497,7 @@ function buildNetworkSnapshot(luvio, config, options) {
2858
3497
  });
2859
3498
  }
2860
3499
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
2861
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
3500
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
2862
3501
  }
2863
3502
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
2864
3503
  const { luvio, config } = context;
@@ -2883,4 +3522,4 @@ const getTemplateConfigAdapterFactory = (luvio) => function AppFramework__getTem
2883
3522
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
2884
3523
  };
2885
3524
 
2886
- export { createAppAdapterFactory, deleteAppAdapterFactory, getAppAdapterFactory, getAppAssetsAdapterFactory, getAppsAdapterFactory, getTemplateAdapterFactory, getTemplateConfigAdapterFactory, getTemplatesAdapterFactory };
3525
+ export { createAppAdapterFactory, deleteAppAdapterFactory, getAppActivitiesAdapterFactory, getAppActivityAdapterFactory, getAppAdapterFactory, getAppAssetsAdapterFactory, getAppsAdapterFactory, getTemplateAdapterFactory, getTemplateConfigAdapterFactory, getTemplatesAdapterFactory };