@salesforce/lds-adapters-industries-claim 0.1.0-dev1

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.
Files changed (35) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-claim.js +1117 -0
  3. package/dist/es/es2018/types/src/generated/adapters/CreateClaimCoverage.d.ts +25 -0
  4. package/dist/es/es2018/types/src/generated/adapters/UpdateClaim.d.ts +33 -0
  5. package/dist/es/es2018/types/src/generated/adapters/UpdateClaimCoverage.d.ts +19 -0
  6. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -0
  9. package/dist/es/es2018/types/src/generated/resources/patchConnectClaimsByClaimId.d.ts +32 -0
  10. package/dist/es/es2018/types/src/generated/resources/patchConnectClaimsCoveragesByClaimIdAndCoverageId.d.ts +18 -0
  11. package/dist/es/es2018/types/src/generated/resources/postConnectClaimsCoveragesByClaimId.d.ts +24 -0
  12. package/dist/es/es2018/types/src/generated/types/ClaimAttributeInputRepresentation.d.ts +31 -0
  13. package/dist/es/es2018/types/src/generated/types/ClaimAttributesInput.d.ts +29 -0
  14. package/dist/es/es2018/types/src/generated/types/ClaimCoverageRepresentation.d.ts +45 -0
  15. package/dist/es/es2018/types/src/generated/types/ClaimErrorOutputRepresentation.d.ts +31 -0
  16. package/dist/es/es2018/types/src/generated/types/ClaimErrorsOutput.d.ts +29 -0
  17. package/dist/es/es2018/types/src/generated/types/ClaimInputRepresentation.d.ts +71 -0
  18. package/dist/es/es2018/types/src/generated/types/ClaimItemInputRepresentation.d.ts +60 -0
  19. package/dist/es/es2018/types/src/generated/types/ClaimItemsInput.d.ts +29 -0
  20. package/dist/es/es2018/types/src/generated/types/ClaimOptionsInputRepresentation.d.ts +28 -0
  21. package/dist/es/es2018/types/src/generated/types/ClaimParticipantInputRepresentation.d.ts +49 -0
  22. package/dist/es/es2018/types/src/generated/types/ClaimParticipantRolesInput.d.ts +28 -0
  23. package/dist/es/es2018/types/src/generated/types/ClaimParticipantsInput.d.ts +29 -0
  24. package/dist/es/es2018/types/src/generated/types/ClaimRelatedObjectInputRepresentation.d.ts +31 -0
  25. package/dist/es/es2018/types/src/generated/types/ClaimRelatedObjectsInput.d.ts +29 -0
  26. package/dist/es/es2018/types/src/generated/types/CreateClaimCoverageInputRepresentation.d.ts +55 -0
  27. package/dist/es/es2018/types/src/generated/types/CreateClaimOutputRepresentation.d.ts +45 -0
  28. package/dist/es/es2018/types/src/generated/types/ErrorDetail.d.ts +31 -0
  29. package/dist/es/es2018/types/src/generated/types/UpdateClaimCoverageInputRepresentation.d.ts +34 -0
  30. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  31. package/package.json +66 -0
  32. package/sfdc/index.d.ts +1 -0
  33. package/sfdc/index.js +1149 -0
  34. package/src/raml/api.raml +448 -0
  35. package/src/raml/luvio.raml +41 -0
