@salesforce/lds-adapters-analytics-app-framework 1.307.0 → 1.308.0-dev2

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 (22) hide show
  1. package/dist/es/es2018/analytics-app-framework.js +909 -319
  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/AssetCollectionRepresentation.d.ts +4 -4
  18. package/dist/es/es2018/types/src/generated/types/TemplateInputRepresentation.d.ts +4 -1
  19. package/package.json +3 -3
  20. package/sfdc/index.js +1013 -318
  21. package/src/raml/api.raml +140 -0
  22. 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 = "e7a1233115fcb9b27ee13367015ae7e0";
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 + '")');
@@ -1196,20 +1239,20 @@ function validate$5(obj, path = 'AppResultRepresentation') {
1196
1239
  })();
1197
1240
  return v_error === undefined ? null : v_error;
1198
1241
  }
1199
- const RepresentationType$5 = 'AppResultRepresentation';
1200
- function keyBuilder$f(luvio, config) {
1201
- return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
1242
+ const RepresentationType$7 = 'AppResultRepresentation';
1243
+ function keyBuilder$l(luvio, config) {
1244
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
1202
1245
  }
1203
- function keyBuilderFromType$4(luvio, object) {
1246
+ function keyBuilderFromType$6(luvio, object) {
1204
1247
  const keyParams = {
1205
1248
  id: object.app.id
1206
1249
  };
1207
- return keyBuilder$f(luvio, keyParams);
1250
+ return keyBuilder$l(luvio, keyParams);
1208
1251
  }
1209
- function normalize$5(input, existing, path, luvio, store, timestamp) {
1252
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
1210
1253
  const input_app = input.app;
1211
1254
  const input_app_id = path.fullPath + '__app';
1212
- input.app = ingest$7(input_app, {
1255
+ input.app = ingest$9(input_app, {
1213
1256
  fullPath: input_app_id,
1214
1257
  propertyName: 'app',
1215
1258
  parent: {
@@ -1221,16 +1264,16 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
1221
1264
  }, luvio, store, timestamp);
1222
1265
  return input;
1223
1266
  }
1224
- const select$b = function AppResultRepresentationSelect() {
1267
+ const select$f = function AppResultRepresentationSelect() {
1225
1268
  return {
1226
1269
  kind: 'Fragment',
1227
- version: VERSION$5,
1270
+ version: VERSION$7,
1228
1271
  private: [],
1229
1272
  selections: [
1230
1273
  {
1231
1274
  name: 'app',
1232
1275
  kind: 'Link',
1233
- fragment: select$e()
1276
+ fragment: select$i()
1234
1277
  },
1235
1278
  {
1236
1279
  name: 'runtimeRequestId',
@@ -1244,7 +1287,7 @@ const select$b = function AppResultRepresentationSelect() {
1244
1287
  ]
1245
1288
  };
1246
1289
  };
1247
- function equals$5(existing, incoming) {
1290
+ function equals$7(existing, incoming) {
1248
1291
  const existing_runtimeRequestId = existing.runtimeRequestId;
1249
1292
  const incoming_runtimeRequestId = incoming.runtimeRequestId;
1250
1293
  if (!(existing_runtimeRequestId === incoming_runtimeRequestId)) {
@@ -1267,42 +1310,42 @@ function equals$5(existing, incoming) {
1267
1310
  }
1268
1311
  return true;
1269
1312
  }
1270
- const ingest$5 = function AppResultRepresentationIngest(input, path, luvio, store, timestamp) {
1313
+ const ingest$7 = function AppResultRepresentationIngest(input, path, luvio, store, timestamp) {
1271
1314
  if (process.env.NODE_ENV !== 'production') {
1272
- const validateError = validate$5(input);
1315
+ const validateError = validate$7(input);
1273
1316
  if (validateError !== null) {
1274
1317
  throw validateError;
1275
1318
  }
1276
1319
  }
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);
1320
+ const key = keyBuilderFromType$6(luvio, input);
1321
+ const ttlToUse = TTL$7;
1322
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "AppFramework", VERSION$7, RepresentationType$7, equals$7);
1280
1323
  return createLink(key);
1281
1324
  };
1282
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1325
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1283
1326
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1284
- const rootKey = keyBuilderFromType$4(luvio, input);
1327
+ const rootKey = keyBuilderFromType$6(luvio, input);
1285
1328
  rootKeySet.set(rootKey, {
1286
1329
  namespace: keyPrefix,
1287
- representationName: RepresentationType$5,
1330
+ representationName: RepresentationType$7,
1288
1331
  mergeable: false
1289
1332
  });
1290
- getTypeCacheKeys$7(rootKeySet, luvio, input.app);
1333
+ getTypeCacheKeys$9(rootKeySet, luvio, input.app);
1291
1334
  }
1292
1335
 
1293
- function select$a(luvio, params) {
1294
- return select$b();
1336
+ function select$e(luvio, params) {
1337
+ return select$f();
1295
1338
  }
1296
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1297
- getTypeCacheKeys$5(storeKeyMap, luvio, response);
1339
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
1340
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
1298
1341
  }
1299
- function ingestSuccess$5(luvio, resourceParams, response) {
1342
+ function ingestSuccess$7(luvio, resourceParams, response) {
1300
1343
  const { body } = response;
1301
- const key = keyBuilderFromType$4(luvio, body);
1302
- luvio.storeIngest(key, ingest$5, body);
1344
+ const key = keyBuilderFromType$6(luvio, body);
1345
+ luvio.storeIngest(key, ingest$7, body);
1303
1346
  const snapshot = luvio.storeLookup({
1304
1347
  recordId: key,
1305
- node: select$a(),
1348
+ node: select$e(),
1306
1349
  variables: {},
1307
1350
  });
1308
1351
  if (process.env.NODE_ENV !== 'production') {
@@ -1313,7 +1356,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
1313
1356
  deepFreeze(snapshot.data);
1314
1357
  return snapshot;
1315
1358
  }
1316
- function createResourceRequest$6(config) {
1359
+ function createResourceRequest$8(config) {
1317
1360
  const headers = {};
1318
1361
  return {
1319
1362
  baseUri: '/services/data/v62.0',
@@ -1327,21 +1370,24 @@ function createResourceRequest$6(config) {
1327
1370
  };
1328
1371
  }
1329
1372
 
1330
- const adapterName$6 = 'createApp';
1373
+ const adapterName$8 = 'createApp';
1331
1374
  const createApp_ConfigPropertyMetadata = [
1332
1375
  generateParamConfigMetadata('assetIcon', false, 2 /* Body */, 0 /* String */),
1333
1376
  generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
1334
1377
  generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
1378
+ generateParamConfigMetadata('logLevel', false, 2 /* Body */, 0 /* String */),
1335
1379
  generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
1380
+ generateParamConfigMetadata('runtimeMethod', false, 2 /* Body */, 0 /* String */),
1336
1381
  generateParamConfigMetadata('templateSourceId', true, 2 /* Body */, 0 /* String */),
1382
+ generateParamConfigMetadata('templateType', false, 2 /* Body */, 0 /* String */),
1337
1383
  generateParamConfigMetadata('templateValues', false, 2 /* Body */, 4 /* Unsupported */),
1338
1384
  generateParamConfigMetadata('templateVersion', false, 2 /* Body */, 0 /* String */),
1339
1385
  ];
1340
- const createApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createApp_ConfigPropertyMetadata);
1341
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(createApp_ConfigPropertyMetadata);
1342
- function typeCheckConfig$6(untrustedConfig) {
1386
+ const createApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createApp_ConfigPropertyMetadata);
1387
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$a(createApp_ConfigPropertyMetadata);
1388
+ function typeCheckConfig$8(untrustedConfig) {
1343
1389
  const config = {};
1344
- typeCheckConfig$8(untrustedConfig, config, createApp_ConfigPropertyMetadata);
1390
+ typeCheckConfig$a(untrustedConfig, config, createApp_ConfigPropertyMetadata);
1345
1391
  const untrustedConfig_templateValues = untrustedConfig.templateValues;
1346
1392
  if (untrustedIsObject(untrustedConfig_templateValues)) {
1347
1393
  const untrustedConfig_templateValues_object = {};
@@ -1359,30 +1405,30 @@ function typeCheckConfig$6(untrustedConfig) {
1359
1405
  }
1360
1406
  return config;
1361
1407
  }
1362
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1408
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1363
1409
  if (!untrustedIsObject(untrustedConfig)) {
1364
1410
  return null;
1365
1411
  }
1366
1412
  if (process.env.NODE_ENV !== 'production') {
1367
1413
  validateConfig(untrustedConfig, configPropertyNames);
1368
1414
  }
1369
- const config = typeCheckConfig$6(untrustedConfig);
1415
+ const config = typeCheckConfig$8(untrustedConfig);
1370
1416
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1371
1417
  return null;
1372
1418
  }
1373
1419
  return config;
1374
1420
  }
1375
- function buildNetworkSnapshot$6(luvio, config, options) {
1376
- const resourceParams = createResourceParams$6(config);
1377
- const request = createResourceRequest$6(resourceParams);
1421
+ function buildNetworkSnapshot$8(luvio, config, options) {
1422
+ const resourceParams = createResourceParams$8(config);
1423
+ const request = createResourceRequest$8(resourceParams);
1378
1424
  return luvio.dispatchResourceRequest(request, options)
1379
1425
  .then((response) => {
1380
1426
  return luvio.handleSuccessResponse(() => {
1381
- const snapshot = ingestSuccess$5(luvio, resourceParams, response);
1427
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
1382
1428
  return luvio.storeBroadcast().then(() => snapshot);
1383
1429
  }, () => {
1384
1430
  const cache = new StoreKeyMap();
1385
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
1431
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1386
1432
  return cache;
1387
1433
  });
1388
1434
  }, (response) => {
@@ -1392,33 +1438,33 @@ function buildNetworkSnapshot$6(luvio, config, options) {
1392
1438
  }
1393
1439
  const createAppAdapterFactory = (luvio) => {
1394
1440
  return function createApp(untrustedConfig) {
1395
- const config = validateAdapterConfig$6(untrustedConfig, createApp_ConfigPropertyNames);
1441
+ const config = validateAdapterConfig$8(untrustedConfig, createApp_ConfigPropertyNames);
1396
1442
  // Invalid or incomplete config
1397
1443
  if (config === null) {
1398
1444
  throw new Error('Invalid config for "createApp"');
1399
1445
  }
1400
- return buildNetworkSnapshot$6(luvio, config);
1446
+ return buildNetworkSnapshot$8(luvio, config);
1401
1447
  };
1402
1448
  };
1403
1449
 
1404
- function keyBuilder$e(luvio, params) {
1405
- return keyBuilder$i(luvio, {
1450
+ function keyBuilder$k(luvio, params) {
1451
+ return keyBuilder$o(luvio, {
1406
1452
  id: params.urlParams.appIdOrApiName
1407
1453
  });
1408
1454
  }
1409
- function getResponseCacheKeys$5(cacheKeyMap, luvio, resourceParams) {
1410
- const key = keyBuilder$e(luvio, resourceParams);
1455
+ function getResponseCacheKeys$7(cacheKeyMap, luvio, resourceParams) {
1456
+ const key = keyBuilder$k(luvio, resourceParams);
1411
1457
  cacheKeyMap.set(key, {
1412
1458
  namespace: keyPrefix,
1413
- representationName: RepresentationType$7,
1459
+ representationName: RepresentationType$9,
1414
1460
  mergeable: false
1415
1461
  });
1416
1462
  }
1417
1463
  function evictSuccess(luvio, resourceParams) {
1418
- const key = keyBuilder$e(luvio, resourceParams);
1464
+ const key = keyBuilder$k(luvio, resourceParams);
1419
1465
  luvio.storeEvict(key);
1420
1466
  }
1421
- function createResourceRequest$5(config) {
1467
+ function createResourceRequest$7(config) {
1422
1468
  const headers = {};
1423
1469
  return {
1424
1470
  baseUri: '/services/data/v62.0',
@@ -1432,33 +1478,33 @@ function createResourceRequest$5(config) {
1432
1478
  };
1433
1479
  }
1434
1480
 
1435
- const adapterName$5 = 'deleteApp';
1481
+ const adapterName$7 = 'deleteApp';
1436
1482
  const deleteApp_ConfigPropertyMetadata = [
1437
1483
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1438
1484
  ];
1439
- const deleteApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, deleteApp_ConfigPropertyMetadata);
1440
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(deleteApp_ConfigPropertyMetadata);
1441
- function typeCheckConfig$5(untrustedConfig) {
1485
+ const deleteApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, deleteApp_ConfigPropertyMetadata);
1486
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$a(deleteApp_ConfigPropertyMetadata);
1487
+ function typeCheckConfig$7(untrustedConfig) {
1442
1488
  const config = {};
1443
- typeCheckConfig$8(untrustedConfig, config, deleteApp_ConfigPropertyMetadata);
1489
+ typeCheckConfig$a(untrustedConfig, config, deleteApp_ConfigPropertyMetadata);
1444
1490
  return config;
1445
1491
  }
1446
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
1492
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1447
1493
  if (!untrustedIsObject(untrustedConfig)) {
1448
1494
  return null;
1449
1495
  }
1450
1496
  if (process.env.NODE_ENV !== 'production') {
1451
1497
  validateConfig(untrustedConfig, configPropertyNames);
1452
1498
  }
1453
- const config = typeCheckConfig$5(untrustedConfig);
1499
+ const config = typeCheckConfig$7(untrustedConfig);
1454
1500
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1455
1501
  return null;
1456
1502
  }
1457
1503
  return config;
1458
1504
  }
1459
- function buildNetworkSnapshot$5(luvio, config, options) {
1460
- const resourceParams = createResourceParams$5(config);
1461
- const request = createResourceRequest$5(resourceParams);
1505
+ function buildNetworkSnapshot$7(luvio, config, options) {
1506
+ const resourceParams = createResourceParams$7(config);
1507
+ const request = createResourceRequest$7(resourceParams);
1462
1508
  return luvio.dispatchResourceRequest(request, options)
1463
1509
  .then(() => {
1464
1510
  return luvio.handleSuccessResponse(() => {
@@ -1466,7 +1512,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
1466
1512
  return luvio.storeBroadcast();
1467
1513
  }, () => {
1468
1514
  const cache = new StoreKeyMap();
1469
- getResponseCacheKeys$5(cache, luvio, resourceParams);
1515
+ getResponseCacheKeys$7(cache, luvio, resourceParams);
1470
1516
  return cache;
1471
1517
  });
1472
1518
  }, (response) => {
@@ -1476,33 +1522,33 @@ function buildNetworkSnapshot$5(luvio, config, options) {
1476
1522
  }
1477
1523
  const deleteAppAdapterFactory = (luvio) => {
1478
1524
  return function AppFrameworkdeleteApp(untrustedConfig) {
1479
- const config = validateAdapterConfig$5(untrustedConfig, deleteApp_ConfigPropertyNames);
1525
+ const config = validateAdapterConfig$7(untrustedConfig, deleteApp_ConfigPropertyNames);
1480
1526
  // Invalid or incomplete config
1481
1527
  if (config === null) {
1482
- throw new Error(`Invalid config for "${adapterName$5}"`);
1528
+ throw new Error(`Invalid config for "${adapterName$7}"`);
1483
1529
  }
1484
- return buildNetworkSnapshot$5(luvio, config);
1530
+ return buildNetworkSnapshot$7(luvio, config);
1485
1531
  };
1486
1532
  };
1487
1533
 
1488
- function select$9(luvio, params) {
1489
- return select$e();
1534
+ function select$d(luvio, params) {
1535
+ return select$i();
1490
1536
  }
1491
- function keyBuilder$d(luvio, params) {
1492
- return keyBuilder$i(luvio, {
1537
+ function keyBuilder$j(luvio, params) {
1538
+ return keyBuilder$o(luvio, {
1493
1539
  id: params.urlParams.appIdOrApiName
1494
1540
  });
1495
1541
  }
1496
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1497
- getTypeCacheKeys$7(storeKeyMap, luvio, response);
1542
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1543
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
1498
1544
  }
1499
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1545
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1500
1546
  const { body } = response;
1501
- const key = keyBuilder$d(luvio, resourceParams);
1502
- luvio.storeIngest(key, ingest$7, body);
1547
+ const key = keyBuilder$j(luvio, resourceParams);
1548
+ luvio.storeIngest(key, ingest$9, body);
1503
1549
  const snapshot = luvio.storeLookup({
1504
1550
  recordId: key,
1505
- node: select$9(),
1551
+ node: select$d(),
1506
1552
  variables: {},
1507
1553
  }, snapshotRefresh);
1508
1554
  if (process.env.NODE_ENV !== 'production') {
@@ -1513,19 +1559,19 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1513
1559
  deepFreeze(snapshot.data);
1514
1560
  return snapshot;
1515
1561
  }
1516
- function ingestError$4(luvio, params, error, snapshotRefresh) {
1517
- const key = keyBuilder$d(luvio, params);
1562
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
1563
+ const key = keyBuilder$j(luvio, params);
1518
1564
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1519
1565
  const storeMetadataParams = {
1520
- ttl: TTL$7,
1566
+ ttl: TTL$9,
1521
1567
  namespace: keyPrefix,
1522
- version: VERSION$7,
1523
- representationName: RepresentationType$7
1568
+ version: VERSION$9,
1569
+ representationName: RepresentationType$9
1524
1570
  };
1525
1571
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1526
1572
  return errorSnapshot;
1527
1573
  }
1528
- function createResourceRequest$4(config) {
1574
+ function createResourceRequest$6(config) {
1529
1575
  const headers = {};
1530
1576
  return {
1531
1577
  baseUri: '/services/data/v62.0',
@@ -1539,145 +1585,689 @@ function createResourceRequest$4(config) {
1539
1585
  };
1540
1586
  }
1541
1587
 
1542
- const adapterName$4 = 'getApp';
1588
+ const adapterName$6 = 'getApp';
1543
1589
  const getApp_ConfigPropertyMetadata = [
1544
1590
  generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1545
1591
  ];
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);
1592
+ const getApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getApp_ConfigPropertyMetadata);
1593
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$a(getApp_ConfigPropertyMetadata);
1594
+ function keyBuilder$i(luvio, config) {
1595
+ const resourceParams = createResourceParams$6(config);
1596
+ return keyBuilder$j(luvio, resourceParams);
1551
1597
  }
1552
- function typeCheckConfig$4(untrustedConfig) {
1598
+ function typeCheckConfig$6(untrustedConfig) {
1553
1599
  const config = {};
1554
- typeCheckConfig$8(untrustedConfig, config, getApp_ConfigPropertyMetadata);
1600
+ typeCheckConfig$a(untrustedConfig, config, getApp_ConfigPropertyMetadata);
1555
1601
  return config;
1556
1602
  }
1557
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1603
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1558
1604
  if (!untrustedIsObject(untrustedConfig)) {
1559
1605
  return null;
1560
1606
  }
1561
1607
  if (process.env.NODE_ENV !== 'production') {
1562
1608
  validateConfig(untrustedConfig, configPropertyNames);
1563
1609
  }
1564
- const config = typeCheckConfig$4(untrustedConfig);
1610
+ const config = typeCheckConfig$6(untrustedConfig);
1565
1611
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1566
1612
  return null;
1567
1613
  }
1568
1614
  return config;
1569
1615
  }
1570
- function adapterFragment$4(luvio, config) {
1571
- createResourceParams$4(config);
1572
- return select$9();
1616
+ function adapterFragment$6(luvio, config) {
1617
+ createResourceParams$6(config);
1618
+ return select$d();
1573
1619
  }
1574
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
1575
- const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
1620
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
1621
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
1576
1622
  config,
1577
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1623
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1578
1624
  });
1579
1625
  return luvio.storeBroadcast().then(() => snapshot);
1580
1626
  }
1581
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
1582
- const snapshot = ingestError$4(luvio, resourceParams, response, {
1627
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
1628
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
1583
1629
  config,
1584
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1630
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1585
1631
  });
1586
1632
  return luvio.storeBroadcast().then(() => snapshot);
1587
1633
  }
1588
- function buildNetworkSnapshot$4(luvio, config, options) {
1589
- const resourceParams = createResourceParams$4(config);
1590
- const request = createResourceRequest$4(resourceParams);
1634
+ function buildNetworkSnapshot$6(luvio, config, options) {
1635
+ const resourceParams = createResourceParams$6(config);
1636
+ const request = createResourceRequest$6(resourceParams);
1591
1637
  return luvio.dispatchResourceRequest(request, options)
1592
1638
  .then((response) => {
1593
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
1639
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
1594
1640
  const cache = new StoreKeyMap();
1595
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
1641
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
1596
1642
  return cache;
1597
1643
  });
1598
1644
  }, (response) => {
1599
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
1645
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
1600
1646
  });
1601
1647
  }
1602
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
1603
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
1648
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
1649
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
1604
1650
  }
1605
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
1651
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
1606
1652
  const { luvio, config } = context;
1607
1653
  const selector = {
1608
- recordId: keyBuilder$c(luvio, config),
1609
- node: adapterFragment$4(luvio, config),
1654
+ recordId: keyBuilder$i(luvio, config),
1655
+ node: adapterFragment$6(luvio, config),
1610
1656
  variables: {},
1611
1657
  };
1612
1658
  const cacheSnapshot = storeLookup(selector, {
1613
1659
  config,
1614
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1660
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1615
1661
  });
1616
1662
  return cacheSnapshot;
1617
1663
  }
1618
1664
  const getAppAdapterFactory = (luvio) => function AppFramework__getApp(untrustedConfig, requestContext) {
1619
- const config = validateAdapterConfig$4(untrustedConfig, getApp_ConfigPropertyNames);
1665
+ const config = validateAdapterConfig$6(untrustedConfig, getApp_ConfigPropertyNames);
1620
1666
  // Invalid or incomplete config
1621
1667
  if (config === null) {
1622
1668
  return null;
1623
1669
  }
1624
1670
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1625
- buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
1671
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
1626
1672
  };
1627
1673
 
1628
- const TTL$4 = 5000;
1629
- const VERSION$4 = "522326f05ee6a404b50ed781361a75b1";
1630
- function validate$4(obj, path = 'AssetRepresentation') {
1674
+ const TTL$6 = 5000;
1675
+ const VERSION$6 = "b8e879a936b5069ec247355c66198ca7";
1676
+ function validate$6(obj, path = 'AppActivityItemRepresentation') {
1631
1677
  const v_error = (() => {
1632
1678
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1633
1679
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1634
1680
  }
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 + '")');
1639
- }
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;
1681
+ const obj_activityType = obj.activityType;
1682
+ const path_activityType = path + '.activityType';
1683
+ if (typeof obj_activityType !== 'string') {
1684
+ return new TypeError('Expected "string" but received "' + typeof obj_activityType + '" (at "' + path_activityType + '")');
1650
1685
  }
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;
1686
+ const obj_appId = obj.appId;
1687
+ const path_appId = path + '.appId';
1688
+ if (typeof obj_appId !== 'string') {
1689
+ return new TypeError('Expected "string" but received "' + typeof obj_appId + '" (at "' + path_appId + '")');
1659
1690
  }
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);
1691
+ const obj_id = obj.id;
1692
+ const path_id = path + '.id';
1693
+ if (typeof obj_id !== 'string') {
1694
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1665
1695
  }
1666
- const obj_assetIdOrName3 = obj.assetIdOrName3;
1667
- const path_assetIdOrName3 = path + '.assetIdOrName3';
1668
- let obj_assetIdOrName3_union0 = null;
1669
- const obj_assetIdOrName3_union0_error = (() => {
1670
- if (typeof obj_assetIdOrName3 !== 'string') {
1671
- return new TypeError('Expected "string" but received "' + typeof obj_assetIdOrName3 + '" (at "' + path_assetIdOrName3 + '")');
1696
+ const obj_runtimeRequest = obj.runtimeRequest;
1697
+ const path_runtimeRequest = path + '.runtimeRequest';
1698
+ if (typeof obj_runtimeRequest !== 'object' || ArrayIsArray(obj_runtimeRequest) || obj_runtimeRequest === null) {
1699
+ return new TypeError('Expected "object" but received "' + typeof obj_runtimeRequest + '" (at "' + path_runtimeRequest + '")');
1700
+ }
1701
+ const obj_runtimeRequest_keys = ObjectKeys(obj_runtimeRequest);
1702
+ for (let i = 0; i < obj_runtimeRequest_keys.length; i++) {
1703
+ const key = obj_runtimeRequest_keys[i];
1704
+ const obj_runtimeRequest_prop = obj_runtimeRequest[key];
1705
+ const path_runtimeRequest_prop = path_runtimeRequest + '["' + key + '"]';
1706
+ if (obj_runtimeRequest_prop === undefined) {
1707
+ return new TypeError('Expected "defined" but received "' + typeof obj_runtimeRequest_prop + '" (at "' + path_runtimeRequest_prop + '")');
1672
1708
  }
1673
- })();
1674
- if (obj_assetIdOrName3_union0_error != null) {
1675
- obj_assetIdOrName3_union0 = obj_assetIdOrName3_union0_error.message;
1676
1709
  }
1677
- let obj_assetIdOrName3_union1 = null;
1678
- const obj_assetIdOrName3_union1_error = (() => {
1679
- if (obj_assetIdOrName3 !== null) {
1680
- return new TypeError('Expected "null" but received "' + typeof obj_assetIdOrName3 + '" (at "' + path_assetIdOrName3 + '")');
1710
+ const obj_url = obj.url;
1711
+ const path_url = path + '.url';
1712
+ if (typeof obj_url !== 'string') {
1713
+ return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
1714
+ }
1715
+ })();
1716
+ return v_error === undefined ? null : v_error;
1717
+ }
1718
+ const RepresentationType$6 = 'AppActivityItemRepresentation';
1719
+ function keyBuilder$h(luvio, config) {
1720
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.appId + ':' + config.id;
1721
+ }
1722
+ function keyBuilderFromType$5(luvio, object) {
1723
+ const keyParams = {
1724
+ appId: object.appId,
1725
+ id: object.id
1726
+ };
1727
+ return keyBuilder$h(luvio, keyParams);
1728
+ }
1729
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
1730
+ return input;
1731
+ }
1732
+ const select$c = function AppActivityItemRepresentationSelect() {
1733
+ return {
1734
+ kind: 'Fragment',
1735
+ version: VERSION$6,
1736
+ private: [],
1737
+ selections: [
1738
+ {
1739
+ name: 'activityType',
1740
+ kind: 'Scalar'
1741
+ },
1742
+ {
1743
+ name: 'appId',
1744
+ kind: 'Scalar'
1745
+ },
1746
+ {
1747
+ name: 'id',
1748
+ kind: 'Scalar'
1749
+ },
1750
+ {
1751
+ name: 'runtimeRequest',
1752
+ kind: 'Object',
1753
+ // any
1754
+ },
1755
+ {
1756
+ name: 'url',
1757
+ kind: 'Scalar'
1758
+ }
1759
+ ]
1760
+ };
1761
+ };
1762
+ function equals$6(existing, incoming) {
1763
+ const existing_activityType = existing.activityType;
1764
+ const incoming_activityType = incoming.activityType;
1765
+ if (!(existing_activityType === incoming_activityType)) {
1766
+ return false;
1767
+ }
1768
+ const existing_appId = existing.appId;
1769
+ const incoming_appId = incoming.appId;
1770
+ if (!(existing_appId === incoming_appId)) {
1771
+ return false;
1772
+ }
1773
+ const existing_id = existing.id;
1774
+ const incoming_id = incoming.id;
1775
+ if (!(existing_id === incoming_id)) {
1776
+ return false;
1777
+ }
1778
+ const existing_url = existing.url;
1779
+ const incoming_url = incoming.url;
1780
+ if (!(existing_url === incoming_url)) {
1781
+ return false;
1782
+ }
1783
+ const existing_runtimeRequest = existing.runtimeRequest;
1784
+ const incoming_runtimeRequest = incoming.runtimeRequest;
1785
+ const equals_runtimeRequest_props = equalsObject(existing_runtimeRequest, incoming_runtimeRequest, (existing_runtimeRequest_prop, incoming_runtimeRequest_prop) => {
1786
+ if (JSONStringify(incoming_runtimeRequest_prop) !== JSONStringify(existing_runtimeRequest_prop)) {
1787
+ return false;
1788
+ }
1789
+ });
1790
+ if (equals_runtimeRequest_props === false) {
1791
+ return false;
1792
+ }
1793
+ return true;
1794
+ }
1795
+ const ingest$6 = function AppActivityItemRepresentationIngest(input, path, luvio, store, timestamp) {
1796
+ if (process.env.NODE_ENV !== 'production') {
1797
+ const validateError = validate$6(input);
1798
+ if (validateError !== null) {
1799
+ throw validateError;
1800
+ }
1801
+ }
1802
+ const key = keyBuilderFromType$5(luvio, input);
1803
+ const ttlToUse = TTL$6;
1804
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "AppFramework", VERSION$6, RepresentationType$6, equals$6);
1805
+ return createLink(key);
1806
+ };
1807
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1808
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1809
+ const rootKey = keyBuilderFromType$5(luvio, input);
1810
+ rootKeySet.set(rootKey, {
1811
+ namespace: keyPrefix,
1812
+ representationName: RepresentationType$6,
1813
+ mergeable: false
1814
+ });
1815
+ }
1816
+
1817
+ const TTL$5 = 5000;
1818
+ const VERSION$5 = "e0f049ec23678e696fb7c592c9641c65";
1819
+ function validate$5(obj, path = 'AppActivityCollectionRepresentation') {
1820
+ const v_error = (() => {
1821
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1822
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1823
+ }
1824
+ const obj_appId = obj.appId;
1825
+ const path_appId = path + '.appId';
1826
+ if (typeof obj_appId !== 'string') {
1827
+ return new TypeError('Expected "string" but received "' + typeof obj_appId + '" (at "' + path_appId + '")');
1828
+ }
1829
+ const obj_items = obj.items;
1830
+ const path_items = path + '.items';
1831
+ if (!ArrayIsArray(obj_items)) {
1832
+ return new TypeError('Expected "array" but received "' + typeof obj_items + '" (at "' + path_items + '")');
1833
+ }
1834
+ for (let i = 0; i < obj_items.length; i++) {
1835
+ const obj_items_item = obj_items[i];
1836
+ const path_items_item = path_items + '[' + i + ']';
1837
+ if (typeof obj_items_item !== 'object') {
1838
+ return new TypeError('Expected "object" but received "' + typeof obj_items_item + '" (at "' + path_items_item + '")');
1839
+ }
1840
+ }
1841
+ })();
1842
+ return v_error === undefined ? null : v_error;
1843
+ }
1844
+ const RepresentationType$5 = 'AppActivityCollectionRepresentation';
1845
+ function keyBuilder$g(luvio, config) {
1846
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.appId;
1847
+ }
1848
+ function keyBuilderFromType$4(luvio, object) {
1849
+ const keyParams = {
1850
+ appId: object.appId
1851
+ };
1852
+ return keyBuilder$g(luvio, keyParams);
1853
+ }
1854
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
1855
+ const input_items = input.items;
1856
+ const input_items_id = path.fullPath + '__items';
1857
+ for (let i = 0; i < input_items.length; i++) {
1858
+ const input_items_item = input_items[i];
1859
+ let input_items_item_id = input_items_id + '__' + i;
1860
+ input_items[i] = ingest$6(input_items_item, {
1861
+ fullPath: input_items_item_id,
1862
+ propertyName: i,
1863
+ parent: {
1864
+ data: input,
1865
+ key: path.fullPath,
1866
+ existing: existing,
1867
+ },
1868
+ ttl: path.ttl
1869
+ }, luvio, store, timestamp);
1870
+ }
1871
+ return input;
1872
+ }
1873
+ const select$b = function AppActivityCollectionRepresentationSelect() {
1874
+ return {
1875
+ kind: 'Fragment',
1876
+ version: VERSION$5,
1877
+ private: [],
1878
+ selections: [
1879
+ {
1880
+ name: 'appId',
1881
+ kind: 'Scalar'
1882
+ },
1883
+ {
1884
+ name: 'items',
1885
+ kind: 'Link',
1886
+ plural: true,
1887
+ fragment: select$c()
1888
+ }
1889
+ ]
1890
+ };
1891
+ };
1892
+ function equals$5(existing, incoming) {
1893
+ const existing_appId = existing.appId;
1894
+ const incoming_appId = incoming.appId;
1895
+ if (!(existing_appId === incoming_appId)) {
1896
+ return false;
1897
+ }
1898
+ const existing_items = existing.items;
1899
+ const incoming_items = incoming.items;
1900
+ const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
1901
+ if (!(existing_items_item.__ref === incoming_items_item.__ref)) {
1902
+ return false;
1903
+ }
1904
+ });
1905
+ if (equals_items_items === false) {
1906
+ return false;
1907
+ }
1908
+ return true;
1909
+ }
1910
+ const ingest$5 = function AppActivityCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1911
+ if (process.env.NODE_ENV !== 'production') {
1912
+ const validateError = validate$5(input);
1913
+ if (validateError !== null) {
1914
+ throw validateError;
1915
+ }
1916
+ }
1917
+ const key = keyBuilderFromType$4(luvio, input);
1918
+ const ttlToUse = TTL$5;
1919
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "AppFramework", VERSION$5, RepresentationType$5, equals$5);
1920
+ return createLink(key);
1921
+ };
1922
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1923
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1924
+ const rootKey = keyBuilderFromType$4(luvio, input);
1925
+ rootKeySet.set(rootKey, {
1926
+ namespace: keyPrefix,
1927
+ representationName: RepresentationType$5,
1928
+ mergeable: false
1929
+ });
1930
+ const input_items_length = input.items.length;
1931
+ for (let i = 0; i < input_items_length; i++) {
1932
+ getTypeCacheKeys$6(rootKeySet, luvio, input.items[i]);
1933
+ }
1934
+ }
1935
+
1936
+ function select$a(luvio, params) {
1937
+ return select$b();
1938
+ }
1939
+ function keyBuilder$f(luvio, params) {
1940
+ return keyBuilder$g(luvio, {
1941
+ appId: params.urlParams.appIdOrApiName
1942
+ });
1943
+ }
1944
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1945
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
1946
+ }
1947
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
1948
+ const { body } = response;
1949
+ const key = keyBuilder$f(luvio, resourceParams);
1950
+ luvio.storeIngest(key, ingest$5, body);
1951
+ const snapshot = luvio.storeLookup({
1952
+ recordId: key,
1953
+ node: select$a(),
1954
+ variables: {},
1955
+ }, snapshotRefresh);
1956
+ if (process.env.NODE_ENV !== 'production') {
1957
+ if (snapshot.state !== 'Fulfilled') {
1958
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1959
+ }
1960
+ }
1961
+ deepFreeze(snapshot.data);
1962
+ return snapshot;
1963
+ }
1964
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
1965
+ const key = keyBuilder$f(luvio, params);
1966
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1967
+ const storeMetadataParams = {
1968
+ ttl: TTL$5,
1969
+ namespace: keyPrefix,
1970
+ version: VERSION$5,
1971
+ representationName: RepresentationType$5
1972
+ };
1973
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1974
+ return errorSnapshot;
1975
+ }
1976
+ function createResourceRequest$5(config) {
1977
+ const headers = {};
1978
+ return {
1979
+ baseUri: '/services/data/v62.0',
1980
+ basePath: '/app-framework/apps/' + config.urlParams.appIdOrApiName + '/activities',
1981
+ method: 'get',
1982
+ body: null,
1983
+ urlParams: config.urlParams,
1984
+ queryParams: {},
1985
+ headers,
1986
+ priority: 'normal',
1987
+ };
1988
+ }
1989
+
1990
+ const adapterName$5 = 'getAppActivities';
1991
+ const getAppActivities_ConfigPropertyMetadata = [
1992
+ generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1993
+ ];
1994
+ const getAppActivities_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getAppActivities_ConfigPropertyMetadata);
1995
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$a(getAppActivities_ConfigPropertyMetadata);
1996
+ function keyBuilder$e(luvio, config) {
1997
+ const resourceParams = createResourceParams$5(config);
1998
+ return keyBuilder$f(luvio, resourceParams);
1999
+ }
2000
+ function typeCheckConfig$5(untrustedConfig) {
2001
+ const config = {};
2002
+ typeCheckConfig$a(untrustedConfig, config, getAppActivities_ConfigPropertyMetadata);
2003
+ return config;
2004
+ }
2005
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
2006
+ if (!untrustedIsObject(untrustedConfig)) {
2007
+ return null;
2008
+ }
2009
+ if (process.env.NODE_ENV !== 'production') {
2010
+ validateConfig(untrustedConfig, configPropertyNames);
2011
+ }
2012
+ const config = typeCheckConfig$5(untrustedConfig);
2013
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2014
+ return null;
2015
+ }
2016
+ return config;
2017
+ }
2018
+ function adapterFragment$5(luvio, config) {
2019
+ createResourceParams$5(config);
2020
+ return select$a();
2021
+ }
2022
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
2023
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
2024
+ config,
2025
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2026
+ });
2027
+ return luvio.storeBroadcast().then(() => snapshot);
2028
+ }
2029
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
2030
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
2031
+ config,
2032
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2033
+ });
2034
+ return luvio.storeBroadcast().then(() => snapshot);
2035
+ }
2036
+ function buildNetworkSnapshot$5(luvio, config, options) {
2037
+ const resourceParams = createResourceParams$5(config);
2038
+ const request = createResourceRequest$5(resourceParams);
2039
+ return luvio.dispatchResourceRequest(request, options)
2040
+ .then((response) => {
2041
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
2042
+ const cache = new StoreKeyMap();
2043
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
2044
+ return cache;
2045
+ });
2046
+ }, (response) => {
2047
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
2048
+ });
2049
+ }
2050
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
2051
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
2052
+ }
2053
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
2054
+ const { luvio, config } = context;
2055
+ const selector = {
2056
+ recordId: keyBuilder$e(luvio, config),
2057
+ node: adapterFragment$5(luvio, config),
2058
+ variables: {},
2059
+ };
2060
+ const cacheSnapshot = storeLookup(selector, {
2061
+ config,
2062
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2063
+ });
2064
+ return cacheSnapshot;
2065
+ }
2066
+ const getAppActivitiesAdapterFactory = (luvio) => function AppFramework__getAppActivities(untrustedConfig, requestContext) {
2067
+ const config = validateAdapterConfig$5(untrustedConfig, getAppActivities_ConfigPropertyNames);
2068
+ // Invalid or incomplete config
2069
+ if (config === null) {
2070
+ return null;
2071
+ }
2072
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2073
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
2074
+ };
2075
+
2076
+ function select$9(luvio, params) {
2077
+ return select$c();
2078
+ }
2079
+ function keyBuilder$d(luvio, params) {
2080
+ return keyBuilder$h(luvio, {
2081
+ appId: params.urlParams.appIdOrApiName,
2082
+ id: params.urlParams.id
2083
+ });
2084
+ }
2085
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2086
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
2087
+ }
2088
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2089
+ const { body } = response;
2090
+ const key = keyBuilder$d(luvio, resourceParams);
2091
+ luvio.storeIngest(key, ingest$6, body);
2092
+ const snapshot = luvio.storeLookup({
2093
+ recordId: key,
2094
+ node: select$9(),
2095
+ variables: {},
2096
+ }, snapshotRefresh);
2097
+ if (process.env.NODE_ENV !== 'production') {
2098
+ if (snapshot.state !== 'Fulfilled') {
2099
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2100
+ }
2101
+ }
2102
+ deepFreeze(snapshot.data);
2103
+ return snapshot;
2104
+ }
2105
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
2106
+ const key = keyBuilder$d(luvio, params);
2107
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2108
+ const storeMetadataParams = {
2109
+ ttl: TTL$6,
2110
+ namespace: keyPrefix,
2111
+ version: VERSION$6,
2112
+ representationName: RepresentationType$6
2113
+ };
2114
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2115
+ return errorSnapshot;
2116
+ }
2117
+ function createResourceRequest$4(config) {
2118
+ const headers = {};
2119
+ return {
2120
+ baseUri: '/services/data/v62.0',
2121
+ basePath: '/app-framework/apps/' + config.urlParams.appIdOrApiName + '/activities/' + config.urlParams.id + '',
2122
+ method: 'get',
2123
+ body: null,
2124
+ urlParams: config.urlParams,
2125
+ queryParams: {},
2126
+ headers,
2127
+ priority: 'normal',
2128
+ };
2129
+ }
2130
+
2131
+ const adapterName$4 = 'getAppActivity';
2132
+ const getAppActivity_ConfigPropertyMetadata = [
2133
+ generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2134
+ generateParamConfigMetadata('id', true, 0 /* UrlParameter */, 0 /* String */),
2135
+ ];
2136
+ const getAppActivity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAppActivity_ConfigPropertyMetadata);
2137
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$a(getAppActivity_ConfigPropertyMetadata);
2138
+ function keyBuilder$c(luvio, config) {
2139
+ const resourceParams = createResourceParams$4(config);
2140
+ return keyBuilder$d(luvio, resourceParams);
2141
+ }
2142
+ function typeCheckConfig$4(untrustedConfig) {
2143
+ const config = {};
2144
+ typeCheckConfig$a(untrustedConfig, config, getAppActivity_ConfigPropertyMetadata);
2145
+ return config;
2146
+ }
2147
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2148
+ if (!untrustedIsObject(untrustedConfig)) {
2149
+ return null;
2150
+ }
2151
+ if (process.env.NODE_ENV !== 'production') {
2152
+ validateConfig(untrustedConfig, configPropertyNames);
2153
+ }
2154
+ const config = typeCheckConfig$4(untrustedConfig);
2155
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2156
+ return null;
2157
+ }
2158
+ return config;
2159
+ }
2160
+ function adapterFragment$4(luvio, config) {
2161
+ createResourceParams$4(config);
2162
+ return select$9();
2163
+ }
2164
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
2165
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2166
+ config,
2167
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2168
+ });
2169
+ return luvio.storeBroadcast().then(() => snapshot);
2170
+ }
2171
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
2172
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
2173
+ config,
2174
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2175
+ });
2176
+ return luvio.storeBroadcast().then(() => snapshot);
2177
+ }
2178
+ function buildNetworkSnapshot$4(luvio, config, options) {
2179
+ const resourceParams = createResourceParams$4(config);
2180
+ const request = createResourceRequest$4(resourceParams);
2181
+ return luvio.dispatchResourceRequest(request, options)
2182
+ .then((response) => {
2183
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
2184
+ const cache = new StoreKeyMap();
2185
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2186
+ return cache;
2187
+ });
2188
+ }, (response) => {
2189
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
2190
+ });
2191
+ }
2192
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
2193
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2194
+ }
2195
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2196
+ const { luvio, config } = context;
2197
+ const selector = {
2198
+ recordId: keyBuilder$c(luvio, config),
2199
+ node: adapterFragment$4(luvio, config),
2200
+ variables: {},
2201
+ };
2202
+ const cacheSnapshot = storeLookup(selector, {
2203
+ config,
2204
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2205
+ });
2206
+ return cacheSnapshot;
2207
+ }
2208
+ const getAppActivityAdapterFactory = (luvio) => function AppFramework__getAppActivity(untrustedConfig, requestContext) {
2209
+ const config = validateAdapterConfig$4(untrustedConfig, getAppActivity_ConfigPropertyNames);
2210
+ // Invalid or incomplete config
2211
+ if (config === null) {
2212
+ return null;
2213
+ }
2214
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2215
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
2216
+ };
2217
+
2218
+ const TTL$4 = 5000;
2219
+ const VERSION$4 = "522326f05ee6a404b50ed781361a75b1";
2220
+ function validate$4(obj, path = 'AssetRepresentation') {
2221
+ const v_error = (() => {
2222
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2223
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2224
+ }
2225
+ const obj_assetIdOrName = obj.assetIdOrName;
2226
+ const path_assetIdOrName = path + '.assetIdOrName';
2227
+ if (typeof obj_assetIdOrName !== 'string') {
2228
+ return new TypeError('Expected "string" but received "' + typeof obj_assetIdOrName + '" (at "' + path_assetIdOrName + '")');
2229
+ }
2230
+ const obj_assetIdOrName2 = obj.assetIdOrName2;
2231
+ const path_assetIdOrName2 = path + '.assetIdOrName2';
2232
+ let obj_assetIdOrName2_union0 = null;
2233
+ const obj_assetIdOrName2_union0_error = (() => {
2234
+ if (typeof obj_assetIdOrName2 !== 'string') {
2235
+ return new TypeError('Expected "string" but received "' + typeof obj_assetIdOrName2 + '" (at "' + path_assetIdOrName2 + '")');
2236
+ }
2237
+ })();
2238
+ if (obj_assetIdOrName2_union0_error != null) {
2239
+ obj_assetIdOrName2_union0 = obj_assetIdOrName2_union0_error.message;
2240
+ }
2241
+ let obj_assetIdOrName2_union1 = null;
2242
+ const obj_assetIdOrName2_union1_error = (() => {
2243
+ if (obj_assetIdOrName2 !== null) {
2244
+ return new TypeError('Expected "null" but received "' + typeof obj_assetIdOrName2 + '" (at "' + path_assetIdOrName2 + '")');
2245
+ }
2246
+ })();
2247
+ if (obj_assetIdOrName2_union1_error != null) {
2248
+ obj_assetIdOrName2_union1 = obj_assetIdOrName2_union1_error.message;
2249
+ }
2250
+ if (obj_assetIdOrName2_union0 && obj_assetIdOrName2_union1) {
2251
+ let message = 'Object doesn\'t match union (at "' + path_assetIdOrName2 + '")';
2252
+ message += '\n' + obj_assetIdOrName2_union0.split('\n').map((line) => '\t' + line).join('\n');
2253
+ message += '\n' + obj_assetIdOrName2_union1.split('\n').map((line) => '\t' + line).join('\n');
2254
+ return new TypeError(message);
2255
+ }
2256
+ const obj_assetIdOrName3 = obj.assetIdOrName3;
2257
+ const path_assetIdOrName3 = path + '.assetIdOrName3';
2258
+ let obj_assetIdOrName3_union0 = null;
2259
+ const obj_assetIdOrName3_union0_error = (() => {
2260
+ if (typeof obj_assetIdOrName3 !== 'string') {
2261
+ return new TypeError('Expected "string" but received "' + typeof obj_assetIdOrName3 + '" (at "' + path_assetIdOrName3 + '")');
2262
+ }
2263
+ })();
2264
+ if (obj_assetIdOrName3_union0_error != null) {
2265
+ obj_assetIdOrName3_union0 = obj_assetIdOrName3_union0_error.message;
2266
+ }
2267
+ let obj_assetIdOrName3_union1 = null;
2268
+ const obj_assetIdOrName3_union1_error = (() => {
2269
+ if (obj_assetIdOrName3 !== null) {
2270
+ return new TypeError('Expected "null" but received "' + typeof obj_assetIdOrName3 + '" (at "' + path_assetIdOrName3 + '")');
1681
2271
  }
1682
2272
  })();
1683
2273
  if (obj_assetIdOrName3_union1_error != null) {
@@ -1851,7 +2441,7 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1851
2441
  }
1852
2442
 
1853
2443
  const TTL$3 = 5000;
1854
- const VERSION$3 = "484e47e46cb53f96b32bb3c8c9de8053";
2444
+ const VERSION$3 = "1a10175fcc2ad43823e47bfbbdf917f6";
1855
2445
  function validate$3(obj, path = 'AssetCollectionRepresentation') {
1856
2446
  const v_error = (() => {
1857
2447
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1879,11 +2469,11 @@ function validate$3(obj, path = 'AssetCollectionRepresentation') {
1879
2469
  }
1880
2470
  const RepresentationType$3 = 'AssetCollectionRepresentation';
1881
2471
  function keyBuilder$a(luvio, config) {
1882
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
2472
+ return keyPrefix + '::' + RepresentationType$3 + ':' + config.appId;
1883
2473
  }
1884
2474
  function keyBuilderFromType$2(luvio, object) {
1885
2475
  const keyParams = {
1886
- id: object.appId
2476
+ appId: object.appId
1887
2477
  };
1888
2478
  return keyBuilder$a(luvio, keyParams);
1889
2479
  }
@@ -1974,7 +2564,7 @@ function select$6(luvio, params) {
1974
2564
  }
1975
2565
  function keyBuilder$9(luvio, params) {
1976
2566
  return keyBuilder$a(luvio, {
1977
- id: params.urlParams.appIdOrApiName
2567
+ appId: params.urlParams.appIdOrApiName
1978
2568
  });
1979
2569
  }
1980
2570
  function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
@@ -2030,14 +2620,14 @@ const getAppAssets_ConfigPropertyMetadata = [
2030
2620
  generateParamConfigMetadata('templateAssetName', false, 1 /* QueryParameter */, 0 /* String */),
2031
2621
  ];
2032
2622
  const getAppAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getAppAssets_ConfigPropertyMetadata);
2033
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(getAppAssets_ConfigPropertyMetadata);
2623
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$a(getAppAssets_ConfigPropertyMetadata);
2034
2624
  function keyBuilder$8(luvio, config) {
2035
2625
  const resourceParams = createResourceParams$3(config);
2036
2626
  return keyBuilder$9(luvio, resourceParams);
2037
2627
  }
2038
2628
  function typeCheckConfig$3(untrustedConfig) {
2039
2629
  const config = {};
2040
- typeCheckConfig$8(untrustedConfig, config, getAppAssets_ConfigPropertyMetadata);
2630
+ typeCheckConfig$a(untrustedConfig, config, getAppAssets_ConfigPropertyMetadata);
2041
2631
  return config;
2042
2632
  }
2043
2633
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -2086,7 +2676,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
2086
2676
  });
2087
2677
  }
2088
2678
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2089
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
2679
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
2090
2680
  }
