@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/records/interfaces.js
CHANGED
|
@@ -1,75 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotificationReportType =
|
|
4
|
-
exports.NotificationReportStatus =
|
|
5
|
-
exports.ExtractionConfigOperator =
|
|
6
|
-
exports.RECORD_IDENTIFIER_SEPARATOR =
|
|
7
|
-
exports.RECORD_IDENTIFIER_DEFAULT =
|
|
8
|
-
exports.RecordStatusExplanation =
|
|
9
|
-
exports.RecordStatus =
|
|
10
|
-
exports.RecordStates =
|
|
11
|
-
void 0;
|
|
3
|
+
exports.NotificationReportType = exports.NotificationReportStatus = exports.ExtractionConfigOperator = exports.RECORD_IDENTIFIER_SEPARATOR = exports.RECORD_IDENTIFIER_DEFAULT = exports.RecordStatusExplanation = exports.RecordStatus = exports.RecordStates = void 0;
|
|
12
4
|
var RecordStates;
|
|
13
5
|
(function (RecordStates) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
})(
|
|
6
|
+
RecordStates["PENDING"] = "PENDING";
|
|
7
|
+
RecordStates["COMMITTED"] = "COMMITTED";
|
|
8
|
+
RecordStates["DELETED"] = "DELETED";
|
|
9
|
+
})(RecordStates = exports.RecordStates || (exports.RecordStates = {}));
|
|
18
10
|
var RecordStatus;
|
|
19
11
|
(function (RecordStatus) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})(
|
|
12
|
+
RecordStatus["VALID"] = "VALID";
|
|
13
|
+
RecordStatus["OBSOLETE"] = "OBSOLETE";
|
|
14
|
+
RecordStatus["EXPIRED"] = "EXPIRED";
|
|
15
|
+
RecordStatus["IRRELEVANT"] = "IRRELEVANT";
|
|
16
|
+
RecordStatus["UNKNOWN"] = "UNKNOWN";
|
|
17
|
+
})(RecordStatus = exports.RecordStatus || (exports.RecordStatus = {}));
|
|
26
18
|
var RecordStatusExplanation;
|
|
27
19
|
(function (RecordStatusExplanation) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
})(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
);
|
|
39
|
-
exports.RECORD_IDENTIFIER_DEFAULT = "undefined";
|
|
40
|
-
exports.RECORD_IDENTIFIER_SEPARATOR = "|";
|
|
20
|
+
RecordStatusExplanation["LATEST_VALID"] = "LATEST_VALID";
|
|
21
|
+
RecordStatusExplanation["OBSOLETE"] = "OBSOLETE";
|
|
22
|
+
RecordStatusExplanation["EXPIRED"] = "EXPIRED";
|
|
23
|
+
RecordStatusExplanation["INFO_SERIAL_ARCHIVED"] = "INFO_SERIAL_ARCHIVED";
|
|
24
|
+
RecordStatusExplanation["BODY_SERIAL_ARCHIVED"] = "BODY_SERIAL_ARCHIVED";
|
|
25
|
+
RecordStatusExplanation["STILL_PENDING"] = "STILL_PENDING";
|
|
26
|
+
RecordStatusExplanation["ENTRY_DELETED"] = "ENTRY_DELETED";
|
|
27
|
+
})(RecordStatusExplanation = exports.RecordStatusExplanation || (exports.RecordStatusExplanation = {}));
|
|
28
|
+
exports.RECORD_IDENTIFIER_DEFAULT = 'undefined';
|
|
29
|
+
exports.RECORD_IDENTIFIER_SEPARATOR = '|';
|
|
41
30
|
var ExtractionConfigOperator;
|
|
42
31
|
(function (ExtractionConfigOperator) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
})(
|
|
46
|
-
(ExtractionConfigOperator =
|
|
47
|
-
exports.ExtractionConfigOperator ||
|
|
48
|
-
(exports.ExtractionConfigOperator = {})),
|
|
49
|
-
);
|
|
32
|
+
ExtractionConfigOperator["AND"] = "AND";
|
|
33
|
+
ExtractionConfigOperator["OR"] = "OR";
|
|
34
|
+
})(ExtractionConfigOperator = exports.ExtractionConfigOperator || (exports.ExtractionConfigOperator = {}));
|
|
50
35
|
var NotificationReportStatus;
|
|
51
36
|
(function (NotificationReportStatus) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
})(
|
|
61
|
-
(NotificationReportStatus =
|
|
62
|
-
exports.NotificationReportStatus ||
|
|
63
|
-
(exports.NotificationReportStatus = {})),
|
|
64
|
-
);
|
|
37
|
+
NotificationReportStatus["SENT"] = "SENT";
|
|
38
|
+
NotificationReportStatus["DELIVERED"] = "DELIVERED";
|
|
39
|
+
NotificationReportStatus["OPENED"] = "OPENED";
|
|
40
|
+
NotificationReportStatus["INVALID_RECIPIENT"] = "INVALID_RECIPIENT";
|
|
41
|
+
NotificationReportStatus["MAILBOX_FULL"] = "MAILBOX_FULL";
|
|
42
|
+
NotificationReportStatus["ERROR"] = "ERROR";
|
|
43
|
+
NotificationReportStatus["PENDING"] = "PENDING";
|
|
44
|
+
NotificationReportStatus["NONE"] = "NONE";
|
|
45
|
+
})(NotificationReportStatus = exports.NotificationReportStatus || (exports.NotificationReportStatus = {}));
|
|
65
46
|
var NotificationReportType;
|
|
66
47
|
(function (NotificationReportType) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
})(
|
|
73
|
-
(NotificationReportType =
|
|
74
|
-
exports.NotificationReportType || (exports.NotificationReportType = {})),
|
|
75
|
-
);
|
|
48
|
+
NotificationReportType["SMS"] = "SMS";
|
|
49
|
+
NotificationReportType["EMAIL"] = "EMAIL";
|
|
50
|
+
NotificationReportType["FCM"] = "FCM";
|
|
51
|
+
NotificationReportType["XMPP"] = "XMPP";
|
|
52
|
+
NotificationReportType["NONE"] = "NONE";
|
|
53
|
+
})(NotificationReportType = exports.NotificationReportType || (exports.NotificationReportType = {}));
|
package/statistics/api.js
CHANGED
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getStats = void 0;
|
|
4
4
|
var api_1 = require("../api");
|
|
5
5
|
function getStats(options) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
return api_1.RightConsents.http({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/stats"),
|
|
9
|
+
options: options
|
|
10
|
+
});
|
|
11
11
|
}
|
|
12
12
|
exports.getStats = getStats;
|
package/statistics/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/statistics/interfaces.js
CHANGED
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TIME_SCALES = exports.TimeScale = void 0;
|
|
4
4
|
var TimeScale;
|
|
5
5
|
(function (TimeScale) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})(
|
|
6
|
+
TimeScale["DAYS"] = "DAYS";
|
|
7
|
+
TimeScale["WEEKS"] = "WEEKS";
|
|
8
|
+
TimeScale["MONTHS"] = "MONTHS";
|
|
9
|
+
})(TimeScale = exports.TimeScale || (exports.TimeScale = {}));
|
|
10
10
|
exports.TIME_SCALES = Object.keys(TimeScale);
|
package/subjects/api.js
CHANGED
|
@@ -1,92 +1,72 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.removeAlias =
|
|
4
|
-
exports.setAlias =
|
|
5
|
-
exports.getAliases =
|
|
6
|
-
exports.listSubjectRecords =
|
|
7
|
-
exports.updateSubject =
|
|
8
|
-
exports.createSubject =
|
|
9
|
-
exports.getSubject =
|
|
10
|
-
exports.listSubjects =
|
|
11
|
-
void 0;
|
|
3
|
+
exports.removeAlias = exports.setAlias = exports.getAliases = exports.listSubjectRecords = exports.updateSubject = exports.createSubject = exports.getSubject = exports.listSubjects = void 0;
|
|
12
4
|
var api_1 = require("../api");
|
|
13
5
|
function listSubjects(name, options) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
return api_1.RightConsents.http({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/subjects"),
|
|
9
|
+
params: { name: name },
|
|
10
|
+
options: options
|
|
11
|
+
});
|
|
20
12
|
}
|
|
21
13
|
exports.listSubjects = listSubjects;
|
|
22
14
|
function getSubject(name, options) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
options: options,
|
|
29
|
-
});
|
|
15
|
+
return api_1.RightConsents.http({
|
|
16
|
+
method: 'GET',
|
|
17
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/subjects/").concat(name),
|
|
18
|
+
options: options
|
|
19
|
+
});
|
|
30
20
|
}
|
|
31
21
|
exports.getSubject = getSubject;
|
|
32
22
|
function createSubject(subject, options) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
return api_1.RightConsents.http({
|
|
24
|
+
method: 'POST',
|
|
25
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/subjects"),
|
|
26
|
+
body: subject,
|
|
27
|
+
options: options
|
|
28
|
+
});
|
|
39
29
|
}
|
|
40
30
|
exports.createSubject = createSubject;
|
|
41
31
|
function updateSubject(subject, options) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
options: options,
|
|
49
|
-
});
|
|
32
|
+
return api_1.RightConsents.http({
|
|
33
|
+
method: 'PUT',
|
|
34
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/subjects/").concat(subject.id),
|
|
35
|
+
body: subject,
|
|
36
|
+
options: options
|
|
37
|
+
});
|
|
50
38
|
}
|
|
51
39
|
exports.updateSubject = updateSubject;
|
|
52
40
|
function listSubjectRecords(subject, options) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
options: options,
|
|
59
|
-
});
|
|
41
|
+
return api_1.RightConsents.http({
|
|
42
|
+
method: 'GET',
|
|
43
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/subjects/").concat(subject, "/records"),
|
|
44
|
+
options: options
|
|
45
|
+
});
|
|
60
46
|
}
|
|
61
47
|
exports.listSubjectRecords = listSubjectRecords;
|
|
62
48
|
function getAliases(subject, options) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
options: options,
|
|
69
|
-
});
|
|
49
|
+
return api_1.RightConsents.http({
|
|
50
|
+
method: 'GET',
|
|
51
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/subjects/").concat(subject, "/aliases"),
|
|
52
|
+
options: options
|
|
53
|
+
});
|
|
70
54
|
}
|
|
71
55
|
exports.getAliases = getAliases;
|
|
72
56
|
function setAlias(subject, supersede, options) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
options: options,
|
|
80
|
-
});
|
|
57
|
+
return api_1.RightConsents.http({
|
|
58
|
+
method: 'PUT',
|
|
59
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/subjects/").concat(subject, "/aliases"),
|
|
60
|
+
params: { supersede: supersede },
|
|
61
|
+
options: options
|
|
62
|
+
});
|
|
81
63
|
}
|
|
82
64
|
exports.setAlias = setAlias;
|
|
83
65
|
function removeAlias(alias, options) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
options: options,
|
|
90
|
-
});
|
|
66
|
+
return api_1.RightConsents.http({
|
|
67
|
+
method: 'DELETE',
|
|
68
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/subjects/").concat(alias, "/aliases"),
|
|
69
|
+
options: options
|
|
70
|
+
});
|
|
91
71
|
}
|
|
92
72
|
exports.removeAlias = removeAlias;
|
package/subjects/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/system/api.js
CHANGED
|
@@ -3,26 +3,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getClientConfig = exports.getSupportInfo = exports.getInstance = void 0;
|
|
4
4
|
var api_1 = require("../api");
|
|
5
5
|
function getInstance(options) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
return api_1.RightConsents.http({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/system"),
|
|
9
|
+
options: options
|
|
10
|
+
});
|
|
11
11
|
}
|
|
12
12
|
exports.getInstance = getInstance;
|
|
13
13
|
function getSupportInfo(options) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
return api_1.RightConsents.http({
|
|
15
|
+
method: 'GET',
|
|
16
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/system/support/infos"),
|
|
17
|
+
options: options
|
|
18
|
+
});
|
|
19
19
|
}
|
|
20
20
|
exports.getSupportInfo = getSupportInfo;
|
|
21
21
|
function getClientConfig(options) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
return api_1.RightConsents.http({
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/system/config"),
|
|
25
|
+
options: options
|
|
26
|
+
});
|
|
27
27
|
}
|
|
28
28
|
exports.getClientConfig = getClientConfig;
|
package/system/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/tokens/api.js
CHANGED
|
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createToken = void 0;
|
|
4
4
|
var api_1 = require("../api");
|
|
5
5
|
function createToken(accessToken, options) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
return api_1.RightConsents.http({
|
|
7
|
+
method: 'POST',
|
|
8
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/tokens"),
|
|
9
|
+
body: accessToken,
|
|
10
|
+
responseType: 'text',
|
|
11
|
+
options: options
|
|
12
|
+
});
|
|
13
13
|
}
|
|
14
14
|
exports.createToken = createToken;
|
package/tokens/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/users/api.js
CHANGED
|
@@ -3,26 +3,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getUserStatus = exports.getRecordsForUser = exports.getMe = void 0;
|
|
4
4
|
var api_1 = require("../api");
|
|
5
5
|
function getMe(options) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
return api_1.RightConsents.http({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/user"),
|
|
9
|
+
options: options,
|
|
10
|
+
});
|
|
11
11
|
}
|
|
12
12
|
exports.getMe = getMe;
|
|
13
13
|
function getRecordsForUser(options) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
return api_1.RightConsents.http({
|
|
15
|
+
method: 'GET',
|
|
16
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/user/records"),
|
|
17
|
+
options: options,
|
|
18
|
+
});
|
|
19
19
|
}
|
|
20
20
|
exports.getRecordsForUser = getRecordsForUser;
|
|
21
21
|
function getUserStatus(options) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
return api_1.RightConsents.http({
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/user/status"),
|
|
25
|
+
options: options,
|
|
26
|
+
});
|
|
27
27
|
}
|
|
28
28
|
exports.getUserStatus = getUserStatus;
|
package/users/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("./api"), exports);
|
|
34
18
|
__exportStar(require("./interfaces"), exports);
|