@salesforce/lds-adapters-revenue-harmonizebilling 1.273.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/LICENSE.txt +82 -0
- package/dist/es/es2018/revenue-harmonizebilling.js +416 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/postDraftInvoices.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/postCommerceInvoicingInvoicesCollectionActionsPost.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/ErrorResponseRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/InvoiceDraftToPostedInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/RevenueAsyncRepresentation.d.ts +39 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +66 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +451 -0
- package/src/raml/api.raml +90 -0
- package/src/raml/luvio.raml +21 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '61.0'
|
|
6
|
+
mediaType: application/json
|
|
7
|
+
protocols:
|
|
8
|
+
- https
|
|
9
|
+
baseUri: /services/data/v61.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
|
+
InvoiceDraftToPostedInputRepresentation:
|
|
29
|
+
description: Connect API representation for Invoice Draft to Posted api
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
correlationId:
|
|
33
|
+
description: Correlation ID
|
|
34
|
+
type: string
|
|
35
|
+
required: false # TODO handrolled W-13817376
|
|
36
|
+
invoiceIds:
|
|
37
|
+
description: List of draft invoices to be posted.
|
|
38
|
+
type: array
|
|
39
|
+
items:
|
|
40
|
+
type: string
|
|
41
|
+
RevenueAsyncRepresentation: #TODO handrolled W-13817376
|
|
42
|
+
description: Connect API representation of an async service result
|
|
43
|
+
type: object
|
|
44
|
+
properties:
|
|
45
|
+
errors:
|
|
46
|
+
description: List of errors
|
|
47
|
+
type: array
|
|
48
|
+
items:
|
|
49
|
+
type: ErrorResponseRepresentation
|
|
50
|
+
requestIdentifier:
|
|
51
|
+
description: Unique request identifier that can be used to poll async request
|
|
52
|
+
type: string
|
|
53
|
+
statusURL:
|
|
54
|
+
description: a StatusURL for tracking this operation
|
|
55
|
+
required: false # TODO handrolled W-13817376
|
|
56
|
+
type: string
|
|
57
|
+
success:
|
|
58
|
+
description: Flag indicating the overall enqueue status
|
|
59
|
+
type: boolean
|
|
60
|
+
|
|
61
|
+
ErrorResponseRepresentation:
|
|
62
|
+
description: Error response representation
|
|
63
|
+
type: object
|
|
64
|
+
properties:
|
|
65
|
+
errorCode:
|
|
66
|
+
description: Error Code
|
|
67
|
+
type: string
|
|
68
|
+
message:
|
|
69
|
+
description: Message stating the reason for error, if any
|
|
70
|
+
type: string
|
|
71
|
+
|
|
72
|
+
/commerce:
|
|
73
|
+
/invoicing:
|
|
74
|
+
/invoices:
|
|
75
|
+
/collection/actions:
|
|
76
|
+
/post:
|
|
77
|
+
post:
|
|
78
|
+
displayName: postInvoiceDraftToPosted
|
|
79
|
+
description: Post a Draft Invoice
|
|
80
|
+
responses:
|
|
81
|
+
'200':
|
|
82
|
+
description: Success
|
|
83
|
+
body:
|
|
84
|
+
application/json:
|
|
85
|
+
type: RevenueAsyncRepresentation
|
|
86
|
+
body:
|
|
87
|
+
application/json:
|
|
88
|
+
type: InvoiceDraftToPostedInputRepresentation
|
|
89
|
+
#required: false # TODO handrolled W-13817376
|
|
90
|
+
(oas-body-name): inputRequest
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'HarmonizeBilling'
|
|
8
|
+
|
|
9
|
+
types:
|
|
10
|
+
RevenueAsyncRepresentation:
|
|
11
|
+
(luvio.ttl): 1000
|
|
12
|
+
|
|
13
|
+
/commerce:
|
|
14
|
+
/invoicing:
|
|
15
|
+
/invoices:
|
|
16
|
+
/collection/actions:
|
|
17
|
+
/post:
|
|
18
|
+
post:
|
|
19
|
+
(luvio.method): get
|
|
20
|
+
(luvio.adapter):
|
|
21
|
+
name: postDraftInvoices
|