@salesforce/lds-adapters-platform-learning-content 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.
Files changed (58) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-learning-content.js +5986 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +66 -0
  4. package/dist/es/es2018/types/src/generated/adapters/evaluateLearningItem.d.ts +15 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getFeaturedItemsRecommendedList.d.ts +27 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getFeaturedItemsRelatedList.d.ts +27 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getLearningConfig.d.ts +25 -0
  8. package/dist/es/es2018/types/src/generated/adapters/getLearningItemProgress.d.ts +26 -0
  9. package/dist/es/es2018/types/src/generated/adapters/getLearningItemsList.d.ts +26 -0
  10. package/dist/es/es2018/types/src/generated/adapters/getLearningModel.d.ts +26 -0
  11. package/dist/es/es2018/types/src/generated/adapters/getLearningPractice.d.ts +27 -0
  12. package/dist/es/es2018/types/src/generated/adapters/getLearningSearchDescribe.d.ts +25 -0
  13. package/dist/es/es2018/types/src/generated/adapters/getLearningSearchResults.d.ts +29 -0
  14. package/dist/es/es2018/types/src/generated/adapters/getModule.d.ts +27 -0
  15. package/dist/es/es2018/types/src/generated/adapters/getTextLesson.d.ts +27 -0
  16. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +12 -0
  17. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +28 -0
  18. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformFeaturedItemListRecommended.d.ts +16 -0
  19. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformFeaturedItemListRelated.d.ts +16 -0
  20. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningConfig.d.ts +12 -0
  21. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningItemList.d.ts +15 -0
  22. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningItemProgress.d.ts +15 -0
  23. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningModelByLearningItemId.d.ts +15 -0
  24. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningModuleByModuleId.d.ts +16 -0
  25. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningPracticeByLearningItemId.d.ts +16 -0
  26. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningSearchDescribe.d.ts +12 -0
  27. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningSearchTypeByContentType.d.ts +20 -0
  28. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningTextlessonByLearningItemId.d.ts +16 -0
  29. package/dist/es/es2018/types/src/generated/resources/postLearningContentPlatformLearningEvaluate.d.ts +13 -0
  30. package/dist/es/es2018/types/src/generated/types/EvaluateLearningItemInputRepresentation.d.ts +36 -0
  31. package/dist/es/es2018/types/src/generated/types/EvaluateLearningItemInputWrapperRepresentation.d.ts +29 -0
  32. package/dist/es/es2018/types/src/generated/types/FeaturedItemRecommendedListRepresentation.d.ts +39 -0
  33. package/dist/es/es2018/types/src/generated/types/FeaturedItemRelatedListRepresentation.d.ts +39 -0
  34. package/dist/es/es2018/types/src/generated/types/FeaturedItemRepresentation.d.ts +93 -0
  35. package/dist/es/es2018/types/src/generated/types/LearningAssignmentInputRepresentation.d.ts +59 -0
  36. package/dist/es/es2018/types/src/generated/types/LearningAssignmentRepresentation.d.ts +59 -0
  37. package/dist/es/es2018/types/src/generated/types/LearningConfigRepresentation.d.ts +35 -0
  38. package/dist/es/es2018/types/src/generated/types/LearningItemAssignmentRepresentation.d.ts +53 -0
  39. package/dist/es/es2018/types/src/generated/types/LearningItemListRepresentation.d.ts +39 -0
  40. package/dist/es/es2018/types/src/generated/types/LearningItemProgressListRepresentation.d.ts +39 -0
  41. package/dist/es/es2018/types/src/generated/types/LearningItemProgressRepresentation.d.ts +48 -0
  42. package/dist/es/es2018/types/src/generated/types/LearningItemRepresentation.d.ts +72 -0
  43. package/dist/es/es2018/types/src/generated/types/LearningModelInputRepresentation.d.ts +67 -0
  44. package/dist/es/es2018/types/src/generated/types/LearningModelOutputRepresentation.d.ts +77 -0
  45. package/dist/es/es2018/types/src/generated/types/LearningPracticeRepresentation.d.ts +51 -0
  46. package/dist/es/es2018/types/src/generated/types/LearningSearchDescribeContentRepresentation.d.ts +42 -0
  47. package/dist/es/es2018/types/src/generated/types/LearningSearchDescribeRepresentation.d.ts +39 -0
  48. package/dist/es/es2018/types/src/generated/types/LearningSearchResultsRepresentation.d.ts +55 -0
  49. package/dist/es/es2018/types/src/generated/types/LearningTextLessonRepresentation.d.ts +52 -0
  50. package/dist/es/es2018/types/src/generated/types/LearningTextLessonSectionRepresentation.d.ts +35 -0
  51. package/dist/es/es2018/types/src/generated/types/TrailheadModuleRepresentation.d.ts +82 -0
  52. package/dist/es/es2018/types/src/generated/types/TrailheadModuleUnitRepresentation.d.ts +47 -0
  53. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +39 -0
  54. package/package.json +63 -0
  55. package/sfdc/index.d.ts +1 -0
  56. package/sfdc/index.js +6265 -0
  57. package/src/raml/api.raml +792 -0
  58. package/src/raml/luvio.raml +112 -0
