@fairandsmart/consents-ce 2.0.13 → 2.0.15

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.
@@ -1,148 +1,98 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PREVIEW_TYPES =
4
- exports.PreviewType =
5
- exports.CONSENT_ORIGIN =
6
- exports.ConsentOrigin =
7
- exports.CONSENT_FORM_ORIENTATIONS =
8
- exports.FormLayoutOrientation =
9
- exports.LOGO_POSITIONS =
10
- exports.LogoPosition =
11
- exports.PREFERENCE_VALUE_TYPES =
12
- exports.PreferenceValueType =
13
- exports.PROCESSING_LEGAL_BASES =
14
- exports.ProcessingLegalBasis =
15
- exports.PROCESSING_PURPOSES =
16
- exports.ProcessingPurpose =
17
- exports.RETENTION_UNITS =
18
- exports.RetentionUnit =
19
- exports.DEFAULT_INFO_TAGS =
20
- exports.DefaultInfoTag =
21
- exports.VISIBILITIES =
22
- exports.Visibility =
23
- exports.ModelVersionType =
24
- exports.ModelVersionStatus =
25
- exports.MODEL_ENTRY_STATUSES =
26
- exports.ModelEntryStatus =
27
- void 0;
3
+ exports.PREVIEW_TYPES = exports.PreviewType = exports.CONSENT_ORIGIN = exports.ConsentOrigin = exports.CONSENT_FORM_ORIENTATIONS = exports.FormLayoutOrientation = exports.LOGO_POSITIONS = exports.LogoPosition = exports.PREFERENCE_VALUE_TYPES = exports.PreferenceValueType = exports.PROCESSING_LEGAL_BASES = exports.ProcessingLegalBasis = exports.PROCESSING_PURPOSES = exports.ProcessingPurpose = exports.RETENTION_UNITS = exports.RetentionUnit = exports.DEFAULT_INFO_TAGS = exports.DefaultInfoTag = exports.VISIBILITIES = exports.Visibility = exports.ModelVersionType = exports.ModelVersionStatus = exports.MODEL_ENTRY_STATUSES = exports.ModelEntryStatus = void 0;
28
4
  var ModelEntryStatus;
29
5
  (function (ModelEntryStatus) {
30
- ModelEntryStatus["ACTIVE"] = "ACTIVE";
31
- ModelEntryStatus["INACTIVE"] = "INACTIVE";
32
- ModelEntryStatus["DELETED"] = "DELETED";
33
- })(
34
- (ModelEntryStatus =
35
- exports.ModelEntryStatus || (exports.ModelEntryStatus = {})),
36
- );
6
+ ModelEntryStatus["ACTIVE"] = "ACTIVE";
7
+ ModelEntryStatus["INACTIVE"] = "INACTIVE";
8
+ ModelEntryStatus["DELETED"] = "DELETED";
9
+ })(ModelEntryStatus = exports.ModelEntryStatus || (exports.ModelEntryStatus = {}));
37
10
  exports.MODEL_ENTRY_STATUSES = Object.keys(ModelEntryStatus);
38
11
  var ModelVersionStatus;
39
12
  (function (ModelVersionStatus) {
40
- ModelVersionStatus["DRAFT"] = "DRAFT";
41
- ModelVersionStatus["ACTIVE"] = "ACTIVE";
42
- ModelVersionStatus["ARCHIVED"] = "ARCHIVED";
43
- })(
44
- (ModelVersionStatus =
45
- exports.ModelVersionStatus || (exports.ModelVersionStatus = {})),
46
- );
13
+ ModelVersionStatus["DRAFT"] = "DRAFT";
14
+ ModelVersionStatus["ACTIVE"] = "ACTIVE";
15
+ ModelVersionStatus["ARCHIVED"] = "ARCHIVED";
16
+ })(ModelVersionStatus = exports.ModelVersionStatus || (exports.ModelVersionStatus = {}));
47
17
  var ModelVersionType;
48
18
  (function (ModelVersionType) {
49
- ModelVersionType["MAJOR"] = "MAJOR";
50
- ModelVersionType["MINOR"] = "MINOR";
51
- })(
52
- (ModelVersionType =
53
- exports.ModelVersionType || (exports.ModelVersionType = {})),
54
- );
19
+ ModelVersionType["MAJOR"] = "MAJOR";
20
+ ModelVersionType["MINOR"] = "MINOR";
21
+ })(ModelVersionType = exports.ModelVersionType || (exports.ModelVersionType = {}));
55
22
  var Visibility;
56
23
  (function (Visibility) {
57
- Visibility["FORM_AND_RECEIPT"] = "FORM_AND_RECEIPT";
58
- Visibility["RECEIPT_ONLY"] = "RECEIPT_ONLY";
59
- Visibility["HIDDEN"] = "HIDDEN";
60
- })((Visibility = exports.Visibility || (exports.Visibility = {})));
24
+ Visibility["FORM_AND_RECEIPT"] = "FORM_AND_RECEIPT";
25
+ Visibility["RECEIPT_ONLY"] = "RECEIPT_ONLY";
26
+ Visibility["HIDDEN"] = "HIDDEN";
27
+ })(Visibility = exports.Visibility || (exports.Visibility = {}));
61
28
  exports.VISIBILITIES = Object.keys(Visibility);
62
29
  var DefaultInfoTag;
63
30
  (function (DefaultInfoTag) {
64
- DefaultInfoTag["DEFAULT_INFO_USER"] = "DEFAULT_INFO_USER";
65
- DefaultInfoTag["DEFAULT_INFO_OPERATOR"] = "DEFAULT_INFO_OPERATOR";
66
- DefaultInfoTag["DEFAULT_INFO_FORM"] = "DEFAULT_INFO_FORM";
67
- })((DefaultInfoTag = exports.DefaultInfoTag || (exports.DefaultInfoTag = {})));
31
+ DefaultInfoTag["DEFAULT_INFO_USER"] = "DEFAULT_INFO_USER";
32
+ DefaultInfoTag["DEFAULT_INFO_OPERATOR"] = "DEFAULT_INFO_OPERATOR";
33
+ DefaultInfoTag["DEFAULT_INFO_FORM"] = "DEFAULT_INFO_FORM";
34
+ })(DefaultInfoTag = exports.DefaultInfoTag || (exports.DefaultInfoTag = {}));
68
35
  exports.DEFAULT_INFO_TAGS = Object.keys(DefaultInfoTag);
69
36
  var RetentionUnit;
70
37
  (function (RetentionUnit) {
71
- RetentionUnit["YEAR"] = "YEAR";
72
- RetentionUnit["MONTH"] = "MONTH";
73
- RetentionUnit["WEEK"] = "WEEK";
74
- })((RetentionUnit = exports.RetentionUnit || (exports.RetentionUnit = {})));
38
+ RetentionUnit["YEAR"] = "YEAR";
39
+ RetentionUnit["MONTH"] = "MONTH";
40
+ RetentionUnit["WEEK"] = "WEEK";
41
+ })(RetentionUnit = exports.RetentionUnit || (exports.RetentionUnit = {}));
75
42
  exports.RETENTION_UNITS = Object.keys(RetentionUnit);
76
43
  var ProcessingPurpose;
77
44
  (function (ProcessingPurpose) {
78
- ProcessingPurpose["CONSENT_CORE_SERVICE"] = "CONSENT_CORE_SERVICE";
79
- ProcessingPurpose["CONSENT_IMPROVED_SERVICE"] = "CONSENT_IMPROVED_SERVICE";
80
- ProcessingPurpose["CONSENT_MARKETING"] = "CONSENT_MARKETING";
81
- ProcessingPurpose["CONSENT_THIRD_PART_SHARING"] =
82
- "CONSENT_THIRD_PART_SHARING";
83
- ProcessingPurpose["CONSENT_RESEARCH"] = "CONSENT_RESEARCH";
84
- })(
85
- (ProcessingPurpose =
86
- exports.ProcessingPurpose || (exports.ProcessingPurpose = {})),
87
- );
45
+ ProcessingPurpose["CONSENT_CORE_SERVICE"] = "CONSENT_CORE_SERVICE";
46
+ ProcessingPurpose["CONSENT_IMPROVED_SERVICE"] = "CONSENT_IMPROVED_SERVICE";
47
+ ProcessingPurpose["CONSENT_MARKETING"] = "CONSENT_MARKETING";
48
+ ProcessingPurpose["CONSENT_THIRD_PART_SHARING"] = "CONSENT_THIRD_PART_SHARING";
49
+ ProcessingPurpose["CONSENT_RESEARCH"] = "CONSENT_RESEARCH";
50
+ })(ProcessingPurpose = exports.ProcessingPurpose || (exports.ProcessingPurpose = {}));
88
51
  exports.PROCESSING_PURPOSES = Object.keys(ProcessingPurpose);
