@fairandsmart/consents-ce 1.3.9 → 1.3.12
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 +6 -0
- package/models/interfaces.d.ts +0 -2
- package/package.json +1 -1
- package/records/api.d.ts +5 -4
- package/records/api.js +8 -8
- package/records/interfaces.d.ts +15 -5
- package/records/interfaces.js +9 -0
package/consents/interfaces.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ export interface ConsentContext {
|
|
|
41
41
|
validity?: string;
|
|
42
42
|
/** Specifies whether the consent can be updated afterwards. */
|
|
43
43
|
updatable?: boolean;
|
|
44
|
+
/** Silent Consent collect disable fetching existing values for the declared subject */
|
|
45
|
+
silent?: boolean;
|
|
44
46
|
/** Any relevant informations about the user that will be persisted in the receipt */
|
|
45
47
|
userinfos?: {
|
|
46
48
|
[key: string]: string;
|
|
@@ -63,6 +65,10 @@ export interface ConsentContext {
|
|
|
63
65
|
confirmationConfig?: {
|
|
64
66
|
[key: string]: string;
|
|
65
67
|
};
|
|
68
|
+
/** The reference to the 'theme' that will apply */
|
|
69
|
+
theme?: string;
|
|
70
|
+
/** The reference to the 'email' mode for notification */
|
|
71
|
+
notification?: string;
|
|
66
72
|
}
|
|
67
73
|
/** Used to generate a Receipt from a transaction id */
|
|
68
74
|
export interface ConsentTransaction {
|
package/models/interfaces.d.ts
CHANGED
|
@@ -147,8 +147,6 @@ export interface FormLayout extends ModelData {
|
|
|
147
147
|
type: 'layout';
|
|
148
148
|
info: string;
|
|
149
149
|
elements: string[];
|
|
150
|
-
theme?: string;
|
|
151
|
-
notification?: string;
|
|
152
150
|
orientation?: FormLayoutOrientation;
|
|
153
151
|
existingElementsVisible?: boolean;
|
|
154
152
|
validityVisible?: boolean;
|
package/package.json
CHANGED
package/records/api.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import {
|
|
2
|
+
import { ExtractionFilter, ExtractionResultDto, RecordFilter, RecordsMap } from './interfaces';
|
|
3
3
|
import { RCApiOptions } from '../http';
|
|
4
|
-
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
4
|
+
import { CollectionPage } from '../common';
|
|
5
|
+
export declare function listRecords(filter: RecordFilter, options?: RCApiOptions): Observable<RecordsMap>;
|
|
6
|
+
export declare function extractRecords(filter: ExtractionFilter, options?: RCApiOptions): Observable<CollectionPage<ExtractionResultDto>>;
|
|
7
|
+
export declare function extractRecordsCsv(filter: ExtractionFilter, options?: RCApiOptions): Observable<string>;
|
package/records/api.js
CHANGED
|
@@ -2,32 +2,32 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.extractRecordsCsv =
|
|
4
4
|
exports.extractRecords =
|
|
5
|
-
exports.
|
|
5
|
+
exports.listRecords =
|
|
6
6
|
void 0;
|
|
7
7
|
var api_1 = require("../api");
|
|
8
|
-
function
|
|
8
|
+
function listRecords(filter, options) {
|
|
9
9
|
return api_1.RightConsents.http({
|
|
10
10
|
method: "GET",
|
|
11
11
|
url: "".concat(api_1.RightConsents.config.apiRoot, "/records"),
|
|
12
|
-
params:
|
|
12
|
+
params: filter,
|
|
13
13
|
options: options,
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
exports.
|
|
17
|
-
function extractRecords(
|
|
16
|
+
exports.listRecords = listRecords;
|
|
17
|
+
function extractRecords(filter, options) {
|
|
18
18
|
return api_1.RightConsents.http({
|
|
19
19
|
method: "POST",
|
|
20
20
|
url: "".concat(api_1.RightConsents.config.apiRoot, "/records/extraction"),
|
|
21
|
-
body:
|
|
21
|
+
body: filter,
|
|
22
22
|
options: options,
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
exports.extractRecords = extractRecords;
|
|
26
|
-
function extractRecordsCsv(
|
|
26
|
+
function extractRecordsCsv(filter, options) {
|
|
27
27
|
return api_1.RightConsents.http({
|
|
28
28
|
method: "POST",
|
|
29
29
|
url: "".concat(api_1.RightConsents.config.apiRoot, "/records/extraction"),
|
|
30
|
-
body:
|
|
30
|
+
body: filter,
|
|
31
31
|
headers: {
|
|
32
32
|
Accept: "text/csv",
|
|
33
33
|
},
|
package/records/interfaces.d.ts
CHANGED
|
@@ -55,21 +55,31 @@ export interface OperatorLogElement {
|
|
|
55
55
|
identifier: string;
|
|
56
56
|
value: string;
|
|
57
57
|
}
|
|
58
|
+
export declare enum ExtractionConfigOperator {
|
|
59
|
+
AND = "AND",
|
|
60
|
+
OR = "OR"
|
|
61
|
+
}
|
|
58
62
|
export interface ExtractionConfigCondition {
|
|
59
63
|
key: string;
|
|
60
64
|
value: string;
|
|
61
65
|
regexpValue: boolean;
|
|
62
66
|
}
|
|
63
|
-
export interface
|
|
64
|
-
|
|
67
|
+
export interface ExtractionFilter {
|
|
68
|
+
page: number;
|
|
69
|
+
size: number;
|
|
70
|
+
operator: ExtractionConfigOperator;
|
|
71
|
+
conditions: ExtractionConfigCondition[];
|
|
72
|
+
}
|
|
73
|
+
export interface ExtractionResultRecord {
|
|
74
|
+
recordKey: string;
|
|
75
|
+
recordSerial: string;
|
|
76
|
+
recordValue: string;
|
|
65
77
|
}
|
|
66
78
|
export interface ExtractionResultDto {
|
|
67
79
|
subjectId: string;
|
|
68
80
|
subjectName: string;
|
|
69
81
|
subjectEmail: string;
|
|
70
|
-
|
|
71
|
-
recordSerial: string;
|
|
72
|
-
recordValue: string;
|
|
82
|
+
records: ExtractionResultRecord[];
|
|
73
83
|
}
|
|
74
84
|
export interface RecordDto {
|
|
75
85
|
serial: string;
|
package/records/interfaces.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NotificationReportType =
|
|
4
4
|
exports.NotificationReportStatus =
|
|
5
|
+
exports.ExtractionConfigOperator =
|
|
5
6
|
exports.RecordStatusExplanation =
|
|
6
7
|
exports.RecordStatus =
|
|
7
8
|
exports.RecordStates =
|
|
@@ -33,6 +34,14 @@ var RecordStatusExplanation;
|
|
|
33
34
|
(RecordStatusExplanation =
|
|
34
35
|
exports.RecordStatusExplanation || (exports.RecordStatusExplanation = {}))
|
|
35
36
|
);
|
|
37
|
+
var ExtractionConfigOperator;
|
|
38
|
+
(function (ExtractionConfigOperator) {
|
|
39
|
+
ExtractionConfigOperator["AND"] = "AND";
|
|
40
|
+
ExtractionConfigOperator["OR"] = "OR";
|
|
41
|
+
})(
|
|
42
|
+
(ExtractionConfigOperator =
|
|
43
|
+
exports.ExtractionConfigOperator || (exports.ExtractionConfigOperator = {}))
|
|
44
|
+
);
|
|
36
45
|
var NotificationReportStatus;
|
|
37
46
|
(function (NotificationReportStatus) {
|
|
38
47
|
NotificationReportStatus["SENT"] = "SENT";
|