@salesforce/lds-adapters-industries-scheduler 1.100.2

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 (36) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-scheduler.js +1142 -0
  3. package/dist/types/src/generated/adapters/adapter-utils.d.ts +66 -0
  4. package/dist/types/src/generated/adapters/createServiceAppointment.d.ts +15 -0
  5. package/dist/types/src/generated/adapters/getEngagementChannelTypes.d.ts +27 -0
  6. package/dist/types/src/generated/adapters/updateServiceAppointment.d.ts +15 -0
  7. package/dist/types/src/generated/artifacts/main.d.ts +3 -0
  8. package/dist/types/src/generated/artifacts/sfdc.d.ts +5 -0
  9. package/dist/types/src/generated/resources/getConnectSchedulingEngagementChannelTypes.d.ts +16 -0
  10. package/dist/types/src/generated/resources/patchConnectSchedulingServiceAppointments.d.ts +13 -0
  11. package/dist/types/src/generated/resources/postConnectSchedulingServiceAppointments.d.ts +13 -0
  12. package/dist/types/src/generated/types/AbstractServiceAppointmentInputRepresentation.d.ts +41 -0
  13. package/dist/types/src/generated/types/AssignedResourceInputRepresentation.d.ts +38 -0
  14. package/dist/types/src/generated/types/AssignedResourceListInputRepresentation.d.ts +29 -0
  15. package/dist/types/src/generated/types/CreateServiceAppointmentData.d.ts +30 -0
  16. package/dist/types/src/generated/types/CreateServiceAppointmentInputRepresentation.d.ts +41 -0
  17. package/dist/types/src/generated/types/CreateServiceAppointmentResult.d.ts +35 -0
  18. package/dist/types/src/generated/types/ExtendedFieldInputRepresentation.d.ts +32 -0
  19. package/dist/types/src/generated/types/ExtendedFieldListInputRepresentation.d.ts +29 -0
  20. package/dist/types/src/generated/types/GetEngagementChannelTypeListResult.d.ts +30 -0
  21. package/dist/types/src/generated/types/GetEngagementChannelTypeOutputRepresentation.d.ts +30 -0
  22. package/dist/types/src/generated/types/GetEngagementChannelTypeResult.d.ts +44 -0
  23. package/dist/types/src/generated/types/LeadInputRepresentation.d.ts +44 -0
  24. package/dist/types/src/generated/types/ServiceAppointmentInputRepresentation.d.ts +80 -0
  25. package/dist/types/src/generated/types/ServiceAppointmentOutputRepresentation.d.ts +47 -0
  26. package/dist/types/src/generated/types/ServiceAppointmentResult.d.ts +44 -0
  27. package/dist/types/src/generated/types/UpdateServiceAppointmentData.d.ts +30 -0
  28. package/dist/types/src/generated/types/UpdateServiceAppointmentInputRepresentation.d.ts +41 -0
  29. package/dist/types/src/generated/types/type-utils.d.ts +39 -0
  30. package/dist/umd/es2018/industries-scheduler.js +1152 -0
  31. package/dist/umd/es5/industries-scheduler.js +1159 -0
  32. package/package.json +71 -0
  33. package/sfdc/index.d.ts +1 -0
  34. package/sfdc/index.js +1183 -0
  35. package/src/raml/api.raml +401 -0
  36. package/src/raml/luvio.raml +30 -0
