@fairandsmart/consents-ce 3.2.0 → 3.3.1
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/common.d.ts +1 -1
- package/consents/api.js +5 -6
- package/consents/interfaces.js +4 -4
- package/consumption/api.js +2 -3
- package/consumption/interfaces.js +1 -1
- package/forms/interfaces.d.ts +1 -1
- package/index.js +17 -7
- package/keys/api.js +3 -4
- package/keys/interfaces.js +1 -1
- package/models/api.js +25 -25
- package/models/interfaces.d.ts +2 -2
- package/models/interfaces.js +15 -15
- package/package.json +1 -1
- package/peers/api.js +5 -6
- package/receipts/api.js +1 -2
- package/records/api.js +7 -8
- package/records/interfaces.js +6 -6
- package/statistics/api.js +1 -2
- package/statistics/interfaces.js +1 -1
- package/subjects/api.js +9 -10
- package/system/api.js +3 -4
- package/tokens/api.js +1 -2
- package/transactions/api.js +2 -3
- package/transactions/interfaces.js +1 -1
- package/users/api.js +3 -4
- package/webhooks/api.js +5 -6
- package/webhooks/interfaces.js +1 -1
package/common.d.ts
CHANGED
package/consents/api.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createTransactionJson = createTransactionJson;
|
|
4
|
+
exports.getTransactionJson = getTransactionJson;
|
|
5
|
+
exports.getTransactionContext = getTransactionContext;
|
|
6
|
+
exports.postSubmissionValuesJson = postSubmissionValuesJson;
|
|
7
|
+
exports.getSubmitFormPreview = getSubmitFormPreview;
|
|
4
8
|
var api_1 = require("../api");
|
|
5
9
|
function createTransactionJson(ctx, lang, options) {
|
|
6
10
|
return api_1.RightConsents.http({
|
|
@@ -15,7 +19,6 @@ function createTransactionJson(ctx, lang, options) {
|
|
|
15
19
|
options: options
|
|
16
20
|
});
|
|
17
21
|
}
|
|
18
|
-
exports.createTransactionJson = createTransactionJson;
|
|
19
22
|
function getTransactionJson(txid, options) {
|
|
20
23
|
return api_1.RightConsents.http({
|
|
21
24
|
method: 'GET',
|
|
@@ -26,7 +29,6 @@ function getTransactionJson(txid, options) {
|
|
|
26
29
|
options: options
|
|
27
30
|
});
|
|
28
31
|
}
|
|
29
|
-
exports.getTransactionJson = getTransactionJson;
|
|
30
32
|
function getTransactionContext(txid) {
|
|
31
33
|
return api_1.RightConsents.http({
|
|
32
34
|
method: 'GET',
|
|
@@ -36,7 +38,6 @@ function getTransactionContext(txid) {
|
|
|
36
38
|
}
|
|
37
39
|
});
|
|
38
40
|
}
|
|
39
|
-
exports.getTransactionContext = getTransactionContext;
|
|
40
41
|
function postSubmissionValuesJson(txid, values, options) {
|
|
41
42
|
return api_1.RightConsents.http({
|
|
42
43
|
method: 'POST',
|
|
@@ -49,7 +50,6 @@ function postSubmissionValuesJson(txid, values, options) {
|
|
|
49
50
|
options: options
|
|
50
51
|
});
|
|
51
52
|
}
|
|
52
|
-
exports.postSubmissionValuesJson = postSubmissionValuesJson;
|
|
53
53
|
function getSubmitFormPreview(ctx, lang, options) {
|
|
54
54
|
return api_1.RightConsents.http({
|
|
55
55
|
method: 'POST',
|
|
@@ -64,4 +64,3 @@ function getSubmitFormPreview(ctx, lang, options) {
|
|
|
64
64
|
options: options
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
exports.getSubmitFormPreview = getSubmitFormPreview;
|
package/consents/interfaces.js
CHANGED
|
@@ -12,20 +12,20 @@ var Confirmation;
|
|
|
12
12
|
Confirmation["AUDIO_RECORD"] = "AUDIO_RECORD";
|
|
13
13
|
Confirmation["VIDEO_RECORD"] = "VIDEO_RECORD";
|
|
14
14
|
Confirmation["DIGITAL_SIGNATURE"] = "DIGITAL_SIGNATURE";
|
|
15
|
-
})(Confirmation
|
|
15
|
+
})(Confirmation || (exports.Confirmation = Confirmation = {}));
|
|
16
16
|
exports.CONFIRMATION_TYPES = Object.keys(Confirmation);
|
|
17
17
|
var SubjectInfosKeys;
|
|
18
18
|
(function (SubjectInfosKeys) {
|
|
19
19
|
SubjectInfosKeys["EMAIL_KEY"] = "emailAddress";
|
|
20
20
|
SubjectInfosKeys["PHONE_KEY"] = "phoneNumber";
|
|
21
|
-
})(SubjectInfosKeys
|
|
21
|
+
})(SubjectInfosKeys || (exports.SubjectInfosKeys = SubjectInfosKeys = {}));
|
|
22
22
|
var ConfirmationConfigKeys;
|
|
23
23
|
(function (ConfirmationConfigKeys) {
|
|
24
24
|
ConfirmationConfigKeys["SENDER_EMAIL_KEY"] = "senderEmail";
|
|
25
25
|
ConfirmationConfigKeys["SENDER_PHONE_KEY"] = "senderPhone";
|
|
26
|
-
})(ConfirmationConfigKeys
|
|
26
|
+
})(ConfirmationConfigKeys || (exports.ConfirmationConfigKeys = ConfirmationConfigKeys = {}));
|
|
27
27
|
var DisplayChoicesInEmail;
|
|
28
28
|
(function (DisplayChoicesInEmail) {
|
|
29
29
|
DisplayChoicesInEmail["NONE"] = "NONE";
|
|
30
30
|
DisplayChoicesInEmail["SIMPLE"] = "SIMPLE";
|
|
31
|
-
})(DisplayChoicesInEmail
|
|
31
|
+
})(DisplayChoicesInEmail || (exports.DisplayChoicesInEmail = DisplayChoicesInEmail = {}));
|
package/consumption/api.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getConsumption = getConsumption;
|
|
4
|
+
exports.exportConsumptionCsv = exportConsumptionCsv;
|
|
4
5
|
var api_1 = require("../api");
|
|
5
6
|
function getConsumption(filter, options) {
|
|
6
7
|
return api_1.RightConsents.http({
|
|
@@ -13,7 +14,6 @@ function getConsumption(filter, options) {
|
|
|
13
14
|
options: options
|
|
14
15
|
});
|
|
15
16
|
}
|
|
16
|
-
exports.getConsumption = getConsumption;
|
|
17
17
|
function exportConsumptionCsv(filter, options) {
|
|
18
18
|
return api_1.RightConsents.http({
|
|
19
19
|
method: 'GET',
|
|
@@ -26,4 +26,3 @@ function exportConsumptionCsv(filter, options) {
|
|
|
26
26
|
options: options
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
exports.exportConsumptionCsv = exportConsumptionCsv;
|
|
@@ -7,4 +7,4 @@ var ConsumptionScale;
|
|
|
7
7
|
ConsumptionScale["MONTHS"] = "MONTHS";
|
|
8
8
|
ConsumptionScale["WEEKS"] = "WEEKS";
|
|
9
9
|
ConsumptionScale["DAYS"] = "DAYS";
|
|
10
|
-
})(ConsumptionScale
|
|
10
|
+
})(ConsumptionScale || (exports.ConsumptionScale = ConsumptionScale = {}));
|
package/forms/interfaces.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
19
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
20
|
};
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.version = exports.ConsentCollector = exports.ConsumptionResource = exports.TransactionResource = exports.UsersResource = exports.TokensResource = exports.SystemResource = exports.SubjectsResource = exports.StatsResource = exports.RecordsResource = exports.PeerResources = exports.ModelsResource = exports.KeysResource = exports.FormResource = exports.ConsentsResource = exports.RightConsents = void 0;
|
|
30
40
|
__exportStar(require("./http"), exports);
|
package/keys/api.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.listKeys = listKeys;
|
|
4
|
+
exports.createKey = createKey;
|
|
5
|
+
exports.deleteKey = deleteKey;
|
|
4
6
|
var api_1 = require("../api");
|
|
5
7
|
function listKeys(options) {
|
|
6
8
|
return api_1.RightConsents.http({
|
|
@@ -9,7 +11,6 @@ function listKeys(options) {
|
|
|
9
11
|
options: options
|
|
10
12
|
});
|
|
11
13
|
}
|
|
12
|
-
exports.listKeys = listKeys;
|
|
13
14
|
function createKey(key, options) {
|
|
14
15
|
return api_1.RightConsents.http({
|
|
15
16
|
method: 'POST',
|
|
@@ -18,7 +19,6 @@ function createKey(key, options) {
|
|
|
18
19
|
options: options
|
|
19
20
|
});
|
|
20
21
|
}
|
|
21
|
-
exports.createKey = createKey;
|
|
22
22
|
function deleteKey(id, options) {
|
|
23
23
|
return api_1.RightConsents.http({
|
|
24
24
|
method: 'DELETE',
|
|
@@ -26,4 +26,3 @@ function deleteKey(id, options) {
|
|
|
26
26
|
options: options
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
exports.deleteKey = deleteKey;
|
package/keys/interfaces.js
CHANGED
package/models/api.js
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NEW_VERSION_UUID = void 0;
|
|
4
|
+
exports.listEntries = listEntries;
|
|
5
|
+
exports.createEntry = createEntry;
|
|
6
|
+
exports.getEntry = getEntry;
|
|
7
|
+
exports.updateEntry = updateEntry;
|
|
8
|
+
exports.updateEntryVisibility = updateEntryVisibility;
|
|
9
|
+
exports.deleteEntry = deleteEntry;
|
|
10
|
+
exports.getEntryByRKey = getEntryByRKey;
|
|
11
|
+
exports.setDefaultInfoModel = setDefaultInfoModel;
|
|
12
|
+
exports.setDefaultThemeModel = setDefaultThemeModel;
|
|
13
|
+
exports.setDefaultEmailModel = setDefaultEmailModel;
|
|
14
|
+
exports.listVersions = listVersions;
|
|
15
|
+
exports.createVersion = createVersion;
|
|
16
|
+
exports.getLatestVersion = getLatestVersion;
|
|
17
|
+
exports.getActiveVersion = getActiveVersion;
|
|
18
|
+
exports.getVersion = getVersion;
|
|
19
|
+
exports.updateVersion = updateVersion;
|
|
20
|
+
exports.updateVersionStatus = updateVersionStatus;
|
|
21
|
+
exports.updateVersionType = updateVersionType;
|
|
22
|
+
exports.getVersionPreview = getVersionPreview;
|
|
23
|
+
exports.deleteVersion = deleteVersion;
|
|
24
|
+
exports.exportEntry = exportEntry;
|
|
25
|
+
exports.importEntry = importEntry;
|
|
26
|
+
exports.getSharingPartner = getSharingPartner;
|
|
27
|
+
exports.shareModelToPartner = shareModelToPartner;
|
|
4
28
|
var api_1 = require("../api");
|
|
5
29
|
exports.NEW_VERSION_UUID = '11111111-9999-1111-9999-111111111111';
|
|
6
30
|
function listEntries(filter, options) {
|
|
@@ -12,7 +36,6 @@ function listEntries(filter, options) {
|
|
|
12
36
|
options: options
|
|
13
37
|
});
|
|
14
38
|
}
|
|
15
|
-
exports.listEntries = listEntries;
|
|
16
39
|
function createEntry(dto, options) {
|
|
17
40
|
return api_1.RightConsents.http({
|
|
18
41
|
method: 'POST',
|
|
@@ -21,7 +44,6 @@ function createEntry(dto, options) {
|
|
|
21
44
|
options: options
|
|
22
45
|
});
|
|
23
46
|
}
|
|
24
|
-
exports.createEntry = createEntry;
|
|
25
47
|
function getEntry(id, options) {
|
|
26
48
|
if (options === void 0) { options = { noAuth: true }; }
|
|
27
49
|
return api_1.RightConsents.http({
|
|
@@ -30,7 +52,6 @@ function getEntry(id, options) {
|
|
|
30
52
|
options: options
|
|
31
53
|
});
|
|
32
54
|
}
|
|
33
|
-
exports.getEntry = getEntry;
|
|
34
55
|
function updateEntry(id, dto, options) {
|
|
35
56
|
return api_1.RightConsents.http({
|
|
36
57
|
method: 'PUT',
|
|
@@ -39,7 +60,6 @@ function updateEntry(id, dto, options) {
|
|
|
39
60
|
options: options
|
|
40
61
|
});
|
|
41
62
|
}
|
|
42
|
-
exports.updateEntry = updateEntry;
|
|
43
63
|
function updateEntryVisibility(id, dto, options) {
|
|
44
64
|
return api_1.RightConsents.http({
|
|
45
65
|
method: 'PUT',
|
|
@@ -48,7 +68,6 @@ function updateEntryVisibility(id, dto, options) {
|
|
|
48
68
|
options: options
|
|
49
69
|
});
|
|
50
70
|
}
|
|
51
|
-
exports.updateEntryVisibility = updateEntryVisibility;
|
|
52
71
|
function deleteEntry(id, options) {
|
|
53
72
|
return api_1.RightConsents.http({
|
|
54
73
|
method: 'DELETE',
|
|
@@ -56,7 +75,6 @@ function deleteEntry(id, options) {
|
|
|
56
75
|
options: options
|
|
57
76
|
});
|
|
58
77
|
}
|
|
59
|
-
exports.deleteEntry = deleteEntry;
|
|
60
78
|
function getEntryByRKey(recordKey, options) {
|
|
61
79
|
if (options === void 0) { options = { noAuth: true }; }
|
|
62
80
|
return api_1.RightConsents.http({
|
|
@@ -65,7 +83,6 @@ function getEntryByRKey(recordKey, options) {
|
|
|
65
83
|
options: options
|
|
66
84
|
});
|
|
67
85
|
}
|
|
68
|
-
exports.getEntryByRKey = getEntryByRKey;
|
|
69
86
|
function setDefaultInfoModel(user, operator, form, options) {
|
|
70
87
|
return api_1.RightConsents.http({
|
|
71
88
|
method: 'POST',
|
|
@@ -74,7 +91,6 @@ function setDefaultInfoModel(user, operator, form, options) {
|
|
|
74
91
|
options: options
|
|
75
92
|
});
|
|
76
93
|
}
|
|
77
|
-
exports.setDefaultInfoModel = setDefaultInfoModel;
|
|
78
94
|
function setDefaultThemeModel(theme, options) {
|
|
79
95
|
return api_1.RightConsents.http({
|
|
80
96
|
method: 'POST',
|
|
@@ -83,7 +99,6 @@ function setDefaultThemeModel(theme, options) {
|
|
|
83
99
|
options: options
|
|
84
100
|
});
|
|
85
101
|
}
|
|
86
|
-
exports.setDefaultThemeModel = setDefaultThemeModel;
|
|
87
102
|
function setDefaultEmailModel(emailKey, options) {
|
|
88
103
|
return api_1.RightConsents.http({
|
|
89
104
|
method: 'POST',
|
|
@@ -92,7 +107,6 @@ function setDefaultEmailModel(emailKey, options) {
|
|
|
92
107
|
options: options
|
|
93
108
|
});
|
|
94
109
|
}
|
|
95
|
-
exports.setDefaultEmailModel = setDefaultEmailModel;
|
|
96
110
|
function listVersions(id, options) {
|
|
97
111
|
if (options === void 0) { options = { noAuth: true }; }
|
|
98
112
|
return api_1.RightConsents.http({
|
|
@@ -101,7 +115,6 @@ function listVersions(id, options) {
|
|
|
101
115
|
options: options
|
|
102
116
|
});
|
|
103
117
|
}
|
|
104
|
-
exports.listVersions = listVersions;
|
|
105
118
|
function createVersion(id, dto, options) {
|
|
106
119
|
return api_1.RightConsents.http({
|
|
107
120
|
method: 'POST',
|
|
@@ -110,7 +123,6 @@ function createVersion(id, dto, options) {
|
|
|
110
123
|
options: options
|
|
111
124
|
});
|
|
112
125
|
}
|
|
113
|
-
exports.createVersion = createVersion;
|
|
114
126
|
function getLatestVersion(id, options) {
|
|
115
127
|
if (options === void 0) { options = { noAuth: true }; }
|
|
116
128
|
return api_1.RightConsents.http({
|
|
@@ -119,7 +131,6 @@ function getLatestVersion(id, options) {
|
|
|
119
131
|
options: options
|
|
120
132
|
});
|
|
121
133
|
}
|
|
122
|
-
exports.getLatestVersion = getLatestVersion;
|
|
123
134
|
function getActiveVersion(id, options) {
|
|
124
135
|
if (options === void 0) { options = { noAuth: true }; }
|
|
125
136
|
return api_1.RightConsents.http({
|
|
@@ -128,7 +139,6 @@ function getActiveVersion(id, options) {
|
|
|
128
139
|
options: options
|
|
129
140
|
});
|
|
130
141
|
}
|
|
131
|
-
exports.getActiveVersion = getActiveVersion;
|
|
132
142
|
function getVersion(id, versionId, options) {
|
|
133
143
|
if (options === void 0) { options = { noAuth: true }; }
|
|
134
144
|
return api_1.RightConsents.http({
|
|
@@ -137,7 +147,6 @@ function getVersion(id, versionId, options) {
|
|
|
137
147
|
options: options
|
|
138
148
|
});
|
|
139
149
|
}
|
|
140
|
-
exports.getVersion = getVersion;
|
|
141
150
|
function updateVersion(id, versionId, dto, options) {
|
|
142
151
|
return api_1.RightConsents.http({
|
|
143
152
|
method: 'PUT',
|
|
@@ -146,7 +155,6 @@ function updateVersion(id, versionId, dto, options) {
|
|
|
146
155
|
options: options
|
|
147
156
|
});
|
|
148
157
|
}
|
|
149
|
-
exports.updateVersion = updateVersion;
|
|
150
158
|
function updateVersionStatus(id, versionId, status, options) {
|
|
151
159
|
return api_1.RightConsents.http({
|
|
152
160
|
method: 'PUT',
|
|
@@ -155,7 +163,6 @@ function updateVersionStatus(id, versionId, status, options) {
|
|
|
155
163
|
options: options
|
|
156
164
|
});
|
|
157
165
|
}
|
|
158
|
-
exports.updateVersionStatus = updateVersionStatus;
|
|
159
166
|
function updateVersionType(id, versionId, type, options) {
|
|
160
167
|
return api_1.RightConsents.http({
|
|
161
168
|
method: 'PUT',
|
|
@@ -164,7 +171,6 @@ function updateVersionType(id, versionId, type, options) {
|
|
|
164
171
|
options: options
|
|
165
172
|
});
|
|
166
173
|
}
|
|
167
|
-
exports.updateVersionType = updateVersionType;
|
|
168
174
|
function getVersionPreview(id, vid, dto, options) {
|
|
169
175
|
return api_1.RightConsents.http({
|
|
170
176
|
method: 'POST',
|
|
@@ -174,7 +180,6 @@ function getVersionPreview(id, vid, dto, options) {
|
|
|
174
180
|
options: options
|
|
175
181
|
});
|
|
176
182
|
}
|
|
177
|
-
exports.getVersionPreview = getVersionPreview;
|
|
178
183
|
function deleteVersion(id, versionId, options) {
|
|
179
184
|
return api_1.RightConsents.http({
|
|
180
185
|
method: 'DELETE',
|
|
@@ -182,7 +187,6 @@ function deleteVersion(id, versionId, options) {
|
|
|
182
187
|
options: options
|
|
183
188
|
});
|
|
184
189
|
}
|
|
185
|
-
exports.deleteVersion = deleteVersion;
|
|
186
190
|
function exportEntry(id, options) {
|
|
187
191
|
if (options === void 0) { options = { noAuth: true }; }
|
|
188
192
|
return api_1.RightConsents.http({
|
|
@@ -191,7 +195,6 @@ function exportEntry(id, options) {
|
|
|
191
195
|
options: options
|
|
192
196
|
});
|
|
193
197
|
}
|
|
194
|
-
exports.exportEntry = exportEntry;
|
|
195
198
|
function importEntry(dto, options) {
|
|
196
199
|
return api_1.RightConsents.http({
|
|
197
200
|
method: 'POST',
|
|
@@ -200,7 +203,6 @@ function importEntry(dto, options) {
|
|
|
200
203
|
options: options
|
|
201
204
|
});
|
|
202
205
|
}
|
|
203
|
-
exports.importEntry = importEntry;
|
|
204
206
|
function getSharingPartner(id, options) {
|
|
205
207
|
return api_1.RightConsents.http({
|
|
206
208
|
method: 'GET',
|
|
@@ -208,7 +210,6 @@ function getSharingPartner(id, options) {
|
|
|
208
210
|
options: options
|
|
209
211
|
});
|
|
210
212
|
}
|
|
211
|
-
exports.getSharingPartner = getSharingPartner;
|
|
212
213
|
function shareModelToPartner(modelEntryShareDto, options) {
|
|
213
214
|
return api_1.RightConsents.http({
|
|
214
215
|
method: 'POST',
|
|
@@ -217,4 +218,3 @@ function shareModelToPartner(modelEntryShareDto, options) {
|
|
|
217
218
|
options: options
|
|
218
219
|
});
|
|
219
220
|
}
|
|
220
|
-
exports.shareModelToPartner = shareModelToPartner;
|
package/models/interfaces.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare enum ModelEntryStatus {
|
|
|
4
4
|
INACTIVE = "INACTIVE",
|
|
5
5
|
DELETED = "DELETED"
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type ModelEntryStatuses = keyof ModelEntryStatus;
|
|
8
8
|
export declare const MODEL_ENTRY_STATUSES: ModelEntryStatuses[];
|
|
9
9
|
export interface ModelData {
|
|
10
10
|
type: ModelDataType;
|
|
@@ -222,7 +222,7 @@ export declare enum ConsentOrigin {
|
|
|
222
222
|
USER = "USER"
|
|
223
223
|
}
|
|
224
224
|
export declare const CONSENT_ORIGIN: ConsentOrigin[];
|
|
225
|
-
export
|
|
225
|
+
export type ModelDataType = 'information' | 'processing' | 'conditions' | 'theme' | 'email' | 'preference' | 'layout' | 'notice' | 'objection' | 'splitter';
|
|
226
226
|
export declare enum PreviewType {
|
|
227
227
|
FORM = "FORM",
|
|
228
228
|
RECEIPT = "RECEIPT",
|
package/models/interfaces.js
CHANGED
|
@@ -6,49 +6,49 @@ var ModelEntryStatus;
|
|
|
6
6
|
ModelEntryStatus["ACTIVE"] = "ACTIVE";
|
|
7
7
|
ModelEntryStatus["INACTIVE"] = "INACTIVE";
|
|
8
8
|
ModelEntryStatus["DELETED"] = "DELETED";
|
|
9
|
-
})(ModelEntryStatus
|
|
9
|
+
})(ModelEntryStatus || (exports.ModelEntryStatus = ModelEntryStatus = {}));
|
|
10
10
|
exports.MODEL_ENTRY_STATUSES = Object.keys(ModelEntryStatus);
|
|
11
11
|
var ModelVersionStatus;
|
|
12
12
|
(function (ModelVersionStatus) {
|
|
13
13
|
ModelVersionStatus["DRAFT"] = "DRAFT";
|
|
14
14
|
ModelVersionStatus["ACTIVE"] = "ACTIVE";
|
|
15
15
|
ModelVersionStatus["ARCHIVED"] = "ARCHIVED";
|
|
16
|
-
})(ModelVersionStatus
|
|
16
|
+
})(ModelVersionStatus || (exports.ModelVersionStatus = ModelVersionStatus = {}));
|
|
17
17
|
var ModelVersionType;
|
|
18
18
|
(function (ModelVersionType) {
|
|
19
19
|
ModelVersionType["MAJOR"] = "MAJOR";
|
|
20
20
|
ModelVersionType["MINOR"] = "MINOR";
|
|
21
|
-
})(ModelVersionType
|
|
21
|
+
})(ModelVersionType || (exports.ModelVersionType = ModelVersionType = {}));
|
|
22
22
|
var Visibility;
|
|
23
23
|
(function (Visibility) {
|
|
24
24
|
Visibility["FORM_AND_RECEIPT"] = "FORM_AND_RECEIPT";
|
|
25
25
|
Visibility["RECEIPT_ONLY"] = "RECEIPT_ONLY";
|
|
26
26
|
Visibility["HIDDEN"] = "HIDDEN";
|
|
27
|
-
})(Visibility
|
|
27
|
+
})(Visibility || (exports.Visibility = Visibility = {}));
|
|
28
28
|
exports.VISIBILITIES = Object.keys(Visibility);
|
|
29
29
|
var DefaultInfoTag;
|
|
30
30
|
(function (DefaultInfoTag) {
|
|
31
31
|
DefaultInfoTag["DEFAULT_INFO_USER"] = "DEFAULT_INFO_USER";
|
|
32
32
|
DefaultInfoTag["DEFAULT_INFO_OPERATOR"] = "DEFAULT_INFO_OPERATOR";
|
|
33
33
|
DefaultInfoTag["DEFAULT_INFO_FORM"] = "DEFAULT_INFO_FORM";
|
|
34
|
-
})(DefaultInfoTag
|
|
34
|
+
})(DefaultInfoTag || (exports.DefaultInfoTag = DefaultInfoTag = {}));
|
|
35
35
|
exports.DEFAULT_INFO_TAGS = Object.keys(DefaultInfoTag);
|
|
36
36
|
var DefaultThemeTag;
|
|
37
37
|
(function (DefaultThemeTag) {
|
|
38
38
|
DefaultThemeTag["DEFAULT_THEME"] = "DEFAULT_THEME";
|
|
39
|
-
})(DefaultThemeTag
|
|
39
|
+
})(DefaultThemeTag || (exports.DefaultThemeTag = DefaultThemeTag = {}));
|
|
40
40
|
exports.DEFAULT_THEME_TAGS = Object.keys(DefaultThemeTag);
|
|
41
41
|
var DefaultEmailTag;
|
|
42
42
|
(function (DefaultEmailTag) {
|
|
43
43
|
DefaultEmailTag["DEFAULT_EMAIL"] = "DEFAULT_EMAIL";
|
|
44
|
-
})(DefaultEmailTag
|
|
44
|
+
})(DefaultEmailTag || (exports.DefaultEmailTag = DefaultEmailTag = {}));
|
|
45
45
|
exports.DEFAULT_EMAIL_TAGS = Object.keys(DefaultEmailTag);
|
|
46
46
|
var RetentionUnit;
|
|
47
47
|
(function (RetentionUnit) {
|
|
48
48
|
RetentionUnit["YEAR"] = "YEAR";
|
|
49
49
|
RetentionUnit["MONTH"] = "MONTH";
|
|
50
50
|
RetentionUnit["WEEK"] = "WEEK";
|
|
51
|
-
})(RetentionUnit
|
|
51
|
+
})(RetentionUnit || (exports.RetentionUnit = RetentionUnit = {}));
|
|
52
52
|
exports.RETENTION_UNITS = Object.keys(RetentionUnit);
|
|
53
53
|
var ProcessingPurpose;
|
|
54
54
|
(function (ProcessingPurpose) {
|
|
@@ -57,7 +57,7 @@ var ProcessingPurpose;
|
|
|
57
57
|
ProcessingPurpose["CONSENT_MARKETING"] = "CONSENT_MARKETING";
|
|
58
58
|
ProcessingPurpose["CONSENT_THIRD_PART_SHARING"] = "CONSENT_THIRD_PART_SHARING";
|
|
59
59
|
ProcessingPurpose["CONSENT_RESEARCH"] = "CONSENT_RESEARCH";
|
|
60
|
-
})(ProcessingPurpose
|
|
60
|
+
})(ProcessingPurpose || (exports.ProcessingPurpose = ProcessingPurpose = {}));
|
|
61
61
|
exports.PROCESSING_PURPOSES = Object.keys(ProcessingPurpose);
|
|
62
62
|
var ProcessingLegalBasis;
|
|
63
63
|
(function (ProcessingLegalBasis) {
|
|
@@ -67,7 +67,7 @@ var ProcessingLegalBasis;
|
|
|
67
67
|
ProcessingLegalBasis["LEGAL_BASIS_LEGAL_OBLIGATION"] = "LEGAL_BASIS_LEGAL_OBLIGATION";
|
|
68
68
|
ProcessingLegalBasis["LEGAL_BASIS_PUBLIC_INTEREST"] = "LEGAL_BASIS_PUBLIC_INTEREST";
|
|
69
69
|
ProcessingLegalBasis["LEGAL_BASIS_VITAL_INTEREST"] = "LEGAL_BASIS_VITAL_INTEREST";
|
|
70
|
-
})(ProcessingLegalBasis
|
|
70
|
+
})(ProcessingLegalBasis || (exports.ProcessingLegalBasis = ProcessingLegalBasis = {}));
|
|
71
71
|
exports.PROCESSING_LEGAL_BASES = Object.keys(ProcessingLegalBasis);
|
|
72
72
|
var PreferenceValueType;
|
|
73
73
|
(function (PreferenceValueType) {
|
|
@@ -77,32 +77,32 @@ var PreferenceValueType;
|
|
|
77
77
|
PreferenceValueType["LIST_SINGLE"] = "LIST_SINGLE";
|
|
78
78
|
PreferenceValueType["LIST_MULTI"] = "LIST_MULTI";
|
|
79
79
|
PreferenceValueType["FREE_TEXT"] = "FREE_TEXT";
|
|
80
|
-
})(PreferenceValueType
|
|
80
|
+
})(PreferenceValueType || (exports.PreferenceValueType = PreferenceValueType = {}));
|
|
81
81
|
exports.PREFERENCE_VALUE_TYPES = Object.keys(PreferenceValueType);
|
|
82
82
|
var LogoPosition;
|
|
83
83
|
(function (LogoPosition) {
|
|
84
84
|
LogoPosition["LEFT"] = "LEFT";
|
|
85
85
|
LogoPosition["CENTER"] = "CENTER";
|
|
86
86
|
LogoPosition["RIGHT"] = "RIGHT";
|
|
87
|
-
})(LogoPosition
|
|
87
|
+
})(LogoPosition || (exports.LogoPosition = LogoPosition = {}));
|
|
88
88
|
exports.LOGO_POSITIONS = Object.keys(LogoPosition);
|
|
89
89
|
var FormLayoutOrientation;
|
|
90
90
|
(function (FormLayoutOrientation) {
|
|
91
91
|
FormLayoutOrientation["HORIZONTAL"] = "HORIZONTAL";
|
|
92
92
|
FormLayoutOrientation["VERTICAL"] = "VERTICAL";
|
|
93
|
-
})(FormLayoutOrientation
|
|
93
|
+
})(FormLayoutOrientation || (exports.FormLayoutOrientation = FormLayoutOrientation = {}));
|
|
94
94
|
exports.CONSENT_FORM_ORIENTATIONS = Object.keys(FormLayoutOrientation);
|
|
95
95
|
var ConsentOrigin;
|
|
96
96
|
(function (ConsentOrigin) {
|
|
97
97
|
ConsentOrigin["WEBFORM"] = "WEBFORM";
|
|
98
98
|
ConsentOrigin["OPERATOR"] = "OPERATOR";
|
|
99
99
|
ConsentOrigin["USER"] = "USER";
|
|
100
|
-
})(ConsentOrigin
|
|
100
|
+
})(ConsentOrigin || (exports.ConsentOrigin = ConsentOrigin = {}));
|
|
101
101
|
exports.CONSENT_ORIGIN = Object.keys(ConsentOrigin);
|
|
102
102
|
var PreviewType;
|
|
103
103
|
(function (PreviewType) {
|
|
104
104
|
PreviewType["FORM"] = "FORM";
|
|
105
105
|
PreviewType["RECEIPT"] = "RECEIPT";
|
|
106
106
|
PreviewType["EMAIL"] = "EMAIL";
|
|
107
|
-
})(PreviewType
|
|
107
|
+
})(PreviewType || (exports.PreviewType = PreviewType = {}));
|
|
108
108
|
exports.PREVIEW_TYPES = Object.keys(PreviewType);
|
package/package.json
CHANGED
package/peers/api.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.listPeers = listPeers;
|
|
4
|
+
exports.createPeer = createPeer;
|
|
5
|
+
exports.getPeer = getPeer;
|
|
6
|
+
exports.updatePeer = updatePeer;
|
|
7
|
+
exports.deletePeer = deletePeer;
|
|
4
8
|
var api_1 = require("../api");
|
|
5
9
|
function listPeers(options) {
|
|
6
10
|
return api_1.RightConsents.http({
|
|
@@ -9,7 +13,6 @@ function listPeers(options) {
|
|
|
9
13
|
options: options
|
|
10
14
|
});
|
|
11
15
|
}
|
|
12
|
-
exports.listPeers = listPeers;
|
|
13
16
|
function createPeer(peerDto, options) {
|
|
14
17
|
return api_1.RightConsents.http({
|
|
15
18
|
method: 'POST',
|
|
@@ -18,7 +21,6 @@ function createPeer(peerDto, options) {
|
|
|
18
21
|
options: options
|
|
19
22
|
});
|
|
20
23
|
}
|
|
21
|
-
exports.createPeer = createPeer;
|
|
22
24
|
function getPeer(id, options) {
|
|
23
25
|
return api_1.RightConsents.http({
|
|
24
26
|
method: 'GET',
|
|
@@ -26,7 +28,6 @@ function getPeer(id, options) {
|
|
|
26
28
|
options: options
|
|
27
29
|
});
|
|
28
30
|
}
|
|
29
|
-
exports.getPeer = getPeer;
|
|
30
31
|
function updatePeer(id, peer, options) {
|
|
31
32
|
return api_1.RightConsents.http({
|
|
32
33
|
method: 'PUT',
|
|
@@ -35,7 +36,6 @@ function updatePeer(id, peer, options) {
|
|
|
35
36
|
options: options
|
|
36
37
|
});
|
|
37
38
|
}
|
|
38
|
-
exports.updatePeer = updatePeer;
|
|
39
39
|
function deletePeer(id, options) {
|
|
40
40
|
return api_1.RightConsents.http({
|
|
41
41
|
method: 'DELETE',
|
|
@@ -43,4 +43,3 @@ function deletePeer(id, options) {
|
|
|
43
43
|
options: options
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
exports.deletePeer = deletePeer;
|
package/receipts/api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getReceiptPdf =
|
|
3
|
+
exports.getReceiptPdf = getReceiptPdf;
|
|
4
4
|
var api_1 = require("../api");
|
|
5
5
|
function getReceiptPdf(transactionId, theme, options) {
|
|
6
6
|
return api_1.RightConsents.http({
|
|
@@ -11,4 +11,3 @@ function getReceiptPdf(transactionId, theme, options) {
|
|
|
11
11
|
options: options
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
exports.getReceiptPdf = getReceiptPdf;
|
package/records/api.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.listRecords = listRecords;
|
|
4
|
+
exports.extractRecords = extractRecords;
|
|
5
|
+
exports.extractRecordsCsv = extractRecordsCsv;
|
|
6
|
+
exports.exportRecords = exportRecords;
|
|
7
|
+
exports.exportRecordsCsv = exportRecordsCsv;
|
|
8
|
+
exports.listEntryRecords = listEntryRecords;
|
|
9
|
+
exports.listRecordHistory = listRecordHistory;
|
|
4
10
|
var api_1 = require("../api");
|
|
5
11
|
function listRecords(filter, options) {
|
|
6
12
|
return api_1.RightConsents.http({
|
|
@@ -10,7 +16,6 @@ function listRecords(filter, options) {
|
|
|
10
16
|
options: options
|
|
11
17
|
});
|
|
12
18
|
}
|
|
13
|
-
exports.listRecords = listRecords;
|
|
14
19
|
function extractRecords(filter, options) {
|
|
15
20
|
return api_1.RightConsents.http({
|
|
16
21
|
method: 'POST',
|
|
@@ -19,7 +24,6 @@ function extractRecords(filter, options) {
|
|
|
19
24
|
options: options
|
|
20
25
|
});
|
|
21
26
|
}
|
|
22
|
-
exports.extractRecords = extractRecords;
|
|
23
27
|
function extractRecordsCsv(filter, options) {
|
|
24
28
|
return api_1.RightConsents.http({
|
|
25
29
|
method: 'POST',
|
|
@@ -32,7 +36,6 @@ function extractRecordsCsv(filter, options) {
|
|
|
32
36
|
options: options
|
|
33
37
|
});
|
|
34
38
|
}
|
|
35
|
-
exports.extractRecordsCsv = extractRecordsCsv;
|
|
36
39
|
function exportRecords(filter, options) {
|
|
37
40
|
return api_1.RightConsents.http({
|
|
38
41
|
method: 'POST',
|
|
@@ -41,7 +44,6 @@ function exportRecords(filter, options) {
|
|
|
41
44
|
options: options
|
|
42
45
|
});
|
|
43
46
|
}
|
|
44
|
-
exports.exportRecords = exportRecords;
|
|
45
47
|
function exportRecordsCsv(filter, options) {
|
|
46
48
|
return api_1.RightConsents.http({
|
|
47
49
|
method: 'POST',
|
|
@@ -54,7 +56,6 @@ function exportRecordsCsv(filter, options) {
|
|
|
54
56
|
options: options
|
|
55
57
|
});
|
|
56
58
|
}
|
|
57
|
-
exports.exportRecordsCsv = exportRecordsCsv;
|
|
58
59
|
function listEntryRecords(filter, options) {
|
|
59
60
|
return api_1.RightConsents.http({
|
|
60
61
|
method: 'GET',
|
|
@@ -63,7 +64,6 @@ function listEntryRecords(filter, options) {
|
|
|
63
64
|
options: options
|
|
64
65
|
});
|
|
65
66
|
}
|
|
66
|
-
exports.listEntryRecords = listEntryRecords;
|
|
67
67
|
function listRecordHistory(filter, options) {
|
|
68
68
|
return api_1.RightConsents.http({
|
|
69
69
|
method: 'GET',
|
|
@@ -72,4 +72,3 @@ function listRecordHistory(filter, options) {
|
|
|
72
72
|
options: options
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
-
exports.listRecordHistory = listRecordHistory;
|
package/records/interfaces.js
CHANGED
|
@@ -6,7 +6,7 @@ var RecordStates;
|
|
|
6
6
|
RecordStates["PENDING"] = "PENDING";
|
|
7
7
|
RecordStates["COMMITTED"] = "COMMITTED";
|
|
8
8
|
RecordStates["DELETED"] = "DELETED";
|
|
9
|
-
})(RecordStates
|
|
9
|
+
})(RecordStates || (exports.RecordStates = RecordStates = {}));
|
|
10
10
|
var RecordStatus;
|
|
11
11
|
(function (RecordStatus) {
|
|
12
12
|
RecordStatus["VALID"] = "VALID";
|
|
@@ -14,7 +14,7 @@ var RecordStatus;
|
|
|
14
14
|
RecordStatus["EXPIRED"] = "EXPIRED";
|
|
15
15
|
RecordStatus["IRRELEVANT"] = "IRRELEVANT";
|
|
16
16
|
RecordStatus["UNKNOWN"] = "UNKNOWN";
|
|
17
|
-
})(RecordStatus
|
|
17
|
+
})(RecordStatus || (exports.RecordStatus = RecordStatus = {}));
|
|
18
18
|
var RecordStatusExplanation;
|
|
19
19
|
(function (RecordStatusExplanation) {
|
|
20
20
|
RecordStatusExplanation["LATEST_VALID"] = "LATEST_VALID";
|
|
@@ -24,14 +24,14 @@ var RecordStatusExplanation;
|
|
|
24
24
|
RecordStatusExplanation["BODY_SERIAL_ARCHIVED"] = "BODY_SERIAL_ARCHIVED";
|
|
25
25
|
RecordStatusExplanation["STILL_PENDING"] = "STILL_PENDING";
|
|
26
26
|
RecordStatusExplanation["ENTRY_DELETED"] = "ENTRY_DELETED";
|
|
27
|
-
})(RecordStatusExplanation
|
|
27
|
+
})(RecordStatusExplanation || (exports.RecordStatusExplanation = RecordStatusExplanation = {}));
|
|
28
28
|
exports.RECORD_IDENTIFIER_DEFAULT = 'undefined';
|
|
29
29
|
exports.RECORD_IDENTIFIER_SEPARATOR = '|';
|
|
30
30
|
var ExtractionConfigOperator;
|
|
31
31
|
(function (ExtractionConfigOperator) {
|
|
32
32
|
ExtractionConfigOperator["AND"] = "AND";
|
|
33
33
|
ExtractionConfigOperator["OR"] = "OR";
|
|
34
|
-
})(ExtractionConfigOperator
|
|
34
|
+
})(ExtractionConfigOperator || (exports.ExtractionConfigOperator = ExtractionConfigOperator = {}));
|
|
35
35
|
var NotificationReportStatus;
|
|
36
36
|
(function (NotificationReportStatus) {
|
|
37
37
|
NotificationReportStatus["SENT"] = "SENT";
|
|
@@ -42,7 +42,7 @@ var NotificationReportStatus;
|
|
|
42
42
|
NotificationReportStatus["ERROR"] = "ERROR";
|
|
43
43
|
NotificationReportStatus["PENDING"] = "PENDING";
|
|
44
44
|
NotificationReportStatus["NONE"] = "NONE";
|
|
45
|
-
})(NotificationReportStatus
|
|
45
|
+
})(NotificationReportStatus || (exports.NotificationReportStatus = NotificationReportStatus = {}));
|
|
46
46
|
var NotificationReportType;
|
|
47
47
|
(function (NotificationReportType) {
|
|
48
48
|
NotificationReportType["SMS"] = "SMS";
|
|
@@ -50,4 +50,4 @@ var NotificationReportType;
|
|
|
50
50
|
NotificationReportType["FCM"] = "FCM";
|
|
51
51
|
NotificationReportType["XMPP"] = "XMPP";
|
|
52
52
|
NotificationReportType["NONE"] = "NONE";
|
|
53
|
-
})(NotificationReportType
|
|
53
|
+
})(NotificationReportType || (exports.NotificationReportType = NotificationReportType = {}));
|
package/statistics/api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getStats =
|
|
3
|
+
exports.getStats = getStats;
|
|
4
4
|
var api_1 = require("../api");
|
|
5
5
|
function getStats(options) {
|
|
6
6
|
return api_1.RightConsents.http({
|
|
@@ -9,4 +9,3 @@ function getStats(options) {
|
|
|
9
9
|
options: options
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
-
exports.getStats = getStats;
|
package/statistics/interfaces.js
CHANGED
|
@@ -6,5 +6,5 @@ var TimeScale;
|
|
|
6
6
|
TimeScale["DAYS"] = "DAYS";
|
|
7
7
|
TimeScale["WEEKS"] = "WEEKS";
|
|
8
8
|
TimeScale["MONTHS"] = "MONTHS";
|
|
9
|
-
})(TimeScale
|
|
9
|
+
})(TimeScale || (exports.TimeScale = TimeScale = {}));
|
|
10
10
|
exports.TIME_SCALES = Object.keys(TimeScale);
|
package/subjects/api.js
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.listSubjects = listSubjects;
|
|
4
|
+
exports.getSubjects = getSubjects;
|
|
5
|
+
exports.getSubject = getSubject;
|
|
6
|
+
exports.createSubject = createSubject;
|
|
7
|
+
exports.updateSubject = updateSubject;
|
|
8
|
+
exports.listSubjectRecords = listSubjectRecords;
|
|
9
|
+
exports.getAliases = getAliases;
|
|
10
|
+
exports.setAlias = setAlias;
|
|
11
|
+
exports.removeAlias = removeAlias;
|
|
4
12
|
var api_1 = require("../api");
|
|
5
13
|
function listSubjects(name, options) {
|
|
6
14
|
return api_1.RightConsents.http({
|
|
@@ -10,7 +18,6 @@ function listSubjects(name, options) {
|
|
|
10
18
|
options: options
|
|
11
19
|
});
|
|
12
20
|
}
|
|
13
|
-
exports.listSubjects = listSubjects;
|
|
14
21
|
function getSubjects(filter, options) {
|
|
15
22
|
return api_1.RightConsents.http({
|
|
16
23
|
method: 'GET',
|
|
@@ -19,7 +26,6 @@ function getSubjects(filter, options) {
|
|
|
19
26
|
options: options
|
|
20
27
|
});
|
|
21
28
|
}
|
|
22
|
-
exports.getSubjects = getSubjects;
|
|
23
29
|
function getSubject(name, options) {
|
|
24
30
|
return api_1.RightConsents.http({
|
|
25
31
|
method: 'GET',
|
|
@@ -27,7 +33,6 @@ function getSubject(name, options) {
|
|
|
27
33
|
options: options
|
|
28
34
|
});
|
|
29
35
|
}
|
|
30
|
-
exports.getSubject = getSubject;
|
|
31
36
|
function createSubject(subject, options) {
|
|
32
37
|
return api_1.RightConsents.http({
|
|
33
38
|
method: 'POST',
|
|
@@ -36,7 +41,6 @@ function createSubject(subject, options) {
|
|
|
36
41
|
options: options
|
|
37
42
|
});
|
|
38
43
|
}
|
|
39
|
-
exports.createSubject = createSubject;
|
|
40
44
|
function updateSubject(subject, options) {
|
|
41
45
|
return api_1.RightConsents.http({
|
|
42
46
|
method: 'PUT',
|
|
@@ -45,7 +49,6 @@ function updateSubject(subject, options) {
|
|
|
45
49
|
options: options
|
|
46
50
|
});
|
|
47
51
|
}
|
|
48
|
-
exports.updateSubject = updateSubject;
|
|
49
52
|
function listSubjectRecords(subject, options) {
|
|
50
53
|
return api_1.RightConsents.http({
|
|
51
54
|
method: 'GET',
|
|
@@ -53,7 +56,6 @@ function listSubjectRecords(subject, options) {
|
|
|
53
56
|
options: options
|
|
54
57
|
});
|
|
55
58
|
}
|
|
56
|
-
exports.listSubjectRecords = listSubjectRecords;
|
|
57
59
|
function getAliases(subject, options) {
|
|
58
60
|
return api_1.RightConsents.http({
|
|
59
61
|
method: 'GET',
|
|
@@ -61,7 +63,6 @@ function getAliases(subject, options) {
|
|
|
61
63
|
options: options
|
|
62
64
|
});
|
|
63
65
|
}
|
|
64
|
-
exports.getAliases = getAliases;
|
|
65
66
|
function setAlias(subject, supersede, options) {
|
|
66
67
|
return api_1.RightConsents.http({
|
|
67
68
|
method: 'PUT',
|
|
@@ -70,7 +71,6 @@ function setAlias(subject, supersede, options) {
|
|
|
70
71
|
options: options
|
|
71
72
|
});
|
|
72
73
|
}
|
|
73
|
-
exports.setAlias = setAlias;
|
|
74
74
|
function removeAlias(alias, options) {
|
|
75
75
|
return api_1.RightConsents.http({
|
|
76
76
|
method: 'DELETE',
|
|
@@ -78,4 +78,3 @@ function removeAlias(alias, options) {
|
|
|
78
78
|
options: options
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
exports.removeAlias = removeAlias;
|
package/system/api.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getInstance = getInstance;
|
|
4
|
+
exports.getSupportInfo = getSupportInfo;
|
|
5
|
+
exports.getClientConfig = getClientConfig;
|
|
4
6
|
var api_1 = require("../api");
|
|
5
7
|
function getInstance(options) {
|
|
6
8
|
return api_1.RightConsents.http({
|
|
@@ -9,7 +11,6 @@ function getInstance(options) {
|
|
|
9
11
|
options: options
|
|
10
12
|
});
|
|
11
13
|
}
|
|
12
|
-
exports.getInstance = getInstance;
|
|
13
14
|
function getSupportInfo(options) {
|
|
14
15
|
return api_1.RightConsents.http({
|
|
15
16
|
method: 'GET',
|
|
@@ -17,7 +18,6 @@ function getSupportInfo(options) {
|
|
|
17
18
|
options: options
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
|
-
exports.getSupportInfo = getSupportInfo;
|
|
21
21
|
function getClientConfig(options) {
|
|
22
22
|
return api_1.RightConsents.http({
|
|
23
23
|
method: 'GET',
|
|
@@ -25,4 +25,3 @@ function getClientConfig(options) {
|
|
|
25
25
|
options: options
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
exports.getClientConfig = getClientConfig;
|
package/tokens/api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createToken =
|
|
3
|
+
exports.createToken = createToken;
|
|
4
4
|
var api_1 = require("../api");
|
|
5
5
|
function createToken(accessToken, options) {
|
|
6
6
|
return api_1.RightConsents.http({
|
|
@@ -11,4 +11,3 @@ function createToken(accessToken, options) {
|
|
|
11
11
|
options: options
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
exports.createToken = createToken;
|
package/transactions/api.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.listTransactions = listTransactions;
|
|
4
|
+
exports.getTransactionContext = getTransactionContext;
|
|
4
5
|
var api_1 = require("../api");
|
|
5
6
|
function listTransactions(filter, options) {
|
|
6
7
|
return api_1.RightConsents.http({
|
|
@@ -13,7 +14,6 @@ function listTransactions(filter, options) {
|
|
|
13
14
|
options: options
|
|
14
15
|
});
|
|
15
16
|
}
|
|
16
|
-
exports.listTransactions = listTransactions;
|
|
17
17
|
function getTransactionContext(txid, options) {
|
|
18
18
|
return api_1.RightConsents.http({
|
|
19
19
|
method: 'GET',
|
|
@@ -24,4 +24,3 @@ function getTransactionContext(txid, options) {
|
|
|
24
24
|
options: options
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
exports.getTransactionContext = getTransactionContext;
|
|
@@ -9,4 +9,4 @@ var TransactionStates;
|
|
|
9
9
|
TransactionStates["TIMEOUT"] = "TIMEOUT";
|
|
10
10
|
TransactionStates["SUBMITTED"] = "SUBMITTED";
|
|
11
11
|
TransactionStates["ROLLBACK"] = "ROLLBACK";
|
|
12
|
-
})(TransactionStates
|
|
12
|
+
})(TransactionStates || (exports.TransactionStates = TransactionStates = {}));
|
package/users/api.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getMe = getMe;
|
|
4
|
+
exports.getRecordsForUser = getRecordsForUser;
|
|
5
|
+
exports.getUserStatus = getUserStatus;
|
|
4
6
|
var api_1 = require("../api");
|
|
5
7
|
function getMe(options) {
|
|
6
8
|
return api_1.RightConsents.http({
|
|
@@ -9,7 +11,6 @@ function getMe(options) {
|
|
|
9
11
|
options: options,
|
|
10
12
|
});
|
|
11
13
|
}
|
|
12
|
-
exports.getMe = getMe;
|
|
13
14
|
function getRecordsForUser(options) {
|
|
14
15
|
return api_1.RightConsents.http({
|
|
15
16
|
method: 'GET',
|
|
@@ -17,7 +18,6 @@ function getRecordsForUser(options) {
|
|
|
17
18
|
options: options,
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
|
-
exports.getRecordsForUser = getRecordsForUser;
|
|
21
21
|
function getUserStatus(options) {
|
|
22
22
|
return api_1.RightConsents.http({
|
|
23
23
|
method: 'GET',
|
|
@@ -25,4 +25,3 @@ function getUserStatus(options) {
|
|
|
25
25
|
options: options,
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
exports.getUserStatus = getUserStatus;
|
package/webhooks/api.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.listWebhooks = listWebhooks;
|
|
4
|
+
exports.createWebhook = createWebhook;
|
|
5
|
+
exports.getWebhook = getWebhook;
|
|
6
|
+
exports.updateWebhook = updateWebhook;
|
|
7
|
+
exports.deleteWebhook = deleteWebhook;
|
|
4
8
|
var api_1 = require("../api");
|
|
5
9
|
function listWebhooks(options) {
|
|
6
10
|
return api_1.RightConsents.http({
|
|
@@ -9,7 +13,6 @@ function listWebhooks(options) {
|
|
|
9
13
|
options: options
|
|
10
14
|
});
|
|
11
15
|
}
|
|
12
|
-
exports.listWebhooks = listWebhooks;
|
|
13
16
|
function createWebhook(webhook, options) {
|
|
14
17
|
return api_1.RightConsents.http({
|
|
15
18
|
method: 'POST',
|
|
@@ -22,7 +25,6 @@ function createWebhook(webhook, options) {
|
|
|
22
25
|
options: options
|
|
23
26
|
});
|
|
24
27
|
}
|
|
25
|
-
exports.createWebhook = createWebhook;
|
|
26
28
|
function getWebhook(webhookid, options) {
|
|
27
29
|
return api_1.RightConsents.http({
|
|
28
30
|
method: 'GET',
|
|
@@ -30,7 +32,6 @@ function getWebhook(webhookid, options) {
|
|
|
30
32
|
options: options
|
|
31
33
|
});
|
|
32
34
|
}
|
|
33
|
-
exports.getWebhook = getWebhook;
|
|
34
35
|
function updateWebhook(webhookid, webhook, options) {
|
|
35
36
|
return api_1.RightConsents.http({
|
|
36
37
|
method: 'PUT',
|
|
@@ -39,7 +40,6 @@ function updateWebhook(webhookid, webhook, options) {
|
|
|
39
40
|
options: options
|
|
40
41
|
});
|
|
41
42
|
}
|
|
42
|
-
exports.updateWebhook = updateWebhook;
|
|
43
43
|
function deleteWebhook(webhookid, options) {
|
|
44
44
|
return api_1.RightConsents.http({
|
|
45
45
|
method: 'DELETE',
|
|
@@ -47,4 +47,3 @@ function deleteWebhook(webhookid, options) {
|
|
|
47
47
|
options: options
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
exports.deleteWebhook = deleteWebhook;
|
package/webhooks/interfaces.js
CHANGED
|
@@ -4,4 +4,4 @@ exports.SubscribedActions = void 0;
|
|
|
4
4
|
var SubscribedActions;
|
|
5
5
|
(function (SubscribedActions) {
|
|
6
6
|
SubscribedActions["CONSENT_COMMIT"] = "CONSENT_COMMIT";
|
|
7
|
-
})(SubscribedActions
|
|
7
|
+
})(SubscribedActions || (exports.SubscribedActions = SubscribedActions = {}));
|