@tpsengage/hour-parting-scheduler
TypeScript icon, indicating that this package has built-in type declarations

1.2.33 • Public • Published

hour-parting-scheduler

Demo data:

const onChange = (slots: number[], schedule: string) => {
    console.log(slots);
};
const scheduler: IScheduler[] = [{
        startDate: new Date(),
        readOnly: false,
        uuid: "1",
        title: "Global Schedule",
        type: SchedulerType.daily,
        slots: [1617256800, 1617260400, 1617264000, 1617350400],
        onChange: onChange,
        locations: [{
                uuid: "not here",
                name: "name 2",
                restriction: [0, 1, 2, 3, 4, 5, 22, 23],
            },
            {
                uuid: "2",
                name: "name 1",
                restriction: [0, 1, 2, 3, 4, 5, 22, 23],
            },
        ],
    },
    // {
    // startDate: new Date(),
    // readOnly: false,
    // slots: [],
    // title: "Global Schedule",
    // type: SchedulerType.hourly,
    // locations: [
    // {
    // uuid: "not here",
    // name: "name 2",
    // restriction: [0],
    // },
    // {
    // uuid: "2",
    // name: "name 1",
    // restriction: [0, 1, 2, 3, 4],
    // },
    // ],
    // },
];

Readme

Keywords

none

Package Sidebar

Install

npm i @tpsengage/hour-parting-scheduler

Weekly Downloads

49

Version

1.2.33

License

ISC

Unpacked Size

46.5 kB

Total Files

4

Last publish

Collaborators

  • pocorschi
  • constantinbunica