@salesforce/lds-adapters-sales-user-working-hours 0.1.0-dev1
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/sales-user-working-hours.js +1001 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/createSalesUserWorkingHours.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/adapters/deleteSalesUserWorkingHours.d.ts +14 -0
- package/dist/es/es2018/types/src/generated/adapters/getSalesUserWorkingHours.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/updateSalesUserWorkingHours.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +5 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +9 -0
- package/dist/es/es2018/types/src/generated/resources/deleteSalesWorkingHoursTimeSlots.d.ts +8 -0
- package/dist/es/es2018/types/src/generated/resources/deleteSalesWorkingHoursTimeSlotsById.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/getSalesWorkingHoursTimeSlots.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/getSalesWorkingHoursTimeSlotsById.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/patchSalesWorkingHoursTimeSlots.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/resources/patchSalesWorkingHoursTimeSlotsById.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/postSalesWorkingHoursTimeSlots.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/resources/postSalesWorkingHoursTimeSlotsById.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/putActivityEngagementEventsEngagement.d.ts +9 -0
- package/dist/es/es2018/types/src/generated/types/EngagementAggregationRequest.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/EngagementEventResponse.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/HVSMetricOutputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/HVSMetricsRequest.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/HVSMetricsResponse.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/HighVelocityEngagementEventRequest.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/HighVelocityEngagementRequest.d.ts +76 -0
- package/dist/es/es2018/types/src/generated/types/SalesAlertsRequest.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/SalesAlertsResponse.d.ts +53 -0
- package/dist/es/es2018/types/src/generated/types/SalesUserWorkingHoursGetResponseWrapper.d.ts +54 -0
- package/dist/es/es2018/types/src/generated/types/SalesUserWorkingHoursRequest.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/SalesUserWorkingHoursRequestWrapper.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/SalesUserWorkingHoursResponse.d.ts +53 -0
- package/dist/es/es2018/types/src/generated/types/TimeSlotInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/TimeSlotOutputRepresentation.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/UpdateAlertsRequest.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +72 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1092 -0
- package/src/raml/api.raml +464 -0
- package/src/raml/luvio.raml +43 -0
|
@@ -0,0 +1,464 @@
|
|
|
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/v66.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
|
+
SalesUserWorkingHoursGetResponseWrapper: # Handrolled to avoid get response update from post and patch calls due to same response type
|
|
268
|
+
description: Wrapper for SalesUserWorkingHoursResponse
|
|
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 | nil # Handrolled to allow null timezone.
|
|
279
|
+
userId:
|
|
280
|
+
description: Represents the related userId
|
|
281
|
+
type: string
|
|
282
|
+
SalesUserWorkingHoursResponse:
|
|
283
|
+
description: Represents the Sales User Working Hours response
|
|
284
|
+
type: object
|
|
285
|
+
properties:
|
|
286
|
+
timeSlots:
|
|
287
|
+
description: Represents the timeslots
|
|
288
|
+
type: array
|
|
289
|
+
items:
|
|
290
|
+
type: TimeSlotOutputRepresentation
|
|
291
|
+
timeZone:
|
|
292
|
+
description: Represents the timezone
|
|
293
|
+
type: string | nil # Handrolled to allow null timezone.
|
|
294
|
+
userId:
|
|
295
|
+
description: Represents the related userId
|
|
296
|
+
type: string
|
|
297
|
+
TimeSlotOutputRepresentation:
|
|
298
|
+
description: Represents the Sales User Working Hours response
|
|
299
|
+
type: object
|
|
300
|
+
properties:
|
|
301
|
+
dayOfWeek:
|
|
302
|
+
description: Represents the day of the week
|
|
303
|
+
type: string
|
|
304
|
+
endTime:
|
|
305
|
+
description: Represents the End time in HH:MM format. Example - 5:00 PM end
|
|
306
|
+
time gets represented as 17:00
|
|
307
|
+
type: string
|
|
308
|
+
id:
|
|
309
|
+
description: Represents the time slot unique identifier. It's a SFDC record
|
|
310
|
+
id of TimeSlot entity
|
|
311
|
+
type: string
|
|
312
|
+
startTime:
|
|
313
|
+
description: Represents the start time in HH:MM format. Example - 9:30 AM
|
|
314
|
+
start time gets represented as 09:30
|
|
315
|
+
type: string
|
|
316
|
+
UpdateAlertsRequest:
|
|
317
|
+
description: Input representation for updating alert status
|
|
318
|
+
type: object
|
|
319
|
+
properties:
|
|
320
|
+
alertId:
|
|
321
|
+
description: alertId
|
|
322
|
+
type: string
|
|
323
|
+
alertRuleId:
|
|
324
|
+
description: alertStatus
|
|
325
|
+
type: string
|
|
326
|
+
alertStatus:
|
|
327
|
+
description: alertStatus
|
|
328
|
+
type: string
|
|
329
|
+
/activity-engagement:
|
|
330
|
+
/events/engagement:
|
|
331
|
+
put:
|
|
332
|
+
description: Resource to log engagement event
|
|
333
|
+
responses:
|
|
334
|
+
'200':
|
|
335
|
+
description: Success
|
|
336
|
+
body:
|
|
337
|
+
application/json:
|
|
338
|
+
type: EngagementEventResponse
|
|
339
|
+
body:
|
|
340
|
+
application/json:
|
|
341
|
+
type: HighVelocityEngagementEventRequest
|
|
342
|
+
(oas-body-name): activityEngagementRequest
|
|
343
|
+
/metrics/engagement:
|
|
344
|
+
# TODO: Hand rolled
|
|
345
|
+
# post:
|
|
346
|
+
# description: Resource to get engagement metrics
|
|
347
|
+
# responses:
|
|
348
|
+
# '200':
|
|
349
|
+
# description: Success
|
|
350
|
+
# body:
|
|
351
|
+
# application/json:
|
|
352
|
+
# type: HVSMetricsResponse
|
|
353
|
+
# body:
|
|
354
|
+
# application/json:
|
|
355
|
+
# type: HVSMetricsRequest
|
|
356
|
+
# (oas-body-name): engagementMetricsRequest
|
|
357
|
+
/sales-alerts/data-and-metrics:
|
|
358
|
+
# TODO: Hand rolled
|
|
359
|
+
# post:
|
|
360
|
+
# description: Resource to get sales alerts data and metrics
|
|
361
|
+
# responses:
|
|
362
|
+
# '200':
|
|
363
|
+
# description: Success
|
|
364
|
+
# body:
|
|
365
|
+
# application/json:
|
|
366
|
+
# type: SalesAlertsResponse
|
|
367
|
+
# body:
|
|
368
|
+
# application/json:
|
|
369
|
+
# type: SalesAlertsRequest
|
|
370
|
+
# (oas-body-name): salesAlertsRequest
|
|
371
|
+
/sales/working-hours/time-slots:
|
|
372
|
+
delete:
|
|
373
|
+
description: Resource to delete a timeslot
|
|
374
|
+
responses:
|
|
375
|
+
'200':
|
|
376
|
+
description: Success
|
|
377
|
+
get:
|
|
378
|
+
description: Resource to get timeslots
|
|
379
|
+
responses:
|
|
380
|
+
'200':
|
|
381
|
+
description: Success
|
|
382
|
+
body:
|
|
383
|
+
application/json:
|
|
384
|
+
type: SalesUserWorkingHoursGetResponseWrapper # Handrolled to avoid get response update from post and patch calls due to same response type
|
|
385
|
+
queryParameters:
|
|
386
|
+
userId:
|
|
387
|
+
type: string
|
|
388
|
+
required: true # Handrolled to have same key on the get luvio key with response luvio key
|
|
389
|
+
workingHoursType:
|
|
390
|
+
type: string
|
|
391
|
+
required: false
|
|
392
|
+
patch:
|
|
393
|
+
description: Resource to update a timeslot
|
|
394
|
+
responses:
|
|
395
|
+
'200':
|
|
396
|
+
description: Success
|
|
397
|
+
body:
|
|
398
|
+
application/json:
|
|
399
|
+
type: SalesUserWorkingHoursResponse
|
|
400
|
+
body:
|
|
401
|
+
application/json:
|
|
402
|
+
type: SalesUserWorkingHoursRequestWrapper # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
|
|
403
|
+
(oas-body-name): salesUserWorkingHoursRequest
|
|
404
|
+
post:
|
|
405
|
+
description: Resource to create timeslots
|
|
406
|
+
responses:
|
|
407
|
+
'200':
|
|
408
|
+
description: Success
|
|
409
|
+
body:
|
|
410
|
+
application/json:
|
|
411
|
+
type: SalesUserWorkingHoursResponse
|
|
412
|
+
body:
|
|
413
|
+
application/json:
|
|
414
|
+
type: SalesUserWorkingHoursRequestWrapper # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
|
|
415
|
+
(oas-body-name): salesUserWorkingHoursRequest
|
|
416
|
+
/sales/working-hours/time-slots/{id}:
|
|
417
|
+
delete:
|
|
418
|
+
description: Resource to delete a timeslot
|
|
419
|
+
responses:
|
|
420
|
+
'200':
|
|
421
|
+
description: Success
|
|
422
|
+
get:
|
|
423
|
+
description: Resource to get timeslots
|
|
424
|
+
responses:
|
|
425
|
+
'200':
|
|
426
|
+
description: Success
|
|
427
|
+
body:
|
|
428
|
+
application/json:
|
|
429
|
+
type: TimeSlotOutputRepresentation #Handrolled
|
|
430
|
+
queryParameters:
|
|
431
|
+
userId:
|
|
432
|
+
type: string
|
|
433
|
+
required: false
|
|
434
|
+
workingHoursType:
|
|
435
|
+
type: string
|
|
436
|
+
required: false
|
|
437
|
+
patch:
|
|
438
|
+
description: Resource to update a timeslot
|
|
439
|
+
responses:
|
|
440
|
+
'200':
|
|
441
|
+
description: Success
|
|
442
|
+
body:
|
|
443
|
+
application/json:
|
|
444
|
+
type: SalesUserWorkingHoursResponse
|
|
445
|
+
body:
|
|
446
|
+
application/json:
|
|
447
|
+
type: SalesUserWorkingHoursRequest
|
|
448
|
+
(oas-body-name): salesUserWorkingHoursRequest
|
|
449
|
+
post:
|
|
450
|
+
description: Resource to create timeslots
|
|
451
|
+
responses:
|
|
452
|
+
'200':
|
|
453
|
+
description: Success
|
|
454
|
+
body:
|
|
455
|
+
application/json:
|
|
456
|
+
type: SalesUserWorkingHoursResponse
|
|
457
|
+
body:
|
|
458
|
+
application/json:
|
|
459
|
+
type: SalesUserWorkingHoursRequest
|
|
460
|
+
(oas-body-name): salesUserWorkingHoursRequest
|
|
461
|
+
uriParameters:
|
|
462
|
+
id:
|
|
463
|
+
type: string
|
|
464
|
+
required: true
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
SalesUserWorkingHoursGetResponseWrapper:
|
|
12
|
+
(luvio.key):
|
|
13
|
+
salesUserId: userId
|
|
14
|
+
(luvio.updateAvailable):
|
|
15
|
+
name: notifyUserWorkingHoursUpdateAvailable
|
|
16
|
+
parameters:
|
|
17
|
+
salesUserId: userId
|
|
18
|
+
SalesUserWorkingHoursResponse:
|
|
19
|
+
(luvio.key):
|
|
20
|
+
salesUserId: userId
|
|
21
|
+
TimeSlotOutputRepresentation:
|
|
22
|
+
(luvio.key):
|
|
23
|
+
timeSlotId: id
|
|
24
|
+
|
|
25
|
+
/sales/working-hours/time-slots:
|
|
26
|
+
get:
|
|
27
|
+
(luvio.adapter):
|
|
28
|
+
name: getSalesUserWorkingHours
|
|
29
|
+
(luvio.key):
|
|
30
|
+
salesUserId: queryParams.userId
|
|
31
|
+
patch:
|
|
32
|
+
(luvio.adapter):
|
|
33
|
+
name: updateSalesUserWorkingHours
|
|
34
|
+
post:
|
|
35
|
+
(luvio.adapter):
|
|
36
|
+
name: createSalesUserWorkingHours
|
|
37
|
+
|
|
38
|
+
/sales/working-hours/time-slots/{id}:
|
|
39
|
+
delete:
|
|
40
|
+
(luvio.adapter):
|
|
41
|
+
name: deleteSalesUserWorkingHours
|
|
42
|
+
(luvio.key):
|
|
43
|
+
timeSlotId: urlParams.id
|