@salesforce/lds-adapters-industries-claim 1.370.0 → 1.372.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/industries-claim.js +303 -200
- package/dist/es/es2018/types/src/generated/adapters/UpdateClaim.d.ts +18 -2
- package/dist/es/es2018/types/src/generated/resources/patchConnectClaimsByClaimId.d.ts +18 -2
- package/dist/es/es2018/types/src/generated/types/ClaimItemInputRepresentation.d.ts +18 -17
- package/dist/es/es2018/types/src/generated/types/CreateClaimOutputRepresentation.d.ts +9 -9
- package/package.json +3 -3
- package/sfdc/index.js +282 -179
- package/src/raml/api.raml +24 -20
- package/src/raml/luvio.raml +1 -1
- package/dist/es/es2018/types/src/generated/types/ClaimInputWrapperRepresentation.d.ts +0 -29
|
@@ -72,7 +72,7 @@ function createLink(ref) {
|
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
function validate$
|
|
75
|
+
function validate$c(obj, path = 'ClaimAttributeInputRepresentation') {
|
|
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 + '")');
|
|
@@ -95,7 +95,7 @@ function validate$d(obj, path = 'ClaimAttributeInputRepresentation') {
|
|
|
95
95
|
return v_error === undefined ? null : v_error;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
function validate$
|
|
98
|
+
function validate$b(obj, path = 'ClaimAttributesInput') {
|
|
99
99
|
const v_error = (() => {
|
|
100
100
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
101
101
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -108,7 +108,7 @@ function validate$c(obj, path = 'ClaimAttributesInput') {
|
|
|
108
108
|
for (let i = 0; i < obj_list.length; i++) {
|
|
109
109
|
const obj_list_item = obj_list[i];
|
|
110
110
|
const path_list_item = path_list + '[' + i + ']';
|
|
111
|
-
const referencepath_list_itemValidationError = validate$
|
|
111
|
+
const referencepath_list_itemValidationError = validate$c(obj_list_item, path_list_item);
|
|
112
112
|
if (referencepath_list_itemValidationError !== null) {
|
|
113
113
|
let message = 'Object doesn\'t match ClaimAttributeInputRepresentation (at "' + path_list_item + '")\n';
|
|
114
114
|
message += referencepath_list_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -119,7 +119,7 @@ function validate$c(obj, path = 'ClaimAttributesInput') {
|
|
|
119
119
|
return v_error === undefined ? null : v_error;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
function validate$
|
|
122
|
+
function validate$a(obj, path = 'ClaimRelatedObjectInputRepresentation') {
|
|
123
123
|
const v_error = (() => {
|
|
124
124
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
125
125
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -142,7 +142,7 @@ function validate$b(obj, path = 'ClaimRelatedObjectInputRepresentation') {
|
|
|
142
142
|
return v_error === undefined ? null : v_error;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
function validate$
|
|
145
|
+
function validate$9(obj, path = 'ClaimRelatedObjectsInput') {
|
|
146
146
|
const v_error = (() => {
|
|
147
147
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
148
148
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -155,7 +155,7 @@ function validate$a(obj, path = 'ClaimRelatedObjectsInput') {
|
|
|
155
155
|
for (let i = 0; i < obj_list.length; i++) {
|
|
156
156
|
const obj_list_item = obj_list[i];
|
|
157
157
|
const path_list_item = path_list + '[' + i + ']';
|
|
158
|
-
const referencepath_list_itemValidationError = validate$
|
|
158
|
+
const referencepath_list_itemValidationError = validate$a(obj_list_item, path_list_item);
|
|
159
159
|
if (referencepath_list_itemValidationError !== null) {
|
|
160
160
|
let message = 'Object doesn\'t match ClaimRelatedObjectInputRepresentation (at "' + path_list_item + '")\n';
|
|
161
161
|
message += referencepath_list_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -166,7 +166,7 @@ function validate$a(obj, path = 'ClaimRelatedObjectsInput') {
|
|
|
166
166
|
return v_error === undefined ? null : v_error;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
function validate$
|
|
169
|
+
function validate$8(obj, path = 'ClaimItemInputRepresentation') {
|
|
170
170
|
const v_error = (() => {
|
|
171
171
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
172
172
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -186,18 +186,60 @@ function validate$9(obj, path = 'ClaimItemInputRepresentation') {
|
|
|
186
186
|
if (obj.attributes !== undefined) {
|
|
187
187
|
const obj_attributes = obj.attributes;
|
|
188
188
|
const path_attributes = path + '.attributes';
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
189
|
+
let obj_attributes_union0 = null;
|
|
190
|
+
const obj_attributes_union0_error = (() => {
|
|
191
|
+
const referencepath_attributesValidationError = validate$b(obj_attributes, path_attributes);
|
|
192
|
+
if (referencepath_attributesValidationError !== null) {
|
|
193
|
+
let message = 'Object doesn\'t match ClaimAttributesInput (at "' + path_attributes + '")\n';
|
|
194
|
+
message += referencepath_attributesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
195
|
+
return new TypeError(message);
|
|
196
|
+
}
|
|
197
|
+
})();
|
|
198
|
+
if (obj_attributes_union0_error != null) {
|
|
199
|
+
obj_attributes_union0 = obj_attributes_union0_error.message;
|
|
200
|
+
}
|
|
201
|
+
let obj_attributes_union1 = null;
|
|
202
|
+
const obj_attributes_union1_error = (() => {
|
|
203
|
+
if (obj_attributes !== null) {
|
|
204
|
+
return new TypeError('Expected "null" but received "' + typeof obj_attributes + '" (at "' + path_attributes + '")');
|
|
205
|
+
}
|
|
206
|
+
})();
|
|
207
|
+
if (obj_attributes_union1_error != null) {
|
|
208
|
+
obj_attributes_union1 = obj_attributes_union1_error.message;
|
|
209
|
+
}
|
|
210
|
+
if (obj_attributes_union0 && obj_attributes_union1) {
|
|
211
|
+
let message = 'Object doesn\'t match union (at "' + path_attributes + '")';
|
|
212
|
+
message += '\n' + obj_attributes_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
213
|
+
message += '\n' + obj_attributes_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
193
214
|
return new TypeError(message);
|
|
194
215
|
}
|
|
195
216
|
}
|
|
196
217
|
if (obj.category !== undefined) {
|
|
197
218
|
const obj_category = obj.category;
|
|
198
219
|
const path_category = path + '.category';
|
|
199
|
-
|
|
200
|
-
|
|
220
|
+
let obj_category_union0 = null;
|
|
221
|
+
const obj_category_union0_error = (() => {
|
|
222
|
+
if (typeof obj_category !== 'string') {
|
|
223
|
+
return new TypeError('Expected "string" but received "' + typeof obj_category + '" (at "' + path_category + '")');
|
|
224
|
+
}
|
|
225
|
+
})();
|
|
226
|
+
if (obj_category_union0_error != null) {
|
|
227
|
+
obj_category_union0 = obj_category_union0_error.message;
|
|
228
|
+
}
|
|
229
|
+
let obj_category_union1 = null;
|
|
230
|
+
const obj_category_union1_error = (() => {
|
|
231
|
+
if (obj_category !== null) {
|
|
232
|
+
return new TypeError('Expected "null" but received "' + typeof obj_category + '" (at "' + path_category + '")');
|
|
233
|
+
}
|
|
234
|
+
})();
|
|
235
|
+
if (obj_category_union1_error != null) {
|
|
236
|
+
obj_category_union1 = obj_category_union1_error.message;
|
|
237
|
+
}
|
|
238
|
+
if (obj_category_union0 && obj_category_union1) {
|
|
239
|
+
let message = 'Object doesn\'t match union (at "' + path_category + '")';
|
|
240
|
+
message += '\n' + obj_category_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
241
|
+
message += '\n' + obj_category_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
242
|
+
return new TypeError(message);
|
|
201
243
|
}
|
|
202
244
|
}
|
|
203
245
|
const obj_instanceKey = obj.instanceKey;
|
|
@@ -208,45 +250,171 @@ function validate$9(obj, path = 'ClaimItemInputRepresentation') {
|
|
|
208
250
|
if (obj.insurancePolicyCoverageId !== undefined) {
|
|
209
251
|
const obj_insurancePolicyCoverageId = obj.insurancePolicyCoverageId;
|
|
210
252
|
const path_insurancePolicyCoverageId = path + '.insurancePolicyCoverageId';
|
|
211
|
-
|
|
212
|
-
|
|
253
|
+
let obj_insurancePolicyCoverageId_union0 = null;
|
|
254
|
+
const obj_insurancePolicyCoverageId_union0_error = (() => {
|
|
255
|
+
if (typeof obj_insurancePolicyCoverageId !== 'string') {
|
|
256
|
+
return new TypeError('Expected "string" but received "' + typeof obj_insurancePolicyCoverageId + '" (at "' + path_insurancePolicyCoverageId + '")');
|
|
257
|
+
}
|
|
258
|
+
})();
|
|
259
|
+
if (obj_insurancePolicyCoverageId_union0_error != null) {
|
|
260
|
+
obj_insurancePolicyCoverageId_union0 = obj_insurancePolicyCoverageId_union0_error.message;
|
|
261
|
+
}
|
|
262
|
+
let obj_insurancePolicyCoverageId_union1 = null;
|
|
263
|
+
const obj_insurancePolicyCoverageId_union1_error = (() => {
|
|
264
|
+
if (obj_insurancePolicyCoverageId !== null) {
|
|
265
|
+
return new TypeError('Expected "null" but received "' + typeof obj_insurancePolicyCoverageId + '" (at "' + path_insurancePolicyCoverageId + '")');
|
|
266
|
+
}
|
|
267
|
+
})();
|
|
268
|
+
if (obj_insurancePolicyCoverageId_union1_error != null) {
|
|
269
|
+
obj_insurancePolicyCoverageId_union1 = obj_insurancePolicyCoverageId_union1_error.message;
|
|
270
|
+
}
|
|
271
|
+
if (obj_insurancePolicyCoverageId_union0 && obj_insurancePolicyCoverageId_union1) {
|
|
272
|
+
let message = 'Object doesn\'t match union (at "' + path_insurancePolicyCoverageId + '")';
|
|
273
|
+
message += '\n' + obj_insurancePolicyCoverageId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
274
|
+
message += '\n' + obj_insurancePolicyCoverageId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
275
|
+
return new TypeError(message);
|
|
213
276
|
}
|
|
214
277
|
}
|
|
215
278
|
if (obj.insuredItemId !== undefined) {
|
|
216
279
|
const obj_insuredItemId = obj.insuredItemId;
|
|
217
280
|
const path_insuredItemId = path + '.insuredItemId';
|
|
218
|
-
|
|
219
|
-
|
|
281
|
+
let obj_insuredItemId_union0 = null;
|
|
282
|
+
const obj_insuredItemId_union0_error = (() => {
|
|
283
|
+
if (typeof obj_insuredItemId !== 'string') {
|
|
284
|
+
return new TypeError('Expected "string" but received "' + typeof obj_insuredItemId + '" (at "' + path_insuredItemId + '")');
|
|
285
|
+
}
|
|
286
|
+
})();
|
|
287
|
+
if (obj_insuredItemId_union0_error != null) {
|
|
288
|
+
obj_insuredItemId_union0 = obj_insuredItemId_union0_error.message;
|
|
289
|
+
}
|
|
290
|
+
let obj_insuredItemId_union1 = null;
|
|
291
|
+
const obj_insuredItemId_union1_error = (() => {
|
|
292
|
+
if (obj_insuredItemId !== null) {
|
|
293
|
+
return new TypeError('Expected "null" but received "' + typeof obj_insuredItemId + '" (at "' + path_insuredItemId + '")');
|
|
294
|
+
}
|
|
295
|
+
})();
|
|
296
|
+
if (obj_insuredItemId_union1_error != null) {
|
|
297
|
+
obj_insuredItemId_union1 = obj_insuredItemId_union1_error.message;
|
|
298
|
+
}
|
|
299
|
+
if (obj_insuredItemId_union0 && obj_insuredItemId_union1) {
|
|
300
|
+
let message = 'Object doesn\'t match union (at "' + path_insuredItemId + '")';
|
|
301
|
+
message += '\n' + obj_insuredItemId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
302
|
+
message += '\n' + obj_insuredItemId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
303
|
+
return new TypeError(message);
|
|
220
304
|
}
|
|
221
305
|
}
|
|
222
306
|
if (obj.name !== undefined) {
|
|
223
307
|
const obj_name = obj.name;
|
|
224
308
|
const path_name = path + '.name';
|
|
225
|
-
|
|
226
|
-
|
|
309
|
+
let obj_name_union0 = null;
|
|
310
|
+
const obj_name_union0_error = (() => {
|
|
311
|
+
if (typeof obj_name !== 'string') {
|
|
312
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
313
|
+
}
|
|
314
|
+
})();
|
|
315
|
+
if (obj_name_union0_error != null) {
|
|
316
|
+
obj_name_union0 = obj_name_union0_error.message;
|
|
317
|
+
}
|
|
318
|
+
let obj_name_union1 = null;
|
|
319
|
+
const obj_name_union1_error = (() => {
|
|
320
|
+
if (obj_name !== null) {
|
|
321
|
+
return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
322
|
+
}
|
|
323
|
+
})();
|
|
324
|
+
if (obj_name_union1_error != null) {
|
|
325
|
+
obj_name_union1 = obj_name_union1_error.message;
|
|
326
|
+
}
|
|
327
|
+
if (obj_name_union0 && obj_name_union1) {
|
|
328
|
+
let message = 'Object doesn\'t match union (at "' + path_name + '")';
|
|
329
|
+
message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
330
|
+
message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
331
|
+
return new TypeError(message);
|
|
227
332
|
}
|
|
228
333
|
}
|
|
229
334
|
if (obj.participantInstanceKey !== undefined) {
|
|
230
335
|
const obj_participantInstanceKey = obj.participantInstanceKey;
|
|
231
336
|
const path_participantInstanceKey = path + '.participantInstanceKey';
|
|
232
|
-
|
|
233
|
-
|
|
337
|
+
let obj_participantInstanceKey_union0 = null;
|
|
338
|
+
const obj_participantInstanceKey_union0_error = (() => {
|
|
339
|
+
if (typeof obj_participantInstanceKey !== 'string') {
|
|
340
|
+
return new TypeError('Expected "string" but received "' + typeof obj_participantInstanceKey + '" (at "' + path_participantInstanceKey + '")');
|
|
341
|
+
}
|
|
342
|
+
})();
|
|
343
|
+
if (obj_participantInstanceKey_union0_error != null) {
|
|
344
|
+
obj_participantInstanceKey_union0 = obj_participantInstanceKey_union0_error.message;
|
|
345
|
+
}
|
|
346
|
+
let obj_participantInstanceKey_union1 = null;
|
|
347
|
+
const obj_participantInstanceKey_union1_error = (() => {
|
|
348
|
+
if (obj_participantInstanceKey !== null) {
|
|
349
|
+
return new TypeError('Expected "null" but received "' + typeof obj_participantInstanceKey + '" (at "' + path_participantInstanceKey + '")');
|
|
350
|
+
}
|
|
351
|
+
})();
|
|
352
|
+
if (obj_participantInstanceKey_union1_error != null) {
|
|
353
|
+
obj_participantInstanceKey_union1 = obj_participantInstanceKey_union1_error.message;
|
|
354
|
+
}
|
|
355
|
+
if (obj_participantInstanceKey_union0 && obj_participantInstanceKey_union1) {
|
|
356
|
+
let message = 'Object doesn\'t match union (at "' + path_participantInstanceKey + '")';
|
|
357
|
+
message += '\n' + obj_participantInstanceKey_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
358
|
+
message += '\n' + obj_participantInstanceKey_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
359
|
+
return new TypeError(message);
|
|
234
360
|
}
|
|
235
361
|
}
|
|
236
362
|
if (obj.productCode !== undefined) {
|
|
237
363
|
const obj_productCode = obj.productCode;
|
|
238
364
|
const path_productCode = path + '.productCode';
|
|
239
|
-
|
|
240
|
-
|
|
365
|
+
let obj_productCode_union0 = null;
|
|
366
|
+
const obj_productCode_union0_error = (() => {
|
|
367
|
+
if (typeof obj_productCode !== 'string') {
|
|
368
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productCode + '" (at "' + path_productCode + '")');
|
|
369
|
+
}
|
|
370
|
+
})();
|
|
371
|
+
if (obj_productCode_union0_error != null) {
|
|
372
|
+
obj_productCode_union0 = obj_productCode_union0_error.message;
|
|
373
|
+
}
|
|
374
|
+
let obj_productCode_union1 = null;
|
|
375
|
+
const obj_productCode_union1_error = (() => {
|
|
376
|
+
if (obj_productCode !== null) {
|
|
377
|
+
return new TypeError('Expected "null" but received "' + typeof obj_productCode + '" (at "' + path_productCode + '")');
|
|
378
|
+
}
|
|
379
|
+
})();
|
|
380
|
+
if (obj_productCode_union1_error != null) {
|
|
381
|
+
obj_productCode_union1 = obj_productCode_union1_error.message;
|
|
382
|
+
}
|
|
383
|
+
if (obj_productCode_union0 && obj_productCode_union1) {
|
|
384
|
+
let message = 'Object doesn\'t match union (at "' + path_productCode + '")';
|
|
385
|
+
message += '\n' + obj_productCode_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
386
|
+
message += '\n' + obj_productCode_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
387
|
+
return new TypeError(message);
|
|
241
388
|
}
|
|
242
389
|
}
|
|
243
390
|
if (obj.relatedObjects !== undefined) {
|
|
244
391
|
const obj_relatedObjects = obj.relatedObjects;
|
|
245
392
|
const path_relatedObjects = path + '.relatedObjects';
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
393
|
+
let obj_relatedObjects_union0 = null;
|
|
394
|
+
const obj_relatedObjects_union0_error = (() => {
|
|
395
|
+
const referencepath_relatedObjectsValidationError = validate$9(obj_relatedObjects, path_relatedObjects);
|
|
396
|
+
if (referencepath_relatedObjectsValidationError !== null) {
|
|
397
|
+
let message = 'Object doesn\'t match ClaimRelatedObjectsInput (at "' + path_relatedObjects + '")\n';
|
|
398
|
+
message += referencepath_relatedObjectsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
399
|
+
return new TypeError(message);
|
|
400
|
+
}
|
|
401
|
+
})();
|
|
402
|
+
if (obj_relatedObjects_union0_error != null) {
|
|
403
|
+
obj_relatedObjects_union0 = obj_relatedObjects_union0_error.message;
|
|
404
|
+
}
|
|
405
|
+
let obj_relatedObjects_union1 = null;
|
|
406
|
+
const obj_relatedObjects_union1_error = (() => {
|
|
407
|
+
if (obj_relatedObjects !== null) {
|
|
408
|
+
return new TypeError('Expected "null" but received "' + typeof obj_relatedObjects + '" (at "' + path_relatedObjects + '")');
|
|
409
|
+
}
|
|
410
|
+
})();
|
|
411
|
+
if (obj_relatedObjects_union1_error != null) {
|
|
412
|
+
obj_relatedObjects_union1 = obj_relatedObjects_union1_error.message;
|
|
413
|
+
}
|
|
414
|
+
if (obj_relatedObjects_union0 && obj_relatedObjects_union1) {
|
|
415
|
+
let message = 'Object doesn\'t match union (at "' + path_relatedObjects + '")';
|
|
416
|
+
message += '\n' + obj_relatedObjects_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
417
|
+
message += '\n' + obj_relatedObjects_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
250
418
|
return new TypeError(message);
|
|
251
419
|
}
|
|
252
420
|
}
|
|
@@ -254,7 +422,7 @@ function validate$9(obj, path = 'ClaimItemInputRepresentation') {
|
|
|
254
422
|
return v_error === undefined ? null : v_error;
|
|
255
423
|
}
|
|
256
424
|
|
|
257
|
-
function validate$
|
|
425
|
+
function validate$7(obj, path = 'ClaimItemsInput') {
|
|
258
426
|
const v_error = (() => {
|
|
259
427
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
260
428
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -267,7 +435,7 @@ function validate$8(obj, path = 'ClaimItemsInput') {
|
|
|
267
435
|
for (let i = 0; i < obj_list.length; i++) {
|
|
268
436
|
const obj_list_item = obj_list[i];
|
|
269
437
|
const path_list_item = path_list + '[' + i + ']';
|
|
270
|
-
const referencepath_list_itemValidationError = validate$
|
|
438
|
+
const referencepath_list_itemValidationError = validate$8(obj_list_item, path_list_item);
|
|
271
439
|
if (referencepath_list_itemValidationError !== null) {
|
|
272
440
|
let message = 'Object doesn\'t match ClaimItemInputRepresentation (at "' + path_list_item + '")\n';
|
|
273
441
|
message += referencepath_list_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -278,7 +446,7 @@ function validate$8(obj, path = 'ClaimItemsInput') {
|
|
|
278
446
|
return v_error === undefined ? null : v_error;
|
|
279
447
|
}
|
|
280
448
|
|
|
281
|
-
function validate$
|
|
449
|
+
function validate$6(obj, path = 'ClaimParticipantRolesInput') {
|
|
282
450
|
const v_error = (() => {
|
|
283
451
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
284
452
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -301,7 +469,7 @@ function validate$7(obj, path = 'ClaimParticipantRolesInput') {
|
|
|
301
469
|
return v_error === undefined ? null : v_error;
|
|
302
470
|
}
|
|
303
471
|
|
|
304
|
-
function validate$
|
|
472
|
+
function validate$5(obj, path = 'ClaimParticipantInputRepresentation') {
|
|
305
473
|
const v_error = (() => {
|
|
306
474
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
307
475
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -354,7 +522,7 @@ function validate$6(obj, path = 'ClaimParticipantInputRepresentation') {
|
|
|
354
522
|
if (obj.roles !== undefined) {
|
|
355
523
|
const obj_roles = obj.roles;
|
|
356
524
|
const path_roles = path + '.roles';
|
|
357
|
-
const referencepath_rolesValidationError = validate$
|
|
525
|
+
const referencepath_rolesValidationError = validate$6(obj_roles, path_roles);
|
|
358
526
|
if (referencepath_rolesValidationError !== null) {
|
|
359
527
|
let message = 'Object doesn\'t match ClaimParticipantRolesInput (at "' + path_roles + '")\n';
|
|
360
528
|
message += referencepath_rolesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -365,7 +533,7 @@ function validate$6(obj, path = 'ClaimParticipantInputRepresentation') {
|
|
|
365
533
|
return v_error === undefined ? null : v_error;
|
|
366
534
|
}
|
|
367
535
|
|
|
368
|
-
function validate$
|
|
536
|
+
function validate$4(obj, path = 'ClaimParticipantsInput') {
|
|
369
537
|
const v_error = (() => {
|
|
370
538
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
371
539
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -378,7 +546,7 @@ function validate$5(obj, path = 'ClaimParticipantsInput') {
|
|
|
378
546
|
for (let i = 0; i < obj_list.length; i++) {
|
|
379
547
|
const obj_list_item = obj_list[i];
|
|
380
548
|
const path_list_item = path_list + '[' + i + ']';
|
|
381
|
-
const referencepath_list_itemValidationError = validate$
|
|
549
|
+
const referencepath_list_itemValidationError = validate$5(obj_list_item, path_list_item);
|
|
382
550
|
if (referencepath_list_itemValidationError !== null) {
|
|
383
551
|
let message = 'Object doesn\'t match ClaimParticipantInputRepresentation (at "' + path_list_item + '")\n';
|
|
384
552
|
message += referencepath_list_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -389,129 +557,6 @@ function validate$5(obj, path = 'ClaimParticipantsInput') {
|
|
|
389
557
|
return v_error === undefined ? null : v_error;
|
|
390
558
|
}
|
|
391
559
|
|
|
392
|
-
function validate$4(obj, path = 'ClaimInputRepresentation') {
|
|
393
|
-
const v_error = (() => {
|
|
394
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
395
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
396
|
-
}
|
|
397
|
-
if (obj.accountId !== undefined) {
|
|
398
|
-
const obj_accountId = obj.accountId;
|
|
399
|
-
const path_accountId = path + '.accountId';
|
|
400
|
-
if (typeof obj_accountId !== 'string') {
|
|
401
|
-
return new TypeError('Expected "string" but received "' + typeof obj_accountId + '" (at "' + path_accountId + '")');
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
if (obj.additionalFields !== undefined) {
|
|
405
|
-
const obj_additionalFields = obj.additionalFields;
|
|
406
|
-
const path_additionalFields = path + '.additionalFields';
|
|
407
|
-
if (obj_additionalFields === undefined) {
|
|
408
|
-
return new TypeError('Expected "defined" but received "' + typeof obj_additionalFields + '" (at "' + path_additionalFields + '")');
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
if (obj.attributes !== undefined) {
|
|
412
|
-
const obj_attributes = obj.attributes;
|
|
413
|
-
const path_attributes = path + '.attributes';
|
|
414
|
-
const referencepath_attributesValidationError = validate$c(obj_attributes, path_attributes);
|
|
415
|
-
if (referencepath_attributesValidationError !== null) {
|
|
416
|
-
let message = 'Object doesn\'t match ClaimAttributesInput (at "' + path_attributes + '")\n';
|
|
417
|
-
message += referencepath_attributesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
418
|
-
return new TypeError(message);
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
if (obj.claimReason !== undefined) {
|
|
422
|
-
const obj_claimReason = obj.claimReason;
|
|
423
|
-
const path_claimReason = path + '.claimReason';
|
|
424
|
-
if (typeof obj_claimReason !== 'string') {
|
|
425
|
-
return new TypeError('Expected "string" but received "' + typeof obj_claimReason + '" (at "' + path_claimReason + '")');
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
if (obj.claimReasonType !== undefined) {
|
|
429
|
-
const obj_claimReasonType = obj.claimReasonType;
|
|
430
|
-
const path_claimReasonType = path + '.claimReasonType';
|
|
431
|
-
if (typeof obj_claimReasonType !== 'string') {
|
|
432
|
-
return new TypeError('Expected "string" but received "' + typeof obj_claimReasonType + '" (at "' + path_claimReasonType + '")');
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
if (obj.claimType !== undefined) {
|
|
436
|
-
const obj_claimType = obj.claimType;
|
|
437
|
-
const path_claimType = path + '.claimType';
|
|
438
|
-
if (typeof obj_claimType !== 'string') {
|
|
439
|
-
return new TypeError('Expected "string" but received "' + typeof obj_claimType + '" (at "' + path_claimType + '")');
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
if (obj.incidentTypeId !== undefined) {
|
|
443
|
-
const obj_incidentTypeId = obj.incidentTypeId;
|
|
444
|
-
const path_incidentTypeId = path + '.incidentTypeId';
|
|
445
|
-
if (typeof obj_incidentTypeId !== 'string') {
|
|
446
|
-
return new TypeError('Expected "string" but received "' + typeof obj_incidentTypeId + '" (at "' + path_incidentTypeId + '")');
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
if (obj.insurancePolicyId !== undefined) {
|
|
450
|
-
const obj_insurancePolicyId = obj.insurancePolicyId;
|
|
451
|
-
const path_insurancePolicyId = path + '.insurancePolicyId';
|
|
452
|
-
if (typeof obj_insurancePolicyId !== 'string') {
|
|
453
|
-
return new TypeError('Expected "string" but received "' + typeof obj_insurancePolicyId + '" (at "' + path_insurancePolicyId + '")');
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
if (obj.items !== undefined) {
|
|
457
|
-
const obj_items = obj.items;
|
|
458
|
-
const path_items = path + '.items';
|
|
459
|
-
const referencepath_itemsValidationError = validate$8(obj_items, path_items);
|
|
460
|
-
if (referencepath_itemsValidationError !== null) {
|
|
461
|
-
let message = 'Object doesn\'t match ClaimItemsInput (at "' + path_items + '")\n';
|
|
462
|
-
message += referencepath_itemsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
463
|
-
return new TypeError(message);
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
if (obj.lossDate !== undefined) {
|
|
467
|
-
const obj_lossDate = obj.lossDate;
|
|
468
|
-
const path_lossDate = path + '.lossDate';
|
|
469
|
-
if (typeof obj_lossDate !== 'string') {
|
|
470
|
-
return new TypeError('Expected "string" but received "' + typeof obj_lossDate + '" (at "' + path_lossDate + '")');
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
if (obj.lossType !== undefined) {
|
|
474
|
-
const obj_lossType = obj.lossType;
|
|
475
|
-
const path_lossType = path + '.lossType';
|
|
476
|
-
if (typeof obj_lossType !== 'string') {
|
|
477
|
-
return new TypeError('Expected "string" but received "' + typeof obj_lossType + '" (at "' + path_lossType + '")');
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
if (obj.name !== undefined) {
|
|
481
|
-
const obj_name = obj.name;
|
|
482
|
-
const path_name = path + '.name';
|
|
483
|
-
if (typeof obj_name !== 'string') {
|
|
484
|
-
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
if (obj.options !== undefined) {
|
|
488
|
-
const obj_options = obj.options;
|
|
489
|
-
const path_options = path + '.options';
|
|
490
|
-
if (obj_options === undefined) {
|
|
491
|
-
return new TypeError('Expected "defined" but received "' + typeof obj_options + '" (at "' + path_options + '")');
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
if (obj.participants !== undefined) {
|
|
495
|
-
const obj_participants = obj.participants;
|
|
496
|
-
const path_participants = path + '.participants';
|
|
497
|
-
const referencepath_participantsValidationError = validate$5(obj_participants, path_participants);
|
|
498
|
-
if (referencepath_participantsValidationError !== null) {
|
|
499
|
-
let message = 'Object doesn\'t match ClaimParticipantsInput (at "' + path_participants + '")\n';
|
|
500
|
-
message += referencepath_participantsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
501
|
-
return new TypeError(message);
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
if (obj.productCode !== undefined) {
|
|
505
|
-
const obj_productCode = obj.productCode;
|
|
506
|
-
const path_productCode = path + '.productCode';
|
|
507
|
-
if (typeof obj_productCode !== 'string') {
|
|
508
|
-
return new TypeError('Expected "string" but received "' + typeof obj_productCode + '" (at "' + path_productCode + '")');
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
})();
|
|
512
|
-
return v_error === undefined ? null : v_error;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
560
|
function validate$3(obj, path = 'ClaimErrorOutputRepresentation') {
|
|
516
561
|
const v_error = (() => {
|
|
517
562
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -531,50 +576,56 @@ function validate$3(obj, path = 'ClaimErrorOutputRepresentation') {
|
|
|
531
576
|
return v_error === undefined ? null : v_error;
|
|
532
577
|
}
|
|
533
578
|
|
|
534
|
-
|
|
579
|
+
const TTL$1 = 1000;
|
|
580
|
+
const VERSION$1 = "a2761ec24de7405a85015297b44aa3cf";
|
|
581
|
+
function validate$2(obj, path = 'CreateClaimOutputRepresentation') {
|
|
535
582
|
const v_error = (() => {
|
|
536
583
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
537
584
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
538
585
|
}
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
if (
|
|
549
|
-
|
|
550
|
-
|
|
586
|
+
if (obj.claimId !== undefined) {
|
|
587
|
+
const obj_claimId = obj.claimId;
|
|
588
|
+
const path_claimId = path + '.claimId';
|
|
589
|
+
let obj_claimId_union0 = null;
|
|
590
|
+
const obj_claimId_union0_error = (() => {
|
|
591
|
+
if (typeof obj_claimId !== 'string') {
|
|
592
|
+
return new TypeError('Expected "string" but received "' + typeof obj_claimId + '" (at "' + path_claimId + '")');
|
|
593
|
+
}
|
|
594
|
+
})();
|
|
595
|
+
if (obj_claimId_union0_error != null) {
|
|
596
|
+
obj_claimId_union0 = obj_claimId_union0_error.message;
|
|
597
|
+
}
|
|
598
|
+
let obj_claimId_union1 = null;
|
|
599
|
+
const obj_claimId_union1_error = (() => {
|
|
600
|
+
if (obj_claimId !== null) {
|
|
601
|
+
return new TypeError('Expected "null" but received "' + typeof obj_claimId + '" (at "' + path_claimId + '")');
|
|
602
|
+
}
|
|
603
|
+
})();
|
|
604
|
+
if (obj_claimId_union1_error != null) {
|
|
605
|
+
obj_claimId_union1 = obj_claimId_union1_error.message;
|
|
606
|
+
}
|
|
607
|
+
if (obj_claimId_union0 && obj_claimId_union1) {
|
|
608
|
+
let message = 'Object doesn\'t match union (at "' + path_claimId + '")';
|
|
609
|
+
message += '\n' + obj_claimId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
610
|
+
message += '\n' + obj_claimId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
551
611
|
return new TypeError(message);
|
|
552
612
|
}
|
|
553
613
|
}
|
|
554
|
-
})();
|
|
555
|
-
return v_error === undefined ? null : v_error;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
const TTL$1 = 1000;
|
|
559
|
-
const VERSION$1 = "cfe519428dbc15b5957bdd77685559d4";
|
|
560
|
-
function validate$1(obj, path = 'CreateClaimOutputRepresentation') {
|
|
561
|
-
const v_error = (() => {
|
|
562
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
563
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
564
|
-
}
|
|
565
|
-
const obj_claimId = obj.claimId;
|
|
566
|
-
const path_claimId = path + '.claimId';
|
|
567
|
-
if (typeof obj_claimId !== 'string') {
|
|
568
|
-
return new TypeError('Expected "string" but received "' + typeof obj_claimId + '" (at "' + path_claimId + '")');
|
|
569
|
-
}
|
|
570
614
|
if (obj.errors !== undefined) {
|
|
571
615
|
const obj_errors = obj.errors;
|
|
572
616
|
const path_errors = path + '.errors';
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
617
|
+
if (!ArrayIsArray(obj_errors)) {
|
|
618
|
+
return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
|
|
619
|
+
}
|
|
620
|
+
for (let i = 0; i < obj_errors.length; i++) {
|
|
621
|
+
const obj_errors_item = obj_errors[i];
|
|
622
|
+
const path_errors_item = path_errors + '[' + i + ']';
|
|
623
|
+
const referencepath_errors_itemValidationError = validate$3(obj_errors_item, path_errors_item);
|
|
624
|
+
if (referencepath_errors_itemValidationError !== null) {
|
|
625
|
+
let message = 'Object doesn\'t match ClaimErrorOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
626
|
+
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
627
|
+
return new TypeError(message);
|
|
628
|
+
}
|
|
578
629
|
}
|
|
579
630
|
}
|
|
580
631
|
const obj_isSuccess = obj.isSuccess;
|
|
@@ -587,11 +638,11 @@ function validate$1(obj, path = 'CreateClaimOutputRepresentation') {
|
|
|
587
638
|
}
|
|
588
639
|
const RepresentationType$1 = 'CreateClaimOutputRepresentation';
|
|
589
640
|
function keyBuilder$1(luvio, config) {
|
|
590
|
-
return keyPrefix + '::' + RepresentationType$1 + ':' + config.
|
|
641
|
+
return keyPrefix + '::' + RepresentationType$1 + ':' + config.isSuccess;
|
|
591
642
|
}
|
|
592
643
|
function keyBuilderFromType$1(luvio, object) {
|
|
593
644
|
const keyParams = {
|
|
594
|
-
|
|
645
|
+
isSuccess: object.isSuccess
|
|
595
646
|
};
|
|
596
647
|
return keyBuilder$1(luvio, keyParams);
|
|
597
648
|
}
|
|
@@ -614,7 +665,7 @@ function equals$1(existing, incoming) {
|
|
|
614
665
|
}
|
|
615
666
|
const ingest$1 = function CreateClaimOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
616
667
|
if (process.env.NODE_ENV !== 'production') {
|
|
617
|
-
const validateError = validate$
|
|
668
|
+
const validateError = validate$2(input);
|
|
618
669
|
if (validateError !== null) {
|
|
619
670
|
throw validateError;
|
|
620
671
|
}
|
|
@@ -674,17 +725,45 @@ function createResourceRequest$2(config) {
|
|
|
674
725
|
const adapterName$2 = 'UpdateClaim';
|
|
675
726
|
const UpdateClaim_ConfigPropertyMetadata = [
|
|
676
727
|
generateParamConfigMetadata('claimId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
677
|
-
generateParamConfigMetadata('
|
|
728
|
+
generateParamConfigMetadata('accountId', false, 2 /* Body */, 0 /* String */),
|
|
729
|
+
generateParamConfigMetadata('additionalFields', false, 2 /* Body */, 4 /* Unsupported */),
|
|
730
|
+
generateParamConfigMetadata('attributes', false, 2 /* Body */, 4 /* Unsupported */),
|
|
731
|
+
generateParamConfigMetadata('claimReason', false, 2 /* Body */, 0 /* String */),
|
|
732
|
+
generateParamConfigMetadata('claimReasonType', false, 2 /* Body */, 0 /* String */),
|
|
733
|
+
generateParamConfigMetadata('claimType', false, 2 /* Body */, 0 /* String */),
|
|
734
|
+
generateParamConfigMetadata('incidentTypeId', false, 2 /* Body */, 0 /* String */),
|
|
735
|
+
generateParamConfigMetadata('insurancePolicyId', false, 2 /* Body */, 0 /* String */),
|
|
736
|
+
generateParamConfigMetadata('items', false, 2 /* Body */, 4 /* Unsupported */),
|
|
737
|
+
generateParamConfigMetadata('lossDate', false, 2 /* Body */, 0 /* String */),
|
|
738
|
+
generateParamConfigMetadata('lossType', false, 2 /* Body */, 0 /* String */),
|
|
739
|
+
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
740
|
+
generateParamConfigMetadata('options', false, 2 /* Body */, 4 /* Unsupported */),
|
|
741
|
+
generateParamConfigMetadata('participants', false, 2 /* Body */, 4 /* Unsupported */),
|
|
742
|
+
generateParamConfigMetadata('productCode', false, 2 /* Body */, 0 /* String */),
|
|
678
743
|
];
|
|
679
744
|
const UpdateClaim_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, UpdateClaim_ConfigPropertyMetadata);
|
|
680
745
|
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(UpdateClaim_ConfigPropertyMetadata);
|
|
681
746
|
function typeCheckConfig$2(untrustedConfig) {
|
|
682
747
|
const config = {};
|
|
683
748
|
typeCheckConfig$3(untrustedConfig, config, UpdateClaim_ConfigPropertyMetadata);
|
|
684
|
-
const
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
749
|
+
const untrustedConfig_additionalFields = untrustedConfig.additionalFields;
|
|
750
|
+
config.additionalFields = untrustedConfig_additionalFields;
|
|
751
|
+
const untrustedConfig_attributes = untrustedConfig.attributes;
|
|
752
|
+
const referenceClaimAttributesInputValidationError = validate$b(untrustedConfig_attributes);
|
|
753
|
+
if (referenceClaimAttributesInputValidationError === null) {
|
|
754
|
+
config.attributes = untrustedConfig_attributes;
|
|
755
|
+
}
|
|
756
|
+
const untrustedConfig_items = untrustedConfig.items;
|
|
757
|
+
const referenceClaimItemsInputValidationError = validate$7(untrustedConfig_items);
|
|
758
|
+
if (referenceClaimItemsInputValidationError === null) {
|
|
759
|
+
config.items = untrustedConfig_items;
|
|
760
|
+
}
|
|
761
|
+
const untrustedConfig_options = untrustedConfig.options;
|
|
762
|
+
config.options = untrustedConfig_options;
|
|
763
|
+
const untrustedConfig_participants = untrustedConfig.participants;
|
|
764
|
+
const referenceClaimParticipantsInputValidationError = validate$4(untrustedConfig_participants);
|
|
765
|
+
if (referenceClaimParticipantsInputValidationError === null) {
|
|
766
|
+
config.participants = untrustedConfig_participants;
|
|
688
767
|
}
|
|
689
768
|
return config;
|
|
690
769
|
}
|
|
@@ -730,6 +809,30 @@ const UpdateClaimAdapterFactory = (luvio) => {
|
|
|
730
809
|
};
|
|
731
810
|
};
|
|
732
811
|
|
|
812
|
+
function validate$1(obj, path = 'ClaimErrorsOutput') {
|
|
813
|
+
const v_error = (() => {
|
|
814
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
815
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
816
|
+
}
|
|
817
|
+
const obj_list = obj.list;
|
|
818
|
+
const path_list = path + '.list';
|
|
819
|
+
if (!ArrayIsArray(obj_list)) {
|
|
820
|
+
return new TypeError('Expected "array" but received "' + typeof obj_list + '" (at "' + path_list + '")');
|
|
821
|
+
}
|
|
822
|
+
for (let i = 0; i < obj_list.length; i++) {
|
|
823
|
+
const obj_list_item = obj_list[i];
|
|
824
|
+
const path_list_item = path_list + '[' + i + ']';
|
|
825
|
+
const referencepath_list_itemValidationError = validate$3(obj_list_item, path_list_item);
|
|
826
|
+
if (referencepath_list_itemValidationError !== null) {
|
|
827
|
+
let message = 'Object doesn\'t match ClaimErrorOutputRepresentation (at "' + path_list_item + '")\n';
|
|
828
|
+
message += referencepath_list_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
829
|
+
return new TypeError(message);
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
})();
|
|
833
|
+
return v_error === undefined ? null : v_error;
|
|
834
|
+
}
|
|
835
|
+
|
|
733
836
|
const TTL = 1000;
|
|
734
837
|
const VERSION = "35f177f27215c8f2ce3f8fb56ff7c2be";
|
|
735
838
|
function validate(obj, path = 'ClaimCoverageOutputRepresentation') {
|
|
@@ -745,7 +848,7 @@ function validate(obj, path = 'ClaimCoverageOutputRepresentation') {
|
|
|
745
848
|
if (obj.errors !== undefined) {
|
|
746
849
|
const obj_errors = obj.errors;
|
|
747
850
|
const path_errors = path + '.errors';
|
|
748
|
-
const referencepath_errorsValidationError = validate$
|
|
851
|
+
const referencepath_errorsValidationError = validate$1(obj_errors, path_errors);
|
|
749
852
|
if (referencepath_errorsValidationError !== null) {
|
|
750
853
|
let message = 'Object doesn\'t match ClaimErrorsOutput (at "' + path_errors + '")\n';
|
|
751
854
|
message += referencepath_errorsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|