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

@trycourier/courier

Package Overview
Dependencies
Maintainers
3
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 5.5.0 to 5.6.0

8

lib/audiences/index.d.ts

@@ -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 @@

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