system.kanoa.schedule.checkForScheduleOverlap(scheduleBlockInfo, scheduleConfig, rangeStart, rangeEnd)
Checks a new event to schedule or modify, against the asset's current schedule and shift schedule if required and returns a list of start and endDates available
Parameters
scheduleBlockInfo Dictionary
| - assetPath | String | |
| - endDate | DateTime | |
| - startDate | DateTime |
scheduleConfig Dictionary
| - intelligentScheduling | Boolean | When enabled, we will check if the event overlaps with existing events |
| - shiftTimeOnly | Boolean |
rangeStart DateTime: Start date of range to check for overlap
rangeEnd DateTime: End date of range to check for overlap
Returns
scheduleTimes list[dict] i.e. [{'startDate' 2024-01-01 000000, 'endDate' 2024-01-01 001400}]
scheduleOverlap Boolean True if overlap detected
overlappingScheduleBlockList List of Dictionaries
Example