@fairandsmart/consents-ce 2.0.2 → 2.0.5
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.
package/consents/helpers.js
CHANGED
package/css-autocomplete.d.ts
CHANGED
|
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;
|
|
@@ -159,20 +178,29 @@ export interface PeerContext {
|
|
|
159
178
|
export interface FormLayout extends ModelData {
|
|
160
179
|
type: 'layout';
|
|
161
180
|
info: string;
|
|
162
|
-
|
|
181
|
+
blocs: FormLayoutBloc[];
|
|
182
|
+
hiddenBlocs?: string[];
|
|
163
183
|
defaultNotification?: string;
|
|
164
|
-
peerElements?: PeerElements[];
|
|
165
184
|
orientation?: FormLayoutOrientation;
|
|
185
|
+
blocDetailText?: string;
|
|
186
|
+
acceptAllText?: string;
|
|
187
|
+
submitText?: string;
|
|
188
|
+
cancelText?: string;
|
|
166
189
|
existingElementsVisible?: boolean;
|
|
167
190
|
validityVisible?: boolean;
|
|
168
191
|
includeIFrameResizer?: boolean;
|
|
169
192
|
acceptAllVisible?: boolean;
|
|
170
|
-
acceptAllText?: string;
|
|
171
|
-
submitText?: string;
|
|
172
|
-
cancelText?: string;
|
|
173
193
|
cancelVisible?: boolean;
|
|
174
194
|
footerOnTop?: boolean;
|
|
175
195
|
}
|
|
196
|
+
export interface FormLayoutBloc {
|
|
197
|
+
parent: FormLayoutElement;
|
|
198
|
+
children?: FormLayoutElement[];
|
|
199
|
+
}
|
|
200
|
+
export interface FormLayoutElement {
|
|
201
|
+
location?: string;
|
|
202
|
+
key: string;
|
|
203
|
+
}
|
|
176
204
|
export declare enum FormLayoutOrientation {
|
|
177
205
|
HORIZONTAL = "HORIZONTAL",
|
|
178
206
|
VERTICAL = "VERTICAL"
|
|
@@ -184,7 +212,7 @@ export declare enum ConsentOrigin {
|
|
|
184
212
|
USER = "USER"
|
|
185
213
|
}
|
|
186
214
|
export declare const CONSENT_ORIGIN: ConsentOrigin[];
|
|
187
|
-
export declare type ModelDataType = 'information' | 'processing' | 'conditions' | 'theme' | 'email' | 'preference' | 'layout';
|
|
215
|
+
export declare type ModelDataType = 'information' | 'processing' | 'conditions' | 'theme' | 'email' | 'preference' | 'layout' | 'notice';
|
|
188
216
|
export declare enum PreviewType {
|
|
189
217
|
FORM = "FORM",
|
|
190
218
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fairandsmart/consents-ce",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "TypeScript mappings for the Fair&Smart's Right Consents Community features",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"scripts": {},
|
|
@@ -31,12 +31,14 @@
|
|
|
31
31
|
"module": "./index.js",
|
|
32
32
|
"exports": {
|
|
33
33
|
".": "./index.js",
|
|
34
|
+
"./css-autocomplete": "./css-autocomplete.js",
|
|
34
35
|
"./api": "./api.js",
|
|
35
36
|
"./http": "./http.js",
|
|
36
37
|
"./common": "./common.js",
|
|
37
38
|
"./consents": "./consents/index.js",
|
|
38
39
|
"./keys": "./keys/index.js",
|
|
39
40
|
"./models": "./models/index.js",
|
|
41
|
+
"./peers": "./peers/index.js",
|
|
40
42
|
"./receipts": "./receipts/index.js",
|
|
41
43
|
"./records": "./records/index.js",
|
|
42
44
|
"./statistics": "./statistics/index.js",
|
|
Binary file
|