@salesforce/lds-adapters-platform-enablement 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.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/platform-enablement.js +1882 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getEnablementProgramSummary.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getProgramSummaryCollection.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/adapters/getProgramSummaryCollectionForCommunity.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/adapters/selfEnrollInEnablementProgram.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/adapters/unenrollFromEnablementProgram.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +6 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +11 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectCommunitiesEnablementProgramSummaryCollectionByCommunityId.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectEnablementProgramSummaryByEnablementProgramId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectEnablementProgramSummaryCollection.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectEnablementProgramActionsEnrollByEnablementProgramId.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectEnablementProgramActionsUnenrollByEnablementProgramId.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/types/EnablementProgramSelfEnrollmentRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/EnablementProgramSelfUnenrollmentRepresentation.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/types/EnablementProgramSummaryItemRepresentation.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/EnablementProgramSummaryListRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/EnablementProgramSummaryMeasureRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EnablementProgramSummaryMilestoneRepresentation.d.ts +67 -0
- package/dist/es/es2018/types/src/generated/types/EnablementProgramSummaryRepresentation.d.ts +67 -0
- package/dist/es/es2018/types/src/generated/types/EnablementProgramSummarySectionRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EnablementProgramSummaryTaskRepresentation.d.ts +48 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +76 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1957 -0
- package/src/raml/api.raml +357 -0
- package/src/raml/luvio.raml +53 -0
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '57.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
|
+
EnablementProgramSelfEnrollmentRepresentation:
|
|
29
|
+
description: Enablement Program Self-Enrollment Output Representation
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
learningItemAssignmentId:
|
|
33
|
+
description: Record Id of LearningItemAssignment
|
|
34
|
+
type: string
|
|
35
|
+
EnablementProgramSelfUnenrollmentRepresentation:
|
|
36
|
+
description: Enablement Program Self-Unenrollment Output Representation
|
|
37
|
+
type: object
|
|
38
|
+
EnablementProgramSummaryItemRepresentation:
|
|
39
|
+
description: Common Enablement Program Summary item representation
|
|
40
|
+
discriminator: type
|
|
41
|
+
type: object
|
|
42
|
+
properties:
|
|
43
|
+
description:
|
|
44
|
+
description: Description of the enablement program summary item
|
|
45
|
+
type: string
|
|
46
|
+
id:
|
|
47
|
+
description: Id of the enablement program summary item
|
|
48
|
+
type: string
|
|
49
|
+
sequenceNumber:
|
|
50
|
+
description: Sequence Number of the enablement task
|
|
51
|
+
type: integer
|
|
52
|
+
title:
|
|
53
|
+
description: Title of the enablement program summary item
|
|
54
|
+
type: string
|
|
55
|
+
type:
|
|
56
|
+
description: Type of enablement program summary item
|
|
57
|
+
type: string
|
|
58
|
+
enum:
|
|
59
|
+
- Milestone
|
|
60
|
+
- Section
|
|
61
|
+
- Task
|
|
62
|
+
EnablementProgramSummaryListRepresentation:
|
|
63
|
+
description: List of Enablement Program Summary Representations
|
|
64
|
+
type: object
|
|
65
|
+
properties:
|
|
66
|
+
hasMore:
|
|
67
|
+
description: Indicates if there are more programs available than the results returned
|
|
68
|
+
type: boolean
|
|
69
|
+
programSummaryList:
|
|
70
|
+
description: List of enablement program summaries
|
|
71
|
+
type: array
|
|
72
|
+
items:
|
|
73
|
+
type: EnablementProgramSummaryRepresentation
|
|
74
|
+
EnablementProgramSummaryMeasureRepresentation:
|
|
75
|
+
description: Measure Representation
|
|
76
|
+
type: object
|
|
77
|
+
properties:
|
|
78
|
+
aggregationType:
|
|
79
|
+
description: Indicates milestone aggregation type
|
|
80
|
+
type: string
|
|
81
|
+
enum:
|
|
82
|
+
- Average
|
|
83
|
+
- Count
|
|
84
|
+
- Sum
|
|
85
|
+
measureId:
|
|
86
|
+
description: Id of the enablement program summary measure
|
|
87
|
+
type: string
|
|
88
|
+
EnablementProgramSummaryMilestoneRepresentation:
|
|
89
|
+
description: Runtime representation of enablement program milestone.
|
|
90
|
+
discriminatorValue: Milestone
|
|
91
|
+
type: EnablementProgramSummaryItemRepresentation
|
|
92
|
+
properties:
|
|
93
|
+
completedDate:
|
|
94
|
+
description: The date the item was completed
|
|
95
|
+
type: string | nil
|
|
96
|
+
completedPercent:
|
|
97
|
+
description: Percent complete for the current user
|
|
98
|
+
#format: double # Hand-rolled format not allowed with union type
|
|
99
|
+
type: number | nil
|
|
100
|
+
compositeMilestoneType:
|
|
101
|
+
description: Indicates composite milestone type
|
|
102
|
+
type: string | nil
|
|
103
|
+
enum:
|
|
104
|
+
- Addition
|
|
105
|
+
- Division
|
|
106
|
+
- Percentage
|
|
107
|
+
contributingRecordCount:
|
|
108
|
+
description: The total contributing record count
|
|
109
|
+
type: integer | nil
|
|
110
|
+
dueDate:
|
|
111
|
+
description: Due date for the current assignment
|
|
112
|
+
type: string | nil
|
|
113
|
+
isCompleted:
|
|
114
|
+
description: Indicates if the item is complete or not
|
|
115
|
+
type: boolean | nil
|
|
116
|
+
isOverdue:
|
|
117
|
+
description: Indicates if the item is overdue or not
|
|
118
|
+
type: boolean | nil
|
|
119
|
+
measures:
|
|
120
|
+
description: Indicates measure details
|
|
121
|
+
type: array
|
|
122
|
+
items:
|
|
123
|
+
type: EnablementProgramSummaryMeasureRepresentation
|
|
124
|
+
milestoneResult:
|
|
125
|
+
description: The result value of if the task is of measure type
|
|
126
|
+
#format: double # Hand-rolled format not allowed with union type
|
|
127
|
+
type: number | nil
|
|
128
|
+
milestoneTarget:
|
|
129
|
+
description: Milestone Target of the enablement task
|
|
130
|
+
#format: double # Hand-rolled format not allowed with union type
|
|
131
|
+
type: number | nil
|
|
132
|
+
minimumSampleSize:
|
|
133
|
+
description: The minimum sample record size
|
|
134
|
+
type: integer | nil
|
|
135
|
+
programDay:
|
|
136
|
+
description: The day the program task is due
|
|
137
|
+
type: integer
|
|
138
|
+
progressStatus:
|
|
139
|
+
description: Indicates milestone progress status
|
|
140
|
+
type: string | nil
|
|
141
|
+
enum:
|
|
142
|
+
- Behind
|
|
143
|
+
- CompletedLate
|
|
144
|
+
- CompletedOnTime
|
|
145
|
+
- NoLongerTracking
|
|
146
|
+
- NotCompleted
|
|
147
|
+
- Overdue
|
|
148
|
+
EnablementProgramSummaryRepresentation:
|
|
149
|
+
description: Enablement Program Summary Representation
|
|
150
|
+
type: object
|
|
151
|
+
properties:
|
|
152
|
+
description:
|
|
153
|
+
description: Description of the enablement program
|
|
154
|
+
type: string | nil
|
|
155
|
+
doesAllowSelfEnrollment:
|
|
156
|
+
description: Does the program allow self enrollment
|
|
157
|
+
type: boolean
|
|
158
|
+
dueDate:
|
|
159
|
+
description: Due date for enablement program.
|
|
160
|
+
type: string | nil
|
|
161
|
+
id:
|
|
162
|
+
description: Id of the enablement program
|
|
163
|
+
type: string | nil
|
|
164
|
+
items:
|
|
165
|
+
description: List of items for the enablement program
|
|
166
|
+
type: array
|
|
167
|
+
items:
|
|
168
|
+
# type: EnablementProgramSummaryItemRepresentation
|
|
169
|
+
type: any # TODO Hand-rolled W-10668851
|
|
170
|
+
learningItemId:
|
|
171
|
+
description: Learning Item Id of the enablement program
|
|
172
|
+
type: string | nil
|
|
173
|
+
outcome:
|
|
174
|
+
description: Outcome of the enablement program
|
|
175
|
+
type: EnablementProgramSummaryMilestoneRepresentation | nil # TODO Hand-rolled W-7093257
|
|
176
|
+
status:
|
|
177
|
+
description: Status of the enablement program
|
|
178
|
+
type: string
|
|
179
|
+
enum:
|
|
180
|
+
- Archived
|
|
181
|
+
- Draft
|
|
182
|
+
- Published
|
|
183
|
+
systemModStamp:
|
|
184
|
+
description: System modification timestamp of the enablement program
|
|
185
|
+
type: string | nil
|
|
186
|
+
required: false
|
|
187
|
+
title:
|
|
188
|
+
description: Name of the enablement program
|
|
189
|
+
type: string | nil
|
|
190
|
+
EnablementProgramSummarySectionRepresentation:
|
|
191
|
+
description: Runtime representation of enablement program section.
|
|
192
|
+
discriminatorValue: Section
|
|
193
|
+
type: EnablementProgramSummaryItemRepresentation
|
|
194
|
+
properties:
|
|
195
|
+
tasks:
|
|
196
|
+
description: List of tasks for the enablement program section
|
|
197
|
+
type: array
|
|
198
|
+
items:
|
|
199
|
+
type: EnablementProgramSummaryTaskRepresentation
|
|
200
|
+
EnablementProgramSummaryTaskRepresentation:
|
|
201
|
+
description: Runtime representation of enablement program task.
|
|
202
|
+
discriminatorValue: Task
|
|
203
|
+
type: EnablementProgramSummaryItemRepresentation
|
|
204
|
+
properties:
|
|
205
|
+
completedDate:
|
|
206
|
+
description: The date the item was completed
|
|
207
|
+
type: string | nil
|
|
208
|
+
dueDate:
|
|
209
|
+
description: Due date for the current assignment
|
|
210
|
+
type: string | nil
|
|
211
|
+
isOverdue:
|
|
212
|
+
description: Indicates if the item is overdue or not
|
|
213
|
+
type: boolean | nil
|
|
214
|
+
learningItemId:
|
|
215
|
+
description: Learning Item Id of the enablement task
|
|
216
|
+
type: string | nil
|
|
217
|
+
programDay:
|
|
218
|
+
description: The day the program task is due
|
|
219
|
+
type: integer
|
|
220
|
+
taskCategory:
|
|
221
|
+
description: Category Type of the enablement task
|
|
222
|
+
type: string
|
|
223
|
+
enum:
|
|
224
|
+
- Exercise
|
|
225
|
+
- Milestone
|
|
226
|
+
taskSubCategory:
|
|
227
|
+
description: Sub Category Type of the enablement task
|
|
228
|
+
type: string
|
|
229
|
+
enum:
|
|
230
|
+
- AudioRecording
|
|
231
|
+
- Document
|
|
232
|
+
- Other
|
|
233
|
+
- OtherExercise
|
|
234
|
+
- ScheduledEvent
|
|
235
|
+
- TextLesson
|
|
236
|
+
- Trailhead
|
|
237
|
+
- Video
|
|
238
|
+
/connect:
|
|
239
|
+
/communities/{communityId}/enablement/program/summary:
|
|
240
|
+
/collection:
|
|
241
|
+
get:
|
|
242
|
+
description: Enablement Program Summary Collection
|
|
243
|
+
responses:
|
|
244
|
+
'200':
|
|
245
|
+
description: Success
|
|
246
|
+
body:
|
|
247
|
+
application/json:
|
|
248
|
+
type: EnablementProgramSummaryListRepresentation
|
|
249
|
+
queryParameters:
|
|
250
|
+
filter:
|
|
251
|
+
type: string
|
|
252
|
+
required: false
|
|
253
|
+
enum:
|
|
254
|
+
- All
|
|
255
|
+
- Assigned
|
|
256
|
+
- AvailableForSelfEnrollment
|
|
257
|
+
- Completed
|
|
258
|
+
- InProgress
|
|
259
|
+
- SelfEnrolled
|
|
260
|
+
limit:
|
|
261
|
+
type: integer
|
|
262
|
+
required: false
|
|
263
|
+
offset:
|
|
264
|
+
type: integer
|
|
265
|
+
required: false
|
|
266
|
+
collectionKey:
|
|
267
|
+
type: string
|
|
268
|
+
required: false
|
|
269
|
+
uriParameters:
|
|
270
|
+
communityId:
|
|
271
|
+
type: string
|
|
272
|
+
required: true
|
|
273
|
+
/enablement:
|
|
274
|
+
/program:
|
|
275
|
+
/summary:
|
|
276
|
+
/collection:
|
|
277
|
+
get:
|
|
278
|
+
description: Enablement Program Summary Collection
|
|
279
|
+
responses:
|
|
280
|
+
'200':
|
|
281
|
+
description: Success
|
|
282
|
+
body:
|
|
283
|
+
application/json:
|
|
284
|
+
type: EnablementProgramSummaryListRepresentation
|
|
285
|
+
queryParameters:
|
|
286
|
+
filter:
|
|
287
|
+
type: string
|
|
288
|
+
required: false
|
|
289
|
+
enum:
|
|
290
|
+
- All
|
|
291
|
+
- Assigned
|
|
292
|
+
- AvailableForSelfEnrollment
|
|
293
|
+
- Completed
|
|
294
|
+
- InProgress
|
|
295
|
+
- SelfEnrolled
|
|
296
|
+
limit:
|
|
297
|
+
type: integer
|
|
298
|
+
required: false
|
|
299
|
+
offset:
|
|
300
|
+
type: integer
|
|
301
|
+
required: false
|
|
302
|
+
collectionKey:
|
|
303
|
+
type: string
|
|
304
|
+
required: false
|
|
305
|
+
/{enablementProgramId}:
|
|
306
|
+
get:
|
|
307
|
+
description: Enablement Program Summary
|
|
308
|
+
responses:
|
|
309
|
+
'200':
|
|
310
|
+
description: Success
|
|
311
|
+
body:
|
|
312
|
+
application/json:
|
|
313
|
+
type: EnablementProgramSummaryRepresentation
|
|
314
|
+
queryParameters:
|
|
315
|
+
includeProgress:
|
|
316
|
+
type: boolean
|
|
317
|
+
required: false
|
|
318
|
+
default: true
|
|
319
|
+
uriParameters:
|
|
320
|
+
enablementProgramId:
|
|
321
|
+
type: string
|
|
322
|
+
required: true
|
|
323
|
+
/{enablementProgramId}:
|
|
324
|
+
/actions:
|
|
325
|
+
/enroll:
|
|
326
|
+
post:
|
|
327
|
+
displayName: postEnablementProgramSelfEnrollment
|
|
328
|
+
description: Self Enrolls user into a program
|
|
329
|
+
responses:
|
|
330
|
+
'200':
|
|
331
|
+
description: Success
|
|
332
|
+
body:
|
|
333
|
+
application/json:
|
|
334
|
+
type: EnablementProgramSelfEnrollmentRepresentation
|
|
335
|
+
uriParameters:
|
|
336
|
+
enablementProgramId:
|
|
337
|
+
type: string
|
|
338
|
+
required: true
|
|
339
|
+
/unenroll:
|
|
340
|
+
post:
|
|
341
|
+
displayName: postEnablementProgramSelfUnenrollment
|
|
342
|
+
description: Self Unenrolls user into a program
|
|
343
|
+
responses:
|
|
344
|
+
'200': # This never gets used. Unenroll endpoint always responds with 204 and an empty payload. But for post we need 200 response handler and can't have just 204 handler
|
|
345
|
+
description: Success
|
|
346
|
+
body:
|
|
347
|
+
application/json:
|
|
348
|
+
type: EnablementProgramSelfEnrollmentRepresentation
|
|
349
|
+
'204':
|
|
350
|
+
description: Success
|
|
351
|
+
body:
|
|
352
|
+
application/json:
|
|
353
|
+
type: EnablementProgramSelfUnenrollmentRepresentation
|
|
354
|
+
uriParameters:
|
|
355
|
+
enablementProgramId:
|
|
356
|
+
type: string
|
|
357
|
+
required: true
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'enablement'
|
|
8
|
+
(luvio.ttl): 15000
|
|
9
|
+
|
|
10
|
+
types:
|
|
11
|
+
EnablementProgramSummaryRepresentation:
|
|
12
|
+
(luvio.ttl): 15000 # 15 seconds
|
|
13
|
+
(luvio.key):
|
|
14
|
+
enablement_program_id: id
|
|
15
|
+
(luvio.updateAvailable):
|
|
16
|
+
name: notifyEnablementProgramSummaryUpdateAvailable
|
|
17
|
+
parameters:
|
|
18
|
+
enablement_program_id: id
|
|
19
|
+
EnablementProgramSummaryListRepresentation:
|
|
20
|
+
(luvio.ttl): 15000 # 15 seconds
|
|
21
|
+
EnablementProgramSelfEnrollmentRepresentation:
|
|
22
|
+
(luvio.ttl): 15000 # 15 seconds
|
|
23
|
+
(luvio.key):
|
|
24
|
+
learning_item_assignment_id: learningItemAssignmentId
|
|
25
|
+
EnablementProgramSelfUnenrollmentRepresentation:
|
|
26
|
+
(luvio.ttl): 15000 # 15 seconds
|
|
27
|
+
|
|
28
|
+
/connect:
|
|
29
|
+
/communities/{communityId}/enablement/program/summary/collection:
|
|
30
|
+
get:
|
|
31
|
+
(luvio.adapter):
|
|
32
|
+
name: getProgramSummaryCollectionForCommunity
|
|
33
|
+
/enablement:
|
|
34
|
+
/program:
|
|
35
|
+
/summary/{enablementProgramId}:
|
|
36
|
+
get:
|
|
37
|
+
(luvio.adapter):
|
|
38
|
+
name: getEnablementProgramSummary
|
|
39
|
+
(luvio.key):
|
|
40
|
+
enablement_program_id: urlParams.enablementProgramId
|
|
41
|
+
/summary/collection:
|
|
42
|
+
get:
|
|
43
|
+
(luvio.adapter):
|
|
44
|
+
name: getProgramSummaryCollection
|
|
45
|
+
/{enablementProgramId}/actions:
|
|
46
|
+
/enroll:
|
|
47
|
+
post:
|
|
48
|
+
(luvio.adapter):
|
|
49
|
+
name: selfEnrollInEnablementProgram
|
|
50
|
+
/unenroll:
|
|
51
|
+
post:
|
|
52
|
+
(luvio.adapter):
|
|
53
|
+
name: unenrollFromEnablementProgram
|