@@ -0,0 +1,401 @@
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
+ AbstractServiceAppointmentInputRepresentation:
29
+ description: ' Service Appointment input representation'
30
+ type: object
31
+ properties:
32
+ assignedResources:
33
+ description: Assigned Resources
34
+ type: array
35
+ required: false #TODO: hand-rolled W-8253396
36
+ items:
37
+ type: object
38
+ lead:
39
+ description: Lead
40
+ type: object
41
+ required: false #TODO: hand-rolled W-8253396
42
+ schedulingPolicyId:
43
+ description: Scheduling Policy Id
44
+ type: string
45
+ required: false #TODO: hand-rolled W-8253396
46
+ serviceAppointment:
47
+ description: Service Appointment
48
+ type: object
49
+ required: false #TODO: hand-rolled W-8253396
50
+ serviceAppointmentId:
51
+ description: Service appointment Id
52
+ type: string
53
+ required: false #TODO: hand-rolled W-8253396
54
+ AssignedResourceInputRepresentation:
55
+ description: Input representation for Assigned Resource
56
+ type: object
57
+ properties:
58
+ extendedFields:
59
+ description: Extended fields
60
+ type: array
61
+ items:
62
+ type: object
63
+ isPrimaryResource:
64
+ description: Is primary resource
65
+ type: boolean
66
+ isRequiredResource:
67
+ description: Is required resource
68
+ type: boolean
69
+ serviceResourceId:
70
+ description: Service resource ID
71
+ type: string
72
+ AssignedResourceListInputRepresentation:
73
+ description: Input representation for a list of Assigned Resources
74
+ type: object
75
+ properties:
76
+ assignedResources:
77
+ description: List of Assigned Resources
78
+ type: array
79
+ required: false #TODO: hand-rolled W-8253396
80
+ items:
81
+ type: object
82
+ CreateServiceAppointmentInputRepresentation:
83
+ description: Create Service Appointment input representation
84
+ type: object #TODO hand-rolled, extends abstract class and has no properties
85
+ properties:
86
+ assignedResources:
87
+ description: Assigned Resources
88
+ type: array
89
+ required: false #TODO: hand-rolled W-8253396
90
+ items:
91
+ type: object
92
+ lead:
93
+ description: Lead
94
+ type: object
95
+ required: false #TODO: hand-rolled W-8253396
96
+ schedulingPolicyId:
97
+ description: Scheduling Policy Id
98
+ type: string
99
+ required: false #TODO: hand-rolled W-8253396
100
+ serviceAppointment:
101
+ description: Service Appointment
102
+ type: object
103
+ required: false #TODO: hand-rolled W-8253396
104
+ serviceAppointmentId:
105
+ description: Service appointment Id
106
+ type: string
107
+ required: false #TODO: hand-rolled W-8253396
108
+ CreateServiceAppointmentData: #TODO: hand-rolled
109
+ description: A wrapper around CreateServiceAppointmentInputRepresentation
110
+ type: object
111
+ properties:
112
+ createServiceAppointmentInput:
113
+ description: The Oas Body name for create appointment data
114
+ type: CreateServiceAppointmentInputRepresentation
115
+ CreateServiceAppointmentResult:
116
+ description: Create residential loan application results representation
117
+ type: object
118
+ properties:
119
+ assignedResourceIds:
120
+ description: Assigned resource IDs
121
+ type: array
122
+ items:
123
+ type: string
124
+ parentRecordId:
125
+ description: Parent record ID
126
+ type: string
127
+ serviceAppointmentId:
128
+ description: Service appointment ID
129
+ type: string
130
+ ExtendedFieldInputRepresentation:
131
+ description: Input representation for extended fields
132
+ type: object
133
+ properties:
134
+ name:
135
+ description: Extended Field Name
136
+ type: string
137
+ value:
138
+ description: Extended Field Value
139
+ type: string
140
+ ExtendedFieldListInputRepresentation:
141
+ description: Wraps a list of extended fields.
142
+ type: object
143
+ properties:
144
+ extendedFields:
145
+ description: List of Extended Fields
146
+ type: array
147
+ items:
148
+ type: object
149
+ GetEngagementChannelTypeListResult:
150
+ description: Get engagement channel type list result
151
+ type: object
152
+ properties:
153
+ engagementChannelTypes:
154
+ description: List of Engagement Channel Types
155
+ type: array
156
+ items:
157
+ type: GetEngagementChannelTypeResult
158
+ GetEngagementChannelTypeOutputRepresentation:
159
+ description: Output representation of Get Engagement Channel Type (List) Representation
160
+ type: object
161
+ properties:
162
+ result:
163
+ description: Get Engagement Channel Type result
164
+ type: GetEngagementChannelTypeListResult
165
+ GetEngagementChannelTypeResult:
166
+ description: Get engagement channel type result
167
+ type: object
168
+ properties:
169
+ contactPoint:
170
+ description: Engagement Channel Type Contact Point
171
+ type: string
172
+ required: false #TODO: hand-rolled W-8253396
173
+ contactPointType:
174
+ description: Engagement Channel Type Contact Point Type
175
+ type: string
176
+ required: false #TODO: hand-rolled W-8253396
177
+ id:
178
+ description: Engagement Channel Type ID
179
+ type: string
180
+ required: false #TODO: hand-rolled W-8253396
181
+ name:
182
+ description: Engagement Channel Type name
183
+ type: string
184
+ required: false #TODO: hand-rolled W-8253396
185
+ workTypeGroupIds:
186
+ description: Engagement Channel Type Work Type Group Ids
187
+ type: array
188
+ required: false #TODO: hand-rolled W-8253396
189
+ items:
190
+ type: string
191
+ workTypeIds:
192
+ description: Engagement Channel Type Work Type Ids
193
+ type: array
194
+ required: false #TODO: hand-rolled W-8253396
195
+ items:
196
+ type: string
197
+ LeadInputRepresentation:
198
+ description: Input representation for Lead
199
+ type: object
200
+ properties:
201
+ company:
202
+ description: Company
203
+ type: string
204
+ email:
205
+ description: Email
206
+ type: string
207
+ extendedFields:
208
+ description: Extended fields
209
+ type: array
210
+ items:
211
+ type: object
212
+ firstName:
213
+ description: First name
214
+ type: string
215
+ lastName:
216
+ description: Last name
217
+ type: string
218
+ phone:
219
+ description: Phone
220
+ type: string
221
+ ServiceAppointmentInputRepresentation:
222
+ description: Input representation for Service Appointment
223
+ type: object
224
+ properties:
225
+ additionalInformation:
226
+ description: Additional information
227
+ type: string
228
+ required: false #TODO: hand-rolled W-8253396
229
+ appointmentType:
230
+ description: Appointment type
231
+ type: string
232
+ required: false #TODO: hand-rolled W-8253396
233
+ city:
234
+ description: City
235
+ type: string
236
+ required: false #TODO: hand-rolled W-8253396
237
+ comments:
238
+ description: Comments
239
+ type: string
240
+ required: false #TODO: hand-rolled W-8253396
241
+ contactId:
242
+ description: Contact ID
243
+ type: string
244
+ required: false #TODO: hand-rolled W-8253396
245
+ country:
246
+ description: Country
247
+ type: string
248
+ required: false #TODO: hand-rolled W-8253396
249
+ description:
250
+ description: Description
251
+ type: string
252
+ required: false #TODO: hand-rolled W-8253396
253
+ engagementChannelTypeId:
254
+ description: Engagement channel type id
255
+ type: string
256
+ required: false #TODO: hand-rolled W-8253396
257
+ extendedFields:
258
+ description: Extended fields
259
+ type: array
260
+ required: false #TODO: hand-rolled W-8253396
261
+ items:
262
+ type: object
263
+ parentRecordId:
264
+ description: Parent record ID
265
+ type: string
266
+ postalCode:
267
+ description: Postal code
268
+ type: string
269
+ required: false #TODO: hand-rolled W-8253396
270
+ schedEndTime:
271
+ description: Scheduled end time
272
+ type: string
273
+ required: false #TODO: hand-rolled W-8253396
274
+ schedStartTime:
275
+ description: Scheduled start time
276
+ type: string
277
+ required: false #TODO: hand-rolled W-8253396
278
+ serviceTerritoryId:
279
+ description: Service territory ID
280
+ type: string
281
+ required: false #TODO: hand-rolled W-8253396
282
+ state:
283
+ description: State
284
+ type: string
285
+ required: false #TODO: hand-rolled W-8253396
286
+ street:
287
+ description: Street
288
+ type: string
289
+ required: false #TODO: hand-rolled W-8253396
290
+ subject:
291
+ description: Subject
292
+ type: string
293
+ required: false #TODO: hand-rolled W-8253396
294
+ workTypeId:
295
+ description: Work type ID
296
+ type: string
297
+ required: false #TODO: hand-rolled W-8253396
298
+ ServiceAppointmentOutputRepresentation:
299
+ description: Create service appointment output representation
300
+ type: object
301
+ properties:
302
+ result:
303
+ description: Result
304
+ type: ServiceAppointmentResult
305
+ ServiceAppointmentResult:
306
+ description: Create Service Appointment results representation
307
+ type: object
308
+ properties:
309
+ assignedResourceIds:
310
+ description: Assigned resource IDs
311
+ type: array
312
+ items:
313
+ type: string
314
+ parentRecordId:
315
+ description: Parent record ID
316
+ type: string
317
+ required: false #TODO: hand-rolled W-8253396
318
+ serviceAppointmentId:
319
+ description: Service appointment ID
320
+ type: string
321
+ UpdateServiceAppointmentInputRepresentation:
322
+ description: Update Service Appointment input representation
323
+ type: object #TODO hand-rolled - actually extends abstract class
324
+ properties:
325
+ assignedResources:
326
+ description: Assigned Resources
327
+ type: array
328
+ required: false #TODO: hand-rolled W-8253396
329
+ items:
330
+ type: object
331
+ lead:
332
+ description: Lead
333
+ type: object
334
+ required: false #TODO: hand-rolled W-8253396
335
+ schedulingPolicyId:
336
+ description: Scheduling Policy Id
337
+ type: string
338
+ required: false #TODO: hand-rolled W-8253396
339
+ serviceAppointment:
340
+ description: Service Appointment
341
+ type: object
342
+ serviceAppointmentId:
343
+ description: Service appointment Id
344
+ type: string
345
+ UpdateServiceAppointmentData: #TODO: hand rolled
346
+ description: A wrapper around the UpdateServiceAppointmentInputRepresentation
347
+ type: object
348
+ properties:
349
+ updateServiceAppointmentInput:
350
+ description: The Oas Boday Name for update service data
351
+ type: UpdateServiceAppointmentInputRepresentation
352
+
353
+ /connect:
354
+ /scheduling:
355
+ /engagement-channel-types:
356
+ get:
357
+ description: 'Get list of engagement channel types with specified work types or work type groups'
358
+ responses:
359
+ '200':
360
+ description: Success
361
+ body:
362
+ application/json:
363
+ type: GetEngagementChannelTypeOutputRepresentation
364
+ queryParameters:
365
+ workTypeGroupIds:
366
+ type: array
367
+ required: false #TODO: hand-rolled W-8253396
368
+ items:
369
+ type: string
370
+ (oas-collectionFormat): csv
371
+ workTypeIds:
372
+ type: array
373
+ required: false #TODO: hand-rolled W-8253396
374
+ items:
375
+ type: string
376
+ (oas-collectionFormat): csv
377
+ /service-appointments:
378
+ patch:
379
+ description: Updating Service Appointment
380
+ responses:
381
+ '200':
382
+ description: Success
383
+ body:
384
+ application/json:
385
+ type: ServiceAppointmentOutputRepresentation
386
+ body:
387
+ application/json:
388
+ type: UpdateServiceAppointmentData
389
+ (oas-body-name): updateServiceAppointmentInput
390
+ post:
391
+ description: Create a new Sample object. All fields are optional for this object.
392
+ responses:
393
+ '200':
394
+ description: Success
395
+ body:
396
+ application/json:
397
+ type: ServiceAppointmentOutputRepresentation
398
+ body:
399
+ application/json:
400
+ type: CreateServiceAppointmentData
401
+ (oas-body-name): createServiceAppointmentInput
@@ -0,0 +1,30 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'IndustriesScheduler'
8
+ (luvio.ttl): 360000
9
+
10
+ types:
11
+ ServiceAppointmentOutputRepresentation:
12
+ (luvio.key):
13
+ id: result.serviceAppointmentId
14
+ ServiceAppointmentResult:
15
+ (luvio.key):
16
+ id: serviceAppointmentId
17
+
18
+ /connect:
19
+ /scheduling:
20
+ /engagement-channel-types:
21
+ get:
22
+ (luvio.adapter):
23
+ name: getEngagementChannelTypes
24
+ /service-appointments:
25
+ patch:
26
+ (luvio.adapter):
27
+ name: updateServiceAppointment
28
+ post:
29
+ (luvio.adapter):
30
+ name: createServiceAppointment