-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Missing support for critical email features #61
Comments
@habovh Hello thank you for reaching out we will investigate adding these parameters |
I'm having this issue as well, I'm unable to pass dynamic data into the template, which I assume is what the UPDATE: Turns out I had to use |
Hi, @sherwinski for visibility |
I have created a PR for this: #95 In case anyone needs it sooner before the PR is merged and released, this is the pnpm patch I used to patch the code locally diff --git a/dist/models/Notification.d.ts b/dist/models/Notification.d.ts
index 7e906c43795695db5cb00b88306b6d10f01976df..fa77fe924969a189f971d270af4e40493ecff056 100644
--- a/dist/models/Notification.d.ts
+++ b/dist/models/Notification.d.ts
@@ -113,6 +113,7 @@ export declare class Notification {
'filters'?: Array<FilterExpression>;
'custom_data'?: object;
'send_after'?: string;
+ 'disable_email_click_tracking'?: boolean;
static readonly discriminator: string | undefined;
static readonly attributeTypeMap: Array<{
name: string;
diff --git a/dist/models/Notification.js b/dist/models/Notification.js
index fe0ca0f4c37cc4b4eb78a1594bfd364bcc0a5455..1926237359b95d26d2999227c950a0ca09c21e55 100644
--- a/dist/models/Notification.js
+++ b/dist/models/Notification.js
@@ -650,6 +650,12 @@ var Notification = (function () {
"baseName": "send_after",
"type": "string",
"format": "date-time"
+ },
+ {
+ "name": "disable_email_click_tracking",
+ "baseName": "disable_email_click_tracking",
+ "type": "boolean",
+ "format": ""
}
];
return Notification; |
Thanks for reporting this issue @habovh (and for the subsequent PR @CHC383)! It looks like these parameters are missing in an upstream project used to autogenerate the code in this SDK. I'm currently working on some improvements to that project (hence the recent pushes to the Unfortunately for that reason I won't be able to merge #95 without overwriting those changes in future releases. Apologies @CHC383 and thanks again for putting that together. |
@sherwinski Understood, I already have the feeling that the SDKs are autogenerated and they need to be fixed in the upstream, I will close the PR and waiting for your improvements, in the meantime there is already a dirty workaround to patch the SDK by the users above. |
What's on your mind?
[Bug]: Missing support for critical email features
Missing support for the following API parameters:
Generic:
custom_data
Mail type specific:
include_unsubscribed
disable_email_click_tracking
Lack of these features makes this SDK unusable for any kind of transactional email setup containing sensitive data such as password reset tokens. Setting these to the notification object results in the SDK stripping them away and eventually not sending them to the API.
Only solution is to resort to using
fetch
or similar tools to fetch data and completely lose type safety.In my opinion this is a high priority issue that should be addressed, but I won't wait for an update nor contribute to the code: if I had the time to do so I would not be looking to use a third-party for my email and notifications needs. I expect paid software SDKs to work, especially for mature companies such as OneSignal. Guess I'm wrong, wasted my time, and I'll be looking elsewhere.
Code of Conduct
The text was updated successfully, but these errors were encountered: