@salesforce/lds-adapters-industries-healthcloud 1.366.0 → 1.367.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/industries-healthcloud.js +1089 -738
- package/dist/es/es2018/types/src/generated/adapters/getIdpRecord.d.ts +27 -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 +3 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectHealthIdpByRecordId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/IDPGetDataFieldDataOutputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/IDPGetDataObjectDataOutputRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/IDPGetDataOutputRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/IDPGetDataResponseDataOutputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/IDPGetDataResponseErrorDetailsOutputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/IDPGetDataResponseErrorOutputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/VisitBroadcastOutputRepresentation.d.ts +1 -1
- package/package.json +4 -4
- package/sfdc/index.js +814 -455
- package/src/raml/api.raml +97 -1
- package/src/raml/luvio.raml +6 -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$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, typeCheckConfig as typeCheckConfig$j, StoreKeyMap, createResourceParams as createResourceParams$j } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -112,8 +112,8 @@ function createLink(ref) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
const VERSION$
|
|
116
|
-
function validate$
|
|
115
|
+
const VERSION$n = "9a4b29dafb135f2d93c3bb0d73b2f500";
|
|
116
|
+
function validate$I(obj, path = 'GenericConnectApiGETOutputRepresentation') {
|
|
117
117
|
const v_error = (() => {
|
|
118
118
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
119
119
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -161,62 +161,62 @@ function validate$C(obj, path = 'GenericConnectApiGETOutputRepresentation') {
|
|
|
161
161
|
})();
|
|
162
162
|
return v_error === undefined ? null : v_error;
|
|
163
163
|
}
|
|
164
|
-
const RepresentationType$
|
|
165
|
-
function normalize$
|
|
164
|
+
const RepresentationType$i = 'GenericConnectApiGETOutputRepresentation';
|
|
165
|
+
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
166
166
|
return input;
|
|
167
167
|
}
|
|
168
|
-
const select$
|
|
168
|
+
const select$G = function GenericConnectApiGETOutputRepresentationSelect() {
|
|
169
169
|
return {
|
|
170
170
|
kind: 'Fragment',
|
|
171
|
-
version: VERSION$
|
|
171
|
+
version: VERSION$n,
|
|
172
172
|
private: [],
|
|
173
173
|
opaque: true
|
|
174
174
|
};
|
|
175
175
|
};
|
|
176
|
-
function equals$
|
|
176
|
+
function equals$n(existing, incoming) {
|
|
177
177
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
178
178
|
return false;
|
|
179
179
|
}
|
|
180
180
|
return true;
|
|
181
181
|
}
|
|
182
|
-
const ingest$
|
|
182
|
+
const ingest$i = function GenericConnectApiGETOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
183
183
|
if (process.env.NODE_ENV !== 'production') {
|
|
184
|
-
const validateError = validate$
|
|
184
|
+
const validateError = validate$I(input);
|
|
185
185
|
if (validateError !== null) {
|
|
186
186
|
throw validateError;
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
const key = path.fullPath;
|
|
190
190
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
191
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
191
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "healthcloud", VERSION$n, RepresentationType$i, equals$n);
|
|
192
192
|
return createLink(key);
|
|
193
193
|
};
|
|
194
|
-
function getTypeCacheKeys$
|
|
194
|
+
function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
195
195
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
196
196
|
const rootKey = fullPathFactory();
|
|
197
197
|
rootKeySet.set(rootKey, {
|
|
198
198
|
namespace: keyPrefix,
|
|
199
|
-
representationName: RepresentationType$
|
|
199
|
+
representationName: RepresentationType$i,
|
|
200
200
|
mergeable: false
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
function select$
|
|
205
|
-
return select$
|
|
204
|
+
function select$F(luvio, params) {
|
|
205
|
+
return select$G();
|
|
206
206
|
}
|
|
207
|
-
function keyBuilder$
|
|
207
|
+
function keyBuilder$n(luvio, params) {
|
|
208
208
|
return keyPrefix + '::GenericConnectApiGETOutputRepresentation:(' + 'fields:' + params.queryParams.fields + ',' + 'limitBy:' + params.queryParams.limitBy + ',' + 'offset:' + params.queryParams.offset + ',' + 'searchTerm:' + params.queryParams.searchTerm + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'values:' + params.queryParams.values + ',' + 'context:' + params.urlParams.context + ')';
|
|
209
209
|
}
|
|
210
|
-
function getResponseCacheKeys$
|
|
211
|
-
getTypeCacheKeys$
|
|
210
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
211
|
+
getTypeCacheKeys$i(storeKeyMap, luvio, response, () => keyBuilder$n(luvio, resourceParams));
|
|
212
212
|
}
|
|
213
|
-
function ingestSuccess$
|
|
213
|
+
function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
214
214
|
const { body } = response;
|
|
215
|
-
const key = keyBuilder$
|
|
216
|
-
luvio.storeIngest(key, ingest$
|
|
215
|
+
const key = keyBuilder$n(luvio, resourceParams);
|
|
216
|
+
luvio.storeIngest(key, ingest$i, body);
|
|
217
217
|
const snapshot = luvio.storeLookup({
|
|
218
218
|
recordId: key,
|
|
219
|
-
node: select$
|
|
219
|
+
node: select$F(),
|
|
220
220
|
variables: {},
|
|
221
221
|
}, snapshotRefresh);
|
|
222
222
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -227,13 +227,13 @@ function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
227
227
|
deepFreeze(snapshot.data);
|
|
228
228
|
return snapshot;
|
|
229
229
|
}
|
|
230
|
-
function ingestError$
|
|
231
|
-
const key = keyBuilder$
|
|
230
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
231
|
+
const key = keyBuilder$n(luvio, params);
|
|
232
232
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
233
233
|
luvio.storeIngestError(key, errorSnapshot);
|
|
234
234
|
return errorSnapshot;
|
|
235
235
|
}
|
|
236
|
-
function createResourceRequest$
|
|
236
|
+
function createResourceRequest$i(config) {
|
|
237
237
|
const headers = {};
|
|
238
238
|
return {
|
|
239
239
|
baseUri: '/services/data/v65.0',
|
|
@@ -247,7 +247,7 @@ function createResourceRequest$h(config) {
|
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
const adapterName$
|
|
250
|
+
const adapterName$i = 'genericConnectApiGET';
|
|
251
251
|
const genericConnectApiGET_ConfigPropertyMetadata = [
|
|
252
252
|
generateParamConfigMetadata('context', true, 0 /* UrlParameter */, 0 /* String */),
|
|
253
253
|
generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
@@ -258,89 +258,89 @@ const genericConnectApiGET_ConfigPropertyMetadata = [
|
|
|
258
258
|
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
259
259
|
generateParamConfigMetadata('values', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
260
260
|
];
|
|
261
|
-
const genericConnectApiGET_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
262
|
-
const createResourceParams$
|
|
263
|
-
function keyBuilder$
|
|
264
|
-
const resourceParams = createResourceParams$
|
|
265
|
-
return keyBuilder$
|
|
261
|
+
const genericConnectApiGET_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, genericConnectApiGET_ConfigPropertyMetadata);
|
|
262
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$j(genericConnectApiGET_ConfigPropertyMetadata);
|
|
263
|
+
function keyBuilder$m(luvio, config) {
|
|
264
|
+
const resourceParams = createResourceParams$i(config);
|
|
265
|
+
return keyBuilder$n(luvio, resourceParams);
|
|
266
266
|
}
|
|
267
|
-
function typeCheckConfig$
|
|
267
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
268
268
|
const config = {};
|
|
269
|
-
typeCheckConfig$
|
|
269
|
+
typeCheckConfig$j(untrustedConfig, config, genericConnectApiGET_ConfigPropertyMetadata);
|
|
270
270
|
return config;
|
|
271
271
|
}
|
|
272
|
-
function validateAdapterConfig$
|
|
272
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
273
273
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
274
274
|
return null;
|
|
275
275
|
}
|
|
276
276
|
if (process.env.NODE_ENV !== 'production') {
|
|
277
277
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
278
278
|
}
|
|
279
|
-
const config = typeCheckConfig$
|
|
279
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
280
280
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
281
281
|
return null;
|
|
282
282
|
}
|
|
283
283
|
return config;
|
|
284
284
|
}
|
|
285
|
-
function adapterFragment$
|
|
286
|
-
createResourceParams$
|
|
287
|
-
return select$
|
|
285
|
+
function adapterFragment$4(luvio, config) {
|
|
286
|
+
createResourceParams$i(config);
|
|
287
|
+
return select$F();
|
|
288
288
|
}
|
|
289
|
-
function onFetchResponseSuccess$
|
|
290
|
-
const snapshot = ingestSuccess$
|
|
289
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
290
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
|
|
291
291
|
config,
|
|
292
|
-
resolve: () => buildNetworkSnapshot$
|
|
292
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
293
293
|
});
|
|
294
294
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
295
295
|
}
|
|
296
|
-
function onFetchResponseError$
|
|
297
|
-
const snapshot = ingestError$
|
|
296
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
297
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
298
298
|
config,
|
|
299
|
-
resolve: () => buildNetworkSnapshot$
|
|
299
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
300
300
|
});
|
|
301
301
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
302
302
|
}
|
|
303
|
-
function buildNetworkSnapshot$
|
|
304
|
-
const resourceParams = createResourceParams$
|
|
305
|
-
const request = createResourceRequest$
|
|
303
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
304
|
+
const resourceParams = createResourceParams$i(config);
|
|
305
|
+
const request = createResourceRequest$i(resourceParams);
|
|
306
306
|
return luvio.dispatchResourceRequest(request, options)
|
|
307
307
|
.then((response) => {
|
|
308
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
308
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
309
309
|
const cache = new StoreKeyMap();
|
|
310
|
-
getResponseCacheKeys$
|
|
310
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
311
311
|
return cache;
|
|
312
312
|
});
|
|
313
313
|
}, (response) => {
|
|
314
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
314
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
|
-
function buildNetworkSnapshotCachePolicy$
|
|
318
|
-
return buildNetworkSnapshotCachePolicy$
|
|
317
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
318
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
319
319
|
}
|
|
320
|
-
function buildCachedSnapshotCachePolicy$
|
|
320
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
321
321
|
const { luvio, config } = context;
|
|
322
322
|
const selector = {
|
|
323
|
-
recordId: keyBuilder$
|
|
324
|
-
node: adapterFragment$
|
|
323
|
+
recordId: keyBuilder$m(luvio, config),
|
|
324
|
+
node: adapterFragment$4(luvio, config),
|
|
325
325
|
variables: {},
|
|
326
326
|
};
|
|
327
327
|
const cacheSnapshot = storeLookup(selector, {
|
|
328
328
|
config,
|
|
329
|
-
resolve: () => buildNetworkSnapshot$
|
|
329
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
330
330
|
});
|
|
331
331
|
return cacheSnapshot;
|
|
332
332
|
}
|
|
333
333
|
const genericConnectApiGETAdapterFactory = (luvio) => function healthcloud__genericConnectApiGET(untrustedConfig, requestContext) {
|
|
334
|
-
const config = validateAdapterConfig$
|
|
334
|
+
const config = validateAdapterConfig$i(untrustedConfig, genericConnectApiGET_ConfigPropertyNames);
|
|
335
335
|
// Invalid or incomplete config
|
|
336
336
|
if (config === null) {
|
|
337
337
|
return null;
|
|
338
338
|
}
|
|
339
339
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
340
|
-
buildCachedSnapshotCachePolicy$
|
|
340
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
341
341
|
};
|
|
342
342
|
|
|
343
|
-
function validate$
|
|
343
|
+
function validate$H(obj, path = 'GenericConnectApiPOSTInputRepresentation') {
|
|
344
344
|
const v_error = (() => {
|
|
345
345
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
346
346
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -370,8 +370,8 @@ function validate$B(obj, path = 'GenericConnectApiPOSTInputRepresentation') {
|
|
|
370
370
|
return v_error === undefined ? null : v_error;
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
-
const VERSION$
|
|
374
|
-
function validate$
|
|
373
|
+
const VERSION$m = "7b3913515d78cf7f964adb4e7095e8a5";
|
|
374
|
+
function validate$G(obj, path = 'GenericConnectApiPOSTOutputRepresentation') {
|
|
375
375
|
const v_error = (() => {
|
|
376
376
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
377
377
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -414,23 +414,23 @@ function validate$A(obj, path = 'GenericConnectApiPOSTOutputRepresentation') {
|
|
|
414
414
|
})();
|
|
415
415
|
return v_error === undefined ? null : v_error;
|
|
416
416
|
}
|
|
417
|
-
const RepresentationType$
|
|
418
|
-
function keyBuilder$
|
|
419
|
-
return keyPrefix + '::' + RepresentationType$
|
|
417
|
+
const RepresentationType$h = 'GenericConnectApiPOSTOutputRepresentation';
|
|
418
|
+
function keyBuilder$l(luvio, config) {
|
|
419
|
+
return keyPrefix + '::' + RepresentationType$h + ':' + config.isSuccess;
|
|
420
420
|
}
|
|
421
421
|
function keyBuilderFromType$d(luvio, object) {
|
|
422
422
|
const keyParams = {
|
|
423
423
|
isSuccess: object.message
|
|
424
424
|
};
|
|
425
|
-
return keyBuilder$
|
|
425
|
+
return keyBuilder$l(luvio, keyParams);
|
|
426
426
|
}
|
|
427
|
-
function normalize$
|
|
427
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
428
428
|
return input;
|
|
429
429
|
}
|
|
430
|
-
const select$
|
|
430
|
+
const select$E = function GenericConnectApiPOSTOutputRepresentationSelect() {
|
|
431
431
|
return {
|
|
432
432
|
kind: 'Fragment',
|
|
433
|
-
version: VERSION$
|
|
433
|
+
version: VERSION$m,
|
|
434
434
|
private: [],
|
|
435
435
|
selections: [
|
|
436
436
|
{
|
|
@@ -450,7 +450,7 @@ const select$C = function GenericConnectApiPOSTOutputRepresentationSelect() {
|
|
|
450
450
|
]
|
|
451
451
|
};
|
|
452
452
|
};
|
|
453
|
-
function equals$
|
|
453
|
+
function equals$m(existing, incoming) {
|
|
454
454
|
const existing_code = existing.code;
|
|
455
455
|
const incoming_code = incoming.code;
|
|
456
456
|
// if at least one of these optionals is defined
|
|
@@ -494,41 +494,41 @@ function equals$l(existing, incoming) {
|
|
|
494
494
|
}
|
|
495
495
|
return true;
|
|
496
496
|
}
|
|
497
|
-
const ingest$
|
|
497
|
+
const ingest$h = function GenericConnectApiPOSTOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
498
498
|
if (process.env.NODE_ENV !== 'production') {
|
|
499
|
-
const validateError = validate$
|
|
499
|
+
const validateError = validate$G(input);
|
|
500
500
|
if (validateError !== null) {
|
|
501
501
|
throw validateError;
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
const key = keyBuilderFromType$d(luvio, input);
|
|
505
505
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
506
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
506
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "healthcloud", VERSION$m, RepresentationType$h, equals$m);
|
|
507
507
|
return createLink(key);
|
|
508
508
|
};
|
|
509
|
-
function getTypeCacheKeys$
|
|
509
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
510
510
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
511
511
|
const rootKey = keyBuilderFromType$d(luvio, input);
|
|
512
512
|
rootKeySet.set(rootKey, {
|
|
513
513
|
namespace: keyPrefix,
|
|
514
|
-
representationName: RepresentationType$
|
|
514
|
+
representationName: RepresentationType$h,
|
|
515
515
|
mergeable: false
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
-
function select$
|
|
520
|
-
return select$
|
|
519
|
+
function select$D(luvio, params) {
|
|
520
|
+
return select$E();
|
|
521
521
|
}
|
|
522
|
-
function getResponseCacheKeys$
|
|
523
|
-
getTypeCacheKeys$
|
|
522
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
523
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response);
|
|
524
524
|
}
|
|
525
|
-
function ingestSuccess$
|
|
525
|
+
function ingestSuccess$h(luvio, resourceParams, response) {
|
|
526
526
|
const { body } = response;
|
|
527
527
|
const key = keyBuilderFromType$d(luvio, body);
|
|
528
|
-
luvio.storeIngest(key, ingest$
|
|
528
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
529
529
|
const snapshot = luvio.storeLookup({
|
|
530
530
|
recordId: key,
|
|
531
|
-
node: select$
|
|
531
|
+
node: select$D(),
|
|
532
532
|
variables: {},
|
|
533
533
|
});
|
|
534
534
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -539,7 +539,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
|
|
|
539
539
|
deepFreeze(snapshot.data);
|
|
540
540
|
return snapshot;
|
|
541
541
|
}
|
|
542
|
-
function createResourceRequest$
|
|
542
|
+
function createResourceRequest$h(config) {
|
|
543
543
|
const headers = {};
|
|
544
544
|
return {
|
|
545
545
|
baseUri: '/services/data/v65.0',
|
|
@@ -553,47 +553,47 @@ function createResourceRequest$g(config) {
|
|
|
553
553
|
};
|
|
554
554
|
}
|
|
555
555
|
|
|
556
|
-
const adapterName$
|
|
556
|
+
const adapterName$h = 'genericConnectApiPOST';
|
|
557
557
|
const genericConnectApiPOST_ConfigPropertyMetadata = [
|
|
558
558
|
generateParamConfigMetadata('context', true, 0 /* UrlParameter */, 0 /* String */),
|
|
559
559
|
generateParamConfigMetadata('GenericConnectApiPOSTInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
560
560
|
];
|
|
561
|
-
const genericConnectApiPOST_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
562
|
-
const createResourceParams$
|
|
563
|
-
function typeCheckConfig$
|
|
561
|
+
const genericConnectApiPOST_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, genericConnectApiPOST_ConfigPropertyMetadata);
|
|
562
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$j(genericConnectApiPOST_ConfigPropertyMetadata);
|
|
563
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
564
564
|
const config = {};
|
|
565
|
-
typeCheckConfig$
|
|
565
|
+
typeCheckConfig$j(untrustedConfig, config, genericConnectApiPOST_ConfigPropertyMetadata);
|
|
566
566
|
const untrustedConfig_GenericConnectApiPOSTInput = untrustedConfig.GenericConnectApiPOSTInput;
|
|
567
|
-
const referenceGenericConnectApiPOSTInputRepresentationValidationError = validate$
|
|
567
|
+
const referenceGenericConnectApiPOSTInputRepresentationValidationError = validate$H(untrustedConfig_GenericConnectApiPOSTInput);
|
|
568
568
|
if (referenceGenericConnectApiPOSTInputRepresentationValidationError === null) {
|
|
569
569
|
config.GenericConnectApiPOSTInput = untrustedConfig_GenericConnectApiPOSTInput;
|
|
570
570
|
}
|
|
571
571
|
return config;
|
|
572
572
|
}
|
|
573
|
-
function validateAdapterConfig$
|
|
573
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
574
574
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
575
575
|
return null;
|
|
576
576
|
}
|
|
577
577
|
if (process.env.NODE_ENV !== 'production') {
|
|
578
578
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
579
579
|
}
|
|
580
|
-
const config = typeCheckConfig$
|
|
580
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
581
581
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
582
582
|
return null;
|
|
583
583
|
}
|
|
584
584
|
return config;
|
|
585
585
|
}
|
|
586
|
-
function buildNetworkSnapshot$
|
|
587
|
-
const resourceParams = createResourceParams$
|
|
588
|
-
const request = createResourceRequest$
|
|
586
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
587
|
+
const resourceParams = createResourceParams$h(config);
|
|
588
|
+
const request = createResourceRequest$h(resourceParams);
|
|
589
589
|
return luvio.dispatchResourceRequest(request, options)
|
|
590
590
|
.then((response) => {
|
|
591
591
|
return luvio.handleSuccessResponse(() => {
|
|
592
|
-
const snapshot = ingestSuccess$
|
|
592
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response);
|
|
593
593
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
594
594
|
}, () => {
|
|
595
595
|
const cache = new StoreKeyMap();
|
|
596
|
-
getResponseCacheKeys$
|
|
596
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
597
597
|
return cache;
|
|
598
598
|
});
|
|
599
599
|
}, (response) => {
|
|
@@ -603,16 +603,16 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
603
603
|
}
|
|
604
604
|
const genericConnectApiPOSTAdapterFactory = (luvio) => {
|
|
605
605
|
return function genericConnectApiPOST(untrustedConfig) {
|
|
606
|
-
const config = validateAdapterConfig$
|
|
606
|
+
const config = validateAdapterConfig$h(untrustedConfig, genericConnectApiPOST_ConfigPropertyNames);
|
|
607
607
|
// Invalid or incomplete config
|
|
608
608
|
if (config === null) {
|
|
609
609
|
throw new Error('Invalid config for "genericConnectApiPOST"');
|
|
610
610
|
}
|
|
611
|
-
return buildNetworkSnapshot$
|
|
611
|
+
return buildNetworkSnapshot$h(luvio, config);
|
|
612
612
|
};
|
|
613
613
|
};
|
|
614
614
|
|
|
615
|
-
function validate$
|
|
615
|
+
function validate$F(obj, path = 'SearchConditionInputRepresentation') {
|
|
616
616
|
const v_error = (() => {
|
|
617
617
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
618
618
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -638,7 +638,7 @@ function validate$z(obj, path = 'SearchConditionInputRepresentation') {
|
|
|
638
638
|
return v_error === undefined ? null : v_error;
|
|
639
639
|
}
|
|
640
640
|
|
|
641
|
-
function validate$
|
|
641
|
+
function validate$E(obj, path = 'GetSlotsInputRepresentation') {
|
|
642
642
|
const v_error = (() => {
|
|
643
643
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
644
644
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -665,7 +665,7 @@ function validate$y(obj, path = 'GetSlotsInputRepresentation') {
|
|
|
665
665
|
for (let i = 0; i < obj_searchConditions.length; i++) {
|
|
666
666
|
const obj_searchConditions_item = obj_searchConditions[i];
|
|
667
667
|
const path_searchConditions_item = path_searchConditions + '[' + i + ']';
|
|
668
|
-
const referencepath_searchConditions_itemValidationError = validate$
|
|
668
|
+
const referencepath_searchConditions_itemValidationError = validate$F(obj_searchConditions_item, path_searchConditions_item);
|
|
669
669
|
if (referencepath_searchConditions_itemValidationError !== null) {
|
|
670
670
|
let message = 'Object doesn\'t match SearchConditionInputRepresentation (at "' + path_searchConditions_item + '")\n';
|
|
671
671
|
message += referencepath_searchConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -688,8 +688,8 @@ function validate$y(obj, path = 'GetSlotsInputRepresentation') {
|
|
|
688
688
|
return v_error === undefined ? null : v_error;
|
|
689
689
|
}
|
|
690
690
|
|
|
691
|
-
const VERSION$
|
|
692
|
-
function validate$
|
|
691
|
+
const VERSION$l = "21bcc7331e8d2943e1f2182cc502d1dc";
|
|
692
|
+
function validate$D(obj, path = 'GetSlotsOutputRepresentation') {
|
|
693
693
|
const v_error = (() => {
|
|
694
694
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
695
695
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -762,23 +762,23 @@ function validate$x(obj, path = 'GetSlotsOutputRepresentation') {
|
|
|
762
762
|
})();
|
|
763
763
|
return v_error === undefined ? null : v_error;
|
|
764
764
|
}
|
|
765
|
-
const RepresentationType$
|
|
766
|
-
function keyBuilder$
|
|
767
|
-
return keyPrefix + '::' + RepresentationType$
|
|
765
|
+
const RepresentationType$g = 'GetSlotsOutputRepresentation';
|
|
766
|
+
function keyBuilder$k(luvio, config) {
|
|
767
|
+
return keyPrefix + '::' + RepresentationType$g + ':' + config.isSuccess;
|
|
768
768
|
}
|
|
769
769
|
function keyBuilderFromType$c(luvio, object) {
|
|
770
770
|
const keyParams = {
|
|
771
771
|
isSuccess: object.isSuccess
|
|
772
772
|
};
|
|
773
|
-
return keyBuilder$
|
|
773
|
+
return keyBuilder$k(luvio, keyParams);
|
|
774
774
|
}
|
|
775
|
-
function normalize$
|
|
775
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
776
776
|
return input;
|
|
777
777
|
}
|
|
778
|
-
const select$
|
|
778
|
+
const select$C = function GetSlotsOutputRepresentationSelect() {
|
|
779
779
|
return {
|
|
780
780
|
kind: 'Fragment',
|
|
781
|
-
version: VERSION$
|
|
781
|
+
version: VERSION$l,
|
|
782
782
|
private: [],
|
|
783
783
|
selections: [
|
|
784
784
|
{
|
|
@@ -808,7 +808,7 @@ const select$A = function GetSlotsOutputRepresentationSelect() {
|
|
|
808
808
|
]
|
|
809
809
|
};
|
|
810
810
|
};
|
|
811
|
-
function equals$
|
|
811
|
+
function equals$l(existing, incoming) {
|
|
812
812
|
const existing_isSuccess = existing.isSuccess;
|
|
813
813
|
const incoming_isSuccess = incoming.isSuccess;
|
|
814
814
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -880,41 +880,41 @@ function equals$k(existing, incoming) {
|
|
|
880
880
|
}
|
|
881
881
|
return true;
|
|
882
882
|
}
|
|
883
|
-
const ingest$
|
|
883
|
+
const ingest$g = function GetSlotsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
884
884
|
if (process.env.NODE_ENV !== 'production') {
|
|
885
|
-
const validateError = validate$
|
|
885
|
+
const validateError = validate$D(input);
|
|
886
886
|
if (validateError !== null) {
|
|
887
887
|
throw validateError;
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
890
|
const key = keyBuilderFromType$c(luvio, input);
|
|
891
891
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
892
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
892
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "healthcloud", VERSION$l, RepresentationType$g, equals$l);
|
|
893
893
|
return createLink(key);
|
|
894
894
|
};
|
|
895
|
-
function getTypeCacheKeys$
|
|
895
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
896
896
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
897
897
|
const rootKey = keyBuilderFromType$c(luvio, input);
|
|
898
898
|
rootKeySet.set(rootKey, {
|
|
899
899
|
namespace: keyPrefix,
|
|
900
|
-
representationName: RepresentationType$
|
|
900
|
+
representationName: RepresentationType$g,
|
|
901
901
|
mergeable: false
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
904
|
|
|
905
|
-
function select$
|
|
906
|
-
return select$
|
|
905
|
+
function select$B(luvio, params) {
|
|
906
|
+
return select$C();
|
|
907
907
|
}
|
|
908
|
-
function getResponseCacheKeys$
|
|
909
|
-
getTypeCacheKeys$
|
|
908
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
909
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
910
910
|
}
|
|
911
|
-
function ingestSuccess$
|
|
911
|
+
function ingestSuccess$g(luvio, resourceParams, response) {
|
|
912
912
|
const { body } = response;
|
|
913
913
|
const key = keyBuilderFromType$c(luvio, body);
|
|
914
|
-
luvio.storeIngest(key, ingest$
|
|
914
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
915
915
|
const snapshot = luvio.storeLookup({
|
|
916
916
|
recordId: key,
|
|
917
|
-
node: select$
|
|
917
|
+
node: select$B(),
|
|
918
918
|
variables: {},
|
|
919
919
|
});
|
|
920
920
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -925,7 +925,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
925
925
|
deepFreeze(snapshot.data);
|
|
926
926
|
return snapshot;
|
|
927
927
|
}
|
|
928
|
-
function createResourceRequest$
|
|
928
|
+
function createResourceRequest$g(config) {
|
|
929
929
|
const headers = {};
|
|
930
930
|
return {
|
|
931
931
|
baseUri: '/services/data/v65.0',
|
|
@@ -939,45 +939,45 @@ function createResourceRequest$f(config) {
|
|
|
939
939
|
};
|
|
940
940
|
}
|
|
941
941
|
|
|
942
|
-
const adapterName$
|
|
942
|
+
const adapterName$g = 'getSlots';
|
|
943
943
|
const getSlots_ConfigPropertyMetadata = [
|
|
944
944
|
generateParamConfigMetadata('getSlotsInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
945
945
|
];
|
|
946
|
-
const getSlots_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
947
|
-
const createResourceParams$
|
|
948
|
-
function typeCheckConfig$
|
|
946
|
+
const getSlots_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getSlots_ConfigPropertyMetadata);
|
|
947
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$j(getSlots_ConfigPropertyMetadata);
|
|
948
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
949
949
|
const config = {};
|
|
950
950
|
const untrustedConfig_getSlotsInput = untrustedConfig.getSlotsInput;
|
|
951
|
-
const referenceGetSlotsInputRepresentationValidationError = validate$
|
|
951
|
+
const referenceGetSlotsInputRepresentationValidationError = validate$E(untrustedConfig_getSlotsInput);
|
|
952
952
|
if (referenceGetSlotsInputRepresentationValidationError === null) {
|
|
953
953
|
config.getSlotsInput = untrustedConfig_getSlotsInput;
|
|
954
954
|
}
|
|
955
955
|
return config;
|
|
956
956
|
}
|
|
957
|
-
function validateAdapterConfig$
|
|
957
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
958
958
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
959
959
|
return null;
|
|
960
960
|
}
|
|
961
961
|
if (process.env.NODE_ENV !== 'production') {
|
|
962
962
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
963
963
|
}
|
|
964
|
-
const config = typeCheckConfig$
|
|
964
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
965
965
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
966
966
|
return null;
|
|
967
967
|
}
|
|
968
968
|
return config;
|
|
969
969
|
}
|
|
970
|
-
function buildNetworkSnapshot$
|
|
971
|
-
const resourceParams = createResourceParams$
|
|
972
|
-
const request = createResourceRequest$
|
|
970
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
971
|
+
const resourceParams = createResourceParams$g(config);
|
|
972
|
+
const request = createResourceRequest$g(resourceParams);
|
|
973
973
|
return luvio.dispatchResourceRequest(request, options)
|
|
974
974
|
.then((response) => {
|
|
975
975
|
return luvio.handleSuccessResponse(() => {
|
|
976
|
-
const snapshot = ingestSuccess$
|
|
976
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response);
|
|
977
977
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
978
978
|
}, () => {
|
|
979
979
|
const cache = new StoreKeyMap();
|
|
980
|
-
getResponseCacheKeys$
|
|
980
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
981
981
|
return cache;
|
|
982
982
|
});
|
|
983
983
|
}, (response) => {
|
|
@@ -987,16 +987,16 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
987
987
|
}
|
|
988
988
|
const getSlotsAdapterFactory = (luvio) => {
|
|
989
989
|
return function getSlots(untrustedConfig) {
|
|
990
|
-
const config = validateAdapterConfig$
|
|
990
|
+
const config = validateAdapterConfig$g(untrustedConfig, getSlots_ConfigPropertyNames);
|
|
991
991
|
// Invalid or incomplete config
|
|
992
992
|
if (config === null) {
|
|
993
993
|
throw new Error('Invalid config for "getSlots"');
|
|
994
994
|
}
|
|
995
|
-
return buildNetworkSnapshot$
|
|
995
|
+
return buildNetworkSnapshot$g(luvio, config);
|
|
996
996
|
};
|
|
997
997
|
};
|
|
998
998
|
|
|
999
|
-
function validate$
|
|
999
|
+
function validate$C(obj, path = 'SlotSearchDatesCriteriaInputRepresentation') {
|
|
1000
1000
|
const v_error = (() => {
|
|
1001
1001
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1002
1002
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1020,8 +1020,8 @@ function validate$w(obj, path = 'SlotSearchDatesCriteriaInputRepresentation') {
|
|
|
1020
1020
|
return v_error === undefined ? null : v_error;
|
|
1021
1021
|
}
|
|
1022
1022
|
|
|
1023
|
-
const VERSION$
|
|
1024
|
-
function validate$
|
|
1023
|
+
const VERSION$k = "f7d72120958f431aa05ee23ef16fb104";
|
|
1024
|
+
function validate$B(obj, path = 'GetSlotChainsOutputRepresentation') {
|
|
1025
1025
|
const v_error = (() => {
|
|
1026
1026
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1027
1027
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1092,23 +1092,23 @@ function validate$v(obj, path = 'GetSlotChainsOutputRepresentation') {
|
|
|
1092
1092
|
})();
|
|
1093
1093
|
return v_error === undefined ? null : v_error;
|
|
1094
1094
|
}
|
|
1095
|
-
const RepresentationType$
|
|
1096
|
-
function keyBuilder$
|
|
1097
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1095
|
+
const RepresentationType$f = 'GetSlotChainsOutputRepresentation';
|
|
1096
|
+
function keyBuilder$j(luvio, config) {
|
|
1097
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.isSuccess;
|
|
1098
1098
|
}
|
|
1099
1099
|
function keyBuilderFromType$b(luvio, object) {
|
|
1100
1100
|
const keyParams = {
|
|
1101
1101
|
isSuccess: object.isSuccess
|
|
1102
1102
|
};
|
|
1103
|
-
return keyBuilder$
|
|
1103
|
+
return keyBuilder$j(luvio, keyParams);
|
|
1104
1104
|
}
|
|
1105
|
-
function normalize$
|
|
1105
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
1106
1106
|
return input;
|
|
1107
1107
|
}
|
|
1108
|
-
const select$
|
|
1108
|
+
const select$A = function GetSlotChainsOutputRepresentationSelect() {
|
|
1109
1109
|
return {
|
|
1110
1110
|
kind: 'Fragment',
|
|
1111
|
-
version: VERSION$
|
|
1111
|
+
version: VERSION$k,
|
|
1112
1112
|
private: [],
|
|
1113
1113
|
selections: [
|
|
1114
1114
|
{
|
|
@@ -1137,7 +1137,7 @@ const select$y = function GetSlotChainsOutputRepresentationSelect() {
|
|
|
1137
1137
|
]
|
|
1138
1138
|
};
|
|
1139
1139
|
};
|
|
1140
|
-
function equals$
|
|
1140
|
+
function equals$k(existing, incoming) {
|
|
1141
1141
|
const existing_isSuccess = existing.isSuccess;
|
|
1142
1142
|
const incoming_isSuccess = incoming.isSuccess;
|
|
1143
1143
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -1209,41 +1209,41 @@ function equals$j(existing, incoming) {
|
|
|
1209
1209
|
}
|
|
1210
1210
|
return true;
|
|
1211
1211
|
}
|
|
1212
|
-
const ingest$
|
|
1212
|
+
const ingest$f = function GetSlotChainsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1213
1213
|
if (process.env.NODE_ENV !== 'production') {
|
|
1214
|
-
const validateError = validate$
|
|
1214
|
+
const validateError = validate$B(input);
|
|
1215
1215
|
if (validateError !== null) {
|
|
1216
1216
|
throw validateError;
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
1219
|
const key = keyBuilderFromType$b(luvio, input);
|
|
1220
1220
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
1221
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1221
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "healthcloud", VERSION$k, RepresentationType$f, equals$k);
|
|
1222
1222
|
return createLink(key);
|
|
1223
1223
|
};
|
|
1224
|
-
function getTypeCacheKeys$
|
|
1224
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
1225
1225
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1226
1226
|
const rootKey = keyBuilderFromType$b(luvio, input);
|
|
1227
1227
|
rootKeySet.set(rootKey, {
|
|
1228
1228
|
namespace: keyPrefix,
|
|
1229
|
-
representationName: RepresentationType$
|
|
1229
|
+
representationName: RepresentationType$f,
|
|
1230
1230
|
mergeable: false
|
|
1231
1231
|
});
|
|
1232
1232
|
}
|
|
1233
1233
|
|
|
1234
|
-
function select$
|
|
1235
|
-
return select$
|
|
1234
|
+
function select$z(luvio, params) {
|
|
1235
|
+
return select$A();
|
|
1236
1236
|
}
|
|
1237
|
-
function getResponseCacheKeys$
|
|
1238
|
-
getTypeCacheKeys$
|
|
1237
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
1238
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
1239
1239
|
}
|
|
1240
|
-
function ingestSuccess$
|
|
1240
|
+
function ingestSuccess$f(luvio, resourceParams, response) {
|
|
1241
1241
|
const { body } = response;
|
|
1242
1242
|
const key = keyBuilderFromType$b(luvio, body);
|
|
1243
|
-
luvio.storeIngest(key, ingest$
|
|
1243
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
1244
1244
|
const snapshot = luvio.storeLookup({
|
|
1245
1245
|
recordId: key,
|
|
1246
|
-
node: select$
|
|
1246
|
+
node: select$z(),
|
|
1247
1247
|
variables: {},
|
|
1248
1248
|
});
|
|
1249
1249
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1254,7 +1254,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
|
|
|
1254
1254
|
deepFreeze(snapshot.data);
|
|
1255
1255
|
return snapshot;
|
|
1256
1256
|
}
|
|
1257
|
-
function createResourceRequest$
|
|
1257
|
+
function createResourceRequest$f(config) {
|
|
1258
1258
|
const headers = {};
|
|
1259
1259
|
return {
|
|
1260
1260
|
baseUri: '/services/data/v65.0',
|
|
@@ -1268,7 +1268,7 @@ function createResourceRequest$e(config) {
|
|
|
1268
1268
|
};
|
|
1269
1269
|
}
|
|
1270
1270
|
|
|
1271
|
-
const adapterName$
|
|
1271
|
+
const adapterName$f = 'getSlotChains';
|
|
1272
1272
|
const getSlotChains_ConfigPropertyMetadata = [
|
|
1273
1273
|
generateParamConfigMetadata('considerPrioritizationRules', false, 2 /* Body */, 1 /* Boolean */),
|
|
1274
1274
|
generateParamConfigMetadata('formSlotChains', true, 2 /* Body */, 1 /* Boolean */),
|
|
@@ -1279,11 +1279,11 @@ const getSlotChains_ConfigPropertyMetadata = [
|
|
|
1279
1279
|
generateParamConfigMetadata('workProcedureId', true, 2 /* Body */, 0 /* String */),
|
|
1280
1280
|
generateParamConfigMetadata('contextId', false, 2 /* Body */, 0 /* String */),
|
|
1281
1281
|
];
|
|
1282
|
-
const getSlotChains_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1283
|
-
const createResourceParams$
|
|
1284
|
-
function typeCheckConfig$
|
|
1282
|
+
const getSlotChains_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getSlotChains_ConfigPropertyMetadata);
|
|
1283
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$j(getSlotChains_ConfigPropertyMetadata);
|
|
1284
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
1285
1285
|
const config = {};
|
|
1286
|
-
typeCheckConfig$
|
|
1286
|
+
typeCheckConfig$j(untrustedConfig, config, getSlotChains_ConfigPropertyMetadata);
|
|
1287
1287
|
const untrustedConfig_leadTimeMap = untrustedConfig.leadTimeMap;
|
|
1288
1288
|
if (untrustedIsObject(untrustedConfig_leadTimeMap)) {
|
|
1289
1289
|
const untrustedConfig_leadTimeMap_object = {};
|
|
@@ -1306,7 +1306,7 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
1306
1306
|
const untrustedConfig_searchConditions_array = [];
|
|
1307
1307
|
for (let i = 0, arrayLength = untrustedConfig_searchConditions.length; i < arrayLength; i++) {
|
|
1308
1308
|
const untrustedConfig_searchConditions_item = untrustedConfig_searchConditions[i];
|
|
1309
|
-
const referenceSearchConditionInputRepresentationValidationError = validate$
|
|
1309
|
+
const referenceSearchConditionInputRepresentationValidationError = validate$F(untrustedConfig_searchConditions_item);
|
|
1310
1310
|
if (referenceSearchConditionInputRepresentationValidationError === null) {
|
|
1311
1311
|
untrustedConfig_searchConditions_array.push(untrustedConfig_searchConditions_item);
|
|
1312
1312
|
}
|
|
@@ -1314,36 +1314,36 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
1314
1314
|
config.searchConditions = untrustedConfig_searchConditions_array;
|
|
1315
1315
|
}
|
|
1316
1316
|
const untrustedConfig_slotSearchDatesCriteria = untrustedConfig.slotSearchDatesCriteria;
|
|
1317
|
-
const referenceSlotSearchDatesCriteriaInputRepresentationValidationError = validate$
|
|
1317
|
+
const referenceSlotSearchDatesCriteriaInputRepresentationValidationError = validate$C(untrustedConfig_slotSearchDatesCriteria);
|
|
1318
1318
|
if (referenceSlotSearchDatesCriteriaInputRepresentationValidationError === null) {
|
|
1319
1319
|
config.slotSearchDatesCriteria = untrustedConfig_slotSearchDatesCriteria;
|
|
1320
1320
|
}
|
|
1321
1321
|
return config;
|
|
1322
1322
|
}
|
|
1323
|
-
function validateAdapterConfig$
|
|
1323
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
1324
1324
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1325
1325
|
return null;
|
|
1326
1326
|
}
|
|
1327
1327
|
if (process.env.NODE_ENV !== 'production') {
|
|
1328
1328
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1329
1329
|
}
|
|
1330
|
-
const config = typeCheckConfig$
|
|
1330
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
1331
1331
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1332
1332
|
return null;
|
|
1333
1333
|
}
|
|
1334
1334
|
return config;
|
|
1335
1335
|
}
|
|
1336
|
-
function buildNetworkSnapshot$
|
|
1337
|
-
const resourceParams = createResourceParams$
|
|
1338
|
-
const request = createResourceRequest$
|
|
1336
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
1337
|
+
const resourceParams = createResourceParams$f(config);
|
|
1338
|
+
const request = createResourceRequest$f(resourceParams);
|
|
1339
1339
|
return luvio.dispatchResourceRequest(request, options)
|
|
1340
1340
|
.then((response) => {
|
|
1341
1341
|
return luvio.handleSuccessResponse(() => {
|
|
1342
|
-
const snapshot = ingestSuccess$
|
|
1342
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response);
|
|
1343
1343
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1344
1344
|
}, () => {
|
|
1345
1345
|
const cache = new StoreKeyMap();
|
|
1346
|
-
getResponseCacheKeys$
|
|
1346
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
1347
1347
|
return cache;
|
|
1348
1348
|
});
|
|
1349
1349
|
}, (response) => {
|
|
@@ -1353,16 +1353,16 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
const getSlotChainsAdapterFactory = (luvio) => {
|
|
1355
1355
|
return function getSlotChains(untrustedConfig) {
|
|
1356
|
-
const config = validateAdapterConfig$
|
|
1356
|
+
const config = validateAdapterConfig$f(untrustedConfig, getSlotChains_ConfigPropertyNames);
|
|
1357
1357
|
// Invalid or incomplete config
|
|
1358
1358
|
if (config === null) {
|
|
1359
1359
|
throw new Error('Invalid config for "getSlotChains"');
|
|
1360
1360
|
}
|
|
1361
|
-
return buildNetworkSnapshot$
|
|
1361
|
+
return buildNetworkSnapshot$f(luvio, config);
|
|
1362
1362
|
};
|
|
1363
1363
|
};
|
|
1364
1364
|
|
|
1365
|
-
function validate$
|
|
1365
|
+
function validate$A(obj, path = 'SlotInputRepresentation') {
|
|
1366
1366
|
const v_error = (() => {
|
|
1367
1367
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1368
1368
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1482,7 +1482,7 @@ function validate$u(obj, path = 'SlotInputRepresentation') {
|
|
|
1482
1482
|
return v_error === undefined ? null : v_error;
|
|
1483
1483
|
}
|
|
1484
1484
|
|
|
1485
|
-
function validate$
|
|
1485
|
+
function validate$z(obj, path = 'BookSlotChainInputRepresentation') {
|
|
1486
1486
|
const v_error = (() => {
|
|
1487
1487
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1488
1488
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1500,7 +1500,7 @@ function validate$t(obj, path = 'BookSlotChainInputRepresentation') {
|
|
|
1500
1500
|
for (let i = 0; i < obj_slots.length; i++) {
|
|
1501
1501
|
const obj_slots_item = obj_slots[i];
|
|
1502
1502
|
const path_slots_item = path_slots + '[' + i + ']';
|
|
1503
|
-
const referencepath_slots_itemValidationError = validate$
|
|
1503
|
+
const referencepath_slots_itemValidationError = validate$A(obj_slots_item, path_slots_item);
|
|
1504
1504
|
if (referencepath_slots_itemValidationError !== null) {
|
|
1505
1505
|
let message = 'Object doesn\'t match SlotInputRepresentation (at "' + path_slots_item + '")\n';
|
|
1506
1506
|
message += referencepath_slots_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1516,8 +1516,8 @@ function validate$t(obj, path = 'BookSlotChainInputRepresentation') {
|
|
|
1516
1516
|
return v_error === undefined ? null : v_error;
|
|
1517
1517
|
}
|
|
1518
1518
|
|
|
1519
|
-
const VERSION$
|
|
1520
|
-
function validate$
|
|
1519
|
+
const VERSION$j = "887532f336104d21a2b8063efbba663c";
|
|
1520
|
+
function validate$y(obj, path = 'BookSlotChainOutputRepresentation') {
|
|
1521
1521
|
const v_error = (() => {
|
|
1522
1522
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1523
1523
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1605,23 +1605,23 @@ function validate$s(obj, path = 'BookSlotChainOutputRepresentation') {
|
|
|
1605
1605
|
})();
|
|
1606
1606
|
return v_error === undefined ? null : v_error;
|
|
1607
1607
|
}
|
|
1608
|
-
const RepresentationType$
|
|
1609
|
-
function keyBuilder$
|
|
1610
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1608
|
+
const RepresentationType$e = 'BookSlotChainOutputRepresentation';
|
|
1609
|
+
function keyBuilder$i(luvio, config) {
|
|
1610
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.isSuccess;
|
|
1611
1611
|
}
|
|
1612
1612
|
function keyBuilderFromType$a(luvio, object) {
|
|
1613
1613
|
const keyParams = {
|
|
1614
1614
|
isSuccess: object.isSuccess
|
|
1615
1615
|
};
|
|
1616
|
-
return keyBuilder$
|
|
1616
|
+
return keyBuilder$i(luvio, keyParams);
|
|
1617
1617
|
}
|
|
1618
|
-
function normalize$
|
|
1618
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
1619
1619
|
return input;
|
|
1620
1620
|
}
|
|
1621
|
-
const select$
|
|
1621
|
+
const select$y = function BookSlotChainOutputRepresentationSelect() {
|
|
1622
1622
|
return {
|
|
1623
1623
|
kind: 'Fragment',
|
|
1624
|
-
version: VERSION$
|
|
1624
|
+
version: VERSION$j,
|
|
1625
1625
|
private: [],
|
|
1626
1626
|
selections: [
|
|
1627
1627
|
{
|
|
@@ -1651,7 +1651,7 @@ const select$w = function BookSlotChainOutputRepresentationSelect() {
|
|
|
1651
1651
|
]
|
|
1652
1652
|
};
|
|
1653
1653
|
};
|
|
1654
|
-
function equals$
|
|
1654
|
+
function equals$j(existing, incoming) {
|
|
1655
1655
|
const existing_isSuccess = existing.isSuccess;
|
|
1656
1656
|
const incoming_isSuccess = incoming.isSuccess;
|
|
1657
1657
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -1708,41 +1708,41 @@ function equals$i(existing, incoming) {
|
|
|
1708
1708
|
}
|
|
1709
1709
|
return true;
|
|
1710
1710
|
}
|
|
1711
|
-
const ingest$
|
|
1711
|
+
const ingest$e = function BookSlotChainOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1712
1712
|
if (process.env.NODE_ENV !== 'production') {
|
|
1713
|
-
const validateError = validate$
|
|
1713
|
+
const validateError = validate$y(input);
|
|
1714
1714
|
if (validateError !== null) {
|
|
1715
1715
|
throw validateError;
|
|
1716
1716
|
}
|
|
1717
1717
|
}
|
|
1718
1718
|
const key = keyBuilderFromType$a(luvio, input);
|
|
1719
1719
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
1720
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1720
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "healthcloud", VERSION$j, RepresentationType$e, equals$j);
|
|
1721
1721
|
return createLink(key);
|
|
1722
1722
|
};
|
|
1723
|
-
function getTypeCacheKeys$
|
|
1723
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
1724
1724
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1725
1725
|
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
1726
1726
|
rootKeySet.set(rootKey, {
|
|
1727
1727
|
namespace: keyPrefix,
|
|
1728
|
-
representationName: RepresentationType$
|
|
1728
|
+
representationName: RepresentationType$e,
|
|
1729
1729
|
mergeable: false
|
|
1730
1730
|
});
|
|
1731
1731
|
}
|
|
1732
1732
|
|
|
1733
|
-
function select$
|
|
1734
|
-
return select$
|
|
1733
|
+
function select$x(luvio, params) {
|
|
1734
|
+
return select$y();
|
|
1735
1735
|
}
|
|
1736
|
-
function getResponseCacheKeys$
|
|
1737
|
-
getTypeCacheKeys$
|
|
1736
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
1737
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
1738
1738
|
}
|
|
1739
|
-
function ingestSuccess$
|
|
1739
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
1740
1740
|
const { body } = response;
|
|
1741
1741
|
const key = keyBuilderFromType$a(luvio, body);
|
|
1742
|
-
luvio.storeIngest(key, ingest$
|
|
1742
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
1743
1743
|
const snapshot = luvio.storeLookup({
|
|
1744
1744
|
recordId: key,
|
|
1745
|
-
node: select$
|
|
1745
|
+
node: select$x(),
|
|
1746
1746
|
variables: {},
|
|
1747
1747
|
});
|
|
1748
1748
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1753,7 +1753,7 @@ function ingestSuccess$d(luvio, resourceParams, response) {
|
|
|
1753
1753
|
deepFreeze(snapshot.data);
|
|
1754
1754
|
return snapshot;
|
|
1755
1755
|
}
|
|
1756
|
-
function createResourceRequest$
|
|
1756
|
+
function createResourceRequest$e(config) {
|
|
1757
1757
|
const headers = {};
|
|
1758
1758
|
return {
|
|
1759
1759
|
baseUri: '/services/data/v65.0',
|
|
@@ -1767,45 +1767,45 @@ function createResourceRequest$d(config) {
|
|
|
1767
1767
|
};
|
|
1768
1768
|
}
|
|
1769
1769
|
|
|
1770
|
-
const adapterName$
|
|
1770
|
+
const adapterName$e = 'bookSlotChain';
|
|
1771
1771
|
const bookSlotChain_ConfigPropertyMetadata = [
|
|
1772
1772
|
generateParamConfigMetadata('BookSlotChainInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1773
1773
|
];
|
|
1774
|
-
const bookSlotChain_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1775
|
-
const createResourceParams$
|
|
1776
|
-
function typeCheckConfig$
|
|
1774
|
+
const bookSlotChain_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, bookSlotChain_ConfigPropertyMetadata);
|
|
1775
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$j(bookSlotChain_ConfigPropertyMetadata);
|
|
1776
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
1777
1777
|
const config = {};
|
|
1778
1778
|
const untrustedConfig_BookSlotChainInput = untrustedConfig.BookSlotChainInput;
|
|
1779
|
-
const referenceBookSlotChainInputRepresentationValidationError = validate$
|
|
1779
|
+
const referenceBookSlotChainInputRepresentationValidationError = validate$z(untrustedConfig_BookSlotChainInput);
|
|
1780
1780
|
if (referenceBookSlotChainInputRepresentationValidationError === null) {
|
|
1781
1781
|
config.BookSlotChainInput = untrustedConfig_BookSlotChainInput;
|
|
1782
1782
|
}
|
|
1783
1783
|
return config;
|
|
1784
1784
|
}
|
|
1785
|
-
function validateAdapterConfig$
|
|
1785
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
1786
1786
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1787
1787
|
return null;
|
|
1788
1788
|
}
|
|
1789
1789
|
if (process.env.NODE_ENV !== 'production') {
|
|
1790
1790
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1791
1791
|
}
|
|
1792
|
-
const config = typeCheckConfig$
|
|
1792
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
1793
1793
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1794
1794
|
return null;
|
|
1795
1795
|
}
|
|
1796
1796
|
return config;
|
|
1797
1797
|
}
|
|
1798
|
-
function buildNetworkSnapshot$
|
|
1799
|
-
const resourceParams = createResourceParams$
|
|
1800
|
-
const request = createResourceRequest$
|
|
1798
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
1799
|
+
const resourceParams = createResourceParams$e(config);
|
|
1800
|
+
const request = createResourceRequest$e(resourceParams);
|
|
1801
1801
|
return luvio.dispatchResourceRequest(request, options)
|
|
1802
1802
|
.then((response) => {
|
|
1803
1803
|
return luvio.handleSuccessResponse(() => {
|
|
1804
|
-
const snapshot = ingestSuccess$
|
|
1804
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response);
|
|
1805
1805
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1806
1806
|
}, () => {
|
|
1807
1807
|
const cache = new StoreKeyMap();
|
|
1808
|
-
getResponseCacheKeys$
|
|
1808
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
1809
1809
|
return cache;
|
|
1810
1810
|
});
|
|
1811
1811
|
}, (response) => {
|
|
@@ -1815,16 +1815,16 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
1815
1815
|
}
|
|
1816
1816
|
const bookSlotChainAdapterFactory = (luvio) => {
|
|
1817
1817
|
return function bookSlotChain(untrustedConfig) {
|
|
1818
|
-
const config = validateAdapterConfig$
|
|
1818
|
+
const config = validateAdapterConfig$e(untrustedConfig, bookSlotChain_ConfigPropertyNames);
|
|
1819
1819
|
// Invalid or incomplete config
|
|
1820
1820
|
if (config === null) {
|
|
1821
1821
|
throw new Error('Invalid config for "bookSlotChain"');
|
|
1822
1822
|
}
|
|
1823
|
-
return buildNetworkSnapshot$
|
|
1823
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
1824
1824
|
};
|
|
1825
1825
|
};
|
|
1826
1826
|
|
|
1827
|
-
function validate$
|
|
1827
|
+
function validate$x(obj, path = 'CancelSlotChainInputRepresentation') {
|
|
1828
1828
|
const v_error = (() => {
|
|
1829
1829
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1830
1830
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1866,8 +1866,8 @@ function validate$r(obj, path = 'CancelSlotChainInputRepresentation') {
|
|
|
1866
1866
|
return v_error === undefined ? null : v_error;
|
|
1867
1867
|
}
|
|
1868
1868
|
|
|
1869
|
-
const VERSION$
|
|
1870
|
-
function validate$
|
|
1869
|
+
const VERSION$i = "07afa0b60322d98e30127d781f0484ae";
|
|
1870
|
+
function validate$w(obj, path = 'CancelSlotChainOutputRepresentation') {
|
|
1871
1871
|
const v_error = (() => {
|
|
1872
1872
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1873
1873
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1925,23 +1925,23 @@ function validate$q(obj, path = 'CancelSlotChainOutputRepresentation') {
|
|
|
1925
1925
|
})();
|
|
1926
1926
|
return v_error === undefined ? null : v_error;
|
|
1927
1927
|
}
|
|
1928
|
-
const RepresentationType$
|
|
1929
|
-
function keyBuilder$
|
|
1930
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1928
|
+
const RepresentationType$d = 'CancelSlotChainOutputRepresentation';
|
|
1929
|
+
function keyBuilder$h(luvio, config) {
|
|
1930
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.isSuccess;
|
|
1931
1931
|
}
|
|
1932
1932
|
function keyBuilderFromType$9(luvio, object) {
|
|
1933
1933
|
const keyParams = {
|
|
1934
1934
|
isSuccess: object.isSuccess
|
|
1935
1935
|
};
|
|
1936
|
-
return keyBuilder$
|
|
1936
|
+
return keyBuilder$h(luvio, keyParams);
|
|
1937
1937
|
}
|
|
1938
|
-
function normalize$
|
|
1938
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
1939
1939
|
return input;
|
|
1940
1940
|
}
|
|
1941
|
-
const select$
|
|
1941
|
+
const select$w = function CancelSlotChainOutputRepresentationSelect() {
|
|
1942
1942
|
return {
|
|
1943
1943
|
kind: 'Fragment',
|
|
1944
|
-
version: VERSION$
|
|
1944
|
+
version: VERSION$i,
|
|
1945
1945
|
private: [],
|
|
1946
1946
|
selections: [
|
|
1947
1947
|
{
|
|
@@ -1965,7 +1965,7 @@ const select$u = function CancelSlotChainOutputRepresentationSelect() {
|
|
|
1965
1965
|
]
|
|
1966
1966
|
};
|
|
1967
1967
|
};
|
|
1968
|
-
function equals$
|
|
1968
|
+
function equals$i(existing, incoming) {
|
|
1969
1969
|
const existing_isSuccess = existing.isSuccess;
|
|
1970
1970
|
const incoming_isSuccess = incoming.isSuccess;
|
|
1971
1971
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -2001,41 +2001,41 @@ function equals$h(existing, incoming) {
|
|
|
2001
2001
|
}
|
|
2002
2002
|
return true;
|
|
2003
2003
|
}
|
|
2004
|
-
const ingest$
|
|
2004
|
+
const ingest$d = function CancelSlotChainOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2005
2005
|
if (process.env.NODE_ENV !== 'production') {
|
|
2006
|
-
const validateError = validate$
|
|
2006
|
+
const validateError = validate$w(input);
|
|
2007
2007
|
if (validateError !== null) {
|
|
2008
2008
|
throw validateError;
|
|
2009
2009
|
}
|
|
2010
2010
|
}
|
|
2011
2011
|
const key = keyBuilderFromType$9(luvio, input);
|
|
2012
2012
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
2013
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2013
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "healthcloud", VERSION$i, RepresentationType$d, equals$i);
|
|
2014
2014
|
return createLink(key);
|
|
2015
2015
|
};
|
|
2016
|
-
function getTypeCacheKeys$
|
|
2016
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
2017
2017
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2018
2018
|
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
2019
2019
|
rootKeySet.set(rootKey, {
|
|
2020
2020
|
namespace: keyPrefix,
|
|
2021
|
-
representationName: RepresentationType$
|
|
2021
|
+
representationName: RepresentationType$d,
|
|
2022
2022
|
mergeable: false
|
|
2023
2023
|
});
|
|
2024
2024
|
}
|
|
2025
2025
|
|
|
2026
|
-
function select$
|
|
2027
|
-
return select$
|
|
2026
|
+
function select$v(luvio, params) {
|
|
2027
|
+
return select$w();
|
|
2028
2028
|
}
|
|
2029
|
-
function getResponseCacheKeys$
|
|
2030
|
-
getTypeCacheKeys$
|
|
2029
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
2030
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
2031
2031
|
}
|
|
2032
|
-
function ingestSuccess$
|
|
2032
|
+
function ingestSuccess$d(luvio, resourceParams, response) {
|
|
2033
2033
|
const { body } = response;
|
|
2034
2034
|
const key = keyBuilderFromType$9(luvio, body);
|
|
2035
|
-
luvio.storeIngest(key, ingest$
|
|
2035
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
2036
2036
|
const snapshot = luvio.storeLookup({
|
|
2037
2037
|
recordId: key,
|
|
2038
|
-
node: select$
|
|
2038
|
+
node: select$v(),
|
|
2039
2039
|
variables: {},
|
|
2040
2040
|
});
|
|
2041
2041
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2046,7 +2046,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
2046
2046
|
deepFreeze(snapshot.data);
|
|
2047
2047
|
return snapshot;
|
|
2048
2048
|
}
|
|
2049
|
-
function createResourceRequest$
|
|
2049
|
+
function createResourceRequest$d(config) {
|
|
2050
2050
|
const headers = {};
|
|
2051
2051
|
return {
|
|
2052
2052
|
baseUri: '/services/data/v65.0',
|
|
@@ -2060,45 +2060,45 @@ function createResourceRequest$c(config) {
|
|
|
2060
2060
|
};
|
|
2061
2061
|
}
|
|
2062
2062
|
|
|
2063
|
-
const adapterName$
|
|
2063
|
+
const adapterName$d = 'cancelSlotChain';
|
|
2064
2064
|
const cancelSlotChain_ConfigPropertyMetadata = [
|
|
2065
2065
|
generateParamConfigMetadata('CancelSlotChainInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2066
2066
|
];
|
|
2067
|
-
const cancelSlotChain_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2068
|
-
const createResourceParams$
|
|
2069
|
-
function typeCheckConfig$
|
|
2067
|
+
const cancelSlotChain_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, cancelSlotChain_ConfigPropertyMetadata);
|
|
2068
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$j(cancelSlotChain_ConfigPropertyMetadata);
|
|
2069
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
2070
2070
|
const config = {};
|
|
2071
2071
|
const untrustedConfig_CancelSlotChainInput = untrustedConfig.CancelSlotChainInput;
|
|
2072
|
-
const referenceCancelSlotChainInputRepresentationValidationError = validate$
|
|
2072
|
+
const referenceCancelSlotChainInputRepresentationValidationError = validate$x(untrustedConfig_CancelSlotChainInput);
|
|
2073
2073
|
if (referenceCancelSlotChainInputRepresentationValidationError === null) {
|
|
2074
2074
|
config.CancelSlotChainInput = untrustedConfig_CancelSlotChainInput;
|
|
2075
2075
|
}
|
|
2076
2076
|
return config;
|
|
2077
2077
|
}
|
|
2078
|
-
function validateAdapterConfig$
|
|
2078
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
2079
2079
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2080
2080
|
return null;
|
|
2081
2081
|
}
|
|
2082
2082
|
if (process.env.NODE_ENV !== 'production') {
|
|
2083
2083
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2084
2084
|
}
|
|
2085
|
-
const config = typeCheckConfig$
|
|
2085
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
2086
2086
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2087
2087
|
return null;
|
|
2088
2088
|
}
|
|
2089
2089
|
return config;
|
|
2090
2090
|
}
|
|
2091
|
-
function buildNetworkSnapshot$
|
|
2092
|
-
const resourceParams = createResourceParams$
|
|
2093
|
-
const request = createResourceRequest$
|
|
2091
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
2092
|
+
const resourceParams = createResourceParams$d(config);
|
|
2093
|
+
const request = createResourceRequest$d(resourceParams);
|
|
2094
2094
|
return luvio.dispatchResourceRequest(request, options)
|
|
2095
2095
|
.then((response) => {
|
|
2096
2096
|
return luvio.handleSuccessResponse(() => {
|
|
2097
|
-
const snapshot = ingestSuccess$
|
|
2097
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response);
|
|
2098
2098
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2099
2099
|
}, () => {
|
|
2100
2100
|
const cache = new StoreKeyMap();
|
|
2101
|
-
getResponseCacheKeys$
|
|
2101
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
2102
2102
|
return cache;
|
|
2103
2103
|
});
|
|
2104
2104
|
}, (response) => {
|
|
@@ -2108,17 +2108,17 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
2108
2108
|
}
|
|
2109
2109
|
const cancelSlotChainAdapterFactory = (luvio) => {
|
|
2110
2110
|
return function cancelSlotChain(untrustedConfig) {
|
|
2111
|
-
const config = validateAdapterConfig$
|
|
2111
|
+
const config = validateAdapterConfig$d(untrustedConfig, cancelSlotChain_ConfigPropertyNames);
|
|
2112
2112
|
// Invalid or incomplete config
|
|
2113
2113
|
if (config === null) {
|
|
2114
2114
|
throw new Error('Invalid config for "cancelSlotChain"');
|
|
2115
2115
|
}
|
|
2116
|
-
return buildNetworkSnapshot$
|
|
2116
|
+
return buildNetworkSnapshot$d(luvio, config);
|
|
2117
2117
|
};
|
|
2118
2118
|
};
|
|
2119
2119
|
|
|
2120
|
-
const VERSION$
|
|
2121
|
-
function validate$
|
|
2120
|
+
const VERSION$h = "24bea45579ca193212b8861df5642516";
|
|
2121
|
+
function validate$v(obj, path = 'WorkTypeLeadTimeOutputRepresentation') {
|
|
2122
2122
|
const v_error = (() => {
|
|
2123
2123
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2124
2124
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2178,23 +2178,23 @@ function validate$p(obj, path = 'WorkTypeLeadTimeOutputRepresentation') {
|
|
|
2178
2178
|
})();
|
|
2179
2179
|
return v_error === undefined ? null : v_error;
|
|
2180
2180
|
}
|
|
2181
|
-
const RepresentationType$
|
|
2182
|
-
function keyBuilder$
|
|
2183
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2181
|
+
const RepresentationType$c = 'WorkTypeLeadTimeOutputRepresentation';
|
|
2182
|
+
function keyBuilder$g(luvio, config) {
|
|
2183
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.isSuccess;
|
|
2184
2184
|
}
|
|
2185
2185
|
function keyBuilderFromType$8(luvio, object) {
|
|
2186
2186
|
const keyParams = {
|
|
2187
2187
|
isSuccess: object.isSuccess
|
|
2188
2188
|
};
|
|
2189
|
-
return keyBuilder$
|
|
2189
|
+
return keyBuilder$g(luvio, keyParams);
|
|
2190
2190
|
}
|
|
2191
|
-
function normalize$
|
|
2191
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
2192
2192
|
return input;
|
|
2193
2193
|
}
|
|
2194
|
-
const select$
|
|
2194
|
+
const select$u = function WorkTypeLeadTimeOutputRepresentationSelect() {
|
|
2195
2195
|
return {
|
|
2196
2196
|
kind: 'Fragment',
|
|
2197
|
-
version: VERSION$
|
|
2197
|
+
version: VERSION$h,
|
|
2198
2198
|
private: [],
|
|
2199
2199
|
selections: [
|
|
2200
2200
|
{
|
|
@@ -2218,7 +2218,7 @@ const select$s = function WorkTypeLeadTimeOutputRepresentationSelect() {
|
|
|
2218
2218
|
]
|
|
2219
2219
|
};
|
|
2220
2220
|
};
|
|
2221
|
-
function equals$
|
|
2221
|
+
function equals$h(existing, incoming) {
|
|
2222
2222
|
const existing_isSuccess = existing.isSuccess;
|
|
2223
2223
|
const incoming_isSuccess = incoming.isSuccess;
|
|
2224
2224
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -2254,41 +2254,41 @@ function equals$g(existing, incoming) {
|
|
|
2254
2254
|
}
|
|
2255
2255
|
return true;
|
|
2256
2256
|
}
|
|
2257
|
-
const ingest$
|
|
2257
|
+
const ingest$c = function WorkTypeLeadTimeOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2258
2258
|
if (process.env.NODE_ENV !== 'production') {
|
|
2259
|
-
const validateError = validate$
|
|
2259
|
+
const validateError = validate$v(input);
|
|
2260
2260
|
if (validateError !== null) {
|
|
2261
2261
|
throw validateError;
|
|
2262
2262
|
}
|
|
2263
2263
|
}
|
|
2264
2264
|
const key = keyBuilderFromType$8(luvio, input);
|
|
2265
2265
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
2266
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2266
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "healthcloud", VERSION$h, RepresentationType$c, equals$h);
|
|
2267
2267
|
return createLink(key);
|
|
2268
2268
|
};
|
|
2269
|
-
function getTypeCacheKeys$
|
|
2269
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
2270
2270
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2271
2271
|
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
2272
2272
|
rootKeySet.set(rootKey, {
|
|
2273
2273
|
namespace: keyPrefix,
|
|
2274
|
-
representationName: RepresentationType$
|
|
2274
|
+
representationName: RepresentationType$c,
|
|
2275
2275
|
mergeable: false
|
|
2276
2276
|
});
|
|
2277
2277
|
}
|
|
2278
2278
|
|
|
2279
|
-
function select$
|
|
2280
|
-
return select$
|
|
2279
|
+
function select$t(luvio, params) {
|
|
2280
|
+
return select$u();
|
|
2281
2281
|
}
|
|
2282
|
-
function getResponseCacheKeys$
|
|
2283
|
-
getTypeCacheKeys$
|
|
2282
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
2283
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
2284
2284
|
}
|
|
2285
|
-
function ingestSuccess$
|
|
2285
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
2286
2286
|
const { body } = response;
|
|
2287
2287
|
const key = keyBuilderFromType$8(luvio, body);
|
|
2288
|
-
luvio.storeIngest(key, ingest$
|
|
2288
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
2289
2289
|
const snapshot = luvio.storeLookup({
|
|
2290
2290
|
recordId: key,
|
|
2291
|
-
node: select$
|
|
2291
|
+
node: select$t(),
|
|
2292
2292
|
variables: {},
|
|
2293
2293
|
});
|
|
2294
2294
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2299,7 +2299,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
2299
2299
|
deepFreeze(snapshot.data);
|
|
2300
2300
|
return snapshot;
|
|
2301
2301
|
}
|
|
2302
|
-
function createResourceRequest$
|
|
2302
|
+
function createResourceRequest$c(config) {
|
|
2303
2303
|
const headers = {};
|
|
2304
2304
|
return {
|
|
2305
2305
|
baseUri: '/services/data/v65.0',
|
|
@@ -2313,43 +2313,43 @@ function createResourceRequest$b(config) {
|
|
|
2313
2313
|
};
|
|
2314
2314
|
}
|
|
2315
2315
|
|
|
2316
|
-
const adapterName$
|
|
2316
|
+
const adapterName$c = 'workTypeLeadTime';
|
|
2317
2317
|
const workTypeLeadTime_ConfigPropertyMetadata = [
|
|
2318
2318
|
generateParamConfigMetadata('contextId', false, 2 /* Body */, 0 /* String */),
|
|
2319
2319
|
generateParamConfigMetadata('priority', false, 2 /* Body */, 3 /* Integer */),
|
|
2320
2320
|
generateParamConfigMetadata('workProcedureId', true, 2 /* Body */, 0 /* String */),
|
|
2321
2321
|
];
|
|
2322
|
-
const workTypeLeadTime_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2323
|
-
const createResourceParams$
|
|
2324
|
-
function typeCheckConfig$
|
|
2322
|
+
const workTypeLeadTime_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, workTypeLeadTime_ConfigPropertyMetadata);
|
|
2323
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$j(workTypeLeadTime_ConfigPropertyMetadata);
|
|
2324
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
2325
2325
|
const config = {};
|
|
2326
|
-
typeCheckConfig$
|
|
2326
|
+
typeCheckConfig$j(untrustedConfig, config, workTypeLeadTime_ConfigPropertyMetadata);
|
|
2327
2327
|
return config;
|
|
2328
2328
|
}
|
|
2329
|
-
function validateAdapterConfig$
|
|
2329
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
2330
2330
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2331
2331
|
return null;
|
|
2332
2332
|
}
|
|
2333
2333
|
if (process.env.NODE_ENV !== 'production') {
|
|
2334
2334
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2335
2335
|
}
|
|
2336
|
-
const config = typeCheckConfig$
|
|
2336
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
2337
2337
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2338
2338
|
return null;
|
|
2339
2339
|
}
|
|
2340
2340
|
return config;
|
|
2341
2341
|
}
|
|
2342
|
-
function buildNetworkSnapshot$
|
|
2343
|
-
const resourceParams = createResourceParams$
|
|
2344
|
-
const request = createResourceRequest$
|
|
2342
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
2343
|
+
const resourceParams = createResourceParams$c(config);
|
|
2344
|
+
const request = createResourceRequest$c(resourceParams);
|
|
2345
2345
|
return luvio.dispatchResourceRequest(request, options)
|
|
2346
2346
|
.then((response) => {
|
|
2347
2347
|
return luvio.handleSuccessResponse(() => {
|
|
2348
|
-
const snapshot = ingestSuccess$
|
|
2348
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
2349
2349
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2350
2350
|
}, () => {
|
|
2351
2351
|
const cache = new StoreKeyMap();
|
|
2352
|
-
getResponseCacheKeys$
|
|
2352
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
2353
2353
|
return cache;
|
|
2354
2354
|
});
|
|
2355
2355
|
}, (response) => {
|
|
@@ -2359,17 +2359,17 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
2359
2359
|
}
|
|
2360
2360
|
const workTypeLeadTimeAdapterFactory = (luvio) => {
|
|
2361
2361
|
return function workTypeLeadTime(untrustedConfig) {
|
|
2362
|
-
const config = validateAdapterConfig$
|
|
2362
|
+
const config = validateAdapterConfig$c(untrustedConfig, workTypeLeadTime_ConfigPropertyNames);
|
|
2363
2363
|
// Invalid or incomplete config
|
|
2364
2364
|
if (config === null) {
|
|
2365
2365
|
throw new Error('Invalid config for "workTypeLeadTime"');
|
|
2366
2366
|
}
|
|
2367
|
-
return buildNetworkSnapshot$
|
|
2367
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
2368
2368
|
};
|
|
2369
2369
|
};
|
|
2370
2370
|
|
|
2371
|
-
const VERSION$
|
|
2372
|
-
function validate$
|
|
2371
|
+
const VERSION$g = "573fa398c8d34b55ba0ce883f491b329";
|
|
2372
|
+
function validate$u(obj, path = 'SlotChainValidationOutputRepresentation') {
|
|
2373
2373
|
const v_error = (() => {
|
|
2374
2374
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2375
2375
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2420,23 +2420,23 @@ function validate$o(obj, path = 'SlotChainValidationOutputRepresentation') {
|
|
|
2420
2420
|
})();
|
|
2421
2421
|
return v_error === undefined ? null : v_error;
|
|
2422
2422
|
}
|
|
2423
|
-
const RepresentationType$
|
|
2424
|
-
function keyBuilder$
|
|
2425
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2423
|
+
const RepresentationType$b = 'SlotChainValidationOutputRepresentation';
|
|
2424
|
+
function keyBuilder$f(luvio, config) {
|
|
2425
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.isSuccess;
|
|
2426
2426
|
}
|
|
2427
2427
|
function keyBuilderFromType$7(luvio, object) {
|
|
2428
2428
|
const keyParams = {
|
|
2429
2429
|
isSuccess: object.isSuccess
|
|
2430
2430
|
};
|
|
2431
|
-
return keyBuilder$
|
|
2431
|
+
return keyBuilder$f(luvio, keyParams);
|
|
2432
2432
|
}
|
|
2433
|
-
function normalize$
|
|
2433
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
2434
2434
|
return input;
|
|
2435
2435
|
}
|
|
2436
|
-
const select$
|
|
2436
|
+
const select$s = function SlotChainValidationOutputRepresentationSelect() {
|
|
2437
2437
|
return {
|
|
2438
2438
|
kind: 'Fragment',
|
|
2439
|
-
version: VERSION$
|
|
2439
|
+
version: VERSION$g,
|
|
2440
2440
|
private: [],
|
|
2441
2441
|
selections: [
|
|
2442
2442
|
{
|
|
@@ -2459,7 +2459,7 @@ const select$q = function SlotChainValidationOutputRepresentationSelect() {
|
|
|
2459
2459
|
]
|
|
2460
2460
|
};
|
|
2461
2461
|
};
|
|
2462
|
-
function equals$
|
|
2462
|
+
function equals$g(existing, incoming) {
|
|
2463
2463
|
const existing_isSlotChainValid = existing.isSlotChainValid;
|
|
2464
2464
|
const incoming_isSlotChainValid = incoming.isSlotChainValid;
|
|
2465
2465
|
if (!(existing_isSlotChainValid === incoming_isSlotChainValid)) {
|
|
@@ -2490,41 +2490,41 @@ function equals$f(existing, incoming) {
|
|
|
2490
2490
|
}
|
|
2491
2491
|
return true;
|
|
2492
2492
|
}
|
|
2493
|
-
const ingest$
|
|
2493
|
+
const ingest$b = function SlotChainValidationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2494
2494
|
if (process.env.NODE_ENV !== 'production') {
|
|
2495
|
-
const validateError = validate$
|
|
2495
|
+
const validateError = validate$u(input);
|
|
2496
2496
|
if (validateError !== null) {
|
|
2497
2497
|
throw validateError;
|
|
2498
2498
|
}
|
|
2499
2499
|
}
|
|
2500
2500
|
const key = keyBuilderFromType$7(luvio, input);
|
|
2501
2501
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
2502
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2502
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "healthcloud", VERSION$g, RepresentationType$b, equals$g);
|
|
2503
2503
|
return createLink(key);
|
|
2504
2504
|
};
|
|
2505
|
-
function getTypeCacheKeys$
|
|
2505
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
2506
2506
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2507
2507
|
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
2508
2508
|
rootKeySet.set(rootKey, {
|
|
2509
2509
|
namespace: keyPrefix,
|
|
2510
|
-
representationName: RepresentationType$
|
|
2510
|
+
representationName: RepresentationType$b,
|
|
2511
2511
|
mergeable: false
|
|
2512
2512
|
});
|
|
2513
2513
|
}
|
|
2514
2514
|
|
|
2515
|
-
function select$
|
|
2516
|
-
return select$
|
|
2515
|
+
function select$r(luvio, params) {
|
|
2516
|
+
return select$s();
|
|
2517
2517
|
}
|
|
2518
|
-
function getResponseCacheKeys$
|
|
2519
|
-
getTypeCacheKeys$
|
|
2518
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
2519
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
2520
2520
|
}
|
|
2521
|
-
function ingestSuccess$
|
|
2521
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
2522
2522
|
const { body } = response;
|
|
2523
2523
|
const key = keyBuilderFromType$7(luvio, body);
|
|
2524
|
-
luvio.storeIngest(key, ingest$
|
|
2524
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
2525
2525
|
const snapshot = luvio.storeLookup({
|
|
2526
2526
|
recordId: key,
|
|
2527
|
-
node: select$
|
|
2527
|
+
node: select$r(),
|
|
2528
2528
|
variables: {},
|
|
2529
2529
|
});
|
|
2530
2530
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2535,7 +2535,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
2535
2535
|
deepFreeze(snapshot.data);
|
|
2536
2536
|
return snapshot;
|
|
2537
2537
|
}
|
|
2538
|
-
function createResourceRequest$
|
|
2538
|
+
function createResourceRequest$b(config) {
|
|
2539
2539
|
const headers = {};
|
|
2540
2540
|
return {
|
|
2541
2541
|
baseUri: '/services/data/v65.0',
|
|
@@ -2549,24 +2549,24 @@ function createResourceRequest$a(config) {
|
|
|
2549
2549
|
};
|
|
2550
2550
|
}
|
|
2551
2551
|
|
|
2552
|
-
const adapterName$
|
|
2552
|
+
const adapterName$b = 'validateSlotChain';
|
|
2553
2553
|
const validateSlotChain_ConfigPropertyMetadata = [
|
|
2554
2554
|
generateParamConfigMetadata('contextId', false, 2 /* Body */, 0 /* String */),
|
|
2555
2555
|
generateParamConfigMetadata('workProcedureId', false, 2 /* Body */, 0 /* String */),
|
|
2556
2556
|
generateParamConfigMetadata('slots', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2557
2557
|
generateParamConfigMetadata('siteId', false, 2 /* Body */, 0 /* String */),
|
|
2558
2558
|
];
|
|
2559
|
-
const validateSlotChain_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2560
|
-
const createResourceParams$
|
|
2561
|
-
function typeCheckConfig$
|
|
2559
|
+
const validateSlotChain_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, validateSlotChain_ConfigPropertyMetadata);
|
|
2560
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$j(validateSlotChain_ConfigPropertyMetadata);
|
|
2561
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
2562
2562
|
const config = {};
|
|
2563
|
-
typeCheckConfig$
|
|
2563
|
+
typeCheckConfig$j(untrustedConfig, config, validateSlotChain_ConfigPropertyMetadata);
|
|
2564
2564
|
const untrustedConfig_slots = untrustedConfig.slots;
|
|
2565
2565
|
if (ArrayIsArray$1(untrustedConfig_slots)) {
|
|
2566
2566
|
const untrustedConfig_slots_array = [];
|
|
2567
2567
|
for (let i = 0, arrayLength = untrustedConfig_slots.length; i < arrayLength; i++) {
|
|
2568
2568
|
const untrustedConfig_slots_item = untrustedConfig_slots[i];
|
|
2569
|
-
const referenceSlotInputRepresentationValidationError = validate$
|
|
2569
|
+
const referenceSlotInputRepresentationValidationError = validate$A(untrustedConfig_slots_item);
|
|
2570
2570
|
if (referenceSlotInputRepresentationValidationError === null) {
|
|
2571
2571
|
untrustedConfig_slots_array.push(untrustedConfig_slots_item);
|
|
2572
2572
|
}
|
|
@@ -2575,30 +2575,30 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
2575
2575
|
}
|
|
2576
2576
|
return config;
|
|
2577
2577
|
}
|
|
2578
|
-
function validateAdapterConfig$
|
|
2578
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
2579
2579
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2580
2580
|
return null;
|
|
2581
2581
|
}
|
|
2582
2582
|
if (process.env.NODE_ENV !== 'production') {
|
|
2583
2583
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2584
2584
|
}
|
|
2585
|
-
const config = typeCheckConfig$
|
|
2585
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
2586
2586
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2587
2587
|
return null;
|
|
2588
2588
|
}
|
|
2589
2589
|
return config;
|
|
2590
2590
|
}
|
|
2591
|
-
function buildNetworkSnapshot$
|
|
2592
|
-
const resourceParams = createResourceParams$
|
|
2593
|
-
const request = createResourceRequest$
|
|
2591
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
2592
|
+
const resourceParams = createResourceParams$b(config);
|
|
2593
|
+
const request = createResourceRequest$b(resourceParams);
|
|
2594
2594
|
return luvio.dispatchResourceRequest(request, options)
|
|
2595
2595
|
.then((response) => {
|
|
2596
2596
|
return luvio.handleSuccessResponse(() => {
|
|
2597
|
-
const snapshot = ingestSuccess$
|
|
2597
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
2598
2598
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2599
2599
|
}, () => {
|
|
2600
2600
|
const cache = new StoreKeyMap();
|
|
2601
|
-
getResponseCacheKeys$
|
|
2601
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
2602
2602
|
return cache;
|
|
2603
2603
|
});
|
|
2604
2604
|
}, (response) => {
|
|
@@ -2608,16 +2608,16 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
2608
2608
|
}
|
|
2609
2609
|
const validateSlotChainAdapterFactory = (luvio) => {
|
|
2610
2610
|
return function validateSlotChain(untrustedConfig) {
|
|
2611
|
-
const config = validateAdapterConfig$
|
|
2611
|
+
const config = validateAdapterConfig$b(untrustedConfig, validateSlotChain_ConfigPropertyNames);
|
|
2612
2612
|
// Invalid or incomplete config
|
|
2613
2613
|
if (config === null) {
|
|
2614
2614
|
throw new Error('Invalid config for "validateSlotChain"');
|
|
2615
2615
|
}
|
|
2616
|
-
return buildNetworkSnapshot$
|
|
2616
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
2617
2617
|
};
|
|
2618
2618
|
};
|
|
2619
2619
|
|
|
2620
|
-
function validate$
|
|
2620
|
+
function validate$t(obj, path = 'TaskValuesInputRepresentation') {
|
|
2621
2621
|
const v_error = (() => {
|
|
2622
2622
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2623
2623
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2654,7 +2654,7 @@ function validate$n(obj, path = 'TaskValuesInputRepresentation') {
|
|
|
2654
2654
|
return v_error === undefined ? null : v_error;
|
|
2655
2655
|
}
|
|
2656
2656
|
|
|
2657
|
-
function validate$
|
|
2657
|
+
function validate$s(obj, path = 'TemplateTaskValuesInputRepresentation') {
|
|
2658
2658
|
const v_error = (() => {
|
|
2659
2659
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2660
2660
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2691,8 +2691,8 @@ function validate$m(obj, path = 'TemplateTaskValuesInputRepresentation') {
|
|
|
2691
2691
|
return v_error === undefined ? null : v_error;
|
|
2692
2692
|
}
|
|
2693
2693
|
|
|
2694
|
-
const VERSION$
|
|
2695
|
-
function validate$
|
|
2694
|
+
const VERSION$f = "c9427b5b76347d1c11b1395d1d2fba8c";
|
|
2695
|
+
function validate$r(obj, path = 'AdhocTasksAtmOutputRepresentation') {
|
|
2696
2696
|
const v_error = (() => {
|
|
2697
2697
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2698
2698
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2752,23 +2752,23 @@ function validate$l(obj, path = 'AdhocTasksAtmOutputRepresentation') {
|
|
|
2752
2752
|
})();
|
|
2753
2753
|
return v_error === undefined ? null : v_error;
|
|
2754
2754
|
}
|
|
2755
|
-
const RepresentationType$
|
|
2756
|
-
function keyBuilder$
|
|
2757
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2755
|
+
const RepresentationType$a = 'AdhocTasksAtmOutputRepresentation';
|
|
2756
|
+
function keyBuilder$e(luvio, config) {
|
|
2757
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.isSuccess;
|
|
2758
2758
|
}
|
|
2759
2759
|
function keyBuilderFromType$6(luvio, object) {
|
|
2760
2760
|
const keyParams = {
|
|
2761
2761
|
isSuccess: object.isSuccess
|
|
2762
2762
|
};
|
|
2763
|
-
return keyBuilder$
|
|
2763
|
+
return keyBuilder$e(luvio, keyParams);
|
|
2764
2764
|
}
|
|
2765
|
-
function normalize$
|
|
2765
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
2766
2766
|
return input;
|
|
2767
2767
|
}
|
|
2768
|
-
const select$
|
|
2768
|
+
const select$q = function AdhocTasksAtmOutputRepresentationSelect() {
|
|
2769
2769
|
return {
|
|
2770
2770
|
kind: 'Fragment',
|
|
2771
|
-
version: VERSION$
|
|
2771
|
+
version: VERSION$f,
|
|
2772
2772
|
private: [],
|
|
2773
2773
|
selections: [
|
|
2774
2774
|
{
|
|
@@ -2793,7 +2793,7 @@ const select$o = function AdhocTasksAtmOutputRepresentationSelect() {
|
|
|
2793
2793
|
]
|
|
2794
2794
|
};
|
|
2795
2795
|
};
|
|
2796
|
-
function equals$
|
|
2796
|
+
function equals$f(existing, incoming) {
|
|
2797
2797
|
const existing_isSuccess = existing.isSuccess;
|
|
2798
2798
|
const incoming_isSuccess = incoming.isSuccess;
|
|
2799
2799
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -2837,41 +2837,41 @@ function equals$e(existing, incoming) {
|
|
|
2837
2837
|
}
|
|
2838
2838
|
return true;
|
|
2839
2839
|
}
|
|
2840
|
-
const ingest$
|
|
2840
|
+
const ingest$a = function AdhocTasksAtmOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2841
2841
|
if (process.env.NODE_ENV !== 'production') {
|
|
2842
|
-
const validateError = validate$
|
|
2842
|
+
const validateError = validate$r(input);
|
|
2843
2843
|
if (validateError !== null) {
|
|
2844
2844
|
throw validateError;
|
|
2845
2845
|
}
|
|
2846
2846
|
}
|
|
2847
2847
|
const key = keyBuilderFromType$6(luvio, input);
|
|
2848
2848
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
2849
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2849
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "healthcloud", VERSION$f, RepresentationType$a, equals$f);
|
|
2850
2850
|
return createLink(key);
|
|
2851
2851
|
};
|
|
2852
|
-
function getTypeCacheKeys$
|
|
2852
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
2853
2853
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2854
2854
|
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
2855
2855
|
rootKeySet.set(rootKey, {
|
|
2856
2856
|
namespace: keyPrefix,
|
|
2857
|
-
representationName: RepresentationType$
|
|
2857
|
+
representationName: RepresentationType$a,
|
|
2858
2858
|
mergeable: false
|
|
2859
2859
|
});
|
|
2860
2860
|
}
|
|
2861
2861
|
|
|
2862
|
-
function select$
|
|
2863
|
-
return select$
|
|
2862
|
+
function select$p(luvio, params) {
|
|
2863
|
+
return select$q();
|
|
2864
2864
|
}
|
|
2865
|
-
function getResponseCacheKeys$
|
|
2866
|
-
getTypeCacheKeys$
|
|
2865
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
2866
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
2867
2867
|
}
|
|
2868
|
-
function ingestSuccess$
|
|
2868
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
2869
2869
|
const { body } = response;
|
|
2870
2870
|
const key = keyBuilderFromType$6(luvio, body);
|
|
2871
|
-
luvio.storeIngest(key, ingest$
|
|
2871
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
2872
2872
|
const snapshot = luvio.storeLookup({
|
|
2873
2873
|
recordId: key,
|
|
2874
|
-
node: select$
|
|
2874
|
+
node: select$p(),
|
|
2875
2875
|
variables: {},
|
|
2876
2876
|
});
|
|
2877
2877
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2882,7 +2882,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
2882
2882
|
deepFreeze(snapshot.data);
|
|
2883
2883
|
return snapshot;
|
|
2884
2884
|
}
|
|
2885
|
-
function createResourceRequest$
|
|
2885
|
+
function createResourceRequest$a(config) {
|
|
2886
2886
|
const headers = {};
|
|
2887
2887
|
return {
|
|
2888
2888
|
baseUri: '/services/data/v65.0',
|
|
@@ -2896,23 +2896,23 @@ function createResourceRequest$9(config) {
|
|
|
2896
2896
|
};
|
|
2897
2897
|
}
|
|
2898
2898
|
|
|
2899
|
-
const adapterName$
|
|
2899
|
+
const adapterName$a = 'adhocTasksAtm';
|
|
2900
2900
|
const adhocTasksAtm_ConfigPropertyMetadata = [
|
|
2901
2901
|
generateParamConfigMetadata('tasks', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2902
2902
|
generateParamConfigMetadata('taskCreationMode', true, 2 /* Body */, 0 /* String */),
|
|
2903
2903
|
generateParamConfigMetadata('templateTasks', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2904
2904
|
];
|
|
2905
|
-
const adhocTasksAtm_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2906
|
-
const createResourceParams$
|
|
2907
|
-
function typeCheckConfig$
|
|
2905
|
+
const adhocTasksAtm_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, adhocTasksAtm_ConfigPropertyMetadata);
|
|
2906
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$j(adhocTasksAtm_ConfigPropertyMetadata);
|
|
2907
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
2908
2908
|
const config = {};
|
|
2909
|
-
typeCheckConfig$
|
|
2909
|
+
typeCheckConfig$j(untrustedConfig, config, adhocTasksAtm_ConfigPropertyMetadata);
|
|
2910
2910
|
const untrustedConfig_tasks = untrustedConfig.tasks;
|
|
2911
2911
|
if (ArrayIsArray$1(untrustedConfig_tasks)) {
|
|
2912
2912
|
const untrustedConfig_tasks_array = [];
|
|
2913
2913
|
for (let i = 0, arrayLength = untrustedConfig_tasks.length; i < arrayLength; i++) {
|
|
2914
2914
|
const untrustedConfig_tasks_item = untrustedConfig_tasks[i];
|
|
2915
|
-
const referenceTaskValuesInputRepresentationValidationError = validate$
|
|
2915
|
+
const referenceTaskValuesInputRepresentationValidationError = validate$t(untrustedConfig_tasks_item);
|
|
2916
2916
|
if (referenceTaskValuesInputRepresentationValidationError === null) {
|
|
2917
2917
|
untrustedConfig_tasks_array.push(untrustedConfig_tasks_item);
|
|
2918
2918
|
}
|
|
@@ -2920,36 +2920,36 @@ function typeCheckConfig$9(untrustedConfig) {
|
|
|
2920
2920
|
config.tasks = untrustedConfig_tasks_array;
|
|
2921
2921
|
}
|
|
2922
2922
|
const untrustedConfig_templateTasks = untrustedConfig.templateTasks;
|
|
2923
|
-
const referenceTemplateTaskValuesInputRepresentationValidationError = validate$
|
|
2923
|
+
const referenceTemplateTaskValuesInputRepresentationValidationError = validate$s(untrustedConfig_templateTasks);
|
|
2924
2924
|
if (referenceTemplateTaskValuesInputRepresentationValidationError === null) {
|
|
2925
2925
|
config.templateTasks = untrustedConfig_templateTasks;
|
|
2926
2926
|
}
|
|
2927
2927
|
return config;
|
|
2928
2928
|
}
|
|
2929
|
-
function validateAdapterConfig$
|
|
2929
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
2930
2930
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2931
2931
|
return null;
|
|
2932
2932
|
}
|
|
2933
2933
|
if (process.env.NODE_ENV !== 'production') {
|
|
2934
2934
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2935
2935
|
}
|
|
2936
|
-
const config = typeCheckConfig$
|
|
2936
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
2937
2937
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2938
2938
|
return null;
|
|
2939
2939
|
}
|
|
2940
2940
|
return config;
|
|
2941
2941
|
}
|
|
2942
|
-
function buildNetworkSnapshot$
|
|
2943
|
-
const resourceParams = createResourceParams$
|
|
2944
|
-
const request = createResourceRequest$
|
|
2942
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
2943
|
+
const resourceParams = createResourceParams$a(config);
|
|
2944
|
+
const request = createResourceRequest$a(resourceParams);
|
|
2945
2945
|
return luvio.dispatchResourceRequest(request, options)
|
|
2946
2946
|
.then((response) => {
|
|
2947
2947
|
return luvio.handleSuccessResponse(() => {
|
|
2948
|
-
const snapshot = ingestSuccess$
|
|
2948
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
2949
2949
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2950
2950
|
}, () => {
|
|
2951
2951
|
const cache = new StoreKeyMap();
|
|
2952
|
-
getResponseCacheKeys$
|
|
2952
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
2953
2953
|
return cache;
|
|
2954
2954
|
});
|
|
2955
2955
|
}, (response) => {
|
|
@@ -2959,16 +2959,16 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
2959
2959
|
}
|
|
2960
2960
|
const adhocTasksAtmAdapterFactory = (luvio) => {
|
|
2961
2961
|
return function adhocTasksAtm(untrustedConfig) {
|
|
2962
|
-
const config = validateAdapterConfig$
|
|
2962
|
+
const config = validateAdapterConfig$a(untrustedConfig, adhocTasksAtm_ConfigPropertyNames);
|
|
2963
2963
|
// Invalid or incomplete config
|
|
2964
2964
|
if (config === null) {
|
|
2965
2965
|
throw new Error('Invalid config for "adhocTasksAtm"');
|
|
2966
2966
|
}
|
|
2967
|
-
return buildNetworkSnapshot$
|
|
2967
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
2968
2968
|
};
|
|
2969
2969
|
};
|
|
2970
2970
|
|
|
2971
|
-
function validate$
|
|
2971
|
+
function validate$q(obj, path = 'RescheduleSlotChainInputRepresentation') {
|
|
2972
2972
|
const v_error = (() => {
|
|
2973
2973
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2974
2974
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2986,7 +2986,7 @@ function validate$k(obj, path = 'RescheduleSlotChainInputRepresentation') {
|
|
|
2986
2986
|
for (let i = 0; i < obj_newSlotsInputRepresentation.length; i++) {
|
|
2987
2987
|
const obj_newSlotsInputRepresentation_item = obj_newSlotsInputRepresentation[i];
|
|
2988
2988
|
const path_newSlotsInputRepresentation_item = path_newSlotsInputRepresentation + '[' + i + ']';
|
|
2989
|
-
const referencepath_newSlotsInputRepresentation_itemValidationError = validate$
|
|
2989
|
+
const referencepath_newSlotsInputRepresentation_itemValidationError = validate$A(obj_newSlotsInputRepresentation_item, path_newSlotsInputRepresentation_item);
|
|
2990
2990
|
if (referencepath_newSlotsInputRepresentation_itemValidationError !== null) {
|
|
2991
2991
|
let message = 'Object doesn\'t match SlotInputRepresentation (at "' + path_newSlotsInputRepresentation_item + '")\n';
|
|
2992
2992
|
message += referencepath_newSlotsInputRepresentation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3033,8 +3033,8 @@ function validate$k(obj, path = 'RescheduleSlotChainInputRepresentation') {
|
|
|
3033
3033
|
return v_error === undefined ? null : v_error;
|
|
3034
3034
|
}
|
|
3035
3035
|
|
|
3036
|
-
const VERSION$
|
|
3037
|
-
function validate$
|
|
3036
|
+
const VERSION$e = "0a21004720a4a00b9cae62c2c6419360";
|
|
3037
|
+
function validate$p(obj, path = 'RescheduleSlotChainOutputRepresentation') {
|
|
3038
3038
|
const v_error = (() => {
|
|
3039
3039
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3040
3040
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3122,23 +3122,23 @@ function validate$j(obj, path = 'RescheduleSlotChainOutputRepresentation') {
|
|
|
3122
3122
|
})();
|
|
3123
3123
|
return v_error === undefined ? null : v_error;
|
|
3124
3124
|
}
|
|
3125
|
-
const RepresentationType$
|
|
3126
|
-
function keyBuilder$
|
|
3127
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3125
|
+
const RepresentationType$9 = 'RescheduleSlotChainOutputRepresentation';
|
|
3126
|
+
function keyBuilder$d(luvio, config) {
|
|
3127
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.isSuccess;
|
|
3128
3128
|
}
|
|
3129
3129
|
function keyBuilderFromType$5(luvio, object) {
|
|
3130
3130
|
const keyParams = {
|
|
3131
3131
|
isSuccess: object.isSuccess
|
|
3132
3132
|
};
|
|
3133
|
-
return keyBuilder$
|
|
3133
|
+
return keyBuilder$d(luvio, keyParams);
|
|
3134
3134
|
}
|
|
3135
|
-
function normalize$
|
|
3135
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
3136
3136
|
return input;
|
|
3137
3137
|
}
|
|
3138
|
-
const select$
|
|
3138
|
+
const select$o = function RescheduleSlotChainOutputRepresentationSelect() {
|
|
3139
3139
|
return {
|
|
3140
3140
|
kind: 'Fragment',
|
|
3141
|
-
version: VERSION$
|
|
3141
|
+
version: VERSION$e,
|
|
3142
3142
|
private: [],
|
|
3143
3143
|
selections: [
|
|
3144
3144
|
{
|
|
@@ -3168,7 +3168,7 @@ const select$m = function RescheduleSlotChainOutputRepresentationSelect() {
|
|
|
3168
3168
|
]
|
|
3169
3169
|
};
|
|
3170
3170
|
};
|
|
3171
|
-
function equals$
|
|
3171
|
+
function equals$e(existing, incoming) {
|
|
3172
3172
|
const existing_isSuccess = existing.isSuccess;
|
|
3173
3173
|
const incoming_isSuccess = incoming.isSuccess;
|
|
3174
3174
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -3225,41 +3225,41 @@ function equals$d(existing, incoming) {
|
|
|
3225
3225
|
}
|
|
3226
3226
|
return true;
|
|
3227
3227
|
}
|
|
3228
|
-
const ingest$
|
|
3228
|
+
const ingest$9 = function RescheduleSlotChainOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3229
3229
|
if (process.env.NODE_ENV !== 'production') {
|
|
3230
|
-
const validateError = validate$
|
|
3230
|
+
const validateError = validate$p(input);
|
|
3231
3231
|
if (validateError !== null) {
|
|
3232
3232
|
throw validateError;
|
|
3233
3233
|
}
|
|
3234
3234
|
}
|
|
3235
3235
|
const key = keyBuilderFromType$5(luvio, input);
|
|
3236
3236
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
3237
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3237
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "healthcloud", VERSION$e, RepresentationType$9, equals$e);
|
|
3238
3238
|
return createLink(key);
|
|
3239
3239
|
};
|
|
3240
|
-
function getTypeCacheKeys$
|
|
3240
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
3241
3241
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3242
3242
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
3243
3243
|
rootKeySet.set(rootKey, {
|
|
3244
3244
|
namespace: keyPrefix,
|
|
3245
|
-
representationName: RepresentationType$
|
|
3245
|
+
representationName: RepresentationType$9,
|
|
3246
3246
|
mergeable: false
|
|
3247
3247
|
});
|
|
3248
3248
|
}
|
|
3249
3249
|
|
|
3250
|
-
function select$
|
|
3251
|
-
return select$
|
|
3250
|
+
function select$n(luvio, params) {
|
|
3251
|
+
return select$o();
|
|
3252
3252
|
}
|
|
3253
|
-
function getResponseCacheKeys$
|
|
3254
|
-
getTypeCacheKeys$
|
|
3253
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
3254
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
3255
3255
|
}
|
|
3256
|
-
function ingestSuccess$
|
|
3256
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
3257
3257
|
const { body } = response;
|
|
3258
3258
|
const key = keyBuilderFromType$5(luvio, body);
|
|
3259
|
-
luvio.storeIngest(key, ingest$
|
|
3259
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
3260
3260
|
const snapshot = luvio.storeLookup({
|
|
3261
3261
|
recordId: key,
|
|
3262
|
-
node: select$
|
|
3262
|
+
node: select$n(),
|
|
3263
3263
|
variables: {},
|
|
3264
3264
|
});
|
|
3265
3265
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3270,7 +3270,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
3270
3270
|
deepFreeze(snapshot.data);
|
|
3271
3271
|
return snapshot;
|
|
3272
3272
|
}
|
|
3273
|
-
function createResourceRequest$
|
|
3273
|
+
function createResourceRequest$9(config) {
|
|
3274
3274
|
const headers = {};
|
|
3275
3275
|
return {
|
|
3276
3276
|
baseUri: '/services/data/v65.0',
|
|
@@ -3284,45 +3284,45 @@ function createResourceRequest$8(config) {
|
|
|
3284
3284
|
};
|
|
3285
3285
|
}
|
|
3286
3286
|
|
|
3287
|
-
const adapterName$
|
|
3287
|
+
const adapterName$9 = 'rescheduleSlotChain';
|
|
3288
3288
|
const rescheduleSlotChain_ConfigPropertyMetadata = [
|
|
3289
3289
|
generateParamConfigMetadata('RescheduleSlotChainInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3290
3290
|
];
|
|
3291
|
-
const rescheduleSlotChain_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3292
|
-
const createResourceParams$
|
|
3293
|
-
function typeCheckConfig$
|
|
3291
|
+
const rescheduleSlotChain_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, rescheduleSlotChain_ConfigPropertyMetadata);
|
|
3292
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$j(rescheduleSlotChain_ConfigPropertyMetadata);
|
|
3293
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
3294
3294
|
const config = {};
|
|
3295
3295
|
const untrustedConfig_RescheduleSlotChainInput = untrustedConfig.RescheduleSlotChainInput;
|
|
3296
|
-
const referenceRescheduleSlotChainInputRepresentationValidationError = validate$
|
|
3296
|
+
const referenceRescheduleSlotChainInputRepresentationValidationError = validate$q(untrustedConfig_RescheduleSlotChainInput);
|
|
3297
3297
|
if (referenceRescheduleSlotChainInputRepresentationValidationError === null) {
|
|
3298
3298
|
config.RescheduleSlotChainInput = untrustedConfig_RescheduleSlotChainInput;
|
|
3299
3299
|
}
|
|
3300
3300
|
return config;
|
|
3301
3301
|
}
|
|
3302
|
-
function validateAdapterConfig$
|
|
3302
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
3303
3303
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3304
3304
|
return null;
|
|
3305
3305
|
}
|
|
3306
3306
|
if (process.env.NODE_ENV !== 'production') {
|
|
3307
3307
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3308
3308
|
}
|
|
3309
|
-
const config = typeCheckConfig$
|
|
3309
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
3310
3310
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3311
3311
|
return null;
|
|
3312
3312
|
}
|
|
3313
3313
|
return config;
|
|
3314
3314
|
}
|
|
3315
|
-
function buildNetworkSnapshot$
|
|
3316
|
-
const resourceParams = createResourceParams$
|
|
3317
|
-
const request = createResourceRequest$
|
|
3315
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
3316
|
+
const resourceParams = createResourceParams$9(config);
|
|
3317
|
+
const request = createResourceRequest$9(resourceParams);
|
|
3318
3318
|
return luvio.dispatchResourceRequest(request, options)
|
|
3319
3319
|
.then((response) => {
|
|
3320
3320
|
return luvio.handleSuccessResponse(() => {
|
|
3321
|
-
const snapshot = ingestSuccess$
|
|
3321
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
3322
3322
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3323
3323
|
}, () => {
|
|
3324
3324
|
const cache = new StoreKeyMap();
|
|
3325
|
-
getResponseCacheKeys$
|
|
3325
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
3326
3326
|
return cache;
|
|
3327
3327
|
});
|
|
3328
3328
|
}, (response) => {
|
|
@@ -3332,16 +3332,16 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
3332
3332
|
}
|
|
3333
3333
|
const rescheduleSlotChainAdapterFactory = (luvio) => {
|
|
3334
3334
|
return function rescheduleSlotChain(untrustedConfig) {
|
|
3335
|
-
const config = validateAdapterConfig$
|
|
3335
|
+
const config = validateAdapterConfig$9(untrustedConfig, rescheduleSlotChain_ConfigPropertyNames);
|
|
3336
3336
|
// Invalid or incomplete config
|
|
3337
3337
|
if (config === null) {
|
|
3338
3338
|
throw new Error('Invalid config for "rescheduleSlotChain"');
|
|
3339
3339
|
}
|
|
3340
|
-
return buildNetworkSnapshot$
|
|
3340
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
3341
3341
|
};
|
|
3342
3342
|
};
|
|
3343
3343
|
|
|
3344
|
-
function validate$
|
|
3344
|
+
function validate$o(obj, path = 'FetchServiceTerritoriesInputRepresentation') {
|
|
3345
3345
|
const v_error = (() => {
|
|
3346
3346
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3347
3347
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3372,8 +3372,8 @@ function validate$i(obj, path = 'FetchServiceTerritoriesInputRepresentation') {
|
|
|
3372
3372
|
return v_error === undefined ? null : v_error;
|
|
3373
3373
|
}
|
|
3374
3374
|
|
|
3375
|
-
const VERSION$
|
|
3376
|
-
function validate$
|
|
3375
|
+
const VERSION$d = "d320e1dbe94b8c22ed7cd5234606534e";
|
|
3376
|
+
function validate$n(obj, path = 'FetchServiceTerritoriesOutputRepresentation') {
|
|
3377
3377
|
const v_error = (() => {
|
|
3378
3378
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3379
3379
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3414,14 +3414,14 @@ function validate$h(obj, path = 'FetchServiceTerritoriesOutputRepresentation') {
|
|
|
3414
3414
|
})();
|
|
3415
3415
|
return v_error === undefined ? null : v_error;
|
|
3416
3416
|
}
|
|
3417
|
-
const RepresentationType$
|
|
3418
|
-
function normalize$
|
|
3417
|
+
const RepresentationType$8 = 'FetchServiceTerritoriesOutputRepresentation';
|
|
3418
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
3419
3419
|
return input;
|
|
3420
3420
|
}
|
|
3421
|
-
const select$
|
|
3421
|
+
const select$m = function FetchServiceTerritoriesOutputRepresentationSelect() {
|
|
3422
3422
|
return {
|
|
3423
3423
|
kind: 'Fragment',
|
|
3424
|
-
version: VERSION$
|
|
3424
|
+
version: VERSION$d,
|
|
3425
3425
|
private: [],
|
|
3426
3426
|
selections: [
|
|
3427
3427
|
{
|
|
@@ -3445,7 +3445,7 @@ const select$k = function FetchServiceTerritoriesOutputRepresentationSelect() {
|
|
|
3445
3445
|
]
|
|
3446
3446
|
};
|
|
3447
3447
|
};
|
|
3448
|
-
function equals$
|
|
3448
|
+
function equals$d(existing, incoming) {
|
|
3449
3449
|
const existing_isSuccess = existing.isSuccess;
|
|
3450
3450
|
const incoming_isSuccess = incoming.isSuccess;
|
|
3451
3451
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -3489,44 +3489,44 @@ function equals$c(existing, incoming) {
|
|
|
3489
3489
|
}
|
|
3490
3490
|
return true;
|
|
3491
3491
|
}
|
|
3492
|
-
const ingest$
|
|
3492
|
+
const ingest$8 = function FetchServiceTerritoriesOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3493
3493
|
if (process.env.NODE_ENV !== 'production') {
|
|
3494
|
-
const validateError = validate$
|
|
3494
|
+
const validateError = validate$n(input);
|
|
3495
3495
|
if (validateError !== null) {
|
|
3496
3496
|
throw validateError;
|
|
3497
3497
|
}
|
|
3498
3498
|
}
|
|
3499
3499
|
const key = path.fullPath;
|
|
3500
3500
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
3501
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3501
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "healthcloud", VERSION$d, RepresentationType$8, equals$d);
|
|
3502
3502
|
return createLink(key);
|
|
3503
3503
|
};
|
|
3504
|
-
function getTypeCacheKeys$
|
|
3504
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
3505
3505
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3506
3506
|
const rootKey = fullPathFactory();
|
|
3507
3507
|
rootKeySet.set(rootKey, {
|
|
3508
3508
|
namespace: keyPrefix,
|
|
3509
|
-
representationName: RepresentationType$
|
|
3509
|
+
representationName: RepresentationType$8,
|
|
3510
3510
|
mergeable: false
|
|
3511
3511
|
});
|
|
3512
3512
|
}
|
|
3513
3513
|
|
|
3514
|
-
function select$
|
|
3515
|
-
return select$
|
|
3514
|
+
function select$l(luvio, params) {
|
|
3515
|
+
return select$m();
|
|
3516
3516
|
}
|
|
3517
|
-
function keyBuilder$
|
|
3517
|
+
function keyBuilder$c(luvio, params) {
|
|
3518
3518
|
return keyPrefix + '::FetchServiceTerritoriesOutputRepresentation:(' + 'getWorkTypeServiceTerritories.transplantCenterId:' + params.body.getWorkTypeServiceTerritories.transplantCenterId + '::' + 'getWorkTypeServiceTerritories.workProcedureId:' + params.body.getWorkTypeServiceTerritories.workProcedureId + '::' + 'getWorkTypeServiceTerritories.workTypeIds:' + params.body.getWorkTypeServiceTerritories.workTypeIds + ')';
|
|
3519
3519
|
}
|
|
3520
|
-
function getResponseCacheKeys$
|
|
3521
|
-
getTypeCacheKeys$
|
|
3520
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
3521
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$c(luvio, resourceParams));
|
|
3522
3522
|
}
|
|
3523
|
-
function ingestSuccess$
|
|
3523
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
3524
3524
|
const { body } = response;
|
|
3525
|
-
const key = keyBuilder$
|
|
3526
|
-
luvio.storeIngest(key, ingest$
|
|
3525
|
+
const key = keyBuilder$c(luvio, resourceParams);
|
|
3526
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
3527
3527
|
const snapshot = luvio.storeLookup({
|
|
3528
3528
|
recordId: key,
|
|
3529
|
-
node: select$
|
|
3529
|
+
node: select$l(),
|
|
3530
3530
|
variables: {},
|
|
3531
3531
|
}, snapshotRefresh);
|
|
3532
3532
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3537,13 +3537,13 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3537
3537
|
deepFreeze(snapshot.data);
|
|
3538
3538
|
return snapshot;
|
|
3539
3539
|
}
|
|
3540
|
-
function ingestError$
|
|
3541
|
-
const key = keyBuilder$
|
|
3540
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
3541
|
+
const key = keyBuilder$c(luvio, params);
|
|
3542
3542
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3543
3543
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3544
3544
|
return errorSnapshot;
|
|
3545
3545
|
}
|
|
3546
|
-
function createResourceRequest$
|
|
3546
|
+
function createResourceRequest$8(config) {
|
|
3547
3547
|
const headers = {};
|
|
3548
3548
|
return {
|
|
3549
3549
|
baseUri: '/services/data/v65.0',
|
|
@@ -3557,97 +3557,97 @@ function createResourceRequest$7(config) {
|
|
|
3557
3557
|
};
|
|
3558
3558
|
}
|
|
3559
3559
|
|
|
3560
|
-
const adapterName$
|
|
3560
|
+
const adapterName$8 = 'getWorkTypeServiceTerritories';
|
|
3561
3561
|
const getWorkTypeServiceTerritories_ConfigPropertyMetadata = [
|
|
3562
3562
|
generateParamConfigMetadata('getWorkTypeServiceTerritories', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3563
3563
|
];
|
|
3564
|
-
const getWorkTypeServiceTerritories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3565
|
-
const createResourceParams$
|
|
3566
|
-
function keyBuilder$
|
|
3567
|
-
const resourceParams = createResourceParams$
|
|
3568
|
-
return keyBuilder$
|
|
3564
|
+
const getWorkTypeServiceTerritories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getWorkTypeServiceTerritories_ConfigPropertyMetadata);
|
|
3565
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$j(getWorkTypeServiceTerritories_ConfigPropertyMetadata);
|
|
3566
|
+
function keyBuilder$b(luvio, config) {
|
|
3567
|
+
const resourceParams = createResourceParams$8(config);
|
|
3568
|
+
return keyBuilder$c(luvio, resourceParams);
|
|
3569
3569
|
}
|
|
3570
|
-
function typeCheckConfig$
|
|
3570
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
3571
3571
|
const config = {};
|
|
3572
3572
|
const untrustedConfig_getWorkTypeServiceTerritories = untrustedConfig.getWorkTypeServiceTerritories;
|
|
3573
|
-
const referenceFetchServiceTerritoriesInputRepresentationValidationError = validate$
|
|
3573
|
+
const referenceFetchServiceTerritoriesInputRepresentationValidationError = validate$o(untrustedConfig_getWorkTypeServiceTerritories);
|
|
3574
3574
|
if (referenceFetchServiceTerritoriesInputRepresentationValidationError === null) {
|
|
3575
3575
|
config.getWorkTypeServiceTerritories = untrustedConfig_getWorkTypeServiceTerritories;
|
|
3576
3576
|
}
|
|
3577
3577
|
return config;
|
|
3578
3578
|
}
|
|
3579
|
-
function validateAdapterConfig$
|
|
3579
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
3580
3580
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3581
3581
|
return null;
|
|
3582
3582
|
}
|
|
3583
3583
|
if (process.env.NODE_ENV !== 'production') {
|
|
3584
3584
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3585
3585
|
}
|
|
3586
|
-
const config = typeCheckConfig$
|
|
3586
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
3587
3587
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3588
3588
|
return null;
|
|
3589
3589
|
}
|
|
3590
3590
|
return config;
|
|
3591
3591
|
}
|
|
3592
|
-
function adapterFragment$
|
|
3593
|
-
createResourceParams$
|
|
3594
|
-
return select$
|
|
3592
|
+
function adapterFragment$3(luvio, config) {
|
|
3593
|
+
createResourceParams$8(config);
|
|
3594
|
+
return select$l();
|
|
3595
3595
|
}
|
|
3596
|
-
function onFetchResponseSuccess$
|
|
3597
|
-
const snapshot = ingestSuccess$
|
|
3596
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
3597
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
3598
3598
|
config,
|
|
3599
|
-
resolve: () => buildNetworkSnapshot$
|
|
3599
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
3600
3600
|
});
|
|
3601
3601
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3602
3602
|
}
|
|
3603
|
-
function onFetchResponseError$
|
|
3604
|
-
const snapshot = ingestError$
|
|
3603
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
3604
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
3605
3605
|
config,
|
|
3606
|
-
resolve: () => buildNetworkSnapshot$
|
|
3606
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
3607
3607
|
});
|
|
3608
3608
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3609
3609
|
}
|
|
3610
|
-
function buildNetworkSnapshot$
|
|
3611
|
-
const resourceParams = createResourceParams$
|
|
3612
|
-
const request = createResourceRequest$
|
|
3610
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
3611
|
+
const resourceParams = createResourceParams$8(config);
|
|
3612
|
+
const request = createResourceRequest$8(resourceParams);
|
|
3613
3613
|
return luvio.dispatchResourceRequest(request, options)
|
|
3614
3614
|
.then((response) => {
|
|
3615
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3615
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
3616
3616
|
const cache = new StoreKeyMap();
|
|
3617
|
-
getResponseCacheKeys$
|
|
3617
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
3618
3618
|
return cache;
|
|
3619
3619
|
});
|
|
3620
3620
|
}, (response) => {
|
|
3621
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3621
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
3622
3622
|
});
|
|
3623
3623
|
}
|
|
3624
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3625
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3624
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
3625
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, 'get', false);
|
|
3626
3626
|
}
|
|
3627
|
-
function buildCachedSnapshotCachePolicy$
|
|
3627
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
3628
3628
|
const { luvio, config } = context;
|
|
3629
3629
|
const selector = {
|
|
3630
|
-
recordId: keyBuilder$
|
|
3631
|
-
node: adapterFragment$
|
|
3630
|
+
recordId: keyBuilder$b(luvio, config),
|
|
3631
|
+
node: adapterFragment$3(luvio, config),
|
|
3632
3632
|
variables: {},
|
|
3633
3633
|
};
|
|
3634
3634
|
const cacheSnapshot = storeLookup(selector, {
|
|
3635
3635
|
config,
|
|
3636
|
-
resolve: () => buildNetworkSnapshot$
|
|
3636
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
3637
3637
|
});
|
|
3638
3638
|
return cacheSnapshot;
|
|
3639
3639
|
}
|
|
3640
3640
|
const getWorkTypeServiceTerritoriesAdapterFactory = (luvio) => function healthcloud__getWorkTypeServiceTerritories(untrustedConfig, requestContext) {
|
|
3641
|
-
const config = validateAdapterConfig$
|
|
3641
|
+
const config = validateAdapterConfig$8(untrustedConfig, getWorkTypeServiceTerritories_ConfigPropertyNames);
|
|
3642
3642
|
// Invalid or incomplete config
|
|
3643
3643
|
if (config === null) {
|
|
3644
3644
|
return null;
|
|
3645
3645
|
}
|
|
3646
3646
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3647
|
-
buildCachedSnapshotCachePolicy$
|
|
3647
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
3648
3648
|
};
|
|
3649
3649
|
|
|
3650
|
-
function validate$
|
|
3650
|
+
function validate$m(obj, path = 'MoveToNextStepInputRepresentation') {
|
|
3651
3651
|
const v_error = (() => {
|
|
3652
3652
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3653
3653
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3661,8 +3661,8 @@ function validate$g(obj, path = 'MoveToNextStepInputRepresentation') {
|
|
|
3661
3661
|
return v_error === undefined ? null : v_error;
|
|
3662
3662
|
}
|
|
3663
3663
|
|
|
3664
|
-
const VERSION$
|
|
3665
|
-
function validate$
|
|
3664
|
+
const VERSION$c = "f0f7338cd73b28f5f4f664d2162e1849";
|
|
3665
|
+
function validate$l(obj, path = 'MoveToNextStepOutputRepresentation') {
|
|
3666
3666
|
const v_error = (() => {
|
|
3667
3667
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3668
3668
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3726,23 +3726,23 @@ function validate$f(obj, path = 'MoveToNextStepOutputRepresentation') {
|
|
|
3726
3726
|
})();
|
|
3727
3727
|
return v_error === undefined ? null : v_error;
|
|
3728
3728
|
}
|
|
3729
|
-
const RepresentationType$
|
|
3730
|
-
function keyBuilder$
|
|
3731
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3729
|
+
const RepresentationType$7 = 'MoveToNextStepOutputRepresentation';
|
|
3730
|
+
function keyBuilder$a(luvio, config) {
|
|
3731
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.isSuccess;
|
|
3732
3732
|
}
|
|
3733
3733
|
function keyBuilderFromType$4(luvio, object) {
|
|
3734
3734
|
const keyParams = {
|
|
3735
3735
|
isSuccess: object.isSuccess
|
|
3736
3736
|
};
|
|
3737
|
-
return keyBuilder$
|
|
3737
|
+
return keyBuilder$a(luvio, keyParams);
|
|
3738
3738
|
}
|
|
3739
|
-
function normalize$
|
|
3739
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
3740
3740
|
return input;
|
|
3741
3741
|
}
|
|
3742
|
-
const select$
|
|
3742
|
+
const select$k = function MoveToNextStepOutputRepresentationSelect() {
|
|
3743
3743
|
return {
|
|
3744
3744
|
kind: 'Fragment',
|
|
3745
|
-
version: VERSION$
|
|
3745
|
+
version: VERSION$c,
|
|
3746
3746
|
private: [],
|
|
3747
3747
|
selections: [
|
|
3748
3748
|
{
|
|
@@ -3776,7 +3776,7 @@ const select$i = function MoveToNextStepOutputRepresentationSelect() {
|
|
|
3776
3776
|
]
|
|
3777
3777
|
};
|
|
3778
3778
|
};
|
|
3779
|
-
function equals$
|
|
3779
|
+
function equals$c(existing, incoming) {
|
|
3780
3780
|
const existing_isSuccess = existing.isSuccess;
|
|
3781
3781
|
const incoming_isSuccess = incoming.isSuccess;
|
|
3782
3782
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -3814,41 +3814,41 @@ function equals$b(existing, incoming) {
|
|
|
3814
3814
|
}
|
|
3815
3815
|
return true;
|
|
3816
3816
|
}
|
|
3817
|
-
const ingest$
|
|
3817
|
+
const ingest$7 = function MoveToNextStepOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3818
3818
|
if (process.env.NODE_ENV !== 'production') {
|
|
3819
|
-
const validateError = validate$
|
|
3819
|
+
const validateError = validate$l(input);
|
|
3820
3820
|
if (validateError !== null) {
|
|
3821
3821
|
throw validateError;
|
|
3822
3822
|
}
|
|
3823
3823
|
}
|
|
3824
3824
|
const key = keyBuilderFromType$4(luvio, input);
|
|
3825
3825
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
3826
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3826
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "healthcloud", VERSION$c, RepresentationType$7, equals$c);
|
|
3827
3827
|
return createLink(key);
|
|
3828
3828
|
};
|
|
3829
|
-
function getTypeCacheKeys$
|
|
3829
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
3830
3830
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3831
3831
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
3832
3832
|
rootKeySet.set(rootKey, {
|
|
3833
3833
|
namespace: keyPrefix,
|
|
3834
|
-
representationName: RepresentationType$
|
|
3834
|
+
representationName: RepresentationType$7,
|
|
3835
3835
|
mergeable: false
|
|
3836
3836
|
});
|
|
3837
3837
|
}
|
|
3838
3838
|
|
|
3839
|
-
function select$
|
|
3840
|
-
return select$
|
|
3839
|
+
function select$j(luvio, params) {
|
|
3840
|
+
return select$k();
|
|
3841
3841
|
}
|
|
3842
|
-
function getResponseCacheKeys$
|
|
3843
|
-
getTypeCacheKeys$
|
|
3842
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
3843
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
3844
3844
|
}
|
|
3845
|
-
function ingestSuccess$
|
|
3845
|
+
function ingestSuccess$7(luvio, resourceParams, response) {
|
|
3846
3846
|
const { body } = response;
|
|
3847
3847
|
const key = keyBuilderFromType$4(luvio, body);
|
|
3848
|
-
luvio.storeIngest(key, ingest$
|
|
3848
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
3849
3849
|
const snapshot = luvio.storeLookup({
|
|
3850
3850
|
recordId: key,
|
|
3851
|
-
node: select$
|
|
3851
|
+
node: select$j(),
|
|
3852
3852
|
variables: {},
|
|
3853
3853
|
});
|
|
3854
3854
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3859,7 +3859,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
3859
3859
|
deepFreeze(snapshot.data);
|
|
3860
3860
|
return snapshot;
|
|
3861
3861
|
}
|
|
3862
|
-
function createResourceRequest$
|
|
3862
|
+
function createResourceRequest$7(config) {
|
|
3863
3863
|
const headers = {};
|
|
3864
3864
|
return {
|
|
3865
3865
|
baseUri: '/services/data/v65.0',
|
|
@@ -3873,45 +3873,45 @@ function createResourceRequest$6(config) {
|
|
|
3873
3873
|
};
|
|
3874
3874
|
}
|
|
3875
3875
|
|
|
3876
|
-
const adapterName$
|
|
3876
|
+
const adapterName$7 = 'moveToNextStep';
|
|
3877
3877
|
const moveToNextStep_ConfigPropertyMetadata = [
|
|
3878
3878
|
generateParamConfigMetadata('MoveToNextStepInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3879
3879
|
];
|
|
3880
|
-
const moveToNextStep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3881
|
-
const createResourceParams$
|
|
3882
|
-
function typeCheckConfig$
|
|
3880
|
+
const moveToNextStep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, moveToNextStep_ConfigPropertyMetadata);
|
|
3881
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$j(moveToNextStep_ConfigPropertyMetadata);
|
|
3882
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
3883
3883
|
const config = {};
|
|
3884
3884
|
const untrustedConfig_MoveToNextStepInput = untrustedConfig.MoveToNextStepInput;
|
|
3885
|
-
const referenceMoveToNextStepInputRepresentationValidationError = validate$
|
|
3885
|
+
const referenceMoveToNextStepInputRepresentationValidationError = validate$m(untrustedConfig_MoveToNextStepInput);
|
|
3886
3886
|
if (referenceMoveToNextStepInputRepresentationValidationError === null) {
|
|
3887
3887
|
config.MoveToNextStepInput = untrustedConfig_MoveToNextStepInput;
|
|
3888
3888
|
}
|
|
3889
3889
|
return config;
|
|
3890
3890
|
}
|
|
3891
|
-
function validateAdapterConfig$
|
|
3891
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
3892
3892
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3893
3893
|
return null;
|
|
3894
3894
|
}
|
|
3895
3895
|
if (process.env.NODE_ENV !== 'production') {
|
|
3896
3896
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3897
3897
|
}
|
|
3898
|
-
const config = typeCheckConfig$
|
|
3898
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
3899
3899
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3900
3900
|
return null;
|
|
3901
3901
|
}
|
|
3902
3902
|
return config;
|
|
3903
3903
|
}
|
|
3904
|
-
function buildNetworkSnapshot$
|
|
3905
|
-
const resourceParams = createResourceParams$
|
|
3906
|
-
const request = createResourceRequest$
|
|
3904
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
3905
|
+
const resourceParams = createResourceParams$7(config);
|
|
3906
|
+
const request = createResourceRequest$7(resourceParams);
|
|
3907
3907
|
return luvio.dispatchResourceRequest(request, options)
|
|
3908
3908
|
.then((response) => {
|
|
3909
3909
|
return luvio.handleSuccessResponse(() => {
|
|
3910
|
-
const snapshot = ingestSuccess$
|
|
3910
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response);
|
|
3911
3911
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3912
3912
|
}, () => {
|
|
3913
3913
|
const cache = new StoreKeyMap();
|
|
3914
|
-
getResponseCacheKeys$
|
|
3914
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
3915
3915
|
return cache;
|
|
3916
3916
|
});
|
|
3917
3917
|
}, (response) => {
|
|
@@ -3921,17 +3921,17 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
3921
3921
|
}
|
|
3922
3922
|
const moveToNextStepAdapterFactory = (luvio) => {
|
|
3923
3923
|
return function moveToNextStep(untrustedConfig) {
|
|
3924
|
-
const config = validateAdapterConfig$
|
|
3924
|
+
const config = validateAdapterConfig$7(untrustedConfig, moveToNextStep_ConfigPropertyNames);
|
|
3925
3925
|
// Invalid or incomplete config
|
|
3926
3926
|
if (config === null) {
|
|
3927
3927
|
throw new Error('Invalid config for "moveToNextStep"');
|
|
3928
3928
|
}
|
|
3929
|
-
return buildNetworkSnapshot$
|
|
3929
|
+
return buildNetworkSnapshot$7(luvio, config);
|
|
3930
3930
|
};
|
|
3931
3931
|
};
|
|
3932
3932
|
|
|
3933
|
-
const VERSION$
|
|
3934
|
-
function validate$
|
|
3933
|
+
const VERSION$b = "d26671870c7aaa40aaa79ea28ca20bb2";
|
|
3934
|
+
function validate$k(obj, path = 'QuotaAvailabilityDateRange') {
|
|
3935
3935
|
const v_error = (() => {
|
|
3936
3936
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3937
3937
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3953,10 +3953,10 @@ function validate$e(obj, path = 'QuotaAvailabilityDateRange') {
|
|
|
3953
3953
|
})();
|
|
3954
3954
|
return v_error === undefined ? null : v_error;
|
|
3955
3955
|
}
|
|
3956
|
-
const select$
|
|
3956
|
+
const select$i = function QuotaAvailabilityDateRangeSelect() {
|
|
3957
3957
|
return {
|
|
3958
3958
|
kind: 'Fragment',
|
|
3959
|
-
version: VERSION$
|
|
3959
|
+
version: VERSION$b,
|
|
3960
3960
|
private: [],
|
|
3961
3961
|
selections: [
|
|
3962
3962
|
{
|
|
@@ -3972,7 +3972,7 @@ const select$g = function QuotaAvailabilityDateRangeSelect() {
|
|
|
3972
3972
|
]
|
|
3973
3973
|
};
|
|
3974
3974
|
};
|
|
3975
|
-
function equals$
|
|
3975
|
+
function equals$b(existing, incoming) {
|
|
3976
3976
|
const existing_quotaEndDate = existing.quotaEndDate;
|
|
3977
3977
|
const incoming_quotaEndDate = incoming.quotaEndDate;
|
|
3978
3978
|
// if at least one of these optionals is defined
|
|
@@ -4002,8 +4002,8 @@ function equals$a(existing, incoming) {
|
|
|
4002
4002
|
return true;
|
|
4003
4003
|
}
|
|
4004
4004
|
|
|
4005
|
-
const VERSION$
|
|
4006
|
-
function validate$
|
|
4005
|
+
const VERSION$a = "84cb9603dea57a49dda070bca3ee9bb7";
|
|
4006
|
+
function validate$j(obj, path = 'QuotaAvailabilityRepresentation') {
|
|
4007
4007
|
const v_error = (() => {
|
|
4008
4008
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4009
4009
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4017,7 +4017,7 @@ function validate$d(obj, path = 'QuotaAvailabilityRepresentation') {
|
|
|
4017
4017
|
for (let i = 0; i < obj_availabilityRangeList.length; i++) {
|
|
4018
4018
|
const obj_availabilityRangeList_item = obj_availabilityRangeList[i];
|
|
4019
4019
|
const path_availabilityRangeList_item = path_availabilityRangeList + '[' + i + ']';
|
|
4020
|
-
const referencepath_availabilityRangeList_itemValidationError = validate$
|
|
4020
|
+
const referencepath_availabilityRangeList_itemValidationError = validate$k(obj_availabilityRangeList_item, path_availabilityRangeList_item);
|
|
4021
4021
|
if (referencepath_availabilityRangeList_itemValidationError !== null) {
|
|
4022
4022
|
let message = 'Object doesn\'t match QuotaAvailabilityDateRange (at "' + path_availabilityRangeList_item + '")\n';
|
|
4023
4023
|
message += referencepath_availabilityRangeList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4035,11 +4035,11 @@ function validate$d(obj, path = 'QuotaAvailabilityRepresentation') {
|
|
|
4035
4035
|
})();
|
|
4036
4036
|
return v_error === undefined ? null : v_error;
|
|
4037
4037
|
}
|
|
4038
|
-
const select$
|
|
4039
|
-
const { selections: QuotaAvailabilityDateRange__selections, opaque: QuotaAvailabilityDateRange__opaque, } = select$
|
|
4038
|
+
const select$h = function QuotaAvailabilityRepresentationSelect() {
|
|
4039
|
+
const { selections: QuotaAvailabilityDateRange__selections, opaque: QuotaAvailabilityDateRange__opaque, } = select$i();
|
|
4040
4040
|
return {
|
|
4041
4041
|
kind: 'Fragment',
|
|
4042
|
-
version: VERSION$
|
|
4042
|
+
version: VERSION$a,
|
|
4043
4043
|
private: [],
|
|
4044
4044
|
selections: [
|
|
4045
4045
|
{
|
|
@@ -4057,7 +4057,7 @@ const select$f = function QuotaAvailabilityRepresentationSelect() {
|
|
|
4057
4057
|
]
|
|
4058
4058
|
};
|
|
4059
4059
|
};
|
|
4060
|
-
function equals$
|
|
4060
|
+
function equals$a(existing, incoming) {
|
|
4061
4061
|
const existing_workTypeId = existing.workTypeId;
|
|
4062
4062
|
const incoming_workTypeId = incoming.workTypeId;
|
|
4063
4063
|
// if at least one of these optionals is defined
|
|
@@ -4081,7 +4081,7 @@ function equals$9(existing, incoming) {
|
|
|
4081
4081
|
return false;
|
|
4082
4082
|
}
|
|
4083
4083
|
const equals_availabilityRangeList_items = equalsArray(existing_availabilityRangeList, incoming_availabilityRangeList, (existing_availabilityRangeList_item, incoming_availabilityRangeList_item) => {
|
|
4084
|
-
if (!(equals$
|
|
4084
|
+
if (!(equals$b(existing_availabilityRangeList_item, incoming_availabilityRangeList_item))) {
|
|
4085
4085
|
return false;
|
|
4086
4086
|
}
|
|
4087
4087
|
});
|
|
@@ -4092,8 +4092,8 @@ function equals$9(existing, incoming) {
|
|
|
4092
4092
|
return true;
|
|
4093
4093
|
}
|
|
4094
4094
|
|
|
4095
|
-
const VERSION$
|
|
4096
|
-
function validate$
|
|
4095
|
+
const VERSION$9 = "f1fa9c520361858bd08a791ca1d95f53";
|
|
4096
|
+
function validate$i(obj, path = 'QuotasAllocationOutputRepresentation') {
|
|
4097
4097
|
const v_error = (() => {
|
|
4098
4098
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4099
4099
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4124,7 +4124,7 @@ function validate$c(obj, path = 'QuotasAllocationOutputRepresentation') {
|
|
|
4124
4124
|
for (let i = 0; i < obj_quotaAvailability.length; i++) {
|
|
4125
4125
|
const obj_quotaAvailability_item = obj_quotaAvailability[i];
|
|
4126
4126
|
const path_quotaAvailability_item = path_quotaAvailability + '[' + i + ']';
|
|
4127
|
-
const referencepath_quotaAvailability_itemValidationError = validate$
|
|
4127
|
+
const referencepath_quotaAvailability_itemValidationError = validate$j(obj_quotaAvailability_item, path_quotaAvailability_item);
|
|
4128
4128
|
if (referencepath_quotaAvailability_itemValidationError !== null) {
|
|
4129
4129
|
let message = 'Object doesn\'t match QuotaAvailabilityRepresentation (at "' + path_quotaAvailability_item + '")\n';
|
|
4130
4130
|
message += referencepath_quotaAvailability_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4135,24 +4135,24 @@ function validate$c(obj, path = 'QuotasAllocationOutputRepresentation') {
|
|
|
4135
4135
|
})();
|
|
4136
4136
|
return v_error === undefined ? null : v_error;
|
|
4137
4137
|
}
|
|
4138
|
-
const RepresentationType$
|
|
4139
|
-
function keyBuilder$
|
|
4140
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4138
|
+
const RepresentationType$6 = 'QuotasAllocationOutputRepresentation';
|
|
4139
|
+
function keyBuilder$9(luvio, config) {
|
|
4140
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.isSuccess;
|
|
4141
4141
|
}
|
|
4142
4142
|
function keyBuilderFromType$3(luvio, object) {
|
|
4143
4143
|
const keyParams = {
|
|
4144
4144
|
isSuccess: object.isSuccess
|
|
4145
4145
|
};
|
|
4146
|
-
return keyBuilder$
|
|
4146
|
+
return keyBuilder$9(luvio, keyParams);
|
|
4147
4147
|
}
|
|
4148
|
-
function normalize$
|
|
4148
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
4149
4149
|
return input;
|
|
4150
4150
|
}
|
|
4151
|
-
const select$
|
|
4152
|
-
const { selections: QuotaAvailabilityRepresentation__selections, opaque: QuotaAvailabilityRepresentation__opaque, } = select$
|
|
4151
|
+
const select$g = function QuotasAllocationOutputRepresentationSelect() {
|
|
4152
|
+
const { selections: QuotaAvailabilityRepresentation__selections, opaque: QuotaAvailabilityRepresentation__opaque, } = select$h();
|
|
4153
4153
|
return {
|
|
4154
4154
|
kind: 'Fragment',
|
|
4155
|
-
version: VERSION$
|
|
4155
|
+
version: VERSION$9,
|
|
4156
4156
|
private: [],
|
|
4157
4157
|
selections: [
|
|
4158
4158
|
{
|
|
@@ -4178,7 +4178,7 @@ const select$e = function QuotasAllocationOutputRepresentationSelect() {
|
|
|
4178
4178
|
]
|
|
4179
4179
|
};
|
|
4180
4180
|
};
|
|
4181
|
-
function equals$
|
|
4181
|
+
function equals$9(existing, incoming) {
|
|
4182
4182
|
const existing_isSuccess = existing.isSuccess;
|
|
4183
4183
|
const incoming_isSuccess = incoming.isSuccess;
|
|
4184
4184
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -4212,7 +4212,7 @@ function equals$8(existing, incoming) {
|
|
|
4212
4212
|
return false;
|
|
4213
4213
|
}
|
|
4214
4214
|
const equals_quotaAvailability_items = equalsArray(existing_quotaAvailability, incoming_quotaAvailability, (existing_quotaAvailability_item, incoming_quotaAvailability_item) => {
|
|
4215
|
-
if (!(equals$
|
|
4215
|
+
if (!(equals$a(existing_quotaAvailability_item, incoming_quotaAvailability_item))) {
|
|
4216
4216
|
return false;
|
|
4217
4217
|
}
|
|
4218
4218
|
});
|
|
@@ -4222,41 +4222,41 @@ function equals$8(existing, incoming) {
|
|
|
4222
4222
|
}
|
|
4223
4223
|
return true;
|
|
4224
4224
|
}
|
|
4225
|
-
const ingest$
|
|
4225
|
+
const ingest$6 = function QuotasAllocationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4226
4226
|
if (process.env.NODE_ENV !== 'production') {
|
|
4227
|
-
const validateError = validate$
|
|
4227
|
+
const validateError = validate$i(input);
|
|
4228
4228
|
if (validateError !== null) {
|
|
4229
4229
|
throw validateError;
|
|
4230
4230
|
}
|
|
4231
4231
|
}
|
|
4232
4232
|
const key = keyBuilderFromType$3(luvio, input);
|
|
4233
4233
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
4234
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4234
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "healthcloud", VERSION$9, RepresentationType$6, equals$9);
|
|
4235
4235
|
return createLink(key);
|
|
4236
4236
|
};
|
|
4237
|
-
function getTypeCacheKeys$
|
|
4237
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
4238
4238
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4239
4239
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
4240
4240
|
rootKeySet.set(rootKey, {
|
|
4241
4241
|
namespace: keyPrefix,
|
|
4242
|
-
representationName: RepresentationType$
|
|
4242
|
+
representationName: RepresentationType$6,
|
|
4243
4243
|
mergeable: false
|
|
4244
4244
|
});
|
|
4245
4245
|
}
|
|
4246
4246
|
|
|
4247
|
-
function select$
|
|
4248
|
-
return select$
|
|
4247
|
+
function select$f(luvio, params) {
|
|
4248
|
+
return select$g();
|
|
4249
4249
|
}
|
|
4250
|
-
function getResponseCacheKeys$
|
|
4251
|
-
getTypeCacheKeys$
|
|
4250
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
4251
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
4252
4252
|
}
|
|
4253
|
-
function ingestSuccess$
|
|
4253
|
+
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
4254
4254
|
const { body } = response;
|
|
4255
4255
|
const key = keyBuilderFromType$3(luvio, body);
|
|
4256
|
-
luvio.storeIngest(key, ingest$
|
|
4256
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
4257
4257
|
const snapshot = luvio.storeLookup({
|
|
4258
4258
|
recordId: key,
|
|
4259
|
-
node: select$
|
|
4259
|
+
node: select$f(),
|
|
4260
4260
|
variables: {},
|
|
4261
4261
|
});
|
|
4262
4262
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4267,7 +4267,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
4267
4267
|
deepFreeze(snapshot.data);
|
|
4268
4268
|
return snapshot;
|
|
4269
4269
|
}
|
|
4270
|
-
function createResourceRequest$
|
|
4270
|
+
function createResourceRequest$6(config) {
|
|
4271
4271
|
const headers = {};
|
|
4272
4272
|
return {
|
|
4273
4273
|
baseUri: '/services/data/v65.0',
|
|
@@ -4281,7 +4281,7 @@ function createResourceRequest$5(config) {
|
|
|
4281
4281
|
};
|
|
4282
4282
|
}
|
|
4283
4283
|
|
|
4284
|
-
const adapterName$
|
|
4284
|
+
const adapterName$6 = 'getQuotasAndAllocation';
|
|
4285
4285
|
const getQuotasAndAllocation_ConfigPropertyMetadata = [
|
|
4286
4286
|
generateParamConfigMetadata('contextId', true, 2 /* Body */, 0 /* String */),
|
|
4287
4287
|
generateParamConfigMetadata('endDate', true, 2 /* Body */, 0 /* String */),
|
|
@@ -4291,11 +4291,11 @@ const getQuotasAndAllocation_ConfigPropertyMetadata = [
|
|
|
4291
4291
|
generateParamConfigMetadata('workProcedureId', false, 2 /* Body */, 0 /* String */),
|
|
4292
4292
|
generateParamConfigMetadata('workTypeId', false, 2 /* Body */, 0 /* String */),
|
|
4293
4293
|
];
|
|
4294
|
-
const getQuotasAndAllocation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4295
|
-
const createResourceParams$
|
|
4296
|
-
function typeCheckConfig$
|
|
4294
|
+
const getQuotasAndAllocation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getQuotasAndAllocation_ConfigPropertyMetadata);
|
|
4295
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$j(getQuotasAndAllocation_ConfigPropertyMetadata);
|
|
4296
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
4297
4297
|
const config = {};
|
|
4298
|
-
typeCheckConfig$
|
|
4298
|
+
typeCheckConfig$j(untrustedConfig, config, getQuotasAndAllocation_ConfigPropertyMetadata);
|
|
4299
4299
|
const untrustedConfig_leadTimeMap = untrustedConfig.leadTimeMap;
|
|
4300
4300
|
if (untrustedIsObject(untrustedConfig_leadTimeMap)) {
|
|
4301
4301
|
const untrustedConfig_leadTimeMap_object = {};
|
|
@@ -4315,30 +4315,30 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
4315
4315
|
}
|
|
4316
4316
|
return config;
|
|
4317
4317
|
}
|
|
4318
|
-
function validateAdapterConfig$
|
|
4318
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
4319
4319
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4320
4320
|
return null;
|
|
4321
4321
|
}
|
|
4322
4322
|
if (process.env.NODE_ENV !== 'production') {
|
|
4323
4323
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4324
4324
|
}
|
|
4325
|
-
const config = typeCheckConfig$
|
|
4325
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
4326
4326
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4327
4327
|
return null;
|
|
4328
4328
|
}
|
|
4329
4329
|
return config;
|
|
4330
4330
|
}
|
|
4331
|
-
function buildNetworkSnapshot$
|
|
4332
|
-
const resourceParams = createResourceParams$
|
|
4333
|
-
const request = createResourceRequest$
|
|
4331
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
4332
|
+
const resourceParams = createResourceParams$6(config);
|
|
4333
|
+
const request = createResourceRequest$6(resourceParams);
|
|
4334
4334
|
return luvio.dispatchResourceRequest(request, options)
|
|
4335
4335
|
.then((response) => {
|
|
4336
4336
|
return luvio.handleSuccessResponse(() => {
|
|
4337
|
-
const snapshot = ingestSuccess$
|
|
4337
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
4338
4338
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4339
4339
|
}, () => {
|
|
4340
4340
|
const cache = new StoreKeyMap();
|
|
4341
|
-
getResponseCacheKeys$
|
|
4341
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
4342
4342
|
return cache;
|
|
4343
4343
|
});
|
|
4344
4344
|
}, (response) => {
|
|
@@ -4348,16 +4348,16 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
4348
4348
|
}
|
|
4349
4349
|
const getQuotasAndAllocationAdapterFactory = (luvio) => {
|
|
4350
4350
|
return function getQuotasAndAllocation(untrustedConfig) {
|
|
4351
|
-
const config = validateAdapterConfig$
|
|
4351
|
+
const config = validateAdapterConfig$6(untrustedConfig, getQuotasAndAllocation_ConfigPropertyNames);
|
|
4352
4352
|
// Invalid or incomplete config
|
|
4353
4353
|
if (config === null) {
|
|
4354
4354
|
throw new Error('Invalid config for "getQuotasAndAllocation"');
|
|
4355
4355
|
}
|
|
4356
|
-
return buildNetworkSnapshot$
|
|
4356
|
+
return buildNetworkSnapshot$6(luvio, config);
|
|
4357
4357
|
};
|
|
4358
4358
|
};
|
|
4359
4359
|
|
|
4360
|
-
function validate$
|
|
4360
|
+
function validate$h(obj, path = 'DigitalVerificationInputFieldsMapInputRepresentation') {
|
|
4361
4361
|
const v_error = (() => {
|
|
4362
4362
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4363
4363
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4375,7 +4375,7 @@ function validate$b(obj, path = 'DigitalVerificationInputFieldsMapInputRepresent
|
|
|
4375
4375
|
return v_error === undefined ? null : v_error;
|
|
4376
4376
|
}
|
|
4377
4377
|
|
|
4378
|
-
function validate$
|
|
4378
|
+
function validate$g(obj, path = 'UserCredentialsInputRepresentation') {
|
|
4379
4379
|
const v_error = (() => {
|
|
4380
4380
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4381
4381
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4394,8 +4394,8 @@ function validate$a(obj, path = 'UserCredentialsInputRepresentation') {
|
|
|
4394
4394
|
return v_error === undefined ? null : v_error;
|
|
4395
4395
|
}
|
|
4396
4396
|
|
|
4397
|
-
const VERSION$
|
|
4398
|
-
function validate$
|
|
4397
|
+
const VERSION$8 = "22d453b42db16c04725356edb4898de2";
|
|
4398
|
+
function validate$f(obj, path = 'DigitalVerificationOutputRepresentation') {
|
|
4399
4399
|
const v_error = (() => {
|
|
4400
4400
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4401
4401
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4439,23 +4439,23 @@ function validate$9(obj, path = 'DigitalVerificationOutputRepresentation') {
|
|
|
4439
4439
|
})();
|
|
4440
4440
|
return v_error === undefined ? null : v_error;
|
|
4441
4441
|
}
|
|
4442
|
-
const RepresentationType$
|
|
4443
|
-
function keyBuilder$
|
|
4444
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4442
|
+
const RepresentationType$5 = 'DigitalVerificationOutputRepresentation';
|
|
4443
|
+
function keyBuilder$8(luvio, config) {
|
|
4444
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + config.isSuccess;
|
|
4445
4445
|
}
|
|
4446
4446
|
function keyBuilderFromType$2(luvio, object) {
|
|
4447
4447
|
const keyParams = {
|
|
4448
4448
|
isSuccess: object.isSuccess
|
|
4449
4449
|
};
|
|
4450
|
-
return keyBuilder$
|
|
4450
|
+
return keyBuilder$8(luvio, keyParams);
|
|
4451
4451
|
}
|
|
4452
|
-
function normalize$
|
|
4452
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
4453
4453
|
return input;
|
|
4454
4454
|
}
|
|
4455
|
-
const select$
|
|
4455
|
+
const select$e = function DigitalVerificationOutputRepresentationSelect() {
|
|
4456
4456
|
return {
|
|
4457
4457
|
kind: 'Fragment',
|
|
4458
|
-
version: VERSION$
|
|
4458
|
+
version: VERSION$8,
|
|
4459
4459
|
private: [],
|
|
4460
4460
|
selections: [
|
|
4461
4461
|
{
|
|
@@ -4473,7 +4473,7 @@ const select$c = function DigitalVerificationOutputRepresentationSelect() {
|
|
|
4473
4473
|
]
|
|
4474
4474
|
};
|
|
4475
4475
|
};
|
|
4476
|
-
function equals$
|
|
4476
|
+
function equals$8(existing, incoming) {
|
|
4477
4477
|
const existing_isSuccess = existing.isSuccess;
|
|
4478
4478
|
const incoming_isSuccess = incoming.isSuccess;
|
|
4479
4479
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -4491,41 +4491,41 @@ function equals$7(existing, incoming) {
|
|
|
4491
4491
|
}
|
|
4492
4492
|
return true;
|
|
4493
4493
|
}
|
|
4494
|
-
const ingest$
|
|
4494
|
+
const ingest$5 = function DigitalVerificationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4495
4495
|
if (process.env.NODE_ENV !== 'production') {
|
|
4496
|
-
const validateError = validate$
|
|
4496
|
+
const validateError = validate$f(input);
|
|
4497
4497
|
if (validateError !== null) {
|
|
4498
4498
|
throw validateError;
|
|
4499
4499
|
}
|
|
4500
4500
|
}
|
|
4501
4501
|
const key = keyBuilderFromType$2(luvio, input);
|
|
4502
4502
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
4503
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4503
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "healthcloud", VERSION$8, RepresentationType$5, equals$8);
|
|
4504
4504
|
return createLink(key);
|
|
4505
4505
|
};
|
|
4506
|
-
function getTypeCacheKeys$
|
|
4506
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
4507
4507
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4508
4508
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
4509
4509
|
rootKeySet.set(rootKey, {
|
|
4510
4510
|
namespace: keyPrefix,
|
|
4511
|
-
representationName: RepresentationType$
|
|
4511
|
+
representationName: RepresentationType$5,
|
|
4512
4512
|
mergeable: false
|
|
4513
4513
|
});
|
|
4514
4514
|
}
|
|
4515
4515
|
|
|
4516
|
-
function select$
|
|
4517
|
-
return select$
|
|
4516
|
+
function select$d(luvio, params) {
|
|
4517
|
+
return select$e();
|
|
4518
4518
|
}
|
|
4519
|
-
function getResponseCacheKeys$
|
|
4520
|
-
getTypeCacheKeys$
|
|
4519
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
4520
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
4521
4521
|
}
|
|
4522
|
-
function ingestSuccess$
|
|
4522
|
+
function ingestSuccess$5(luvio, resourceParams, response) {
|
|
4523
4523
|
const { body } = response;
|
|
4524
4524
|
const key = keyBuilderFromType$2(luvio, body);
|
|
4525
|
-
luvio.storeIngest(key, ingest$
|
|
4525
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
4526
4526
|
const snapshot = luvio.storeLookup({
|
|
4527
4527
|
recordId: key,
|
|
4528
|
-
node: select$
|
|
4528
|
+
node: select$d(),
|
|
4529
4529
|
variables: {},
|
|
4530
4530
|
});
|
|
4531
4531
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4536,7 +4536,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
4536
4536
|
deepFreeze(snapshot.data);
|
|
4537
4537
|
return snapshot;
|
|
4538
4538
|
}
|
|
4539
|
-
function createResourceRequest$
|
|
4539
|
+
function createResourceRequest$5(config) {
|
|
4540
4540
|
const headers = {};
|
|
4541
4541
|
return {
|
|
4542
4542
|
baseUri: '/services/data/v65.0',
|
|
@@ -4550,54 +4550,54 @@ function createResourceRequest$4(config) {
|
|
|
4550
4550
|
};
|
|
4551
4551
|
}
|
|
4552
4552
|
|
|
4553
|
-
const adapterName$
|
|
4553
|
+
const adapterName$5 = 'digitalVerification';
|
|
4554
4554
|
const digitalVerification_ConfigPropertyMetadata = [
|
|
4555
4555
|
generateParamConfigMetadata('digitalVerificationId', true, 2 /* Body */, 0 /* String */),
|
|
4556
4556
|
generateParamConfigMetadata('digitalVerificationInputFieldsMap', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4557
4557
|
generateParamConfigMetadata('sessionId', false, 2 /* Body */, 0 /* String */),
|
|
4558
4558
|
generateParamConfigMetadata('userCredentials', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4559
4559
|
];
|
|
4560
|
-
const digitalVerification_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4561
|
-
const createResourceParams$
|
|
4562
|
-
function typeCheckConfig$
|
|
4560
|
+
const digitalVerification_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, digitalVerification_ConfigPropertyMetadata);
|
|
4561
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$j(digitalVerification_ConfigPropertyMetadata);
|
|
4562
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
4563
4563
|
const config = {};
|
|
4564
|
-
typeCheckConfig$
|
|
4564
|
+
typeCheckConfig$j(untrustedConfig, config, digitalVerification_ConfigPropertyMetadata);
|
|
4565
4565
|
const untrustedConfig_digitalVerificationInputFieldsMap = untrustedConfig.digitalVerificationInputFieldsMap;
|
|
4566
|
-
const referenceDigitalVerificationInputFieldsMapInputRepresentationValidationError = validate$
|
|
4566
|
+
const referenceDigitalVerificationInputFieldsMapInputRepresentationValidationError = validate$h(untrustedConfig_digitalVerificationInputFieldsMap);
|
|
4567
4567
|
if (referenceDigitalVerificationInputFieldsMapInputRepresentationValidationError === null) {
|
|
4568
4568
|
config.digitalVerificationInputFieldsMap = untrustedConfig_digitalVerificationInputFieldsMap;
|
|
4569
4569
|
}
|
|
4570
4570
|
const untrustedConfig_userCredentials = untrustedConfig.userCredentials;
|
|
4571
|
-
const referenceUserCredentialsInputRepresentationValidationError = validate$
|
|
4571
|
+
const referenceUserCredentialsInputRepresentationValidationError = validate$g(untrustedConfig_userCredentials);
|
|
4572
4572
|
if (referenceUserCredentialsInputRepresentationValidationError === null) {
|
|
4573
4573
|
config.userCredentials = untrustedConfig_userCredentials;
|
|
4574
4574
|
}
|
|
4575
4575
|
return config;
|
|
4576
4576
|
}
|
|
4577
|
-
function validateAdapterConfig$
|
|
4577
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
4578
4578
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4579
4579
|
return null;
|
|
4580
4580
|
}
|
|
4581
4581
|
if (process.env.NODE_ENV !== 'production') {
|
|
4582
4582
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4583
4583
|
}
|
|
4584
|
-
const config = typeCheckConfig$
|
|
4584
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
4585
4585
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4586
4586
|
return null;
|
|
4587
4587
|
}
|
|
4588
4588
|
return config;
|
|
4589
4589
|
}
|
|
4590
|
-
function buildNetworkSnapshot$
|
|
4591
|
-
const resourceParams = createResourceParams$
|
|
4592
|
-
const request = createResourceRequest$
|
|
4590
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
4591
|
+
const resourceParams = createResourceParams$5(config);
|
|
4592
|
+
const request = createResourceRequest$5(resourceParams);
|
|
4593
4593
|
return luvio.dispatchResourceRequest(request, options)
|
|
4594
4594
|
.then((response) => {
|
|
4595
4595
|
return luvio.handleSuccessResponse(() => {
|
|
4596
|
-
const snapshot = ingestSuccess$
|
|
4596
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response);
|
|
4597
4597
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4598
4598
|
}, () => {
|
|
4599
4599
|
const cache = new StoreKeyMap();
|
|
4600
|
-
getResponseCacheKeys$
|
|
4600
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
4601
4601
|
return cache;
|
|
4602
4602
|
});
|
|
4603
4603
|
}, (response) => {
|
|
@@ -4607,16 +4607,16 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
4607
4607
|
}
|
|
4608
4608
|
const digitalVerificationAdapterFactory = (luvio) => {
|
|
4609
4609
|
return function digitalVerification(untrustedConfig) {
|
|
4610
|
-
const config = validateAdapterConfig$
|
|
4610
|
+
const config = validateAdapterConfig$5(untrustedConfig, digitalVerification_ConfigPropertyNames);
|
|
4611
4611
|
// Invalid or incomplete config
|
|
4612
4612
|
if (config === null) {
|
|
4613
4613
|
throw new Error('Invalid config for "digitalVerification"');
|
|
4614
4614
|
}
|
|
4615
|
-
return buildNetworkSnapshot$
|
|
4615
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
4616
4616
|
};
|
|
4617
4617
|
};
|
|
4618
4618
|
|
|
4619
|
-
function validate$
|
|
4619
|
+
function validate$e(obj, path = 'FetchEntityDetailsSearchConditionInputRepresentation') {
|
|
4620
4620
|
const v_error = (() => {
|
|
4621
4621
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4622
4622
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4646,7 +4646,7 @@ function validate$8(obj, path = 'FetchEntityDetailsSearchConditionInputRepresent
|
|
|
4646
4646
|
return v_error === undefined ? null : v_error;
|
|
4647
4647
|
}
|
|
4648
4648
|
|
|
4649
|
-
function validate$
|
|
4649
|
+
function validate$d(obj, path = 'FetchEntityDetailsInputRepresentation') {
|
|
4650
4650
|
const v_error = (() => {
|
|
4651
4651
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4652
4652
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4689,7 +4689,7 @@ function validate$7(obj, path = 'FetchEntityDetailsInputRepresentation') {
|
|
|
4689
4689
|
for (let i = 0; i < obj_whereConditionList.length; i++) {
|
|
4690
4690
|
const obj_whereConditionList_item = obj_whereConditionList[i];
|
|
4691
4691
|
const path_whereConditionList_item = path_whereConditionList + '[' + i + ']';
|
|
4692
|
-
const referencepath_whereConditionList_itemValidationError = validate$
|
|
4692
|
+
const referencepath_whereConditionList_itemValidationError = validate$e(obj_whereConditionList_item, path_whereConditionList_item);
|
|
4693
4693
|
if (referencepath_whereConditionList_itemValidationError !== null) {
|
|
4694
4694
|
let message = 'Object doesn\'t match FetchEntityDetailsSearchConditionInputRepresentation (at "' + path_whereConditionList_item + '")\n';
|
|
4695
4695
|
message += referencepath_whereConditionList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4701,8 +4701,8 @@ function validate$7(obj, path = 'FetchEntityDetailsInputRepresentation') {
|
|
|
4701
4701
|
return v_error === undefined ? null : v_error;
|
|
4702
4702
|
}
|
|
4703
4703
|
|
|
4704
|
-
const VERSION$
|
|
4705
|
-
function validate$
|
|
4704
|
+
const VERSION$7 = "c0474ec7befad9e93c213556f8e55595";
|
|
4705
|
+
function validate$c(obj, path = 'FetchEntityDetailsOutputRepresentation') {
|
|
4706
4706
|
const v_error = (() => {
|
|
4707
4707
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4708
4708
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4771,62 +4771,62 @@ function validate$6(obj, path = 'FetchEntityDetailsOutputRepresentation') {
|
|
|
4771
4771
|
})();
|
|
4772
4772
|
return v_error === undefined ? null : v_error;
|
|
4773
4773
|
}
|
|
4774
|
-
const RepresentationType$
|
|
4775
|
-
function normalize$
|
|
4774
|
+
const RepresentationType$4 = 'FetchEntityDetailsOutputRepresentation';
|
|
4775
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
4776
4776
|
return input;
|
|
4777
4777
|
}
|
|
4778
|
-
const select$
|
|
4778
|
+
const select$c = function FetchEntityDetailsOutputRepresentationSelect() {
|
|
4779
4779
|
return {
|
|
4780
4780
|
kind: 'Fragment',
|
|
4781
|
-
version: VERSION$
|
|
4781
|
+
version: VERSION$7,
|
|
4782
4782
|
private: [],
|
|
4783
4783
|
opaque: true
|
|
4784
4784
|
};
|
|
4785
4785
|
};
|
|
4786
|
-
function equals$
|
|
4786
|
+
function equals$7(existing, incoming) {
|
|
4787
4787
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4788
4788
|
return false;
|
|
4789
4789
|
}
|
|
4790
4790
|
return true;
|
|
4791
4791
|
}
|
|
4792
|
-
const ingest$
|
|
4792
|
+
const ingest$4 = function FetchEntityDetailsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4793
4793
|
if (process.env.NODE_ENV !== 'production') {
|
|
4794
|
-
const validateError = validate$
|
|
4794
|
+
const validateError = validate$c(input);
|
|
4795
4795
|
if (validateError !== null) {
|
|
4796
4796
|
throw validateError;
|
|
4797
4797
|
}
|
|
4798
4798
|
}
|
|
4799
4799
|
const key = path.fullPath;
|
|
4800
4800
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
4801
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4801
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "healthcloud", VERSION$7, RepresentationType$4, equals$7);
|
|
4802
4802
|
return createLink(key);
|
|
4803
4803
|
};
|
|
4804
|
-
function getTypeCacheKeys$
|
|
4804
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
4805
4805
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4806
4806
|
const rootKey = fullPathFactory();
|
|
4807
4807
|
rootKeySet.set(rootKey, {
|
|
4808
4808
|
namespace: keyPrefix,
|
|
4809
|
-
representationName: RepresentationType$
|
|
4809
|
+
representationName: RepresentationType$4,
|
|
4810
4810
|
mergeable: false
|
|
4811
4811
|
});
|
|
4812
4812
|
}
|
|
4813
4813
|
|
|
4814
|
-
function select$
|
|
4815
|
-
return select$
|
|
4814
|
+
function select$b(luvio, params) {
|
|
4815
|
+
return select$c();
|
|
4816
4816
|
}
|
|
4817
|
-
function keyBuilder$
|
|
4817
|
+
function keyBuilder$7(luvio, params) {
|
|
4818
4818
|
return keyPrefix + '::FetchEntityDetailsOutputRepresentation:(' + (params.body.fetchEntityDetailsInputParam.elevatedMode === undefined ? 'fetchEntityDetailsInputParam.elevatedMode' : 'fetchEntityDetailsInputParam.elevatedMode:' + params.body.fetchEntityDetailsInputParam.elevatedMode) + '::' + 'fetchEntityDetailsInputParam.entityApiName:' + params.body.fetchEntityDetailsInputParam.entityApiName + '::' + 'fetchEntityDetailsInputParam.filterLogic:' + params.body.fetchEntityDetailsInputParam.filterLogic + '::' + 'fetchEntityDetailsInputParam.queryFieldsList:' + params.body.fetchEntityDetailsInputParam.queryFieldsList + '::' + (params.body.fetchEntityDetailsInputParam.whereConditionList === undefined ? undefined : ('[' + params.body.fetchEntityDetailsInputParam.whereConditionList.map(element => (element.field === undefined ? 'fetchEntityDetailsInputParam.whereConditionList.field' : 'fetchEntityDetailsInputParam.whereConditionList.field:' + element.field) + '::' + (element.operand === undefined ? 'fetchEntityDetailsInputParam.whereConditionList.operand' : 'fetchEntityDetailsInputParam.whereConditionList.operand:' + element.operand) + '::' + (element.value === undefined ? 'fetchEntityDetailsInputParam.whereConditionList.value' : 'fetchEntityDetailsInputParam.whereConditionList.value:' + element.value)).join(',') + ']')) + ')';
|
|
4819
4819
|
}
|
|
4820
|
-
function getResponseCacheKeys$
|
|
4821
|
-
getTypeCacheKeys$
|
|
4820
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
4821
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
4822
4822
|
}
|
|
4823
|
-
function ingestSuccess$
|
|
4823
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
4824
4824
|
const { body } = response;
|
|
4825
|
-
const key = keyBuilder$
|
|
4826
|
-
luvio.storeIngest(key, ingest$
|
|
4825
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
4826
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
4827
4827
|
const snapshot = luvio.storeLookup({
|
|
4828
4828
|
recordId: key,
|
|
4829
|
-
node: select$
|
|
4829
|
+
node: select$b(),
|
|
4830
4830
|
variables: {},
|
|
4831
4831
|
}, snapshotRefresh);
|
|
4832
4832
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4837,13 +4837,13 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4837
4837
|
deepFreeze(snapshot.data);
|
|
4838
4838
|
return snapshot;
|
|
4839
4839
|
}
|
|
4840
|
-
function ingestError$
|
|
4841
|
-
const key = keyBuilder$
|
|
4840
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
4841
|
+
const key = keyBuilder$7(luvio, params);
|
|
4842
4842
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4843
4843
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4844
4844
|
return errorSnapshot;
|
|
4845
4845
|
}
|
|
4846
|
-
function createResourceRequest$
|
|
4846
|
+
function createResourceRequest$4(config) {
|
|
4847
4847
|
const headers = {};
|
|
4848
4848
|
return {
|
|
4849
4849
|
baseUri: '/services/data/v65.0',
|
|
@@ -4857,98 +4857,98 @@ function createResourceRequest$3(config) {
|
|
|
4857
4857
|
};
|
|
4858
4858
|
}
|
|
4859
4859
|
|
|
4860
|
-
const adapterName$
|
|
4860
|
+
const adapterName$4 = 'getEntityDetailsInfo';
|
|
4861
4861
|
const getEntityDetailsInfo_ConfigPropertyMetadata = [
|
|
4862
4862
|
generateParamConfigMetadata('fetchEntityDetailsInputParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4863
4863
|
];
|
|
4864
|
-
const getEntityDetailsInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4865
|
-
const createResourceParams$
|
|
4866
|
-
function keyBuilder$
|
|
4867
|
-
const resourceParams = createResourceParams$
|
|
4868
|
-
return keyBuilder$
|
|
4864
|
+
const getEntityDetailsInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getEntityDetailsInfo_ConfigPropertyMetadata);
|
|
4865
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$j(getEntityDetailsInfo_ConfigPropertyMetadata);
|
|
4866
|
+
function keyBuilder$6(luvio, config) {
|
|
4867
|
+
const resourceParams = createResourceParams$4(config);
|
|
4868
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
4869
4869
|
}
|
|
4870
|
-
function typeCheckConfig$
|
|
4870
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
4871
4871
|
const config = {};
|
|
4872
4872
|
const untrustedConfig_fetchEntityDetailsInputParam = untrustedConfig.fetchEntityDetailsInputParam;
|
|
4873
|
-
const referenceFetchEntityDetailsInputRepresentationValidationError = validate$
|
|
4873
|
+
const referenceFetchEntityDetailsInputRepresentationValidationError = validate$d(untrustedConfig_fetchEntityDetailsInputParam);
|
|
4874
4874
|
if (referenceFetchEntityDetailsInputRepresentationValidationError === null) {
|
|
4875
4875
|
config.fetchEntityDetailsInputParam = untrustedConfig_fetchEntityDetailsInputParam;
|
|
4876
4876
|
}
|
|
4877
4877
|
return config;
|
|
4878
4878
|
}
|
|
4879
|
-
function validateAdapterConfig$
|
|
4879
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
4880
4880
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4881
4881
|
return null;
|
|
4882
4882
|
}
|
|
4883
4883
|
if (process.env.NODE_ENV !== 'production') {
|
|
4884
4884
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4885
4885
|
}
|
|
4886
|
-
const config = typeCheckConfig$
|
|
4886
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
4887
4887
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4888
4888
|
return null;
|
|
4889
4889
|
}
|
|
4890
4890
|
return config;
|
|
4891
4891
|
}
|
|
4892
|
-
function adapterFragment$
|
|
4893
|
-
createResourceParams$
|
|
4894
|
-
return select$
|
|
4892
|
+
function adapterFragment$2(luvio, config) {
|
|
4893
|
+
createResourceParams$4(config);
|
|
4894
|
+
return select$b();
|
|
4895
4895
|
}
|
|
4896
|
-
function onFetchResponseSuccess$
|
|
4897
|
-
const snapshot = ingestSuccess$
|
|
4896
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
4897
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
4898
4898
|
config,
|
|
4899
|
-
resolve: () => buildNetworkSnapshot$
|
|
4899
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
4900
4900
|
});
|
|
4901
4901
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4902
4902
|
}
|
|
4903
|
-
function onFetchResponseError$
|
|
4904
|
-
const snapshot = ingestError$
|
|
4903
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
4904
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
4905
4905
|
config,
|
|
4906
|
-
resolve: () => buildNetworkSnapshot$
|
|
4906
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
4907
4907
|
});
|
|
4908
4908
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4909
4909
|
}
|
|
4910
|
-
function buildNetworkSnapshot$
|
|
4911
|
-
const resourceParams = createResourceParams$
|
|
4912
|
-
const request = createResourceRequest$
|
|
4910
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
4911
|
+
const resourceParams = createResourceParams$4(config);
|
|
4912
|
+
const request = createResourceRequest$4(resourceParams);
|
|
4913
4913
|
return luvio.dispatchResourceRequest(request, options)
|
|
4914
4914
|
.then((response) => {
|
|
4915
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4915
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
4916
4916
|
const cache = new StoreKeyMap();
|
|
4917
|
-
getResponseCacheKeys$
|
|
4917
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
4918
4918
|
return cache;
|
|
4919
4919
|
});
|
|
4920
4920
|
}, (response) => {
|
|
4921
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4921
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
4922
4922
|
});
|
|
4923
4923
|
}
|
|
4924
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4925
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4924
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
4925
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, 'get', false);
|
|
4926
4926
|
}
|
|
4927
|
-
function buildCachedSnapshotCachePolicy$
|
|
4927
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
4928
4928
|
const { luvio, config } = context;
|
|
4929
4929
|
const selector = {
|
|
4930
|
-
recordId: keyBuilder$
|
|
4931
|
-
node: adapterFragment$
|
|
4930
|
+
recordId: keyBuilder$6(luvio, config),
|
|
4931
|
+
node: adapterFragment$2(luvio, config),
|
|
4932
4932
|
variables: {},
|
|
4933
4933
|
};
|
|
4934
4934
|
const cacheSnapshot = storeLookup(selector, {
|
|
4935
4935
|
config,
|
|
4936
|
-
resolve: () => buildNetworkSnapshot$
|
|
4936
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
4937
4937
|
});
|
|
4938
4938
|
return cacheSnapshot;
|
|
4939
4939
|
}
|
|
4940
4940
|
const getEntityDetailsInfoAdapterFactory = (luvio) => function healthcloud__getEntityDetailsInfo(untrustedConfig, requestContext) {
|
|
4941
|
-
const config = validateAdapterConfig$
|
|
4941
|
+
const config = validateAdapterConfig$4(untrustedConfig, getEntityDetailsInfo_ConfigPropertyNames);
|
|
4942
4942
|
// Invalid or incomplete config
|
|
4943
4943
|
if (config === null) {
|
|
4944
4944
|
return null;
|
|
4945
4945
|
}
|
|
4946
4946
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4947
|
-
buildCachedSnapshotCachePolicy$
|
|
4947
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
4948
4948
|
};
|
|
4949
4949
|
|
|
4950
|
-
const VERSION$
|
|
4951
|
-
function validate$
|
|
4950
|
+
const VERSION$6 = "2ae0ec19b1cf32dffba65875c26b1213";
|
|
4951
|
+
function validate$b(obj, path = 'VisitBroadcastAssignmentOutputRepresentation') {
|
|
4952
4952
|
const v_error = (() => {
|
|
4953
4953
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4954
4954
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4992,23 +4992,23 @@ function validate$5(obj, path = 'VisitBroadcastAssignmentOutputRepresentation')
|
|
|
4992
4992
|
})();
|
|
4993
4993
|
return v_error === undefined ? null : v_error;
|
|
4994
4994
|
}
|
|
4995
|
-
const RepresentationType$
|
|
4996
|
-
function keyBuilder$
|
|
4997
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4995
|
+
const RepresentationType$3 = 'VisitBroadcastAssignmentOutputRepresentation';
|
|
4996
|
+
function keyBuilder$5(luvio, config) {
|
|
4997
|
+
return keyPrefix + '::' + RepresentationType$3 + ':' + config.isSuccess;
|
|
4998
4998
|
}
|
|
4999
4999
|
function keyBuilderFromType$1(luvio, object) {
|
|
5000
5000
|
const keyParams = {
|
|
5001
5001
|
isSuccess: object.isSuccess
|
|
5002
5002
|
};
|
|
5003
|
-
return keyBuilder$
|
|
5003
|
+
return keyBuilder$5(luvio, keyParams);
|
|
5004
5004
|
}
|
|
5005
|
-
function normalize$
|
|
5005
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
5006
5006
|
return input;
|
|
5007
5007
|
}
|
|
5008
|
-
const select$
|
|
5008
|
+
const select$a = function VisitBroadcastAssignmentOutputRepresentationSelect() {
|
|
5009
5009
|
return {
|
|
5010
5010
|
kind: 'Fragment',
|
|
5011
|
-
version: VERSION$
|
|
5011
|
+
version: VERSION$6,
|
|
5012
5012
|
private: [],
|
|
5013
5013
|
selections: [
|
|
5014
5014
|
{
|
|
@@ -5026,7 +5026,7 @@ const select$8 = function VisitBroadcastAssignmentOutputRepresentationSelect() {
|
|
|
5026
5026
|
]
|
|
5027
5027
|
};
|
|
5028
5028
|
};
|
|
5029
|
-
function equals$
|
|
5029
|
+
function equals$6(existing, incoming) {
|
|
5030
5030
|
const existing_isSuccess = existing.isSuccess;
|
|
5031
5031
|
const incoming_isSuccess = incoming.isSuccess;
|
|
5032
5032
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -5044,41 +5044,41 @@ function equals$5(existing, incoming) {
|
|
|
5044
5044
|
}
|
|
5045
5045
|
return true;
|
|
5046
5046
|
}
|
|
5047
|
-
const ingest$
|
|
5047
|
+
const ingest$3 = function VisitBroadcastAssignmentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5048
5048
|
if (process.env.NODE_ENV !== 'production') {
|
|
5049
|
-
const validateError = validate$
|
|
5049
|
+
const validateError = validate$b(input);
|
|
5050
5050
|
if (validateError !== null) {
|
|
5051
5051
|
throw validateError;
|
|
5052
5052
|
}
|
|
5053
5053
|
}
|
|
5054
5054
|
const key = keyBuilderFromType$1(luvio, input);
|
|
5055
5055
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
5056
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5056
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "healthcloud", VERSION$6, RepresentationType$3, equals$6);
|
|
5057
5057
|
return createLink(key);
|
|
5058
5058
|
};
|
|
5059
|
-
function getTypeCacheKeys$
|
|
5059
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
5060
5060
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5061
5061
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
5062
5062
|
rootKeySet.set(rootKey, {
|
|
5063
5063
|
namespace: keyPrefix,
|
|
5064
|
-
representationName: RepresentationType$
|
|
5064
|
+
representationName: RepresentationType$3,
|
|
5065
5065
|
mergeable: false
|
|
5066
5066
|
});
|
|
5067
5067
|
}
|
|
5068
5068
|
|
|
5069
|
-
function select$
|
|
5070
|
-
return select$
|
|
5069
|
+
function select$9(luvio, params) {
|
|
5070
|
+
return select$a();
|
|
5071
5071
|
}
|
|
5072
|
-
function getResponseCacheKeys$
|
|
5073
|
-
getTypeCacheKeys$
|
|
5072
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
5073
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
5074
5074
|
}
|
|
5075
|
-
function ingestSuccess$
|
|
5075
|
+
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
5076
5076
|
const { body } = response;
|
|
5077
5077
|
const key = keyBuilderFromType$1(luvio, body);
|
|
5078
|
-
luvio.storeIngest(key, ingest$
|
|
5078
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
5079
5079
|
const snapshot = luvio.storeLookup({
|
|
5080
5080
|
recordId: key,
|
|
5081
|
-
node: select$
|
|
5081
|
+
node: select$9(),
|
|
5082
5082
|
variables: {},
|
|
5083
5083
|
});
|
|
5084
5084
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5089,7 +5089,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
|
|
|
5089
5089
|
deepFreeze(snapshot.data);
|
|
5090
5090
|
return snapshot;
|
|
5091
5091
|
}
|
|
5092
|
-
function createResourceRequest$
|
|
5092
|
+
function createResourceRequest$3(config) {
|
|
5093
5093
|
const headers = {};
|
|
5094
5094
|
return {
|
|
5095
5095
|
baseUri: '/services/data/v65.0',
|
|
@@ -5103,43 +5103,43 @@ function createResourceRequest$2(config) {
|
|
|
5103
5103
|
};
|
|
5104
5104
|
}
|
|
5105
5105
|
|
|
5106
|
-
const adapterName$
|
|
5106
|
+
const adapterName$3 = 'broadcastVisitAssignment';
|
|
5107
5107
|
const broadcastVisitAssignment_ConfigPropertyMetadata = [
|
|
5108
5108
|
generateParamConfigMetadata('broadcastResponseAction', true, 2 /* Body */, 0 /* String */),
|
|
5109
5109
|
generateParamConfigMetadata('scheduleBroadcastAppointmentResourceId', true, 2 /* Body */, 0 /* String */),
|
|
5110
5110
|
generateParamConfigMetadata('startDateTime', true, 2 /* Body */, 0 /* String */),
|
|
5111
5111
|
];
|
|
5112
|
-
const broadcastVisitAssignment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5113
|
-
const createResourceParams$
|
|
5114
|
-
function typeCheckConfig$
|
|
5112
|
+
const broadcastVisitAssignment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, broadcastVisitAssignment_ConfigPropertyMetadata);
|
|
5113
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$j(broadcastVisitAssignment_ConfigPropertyMetadata);
|
|
5114
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
5115
5115
|
const config = {};
|
|
5116
|
-
typeCheckConfig$
|
|
5116
|
+
typeCheckConfig$j(untrustedConfig, config, broadcastVisitAssignment_ConfigPropertyMetadata);
|
|
5117
5117
|
return config;
|
|
5118
5118
|
}
|
|
5119
|
-
function validateAdapterConfig$
|
|
5119
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
5120
5120
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5121
5121
|
return null;
|
|
5122
5122
|
}
|
|
5123
5123
|
if (process.env.NODE_ENV !== 'production') {
|
|
5124
5124
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5125
5125
|
}
|
|
5126
|
-
const config = typeCheckConfig$
|
|
5126
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
5127
5127
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5128
5128
|
return null;
|
|
5129
5129
|
}
|
|
5130
5130
|
return config;
|
|
5131
5131
|
}
|
|
5132
|
-
function buildNetworkSnapshot$
|
|
5133
|
-
const resourceParams = createResourceParams$
|
|
5134
|
-
const request = createResourceRequest$
|
|
5132
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
5133
|
+
const resourceParams = createResourceParams$3(config);
|
|
5134
|
+
const request = createResourceRequest$3(resourceParams);
|
|
5135
5135
|
return luvio.dispatchResourceRequest(request, options)
|
|
5136
5136
|
.then((response) => {
|
|
5137
5137
|
return luvio.handleSuccessResponse(() => {
|
|
5138
|
-
const snapshot = ingestSuccess$
|
|
5138
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
5139
5139
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5140
5140
|
}, () => {
|
|
5141
5141
|
const cache = new StoreKeyMap();
|
|
5142
|
-
getResponseCacheKeys$
|
|
5142
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
5143
5143
|
return cache;
|
|
5144
5144
|
});
|
|
5145
5145
|
}, (response) => {
|
|
@@ -5149,17 +5149,17 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
5149
5149
|
}
|
|
5150
5150
|
const broadcastVisitAssignmentAdapterFactory = (luvio) => {
|
|
5151
5151
|
return function broadcastVisitAssignment(untrustedConfig) {
|
|
5152
|
-
const config = validateAdapterConfig$
|
|
5152
|
+
const config = validateAdapterConfig$3(untrustedConfig, broadcastVisitAssignment_ConfigPropertyNames);
|
|
5153
5153
|
// Invalid or incomplete config
|
|
5154
5154
|
if (config === null) {
|
|
5155
5155
|
throw new Error('Invalid config for "broadcastVisitAssignment"');
|
|
5156
5156
|
}
|
|
5157
|
-
return buildNetworkSnapshot$
|
|
5157
|
+
return buildNetworkSnapshot$3(luvio, config);
|
|
5158
5158
|
};
|
|
5159
5159
|
};
|
|
5160
5160
|
|
|
5161
|
-
const VERSION$
|
|
5162
|
-
function validate$
|
|
5161
|
+
const VERSION$5 = "ddd9c38d2af1fe6424feb2504dc17dd7";
|
|
5162
|
+
function validate$a(obj, path = 'VisitBroadcastOutputRepresentation') {
|
|
5163
5163
|
const v_error = (() => {
|
|
5164
5164
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5165
5165
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5215,23 +5215,23 @@ function validate$4(obj, path = 'VisitBroadcastOutputRepresentation') {
|
|
|
5215
5215
|
})();
|
|
5216
5216
|
return v_error === undefined ? null : v_error;
|
|
5217
5217
|
}
|
|
5218
|
-
const RepresentationType$
|
|
5219
|
-
function keyBuilder$
|
|
5220
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5218
|
+
const RepresentationType$2 = 'VisitBroadcastOutputRepresentation';
|
|
5219
|
+
function keyBuilder$4(luvio, config) {
|
|
5220
|
+
return keyPrefix + '::' + RepresentationType$2 + ':' + config.isSuccess;
|
|
5221
5221
|
}
|
|
5222
5222
|
function keyBuilderFromType(luvio, object) {
|
|
5223
5223
|
const keyParams = {
|
|
5224
5224
|
isSuccess: object.status
|
|
5225
5225
|
};
|
|
5226
|
-
return keyBuilder$
|
|
5226
|
+
return keyBuilder$4(luvio, keyParams);
|
|
5227
5227
|
}
|
|
5228
|
-
function normalize$
|
|
5228
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
5229
5229
|
return input;
|
|
5230
5230
|
}
|
|
5231
|
-
const select$
|
|
5231
|
+
const select$8 = function VisitBroadcastOutputRepresentationSelect() {
|
|
5232
5232
|
return {
|
|
5233
5233
|
kind: 'Fragment',
|
|
5234
|
-
version: VERSION$
|
|
5234
|
+
version: VERSION$5,
|
|
5235
5235
|
private: [],
|
|
5236
5236
|
selections: [
|
|
5237
5237
|
{
|
|
@@ -5254,7 +5254,7 @@ const select$6 = function VisitBroadcastOutputRepresentationSelect() {
|
|
|
5254
5254
|
]
|
|
5255
5255
|
};
|
|
5256
5256
|
};
|
|
5257
|
-
function equals$
|
|
5257
|
+
function equals$5(existing, incoming) {
|
|
5258
5258
|
const existing_code = existing.code;
|
|
5259
5259
|
const incoming_code = incoming.code;
|
|
5260
5260
|
if (!(existing_code === incoming_code)) {
|
|
@@ -5282,41 +5282,41 @@ function equals$4(existing, incoming) {
|
|
|
5282
5282
|
}
|
|
5283
5283
|
return true;
|
|
5284
5284
|
}
|
|
5285
|
-
const ingest$
|
|
5285
|
+
const ingest$2 = function VisitBroadcastOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5286
5286
|
if (process.env.NODE_ENV !== 'production') {
|
|
5287
|
-
const validateError = validate$
|
|
5287
|
+
const validateError = validate$a(input);
|
|
5288
5288
|
if (validateError !== null) {
|
|
5289
5289
|
throw validateError;
|
|
5290
5290
|
}
|
|
5291
5291
|
}
|
|
5292
5292
|
const key = keyBuilderFromType(luvio, input);
|
|
5293
5293
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
5294
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5294
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "healthcloud", VERSION$5, RepresentationType$2, equals$5);
|
|
5295
5295
|
return createLink(key);
|
|
5296
5296
|
};
|
|
5297
|
-
function getTypeCacheKeys$
|
|
5297
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
5298
5298
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5299
5299
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
5300
5300
|
rootKeySet.set(rootKey, {
|
|
5301
5301
|
namespace: keyPrefix,
|
|
5302
|
-
representationName: RepresentationType$
|
|
5302
|
+
representationName: RepresentationType$2,
|
|
5303
5303
|
mergeable: false
|
|
5304
5304
|
});
|
|
5305
5305
|
}
|
|
5306
5306
|
|
|
5307
|
-
function select$
|
|
5308
|
-
return select$
|
|
5307
|
+
function select$7(luvio, params) {
|
|
5308
|
+
return select$8();
|
|
5309
5309
|
}
|
|
5310
|
-
function getResponseCacheKeys$
|
|
5311
|
-
getTypeCacheKeys$
|
|
5310
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
5311
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response);
|
|
5312
5312
|
}
|
|
5313
|
-
function ingestSuccess$
|
|
5313
|
+
function ingestSuccess$2(luvio, resourceParams, response) {
|
|
5314
5314
|
const { body } = response;
|
|
5315
5315
|
const key = keyBuilderFromType(luvio, body);
|
|
5316
|
-
luvio.storeIngest(key, ingest$
|
|
5316
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
5317
5317
|
const snapshot = luvio.storeLookup({
|
|
5318
5318
|
recordId: key,
|
|
5319
|
-
node: select$
|
|
5319
|
+
node: select$7(),
|
|
5320
5320
|
variables: {},
|
|
5321
5321
|
});
|
|
5322
5322
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5327,7 +5327,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
|
|
|
5327
5327
|
deepFreeze(snapshot.data);
|
|
5328
5328
|
return snapshot;
|
|
5329
5329
|
}
|
|
5330
|
-
function createResourceRequest$
|
|
5330
|
+
function createResourceRequest$2(config) {
|
|
5331
5331
|
const headers = {};
|
|
5332
5332
|
return {
|
|
5333
5333
|
baseUri: '/services/data/v65.0',
|
|
@@ -5341,42 +5341,42 @@ function createResourceRequest$1(config) {
|
|
|
5341
5341
|
};
|
|
5342
5342
|
}
|
|
5343
5343
|
|
|
5344
|
-
const adapterName$
|
|
5344
|
+
const adapterName$2 = 'createVisitBroadcast';
|
|
5345
5345
|
const createVisitBroadcast_ConfigPropertyMetadata = [
|
|
5346
5346
|
generateParamConfigMetadata('serviceAppointmentIds', true, 2 /* Body */, 0 /* String */, true),
|
|
5347
5347
|
generateParamConfigMetadata('serviceTerritoryIds', true, 2 /* Body */, 0 /* String */, true),
|
|
5348
5348
|
];
|
|
5349
|
-
const createVisitBroadcast_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5350
|
-
const createResourceParams$
|
|
5351
|
-
function typeCheckConfig$
|
|
5349
|
+
const createVisitBroadcast_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createVisitBroadcast_ConfigPropertyMetadata);
|
|
5350
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$j(createVisitBroadcast_ConfigPropertyMetadata);
|
|
5351
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
5352
5352
|
const config = {};
|
|
5353
|
-
typeCheckConfig$
|
|
5353
|
+
typeCheckConfig$j(untrustedConfig, config, createVisitBroadcast_ConfigPropertyMetadata);
|
|
5354
5354
|
return config;
|
|
5355
5355
|
}
|
|
5356
|
-
function validateAdapterConfig$
|
|
5356
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
5357
5357
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5358
5358
|
return null;
|
|
5359
5359
|
}
|
|
5360
5360
|
if (process.env.NODE_ENV !== 'production') {
|
|
5361
5361
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5362
5362
|
}
|
|
5363
|
-
const config = typeCheckConfig$
|
|
5363
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
5364
5364
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5365
5365
|
return null;
|
|
5366
5366
|
}
|
|
5367
5367
|
return config;
|
|
5368
5368
|
}
|
|
5369
|
-
function buildNetworkSnapshot$
|
|
5370
|
-
const resourceParams = createResourceParams$
|
|
5371
|
-
const request = createResourceRequest$
|
|
5369
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
5370
|
+
const resourceParams = createResourceParams$2(config);
|
|
5371
|
+
const request = createResourceRequest$2(resourceParams);
|
|
5372
5372
|
return luvio.dispatchResourceRequest(request, options)
|
|
5373
5373
|
.then((response) => {
|
|
5374
5374
|
return luvio.handleSuccessResponse(() => {
|
|
5375
|
-
const snapshot = ingestSuccess$
|
|
5375
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response);
|
|
5376
5376
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5377
5377
|
}, () => {
|
|
5378
5378
|
const cache = new StoreKeyMap();
|
|
5379
|
-
getResponseCacheKeys$
|
|
5379
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
5380
5380
|
return cache;
|
|
5381
5381
|
});
|
|
5382
5382
|
}, (response) => {
|
|
@@ -5386,15 +5386,366 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
5386
5386
|
}
|
|
5387
5387
|
const createVisitBroadcastAdapterFactory = (luvio) => {
|
|
5388
5388
|
return function createVisitBroadcast(untrustedConfig) {
|
|
5389
|
-
const config = validateAdapterConfig$
|
|
5389
|
+
const config = validateAdapterConfig$2(untrustedConfig, createVisitBroadcast_ConfigPropertyNames);
|
|
5390
5390
|
// Invalid or incomplete config
|
|
5391
5391
|
if (config === null) {
|
|
5392
5392
|
throw new Error('Invalid config for "createVisitBroadcast"');
|
|
5393
5393
|
}
|
|
5394
|
-
return buildNetworkSnapshot$
|
|
5394
|
+
return buildNetworkSnapshot$2(luvio, config);
|
|
5395
5395
|
};
|
|
5396
5396
|
};
|
|
5397
5397
|
|
|
5398
|
+
function validate$9(obj, path = 'IDPGetDataFieldDataOutputRepresentation') {
|
|
5399
|
+
const v_error = (() => {
|
|
5400
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5401
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5402
|
+
}
|
|
5403
|
+
if (obj.fieldApiName !== undefined) {
|
|
5404
|
+
const obj_fieldApiName = obj.fieldApiName;
|
|
5405
|
+
const path_fieldApiName = path + '.fieldApiName';
|
|
5406
|
+
if (typeof obj_fieldApiName !== 'string') {
|
|
5407
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
|
|
5408
|
+
}
|
|
5409
|
+
}
|
|
5410
|
+
if (obj.parentReferenceId !== undefined) {
|
|
5411
|
+
const obj_parentReferenceId = obj.parentReferenceId;
|
|
5412
|
+
const path_parentReferenceId = path + '.parentReferenceId';
|
|
5413
|
+
if (typeof obj_parentReferenceId !== 'string') {
|
|
5414
|
+
return new TypeError('Expected "string" but received "' + typeof obj_parentReferenceId + '" (at "' + path_parentReferenceId + '")');
|
|
5415
|
+
}
|
|
5416
|
+
}
|
|
5417
|
+
if (obj.value !== undefined) {
|
|
5418
|
+
const obj_value = obj.value;
|
|
5419
|
+
const path_value = path + '.value';
|
|
5420
|
+
if (typeof obj_value !== 'string') {
|
|
5421
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
5422
|
+
}
|
|
5423
|
+
}
|
|
5424
|
+
})();
|
|
5425
|
+
return v_error === undefined ? null : v_error;
|
|
5426
|
+
}
|
|
5427
|
+
|
|
5428
|
+
function validate$8(obj, path = 'IDPGetDataObjectDataOutputRepresentation') {
|
|
5429
|
+
const v_error = (() => {
|
|
5430
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5431
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5432
|
+
}
|
|
5433
|
+
if (obj.attributes !== undefined) {
|
|
5434
|
+
const obj_attributes = obj.attributes;
|
|
5435
|
+
const path_attributes = path + '.attributes';
|
|
5436
|
+
if (!ArrayIsArray(obj_attributes)) {
|
|
5437
|
+
return new TypeError('Expected "array" but received "' + typeof obj_attributes + '" (at "' + path_attributes + '")');
|
|
5438
|
+
}
|
|
5439
|
+
for (let i = 0; i < obj_attributes.length; i++) {
|
|
5440
|
+
const obj_attributes_item = obj_attributes[i];
|
|
5441
|
+
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
5442
|
+
const referencepath_attributes_itemValidationError = validate$9(obj_attributes_item, path_attributes_item);
|
|
5443
|
+
if (referencepath_attributes_itemValidationError !== null) {
|
|
5444
|
+
let message = 'Object doesn\'t match IDPGetDataFieldDataOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
5445
|
+
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5446
|
+
return new TypeError(message);
|
|
5447
|
+
}
|
|
5448
|
+
}
|
|
5449
|
+
}
|
|
5450
|
+
if (obj.objectApiName !== undefined) {
|
|
5451
|
+
const obj_objectApiName = obj.objectApiName;
|
|
5452
|
+
const path_objectApiName = path + '.objectApiName';
|
|
5453
|
+
if (typeof obj_objectApiName !== 'string') {
|
|
5454
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
|
|
5455
|
+
}
|
|
5456
|
+
}
|
|
5457
|
+
if (obj.referenceId !== undefined) {
|
|
5458
|
+
const obj_referenceId = obj.referenceId;
|
|
5459
|
+
const path_referenceId = path + '.referenceId';
|
|
5460
|
+
if (typeof obj_referenceId !== 'string') {
|
|
5461
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceId + '" (at "' + path_referenceId + '")');
|
|
5462
|
+
}
|
|
5463
|
+
}
|
|
5464
|
+
})();
|
|
5465
|
+
return v_error === undefined ? null : v_error;
|
|
5466
|
+
}
|
|
5467
|
+
|
|
5468
|
+
function validate$7(obj, path = 'IDPGetDataResponseDataOutputRepresentation') {
|
|
5469
|
+
const v_error = (() => {
|
|
5470
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5471
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5472
|
+
}
|
|
5473
|
+
if (obj.data !== undefined) {
|
|
5474
|
+
const obj_data = obj.data;
|
|
5475
|
+
const path_data = path + '.data';
|
|
5476
|
+
if (!ArrayIsArray(obj_data)) {
|
|
5477
|
+
return new TypeError('Expected "array" but received "' + typeof obj_data + '" (at "' + path_data + '")');
|
|
5478
|
+
}
|
|
5479
|
+
for (let i = 0; i < obj_data.length; i++) {
|
|
5480
|
+
const obj_data_item = obj_data[i];
|
|
5481
|
+
const path_data_item = path_data + '[' + i + ']';
|
|
5482
|
+
const referencepath_data_itemValidationError = validate$8(obj_data_item, path_data_item);
|
|
5483
|
+
if (referencepath_data_itemValidationError !== null) {
|
|
5484
|
+
let message = 'Object doesn\'t match IDPGetDataObjectDataOutputRepresentation (at "' + path_data_item + '")\n';
|
|
5485
|
+
message += referencepath_data_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5486
|
+
return new TypeError(message);
|
|
5487
|
+
}
|
|
5488
|
+
}
|
|
5489
|
+
}
|
|
5490
|
+
})();
|
|
5491
|
+
return v_error === undefined ? null : v_error;
|
|
5492
|
+
}
|
|
5493
|
+
|
|
5494
|
+
function validate$6(obj, path = 'IDPGetDataResponseErrorDetailsOutputRepresentation') {
|
|
5495
|
+
const v_error = (() => {
|
|
5496
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5497
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5498
|
+
}
|
|
5499
|
+
if (obj.errorCode !== undefined) {
|
|
5500
|
+
const obj_errorCode = obj.errorCode;
|
|
5501
|
+
const path_errorCode = path + '.errorCode';
|
|
5502
|
+
if (typeof obj_errorCode !== 'string') {
|
|
5503
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
|
|
5504
|
+
}
|
|
5505
|
+
}
|
|
5506
|
+
if (obj.errorMessage !== undefined) {
|
|
5507
|
+
const obj_errorMessage = obj.errorMessage;
|
|
5508
|
+
const path_errorMessage = path + '.errorMessage';
|
|
5509
|
+
if (typeof obj_errorMessage !== 'string') {
|
|
5510
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
5511
|
+
}
|
|
5512
|
+
}
|
|
5513
|
+
})();
|
|
5514
|
+
return v_error === undefined ? null : v_error;
|
|
5515
|
+
}
|
|
5516
|
+
|
|
5517
|
+
function validate$5(obj, path = 'IDPGetDataResponseErrorOutputRepresentation') {
|
|
5518
|
+
const v_error = (() => {
|
|
5519
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5520
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5521
|
+
}
|
|
5522
|
+
if (obj.errors !== undefined) {
|
|
5523
|
+
const obj_errors = obj.errors;
|
|
5524
|
+
const path_errors = path + '.errors';
|
|
5525
|
+
if (!ArrayIsArray(obj_errors)) {
|
|
5526
|
+
return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
|
|
5527
|
+
}
|
|
5528
|
+
for (let i = 0; i < obj_errors.length; i++) {
|
|
5529
|
+
const obj_errors_item = obj_errors[i];
|
|
5530
|
+
const path_errors_item = path_errors + '[' + i + ']';
|
|
5531
|
+
const referencepath_errors_itemValidationError = validate$6(obj_errors_item, path_errors_item);
|
|
5532
|
+
if (referencepath_errors_itemValidationError !== null) {
|
|
5533
|
+
let message = 'Object doesn\'t match IDPGetDataResponseErrorDetailsOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
5534
|
+
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5535
|
+
return new TypeError(message);
|
|
5536
|
+
}
|
|
5537
|
+
}
|
|
5538
|
+
}
|
|
5539
|
+
})();
|
|
5540
|
+
return v_error === undefined ? null : v_error;
|
|
5541
|
+
}
|
|
5542
|
+
|
|
5543
|
+
const VERSION$4 = "88679f861f1276a1fa54a283fefdeab7";
|
|
5544
|
+
function validate$4(obj, path = 'IDPGetDataOutputRepresentation') {
|
|
5545
|
+
const v_error = (() => {
|
|
5546
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5547
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5548
|
+
}
|
|
5549
|
+
if (obj.data !== undefined) {
|
|
5550
|
+
const obj_data = obj.data;
|
|
5551
|
+
const path_data = path + '.data';
|
|
5552
|
+
const referencepath_dataValidationError = validate$7(obj_data, path_data);
|
|
5553
|
+
if (referencepath_dataValidationError !== null) {
|
|
5554
|
+
let message = 'Object doesn\'t match IDPGetDataResponseDataOutputRepresentation (at "' + path_data + '")\n';
|
|
5555
|
+
message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5556
|
+
return new TypeError(message);
|
|
5557
|
+
}
|
|
5558
|
+
}
|
|
5559
|
+
if (obj.error !== undefined) {
|
|
5560
|
+
const obj_error = obj.error;
|
|
5561
|
+
const path_error = path + '.error';
|
|
5562
|
+
const referencepath_errorValidationError = validate$5(obj_error, path_error);
|
|
5563
|
+
if (referencepath_errorValidationError !== null) {
|
|
5564
|
+
let message = 'Object doesn\'t match IDPGetDataResponseErrorOutputRepresentation (at "' + path_error + '")\n';
|
|
5565
|
+
message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5566
|
+
return new TypeError(message);
|
|
5567
|
+
}
|
|
5568
|
+
}
|
|
5569
|
+
const obj_recordId = obj.recordId;
|
|
5570
|
+
const path_recordId = path + '.recordId';
|
|
5571
|
+
if (typeof obj_recordId !== 'string') {
|
|
5572
|
+
return new TypeError('Expected "string" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
|
|
5573
|
+
}
|
|
5574
|
+
})();
|
|
5575
|
+
return v_error === undefined ? null : v_error;
|
|
5576
|
+
}
|
|
5577
|
+
const RepresentationType$1 = 'IDPGetDataOutputRepresentation';
|
|
5578
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
5579
|
+
return input;
|
|
5580
|
+
}
|
|
5581
|
+
const select$6 = function IDPGetDataOutputRepresentationSelect() {
|
|
5582
|
+
return {
|
|
5583
|
+
kind: 'Fragment',
|
|
5584
|
+
version: VERSION$4,
|
|
5585
|
+
private: [],
|
|
5586
|
+
opaque: true
|
|
5587
|
+
};
|
|
5588
|
+
};
|
|
5589
|
+
function equals$4(existing, incoming) {
|
|
5590
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5591
|
+
return false;
|
|
5592
|
+
}
|
|
5593
|
+
return true;
|
|
5594
|
+
}
|
|
5595
|
+
const ingest$1 = function IDPGetDataOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5596
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5597
|
+
const validateError = validate$4(input);
|
|
5598
|
+
if (validateError !== null) {
|
|
5599
|
+
throw validateError;
|
|
5600
|
+
}
|
|
5601
|
+
}
|
|
5602
|
+
const key = path.fullPath;
|
|
5603
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
5604
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "healthcloud", VERSION$4, RepresentationType$1, equals$4);
|
|
5605
|
+
return createLink(key);
|
|
5606
|
+
};
|
|
5607
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
5608
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5609
|
+
const rootKey = fullPathFactory();
|
|
5610
|
+
rootKeySet.set(rootKey, {
|
|
5611
|
+
namespace: keyPrefix,
|
|
5612
|
+
representationName: RepresentationType$1,
|
|
5613
|
+
mergeable: false
|
|
5614
|
+
});
|
|
5615
|
+
}
|
|
5616
|
+
|
|
5617
|
+
function select$5(luvio, params) {
|
|
5618
|
+
return select$6();
|
|
5619
|
+
}
|
|
5620
|
+
function keyBuilder$3(luvio, params) {
|
|
5621
|
+
return keyPrefix + '::IDPGetDataOutputRepresentation:(' + 'recordId:' + params.urlParams.recordId + ')';
|
|
5622
|
+
}
|
|
5623
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
5624
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
5625
|
+
}
|
|
5626
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
5627
|
+
const { body } = response;
|
|
5628
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
5629
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
5630
|
+
const snapshot = luvio.storeLookup({
|
|
5631
|
+
recordId: key,
|
|
5632
|
+
node: select$5(),
|
|
5633
|
+
variables: {},
|
|
5634
|
+
}, snapshotRefresh);
|
|
5635
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5636
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
5637
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
5638
|
+
}
|
|
5639
|
+
}
|
|
5640
|
+
deepFreeze(snapshot.data);
|
|
5641
|
+
return snapshot;
|
|
5642
|
+
}
|
|
5643
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
5644
|
+
const key = keyBuilder$3(luvio, params);
|
|
5645
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5646
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
5647
|
+
return errorSnapshot;
|
|
5648
|
+
}
|
|
5649
|
+
function createResourceRequest$1(config) {
|
|
5650
|
+
const headers = {};
|
|
5651
|
+
return {
|
|
5652
|
+
baseUri: '/services/data/v65.0',
|
|
5653
|
+
basePath: '/connect/health/idp/' + config.urlParams.recordId + '',
|
|
5654
|
+
method: 'get',
|
|
5655
|
+
body: null,
|
|
5656
|
+
urlParams: config.urlParams,
|
|
5657
|
+
queryParams: {},
|
|
5658
|
+
headers,
|
|
5659
|
+
priority: 'normal',
|
|
5660
|
+
};
|
|
5661
|
+
}
|
|
5662
|
+
|
|
5663
|
+
const adapterName$1 = 'getIdpRecord';
|
|
5664
|
+
const getIdpRecord_ConfigPropertyMetadata = [
|
|
5665
|
+
generateParamConfigMetadata('recordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5666
|
+
];
|
|
5667
|
+
const getIdpRecord_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getIdpRecord_ConfigPropertyMetadata);
|
|
5668
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$j(getIdpRecord_ConfigPropertyMetadata);
|
|
5669
|
+
function keyBuilder$2(luvio, config) {
|
|
5670
|
+
const resourceParams = createResourceParams$1(config);
|
|
5671
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
5672
|
+
}
|
|
5673
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
5674
|
+
const config = {};
|
|
5675
|
+
typeCheckConfig$j(untrustedConfig, config, getIdpRecord_ConfigPropertyMetadata);
|
|
5676
|
+
return config;
|
|
5677
|
+
}
|
|
5678
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
5679
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
5680
|
+
return null;
|
|
5681
|
+
}
|
|
5682
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5683
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
5684
|
+
}
|
|
5685
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
5686
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5687
|
+
return null;
|
|
5688
|
+
}
|
|
5689
|
+
return config;
|
|
5690
|
+
}
|
|
5691
|
+
function adapterFragment$1(luvio, config) {
|
|
5692
|
+
createResourceParams$1(config);
|
|
5693
|
+
return select$5();
|
|
5694
|
+
}
|
|
5695
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
5696
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
5697
|
+
config,
|
|
5698
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
5699
|
+
});
|
|
5700
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5701
|
+
}
|
|
5702
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
5703
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
5704
|
+
config,
|
|
5705
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
5706
|
+
});
|
|
5707
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5708
|
+
}
|
|
5709
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
5710
|
+
const resourceParams = createResourceParams$1(config);
|
|
5711
|
+
const request = createResourceRequest$1(resourceParams);
|
|
5712
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
5713
|
+
.then((response) => {
|
|
5714
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
5715
|
+
const cache = new StoreKeyMap();
|
|
5716
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
5717
|
+
return cache;
|
|
5718
|
+
});
|
|
5719
|
+
}, (response) => {
|
|
5720
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
5721
|
+
});
|
|
5722
|
+
}
|
|
5723
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
5724
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
5725
|
+
}
|
|
5726
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
5727
|
+
const { luvio, config } = context;
|
|
5728
|
+
const selector = {
|
|
5729
|
+
recordId: keyBuilder$2(luvio, config),
|
|
5730
|
+
node: adapterFragment$1(luvio, config),
|
|
5731
|
+
variables: {},
|
|
5732
|
+
};
|
|
5733
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
5734
|
+
config,
|
|
5735
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
5736
|
+
});
|
|
5737
|
+
return cacheSnapshot;
|
|
5738
|
+
}
|
|
5739
|
+
const getIdpRecordAdapterFactory = (luvio) => function healthcloud__getIdpRecord(untrustedConfig, requestContext) {
|
|
5740
|
+
const config = validateAdapterConfig$1(untrustedConfig, getIdpRecord_ConfigPropertyNames);
|
|
5741
|
+
// Invalid or incomplete config
|
|
5742
|
+
if (config === null) {
|
|
5743
|
+
return null;
|
|
5744
|
+
}
|
|
5745
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5746
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
5747
|
+
};
|
|
5748
|
+
|
|
5398
5749
|
const VERSION$3 = "882f8877e0d4733ddcff2045d57ec7c3";
|
|
5399
5750
|
function validate$3(obj, path = 'FileBasedDataImport') {
|
|
5400
5751
|
const v_error = (() => {
|
|
@@ -6316,14 +6667,14 @@ const getCaseRelatedFileProcessInformation_ConfigPropertyMetadata = [
|
|
|
6316
6667
|
generateParamConfigMetadata('caseRelatedFileIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
6317
6668
|
];
|
|
6318
6669
|
const getCaseRelatedFileProcessInformation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getCaseRelatedFileProcessInformation_ConfigPropertyMetadata);
|
|
6319
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
6670
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$j(getCaseRelatedFileProcessInformation_ConfigPropertyMetadata);
|
|
6320
6671
|
function keyBuilder(luvio, config) {
|
|
6321
6672
|
const resourceParams = createResourceParams(config);
|
|
6322
6673
|
return keyBuilder$1(luvio, resourceParams);
|
|
6323
6674
|
}
|
|
6324
6675
|
function typeCheckConfig(untrustedConfig) {
|
|
6325
6676
|
const config = {};
|
|
6326
|
-
typeCheckConfig$
|
|
6677
|
+
typeCheckConfig$j(untrustedConfig, config, getCaseRelatedFileProcessInformation_ConfigPropertyMetadata);
|
|
6327
6678
|
return config;
|
|
6328
6679
|
}
|
|
6329
6680
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -6372,7 +6723,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
6372
6723
|
});
|
|
6373
6724
|
}
|
|
6374
6725
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
6375
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6726
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
6376
6727
|
}
|
|
6377
6728
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
6378
6729
|
const { luvio, config } = context;
|
|
@@ -6397,4 +6748,4 @@ const getCaseRelatedFileProcessInformationAdapterFactory = (luvio) => function h
|
|
|
6397
6748
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
6398
6749
|
};
|
|
6399
6750
|
|
|
6400
|
-
export { adhocTasksAtmAdapterFactory, bookSlotChainAdapterFactory, broadcastVisitAssignmentAdapterFactory, cancelSlotChainAdapterFactory, createVisitBroadcastAdapterFactory, digitalVerificationAdapterFactory, genericConnectApiGETAdapterFactory, genericConnectApiPOSTAdapterFactory, getCaseRelatedFileProcessInformationAdapterFactory, getEntityDetailsInfoAdapterFactory, getQuotasAndAllocationAdapterFactory, getSlotChainsAdapterFactory, getSlotsAdapterFactory, getWorkTypeServiceTerritoriesAdapterFactory, moveToNextStepAdapterFactory, rescheduleSlotChainAdapterFactory, validateSlotChainAdapterFactory, workTypeLeadTimeAdapterFactory };
|
|
6751
|
+
export { adhocTasksAtmAdapterFactory, bookSlotChainAdapterFactory, broadcastVisitAssignmentAdapterFactory, cancelSlotChainAdapterFactory, createVisitBroadcastAdapterFactory, digitalVerificationAdapterFactory, genericConnectApiGETAdapterFactory, genericConnectApiPOSTAdapterFactory, getCaseRelatedFileProcessInformationAdapterFactory, getEntityDetailsInfoAdapterFactory, getIdpRecordAdapterFactory, getQuotasAndAllocationAdapterFactory, getSlotChainsAdapterFactory, getSlotsAdapterFactory, getWorkTypeServiceTerritoriesAdapterFactory, moveToNextStepAdapterFactory, rescheduleSlotChainAdapterFactory, validateSlotChainAdapterFactory, workTypeLeadTimeAdapterFactory };
|