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