@salesforce/lds-adapters-analytics-app-framework 1.346.0 → 1.347.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 +406 -314
- package/dist/es/es2018/types/src/generated/adapters/updateBasicApp.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/adapters/updateTemplate.d.ts +1 -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/patchAppFrameworkTemplatesByTemplateIdOrApiName.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postAppFrameworkAppsUpdateBasicAppByAppIdOrApiName.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/BasicAppUpdateRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/TemplateUpdateRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +639 -544
- package/src/raml/api.raml +31 -0
- package/src/raml/luvio.raml +4 -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$b, typeCheckConfig as typeCheckConfig$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$b, typeCheckConfig as typeCheckConfig$n, StoreKeyMap, createResourceParams as createResourceParams$n } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -157,7 +157,7 @@ function validate$z(obj, path = 'UserRepresentation') {
|
|
|
157
157
|
})();
|
|
158
158
|
return v_error === undefined ? null : v_error;
|
|
159
159
|
}
|
|
160
|
-
const select$
|
|
160
|
+
const select$P = function UserRepresentationSelect() {
|
|
161
161
|
return {
|
|
162
162
|
kind: 'Fragment',
|
|
163
163
|
version: VERSION$v,
|
|
@@ -217,7 +217,7 @@ function validate$y(obj, path = 'ScheduledTimezoneRepresentation') {
|
|
|
217
217
|
})();
|
|
218
218
|
return v_error === undefined ? null : v_error;
|
|
219
219
|
}
|
|
220
|
-
const select$
|
|
220
|
+
const select$O = function ScheduledTimezoneRepresentationSelect() {
|
|
221
221
|
return {
|
|
222
222
|
kind: 'Fragment',
|
|
223
223
|
version: VERSION$u,
|
|
@@ -284,8 +284,8 @@ function validate$x(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$N = function ScheduledTimeRepresentationSelect() {
|
|
288
|
+
const { selections: ScheduledTimezoneRepresentation__selections, opaque: ScheduledTimezoneRepresentation__opaque, } = select$O();
|
|
289
289
|
return {
|
|
290
290
|
kind: 'Fragment',
|
|
291
291
|
version: VERSION$t,
|
|
@@ -327,8 +327,8 @@ function equals$q(existing, incoming) {
|
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
const VERSION$s = "91838b86aa135ce828af6242b11ae888";
|
|
330
|
-
const select$
|
|
331
|
-
const { selections: ScheduledItemRepresentationSelections } = select$
|
|
330
|
+
const select$M = function HourlyScheduledItemRepresentationSelect() {
|
|
331
|
+
const { selections: ScheduledItemRepresentationSelections } = select$J();
|
|
332
332
|
return {
|
|
333
333
|
kind: 'Fragment',
|
|
334
334
|
version: VERSION$s,
|
|
@@ -349,8 +349,8 @@ const select$L = function HourlyScheduledItemRepresentationSelect() {
|
|
|
349
349
|
};
|
|
350
350
|
|
|
351
351
|
const VERSION$r = "46260a34f0b2c2d7adc7f8c150a8d8fb";
|
|
352
|
-
const select$
|
|
353
|
-
const { selections: ScheduledItemRepresentationSelections } = select$
|
|
352
|
+
const select$L = function WeeklyScheduledItemRepresentationSelect() {
|
|
353
|
+
const { selections: ScheduledItemRepresentationSelections } = select$J();
|
|
354
354
|
return {
|
|
355
355
|
kind: 'Fragment',
|
|
356
356
|
version: VERSION$r,
|
|
@@ -367,8 +367,8 @@ const select$K = function WeeklyScheduledItemRepresentationSelect() {
|
|
|
367
367
|
};
|
|
368
368
|
|
|
369
369
|
const VERSION$q = "dcda6d015a01d9acde5fac241448cfe4";
|
|
370
|
-
const select$
|
|
371
|
-
const { selections: ScheduledItemRepresentationSelections } = select$
|
|
370
|
+
const select$K = function DailyScheduledItemRepresentationSelect() {
|
|
371
|
+
const { selections: ScheduledItemRepresentationSelections } = select$J();
|
|
372
372
|
return {
|
|
373
373
|
kind: 'Fragment',
|
|
374
374
|
version: VERSION$q,
|
|
@@ -413,9 +413,9 @@ function validate$w(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$M();
|
|
417
|
+
const weeklyScheduledItemRepresentationSelections = select$L();
|
|
418
|
+
const dailyScheduledItemRepresentationSelections = select$K();
|
|
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$J = function ScheduledItemRepresentationSelect() {
|
|
431
|
+
const { selections: ScheduledTimeRepresentation__selections, opaque: ScheduledTimeRepresentation__opaque, } = select$N();
|
|
432
432
|
return {
|
|
433
433
|
kind: 'Fragment',
|
|
434
434
|
version: VERSION$p,
|
|
@@ -533,7 +533,7 @@ function validate$v(obj, path = 'AppScheduleRepresentation') {
|
|
|
533
533
|
})();
|
|
534
534
|
return v_error === undefined ? null : v_error;
|
|
535
535
|
}
|
|
536
|
-
const select$
|
|
536
|
+
const select$I = function AppScheduleRepresentationSelect() {
|
|
537
537
|
const ScheduledItemRepresentation__unionSelections = selectChildren();
|
|
538
538
|
return {
|
|
539
539
|
kind: 'Fragment',
|
|
@@ -797,9 +797,9 @@ function keyBuilderFromType$9(luvio, object) {
|
|
|
797
797
|
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
798
798
|
return input;
|
|
799
799
|
}
|
|
800
|
-
const select$
|
|
801
|
-
const { selections: UserRepresentation__selections, opaque: UserRepresentation__opaque, } = select$
|
|
802
|
-
const { selections: AppScheduleRepresentation__selections, opaque: AppScheduleRepresentation__opaque, } = select$
|
|
800
|
+
const select$H = function AppRepresentationSelect() {
|
|
801
|
+
const { selections: UserRepresentation__selections, opaque: UserRepresentation__opaque, } = select$P();
|
|
802
|
+
const { selections: AppScheduleRepresentation__selections, opaque: AppScheduleRepresentation__opaque, } = select$I();
|
|
803
803
|
return {
|
|
804
804
|
kind: 'Fragment',
|
|
805
805
|
version: VERSION$n,
|
|
@@ -1068,7 +1068,7 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
1068
1068
|
}
|
|
1069
1069
|
return input;
|
|
1070
1070
|
}
|
|
1071
|
-
const select$
|
|
1071
|
+
const select$G = function AppCollectionRepresentationSelect() {
|
|
1072
1072
|
return {
|
|
1073
1073
|
kind: 'Fragment',
|
|
1074
1074
|
version: VERSION$m,
|
|
@@ -1078,7 +1078,7 @@ const select$F = function AppCollectionRepresentationSelect() {
|
|
|
1078
1078
|
name: 'apps',
|
|
1079
1079
|
kind: 'Link',
|
|
1080
1080
|
plural: true,
|
|
1081
|
-
fragment: select$
|
|
1081
|
+
fragment: select$H()
|
|
1082
1082
|
}
|
|
1083
1083
|
]
|
|
1084
1084
|
};
|
|
@@ -1122,22 +1122,22 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
1124
|
|
|
1125
|
-
function select$
|
|
1126
|
-
return select$
|
|
1125
|
+
function select$F(luvio, params) {
|
|
1126
|
+
return select$G();
|
|
1127
1127
|
}
|
|
1128
1128
|
function keyBuilder$x(luvio, params) {
|
|
1129
1129
|
return keyPrefix + '::AppCollectionRepresentation:(' + 'templateSourceId:' + params.queryParams.templateSourceId + ',' + 'type:' + params.queryParams.type + ')';
|
|
1130
1130
|
}
|
|
1131
|
-
function getResponseCacheKeys$
|
|
1131
|
+
function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
|
|
1132
1132
|
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$x(luvio, resourceParams));
|
|
1133
1133
|
}
|
|
1134
|
-
function ingestSuccess$
|
|
1134
|
+
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
1135
1135
|
const { body } = response;
|
|
1136
1136
|
const key = keyBuilder$x(luvio, resourceParams);
|
|
1137
1137
|
luvio.storeIngest(key, ingest$b, body);
|
|
1138
1138
|
const snapshot = luvio.storeLookup({
|
|
1139
1139
|
recordId: key,
|
|
1140
|
-
node: select$
|
|
1140
|
+
node: select$F(),
|
|
1141
1141
|
variables: {},
|
|
1142
1142
|
}, snapshotRefresh);
|
|
1143
1143
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1160,7 +1160,7 @@ function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
|
1160
1160
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1161
1161
|
return errorSnapshot;
|
|
1162
1162
|
}
|
|
1163
|
-
function createResourceRequest$
|
|
1163
|
+
function createResourceRequest$m(config) {
|
|
1164
1164
|
const headers = {};
|
|
1165
1165
|
return {
|
|
1166
1166
|
baseUri: '/services/data/v64.0',
|
|
@@ -1174,61 +1174,61 @@ function createResourceRequest$l(config) {
|
|
|
1174
1174
|
};
|
|
1175
1175
|
}
|
|
1176
1176
|
|
|
1177
|
-
const adapterName$
|
|
1177
|
+
const adapterName$m = 'getApps';
|
|
1178
1178
|
const getApps_ConfigPropertyMetadata = [
|
|
1179
1179
|
generateParamConfigMetadata('templateSourceId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1180
1180
|
generateParamConfigMetadata('type', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1181
1181
|
];
|
|
1182
|
-
const getApps_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1183
|
-
const createResourceParams$
|
|
1182
|
+
const getApps_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, getApps_ConfigPropertyMetadata);
|
|
1183
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$n(getApps_ConfigPropertyMetadata);
|
|
1184
1184
|
function keyBuilder$w(luvio, config) {
|
|
1185
|
-
const resourceParams = createResourceParams$
|
|
1185
|
+
const resourceParams = createResourceParams$m(config);
|
|
1186
1186
|
return keyBuilder$x(luvio, resourceParams);
|
|
1187
1187
|
}
|
|
1188
|
-
function typeCheckConfig$
|
|
1188
|
+
function typeCheckConfig$m(untrustedConfig) {
|
|
1189
1189
|
const config = {};
|
|
1190
|
-
typeCheckConfig$
|
|
1190
|
+
typeCheckConfig$n(untrustedConfig, config, getApps_ConfigPropertyMetadata);
|
|
1191
1191
|
return config;
|
|
1192
1192
|
}
|
|
1193
|
-
function validateAdapterConfig$
|
|
1193
|
+
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
1194
1194
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1195
1195
|
return null;
|
|
1196
1196
|
}
|
|
1197
1197
|
if (process.env.NODE_ENV !== 'production') {
|
|
1198
1198
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1199
1199
|
}
|
|
1200
|
-
const config = typeCheckConfig$
|
|
1200
|
+
const config = typeCheckConfig$m(untrustedConfig);
|
|
1201
1201
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1202
1202
|
return null;
|
|
1203
1203
|
}
|
|
1204
1204
|
return config;
|
|
1205
1205
|
}
|
|
1206
1206
|
function adapterFragment$a(luvio, config) {
|
|
1207
|
-
createResourceParams$
|
|
1208
|
-
return select$
|
|
1207
|
+
createResourceParams$m(config);
|
|
1208
|
+
return select$F();
|
|
1209
1209
|
}
|
|
1210
1210
|
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
1211
|
-
const snapshot = ingestSuccess$
|
|
1211
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
1212
1212
|
config,
|
|
1213
|
-
resolve: () => buildNetworkSnapshot$
|
|
1213
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
1214
1214
|
});
|
|
1215
1215
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1216
1216
|
}
|
|
1217
1217
|
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
1218
1218
|
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
1219
1219
|
config,
|
|
1220
|
-
resolve: () => buildNetworkSnapshot$
|
|
1220
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
1221
1221
|
});
|
|
1222
1222
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1223
1223
|
}
|
|
1224
|
-
function buildNetworkSnapshot$
|
|
1225
|
-
const resourceParams = createResourceParams$
|
|
1226
|
-
const request = createResourceRequest$
|
|
1224
|
+
function buildNetworkSnapshot$m(luvio, config, options) {
|
|
1225
|
+
const resourceParams = createResourceParams$m(config);
|
|
1226
|
+
const request = createResourceRequest$m(resourceParams);
|
|
1227
1227
|
return luvio.dispatchResourceRequest(request, options)
|
|
1228
1228
|
.then((response) => {
|
|
1229
1229
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
1230
1230
|
const cache = new StoreKeyMap();
|
|
1231
|
-
getResponseCacheKeys$
|
|
1231
|
+
getResponseCacheKeys$m(cache, luvio, resourceParams, response.body);
|
|
1232
1232
|
return cache;
|
|
1233
1233
|
});
|
|
1234
1234
|
}, (response) => {
|
|
@@ -1236,7 +1236,7 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
1236
1236
|
});
|
|
1237
1237
|
}
|
|
1238
1238
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
1239
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1239
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$m, undefined, false);
|
|
1240
1240
|
}
|
|
1241
1241
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
1242
1242
|
const { luvio, config } = context;
|
|
@@ -1247,12 +1247,12 @@ function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
|
1247
1247
|
};
|
|
1248
1248
|
const cacheSnapshot = storeLookup(selector, {
|
|
1249
1249
|
config,
|
|
1250
|
-
resolve: () => buildNetworkSnapshot$
|
|
1250
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
1251
1251
|
});
|
|
1252
1252
|
return cacheSnapshot;
|
|
1253
1253
|
}
|
|
1254
1254
|
const getAppsAdapterFactory = (luvio) => function AppFramework__getApps(untrustedConfig, requestContext) {
|
|
1255
|
-
const config = validateAdapterConfig$
|
|
1255
|
+
const config = validateAdapterConfig$m(untrustedConfig, getApps_ConfigPropertyNames);
|
|
1256
1256
|
// Invalid or incomplete config
|
|
1257
1257
|
if (config === null) {
|
|
1258
1258
|
return null;
|
|
@@ -1367,7 +1367,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
1367
1367
|
}, luvio, store, timestamp);
|
|
1368
1368
|
return input;
|
|
1369
1369
|
}
|
|
1370
|
-
const select$
|
|
1370
|
+
const select$E = function AppResultRepresentationSelect() {
|
|
1371
1371
|
return {
|
|
1372
1372
|
kind: 'Fragment',
|
|
1373
1373
|
version: VERSION$l,
|
|
@@ -1376,7 +1376,7 @@ const select$D = function AppResultRepresentationSelect() {
|
|
|
1376
1376
|
{
|
|
1377
1377
|
name: 'app',
|
|
1378
1378
|
kind: 'Link',
|
|
1379
|
-
fragment: select$
|
|
1379
|
+
fragment: select$H()
|
|
1380
1380
|
},
|
|
1381
1381
|
{
|
|
1382
1382
|
name: 'failureMessage',
|
|
@@ -1445,19 +1445,19 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1445
1445
|
getTypeCacheKeys$c(rootKeySet, luvio, input.app);
|
|
1446
1446
|
}
|
|
1447
1447
|
|
|
1448
|
-
function select$
|
|
1449
|
-
return select$
|
|
1448
|
+
function select$D(luvio, params) {
|
|
1449
|
+
return select$E();
|
|
1450
1450
|
}
|
|
1451
|
-
function getResponseCacheKeys$
|
|
1451
|
+
function getResponseCacheKeys$l(storeKeyMap, luvio, resourceParams, response) {
|
|
1452
1452
|
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
1453
1453
|
}
|
|
1454
|
-
function ingestSuccess$
|
|
1454
|
+
function ingestSuccess$i(luvio, resourceParams, response) {
|
|
1455
1455
|
const { body } = response;
|
|
1456
1456
|
const key = keyBuilderFromType$8(luvio, body);
|
|
1457
1457
|
luvio.storeIngest(key, ingest$a, body);
|
|
1458
1458
|
const snapshot = luvio.storeLookup({
|
|
1459
1459
|
recordId: key,
|
|
1460
|
-
node: select$
|
|
1460
|
+
node: select$D(),
|
|
1461
1461
|
variables: {},
|
|
1462
1462
|
});
|
|
1463
1463
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1468,7 +1468,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
|
|
|
1468
1468
|
deepFreeze(snapshot.data);
|
|
1469
1469
|
return snapshot;
|
|
1470
1470
|
}
|
|
1471
|
-
function createResourceRequest$
|
|
1471
|
+
function createResourceRequest$l(config) {
|
|
1472
1472
|
const headers = {};
|
|
1473
1473
|
return {
|
|
1474
1474
|
baseUri: '/services/data/v64.0',
|
|
@@ -1482,7 +1482,7 @@ function createResourceRequest$k(config) {
|
|
|
1482
1482
|
};
|
|
1483
1483
|
}
|
|
1484
1484
|
|
|
1485
|
-
const adapterName$
|
|
1485
|
+
const adapterName$l = 'createApp';
|
|
1486
1486
|
const createApp_ConfigPropertyMetadata = [
|
|
1487
1487
|
generateParamConfigMetadata('assetIcon', false, 2 /* Body */, 0 /* String */),
|
|
1488
1488
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -1496,11 +1496,11 @@ const createApp_ConfigPropertyMetadata = [
|
|
|
1496
1496
|
generateParamConfigMetadata('templateVersion', false, 2 /* Body */, 0 /* String */),
|
|
1497
1497
|
generateParamConfigMetadata('assetIds', false, 2 /* Body */, 0 /* String */, true),
|
|
1498
1498
|
];
|
|
1499
|
-
const createApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1500
|
-
const createResourceParams$
|
|
1501
|
-
function typeCheckConfig$
|
|
1499
|
+
const createApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, createApp_ConfigPropertyMetadata);
|
|
1500
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$n(createApp_ConfigPropertyMetadata);
|
|
1501
|
+
function typeCheckConfig$l(untrustedConfig) {
|
|
1502
1502
|
const config = {};
|
|
1503
|
-
typeCheckConfig$
|
|
1503
|
+
typeCheckConfig$n(untrustedConfig, config, createApp_ConfigPropertyMetadata);
|
|
1504
1504
|
const untrustedConfig_templateValues = untrustedConfig.templateValues;
|
|
1505
1505
|
if (untrustedIsObject(untrustedConfig_templateValues)) {
|
|
1506
1506
|
const untrustedConfig_templateValues_object = {};
|
|
@@ -1518,30 +1518,30 @@ function typeCheckConfig$k(untrustedConfig) {
|
|
|
1518
1518
|
}
|
|
1519
1519
|
return config;
|
|
1520
1520
|
}
|
|
1521
|
-
function validateAdapterConfig$
|
|
1521
|
+
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
1522
1522
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1523
1523
|
return null;
|
|
1524
1524
|
}
|
|
1525
1525
|
if (process.env.NODE_ENV !== 'production') {
|
|
1526
1526
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1527
1527
|
}
|
|
1528
|
-
const config = typeCheckConfig$
|
|
1528
|
+
const config = typeCheckConfig$l(untrustedConfig);
|
|
1529
1529
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1530
1530
|
return null;
|
|
1531
1531
|
}
|
|
1532
1532
|
return config;
|
|
1533
1533
|
}
|
|
1534
|
-
function buildNetworkSnapshot$
|
|
1535
|
-
const resourceParams = createResourceParams$
|
|
1536
|
-
const request = createResourceRequest$
|
|
1534
|
+
function buildNetworkSnapshot$l(luvio, config, options) {
|
|
1535
|
+
const resourceParams = createResourceParams$l(config);
|
|
1536
|
+
const request = createResourceRequest$l(resourceParams);
|
|
1537
1537
|
return luvio.dispatchResourceRequest(request, options)
|
|
1538
1538
|
.then((response) => {
|
|
1539
1539
|
return luvio.handleSuccessResponse(() => {
|
|
1540
|
-
const snapshot = ingestSuccess$
|
|
1540
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response);
|
|
1541
1541
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1542
1542
|
}, () => {
|
|
1543
1543
|
const cache = new StoreKeyMap();
|
|
1544
|
-
getResponseCacheKeys$
|
|
1544
|
+
getResponseCacheKeys$l(cache, luvio, resourceParams, response.body);
|
|
1545
1545
|
return cache;
|
|
1546
1546
|
});
|
|
1547
1547
|
}, (response) => {
|
|
@@ -1551,12 +1551,12 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
1551
1551
|
}
|
|
1552
1552
|
const createAppAdapterFactory = (luvio) => {
|
|
1553
1553
|
return function createApp(untrustedConfig) {
|
|
1554
|
-
const config = validateAdapterConfig$
|
|
1554
|
+
const config = validateAdapterConfig$l(untrustedConfig, createApp_ConfigPropertyNames);
|
|
1555
1555
|
// Invalid or incomplete config
|
|
1556
1556
|
if (config === null) {
|
|
1557
1557
|
throw new Error('Invalid config for "createApp"');
|
|
1558
1558
|
}
|
|
1559
|
-
return buildNetworkSnapshot$
|
|
1559
|
+
return buildNetworkSnapshot$l(luvio, config);
|
|
1560
1560
|
};
|
|
1561
1561
|
};
|
|
1562
1562
|
|
|
@@ -1565,7 +1565,7 @@ function keyBuilder$u(luvio, params) {
|
|
|
1565
1565
|
id: params.urlParams.appIdOrApiName
|
|
1566
1566
|
});
|
|
1567
1567
|
}
|
|
1568
|
-
function getResponseCacheKeys$
|
|
1568
|
+
function getResponseCacheKeys$k(cacheKeyMap, luvio, resourceParams) {
|
|
1569
1569
|
const key = keyBuilder$u(luvio, resourceParams);
|
|
1570
1570
|
cacheKeyMap.set(key, {
|
|
1571
1571
|
namespace: keyPrefix,
|
|
@@ -1577,7 +1577,7 @@ function evictSuccess$2(luvio, resourceParams) {
|
|
|
1577
1577
|
const key = keyBuilder$u(luvio, resourceParams);
|
|
1578
1578
|
luvio.storeEvict(key);
|
|
1579
1579
|
}
|
|
1580
|
-
function createResourceRequest$
|
|
1580
|
+
function createResourceRequest$k(config) {
|
|
1581
1581
|
const headers = {};
|
|
1582
1582
|
return {
|
|
1583
1583
|
baseUri: '/services/data/v64.0',
|
|
@@ -1591,33 +1591,33 @@ function createResourceRequest$j(config) {
|
|
|
1591
1591
|
};
|
|
1592
1592
|
}
|
|
1593
1593
|
|
|
1594
|
-
const adapterName$
|
|
1594
|
+
const adapterName$k = 'deleteApp';
|
|
1595
1595
|
const deleteApp_ConfigPropertyMetadata = [
|
|
1596
1596
|
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1597
1597
|
];
|
|
1598
|
-
const deleteApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1599
|
-
const createResourceParams$
|
|
1600
|
-
function typeCheckConfig$
|
|
1598
|
+
const deleteApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, deleteApp_ConfigPropertyMetadata);
|
|
1599
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$n(deleteApp_ConfigPropertyMetadata);
|
|
1600
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
1601
1601
|
const config = {};
|
|
1602
|
-
typeCheckConfig$
|
|
1602
|
+
typeCheckConfig$n(untrustedConfig, config, deleteApp_ConfigPropertyMetadata);
|
|
1603
1603
|
return config;
|
|
1604
1604
|
}
|
|
1605
|
-
function validateAdapterConfig$
|
|
1605
|
+
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
1606
1606
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1607
1607
|
return null;
|
|
1608
1608
|
}
|
|
1609
1609
|
if (process.env.NODE_ENV !== 'production') {
|
|
1610
1610
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1611
1611
|
}
|
|
1612
|
-
const config = typeCheckConfig$
|
|
1612
|
+
const config = typeCheckConfig$k(untrustedConfig);
|
|
1613
1613
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1614
1614
|
return null;
|
|
1615
1615
|
}
|
|
1616
1616
|
return config;
|
|
1617
1617
|
}
|
|
1618
|
-
function buildNetworkSnapshot$
|
|
1619
|
-
const resourceParams = createResourceParams$
|
|
1620
|
-
const request = createResourceRequest$
|
|
1618
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
1619
|
+
const resourceParams = createResourceParams$k(config);
|
|
1620
|
+
const request = createResourceRequest$k(resourceParams);
|
|
1621
1621
|
return luvio.dispatchResourceRequest(request, options)
|
|
1622
1622
|
.then(() => {
|
|
1623
1623
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -1625,7 +1625,7 @@ function buildNetworkSnapshot$j(luvio, config, options) {
|
|
|
1625
1625
|
return luvio.storeBroadcast();
|
|
1626
1626
|
}, () => {
|
|
1627
1627
|
const cache = new StoreKeyMap();
|
|
1628
|
-
getResponseCacheKeys$
|
|
1628
|
+
getResponseCacheKeys$k(cache, luvio, resourceParams);
|
|
1629
1629
|
return cache;
|
|
1630
1630
|
});
|
|
1631
1631
|
}, (response) => {
|
|
@@ -1635,33 +1635,33 @@ function buildNetworkSnapshot$j(luvio, config, options) {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
const deleteAppAdapterFactory = (luvio) => {
|
|
1637
1637
|
return function AppFrameworkdeleteApp(untrustedConfig) {
|
|
1638
|
-
const config = validateAdapterConfig$
|
|
1638
|
+
const config = validateAdapterConfig$k(untrustedConfig, deleteApp_ConfigPropertyNames);
|
|
1639
1639
|
// Invalid or incomplete config
|
|
1640
1640
|
if (config === null) {
|
|
1641
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
1641
|
+
throw new Error(`Invalid config for "${adapterName$k}"`);
|
|
1642
1642
|
}
|
|
1643
|
-
return buildNetworkSnapshot$
|
|
1643
|
+
return buildNetworkSnapshot$k(luvio, config);
|
|
1644
1644
|
};
|
|
1645
1645
|
};
|
|
1646
1646
|
|
|
1647
|
-
function select$
|
|
1648
|
-
return select$
|
|
1647
|
+
function select$C(luvio, params) {
|
|
1648
|
+
return select$H();
|
|
1649
1649
|
}
|
|
1650
1650
|
function keyBuilder$t(luvio, params) {
|
|
1651
1651
|
return keyBuilder$y(luvio, {
|
|
1652
1652
|
id: params.urlParams.appIdOrApiName
|
|
1653
1653
|
});
|
|
1654
1654
|
}
|
|
1655
|
-
function getResponseCacheKeys$
|
|
1655
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
1656
1656
|
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
1657
1657
|
}
|
|
1658
|
-
function ingestSuccess$
|
|
1658
|
+
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
1659
1659
|
const { body } = response;
|
|
1660
1660
|
const key = keyBuilder$t(luvio, resourceParams);
|
|
1661
1661
|
luvio.storeIngest(key, ingest$c, body);
|
|
1662
1662
|
const snapshot = luvio.storeLookup({
|
|
1663
1663
|
recordId: key,
|
|
1664
|
-
node: select$
|
|
1664
|
+
node: select$C(),
|
|
1665
1665
|
variables: {},
|
|
1666
1666
|
}, snapshotRefresh);
|
|
1667
1667
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1684,7 +1684,7 @@ function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
|
1684
1684
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1685
1685
|
return errorSnapshot;
|
|
1686
1686
|
}
|
|
1687
|
-
function createResourceRequest$
|
|
1687
|
+
function createResourceRequest$j(config) {
|
|
1688
1688
|
const headers = {};
|
|
1689
1689
|
return {
|
|
1690
1690
|
baseUri: '/services/data/v64.0',
|
|
@@ -1698,60 +1698,60 @@ function createResourceRequest$i(config) {
|
|
|
1698
1698
|
};
|
|
1699
1699
|
}
|
|
1700
1700
|
|
|
1701
|
-
const adapterName$
|
|
1701
|
+
const adapterName$j = 'getApp';
|
|
1702
1702
|
const getApp_ConfigPropertyMetadata = [
|
|
1703
1703
|
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1704
1704
|
];
|
|
1705
|
-
const getApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1706
|
-
const createResourceParams$
|
|
1705
|
+
const getApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, getApp_ConfigPropertyMetadata);
|
|
1706
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$n(getApp_ConfigPropertyMetadata);
|
|
1707
1707
|
function keyBuilder$s(luvio, config) {
|
|
1708
|
-
const resourceParams = createResourceParams$
|
|
1708
|
+
const resourceParams = createResourceParams$j(config);
|
|
1709
1709
|
return keyBuilder$t(luvio, resourceParams);
|
|
1710
1710
|
}
|
|
1711
|
-
function typeCheckConfig$
|
|
1711
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
1712
1712
|
const config = {};
|
|
1713
|
-
typeCheckConfig$
|
|
1713
|
+
typeCheckConfig$n(untrustedConfig, config, getApp_ConfigPropertyMetadata);
|
|
1714
1714
|
return config;
|
|
1715
1715
|
}
|
|
1716
|
-
function validateAdapterConfig$
|
|
1716
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
1717
1717
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1718
1718
|
return null;
|
|
1719
1719
|
}
|
|
1720
1720
|
if (process.env.NODE_ENV !== 'production') {
|
|
1721
1721
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1722
1722
|
}
|
|
1723
|
-
const config = typeCheckConfig$
|
|
1723
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
1724
1724
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1725
1725
|
return null;
|
|
1726
1726
|
}
|
|
1727
1727
|
return config;
|
|
1728
1728
|
}
|
|
1729
1729
|
function adapterFragment$9(luvio, config) {
|
|
1730
|
-
createResourceParams$
|
|
1731
|
-
return select$
|
|
1730
|
+
createResourceParams$j(config);
|
|
1731
|
+
return select$C();
|
|
1732
1732
|
}
|
|
1733
1733
|
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
1734
|
-
const snapshot = ingestSuccess$
|
|
1734
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
1735
1735
|
config,
|
|
1736
|
-
resolve: () => buildNetworkSnapshot$
|
|
1736
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
1737
1737
|
});
|
|
1738
1738
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1739
1739
|
}
|
|
1740
1740
|
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
1741
1741
|
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
1742
1742
|
config,
|
|
1743
|
-
resolve: () => buildNetworkSnapshot$
|
|
1743
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
1744
1744
|
});
|
|
1745
1745
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1746
1746
|
}
|
|
1747
|
-
function buildNetworkSnapshot$
|
|
1748
|
-
const resourceParams = createResourceParams$
|
|
1749
|
-
const request = createResourceRequest$
|
|
1747
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
1748
|
+
const resourceParams = createResourceParams$j(config);
|
|
1749
|
+
const request = createResourceRequest$j(resourceParams);
|
|
1750
1750
|
return luvio.dispatchResourceRequest(request, options)
|
|
1751
1751
|
.then((response) => {
|
|
1752
1752
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
1753
1753
|
const cache = new StoreKeyMap();
|
|
1754
|
-
getResponseCacheKeys$
|
|
1754
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
1755
1755
|
return cache;
|
|
1756
1756
|
});
|
|
1757
1757
|
}, (response) => {
|
|
@@ -1759,7 +1759,7 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
1759
1759
|
});
|
|
1760
1760
|
}
|
|
1761
1761
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
1762
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1762
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
|
|
1763
1763
|
}
|
|
1764
1764
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
1765
1765
|
const { luvio, config } = context;
|
|
@@ -1770,12 +1770,12 @@ function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
|
1770
1770
|
};
|
|
1771
1771
|
const cacheSnapshot = storeLookup(selector, {
|
|
1772
1772
|
config,
|
|
1773
|
-
resolve: () => buildNetworkSnapshot$
|
|
1773
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
1774
1774
|
});
|
|
1775
1775
|
return cacheSnapshot;
|
|
1776
1776
|
}
|
|
1777
1777
|
const getAppAdapterFactory = (luvio) => function AppFramework__getApp(untrustedConfig, requestContext) {
|
|
1778
|
-
const config = validateAdapterConfig$
|
|
1778
|
+
const config = validateAdapterConfig$j(untrustedConfig, getApp_ConfigPropertyNames);
|
|
1779
1779
|
// Invalid or incomplete config
|
|
1780
1780
|
if (config === null) {
|
|
1781
1781
|
return null;
|
|
@@ -1784,19 +1784,19 @@ const getAppAdapterFactory = (luvio) => function AppFramework__getApp(untrustedC
|
|
|
1784
1784
|
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
1785
1785
|
};
|
|
1786
1786
|
|
|
1787
|
-
function select$
|
|
1788
|
-
return select$
|
|
1787
|
+
function select$B(luvio, params) {
|
|
1788
|
+
return select$E();
|
|
1789
1789
|
}
|
|
1790
|
-
function getResponseCacheKeys$
|
|
1790
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
1791
1791
|
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
1792
1792
|
}
|
|
1793
|
-
function ingestSuccess$
|
|
1793
|
+
function ingestSuccess$g(luvio, resourceParams, response) {
|
|
1794
1794
|
const { body } = response;
|
|
1795
1795
|
const key = keyBuilderFromType$8(luvio, body);
|
|
1796
1796
|
luvio.storeIngest(key, ingest$a, body);
|
|
1797
1797
|
const snapshot = luvio.storeLookup({
|
|
1798
1798
|
recordId: key,
|
|
1799
|
-
node: select$
|
|
1799
|
+
node: select$B(),
|
|
1800
1800
|
variables: {},
|
|
1801
1801
|
});
|
|
1802
1802
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1807,7 +1807,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
1807
1807
|
deepFreeze(snapshot.data);
|
|
1808
1808
|
return snapshot;
|
|
1809
1809
|
}
|
|
1810
|
-
function createResourceRequest$
|
|
1810
|
+
function createResourceRequest$i(config) {
|
|
1811
1811
|
const headers = {};
|
|
1812
1812
|
return {
|
|
1813
1813
|
baseUri: '/services/data/v64.0',
|
|
@@ -1821,7 +1821,7 @@ function createResourceRequest$h(config) {
|
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
1823
|
|
|
1824
|
-
const adapterName$
|
|
1824
|
+
const adapterName$i = 'updateApp';
|
|
1825
1825
|
const updateApp_ConfigPropertyMetadata = [
|
|
1826
1826
|
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1827
1827
|
generateParamConfigMetadata('logLevel', false, 2 /* Body */, 0 /* String */),
|
|
@@ -1829,11 +1829,11 @@ const updateApp_ConfigPropertyMetadata = [
|
|
|
1829
1829
|
generateParamConfigMetadata('templateSourceId', true, 2 /* Body */, 0 /* String */),
|
|
1830
1830
|
generateParamConfigMetadata('templateValues', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1831
1831
|
];
|
|
1832
|
-
const updateApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1833
|
-
const createResourceParams$
|
|
1834
|
-
function typeCheckConfig$
|
|
1832
|
+
const updateApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, updateApp_ConfigPropertyMetadata);
|
|
1833
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$n(updateApp_ConfigPropertyMetadata);
|
|
1834
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
1835
1835
|
const config = {};
|
|
1836
|
-
typeCheckConfig$
|
|
1836
|
+
typeCheckConfig$n(untrustedConfig, config, updateApp_ConfigPropertyMetadata);
|
|
1837
1837
|
const untrustedConfig_templateValues = untrustedConfig.templateValues;
|
|
1838
1838
|
if (untrustedIsObject(untrustedConfig_templateValues)) {
|
|
1839
1839
|
const untrustedConfig_templateValues_object = {};
|
|
@@ -1851,30 +1851,30 @@ function typeCheckConfig$h(untrustedConfig) {
|
|
|
1851
1851
|
}
|
|
1852
1852
|
return config;
|
|
1853
1853
|
}
|
|
1854
|
-
function validateAdapterConfig$
|
|
1854
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
1855
1855
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1856
1856
|
return null;
|
|
1857
1857
|
}
|
|
1858
1858
|
if (process.env.NODE_ENV !== 'production') {
|
|
1859
1859
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1860
1860
|
}
|
|
1861
|
-
const config = typeCheckConfig$
|
|
1861
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
1862
1862
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1863
1863
|
return null;
|
|
1864
1864
|
}
|
|
1865
1865
|
return config;
|
|
1866
1866
|
}
|
|
1867
|
-
function buildNetworkSnapshot$
|
|
1868
|
-
const resourceParams = createResourceParams$
|
|
1869
|
-
const request = createResourceRequest$
|
|
1867
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
1868
|
+
const resourceParams = createResourceParams$i(config);
|
|
1869
|
+
const request = createResourceRequest$i(resourceParams);
|
|
1870
1870
|
return luvio.dispatchResourceRequest(request, options)
|
|
1871
1871
|
.then((response) => {
|
|
1872
1872
|
return luvio.handleSuccessResponse(() => {
|
|
1873
|
-
const snapshot = ingestSuccess$
|
|
1873
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response);
|
|
1874
1874
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1875
1875
|
}, () => {
|
|
1876
1876
|
const cache = new StoreKeyMap();
|
|
1877
|
-
getResponseCacheKeys$
|
|
1877
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
1878
1878
|
return cache;
|
|
1879
1879
|
});
|
|
1880
1880
|
}, (response) => {
|
|
@@ -1884,12 +1884,12 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
1884
1884
|
}
|
|
1885
1885
|
const updateAppAdapterFactory = (luvio) => {
|
|
1886
1886
|
return function updateApp(untrustedConfig) {
|
|
1887
|
-
const config = validateAdapterConfig$
|
|
1887
|
+
const config = validateAdapterConfig$i(untrustedConfig, updateApp_ConfigPropertyNames);
|
|
1888
1888
|
// Invalid or incomplete config
|
|
1889
1889
|
if (config === null) {
|
|
1890
1890
|
throw new Error('Invalid config for "updateApp"');
|
|
1891
1891
|
}
|
|
1892
|
-
return buildNetworkSnapshot$
|
|
1892
|
+
return buildNetworkSnapshot$i(luvio, config);
|
|
1893
1893
|
};
|
|
1894
1894
|
};
|
|
1895
1895
|
|
|
@@ -1951,7 +1951,7 @@ function keyBuilderFromType$7(luvio, object) {
|
|
|
1951
1951
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
1952
1952
|
return input;
|
|
1953
1953
|
}
|
|
1954
|
-
const select$
|
|
1954
|
+
const select$A = function AppActivityItemRepresentationSelect() {
|
|
1955
1955
|
return {
|
|
1956
1956
|
kind: 'Fragment',
|
|
1957
1957
|
version: VERSION$k,
|
|
@@ -2092,7 +2092,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
2092
2092
|
}
|
|
2093
2093
|
return input;
|
|
2094
2094
|
}
|
|
2095
|
-
const select$
|
|
2095
|
+
const select$z = function AppActivityCollectionRepresentationSelect() {
|
|
2096
2096
|
return {
|
|
2097
2097
|
kind: 'Fragment',
|
|
2098
2098
|
version: VERSION$j,
|
|
@@ -2106,7 +2106,7 @@ const select$y = function AppActivityCollectionRepresentationSelect() {
|
|
|
2106
2106
|
name: 'items',
|
|
2107
2107
|
kind: 'Link',
|
|
2108
2108
|
plural: true,
|
|
2109
|
-
fragment: select$
|
|
2109
|
+
fragment: select$A()
|
|
2110
2110
|
}
|
|
2111
2111
|
]
|
|
2112
2112
|
};
|
|
@@ -2155,24 +2155,24 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2155
2155
|
}
|
|
2156
2156
|
}
|
|
2157
2157
|
|
|
2158
|
-
function select$
|
|
2159
|
-
return select$
|
|
2158
|
+
function select$y(luvio, params) {
|
|
2159
|
+
return select$z();
|
|
2160
2160
|
}
|
|
2161
2161
|
function keyBuilder$p(luvio, params) {
|
|
2162
2162
|
return keyBuilder$q(luvio, {
|
|
2163
2163
|
appId: params.urlParams.appIdOrApiName
|
|
2164
2164
|
});
|
|
2165
2165
|
}
|
|
2166
|
-
function getResponseCacheKeys$
|
|
2166
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
2167
2167
|
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
2168
2168
|
}
|
|
2169
|
-
function ingestSuccess$
|
|
2169
|
+
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
2170
2170
|
const { body } = response;
|
|
2171
2171
|
const key = keyBuilder$p(luvio, resourceParams);
|
|
2172
2172
|
luvio.storeIngest(key, ingest$8, body);
|
|
2173
2173
|
const snapshot = luvio.storeLookup({
|
|
2174
2174
|
recordId: key,
|
|
2175
|
-
node: select$
|
|
2175
|
+
node: select$y(),
|
|
2176
2176
|
variables: {},
|
|
2177
2177
|
}, snapshotRefresh);
|
|
2178
2178
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2195,7 +2195,7 @@ function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
|
2195
2195
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2196
2196
|
return errorSnapshot;
|
|
2197
2197
|
}
|
|
2198
|
-
function createResourceRequest$
|
|
2198
|
+
function createResourceRequest$h(config) {
|
|
2199
2199
|
const headers = {};
|
|
2200
2200
|
return {
|
|
2201
2201
|
baseUri: '/services/data/v64.0',
|
|
@@ -2209,60 +2209,60 @@ function createResourceRequest$g(config) {
|
|
|
2209
2209
|
};
|
|
2210
2210
|
}
|
|
2211
2211
|
|
|
2212
|
-
const adapterName$
|
|
2212
|
+
const adapterName$h = 'getAppActivities';
|
|
2213
2213
|
const getAppActivities_ConfigPropertyMetadata = [
|
|
2214
2214
|
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2215
2215
|
];
|
|
2216
|
-
const getAppActivities_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2217
|
-
const createResourceParams$
|
|
2216
|
+
const getAppActivities_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getAppActivities_ConfigPropertyMetadata);
|
|
2217
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$n(getAppActivities_ConfigPropertyMetadata);
|
|
2218
2218
|
function keyBuilder$o(luvio, config) {
|
|
2219
|
-
const resourceParams = createResourceParams$
|
|
2219
|
+
const resourceParams = createResourceParams$h(config);
|
|
2220
2220
|
return keyBuilder$p(luvio, resourceParams);
|
|
2221
2221
|
}
|
|
2222
|
-
function typeCheckConfig$
|
|
2222
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
2223
2223
|
const config = {};
|
|
2224
|
-
typeCheckConfig$
|
|
2224
|
+
typeCheckConfig$n(untrustedConfig, config, getAppActivities_ConfigPropertyMetadata);
|
|
2225
2225
|
return config;
|
|
2226
2226
|
}
|
|
2227
|
-
function validateAdapterConfig$
|
|
2227
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
2228
2228
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2229
2229
|
return null;
|
|
2230
2230
|
}
|
|
2231
2231
|
if (process.env.NODE_ENV !== 'production') {
|
|
2232
2232
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2233
2233
|
}
|
|
2234
|
-
const config = typeCheckConfig$
|
|
2234
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
2235
2235
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2236
2236
|
return null;
|
|
2237
2237
|
}
|
|
2238
2238
|
return config;
|
|
2239
2239
|
}
|
|
2240
2240
|
function adapterFragment$8(luvio, config) {
|
|
2241
|
-
createResourceParams$
|
|
2242
|
-
return select$
|
|
2241
|
+
createResourceParams$h(config);
|
|
2242
|
+
return select$y();
|
|
2243
2243
|
}
|
|
2244
2244
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
2245
|
-
const snapshot = ingestSuccess$
|
|
2245
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
2246
2246
|
config,
|
|
2247
|
-
resolve: () => buildNetworkSnapshot$
|
|
2247
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
2248
2248
|
});
|
|
2249
2249
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2250
2250
|
}
|
|
2251
2251
|
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
2252
2252
|
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
2253
2253
|
config,
|
|
2254
|
-
resolve: () => buildNetworkSnapshot$
|
|
2254
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
2255
2255
|
});
|
|
2256
2256
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2257
2257
|
}
|
|
2258
|
-
function buildNetworkSnapshot$
|
|
2259
|
-
const resourceParams = createResourceParams$
|
|
2260
|
-
const request = createResourceRequest$
|
|
2258
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
2259
|
+
const resourceParams = createResourceParams$h(config);
|
|
2260
|
+
const request = createResourceRequest$h(resourceParams);
|
|
2261
2261
|
return luvio.dispatchResourceRequest(request, options)
|
|
2262
2262
|
.then((response) => {
|
|
2263
2263
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
2264
2264
|
const cache = new StoreKeyMap();
|
|
2265
|
-
getResponseCacheKeys$
|
|
2265
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
2266
2266
|
return cache;
|
|
2267
2267
|
});
|
|
2268
2268
|
}, (response) => {
|
|
@@ -2270,7 +2270,7 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
2270
2270
|
});
|
|
2271
2271
|
}
|
|
2272
2272
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
2273
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
2273
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
2274
2274
|
}
|
|
2275
2275
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
2276
2276
|
const { luvio, config } = context;
|
|
@@ -2281,12 +2281,12 @@ function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
|
2281
2281
|
};
|
|
2282
2282
|
const cacheSnapshot = storeLookup(selector, {
|
|
2283
2283
|
config,
|
|
2284
|
-
resolve: () => buildNetworkSnapshot$
|
|
2284
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
2285
2285
|
});
|
|
2286
2286
|
return cacheSnapshot;
|
|
2287
2287
|
}
|
|
2288
2288
|
const getAppActivitiesAdapterFactory = (luvio) => function AppFramework__getAppActivities(untrustedConfig, requestContext) {
|
|
2289
|
-
const config = validateAdapterConfig$
|
|
2289
|
+
const config = validateAdapterConfig$h(untrustedConfig, getAppActivities_ConfigPropertyNames);
|
|
2290
2290
|
// Invalid or incomplete config
|
|
2291
2291
|
if (config === null) {
|
|
2292
2292
|
return null;
|
|
@@ -2295,8 +2295,8 @@ const getAppActivitiesAdapterFactory = (luvio) => function AppFramework__getAppA
|
|
|
2295
2295
|
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
2296
2296
|
};
|
|
2297
2297
|
|
|
2298
|
-
function select$
|
|
2299
|
-
return select$
|
|
2298
|
+
function select$x(luvio, params) {
|
|
2299
|
+
return select$A();
|
|
2300
2300
|
}
|
|
2301
2301
|
function keyBuilder$n(luvio, params) {
|
|
2302
2302
|
return keyBuilder$r(luvio, {
|
|
@@ -2304,16 +2304,16 @@ function keyBuilder$n(luvio, params) {
|
|
|
2304
2304
|
id: params.urlParams.id
|
|
2305
2305
|
});
|
|
2306
2306
|
}
|
|
2307
|
-
function getResponseCacheKeys$
|
|
2307
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
2308
2308
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
2309
2309
|
}
|
|
2310
|
-
function ingestSuccess$
|
|
2310
|
+
function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
2311
2311
|
const { body } = response;
|
|
2312
2312
|
const key = keyBuilder$n(luvio, resourceParams);
|
|
2313
2313
|
luvio.storeIngest(key, ingest$9, body);
|
|
2314
2314
|
const snapshot = luvio.storeLookup({
|
|
2315
2315
|
recordId: key,
|
|
2316
|
-
node: select$
|
|
2316
|
+
node: select$x(),
|
|
2317
2317
|
variables: {},
|
|
2318
2318
|
}, snapshotRefresh);
|
|
2319
2319
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2336,7 +2336,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
2336
2336
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2337
2337
|
return errorSnapshot;
|
|
2338
2338
|
}
|
|
2339
|
-
function createResourceRequest$
|
|
2339
|
+
function createResourceRequest$g(config) {
|
|
2340
2340
|
const headers = {};
|
|
2341
2341
|
return {
|
|
2342
2342
|
baseUri: '/services/data/v64.0',
|
|
@@ -2350,61 +2350,61 @@ function createResourceRequest$f(config) {
|
|
|
2350
2350
|
};
|
|
2351
2351
|
}
|
|
2352
2352
|
|
|
2353
|
-
const adapterName$
|
|
2353
|
+
const adapterName$g = 'getAppActivity';
|
|
2354
2354
|
const getAppActivity_ConfigPropertyMetadata = [
|
|
2355
2355
|
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2356
2356
|
generateParamConfigMetadata('id', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2357
2357
|
];
|
|
2358
|
-
const getAppActivity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2359
|
-
const createResourceParams$
|
|
2358
|
+
const getAppActivity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getAppActivity_ConfigPropertyMetadata);
|
|
2359
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$n(getAppActivity_ConfigPropertyMetadata);
|
|
2360
2360
|
function keyBuilder$m(luvio, config) {
|
|
2361
|
-
const resourceParams = createResourceParams$
|
|
2361
|
+
const resourceParams = createResourceParams$g(config);
|
|
2362
2362
|
return keyBuilder$n(luvio, resourceParams);
|
|
2363
2363
|
}
|
|
2364
|
-
function typeCheckConfig$
|
|
2364
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
2365
2365
|
const config = {};
|
|
2366
|
-
typeCheckConfig$
|
|
2366
|
+
typeCheckConfig$n(untrustedConfig, config, getAppActivity_ConfigPropertyMetadata);
|
|
2367
2367
|
return config;
|
|
2368
2368
|
}
|
|
2369
|
-
function validateAdapterConfig$
|
|
2369
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
2370
2370
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2371
2371
|
return null;
|
|
2372
2372
|
}
|
|
2373
2373
|
if (process.env.NODE_ENV !== 'production') {
|
|
2374
2374
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2375
2375
|
}
|
|
2376
|
-
const config = typeCheckConfig$
|
|
2376
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
2377
2377
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2378
2378
|
return null;
|
|
2379
2379
|
}
|
|
2380
2380
|
return config;
|
|
2381
2381
|
}
|
|
2382
2382
|
function adapterFragment$7(luvio, config) {
|
|
2383
|
-
createResourceParams$
|
|
2384
|
-
return select$
|
|
2383
|
+
createResourceParams$g(config);
|
|
2384
|
+
return select$x();
|
|
2385
2385
|
}
|
|
2386
2386
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
2387
|
-
const snapshot = ingestSuccess$
|
|
2387
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
2388
2388
|
config,
|
|
2389
|
-
resolve: () => buildNetworkSnapshot$
|
|
2389
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
2390
2390
|
});
|
|
2391
2391
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2392
2392
|
}
|
|
2393
2393
|
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
2394
2394
|
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
2395
2395
|
config,
|
|
2396
|
-
resolve: () => buildNetworkSnapshot$
|
|
2396
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
2397
2397
|
});
|
|
2398
2398
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2399
2399
|
}
|
|
2400
|
-
function buildNetworkSnapshot$
|
|
2401
|
-
const resourceParams = createResourceParams$
|
|
2402
|
-
const request = createResourceRequest$
|
|
2400
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
2401
|
+
const resourceParams = createResourceParams$g(config);
|
|
2402
|
+
const request = createResourceRequest$g(resourceParams);
|
|
2403
2403
|
return luvio.dispatchResourceRequest(request, options)
|
|
2404
2404
|
.then((response) => {
|
|
2405
2405
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
2406
2406
|
const cache = new StoreKeyMap();
|
|
2407
|
-
getResponseCacheKeys$
|
|
2407
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
2408
2408
|
return cache;
|
|
2409
2409
|
});
|
|
2410
2410
|
}, (response) => {
|
|
@@ -2412,7 +2412,7 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
2412
2412
|
});
|
|
2413
2413
|
}
|
|
2414
2414
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
2415
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
2415
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
2416
2416
|
}
|
|
2417
2417
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
2418
2418
|
const { luvio, config } = context;
|
|
@@ -2423,12 +2423,12 @@ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
|
2423
2423
|
};
|
|
2424
2424
|
const cacheSnapshot = storeLookup(selector, {
|
|
2425
2425
|
config,
|
|
2426
|
-
resolve: () => buildNetworkSnapshot$
|
|
2426
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
2427
2427
|
});
|
|
2428
2428
|
return cacheSnapshot;
|
|
2429
2429
|
}
|
|
2430
2430
|
const getAppActivityAdapterFactory = (luvio) => function AppFramework__getAppActivity(untrustedConfig, requestContext) {
|
|
2431
|
-
const config = validateAdapterConfig$
|
|
2431
|
+
const config = validateAdapterConfig$g(untrustedConfig, getAppActivity_ConfigPropertyNames);
|
|
2432
2432
|
// Invalid or incomplete config
|
|
2433
2433
|
if (config === null) {
|
|
2434
2434
|
return null;
|
|
@@ -2605,7 +2605,7 @@ function keyBuilderFromType$5(luvio, object) {
|
|
|
2605
2605
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
2606
2606
|
return input;
|
|
2607
2607
|
}
|
|
2608
|
-
const select$
|
|
2608
|
+
const select$w = function AssetRepresentationSelect() {
|
|
2609
2609
|
return {
|
|
2610
2610
|
kind: 'Fragment',
|
|
2611
2611
|
version: VERSION$i,
|
|
@@ -2767,7 +2767,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
2767
2767
|
}
|
|
2768
2768
|
return input;
|
|
2769
2769
|
}
|
|
2770
|
-
const select$
|
|
2770
|
+
const select$v = function AssetCollectionRepresentationSelect() {
|
|
2771
2771
|
return {
|
|
2772
2772
|
kind: 'Fragment',
|
|
2773
2773
|
version: VERSION$h,
|
|
@@ -2781,7 +2781,7 @@ const select$u = function AssetCollectionRepresentationSelect() {
|
|
|
2781
2781
|
name: 'assets',
|
|
2782
2782
|
kind: 'Link',
|
|
2783
2783
|
plural: true,
|
|
2784
|
-
fragment: select$
|
|
2784
|
+
fragment: select$w()
|
|
2785
2785
|
}
|
|
2786
2786
|
]
|
|
2787
2787
|
};
|
|
@@ -2830,24 +2830,24 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2830
2830
|
}
|
|
2831
2831
|
}
|
|
2832
2832
|
|
|
2833
|
-
function select$
|
|
2834
|
-
return select$
|
|
2833
|
+
function select$u(luvio, params) {
|
|
2834
|
+
return select$v();
|
|
2835
2835
|
}
|
|
2836
2836
|
function keyBuilder$j(luvio, params) {
|
|
2837
2837
|
return keyBuilder$k(luvio, {
|
|
2838
2838
|
appId: params.urlParams.appIdOrApiName
|
|
2839
2839
|
});
|
|
2840
2840
|
}
|
|
2841
|
-
function getResponseCacheKeys$
|
|
2841
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
2842
2842
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
2843
2843
|
}
|
|
2844
|
-
function ingestSuccess$
|
|
2844
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
2845
2845
|
const { body } = response;
|
|
2846
2846
|
const key = keyBuilder$j(luvio, resourceParams);
|
|
2847
2847
|
luvio.storeIngest(key, ingest$6, body);
|
|
2848
2848
|
const snapshot = luvio.storeLookup({
|
|
2849
2849
|
recordId: key,
|
|
2850
|
-
node: select$
|
|
2850
|
+
node: select$u(),
|
|
2851
2851
|
variables: {},
|
|
2852
2852
|
}, snapshotRefresh);
|
|
2853
2853
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2870,7 +2870,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
2870
2870
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2871
2871
|
return errorSnapshot;
|
|
2872
2872
|
}
|
|
2873
|
-
function createResourceRequest$
|
|
2873
|
+
function createResourceRequest$f(config) {
|
|
2874
2874
|
const headers = {};
|
|
2875
2875
|
return {
|
|
2876
2876
|
baseUri: '/services/data/v64.0',
|
|
@@ -2884,62 +2884,62 @@ function createResourceRequest$e(config) {
|
|
|
2884
2884
|
};
|
|
2885
2885
|
}
|
|
2886
2886
|
|
|
2887
|
-
const adapterName$
|
|
2887
|
+
const adapterName$f = 'getAppAssets';
|
|
2888
2888
|
const getAppAssets_ConfigPropertyMetadata = [
|
|
2889
2889
|
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2890
2890
|
generateParamConfigMetadata('assetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2891
2891
|
generateParamConfigMetadata('templateAssetName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2892
2892
|
];
|
|
2893
|
-
const getAppAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2894
|
-
const createResourceParams$
|
|
2893
|
+
const getAppAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getAppAssets_ConfigPropertyMetadata);
|
|
2894
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$n(getAppAssets_ConfigPropertyMetadata);
|
|
2895
2895
|
function keyBuilder$i(luvio, config) {
|
|
2896
|
-
const resourceParams = createResourceParams$
|
|
2896
|
+
const resourceParams = createResourceParams$f(config);
|
|
2897
2897
|
return keyBuilder$j(luvio, resourceParams);
|
|
2898
2898
|
}
|
|
2899
|
-
function typeCheckConfig$
|
|
2899
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
2900
2900
|
const config = {};
|
|
2901
|
-
typeCheckConfig$
|
|
2901
|
+
typeCheckConfig$n(untrustedConfig, config, getAppAssets_ConfigPropertyMetadata);
|
|
2902
2902
|
return config;
|
|
2903
2903
|
}
|
|
2904
|
-
function validateAdapterConfig$
|
|
2904
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
2905
2905
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2906
2906
|
return null;
|
|
2907
2907
|
}
|
|
2908
2908
|
if (process.env.NODE_ENV !== 'production') {
|
|
2909
2909
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2910
2910
|
}
|
|
2911
|
-
const config = typeCheckConfig$
|
|
2911
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
2912
2912
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2913
2913
|
return null;
|
|
2914
2914
|
}
|
|
2915
2915
|
return config;
|
|
2916
2916
|
}
|
|
2917
2917
|
function adapterFragment$6(luvio, config) {
|
|
2918
|
-
createResourceParams$
|
|
2919
|
-
return select$
|
|
2918
|
+
createResourceParams$f(config);
|
|
2919
|
+
return select$u();
|
|
2920
2920
|
}
|
|
2921
2921
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
2922
|
-
const snapshot = ingestSuccess$
|
|
2922
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
2923
2923
|
config,
|
|
2924
|
-
resolve: () => buildNetworkSnapshot$
|
|
2924
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
2925
2925
|
});
|
|
2926
2926
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2927
2927
|
}
|
|
2928
2928
|
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
2929
2929
|
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
2930
2930
|
config,
|
|
2931
|
-
resolve: () => buildNetworkSnapshot$
|
|
2931
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
2932
2932
|
});
|
|
2933
2933
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2934
2934
|
}
|
|
2935
|
-
function buildNetworkSnapshot$
|
|
2936
|
-
const resourceParams = createResourceParams$
|
|
2937
|
-
const request = createResourceRequest$
|
|
2935
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
2936
|
+
const resourceParams = createResourceParams$f(config);
|
|
2937
|
+
const request = createResourceRequest$f(resourceParams);
|
|
2938
2938
|
return luvio.dispatchResourceRequest(request, options)
|
|
2939
2939
|
.then((response) => {
|
|
2940
2940
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
2941
2941
|
const cache = new StoreKeyMap();
|
|
2942
|
-
getResponseCacheKeys$
|
|
2942
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
2943
2943
|
return cache;
|
|
2944
2944
|
});
|
|
2945
2945
|
}, (response) => {
|
|
@@ -2947,7 +2947,7 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
2947
2947
|
});
|
|
2948
2948
|
}
|
|
2949
2949
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
2950
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
2950
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
2951
2951
|
}
|
|
2952
2952
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
2953
2953
|
const { luvio, config } = context;
|
|
@@ -2958,12 +2958,12 @@ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
|
2958
2958
|
};
|
|
2959
2959
|
const cacheSnapshot = storeLookup(selector, {
|
|
2960
2960
|
config,
|
|
2961
|
-
resolve: () => buildNetworkSnapshot$
|
|
2961
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
2962
2962
|
});
|
|
2963
2963
|
return cacheSnapshot;
|
|
2964
2964
|
}
|
|
2965
2965
|
const getAppAssetsAdapterFactory = (luvio) => function AppFramework__getAppAssets(untrustedConfig, requestContext) {
|
|
2966
|
-
const config = validateAdapterConfig$
|
|
2966
|
+
const config = validateAdapterConfig$f(untrustedConfig, getAppAssets_ConfigPropertyNames);
|
|
2967
2967
|
// Invalid or incomplete config
|
|
2968
2968
|
if (config === null) {
|
|
2969
2969
|
return null;
|
|
@@ -2972,19 +2972,19 @@ const getAppAssetsAdapterFactory = (luvio) => function AppFramework__getAppAsset
|
|
|
2972
2972
|
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
2973
2973
|
};
|
|
2974
2974
|
|
|
2975
|
-
function select$
|
|
2976
|
-
return select$
|
|
2975
|
+
function select$t(luvio, params) {
|
|
2976
|
+
return select$w();
|
|
2977
2977
|
}
|
|
2978
|
-
function getResponseCacheKeys$
|
|
2978
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
2979
2979
|
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
2980
2980
|
}
|
|
2981
|
-
function ingestSuccess$
|
|
2981
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
2982
2982
|
const { body } = response;
|
|
2983
2983
|
const key = keyBuilderFromType$5(luvio, body);
|
|
2984
2984
|
luvio.storeIngest(key, ingest$7, body);
|
|
2985
2985
|
const snapshot = luvio.storeLookup({
|
|
2986
2986
|
recordId: key,
|
|
2987
|
-
node: select$
|
|
2987
|
+
node: select$t(),
|
|
2988
2988
|
variables: {},
|
|
2989
2989
|
});
|
|
2990
2990
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2995,7 +2995,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
2995
2995
|
deepFreeze(snapshot.data);
|
|
2996
2996
|
return snapshot;
|
|
2997
2997
|
}
|
|
2998
|
-
function createResourceRequest$
|
|
2998
|
+
function createResourceRequest$e(config) {
|
|
2999
2999
|
const headers = {};
|
|
3000
3000
|
return {
|
|
3001
3001
|
baseUri: '/services/data/v64.0',
|
|
@@ -3009,7 +3009,7 @@ function createResourceRequest$d(config) {
|
|
|
3009
3009
|
};
|
|
3010
3010
|
}
|
|
3011
3011
|
|
|
3012
|
-
const adapterName$
|
|
3012
|
+
const adapterName$e = 'createAppAsset';
|
|
3013
3013
|
const createAppAsset_ConfigPropertyMetadata = [
|
|
3014
3014
|
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3015
3015
|
generateParamConfigMetadata('appId', false, 2 /* Body */, 0 /* String */),
|
|
@@ -3020,11 +3020,11 @@ const createAppAsset_ConfigPropertyMetadata = [
|
|
|
3020
3020
|
generateParamConfigMetadata('templateSourceId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3021
3021
|
generateParamConfigMetadata('type', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3022
3022
|
];
|
|
3023
|
-
const createAppAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3024
|
-
const createResourceParams$
|
|
3025
|
-
function typeCheckConfig$
|
|
3023
|
+
const createAppAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, createAppAsset_ConfigPropertyMetadata);
|
|
3024
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$n(createAppAsset_ConfigPropertyMetadata);
|
|
3025
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
3026
3026
|
const config = {};
|
|
3027
|
-
typeCheckConfig$
|
|
3027
|
+
typeCheckConfig$n(untrustedConfig, config, createAppAsset_ConfigPropertyMetadata);
|
|
3028
3028
|
const untrustedConfig_assetIdOrName2 = untrustedConfig.assetIdOrName2;
|
|
3029
3029
|
if (typeof untrustedConfig_assetIdOrName2 === 'string') {
|
|
3030
3030
|
config.assetIdOrName2 = untrustedConfig_assetIdOrName2;
|
|
@@ -3062,30 +3062,30 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
3062
3062
|
}
|
|
3063
3063
|
return config;
|
|
3064
3064
|
}
|
|
3065
|
-
function validateAdapterConfig$
|
|
3065
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
3066
3066
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3067
3067
|
return null;
|
|
3068
3068
|
}
|
|
3069
3069
|
if (process.env.NODE_ENV !== 'production') {
|
|
3070
3070
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3071
3071
|
}
|
|
3072
|
-
const config = typeCheckConfig$
|
|
3072
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
3073
3073
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3074
3074
|
return null;
|
|
3075
3075
|
}
|
|
3076
3076
|
return config;
|
|
3077
3077
|
}
|
|
3078
|
-
function buildNetworkSnapshot$
|
|
3079
|
-
const resourceParams = createResourceParams$
|
|
3080
|
-
const request = createResourceRequest$
|
|
3078
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
3079
|
+
const resourceParams = createResourceParams$e(config);
|
|
3080
|
+
const request = createResourceRequest$e(resourceParams);
|
|
3081
3081
|
return luvio.dispatchResourceRequest(request, options)
|
|
3082
3082
|
.then((response) => {
|
|
3083
3083
|
return luvio.handleSuccessResponse(() => {
|
|
3084
|
-
const snapshot = ingestSuccess$
|
|
3084
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
3085
3085
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3086
3086
|
}, () => {
|
|
3087
3087
|
const cache = new StoreKeyMap();
|
|
3088
|
-
getResponseCacheKeys$
|
|
3088
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
3089
3089
|
return cache;
|
|
3090
3090
|
});
|
|
3091
3091
|
}, (response) => {
|
|
@@ -3095,17 +3095,17 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
3095
3095
|
}
|
|
3096
3096
|
const createAppAssetAdapterFactory = (luvio) => {
|
|
3097
3097
|
return function createAppAsset(untrustedConfig) {
|
|
3098
|
-
const config = validateAdapterConfig$
|
|
3098
|
+
const config = validateAdapterConfig$e(untrustedConfig, createAppAsset_ConfigPropertyNames);
|
|
3099
3099
|
// Invalid or incomplete config
|
|
3100
3100
|
if (config === null) {
|
|
3101
3101
|
throw new Error('Invalid config for "createAppAsset"');
|
|
3102
3102
|
}
|
|
3103
|
-
return buildNetworkSnapshot$
|
|
3103
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
3104
3104
|
};
|
|
3105
3105
|
};
|
|
3106
3106
|
|
|
3107
|
-
function select$
|
|
3108
|
-
return select$
|
|
3107
|
+
function select$s(luvio, params) {
|
|
3108
|
+
return select$w();
|
|
3109
3109
|
}
|
|
3110
3110
|
function keyBuilder$h(luvio, params) {
|
|
3111
3111
|
return keyBuilder$l(luvio, {
|
|
@@ -3113,16 +3113,16 @@ function keyBuilder$h(luvio, params) {
|
|
|
3113
3113
|
id: params.urlParams.appAssetId
|
|
3114
3114
|
});
|
|
3115
3115
|
}
|
|
3116
|
-
function getResponseCacheKeys$
|
|
3116
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
3117
3117
|
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
3118
3118
|
}
|
|
3119
|
-
function ingestSuccess$
|
|
3119
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
3120
3120
|
const { body } = response;
|
|
3121
3121
|
const key = keyBuilder$h(luvio, resourceParams);
|
|
3122
3122
|
luvio.storeIngest(key, ingest$7, body);
|
|
3123
3123
|
const snapshot = luvio.storeLookup({
|
|
3124
3124
|
recordId: key,
|
|
3125
|
-
node: select$
|
|
3125
|
+
node: select$s(),
|
|
3126
3126
|
variables: {},
|
|
3127
3127
|
}, snapshotRefresh);
|
|
3128
3128
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3145,7 +3145,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
3145
3145
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3146
3146
|
return errorSnapshot;
|
|
3147
3147
|
}
|
|
3148
|
-
function createResourceRequest$
|
|
3148
|
+
function createResourceRequest$d(config) {
|
|
3149
3149
|
const headers = {};
|
|
3150
3150
|
return {
|
|
3151
3151
|
baseUri: '/services/data/v64.0',
|
|
@@ -3159,61 +3159,61 @@ function createResourceRequest$c(config) {
|
|
|
3159
3159
|
};
|
|
3160
3160
|
}
|
|
3161
3161
|
|
|
3162
|
-
const adapterName$
|
|
3162
|
+
const adapterName$d = 'getAppAsset';
|
|
3163
3163
|
const getAppAsset_ConfigPropertyMetadata = [
|
|
3164
3164
|
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3165
3165
|
generateParamConfigMetadata('appAssetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3166
3166
|
];
|
|
3167
|
-
const getAppAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3168
|
-
const createResourceParams$
|
|
3167
|
+
const getAppAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getAppAsset_ConfigPropertyMetadata);
|
|
3168
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$n(getAppAsset_ConfigPropertyMetadata);
|
|
3169
3169
|
function keyBuilder$g(luvio, config) {
|
|
3170
|
-
const resourceParams = createResourceParams$
|
|
3170
|
+
const resourceParams = createResourceParams$d(config);
|
|
3171
3171
|
return keyBuilder$h(luvio, resourceParams);
|
|
3172
3172
|
}
|
|
3173
|
-
function typeCheckConfig$
|
|
3173
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
3174
3174
|
const config = {};
|
|
3175
|
-
typeCheckConfig$
|
|
3175
|
+
typeCheckConfig$n(untrustedConfig, config, getAppAsset_ConfigPropertyMetadata);
|
|
3176
3176
|
return config;
|
|
3177
3177
|
}
|
|
3178
|
-
function validateAdapterConfig$
|
|
3178
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
3179
3179
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3180
3180
|
return null;
|
|
3181
3181
|
}
|
|
3182
3182
|
if (process.env.NODE_ENV !== 'production') {
|
|
3183
3183
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3184
3184
|
}
|
|
3185
|
-
const config = typeCheckConfig$
|
|
3185
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
3186
3186
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3187
3187
|
return null;
|
|
3188
3188
|
}
|
|
3189
3189
|
return config;
|
|
3190
3190
|
}
|
|
3191
3191
|
function adapterFragment$5(luvio, config) {
|
|
3192
|
-
createResourceParams$
|
|
3193
|
-
return select$
|
|
3192
|
+
createResourceParams$d(config);
|
|
3193
|
+
return select$s();
|
|
3194
3194
|
}
|
|
3195
3195
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
3196
|
-
const snapshot = ingestSuccess$
|
|
3196
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
3197
3197
|
config,
|
|
3198
|
-
resolve: () => buildNetworkSnapshot$
|
|
3198
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
3199
3199
|
});
|
|
3200
3200
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3201
3201
|
}
|
|
3202
3202
|
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
3203
3203
|
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
3204
3204
|
config,
|
|
3205
|
-
resolve: () => buildNetworkSnapshot$
|
|
3205
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
3206
3206
|
});
|
|
3207
3207
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3208
3208
|
}
|
|
3209
|
-
function buildNetworkSnapshot$
|
|
3210
|
-
const resourceParams = createResourceParams$
|
|
3211
|
-
const request = createResourceRequest$
|
|
3209
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
3210
|
+
const resourceParams = createResourceParams$d(config);
|
|
3211
|
+
const request = createResourceRequest$d(resourceParams);
|
|
3212
3212
|
return luvio.dispatchResourceRequest(request, options)
|
|
3213
3213
|
.then((response) => {
|
|
3214
3214
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
3215
3215
|
const cache = new StoreKeyMap();
|
|
3216
|
-
getResponseCacheKeys$
|
|
3216
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
3217
3217
|
return cache;
|
|
3218
3218
|
});
|
|
3219
3219
|
}, (response) => {
|
|
@@ -3221,7 +3221,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
3221
3221
|
});
|
|
3222
3222
|
}
|
|
3223
3223
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
3224
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
3224
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
3225
3225
|
}
|
|
3226
3226
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
3227
3227
|
const { luvio, config } = context;
|
|
@@ -3232,12 +3232,12 @@ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
|
3232
3232
|
};
|
|
3233
3233
|
const cacheSnapshot = storeLookup(selector, {
|
|
3234
3234
|
config,
|
|
3235
|
-
resolve: () => buildNetworkSnapshot$
|
|
3235
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
3236
3236
|
});
|
|
3237
3237
|
return cacheSnapshot;
|
|
3238
3238
|
}
|
|
3239
3239
|
const getAppAssetAdapterFactory = (luvio) => function AppFramework__getAppAsset(untrustedConfig, requestContext) {
|
|
3240
|
-
const config = validateAdapterConfig$
|
|
3240
|
+
const config = validateAdapterConfig$d(untrustedConfig, getAppAsset_ConfigPropertyNames);
|
|
3241
3241
|
// Invalid or incomplete config
|
|
3242
3242
|
if (config === null) {
|
|
3243
3243
|
return null;
|
|
@@ -3252,7 +3252,7 @@ function keyBuilder$f(luvio, params) {
|
|
|
3252
3252
|
id: params.urlParams.appAssetId
|
|
3253
3253
|
});
|
|
3254
3254
|
}
|
|
3255
|
-
function getResponseCacheKeys$
|
|
3255
|
+
function getResponseCacheKeys$c(cacheKeyMap, luvio, resourceParams) {
|
|
3256
3256
|
const key = keyBuilder$f(luvio, resourceParams);
|
|
3257
3257
|
cacheKeyMap.set(key, {
|
|
3258
3258
|
namespace: keyPrefix,
|
|
@@ -3264,7 +3264,7 @@ function evictSuccess$1(luvio, resourceParams) {
|
|
|
3264
3264
|
const key = keyBuilder$f(luvio, resourceParams);
|
|
3265
3265
|
luvio.storeEvict(key);
|
|
3266
3266
|
}
|
|
3267
|
-
function createResourceRequest$
|
|
3267
|
+
function createResourceRequest$c(config) {
|
|
3268
3268
|
const headers = {};
|
|
3269
3269
|
return {
|
|
3270
3270
|
baseUri: '/services/data/v64.0',
|
|
@@ -3278,34 +3278,34 @@ function createResourceRequest$b(config) {
|
|
|
3278
3278
|
};
|
|
3279
3279
|
}
|
|
3280
3280
|
|
|
3281
|
-
const adapterName$
|
|
3281
|
+
const adapterName$c = 'deleteAppAsset';
|
|
3282
3282
|
const deleteAppAsset_ConfigPropertyMetadata = [
|
|
3283
3283
|
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3284
3284
|
generateParamConfigMetadata('appAssetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3285
3285
|
];
|
|
3286
|
-
const deleteAppAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3287
|
-
const createResourceParams$
|
|
3288
|
-
function typeCheckConfig$
|
|
3286
|
+
const deleteAppAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteAppAsset_ConfigPropertyMetadata);
|
|
3287
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$n(deleteAppAsset_ConfigPropertyMetadata);
|
|
3288
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
3289
3289
|
const config = {};
|
|
3290
|
-
typeCheckConfig$
|
|
3290
|
+
typeCheckConfig$n(untrustedConfig, config, deleteAppAsset_ConfigPropertyMetadata);
|
|
3291
3291
|
return config;
|
|
3292
3292
|
}
|
|
3293
|
-
function validateAdapterConfig$
|
|
3293
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
3294
3294
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3295
3295
|
return null;
|
|
3296
3296
|
}
|
|
3297
3297
|
if (process.env.NODE_ENV !== 'production') {
|
|
3298
3298
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3299
3299
|
}
|
|
3300
|
-
const config = typeCheckConfig$
|
|
3300
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
3301
3301
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3302
3302
|
return null;
|
|
3303
3303
|
}
|
|
3304
3304
|
return config;
|
|
3305
3305
|
}
|
|
3306
|
-
function buildNetworkSnapshot$
|
|
3307
|
-
const resourceParams = createResourceParams$
|
|
3308
|
-
const request = createResourceRequest$
|
|
3306
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
3307
|
+
const resourceParams = createResourceParams$c(config);
|
|
3308
|
+
const request = createResourceRequest$c(resourceParams);
|
|
3309
3309
|
return luvio.dispatchResourceRequest(request, options)
|
|
3310
3310
|
.then(() => {
|
|
3311
3311
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3313,7 +3313,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
3313
3313
|
return luvio.storeBroadcast();
|
|
3314
3314
|
}, () => {
|
|
3315
3315
|
const cache = new StoreKeyMap();
|
|
3316
|
-
getResponseCacheKeys$
|
|
3316
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams);
|
|
3317
3317
|
return cache;
|
|
3318
3318
|
});
|
|
3319
3319
|
}, (response) => {
|
|
@@ -3323,28 +3323,28 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
3323
3323
|
}
|
|
3324
3324
|
const deleteAppAssetAdapterFactory = (luvio) => {
|
|
3325
3325
|
return function AppFrameworkdeleteAppAsset(untrustedConfig) {
|
|
3326
|
-
const config = validateAdapterConfig$
|
|
3326
|
+
const config = validateAdapterConfig$c(untrustedConfig, deleteAppAsset_ConfigPropertyNames);
|
|
3327
3327
|
// Invalid or incomplete config
|
|
3328
3328
|
if (config === null) {
|
|
3329
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3329
|
+
throw new Error(`Invalid config for "${adapterName$c}"`);
|
|
3330
3330
|
}
|
|
3331
|
-
return buildNetworkSnapshot$
|
|
3331
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
3332
3332
|
};
|
|
3333
3333
|
};
|
|
3334
3334
|
|
|
3335
|
-
function select$
|
|
3336
|
-
return select$
|
|
3335
|
+
function select$r(luvio, params) {
|
|
3336
|
+
return select$w();
|
|
3337
3337
|
}
|
|
3338
|
-
function getResponseCacheKeys$
|
|
3338
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
3339
3339
|
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
3340
3340
|
}
|
|
3341
|
-
function ingestSuccess$
|
|
3341
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
3342
3342
|
const { body } = response;
|
|
3343
3343
|
const key = keyBuilderFromType$5(luvio, body);
|
|
3344
3344
|
luvio.storeIngest(key, ingest$7, body);
|
|
3345
3345
|
const snapshot = luvio.storeLookup({
|
|
3346
3346
|
recordId: key,
|
|
3347
|
-
node: select$
|
|
3347
|
+
node: select$r(),
|
|
3348
3348
|
variables: {},
|
|
3349
3349
|
});
|
|
3350
3350
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3355,7 +3355,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
3355
3355
|
deepFreeze(snapshot.data);
|
|
3356
3356
|
return snapshot;
|
|
3357
3357
|
}
|
|
3358
|
-
function createResourceRequest$
|
|
3358
|
+
function createResourceRequest$b(config) {
|
|
3359
3359
|
const headers = {};
|
|
3360
3360
|
return {
|
|
3361
3361
|
baseUri: '/services/data/v64.0',
|
|
@@ -3369,7 +3369,7 @@ function createResourceRequest$a(config) {
|
|
|
3369
3369
|
};
|
|
3370
3370
|
}
|
|
3371
3371
|
|
|
3372
|
-
const adapterName$
|
|
3372
|
+
const adapterName$b = 'updateAppAsset';
|
|
3373
3373
|
const updateAppAsset_ConfigPropertyMetadata = [
|
|
3374
3374
|
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3375
3375
|
generateParamConfigMetadata('appAssetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
@@ -3381,11 +3381,11 @@ const updateAppAsset_ConfigPropertyMetadata = [
|
|
|
3381
3381
|
generateParamConfigMetadata('templateSourceId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3382
3382
|
generateParamConfigMetadata('type', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3383
3383
|
];
|
|
3384
|
-
const updateAppAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3385
|
-
const createResourceParams$
|
|
3386
|
-
function typeCheckConfig$
|
|
3384
|
+
const updateAppAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, updateAppAsset_ConfigPropertyMetadata);
|
|
3385
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$n(updateAppAsset_ConfigPropertyMetadata);
|
|
3386
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
3387
3387
|
const config = {};
|
|
3388
|
-
typeCheckConfig$
|
|
3388
|
+
typeCheckConfig$n(untrustedConfig, config, updateAppAsset_ConfigPropertyMetadata);
|
|
3389
3389
|
const untrustedConfig_assetIdOrName2 = untrustedConfig.assetIdOrName2;
|
|
3390
3390
|
if (typeof untrustedConfig_assetIdOrName2 === 'string') {
|
|
3391
3391
|
config.assetIdOrName2 = untrustedConfig_assetIdOrName2;
|
|
@@ -3423,6 +3423,97 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
3423
3423
|
}
|
|
3424
3424
|
return config;
|
|
3425
3425
|
}
|
|
3426
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
3427
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
3428
|
+
return null;
|
|
3429
|
+
}
|
|
3430
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3431
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
3432
|
+
}
|
|
3433
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
3434
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3435
|
+
return null;
|
|
3436
|
+
}
|
|
3437
|
+
return config;
|
|
3438
|
+
}
|
|
3439
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
3440
|
+
const resourceParams = createResourceParams$b(config);
|
|
3441
|
+
const request = createResourceRequest$b(resourceParams);
|
|
3442
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
3443
|
+
.then((response) => {
|
|
3444
|
+
return luvio.handleSuccessResponse(() => {
|
|
3445
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
3446
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3447
|
+
}, () => {
|
|
3448
|
+
const cache = new StoreKeyMap();
|
|
3449
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
3450
|
+
return cache;
|
|
3451
|
+
});
|
|
3452
|
+
}, (response) => {
|
|
3453
|
+
deepFreeze(response);
|
|
3454
|
+
throw response;
|
|
3455
|
+
});
|
|
3456
|
+
}
|
|
3457
|
+
const updateAppAssetAdapterFactory = (luvio) => {
|
|
3458
|
+
return function updateAppAsset(untrustedConfig) {
|
|
3459
|
+
const config = validateAdapterConfig$b(untrustedConfig, updateAppAsset_ConfigPropertyNames);
|
|
3460
|
+
// Invalid or incomplete config
|
|
3461
|
+
if (config === null) {
|
|
3462
|
+
throw new Error('Invalid config for "updateAppAsset"');
|
|
3463
|
+
}
|
|
3464
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
3465
|
+
};
|
|
3466
|
+
};
|
|
3467
|
+
|
|
3468
|
+
function select$q(luvio, params) {
|
|
3469
|
+
return select$E();
|
|
3470
|
+
}
|
|
3471
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
3472
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
3473
|
+
}
|
|
3474
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
3475
|
+
const { body } = response;
|
|
3476
|
+
const key = keyBuilderFromType$8(luvio, body);
|
|
3477
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
3478
|
+
const snapshot = luvio.storeLookup({
|
|
3479
|
+
recordId: key,
|
|
3480
|
+
node: select$q(),
|
|
3481
|
+
variables: {},
|
|
3482
|
+
});
|
|
3483
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3484
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3485
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3486
|
+
}
|
|
3487
|
+
}
|
|
3488
|
+
deepFreeze(snapshot.data);
|
|
3489
|
+
return snapshot;
|
|
3490
|
+
}
|
|
3491
|
+
function createResourceRequest$a(config) {
|
|
3492
|
+
const headers = {};
|
|
3493
|
+
return {
|
|
3494
|
+
baseUri: '/services/data/v64.0',
|
|
3495
|
+
basePath: '/app-framework/apps/' + config.urlParams.appIdOrApiName + '/updateBasicApp',
|
|
3496
|
+
method: 'post',
|
|
3497
|
+
body: config.body,
|
|
3498
|
+
urlParams: config.urlParams,
|
|
3499
|
+
queryParams: {},
|
|
3500
|
+
headers,
|
|
3501
|
+
priority: 'normal',
|
|
3502
|
+
};
|
|
3503
|
+
}
|
|
3504
|
+
|
|
3505
|
+
const adapterName$a = 'updateBasicApp';
|
|
3506
|
+
const updateBasicApp_ConfigPropertyMetadata = [
|
|
3507
|
+
generateParamConfigMetadata('appIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3508
|
+
generateParamConfigMetadata('assetIds', true, 2 /* Body */, 0 /* String */, true),
|
|
3509
|
+
];
|
|
3510
|
+
const updateBasicApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, updateBasicApp_ConfigPropertyMetadata);
|
|
3511
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$n(updateBasicApp_ConfigPropertyMetadata);
|
|
3512
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
3513
|
+
const config = {};
|
|
3514
|
+
typeCheckConfig$n(untrustedConfig, config, updateBasicApp_ConfigPropertyMetadata);
|
|
3515
|
+
return config;
|
|
3516
|
+
}
|
|
3426
3517
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
3427
3518
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3428
3519
|
return null;
|
|
@@ -3454,12 +3545,12 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
3454
3545
|
throw response;
|
|
3455
3546
|
});
|
|
3456
3547
|
}
|
|
3457
|
-
const
|
|
3458
|
-
return function
|
|
3459
|
-
const config = validateAdapterConfig$a(untrustedConfig,
|
|
3548
|
+
const updateBasicAppAdapterFactory = (luvio) => {
|
|
3549
|
+
return function updateBasicApp(untrustedConfig) {
|
|
3550
|
+
const config = validateAdapterConfig$a(untrustedConfig, updateBasicApp_ConfigPropertyNames);
|
|
3460
3551
|
// Invalid or incomplete config
|
|
3461
3552
|
if (config === null) {
|
|
3462
|
-
throw new Error('Invalid config for "
|
|
3553
|
+
throw new Error('Invalid config for "updateBasicApp"');
|
|
3463
3554
|
}
|
|
3464
3555
|
return buildNetworkSnapshot$a(luvio, config);
|
|
3465
3556
|
};
|
|
@@ -3517,7 +3608,7 @@ const select$p = function InstalledAssetCollectionRepresentationSelect() {
|
|
|
3517
3608
|
name: 'assets',
|
|
3518
3609
|
kind: 'Link',
|
|
3519
3610
|
plural: true,
|
|
3520
|
-
fragment: select$
|
|
3611
|
+
fragment: select$w()
|
|
3521
3612
|
}
|
|
3522
3613
|
]
|
|
3523
3614
|
};
|
|
@@ -3619,14 +3710,14 @@ const getInstalledAssets_ConfigPropertyMetadata = [
|
|
|
3619
3710
|
generateParamConfigMetadata('assetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3620
3711
|
];
|
|
3621
3712
|
const getInstalledAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getInstalledAssets_ConfigPropertyMetadata);
|
|
3622
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
3713
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$n(getInstalledAssets_ConfigPropertyMetadata);
|
|
3623
3714
|
function keyBuilder$d(luvio, config) {
|
|
3624
3715
|
const resourceParams = createResourceParams$9(config);
|
|
3625
3716
|
return keyBuilder$e(luvio, resourceParams);
|
|
3626
3717
|
}
|
|
3627
3718
|
function typeCheckConfig$9(untrustedConfig) {
|
|
3628
3719
|
const config = {};
|
|
3629
|
-
typeCheckConfig$
|
|
3720
|
+
typeCheckConfig$n(untrustedConfig, config, getInstalledAssets_ConfigPropertyMetadata);
|
|
3630
3721
|
return config;
|
|
3631
3722
|
}
|
|
3632
3723
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -5263,7 +5354,7 @@ function createResourceRequest$8(config) {
|
|
|
5263
5354
|
const adapterName$8 = 'getTemplates';
|
|
5264
5355
|
const getTemplates_ConfigPropertyMetadata = [];
|
|
5265
5356
|
const getTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getTemplates_ConfigPropertyMetadata);
|
|
5266
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
5357
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$n(getTemplates_ConfigPropertyMetadata);
|
|
5267
5358
|
function keyBuilder$a(luvio, config) {
|
|
5268
5359
|
createResourceParams$8(config);
|
|
5269
5360
|
return keyBuilder$b();
|
|
@@ -5564,10 +5655,10 @@ const createTemplate_ConfigPropertyMetadata = [
|
|
|
5564
5655
|
generateParamConfigMetadata('variableDefinition', false, 2 /* Body */, 0 /* String */),
|
|
5565
5656
|
];
|
|
5566
5657
|
const createTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createTemplate_ConfigPropertyMetadata);
|
|
5567
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
5658
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$n(createTemplate_ConfigPropertyMetadata);
|
|
5568
5659
|
function typeCheckConfig$7(untrustedConfig) {
|
|
5569
5660
|
const config = {};
|
|
5570
|
-
typeCheckConfig$
|
|
5661
|
+
typeCheckConfig$n(untrustedConfig, config, createTemplate_ConfigPropertyMetadata);
|
|
5571
5662
|
const untrustedConfig_chainDefinitions = untrustedConfig.chainDefinitions;
|
|
5572
5663
|
if (ArrayIsArray$1(untrustedConfig_chainDefinitions)) {
|
|
5573
5664
|
const untrustedConfig_chainDefinitions_array = [];
|
|
@@ -5720,14 +5811,14 @@ const getTemplate_ConfigPropertyMetadata = [
|
|
|
5720
5811
|
generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5721
5812
|
];
|
|
5722
5813
|
const getTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getTemplate_ConfigPropertyMetadata);
|
|
5723
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
5814
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$n(getTemplate_ConfigPropertyMetadata);
|
|
5724
5815
|
function keyBuilder$8(luvio, config) {
|
|
5725
5816
|
const resourceParams = createResourceParams$6(config);
|
|
5726
5817
|
return keyBuilder$9(luvio, resourceParams);
|
|
5727
5818
|
}
|
|
5728
5819
|
function typeCheckConfig$6(untrustedConfig) {
|
|
5729
5820
|
const config = {};
|
|
5730
|
-
typeCheckConfig$
|
|
5821
|
+
typeCheckConfig$n(untrustedConfig, config, getTemplate_ConfigPropertyMetadata);
|
|
5731
5822
|
return config;
|
|
5732
5823
|
}
|
|
5733
5824
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -5841,15 +5932,16 @@ function createResourceRequest$5(config) {
|
|
|
5841
5932
|
const adapterName$5 = 'updateTemplate';
|
|
5842
5933
|
const updateTemplate_ConfigPropertyMetadata = [
|
|
5843
5934
|
generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5935
|
+
generateParamConfigMetadata('applicationSourceId', false, 2 /* Body */, 0 /* String */),
|
|
5844
5936
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
5845
5937
|
generateParamConfigMetadata('releaseInfo', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5846
5938
|
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
5847
5939
|
];
|
|
5848
5940
|
const updateTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, updateTemplate_ConfigPropertyMetadata);
|
|
5849
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
5941
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$n(updateTemplate_ConfigPropertyMetadata);
|
|
5850
5942
|
function typeCheckConfig$5(untrustedConfig) {
|
|
5851
5943
|
const config = {};
|
|
5852
|
-
typeCheckConfig$
|
|
5944
|
+
typeCheckConfig$n(untrustedConfig, config, updateTemplate_ConfigPropertyMetadata);
|
|
5853
5945
|
const untrustedConfig_releaseInfo = untrustedConfig.releaseInfo;
|
|
5854
5946
|
const referenceReleaseInfoInputRepresentationValidationError = validate$a(untrustedConfig_releaseInfo);
|
|
5855
5947
|
if (referenceReleaseInfoInputRepresentationValidationError === null) {
|
|
@@ -5935,10 +6027,10 @@ const deleteTemplate_ConfigPropertyMetadata = [
|
|
|
5935
6027
|
generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5936
6028
|
];
|
|
5937
6029
|
const deleteTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deleteTemplate_ConfigPropertyMetadata);
|
|
5938
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
6030
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$n(deleteTemplate_ConfigPropertyMetadata);
|
|
5939
6031
|
function typeCheckConfig$4(untrustedConfig) {
|
|
5940
6032
|
const config = {};
|
|
5941
|
-
typeCheckConfig$
|
|
6033
|
+
typeCheckConfig$n(untrustedConfig, config, deleteTemplate_ConfigPropertyMetadata);
|
|
5942
6034
|
return config;
|
|
5943
6035
|
}
|
|
5944
6036
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -6640,14 +6732,14 @@ const getTemplateConfig_ConfigPropertyMetadata = [
|
|
|
6640
6732
|
generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6641
6733
|
];
|
|
6642
6734
|
const getTemplateConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getTemplateConfig_ConfigPropertyMetadata);
|
|
6643
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
6735
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$n(getTemplateConfig_ConfigPropertyMetadata);
|
|
6644
6736
|
function keyBuilder$4(luvio, config) {
|
|
6645
6737
|
const resourceParams = createResourceParams$3(config);
|
|
6646
6738
|
return keyBuilder$5(luvio, resourceParams);
|
|
6647
6739
|
}
|
|
6648
6740
|
function typeCheckConfig$3(untrustedConfig) {
|
|
6649
6741
|
const config = {};
|
|
6650
|
-
typeCheckConfig$
|
|
6742
|
+
typeCheckConfig$n(untrustedConfig, config, getTemplateConfig_ConfigPropertyMetadata);
|
|
6651
6743
|
return config;
|
|
6652
6744
|
}
|
|
6653
6745
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -6993,10 +7085,10 @@ const readinessCheck_ConfigPropertyMetadata = [
|
|
|
6993
7085
|
generateParamConfigMetadata('templateValues', false, 2 /* Body */, 4 /* Unsupported */),
|
|
6994
7086
|
];
|
|
6995
7087
|
const readinessCheck_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, readinessCheck_ConfigPropertyMetadata);
|
|
6996
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
7088
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$n(readinessCheck_ConfigPropertyMetadata);
|
|
6997
7089
|
function typeCheckConfig$2(untrustedConfig) {
|
|
6998
7090
|
const config = {};
|
|
6999
|
-
typeCheckConfig$
|
|
7091
|
+
typeCheckConfig$n(untrustedConfig, config, readinessCheck_ConfigPropertyMetadata);
|
|
7000
7092
|
const untrustedConfig_templateValues = untrustedConfig.templateValues;
|
|
7001
7093
|
if (untrustedIsObject(untrustedConfig_templateValues)) {
|
|
7002
7094
|
const untrustedConfig_templateValues_object = {};
|
|
@@ -7215,14 +7307,14 @@ const getTags_ConfigPropertyMetadata = [
|
|
|
7215
7307
|
generateParamConfigMetadata('templateIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7216
7308
|
];
|
|
7217
7309
|
const getTags_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getTags_ConfigPropertyMetadata);
|
|
7218
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
7310
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$n(getTags_ConfigPropertyMetadata);
|
|
7219
7311
|
function keyBuilder(luvio, config) {
|
|
7220
7312
|
const resourceParams = createResourceParams$1(config);
|
|
7221
7313
|
return keyBuilder$1(luvio, resourceParams);
|
|
7222
7314
|
}
|
|
7223
7315
|
function typeCheckConfig$1(untrustedConfig) {
|
|
7224
7316
|
const config = {};
|
|
7225
|
-
typeCheckConfig$
|
|
7317
|
+
typeCheckConfig$n(untrustedConfig, config, getTags_ConfigPropertyMetadata);
|
|
7226
7318
|
return config;
|
|
7227
7319
|
}
|
|
7228
7320
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -7339,10 +7431,10 @@ const setTags_ConfigPropertyMetadata = [
|
|
|
7339
7431
|
generateParamConfigMetadata('tags', false, 2 /* Body */, 4 /* Unsupported */),
|
|
7340
7432
|
];
|
|
7341
7433
|
const setTags_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, setTags_ConfigPropertyMetadata);
|
|
7342
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
7434
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$n(setTags_ConfigPropertyMetadata);
|
|
7343
7435
|
function typeCheckConfig(untrustedConfig) {
|
|
7344
7436
|
const config = {};
|
|
7345
|
-
typeCheckConfig$
|
|
7437
|
+
typeCheckConfig$n(untrustedConfig, config, setTags_ConfigPropertyMetadata);
|
|
7346
7438
|
const untrustedConfig_tags = untrustedConfig.tags;
|
|
7347
7439
|
if (untrustedIsObject(untrustedConfig_tags)) {
|
|
7348
7440
|
const untrustedConfig_tags_object = {};
|
|
@@ -7402,4 +7494,4 @@ const setTagsAdapterFactory = (luvio) => {
|
|
|
7402
7494
|
};
|
|
7403
7495
|
};
|
|
7404
7496
|
|
|
7405
|
-
export { createAppAdapterFactory, createAppAssetAdapterFactory, createTemplateAdapterFactory, deleteAppAdapterFactory, deleteAppAssetAdapterFactory, deleteTemplateAdapterFactory, getAppActivitiesAdapterFactory, getAppActivityAdapterFactory, getAppAdapterFactory, getAppAssetAdapterFactory, getAppAssetsAdapterFactory, getAppsAdapterFactory, getInstalledAssetsAdapterFactory, getTagsAdapterFactory, getTemplateAdapterFactory, getTemplateConfigAdapterFactory, getTemplatesAdapterFactory, readinessCheckAdapterFactory, setTagsAdapterFactory, updateAppAdapterFactory, updateAppAssetAdapterFactory, updateTemplateAdapterFactory };
|
|
7497
|
+
export { createAppAdapterFactory, createAppAssetAdapterFactory, createTemplateAdapterFactory, deleteAppAdapterFactory, deleteAppAssetAdapterFactory, deleteTemplateAdapterFactory, getAppActivitiesAdapterFactory, getAppActivityAdapterFactory, getAppAdapterFactory, getAppAssetAdapterFactory, getAppAssetsAdapterFactory, getAppsAdapterFactory, getInstalledAssetsAdapterFactory, getTagsAdapterFactory, getTemplateAdapterFactory, getTemplateConfigAdapterFactory, getTemplatesAdapterFactory, readinessCheckAdapterFactory, setTagsAdapterFactory, updateAppAdapterFactory, updateAppAssetAdapterFactory, updateBasicAppAdapterFactory, updateTemplateAdapterFactory };
|