@salesforce/lds-adapters-platform-learning-content 1.273.1 → 1.275.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/dist/es/es2018/platform-learning-content.js +520 -30
- package/dist/es/es2018/types/src/generated/adapters/getCoachingAIFeedback.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getFeaturedItemsRelatedList.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/submitForCoachingAIFeedback.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformCoachingAiFeedbackByLearningItemSubmissionId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformFeaturedItemListRelated.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postLearningContentPlatformCoachingAiFeedback.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/types/AbstractCoachingAIFeedbackSectionRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/CoachingAICallSubmissionInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/CoachingAICallSubmissionOutputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/CoachingAICriteriaBasedFeedbackRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/CoachingAIFeedbackRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/CoachingAIFeedbackSectionStringCollectionRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/CoachingAIFeedbackSectionTextRepresentation.d.ts +30 -0
- package/package.json +6 -5
- package/sfdc/index.js +1113 -609
- package/src/raml/api.raml +115 -0
- package/src/raml/luvio.raml +13 -0
package/src/raml/api.raml
CHANGED
|
@@ -25,6 +25,86 @@ annotationTypes:
|
|
|
25
25
|
type: string
|
|
26
26
|
allowedTargets: TypeDeclaration
|
|
27
27
|
types:
|
|
28
|
+
AbstractCoachingAIFeedbackSectionRepresentation:
|
|
29
|
+
description: Abstract coaching AI feedback section representation
|
|
30
|
+
discriminator: feedbackSectionTitle
|
|
31
|
+
type: object
|
|
32
|
+
properties:
|
|
33
|
+
feedbackSectionTitle:
|
|
34
|
+
description: Title for the feedback section
|
|
35
|
+
type: string
|
|
36
|
+
CoachingAICallSubmissionInputRepresentation:
|
|
37
|
+
description: Input representation for submitting the call
|
|
38
|
+
type: object
|
|
39
|
+
properties:
|
|
40
|
+
callId:
|
|
41
|
+
description: Call Id that user has selected for getting the coaching AI feedback.
|
|
42
|
+
type: string
|
|
43
|
+
learningItemId:
|
|
44
|
+
description: LearningItemId that is associated to the coaching AI
|
|
45
|
+
type: string
|
|
46
|
+
CoachingAICallSubmissionOutputRepresentation:
|
|
47
|
+
description: This representation defined the coaching AI feedback for a submitted
|
|
48
|
+
call with the generation ID
|
|
49
|
+
type: object
|
|
50
|
+
properties:
|
|
51
|
+
coachingAIFeedback:
|
|
52
|
+
description: Coaching AI feedback for submitted call
|
|
53
|
+
type: CoachingAIFeedbackRepresentation
|
|
54
|
+
generationId:
|
|
55
|
+
description: Generation ID for the coaching AI feedback
|
|
56
|
+
type: string
|
|
57
|
+
CoachingAICriteriaBasedFeedbackRepresentation:
|
|
58
|
+
description: This representation defines the fields for criteria based feedback.
|
|
59
|
+
type: object
|
|
60
|
+
properties:
|
|
61
|
+
criteriaName:
|
|
62
|
+
description: Name of the criteria
|
|
63
|
+
type: string
|
|
64
|
+
criteriaScore:
|
|
65
|
+
description: Score for the criteria
|
|
66
|
+
format: double
|
|
67
|
+
type: number
|
|
68
|
+
CoachingAIFeedbackRepresentation:
|
|
69
|
+
description: This representation defines the coaching AI feedback
|
|
70
|
+
type: object
|
|
71
|
+
properties:
|
|
72
|
+
additionalFeedback:
|
|
73
|
+
description: List of additional feedback sections
|
|
74
|
+
type: array
|
|
75
|
+
items:
|
|
76
|
+
type: any #TODO Hand-rolled W-8334626, Originally AbstractCoachingAIFeedbackSectionRepresentation
|
|
77
|
+
conversationSummaryId:
|
|
78
|
+
description: Conversation Summary ID for the coaching AI feedback
|
|
79
|
+
type: string
|
|
80
|
+
criteriaBasedScores:
|
|
81
|
+
description: List of criteria based scores
|
|
82
|
+
type: array
|
|
83
|
+
items:
|
|
84
|
+
type: CoachingAICriteriaBasedFeedbackRepresentation
|
|
85
|
+
score:
|
|
86
|
+
description: The overall score
|
|
87
|
+
format: double
|
|
88
|
+
type: number
|
|
89
|
+
CoachingAIFeedbackSectionStringCollectionRepresentation:
|
|
90
|
+
description: This representation defines the fields for additional feedback section
|
|
91
|
+
items with the list of strings.
|
|
92
|
+
discriminatorValue: StringCollectionSection
|
|
93
|
+
type: AbstractCoachingAIFeedbackSectionRepresentation
|
|
94
|
+
properties:
|
|
95
|
+
feedbackSectionItems:
|
|
96
|
+
description: List of strings for the additional feedback section items
|
|
97
|
+
type: array
|
|
98
|
+
items:
|
|
99
|
+
type: string
|
|
100
|
+
CoachingAIFeedbackSectionTextRepresentation:
|
|
101
|
+
description: This representation defines the fields for additional feedback.
|
|
102
|
+
discriminatorValue: TextSection
|
|
103
|
+
type: AbstractCoachingAIFeedbackSectionRepresentation
|
|
104
|
+
properties:
|
|
105
|
+
feedbackSectionItem:
|
|
106
|
+
description: Text for the additional feedback section
|
|
107
|
+
type: string
|
|
28
108
|
EvaluateLearningItemInputWrapperRepresentation: # TODO Hand-rolled W-8334626
|
|
29
109
|
description: Wrapper for evaluate learning item input representation
|
|
30
110
|
type: object
|
|
@@ -577,6 +657,37 @@ types:
|
|
|
577
657
|
description: Represents the trusted frame origin used in iframe messaging.
|
|
578
658
|
type: string
|
|
579
659
|
/learning-content-platform:
|
|
660
|
+
/coaching:
|
|
661
|
+
/ai-feedback:
|
|
662
|
+
post:
|
|
663
|
+
displayName: postCoachingAICallSubmission
|
|
664
|
+
description: Return the coaching AI feedback for teh submitted call
|
|
665
|
+
responses:
|
|
666
|
+
'200':
|
|
667
|
+
description: Success
|
|
668
|
+
body:
|
|
669
|
+
application/json:
|
|
670
|
+
type: CoachingAICallSubmissionOutputRepresentation
|
|
671
|
+
body:
|
|
672
|
+
application/json:
|
|
673
|
+
type: CoachingAICallSubmissionInputRepresentation
|
|
674
|
+
(oas-body-name): coachingAICallSubmissionInputRepresentation
|
|
675
|
+
/{learningItemSubmissionId}/ai-feedback:
|
|
676
|
+
get:
|
|
677
|
+
displayName: getCoachingAIFeedback
|
|
678
|
+
description:
|
|
679
|
+
Returns a Coaching AI Feedback to the user based on the LearningItemSubmissionId
|
|
680
|
+
passed
|
|
681
|
+
responses:
|
|
682
|
+
'200':
|
|
683
|
+
description: Success
|
|
684
|
+
body:
|
|
685
|
+
application/json:
|
|
686
|
+
type: CoachingAIFeedbackRepresentation
|
|
687
|
+
uriParameters:
|
|
688
|
+
learningItemSubmissionId:
|
|
689
|
+
type: string
|
|
690
|
+
required: true
|
|
580
691
|
/featured-item:
|
|
581
692
|
/list/recommended:
|
|
582
693
|
get:
|
|
@@ -612,6 +723,10 @@ types:
|
|
|
612
723
|
pageRef:
|
|
613
724
|
type: string
|
|
614
725
|
required: true
|
|
726
|
+
returnMax:
|
|
727
|
+
type: boolean
|
|
728
|
+
required: false
|
|
729
|
+
default: false
|
|
615
730
|
/learning:
|
|
616
731
|
/config:
|
|
617
732
|
get:
|
package/src/raml/luvio.raml
CHANGED
|
@@ -51,8 +51,21 @@ types:
|
|
|
51
51
|
(luvio.ttl): 21600000 # 15 seconds
|
|
52
52
|
(luvio.key):
|
|
53
53
|
relatedId: relatedId
|
|
54
|
+
CoachingAICallSubmissionOutputRepresentation:
|
|
55
|
+
(luvio.ttl): 15000 # 15 seconds
|
|
56
|
+
(luvio.key):
|
|
57
|
+
generation_id: generationId
|
|
54
58
|
|
|
55
59
|
/learning-content-platform:
|
|
60
|
+
/coaching:
|
|
61
|
+
/ai-feedback:
|
|
62
|
+
post:
|
|
63
|
+
(luvio.adapter):
|
|
64
|
+
name: submitForCoachingAIFeedback
|
|
65
|
+
/{learningItemSubmissionId}/ai-feedback:
|
|
66
|
+
get:
|
|
67
|
+
(luvio.adapter):
|
|
68
|
+
name: getCoachingAIFeedback
|
|
56
69
|
/featured-item:
|
|
57
70
|
/list/related:
|
|
58
71
|
get:
|