feat: Add team deletion flow for cloud-hosted (#5717)

This commit is contained in:
Tom Moor
2023-08-21 20:24:46 -04:00
committed by GitHub
parent 5c07694f6b
commit 418d3305b2
26 changed files with 461 additions and 71 deletions

View File

@@ -134,10 +134,18 @@ export function OAuthStateMismatchError(
}
export function MaximumTeamsError(
message = "The maximum number of teams has been reached"
message = "The maximum number of workspaces has been reached"
) {
return httpErrors(400, message, {
id: "maximum_teams",
id: "maximum_reached",
});
}
export function TeamPendingDeletionError(
message = "The workspace is pending deletion"
) {
return httpErrors(403, message, {
id: "pending_deletion",
});
}
@@ -160,7 +168,7 @@ export function MicrosoftGraphError(
}
export function TeamDomainRequiredError(
message = "Unable to determine team from current domain or subdomain"
message = "Unable to determine workspace from current domain or subdomain"
) {
return httpErrors(400, message, {
id: "domain_required",