@salesforce/lds-adapters-platform-learning-content 1.100.2

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