@salesforce/lds-adapters-analytics-app-framework 1.320.0 → 1.321.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 +664 -290
- package/dist/es/es2018/types/src/generated/adapters/createTemplate.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postAppFrameworkTemplates.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/TemplateInputRepresentation.d.ts +15 -11
- package/dist/es/es2018/types/src/generated/types/TemplateRepresentation.d.ts +14 -1
- package/package.json +3 -3
- package/sfdc/index.js +888 -511
- package/src/raml/api.raml +33 -4
- package/src/raml/luvio.raml +3 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$9, typeCheckConfig as typeCheckConfig$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$9, typeCheckConfig as typeCheckConfig$c, StoreKeyMap, createResourceParams as createResourceParams$c } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -113,7 +113,7 @@ function createLink(ref) {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
const VERSION$i = "8747a45321deaf63f65cf74537b07eb6";
|
|
116
|
-
function validate$
|
|
116
|
+
function validate$l(obj, path = 'UserRepresentation') {
|
|
117
117
|
const v_error = (() => {
|
|
118
118
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
119
119
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -157,7 +157,7 @@ function validate$f(obj, path = 'UserRepresentation') {
|
|
|
157
157
|
})();
|
|
158
158
|
return v_error === undefined ? null : v_error;
|
|
159
159
|
}
|
|
160
|
-
const select$
|
|
160
|
+
const select$t = function UserRepresentationSelect() {
|
|
161
161
|
return {
|
|
162
162
|
kind: 'Fragment',
|
|
163
163
|
version: VERSION$i,
|
|
@@ -198,7 +198,7 @@ function equals$f(existing, incoming) {
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
const VERSION$h = "74662b770f974cec987197380f2580ea";
|
|
201
|
-
function validate$
|
|
201
|
+
function validate$k(obj, path = 'ScheduledTimezoneRepresentation') {
|
|
202
202
|
const v_error = (() => {
|
|
203
203
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
204
204
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -217,7 +217,7 @@ function validate$e(obj, path = 'ScheduledTimezoneRepresentation') {
|
|
|
217
217
|
})();
|
|
218
218
|
return v_error === undefined ? null : v_error;
|
|
219
219
|
}
|
|
220
|
-
const select$
|
|
220
|
+
const select$s = function ScheduledTimezoneRepresentationSelect() {
|
|
221
221
|
return {
|
|
222
222
|
kind: 'Fragment',
|
|
223
223
|
version: VERSION$h,
|
|
@@ -258,7 +258,7 @@ function equals$e(existing, incoming) {
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
const VERSION$g = "d96bf6818be64d5924beaaad8e684221";
|
|
261
|
-
function validate$
|
|
261
|
+
function validate$j(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$d(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$k(obj_timezone, path_timezone);
|
|
279
279
|
if (referencepath_timezoneValidationError !== null) {
|
|
280
280
|
let message = 'Object doesn\'t match ScheduledTimezoneRepresentation (at "' + path_timezone + '")\n';
|
|
281
281
|
message += referencepath_timezoneValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -284,8 +284,8 @@ function validate$d(obj, path = 'ScheduledTimeRepresentation') {
|
|
|
284
284
|
})();
|
|
285
285
|
return v_error === undefined ? null : v_error;
|
|
286
286
|
}
|
|
287
|
-
const select$
|
|
288
|
-
const { selections: ScheduledTimezoneRepresentation__selections, opaque: ScheduledTimezoneRepresentation__opaque, } = select$
|
|
287
|
+
const select$r = function ScheduledTimeRepresentationSelect() {
|
|
288
|
+
const { selections: ScheduledTimezoneRepresentation__selections, opaque: ScheduledTimezoneRepresentation__opaque, } = select$s();
|
|
289
289
|
return {
|
|
290
290
|
kind: 'Fragment',
|
|
291
291
|
version: VERSION$g,
|
|
@@ -327,8 +327,8 @@ function equals$d(existing, incoming) {
|
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
const VERSION$f = "91838b86aa135ce828af6242b11ae888";
|
|
330
|
-
const select$
|
|
331
|
-
const { selections: ScheduledItemRepresentationSelections } = select$
|
|
330
|
+
const select$q = function HourlyScheduledItemRepresentationSelect() {
|
|
331
|
+
const { selections: ScheduledItemRepresentationSelections } = select$n();
|
|
332
332
|
return {
|
|
333
333
|
kind: 'Fragment',
|
|
334
334
|
version: VERSION$f,
|
|
@@ -349,8 +349,8 @@ const select$p = function HourlyScheduledItemRepresentationSelect() {
|
|
|
349
349
|
};
|
|
350
350
|
|
|
351
351
|
const VERSION$e = "46260a34f0b2c2d7adc7f8c150a8d8fb";
|
|
352
|
-
const select$
|
|
353
|
-
const { selections: ScheduledItemRepresentationSelections } = select$
|
|
352
|
+
const select$p = function WeeklyScheduledItemRepresentationSelect() {
|
|
353
|
+
const { selections: ScheduledItemRepresentationSelections } = select$n();
|
|
354
354
|
return {
|
|
355
355
|
kind: 'Fragment',
|
|
356
356
|
version: VERSION$e,
|
|
@@ -367,8 +367,8 @@ const select$o = function WeeklyScheduledItemRepresentationSelect() {
|
|
|
367
367
|
};
|
|
368
368
|
|
|
369
369
|
const VERSION$d = "dcda6d015a01d9acde5fac241448cfe4";
|
|
370
|
-
const select$
|
|
371
|
-
const { selections: ScheduledItemRepresentationSelections } = select$
|
|
370
|
+
const select$o = function DailyScheduledItemRepresentationSelect() {
|
|
371
|
+
const { selections: ScheduledItemRepresentationSelections } = select$n();
|
|
372
372
|
return {
|
|
373
373
|
kind: 'Fragment',
|
|
374
374
|
version: VERSION$d,
|
|
@@ -386,7 +386,7 @@ var DiscriminatorValues;
|
|
|
386
386
|
DiscriminatorValues["Daily"] = "Daily";
|
|
387
387
|
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
388
388
|
const VERSION$c = "193484b4261ca5840b61caaab3dea067";
|
|
389
|
-
function validate$
|
|
389
|
+
function validate$i(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$c(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$j(obj_time, path_time);
|
|
407
407
|
if (referencepath_timeValidationError !== null) {
|
|
408
408
|
let message = 'Object doesn\'t match ScheduledTimeRepresentation (at "' + path_time + '")\n';
|
|
409
409
|
message += referencepath_timeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -413,9 +413,9 @@ function validate$c(obj, path = 'ScheduledItemRepresentation') {
|
|
|
413
413
|
return v_error === undefined ? null : v_error;
|
|
414
414
|
}
|
|
415
415
|
const selectChildren = function ScheduledItemRepresentationSelectChildren() {
|
|
416
|
-
const hourlyScheduledItemRepresentationSelections = select$
|
|
417
|
-
const weeklyScheduledItemRepresentationSelections = select$
|
|
418
|
-
const dailyScheduledItemRepresentationSelections = select$
|
|
416
|
+
const hourlyScheduledItemRepresentationSelections = select$q();
|
|
417
|
+
const weeklyScheduledItemRepresentationSelections = select$p();
|
|
418
|
+
const dailyScheduledItemRepresentationSelections = select$o();
|
|
419
419
|
return {
|
|
420
420
|
kind: 'Fragment',
|
|
421
421
|
union: true,
|
|
@@ -427,8 +427,8 @@ const selectChildren = function ScheduledItemRepresentationSelectChildren() {
|
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
429
|
};
|
|
430
|
-
const select$
|
|
431
|
-
const { selections: ScheduledTimeRepresentation__selections, opaque: ScheduledTimeRepresentation__opaque, } = select$
|
|
430
|
+
const select$n = function ScheduledItemRepresentationSelect() {
|
|
431
|
+
const { selections: ScheduledTimeRepresentation__selections, opaque: ScheduledTimeRepresentation__opaque, } = select$r();
|
|
432
432
|
return {
|
|
433
433
|
kind: 'Fragment',
|
|
434
434
|
version: VERSION$c,
|
|
@@ -470,7 +470,7 @@ function equals$c(existing, incoming) {
|
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
const VERSION$b = "06b5da5162febff2692d819c9b718be5";
|
|
473
|
-
function validate$
|
|
473
|
+
function validate$h(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$b(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$i(obj_dataRefreshSchedule, path_dataRefreshSchedule);
|
|
483
483
|
if (referencepath_dataRefreshScheduleValidationError !== null) {
|
|
484
484
|
let message = 'Object doesn\'t match ScheduledItemRepresentation (at "' + path_dataRefreshSchedule + '")\n';
|
|
485
485
|
message += referencepath_dataRefreshScheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -533,7 +533,7 @@ function validate$b(obj, path = 'AppScheduleRepresentation') {
|
|
|
533
533
|
})();
|
|
534
534
|
return v_error === undefined ? null : v_error;
|
|
535
535
|
}
|
|
536
|
-
const select$
|
|
536
|
+
const select$m = function AppScheduleRepresentationSelect() {
|
|
537
537
|
const ScheduledItemRepresentation__unionSelections = selectChildren();
|
|
538
538
|
return {
|
|
539
539
|
kind: 'Fragment',
|
|
@@ -574,7 +574,7 @@ function equals$b(existing, incoming) {
|
|
|
574
574
|
|
|
575
575
|
const TTL$a = 5000;
|
|
576
576
|
const VERSION$a = "be6294bb853a9581fb3b06a2d8caa5d5";
|
|
577
|
-
function validate$
|
|
577
|
+
function validate$g(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$a(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$l(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$a(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$l(obj_lastModifiedBy, path_lastModifiedBy);
|
|
654
654
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
655
655
|
let message = 'Object doesn\'t match UserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
656
656
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -675,7 +675,7 @@ function validate$a(obj, path = 'AppRepresentation') {
|
|
|
675
675
|
const path_schedule = path + '.schedule';
|
|
676
676
|
let obj_schedule_union0 = null;
|
|
677
677
|
const obj_schedule_union0_error = (() => {
|
|
678
|
-
const referencepath_scheduleValidationError = validate$
|
|
678
|
+
const referencepath_scheduleValidationError = validate$h(obj_schedule, path_schedule);
|
|
679
679
|
if (referencepath_scheduleValidationError !== null) {
|
|
680
680
|
let message = 'Object doesn\'t match AppScheduleRepresentation (at "' + path_schedule + '")\n';
|
|
681
681
|
message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -750,9 +750,9 @@ function keyBuilderFromType$7(luvio, object) {
|
|
|
750
750
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
751
751
|
return input;
|
|
752
752
|
}
|
|
753
|
-
const select$
|
|
754
|
-
const { selections: UserRepresentation__selections, opaque: UserRepresentation__opaque, } = select$
|
|
755
|
-
const { selections: AppScheduleRepresentation__selections, opaque: AppScheduleRepresentation__opaque, } = select$
|
|
753
|
+
const select$l = function AppRepresentationSelect() {
|
|
754
|
+
const { selections: UserRepresentation__selections, opaque: UserRepresentation__opaque, } = select$t();
|
|
755
|
+
const { selections: AppScheduleRepresentation__selections, opaque: AppScheduleRepresentation__opaque, } = select$m();
|
|
756
756
|
return {
|
|
757
757
|
kind: 'Fragment',
|
|
758
758
|
version: VERSION$a,
|
|
@@ -950,7 +950,7 @@ function equals$a(existing, incoming) {
|
|
|
950
950
|
}
|
|
951
951
|
const ingest$a = function AppRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
952
952
|
if (process.env.NODE_ENV !== 'production') {
|
|
953
|
-
const validateError = validate$
|
|
953
|
+
const validateError = validate$g(input);
|
|
954
954
|
if (validateError !== null) {
|
|
955
955
|
throw validateError;
|
|
956
956
|
}
|
|
@@ -972,7 +972,7 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
972
972
|
|
|
973
973
|
const TTL$9 = 5000;
|
|
974
974
|
const VERSION$9 = "2dd7266897d8b84ea0207582ca533d29";
|
|
975
|
-
function validate$
|
|
975
|
+
function validate$f(obj, path = 'AppCollectionRepresentation') {
|
|
976
976
|
const v_error = (() => {
|
|
977
977
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
978
978
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1012,7 +1012,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
return input;
|
|
1014
1014
|
}
|
|
1015
|
-
const select$
|
|
1015
|
+
const select$k = function AppCollectionRepresentationSelect() {
|
|
1016
1016
|
return {
|
|
1017
1017
|
kind: 'Fragment',
|
|
1018
1018
|
version: VERSION$9,
|
|
@@ -1022,7 +1022,7 @@ const select$j = function AppCollectionRepresentationSelect() {
|
|
|
1022
1022
|
name: 'apps',
|
|
1023
1023
|
kind: 'Link',
|
|
1024
1024
|
plural: true,
|
|
1025
|
-
fragment: select$
|
|
1025
|
+
fragment: select$l()
|
|
1026
1026
|
}
|
|
1027
1027
|
]
|
|
1028
1028
|
};
|
|
@@ -1042,7 +1042,7 @@ function equals$9(existing, incoming) {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
const ingest$9 = function AppCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1044
1044
|
if (process.env.NODE_ENV !== 'production') {
|
|
1045
|
-
const validateError = validate$
|
|
1045
|
+
const validateError = validate$f(input);
|
|
1046
1046
|
if (validateError !== null) {
|
|
1047
1047
|
throw validateError;
|
|
1048
1048
|
}
|
|
@@ -1066,22 +1066,22 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
1068
|
|
|
1069
|
-
function select$
|
|
1070
|
-
return select$
|
|
1069
|
+
function select$j(luvio, params) {
|
|
1070
|
+
return select$k();
|
|
1071
1071
|
}
|
|
1072
1072
|
function keyBuilder$p(luvio, params) {
|
|
1073
1073
|
return keyPrefix + '::AppCollectionRepresentation:(' + 'templateSourceId:' + params.queryParams.templateSourceId + ',' + 'type:' + params.queryParams.type + ')';
|
|
1074
1074
|
}
|
|
1075
|
-
function getResponseCacheKeys$
|
|
1075
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
1076
1076
|
getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$p(luvio, resourceParams));
|
|
1077
1077
|
}
|
|
1078
|
-
function ingestSuccess$
|
|
1078
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
1079
1079
|
const { body } = response;
|
|
1080
1080
|
const key = keyBuilder$p(luvio, resourceParams);
|
|
1081
1081
|
luvio.storeIngest(key, ingest$9, body);
|
|
1082
1082
|
const snapshot = luvio.storeLookup({
|
|
1083
1083
|
recordId: key,
|
|
1084
|
-
node: select$
|
|
1084
|
+
node: select$j(),
|
|
1085
1085
|
variables: {},
|
|
1086
1086
|
}, snapshotRefresh);
|
|
1087
1087
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1104,7 +1104,7 @@ function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
|
1104
1104
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1105
1105
|
return errorSnapshot;
|
|
1106
1106
|
}
|
|
1107
|
-
function createResourceRequest$
|
|
1107
|
+
function createResourceRequest$b(config) {
|
|
1108
1108
|
const headers = {};
|
|
1109
1109
|
return {
|
|
1110
1110
|
baseUri: '/services/data/v63.0',
|
|
@@ -1118,61 +1118,61 @@ function createResourceRequest$a(config) {
|
|
|
1118
1118
|
};
|
|
1119
1119
|
}
|
|
1120
1120
|
|
|
1121
|
-
const adapterName$
|
|
1121
|
+
const adapterName$b = 'getApps';
|
|
1122
1122
|
const getApps_ConfigPropertyMetadata = [
|
|
1123
1123
|
generateParamConfigMetadata('templateSourceId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1124
1124
|
generateParamConfigMetadata('type', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1125
1125
|
];
|
|
1126
|
-
const getApps_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1127
|
-
const createResourceParams$
|
|
1126
|
+
const getApps_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getApps_ConfigPropertyMetadata);
|
|
1127
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$c(getApps_ConfigPropertyMetadata);
|
|
1128
1128
|
function keyBuilder$o(luvio, config) {
|
|
1129
|
-
const resourceParams = createResourceParams$
|
|
1129
|
+
const resourceParams = createResourceParams$b(config);
|
|
1130
1130
|
return keyBuilder$p(luvio, resourceParams);
|
|
1131
1131
|
}
|
|
1132
|
-
function typeCheckConfig$
|
|
1132
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
1133
1133
|
const config = {};
|
|
1134
|
-
typeCheckConfig$
|
|
1134
|
+
typeCheckConfig$c(untrustedConfig, config, getApps_ConfigPropertyMetadata);
|
|
1135
1135
|
return config;
|
|
1136
1136
|
}
|
|
1137
|
-
function validateAdapterConfig$
|
|
1137
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
1138
1138
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1139
1139
|
return null;
|
|
1140
1140
|
}
|
|
1141
1141
|
if (process.env.NODE_ENV !== 'production') {
|
|
1142
1142
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1143
1143
|
}
|
|
1144
|
-
const config = typeCheckConfig$
|
|
1144
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
1145
1145
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1146
1146
|
return null;
|
|
1147
1147
|
}
|
|
1148
1148
|
return config;
|
|
1149
1149
|
}
|
|
1150
1150
|
function adapterFragment$8(luvio, config) {
|
|
1151
|
-
createResourceParams$
|
|
1152
|
-
return select$
|
|
1151
|
+
createResourceParams$b(config);
|
|
1152
|
+
return select$j();
|
|
1153
1153
|
}
|
|
1154
1154
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
1155
|
-
const snapshot = ingestSuccess$
|
|
1155
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
1156
1156
|
config,
|
|
1157
|
-
resolve: () => buildNetworkSnapshot$
|
|
1157
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
1158
1158
|
});
|
|
1159
1159
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1160
1160
|
}
|
|
1161
1161
|
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
1162
1162
|
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
1163
1163
|
config,
|
|
1164
|
-
resolve: () => buildNetworkSnapshot$
|
|
1164
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
1165
1165
|
});
|
|
1166
1166
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1167
1167
|
}
|
|
1168
|
-
function buildNetworkSnapshot$
|
|
1169
|
-
const resourceParams = createResourceParams$
|
|
1170
|
-
const request = createResourceRequest$
|
|
1168
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
1169
|
+
const resourceParams = createResourceParams$b(config);
|
|
1170
|
+
const request = createResourceRequest$b(resourceParams);
|
|
1171
1171
|
return luvio.dispatchResourceRequest(request, options)
|
|
1172
1172
|
.then((response) => {
|
|
1173
1173
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
1174
1174
|
const cache = new StoreKeyMap();
|
|
1175
|
-
getResponseCacheKeys$
|
|
1175
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
1176
1176
|
return cache;
|
|
1177
1177
|
});
|
|
1178
1178
|
}, (response) => {
|
|
@@ -1180,7 +1180,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
1180
1180
|
});
|
|
1181
1181
|
}
|
|
1182
1182
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
1183
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1183
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
1184
1184
|
}
|
|
1185
1185
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
1186
1186
|
const { luvio, config } = context;
|
|
@@ -1191,12 +1191,12 @@ function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
|
1191
1191
|
};
|
|
1192
1192
|
const cacheSnapshot = storeLookup(selector, {
|
|
1193
1193
|
config,
|
|
1194
|
-
resolve: () => buildNetworkSnapshot$
|
|
1194
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
1195
1195
|
});
|
|
1196
1196
|
return cacheSnapshot;
|
|
1197
1197
|
}
|
|
1198
1198
|
const getAppsAdapterFactory = (luvio) => function AppFramework__getApps(untrustedConfig, requestContext) {
|
|
1199
|
-
const config = validateAdapterConfig$
|
|
1199
|
+
const config = validateAdapterConfig$b(untrustedConfig, getApps_ConfigPropertyNames);
|
|
1200
1200
|
// Invalid or incomplete config
|
|
1201
1201
|
if (config === null) {
|
|
1202
1202
|
return null;
|
|
@@ -1207,7 +1207,7 @@ const getAppsAdapterFactory = (luvio) => function AppFramework__getApps(untruste
|
|
|
1207
1207
|
|
|
1208
1208
|
const TTL$8 = 5000;
|
|
1209
1209
|
const VERSION$8 = "1e01d8ae397bfbae02ba4cfae1dac4fc";
|
|
1210
|
-
function validate$
|
|
1210
|
+
function validate$e(obj, path = 'AppResultRepresentation') {
|
|
1211
1211
|
const v_error = (() => {
|
|
1212
1212
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1213
1213
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1290,7 +1290,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
1290
1290
|
}, luvio, store, timestamp);
|
|
1291
1291
|
return input;
|
|
1292
1292
|
}
|
|
1293
|
-
const select$
|
|
1293
|
+
const select$i = function AppResultRepresentationSelect() {
|
|
1294
1294
|
return {
|
|
1295
1295
|
kind: 'Fragment',
|
|
1296
1296
|
version: VERSION$8,
|
|
@@ -1299,7 +1299,7 @@ const select$h = function AppResultRepresentationSelect() {
|
|
|
1299
1299
|
{
|
|
1300
1300
|
name: 'app',
|
|
1301
1301
|
kind: 'Link',
|
|
1302
|
-
fragment: select$
|
|
1302
|
+
fragment: select$l()
|
|
1303
1303
|
},
|
|
1304
1304
|
{
|
|
1305
1305
|
name: 'failureMessage',
|
|
@@ -1347,7 +1347,7 @@ function equals$8(existing, incoming) {
|
|
|
1347
1347
|
}
|
|
1348
1348
|
const ingest$8 = function AppResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1349
1349
|
if (process.env.NODE_ENV !== 'production') {
|
|
1350
|
-
const validateError = validate$
|
|
1350
|
+
const validateError = validate$e(input);
|
|
1351
1351
|
if (validateError !== null) {
|
|
1352
1352
|
throw validateError;
|
|
1353
1353
|
}
|
|
@@ -1368,19 +1368,19 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1368
1368
|
getTypeCacheKeys$a(rootKeySet, luvio, input.app);
|
|
1369
1369
|
}
|
|
1370
1370
|
|
|
1371
|
-
function select$
|
|
1372
|
-
return select$
|
|
1371
|
+
function select$h(luvio, params) {
|
|
1372
|
+
return select$i();
|
|
1373
1373
|
}
|
|
1374
|
-
function getResponseCacheKeys$
|
|
1374
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
1375
1375
|
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
1376
1376
|
}
|
|
1377
|
-
function ingestSuccess$
|
|
1377
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
1378
1378
|
const { body } = response;
|
|
1379
1379
|
const key = keyBuilderFromType$6(luvio, body);
|
|
1380
1380
|
luvio.storeIngest(key, ingest$8, body);
|
|
1381
1381
|
const snapshot = luvio.storeLookup({
|
|
1382
1382
|
recordId: key,
|
|
1383
|
-
node: select$
|
|
1383
|
+
node: select$h(),
|
|
1384
1384
|
variables: {},
|
|
1385
1385
|
});
|
|
1386
1386
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1391,7 +1391,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
1391
1391
|
deepFreeze(snapshot.data);
|
|
1392
1392
|
return snapshot;
|
|
1393
1393
|
}
|
|
1394
|
-
function createResourceRequest$
|
|
1394
|
+
function createResourceRequest$a(config) {
|
|
1395
1395
|
const headers = {};
|
|
1396
1396
|
return {
|
|
1397
1397
|
baseUri: '/services/data/v63.0',
|
|
@@ -1405,7 +1405,7 @@ function createResourceRequest$9(config) {
|
|
|
1405
1405
|
};
|
|
1406
1406
|
}
|
|
1407
1407
|
|
|
1408
|
-
const adapterName$
|
|
1408
|
+
const adapterName$a = 'createApp';
|
|
1409
1409
|
const createApp_ConfigPropertyMetadata = [
|
|
1410
1410
|
generateParamConfigMetadata('assetIcon', false, 2 /* Body */, 0 /* String */),
|
|
1411
1411
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -1418,11 +1418,11 @@ const createApp_ConfigPropertyMetadata = [
|
|
|
1418
1418
|
generateParamConfigMetadata('templateValues', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1419
1419
|
generateParamConfigMetadata('templateVersion', false, 2 /* Body */, 0 /* String */),
|
|
1420
1420
|
];
|
|
1421
|
-
const createApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1422
|
-
const createResourceParams$
|
|
1423
|
-
function typeCheckConfig$
|
|
1421
|
+
const createApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createApp_ConfigPropertyMetadata);
|
|
1422
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$c(createApp_ConfigPropertyMetadata);
|
|
1423
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
1424
1424
|
const config = {};
|
|
1425
|
-
typeCheckConfig$
|
|
1425
|
+
typeCheckConfig$c(untrustedConfig, config, createApp_ConfigPropertyMetadata);
|
|
1426
1426
|
const untrustedConfig_templateValues = untrustedConfig.templateValues;
|
|
1427
1427
|
if (untrustedIsObject(untrustedConfig_templateValues)) {
|
|
1428
1428
|
const untrustedConfig_templateValues_object = {};
|
|
@@ -1440,30 +1440,30 @@ function typeCheckConfig$9(untrustedConfig) {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
return config;
|
|
1442
1442
|
}
|
|
1443
|
-
function validateAdapterConfig$
|
|
1443
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
1444
1444
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1445
1445
|
return null;
|
|
1446
1446
|
}
|
|
1447
1447
|
if (process.env.NODE_ENV !== 'production') {
|
|
1448
1448
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1449
1449
|
}
|
|
1450
|
-
const config = typeCheckConfig$
|
|
1450
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
1451
1451
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1452
1452
|
return null;
|
|
1453
1453
|
}
|
|
1454
1454
|
return config;
|
|
1455
1455
|
}
|
|
1456
|
-
function buildNetworkSnapshot$
|
|
1457
|
-
const resourceParams = createResourceParams$
|
|
1458
|
-
const request = createResourceRequest$
|
|
1456
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
1457
|
+
const resourceParams = createResourceParams$a(config);
|
|
1458
|
+
const request = createResourceRequest$a(resourceParams);
|
|
1459
1459
|
return luvio.dispatchResourceRequest(request, options)
|
|
1460
1460
|
.then((response) => {
|
|
1461
1461
|
return luvio.handleSuccessResponse(() => {
|
|
1462
|
-
const snapshot = ingestSuccess$
|
|
1462
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
1463
1463
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1464
1464
|
}, () => {
|
|
1465
1465
|
const cache = new StoreKeyMap();
|
|
1466
|
-
getResponseCacheKeys$
|
|
1466
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
1467
1467
|
return cache;
|
|
1468
1468
|
});
|
|
1469
1469
|
}, (response) => {
|
|
@@ -1473,12 +1473,12 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
1473
1473
|
}
|
|
1474
1474
|
const createAppAdapterFactory = (luvio) => {
|
|
1475
1475
|
return function createApp(untrustedConfig) {
|
|
1476
|
-
const config = validateAdapterConfig$
|
|
1476
|
+
const config = validateAdapterConfig$a(untrustedConfig, createApp_ConfigPropertyNames);
|
|
1477
1477
|
// Invalid or incomplete config
|
|
1478
1478
|
if (config === null) {
|
|
1479
1479
|
throw new Error('Invalid config for "createApp"');
|
|
1480
1480
|
}
|
|
1481
|
-
return buildNetworkSnapshot$
|
|
1481
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
1482
1482
|
};
|
|
1483
1483
|
};
|
|
1484
1484
|
|
|
@@ -1487,7 +1487,7 @@ function keyBuilder$m(luvio, params) {
|
|
|
1487
1487
|
id: params.urlParams.appIdOrApiName
|
|
1488
1488
|
});
|
|
1489
1489
|
}
|
|
1490
|
-
function getResponseCacheKeys$
|
|
1490
|
+
function getResponseCacheKeys$9(cacheKeyMap, luvio, resourceParams) {
|
|
1491
1491
|
const key = keyBuilder$m(luvio, resourceParams);
|
|
1492
1492
|
cacheKeyMap.set(key, {
|
|
1493
1493
|
namespace: keyPrefix,
|
|
@@ -1499,7 +1499,7 @@ function evictSuccess(luvio, resourceParams) {
|
|
|
1499
1499
|
const key = keyBuilder$m(luvio, resourceParams);
|
|
1500
1500
|
luvio.storeEvict(key);
|
|
1501
1501
|
}
|
|
1502
|
-
function createResourceRequest$
|
|
1502
|
+
function createResourceRequest$9(config) {
|
|
1503
1503
|
const headers = {};
|
|
1504
1504
|
return {
|
|
1505
1505
|
baseUri: '/services/data/v63.0',
|
|
@@ -1513,33 +1513,33 @@ function createResourceRequest$8(config) {
|
|
|
1513
1513
|
};
|
|
1514
1514
|
}
|
|
1515
1515
|
|
|
1516
|
-
const adapterName$
|
|
1516
|
+
const adapterName$9 = 'deleteApp';
|
|
1517
1517
|
const deleteApp_ConfigPropertyMetadata = [
|
|
1518
1518
|
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1519
1519
|
];
|
|
1520
|
-
const deleteApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1521
|
-
const createResourceParams$
|
|
1522
|
-
function typeCheckConfig$
|
|
1520
|
+
const deleteApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, deleteApp_ConfigPropertyMetadata);
|
|
1521
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$c(deleteApp_ConfigPropertyMetadata);
|
|
1522
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
1523
1523
|
const config = {};
|
|
1524
|
-
typeCheckConfig$
|
|
1524
|
+
typeCheckConfig$c(untrustedConfig, config, deleteApp_ConfigPropertyMetadata);
|
|
1525
1525
|
return config;
|
|
1526
1526
|
}
|
|
1527
|
-
function validateAdapterConfig$
|
|
1527
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
1528
1528
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1529
1529
|
return null;
|
|
1530
1530
|
}
|
|
1531
1531
|
if (process.env.NODE_ENV !== 'production') {
|
|
1532
1532
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1533
1533
|
}
|
|
1534
|
-
const config = typeCheckConfig$
|
|
1534
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
1535
1535
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1536
1536
|
return null;
|
|
1537
1537
|
}
|
|
1538
1538
|
return config;
|
|
1539
1539
|
}
|
|
1540
|
-
function buildNetworkSnapshot$
|
|
1541
|
-
const resourceParams = createResourceParams$
|
|
1542
|
-
const request = createResourceRequest$
|
|
1540
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
1541
|
+
const resourceParams = createResourceParams$9(config);
|
|
1542
|
+
const request = createResourceRequest$9(resourceParams);
|
|
1543
1543
|
return luvio.dispatchResourceRequest(request, options)
|
|
1544
1544
|
.then(() => {
|
|
1545
1545
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -1547,7 +1547,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
1547
1547
|
return luvio.storeBroadcast();
|
|
1548
1548
|
}, () => {
|
|
1549
1549
|
const cache = new StoreKeyMap();
|
|
1550
|
-
getResponseCacheKeys$
|
|
1550
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams);
|
|
1551
1551
|
return cache;
|
|
1552
1552
|
});
|
|
1553
1553
|
}, (response) => {
|
|
@@ -1557,33 +1557,33 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
1557
1557
|
}
|
|
1558
1558
|
const deleteAppAdapterFactory = (luvio) => {
|
|
1559
1559
|
return function AppFrameworkdeleteApp(untrustedConfig) {
|
|
1560
|
-
const config = validateAdapterConfig$
|
|
1560
|
+
const config = validateAdapterConfig$9(untrustedConfig, deleteApp_ConfigPropertyNames);
|
|
1561
1561
|
// Invalid or incomplete config
|
|
1562
1562
|
if (config === null) {
|
|
1563
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
1563
|
+
throw new Error(`Invalid config for "${adapterName$9}"`);
|
|
1564
1564
|
}
|
|
1565
|
-
return buildNetworkSnapshot$
|
|
1565
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
1566
1566
|
};
|
|
1567
1567
|
};
|
|
1568
1568
|
|
|
1569
|
-
function select$
|
|
1570
|
-
return select$
|
|
1569
|
+
function select$g(luvio, params) {
|
|
1570
|
+
return select$l();
|
|
1571
1571
|
}
|
|
1572
1572
|
function keyBuilder$l(luvio, params) {
|
|
1573
1573
|
return keyBuilder$q(luvio, {
|
|
1574
1574
|
id: params.urlParams.appIdOrApiName
|
|
1575
1575
|
});
|
|
1576
1576
|
}
|
|
1577
|
-
function getResponseCacheKeys$
|
|
1577
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
1578
1578
|
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
1579
1579
|
}
|
|
1580
|
-
function ingestSuccess$
|
|
1580
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
1581
1581
|
const { body } = response;
|
|
1582
1582
|
const key = keyBuilder$l(luvio, resourceParams);
|
|
1583
1583
|
luvio.storeIngest(key, ingest$a, body);
|
|
1584
1584
|
const snapshot = luvio.storeLookup({
|
|
1585
1585
|
recordId: key,
|
|
1586
|
-
node: select$
|
|
1586
|
+
node: select$g(),
|
|
1587
1587
|
variables: {},
|
|
1588
1588
|
}, snapshotRefresh);
|
|
1589
1589
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1606,7 +1606,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
1606
1606
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1607
1607
|
return errorSnapshot;
|
|
1608
1608
|
}
|
|
1609
|
-
function createResourceRequest$
|
|
1609
|
+
function createResourceRequest$8(config) {
|
|
1610
1610
|
const headers = {};
|
|
1611
1611
|
return {
|
|
1612
1612
|
baseUri: '/services/data/v63.0',
|
|
@@ -1620,60 +1620,60 @@ function createResourceRequest$7(config) {
|
|
|
1620
1620
|
};
|
|
1621
1621
|
}
|
|
1622
1622
|
|
|
1623
|
-
const adapterName$
|
|
1623
|
+
const adapterName$8 = 'getApp';
|
|
1624
1624
|
const getApp_ConfigPropertyMetadata = [
|
|
1625
1625
|
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1626
1626
|
];
|
|
1627
|
-
const getApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1628
|
-
const createResourceParams$
|
|
1627
|
+
const getApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getApp_ConfigPropertyMetadata);
|
|
1628
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$c(getApp_ConfigPropertyMetadata);
|
|
1629
1629
|
function keyBuilder$k(luvio, config) {
|
|
1630
|
-
const resourceParams = createResourceParams$
|
|
1630
|
+
const resourceParams = createResourceParams$8(config);
|
|
1631
1631
|
return keyBuilder$l(luvio, resourceParams);
|
|
1632
1632
|
}
|
|
1633
|
-
function typeCheckConfig$
|
|
1633
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
1634
1634
|
const config = {};
|
|
1635
|
-
typeCheckConfig$
|
|
1635
|
+
typeCheckConfig$c(untrustedConfig, config, getApp_ConfigPropertyMetadata);
|
|
1636
1636
|
return config;
|
|
1637
1637
|
}
|
|
1638
|
-
function validateAdapterConfig$
|
|
1638
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
1639
1639
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1640
1640
|
return null;
|
|
1641
1641
|
}
|
|
1642
1642
|
if (process.env.NODE_ENV !== 'production') {
|
|
1643
1643
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1644
1644
|
}
|
|
1645
|
-
const config = typeCheckConfig$
|
|
1645
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
1646
1646
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1647
1647
|
return null;
|
|
1648
1648
|
}
|
|
1649
1649
|
return config;
|
|
1650
1650
|
}
|
|
1651
1651
|
function adapterFragment$7(luvio, config) {
|
|
1652
|
-
createResourceParams$
|
|
1653
|
-
return select$
|
|
1652
|
+
createResourceParams$8(config);
|
|
1653
|
+
return select$g();
|
|
1654
1654
|
}
|
|
1655
1655
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
1656
|
-
const snapshot = ingestSuccess$
|
|
1656
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
1657
1657
|
config,
|
|
1658
|
-
resolve: () => buildNetworkSnapshot$
|
|
1658
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
1659
1659
|
});
|
|
1660
1660
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1661
1661
|
}
|
|
1662
1662
|
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
1663
1663
|
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
1664
1664
|
config,
|
|
1665
|
-
resolve: () => buildNetworkSnapshot$
|
|
1665
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
1666
1666
|
});
|
|
1667
1667
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1668
1668
|
}
|
|
1669
|
-
function buildNetworkSnapshot$
|
|
1670
|
-
const resourceParams = createResourceParams$
|
|
1671
|
-
const request = createResourceRequest$
|
|
1669
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
1670
|
+
const resourceParams = createResourceParams$8(config);
|
|
1671
|
+
const request = createResourceRequest$8(resourceParams);
|
|
1672
1672
|
return luvio.dispatchResourceRequest(request, options)
|
|
1673
1673
|
.then((response) => {
|
|
1674
1674
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
1675
1675
|
const cache = new StoreKeyMap();
|
|
1676
|
-
getResponseCacheKeys$
|
|
1676
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
1677
1677
|
return cache;
|
|
1678
1678
|
});
|
|
1679
1679
|
}, (response) => {
|
|
@@ -1681,7 +1681,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
1681
1681
|
});
|
|
1682
1682
|
}
|
|
1683
1683
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
1684
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1684
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
1685
1685
|
}
|
|
1686
1686
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
1687
1687
|
const { luvio, config } = context;
|
|
@@ -1692,12 +1692,12 @@ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
|
1692
1692
|
};
|
|
1693
1693
|
const cacheSnapshot = storeLookup(selector, {
|
|
1694
1694
|
config,
|
|
1695
|
-
resolve: () => buildNetworkSnapshot$
|
|
1695
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
1696
1696
|
});
|
|
1697
1697
|
return cacheSnapshot;
|
|
1698
1698
|
}
|
|
1699
1699
|
const getAppAdapterFactory = (luvio) => function AppFramework__getApp(untrustedConfig, requestContext) {
|
|
1700
|
-
const config = validateAdapterConfig$
|
|
1700
|
+
const config = validateAdapterConfig$8(untrustedConfig, getApp_ConfigPropertyNames);
|
|
1701
1701
|
// Invalid or incomplete config
|
|
1702
1702
|
if (config === null) {
|
|
1703
1703
|
return null;
|
|
@@ -1708,7 +1708,7 @@ const getAppAdapterFactory = (luvio) => function AppFramework__getApp(untrustedC
|
|
|
1708
1708
|
|
|
1709
1709
|
const TTL$7 = 5000;
|
|
1710
1710
|
const VERSION$7 = "b8e879a936b5069ec247355c66198ca7";
|
|
1711
|
-
function validate$
|
|
1711
|
+
function validate$d(obj, path = 'AppActivityItemRepresentation') {
|
|
1712
1712
|
const v_error = (() => {
|
|
1713
1713
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1714
1714
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1764,7 +1764,7 @@ function keyBuilderFromType$5(luvio, object) {
|
|
|
1764
1764
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
1765
1765
|
return input;
|
|
1766
1766
|
}
|
|
1767
|
-
const select$
|
|
1767
|
+
const select$f = function AppActivityItemRepresentationSelect() {
|
|
1768
1768
|
return {
|
|
1769
1769
|
kind: 'Fragment',
|
|
1770
1770
|
version: VERSION$7,
|
|
@@ -1829,7 +1829,7 @@ function equals$7(existing, incoming) {
|
|
|
1829
1829
|
}
|
|
1830
1830
|
const ingest$7 = function AppActivityItemRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1831
1831
|
if (process.env.NODE_ENV !== 'production') {
|
|
1832
|
-
const validateError = validate$
|
|
1832
|
+
const validateError = validate$d(input);
|
|
1833
1833
|
if (validateError !== null) {
|
|
1834
1834
|
throw validateError;
|
|
1835
1835
|
}
|
|
@@ -1851,7 +1851,7 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1851
1851
|
|
|
1852
1852
|
const TTL$6 = 5000;
|
|
1853
1853
|
const VERSION$6 = "e0f049ec23678e696fb7c592c9641c65";
|
|
1854
|
-
function validate$
|
|
1854
|
+
function validate$c(obj, path = 'AppActivityCollectionRepresentation') {
|
|
1855
1855
|
const v_error = (() => {
|
|
1856
1856
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1857
1857
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1905,7 +1905,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
1905
1905
|
}
|
|
1906
1906
|
return input;
|
|
1907
1907
|
}
|
|
1908
|
-
const select$
|
|
1908
|
+
const select$e = function AppActivityCollectionRepresentationSelect() {
|
|
1909
1909
|
return {
|
|
1910
1910
|
kind: 'Fragment',
|
|
1911
1911
|
version: VERSION$6,
|
|
@@ -1919,7 +1919,7 @@ const select$d = function AppActivityCollectionRepresentationSelect() {
|
|
|
1919
1919
|
name: 'items',
|
|
1920
1920
|
kind: 'Link',
|
|
1921
1921
|
plural: true,
|
|
1922
|
-
fragment: select$
|
|
1922
|
+
fragment: select$f()
|
|
1923
1923
|
}
|
|
1924
1924
|
]
|
|
1925
1925
|
};
|
|
@@ -1944,7 +1944,7 @@ function equals$6(existing, incoming) {
|
|
|
1944
1944
|
}
|
|
1945
1945
|
const ingest$6 = function AppActivityCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1946
1946
|
if (process.env.NODE_ENV !== 'production') {
|
|
1947
|
-
const validateError = validate$
|
|
1947
|
+
const validateError = validate$c(input);
|
|
1948
1948
|
if (validateError !== null) {
|
|
1949
1949
|
throw validateError;
|
|
1950
1950
|
}
|
|
@@ -1968,24 +1968,24 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
1970
|
|
|
1971
|
-
function select$
|
|
1972
|
-
return select$
|
|
1971
|
+
function select$d(luvio, params) {
|
|
1972
|
+
return select$e();
|
|
1973
1973
|
}
|
|
1974
1974
|
function keyBuilder$h(luvio, params) {
|
|
1975
1975
|
return keyBuilder$i(luvio, {
|
|
1976
1976
|
appId: params.urlParams.appIdOrApiName
|
|
1977
1977
|
});
|
|
1978
1978
|
}
|
|
1979
|
-
function getResponseCacheKeys$
|
|
1979
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
1980
1980
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
1981
1981
|
}
|
|
1982
|
-
function ingestSuccess$
|
|
1982
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
1983
1983
|
const { body } = response;
|
|
1984
1984
|
const key = keyBuilder$h(luvio, resourceParams);
|
|
1985
1985
|
luvio.storeIngest(key, ingest$6, body);
|
|
1986
1986
|
const snapshot = luvio.storeLookup({
|
|
1987
1987
|
recordId: key,
|
|
1988
|
-
node: select$
|
|
1988
|
+
node: select$d(),
|
|
1989
1989
|
variables: {},
|
|
1990
1990
|
}, snapshotRefresh);
|
|
1991
1991
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2008,7 +2008,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
2008
2008
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2009
2009
|
return errorSnapshot;
|
|
2010
2010
|
}
|
|
2011
|
-
function createResourceRequest$
|
|
2011
|
+
function createResourceRequest$7(config) {
|
|
2012
2012
|
const headers = {};
|
|
2013
2013
|
return {
|
|
2014
2014
|
baseUri: '/services/data/v63.0',
|
|
@@ -2022,60 +2022,60 @@ function createResourceRequest$6(config) {
|
|
|
2022
2022
|
};
|
|
2023
2023
|
}
|
|
2024
2024
|
|
|
2025
|
-
const adapterName$
|
|
2025
|
+
const adapterName$7 = 'getAppActivities';
|
|
2026
2026
|
const getAppActivities_ConfigPropertyMetadata = [
|
|
2027
2027
|
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2028
2028
|
];
|
|
2029
|
-
const getAppActivities_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2030
|
-
const createResourceParams$
|
|
2029
|
+
const getAppActivities_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getAppActivities_ConfigPropertyMetadata);
|
|
2030
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$c(getAppActivities_ConfigPropertyMetadata);
|
|
2031
2031
|
function keyBuilder$g(luvio, config) {
|
|
2032
|
-
const resourceParams = createResourceParams$
|
|
2032
|
+
const resourceParams = createResourceParams$7(config);
|
|
2033
2033
|
return keyBuilder$h(luvio, resourceParams);
|
|
2034
2034
|
}
|
|
2035
|
-
function typeCheckConfig$
|
|
2035
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
2036
2036
|
const config = {};
|
|
2037
|
-
typeCheckConfig$
|
|
2037
|
+
typeCheckConfig$c(untrustedConfig, config, getAppActivities_ConfigPropertyMetadata);
|
|
2038
2038
|
return config;
|
|
2039
2039
|
}
|
|
2040
|
-
function validateAdapterConfig$
|
|
2040
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
2041
2041
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2042
2042
|
return null;
|
|
2043
2043
|
}
|
|
2044
2044
|
if (process.env.NODE_ENV !== 'production') {
|
|
2045
2045
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2046
2046
|
}
|
|
2047
|
-
const config = typeCheckConfig$
|
|
2047
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
2048
2048
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2049
2049
|
return null;
|
|
2050
2050
|
}
|
|
2051
2051
|
return config;
|
|
2052
2052
|
}
|
|
2053
2053
|
function adapterFragment$6(luvio, config) {
|
|
2054
|
-
createResourceParams$
|
|
2055
|
-
return select$
|
|
2054
|
+
createResourceParams$7(config);
|
|
2055
|
+
return select$d();
|
|
2056
2056
|
}
|
|
2057
2057
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
2058
|
-
const snapshot = ingestSuccess$
|
|
2058
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
2059
2059
|
config,
|
|
2060
|
-
resolve: () => buildNetworkSnapshot$
|
|
2060
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
2061
2061
|
});
|
|
2062
2062
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2063
2063
|
}
|
|
2064
2064
|
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
2065
2065
|
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
2066
2066
|
config,
|
|
2067
|
-
resolve: () => buildNetworkSnapshot$
|
|
2067
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
2068
2068
|
});
|
|
2069
2069
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2070
2070
|
}
|
|
2071
|
-
function buildNetworkSnapshot$
|
|
2072
|
-
const resourceParams = createResourceParams$
|
|
2073
|
-
const request = createResourceRequest$
|
|
2071
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
2072
|
+
const resourceParams = createResourceParams$7(config);
|
|
2073
|
+
const request = createResourceRequest$7(resourceParams);
|
|
2074
2074
|
return luvio.dispatchResourceRequest(request, options)
|
|
2075
2075
|
.then((response) => {
|
|
2076
2076
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
2077
2077
|
const cache = new StoreKeyMap();
|
|
2078
|
-
getResponseCacheKeys$
|
|
2078
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
2079
2079
|
return cache;
|
|
2080
2080
|
});
|
|
2081
2081
|
}, (response) => {
|
|
@@ -2083,7 +2083,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
2083
2083
|
});
|
|
2084
2084
|
}
|
|
2085
2085
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
2086
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
2086
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
2087
2087
|
}
|
|
2088
2088
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
2089
2089
|
const { luvio, config } = context;
|
|
@@ -2094,12 +2094,12 @@ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
|
2094
2094
|
};
|
|
2095
2095
|
const cacheSnapshot = storeLookup(selector, {
|
|
2096
2096
|
config,
|
|
2097
|
-
resolve: () => buildNetworkSnapshot$
|
|
2097
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
2098
2098
|
});
|
|
2099
2099
|
return cacheSnapshot;
|
|
2100
2100
|
}
|
|
2101
2101
|
const getAppActivitiesAdapterFactory = (luvio) => function AppFramework__getAppActivities(untrustedConfig, requestContext) {
|
|
2102
|
-
const config = validateAdapterConfig$
|
|
2102
|
+
const config = validateAdapterConfig$7(untrustedConfig, getAppActivities_ConfigPropertyNames);
|
|
2103
2103
|
// Invalid or incomplete config
|
|
2104
2104
|
if (config === null) {
|
|
2105
2105
|
return null;
|
|
@@ -2108,8 +2108,8 @@ const getAppActivitiesAdapterFactory = (luvio) => function AppFramework__getAppA
|
|
|
2108
2108
|
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
2109
2109
|
};
|
|
2110
2110
|
|
|
2111
|
-
function select$
|
|
2112
|
-
return select$
|
|
2111
|
+
function select$c(luvio, params) {
|
|
2112
|
+
return select$f();
|
|
2113
2113
|
}
|
|
2114
2114
|
function keyBuilder$f(luvio, params) {
|
|
2115
2115
|
return keyBuilder$j(luvio, {
|
|
@@ -2117,16 +2117,16 @@ function keyBuilder$f(luvio, params) {
|
|
|
2117
2117
|
id: params.urlParams.id
|
|
2118
2118
|
});
|
|
2119
2119
|
}
|
|
2120
|
-
function getResponseCacheKeys$
|
|
2120
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
2121
2121
|
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
2122
2122
|
}
|
|
2123
|
-
function ingestSuccess$
|
|
2123
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
2124
2124
|
const { body } = response;
|
|
2125
2125
|
const key = keyBuilder$f(luvio, resourceParams);
|
|
2126
2126
|
luvio.storeIngest(key, ingest$7, body);
|
|
2127
2127
|
const snapshot = luvio.storeLookup({
|
|
2128
2128
|
recordId: key,
|
|
2129
|
-
node: select$
|
|
2129
|
+
node: select$c(),
|
|
2130
2130
|
variables: {},
|
|
2131
2131
|
}, snapshotRefresh);
|
|
2132
2132
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2149,7 +2149,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
2149
2149
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2150
2150
|
return errorSnapshot;
|
|
2151
2151
|
}
|
|
2152
|
-
function createResourceRequest$
|
|
2152
|
+
function createResourceRequest$6(config) {
|
|
2153
2153
|
const headers = {};
|
|
2154
2154
|
return {
|
|
2155
2155
|
baseUri: '/services/data/v63.0',
|
|
@@ -2163,61 +2163,61 @@ function createResourceRequest$5(config) {
|
|
|
2163
2163
|
};
|
|
2164
2164
|
}
|
|
2165
2165
|
|
|
2166
|
-
const adapterName$
|
|
2166
|
+
const adapterName$6 = 'getAppActivity';
|
|
2167
2167
|
const getAppActivity_ConfigPropertyMetadata = [
|
|
2168
2168
|
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2169
2169
|
generateParamConfigMetadata('id', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2170
2170
|
];
|
|
2171
|
-
const getAppActivity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2172
|
-
const createResourceParams$
|
|
2171
|
+
const getAppActivity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getAppActivity_ConfigPropertyMetadata);
|
|
2172
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$c(getAppActivity_ConfigPropertyMetadata);
|
|
2173
2173
|
function keyBuilder$e(luvio, config) {
|
|
2174
|
-
const resourceParams = createResourceParams$
|
|
2174
|
+
const resourceParams = createResourceParams$6(config);
|
|
2175
2175
|
return keyBuilder$f(luvio, resourceParams);
|
|
2176
2176
|
}
|
|
2177
|
-
function typeCheckConfig$
|
|
2177
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
2178
2178
|
const config = {};
|
|
2179
|
-
typeCheckConfig$
|
|
2179
|
+
typeCheckConfig$c(untrustedConfig, config, getAppActivity_ConfigPropertyMetadata);
|
|
2180
2180
|
return config;
|
|
2181
2181
|
}
|
|
2182
|
-
function validateAdapterConfig$
|
|
2182
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
2183
2183
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2184
2184
|
return null;
|
|
2185
2185
|
}
|
|
2186
2186
|
if (process.env.NODE_ENV !== 'production') {
|
|
2187
2187
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2188
2188
|
}
|
|
2189
|
-
const config = typeCheckConfig$
|
|
2189
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
2190
2190
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2191
2191
|
return null;
|
|
2192
2192
|
}
|
|
2193
2193
|
return config;
|
|
2194
2194
|
}
|
|
2195
2195
|
function adapterFragment$5(luvio, config) {
|
|
2196
|
-
createResourceParams$
|
|
2197
|
-
return select$
|
|
2196
|
+
createResourceParams$6(config);
|
|
2197
|
+
return select$c();
|
|
2198
2198
|
}
|
|
2199
2199
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
2200
|
-
const snapshot = ingestSuccess$
|
|
2200
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
2201
2201
|
config,
|
|
2202
|
-
resolve: () => buildNetworkSnapshot$
|
|
2202
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
2203
2203
|
});
|
|
2204
2204
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2205
2205
|
}
|
|
2206
2206
|
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
2207
2207
|
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
2208
2208
|
config,
|
|
2209
|
-
resolve: () => buildNetworkSnapshot$
|
|
2209
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
2210
2210
|
});
|
|
2211
2211
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2212
2212
|
}
|
|
2213
|
-
function buildNetworkSnapshot$
|
|
2214
|
-
const resourceParams = createResourceParams$
|
|
2215
|
-
const request = createResourceRequest$
|
|
2213
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
2214
|
+
const resourceParams = createResourceParams$6(config);
|
|
2215
|
+
const request = createResourceRequest$6(resourceParams);
|
|
2216
2216
|
return luvio.dispatchResourceRequest(request, options)
|
|
2217
2217
|
.then((response) => {
|
|
2218
2218
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
2219
2219
|
const cache = new StoreKeyMap();
|
|
2220
|
-
getResponseCacheKeys$
|
|
2220
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
2221
2221
|
return cache;
|
|
2222
2222
|
});
|
|
2223
2223
|
}, (response) => {
|
|
@@ -2225,7 +2225,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
2225
2225
|
});
|
|
2226
2226
|
}
|
|
2227
2227
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
2228
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
2228
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
2229
2229
|
}
|
|
2230
2230
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
2231
2231
|
const { luvio, config } = context;
|
|
@@ -2236,12 +2236,12 @@ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
|
2236
2236
|
};
|
|
2237
2237
|
const cacheSnapshot = storeLookup(selector, {
|
|
2238
2238
|
config,
|
|
2239
|
-
resolve: () => buildNetworkSnapshot$
|
|
2239
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
2240
2240
|
});
|
|
2241
2241
|
return cacheSnapshot;
|
|
2242
2242
|
}
|
|
2243
2243
|
const getAppActivityAdapterFactory = (luvio) => function AppFramework__getAppActivity(untrustedConfig, requestContext) {
|
|
2244
|
-
const config = validateAdapterConfig$
|
|
2244
|
+
const config = validateAdapterConfig$6(untrustedConfig, getAppActivity_ConfigPropertyNames);
|
|
2245
2245
|
// Invalid or incomplete config
|
|
2246
2246
|
if (config === null) {
|
|
2247
2247
|
return null;
|
|
@@ -2252,7 +2252,7 @@ const getAppActivityAdapterFactory = (luvio) => function AppFramework__getAppAct
|
|
|
2252
2252
|
|
|
2253
2253
|
const TTL$5 = 5000;
|
|
2254
2254
|
const VERSION$5 = "b91a35834fb34f4f6cede2d5dc29dc5d";
|
|
2255
|
-
function validate$
|
|
2255
|
+
function validate$b(obj, path = 'AssetRepresentation') {
|
|
2256
2256
|
const v_error = (() => {
|
|
2257
2257
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2258
2258
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2418,7 +2418,7 @@ function keyBuilderFromType$3(luvio, object) {
|
|
|
2418
2418
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
2419
2419
|
return input;
|
|
2420
2420
|
}
|
|
2421
|
-
const select$
|
|
2421
|
+
const select$b = function AssetRepresentationSelect() {
|
|
2422
2422
|
return {
|
|
2423
2423
|
kind: 'Fragment',
|
|
2424
2424
|
version: VERSION$5,
|
|
@@ -2504,7 +2504,7 @@ function equals$5(existing, incoming) {
|
|
|
2504
2504
|
}
|
|
2505
2505
|
const ingest$5 = function AssetRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2506
2506
|
if (process.env.NODE_ENV !== 'production') {
|
|
2507
|
-
const validateError = validate$
|
|
2507
|
+
const validateError = validate$b(input);
|
|
2508
2508
|
if (validateError !== null) {
|
|
2509
2509
|
throw validateError;
|
|
2510
2510
|
}
|
|
@@ -2526,7 +2526,7 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2526
2526
|
|
|
2527
2527
|
const TTL$4 = 5000;
|
|
2528
2528
|
const VERSION$4 = "1a10175fcc2ad43823e47bfbbdf917f6";
|
|
2529
|
-
function validate$
|
|
2529
|
+
function validate$a(obj, path = 'AssetCollectionRepresentation') {
|
|
2530
2530
|
const v_error = (() => {
|
|
2531
2531
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2532
2532
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2580,7 +2580,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
2580
2580
|
}
|
|
2581
2581
|
return input;
|
|
2582
2582
|
}
|
|
2583
|
-
const select$
|
|
2583
|
+
const select$a = function AssetCollectionRepresentationSelect() {
|
|
2584
2584
|
return {
|
|
2585
2585
|
kind: 'Fragment',
|
|
2586
2586
|
version: VERSION$4,
|
|
@@ -2594,7 +2594,7 @@ const select$9 = function AssetCollectionRepresentationSelect() {
|
|
|
2594
2594
|
name: 'assets',
|
|
2595
2595
|
kind: 'Link',
|
|
2596
2596
|
plural: true,
|
|
2597
|
-
fragment: select$
|
|
2597
|
+
fragment: select$b()
|
|
2598
2598
|
}
|
|
2599
2599
|
]
|
|
2600
2600
|
};
|
|
@@ -2619,7 +2619,7 @@ function equals$4(existing, incoming) {
|
|
|
2619
2619
|
}
|
|
2620
2620
|
const ingest$4 = function AssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2621
2621
|
if (process.env.NODE_ENV !== 'production') {
|
|
2622
|
-
const validateError = validate$
|
|
2622
|
+
const validateError = validate$a(input);
|
|
2623
2623
|
if (validateError !== null) {
|
|
2624
2624
|
throw validateError;
|
|
2625
2625
|
}
|
|
@@ -2643,24 +2643,24 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2643
2643
|
}
|
|
2644
2644
|
}
|
|
2645
2645
|
|
|
2646
|
-
function select$
|
|
2647
|
-
return select$
|
|
2646
|
+
function select$9(luvio, params) {
|
|
2647
|
+
return select$a();
|
|
2648
2648
|
}
|
|
2649
2649
|
function keyBuilder$b(luvio, params) {
|
|
2650
2650
|
return keyBuilder$c(luvio, {
|
|
2651
2651
|
appId: params.urlParams.appIdOrApiName
|
|
2652
2652
|
});
|
|
2653
2653
|
}
|
|
2654
|
-
function getResponseCacheKeys$
|
|
2654
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
2655
2655
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
2656
2656
|
}
|
|
2657
|
-
function ingestSuccess$
|
|
2657
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
2658
2658
|
const { body } = response;
|
|
2659
2659
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
2660
2660
|
luvio.storeIngest(key, ingest$4, body);
|
|
2661
2661
|
const snapshot = luvio.storeLookup({
|
|
2662
2662
|
recordId: key,
|
|
2663
|
-
node: select$
|
|
2663
|
+
node: select$9(),
|
|
2664
2664
|
variables: {},
|
|
2665
2665
|
}, snapshotRefresh);
|
|
2666
2666
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2683,7 +2683,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
2683
2683
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2684
2684
|
return errorSnapshot;
|
|
2685
2685
|
}
|
|
2686
|
-
function createResourceRequest$
|
|
2686
|
+
function createResourceRequest$5(config) {
|
|
2687
2687
|
const headers = {};
|
|
2688
2688
|
return {
|
|
2689
2689
|
baseUri: '/services/data/v63.0',
|
|
@@ -2697,62 +2697,62 @@ function createResourceRequest$4(config) {
|
|
|
2697
2697
|
};
|
|
2698
2698
|
}
|
|
2699
2699
|
|
|
2700
|
-
const adapterName$
|
|
2700
|
+
const adapterName$5 = 'getAppAssets';
|
|
2701
2701
|
const getAppAssets_ConfigPropertyMetadata = [
|
|
2702
2702
|
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2703
2703
|
generateParamConfigMetadata('assetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2704
2704
|
generateParamConfigMetadata('templateAssetName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2705
2705
|
];
|
|
2706
|
-
const getAppAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2707
|
-
const createResourceParams$
|
|
2706
|
+
const getAppAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getAppAssets_ConfigPropertyMetadata);
|
|
2707
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$c(getAppAssets_ConfigPropertyMetadata);
|
|
2708
2708
|
function keyBuilder$a(luvio, config) {
|
|
2709
|
-
const resourceParams = createResourceParams$
|
|
2709
|
+
const resourceParams = createResourceParams$5(config);
|
|
2710
2710
|
return keyBuilder$b(luvio, resourceParams);
|
|
2711
2711
|
}
|
|
2712
|
-
function typeCheckConfig$
|
|
2712
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
2713
2713
|
const config = {};
|
|
2714
|
-
typeCheckConfig$
|
|
2714
|
+
typeCheckConfig$c(untrustedConfig, config, getAppAssets_ConfigPropertyMetadata);
|
|
2715
2715
|
return config;
|
|
2716
2716
|
}
|
|
2717
|
-
function validateAdapterConfig$
|
|
2717
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
2718
2718
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2719
2719
|
return null;
|
|
2720
2720
|
}
|
|
2721
2721
|
if (process.env.NODE_ENV !== 'production') {
|
|
2722
2722
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2723
2723
|
}
|
|
2724
|
-
const config = typeCheckConfig$
|
|
2724
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
2725
2725
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2726
2726
|
return null;
|
|
2727
2727
|
}
|
|
2728
2728
|
return config;
|
|
2729
2729
|
}
|
|
2730
2730
|
function adapterFragment$4(luvio, config) {
|
|
2731
|
-
createResourceParams$
|
|
2732
|
-
return select$
|
|
2731
|
+
createResourceParams$5(config);
|
|
2732
|
+
return select$9();
|
|
2733
2733
|
}
|
|
2734
2734
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
2735
|
-
const snapshot = ingestSuccess$
|
|
2735
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
2736
2736
|
config,
|
|
2737
|
-
resolve: () => buildNetworkSnapshot$
|
|
2737
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
2738
2738
|
});
|
|
2739
2739
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2740
2740
|
}
|
|
2741
2741
|
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
2742
2742
|
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
2743
2743
|
config,
|
|
2744
|
-
resolve: () => buildNetworkSnapshot$
|
|
2744
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
2745
2745
|
});
|
|
2746
2746
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2747
2747
|
}
|
|
2748
|
-
function buildNetworkSnapshot$
|
|
2749
|
-
const resourceParams = createResourceParams$
|
|
2750
|
-
const request = createResourceRequest$
|
|
2748
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
2749
|
+
const resourceParams = createResourceParams$5(config);
|
|
2750
|
+
const request = createResourceRequest$5(resourceParams);
|
|
2751
2751
|
return luvio.dispatchResourceRequest(request, options)
|
|
2752
2752
|
.then((response) => {
|
|
2753
2753
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
2754
2754
|
const cache = new StoreKeyMap();
|
|
2755
|
-
getResponseCacheKeys$
|
|
2755
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
2756
2756
|
return cache;
|
|
2757
2757
|
});
|
|
2758
2758
|
}, (response) => {
|
|
@@ -2760,7 +2760,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
2760
2760
|
});
|
|
2761
2761
|
}
|
|
2762
2762
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
2763
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
2763
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
2764
2764
|
}
|
|
2765
2765
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
2766
2766
|
const { luvio, config } = context;
|
|
@@ -2771,12 +2771,12 @@ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
|
2771
2771
|
};
|
|
2772
2772
|
const cacheSnapshot = storeLookup(selector, {
|
|
2773
2773
|
config,
|
|
2774
|
-
resolve: () => buildNetworkSnapshot$
|
|
2774
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
2775
2775
|
});
|
|
2776
2776
|
return cacheSnapshot;
|
|
2777
2777
|
}
|
|
2778
2778
|
const getAppAssetsAdapterFactory = (luvio) => function AppFramework__getAppAssets(untrustedConfig, requestContext) {
|
|
2779
|
-
const config = validateAdapterConfig$
|
|
2779
|
+
const config = validateAdapterConfig$5(untrustedConfig, getAppAssets_ConfigPropertyNames);
|
|
2780
2780
|
// Invalid or incomplete config
|
|
2781
2781
|
if (config === null) {
|
|
2782
2782
|
return null;
|
|
@@ -2787,7 +2787,7 @@ const getAppAssetsAdapterFactory = (luvio) => function AppFramework__getAppAsset
|
|
|
2787
2787
|
|
|
2788
2788
|
const TTL$3 = 5000;
|
|
2789
2789
|
const VERSION$3 = "4b0d1bee319e31459f529b802621d6b8";
|
|
2790
|
-
function validate$
|
|
2790
|
+
function validate$9(obj, path = 'InstalledAssetCollectionRepresentation') {
|
|
2791
2791
|
const v_error = (() => {
|
|
2792
2792
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2793
2793
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2827,7 +2827,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
2827
2827
|
}
|
|
2828
2828
|
return input;
|
|
2829
2829
|
}
|
|
2830
|
-
const select$
|
|
2830
|
+
const select$8 = function InstalledAssetCollectionRepresentationSelect() {
|
|
2831
2831
|
return {
|
|
2832
2832
|
kind: 'Fragment',
|
|
2833
2833
|
version: VERSION$3,
|
|
@@ -2837,7 +2837,7 @@ const select$7 = function InstalledAssetCollectionRepresentationSelect() {
|
|
|
2837
2837
|
name: 'assets',
|
|
2838
2838
|
kind: 'Link',
|
|
2839
2839
|
plural: true,
|
|
2840
|
-
fragment: select$
|
|
2840
|
+
fragment: select$b()
|
|
2841
2841
|
}
|
|
2842
2842
|
]
|
|
2843
2843
|
};
|
|
@@ -2857,7 +2857,7 @@ function equals$3(existing, incoming) {
|
|
|
2857
2857
|
}
|
|
2858
2858
|
const ingest$3 = function InstalledAssetCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2859
2859
|
if (process.env.NODE_ENV !== 'production') {
|
|
2860
|
-
const validateError = validate$
|
|
2860
|
+
const validateError = validate$9(input);
|
|
2861
2861
|
if (validateError !== null) {
|
|
2862
2862
|
throw validateError;
|
|
2863
2863
|
}
|
|
@@ -2881,22 +2881,22 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2881
2881
|
}
|
|
2882
2882
|
}
|
|
2883
2883
|
|
|
2884
|
-
function select$
|
|
2885
|
-
return select$
|
|
2884
|
+
function select$7(luvio, params) {
|
|
2885
|
+
return select$8();
|
|
2886
2886
|
}
|
|
2887
2887
|
function keyBuilder$9(luvio, params) {
|
|
2888
2888
|
return keyPrefix + '::InstalledAssetCollectionRepresentation:(' + 'assetIdOrName:' + params.queryParams.assetIdOrName + ',' + 'assetType:' + params.queryParams.assetType + ')';
|
|
2889
2889
|
}
|
|
2890
|
-
function getResponseCacheKeys$
|
|
2890
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
2891
2891
|
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
2892
2892
|
}
|
|
2893
|
-
function ingestSuccess$
|
|
2893
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
2894
2894
|
const { body } = response;
|
|
2895
2895
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
2896
2896
|
luvio.storeIngest(key, ingest$3, body);
|
|
2897
2897
|
const snapshot = luvio.storeLookup({
|
|
2898
2898
|
recordId: key,
|
|
2899
|
-
node: select$
|
|
2899
|
+
node: select$7(),
|
|
2900
2900
|
variables: {},
|
|
2901
2901
|
}, snapshotRefresh);
|
|
2902
2902
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2919,7 +2919,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
2919
2919
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2920
2920
|
return errorSnapshot;
|
|
2921
2921
|
}
|
|
2922
|
-
function createResourceRequest$
|
|
2922
|
+
function createResourceRequest$4(config) {
|
|
2923
2923
|
const headers = {};
|
|
2924
2924
|
return {
|
|
2925
2925
|
baseUri: '/services/data/v63.0',
|
|
@@ -2933,61 +2933,61 @@ function createResourceRequest$3(config) {
|
|
|
2933
2933
|
};
|
|
2934
2934
|
}
|
|
2935
2935
|
|
|
2936
|
-
const adapterName$
|
|
2936
|
+
const adapterName$4 = 'getInstalledAssets';
|
|
2937
2937
|
const getInstalledAssets_ConfigPropertyMetadata = [
|
|
2938
2938
|
generateParamConfigMetadata('assetIdOrName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2939
2939
|
generateParamConfigMetadata('assetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2940
2940
|
];
|
|
2941
|
-
const getInstalledAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2942
|
-
const createResourceParams$
|
|
2941
|
+
const getInstalledAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getInstalledAssets_ConfigPropertyMetadata);
|
|
2942
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$c(getInstalledAssets_ConfigPropertyMetadata);
|
|
2943
2943
|
function keyBuilder$8(luvio, config) {
|
|
2944
|
-
const resourceParams = createResourceParams$
|
|
2944
|
+
const resourceParams = createResourceParams$4(config);
|
|
2945
2945
|
return keyBuilder$9(luvio, resourceParams);
|
|
2946
2946
|
}
|
|
2947
|
-
function typeCheckConfig$
|
|
2947
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
2948
2948
|
const config = {};
|
|
2949
|
-
typeCheckConfig$
|
|
2949
|
+
typeCheckConfig$c(untrustedConfig, config, getInstalledAssets_ConfigPropertyMetadata);
|
|
2950
2950
|
return config;
|
|
2951
2951
|
}
|
|
2952
|
-
function validateAdapterConfig$
|
|
2952
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
2953
2953
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2954
2954
|
return null;
|
|
2955
2955
|
}
|
|
2956
2956
|
if (process.env.NODE_ENV !== 'production') {
|
|
2957
2957
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2958
2958
|
}
|
|
2959
|
-
const config = typeCheckConfig$
|
|
2959
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
2960
2960
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2961
2961
|
return null;
|
|
2962
2962
|
}
|
|
2963
2963
|
return config;
|
|
2964
2964
|
}
|
|
2965
2965
|
function adapterFragment$3(luvio, config) {
|
|
2966
|
-
createResourceParams$
|
|
2967
|
-
return select$
|
|
2966
|
+
createResourceParams$4(config);
|
|
2967
|
+
return select$7();
|
|
2968
2968
|
}
|
|
2969
2969
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
2970
|
-
const snapshot = ingestSuccess$
|
|
2970
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
2971
2971
|
config,
|
|
2972
|
-
resolve: () => buildNetworkSnapshot$
|
|
2972
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
2973
2973
|
});
|
|
2974
2974
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2975
2975
|
}
|
|
2976
2976
|
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
2977
2977
|
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
2978
2978
|
config,
|
|
2979
|
-
resolve: () => buildNetworkSnapshot$
|
|
2979
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
2980
2980
|
});
|
|
2981
2981
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2982
2982
|
}
|
|
2983
|
-
function buildNetworkSnapshot$
|
|
2984
|
-
const resourceParams = createResourceParams$
|
|
2985
|
-
const request = createResourceRequest$
|
|
2983
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
2984
|
+
const resourceParams = createResourceParams$4(config);
|
|
2985
|
+
const request = createResourceRequest$4(resourceParams);
|
|
2986
2986
|
return luvio.dispatchResourceRequest(request, options)
|
|
2987
2987
|
.then((response) => {
|
|
2988
2988
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
2989
2989
|
const cache = new StoreKeyMap();
|
|
2990
|
-
getResponseCacheKeys$
|
|
2990
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
2991
2991
|
return cache;
|
|
2992
2992
|
});
|
|
2993
2993
|
}, (response) => {
|
|
@@ -2995,7 +2995,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
2995
2995
|
});
|
|
2996
2996
|
}
|
|
2997
2997
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
2998
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
2998
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
2999
2999
|
}
|
|
3000
3000
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
3001
3001
|
const { luvio, config } = context;
|
|
@@ -3006,12 +3006,12 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
|
3006
3006
|
};
|
|
3007
3007
|
const cacheSnapshot = storeLookup(selector, {
|
|
3008
3008
|
config,
|
|
3009
|
-
resolve: () => buildNetworkSnapshot$
|
|
3009
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
3010
3010
|
});
|
|
3011
3011
|
return cacheSnapshot;
|
|
3012
3012
|
}
|
|
3013
3013
|
const getInstalledAssetsAdapterFactory = (luvio) => function AppFramework__getInstalledAssets(untrustedConfig, requestContext) {
|
|
3014
|
-
const config = validateAdapterConfig$
|
|
3014
|
+
const config = validateAdapterConfig$4(untrustedConfig, getInstalledAssets_ConfigPropertyNames);
|
|
3015
3015
|
// Invalid or incomplete config
|
|
3016
3016
|
if (config === null) {
|
|
3017
3017
|
return null;
|
|
@@ -3021,8 +3021,8 @@ const getInstalledAssetsAdapterFactory = (luvio) => function AppFramework__getIn
|
|
|
3021
3021
|
};
|
|
3022
3022
|
|
|
3023
3023
|
const TTL$2 = 5000;
|
|
3024
|
-
const VERSION$2 = "
|
|
3025
|
-
function validate$
|
|
3024
|
+
const VERSION$2 = "7b301696f68bda5cea09d0c20ea77f58";
|
|
3025
|
+
function validate$8(obj, path = 'TemplateRepresentation') {
|
|
3026
3026
|
const v_error = (() => {
|
|
3027
3027
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3028
3028
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3032,6 +3032,11 @@ function validate$2(obj, path = 'TemplateRepresentation') {
|
|
|
3032
3032
|
if (typeof obj_configurationUrl !== 'string') {
|
|
3033
3033
|
return new TypeError('Expected "string" but received "' + typeof obj_configurationUrl + '" (at "' + path_configurationUrl + '")');
|
|
3034
3034
|
}
|
|
3035
|
+
const obj_createdDate = obj.createdDate;
|
|
3036
|
+
const path_createdDate = path + '.createdDate';
|
|
3037
|
+
if (typeof obj_createdDate !== 'string') {
|
|
3038
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
3039
|
+
}
|
|
3035
3040
|
const obj_description = obj.description;
|
|
3036
3041
|
const path_description = path + '.description';
|
|
3037
3042
|
let obj_description_union0 = null;
|
|
@@ -3068,11 +3073,30 @@ function validate$2(obj, path = 'TemplateRepresentation') {
|
|
|
3068
3073
|
if (typeof obj_label !== 'string') {
|
|
3069
3074
|
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
3070
3075
|
}
|
|
3076
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
3077
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
3078
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
3079
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
3080
|
+
}
|
|
3071
3081
|
const obj_name = obj.name;
|
|
3072
3082
|
const path_name = path + '.name';
|
|
3073
3083
|
if (typeof obj_name !== 'string') {
|
|
3074
3084
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
3075
3085
|
}
|
|
3086
|
+
const obj_tags = obj.tags;
|
|
3087
|
+
const path_tags = path + '.tags';
|
|
3088
|
+
if (typeof obj_tags !== 'object' || ArrayIsArray(obj_tags) || obj_tags === null) {
|
|
3089
|
+
return new TypeError('Expected "object" but received "' + typeof obj_tags + '" (at "' + path_tags + '")');
|
|
3090
|
+
}
|
|
3091
|
+
const obj_tags_keys = ObjectKeys(obj_tags);
|
|
3092
|
+
for (let i = 0; i < obj_tags_keys.length; i++) {
|
|
3093
|
+
const key = obj_tags_keys[i];
|
|
3094
|
+
const obj_tags_prop = obj_tags[key];
|
|
3095
|
+
const path_tags_prop = path_tags + '["' + key + '"]';
|
|
3096
|
+
if (obj_tags_prop === undefined) {
|
|
3097
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_tags_prop + '" (at "' + path_tags_prop + '")');
|
|
3098
|
+
}
|
|
3099
|
+
}
|
|
3076
3100
|
const obj_templateType = obj.templateType;
|
|
3077
3101
|
const path_templateType = path + '.templateType';
|
|
3078
3102
|
if (typeof obj_templateType !== 'string') {
|
|
@@ -3099,7 +3123,7 @@ function keyBuilderFromType$1(luvio, object) {
|
|
|
3099
3123
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
3100
3124
|
return input;
|
|
3101
3125
|
}
|
|
3102
|
-
const select$
|
|
3126
|
+
const select$6 = function TemplateRepresentationSelect() {
|
|
3103
3127
|
return {
|
|
3104
3128
|
kind: 'Fragment',
|
|
3105
3129
|
version: VERSION$2,
|
|
@@ -3109,6 +3133,10 @@ const select$5 = function TemplateRepresentationSelect() {
|
|
|
3109
3133
|
name: 'configurationUrl',
|
|
3110
3134
|
kind: 'Scalar'
|
|
3111
3135
|
},
|
|
3136
|
+
{
|
|
3137
|
+
name: 'createdDate',
|
|
3138
|
+
kind: 'Scalar'
|
|
3139
|
+
},
|
|
3112
3140
|
{
|
|
3113
3141
|
name: 'description',
|
|
3114
3142
|
kind: 'Scalar'
|
|
@@ -3121,10 +3149,19 @@ const select$5 = function TemplateRepresentationSelect() {
|
|
|
3121
3149
|
name: 'label',
|
|
3122
3150
|
kind: 'Scalar'
|
|
3123
3151
|
},
|
|
3152
|
+
{
|
|
3153
|
+
name: 'lastModifiedDate',
|
|
3154
|
+
kind: 'Scalar'
|
|
3155
|
+
},
|
|
3124
3156
|
{
|
|
3125
3157
|
name: 'name',
|
|
3126
3158
|
kind: 'Scalar'
|
|
3127
3159
|
},
|
|
3160
|
+
{
|
|
3161
|
+
name: 'tags',
|
|
3162
|
+
kind: 'Object',
|
|
3163
|
+
// any
|
|
3164
|
+
},
|
|
3128
3165
|
{
|
|
3129
3166
|
name: 'templateType',
|
|
3130
3167
|
kind: 'Scalar'
|
|
@@ -3142,6 +3179,11 @@ function equals$2(existing, incoming) {
|
|
|
3142
3179
|
if (!(existing_configurationUrl === incoming_configurationUrl)) {
|
|
3143
3180
|
return false;
|
|
3144
3181
|
}
|
|
3182
|
+
const existing_createdDate = existing.createdDate;
|
|
3183
|
+
const incoming_createdDate = incoming.createdDate;
|
|
3184
|
+
if (!(existing_createdDate === incoming_createdDate)) {
|
|
3185
|
+
return false;
|
|
3186
|
+
}
|
|
3145
3187
|
const existing_id = existing.id;
|
|
3146
3188
|
const incoming_id = incoming.id;
|
|
3147
3189
|
if (!(existing_id === incoming_id)) {
|
|
@@ -3152,6 +3194,11 @@ function equals$2(existing, incoming) {
|
|
|
3152
3194
|
if (!(existing_label === incoming_label)) {
|
|
3153
3195
|
return false;
|
|
3154
3196
|
}
|
|
3197
|
+
const existing_lastModifiedDate = existing.lastModifiedDate;
|
|
3198
|
+
const incoming_lastModifiedDate = incoming.lastModifiedDate;
|
|
3199
|
+
if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
|
|
3200
|
+
return false;
|
|
3201
|
+
}
|
|
3155
3202
|
const existing_name = existing.name;
|
|
3156
3203
|
const incoming_name = incoming.name;
|
|
3157
3204
|
if (!(existing_name === incoming_name)) {
|
|
@@ -3172,11 +3219,21 @@ function equals$2(existing, incoming) {
|
|
|
3172
3219
|
if (!(existing_description === incoming_description)) {
|
|
3173
3220
|
return false;
|
|
3174
3221
|
}
|
|
3222
|
+
const existing_tags = existing.tags;
|
|
3223
|
+
const incoming_tags = incoming.tags;
|
|
3224
|
+
const equals_tags_props = equalsObject(existing_tags, incoming_tags, (existing_tags_prop, incoming_tags_prop) => {
|
|
3225
|
+
if (JSONStringify(incoming_tags_prop) !== JSONStringify(existing_tags_prop)) {
|
|
3226
|
+
return false;
|
|
3227
|
+
}
|
|
3228
|
+
});
|
|
3229
|
+
if (equals_tags_props === false) {
|
|
3230
|
+
return false;
|
|
3231
|
+
}
|
|
3175
3232
|
return true;
|
|
3176
3233
|
}
|
|
3177
3234
|
const ingest$2 = function TemplateRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3178
3235
|
if (process.env.NODE_ENV !== 'production') {
|
|
3179
|
-
const validateError = validate$
|
|
3236
|
+
const validateError = validate$8(input);
|
|
3180
3237
|
if (validateError !== null) {
|
|
3181
3238
|
throw validateError;
|
|
3182
3239
|
}
|
|
@@ -3198,7 +3255,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3198
3255
|
|
|
3199
3256
|
const TTL$1 = 5000;
|
|
3200
3257
|
const VERSION$1 = "4d3fc84707ae344f06fb99bd22e68f46";
|
|
3201
|
-
function validate$
|
|
3258
|
+
function validate$7(obj, path = 'TemplateCollectionRepresentation') {
|
|
3202
3259
|
const v_error = (() => {
|
|
3203
3260
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3204
3261
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3238,7 +3295,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
3238
3295
|
}
|
|
3239
3296
|
return input;
|
|
3240
3297
|
}
|
|
3241
|
-
const select$
|
|
3298
|
+
const select$5 = function TemplateCollectionRepresentationSelect() {
|
|
3242
3299
|
return {
|
|
3243
3300
|
kind: 'Fragment',
|
|
3244
3301
|
version: VERSION$1,
|
|
@@ -3248,7 +3305,7 @@ const select$4 = function TemplateCollectionRepresentationSelect() {
|
|
|
3248
3305
|
name: 'templates',
|
|
3249
3306
|
kind: 'Link',
|
|
3250
3307
|
plural: true,
|
|
3251
|
-
fragment: select$
|
|
3308
|
+
fragment: select$6()
|
|
3252
3309
|
}
|
|
3253
3310
|
]
|
|
3254
3311
|
};
|
|
@@ -3268,7 +3325,7 @@ function equals$1(existing, incoming) {
|
|
|
3268
3325
|
}
|
|
3269
3326
|
const ingest$1 = function TemplateCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3270
3327
|
if (process.env.NODE_ENV !== 'production') {
|
|
3271
|
-
const validateError = validate$
|
|
3328
|
+
const validateError = validate$7(input);
|
|
3272
3329
|
if (validateError !== null) {
|
|
3273
3330
|
throw validateError;
|
|
3274
3331
|
}
|
|
@@ -3292,22 +3349,22 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3292
3349
|
}
|
|
3293
3350
|
}
|
|
3294
3351
|
|
|
3295
|
-
function select$
|
|
3296
|
-
return select$
|
|
3352
|
+
function select$4(luvio, params) {
|
|
3353
|
+
return select$5();
|
|
3297
3354
|
}
|
|
3298
3355
|
function keyBuilder$6(luvio, params) {
|
|
3299
3356
|
return keyPrefix + '::TemplateCollectionRepresentation:(' + ')';
|
|
3300
3357
|
}
|
|
3301
|
-
function getResponseCacheKeys$
|
|
3358
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
3302
3359
|
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$6());
|
|
3303
3360
|
}
|
|
3304
|
-
function ingestSuccess$
|
|
3361
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
3305
3362
|
const { body } = response;
|
|
3306
3363
|
const key = keyBuilder$6();
|
|
3307
3364
|
luvio.storeIngest(key, ingest$1, body);
|
|
3308
3365
|
const snapshot = luvio.storeLookup({
|
|
3309
3366
|
recordId: key,
|
|
3310
|
-
node: select$
|
|
3367
|
+
node: select$4(),
|
|
3311
3368
|
variables: {},
|
|
3312
3369
|
}, snapshotRefresh);
|
|
3313
3370
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3330,7 +3387,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
3330
3387
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3331
3388
|
return errorSnapshot;
|
|
3332
3389
|
}
|
|
3333
|
-
function createResourceRequest$
|
|
3390
|
+
function createResourceRequest$3(config) {
|
|
3334
3391
|
const headers = {};
|
|
3335
3392
|
return {
|
|
3336
3393
|
baseUri: '/services/data/v63.0',
|
|
@@ -3344,57 +3401,57 @@ function createResourceRequest$2(config) {
|
|
|
3344
3401
|
};
|
|
3345
3402
|
}
|
|
3346
3403
|
|
|
3347
|
-
const adapterName$
|
|
3404
|
+
const adapterName$3 = 'getTemplates';
|
|
3348
3405
|
const getTemplates_ConfigPropertyMetadata = [];
|
|
3349
|
-
const getTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3350
|
-
const createResourceParams$
|
|
3406
|
+
const getTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getTemplates_ConfigPropertyMetadata);
|
|
3407
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$c(getTemplates_ConfigPropertyMetadata);
|
|
3351
3408
|
function keyBuilder$5(luvio, config) {
|
|
3352
|
-
createResourceParams$
|
|
3409
|
+
createResourceParams$3(config);
|
|
3353
3410
|
return keyBuilder$6();
|
|
3354
3411
|
}
|
|
3355
|
-
function typeCheckConfig$
|
|
3412
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
3356
3413
|
const config = {};
|
|
3357
3414
|
return config;
|
|
3358
3415
|
}
|
|
3359
|
-
function validateAdapterConfig$
|
|
3416
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
3360
3417
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3361
3418
|
return null;
|
|
3362
3419
|
}
|
|
3363
3420
|
if (process.env.NODE_ENV !== 'production') {
|
|
3364
3421
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3365
3422
|
}
|
|
3366
|
-
const config = typeCheckConfig$
|
|
3423
|
+
const config = typeCheckConfig$3();
|
|
3367
3424
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3368
3425
|
return null;
|
|
3369
3426
|
}
|
|
3370
3427
|
return config;
|
|
3371
3428
|
}
|
|
3372
3429
|
function adapterFragment$2(luvio, config) {
|
|
3373
|
-
createResourceParams$
|
|
3374
|
-
return select$
|
|
3430
|
+
createResourceParams$3(config);
|
|
3431
|
+
return select$4();
|
|
3375
3432
|
}
|
|
3376
3433
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
3377
|
-
const snapshot = ingestSuccess$
|
|
3434
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
3378
3435
|
config,
|
|
3379
|
-
resolve: () => buildNetworkSnapshot$
|
|
3436
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
3380
3437
|
});
|
|
3381
3438
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3382
3439
|
}
|
|
3383
3440
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
3384
3441
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
3385
3442
|
config,
|
|
3386
|
-
resolve: () => buildNetworkSnapshot$
|
|
3443
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
3387
3444
|
});
|
|
3388
3445
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3389
3446
|
}
|
|
3390
|
-
function buildNetworkSnapshot$
|
|
3391
|
-
const resourceParams = createResourceParams$
|
|
3392
|
-
const request = createResourceRequest$
|
|
3447
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
3448
|
+
const resourceParams = createResourceParams$3(config);
|
|
3449
|
+
const request = createResourceRequest$3();
|
|
3393
3450
|
return luvio.dispatchResourceRequest(request, options)
|
|
3394
3451
|
.then((response) => {
|
|
3395
3452
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
3396
3453
|
const cache = new StoreKeyMap();
|
|
3397
|
-
getResponseCacheKeys$
|
|
3454
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
3398
3455
|
return cache;
|
|
3399
3456
|
});
|
|
3400
3457
|
}, (response) => {
|
|
@@ -3402,7 +3459,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
3402
3459
|
});
|
|
3403
3460
|
}
|
|
3404
3461
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
3405
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
3462
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
3406
3463
|
}
|
|
3407
3464
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
3408
3465
|
const { luvio, config } = context;
|
|
@@ -3413,12 +3470,12 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
|
3413
3470
|
};
|
|
3414
3471
|
const cacheSnapshot = storeLookup(selector, {
|
|
3415
3472
|
config,
|
|
3416
|
-
resolve: () => buildNetworkSnapshot$
|
|
3473
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
3417
3474
|
});
|
|
3418
3475
|
return cacheSnapshot;
|
|
3419
3476
|
}
|
|
3420
3477
|
const getTemplatesAdapterFactory = (luvio) => function AppFramework__getTemplates(untrustedConfig, requestContext) {
|
|
3421
|
-
const config = validateAdapterConfig$
|
|
3478
|
+
const config = validateAdapterConfig$3(untrustedConfig, getTemplates_ConfigPropertyNames);
|
|
3422
3479
|
// Invalid or incomplete config
|
|
3423
3480
|
if (config === null) {
|
|
3424
3481
|
return null;
|
|
@@ -3427,8 +3484,325 @@ const getTemplatesAdapterFactory = (luvio) => function AppFramework__getTemplate
|
|
|
3427
3484
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
3428
3485
|
};
|
|
3429
3486
|
|
|
3487
|
+
function validate$6(obj, path = 'ChainDefinitionInputRepresentation') {
|
|
3488
|
+
const v_error = (() => {
|
|
3489
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3490
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3491
|
+
}
|
|
3492
|
+
const obj_file = obj.file;
|
|
3493
|
+
const path_file = path + '.file';
|
|
3494
|
+
if (typeof obj_file !== 'string') {
|
|
3495
|
+
return new TypeError('Expected "string" but received "' + typeof obj_file + '" (at "' + path_file + '")');
|
|
3496
|
+
}
|
|
3497
|
+
if (obj.name !== undefined) {
|
|
3498
|
+
const obj_name = obj.name;
|
|
3499
|
+
const path_name = path + '.name';
|
|
3500
|
+
if (typeof obj_name !== 'string') {
|
|
3501
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
3502
|
+
}
|
|
3503
|
+
}
|
|
3504
|
+
const obj_type = obj.type;
|
|
3505
|
+
const path_type = path + '.type';
|
|
3506
|
+
if (typeof obj_type !== 'string') {
|
|
3507
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3508
|
+
}
|
|
3509
|
+
})();
|
|
3510
|
+
return v_error === undefined ? null : v_error;
|
|
3511
|
+
}
|
|
3512
|
+
|
|
3513
|
+
function validate$5(obj, path = 'NamespacedReferenceInputRepresentation') {
|
|
3514
|
+
const v_error = (() => {
|
|
3515
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3516
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3517
|
+
}
|
|
3518
|
+
const obj_name = obj.name;
|
|
3519
|
+
const path_name = path + '.name';
|
|
3520
|
+
if (typeof obj_name !== 'string') {
|
|
3521
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
3522
|
+
}
|
|
3523
|
+
const obj_namespace = obj.namespace;
|
|
3524
|
+
const path_namespace = path + '.namespace';
|
|
3525
|
+
if (typeof obj_namespace !== 'string') {
|
|
3526
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
3527
|
+
}
|
|
3528
|
+
})();
|
|
3529
|
+
return v_error === undefined ? null : v_error;
|
|
3530
|
+
}
|
|
3531
|
+
|
|
3532
|
+
function validate$4(obj, path = 'TemplatePreviewInputRepresentation') {
|
|
3533
|
+
const v_error = (() => {
|
|
3534
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3535
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3536
|
+
}
|
|
3537
|
+
if (obj.description !== undefined) {
|
|
3538
|
+
const obj_description = obj.description;
|
|
3539
|
+
const path_description = path + '.description';
|
|
3540
|
+
if (typeof obj_description !== 'string') {
|
|
3541
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
3542
|
+
}
|
|
3543
|
+
}
|
|
3544
|
+
const obj_label = obj.label;
|
|
3545
|
+
const path_label = path + '.label';
|
|
3546
|
+
if (typeof obj_label !== 'string') {
|
|
3547
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
3548
|
+
}
|
|
3549
|
+
const obj_name = obj.name;
|
|
3550
|
+
const path_name = path + '.name';
|
|
3551
|
+
if (typeof obj_name !== 'string') {
|
|
3552
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
3553
|
+
}
|
|
3554
|
+
if (obj.namespace !== undefined) {
|
|
3555
|
+
const obj_namespace = obj.namespace;
|
|
3556
|
+
const path_namespace = path + '.namespace';
|
|
3557
|
+
if (typeof obj_namespace !== 'string') {
|
|
3558
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
3559
|
+
}
|
|
3560
|
+
}
|
|
3561
|
+
})();
|
|
3562
|
+
return v_error === undefined ? null : v_error;
|
|
3563
|
+
}
|
|
3564
|
+
|
|
3565
|
+
function validate$3(obj, path = 'TemplateIconsInputRepresentation') {
|
|
3566
|
+
const v_error = (() => {
|
|
3567
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3568
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3569
|
+
}
|
|
3570
|
+
if (obj.appBadge !== undefined) {
|
|
3571
|
+
const obj_appBadge = obj.appBadge;
|
|
3572
|
+
const path_appBadge = path + '.appBadge';
|
|
3573
|
+
const referencepath_appBadgeValidationError = validate$5(obj_appBadge, path_appBadge);
|
|
3574
|
+
if (referencepath_appBadgeValidationError !== null) {
|
|
3575
|
+
let message = 'Object doesn\'t match NamespacedReferenceInputRepresentation (at "' + path_appBadge + '")\n';
|
|
3576
|
+
message += referencepath_appBadgeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3577
|
+
return new TypeError(message);
|
|
3578
|
+
}
|
|
3579
|
+
}
|
|
3580
|
+
if (obj.templateBadge !== undefined) {
|
|
3581
|
+
const obj_templateBadge = obj.templateBadge;
|
|
3582
|
+
const path_templateBadge = path + '.templateBadge';
|
|
3583
|
+
const referencepath_templateBadgeValidationError = validate$5(obj_templateBadge, path_templateBadge);
|
|
3584
|
+
if (referencepath_templateBadgeValidationError !== null) {
|
|
3585
|
+
let message = 'Object doesn\'t match NamespacedReferenceInputRepresentation (at "' + path_templateBadge + '")\n';
|
|
3586
|
+
message += referencepath_templateBadgeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3587
|
+
return new TypeError(message);
|
|
3588
|
+
}
|
|
3589
|
+
}
|
|
3590
|
+
if (obj.templatePreviews !== undefined) {
|
|
3591
|
+
const obj_templatePreviews = obj.templatePreviews;
|
|
3592
|
+
const path_templatePreviews = path + '.templatePreviews';
|
|
3593
|
+
if (!ArrayIsArray(obj_templatePreviews)) {
|
|
3594
|
+
return new TypeError('Expected "array" but received "' + typeof obj_templatePreviews + '" (at "' + path_templatePreviews + '")');
|
|
3595
|
+
}
|
|
3596
|
+
for (let i = 0; i < obj_templatePreviews.length; i++) {
|
|
3597
|
+
const obj_templatePreviews_item = obj_templatePreviews[i];
|
|
3598
|
+
const path_templatePreviews_item = path_templatePreviews + '[' + i + ']';
|
|
3599
|
+
const referencepath_templatePreviews_itemValidationError = validate$4(obj_templatePreviews_item, path_templatePreviews_item);
|
|
3600
|
+
if (referencepath_templatePreviews_itemValidationError !== null) {
|
|
3601
|
+
let message = 'Object doesn\'t match TemplatePreviewInputRepresentation (at "' + path_templatePreviews_item + '")\n';
|
|
3602
|
+
message += referencepath_templatePreviews_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3603
|
+
return new TypeError(message);
|
|
3604
|
+
}
|
|
3605
|
+
}
|
|
3606
|
+
}
|
|
3607
|
+
})();
|
|
3608
|
+
return v_error === undefined ? null : v_error;
|
|
3609
|
+
}
|
|
3610
|
+
|
|
3611
|
+
function validate$2(obj, path = 'ReleaseInfoInputRepresentation') {
|
|
3612
|
+
const v_error = (() => {
|
|
3613
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3614
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3615
|
+
}
|
|
3616
|
+
if (obj.notesFile !== undefined) {
|
|
3617
|
+
const obj_notesFile = obj.notesFile;
|
|
3618
|
+
const path_notesFile = path + '.notesFile';
|
|
3619
|
+
if (typeof obj_notesFile !== 'string') {
|
|
3620
|
+
return new TypeError('Expected "string" but received "' + typeof obj_notesFile + '" (at "' + path_notesFile + '")');
|
|
3621
|
+
}
|
|
3622
|
+
}
|
|
3623
|
+
const obj_templateVersion = obj.templateVersion;
|
|
3624
|
+
const path_templateVersion = path + '.templateVersion';
|
|
3625
|
+
if (typeof obj_templateVersion !== 'string') {
|
|
3626
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateVersion + '" (at "' + path_templateVersion + '")');
|
|
3627
|
+
}
|
|
3628
|
+
})();
|
|
3629
|
+
return v_error === undefined ? null : v_error;
|
|
3630
|
+
}
|
|
3631
|
+
|
|
3632
|
+
function validate$1(obj, path = 'RuleInfoInputRepresentation') {
|
|
3633
|
+
const v_error = (() => {
|
|
3634
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3635
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3636
|
+
}
|
|
3637
|
+
const obj_file = obj.file;
|
|
3638
|
+
const path_file = path + '.file';
|
|
3639
|
+
if (typeof obj_file !== 'string') {
|
|
3640
|
+
return new TypeError('Expected "string" but received "' + typeof obj_file + '" (at "' + path_file + '")');
|
|
3641
|
+
}
|
|
3642
|
+
const obj_type = obj.type;
|
|
3643
|
+
const path_type = path + '.type';
|
|
3644
|
+
if (typeof obj_type !== 'string') {
|
|
3645
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3646
|
+
}
|
|
3647
|
+
})();
|
|
3648
|
+
return v_error === undefined ? null : v_error;
|
|
3649
|
+
}
|
|
3650
|
+
|
|
3651
|
+
function select$3(luvio, params) {
|
|
3652
|
+
return select$6();
|
|
3653
|
+
}
|
|
3654
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
3655
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response);
|
|
3656
|
+
}
|
|
3657
|
+
function ingestSuccess$2(luvio, resourceParams, response) {
|
|
3658
|
+
const { body } = response;
|
|
3659
|
+
const key = keyBuilderFromType$1(luvio, body);
|
|
3660
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
3661
|
+
const snapshot = luvio.storeLookup({
|
|
3662
|
+
recordId: key,
|
|
3663
|
+
node: select$3(),
|
|
3664
|
+
variables: {},
|
|
3665
|
+
});
|
|
3666
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3667
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3668
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3669
|
+
}
|
|
3670
|
+
}
|
|
3671
|
+
deepFreeze(snapshot.data);
|
|
3672
|
+
return snapshot;
|
|
3673
|
+
}
|
|
3674
|
+
function createResourceRequest$2(config) {
|
|
3675
|
+
const headers = {};
|
|
3676
|
+
return {
|
|
3677
|
+
baseUri: '/services/data/v63.0',
|
|
3678
|
+
basePath: '/app-framework/templates',
|
|
3679
|
+
method: 'post',
|
|
3680
|
+
body: config.body,
|
|
3681
|
+
urlParams: {},
|
|
3682
|
+
queryParams: {},
|
|
3683
|
+
headers,
|
|
3684
|
+
priority: 'normal',
|
|
3685
|
+
};
|
|
3686
|
+
}
|
|
3687
|
+
|
|
3688
|
+
const adapterName$2 = 'createTemplate';
|
|
3689
|
+
const createTemplate_ConfigPropertyMetadata = [
|
|
3690
|
+
generateParamConfigMetadata('assetVersion', false, 2 /* Body */, 2 /* Number */),
|
|
3691
|
+
generateParamConfigMetadata('chainDefinitions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3692
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
3693
|
+
generateParamConfigMetadata('icons', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3694
|
+
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
3695
|
+
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
3696
|
+
generateParamConfigMetadata('layoutDefinition', false, 2 /* Body */, 0 /* String */),
|
|
3697
|
+
generateParamConfigMetadata('maxAppCount', false, 2 /* Body */, 3 /* Integer */),
|
|
3698
|
+
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
3699
|
+
generateParamConfigMetadata('namespace', false, 2 /* Body */, 0 /* String */),
|
|
3700
|
+
generateParamConfigMetadata('releaseInfo', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3701
|
+
generateParamConfigMetadata('rules', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3702
|
+
generateParamConfigMetadata('tags', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3703
|
+
generateParamConfigMetadata('templateType', true, 2 /* Body */, 0 /* String */),
|
|
3704
|
+
generateParamConfigMetadata('variableDefinition', false, 2 /* Body */, 0 /* String */),
|
|
3705
|
+
];
|
|
3706
|
+
const createTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createTemplate_ConfigPropertyMetadata);
|
|
3707
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$c(createTemplate_ConfigPropertyMetadata);
|
|
3708
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
3709
|
+
const config = {};
|
|
3710
|
+
typeCheckConfig$c(untrustedConfig, config, createTemplate_ConfigPropertyMetadata);
|
|
3711
|
+
const untrustedConfig_chainDefinitions = untrustedConfig.chainDefinitions;
|
|
3712
|
+
if (ArrayIsArray$1(untrustedConfig_chainDefinitions)) {
|
|
3713
|
+
const untrustedConfig_chainDefinitions_array = [];
|
|
3714
|
+
for (let i = 0, arrayLength = untrustedConfig_chainDefinitions.length; i < arrayLength; i++) {
|
|
3715
|
+
const untrustedConfig_chainDefinitions_item = untrustedConfig_chainDefinitions[i];
|
|
3716
|
+
const referenceChainDefinitionInputRepresentationValidationError = validate$6(untrustedConfig_chainDefinitions_item);
|
|
3717
|
+
if (referenceChainDefinitionInputRepresentationValidationError === null) {
|
|
3718
|
+
untrustedConfig_chainDefinitions_array.push(untrustedConfig_chainDefinitions_item);
|
|
3719
|
+
}
|
|
3720
|
+
}
|
|
3721
|
+
config.chainDefinitions = untrustedConfig_chainDefinitions_array;
|
|
3722
|
+
}
|
|
3723
|
+
const untrustedConfig_icons = untrustedConfig.icons;
|
|
3724
|
+
const referenceTemplateIconsInputRepresentationValidationError = validate$3(untrustedConfig_icons);
|
|
3725
|
+
if (referenceTemplateIconsInputRepresentationValidationError === null) {
|
|
3726
|
+
config.icons = untrustedConfig_icons;
|
|
3727
|
+
}
|
|
3728
|
+
const untrustedConfig_releaseInfo = untrustedConfig.releaseInfo;
|
|
3729
|
+
const referenceReleaseInfoInputRepresentationValidationError = validate$2(untrustedConfig_releaseInfo);
|
|
3730
|
+
if (referenceReleaseInfoInputRepresentationValidationError === null) {
|
|
3731
|
+
config.releaseInfo = untrustedConfig_releaseInfo;
|
|
3732
|
+
}
|
|
3733
|
+
const untrustedConfig_rules = untrustedConfig.rules;
|
|
3734
|
+
if (ArrayIsArray$1(untrustedConfig_rules)) {
|
|
3735
|
+
const untrustedConfig_rules_array = [];
|
|
3736
|
+
for (let i = 0, arrayLength = untrustedConfig_rules.length; i < arrayLength; i++) {
|
|
3737
|
+
const untrustedConfig_rules_item = untrustedConfig_rules[i];
|
|
3738
|
+
const referenceRuleInfoInputRepresentationValidationError = validate$1(untrustedConfig_rules_item);
|
|
3739
|
+
if (referenceRuleInfoInputRepresentationValidationError === null) {
|
|
3740
|
+
untrustedConfig_rules_array.push(untrustedConfig_rules_item);
|
|
3741
|
+
}
|
|
3742
|
+
}
|
|
3743
|
+
config.rules = untrustedConfig_rules_array;
|
|
3744
|
+
}
|
|
3745
|
+
const untrustedConfig_tags = untrustedConfig.tags;
|
|
3746
|
+
if (untrustedIsObject(untrustedConfig_tags)) {
|
|
3747
|
+
const untrustedConfig_tags_object = {};
|
|
3748
|
+
const untrustedConfig_tags_keys = Object.keys(untrustedConfig_tags);
|
|
3749
|
+
for (let i = 0, arrayLength = untrustedConfig_tags_keys.length; i < arrayLength; i++) {
|
|
3750
|
+
const key = untrustedConfig_tags_keys[i];
|
|
3751
|
+
const untrustedConfig_tags_prop = untrustedConfig_tags[key];
|
|
3752
|
+
if (untrustedConfig_tags_object !== undefined) {
|
|
3753
|
+
untrustedConfig_tags_object[key] = untrustedConfig_tags_prop;
|
|
3754
|
+
}
|
|
3755
|
+
}
|
|
3756
|
+
if (untrustedConfig_tags_object !== undefined && Object.keys(untrustedConfig_tags_object).length >= 0) {
|
|
3757
|
+
config.tags = untrustedConfig_tags_object;
|
|
3758
|
+
}
|
|
3759
|
+
}
|
|
3760
|
+
return config;
|
|
3761
|
+
}
|
|
3762
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
3763
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
3764
|
+
return null;
|
|
3765
|
+
}
|
|
3766
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3767
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
3768
|
+
}
|
|
3769
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
3770
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3771
|
+
return null;
|
|
3772
|
+
}
|
|
3773
|
+
return config;
|
|
3774
|
+
}
|
|
3775
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
3776
|
+
const resourceParams = createResourceParams$2(config);
|
|
3777
|
+
const request = createResourceRequest$2(resourceParams);
|
|
3778
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
3779
|
+
.then((response) => {
|
|
3780
|
+
return luvio.handleSuccessResponse(() => {
|
|
3781
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response);
|
|
3782
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3783
|
+
}, () => {
|
|
3784
|
+
const cache = new StoreKeyMap();
|
|
3785
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
3786
|
+
return cache;
|
|
3787
|
+
});
|
|
3788
|
+
}, (response) => {
|
|
3789
|
+
deepFreeze(response);
|
|
3790
|
+
throw response;
|
|
3791
|
+
});
|
|
3792
|
+
}
|
|
3793
|
+
const createTemplateAdapterFactory = (luvio) => {
|
|
3794
|
+
return function createTemplate(untrustedConfig) {
|
|
3795
|
+
const config = validateAdapterConfig$2(untrustedConfig, createTemplate_ConfigPropertyNames);
|
|
3796
|
+
// Invalid or incomplete config
|
|
3797
|
+
if (config === null) {
|
|
3798
|
+
throw new Error('Invalid config for "createTemplate"');
|
|
3799
|
+
}
|
|
3800
|
+
return buildNetworkSnapshot$2(luvio, config);
|
|
3801
|
+
};
|
|
3802
|
+
};
|
|
3803
|
+
|
|
3430
3804
|
function select$2(luvio, params) {
|
|
3431
|
-
return select$
|
|
3805
|
+
return select$6();
|
|
3432
3806
|
}
|
|
3433
3807
|
function keyBuilder$4(luvio, params) {
|
|
3434
3808
|
return keyBuilder$7(luvio, {
|
|
@@ -3486,14 +3860,14 @@ const getTemplate_ConfigPropertyMetadata = [
|
|
|
3486
3860
|
generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3487
3861
|
];
|
|
3488
3862
|
const getTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getTemplate_ConfigPropertyMetadata);
|
|
3489
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
3863
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$c(getTemplate_ConfigPropertyMetadata);
|
|
3490
3864
|
function keyBuilder$3(luvio, config) {
|
|
3491
3865
|
const resourceParams = createResourceParams$1(config);
|
|
3492
3866
|
return keyBuilder$4(luvio, resourceParams);
|
|
3493
3867
|
}
|
|
3494
3868
|
function typeCheckConfig$1(untrustedConfig) {
|
|
3495
3869
|
const config = {};
|
|
3496
|
-
typeCheckConfig$
|
|
3870
|
+
typeCheckConfig$c(untrustedConfig, config, getTemplate_ConfigPropertyMetadata);
|
|
3497
3871
|
return config;
|
|
3498
3872
|
}
|
|
3499
3873
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -3711,14 +4085,14 @@ const getTemplateConfig_ConfigPropertyMetadata = [
|
|
|
3711
4085
|
generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3712
4086
|
];
|
|
3713
4087
|
const getTemplateConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTemplateConfig_ConfigPropertyMetadata);
|
|
3714
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
4088
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$c(getTemplateConfig_ConfigPropertyMetadata);
|
|
3715
4089
|
function keyBuilder(luvio, config) {
|
|
3716
4090
|
const resourceParams = createResourceParams(config);
|
|
3717
4091
|
return keyBuilder$1(luvio, resourceParams);
|
|
3718
4092
|
}
|
|
3719
4093
|
function typeCheckConfig(untrustedConfig) {
|
|
3720
4094
|
const config = {};
|
|
3721
|
-
typeCheckConfig$
|
|
4095
|
+
typeCheckConfig$c(untrustedConfig, config, getTemplateConfig_ConfigPropertyMetadata);
|
|
3722
4096
|
return config;
|
|
3723
4097
|
}
|
|
3724
4098
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -3792,4 +4166,4 @@ const getTemplateConfigAdapterFactory = (luvio) => function AppFramework__getTem
|
|
|
3792
4166
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
3793
4167
|
};
|
|
3794
4168
|
|
|
3795
|
-
export { createAppAdapterFactory, deleteAppAdapterFactory, getAppActivitiesAdapterFactory, getAppActivityAdapterFactory, getAppAdapterFactory, getAppAssetsAdapterFactory, getAppsAdapterFactory, getInstalledAssetsAdapterFactory, getTemplateAdapterFactory, getTemplateConfigAdapterFactory, getTemplatesAdapterFactory };
|
|
4169
|
+
export { createAppAdapterFactory, createTemplateAdapterFactory, deleteAppAdapterFactory, getAppActivitiesAdapterFactory, getAppActivityAdapterFactory, getAppAdapterFactory, getAppAssetsAdapterFactory, getAppsAdapterFactory, getInstalledAssetsAdapterFactory, getTemplateAdapterFactory, getTemplateConfigAdapterFactory, getTemplatesAdapterFactory };
|