@fairandsmart/consents-ce 2.0.6 → 2.0.7
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/README.md +5 -0
- package/consents/interfaces.d.ts +2 -1
- package/consents/interfaces.js +3 -2
- package/fairandsmart-consents-ce-2.0.7.tgz +0 -0
- package/forms/consent-collector.js +2 -2
- package/models/interfaces.js +7 -7
- package/package.json +1 -1
- package/records/interfaces.js +6 -4
- package/fairandsmart-consents-ce-2.0.6.tgz +0 -0
package/README.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
This project implements TypeScript definitions and API helpers for the [Fair&Smart Right Consents API](https://cmback.dev.env.fairandsmart.tech/swagger-ui/). It's meant for use in [Right Consents Front-end](https://github.com/fairandsmart/consent-manager-lib-ce), but should be general enough to use in any project. The code is maintained and based on the [Right Consents Back-end](https://github.com/fairandsmart/consent-manager-back) API resources and models, to be as close as possible to the true representation of the resources.
|
|
4
4
|
|
|
5
|
+
# NPM/Node version
|
|
6
|
+
|
|
7
|
+
Known to work using node v14.21.3 (npm v6.14.18).
|
|
8
|
+
Use NVM to force version if needed.
|
|
9
|
+
|
|
5
10
|
# Install
|
|
6
11
|
|
|
7
12
|
```
|
package/consents/interfaces.d.ts
CHANGED
|
@@ -7,7 +7,8 @@ export declare enum Confirmation {
|
|
|
7
7
|
SIGNATURE = "SIGNATURE",
|
|
8
8
|
AUDIO_RECORD = "AUDIO_RECORD",
|
|
9
9
|
VIDEO_RECORD = "VIDEO_RECORD",
|
|
10
|
-
DIGITAL_SIGNATURE = "DIGITAL_SIGNATURE"
|
|
10
|
+
DIGITAL_SIGNATURE = "DIGITAL_SIGNATURE",
|
|
11
|
+
MAGIC_LINK = "MAGIC_LINK"
|
|
11
12
|
}
|
|
12
13
|
export declare const CONFIRMATION_TYPES: Confirmation[];
|
|
13
14
|
export declare enum SubjectInfosKeys {
|
package/consents/interfaces.js
CHANGED
|
@@ -15,6 +15,7 @@ var Confirmation;
|
|
|
15
15
|
Confirmation["AUDIO_RECORD"] = "AUDIO_RECORD";
|
|
16
16
|
Confirmation["VIDEO_RECORD"] = "VIDEO_RECORD";
|
|
17
17
|
Confirmation["DIGITAL_SIGNATURE"] = "DIGITAL_SIGNATURE";
|
|
18
|
+
Confirmation["MAGIC_LINK"] = "MAGIC_LINK";
|
|
18
19
|
})((Confirmation = exports.Confirmation || (exports.Confirmation = {})));
|
|
19
20
|
exports.CONFIRMATION_TYPES = Object.keys(Confirmation);
|
|
20
21
|
var SubjectInfosKeys;
|
|
@@ -23,7 +24,7 @@ var SubjectInfosKeys;
|
|
|
23
24
|
SubjectInfosKeys["PHONE_KEY"] = "phoneNumber";
|
|
24
25
|
})(
|
|
25
26
|
(SubjectInfosKeys =
|
|
26
|
-
exports.SubjectInfosKeys || (exports.SubjectInfosKeys = {}))
|
|
27
|
+
exports.SubjectInfosKeys || (exports.SubjectInfosKeys = {})),
|
|
27
28
|
);
|
|
28
29
|
var ConfirmationConfigKeys;
|
|
29
30
|
(function (ConfirmationConfigKeys) {
|
|
@@ -31,5 +32,5 @@ var ConfirmationConfigKeys;
|
|
|
31
32
|
ConfirmationConfigKeys["SENDER_PHONE_KEY"] = "senderPhone";
|
|
32
33
|
})(
|
|
33
34
|
(ConfirmationConfigKeys =
|
|
34
|
-
exports.ConfirmationConfigKeys || (exports.ConfirmationConfigKeys = {}))
|
|
35
|
+
exports.ConfirmationConfigKeys || (exports.ConfirmationConfigKeys = {})),
|
|
35
36
|
);
|
|
Binary file
|
|
@@ -70,7 +70,7 @@ var ConsentCollector = /** @class */ (function () {
|
|
|
70
70
|
var newWindow = window.open(
|
|
71
71
|
location,
|
|
72
72
|
"com_fs_window_consentCollect",
|
|
73
|
-
"menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=900px,height=600px"
|
|
73
|
+
"menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=900px,height=600px",
|
|
74
74
|
);
|
|
75
75
|
if (!newWindow) {
|
|
76
76
|
throw new Error("Could not open window");
|
|
@@ -107,7 +107,7 @@ var ConsentCollector = /** @class */ (function () {
|
|
|
107
107
|
resolve();
|
|
108
108
|
},
|
|
109
109
|
},
|
|
110
|
-
el
|
|
110
|
+
el,
|
|
111
111
|
);
|
|
112
112
|
});
|
|
113
113
|
};
|
package/models/interfaces.js
CHANGED
|
@@ -32,7 +32,7 @@ var ModelEntryStatus;
|
|
|
32
32
|
ModelEntryStatus["DELETED"] = "DELETED";
|
|
33
33
|
})(
|
|
34
34
|
(ModelEntryStatus =
|
|
35
|
-
exports.ModelEntryStatus || (exports.ModelEntryStatus = {}))
|
|
35
|
+
exports.ModelEntryStatus || (exports.ModelEntryStatus = {})),
|
|
36
36
|
);
|
|
37
37
|
exports.MODEL_ENTRY_STATUSES = Object.keys(ModelEntryStatus);
|
|
38
38
|
var ModelVersionStatus;
|
|
@@ -42,7 +42,7 @@ var ModelVersionStatus;
|
|
|
42
42
|
ModelVersionStatus["ARCHIVED"] = "ARCHIVED";
|
|
43
43
|
})(
|
|
44
44
|
(ModelVersionStatus =
|
|
45
|
-
exports.ModelVersionStatus || (exports.ModelVersionStatus = {}))
|
|
45
|
+
exports.ModelVersionStatus || (exports.ModelVersionStatus = {})),
|
|
46
46
|
);
|
|
47
47
|
var ModelVersionType;
|
|
48
48
|
(function (ModelVersionType) {
|
|
@@ -50,7 +50,7 @@ var ModelVersionType;
|
|
|
50
50
|
ModelVersionType["MINOR"] = "MINOR";
|
|
51
51
|
})(
|
|
52
52
|
(ModelVersionType =
|
|
53
|
-
exports.ModelVersionType || (exports.ModelVersionType = {}))
|
|
53
|
+
exports.ModelVersionType || (exports.ModelVersionType = {})),
|
|
54
54
|
);
|
|
55
55
|
var Visibility;
|
|
56
56
|
(function (Visibility) {
|
|
@@ -83,7 +83,7 @@ var ProcessingPurpose;
|
|
|
83
83
|
ProcessingPurpose["CONSENT_RESEARCH"] = "CONSENT_RESEARCH";
|
|
84
84
|
})(
|
|
85
85
|
(ProcessingPurpose =
|
|
86
|
-
exports.ProcessingPurpose || (exports.ProcessingPurpose = {}))
|
|
86
|
+
exports.ProcessingPurpose || (exports.ProcessingPurpose = {})),
|
|
87
87
|
);
|
|
88
88
|
exports.PROCESSING_PURPOSES = Object.keys(ProcessingPurpose);
|
|
89
89
|
var ProcessingLegalBasis;
|
|
@@ -100,7 +100,7 @@ var ProcessingLegalBasis;
|
|
|
100
100
|
"LEGAL_BASIS_VITAL_INTEREST";
|
|
101
101
|
})(
|
|
102
102
|
(ProcessingLegalBasis =
|
|
103
|
-
exports.ProcessingLegalBasis || (exports.ProcessingLegalBasis = {}))
|
|
103
|
+
exports.ProcessingLegalBasis || (exports.ProcessingLegalBasis = {})),
|
|
104
104
|
);
|
|
105
105
|
exports.PROCESSING_LEGAL_BASES = Object.keys(ProcessingLegalBasis);
|
|
106
106
|
var PreferenceValueType;
|
|
@@ -113,7 +113,7 @@ var PreferenceValueType;
|
|
|
113
113
|
PreferenceValueType["FREE_TEXT"] = "FREE_TEXT";
|
|
114
114
|
})(
|
|
115
115
|
(PreferenceValueType =
|
|
116
|
-
exports.PreferenceValueType || (exports.PreferenceValueType = {}))
|
|
116
|
+
exports.PreferenceValueType || (exports.PreferenceValueType = {})),
|
|
117
117
|
);
|
|
118
118
|
exports.PREFERENCE_VALUE_TYPES = Object.keys(PreferenceValueType);
|
|
119
119
|
var LogoPosition;
|
|
@@ -129,7 +129,7 @@ var FormLayoutOrientation;
|
|
|
129
129
|
FormLayoutOrientation["VERTICAL"] = "VERTICAL";
|
|
130
130
|
})(
|
|
131
131
|
(FormLayoutOrientation =
|
|
132
|
-
exports.FormLayoutOrientation || (exports.FormLayoutOrientation = {}))
|
|
132
|
+
exports.FormLayoutOrientation || (exports.FormLayoutOrientation = {})),
|
|
133
133
|
);
|
|
134
134
|
exports.CONSENT_FORM_ORIENTATIONS = Object.keys(FormLayoutOrientation);
|
|
135
135
|
var ConsentOrigin;
|
package/package.json
CHANGED
package/records/interfaces.js
CHANGED
|
@@ -34,7 +34,7 @@ var RecordStatusExplanation;
|
|
|
34
34
|
RecordStatusExplanation["ENTRY_DELETED"] = "ENTRY_DELETED";
|
|
35
35
|
})(
|
|
36
36
|
(RecordStatusExplanation =
|
|
37
|
-
exports.RecordStatusExplanation || (exports.RecordStatusExplanation = {}))
|
|
37
|
+
exports.RecordStatusExplanation || (exports.RecordStatusExplanation = {})),
|
|
38
38
|
);
|
|
39
39
|
exports.RECORD_IDENTIFIER_DEFAULT = "undefined";
|
|
40
40
|
exports.RECORD_IDENTIFIER_SEPARATOR = "|";
|
|
@@ -44,7 +44,8 @@ var ExtractionConfigOperator;
|
|
|
44
44
|
ExtractionConfigOperator["OR"] = "OR";
|
|
45
45
|
})(
|
|
46
46
|
(ExtractionConfigOperator =
|
|
47
|
-
exports.ExtractionConfigOperator ||
|
|
47
|
+
exports.ExtractionConfigOperator ||
|
|
48
|
+
(exports.ExtractionConfigOperator = {})),
|
|
48
49
|
);
|
|
49
50
|
var NotificationReportStatus;
|
|
50
51
|
(function (NotificationReportStatus) {
|
|
@@ -58,7 +59,8 @@ var NotificationReportStatus;
|
|
|
58
59
|
NotificationReportStatus["NONE"] = "NONE";
|
|
59
60
|
})(
|
|
60
61
|
(NotificationReportStatus =
|
|
61
|
-
exports.NotificationReportStatus ||
|
|
62
|
+
exports.NotificationReportStatus ||
|
|
63
|
+
(exports.NotificationReportStatus = {})),
|
|
62
64
|
);
|
|
63
65
|
var NotificationReportType;
|
|
64
66
|
(function (NotificationReportType) {
|
|
@@ -69,5 +71,5 @@ var NotificationReportType;
|
|
|
69
71
|
NotificationReportType["NONE"] = "NONE";
|
|
70
72
|
})(
|
|
71
73
|
(NotificationReportType =
|
|
72
|
-
exports.NotificationReportType || (exports.NotificationReportType = {}))
|
|
74
|
+
exports.NotificationReportType || (exports.NotificationReportType = {})),
|
|
73
75
|
);
|
|
Binary file
|