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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@verisure-italy/alis-types

v1.7.2

Published

Types for ALIS service

Readme

ALIS Types

TypeScript & Zod schemas for ALIS service domain entities: leads, channels, blacklist, enrichment settings and related enums.

Features

  • ✅ Lead domain model with nested transmission & blacklist status
  • ✅ Discriminated union for closed day details
  • ✅ Optional enrichment data structure
  • ✅ Writable variants for create/update operations
  • ✅ Reuse of shared timestamp & zip code primitives

Installation

pnpm add @verisure-italy/alis-types

Enums

import { blacklistScopeSchema, channelTypeSchema, sourceTypeSchema, leadProvenanceSchema } from '@verisure-italy/alis-types'
  • Blacklist Scope: source | supplier | channel | phone_number | zip_code | vlms_ip | ip
  • Channel Type: push | pull
  • Source Type: empty | push | pull
  • Lead Provenance: funnel | c2c | api

Core Schemas

Blacklist / WritableBlacklist

import { blacklistSchema, writableBlacklistSchema } from '@verisure-italy/alis-types'

Writable variant omits id & timestamps.

Channel / WritableChannel

import { channelSchema, writableChannelSchema } from '@verisure-italy/alis-types'

Includes type (enum) plus audit fields.

EnrichmentSettings / WritableEnrichmentSettings

import { enrichmentSettingsSchema, writableEnrichmentSettingsSchema } from '@verisure-italy/alis-types'

Stores external enrichment endpoints.

Lead / WritableLead

import { leadSchema, writableLeadSchema } from '@verisure-italy/alis-types'

Lead contains provenance, optional zip code, arbitrary data payload.

LeadDetails

Extended lead with nested metadata:

  • supplier, channel UUID references
  • pipelineCompletedAt timestamp
  • blacklist status block
  • transmission state (delay, transmitted, scheduling)
  • timeRecall moment
  • closedDay discriminated union by isClosed
  • enrichmentData optional
  • _embedded resolved related objects

Closed day union pattern:

if (leadDetails.closedDay.isClosed) {
  // Access leadDetails.closedDay.detail.openingTime
}

Property / WritableProperty

Configuration for source-required properties.

import { propertySchema, writablePropertySchema } from '@verisure-italy/alis-types'

property must match /^[A-Za-z_]+$/.

EnrichmentData / OverbookingData

Optional enrichment wrapper containing overbooking allocation.

import { enrichmentDataSchema } from '@verisure-italy/alis-types'

Defaults to null.

Usage Examples

Parse a lead:

const parsed = leadSchema.safeParse(payload)
if (!parsed.success) {
  // handle validation errors
} else {
  const lead = parsed.data
}

Check closed day:

if (leadDetails.closedDay.isClosed) {
  console.log(leadDetails.closedDay.detail.nextWorkingDay)
}

Writable pattern for creation:

const newLeadInput = writableLeadSchema.parse(req.body)

Related Packages

  • @verisure-italy/shared-types (timestamp, zip code, user agent info)
  • @verisure-italy/overbooking-types (allocation types inside enrichment)

License

Internal Verisure Italy package