2091
2681
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2092
2682
  const { luvio, config } = context;
@@ -2438,7 +3028,7 @@ function createResourceRequest$2(config) {
2438
3028
  const adapterName$2 = 'getTemplates';
2439
3029
  const getTemplates_ConfigPropertyMetadata = [];
2440
3030
  const getTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getTemplates_ConfigPropertyMetadata);
2441
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(getTemplates_ConfigPropertyMetadata);
3031
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$a(getTemplates_ConfigPropertyMetadata);
2442
3032
  function keyBuilder$5(luvio, config) {
2443
3033
  createResourceParams$2(config);
2444
3034
  return keyBuilder$6();
@@ -2493,7 +3083,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
2493
3083
  });
2494
3084
  }
2495
3085
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
2496
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3086
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
2497
3087
  }
2498
3088
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
2499
3089
  const { luvio, config } = context;
@@ -2577,14 +3167,14 @@ const getTemplate_ConfigPropertyMetadata = [
2577
3167
  generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2578
3168
  ];
2579
3169
  const getTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getTemplate_ConfigPropertyMetadata);
2580
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$8(getTemplate_ConfigPropertyMetadata);
3170
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$a(getTemplate_ConfigPropertyMetadata);
2581
3171
  function keyBuilder$3(luvio, config) {
2582
3172
  const resourceParams = createResourceParams$1(config);
2583
3173
  return keyBuilder$4(luvio, resourceParams);
2584
3174
  }
