-
Notifications
You must be signed in to change notification settings - Fork 4k
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(api-service): add create subscriber functionality with validation #7658
feat(api-service): add create subscriber functionality with validation #7658
Conversation
8259103
to
b41bf7b
Compare
…g, improve documentation
…nd error handling
84aad68
to
56271bf
Compare
@@ -0,0 +1,91 @@ | |||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; |
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.
👏 Nice and tidy.
apps/api/src/app/subscribers-v2/usecases/create-subscriber/create-subscriber.usecase.ts
Outdated
Show resolved
Hide resolved
apps/api/src/app/subscribers-v2/usecases/create-subscriber/create-subscriber.usecase.ts
Outdated
Show resolved
Hide resolved
@@ -27,7 +27,7 @@ describe('Update Subscribers global preferences - /subscribers/:subscriberId/pre | |||
}; | |||
|
|||
try { | |||
const firstResponse = await novuClient.subscribers.preferences.updateGlobal( |
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.
question: why do we have different data structure patterns?
above we have listLegacy and retrieveByLevelLegacy with suffix legacy but here we have nested object of legacy.
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.
@BiswaViraj ☝️
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.
I am not sure about that, it was already present before, after rebase the tests were failing so i just updated the e2e tests to use the available methods
What changed? Why was the change needed?
create subscriber endpoint
E2E will be in a different PR
Screenshots
Expand for optional sections
Related enterprise PR
Special notes for your reviewer