Skip to content

Commit

Permalink
fix(types): PublicOrganizationDataJSON should not extend ClerkResourc…
Browse files Browse the repository at this point in the history
…eJSON
  • Loading branch information
panteliselef committed Aug 11, 2023
1 parent 5b999c1 commit 7d7cc3a
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions packages/types/src/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,29 +364,23 @@ export interface OrganizationDomainJSON extends ClerkResourceJSON {
updated_at: number;
}

export interface PublicOrganizationDataJSON {
id: string;
name: string;
slug: string | null;
has_image: boolean;
image_url: string;
}

export interface OrganizationSuggestionJSON extends ClerkResourceJSON {
object: 'organization_suggestion';
id: string;
public_organization_data: {
id: string;
name: string;
slug: string | null;
has_image: boolean;
image_url: string;
};
public_organization_data: PublicOrganizationDataJSON;
status: OrganizationSuggestionStatus;
created_at: number;
updated_at: number;
}

export interface PublicOrganizationDataJSON extends ClerkResourceJSON {
id: string;
name: string;
slug: string | null;
has_image: boolean;
image_url: string;
}

export interface OrganizationSuggestionJSON extends ClerkResourceJSON {
object: 'organization_suggestion';
id: string;
Expand Down

0 comments on commit 7d7cc3a

Please sign in to comment.