2585
3175
  function typeCheckConfig$1(untrustedConfig) {
2586
3176
  const config = {};
2587
- typeCheckConfig$8(untrustedConfig, config, getTemplate_ConfigPropertyMetadata);
3177
+ typeCheckConfig$a(untrustedConfig, config, getTemplate_ConfigPropertyMetadata);
2588
3178
  return config;
2589
3179
  }
2590
3180
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -2633,7 +3223,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
2633
3223
  });
2634
3224
  }
2635
3225
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
2636
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
3226
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
2637
3227
  }
2638
3228
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
2639
3229
  const { luvio, config } = context;
@@ -2802,14 +3392,14 @@ const getTemplateConfig_ConfigPropertyMetadata = [
2802
3392
  generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2803
3393
  ];
2804
3394
  const getTemplateConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTemplateConfig_ConfigPropertyMetadata);
2805
- const createResourceParams = /*#__PURE__*/ createResourceParams$8(getTemplateConfig_ConfigPropertyMetadata);
3395
+ const createResourceParams = /*#__PURE__*/ createResourceParams$a(getTemplateConfig_ConfigPropertyMetadata);
2806
3396
  function keyBuilder(luvio, config) {
2807
3397
  const resourceParams = createResourceParams(config);
2808
3398
  return keyBuilder$1(luvio, resourceParams);
2809
3399
  }
