@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.
- package/consents/api.js +42 -50
- package/consents/helpers.js +16 -17
- package/consents/index.js +14 -30
- package/consents/interfaces.js +17 -27
- package/forms/consent-collector.js +94 -113
- package/forms/index.js +14 -30
- package/keys/api.js +16 -16
- package/keys/index.js +14 -30
- package/keys/interfaces.js +3 -3
- package/models/api.js +122 -191
- package/models/helpers.js +14 -23
- package/models/index.js +14 -30
- package/models/interfaces.d.ts +7 -1
- package/models/interfaces.js +59 -109
- package/package.json +1 -1
- package/peers/api.js +28 -33
- package/peers/index.js +14 -30
- package/receipts/api.js +7 -9
- package/receipts/index.js +14 -30
- package/records/api.js +39 -44
- package/records/index.js +14 -30
- package/records/interfaces.js +39 -61
- package/statistics/api.js +5 -5
- package/statistics/index.js +14 -30
- package/statistics/interfaces.js +4 -4
- package/subjects/api.js +45 -65
- package/subjects/index.js +14 -30
- package/system/api.js +15 -15
- package/system/index.js +14 -30
- package/tokens/api.js +7 -7
- package/tokens/index.js +14 -30
- package/users/api.js +15 -15
- package/users/index.js +14 -30
- package/webhooks/api.js +32 -43
- package/webhooks/index.js +14 -30
- package/webhooks/interfaces.js +2 -5
- package/fairandsmart-consents-ce-2.0.13.tgz +0 -0
package/models/interfaces.js
CHANGED
|
@@ -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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
50
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
})(
|
|
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
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
})(
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
})(
|
|
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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"
|
|
83
|
-
|
|
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
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
"
|
|
97
|
-
|
|
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
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
})(
|
|
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
|
-
|
|
129
|
-
|
|
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
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
})(
|
|
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
})(
|
|
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
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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);
|