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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(newsletter, contact) strengthen types and remove generics #2447

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

hanmindev
Copy link
Contributor

@hanmindev hanmindev commented May 23, 2023

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Fixes: N/A
Touches #1212

What is the new behavior?

Does this PR introduce a breaking change?

[x] Yes
[ ] No

Generics removed from:
contact

  • DaffContactServiceInterface
  • DaffContactSubmit
  • DaffContactRetry
  • DaffContactActions

newsletter

  • DaffNewsletterServiceInterface
  • DaffNewsletterSubscribe
  • DaffNewsletterRetry
  • DaffNewsletterActions
  • DaffNewsletterEffects

DaffNewsletterUnion removed. Replaced with more appropriate interfaces for each case

Other information

@hanmindev hanmindev requested a review from a team as a code owner May 23, 2023 18:02
@hanmindev hanmindev requested review from a team as code owners May 24, 2023 23:11
BREAKING CHANGE: `DaffContactState` now uses `DaffOperationState`. Generics have been removed and the models have been narrowed.
BREAKING CHANGE: `DaffNewsletterState` now uses `DaffOperationState`. Generics have been removed and the models have been narrowed.
@damienwebdev
Copy link
Member

@griest024 needs rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: contact @daffodil/contact package: newsletter @daffodil/newsletter
Projects
None yet
3 participants