@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,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
- RecordStates["PENDING"] = "PENDING";
15
- RecordStates["COMMITTED"] = "COMMITTED";
16
- RecordStates["DELETED"] = "DELETED";
17
- })((RecordStates = exports.RecordStates || (exports.RecordStates = {})));
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
- RecordStatus["VALID"] = "VALID";
21
- RecordStatus["OBSOLETE"] = "OBSOLETE";
22
- RecordStatus["EXPIRED"] = "EXPIRED";
23
- RecordStatus["IRRELEVANT"] = "IRRELEVANT";
24
- RecordStatus["UNKNOWN"] = "UNKNOWN";
25
- })((RecordStatus = exports.RecordStatus || (exports.RecordStatus = {})));
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
- RecordStatusExplanation["LATEST_VALID"] = "LATEST_VALID";
29
- RecordStatusExplanation["OBSOLETE"] = "OBSOLETE";
30
- RecordStatusExplanation["EXPIRED"] = "EXPIRED";
31
- RecordStatusExplanation["INFO_SERIAL_ARCHIVED"] = "INFO_SERIAL_ARCHIVED";
32
- RecordStatusExplanation["BODY_SERIAL_ARCHIVED"] = "BODY_SERIAL_ARCHIVED";
33
- RecordStatusExplanation["STILL_PENDING"] = "STILL_PENDING";
34
- RecordStatusExplanation["ENTRY_DELETED"] = "ENTRY_DELETED";
35
- })(
36
- (RecordStatusExplanation =
37
- exports.RecordStatusExplanation || (exports.RecordStatusExplanation = {})),
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
- ExtractionConfigOperator["AND"] = "AND";
44
- ExtractionConfigOperator["OR"] = "OR";
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
- NotificationReportStatus["SENT"] = "SENT";
53
- NotificationReportStatus["DELIVERED"] = "DELIVERED";
54
- NotificationReportStatus["OPENED"] = "OPENED";
55
- NotificationReportStatus["INVALID_RECIPIENT"] = "INVALID_RECIPIENT";
56
- NotificationReportStatus["MAILBOX_FULL"] = "MAILBOX_FULL";
57
- NotificationReportStatus["ERROR"] = "ERROR";
58
- NotificationReportStatus["PENDING"] = "PENDING";
59
- NotificationReportStatus["NONE"] = "NONE";
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
- NotificationReportType["SMS"] = "SMS";
68
- NotificationReportType["EMAIL"] = "EMAIL";
69
- NotificationReportType["FCM"] = "FCM";
70
- NotificationReportType["XMPP"] = "XMPP";
71
- NotificationReportType["NONE"] = "NONE";
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
- return api_1.RightConsents.http({
7
- method: "GET",
8
- url: "".concat(api_1.RightConsents.config.apiRoot, "/stats"),
9
- options: options,
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;
@@ -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);
@@ -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
- TimeScale["DAYS"] = "DAYS";
7
- TimeScale["WEEKS"] = "WEEKS";
8
- TimeScale["MONTHS"] = "MONTHS";
9
- })((TimeScale = exports.TimeScale || (exports.TimeScale = {})));
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
- return api_1.RightConsents.http({
15
- method: "GET",
16
- url: "".concat(api_1.RightConsents.config.apiRoot, "/subjects"),
17
- params: { name: name },
18
- options: options,
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
- return api_1.RightConsents.http({
24
- method: "GET",
25
- url: ""
26
- .concat(api_1.RightConsents.config.apiRoot, "/subjects/")
27
- .concat(name),
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
- return api_1.RightConsents.http({
34
- method: "POST",
35
- url: "".concat(api_1.RightConsents.config.apiRoot, "/subjects"),
36
- body: subject,
37
- options: options,
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
- return api_1.RightConsents.http({
43
- method: "PUT",
44
- url: ""
45
- .concat(api_1.RightConsents.config.apiRoot, "/subjects/")
46
- .concat(subject.id),
47
- body: subject,
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
- return api_1.RightConsents.http({
54
- method: "GET",
55
- url: ""
56
- .concat(api_1.RightConsents.config.apiRoot, "/subjects/")
57
- .concat(subject, "/records"),
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
- return api_1.RightConsents.http({
64
- method: "GET",
65
- url: ""
66
- .concat(api_1.RightConsents.config.apiRoot, "/subjects/")
67
- .concat(subject, "/aliases"),
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
- return api_1.RightConsents.http({
74
- method: "PUT",
75
- url: ""
76
- .concat(api_1.RightConsents.config.apiRoot, "/subjects/")
77
- .concat(subject, "/aliases"),
78
- params: { supersede: supersede },
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
- return api_1.RightConsents.http({
85
- method: "DELETE",
86
- url: ""
87
- .concat(api_1.RightConsents.config.apiRoot, "/subjects/")
88
- .concat(alias, "/aliases"),
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
- (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/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
- return api_1.RightConsents.http({
7
- method: "GET",
8
- url: "".concat(api_1.RightConsents.config.apiRoot, "/system"),
9
- options: options,
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
- return api_1.RightConsents.http({
15
- method: "GET",
16
- url: "".concat(api_1.RightConsents.config.apiRoot, "/system/support/infos"),
17
- options: options,
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
- return api_1.RightConsents.http({
23
- method: "GET",
24
- url: "".concat(api_1.RightConsents.config.apiRoot, "/system/config"),
25
- options: options,
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
- (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/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
- 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
- });
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
- (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/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
- return api_1.RightConsents.http({
7
- method: "GET",
8
- url: "".concat(api_1.RightConsents.config.apiRoot, "/user"),
9
- options: options,
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
- return api_1.RightConsents.http({
15
- method: "GET",
16
- url: "".concat(api_1.RightConsents.config.apiRoot, "/user/records"),
17
- options: options,
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
- return api_1.RightConsents.http({
23
- method: "GET",
24
- url: "".concat(api_1.RightConsents.config.apiRoot, "/user/status"),
25
- options: options,
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
- (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);
34
18
  __exportStar(require("./interfaces"), exports);