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

braze-api

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

braze-api - npm Package Compare versions

Comparing version 1.25.0 to 1.26.0

lib/subscription/status/get.d.ts

4

lib/Braze.d.ts

@@ -102,2 +102,6 @@ import * as campaigns from './campaigns';

status: {
get: (body: subscription.status.SubscriptionStatusGetObject) => Promise<{
status: Record<string, "Subscribed" | "Unsubscribed" | "Unknown">;
message: string;
}>;
set: (body: subscription.status.SubscriptionStatusSetObject) => Promise<{

@@ -104,0 +108,0 @@ message: string;

@@ -54,2 +54,3 @@ "use strict";

status: {
get: (body) => subscription.status.get(this.apiUrl, this.apiKey, body),
set: (body) => subscription.status.set(this.apiUrl, this.apiKey, body),

@@ -56,0 +57,0 @@ },

@@ -0,3 +1,4 @@

export * from './get';
export * from './set';
export * from './types';
//# sourceMappingURL=index.d.ts.map

@@ -17,4 +17,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./get"), exports);
__exportStar(require("./set"), exports);
__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map

19

lib/subscription/status/types.d.ts

@@ -6,12 +6,23 @@ /**

*/
export declare type SubscriptionStatusSetObject = SubscriptionStatusWithPhone | SubscriptionStatusWithEmail;
interface SubscriptionStatus {
export declare type SubscriptionStatusSetObject = SubscriptionStatusSetWithPhone | SubscriptionStatusSetWithEmail;
/**
* Request body for get users’ subscription group status.
*
* {@link https://www.braze.com/docs/api/endpoints/subscription_groups/get_list_user_subscription_group_status/#request-parameters}
*/
export declare type SubscriptionStatusGetObject = {
subscription_group_id: string;
external_id?: string | string[];
email?: string | string[];
phone?: string | string[];
};
interface SubscriptionStatusSet {
subscription_group_id: string;
subscription_state: 'unsubscribed' | 'subscribed';
external_id: string[];
}
interface SubscriptionStatusWithPhone extends SubscriptionStatus {
interface SubscriptionStatusSetWithPhone extends SubscriptionStatusSet {
phone: string[];
}
interface SubscriptionStatusWithEmail extends SubscriptionStatus {
interface SubscriptionStatusSetWithEmail extends SubscriptionStatusSet {
email: string[];

@@ -18,0 +29,0 @@ }

{
"name": "braze-api",
"version": "1.25.0",
"version": "1.26.0",
"description": "Track users, send messages, export data, and more with Braze API.",

@@ -5,0 +5,0 @@ "author": "Mark <mark@remarkablemark.org>",

@@ -132,3 +132,3 @@ # braze-api

- [x] /v2/subscription/status/set
- [ ] /subscription/status/get
- [x] /subscription/status/get
- [ ] /subscription/user/status

@@ -135,0 +135,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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