@trycourier/courier 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -1
- package/lib/types.d.ts +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased][unreleased]
|
|
7
7
|
|
|
8
|
+
## [v3.5.0] - 2022-02-10
|
|
9
|
+
|
|
10
|
+
- adds type for unroutable status
|
|
11
|
+
|
|
8
12
|
## [v3.4.0] - 2022-01-25
|
|
9
13
|
|
|
10
14
|
- adds support for the send message object in the request body of a `/send` call
|
|
@@ -197,7 +201,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
197
201
|
|
|
198
202
|
## v1.0.1 - 2019-07-12
|
|
199
203
|
|
|
200
|
-
[unreleased]: https://github.com/trycourier/courier-node/compare/v3.
|
|
204
|
+
[unreleased]: https://github.com/trycourier/courier-node/compare/v3.5.0...HEAD
|
|
205
|
+
[v3.5.0]: https://github.com/trycourier/courier-node/compare/v3.4.0...v3.5.0
|
|
201
206
|
[v3.4.0]: https://github.com/trycourier/courier-node/compare/v3.3.0...v3.4.0
|
|
202
207
|
[v3.3.0]: https://github.com/trycourier/courier-node/compare/v3.2.1...v3.3.0
|
|
203
208
|
[v3.2.1]: https://github.com/trycourier/courier-node/compare/v3.2.0...v3.2.1
|
package/lib/types.d.ts
CHANGED
|
@@ -145,7 +145,7 @@ export interface ICourierMessageGetResponse {
|
|
|
145
145
|
sent?: number;
|
|
146
146
|
status: MessageStatus;
|
|
147
147
|
}
|
|
148
|
-
export declare type MessageStatus = "CLICKED" | "DELIVERED" | "ENQUEUED" | "FILTERED" | "OPENED" | "SENT" | "SIMULATED" | "UNDELIVERABLE" | "UNMAPPED";
|
|
148
|
+
export declare type MessageStatus = "CLICKED" | "DELIVERED" | "ENQUEUED" | "FILTERED" | "OPENED" | "SENT" | "SIMULATED" | "UNDELIVERABLE" | "UNMAPPED" | "UNROUTABLE";
|
|
149
149
|
export declare type MessageHistoryType = MessageStatus | "DELIVERING" | "FILTERED" | "MAPPED" | "PROFILE_LOADED" | "RENDERED";
|
|
150
150
|
export declare type MessageStatusReason = "BOUNCED" | "FAILED" | "FILTERED" | "NO_CHANNELS" | "NO_PROVIDERS" | "OPT_IN_REQUIRED" | "PROVIDER_ERROR" | "UNPUBLISHED" | "UNSUBSCRIBED";
|
|
151
151
|
export declare type MessageStatusReasonCode = "HARD" | "SOFT";
|
|
@@ -186,6 +186,9 @@ export interface IRenderedMessageHistory extends IRoutedMessageHistory<"RENDERED
|
|
|
186
186
|
[key: string]: string;
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
|
+
export interface IUnroutableMessageHistory extends IMessageHistory<"UNROUTABLE"> {
|
|
190
|
+
reason: MessageStatusReason;
|
|
191
|
+
}
|
|
189
192
|
export interface IUndeliverableMessageHistory extends IMessageHistory<"UNDELIVERABLE">, Partial<Omit<IRoutedMessageHistory<"UNDELIVERABLE">, "ts" | "type">> {
|
|
190
193
|
reason: MessageStatusReason;
|
|
191
194
|
reasonCode?: MessageStatusReasonCode;
|
|
@@ -210,7 +213,7 @@ export interface IProviderErrorMessageHistory extends IRoutedMessageHistory<"UND
|
|
|
210
213
|
error_message: string;
|
|
211
214
|
}
|
|
212
215
|
export interface ICourierMessageGetHistoryResponse {
|
|
213
|
-
results: Array<IEnqueuedMessageHistory | IMappedMessageHistory | IProfileLoadedMessageHistory | IRenderedMessageHistory | IRoutedMessageHistory<RoutedMessageHistoryTypes> | IDeliveredMessageHistory | IProviderErrorMessageHistory | IUndeliverableMessageHistory>;
|
|
216
|
+
results: Array<IEnqueuedMessageHistory | IMappedMessageHistory | IProfileLoadedMessageHistory | IRenderedMessageHistory | IRoutedMessageHistory<RoutedMessageHistoryTypes> | IDeliveredMessageHistory | IProviderErrorMessageHistory | IUndeliverableMessageHistory | IUnroutableMessageHistory>;
|
|
214
217
|
}
|
|
215
218
|
export interface IApiMessageOutputItem {
|
|
216
219
|
channel: string;
|