Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@leisurelink/calendar-client

Package Overview
Dependencies
Maintainers
23
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leisurelink/calendar-client

## Ambiguity

  • 3.3.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
23
Created
Source

Calendar-client

Ambiguity

There is more than one calendar-client. There is inventory-calendar-client for inventory-calendar, which has a V1 and a V2 published to NPM under the name calendar-client. The V1 is used by Orange, and V2 is used for IH-APP.

This repo will publish calendar-client as a V3 for the GitHub repo calendar-api

Usage

let calendarClient = require('@leisurelink/calendar-client');
let client = calendarClient(keyId, key, baseUrl);

Methods

Constructing
  • let client = calendarClient(keyId, key, baseUrl);
  • keyId: trusted endpoint key id, ex: "my-api/self"
  • key: trusted endpoint key as a Buffer
  • baseUrl: calendar api base URL, for example the dev URL might be https://portal-dev.leisurelink.com
getCalendarById
  • client.getCalendarById(referenceId, lang).then(result => { ... })
  • Used to GET a Calendar object by its referenceId.
  • referenceId: the identifier of the Calendar. This is often the UnitId.
  • lang: sets the language of the request. This is required. For example, en-US
  • Possible response codes:
    • 200 for a success.
    • 400 if the language is not provided or doesn't match the required pattern.
    • 400 if the referenceId is not a standard shortId type identifier.
    • 404 if the calendarId does not have a corresponding document.
    • 500 for any unexpected errors.
putCalendarById
  • client.putCalendarById(referenceId, lang, calendarObject).then(result => { ... })
  • Used to CREATE or REPLACE a Calendar object.
  • referenceId: the identifier of the Calendar. This is often the UnitId.
  • lang: sets the language of the request. This is required. For example, en-US
  • calendarObject: the calendar settings object to store
  • Possible response codes:
    • 200 for a success.
    • 400 if the language is not provided or doesn't match the required pattern.
    • 400 if the referenceId is not a standard shortId type identifier.
    • 400 if unknown properties are passed in.
    • 400 if the calendarType is not a valid Type (NONE, INVENTORY, CONFIRMATION_METHOD)
    • 400 if the defaultConfirmationMethod is not a valid Type (NONE, AVAILABLE, UNAVAILABLE, CALL_AND_REQUEST)
    • 500 for any unexpected errors.
patchCalendarById
  • client.patchCalendarById(referenceId, lang, calendarObject).then(result => { ... })
  • Used to UPDATE a Calendar object.
  • referenceId: the identifier of the Calendar. This is often the UnitId.
  • lang: sets the language of the request. This is required. For example, en-US
  • calendarObject: the calendar settings object to store
  • Possible response codes:
    • 200 for a success
    • 400 if the language is not provided or doesn't match the required pattern
    • 400 if the referenceId is not a standard shortId type id.
    • 400 if unknown properties are passed in.
    • 400 if the calendarType is not a valid Type (NONE, INVENTORY, CONFIRMATION_METHOD)
    • 400 if the defaultConfirmationMethod is not a valid Type (NONE, AVAILABLE, UNAVAILABLE, CALL_AND_REQUEST)
    • 500 for any unexpected errors.
deleteCalendarById
  • client.deleteCalendarById(referenceId, lang).then(result => { ... })
  • Used to DELETE a Calendar object.
  • referenceId: the identifier of the Calendar. This is often the UnitId.
  • lang: sets the language of the request. This is required. For example, en-US
  • Possible response codes:
    • 204 for a success.
    • 400 if the language is not provided or doesn't match the required pattern
    • 400 if the referenceId is not a standard shortId type id.
    • 500 for any unexpected errors.

FAQs

Package last updated on 20 Apr 2016

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