@fairandsmart/consents-ce 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
package/models/interfaces.d.ts
CHANGED
|
@@ -18,19 +18,25 @@ export declare enum ModelVersionType {
|
|
|
18
18
|
MAJOR = "MAJOR",
|
|
19
19
|
MINOR = "MINOR"
|
|
20
20
|
}
|
|
21
|
+
export declare enum Visibility {
|
|
22
|
+
FORM_AND_RECEIPT = "FORM_AND_RECEIPT",
|
|
23
|
+
RECEIPT_ONLY = "RECEIPT_ONLY",
|
|
24
|
+
HIDDEN = "HIDDEN"
|
|
25
|
+
}
|
|
26
|
+
export declare const VISIBILITIES: Visibility[];
|
|
21
27
|
export interface Information extends ModelData {
|
|
22
28
|
type: 'information';
|
|
23
29
|
title: string;
|
|
24
30
|
header: string;
|
|
25
31
|
footer: string;
|
|
26
32
|
jurisdiction: string;
|
|
27
|
-
|
|
33
|
+
jurisdictionVisibility: Visibility;
|
|
28
34
|
dataController: Controller;
|
|
29
|
-
|
|
35
|
+
dataControllerVisibility: Visibility;
|
|
30
36
|
scope: string;
|
|
31
|
-
|
|
37
|
+
scopeVisibility: Visibility;
|
|
32
38
|
shortNoticeLink: string;
|
|
33
|
-
|
|
39
|
+
shortNoticeLinkVisibility: Visibility;
|
|
34
40
|
privacyPolicyUrl: string;
|
|
35
41
|
customPrivacyPolicyText: string;
|
|
36
42
|
}
|
|
@@ -79,19 +85,27 @@ export interface RetentionInfo {
|
|
|
79
85
|
export interface Processing extends ModelData {
|
|
80
86
|
type: 'processing';
|
|
81
87
|
title: string;
|
|
82
|
-
|
|
88
|
+
titleVisibility: Visibility;
|
|
89
|
+
legalBases: ProcessingLegalBasis[];
|
|
90
|
+
legalBasesVisibility: Visibility;
|
|
83
91
|
data: string;
|
|
92
|
+
dataVisibility: Visibility;
|
|
84
93
|
retention: RetentionInfo;
|
|
94
|
+
retentionVisibility: Visibility;
|
|
85
95
|
usage: string;
|
|
96
|
+
usageVisibility: Visibility;
|
|
86
97
|
purposes: ProcessingPurpose[];
|
|
98
|
+
purposesVisibility: Visibility;
|
|
87
99
|
containsSensitiveData: boolean;
|
|
88
100
|
containsMedicalData: boolean;
|
|
101
|
+
dataSensitivityVisibility: Visibility;
|
|
89
102
|
dataController: Controller;
|
|
90
|
-
|
|
103
|
+
dataControllerVisibility: Visibility;
|
|
91
104
|
thirdParties: {
|
|
92
105
|
name: string;
|
|
93
106
|
value: string;
|
|
94
107
|
}[];
|
|
108
|
+
thirdPartiesVisibility: Visibility;
|
|
95
109
|
refusable: boolean;
|
|
96
110
|
}
|
|
97
111
|
export declare enum PreferenceValueType {
|
|
@@ -144,6 +158,11 @@ export interface Email extends ModelData {
|
|
|
144
158
|
footer: string;
|
|
145
159
|
signature: string;
|
|
146
160
|
}
|
|
161
|
+
export interface Notice extends ModelData {
|
|
162
|
+
type: 'notice';
|
|
163
|
+
description: string;
|
|
164
|
+
associatedProcessing: string[];
|
|
165
|
+
}
|
|
147
166
|
export interface PeerElements {
|
|
148
167
|
peer: string;
|
|
149
168
|
info?: string;
|
|
@@ -184,7 +203,7 @@ export declare enum ConsentOrigin {
|
|
|
184
203
|
USER = "USER"
|
|
185
204
|
}
|
|
186
205
|
export declare const CONSENT_ORIGIN: ConsentOrigin[];
|
|
187
|
-
export declare type ModelDataType = 'information' | 'processing' | 'conditions' | 'theme' | 'email' | 'preference' | 'layout';
|
|
206
|
+
export declare type ModelDataType = 'information' | 'processing' | 'conditions' | 'theme' | 'email' | 'preference' | 'layout' | 'notice';
|
|
188
207
|
export declare enum PreviewType {
|
|
189
208
|
FORM = "FORM",
|
|
190
209
|
RECEIPT = "RECEIPT",
|
package/models/interfaces.js
CHANGED
|
@@ -18,6 +18,8 @@ exports.PREVIEW_TYPES =
|
|
|
18
18
|
exports.RetentionUnit =
|
|
19
19
|
exports.DEFAULT_INFO_TAGS =
|
|
20
20
|
exports.DefaultInfoTag =
|
|
21
|
+
exports.VISIBILITIES =
|
|
22
|
+
exports.Visibility =
|
|
21
23
|
exports.ModelVersionType =
|
|
22
24
|
exports.ModelVersionStatus =
|
|
23
25
|
exports.MODEL_ENTRY_STATUSES =
|
|
@@ -50,6 +52,13 @@ var ModelVersionType;
|
|
|
50
52
|
(ModelVersionType =
|
|
51
53
|
exports.ModelVersionType || (exports.ModelVersionType = {}))
|
|
52
54
|
);
|
|
55
|
+
var Visibility;
|
|
56
|
+
(function (Visibility) {
|
|
57
|
+
Visibility["FORM_AND_RECEIPT"] = "FORM_AND_RECEIPT";
|
|
58
|
+
Visibility["RECEIPT_ONLY"] = "RECEIPT_ONLY";
|
|
59
|
+
Visibility["HIDDEN"] = "HIDDEN";
|
|
60
|
+
})((Visibility = exports.Visibility || (exports.Visibility = {})));
|
|
61
|
+
exports.VISIBILITIES = Object.keys(Visibility);
|
|
53
62
|
var DefaultInfoTag;
|
|
54
63
|
(function (DefaultInfoTag) {
|
|
55
64
|
DefaultInfoTag["DEFAULT_INFO_USER"] = "DEFAULT_INFO_USER";
|
package/package.json
CHANGED
|
Binary file
|