Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trycourier/courier

Package Overview
Dependencies
Maintainers
2
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trycourier/courier - npm Package Compare versions

Comparing version 3.4.0 to 3.5.0

7

CHANGELOG.md

@@ -8,2 +8,6 @@ # Change Log

## [v3.5.0] - 2022-02-10
- adds type for unroutable status
## [v3.4.0] - 2022-01-25

@@ -201,3 +205,4 @@

[unreleased]: https://github.com/trycourier/courier-node/compare/v3.4.0...HEAD
[unreleased]: https://github.com/trycourier/courier-node/compare/v3.5.0...HEAD
[v3.5.0]: https://github.com/trycourier/courier-node/compare/v3.4.0...v3.5.0
[v3.4.0]: https://github.com/trycourier/courier-node/compare/v3.3.0...v3.4.0

@@ -204,0 +209,0 @@ [v3.3.0]: https://github.com/trycourier/courier-node/compare/v3.2.1...v3.3.0

7

lib/types.d.ts

@@ -148,3 +148,3 @@ import { AxiosRequestConfig } from "axios";

}
export declare type MessageStatus = "CLICKED" | "DELIVERED" | "ENQUEUED" | "FILTERED" | "OPENED" | "SENT" | "SIMULATED" | "UNDELIVERABLE" | "UNMAPPED";
export declare type MessageStatus = "CLICKED" | "DELIVERED" | "ENQUEUED" | "FILTERED" | "OPENED" | "SENT" | "SIMULATED" | "UNDELIVERABLE" | "UNMAPPED" | "UNROUTABLE";
export declare type MessageHistoryType = MessageStatus | "DELIVERING" | "FILTERED" | "MAPPED" | "PROFILE_LOADED" | "RENDERED";

@@ -190,2 +190,5 @@ export declare type MessageStatusReason = "BOUNCED" | "FAILED" | "FILTERED" | "NO_CHANNELS" | "NO_PROVIDERS" | "OPT_IN_REQUIRED" | "PROVIDER_ERROR" | "UNPUBLISHED" | "UNSUBSCRIBED";

}
export interface IUnroutableMessageHistory extends IMessageHistory<"UNROUTABLE"> {
reason: MessageStatusReason;
}
export interface IUndeliverableMessageHistory extends IMessageHistory<"UNDELIVERABLE">, Partial<Omit<IRoutedMessageHistory<"UNDELIVERABLE">, "ts" | "type">> {

@@ -215,3 +218,3 @@ reason: MessageStatusReason;

export interface ICourierMessageGetHistoryResponse {
results: Array<IEnqueuedMessageHistory | IMappedMessageHistory | IProfileLoadedMessageHistory | IRenderedMessageHistory | IRoutedMessageHistory<RoutedMessageHistoryTypes> | IDeliveredMessageHistory | IProviderErrorMessageHistory | IUndeliverableMessageHistory>;
results: Array<IEnqueuedMessageHistory | IMappedMessageHistory | IProfileLoadedMessageHistory | IRenderedMessageHistory | IRoutedMessageHistory<RoutedMessageHistoryTypes> | IDeliveredMessageHistory | IProviderErrorMessageHistory | IUndeliverableMessageHistory | IUnroutableMessageHistory>;
}

@@ -218,0 +221,0 @@ export interface IApiMessageOutputItem {

{
"name": "@trycourier/courier",
"version": "3.4.0",
"version": "3.5.0",
"description": "A node.js module for communicating with the Courier REST API.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc