Build error

today at 10:05 PM


src/components/auth/SchoolRegistrationForm.tsx(144,23): error TS2345: Argument of type 'string' is not assignable to parameter of type '("code" extends keyof (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["school_codes"]["Row"] ? (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["school_codes"]["Row"]["code"] : (ContainsNull<...> extends true ? ContainsNull<...> extends true ? Co...'.
src/components/documents/FileList.tsx(40,24): error TS2345: Argument of type 'string' is not assignable to parameter of type '("user_id" extends keyof (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["documents"]["Row"] ? (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["documents"]["Row"]["user_id"] : (ContainsNull<...> extends true ? ContainsNull<...> extends true ? Co...'.
src/components/documents/FileList.tsx(122,28): error TS2345: Argument of type 'string' is not assignable to parameter of type '("document_id" extends keyof (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["document_content"]["Row"] ? (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["document_content"]["Row"]["document_id"] : (ContainsNull<...> extends true ? ContainsNull<...'.
src/components/documents/FileList.tsx(132,19): error TS2345: Argument of type 'string' is not assignable to parameter of type '("id" extends keyof (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["documents"]["Row"] ? (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["documents"]["Row"]["id"] : (ContainsNull<...> extends true ? ContainsNull<...> extends true ? ContainsNull...'.
src/components/documents/FileUpload.tsx(69,11): error TS2353: Object literal may only specify known properties, and 'onUploadProgress' does not exist in type 'FileOptions'.
src/components/teacher/StudentManagement.tsx(93,26): error TS2345: Argument of type 'string' is not assignable to parameter of type '("school_id" extends keyof (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["students"]["Row"] ? (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["students"]["Row"]["school_id"] : (ContainsNull<...> extends true ? ContainsNull<...> extends true ? ...'.
src/components/teacher/StudentManagement.tsx(104,49): error TS2339: Property 'id' does not exist on type 'SelectQueryError<"Processing node failed."> | SelectQueryError<"Could not retrieve a valid record or error value"> | { id: any; }'.
  Property 'id' does not exist on type 'SelectQueryError<"Processing node failed.">'.
src/components/teacher/StudentManagement.tsx(115,23): error TS2339: Property 'id' does not exist on type 'SelectQueryError<"Processing node failed."> | SelectQueryError<"Could not retrieve a valid record or error value"> | { id: any; full_name: any; email: any; created_at: any; }'.
  Property 'id' does not exist on type 'SelectQueryError<"Processing node failed.">'.
src/components/teacher/StudentManagement.tsx(116,30): error TS2339: Property 'full_name' does not exist on type 'SelectQueryError<"Processing node failed."> | SelectQueryError<"Could not retrieve a valid record or error value"> | { id: any; full_name: any; email: any; created_at: any; }'.
  Property 'full_name' does not exist on type 'SelectQueryError<"Processing node failed.">'.
src/components/teacher/StudentManagement.tsx(117,26): error TS2339: Property 'email' does not exist on type 'SelectQueryError<"Processing node failed."> | SelectQueryError<"Could not retrieve a valid record or error value"> | { id: any; full_name: any; email: any; created_at: any; }'.
  Property 'email' does not exist on type 'SelectQueryError<"Processing node failed.">'.
src/components/teacher/StudentManagement.tsx(117,43): error TS2339: Property 'id' does not exist on type 'SelectQueryError<"Processing node failed."> | SelectQueryError<"Could not retrieve a valid record or error value"> | { id: any; full_name: any; email: any; created_at: any; }'.
  Property 'id' does not exist on type 'SelectQueryError<"Processing node failed.">'.
src/components/teacher/StudentManagement.tsx(118,31): error TS2339: Property 'created_at' does not exist on type 'SelectQueryError<"Processing node failed."> | SelectQueryError<"Could not retrieve a valid record or error value"> | { id: any; full_name: any; email: any; created_at: any; }'.
  Property 'created_at' does not exist on type 'SelectQueryError<"Processing node failed.">'.
src/components/teacher/StudentManagement.tsx(143,26): error TS2345: Argument of type 'string' is not assignable to parameter of type '("school_id" extends keyof (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["student_invites"]["Row"] ? (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["student_invites"]["Row"]["school_id"] : (ContainsNull<...> extends true ? ContainsNull<...> e...'.
src/contexts/AuthContext.tsx(205,25): error TS2345: Argument of type 'false | (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Functions"]["is_user_supervisor_safe"]["Returns"]' is not assignable to parameter of type 'SetStateAction<boolean>'.
  Type '(Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Functions"]["is_user_supervisor_safe"]["Returns"]' is not assignable to type 'SetStateAction<boolean>'.
    Type 'Database[SchemaName]["Functions"]["is_user_supervisor_safe"]["Returns"]' is not assignable to type 'SetStateAction<boolean>'.
src/contexts/AuthContext.tsx(212,19): error TS2345: Argument of type 'string' is not assignable to parameter of type '("id" extends keyof (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["profiles"]["Row"] ? (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["profiles"]["Row"]["id"] : (ContainsNull<...> extends true ? ContainsNull<...> extends true ? ContainsNull<....'.
src/contexts/SettingsContext.tsx(78,30): error TS2345: Argument of type 'string' is not assignable to parameter of type '("user_id" extends keyof (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["user_api_keys"]["Row"] ? (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["user_api_keys"]["Row"]["user_id"] : (ContainsNull<...> extends true ? ContainsNull<...> extends t...'.
src/contexts/SettingsContext.tsx(82,54): error TS2339: Property 'provider' does not exist on type 'SelectQueryError<"Processing node failed."> | SelectQueryError<"Could not retrieve a valid record or error value"> | { provider: any; api_key: any; }'.
  Property 'provider' does not exist on type 'SelectQueryError<"Processing node failed.">'.
src/contexts/SettingsContext.tsx(82,78): error TS2339: Property 'api_key' does not exist on type 'GetResult<Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any, (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["user_api_keys"]["Row"], "user_api_keys", (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["user_api_keys"] extends...'.
src/contexts/SettingsContext.tsx(83,54): error TS2339: Property 'provider' does not exist on type 'SelectQueryError<"Processing node failed."> | SelectQueryError<"Could not retrieve a valid record or error value"> | { provider: any; api_key: any; }'.
  Property 'provider' does not exist on type 'SelectQueryError<"Processing node failed.">'.
src/contexts/SettingsContext.tsx(83,78): error TS2339: Property 'api_key' does not exist on type 'GetResult<Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any, (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["user_api_keys"]["Row"], "user_api_keys", (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["user_api_keys"] extends...'.
src/contexts/SettingsContext.tsx(145,14): error TS2769: No overload matches this call.
  Overload 1 of 2, '(values: (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["user_api_keys"] extends { ...; } ? (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["user_api_keys"]["Insert"] : never, options?: { ...; }): PostgrestFilterBuilder<...>', gave the following error.
    Argument of type '{ user_id: string; provider: string; api_key: string; }' is not assignable to parameter of type '(Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["user_api_keys"] extends { ...; } ? (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["user_api_keys"]["Insert"] : never'.
  Overload 2 of 2, '(values: ((Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["user_api_keys"] extends { ...; } ? (Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any)["Tables"]["user_api_keys"]["Insert"] : never)[], options?: { ...; }): PostgrestFilterBuilder