Skip to content

Commit fc35bad

Browse files
jbvoltarobframpton
andauthored
Adjust Organization Domain entity (#872)
## Description - Rename unverified organization domain state to LegacyVerified - Add verification_strategy field ## 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: Robert Frampton <[email protected]>
1 parent 9f22e3a commit fc35bad

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
11
export enum OrganizationDomainState {
2-
Unverified = 'unverified',
2+
/**
3+
* @deprecated
4+
*/
5+
LegacyVerified = 'legacy_verified',
36
Verified = 'verified',
47
Pending = 'pending',
58
Failed = 'failed',
69
}
710

11+
export enum OrganizationDomainVerificationStrategy {
12+
Dns = 'dns',
13+
Developer = 'developer',
14+
}
15+
816
export interface OrganizationDomain {
917
object: 'organization_domain';
1018
id: string;
1119
domain: string;
1220
state: OrganizationDomainState;
1321
verificationToken: string;
22+
verificationStrategy: OrganizationDomainVerificationStrategy;
1423
}
1524

1625
export interface OrganizationDomainResponse {
@@ -19,4 +28,5 @@ export interface OrganizationDomainResponse {
1928
domain: string;
2029
state: OrganizationDomainState;
2130
verification_token: string;
31+
verification_strategy: OrganizationDomainVerificationStrategy;
2232
}

src/organization-domains/serializers/organization-domain.serializer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ export const deserializeOrganizationDomain = (
88
domain: organizationDomain.domain,
99
state: organizationDomain.state,
1010
verificationToken: organizationDomain.verification_token,
11+
verificationStrategy: organizationDomain.verification_strategy,
1112
});

0 commit comments

Comments
 (0)