Skip to content

Commit

Permalink
Apply feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph committed Jan 2, 2025
1 parent bc3ec1f commit 2bb57dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion sdks/js/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,10 @@ export type LightWorkspaceType = z.infer<typeof LightWorkspaceSchema>;

const WorkspaceSchema = LightWorkspaceSchema.extend({
ssoEnforced: z.boolean().optional(),
extensionBlacklistedDomains: z.array(z.string()).optional(),
});

const ExtensionWorkspaceSchema = WorkspaceSchema.extend({
blacklistedDomains: z.array(z.string()).nullable(),
});

const ExtensionWorkspaceSchema = WorkspaceSchema.extend({
Expand Down
5 changes: 4 additions & 1 deletion types/src/front/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export type LightWorkspaceType = {

export type WorkspaceType = LightWorkspaceType & {
ssoEnforced?: boolean;
extensionBlacklistedDomains?: string[];
};

export type ExtensionWorkspaceType = WorkspaceType & {
blacklistedDomains: string[] | null;
};

export type ExtensionWorkspaceType = WorkspaceType & {
Expand Down

0 comments on commit 2bb57dc

Please sign in to comment.