89
52
  var ProcessingLegalBasis;
90
53
  (function (ProcessingLegalBasis) {
91
- ProcessingLegalBasis["LEGAL_BASIS_CONSENT"] = "LEGAL_BASIS_CONSENT";
92
- ProcessingLegalBasis["LEGAL_BASIS_CONTRACT"] = "LEGAL_BASIS_CONTRACT";
93
- ProcessingLegalBasis["LEGAL_BASIS_LEGITIMATE_INTEREST"] =
94
- "LEGAL_BASIS_LEGITIMATE_INTEREST";
95
- ProcessingLegalBasis["LEGAL_BASIS_LEGAL_OBLIGATION"] =
96
- "LEGAL_BASIS_LEGAL_OBLIGATION";
97
- ProcessingLegalBasis["LEGAL_BASIS_PUBLIC_INTEREST"] =
98
- "LEGAL_BASIS_PUBLIC_INTEREST";
99
- ProcessingLegalBasis["LEGAL_BASIS_VITAL_INTEREST"] =
100
- "LEGAL_BASIS_VITAL_INTEREST";
101
- })(
102
- (ProcessingLegalBasis =
103
- exports.ProcessingLegalBasis || (exports.ProcessingLegalBasis = {})),
104
- );
54
+ ProcessingLegalBasis["LEGAL_BASIS_CONSENT"] = "LEGAL_BASIS_CONSENT";
55
+ ProcessingLegalBasis["LEGAL_BASIS_CONTRACT"] = "LEGAL_BASIS_CONTRACT";
56
+ ProcessingLegalBasis["LEGAL_BASIS_LEGITIMATE_INTEREST"] = "LEGAL_BASIS_LEGITIMATE_INTEREST";
57
+ ProcessingLegalBasis["LEGAL_BASIS_LEGAL_OBLIGATION"] = "LEGAL_BASIS_LEGAL_OBLIGATION";
58
+ ProcessingLegalBasis["LEGAL_BASIS_PUBLIC_INTEREST"] = "LEGAL_BASIS_PUBLIC_INTEREST";
59
+ ProcessingLegalBasis["LEGAL_BASIS_VITAL_INTEREST"] = "LEGAL_BASIS_VITAL_INTEREST";
60
+ })(ProcessingLegalBasis = exports.ProcessingLegalBasis || (exports.ProcessingLegalBasis = {}));
105
61
  exports.PROCESSING_LEGAL_BASES = Object.keys(ProcessingLegalBasis);
106
62
  var PreferenceValueType;
107
63
  (function (PreferenceValueType) {
108
- PreferenceValueType["TOGGLE"] = "TOGGLE";
109
- PreferenceValueType["CHECKBOXES"] = "CHECKBOXES";
110
- PreferenceValueType["RADIO_BUTTONS"] = "RADIO_BUTTONS";
111
- PreferenceValueType["LIST_SINGLE"] = "LIST_SINGLE";
112
- PreferenceValueType["LIST_MULTI"] = "LIST_MULTI";
113
- PreferenceValueType["FREE_TEXT"] = "FREE_TEXT";
114
- })(
115
- (PreferenceValueType =
116
- exports.PreferenceValueType || (exports.PreferenceValueType = {})),
117
- );
64
+ PreferenceValueType["TOGGLE"] = "TOGGLE";
65
+ PreferenceValueType["CHECKBOXES"] = "CHECKBOXES";
66
+ PreferenceValueType["RADIO_BUTTONS"] = "RADIO_BUTTONS";
67
+ PreferenceValueType["LIST_SINGLE"] = "LIST_SINGLE";
68
+ PreferenceValueType["LIST_MULTI"] = "LIST_MULTI";
69
+ PreferenceValueType["FREE_TEXT"] = "FREE_TEXT";
70
+ })(PreferenceValueType = exports.PreferenceValueType || (exports.PreferenceValueType = {}));
118
71
  exports.PREFERENCE_VALUE_TYPES = Object.keys(PreferenceValueType);
