@salesforce/lds-adapters-industries-insuranceclaim 1.428.0-dev2 → 1.428.0-dev21

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/sfdc/index.js CHANGED
@@ -13,7 +13,7 @@
13
13
  */
14
14
  /* proxy-compat-disable */
15
15
  import { withDefaultLuvio } from 'force/ldsEngine';
16
- import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$9, typeCheckConfig as typeCheckConfig$9 } from 'force/luvioEngine';
16
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$a, typeCheckConfig as typeCheckConfig$a } from 'force/luvioEngine';
17
17
 
18
18
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
19
19
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -81,30 +81,28 @@ function createLink(ref) {
81
81
  };
82
82
  }
83
83
 
84
- function validate$c(obj, path = 'ClaimCovPaymentAdjDetailsRep') {
84
+ function validate$e(obj, path = 'RecordIdsInput') {
85
85
  const v_error = (() => {
86
86
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
87
87
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
88
88
  }
89
- if (obj.adjustedAmount !== undefined) {
90
- const obj_adjustedAmount = obj.adjustedAmount;
91
- const path_adjustedAmount = path + '.adjustedAmount';
92
- if (typeof obj_adjustedAmount !== 'number') {
93
- return new TypeError('Expected "number" but received "' + typeof obj_adjustedAmount + '" (at "' + path_adjustedAmount + '")');
94
- }
89
+ const obj_list = obj.list;
90
+ const path_list = path + '.list';
91
+ if (!ArrayIsArray(obj_list)) {
92
+ return new TypeError('Expected "array" but received "' + typeof obj_list + '" (at "' + path_list + '")');
95
93
  }
96
- if (obj.adjustmentReason !== undefined) {
97
- const obj_adjustmentReason = obj.adjustmentReason;
98
- const path_adjustmentReason = path + '.adjustmentReason';
99
- if (typeof obj_adjustmentReason !== 'string') {
100
- return new TypeError('Expected "string" but received "' + typeof obj_adjustmentReason + '" (at "' + path_adjustmentReason + '")');
94
+ for (let i = 0; i < obj_list.length; i++) {
95
+ const obj_list_item = obj_list[i];
96
+ const path_list_item = path_list + '[' + i + ']';
97
+ if (typeof obj_list_item !== 'string') {
98
+ return new TypeError('Expected "string" but received "' + typeof obj_list_item + '" (at "' + path_list_item + '")');
101
99
  }
102
100
  }
103
101
  })();
104
102
  return v_error === undefined ? null : v_error;
105
103
  }
106
104
 
107
- function validate$b(obj, path = 'ErrorDetail') {
105
+ function validate$d(obj, path = 'ErrorDetail') {
108
106
  const v_error = (() => {
109
107
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
110
108
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -123,6 +121,211 @@ function validate$b(obj, path = 'ErrorDetail') {
123
121
  return v_error === undefined ? null : v_error;
124
122
  }
125
123
 
124
+ const TTL$9 = 1000;
125
+ const VERSION$9 = "ab08207178652bf5acf6509cd2d3fdbc";
126
+ function validate$c(obj, path = 'BulkPayClaimCoveragePaymentDetailRep') {
127
+ const v_error = (() => {
128
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
129
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
130
+ }
131
+ if (obj.errors !== undefined) {
132
+ const obj_errors = obj.errors;
133
+ const path_errors = path + '.errors';
134
+ if (!ArrayIsArray(obj_errors)) {
135
+ return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
136
+ }
137
+ for (let i = 0; i < obj_errors.length; i++) {
138
+ const obj_errors_item = obj_errors[i];
139
+ const path_errors_item = path_errors + '[' + i + ']';
140
+ const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
141
+ if (referencepath_errors_itemValidationError !== null) {
142
+ let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
143
+ message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
144
+ return new TypeError(message);
145
+ }
146
+ }
147
+ }
148
+ const obj_isSuccess = obj.isSuccess;
149
+ const path_isSuccess = path + '.isSuccess';
150
+ if (typeof obj_isSuccess !== 'boolean') {
151
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
152
+ }
153
+ if (obj.requestId !== undefined) {
154
+ const obj_requestId = obj.requestId;
155
+ const path_requestId = path + '.requestId';
156
+ if (typeof obj_requestId !== 'string') {
157
+ return new TypeError('Expected "string" but received "' + typeof obj_requestId + '" (at "' + path_requestId + '")');
158
+ }
159
+ }
160
+ })();
161
+ return v_error === undefined ? null : v_error;
162
+ }
163
+ const RepresentationType$9 = 'BulkPayClaimCoveragePaymentDetailRep';
164
+ function keyBuilder$9(luvio, config) {
165
+ return keyPrefix + '::' + RepresentationType$9 + ':' + config.isSuccess;
166
+ }
167
+ function keyBuilderFromType$9(luvio, object) {
168
+ const keyParams = {
169
+ isSuccess: object.isSuccess
170
+ };
171
+ return keyBuilder$9(luvio, keyParams);
172
+ }
173
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
174
+ return input;
175
+ }
176
+ const select$j = function BulkPayClaimCoveragePaymentDetailRepSelect() {
177
+ return {
178
+ kind: 'Fragment',
179
+ version: VERSION$9,
180
+ private: [],
181
+ opaque: true
182
+ };
183
+ };
184
+ function equals$9(existing, incoming) {
185
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
186
+ return false;
187
+ }
188
+ return true;
189
+ }
190
+ const ingest$9 = function BulkPayClaimCoveragePaymentDetailRepIngest(input, path, luvio, store, timestamp) {
191
+ if (process.env.NODE_ENV !== 'production') {
192
+ const validateError = validate$c(input);
193
+ if (validateError !== null) {
194
+ throw validateError;
195
+ }
196
+ }
197
+ const key = keyBuilderFromType$9(luvio, input);
198
+ const ttlToUse = TTL$9;
199
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "insuranceclaim", VERSION$9, RepresentationType$9, equals$9);
200
+ return createLink(key);
201
+ };
202
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
203
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
204
+ const rootKey = keyBuilderFromType$9(luvio, input);
205
+ rootKeySet.set(rootKey, {
206
+ namespace: keyPrefix,
207
+ representationName: RepresentationType$9,
208
+ mergeable: false
209
+ });
210
+ }
211
+
212
+ function select$i(luvio, params) {
213
+ return select$j();
214
+ }
215
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
216
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
217
+ }
218
+ function ingestSuccess$9(luvio, resourceParams, response) {
219
+ const { body } = response;
220
+ const key = keyBuilderFromType$9(luvio, body);
221
+ luvio.storeIngest(key, ingest$9, body);
222
+ const snapshot = luvio.storeLookup({
223
+ recordId: key,
224
+ node: select$i(),
225
+ variables: {},
226
+ });
227
+ if (process.env.NODE_ENV !== 'production') {
228
+ if (snapshot.state !== 'Fulfilled') {
229
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
230
+ }
231
+ }
232
+ deepFreeze(snapshot.data);
233
+ return snapshot;
234
+ }
235
+ function createResourceRequest$9(config) {
236
+ const headers = {};
237
+ return {
238
+ baseUri: '/services/data/v67.0',
239
+ basePath: '/connect/insurance/claims/coverages/payment-details/bulk-pay',
240
+ method: 'post',
241
+ body: config.body,
242
+ urlParams: {},
243
+ queryParams: {},
244
+ headers,
245
+ priority: 'normal',
246
+ };
247
+ }
248
+
249
+ const adapterName$9 = 'BulkPayClaimCoveragePaymentDetail';
250
+ const BulkPayClaimCoveragePaymentDetail_ConfigPropertyMetadata = [
251
+ generateParamConfigMetadata('recordIds', true, 2 /* Body */, 4 /* Unsupported */),
252
+ ];
253
+ const BulkPayClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, BulkPayClaimCoveragePaymentDetail_ConfigPropertyMetadata);
254
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$a(BulkPayClaimCoveragePaymentDetail_ConfigPropertyMetadata);
255
+ function typeCheckConfig$9(untrustedConfig) {
256
+ const config = {};
257
+ const untrustedConfig_recordIds = untrustedConfig.recordIds;
258
+ const referenceRecordIdsInputValidationError = validate$e(untrustedConfig_recordIds);
259
+ if (referenceRecordIdsInputValidationError === null) {
260
+ config.recordIds = untrustedConfig_recordIds;
261
+ }
262
+ return config;
263
+ }
264
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
265
+ if (!untrustedIsObject(untrustedConfig)) {
266
+ return null;
267
+ }
268
+ if (process.env.NODE_ENV !== 'production') {
269
+ validateConfig(untrustedConfig, configPropertyNames);
270
+ }
271
+ const config = typeCheckConfig$9(untrustedConfig);
272
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
273
+ return null;
274
+ }
275
+ return config;
276
+ }
277
+ function buildNetworkSnapshot$9(luvio, config, options) {
278
+ const resourceParams = createResourceParams$9(config);
279
+ const request = createResourceRequest$9(resourceParams);
280
+ return luvio.dispatchResourceRequest(request, options)
281
+ .then((response) => {
282
+ return luvio.handleSuccessResponse(() => {
283
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response);
284
+ return luvio.storeBroadcast().then(() => snapshot);
285
+ }, () => {
286
+ const cache = new StoreKeyMap();
287
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
288
+ return cache;
289
+ });
290
+ }, (response) => {
291
+ deepFreeze(response);
292
+ throw response;
293
+ });
294
+ }
295
+ const BulkPayClaimCoveragePaymentDetailAdapterFactory = (luvio) => {
296
+ return function BulkPayClaimCoveragePaymentDetail(untrustedConfig) {
297
+ const config = validateAdapterConfig$9(untrustedConfig, BulkPayClaimCoveragePaymentDetail_ConfigPropertyNames);
298
+ // Invalid or incomplete config
299
+ if (config === null) {
300
+ throw new Error('Invalid config for "BulkPayClaimCoveragePaymentDetail"');
301
+ }
302
+ return buildNetworkSnapshot$9(luvio, config);
303
+ };
304
+ };
305
+
306
+ function validate$b(obj, path = 'ClaimCovPaymentAdjDetailsRep') {
307
+ const v_error = (() => {
308
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
309
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
310
+ }
311
+ if (obj.adjustedAmount !== undefined) {
312
+ const obj_adjustedAmount = obj.adjustedAmount;
313
+ const path_adjustedAmount = path + '.adjustedAmount';
314
+ if (typeof obj_adjustedAmount !== 'number') {
315
+ return new TypeError('Expected "number" but received "' + typeof obj_adjustedAmount + '" (at "' + path_adjustedAmount + '")');
316
+ }
317
+ }
318
+ if (obj.adjustmentReason !== undefined) {
319
+ const obj_adjustmentReason = obj.adjustmentReason;
320
+ const path_adjustmentReason = path + '.adjustmentReason';
321
+ if (typeof obj_adjustmentReason !== 'string') {
322
+ return new TypeError('Expected "string" but received "' + typeof obj_adjustmentReason + '" (at "' + path_adjustmentReason + '")');
323
+ }
324
+ }
325
+ })();
326
+ return v_error === undefined ? null : v_error;
327
+ }
328
+
126
329
  function validate$a(obj, path = 'InsPolicyLimitTrackingDetailsRep') {
127
330
  const v_error = (() => {
128
331
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -242,7 +445,7 @@ function validate$9(obj, path = 'CalculateAdjustmentsRepresentation') {
242
445
  for (let i = 0; i < obj_claimCovPaymentAdjustments.length; i++) {
243
446
  const obj_claimCovPaymentAdjustments_item = obj_claimCovPaymentAdjustments[i];
244
447
  const path_claimCovPaymentAdjustments_item = path_claimCovPaymentAdjustments + '[' + i + ']';
245
- const referencepath_claimCovPaymentAdjustments_itemValidationError = validate$c(obj_claimCovPaymentAdjustments_item, path_claimCovPaymentAdjustments_item);
448
+ const referencepath_claimCovPaymentAdjustments_itemValidationError = validate$b(obj_claimCovPaymentAdjustments_item, path_claimCovPaymentAdjustments_item);
246
449
  if (referencepath_claimCovPaymentAdjustments_itemValidationError !== null) {
247
450
  let message = 'Object doesn\'t match ClaimCovPaymentAdjDetailsRep (at "' + path_claimCovPaymentAdjustments_item + '")\n';
248
451
  message += referencepath_claimCovPaymentAdjustments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -259,7 +462,7 @@ function validate$9(obj, path = 'CalculateAdjustmentsRepresentation') {
259
462
  for (let i = 0; i < obj_errors.length; i++) {
260
463
  const obj_errors_item = obj_errors[i];
261
464
  const path_errors_item = path_errors + '[' + i + ']';
262
- const referencepath_errors_itemValidationError = validate$b(obj_errors_item, path_errors_item);
465
+ const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
263
466
  if (referencepath_errors_itemValidationError !== null) {
264
467
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
265
468
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -387,10 +590,10 @@ const CalculateAdjustments_ConfigPropertyMetadata = [
387
590
  generateParamConfigMetadata('additionalFields', false, 2 /* Body */, 4 /* Unsupported */),
388
591
  ];
389
592
  const CalculateAdjustments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, CalculateAdjustments_ConfigPropertyMetadata);
390
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$9(CalculateAdjustments_ConfigPropertyMetadata);
593
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$a(CalculateAdjustments_ConfigPropertyMetadata);
391
594
  function typeCheckConfig$8(untrustedConfig) {
392
595
  const config = {};
393
- typeCheckConfig$9(untrustedConfig, config, CalculateAdjustments_ConfigPropertyMetadata);
596
+ typeCheckConfig$a(untrustedConfig, config, CalculateAdjustments_ConfigPropertyMetadata);
394
597
  const untrustedConfig_additionalFields = untrustedConfig.additionalFields;
395
598
  config.additionalFields = untrustedConfig_additionalFields;
396
599
  return config;
@@ -453,7 +656,7 @@ function validate$8(obj, path = 'CancelClaimCoveragePaymentDetailRep') {
453
656
  for (let i = 0; i < obj_errors.length; i++) {
454
657
  const obj_errors_item = obj_errors[i];
455
658
  const path_errors_item = path_errors + '[' + i + ']';
456
- const referencepath_errors_itemValidationError = validate$b(obj_errors_item, path_errors_item);
659
+ const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
457
660
  if (referencepath_errors_itemValidationError !== null) {
458
661
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
459
662
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -569,10 +772,10 @@ const CancelClaimCoveragePaymentDetail_ConfigPropertyMetadata = [
569
772
  generateParamConfigMetadata('paymentDetailId', true, 0 /* UrlParameter */, 0 /* String */),
570
773
  ];
571
774
  const CancelClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, CancelClaimCoveragePaymentDetail_ConfigPropertyMetadata);
572
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$9(CancelClaimCoveragePaymentDetail_ConfigPropertyMetadata);
775
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$a(CancelClaimCoveragePaymentDetail_ConfigPropertyMetadata);
573
776
  function typeCheckConfig$7(untrustedConfig) {
574
777
  const config = {};
575
- typeCheckConfig$9(untrustedConfig, config, CancelClaimCoveragePaymentDetail_ConfigPropertyMetadata);
778
+ typeCheckConfig$a(untrustedConfig, config, CancelClaimCoveragePaymentDetail_ConfigPropertyMetadata);
576
779
  return config;
577
780
  }
578
781
  function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
@@ -643,7 +846,7 @@ function validate$7(obj, path = 'CreateClaimCoveragePaymentDetailRep') {
643
846
  for (let i = 0; i < obj_errors.length; i++) {
644
847
  const obj_errors_item = obj_errors[i];
645
848
  const path_errors_item = path_errors + '[' + i + ']';
646
- const referencepath_errors_itemValidationError = validate$b(obj_errors_item, path_errors_item);
849
+ const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
647
850
  if (referencepath_errors_itemValidationError !== null) {
648
851
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
649
852
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -780,10 +983,10 @@ const CreateClaimCoveragePaymentDetail_ConfigPropertyMetadata = [
780
983
  generateParamConfigMetadata('limitUnitCount', false, 2 /* Body */, 3 /* Integer */),
781
984
  ];
782
985
  const CreateClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, CreateClaimCoveragePaymentDetail_ConfigPropertyMetadata);
783
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$9(CreateClaimCoveragePaymentDetail_ConfigPropertyMetadata);
986
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$a(CreateClaimCoveragePaymentDetail_ConfigPropertyMetadata);
784
987
  function typeCheckConfig$6(untrustedConfig) {
785
988
  const config = {};
786
- typeCheckConfig$9(untrustedConfig, config, CreateClaimCoveragePaymentDetail_ConfigPropertyMetadata);
989
+ typeCheckConfig$a(untrustedConfig, config, CreateClaimCoveragePaymentDetail_ConfigPropertyMetadata);
787
990
  const untrustedConfig_additionalFields = untrustedConfig.additionalFields;
788
991
  config.additionalFields = untrustedConfig_additionalFields;
789
992
  return config;
@@ -846,7 +1049,7 @@ function validate$6(obj, path = 'DeleteClaimCoveragePaymentDetailRep') {
846
1049
  for (let i = 0; i < obj_errors.length; i++) {
847
1050
  const obj_errors_item = obj_errors[i];
848
1051
  const path_errors_item = path_errors + '[' + i + ']';
849
- const referencepath_errors_itemValidationError = validate$b(obj_errors_item, path_errors_item);
1052
+ const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
850
1053
  if (referencepath_errors_itemValidationError !== null) {
851
1054
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
852
1055
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -962,10 +1165,10 @@ const DeleteClaimCoveragePaymentDetail_ConfigPropertyMetadata = [
962
1165
  generateParamConfigMetadata('paymentDetailId', true, 0 /* UrlParameter */, 0 /* String */),
963
1166
  ];
964
1167
  const DeleteClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, DeleteClaimCoveragePaymentDetail_ConfigPropertyMetadata);
965
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$9(DeleteClaimCoveragePaymentDetail_ConfigPropertyMetadata);
1168
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$a(DeleteClaimCoveragePaymentDetail_ConfigPropertyMetadata);
966
1169
  function typeCheckConfig$5(untrustedConfig) {
967
1170
  const config = {};
968
- typeCheckConfig$9(untrustedConfig, config, DeleteClaimCoveragePaymentDetail_ConfigPropertyMetadata);
1171
+ typeCheckConfig$a(untrustedConfig, config, DeleteClaimCoveragePaymentDetail_ConfigPropertyMetadata);
969
1172
  return config;
970
1173
  }
971
1174
  function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
@@ -1036,7 +1239,7 @@ function validate$5(obj, path = 'EditClaimCoveragePaymentDetailRep') {
1036
1239
  for (let i = 0; i < obj_errors.length; i++) {
1037
1240
  const obj_errors_item = obj_errors[i];
1038
1241
  const path_errors_item = path_errors + '[' + i + ']';
1039
- const referencepath_errors_itemValidationError = validate$b(obj_errors_item, path_errors_item);
1242
+ const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
1040
1243
  if (referencepath_errors_itemValidationError !== null) {
1041
1244
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
1042
1245
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1167,10 +1370,10 @@ const EditClaimCoveragePaymentDetail_ConfigPropertyMetadata = [
1167
1370
  generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
1168
1371
  ];
1169
1372
  const EditClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, EditClaimCoveragePaymentDetail_ConfigPropertyMetadata);
1170
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$9(EditClaimCoveragePaymentDetail_ConfigPropertyMetadata);
1373
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$a(EditClaimCoveragePaymentDetail_ConfigPropertyMetadata);
1171
1374
  function typeCheckConfig$4(untrustedConfig) {
1172
1375
  const config = {};
1173
- typeCheckConfig$9(untrustedConfig, config, EditClaimCoveragePaymentDetail_ConfigPropertyMetadata);
1376
+ typeCheckConfig$a(untrustedConfig, config, EditClaimCoveragePaymentDetail_ConfigPropertyMetadata);
1174
1377
  const untrustedConfig_additionalFields = untrustedConfig.additionalFields;
1175
1378
  config.additionalFields = untrustedConfig_additionalFields;
1176
1379
  return config;
@@ -1233,7 +1436,7 @@ function validate$4(obj, path = 'PayClaimCoveragePaymentDetailRep') {
1233
1436
  for (let i = 0; i < obj_errors.length; i++) {
1234
1437
  const obj_errors_item = obj_errors[i];
1235
1438
  const path_errors_item = path_errors + '[' + i + ']';
1236
- const referencepath_errors_itemValidationError = validate$b(obj_errors_item, path_errors_item);
1439
+ const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
1237
1440
  if (referencepath_errors_itemValidationError !== null) {
1238
1441
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
1239
1442
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1342,10 +1545,10 @@ const PayClaimCoveragePaymentDetail_ConfigPropertyMetadata = [
1342
1545
  generateParamConfigMetadata('coverageId', true, 0 /* UrlParameter */, 0 /* String */),
1343
1546
  ];
1344
1547
  const PayClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, PayClaimCoveragePaymentDetail_ConfigPropertyMetadata);
1345
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$9(PayClaimCoveragePaymentDetail_ConfigPropertyMetadata);
1548
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$a(PayClaimCoveragePaymentDetail_ConfigPropertyMetadata);
1346
1549
  function typeCheckConfig$3(untrustedConfig) {
1347
1550
  const config = {};
1348
- typeCheckConfig$9(untrustedConfig, config, PayClaimCoveragePaymentDetail_ConfigPropertyMetadata);
1551
+ typeCheckConfig$a(untrustedConfig, config, PayClaimCoveragePaymentDetail_ConfigPropertyMetadata);
1349
1552
  return config;
1350
1553
  }
1351
1554
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -1420,7 +1623,7 @@ function validate$3(obj, path = 'PayExGratiaClaimCvrPaymentDetailRep') {
1420
1623
  for (let i = 0; i < obj_errors.length; i++) {
1421
1624
  const obj_errors_item = obj_errors[i];
1422
1625
  const path_errors_item = path_errors + '[' + i + ']';
1423
- const referencepath_errors_itemValidationError = validate$b(obj_errors_item, path_errors_item);
1626
+ const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
1424
1627
  if (referencepath_errors_itemValidationError !== null) {
1425
1628
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
1426
1629
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1557,10 +1760,10 @@ const PayExGratiaClaimCvrPaymentDetail_ConfigPropertyMetadata = [
1557
1760
  generateParamConfigMetadata('reason', false, 2 /* Body */, 0 /* String */),
1558
1761
  ];
1559
1762
  const PayExGratiaClaimCvrPaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, PayExGratiaClaimCvrPaymentDetail_ConfigPropertyMetadata);
1560
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$9(PayExGratiaClaimCvrPaymentDetail_ConfigPropertyMetadata);
1763
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$a(PayExGratiaClaimCvrPaymentDetail_ConfigPropertyMetadata);
1561
1764
  function typeCheckConfig$2(untrustedConfig) {
1562
1765
  const config = {};
1563
- typeCheckConfig$9(untrustedConfig, config, PayExGratiaClaimCvrPaymentDetail_ConfigPropertyMetadata);
1766
+ typeCheckConfig$a(untrustedConfig, config, PayExGratiaClaimCvrPaymentDetail_ConfigPropertyMetadata);
1564
1767
  return config;
1565
1768
  }
1566
1769
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -1801,7 +2004,7 @@ function validate$1(obj, path = 'InsPolicyLmtCalcStandingRepresentation') {
1801
2004
  for (let i = 0; i < obj_errors.length; i++) {
1802
2005
  const obj_errors_item = obj_errors[i];
1803
2006
  const path_errors_item = path_errors + '[' + i + ']';
1804
- const referencepath_errors_itemValidationError = validate$b(obj_errors_item, path_errors_item);
2007
+ const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
1805
2008
  if (referencepath_errors_itemValidationError !== null) {
1806
2009
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
1807
2010
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1932,10 +2135,10 @@ const PolicyLimitStandingCalculation_ConfigPropertyMetadata = [
1932
2135
  generateParamConfigMetadata('trackingDate', false, 2 /* Body */, 0 /* String */),
1933
2136
  ];
1934
2137
  const PolicyLimitStandingCalculation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, PolicyLimitStandingCalculation_ConfigPropertyMetadata);
1935
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$9(PolicyLimitStandingCalculation_ConfigPropertyMetadata);
2138
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$a(PolicyLimitStandingCalculation_ConfigPropertyMetadata);
1936
2139
  function typeCheckConfig$1(untrustedConfig) {
1937
2140
  const config = {};
1938
- typeCheckConfig$9(untrustedConfig, config, PolicyLimitStandingCalculation_ConfigPropertyMetadata);
2141
+ typeCheckConfig$a(untrustedConfig, config, PolicyLimitStandingCalculation_ConfigPropertyMetadata);
1939
2142
  const untrustedConfig_options = untrustedConfig.options;
1940
2143
  config.options = untrustedConfig_options;
1941
2144
  return config;
@@ -1998,7 +2201,7 @@ function validate(obj, path = 'VerifyPolicyCoverageRepresentation') {
1998
2201
  for (let i = 0; i < obj_errors.length; i++) {
1999
2202
  const obj_errors_item = obj_errors[i];
2000
2203
  const path_errors_item = path_errors + '[' + i + ']';
2001
- const referencepath_errors_itemValidationError = validate$b(obj_errors_item, path_errors_item);
2204
+ const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
2002
2205
  if (referencepath_errors_itemValidationError !== null) {
2003
2206
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
2004
2207
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2108,10 +2311,10 @@ const postVerifyPolicyCoverage_ConfigPropertyMetadata = [
2108
2311
  generateParamConfigMetadata('lossDate', true, 2 /* Body */, 0 /* String */),
2109
2312
  ];
2110
2313
  const postVerifyPolicyCoverage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postVerifyPolicyCoverage_ConfigPropertyMetadata);
2111
- const createResourceParams = /*#__PURE__*/ createResourceParams$9(postVerifyPolicyCoverage_ConfigPropertyMetadata);
2314
+ const createResourceParams = /*#__PURE__*/ createResourceParams$a(postVerifyPolicyCoverage_ConfigPropertyMetadata);
2112
2315
  function typeCheckConfig(untrustedConfig) {
2113
2316
  const config = {};
2114
- typeCheckConfig$9(untrustedConfig, config, postVerifyPolicyCoverage_ConfigPropertyMetadata);
2317
+ typeCheckConfig$a(untrustedConfig, config, postVerifyPolicyCoverage_ConfigPropertyMetadata);
2115
2318
  return config;
2116
2319
  }
2117
2320
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -2156,6 +2359,7 @@ const postVerifyPolicyCoverageAdapterFactory = (luvio) => {
2156
2359
  };
2157
2360
  };
2158
2361
 
2362
+ let BulkPayClaimCoveragePaymentDetail;
2159
2363
  let CalculateAdjustments;
2160
2364
  let CancelClaimCoveragePaymentDetail;
2161
2365
  let CreateClaimCoveragePaymentDetail;
@@ -2173,6 +2377,7 @@ function bindExportsTo(luvio) {
2173
2377
  return (config) => adapter(config).then((snapshot) => snapshot.data);
2174
2378
  }
2175
2379
  return {
2380
+ BulkPayClaimCoveragePaymentDetail: unwrapSnapshotData(BulkPayClaimCoveragePaymentDetailAdapterFactory),
2176
2381
  CalculateAdjustments: unwrapSnapshotData(CalculateAdjustmentsAdapterFactory),
2177
2382
  CancelClaimCoveragePaymentDetail: unwrapSnapshotData(CancelClaimCoveragePaymentDetailAdapterFactory),
2178
2383
  CreateClaimCoveragePaymentDetail: unwrapSnapshotData(CreateClaimCoveragePaymentDetailAdapterFactory),
@@ -2188,6 +2393,7 @@ function bindExportsTo(luvio) {
2188
2393
  }
2189
2394
  withDefaultLuvio((luvio) => {
2190
2395
  ({
2396
+ BulkPayClaimCoveragePaymentDetail,
2191
2397
  CalculateAdjustments,
2192
2398
  CancelClaimCoveragePaymentDetail,
2193
2399
  CreateClaimCoveragePaymentDetail,
@@ -2200,5 +2406,5 @@ withDefaultLuvio((luvio) => {
2200
2406
  } = bindExportsTo(luvio));
2201
2407
  });
2202
2408
 
2203
- export { CalculateAdjustments, CancelClaimCoveragePaymentDetail, CreateClaimCoveragePaymentDetail, DeleteClaimCoveragePaymentDetail, EditClaimCoveragePaymentDetail, PayClaimCoveragePaymentDetail, PayExGratiaClaimCvrPaymentDetail, PolicyLimitStandingCalculation, postVerifyPolicyCoverage };
2204
- // version: 1.428.0-dev2-2d5e0a6e5f
2409
+ export { BulkPayClaimCoveragePaymentDetail, CalculateAdjustments, CancelClaimCoveragePaymentDetail, CreateClaimCoveragePaymentDetail, DeleteClaimCoveragePaymentDetail, EditClaimCoveragePaymentDetail, PayClaimCoveragePaymentDetail, PayExGratiaClaimCvrPaymentDetail, PolicyLimitStandingCalculation, postVerifyPolicyCoverage };
2410
+ // version: 1.428.0-dev21-133a7da4f5
package/src/raml/api.raml CHANGED
@@ -619,6 +619,42 @@ types:
619
619
  description: Indicates whether the API operation was successful
620
620
  type: boolean
621
621
  required: true
622
+ RecordIdsInput:
623
+ description: Input representation containing a list of record IDs
624
+ type: object
625
+ properties:
626
+ list:
627
+ description: List of record IDs
628
+ type: array
629
+ items:
630
+ type: string
631
+ required: true
632
+ BulkPayClaimCvrPaymentDetailInputRep:
633
+ description: Input representation to process bulk payments for the claim coverage payment detail records
634
+ type: object
635
+ properties:
636
+ recordIds:
637
+ description: List of claim coverage payment detail records for which payments must be processed
638
+ type: RecordIdsInput
639
+ required: true
640
+ BulkPayClaimCoveragePaymentDetailRep:
641
+ description: Output representation of the payment processing results for a list of claim coverage payment detail records
642
+ type: object
643
+ properties:
644
+ requestId:
645
+ description: System-generated ID that's used to track the asynchronous bulk payment processing job
646
+ type: string
647
+ required: false
648
+ isSuccess:
649
+ description: Indicates whether the API operation is successful (true) or not (false)
650
+ type: boolean
651
+ required: true
652
+ errors:
653
+ description: List of errors that are shown when the API operation fails
654
+ type: array
655
+ items:
656
+ type: ErrorDetail
657
+ required: false
622
658
 
623
659
  /connect:
624
660
  /insurance:
@@ -794,6 +830,20 @@ types:
794
830
  description: Unique Id to represent a claim coverage
795
831
  type: string
796
832
  required: true
833
+ /claims/coverages/payment-details/bulk-pay:
834
+ post:
835
+ displayName: postBulkPayClaimCoveragePaymentDetail
836
+ description: HTTP POST Method to process bulk payments for claim coverage payment detail records
837
+ responses:
838
+ '200':
839
+ description: Success
840
+ body:
841
+ application/json:
842
+ type: BulkPayClaimCoveragePaymentDetailRep
843
+ body:
844
+ application/json:
845
+ type: BulkPayClaimCvrPaymentDetailInputRep
846
+ (oas-body-name): BulkPayClaimCoveragePaymentDetailInput
797
847
  /policy-limit/calculate-standings:
798
848
  post:
799
849
  displayName: postInsurancePolicyLimitStandingCalculation
@@ -54,6 +54,11 @@ types:
54
54
  (luvio.opaque): true
55
55
  (luvio.key):
56
56
  isSuccess: isSuccess
57
+ BulkPayClaimCoveragePaymentDetailRep:
58
+ (luvio.ttl): 1000
59
+ (luvio.opaque): true
60
+ (luvio.key):
61
+ isSuccess: isSuccess
57
62
 
58
63
  /connect/insurance:
59
64
  /claims/{claimId}/coverages/{coverageId}:
@@ -92,6 +97,11 @@ types:
92
97
  description: Post Resource method for calculate adjustment during the creation of Loss Item
93
98
  (luvio.adapter):
94
99
  name: CalculateAdjustments
100
+ /claims/coverages/payment-details/bulk-pay:
101
+ post:
102
+ description: HTTP POST Method to process bulk payments for claim coverage payment detail records
103
+ (luvio.adapter):
104
+ name: BulkPayClaimCoveragePaymentDetail
95
105
  /policy-limit/calculate-standings:
96
106
  post:
97
107
  (luvio.adapter):