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(contacts): add new contact types: signee & assisting #38

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

Conversation

LuukBlankenstijn
Copy link
Contributor

  • add two new functions
  • make email optional for contacts with the new functions

Description

This pull request adds two new company contact types. These contact types are special in the sense that for contacts of this type, an email-adress is not required. This pull-request adds a check to the validation of contact parameters that allows email to be empty if the type is one of the aforementioned types.

Types of changes

  • New feature

- add two new functions
- make email optional for contacts with the new functions
@Yoronex Yoronex changed the base branch from master to develop February 13, 2025 10:01
@Yoronex Yoronex changed the title feature/add contact types feat(contacts): add new contact types: signee & assisting Feb 13, 2025
@Yoronex Yoronex self-requested a review February 14, 2025 14:51
Copy link
Member

@Yoronex Yoronex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned in the client-review, "Old contacts" should also have their email and firstName set to optional.

src/controllers/ContactController.ts Outdated Show resolved Hide resolved
src/services/ContactService.ts Show resolved Hide resolved
- make email optional for contacts of type old
- make firstname optional
@LuukBlankenstijn LuukBlankenstijn force-pushed the feature/new-company-contact-types branch from cdd279d to 26fd2e3 Compare February 14, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants