@salesforce/lds-adapters-revenue-sales-transaction-contexts 1.303.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-sales-transaction-contexts.js +861 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/createRampDeal.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/adapters/deleteRampDeal.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/adapters/updateRampDeal.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/adapters/viewRampDeal.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectRevenueManagementSalesTransactionContextsActionsRampDealViewByResourceId.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectRevenueManagementSalesTransactionContextsActionsRampDealCreateByResourceId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectRevenueManagementSalesTransactionContextsActionsRampDealDeleteByResourceId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectRevenueManagementSalesTransactionContextsActionsRampDealUpdateByResourceId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/ContextNodeInputRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/CreateRampDealInputRepresentation.d.ts +49 -0
- package/dist/es/es2018/types/src/generated/types/CreateRampDealInputWrapperRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/DeleteRampDealInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/DeleteRampDealInputWrapperRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/ExecutionSettingsInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/RampDealServiceErrorResponseRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/RampDealServiceOutputRepresentation.d.ts +52 -0
- package/dist/es/es2018/types/src/generated/types/UpdateRampDealInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/UpdateRampDealInputWrapperRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +67 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +956 -0
- package/src/raml/api.raml +251 -0
- package/src/raml/luvio.raml +33 -0
|
@@ -0,0 +1,251 @@
|
|
|
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/v62.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
|
+
ContextNodeInputRepresentation:
|
|
29
|
+
description: Input representation for Context nodes of ramp segments
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
contextNode:
|
|
33
|
+
description: Input Representation for context node to be added or updated
|
|
34
|
+
type: object
|
|
35
|
+
properties:
|
|
36
|
+
//:
|
|
37
|
+
type: any
|
|
38
|
+
contextNodePath:
|
|
39
|
+
description: Input Representation for context node path
|
|
40
|
+
type: array
|
|
41
|
+
items:
|
|
42
|
+
type: string
|
|
43
|
+
CreateRampDealInputWrapperRepresentation:
|
|
44
|
+
description: Input Wrapper Representation for Create ramp deal connect API
|
|
45
|
+
type: object
|
|
46
|
+
properties:
|
|
47
|
+
createRampDealInputParam:
|
|
48
|
+
type: CreateRampDealInputRepresentation
|
|
49
|
+
CreateRampDealInputRepresentation:
|
|
50
|
+
description: Create ramp deal connect API input representation
|
|
51
|
+
type: object
|
|
52
|
+
properties:
|
|
53
|
+
executionSettings:
|
|
54
|
+
description: Execution Settings like run pricing, run config rules
|
|
55
|
+
type: object
|
|
56
|
+
segmentType:
|
|
57
|
+
description: 'Segment type: FreeTrial/Custom/Annual'
|
|
58
|
+
type: string
|
|
59
|
+
enum:
|
|
60
|
+
- Custom
|
|
61
|
+
- FreeTrial
|
|
62
|
+
- Yearly
|
|
63
|
+
subscriptionTerm:
|
|
64
|
+
description: Subscription term period
|
|
65
|
+
type: integer
|
|
66
|
+
subscriptionTermUnit:
|
|
67
|
+
description: 'Subscription term unit : Months/Years'
|
|
68
|
+
type: string
|
|
69
|
+
enum:
|
|
70
|
+
- Annual
|
|
71
|
+
- Days
|
|
72
|
+
- Months
|
|
73
|
+
transactionId:
|
|
74
|
+
description: Transaction Id, quoteId or orderId
|
|
75
|
+
type: string
|
|
76
|
+
transactionLineId:
|
|
77
|
+
description: Transaction Line Id, quoteLineId or orderItemId
|
|
78
|
+
type: string
|
|
79
|
+
trialTerm:
|
|
80
|
+
description: Trial term period
|
|
81
|
+
type: integer
|
|
82
|
+
trialTermUnit:
|
|
83
|
+
description: 'Trial term unit : Days'
|
|
84
|
+
type: string
|
|
85
|
+
enum:
|
|
86
|
+
- Annual
|
|
87
|
+
- Days
|
|
88
|
+
- Months
|
|
89
|
+
DeleteRampDealInputWrapperRepresentation:
|
|
90
|
+
description: Input Wrapper Representation for Delete ramp deal connect API
|
|
91
|
+
type: object
|
|
92
|
+
properties:
|
|
93
|
+
deleteRampDealInputParam:
|
|
94
|
+
type: DeleteRampDealInputRepresentation
|
|
95
|
+
DeleteRampDealInputRepresentation:
|
|
96
|
+
description: Delete ramp deal connect API input representation
|
|
97
|
+
type: object
|
|
98
|
+
properties:
|
|
99
|
+
rampDealIds:
|
|
100
|
+
description: Ramp deal grouping ID
|
|
101
|
+
type: array
|
|
102
|
+
items:
|
|
103
|
+
type: string
|
|
104
|
+
ExecutionSettingsInputRepresentation:
|
|
105
|
+
description: Input Representation for how the Ramp Deal api will execute
|
|
106
|
+
type: object
|
|
107
|
+
properties:
|
|
108
|
+
executeConfigRules:
|
|
109
|
+
description: Whether to execute Config rules or not
|
|
110
|
+
type: boolean
|
|
111
|
+
executePricing:
|
|
112
|
+
description: Whether to execute Pricing or not
|
|
113
|
+
type: boolean
|
|
114
|
+
RampDealServiceErrorResponseRepresentation:
|
|
115
|
+
description: Price ramps Service Error response representation
|
|
116
|
+
type: object
|
|
117
|
+
properties:
|
|
118
|
+
errorCode:
|
|
119
|
+
description: Error Code from Ramp Service Response. For example, INVALID_INPUT_ERROR,
|
|
120
|
+
type: string
|
|
121
|
+
message:
|
|
122
|
+
description: Error message from Price Ramps Service Response.
|
|
123
|
+
type: string
|
|
124
|
+
RampDealServiceOutputRepresentation:
|
|
125
|
+
description: Price Ramp APIs output representation
|
|
126
|
+
type: object
|
|
127
|
+
properties:
|
|
128
|
+
errors:
|
|
129
|
+
description: List of errors encountered during the API processing.
|
|
130
|
+
type: array
|
|
131
|
+
items:
|
|
132
|
+
type: RampDealServiceErrorResponseRepresentation
|
|
133
|
+
salesTransactionContext:
|
|
134
|
+
description: SalesTransaction context object with updated price ramp information.
|
|
135
|
+
type: object
|
|
136
|
+
properties:
|
|
137
|
+
//:
|
|
138
|
+
type: any
|
|
139
|
+
success:
|
|
140
|
+
description: API request successfully completed
|
|
141
|
+
type: boolean
|
|
142
|
+
transactionContextId:
|
|
143
|
+
description: SalesTransaction context Id.
|
|
144
|
+
type: string
|
|
145
|
+
UpdateRampDealInputWrapperRepresentation:
|
|
146
|
+
description: Input Wrapper Representation for Update ramp deal connect API
|
|
147
|
+
type: object
|
|
148
|
+
properties:
|
|
149
|
+
updateRampDealInputParam:
|
|
150
|
+
type: UpdateRampDealInputRepresentation
|
|
151
|
+
UpdateRampDealInputRepresentation:
|
|
152
|
+
description: Update ramp deal connect API input representation
|
|
153
|
+
type: object
|
|
154
|
+
properties:
|
|
155
|
+
addedNodes:
|
|
156
|
+
description: Input Representation for adding new nodes
|
|
157
|
+
type: array
|
|
158
|
+
items:
|
|
159
|
+
type: object
|
|
160
|
+
deletedNodes:
|
|
161
|
+
description: Input Representation for deleting new nodes
|
|
162
|
+
type: array
|
|
163
|
+
items:
|
|
164
|
+
type: object
|
|
165
|
+
executionSettings:
|
|
166
|
+
description: Execution Settings like run pricing, run config rules
|
|
167
|
+
type: object
|
|
168
|
+
updatedNodes:
|
|
169
|
+
description: Input Representation for updating new nodes
|
|
170
|
+
type: array
|
|
171
|
+
items:
|
|
172
|
+
type: object
|
|
173
|
+
/connect/revenue-management/sales-transaction-contexts/{resourceId}/actions:
|
|
174
|
+
/ramp-deal-create:
|
|
175
|
+
post:
|
|
176
|
+
displayName: postCreateRampDeal
|
|
177
|
+
description: Post request for creating ramp deal for SalesTransaction(Quote
|
|
178
|
+
or Order).
|
|
179
|
+
responses:
|
|
180
|
+
'200':
|
|
181
|
+
description: Success
|
|
182
|
+
body:
|
|
183
|
+
application/json:
|
|
184
|
+
type: RampDealServiceOutputRepresentation
|
|
185
|
+
body:
|
|
186
|
+
application/json:
|
|
187
|
+
type: CreateRampDealInputWrapperRepresentation
|
|
188
|
+
(oas-body-name): createRampDealInputParam
|
|
189
|
+
uriParameters:
|
|
190
|
+
resourceId:
|
|
191
|
+
type: string
|
|
192
|
+
required: true
|
|
193
|
+
/ramp-deal-delete:
|
|
194
|
+
post:
|
|
195
|
+
displayName: postDeleteRampDeal
|
|
196
|
+
description: Post request for deleting ramp deal for SalesTransaction(Quote
|
|
197
|
+
or Order).
|
|
198
|
+
responses:
|
|
199
|
+
'200':
|
|
200
|
+
description: Success
|
|
201
|
+
body:
|
|
202
|
+
application/json:
|
|
203
|
+
type: RampDealServiceOutputRepresentation
|
|
204
|
+
body:
|
|
205
|
+
application/json:
|
|
206
|
+
type: DeleteRampDealInputWrapperRepresentation
|
|
207
|
+
(oas-body-name): deleteRampDealInputParam
|
|
208
|
+
uriParameters:
|
|
209
|
+
resourceId:
|
|
210
|
+
type: string
|
|
211
|
+
required: true
|
|
212
|
+
/ramp-deal-update:
|
|
213
|
+
post:
|
|
214
|
+
displayName: postUpdateRampDeal
|
|
215
|
+
description: Post request for updating price ramps for SalesTransaction(Quote
|
|
216
|
+
or Order).
|
|
217
|
+
responses:
|
|
218
|
+
'200':
|
|
219
|
+
description: Success
|
|
220
|
+
body:
|
|
221
|
+
application/json:
|
|
222
|
+
type: RampDealServiceOutputRepresentation
|
|
223
|
+
body:
|
|
224
|
+
application/json:
|
|
225
|
+
type: UpdateRampDealInputWrapperRepresentation
|
|
226
|
+
(oas-body-name): updateRampDealInputParam
|
|
227
|
+
uriParameters:
|
|
228
|
+
resourceId:
|
|
229
|
+
type: string
|
|
230
|
+
required: true
|
|
231
|
+
/ramp-deal-view:
|
|
232
|
+
get:
|
|
233
|
+
displayName: getViewRampDeal
|
|
234
|
+
description: Get the segments for the Ramp deal
|
|
235
|
+
responses:
|
|
236
|
+
'200':
|
|
237
|
+
description: Success
|
|
238
|
+
body:
|
|
239
|
+
application/json:
|
|
240
|
+
type: RampDealServiceOutputRepresentation
|
|
241
|
+
queryParameters:
|
|
242
|
+
transactionId:
|
|
243
|
+
type: string
|
|
244
|
+
required: false
|
|
245
|
+
transactionLineId:
|
|
246
|
+
type: string
|
|
247
|
+
required: false
|
|
248
|
+
uriParameters:
|
|
249
|
+
resourceId:
|
|
250
|
+
type: string
|
|
251
|
+
required: true
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'sales-transaction-contexts'
|
|
8
|
+
|
|
9
|
+
types:
|
|
10
|
+
RampDealServiceOutputRepresentation:
|
|
11
|
+
(luvio.ttl): 1000
|
|
12
|
+
(luvio.key):
|
|
13
|
+
transactionContextId: transactionContextId
|
|
14
|
+
|
|
15
|
+
/connect/revenue-management/sales-transaction-contexts/{resourceId}/actions:
|
|
16
|
+
/ramp-deal-create:
|
|
17
|
+
post:
|
|
18
|
+
(luvio.adapter):
|
|
19
|
+
name: createRampDeal
|
|
20
|
+
/ramp-deal-delete:
|
|
21
|
+
post:
|
|
22
|
+
(luvio.adapter):
|
|
23
|
+
name: deleteRampDeal
|
|
24
|
+
/ramp-deal-update:
|
|
25
|
+
post:
|
|
26
|
+
(luvio.adapter):
|
|
27
|
+
name: updateRampDeal
|
|
28
|
+
/ramp-deal-view:
|
|
29
|
+
get:
|
|
30
|
+
(luvio.adapter):
|
|
31
|
+
name: viewRampDeal
|
|
32
|
+
(luvio.key):
|
|
33
|
+
transactionContextId: urlParams.resourceId
|