@fairandsmart/consents-ce 1.3.11 → 1.3.14

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.
@@ -43,8 +43,8 @@ export interface ConsentContext {
43
43
  updatable?: boolean;
44
44
  /** Silent Consent collect disable fetching existing values for the declared subject */
45
45
  silent?: boolean;
46
- /** Any relevant informations about the user that will be persisted in the receipt */
47
- userinfos?: {
46
+ /** Any relevant informations about the subject that will be persisted in the receipt */
47
+ subjectInfos?: {
48
48
  [key: string]: string;
49
49
  };
50
50
  /** Any other relevant informations about the context that will be persisted in the record */
@@ -92,6 +92,7 @@ export interface Processing extends ModelData {
92
92
  name: string;
93
93
  value: string;
94
94
  }[];
95
+ refusable: boolean;
95
96
  }
96
97
  export declare enum PreferenceValueType {
97
98
  TOGGLE = "TOGGLE",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairandsmart/consents-ce",
3
- "version": "1.3.11",
3
+ "version": "1.3.14",
4
4
  "description": "TypeScript mappings for the Fair&Smart's Right Consents Community features",
5
5
  "sideEffects": false,
6
6
  "scripts": {},
package/records/api.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { Observable } from 'rxjs';
2
- import { ExtractionConfigDto, ExtractionResultDto, RecordsMap } from './interfaces';
2
+ import { ExtractionFilter, ExtractionResultDto, RecordFilter, RecordsMap } from './interfaces';
3
3
  import { RCApiOptions } from '../http';
4
- export declare function listRecordsOfSubject(subject: string, options?: RCApiOptions): Observable<RecordsMap>;
5
- export declare function extractRecords(config: ExtractionConfigDto, options?: RCApiOptions): Observable<ExtractionResultDto[]>;
6
- export declare function extractRecordsCsv(config: ExtractionConfigDto, options?: RCApiOptions): Observable<string>;
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.listRecordsOfSubject =
5
+ exports.listRecords =
6
6
  void 0;
7
7
  var api_1 = require("../api");
8
- function listRecordsOfSubject(subject, options) {
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: { subject: subject },
12
+ params: filter,
13
13
  options: options,
14
14
  });
15
15
  }
16
- exports.listRecordsOfSubject = listRecordsOfSubject;
17
- function extractRecords(config, options) {
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: config,
21
+ body: filter,
22
22
  options: options,
23
23
  });
24
24
  }
25
25
  exports.extractRecords = extractRecords;
26
- function extractRecordsCsv(config, options) {
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: config,
30
+ body: filter,
31
31
  headers: {
32
32
  Accept: "text/csv",
33
33
  },
@@ -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 ExtractionConfigDto {
64
- condition: ExtractionConfigCondition;
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
- recordKey: string;
71
- recordSerial: string;
72
- recordValue: string;
82
+ records: ExtractionResultRecord[];
73
83
  }
74
84
  export interface RecordDto {
75
85
  serial: string;
@@ -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";