@salesforce/lds-adapters-industries-insuranceclaim 1.428.0-dev1 → 1.428.0-dev10
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-insuranceclaim.js +505 -302
- package/dist/es/es2018/types/src/generated/adapters/BulkPayClaimCoveragePaymentDetail.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/postConnectInsuranceClaimsCoveragesPaymentDetailsBulkPay.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/types/BulkPayClaimCoveragePaymentDetailRep.d.ts +45 -0
- package/dist/es/es2018/types/src/generated/types/BulkPayClaimCvrPaymentDetailInputRep.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/RecordIdsInput.d.ts +28 -0
- package/package.json +3 -3
- package/sfdc/index.js +250 -44
- package/src/raml/api.raml +50 -0
- package/src/raml/luvio.raml +10 -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, StoreKeyMap, createResourceParams as createResourceParams$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$a, typeCheckConfig as typeCheckConfig$a } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -72,7 +72,7 @@ function createLink(ref) {
|
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
function validate$
|
|
75
|
+
function validate$e(obj, path = 'ErrorDetail') {
|
|
76
76
|
const v_error = (() => {
|
|
77
77
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
78
78
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -91,9 +91,9 @@ function validate$c(obj, path = 'ErrorDetail') {
|
|
|
91
91
|
return v_error === undefined ? null : v_error;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
const TTL$
|
|
95
|
-
const VERSION$
|
|
96
|
-
function validate$
|
|
94
|
+
const TTL$9 = 1000;
|
|
95
|
+
const VERSION$9 = "5913e1c0d676a648498b82658ebb40ee";
|
|
96
|
+
function validate$d(obj, path = 'CreateClaimCoveragePaymentDetailRep') {
|
|
97
97
|
const v_error = (() => {
|
|
98
98
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
99
99
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -117,7 +117,7 @@ function validate$b(obj, path = 'CreateClaimCoveragePaymentDetailRep') {
|
|
|
117
117
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
118
118
|
const obj_errors_item = obj_errors[i];
|
|
119
119
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
120
|
-
const referencepath_errors_itemValidationError = validate$
|
|
120
|
+
const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
|
|
121
121
|
if (referencepath_errors_itemValidationError !== null) {
|
|
122
122
|
let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
|
|
123
123
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -154,68 +154,68 @@ function validate$b(obj, path = 'CreateClaimCoveragePaymentDetailRep') {
|
|
|
154
154
|
})();
|
|
155
155
|
return v_error === undefined ? null : v_error;
|
|
156
156
|
}
|
|
157
|
-
const RepresentationType$
|
|
158
|
-
function keyBuilder$
|
|
159
|
-
return keyPrefix + '::' + RepresentationType$
|
|
157
|
+
const RepresentationType$9 = 'CreateClaimCoveragePaymentDetailRep';
|
|
158
|
+
function keyBuilder$9(luvio, config) {
|
|
159
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.isSuccess;
|
|
160
160
|
}
|
|
161
|
-
function keyBuilderFromType$
|
|
161
|
+
function keyBuilderFromType$9(luvio, object) {
|
|
162
162
|
const keyParams = {
|
|
163
163
|
isSuccess: object.isSuccess
|
|
164
164
|
};
|
|
165
|
-
return keyBuilder$
|
|
165
|
+
return keyBuilder$9(luvio, keyParams);
|
|
166
166
|
}
|
|
167
|
-
function normalize$
|
|
167
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
168
168
|
return input;
|
|
169
169
|
}
|
|
170
|
-
const select$
|
|
170
|
+
const select$j = function CreateClaimCoveragePaymentDetailRepSelect() {
|
|
171
171
|
return {
|
|
172
172
|
kind: 'Fragment',
|
|
173
|
-
version: VERSION$
|
|
173
|
+
version: VERSION$9,
|
|
174
174
|
private: [],
|
|
175
175
|
opaque: true
|
|
176
176
|
};
|
|
177
177
|
};
|
|
178
|
-
function equals$
|
|
178
|
+
function equals$9(existing, incoming) {
|
|
179
179
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
180
180
|
return false;
|
|
181
181
|
}
|
|
182
182
|
return true;
|
|
183
183
|
}
|
|
184
|
-
const ingest$
|
|
184
|
+
const ingest$9 = function CreateClaimCoveragePaymentDetailRepIngest(input, path, luvio, store, timestamp) {
|
|
185
185
|
if (process.env.NODE_ENV !== 'production') {
|
|
186
|
-
const validateError = validate$
|
|
186
|
+
const validateError = validate$d(input);
|
|
187
187
|
if (validateError !== null) {
|
|
188
188
|
throw validateError;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
const key = keyBuilderFromType$
|
|
192
|
-
const ttlToUse = TTL$
|
|
193
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
191
|
+
const key = keyBuilderFromType$9(luvio, input);
|
|
192
|
+
const ttlToUse = TTL$9;
|
|
193
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "insuranceclaim", VERSION$9, RepresentationType$9, equals$9);
|
|
194
194
|
return createLink(key);
|
|
195
195
|
};
|
|
196
|
-
function getTypeCacheKeys$
|
|
196
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
197
197
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
198
|
-
const rootKey = keyBuilderFromType$
|
|
198
|
+
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
199
199
|
rootKeySet.set(rootKey, {
|
|
200
200
|
namespace: keyPrefix,
|
|
201
|
-
representationName: RepresentationType$
|
|
201
|
+
representationName: RepresentationType$9,
|
|
202
202
|
mergeable: false
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
function select$
|
|
207
|
-
return select$
|
|
206
|
+
function select$i(luvio, params) {
|
|
207
|
+
return select$j();
|
|
208
208
|
}
|
|
209
|
-
function getResponseCacheKeys$
|
|
210
|
-
getTypeCacheKeys$
|
|
209
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
210
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
211
211
|
}
|
|
212
|
-
function ingestSuccess$
|
|
212
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
213
213
|
const { body } = response;
|
|
214
|
-
const key = keyBuilderFromType$
|
|
215
|
-
luvio.storeIngest(key, ingest$
|
|
214
|
+
const key = keyBuilderFromType$9(luvio, body);
|
|
215
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
216
216
|
const snapshot = luvio.storeLookup({
|
|
217
217
|
recordId: key,
|
|
218
|
-
node: select$
|
|
218
|
+
node: select$i(),
|
|
219
219
|
variables: {},
|
|
220
220
|
});
|
|
221
221
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -226,7 +226,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
226
226
|
deepFreeze(snapshot.data);
|
|
227
227
|
return snapshot;
|
|
228
228
|
}
|
|
229
|
-
function createResourceRequest$
|
|
229
|
+
function createResourceRequest$9(config) {
|
|
230
230
|
const headers = {};
|
|
231
231
|
return {
|
|
232
232
|
baseUri: '/services/data/v67.0',
|
|
@@ -240,7 +240,7 @@ function createResourceRequest$8(config) {
|
|
|
240
240
|
};
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
const adapterName$
|
|
243
|
+
const adapterName$9 = 'CreateClaimCoveragePaymentDetail';
|
|
244
244
|
const CreateClaimCoveragePaymentDetail_ConfigPropertyMetadata = [
|
|
245
245
|
generateParamConfigMetadata('claimId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
246
246
|
generateParamConfigMetadata('coverageId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
@@ -253,39 +253,39 @@ const CreateClaimCoveragePaymentDetail_ConfigPropertyMetadata = [
|
|
|
253
253
|
generateParamConfigMetadata('coveragePaymentType', true, 2 /* Body */, 0 /* String */),
|
|
254
254
|
generateParamConfigMetadata('limitUnitCount', false, 2 /* Body */, 3 /* Integer */),
|
|
255
255
|
];
|
|
256
|
-
const CreateClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
257
|
-
const createResourceParams$
|
|
258
|
-
function typeCheckConfig$
|
|
256
|
+
const CreateClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, CreateClaimCoveragePaymentDetail_ConfigPropertyMetadata);
|
|
257
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$a(CreateClaimCoveragePaymentDetail_ConfigPropertyMetadata);
|
|
258
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
259
259
|
const config = {};
|
|
260
|
-
typeCheckConfig$
|
|
260
|
+
typeCheckConfig$a(untrustedConfig, config, CreateClaimCoveragePaymentDetail_ConfigPropertyMetadata);
|
|
261
261
|
const untrustedConfig_additionalFields = untrustedConfig.additionalFields;
|
|
262
262
|
config.additionalFields = untrustedConfig_additionalFields;
|
|
263
263
|
return config;
|
|
264
264
|
}
|
|
265
|
-
function validateAdapterConfig$
|
|
265
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
266
266
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
267
267
|
return null;
|
|
268
268
|
}
|
|
269
269
|
if (process.env.NODE_ENV !== 'production') {
|
|
270
270
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
271
271
|
}
|
|
272
|
-
const config = typeCheckConfig$
|
|
272
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
273
273
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
274
274
|
return null;
|
|
275
275
|
}
|
|
276
276
|
return config;
|
|
277
277
|
}
|
|
278
|
-
function buildNetworkSnapshot$
|
|
279
|
-
const resourceParams = createResourceParams$
|
|
280
|
-
const request = createResourceRequest$
|
|
278
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
279
|
+
const resourceParams = createResourceParams$9(config);
|
|
280
|
+
const request = createResourceRequest$9(resourceParams);
|
|
281
281
|
return luvio.dispatchResourceRequest(request, options)
|
|
282
282
|
.then((response) => {
|
|
283
283
|
return luvio.handleSuccessResponse(() => {
|
|
284
|
-
const snapshot = ingestSuccess$
|
|
284
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
285
285
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
286
286
|
}, () => {
|
|
287
287
|
const cache = new StoreKeyMap();
|
|
288
|
-
getResponseCacheKeys$
|
|
288
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
289
289
|
return cache;
|
|
290
290
|
});
|
|
291
291
|
}, (response) => {
|
|
@@ -295,18 +295,18 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
295
295
|
}
|
|
296
296
|
const CreateClaimCoveragePaymentDetailAdapterFactory = (luvio) => {
|
|
297
297
|
return function CreateClaimCoveragePaymentDetail(untrustedConfig) {
|
|
298
|
-
const config = validateAdapterConfig$
|
|
298
|
+
const config = validateAdapterConfig$9(untrustedConfig, CreateClaimCoveragePaymentDetail_ConfigPropertyNames);
|
|
299
299
|
// Invalid or incomplete config
|
|
300
300
|
if (config === null) {
|
|
301
301
|
throw new Error('Invalid config for "CreateClaimCoveragePaymentDetail"');
|
|
302
302
|
}
|
|
303
|
-
return buildNetworkSnapshot$
|
|
303
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
304
304
|
};
|
|
305
305
|
};
|
|
306
306
|
|
|
307
|
-
const TTL$
|
|
308
|
-
const VERSION$
|
|
309
|
-
function validate$
|
|
307
|
+
const TTL$8 = 1000;
|
|
308
|
+
const VERSION$8 = "e6579a325e2cbcb97d0337721986bce5";
|
|
309
|
+
function validate$c(obj, path = 'EditClaimCoveragePaymentDetailRep') {
|
|
310
310
|
const v_error = (() => {
|
|
311
311
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
312
312
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -330,7 +330,7 @@ function validate$a(obj, path = 'EditClaimCoveragePaymentDetailRep') {
|
|
|
330
330
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
331
331
|
const obj_errors_item = obj_errors[i];
|
|
332
332
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
333
|
-
const referencepath_errors_itemValidationError = validate$
|
|
333
|
+
const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
|
|
334
334
|
if (referencepath_errors_itemValidationError !== null) {
|
|
335
335
|
let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
|
|
336
336
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -360,68 +360,68 @@ function validate$a(obj, path = 'EditClaimCoveragePaymentDetailRep') {
|
|
|
360
360
|
})();
|
|
361
361
|
return v_error === undefined ? null : v_error;
|
|
362
362
|
}
|
|
363
|
-
const RepresentationType$
|
|
364
|
-
function keyBuilder$
|
|
365
|
-
return keyPrefix + '::' + RepresentationType$
|
|
363
|
+
const RepresentationType$8 = 'EditClaimCoveragePaymentDetailRep';
|
|
364
|
+
function keyBuilder$8(luvio, config) {
|
|
365
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.isSuccess;
|
|
366
366
|
}
|
|
367
|
-
function keyBuilderFromType$
|
|
367
|
+
function keyBuilderFromType$8(luvio, object) {
|
|
368
368
|
const keyParams = {
|
|
369
369
|
isSuccess: object.isSuccess
|
|
370
370
|
};
|
|
371
|
-
return keyBuilder$
|
|
371
|
+
return keyBuilder$8(luvio, keyParams);
|
|
372
372
|
}
|
|
373
|
-
function normalize$
|
|
373
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
374
374
|
return input;
|
|
375
375
|
}
|
|
376
|
-
const select$
|
|
376
|
+
const select$h = function EditClaimCoveragePaymentDetailRepSelect() {
|
|
377
377
|
return {
|
|
378
378
|
kind: 'Fragment',
|
|
379
|
-
version: VERSION$
|
|
379
|
+
version: VERSION$8,
|
|
380
380
|
private: [],
|
|
381
381
|
opaque: true
|
|
382
382
|
};
|
|
383
383
|
};
|
|
384
|
-
function equals$
|
|
384
|
+
function equals$8(existing, incoming) {
|
|
385
385
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
386
386
|
return false;
|
|
387
387
|
}
|
|
388
388
|
return true;
|
|
389
389
|
}
|
|
390
|
-
const ingest$
|
|
390
|
+
const ingest$8 = function EditClaimCoveragePaymentDetailRepIngest(input, path, luvio, store, timestamp) {
|
|
391
391
|
if (process.env.NODE_ENV !== 'production') {
|
|
392
|
-
const validateError = validate$
|
|
392
|
+
const validateError = validate$c(input);
|
|
393
393
|
if (validateError !== null) {
|
|
394
394
|
throw validateError;
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
const key = keyBuilderFromType$
|
|
398
|
-
const ttlToUse = TTL$
|
|
399
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
397
|
+
const key = keyBuilderFromType$8(luvio, input);
|
|
398
|
+
const ttlToUse = TTL$8;
|
|
399
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "insuranceclaim", VERSION$8, RepresentationType$8, equals$8);
|
|
400
400
|
return createLink(key);
|
|
401
401
|
};
|
|
402
|
-
function getTypeCacheKeys$
|
|
402
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
403
403
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
404
|
-
const rootKey = keyBuilderFromType$
|
|
404
|
+
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
405
405
|
rootKeySet.set(rootKey, {
|
|
406
406
|
namespace: keyPrefix,
|
|
407
|
-
representationName: RepresentationType$
|
|
407
|
+
representationName: RepresentationType$8,
|
|
408
408
|
mergeable: false
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
411
|
|
|
412
|
-
function select$
|
|
413
|
-
return select$
|
|
412
|
+
function select$g(luvio, params) {
|
|
413
|
+
return select$h();
|
|
414
414
|
}
|
|
415
|
-
function getResponseCacheKeys$
|
|
416
|
-
getTypeCacheKeys$
|
|
415
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
416
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
417
417
|
}
|
|
418
|
-
function ingestSuccess$
|
|
418
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
419
419
|
const { body } = response;
|
|
420
|
-
const key = keyBuilderFromType$
|
|
421
|
-
luvio.storeIngest(key, ingest$
|
|
420
|
+
const key = keyBuilderFromType$8(luvio, body);
|
|
421
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
422
422
|
const snapshot = luvio.storeLookup({
|
|
423
423
|
recordId: key,
|
|
424
|
-
node: select$
|
|
424
|
+
node: select$g(),
|
|
425
425
|
variables: {},
|
|
426
426
|
});
|
|
427
427
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -432,7 +432,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
432
432
|
deepFreeze(snapshot.data);
|
|
433
433
|
return snapshot;
|
|
434
434
|
}
|
|
435
|
-
function createResourceRequest$
|
|
435
|
+
function createResourceRequest$8(config) {
|
|
436
436
|
const headers = {};
|
|
437
437
|
return {
|
|
438
438
|
baseUri: '/services/data/v67.0',
|
|
@@ -446,7 +446,7 @@ function createResourceRequest$7(config) {
|
|
|
446
446
|
};
|
|
447
447
|
}
|
|
448
448
|
|
|
449
|
-
const adapterName$
|
|
449
|
+
const adapterName$8 = 'EditClaimCoveragePaymentDetail';
|
|
450
450
|
const EditClaimCoveragePaymentDetail_ConfigPropertyMetadata = [
|
|
451
451
|
generateParamConfigMetadata('claimId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
452
452
|
generateParamConfigMetadata('coverageId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
@@ -460,39 +460,39 @@ const EditClaimCoveragePaymentDetail_ConfigPropertyMetadata = [
|
|
|
460
460
|
generateParamConfigMetadata('recipientId', false, 2 /* Body */, 0 /* String */),
|
|
461
461
|
generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
|
|
462
462
|
];
|
|
463
|
-
const EditClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
464
|
-
const createResourceParams$
|
|
465
|
-
function typeCheckConfig$
|
|
463
|
+
const EditClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, EditClaimCoveragePaymentDetail_ConfigPropertyMetadata);
|
|
464
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$a(EditClaimCoveragePaymentDetail_ConfigPropertyMetadata);
|
|
465
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
466
466
|
const config = {};
|
|
467
|
-
typeCheckConfig$
|
|
467
|
+
typeCheckConfig$a(untrustedConfig, config, EditClaimCoveragePaymentDetail_ConfigPropertyMetadata);
|
|
468
468
|
const untrustedConfig_additionalFields = untrustedConfig.additionalFields;
|
|
469
469
|
config.additionalFields = untrustedConfig_additionalFields;
|
|
470
470
|
return config;
|
|
471
471
|
}
|
|
472
|
-
function validateAdapterConfig$
|
|
472
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
473
473
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
474
474
|
return null;
|
|
475
475
|
}
|
|
476
476
|
if (process.env.NODE_ENV !== 'production') {
|
|
477
477
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
478
478
|
}
|
|
479
|
-
const config = typeCheckConfig$
|
|
479
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
480
480
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
481
481
|
return null;
|
|
482
482
|
}
|
|
483
483
|
return config;
|
|
484
484
|
}
|
|
485
|
-
function buildNetworkSnapshot$
|
|
486
|
-
const resourceParams = createResourceParams$
|
|
487
|
-
const request = createResourceRequest$
|
|
485
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
486
|
+
const resourceParams = createResourceParams$8(config);
|
|
487
|
+
const request = createResourceRequest$8(resourceParams);
|
|
488
488
|
return luvio.dispatchResourceRequest(request, options)
|
|
489
489
|
.then((response) => {
|
|
490
490
|
return luvio.handleSuccessResponse(() => {
|
|
491
|
-
const snapshot = ingestSuccess$
|
|
491
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
492
492
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
493
493
|
}, () => {
|
|
494
494
|
const cache = new StoreKeyMap();
|
|
495
|
-
getResponseCacheKeys$
|
|
495
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
496
496
|
return cache;
|
|
497
497
|
});
|
|
498
498
|
}, (response) => {
|
|
@@ -502,18 +502,18 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
502
502
|
}
|
|
503
503
|
const EditClaimCoveragePaymentDetailAdapterFactory = (luvio) => {
|
|
504
504
|
return function EditClaimCoveragePaymentDetail(untrustedConfig) {
|
|
505
|
-
const config = validateAdapterConfig$
|
|
505
|
+
const config = validateAdapterConfig$8(untrustedConfig, EditClaimCoveragePaymentDetail_ConfigPropertyNames);
|
|
506
506
|
// Invalid or incomplete config
|
|
507
507
|
if (config === null) {
|
|
508
508
|
throw new Error('Invalid config for "EditClaimCoveragePaymentDetail"');
|
|
509
509
|
}
|
|
510
|
-
return buildNetworkSnapshot$
|
|
510
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
511
511
|
};
|
|
512
512
|
};
|
|
513
513
|
|
|
514
|
-
const TTL$
|
|
515
|
-
const VERSION$
|
|
516
|
-
function validate$
|
|
514
|
+
const TTL$7 = 1000;
|
|
515
|
+
const VERSION$7 = "0fe1cd8410cf5ab954b0ee6bea965e0d";
|
|
516
|
+
function validate$b(obj, path = 'CancelClaimCoveragePaymentDetailRep') {
|
|
517
517
|
const v_error = (() => {
|
|
518
518
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
519
519
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -527,7 +527,7 @@ function validate$9(obj, path = 'CancelClaimCoveragePaymentDetailRep') {
|
|
|
527
527
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
528
528
|
const obj_errors_item = obj_errors[i];
|
|
529
529
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
530
|
-
const referencepath_errors_itemValidationError = validate$
|
|
530
|
+
const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
|
|
531
531
|
if (referencepath_errors_itemValidationError !== null) {
|
|
532
532
|
let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
|
|
533
533
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -550,68 +550,68 @@ function validate$9(obj, path = 'CancelClaimCoveragePaymentDetailRep') {
|
|
|
550
550
|
})();
|
|
551
551
|
return v_error === undefined ? null : v_error;
|
|
552
552
|
}
|
|
553
|
-
const RepresentationType$
|
|
554
|
-
function keyBuilder$
|
|
555
|
-
return keyPrefix + '::' + RepresentationType$
|
|
553
|
+
const RepresentationType$7 = 'CancelClaimCoveragePaymentDetailRep';
|
|
554
|
+
function keyBuilder$7(luvio, config) {
|
|
555
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.isSuccess;
|
|
556
556
|
}
|
|
557
|
-
function keyBuilderFromType$
|
|
557
|
+
function keyBuilderFromType$7(luvio, object) {
|
|
558
558
|
const keyParams = {
|
|
559
559
|
isSuccess: object.isSuccess
|
|
560
560
|
};
|
|
561
|
-
return keyBuilder$
|
|
561
|
+
return keyBuilder$7(luvio, keyParams);
|
|
562
562
|
}
|
|
563
|
-
function normalize$
|
|
563
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
564
564
|
return input;
|
|
565
565
|
}
|
|
566
|
-
const select$
|
|
566
|
+
const select$f = function CancelClaimCoveragePaymentDetailRepSelect() {
|
|
567
567
|
return {
|
|
568
568
|
kind: 'Fragment',
|
|
569
|
-
version: VERSION$
|
|
569
|
+
version: VERSION$7,
|
|
570
570
|
private: [],
|
|
571
571
|
opaque: true
|
|
572
572
|
};
|
|
573
573
|
};
|
|
574
|
-
function equals$
|
|
574
|
+
function equals$7(existing, incoming) {
|
|
575
575
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
576
576
|
return false;
|
|
577
577
|
}
|
|
578
578
|
return true;
|
|
579
579
|
}
|
|
580
|
-
const ingest$
|
|
580
|
+
const ingest$7 = function CancelClaimCoveragePaymentDetailRepIngest(input, path, luvio, store, timestamp) {
|
|
581
581
|
if (process.env.NODE_ENV !== 'production') {
|
|
582
|
-
const validateError = validate$
|
|
582
|
+
const validateError = validate$b(input);
|
|
583
583
|
if (validateError !== null) {
|
|
584
584
|
throw validateError;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
const key = keyBuilderFromType$
|
|
588
|
-
const ttlToUse = TTL$
|
|
589
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
587
|
+
const key = keyBuilderFromType$7(luvio, input);
|
|
588
|
+
const ttlToUse = TTL$7;
|
|
589
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "insuranceclaim", VERSION$7, RepresentationType$7, equals$7);
|
|
590
590
|
return createLink(key);
|
|
591
591
|
};
|
|
592
|
-
function getTypeCacheKeys$
|
|
592
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
593
593
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
594
|
-
const rootKey = keyBuilderFromType$
|
|
594
|
+
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
595
595
|
rootKeySet.set(rootKey, {
|
|
596
596
|
namespace: keyPrefix,
|
|
597
|
-
representationName: RepresentationType$
|
|
597
|
+
representationName: RepresentationType$7,
|
|
598
598
|
mergeable: false
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
601
|
|
|
602
|
-
function select$
|
|
603
|
-
return select$
|
|
602
|
+
function select$e(luvio, params) {
|
|
603
|
+
return select$f();
|
|
604
604
|
}
|
|
605
|
-
function getResponseCacheKeys$
|
|
606
|
-
getTypeCacheKeys$
|
|
605
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
606
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
607
607
|
}
|
|
608
|
-
function ingestSuccess$
|
|
608
|
+
function ingestSuccess$7(luvio, resourceParams, response) {
|
|
609
609
|
const { body } = response;
|
|
610
|
-
const key = keyBuilderFromType$
|
|
611
|
-
luvio.storeIngest(key, ingest$
|
|
610
|
+
const key = keyBuilderFromType$7(luvio, body);
|
|
611
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
612
612
|
const snapshot = luvio.storeLookup({
|
|
613
613
|
recordId: key,
|
|
614
|
-
node: select$
|
|
614
|
+
node: select$e(),
|
|
615
615
|
variables: {},
|
|
616
616
|
});
|
|
617
617
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -622,7 +622,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
622
622
|
deepFreeze(snapshot.data);
|
|
623
623
|
return snapshot;
|
|
624
624
|
}
|
|
625
|
-
function createResourceRequest$
|
|
625
|
+
function createResourceRequest$7(config) {
|
|
626
626
|
const headers = {};
|
|
627
627
|
return {
|
|
628
628
|
baseUri: '/services/data/v67.0',
|
|
@@ -636,43 +636,43 @@ function createResourceRequest$6(config) {
|
|
|
636
636
|
};
|
|
637
637
|
}
|
|
638
638
|
|
|
639
|
-
const adapterName$
|
|
639
|
+
const adapterName$7 = 'CancelClaimCoveragePaymentDetail';
|
|
640
640
|
const CancelClaimCoveragePaymentDetail_ConfigPropertyMetadata = [
|
|
641
641
|
generateParamConfigMetadata('claimId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
642
642
|
generateParamConfigMetadata('coverageId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
643
643
|
generateParamConfigMetadata('paymentDetailId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
644
644
|
];
|
|
645
|
-
const CancelClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
646
|
-
const createResourceParams$
|
|
647
|
-
function typeCheckConfig$
|
|
645
|
+
const CancelClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, CancelClaimCoveragePaymentDetail_ConfigPropertyMetadata);
|
|
646
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$a(CancelClaimCoveragePaymentDetail_ConfigPropertyMetadata);
|
|
647
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
648
648
|
const config = {};
|
|
649
|
-
typeCheckConfig$
|
|
649
|
+
typeCheckConfig$a(untrustedConfig, config, CancelClaimCoveragePaymentDetail_ConfigPropertyMetadata);
|
|
650
650
|
return config;
|
|
651
651
|
}
|
|
652
|
-
function validateAdapterConfig$
|
|
652
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
653
653
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
654
654
|
return null;
|
|
655
655
|
}
|
|
656
656
|
if (process.env.NODE_ENV !== 'production') {
|
|
657
657
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
658
658
|
}
|
|
659
|
-
const config = typeCheckConfig$
|
|
659
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
660
660
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
661
661
|
return null;
|
|
662
662
|
}
|
|
663
663
|
return config;
|
|
664
664
|
}
|
|
665
|
-
function buildNetworkSnapshot$
|
|
666
|
-
const resourceParams = createResourceParams$
|
|
667
|
-
const request = createResourceRequest$
|
|
665
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
666
|
+
const resourceParams = createResourceParams$7(config);
|
|
667
|
+
const request = createResourceRequest$7(resourceParams);
|
|
668
668
|
return luvio.dispatchResourceRequest(request, options)
|
|
669
669
|
.then((response) => {
|
|
670
670
|
return luvio.handleSuccessResponse(() => {
|
|
671
|
-
const snapshot = ingestSuccess$
|
|
671
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response);
|
|
672
672
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
673
673
|
}, () => {
|
|
674
674
|
const cache = new StoreKeyMap();
|
|
675
|
-
getResponseCacheKeys$
|
|
675
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
676
676
|
return cache;
|
|
677
677
|
});
|
|
678
678
|
}, (response) => {
|
|
@@ -682,18 +682,18 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
682
682
|
}
|
|
683
683
|
const CancelClaimCoveragePaymentDetailAdapterFactory = (luvio) => {
|
|
684
684
|
return function CancelClaimCoveragePaymentDetail(untrustedConfig) {
|
|
685
|
-
const config = validateAdapterConfig$
|
|
685
|
+
const config = validateAdapterConfig$7(untrustedConfig, CancelClaimCoveragePaymentDetail_ConfigPropertyNames);
|
|
686
686
|
// Invalid or incomplete config
|
|
687
687
|
if (config === null) {
|
|
688
688
|
throw new Error('Invalid config for "CancelClaimCoveragePaymentDetail"');
|
|
689
689
|
}
|
|
690
|
-
return buildNetworkSnapshot$
|
|
690
|
+
return buildNetworkSnapshot$7(luvio, config);
|
|
691
691
|
};
|
|
692
692
|
};
|
|
693
693
|
|
|
694
|
-
const TTL$
|
|
695
|
-
const VERSION$
|
|
696
|
-
function validate$
|
|
694
|
+
const TTL$6 = 1000;
|
|
695
|
+
const VERSION$6 = "c336a66ea51f6cee0b4b062fb1e2dbe0";
|
|
696
|
+
function validate$a(obj, path = 'DeleteClaimCoveragePaymentDetailRep') {
|
|
697
697
|
const v_error = (() => {
|
|
698
698
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
699
699
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -707,7 +707,7 @@ function validate$8(obj, path = 'DeleteClaimCoveragePaymentDetailRep') {
|
|
|
707
707
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
708
708
|
const obj_errors_item = obj_errors[i];
|
|
709
709
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
710
|
-
const referencepath_errors_itemValidationError = validate$
|
|
710
|
+
const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
|
|
711
711
|
if (referencepath_errors_itemValidationError !== null) {
|
|
712
712
|
let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
|
|
713
713
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -730,68 +730,68 @@ function validate$8(obj, path = 'DeleteClaimCoveragePaymentDetailRep') {
|
|
|
730
730
|
})();
|
|
731
731
|
return v_error === undefined ? null : v_error;
|
|
732
732
|
}
|
|
733
|
-
const RepresentationType$
|
|
734
|
-
function keyBuilder$
|
|
735
|
-
return keyPrefix + '::' + RepresentationType$
|
|
733
|
+
const RepresentationType$6 = 'DeleteClaimCoveragePaymentDetailRep';
|
|
734
|
+
function keyBuilder$6(luvio, config) {
|
|
735
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.isSuccess;
|
|
736
736
|
}
|
|
737
|
-
function keyBuilderFromType$
|
|
737
|
+
function keyBuilderFromType$6(luvio, object) {
|
|
738
738
|
const keyParams = {
|
|
739
739
|
isSuccess: object.isSuccess
|
|
740
740
|
};
|
|
741
|
-
return keyBuilder$
|
|
741
|
+
return keyBuilder$6(luvio, keyParams);
|
|
742
742
|
}
|
|
743
|
-
function normalize$
|
|
743
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
744
744
|
return input;
|
|
745
745
|
}
|
|
746
|
-
const select$
|
|
746
|
+
const select$d = function DeleteClaimCoveragePaymentDetailRepSelect() {
|
|
747
747
|
return {
|
|
748
748
|
kind: 'Fragment',
|
|
749
|
-
version: VERSION$
|
|
749
|
+
version: VERSION$6,
|
|
750
750
|
private: [],
|
|
751
751
|
opaque: true
|
|
752
752
|
};
|
|
753
753
|
};
|
|
754
|
-
function equals$
|
|
754
|
+
function equals$6(existing, incoming) {
|
|
755
755
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
756
756
|
return false;
|
|
757
757
|
}
|
|
758
758
|
return true;
|
|
759
759
|
}
|
|
760
|
-
const ingest$
|
|
760
|
+
const ingest$6 = function DeleteClaimCoveragePaymentDetailRepIngest(input, path, luvio, store, timestamp) {
|
|
761
761
|
if (process.env.NODE_ENV !== 'production') {
|
|
762
|
-
const validateError = validate$
|
|
762
|
+
const validateError = validate$a(input);
|
|
763
763
|
if (validateError !== null) {
|
|
764
764
|
throw validateError;
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
|
-
const key = keyBuilderFromType$
|
|
768
|
-
const ttlToUse = TTL$
|
|
769
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
767
|
+
const key = keyBuilderFromType$6(luvio, input);
|
|
768
|
+
const ttlToUse = TTL$6;
|
|
769
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "insuranceclaim", VERSION$6, RepresentationType$6, equals$6);
|
|
770
770
|
return createLink(key);
|
|
771
771
|
};
|
|
772
|
-
function getTypeCacheKeys$
|
|
772
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
773
773
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
774
|
-
const rootKey = keyBuilderFromType$
|
|
774
|
+
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
775
775
|
rootKeySet.set(rootKey, {
|
|
776
776
|
namespace: keyPrefix,
|
|
777
|
-
representationName: RepresentationType$
|
|
777
|
+
representationName: RepresentationType$6,
|
|
778
778
|
mergeable: false
|
|
779
779
|
});
|
|
780
780
|
}
|
|
781
781
|
|
|
782
|
-
function select$
|
|
783
|
-
return select$
|
|
782
|
+
function select$c(luvio, params) {
|
|
783
|
+
return select$d();
|
|
784
784
|
}
|
|
785
|
-
function getResponseCacheKeys$
|
|
786
|
-
getTypeCacheKeys$
|
|
785
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
786
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
787
787
|
}
|
|
788
|
-
function ingestSuccess$
|
|
788
|
+
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
789
789
|
const { body } = response;
|
|
790
|
-
const key = keyBuilderFromType$
|
|
791
|
-
luvio.storeIngest(key, ingest$
|
|
790
|
+
const key = keyBuilderFromType$6(luvio, body);
|
|
791
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
792
792
|
const snapshot = luvio.storeLookup({
|
|
793
793
|
recordId: key,
|
|
794
|
-
node: select$
|
|
794
|
+
node: select$c(),
|
|
795
795
|
variables: {},
|
|
796
796
|
});
|
|
797
797
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -802,7 +802,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
802
802
|
deepFreeze(snapshot.data);
|
|
803
803
|
return snapshot;
|
|
804
804
|
}
|
|
805
|
-
function createResourceRequest$
|
|
805
|
+
function createResourceRequest$6(config) {
|
|
806
806
|
const headers = {};
|
|
807
807
|
return {
|
|
808
808
|
baseUri: '/services/data/v67.0',
|
|
@@ -816,43 +816,43 @@ function createResourceRequest$5(config) {
|
|
|
816
816
|
};
|
|
817
817
|
}
|
|
818
818
|
|
|
819
|
-
const adapterName$
|
|
819
|
+
const adapterName$6 = 'DeleteClaimCoveragePaymentDetail';
|
|
820
820
|
const DeleteClaimCoveragePaymentDetail_ConfigPropertyMetadata = [
|
|
821
821
|
generateParamConfigMetadata('claimId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
822
822
|
generateParamConfigMetadata('coverageId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
823
823
|
generateParamConfigMetadata('paymentDetailId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
824
824
|
];
|
|
825
|
-
const DeleteClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
826
|
-
const createResourceParams$
|
|
827
|
-
function typeCheckConfig$
|
|
825
|
+
const DeleteClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, DeleteClaimCoveragePaymentDetail_ConfigPropertyMetadata);
|
|
826
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$a(DeleteClaimCoveragePaymentDetail_ConfigPropertyMetadata);
|
|
827
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
828
828
|
const config = {};
|
|
829
|
-
typeCheckConfig$
|
|
829
|
+
typeCheckConfig$a(untrustedConfig, config, DeleteClaimCoveragePaymentDetail_ConfigPropertyMetadata);
|
|
830
830
|
return config;
|
|
831
831
|
}
|
|
832
|
-
function validateAdapterConfig$
|
|
832
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
833
833
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
834
834
|
return null;
|
|
835
835
|
}
|
|
836
836
|
if (process.env.NODE_ENV !== 'production') {
|
|
837
837
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
838
838
|
}
|
|
839
|
-
const config = typeCheckConfig$
|
|
839
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
840
840
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
841
841
|
return null;
|
|
842
842
|
}
|
|
843
843
|
return config;
|
|
844
844
|
}
|
|
845
|
-
function buildNetworkSnapshot$
|
|
846
|
-
const resourceParams = createResourceParams$
|
|
847
|
-
const request = createResourceRequest$
|
|
845
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
846
|
+
const resourceParams = createResourceParams$6(config);
|
|
847
|
+
const request = createResourceRequest$6(resourceParams);
|
|
848
848
|
return luvio.dispatchResourceRequest(request, options)
|
|
849
849
|
.then((response) => {
|
|
850
850
|
return luvio.handleSuccessResponse(() => {
|
|
851
|
-
const snapshot = ingestSuccess$
|
|
851
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
852
852
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
853
853
|
}, () => {
|
|
854
854
|
const cache = new StoreKeyMap();
|
|
855
|
-
getResponseCacheKeys$
|
|
855
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
856
856
|
return cache;
|
|
857
857
|
});
|
|
858
858
|
}, (response) => {
|
|
@@ -862,18 +862,18 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
862
862
|
}
|
|
863
863
|
const DeleteClaimCoveragePaymentDetailAdapterFactory = (luvio) => {
|
|
864
864
|
return function DeleteClaimCoveragePaymentDetail(untrustedConfig) {
|
|
865
|
-
const config = validateAdapterConfig$
|
|
865
|
+
const config = validateAdapterConfig$6(untrustedConfig, DeleteClaimCoveragePaymentDetail_ConfigPropertyNames);
|
|
866
866
|
// Invalid or incomplete config
|
|
867
867
|
if (config === null) {
|
|
868
868
|
throw new Error('Invalid config for "DeleteClaimCoveragePaymentDetail"');
|
|
869
869
|
}
|
|
870
|
-
return buildNetworkSnapshot$
|
|
870
|
+
return buildNetworkSnapshot$6(luvio, config);
|
|
871
871
|
};
|
|
872
872
|
};
|
|
873
873
|
|
|
874
|
-
const TTL$
|
|
875
|
-
const VERSION$
|
|
876
|
-
function validate$
|
|
874
|
+
const TTL$5 = 1000;
|
|
875
|
+
const VERSION$5 = "0870e1dbab361d84a1ab08b2b69fb9d9";
|
|
876
|
+
function validate$9(obj, path = 'PayClaimCoveragePaymentDetailRep') {
|
|
877
877
|
const v_error = (() => {
|
|
878
878
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
879
879
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -887,7 +887,7 @@ function validate$7(obj, path = 'PayClaimCoveragePaymentDetailRep') {
|
|
|
887
887
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
888
888
|
const obj_errors_item = obj_errors[i];
|
|
889
889
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
890
|
-
const referencepath_errors_itemValidationError = validate$
|
|
890
|
+
const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
|
|
891
891
|
if (referencepath_errors_itemValidationError !== null) {
|
|
892
892
|
let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
|
|
893
893
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -903,68 +903,68 @@ function validate$7(obj, path = 'PayClaimCoveragePaymentDetailRep') {
|
|
|
903
903
|
})();
|
|
904
904
|
return v_error === undefined ? null : v_error;
|
|
905
905
|
}
|
|
906
|
-
const RepresentationType$
|
|
907
|
-
function keyBuilder$
|
|
908
|
-
return keyPrefix + '::' + RepresentationType$
|
|
906
|
+
const RepresentationType$5 = 'PayClaimCoveragePaymentDetailRep';
|
|
907
|
+
function keyBuilder$5(luvio, config) {
|
|
908
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + config.isSuccess;
|
|
909
909
|
}
|
|
910
|
-
function keyBuilderFromType$
|
|
910
|
+
function keyBuilderFromType$5(luvio, object) {
|
|
911
911
|
const keyParams = {
|
|
912
912
|
isSuccess: object.isSuccess
|
|
913
913
|
};
|
|
914
|
-
return keyBuilder$
|
|
914
|
+
return keyBuilder$5(luvio, keyParams);
|
|
915
915
|
}
|
|
916
|
-
function normalize$
|
|
916
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
917
917
|
return input;
|
|
918
918
|
}
|
|
919
|
-
const select$
|
|
919
|
+
const select$b = function PayClaimCoveragePaymentDetailRepSelect() {
|
|
920
920
|
return {
|
|
921
921
|
kind: 'Fragment',
|
|
922
|
-
version: VERSION$
|
|
922
|
+
version: VERSION$5,
|
|
923
923
|
private: [],
|
|
924
924
|
opaque: true
|
|
925
925
|
};
|
|
926
926
|
};
|
|
927
|
-
function equals$
|
|
927
|
+
function equals$5(existing, incoming) {
|
|
928
928
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
929
929
|
return false;
|
|
930
930
|
}
|
|
931
931
|
return true;
|
|
932
932
|
}
|
|
933
|
-
const ingest$
|
|
933
|
+
const ingest$5 = function PayClaimCoveragePaymentDetailRepIngest(input, path, luvio, store, timestamp) {
|
|
934
934
|
if (process.env.NODE_ENV !== 'production') {
|
|
935
|
-
const validateError = validate$
|
|
935
|
+
const validateError = validate$9(input);
|
|
936
936
|
if (validateError !== null) {
|
|
937
937
|
throw validateError;
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
|
-
const key = keyBuilderFromType$
|
|
941
|
-
const ttlToUse = TTL$
|
|
942
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
940
|
+
const key = keyBuilderFromType$5(luvio, input);
|
|
941
|
+
const ttlToUse = TTL$5;
|
|
942
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "insuranceclaim", VERSION$5, RepresentationType$5, equals$5);
|
|
943
943
|
return createLink(key);
|
|
944
944
|
};
|
|
945
|
-
function getTypeCacheKeys$
|
|
945
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
946
946
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
947
|
-
const rootKey = keyBuilderFromType$
|
|
947
|
+
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
948
948
|
rootKeySet.set(rootKey, {
|
|
949
949
|
namespace: keyPrefix,
|
|
950
|
-
representationName: RepresentationType$
|
|
950
|
+
representationName: RepresentationType$5,
|
|
951
951
|
mergeable: false
|
|
952
952
|
});
|
|
953
953
|
}
|
|
954
954
|
|
|
955
|
-
function select$
|
|
956
|
-
return select$
|
|
955
|
+
function select$a(luvio, params) {
|
|
956
|
+
return select$b();
|
|
957
957
|
}
|
|
958
|
-
function getResponseCacheKeys$
|
|
959
|
-
getTypeCacheKeys$
|
|
958
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
959
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
960
960
|
}
|
|
961
|
-
function ingestSuccess$
|
|
961
|
+
function ingestSuccess$5(luvio, resourceParams, response) {
|
|
962
962
|
const { body } = response;
|
|
963
|
-
const key = keyBuilderFromType$
|
|
964
|
-
luvio.storeIngest(key, ingest$
|
|
963
|
+
const key = keyBuilderFromType$5(luvio, body);
|
|
964
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
965
965
|
const snapshot = luvio.storeLookup({
|
|
966
966
|
recordId: key,
|
|
967
|
-
node: select$
|
|
967
|
+
node: select$a(),
|
|
968
968
|
variables: {},
|
|
969
969
|
});
|
|
970
970
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -975,7 +975,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
975
975
|
deepFreeze(snapshot.data);
|
|
976
976
|
return snapshot;
|
|
977
977
|
}
|
|
978
|
-
function createResourceRequest$
|
|
978
|
+
function createResourceRequest$5(config) {
|
|
979
979
|
const headers = {};
|
|
980
980
|
return {
|
|
981
981
|
baseUri: '/services/data/v67.0',
|
|
@@ -989,43 +989,43 @@ function createResourceRequest$4(config) {
|
|
|
989
989
|
};
|
|
990
990
|
}
|
|
991
991
|
|
|
992
|
-
const adapterName$
|
|
992
|
+
const adapterName$5 = 'PayClaimCoveragePaymentDetail';
|
|
993
993
|
const PayClaimCoveragePaymentDetail_ConfigPropertyMetadata = [
|
|
994
994
|
generateParamConfigMetadata('paymentDetailId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
995
995
|
generateParamConfigMetadata('claimId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
996
996
|
generateParamConfigMetadata('coverageId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
997
997
|
];
|
|
998
|
-
const PayClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
999
|
-
const createResourceParams$
|
|
1000
|
-
function typeCheckConfig$
|
|
998
|
+
const PayClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, PayClaimCoveragePaymentDetail_ConfigPropertyMetadata);
|
|
999
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$a(PayClaimCoveragePaymentDetail_ConfigPropertyMetadata);
|
|
1000
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
1001
1001
|
const config = {};
|
|
1002
|
-
typeCheckConfig$
|
|
1002
|
+
typeCheckConfig$a(untrustedConfig, config, PayClaimCoveragePaymentDetail_ConfigPropertyMetadata);
|
|
1003
1003
|
return config;
|
|
1004
1004
|
}
|
|
1005
|
-
function validateAdapterConfig$
|
|
1005
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
1006
1006
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1007
1007
|
return null;
|
|
1008
1008
|
}
|
|
1009
1009
|
if (process.env.NODE_ENV !== 'production') {
|
|
1010
1010
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1011
1011
|
}
|
|
1012
|
-
const config = typeCheckConfig$
|
|
1012
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
1013
1013
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1014
1014
|
return null;
|
|
1015
1015
|
}
|
|
1016
1016
|
return config;
|
|
1017
1017
|
}
|
|
1018
|
-
function buildNetworkSnapshot$
|
|
1019
|
-
const resourceParams = createResourceParams$
|
|
1020
|
-
const request = createResourceRequest$
|
|
1018
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
1019
|
+
const resourceParams = createResourceParams$5(config);
|
|
1020
|
+
const request = createResourceRequest$5(resourceParams);
|
|
1021
1021
|
return luvio.dispatchResourceRequest(request, options)
|
|
1022
1022
|
.then((response) => {
|
|
1023
1023
|
return luvio.handleSuccessResponse(() => {
|
|
1024
|
-
const snapshot = ingestSuccess$
|
|
1024
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response);
|
|
1025
1025
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1026
1026
|
}, () => {
|
|
1027
1027
|
const cache = new StoreKeyMap();
|
|
1028
|
-
getResponseCacheKeys$
|
|
1028
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
1029
1029
|
return cache;
|
|
1030
1030
|
});
|
|
1031
1031
|
}, (response) => {
|
|
@@ -1035,18 +1035,18 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
const PayClaimCoveragePaymentDetailAdapterFactory = (luvio) => {
|
|
1037
1037
|
return function PayClaimCoveragePaymentDetail(untrustedConfig) {
|
|
1038
|
-
const config = validateAdapterConfig$
|
|
1038
|
+
const config = validateAdapterConfig$5(untrustedConfig, PayClaimCoveragePaymentDetail_ConfigPropertyNames);
|
|
1039
1039
|
// Invalid or incomplete config
|
|
1040
1040
|
if (config === null) {
|
|
1041
1041
|
throw new Error('Invalid config for "PayClaimCoveragePaymentDetail"');
|
|
1042
1042
|
}
|
|
1043
|
-
return buildNetworkSnapshot$
|
|
1043
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
1044
1044
|
};
|
|
1045
1045
|
};
|
|
1046
1046
|
|
|
1047
|
-
const TTL$
|
|
1048
|
-
const VERSION$
|
|
1049
|
-
function validate$
|
|
1047
|
+
const TTL$4 = 1000;
|
|
1048
|
+
const VERSION$4 = "44e613473e289ba71d32510bcf339833";
|
|
1049
|
+
function validate$8(obj, path = 'PayExGratiaClaimCvrPaymentDetailRep') {
|
|
1050
1050
|
const v_error = (() => {
|
|
1051
1051
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1052
1052
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1074,7 +1074,7 @@ function validate$6(obj, path = 'PayExGratiaClaimCvrPaymentDetailRep') {
|
|
|
1074
1074
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
1075
1075
|
const obj_errors_item = obj_errors[i];
|
|
1076
1076
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
1077
|
-
const referencepath_errors_itemValidationError = validate$
|
|
1077
|
+
const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
|
|
1078
1078
|
if (referencepath_errors_itemValidationError !== null) {
|
|
1079
1079
|
let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
|
|
1080
1080
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1117,68 +1117,68 @@ function validate$6(obj, path = 'PayExGratiaClaimCvrPaymentDetailRep') {
|
|
|
1117
1117
|
})();
|
|
1118
1118
|
return v_error === undefined ? null : v_error;
|
|
1119
1119
|
}
|
|
1120
|
-
const RepresentationType$
|
|
1121
|
-
function keyBuilder$
|
|
1122
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1120
|
+
const RepresentationType$4 = 'PayExGratiaClaimCvrPaymentDetailRep';
|
|
1121
|
+
function keyBuilder$4(luvio, config) {
|
|
1122
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.isSuccess;
|
|
1123
1123
|
}
|
|
1124
|
-
function keyBuilderFromType$
|
|
1124
|
+
function keyBuilderFromType$4(luvio, object) {
|
|
1125
1125
|
const keyParams = {
|
|
1126
1126
|
isSuccess: object.isSuccess
|
|
1127
1127
|
};
|
|
1128
|
-
return keyBuilder$
|
|
1128
|
+
return keyBuilder$4(luvio, keyParams);
|
|
1129
1129
|
}
|
|
1130
|
-
function normalize$
|
|
1130
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
1131
1131
|
return input;
|
|
1132
1132
|
}
|
|
1133
|
-
const select$
|
|
1133
|
+
const select$9 = function PayExGratiaClaimCvrPaymentDetailRepSelect() {
|
|
1134
1134
|
return {
|
|
1135
1135
|
kind: 'Fragment',
|
|
1136
|
-
version: VERSION$
|
|
1136
|
+
version: VERSION$4,
|
|
1137
1137
|
private: [],
|
|
1138
1138
|
opaque: true
|
|
1139
1139
|
};
|
|
1140
1140
|
};
|
|
1141
|
-
function equals$
|
|
1141
|
+
function equals$4(existing, incoming) {
|
|
1142
1142
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1143
1143
|
return false;
|
|
1144
1144
|
}
|
|
1145
1145
|
return true;
|
|
1146
1146
|
}
|
|
1147
|
-
const ingest$
|
|
1147
|
+
const ingest$4 = function PayExGratiaClaimCvrPaymentDetailRepIngest(input, path, luvio, store, timestamp) {
|
|
1148
1148
|
if (process.env.NODE_ENV !== 'production') {
|
|
1149
|
-
const validateError = validate$
|
|
1149
|
+
const validateError = validate$8(input);
|
|
1150
1150
|
if (validateError !== null) {
|
|
1151
1151
|
throw validateError;
|
|
1152
1152
|
}
|
|
1153
1153
|
}
|
|
1154
|
-
const key = keyBuilderFromType$
|
|
1155
|
-
const ttlToUse = TTL$
|
|
1156
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1154
|
+
const key = keyBuilderFromType$4(luvio, input);
|
|
1155
|
+
const ttlToUse = TTL$4;
|
|
1156
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "insuranceclaim", VERSION$4, RepresentationType$4, equals$4);
|
|
1157
1157
|
return createLink(key);
|
|
1158
1158
|
};
|
|
1159
|
-
function getTypeCacheKeys$
|
|
1159
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
1160
1160
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1161
|
-
const rootKey = keyBuilderFromType$
|
|
1161
|
+
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
1162
1162
|
rootKeySet.set(rootKey, {
|
|
1163
1163
|
namespace: keyPrefix,
|
|
1164
|
-
representationName: RepresentationType$
|
|
1164
|
+
representationName: RepresentationType$4,
|
|
1165
1165
|
mergeable: false
|
|
1166
1166
|
});
|
|
1167
1167
|
}
|
|
1168
1168
|
|
|
1169
|
-
function select$
|
|
1170
|
-
return select$
|
|
1169
|
+
function select$8(luvio, params) {
|
|
1170
|
+
return select$9();
|
|
1171
1171
|
}
|
|
1172
|
-
function getResponseCacheKeys$
|
|
1173
|
-
getTypeCacheKeys$
|
|
1172
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
1173
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
1174
1174
|
}
|
|
1175
|
-
function ingestSuccess$
|
|
1175
|
+
function ingestSuccess$4(luvio, resourceParams, response) {
|
|
1176
1176
|
const { body } = response;
|
|
1177
|
-
const key = keyBuilderFromType$
|
|
1178
|
-
luvio.storeIngest(key, ingest$
|
|
1177
|
+
const key = keyBuilderFromType$4(luvio, body);
|
|
1178
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
1179
1179
|
const snapshot = luvio.storeLookup({
|
|
1180
1180
|
recordId: key,
|
|
1181
|
-
node: select$
|
|
1181
|
+
node: select$8(),
|
|
1182
1182
|
variables: {},
|
|
1183
1183
|
});
|
|
1184
1184
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1189,7 +1189,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
|
|
|
1189
1189
|
deepFreeze(snapshot.data);
|
|
1190
1190
|
return snapshot;
|
|
1191
1191
|
}
|
|
1192
|
-
function createResourceRequest$
|
|
1192
|
+
function createResourceRequest$4(config) {
|
|
1193
1193
|
const headers = {};
|
|
1194
1194
|
return {
|
|
1195
1195
|
baseUri: '/services/data/v67.0',
|
|
@@ -1203,44 +1203,44 @@ function createResourceRequest$3(config) {
|
|
|
1203
1203
|
};
|
|
1204
1204
|
}
|
|
1205
1205
|
|
|
1206
|
-
const adapterName$
|
|
1206
|
+
const adapterName$4 = 'PayExGratiaClaimCvrPaymentDetail';
|
|
1207
1207
|
const PayExGratiaClaimCvrPaymentDetail_ConfigPropertyMetadata = [
|
|
1208
1208
|
generateParamConfigMetadata('paymentDetailId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1209
1209
|
generateParamConfigMetadata('claimId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1210
1210
|
generateParamConfigMetadata('coverageId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1211
1211
|
generateParamConfigMetadata('reason', false, 2 /* Body */, 0 /* String */),
|
|
1212
1212
|
];
|
|
1213
|
-
const PayExGratiaClaimCvrPaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1214
|
-
const createResourceParams$
|
|
1215
|
-
function typeCheckConfig$
|
|
1213
|
+
const PayExGratiaClaimCvrPaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, PayExGratiaClaimCvrPaymentDetail_ConfigPropertyMetadata);
|
|
1214
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$a(PayExGratiaClaimCvrPaymentDetail_ConfigPropertyMetadata);
|
|
1215
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
1216
1216
|
const config = {};
|
|
1217
|
-
typeCheckConfig$
|
|
1217
|
+
typeCheckConfig$a(untrustedConfig, config, PayExGratiaClaimCvrPaymentDetail_ConfigPropertyMetadata);
|
|
1218
1218
|
return config;
|
|
1219
1219
|
}
|
|
1220
|
-
function validateAdapterConfig$
|
|
1220
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
1221
1221
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1222
1222
|
return null;
|
|
1223
1223
|
}
|
|
1224
1224
|
if (process.env.NODE_ENV !== 'production') {
|
|
1225
1225
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1226
1226
|
}
|
|
1227
|
-
const config = typeCheckConfig$
|
|
1227
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
1228
1228
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1229
1229
|
return null;
|
|
1230
1230
|
}
|
|
1231
1231
|
return config;
|
|
1232
1232
|
}
|
|
1233
|
-
function buildNetworkSnapshot$
|
|
1234
|
-
const resourceParams = createResourceParams$
|
|
1235
|
-
const request = createResourceRequest$
|
|
1233
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
1234
|
+
const resourceParams = createResourceParams$4(config);
|
|
1235
|
+
const request = createResourceRequest$4(resourceParams);
|
|
1236
1236
|
return luvio.dispatchResourceRequest(request, options)
|
|
1237
1237
|
.then((response) => {
|
|
1238
1238
|
return luvio.handleSuccessResponse(() => {
|
|
1239
|
-
const snapshot = ingestSuccess$
|
|
1239
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response);
|
|
1240
1240
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1241
1241
|
}, () => {
|
|
1242
1242
|
const cache = new StoreKeyMap();
|
|
1243
|
-
getResponseCacheKeys$
|
|
1243
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
1244
1244
|
return cache;
|
|
1245
1245
|
});
|
|
1246
1246
|
}, (response) => {
|
|
@@ -1250,16 +1250,16 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
1250
1250
|
}
|
|
1251
1251
|
const PayExGratiaClaimCvrPaymentDetailAdapterFactory = (luvio) => {
|
|
1252
1252
|
return function PayExGratiaClaimCvrPaymentDetail(untrustedConfig) {
|
|
1253
|
-
const config = validateAdapterConfig$
|
|
1253
|
+
const config = validateAdapterConfig$4(untrustedConfig, PayExGratiaClaimCvrPaymentDetail_ConfigPropertyNames);
|
|
1254
1254
|
// Invalid or incomplete config
|
|
1255
1255
|
if (config === null) {
|
|
1256
1256
|
throw new Error('Invalid config for "PayExGratiaClaimCvrPaymentDetail"');
|
|
1257
1257
|
}
|
|
1258
|
-
return buildNetworkSnapshot$
|
|
1258
|
+
return buildNetworkSnapshot$4(luvio, config);
|
|
1259
1259
|
};
|
|
1260
1260
|
};
|
|
1261
1261
|
|
|
1262
|
-
function validate$
|
|
1262
|
+
function validate$7(obj, path = 'ClaimCovPaymentAdjDetailsRep') {
|
|
1263
1263
|
const v_error = (() => {
|
|
1264
1264
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1265
1265
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1282,7 +1282,7 @@ function validate$5(obj, path = 'ClaimCovPaymentAdjDetailsRep') {
|
|
|
1282
1282
|
return v_error === undefined ? null : v_error;
|
|
1283
1283
|
}
|
|
1284
1284
|
|
|
1285
|
-
function validate$
|
|
1285
|
+
function validate$6(obj, path = 'InsPolicyLimitTrackingDetailsRep') {
|
|
1286
1286
|
const v_error = (() => {
|
|
1287
1287
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1288
1288
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1371,9 +1371,9 @@ function validate$4(obj, path = 'InsPolicyLimitTrackingDetailsRep') {
|
|
|
1371
1371
|
return v_error === undefined ? null : v_error;
|
|
1372
1372
|
}
|
|
1373
1373
|
|
|
1374
|
-
const TTL$
|
|
1375
|
-
const VERSION$
|
|
1376
|
-
function validate$
|
|
1374
|
+
const TTL$3 = 1000;
|
|
1375
|
+
const VERSION$3 = "cb555dac128f300b8ecb7f878bff8049";
|
|
1376
|
+
function validate$5(obj, path = 'CalculateAdjustmentsRepresentation') {
|
|
1377
1377
|
const v_error = (() => {
|
|
1378
1378
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1379
1379
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1401,7 +1401,7 @@ function validate$3(obj, path = 'CalculateAdjustmentsRepresentation') {
|
|
|
1401
1401
|
for (let i = 0; i < obj_claimCovPaymentAdjustments.length; i++) {
|
|
1402
1402
|
const obj_claimCovPaymentAdjustments_item = obj_claimCovPaymentAdjustments[i];
|
|
1403
1403
|
const path_claimCovPaymentAdjustments_item = path_claimCovPaymentAdjustments + '[' + i + ']';
|
|
1404
|
-
const referencepath_claimCovPaymentAdjustments_itemValidationError = validate$
|
|
1404
|
+
const referencepath_claimCovPaymentAdjustments_itemValidationError = validate$7(obj_claimCovPaymentAdjustments_item, path_claimCovPaymentAdjustments_item);
|
|
1405
1405
|
if (referencepath_claimCovPaymentAdjustments_itemValidationError !== null) {
|
|
1406
1406
|
let message = 'Object doesn\'t match ClaimCovPaymentAdjDetailsRep (at "' + path_claimCovPaymentAdjustments_item + '")\n';
|
|
1407
1407
|
message += referencepath_claimCovPaymentAdjustments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1418,7 +1418,7 @@ function validate$3(obj, path = 'CalculateAdjustmentsRepresentation') {
|
|
|
1418
1418
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
1419
1419
|
const obj_errors_item = obj_errors[i];
|
|
1420
1420
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
1421
|
-
const referencepath_errors_itemValidationError = validate$
|
|
1421
|
+
const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
|
|
1422
1422
|
if (referencepath_errors_itemValidationError !== null) {
|
|
1423
1423
|
let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
|
|
1424
1424
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1435,7 +1435,7 @@ function validate$3(obj, path = 'CalculateAdjustmentsRepresentation') {
|
|
|
1435
1435
|
for (let i = 0; i < obj_insPolicyLimitTrackings.length; i++) {
|
|
1436
1436
|
const obj_insPolicyLimitTrackings_item = obj_insPolicyLimitTrackings[i];
|
|
1437
1437
|
const path_insPolicyLimitTrackings_item = path_insPolicyLimitTrackings + '[' + i + ']';
|
|
1438
|
-
const referencepath_insPolicyLimitTrackings_itemValidationError = validate$
|
|
1438
|
+
const referencepath_insPolicyLimitTrackings_itemValidationError = validate$6(obj_insPolicyLimitTrackings_item, path_insPolicyLimitTrackings_item);
|
|
1439
1439
|
if (referencepath_insPolicyLimitTrackings_itemValidationError !== null) {
|
|
1440
1440
|
let message = 'Object doesn\'t match InsPolicyLimitTrackingDetailsRep (at "' + path_insPolicyLimitTrackings_item + '")\n';
|
|
1441
1441
|
message += referencepath_insPolicyLimitTrackings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1451,7 +1451,212 @@ function validate$3(obj, path = 'CalculateAdjustmentsRepresentation') {
|
|
|
1451
1451
|
})();
|
|
1452
1452
|
return v_error === undefined ? null : v_error;
|
|
1453
1453
|
}
|
|
1454
|
-
const RepresentationType$
|
|
1454
|
+
const RepresentationType$3 = 'CalculateAdjustmentsRepresentation';
|
|
1455
|
+
function keyBuilder$3(luvio, config) {
|
|
1456
|
+
return keyPrefix + '::' + RepresentationType$3 + ':' + config.isSuccess;
|
|
1457
|
+
}
|
|
1458
|
+
function keyBuilderFromType$3(luvio, object) {
|
|
1459
|
+
const keyParams = {
|
|
1460
|
+
isSuccess: object.isSuccess
|
|
1461
|
+
};
|
|
1462
|
+
return keyBuilder$3(luvio, keyParams);
|
|
1463
|
+
}
|
|
1464
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
1465
|
+
return input;
|
|
1466
|
+
}
|
|
1467
|
+
const select$7 = function CalculateAdjustmentsRepresentationSelect() {
|
|
1468
|
+
return {
|
|
1469
|
+
kind: 'Fragment',
|
|
1470
|
+
version: VERSION$3,
|
|
1471
|
+
private: [],
|
|
1472
|
+
opaque: true
|
|
1473
|
+
};
|
|
1474
|
+
};
|
|
1475
|
+
function equals$3(existing, incoming) {
|
|
1476
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1477
|
+
return false;
|
|
1478
|
+
}
|
|
1479
|
+
return true;
|
|
1480
|
+
}
|
|
1481
|
+
const ingest$3 = function CalculateAdjustmentsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1482
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1483
|
+
const validateError = validate$5(input);
|
|
1484
|
+
if (validateError !== null) {
|
|
1485
|
+
throw validateError;
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
const key = keyBuilderFromType$3(luvio, input);
|
|
1489
|
+
const ttlToUse = TTL$3;
|
|
1490
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "insuranceclaim", VERSION$3, RepresentationType$3, equals$3);
|
|
1491
|
+
return createLink(key);
|
|
1492
|
+
};
|
|
1493
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
1494
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1495
|
+
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
1496
|
+
rootKeySet.set(rootKey, {
|
|
1497
|
+
namespace: keyPrefix,
|
|
1498
|
+
representationName: RepresentationType$3,
|
|
1499
|
+
mergeable: false
|
|
1500
|
+
});
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
function select$6(luvio, params) {
|
|
1504
|
+
return select$7();
|
|
1505
|
+
}
|
|
1506
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
1507
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
1508
|
+
}
|
|
1509
|
+
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
1510
|
+
const { body } = response;
|
|
1511
|
+
const key = keyBuilderFromType$3(luvio, body);
|
|
1512
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
1513
|
+
const snapshot = luvio.storeLookup({
|
|
1514
|
+
recordId: key,
|
|
1515
|
+
node: select$6(),
|
|
1516
|
+
variables: {},
|
|
1517
|
+
});
|
|
1518
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1519
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1520
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
deepFreeze(snapshot.data);
|
|
1524
|
+
return snapshot;
|
|
1525
|
+
}
|
|
1526
|
+
function createResourceRequest$3(config) {
|
|
1527
|
+
const headers = {};
|
|
1528
|
+
return {
|
|
1529
|
+
baseUri: '/services/data/v67.0',
|
|
1530
|
+
basePath: '/connect/insurance/claims/' + config.urlParams.claimId + '/coverages/' + config.urlParams.coverageId + '/calculate-adjustments',
|
|
1531
|
+
method: 'post',
|
|
1532
|
+
body: config.body,
|
|
1533
|
+
urlParams: config.urlParams,
|
|
1534
|
+
queryParams: {},
|
|
1535
|
+
headers,
|
|
1536
|
+
priority: 'normal',
|
|
1537
|
+
};
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
const adapterName$3 = 'CalculateAdjustments';
|
|
1541
|
+
const CalculateAdjustments_ConfigPropertyMetadata = [
|
|
1542
|
+
generateParamConfigMetadata('claimId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1543
|
+
generateParamConfigMetadata('coverageId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1544
|
+
generateParamConfigMetadata('claimedAmount', true, 2 /* Body */, 2 /* Number */),
|
|
1545
|
+
generateParamConfigMetadata('benefitName', false, 2 /* Body */, 0 /* String */),
|
|
1546
|
+
generateParamConfigMetadata('additionalFields', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1547
|
+
];
|
|
1548
|
+
const CalculateAdjustments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, CalculateAdjustments_ConfigPropertyMetadata);
|
|
1549
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$a(CalculateAdjustments_ConfigPropertyMetadata);
|
|
1550
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
1551
|
+
const config = {};
|
|
1552
|
+
typeCheckConfig$a(untrustedConfig, config, CalculateAdjustments_ConfigPropertyMetadata);
|
|
1553
|
+
const untrustedConfig_additionalFields = untrustedConfig.additionalFields;
|
|
1554
|
+
config.additionalFields = untrustedConfig_additionalFields;
|
|
1555
|
+
return config;
|
|
1556
|
+
}
|
|
1557
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
1558
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1559
|
+
return null;
|
|
1560
|
+
}
|
|
1561
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1562
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1563
|
+
}
|
|
1564
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
1565
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1566
|
+
return null;
|
|
1567
|
+
}
|
|
1568
|
+
return config;
|
|
1569
|
+
}
|
|
1570
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
1571
|
+
const resourceParams = createResourceParams$3(config);
|
|
1572
|
+
const request = createResourceRequest$3(resourceParams);
|
|
1573
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1574
|
+
.then((response) => {
|
|
1575
|
+
return luvio.handleSuccessResponse(() => {
|
|
1576
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
1577
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1578
|
+
}, () => {
|
|
1579
|
+
const cache = new StoreKeyMap();
|
|
1580
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
1581
|
+
return cache;
|
|
1582
|
+
});
|
|
1583
|
+
}, (response) => {
|
|
1584
|
+
deepFreeze(response);
|
|
1585
|
+
throw response;
|
|
1586
|
+
});
|
|
1587
|
+
}
|
|
1588
|
+
const CalculateAdjustmentsAdapterFactory = (luvio) => {
|
|
1589
|
+
return function CalculateAdjustments(untrustedConfig) {
|
|
1590
|
+
const config = validateAdapterConfig$3(untrustedConfig, CalculateAdjustments_ConfigPropertyNames);
|
|
1591
|
+
// Invalid or incomplete config
|
|
1592
|
+
if (config === null) {
|
|
1593
|
+
throw new Error('Invalid config for "CalculateAdjustments"');
|
|
1594
|
+
}
|
|
1595
|
+
return buildNetworkSnapshot$3(luvio, config);
|
|
1596
|
+
};
|
|
1597
|
+
};
|
|
1598
|
+
|
|
1599
|
+
function validate$4(obj, path = 'RecordIdsInput') {
|
|
1600
|
+
const v_error = (() => {
|
|
1601
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1602
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1603
|
+
}
|
|
1604
|
+
const obj_list = obj.list;
|
|
1605
|
+
const path_list = path + '.list';
|
|
1606
|
+
if (!ArrayIsArray(obj_list)) {
|
|
1607
|
+
return new TypeError('Expected "array" but received "' + typeof obj_list + '" (at "' + path_list + '")');
|
|
1608
|
+
}
|
|
1609
|
+
for (let i = 0; i < obj_list.length; i++) {
|
|
1610
|
+
const obj_list_item = obj_list[i];
|
|
1611
|
+
const path_list_item = path_list + '[' + i + ']';
|
|
1612
|
+
if (typeof obj_list_item !== 'string') {
|
|
1613
|
+
return new TypeError('Expected "string" but received "' + typeof obj_list_item + '" (at "' + path_list_item + '")');
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
})();
|
|
1617
|
+
return v_error === undefined ? null : v_error;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
const TTL$2 = 1000;
|
|
1621
|
+
const VERSION$2 = "ab08207178652bf5acf6509cd2d3fdbc";
|
|
1622
|
+
function validate$3(obj, path = 'BulkPayClaimCoveragePaymentDetailRep') {
|
|
1623
|
+
const v_error = (() => {
|
|
1624
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1625
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1626
|
+
}
|
|
1627
|
+
if (obj.errors !== undefined) {
|
|
1628
|
+
const obj_errors = obj.errors;
|
|
1629
|
+
const path_errors = path + '.errors';
|
|
1630
|
+
if (!ArrayIsArray(obj_errors)) {
|
|
1631
|
+
return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
|
|
1632
|
+
}
|
|
1633
|
+
for (let i = 0; i < obj_errors.length; i++) {
|
|
1634
|
+
const obj_errors_item = obj_errors[i];
|
|
1635
|
+
const path_errors_item = path_errors + '[' + i + ']';
|
|
1636
|
+
const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
|
|
1637
|
+
if (referencepath_errors_itemValidationError !== null) {
|
|
1638
|
+
let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
|
|
1639
|
+
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1640
|
+
return new TypeError(message);
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
const obj_isSuccess = obj.isSuccess;
|
|
1645
|
+
const path_isSuccess = path + '.isSuccess';
|
|
1646
|
+
if (typeof obj_isSuccess !== 'boolean') {
|
|
1647
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
1648
|
+
}
|
|
1649
|
+
if (obj.requestId !== undefined) {
|
|
1650
|
+
const obj_requestId = obj.requestId;
|
|
1651
|
+
const path_requestId = path + '.requestId';
|
|
1652
|
+
if (typeof obj_requestId !== 'string') {
|
|
1653
|
+
return new TypeError('Expected "string" but received "' + typeof obj_requestId + '" (at "' + path_requestId + '")');
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
})();
|
|
1657
|
+
return v_error === undefined ? null : v_error;
|
|
1658
|
+
}
|
|
1659
|
+
const RepresentationType$2 = 'BulkPayClaimCoveragePaymentDetailRep';
|
|
1455
1660
|
function keyBuilder$2(luvio, config) {
|
|
1456
1661
|
return keyPrefix + '::' + RepresentationType$2 + ':' + config.isSuccess;
|
|
1457
1662
|
}
|
|
@@ -1464,7 +1669,7 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
1464
1669
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
1465
1670
|
return input;
|
|
1466
1671
|
}
|
|
1467
|
-
const select$5 = function
|
|
1672
|
+
const select$5 = function BulkPayClaimCoveragePaymentDetailRepSelect() {
|
|
1468
1673
|
return {
|
|
1469
1674
|
kind: 'Fragment',
|
|
1470
1675
|
version: VERSION$2,
|
|
@@ -1478,7 +1683,7 @@ function equals$2(existing, incoming) {
|
|
|
1478
1683
|
}
|
|
1479
1684
|
return true;
|
|
1480
1685
|
}
|
|
1481
|
-
const ingest$2 = function
|
|
1686
|
+
const ingest$2 = function BulkPayClaimCoveragePaymentDetailRepIngest(input, path, luvio, store, timestamp) {
|
|
1482
1687
|
if (process.env.NODE_ENV !== 'production') {
|
|
1483
1688
|
const validateError = validate$3(input);
|
|
1484
1689
|
if (validateError !== null) {
|
|
@@ -1527,31 +1732,29 @@ function createResourceRequest$2(config) {
|
|
|
1527
1732
|
const headers = {};
|
|
1528
1733
|
return {
|
|
1529
1734
|
baseUri: '/services/data/v67.0',
|
|
1530
|
-
basePath: '/connect/insurance/claims/
|
|
1735
|
+
basePath: '/connect/insurance/claims/coverages/payment-details/bulk-pay',
|
|
1531
1736
|
method: 'post',
|
|
1532
1737
|
body: config.body,
|
|
1533
|
-
urlParams:
|
|
1738
|
+
urlParams: {},
|
|
1534
1739
|
queryParams: {},
|
|
1535
1740
|
headers,
|
|
1536
1741
|
priority: 'normal',
|
|
1537
1742
|
};
|
|
1538
1743
|
}
|
|
1539
1744
|
|
|
1540
|
-
const adapterName$2 = '
|
|
1541
|
-
const
|
|
1542
|
-
generateParamConfigMetadata('
|
|
1543
|
-
generateParamConfigMetadata('coverageId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1544
|
-
generateParamConfigMetadata('claimedAmount', true, 2 /* Body */, 2 /* Number */),
|
|
1545
|
-
generateParamConfigMetadata('benefitName', false, 2 /* Body */, 0 /* String */),
|
|
1546
|
-
generateParamConfigMetadata('additionalFields', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1745
|
+
const adapterName$2 = 'BulkPayClaimCoveragePaymentDetail';
|
|
1746
|
+
const BulkPayClaimCoveragePaymentDetail_ConfigPropertyMetadata = [
|
|
1747
|
+
generateParamConfigMetadata('recordIds', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1547
1748
|
];
|
|
1548
|
-
const
|
|
1549
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
1749
|
+
const BulkPayClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, BulkPayClaimCoveragePaymentDetail_ConfigPropertyMetadata);
|
|
1750
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$a(BulkPayClaimCoveragePaymentDetail_ConfigPropertyMetadata);
|
|
1550
1751
|
function typeCheckConfig$2(untrustedConfig) {
|
|
1551
1752
|
const config = {};
|
|
1552
|
-
|
|
1553
|
-
const
|
|
1554
|
-
|
|
1753
|
+
const untrustedConfig_recordIds = untrustedConfig.recordIds;
|
|
1754
|
+
const referenceRecordIdsInputValidationError = validate$4(untrustedConfig_recordIds);
|
|
1755
|
+
if (referenceRecordIdsInputValidationError === null) {
|
|
1756
|
+
config.recordIds = untrustedConfig_recordIds;
|
|
1757
|
+
}
|
|
1555
1758
|
return config;
|
|
1556
1759
|
}
|
|
1557
1760
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -1585,12 +1788,12 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
1585
1788
|
throw response;
|
|
1586
1789
|
});
|
|
1587
1790
|
}
|
|
1588
|
-
const
|
|
1589
|
-
return function
|
|
1590
|
-
const config = validateAdapterConfig$2(untrustedConfig,
|
|
1791
|
+
const BulkPayClaimCoveragePaymentDetailAdapterFactory = (luvio) => {
|
|
1792
|
+
return function BulkPayClaimCoveragePaymentDetail(untrustedConfig) {
|
|
1793
|
+
const config = validateAdapterConfig$2(untrustedConfig, BulkPayClaimCoveragePaymentDetail_ConfigPropertyNames);
|
|
1591
1794
|
// Invalid or incomplete config
|
|
1592
1795
|
if (config === null) {
|
|
1593
|
-
throw new Error('Invalid config for "
|
|
1796
|
+
throw new Error('Invalid config for "BulkPayClaimCoveragePaymentDetail"');
|
|
1594
1797
|
}
|
|
1595
1798
|
return buildNetworkSnapshot$2(luvio, config);
|
|
1596
1799
|
};
|
|
@@ -1792,7 +1995,7 @@ function validate$1(obj, path = 'InsPolicyLmtCalcStandingRepresentation') {
|
|
|
1792
1995
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
1793
1996
|
const obj_errors_item = obj_errors[i];
|
|
1794
1997
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
1795
|
-
const referencepath_errors_itemValidationError = validate$
|
|
1998
|
+
const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
|
|
1796
1999
|
if (referencepath_errors_itemValidationError !== null) {
|
|
1797
2000
|
let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
|
|
1798
2001
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1923,10 +2126,10 @@ const PolicyLimitStandingCalculation_ConfigPropertyMetadata = [
|
|
|
1923
2126
|
generateParamConfigMetadata('trackingDate', false, 2 /* Body */, 0 /* String */),
|
|
1924
2127
|
];
|
|
1925
2128
|
const PolicyLimitStandingCalculation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, PolicyLimitStandingCalculation_ConfigPropertyMetadata);
|
|
1926
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
2129
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$a(PolicyLimitStandingCalculation_ConfigPropertyMetadata);
|
|
1927
2130
|
function typeCheckConfig$1(untrustedConfig) {
|
|
1928
2131
|
const config = {};
|
|
1929
|
-
typeCheckConfig$
|
|
2132
|
+
typeCheckConfig$a(untrustedConfig, config, PolicyLimitStandingCalculation_ConfigPropertyMetadata);
|
|
1930
2133
|
const untrustedConfig_options = untrustedConfig.options;
|
|
1931
2134
|
config.options = untrustedConfig_options;
|
|
1932
2135
|
return config;
|
|
@@ -1989,7 +2192,7 @@ function validate(obj, path = 'VerifyPolicyCoverageRepresentation') {
|
|
|
1989
2192
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
1990
2193
|
const obj_errors_item = obj_errors[i];
|
|
1991
2194
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
1992
|
-
const referencepath_errors_itemValidationError = validate$
|
|
2195
|
+
const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
|
|
1993
2196
|
if (referencepath_errors_itemValidationError !== null) {
|
|
1994
2197
|
let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
|
|
1995
2198
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2099,10 +2302,10 @@ const postVerifyPolicyCoverage_ConfigPropertyMetadata = [
|
|
|
2099
2302
|
generateParamConfigMetadata('lossDate', true, 2 /* Body */, 0 /* String */),
|
|
2100
2303
|
];
|
|
2101
2304
|
const postVerifyPolicyCoverage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postVerifyPolicyCoverage_ConfigPropertyMetadata);
|
|
2102
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
2305
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$a(postVerifyPolicyCoverage_ConfigPropertyMetadata);
|
|
2103
2306
|
function typeCheckConfig(untrustedConfig) {
|
|
2104
2307
|
const config = {};
|
|
2105
|
-
typeCheckConfig$
|
|
2308
|
+
typeCheckConfig$a(untrustedConfig, config, postVerifyPolicyCoverage_ConfigPropertyMetadata);
|
|
2106
2309
|
return config;
|
|
2107
2310
|
}
|
|
2108
2311
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -2147,4 +2350,4 @@ const postVerifyPolicyCoverageAdapterFactory = (luvio) => {
|
|
|
2147
2350
|
};
|
|
2148
2351
|
};
|
|
2149
2352
|
|
|
2150
|
-
export { CalculateAdjustmentsAdapterFactory, CancelClaimCoveragePaymentDetailAdapterFactory, CreateClaimCoveragePaymentDetailAdapterFactory, DeleteClaimCoveragePaymentDetailAdapterFactory, EditClaimCoveragePaymentDetailAdapterFactory, PayClaimCoveragePaymentDetailAdapterFactory, PayExGratiaClaimCvrPaymentDetailAdapterFactory, PolicyLimitStandingCalculationAdapterFactory, postVerifyPolicyCoverageAdapterFactory };
|
|
2353
|
+
export { BulkPayClaimCoveragePaymentDetailAdapterFactory, CalculateAdjustmentsAdapterFactory, CancelClaimCoveragePaymentDetailAdapterFactory, CreateClaimCoveragePaymentDetailAdapterFactory, DeleteClaimCoveragePaymentDetailAdapterFactory, EditClaimCoveragePaymentDetailAdapterFactory, PayClaimCoveragePaymentDetailAdapterFactory, PayExGratiaClaimCvrPaymentDetailAdapterFactory, PolicyLimitStandingCalculationAdapterFactory, postVerifyPolicyCoverageAdapterFactory };
|