@salesforce/lds-adapters-analytics-app-framework 1.322.0 → 1.324.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/analytics-app-framework.js +939 -237
- package/dist/es/es2018/types/src/generated/types/AppDetailsRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/GuidancePanelRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ImageReferenceRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/NavigationPanelRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/PageNavigationInfoRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/TemplateConfigurationRepresentation.d.ts +12 -1
- package/dist/es/es2018/types/src/generated/types/TemplateRepresentation.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/UiLayoutDefinitionRepresentation.d.ts +37 -0
- package/package.json +3 -3
- package/sfdc/index.js +965 -263
- package/src/raml/api.raml +115 -2
|
@@ -112,8 +112,8 @@ function createLink(ref) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
const VERSION$
|
|
116
|
-
function validate$
|
|
115
|
+
const VERSION$p = "8747a45321deaf63f65cf74537b07eb6";
|
|
116
|
+
function validate$s(obj, path = 'UserRepresentation') {
|
|
117
117
|
const v_error = (() => {
|
|
118
118
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
119
119
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -157,10 +157,10 @@ function validate$m(obj, path = 'UserRepresentation') {
|
|
|
157
157
|
})();
|
|
158
158
|
return v_error === undefined ? null : v_error;
|
|
159
159
|
}
|
|
160
|
-
const select$
|
|
160
|
+
const select$C = function UserRepresentationSelect() {
|
|
161
161
|
return {
|
|
162
162
|
kind: 'Fragment',
|
|
163
|
-
version: VERSION$
|
|
163
|
+
version: VERSION$p,
|
|
164
164
|
private: [],
|
|
165
165
|
selections: [
|
|
166
166
|
{
|
|
@@ -178,7 +178,7 @@ const select$w = function UserRepresentationSelect() {
|
|
|
178
178
|
]
|
|
179
179
|
};
|
|
180
180
|
};
|
|
181
|
-
function equals$
|
|
181
|
+
function equals$m(existing, incoming) {
|
|
182
182
|
const existing_id = existing.id;
|
|
183
183
|
const incoming_id = incoming.id;
|
|
184
184
|
if (!(existing_id === incoming_id)) {
|
|
@@ -197,8 +197,8 @@ function equals$g(existing, incoming) {
|
|
|
197
197
|
return true;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
const VERSION$
|
|
201
|
-
function validate$
|
|
200
|
+
const VERSION$o = "74662b770f974cec987197380f2580ea";
|
|
201
|
+
function validate$r(obj, path = 'ScheduledTimezoneRepresentation') {
|
|
202
202
|
const v_error = (() => {
|
|
203
203
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
204
204
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -217,10 +217,10 @@ function validate$l(obj, path = 'ScheduledTimezoneRepresentation') {
|
|
|
217
217
|
})();
|
|
218
218
|
return v_error === undefined ? null : v_error;
|
|
219
219
|
}
|
|
220
|
-
const select$
|
|
220
|
+
const select$B = function ScheduledTimezoneRepresentationSelect() {
|
|
221
221
|
return {
|
|
222
222
|
kind: 'Fragment',
|
|
223
|
-
version: VERSION$
|
|
223
|
+
version: VERSION$o,
|
|
224
224
|
private: [],
|
|
225
225
|
selections: [
|
|
226
226
|
{
|
|
@@ -238,7 +238,7 @@ const select$v = function ScheduledTimezoneRepresentationSelect() {
|
|
|
238
238
|
]
|
|
239
239
|
};
|
|
240
240
|
};
|
|
241
|
-
function equals$
|
|
241
|
+
function equals$l(existing, incoming) {
|
|
242
242
|
const existing_name = existing.name;
|
|
243
243
|
const incoming_name = incoming.name;
|
|
244
244
|
if (!(existing_name === incoming_name)) {
|
|
@@ -257,8 +257,8 @@ function equals$f(existing, incoming) {
|
|
|
257
257
|
return true;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
const VERSION$
|
|
261
|
-
function validate$
|
|
260
|
+
const VERSION$n = "d96bf6818be64d5924beaaad8e684221";
|
|
261
|
+
function validate$q(obj, path = 'ScheduledTimeRepresentation') {
|
|
262
262
|
const v_error = (() => {
|
|
263
263
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
264
264
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -275,7 +275,7 @@ function validate$k(obj, path = 'ScheduledTimeRepresentation') {
|
|
|
275
275
|
}
|
|
276
276
|
const obj_timezone = obj.timezone;
|
|
277
277
|
const path_timezone = path + '.timezone';
|
|
278
|
-
const referencepath_timezoneValidationError = validate$
|
|
278
|
+
const referencepath_timezoneValidationError = validate$r(obj_timezone, path_timezone);
|
|
279
279
|
if (referencepath_timezoneValidationError !== null) {
|
|
280
280
|
let message = 'Object doesn\'t match ScheduledTimezoneRepresentation (at "' + path_timezone + '")\n';
|
|
281
281
|
message += referencepath_timezoneValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -284,11 +284,11 @@ function validate$k(obj, path = 'ScheduledTimeRepresentation') {
|
|
|
284
284
|
})();
|
|
285
285
|
return v_error === undefined ? null : v_error;
|
|
286
286
|
}
|
|
287
|
-
const select$
|
|
288
|
-
const { selections: ScheduledTimezoneRepresentation__selections, opaque: ScheduledTimezoneRepresentation__opaque, } = select$
|
|
287
|
+
const select$A = function ScheduledTimeRepresentationSelect() {
|
|
288
|
+
const { selections: ScheduledTimezoneRepresentation__selections, opaque: ScheduledTimezoneRepresentation__opaque, } = select$B();
|
|
289
289
|
return {
|
|
290
290
|
kind: 'Fragment',
|
|
291
|
-
version: VERSION$
|
|
291
|
+
version: VERSION$n,
|
|
292
292
|
private: [],
|
|
293
293
|
selections: [
|
|
294
294
|
{
|
|
@@ -307,7 +307,7 @@ const select$u = function ScheduledTimeRepresentationSelect() {
|
|
|
307
307
|
]
|
|
308
308
|
};
|
|
309
309
|
};
|
|
310
|
-
function equals$
|
|
310
|
+
function equals$k(existing, incoming) {
|
|
311
311
|
const existing_hour = existing.hour;
|
|
312
312
|
const incoming_hour = incoming.hour;
|
|
313
313
|
if (!(existing_hour === incoming_hour)) {
|
|
@@ -320,18 +320,18 @@ function equals$e(existing, incoming) {
|
|
|
320
320
|
}
|
|
321
321
|
const existing_timezone = existing.timezone;
|
|
322
322
|
const incoming_timezone = incoming.timezone;
|
|
323
|
-
if (!(equals$
|
|
323
|
+
if (!(equals$l(existing_timezone, incoming_timezone))) {
|
|
324
324
|
return false;
|
|
325
325
|
}
|
|
326
326
|
return true;
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
const VERSION$
|
|
330
|
-
const select$
|
|
331
|
-
const { selections: ScheduledItemRepresentationSelections } = select$
|
|
329
|
+
const VERSION$m = "91838b86aa135ce828af6242b11ae888";
|
|
330
|
+
const select$z = function HourlyScheduledItemRepresentationSelect() {
|
|
331
|
+
const { selections: ScheduledItemRepresentationSelections } = select$w();
|
|
332
332
|
return {
|
|
333
333
|
kind: 'Fragment',
|
|
334
|
-
version: VERSION$
|
|
334
|
+
version: VERSION$m,
|
|
335
335
|
private: [],
|
|
336
336
|
selections: [
|
|
337
337
|
...ScheduledItemRepresentationSelections,
|
|
@@ -348,12 +348,12 @@ const select$t = function HourlyScheduledItemRepresentationSelect() {
|
|
|
348
348
|
};
|
|
349
349
|
};
|
|
350
350
|
|
|
351
|
-
const VERSION$
|
|
352
|
-
const select$
|
|
353
|
-
const { selections: ScheduledItemRepresentationSelections } = select$
|
|
351
|
+
const VERSION$l = "46260a34f0b2c2d7adc7f8c150a8d8fb";
|
|
352
|
+
const select$y = function WeeklyScheduledItemRepresentationSelect() {
|
|
353
|
+
const { selections: ScheduledItemRepresentationSelections } = select$w();
|
|
354
354
|
return {
|
|
355
355
|
kind: 'Fragment',
|
|
356
|
-
version: VERSION$
|
|
356
|
+
version: VERSION$l,
|
|
357
357
|
private: [],
|
|
358
358
|
selections: [
|
|
359
359
|
...ScheduledItemRepresentationSelections,
|
|
@@ -366,12 +366,12 @@ const select$s = function WeeklyScheduledItemRepresentationSelect() {
|
|
|
366
366
|
};
|
|
367
367
|
};
|
|
368
368
|
|
|
369
|
-
const VERSION$
|
|
370
|
-
const select$
|
|
371
|
-
const { selections: ScheduledItemRepresentationSelections } = select$
|
|
369
|
+
const VERSION$k = "dcda6d015a01d9acde5fac241448cfe4";
|
|
370
|
+
const select$x = function DailyScheduledItemRepresentationSelect() {
|
|
371
|
+
const { selections: ScheduledItemRepresentationSelections } = select$w();
|
|
372
372
|
return {
|
|
373
373
|
kind: 'Fragment',
|
|
374
|
-
version: VERSION$
|
|
374
|
+
version: VERSION$k,
|
|
375
375
|
private: [],
|
|
376
376
|
selections: [
|
|
377
377
|
...ScheduledItemRepresentationSelections,
|
|
@@ -385,8 +385,8 @@ var DiscriminatorValues;
|
|
|
385
385
|
DiscriminatorValues["Weekly"] = "Weekly";
|
|
386
386
|
DiscriminatorValues["Daily"] = "Daily";
|
|
387
387
|
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
388
|
-
const VERSION$
|
|
389
|
-
function validate$
|
|
388
|
+
const VERSION$j = "193484b4261ca5840b61caaab3dea067";
|
|
389
|
+
function validate$p(obj, path = 'ScheduledItemRepresentation') {
|
|
390
390
|
const v_error = (() => {
|
|
391
391
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
392
392
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -403,7 +403,7 @@ function validate$j(obj, path = 'ScheduledItemRepresentation') {
|
|
|
403
403
|
}
|
|
404
404
|
const obj_time = obj.time;
|
|
405
405
|
const path_time = path + '.time';
|
|
406
|
-
const referencepath_timeValidationError = validate$
|
|
406
|
+
const referencepath_timeValidationError = validate$q(obj_time, path_time);
|
|
407
407
|
if (referencepath_timeValidationError !== null) {
|
|
408
408
|
let message = 'Object doesn\'t match ScheduledTimeRepresentation (at "' + path_time + '")\n';
|
|
409
409
|
message += referencepath_timeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -413,9 +413,9 @@ function validate$j(obj, path = 'ScheduledItemRepresentation') {
|
|
|
413
413
|
return v_error === undefined ? null : v_error;
|
|
414
414
|
}
|
|
415
415
|
const selectChildren = function ScheduledItemRepresentationSelectChildren() {
|
|
416
|
-
const hourlyScheduledItemRepresentationSelections = select$
|
|
417
|
-
const weeklyScheduledItemRepresentationSelections = select$
|
|
418
|
-
const dailyScheduledItemRepresentationSelections = select$
|
|
416
|
+
const hourlyScheduledItemRepresentationSelections = select$z();
|
|
417
|
+
const weeklyScheduledItemRepresentationSelections = select$y();
|
|
418
|
+
const dailyScheduledItemRepresentationSelections = select$x();
|
|
419
419
|
return {
|
|
420
420
|
kind: 'Fragment',
|
|
421
421
|
union: true,
|
|
@@ -427,11 +427,11 @@ const selectChildren = function ScheduledItemRepresentationSelectChildren() {
|
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
429
|
};
|
|
430
|
-
const select$
|
|
431
|
-
const { selections: ScheduledTimeRepresentation__selections, opaque: ScheduledTimeRepresentation__opaque, } = select$
|
|
430
|
+
const select$w = function ScheduledItemRepresentationSelect() {
|
|
431
|
+
const { selections: ScheduledTimeRepresentation__selections, opaque: ScheduledTimeRepresentation__opaque, } = select$A();
|
|
432
432
|
return {
|
|
433
433
|
kind: 'Fragment',
|
|
434
|
-
version: VERSION$
|
|
434
|
+
version: VERSION$j,
|
|
435
435
|
private: [],
|
|
436
436
|
selections: [
|
|
437
437
|
{
|
|
@@ -450,7 +450,7 @@ const select$q = function ScheduledItemRepresentationSelect() {
|
|
|
450
450
|
]
|
|
451
451
|
};
|
|
452
452
|
};
|
|
453
|
-
function equals$
|
|
453
|
+
function equals$j(existing, incoming) {
|
|
454
454
|
const existing_frequency = existing.frequency;
|
|
455
455
|
const incoming_frequency = incoming.frequency;
|
|
456
456
|
if (!(existing_frequency === incoming_frequency)) {
|
|
@@ -463,14 +463,14 @@ function equals$d(existing, incoming) {
|
|
|
463
463
|
}
|
|
464
464
|
const existing_time = existing.time;
|
|
465
465
|
const incoming_time = incoming.time;
|
|
466
|
-
if (!(equals$
|
|
466
|
+
if (!(equals$k(existing_time, incoming_time))) {
|
|
467
467
|
return false;
|
|
468
468
|
}
|
|
469
469
|
return true;
|
|
470
470
|
}
|
|
471
471
|
|
|
472
|
-
const VERSION$
|
|
473
|
-
function validate$
|
|
472
|
+
const VERSION$i = "06b5da5162febff2692d819c9b718be5";
|
|
473
|
+
function validate$o(obj, path = 'AppScheduleRepresentation') {
|
|
474
474
|
const v_error = (() => {
|
|
475
475
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
476
476
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -479,7 +479,7 @@ function validate$i(obj, path = 'AppScheduleRepresentation') {
|
|
|
479
479
|
const path_dataRefreshSchedule = path + '.dataRefreshSchedule';
|
|
480
480
|
let obj_dataRefreshSchedule_union0 = null;
|
|
481
481
|
const obj_dataRefreshSchedule_union0_error = (() => {
|
|
482
|
-
const referencepath_dataRefreshScheduleValidationError = validate$
|
|
482
|
+
const referencepath_dataRefreshScheduleValidationError = validate$p(obj_dataRefreshSchedule, path_dataRefreshSchedule);
|
|
483
483
|
if (referencepath_dataRefreshScheduleValidationError !== null) {
|
|
484
484
|
let message = 'Object doesn\'t match ScheduledItemRepresentation (at "' + path_dataRefreshSchedule + '")\n';
|
|
485
485
|
message += referencepath_dataRefreshScheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -533,11 +533,11 @@ function validate$i(obj, path = 'AppScheduleRepresentation') {
|
|
|
533
533
|
})();
|
|
534
534
|
return v_error === undefined ? null : v_error;
|
|
535
535
|
}
|
|
536
|
-
const select$
|
|
536
|
+
const select$v = function AppScheduleRepresentationSelect() {
|
|
537
537
|
const ScheduledItemRepresentation__unionSelections = selectChildren();
|
|
538
538
|
return {
|
|
539
539
|
kind: 'Fragment',
|
|
540
|
-
version: VERSION$
|
|
540
|
+
version: VERSION$i,
|
|
541
541
|
private: [],
|
|
542
542
|
selections: [
|
|
543
543
|
{
|
|
@@ -555,13 +555,13 @@ const select$p = function AppScheduleRepresentationSelect() {
|
|
|
555
555
|
]
|
|
556
556
|
};
|
|
557
557
|
};
|
|
558
|
-
function equals$
|
|
558
|
+
function equals$i(existing, incoming) {
|
|
559
559
|
const existing_dataRefreshSchedule = existing.dataRefreshSchedule;
|
|
560
560
|
const incoming_dataRefreshSchedule = incoming.dataRefreshSchedule;
|
|
561
561
|
if (!(existing_dataRefreshSchedule === incoming_dataRefreshSchedule
|
|
562
562
|
|| (existing_dataRefreshSchedule != null &&
|
|
563
563
|
incoming_dataRefreshSchedule != null &&
|
|
564
|
-
equals$
|
|
564
|
+
equals$j(existing_dataRefreshSchedule, incoming_dataRefreshSchedule)))) {
|
|
565
565
|
return false;
|
|
566
566
|
}
|
|
567
567
|
const existing_url = existing.url;
|
|
@@ -573,8 +573,8 @@ function equals$c(existing, incoming) {
|
|
|
573
573
|
}
|
|
574
574
|
|
|
575
575
|
const TTL$b = 5000;
|
|
576
|
-
const VERSION$
|
|
577
|
-
function validate$
|
|
576
|
+
const VERSION$h = "be6294bb853a9581fb3b06a2d8caa5d5";
|
|
577
|
+
function validate$n(obj, path = 'AppRepresentation') {
|
|
578
578
|
const v_error = (() => {
|
|
579
579
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
580
580
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -596,7 +596,7 @@ function validate$h(obj, path = 'AppRepresentation') {
|
|
|
596
596
|
}
|
|
597
597
|
const obj_createdBy = obj.createdBy;
|
|
598
598
|
const path_createdBy = path + '.createdBy';
|
|
599
|
-
const referencepath_createdByValidationError = validate$
|
|
599
|
+
const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
|
|
600
600
|
if (referencepath_createdByValidationError !== null) {
|
|
601
601
|
let message = 'Object doesn\'t match UserRepresentation (at "' + path_createdBy + '")\n';
|
|
602
602
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -650,7 +650,7 @@ function validate$h(obj, path = 'AppRepresentation') {
|
|
|
650
650
|
}
|
|
651
651
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
652
652
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
653
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
653
|
+
const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
|
|
654
654
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
655
655
|
let message = 'Object doesn\'t match UserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
656
656
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -675,7 +675,7 @@ function validate$h(obj, path = 'AppRepresentation') {
|
|
|
675
675
|
const path_schedule = path + '.schedule';
|
|
676
676
|
let obj_schedule_union0 = null;
|
|
677
677
|
const obj_schedule_union0_error = (() => {
|
|
678
|
-
const referencepath_scheduleValidationError = validate$
|
|
678
|
+
const referencepath_scheduleValidationError = validate$o(obj_schedule, path_schedule);
|
|
679
679
|
if (referencepath_scheduleValidationError !== null) {
|
|
680
680
|
let message = 'Object doesn\'t match AppScheduleRepresentation (at "' + path_schedule + '")\n';
|
|
681
681
|
message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -750,12 +750,12 @@ function keyBuilderFromType$8(luvio, object) {
|
|
|
750
750
|
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
751
751
|
return input;
|
|
752
752
|
}
|
|
753
|
-
const select$
|
|
754
|
-
const { selections: UserRepresentation__selections, opaque: UserRepresentation__opaque, } = select$
|
|
755
|
-
const { selections: AppScheduleRepresentation__selections, opaque: AppScheduleRepresentation__opaque, } = select$
|
|
753
|
+
const select$u = function AppRepresentationSelect() {
|
|
754
|
+
const { selections: UserRepresentation__selections, opaque: UserRepresentation__opaque, } = select$C();
|
|
755
|
+
const { selections: AppScheduleRepresentation__selections, opaque: AppScheduleRepresentation__opaque, } = select$v();
|
|
756
756
|
return {
|
|
757
757
|
kind: 'Fragment',
|
|
758
|
-
version: VERSION$
|
|
758
|
+
version: VERSION$h,
|
|
759
759
|
private: [],
|
|
760
760
|
selections: [
|
|
761
761
|
{
|
|
@@ -842,7 +842,7 @@ const select$o = function AppRepresentationSelect() {
|
|
|
842
842
|
]
|
|
843
843
|
};
|
|
844
844
|
};
|
|
845
|
-
function equals$
|
|
845
|
+
function equals$h(existing, incoming) {
|
|
846
846
|
const existing_activitiesUrl = existing.activitiesUrl;
|
|
847
847
|
const incoming_activitiesUrl = incoming.activitiesUrl;
|
|
848
848
|
if (!(existing_activitiesUrl === incoming_activitiesUrl)) {
|
|
@@ -915,7 +915,7 @@ function equals$b(existing, incoming) {
|
|
|
915
915
|
}
|
|
916
916
|
const existing_createdBy = existing.createdBy;
|
|
917
917
|
const incoming_createdBy = incoming.createdBy;
|
|
918
|
-
if (!(equals$
|
|
918
|
+
if (!(equals$m(existing_createdBy, incoming_createdBy))) {
|
|
919
919
|
return false;
|
|
920
920
|
}
|
|
921
921
|
const existing_description = existing.description;
|
|
@@ -925,7 +925,7 @@ function equals$b(existing, incoming) {
|
|
|
925
925
|
}
|
|
926
926
|
const existing_lastModifiedBy = existing.lastModifiedBy;
|
|
927
927
|
const incoming_lastModifiedBy = incoming.lastModifiedBy;
|
|
928
|
-
if (!(equals$
|
|
928
|
+
if (!(equals$m(existing_lastModifiedBy, incoming_lastModifiedBy))) {
|
|
929
929
|
return false;
|
|
930
930
|
}
|
|
931
931
|
const existing_schedule = existing.schedule;
|
|
@@ -933,7 +933,7 @@ function equals$b(existing, incoming) {
|
|
|
933
933
|
if (!(existing_schedule === incoming_schedule
|
|
934
934
|
|| (existing_schedule != null &&
|
|
935
935
|
incoming_schedule != null &&
|
|
936
|
-
equals$
|
|
936
|
+
equals$i(existing_schedule, incoming_schedule)))) {
|
|
937
937
|
return false;
|
|
938
938
|
}
|
|
939
939
|
const existing_templateValues = existing.templateValues;
|
|
@@ -950,14 +950,14 @@ function equals$b(existing, incoming) {
|
|
|
950
950
|
}
|
|
951
951
|
const ingest$b = function AppRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
952
952
|
if (process.env.NODE_ENV !== 'production') {
|
|
953
|
-
const validateError = validate$
|
|
953
|
+
const validateError = validate$n(input);
|
|
954
954
|
if (validateError !== null) {
|
|
955
955
|
throw validateError;
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
958
|
const key = keyBuilderFromType$8(luvio, input);
|
|
959
959
|
const ttlToUse = TTL$b;
|
|
960
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "AppFramework", VERSION$
|
|
960
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "AppFramework", VERSION$h, RepresentationType$b, equals$h);
|
|
961
961
|
return createLink(key);
|
|
962
962
|
};
|
|
963
963
|
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -971,8 +971,8 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
971
971
|
}
|
|
972
972
|
|
|
973
973
|
const TTL$a = 5000;
|
|
974
|
-
const VERSION$
|
|
975
|
-
function validate$
|
|
974
|
+
const VERSION$g = "2dd7266897d8b84ea0207582ca533d29";
|
|
975
|
+
function validate$m(obj, path = 'AppCollectionRepresentation') {
|
|
976
976
|
const v_error = (() => {
|
|
977
977
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
978
978
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1012,22 +1012,22 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
return input;
|
|
1014
1014
|
}
|
|
1015
|
-
const select$
|
|
1015
|
+
const select$t = function AppCollectionRepresentationSelect() {
|
|
1016
1016
|
return {
|
|
1017
1017
|
kind: 'Fragment',
|
|
1018
|
-
version: VERSION$
|
|
1018
|
+
version: VERSION$g,
|
|
1019
1019
|
private: [],
|
|
1020
1020
|
selections: [
|
|
1021
1021
|
{
|
|
1022
1022
|
name: 'apps',
|
|
1023
1023
|
kind: 'Link',
|
|
1024
1024
|
plural: true,
|
|
1025
|
-
fragment: select$
|
|
1025
|
+
fragment: select$u()
|
|
1026
1026
|
}
|
|
1027
1027
|
]
|
|
1028
1028
|
};
|
|
1029
1029
|
};
|
|
1030
|
-
function equals$
|
|
1030
|
+
function equals$g(existing, incoming) {
|
|
1031
1031
|
const existing_apps = existing.apps;
|
|
1032
1032
|
const incoming_apps = incoming.apps;
|
|
1033
1033
|
const equals_apps_items = equalsArray(existing_apps, incoming_apps, (existing_apps_item, incoming_apps_item) => {
|
|
@@ -1042,14 +1042,14 @@ function equals$a(existing, incoming) {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
const ingest$a = function AppCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1044
1044
|
if (process.env.NODE_ENV !== 'production') {
|
|
1045
|
-
const validateError = validate$
|
|
1045
|
+
const validateError = validate$m(input);
|
|
1046
1046
|
if (validateError !== null) {
|
|
1047
1047
|
throw validateError;
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
1050
|
const key = path.fullPath;
|
|
1051
1051
|
const ttlToUse = TTL$a;
|
|
1052
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "AppFramework", VERSION$
|
|
1052
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "AppFramework", VERSION$g, RepresentationType$a, equals$g);
|
|
1053
1053
|
return createLink(key);
|
|
1054
1054
|
};
|
|
1055
1055
|
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1066,8 +1066,8 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
1068
|
|
|
1069
|
-
function select$
|
|
1070
|
-
return select$
|
|
1069
|
+
function select$s(luvio, params) {
|
|
1070
|
+
return select$t();
|
|
1071
1071
|
}
|
|
1072
1072
|
function keyBuilder$s(luvio, params) {
|
|
1073
1073
|
return keyPrefix + '::AppCollectionRepresentation:(' + 'templateSourceId:' + params.queryParams.templateSourceId + ',' + 'type:' + params.queryParams.type + ')';
|
|
@@ -1081,7 +1081,7 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1081
1081
|
luvio.storeIngest(key, ingest$a, body);
|
|
1082
1082
|
const snapshot = luvio.storeLookup({
|
|
1083
1083
|
recordId: key,
|
|
1084
|
-
node: select$
|
|
1084
|
+
node: select$s(),
|
|
1085
1085
|
variables: {},
|
|
1086
1086
|
}, snapshotRefresh);
|
|
1087
1087
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1098,7 +1098,7 @@ function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
|
1098
1098
|
const storeMetadataParams = {
|
|
1099
1099
|
ttl: TTL$a,
|
|
1100
1100
|
namespace: keyPrefix,
|
|
1101
|
-
version: VERSION$
|
|
1101
|
+
version: VERSION$g,
|
|
1102
1102
|
representationName: RepresentationType$a
|
|
1103
1103
|
};
|
|
1104
1104
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -1149,7 +1149,7 @@ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
function adapterFragment$9(luvio, config) {
|
|
1151
1151
|
createResourceParams$d(config);
|
|
1152
|
-
return select$
|
|
1152
|
+
return select$s();
|
|
1153
1153
|
}
|
|
1154
1154
|
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
1155
1155
|
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
@@ -1206,8 +1206,8 @@ const getAppsAdapterFactory = (luvio) => function AppFramework__getApps(untruste
|
|
|
1206
1206
|
};
|
|
1207
1207
|
|
|
1208
1208
|
const TTL$9 = 5000;
|
|
1209
|
-
const VERSION$
|
|
1210
|
-
function validate$
|
|
1209
|
+
const VERSION$f = "1e01d8ae397bfbae02ba4cfae1dac4fc";
|
|
1210
|
+
function validate$l(obj, path = 'AppResultRepresentation') {
|
|
1211
1211
|
const v_error = (() => {
|
|
1212
1212
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1213
1213
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1290,16 +1290,16 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
1290
1290
|
}, luvio, store, timestamp);
|
|
1291
1291
|
return input;
|
|
1292
1292
|
}
|
|
1293
|
-
const select$
|
|
1293
|
+
const select$r = function AppResultRepresentationSelect() {
|
|
1294
1294
|
return {
|
|
1295
1295
|
kind: 'Fragment',
|
|
1296
|
-
version: VERSION$
|
|
1296
|
+
version: VERSION$f,
|
|
1297
1297
|
private: [],
|
|
1298
1298
|
selections: [
|
|
1299
1299
|
{
|
|
1300
1300
|
name: 'app',
|
|
1301
1301
|
kind: 'Link',
|
|
1302
|
-
fragment: select$
|
|
1302
|
+
fragment: select$u()
|
|
1303
1303
|
},
|
|
1304
1304
|
{
|
|
1305
1305
|
name: 'failureMessage',
|
|
@@ -1317,7 +1317,7 @@ const select$l = function AppResultRepresentationSelect() {
|
|
|
1317
1317
|
]
|
|
1318
1318
|
};
|
|
1319
1319
|
};
|
|
1320
|
-
function equals$
|
|
1320
|
+
function equals$f(existing, incoming) {
|
|
1321
1321
|
const existing_runtimeRequestId = existing.runtimeRequestId;
|
|
1322
1322
|
const incoming_runtimeRequestId = incoming.runtimeRequestId;
|
|
1323
1323
|
if (!(existing_runtimeRequestId === incoming_runtimeRequestId)) {
|
|
@@ -1347,14 +1347,14 @@ function equals$9(existing, incoming) {
|
|
|
1347
1347
|
}
|
|
1348
1348
|
const ingest$9 = function AppResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1349
1349
|
if (process.env.NODE_ENV !== 'production') {
|
|
1350
|
-
const validateError = validate$
|
|
1350
|
+
const validateError = validate$l(input);
|
|
1351
1351
|
if (validateError !== null) {
|
|
1352
1352
|
throw validateError;
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
1355
|
const key = keyBuilderFromType$7(luvio, input);
|
|
1356
1356
|
const ttlToUse = TTL$9;
|
|
1357
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "AppFramework", VERSION$
|
|
1357
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "AppFramework", VERSION$f, RepresentationType$9, equals$f);
|
|
1358
1358
|
return createLink(key);
|
|
1359
1359
|
};
|
|
1360
1360
|
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1368,8 +1368,8 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1368
1368
|
getTypeCacheKeys$b(rootKeySet, luvio, input.app);
|
|
1369
1369
|
}
|
|
1370
1370
|
|
|
1371
|
-
function select$
|
|
1372
|
-
return select$
|
|
1371
|
+
function select$q(luvio, params) {
|
|
1372
|
+
return select$r();
|
|
1373
1373
|
}
|
|
1374
1374
|
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
1375
1375
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
@@ -1380,7 +1380,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
1380
1380
|
luvio.storeIngest(key, ingest$9, body);
|
|
1381
1381
|
const snapshot = luvio.storeLookup({
|
|
1382
1382
|
recordId: key,
|
|
1383
|
-
node: select$
|
|
1383
|
+
node: select$q(),
|
|
1384
1384
|
variables: {},
|
|
1385
1385
|
});
|
|
1386
1386
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1566,8 +1566,8 @@ const deleteAppAdapterFactory = (luvio) => {
|
|
|
1566
1566
|
};
|
|
1567
1567
|
};
|
|
1568
1568
|
|
|
1569
|
-
function select$
|
|
1570
|
-
return select$
|
|
1569
|
+
function select$p(luvio, params) {
|
|
1570
|
+
return select$u();
|
|
1571
1571
|
}
|
|
1572
1572
|
function keyBuilder$o(luvio, params) {
|
|
1573
1573
|
return keyBuilder$t(luvio, {
|
|
@@ -1583,7 +1583,7 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1583
1583
|
luvio.storeIngest(key, ingest$b, body);
|
|
1584
1584
|
const snapshot = luvio.storeLookup({
|
|
1585
1585
|
recordId: key,
|
|
1586
|
-
node: select$
|
|
1586
|
+
node: select$p(),
|
|
1587
1587
|
variables: {},
|
|
1588
1588
|
}, snapshotRefresh);
|
|
1589
1589
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1600,7 +1600,7 @@ function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
|
1600
1600
|
const storeMetadataParams = {
|
|
1601
1601
|
ttl: TTL$b,
|
|
1602
1602
|
namespace: keyPrefix,
|
|
1603
|
-
version: VERSION$
|
|
1603
|
+
version: VERSION$h,
|
|
1604
1604
|
representationName: RepresentationType$b
|
|
1605
1605
|
};
|
|
1606
1606
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -1650,7 +1650,7 @@ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
|
1650
1650
|
}
|
|
1651
1651
|
function adapterFragment$8(luvio, config) {
|
|
1652
1652
|
createResourceParams$a(config);
|
|
1653
|
-
return select$
|
|
1653
|
+
return select$p();
|
|
1654
1654
|
}
|
|
1655
1655
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
1656
1656
|
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
@@ -1707,8 +1707,8 @@ const getAppAdapterFactory = (luvio) => function AppFramework__getApp(untrustedC
|
|
|
1707
1707
|
};
|
|
1708
1708
|
|
|
1709
1709
|
const TTL$8 = 5000;
|
|
1710
|
-
const VERSION$
|
|
1711
|
-
function validate$
|
|
1710
|
+
const VERSION$e = "b8e879a936b5069ec247355c66198ca7";
|
|
1711
|
+
function validate$k(obj, path = 'AppActivityItemRepresentation') {
|
|
1712
1712
|
const v_error = (() => {
|
|
1713
1713
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1714
1714
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1764,10 +1764,10 @@ function keyBuilderFromType$6(luvio, object) {
|
|
|
1764
1764
|
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
1765
1765
|
return input;
|
|
1766
1766
|
}
|
|
1767
|
-
const select$
|
|
1767
|
+
const select$o = function AppActivityItemRepresentationSelect() {
|
|
1768
1768
|
return {
|
|
1769
1769
|
kind: 'Fragment',
|
|
1770
|
-
version: VERSION$
|
|
1770
|
+
version: VERSION$e,
|
|
1771
1771
|
private: [],
|
|
1772
1772
|
selections: [
|
|
1773
1773
|
{
|
|
@@ -1794,7 +1794,7 @@ const select$i = function AppActivityItemRepresentationSelect() {
|
|
|
1794
1794
|
]
|
|
1795
1795
|
};
|
|
1796
1796
|
};
|
|
1797
|
-
function equals$
|
|
1797
|
+
function equals$e(existing, incoming) {
|
|
1798
1798
|
const existing_activityType = existing.activityType;
|
|
1799
1799
|
const incoming_activityType = incoming.activityType;
|
|
1800
1800
|
if (!(existing_activityType === incoming_activityType)) {
|
|
@@ -1829,14 +1829,14 @@ function equals$8(existing, incoming) {
|
|
|
1829
1829
|
}
|
|
1830
1830
|
const ingest$8 = function AppActivityItemRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1831
1831
|
if (process.env.NODE_ENV !== 'production') {
|
|
1832
|
-
const validateError = validate$
|
|
1832
|
+
const validateError = validate$k(input);
|
|
1833
1833
|
if (validateError !== null) {
|
|
1834
1834
|
throw validateError;
|
|
1835
1835
|
}
|
|
1836
1836
|
}
|
|
1837
1837
|
const key = keyBuilderFromType$6(luvio, input);
|
|
1838
1838
|
const ttlToUse = TTL$8;
|
|
1839
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "AppFramework", VERSION$
|
|
1839
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "AppFramework", VERSION$e, RepresentationType$8, equals$e);
|
|
1840
1840
|
return createLink(key);
|
|
1841
1841
|
};
|
|
1842
1842
|
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1850,8 +1850,8 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1850
1850
|
}
|
|
1851
1851
|
|
|
1852
1852
|
const TTL$7 = 5000;
|
|
1853
|
-
const VERSION$
|
|
1854
|
-
function validate$
|
|
1853
|
+
const VERSION$d = "e0f049ec23678e696fb7c592c9641c65";
|
|
1854
|
+
function validate$j(obj, path = 'AppActivityCollectionRepresentation') {
|
|
1855
1855
|
const v_error = (() => {
|
|
1856
1856
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1857
1857
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1905,10 +1905,10 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
1905
1905
|
}
|
|
1906
1906
|
return input;
|
|
1907
1907
|
}
|
|
1908
|
-
const select$
|
|
1908
|
+
const select$n = function AppActivityCollectionRepresentationSelect() {
|
|
1909
1909
|
return {
|
|
1910
1910
|
kind: 'Fragment',
|
|
1911
|
-
version: VERSION$
|
|
1911
|
+
version: VERSION$d,
|
|
1912
1912
|
private: [],
|
|
1913
1913
|
selections: [
|
|
1914
1914
|
{
|
|
@@ -1919,12 +1919,12 @@ const select$h = function AppActivityCollectionRepresentationSelect() {
|
|
|
1919
1919
|
name: 'items',
|
|
1920
1920
|
kind: 'Link',
|
|
1921
1921
|
plural: true,
|
|
1922
|
-
fragment: select$
|
|
1922
|
+
fragment: select$o()
|
|
1923
1923
|
}
|
|
1924
1924
|
]
|
|
1925
1925
|
};
|
|
1926
1926
|
};
|
|
1927
|
-
function equals$
|
|
1927
|
+
function equals$d(existing, incoming) {
|
|
1928
1928
|
const existing_appId = existing.appId;
|
|
1929
1929
|
const incoming_appId = incoming.appId;
|
|
1930
1930
|
if (!(existing_appId === incoming_appId)) {
|
|
@@ -1944,14 +1944,14 @@ function equals$7(existing, incoming) {
|
|
|
1944
1944
|
}
|
|
1945
1945
|
const ingest$7 = function AppActivityCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1946
1946
|
if (process.env.NODE_ENV !== 'production') {
|
|
1947
|
-
const validateError = validate$
|
|
1947
|
+
const validateError = validate$j(input);
|
|
1948
1948
|
if (validateError !== null) {
|
|
1949
1949
|
throw validateError;
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
1952
1952
|
const key = keyBuilderFromType$5(luvio, input);
|
|
1953
1953
|
const ttlToUse = TTL$7;
|
|
1954
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "AppFramework", VERSION$
|
|
1954
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "AppFramework", VERSION$d, RepresentationType$7, equals$d);
|
|
1955
1955
|
return createLink(key);
|
|
1956
1956
|
};
|
|
1957
1957
|
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1968,8 +1968,8 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
1970
|
|
|
1971
|
-
function select$
|
|
1972
|
-
return select$
|
|
1971
|
+
function select$m(luvio, params) {
|
|
1972
|
+
return select$n();
|
|
1973
1973
|
}
|
|
1974
1974
|
function keyBuilder$k(luvio, params) {
|
|
1975
1975
|
return keyBuilder$l(luvio, {
|
|
@@ -1985,7 +1985,7 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1985
1985
|
luvio.storeIngest(key, ingest$7, body);
|
|
1986
1986
|
const snapshot = luvio.storeLookup({
|
|
1987
1987
|
recordId: key,
|
|
1988
|
-
node: select$
|
|
1988
|
+
node: select$m(),
|
|
1989
1989
|
variables: {},
|
|
1990
1990
|
}, snapshotRefresh);
|
|
1991
1991
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2002,7 +2002,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
2002
2002
|
const storeMetadataParams = {
|
|
2003
2003
|
ttl: TTL$7,
|
|
2004
2004
|
namespace: keyPrefix,
|
|
2005
|
-
version: VERSION$
|
|
2005
|
+
version: VERSION$d,
|
|
2006
2006
|
representationName: RepresentationType$7
|
|
2007
2007
|
};
|
|
2008
2008
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -2052,7 +2052,7 @@ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
|
2052
2052
|
}
|
|
2053
2053
|
function adapterFragment$7(luvio, config) {
|
|
2054
2054
|
createResourceParams$9(config);
|
|
2055
|
-
return select$
|
|
2055
|
+
return select$m();
|
|
2056
2056
|
}
|
|
2057
2057
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
2058
2058
|
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
@@ -2108,8 +2108,8 @@ const getAppActivitiesAdapterFactory = (luvio) => function AppFramework__getAppA
|
|
|
2108
2108
|
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
2109
2109
|
};
|
|
2110
2110
|
|
|
2111
|
-
function select$
|
|
2112
|
-
return select$
|
|
2111
|
+
function select$l(luvio, params) {
|
|
2112
|
+
return select$o();
|
|
2113
2113
|
}
|
|
2114
2114
|
function keyBuilder$i(luvio, params) {
|
|
2115
2115
|
return keyBuilder$m(luvio, {
|
|
@@ -2126,7 +2126,7 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2126
2126
|
luvio.storeIngest(key, ingest$8, body);
|
|
2127
2127
|
const snapshot = luvio.storeLookup({
|
|
2128
2128
|
recordId: key,
|
|
2129
|
-
node: select$
|
|
2129
|
+
node: select$l(),
|
|
2130
2130
|
variables: {},
|
|
2131
2131
|
}, snapshotRefresh);
|
|
2132
2132
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2143,7 +2143,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
2143
2143
|
const storeMetadataParams = {
|
|
2144
2144
|
ttl: TTL$8,
|
|
2145
2145
|
namespace: keyPrefix,
|
|
2146
|
-
version: VERSION$
|
|
2146
|
+
version: VERSION$e,
|
|
2147
2147
|
representationName: RepresentationType$8
|
|
2148
2148
|
};
|
|
2149
2149
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -2194,7 +2194,7 @@ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
|
2194
2194
|
}
|
|
2195
2195
|
function adapterFragment$6(luvio, config) {
|
|
2196
2196
|
createResourceParams$8(config);
|
|
2197
|
-
return select$
|
|
2197
|
+
return select$l();
|
|
2198
2198
|
}
|
|
2199
2199
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
2200
2200
|
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
@@ -2251,8 +2251,8 @@ const getAppActivityAdapterFactory = (luvio) => function AppFramework__getAppAct
|
|
|
2251
2251
|
};
|
|
2252
2252
|
|
|
2253
2253
|
const TTL$6 = 5000;
|
|
2254
|
-
const VERSION$
|
|
2255
|
-
function validate$
|
|
2254
|
+
const VERSION$c = "b91a35834fb34f4f6cede2d5dc29dc5d";
|
|
2255
|
+
function validate$i(obj, path = 'AssetRepresentation') {
|
|
2256
2256
|
const v_error = (() => {
|
|
2257
2257
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2258
2258
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2418,10 +2418,10 @@ function keyBuilderFromType$4(luvio, object) {
|
|
|
2418
2418
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
2419
2419
|
return input;
|
|
2420
2420
|
}
|
|
2421
|
-
const select$
|
|
2421
|
+
const select$k = function AssetRepresentationSelect() {
|
|
2422
2422
|
return {
|
|
2423
2423
|
kind: 'Fragment',
|
|
2424
|
-
version: VERSION$
|
|
2424
|
+
version: VERSION$c,
|
|
2425
2425
|
private: [],
|
|
2426
2426
|
selections: [
|
|
2427
2427
|
{
|
|
@@ -2459,7 +2459,7 @@ const select$e = function AssetRepresentationSelect() {
|
|
|
2459
2459
|
]
|
|
2460
2460
|
};
|
|
2461
2461
|
};
|
|
2462
|
-
function equals$
|
|
2462
|
+
function equals$c(existing, incoming) {
|
|
2463
2463
|
const existing_appId = existing.appId;
|
|
2464
2464
|
const incoming_appId = incoming.appId;
|
|
2465
2465
|
if (!(existing_appId === incoming_appId)) {
|
|
@@ -2504,14 +2504,14 @@ function equals$6(existing, incoming) {
|
|
|
2504
2504
|
}
|
|
2505
2505
|
const ingest$6 = function AssetRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2506
2506
|
if (process.env.NODE_ENV !== 'production') {
|
|
2507
|
-
const validateError = validate$
|
|
2507
|
+
const validateError = validate$i(input);
|
|
2508
2508
|
if (validateError !== null) {
|
|
2509
2509
|
throw validateError;
|
|
2510
2510
|
}
|
|
2511
2511
|
}
|
|
2512
2512
|
const key = keyBuilderFromType$4(luvio, input);
|
|
2513
2513
|
const ttlToUse = TTL$6;
|
|
2514
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "AppFramework", VERSION$
|
|
2514
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "AppFramework", VERSION$c, RepresentationType$6, equals$c);
|
|
2515
2515
|
return createLink(key);
|
|
2516
2516
|
};
|
|
2517
2517
|
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2525,8 +2525,8 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2525
2525
|
}
|
|
2526
2526
|
|
|
2527
2527
|
const TTL$5 = 5000;
|
|
2528
|
-
const VERSION$
|
|
2529
|
-
function validate$
|
|
2528
|
+
const VERSION$b = "1a10175fcc2ad43823e47bfbbdf917f6";
|
|
2529
|
+
function validate$h(obj, path = 'AssetCollectionRepresentation') {
|
|
2530
2530
|
const v_error = (() => {
|
|
2531
2531
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2532
2532
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2580,10 +2580,10 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
|
2580
2580
|
}
|
|
2581
2581
|
return input;
|
|
2582
2582
|
}
|
|
2583
|
-
const select$
|
|
2583
|
+
const select$j = function AssetCollectionRepresentationSelect() {
|
|
2584
2584
|
return {
|
|
2585
2585
|
kind: 'Fragment',
|
|
2586
|
-
version: VERSION$
|
|
2586
|
+
version: VERSION$b,
|
|
2587
2587
|
private: [],
|
|
2588
2588
|
selections: [
|
|
2589
2589
|
{
|
|
@@ -2594,12 +2594,12 @@ const select$d = function AssetCollectionRepresentationSelect() {
|
|
|
2594
2594
|
name: 'assets',
|
|
2595
2595
|
kind: 'Link',
|
|
2596
2596
|
plural: true,
|
|
2597
|
-
fragment: select$
|
|
2597
|
+
fragment: select$k()
|
|
2598
2598
|
}
|
|
2599
2599
|
]
|
|
2600
2600
|
};
|
|
2601
2601
|
};
|
|
2602
|
-
function equals$
|
|
2602
|
+
function equals$b(existing, incoming) {
|
|
2603
2603
|
const existing_appId = existing.appId;
|
|
2604
2604
|
const incoming_appId = incoming.appId;
|
|
2605
2605
|
if (!(existing_appId === incoming_appId)) {
|
|
@@ -2619,14 +2619,14 @@ function equals$5(existing, incoming) {
|
|
|
2619
2619
|
}
|
|
2620
2620
|
const ingest$5 = function AssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2621
2621
|
if (process.env.NODE_ENV !== 'production') {
|
|
2622
|
-
const validateError = validate$
|
|
2622
|
+
const validateError = validate$h(input);
|
|
2623
2623
|
if (validateError !== null) {
|
|
2624
2624
|
throw validateError;
|
|
2625
2625
|
}
|
|
2626
2626
|
}
|
|
2627
2627
|
const key = keyBuilderFromType$3(luvio, input);
|
|
2628
2628
|
const ttlToUse = TTL$5;
|
|
2629
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "AppFramework", VERSION$
|
|
2629
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "AppFramework", VERSION$b, RepresentationType$5, equals$b);
|
|
2630
2630
|
return createLink(key);
|
|
2631
2631
|
};
|
|
2632
2632
|
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2643,8 +2643,8 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2643
2643
|
}
|
|
2644
2644
|
}
|
|
2645
2645
|
|
|
2646
|
-
function select$
|
|
2647
|
-
return select$
|
|
2646
|
+
function select$i(luvio, params) {
|
|
2647
|
+
return select$j();
|
|
2648
2648
|
}
|
|
2649
2649
|
function keyBuilder$e(luvio, params) {
|
|
2650
2650
|
return keyBuilder$f(luvio, {
|
|
@@ -2660,7 +2660,7 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2660
2660
|
luvio.storeIngest(key, ingest$5, body);
|
|
2661
2661
|
const snapshot = luvio.storeLookup({
|
|
2662
2662
|
recordId: key,
|
|
2663
|
-
node: select$
|
|
2663
|
+
node: select$i(),
|
|
2664
2664
|
variables: {},
|
|
2665
2665
|
}, snapshotRefresh);
|
|
2666
2666
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2677,7 +2677,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
2677
2677
|
const storeMetadataParams = {
|
|
2678
2678
|
ttl: TTL$5,
|
|
2679
2679
|
namespace: keyPrefix,
|
|
2680
|
-
version: VERSION$
|
|
2680
|
+
version: VERSION$b,
|
|
2681
2681
|
representationName: RepresentationType$5
|
|
2682
2682
|
};
|
|
2683
2683
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -2729,7 +2729,7 @@ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
|
2729
2729
|
}
|
|
2730
2730
|
function adapterFragment$5(luvio, config) {
|
|
2731
2731
|
createResourceParams$7(config);
|
|
2732
|
-
return select$
|
|
2732
|
+
return select$i();
|
|
2733
2733
|
}
|
|
2734
2734
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
2735
2735
|
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
@@ -2786,8 +2786,8 @@ const getAppAssetsAdapterFactory = (luvio) => function AppFramework__getAppAsset
|
|
|
2786
2786
|
};
|
|
2787
2787
|
|
|
2788
2788
|
const TTL$4 = 5000;
|
|
2789
|
-
const VERSION$
|
|
2790
|
-
function validate$
|
|
2789
|
+
const VERSION$a = "4b0d1bee319e31459f529b802621d6b8";
|
|
2790
|
+
function validate$g(obj, path = 'InstalledAssetCollectionRepresentation') {
|
|
2791
2791
|
const v_error = (() => {
|
|
2792
2792
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2793
2793
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2827,22 +2827,22 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
2827
2827
|
}
|
|
2828
2828
|
return input;
|
|
2829
2829
|
}
|
|
2830
|
-
const select$
|
|
2830
|
+
const select$h = function InstalledAssetCollectionRepresentationSelect() {
|
|
2831
2831
|
return {
|
|
2832
2832
|
kind: 'Fragment',
|
|
2833
|
-
version: VERSION$
|
|
2833
|
+
version: VERSION$a,
|
|
2834
2834
|
private: [],
|
|
2835
2835
|
selections: [
|
|
2836
2836
|
{
|
|
2837
2837
|
name: 'assets',
|
|
2838
2838
|
kind: 'Link',
|
|
2839
2839
|
plural: true,
|
|
2840
|
-
fragment: select$
|
|
2840
|
+
fragment: select$k()
|
|
2841
2841
|
}
|
|
2842
2842
|
]
|
|
2843
2843
|
};
|
|
2844
2844
|
};
|
|
2845
|
-
function equals$
|
|
2845
|
+
function equals$a(existing, incoming) {
|
|
2846
2846
|
const existing_assets = existing.assets;
|
|
2847
2847
|
const incoming_assets = incoming.assets;
|
|
2848
2848
|
const equals_assets_items = equalsArray(existing_assets, incoming_assets, (existing_assets_item, incoming_assets_item) => {
|
|
@@ -2857,14 +2857,14 @@ function equals$4(existing, incoming) {
|
|
|
2857
2857
|
}
|
|
2858
2858
|
const ingest$4 = function InstalledAssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2859
2859
|
if (process.env.NODE_ENV !== 'production') {
|
|
2860
|
-
const validateError = validate$
|
|
2860
|
+
const validateError = validate$g(input);
|
|
2861
2861
|
if (validateError !== null) {
|
|
2862
2862
|
throw validateError;
|
|
2863
2863
|
}
|
|
2864
2864
|
}
|
|
2865
2865
|
const key = path.fullPath;
|
|
2866
2866
|
const ttlToUse = TTL$4;
|
|
2867
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "AppFramework", VERSION$
|
|
2867
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "AppFramework", VERSION$a, RepresentationType$4, equals$a);
|
|
2868
2868
|
return createLink(key);
|
|
2869
2869
|
};
|
|
2870
2870
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2881,8 +2881,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2881
2881
|
}
|
|
2882
2882
|
}
|
|
2883
2883
|
|
|
2884
|
-
function select$
|
|
2885
|
-
return select$
|
|
2884
|
+
function select$g(luvio, params) {
|
|
2885
|
+
return select$h();
|
|
2886
2886
|
}
|
|
2887
2887
|
function keyBuilder$c(luvio, params) {
|
|
2888
2888
|
return keyPrefix + '::InstalledAssetCollectionRepresentation:(' + 'assetIdOrName:' + params.queryParams.assetIdOrName + ',' + 'assetType:' + params.queryParams.assetType + ')';
|
|
@@ -2896,7 +2896,7 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2896
2896
|
luvio.storeIngest(key, ingest$4, body);
|
|
2897
2897
|
const snapshot = luvio.storeLookup({
|
|
2898
2898
|
recordId: key,
|
|
2899
|
-
node: select$
|
|
2899
|
+
node: select$g(),
|
|
2900
2900
|
variables: {},
|
|
2901
2901
|
}, snapshotRefresh);
|
|
2902
2902
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2913,7 +2913,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
2913
2913
|
const storeMetadataParams = {
|
|
2914
2914
|
ttl: TTL$4,
|
|
2915
2915
|
namespace: keyPrefix,
|
|
2916
|
-
version: VERSION$
|
|
2916
|
+
version: VERSION$a,
|
|
2917
2917
|
representationName: RepresentationType$4
|
|
2918
2918
|
};
|
|
2919
2919
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -2964,7 +2964,7 @@ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
|
2964
2964
|
}
|
|
2965
2965
|
function adapterFragment$4(luvio, config) {
|
|
2966
2966
|
createResourceParams$6(config);
|
|
2967
|
-
return select$
|
|
2967
|
+
return select$g();
|
|
2968
2968
|
}
|
|
2969
2969
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
2970
2970
|
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
@@ -3021,8 +3021,8 @@ const getInstalledAssetsAdapterFactory = (luvio) => function AppFramework__getIn
|
|
|
3021
3021
|
};
|
|
3022
3022
|
|
|
3023
3023
|
const TTL$3 = 5000;
|
|
3024
|
-
const VERSION$
|
|
3025
|
-
function validate$
|
|
3024
|
+
const VERSION$9 = "6dc14a9d8180717ba4c1d0c6f1f72178";
|
|
3025
|
+
function validate$f(obj, path = 'TemplateRepresentation') {
|
|
3026
3026
|
const v_error = (() => {
|
|
3027
3027
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3028
3028
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3034,8 +3034,29 @@ function validate$9(obj, path = 'TemplateRepresentation') {
|
|
|
3034
3034
|
}
|
|
3035
3035
|
const obj_createdDate = obj.createdDate;
|
|
3036
3036
|
const path_createdDate = path + '.createdDate';
|
|
3037
|
-
|
|
3038
|
-
|
|
3037
|
+
let obj_createdDate_union0 = null;
|
|
3038
|
+
const obj_createdDate_union0_error = (() => {
|
|
3039
|
+
if (typeof obj_createdDate !== 'string') {
|
|
3040
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
3041
|
+
}
|
|
3042
|
+
})();
|
|
3043
|
+
if (obj_createdDate_union0_error != null) {
|
|
3044
|
+
obj_createdDate_union0 = obj_createdDate_union0_error.message;
|
|
3045
|
+
}
|
|
3046
|
+
let obj_createdDate_union1 = null;
|
|
3047
|
+
const obj_createdDate_union1_error = (() => {
|
|
3048
|
+
if (obj_createdDate !== null) {
|
|
3049
|
+
return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
3050
|
+
}
|
|
3051
|
+
})();
|
|
3052
|
+
if (obj_createdDate_union1_error != null) {
|
|
3053
|
+
obj_createdDate_union1 = obj_createdDate_union1_error.message;
|
|
3054
|
+
}
|
|
3055
|
+
if (obj_createdDate_union0 && obj_createdDate_union1) {
|
|
3056
|
+
let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
|
|
3057
|
+
message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3058
|
+
message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3059
|
+
return new TypeError(message);
|
|
3039
3060
|
}
|
|
3040
3061
|
const obj_description = obj.description;
|
|
3041
3062
|
const path_description = path + '.description';
|
|
@@ -3075,8 +3096,29 @@ function validate$9(obj, path = 'TemplateRepresentation') {
|
|
|
3075
3096
|
}
|
|
3076
3097
|
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
3077
3098
|
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
3078
|
-
|
|
3079
|
-
|
|
3099
|
+
let obj_lastModifiedDate_union0 = null;
|
|
3100
|
+
const obj_lastModifiedDate_union0_error = (() => {
|
|
3101
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
3102
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
3103
|
+
}
|
|
3104
|
+
})();
|
|
3105
|
+
if (obj_lastModifiedDate_union0_error != null) {
|
|
3106
|
+
obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
|
|
3107
|
+
}
|
|
3108
|
+
let obj_lastModifiedDate_union1 = null;
|
|
3109
|
+
const obj_lastModifiedDate_union1_error = (() => {
|
|
3110
|
+
if (obj_lastModifiedDate !== null) {
|
|
3111
|
+
return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
3112
|
+
}
|
|
3113
|
+
})();
|
|
3114
|
+
if (obj_lastModifiedDate_union1_error != null) {
|
|
3115
|
+
obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
|
|
3116
|
+
}
|
|
3117
|
+
if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
|
|
3118
|
+
let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
|
|
3119
|
+
message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3120
|
+
message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3121
|
+
return new TypeError(message);
|
|
3080
3122
|
}
|
|
3081
3123
|
const obj_name = obj.name;
|
|
3082
3124
|
const path_name = path + '.name';
|
|
@@ -3123,10 +3165,10 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
3123
3165
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
3124
3166
|
return input;
|
|
3125
3167
|
}
|
|
3126
|
-
const select$
|
|
3168
|
+
const select$f = function TemplateRepresentationSelect() {
|
|
3127
3169
|
return {
|
|
3128
3170
|
kind: 'Fragment',
|
|
3129
|
-
version: VERSION$
|
|
3171
|
+
version: VERSION$9,
|
|
3130
3172
|
private: [],
|
|
3131
3173
|
selections: [
|
|
3132
3174
|
{
|
|
@@ -3173,17 +3215,12 @@ const select$9 = function TemplateRepresentationSelect() {
|
|
|
3173
3215
|
]
|
|
3174
3216
|
};
|
|
3175
3217
|
};
|
|
3176
|
-
function equals$
|
|
3218
|
+
function equals$9(existing, incoming) {
|
|
3177
3219
|
const existing_configurationUrl = existing.configurationUrl;
|
|
3178
3220
|
const incoming_configurationUrl = incoming.configurationUrl;
|
|
3179
3221
|
if (!(existing_configurationUrl === incoming_configurationUrl)) {
|
|
3180
3222
|
return false;
|
|
3181
3223
|
}
|
|
3182
|
-
const existing_createdDate = existing.createdDate;
|
|
3183
|
-
const incoming_createdDate = incoming.createdDate;
|
|
3184
|
-
if (!(existing_createdDate === incoming_createdDate)) {
|
|
3185
|
-
return false;
|
|
3186
|
-
}
|
|
3187
3224
|
const existing_id = existing.id;
|
|
3188
3225
|
const incoming_id = incoming.id;
|
|
3189
3226
|
if (!(existing_id === incoming_id)) {
|
|
@@ -3194,11 +3231,6 @@ function equals$3(existing, incoming) {
|
|
|
3194
3231
|
if (!(existing_label === incoming_label)) {
|
|
3195
3232
|
return false;
|
|
3196
3233
|
}
|
|
3197
|
-
const existing_lastModifiedDate = existing.lastModifiedDate;
|
|
3198
|
-
const incoming_lastModifiedDate = incoming.lastModifiedDate;
|
|
3199
|
-
if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
|
|
3200
|
-
return false;
|
|
3201
|
-
}
|
|
3202
3234
|
const existing_name = existing.name;
|
|
3203
3235
|
const incoming_name = incoming.name;
|
|
3204
3236
|
if (!(existing_name === incoming_name)) {
|
|
@@ -3214,11 +3246,21 @@ function equals$3(existing, incoming) {
|
|
|
3214
3246
|
if (!(existing_url === incoming_url)) {
|
|
3215
3247
|
return false;
|
|
3216
3248
|
}
|
|
3249
|
+
const existing_createdDate = existing.createdDate;
|
|
3250
|
+
const incoming_createdDate = incoming.createdDate;
|
|
3251
|
+
if (!(existing_createdDate === incoming_createdDate)) {
|
|
3252
|
+
return false;
|
|
3253
|
+
}
|
|
3217
3254
|
const existing_description = existing.description;
|
|
3218
3255
|
const incoming_description = incoming.description;
|
|
3219
3256
|
if (!(existing_description === incoming_description)) {
|
|
3220
3257
|
return false;
|
|
3221
3258
|
}
|
|
3259
|
+
const existing_lastModifiedDate = existing.lastModifiedDate;
|
|
3260
|
+
const incoming_lastModifiedDate = incoming.lastModifiedDate;
|
|
3261
|
+
if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
|
|
3262
|
+
return false;
|
|
3263
|
+
}
|
|
3222
3264
|
const existing_tags = existing.tags;
|
|
3223
3265
|
const incoming_tags = incoming.tags;
|
|
3224
3266
|
const equals_tags_props = equalsObject(existing_tags, incoming_tags, (existing_tags_prop, incoming_tags_prop) => {
|
|
@@ -3233,14 +3275,14 @@ function equals$3(existing, incoming) {
|
|
|
3233
3275
|
}
|
|
3234
3276
|
const ingest$3 = function TemplateRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3235
3277
|
if (process.env.NODE_ENV !== 'production') {
|
|
3236
|
-
const validateError = validate$
|
|
3278
|
+
const validateError = validate$f(input);
|
|
3237
3279
|
if (validateError !== null) {
|
|
3238
3280
|
throw validateError;
|
|
3239
3281
|
}
|
|
3240
3282
|
}
|
|
3241
3283
|
const key = keyBuilderFromType$2(luvio, input);
|
|
3242
3284
|
const ttlToUse = TTL$3;
|
|
3243
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "AppFramework", VERSION$
|
|
3285
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "AppFramework", VERSION$9, RepresentationType$3, equals$9);
|
|
3244
3286
|
return createLink(key);
|
|
3245
3287
|
};
|
|
3246
3288
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -3254,8 +3296,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3254
3296
|
}
|
|
3255
3297
|
|
|
3256
3298
|
const TTL$2 = 5000;
|
|
3257
|
-
const VERSION$
|
|
3258
|
-
function validate$
|
|
3299
|
+
const VERSION$8 = "4d3fc84707ae344f06fb99bd22e68f46";
|
|
3300
|
+
function validate$e(obj, path = 'TemplateCollectionRepresentation') {
|
|
3259
3301
|
const v_error = (() => {
|
|
3260
3302
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3261
3303
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3295,22 +3337,22 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
3295
3337
|
}
|
|
3296
3338
|
return input;
|
|
3297
3339
|
}
|
|
3298
|
-
const select$
|
|
3340
|
+
const select$e = function TemplateCollectionRepresentationSelect() {
|
|
3299
3341
|
return {
|
|
3300
3342
|
kind: 'Fragment',
|
|
3301
|
-
version: VERSION$
|
|
3343
|
+
version: VERSION$8,
|
|
3302
3344
|
private: [],
|
|
3303
3345
|
selections: [
|
|
3304
3346
|
{
|
|
3305
3347
|
name: 'templates',
|
|
3306
3348
|
kind: 'Link',
|
|
3307
3349
|
plural: true,
|
|
3308
|
-
fragment: select$
|
|
3350
|
+
fragment: select$f()
|
|
3309
3351
|
}
|
|
3310
3352
|
]
|
|
3311
3353
|
};
|
|
3312
3354
|
};
|
|
3313
|
-
function equals$
|
|
3355
|
+
function equals$8(existing, incoming) {
|
|
3314
3356
|
const existing_templates = existing.templates;
|
|
3315
3357
|
const incoming_templates = incoming.templates;
|
|
3316
3358
|
const equals_templates_items = equalsArray(existing_templates, incoming_templates, (existing_templates_item, incoming_templates_item) => {
|
|
@@ -3325,14 +3367,14 @@ function equals$2(existing, incoming) {
|
|
|
3325
3367
|
}
|
|
3326
3368
|
const ingest$2 = function TemplateCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3327
3369
|
if (process.env.NODE_ENV !== 'production') {
|
|
3328
|
-
const validateError = validate$
|
|
3370
|
+
const validateError = validate$e(input);
|
|
3329
3371
|
if (validateError !== null) {
|
|
3330
3372
|
throw validateError;
|
|
3331
3373
|
}
|
|
3332
3374
|
}
|
|
3333
3375
|
const key = path.fullPath;
|
|
3334
3376
|
const ttlToUse = TTL$2;
|
|
3335
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "AppFramework", VERSION$
|
|
3377
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "AppFramework", VERSION$8, RepresentationType$2, equals$8);
|
|
3336
3378
|
return createLink(key);
|
|
3337
3379
|
};
|
|
3338
3380
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -3349,8 +3391,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3349
3391
|
}
|
|
3350
3392
|
}
|
|
3351
3393
|
|
|
3352
|
-
function select$
|
|
3353
|
-
return select$
|
|
3394
|
+
function select$d(luvio, params) {
|
|
3395
|
+
return select$e();
|
|
3354
3396
|
}
|
|
3355
3397
|
function keyBuilder$9(luvio, params) {
|
|
3356
3398
|
return keyPrefix + '::TemplateCollectionRepresentation:(' + ')';
|
|
@@ -3364,7 +3406,7 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3364
3406
|
luvio.storeIngest(key, ingest$2, body);
|
|
3365
3407
|
const snapshot = luvio.storeLookup({
|
|
3366
3408
|
recordId: key,
|
|
3367
|
-
node: select$
|
|
3409
|
+
node: select$d(),
|
|
3368
3410
|
variables: {},
|
|
3369
3411
|
}, snapshotRefresh);
|
|
3370
3412
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3381,7 +3423,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
3381
3423
|
const storeMetadataParams = {
|
|
3382
3424
|
ttl: TTL$2,
|
|
3383
3425
|
namespace: keyPrefix,
|
|
3384
|
-
version: VERSION$
|
|
3426
|
+
version: VERSION$8,
|
|
3385
3427
|
representationName: RepresentationType$2
|
|
3386
3428
|
};
|
|
3387
3429
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -3428,7 +3470,7 @@ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
|
3428
3470
|
}
|
|
3429
3471
|
function adapterFragment$3(luvio, config) {
|
|
3430
3472
|
createResourceParams$5(config);
|
|
3431
|
-
return select$
|
|
3473
|
+
return select$d();
|
|
3432
3474
|
}
|
|
3433
3475
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
3434
3476
|
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
@@ -3484,7 +3526,7 @@ const getTemplatesAdapterFactory = (luvio) => function AppFramework__getTemplate
|
|
|
3484
3526
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
3485
3527
|
};
|
|
3486
3528
|
|
|
3487
|
-
function validate$
|
|
3529
|
+
function validate$d(obj, path = 'ChainDefinitionInputRepresentation') {
|
|
3488
3530
|
const v_error = (() => {
|
|
3489
3531
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3490
3532
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3510,7 +3552,7 @@ function validate$7(obj, path = 'ChainDefinitionInputRepresentation') {
|
|
|
3510
3552
|
return v_error === undefined ? null : v_error;
|
|
3511
3553
|
}
|
|
3512
3554
|
|
|
3513
|
-
function validate$
|
|
3555
|
+
function validate$c(obj, path = 'NamespacedReferenceInputRepresentation') {
|
|
3514
3556
|
const v_error = (() => {
|
|
3515
3557
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3516
3558
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3529,7 +3571,7 @@ function validate$6(obj, path = 'NamespacedReferenceInputRepresentation') {
|
|
|
3529
3571
|
return v_error === undefined ? null : v_error;
|
|
3530
3572
|
}
|
|
3531
3573
|
|
|
3532
|
-
function validate$
|
|
3574
|
+
function validate$b(obj, path = 'TemplatePreviewInputRepresentation') {
|
|
3533
3575
|
const v_error = (() => {
|
|
3534
3576
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3535
3577
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3562,7 +3604,7 @@ function validate$5(obj, path = 'TemplatePreviewInputRepresentation') {
|
|
|
3562
3604
|
return v_error === undefined ? null : v_error;
|
|
3563
3605
|
}
|
|
3564
3606
|
|
|
3565
|
-
function validate$
|
|
3607
|
+
function validate$a(obj, path = 'TemplateIconsInputRepresentation') {
|
|
3566
3608
|
const v_error = (() => {
|
|
3567
3609
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3568
3610
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3570,7 +3612,7 @@ function validate$4(obj, path = 'TemplateIconsInputRepresentation') {
|
|
|
3570
3612
|
if (obj.appBadge !== undefined) {
|
|
3571
3613
|
const obj_appBadge = obj.appBadge;
|
|
3572
3614
|
const path_appBadge = path + '.appBadge';
|
|
3573
|
-
const referencepath_appBadgeValidationError = validate$
|
|
3615
|
+
const referencepath_appBadgeValidationError = validate$c(obj_appBadge, path_appBadge);
|
|
3574
3616
|
if (referencepath_appBadgeValidationError !== null) {
|
|
3575
3617
|
let message = 'Object doesn\'t match NamespacedReferenceInputRepresentation (at "' + path_appBadge + '")\n';
|
|
3576
3618
|
message += referencepath_appBadgeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3580,7 +3622,7 @@ function validate$4(obj, path = 'TemplateIconsInputRepresentation') {
|
|
|
3580
3622
|
if (obj.templateBadge !== undefined) {
|
|
3581
3623
|
const obj_templateBadge = obj.templateBadge;
|
|
3582
3624
|
const path_templateBadge = path + '.templateBadge';
|
|
3583
|
-
const referencepath_templateBadgeValidationError = validate$
|
|
3625
|
+
const referencepath_templateBadgeValidationError = validate$c(obj_templateBadge, path_templateBadge);
|
|
3584
3626
|
if (referencepath_templateBadgeValidationError !== null) {
|
|
3585
3627
|
let message = 'Object doesn\'t match NamespacedReferenceInputRepresentation (at "' + path_templateBadge + '")\n';
|
|
3586
3628
|
message += referencepath_templateBadgeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3596,7 +3638,7 @@ function validate$4(obj, path = 'TemplateIconsInputRepresentation') {
|
|
|
3596
3638
|
for (let i = 0; i < obj_templatePreviews.length; i++) {
|
|
3597
3639
|
const obj_templatePreviews_item = obj_templatePreviews[i];
|
|
3598
3640
|
const path_templatePreviews_item = path_templatePreviews + '[' + i + ']';
|
|
3599
|
-
const referencepath_templatePreviews_itemValidationError = validate$
|
|
3641
|
+
const referencepath_templatePreviews_itemValidationError = validate$b(obj_templatePreviews_item, path_templatePreviews_item);
|
|
3600
3642
|
if (referencepath_templatePreviews_itemValidationError !== null) {
|
|
3601
3643
|
let message = 'Object doesn\'t match TemplatePreviewInputRepresentation (at "' + path_templatePreviews_item + '")\n';
|
|
3602
3644
|
message += referencepath_templatePreviews_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3608,7 +3650,7 @@ function validate$4(obj, path = 'TemplateIconsInputRepresentation') {
|
|
|
3608
3650
|
return v_error === undefined ? null : v_error;
|
|
3609
3651
|
}
|
|
3610
3652
|
|
|
3611
|
-
function validate$
|
|
3653
|
+
function validate$9(obj, path = 'ReleaseInfoInputRepresentation') {
|
|
3612
3654
|
const v_error = (() => {
|
|
3613
3655
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3614
3656
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3629,7 +3671,7 @@ function validate$3(obj, path = 'ReleaseInfoInputRepresentation') {
|
|
|
3629
3671
|
return v_error === undefined ? null : v_error;
|
|
3630
3672
|
}
|
|
3631
3673
|
|
|
3632
|
-
function validate$
|
|
3674
|
+
function validate$8(obj, path = 'RuleInfoInputRepresentation') {
|
|
3633
3675
|
const v_error = (() => {
|
|
3634
3676
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3635
3677
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3648,8 +3690,8 @@ function validate$2(obj, path = 'RuleInfoInputRepresentation') {
|
|
|
3648
3690
|
return v_error === undefined ? null : v_error;
|
|
3649
3691
|
}
|
|
3650
3692
|
|
|
3651
|
-
function select$
|
|
3652
|
-
return select$
|
|
3693
|
+
function select$c(luvio, params) {
|
|
3694
|
+
return select$f();
|
|
3653
3695
|
}
|
|
3654
3696
|
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
3655
3697
|
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
@@ -3660,7 +3702,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
3660
3702
|
luvio.storeIngest(key, ingest$3, body);
|
|
3661
3703
|
const snapshot = luvio.storeLookup({
|
|
3662
3704
|
recordId: key,
|
|
3663
|
-
node: select$
|
|
3705
|
+
node: select$c(),
|
|
3664
3706
|
variables: {},
|
|
3665
3707
|
});
|
|
3666
3708
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3713,7 +3755,7 @@ function typeCheckConfig$4(untrustedConfig) {
|
|
|
3713
3755
|
const untrustedConfig_chainDefinitions_array = [];
|
|
3714
3756
|
for (let i = 0, arrayLength = untrustedConfig_chainDefinitions.length; i < arrayLength; i++) {
|
|
3715
3757
|
const untrustedConfig_chainDefinitions_item = untrustedConfig_chainDefinitions[i];
|
|
3716
|
-
const referenceChainDefinitionInputRepresentationValidationError = validate$
|
|
3758
|
+
const referenceChainDefinitionInputRepresentationValidationError = validate$d(untrustedConfig_chainDefinitions_item);
|
|
3717
3759
|
if (referenceChainDefinitionInputRepresentationValidationError === null) {
|
|
3718
3760
|
untrustedConfig_chainDefinitions_array.push(untrustedConfig_chainDefinitions_item);
|
|
3719
3761
|
}
|
|
@@ -3721,12 +3763,12 @@ function typeCheckConfig$4(untrustedConfig) {
|
|
|
3721
3763
|
config.chainDefinitions = untrustedConfig_chainDefinitions_array;
|
|
3722
3764
|
}
|
|
3723
3765
|
const untrustedConfig_icons = untrustedConfig.icons;
|
|
3724
|
-
const referenceTemplateIconsInputRepresentationValidationError = validate$
|
|
3766
|
+
const referenceTemplateIconsInputRepresentationValidationError = validate$a(untrustedConfig_icons);
|
|
3725
3767
|
if (referenceTemplateIconsInputRepresentationValidationError === null) {
|
|
3726
3768
|
config.icons = untrustedConfig_icons;
|
|
3727
3769
|
}
|
|
3728
3770
|
const untrustedConfig_releaseInfo = untrustedConfig.releaseInfo;
|
|
3729
|
-
const referenceReleaseInfoInputRepresentationValidationError = validate$
|
|
3771
|
+
const referenceReleaseInfoInputRepresentationValidationError = validate$9(untrustedConfig_releaseInfo);
|
|
3730
3772
|
if (referenceReleaseInfoInputRepresentationValidationError === null) {
|
|
3731
3773
|
config.releaseInfo = untrustedConfig_releaseInfo;
|
|
3732
3774
|
}
|
|
@@ -3735,7 +3777,7 @@ function typeCheckConfig$4(untrustedConfig) {
|
|
|
3735
3777
|
const untrustedConfig_rules_array = [];
|
|
3736
3778
|
for (let i = 0, arrayLength = untrustedConfig_rules.length; i < arrayLength; i++) {
|
|
3737
3779
|
const untrustedConfig_rules_item = untrustedConfig_rules[i];
|
|
3738
|
-
const referenceRuleInfoInputRepresentationValidationError = validate$
|
|
3780
|
+
const referenceRuleInfoInputRepresentationValidationError = validate$8(untrustedConfig_rules_item);
|
|
3739
3781
|
if (referenceRuleInfoInputRepresentationValidationError === null) {
|
|
3740
3782
|
untrustedConfig_rules_array.push(untrustedConfig_rules_item);
|
|
3741
3783
|
}
|
|
@@ -3801,8 +3843,8 @@ const createTemplateAdapterFactory = (luvio) => {
|
|
|
3801
3843
|
};
|
|
3802
3844
|
};
|
|
3803
3845
|
|
|
3804
|
-
function select$
|
|
3805
|
-
return select$
|
|
3846
|
+
function select$b(luvio, params) {
|
|
3847
|
+
return select$f();
|
|
3806
3848
|
}
|
|
3807
3849
|
function keyBuilder$7(luvio, params) {
|
|
3808
3850
|
return keyBuilder$a(luvio, {
|
|
@@ -3818,7 +3860,7 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3818
3860
|
luvio.storeIngest(key, ingest$3, body);
|
|
3819
3861
|
const snapshot = luvio.storeLookup({
|
|
3820
3862
|
recordId: key,
|
|
3821
|
-
node: select$
|
|
3863
|
+
node: select$b(),
|
|
3822
3864
|
variables: {},
|
|
3823
3865
|
}, snapshotRefresh);
|
|
3824
3866
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3835,7 +3877,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
3835
3877
|
const storeMetadataParams = {
|
|
3836
3878
|
ttl: TTL$3,
|
|
3837
3879
|
namespace: keyPrefix,
|
|
3838
|
-
version: VERSION$
|
|
3880
|
+
version: VERSION$9,
|
|
3839
3881
|
representationName: RepresentationType$3
|
|
3840
3882
|
};
|
|
3841
3883
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -3885,7 +3927,7 @@ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
|
3885
3927
|
}
|
|
3886
3928
|
function adapterFragment$2(luvio, config) {
|
|
3887
3929
|
createResourceParams$3(config);
|
|
3888
|
-
return select$
|
|
3930
|
+
return select$b();
|
|
3889
3931
|
}
|
|
3890
3932
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
3891
3933
|
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
@@ -3941,65 +3983,725 @@ const getTemplateAdapterFactory = (luvio) => function AppFramework__getTemplate(
|
|
|
3941
3983
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
3942
3984
|
};
|
|
3943
3985
|
|
|
3944
|
-
const
|
|
3945
|
-
|
|
3946
|
-
function validate$1(obj, path = 'TemplateConfigurationRepresentation') {
|
|
3986
|
+
const VERSION$7 = "c0e40695f975d64bf46ee8f48e2b5f38";
|
|
3987
|
+
function validate$7(obj, path = 'ImageReferenceRepresentation') {
|
|
3947
3988
|
const v_error = (() => {
|
|
3948
3989
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3949
3990
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3950
3991
|
}
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3992
|
+
if (obj.id !== undefined) {
|
|
3993
|
+
const obj_id = obj.id;
|
|
3994
|
+
const path_id = path + '.id';
|
|
3995
|
+
if (typeof obj_id !== 'string') {
|
|
3996
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3997
|
+
}
|
|
3955
3998
|
}
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3999
|
+
if (obj.label !== undefined) {
|
|
4000
|
+
const obj_label = obj.label;
|
|
4001
|
+
const path_label = path + '.label';
|
|
4002
|
+
if (typeof obj_label !== 'string') {
|
|
4003
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
4004
|
+
}
|
|
4005
|
+
}
|
|
4006
|
+
if (obj.name !== undefined) {
|
|
4007
|
+
const obj_name = obj.name;
|
|
4008
|
+
const path_name = path + '.name';
|
|
4009
|
+
if (typeof obj_name !== 'string') {
|
|
4010
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
4011
|
+
}
|
|
4012
|
+
}
|
|
4013
|
+
if (obj.namespace !== undefined) {
|
|
4014
|
+
const obj_namespace = obj.namespace;
|
|
4015
|
+
const path_namespace = path + '.namespace';
|
|
4016
|
+
if (typeof obj_namespace !== 'string') {
|
|
4017
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
4018
|
+
}
|
|
4019
|
+
}
|
|
4020
|
+
if (obj.url !== undefined) {
|
|
4021
|
+
const obj_url = obj.url;
|
|
4022
|
+
const path_url = path + '.url';
|
|
4023
|
+
if (typeof obj_url !== 'string') {
|
|
4024
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
4025
|
+
}
|
|
3960
4026
|
}
|
|
3961
4027
|
})();
|
|
3962
4028
|
return v_error === undefined ? null : v_error;
|
|
3963
4029
|
}
|
|
3964
|
-
const
|
|
3965
|
-
function keyBuilder$5(luvio, config) {
|
|
3966
|
-
return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
|
|
3967
|
-
}
|
|
3968
|
-
function keyBuilderFromType$1(luvio, object) {
|
|
3969
|
-
const keyParams = {
|
|
3970
|
-
id: object.id
|
|
3971
|
-
};
|
|
3972
|
-
return keyBuilder$5(luvio, keyParams);
|
|
3973
|
-
}
|
|
3974
|
-
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
3975
|
-
return input;
|
|
3976
|
-
}
|
|
3977
|
-
const select$4 = function TemplateConfigurationRepresentationSelect() {
|
|
4030
|
+
const select$a = function ImageReferenceRepresentationSelect() {
|
|
3978
4031
|
return {
|
|
3979
4032
|
kind: 'Fragment',
|
|
3980
|
-
version: VERSION$
|
|
4033
|
+
version: VERSION$7,
|
|
3981
4034
|
private: [],
|
|
3982
4035
|
selections: [
|
|
3983
4036
|
{
|
|
3984
4037
|
name: 'id',
|
|
3985
|
-
kind: 'Scalar'
|
|
4038
|
+
kind: 'Scalar',
|
|
4039
|
+
required: false
|
|
4040
|
+
},
|
|
4041
|
+
{
|
|
4042
|
+
name: 'label',
|
|
4043
|
+
kind: 'Scalar',
|
|
4044
|
+
required: false
|
|
3986
4045
|
},
|
|
3987
4046
|
{
|
|
3988
4047
|
name: 'name',
|
|
3989
|
-
kind: 'Scalar'
|
|
4048
|
+
kind: 'Scalar',
|
|
4049
|
+
required: false
|
|
4050
|
+
},
|
|
4051
|
+
{
|
|
4052
|
+
name: 'namespace',
|
|
4053
|
+
kind: 'Scalar',
|
|
4054
|
+
required: false
|
|
4055
|
+
},
|
|
4056
|
+
{
|
|
4057
|
+
name: 'url',
|
|
4058
|
+
kind: 'Scalar',
|
|
4059
|
+
required: false
|
|
3990
4060
|
}
|
|
3991
4061
|
]
|
|
3992
4062
|
};
|
|
3993
4063
|
};
|
|
3994
|
-
function equals$
|
|
4064
|
+
function equals$7(existing, incoming) {
|
|
3995
4065
|
const existing_id = existing.id;
|
|
3996
4066
|
const incoming_id = incoming.id;
|
|
3997
|
-
if
|
|
3998
|
-
|
|
4067
|
+
// if at least one of these optionals is defined
|
|
4068
|
+
if (existing_id !== undefined || incoming_id !== undefined) {
|
|
4069
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4070
|
+
// not equal
|
|
4071
|
+
if (existing_id === undefined || incoming_id === undefined) {
|
|
4072
|
+
return false;
|
|
4073
|
+
}
|
|
4074
|
+
if (!(existing_id === incoming_id)) {
|
|
4075
|
+
return false;
|
|
4076
|
+
}
|
|
4077
|
+
}
|
|
4078
|
+
const existing_label = existing.label;
|
|
4079
|
+
const incoming_label = incoming.label;
|
|
4080
|
+
// if at least one of these optionals is defined
|
|
4081
|
+
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
4082
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4083
|
+
// not equal
|
|
4084
|
+
if (existing_label === undefined || incoming_label === undefined) {
|
|
4085
|
+
return false;
|
|
4086
|
+
}
|
|
4087
|
+
if (!(existing_label === incoming_label)) {
|
|
4088
|
+
return false;
|
|
4089
|
+
}
|
|
3999
4090
|
}
|
|
4000
4091
|
const existing_name = existing.name;
|
|
4001
4092
|
const incoming_name = incoming.name;
|
|
4002
|
-
if
|
|
4093
|
+
// if at least one of these optionals is defined
|
|
4094
|
+
if (existing_name !== undefined || incoming_name !== undefined) {
|
|
4095
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4096
|
+
// not equal
|
|
4097
|
+
if (existing_name === undefined || incoming_name === undefined) {
|
|
4098
|
+
return false;
|
|
4099
|
+
}
|
|
4100
|
+
if (!(existing_name === incoming_name)) {
|
|
4101
|
+
return false;
|
|
4102
|
+
}
|
|
4103
|
+
}
|
|
4104
|
+
const existing_namespace = existing.namespace;
|
|
4105
|
+
const incoming_namespace = incoming.namespace;
|
|
4106
|
+
// if at least one of these optionals is defined
|
|
4107
|
+
if (existing_namespace !== undefined || incoming_namespace !== undefined) {
|
|
4108
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4109
|
+
// not equal
|
|
4110
|
+
if (existing_namespace === undefined || incoming_namespace === undefined) {
|
|
4111
|
+
return false;
|
|
4112
|
+
}
|
|
4113
|
+
if (!(existing_namespace === incoming_namespace)) {
|
|
4114
|
+
return false;
|
|
4115
|
+
}
|
|
4116
|
+
}
|
|
4117
|
+
const existing_url = existing.url;
|
|
4118
|
+
const incoming_url = incoming.url;
|
|
4119
|
+
// if at least one of these optionals is defined
|
|
4120
|
+
if (existing_url !== undefined || incoming_url !== undefined) {
|
|
4121
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4122
|
+
// not equal
|
|
4123
|
+
if (existing_url === undefined || incoming_url === undefined) {
|
|
4124
|
+
return false;
|
|
4125
|
+
}
|
|
4126
|
+
if (!(existing_url === incoming_url)) {
|
|
4127
|
+
return false;
|
|
4128
|
+
}
|
|
4129
|
+
}
|
|
4130
|
+
return true;
|
|
4131
|
+
}
|
|
4132
|
+
|
|
4133
|
+
const VERSION$6 = "86de998fed5be771d0024e692d48ea17";
|
|
4134
|
+
function validate$6(obj, path = 'GuidancePanelRepresentation') {
|
|
4135
|
+
const v_error = (() => {
|
|
4136
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4137
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4138
|
+
}
|
|
4139
|
+
if (obj.backgroundImage !== undefined) {
|
|
4140
|
+
const obj_backgroundImage = obj.backgroundImage;
|
|
4141
|
+
const path_backgroundImage = path + '.backgroundImage';
|
|
4142
|
+
const referencepath_backgroundImageValidationError = validate$7(obj_backgroundImage, path_backgroundImage);
|
|
4143
|
+
if (referencepath_backgroundImageValidationError !== null) {
|
|
4144
|
+
let message = 'Object doesn\'t match ImageReferenceRepresentation (at "' + path_backgroundImage + '")\n';
|
|
4145
|
+
message += referencepath_backgroundImageValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4146
|
+
return new TypeError(message);
|
|
4147
|
+
}
|
|
4148
|
+
}
|
|
4149
|
+
const obj_items = obj.items;
|
|
4150
|
+
const path_items = path + '.items';
|
|
4151
|
+
if (!ArrayIsArray(obj_items)) {
|
|
4152
|
+
return new TypeError('Expected "array" but received "' + typeof obj_items + '" (at "' + path_items + '")');
|
|
4153
|
+
}
|
|
4154
|
+
for (let i = 0; i < obj_items.length; i++) {
|
|
4155
|
+
const obj_items_item = obj_items[i];
|
|
4156
|
+
const path_items_item = path_items + '[' + i + ']';
|
|
4157
|
+
if (obj_items_item === undefined) {
|
|
4158
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_items_item + '" (at "' + path_items_item + '")');
|
|
4159
|
+
}
|
|
4160
|
+
}
|
|
4161
|
+
const obj_title = obj.title;
|
|
4162
|
+
const path_title = path + '.title';
|
|
4163
|
+
let obj_title_union0 = null;
|
|
4164
|
+
const obj_title_union0_error = (() => {
|
|
4165
|
+
if (typeof obj_title !== 'string') {
|
|
4166
|
+
return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
4167
|
+
}
|
|
4168
|
+
})();
|
|
4169
|
+
if (obj_title_union0_error != null) {
|
|
4170
|
+
obj_title_union0 = obj_title_union0_error.message;
|
|
4171
|
+
}
|
|
4172
|
+
let obj_title_union1 = null;
|
|
4173
|
+
const obj_title_union1_error = (() => {
|
|
4174
|
+
if (obj_title !== null) {
|
|
4175
|
+
return new TypeError('Expected "null" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
4176
|
+
}
|
|
4177
|
+
})();
|
|
4178
|
+
if (obj_title_union1_error != null) {
|
|
4179
|
+
obj_title_union1 = obj_title_union1_error.message;
|
|
4180
|
+
}
|
|
4181
|
+
if (obj_title_union0 && obj_title_union1) {
|
|
4182
|
+
let message = 'Object doesn\'t match union (at "' + path_title + '")';
|
|
4183
|
+
message += '\n' + obj_title_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4184
|
+
message += '\n' + obj_title_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4185
|
+
return new TypeError(message);
|
|
4186
|
+
}
|
|
4187
|
+
})();
|
|
4188
|
+
return v_error === undefined ? null : v_error;
|
|
4189
|
+
}
|
|
4190
|
+
const select$9 = function GuidancePanelRepresentationSelect() {
|
|
4191
|
+
const { selections: ImageReferenceRepresentation__selections, opaque: ImageReferenceRepresentation__opaque, } = select$a();
|
|
4192
|
+
return {
|
|
4193
|
+
kind: 'Fragment',
|
|
4194
|
+
version: VERSION$6,
|
|
4195
|
+
private: [],
|
|
4196
|
+
selections: [
|
|
4197
|
+
{
|
|
4198
|
+
name: 'backgroundImage',
|
|
4199
|
+
kind: 'Object',
|
|
4200
|
+
selections: ImageReferenceRepresentation__selections,
|
|
4201
|
+
required: false
|
|
4202
|
+
},
|
|
4203
|
+
{
|
|
4204
|
+
name: 'items',
|
|
4205
|
+
kind: 'Object',
|
|
4206
|
+
// any
|
|
4207
|
+
},
|
|
4208
|
+
{
|
|
4209
|
+
name: 'title',
|
|
4210
|
+
kind: 'Scalar'
|
|
4211
|
+
}
|
|
4212
|
+
]
|
|
4213
|
+
};
|
|
4214
|
+
};
|
|
4215
|
+
function equals$6(existing, incoming) {
|
|
4216
|
+
const existing_backgroundImage = existing.backgroundImage;
|
|
4217
|
+
const incoming_backgroundImage = incoming.backgroundImage;
|
|
4218
|
+
// if at least one of these optionals is defined
|
|
4219
|
+
if (existing_backgroundImage !== undefined || incoming_backgroundImage !== undefined) {
|
|
4220
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4221
|
+
// not equal
|
|
4222
|
+
if (existing_backgroundImage === undefined || incoming_backgroundImage === undefined) {
|
|
4223
|
+
return false;
|
|
4224
|
+
}
|
|
4225
|
+
if (!(equals$7(existing_backgroundImage, incoming_backgroundImage))) {
|
|
4226
|
+
return false;
|
|
4227
|
+
}
|
|
4228
|
+
}
|
|
4229
|
+
const existing_items = existing.items;
|
|
4230
|
+
const incoming_items = incoming.items;
|
|
4231
|
+
const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
|
|
4232
|
+
if (JSONStringify(incoming_items_item) !== JSONStringify(existing_items_item)) {
|
|
4233
|
+
return false;
|
|
4234
|
+
}
|
|
4235
|
+
});
|
|
4236
|
+
if (equals_items_items === false) {
|
|
4237
|
+
return false;
|
|
4238
|
+
}
|
|
4239
|
+
const existing_title = existing.title;
|
|
4240
|
+
const incoming_title = incoming.title;
|
|
4241
|
+
if (!(existing_title === incoming_title)) {
|
|
4242
|
+
return false;
|
|
4243
|
+
}
|
|
4244
|
+
return true;
|
|
4245
|
+
}
|
|
4246
|
+
|
|
4247
|
+
const VERSION$5 = "2b610c7d0fed9bdeadbaf55f22f4bfff";
|
|
4248
|
+
function validate$5(obj, path = 'PageNavigationInfoRepresentation') {
|
|
4249
|
+
const v_error = (() => {
|
|
4250
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4251
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4252
|
+
}
|
|
4253
|
+
if (obj.label !== undefined) {
|
|
4254
|
+
const obj_label = obj.label;
|
|
4255
|
+
const path_label = path + '.label';
|
|
4256
|
+
if (typeof obj_label !== 'string') {
|
|
4257
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
4258
|
+
}
|
|
4259
|
+
}
|
|
4260
|
+
if (obj.parentLabel !== undefined) {
|
|
4261
|
+
const obj_parentLabel = obj.parentLabel;
|
|
4262
|
+
const path_parentLabel = path + '.parentLabel';
|
|
4263
|
+
if (typeof obj_parentLabel !== 'string') {
|
|
4264
|
+
return new TypeError('Expected "string" but received "' + typeof obj_parentLabel + '" (at "' + path_parentLabel + '")');
|
|
4265
|
+
}
|
|
4266
|
+
}
|
|
4267
|
+
})();
|
|
4268
|
+
return v_error === undefined ? null : v_error;
|
|
4269
|
+
}
|
|
4270
|
+
const select$8 = function PageNavigationInfoRepresentationSelect() {
|
|
4271
|
+
return {
|
|
4272
|
+
kind: 'Fragment',
|
|
4273
|
+
version: VERSION$5,
|
|
4274
|
+
private: [],
|
|
4275
|
+
selections: [
|
|
4276
|
+
{
|
|
4277
|
+
name: 'label',
|
|
4278
|
+
kind: 'Scalar',
|
|
4279
|
+
required: false
|
|
4280
|
+
},
|
|
4281
|
+
{
|
|
4282
|
+
name: 'parentLabel',
|
|
4283
|
+
kind: 'Scalar',
|
|
4284
|
+
required: false
|
|
4285
|
+
}
|
|
4286
|
+
]
|
|
4287
|
+
};
|
|
4288
|
+
};
|
|
4289
|
+
function equals$5(existing, incoming) {
|
|
4290
|
+
const existing_label = existing.label;
|
|
4291
|
+
const incoming_label = incoming.label;
|
|
4292
|
+
// if at least one of these optionals is defined
|
|
4293
|
+
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
4294
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4295
|
+
// not equal
|
|
4296
|
+
if (existing_label === undefined || incoming_label === undefined) {
|
|
4297
|
+
return false;
|
|
4298
|
+
}
|
|
4299
|
+
if (!(existing_label === incoming_label)) {
|
|
4300
|
+
return false;
|
|
4301
|
+
}
|
|
4302
|
+
}
|
|
4303
|
+
const existing_parentLabel = existing.parentLabel;
|
|
4304
|
+
const incoming_parentLabel = incoming.parentLabel;
|
|
4305
|
+
// if at least one of these optionals is defined
|
|
4306
|
+
if (existing_parentLabel !== undefined || incoming_parentLabel !== undefined) {
|
|
4307
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4308
|
+
// not equal
|
|
4309
|
+
if (existing_parentLabel === undefined || incoming_parentLabel === undefined) {
|
|
4310
|
+
return false;
|
|
4311
|
+
}
|
|
4312
|
+
if (!(existing_parentLabel === incoming_parentLabel)) {
|
|
4313
|
+
return false;
|
|
4314
|
+
}
|
|
4315
|
+
}
|
|
4316
|
+
return true;
|
|
4317
|
+
}
|
|
4318
|
+
|
|
4319
|
+
const VERSION$4 = "716884173ba0941453219096e1a56dc9";
|
|
4320
|
+
function validate$4(obj, path = 'AppDetailsRepresentation') {
|
|
4321
|
+
const v_error = (() => {
|
|
4322
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4323
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4324
|
+
}
|
|
4325
|
+
if (obj.guidancePanel !== undefined) {
|
|
4326
|
+
const obj_guidancePanel = obj.guidancePanel;
|
|
4327
|
+
const path_guidancePanel = path + '.guidancePanel';
|
|
4328
|
+
const referencepath_guidancePanelValidationError = validate$6(obj_guidancePanel, path_guidancePanel);
|
|
4329
|
+
if (referencepath_guidancePanelValidationError !== null) {
|
|
4330
|
+
let message = 'Object doesn\'t match GuidancePanelRepresentation (at "' + path_guidancePanel + '")\n';
|
|
4331
|
+
message += referencepath_guidancePanelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4332
|
+
return new TypeError(message);
|
|
4333
|
+
}
|
|
4334
|
+
}
|
|
4335
|
+
if (obj.navigation !== undefined) {
|
|
4336
|
+
const obj_navigation = obj.navigation;
|
|
4337
|
+
const path_navigation = path + '.navigation';
|
|
4338
|
+
const referencepath_navigationValidationError = validate$5(obj_navigation, path_navigation);
|
|
4339
|
+
if (referencepath_navigationValidationError !== null) {
|
|
4340
|
+
let message = 'Object doesn\'t match PageNavigationInfoRepresentation (at "' + path_navigation + '")\n';
|
|
4341
|
+
message += referencepath_navigationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4342
|
+
return new TypeError(message);
|
|
4343
|
+
}
|
|
4344
|
+
}
|
|
4345
|
+
})();
|
|
4346
|
+
return v_error === undefined ? null : v_error;
|
|
4347
|
+
}
|
|
4348
|
+
const select$7 = function AppDetailsRepresentationSelect() {
|
|
4349
|
+
const { selections: GuidancePanelRepresentation__selections, opaque: GuidancePanelRepresentation__opaque, } = select$9();
|
|
4350
|
+
const { selections: PageNavigationInfoRepresentation__selections, opaque: PageNavigationInfoRepresentation__opaque, } = select$8();
|
|
4351
|
+
return {
|
|
4352
|
+
kind: 'Fragment',
|
|
4353
|
+
version: VERSION$4,
|
|
4354
|
+
private: [],
|
|
4355
|
+
selections: [
|
|
4356
|
+
{
|
|
4357
|
+
name: 'guidancePanel',
|
|
4358
|
+
kind: 'Object',
|
|
4359
|
+
selections: GuidancePanelRepresentation__selections,
|
|
4360
|
+
required: false
|
|
4361
|
+
},
|
|
4362
|
+
{
|
|
4363
|
+
name: 'navigation',
|
|
4364
|
+
kind: 'Object',
|
|
4365
|
+
selections: PageNavigationInfoRepresentation__selections,
|
|
4366
|
+
required: false
|
|
4367
|
+
}
|
|
4368
|
+
]
|
|
4369
|
+
};
|
|
4370
|
+
};
|
|
4371
|
+
function equals$4(existing, incoming) {
|
|
4372
|
+
const existing_guidancePanel = existing.guidancePanel;
|
|
4373
|
+
const incoming_guidancePanel = incoming.guidancePanel;
|
|
4374
|
+
// if at least one of these optionals is defined
|
|
4375
|
+
if (existing_guidancePanel !== undefined || incoming_guidancePanel !== undefined) {
|
|
4376
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4377
|
+
// not equal
|
|
4378
|
+
if (existing_guidancePanel === undefined || incoming_guidancePanel === undefined) {
|
|
4379
|
+
return false;
|
|
4380
|
+
}
|
|
4381
|
+
if (!(equals$6(existing_guidancePanel, incoming_guidancePanel))) {
|
|
4382
|
+
return false;
|
|
4383
|
+
}
|
|
4384
|
+
}
|
|
4385
|
+
const existing_navigation = existing.navigation;
|
|
4386
|
+
const incoming_navigation = incoming.navigation;
|
|
4387
|
+
// if at least one of these optionals is defined
|
|
4388
|
+
if (existing_navigation !== undefined || incoming_navigation !== undefined) {
|
|
4389
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4390
|
+
// not equal
|
|
4391
|
+
if (existing_navigation === undefined || incoming_navigation === undefined) {
|
|
4392
|
+
return false;
|
|
4393
|
+
}
|
|
4394
|
+
if (!(equals$5(existing_navigation, incoming_navigation))) {
|
|
4395
|
+
return false;
|
|
4396
|
+
}
|
|
4397
|
+
}
|
|
4398
|
+
return true;
|
|
4399
|
+
}
|
|
4400
|
+
|
|
4401
|
+
const VERSION$3 = "7079de4d1fb30194c876bf96bc3a9bd6";
|
|
4402
|
+
function validate$3(obj, path = 'NavigationPanelRepresentation') {
|
|
4403
|
+
const v_error = (() => {
|
|
4404
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4405
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4406
|
+
}
|
|
4407
|
+
const obj_title = obj.title;
|
|
4408
|
+
const path_title = path + '.title';
|
|
4409
|
+
if (typeof obj_title !== 'string') {
|
|
4410
|
+
return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
4411
|
+
}
|
|
4412
|
+
})();
|
|
4413
|
+
return v_error === undefined ? null : v_error;
|
|
4414
|
+
}
|
|
4415
|
+
const select$6 = function NavigationPanelRepresentationSelect() {
|
|
4416
|
+
return {
|
|
4417
|
+
kind: 'Fragment',
|
|
4418
|
+
version: VERSION$3,
|
|
4419
|
+
private: [],
|
|
4420
|
+
selections: [
|
|
4421
|
+
{
|
|
4422
|
+
name: 'title',
|
|
4423
|
+
kind: 'Scalar'
|
|
4424
|
+
}
|
|
4425
|
+
]
|
|
4426
|
+
};
|
|
4427
|
+
};
|
|
4428
|
+
function equals$3(existing, incoming) {
|
|
4429
|
+
const existing_title = existing.title;
|
|
4430
|
+
const incoming_title = incoming.title;
|
|
4431
|
+
if (!(existing_title === incoming_title)) {
|
|
4432
|
+
return false;
|
|
4433
|
+
}
|
|
4434
|
+
return true;
|
|
4435
|
+
}
|
|
4436
|
+
|
|
4437
|
+
const VERSION$2 = "2dc4d441e48ded37e81aba3b52021311";
|
|
4438
|
+
function validate$2(obj, path = 'UiLayoutDefinitionRepresentation') {
|
|
4439
|
+
const v_error = (() => {
|
|
4440
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4441
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4442
|
+
}
|
|
4443
|
+
if (obj.appDetails !== undefined) {
|
|
4444
|
+
const obj_appDetails = obj.appDetails;
|
|
4445
|
+
const path_appDetails = path + '.appDetails';
|
|
4446
|
+
const referencepath_appDetailsValidationError = validate$4(obj_appDetails, path_appDetails);
|
|
4447
|
+
if (referencepath_appDetailsValidationError !== null) {
|
|
4448
|
+
let message = 'Object doesn\'t match AppDetailsRepresentation (at "' + path_appDetails + '")\n';
|
|
4449
|
+
message += referencepath_appDetailsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4450
|
+
return new TypeError(message);
|
|
4451
|
+
}
|
|
4452
|
+
}
|
|
4453
|
+
const obj_displayMessages = obj.displayMessages;
|
|
4454
|
+
const path_displayMessages = path + '.displayMessages';
|
|
4455
|
+
if (!ArrayIsArray(obj_displayMessages)) {
|
|
4456
|
+
return new TypeError('Expected "array" but received "' + typeof obj_displayMessages + '" (at "' + path_displayMessages + '")');
|
|
4457
|
+
}
|
|
4458
|
+
for (let i = 0; i < obj_displayMessages.length; i++) {
|
|
4459
|
+
const obj_displayMessages_item = obj_displayMessages[i];
|
|
4460
|
+
const path_displayMessages_item = path_displayMessages + '[' + i + ']';
|
|
4461
|
+
if (obj_displayMessages_item === undefined) {
|
|
4462
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_displayMessages_item + '" (at "' + path_displayMessages_item + '")');
|
|
4463
|
+
}
|
|
4464
|
+
}
|
|
4465
|
+
if (obj.navigationPanel !== undefined) {
|
|
4466
|
+
const obj_navigationPanel = obj.navigationPanel;
|
|
4467
|
+
const path_navigationPanel = path + '.navigationPanel';
|
|
4468
|
+
const referencepath_navigationPanelValidationError = validate$3(obj_navigationPanel, path_navigationPanel);
|
|
4469
|
+
if (referencepath_navigationPanelValidationError !== null) {
|
|
4470
|
+
let message = 'Object doesn\'t match NavigationPanelRepresentation (at "' + path_navigationPanel + '")\n';
|
|
4471
|
+
message += referencepath_navigationPanelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4472
|
+
return new TypeError(message);
|
|
4473
|
+
}
|
|
4474
|
+
}
|
|
4475
|
+
const obj_pages = obj.pages;
|
|
4476
|
+
const path_pages = path + '.pages';
|
|
4477
|
+
if (!ArrayIsArray(obj_pages)) {
|
|
4478
|
+
return new TypeError('Expected "array" but received "' + typeof obj_pages + '" (at "' + path_pages + '")');
|
|
4479
|
+
}
|
|
4480
|
+
for (let i = 0; i < obj_pages.length; i++) {
|
|
4481
|
+
const obj_pages_item = obj_pages[i];
|
|
4482
|
+
const path_pages_item = path_pages + '[' + i + ']';
|
|
4483
|
+
if (obj_pages_item === undefined) {
|
|
4484
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_pages_item + '" (at "' + path_pages_item + '")');
|
|
4485
|
+
}
|
|
4486
|
+
}
|
|
4487
|
+
})();
|
|
4488
|
+
return v_error === undefined ? null : v_error;
|
|
4489
|
+
}
|
|
4490
|
+
const select$5 = function UiLayoutDefinitionRepresentationSelect() {
|
|
4491
|
+
const { selections: AppDetailsRepresentation__selections, opaque: AppDetailsRepresentation__opaque, } = select$7();
|
|
4492
|
+
const { selections: NavigationPanelRepresentation__selections, opaque: NavigationPanelRepresentation__opaque, } = select$6();
|
|
4493
|
+
return {
|
|
4494
|
+
kind: 'Fragment',
|
|
4495
|
+
version: VERSION$2,
|
|
4496
|
+
private: [],
|
|
4497
|
+
selections: [
|
|
4498
|
+
{
|
|
4499
|
+
name: 'appDetails',
|
|
4500
|
+
kind: 'Object',
|
|
4501
|
+
selections: AppDetailsRepresentation__selections,
|
|
4502
|
+
required: false
|
|
4503
|
+
},
|
|
4504
|
+
{
|
|
4505
|
+
name: 'displayMessages',
|
|
4506
|
+
kind: 'Object',
|
|
4507
|
+
// any
|
|
4508
|
+
},
|
|
4509
|
+
{
|
|
4510
|
+
name: 'navigationPanel',
|
|
4511
|
+
kind: 'Object',
|
|
4512
|
+
selections: NavigationPanelRepresentation__selections,
|
|
4513
|
+
required: false
|
|
4514
|
+
},
|
|
4515
|
+
{
|
|
4516
|
+
name: 'pages',
|
|
4517
|
+
kind: 'Object',
|
|
4518
|
+
// any
|
|
4519
|
+
}
|
|
4520
|
+
]
|
|
4521
|
+
};
|
|
4522
|
+
};
|
|
4523
|
+
function equals$2(existing, incoming) {
|
|
4524
|
+
const existing_appDetails = existing.appDetails;
|
|
4525
|
+
const incoming_appDetails = incoming.appDetails;
|
|
4526
|
+
// if at least one of these optionals is defined
|
|
4527
|
+
if (existing_appDetails !== undefined || incoming_appDetails !== undefined) {
|
|
4528
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4529
|
+
// not equal
|
|
4530
|
+
if (existing_appDetails === undefined || incoming_appDetails === undefined) {
|
|
4531
|
+
return false;
|
|
4532
|
+
}
|
|
4533
|
+
if (!(equals$4(existing_appDetails, incoming_appDetails))) {
|
|
4534
|
+
return false;
|
|
4535
|
+
}
|
|
4536
|
+
}
|
|
4537
|
+
const existing_displayMessages = existing.displayMessages;
|
|
4538
|
+
const incoming_displayMessages = incoming.displayMessages;
|
|
4539
|
+
const equals_displayMessages_items = equalsArray(existing_displayMessages, incoming_displayMessages, (existing_displayMessages_item, incoming_displayMessages_item) => {
|
|
4540
|
+
if (JSONStringify(incoming_displayMessages_item) !== JSONStringify(existing_displayMessages_item)) {
|
|
4541
|
+
return false;
|
|
4542
|
+
}
|
|
4543
|
+
});
|
|
4544
|
+
if (equals_displayMessages_items === false) {
|
|
4545
|
+
return false;
|
|
4546
|
+
}
|
|
4547
|
+
const existing_navigationPanel = existing.navigationPanel;
|
|
4548
|
+
const incoming_navigationPanel = incoming.navigationPanel;
|
|
4549
|
+
// if at least one of these optionals is defined
|
|
4550
|
+
if (existing_navigationPanel !== undefined || incoming_navigationPanel !== undefined) {
|
|
4551
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4552
|
+
// not equal
|
|
4553
|
+
if (existing_navigationPanel === undefined || incoming_navigationPanel === undefined) {
|
|
4554
|
+
return false;
|
|
4555
|
+
}
|
|
4556
|
+
if (!(equals$3(existing_navigationPanel, incoming_navigationPanel))) {
|
|
4557
|
+
return false;
|
|
4558
|
+
}
|
|
4559
|
+
}
|
|
4560
|
+
const existing_pages = existing.pages;
|
|
4561
|
+
const incoming_pages = incoming.pages;
|
|
4562
|
+
const equals_pages_items = equalsArray(existing_pages, incoming_pages, (existing_pages_item, incoming_pages_item) => {
|
|
4563
|
+
if (JSONStringify(incoming_pages_item) !== JSONStringify(existing_pages_item)) {
|
|
4564
|
+
return false;
|
|
4565
|
+
}
|
|
4566
|
+
});
|
|
4567
|
+
if (equals_pages_items === false) {
|
|
4568
|
+
return false;
|
|
4569
|
+
}
|
|
4570
|
+
return true;
|
|
4571
|
+
}
|
|
4572
|
+
|
|
4573
|
+
const TTL$1 = 5000;
|
|
4574
|
+
const VERSION$1 = "c07e968f66f650c10edd3acd41aa8675";
|
|
4575
|
+
function validate$1(obj, path = 'TemplateConfigurationRepresentation') {
|
|
4576
|
+
const v_error = (() => {
|
|
4577
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4578
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4579
|
+
}
|
|
4580
|
+
const obj_id = obj.id;
|
|
4581
|
+
const path_id = path + '.id';
|
|
4582
|
+
if (typeof obj_id !== 'string') {
|
|
4583
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
4584
|
+
}
|
|
4585
|
+
const obj_layout = obj.layout;
|
|
4586
|
+
const path_layout = path + '.layout';
|
|
4587
|
+
let obj_layout_union0 = null;
|
|
4588
|
+
const obj_layout_union0_error = (() => {
|
|
4589
|
+
const referencepath_layoutValidationError = validate$2(obj_layout, path_layout);
|
|
4590
|
+
if (referencepath_layoutValidationError !== null) {
|
|
4591
|
+
let message = 'Object doesn\'t match UiLayoutDefinitionRepresentation (at "' + path_layout + '")\n';
|
|
4592
|
+
message += referencepath_layoutValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4593
|
+
return new TypeError(message);
|
|
4594
|
+
}
|
|
4595
|
+
})();
|
|
4596
|
+
if (obj_layout_union0_error != null) {
|
|
4597
|
+
obj_layout_union0 = obj_layout_union0_error.message;
|
|
4598
|
+
}
|
|
4599
|
+
let obj_layout_union1 = null;
|
|
4600
|
+
const obj_layout_union1_error = (() => {
|
|
4601
|
+
if (obj_layout !== null) {
|
|
4602
|
+
return new TypeError('Expected "null" but received "' + typeof obj_layout + '" (at "' + path_layout + '")');
|
|
4603
|
+
}
|
|
4604
|
+
})();
|
|
4605
|
+
if (obj_layout_union1_error != null) {
|
|
4606
|
+
obj_layout_union1 = obj_layout_union1_error.message;
|
|
4607
|
+
}
|
|
4608
|
+
if (obj_layout_union0 && obj_layout_union1) {
|
|
4609
|
+
let message = 'Object doesn\'t match union (at "' + path_layout + '")';
|
|
4610
|
+
message += '\n' + obj_layout_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4611
|
+
message += '\n' + obj_layout_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4612
|
+
return new TypeError(message);
|
|
4613
|
+
}
|
|
4614
|
+
const obj_name = obj.name;
|
|
4615
|
+
const path_name = path + '.name';
|
|
4616
|
+
if (typeof obj_name !== 'string') {
|
|
4617
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
4618
|
+
}
|
|
4619
|
+
const obj_variables = obj.variables;
|
|
4620
|
+
const path_variables = path + '.variables';
|
|
4621
|
+
if (typeof obj_variables !== 'object' || ArrayIsArray(obj_variables) || obj_variables === null) {
|
|
4622
|
+
return new TypeError('Expected "object" but received "' + typeof obj_variables + '" (at "' + path_variables + '")');
|
|
4623
|
+
}
|
|
4624
|
+
const obj_variables_keys = ObjectKeys(obj_variables);
|
|
4625
|
+
for (let i = 0; i < obj_variables_keys.length; i++) {
|
|
4626
|
+
const key = obj_variables_keys[i];
|
|
4627
|
+
const obj_variables_prop = obj_variables[key];
|
|
4628
|
+
const path_variables_prop = path_variables + '["' + key + '"]';
|
|
4629
|
+
if (obj_variables_prop === undefined) {
|
|
4630
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_variables_prop + '" (at "' + path_variables_prop + '")');
|
|
4631
|
+
}
|
|
4632
|
+
}
|
|
4633
|
+
})();
|
|
4634
|
+
return v_error === undefined ? null : v_error;
|
|
4635
|
+
}
|
|
4636
|
+
const RepresentationType$1 = 'TemplateConfigurationRepresentation';
|
|
4637
|
+
function keyBuilder$5(luvio, config) {
|
|
4638
|
+
return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
|
|
4639
|
+
}
|
|
4640
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
4641
|
+
const keyParams = {
|
|
4642
|
+
id: object.id
|
|
4643
|
+
};
|
|
4644
|
+
return keyBuilder$5(luvio, keyParams);
|
|
4645
|
+
}
|
|
4646
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
4647
|
+
return input;
|
|
4648
|
+
}
|
|
4649
|
+
const select$4 = function TemplateConfigurationRepresentationSelect() {
|
|
4650
|
+
const { selections: UiLayoutDefinitionRepresentation__selections, opaque: UiLayoutDefinitionRepresentation__opaque, } = select$5();
|
|
4651
|
+
return {
|
|
4652
|
+
kind: 'Fragment',
|
|
4653
|
+
version: VERSION$1,
|
|
4654
|
+
private: [],
|
|
4655
|
+
selections: [
|
|
4656
|
+
{
|
|
4657
|
+
name: 'id',
|
|
4658
|
+
kind: 'Scalar'
|
|
4659
|
+
},
|
|
4660
|
+
{
|
|
4661
|
+
name: 'layout',
|
|
4662
|
+
kind: 'Object',
|
|
4663
|
+
nullable: true,
|
|
4664
|
+
selections: UiLayoutDefinitionRepresentation__selections
|
|
4665
|
+
},
|
|
4666
|
+
{
|
|
4667
|
+
name: 'name',
|
|
4668
|
+
kind: 'Scalar'
|
|
4669
|
+
},
|
|
4670
|
+
{
|
|
4671
|
+
name: 'variables',
|
|
4672
|
+
kind: 'Object',
|
|
4673
|
+
// any
|
|
4674
|
+
}
|
|
4675
|
+
]
|
|
4676
|
+
};
|
|
4677
|
+
};
|
|
4678
|
+
function equals$1(existing, incoming) {
|
|
4679
|
+
const existing_id = existing.id;
|
|
4680
|
+
const incoming_id = incoming.id;
|
|
4681
|
+
if (!(existing_id === incoming_id)) {
|
|
4682
|
+
return false;
|
|
4683
|
+
}
|
|
4684
|
+
const existing_name = existing.name;
|
|
4685
|
+
const incoming_name = incoming.name;
|
|
4686
|
+
if (!(existing_name === incoming_name)) {
|
|
4687
|
+
return false;
|
|
4688
|
+
}
|
|
4689
|
+
const existing_layout = existing.layout;
|
|
4690
|
+
const incoming_layout = incoming.layout;
|
|
4691
|
+
if (!(existing_layout === incoming_layout
|
|
4692
|
+
|| (existing_layout != null &&
|
|
4693
|
+
incoming_layout != null &&
|
|
4694
|
+
equals$2(existing_layout, incoming_layout)))) {
|
|
4695
|
+
return false;
|
|
4696
|
+
}
|
|
4697
|
+
const existing_variables = existing.variables;
|
|
4698
|
+
const incoming_variables = incoming.variables;
|
|
4699
|
+
const equals_variables_props = equalsObject(existing_variables, incoming_variables, (existing_variables_prop, incoming_variables_prop) => {
|
|
4700
|
+
if (JSONStringify(incoming_variables_prop) !== JSONStringify(existing_variables_prop)) {
|
|
4701
|
+
return false;
|
|
4702
|
+
}
|
|
4703
|
+
});
|
|
4704
|
+
if (equals_variables_props === false) {
|
|
4003
4705
|
return false;
|
|
4004
4706
|
}
|
|
4005
4707
|
return true;
|