B2B-87: add company statistics consent (#29)

* B2B-87: add company statistics consent

* add toggle for company statistics consent under profile

* add toggle for company statistics consent under profile

* add audit logging to accounts

* change policy

* add audit logging to accounts

* remove full account data query and just query the entire account every time

* add comment about consent toggle

* make constants hardcoded, as dynamic ones do not work

* add back pending check

---------

Co-authored-by: Helena <helena@Helenas-MacBook-Pro.local>
This commit is contained in:
Helena
2025-07-03 17:55:23 +03:00
committed by GitHub
parent 517dce3146
commit ad08155063
18 changed files with 298 additions and 36 deletions

View File

@@ -189,6 +189,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
@@ -208,6 +209,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
@@ -227,6 +229,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
@@ -1498,6 +1501,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