Comparing version 1.7.0 to 1.8.0
import * as campaigns from './campaigns'; | ||
import * as canvas from './canvas'; | ||
import * as messages from './messages'; | ||
import * as sends from './sends'; | ||
import * as transactional from './transactional'; | ||
@@ -42,2 +43,10 @@ import * as users from './users'; | ||
}; | ||
sends: { | ||
id: { | ||
create: (body: sends.id.SendsIdCreateObject) => Promise<{ | ||
message: string; | ||
send_id: string; | ||
}>; | ||
}; | ||
}; | ||
transactional: { | ||
@@ -48,6 +57,3 @@ v1: { | ||
dispatch_id: string; | ||
status: "aborted" | "sent" | "processed" | "delivered" | "bounced"; /** | ||
* @param apiUrl - Braze REST endpoint. | ||
* @param apiKey - Braze API key. | ||
*/ | ||
status: "aborted" | "sent" | "processed" | "delivered" | "bounced"; | ||
metadata: { | ||
@@ -54,0 +60,0 @@ external_send_id: string; |
@@ -7,2 +7,3 @@ "use strict"; | ||
const messages = require("./messages"); | ||
const sends = require("./sends"); | ||
const transactional = require("./transactional"); | ||
@@ -29,2 +30,7 @@ const users = require("./users"); | ||
}; | ||
this.sends = { | ||
id: { | ||
create: (body) => sends.id.create(this.apiUrl, this.apiKey, body), | ||
}, | ||
}; | ||
this.transactional = { | ||
@@ -31,0 +37,0 @@ v1: { |
@@ -6,2 +6,3 @@ export * from './Braze'; | ||
export * from './messages/types'; | ||
export * from './sends/id/types'; | ||
export * from './transactional/v1/campaigns/types'; | ||
@@ -8,0 +9,0 @@ export * from './users/alias/types'; |
@@ -22,2 +22,3 @@ "use strict"; | ||
__exportStar(require("./messages/types"), exports); | ||
__exportStar(require("./sends/id/types"), exports); | ||
__exportStar(require("./transactional/v1/campaigns/types"), exports); | ||
@@ -24,0 +25,0 @@ __exportStar(require("./users/alias/types"), exports); |
{ | ||
"name": "braze-api", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "Track users, send messages, export data, and more with Braze API.", | ||
@@ -5,0 +5,0 @@ "author": "Mark <mark@remarkablemark.org>", |
@@ -112,3 +112,3 @@ # braze-api | ||
- [x] /messages/send | ||
- [ ] /sends/id/create | ||
- [x] /sends/id/create | ||
- [x] /transactional/v1/campaigns/{{CAMPAIGN_ID}}/send | ||
@@ -115,0 +115,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
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
76636
139
1187