2810
3400
  function typeCheckConfig(untrustedConfig) {
2811
3401
  const config = {};
2812
- typeCheckConfig$8(untrustedConfig, config, getTemplateConfig_ConfigPropertyMetadata);
3402
+ typeCheckConfig$a(untrustedConfig, config, getTemplateConfig_ConfigPropertyMetadata);
2813
3403
  return config;
2814
3404
  }
2815
3405
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -2858,7 +3448,7 @@ function buildNetworkSnapshot(luvio, config, options) {
2858
3448
  });
2859
3449
  }
2860
3450
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
2861
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
3451
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
2862
3452
  }
2863
3453
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
2864
3454
  const { luvio, config } = context;
@@ -2883,4 +3473,4 @@ const getTemplateConfigAdapterFactory = (luvio) => function AppFramework__getTem
2883
3473
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
2884
3474
  };
2885
3475
 
2886
- export { createAppAdapterFactory, deleteAppAdapterFactory, getAppAdapterFactory, getAppAssetsAdapterFactory, getAppsAdapterFactory, getTemplateAdapterFactory, getTemplateConfigAdapterFactory, getTemplatesAdapterFactory };
3476
+ export { createAppAdapterFactory, deleteAppAdapterFactory, getAppActivitiesAdapterFactory, getAppActivityAdapterFactory, getAppAdapterFactory, getAppAssetsAdapterFactory, getAppsAdapterFactory, getTemplateAdapterFactory, getTemplateConfigAdapterFactory, getTemplatesAdapterFactory };