Skip to content

codex_services.booking.slot_master.modes

modes

codex_services.booking.slot_master.modes

Operating modes for the slot-master booking engine.

Imports

from codex_services.booking.slot_master import BookingMode

Classes

BookingMode

Bases: StrEnum

Operating mode for ChainFinder.

SINGLE_DAY

All services from the request must fit within a single day. The common mode — multiple services in one visit.

MULTI_DAY

Each service can be scheduled for a different day (Stub).

RESOURCE_LOCKED

Booking for a specific resource (e.g., from their personal page). The engine relies entirely on the provided resource constraints.

Example
mode = BookingMode.SINGLE_DAY
Source code in src/codex_services/booking/slot_master/modes.py
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
class BookingMode(StrEnum):
    """
    Operating mode for ChainFinder.

    SINGLE_DAY:
        All services from the request must fit within a single day.
        The common mode — multiple services in one visit.

    MULTI_DAY:
        Each service can be scheduled for a different day (Stub).

    RESOURCE_LOCKED:
        Booking for a specific resource (e.g., from their personal page).
        The engine relies entirely on the provided resource constraints.

    Example:
        ```python
        mode = BookingMode.SINGLE_DAY
        ```
    """

    SINGLE_DAY = "single_day"
    MULTI_DAY = "multi_day"
    RESOURCE_LOCKED = "resource_locked"