braze-community / braze-node Goto Github PK
View Code? Open in Web Editor NEW๐ซ Node.js library for Braze API.
Home Page: https://braze-community.github.io/braze-node
License: MIT License
๐ซ Node.js library for Braze API.
Home Page: https://braze-community.github.io/braze-node
License: MIT License
Hey, thanks for your work on this library - it's been super helpful!
I noticed that both apple_push
and android_push
are typed as objects in the MessageObject
interface.
It would be cool if we can get full type support for both of these objects as demonstrated here:
I'm happy to contribute and raise a PR for this but just wanted to raise an issue first in case it's on your radar or working on it
PurchaseObject.app_id should be optional
https://www.braze.com/docs/api/objects_filters/purchase_object/
PurchaseObject.app_id is required, therefore not letting send track user purchase without app_id
interface PurchaseObject {
external_id?: string;
user_alias?: UserAlias;
braze_id?: string;
app_id: string;
product_id: string;
currency: string;
price: number;
quantity?: number;
time: string;
properties?: Properties;
_update_existing_only?: boolean;
}
Can just change app_id
to optional:
interface PurchaseObject {
external_id?: string;
user_alias?: UserAlias;
braze_id?: string;
app_id?: string;
product_id: string;
currency: string;
price: number;
quantity?: number;
time: string;
properties?: Properties;
_update_existing_only?: boolean;
}
trackUserObject, PurchaseObject, app_id
The typing on this line states errors
is an object (or undefined).
https://github.com/remarkablemark/braze-api/blob/a2788803c503bd88010f3020adcf0b67dd61c587/src/users/track.ts#L34
It seems from my testing to in fact be an array of objects. This matches up with the API Documentation
https://www.braze.com/docs/api/endpoints/user_data/post_user_track/#successful-message-with-non-fatal-errors
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.