@salesforce/lds-adapters-platform-enablement 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.
@@ -0,0 +1,207 @@
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
+ EnablementProgramSummaryItemRepresentation:
29
+ description: Common Enablement Program Summary item representation
30
+ discriminator: type
31
+ type: object
32
+ properties:
33
+ description:
34
+ description: Description of the enablement program summary item
35
+ type: string
36
+ id:
37
+ description: Id of the enablement program summary item
38
+ type: string
39
+ sequenceNumber:
40
+ description: Sequence Number of the enablement task
41
+ type: integer
42
+ title:
43
+ description: Title of the enablement program summary item
44
+ type: string
45
+ type:
46
+ description: Type of enablement program summary item
47
+ type: string
48
+ enum:
49
+ - Section
50
+ - Task
51
+ EnablementProgramSummaryListRepresentation:
52
+ description: List of Enablement Program Summary Representations
53
+ type: object
54
+ properties:
55
+ hasMore:
56
+ description: Indicates if there are more programs available than the results returned
57
+ type: boolean
58
+ programSummaryList:
59
+ description: List of enablement program summaries
60
+ type: array
61
+ items:
62
+ type: EnablementProgramSummaryRepresentation
63
+ EnablementProgramSummaryRepresentation:
64
+ description: Enablement Program Summary Representation
65
+ type: object
66
+ properties:
67
+ description:
68
+ description: Description of the enablement program
69
+ type: string | nil
70
+ dueDate:
71
+ description: Due date for enablement program.
72
+ type: string | nil
73
+ id:
74
+ description: Id of the enablement program
75
+ type: string | nil
76
+ items:
77
+ description: List of items for the enablement program
78
+ type: array
79
+ items:
80
+ # type: EnablementProgramSummaryItemRepresentation
81
+ type: any # TODO Hand-rolled W-10668851
82
+ learningItemId:
83
+ description: Learning Item Id of the enablement program
84
+ type: string | nil
85
+ outcome:
86
+ description: Outcome of the enablement program
87
+ type: EnablementProgramSummaryTaskRepresentation | nil # TODO Hand-rolled W-7093257
88
+ status:
89
+ description: Status of the enablement program
90
+ type: string
91
+ enum:
92
+ - Archived
93
+ - Draft
94
+ - Published
95
+ systemModStamp:
96
+ description: System modification timestamp of the enablement program
97
+ type: string | nil
98
+ required: false
99
+ title:
100
+ description: Name of the enablement program
101
+ type: string | nil
102
+ EnablementProgramSummarySectionRepresentation:
103
+ description: Runtime representation of enablement program section.
104
+ discriminatorValue: Section
105
+ type: EnablementProgramSummaryItemRepresentation
106
+ properties:
107
+ tasks:
108
+ description: List of tasks for the enablement program section
109
+ type: array
110
+ items:
111
+ type: EnablementProgramSummaryTaskRepresentation
112
+ EnablementProgramSummaryTaskRepresentation:
113
+ description: Runtime representation of enablement program task.
114
+ discriminatorValue: Task
115
+ type: EnablementProgramSummaryItemRepresentation
116
+ properties:
117
+ completedDate:
118
+ description: The date the item was completed
119
+ type: string | nil
120
+ completedPercent:
121
+ description: Percent complete for the current user
122
+ #format: double # Hand-rolled format not allowed with union type
123
+ type: number | nil
124
+ contributingRecordCount:
125
+ description: The total contributing record count
126
+ type: integer | nil
127
+ dueDate:
128
+ description: Due date for the current assignment
129
+ type: string | nil
130
+ enablementProgramSectionId:
131
+ description: Program Section Id of the enablement task
132
+ type: string | nil
133
+ isCompleted:
134
+ description: Indicates if the item is complete or not
135
+ type: boolean | nil
136
+ isOverdue:
137
+ description: Indicates if the item is overdue or not
138
+ type: boolean | nil
139
+ learningItemId:
140
+ description: Learning Item Id of the enablement task
141
+ type: string | nil
142
+ milestoneResult:
143
+ description: The result value of if the task is of measure type
144
+ #format: double # Hand-rolled format not allowed with union type
145
+ type: number | nil
146
+ milestoneTarget:
147
+ description: Milestone Target of the enablement task
148
+ #format: double # Hand-rolled format not allowed with union type
149
+ type: number | nil
150
+ minimumSampleSize:
151
+ description: The minimum sample record size
152
+ type: integer | nil
153
+ programDay:
154
+ description: The day the program task is due
155
+ type: integer
156
+ taskCategory:
157
+ description: Category Type of the enablement task
158
+ type: string
159
+ enum:
160
+ - Exercise
161
+ - Milestone
162
+ taskSubCategory:
163
+ description: Sub Category Type of the enablement task
164
+ type: string
165
+ enum:
166
+ - AudioRecording
167
+ - Document
168
+ - Other
169
+ - OtherExercise
170
+ - ScheduledEvent
171
+ - TextLesson
172
+ - Trailhead
173
+ - Video
174
+ /connect/enablement:
175
+ /program:
176
+ /summary:
177
+ /assigned:
178
+ get:
179
+ description: Assigned Enablement Program Summary
180
+ responses:
181
+ '200':
182
+ description: Success
183
+ body:
184
+ application/json:
185
+ type: EnablementProgramSummaryListRepresentation
186
+ queryParameters:
187
+ limit:
188
+ type: integer
189
+ required: false
190
+ /{enablementProgramId}:
191
+ get:
192
+ description: Enablement Program Summary
193
+ responses:
194
+ '200':
195
+ description: Success
196
+ body:
197
+ application/json:
198
+ type: EnablementProgramSummaryRepresentation
199
+ queryParameters:
200
+ includeProgress:
201
+ type: boolean
202
+ required: false
203
+ default: true
204
+ uriParameters:
205
+ enablementProgramId:
206
+ type: string
207
+ required: true
@@ -0,0 +1,27 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'enablement'
8
+ (luvio.ttl): 15000
9
+
10
+ types:
11
+ EnablementProgramSummaryRepresentation:
12
+ (luvio.ttl): 15000 # 15 seconds
13
+ (luvio.key):
14
+ enablement_program_id: id
15
+
16
+ /connect/enablement:
17
+ /program:
18
+ /summary/{enablementProgramId}:
19
+ get:
20
+ (luvio.adapter):
21
+ name: getEnablementProgramSummary
22
+ (luvio.key):
23
+ enablement_program_id: urlParams.enablementProgramId
24
+ /summary/assigned:
25
+ get:
26
+ (luvio.adapter):
27
+ name: getAssignedEnablementProgramSummary