File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,9 @@ export type OrganizationDefaultSettings = z.infer<typeof organizationDefaultSett
124124 * WorkspaceTaskVisibility
125125 */
126126
127- export type WorkspaceTaskVisibility = "all" | "list-only" | "full-lockdown"
127+ const workspaceTaskVisibilitySchema = z . enum ( [ "all" , "list-only" , "full-lockdown" ] )
128+
129+ export type WorkspaceTaskVisibility = z . infer < typeof workspaceTaskVisibilitySchema >
128130
129131/**
130132 * OrganizationCloudSettings
@@ -135,7 +137,7 @@ export const organizationCloudSettingsSchema = z.object({
135137 enableTaskSharing : z . boolean ( ) . optional ( ) ,
136138 taskShareExpirationDays : z . number ( ) . int ( ) . positive ( ) . optional ( ) ,
137139 allowMembersViewAllTasks : z . boolean ( ) . optional ( ) ,
138- workspaceTaskVisibility : z . enum ( [ "all" , "list-only" , "full-lockdown" ] ) . optional ( ) ,
140+ workspaceTaskVisibility : workspaceTaskVisibilitySchema . optional ( ) ,
139141} )
140142
141143export type OrganizationCloudSettings = z . infer < typeof organizationCloudSettingsSchema >
You can’t perform that action at this time.
0 commit comments