Search documentation of pain

# Pain.Schedule (pain v0.1.0)

Copy Markdown

## Summary

### Functions

addons()
blocks_by_day(blocks)
calendars()
check_blocks(demand, employee_keys, range)
check_blocks_on_calendars(block, menu_keys, employee_keys)
check_calendar_day_service(service, employee_keys, day)
day(phrase)
employee_genders()
employee_keys()
employees()
ending()
grouped_menu()
hour_map(clocks)
key_in_menu(name)
log(node)
menu()
menu_keys()
menu_keys(menu)
month(month)
now()
range(day)
reduce_blocks(list)
reduce_calendars(cals)
service_demand(menu_keys)
this_month()
today()

## Functions

# addons()

# blocks_by_day(blocks)

# calendars()

# check_blocks(demand, employee_keys, range)

    import Pain.Schedule

    menu_keys() |> Enum.take(3)
    |> service_demand()
    |> check_blocks(employee_keys(), this_month())

# check_blocks_on_calendars(block, menu_keys, employee_keys)

    Pain.Schedule.check_blocks_on_calendars(
      "2023-08-28T14:00:00-0400",
      menu_keys() |> Enum.take(3),
      employee_keys()
    )

# check_calendar_day_service(service, employee_keys, day)

# day(phrase)

# employee_genders()

# employee_keys()

# employees()

# ending()

# grouped_menu()

# hour_map(clocks)

    import Pain.Schedule
    ( service_demand([ 39928578, 39928780, 39931669, ])
      |> check_blocks(employee_keys(), this_month())
      |> blocks_by_day()
    )["2023-09-30"] |> hour_map()

# key_in_menu(name)

# log(node)

# menu()

# menu_keys()

# menu_keys(menu)

# month(month)

# now()

# range(day)

# reduce_blocks(list)

# reduce_calendars(cals)

# service_demand(menu_keys)

# this_month()

# today()