@@ -0,0 +1,448 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '65.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v66.0
10
+ securitySchemes:
11
+ OAuth2:
12
+ type: OAuth 2.0
13
+ settings:
14
+ authorizationUri: https://example.com/oauth/authorize
15
+ accessTokenUri: ''
16
+ authorizationGrants:
17
+ - implicit
18
+ annotationTypes:
19
+ oas-readOnly:
20
+ type: boolean
21
+ allowedTargets: TypeDeclaration
22
+ oas-collectionFormat:
23
+ type: string
24
+ oas-body-name:
25
+ type: string
26
+ allowedTargets: TypeDeclaration
27
+ types:
28
+ ErrorDetail:
29
+ description: Output Representation for Error
30
+ type: object
31
+ properties:
32
+ code:
33
+ description: Code of the error
34
+ type: string
35
+ message:
36
+ description: Message of the error
37
+ type: string
38
+ ClaimAttributeInputRepresentation:
39
+ description: Input Representation for Attributes
40
+ type: object
41
+ properties:
42
+ apiName:
43
+ description: Attribute API Name
44
+ type: string
45
+ required: false
46
+ value:
47
+ description: Value of the attribute
48
+ type: string
49
+ required: false
50
+ ClaimAttributesInput:
51
+ description: Attributes list wrapper
52
+ type: object
53
+ properties:
54
+ list:
55
+ description: Attributes list
56
+ type: array
57
+ items:
58
+ type: ClaimAttributeInputRepresentation
59
+ ClaimErrorOutputRepresentation:
60
+ description: Output Representation for Error
61
+ type: object
62
+ properties:
63
+ code:
64
+ description: Code of the error
65
+ type: string
66
+ message:
67
+ description: Message of the error
68
+ type: string
69
+ ClaimErrorsOutput:
70
+ description: Errors
71
+ type: object
72
+ properties:
73
+ list:
74
+ description: List of errors
75
+ type: array
76
+ items:
77
+ type: ClaimErrorOutputRepresentation
78
+ ClaimInputRepresentation:
79
+ description: Input Representation for Create Claim Connect resource
80
+ type: object
81
+ properties:
82
+ accountId:
83
+ description: Account Id
84
+ type: string
85
+ required: false
86
+ additionalFields:
87
+ description: The additional fields of the claim product
88
+ type: any
89
+ required: false
90
+ attributes:
91
+ description: The attributes of the claim product
92
+ type: ClaimAttributesInput
93
+ required: false
94
+ claimReason:
95
+ description: Reason for claim
96
+ type: string
97
+ required: false
98
+ claimReasonType:
99
+ description: Claim reason type
100
+ type: string
101
+ required: false
102
+ claimType:
103
+ description: The type of claim
104
+ type: string
105
+ required: false
106
+ incidentTypeId:
107
+ description: Id of the incident type
108
+ type: string
109
+ required: false
110
+ insurancePolicyId:
111
+ description: Policy Id on which the claim is raised
112
+ type: string
113
+ required: false
114
+ items:
115
+ description: Claim Items associated with claim
116
+ type: ClaimItemsInput
117
+ required: false
118
+ lossDate:
119
+ description: The date on which loss occurred
120
+ type: string
121
+ required: false
122
+ lossType:
123
+ description: Type of the loss for which claim is raised
124
+ type: string
125
+ required: false
126
+ name:
127
+ description: Name of the claim
128
+ type: string
129
+ required: false
130
+ options:
131
+ description: Options to pass while creation/updation of claim
132
+ type: any
133
+ required: false
134
+ participants:
135
+ description: Claim Participants associated with claim
136
+ type: ClaimParticipantsInput
137
+ required: false
138
+ productCode:
139
+ description: The product code of the claim product
140
+ type: string
141
+ required: false
142
+ # ClaimInputWrapperRepresentation: # removing redundant wrapper over the input representation
143
+ # description: Input representation wrapper for ClaimInputRepresentation
144
+ # type: object
145
+ # properties:
146
+ # updateClaimInput:
147
+ # description: Input representation wrapper for ClaimInputRepresentation
148
+ # type: ClaimInputRepresentation
149
+ ClaimItemInputRepresentation:
150
+ description: Input Representation for Claim Item
151
+ type: object
152
+ properties:
153
+ action:
154
+ description: Action to be performed during update operation
155
+ type: string
156
+ #required: true
157
+ additionalFields:
158
+ description: The additional fields of the claim item
159
+ type: any
160
+ required: false
161
+ attributes:
162
+ description: The attributes of the claim item
163
+ type: ClaimAttributesInput | nil
164
+ required: false
165
+ category:
166
+ description: The category of the claim item
167
+ type: string | nil
168
+ required: false
169
+ instanceKey:
170
+ description: The unique instanceKey of the claim item
171
+ type: string
172
+ required: true
173
+ insurancePolicyCoverageId:
174
+ description: Id of the insurance policy coverage
175
+ type: string | nil
176
+ required: false
177
+ insuredItemId:
178
+ description: The id of the insuredItem involved
179
+ type: string | nil
180
+ required: false
181
+ name:
182
+ description: Name of the claim item
183
+ type: string | nil
184
+ required: false
185
+ participantInstanceKey:
186
+ description: Instance Key of Related Claim Participant
187
+ type: string | nil
188
+ required: false
189
+ productCode:
190
+ description: The product code of the claim item product
191
+ type: string | nil
192
+ required: false
193
+ relatedObjects:
194
+ description: Claim Item Related Objects
195
+ type: ClaimRelatedObjectsInput | nil
196
+ required: false
197
+ ClaimItemsInput:
198
+ description: Claim Items List wrapper object
199
+ type: object
200
+ properties:
201
+ list:
202
+ description: Claim Items List
203
+ type: array
204
+ items:
205
+ type: ClaimItemInputRepresentation
206
+ ClaimOptionsInputRepresentation:
207
+ description: Options for create/update claim
208
+ type: object
209
+ properties:
210
+ executeConfigurationRules:
211
+ description: Execute configuration rules or not
212
+ type: string
213
+ ClaimParticipantInputRepresentation:
214
+ description: Input representation for Claim Participant
215
+ type: object
216
+ properties:
217
+ accountId:
218
+ description: Account id of the claim participant
219
+ type: string
220
+ required: false
221
+ action:
222
+ description: Action to be performed during update operation
223
+ type: string
224
+ required: true
225
+ additionalFields:
226
+ description: Additional Fields of the claim participant
227
+ type: any
228
+ required: false
229
+ contactId:
230
+ description: Contact Id of the claim participant
231
+ type: string
232
+ required: false
233
+ instanceKey:
234
+ description: Unique instanceKey of the claim participant
235
+ type: string
236
+ required: true
237
+ insurancePolicyParticipantId:
238
+ description: Insurance Policy Participant Id of the claim participant
239
+ type: string
240
+ required: false
241
+ isInjured:
242
+ description: Is insured or not
243
+ type: string
244
+ required: false
245
+ roles:
246
+ description: Claim Participant Roles
247
+ type: ClaimParticipantRolesInput
248
+ required: false
249
+ ClaimParticipantRolesInput:
250
+ description: Claim Participant Roles List wrapper object
251
+ type: object
252
+ properties:
253
+ list:
254
+ description: Claim Participant Roles list
255
+ type: array
256
+ required: false
257
+ items:
258
+ type: string
259
+ ClaimParticipantsInput:
260
+ description: Claim Participants List wrapper object
261
+ type: object
262
+ properties:
263
+ list:
264
+ description: Claim Participants List
265
+ type: array
266
+ items:
267
+ type: ClaimParticipantInputRepresentation
268
+ ClaimRelatedObjectInputRepresentation:
269
+ description: Input Representation for Related Object
270
+ type: object
271
+ properties:
272
+ recordId:
273
+ description: Claim Item Related Object Id
274
+ type: string
275
+ required: false
276
+ recordObjName:
277
+ description: Claim Item Related Object Name
278
+ type: string
279
+ required: false
280
+ ClaimRelatedObjectsInput:
281
+ description: Related Objects List wrapper object
282
+ type: object
283
+ properties:
284
+ list:
285
+ description: Claim Item Related Objects List
286
+ type: array
287
+ items:
288
+ type: ClaimRelatedObjectInputRepresentation
289
+ CreateClaimOutputRepresentation:
290
+ description: Output Representation for create claim service
291
+ type: object
292
+ properties:
293
+ claimId:
294
+ description: The id of the created claim
295
+ type: string | nil
296
+ required: false
297
+ errors:
298
+ description: A list of errors, including detailed information about each one.
299
+ required: false
300
+ type: array
301
+ items:
302
+ type: ClaimErrorOutputRepresentation
303
+ isSuccess:
304
+ description: IsSuccess to specify the success of operation
305
+ type: boolean
306
+ CreateClaimCoverageInputRepresentation:
307
+ description: Input Representation for Create Claim Coverage Connect resource
308
+ type: object
309
+ properties:
310
+ additionalFields:
311
+ description: Additional Fields for Claim Coverage
312
+ type: any
313
+ required: false
314
+ claimItemId:
315
+ description: ID of the claim item
316
+ type: string
317
+ claimParticipantId:
318
+ description: ID of the claim participant
319
+ type: string
320
+ currencyIsoCode:
321
+ description: Currency ISO Code for Reserve Adjustments
322
+ type: string
323
+ required: false
324
+ expenseReserveAmount:
325
+ description: Expense reserve amount for the coverage
326
+ format: float
327
+ type: number
328
+ required: false
329
+ insurancePolicyAssetId:
330
+ description: ID of the insurance policy asset
331
+ type: string
332
+ required: false
333
+ insurancePolicyCoverageId:
334
+ description: ID of the insurance policy coverage
335
+ type: string
336
+ required: false
337
+ lossReserveAmount:
338
+ description: Loss reserve amount for the coverage
339
+ format: float
340
+ type: number
341
+ required: false
342
+ name:
343
+ description: Name of Claim Coverage
344
+ type: string
345
+ required: false
346
+ reserveProcessingMode:
347
+ description: Reserve Processing Mode for claim coverage
348
+ type: string
349
+ ClaimCoverageRepresentation:
350
+ description: Output Representation for claim coverage creation service
351
+ type: object
352
+ properties:
353
+ coverageId:
354
+ description: The ID of the created coverage
355
+ type: string
356
+ required: false
357
+ errors:
358
+ description: A list of errors, including detailed information about each one.
359
+ type: array
360
+ items:
361
+ type: ErrorDetail
362
+ required: false
363
+ isSuccess:
364
+ description: Indicates whether the claim coverage creation was successful
365
+ type: boolean
366
+ UpdateClaimCoverageInputRepresentation:
367
+ description: Input Representation for Update Claim Coverage Connect resource
368
+ type: object
369
+ properties:
370
+ additionalFields:
371
+ description: Additional fields for the coverage
372
+ type: any
373
+ required: false
374
+ expenseReserveAmount:
375
+ description: Expense reserve amount for the coverage
376
+ format: float
377
+ type: number
378
+ required: false
379
+ lossReserveAmount:
380
+ description: Loss reserve amount for the coverage
381
+ format: float
382
+ type: number
383
+ required: false
384
+
385
+ /connect:
386
+ /claims/{claimId}:
387
+ patch:
388
+ displayName: patchClaim
389
+ description: API to update claim
390
+ responses:
391
+ '200':
392
+ description: Success
393
+ body:
394
+ application/json:
395
+ type: CreateClaimOutputRepresentation
396
+ body:
397
+ application/json:
398
+ # type: ClaimInputWrapperRepresentation
399
+ type: ClaimInputRepresentation
400
+ #required: false
401
+ (oas-body-name): UpdateClaimInput
402
+ uriParameters:
403
+ claimId:
404
+ description: Unique Id to represent a claim
405
+ type: string
406
+ required: true
407
+ /claims/{claimId}/coverages:
408
+ post:
409
+ displayName: postCreateClaimCoverage
410
+ description: HTTP POST Method to create claim coverage
411
+ responses:
412
+ '200':
413
+ description: Success
414
+ body:
415
+ application/json:
416
+ type: ClaimCoverageRepresentation
417
+ body:
418
+ application/json:
419
+ type: CreateClaimCoverageInputRepresentation
420
+ (oas-body-name): CreateClaimCoverageInput
421
+ uriParameters:
422
+ claimId:
423
+ description: Unique Id to represent a claim
424
+ type: string
425
+ required: true
426
+ /claims/{claimId}/coverages/{coverageId}:
427
+ patch:
428
+ displayName: patchClaimCoverage
429
+ description: HTTP PATCH Method to update claim coverage
430
+ responses:
431
+ '200':
432
+ description: Success
433
+ body:
434
+ application/json:
435
+ type: ClaimCoverageRepresentation
436
+ body:
437
+ application/json:
438
+ type: UpdateClaimCoverageInputRepresentation
439
+ (oas-body-name): UpdateClaimCoverageInput
440
+ uriParameters:
441
+ claimId:
442
+ description: Unique Id to represent a claim
443
+ type: string
444
+ required: true
445
+ coverageId:
446
+ description: Unique Id to represent a claim coverage
447
+ type: string
448
+ required: true
@@ -0,0 +1,41 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'Claim'
8
+ (luvio.ttl): 1000
9
+
10
+ types:
11
+ CreateClaimOutputRepresentation:
12
+ (luvio.ttl): 1000
13
+ (luvio.opaque): true
14
+ (luvio.key):
15
+ isSuccess: isSuccess
16
+ ClaimCoverageInputRepresentation:
17
+ (luvio.ttl): 1000
18
+ (luvio.opaque): true
19
+ (luvio.key):
20
+ claimItemId: claimItemId
21
+ ClaimCoverageRepresentation:
22
+ (luvio.ttl): 1000
23
+ (luvio.opaque): true
24
+ (luvio.key):
25
+ isSuccess: isSuccess
26
+
27
+ /connect:
28
+ /claims/{claimId}:
29
+ patch:
30
+ (luvio.adapter):
31
+ name: UpdateClaim
32
+ /claims/{claimId}/coverages:
33
+ post:
34
+ description: Create a new claim coverage
35
+ (luvio.adapter):
36
+ name: CreateClaimCoverage
37
+ /claims/{claimId}/coverages/{coverageId}:
38
+ patch:
39
+ description: Update an existing claim coverage
40
+ (luvio.adapter):
41
+ name: UpdateClaimCoverage