projects/core/src/model/consent.model.ts
Properties |
|
| consentState |
consentState:
|
Type : ANONYMOUS_CONSENT_STATUS
|
| Optional |
| templateCode |
templateCode:
|
Type : string
|
| Optional |
| templateVersion |
templateVersion:
|
Type : number
|
| Optional |
export interface ConsentTemplate {
id?: string;
name?: string;
description?: string;
version?: number;
currentConsent?: Consent;
}
export interface Consent {
code?: string;
consentGivenDate?: Date;
consentWithdrawnDate?: Date;
}
export interface AnonymousConsent {
templateCode?: string;
templateVersion?: number;
consentState?: ANONYMOUS_CONSENT_STATUS;
}
export enum ANONYMOUS_CONSENT_STATUS {
GIVEN = 'GIVEN',
WITHDRAWN = 'WITHDRAWN',
}
export const ANONYMOUS_CONSENTS_HEADER = 'X-Anonymous-Consents';