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

@deliverart/sdk-js-email-notification-configuration

v2.9.3

Published

Deliverart JavaScript SDK for Email Notification Configuration

Downloads

1,403

Readme

@deliverart/sdk-js-email-notification-configuration

Email notification configuration management package for the DeliverArt JavaScript SDK.

Installation

npm install @deliverart/sdk-js-email-notification-configuration @deliverart/sdk-js-core

Exported Types

Core Types

  • EmailNotificationConfiguration - Email notification configuration with all details
  • EmailNotificationConfigurationListItem - Email notification configuration list item
  • EmailNotificationConfigurationConfig - Configuration object containing notification settings
  • WritableEmailNotificationConfiguration - Writable email notification configuration
  • WritableCreateEmailNotificationConfiguration - Writable create email notification configuration

Template Keys

Available email template keys:

  • delivery_started - Notification when delivery starts
  • delivery_taken_over - Notification when delivery is taken over
  • order_created - Notification when order is created
  • order_delivered - Notification when order is delivered
  • order_in_preparation - Notification when order enters preparation
  • order_preparation_done - Notification when order preparation is complete

Order Sources

Configuration supports the following order sources:

  • application - Orders from mobile/web application
  • ecommerce - Orders from ecommerce platform
  • partner - Orders from partner integrations

IRI Types

  • EmailNotificationConfigurationIri - Email notification configuration IRI (/email_notification_configurations/:id)

Configuration Structure

Each email notification configuration contains a config object with template-specific settings. The configuration structure is designed to be extensible for future template-specific fields.

Config Object

{
  sourcesEnabled: string[] // Array of enabled order sources
}

Fields:

  • sourcesEnabled?: string[] - Array of order sources for which the notification should be sent

Available Requests

CreateEmailNotificationConfiguration

import { CreateEmailNotificationConfiguration } from '@deliverart/sdk-js-email-notification-configuration';

const config = await sdk.call(new CreateEmailNotificationConfiguration({
  pointOfSale: '/point_of_sales/123',
  templateKey: 'order_preparation_done',
  isActive: true,
  config: {
    sourcesEnabled: ['application']
  }
}));

Input Parameters:

  • pointOfSale: string (required) - Point of sale IRI
  • templateKey: string (required) - Email template key
  • isActive: boolean (required) - Enable/disable notification
  • config: object (required) - Configuration object with sourcesEnabled

GetEmailNotificationConfigurations

import { GetEmailNotificationConfigurations } from '@deliverart/sdk-js-email-notification-configuration';

const configs = await sdk.call(new GetEmailNotificationConfigurations({
  query: {
    templateKey: 'order_created',
    page: 1
  }
}));

Query Parameters:

  • id?: string | string[] - Filter by configuration ID
  • templateKey?: string | string[] - Filter by template key
  • order[createdAt]?: string - Sort by creation date
  • order[updatedAt]?: string - Sort by update date
  • page?: number - Page number
  • createdAtFrom?: string - Filter by creation date (from)
  • createdAtTo?: string - Filter by creation date (to)
  • updatedAtFrom?: string - Filter by update date (from)
  • updatedAtTo?: string - Filter by update date (to)

GetEmailNotificationConfigurationDetails

import { GetEmailNotificationConfigurationDetails } from '@deliverart/sdk-js-email-notification-configuration';

const config = await sdk.call(new GetEmailNotificationConfigurationDetails('config-123'));

UpdateEmailNotificationConfiguration

import { UpdateEmailNotificationConfiguration } from '@deliverart/sdk-js-email-notification-configuration';

const updated = await sdk.call(new UpdateEmailNotificationConfiguration('config-123', {
  templateKey: 'order_preparation_done',
  isActive: false,
  config: {
    sourcesEnabled: ['application', 'ecommerce']
  }
}));

Input Parameters:

  • templateKey: string (required) - Email template key
  • isActive: boolean (required) - Enable/disable notification
  • config: object (required) - Configuration object
    • sourcesEnabled: string[] - Array of enabled order sources

DeleteEmailNotificationConfiguration

import { DeleteEmailNotificationConfiguration } from '@deliverart/sdk-js-email-notification-configuration';

await sdk.call(new DeleteEmailNotificationConfiguration('config-123'));

License

This package is part of the DeliverArt JavaScript SDK.