Skip to content

Commit

Permalink
update types
Browse files Browse the repository at this point in the history
  • Loading branch information
jongrim committed Dec 9, 2023
1 parent a1ae776 commit baa90b7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/Community/communityStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const DEFAULT_COMMUNITY_STATE: CommunityStore = {
allow_public_signup: false,
created_at: "",
signup_method: SignupMethods.PRIVATE,
allow_pre_seat: false,
},
admins: [],
communityAccessLevels: [],
Expand Down
1 change: 1 addition & 0 deletions src/pages/Game/gameStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const DEFAULT_GAME_STATE = {
allow_public_signup: false,
created_at: "",
signup_method: SignupMethods.PRIVATE,
allow_pre_seat: false,
},
};

Expand Down
1 change: 1 addition & 0 deletions src/typings/Community.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export interface Community {
slack?: string | null;
patreon?: string | null;
facebook?: string | null;
/** @deprecated */
allow_public_signup: boolean;
created_at: string;
furthest_posting_date?: number | null; // unix epoch number
Expand Down
3 changes: 3 additions & 0 deletions src/typings/supabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export interface Database {
}
communities: {
Row: {
allow_pre_seat: boolean
allow_public_signup: boolean | null
banned_emails: string[] | null
code_of_conduct_url: string | null
Expand Down Expand Up @@ -80,6 +81,7 @@ export interface Database {
website: string | null
}
Insert: {
allow_pre_seat?: boolean
allow_public_signup?: boolean | null
banned_emails?: string[] | null
code_of_conduct_url?: string | null
Expand Down Expand Up @@ -109,6 +111,7 @@ export interface Database {
website?: string | null
}
Update: {
allow_pre_seat?: boolean
allow_public_signup?: boolean | null
banned_emails?: string[] | null
code_of_conduct_url?: string | null
Expand Down

0 comments on commit baa90b7

Please sign in to comment.