@salesforce/lds-adapters-industries-healthcloud 1.302.0 → 1.303.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 +723 -346
- package/dist/es/es2018/types/src/generated/adapters/adhocTasksAtm.d.ts +16 -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/postConnectHealthAdvancedTherapyManagementAdhocTasksAtm.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/types/AdhocTasksAtmInputRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/AdhocTasksAtmInputRepresentationWrapper.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/AdhocTasksAtmOutputRepresentation.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/TaskValuesInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/TemplateTaskValuesInputRepresentation.d.ts +34 -0
- package/package.json +4 -4
- package/sfdc/index.js +410 -30
- package/src/raml/api.raml +97 -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$4, typeCheckConfig as typeCheckConfig$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckConfig as typeCheckConfig$i, StoreKeyMap, createResourceParams as createResourceParams$i } 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$m = "9a4b29dafb135f2d93c3bb0d73b2f500";
|
|
116
|
+
function validate$D(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$z(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$h = 'GenericConnectApiGETOutputRepresentation';
|
|
165
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
166
166
|
return input;
|
|
167
167
|
}
|
|
168
|
-
const select$
|
|
168
|
+
const select$E = function GenericConnectApiGETOutputRepresentationSelect() {
|
|
169
169
|
return {
|
|
170
170
|
kind: 'Fragment',
|
|
171
|
-
version: VERSION$
|
|
171
|
+
version: VERSION$m,
|
|
172
172
|
private: [],
|
|
173
173
|
opaque: true
|
|
174
174
|
};
|
|
175
175
|
};
|
|
176
|
-
function equals$
|
|
176
|
+
function equals$m(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$h = function GenericConnectApiGETOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
183
183
|
if (process.env.NODE_ENV !== 'production') {
|
|
184
|
-
const validateError = validate$
|
|
184
|
+
const validateError = validate$D(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$h, "healthcloud", VERSION$m, RepresentationType$h, equals$m);
|
|
192
192
|
return createLink(key);
|
|
193
193
|
};
|
|
194
|
-
function getTypeCacheKeys$
|
|
194
|
+
function getTypeCacheKeys$h(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$h,
|
|
200
200
|
mergeable: false
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
function select$
|
|
205
|
-
return select$
|
|
204
|
+
function select$D(luvio, params) {
|
|
205
|
+
return select$E();
|
|
206
206
|
}
|
|
207
|
-
function keyBuilder$
|
|
207
|
+
function keyBuilder$l(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$h(storeKeyMap, luvio, resourceParams, response) {
|
|
211
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response, () => keyBuilder$l(luvio, resourceParams));
|
|
212
212
|
}
|
|
213
|
-
function ingestSuccess$
|
|
213
|
+
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
214
214
|
const { body } = response;
|
|
215
|
-
const key = keyBuilder$
|
|
216
|
-
luvio.storeIngest(key, ingest$
|
|
215
|
+
const key = keyBuilder$l(luvio, resourceParams);
|
|
216
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
217
217
|
const snapshot = luvio.storeLookup({
|
|
218
218
|
recordId: key,
|
|
219
|
-
node: select$
|
|
219
|
+
node: select$D(),
|
|
220
220
|
variables: {},
|
|
221
221
|
}, snapshotRefresh);
|
|
222
222
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -228,12 +228,12 @@ function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
228
228
|
return snapshot;
|
|
229
229
|
}
|
|
230
230
|
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
231
|
-
const key = keyBuilder$
|
|
231
|
+
const key = keyBuilder$l(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$h(config) {
|
|
237
237
|
const headers = {};
|
|
238
238
|
return {
|
|
239
239
|
baseUri: '/services/data/v62.0',
|
|
@@ -247,7 +247,7 @@ function createResourceRequest$g(config) {
|
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
const adapterName$
|
|
250
|
+
const adapterName$h = '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$h, genericConnectApiGET_ConfigPropertyMetadata);
|
|
262
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$i(genericConnectApiGET_ConfigPropertyMetadata);
|
|
263
|
+
function keyBuilder$k(luvio, config) {
|
|
264
|
+
const resourceParams = createResourceParams$h(config);
|
|
265
|
+
return keyBuilder$l(luvio, resourceParams);
|
|
266
266
|
}
|
|
267
|
-
function typeCheckConfig$
|
|
267
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
268
268
|
const config = {};
|
|
269
|
-
typeCheckConfig$
|
|
269
|
+
typeCheckConfig$i(untrustedConfig, config, genericConnectApiGET_ConfigPropertyMetadata);
|
|
270
270
|
return config;
|
|
271
271
|
}
|
|
272
|
-
function validateAdapterConfig$
|
|
272
|
+
function validateAdapterConfig$h(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$h(untrustedConfig);
|
|
280
280
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
281
281
|
return null;
|
|
282
282
|
}
|
|
283
283
|
return config;
|
|
284
284
|
}
|
|
285
285
|
function adapterFragment$3(luvio, config) {
|
|
286
|
-
createResourceParams$
|
|
287
|
-
return select$
|
|
286
|
+
createResourceParams$h(config);
|
|
287
|
+
return select$D();
|
|
288
288
|
}
|
|
289
289
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
290
|
-
const snapshot = ingestSuccess$
|
|
290
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
291
291
|
config,
|
|
292
|
-
resolve: () => buildNetworkSnapshot$
|
|
292
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
293
293
|
});
|
|
294
294
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
295
295
|
}
|
|
296
296
|
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
297
297
|
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
298
298
|
config,
|
|
299
|
-
resolve: () => buildNetworkSnapshot$
|
|
299
|
+
resolve: () => buildNetworkSnapshot$h(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$h(luvio, config, options) {
|
|
304
|
+
const resourceParams = createResourceParams$h(config);
|
|
305
|
+
const request = createResourceRequest$h(resourceParams);
|
|
306
306
|
return luvio.dispatchResourceRequest(request, options)
|
|
307
307
|
.then((response) => {
|
|
308
308
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
309
309
|
const cache = new StoreKeyMap();
|
|
310
|
-
getResponseCacheKeys$
|
|
310
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
311
311
|
return cache;
|
|
312
312
|
});
|
|
313
313
|
}, (response) => {
|
|
@@ -315,23 +315,23 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
317
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
318
|
-
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
318
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
319
319
|
}
|
|
320
320
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
321
321
|
const { luvio, config } = context;
|
|
322
322
|
const selector = {
|
|
323
|
-
recordId: keyBuilder$
|
|
323
|
+
recordId: keyBuilder$k(luvio, config),
|
|
324
324
|
node: adapterFragment$3(luvio, config),
|
|
325
325
|
variables: {},
|
|
326
326
|
};
|
|
327
327
|
const cacheSnapshot = storeLookup(selector, {
|
|
328
328
|
config,
|
|
329
|
-
resolve: () => buildNetworkSnapshot$
|
|
329
|
+
resolve: () => buildNetworkSnapshot$h(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$h(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$3, buildNetworkSnapshotCachePolicy$3);
|
|
341
341
|
};
|
|
342
342
|
|
|
343
|
-
function validate$
|
|
343
|
+
function validate$C(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$y(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$l = "7b3913515d78cf7f964adb4e7095e8a5";
|
|
374
|
+
function validate$B(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$x(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$g = 'GenericConnectApiPOSTOutputRepresentation';
|
|
418
|
+
function keyBuilder$j(luvio, config) {
|
|
419
|
+
return keyPrefix + '::' + RepresentationType$g + ':' + config.isSuccess;
|
|
420
420
|
}
|
|
421
|
-
function keyBuilderFromType$
|
|
421
|
+
function keyBuilderFromType$d(luvio, object) {
|
|
422
422
|
const keyParams = {
|
|
423
423
|
isSuccess: object.message
|
|
424
424
|
};
|
|
425
|
-
return keyBuilder$
|
|
425
|
+
return keyBuilder$j(luvio, keyParams);
|
|
426
426
|
}
|
|
427
|
-
function normalize$
|
|
427
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
428
428
|
return input;
|
|
429
429
|
}
|
|
430
|
-
const select$
|
|
430
|
+
const select$C = function GenericConnectApiPOSTOutputRepresentationSelect() {
|
|
431
431
|
return {
|
|
432
432
|
kind: 'Fragment',
|
|
433
|
-
version: VERSION$
|
|
433
|
+
version: VERSION$l,
|
|
434
434
|
private: [],
|
|
435
435
|
selections: [
|
|
436
436
|
{
|
|
@@ -450,7 +450,7 @@ const select$A = function GenericConnectApiPOSTOutputRepresentationSelect() {
|
|
|
450
450
|
]
|
|
451
451
|
};
|
|
452
452
|
};
|
|
453
|
-
function equals$
|
|
453
|
+
function equals$l(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$k(existing, incoming) {
|
|
|
494
494
|
}
|
|
495
495
|
return true;
|
|
496
496
|
}
|
|
497
|
-
const ingest$
|
|
497
|
+
const ingest$g = function GenericConnectApiPOSTOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
498
498
|
if (process.env.NODE_ENV !== 'production') {
|
|
499
|
-
const validateError = validate$
|
|
499
|
+
const validateError = validate$B(input);
|
|
500
500
|
if (validateError !== null) {
|
|
501
501
|
throw validateError;
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
const key = keyBuilderFromType$
|
|
504
|
+
const key = keyBuilderFromType$d(luvio, input);
|
|
505
505
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
506
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
506
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "healthcloud", VERSION$l, RepresentationType$g, equals$l);
|
|
507
507
|
return createLink(key);
|
|
508
508
|
};
|
|
509
|
-
function getTypeCacheKeys$
|
|
509
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
510
510
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
511
|
-
const rootKey = keyBuilderFromType$
|
|
511
|
+
const rootKey = keyBuilderFromType$d(luvio, input);
|
|
512
512
|
rootKeySet.set(rootKey, {
|
|
513
513
|
namespace: keyPrefix,
|
|
514
|
-
representationName: RepresentationType$
|
|
514
|
+
representationName: RepresentationType$g,
|
|
515
515
|
mergeable: false
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
-
function select$
|
|
520
|
-
return select$
|
|
519
|
+
function select$B(luvio, params) {
|
|
520
|
+
return select$C();
|
|
521
521
|
}
|
|
522
|
-
function getResponseCacheKeys$
|
|
523
|
-
getTypeCacheKeys$
|
|
522
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
523
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
524
524
|
}
|
|
525
|
-
function ingestSuccess$
|
|
525
|
+
function ingestSuccess$g(luvio, resourceParams, response) {
|
|
526
526
|
const { body } = response;
|
|
527
|
-
const key = keyBuilderFromType$
|
|
528
|
-
luvio.storeIngest(key, ingest$
|
|
527
|
+
const key = keyBuilderFromType$d(luvio, body);
|
|
528
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
529
529
|
const snapshot = luvio.storeLookup({
|
|
530
530
|
recordId: key,
|
|
531
|
-
node: select$
|
|
531
|
+
node: select$B(),
|
|
532
532
|
variables: {},
|
|
533
533
|
});
|
|
534
534
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -539,7 +539,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
539
539
|
deepFreeze(snapshot.data);
|
|
540
540
|
return snapshot;
|
|
541
541
|
}
|
|
542
|
-
function createResourceRequest$
|
|
542
|
+
function createResourceRequest$g(config) {
|
|
543
543
|
const headers = {};
|
|
544
544
|
return {
|
|
545
545
|
baseUri: '/services/data/v62.0',
|
|
@@ -553,47 +553,47 @@ function createResourceRequest$f(config) {
|
|
|
553
553
|
};
|
|
554
554
|
}
|
|
555
555
|
|
|
556
|
-
const adapterName$
|
|
556
|
+
const adapterName$g = '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$g, genericConnectApiPOST_ConfigPropertyMetadata);
|
|
562
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$i(genericConnectApiPOST_ConfigPropertyMetadata);
|
|
563
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
564
564
|
const config = {};
|
|
565
|
-
typeCheckConfig$
|
|
565
|
+
typeCheckConfig$i(untrustedConfig, config, genericConnectApiPOST_ConfigPropertyMetadata);
|
|
566
566
|
const untrustedConfig_GenericConnectApiPOSTInput = untrustedConfig.GenericConnectApiPOSTInput;
|
|
567
|
-
const referenceGenericConnectApiPOSTInputRepresentationValidationError = validate$
|
|
567
|
+
const referenceGenericConnectApiPOSTInputRepresentationValidationError = validate$C(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$g(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$g(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$g(luvio, config, options) {
|
|
587
|
+
const resourceParams = createResourceParams$g(config);
|
|
588
|
+
const request = createResourceRequest$g(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$g(luvio, resourceParams, response);
|
|
593
593
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
594
594
|
}, () => {
|
|
595
595
|
const cache = new StoreKeyMap();
|
|
596
|
-
getResponseCacheKeys$
|
|
596
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
597
597
|
return cache;
|
|
598
598
|
});
|
|
599
599
|
}, (response) => {
|
|
@@ -603,16 +603,16 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
603
603
|
}
|
|
604
604
|
const genericConnectApiPOSTAdapterFactory = (luvio) => {
|
|
605
605
|
return function genericConnectApiPOST(untrustedConfig) {
|
|
606
|
-
const config = validateAdapterConfig$
|
|
606
|
+
const config = validateAdapterConfig$g(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$g(luvio, config);
|
|
612
612
|
};
|
|
613
613
|
};
|
|
614
614
|
|
|
615
|
-
function validate$
|
|
615
|
+
function validate$A(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$w(obj, path = 'SearchConditionInputRepresentation') {
|
|
|
638
638
|
return v_error === undefined ? null : v_error;
|
|
639
639
|
}
|
|
640
640
|
|
|
641
|
-
function validate$
|
|
641
|
+
function validate$z(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$v(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$A(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$v(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$k = "21bcc7331e8d2943e1f2182cc502d1dc";
|
|
692
|
+
function validate$y(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$u(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$f = 'GetSlotsOutputRepresentation';
|
|
766
|
+
function keyBuilder$i(luvio, config) {
|
|
767
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.isSuccess;
|
|
768
768
|
}
|
|
769
|
-
function keyBuilderFromType$
|
|
769
|
+
function keyBuilderFromType$c(luvio, object) {
|
|
770
770
|
const keyParams = {
|
|
771
771
|
isSuccess: object.isSuccess
|
|
772
772
|
};
|
|
773
|
-
return keyBuilder$
|
|
773
|
+
return keyBuilder$i(luvio, keyParams);
|
|
774
774
|
}
|
|
775
|
-
function normalize$
|
|
775
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
776
776
|
return input;
|
|
777
777
|
}
|
|
778
|
-
const select$
|
|
778
|
+
const select$A = function GetSlotsOutputRepresentationSelect() {
|
|
779
779
|
return {
|
|
780
780
|
kind: 'Fragment',
|
|
781
|
-
version: VERSION$
|
|
781
|
+
version: VERSION$k,
|
|
782
782
|
private: [],
|
|
783
783
|
selections: [
|
|
784
784
|
{
|
|
@@ -808,7 +808,7 @@ const select$y = function GetSlotsOutputRepresentationSelect() {
|
|
|
808
808
|
]
|
|
809
809
|
};
|
|
810
810
|
};
|
|
811
|
-
function equals$
|
|
811
|
+
function equals$k(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$j(existing, incoming) {
|
|
|
880
880
|
}
|
|
881
881
|
return true;
|
|
882
882
|
}
|
|
883
|
-
const ingest$
|
|
883
|
+
const ingest$f = function GetSlotsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
884
884
|
if (process.env.NODE_ENV !== 'production') {
|
|
885
|
-
const validateError = validate$
|
|
885
|
+
const validateError = validate$y(input);
|
|
886
886
|
if (validateError !== null) {
|
|
887
887
|
throw validateError;
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
-
const key = keyBuilderFromType$
|
|
890
|
+
const key = keyBuilderFromType$c(luvio, input);
|
|
891
891
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
892
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
892
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "healthcloud", VERSION$k, RepresentationType$f, equals$k);
|
|
893
893
|
return createLink(key);
|
|
894
894
|
};
|
|
895
|
-
function getTypeCacheKeys$
|
|
895
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
896
896
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
897
|
-
const rootKey = keyBuilderFromType$
|
|
897
|
+
const rootKey = keyBuilderFromType$c(luvio, input);
|
|
898
898
|
rootKeySet.set(rootKey, {
|
|
899
899
|
namespace: keyPrefix,
|
|
900
|
-
representationName: RepresentationType$
|
|
900
|
+
representationName: RepresentationType$f,
|
|
901
901
|
mergeable: false
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
904
|
|
|
905
|
-
function select$
|
|
906
|
-
return select$
|
|
905
|
+
function select$z(luvio, params) {
|
|
906
|
+
return select$A();
|
|
907
907
|
}
|
|
908
|
-
function getResponseCacheKeys$
|
|
909
|
-
getTypeCacheKeys$
|
|
908
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
909
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
910
910
|
}
|
|
911
|
-
function ingestSuccess$
|
|
911
|
+
function ingestSuccess$f(luvio, resourceParams, response) {
|
|
912
912
|
const { body } = response;
|
|
913
|
-
const key = keyBuilderFromType$
|
|
914
|
-
luvio.storeIngest(key, ingest$
|
|
913
|
+
const key = keyBuilderFromType$c(luvio, body);
|
|
914
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
915
915
|
const snapshot = luvio.storeLookup({
|
|
916
916
|
recordId: key,
|
|
917
|
-
node: select$
|
|
917
|
+
node: select$z(),
|
|
918
918
|
variables: {},
|
|
919
919
|
});
|
|
920
920
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -925,7 +925,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
|
|
|
925
925
|
deepFreeze(snapshot.data);
|
|
926
926
|
return snapshot;
|
|
927
927
|
}
|
|
928
|
-
function createResourceRequest$
|
|
928
|
+
function createResourceRequest$f(config) {
|
|
929
929
|
const headers = {};
|
|
930
930
|
return {
|
|
931
931
|
baseUri: '/services/data/v62.0',
|
|
@@ -939,45 +939,45 @@ function createResourceRequest$e(config) {
|
|
|
939
939
|
};
|
|
940
940
|
}
|
|
941
941
|
|
|
942
|
-
const adapterName$
|
|
942
|
+
const adapterName$f = '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$f, getSlots_ConfigPropertyMetadata);
|
|
947
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$i(getSlots_ConfigPropertyMetadata);
|
|
948
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
949
949
|
const config = {};
|
|
950
950
|
const untrustedConfig_getSlotsInput = untrustedConfig.getSlotsInput;
|
|
951
|
-
const referenceGetSlotsInputRepresentationValidationError = validate$
|
|
951
|
+
const referenceGetSlotsInputRepresentationValidationError = validate$z(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$f(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$f(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$f(luvio, config, options) {
|
|
971
|
+
const resourceParams = createResourceParams$f(config);
|
|
972
|
+
const request = createResourceRequest$f(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$f(luvio, resourceParams, response);
|
|
977
977
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
978
978
|
}, () => {
|
|
979
979
|
const cache = new StoreKeyMap();
|
|
980
|
-
getResponseCacheKeys$
|
|
980
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
981
981
|
return cache;
|
|
982
982
|
});
|
|
983
983
|
}, (response) => {
|
|
@@ -987,16 +987,16 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
987
987
|
}
|
|
988
988
|
const getSlotsAdapterFactory = (luvio) => {
|
|
989
989
|
return function getSlots(untrustedConfig) {
|
|
990
|
-
const config = validateAdapterConfig$
|
|
990
|
+
const config = validateAdapterConfig$f(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$f(luvio, config);
|
|
996
996
|
};
|
|
997
997
|
};
|
|
998
998
|
|
|
999
|
-
function validate$
|
|
999
|
+
function validate$x(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$t(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$j = "f7d72120958f431aa05ee23ef16fb104";
|
|
1024
|
+
function validate$w(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$s(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$e = 'GetSlotChainsOutputRepresentation';
|
|
1096
|
+
function keyBuilder$h(luvio, config) {
|
|
1097
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.isSuccess;
|
|
1098
1098
|
}
|
|
1099
|
-
function keyBuilderFromType$
|
|
1099
|
+
function keyBuilderFromType$b(luvio, object) {
|
|
1100
1100
|
const keyParams = {
|
|
1101
1101
|
isSuccess: object.isSuccess
|
|
1102
1102
|
};
|
|
1103
|
-
return keyBuilder$
|
|
1103
|
+
return keyBuilder$h(luvio, keyParams);
|
|
1104
1104
|
}
|
|
1105
|
-
function normalize$
|
|
1105
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
1106
1106
|
return input;
|
|
1107
1107
|
}
|
|
1108
|
-
const select$
|
|
1108
|
+
const select$y = function GetSlotChainsOutputRepresentationSelect() {
|
|
1109
1109
|
return {
|
|
1110
1110
|
kind: 'Fragment',
|
|
1111
|
-
version: VERSION$
|
|
1111
|
+
version: VERSION$j,
|
|
1112
1112
|
private: [],
|
|
1113
1113
|
selections: [
|
|
1114
1114
|
{
|
|
@@ -1137,7 +1137,7 @@ const select$w = function GetSlotChainsOutputRepresentationSelect() {
|
|
|
1137
1137
|
]
|
|
1138
1138
|
};
|
|
1139
1139
|
};
|
|
1140
|
-
function equals$
|
|
1140
|
+
function equals$j(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$i(existing, incoming) {
|
|
|
1209
1209
|
}
|
|
1210
1210
|
return true;
|
|
1211
1211
|
}
|
|
1212
|
-
const ingest$
|
|
1212
|
+
const ingest$e = function GetSlotChainsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1213
1213
|
if (process.env.NODE_ENV !== 'production') {
|
|
1214
|
-
const validateError = validate$
|
|
1214
|
+
const validateError = validate$w(input);
|
|
1215
1215
|
if (validateError !== null) {
|
|
1216
1216
|
throw validateError;
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
|
-
const key = keyBuilderFromType$
|
|
1219
|
+
const key = keyBuilderFromType$b(luvio, input);
|
|
1220
1220
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
1221
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1221
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "healthcloud", VERSION$j, RepresentationType$e, equals$j);
|
|
1222
1222
|
return createLink(key);
|
|
1223
1223
|
};
|
|
1224
|
-
function getTypeCacheKeys$
|
|
1224
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
1225
1225
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1226
|
-
const rootKey = keyBuilderFromType$
|
|
1226
|
+
const rootKey = keyBuilderFromType$b(luvio, input);
|
|
1227
1227
|
rootKeySet.set(rootKey, {
|
|
1228
1228
|
namespace: keyPrefix,
|
|
1229
|
-
representationName: RepresentationType$
|
|
1229
|
+
representationName: RepresentationType$e,
|
|
1230
1230
|
mergeable: false
|
|
1231
1231
|
});
|
|
1232
1232
|
}
|
|
1233
1233
|
|
|
1234
|
-
function select$
|
|
1235
|
-
return select$
|
|
1234
|
+
function select$x(luvio, params) {
|
|
1235
|
+
return select$y();
|
|
1236
1236
|
}
|
|
1237
|
-
function getResponseCacheKeys$
|
|
1238
|
-
getTypeCacheKeys$
|
|
1237
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
1238
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
1239
1239
|
}
|
|
1240
|
-
function ingestSuccess$
|
|
1240
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
1241
1241
|
const { body } = response;
|
|
1242
|
-
const key = keyBuilderFromType$
|
|
1243
|
-
luvio.storeIngest(key, ingest$
|
|
1242
|
+
const key = keyBuilderFromType$b(luvio, body);
|
|
1243
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
1244
1244
|
const snapshot = luvio.storeLookup({
|
|
1245
1245
|
recordId: key,
|
|
1246
|
-
node: select$
|
|
1246
|
+
node: select$x(),
|
|
1247
1247
|
variables: {},
|
|
1248
1248
|
});
|
|
1249
1249
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1254,7 +1254,7 @@ function ingestSuccess$d(luvio, resourceParams, response) {
|
|
|
1254
1254
|
deepFreeze(snapshot.data);
|
|
1255
1255
|
return snapshot;
|
|
1256
1256
|
}
|
|
1257
|
-
function createResourceRequest$
|
|
1257
|
+
function createResourceRequest$e(config) {
|
|
1258
1258
|
const headers = {};
|
|
1259
1259
|
return {
|
|
1260
1260
|
baseUri: '/services/data/v62.0',
|
|
@@ -1268,7 +1268,7 @@ function createResourceRequest$d(config) {
|
|
|
1268
1268
|
};
|
|
1269
1269
|
}
|
|
1270
1270
|
|
|
1271
|
-
const adapterName$
|
|
1271
|
+
const adapterName$e = '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$e, getSlotChains_ConfigPropertyMetadata);
|
|
1283
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$i(getSlotChains_ConfigPropertyMetadata);
|
|
1284
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
1285
1285
|
const config = {};
|
|
1286
|
-
typeCheckConfig$
|
|
1286
|
+
typeCheckConfig$i(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$d(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$A(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$d(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$x(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$e(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$e(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$e(luvio, config, options) {
|
|
1337
|
+
const resourceParams = createResourceParams$e(config);
|
|
1338
|
+
const request = createResourceRequest$e(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$e(luvio, resourceParams, response);
|
|
1343
1343
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1344
1344
|
}, () => {
|
|
1345
1345
|
const cache = new StoreKeyMap();
|
|
1346
|
-
getResponseCacheKeys$
|
|
1346
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
1347
1347
|
return cache;
|
|
1348
1348
|
});
|
|
1349
1349
|
}, (response) => {
|
|
@@ -1353,16 +1353,16 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
const getSlotChainsAdapterFactory = (luvio) => {
|
|
1355
1355
|
return function getSlotChains(untrustedConfig) {
|
|
1356
|
-
const config = validateAdapterConfig$
|
|
1356
|
+
const config = validateAdapterConfig$e(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$e(luvio, config);
|
|
1362
1362
|
};
|
|
1363
1363
|
};
|
|
1364
1364
|
|
|
1365
|
-
function validate$
|
|
1365
|
+
function validate$v(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$r(obj, path = 'SlotInputRepresentation') {
|
|
|
1482
1482
|
return v_error === undefined ? null : v_error;
|
|
1483
1483
|
}
|
|
1484
1484
|
|
|
1485
|
-
function validate$
|
|
1485
|
+
function validate$u(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$q(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$v(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$q(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$i = "887532f336104d21a2b8063efbba663c";
|
|
1520
|
+
function validate$t(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$p(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$d = 'BookSlotChainOutputRepresentation';
|
|
1609
|
+
function keyBuilder$g(luvio, config) {
|
|
1610
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.isSuccess;
|
|
1611
1611
|
}
|
|
1612
|
-
function keyBuilderFromType$
|
|
1612
|
+
function keyBuilderFromType$a(luvio, object) {
|
|
1613
1613
|
const keyParams = {
|
|
1614
1614
|
isSuccess: object.isSuccess
|
|
1615
1615
|
};
|
|
1616
|
-
return keyBuilder$
|
|
1616
|
+
return keyBuilder$g(luvio, keyParams);
|
|
1617
1617
|
}
|
|
1618
|
-
function normalize$
|
|
1618
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
1619
1619
|
return input;
|
|
1620
1620
|
}
|
|
1621
|
-
const select$
|
|
1621
|
+
const select$w = function BookSlotChainOutputRepresentationSelect() {
|
|
1622
1622
|
return {
|
|
1623
1623
|
kind: 'Fragment',
|
|
1624
|
-
version: VERSION$
|
|
1624
|
+
version: VERSION$i,
|
|
1625
1625
|
private: [],
|
|
1626
1626
|
selections: [
|
|
1627
1627
|
{
|
|
@@ -1651,7 +1651,7 @@ const select$u = function BookSlotChainOutputRepresentationSelect() {
|
|
|
1651
1651
|
]
|
|
1652
1652
|
};
|
|
1653
1653
|
};
|
|
1654
|
-
function equals$
|
|
1654
|
+
function equals$i(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$h(existing, incoming) {
|
|
|
1708
1708
|
}
|
|
1709
1709
|
return true;
|
|
1710
1710
|
}
|
|
1711
|
-
const ingest$
|
|
1711
|
+
const ingest$d = function BookSlotChainOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1712
1712
|
if (process.env.NODE_ENV !== 'production') {
|
|
1713
|
-
const validateError = validate$
|
|
1713
|
+
const validateError = validate$t(input);
|
|
1714
1714
|
if (validateError !== null) {
|
|
1715
1715
|
throw validateError;
|
|
1716
1716
|
}
|
|
1717
1717
|
}
|
|
1718
|
-
const key = keyBuilderFromType$
|
|
1718
|
+
const key = keyBuilderFromType$a(luvio, input);
|
|
1719
1719
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
1720
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1720
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "healthcloud", VERSION$i, RepresentationType$d, equals$i);
|
|
1721
1721
|
return createLink(key);
|
|
1722
1722
|
};
|
|
1723
|
-
function getTypeCacheKeys$
|
|
1723
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
1724
1724
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1725
|
-
const rootKey = keyBuilderFromType$
|
|
1725
|
+
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
1726
1726
|
rootKeySet.set(rootKey, {
|
|
1727
1727
|
namespace: keyPrefix,
|
|
1728
|
-
representationName: RepresentationType$
|
|
1728
|
+
representationName: RepresentationType$d,
|
|
1729
1729
|
mergeable: false
|
|
1730
1730
|
});
|
|
1731
1731
|
}
|
|
1732
1732
|
|
|
1733
|
-
function select$
|
|
1734
|
-
return select$
|
|
1733
|
+
function select$v(luvio, params) {
|
|
1734
|
+
return select$w();
|
|
1735
1735
|
}
|
|
1736
|
-
function getResponseCacheKeys$
|
|
1737
|
-
getTypeCacheKeys$
|
|
1736
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
1737
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
1738
1738
|
}
|
|
1739
|
-
function ingestSuccess$
|
|
1739
|
+
function ingestSuccess$d(luvio, resourceParams, response) {
|
|
1740
1740
|
const { body } = response;
|
|
1741
|
-
const key = keyBuilderFromType$
|
|
1742
|
-
luvio.storeIngest(key, ingest$
|
|
1741
|
+
const key = keyBuilderFromType$a(luvio, body);
|
|
1742
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
1743
1743
|
const snapshot = luvio.storeLookup({
|
|
1744
1744
|
recordId: key,
|
|
1745
|
-
node: select$
|
|
1745
|
+
node: select$v(),
|
|
1746
1746
|
variables: {},
|
|
1747
1747
|
});
|
|
1748
1748
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1753,7 +1753,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
1753
1753
|
deepFreeze(snapshot.data);
|
|
1754
1754
|
return snapshot;
|
|
1755
1755
|
}
|
|
1756
|
-
function createResourceRequest$
|
|
1756
|
+
function createResourceRequest$d(config) {
|
|
1757
1757
|
const headers = {};
|
|
1758
1758
|
return {
|
|
1759
1759
|
baseUri: '/services/data/v62.0',
|
|
@@ -1767,45 +1767,45 @@ function createResourceRequest$c(config) {
|
|
|
1767
1767
|
};
|
|
1768
1768
|
}
|
|
1769
1769
|
|
|
1770
|
-
const adapterName$
|
|
1770
|
+
const adapterName$d = '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$d, bookSlotChain_ConfigPropertyMetadata);
|
|
1775
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$i(bookSlotChain_ConfigPropertyMetadata);
|
|
1776
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
1777
1777
|
const config = {};
|
|
1778
1778
|
const untrustedConfig_BookSlotChainInput = untrustedConfig.BookSlotChainInput;
|
|
1779
|
-
const referenceBookSlotChainInputRepresentationValidationError = validate$
|
|
1779
|
+
const referenceBookSlotChainInputRepresentationValidationError = validate$u(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$d(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$d(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$d(luvio, config, options) {
|
|
1799
|
+
const resourceParams = createResourceParams$d(config);
|
|
1800
|
+
const request = createResourceRequest$d(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$d(luvio, resourceParams, response);
|
|
1805
1805
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1806
1806
|
}, () => {
|
|
1807
1807
|
const cache = new StoreKeyMap();
|
|
1808
|
-
getResponseCacheKeys$
|
|
1808
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
1809
1809
|
return cache;
|
|
1810
1810
|
});
|
|
1811
1811
|
}, (response) => {
|
|
@@ -1815,16 +1815,16 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
1815
1815
|
}
|
|
1816
1816
|
const bookSlotChainAdapterFactory = (luvio) => {
|
|
1817
1817
|
return function bookSlotChain(untrustedConfig) {
|
|
1818
|
-
const config = validateAdapterConfig$
|
|
1818
|
+
const config = validateAdapterConfig$d(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$d(luvio, config);
|
|
1824
1824
|
};
|
|
1825
1825
|
};
|
|
1826
1826
|
|
|
1827
|
-
function validate$
|
|
1827
|
+
function validate$s(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$o(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$h = "07afa0b60322d98e30127d781f0484ae";
|
|
1870
|
+
function validate$r(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$n(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$c = 'CancelSlotChainOutputRepresentation';
|
|
1929
|
+
function keyBuilder$f(luvio, config) {
|
|
1930
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.isSuccess;
|
|
1931
1931
|
}
|
|
1932
|
-
function keyBuilderFromType$
|
|
1932
|
+
function keyBuilderFromType$9(luvio, object) {
|
|
1933
1933
|
const keyParams = {
|
|
1934
1934
|
isSuccess: object.isSuccess
|
|
1935
1935
|
};
|
|
1936
|
-
return keyBuilder$
|
|
1936
|
+
return keyBuilder$f(luvio, keyParams);
|
|
1937
1937
|
}
|
|
1938
|
-
function normalize$
|
|
1938
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
1939
1939
|
return input;
|
|
1940
1940
|
}
|
|
1941
|
-
const select$
|
|
1941
|
+
const select$u = function CancelSlotChainOutputRepresentationSelect() {
|
|
1942
1942
|
return {
|
|
1943
1943
|
kind: 'Fragment',
|
|
1944
|
-
version: VERSION$
|
|
1944
|
+
version: VERSION$h,
|
|
1945
1945
|
private: [],
|
|
1946
1946
|
selections: [
|
|
1947
1947
|
{
|
|
@@ -1965,7 +1965,7 @@ const select$s = function CancelSlotChainOutputRepresentationSelect() {
|
|
|
1965
1965
|
]
|
|
1966
1966
|
};
|
|
1967
1967
|
};
|
|
1968
|
-
function equals$
|
|
1968
|
+
function equals$h(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$g(existing, incoming) {
|
|
|
2001
2001
|
}
|
|
2002
2002
|
return true;
|
|
2003
2003
|
}
|
|
2004
|
-
const ingest$
|
|
2004
|
+
const ingest$c = function CancelSlotChainOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2005
2005
|
if (process.env.NODE_ENV !== 'production') {
|
|
2006
|
-
const validateError = validate$
|
|
2006
|
+
const validateError = validate$r(input);
|
|
2007
2007
|
if (validateError !== null) {
|
|
2008
2008
|
throw validateError;
|
|
2009
2009
|
}
|
|
2010
2010
|
}
|
|
2011
|
-
const key = keyBuilderFromType$
|
|
2011
|
+
const key = keyBuilderFromType$9(luvio, input);
|
|
2012
2012
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
2013
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2013
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "healthcloud", VERSION$h, RepresentationType$c, equals$h);
|
|
2014
2014
|
return createLink(key);
|
|
2015
2015
|
};
|
|
2016
|
-
function getTypeCacheKeys$
|
|
2016
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
2017
2017
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2018
|
-
const rootKey = keyBuilderFromType$
|
|
2018
|
+
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
2019
2019
|
rootKeySet.set(rootKey, {
|
|
2020
2020
|
namespace: keyPrefix,
|
|
2021
|
-
representationName: RepresentationType$
|
|
2021
|
+
representationName: RepresentationType$c,
|
|
2022
2022
|
mergeable: false
|
|
2023
2023
|
});
|
|
2024
2024
|
}
|
|
2025
2025
|
|
|
2026
|
-
function select$
|
|
2027
|
-
return select$
|
|
2026
|
+
function select$t(luvio, params) {
|
|
2027
|
+
return select$u();
|
|
2028
2028
|
}
|
|
2029
|
-
function getResponseCacheKeys$
|
|
2030
|
-
getTypeCacheKeys$
|
|
2029
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
2030
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
2031
2031
|
}
|
|
2032
|
-
function ingestSuccess$
|
|
2032
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
2033
2033
|
const { body } = response;
|
|
2034
|
-
const key = keyBuilderFromType$
|
|
2035
|
-
luvio.storeIngest(key, ingest$
|
|
2034
|
+
const key = keyBuilderFromType$9(luvio, body);
|
|
2035
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
2036
2036
|
const snapshot = luvio.storeLookup({
|
|
2037
2037
|
recordId: key,
|
|
2038
|
-
node: select$
|
|
2038
|
+
node: select$t(),
|
|
2039
2039
|
variables: {},
|
|
2040
2040
|
});
|
|
2041
2041
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2046,7 +2046,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
2046
2046
|
deepFreeze(snapshot.data);
|
|
2047
2047
|
return snapshot;
|
|
2048
2048
|
}
|
|
2049
|
-
function createResourceRequest$
|
|
2049
|
+
function createResourceRequest$c(config) {
|
|
2050
2050
|
const headers = {};
|
|
2051
2051
|
return {
|
|
2052
2052
|
baseUri: '/services/data/v62.0',
|
|
@@ -2060,45 +2060,45 @@ function createResourceRequest$b(config) {
|
|
|
2060
2060
|
};
|
|
2061
2061
|
}
|
|
2062
2062
|
|
|
2063
|
-
const adapterName$
|
|
2063
|
+
const adapterName$c = '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$c, cancelSlotChain_ConfigPropertyMetadata);
|
|
2068
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$i(cancelSlotChain_ConfigPropertyMetadata);
|
|
2069
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
2070
2070
|
const config = {};
|
|
2071
2071
|
const untrustedConfig_CancelSlotChainInput = untrustedConfig.CancelSlotChainInput;
|
|
2072
|
-
const referenceCancelSlotChainInputRepresentationValidationError = validate$
|
|
2072
|
+
const referenceCancelSlotChainInputRepresentationValidationError = validate$s(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$c(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$c(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$c(luvio, config, options) {
|
|
2092
|
+
const resourceParams = createResourceParams$c(config);
|
|
2093
|
+
const request = createResourceRequest$c(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$c(luvio, resourceParams, response);
|
|
2098
2098
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2099
2099
|
}, () => {
|
|
2100
2100
|
const cache = new StoreKeyMap();
|
|
2101
|
-
getResponseCacheKeys$
|
|
2101
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
2102
2102
|
return cache;
|
|
2103
2103
|
});
|
|
2104
2104
|
}, (response) => {
|
|
@@ -2108,17 +2108,17 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
2108
2108
|
}
|
|
2109
2109
|
const cancelSlotChainAdapterFactory = (luvio) => {
|
|
2110
2110
|
return function cancelSlotChain(untrustedConfig) {
|
|
2111
|
-
const config = validateAdapterConfig$
|
|
2111
|
+
const config = validateAdapterConfig$c(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$c(luvio, config);
|
|
2117
2117
|
};
|
|
2118
2118
|
};
|
|
2119
2119
|
|
|
2120
|
-
const VERSION$
|
|
2121
|
-
function validate$
|
|
2120
|
+
const VERSION$g = "24bea45579ca193212b8861df5642516";
|
|
2121
|
+
function validate$q(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$m(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$b = 'WorkTypeLeadTimeOutputRepresentation';
|
|
2182
|
+
function keyBuilder$e(luvio, config) {
|
|
2183
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.isSuccess;
|
|
2184
2184
|
}
|
|
2185
|
-
function keyBuilderFromType$
|
|
2185
|
+
function keyBuilderFromType$8(luvio, object) {
|
|
2186
2186
|
const keyParams = {
|
|
2187
2187
|
isSuccess: object.isSuccess
|
|
2188
2188
|
};
|
|
2189
|
-
return keyBuilder$
|
|
2189
|
+
return keyBuilder$e(luvio, keyParams);
|
|
2190
2190
|
}
|
|
2191
|
-
function normalize$
|
|
2191
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
2192
2192
|
return input;
|
|
2193
2193
|
}
|
|
2194
|
-
const select$
|
|
2194
|
+
const select$s = function WorkTypeLeadTimeOutputRepresentationSelect() {
|
|
2195
2195
|
return {
|
|
2196
2196
|
kind: 'Fragment',
|
|
2197
|
-
version: VERSION$
|
|
2197
|
+
version: VERSION$g,
|
|
2198
2198
|
private: [],
|
|
2199
2199
|
selections: [
|
|
2200
2200
|
{
|
|
@@ -2218,7 +2218,7 @@ const select$q = function WorkTypeLeadTimeOutputRepresentationSelect() {
|
|
|
2218
2218
|
]
|
|
2219
2219
|
};
|
|
2220
2220
|
};
|
|
2221
|
-
function equals$
|
|
2221
|
+
function equals$g(existing, incoming) {
|
|
2222
2222
|
const existing_isSuccess = existing.isSuccess;
|
|
2223
2223
|
const incoming_isSuccess = incoming.isSuccess;
|
|
2224
2224
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -2254,9 +2254,245 @@ function equals$f(existing, incoming) {
|
|
|
2254
2254
|
}
|
|
2255
2255
|
return true;
|
|
2256
2256
|
}
|
|
2257
|
-
const ingest$
|
|
2257
|
+
const ingest$b = function WorkTypeLeadTimeOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2258
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2259
|
+
const validateError = validate$q(input);
|
|
2260
|
+
if (validateError !== null) {
|
|
2261
|
+
throw validateError;
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
2264
|
+
const key = keyBuilderFromType$8(luvio, input);
|
|
2265
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
2266
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "healthcloud", VERSION$g, RepresentationType$b, equals$g);
|
|
2267
|
+
return createLink(key);
|
|
2268
|
+
};
|
|
2269
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
2270
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2271
|
+
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
2272
|
+
rootKeySet.set(rootKey, {
|
|
2273
|
+
namespace: keyPrefix,
|
|
2274
|
+
representationName: RepresentationType$b,
|
|
2275
|
+
mergeable: false
|
|
2276
|
+
});
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
function select$r(luvio, params) {
|
|
2280
|
+
return select$s();
|
|
2281
|
+
}
|
|
2282
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
2283
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
2284
|
+
}
|
|
2285
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
2286
|
+
const { body } = response;
|
|
2287
|
+
const key = keyBuilderFromType$8(luvio, body);
|
|
2288
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
2289
|
+
const snapshot = luvio.storeLookup({
|
|
2290
|
+
recordId: key,
|
|
2291
|
+
node: select$r(),
|
|
2292
|
+
variables: {},
|
|
2293
|
+
});
|
|
2294
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2295
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
2296
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
deepFreeze(snapshot.data);
|
|
2300
|
+
return snapshot;
|
|
2301
|
+
}
|
|
2302
|
+
function createResourceRequest$b(config) {
|
|
2303
|
+
const headers = {};
|
|
2304
|
+
return {
|
|
2305
|
+
baseUri: '/services/data/v62.0',
|
|
2306
|
+
basePath: '/connect/health/advanced-therapy-management/worktype-leadtime',
|
|
2307
|
+
method: 'post',
|
|
2308
|
+
body: config.body,
|
|
2309
|
+
urlParams: {},
|
|
2310
|
+
queryParams: {},
|
|
2311
|
+
headers,
|
|
2312
|
+
priority: 'normal',
|
|
2313
|
+
};
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
const adapterName$b = 'workTypeLeadTime';
|
|
2317
|
+
const workTypeLeadTime_ConfigPropertyMetadata = [
|
|
2318
|
+
generateParamConfigMetadata('contextId', false, 2 /* Body */, 0 /* String */),
|
|
2319
|
+
generateParamConfigMetadata('priority', false, 2 /* Body */, 3 /* Integer */),
|
|
2320
|
+
generateParamConfigMetadata('workProcedureId', true, 2 /* Body */, 0 /* String */),
|
|
2321
|
+
];
|
|
2322
|
+
const workTypeLeadTime_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, workTypeLeadTime_ConfigPropertyMetadata);
|
|
2323
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$i(workTypeLeadTime_ConfigPropertyMetadata);
|
|
2324
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
2325
|
+
const config = {};
|
|
2326
|
+
typeCheckConfig$i(untrustedConfig, config, workTypeLeadTime_ConfigPropertyMetadata);
|
|
2327
|
+
return config;
|
|
2328
|
+
}
|
|
2329
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
2330
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
2331
|
+
return null;
|
|
2332
|
+
}
|
|
2333
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2334
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
2335
|
+
}
|
|
2336
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
2337
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2338
|
+
return null;
|
|
2339
|
+
}
|
|
2340
|
+
return config;
|
|
2341
|
+
}
|
|
2342
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
2343
|
+
const resourceParams = createResourceParams$b(config);
|
|
2344
|
+
const request = createResourceRequest$b(resourceParams);
|
|
2345
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
2346
|
+
.then((response) => {
|
|
2347
|
+
return luvio.handleSuccessResponse(() => {
|
|
2348
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
2349
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
2350
|
+
}, () => {
|
|
2351
|
+
const cache = new StoreKeyMap();
|
|
2352
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
2353
|
+
return cache;
|
|
2354
|
+
});
|
|
2355
|
+
}, (response) => {
|
|
2356
|
+
deepFreeze(response);
|
|
2357
|
+
throw response;
|
|
2358
|
+
});
|
|
2359
|
+
}
|
|
2360
|
+
const workTypeLeadTimeAdapterFactory = (luvio) => {
|
|
2361
|
+
return function workTypeLeadTime(untrustedConfig) {
|
|
2362
|
+
const config = validateAdapterConfig$b(untrustedConfig, workTypeLeadTime_ConfigPropertyNames);
|
|
2363
|
+
// Invalid or incomplete config
|
|
2364
|
+
if (config === null) {
|
|
2365
|
+
throw new Error('Invalid config for "workTypeLeadTime"');
|
|
2366
|
+
}
|
|
2367
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
2368
|
+
};
|
|
2369
|
+
};
|
|
2370
|
+
|
|
2371
|
+
const VERSION$f = "573fa398c8d34b55ba0ce883f491b329";
|
|
2372
|
+
function validate$p(obj, path = 'SlotChainValidationOutputRepresentation') {
|
|
2373
|
+
const v_error = (() => {
|
|
2374
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2375
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2376
|
+
}
|
|
2377
|
+
const obj_code = obj.code;
|
|
2378
|
+
const path_code = path + '.code';
|
|
2379
|
+
if (typeof obj_code !== 'string') {
|
|
2380
|
+
return new TypeError('Expected "string" but received "' + typeof obj_code + '" (at "' + path_code + '")');
|
|
2381
|
+
}
|
|
2382
|
+
const obj_isSlotChainValid = obj.isSlotChainValid;
|
|
2383
|
+
const path_isSlotChainValid = path + '.isSlotChainValid';
|
|
2384
|
+
if (typeof obj_isSlotChainValid !== 'boolean') {
|
|
2385
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSlotChainValid + '" (at "' + path_isSlotChainValid + '")');
|
|
2386
|
+
}
|
|
2387
|
+
const obj_isSuccess = obj.isSuccess;
|
|
2388
|
+
const path_isSuccess = path + '.isSuccess';
|
|
2389
|
+
if (typeof obj_isSuccess !== 'boolean') {
|
|
2390
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
2391
|
+
}
|
|
2392
|
+
if (obj.message !== undefined) {
|
|
2393
|
+
const obj_message = obj.message;
|
|
2394
|
+
const path_message = path + '.message';
|
|
2395
|
+
let obj_message_union0 = null;
|
|
2396
|
+
const obj_message_union0_error = (() => {
|
|
2397
|
+
if (typeof obj_message !== 'string') {
|
|
2398
|
+
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
2399
|
+
}
|
|
2400
|
+
})();
|
|
2401
|
+
if (obj_message_union0_error != null) {
|
|
2402
|
+
obj_message_union0 = obj_message_union0_error.message;
|
|
2403
|
+
}
|
|
2404
|
+
let obj_message_union1 = null;
|
|
2405
|
+
const obj_message_union1_error = (() => {
|
|
2406
|
+
if (obj_message !== null) {
|
|
2407
|
+
return new TypeError('Expected "null" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
2408
|
+
}
|
|
2409
|
+
})();
|
|
2410
|
+
if (obj_message_union1_error != null) {
|
|
2411
|
+
obj_message_union1 = obj_message_union1_error.message;
|
|
2412
|
+
}
|
|
2413
|
+
if (obj_message_union0 && obj_message_union1) {
|
|
2414
|
+
let message = 'Object doesn\'t match union (at "' + path_message + '")';
|
|
2415
|
+
message += '\n' + obj_message_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2416
|
+
message += '\n' + obj_message_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2417
|
+
return new TypeError(message);
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
})();
|
|
2421
|
+
return v_error === undefined ? null : v_error;
|
|
2422
|
+
}
|
|
2423
|
+
const RepresentationType$a = 'SlotChainValidationOutputRepresentation';
|
|
2424
|
+
function keyBuilder$d(luvio, config) {
|
|
2425
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.isSuccess;
|
|
2426
|
+
}
|
|
2427
|
+
function keyBuilderFromType$7(luvio, object) {
|
|
2428
|
+
const keyParams = {
|
|
2429
|
+
isSuccess: object.isSuccess
|
|
2430
|
+
};
|
|
2431
|
+
return keyBuilder$d(luvio, keyParams);
|
|
2432
|
+
}
|
|
2433
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
2434
|
+
return input;
|
|
2435
|
+
}
|
|
2436
|
+
const select$q = function SlotChainValidationOutputRepresentationSelect() {
|
|
2437
|
+
return {
|
|
2438
|
+
kind: 'Fragment',
|
|
2439
|
+
version: VERSION$f,
|
|
2440
|
+
private: [],
|
|
2441
|
+
selections: [
|
|
2442
|
+
{
|
|
2443
|
+
name: 'code',
|
|
2444
|
+
kind: 'Scalar'
|
|
2445
|
+
},
|
|
2446
|
+
{
|
|
2447
|
+
name: 'isSlotChainValid',
|
|
2448
|
+
kind: 'Scalar'
|
|
2449
|
+
},
|
|
2450
|
+
{
|
|
2451
|
+
name: 'isSuccess',
|
|
2452
|
+
kind: 'Scalar'
|
|
2453
|
+
},
|
|
2454
|
+
{
|
|
2455
|
+
name: 'message',
|
|
2456
|
+
kind: 'Scalar',
|
|
2457
|
+
required: false
|
|
2458
|
+
}
|
|
2459
|
+
]
|
|
2460
|
+
};
|
|
2461
|
+
};
|
|
2462
|
+
function equals$f(existing, incoming) {
|
|
2463
|
+
const existing_isSlotChainValid = existing.isSlotChainValid;
|
|
2464
|
+
const incoming_isSlotChainValid = incoming.isSlotChainValid;
|
|
2465
|
+
if (!(existing_isSlotChainValid === incoming_isSlotChainValid)) {
|
|
2466
|
+
return false;
|
|
2467
|
+
}
|
|
2468
|
+
const existing_isSuccess = existing.isSuccess;
|
|
2469
|
+
const incoming_isSuccess = incoming.isSuccess;
|
|
2470
|
+
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
2471
|
+
return false;
|
|
2472
|
+
}
|
|
2473
|
+
const existing_code = existing.code;
|
|
2474
|
+
const incoming_code = incoming.code;
|
|
2475
|
+
if (!(existing_code === incoming_code)) {
|
|
2476
|
+
return false;
|
|
2477
|
+
}
|
|
2478
|
+
const existing_message = existing.message;
|
|
2479
|
+
const incoming_message = incoming.message;
|
|
2480
|
+
// if at least one of these optionals is defined
|
|
2481
|
+
if (existing_message !== undefined || incoming_message !== undefined) {
|
|
2482
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2483
|
+
// not equal
|
|
2484
|
+
if (existing_message === undefined || incoming_message === undefined) {
|
|
2485
|
+
return false;
|
|
2486
|
+
}
|
|
2487
|
+
if (!(existing_message === incoming_message)) {
|
|
2488
|
+
return false;
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
return true;
|
|
2492
|
+
}
|
|
2493
|
+
const ingest$a = function SlotChainValidationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2258
2494
|
if (process.env.NODE_ENV !== 'production') {
|
|
2259
|
-
const validateError = validate$
|
|
2495
|
+
const validateError = validate$p(input);
|
|
2260
2496
|
if (validateError !== null) {
|
|
2261
2497
|
throw validateError;
|
|
2262
2498
|
}
|
|
@@ -2303,7 +2539,7 @@ function createResourceRequest$a(config) {
|
|
|
2303
2539
|
const headers = {};
|
|
2304
2540
|
return {
|
|
2305
2541
|
baseUri: '/services/data/v62.0',
|
|
2306
|
-
basePath: '/connect/health/advanced-therapy-management/
|
|
2542
|
+
basePath: '/connect/health/advanced-therapy-management/validate-slot-chain',
|
|
2307
2543
|
method: 'post',
|
|
2308
2544
|
body: config.body,
|
|
2309
2545
|
urlParams: {},
|
|
@@ -2313,17 +2549,30 @@ function createResourceRequest$a(config) {
|
|
|
2313
2549
|
};
|
|
2314
2550
|
}
|
|
2315
2551
|
|
|
2316
|
-
const adapterName$a = '
|
|
2317
|
-
const
|
|
2552
|
+
const adapterName$a = 'validateSlotChain';
|
|
2553
|
+
const validateSlotChain_ConfigPropertyMetadata = [
|
|
2318
2554
|
generateParamConfigMetadata('contextId', false, 2 /* Body */, 0 /* String */),
|
|
2319
|
-
generateParamConfigMetadata('
|
|
2320
|
-
generateParamConfigMetadata('
|
|
2555
|
+
generateParamConfigMetadata('workProcedureId', false, 2 /* Body */, 0 /* String */),
|
|
2556
|
+
generateParamConfigMetadata('slots', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2557
|
+
generateParamConfigMetadata('siteId', false, 2 /* Body */, 0 /* String */),
|
|
2321
2558
|
];
|
|
2322
|
-
const
|
|
2323
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
2559
|
+
const validateSlotChain_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, validateSlotChain_ConfigPropertyMetadata);
|
|
2560
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$i(validateSlotChain_ConfigPropertyMetadata);
|
|
2324
2561
|
function typeCheckConfig$a(untrustedConfig) {
|
|
2325
2562
|
const config = {};
|
|
2326
|
-
typeCheckConfig$
|
|
2563
|
+
typeCheckConfig$i(untrustedConfig, config, validateSlotChain_ConfigPropertyMetadata);
|
|
2564
|
+
const untrustedConfig_slots = untrustedConfig.slots;
|
|
2565
|
+
if (ArrayIsArray$1(untrustedConfig_slots)) {
|
|
2566
|
+
const untrustedConfig_slots_array = [];
|
|
2567
|
+
for (let i = 0, arrayLength = untrustedConfig_slots.length; i < arrayLength; i++) {
|
|
2568
|
+
const untrustedConfig_slots_item = untrustedConfig_slots[i];
|
|
2569
|
+
const referenceSlotInputRepresentationValidationError = validate$v(untrustedConfig_slots_item);
|
|
2570
|
+
if (referenceSlotInputRepresentationValidationError === null) {
|
|
2571
|
+
untrustedConfig_slots_array.push(untrustedConfig_slots_item);
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
config.slots = untrustedConfig_slots_array;
|
|
2575
|
+
}
|
|
2327
2576
|
return config;
|
|
2328
2577
|
}
|
|
2329
2578
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -2357,19 +2606,134 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
2357
2606
|
throw response;
|
|
2358
2607
|
});
|
|
2359
2608
|
}
|
|
2360
|
-
const
|
|
2361
|
-
return function
|
|
2362
|
-
const config = validateAdapterConfig$a(untrustedConfig,
|
|
2609
|
+
const validateSlotChainAdapterFactory = (luvio) => {
|
|
2610
|
+
return function validateSlotChain(untrustedConfig) {
|
|
2611
|
+
const config = validateAdapterConfig$a(untrustedConfig, validateSlotChain_ConfigPropertyNames);
|
|
2363
2612
|
// Invalid or incomplete config
|
|
2364
2613
|
if (config === null) {
|
|
2365
|
-
throw new Error('Invalid config for "
|
|
2614
|
+
throw new Error('Invalid config for "validateSlotChain"');
|
|
2366
2615
|
}
|
|
2367
2616
|
return buildNetworkSnapshot$a(luvio, config);
|
|
2368
2617
|
};
|
|
2369
2618
|
};
|
|
2370
2619
|
|
|
2371
|
-
|
|
2372
|
-
|
|
2620
|
+
function validate$o(obj, path = 'TaskValuesInputRepresentation') {
|
|
2621
|
+
const v_error = (() => {
|
|
2622
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2623
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2624
|
+
}
|
|
2625
|
+
if (obj.assignedToId !== undefined) {
|
|
2626
|
+
const obj_assignedToId = obj.assignedToId;
|
|
2627
|
+
const path_assignedToId = path + '.assignedToId';
|
|
2628
|
+
if (typeof obj_assignedToId !== 'string') {
|
|
2629
|
+
return new TypeError('Expected "string" but received "' + typeof obj_assignedToId + '" (at "' + path_assignedToId + '")');
|
|
2630
|
+
}
|
|
2631
|
+
}
|
|
2632
|
+
if (obj.isRequired !== undefined) {
|
|
2633
|
+
const obj_isRequired = obj.isRequired;
|
|
2634
|
+
const path_isRequired = path + '.isRequired';
|
|
2635
|
+
if (typeof obj_isRequired !== 'boolean') {
|
|
2636
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isRequired + '" (at "' + path_isRequired + '")');
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
if (obj.taskSubject !== undefined) {
|
|
2640
|
+
const obj_taskSubject = obj.taskSubject;
|
|
2641
|
+
const path_taskSubject = path + '.taskSubject';
|
|
2642
|
+
if (typeof obj_taskSubject !== 'string') {
|
|
2643
|
+
return new TypeError('Expected "string" but received "' + typeof obj_taskSubject + '" (at "' + path_taskSubject + '")');
|
|
2644
|
+
}
|
|
2645
|
+
}
|
|
2646
|
+
if (obj.workOrderStepId !== undefined) {
|
|
2647
|
+
const obj_workOrderStepId = obj.workOrderStepId;
|
|
2648
|
+
const path_workOrderStepId = path + '.workOrderStepId';
|
|
2649
|
+
if (typeof obj_workOrderStepId !== 'string') {
|
|
2650
|
+
return new TypeError('Expected "string" but received "' + typeof obj_workOrderStepId + '" (at "' + path_workOrderStepId + '")');
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
})();
|
|
2654
|
+
return v_error === undefined ? null : v_error;
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
function validate$n(obj, path = 'TemplateTaskValuesInputRepresentation') {
|
|
2658
|
+
const v_error = (() => {
|
|
2659
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2660
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2661
|
+
}
|
|
2662
|
+
if (obj.aptItemIds !== undefined) {
|
|
2663
|
+
const obj_aptItemIds = obj.aptItemIds;
|
|
2664
|
+
const path_aptItemIds = path + '.aptItemIds';
|
|
2665
|
+
if (!ArrayIsArray(obj_aptItemIds)) {
|
|
2666
|
+
return new TypeError('Expected "array" but received "' + typeof obj_aptItemIds + '" (at "' + path_aptItemIds + '")');
|
|
2667
|
+
}
|
|
2668
|
+
for (let i = 0; i < obj_aptItemIds.length; i++) {
|
|
2669
|
+
const obj_aptItemIds_item = obj_aptItemIds[i];
|
|
2670
|
+
const path_aptItemIds_item = path_aptItemIds + '[' + i + ']';
|
|
2671
|
+
if (typeof obj_aptItemIds_item !== 'string') {
|
|
2672
|
+
return new TypeError('Expected "string" but received "' + typeof obj_aptItemIds_item + '" (at "' + path_aptItemIds_item + '")');
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2675
|
+
}
|
|
2676
|
+
if (obj.aptVersionId !== undefined) {
|
|
2677
|
+
const obj_aptVersionId = obj.aptVersionId;
|
|
2678
|
+
const path_aptVersionId = path + '.aptVersionId';
|
|
2679
|
+
if (typeof obj_aptVersionId !== 'string') {
|
|
2680
|
+
return new TypeError('Expected "string" but received "' + typeof obj_aptVersionId + '" (at "' + path_aptVersionId + '")');
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
if (obj.workOrderStepId !== undefined) {
|
|
2684
|
+
const obj_workOrderStepId = obj.workOrderStepId;
|
|
2685
|
+
const path_workOrderStepId = path + '.workOrderStepId';
|
|
2686
|
+
if (typeof obj_workOrderStepId !== 'string') {
|
|
2687
|
+
return new TypeError('Expected "string" but received "' + typeof obj_workOrderStepId + '" (at "' + path_workOrderStepId + '")');
|
|
2688
|
+
}
|
|
2689
|
+
}
|
|
2690
|
+
})();
|
|
2691
|
+
return v_error === undefined ? null : v_error;
|
|
2692
|
+
}
|
|
2693
|
+
|
|
2694
|
+
function validate$m(obj, path = 'AdhocTasksAtmInputRepresentation') {
|
|
2695
|
+
const v_error = (() => {
|
|
2696
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2697
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2698
|
+
}
|
|
2699
|
+
const obj_taskCreationMode = obj.taskCreationMode;
|
|
2700
|
+
const path_taskCreationMode = path + '.taskCreationMode';
|
|
2701
|
+
if (typeof obj_taskCreationMode !== 'string') {
|
|
2702
|
+
return new TypeError('Expected "string" but received "' + typeof obj_taskCreationMode + '" (at "' + path_taskCreationMode + '")');
|
|
2703
|
+
}
|
|
2704
|
+
if (obj.tasks !== undefined) {
|
|
2705
|
+
const obj_tasks = obj.tasks;
|
|
2706
|
+
const path_tasks = path + '.tasks';
|
|
2707
|
+
if (!ArrayIsArray(obj_tasks)) {
|
|
2708
|
+
return new TypeError('Expected "array" but received "' + typeof obj_tasks + '" (at "' + path_tasks + '")');
|
|
2709
|
+
}
|
|
2710
|
+
for (let i = 0; i < obj_tasks.length; i++) {
|
|
2711
|
+
const obj_tasks_item = obj_tasks[i];
|
|
2712
|
+
const path_tasks_item = path_tasks + '[' + i + ']';
|
|
2713
|
+
const referencepath_tasks_itemValidationError = validate$o(obj_tasks_item, path_tasks_item);
|
|
2714
|
+
if (referencepath_tasks_itemValidationError !== null) {
|
|
2715
|
+
let message = 'Object doesn\'t match TaskValuesInputRepresentation (at "' + path_tasks_item + '")\n';
|
|
2716
|
+
message += referencepath_tasks_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2717
|
+
return new TypeError(message);
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2720
|
+
}
|
|
2721
|
+
if (obj.templateTasks !== undefined) {
|
|
2722
|
+
const obj_templateTasks = obj.templateTasks;
|
|
2723
|
+
const path_templateTasks = path + '.templateTasks';
|
|
2724
|
+
const referencepath_templateTasksValidationError = validate$n(obj_templateTasks, path_templateTasks);
|
|
2725
|
+
if (referencepath_templateTasksValidationError !== null) {
|
|
2726
|
+
let message = 'Object doesn\'t match TemplateTaskValuesInputRepresentation (at "' + path_templateTasks + '")\n';
|
|
2727
|
+
message += referencepath_templateTasksValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2728
|
+
return new TypeError(message);
|
|
2729
|
+
}
|
|
2730
|
+
}
|
|
2731
|
+
})();
|
|
2732
|
+
return v_error === undefined ? null : v_error;
|
|
2733
|
+
}
|
|
2734
|
+
|
|
2735
|
+
const VERSION$e = "c9427b5b76347d1c11b1395d1d2fba8c";
|
|
2736
|
+
function validate$l(obj, path = 'AdhocTasksAtmOutputRepresentation') {
|
|
2373
2737
|
const v_error = (() => {
|
|
2374
2738
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2375
2739
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2379,10 +2743,19 @@ function validate$l(obj, path = 'SlotChainValidationOutputRepresentation') {
|
|
|
2379
2743
|
if (typeof obj_code !== 'string') {
|
|
2380
2744
|
return new TypeError('Expected "string" but received "' + typeof obj_code + '" (at "' + path_code + '")');
|
|
2381
2745
|
}
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2746
|
+
if (obj.createdAssessmentTaskIds !== undefined) {
|
|
2747
|
+
const obj_createdAssessmentTaskIds = obj.createdAssessmentTaskIds;
|
|
2748
|
+
const path_createdAssessmentTaskIds = path + '.createdAssessmentTaskIds';
|
|
2749
|
+
if (!ArrayIsArray(obj_createdAssessmentTaskIds)) {
|
|
2750
|
+
return new TypeError('Expected "array" but received "' + typeof obj_createdAssessmentTaskIds + '" (at "' + path_createdAssessmentTaskIds + '")');
|
|
2751
|
+
}
|
|
2752
|
+
for (let i = 0; i < obj_createdAssessmentTaskIds.length; i++) {
|
|
2753
|
+
const obj_createdAssessmentTaskIds_item = obj_createdAssessmentTaskIds[i];
|
|
2754
|
+
const path_createdAssessmentTaskIds_item = path_createdAssessmentTaskIds + '[' + i + ']';
|
|
2755
|
+
if (typeof obj_createdAssessmentTaskIds_item !== 'string') {
|
|
2756
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdAssessmentTaskIds_item + '" (at "' + path_createdAssessmentTaskIds_item + '")');
|
|
2757
|
+
}
|
|
2758
|
+
}
|
|
2386
2759
|
}
|
|
2387
2760
|
const obj_isSuccess = obj.isSuccess;
|
|
2388
2761
|
const path_isSuccess = path + '.isSuccess';
|
|
@@ -2420,7 +2793,7 @@ function validate$l(obj, path = 'SlotChainValidationOutputRepresentation') {
|
|
|
2420
2793
|
})();
|
|
2421
2794
|
return v_error === undefined ? null : v_error;
|
|
2422
2795
|
}
|
|
2423
|
-
const RepresentationType$9 = '
|
|
2796
|
+
const RepresentationType$9 = 'AdhocTasksAtmOutputRepresentation';
|
|
2424
2797
|
function keyBuilder$c(luvio, config) {
|
|
2425
2798
|
return keyPrefix + '::' + RepresentationType$9 + ':' + config.isSuccess;
|
|
2426
2799
|
}
|
|
@@ -2433,7 +2806,7 @@ function keyBuilderFromType$6(luvio, object) {
|
|
|
2433
2806
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
2434
2807
|
return input;
|
|
2435
2808
|
}
|
|
2436
|
-
const select$o = function
|
|
2809
|
+
const select$o = function AdhocTasksAtmOutputRepresentationSelect() {
|
|
2437
2810
|
return {
|
|
2438
2811
|
kind: 'Fragment',
|
|
2439
2812
|
version: VERSION$e,
|
|
@@ -2444,8 +2817,10 @@ const select$o = function SlotChainValidationOutputRepresentationSelect() {
|
|
|
2444
2817
|
kind: 'Scalar'
|
|
2445
2818
|
},
|
|
2446
2819
|
{
|
|
2447
|
-
name: '
|
|
2448
|
-
kind: 'Scalar'
|
|
2820
|
+
name: 'createdAssessmentTaskIds',
|
|
2821
|
+
kind: 'Scalar',
|
|
2822
|
+
plural: true,
|
|
2823
|
+
required: false
|
|
2449
2824
|
},
|
|
2450
2825
|
{
|
|
2451
2826
|
name: 'isSuccess',
|
|
@@ -2460,11 +2835,6 @@ const select$o = function SlotChainValidationOutputRepresentationSelect() {
|
|
|
2460
2835
|
};
|
|
2461
2836
|
};
|
|
2462
2837
|
function equals$e(existing, incoming) {
|
|
2463
|
-
const existing_isSlotChainValid = existing.isSlotChainValid;
|
|
2464
|
-
const incoming_isSlotChainValid = incoming.isSlotChainValid;
|
|
2465
|
-
if (!(existing_isSlotChainValid === incoming_isSlotChainValid)) {
|
|
2466
|
-
return false;
|
|
2467
|
-
}
|
|
2468
2838
|
const existing_isSuccess = existing.isSuccess;
|
|
2469
2839
|
const incoming_isSuccess = incoming.isSuccess;
|
|
2470
2840
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -2475,6 +2845,24 @@ function equals$e(existing, incoming) {
|
|
|
2475
2845
|
if (!(existing_code === incoming_code)) {
|
|
2476
2846
|
return false;
|
|
2477
2847
|
}
|
|
2848
|
+
const existing_createdAssessmentTaskIds = existing.createdAssessmentTaskIds;
|
|
2849
|
+
const incoming_createdAssessmentTaskIds = incoming.createdAssessmentTaskIds;
|
|
2850
|
+
// if at least one of these optionals is defined
|
|
2851
|
+
if (existing_createdAssessmentTaskIds !== undefined || incoming_createdAssessmentTaskIds !== undefined) {
|
|
2852
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2853
|
+
// not equal
|
|
2854
|
+
if (existing_createdAssessmentTaskIds === undefined || incoming_createdAssessmentTaskIds === undefined) {
|
|
2855
|
+
return false;
|
|
2856
|
+
}
|
|
2857
|
+
const equals_createdAssessmentTaskIds_items = equalsArray(existing_createdAssessmentTaskIds, incoming_createdAssessmentTaskIds, (existing_createdAssessmentTaskIds_item, incoming_createdAssessmentTaskIds_item) => {
|
|
2858
|
+
if (!(existing_createdAssessmentTaskIds_item === incoming_createdAssessmentTaskIds_item)) {
|
|
2859
|
+
return false;
|
|
2860
|
+
}
|
|
2861
|
+
});
|
|
2862
|
+
if (equals_createdAssessmentTaskIds_items === false) {
|
|
2863
|
+
return false;
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2478
2866
|
const existing_message = existing.message;
|
|
2479
2867
|
const incoming_message = incoming.message;
|
|
2480
2868
|
// if at least one of these optionals is defined
|
|
@@ -2490,7 +2878,7 @@ function equals$e(existing, incoming) {
|
|
|
2490
2878
|
}
|
|
2491
2879
|
return true;
|
|
2492
2880
|
}
|
|
2493
|
-
const ingest$9 = function
|
|
2881
|
+
const ingest$9 = function AdhocTasksAtmOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2494
2882
|
if (process.env.NODE_ENV !== 'production') {
|
|
2495
2883
|
const validateError = validate$l(input);
|
|
2496
2884
|
if (validateError !== null) {
|
|
@@ -2539,7 +2927,7 @@ function createResourceRequest$9(config) {
|
|
|
2539
2927
|
const headers = {};
|
|
2540
2928
|
return {
|
|
2541
2929
|
baseUri: '/services/data/v62.0',
|
|
2542
|
-
basePath: '/connect/health/advanced-therapy-management/
|
|
2930
|
+
basePath: '/connect/health/advanced-therapy-management/adhoc-tasks-atm',
|
|
2543
2931
|
method: 'post',
|
|
2544
2932
|
body: config.body,
|
|
2545
2933
|
urlParams: {},
|
|
@@ -2549,29 +2937,18 @@ function createResourceRequest$9(config) {
|
|
|
2549
2937
|
};
|
|
2550
2938
|
}
|
|
2551
2939
|
|
|
2552
|
-
const adapterName$9 = '
|
|
2553
|
-
const
|
|
2554
|
-
generateParamConfigMetadata('
|
|
2555
|
-
generateParamConfigMetadata('workProcedureId', false, 2 /* Body */, 0 /* String */),
|
|
2556
|
-
generateParamConfigMetadata('slots', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2557
|
-
generateParamConfigMetadata('siteId', false, 2 /* Body */, 0 /* String */),
|
|
2940
|
+
const adapterName$9 = 'adhocTasksAtm';
|
|
2941
|
+
const adhocTasksAtm_ConfigPropertyMetadata = [
|
|
2942
|
+
generateParamConfigMetadata('AdhocTasksAtmInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2558
2943
|
];
|
|
2559
|
-
const
|
|
2560
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
2944
|
+
const adhocTasksAtm_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, adhocTasksAtm_ConfigPropertyMetadata);
|
|
2945
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$i(adhocTasksAtm_ConfigPropertyMetadata);
|
|
2561
2946
|
function typeCheckConfig$9(untrustedConfig) {
|
|
2562
2947
|
const config = {};
|
|
2563
|
-
|
|
2564
|
-
const
|
|
2565
|
-
if (
|
|
2566
|
-
|
|
2567
|
-
for (let i = 0, arrayLength = untrustedConfig_slots.length; i < arrayLength; i++) {
|
|
2568
|
-
const untrustedConfig_slots_item = untrustedConfig_slots[i];
|
|
2569
|
-
const referenceSlotInputRepresentationValidationError = validate$r(untrustedConfig_slots_item);
|
|
2570
|
-
if (referenceSlotInputRepresentationValidationError === null) {
|
|
2571
|
-
untrustedConfig_slots_array.push(untrustedConfig_slots_item);
|
|
2572
|
-
}
|
|
2573
|
-
}
|
|
2574
|
-
config.slots = untrustedConfig_slots_array;
|
|
2948
|
+
const untrustedConfig_AdhocTasksAtmInput = untrustedConfig.AdhocTasksAtmInput;
|
|
2949
|
+
const referenceAdhocTasksAtmInputRepresentationValidationError = validate$m(untrustedConfig_AdhocTasksAtmInput);
|
|
2950
|
+
if (referenceAdhocTasksAtmInputRepresentationValidationError === null) {
|
|
2951
|
+
config.AdhocTasksAtmInput = untrustedConfig_AdhocTasksAtmInput;
|
|
2575
2952
|
}
|
|
2576
2953
|
return config;
|
|
2577
2954
|
}
|
|
@@ -2606,12 +2983,12 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
2606
2983
|
throw response;
|
|
2607
2984
|
});
|
|
2608
2985
|
}
|
|
2609
|
-
const
|
|
2610
|
-
return function
|
|
2611
|
-
const config = validateAdapterConfig$9(untrustedConfig,
|
|
2986
|
+
const adhocTasksAtmAdapterFactory = (luvio) => {
|
|
2987
|
+
return function adhocTasksAtm(untrustedConfig) {
|
|
2988
|
+
const config = validateAdapterConfig$9(untrustedConfig, adhocTasksAtm_ConfigPropertyNames);
|
|
2612
2989
|
// Invalid or incomplete config
|
|
2613
2990
|
if (config === null) {
|
|
2614
|
-
throw new Error('Invalid config for "
|
|
2991
|
+
throw new Error('Invalid config for "adhocTasksAtm"');
|
|
2615
2992
|
}
|
|
2616
2993
|
return buildNetworkSnapshot$9(luvio, config);
|
|
2617
2994
|
};
|
|
@@ -2635,7 +3012,7 @@ function validate$k(obj, path = 'RescheduleSlotChainInputRepresentation') {
|
|
|
2635
3012
|
for (let i = 0; i < obj_newSlotsInputRepresentation.length; i++) {
|
|
2636
3013
|
const obj_newSlotsInputRepresentation_item = obj_newSlotsInputRepresentation[i];
|
|
2637
3014
|
const path_newSlotsInputRepresentation_item = path_newSlotsInputRepresentation + '[' + i + ']';
|
|
2638
|
-
const referencepath_newSlotsInputRepresentation_itemValidationError = validate$
|
|
3015
|
+
const referencepath_newSlotsInputRepresentation_itemValidationError = validate$v(obj_newSlotsInputRepresentation_item, path_newSlotsInputRepresentation_item);
|
|
2639
3016
|
if (referencepath_newSlotsInputRepresentation_itemValidationError !== null) {
|
|
2640
3017
|
let message = 'Object doesn\'t match SlotInputRepresentation (at "' + path_newSlotsInputRepresentation_item + '")\n';
|
|
2641
3018
|
message += referencepath_newSlotsInputRepresentation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2938,7 +3315,7 @@ const rescheduleSlotChain_ConfigPropertyMetadata = [
|
|
|
2938
3315
|
generateParamConfigMetadata('RescheduleSlotChainInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2939
3316
|
];
|
|
2940
3317
|
const rescheduleSlotChain_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, rescheduleSlotChain_ConfigPropertyMetadata);
|
|
2941
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
3318
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$i(rescheduleSlotChain_ConfigPropertyMetadata);
|
|
2942
3319
|
function typeCheckConfig$8(untrustedConfig) {
|
|
2943
3320
|
const config = {};
|
|
2944
3321
|
const untrustedConfig_RescheduleSlotChainInput = untrustedConfig.RescheduleSlotChainInput;
|
|
@@ -3211,7 +3588,7 @@ const getWorkTypeServiceTerritories_ConfigPropertyMetadata = [
|
|
|
3211
3588
|
generateParamConfigMetadata('getWorkTypeServiceTerritories', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3212
3589
|
];
|
|
3213
3590
|
const getWorkTypeServiceTerritories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getWorkTypeServiceTerritories_ConfigPropertyMetadata);
|
|
3214
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
3591
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$i(getWorkTypeServiceTerritories_ConfigPropertyMetadata);
|
|
3215
3592
|
function keyBuilder$9(luvio, config) {
|
|
3216
3593
|
const resourceParams = createResourceParams$7(config);
|
|
3217
3594
|
return keyBuilder$a(luvio, resourceParams);
|
|
@@ -3527,7 +3904,7 @@ const moveToNextStep_ConfigPropertyMetadata = [
|
|
|
3527
3904
|
generateParamConfigMetadata('MoveToNextStepInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3528
3905
|
];
|
|
3529
3906
|
const moveToNextStep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, moveToNextStep_ConfigPropertyMetadata);
|
|
3530
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
3907
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$i(moveToNextStep_ConfigPropertyMetadata);
|
|
3531
3908
|
function typeCheckConfig$6(untrustedConfig) {
|
|
3532
3909
|
const config = {};
|
|
3533
3910
|
const untrustedConfig_MoveToNextStepInput = untrustedConfig.MoveToNextStepInput;
|
|
@@ -3941,10 +4318,10 @@ const getQuotasAndAllocation_ConfigPropertyMetadata = [
|
|
|
3941
4318
|
generateParamConfigMetadata('workTypeId', false, 2 /* Body */, 0 /* String */),
|
|
3942
4319
|
];
|
|
3943
4320
|
const getQuotasAndAllocation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getQuotasAndAllocation_ConfigPropertyMetadata);
|
|
3944
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
4321
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$i(getQuotasAndAllocation_ConfigPropertyMetadata);
|
|
3945
4322
|
function typeCheckConfig$5(untrustedConfig) {
|
|
3946
4323
|
const config = {};
|
|
3947
|
-
typeCheckConfig$
|
|
4324
|
+
typeCheckConfig$i(untrustedConfig, config, getQuotasAndAllocation_ConfigPropertyMetadata);
|
|
3948
4325
|
const untrustedConfig_leadTimeMap = untrustedConfig.leadTimeMap;
|
|
3949
4326
|
if (untrustedIsObject(untrustedConfig_leadTimeMap)) {
|
|
3950
4327
|
const untrustedConfig_leadTimeMap_object = {};
|
|
@@ -4207,10 +4584,10 @@ const digitalVerification_ConfigPropertyMetadata = [
|
|
|
4207
4584
|
generateParamConfigMetadata('userCredentials', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4208
4585
|
];
|
|
4209
4586
|
const digitalVerification_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, digitalVerification_ConfigPropertyMetadata);
|
|
4210
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
4587
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$i(digitalVerification_ConfigPropertyMetadata);
|
|
4211
4588
|
function typeCheckConfig$4(untrustedConfig) {
|
|
4212
4589
|
const config = {};
|
|
4213
|
-
typeCheckConfig$
|
|
4590
|
+
typeCheckConfig$i(untrustedConfig, config, digitalVerification_ConfigPropertyMetadata);
|
|
4214
4591
|
const untrustedConfig_digitalVerificationInputFieldsMap = untrustedConfig.digitalVerificationInputFieldsMap;
|
|
4215
4592
|
const referenceDigitalVerificationInputFieldsMapInputRepresentationValidationError = validate$b(untrustedConfig_digitalVerificationInputFieldsMap);
|
|
4216
4593
|
if (referenceDigitalVerificationInputFieldsMapInputRepresentationValidationError === null) {
|
|
@@ -4511,7 +4888,7 @@ const getEntityDetailsInfo_ConfigPropertyMetadata = [
|
|
|
4511
4888
|
generateParamConfigMetadata('fetchEntityDetailsInputParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4512
4889
|
];
|
|
4513
4890
|
const getEntityDetailsInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getEntityDetailsInfo_ConfigPropertyMetadata);
|
|
4514
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
4891
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$i(getEntityDetailsInfo_ConfigPropertyMetadata);
|
|
4515
4892
|
function keyBuilder$4(luvio, config) {
|
|
4516
4893
|
const resourceParams = createResourceParams$3(config);
|
|
4517
4894
|
return keyBuilder$5(luvio, resourceParams);
|
|
@@ -4759,10 +5136,10 @@ const broadcastVisitAssignment_ConfigPropertyMetadata = [
|
|
|
4759
5136
|
generateParamConfigMetadata('startDateTime', true, 2 /* Body */, 0 /* String */),
|
|
4760
5137
|
];
|
|
4761
5138
|
const broadcastVisitAssignment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, broadcastVisitAssignment_ConfigPropertyMetadata);
|
|
4762
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
5139
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$i(broadcastVisitAssignment_ConfigPropertyMetadata);
|
|
4763
5140
|
function typeCheckConfig$2(untrustedConfig) {
|
|
4764
5141
|
const config = {};
|
|
4765
|
-
typeCheckConfig$
|
|
5142
|
+
typeCheckConfig$i(untrustedConfig, config, broadcastVisitAssignment_ConfigPropertyMetadata);
|
|
4766
5143
|
return config;
|
|
4767
5144
|
}
|
|
4768
5145
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -4996,10 +5373,10 @@ const createVisitBroadcast_ConfigPropertyMetadata = [
|
|
|
4996
5373
|
generateParamConfigMetadata('serviceTerritoryIds', true, 2 /* Body */, 0 /* String */, true),
|
|
4997
5374
|
];
|
|
4998
5375
|
const createVisitBroadcast_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createVisitBroadcast_ConfigPropertyMetadata);
|
|
4999
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
5376
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$i(createVisitBroadcast_ConfigPropertyMetadata);
|
|
5000
5377
|
function typeCheckConfig$1(untrustedConfig) {
|
|
5001
5378
|
const config = {};
|
|
5002
|
-
typeCheckConfig$
|
|
5379
|
+
typeCheckConfig$i(untrustedConfig, config, createVisitBroadcast_ConfigPropertyMetadata);
|
|
5003
5380
|
return config;
|
|
5004
5381
|
}
|
|
5005
5382
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -5965,14 +6342,14 @@ const getFlatDataProcessInformation_ConfigPropertyMetadata = [
|
|
|
5965
6342
|
generateParamConfigMetadata('flatDataInformationIds', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5966
6343
|
];
|
|
5967
6344
|
const getFlatDataProcessInformation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getFlatDataProcessInformation_ConfigPropertyMetadata);
|
|
5968
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
6345
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$i(getFlatDataProcessInformation_ConfigPropertyMetadata);
|
|
5969
6346
|
function keyBuilder(luvio, config) {
|
|
5970
6347
|
const resourceParams = createResourceParams(config);
|
|
5971
6348
|
return keyBuilder$1(luvio, resourceParams);
|
|
5972
6349
|
}
|
|
5973
6350
|
function typeCheckConfig(untrustedConfig) {
|
|
5974
6351
|
const config = {};
|
|
5975
|
-
typeCheckConfig$
|
|
6352
|
+
typeCheckConfig$i(untrustedConfig, config, getFlatDataProcessInformation_ConfigPropertyMetadata);
|
|
5976
6353
|
return config;
|
|
5977
6354
|
}
|
|
5978
6355
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -6046,4 +6423,4 @@ const getFlatDataProcessInformationAdapterFactory = (luvio) => function healthcl
|
|
|
6046
6423
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
6047
6424
|
};
|
|
6048
6425
|
|
|
6049
|
-
export { bookSlotChainAdapterFactory, broadcastVisitAssignmentAdapterFactory, cancelSlotChainAdapterFactory, createVisitBroadcastAdapterFactory, digitalVerificationAdapterFactory, genericConnectApiGETAdapterFactory, genericConnectApiPOSTAdapterFactory, getEntityDetailsInfoAdapterFactory, getFlatDataProcessInformationAdapterFactory, getQuotasAndAllocationAdapterFactory, getSlotChainsAdapterFactory, getSlotsAdapterFactory, getWorkTypeServiceTerritoriesAdapterFactory, moveToNextStepAdapterFactory, rescheduleSlotChainAdapterFactory, validateSlotChainAdapterFactory, workTypeLeadTimeAdapterFactory };
|
|
6426
|
+
export { adhocTasksAtmAdapterFactory, bookSlotChainAdapterFactory, broadcastVisitAssignmentAdapterFactory, cancelSlotChainAdapterFactory, createVisitBroadcastAdapterFactory, digitalVerificationAdapterFactory, genericConnectApiGETAdapterFactory, genericConnectApiPOSTAdapterFactory, getEntityDetailsInfoAdapterFactory, getFlatDataProcessInformationAdapterFactory, getQuotasAndAllocationAdapterFactory, getSlotChainsAdapterFactory, getSlotsAdapterFactory, getWorkTypeServiceTerritoriesAdapterFactory, moveToNextStepAdapterFactory, rescheduleSlotChainAdapterFactory, validateSlotChainAdapterFactory, workTypeLeadTimeAdapterFactory };
|