@fairandsmart/consents-ce 2.0.1 → 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.
@@ -73,6 +73,8 @@ export interface ConsentContext {
73
73
  theme?: string;
74
74
  /** The reference to the 'email' model for notification (this overrides the layout notification model) */
75
75
  notification?: string;
76
+ /** Whether to send an invitation email upon transaction creation */
77
+ sendInvitation?: boolean;
76
78
  /** The specific contexts parameters for peer transactions */
77
79
  peerContexts?: PeerContext[];
78
80
  }
@@ -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
- jurisdictionVisible: boolean;
33
+ jurisdictionVisibility: Visibility;
28
34
  dataController: Controller;
29
- dataControllerVisible: boolean;
35
+ dataControllerVisibility: Visibility;
30
36
  scope: string;
31
- scopeVisible: boolean;
37
+ scopeVisibility: Visibility;
32
38
  shortNoticeLink: string;
33
- shortNoticeLinkVisible: boolean;
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
- legalBasis: ProcessingLegalBasis;
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
- dataControllerVisible: boolean;
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",
@@ -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.1",
3
+ "version": "2.0.3",
4
4
  "description": "TypeScript mappings for the Fair&Smart's Right Consents Community features",
5
5
  "sideEffects": false,
6
6
  "scripts": {},