@salesforce/lds-adapters-industries-actionplan 0.131.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/industries-actionplan.js +1205 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +66 -0
- package/dist/es/es2018/types/src/generated/adapters/getActionPlanItems.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getActionPlanStatusInfo.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/adapters/getActionPlans.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectActionPlan.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectActionPlanActionPlanItemsByActionPlanId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectActionPlanStatusInfoByActionPlanId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/ActionPlanItemCollectionRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/ActionPlanItemDetailedRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/ActionPlanItemListRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/ActionPlanItemRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/ActionPlanItemTaskRepresentation.d.ts +39 -0
- package/dist/es/es2018/types/src/generated/types/ActionPlanItemsWrapperRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ActionPlanListRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/ActionPlanRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/ActionPlanStatusInfoOutputRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/ActionPlansWrapperOutputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ComputedFieldsWrapperRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/FieldRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/TaskProgressRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +39 -0
- package/package.json +68 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1253 -0
- package/src/raml/api.raml +262 -0
- package/src/raml/luvio.raml +38 -0
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '56.0'
|
|
6
|
+
mediaType: application/json
|
|
7
|
+
protocols:
|
|
8
|
+
- https
|
|
9
|
+
baseUri: /services/data/v58.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
|
+
ActionPlanItemCollectionRepresentation:
|
|
29
|
+
description: Record Representation of Collection of ActionPlanItems
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
records:
|
|
33
|
+
description: Specifies the collection of records of ActionPlanItem
|
|
34
|
+
type: array
|
|
35
|
+
items:
|
|
36
|
+
type: ActionPlanItemDetailedRepresentation
|
|
37
|
+
ActionPlanItemDetailedRepresentation:
|
|
38
|
+
description: Record Representation of ActionPlanItem
|
|
39
|
+
type: object
|
|
40
|
+
properties:
|
|
41
|
+
actionPlanItemTask:
|
|
42
|
+
description: Returns the data of the item associated with the ActionPlanItem
|
|
43
|
+
type: ActionPlanItemTaskRepresentation
|
|
44
|
+
required: false
|
|
45
|
+
id:
|
|
46
|
+
description: ID of this record.
|
|
47
|
+
type: string
|
|
48
|
+
isRequired:
|
|
49
|
+
description: Returns if the ActionPlanItem is mandatory or not
|
|
50
|
+
type: boolean
|
|
51
|
+
ActionPlanItemListRepresentation:
|
|
52
|
+
description: Representation for list of mandatory Action Plan Items that are pending
|
|
53
|
+
type: object
|
|
54
|
+
properties:
|
|
55
|
+
records:
|
|
56
|
+
description: List of mandatory action plan items that are pending
|
|
57
|
+
type: array
|
|
58
|
+
items:
|
|
59
|
+
type: ActionPlanItemRepresentation
|
|
60
|
+
ActionPlanItemRepresentation:
|
|
61
|
+
description: Representation of Action Plan Item
|
|
62
|
+
type: object
|
|
63
|
+
properties:
|
|
64
|
+
id:
|
|
65
|
+
description: ID of the Action Plan Item
|
|
66
|
+
type: string
|
|
67
|
+
ActionPlanItemTaskRepresentation:
|
|
68
|
+
description: Record Representation of ActionPlanItemTask
|
|
69
|
+
type: object
|
|
70
|
+
properties:
|
|
71
|
+
computedFields:
|
|
72
|
+
description: Fields computed by service layer
|
|
73
|
+
type: ComputedFieldsWrapperRepresentation
|
|
74
|
+
required: false
|
|
75
|
+
fields:
|
|
76
|
+
description: The fields for the task
|
|
77
|
+
type: array
|
|
78
|
+
required: false
|
|
79
|
+
items:
|
|
80
|
+
type: FieldRepresentation
|
|
81
|
+
id:
|
|
82
|
+
description: ID of this record.
|
|
83
|
+
type: string
|
|
84
|
+
progress:
|
|
85
|
+
description: The progress of task
|
|
86
|
+
type: TaskProgressRepresentation
|
|
87
|
+
required: false
|
|
88
|
+
ActionPlanItemsWrapperRepresentation:
|
|
89
|
+
description: Record Representation of ActionPlanItemsWrapper
|
|
90
|
+
type: object
|
|
91
|
+
properties:
|
|
92
|
+
actionPlanItems:
|
|
93
|
+
description: Specifies the wrapper of records of ActionPlanItems
|
|
94
|
+
type: ActionPlanItemCollectionRepresentation
|
|
95
|
+
ActionPlanStatusInfoOutputRepresentation:
|
|
96
|
+
description: Representation for Action Plan Status which tells whether all mandatory
|
|
97
|
+
tasks are completed
|
|
98
|
+
type: object
|
|
99
|
+
properties:
|
|
100
|
+
mandatoryItemsCompleted:
|
|
101
|
+
description: Whether all mandatory Items are completed
|
|
102
|
+
type: boolean
|
|
103
|
+
mandatoryItemsPending:
|
|
104
|
+
description: List of Mandatory Action Plan Items that are pending
|
|
105
|
+
type: ActionPlanItemListRepresentation
|
|
106
|
+
required: false
|
|
107
|
+
optionalItemsCompleted:
|
|
108
|
+
description: Whether all optional items are completed
|
|
109
|
+
type: boolean
|
|
110
|
+
statusCode:
|
|
111
|
+
description: Current status code of Action Plan
|
|
112
|
+
type: string
|
|
113
|
+
required: false
|
|
114
|
+
ComputedFieldsWrapperRepresentation:
|
|
115
|
+
description: Record Representation of ComputedFieldsWrapper
|
|
116
|
+
type: object
|
|
117
|
+
properties:
|
|
118
|
+
fields:
|
|
119
|
+
description: Specifies computed fields of the ActionPlanItemTask
|
|
120
|
+
type: object
|
|
121
|
+
properties:
|
|
122
|
+
//:
|
|
123
|
+
type: any # TODO Hand-Rolled W-8252808
|
|
124
|
+
FieldRepresentation:
|
|
125
|
+
description: Output representation of a single field
|
|
126
|
+
type: object
|
|
127
|
+
properties:
|
|
128
|
+
colType:
|
|
129
|
+
description: The column type (date, currency, etc.)
|
|
130
|
+
type: string
|
|
131
|
+
fieldName:
|
|
132
|
+
description: The field name
|
|
133
|
+
type: string
|
|
134
|
+
label:
|
|
135
|
+
description: Label of the field
|
|
136
|
+
type: string
|
|
137
|
+
value:
|
|
138
|
+
description: The value of the field
|
|
139
|
+
type: string
|
|
140
|
+
TaskProgressRepresentation:
|
|
141
|
+
description: Output represenation of a task progress
|
|
142
|
+
type: object
|
|
143
|
+
properties:
|
|
144
|
+
currentValue:
|
|
145
|
+
description: The current value of progress
|
|
146
|
+
type: integer
|
|
147
|
+
maxValue:
|
|
148
|
+
description: The max value of progress
|
|
149
|
+
type: integer
|
|
150
|
+
minValue:
|
|
151
|
+
description: The min value of progress
|
|
152
|
+
type: integer
|
|
153
|
+
ActionPlanListRepresentation:
|
|
154
|
+
description: Representation of Action Plan List
|
|
155
|
+
type: object
|
|
156
|
+
properties:
|
|
157
|
+
records:
|
|
158
|
+
description: List of action plan records
|
|
159
|
+
type: array
|
|
160
|
+
items:
|
|
161
|
+
type: ActionPlanRepresentation
|
|
162
|
+
ActionPlanRepresentation:
|
|
163
|
+
description: Representation of Action Plan
|
|
164
|
+
type: object
|
|
165
|
+
properties:
|
|
166
|
+
id:
|
|
167
|
+
description: ID of the Action Plan
|
|
168
|
+
type: string
|
|
169
|
+
itemCount:
|
|
170
|
+
description: Total number of Action Plan Item present in Action Plan
|
|
171
|
+
type: integer
|
|
172
|
+
required: false
|
|
173
|
+
name:
|
|
174
|
+
description: Name of the Action Plan
|
|
175
|
+
type: string
|
|
176
|
+
statusCode:
|
|
177
|
+
description: Status Code for the Action Plan
|
|
178
|
+
type: string
|
|
179
|
+
required: false
|
|
180
|
+
ActionPlansWrapperOutputRepresentation:
|
|
181
|
+
description: Representation of Action Plans List Api Output
|
|
182
|
+
type: object
|
|
183
|
+
properties:
|
|
184
|
+
actionPlan:
|
|
185
|
+
description: List of Action Plans
|
|
186
|
+
type: ActionPlanListRepresentation
|
|
187
|
+
/connect/action-plan:
|
|
188
|
+
get:
|
|
189
|
+
description: API to get the action plans configured for the context Object
|
|
190
|
+
responses:
|
|
191
|
+
'200':
|
|
192
|
+
description: Success
|
|
193
|
+
body:
|
|
194
|
+
application/json:
|
|
195
|
+
type: ActionPlansWrapperOutputRepresentation
|
|
196
|
+
queryParameters:
|
|
197
|
+
actionPlanType:
|
|
198
|
+
type: string
|
|
199
|
+
required: false
|
|
200
|
+
enum:
|
|
201
|
+
- Industries
|
|
202
|
+
- Retail
|
|
203
|
+
limit:
|
|
204
|
+
type: integer
|
|
205
|
+
required: false
|
|
206
|
+
order:
|
|
207
|
+
type: string
|
|
208
|
+
required: false
|
|
209
|
+
enum:
|
|
210
|
+
- Asc
|
|
211
|
+
- Desc
|
|
212
|
+
orderingParam:
|
|
213
|
+
type: string
|
|
214
|
+
required: false
|
|
215
|
+
enum:
|
|
216
|
+
- ActualEndDate
|
|
217
|
+
- ActualStartDate
|
|
218
|
+
- CreatedDate
|
|
219
|
+
- EndDate
|
|
220
|
+
- Id
|
|
221
|
+
- LastItemActionDateTime
|
|
222
|
+
- LastModifiedDate
|
|
223
|
+
- LastReferencedDate
|
|
224
|
+
- LastViewedDate
|
|
225
|
+
- Name
|
|
226
|
+
- StartDate
|
|
227
|
+
- StatusCode
|
|
228
|
+
targetId:
|
|
229
|
+
type: string
|
|
230
|
+
required: false
|
|
231
|
+
/{actionPlanId}:
|
|
232
|
+
/action-plan-items:
|
|
233
|
+
get:
|
|
234
|
+
description: API to fetch data of ServicePlanTemplateId and it's related record
|
|
235
|
+
responses:
|
|
236
|
+
'200':
|
|
237
|
+
description: Success
|
|
238
|
+
body:
|
|
239
|
+
application/json:
|
|
240
|
+
type: ActionPlanItemsWrapperRepresentation
|
|
241
|
+
queryParameters:
|
|
242
|
+
limit:
|
|
243
|
+
type: integer
|
|
244
|
+
required: false
|
|
245
|
+
uriParameters:
|
|
246
|
+
actionPlanId:
|
|
247
|
+
type: string
|
|
248
|
+
required: true
|
|
249
|
+
/status-info:
|
|
250
|
+
get:
|
|
251
|
+
description: API to get the aggregated status of Action Plan Items, whether
|
|
252
|
+
all mandatory items are completed
|
|
253
|
+
responses:
|
|
254
|
+
'200':
|
|
255
|
+
description: Success
|
|
256
|
+
body:
|
|
257
|
+
application/json:
|
|
258
|
+
type: ActionPlanStatusInfoOutputRepresentation
|
|
259
|
+
uriParameters:
|
|
260
|
+
actionPlanId:
|
|
261
|
+
type: string
|
|
262
|
+
required: true
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'ActionPlan'
|
|
8
|
+
|
|
9
|
+
types:
|
|
10
|
+
ActionPlanStatusInfoOutputRepresentation:
|
|
11
|
+
(luvio.opaque): true
|
|
12
|
+
(luvio.ttl): 1000
|
|
13
|
+
ActionPlanItemsWrapperRepresentation:
|
|
14
|
+
(luvio.opaque): true
|
|
15
|
+
(luvio.ttl): 1000
|
|
16
|
+
ActionPlansWrapperOutputRepresentation:
|
|
17
|
+
(luvio.opaque): true
|
|
18
|
+
(luvio.ttl): 1000
|
|
19
|
+
|
|
20
|
+
/connect/action-plan:
|
|
21
|
+
get:
|
|
22
|
+
(luvio.adapter):
|
|
23
|
+
name: getActionPlans
|
|
24
|
+
/{actionPlanId}:
|
|
25
|
+
/action-plan-items:
|
|
26
|
+
get:
|
|
27
|
+
(luvio.adapter):
|
|
28
|
+
name: getActionPlanItems
|
|
29
|
+
/status-info:
|
|
30
|
+
get:
|
|
31
|
+
(luvio.adapter):
|
|
32
|
+
name: getActionPlanStatusInfo
|
|
33
|
+
tests:
|
|
34
|
+
validConfigs:
|
|
35
|
+
- |
|
|
36
|
+
{
|
|
37
|
+
"actionPlanId": "07rxx0000004CDsAAM"
|
|
38
|
+
}
|