npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dimescheduler/sdk

v0.8.0

Published

The Dime.Scheduler SDK

Readme

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/sdk

Using yarn:

yarn add @dimescheduler/sdk

Using bun:

bun i @dimescheduler/sdk

Using pnpm:

pnpm add @dimescheduler/sdk

Prereleases

Alpha / beta / release-candidate builds (e.g. 0.7.1-beta.0) ship to the next dist-tag. To opt into them:

npm install @dimescheduler/sdk@next

Example

import DimeSchedulerClient from "@dimescheduler/sdk";
import type { Category } from "@dimescheduler/sdk/models";

const client = new DimeSchedulerClient({ apiKey: "MY_API_KEY" });

const category: Category = {
    name: "My category",
    color: "#" + ((Math.random() * 0xffffff) << 0).toString(16),
};

const { data, error, response } = await client.categories.create(category);

Every entity hangs off a typed domain accessor on the client — client.categories, client.appointments, client.resources, etc. CRUD-shaped entities expose create, update, delete, and getAll; specialized endpoints (geocoding, optimization, recommendation, …) get their own purpose-built methods. Everything is typed against the Dime.Scheduler OpenAPI specification, so request bodies, query parameters, and response shapes autocomplete in your editor.

Usage

API key

Create an API key and pass it to the constructor:

import DimeSchedulerClient from "@dimescheduler/sdk";
const client = new DimeSchedulerClient({ apiKey: "MY_API_KEY" });

Environment

The default environment is production. Use the Environment enum to point at the sandbox or test environments:

import DimeSchedulerClient, { Environment } from "@dimescheduler/sdk";
const client = new DimeSchedulerClient({ apiKey, environment: Environment.Sandbox });

Models

Import body and response types from the @dimescheduler/sdk/models submodule. Write entities (e.g. Category, Resource, Appointment) match POST/PUT bodies; read DTOs (e.g. CategoryDto, ResourceDto) match GET responses.

import type { Category, CategoryDto } from "@dimescheduler/sdk/models";

For the full type surface, every schema is also reachable via the generated components["schemas"] map exported from the package root:

import type { components } from "@dimescheduler/sdk";
type StoredProcedureData = components["schemas"]["Models.StoredProcedureData"];

Calling the API

CRUD entities accept either a single object or an array — both shapes are typed:

await client.categories.create(category);
await client.categories.create([category, anotherCategory]);
await client.categories.update(category);
await client.categories.delete(category);
const { data } = await client.categories.getAll();

Endpoints with required parameters expose them directly:

await client.appointments.get(startDate, endDate, ["RES1", "RES2"]);
await client.notifications.get(1, 50, { sort: "createdAt:desc" });
await client.geocoding.geocodeText("221B Baker Street", "GB");
await client.optimization.fieldService(request);

Every method returns { data, error, response }. Inspect response.ok for the HTTP status, data for the typed body on success, and error for the typed error body on failure.

Middleware

DimeSchedulerClient is built on openapi-fetch, so any extra option (custom fetch, querySerializer, middleware) can be passed through:

const client = new DimeSchedulerClient({
    apiKey,
    fetch: customFetch,
});
client.use({
    onRequest: ({ request }) => {
        console.log(request.method, request.url);
    },
});

Regenerating types

The OpenAPI spec lives at openapi.json in this repo. After updating it, run:

yarn codegen

This rewrites src/generated/api.d.ts. The build runs codegen automatically via prebuild.