blob: fbe0bb8198d89cf9b00ccf8ee733cb56fcda49fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
export interface PolicyData {
id: number
policyType: 'privacy_policy' | 'terms_of_service'
version: string
content: string
effectiveDate: string
isCurrent: boolean
createdAt: string
}
export interface PolicyVersions {
privacy_policy: PolicyData
terms_of_service: PolicyData
}
export interface ConsentData {
privacy: boolean
terms: boolean
marketing: boolean
}
export interface ConsentRecord {
id: number
userId: number
consentType: 'privacy_policy' | 'terms_of_service' | 'marketing' | 'optional'
consentStatus: boolean
policyVersion: string
consentedAt: string
ipAddress?: string
userAgent?: string
revokedAt?: string
revokeReason?: string
}
export interface ConsentLogRecord {
id: number
userId: number
consentType: 'privacy_policy' | 'terms_of_service' | 'marketing' | 'optional'
action: 'consent' | 'revoke' | 'update'
oldStatus?: boolean
newStatus: boolean
policyVersion: string
ipAddress?: string
userAgent?: string
actionTimestamp: string
additionalData?: any
}
|