Skip to main content

system.kanoa.schedule.adjustScheduleEvents(scheduleBlockInfo, scheduleTimes, scheduleBlockList, scheduleOption, scheduleConfig, rangeStart, rangeEnd, userId)

Takes a list of scheduleTimes to be scheduled and a list of scheduleBlocks that are overlapping and adjusts the scheduleTimes


Parameters

scheduleBlockInfo Dictionary: scheduleBlockInfo to be adjusted
scheduleTimes List of Dictionaries: List of scheduleTimes to be scheduled

- endDateDateTime
- startDateDateTime

scheduleBlockList List of Dictionaries: List of scheduleBlocks that are overlapping
scheduleOption String: 'wrap'
scheduleConfig Dictionary: i.e. 'shiftTimeOnly': True
rangeStart DateTime: Start date of range to be adjusted
rangeEnd DateTime: End date of range to be adjusted
userId Integer


Returns

scheduleEventTimes List of Dictionaries


Example