@fairandsmart/consents-ce 2.0.9 → 2.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairandsmart/consents-ce",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
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,7 +1,9 @@
1
1
  import { Observable } from 'rxjs';
2
- import { ExtractionFilter, ExtractionResultDto, RecordFilter, RecordsMap } from './interfaces';
2
+ import { ExtractionFilter, ExtractionResultDto, RecordFilter, RecordsMap, RecordDto } from './interfaces';
3
3
  import { RCApiOptions } from '../http';
4
4
  import { CollectionPage } from '../common';
5
5
  export declare function listRecords(filter: RecordFilter, options?: RCApiOptions): Observable<RecordsMap>;
6
6
  export declare function extractRecords(filter: ExtractionFilter, options?: RCApiOptions): Observable<CollectionPage<ExtractionResultDto>>;
7
7
  export declare function extractRecordsCsv(filter: ExtractionFilter, options?: RCApiOptions): Observable<string>;
8
+ export declare function exportRecords(filter: RecordFilter, options?: RCApiOptions): Observable<CollectionPage<RecordDto>>;
9
+ export declare function exportRecordsCsv(filter: ExtractionFilter, options?: RCApiOptions): Observable<string>;
package/records/api.js CHANGED
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.extractRecordsCsv =
3
+ exports.exportRecordsCsv =
4
+ exports.exportRecords =
5
+ exports.extractRecordsCsv =
4
6
  exports.extractRecords =
5
7
  exports.listRecords =
6
8
  void 0;
@@ -36,3 +38,25 @@ function extractRecordsCsv(filter, options) {
36
38
  });
37
39
  }
38
40
  exports.extractRecordsCsv = extractRecordsCsv;
41
+ function exportRecords(filter, options) {
42
+ return api_1.RightConsents.http({
43
+ method: "POST",
44
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/records/export"),
45
+ body: filter,
46
+ options: options,
47
+ });
48
+ }
49
+ exports.exportRecords = exportRecords;
50
+ function exportRecordsCsv(filter, options) {
51
+ return api_1.RightConsents.http({
52
+ method: "POST",
53
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/records/export"),
54
+ body: filter,
55
+ headers: {
56
+ Accept: "text/csv",
57
+ },
58
+ responseType: "text",
59
+ options: options,
60
+ });
61
+ }
62
+ exports.exportRecordsCsv = exportRecordsCsv;
@@ -34,6 +34,11 @@ export interface RecordFilter {
34
34
  origin?: string;
35
35
  after?: number;
36
36
  before?: number;
37
+ creaafter?: number;
38
+ creabefore?: number;
39
+ expafter?: number;
40
+ expbefore?: number;
41
+ bodykey?: string;
37
42
  value?: string;
38
43
  order?: string;
39
44
  direction?: SortDirection;
Binary file