Agusti
06/06/2022, 7:34 PMVikram
06/07/2022, 3:32 PMVarun Krishnamurthy
06/08/2022, 3:30 PMAgusti
06/08/2022, 4:42 PMVikram
06/08/2022, 4:50 PMAgusti
06/08/2022, 4:51 PMAgusti
06/08/2022, 5:10 PM{
"busy": [],
"timeZone": "Europe/London",
"workingHours": [
{
"days": [
1,
2,
3,
4,
5
],
"startTime": 480,
"endTime": 960
}
]
}
Vikram
06/08/2022, 5:11 PMbusy
field populated as well?Agusti
06/08/2022, 5:11 PMVikram
06/08/2022, 5:11 PMstartTime
and endTime
in?Vikram
06/08/2022, 5:12 PMAgusti
06/08/2022, 5:13 PMAgusti
06/08/2022, 5:14 PMAgusti
06/08/2022, 5:15 PMconst busyTimes = await getBusyTimes({
credentials: currentUser.credentials,
startTime: dateFrom.format(),
endTime: dateTo.format(),
eventTypeId,
userId: currentUser.id,
selectedCalendars,
});
const bufferedBusyTimes = busyTimes.map((a) => ({
start: dayjs(a.start).subtract(currentUser.bufferTime, "minute"),
end: dayjs(a.end).add(currentUser.bufferTime, "minute"),
}));
Agusti
06/08/2022, 5:24 PM{
"busy": [
{
"start": "2022-06-09T03:46:03.246Z",
"end": "2022-06-09T04:16:03.247Z"
},
{
"start": "2022-06-09T08:00:00.000Z",
"end": "2022-06-09T08:30:00.000Z"
}
],
"timeZone": "Europe/London",
"workingHours": [
{
"days": [
1,
2,
3,
4,
5
],
"startTime": 480,
"endTime": 960
}
]
}
Agusti
06/08/2022, 5:25 PMVikram
06/08/2022, 5:26 PMworkingHours
field seems to be in another format. ill just play around with it once its live but this is enough for me to get started. Any eta on when we can expect something live?Agusti
06/08/2022, 5:27 PMVikram
06/08/2022, 5:27 PMAgusti
06/08/2022, 5:28 PM// DEPRECATED - TO BE REMOVED
startTime Int @default(0)
endTime Int @default(1440)
// </DEPRECATED>
Agusti
06/08/2022, 5:28 PMAgusti
06/08/2022, 5:28 PM