119
72
  var LogoPosition;
120
73
  (function (LogoPosition) {
121
- LogoPosition["LEFT"] = "LEFT";
122
- LogoPosition["CENTER"] = "CENTER";
123
- LogoPosition["RIGHT"] = "RIGHT";
124
- })((LogoPosition = exports.LogoPosition || (exports.LogoPosition = {})));
74
+ LogoPosition["LEFT"] = "LEFT";
75
+ LogoPosition["CENTER"] = "CENTER";
76
+ LogoPosition["RIGHT"] = "RIGHT";
77
+ })(LogoPosition = exports.LogoPosition || (exports.LogoPosition = {}));
125
78
  exports.LOGO_POSITIONS = Object.keys(LogoPosition);
126
79
  var FormLayoutOrientation;
127
80
  (function (FormLayoutOrientation) {
128
- FormLayoutOrientation["HORIZONTAL"] = "HORIZONTAL";
129
- FormLayoutOrientation["VERTICAL"] = "VERTICAL";
130
- })(
131
- (FormLayoutOrientation =
132
- exports.FormLayoutOrientation || (exports.FormLayoutOrientation = {})),
133
- );
81
+ FormLayoutOrientation["HORIZONTAL"] = "HORIZONTAL";
82
+ FormLayoutOrientation["VERTICAL"] = "VERTICAL";
83
+ })(FormLayoutOrientation = exports.FormLayoutOrientation || (exports.FormLayoutOrientation = {}));
134
84
  exports.CONSENT_FORM_ORIENTATIONS = Object.keys(FormLayoutOrientation);
135
85
  var ConsentOrigin;
136
86
  (function (ConsentOrigin) {
137
- ConsentOrigin["WEBFORM"] = "WEBFORM";
138
- ConsentOrigin["OPERATOR"] = "OPERATOR";
139
- ConsentOrigin["USER"] = "USER";
140
- })((ConsentOrigin = exports.ConsentOrigin || (exports.ConsentOrigin = {})));
87
+ ConsentOrigin["WEBFORM"] = "WEBFORM";
88
+ ConsentOrigin["OPERATOR"] = "OPERATOR";
89
+ ConsentOrigin["USER"] = "USER";
90
+ })(ConsentOrigin = exports.ConsentOrigin || (exports.ConsentOrigin = {}));
141
91
  exports.CONSENT_ORIGIN = Object.keys(ConsentOrigin);
142
92
  var PreviewType;
143
93
  (function (PreviewType) {
144
- PreviewType["FORM"] = "FORM";
145
- PreviewType["RECEIPT"] = "RECEIPT";
146
- PreviewType["EMAIL"] = "EMAIL";
147
- })((PreviewType = exports.PreviewType || (exports.PreviewType = {})));
94
+ PreviewType["FORM"] = "FORM";
95
+ PreviewType["RECEIPT"] = "RECEIPT";
96
+ PreviewType["EMAIL"] = "EMAIL";
97
+ })(PreviewType = exports.PreviewType || (exports.PreviewType = {}));
148
98
  exports.PREVIEW_TYPES = Object.keys(PreviewType);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairandsmart/consents-ce",
3
- "version": "2.0.13",
3
+ "version": "2.0.15",
4
4
  "description": "TypeScript mappings for the Fair&Smart's Right Consents Community features",
5
5
  "sideEffects": false,
6
6
  "scripts": {},
package/peers/api.js CHANGED
@@ -1,51 +1,46 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deletePeer =
4
- exports.updatePeer =
5
- exports.getPeer =
6
- exports.createPeer =
7
- exports.listPeers =
8
- void 0;
3
+ exports.deletePeer = exports.updatePeer = exports.getPeer = exports.createPeer = exports.listPeers = void 0;
9
4
  var api_1 = require("../api");
10
5
  function listPeers(options) {
11
- return api_1.RightConsents.http({
12
- method: "GET",
13
- url: "".concat(api_1.RightConsents.config.apiRoot, "/peers"),
14
- options: options,
15
- });
6
+ return api_1.RightConsents.http({
7
+ method: 'GET',
8
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/peers"),
9
+ options: options
10
+ });
16
11
  }
17
12
  exports.listPeers = listPeers;
18
13
  function createPeer(peerDto, options) {
19
- return api_1.RightConsents.http({
20
- method: "POST",
21
- url: "".concat(api_1.RightConsents.config.apiRoot, "/peers"),
22
- body: peerDto,
23
- options: options,
24
- });
14
+ return api_1.RightConsents.http({
15
+ method: 'POST',
16
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/peers"),
17
+ body: peerDto,
18
+ options: options
19
+ });
25
20
  }
26
21
  exports.createPeer = createPeer;
27
22
  function getPeer(id, options) {
28
- return api_1.RightConsents.http({
29
- method: "GET",
30
- url: "".concat(api_1.RightConsents.config.apiRoot, "/peers/").concat(id),
31
- options: options,
32
- });
23
+ return api_1.RightConsents.http({
24
+ method: 'GET',
25
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/peers/").concat(id),
26
+ options: options
27
+ });
33
28
  }
34
29
  exports.getPeer = getPeer;
35
30
  function updatePeer(id, peer, options) {
36
- return api_1.RightConsents.http({
37
- method: "PUT",
38
- url: "".concat(api_1.RightConsents.config.apiRoot, "/peers/").concat(id),
39
- body: peer,
40
- options: options,
41
- });
31
+ return api_1.RightConsents.http({
32
+ method: 'PUT',
33
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/peers/").concat(id),
34
+ body: peer,
35
+ options: options
36
+ });
42
37
  }
43
38
  exports.updatePeer = updatePeer;
44
39
  function deletePeer(id, options) {
45
- return api_1.RightConsents.http({
46
- method: "DELETE",
47
- url: "".concat(api_1.RightConsents.config.apiRoot, "/peers/").concat(id),
48
- options: options,
49
- });
40
+ return api_1.RightConsents.http({
41
+ method: 'DELETE',
42
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/peers/").concat(id),
43
+ options: options
44
+ });
50
45
  }
51
46
  exports.deletePeer = deletePeer;
package/peers/index.js CHANGED
@@ -1,34 +1,18 @@
1
1
  "use strict";
2
- var __createBinding =
3
- (this && this.__createBinding) ||
4
- (Object.create
5
- ? function (o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (
9
- !desc ||
10
- ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)
11
- ) {
12
- desc = {
13
- enumerable: true,
14
- get: function () {
15
- return m[k];
16
- },
17
- };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }
21
- : function (o, m, k, k2) {
22
- if (k2 === undefined) k2 = k;
23
- o[k2] = m[k];
24
- });
25
- var __exportStar =
26
- (this && this.__exportStar) ||
27
- function (m, exports) {
28
- for (var p in m)
29
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p))
30
- __createBinding(exports, m, p);
31
- };
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
32
16
  Object.defineProperty(exports, "__esModule", { value: true });
33
17
  __exportStar(require("./interfaces"), exports);
34
18
  __exportStar(require("./api"), exports);
package/receipts/api.js CHANGED
@@ -3,14 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getReceiptPdf = void 0;
4
4
  var api_1 = require("../api");
5
5
  function getReceiptPdf(transactionId, theme, options) {
6
- return api_1.RightConsents.http({
7
- method: "GET",
8
- url: ""
9
- .concat(api_1.RightConsents.config.apiRoot, "/receipts/")
10
- .concat(transactionId),
11
- params: { theme: theme, format: "application/pdf" },
12
- responseType: "arraybuffer",
13
- options: options,
14
- });
6
+ return api_1.RightConsents.http({
7
+ method: 'GET',
8
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/receipts/").concat(transactionId),
9
+ params: { theme: theme, format: 'application/pdf' },
10
+ responseType: 'arraybuffer',
11
+ options: options
12
+ });
15
13
  }
16
14
  exports.getReceiptPdf = getReceiptPdf;
package/receipts/index.js CHANGED
@@ -1,33 +1,17 @@
1
1
  "use strict";
