-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Feat add nodejs sdk methods for workflow overrides api #5020
Feat add nodejs sdk methods for workflow overrides api #5020
Conversation
…methods-for-Workflow-Overrides-API
@jainpawan21 @unicodeveloper , please go through the changes once - need your input on this . I am still left with adding test and updating the readme , will continue on that |
…de api,updated the novu.ts file
Let us know where you need help! |
Update : @jainpawan21
PR can be considered for review |
@jainpawan21 I need help actually. I am writing the java, golang and rust sdk. I have finished java sdk but stuck on the delete response for workflow-override handler. Can you please get it added in the documentation because no information is available there. I am attaching a screenshot. Also from nodejs sdk i cannot infer the response body. |
Any update on this PR @jainpawan21 @unicodeveloper ? |
As these methods are part of WorkflowOverrides class, so we don't need to use workflowOverrides again in methods name. Please replace methods name as follows :- |
Take idea from topics methods We need to include response as well in testing |
expect(mockedAxios.post).toHaveBeenCalled(); | ||
expect(mockedAxios.post).toHaveBeenCalledWith('/workflow-overrides', { | ||
workflowId: '8329rufivdsnvs9u334', | ||
tenantId: 'wvnq340i2jfwqv392', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add active and preferecensettings field fileds also in this test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Surely will do that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this change in the latest commit
packages/node/src/lib/workflow-override/workflow-overrride.spec.ts
Outdated
Show resolved
Hide resolved
packages/node/src/lib/workflow-override/workflow-overrride.spec.ts
Outdated
Show resolved
Hide resolved
Will make this change |
packages/node/src/lib/workflow-override/workflow-overrride.spec.ts
Outdated
Show resolved
Hide resolved
overrideID -> workflowId Co-authored-by: Pawan Jain <jainpawan211199@gmail.com>
overrideID -> workflowId Co-authored-by: Pawan Jain <jainpawan211199@gmail.com>
…c.ts overrideID -> workflowId Co-authored-by: Pawan Jain <jainpawan211199@gmail.com>
…c.ts overrideID -> workflowId Co-authored-by: Pawan Jain <jainpawan211199@gmail.com>
…c.ts overrideID -> workflowId Co-authored-by: Pawan Jain <jainpawan211199@gmail.com>
@VishalMCF |
@jainpawan21 made the required changes in the latest commit |
Can this pull request be merged now? @jainpawan21 |
packages/node/README.md
Outdated
await novu.workflowoverrides.getWorkflowOverrides(); | ||
``` | ||
|
||
- #### get all workflow overrides from the 3rd page and with a limit of 20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this one and add params in above methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
packages/node/README.md
Outdated
'overrideId_123', | ||
'tenantId_123', | ||
{ | ||
active: false, | ||
} | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure code formatting is correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
corrected it
packages/node/README.md
Outdated
'workflowId_123', | ||
'tenantId_123' | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure code formatting is correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
corrected it
packages/node/README.md
Outdated
); | ||
``` | ||
|
||
- #### Update workflow override by tenantId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update these headings as per methods name change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
packages/node/src/lib/workflow-override/workflow-override.interface.ts
Outdated
Show resolved
Hide resolved
…ejs-SDK-methods-for-Workflow-Overrides-API
Co-authored-by: Pawan Jain <jainpawan211199@gmail.com>
…rface.ts overrideId -> workflowID Co-authored-by: Pawan Jain <jainpawan211199@gmail.com>
…of github.com:Prashant-dot1/novu into featAdd-Nodejs-SDK-methods-for-Workflow-Overrides-API
@jainpawan21 made the necessary changes to README.md |
@jainpawan21 why did the spell check test failed , do I have to make some changes for this ? |
What change does this PR introduce?
This changes is to add a feature in node packages which is - adding all the methods supporting this API.
Tasks done till now and needs input -
Why was this change needed?
Closes #5005