@salesforce/lds-adapters-revenue-billing-batch 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 (49) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/revenue-billing-batch.js +1737 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/batchInvoiceRunRecovery.d.ts +15 -0
  5. package/dist/es/es2018/types/src/generated/adapters/createInvoicesBatchScheduler.d.ts +16 -0
  6. package/dist/es/es2018/types/src/generated/adapters/createPaymentsBatchScheduler.d.ts +16 -0
  7. package/dist/es/es2018/types/src/generated/adapters/editInvoicesBatchScheduler.d.ts +17 -0
  8. package/dist/es/es2018/types/src/generated/adapters/postBatchDraftInvoices.d.ts +27 -0
  9. package/dist/es/es2018/types/src/generated/adapters/postBatchInvoiceDocGen.d.ts +16 -0
  10. package/dist/es/es2018/types/src/generated/adapters/postCronExecutionDates.d.ts +20 -0
  11. package/dist/es/es2018/types/src/generated/adapters/updateInvoicesBatchScheduler.d.ts +17 -0
  12. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +8 -0
  13. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +10 -0
  14. package/dist/es/es2018/types/src/generated/resources/patchCommerceInvoicingInvoiceSchedulersByBillingBatchSchedulerId.d.ts +16 -0
  15. package/dist/es/es2018/types/src/generated/resources/postCommerceBillingInvoicesInvoiceBatchDocgenActionsByInvoiceBatchRunIdAndActionName.d.ts +13 -0
  16. package/dist/es/es2018/types/src/generated/resources/postCommerceInvoicingInvoiceBatchRunsActionsDraftToPostedByInvoiceBatchRunId.d.ts +16 -0
  17. package/dist/es/es2018/types/src/generated/resources/postCommerceInvoicingInvoiceBatchRunsActionsRecoverByInvoiceBatchRunId.d.ts +12 -0
  18. package/dist/es/es2018/types/src/generated/resources/postCommerceInvoicingInvoiceSchedulers.d.ts +13 -0
  19. package/dist/es/es2018/types/src/generated/resources/postCommercePaymentsPaymentSchedulers.d.ts +13 -0
  20. package/dist/es/es2018/types/src/generated/resources/postConnectBillingBatchCronExecutionDates.d.ts +17 -0
  21. package/dist/es/es2018/types/src/generated/resources/putCommerceInvoicingInvoiceSchedulersByBillingBatchSchedulerId.d.ts +16 -0
  22. package/dist/es/es2018/types/src/generated/types/BatchFilterCriteriaInputRepresentation.d.ts +34 -0
  23. package/dist/es/es2018/types/src/generated/types/BatchInvoiceDocGenErrorRepresentation.d.ts +31 -0
  24. package/dist/es/es2018/types/src/generated/types/BatchInvoiceDocGenOutputRepresentation.d.ts +45 -0
  25. package/dist/es/es2018/types/src/generated/types/BatchInvoiceSchedulerInputRepresentation.d.ts +29 -0
  26. package/dist/es/es2018/types/src/generated/types/BatchInvoiceSchedulerInputWrapperRepresentation.d.ts +28 -0
  27. package/dist/es/es2018/types/src/generated/types/BatchInvoiceSchedulerUpdateInputRepresentation.d.ts +28 -0
  28. package/dist/es/es2018/types/src/generated/types/BatchInvoiceSchedulerUpdateInputWrapperRepresentation.d.ts +28 -0
  29. package/dist/es/es2018/types/src/generated/types/BatchInvoiceSchedulerUpdateOutputRepresentation.d.ts +38 -0
  30. package/dist/es/es2018/types/src/generated/types/BillingBatchSchedulerRepresentation.d.ts +28 -0
  31. package/dist/es/es2018/types/src/generated/types/CronExecutionDatesInputRepresentation.d.ts +43 -0
  32. package/dist/es/es2018/types/src/generated/types/CronExecutionDatesOutputRepresentation.d.ts +38 -0
  33. package/dist/es/es2018/types/src/generated/types/InvoiceBatchDraftToPostedInputRepresentation.d.ts +25 -0
  34. package/dist/es/es2018/types/src/generated/types/InvoiceBatchDraftToPostedOutputRepresentation.d.ts +32 -0
  35. package/dist/es/es2018/types/src/generated/types/InvoiceBatchRunRecoveryOutputRepresentation.d.ts +38 -0
  36. package/dist/es/es2018/types/src/generated/types/InvoicesBatchSchedulerOutputRepresentation.d.ts +39 -0
  37. package/dist/es/es2018/types/src/generated/types/PaymentRunBatchFilterCriteriaInputRepresentation.d.ts +32 -0
  38. package/dist/es/es2018/types/src/generated/types/PaymentRunBatchFilterCriteriaInputRepresentations.d.ts +28 -0
  39. package/dist/es/es2018/types/src/generated/types/PaymentsBatchSchedulerInputRepresentation.d.ts +32 -0
  40. package/dist/es/es2018/types/src/generated/types/PaymentsBatchSchedulerInputWrapperRepresentation.d.ts +28 -0
  41. package/dist/es/es2018/types/src/generated/types/PaymentsBatchSchedulerOutputRepresentation.d.ts +39 -0
  42. package/dist/es/es2018/types/src/generated/types/ScheduleOptionsInputRepresentation.d.ts +46 -0
  43. package/dist/es/es2018/types/src/generated/types/ScheduleOptionsInputRepresentationForInvoice.d.ts +49 -0
  44. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  45. package/package.json +72 -0
  46. package/sfdc/index.d.ts +1 -0
  47. package/sfdc/index.js +1799 -0
  48. package/src/raml/api.raml +447 -0
  49. package/src/raml/luvio.raml +664 -0
@@ -0,0 +1,447 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '62.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
+ BatchFilterCriteriaInputRepresentation:
29
+ description: Common elements of Billing Batch Filter Criteria Input Representation
30
+ discriminator: criteriaSequence # TODO hand rolled. W-9275787
31
+ type: object
32
+ properties:
33
+ criteriaSequence:
34
+ description: Sequence number for the criteria
35
+ type: integer
36
+ operation:
37
+ description: Operation to be performed
38
+ type: string
39
+ enum:
40
+ - Equals
41
+ - InList
42
+ value:
43
+ description: Value to be compared
44
+ type: string
45
+ BillingBatchSchedulerRepresentation:
46
+ description: Billing Batch Scheduler Output Representation
47
+ type: object
48
+ properties:
49
+ id:
50
+ description: Billing Batch Scheduler Id
51
+ type: string
52
+ # TODO Hand-rolled W-14972264
53
+ BatchInvoiceDocGenErrorRepresentation:
54
+ description: Connect API representation for batch invoice doc gen error response.
55
+ type: object
56
+ properties:
57
+ errorCode:
58
+ description: Error Code of the error thrown.
59
+ type: string
60
+ errorMessage:
61
+ description: Error Message of the error thrown.
62
+ type: string
63
+ BatchInvoiceDocGenOutputRepresentation:
64
+ description: Connect API representation for batch invoice doc gen output response.
65
+ type: object
66
+ properties:
67
+ errors:
68
+ description: Error response if there were issues while enqueuing
69
+ type: array
70
+ items:
71
+ type: BatchInvoiceDocGenErrorRepresentation
72
+ requestIdentifier:
73
+ description: Unique request identifier that can be used to poll async request
74
+ type: string
75
+ success:
76
+ description: Status of enqueuing Invoice PDF Generation job
77
+ type: boolean
78
+ PaymentsBatchSchedulerInputWrapperRepresentation: # TODO Hand-rolled W-8334626
79
+ description: Wrapper for payment batch scheduler input representation
80
+ type: object
81
+ properties:
82
+ PaymentsBatchSchedulerInput:
83
+ type: PaymentsBatchSchedulerInputRepresentation
84
+ description: Payments Batch Scheduler Input Representation
85
+ PaymentRunBatchFilterCriteriaInputRepresentation:
86
+ description: Billing Batch Filter Criteria Input Representation
87
+ type: BatchFilterCriteriaInputRepresentation
88
+ properties:
89
+ fieldName:
90
+ description: Field Name
91
+ type: string
92
+ enum:
93
+ - PaymentRunMatchingValue
94
+ objectName:
95
+ description: Object Name
96
+ type: string
97
+ enum:
98
+ - PaymentScheduleItem
99
+ PaymentRunBatchFilterCriteriaInputRepresentations:
100
+ description: Batch Payments Filter Criteria Input Representations
101
+ type: object
102
+ properties:
103
+ filterCriteria:
104
+ description: List of filter criteria line items
105
+ type: array
106
+ items:
107
+ type: object
108
+ PaymentsBatchSchedulerInputRepresentation:
109
+ description: Payments Batch Scheduler Input Representation
110
+ type: ScheduleOptionsInputRepresentation
111
+ properties:
112
+ criteriaMatchType:
113
+ description: Filter Criteria Match Type
114
+ required: false # TODO handrolled W-9314597
115
+ type: string
116
+ enum:
117
+ - MatchAny
118
+ - MatchNone
119
+ filterCriteria:
120
+ description: List of filter criteria line items
121
+ required: false # TODO handrolled W-9314597
122
+ type: array
123
+ items:
124
+ type: object
125
+ PaymentsBatchSchedulerOutputRepresentation:
126
+ description: Payments Batch Scheduler Output Representation
127
+ type: object
128
+ properties:
129
+ billingBatchScheduler:
130
+ description: Billing Batch Scheduler Details
131
+ type: BillingBatchSchedulerRepresentation
132
+ ScheduleOptionsInputRepresentation:
133
+ description: Batch Scheduler Options Input Representation
134
+ discriminator: schedulerName # TODO hand rolled. W-9275787
135
+ type: object
136
+ properties:
137
+ endDate:
138
+ description: Batch Job End Date
139
+ required: false # TODO handrolled W-9314597
140
+ type: string
141
+ frequencyCadence:
142
+ description: Frequency Cadence for the Batch Job
143
+ type: string
144
+ enum:
145
+ - Daily
146
+ - Monthly
147
+ - Once
148
+ preferredTime:
149
+ description: Batch Job Preferred Run Time
150
+ type: string
151
+ recursEveryMonthOnDay:
152
+ description: Batch Job Recurrence Day for Monthly Frequency Option
153
+ required: false # TODO handrolled W-9314597
154
+ type: string
155
+ schedulerName:
156
+ description: Name of the batch scheduler
157
+ type: string
158
+ startDate:
159
+ description: Batch Job Start Date
160
+ type: string
161
+ status:
162
+ description: Scheduler Status for the Batch Job
163
+ type: string
164
+ enum:
165
+ - Active
166
+ - Canceled
167
+ - Draft
168
+ - Inactive
169
+ ScheduleOptionsInputRepresentationForInvoice:
170
+ description: Batch Scheduler Options Input Representation
171
+ discriminator: schedulerName # TODO hand rolled. W-9275787
172
+ type: object
173
+ properties:
174
+ endDate:
175
+ description: Batch Job End Date
176
+ required: false # TODO handrolled W-9314597
177
+ type: string
178
+ frequencyCadence:
179
+ description: Frequency Cadence for the Batch Job
180
+ type: string
181
+ enum:
182
+ - Daily
183
+ - Monthly
184
+ - Once
185
+ preferredTime:
186
+ description: Batch Job Preferred Run Time
187
+ required: false
188
+ type: string
189
+ schedulerName:
190
+ description: Name of the batch scheduler
191
+ type: string
192
+ startDate:
193
+ description: Batch Job Start Date
194
+ required: false
195
+ type: string
196
+ status:
197
+ description: Scheduler Status for the Batch Job
198
+ type: string
199
+ enum:
200
+ - Active
201
+ - Canceled
202
+ - Draft
203
+ - Inactive
204
+ timezone:
205
+ description: Preferred Time Zone of the invoice Scheduler
206
+ required: false
207
+ type: string
208
+ frequencyCadenceOptions:
209
+ description: Frequency Cadence Options for Invoice Scheduler
210
+ type: object
211
+ InvoicesBatchSchedulerOutputRepresentation:
212
+ description: Invoices Batch Scheduler Output Representation
213
+ type: object
214
+ properties:
215
+ billingBatchScheduler:
216
+ description: Billing Batch Scheduler Details
217
+ type: BillingBatchSchedulerRepresentation
218
+ BatchInvoiceSchedulerInputWrapperRepresentation:
219
+ description: Wrapper for invoice batch scheduler input representation
220
+ type: object
221
+ properties:
222
+ BatchInvoiceSchedulerInput:
223
+ type: BatchInvoiceSchedulerInputRepresentation
224
+ description: Invoices Batch Scheduler Input Representation
225
+ BatchInvoiceSchedulerInputRepresentation:
226
+ description: Invoices Batch Scheduler Input Representation
227
+ type: ScheduleOptionsInputRepresentationForInvoice
228
+ properties:
229
+ filterCriteria:
230
+ description: List of filter criteria line items
231
+ type: array
232
+ required: false # TODO handrolled W-9314597
233
+ items:
234
+ type: object
235
+ BatchInvoiceSchedulerUpdateInputWrapperRepresentation:
236
+ description: Wrapper for BatchInvoice Scheduler Update Input Representation
237
+ type: object
238
+ properties:
239
+ BatchInvoiceSchedulerUpdateInput:
240
+ type: BatchInvoiceSchedulerUpdateInputRepresentation
241
+ description: BatchInvoice Scheduler Update Input Representation
242
+ BatchInvoiceSchedulerUpdateInputRepresentation:
243
+ type: object
244
+ description: BatchInvoice Scheduler Update Input Representation
245
+ properties:
246
+ status:
247
+ description: Billing Batch Scheduler Status
248
+ type: string
249
+ enum:
250
+ - Active
251
+ - Canceled
252
+ - Draft
253
+ - Inactive
254
+ BatchInvoiceSchedulerUpdateOutputRepresentation:
255
+ type: object
256
+ description: BatchInvoice Scheduler Update Output Representation
257
+ properties:
258
+ status:
259
+ description: Status
260
+ type: string
261
+ enum:
262
+ - Active
263
+ - Canceled
264
+ - Draft
265
+ - Inactive
266
+ InvoiceBatchDraftToPostedInputRepresentation:
267
+ description: Invoice Batch Draft To Posted Input Representation
268
+ type: object
269
+ properties: {}
270
+ InvoiceBatchDraftToPostedOutputRepresentation:
271
+ description: Invoice Batch Draft To Posted Output Representation
272
+ type: object
273
+ properties:
274
+ invoiceBatchDraftToPostedId:
275
+ description: Invoice Batch Draft To Posted ID
276
+ type: string
277
+ success:
278
+ description: Flag indicating the overall enqueue status
279
+ type: boolean
280
+ InvoiceBatchRunRecoveryOutputRepresentation:
281
+ type: object
282
+ description: Invoice Batch Run Recovery Output Representation
283
+ properties:
284
+ invoiceBatchRunRecoveryId:
285
+ description: Invoice Batch Run Recovery ID
286
+ type: string
287
+ CronExecutionDatesInputRepresentation:
288
+ description: Cron Execution Dates Input Representation
289
+ type: object
290
+ properties:
291
+ numberOfNextExecutionDates:
292
+ description: Number of next execution dates to be returned for the Batch Job
293
+ type: integer
294
+ startDate:
295
+ description: Batch Job Start Date
296
+ type: string
297
+ timezone:
298
+ description: Preferred Time Zone of the invoice Scheduler
299
+ type: string
300
+ frequencyCadenceOptions:
301
+ description: Frequency Cadence Options for Invoice Scheduler
302
+ type: any
303
+ frequencyCadence:
304
+ description: Frequency Cadence for the Batch Job
305
+ type: string
306
+ enum:
307
+ - Daily
308
+ - Monthly
309
+ - Once
310
+ - Weekly
311
+ preferredTime:
312
+ description: Batch Job Preferred Run Time
313
+ type: string
314
+ CronExecutionDatesOutputRepresentation:
315
+ description: Cron Execution Dates Output Representation
316
+ type: object
317
+ properties:
318
+ executionDates:
319
+ description: Execution Dates
320
+ type: array
321
+ items:
322
+ type: string
323
+ /commerce/payments/payment-schedulers:
324
+ post:
325
+ description: Create Payments Batch Job Scheduler
326
+ responses:
327
+ '200':
328
+ description: Success
329
+ body:
330
+ application/json:
331
+ type: PaymentsBatchSchedulerOutputRepresentation
332
+ body:
333
+ application/json:
334
+ type: PaymentsBatchSchedulerInputWrapperRepresentation
335
+ #required: false # TODO handrolled W-9314597
336
+ (oas-body-name): PaymentsBatchSchedulerInput
337
+ /commerce/invoicing/invoice-schedulers:
338
+ post:
339
+ description: Create Invoices Batch Job Scheduler
340
+ responses:
341
+ '200':
342
+ description: Success
343
+ body:
344
+ application/json:
345
+ type: InvoicesBatchSchedulerOutputRepresentation
346
+ body:
347
+ application/json:
348
+ type: BatchInvoiceSchedulerInputWrapperRepresentation
349
+ #required: false # TODO handrolled W-9314597
350
+ (oas-body-name): BatchInvoiceSchedulerInput
351
+ /commerce/invoicing/invoice-schedulers/{billingBatchSchedulerId}:
352
+ put:
353
+ displayName: editInvoicesBatchScheduler
354
+ description: Edit Invoices Batch Job Scheduler
355
+ responses:
356
+ '200':
357
+ description: Success
358
+ body:
359
+ application/json:
360
+ type: InvoicesBatchSchedulerOutputRepresentation
361
+ body:
362
+ application/json:
363
+ type: BatchInvoiceSchedulerInputWrapperRepresentation
364
+ (oas-body-name): BatchInvoiceSchedulerInput
365
+ patch:
366
+ displayName: updateInvoicesBatchScheduler
367
+ description: Update Batch Invoice Job Scheduler
368
+ responses:
369
+ '200':
370
+ description: Success
371
+ body:
372
+ application/json:
373
+ type: BatchInvoiceSchedulerUpdateOutputRepresentation
374
+ body:
375
+ application/json:
376
+ type: BatchInvoiceSchedulerUpdateInputWrapperRepresentation
377
+ (oas-body-name): BatchInvoiceSchedulerUpdateInput
378
+ uriParameters:
379
+ billingBatchSchedulerId:
380
+ type: string
381
+ required: true
382
+ /commerce/invoicing/invoice-batch-runs/{invoiceBatchRunId}/actions/draft-to-posted:
383
+ post:
384
+ displayName: postInvoiceBatchDraftToPosted
385
+ description: Trigger a BatchInvoice Draft to Posted
386
+ responses:
387
+ '200':
388
+ description: Success
389
+ body:
390
+ application/json:
391
+ type: InvoiceBatchDraftToPostedOutputRepresentation
392
+ body:
393
+ application/json:
394
+ type: InvoiceBatchDraftToPostedInputRepresentation
395
+ #required: false # TODO handrolled W-13817376
396
+ (oas-body-name): invoiceBatchDraftToPostedInput
397
+ uriParameters:
398
+ invoiceBatchRunId:
399
+ type: string
400
+ required: true
401
+ /commerce/invoicing/invoice-batch-runs/{invoiceBatchRunId}/actions/recover:
402
+ post:
403
+ displayName: batchInvoiceRunRecovery
404
+ description: Trigger a BatchInvoiceRun recovery
405
+ responses:
406
+ '200':
407
+ description: Success
408
+ body:
409
+ application/json:
410
+ type: InvoiceBatchRunRecoveryOutputRepresentation
411
+ uriParameters:
412
+ invoiceBatchRunId:
413
+ type: string
414
+ required: true
415
+ # TODO Hand-rolled W-14972264 + W-15776899
416
+ /commerce:
417
+ /billing/invoices/invoice-batch-docgen/{invoiceBatchRunId}/actions/{actionName}:
418
+ post:
419
+ displayName: postBatchInvoiceDocGen
420
+ description: Generate batch invoice documents
421
+ responses:
422
+ '200':
423
+ description: Success
424
+ body:
425
+ application/json:
426
+ type: BatchInvoiceDocGenOutputRepresentation
427
+ uriParameters:
428
+ invoiceBatchRunId:
429
+ type: string
430
+ required: true
431
+ actionName:
432
+ type: string
433
+ required: true
434
+ /connect/billing/batch/cron/execution-dates:
435
+ post:
436
+ displayName: postCronExecutionDates
437
+ description: Get Execution Dates
438
+ responses:
439
+ '200':
440
+ description: Success
441
+ body:
442
+ application/json:
443
+ type: CronExecutionDatesOutputRepresentation
444
+ body:
445
+ application/json:
446
+ type: CronExecutionDatesInputRepresentation
447
+ (oas-body-name): CronExecutionDatesInput