@trycourier/courier
Advanced tools
Comparing version 5.5.0 to 5.6.0
@@ -6,5 +6,9 @@ import { ICourierClientConfiguration } from "../types"; | ||
get: (audienceId: string) => Promise<AudienceTypes.IAudience>; | ||
listAudiences: () => Promise<AudienceTypes.IAudienceListResponse>; | ||
listMembers: (audienceId: string) => Promise<AudienceTypes.IAudienceMemberListResponse>; | ||
listAudiences: (params?: { | ||
cursor: string; | ||
} | undefined) => Promise<AudienceTypes.IAudienceListResponse>; | ||
listMembers: (audienceId: string, params?: { | ||
cursor: string; | ||
} | undefined) => Promise<AudienceTypes.IAudienceMemberListResponse>; | ||
put: (audience: Omit<AudienceTypes.IAudience, "created_at" | "updated_at">) => Promise<AudienceTypes.IAudience>; | ||
}; |
@@ -64,7 +64,7 @@ "use strict"; | ||
var listAudiences = function (options) { | ||
return function () { return __awaiter(void 0, void 0, void 0, function () { | ||
return function (params) { return __awaiter(void 0, void 0, void 0, function () { | ||
var response; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, options.httpClient.get("/audiences")]; | ||
case 0: return [4 /*yield*/, options.httpClient.get("/audiences", params)]; | ||
case 1: | ||
@@ -78,7 +78,7 @@ response = _a.sent(); | ||
var listMembers = function (options) { | ||
return function (audienceId) { return __awaiter(void 0, void 0, void 0, function () { | ||
return function (audienceId, params) { return __awaiter(void 0, void 0, void 0, function () { | ||
var response; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, options.httpClient.get("/audiences/" + audienceId + "/members")]; | ||
case 0: return [4 /*yield*/, options.httpClient.get("/audiences/" + audienceId + "/members", params)]; | ||
case 1: | ||
@@ -85,0 +85,0 @@ response = _a.sent(); |
@@ -57,6 +57,10 @@ export declare type ComparisonOperator = "EQ" | "GT" | "GTE" | "INCLUDES" | "LT" | "LTE" | "NEQ" | "OMIT"; | ||
get: (id: string) => Promise<IAudience>; | ||
listAudiences: () => Promise<IAudienceListResponse>; | ||
listMembers: (id: string) => Promise<IAudienceMemberListResponse>; | ||
listAudiences: (params?: { | ||
cursor: string; | ||
}) => Promise<IAudienceListResponse>; | ||
listMembers: (id: string, params?: { | ||
cursor: string; | ||
}) => Promise<IAudienceMemberListResponse>; | ||
put: (audience: Omit<IAudience, "created_at" | "updated_at">) => Promise<IAudience>; | ||
} | ||
export {}; |
{ | ||
"name": "@trycourier/courier", | ||
"version": "5.5.0", | ||
"version": "5.6.0", | ||
"description": "A node.js module for communicating with the Courier REST API.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -751,2 +751,3 @@ [![Courier: Your Complete Communication Stack](https://marketing-assets-public.s3.us-west-1.amazonaws.com/github_nodejs.png)](https://courier.com) | ||
audienceId | ||
cursor: "<CURSOR>", // optional | ||
); | ||
@@ -753,0 +754,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
170706
3416
867