Treat suspended workspace as workspaces that need to be synced (#9669)
In this PR: - migrate WorkspaceActivationStatus to twenty-shared (and update case to make FE and BE consistent) - introduce isWorkspaceActiveOrSuspended in twenty-shared - refactor the code to use it (when we fetch data on the FE, we want to keep SUSPENDED workspace working + when we sync workspaces we want it too)
This commit is contained in:
@ -1556,11 +1556,11 @@ export type WorkspaceBillingSubscriptionsArgs = {
|
||||
};
|
||||
|
||||
export enum WorkspaceActivationStatus {
|
||||
Active = 'ACTIVE',
|
||||
Inactive = 'INACTIVE',
|
||||
OngoingCreation = 'ONGOING_CREATION',
|
||||
PendingCreation = 'PENDING_CREATION',
|
||||
Suspended = 'SUSPENDED'
|
||||
ACTIVE = 'ACTIVE',
|
||||
INACTIVE = 'INACTIVE',
|
||||
ONGOING_CREATION = 'ONGOING_CREATION',
|
||||
PENDING_CREATION = 'PENDING_CREATION',
|
||||
SUSPENDED = 'SUSPENDED'
|
||||
}
|
||||
|
||||
export type WorkspaceEdge = {
|
||||
|
||||
Reference in New Issue
Block a user