diff --git a/next.config.mjs b/next.config.mjs index 0fc8c2c..b3763d7 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,7 +1,4 @@ import withBundleAnalyzer from '@next/bundle-analyzer'; -import transpileModules from 'next-transpile-modules'; - -const withTM = transpileModules(['lucide-react']); const IS_PRODUCTION = process.env.NODE_ENV === 'production'; const SUPABASE_URL = process.env.NEXT_PUBLIC_SUPABASE_URL; @@ -28,7 +25,7 @@ const INTERNAL_PACKAGES = [ ]; /** @type {import('next').NextConfig} */ -const config = withTM({ +const config = { reactStrictMode: true, /** Enables hot reloading for local packages without a build step */ transpilePackages: INTERNAL_PACKAGES, @@ -71,7 +68,7 @@ const config = withTM({ /** We already do linting and typechecking as separate tasks in CI */ eslint: { ignoreDuringBuilds: true }, typescript: { ignoreBuildErrors: true }, -}); +}; export default withBundleAnalyzer({ enabled: process.env.ANALYZE === 'true', diff --git a/package.json b/package.json index 11b1f81..b5cc386 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,6 @@ "babel-plugin-react-compiler": "19.1.0-rc.2", "cssnano": "^7.0.7", "dotenv": "^16.5.0", - "next-transpile-modules": "^10.0.1", "pino-pretty": "^13.0.0", "prettier": "^3.5.3", "supabase": "^2.30.4", diff --git a/packages/supabase/src/database.types.ts b/packages/supabase/src/database.types.ts index 6f92492..fa0a47b 100644 --- a/packages/supabase/src/database.types.ts +++ b/packages/supabase/src/database.types.ts @@ -98,7 +98,7 @@ export type Database = { } Update: { account_id?: string - action: string + action?: string changed_by?: string created_at?: string id?: number @@ -268,6 +268,7 @@ export type Database = { created_at: string | null created_by: string | null email: string | null + has_consent_anonymized_company_statistics: boolean | null has_consent_personal_data: boolean | null id: string is_personal_account: boolean @@ -287,6 +288,7 @@ export type Database = { created_at?: string | null created_by?: string | null email?: string | null + has_consent_anonymized_company_statistics?: boolean | null has_consent_personal_data?: boolean | null id?: string is_personal_account?: boolean @@ -306,6 +308,7 @@ export type Database = { created_at?: string | null created_by?: string | null email?: string | null + has_consent_anonymized_company_statistics?: boolean | null has_consent_personal_data?: boolean | null id?: string is_personal_account?: boolean @@ -1628,14 +1631,13 @@ export type Database = { Returns: Json } create_team_account: { - Args: - | { account_name: string } - | { account_name: string; new_personal_code: string } + Args: { account_name: string; new_personal_code: string } Returns: { city: string | null created_at: string | null created_by: string | null email: string | null + has_consent_anonymized_company_statistics: boolean | null has_consent_personal_data: boolean | null id: string is_personal_account: boolean @@ -1883,12 +1885,12 @@ export type Database = { | "QUEUED" | "ON_HOLD" | "PROCESSING" - | "PARTIAL_ANALYSIS_RESPONSE" - | "FULL_ANALYSIS_RESPONSE" - | "WAITING_FOR_DOCTOR_RESPONSE" | "COMPLETED" | "REJECTED" | "CANCELLED" + | "PARTIAL_ANALYSIS_RESPONSE" + | "FULL_ANALYSIS_RESPONSE" + | "WAITING_FOR_DOCTOR_RESPONSE" app_permissions: | "roles.manage" | "billing.manage" @@ -7772,15 +7774,15 @@ export const Constants = { medreport: { Enums: { analysis_order_status: [ - "QUEUED", // makstud, ootab Synlabi saatmist - "ON_HOLD", // - "PROCESSING", // ootab proovide tulemusi - "PARTIAL_ANALYSIS_RESPONSE", // osalised tulemused - "FULL_ANALYSIS_RESPONSE", // kõik tulemused käes - "WAITING_FOR_DOCTOR_RESPONSE", // ootab arsti kokkuvõtet - "COMPLETED", // kinnitatud, lõplik - "REJECTED", // tagastatud - "CANCELLED", // tühistatud + "QUEUED", + "ON_HOLD", + "PROCESSING", + "COMPLETED", + "REJECTED", + "CANCELLED", + "PARTIAL_ANALYSIS_RESPONSE", + "FULL_ANALYSIS_RESPONSE", + "WAITING_FOR_DOCTOR_RESPONSE", ], app_permissions: [ "roles.manage", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 710f116..5e97367 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -213,9 +213,6 @@ importers: dotenv: specifier: ^16.5.0 version: 16.5.0 - next-transpile-modules: - specifier: ^10.0.1 - version: 10.0.1 pino-pretty: specifier: ^13.0.0 version: 13.0.0 @@ -8311,9 +8308,6 @@ packages: react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc - next-transpile-modules@10.0.1: - resolution: {integrity: sha512-4VX/LCMofxIYAVV58UmD+kr8jQflpLWvas/BQ4Co0qWLWzVh06FoZkECkrX5eEZT6oJFqie6+kfbTA3EZCVtdQ==} - next@15.3.2: resolution: {integrity: sha512-CA3BatMyHkxZ48sgOCLdVHjFU36N7TF1HhqAHLFOkV6buwZnvMI84Cug8xD56B9mCuKrqXnLn94417GrZ/jjCQ==} engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0} @@ -18745,6 +18739,16 @@ snapshots: transitivePeerDependencies: - supports-color + eslint-module-utils@2.12.0(@typescript-eslint/parser@8.32.1(eslint@9.28.0(jiti@2.4.2))(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint@9.28.0(jiti@2.4.2)): + dependencies: + debug: 3.2.7 + optionalDependencies: + '@typescript-eslint/parser': 8.32.1(eslint@9.28.0(jiti@2.4.2))(typescript@5.8.3) + eslint: 9.28.0(jiti@2.4.2) + eslint-import-resolver-node: 0.3.9 + transitivePeerDependencies: + - supports-color + eslint-module-utils@2.12.0(@typescript-eslint/parser@8.33.1(eslint@8.10.0)(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@8.10.0): dependencies: debug: 3.2.7 @@ -18756,17 +18760,6 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@8.33.1(eslint@9.28.0(jiti@2.4.2))(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@9.28.0(jiti@2.4.2)): - dependencies: - debug: 3.2.7 - optionalDependencies: - '@typescript-eslint/parser': 8.33.1(eslint@9.28.0(jiti@2.4.2))(typescript@5.8.3) - eslint: 9.28.0(jiti@2.4.2) - eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.31.0)(eslint@9.28.0(jiti@2.4.2)) - transitivePeerDependencies: - - supports-color - eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.32.1(eslint@9.28.0(jiti@2.4.2))(typescript@5.8.3))(eslint@9.28.0(jiti@2.4.2)): dependencies: '@rtsao/scc': 1.1.0 @@ -18778,7 +18771,7 @@ snapshots: doctrine: 2.1.0 eslint: 9.28.0(jiti@2.4.2) eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.33.1(eslint@9.28.0(jiti@2.4.2))(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@9.28.0(jiti@2.4.2)) + eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.32.1(eslint@9.28.0(jiti@2.4.2))(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint@9.28.0(jiti@2.4.2)) hasown: 2.0.2 is-core-module: 2.16.1 is-glob: 4.0.3 @@ -20704,10 +20697,6 @@ snapshots: react: 19.1.0 react-dom: 19.1.0(react@19.1.0) - next-transpile-modules@10.0.1: - dependencies: - enhanced-resolve: 5.18.1 - next@15.3.2(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(babel-plugin-react-compiler@19.1.0-rc.2)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106): dependencies: '@next/env': 15.3.2