projects/core/src/model/consent.model.ts
Properties |
|
| currentConsent |
currentConsent:
|
Type : Consent
|
| Optional |
| description |
description:
|
Type : string
|
| Optional |
| id |
id:
|
Type : string
|
| Optional |
| name |
name:
|
Type : string
|
| Optional |
| version |
version:
|
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';