0.5.0 โ€ข Published 14 days ago

dimescheduler v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
14 days ago

Supercharge your business by powering up Microsoft Dynamics 365 Business Central with a centralized resource and project planning solution ๐Ÿ“…. Dime.Scheduler, with its powerful features and flexible design, has a proven track record in constious industries and is trusted by dozens of resellers and thousands of people all over the world ๐Ÿš€.

Check out the ๐Ÿ“š docs ยป for more info.

Installation

Use whichever package manager you prefer:

Using npm:

npm install dimescheduler

Using yarn:

yarn add dimescheduler

Using bun:

bun i dimescheduler

Using pnpm:

pnpm add dimescheduler

Example

The sample below shows how to insert or update a category, which is a visual indicator that is used to render the background colors of appointments on the planning board. All you need to do is:

  • Import the Dime.Scheduler client class
  • Import and instantiate the model classes
  • Instantiate the client class with the API key, and optionally, the environment
  • Invoke the import method to enter this object into Dime.Scheduler
import DimeSchedulerClient from 'dimescheduler';
import { Category } from "dimescheduler/models";

const category = new Category();
category.color = '#' + (Math.random() * 0xFFFFFF << 0).toString(16);
category.name = "My category";

const dimeSchedulerClient = new DimeSchedulerClient(apiKey);
const response = await dimeSchedulerClient.import(category);

Usage

Accessing the library

Once the package is installed, you can import the library using import or require approach:

Import:

import DimeSchedulerClient from 'dimescheduler';

Require:

const dimescheduler = require('dimescheduler');

API key

Create an API key in Dime.Scheduler and store it somewhere safely.

Once you have a key, you can instantiate the DimeSchedulerClient class:

const client = new DimeSchedulerClient("My API KEY");

Choose environment

By default, the production environment is used. To use the SDK for the sandbox, you can import the Environment enum:

import DimeSchedulerClient, { Environment } from 'dimescheduler';
const client = new DimeSchedulerClient("My API KEY", Environment.Sandbox);

Models

The models are available in the dimescheduler/models submodule:

Import:

import { Category } from "dimescheduler/models";
const category = new Category();

Require:

const models = require('dimescheduler/models');
const category = new models.Category();

For the complete list of supported models, check out the API docs.

Using the API

For most operations, the import method in the DimeSchedulerClient will suffice. All models in the dimescheduler/models submodule are supported.

To add or update an entry, simply make a call like this:

const category = new Category();
category.color = '#' + (Math.random() * 0xFFFFFF << 0).toString(16);
category.name = "My category";

const response = await dimeSchedulerClient.import(category);

To remove an entry, specify the append argument, which is true by default:

const category = new Category();
category.color = '#' + (Math.random() * 0xFFFFFF << 0).toString(16);
category.name = "My category";

const response = await dimeSchedulerClient.import(category, false);
0.5.0

14 days ago

0.4.4

15 days ago

0.4.3

15 days ago

0.4.2

15 days ago

0.3.8

15 days ago

0.3.7

15 days ago

0.4.0

15 days ago

0.3.6

17 days ago

0.3.5

17 days ago

0.3.0

18 days ago

0.3.2

18 days ago

0.3.1

18 days ago

0.3.4

18 days ago

0.3.3

18 days ago

0.2.0

21 days ago

0.0.1-alpha.34

22 days ago

0.0.1-alpha.35

21 days ago

0.1.0

21 days ago

0.1.1

21 days ago

0.0.1-alpha.25

22 days ago

0.0.1-alpha.24

22 days ago

0.0.1-alpha.27

22 days ago

0.0.1-alpha.26

22 days ago

0.0.1-alpha.29

22 days ago

0.0.1-alpha.28

22 days ago

0.0.1-alpha.33

22 days ago

0.0.1-alpha.30

22 days ago

0.0.1-alpha.32

22 days ago

0.0.1-alpha.31

22 days ago

0.0.1-alpha.23

23 days ago

0.0.1-alpha.22

23 days ago

0.0.1-alpha.21

23 days ago

0.0.1-alpha.20

23 days ago

0.0.1-alpha.19

23 days ago

0.0.1-alpha.16

2 years ago

0.0.1-alpha.17

2 years ago

0.0.1-alpha.15

2 years ago

0.0.1-alpha.13

2 years ago

0.0.1-alpha.11

2 years ago

0.0.1-alpha.10

2 years ago

0.0.1-alpha.9

2 years ago

0.0.1-alpha.8

2 years ago

0.0.1-alpha.7

2 years ago

0.0.1-alpha.6

2 years ago

0.0.1-alpha.5

2 years ago

0.0.1-alpha.4

2 years ago

0.0.1-alpha.3

2 years ago

0.0.1-alpha.2

2 years ago

0.0.1-alpha.1

2 years ago