@salesforce/lds-adapters-sales-user-working-hours 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 (43) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/sales-user-working-hours.js +892 -0
  3. package/dist/types/src/generated/adapters/adapter-utils.d.ts +66 -0
  4. package/dist/types/src/generated/adapters/createSalesUserWorkingHours.d.ts +15 -0
  5. package/dist/types/src/generated/adapters/deleteSalesUserWorkingHours.d.ts +13 -0
  6. package/dist/types/src/generated/adapters/getSalesUserWorkingHours.d.ts +28 -0
  7. package/dist/types/src/generated/adapters/updateSalesUserWorkingHours.d.ts +15 -0
  8. package/dist/types/src/generated/artifacts/main.d.ts +4 -0
  9. package/dist/types/src/generated/artifacts/sfdc.d.ts +7 -0
  10. package/dist/types/src/generated/resources/deleteSalesWorkingHoursTimeSlots.d.ts +8 -0
  11. package/dist/types/src/generated/resources/deleteSalesWorkingHoursTimeSlotsById.d.ts +12 -0
  12. package/dist/types/src/generated/resources/getSalesWorkingHoursTimeSlots.d.ts +17 -0
  13. package/dist/types/src/generated/resources/getSalesWorkingHoursTimeSlotsById.d.ts +19 -0
  14. package/dist/types/src/generated/resources/patchSalesWorkingHoursTimeSlots.d.ts +13 -0
  15. package/dist/types/src/generated/resources/patchSalesWorkingHoursTimeSlotsById.d.ts +17 -0
  16. package/dist/types/src/generated/resources/postActivityEngagementMetricsEngagement.d.ts +14 -0
  17. package/dist/types/src/generated/resources/postSalesAlertsDataAndMetrics.d.ts +13 -0
  18. package/dist/types/src/generated/resources/postSalesWorkingHoursTimeSlots.d.ts +13 -0
  19. package/dist/types/src/generated/resources/postSalesWorkingHoursTimeSlotsById.d.ts +17 -0
  20. package/dist/types/src/generated/resources/putActivityEngagementEventsEngagement.d.ts +9 -0
  21. package/dist/types/src/generated/types/EngagementAggregationRequest.d.ts +44 -0
  22. package/dist/types/src/generated/types/EngagementEventResponse.d.ts +32 -0
  23. package/dist/types/src/generated/types/HVSMetricOutputRepresentation.d.ts +38 -0
  24. package/dist/types/src/generated/types/HVSMetricsRequest.d.ts +35 -0
  25. package/dist/types/src/generated/types/HVSMetricsResponse.d.ts +36 -0
  26. package/dist/types/src/generated/types/HighVelocityEngagementEventRequest.d.ts +29 -0
  27. package/dist/types/src/generated/types/HighVelocityEngagementRequest.d.ts +77 -0
  28. package/dist/types/src/generated/types/SalesAlertsRequest.d.ts +32 -0
  29. package/dist/types/src/generated/types/SalesAlertsResponse.d.ts +54 -0
  30. package/dist/types/src/generated/types/SalesUserWorkingHoursRequest.d.ts +33 -0
  31. package/dist/types/src/generated/types/SalesUserWorkingHoursRequestWrapper.d.ts +29 -0
  32. package/dist/types/src/generated/types/SalesUserWorkingHoursResponse.d.ts +54 -0
  33. package/dist/types/src/generated/types/TimeSlotInputRepresentation.d.ts +38 -0
  34. package/dist/types/src/generated/types/TimeSlotOutputRepresentation.d.ts +47 -0
  35. package/dist/types/src/generated/types/UpdateAlertsRequest.d.ts +35 -0
  36. package/dist/types/src/generated/types/type-utils.d.ts +39 -0
  37. package/dist/umd/es2018/sales-user-working-hours.js +903 -0
  38. package/dist/umd/es5/sales-user-working-hours.js +907 -0
  39. package/package.json +68 -0
  40. package/sfdc/index.d.ts +1 -0
  41. package/sfdc/index.js +971 -0
  42. package/src/raml/api.raml +447 -0
  43. package/src/raml/luvio.raml +36 -0
