@salesforce/lds-adapters-industries-healthcloud 1.256.0 → 1.258.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 +871 -444
- package/dist/es/es2018/types/src/generated/adapters/getQuotasAndAllocation.d.ts +23 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectHealthAdvancedTherapyManagementQuotasAndAllocations.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/types/QuotaAvailabilityDateRange.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/QuotaAvailabilityRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/QuotasAllocationInputRepresentation.d.ts +50 -0
- package/dist/es/es2018/types/src/generated/types/QuotasAllocationOutputRepresentation.d.ts +47 -0
- package/package.json +4 -4
- package/sfdc/index.js +793 -363
- package/src/raml/api.raml +94 -0
- package/src/raml/luvio.raml +7 -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$3, typeCheckConfig as typeCheckConfig$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckConfig as typeCheckConfig$f, StoreKeyMap, createResourceParams as createResourceParams$f } 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$g = "9a4b29dafb135f2d93c3bb0d73b2f500";
|
|
116
|
+
function validate$u(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$r(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$e = 'GenericConnectApiGETOutputRepresentation';
|
|
165
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
166
166
|
return input;
|
|
167
167
|
}
|
|
168
|
-
const select$
|
|
168
|
+
const select$v = function GenericConnectApiGETOutputRepresentationSelect() {
|
|
169
169
|
return {
|
|
170
170
|
kind: 'Fragment',
|
|
171
|
-
version: VERSION$
|
|
171
|
+
version: VERSION$g,
|
|
172
172
|
private: [],
|
|
173
173
|
opaque: true
|
|
174
174
|
};
|
|
175
175
|
};
|
|
176
|
-
function equals$
|
|
176
|
+
function equals$g(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$e = function GenericConnectApiGETOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
183
183
|
if (process.env.NODE_ENV !== 'production') {
|
|
184
|
-
const validateError = validate$
|
|
184
|
+
const validateError = validate$u(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$e, "healthcloud", VERSION$g, RepresentationType$e, equals$g);
|
|
192
192
|
return createLink(key);
|
|
193
193
|
};
|
|
194
|
-
function getTypeCacheKeys$
|
|
194
|
+
function getTypeCacheKeys$e(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$e,
|
|
200
200
|
mergeable: false
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
function select$
|
|
205
|
-
return select$
|
|
204
|
+
function select$u(luvio, params) {
|
|
205
|
+
return select$v();
|
|
206
206
|
}
|
|
207
|
-
function keyBuilder$
|
|
207
|
+
function keyBuilder$h(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$e(storeKeyMap, luvio, resourceParams, response) {
|
|
211
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$h(luvio, resourceParams));
|
|
212
212
|
}
|
|
213
|
-
function ingestSuccess$
|
|
213
|
+
function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
214
214
|
const { body } = response;
|
|
215
|
-
const key = keyBuilder$
|
|
216
|
-
luvio.storeIngest(key, ingest$
|
|
215
|
+
const key = keyBuilder$h(luvio, resourceParams);
|
|
216
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
217
217
|
const snapshot = luvio.storeLookup({
|
|
218
218
|
recordId: key,
|
|
219
|
-
node: select$
|
|
219
|
+
node: select$u(),
|
|
220
220
|
variables: {},
|
|
221
221
|
}, snapshotRefresh);
|
|
222
222
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -228,12 +228,12 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
228
228
|
return snapshot;
|
|
229
229
|
}
|
|
230
230
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
231
|
-
const key = keyBuilder$
|
|
231
|
+
const key = keyBuilder$h(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$e(config) {
|
|
237
237
|
const headers = {};
|
|
238
238
|
return {
|
|
239
239
|
baseUri: '/services/data/v60.0',
|
|
@@ -247,7 +247,7 @@ function createResourceRequest$d(config) {
|
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
const adapterName$
|
|
250
|
+
const adapterName$e = '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,56 +258,56 @@ 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$e, genericConnectApiGET_ConfigPropertyMetadata);
|
|
262
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$f(genericConnectApiGET_ConfigPropertyMetadata);
|
|
263
|
+
function keyBuilder$g(luvio, config) {
|
|
264
|
+
const resourceParams = createResourceParams$e(config);
|
|
265
|
+
return keyBuilder$h(luvio, resourceParams);
|
|
266
266
|
}
|
|
267
|
-
function typeCheckConfig$
|
|
267
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
268
268
|
const config = {};
|
|
269
|
-
typeCheckConfig$
|
|
269
|
+
typeCheckConfig$f(untrustedConfig, config, genericConnectApiGET_ConfigPropertyMetadata);
|
|
270
270
|
return config;
|
|
271
271
|
}
|
|
272
|
-
function validateAdapterConfig$
|
|
272
|
+
function validateAdapterConfig$e(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$e(untrustedConfig);
|
|
280
280
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
281
281
|
return null;
|
|
282
282
|
}
|
|
283
283
|
return config;
|
|
284
284
|
}
|
|
285
285
|
function adapterFragment$2(luvio, config) {
|
|
286
|
-
createResourceParams$
|
|
287
|
-
return select$
|
|
286
|
+
createResourceParams$e(config);
|
|
287
|
+
return select$u();
|
|
288
288
|
}
|
|
289
289
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
290
|
-
const snapshot = ingestSuccess$
|
|
290
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
291
291
|
config,
|
|
292
|
-
resolve: () => buildNetworkSnapshot$
|
|
292
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
293
293
|
});
|
|
294
294
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
295
295
|
}
|
|
296
296
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
297
297
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
298
298
|
config,
|
|
299
|
-
resolve: () => buildNetworkSnapshot$
|
|
299
|
+
resolve: () => buildNetworkSnapshot$e(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$e(luvio, config, options) {
|
|
304
|
+
const resourceParams = createResourceParams$e(config);
|
|
305
|
+
const request = createResourceRequest$e(resourceParams);
|
|
306
306
|
return luvio.dispatchResourceRequest(request, options)
|
|
307
307
|
.then((response) => {
|
|
308
308
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
309
309
|
const cache = new StoreKeyMap();
|
|
310
|
-
getResponseCacheKeys$
|
|
310
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
311
311
|
return cache;
|
|
312
312
|
});
|
|
313
313
|
}, (response) => {
|
|
@@ -315,23 +315,23 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
317
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
318
|
-
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
318
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
319
319
|
}
|
|
320
320
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
321
321
|
const { luvio, config } = context;
|
|
322
322
|
const selector = {
|
|
323
|
-
recordId: keyBuilder$
|
|
323
|
+
recordId: keyBuilder$g(luvio, config),
|
|
324
324
|
node: adapterFragment$2(luvio, config),
|
|
325
325
|
variables: {},
|
|
326
326
|
};
|
|
327
327
|
const cacheSnapshot = storeLookup(selector, {
|
|
328
328
|
config,
|
|
329
|
-
resolve: () => buildNetworkSnapshot$
|
|
329
|
+
resolve: () => buildNetworkSnapshot$e(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$e(untrustedConfig, genericConnectApiGET_ConfigPropertyNames);
|
|
335
335
|
// Invalid or incomplete config
|
|
336
336
|
if (config === null) {
|
|
337
337
|
return null;
|
|
@@ -340,7 +340,7 @@ const genericConnectApiGETAdapterFactory = (luvio) => function healthcloud__gene
|
|
|
340
340
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
341
341
|
};
|
|
342
342
|
|
|
343
|
-
function validate$
|
|
343
|
+
function validate$t(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$q(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$f = "7b3913515d78cf7f964adb4e7095e8a5";
|
|
374
|
+
function validate$s(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$p(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$d = 'GenericConnectApiPOSTOutputRepresentation';
|
|
418
|
+
function keyBuilder$f(luvio, config) {
|
|
419
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.isSuccess;
|
|
420
420
|
}
|
|
421
|
-
function keyBuilderFromType$
|
|
421
|
+
function keyBuilderFromType$b(luvio, object) {
|
|
422
422
|
const keyParams = {
|
|
423
423
|
isSuccess: object.message
|
|
424
424
|
};
|
|
425
|
-
return keyBuilder$
|
|
425
|
+
return keyBuilder$f(luvio, keyParams);
|
|
426
426
|
}
|
|
427
|
-
function normalize$
|
|
427
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
428
428
|
return input;
|
|
429
429
|
}
|
|
430
|
-
const select$
|
|
430
|
+
const select$t = function GenericConnectApiPOSTOutputRepresentationSelect() {
|
|
431
431
|
return {
|
|
432
432
|
kind: 'Fragment',
|
|
433
|
-
version: VERSION$
|
|
433
|
+
version: VERSION$f,
|
|
434
434
|
private: [],
|
|
435
435
|
selections: [
|
|
436
436
|
{
|
|
@@ -450,7 +450,7 @@ const select$p = function GenericConnectApiPOSTOutputRepresentationSelect() {
|
|
|
450
450
|
]
|
|
451
451
|
};
|
|
452
452
|
};
|
|
453
|
-
function equals$
|
|
453
|
+
function equals$f(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$c(existing, incoming) {
|
|
|
494
494
|
}
|
|
495
495
|
return true;
|
|
496
496
|
}
|
|
497
|
-
const ingest$
|
|
497
|
+
const ingest$d = function GenericConnectApiPOSTOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
498
498
|
if (process.env.NODE_ENV !== 'production') {
|
|
499
|
-
const validateError = validate$
|
|
499
|
+
const validateError = validate$s(input);
|
|
500
500
|
if (validateError !== null) {
|
|
501
501
|
throw validateError;
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
const key = keyBuilderFromType$
|
|
504
|
+
const key = keyBuilderFromType$b(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$d, "healthcloud", VERSION$f, RepresentationType$d, equals$f);
|
|
507
507
|
return createLink(key);
|
|
508
508
|
};
|
|
509
|
-
function getTypeCacheKeys$
|
|
509
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
510
510
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
511
|
-
const rootKey = keyBuilderFromType$
|
|
511
|
+
const rootKey = keyBuilderFromType$b(luvio, input);
|
|
512
512
|
rootKeySet.set(rootKey, {
|
|
513
513
|
namespace: keyPrefix,
|
|
514
|
-
representationName: RepresentationType$
|
|
514
|
+
representationName: RepresentationType$d,
|
|
515
515
|
mergeable: false
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
-
function select$
|
|
520
|
-
return select$
|
|
519
|
+
function select$s(luvio, params) {
|
|
520
|
+
return select$t();
|
|
521
521
|
}
|
|
522
|
-
function getResponseCacheKeys$
|
|
523
|
-
getTypeCacheKeys$
|
|
522
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
523
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
524
524
|
}
|
|
525
|
-
function ingestSuccess$
|
|
525
|
+
function ingestSuccess$d(luvio, resourceParams, response) {
|
|
526
526
|
const { body } = response;
|
|
527
|
-
const key = keyBuilderFromType$
|
|
528
|
-
luvio.storeIngest(key, ingest$
|
|
527
|
+
const key = keyBuilderFromType$b(luvio, body);
|
|
528
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
529
529
|
const snapshot = luvio.storeLookup({
|
|
530
530
|
recordId: key,
|
|
531
|
-
node: select$
|
|
531
|
+
node: select$s(),
|
|
532
532
|
variables: {},
|
|
533
533
|
});
|
|
534
534
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -539,7 +539,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
539
539
|
deepFreeze(snapshot.data);
|
|
540
540
|
return snapshot;
|
|
541
541
|
}
|
|
542
|
-
function createResourceRequest$
|
|
542
|
+
function createResourceRequest$d(config) {
|
|
543
543
|
const headers = {};
|
|
544
544
|
return {
|
|
545
545
|
baseUri: '/services/data/v60.0',
|
|
@@ -553,47 +553,47 @@ function createResourceRequest$c(config) {
|
|
|
553
553
|
};
|
|
554
554
|
}
|
|
555
555
|
|
|
556
|
-
const adapterName$
|
|
556
|
+
const adapterName$d = '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$d, genericConnectApiPOST_ConfigPropertyMetadata);
|
|
562
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$f(genericConnectApiPOST_ConfigPropertyMetadata);
|
|
563
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
564
564
|
const config = {};
|
|
565
|
-
typeCheckConfig$
|
|
565
|
+
typeCheckConfig$f(untrustedConfig, config, genericConnectApiPOST_ConfigPropertyMetadata);
|
|
566
566
|
const untrustedConfig_GenericConnectApiPOSTInput = untrustedConfig.GenericConnectApiPOSTInput;
|
|
567
|
-
const referenceGenericConnectApiPOSTInputRepresentationValidationError = validate$
|
|
567
|
+
const referenceGenericConnectApiPOSTInputRepresentationValidationError = validate$t(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$d(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$d(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$d(luvio, config, options) {
|
|
587
|
+
const resourceParams = createResourceParams$d(config);
|
|
588
|
+
const request = createResourceRequest$d(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$d(luvio, resourceParams, response);
|
|
593
593
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
594
594
|
}, () => {
|
|
595
595
|
const cache = new StoreKeyMap();
|
|
596
|
-
getResponseCacheKeys$
|
|
596
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
597
597
|
return cache;
|
|
598
598
|
});
|
|
599
599
|
}, (response) => {
|
|
@@ -603,16 +603,16 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
603
603
|
}
|
|
604
604
|
const genericConnectApiPOSTAdapterFactory = (luvio) => {
|
|
605
605
|
return function genericConnectApiPOST(untrustedConfig) {
|
|
606
|
-
const config = validateAdapterConfig$
|
|
606
|
+
const config = validateAdapterConfig$d(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$d(luvio, config);
|
|
612
612
|
};
|
|
613
613
|
};
|
|
614
614
|
|
|
615
|
-
function validate$
|
|
615
|
+
function validate$r(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$o(obj, path = 'SearchConditionInputRepresentation') {
|
|
|
638
638
|
return v_error === undefined ? null : v_error;
|
|
639
639
|
}
|
|
640
640
|
|
|
641
|
-
function validate$
|
|
641
|
+
function validate$q(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$n(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$r(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$n(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$e = "21bcc7331e8d2943e1f2182cc502d1dc";
|
|
692
|
+
function validate$p(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$m(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$c = 'GetSlotsOutputRepresentation';
|
|
766
|
+
function keyBuilder$e(luvio, config) {
|
|
767
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.isSuccess;
|
|
768
768
|
}
|
|
769
|
-
function keyBuilderFromType$
|
|
769
|
+
function keyBuilderFromType$a(luvio, object) {
|
|
770
770
|
const keyParams = {
|
|
771
771
|
isSuccess: object.isSuccess
|
|
772
772
|
};
|
|
773
|
-
return keyBuilder$
|
|
773
|
+
return keyBuilder$e(luvio, keyParams);
|
|
774
774
|
}
|
|
775
|
-
function normalize$
|
|
775
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
776
776
|
return input;
|
|
777
777
|
}
|
|
778
|
-
const select$
|
|
778
|
+
const select$r = function GetSlotsOutputRepresentationSelect() {
|
|
779
779
|
return {
|
|
780
780
|
kind: 'Fragment',
|
|
781
|
-
version: VERSION$
|
|
781
|
+
version: VERSION$e,
|
|
782
782
|
private: [],
|
|
783
783
|
selections: [
|
|
784
784
|
{
|
|
@@ -808,7 +808,7 @@ const select$n = function GetSlotsOutputRepresentationSelect() {
|
|
|
808
808
|
]
|
|
809
809
|
};
|
|
810
810
|
};
|
|
811
|
-
function equals$
|
|
811
|
+
function equals$e(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$b(existing, incoming) {
|
|
|
880
880
|
}
|
|
881
881
|
return true;
|
|
882
882
|
}
|
|
883
|
-
const ingest$
|
|
883
|
+
const ingest$c = function GetSlotsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
884
884
|
if (process.env.NODE_ENV !== 'production') {
|
|
885
|
-
const validateError = validate$
|
|
885
|
+
const validateError = validate$p(input);
|
|
886
886
|
if (validateError !== null) {
|
|
887
887
|
throw validateError;
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
-
const key = keyBuilderFromType$
|
|
890
|
+
const key = keyBuilderFromType$a(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$c, "healthcloud", VERSION$e, RepresentationType$c, equals$e);
|
|
893
893
|
return createLink(key);
|
|
894
894
|
};
|
|
895
|
-
function getTypeCacheKeys$
|
|
895
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
896
896
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
897
|
-
const rootKey = keyBuilderFromType$
|
|
897
|
+
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
898
898
|
rootKeySet.set(rootKey, {
|
|
899
899
|
namespace: keyPrefix,
|
|
900
|
-
representationName: RepresentationType$
|
|
900
|
+
representationName: RepresentationType$c,
|
|
901
901
|
mergeable: false
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
904
|
|
|
905
|
-
function select$
|
|
906
|
-
return select$
|
|
905
|
+
function select$q(luvio, params) {
|
|
906
|
+
return select$r();
|
|
907
907
|
}
|
|
908
|
-
function getResponseCacheKeys$
|
|
909
|
-
getTypeCacheKeys$
|
|
908
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
909
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
910
910
|
}
|
|
911
|
-
function ingestSuccess$
|
|
911
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
912
912
|
const { body } = response;
|
|
913
|
-
const key = keyBuilderFromType$
|
|
914
|
-
luvio.storeIngest(key, ingest$
|
|
913
|
+
const key = keyBuilderFromType$a(luvio, body);
|
|
914
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
915
915
|
const snapshot = luvio.storeLookup({
|
|
916
916
|
recordId: key,
|
|
917
|
-
node: select$
|
|
917
|
+
node: select$q(),
|
|
918
918
|
variables: {},
|
|
919
919
|
});
|
|
920
920
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -925,7 +925,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
925
925
|
deepFreeze(snapshot.data);
|
|
926
926
|
return snapshot;
|
|
927
927
|
}
|
|
928
|
-
function createResourceRequest$
|
|
928
|
+
function createResourceRequest$c(config) {
|
|
929
929
|
const headers = {};
|
|
930
930
|
return {
|
|
931
931
|
baseUri: '/services/data/v60.0',
|
|
@@ -939,45 +939,45 @@ function createResourceRequest$b(config) {
|
|
|
939
939
|
};
|
|
940
940
|
}
|
|
941
941
|
|
|
942
|
-
const adapterName$
|
|
942
|
+
const adapterName$c = '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$c, getSlots_ConfigPropertyMetadata);
|
|
947
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$f(getSlots_ConfigPropertyMetadata);
|
|
948
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
949
949
|
const config = {};
|
|
950
950
|
const untrustedConfig_getSlotsInput = untrustedConfig.getSlotsInput;
|
|
951
|
-
const referenceGetSlotsInputRepresentationValidationError = validate$
|
|
951
|
+
const referenceGetSlotsInputRepresentationValidationError = validate$q(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$c(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$c(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$c(luvio, config, options) {
|
|
971
|
+
const resourceParams = createResourceParams$c(config);
|
|
972
|
+
const request = createResourceRequest$c(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$c(luvio, resourceParams, response);
|
|
977
977
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
978
978
|
}, () => {
|
|
979
979
|
const cache = new StoreKeyMap();
|
|
980
|
-
getResponseCacheKeys$
|
|
980
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
981
981
|
return cache;
|
|
982
982
|
});
|
|
983
983
|
}, (response) => {
|
|
@@ -987,16 +987,16 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
987
987
|
}
|
|
988
988
|
const getSlotsAdapterFactory = (luvio) => {
|
|
989
989
|
return function getSlots(untrustedConfig) {
|
|
990
|
-
const config = validateAdapterConfig$
|
|
990
|
+
const config = validateAdapterConfig$c(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$c(luvio, config);
|
|
996
996
|
};
|
|
997
997
|
};
|
|
998
998
|
|
|
999
|
-
function validate$
|
|
999
|
+
function validate$o(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$l(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$d = "f7d72120958f431aa05ee23ef16fb104";
|
|
1024
|
+
function validate$n(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$k(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$b = 'GetSlotChainsOutputRepresentation';
|
|
1096
|
+
function keyBuilder$d(luvio, config) {
|
|
1097
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.isSuccess;
|
|
1098
1098
|
}
|
|
1099
|
-
function keyBuilderFromType$
|
|
1099
|
+
function keyBuilderFromType$9(luvio, object) {
|
|
1100
1100
|
const keyParams = {
|
|
1101
1101
|
isSuccess: object.isSuccess
|
|
1102
1102
|
};
|
|
1103
|
-
return keyBuilder$
|
|
1103
|
+
return keyBuilder$d(luvio, keyParams);
|
|
1104
1104
|
}
|
|
1105
|
-
function normalize$
|
|
1105
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
1106
1106
|
return input;
|
|
1107
1107
|
}
|
|
1108
|
-
const select$
|
|
1108
|
+
const select$p = function GetSlotChainsOutputRepresentationSelect() {
|
|
1109
1109
|
return {
|
|
1110
1110
|
kind: 'Fragment',
|
|
1111
|
-
version: VERSION$
|
|
1111
|
+
version: VERSION$d,
|
|
1112
1112
|
private: [],
|
|
1113
1113
|
selections: [
|
|
1114
1114
|
{
|
|
@@ -1137,7 +1137,7 @@ const select$l = function GetSlotChainsOutputRepresentationSelect() {
|
|
|
1137
1137
|
]
|
|
1138
1138
|
};
|
|
1139
1139
|
};
|
|
1140
|
-
function equals$
|
|
1140
|
+
function equals$d(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$a(existing, incoming) {
|
|
|
1209
1209
|
}
|
|
1210
1210
|
return true;
|
|
1211
1211
|
}
|
|
1212
|
-
const ingest$
|
|
1212
|
+
const ingest$b = function GetSlotChainsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1213
1213
|
if (process.env.NODE_ENV !== 'production') {
|
|
1214
|
-
const validateError = validate$
|
|
1214
|
+
const validateError = validate$n(input);
|
|
1215
1215
|
if (validateError !== null) {
|
|
1216
1216
|
throw validateError;
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
|
-
const key = keyBuilderFromType$
|
|
1219
|
+
const key = keyBuilderFromType$9(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$b, "healthcloud", VERSION$d, RepresentationType$b, equals$d);
|
|
1222
1222
|
return createLink(key);
|
|
1223
1223
|
};
|
|
1224
|
-
function getTypeCacheKeys$
|
|
1224
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
1225
1225
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1226
|
-
const rootKey = keyBuilderFromType$
|
|
1226
|
+
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
1227
1227
|
rootKeySet.set(rootKey, {
|
|
1228
1228
|
namespace: keyPrefix,
|
|
1229
|
-
representationName: RepresentationType$
|
|
1229
|
+
representationName: RepresentationType$b,
|
|
1230
1230
|
mergeable: false
|
|
1231
1231
|
});
|
|
1232
1232
|
}
|
|
1233
1233
|
|
|
1234
|
-
function select$
|
|
1235
|
-
return select$
|
|
1234
|
+
function select$o(luvio, params) {
|
|
1235
|
+
return select$p();
|
|
1236
1236
|
}
|
|
1237
|
-
function getResponseCacheKeys$
|
|
1238
|
-
getTypeCacheKeys$
|
|
1237
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
1238
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
1239
1239
|
}
|
|
1240
|
-
function ingestSuccess$
|
|
1240
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
1241
1241
|
const { body } = response;
|
|
1242
|
-
const key = keyBuilderFromType$
|
|
1243
|
-
luvio.storeIngest(key, ingest$
|
|
1242
|
+
const key = keyBuilderFromType$9(luvio, body);
|
|
1243
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
1244
1244
|
const snapshot = luvio.storeLookup({
|
|
1245
1245
|
recordId: key,
|
|
1246
|
-
node: select$
|
|
1246
|
+
node: select$o(),
|
|
1247
1247
|
variables: {},
|
|
1248
1248
|
});
|
|
1249
1249
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1254,7 +1254,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
1254
1254
|
deepFreeze(snapshot.data);
|
|
1255
1255
|
return snapshot;
|
|
1256
1256
|
}
|
|
1257
|
-
function createResourceRequest$
|
|
1257
|
+
function createResourceRequest$b(config) {
|
|
1258
1258
|
const headers = {};
|
|
1259
1259
|
return {
|
|
1260
1260
|
baseUri: '/services/data/v60.0',
|
|
@@ -1268,7 +1268,7 @@ function createResourceRequest$a(config) {
|
|
|
1268
1268
|
};
|
|
1269
1269
|
}
|
|
1270
1270
|
|
|
1271
|
-
const adapterName$
|
|
1271
|
+
const adapterName$b = '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$b, getSlotChains_ConfigPropertyMetadata);
|
|
1283
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$f(getSlotChains_ConfigPropertyMetadata);
|
|
1284
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
1285
1285
|
const config = {};
|
|
1286
|
-
typeCheckConfig$
|
|
1286
|
+
typeCheckConfig$f(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$a(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$r(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$a(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$o(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$b(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$b(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$b(luvio, config, options) {
|
|
1337
|
+
const resourceParams = createResourceParams$b(config);
|
|
1338
|
+
const request = createResourceRequest$b(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$b(luvio, resourceParams, response);
|
|
1343
1343
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1344
1344
|
}, () => {
|
|
1345
1345
|
const cache = new StoreKeyMap();
|
|
1346
|
-
getResponseCacheKeys$
|
|
1346
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
1347
1347
|
return cache;
|
|
1348
1348
|
});
|
|
1349
1349
|
}, (response) => {
|
|
@@ -1353,16 +1353,16 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
const getSlotChainsAdapterFactory = (luvio) => {
|
|
1355
1355
|
return function getSlotChains(untrustedConfig) {
|
|
1356
|
-
const config = validateAdapterConfig$
|
|
1356
|
+
const config = validateAdapterConfig$b(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$b(luvio, config);
|
|
1362
1362
|
};
|
|
1363
1363
|
};
|
|
1364
1364
|
|
|
1365
|
-
function validate$
|
|
1365
|
+
function validate$m(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$j(obj, path = 'SlotInputRepresentation') {
|
|
|
1482
1482
|
return v_error === undefined ? null : v_error;
|
|
1483
1483
|
}
|
|
1484
1484
|
|
|
1485
|
-
function validate$
|
|
1485
|
+
function validate$l(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$i(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$m(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$i(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$c = "887532f336104d21a2b8063efbba663c";
|
|
1520
|
+
function validate$k(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$h(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$a = 'BookSlotChainOutputRepresentation';
|
|
1609
|
+
function keyBuilder$c(luvio, config) {
|
|
1610
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.isSuccess;
|
|
1611
1611
|
}
|
|
1612
|
-
function keyBuilderFromType$
|
|
1612
|
+
function keyBuilderFromType$8(luvio, object) {
|
|
1613
1613
|
const keyParams = {
|
|
1614
1614
|
isSuccess: object.isSuccess
|
|
1615
1615
|
};
|
|
1616
|
-
return keyBuilder$
|
|
1616
|
+
return keyBuilder$c(luvio, keyParams);
|
|
1617
1617
|
}
|
|
1618
|
-
function normalize$
|
|
1618
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
1619
1619
|
return input;
|
|
1620
1620
|
}
|
|
1621
|
-
const select$
|
|
1621
|
+
const select$n = function BookSlotChainOutputRepresentationSelect() {
|
|
1622
1622
|
return {
|
|
1623
1623
|
kind: 'Fragment',
|
|
1624
|
-
version: VERSION$
|
|
1624
|
+
version: VERSION$c,
|
|
1625
1625
|
private: [],
|
|
1626
1626
|
selections: [
|
|
1627
1627
|
{
|
|
@@ -1651,7 +1651,7 @@ const select$j = function BookSlotChainOutputRepresentationSelect() {
|
|
|
1651
1651
|
]
|
|
1652
1652
|
};
|
|
1653
1653
|
};
|
|
1654
|
-
function equals$
|
|
1654
|
+
function equals$c(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$9(existing, incoming) {
|
|
|
1708
1708
|
}
|
|
1709
1709
|
return true;
|
|
1710
1710
|
}
|
|
1711
|
-
const ingest$
|
|
1711
|
+
const ingest$a = function BookSlotChainOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1712
1712
|
if (process.env.NODE_ENV !== 'production') {
|
|
1713
|
-
const validateError = validate$
|
|
1713
|
+
const validateError = validate$k(input);
|
|
1714
1714
|
if (validateError !== null) {
|
|
1715
1715
|
throw validateError;
|
|
1716
1716
|
}
|
|
1717
1717
|
}
|
|
1718
|
-
const key = keyBuilderFromType$
|
|
1718
|
+
const key = keyBuilderFromType$8(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$a, "healthcloud", VERSION$c, RepresentationType$a, equals$c);
|
|
1721
1721
|
return createLink(key);
|
|
1722
1722
|
};
|
|
1723
|
-
function getTypeCacheKeys$
|
|
1723
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
1724
1724
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1725
|
-
const rootKey = keyBuilderFromType$
|
|
1725
|
+
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
1726
1726
|
rootKeySet.set(rootKey, {
|
|
1727
1727
|
namespace: keyPrefix,
|
|
1728
|
-
representationName: RepresentationType$
|
|
1728
|
+
representationName: RepresentationType$a,
|
|
1729
1729
|
mergeable: false
|
|
1730
1730
|
});
|
|
1731
1731
|
}
|
|
1732
1732
|
|
|
1733
|
-
function select$
|
|
1734
|
-
return select$
|
|
1733
|
+
function select$m(luvio, params) {
|
|
1734
|
+
return select$n();
|
|
1735
1735
|
}
|
|
1736
|
-
function getResponseCacheKeys$
|
|
1737
|
-
getTypeCacheKeys$
|
|
1736
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
1737
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
1738
1738
|
}
|
|
1739
|
-
function ingestSuccess$
|
|
1739
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
1740
1740
|
const { body } = response;
|
|
1741
|
-
const key = keyBuilderFromType$
|
|
1742
|
-
luvio.storeIngest(key, ingest$
|
|
1741
|
+
const key = keyBuilderFromType$8(luvio, body);
|
|
1742
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
1743
1743
|
const snapshot = luvio.storeLookup({
|
|
1744
1744
|
recordId: key,
|
|
1745
|
-
node: select$
|
|
1745
|
+
node: select$m(),
|
|
1746
1746
|
variables: {},
|
|
1747
1747
|
});
|
|
1748
1748
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1753,7 +1753,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
1753
1753
|
deepFreeze(snapshot.data);
|
|
1754
1754
|
return snapshot;
|
|
1755
1755
|
}
|
|
1756
|
-
function createResourceRequest$
|
|
1756
|
+
function createResourceRequest$a(config) {
|
|
1757
1757
|
const headers = {};
|
|
1758
1758
|
return {
|
|
1759
1759
|
baseUri: '/services/data/v60.0',
|
|
@@ -1767,45 +1767,45 @@ function createResourceRequest$9(config) {
|
|
|
1767
1767
|
};
|
|
1768
1768
|
}
|
|
1769
1769
|
|
|
1770
|
-
const adapterName$
|
|
1770
|
+
const adapterName$a = '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$a, bookSlotChain_ConfigPropertyMetadata);
|
|
1775
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$f(bookSlotChain_ConfigPropertyMetadata);
|
|
1776
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
1777
1777
|
const config = {};
|
|
1778
1778
|
const untrustedConfig_BookSlotChainInput = untrustedConfig.BookSlotChainInput;
|
|
1779
|
-
const referenceBookSlotChainInputRepresentationValidationError = validate$
|
|
1779
|
+
const referenceBookSlotChainInputRepresentationValidationError = validate$l(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$a(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$a(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$a(luvio, config, options) {
|
|
1799
|
+
const resourceParams = createResourceParams$a(config);
|
|
1800
|
+
const request = createResourceRequest$a(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$a(luvio, resourceParams, response);
|
|
1805
1805
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1806
1806
|
}, () => {
|
|
1807
1807
|
const cache = new StoreKeyMap();
|
|
1808
|
-
getResponseCacheKeys$
|
|
1808
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
1809
1809
|
return cache;
|
|
1810
1810
|
});
|
|
1811
1811
|
}, (response) => {
|
|
@@ -1815,16 +1815,16 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
1815
1815
|
}
|
|
1816
1816
|
const bookSlotChainAdapterFactory = (luvio) => {
|
|
1817
1817
|
return function bookSlotChain(untrustedConfig) {
|
|
1818
|
-
const config = validateAdapterConfig$
|
|
1818
|
+
const config = validateAdapterConfig$a(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$a(luvio, config);
|
|
1824
1824
|
};
|
|
1825
1825
|
};
|
|
1826
1826
|
|
|
1827
|
-
function validate$
|
|
1827
|
+
function validate$j(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$g(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$b = "07afa0b60322d98e30127d781f0484ae";
|
|
1870
|
+
function validate$i(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$f(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$9 = 'CancelSlotChainOutputRepresentation';
|
|
1929
|
+
function keyBuilder$b(luvio, config) {
|
|
1930
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.isSuccess;
|
|
1931
1931
|
}
|
|
1932
|
-
function keyBuilderFromType$
|
|
1932
|
+
function keyBuilderFromType$7(luvio, object) {
|
|
1933
1933
|
const keyParams = {
|
|
1934
1934
|
isSuccess: object.isSuccess
|
|
1935
1935
|
};
|
|
1936
|
-
return keyBuilder$
|
|
1936
|
+
return keyBuilder$b(luvio, keyParams);
|
|
1937
1937
|
}
|
|
1938
|
-
function normalize$
|
|
1938
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
1939
1939
|
return input;
|
|
1940
1940
|
}
|
|
1941
|
-
const select$
|
|
1941
|
+
const select$l = function CancelSlotChainOutputRepresentationSelect() {
|
|
1942
1942
|
return {
|
|
1943
1943
|
kind: 'Fragment',
|
|
1944
|
-
version: VERSION$
|
|
1944
|
+
version: VERSION$b,
|
|
1945
1945
|
private: [],
|
|
1946
1946
|
selections: [
|
|
1947
1947
|
{
|
|
@@ -1965,7 +1965,7 @@ const select$h = function CancelSlotChainOutputRepresentationSelect() {
|
|
|
1965
1965
|
]
|
|
1966
1966
|
};
|
|
1967
1967
|
};
|
|
1968
|
-
function equals$
|
|
1968
|
+
function equals$b(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$8(existing, incoming) {
|
|
|
2001
2001
|
}
|
|
2002
2002
|
return true;
|
|
2003
2003
|
}
|
|
2004
|
-
const ingest$
|
|
2004
|
+
const ingest$9 = function CancelSlotChainOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2005
2005
|
if (process.env.NODE_ENV !== 'production') {
|
|
2006
|
-
const validateError = validate$
|
|
2006
|
+
const validateError = validate$i(input);
|
|
2007
2007
|
if (validateError !== null) {
|
|
2008
2008
|
throw validateError;
|
|
2009
2009
|
}
|
|
2010
2010
|
}
|
|
2011
|
-
const key = keyBuilderFromType$
|
|
2011
|
+
const key = keyBuilderFromType$7(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$9, "healthcloud", VERSION$b, RepresentationType$9, equals$b);
|
|
2014
2014
|
return createLink(key);
|
|
2015
2015
|
};
|
|
2016
|
-
function getTypeCacheKeys$
|
|
2016
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
2017
2017
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2018
|
-
const rootKey = keyBuilderFromType$
|
|
2018
|
+
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
2019
2019
|
rootKeySet.set(rootKey, {
|
|
2020
2020
|
namespace: keyPrefix,
|
|
2021
|
-
representationName: RepresentationType$
|
|
2021
|
+
representationName: RepresentationType$9,
|
|
2022
2022
|
mergeable: false
|
|
2023
2023
|
});
|
|
2024
2024
|
}
|
|
2025
2025
|
|
|
2026
|
-
function select$
|
|
2027
|
-
return select$
|
|
2026
|
+
function select$k(luvio, params) {
|
|
2027
|
+
return select$l();
|
|
2028
2028
|
}
|
|
2029
|
-
function getResponseCacheKeys$
|
|
2030
|
-
getTypeCacheKeys$
|
|
2029
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
2030
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
2031
2031
|
}
|
|
2032
|
-
function ingestSuccess$
|
|
2032
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
2033
2033
|
const { body } = response;
|
|
2034
|
-
const key = keyBuilderFromType$
|
|
2035
|
-
luvio.storeIngest(key, ingest$
|
|
2034
|
+
const key = keyBuilderFromType$7(luvio, body);
|
|
2035
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
2036
2036
|
const snapshot = luvio.storeLookup({
|
|
2037
2037
|
recordId: key,
|
|
2038
|
-
node: select$
|
|
2038
|
+
node: select$k(),
|
|
2039
2039
|
variables: {},
|
|
2040
2040
|
});
|
|
2041
2041
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2046,7 +2046,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
2046
2046
|
deepFreeze(snapshot.data);
|
|
2047
2047
|
return snapshot;
|
|
2048
2048
|
}
|
|
2049
|
-
function createResourceRequest$
|
|
2049
|
+
function createResourceRequest$9(config) {
|
|
2050
2050
|
const headers = {};
|
|
2051
2051
|
return {
|
|
2052
2052
|
baseUri: '/services/data/v60.0',
|
|
@@ -2060,45 +2060,45 @@ function createResourceRequest$8(config) {
|
|
|
2060
2060
|
};
|
|
2061
2061
|
}
|
|
2062
2062
|
|
|
2063
|
-
const adapterName$
|
|
2063
|
+
const adapterName$9 = '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$9, cancelSlotChain_ConfigPropertyMetadata);
|
|
2068
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$f(cancelSlotChain_ConfigPropertyMetadata);
|
|
2069
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
2070
2070
|
const config = {};
|
|
2071
2071
|
const untrustedConfig_CancelSlotChainInput = untrustedConfig.CancelSlotChainInput;
|
|
2072
|
-
const referenceCancelSlotChainInputRepresentationValidationError = validate$
|
|
2072
|
+
const referenceCancelSlotChainInputRepresentationValidationError = validate$j(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$9(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$9(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$9(luvio, config, options) {
|
|
2092
|
+
const resourceParams = createResourceParams$9(config);
|
|
2093
|
+
const request = createResourceRequest$9(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$9(luvio, resourceParams, response);
|
|
2098
2098
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2099
2099
|
}, () => {
|
|
2100
2100
|
const cache = new StoreKeyMap();
|
|
2101
|
-
getResponseCacheKeys$
|
|
2101
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
2102
2102
|
return cache;
|
|
2103
2103
|
});
|
|
2104
2104
|
}, (response) => {
|
|
@@ -2108,17 +2108,17 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
2108
2108
|
}
|
|
2109
2109
|
const cancelSlotChainAdapterFactory = (luvio) => {
|
|
2110
2110
|
return function cancelSlotChain(untrustedConfig) {
|
|
2111
|
-
const config = validateAdapterConfig$
|
|
2111
|
+
const config = validateAdapterConfig$9(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$9(luvio, config);
|
|
2117
2117
|
};
|
|
2118
2118
|
};
|
|
2119
2119
|
|
|
2120
|
-
const VERSION$
|
|
2121
|
-
function validate$
|
|
2120
|
+
const VERSION$a = "24bea45579ca193212b8861df5642516";
|
|
2121
|
+
function validate$h(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$e(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$8 = 'WorkTypeLeadTimeOutputRepresentation';
|
|
2182
|
+
function keyBuilder$a(luvio, config) {
|
|
2183
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.isSuccess;
|
|
2184
2184
|
}
|
|
2185
|
-
function keyBuilderFromType$
|
|
2185
|
+
function keyBuilderFromType$6(luvio, object) {
|
|
2186
2186
|
const keyParams = {
|
|
2187
2187
|
isSuccess: object.isSuccess
|
|
2188
2188
|
};
|
|
2189
|
-
return keyBuilder$
|
|
2189
|
+
return keyBuilder$a(luvio, keyParams);
|
|
2190
2190
|
}
|
|
2191
|
-
function normalize$
|
|
2191
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
2192
2192
|
return input;
|
|
2193
2193
|
}
|
|
2194
|
-
const select$
|
|
2194
|
+
const select$j = function WorkTypeLeadTimeOutputRepresentationSelect() {
|
|
2195
2195
|
return {
|
|
2196
2196
|
kind: 'Fragment',
|
|
2197
|
-
version: VERSION$
|
|
2197
|
+
version: VERSION$a,
|
|
2198
2198
|
private: [],
|
|
2199
2199
|
selections: [
|
|
2200
2200
|
{
|
|
@@ -2218,7 +2218,7 @@ const select$f = function WorkTypeLeadTimeOutputRepresentationSelect() {
|
|
|
2218
2218
|
]
|
|
2219
2219
|
};
|
|
2220
2220
|
};
|
|
2221
|
-
function equals$
|
|
2221
|
+
function equals$a(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$7(existing, incoming) {
|
|
|
2254
2254
|
}
|
|
2255
2255
|
return true;
|
|
2256
2256
|
}
|
|
2257
|
-
const ingest$
|
|
2257
|
+
const ingest$8 = function WorkTypeLeadTimeOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2258
2258
|
if (process.env.NODE_ENV !== 'production') {
|
|
2259
|
-
const validateError = validate$
|
|
2259
|
+
const validateError = validate$h(input);
|
|
2260
2260
|
if (validateError !== null) {
|
|
2261
2261
|
throw validateError;
|
|
2262
2262
|
}
|
|
2263
2263
|
}
|
|
2264
|
-
const key = keyBuilderFromType$
|
|
2264
|
+
const key = keyBuilderFromType$6(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$8, "healthcloud", VERSION$a, RepresentationType$8, equals$a);
|
|
2267
2267
|
return createLink(key);
|
|
2268
2268
|
};
|
|
2269
|
-
function getTypeCacheKeys$
|
|
2269
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
2270
2270
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2271
|
-
const rootKey = keyBuilderFromType$
|
|
2271
|
+
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
2272
2272
|
rootKeySet.set(rootKey, {
|
|
2273
2273
|
namespace: keyPrefix,
|
|
2274
|
-
representationName: RepresentationType$
|
|
2274
|
+
representationName: RepresentationType$8,
|
|
2275
2275
|
mergeable: false
|
|
2276
2276
|
});
|
|
2277
2277
|
}
|
|
2278
2278
|
|
|
2279
|
-
function select$
|
|
2280
|
-
return select$
|
|
2279
|
+
function select$i(luvio, params) {
|
|
2280
|
+
return select$j();
|
|
2281
2281
|
}
|
|
2282
|
-
function getResponseCacheKeys$
|
|
2283
|
-
getTypeCacheKeys$
|
|
2282
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
2283
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
2284
2284
|
}
|
|
2285
|
-
function ingestSuccess$
|
|
2285
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
2286
2286
|
const { body } = response;
|
|
2287
|
-
const key = keyBuilderFromType$
|
|
2288
|
-
luvio.storeIngest(key, ingest$
|
|
2287
|
+
const key = keyBuilderFromType$6(luvio, body);
|
|
2288
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
2289
2289
|
const snapshot = luvio.storeLookup({
|
|
2290
2290
|
recordId: key,
|
|
2291
|
-
node: select$
|
|
2291
|
+
node: select$i(),
|
|
2292
2292
|
variables: {},
|
|
2293
2293
|
});
|
|
2294
2294
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2299,7 +2299,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
2299
2299
|
deepFreeze(snapshot.data);
|
|
2300
2300
|
return snapshot;
|
|
2301
2301
|
}
|
|
2302
|
-
function createResourceRequest$
|
|
2302
|
+
function createResourceRequest$8(config) {
|
|
2303
2303
|
const headers = {};
|
|
2304
2304
|
return {
|
|
2305
2305
|
baseUri: '/services/data/v60.0',
|
|
@@ -2313,42 +2313,42 @@ function createResourceRequest$7(config) {
|
|
|
2313
2313
|
};
|
|
2314
2314
|
}
|
|
2315
2315
|
|
|
2316
|
-
const adapterName$
|
|
2316
|
+
const adapterName$8 = 'workTypeLeadTime';
|
|
2317
2317
|
const workTypeLeadTime_ConfigPropertyMetadata = [
|
|
2318
2318
|
generateParamConfigMetadata('careProgramEnrolleeId', true, 2 /* Body */, 0 /* String */),
|
|
2319
2319
|
generateParamConfigMetadata('priority', false, 2 /* Body */, 3 /* Integer */),
|
|
2320
2320
|
];
|
|
2321
|
-
const workTypeLeadTime_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2322
|
-
const createResourceParams$
|
|
2323
|
-
function typeCheckConfig$
|
|
2321
|
+
const workTypeLeadTime_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, workTypeLeadTime_ConfigPropertyMetadata);
|
|
2322
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$f(workTypeLeadTime_ConfigPropertyMetadata);
|
|
2323
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
2324
2324
|
const config = {};
|
|
2325
|
-
typeCheckConfig$
|
|
2325
|
+
typeCheckConfig$f(untrustedConfig, config, workTypeLeadTime_ConfigPropertyMetadata);
|
|
2326
2326
|
return config;
|
|
2327
2327
|
}
|
|
2328
|
-
function validateAdapterConfig$
|
|
2328
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
2329
2329
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2330
2330
|
return null;
|
|
2331
2331
|
}
|
|
2332
2332
|
if (process.env.NODE_ENV !== 'production') {
|
|
2333
2333
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2334
2334
|
}
|
|
2335
|
-
const config = typeCheckConfig$
|
|
2335
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
2336
2336
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2337
2337
|
return null;
|
|
2338
2338
|
}
|
|
2339
2339
|
return config;
|
|
2340
2340
|
}
|
|
2341
|
-
function buildNetworkSnapshot$
|
|
2342
|
-
const resourceParams = createResourceParams$
|
|
2343
|
-
const request = createResourceRequest$
|
|
2341
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
2342
|
+
const resourceParams = createResourceParams$8(config);
|
|
2343
|
+
const request = createResourceRequest$8(resourceParams);
|
|
2344
2344
|
return luvio.dispatchResourceRequest(request, options)
|
|
2345
2345
|
.then((response) => {
|
|
2346
2346
|
return luvio.handleSuccessResponse(() => {
|
|
2347
|
-
const snapshot = ingestSuccess$
|
|
2347
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
2348
2348
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2349
2349
|
}, () => {
|
|
2350
2350
|
const cache = new StoreKeyMap();
|
|
2351
|
-
getResponseCacheKeys$
|
|
2351
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
2352
2352
|
return cache;
|
|
2353
2353
|
});
|
|
2354
2354
|
}, (response) => {
|
|
@@ -2358,16 +2358,16 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
2358
2358
|
}
|
|
2359
2359
|
const workTypeLeadTimeAdapterFactory = (luvio) => {
|
|
2360
2360
|
return function workTypeLeadTime(untrustedConfig) {
|
|
2361
|
-
const config = validateAdapterConfig$
|
|
2361
|
+
const config = validateAdapterConfig$8(untrustedConfig, workTypeLeadTime_ConfigPropertyNames);
|
|
2362
2362
|
// Invalid or incomplete config
|
|
2363
2363
|
if (config === null) {
|
|
2364
2364
|
throw new Error('Invalid config for "workTypeLeadTime"');
|
|
2365
2365
|
}
|
|
2366
|
-
return buildNetworkSnapshot$
|
|
2366
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
2367
2367
|
};
|
|
2368
2368
|
};
|
|
2369
2369
|
|
|
2370
|
-
function validate$
|
|
2370
|
+
function validate$g(obj, path = 'RescheduleSlotChainInputRepresentation') {
|
|
2371
2371
|
const v_error = (() => {
|
|
2372
2372
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2373
2373
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2385,7 +2385,7 @@ function validate$d(obj, path = 'RescheduleSlotChainInputRepresentation') {
|
|
|
2385
2385
|
for (let i = 0; i < obj_newSlotsInputRepresentation.length; i++) {
|
|
2386
2386
|
const obj_newSlotsInputRepresentation_item = obj_newSlotsInputRepresentation[i];
|
|
2387
2387
|
const path_newSlotsInputRepresentation_item = path_newSlotsInputRepresentation + '[' + i + ']';
|
|
2388
|
-
const referencepath_newSlotsInputRepresentation_itemValidationError = validate$
|
|
2388
|
+
const referencepath_newSlotsInputRepresentation_itemValidationError = validate$m(obj_newSlotsInputRepresentation_item, path_newSlotsInputRepresentation_item);
|
|
2389
2389
|
if (referencepath_newSlotsInputRepresentation_itemValidationError !== null) {
|
|
2390
2390
|
let message = 'Object doesn\'t match SlotInputRepresentation (at "' + path_newSlotsInputRepresentation_item + '")\n';
|
|
2391
2391
|
message += referencepath_newSlotsInputRepresentation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2432,8 +2432,8 @@ function validate$d(obj, path = 'RescheduleSlotChainInputRepresentation') {
|
|
|
2432
2432
|
return v_error === undefined ? null : v_error;
|
|
2433
2433
|
}
|
|
2434
2434
|
|
|
2435
|
-
const VERSION$
|
|
2436
|
-
function validate$
|
|
2435
|
+
const VERSION$9 = "0a21004720a4a00b9cae62c2c6419360";
|
|
2436
|
+
function validate$f(obj, path = 'RescheduleSlotChainOutputRepresentation') {
|
|
2437
2437
|
const v_error = (() => {
|
|
2438
2438
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2439
2439
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2521,23 +2521,23 @@ function validate$c(obj, path = 'RescheduleSlotChainOutputRepresentation') {
|
|
|
2521
2521
|
})();
|
|
2522
2522
|
return v_error === undefined ? null : v_error;
|
|
2523
2523
|
}
|
|
2524
|
-
const RepresentationType$
|
|
2525
|
-
function keyBuilder$
|
|
2526
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2524
|
+
const RepresentationType$7 = 'RescheduleSlotChainOutputRepresentation';
|
|
2525
|
+
function keyBuilder$9(luvio, config) {
|
|
2526
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.isSuccess;
|
|
2527
2527
|
}
|
|
2528
|
-
function keyBuilderFromType$
|
|
2528
|
+
function keyBuilderFromType$5(luvio, object) {
|
|
2529
2529
|
const keyParams = {
|
|
2530
2530
|
isSuccess: object.isSuccess
|
|
2531
2531
|
};
|
|
2532
|
-
return keyBuilder$
|
|
2532
|
+
return keyBuilder$9(luvio, keyParams);
|
|
2533
2533
|
}
|
|
2534
|
-
function normalize$
|
|
2534
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
2535
2535
|
return input;
|
|
2536
2536
|
}
|
|
2537
|
-
const select$
|
|
2537
|
+
const select$h = function RescheduleSlotChainOutputRepresentationSelect() {
|
|
2538
2538
|
return {
|
|
2539
2539
|
kind: 'Fragment',
|
|
2540
|
-
version: VERSION$
|
|
2540
|
+
version: VERSION$9,
|
|
2541
2541
|
private: [],
|
|
2542
2542
|
selections: [
|
|
2543
2543
|
{
|
|
@@ -2567,7 +2567,7 @@ const select$d = function RescheduleSlotChainOutputRepresentationSelect() {
|
|
|
2567
2567
|
]
|
|
2568
2568
|
};
|
|
2569
2569
|
};
|
|
2570
|
-
function equals$
|
|
2570
|
+
function equals$9(existing, incoming) {
|
|
2571
2571
|
const existing_isSuccess = existing.isSuccess;
|
|
2572
2572
|
const incoming_isSuccess = incoming.isSuccess;
|
|
2573
2573
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -2624,41 +2624,41 @@ function equals$6(existing, incoming) {
|
|
|
2624
2624
|
}
|
|
2625
2625
|
return true;
|
|
2626
2626
|
}
|
|
2627
|
-
const ingest$
|
|
2627
|
+
const ingest$7 = function RescheduleSlotChainOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2628
2628
|
if (process.env.NODE_ENV !== 'production') {
|
|
2629
|
-
const validateError = validate$
|
|
2629
|
+
const validateError = validate$f(input);
|
|
2630
2630
|
if (validateError !== null) {
|
|
2631
2631
|
throw validateError;
|
|
2632
2632
|
}
|
|
2633
2633
|
}
|
|
2634
|
-
const key = keyBuilderFromType$
|
|
2634
|
+
const key = keyBuilderFromType$5(luvio, input);
|
|
2635
2635
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
2636
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2636
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "healthcloud", VERSION$9, RepresentationType$7, equals$9);
|
|
2637
2637
|
return createLink(key);
|
|
2638
2638
|
};
|
|
2639
|
-
function getTypeCacheKeys$
|
|
2639
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
2640
2640
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2641
|
-
const rootKey = keyBuilderFromType$
|
|
2641
|
+
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
2642
2642
|
rootKeySet.set(rootKey, {
|
|
2643
2643
|
namespace: keyPrefix,
|
|
2644
|
-
representationName: RepresentationType$
|
|
2644
|
+
representationName: RepresentationType$7,
|
|
2645
2645
|
mergeable: false
|
|
2646
2646
|
});
|
|
2647
2647
|
}
|
|
2648
2648
|
|
|
2649
|
-
function select$
|
|
2650
|
-
return select$
|
|
2649
|
+
function select$g(luvio, params) {
|
|
2650
|
+
return select$h();
|
|
2651
2651
|
}
|
|
2652
|
-
function getResponseCacheKeys$
|
|
2653
|
-
getTypeCacheKeys$
|
|
2652
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
2653
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
2654
2654
|
}
|
|
2655
|
-
function ingestSuccess$
|
|
2655
|
+
function ingestSuccess$7(luvio, resourceParams, response) {
|
|
2656
2656
|
const { body } = response;
|
|
2657
|
-
const key = keyBuilderFromType$
|
|
2658
|
-
luvio.storeIngest(key, ingest$
|
|
2657
|
+
const key = keyBuilderFromType$5(luvio, body);
|
|
2658
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
2659
2659
|
const snapshot = luvio.storeLookup({
|
|
2660
2660
|
recordId: key,
|
|
2661
|
-
node: select$
|
|
2661
|
+
node: select$g(),
|
|
2662
2662
|
variables: {},
|
|
2663
2663
|
});
|
|
2664
2664
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2669,7 +2669,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
2669
2669
|
deepFreeze(snapshot.data);
|
|
2670
2670
|
return snapshot;
|
|
2671
2671
|
}
|
|
2672
|
-
function createResourceRequest$
|
|
2672
|
+
function createResourceRequest$7(config) {
|
|
2673
2673
|
const headers = {};
|
|
2674
2674
|
return {
|
|
2675
2675
|
baseUri: '/services/data/v60.0',
|
|
@@ -2683,45 +2683,45 @@ function createResourceRequest$6(config) {
|
|
|
2683
2683
|
};
|
|
2684
2684
|
}
|
|
2685
2685
|
|
|
2686
|
-
const adapterName$
|
|
2686
|
+
const adapterName$7 = 'rescheduleSlotChain';
|
|
2687
2687
|
const rescheduleSlotChain_ConfigPropertyMetadata = [
|
|
2688
2688
|
generateParamConfigMetadata('RescheduleSlotChainInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2689
2689
|
];
|
|
2690
|
-
const rescheduleSlotChain_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2691
|
-
const createResourceParams$
|
|
2692
|
-
function typeCheckConfig$
|
|
2690
|
+
const rescheduleSlotChain_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, rescheduleSlotChain_ConfigPropertyMetadata);
|
|
2691
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$f(rescheduleSlotChain_ConfigPropertyMetadata);
|
|
2692
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
2693
2693
|
const config = {};
|
|
2694
2694
|
const untrustedConfig_RescheduleSlotChainInput = untrustedConfig.RescheduleSlotChainInput;
|
|
2695
|
-
const referenceRescheduleSlotChainInputRepresentationValidationError = validate$
|
|
2695
|
+
const referenceRescheduleSlotChainInputRepresentationValidationError = validate$g(untrustedConfig_RescheduleSlotChainInput);
|
|
2696
2696
|
if (referenceRescheduleSlotChainInputRepresentationValidationError === null) {
|
|
2697
2697
|
config.RescheduleSlotChainInput = untrustedConfig_RescheduleSlotChainInput;
|
|
2698
2698
|
}
|
|
2699
2699
|
return config;
|
|
2700
2700
|
}
|
|
2701
|
-
function validateAdapterConfig$
|
|
2701
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
2702
2702
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2703
2703
|
return null;
|
|
2704
2704
|
}
|
|
2705
2705
|
if (process.env.NODE_ENV !== 'production') {
|
|
2706
2706
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2707
2707
|
}
|
|
2708
|
-
const config = typeCheckConfig$
|
|
2708
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
2709
2709
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2710
2710
|
return null;
|
|
2711
2711
|
}
|
|
2712
2712
|
return config;
|
|
2713
2713
|
}
|
|
2714
|
-
function buildNetworkSnapshot$
|
|
2715
|
-
const resourceParams = createResourceParams$
|
|
2716
|
-
const request = createResourceRequest$
|
|
2714
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
2715
|
+
const resourceParams = createResourceParams$7(config);
|
|
2716
|
+
const request = createResourceRequest$7(resourceParams);
|
|
2717
2717
|
return luvio.dispatchResourceRequest(request, options)
|
|
2718
2718
|
.then((response) => {
|
|
2719
2719
|
return luvio.handleSuccessResponse(() => {
|
|
2720
|
-
const snapshot = ingestSuccess$
|
|
2720
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response);
|
|
2721
2721
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2722
2722
|
}, () => {
|
|
2723
2723
|
const cache = new StoreKeyMap();
|
|
2724
|
-
getResponseCacheKeys$
|
|
2724
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
2725
2725
|
return cache;
|
|
2726
2726
|
});
|
|
2727
2727
|
}, (response) => {
|
|
@@ -2731,16 +2731,16 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
2731
2731
|
}
|
|
2732
2732
|
const rescheduleSlotChainAdapterFactory = (luvio) => {
|
|
2733
2733
|
return function rescheduleSlotChain(untrustedConfig) {
|
|
2734
|
-
const config = validateAdapterConfig$
|
|
2734
|
+
const config = validateAdapterConfig$7(untrustedConfig, rescheduleSlotChain_ConfigPropertyNames);
|
|
2735
2735
|
// Invalid or incomplete config
|
|
2736
2736
|
if (config === null) {
|
|
2737
2737
|
throw new Error('Invalid config for "rescheduleSlotChain"');
|
|
2738
2738
|
}
|
|
2739
|
-
return buildNetworkSnapshot$
|
|
2739
|
+
return buildNetworkSnapshot$7(luvio, config);
|
|
2740
2740
|
};
|
|
2741
2741
|
};
|
|
2742
2742
|
|
|
2743
|
-
function validate$
|
|
2743
|
+
function validate$e(obj, path = 'FetchServiceTerritoriesInputRepresentation') {
|
|
2744
2744
|
const v_error = (() => {
|
|
2745
2745
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2746
2746
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2771,8 +2771,8 @@ function validate$b(obj, path = 'FetchServiceTerritoriesInputRepresentation') {
|
|
|
2771
2771
|
return v_error === undefined ? null : v_error;
|
|
2772
2772
|
}
|
|
2773
2773
|
|
|
2774
|
-
const VERSION$
|
|
2775
|
-
function validate$
|
|
2774
|
+
const VERSION$8 = "d320e1dbe94b8c22ed7cd5234606534e";
|
|
2775
|
+
function validate$d(obj, path = 'FetchServiceTerritoriesOutputRepresentation') {
|
|
2776
2776
|
const v_error = (() => {
|
|
2777
2777
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2778
2778
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2813,14 +2813,14 @@ function validate$a(obj, path = 'FetchServiceTerritoriesOutputRepresentation') {
|
|
|
2813
2813
|
})();
|
|
2814
2814
|
return v_error === undefined ? null : v_error;
|
|
2815
2815
|
}
|
|
2816
|
-
const RepresentationType$
|
|
2817
|
-
function normalize$
|
|
2816
|
+
const RepresentationType$6 = 'FetchServiceTerritoriesOutputRepresentation';
|
|
2817
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
2818
2818
|
return input;
|
|
2819
2819
|
}
|
|
2820
|
-
const select$
|
|
2820
|
+
const select$f = function FetchServiceTerritoriesOutputRepresentationSelect() {
|
|
2821
2821
|
return {
|
|
2822
2822
|
kind: 'Fragment',
|
|
2823
|
-
version: VERSION$
|
|
2823
|
+
version: VERSION$8,
|
|
2824
2824
|
private: [],
|
|
2825
2825
|
selections: [
|
|
2826
2826
|
{
|
|
@@ -2844,7 +2844,7 @@ const select$b = function FetchServiceTerritoriesOutputRepresentationSelect() {
|
|
|
2844
2844
|
]
|
|
2845
2845
|
};
|
|
2846
2846
|
};
|
|
2847
|
-
function equals$
|
|
2847
|
+
function equals$8(existing, incoming) {
|
|
2848
2848
|
const existing_isSuccess = existing.isSuccess;
|
|
2849
2849
|
const incoming_isSuccess = incoming.isSuccess;
|
|
2850
2850
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -2888,44 +2888,44 @@ function equals$5(existing, incoming) {
|
|
|
2888
2888
|
}
|
|
2889
2889
|
return true;
|
|
2890
2890
|
}
|
|
2891
|
-
const ingest$
|
|
2891
|
+
const ingest$6 = function FetchServiceTerritoriesOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2892
2892
|
if (process.env.NODE_ENV !== 'production') {
|
|
2893
|
-
const validateError = validate$
|
|
2893
|
+
const validateError = validate$d(input);
|
|
2894
2894
|
if (validateError !== null) {
|
|
2895
2895
|
throw validateError;
|
|
2896
2896
|
}
|
|
2897
2897
|
}
|
|
2898
2898
|
const key = path.fullPath;
|
|
2899
2899
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
2900
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2900
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "healthcloud", VERSION$8, RepresentationType$6, equals$8);
|
|
2901
2901
|
return createLink(key);
|
|
2902
2902
|
};
|
|
2903
|
-
function getTypeCacheKeys$
|
|
2903
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
2904
2904
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2905
2905
|
const rootKey = fullPathFactory();
|
|
2906
2906
|
rootKeySet.set(rootKey, {
|
|
2907
2907
|
namespace: keyPrefix,
|
|
2908
|
-
representationName: RepresentationType$
|
|
2908
|
+
representationName: RepresentationType$6,
|
|
2909
2909
|
mergeable: false
|
|
2910
2910
|
});
|
|
2911
2911
|
}
|
|
2912
2912
|
|
|
2913
|
-
function select$
|
|
2914
|
-
return select$
|
|
2913
|
+
function select$e(luvio, params) {
|
|
2914
|
+
return select$f();
|
|
2915
2915
|
}
|
|
2916
|
-
function keyBuilder$
|
|
2916
|
+
function keyBuilder$8(luvio, params) {
|
|
2917
2917
|
return keyPrefix + '::FetchServiceTerritoriesOutputRepresentation:(' + 'getWorkTypeServiceTerritories.transplantCenterId:' + params.body.getWorkTypeServiceTerritories.transplantCenterId + '::' + 'getWorkTypeServiceTerritories.workProcedureId:' + params.body.getWorkTypeServiceTerritories.workProcedureId + '::' + 'getWorkTypeServiceTerritories.workTypeIds:' + params.body.getWorkTypeServiceTerritories.workTypeIds + ')';
|
|
2918
2918
|
}
|
|
2919
|
-
function getResponseCacheKeys$
|
|
2920
|
-
getTypeCacheKeys$
|
|
2919
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
2920
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
|
|
2921
2921
|
}
|
|
2922
|
-
function ingestSuccess$
|
|
2922
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
2923
2923
|
const { body } = response;
|
|
2924
|
-
const key = keyBuilder$
|
|
2925
|
-
luvio.storeIngest(key, ingest$
|
|
2924
|
+
const key = keyBuilder$8(luvio, resourceParams);
|
|
2925
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
2926
2926
|
const snapshot = luvio.storeLookup({
|
|
2927
2927
|
recordId: key,
|
|
2928
|
-
node: select$
|
|
2928
|
+
node: select$e(),
|
|
2929
2929
|
variables: {},
|
|
2930
2930
|
}, snapshotRefresh);
|
|
2931
2931
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2937,12 +2937,12 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2937
2937
|
return snapshot;
|
|
2938
2938
|
}
|
|
2939
2939
|
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
2940
|
-
const key = keyBuilder$
|
|
2940
|
+
const key = keyBuilder$8(luvio, params);
|
|
2941
2941
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2942
2942
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2943
2943
|
return errorSnapshot;
|
|
2944
2944
|
}
|
|
2945
|
-
function createResourceRequest$
|
|
2945
|
+
function createResourceRequest$6(config) {
|
|
2946
2946
|
const headers = {};
|
|
2947
2947
|
return {
|
|
2948
2948
|
baseUri: '/services/data/v60.0',
|
|
@@ -2956,64 +2956,64 @@ function createResourceRequest$5(config) {
|
|
|
2956
2956
|
};
|
|
2957
2957
|
}
|
|
2958
2958
|
|
|
2959
|
-
const adapterName$
|
|
2959
|
+
const adapterName$6 = 'getWorkTypeServiceTerritories';
|
|
2960
2960
|
const getWorkTypeServiceTerritories_ConfigPropertyMetadata = [
|
|
2961
2961
|
generateParamConfigMetadata('getWorkTypeServiceTerritories', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2962
2962
|
];
|
|
2963
|
-
const getWorkTypeServiceTerritories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2964
|
-
const createResourceParams$
|
|
2965
|
-
function keyBuilder$
|
|
2966
|
-
const resourceParams = createResourceParams$
|
|
2967
|
-
return keyBuilder$
|
|
2963
|
+
const getWorkTypeServiceTerritories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getWorkTypeServiceTerritories_ConfigPropertyMetadata);
|
|
2964
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$f(getWorkTypeServiceTerritories_ConfigPropertyMetadata);
|
|
2965
|
+
function keyBuilder$7(luvio, config) {
|
|
2966
|
+
const resourceParams = createResourceParams$6(config);
|
|
2967
|
+
return keyBuilder$8(luvio, resourceParams);
|
|
2968
2968
|
}
|
|
2969
|
-
function typeCheckConfig$
|
|
2969
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
2970
2970
|
const config = {};
|
|
2971
2971
|
const untrustedConfig_getWorkTypeServiceTerritories = untrustedConfig.getWorkTypeServiceTerritories;
|
|
2972
|
-
const referenceFetchServiceTerritoriesInputRepresentationValidationError = validate$
|
|
2972
|
+
const referenceFetchServiceTerritoriesInputRepresentationValidationError = validate$e(untrustedConfig_getWorkTypeServiceTerritories);
|
|
2973
2973
|
if (referenceFetchServiceTerritoriesInputRepresentationValidationError === null) {
|
|
2974
2974
|
config.getWorkTypeServiceTerritories = untrustedConfig_getWorkTypeServiceTerritories;
|
|
2975
2975
|
}
|
|
2976
2976
|
return config;
|
|
2977
2977
|
}
|
|
2978
|
-
function validateAdapterConfig$
|
|
2978
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
2979
2979
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2980
2980
|
return null;
|
|
2981
2981
|
}
|
|
2982
2982
|
if (process.env.NODE_ENV !== 'production') {
|
|
2983
2983
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2984
2984
|
}
|
|
2985
|
-
const config = typeCheckConfig$
|
|
2985
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
2986
2986
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2987
2987
|
return null;
|
|
2988
2988
|
}
|
|
2989
2989
|
return config;
|
|
2990
2990
|
}
|
|
2991
2991
|
function adapterFragment$1(luvio, config) {
|
|
2992
|
-
createResourceParams$
|
|
2993
|
-
return select$
|
|
2992
|
+
createResourceParams$6(config);
|
|
2993
|
+
return select$e();
|
|
2994
2994
|
}
|
|
2995
2995
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
2996
|
-
const snapshot = ingestSuccess$
|
|
2996
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
2997
2997
|
config,
|
|
2998
|
-
resolve: () => buildNetworkSnapshot$
|
|
2998
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
2999
2999
|
});
|
|
3000
3000
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3001
3001
|
}
|
|
3002
3002
|
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
3003
3003
|
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
3004
3004
|
config,
|
|
3005
|
-
resolve: () => buildNetworkSnapshot$
|
|
3005
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
3006
3006
|
});
|
|
3007
3007
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3008
3008
|
}
|
|
3009
|
-
function buildNetworkSnapshot$
|
|
3010
|
-
const resourceParams = createResourceParams$
|
|
3011
|
-
const request = createResourceRequest$
|
|
3009
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
3010
|
+
const resourceParams = createResourceParams$6(config);
|
|
3011
|
+
const request = createResourceRequest$6(resourceParams);
|
|
3012
3012
|
return luvio.dispatchResourceRequest(request, options)
|
|
3013
3013
|
.then((response) => {
|
|
3014
3014
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
3015
3015
|
const cache = new StoreKeyMap();
|
|
3016
|
-
getResponseCacheKeys$
|
|
3016
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
3017
3017
|
return cache;
|
|
3018
3018
|
});
|
|
3019
3019
|
}, (response) => {
|
|
@@ -3021,23 +3021,23 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
3021
3021
|
});
|
|
3022
3022
|
}
|
|
3023
3023
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
3024
|
-
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
3024
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, 'get', false);
|
|
3025
3025
|
}
|
|
3026
3026
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
3027
3027
|
const { luvio, config } = context;
|
|
3028
3028
|
const selector = {
|
|
3029
|
-
recordId: keyBuilder$
|
|
3029
|
+
recordId: keyBuilder$7(luvio, config),
|
|
3030
3030
|
node: adapterFragment$1(luvio, config),
|
|
3031
3031
|
variables: {},
|
|
3032
3032
|
};
|
|
3033
3033
|
const cacheSnapshot = storeLookup(selector, {
|
|
3034
3034
|
config,
|
|
3035
|
-
resolve: () => buildNetworkSnapshot$
|
|
3035
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
3036
3036
|
});
|
|
3037
3037
|
return cacheSnapshot;
|
|
3038
3038
|
}
|
|
3039
3039
|
const getWorkTypeServiceTerritoriesAdapterFactory = (luvio) => function healthcloud__getWorkTypeServiceTerritories(untrustedConfig, requestContext) {
|
|
3040
|
-
const config = validateAdapterConfig$
|
|
3040
|
+
const config = validateAdapterConfig$6(untrustedConfig, getWorkTypeServiceTerritories_ConfigPropertyNames);
|
|
3041
3041
|
// Invalid or incomplete config
|
|
3042
3042
|
if (config === null) {
|
|
3043
3043
|
return null;
|
|
@@ -3046,7 +3046,7 @@ const getWorkTypeServiceTerritoriesAdapterFactory = (luvio) => function healthcl
|
|
|
3046
3046
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
3047
3047
|
};
|
|
3048
3048
|
|
|
3049
|
-
function validate$
|
|
3049
|
+
function validate$c(obj, path = 'MoveToNextStepInputRepresentation') {
|
|
3050
3050
|
const v_error = (() => {
|
|
3051
3051
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3052
3052
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3060,8 +3060,8 @@ function validate$9(obj, path = 'MoveToNextStepInputRepresentation') {
|
|
|
3060
3060
|
return v_error === undefined ? null : v_error;
|
|
3061
3061
|
}
|
|
3062
3062
|
|
|
3063
|
-
const VERSION$
|
|
3064
|
-
function validate$
|
|
3063
|
+
const VERSION$7 = "f0f7338cd73b28f5f4f664d2162e1849";
|
|
3064
|
+
function validate$b(obj, path = 'MoveToNextStepOutputRepresentation') {
|
|
3065
3065
|
const v_error = (() => {
|
|
3066
3066
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3067
3067
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3125,23 +3125,23 @@ function validate$8(obj, path = 'MoveToNextStepOutputRepresentation') {
|
|
|
3125
3125
|
})();
|
|
3126
3126
|
return v_error === undefined ? null : v_error;
|
|
3127
3127
|
}
|
|
3128
|
-
const RepresentationType$
|
|
3129
|
-
function keyBuilder$
|
|
3130
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3128
|
+
const RepresentationType$5 = 'MoveToNextStepOutputRepresentation';
|
|
3129
|
+
function keyBuilder$6(luvio, config) {
|
|
3130
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + config.isSuccess;
|
|
3131
3131
|
}
|
|
3132
|
-
function keyBuilderFromType$
|
|
3132
|
+
function keyBuilderFromType$4(luvio, object) {
|
|
3133
3133
|
const keyParams = {
|
|
3134
3134
|
isSuccess: object.isSuccess
|
|
3135
3135
|
};
|
|
3136
|
-
return keyBuilder$
|
|
3136
|
+
return keyBuilder$6(luvio, keyParams);
|
|
3137
3137
|
}
|
|
3138
|
-
function normalize$
|
|
3138
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
3139
3139
|
return input;
|
|
3140
3140
|
}
|
|
3141
|
-
const select$
|
|
3141
|
+
const select$d = function MoveToNextStepOutputRepresentationSelect() {
|
|
3142
3142
|
return {
|
|
3143
3143
|
kind: 'Fragment',
|
|
3144
|
-
version: VERSION$
|
|
3144
|
+
version: VERSION$7,
|
|
3145
3145
|
private: [],
|
|
3146
3146
|
selections: [
|
|
3147
3147
|
{
|
|
@@ -3175,7 +3175,7 @@ const select$9 = function MoveToNextStepOutputRepresentationSelect() {
|
|
|
3175
3175
|
]
|
|
3176
3176
|
};
|
|
3177
3177
|
};
|
|
3178
|
-
function equals$
|
|
3178
|
+
function equals$7(existing, incoming) {
|
|
3179
3179
|
const existing_isSuccess = existing.isSuccess;
|
|
3180
3180
|
const incoming_isSuccess = incoming.isSuccess;
|
|
3181
3181
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -3213,41 +3213,41 @@ function equals$4(existing, incoming) {
|
|
|
3213
3213
|
}
|
|
3214
3214
|
return true;
|
|
3215
3215
|
}
|
|
3216
|
-
const ingest$
|
|
3216
|
+
const ingest$5 = function MoveToNextStepOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3217
3217
|
if (process.env.NODE_ENV !== 'production') {
|
|
3218
|
-
const validateError = validate$
|
|
3218
|
+
const validateError = validate$b(input);
|
|
3219
3219
|
if (validateError !== null) {
|
|
3220
3220
|
throw validateError;
|
|
3221
3221
|
}
|
|
3222
3222
|
}
|
|
3223
|
-
const key = keyBuilderFromType$
|
|
3223
|
+
const key = keyBuilderFromType$4(luvio, input);
|
|
3224
3224
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
3225
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3225
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "healthcloud", VERSION$7, RepresentationType$5, equals$7);
|
|
3226
3226
|
return createLink(key);
|
|
3227
3227
|
};
|
|
3228
|
-
function getTypeCacheKeys$
|
|
3228
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
3229
3229
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3230
|
-
const rootKey = keyBuilderFromType$
|
|
3230
|
+
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
3231
3231
|
rootKeySet.set(rootKey, {
|
|
3232
3232
|
namespace: keyPrefix,
|
|
3233
|
-
representationName: RepresentationType$
|
|
3233
|
+
representationName: RepresentationType$5,
|
|
3234
3234
|
mergeable: false
|
|
3235
3235
|
});
|
|
3236
3236
|
}
|
|
3237
3237
|
|
|
3238
|
-
function select$
|
|
3239
|
-
return select$
|
|
3238
|
+
function select$c(luvio, params) {
|
|
3239
|
+
return select$d();
|
|
3240
3240
|
}
|
|
3241
|
-
function getResponseCacheKeys$
|
|
3242
|
-
getTypeCacheKeys$
|
|
3241
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
3242
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
3243
3243
|
}
|
|
3244
|
-
function ingestSuccess$
|
|
3244
|
+
function ingestSuccess$5(luvio, resourceParams, response) {
|
|
3245
3245
|
const { body } = response;
|
|
3246
|
-
const key = keyBuilderFromType$
|
|
3247
|
-
luvio.storeIngest(key, ingest$
|
|
3246
|
+
const key = keyBuilderFromType$4(luvio, body);
|
|
3247
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
3248
3248
|
const snapshot = luvio.storeLookup({
|
|
3249
3249
|
recordId: key,
|
|
3250
|
-
node: select$
|
|
3250
|
+
node: select$c(),
|
|
3251
3251
|
variables: {},
|
|
3252
3252
|
});
|
|
3253
3253
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3258,7 +3258,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
3258
3258
|
deepFreeze(snapshot.data);
|
|
3259
3259
|
return snapshot;
|
|
3260
3260
|
}
|
|
3261
|
-
function createResourceRequest$
|
|
3261
|
+
function createResourceRequest$5(config) {
|
|
3262
3262
|
const headers = {};
|
|
3263
3263
|
return {
|
|
3264
3264
|
baseUri: '/services/data/v60.0',
|
|
@@ -3272,45 +3272,45 @@ function createResourceRequest$4(config) {
|
|
|
3272
3272
|
};
|
|
3273
3273
|
}
|
|
3274
3274
|
|
|
3275
|
-
const adapterName$
|
|
3275
|
+
const adapterName$5 = 'moveToNextStep';
|
|
3276
3276
|
const moveToNextStep_ConfigPropertyMetadata = [
|
|
3277
3277
|
generateParamConfigMetadata('MoveToNextStepInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3278
3278
|
];
|
|
3279
|
-
const moveToNextStep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3280
|
-
const createResourceParams$
|
|
3281
|
-
function typeCheckConfig$
|
|
3279
|
+
const moveToNextStep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, moveToNextStep_ConfigPropertyMetadata);
|
|
3280
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$f(moveToNextStep_ConfigPropertyMetadata);
|
|
3281
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
3282
3282
|
const config = {};
|
|
3283
3283
|
const untrustedConfig_MoveToNextStepInput = untrustedConfig.MoveToNextStepInput;
|
|
3284
|
-
const referenceMoveToNextStepInputRepresentationValidationError = validate$
|
|
3284
|
+
const referenceMoveToNextStepInputRepresentationValidationError = validate$c(untrustedConfig_MoveToNextStepInput);
|
|
3285
3285
|
if (referenceMoveToNextStepInputRepresentationValidationError === null) {
|
|
3286
3286
|
config.MoveToNextStepInput = untrustedConfig_MoveToNextStepInput;
|
|
3287
3287
|
}
|
|
3288
3288
|
return config;
|
|
3289
3289
|
}
|
|
3290
|
-
function validateAdapterConfig$
|
|
3290
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
3291
3291
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3292
3292
|
return null;
|
|
3293
3293
|
}
|
|
3294
3294
|
if (process.env.NODE_ENV !== 'production') {
|
|
3295
3295
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3296
3296
|
}
|
|
3297
|
-
const config = typeCheckConfig$
|
|
3297
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
3298
3298
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3299
3299
|
return null;
|
|
3300
3300
|
}
|
|
3301
3301
|
return config;
|
|
3302
3302
|
}
|
|
3303
|
-
function buildNetworkSnapshot$
|
|
3304
|
-
const resourceParams = createResourceParams$
|
|
3305
|
-
const request = createResourceRequest$
|
|
3303
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
3304
|
+
const resourceParams = createResourceParams$5(config);
|
|
3305
|
+
const request = createResourceRequest$5(resourceParams);
|
|
3306
3306
|
return luvio.dispatchResourceRequest(request, options)
|
|
3307
3307
|
.then((response) => {
|
|
3308
3308
|
return luvio.handleSuccessResponse(() => {
|
|
3309
|
-
const snapshot = ingestSuccess$
|
|
3309
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response);
|
|
3310
3310
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3311
3311
|
}, () => {
|
|
3312
3312
|
const cache = new StoreKeyMap();
|
|
3313
|
-
getResponseCacheKeys$
|
|
3313
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
3314
3314
|
return cache;
|
|
3315
3315
|
});
|
|
3316
3316
|
}, (response) => {
|
|
@@ -3320,11 +3320,438 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
3320
3320
|
}
|
|
3321
3321
|
const moveToNextStepAdapterFactory = (luvio) => {
|
|
3322
3322
|
return function moveToNextStep(untrustedConfig) {
|
|
3323
|
-
const config = validateAdapterConfig$
|
|
3323
|
+
const config = validateAdapterConfig$5(untrustedConfig, moveToNextStep_ConfigPropertyNames);
|
|
3324
3324
|
// Invalid or incomplete config
|
|
3325
3325
|
if (config === null) {
|
|
3326
3326
|
throw new Error('Invalid config for "moveToNextStep"');
|
|
3327
3327
|
}
|
|
3328
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
3329
|
+
};
|
|
3330
|
+
};
|
|
3331
|
+
|
|
3332
|
+
const VERSION$6 = "d26671870c7aaa40aaa79ea28ca20bb2";
|
|
3333
|
+
function validate$a(obj, path = 'QuotaAvailabilityDateRange') {
|
|
3334
|
+
const v_error = (() => {
|
|
3335
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3336
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3337
|
+
}
|
|
3338
|
+
if (obj.quotaEndDate !== undefined) {
|
|
3339
|
+
const obj_quotaEndDate = obj.quotaEndDate;
|
|
3340
|
+
const path_quotaEndDate = path + '.quotaEndDate';
|
|
3341
|
+
if (typeof obj_quotaEndDate !== 'string') {
|
|
3342
|
+
return new TypeError('Expected "string" but received "' + typeof obj_quotaEndDate + '" (at "' + path_quotaEndDate + '")');
|
|
3343
|
+
}
|
|
3344
|
+
}
|
|
3345
|
+
if (obj.quotaStartDate !== undefined) {
|
|
3346
|
+
const obj_quotaStartDate = obj.quotaStartDate;
|
|
3347
|
+
const path_quotaStartDate = path + '.quotaStartDate';
|
|
3348
|
+
if (typeof obj_quotaStartDate !== 'string') {
|
|
3349
|
+
return new TypeError('Expected "string" but received "' + typeof obj_quotaStartDate + '" (at "' + path_quotaStartDate + '")');
|
|
3350
|
+
}
|
|
3351
|
+
}
|
|
3352
|
+
})();
|
|
3353
|
+
return v_error === undefined ? null : v_error;
|
|
3354
|
+
}
|
|
3355
|
+
const select$b = function QuotaAvailabilityDateRangeSelect() {
|
|
3356
|
+
return {
|
|
3357
|
+
kind: 'Fragment',
|
|
3358
|
+
version: VERSION$6,
|
|
3359
|
+
private: [],
|
|
3360
|
+
selections: [
|
|
3361
|
+
{
|
|
3362
|
+
name: 'quotaEndDate',
|
|
3363
|
+
kind: 'Scalar',
|
|
3364
|
+
required: false
|
|
3365
|
+
},
|
|
3366
|
+
{
|
|
3367
|
+
name: 'quotaStartDate',
|
|
3368
|
+
kind: 'Scalar',
|
|
3369
|
+
required: false
|
|
3370
|
+
}
|
|
3371
|
+
]
|
|
3372
|
+
};
|
|
3373
|
+
};
|
|
3374
|
+
function equals$6(existing, incoming) {
|
|
3375
|
+
const existing_quotaEndDate = existing.quotaEndDate;
|
|
3376
|
+
const incoming_quotaEndDate = incoming.quotaEndDate;
|
|
3377
|
+
// if at least one of these optionals is defined
|
|
3378
|
+
if (existing_quotaEndDate !== undefined || incoming_quotaEndDate !== undefined) {
|
|
3379
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3380
|
+
// not equal
|
|
3381
|
+
if (existing_quotaEndDate === undefined || incoming_quotaEndDate === undefined) {
|
|
3382
|
+
return false;
|
|
3383
|
+
}
|
|
3384
|
+
if (!(existing_quotaEndDate === incoming_quotaEndDate)) {
|
|
3385
|
+
return false;
|
|
3386
|
+
}
|
|
3387
|
+
}
|
|
3388
|
+
const existing_quotaStartDate = existing.quotaStartDate;
|
|
3389
|
+
const incoming_quotaStartDate = incoming.quotaStartDate;
|
|
3390
|
+
// if at least one of these optionals is defined
|
|
3391
|
+
if (existing_quotaStartDate !== undefined || incoming_quotaStartDate !== undefined) {
|
|
3392
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3393
|
+
// not equal
|
|
3394
|
+
if (existing_quotaStartDate === undefined || incoming_quotaStartDate === undefined) {
|
|
3395
|
+
return false;
|
|
3396
|
+
}
|
|
3397
|
+
if (!(existing_quotaStartDate === incoming_quotaStartDate)) {
|
|
3398
|
+
return false;
|
|
3399
|
+
}
|
|
3400
|
+
}
|
|
3401
|
+
return true;
|
|
3402
|
+
}
|
|
3403
|
+
|
|
3404
|
+
const VERSION$5 = "84cb9603dea57a49dda070bca3ee9bb7";
|
|
3405
|
+
function validate$9(obj, path = 'QuotaAvailabilityRepresentation') {
|
|
3406
|
+
const v_error = (() => {
|
|
3407
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3408
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3409
|
+
}
|
|
3410
|
+
if (obj.availabilityRangeList !== undefined) {
|
|
3411
|
+
const obj_availabilityRangeList = obj.availabilityRangeList;
|
|
3412
|
+
const path_availabilityRangeList = path + '.availabilityRangeList';
|
|
3413
|
+
if (!ArrayIsArray(obj_availabilityRangeList)) {
|
|
3414
|
+
return new TypeError('Expected "array" but received "' + typeof obj_availabilityRangeList + '" (at "' + path_availabilityRangeList + '")');
|
|
3415
|
+
}
|
|
3416
|
+
for (let i = 0; i < obj_availabilityRangeList.length; i++) {
|
|
3417
|
+
const obj_availabilityRangeList_item = obj_availabilityRangeList[i];
|
|
3418
|
+
const path_availabilityRangeList_item = path_availabilityRangeList + '[' + i + ']';
|
|
3419
|
+
const referencepath_availabilityRangeList_itemValidationError = validate$a(obj_availabilityRangeList_item, path_availabilityRangeList_item);
|
|
3420
|
+
if (referencepath_availabilityRangeList_itemValidationError !== null) {
|
|
3421
|
+
let message = 'Object doesn\'t match QuotaAvailabilityDateRange (at "' + path_availabilityRangeList_item + '")\n';
|
|
3422
|
+
message += referencepath_availabilityRangeList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3423
|
+
return new TypeError(message);
|
|
3424
|
+
}
|
|
3425
|
+
}
|
|
3426
|
+
}
|
|
3427
|
+
if (obj.workTypeId !== undefined) {
|
|
3428
|
+
const obj_workTypeId = obj.workTypeId;
|
|
3429
|
+
const path_workTypeId = path + '.workTypeId';
|
|
3430
|
+
if (typeof obj_workTypeId !== 'string') {
|
|
3431
|
+
return new TypeError('Expected "string" but received "' + typeof obj_workTypeId + '" (at "' + path_workTypeId + '")');
|
|
3432
|
+
}
|
|
3433
|
+
}
|
|
3434
|
+
})();
|
|
3435
|
+
return v_error === undefined ? null : v_error;
|
|
3436
|
+
}
|
|
3437
|
+
const select$a = function QuotaAvailabilityRepresentationSelect() {
|
|
3438
|
+
const { selections: QuotaAvailabilityDateRange__selections, opaque: QuotaAvailabilityDateRange__opaque, } = select$b();
|
|
3439
|
+
return {
|
|
3440
|
+
kind: 'Fragment',
|
|
3441
|
+
version: VERSION$5,
|
|
3442
|
+
private: [],
|
|
3443
|
+
selections: [
|
|
3444
|
+
{
|
|
3445
|
+
name: 'availabilityRangeList',
|
|
3446
|
+
kind: 'Object',
|
|
3447
|
+
plural: true,
|
|
3448
|
+
selections: QuotaAvailabilityDateRange__selections,
|
|
3449
|
+
required: false
|
|
3450
|
+
},
|
|
3451
|
+
{
|
|
3452
|
+
name: 'workTypeId',
|
|
3453
|
+
kind: 'Scalar',
|
|
3454
|
+
required: false
|
|
3455
|
+
}
|
|
3456
|
+
]
|
|
3457
|
+
};
|
|
3458
|
+
};
|
|
3459
|
+
function equals$5(existing, incoming) {
|
|
3460
|
+
const existing_workTypeId = existing.workTypeId;
|
|
3461
|
+
const incoming_workTypeId = incoming.workTypeId;
|
|
3462
|
+
// if at least one of these optionals is defined
|
|
3463
|
+
if (existing_workTypeId !== undefined || incoming_workTypeId !== undefined) {
|
|
3464
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3465
|
+
// not equal
|
|
3466
|
+
if (existing_workTypeId === undefined || incoming_workTypeId === undefined) {
|
|
3467
|
+
return false;
|
|
3468
|
+
}
|
|
3469
|
+
if (!(existing_workTypeId === incoming_workTypeId)) {
|
|
3470
|
+
return false;
|
|
3471
|
+
}
|
|
3472
|
+
}
|
|
3473
|
+
const existing_availabilityRangeList = existing.availabilityRangeList;
|
|
3474
|
+
const incoming_availabilityRangeList = incoming.availabilityRangeList;
|
|
3475
|
+
// if at least one of these optionals is defined
|
|
3476
|
+
if (existing_availabilityRangeList !== undefined || incoming_availabilityRangeList !== undefined) {
|
|
3477
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3478
|
+
// not equal
|
|
3479
|
+
if (existing_availabilityRangeList === undefined || incoming_availabilityRangeList === undefined) {
|
|
3480
|
+
return false;
|
|
3481
|
+
}
|
|
3482
|
+
const equals_availabilityRangeList_items = equalsArray(existing_availabilityRangeList, incoming_availabilityRangeList, (existing_availabilityRangeList_item, incoming_availabilityRangeList_item) => {
|
|
3483
|
+
if (!(equals$6(existing_availabilityRangeList_item, incoming_availabilityRangeList_item))) {
|
|
3484
|
+
return false;
|
|
3485
|
+
}
|
|
3486
|
+
});
|
|
3487
|
+
if (equals_availabilityRangeList_items === false) {
|
|
3488
|
+
return false;
|
|
3489
|
+
}
|
|
3490
|
+
}
|
|
3491
|
+
return true;
|
|
3492
|
+
}
|
|
3493
|
+
|
|
3494
|
+
const VERSION$4 = "f1fa9c520361858bd08a791ca1d95f53";
|
|
3495
|
+
function validate$8(obj, path = 'QuotasAllocationOutputRepresentation') {
|
|
3496
|
+
const v_error = (() => {
|
|
3497
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3498
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3499
|
+
}
|
|
3500
|
+
const obj_code = obj.code;
|
|
3501
|
+
const path_code = path + '.code';
|
|
3502
|
+
if (typeof obj_code !== 'string') {
|
|
3503
|
+
return new TypeError('Expected "string" but received "' + typeof obj_code + '" (at "' + path_code + '")');
|
|
3504
|
+
}
|
|
3505
|
+
const obj_isSuccess = obj.isSuccess;
|
|
3506
|
+
const path_isSuccess = path + '.isSuccess';
|
|
3507
|
+
if (typeof obj_isSuccess !== 'boolean') {
|
|
3508
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
3509
|
+
}
|
|
3510
|
+
if (obj.message !== undefined) {
|
|
3511
|
+
const obj_message = obj.message;
|
|
3512
|
+
const path_message = path + '.message';
|
|
3513
|
+
if (typeof obj_message !== 'string') {
|
|
3514
|
+
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
3515
|
+
}
|
|
3516
|
+
}
|
|
3517
|
+
if (obj.quotaAvailability !== undefined) {
|
|
3518
|
+
const obj_quotaAvailability = obj.quotaAvailability;
|
|
3519
|
+
const path_quotaAvailability = path + '.quotaAvailability';
|
|
3520
|
+
if (!ArrayIsArray(obj_quotaAvailability)) {
|
|
3521
|
+
return new TypeError('Expected "array" but received "' + typeof obj_quotaAvailability + '" (at "' + path_quotaAvailability + '")');
|
|
3522
|
+
}
|
|
3523
|
+
for (let i = 0; i < obj_quotaAvailability.length; i++) {
|
|
3524
|
+
const obj_quotaAvailability_item = obj_quotaAvailability[i];
|
|
3525
|
+
const path_quotaAvailability_item = path_quotaAvailability + '[' + i + ']';
|
|
3526
|
+
const referencepath_quotaAvailability_itemValidationError = validate$9(obj_quotaAvailability_item, path_quotaAvailability_item);
|
|
3527
|
+
if (referencepath_quotaAvailability_itemValidationError !== null) {
|
|
3528
|
+
let message = 'Object doesn\'t match QuotaAvailabilityRepresentation (at "' + path_quotaAvailability_item + '")\n';
|
|
3529
|
+
message += referencepath_quotaAvailability_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3530
|
+
return new TypeError(message);
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
}
|
|
3534
|
+
})();
|
|
3535
|
+
return v_error === undefined ? null : v_error;
|
|
3536
|
+
}
|
|
3537
|
+
const RepresentationType$4 = 'QuotasAllocationOutputRepresentation';
|
|
3538
|
+
function keyBuilder$5(luvio, config) {
|
|
3539
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.isSuccess;
|
|
3540
|
+
}
|
|
3541
|
+
function keyBuilderFromType$3(luvio, object) {
|
|
3542
|
+
const keyParams = {
|
|
3543
|
+
isSuccess: object.isSuccess
|
|
3544
|
+
};
|
|
3545
|
+
return keyBuilder$5(luvio, keyParams);
|
|
3546
|
+
}
|
|
3547
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
3548
|
+
return input;
|
|
3549
|
+
}
|
|
3550
|
+
const select$9 = function QuotasAllocationOutputRepresentationSelect() {
|
|
3551
|
+
const { selections: QuotaAvailabilityRepresentation__selections, opaque: QuotaAvailabilityRepresentation__opaque, } = select$a();
|
|
3552
|
+
return {
|
|
3553
|
+
kind: 'Fragment',
|
|
3554
|
+
version: VERSION$4,
|
|
3555
|
+
private: [],
|
|
3556
|
+
selections: [
|
|
3557
|
+
{
|
|
3558
|
+
name: 'code',
|
|
3559
|
+
kind: 'Scalar'
|
|
3560
|
+
},
|
|
3561
|
+
{
|
|
3562
|
+
name: 'isSuccess',
|
|
3563
|
+
kind: 'Scalar'
|
|
3564
|
+
},
|
|
3565
|
+
{
|
|
3566
|
+
name: 'message',
|
|
3567
|
+
kind: 'Scalar',
|
|
3568
|
+
required: false
|
|
3569
|
+
},
|
|
3570
|
+
{
|
|
3571
|
+
name: 'quotaAvailability',
|
|
3572
|
+
kind: 'Object',
|
|
3573
|
+
plural: true,
|
|
3574
|
+
selections: QuotaAvailabilityRepresentation__selections,
|
|
3575
|
+
required: false
|
|
3576
|
+
}
|
|
3577
|
+
]
|
|
3578
|
+
};
|
|
3579
|
+
};
|
|
3580
|
+
function equals$4(existing, incoming) {
|
|
3581
|
+
const existing_isSuccess = existing.isSuccess;
|
|
3582
|
+
const incoming_isSuccess = incoming.isSuccess;
|
|
3583
|
+
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
3584
|
+
return false;
|
|
3585
|
+
}
|
|
3586
|
+
const existing_code = existing.code;
|
|
3587
|
+
const incoming_code = incoming.code;
|
|
3588
|
+
if (!(existing_code === incoming_code)) {
|
|
3589
|
+
return false;
|
|
3590
|
+
}
|
|
3591
|
+
const existing_message = existing.message;
|
|
3592
|
+
const incoming_message = incoming.message;
|
|
3593
|
+
// if at least one of these optionals is defined
|
|
3594
|
+
if (existing_message !== undefined || incoming_message !== undefined) {
|
|
3595
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3596
|
+
// not equal
|
|
3597
|
+
if (existing_message === undefined || incoming_message === undefined) {
|
|
3598
|
+
return false;
|
|
3599
|
+
}
|
|
3600
|
+
if (!(existing_message === incoming_message)) {
|
|
3601
|
+
return false;
|
|
3602
|
+
}
|
|
3603
|
+
}
|
|
3604
|
+
const existing_quotaAvailability = existing.quotaAvailability;
|
|
3605
|
+
const incoming_quotaAvailability = incoming.quotaAvailability;
|
|
3606
|
+
// if at least one of these optionals is defined
|
|
3607
|
+
if (existing_quotaAvailability !== undefined || incoming_quotaAvailability !== undefined) {
|
|
3608
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3609
|
+
// not equal
|
|
3610
|
+
if (existing_quotaAvailability === undefined || incoming_quotaAvailability === undefined) {
|
|
3611
|
+
return false;
|
|
3612
|
+
}
|
|
3613
|
+
const equals_quotaAvailability_items = equalsArray(existing_quotaAvailability, incoming_quotaAvailability, (existing_quotaAvailability_item, incoming_quotaAvailability_item) => {
|
|
3614
|
+
if (!(equals$5(existing_quotaAvailability_item, incoming_quotaAvailability_item))) {
|
|
3615
|
+
return false;
|
|
3616
|
+
}
|
|
3617
|
+
});
|
|
3618
|
+
if (equals_quotaAvailability_items === false) {
|
|
3619
|
+
return false;
|
|
3620
|
+
}
|
|
3621
|
+
}
|
|
3622
|
+
return true;
|
|
3623
|
+
}
|
|
3624
|
+
const ingest$4 = function QuotasAllocationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3625
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3626
|
+
const validateError = validate$8(input);
|
|
3627
|
+
if (validateError !== null) {
|
|
3628
|
+
throw validateError;
|
|
3629
|
+
}
|
|
3630
|
+
}
|
|
3631
|
+
const key = keyBuilderFromType$3(luvio, input);
|
|
3632
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
3633
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "healthcloud", VERSION$4, RepresentationType$4, equals$4);
|
|
3634
|
+
return createLink(key);
|
|
3635
|
+
};
|
|
3636
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
3637
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3638
|
+
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
3639
|
+
rootKeySet.set(rootKey, {
|
|
3640
|
+
namespace: keyPrefix,
|
|
3641
|
+
representationName: RepresentationType$4,
|
|
3642
|
+
mergeable: false
|
|
3643
|
+
});
|
|
3644
|
+
}
|
|
3645
|
+
|
|
3646
|
+
function select$8(luvio, params) {
|
|
3647
|
+
return select$9();
|
|
3648
|
+
}
|
|
3649
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
3650
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
3651
|
+
}
|
|
3652
|
+
function ingestSuccess$4(luvio, resourceParams, response) {
|
|
3653
|
+
const { body } = response;
|
|
3654
|
+
const key = keyBuilderFromType$3(luvio, body);
|
|
3655
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
3656
|
+
const snapshot = luvio.storeLookup({
|
|
3657
|
+
recordId: key,
|
|
3658
|
+
node: select$8(),
|
|
3659
|
+
variables: {},
|
|
3660
|
+
});
|
|
3661
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3662
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3663
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3664
|
+
}
|
|
3665
|
+
}
|
|
3666
|
+
deepFreeze(snapshot.data);
|
|
3667
|
+
return snapshot;
|
|
3668
|
+
}
|
|
3669
|
+
function createResourceRequest$4(config) {
|
|
3670
|
+
const headers = {};
|
|
3671
|
+
return {
|
|
3672
|
+
baseUri: '/services/data/v60.0',
|
|
3673
|
+
basePath: '/connect/health/advanced-therapy-management/quotas-and-allocations',
|
|
3674
|
+
method: 'post',
|
|
3675
|
+
body: config.body,
|
|
3676
|
+
urlParams: {},
|
|
3677
|
+
queryParams: {},
|
|
3678
|
+
headers,
|
|
3679
|
+
priority: 'normal',
|
|
3680
|
+
};
|
|
3681
|
+
}
|
|
3682
|
+
|
|
3683
|
+
const adapterName$4 = 'getQuotasAndAllocation';
|
|
3684
|
+
const getQuotasAndAllocation_ConfigPropertyMetadata = [
|
|
3685
|
+
generateParamConfigMetadata('contextId', true, 2 /* Body */, 0 /* String */),
|
|
3686
|
+
generateParamConfigMetadata('endDate', true, 2 /* Body */, 0 /* String */),
|
|
3687
|
+
generateParamConfigMetadata('leadTimeMap', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3688
|
+
generateParamConfigMetadata('siteId', false, 2 /* Body */, 0 /* String */),
|
|
3689
|
+
generateParamConfigMetadata('startDate', false, 2 /* Body */, 0 /* String */),
|
|
3690
|
+
generateParamConfigMetadata('workProcedureId', false, 2 /* Body */, 0 /* String */),
|
|
3691
|
+
generateParamConfigMetadata('workTypeId', false, 2 /* Body */, 0 /* String */),
|
|
3692
|
+
];
|
|
3693
|
+
const getQuotasAndAllocation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getQuotasAndAllocation_ConfigPropertyMetadata);
|
|
3694
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$f(getQuotasAndAllocation_ConfigPropertyMetadata);
|
|
3695
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
3696
|
+
const config = {};
|
|
3697
|
+
typeCheckConfig$f(untrustedConfig, config, getQuotasAndAllocation_ConfigPropertyMetadata);
|
|
3698
|
+
const untrustedConfig_leadTimeMap = untrustedConfig.leadTimeMap;
|
|
3699
|
+
if (untrustedIsObject(untrustedConfig_leadTimeMap)) {
|
|
3700
|
+
const untrustedConfig_leadTimeMap_object = {};
|
|
3701
|
+
const untrustedConfig_leadTimeMap_keys = Object.keys(untrustedConfig_leadTimeMap);
|
|
3702
|
+
for (let i = 0, arrayLength = untrustedConfig_leadTimeMap_keys.length; i < arrayLength; i++) {
|
|
3703
|
+
const key = untrustedConfig_leadTimeMap_keys[i];
|
|
3704
|
+
const untrustedConfig_leadTimeMap_prop = untrustedConfig_leadTimeMap[key];
|
|
3705
|
+
if (typeof untrustedConfig_leadTimeMap_prop === 'number' && Math.floor(untrustedConfig_leadTimeMap_prop) === untrustedConfig_leadTimeMap_prop) {
|
|
3706
|
+
if (untrustedConfig_leadTimeMap_object !== undefined) {
|
|
3707
|
+
untrustedConfig_leadTimeMap_object[key] = untrustedConfig_leadTimeMap_prop;
|
|
3708
|
+
}
|
|
3709
|
+
}
|
|
3710
|
+
}
|
|
3711
|
+
if (untrustedConfig_leadTimeMap_object !== undefined && Object.keys(untrustedConfig_leadTimeMap_object).length >= 0) {
|
|
3712
|
+
config.leadTimeMap = untrustedConfig_leadTimeMap_object;
|
|
3713
|
+
}
|
|
3714
|
+
}
|
|
3715
|
+
return config;
|
|
3716
|
+
}
|
|
3717
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
3718
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
3719
|
+
return null;
|
|
3720
|
+
}
|
|
3721
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3722
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
3723
|
+
}
|
|
3724
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
3725
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3726
|
+
return null;
|
|
3727
|
+
}
|
|
3728
|
+
return config;
|
|
3729
|
+
}
|
|
3730
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
3731
|
+
const resourceParams = createResourceParams$4(config);
|
|
3732
|
+
const request = createResourceRequest$4(resourceParams);
|
|
3733
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
3734
|
+
.then((response) => {
|
|
3735
|
+
return luvio.handleSuccessResponse(() => {
|
|
3736
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response);
|
|
3737
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3738
|
+
}, () => {
|
|
3739
|
+
const cache = new StoreKeyMap();
|
|
3740
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
3741
|
+
return cache;
|
|
3742
|
+
});
|
|
3743
|
+
}, (response) => {
|
|
3744
|
+
deepFreeze(response);
|
|
3745
|
+
throw response;
|
|
3746
|
+
});
|
|
3747
|
+
}
|
|
3748
|
+
const getQuotasAndAllocationAdapterFactory = (luvio) => {
|
|
3749
|
+
return function getQuotasAndAllocation(untrustedConfig) {
|
|
3750
|
+
const config = validateAdapterConfig$4(untrustedConfig, getQuotasAndAllocation_ConfigPropertyNames);
|
|
3751
|
+
// Invalid or incomplete config
|
|
3752
|
+
if (config === null) {
|
|
3753
|
+
throw new Error('Invalid config for "getQuotasAndAllocation"');
|
|
3754
|
+
}
|
|
3328
3755
|
return buildNetworkSnapshot$4(luvio, config);
|
|
3329
3756
|
};
|
|
3330
3757
|
};
|
|
@@ -3530,10 +3957,10 @@ const digitalVerification_ConfigPropertyMetadata = [
|
|
|
3530
3957
|
generateParamConfigMetadata('userCredentials', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3531
3958
|
];
|
|
3532
3959
|
const digitalVerification_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, digitalVerification_ConfigPropertyMetadata);
|
|
3533
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
3960
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$f(digitalVerification_ConfigPropertyMetadata);
|
|
3534
3961
|
function typeCheckConfig$3(untrustedConfig) {
|
|
3535
3962
|
const config = {};
|
|
3536
|
-
typeCheckConfig$
|
|
3963
|
+
typeCheckConfig$f(untrustedConfig, config, digitalVerification_ConfigPropertyMetadata);
|
|
3537
3964
|
const untrustedConfig_digitalVerificationInputFieldsMap = untrustedConfig.digitalVerificationInputFieldsMap;
|
|
3538
3965
|
const referenceDigitalVerificationInputFieldsMapInputRepresentationValidationError = validate$7(untrustedConfig_digitalVerificationInputFieldsMap);
|
|
3539
3966
|
if (referenceDigitalVerificationInputFieldsMapInputRepresentationValidationError === null) {
|
|
@@ -3834,7 +4261,7 @@ const getEntityDetailsInfo_ConfigPropertyMetadata = [
|
|
|
3834
4261
|
generateParamConfigMetadata('fetchEntityDetailsInputParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3835
4262
|
];
|
|
3836
4263
|
const getEntityDetailsInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getEntityDetailsInfo_ConfigPropertyMetadata);
|
|
3837
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
4264
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$f(getEntityDetailsInfo_ConfigPropertyMetadata);
|
|
3838
4265
|
function keyBuilder$2(luvio, config) {
|
|
3839
4266
|
const resourceParams = createResourceParams$2(config);
|
|
3840
4267
|
return keyBuilder$3(luvio, resourceParams);
|
|
@@ -4082,10 +4509,10 @@ const broadcastVisitAssignment_ConfigPropertyMetadata = [
|
|
|
4082
4509
|
generateParamConfigMetadata('startDateTime', true, 2 /* Body */, 0 /* String */),
|
|
4083
4510
|
];
|
|
4084
4511
|
const broadcastVisitAssignment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, broadcastVisitAssignment_ConfigPropertyMetadata);
|
|
4085
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
4512
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$f(broadcastVisitAssignment_ConfigPropertyMetadata);
|
|
4086
4513
|
function typeCheckConfig$1(untrustedConfig) {
|
|
4087
4514
|
const config = {};
|
|
4088
|
-
typeCheckConfig$
|
|
4515
|
+
typeCheckConfig$f(untrustedConfig, config, broadcastVisitAssignment_ConfigPropertyMetadata);
|
|
4089
4516
|
return config;
|
|
4090
4517
|
}
|
|
4091
4518
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -4319,10 +4746,10 @@ const createVisitBroadcast_ConfigPropertyMetadata = [
|
|
|
4319
4746
|
generateParamConfigMetadata('serviceTerritoryIds', true, 2 /* Body */, 0 /* String */, true),
|
|
4320
4747
|
];
|
|
4321
4748
|
const createVisitBroadcast_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, createVisitBroadcast_ConfigPropertyMetadata);
|
|
4322
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
4749
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$f(createVisitBroadcast_ConfigPropertyMetadata);
|
|
4323
4750
|
function typeCheckConfig(untrustedConfig) {
|
|
4324
4751
|
const config = {};
|
|
4325
|
-
typeCheckConfig$
|
|
4752
|
+
typeCheckConfig$f(untrustedConfig, config, createVisitBroadcast_ConfigPropertyMetadata);
|
|
4326
4753
|
return config;
|
|
4327
4754
|
}
|
|
4328
4755
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -4367,4 +4794,4 @@ const createVisitBroadcastAdapterFactory = (luvio) => {
|
|
|
4367
4794
|
};
|
|
4368
4795
|
};
|
|
4369
4796
|
|
|
4370
|
-
export { bookSlotChainAdapterFactory, broadcastVisitAssignmentAdapterFactory, cancelSlotChainAdapterFactory, createVisitBroadcastAdapterFactory, digitalVerificationAdapterFactory, genericConnectApiGETAdapterFactory, genericConnectApiPOSTAdapterFactory, getEntityDetailsInfoAdapterFactory, getSlotChainsAdapterFactory, getSlotsAdapterFactory, getWorkTypeServiceTerritoriesAdapterFactory, moveToNextStepAdapterFactory, rescheduleSlotChainAdapterFactory, workTypeLeadTimeAdapterFactory };
|
|
4797
|
+
export { bookSlotChainAdapterFactory, broadcastVisitAssignmentAdapterFactory, cancelSlotChainAdapterFactory, createVisitBroadcastAdapterFactory, digitalVerificationAdapterFactory, genericConnectApiGETAdapterFactory, genericConnectApiPOSTAdapterFactory, getEntityDetailsInfoAdapterFactory, getQuotasAndAllocationAdapterFactory, getSlotChainsAdapterFactory, getSlotsAdapterFactory, getWorkTypeServiceTerritoriesAdapterFactory, moveToNextStepAdapterFactory, rescheduleSlotChainAdapterFactory, workTypeLeadTimeAdapterFactory };
|