Pain.Schedule (pain v0.1.0)

Summary

Functions

import Pain.Schedule

menu_keys() |> Enum.take(3)
|> service_demand()
|> check_blocks(employee_keys(), this_month())
Pain.Schedule.check_blocks_on_calendars(
  "2023-08-28T14:00:00-0400",
  menu_keys() |> Enum.take(3),
  employee_keys()
)
import Pain.Schedule
( service_demand([ 39928578, 39928780, 39931669, ])
  |> check_blocks(employee_keys(), this_month())
  |> blocks_by_day()
)["2023-09-30"] |> hour_map()

Functions

Link to this function

blocks_by_day(blocks)

Link to this function

check_blocks(demand, employee_keys, range)

import Pain.Schedule

menu_keys() |> Enum.take(3)
|> service_demand()
|> check_blocks(employee_keys(), this_month())
Link to this function

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()
)
Link to this function

check_calendar_day_service(service, employee_keys, day)

Link to this function

employee_genders()

Link to this function

employee_keys()

Link to this function

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()
Link to this function

key_in_menu(name)

Link to this function

reduce_blocks(list)

Link to this function

reduce_calendars(cals)

Link to this function

service_demand(menu_keys)