Skip to content

Commit

Permalink
feat: add business.emailDomain and business. emailDomainMatchingEnabl…
Browse files Browse the repository at this point in the history
…ed (#565)

* Add email domain matching props to `Business`

* Nullable email domain

* Add optional `companyEmailDomain` to `User` type
  • Loading branch information
lounjukk authored Jan 20, 2025
1 parent a80b0ed commit c497b43
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/BusinessService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,14 @@ export type Business = {
* True if the business is a reseller.
*/
reseller: boolean;
/**
* The email domain to do domain matching against.
*/
emailDomain?: string | null;
/**
* If set to true, users can be matched by domain to suggest joining the business.
*/
emailDomainMatchingEnabled?: boolean;
};

export type VerifiedDomain = {
Expand Down
1 change: 1 addition & 0 deletions src/UserService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface User {
fullname?: string;
firstName?: string;
lastName?: string;
companyEmailDomain?: string;
userAttributes?: Array<UserAttribute>;
}

Expand Down

0 comments on commit c497b43

Please sign in to comment.