Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: updating notification center encryption not available at Nodejs SDK #5130

Open
2 tasks done
underfisk opened this issue Jan 29, 2024 · 1 comment
Open
2 tasks done
Labels

Comments

@underfisk
Copy link
Contributor

馃摐 Description

Breaking change at environments API from 0.15.0 to 0.22.0. Updating encryption through the API no longer exists or is referenced in the changelog

// Desired status is whatever we want and in my use case, comes from ENV
const desiredStatus = true
const response = await this.novu.environments.updateWidget({ notificationCenterEncryption: desiredStatus })

As you can see the API above is valid at 0.15.0 and the use case is to sync any instance running with the provided config to my custom Nestjs wrapper around Novu (this wrapper syncs configurations that come from env/dynamic with the running tenant and encryption is one of the properties)

馃憻 Reproduction steps

  1. Install the latest version or starting from ``
  2. Observe that environments no longer exposes a way to update a widget or encryption status at all expose

馃憤 Expected behavior

A method that is exposed through the SDK in order to facilitate encryption toggling

馃憥 Actual Behavior with Screenshots

No longer exists, might have been changed and there might be another way of doing but it wasn't listed/referencedIt no

Novu version

0.16.0 or anything after 0.15.0

npm version

8.18.2

node version

18.12.0

馃搩 Provide any additional context for the Bug.

No response

馃憖 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find a similar issue

馃彚 Have you read the Contributing Guidelines?

Are you willing to submit PR?

Yes I am willing to submit a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant