@salesforce/lds-adapters-platform-learning-content 1.131.4 → 1.132.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-learning-content",
3
- "version": "1.131.4",
3
+ "version": "1.132.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Learning content platform",
6
6
  "main": "dist/es/es2018/platform-learning-content.js",
package/sfdc/index.js CHANGED
@@ -6262,4 +6262,4 @@ withDefaultLuvio((luvio) => {
6262
6262
  });
6263
6263
 
6264
6264
  export { evaluateLearningItem, getFeaturedItemsRecommendedList, getFeaturedItemsRecommendedList_imperative, getFeaturedItemsRelatedList, getFeaturedItemsRelatedList_imperative, getLearningConfig, getLearningConfig_imperative, getLearningItemProgress, getLearningItemProgress_imperative, getLearningItemsList, getLearningItemsList_imperative, getLearningModel, getLearningModel_imperative, getLearningPractice, getLearningPracticeNotifyChange, getLearningPractice_imperative, getLearningSearchDescribe, getLearningSearchDescribe_imperative, getLearningSearchResults, getLearningSearchResultsNotifyChange, getLearningSearchResults_imperative, getModule, getModuleNotifyChange, getModule_imperative, getTextLesson, getTextLessonNotifyChange, getTextLesson_imperative };
6265
- // version: 1.131.4-cc304bf50
6265
+ // version: 1.132.0-82978d015
package/src/raml/api.raml CHANGED
@@ -25,6 +25,29 @@ annotationTypes:
25
25
  type: string
26
26
  allowedTargets: TypeDeclaration
27
27
  types:
28
+ FeedbackResultRepresentation:
29
+ description: This representation returns coaching feedback result if any feedback
30
+ exists
31
+ type: object
32
+ properties:
33
+ isFeedbackRequestSubmitted:
34
+ description: Returns if a feedback request submitted
35
+ type: boolean
36
+ isFeedbackResultReturned:
37
+ description: Returns if there is feedback result exists
38
+ type: boolean
39
+ learningItemId:
40
+ description: Learning Item ID of the Coaching Feedback Result
41
+ type: string
42
+ surveyQuestionResponseRepresetationList:
43
+ description: List of the SurveyQuestionResponse Representation
44
+ type: array
45
+ items:
46
+ type: SurveyQuestionResponseRepresetation
47
+ totalAvgScore:
48
+ description: The total average score of all rating questions
49
+ format: double
50
+ type: number
28
51
  EvaluateLearningItemInputWrapperRepresentation: # TODO Hand-rolled W-8334626
29
52
  description: Wrapper for evaluate learning item input representation
30
53
  type: object
@@ -586,6 +609,37 @@ types:
586
609
  type:
587
610
  description: Represents the module type
588
611
  type: string
612
+ SurveyQuestionResponseRepresetation:
613
+ description: This representation maps to the SurveyQuestionResponse class
614
+ type: object
615
+ properties:
616
+ avgScore:
617
+ description: Average score of the question
618
+ format: double
619
+ type: number
620
+ isRatingResponse:
621
+ description: If question response is a rating value or text value
622
+ type: boolean
623
+ questionDescription:
624
+ description: Description of the survey question
625
+ type: string
626
+ questionId:
627
+ description: Id of the survey question response
628
+ type: string
629
+ questionName:
630
+ description: Name of the survey question name
631
+ type: string
632
+ ratingValues:
633
+ description: Rating value list of the rating type question response
634
+ type: array
635
+ items:
636
+ type: integer
637
+ textValues:
638
+ description: User Id, Text value map of the text type question response
639
+ type: object
640
+ properties:
641
+ //:
642
+ type: string
589
643
  TrailheadModuleUnitRepresentation:
590
644
  description: This representation will be used to represent a single user's view
591
645
  of a Trailhead module's unit.
@@ -651,6 +705,21 @@ types:
651
705
  type: string
652
706
  required: true
653
707
  /learning:
708
+ /feedbackresult/{learningItemId}:
709
+ get:
710
+ displayName: getFeedbackResult
711
+ description: Returns a Feedback Result to the user based on the LearningItemId
712
+ passed
713
+ responses:
714
+ '200':
715
+ description: Success
716
+ body:
717
+ application/json:
718
+ type: FeedbackResultRepresentation
719
+ uriParameters:
720
+ learningItemId:
721
+ type: string
722
+ required: true
654
723
  /search:
655
724
  /describe:
656
725
  get:
@@ -39,6 +39,10 @@ types:
39
39
  (luvio.ttl): 60000 # 60 seconds
40
40
  (luvio.key):
41
41
  learning_item_id: learningItemId
42
+ FeedbackResultRepresentation:
43
+ (luvio.ttl): 15000 # 15 seconds
44
+ (luvio.key):
45
+ learning_item_id: learningItemId
42
46
  LearningTextLessonRepresentation:
43
47
  (luvio.ttl): 60000 # 60 seconds
44
48
  (luvio.key):
@@ -100,6 +104,12 @@ types:
100
104
  name: getLearningPractice
101
105
  (luvio.key):
102
106
  learning_item_id: urlParams.learningItemId
107
+ /feedbackresult/{learningItemId}:
108
+ get:
109
+ (luvio.adapter):
110
+ name: getFeedbackResult
111
+ (luvio.key):
112
+ learning_item_id: urlParams.learningItemId
103
113
  /evaluate:
104
114
  post:
105
115
  (luvio.adapter):