-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ ] Yes ``` If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required. --------- Co-authored-by: Michael Hadley <[email protected]>
- Loading branch information
1 parent
f3ff594
commit 5443fbc
Showing
7 changed files
with
103 additions
and
23 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
src/organizations/interfaces/create-organization-options.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// These are the only possible states to create an organization domain with | ||
export enum DomainDataState { | ||
Verified = 'verified', | ||
Pending = 'pending', | ||
} | ||
|
||
export interface DomainData { | ||
domain: string; | ||
state: DomainDataState; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/organizations/interfaces/update-organization-options.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
import { DomainData } from './domain-data.interface'; | ||
|
||
export interface UpdateOrganizationOptions { | ||
organization: string; | ||
name: string; | ||
allowProfilesOutsideOrganization?: boolean; | ||
domainData?: DomainData[]; | ||
/** | ||
* @deprecated Use `domain_data` instead. | ||
*/ | ||
domains?: string[]; | ||
} | ||
|
||
export interface SerializedUpdateOrganizationOptions { | ||
name: string; | ||
allow_profiles_outside_organization?: boolean; | ||
domain_data?: DomainData[]; | ||
/** | ||
* @deprecated Use `domain_data` instead. | ||
*/ | ||
domains?: string[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters