@salesforce/lds-adapters-industries-education 1.109.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/LICENSE.txt +82 -0
- package/dist/es/es2018/industries-education.js +1450 -0
- package/dist/types/src/generated/adapters/adapter-utils.d.ts +66 -0
- package/dist/types/src/generated/adapters/getAvailableTimeSlots.d.ts +27 -0
- package/dist/types/src/generated/adapters/getAvailableTopics.d.ts +25 -0
- package/dist/types/src/generated/adapters/getSuccessTeam.d.ts +26 -0
- package/dist/types/src/generated/artifacts/main.d.ts +3 -0
- package/dist/types/src/generated/artifacts/sfdc.d.ts +7 -0
- package/dist/types/src/generated/resources/getConnectEducationAppointmentBookingAvailableTopics.d.ts +12 -0
- package/dist/types/src/generated/resources/getConnectEducationSuccessTeamByAccountId.d.ts +15 -0
- package/dist/types/src/generated/resources/postConnectEducationAppointmentBookingAvailableTimeSlots.d.ts +16 -0
- package/dist/types/src/generated/types/AvailableStaff.d.ts +60 -0
- package/dist/types/src/generated/types/AvailableTeam.d.ts +48 -0
- package/dist/types/src/generated/types/AvailableTimeSlotsInputRepresentation.d.ts +44 -0
- package/dist/types/src/generated/types/AvailableTimeSlotsInputRepresentationData.d.ts +30 -0
- package/dist/types/src/generated/types/AvailableTimeSlotsOuputRepresentation.d.ts +30 -0
- package/dist/types/src/generated/types/AvailableTopic.d.ts +42 -0
- package/dist/types/src/generated/types/AvailableTopicsOutputRepresentation.d.ts +30 -0
- package/dist/types/src/generated/types/GetSuccessTeamResult.d.ts +40 -0
- package/dist/types/src/generated/types/ServiceAppointment.d.ts +38 -0
- package/dist/types/src/generated/types/ServiceLocation.d.ts +32 -0
- package/dist/types/src/generated/types/SuccessTeamOutputRepresentation.d.ts +30 -0
- package/dist/types/src/generated/types/TimeSlot.d.ts +38 -0
- package/dist/types/src/generated/types/WorkType.d.ts +35 -0
- package/dist/types/src/generated/types/type-utils.d.ts +39 -0
- package/dist/umd/es2018/industries-education.js +1460 -0
- package/dist/umd/es5/industries-education.js +1468 -0
- package/package.json +72 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1498 -0
- package/src/raml/api.raml +340 -0
- package/src/raml/luvio.raml +24 -0
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '58.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
|
+
AvailableStaff:
|
|
29
|
+
description: Representation of the available staff result.
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
caseId:
|
|
33
|
+
description: The ID of the case that’s available to the staff member.
|
|
34
|
+
type: string
|
|
35
|
+
required: false
|
|
36
|
+
caseRecordTypeName:
|
|
37
|
+
description: The record type name of the case that's available to the staff
|
|
38
|
+
member.
|
|
39
|
+
type: string
|
|
40
|
+
required: false
|
|
41
|
+
caseTeamRole:
|
|
42
|
+
description: The staff member's case team role.
|
|
43
|
+
type: string
|
|
44
|
+
required: false
|
|
45
|
+
email:
|
|
46
|
+
description: The staff member's email.
|
|
47
|
+
type: string
|
|
48
|
+
required: false
|
|
49
|
+
lastServiceAppointment:
|
|
50
|
+
description: The last appointment completed by the staff member for the associated
|
|
51
|
+
account.
|
|
52
|
+
type: ServiceAppointment
|
|
53
|
+
required: false
|
|
54
|
+
locations:
|
|
55
|
+
description: The service locations in the staff member’s service territories
|
|
56
|
+
that are available for scheduling.
|
|
57
|
+
type: object
|
|
58
|
+
required: false
|
|
59
|
+
properties:
|
|
60
|
+
//:
|
|
61
|
+
type: any
|
|
62
|
+
name:
|
|
63
|
+
description: The name of the staff member.
|
|
64
|
+
type: string
|
|
65
|
+
required: false
|
|
66
|
+
phone:
|
|
67
|
+
description: The staff member's phone number.
|
|
68
|
+
type: string
|
|
69
|
+
required: false
|
|
70
|
+
profilePhotoUrl:
|
|
71
|
+
description: The URL for the staff member's photo.
|
|
72
|
+
type: string
|
|
73
|
+
required: false
|
|
74
|
+
serviceResourceId:
|
|
75
|
+
description: The service resource ID for the staff.
|
|
76
|
+
type: string
|
|
77
|
+
required: false
|
|
78
|
+
AvailableTeam:
|
|
79
|
+
description: Representation of the available team result.
|
|
80
|
+
type: object
|
|
81
|
+
properties:
|
|
82
|
+
canSelfSchedule:
|
|
83
|
+
description: Indicates that a team is available for scheduling by the associated
|
|
84
|
+
account through Experience Cloud.
|
|
85
|
+
type: boolean
|
|
86
|
+
required: false
|
|
87
|
+
caseId:
|
|
88
|
+
description: The ID of the case that's related to the support of the associated
|
|
89
|
+
account.
|
|
90
|
+
type: string
|
|
91
|
+
required: false
|
|
92
|
+
caseRecordTypeName:
|
|
93
|
+
description: The record type name of the open case that's associated with
|
|
94
|
+
the account.
|
|
95
|
+
type: string
|
|
96
|
+
required: false
|
|
97
|
+
members:
|
|
98
|
+
description: List of staff members on the available team.
|
|
99
|
+
type: object
|
|
100
|
+
required: false
|
|
101
|
+
properties:
|
|
102
|
+
//:
|
|
103
|
+
type: any
|
|
104
|
+
name:
|
|
105
|
+
description: The name of the team that's available to support the associated
|
|
106
|
+
account.
|
|
107
|
+
type: string
|
|
108
|
+
required: false
|
|
109
|
+
teamId:
|
|
110
|
+
description: The ID of the team that's available to support the associated
|
|
111
|
+
account.
|
|
112
|
+
type: string
|
|
113
|
+
required: false
|
|
114
|
+
AvailableTimeSlotsInputRepresentation:
|
|
115
|
+
description: Contains the information to search for available appointment time
|
|
116
|
+
slots.
|
|
117
|
+
type: object
|
|
118
|
+
properties:
|
|
119
|
+
endTime:
|
|
120
|
+
description: Latest time that an appointment can end.
|
|
121
|
+
type: string
|
|
122
|
+
required: false
|
|
123
|
+
engagementChannelTypeIds:
|
|
124
|
+
description: The IDs of the engagement channel type records. Time slot availability
|
|
125
|
+
is based on the selected engagement channel types.
|
|
126
|
+
type: array
|
|
127
|
+
items:
|
|
128
|
+
type: string
|
|
129
|
+
serviceResourceIds:
|
|
130
|
+
description: List of service resource IDs to filter the API response.
|
|
131
|
+
type: array
|
|
132
|
+
items:
|
|
133
|
+
type: string
|
|
134
|
+
serviceTerritoryIds:
|
|
135
|
+
description: List of IDs for the service territories where the work will be
|
|
136
|
+
performed.
|
|
137
|
+
type: array
|
|
138
|
+
items:
|
|
139
|
+
type: string
|
|
140
|
+
startTime:
|
|
141
|
+
description: Earliest time that an appointment can begin. If empty, the default
|
|
142
|
+
is the time of the request.
|
|
143
|
+
type: string
|
|
144
|
+
required: false
|
|
145
|
+
workTypeGroupId:
|
|
146
|
+
description: ID of the work type group containing the work types that are
|
|
147
|
+
being performed.
|
|
148
|
+
type: string
|
|
149
|
+
AvailableTimeSlotsInputRepresentationData: #TODO: hand-rolled
|
|
150
|
+
description: A wrapper around AvailableTimeSlotsInputRepresentation
|
|
151
|
+
type: object
|
|
152
|
+
properties:
|
|
153
|
+
availableTimeSlotsInput:
|
|
154
|
+
description: The Oas Body name for get available time slots
|
|
155
|
+
type: AvailableTimeSlotsInputRepresentation
|
|
156
|
+
AvailableTimeSlotsOuputRepresentation:
|
|
157
|
+
description: Output of the post available time slots request.
|
|
158
|
+
type: object
|
|
159
|
+
properties:
|
|
160
|
+
timeSlots:
|
|
161
|
+
description: List of time slots that are available for scheduling.
|
|
162
|
+
type: array
|
|
163
|
+
items:
|
|
164
|
+
type: TimeSlot
|
|
165
|
+
AvailableTopic:
|
|
166
|
+
description: Representation of the available topic.
|
|
167
|
+
type: object
|
|
168
|
+
properties:
|
|
169
|
+
parentWorkTypeGroupName:
|
|
170
|
+
description: The name of the parent work type group of the topic that represents
|
|
171
|
+
the available topic.
|
|
172
|
+
type: string
|
|
173
|
+
required: false
|
|
174
|
+
serviceTerritoryWorkTypes:
|
|
175
|
+
description: Details about the topic that's available for scheduling for the
|
|
176
|
+
related service territories.
|
|
177
|
+
type: object
|
|
178
|
+
required: false
|
|
179
|
+
properties:
|
|
180
|
+
//:
|
|
181
|
+
type: any
|
|
182
|
+
workTypeGroupId:
|
|
183
|
+
description: The ID of the work type group that represents the available topic.
|
|
184
|
+
type: string
|
|
185
|
+
required: false
|
|
186
|
+
workTypeGroupName:
|
|
187
|
+
description: The name of the work type group that represents the available
|
|
188
|
+
topic.
|
|
189
|
+
type: string
|
|
190
|
+
required: false
|
|
191
|
+
AvailableTopicsOutputRepresentation:
|
|
192
|
+
description: Output representation of the get available topics request.
|
|
193
|
+
type: object
|
|
194
|
+
properties:
|
|
195
|
+
topics:
|
|
196
|
+
description: List of topics that are available for scheduling.
|
|
197
|
+
type: array
|
|
198
|
+
items:
|
|
199
|
+
type: AvailableTopic
|
|
200
|
+
GetSuccessTeamResult:
|
|
201
|
+
description: Representation of the get success team request.
|
|
202
|
+
type: object
|
|
203
|
+
properties:
|
|
204
|
+
assignedStaff:
|
|
205
|
+
description: List of staff members who are assigned to the case and are available
|
|
206
|
+
to support the associated account.
|
|
207
|
+
type: object
|
|
208
|
+
properties:
|
|
209
|
+
//:
|
|
210
|
+
type: any
|
|
211
|
+
assignedTeams:
|
|
212
|
+
description: List of teams that are assigned to the case for the associated
|
|
213
|
+
account.
|
|
214
|
+
type: array
|
|
215
|
+
items:
|
|
216
|
+
type: AvailableTeam
|
|
217
|
+
unassignedTeams:
|
|
218
|
+
description: List of teams that aren't assigned to the case and are available
|
|
219
|
+
to support the associated account.
|
|
220
|
+
type: array
|
|
221
|
+
items:
|
|
222
|
+
type: AvailableTeam
|
|
223
|
+
ServiceAppointment:
|
|
224
|
+
description: Representation of the service appointment.
|
|
225
|
+
type: object
|
|
226
|
+
properties:
|
|
227
|
+
appointmentDate:
|
|
228
|
+
description: The date of the last service appointment.
|
|
229
|
+
type: string
|
|
230
|
+
required: false
|
|
231
|
+
serviceAppointmentId:
|
|
232
|
+
description: The ID of the last service appointment.
|
|
233
|
+
type: string
|
|
234
|
+
required: false
|
|
235
|
+
workTypeId:
|
|
236
|
+
description: The work type ID of the last service appointment.
|
|
237
|
+
type: string
|
|
238
|
+
required: false
|
|
239
|
+
workTypeName:
|
|
240
|
+
description: The work type name of the last service appointment.
|
|
241
|
+
type: string
|
|
242
|
+
required: false
|
|
243
|
+
ServiceLocation:
|
|
244
|
+
description: Representation of the service location result.
|
|
245
|
+
type: object
|
|
246
|
+
properties:
|
|
247
|
+
name:
|
|
248
|
+
description: The name of a service location in a service territory.
|
|
249
|
+
type: string
|
|
250
|
+
required: false
|
|
251
|
+
parentLocations:
|
|
252
|
+
description: List of parent locations associated with a location.
|
|
253
|
+
type: array
|
|
254
|
+
required: false
|
|
255
|
+
items:
|
|
256
|
+
type: string
|
|
257
|
+
SuccessTeamOutputRepresentation:
|
|
258
|
+
description: Output of the get success team request.
|
|
259
|
+
type: object
|
|
260
|
+
properties:
|
|
261
|
+
result:
|
|
262
|
+
description: Staff members and teams who are available to support the associated
|
|
263
|
+
account.
|
|
264
|
+
type: GetSuccessTeamResult
|
|
265
|
+
TimeSlot:
|
|
266
|
+
description: Representation of the time slot.
|
|
267
|
+
type: object
|
|
268
|
+
properties:
|
|
269
|
+
endTime:
|
|
270
|
+
description: The date and time that the time slot ends.
|
|
271
|
+
type: string
|
|
272
|
+
required: false
|
|
273
|
+
serviceResourceId:
|
|
274
|
+
description: ID of the service resource that's associated with the time slot.
|
|
275
|
+
type: string
|
|
276
|
+
required: false
|
|
277
|
+
serviceTerritoryId:
|
|
278
|
+
description: ID of the service territory that's associated with the time slot.
|
|
279
|
+
type: string
|
|
280
|
+
required: false
|
|
281
|
+
startTime:
|
|
282
|
+
description: The date and time that the time slot starts.
|
|
283
|
+
type: string
|
|
284
|
+
required: false
|
|
285
|
+
WorkType:
|
|
286
|
+
description: Representation of the work type.
|
|
287
|
+
type: object
|
|
288
|
+
properties:
|
|
289
|
+
workDurationType:
|
|
290
|
+
description: The units of time for the completion of the work.
|
|
291
|
+
type: string
|
|
292
|
+
required: false
|
|
293
|
+
workEstimatedDuration:
|
|
294
|
+
description: The length of time allocated for the completion of the work.
|
|
295
|
+
format: double
|
|
296
|
+
type: number
|
|
297
|
+
required: false
|
|
298
|
+
workTypeId:
|
|
299
|
+
description: The ID of the type of work to be performed.
|
|
300
|
+
type: string
|
|
301
|
+
required: false
|
|
302
|
+
/connect/education:
|
|
303
|
+
/appointment-booking:
|
|
304
|
+
/available-time-slots:
|
|
305
|
+
post:
|
|
306
|
+
description: Returns a list of available appointment time slots for a resource
|
|
307
|
+
based on work type group and service territories.
|
|
308
|
+
responses:
|
|
309
|
+
'200':
|
|
310
|
+
description: Success
|
|
311
|
+
body:
|
|
312
|
+
application/json:
|
|
313
|
+
type: AvailableTimeSlotsOuputRepresentation
|
|
314
|
+
body:
|
|
315
|
+
application/json:
|
|
316
|
+
type: AvailableTimeSlotsInputRepresentationData
|
|
317
|
+
(oas-body-name): availableTimeSlotsInput
|
|
318
|
+
/available-topics:
|
|
319
|
+
get:
|
|
320
|
+
description: Returns a list of available topics for scheduling.
|
|
321
|
+
responses:
|
|
322
|
+
'200':
|
|
323
|
+
description: Success
|
|
324
|
+
body:
|
|
325
|
+
application/json:
|
|
326
|
+
type: AvailableTopicsOutputRepresentation
|
|
327
|
+
/{accountId}/success-team:
|
|
328
|
+
get:
|
|
329
|
+
description: Returns a list of teams and staff that are available to support
|
|
330
|
+
an account.
|
|
331
|
+
responses:
|
|
332
|
+
'200':
|
|
333
|
+
description: Success
|
|
334
|
+
body:
|
|
335
|
+
application/json:
|
|
336
|
+
type: SuccessTeamOutputRepresentation
|
|
337
|
+
uriParameters:
|
|
338
|
+
accountId:
|
|
339
|
+
type: string
|
|
340
|
+
required: true
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'education'
|
|
8
|
+
(luvio.ttl): 360000
|
|
9
|
+
|
|
10
|
+
/connect/education:
|
|
11
|
+
/appointment-booking:
|
|
12
|
+
/available-time-slots:
|
|
13
|
+
post:
|
|
14
|
+
(luvio.adapter):
|
|
15
|
+
name: getAvailableTimeSlots
|
|
16
|
+
(luvio.method): get
|
|
17
|
+
/available-topics:
|
|
18
|
+
get:
|
|
19
|
+
(luvio.adapter):
|
|
20
|
+
name: getAvailableTopics
|
|
21
|
+
/{accountId}/success-team:
|
|
22
|
+
get:
|
|
23
|
+
(luvio.adapter):
|
|
24
|
+
name: getSuccessTeam
|