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 PMbusyAgusti
06/08/2022, 5:11 PMVikram
06/08/2022, 5:11 PMstartTimeendTimeVikram
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 PMworkingHoursAgusti
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