@@ -0,0 +1,447 @@
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
+ EngagementAggregationRequest:
29
+ description: Input representation for Get engagement aggregation data for days
30
+ type: object
31
+ properties:
32
+ cadenceStepId:
33
+ description: CadenceStepId
34
+ type: string
35
+ channelActions:
36
+ description: ChannelActions
37
+ type: array
38
+ items:
39
+ type: string
40
+ channelTypes:
41
+ description: ChannelTypes
42
+ type: array
43
+ items:
44
+ type: string
45
+ metricsEntityIds:
46
+ description: MetricsEntityIds - TargetIds (Contact/Lead/PA)
47
+ type: array
48
+ items:
49
+ type: string
50
+ numberOfDaysInPast:
51
+ description: NumberOfDaysInPast
52
+ type: integer
53
+ numberOfMonthsInPast:
54
+ description: numberOfMonthsInPast
55
+ type: integer
56
+ EngagementEventResponse:
57
+ description: Represents the EngagementEvent logging response
58
+ type: object
59
+ properties:
60
+ errorMsg:
61
+ description: Represents the API error msg in case of any
62
+ type: string
63
+ isSuccess:
64
+ description: Represents if the API call was successful or not
65
+ type: boolean
66
+ HVSMetricOutputRepresentation:
67
+ description: Represents the Engagement Metrics response
68
+ type: object
69
+ properties:
70
+ channelAction:
71
+ description: Represents the channel action
72
+ type: string
73
+ channelType:
74
+ description: Represents the channel type
75
+ type: string
76
+ channelVehicleId:
77
+ description: Represents the channel vehicle id
78
+ type: string
79
+ total:
80
+ description: Represents the total for channelType and channelAction for given
81
+ channelVehicleId
82
+ type: integer
83
+ HVSMetricsRequest:
84
+ description: Input representation for making a call to get Engagement Metrics
85
+ type: object
86
+ properties:
87
+ channelActions:
88
+ description: ChannelActions
89
+ type: array
90
+ items:
91
+ type: string
92
+ channelTypes:
93
+ description: ChannelTypes
94
+ type: array
95
+ items:
96
+ type: string
97
+ channelVehicleIds:
98
+ description: ChannelVehicleIds
99
+ type: array
100
+ items:
101
+ type: string
102
+ HVSMetricsResponse:
103
+ description: Represents the Engagement Metrics response
104
+ type: object
105
+ properties:
106
+ errorMsg:
107
+ description: Represents the API error msg in case of any
108
+ type: string
109
+ isSuccess:
110
+ description: Represents if the API call was successful or not
111
+ type: boolean
112
+ metrics:
113
+ description: Represents the metrics
114
+ type: array
115
+ items:
116
+ type: HVSMetricOutputRepresentation
117
+ HighVelocityEngagementEventRequest:
118
+ description: Input representation for making a call to log EngagementEvent
119
+ type: object
120
+ properties:
121
+ engagements:
122
+ description: Engagements
123
+ type: array
124
+ items:
125
+ type: object
126
+ HighVelocityEngagementRequest:
127
+ description: Input representation for making a call to log EngagementEvent
128
+ type: object
129
+ properties:
130
+ assetTrackingTypes:
131
+ description: assetTrackingTypes
132
+ type: string
133
+ bounceReason:
134
+ description: bounceReason
135
+ type: string
136
+ channelAction:
137
+ description: Channel Action
138
+ type: string
139
+ channelType:
140
+ description: Channel Type
141
+ type: string
142
+ channelVehicleId:
143
+ description: Channel Vehicle ID
144
+ type: string
145
+ channelVehicleParentId:
146
+ description: Channel Vehicle Parent ID
147
+ type: string
148
+ device:
149
+ description: Device
150
+ type: string
151
+ emailAddress:
152
+ description: emailAddress
153
+ type: string
154
+ engagementDate:
155
+ description: Engagement Date
156
+ type: string
157
+ linkUrl:
158
+ description: Link Url
159
+ type: string
160
+ targetId:
161
+ description: Target ID
162
+ type: string
163
+ targetTrackingTypes:
164
+ description: targetTrackingTypes
165
+ type: string
166
+ templateId:
167
+ description: Template ID
168
+ type: string
169
+ userAgent:
170
+ description: User Agent
171
+ type: string
172
+ userId:
173
+ description: User ID
174
+ type: string
175
+ workflowStepId:
176
+ description: Workflow Step ID
177
+ type: string
178
+ workflowStepTracker:
179
+ description: WorkflowStepTracker
180
+ type: string
181
+ SalesAlertsRequest:
182
+ description: Input representation for posting a call to pull data from SIQ Store
183
+ type: object
184
+ properties:
185
+ relatedRecordIds:
186
+ description: RelatedRecordIds
187
+ type: array
188
+ items:
189
+ type: string
190
+ unifiedEmailIds:
191
+ description: UnifiedEmailIds
192
+ type: array
193
+ items:
194
+ type: string
195
+ SalesAlertsResponse:
196
+ description: Represents the SalesAlertsResponse from SIQ Store
197
+ type: object
198
+ properties:
199
+ errorMsg:
200
+ description: Represents the API error msg in case of any
201
+ type: string
202
+ isSuccess:
203
+ description: Represents if the API call was successful or not
204
+ type: boolean
205
+ metricsByRelatedRecordId:
206
+ description: 'Represents metrics information from related recode id '
207
+ type: object
208
+ properties:
209
+ //:
210
+ type: object
211
+ properties:
212
+ //:
213
+ type: integer
214
+ recordDataByUnifiedEmailId:
215
+ description: 'Represents metrics information from email addresses based on
216
+ unified Email Id '
217
+ type: object
218
+ properties:
219
+ //:
220
+ type: object
221
+ properties:
222
+ //:
223
+ type: object
224
+ # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
225
+ SalesUserWorkingHoursRequestWrapper:
226
+ description: Wrapper for SalesUserWorkingHoursRequest
227
+ type: object
228
+ properties:
229
+ salesUserWorkingHoursRequest:
230
+ type: SalesUserWorkingHoursRequest
231
+ description: Sales User Working Hours Request Input Representation
232
+ SalesUserWorkingHoursRequest:
233
+ description: Input representation for sales user working hours
234
+ type: object
235
+ properties:
236
+ salesUserWorkingHoursType:
237
+ description: SalesUserWorkingHoursType
238
+ type: string
239
+ timeSlots:
240
+ description: TimeSlots
241
+ type: array
242
+ items:
243
+ type: TimeSlotInputRepresentation
244
+ TimeSlotInputRepresentation: # TODO Handrolled Missing Types from RAML - W-7093257
245
+ description: Represents the Sales User Working Hours request
246
+ type: object
247
+ properties:
248
+ dayOfWeek:
249
+ description: Represents the day of the week
250
+ type: string
251
+ required: false # TODO Handrolled W-9314597
252
+ endTime:
253
+ description: Represents the End time in HH:MM format. Example - 5:00 PM end
254
+ time gets represented as 17:00
255
+ type: string
256
+ required: false # TODO Handrolled W-9314597
257
+ startTime:
258
+ description: Represents the start time in HH:MM format. Example - 9:30 AM
259
+ start time gets represented as 09:30
260
+ type: string
261
+ required: false # TODO Handrolled W-9314597
262
+ id:
263
+ description: Represents the time slot unique identifier. It's a SFDC record
264
+ id of TimeSlot entity
265
+ type: string
266
+ required: false # TODO Handrolled W-9314597
267
+ SalesUserWorkingHoursResponse:
268
+ description: Represents the Sales User Working Hours response
269
+ type: object
270
+ properties:
271
+ timeSlots:
272
+ description: Represents the timeslots
273
+ type: array
274
+ items:
275
+ type: TimeSlotOutputRepresentation
276
+ timeZone:
277
+ description: Represents the timezone
278
+ type: string
279
+ userId:
280
+ description: Represents the related userId
281
+ type: string
282
+ TimeSlotOutputRepresentation:
283
+ description: Represents the Sales User Working Hours response
284
+ type: object
285
+ properties:
286
+ dayOfWeek:
287
+ description: Represents the day of the week
288
+ type: string
289
+ endTime:
290
+ description: Represents the End time in HH:MM format. Example - 5:00 PM end
291
+ time gets represented as 17:00
292
+ type: string
293
+ id:
294
+ description: Represents the time slot unique identifier. It's a SFDC record
295
+ id of TimeSlot entity
296
+ type: string
297
+ startTime:
298
+ description: Represents the start time in HH:MM format. Example - 9:30 AM
299
+ start time gets represented as 09:30
300
+ type: string
301
+ UpdateAlertsRequest:
302
+ description: Input representation for updating alert status
303
+ type: object
304
+ properties:
305
+ alertId:
306
+ description: alertId
307
+ type: string
308
+ alertRuleId:
309
+ description: alertStatus
310
+ type: string
311
+ alertStatus:
312
+ description: alertStatus
313
+ type: string
314
+ /activity-engagement:
315
+ /events/engagement:
316
+ put:
317
+ description: Resource to log engagement event
318
+ responses:
319
+ '200':
320
+ description: Success
321
+ body:
322
+ application/json:
323
+ type: EngagementEventResponse
324
+ body:
325
+ application/json:
326
+ type: HighVelocityEngagementEventRequest
327
+ (oas-body-name): activityEngagementRequest
328
+ /metrics/engagement:
329
+ post:
330
+ description: Resource to get engagement metrics
331
+ responses:
332
+ '200':
333
+ description: Success
334
+ body:
335
+ application/json:
336
+ type: HVSMetricsResponse
337
+ body:
338
+ application/json:
339
+ type: HVSMetricsRequest
340
+ (oas-body-name): engagementMetricsRequest
341
+ /sales-alerts/data-and-metrics:
342
+ post:
343
+ description: Resource to get sales alerts data and metrics
344
+ responses:
345
+ '200':
346
+ description: Success
347
+ body:
348
+ application/json:
349
+ type: SalesAlertsResponse
350
+ body:
351
+ application/json:
352
+ type: SalesAlertsRequest
353
+ (oas-body-name): salesAlertsRequest
354
+ /sales/working-hours/time-slots:
355
+ delete:
356
+ description: Resource to delete a timeslot
357
+ responses:
358
+ '200':
359
+ description: Success
360
+ get:
361
+ description: Resource to get timeslots
362
+ responses:
363
+ '200':
364
+ description: Success
365
+ body:
366
+ application/json:
367
+ type: SalesUserWorkingHoursResponse
368
+ queryParameters:
369
+ userId:
370
+ type: string
371
+ required: true # Handrolled to have same key on the get luvio key with response luvio key
372
+ workingHoursType:
373
+ type: string
374
+ required: false
375
+ patch:
376
+ description: Resource to update a timeslot
377
+ responses:
378
+ '200':
379
+ description: Success
380
+ body:
381
+ application/json:
382
+ type: SalesUserWorkingHoursResponse
383
+ body:
384
+ application/json:
385
+ type: SalesUserWorkingHoursRequestWrapper # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
386
+ (oas-body-name): salesUserWorkingHoursRequest
387
+ post:
388
+ description: Resource to create timeslots
389
+ responses:
390
+ '200':
391
+ description: Success
392
+ body:
393
+ application/json:
394
+ type: SalesUserWorkingHoursResponse
395
+ body:
396
+ application/json:
397
+ type: SalesUserWorkingHoursRequestWrapper # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
398
+ (oas-body-name): salesUserWorkingHoursRequest
399
+ /sales/working-hours/time-slots/{id}:
400
+ delete:
401
+ description: Resource to delete a timeslot
402
+ responses:
403
+ '200':
404
+ description: Success
405
+ get:
406
+ description: Resource to get timeslots
407
+ responses:
408
+ '200':
409
+ description: Success
410
+ body:
411
+ application/json:
412
+ type: TimeSlotOutputRepresentation #Handrolled
413
+ queryParameters:
414
+ userId:
415
+ type: string
416
+ required: false
417
+ workingHoursType:
418
+ type: string
419
+ required: false
420
+ patch:
421
+ description: Resource to update a timeslot
422
+ responses:
423
+ '200':
424
+ description: Success
425
+ body:
426
+ application/json:
427
+ type: SalesUserWorkingHoursResponse
428
+ body:
429
+ application/json:
430
+ type: SalesUserWorkingHoursRequest
431
+ (oas-body-name): salesUserWorkingHoursRequest
432
+ post:
433
+ description: Resource to create timeslots
434
+ responses:
435
+ '200':
436
+ description: Success
437
+ body:
438
+ application/json:
439
+ type: SalesUserWorkingHoursResponse
440
+ body:
441
+ application/json:
442
+ type: SalesUserWorkingHoursRequest
443
+ (oas-body-name): salesUserWorkingHoursRequest
444
+ uriParameters:
445
+ id:
446
+ type: string
447
+ required: true
@@ -0,0 +1,36 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'user-working-hours'
8
+ (luvio.ttl): 100
9
+
10
+ types:
11
+ SalesUserWorkingHoursResponse:
12
+ (luvio.key):
13
+ salesUserId: userId
14
+ TimeSlotOutputRepresentation:
15
+ (luvio.key):
16
+ timeSlotId: id
17
+
18
+ /sales/working-hours/time-slots:
19
+ get:
20
+ (luvio.adapter):
21
+ name: getSalesUserWorkingHours
22
+ (luvio.key):
23
+ salesUserId: queryParams.userId
24
+ patch:
25
+ (luvio.adapter):
26
+ name: updateSalesUserWorkingHours
27
+ post:
28
+ (luvio.adapter):
29
+ name: createSalesUserWorkingHours
30
+
31
+ /sales/working-hours/time-slots/{id}:
32
+ delete:
33
+ (luvio.adapter):
34
+ name: deleteSalesUserWorkingHours
35
+ (luvio.key):
36
+ timeSlotId: urlParams.id