@fairandsmart/consents-ce 3.1.3 → 3.1.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/interfaces.d.ts
CHANGED
|
@@ -19,6 +19,10 @@ export declare enum ConfirmationConfigKeys {
|
|
|
19
19
|
SENDER_EMAIL_KEY = "senderEmail",
|
|
20
20
|
SENDER_PHONE_KEY = "senderPhone"
|
|
21
21
|
}
|
|
22
|
+
export declare enum DisplayChoicesInEmail {
|
|
23
|
+
NONE = "NONE",
|
|
24
|
+
SIMPLE = "SIMPLE"
|
|
25
|
+
}
|
|
22
26
|
/**
|
|
23
27
|
* The ConsentContext is used to generate a token. This token is used:
|
|
24
28
|
* - To generate a form in a browser for the user to fill
|
|
@@ -78,6 +82,10 @@ export interface ConsentContext {
|
|
|
78
82
|
sendInvitation?: boolean;
|
|
79
83
|
/** used to tell where consent can be managed if needed */
|
|
80
84
|
managementUrl?: string;
|
|
85
|
+
/** Delay before redirecting the user to the callback URL (in milliseconds). */
|
|
86
|
+
callbackTriggerDelay?: number;
|
|
87
|
+
/** Choices have to be displayed in confirmation email or not */
|
|
88
|
+
displayChoicesInEmail?: DisplayChoicesInEmail;
|
|
81
89
|
}
|
|
82
90
|
export interface ConsentTransaction {
|
|
83
91
|
id: string;
|
package/consents/interfaces.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConfirmationConfigKeys = exports.SubjectInfosKeys = exports.CONFIRMATION_TYPES = exports.Confirmation = void 0;
|
|
3
|
+
exports.DisplayChoicesInEmail = exports.ConfirmationConfigKeys = exports.SubjectInfosKeys = exports.CONFIRMATION_TYPES = exports.Confirmation = void 0;
|
|
4
4
|
var Confirmation;
|
|
5
5
|
(function (Confirmation) {
|
|
6
6
|
Confirmation["NONE"] = "NONE";
|
|
@@ -24,3 +24,8 @@ var ConfirmationConfigKeys;
|
|
|
24
24
|
ConfirmationConfigKeys["SENDER_EMAIL_KEY"] = "senderEmail";
|
|
25
25
|
ConfirmationConfigKeys["SENDER_PHONE_KEY"] = "senderPhone";
|
|
26
26
|
})(ConfirmationConfigKeys = exports.ConfirmationConfigKeys || (exports.ConfirmationConfigKeys = {}));
|
|
27
|
+
var DisplayChoicesInEmail;
|
|
28
|
+
(function (DisplayChoicesInEmail) {
|
|
29
|
+
DisplayChoicesInEmail["NONE"] = "NONE";
|
|
30
|
+
DisplayChoicesInEmail["SIMPLE"] = "SIMPLE";
|
|
31
|
+
})(DisplayChoicesInEmail = exports.DisplayChoicesInEmail || (exports.DisplayChoicesInEmail = {}));
|