@trycourier/courier 2.8.0 → 3.0.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/lists/types.d.ts +4 -0
- package/lib/profile.d.ts +2 -2
- package/lib/types.d.ts +2 -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.0.0] - 2021-11-02
|
|
9
|
+
|
|
10
|
+
- fixes type definition for `getRecipientSubscriptions`
|
|
11
|
+
|
|
8
12
|
## [v2.8.0] - 2021-10-29
|
|
9
13
|
|
|
10
14
|
- adds GET /messages/{messageId}/output API
|
|
@@ -173,7 +177,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
173
177
|
|
|
174
178
|
## v1.0.1 - 2019-07-12
|
|
175
179
|
|
|
176
|
-
[unreleased]: https://github.com/trycourier/courier-node/compare/
|
|
180
|
+
[unreleased]: https://github.com/trycourier/courier-node/compare/v3.0.0...HEAD
|
|
181
|
+
[v3.0.0]: https://github.com/trycourier/courier-node/compare/v2.8.0...v3.0.0
|
|
177
182
|
[v2.8.0]: https://github.com/trycourier/courier-node/compare/v2.7.0...v2.8.0
|
|
178
183
|
[v2.7.0]: https://github.com/trycourier/courier-node/compare/v2.6.0...v2.7.0
|
|
179
184
|
[v2.6.0]: https://github.com/trycourier/courier-node/compare/v2.4.0...v2.6.0
|
package/lib/lists/types.d.ts
CHANGED
|
@@ -6,6 +6,10 @@ export interface ICourierList {
|
|
|
6
6
|
name: string;
|
|
7
7
|
updated?: number;
|
|
8
8
|
}
|
|
9
|
+
export interface ICourierRecipientSubscriptionsResponse {
|
|
10
|
+
paging: ICourierPaging;
|
|
11
|
+
results: ICourierList[];
|
|
12
|
+
}
|
|
9
13
|
export interface ICourierListPutParams {
|
|
10
14
|
name: string;
|
|
11
15
|
preferences?: {
|
package/lib/profile.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ICourierRecipientSubscriptionsResponse } from "./lists/types";
|
|
2
2
|
import { ICourierClientConfiguration, ICourierProfileDeleteParameters, ICourierProfileGetParameters, ICourierProfileGetResponse, ICourierProfileListsPostParameters, ICourierProfilePostConfig, ICourierProfilePostParameters, ICourierProfilePostResponse, ICourierProfilePutParameters, ICourierProfilePutResponse } from "./types";
|
|
3
3
|
export declare const replaceProfile: (options: ICourierClientConfiguration) => (params: ICourierProfilePutParameters) => Promise<ICourierProfilePutResponse>;
|
|
4
4
|
export declare const mergeProfile: (options: ICourierClientConfiguration) => (params: ICourierProfilePostParameters, config?: ICourierProfilePostConfig | undefined) => Promise<ICourierProfilePostResponse>;
|
|
5
5
|
export declare const getProfile: (options: ICourierClientConfiguration) => (params: ICourierProfileGetParameters) => Promise<ICourierProfileGetResponse>;
|
|
6
6
|
export declare const deleteProfile: (options: ICourierClientConfiguration) => (params: ICourierProfileDeleteParameters) => Promise<void>;
|
|
7
|
-
export declare const getRecipientSubscriptions: (options: ICourierClientConfiguration) => (params: ICourierProfileGetParameters) => Promise<
|
|
7
|
+
export declare const getRecipientSubscriptions: (options: ICourierClientConfiguration) => (params: ICourierProfileGetParameters) => Promise<ICourierRecipientSubscriptionsResponse>;
|
|
8
8
|
export declare const addRecipientToLists: (options: ICourierClientConfiguration) => (params: ICourierProfileListsPostParameters) => Promise<ICourierProfilePostResponse>;
|
|
9
9
|
export declare const removeRecipientFromAllLists: (options: ICourierClientConfiguration) => (params: ICourierProfileGetParameters) => Promise<ICourierProfilePostResponse>;
|
package/lib/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from "axios";
|
|
2
2
|
import { ICourierClientAutomations } from "./automations/types";
|
|
3
|
-
import { ICourierClientLists, ICourierList } from "./lists/types";
|
|
3
|
+
import { ICourierClientLists, ICourierList, ICourierRecipientSubscriptionsResponse } from "./lists/types";
|
|
4
4
|
import { ICourierClientNotifications } from "./notifications/types";
|
|
5
5
|
import { ICourierClientPreferences, IRecipientPreferences } from "./preferences/types";
|
|
6
6
|
export declare type HttpMethodClient = <T>(url: string, body?: object, config?: AxiosRequestConfig) => Promise<{
|
|
@@ -269,7 +269,7 @@ export interface ICourierClient {
|
|
|
269
269
|
getMessages: (params?: ICourierMessagesGetParameters) => Promise<ICourierMessagesGetResponse>;
|
|
270
270
|
getProfile: (params: ICourierProfileGetParameters) => Promise<ICourierProfileGetResponse>;
|
|
271
271
|
deleteProfile: (params: ICourierProfileDeleteParameters) => Promise<void>;
|
|
272
|
-
getRecipientSubscriptions: (params: ICourierProfileGetParameters) => Promise<
|
|
272
|
+
getRecipientSubscriptions: (params: ICourierProfileGetParameters) => Promise<ICourierRecipientSubscriptionsResponse>;
|
|
273
273
|
lists: ICourierClientLists;
|
|
274
274
|
mergeProfile: (params: ICourierProfilePostParameters, config?: ICourierProfilePostConfig) => Promise<ICourierProfilePostResponse>;
|
|
275
275
|
notifications: ICourierClientNotifications;
|