@@ -0,0 +1,792 @@
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/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
+ EvaluateLearningItemInputWrapperRepresentation: # TODO Hand-rolled W-8334626
29
+ description: Wrapper for evaluate learning item input representation
30
+ type: object
31
+ properties:
32
+ payload:
33
+ type: EvaluateLearningItemInputRepresentation
34
+ description: Evaluate learning item input representation
35
+ EvaluateLearningItemInputRepresentation:
36
+ description: Input representation for evaluating learning items
37
+ type: object
38
+ properties:
39
+ details:
40
+ description: Additional details needed for evaluting the learning item
41
+ type: object
42
+ required: false # TODO Hand-rolled W-8253396
43
+ properties:
44
+ //:
45
+ type: any # TODO Hand-rolled W-10049570
46
+ learningItemId:
47
+ description: LearningItemId that needs to be evaluated
48
+ type: string
49
+ FeaturedItemRecommendedListRepresentation:
50
+ description: This representation defines a list of recommended items in the side
51
+ panel home page
52
+ type: object
53
+ properties:
54
+ recommendedList:
55
+ description: returns recommended list
56
+ type: array
57
+ items:
58
+ type: FeaturedItemRepresentation
59
+ FeaturedItemRelatedListRepresentation:
60
+ description: This representation defines a list of related items in the side panel
61
+ home page
62
+ type: object
63
+ properties:
64
+ relatedList:
65
+ description: returns related list
66
+ type: array
67
+ items:
68
+ type: FeaturedItemRepresentation
69
+ FeaturedItemRepresentation:
70
+ description: This representation will be used to show featured items(recommended
71
+ & related) in the Side Panel Home Page
72
+ type: object
73
+ properties:
74
+ availablePointCount:
75
+ description: the total points possible for the LearningContent
76
+ type: integer | nil
77
+ completedDate:
78
+ description: the completedDate for the LearningItem for the end user at runtime
79
+ type: string | nil
80
+ completedItemCount:
81
+ description: Returns the number of LearningContentItems completed by the current
82
+ user
83
+ type: integer | nil
84
+ completedPercent:
85
+ description: The completion percentage of the learning unit as a whole integer,
86
+ type: integer | nil
87
+ description:
88
+ description: Description for the side panel item
89
+ type: string
90
+ dueDate:
91
+ description: the dueDate for the FeaturedItem for the end user at runtime
92
+ type: string | nil
93
+ earnedPointCount:
94
+ description: the number of points earned by the user for this LearningContent
95
+ type: integer | nil
96
+ iconName:
97
+ description: SLDS icon name
98
+ type: string
99
+ id:
100
+ description: Defines a uniques identifier across different content types
101
+ type: string
102
+ imageUrl:
103
+ description: Specifies the image url in a FeaturedItem
104
+ type: string | nil
105
+ isCompleted:
106
+ description: If the end-user completed the learningItem
107
+ type: boolean | nil
108
+ isCuratedContent:
109
+ description: if this content was curated by SFDC, instead of being assembled
110
+ by a learning admin.
111
+ type: boolean | nil
112
+ itemCount:
113
+ description: Returns the number of LearningContentItems associated with this
114
+ FeaturedItem
115
+ type: integer | nil
116
+ minutesRemainingCount:
117
+ description: the number of minutes remaining for the user to complete this
118
+ LearningContent
119
+ type: integer | nil
120
+ relatedId:
121
+ description: Id for the entity backing the learning unit, E.g. this would
122
+ return the Id for a Trailhead module if this was a Trailhead unit, or the
123
+ Id for a LearningLink if this was a link to outside content
124
+ type: string | nil
125
+ title:
126
+ description: The localized title for the side panel item
127
+ type: string
128
+ totalMinutesCount:
129
+ description: the total time in minutes for the LearningContent
130
+ type: integer | nil
131
+ type:
132
+ description: Specifies different Content Types that will be in the side panel
133
+ home page.
134
+ type: string
135
+ url:
136
+ description: Specifies a URL in a FeaturedItem
137
+ type: string | nil
138
+ LearningAssignmentInputRepresentation:
139
+ description: This representation defines a method of inputting a LearningAssignment
140
+ representation
141
+ type: object
142
+ properties:
143
+ assignedCount:
144
+ description: Input AssignedCount for LearningAssignment
145
+ type: integer
146
+ assigneeId:
147
+ description: Input AssigneeId for LearningAssignment
148
+ type: string
149
+ assigneeName:
150
+ description: Input AssigneeName for LearningAssignment
151
+ type: string
152
+ assigneeType:
153
+ description: Input AssigneeType for LearningAssignment
154
+ type: string
155
+ assignmentDate:
156
+ description: Input AssignmentDate for LearningAssignment
157
+ type: string
158
+ completedCount:
159
+ description: Input CompletedCount for LearningAssignment
160
+ type: integer
161
+ completedPercent:
162
+ description: Input CompletedPercent for LearningAssignment
163
+ type: integer
164
+ daysUntilDueDate:
165
+ description: Input DaysUntilDueDate for LearningAssignment
166
+ type: integer
167
+ dueDate:
168
+ description: Input due date for LearningAssignment
169
+ type: string
170
+ id:
171
+ description: Input id for LearningAssignment
172
+ type: string
173
+ learningItemId:
174
+ description: Input LearningItemId for LearningAssignment
175
+ type: string
176
+ LearningAssignmentRepresentation:
177
+ description: This representation will be used to show featured items(recommended
178
+ & related) in the Side Panel Home Page
179
+ type: object
180
+ properties:
181
+ assignedCount:
182
+ description: Id of the LearningAssignment
183
+ type: integer | nil
184
+ assigneeId:
185
+ description: Assignee Id associated with the LearningAssignment
186
+ type: string | nil
187
+ assigneeName:
188
+ description: Assignee name associated with the LearningAssignment
189
+ type: string | nil
190
+ assigneeType:
191
+ description: AssigneeType of the LearningAssignment
192
+ type: string | nil
193
+ assignmentDate:
194
+ description: Assignment date of the LearningAssignment
195
+ type: string | nil
196
+ completedCount:
197
+ description: Completed count of the LearningAssignment
198
+ type: integer | nil
199
+ completedPercent:
200
+ description: Completed percent of the LearningAssignment
201
+ type: integer | nil
202
+ daysUntilDueDate:
203
+ description: Days until the due date for the LearningAssignment
204
+ type: integer | nil
205
+ dueDate:
206
+ description: Due date of the LearningAssignment
207
+ type: string | nil
208
+ id:
209
+ description: Id of the LearningAssignment
210
+ type: string
211
+ learningItemId:
212
+ description: LearningItemId of the LearningAssignment
213
+ type: string
214
+ LearningConfigRepresentation:
215
+ description: This representation will be used to return config for Learning Paths
216
+ type: object
217
+ properties:
218
+ hasElevatedLearningAccess:
219
+ description: defines if user manage learning items
220
+ type: boolean
221
+ maxLearningAssignmentsAllowed:
222
+ description: defines max learning assignments allowed
223
+ type: integer
224
+ maxLearningItemsAllowed:
225
+ description: defines max learning items allowed
226
+ type: integer
227
+ LearningItemAssignmentRepresentation:
228
+ description: This representation is for LearningItemAssignment types returned
229
+ for LearningModelOutputRepresentation
230
+ type: object
231
+ properties:
232
+ assigneeId:
233
+ description: Assignee Id associated with the LearningAssignment
234
+ type: string | nil
235
+ assigneeName:
236
+ description: Assignee name associated with the LearningAssignment
237
+ type: string | nil
238
+ assigneeType:
239
+ description: AssigneeType of the LearningAssignment
240
+ type: string | nil
241
+ assignmentDate:
242
+ description: Assignment date of the LearningAssignment
243
+ type: string | nil
244
+ completedDate:
245
+ description: Assignment date of the LearningAssignment
246
+ type: string | nil
247
+ dueDate:
248
+ description: Due date of the LearningAssignment
249
+ type: string | nil
250
+ id:
251
+ description: Id of the LearningItemAssignment
252
+ type: string
253
+ learningItemId:
254
+ description: LearningItemId of the LearningItemAssignment
255
+ type: string
256
+ startDate:
257
+ description: Assignment date of the LearningAssignment
258
+ type: string | nil
259
+ LearningItemListRepresentation:
260
+ description: This representation defines a list of LearningItemRepresentation
261
+ entities
262
+ type: object
263
+ properties:
264
+ list:
265
+ description: returns the list of LearningItemRepresentation objects
266
+ type: array
267
+ items:
268
+ type: LearningItemRepresentation
269
+ LearningItemProgressListRepresentation:
270
+ description: This representation defines a list of LearningItemProgressRepresentation
271
+ entities
272
+ type: object
273
+ properties:
274
+ list:
275
+ description: returns the list of LearningItemProgressRepresentation objects
276
+ type: array
277
+ items:
278
+ type: LearningItemProgressRepresentation
279
+ LearningItemProgressRepresentation:
280
+ description: Learning Item Progress Representation
281
+ type: object
282
+ properties:
283
+ completedDate:
284
+ description: Completed date of the learning item progress
285
+ type: string | nil
286
+ completedPercent:
287
+ description: Completed percent of the learning item progress
288
+ #format: double # Hand-rolled format not allowed with union type
289
+ type: number | nil
290
+ isCompleted:
291
+ description: Completed state of the learning item progress
292
+ type: boolean
293
+ learningItemId:
294
+ description: Id of the learning item associated with this learning item progress
295
+ type: string
296
+ LearningItemRepresentation:
297
+ description: This representation maps to the LearningListItem class and is used
298
+ to represent LearningItem information
299
+ type: object
300
+ properties:
301
+ completionRate:
302
+ description: Specifies the given completion rate for the LearningItem
303
+ format: double
304
+ type: number
305
+ contentType:
306
+ description: Specifies the given content type for the LearningItem
307
+ type: string | nil
308
+ createdBy:
309
+ description: Specifies the given createdBy field for the LearningItem
310
+ type: string | nil
311
+ createdDate:
312
+ description: Specifies the given creation date for the LearningItem
313
+ type: string | nil
314
+ description:
315
+ description: Specifies the given description for the LearningItem
316
+ type: string | nil
317
+ duration:
318
+ description: Optional duration field for the LearningItem
319
+ type: integer | nil
320
+ hasAssignments:
321
+ description: Specifies whether the LearningItem has assignments
322
+ type: boolean | nil
323
+ id:
324
+ description: Specifies the given Id for the LearningItem
325
+ type: string | nil
326
+ imageUrl:
327
+ description: Specifies the given image url for the LearningItem
328
+ type: string | nil
329
+ learningContentId:
330
+ description: Specifies the given Learning Content Id for the LearningItem
331
+ type: string | nil
332
+ title:
333
+ description: Specifies the given title for the LearningItem
334
+ type: string | nil
335
+ url:
336
+ description: Optional url field for the LearningItem
337
+ type: string | nil
338
+ LearningModelInputRepresentation:
339
+ description: This representation defines a method of inputting a LearningModel
340
+ representation
341
+ type: object
342
+ properties:
343
+ assignmentType:
344
+ description: Input assignment type for LearningModel
345
+ type: string
346
+ assignments:
347
+ description: Input list of assignments for LearningModel
348
+ type: array
349
+ items:
350
+ type: LearningAssignmentInputRepresentation
351
+ contentType:
352
+ description: Input LearningContent type for LearningModel
353
+ type: string
354
+ customDueDate:
355
+ description: Input custom due date for LearningModel
356
+ type: string
357
+ description:
358
+ description: Input description for LearningModel
359
+ type: string
360
+ dueDateType:
361
+ description: Input due date type for LearningModel
362
+ type: string
363
+ id:
364
+ description: Input id for LearningModel
365
+ type: string
366
+ learningContentId:
367
+ description: Input LearningContent id for LearningModel
368
+ type: string
369
+ pageRefs:
370
+ description: Input pageRefs for LearningModel
371
+ type: array
372
+ items:
373
+ type: object
374
+ properties:
375
+ //:
376
+ type: object
377
+ startDate:
378
+ description: Input start date for LearningModel
379
+ type: string
380
+ title:
381
+ description: Input title for LearningModel
382
+ type: string
383
+ url:
384
+ description: Input url for LearningModel
385
+ type: string
386
+ LearningModelOutputRepresentation:
387
+ description: This representation will be used to return LearningModels
388
+ type: object
389
+ properties:
390
+ assignmentType:
391
+ description: Specifies the Assignment Type for the LearningModel
392
+ type: string | nil
393
+ assignments:
394
+ description: Specifies a list of LearningAssignments for the LearningModel.
395
+ type: array
396
+ items:
397
+ type: LearningAssignmentRepresentation
398
+ availablePointCount:
399
+ description: Specifies the available pount count for the LearningModel.
400
+ type: integer | nil
401
+ contentType:
402
+ description: Specifies the content type of the LearningModel
403
+ type: string | nil
404
+ description:
405
+ description: Specifies the description for the LearningModel.
406
+ type: string
407
+ durationCount:
408
+ description: Specifies the duration count of the LearningModel.
409
+ type: integer | nil
410
+ id:
411
+ description: Specifies the given Id for the LearningModel.
412
+ type: string | nil
413
+ imageUrl:
414
+ description: Specifies the image URL for the LearningModel.
415
+ type: string | nil
416
+ learningContentId:
417
+ description: Specifies the LearningContent id for the LearningModel.
418
+ type: string | nil
419
+ pageRefs:
420
+ description: Specifies a list of pageRefs for the LearningModel.
421
+ type: array
422
+ items:
423
+ type: object
424
+ properties:
425
+ //:
426
+ type: any # TODO Hand-rolled W-10668851
427
+ title:
428
+ description: Specifies the title for the LearningModel.
429
+ type: string
430
+ url:
431
+ description: Specifies the given URL for the LearningModel
432
+ type: string | nil
433
+ LearningPracticeRepresentation:
434
+ description: This representation maps to the LearningPractice class and is used to represent learning practice (Coaching)
435
+ type: object
436
+ properties:
437
+ description:
438
+ description: Description of the learning practice
439
+ type: string
440
+ learningItemId:
441
+ description: Learning Item ID of the learning practice
442
+ type: string
443
+ minimumInviteeQuantity:
444
+ description: Specifies the minimum invitee quantity for the Learning Practice
445
+ type: integer
446
+ surveyId:
447
+ description: Specifies the Survey Id for the Learning Practice
448
+ type: string
449
+ title:
450
+ description: Title of the learning practice
451
+ type: string
452
+ LearningSearchDescribeContentRepresentation:
453
+ description: This representation will be used to represent a specific searchable
454
+ content types
455
+ type: object
456
+ properties:
457
+ title:
458
+ description: Represents the localized label of the searchable content type
459
+ type: string
460
+ type:
461
+ description: Represents the enum value of the searchable content type
462
+ type: string
463
+ LearningSearchDescribeRepresentation:
464
+ description: This representation will be used to represent a list of all searchable
465
+ content types
466
+ type: object
467
+ properties:
468
+ contentTypes:
469
+ description: Represents the list of all searchable content types that the
470
+ org and users have access to
471
+ type: array
472
+ items:
473
+ type: LearningSearchDescribeContentRepresentation
474
+ LearningSearchResultsRepresentation:
475
+ description: This representation will be used to represent the search results
476
+ type: object
477
+ properties:
478
+ results:
479
+ description: Represents the list of search results
480
+ type: array
481
+ items:
482
+ type: FeaturedItemRepresentation
483
+ totalResults:
484
+ description: Represents the number of total search results
485
+ type: integer
486
+ type:
487
+ description: Represents the searchable content type for which this search
488
+ result is returned
489
+ type: string
490
+ LearningTextLessonRepresentation:
491
+ description: This representation maps to the LearningTextView class and is used
492
+ to represent Text Lessons
493
+ type: object
494
+ properties:
495
+ description:
496
+ description: Description of what the text lesson is for
497
+ type: string
498
+ learningItemId:
499
+ description: Learning Item ID of the text lesson
500
+ type: string
501
+ sections:
502
+ description: Ordered list of all the LearningTextLessonSection sections that
503
+ are part of the text lesson
504
+ type: array
505
+ items:
506
+ type: LearningTextLessonSectionRepresentation
507
+ title:
508
+ description: Title of the text lesson
509
+ type: string
510
+ totalTime:
511
+ description: Estimated time in minutes to read the entire text lesson
512
+ # TODO: Hand-rolled from "format: int64, type: integer" due to W-8274943
513
+ format: double
514
+ type: number
515
+ LearningTextLessonSectionRepresentation:
516
+ description: This representation maps to the LearningTextSectionView class and
517
+ is used to represent Text Lesson Sections
518
+ type: object
519
+ properties:
520
+ content:
521
+ description: Rich text content for the text lesson section
522
+ type: string
523
+ keyConcept:
524
+ description: Description of what this section of the text lesson is trying to teach
525
+ type: string | nil
526
+ sectionTime:
527
+ description: Estimated time to read the section in minutes
528
+ # TODO: Hand-rolled from "format: int64, type: integer" due to W-8274943
529
+ format: double
530
+ type: number
531
+ TrailheadModuleRepresentation:
532
+ description: This representation will be used to represent a single user's view
533
+ of a Trailhead module.
534
+ type: object
535
+ properties:
536
+ availablePointCount:
537
+ description: Represents the total points possible for the module
538
+ type: integer
539
+ completedDate:
540
+ description: Represents the completedDate for the module for the end user
541
+ at runtime
542
+ type: string | nil
543
+ completedItemCount:
544
+ description: Represents the number of units completed by the current user
545
+ type: integer | nil
546
+ completedPercent:
547
+ description: Represents the completion percentage of the module as a whole
548
+ integer,
549
+ type: integer | nil
550
+ description:
551
+ description: Represents the description of a module
552
+ type: string
553
+ durationCount:
554
+ description: Represents the number of minutes remaining for the user to complete
555
+ the module
556
+ type: integer
557
+ earnedPointCount:
558
+ description: Represents the number of points earned by the user for this module
559
+ type: integer | nil
560
+ imageUrl:
561
+ description: Represents the image url of a module
562
+ type: string
563
+ isCompleted:
564
+ description: Represents if the end-user completed the module
565
+ type: boolean
566
+ isCuratedContent:
567
+ description: Represents if this content was sfdc curated or not
568
+ type: boolean
569
+ itemCount:
570
+ description: Represents the number of units associated with the module
571
+ type: integer | nil
572
+ moduleUnits:
573
+ description: Represents the learning content items associated with this learning
574
+ content
575
+ type: array
576
+ items:
577
+ type: TrailheadModuleUnitRepresentation
578
+ relatedId:
579
+ description: Represents the Id for the entity backing the learning unit, E.g.
580
+ this would return the Id for a Trailhead module if this was a Trailhead
581
+ unit, or the Id for a LearningLink if this was a link to outside content
582
+ type: string
583
+ title:
584
+ description: Represents the localized title of a module
585
+ type: string
586
+ type:
587
+ description: Represents the module type
588
+ type: string
589
+ TrailheadModuleUnitRepresentation:
590
+ description: This representation will be used to represent a single user's view
591
+ of a Trailhead module's unit.
592
+ type: object
593
+ properties:
594
+ completedDate:
595
+ description: Represents the complete date of the item, Date if the user has
596
+ completed the item else null
597
+ type: string | nil
598
+ contentUrl:
599
+ description: Represents the URL of a page that will render the content of
600
+ this item
601
+ type: string
602
+ durationCount:
603
+ description: Represents the duration to complete the item
604
+ type: integer
605
+ earnedPointCount:
606
+ description: Represents the number of points earned by the user for this item
607
+ type: integer | nil
608
+ id:
609
+ description: Represents the id of a learning content item
610
+ type: string
611
+ title:
612
+ description: Represents the title of a learning content item
613
+ type: string
614
+ trustedFrameOrigin:
615
+ description: Represents the trusted frame origin used in iframe messaging.
616
+ type: string
617
+ /learning-content-platform:
618
+ /featured-item:
619
+ /list/recommended:
620
+ get:
621
+ description: Returns a list of recommended items to be displayed on the side
622
+ panel home page
623
+ responses:
624
+ '200':
625
+ description: Success
626
+ body:
627
+ application/json:
628
+ type: FeaturedItemRecommendedListRepresentation
629
+ queryParameters:
630
+ appId:
631
+ type: string
632
+ required: true
633
+ context:
634
+ type: string
635
+ required: true
636
+ /list/related:
637
+ get:
638
+ description: Returns a list of related items to be displayed on the side panel
639
+ home page
640
+ responses:
641
+ '200':
642
+ description: Success
643
+ body:
644
+ application/json:
645
+ type: FeaturedItemRelatedListRepresentation
646
+ queryParameters:
647
+ appId:
648
+ type: string
649
+ required: true
650
+ pageRef:
651
+ type: string
652
+ required: true
653
+ /learning:
654
+ /search:
655
+ /describe:
656
+ get:
657
+ description: Returns a list of searchable content types
658
+ responses:
659
+ '200':
660
+ description: Success
661
+ body:
662
+ application/json:
663
+ type: LearningSearchDescribeRepresentation
664
+ /type/{contentType}:
665
+ get:
666
+ description: Returns a list of search results for a given content type
667
+ responses:
668
+ '200':
669
+ description: Success
670
+ body:
671
+ application/json:
672
+ type: LearningSearchResultsRepresentation
673
+ queryParameters:
674
+ limit:
675
+ type: integer
676
+ required: true
677
+ q:
678
+ type: string
679
+ required: true
680
+ uriParameters:
681
+ contentType:
682
+ type: string
683
+ required: true
684
+ /config:
685
+ get:
686
+ description: Returns a config object for Learning Home
687
+ responses:
688
+ '200':
689
+ description: Success
690
+ body:
691
+ application/json:
692
+ type: LearningConfigRepresentation
693
+ /item/list:
694
+ get:
695
+ description: Returns a list of LearningItemRepresentation objects for the
696
+ given list of learningItemId
697
+ responses:
698
+ '200':
699
+ description: Success
700
+ body:
701
+ application/json:
702
+ type: LearningItemListRepresentation
703
+ queryParameters:
704
+ learningItemIds:
705
+ type: array
706
+ required: false
707
+ items:
708
+ type: string
709
+ (oas-collectionFormat): csv
710
+ /item/progress:
711
+ get:
712
+ description: Returns a list of LearningItemRepresentation objects for the
713
+ current user
714
+ responses:
715
+ '200':
716
+ description: Success
717
+ body:
718
+ application/json:
719
+ type: LearningItemProgressListRepresentation
720
+ queryParameters:
721
+ learningItemIds:
722
+ type: array
723
+ required: false
724
+ items:
725
+ type: string
726
+ (oas-collectionFormat): csv
727
+ /model/{learningItemId}:
728
+ get:
729
+ description: Returns a LearningModel object for a given LearningItem id
730
+ responses:
731
+ '200':
732
+ description: Success
733
+ body:
734
+ application/json:
735
+ type: LearningModelOutputRepresentation
736
+ uriParameters:
737
+ learningItemId:
738
+ type: string
739
+ required: true
740
+ /module/{moduleId}:
741
+ get:
742
+ description: Returns a trailhead module for module view
743
+ responses:
744
+ '200':
745
+ description: Success
746
+ body:
747
+ application/json:
748
+ type: TrailheadModuleRepresentation
749
+ uriParameters:
750
+ moduleId:
751
+ type: string
752
+ required: true
753
+ /practice/{learningItemId}:
754
+ get:
755
+ description: Returns a Learning Practice to the user based on the LearningItemId passed
756
+ responses:
757
+ '200':
758
+ description: Success
759
+ body:
760
+ application/json:
761
+ type: LearningPracticeRepresentation
762
+ uriParameters:
763
+ learningItemId:
764
+ type: string
765
+ required: true
766
+ /evaluate:
767
+ post:
768
+ displayName: postEvaluateLearningItem
769
+ description: Evaluate learning item
770
+ responses:
771
+ '200':
772
+ description: Success
773
+ body:
774
+ application/json:
775
+ type: LearningItemProgressRepresentation
776
+ body:
777
+ application/json:
778
+ type: EvaluateLearningItemInputWrapperRepresentation # TODO Hand-rolled W-8334626. Original type: EvaluateLearningItemInputRepresentation
779
+ (oas-body-name): payload
780
+ /textlesson/{learningItemId}:
781
+ get:
782
+ description: Returns a Text Lesson to the user based on the passed in ID
783
+ responses:
784
+ '200':
785
+ description: Success
786
+ body:
787
+ application/json:
788
+ type: LearningTextLessonRepresentation
789
+ uriParameters:
790
+ learningItemId:
791
+ type: string
792
+ required: true