Skip to content

Commit 29bc153

Browse files
committed
Domain, client sync.
1 parent f1d4f9e commit 29bc153

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/FusionAuthClient.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,22 @@ export class FusionAuthClient {
755755
.go();
756756
}
757757

758+
/**
759+
* Deletes the tenant for the given Id asynchronously.
760+
* This method is helpful if you do not want to wait for the delete operation to complete.
761+
*
762+
* @param {UUID} tenantId The Id of the tenant to delete.
763+
* @returns {Promise<ClientResponse<void>>}
764+
*/
765+
deleteTenantAsync(tenantId: UUID): Promise<ClientResponse<void>> {
766+
return this.start<void, Errors>()
767+
.withUri('/api/tenant')
768+
.withUriSegment(tenantId)
769+
.withParameter('async', true)
770+
.withMethod("DELETE")
771+
.go();
772+
}
773+
758774
/**
759775
* Deletes the theme for the given Id.
760776
*
@@ -5632,6 +5648,15 @@ export enum OAuthErrorType {
56325648
export interface OAuthResponse {
56335649
}
56345650

5651+
/**
5652+
* @author Daniel DeGroff
5653+
*/
5654+
export enum ObjectState {
5655+
Active = "Active",
5656+
Inactive = "Inactive",
5657+
PendingDelete = "PendingDelete"
5658+
}
5659+
56355660
/**
56365661
* OpenID Connect Configuration as described by the <a href="https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata">OpenID
56375662
* Provider Metadata</a>.
@@ -6224,6 +6249,7 @@ export interface Tenant {
62246249
name?: string;
62256250
passwordEncryptionConfiguration?: PasswordEncryptionConfiguration;
62266251
passwordValidationRules?: PasswordValidationRules;
6252+
state?: ObjectState;
62276253
themeId?: UUID;
62286254
userDeletePolicy?: TenantUserDeletePolicy;
62296255
}

0 commit comments

Comments
 (0)