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

wiil-core-js

v0.0.87

Published

Wiil Platform JavaScript Data Model Definitions. Core schemas for the wiil platform, providing TypeScript types and validation schemas using Zod.

Readme

Wiil Core JS

Public schema definitions for WIIL Platform REST API resources and SDKs.

This package exposes Zod schemas, inferred TypeScript types, and request utility models used by WIIL services and generated client SDKs. The source of truth lives under src/core; the public API examples and resource guides live under documentation.

Package

  • Package name: wiil-core-js
  • Runtime format: CommonJS
  • Validation library: zod
  • Main entrypoint: dist/index.js
  • Type declarations: dist/index.d.ts

What This Package Contains

Core Schemas

src/core is the central schema surface.

| Area | Purpose | | --- | --- | | account | Organizations, projects, and supported business verticals | | assistant-setups | Assistant setup definitions | | business-mgt | Business catalog, customer, order, booking, reservation, and pricing resources | | conversation | Conversation configs, messages, translation, outbound calls, email, SMS, and templates | | service-configuration | Agent, instruction, deployment, channel, voice, telephony, knowledge, and dynamic setup schemas | | type-definitions | Shared enums, dynamic field definitions, and reusable type primitives | | validators | Shared validation helpers | | base.schema.ts | Base model, address, phone number, and language code schemas |

The root package exports src/core and src/request.

import {
  BusinessLocationSchema,
  CreateCustomerGroupSchema,
  DeploymentConfigurationSchema,
} from "wiil-core-js";

Business Management Domains

The business-mgt module exports shared business resources and domain-specific catalog models.

| Domain | Examples | | --- | --- | | Shared business resources | Business locations, tax rules, discount rules, orders, pricing rules, booking primitives | | Customer management | Customers, customer groups, shipping addresses | | Service management | Service categories, service configs, providers, appointments, slot queries, pricing rules | | Reservation management | Resource catalogs, floor plans, sections, table/room/rental reservations, assignments, settings, slot queries | | Menu management | Menu categories, menu items, variants, modifiers, menu sets, menu pricing rules, menu orders | | Product management | Product categories, products, variants, axes, product sets, pricing rules, product orders | | Property management | Property catalog resources |

Documentation

The documentation folder contains the public REST and SDK-facing resource guides. Request and response examples in these files are represented as JSON, not TypeScript implementation snippets.

| Documentation Area | Files | | --- | --- | | Catalog overview | documentation/catalog/*.md | | Business locations | documentation/catalog/business-location.md | | Customer management | documentation/catalog/customer-management.md | | Menu ordering | documentation/catalog/menu-order-management/*.md | | Product ordering | documentation/catalog/product-order-management/*.md | | Reservation management | documentation/catalog/reservation-management/*.md | | Service appointments | documentation/catalog/service-appointment-management/*.md | | Service configuration | documentation/service-configuration/*.md | | Conversation and communication | documentation/service-conversation.md, documentation/communication-request.md, documentation/translation-*.md | | Shared pricing resources | documentation/tax-rule.md, documentation/discount-rule.md |

Runtime JSON Payloads

API payloads are plain JSON. The schemas in this package validate those payloads and provide SDK type inference.

{
  "name": "Downtown Branch",
  "code": "DTWN",
  "status": "ACTIVE",
  "isPrimary": true,
  "timezone": "America/New_York",
  "businessHours": {
    "1": {
      "isOpen": true,
      "startTime": "09:00",
      "endTime": "17:00"
    }
  },
  "phoneNumber": "+15551234567",
  "email": "[email protected]",
  "coordinates": {
    "latitude": 39.7817,
    "longitude": -89.6501
  }
}

TypeScript Consumers

Consumers can parse, validate, and infer types from the exported schemas.

import { BusinessLocationSchema, type BusinessLocation } from "wiil-core-js";

const result = BusinessLocationSchema.safeParse({
  id: "loc_downtown",
  name: "Downtown Branch",
  status: "ACTIVE",
  isPrimary: true,
  businessHours: {
    "1": {
      isOpen: true,
      startTime: "09:00",
      endTime: "17:00",
    },
  },
});

if (result.success) {
  const location: BusinessLocation = result.data;
}

Schema Conventions

  • Complete resource schemas generally extend BaseModelSchema, which provides id, createdAt, and updatedAt.
  • Create schemas omit system-managed fields.
  • Update schemas are partial create schemas with a required id.
  • Public documentation examples use JSON request and response payloads.
  • Type definitions should be read from the source schemas rather than assumed.

Development

Install dependencies:

npm install

Build the package:

npm run build

Generate API reference documentation:

npm run docs

There is no application server required for this package. It is a schema and type-definition library.

Repository Map

src/
  index.ts                  Package entrypoint
  core/                     Public schema definitions
  request/                  Request and pagination utility models
documentation/              Public JSON examples and resource guides
docs/                       Generated TypeDoc output