Socket
Socket
Sign inDemoInstall

availability-scheduler

Package Overview
Dependencies
Maintainers
8
Versions
762
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

availability-scheduler

Availability Scheduler - React Component


Version published
Weekly downloads
772
increased by6918.18%
Maintainers
8
Weekly downloads
 
Created
Source

availability-scheduler

Wix availability representation
{
  "periods": [
    {
      "openDay": "SUNDAY", // uppercase day
      "openTime": "00:20", // time HH:mm
      "closeDay": "SUNDAY",
      "closeTime": "00:30"
    }
  ],
  "specialHourPeriods": [
    {
      "startDate": "2020-09-09T08:48:04.337Z", // date object
      "endDate": "2020-10-09T08:48:04.337Z", // date object
      "isClosed": true,
      "comment": "foo"
    }
  ]
}
Restaurants availability representation
{
  "weekly": [
    {
      "minuteOfWeek": 20, // week minutes are between 0 - 10080
      "durationMins": 10 // duration in minutes
    }
  ],
  "exceptions": [
    {
      "available": false,
      "comment": {
        "en_US": "foo"
      },
      "start": {
        "year": 2020,
        "month": 9,
        "day": 9,
        "hour": 9,
        "minute": 48
      },
      "end": {
        "year": 2020,
        "month": 10,
        "day": 9,
        "hour": 9,
        "minute": 48
      }
    }
  ]
}

A React component for editing availability time schedules

Installation

$ npm i availability-scheduler

Instantiation

import { AvailabilityEditor } from 'availability-scheduler';

<AvailabilityEditor
  timezone='Europe/London'
  availability={availability}
  onAccept={availability => console.log('accepted', availability)}
  language="en"
  businessLocale="en_US"
/>

FAQs

Package last updated on 11 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc