@fairandsmart/consents-ce 1.3.13 → 1.3.17
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/consents/interfaces.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare enum Confirmation {
|
|
|
10
10
|
DIGITAL_SIGNATURE = "DIGITAL_SIGNATURE"
|
|
11
11
|
}
|
|
12
12
|
export declare const CONFIRMATION_TYPES: Confirmation[];
|
|
13
|
-
export declare enum
|
|
13
|
+
export declare enum SubjectInfosKeys {
|
|
14
14
|
EMAIL_KEY = "emailAddress",
|
|
15
15
|
PHONE_KEY = "phoneNumber"
|
|
16
16
|
}
|
|
@@ -26,6 +26,8 @@ export declare enum ConfirmationConfigKeys {
|
|
|
26
26
|
export interface ConsentContext {
|
|
27
27
|
/** The identifier of the profile the processing will be linked to */
|
|
28
28
|
subject: string;
|
|
29
|
+
/** The identifier of the object the processing will be linked to */
|
|
30
|
+
object?: string;
|
|
29
31
|
/** If the form is not in iframe mode, the user will be redirected to this callback once the process is over */
|
|
30
32
|
callback?: string;
|
|
31
33
|
/** If the IFrame mode is set, set the allowed origin for the parent window domain */
|
|
@@ -43,8 +45,8 @@ export interface ConsentContext {
|
|
|
43
45
|
updatable?: boolean;
|
|
44
46
|
/** Silent Consent collect disable fetching existing values for the declared subject */
|
|
45
47
|
silent?: boolean;
|
|
46
|
-
/** Any relevant informations about the
|
|
47
|
-
|
|
48
|
+
/** Any relevant informations about the subject that will be persisted in the receipt */
|
|
49
|
+
subjectInfos?: {
|
|
48
50
|
[key: string]: string;
|
|
49
51
|
};
|
|
50
52
|
/** Any other relevant informations about the context that will be persisted in the record */
|
package/consents/interfaces.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConfirmationConfigKeys =
|
|
4
|
-
exports.
|
|
4
|
+
exports.SubjectInfosKeys =
|
|
5
5
|
exports.CONFIRMATION_TYPES =
|
|
6
6
|
exports.Confirmation =
|
|
7
7
|
void 0;
|
|
@@ -17,11 +17,14 @@ var Confirmation;
|
|
|
17
17
|
Confirmation["DIGITAL_SIGNATURE"] = "DIGITAL_SIGNATURE";
|
|
18
18
|
})((Confirmation = exports.Confirmation || (exports.Confirmation = {})));
|
|
19
19
|
exports.CONFIRMATION_TYPES = Object.keys(Confirmation);
|
|
20
|
-
var
|
|
21
|
-
(function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
})(
|
|
20
|
+
var SubjectInfosKeys;
|
|
21
|
+
(function (SubjectInfosKeys) {
|
|
22
|
+
SubjectInfosKeys["EMAIL_KEY"] = "emailAddress";
|
|
23
|
+
SubjectInfosKeys["PHONE_KEY"] = "phoneNumber";
|
|
24
|
+
})(
|
|
25
|
+
(SubjectInfosKeys =
|
|
26
|
+
exports.SubjectInfosKeys || (exports.SubjectInfosKeys = {}))
|
|
27
|
+
);
|
|
25
28
|
var ConfirmationConfigKeys;
|
|
26
29
|
(function (ConfirmationConfigKeys) {
|
|
27
30
|
ConfirmationConfigKeys["SENDER_EMAIL_KEY"] = "senderEmail";
|
package/package.json
CHANGED
package/records/interfaces.d.ts
CHANGED
|
@@ -20,10 +20,13 @@ export declare enum RecordStatusExplanation {
|
|
|
20
20
|
STILL_PENDING = "STILL_PENDING",
|
|
21
21
|
ENTRY_DELETED = "ENTRY_DELETED"
|
|
22
22
|
}
|
|
23
|
+
export declare const RECORD_IDENTIFIER_DEFAULT: string;
|
|
24
|
+
export declare const RECORD_IDENTIFIER_SEPARATOR: string;
|
|
23
25
|
export interface RecordFilter {
|
|
24
26
|
page?: number;
|
|
25
27
|
size?: number;
|
|
26
28
|
subject?: string;
|
|
29
|
+
object?: string;
|
|
27
30
|
states?: RecordStates[];
|
|
28
31
|
infos?: string[];
|
|
29
32
|
elements?: string[];
|
|
@@ -37,6 +40,9 @@ export interface RecordFilter {
|
|
|
37
40
|
export interface EntryRecord {
|
|
38
41
|
id: string;
|
|
39
42
|
key: string;
|
|
43
|
+
subject: string;
|
|
44
|
+
object?: string;
|
|
45
|
+
recordIdentifier: string;
|
|
40
46
|
type: string;
|
|
41
47
|
name: string;
|
|
42
48
|
identifier: string;
|
|
@@ -74,6 +80,7 @@ export interface ExtractionResultRecord {
|
|
|
74
80
|
recordKey: string;
|
|
75
81
|
recordSerial: string;
|
|
76
82
|
recordValue: string;
|
|
83
|
+
recordObject: string;
|
|
77
84
|
}
|
|
78
85
|
export interface ExtractionResultDto {
|
|
79
86
|
subjectId: string;
|
|
@@ -86,6 +93,7 @@ export interface RecordDto {
|
|
|
86
93
|
infoKey?: string;
|
|
87
94
|
bodyKey: string;
|
|
88
95
|
subject: string;
|
|
96
|
+
object?: string;
|
|
89
97
|
creationTimestamp: number;
|
|
90
98
|
expirationTimestamp: number;
|
|
91
99
|
type: string;
|
package/records/interfaces.js
CHANGED
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.NotificationReportType =
|
|
4
4
|
exports.NotificationReportStatus =
|
|
5
5
|
exports.ExtractionConfigOperator =
|
|
6
|
+
exports.RECORD_IDENTIFIER_SEPARATOR =
|
|
7
|
+
exports.RECORD_IDENTIFIER_DEFAULT =
|
|
6
8
|
exports.RecordStatusExplanation =
|
|
7
9
|
exports.RecordStatus =
|
|
8
10
|
exports.RecordStates =
|
|
@@ -34,6 +36,8 @@ var RecordStatusExplanation;
|
|
|
34
36
|
(RecordStatusExplanation =
|
|
35
37
|
exports.RecordStatusExplanation || (exports.RecordStatusExplanation = {}))
|
|
36
38
|
);
|
|
39
|
+
exports.RECORD_IDENTIFIER_DEFAULT = "undefined";
|
|
40
|
+
exports.RECORD_IDENTIFIER_SEPARATOR = "|";
|
|
37
41
|
var ExtractionConfigOperator;
|
|
38
42
|
(function (ExtractionConfigOperator) {
|
|
39
43
|
ExtractionConfigOperator["AND"] = "AND";
|