2
- var __createBinding =
3
- (this && this.__createBinding) ||
4
- (Object.create
5
- ? function (o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (
9
- !desc ||
10
- ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)
11
- ) {
12
- desc = {
13
- enumerable: true,
14
- get: function () {
15
- return m[k];
16
- },
17
- };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }
21
- : function (o, m, k, k2) {
22
- if (k2 === undefined) k2 = k;
23
- o[k2] = m[k];
24
- });
25
- var __exportStar =
26
- (this && this.__exportStar) ||
27
- function (m, exports) {
28
- for (var p in m)
29
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p))
30
- __createBinding(exports, m, p);
31
- };
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
32
16
  Object.defineProperty(exports, "__esModule", { value: true });
33
17
  __exportStar(require("./api"), exports);
package/records/api.js CHANGED
@@ -1,62 +1,57 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.exportRecordsCsv =
4
- exports.exportRecords =
5
- exports.extractRecordsCsv =
6
- exports.extractRecords =
7
- exports.listRecords =
8
- void 0;
3
+ exports.exportRecordsCsv = exports.exportRecords = exports.extractRecordsCsv = exports.extractRecords = exports.listRecords = void 0;
9
4
  var api_1 = require("../api");
10
5
  function listRecords(filter, options) {
11
- return api_1.RightConsents.http({
12
- method: "GET",
13
- url: "".concat(api_1.RightConsents.config.apiRoot, "/records"),
14
- params: filter,
15
- options: options,
16
- });
6
+ return api_1.RightConsents.http({
7
+ method: 'GET',
8
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/records"),
9
+ params: filter,
10
+ options: options
11
+ });
17
12
  }
18
13
  exports.listRecords = listRecords;
19
14
  function extractRecords(filter, options) {
20
- return api_1.RightConsents.http({
21
- method: "POST",
22
- url: "".concat(api_1.RightConsents.config.apiRoot, "/records/extraction"),
23
- body: filter,
24
- options: options,
25
- });
15
+ return api_1.RightConsents.http({
16
+ method: 'POST',
17
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/records/extraction"),
18
+ body: filter,
19
+ options: options
20
+ });
26
21
  }
27
22
  exports.extractRecords = extractRecords;
28
23
  function extractRecordsCsv(filter, options) {
29
- return api_1.RightConsents.http({
30
- method: "POST",
31
- url: "".concat(api_1.RightConsents.config.apiRoot, "/records/extraction"),
32
- body: filter,
33
- headers: {
34
- Accept: "text/csv",
35
- },
36
- responseType: "text",
37
- options: options,
38
- });
24
+ return api_1.RightConsents.http({
25
+ method: 'POST',
26
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/records/extraction"),
27
+ body: filter,
28
+ headers: {
29
+ Accept: 'text/csv'
30
+ },
31
+ responseType: 'text',
32
+ options: options
33
+ });
39
34
  }
40
35
  exports.extractRecordsCsv = extractRecordsCsv;
41
36
  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
- });
37
+ return api_1.RightConsents.http({
38
+ method: 'POST',
39
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/records/export"),
40
+ body: filter,
41
+ options: options
42
+ });
48
43
  }
49
44
  exports.exportRecords = exportRecords;
50
45
  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
- });
46
+ return api_1.RightConsents.http({
47
+ method: 'POST',
48
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/records/export"),
49
+ body: filter,
50
+ headers: {
51
+ Accept: 'text/csv'
52
+ },
53
+ responseType: 'text',
54
+ options: options
55
+ });
61
56
  }
62
57
  exports.exportRecordsCsv = exportRecordsCsv;
package/records/index.js CHANGED
@@ -1,34 +1,18 @@
1
1
  "use strict";
2
- var __createBinding =
3
- (this && this.__createBinding) ||
4
- (Object.create
5
- ? function (o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (
9
- !desc ||
10
- ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)
11
- ) {
12
- desc = {
13
- enumerable: true,
14
- get: function () {
15
- return m[k];
16
- },
17
- };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }
21
- : function (o, m, k, k2) {
22
- if (k2 === undefined) k2 = k;
23
- o[k2] = m[k];
24
- });
25
- var __exportStar =
26
- (this && this.__exportStar) ||
27
- function (m, exports) {
28
- for (var p in m)
29
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p))
30
- __createBinding(exports, m, p);
31
- };
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
32
16
  Object.defineProperty(exports, "__esModule", { value: true });
33
17
  __exportStar(require("./interfaces"), exports);
34
18
  __exportStar(require("./api"), exports);