@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.
- package/dist/es/es2018/analytics-app-framework.js +909 -319
- package/dist/es/es2018/types/src/generated/adapters/createApp.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/adapters/getAppActivities.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getAppActivity.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getApps.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/resources/getAppFrameworkApps.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getAppFrameworkAppsActivitiesByAppIdOrApiName.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getAppFrameworkAppsActivitiesByAppIdOrApiNameAndId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/postAppFrameworkApps.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/types/AppActivityCollectionRepresentation.d.ts +51 -0
- package/dist/es/es2018/types/src/generated/types/AppActivityItemInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/AppActivityItemRepresentation.d.ts +57 -0
- package/dist/es/es2018/types/src/generated/types/AppInputRepresentation.d.ts +10 -1
- package/dist/es/es2018/types/src/generated/types/AppRepresentation.d.ts +10 -1
- package/dist/es/es2018/types/src/generated/types/AssetCollectionRepresentation.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/TemplateInputRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +1013 -318
- package/src/raml/api.raml +140 -0
- package/src/raml/luvio.raml +24 -2
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$a, typeCheckConfig as typeCheckConfig$a, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -122,8 +122,8 @@ function createLink(ref) {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
const VERSION$
|
|
126
|
-
function validate$
|
|
125
|
+
const VERSION$h = "8747a45321deaf63f65cf74537b07eb6";
|
|
126
|
+
function validate$e(obj, path = 'UserRepresentation') {
|
|
127
127
|
const v_error = (() => {
|
|
128
128
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
129
129
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -167,10 +167,10 @@ function validate$c(obj, path = 'UserRepresentation') {
|
|
|
167
167
|
})();
|
|
168
168
|
return v_error === undefined ? null : v_error;
|
|
169
169
|
}
|
|
170
|
-
const select$
|
|
170
|
+
const select$q = function UserRepresentationSelect() {
|
|
171
171
|
return {
|
|
172
172
|
kind: 'Fragment',
|
|
173
|
-
version: VERSION$
|
|
173
|
+
version: VERSION$h,
|
|
174
174
|
private: [],
|
|
175
175
|
selections: [
|
|
176
176
|
{
|
|
@@ -188,7 +188,7 @@ const select$m = function UserRepresentationSelect() {
|
|
|
188
188
|
]
|
|
189
189
|
};
|
|
190
190
|
};
|
|
191
|
-
function equals$
|
|
191
|
+
function equals$e(existing, incoming) {
|
|
192
192
|
const existing_id = existing.id;
|
|
193
193
|
const incoming_id = incoming.id;
|
|
194
194
|
if (!(existing_id === incoming_id)) {
|
|
@@ -207,8 +207,8 @@ function equals$c(existing, incoming) {
|
|
|
207
207
|
return true;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
const VERSION$
|
|
211
|
-
function validate$
|
|
210
|
+
const VERSION$g = "74662b770f974cec987197380f2580ea";
|
|
211
|
+
function validate$d(obj, path = 'ScheduledTimezoneRepresentation') {
|
|
212
212
|
const v_error = (() => {
|
|
213
213
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
214
214
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -227,10 +227,10 @@ function validate$b(obj, path = 'ScheduledTimezoneRepresentation') {
|
|
|
227
227
|
})();
|
|
228
228
|
return v_error === undefined ? null : v_error;
|
|
229
229
|
}
|
|
230
|
-
const select$
|
|
230
|
+
const select$p = function ScheduledTimezoneRepresentationSelect() {
|
|
231
231
|
return {
|
|
232
232
|
kind: 'Fragment',
|
|
233
|
-
version: VERSION$
|
|
233
|
+
version: VERSION$g,
|
|
234
234
|
private: [],
|
|
235
235
|
selections: [
|
|
236
236
|
{
|
|
@@ -248,7 +248,7 @@ const select$l = function ScheduledTimezoneRepresentationSelect() {
|
|
|
248
248
|
]
|
|
249
249
|
};
|
|
250
250
|
};
|
|
251
|
-
function equals$
|
|
251
|
+
function equals$d(existing, incoming) {
|
|
252
252
|
const existing_name = existing.name;
|
|
253
253
|
const incoming_name = incoming.name;
|
|
254
254
|
if (!(existing_name === incoming_name)) {
|
|
@@ -267,8 +267,8 @@ function equals$b(existing, incoming) {
|
|
|
267
267
|
return true;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
const VERSION$
|
|
271
|
-
function validate$
|
|
270
|
+
const VERSION$f = "d96bf6818be64d5924beaaad8e684221";
|
|
271
|
+
function validate$c(obj, path = 'ScheduledTimeRepresentation') {
|
|
272
272
|
const v_error = (() => {
|
|
273
273
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
274
274
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -285,7 +285,7 @@ function validate$a(obj, path = 'ScheduledTimeRepresentation') {
|
|
|
285
285
|
}
|
|
286
286
|
const obj_timezone = obj.timezone;
|
|
287
287
|
const path_timezone = path + '.timezone';
|
|
288
|
-
const referencepath_timezoneValidationError = validate$
|
|
288
|
+
const referencepath_timezoneValidationError = validate$d(obj_timezone, path_timezone);
|
|
289
289
|
if (referencepath_timezoneValidationError !== null) {
|
|
290
290
|
let message = 'Object doesn\'t match ScheduledTimezoneRepresentation (at "' + path_timezone + '")\n';
|
|
291
291
|
message += referencepath_timezoneValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -294,11 +294,11 @@ function validate$a(obj, path = 'ScheduledTimeRepresentation') {
|
|
|
294
294
|
})();
|
|
295
295
|
return v_error === undefined ? null : v_error;
|
|
296
296
|
}
|
|
297
|
-
const select$
|
|
298
|
-
const { selections: ScheduledTimezoneRepresentation__selections, opaque: ScheduledTimezoneRepresentation__opaque, } = select$
|
|
297
|
+
const select$o = function ScheduledTimeRepresentationSelect() {
|
|
298
|
+
const { selections: ScheduledTimezoneRepresentation__selections, opaque: ScheduledTimezoneRepresentation__opaque, } = select$p();
|
|
299
299
|
return {
|
|
300
300
|
kind: 'Fragment',
|
|
301
|
-
version: VERSION$
|
|
301
|
+
version: VERSION$f,
|
|
302
302
|
private: [],
|
|
303
303
|
selections: [
|
|
304
304
|
{
|
|
@@ -317,7 +317,7 @@ const select$k = function ScheduledTimeRepresentationSelect() {
|
|
|
317
317
|
]
|
|
318
318
|
};
|
|
319
319
|
};
|
|
320
|
-
function equals$
|
|
320
|
+
function equals$c(existing, incoming) {
|
|
321
321
|
const existing_hour = existing.hour;
|
|
322
322
|
const incoming_hour = incoming.hour;
|
|
323
323
|
if (!(existing_hour === incoming_hour)) {
|
|
@@ -330,18 +330,18 @@ function equals$a(existing, incoming) {
|
|
|
330
330
|
}
|
|
331
331
|
const existing_timezone = existing.timezone;
|
|
332
332
|
const incoming_timezone = incoming.timezone;
|
|
333
|
-
if (!(equals$
|
|
333
|
+
if (!(equals$d(existing_timezone, incoming_timezone))) {
|
|
334
334
|
return false;
|
|
335
335
|
}
|
|
336
336
|
return true;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
const VERSION$
|
|
340
|
-
const select$
|
|
341
|
-
const { selections: ScheduledItemRepresentationSelections } = select$
|
|
339
|
+
const VERSION$e = "91838b86aa135ce828af6242b11ae888";
|
|
340
|
+
const select$n = function HourlyScheduledItemRepresentationSelect() {
|
|
341
|
+
const { selections: ScheduledItemRepresentationSelections } = select$k();
|
|
342
342
|
return {
|
|
343
343
|
kind: 'Fragment',
|
|
344
|
-
version: VERSION$
|
|
344
|
+
version: VERSION$e,
|
|
345
345
|
private: [],
|
|
346
346
|
selections: [
|
|
347
347
|
...ScheduledItemRepresentationSelections,
|
|
@@ -358,12 +358,12 @@ const select$j = function HourlyScheduledItemRepresentationSelect() {
|
|
|
358
358
|
};
|
|
359
359
|
};
|
|
360
360
|
|
|
361
|
-
const VERSION$
|
|
362
|
-
const select$
|
|
363
|
-
const { selections: ScheduledItemRepresentationSelections } = select$
|
|
361
|
+
const VERSION$d = "46260a34f0b2c2d7adc7f8c150a8d8fb";
|
|
362
|
+
const select$m = function WeeklyScheduledItemRepresentationSelect() {
|
|
363
|
+
const { selections: ScheduledItemRepresentationSelections } = select$k();
|
|
364
364
|
return {
|
|
365
365
|
kind: 'Fragment',
|
|
366
|
-
version: VERSION$
|
|
366
|
+
version: VERSION$d,
|
|
367
367
|
private: [],
|
|
368
368
|
selections: [
|
|
369
369
|
...ScheduledItemRepresentationSelections,
|
|
@@ -376,12 +376,12 @@ const select$i = function WeeklyScheduledItemRepresentationSelect() {
|
|
|
376
376
|
};
|
|
377
377
|
};
|
|
378
378
|
|
|
379
|
-
const VERSION$
|
|
380
|
-
const select$
|
|
381
|
-
const { selections: ScheduledItemRepresentationSelections } = select$
|
|
379
|
+
const VERSION$c = "dcda6d015a01d9acde5fac241448cfe4";
|
|
380
|
+
const select$l = function DailyScheduledItemRepresentationSelect() {
|
|
381
|
+
const { selections: ScheduledItemRepresentationSelections } = select$k();
|
|
382
382
|
return {
|
|
383
383
|
kind: 'Fragment',
|
|
384
|
-
version: VERSION$
|
|
384
|
+
version: VERSION$c,
|
|
385
385
|
private: [],
|
|
386
386
|
selections: [
|
|
387
387
|
...ScheduledItemRepresentationSelections,
|
|
@@ -395,8 +395,8 @@ var DiscriminatorValues;
|
|
|
395
395
|
DiscriminatorValues["Weekly"] = "Weekly";
|
|
396
396
|
DiscriminatorValues["Daily"] = "Daily";
|
|
397
397
|
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
398
|
-
const VERSION$
|
|
399
|
-
function validate$
|
|
398
|
+
const VERSION$b = "193484b4261ca5840b61caaab3dea067";
|
|
399
|
+
function validate$b(obj, path = 'ScheduledItemRepresentation') {
|
|
400
400
|
const v_error = (() => {
|
|
401
401
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
402
402
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -413,7 +413,7 @@ function validate$9(obj, path = 'ScheduledItemRepresentation') {
|
|
|
413
413
|
}
|
|
414
414
|
const obj_time = obj.time;
|
|
415
415
|
const path_time = path + '.time';
|
|
416
|
-
const referencepath_timeValidationError = validate$
|
|
416
|
+
const referencepath_timeValidationError = validate$c(obj_time, path_time);
|
|
417
417
|
if (referencepath_timeValidationError !== null) {
|
|
418
418
|
let message = 'Object doesn\'t match ScheduledTimeRepresentation (at "' + path_time + '")\n';
|
|
419
419
|
message += referencepath_timeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -423,9 +423,9 @@ function validate$9(obj, path = 'ScheduledItemRepresentation') {
|
|
|
423
423
|
return v_error === undefined ? null : v_error;
|
|
424
424
|
}
|
|
425
425
|
const selectChildren = function ScheduledItemRepresentationSelectChildren() {
|
|
426
|
-
const hourlyScheduledItemRepresentationSelections = select$
|
|
427
|
-
const weeklyScheduledItemRepresentationSelections = select$
|
|
428
|
-
const dailyScheduledItemRepresentationSelections = select$
|
|
426
|
+
const hourlyScheduledItemRepresentationSelections = select$n();
|
|
427
|
+
const weeklyScheduledItemRepresentationSelections = select$m();
|
|
428
|
+
const dailyScheduledItemRepresentationSelections = select$l();
|
|
429
429
|
return {
|
|
430
430
|
kind: 'Fragment',
|
|
431
431
|
union: true,
|
|
@@ -437,11 +437,11 @@ const selectChildren = function ScheduledItemRepresentationSelectChildren() {
|
|
|
437
437
|
}
|
|
438
438
|
};
|
|
439
439
|
};
|
|
440
|
-
const select$
|
|
441
|
-
const { selections: ScheduledTimeRepresentation__selections, opaque: ScheduledTimeRepresentation__opaque, } = select$
|
|
440
|
+
const select$k = function ScheduledItemRepresentationSelect() {
|
|
441
|
+
const { selections: ScheduledTimeRepresentation__selections, opaque: ScheduledTimeRepresentation__opaque, } = select$o();
|
|
442
442
|
return {
|
|
443
443
|
kind: 'Fragment',
|
|
444
|
-
version: VERSION$
|
|
444
|
+
version: VERSION$b,
|
|
445
445
|
private: [],
|
|
446
446
|
selections: [
|
|
447
447
|
{
|
|
@@ -460,7 +460,7 @@ const select$g = function ScheduledItemRepresentationSelect() {
|
|
|
460
460
|
]
|
|
461
461
|
};
|
|
462
462
|
};
|
|
463
|
-
function equals$
|
|
463
|
+
function equals$b(existing, incoming) {
|
|
464
464
|
const existing_frequency = existing.frequency;
|
|
465
465
|
const incoming_frequency = incoming.frequency;
|
|
466
466
|
if (!(existing_frequency === incoming_frequency)) {
|
|
@@ -473,14 +473,14 @@ function equals$9(existing, incoming) {
|
|
|
473
473
|
}
|
|
474
474
|
const existing_time = existing.time;
|
|
475
475
|
const incoming_time = incoming.time;
|
|
476
|
-
if (!(equals$
|
|
476
|
+
if (!(equals$c(existing_time, incoming_time))) {
|
|
477
477
|
return false;
|
|
478
478
|
}
|
|
479
479
|
return true;
|
|
480
480
|
}
|
|
481
481
|
|
|
482
|
-
const VERSION$
|
|
483
|
-
function validate$
|
|
482
|
+
const VERSION$a = "06b5da5162febff2692d819c9b718be5";
|
|
483
|
+
function validate$a(obj, path = 'AppScheduleRepresentation') {
|
|
484
484
|
const v_error = (() => {
|
|
485
485
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
486
486
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -489,7 +489,7 @@ function validate$8(obj, path = 'AppScheduleRepresentation') {
|
|
|
489
489
|
const path_dataRefreshSchedule = path + '.dataRefreshSchedule';
|
|
490
490
|
let obj_dataRefreshSchedule_union0 = null;
|
|
491
491
|
const obj_dataRefreshSchedule_union0_error = (() => {
|
|
492
|
-
const referencepath_dataRefreshScheduleValidationError = validate$
|
|
492
|
+
const referencepath_dataRefreshScheduleValidationError = validate$b(obj_dataRefreshSchedule, path_dataRefreshSchedule);
|
|
493
493
|
if (referencepath_dataRefreshScheduleValidationError !== null) {
|
|
494
494
|
let message = 'Object doesn\'t match ScheduledItemRepresentation (at "' + path_dataRefreshSchedule + '")\n';
|
|
495
495
|
message += referencepath_dataRefreshScheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -543,11 +543,11 @@ function validate$8(obj, path = 'AppScheduleRepresentation') {
|
|
|
543
543
|
})();
|
|
544
544
|
return v_error === undefined ? null : v_error;
|
|
545
545
|
}
|
|
546
|
-
const select$
|
|
546
|
+
const select$j = function AppScheduleRepresentationSelect() {
|
|
547
547
|
const ScheduledItemRepresentation__unionSelections = selectChildren();
|
|
548
548
|
return {
|
|
549
549
|
kind: 'Fragment',
|
|
550
|
-
version: VERSION$
|
|
550
|
+
version: VERSION$a,
|
|
551
551
|
private: [],
|
|
552
552
|
selections: [
|
|
553
553
|
{
|
|
@@ -565,13 +565,13 @@ const select$f = function AppScheduleRepresentationSelect() {
|
|
|
565
565
|
]
|
|
566
566
|
};
|
|
567
567
|
};
|
|
568
|
-
function equals$
|
|
568
|
+
function equals$a(existing, incoming) {
|
|
569
569
|
const existing_dataRefreshSchedule = existing.dataRefreshSchedule;
|
|
570
570
|
const incoming_dataRefreshSchedule = incoming.dataRefreshSchedule;
|
|
571
571
|
if (!(existing_dataRefreshSchedule === incoming_dataRefreshSchedule
|
|
572
572
|
|| (existing_dataRefreshSchedule != null &&
|
|
573
573
|
incoming_dataRefreshSchedule != null &&
|
|
574
|
-
equals$
|
|
574
|
+
equals$b(existing_dataRefreshSchedule, incoming_dataRefreshSchedule)))) {
|
|
575
575
|
return false;
|
|
576
576
|
}
|
|
577
577
|
const existing_url = existing.url;
|
|
@@ -582,13 +582,18 @@ function equals$8(existing, incoming) {
|
|
|
582
582
|
return true;
|
|
583
583
|
}
|
|
584
584
|
|
|
585
|
-
const TTL$
|
|
586
|
-
const VERSION$
|
|
587
|
-
function validate$
|
|
585
|
+
const TTL$9 = 5000;
|
|
586
|
+
const VERSION$9 = "be6294bb853a9581fb3b06a2d8caa5d5";
|
|
587
|
+
function validate$9(obj, path = 'AppRepresentation') {
|
|
588
588
|
const v_error = (() => {
|
|
589
589
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
590
590
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
591
591
|
}
|
|
592
|
+
const obj_activitiesUrl = obj.activitiesUrl;
|
|
593
|
+
const path_activitiesUrl = path + '.activitiesUrl';
|
|
594
|
+
if (typeof obj_activitiesUrl !== 'string') {
|
|
595
|
+
return new TypeError('Expected "string" but received "' + typeof obj_activitiesUrl + '" (at "' + path_activitiesUrl + '")');
|
|
596
|
+
}
|
|
592
597
|
const obj_applicationStatus = obj.applicationStatus;
|
|
593
598
|
const path_applicationStatus = path + '.applicationStatus';
|
|
594
599
|
if (typeof obj_applicationStatus !== 'string') {
|
|
@@ -601,7 +606,7 @@ function validate$7(obj, path = 'AppRepresentation') {
|
|
|
601
606
|
}
|
|
602
607
|
const obj_createdBy = obj.createdBy;
|
|
603
608
|
const path_createdBy = path + '.createdBy';
|
|
604
|
-
const referencepath_createdByValidationError = validate$
|
|
609
|
+
const referencepath_createdByValidationError = validate$e(obj_createdBy, path_createdBy);
|
|
605
610
|
if (referencepath_createdByValidationError !== null) {
|
|
606
611
|
let message = 'Object doesn\'t match UserRepresentation (at "' + path_createdBy + '")\n';
|
|
607
612
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -655,7 +660,7 @@ function validate$7(obj, path = 'AppRepresentation') {
|
|
|
655
660
|
}
|
|
656
661
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
657
662
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
658
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
663
|
+
const referencepath_lastModifiedByValidationError = validate$e(obj_lastModifiedBy, path_lastModifiedBy);
|
|
659
664
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
660
665
|
let message = 'Object doesn\'t match UserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
661
666
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -666,6 +671,11 @@ function validate$7(obj, path = 'AppRepresentation') {
|
|
|
666
671
|
if (typeof obj_lastModifiedDate !== 'string') {
|
|
667
672
|
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
668
673
|
}
|
|
674
|
+
const obj_latestActivityUrl = obj.latestActivityUrl;
|
|
675
|
+
const path_latestActivityUrl = path + '.latestActivityUrl';
|
|
676
|
+
if (typeof obj_latestActivityUrl !== 'string') {
|
|
677
|
+
return new TypeError('Expected "string" but received "' + typeof obj_latestActivityUrl + '" (at "' + path_latestActivityUrl + '")');
|
|
678
|
+
}
|
|
669
679
|
const obj_name = obj.name;
|
|
670
680
|
const path_name = path + '.name';
|
|
671
681
|
if (typeof obj_name !== 'string') {
|
|
@@ -675,7 +685,7 @@ function validate$7(obj, path = 'AppRepresentation') {
|
|
|
675
685
|
const path_schedule = path + '.schedule';
|
|
676
686
|
let obj_schedule_union0 = null;
|
|
677
687
|
const obj_schedule_union0_error = (() => {
|
|
678
|
-
const referencepath_scheduleValidationError = validate$
|
|
688
|
+
const referencepath_scheduleValidationError = validate$a(obj_schedule, path_schedule);
|
|
679
689
|
if (referencepath_scheduleValidationError !== null) {
|
|
680
690
|
let message = 'Object doesn\'t match AppScheduleRepresentation (at "' + path_schedule + '")\n';
|
|
681
691
|
message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -705,6 +715,11 @@ function validate$7(obj, path = 'AppRepresentation') {
|
|
|
705
715
|
if (typeof obj_templateSourceId !== 'string') {
|
|
706
716
|
return new TypeError('Expected "string" but received "' + typeof obj_templateSourceId + '" (at "' + path_templateSourceId + '")');
|
|
707
717
|
}
|
|
718
|
+
const obj_templateType = obj.templateType;
|
|
719
|
+
const path_templateType = path + '.templateType';
|
|
720
|
+
if (typeof obj_templateType !== 'string') {
|
|
721
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateType + '" (at "' + path_templateType + '")');
|
|
722
|
+
}
|
|
708
723
|
const obj_templateValues = obj.templateValues;
|
|
709
724
|
const path_templateValues = path + '.templateValues';
|
|
710
725
|
if (typeof obj_templateValues !== 'object' || ArrayIsArray(obj_templateValues) || obj_templateValues === null) {
|
|
@@ -732,27 +747,31 @@ function validate$7(obj, path = 'AppRepresentation') {
|
|
|
732
747
|
})();
|
|
733
748
|
return v_error === undefined ? null : v_error;
|
|
734
749
|
}
|
|
735
|
-
const RepresentationType$
|
|
736
|
-
function keyBuilder$
|
|
737
|
-
return keyPrefix + '::' + RepresentationType$
|
|
750
|
+
const RepresentationType$9 = 'AppRepresentation';
|
|
751
|
+
function keyBuilder$o(luvio, config) {
|
|
752
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
|
|
738
753
|
}
|
|
739
|
-
function keyBuilderFromType$
|
|
754
|
+
function keyBuilderFromType$7(luvio, object) {
|
|
740
755
|
const keyParams = {
|
|
741
756
|
id: object.id
|
|
742
757
|
};
|
|
743
|
-
return keyBuilder$
|
|
758
|
+
return keyBuilder$o(luvio, keyParams);
|
|
744
759
|
}
|
|
745
|
-
function normalize$
|
|
760
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
746
761
|
return input;
|
|
747
762
|
}
|
|
748
|
-
const select$
|
|
749
|
-
const { selections: UserRepresentation__selections, opaque: UserRepresentation__opaque, } = select$
|
|
750
|
-
const { selections: AppScheduleRepresentation__selections, opaque: AppScheduleRepresentation__opaque, } = select$
|
|
763
|
+
const select$i = function AppRepresentationSelect() {
|
|
764
|
+
const { selections: UserRepresentation__selections, opaque: UserRepresentation__opaque, } = select$q();
|
|
765
|
+
const { selections: AppScheduleRepresentation__selections, opaque: AppScheduleRepresentation__opaque, } = select$j();
|
|
751
766
|
return {
|
|
752
767
|
kind: 'Fragment',
|
|
753
|
-
version: VERSION$
|
|
768
|
+
version: VERSION$9,
|
|
754
769
|
private: [],
|
|
755
770
|
selections: [
|
|
771
|
+
{
|
|
772
|
+
name: 'activitiesUrl',
|
|
773
|
+
kind: 'Scalar'
|
|
774
|
+
},
|
|
756
775
|
{
|
|
757
776
|
name: 'applicationStatus',
|
|
758
777
|
kind: 'Scalar'
|
|
@@ -795,6 +814,10 @@ const select$e = function AppRepresentationSelect() {
|
|
|
795
814
|
name: 'lastModifiedDate',
|
|
796
815
|
kind: 'Scalar'
|
|
797
816
|
},
|
|
817
|
+
{
|
|
818
|
+
name: 'latestActivityUrl',
|
|
819
|
+
kind: 'Scalar'
|
|
820
|
+
},
|
|
798
821
|
{
|
|
799
822
|
name: 'name',
|
|
800
823
|
kind: 'Scalar'
|
|
@@ -809,6 +832,10 @@ const select$e = function AppRepresentationSelect() {
|
|
|
809
832
|
name: 'templateSourceId',
|
|
810
833
|
kind: 'Scalar'
|
|
811
834
|
},
|
|
835
|
+
{
|
|
836
|
+
name: 'templateType',
|
|
837
|
+
kind: 'Scalar'
|
|
838
|
+
},
|
|
812
839
|
{
|
|
813
840
|
name: 'templateValues',
|
|
814
841
|
kind: 'Object',
|
|
@@ -825,7 +852,12 @@ const select$e = function AppRepresentationSelect() {
|
|
|
825
852
|
]
|
|
826
853
|
};
|
|
827
854
|
};
|
|
828
|
-
function equals$
|
|
855
|
+
function equals$9(existing, incoming) {
|
|
856
|
+
const existing_activitiesUrl = existing.activitiesUrl;
|
|
857
|
+
const incoming_activitiesUrl = incoming.activitiesUrl;
|
|
858
|
+
if (!(existing_activitiesUrl === incoming_activitiesUrl)) {
|
|
859
|
+
return false;
|
|
860
|
+
}
|
|
829
861
|
const existing_applicationStatus = existing.applicationStatus;
|
|
830
862
|
const incoming_applicationStatus = incoming.applicationStatus;
|
|
831
863
|
if (!(existing_applicationStatus === incoming_applicationStatus)) {
|
|
@@ -861,6 +893,11 @@ function equals$7(existing, incoming) {
|
|
|
861
893
|
if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
|
|
862
894
|
return false;
|
|
863
895
|
}
|
|
896
|
+
const existing_latestActivityUrl = existing.latestActivityUrl;
|
|
897
|
+
const incoming_latestActivityUrl = incoming.latestActivityUrl;
|
|
898
|
+
if (!(existing_latestActivityUrl === incoming_latestActivityUrl)) {
|
|
899
|
+
return false;
|
|
900
|
+
}
|
|
864
901
|
const existing_name = existing.name;
|
|
865
902
|
const incoming_name = incoming.name;
|
|
866
903
|
if (!(existing_name === incoming_name)) {
|
|
@@ -871,6 +908,11 @@ function equals$7(existing, incoming) {
|
|
|
871
908
|
if (!(existing_templateSourceId === incoming_templateSourceId)) {
|
|
872
909
|
return false;
|
|
873
910
|
}
|
|
911
|
+
const existing_templateType = existing.templateType;
|
|
912
|
+
const incoming_templateType = incoming.templateType;
|
|
913
|
+
if (!(existing_templateType === incoming_templateType)) {
|
|
914
|
+
return false;
|
|
915
|
+
}
|
|
874
916
|
const existing_templateVersion = existing.templateVersion;
|
|
875
917
|
const incoming_templateVersion = incoming.templateVersion;
|
|
876
918
|
if (!(existing_templateVersion === incoming_templateVersion)) {
|
|
@@ -883,7 +925,7 @@ function equals$7(existing, incoming) {
|
|
|
883
925
|
}
|
|
884
926
|
const existing_createdBy = existing.createdBy;
|
|
885
927
|
const incoming_createdBy = incoming.createdBy;
|
|
886
|
-
if (!(equals$
|
|
928
|
+
if (!(equals$e(existing_createdBy, incoming_createdBy))) {
|
|
887
929
|
return false;
|
|
888
930
|
}
|
|
889
931
|
const existing_description = existing.description;
|
|
@@ -893,7 +935,7 @@ function equals$7(existing, incoming) {
|
|
|
893
935
|
}
|
|
894
936
|
const existing_lastModifiedBy = existing.lastModifiedBy;
|
|
895
937
|
const incoming_lastModifiedBy = incoming.lastModifiedBy;
|
|
896
|
-
if (!(equals$
|
|
938
|
+
if (!(equals$e(existing_lastModifiedBy, incoming_lastModifiedBy))) {
|
|
897
939
|
return false;
|
|
898
940
|
}
|
|
899
941
|
const existing_schedule = existing.schedule;
|
|
@@ -901,7 +943,7 @@ function equals$7(existing, incoming) {
|
|
|
901
943
|
if (!(existing_schedule === incoming_schedule
|
|
902
944
|
|| (existing_schedule != null &&
|
|
903
945
|
incoming_schedule != null &&
|
|
904
|
-
equals$
|
|
946
|
+
equals$a(existing_schedule, incoming_schedule)))) {
|
|
905
947
|
return false;
|
|
906
948
|
}
|
|
907
949
|
const existing_templateValues = existing.templateValues;
|
|
@@ -916,31 +958,31 @@ function equals$7(existing, incoming) {
|
|
|
916
958
|
}
|
|
917
959
|
return true;
|
|
918
960
|
}
|
|
919
|
-
const ingest$
|
|
961
|
+
const ingest$9 = function AppRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
920
962
|
if (process.env.NODE_ENV !== 'production') {
|
|
921
|
-
const validateError = validate$
|
|
963
|
+
const validateError = validate$9(input);
|
|
922
964
|
if (validateError !== null) {
|
|
923
965
|
throw validateError;
|
|
924
966
|
}
|
|
925
967
|
}
|
|
926
|
-
const key = keyBuilderFromType$
|
|
927
|
-
const ttlToUse = TTL$
|
|
928
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
968
|
+
const key = keyBuilderFromType$7(luvio, input);
|
|
969
|
+
const ttlToUse = TTL$9;
|
|
970
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "AppFramework", VERSION$9, RepresentationType$9, equals$9);
|
|
929
971
|
return createLink(key);
|
|
930
972
|
};
|
|
931
|
-
function getTypeCacheKeys$
|
|
973
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
932
974
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
933
|
-
const rootKey = keyBuilderFromType$
|
|
975
|
+
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
934
976
|
rootKeySet.set(rootKey, {
|
|
935
977
|
namespace: keyPrefix,
|
|
936
|
-
representationName: RepresentationType$
|
|
978
|
+
representationName: RepresentationType$9,
|
|
937
979
|
mergeable: false
|
|
938
980
|
});
|
|
939
981
|
}
|
|
940
982
|
|
|
941
|
-
const TTL$
|
|
942
|
-
const VERSION$
|
|
943
|
-
function validate$
|
|
983
|
+
const TTL$8 = 5000;
|
|
984
|
+
const VERSION$8 = "e7a1233115fcb9b27ee13367015ae7e0";
|
|
985
|
+
function validate$8(obj, path = 'AppResultRepresentation') {
|
|
944
986
|
const v_error = (() => {
|
|
945
987
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
946
988
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -972,20 +1014,20 @@ function validate$6(obj, path = 'AppResultRepresentation') {
|
|
|
972
1014
|
})();
|
|
973
1015
|
return v_error === undefined ? null : v_error;
|
|
974
1016
|
}
|
|
975
|
-
const RepresentationType$
|
|
976
|
-
function keyBuilder$
|
|
977
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1017
|
+
const RepresentationType$8 = 'AppResultRepresentation';
|
|
1018
|
+
function keyBuilder$n(luvio, config) {
|
|
1019
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.id;
|
|
978
1020
|
}
|
|
979
|
-
function keyBuilderFromType$
|
|
1021
|
+
function keyBuilderFromType$6(luvio, object) {
|
|
980
1022
|
const keyParams = {
|
|
981
1023
|
id: object.app.id
|
|
982
1024
|
};
|
|
983
|
-
return keyBuilder$
|
|
1025
|
+
return keyBuilder$n(luvio, keyParams);
|
|
984
1026
|
}
|
|
985
|
-
function normalize$
|
|
1027
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
986
1028
|
const input_app = input.app;
|
|
987
1029
|
const input_app_id = path.fullPath + '__app';
|
|
988
|
-
input.app = ingest$
|
|
1030
|
+
input.app = ingest$9(input_app, {
|
|
989
1031
|
fullPath: input_app_id,
|
|
990
1032
|
propertyName: 'app',
|
|
991
1033
|
parent: {
|
|
@@ -997,16 +1039,16 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
997
1039
|
}, luvio, store, timestamp);
|
|
998
1040
|
return input;
|
|
999
1041
|
}
|
|
1000
|
-
const select$
|
|
1042
|
+
const select$h = function AppResultRepresentationSelect() {
|
|
1001
1043
|
return {
|
|
1002
1044
|
kind: 'Fragment',
|
|
1003
|
-
version: VERSION$
|
|
1045
|
+
version: VERSION$8,
|
|
1004
1046
|
private: [],
|
|
1005
1047
|
selections: [
|
|
1006
1048
|
{
|
|
1007
1049
|
name: 'app',
|
|
1008
1050
|
kind: 'Link',
|
|
1009
|
-
fragment: select$
|
|
1051
|
+
fragment: select$i()
|
|
1010
1052
|
},
|
|
1011
1053
|
{
|
|
1012
1054
|
name: 'runtimeRequestId',
|
|
@@ -1020,7 +1062,7 @@ const select$d = function AppResultRepresentationSelect() {
|
|
|
1020
1062
|
]
|
|
1021
1063
|
};
|
|
1022
1064
|
};
|
|
1023
|
-
function equals$
|
|
1065
|
+
function equals$8(existing, incoming) {
|
|
1024
1066
|
const existing_runtimeRequestId = existing.runtimeRequestId;
|
|
1025
1067
|
const incoming_runtimeRequestId = incoming.runtimeRequestId;
|
|
1026
1068
|
if (!(existing_runtimeRequestId === incoming_runtimeRequestId)) {
|
|
@@ -1043,42 +1085,42 @@ function equals$6(existing, incoming) {
|
|
|
1043
1085
|
}
|
|
1044
1086
|
return true;
|
|
1045
1087
|
}
|
|
1046
|
-
const ingest$
|
|
1088
|
+
const ingest$8 = function AppResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1047
1089
|
if (process.env.NODE_ENV !== 'production') {
|
|
1048
|
-
const validateError = validate$
|
|
1090
|
+
const validateError = validate$8(input);
|
|
1049
1091
|
if (validateError !== null) {
|
|
1050
1092
|
throw validateError;
|
|
1051
1093
|
}
|
|
1052
1094
|
}
|
|
1053
|
-
const key = keyBuilderFromType$
|
|
1054
|
-
const ttlToUse = TTL$
|
|
1055
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1095
|
+
const key = keyBuilderFromType$6(luvio, input);
|
|
1096
|
+
const ttlToUse = TTL$8;
|
|
1097
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "AppFramework", VERSION$8, RepresentationType$8, equals$8);
|
|
1056
1098
|
return createLink(key);
|
|
1057
1099
|
};
|
|
1058
|
-
function getTypeCacheKeys$
|
|
1100
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
1059
1101
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1060
|
-
const rootKey = keyBuilderFromType$
|
|
1102
|
+
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
1061
1103
|
rootKeySet.set(rootKey, {
|
|
1062
1104
|
namespace: keyPrefix,
|
|
1063
|
-
representationName: RepresentationType$
|
|
1105
|
+
representationName: RepresentationType$8,
|
|
1064
1106
|
mergeable: false
|
|
1065
1107
|
});
|
|
1066
|
-
getTypeCacheKeys$
|
|
1108
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.app);
|
|
1067
1109
|
}
|
|
1068
1110
|
|
|
1069
|
-
function select$
|
|
1070
|
-
return select$
|
|
1111
|
+
function select$g(luvio, params) {
|
|
1112
|
+
return select$h();
|
|
1071
1113
|
}
|
|
1072
|
-
function getResponseCacheKeys$
|
|
1073
|
-
getTypeCacheKeys$
|
|
1114
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
1115
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
1074
1116
|
}
|
|
1075
|
-
function ingestSuccess$
|
|
1117
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
1076
1118
|
const { body } = response;
|
|
1077
|
-
const key = keyBuilderFromType$
|
|
1078
|
-
luvio.storeIngest(key, ingest$
|
|
1119
|
+
const key = keyBuilderFromType$6(luvio, body);
|
|
1120
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
1079
1121
|
const snapshot = luvio.storeLookup({
|
|
1080
1122
|
recordId: key,
|
|
1081
|
-
node: select$
|
|
1123
|
+
node: select$g(),
|
|
1082
1124
|
variables: {},
|
|
1083
1125
|
});
|
|
1084
1126
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1089,7 +1131,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
1089
1131
|
deepFreeze(snapshot.data);
|
|
1090
1132
|
return snapshot;
|
|
1091
1133
|
}
|
|
1092
|
-
function createResourceRequest$
|
|
1134
|
+
function createResourceRequest$9(config) {
|
|
1093
1135
|
const headers = {};
|
|
1094
1136
|
return {
|
|
1095
1137
|
baseUri: '/services/data/v62.0',
|
|
@@ -1103,21 +1145,24 @@ function createResourceRequest$7(config) {
|
|
|
1103
1145
|
};
|
|
1104
1146
|
}
|
|
1105
1147
|
|
|
1106
|
-
const adapterName$
|
|
1148
|
+
const adapterName$9 = 'createApp';
|
|
1107
1149
|
const createApp_ConfigPropertyMetadata = [
|
|
1108
1150
|
generateParamConfigMetadata('assetIcon', false, 2 /* Body */, 0 /* String */),
|
|
1109
1151
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
1110
1152
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
1153
|
+
generateParamConfigMetadata('logLevel', false, 2 /* Body */, 0 /* String */),
|
|
1111
1154
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
1155
|
+
generateParamConfigMetadata('runtimeMethod', false, 2 /* Body */, 0 /* String */),
|
|
1112
1156
|
generateParamConfigMetadata('templateSourceId', true, 2 /* Body */, 0 /* String */),
|
|
1157
|
+
generateParamConfigMetadata('templateType', false, 2 /* Body */, 0 /* String */),
|
|
1113
1158
|
generateParamConfigMetadata('templateValues', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1114
1159
|
generateParamConfigMetadata('templateVersion', false, 2 /* Body */, 0 /* String */),
|
|
1115
1160
|
];
|
|
1116
|
-
const createApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1117
|
-
const createResourceParams$
|
|
1118
|
-
function typeCheckConfig$
|
|
1161
|
+
const createApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createApp_ConfigPropertyMetadata);
|
|
1162
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$a(createApp_ConfigPropertyMetadata);
|
|
1163
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
1119
1164
|
const config = {};
|
|
1120
|
-
typeCheckConfig$
|
|
1165
|
+
typeCheckConfig$a(untrustedConfig, config, createApp_ConfigPropertyMetadata);
|
|
1121
1166
|
const untrustedConfig_templateValues = untrustedConfig.templateValues;
|
|
1122
1167
|
if (untrustedIsObject(untrustedConfig_templateValues)) {
|
|
1123
1168
|
const untrustedConfig_templateValues_object = {};
|
|
@@ -1135,30 +1180,30 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
1135
1180
|
}
|
|
1136
1181
|
return config;
|
|
1137
1182
|
}
|
|
1138
|
-
function validateAdapterConfig$
|
|
1183
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
1139
1184
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1140
1185
|
return null;
|
|
1141
1186
|
}
|
|
1142
1187
|
if (process.env.NODE_ENV !== 'production') {
|
|
1143
1188
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1144
1189
|
}
|
|
1145
|
-
const config = typeCheckConfig$
|
|
1190
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
1146
1191
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1147
1192
|
return null;
|
|
1148
1193
|
}
|
|
1149
1194
|
return config;
|
|
1150
1195
|
}
|
|
1151
|
-
function buildNetworkSnapshot$
|
|
1152
|
-
const resourceParams = createResourceParams$
|
|
1153
|
-
const request = createResourceRequest$
|
|
1196
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
1197
|
+
const resourceParams = createResourceParams$9(config);
|
|
1198
|
+
const request = createResourceRequest$9(resourceParams);
|
|
1154
1199
|
return luvio.dispatchResourceRequest(request, options)
|
|
1155
1200
|
.then((response) => {
|
|
1156
1201
|
return luvio.handleSuccessResponse(() => {
|
|
1157
|
-
const snapshot = ingestSuccess$
|
|
1202
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
1158
1203
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1159
1204
|
}, () => {
|
|
1160
1205
|
const cache = new StoreKeyMap();
|
|
1161
|
-
getResponseCacheKeys$
|
|
1206
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
1162
1207
|
return cache;
|
|
1163
1208
|
});
|
|
1164
1209
|
}, (response) => {
|
|
@@ -1168,33 +1213,33 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
1168
1213
|
}
|
|
1169
1214
|
const createAppAdapterFactory = (luvio) => {
|
|
1170
1215
|
return function createApp(untrustedConfig) {
|
|
1171
|
-
const config = validateAdapterConfig$
|
|
1216
|
+
const config = validateAdapterConfig$9(untrustedConfig, createApp_ConfigPropertyNames);
|
|
1172
1217
|
// Invalid or incomplete config
|
|
1173
1218
|
if (config === null) {
|
|
1174
1219
|
throw new Error('Invalid config for "createApp"');
|
|
1175
1220
|
}
|
|
1176
|
-
return buildNetworkSnapshot$
|
|
1221
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
1177
1222
|
};
|
|
1178
1223
|
};
|
|
1179
1224
|
|
|
1180
|
-
function keyBuilder$
|
|
1181
|
-
return keyBuilder$
|
|
1225
|
+
function keyBuilder$m(luvio, params) {
|
|
1226
|
+
return keyBuilder$o(luvio, {
|
|
1182
1227
|
id: params.urlParams.appIdOrApiName
|
|
1183
1228
|
});
|
|
1184
1229
|
}
|
|
1185
|
-
function getResponseCacheKeys$
|
|
1186
|
-
const key = keyBuilder$
|
|
1230
|
+
function getResponseCacheKeys$8(cacheKeyMap, luvio, resourceParams) {
|
|
1231
|
+
const key = keyBuilder$m(luvio, resourceParams);
|
|
1187
1232
|
cacheKeyMap.set(key, {
|
|
1188
1233
|
namespace: keyPrefix,
|
|
1189
|
-
representationName: RepresentationType$
|
|
1234
|
+
representationName: RepresentationType$9,
|
|
1190
1235
|
mergeable: false
|
|
1191
1236
|
});
|
|
1192
1237
|
}
|
|
1193
1238
|
function evictSuccess(luvio, resourceParams) {
|
|
1194
|
-
const key = keyBuilder$
|
|
1239
|
+
const key = keyBuilder$m(luvio, resourceParams);
|
|
1195
1240
|
luvio.storeEvict(key);
|
|
1196
1241
|
}
|
|
1197
|
-
function createResourceRequest$
|
|
1242
|
+
function createResourceRequest$8(config) {
|
|
1198
1243
|
const headers = {};
|
|
1199
1244
|
return {
|
|
1200
1245
|
baseUri: '/services/data/v62.0',
|
|
@@ -1208,33 +1253,33 @@ function createResourceRequest$6(config) {
|
|
|
1208
1253
|
};
|
|
1209
1254
|
}
|
|
1210
1255
|
|
|
1211
|
-
const adapterName$
|
|
1256
|
+
const adapterName$8 = 'deleteApp';
|
|
1212
1257
|
const deleteApp_ConfigPropertyMetadata = [
|
|
1213
1258
|
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1214
1259
|
];
|
|
1215
|
-
const deleteApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1216
|
-
const createResourceParams$
|
|
1217
|
-
function typeCheckConfig$
|
|
1260
|
+
const deleteApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, deleteApp_ConfigPropertyMetadata);
|
|
1261
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$a(deleteApp_ConfigPropertyMetadata);
|
|
1262
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
1218
1263
|
const config = {};
|
|
1219
|
-
typeCheckConfig$
|
|
1264
|
+
typeCheckConfig$a(untrustedConfig, config, deleteApp_ConfigPropertyMetadata);
|
|
1220
1265
|
return config;
|
|
1221
1266
|
}
|
|
1222
|
-
function validateAdapterConfig$
|
|
1267
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
1223
1268
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1224
1269
|
return null;
|
|
1225
1270
|
}
|
|
1226
1271
|
if (process.env.NODE_ENV !== 'production') {
|
|
1227
1272
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1228
1273
|
}
|
|
1229
|
-
const config = typeCheckConfig$
|
|
1274
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
1230
1275
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1231
1276
|
return null;
|
|
1232
1277
|
}
|
|
1233
1278
|
return config;
|
|
1234
1279
|
}
|
|
1235
|
-
function buildNetworkSnapshot$
|
|
1236
|
-
const resourceParams = createResourceParams$
|
|
1237
|
-
const request = createResourceRequest$
|
|
1280
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
1281
|
+
const resourceParams = createResourceParams$8(config);
|
|
1282
|
+
const request = createResourceRequest$8(resourceParams);
|
|
1238
1283
|
return luvio.dispatchResourceRequest(request, options)
|
|
1239
1284
|
.then(() => {
|
|
1240
1285
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -1242,7 +1287,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
1242
1287
|
return luvio.storeBroadcast();
|
|
1243
1288
|
}, () => {
|
|
1244
1289
|
const cache = new StoreKeyMap();
|
|
1245
|
-
getResponseCacheKeys$
|
|
1290
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams);
|
|
1246
1291
|
return cache;
|
|
1247
1292
|
});
|
|
1248
1293
|
}, (response) => {
|
|
@@ -1252,33 +1297,33 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
1252
1297
|
}
|
|
1253
1298
|
const deleteAppAdapterFactory = (luvio) => {
|
|
1254
1299
|
return function AppFrameworkdeleteApp(untrustedConfig) {
|
|
1255
|
-
const config = validateAdapterConfig$
|
|
1300
|
+
const config = validateAdapterConfig$8(untrustedConfig, deleteApp_ConfigPropertyNames);
|
|
1256
1301
|
// Invalid or incomplete config
|
|
1257
1302
|
if (config === null) {
|
|
1258
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
1303
|
+
throw new Error(`Invalid config for "${adapterName$8}"`);
|
|
1259
1304
|
}
|
|
1260
|
-
return buildNetworkSnapshot$
|
|
1305
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
1261
1306
|
};
|
|
1262
1307
|
};
|
|
1263
1308
|
|
|
1264
|
-
function select$
|
|
1265
|
-
return select$
|
|
1309
|
+
function select$f(luvio, params) {
|
|
1310
|
+
return select$i();
|
|
1266
1311
|
}
|
|
1267
|
-
function keyBuilder$
|
|
1268
|
-
return keyBuilder$
|
|
1312
|
+
function keyBuilder$l(luvio, params) {
|
|
1313
|
+
return keyBuilder$o(luvio, {
|
|
1269
1314
|
id: params.urlParams.appIdOrApiName
|
|
1270
1315
|
});
|
|
1271
1316
|
}
|
|
1272
|
-
function getResponseCacheKeys$
|
|
1273
|
-
getTypeCacheKeys$
|
|
1317
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
1318
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
1274
1319
|
}
|
|
1275
|
-
function ingestSuccess$
|
|
1320
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
1276
1321
|
const { body } = response;
|
|
1277
|
-
const key = keyBuilder$
|
|
1278
|
-
luvio.storeIngest(key, ingest$
|
|
1322
|
+
const key = keyBuilder$l(luvio, resourceParams);
|
|
1323
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
1279
1324
|
const snapshot = luvio.storeLookup({
|
|
1280
1325
|
recordId: key,
|
|
1281
|
-
node: select$
|
|
1326
|
+
node: select$f(),
|
|
1282
1327
|
variables: {},
|
|
1283
1328
|
}, snapshotRefresh);
|
|
1284
1329
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1289,19 +1334,19 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1289
1334
|
deepFreeze(snapshot.data);
|
|
1290
1335
|
return snapshot;
|
|
1291
1336
|
}
|
|
1292
|
-
function ingestError$
|
|
1293
|
-
const key = keyBuilder$
|
|
1337
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
1338
|
+
const key = keyBuilder$l(luvio, params);
|
|
1294
1339
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1295
1340
|
const storeMetadataParams = {
|
|
1296
|
-
ttl: TTL$
|
|
1341
|
+
ttl: TTL$9,
|
|
1297
1342
|
namespace: keyPrefix,
|
|
1298
|
-
version: VERSION$
|
|
1299
|
-
representationName: RepresentationType$
|
|
1343
|
+
version: VERSION$9,
|
|
1344
|
+
representationName: RepresentationType$9
|
|
1300
1345
|
};
|
|
1301
1346
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1302
1347
|
return errorSnapshot;
|
|
1303
1348
|
}
|
|
1304
|
-
function createResourceRequest$
|
|
1349
|
+
function createResourceRequest$7(config) {
|
|
1305
1350
|
const headers = {};
|
|
1306
1351
|
return {
|
|
1307
1352
|
baseUri: '/services/data/v62.0',
|
|
@@ -1314,125 +1359,125 @@ function createResourceRequest$5(config) {
|
|
|
1314
1359
|
priority: 'normal',
|
|
1315
1360
|
};
|
|
1316
1361
|
}
|
|
1317
|
-
function createResourceRequestFromRepresentation$
|
|
1362
|
+
function createResourceRequestFromRepresentation$5(representation) {
|
|
1318
1363
|
const config = {
|
|
1319
1364
|
urlParams: {},
|
|
1320
1365
|
};
|
|
1321
1366
|
config.urlParams.appIdOrApiName = representation.id;
|
|
1322
|
-
return createResourceRequest$
|
|
1367
|
+
return createResourceRequest$7(config);
|
|
1323
1368
|
}
|
|
1324
1369
|
|
|
1325
|
-
const adapterName$
|
|
1370
|
+
const adapterName$7 = 'getApp';
|
|
1326
1371
|
const getApp_ConfigPropertyMetadata = [
|
|
1327
1372
|
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1328
1373
|
];
|
|
1329
|
-
const getApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1330
|
-
const createResourceParams$
|
|
1331
|
-
function keyBuilder$
|
|
1332
|
-
const resourceParams = createResourceParams$
|
|
1333
|
-
return keyBuilder$
|
|
1374
|
+
const getApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getApp_ConfigPropertyMetadata);
|
|
1375
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$a(getApp_ConfigPropertyMetadata);
|
|
1376
|
+
function keyBuilder$k(luvio, config) {
|
|
1377
|
+
const resourceParams = createResourceParams$7(config);
|
|
1378
|
+
return keyBuilder$l(luvio, resourceParams);
|
|
1334
1379
|
}
|
|
1335
|
-
function typeCheckConfig$
|
|
1380
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
1336
1381
|
const config = {};
|
|
1337
|
-
typeCheckConfig$
|
|
1382
|
+
typeCheckConfig$a(untrustedConfig, config, getApp_ConfigPropertyMetadata);
|
|
1338
1383
|
return config;
|
|
1339
1384
|
}
|
|
1340
|
-
function validateAdapterConfig$
|
|
1385
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
1341
1386
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1342
1387
|
return null;
|
|
1343
1388
|
}
|
|
1344
1389
|
if (process.env.NODE_ENV !== 'production') {
|
|
1345
1390
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1346
1391
|
}
|
|
1347
|
-
const config = typeCheckConfig$
|
|
1392
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
1348
1393
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1349
1394
|
return null;
|
|
1350
1395
|
}
|
|
1351
1396
|
return config;
|
|
1352
1397
|
}
|
|
1353
|
-
function adapterFragment$
|
|
1354
|
-
createResourceParams$
|
|
1355
|
-
return select$
|
|
1398
|
+
function adapterFragment$7(luvio, config) {
|
|
1399
|
+
createResourceParams$7(config);
|
|
1400
|
+
return select$f();
|
|
1356
1401
|
}
|
|
1357
|
-
function onFetchResponseSuccess$
|
|
1358
|
-
const snapshot = ingestSuccess$
|
|
1402
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
1403
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
1359
1404
|
config,
|
|
1360
|
-
resolve: () => buildNetworkSnapshot$
|
|
1405
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
1361
1406
|
});
|
|
1362
1407
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1363
1408
|
}
|
|
1364
|
-
function onFetchResponseError$
|
|
1365
|
-
const snapshot = ingestError$
|
|
1409
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
1410
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
1366
1411
|
config,
|
|
1367
|
-
resolve: () => buildNetworkSnapshot$
|
|
1412
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
1368
1413
|
});
|
|
1369
1414
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1370
1415
|
}
|
|
1371
|
-
function buildNetworkSnapshot$
|
|
1372
|
-
const resourceParams = createResourceParams$
|
|
1373
|
-
const request = createResourceRequest$
|
|
1416
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
1417
|
+
const resourceParams = createResourceParams$7(config);
|
|
1418
|
+
const request = createResourceRequest$7(resourceParams);
|
|
1374
1419
|
return luvio.dispatchResourceRequest(request, options)
|
|
1375
1420
|
.then((response) => {
|
|
1376
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1421
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
1377
1422
|
const cache = new StoreKeyMap();
|
|
1378
|
-
getResponseCacheKeys$
|
|
1423
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
1379
1424
|
return cache;
|
|
1380
1425
|
});
|
|
1381
1426
|
}, (response) => {
|
|
1382
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1427
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
1383
1428
|
});
|
|
1384
1429
|
}
|
|
1385
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1386
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1430
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
1431
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
1387
1432
|
}
|
|
1388
|
-
function buildCachedSnapshotCachePolicy$
|
|
1433
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
1389
1434
|
const { luvio, config } = context;
|
|
1390
1435
|
const selector = {
|
|
1391
|
-
recordId: keyBuilder$
|
|
1392
|
-
node: adapterFragment$
|
|
1436
|
+
recordId: keyBuilder$k(luvio, config),
|
|
1437
|
+
node: adapterFragment$7(luvio, config),
|
|
1393
1438
|
variables: {},
|
|
1394
1439
|
};
|
|
1395
1440
|
const cacheSnapshot = storeLookup(selector, {
|
|
1396
1441
|
config,
|
|
1397
|
-
resolve: () => buildNetworkSnapshot$
|
|
1442
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
1398
1443
|
});
|
|
1399
1444
|
return cacheSnapshot;
|
|
1400
1445
|
}
|
|
1401
1446
|
const getAppAdapterFactory = (luvio) => function AppFramework__getApp(untrustedConfig, requestContext) {
|
|
1402
|
-
const config = validateAdapterConfig$
|
|
1447
|
+
const config = validateAdapterConfig$7(untrustedConfig, getApp_ConfigPropertyNames);
|
|
1403
1448
|
// Invalid or incomplete config
|
|
1404
1449
|
if (config === null) {
|
|
1405
1450
|
return null;
|
|
1406
1451
|
}
|
|
1407
1452
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1408
|
-
buildCachedSnapshotCachePolicy$
|
|
1453
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
1409
1454
|
};
|
|
1410
|
-
const notifyChangeFactory$
|
|
1455
|
+
const notifyChangeFactory$5 = (luvio, options) => {
|
|
1411
1456
|
return function getAppFrameworkAppsByAppIdOrApiNameNotifyChange(configs) {
|
|
1412
|
-
const keys = configs.map(c => keyBuilder$
|
|
1457
|
+
const keys = configs.map(c => keyBuilder$o(luvio, c));
|
|
1413
1458
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
1414
1459
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
1415
1460
|
const { key, record: val } = entries[i];
|
|
1416
|
-
const refreshRequest = createResourceRequestFromRepresentation$
|
|
1461
|
+
const refreshRequest = createResourceRequestFromRepresentation$5(val);
|
|
1417
1462
|
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
1418
1463
|
.then((response) => {
|
|
1419
1464
|
return luvio.handleSuccessResponse(() => {
|
|
1420
1465
|
const { body } = response;
|
|
1421
|
-
luvio.storeIngest(key, ingest$
|
|
1466
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
1422
1467
|
return luvio.storeBroadcast();
|
|
1423
1468
|
}, () => {
|
|
1424
1469
|
const cache = new StoreKeyMap();
|
|
1425
|
-
getTypeCacheKeys$
|
|
1470
|
+
getTypeCacheKeys$9(cache, luvio, response.body);
|
|
1426
1471
|
return cache;
|
|
1427
1472
|
});
|
|
1428
1473
|
}, (error) => {
|
|
1429
1474
|
return luvio.handleErrorResponse(() => {
|
|
1430
1475
|
const errorSnapshot = luvio.errorSnapshot(error);
|
|
1431
1476
|
luvio.storeIngestError(key, errorSnapshot, {
|
|
1432
|
-
ttl: TTL$
|
|
1477
|
+
ttl: TTL$9,
|
|
1433
1478
|
namespace: keyPrefix,
|
|
1434
|
-
version: VERSION$
|
|
1435
|
-
representationName: RepresentationType$
|
|
1479
|
+
version: VERSION$9,
|
|
1480
|
+
representationName: RepresentationType$9
|
|
1436
1481
|
});
|
|
1437
1482
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
1438
1483
|
});
|
|
@@ -1442,109 +1487,736 @@ const notifyChangeFactory$3 = (luvio, options) => {
|
|
|
1442
1487
|
};
|
|
1443
1488
|
};
|
|
1444
1489
|
|
|
1445
|
-
const TTL$
|
|
1446
|
-
const VERSION$
|
|
1447
|
-
function validate$
|
|
1490
|
+
const TTL$7 = 5000;
|
|
1491
|
+
const VERSION$7 = "b8e879a936b5069ec247355c66198ca7";
|
|
1492
|
+
function validate$7(obj, path = 'AppActivityItemRepresentation') {
|
|
1448
1493
|
const v_error = (() => {
|
|
1449
1494
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1450
1495
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1451
1496
|
}
|
|
1452
|
-
const
|
|
1453
|
-
const
|
|
1454
|
-
if (typeof
|
|
1455
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
1456
|
-
}
|
|
1457
|
-
const obj_assetIdOrName2 = obj.assetIdOrName2;
|
|
1458
|
-
const path_assetIdOrName2 = path + '.assetIdOrName2';
|
|
1459
|
-
let obj_assetIdOrName2_union0 = null;
|
|
1460
|
-
const obj_assetIdOrName2_union0_error = (() => {
|
|
1461
|
-
if (typeof obj_assetIdOrName2 !== 'string') {
|
|
1462
|
-
return new TypeError('Expected "string" but received "' + typeof obj_assetIdOrName2 + '" (at "' + path_assetIdOrName2 + '")');
|
|
1463
|
-
}
|
|
1464
|
-
})();
|
|
1465
|
-
if (obj_assetIdOrName2_union0_error != null) {
|
|
1466
|
-
obj_assetIdOrName2_union0 = obj_assetIdOrName2_union0_error.message;
|
|
1467
|
-
}
|
|
1468
|
-
let obj_assetIdOrName2_union1 = null;
|
|
1469
|
-
const obj_assetIdOrName2_union1_error = (() => {
|
|
1470
|
-
if (obj_assetIdOrName2 !== null) {
|
|
1471
|
-
return new TypeError('Expected "null" but received "' + typeof obj_assetIdOrName2 + '" (at "' + path_assetIdOrName2 + '")');
|
|
1472
|
-
}
|
|
1473
|
-
})();
|
|
1474
|
-
if (obj_assetIdOrName2_union1_error != null) {
|
|
1475
|
-
obj_assetIdOrName2_union1 = obj_assetIdOrName2_union1_error.message;
|
|
1476
|
-
}
|
|
1477
|
-
if (obj_assetIdOrName2_union0 && obj_assetIdOrName2_union1) {
|
|
1478
|
-
let message = 'Object doesn\'t match union (at "' + path_assetIdOrName2 + '")';
|
|
1479
|
-
message += '\n' + obj_assetIdOrName2_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1480
|
-
message += '\n' + obj_assetIdOrName2_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1481
|
-
return new TypeError(message);
|
|
1482
|
-
}
|
|
1483
|
-
const obj_assetIdOrName3 = obj.assetIdOrName3;
|
|
1484
|
-
const path_assetIdOrName3 = path + '.assetIdOrName3';
|
|
1485
|
-
let obj_assetIdOrName3_union0 = null;
|
|
1486
|
-
const obj_assetIdOrName3_union0_error = (() => {
|
|
1487
|
-
if (typeof obj_assetIdOrName3 !== 'string') {
|
|
1488
|
-
return new TypeError('Expected "string" but received "' + typeof obj_assetIdOrName3 + '" (at "' + path_assetIdOrName3 + '")');
|
|
1489
|
-
}
|
|
1490
|
-
})();
|
|
1491
|
-
if (obj_assetIdOrName3_union0_error != null) {
|
|
1492
|
-
obj_assetIdOrName3_union0 = obj_assetIdOrName3_union0_error.message;
|
|
1493
|
-
}
|
|
1494
|
-
let obj_assetIdOrName3_union1 = null;
|
|
1495
|
-
const obj_assetIdOrName3_union1_error = (() => {
|
|
1496
|
-
if (obj_assetIdOrName3 !== null) {
|
|
1497
|
-
return new TypeError('Expected "null" but received "' + typeof obj_assetIdOrName3 + '" (at "' + path_assetIdOrName3 + '")');
|
|
1498
|
-
}
|
|
1499
|
-
})();
|
|
1500
|
-
if (obj_assetIdOrName3_union1_error != null) {
|
|
1501
|
-
obj_assetIdOrName3_union1 = obj_assetIdOrName3_union1_error.message;
|
|
1497
|
+
const obj_activityType = obj.activityType;
|
|
1498
|
+
const path_activityType = path + '.activityType';
|
|
1499
|
+
if (typeof obj_activityType !== 'string') {
|
|
1500
|
+
return new TypeError('Expected "string" but received "' + typeof obj_activityType + '" (at "' + path_activityType + '")');
|
|
1502
1501
|
}
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
return new TypeError(message);
|
|
1502
|
+
const obj_appId = obj.appId;
|
|
1503
|
+
const path_appId = path + '.appId';
|
|
1504
|
+
if (typeof obj_appId !== 'string') {
|
|
1505
|
+
return new TypeError('Expected "string" but received "' + typeof obj_appId + '" (at "' + path_appId + '")');
|
|
1508
1506
|
}
|
|
1509
1507
|
const obj_id = obj.id;
|
|
1510
1508
|
const path_id = path + '.id';
|
|
1511
1509
|
if (typeof obj_id !== 'string') {
|
|
1512
1510
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1513
1511
|
}
|
|
1514
|
-
const
|
|
1515
|
-
const
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
const obj_templateAssetSourceName_union1_error = (() => {
|
|
1527
|
-
if (obj_templateAssetSourceName !== null) {
|
|
1528
|
-
return new TypeError('Expected "null" but received "' + typeof obj_templateAssetSourceName + '" (at "' + path_templateAssetSourceName + '")');
|
|
1512
|
+
const obj_runtimeRequest = obj.runtimeRequest;
|
|
1513
|
+
const path_runtimeRequest = path + '.runtimeRequest';
|
|
1514
|
+
if (typeof obj_runtimeRequest !== 'object' || ArrayIsArray(obj_runtimeRequest) || obj_runtimeRequest === null) {
|
|
1515
|
+
return new TypeError('Expected "object" but received "' + typeof obj_runtimeRequest + '" (at "' + path_runtimeRequest + '")');
|
|
1516
|
+
}
|
|
1517
|
+
const obj_runtimeRequest_keys = ObjectKeys(obj_runtimeRequest);
|
|
1518
|
+
for (let i = 0; i < obj_runtimeRequest_keys.length; i++) {
|
|
1519
|
+
const key = obj_runtimeRequest_keys[i];
|
|
1520
|
+
const obj_runtimeRequest_prop = obj_runtimeRequest[key];
|
|
1521
|
+
const path_runtimeRequest_prop = path_runtimeRequest + '["' + key + '"]';
|
|
1522
|
+
if (obj_runtimeRequest_prop === undefined) {
|
|
1523
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_runtimeRequest_prop + '" (at "' + path_runtimeRequest_prop + '")');
|
|
1529
1524
|
}
|
|
1530
|
-
})();
|
|
1531
|
-
if (obj_templateAssetSourceName_union1_error != null) {
|
|
1532
|
-
obj_templateAssetSourceName_union1 = obj_templateAssetSourceName_union1_error.message;
|
|
1533
1525
|
}
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
return new TypeError(message);
|
|
1526
|
+
const obj_url = obj.url;
|
|
1527
|
+
const path_url = path + '.url';
|
|
1528
|
+
if (typeof obj_url !== 'string') {
|
|
1529
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
1539
1530
|
}
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1531
|
+
})();
|
|
1532
|
+
return v_error === undefined ? null : v_error;
|
|
1533
|
+
}
|
|
1534
|
+
const RepresentationType$7 = 'AppActivityItemRepresentation';
|
|
1535
|
+
function keyBuilder$j(luvio, config) {
|
|
1536
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.appId + ':' + config.id;
|
|
1537
|
+
}
|
|
1538
|
+
function keyBuilderFromType$5(luvio, object) {
|
|
1539
|
+
const keyParams = {
|
|
1540
|
+
appId: object.appId,
|
|
1541
|
+
id: object.id
|
|
1542
|
+
};
|
|
1543
|
+
return keyBuilder$j(luvio, keyParams);
|
|
1544
|
+
}
|
|
1545
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
1546
|
+
return input;
|
|
1547
|
+
}
|
|
1548
|
+
const select$e = function AppActivityItemRepresentationSelect() {
|
|
1549
|
+
return {
|
|
1550
|
+
kind: 'Fragment',
|
|
1551
|
+
version: VERSION$7,
|
|
1552
|
+
private: [],
|
|
1553
|
+
selections: [
|
|
1554
|
+
{
|
|
1555
|
+
name: 'activityType',
|
|
1556
|
+
kind: 'Scalar'
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
name: 'appId',
|
|
1560
|
+
kind: 'Scalar'
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
name: 'id',
|
|
1564
|
+
kind: 'Scalar'
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
name: 'runtimeRequest',
|
|
1568
|
+
kind: 'Object',
|
|
1569
|
+
// any
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
name: 'url',
|
|
1573
|
+
kind: 'Scalar'
|
|
1574
|
+
}
|
|
1575
|
+
]
|
|
1576
|
+
};
|
|
1577
|
+
};
|
|
1578
|
+
function equals$7(existing, incoming) {
|
|
1579
|
+
const existing_activityType = existing.activityType;
|
|
1580
|
+
const incoming_activityType = incoming.activityType;
|
|
1581
|
+
if (!(existing_activityType === incoming_activityType)) {
|
|
1582
|
+
return false;
|
|
1583
|
+
}
|
|
1584
|
+
const existing_appId = existing.appId;
|
|
1585
|
+
const incoming_appId = incoming.appId;
|
|
1586
|
+
if (!(existing_appId === incoming_appId)) {
|
|
1587
|
+
return false;
|
|
1588
|
+
}
|
|
1589
|
+
const existing_id = existing.id;
|
|
1590
|
+
const incoming_id = incoming.id;
|
|
1591
|
+
if (!(existing_id === incoming_id)) {
|
|
1592
|
+
return false;
|
|
1593
|
+
}
|
|
1594
|
+
const existing_url = existing.url;
|
|
1595
|
+
const incoming_url = incoming.url;
|
|
1596
|
+
if (!(existing_url === incoming_url)) {
|
|
1597
|
+
return false;
|
|
1598
|
+
}
|
|
1599
|
+
const existing_runtimeRequest = existing.runtimeRequest;
|
|
1600
|
+
const incoming_runtimeRequest = incoming.runtimeRequest;
|
|
1601
|
+
const equals_runtimeRequest_props = equalsObject(existing_runtimeRequest, incoming_runtimeRequest, (existing_runtimeRequest_prop, incoming_runtimeRequest_prop) => {
|
|
1602
|
+
if (JSONStringify(incoming_runtimeRequest_prop) !== JSONStringify(existing_runtimeRequest_prop)) {
|
|
1603
|
+
return false;
|
|
1604
|
+
}
|
|
1605
|
+
});
|
|
1606
|
+
if (equals_runtimeRequest_props === false) {
|
|
1607
|
+
return false;
|
|
1608
|
+
}
|
|
1609
|
+
return true;
|
|
1610
|
+
}
|
|
1611
|
+
const ingest$7 = function AppActivityItemRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1612
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1613
|
+
const validateError = validate$7(input);
|
|
1614
|
+
if (validateError !== null) {
|
|
1615
|
+
throw validateError;
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
const key = keyBuilderFromType$5(luvio, input);
|
|
1619
|
+
const ttlToUse = TTL$7;
|
|
1620
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "AppFramework", VERSION$7, RepresentationType$7, equals$7);
|
|
1621
|
+
return createLink(key);
|
|
1622
|
+
};
|
|
1623
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
1624
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1625
|
+
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
1626
|
+
rootKeySet.set(rootKey, {
|
|
1627
|
+
namespace: keyPrefix,
|
|
1628
|
+
representationName: RepresentationType$7,
|
|
1629
|
+
mergeable: false
|
|
1630
|
+
});
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
const TTL$6 = 5000;
|
|
1634
|
+
const VERSION$6 = "e0f049ec23678e696fb7c592c9641c65";
|
|
1635
|
+
function validate$6(obj, path = 'AppActivityCollectionRepresentation') {
|
|
1636
|
+
const v_error = (() => {
|
|
1637
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1638
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1639
|
+
}
|
|
1640
|
+
const obj_appId = obj.appId;
|
|
1641
|
+
const path_appId = path + '.appId';
|
|
1642
|
+
if (typeof obj_appId !== 'string') {
|
|
1643
|
+
return new TypeError('Expected "string" but received "' + typeof obj_appId + '" (at "' + path_appId + '")');
|
|
1644
|
+
}
|
|
1645
|
+
const obj_items = obj.items;
|
|
1646
|
+
const path_items = path + '.items';
|
|
1647
|
+
if (!ArrayIsArray(obj_items)) {
|
|
1648
|
+
return new TypeError('Expected "array" but received "' + typeof obj_items + '" (at "' + path_items + '")');
|
|
1649
|
+
}
|
|
1650
|
+
for (let i = 0; i < obj_items.length; i++) {
|
|
1651
|
+
const obj_items_item = obj_items[i];
|
|
1652
|
+
const path_items_item = path_items + '[' + i + ']';
|
|
1653
|
+
if (typeof obj_items_item !== 'object') {
|
|
1654
|
+
return new TypeError('Expected "object" but received "' + typeof obj_items_item + '" (at "' + path_items_item + '")');
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
})();
|
|
1658
|
+
return v_error === undefined ? null : v_error;
|
|
1659
|
+
}
|
|
1660
|
+
const RepresentationType$6 = 'AppActivityCollectionRepresentation';
|
|
1661
|
+
function keyBuilder$i(luvio, config) {
|
|
1662
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.appId;
|
|
1663
|
+
}
|
|
1664
|
+
function keyBuilderFromType$4(luvio, object) {
|
|
1665
|
+
const keyParams = {
|
|
1666
|
+
appId: object.appId
|
|
1667
|
+
};
|
|
1668
|
+
return keyBuilder$i(luvio, keyParams);
|
|
1669
|
+
}
|
|
1670
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
1671
|
+
const input_items = input.items;
|
|
1672
|
+
const input_items_id = path.fullPath + '__items';
|
|
1673
|
+
for (let i = 0; i < input_items.length; i++) {
|
|
1674
|
+
const input_items_item = input_items[i];
|
|
1675
|
+
let input_items_item_id = input_items_id + '__' + i;
|
|
1676
|
+
input_items[i] = ingest$7(input_items_item, {
|
|
1677
|
+
fullPath: input_items_item_id,
|
|
1678
|
+
propertyName: i,
|
|
1679
|
+
parent: {
|
|
1680
|
+
data: input,
|
|
1681
|
+
key: path.fullPath,
|
|
1682
|
+
existing: existing,
|
|
1683
|
+
},
|
|
1684
|
+
ttl: path.ttl
|
|
1685
|
+
}, luvio, store, timestamp);
|
|
1686
|
+
}
|
|
1687
|
+
return input;
|
|
1688
|
+
}
|
|
1689
|
+
const select$d = function AppActivityCollectionRepresentationSelect() {
|
|
1690
|
+
return {
|
|
1691
|
+
kind: 'Fragment',
|
|
1692
|
+
version: VERSION$6,
|
|
1693
|
+
private: [],
|
|
1694
|
+
selections: [
|
|
1695
|
+
{
|
|
1696
|
+
name: 'appId',
|
|
1697
|
+
kind: 'Scalar'
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
name: 'items',
|
|
1701
|
+
kind: 'Link',
|
|
1702
|
+
plural: true,
|
|
1703
|
+
fragment: select$e()
|
|
1704
|
+
}
|
|
1705
|
+
]
|
|
1706
|
+
};
|
|
1707
|
+
};
|
|
1708
|
+
function equals$6(existing, incoming) {
|
|
1709
|
+
const existing_appId = existing.appId;
|
|
1710
|
+
const incoming_appId = incoming.appId;
|
|
1711
|
+
if (!(existing_appId === incoming_appId)) {
|
|
1712
|
+
return false;
|
|
1713
|
+
}
|
|
1714
|
+
const existing_items = existing.items;
|
|
1715
|
+
const incoming_items = incoming.items;
|
|
1716
|
+
const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
|
|
1717
|
+
if (!(existing_items_item.__ref === incoming_items_item.__ref)) {
|
|
1718
|
+
return false;
|
|
1719
|
+
}
|
|
1720
|
+
});
|
|
1721
|
+
if (equals_items_items === false) {
|
|
1722
|
+
return false;
|
|
1723
|
+
}
|
|
1724
|
+
return true;
|
|
1725
|
+
}
|
|
1726
|
+
const ingest$6 = function AppActivityCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1727
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1728
|
+
const validateError = validate$6(input);
|
|
1729
|
+
if (validateError !== null) {
|
|
1730
|
+
throw validateError;
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
const key = keyBuilderFromType$4(luvio, input);
|
|
1734
|
+
const ttlToUse = TTL$6;
|
|
1735
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "AppFramework", VERSION$6, RepresentationType$6, equals$6);
|
|
1736
|
+
return createLink(key);
|
|
1737
|
+
};
|
|
1738
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
1739
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1740
|
+
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
1741
|
+
rootKeySet.set(rootKey, {
|
|
1742
|
+
namespace: keyPrefix,
|
|
1743
|
+
representationName: RepresentationType$6,
|
|
1744
|
+
mergeable: false
|
|
1745
|
+
});
|
|
1746
|
+
const input_items_length = input.items.length;
|
|
1747
|
+
for (let i = 0; i < input_items_length; i++) {
|
|
1748
|
+
getTypeCacheKeys$7(rootKeySet, luvio, input.items[i]);
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
function select$c(luvio, params) {
|
|
1753
|
+
return select$d();
|
|
1754
|
+
}
|
|
1755
|
+
function keyBuilder$h(luvio, params) {
|
|
1756
|
+
return keyBuilder$i(luvio, {
|
|
1757
|
+
appId: params.urlParams.appIdOrApiName
|
|
1758
|
+
});
|
|
1759
|
+
}
|
|
1760
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
1761
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
1762
|
+
}
|
|
1763
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
1764
|
+
const { body } = response;
|
|
1765
|
+
const key = keyBuilder$h(luvio, resourceParams);
|
|
1766
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
1767
|
+
const snapshot = luvio.storeLookup({
|
|
1768
|
+
recordId: key,
|
|
1769
|
+
node: select$c(),
|
|
1770
|
+
variables: {},
|
|
1771
|
+
}, snapshotRefresh);
|
|
1772
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1773
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1774
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
deepFreeze(snapshot.data);
|
|
1778
|
+
return snapshot;
|
|
1779
|
+
}
|
|
1780
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
1781
|
+
const key = keyBuilder$h(luvio, params);
|
|
1782
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1783
|
+
const storeMetadataParams = {
|
|
1784
|
+
ttl: TTL$6,
|
|
1785
|
+
namespace: keyPrefix,
|
|
1786
|
+
version: VERSION$6,
|
|
1787
|
+
representationName: RepresentationType$6
|
|
1788
|
+
};
|
|
1789
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1790
|
+
return errorSnapshot;
|
|
1791
|
+
}
|
|
1792
|
+
function createResourceRequest$6(config) {
|
|
1793
|
+
const headers = {};
|
|
1794
|
+
return {
|
|
1795
|
+
baseUri: '/services/data/v62.0',
|
|
1796
|
+
basePath: '/app-framework/apps/' + config.urlParams.appIdOrApiName + '/activities',
|
|
1797
|
+
method: 'get',
|
|
1798
|
+
body: null,
|
|
1799
|
+
urlParams: config.urlParams,
|
|
1800
|
+
queryParams: {},
|
|
1801
|
+
headers,
|
|
1802
|
+
priority: 'normal',
|
|
1803
|
+
};
|
|
1804
|
+
}
|
|
1805
|
+
function createResourceRequestFromRepresentation$4(representation) {
|
|
1806
|
+
const config = {
|
|
1807
|
+
urlParams: {},
|
|
1808
|
+
};
|
|
1809
|
+
config.urlParams.appIdOrApiName = representation.appId;
|
|
1810
|
+
return createResourceRequest$6(config);
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
const adapterName$6 = 'getAppActivities';
|
|
1814
|
+
const getAppActivities_ConfigPropertyMetadata = [
|
|
1815
|
+
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1816
|
+
];
|
|
1817
|
+
const getAppActivities_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getAppActivities_ConfigPropertyMetadata);
|
|
1818
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$a(getAppActivities_ConfigPropertyMetadata);
|
|
1819
|
+
function keyBuilder$g(luvio, config) {
|
|
1820
|
+
const resourceParams = createResourceParams$6(config);
|
|
1821
|
+
return keyBuilder$h(luvio, resourceParams);
|
|
1822
|
+
}
|
|
1823
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
1824
|
+
const config = {};
|
|
1825
|
+
typeCheckConfig$a(untrustedConfig, config, getAppActivities_ConfigPropertyMetadata);
|
|
1826
|
+
return config;
|
|
1827
|
+
}
|
|
1828
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
1829
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1830
|
+
return null;
|
|
1831
|
+
}
|
|
1832
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1833
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1834
|
+
}
|
|
1835
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
1836
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1837
|
+
return null;
|
|
1838
|
+
}
|
|
1839
|
+
return config;
|
|
1840
|
+
}
|
|
1841
|
+
function adapterFragment$6(luvio, config) {
|
|
1842
|
+
createResourceParams$6(config);
|
|
1843
|
+
return select$c();
|
|
1844
|
+
}
|
|
1845
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
1846
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
1847
|
+
config,
|
|
1848
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
1849
|
+
});
|
|
1850
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1851
|
+
}
|
|
1852
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
1853
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
1854
|
+
config,
|
|
1855
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
1856
|
+
});
|
|
1857
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1858
|
+
}
|
|
1859
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
1860
|
+
const resourceParams = createResourceParams$6(config);
|
|
1861
|
+
const request = createResourceRequest$6(resourceParams);
|
|
1862
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1863
|
+
.then((response) => {
|
|
1864
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
1865
|
+
const cache = new StoreKeyMap();
|
|
1866
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
1867
|
+
return cache;
|
|
1868
|
+
});
|
|
1869
|
+
}, (response) => {
|
|
1870
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
1871
|
+
});
|
|
1872
|
+
}
|
|
1873
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
1874
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
1875
|
+
}
|
|
1876
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
1877
|
+
const { luvio, config } = context;
|
|
1878
|
+
const selector = {
|
|
1879
|
+
recordId: keyBuilder$g(luvio, config),
|
|
1880
|
+
node: adapterFragment$6(luvio, config),
|
|
1881
|
+
variables: {},
|
|
1882
|
+
};
|
|
1883
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1884
|
+
config,
|
|
1885
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
1886
|
+
});
|
|
1887
|
+
return cacheSnapshot;
|
|
1888
|
+
}
|
|
1889
|
+
const getAppActivitiesAdapterFactory = (luvio) => function AppFramework__getAppActivities(untrustedConfig, requestContext) {
|
|
1890
|
+
const config = validateAdapterConfig$6(untrustedConfig, getAppActivities_ConfigPropertyNames);
|
|
1891
|
+
// Invalid or incomplete config
|
|
1892
|
+
if (config === null) {
|
|
1893
|
+
return null;
|
|
1894
|
+
}
|
|
1895
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1896
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
1897
|
+
};
|
|
1898
|
+
const notifyChangeFactory$4 = (luvio, options) => {
|
|
1899
|
+
return function getAppFrameworkAppsActivitiesByAppIdOrApiNameNotifyChange(configs) {
|
|
1900
|
+
const keys = configs.map(c => keyBuilder$i(luvio, c));
|
|
1901
|
+
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
1902
|
+
for (let i = 0, len = entries.length; i < len; i++) {
|
|
1903
|
+
const { key, record: val } = entries[i];
|
|
1904
|
+
const refreshRequest = createResourceRequestFromRepresentation$4(val);
|
|
1905
|
+
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
1906
|
+
.then((response) => {
|
|
1907
|
+
return luvio.handleSuccessResponse(() => {
|
|
1908
|
+
const { body } = response;
|
|
1909
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
1910
|
+
return luvio.storeBroadcast();
|
|
1911
|
+
}, () => {
|
|
1912
|
+
const cache = new StoreKeyMap();
|
|
1913
|
+
getTypeCacheKeys$6(cache, luvio, response.body);
|
|
1914
|
+
return cache;
|
|
1915
|
+
});
|
|
1916
|
+
}, (error) => {
|
|
1917
|
+
return luvio.handleErrorResponse(() => {
|
|
1918
|
+
const errorSnapshot = luvio.errorSnapshot(error);
|
|
1919
|
+
luvio.storeIngestError(key, errorSnapshot, {
|
|
1920
|
+
ttl: TTL$6,
|
|
1921
|
+
namespace: keyPrefix,
|
|
1922
|
+
version: VERSION$6,
|
|
1923
|
+
representationName: RepresentationType$6
|
|
1924
|
+
});
|
|
1925
|
+
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
1926
|
+
});
|
|
1927
|
+
});
|
|
1928
|
+
}
|
|
1929
|
+
});
|
|
1930
|
+
};
|
|
1931
|
+
};
|
|
1932
|
+
|
|
1933
|
+
function select$b(luvio, params) {
|
|
1934
|
+
return select$e();
|
|
1935
|
+
}
|
|
1936
|
+
function keyBuilder$f(luvio, params) {
|
|
1937
|
+
return keyBuilder$j(luvio, {
|
|
1938
|
+
appId: params.urlParams.appIdOrApiName,
|
|
1939
|
+
id: params.urlParams.id
|
|
1940
|
+
});
|
|
1941
|
+
}
|
|
1942
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
1943
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
1944
|
+
}
|
|
1945
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
1946
|
+
const { body } = response;
|
|
1947
|
+
const key = keyBuilder$f(luvio, resourceParams);
|
|
1948
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
1949
|
+
const snapshot = luvio.storeLookup({
|
|
1950
|
+
recordId: key,
|
|
1951
|
+
node: select$b(),
|
|
1952
|
+
variables: {},
|
|
1953
|
+
}, snapshotRefresh);
|
|
1954
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1955
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1956
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
deepFreeze(snapshot.data);
|
|
1960
|
+
return snapshot;
|
|
1961
|
+
}
|
|
1962
|
+
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
1963
|
+
const key = keyBuilder$f(luvio, params);
|
|
1964
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1965
|
+
const storeMetadataParams = {
|
|
1966
|
+
ttl: TTL$7,
|
|
1967
|
+
namespace: keyPrefix,
|
|
1968
|
+
version: VERSION$7,
|
|
1969
|
+
representationName: RepresentationType$7
|
|
1970
|
+
};
|
|
1971
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1972
|
+
return errorSnapshot;
|
|
1973
|
+
}
|
|
1974
|
+
function createResourceRequest$5(config) {
|
|
1975
|
+
const headers = {};
|
|
1976
|
+
return {
|
|
1977
|
+
baseUri: '/services/data/v62.0',
|
|
1978
|
+
basePath: '/app-framework/apps/' + config.urlParams.appIdOrApiName + '/activities/' + config.urlParams.id + '',
|
|
1979
|
+
method: 'get',
|
|
1980
|
+
body: null,
|
|
1981
|
+
urlParams: config.urlParams,
|
|
1982
|
+
queryParams: {},
|
|
1983
|
+
headers,
|
|
1984
|
+
priority: 'normal',
|
|
1985
|
+
};
|
|
1986
|
+
}
|
|
1987
|
+
function createResourceRequestFromRepresentation$3(representation) {
|
|
1988
|
+
const config = {
|
|
1989
|
+
urlParams: {},
|
|
1990
|
+
};
|
|
1991
|
+
config.urlParams.appIdOrApiName = representation.appId;
|
|
1992
|
+
config.urlParams.id = representation.id;
|
|
1993
|
+
return createResourceRequest$5(config);
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1996
|
+
const adapterName$5 = 'getAppActivity';
|
|
1997
|
+
const getAppActivity_ConfigPropertyMetadata = [
|
|
1998
|
+
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1999
|
+
generateParamConfigMetadata('id', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2000
|
+
];
|
|
2001
|
+
const getAppActivity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getAppActivity_ConfigPropertyMetadata);
|
|
2002
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$a(getAppActivity_ConfigPropertyMetadata);
|
|
2003
|
+
function keyBuilder$e(luvio, config) {
|
|
2004
|
+
const resourceParams = createResourceParams$5(config);
|
|
2005
|
+
return keyBuilder$f(luvio, resourceParams);
|
|
2006
|
+
}
|
|
2007
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
2008
|
+
const config = {};
|
|
2009
|
+
typeCheckConfig$a(untrustedConfig, config, getAppActivity_ConfigPropertyMetadata);
|
|
2010
|
+
return config;
|
|
2011
|
+
}
|
|
2012
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
2013
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
2014
|
+
return null;
|
|
2015
|
+
}
|
|
2016
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2017
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
2018
|
+
}
|
|
2019
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
2020
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2021
|
+
return null;
|
|
2022
|
+
}
|
|
2023
|
+
return config;
|
|
2024
|
+
}
|
|
2025
|
+
function adapterFragment$5(luvio, config) {
|
|
2026
|
+
createResourceParams$5(config);
|
|
2027
|
+
return select$b();
|
|
2028
|
+
}
|
|
2029
|
+
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
2030
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
2031
|
+
config,
|
|
2032
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
2033
|
+
});
|
|
2034
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
2035
|
+
}
|
|
2036
|
+
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
2037
|
+
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
2038
|
+
config,
|
|
2039
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
2040
|
+
});
|
|
2041
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
2042
|
+
}
|
|
2043
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
2044
|
+
const resourceParams = createResourceParams$5(config);
|
|
2045
|
+
const request = createResourceRequest$5(resourceParams);
|
|
2046
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
2047
|
+
.then((response) => {
|
|
2048
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
2049
|
+
const cache = new StoreKeyMap();
|
|
2050
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
2051
|
+
return cache;
|
|
2052
|
+
});
|
|
2053
|
+
}, (response) => {
|
|
2054
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
|
|
2055
|
+
});
|
|
2056
|
+
}
|
|
2057
|
+
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
2058
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
2059
|
+
}
|
|
2060
|
+
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
2061
|
+
const { luvio, config } = context;
|
|
2062
|
+
const selector = {
|
|
2063
|
+
recordId: keyBuilder$e(luvio, config),
|
|
2064
|
+
node: adapterFragment$5(luvio, config),
|
|
2065
|
+
variables: {},
|
|
2066
|
+
};
|
|
2067
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
2068
|
+
config,
|
|
2069
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
2070
|
+
});
|
|
2071
|
+
return cacheSnapshot;
|
|
2072
|
+
}
|
|
2073
|
+
const getAppActivityAdapterFactory = (luvio) => function AppFramework__getAppActivity(untrustedConfig, requestContext) {
|
|
2074
|
+
const config = validateAdapterConfig$5(untrustedConfig, getAppActivity_ConfigPropertyNames);
|
|
2075
|
+
// Invalid or incomplete config
|
|
2076
|
+
if (config === null) {
|
|
2077
|
+
return null;
|
|
2078
|
+
}
|
|
2079
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2080
|
+
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
2081
|
+
};
|
|
2082
|
+
const notifyChangeFactory$3 = (luvio, options) => {
|
|
2083
|
+
return function getAppFrameworkAppsActivitiesByAppIdOrApiNameAndIdNotifyChange(configs) {
|
|
2084
|
+
const keys = configs.map(c => keyBuilder$j(luvio, c));
|
|
2085
|
+
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
2086
|
+
for (let i = 0, len = entries.length; i < len; i++) {
|
|
2087
|
+
const { key, record: val } = entries[i];
|
|
2088
|
+
const refreshRequest = createResourceRequestFromRepresentation$3(val);
|
|
2089
|
+
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
2090
|
+
.then((response) => {
|
|
2091
|
+
return luvio.handleSuccessResponse(() => {
|
|
2092
|
+
const { body } = response;
|
|
2093
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
2094
|
+
return luvio.storeBroadcast();
|
|
2095
|
+
}, () => {
|
|
2096
|
+
const cache = new StoreKeyMap();
|
|
2097
|
+
getTypeCacheKeys$7(cache, luvio, response.body);
|
|
2098
|
+
return cache;
|
|
2099
|
+
});
|
|
2100
|
+
}, (error) => {
|
|
2101
|
+
return luvio.handleErrorResponse(() => {
|
|
2102
|
+
const errorSnapshot = luvio.errorSnapshot(error);
|
|
2103
|
+
luvio.storeIngestError(key, errorSnapshot, {
|
|
2104
|
+
ttl: TTL$7,
|
|
2105
|
+
namespace: keyPrefix,
|
|
2106
|
+
version: VERSION$7,
|
|
2107
|
+
representationName: RepresentationType$7
|
|
2108
|
+
});
|
|
2109
|
+
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
2110
|
+
});
|
|
2111
|
+
});
|
|
2112
|
+
}
|
|
2113
|
+
});
|
|
2114
|
+
};
|
|
2115
|
+
};
|
|
2116
|
+
|
|
2117
|
+
const TTL$5 = 5000;
|
|
2118
|
+
const VERSION$5 = "522326f05ee6a404b50ed781361a75b1";
|
|
2119
|
+
function validate$5(obj, path = 'AssetRepresentation') {
|
|
2120
|
+
const v_error = (() => {
|
|
2121
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2122
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2123
|
+
}
|
|
2124
|
+
const obj_assetIdOrName = obj.assetIdOrName;
|
|
2125
|
+
const path_assetIdOrName = path + '.assetIdOrName';
|
|
2126
|
+
if (typeof obj_assetIdOrName !== 'string') {
|
|
2127
|
+
return new TypeError('Expected "string" but received "' + typeof obj_assetIdOrName + '" (at "' + path_assetIdOrName + '")');
|
|
2128
|
+
}
|
|
2129
|
+
const obj_assetIdOrName2 = obj.assetIdOrName2;
|
|
2130
|
+
const path_assetIdOrName2 = path + '.assetIdOrName2';
|
|
2131
|
+
let obj_assetIdOrName2_union0 = null;
|
|
2132
|
+
const obj_assetIdOrName2_union0_error = (() => {
|
|
2133
|
+
if (typeof obj_assetIdOrName2 !== 'string') {
|
|
2134
|
+
return new TypeError('Expected "string" but received "' + typeof obj_assetIdOrName2 + '" (at "' + path_assetIdOrName2 + '")');
|
|
2135
|
+
}
|
|
2136
|
+
})();
|
|
2137
|
+
if (obj_assetIdOrName2_union0_error != null) {
|
|
2138
|
+
obj_assetIdOrName2_union0 = obj_assetIdOrName2_union0_error.message;
|
|
2139
|
+
}
|
|
2140
|
+
let obj_assetIdOrName2_union1 = null;
|
|
2141
|
+
const obj_assetIdOrName2_union1_error = (() => {
|
|
2142
|
+
if (obj_assetIdOrName2 !== null) {
|
|
2143
|
+
return new TypeError('Expected "null" but received "' + typeof obj_assetIdOrName2 + '" (at "' + path_assetIdOrName2 + '")');
|
|
2144
|
+
}
|
|
2145
|
+
})();
|
|
2146
|
+
if (obj_assetIdOrName2_union1_error != null) {
|
|
2147
|
+
obj_assetIdOrName2_union1 = obj_assetIdOrName2_union1_error.message;
|
|
2148
|
+
}
|
|
2149
|
+
if (obj_assetIdOrName2_union0 && obj_assetIdOrName2_union1) {
|
|
2150
|
+
let message = 'Object doesn\'t match union (at "' + path_assetIdOrName2 + '")';
|
|
2151
|
+
message += '\n' + obj_assetIdOrName2_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2152
|
+
message += '\n' + obj_assetIdOrName2_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2153
|
+
return new TypeError(message);
|
|
2154
|
+
}
|
|
2155
|
+
const obj_assetIdOrName3 = obj.assetIdOrName3;
|
|
2156
|
+
const path_assetIdOrName3 = path + '.assetIdOrName3';
|
|
2157
|
+
let obj_assetIdOrName3_union0 = null;
|
|
2158
|
+
const obj_assetIdOrName3_union0_error = (() => {
|
|
2159
|
+
if (typeof obj_assetIdOrName3 !== 'string') {
|
|
2160
|
+
return new TypeError('Expected "string" but received "' + typeof obj_assetIdOrName3 + '" (at "' + path_assetIdOrName3 + '")');
|
|
2161
|
+
}
|
|
2162
|
+
})();
|
|
2163
|
+
if (obj_assetIdOrName3_union0_error != null) {
|
|
2164
|
+
obj_assetIdOrName3_union0 = obj_assetIdOrName3_union0_error.message;
|
|
2165
|
+
}
|
|
2166
|
+
let obj_assetIdOrName3_union1 = null;
|
|
2167
|
+
const obj_assetIdOrName3_union1_error = (() => {
|
|
2168
|
+
if (obj_assetIdOrName3 !== null) {
|
|
2169
|
+
return new TypeError('Expected "null" but received "' + typeof obj_assetIdOrName3 + '" (at "' + path_assetIdOrName3 + '")');
|
|
2170
|
+
}
|
|
2171
|
+
})();
|
|
2172
|
+
if (obj_assetIdOrName3_union1_error != null) {
|
|
2173
|
+
obj_assetIdOrName3_union1 = obj_assetIdOrName3_union1_error.message;
|
|
2174
|
+
}
|
|
2175
|
+
if (obj_assetIdOrName3_union0 && obj_assetIdOrName3_union1) {
|
|
2176
|
+
let message = 'Object doesn\'t match union (at "' + path_assetIdOrName3 + '")';
|
|
2177
|
+
message += '\n' + obj_assetIdOrName3_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2178
|
+
message += '\n' + obj_assetIdOrName3_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2179
|
+
return new TypeError(message);
|
|
2180
|
+
}
|
|
2181
|
+
const obj_id = obj.id;
|
|
2182
|
+
const path_id = path + '.id';
|
|
2183
|
+
if (typeof obj_id !== 'string') {
|
|
2184
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2185
|
+
}
|
|
2186
|
+
const obj_templateAssetSourceName = obj.templateAssetSourceName;
|
|
2187
|
+
const path_templateAssetSourceName = path + '.templateAssetSourceName';
|
|
2188
|
+
let obj_templateAssetSourceName_union0 = null;
|
|
2189
|
+
const obj_templateAssetSourceName_union0_error = (() => {
|
|
2190
|
+
if (typeof obj_templateAssetSourceName !== 'string') {
|
|
2191
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateAssetSourceName + '" (at "' + path_templateAssetSourceName + '")');
|
|
2192
|
+
}
|
|
2193
|
+
})();
|
|
2194
|
+
if (obj_templateAssetSourceName_union0_error != null) {
|
|
2195
|
+
obj_templateAssetSourceName_union0 = obj_templateAssetSourceName_union0_error.message;
|
|
2196
|
+
}
|
|
2197
|
+
let obj_templateAssetSourceName_union1 = null;
|
|
2198
|
+
const obj_templateAssetSourceName_union1_error = (() => {
|
|
2199
|
+
if (obj_templateAssetSourceName !== null) {
|
|
2200
|
+
return new TypeError('Expected "null" but received "' + typeof obj_templateAssetSourceName + '" (at "' + path_templateAssetSourceName + '")');
|
|
2201
|
+
}
|
|
2202
|
+
})();
|
|
2203
|
+
if (obj_templateAssetSourceName_union1_error != null) {
|
|
2204
|
+
obj_templateAssetSourceName_union1 = obj_templateAssetSourceName_union1_error.message;
|
|
2205
|
+
}
|
|
2206
|
+
if (obj_templateAssetSourceName_union0 && obj_templateAssetSourceName_union1) {
|
|
2207
|
+
let message = 'Object doesn\'t match union (at "' + path_templateAssetSourceName + '")';
|
|
2208
|
+
message += '\n' + obj_templateAssetSourceName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2209
|
+
message += '\n' + obj_templateAssetSourceName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2210
|
+
return new TypeError(message);
|
|
2211
|
+
}
|
|
2212
|
+
const obj_type = obj.type;
|
|
2213
|
+
const path_type = path + '.type';
|
|
2214
|
+
let obj_type_union0 = null;
|
|
2215
|
+
const obj_type_union0_error = (() => {
|
|
2216
|
+
if (typeof obj_type !== 'string') {
|
|
2217
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
2218
|
+
}
|
|
2219
|
+
})();
|
|
1548
2220
|
if (obj_type_union0_error != null) {
|
|
1549
2221
|
obj_type_union0 = obj_type_union0_error.message;
|
|
1550
2222
|
}
|
|
@@ -1668,7 +2340,7 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1668
2340
|
}
|
|
1669
2341
|
|
|
1670
2342
|
const TTL$4 = 5000;
|
|
1671
|
-
const VERSION$4 = "
|
|
2343
|
+
const VERSION$4 = "1a10175fcc2ad43823e47bfbbdf917f6";
|
|
1672
2344
|
function validate$4(obj, path = 'AssetCollectionRepresentation') {
|
|
1673
2345
|
const v_error = (() => {
|
|
1674
2346
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1696,11 +2368,11 @@ function validate$4(obj, path = 'AssetCollectionRepresentation') {
|
|
|
1696
2368
|
}
|
|
1697
2369
|
const RepresentationType$4 = 'AssetCollectionRepresentation';
|
|
1698
2370
|
function keyBuilder$c(luvio, config) {
|
|
1699
|
-
return keyPrefix + '::' + RepresentationType$4 + ':' + config.
|
|
2371
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.appId;
|
|
1700
2372
|
}
|
|
1701
2373
|
function keyBuilderFromType$2(luvio, object) {
|
|
1702
2374
|
const keyParams = {
|
|
1703
|
-
|
|
2375
|
+
appId: object.appId
|
|
1704
2376
|
};
|
|
1705
2377
|
return keyBuilder$c(luvio, keyParams);
|
|
1706
2378
|
}
|
|
@@ -1791,7 +2463,7 @@ function select$8(luvio, params) {
|
|
|
1791
2463
|
}
|
|
1792
2464
|
function keyBuilder$b(luvio, params) {
|
|
1793
2465
|
return keyBuilder$c(luvio, {
|
|
1794
|
-
|
|
2466
|
+
appId: params.urlParams.appIdOrApiName
|
|
1795
2467
|
});
|
|
1796
2468
|
}
|
|
1797
2469
|
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -1855,14 +2527,14 @@ const getAppAssets_ConfigPropertyMetadata = [
|
|
|
1855
2527
|
generateParamConfigMetadata('templateAssetName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1856
2528
|
];
|
|
1857
2529
|
const getAppAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAppAssets_ConfigPropertyMetadata);
|
|
1858
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
2530
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$a(getAppAssets_ConfigPropertyMetadata);
|
|
1859
2531
|
function keyBuilder$a(luvio, config) {
|
|
1860
2532
|
const resourceParams = createResourceParams$4(config);
|
|
1861
2533
|
return keyBuilder$b(luvio, resourceParams);
|
|
1862
2534
|
}
|
|
1863
2535
|
function typeCheckConfig$4(untrustedConfig) {
|
|
1864
2536
|
const config = {};
|
|
1865
|
-
typeCheckConfig$
|
|
2537
|
+
typeCheckConfig$a(untrustedConfig, config, getAppAssets_ConfigPropertyMetadata);
|
|
1866
2538
|
return config;
|
|
1867
2539
|
}
|
|
1868
2540
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -1911,7 +2583,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
1911
2583
|
});
|
|
1912
2584
|
}
|
|
1913
2585
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
1914
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2586
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
1915
2587
|
}
|
|
1916
2588
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
1917
2589
|
const { luvio, config } = context;
|
|
@@ -1999,7 +2671,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
1999
2671
|
for (let i = 0; i < input_apps.length; i++) {
|
|
2000
2672
|
const input_apps_item = input_apps[i];
|
|
2001
2673
|
let input_apps_item_id = input_apps_id + '__' + i;
|
|
2002
|
-
input_apps[i] = ingest$
|
|
2674
|
+
input_apps[i] = ingest$9(input_apps_item, {
|
|
2003
2675
|
fullPath: input_apps_item_id,
|
|
2004
2676
|
propertyName: i,
|
|
2005
2677
|
parent: {
|
|
@@ -2022,7 +2694,7 @@ const select$7 = function AppCollectionRepresentationSelect() {
|
|
|
2022
2694
|
name: 'apps',
|
|
2023
2695
|
kind: 'Link',
|
|
2024
2696
|
plural: true,
|
|
2025
|
-
fragment: select$
|
|
2697
|
+
fragment: select$i()
|
|
2026
2698
|
}
|
|
2027
2699
|
]
|
|
2028
2700
|
};
|
|
@@ -2062,7 +2734,7 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2062
2734
|
});
|
|
2063
2735
|
const input_apps_length = input.apps.length;
|
|
2064
2736
|
for (let i = 0; i < input_apps_length; i++) {
|
|
2065
|
-
getTypeCacheKeys$
|
|
2737
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.apps[i]);
|
|
2066
2738
|
}
|
|
2067
2739
|
}
|
|
2068
2740
|
|
|
@@ -2070,7 +2742,7 @@ function select$6(luvio, params) {
|
|
|
2070
2742
|
return select$7();
|
|
2071
2743
|
}
|
|
2072
2744
|
function keyBuilder$9(luvio, params) {
|
|
2073
|
-
return keyPrefix + '::AppCollectionRepresentation:(' + 'templateSourceId:' + params.queryParams.templateSourceId + ')';
|
|
2745
|
+
return keyPrefix + '::AppCollectionRepresentation:(' + 'templateSourceId:' + params.queryParams.templateSourceId + ',' + 'type:' + params.queryParams.type + ')';
|
|
2074
2746
|
}
|
|
2075
2747
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
2076
2748
|
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
@@ -2121,16 +2793,17 @@ function createResourceRequest$3(config) {
|
|
|
2121
2793
|
const adapterName$3 = 'getApps';
|
|
2122
2794
|
const getApps_ConfigPropertyMetadata = [
|
|
2123
2795
|
generateParamConfigMetadata('templateSourceId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2796
|
+
generateParamConfigMetadata('type', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2124
2797
|
];
|
|
2125
2798
|
const getApps_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getApps_ConfigPropertyMetadata);
|
|
2126
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
2799
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$a(getApps_ConfigPropertyMetadata);
|
|
2127
2800
|
function keyBuilder$8(luvio, config) {
|
|
2128
2801
|
const resourceParams = createResourceParams$3(config);
|
|
2129
2802
|
return keyBuilder$9(luvio, resourceParams);
|
|
2130
2803
|
}
|
|
2131
2804
|
function typeCheckConfig$3(untrustedConfig) {
|
|
2132
2805
|
const config = {};
|
|
2133
|
-
typeCheckConfig$
|
|
2806
|
+
typeCheckConfig$a(untrustedConfig, config, getApps_ConfigPropertyMetadata);
|
|
2134
2807
|
return config;
|
|
2135
2808
|
}
|
|
2136
2809
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -2179,7 +2852,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
2179
2852
|
});
|
|
2180
2853
|
}
|
|
2181
2854
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
2182
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2855
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
2183
2856
|
}
|
|
2184
2857
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
2185
2858
|
const { luvio, config } = context;
|
|
@@ -2446,14 +3119,14 @@ const getTemplate_ConfigPropertyMetadata = [
|
|
|
2446
3119
|
generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2447
3120
|
];
|
|
2448
3121
|
const getTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getTemplate_ConfigPropertyMetadata);
|
|
2449
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
3122
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$a(getTemplate_ConfigPropertyMetadata);
|
|
2450
3123
|
function keyBuilder$5(luvio, config) {
|
|
2451
3124
|
const resourceParams = createResourceParams$2(config);
|
|
2452
3125
|
return keyBuilder$6(luvio, resourceParams);
|
|
2453
3126
|
}
|
|
2454
3127
|
function typeCheckConfig$2(untrustedConfig) {
|
|
2455
3128
|
const config = {};
|
|
2456
|
-
typeCheckConfig$
|
|
3129
|
+
typeCheckConfig$a(untrustedConfig, config, getTemplate_ConfigPropertyMetadata);
|
|
2457
3130
|
return config;
|
|
2458
3131
|
}
|
|
2459
3132
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -2502,7 +3175,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
2502
3175
|
});
|
|
2503
3176
|
}
|
|
2504
3177
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
2505
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3178
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
2506
3179
|
}
|
|
2507
3180
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
2508
3181
|
const { luvio, config } = context;
|
|
@@ -2712,14 +3385,14 @@ const getTemplateConfig_ConfigPropertyMetadata = [
|
|
|
2712
3385
|
generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2713
3386
|
];
|
|
2714
3387
|
const getTemplateConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getTemplateConfig_ConfigPropertyMetadata);
|
|
2715
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
3388
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$a(getTemplateConfig_ConfigPropertyMetadata);
|
|
2716
3389
|
function keyBuilder$2(luvio, config) {
|
|
2717
3390
|
const resourceParams = createResourceParams$1(config);
|
|
2718
3391
|
return keyBuilder$3(luvio, resourceParams);
|
|
2719
3392
|
}
|
|
2720
3393
|
function typeCheckConfig$1(untrustedConfig) {
|
|
2721
3394
|
const config = {};
|
|
2722
|
-
typeCheckConfig$
|
|
3395
|
+
typeCheckConfig$a(untrustedConfig, config, getTemplateConfig_ConfigPropertyMetadata);
|
|
2723
3396
|
return config;
|
|
2724
3397
|
}
|
|
2725
3398
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -2768,7 +3441,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
2768
3441
|
});
|
|
2769
3442
|
}
|
|
2770
3443
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
2771
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3444
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
2772
3445
|
}
|
|
2773
3446
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
2774
3447
|
const { luvio, config } = context;
|
|
@@ -2978,7 +3651,7 @@ function createResourceRequest(config) {
|
|
|
2978
3651
|
const adapterName = 'getTemplates';
|
|
2979
3652
|
const getTemplates_ConfigPropertyMetadata = [];
|
|
2980
3653
|
const getTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTemplates_ConfigPropertyMetadata);
|
|
2981
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
3654
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$a(getTemplates_ConfigPropertyMetadata);
|
|
2982
3655
|
function keyBuilder(luvio, config) {
|
|
2983
3656
|
createResourceParams(config);
|
|
2984
3657
|
return keyBuilder$1();
|
|
@@ -3033,7 +3706,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
3033
3706
|
});
|
|
3034
3707
|
}
|
|
3035
3708
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
3036
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3709
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
3037
3710
|
}
|
|
3038
3711
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
3039
3712
|
const { luvio, config } = context;
|
|
@@ -3061,6 +3734,10 @@ const getTemplatesAdapterFactory = (luvio) => function AppFramework__getTemplate
|
|
|
3061
3734
|
let createApp;
|
|
3062
3735
|
let deleteApp;
|
|
3063
3736
|
let getApp;
|
|
3737
|
+
let getAppActivities;
|
|
3738
|
+
let getAppActivitiesNotifyChange;
|
|
3739
|
+
let getAppActivity;
|
|
3740
|
+
let getAppActivityNotifyChange;
|
|
3064
3741
|
let getAppAssets;
|
|
3065
3742
|
let getAppAssetsNotifyChange;
|
|
3066
3743
|
let getAppNotifyChange;
|
|
@@ -3072,12 +3749,16 @@ let getTemplateNotifyChange;
|
|
|
3072
3749
|
let getTemplates;
|
|
3073
3750
|
// Imperative GET Adapters
|
|
3074
3751
|
let getApp_imperative;
|
|
3752
|
+
let getAppActivities_imperative;
|
|
3753
|
+
let getAppActivity_imperative;
|
|
3075
3754
|
let getAppAssets_imperative;
|
|
3076
3755
|
let getApps_imperative;
|
|
3077
3756
|
let getTemplate_imperative;
|
|
3078
3757
|
let getTemplateConfig_imperative;
|
|
3079
3758
|
let getTemplates_imperative;
|
|
3080
3759
|
const getAppMetadata = { apiFamily: 'AppFramework', name: 'getApp', ttl: 5000 };
|
|
3760
|
+
const getAppActivitiesMetadata = { apiFamily: 'AppFramework', name: 'getAppActivities', ttl: 5000 };
|
|
3761
|
+
const getAppActivityMetadata = { apiFamily: 'AppFramework', name: 'getAppActivity', ttl: 5000 };
|
|
3081
3762
|
const getAppAssetsMetadata = { apiFamily: 'AppFramework', name: 'getAppAssets', ttl: 5000 };
|
|
3082
3763
|
const getAppsMetadata = { apiFamily: 'AppFramework', name: 'getApps', ttl: 5000 };
|
|
3083
3764
|
const getTemplateMetadata = { apiFamily: 'AppFramework', name: 'getTemplate', ttl: 5000 };
|
|
@@ -3091,6 +3772,8 @@ const getTemplatesMetadata = { apiFamily: 'AppFramework', name: 'getTemplates',
|
|
|
3091
3772
|
function bindExportsTo(luvio) {
|
|
3092
3773
|
// LDS Adapters
|
|
3093
3774
|
const getApp_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getApp', getAppAdapterFactory), getAppMetadata);
|
|
3775
|
+
const getAppActivities_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAppActivities', getAppActivitiesAdapterFactory), getAppActivitiesMetadata);
|
|
3776
|
+
const getAppActivity_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAppActivity', getAppActivityAdapterFactory), getAppActivityMetadata);
|
|
3094
3777
|
const getAppAssets_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAppAssets', getAppAssetsAdapterFactory), getAppAssetsMetadata);
|
|
3095
3778
|
const getApps_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getApps', getAppsAdapterFactory), getAppsMetadata);
|
|
3096
3779
|
const getTemplate_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getTemplate', getTemplateAdapterFactory), getTemplateMetadata);
|
|
@@ -3102,11 +3785,15 @@ function bindExportsTo(luvio) {
|
|
|
3102
3785
|
}
|
|
3103
3786
|
return {
|
|
3104
3787
|
createApp: unwrapSnapshotData(createAppAdapterFactory),
|
|
3105
|
-
deleteApp: createLDSAdapter(luvio, adapterName$
|
|
3788
|
+
deleteApp: createLDSAdapter(luvio, adapterName$8, deleteAppAdapterFactory),
|
|
3106
3789
|
getApp: createWireAdapterConstructor(luvio, getApp_ldsAdapter, getAppMetadata),
|
|
3790
|
+
getAppActivities: createWireAdapterConstructor(luvio, getAppActivities_ldsAdapter, getAppActivitiesMetadata),
|
|
3791
|
+
getAppActivitiesNotifyChange: createLDSAdapter(luvio, 'getAppActivitiesNotifyChange', notifyChangeFactory$4),
|
|
3792
|
+
getAppActivity: createWireAdapterConstructor(luvio, getAppActivity_ldsAdapter, getAppActivityMetadata),
|
|
3793
|
+
getAppActivityNotifyChange: createLDSAdapter(luvio, 'getAppActivityNotifyChange', notifyChangeFactory$3),
|
|
3107
3794
|
getAppAssets: createWireAdapterConstructor(luvio, getAppAssets_ldsAdapter, getAppAssetsMetadata),
|
|
3108
3795
|
getAppAssetsNotifyChange: createLDSAdapter(luvio, 'getAppAssetsNotifyChange', notifyChangeFactory$2),
|
|
3109
|
-
getAppNotifyChange: createLDSAdapter(luvio, 'getAppNotifyChange', notifyChangeFactory$
|
|
3796
|
+
getAppNotifyChange: createLDSAdapter(luvio, 'getAppNotifyChange', notifyChangeFactory$5),
|
|
3110
3797
|
getApps: createWireAdapterConstructor(luvio, getApps_ldsAdapter, getAppsMetadata),
|
|
3111
3798
|
getTemplate: createWireAdapterConstructor(luvio, getTemplate_ldsAdapter, getTemplateMetadata),
|
|
3112
3799
|
getTemplateConfig: createWireAdapterConstructor(luvio, getTemplateConfig_ldsAdapter, getTemplateConfigMetadata),
|
|
@@ -3115,6 +3802,8 @@ function bindExportsTo(luvio) {
|
|
|
3115
3802
|
getTemplates: createWireAdapterConstructor(luvio, getTemplates_ldsAdapter, getTemplatesMetadata),
|
|
3116
3803
|
// Imperative GET Adapters
|
|
3117
3804
|
getApp_imperative: createImperativeAdapter(luvio, getApp_ldsAdapter, getAppMetadata),
|
|
3805
|
+
getAppActivities_imperative: createImperativeAdapter(luvio, getAppActivities_ldsAdapter, getAppActivitiesMetadata),
|
|
3806
|
+
getAppActivity_imperative: createImperativeAdapter(luvio, getAppActivity_ldsAdapter, getAppActivityMetadata),
|
|
3118
3807
|
getAppAssets_imperative: createImperativeAdapter(luvio, getAppAssets_ldsAdapter, getAppAssetsMetadata),
|
|
3119
3808
|
getApps_imperative: createImperativeAdapter(luvio, getApps_ldsAdapter, getAppsMetadata),
|
|
3120
3809
|
getTemplate_imperative: createImperativeAdapter(luvio, getTemplate_ldsAdapter, getTemplateMetadata),
|
|
@@ -3128,6 +3817,10 @@ withDefaultLuvio((luvio) => {
|
|
|
3128
3817
|
createApp,
|
|
3129
3818
|
deleteApp,
|
|
3130
3819
|
getApp,
|
|
3820
|
+
getAppActivities,
|
|
3821
|
+
getAppActivitiesNotifyChange,
|
|
3822
|
+
getAppActivity,
|
|
3823
|
+
getAppActivityNotifyChange,
|
|
3131
3824
|
getAppAssets,
|
|
3132
3825
|
getAppAssetsNotifyChange,
|
|
3133
3826
|
getAppNotifyChange,
|
|
@@ -3138,6 +3831,8 @@ withDefaultLuvio((luvio) => {
|
|
|
3138
3831
|
getTemplateNotifyChange,
|
|
3139
3832
|
getTemplates,
|
|
3140
3833
|
getApp_imperative,
|
|
3834
|
+
getAppActivities_imperative,
|
|
3835
|
+
getAppActivity_imperative,
|
|
3141
3836
|
getAppAssets_imperative,
|
|
3142
3837
|
getApps_imperative,
|
|
3143
3838
|
getTemplate_imperative,
|
|
@@ -3146,5 +3841,5 @@ withDefaultLuvio((luvio) => {
|
|
|
3146
3841
|
} = bindExportsTo(luvio));
|
|
3147
3842
|
});
|
|
3148
3843
|
|
|
3149
|
-
export { createApp, deleteApp, getApp, getAppAssets, getAppAssetsNotifyChange, getAppAssets_imperative, getAppNotifyChange, getApp_imperative, getApps, getApps_imperative, getTemplate, getTemplateConfig, getTemplateConfigNotifyChange, getTemplateConfig_imperative, getTemplateNotifyChange, getTemplate_imperative, getTemplates, getTemplates_imperative };
|
|
3150
|
-
// version: 1.
|
|
3844
|
+
export { createApp, deleteApp, getApp, getAppActivities, getAppActivitiesNotifyChange, getAppActivities_imperative, getAppActivity, getAppActivityNotifyChange, getAppActivity_imperative, getAppAssets, getAppAssetsNotifyChange, getAppAssets_imperative, getAppNotifyChange, getApp_imperative, getApps, getApps_imperative, getTemplate, getTemplateConfig, getTemplateConfigNotifyChange, getTemplateConfig_imperative, getTemplateNotifyChange, getTemplate_imperative, getTemplates, getTemplates_imperative };
|
|
3845
|
+
// version: 1.308.0-dev2-9bec7cb98f
|