@salesforce/lds-adapters-analytics-app-framework 1.348.1 → 1.350.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 +481 -588
- package/dist/es/es2018/types/src/generated/adapters/createApp.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/createTemplate.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/getApps.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/getTemplates.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/resources/getAppFrameworkApps.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getAppFrameworkTemplates.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/resources/postAppFrameworkApps.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postAppFrameworkTemplates.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/AppInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/AppRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/TemplateIconsInputRepresentation.d.ts +8 -11
- package/dist/es/es2018/types/src/generated/types/TemplateIconsRepresentation.d.ts +8 -9
- package/dist/es/es2018/types/src/generated/types/TemplateImageInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/TemplateImageRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/TemplateInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/TemplateRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +450 -557
- package/src/raml/api.raml +108 -72
- package/dist/es/es2018/types/src/generated/types/NamespacedReferenceInputRepresentation.d.ts +0 -31
- package/dist/es/es2018/types/src/generated/types/NamespacedReferenceRepresentation.d.ts +0 -31
- package/dist/es/es2018/types/src/generated/types/TemplatePreviewInputRepresentation.d.ts +0 -37
- package/dist/es/es2018/types/src/generated/types/TemplatePreviewRepresentation.d.ts +0 -43
|
@@ -113,7 +113,7 @@ function createLink(ref) {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
const VERSION$v = "8747a45321deaf63f65cf74537b07eb6";
|
|
116
|
-
function validate$
|
|
116
|
+
function validate$y(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 + '")');
|
|
@@ -198,7 +198,7 @@ function equals$s(existing, incoming) {
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
const VERSION$u = "74662b770f974cec987197380f2580ea";
|
|
201
|
-
function validate$
|
|
201
|
+
function validate$x(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 + '")');
|
|
@@ -258,7 +258,7 @@ function equals$r(existing, incoming) {
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
const VERSION$t = "d96bf6818be64d5924beaaad8e684221";
|
|
261
|
-
function validate$
|
|
261
|
+
function validate$w(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$x(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$x(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');
|
|
@@ -386,7 +386,7 @@ var DiscriminatorValues;
|
|
|
386
386
|
DiscriminatorValues["Daily"] = "Daily";
|
|
387
387
|
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
388
388
|
const VERSION$p = "193484b4261ca5840b61caaab3dea067";
|
|
389
|
-
function validate$
|
|
389
|
+
function validate$v(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$w(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$w(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');
|
|
@@ -470,7 +470,7 @@ function equals$p(existing, incoming) {
|
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
const VERSION$o = "06b5da5162febff2692d819c9b718be5";
|
|
473
|
-
function validate$
|
|
473
|
+
function validate$u(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$v(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$v(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');
|
|
@@ -573,8 +573,8 @@ function equals$o(existing, incoming) {
|
|
|
573
573
|
}
|
|
574
574
|
|
|
575
575
|
const TTL$c = 5000;
|
|
576
|
-
const VERSION$n = "
|
|
577
|
-
function validate$
|
|
576
|
+
const VERSION$n = "83db5eb45b2ef59314498ac2065f8703";
|
|
577
|
+
function validate$t(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$u(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$y(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$u(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$y(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');
|
|
@@ -680,7 +680,7 @@ function validate$u(obj, path = 'AppRepresentation') {
|
|
|
680
680
|
const path_schedule = path + '.schedule';
|
|
681
681
|
let obj_schedule_union0 = null;
|
|
682
682
|
const obj_schedule_union0_error = (() => {
|
|
683
|
-
const referencepath_scheduleValidationError = validate$
|
|
683
|
+
const referencepath_scheduleValidationError = validate$u(obj_schedule, path_schedule);
|
|
684
684
|
if (referencepath_scheduleValidationError !== null) {
|
|
685
685
|
let message = 'Object doesn\'t match AppScheduleRepresentation (at "' + path_schedule + '")\n';
|
|
686
686
|
message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -731,6 +731,32 @@ function validate$u(obj, path = 'AppRepresentation') {
|
|
|
731
731
|
message += '\n' + obj_templateSourceId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
732
732
|
return new TypeError(message);
|
|
733
733
|
}
|
|
734
|
+
const obj_templateSubtype = obj.templateSubtype;
|
|
735
|
+
const path_templateSubtype = path + '.templateSubtype';
|
|
736
|
+
let obj_templateSubtype_union0 = null;
|
|
737
|
+
const obj_templateSubtype_union0_error = (() => {
|
|
738
|
+
if (typeof obj_templateSubtype !== 'string') {
|
|
739
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateSubtype + '" (at "' + path_templateSubtype + '")');
|
|
740
|
+
}
|
|
741
|
+
})();
|
|
742
|
+
if (obj_templateSubtype_union0_error != null) {
|
|
743
|
+
obj_templateSubtype_union0 = obj_templateSubtype_union0_error.message;
|
|
744
|
+
}
|
|
745
|
+
let obj_templateSubtype_union1 = null;
|
|
746
|
+
const obj_templateSubtype_union1_error = (() => {
|
|
747
|
+
if (obj_templateSubtype !== null) {
|
|
748
|
+
return new TypeError('Expected "null" but received "' + typeof obj_templateSubtype + '" (at "' + path_templateSubtype + '")');
|
|
749
|
+
}
|
|
750
|
+
})();
|
|
751
|
+
if (obj_templateSubtype_union1_error != null) {
|
|
752
|
+
obj_templateSubtype_union1 = obj_templateSubtype_union1_error.message;
|
|
753
|
+
}
|
|
754
|
+
if (obj_templateSubtype_union0 && obj_templateSubtype_union1) {
|
|
755
|
+
let message = 'Object doesn\'t match union (at "' + path_templateSubtype + '")';
|
|
756
|
+
message += '\n' + obj_templateSubtype_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
757
|
+
message += '\n' + obj_templateSubtype_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
758
|
+
return new TypeError(message);
|
|
759
|
+
}
|
|
734
760
|
const obj_templateType = obj.templateType;
|
|
735
761
|
const path_templateType = path + '.templateType';
|
|
736
762
|
if (typeof obj_templateType !== 'string') {
|
|
@@ -873,6 +899,10 @@ const select$H = function AppRepresentationSelect() {
|
|
|
873
899
|
name: 'templateSourceId',
|
|
874
900
|
kind: 'Scalar'
|
|
875
901
|
},
|
|
902
|
+
{
|
|
903
|
+
name: 'templateSubtype',
|
|
904
|
+
kind: 'Scalar'
|
|
905
|
+
},
|
|
876
906
|
{
|
|
877
907
|
name: 'templateType',
|
|
878
908
|
kind: 'Scalar'
|
|
@@ -987,6 +1017,11 @@ function equals$n(existing, incoming) {
|
|
|
987
1017
|
if (!(existing_templateSourceId === incoming_templateSourceId)) {
|
|
988
1018
|
return false;
|
|
989
1019
|
}
|
|
1020
|
+
const existing_templateSubtype = existing.templateSubtype;
|
|
1021
|
+
const incoming_templateSubtype = incoming.templateSubtype;
|
|
1022
|
+
if (!(existing_templateSubtype === incoming_templateSubtype)) {
|
|
1023
|
+
return false;
|
|
1024
|
+
}
|
|
990
1025
|
const existing_templateValues = existing.templateValues;
|
|
991
1026
|
const incoming_templateValues = incoming.templateValues;
|
|
992
1027
|
const equals_templateValues_props = equalsObject(existing_templateValues, incoming_templateValues, (existing_templateValues_prop, incoming_templateValues_prop) => {
|
|
@@ -1006,7 +1041,7 @@ function equals$n(existing, incoming) {
|
|
|
1006
1041
|
}
|
|
1007
1042
|
const ingest$c = function AppRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1008
1043
|
if (process.env.NODE_ENV !== 'production') {
|
|
1009
|
-
const validateError = validate$
|
|
1044
|
+
const validateError = validate$t(input);
|
|
1010
1045
|
if (validateError !== null) {
|
|
1011
1046
|
throw validateError;
|
|
1012
1047
|
}
|
|
@@ -1028,7 +1063,7 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1028
1063
|
|
|
1029
1064
|
const TTL$b = 5000;
|
|
1030
1065
|
const VERSION$m = "2dd7266897d8b84ea0207582ca533d29";
|
|
1031
|
-
function validate$
|
|
1066
|
+
function validate$s(obj, path = 'AppCollectionRepresentation') {
|
|
1032
1067
|
const v_error = (() => {
|
|
1033
1068
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1034
1069
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1098,7 +1133,7 @@ function equals$m(existing, incoming) {
|
|
|
1098
1133
|
}
|
|
1099
1134
|
const ingest$b = function AppCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1100
1135
|
if (process.env.NODE_ENV !== 'production') {
|
|
1101
|
-
const validateError = validate$
|
|
1136
|
+
const validateError = validate$s(input);
|
|
1102
1137
|
if (validateError !== null) {
|
|
1103
1138
|
throw validateError;
|
|
1104
1139
|
}
|
|
@@ -1126,7 +1161,7 @@ function select$F(luvio, params) {
|
|
|
1126
1161
|
return select$G();
|
|
1127
1162
|
}
|
|
1128
1163
|
function keyBuilder$x(luvio, params) {
|
|
1129
|
-
return keyPrefix + '::AppCollectionRepresentation:(' + 'templateSourceId:' + params.queryParams.templateSourceId + ',' + 'type:' + params.queryParams.type + ')';
|
|
1164
|
+
return keyPrefix + '::AppCollectionRepresentation:(' + 'templateSourceId:' + params.queryParams.templateSourceId + ',' + 'templateSubtype:' + params.queryParams.templateSubtype + ',' + 'type:' + params.queryParams.type + ')';
|
|
1130
1165
|
}
|
|
1131
1166
|
function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
|
|
1132
1167
|
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$x(luvio, resourceParams));
|
|
@@ -1177,6 +1212,7 @@ function createResourceRequest$m(config) {
|
|
|
1177
1212
|
const adapterName$m = 'getApps';
|
|
1178
1213
|
const getApps_ConfigPropertyMetadata = [
|
|
1179
1214
|
generateParamConfigMetadata('templateSourceId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1215
|
+
generateParamConfigMetadata('templateSubtype', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1180
1216
|
generateParamConfigMetadata('type', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1181
1217
|
];
|
|
1182
1218
|
const getApps_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, getApps_ConfigPropertyMetadata);
|
|
@@ -1263,7 +1299,7 @@ const getAppsAdapterFactory = (luvio) => function AppFramework__getApps(untruste
|
|
|
1263
1299
|
|
|
1264
1300
|
const TTL$a = 5000;
|
|
1265
1301
|
const VERSION$l = "3cd3a4ce44c5f52cad5f810dd8ef6467";
|
|
1266
|
-
function validate$
|
|
1302
|
+
function validate$r(obj, path = 'AppResultRepresentation') {
|
|
1267
1303
|
const v_error = (() => {
|
|
1268
1304
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1269
1305
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1424,7 +1460,7 @@ function equals$l(existing, incoming) {
|
|
|
1424
1460
|
}
|
|
1425
1461
|
const ingest$a = function AppResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1426
1462
|
if (process.env.NODE_ENV !== 'production') {
|
|
1427
|
-
const validateError = validate$
|
|
1463
|
+
const validateError = validate$r(input);
|
|
1428
1464
|
if (validateError !== null) {
|
|
1429
1465
|
throw validateError;
|
|
1430
1466
|
}
|
|
@@ -1491,6 +1527,7 @@ const createApp_ConfigPropertyMetadata = [
|
|
|
1491
1527
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
1492
1528
|
generateParamConfigMetadata('runtimeMethod', false, 2 /* Body */, 0 /* String */),
|
|
1493
1529
|
generateParamConfigMetadata('templateSourceId', false, 2 /* Body */, 0 /* String */),
|
|
1530
|
+
generateParamConfigMetadata('templateSubtype', false, 2 /* Body */, 0 /* String */),
|
|
1494
1531
|
generateParamConfigMetadata('templateType', false, 2 /* Body */, 0 /* String */),
|
|
1495
1532
|
generateParamConfigMetadata('templateValues', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1496
1533
|
generateParamConfigMetadata('templateVersion', false, 2 /* Body */, 0 /* String */),
|
|
@@ -1895,7 +1932,7 @@ const updateAppAdapterFactory = (luvio) => {
|
|
|
1895
1932
|
|
|
1896
1933
|
const TTL$9 = 5000;
|
|
1897
1934
|
const VERSION$k = "b8e879a936b5069ec247355c66198ca7";
|
|
1898
|
-
function validate$
|
|
1935
|
+
function validate$q(obj, path = 'AppActivityItemRepresentation') {
|
|
1899
1936
|
const v_error = (() => {
|
|
1900
1937
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1901
1938
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2016,7 +2053,7 @@ function equals$k(existing, incoming) {
|
|
|
2016
2053
|
}
|
|
2017
2054
|
const ingest$9 = function AppActivityItemRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2018
2055
|
if (process.env.NODE_ENV !== 'production') {
|
|
2019
|
-
const validateError = validate$
|
|
2056
|
+
const validateError = validate$q(input);
|
|
2020
2057
|
if (validateError !== null) {
|
|
2021
2058
|
throw validateError;
|
|
2022
2059
|
}
|
|
@@ -2038,7 +2075,7 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2038
2075
|
|
|
2039
2076
|
const TTL$8 = 5000;
|
|
2040
2077
|
const VERSION$j = "e0f049ec23678e696fb7c592c9641c65";
|
|
2041
|
-
function validate$
|
|
2078
|
+
function validate$p(obj, path = 'AppActivityCollectionRepresentation') {
|
|
2042
2079
|
const v_error = (() => {
|
|
2043
2080
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2044
2081
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2131,7 +2168,7 @@ function equals$j(existing, incoming) {
|
|
|
2131
2168
|
}
|
|
2132
2169
|
const ingest$8 = function AppActivityCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2133
2170
|
if (process.env.NODE_ENV !== 'production') {
|
|
2134
|
-
const validateError = validate$
|
|
2171
|
+
const validateError = validate$p(input);
|
|
2135
2172
|
if (validateError !== null) {
|
|
2136
2173
|
throw validateError;
|
|
2137
2174
|
}
|
|
@@ -2439,7 +2476,7 @@ const getAppActivityAdapterFactory = (luvio) => function AppFramework__getAppAct
|
|
|
2439
2476
|
|
|
2440
2477
|
const TTL$7 = 5000;
|
|
2441
2478
|
const VERSION$i = "b91a35834fb34f4f6cede2d5dc29dc5d";
|
|
2442
|
-
function validate$
|
|
2479
|
+
function validate$o(obj, path = 'AssetRepresentation') {
|
|
2443
2480
|
const v_error = (() => {
|
|
2444
2481
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2445
2482
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2691,7 +2728,7 @@ function equals$i(existing, incoming) {
|
|
|
2691
2728
|
}
|
|
2692
2729
|
const ingest$7 = function AssetRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2693
2730
|
if (process.env.NODE_ENV !== 'production') {
|
|
2694
|
-
const validateError = validate$
|
|
2731
|
+
const validateError = validate$o(input);
|
|
2695
2732
|
if (validateError !== null) {
|
|
2696
2733
|
throw validateError;
|
|
2697
2734
|
}
|
|
@@ -2713,7 +2750,7 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2713
2750
|
|
|
2714
2751
|
const TTL$6 = 5000;
|
|
2715
2752
|
const VERSION$h = "1a10175fcc2ad43823e47bfbbdf917f6";
|
|
2716
|
-
function validate$
|
|
2753
|
+
function validate$n(obj, path = 'AssetCollectionRepresentation') {
|
|
2717
2754
|
const v_error = (() => {
|
|
2718
2755
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2719
2756
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2806,7 +2843,7 @@ function equals$h(existing, incoming) {
|
|
|
2806
2843
|
}
|
|
2807
2844
|
const ingest$6 = function AssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2808
2845
|
if (process.env.NODE_ENV !== 'production') {
|
|
2809
|
-
const validateError = validate$
|
|
2846
|
+
const validateError = validate$n(input);
|
|
2810
2847
|
if (validateError !== null) {
|
|
2811
2848
|
throw validateError;
|
|
2812
2849
|
}
|
|
@@ -3558,7 +3595,7 @@ const updateBasicAppAdapterFactory = (luvio) => {
|
|
|
3558
3595
|
|
|
3559
3596
|
const TTL$5 = 5000;
|
|
3560
3597
|
const VERSION$g = "4b0d1bee319e31459f529b802621d6b8";
|
|
3561
|
-
function validate$
|
|
3598
|
+
function validate$m(obj, path = 'InstalledAssetCollectionRepresentation') {
|
|
3562
3599
|
const v_error = (() => {
|
|
3563
3600
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3564
3601
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3628,7 +3665,7 @@ function equals$g(existing, incoming) {
|
|
|
3628
3665
|
}
|
|
3629
3666
|
const ingest$5 = function InstalledAssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3630
3667
|
if (process.env.NODE_ENV !== 'production') {
|
|
3631
|
-
const validateError = validate$
|
|
3668
|
+
const validateError = validate$m(input);
|
|
3632
3669
|
if (validateError !== null) {
|
|
3633
3670
|
throw validateError;
|
|
3634
3671
|
}
|
|
@@ -3792,7 +3829,7 @@ const getInstalledAssetsAdapterFactory = (luvio) => function AppFramework__getIn
|
|
|
3792
3829
|
};
|
|
3793
3830
|
|
|
3794
3831
|
const VERSION$f = "37cd2df78831b62dfcd672b30f4ca0eb";
|
|
3795
|
-
function validate$
|
|
3832
|
+
function validate$l(obj, path = 'ChainDefinitionRepresentation') {
|
|
3796
3833
|
const v_error = (() => {
|
|
3797
3834
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3798
3835
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3911,24 +3948,17 @@ function equals$f(existing, incoming) {
|
|
|
3911
3948
|
return true;
|
|
3912
3949
|
}
|
|
3913
3950
|
|
|
3914
|
-
const VERSION$e = "
|
|
3915
|
-
function validate$
|
|
3951
|
+
const VERSION$e = "6edb78368a9283c1d755574e7b7d6c4a";
|
|
3952
|
+
function validate$k(obj, path = 'TemplateImageRepresentation') {
|
|
3916
3953
|
const v_error = (() => {
|
|
3917
3954
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3918
3955
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3919
3956
|
}
|
|
3920
|
-
if (obj.
|
|
3921
|
-
const
|
|
3922
|
-
const
|
|
3923
|
-
if (typeof
|
|
3924
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
3925
|
-
}
|
|
3926
|
-
}
|
|
3927
|
-
if (obj.label !== undefined) {
|
|
3928
|
-
const obj_label = obj.label;
|
|
3929
|
-
const path_label = path + '.label';
|
|
3930
|
-
if (typeof obj_label !== 'string') {
|
|
3931
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
3957
|
+
if (obj.file !== undefined) {
|
|
3958
|
+
const obj_file = obj.file;
|
|
3959
|
+
const path_file = path + '.file';
|
|
3960
|
+
if (typeof obj_file !== 'string') {
|
|
3961
|
+
return new TypeError('Expected "string" but received "' + typeof obj_file + '" (at "' + path_file + '")');
|
|
3932
3962
|
}
|
|
3933
3963
|
}
|
|
3934
3964
|
if (obj.name !== undefined) {
|
|
@@ -3938,36 +3968,22 @@ function validate$l(obj, path = 'ImageReferenceRepresentation') {
|
|
|
3938
3968
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
3939
3969
|
}
|
|
3940
3970
|
}
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
3946
|
-
}
|
|
3947
|
-
}
|
|
3948
|
-
if (obj.url !== undefined) {
|
|
3949
|
-
const obj_url = obj.url;
|
|
3950
|
-
const path_url = path + '.url';
|
|
3951
|
-
if (typeof obj_url !== 'string') {
|
|
3952
|
-
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
3953
|
-
}
|
|
3971
|
+
const obj_url = obj.url;
|
|
3972
|
+
const path_url = path + '.url';
|
|
3973
|
+
if (typeof obj_url !== 'string') {
|
|
3974
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
3954
3975
|
}
|
|
3955
3976
|
})();
|
|
3956
3977
|
return v_error === undefined ? null : v_error;
|
|
3957
3978
|
}
|
|
3958
|
-
const select$m = function
|
|
3979
|
+
const select$m = function TemplateImageRepresentationSelect() {
|
|
3959
3980
|
return {
|
|
3960
3981
|
kind: 'Fragment',
|
|
3961
3982
|
version: VERSION$e,
|
|
3962
3983
|
private: [],
|
|
3963
3984
|
selections: [
|
|
3964
3985
|
{
|
|
3965
|
-
name: '
|
|
3966
|
-
kind: 'Scalar',
|
|
3967
|
-
required: false
|
|
3968
|
-
},
|
|
3969
|
-
{
|
|
3970
|
-
name: 'label',
|
|
3986
|
+
name: 'file',
|
|
3971
3987
|
kind: 'Scalar',
|
|
3972
3988
|
required: false
|
|
3973
3989
|
},
|
|
@@ -3976,43 +3992,24 @@ const select$m = function ImageReferenceRepresentationSelect() {
|
|
|
3976
3992
|
kind: 'Scalar',
|
|
3977
3993
|
required: false
|
|
3978
3994
|
},
|
|
3979
|
-
{
|
|
3980
|
-
name: 'namespace',
|
|
3981
|
-
kind: 'Scalar',
|
|
3982
|
-
required: false
|
|
3983
|
-
},
|
|
3984
3995
|
{
|
|
3985
3996
|
name: 'url',
|
|
3986
|
-
kind: 'Scalar'
|
|
3987
|
-
required: false
|
|
3997
|
+
kind: 'Scalar'
|
|
3988
3998
|
}
|
|
3989
3999
|
]
|
|
3990
4000
|
};
|
|
3991
4001
|
};
|
|
3992
4002
|
function equals$e(existing, incoming) {
|
|
3993
|
-
const
|
|
3994
|
-
const
|
|
3995
|
-
// if at least one of these optionals is defined
|
|
3996
|
-
if (existing_id !== undefined || incoming_id !== undefined) {
|
|
3997
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
3998
|
-
// not equal
|
|
3999
|
-
if (existing_id === undefined || incoming_id === undefined) {
|
|
4000
|
-
return false;
|
|
4001
|
-
}
|
|
4002
|
-
if (!(existing_id === incoming_id)) {
|
|
4003
|
-
return false;
|
|
4004
|
-
}
|
|
4005
|
-
}
|
|
4006
|
-
const existing_label = existing.label;
|
|
4007
|
-
const incoming_label = incoming.label;
|
|
4003
|
+
const existing_file = existing.file;
|
|
4004
|
+
const incoming_file = incoming.file;
|
|
4008
4005
|
// if at least one of these optionals is defined
|
|
4009
|
-
if (
|
|
4006
|
+
if (existing_file !== undefined || incoming_file !== undefined) {
|
|
4010
4007
|
// if one of these is not defined we know the other is defined and therefore
|
|
4011
4008
|
// not equal
|
|
4012
|
-
if (
|
|
4009
|
+
if (existing_file === undefined || incoming_file === undefined) {
|
|
4013
4010
|
return false;
|
|
4014
4011
|
}
|
|
4015
|
-
if (!(
|
|
4012
|
+
if (!(existing_file === incoming_file)) {
|
|
4016
4013
|
return false;
|
|
4017
4014
|
}
|
|
4018
4015
|
}
|
|
@@ -4029,400 +4026,146 @@ function equals$e(existing, incoming) {
|
|
|
4029
4026
|
return false;
|
|
4030
4027
|
}
|
|
4031
4028
|
}
|
|
4032
|
-
const existing_namespace = existing.namespace;
|
|
4033
|
-
const incoming_namespace = incoming.namespace;
|
|
4034
|
-
// if at least one of these optionals is defined
|
|
4035
|
-
if (existing_namespace !== undefined || incoming_namespace !== undefined) {
|
|
4036
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
4037
|
-
// not equal
|
|
4038
|
-
if (existing_namespace === undefined || incoming_namespace === undefined) {
|
|
4039
|
-
return false;
|
|
4040
|
-
}
|
|
4041
|
-
if (!(existing_namespace === incoming_namespace)) {
|
|
4042
|
-
return false;
|
|
4043
|
-
}
|
|
4044
|
-
}
|
|
4045
4029
|
const existing_url = existing.url;
|
|
4046
4030
|
const incoming_url = incoming.url;
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
4050
|
-
// not equal
|
|
4051
|
-
if (existing_url === undefined || incoming_url === undefined) {
|
|
4052
|
-
return false;
|
|
4053
|
-
}
|
|
4054
|
-
if (!(existing_url === incoming_url)) {
|
|
4055
|
-
return false;
|
|
4056
|
-
}
|
|
4031
|
+
if (!(existing_url === incoming_url)) {
|
|
4032
|
+
return false;
|
|
4057
4033
|
}
|
|
4058
4034
|
return true;
|
|
4059
4035
|
}
|
|
4060
4036
|
|
|
4061
|
-
const VERSION$d = "
|
|
4062
|
-
function validate$
|
|
4037
|
+
const VERSION$d = "d3949dd1d6f86bd2faba882f02bed307";
|
|
4038
|
+
function validate$j(obj, path = 'TemplateIconsRepresentation') {
|
|
4063
4039
|
const v_error = (() => {
|
|
4064
4040
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4065
4041
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4066
4042
|
}
|
|
4067
|
-
const
|
|
4068
|
-
const
|
|
4069
|
-
let
|
|
4070
|
-
const
|
|
4071
|
-
|
|
4072
|
-
|
|
4043
|
+
const obj_appBadge = obj.appBadge;
|
|
4044
|
+
const path_appBadge = path + '.appBadge';
|
|
4045
|
+
let obj_appBadge_union0 = null;
|
|
4046
|
+
const obj_appBadge_union0_error = (() => {
|
|
4047
|
+
const referencepath_appBadgeValidationError = validate$k(obj_appBadge, path_appBadge);
|
|
4048
|
+
if (referencepath_appBadgeValidationError !== null) {
|
|
4049
|
+
let message = 'Object doesn\'t match TemplateImageRepresentation (at "' + path_appBadge + '")\n';
|
|
4050
|
+
message += referencepath_appBadgeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4051
|
+
return new TypeError(message);
|
|
4073
4052
|
}
|
|
4074
4053
|
})();
|
|
4075
|
-
if (
|
|
4076
|
-
|
|
4054
|
+
if (obj_appBadge_union0_error != null) {
|
|
4055
|
+
obj_appBadge_union0 = obj_appBadge_union0_error.message;
|
|
4077
4056
|
}
|
|
4078
|
-
let
|
|
4079
|
-
const
|
|
4080
|
-
if (
|
|
4081
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
4057
|
+
let obj_appBadge_union1 = null;
|
|
4058
|
+
const obj_appBadge_union1_error = (() => {
|
|
4059
|
+
if (obj_appBadge !== null) {
|
|
4060
|
+
return new TypeError('Expected "null" but received "' + typeof obj_appBadge + '" (at "' + path_appBadge + '")');
|
|
4082
4061
|
}
|
|
4083
4062
|
})();
|
|
4084
|
-
if (
|
|
4085
|
-
|
|
4063
|
+
if (obj_appBadge_union1_error != null) {
|
|
4064
|
+
obj_appBadge_union1 = obj_appBadge_union1_error.message;
|
|
4086
4065
|
}
|
|
4087
|
-
if (
|
|
4088
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
4089
|
-
message += '\n' +
|
|
4090
|
-
message += '\n' +
|
|
4066
|
+
if (obj_appBadge_union0 && obj_appBadge_union1) {
|
|
4067
|
+
let message = 'Object doesn\'t match union (at "' + path_appBadge + '")';
|
|
4068
|
+
message += '\n' + obj_appBadge_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4069
|
+
message += '\n' + obj_appBadge_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4091
4070
|
return new TypeError(message);
|
|
4092
4071
|
}
|
|
4093
|
-
const
|
|
4094
|
-
const
|
|
4095
|
-
let
|
|
4096
|
-
const
|
|
4097
|
-
|
|
4098
|
-
|
|
4072
|
+
const obj_templateBadge = obj.templateBadge;
|
|
4073
|
+
const path_templateBadge = path + '.templateBadge';
|
|
4074
|
+
let obj_templateBadge_union0 = null;
|
|
4075
|
+
const obj_templateBadge_union0_error = (() => {
|
|
4076
|
+
const referencepath_templateBadgeValidationError = validate$k(obj_templateBadge, path_templateBadge);
|
|
4077
|
+
if (referencepath_templateBadgeValidationError !== null) {
|
|
4078
|
+
let message = 'Object doesn\'t match TemplateImageRepresentation (at "' + path_templateBadge + '")\n';
|
|
4079
|
+
message += referencepath_templateBadgeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4080
|
+
return new TypeError(message);
|
|
4099
4081
|
}
|
|
4100
4082
|
})();
|
|
4101
|
-
if (
|
|
4102
|
-
|
|
4083
|
+
if (obj_templateBadge_union0_error != null) {
|
|
4084
|
+
obj_templateBadge_union0 = obj_templateBadge_union0_error.message;
|
|
4103
4085
|
}
|
|
4104
|
-
let
|
|
4105
|
-
const
|
|
4106
|
-
if (
|
|
4107
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
4086
|
+
let obj_templateBadge_union1 = null;
|
|
4087
|
+
const obj_templateBadge_union1_error = (() => {
|
|
4088
|
+
if (obj_templateBadge !== null) {
|
|
4089
|
+
return new TypeError('Expected "null" but received "' + typeof obj_templateBadge + '" (at "' + path_templateBadge + '")');
|
|
4108
4090
|
}
|
|
4109
4091
|
})();
|
|
4110
|
-
if (
|
|
4111
|
-
|
|
4092
|
+
if (obj_templateBadge_union1_error != null) {
|
|
4093
|
+
obj_templateBadge_union1 = obj_templateBadge_union1_error.message;
|
|
4112
4094
|
}
|
|
4113
|
-
if (
|
|
4114
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
4115
|
-
message += '\n' +
|
|
4116
|
-
message += '\n' +
|
|
4095
|
+
if (obj_templateBadge_union0 && obj_templateBadge_union1) {
|
|
4096
|
+
let message = 'Object doesn\'t match union (at "' + path_templateBadge + '")';
|
|
4097
|
+
message += '\n' + obj_templateBadge_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4098
|
+
message += '\n' + obj_templateBadge_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4117
4099
|
return new TypeError(message);
|
|
4118
4100
|
}
|
|
4119
|
-
const
|
|
4120
|
-
const
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
if (typeof obj_label !== 'string') {
|
|
4124
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
4125
|
-
}
|
|
4126
|
-
})();
|
|
4127
|
-
if (obj_label_union0_error != null) {
|
|
4128
|
-
obj_label_union0 = obj_label_union0_error.message;
|
|
4101
|
+
const obj_templatePreviews = obj.templatePreviews;
|
|
4102
|
+
const path_templatePreviews = path + '.templatePreviews';
|
|
4103
|
+
if (!ArrayIsArray(obj_templatePreviews)) {
|
|
4104
|
+
return new TypeError('Expected "array" but received "' + typeof obj_templatePreviews + '" (at "' + path_templatePreviews + '")');
|
|
4129
4105
|
}
|
|
4130
|
-
let
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4106
|
+
for (let i = 0; i < obj_templatePreviews.length; i++) {
|
|
4107
|
+
const obj_templatePreviews_item = obj_templatePreviews[i];
|
|
4108
|
+
const path_templatePreviews_item = path_templatePreviews + '[' + i + ']';
|
|
4109
|
+
const referencepath_templatePreviews_itemValidationError = validate$k(obj_templatePreviews_item, path_templatePreviews_item);
|
|
4110
|
+
if (referencepath_templatePreviews_itemValidationError !== null) {
|
|
4111
|
+
let message = 'Object doesn\'t match TemplateImageRepresentation (at "' + path_templatePreviews_item + '")\n';
|
|
4112
|
+
message += referencepath_templatePreviews_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4113
|
+
return new TypeError(message);
|
|
4134
4114
|
}
|
|
4135
|
-
})();
|
|
4136
|
-
if (obj_label_union1_error != null) {
|
|
4137
|
-
obj_label_union1 = obj_label_union1_error.message;
|
|
4138
|
-
}
|
|
4139
|
-
if (obj_label_union0 && obj_label_union1) {
|
|
4140
|
-
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
4141
|
-
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4142
|
-
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4143
|
-
return new TypeError(message);
|
|
4144
4115
|
}
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4116
|
+
})();
|
|
4117
|
+
return v_error === undefined ? null : v_error;
|
|
4118
|
+
}
|
|
4119
|
+
const select$l = function TemplateIconsRepresentationSelect() {
|
|
4120
|
+
const { selections: TemplateImageRepresentation__selections, opaque: TemplateImageRepresentation__opaque, } = select$m();
|
|
4121
|
+
return {
|
|
4122
|
+
kind: 'Fragment',
|
|
4123
|
+
version: VERSION$d,
|
|
4124
|
+
private: [],
|
|
4125
|
+
selections: [
|
|
4126
|
+
{
|
|
4127
|
+
name: 'appBadge',
|
|
4128
|
+
kind: 'Object',
|
|
4129
|
+
nullable: true,
|
|
4130
|
+
selections: TemplateImageRepresentation__selections
|
|
4131
|
+
},
|
|
4132
|
+
{
|
|
4133
|
+
name: 'templateBadge',
|
|
4134
|
+
kind: 'Object',
|
|
4135
|
+
nullable: true,
|
|
4136
|
+
selections: TemplateImageRepresentation__selections
|
|
4137
|
+
},
|
|
4138
|
+
{
|
|
4139
|
+
name: 'templatePreviews',
|
|
4140
|
+
kind: 'Object',
|
|
4141
|
+
plural: true,
|
|
4142
|
+
selections: TemplateImageRepresentation__selections
|
|
4151
4143
|
}
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
}
|
|
4178
|
-
})();
|
|
4179
|
-
if (obj_namespace_union0_error != null) {
|
|
4180
|
-
obj_namespace_union0 = obj_namespace_union0_error.message;
|
|
4181
|
-
}
|
|
4182
|
-
let obj_namespace_union1 = null;
|
|
4183
|
-
const obj_namespace_union1_error = (() => {
|
|
4184
|
-
if (obj_namespace !== null) {
|
|
4185
|
-
return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
4186
|
-
}
|
|
4187
|
-
})();
|
|
4188
|
-
if (obj_namespace_union1_error != null) {
|
|
4189
|
-
obj_namespace_union1 = obj_namespace_union1_error.message;
|
|
4190
|
-
}
|
|
4191
|
-
if (obj_namespace_union0 && obj_namespace_union1) {
|
|
4192
|
-
let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
|
|
4193
|
-
message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4194
|
-
message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4195
|
-
return new TypeError(message);
|
|
4196
|
-
}
|
|
4197
|
-
const obj_url = obj.url;
|
|
4198
|
-
const path_url = path + '.url';
|
|
4199
|
-
let obj_url_union0 = null;
|
|
4200
|
-
const obj_url_union0_error = (() => {
|
|
4201
|
-
if (typeof obj_url !== 'string') {
|
|
4202
|
-
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
4203
|
-
}
|
|
4204
|
-
})();
|
|
4205
|
-
if (obj_url_union0_error != null) {
|
|
4206
|
-
obj_url_union0 = obj_url_union0_error.message;
|
|
4207
|
-
}
|
|
4208
|
-
let obj_url_union1 = null;
|
|
4209
|
-
const obj_url_union1_error = (() => {
|
|
4210
|
-
if (obj_url !== null) {
|
|
4211
|
-
return new TypeError('Expected "null" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
4212
|
-
}
|
|
4213
|
-
})();
|
|
4214
|
-
if (obj_url_union1_error != null) {
|
|
4215
|
-
obj_url_union1 = obj_url_union1_error.message;
|
|
4216
|
-
}
|
|
4217
|
-
if (obj_url_union0 && obj_url_union1) {
|
|
4218
|
-
let message = 'Object doesn\'t match union (at "' + path_url + '")';
|
|
4219
|
-
message += '\n' + obj_url_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4220
|
-
message += '\n' + obj_url_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4221
|
-
return new TypeError(message);
|
|
4222
|
-
}
|
|
4223
|
-
})();
|
|
4224
|
-
return v_error === undefined ? null : v_error;
|
|
4225
|
-
}
|
|
4226
|
-
const select$l = function TemplatePreviewRepresentationSelect() {
|
|
4227
|
-
return {
|
|
4228
|
-
kind: 'Fragment',
|
|
4229
|
-
version: VERSION$d,
|
|
4230
|
-
private: [],
|
|
4231
|
-
selections: [
|
|
4232
|
-
{
|
|
4233
|
-
name: 'description',
|
|
4234
|
-
kind: 'Scalar'
|
|
4235
|
-
},
|
|
4236
|
-
{
|
|
4237
|
-
name: 'id',
|
|
4238
|
-
kind: 'Scalar'
|
|
4239
|
-
},
|
|
4240
|
-
{
|
|
4241
|
-
name: 'label',
|
|
4242
|
-
kind: 'Scalar'
|
|
4243
|
-
},
|
|
4244
|
-
{
|
|
4245
|
-
name: 'name',
|
|
4246
|
-
kind: 'Scalar'
|
|
4247
|
-
},
|
|
4248
|
-
{
|
|
4249
|
-
name: 'namespace',
|
|
4250
|
-
kind: 'Scalar'
|
|
4251
|
-
},
|
|
4252
|
-
{
|
|
4253
|
-
name: 'url',
|
|
4254
|
-
kind: 'Scalar'
|
|
4255
|
-
}
|
|
4256
|
-
]
|
|
4257
|
-
};
|
|
4258
|
-
};
|
|
4259
|
-
function equals$d(existing, incoming) {
|
|
4260
|
-
const existing_description = existing.description;
|
|
4261
|
-
const incoming_description = incoming.description;
|
|
4262
|
-
if (!(existing_description === incoming_description)) {
|
|
4263
|
-
return false;
|
|
4264
|
-
}
|
|
4265
|
-
const existing_id = existing.id;
|
|
4266
|
-
const incoming_id = incoming.id;
|
|
4267
|
-
if (!(existing_id === incoming_id)) {
|
|
4268
|
-
return false;
|
|
4269
|
-
}
|
|
4270
|
-
const existing_label = existing.label;
|
|
4271
|
-
const incoming_label = incoming.label;
|
|
4272
|
-
if (!(existing_label === incoming_label)) {
|
|
4273
|
-
return false;
|
|
4274
|
-
}
|
|
4275
|
-
const existing_name = existing.name;
|
|
4276
|
-
const incoming_name = incoming.name;
|
|
4277
|
-
if (!(existing_name === incoming_name)) {
|
|
4278
|
-
return false;
|
|
4279
|
-
}
|
|
4280
|
-
const existing_namespace = existing.namespace;
|
|
4281
|
-
const incoming_namespace = incoming.namespace;
|
|
4282
|
-
if (!(existing_namespace === incoming_namespace)) {
|
|
4283
|
-
return false;
|
|
4284
|
-
}
|
|
4285
|
-
const existing_url = existing.url;
|
|
4286
|
-
const incoming_url = incoming.url;
|
|
4287
|
-
if (!(existing_url === incoming_url)) {
|
|
4288
|
-
return false;
|
|
4289
|
-
}
|
|
4290
|
-
return true;
|
|
4291
|
-
}
|
|
4292
|
-
|
|
4293
|
-
const VERSION$c = "60cbf330de3d87a0dfeedb031eb8751c";
|
|
4294
|
-
function validate$j(obj, path = 'TemplateIconsRepresentation') {
|
|
4295
|
-
const v_error = (() => {
|
|
4296
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4297
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4298
|
-
}
|
|
4299
|
-
const obj_appBadge = obj.appBadge;
|
|
4300
|
-
const path_appBadge = path + '.appBadge';
|
|
4301
|
-
let obj_appBadge_union0 = null;
|
|
4302
|
-
const obj_appBadge_union0_error = (() => {
|
|
4303
|
-
const referencepath_appBadgeValidationError = validate$l(obj_appBadge, path_appBadge);
|
|
4304
|
-
if (referencepath_appBadgeValidationError !== null) {
|
|
4305
|
-
let message = 'Object doesn\'t match ImageReferenceRepresentation (at "' + path_appBadge + '")\n';
|
|
4306
|
-
message += referencepath_appBadgeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4307
|
-
return new TypeError(message);
|
|
4308
|
-
}
|
|
4309
|
-
})();
|
|
4310
|
-
if (obj_appBadge_union0_error != null) {
|
|
4311
|
-
obj_appBadge_union0 = obj_appBadge_union0_error.message;
|
|
4312
|
-
}
|
|
4313
|
-
let obj_appBadge_union1 = null;
|
|
4314
|
-
const obj_appBadge_union1_error = (() => {
|
|
4315
|
-
if (obj_appBadge !== null) {
|
|
4316
|
-
return new TypeError('Expected "null" but received "' + typeof obj_appBadge + '" (at "' + path_appBadge + '")');
|
|
4317
|
-
}
|
|
4318
|
-
})();
|
|
4319
|
-
if (obj_appBadge_union1_error != null) {
|
|
4320
|
-
obj_appBadge_union1 = obj_appBadge_union1_error.message;
|
|
4321
|
-
}
|
|
4322
|
-
if (obj_appBadge_union0 && obj_appBadge_union1) {
|
|
4323
|
-
let message = 'Object doesn\'t match union (at "' + path_appBadge + '")';
|
|
4324
|
-
message += '\n' + obj_appBadge_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4325
|
-
message += '\n' + obj_appBadge_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4326
|
-
return new TypeError(message);
|
|
4327
|
-
}
|
|
4328
|
-
const obj_templateBadge = obj.templateBadge;
|
|
4329
|
-
const path_templateBadge = path + '.templateBadge';
|
|
4330
|
-
let obj_templateBadge_union0 = null;
|
|
4331
|
-
const obj_templateBadge_union0_error = (() => {
|
|
4332
|
-
const referencepath_templateBadgeValidationError = validate$l(obj_templateBadge, path_templateBadge);
|
|
4333
|
-
if (referencepath_templateBadgeValidationError !== null) {
|
|
4334
|
-
let message = 'Object doesn\'t match ImageReferenceRepresentation (at "' + path_templateBadge + '")\n';
|
|
4335
|
-
message += referencepath_templateBadgeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4336
|
-
return new TypeError(message);
|
|
4337
|
-
}
|
|
4338
|
-
})();
|
|
4339
|
-
if (obj_templateBadge_union0_error != null) {
|
|
4340
|
-
obj_templateBadge_union0 = obj_templateBadge_union0_error.message;
|
|
4341
|
-
}
|
|
4342
|
-
let obj_templateBadge_union1 = null;
|
|
4343
|
-
const obj_templateBadge_union1_error = (() => {
|
|
4344
|
-
if (obj_templateBadge !== null) {
|
|
4345
|
-
return new TypeError('Expected "null" but received "' + typeof obj_templateBadge + '" (at "' + path_templateBadge + '")');
|
|
4346
|
-
}
|
|
4347
|
-
})();
|
|
4348
|
-
if (obj_templateBadge_union1_error != null) {
|
|
4349
|
-
obj_templateBadge_union1 = obj_templateBadge_union1_error.message;
|
|
4350
|
-
}
|
|
4351
|
-
if (obj_templateBadge_union0 && obj_templateBadge_union1) {
|
|
4352
|
-
let message = 'Object doesn\'t match union (at "' + path_templateBadge + '")';
|
|
4353
|
-
message += '\n' + obj_templateBadge_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4354
|
-
message += '\n' + obj_templateBadge_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4355
|
-
return new TypeError(message);
|
|
4356
|
-
}
|
|
4357
|
-
const obj_templatePreviews = obj.templatePreviews;
|
|
4358
|
-
const path_templatePreviews = path + '.templatePreviews';
|
|
4359
|
-
if (!ArrayIsArray(obj_templatePreviews)) {
|
|
4360
|
-
return new TypeError('Expected "array" but received "' + typeof obj_templatePreviews + '" (at "' + path_templatePreviews + '")');
|
|
4361
|
-
}
|
|
4362
|
-
for (let i = 0; i < obj_templatePreviews.length; i++) {
|
|
4363
|
-
const obj_templatePreviews_item = obj_templatePreviews[i];
|
|
4364
|
-
const path_templatePreviews_item = path_templatePreviews + '[' + i + ']';
|
|
4365
|
-
const referencepath_templatePreviews_itemValidationError = validate$k(obj_templatePreviews_item, path_templatePreviews_item);
|
|
4366
|
-
if (referencepath_templatePreviews_itemValidationError !== null) {
|
|
4367
|
-
let message = 'Object doesn\'t match TemplatePreviewRepresentation (at "' + path_templatePreviews_item + '")\n';
|
|
4368
|
-
message += referencepath_templatePreviews_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4369
|
-
return new TypeError(message);
|
|
4370
|
-
}
|
|
4371
|
-
}
|
|
4372
|
-
})();
|
|
4373
|
-
return v_error === undefined ? null : v_error;
|
|
4374
|
-
}
|
|
4375
|
-
const select$k = function TemplateIconsRepresentationSelect() {
|
|
4376
|
-
const { selections: ImageReferenceRepresentation__selections, opaque: ImageReferenceRepresentation__opaque, } = select$m();
|
|
4377
|
-
const { selections: TemplatePreviewRepresentation__selections, opaque: TemplatePreviewRepresentation__opaque, } = select$l();
|
|
4378
|
-
return {
|
|
4379
|
-
kind: 'Fragment',
|
|
4380
|
-
version: VERSION$c,
|
|
4381
|
-
private: [],
|
|
4382
|
-
selections: [
|
|
4383
|
-
{
|
|
4384
|
-
name: 'appBadge',
|
|
4385
|
-
kind: 'Object',
|
|
4386
|
-
nullable: true,
|
|
4387
|
-
selections: ImageReferenceRepresentation__selections
|
|
4388
|
-
},
|
|
4389
|
-
{
|
|
4390
|
-
name: 'templateBadge',
|
|
4391
|
-
kind: 'Object',
|
|
4392
|
-
nullable: true,
|
|
4393
|
-
selections: ImageReferenceRepresentation__selections
|
|
4394
|
-
},
|
|
4395
|
-
{
|
|
4396
|
-
name: 'templatePreviews',
|
|
4397
|
-
kind: 'Object',
|
|
4398
|
-
plural: true,
|
|
4399
|
-
selections: TemplatePreviewRepresentation__selections
|
|
4400
|
-
}
|
|
4401
|
-
]
|
|
4402
|
-
};
|
|
4403
|
-
};
|
|
4404
|
-
function equals$c(existing, incoming) {
|
|
4405
|
-
const existing_appBadge = existing.appBadge;
|
|
4406
|
-
const incoming_appBadge = incoming.appBadge;
|
|
4407
|
-
if (!(existing_appBadge === incoming_appBadge
|
|
4408
|
-
|| (existing_appBadge != null &&
|
|
4409
|
-
incoming_appBadge != null &&
|
|
4410
|
-
equals$e(existing_appBadge, incoming_appBadge)))) {
|
|
4411
|
-
return false;
|
|
4412
|
-
}
|
|
4413
|
-
const existing_templateBadge = existing.templateBadge;
|
|
4414
|
-
const incoming_templateBadge = incoming.templateBadge;
|
|
4415
|
-
if (!(existing_templateBadge === incoming_templateBadge
|
|
4416
|
-
|| (existing_templateBadge != null &&
|
|
4417
|
-
incoming_templateBadge != null &&
|
|
4418
|
-
equals$e(existing_templateBadge, incoming_templateBadge)))) {
|
|
4419
|
-
return false;
|
|
4420
|
-
}
|
|
4421
|
-
const existing_templatePreviews = existing.templatePreviews;
|
|
4422
|
-
const incoming_templatePreviews = incoming.templatePreviews;
|
|
4423
|
-
const equals_templatePreviews_items = equalsArray(existing_templatePreviews, incoming_templatePreviews, (existing_templatePreviews_item, incoming_templatePreviews_item) => {
|
|
4424
|
-
if (!(equals$d(existing_templatePreviews_item, incoming_templatePreviews_item))) {
|
|
4425
|
-
return false;
|
|
4144
|
+
]
|
|
4145
|
+
};
|
|
4146
|
+
};
|
|
4147
|
+
function equals$d(existing, incoming) {
|
|
4148
|
+
const existing_appBadge = existing.appBadge;
|
|
4149
|
+
const incoming_appBadge = incoming.appBadge;
|
|
4150
|
+
if (!(existing_appBadge === incoming_appBadge
|
|
4151
|
+
|| (existing_appBadge != null &&
|
|
4152
|
+
incoming_appBadge != null &&
|
|
4153
|
+
equals$e(existing_appBadge, incoming_appBadge)))) {
|
|
4154
|
+
return false;
|
|
4155
|
+
}
|
|
4156
|
+
const existing_templateBadge = existing.templateBadge;
|
|
4157
|
+
const incoming_templateBadge = incoming.templateBadge;
|
|
4158
|
+
if (!(existing_templateBadge === incoming_templateBadge
|
|
4159
|
+
|| (existing_templateBadge != null &&
|
|
4160
|
+
incoming_templateBadge != null &&
|
|
4161
|
+
equals$e(existing_templateBadge, incoming_templateBadge)))) {
|
|
4162
|
+
return false;
|
|
4163
|
+
}
|
|
4164
|
+
const existing_templatePreviews = existing.templatePreviews;
|
|
4165
|
+
const incoming_templatePreviews = incoming.templatePreviews;
|
|
4166
|
+
const equals_templatePreviews_items = equalsArray(existing_templatePreviews, incoming_templatePreviews, (existing_templatePreviews_item, incoming_templatePreviews_item) => {
|
|
4167
|
+
if (!(equals$e(existing_templatePreviews_item, incoming_templatePreviews_item))) {
|
|
4168
|
+
return false;
|
|
4426
4169
|
}
|
|
4427
4170
|
});
|
|
4428
4171
|
if (equals_templatePreviews_items === false) {
|
|
@@ -4431,7 +4174,7 @@ function equals$c(existing, incoming) {
|
|
|
4431
4174
|
return true;
|
|
4432
4175
|
}
|
|
4433
4176
|
|
|
4434
|
-
const VERSION$
|
|
4177
|
+
const VERSION$c = "3fc4320afdc399fc752a2e482573a828";
|
|
4435
4178
|
function validate$i(obj, path = 'ReleaseInfoRepresentation') {
|
|
4436
4179
|
const v_error = (() => {
|
|
4437
4180
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4471,10 +4214,10 @@ function validate$i(obj, path = 'ReleaseInfoRepresentation') {
|
|
|
4471
4214
|
})();
|
|
4472
4215
|
return v_error === undefined ? null : v_error;
|
|
4473
4216
|
}
|
|
4474
|
-
const select$
|
|
4217
|
+
const select$k = function ReleaseInfoRepresentationSelect() {
|
|
4475
4218
|
return {
|
|
4476
4219
|
kind: 'Fragment',
|
|
4477
|
-
version: VERSION$
|
|
4220
|
+
version: VERSION$c,
|
|
4478
4221
|
private: [],
|
|
4479
4222
|
selections: [
|
|
4480
4223
|
{
|
|
@@ -4488,7 +4231,7 @@ const select$j = function ReleaseInfoRepresentationSelect() {
|
|
|
4488
4231
|
]
|
|
4489
4232
|
};
|
|
4490
4233
|
};
|
|
4491
|
-
function equals$
|
|
4234
|
+
function equals$c(existing, incoming) {
|
|
4492
4235
|
const existing_templateVersion = existing.templateVersion;
|
|
4493
4236
|
const incoming_templateVersion = incoming.templateVersion;
|
|
4494
4237
|
if (!(existing_templateVersion === incoming_templateVersion)) {
|
|
@@ -4502,7 +4245,7 @@ function equals$b(existing, incoming) {
|
|
|
4502
4245
|
return true;
|
|
4503
4246
|
}
|
|
4504
4247
|
|
|
4505
|
-
const VERSION$
|
|
4248
|
+
const VERSION$b = "11e304d2f006486e36c7ceadcc930fca";
|
|
4506
4249
|
function validate$h(obj, path = 'RuleInfoRepresentation') {
|
|
4507
4250
|
const v_error = (() => {
|
|
4508
4251
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4521,10 +4264,10 @@ function validate$h(obj, path = 'RuleInfoRepresentation') {
|
|
|
4521
4264
|
})();
|
|
4522
4265
|
return v_error === undefined ? null : v_error;
|
|
4523
4266
|
}
|
|
4524
|
-
const select$
|
|
4267
|
+
const select$j = function RuleInfoRepresentationSelect() {
|
|
4525
4268
|
return {
|
|
4526
4269
|
kind: 'Fragment',
|
|
4527
|
-
version: VERSION$
|
|
4270
|
+
version: VERSION$b,
|
|
4528
4271
|
private: [],
|
|
4529
4272
|
selections: [
|
|
4530
4273
|
{
|
|
@@ -4538,7 +4281,7 @@ const select$i = function RuleInfoRepresentationSelect() {
|
|
|
4538
4281
|
]
|
|
4539
4282
|
};
|
|
4540
4283
|
};
|
|
4541
|
-
function equals$
|
|
4284
|
+
function equals$b(existing, incoming) {
|
|
4542
4285
|
const existing_file = existing.file;
|
|
4543
4286
|
const incoming_file = incoming.file;
|
|
4544
4287
|
if (!(existing_file === incoming_file)) {
|
|
@@ -4553,7 +4296,7 @@ function equals$a(existing, incoming) {
|
|
|
4553
4296
|
}
|
|
4554
4297
|
|
|
4555
4298
|
const TTL$4 = 5000;
|
|
4556
|
-
const VERSION$
|
|
4299
|
+
const VERSION$a = "dd0aa8a59d7655eec95623d20af6168b";
|
|
4557
4300
|
function validate$g(obj, path = 'TemplateRepresentation') {
|
|
4558
4301
|
const v_error = (() => {
|
|
4559
4302
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4619,7 +4362,7 @@ function validate$g(obj, path = 'TemplateRepresentation') {
|
|
|
4619
4362
|
for (let i = 0; i < obj_chainDefinitions.length; i++) {
|
|
4620
4363
|
const obj_chainDefinitions_item = obj_chainDefinitions[i];
|
|
4621
4364
|
const path_chainDefinitions_item = path_chainDefinitions + '[' + i + ']';
|
|
4622
|
-
const referencepath_chainDefinitions_itemValidationError = validate$
|
|
4365
|
+
const referencepath_chainDefinitions_itemValidationError = validate$l(obj_chainDefinitions_item, path_chainDefinitions_item);
|
|
4623
4366
|
if (referencepath_chainDefinitions_itemValidationError !== null) {
|
|
4624
4367
|
let message = 'Object doesn\'t match ChainDefinitionRepresentation (at "' + path_chainDefinitions_item + '")\n';
|
|
4625
4368
|
message += referencepath_chainDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4894,6 +4637,32 @@ function validate$g(obj, path = 'TemplateRepresentation') {
|
|
|
4894
4637
|
return new TypeError('Expected "defined" but received "' + typeof obj_tags_prop + '" (at "' + path_tags_prop + '")');
|
|
4895
4638
|
}
|
|
4896
4639
|
}
|
|
4640
|
+
const obj_templateSubtype = obj.templateSubtype;
|
|
4641
|
+
const path_templateSubtype = path + '.templateSubtype';
|
|
4642
|
+
let obj_templateSubtype_union0 = null;
|
|
4643
|
+
const obj_templateSubtype_union0_error = (() => {
|
|
4644
|
+
if (typeof obj_templateSubtype !== 'string') {
|
|
4645
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateSubtype + '" (at "' + path_templateSubtype + '")');
|
|
4646
|
+
}
|
|
4647
|
+
})();
|
|
4648
|
+
if (obj_templateSubtype_union0_error != null) {
|
|
4649
|
+
obj_templateSubtype_union0 = obj_templateSubtype_union0_error.message;
|
|
4650
|
+
}
|
|
4651
|
+
let obj_templateSubtype_union1 = null;
|
|
4652
|
+
const obj_templateSubtype_union1_error = (() => {
|
|
4653
|
+
if (obj_templateSubtype !== null) {
|
|
4654
|
+
return new TypeError('Expected "null" but received "' + typeof obj_templateSubtype + '" (at "' + path_templateSubtype + '")');
|
|
4655
|
+
}
|
|
4656
|
+
})();
|
|
4657
|
+
if (obj_templateSubtype_union1_error != null) {
|
|
4658
|
+
obj_templateSubtype_union1 = obj_templateSubtype_union1_error.message;
|
|
4659
|
+
}
|
|
4660
|
+
if (obj_templateSubtype_union0 && obj_templateSubtype_union1) {
|
|
4661
|
+
let message = 'Object doesn\'t match union (at "' + path_templateSubtype + '")';
|
|
4662
|
+
message += '\n' + obj_templateSubtype_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4663
|
+
message += '\n' + obj_templateSubtype_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4664
|
+
return new TypeError(message);
|
|
4665
|
+
}
|
|
4897
4666
|
const obj_templateType = obj.templateType;
|
|
4898
4667
|
const path_templateType = path + '.templateType';
|
|
4899
4668
|
if (typeof obj_templateType !== 'string') {
|
|
@@ -4946,14 +4715,14 @@ function keyBuilderFromType$3(luvio, object) {
|
|
|
4946
4715
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
4947
4716
|
return input;
|
|
4948
4717
|
}
|
|
4949
|
-
const select$
|
|
4718
|
+
const select$i = function TemplateRepresentationSelect() {
|
|
4950
4719
|
const { selections: ChainDefinitionRepresentation__selections, opaque: ChainDefinitionRepresentation__opaque, } = select$n();
|
|
4951
|
-
const { selections: TemplateIconsRepresentation__selections, opaque: TemplateIconsRepresentation__opaque, } = select$
|
|
4952
|
-
const { selections: ReleaseInfoRepresentation__selections, opaque: ReleaseInfoRepresentation__opaque, } = select$
|
|
4953
|
-
const { selections: RuleInfoRepresentation__selections, opaque: RuleInfoRepresentation__opaque, } = select$
|
|
4720
|
+
const { selections: TemplateIconsRepresentation__selections, opaque: TemplateIconsRepresentation__opaque, } = select$l();
|
|
4721
|
+
const { selections: ReleaseInfoRepresentation__selections, opaque: ReleaseInfoRepresentation__opaque, } = select$k();
|
|
4722
|
+
const { selections: RuleInfoRepresentation__selections, opaque: RuleInfoRepresentation__opaque, } = select$j();
|
|
4954
4723
|
return {
|
|
4955
4724
|
kind: 'Fragment',
|
|
4956
|
-
version: VERSION$
|
|
4725
|
+
version: VERSION$a,
|
|
4957
4726
|
private: [],
|
|
4958
4727
|
selections: [
|
|
4959
4728
|
{
|
|
@@ -5037,6 +4806,10 @@ const select$h = function TemplateRepresentationSelect() {
|
|
|
5037
4806
|
kind: 'Object',
|
|
5038
4807
|
// any
|
|
5039
4808
|
},
|
|
4809
|
+
{
|
|
4810
|
+
name: 'templateSubtype',
|
|
4811
|
+
kind: 'Scalar'
|
|
4812
|
+
},
|
|
5040
4813
|
{
|
|
5041
4814
|
name: 'templateType',
|
|
5042
4815
|
kind: 'Scalar'
|
|
@@ -5052,7 +4825,7 @@ const select$h = function TemplateRepresentationSelect() {
|
|
|
5052
4825
|
]
|
|
5053
4826
|
};
|
|
5054
4827
|
};
|
|
5055
|
-
function equals$
|
|
4828
|
+
function equals$a(existing, incoming) {
|
|
5056
4829
|
const existing_configurationUrl = existing.configurationUrl;
|
|
5057
4830
|
const incoming_configurationUrl = incoming.configurationUrl;
|
|
5058
4831
|
if (!(existing_configurationUrl === incoming_configurationUrl)) {
|
|
@@ -5123,7 +4896,7 @@ function equals$9(existing, incoming) {
|
|
|
5123
4896
|
if (!(existing_icons === incoming_icons
|
|
5124
4897
|
|| (existing_icons != null &&
|
|
5125
4898
|
incoming_icons != null &&
|
|
5126
|
-
equals$
|
|
4899
|
+
equals$d(existing_icons, incoming_icons)))) {
|
|
5127
4900
|
return false;
|
|
5128
4901
|
}
|
|
5129
4902
|
const existing_lastModifiedDate = existing.lastModifiedDate;
|
|
@@ -5151,13 +4924,13 @@ function equals$9(existing, incoming) {
|
|
|
5151
4924
|
if (!(existing_releaseInfo === incoming_releaseInfo
|
|
5152
4925
|
|| (existing_releaseInfo != null &&
|
|
5153
4926
|
incoming_releaseInfo != null &&
|
|
5154
|
-
equals$
|
|
4927
|
+
equals$c(existing_releaseInfo, incoming_releaseInfo)))) {
|
|
5155
4928
|
return false;
|
|
5156
4929
|
}
|
|
5157
4930
|
const existing_rules = existing.rules;
|
|
5158
4931
|
const incoming_rules = incoming.rules;
|
|
5159
4932
|
const equals_rules_items = equalsArray(existing_rules, incoming_rules, (existing_rules_item, incoming_rules_item) => {
|
|
5160
|
-
if (!(equals$
|
|
4933
|
+
if (!(equals$b(existing_rules_item, incoming_rules_item))) {
|
|
5161
4934
|
return false;
|
|
5162
4935
|
}
|
|
5163
4936
|
});
|
|
@@ -5174,6 +4947,11 @@ function equals$9(existing, incoming) {
|
|
|
5174
4947
|
if (equals_tags_props === false) {
|
|
5175
4948
|
return false;
|
|
5176
4949
|
}
|
|
4950
|
+
const existing_templateSubtype = existing.templateSubtype;
|
|
4951
|
+
const incoming_templateSubtype = incoming.templateSubtype;
|
|
4952
|
+
if (!(existing_templateSubtype === incoming_templateSubtype)) {
|
|
4953
|
+
return false;
|
|
4954
|
+
}
|
|
5177
4955
|
const existing_variableDefinition = existing.variableDefinition;
|
|
5178
4956
|
const incoming_variableDefinition = incoming.variableDefinition;
|
|
5179
4957
|
if (!(existing_variableDefinition === incoming_variableDefinition)) {
|
|
@@ -5190,7 +4968,7 @@ const ingest$4 = function TemplateRepresentationIngest(input, path, luvio, store
|
|
|
5190
4968
|
}
|
|
5191
4969
|
const key = keyBuilderFromType$3(luvio, input);
|
|
5192
4970
|
const ttlToUse = TTL$4;
|
|
5193
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "AppFramework", VERSION$
|
|
4971
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "AppFramework", VERSION$a, RepresentationType$4, equals$a);
|
|
5194
4972
|
return createLink(key);
|
|
5195
4973
|
};
|
|
5196
4974
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -5204,7 +4982,7 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5204
4982
|
}
|
|
5205
4983
|
|
|
5206
4984
|
const TTL$3 = 5000;
|
|
5207
|
-
const VERSION$
|
|
4985
|
+
const VERSION$9 = "4d3fc84707ae344f06fb99bd22e68f46";
|
|
5208
4986
|
function validate$f(obj, path = 'TemplateCollectionRepresentation') {
|
|
5209
4987
|
const v_error = (() => {
|
|
5210
4988
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5245,22 +5023,22 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
5245
5023
|
}
|
|
5246
5024
|
return input;
|
|
5247
5025
|
}
|
|
5248
|
-
const select$
|
|
5026
|
+
const select$h = function TemplateCollectionRepresentationSelect() {
|
|
5249
5027
|
return {
|
|
5250
5028
|
kind: 'Fragment',
|
|
5251
|
-
version: VERSION$
|
|
5029
|
+
version: VERSION$9,
|
|
5252
5030
|
private: [],
|
|
5253
5031
|
selections: [
|
|
5254
5032
|
{
|
|
5255
5033
|
name: 'templates',
|
|
5256
5034
|
kind: 'Link',
|
|
5257
5035
|
plural: true,
|
|
5258
|
-
fragment: select$
|
|
5036
|
+
fragment: select$i()
|
|
5259
5037
|
}
|
|
5260
5038
|
]
|
|
5261
5039
|
};
|
|
5262
5040
|
};
|
|
5263
|
-
function equals$
|
|
5041
|
+
function equals$9(existing, incoming) {
|
|
5264
5042
|
const existing_templates = existing.templates;
|
|
5265
5043
|
const incoming_templates = incoming.templates;
|
|
5266
5044
|
const equals_templates_items = equalsArray(existing_templates, incoming_templates, (existing_templates_item, incoming_templates_item) => {
|
|
@@ -5282,7 +5060,7 @@ const ingest$3 = function TemplateCollectionRepresentationIngest(input, path, lu
|
|
|
5282
5060
|
}
|
|
5283
5061
|
const key = path.fullPath;
|
|
5284
5062
|
const ttlToUse = TTL$3;
|
|
5285
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "AppFramework", VERSION$
|
|
5063
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "AppFramework", VERSION$9, RepresentationType$3, equals$9);
|
|
5286
5064
|
return createLink(key);
|
|
5287
5065
|
};
|
|
5288
5066
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -5299,22 +5077,22 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5299
5077
|
}
|
|
5300
5078
|
}
|
|
5301
5079
|
|
|
5302
|
-
function select$
|
|
5303
|
-
return select$
|
|
5080
|
+
function select$g(luvio, params) {
|
|
5081
|
+
return select$h();
|
|
5304
5082
|
}
|
|
5305
5083
|
function keyBuilder$b(luvio, params) {
|
|
5306
|
-
return keyPrefix + '::TemplateCollectionRepresentation:(' + ')';
|
|
5084
|
+
return keyPrefix + '::TemplateCollectionRepresentation:(' + 'templateSubtype:' + params.queryParams.templateSubtype + ',' + 'type:' + params.queryParams.type + ')';
|
|
5307
5085
|
}
|
|
5308
5086
|
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
5309
|
-
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$b());
|
|
5087
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
5310
5088
|
}
|
|
5311
5089
|
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
5312
5090
|
const { body } = response;
|
|
5313
|
-
const key = keyBuilder$b();
|
|
5091
|
+
const key = keyBuilder$b(luvio, resourceParams);
|
|
5314
5092
|
luvio.storeIngest(key, ingest$3, body);
|
|
5315
5093
|
const snapshot = luvio.storeLookup({
|
|
5316
5094
|
recordId: key,
|
|
5317
|
-
node: select$
|
|
5095
|
+
node: select$g(),
|
|
5318
5096
|
variables: {},
|
|
5319
5097
|
}, snapshotRefresh);
|
|
5320
5098
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5326,12 +5104,12 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5326
5104
|
return snapshot;
|
|
5327
5105
|
}
|
|
5328
5106
|
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
5329
|
-
const key = keyBuilder$b();
|
|
5107
|
+
const key = keyBuilder$b(luvio, params);
|
|
5330
5108
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5331
5109
|
const storeMetadataParams = {
|
|
5332
5110
|
ttl: TTL$3,
|
|
5333
5111
|
namespace: keyPrefix,
|
|
5334
|
-
version: VERSION$
|
|
5112
|
+
version: VERSION$9,
|
|
5335
5113
|
representationName: RepresentationType$3
|
|
5336
5114
|
};
|
|
5337
5115
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -5345,22 +5123,26 @@ function createResourceRequest$8(config) {
|
|
|
5345
5123
|
method: 'get',
|
|
5346
5124
|
body: null,
|
|
5347
5125
|
urlParams: {},
|
|
5348
|
-
queryParams:
|
|
5126
|
+
queryParams: config.queryParams,
|
|
5349
5127
|
headers,
|
|
5350
5128
|
priority: 'normal',
|
|
5351
5129
|
};
|
|
5352
5130
|
}
|
|
5353
5131
|
|
|
5354
5132
|
const adapterName$8 = 'getTemplates';
|
|
5355
|
-
const getTemplates_ConfigPropertyMetadata = [
|
|
5133
|
+
const getTemplates_ConfigPropertyMetadata = [
|
|
5134
|
+
generateParamConfigMetadata('templateSubtype', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5135
|
+
generateParamConfigMetadata('type', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5136
|
+
];
|
|
5356
5137
|
const getTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getTemplates_ConfigPropertyMetadata);
|
|
5357
5138
|
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$n(getTemplates_ConfigPropertyMetadata);
|
|
5358
5139
|
function keyBuilder$a(luvio, config) {
|
|
5359
|
-
createResourceParams$8(config);
|
|
5360
|
-
return keyBuilder$b();
|
|
5140
|
+
const resourceParams = createResourceParams$8(config);
|
|
5141
|
+
return keyBuilder$b(luvio, resourceParams);
|
|
5361
5142
|
}
|
|
5362
5143
|
function typeCheckConfig$8(untrustedConfig) {
|
|
5363
5144
|
const config = {};
|
|
5145
|
+
typeCheckConfig$n(untrustedConfig, config, getTemplates_ConfigPropertyMetadata);
|
|
5364
5146
|
return config;
|
|
5365
5147
|
}
|
|
5366
5148
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -5370,7 +5152,7 @@ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
|
5370
5152
|
if (process.env.NODE_ENV !== 'production') {
|
|
5371
5153
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5372
5154
|
}
|
|
5373
|
-
const config = typeCheckConfig$8();
|
|
5155
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
5374
5156
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5375
5157
|
return null;
|
|
5376
5158
|
}
|
|
@@ -5378,7 +5160,7 @@ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
|
5378
5160
|
}
|
|
5379
5161
|
function adapterFragment$3(luvio, config) {
|
|
5380
5162
|
createResourceParams$8(config);
|
|
5381
|
-
return select$
|
|
5163
|
+
return select$g();
|
|
5382
5164
|
}
|
|
5383
5165
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
5384
5166
|
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
@@ -5396,7 +5178,7 @@ function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
|
5396
5178
|
}
|
|
5397
5179
|
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
5398
5180
|
const resourceParams = createResourceParams$8(config);
|
|
5399
|
-
const request = createResourceRequest$8();
|
|
5181
|
+
const request = createResourceRequest$8(resourceParams);
|
|
5400
5182
|
return luvio.dispatchResourceRequest(request, options)
|
|
5401
5183
|
.then((response) => {
|
|
5402
5184
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
@@ -5460,105 +5242,68 @@ function validate$e(obj, path = 'ChainDefinitionInputRepresentation') {
|
|
|
5460
5242
|
return v_error === undefined ? null : v_error;
|
|
5461
5243
|
}
|
|
5462
5244
|
|
|
5463
|
-
function validate$d(obj, path = '
|
|
5245
|
+
function validate$d(obj, path = 'TemplateImageInputRepresentation') {
|
|
5464
5246
|
const v_error = (() => {
|
|
5465
5247
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5466
5248
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5467
5249
|
}
|
|
5468
|
-
const
|
|
5469
|
-
const
|
|
5470
|
-
if (typeof
|
|
5471
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
5250
|
+
const obj_file = obj.file;
|
|
5251
|
+
const path_file = path + '.file';
|
|
5252
|
+
if (typeof obj_file !== 'string') {
|
|
5253
|
+
return new TypeError('Expected "string" but received "' + typeof obj_file + '" (at "' + path_file + '")');
|
|
5472
5254
|
}
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5255
|
+
if (obj.name !== undefined) {
|
|
5256
|
+
const obj_name = obj.name;
|
|
5257
|
+
const path_name = path + '.name';
|
|
5258
|
+
if (typeof obj_name !== 'string') {
|
|
5259
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
5260
|
+
}
|
|
5477
5261
|
}
|
|
5478
5262
|
})();
|
|
5479
5263
|
return v_error === undefined ? null : v_error;
|
|
5480
5264
|
}
|
|
5481
5265
|
|
|
5482
|
-
function validate$c(obj, path = '
|
|
5266
|
+
function validate$c(obj, path = 'TemplateIconsInputRepresentation') {
|
|
5483
5267
|
const v_error = (() => {
|
|
5484
5268
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5485
5269
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5486
5270
|
}
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
const obj_label = obj.label;
|
|
5495
|
-
const path_label = path + '.label';
|
|
5496
|
-
if (typeof obj_label !== 'string') {
|
|
5497
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
5498
|
-
}
|
|
5499
|
-
const obj_name = obj.name;
|
|
5500
|
-
const path_name = path + '.name';
|
|
5501
|
-
if (typeof obj_name !== 'string') {
|
|
5502
|
-
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
5503
|
-
}
|
|
5504
|
-
if (obj.namespace !== undefined) {
|
|
5505
|
-
const obj_namespace = obj.namespace;
|
|
5506
|
-
const path_namespace = path + '.namespace';
|
|
5507
|
-
if (typeof obj_namespace !== 'string') {
|
|
5508
|
-
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
5509
|
-
}
|
|
5271
|
+
const obj_appBadge = obj.appBadge;
|
|
5272
|
+
const path_appBadge = path + '.appBadge';
|
|
5273
|
+
const referencepath_appBadgeValidationError = validate$d(obj_appBadge, path_appBadge);
|
|
5274
|
+
if (referencepath_appBadgeValidationError !== null) {
|
|
5275
|
+
let message = 'Object doesn\'t match TemplateImageInputRepresentation (at "' + path_appBadge + '")\n';
|
|
5276
|
+
message += referencepath_appBadgeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5277
|
+
return new TypeError(message);
|
|
5510
5278
|
}
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5279
|
+
const obj_templateBadge = obj.templateBadge;
|
|
5280
|
+
const path_templateBadge = path + '.templateBadge';
|
|
5281
|
+
const referencepath_templateBadgeValidationError = validate$d(obj_templateBadge, path_templateBadge);
|
|
5282
|
+
if (referencepath_templateBadgeValidationError !== null) {
|
|
5283
|
+
let message = 'Object doesn\'t match TemplateImageInputRepresentation (at "' + path_templateBadge + '")\n';
|
|
5284
|
+
message += referencepath_templateBadgeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5285
|
+
return new TypeError(message);
|
|
5519
5286
|
}
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
if (referencepath_appBadgeValidationError !== null) {
|
|
5525
|
-
let message = 'Object doesn\'t match NamespacedReferenceInputRepresentation (at "' + path_appBadge + '")\n';
|
|
5526
|
-
message += referencepath_appBadgeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5527
|
-
return new TypeError(message);
|
|
5528
|
-
}
|
|
5287
|
+
const obj_templatePreviews = obj.templatePreviews;
|
|
5288
|
+
const path_templatePreviews = path + '.templatePreviews';
|
|
5289
|
+
if (!ArrayIsArray(obj_templatePreviews)) {
|
|
5290
|
+
return new TypeError('Expected "array" but received "' + typeof obj_templatePreviews + '" (at "' + path_templatePreviews + '")');
|
|
5529
5291
|
}
|
|
5530
|
-
|
|
5531
|
-
const
|
|
5532
|
-
const
|
|
5533
|
-
const
|
|
5534
|
-
if (
|
|
5535
|
-
let message = 'Object doesn\'t match
|
|
5536
|
-
message +=
|
|
5292
|
+
for (let i = 0; i < obj_templatePreviews.length; i++) {
|
|
5293
|
+
const obj_templatePreviews_item = obj_templatePreviews[i];
|
|
5294
|
+
const path_templatePreviews_item = path_templatePreviews + '[' + i + ']';
|
|
5295
|
+
const referencepath_templatePreviews_itemValidationError = validate$d(obj_templatePreviews_item, path_templatePreviews_item);
|
|
5296
|
+
if (referencepath_templatePreviews_itemValidationError !== null) {
|
|
5297
|
+
let message = 'Object doesn\'t match TemplateImageInputRepresentation (at "' + path_templatePreviews_item + '")\n';
|
|
5298
|
+
message += referencepath_templatePreviews_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5537
5299
|
return new TypeError(message);
|
|
5538
5300
|
}
|
|
5539
5301
|
}
|
|
5540
|
-
if (obj.templatePreviews !== undefined) {
|
|
5541
|
-
const obj_templatePreviews = obj.templatePreviews;
|
|
5542
|
-
const path_templatePreviews = path + '.templatePreviews';
|
|
5543
|
-
if (!ArrayIsArray(obj_templatePreviews)) {
|
|
5544
|
-
return new TypeError('Expected "array" but received "' + typeof obj_templatePreviews + '" (at "' + path_templatePreviews + '")');
|
|
5545
|
-
}
|
|
5546
|
-
for (let i = 0; i < obj_templatePreviews.length; i++) {
|
|
5547
|
-
const obj_templatePreviews_item = obj_templatePreviews[i];
|
|
5548
|
-
const path_templatePreviews_item = path_templatePreviews + '[' + i + ']';
|
|
5549
|
-
const referencepath_templatePreviews_itemValidationError = validate$c(obj_templatePreviews_item, path_templatePreviews_item);
|
|
5550
|
-
if (referencepath_templatePreviews_itemValidationError !== null) {
|
|
5551
|
-
let message = 'Object doesn\'t match TemplatePreviewInputRepresentation (at "' + path_templatePreviews_item + '")\n';
|
|
5552
|
-
message += referencepath_templatePreviews_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5553
|
-
return new TypeError(message);
|
|
5554
|
-
}
|
|
5555
|
-
}
|
|
5556
|
-
}
|
|
5557
5302
|
})();
|
|
5558
5303
|
return v_error === undefined ? null : v_error;
|
|
5559
5304
|
}
|
|
5560
5305
|
|
|
5561
|
-
function validate$
|
|
5306
|
+
function validate$b(obj, path = 'ReleaseInfoInputRepresentation') {
|
|
5562
5307
|
const v_error = (() => {
|
|
5563
5308
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5564
5309
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5579,7 +5324,7 @@ function validate$a(obj, path = 'ReleaseInfoInputRepresentation') {
|
|
|
5579
5324
|
return v_error === undefined ? null : v_error;
|
|
5580
5325
|
}
|
|
5581
5326
|
|
|
5582
|
-
function validate$
|
|
5327
|
+
function validate$a(obj, path = 'RuleInfoInputRepresentation') {
|
|
5583
5328
|
const v_error = (() => {
|
|
5584
5329
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5585
5330
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5598,8 +5343,8 @@ function validate$9(obj, path = 'RuleInfoInputRepresentation') {
|
|
|
5598
5343
|
return v_error === undefined ? null : v_error;
|
|
5599
5344
|
}
|
|
5600
5345
|
|
|
5601
|
-
function select$
|
|
5602
|
-
return select$
|
|
5346
|
+
function select$f(luvio, params) {
|
|
5347
|
+
return select$i();
|
|
5603
5348
|
}
|
|
5604
5349
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
5605
5350
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
@@ -5610,7 +5355,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
5610
5355
|
luvio.storeIngest(key, ingest$4, body);
|
|
5611
5356
|
const snapshot = luvio.storeLookup({
|
|
5612
5357
|
recordId: key,
|
|
5613
|
-
node: select$
|
|
5358
|
+
node: select$f(),
|
|
5614
5359
|
variables: {},
|
|
5615
5360
|
});
|
|
5616
5361
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5651,6 +5396,7 @@ const createTemplate_ConfigPropertyMetadata = [
|
|
|
5651
5396
|
generateParamConfigMetadata('releaseInfo', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5652
5397
|
generateParamConfigMetadata('rules', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5653
5398
|
generateParamConfigMetadata('tags', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5399
|
+
generateParamConfigMetadata('templateSubtype', false, 2 /* Body */, 0 /* String */),
|
|
5654
5400
|
generateParamConfigMetadata('templateType', true, 2 /* Body */, 0 /* String */),
|
|
5655
5401
|
generateParamConfigMetadata('variableDefinition', false, 2 /* Body */, 0 /* String */),
|
|
5656
5402
|
];
|
|
@@ -5672,12 +5418,12 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
5672
5418
|
config.chainDefinitions = untrustedConfig_chainDefinitions_array;
|
|
5673
5419
|
}
|
|
5674
5420
|
const untrustedConfig_icons = untrustedConfig.icons;
|
|
5675
|
-
const referenceTemplateIconsInputRepresentationValidationError = validate$
|
|
5421
|
+
const referenceTemplateIconsInputRepresentationValidationError = validate$c(untrustedConfig_icons);
|
|
5676
5422
|
if (referenceTemplateIconsInputRepresentationValidationError === null) {
|
|
5677
5423
|
config.icons = untrustedConfig_icons;
|
|
5678
5424
|
}
|
|
5679
5425
|
const untrustedConfig_releaseInfo = untrustedConfig.releaseInfo;
|
|
5680
|
-
const referenceReleaseInfoInputRepresentationValidationError = validate$
|
|
5426
|
+
const referenceReleaseInfoInputRepresentationValidationError = validate$b(untrustedConfig_releaseInfo);
|
|
5681
5427
|
if (referenceReleaseInfoInputRepresentationValidationError === null) {
|
|
5682
5428
|
config.releaseInfo = untrustedConfig_releaseInfo;
|
|
5683
5429
|
}
|
|
@@ -5686,7 +5432,7 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
5686
5432
|
const untrustedConfig_rules_array = [];
|
|
5687
5433
|
for (let i = 0, arrayLength = untrustedConfig_rules.length; i < arrayLength; i++) {
|
|
5688
5434
|
const untrustedConfig_rules_item = untrustedConfig_rules[i];
|
|
5689
|
-
const referenceRuleInfoInputRepresentationValidationError = validate$
|
|
5435
|
+
const referenceRuleInfoInputRepresentationValidationError = validate$a(untrustedConfig_rules_item);
|
|
5690
5436
|
if (referenceRuleInfoInputRepresentationValidationError === null) {
|
|
5691
5437
|
untrustedConfig_rules_array.push(untrustedConfig_rules_item);
|
|
5692
5438
|
}
|
|
@@ -5752,8 +5498,8 @@ const createTemplateAdapterFactory = (luvio) => {
|
|
|
5752
5498
|
};
|
|
5753
5499
|
};
|
|
5754
5500
|
|
|
5755
|
-
function select$
|
|
5756
|
-
return select$
|
|
5501
|
+
function select$e(luvio, params) {
|
|
5502
|
+
return select$i();
|
|
5757
5503
|
}
|
|
5758
5504
|
function keyBuilder$9(luvio, params) {
|
|
5759
5505
|
return keyBuilder$c(luvio, {
|
|
@@ -5769,7 +5515,7 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5769
5515
|
luvio.storeIngest(key, ingest$4, body);
|
|
5770
5516
|
const snapshot = luvio.storeLookup({
|
|
5771
5517
|
recordId: key,
|
|
5772
|
-
node: select$
|
|
5518
|
+
node: select$e(),
|
|
5773
5519
|
variables: {},
|
|
5774
5520
|
}, snapshotRefresh);
|
|
5775
5521
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5786,7 +5532,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
5786
5532
|
const storeMetadataParams = {
|
|
5787
5533
|
ttl: TTL$4,
|
|
5788
5534
|
namespace: keyPrefix,
|
|
5789
|
-
version: VERSION$
|
|
5535
|
+
version: VERSION$a,
|
|
5790
5536
|
representationName: RepresentationType$4
|
|
5791
5537
|
};
|
|
5792
5538
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -5836,7 +5582,7 @@ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
|
5836
5582
|
}
|
|
5837
5583
|
function adapterFragment$2(luvio, config) {
|
|
5838
5584
|
createResourceParams$6(config);
|
|
5839
|
-
return select$
|
|
5585
|
+
return select$e();
|
|
5840
5586
|
}
|
|
5841
5587
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
5842
5588
|
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
@@ -5892,8 +5638,8 @@ const getTemplateAdapterFactory = (luvio) => function AppFramework__getTemplate(
|
|
|
5892
5638
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
5893
5639
|
};
|
|
5894
5640
|
|
|
5895
|
-
function select$
|
|
5896
|
-
return select$
|
|
5641
|
+
function select$d(luvio, params) {
|
|
5642
|
+
return select$i();
|
|
5897
5643
|
}
|
|
5898
5644
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
5899
5645
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
@@ -5904,7 +5650,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
5904
5650
|
luvio.storeIngest(key, ingest$4, body);
|
|
5905
5651
|
const snapshot = luvio.storeLookup({
|
|
5906
5652
|
recordId: key,
|
|
5907
|
-
node: select$
|
|
5653
|
+
node: select$d(),
|
|
5908
5654
|
variables: {},
|
|
5909
5655
|
});
|
|
5910
5656
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5943,7 +5689,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5943
5689
|
const config = {};
|
|
5944
5690
|
typeCheckConfig$n(untrustedConfig, config, updateTemplate_ConfigPropertyMetadata);
|
|
5945
5691
|
const untrustedConfig_releaseInfo = untrustedConfig.releaseInfo;
|
|
5946
|
-
const referenceReleaseInfoInputRepresentationValidationError = validate$
|
|
5692
|
+
const referenceReleaseInfoInputRepresentationValidationError = validate$b(untrustedConfig_releaseInfo);
|
|
5947
5693
|
if (referenceReleaseInfoInputRepresentationValidationError === null) {
|
|
5948
5694
|
config.releaseInfo = untrustedConfig_releaseInfo;
|
|
5949
5695
|
}
|
|
@@ -6075,6 +5821,153 @@ const deleteTemplateAdapterFactory = (luvio) => {
|
|
|
6075
5821
|
};
|
|
6076
5822
|
};
|
|
6077
5823
|
|
|
5824
|
+
const VERSION$8 = "c0e40695f975d64bf46ee8f48e2b5f38";
|
|
5825
|
+
function validate$9(obj, path = 'ImageReferenceRepresentation') {
|
|
5826
|
+
const v_error = (() => {
|
|
5827
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5828
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5829
|
+
}
|
|
5830
|
+
if (obj.id !== undefined) {
|
|
5831
|
+
const obj_id = obj.id;
|
|
5832
|
+
const path_id = path + '.id';
|
|
5833
|
+
if (typeof obj_id !== 'string') {
|
|
5834
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
5835
|
+
}
|
|
5836
|
+
}
|
|
5837
|
+
if (obj.label !== undefined) {
|
|
5838
|
+
const obj_label = obj.label;
|
|
5839
|
+
const path_label = path + '.label';
|
|
5840
|
+
if (typeof obj_label !== 'string') {
|
|
5841
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
5842
|
+
}
|
|
5843
|
+
}
|
|
5844
|
+
if (obj.name !== undefined) {
|
|
5845
|
+
const obj_name = obj.name;
|
|
5846
|
+
const path_name = path + '.name';
|
|
5847
|
+
if (typeof obj_name !== 'string') {
|
|
5848
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
5849
|
+
}
|
|
5850
|
+
}
|
|
5851
|
+
if (obj.namespace !== undefined) {
|
|
5852
|
+
const obj_namespace = obj.namespace;
|
|
5853
|
+
const path_namespace = path + '.namespace';
|
|
5854
|
+
if (typeof obj_namespace !== 'string') {
|
|
5855
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
5856
|
+
}
|
|
5857
|
+
}
|
|
5858
|
+
if (obj.url !== undefined) {
|
|
5859
|
+
const obj_url = obj.url;
|
|
5860
|
+
const path_url = path + '.url';
|
|
5861
|
+
if (typeof obj_url !== 'string') {
|
|
5862
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
5863
|
+
}
|
|
5864
|
+
}
|
|
5865
|
+
})();
|
|
5866
|
+
return v_error === undefined ? null : v_error;
|
|
5867
|
+
}
|
|
5868
|
+
const select$c = function ImageReferenceRepresentationSelect() {
|
|
5869
|
+
return {
|
|
5870
|
+
kind: 'Fragment',
|
|
5871
|
+
version: VERSION$8,
|
|
5872
|
+
private: [],
|
|
5873
|
+
selections: [
|
|
5874
|
+
{
|
|
5875
|
+
name: 'id',
|
|
5876
|
+
kind: 'Scalar',
|
|
5877
|
+
required: false
|
|
5878
|
+
},
|
|
5879
|
+
{
|
|
5880
|
+
name: 'label',
|
|
5881
|
+
kind: 'Scalar',
|
|
5882
|
+
required: false
|
|
5883
|
+
},
|
|
5884
|
+
{
|
|
5885
|
+
name: 'name',
|
|
5886
|
+
kind: 'Scalar',
|
|
5887
|
+
required: false
|
|
5888
|
+
},
|
|
5889
|
+
{
|
|
5890
|
+
name: 'namespace',
|
|
5891
|
+
kind: 'Scalar',
|
|
5892
|
+
required: false
|
|
5893
|
+
},
|
|
5894
|
+
{
|
|
5895
|
+
name: 'url',
|
|
5896
|
+
kind: 'Scalar',
|
|
5897
|
+
required: false
|
|
5898
|
+
}
|
|
5899
|
+
]
|
|
5900
|
+
};
|
|
5901
|
+
};
|
|
5902
|
+
function equals$8(existing, incoming) {
|
|
5903
|
+
const existing_id = existing.id;
|
|
5904
|
+
const incoming_id = incoming.id;
|
|
5905
|
+
// if at least one of these optionals is defined
|
|
5906
|
+
if (existing_id !== undefined || incoming_id !== undefined) {
|
|
5907
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5908
|
+
// not equal
|
|
5909
|
+
if (existing_id === undefined || incoming_id === undefined) {
|
|
5910
|
+
return false;
|
|
5911
|
+
}
|
|
5912
|
+
if (!(existing_id === incoming_id)) {
|
|
5913
|
+
return false;
|
|
5914
|
+
}
|
|
5915
|
+
}
|
|
5916
|
+
const existing_label = existing.label;
|
|
5917
|
+
const incoming_label = incoming.label;
|
|
5918
|
+
// if at least one of these optionals is defined
|
|
5919
|
+
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
5920
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5921
|
+
// not equal
|
|
5922
|
+
if (existing_label === undefined || incoming_label === undefined) {
|
|
5923
|
+
return false;
|
|
5924
|
+
}
|
|
5925
|
+
if (!(existing_label === incoming_label)) {
|
|
5926
|
+
return false;
|
|
5927
|
+
}
|
|
5928
|
+
}
|
|
5929
|
+
const existing_name = existing.name;
|
|
5930
|
+
const incoming_name = incoming.name;
|
|
5931
|
+
// if at least one of these optionals is defined
|
|
5932
|
+
if (existing_name !== undefined || incoming_name !== undefined) {
|
|
5933
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5934
|
+
// not equal
|
|
5935
|
+
if (existing_name === undefined || incoming_name === undefined) {
|
|
5936
|
+
return false;
|
|
5937
|
+
}
|
|
5938
|
+
if (!(existing_name === incoming_name)) {
|
|
5939
|
+
return false;
|
|
5940
|
+
}
|
|
5941
|
+
}
|
|
5942
|
+
const existing_namespace = existing.namespace;
|
|
5943
|
+
const incoming_namespace = incoming.namespace;
|
|
5944
|
+
// if at least one of these optionals is defined
|
|
5945
|
+
if (existing_namespace !== undefined || incoming_namespace !== undefined) {
|
|
5946
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5947
|
+
// not equal
|
|
5948
|
+
if (existing_namespace === undefined || incoming_namespace === undefined) {
|
|
5949
|
+
return false;
|
|
5950
|
+
}
|
|
5951
|
+
if (!(existing_namespace === incoming_namespace)) {
|
|
5952
|
+
return false;
|
|
5953
|
+
}
|
|
5954
|
+
}
|
|
5955
|
+
const existing_url = existing.url;
|
|
5956
|
+
const incoming_url = incoming.url;
|
|
5957
|
+
// if at least one of these optionals is defined
|
|
5958
|
+
if (existing_url !== undefined || incoming_url !== undefined) {
|
|
5959
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5960
|
+
// not equal
|
|
5961
|
+
if (existing_url === undefined || incoming_url === undefined) {
|
|
5962
|
+
return false;
|
|
5963
|
+
}
|
|
5964
|
+
if (!(existing_url === incoming_url)) {
|
|
5965
|
+
return false;
|
|
5966
|
+
}
|
|
5967
|
+
}
|
|
5968
|
+
return true;
|
|
5969
|
+
}
|
|
5970
|
+
|
|
6078
5971
|
const VERSION$7 = "86de998fed5be771d0024e692d48ea17";
|
|
6079
5972
|
function validate$8(obj, path = 'GuidancePanelRepresentation') {
|
|
6080
5973
|
const v_error = (() => {
|
|
@@ -6084,7 +5977,7 @@ function validate$8(obj, path = 'GuidancePanelRepresentation') {
|
|
|
6084
5977
|
if (obj.backgroundImage !== undefined) {
|
|
6085
5978
|
const obj_backgroundImage = obj.backgroundImage;
|
|
6086
5979
|
const path_backgroundImage = path + '.backgroundImage';
|
|
6087
|
-
const referencepath_backgroundImageValidationError = validate$
|
|
5980
|
+
const referencepath_backgroundImageValidationError = validate$9(obj_backgroundImage, path_backgroundImage);
|
|
6088
5981
|
if (referencepath_backgroundImageValidationError !== null) {
|
|
6089
5982
|
let message = 'Object doesn\'t match ImageReferenceRepresentation (at "' + path_backgroundImage + '")\n';
|
|
6090
5983
|
message += referencepath_backgroundImageValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6133,7 +6026,7 @@ function validate$8(obj, path = 'GuidancePanelRepresentation') {
|
|
|
6133
6026
|
return v_error === undefined ? null : v_error;
|
|
6134
6027
|
}
|
|
6135
6028
|
const select$b = function GuidancePanelRepresentationSelect() {
|
|
6136
|
-
const { selections: ImageReferenceRepresentation__selections, opaque: ImageReferenceRepresentation__opaque, } = select$
|
|
6029
|
+
const { selections: ImageReferenceRepresentation__selections, opaque: ImageReferenceRepresentation__opaque, } = select$c();
|
|
6137
6030
|
return {
|
|
6138
6031
|
kind: 'Fragment',
|
|
6139
6032
|
version: VERSION$7,
|
|
@@ -6167,7 +6060,7 @@ function equals$7(existing, incoming) {
|
|
|
6167
6060
|
if (existing_backgroundImage === undefined || incoming_backgroundImage === undefined) {
|
|
6168
6061
|
return false;
|
|
6169
6062
|
}
|
|
6170
|
-
if (!(equals$
|
|
6063
|
+
if (!(equals$8(existing_backgroundImage, incoming_backgroundImage))) {
|
|
6171
6064
|
return false;
|
|
6172
6065
|
}
|
|
6173
6066
|
}
|