fusio-sdk 3.0.7 → 3.0.9
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/dist/src/generated/backend/Action.d.ts +0 -1
- package/dist/src/generated/backend/ActionTag.d.ts +1 -1
- package/dist/src/generated/backend/ActionTag.js +2 -1
- package/dist/src/generated/backend/CategoryTag.d.ts +1 -1
- package/dist/src/generated/backend/CategoryTag.js +1 -1
- package/dist/src/generated/backend/ScopeOperation.d.ts +0 -1
- package/dist/src/generated/backend/ScopeTag.js +2 -0
- package/dist/src/generated/backend/StatisticTag.d.ts +10 -10
- package/dist/src/generated/backend/StatisticTag.js +23 -23
- package/dist/src/generated/consumer/AccountTag.js +2 -0
- package/package.json +1 -1
|
@@ -60,5 +60,5 @@ export declare class ActionTag extends TagAbstract {
|
|
|
60
60
|
* @throws {MessageException}
|
|
61
61
|
* @throws {ClientException}
|
|
62
62
|
*/
|
|
63
|
-
getAll(startIndex?: number, count?: number): Promise<ActionCollection>;
|
|
63
|
+
getAll(startIndex?: number, count?: number, search?: string): Promise<ActionCollection>;
|
|
64
64
|
}
|
|
@@ -251,7 +251,7 @@ export class ActionTag extends TagAbstract {
|
|
|
251
251
|
* @throws {MessageException}
|
|
252
252
|
* @throws {ClientException}
|
|
253
253
|
*/
|
|
254
|
-
async getAll(startIndex, count) {
|
|
254
|
+
async getAll(startIndex, count, search) {
|
|
255
255
|
const url = this.parser.url('/backend/action', {});
|
|
256
256
|
let params = {
|
|
257
257
|
url: url,
|
|
@@ -259,6 +259,7 @@ export class ActionTag extends TagAbstract {
|
|
|
259
259
|
params: this.parser.query({
|
|
260
260
|
'startIndex': startIndex,
|
|
261
261
|
'count': count,
|
|
262
|
+
'search': search,
|
|
262
263
|
}),
|
|
263
264
|
};
|
|
264
265
|
try {
|
|
@@ -32,7 +32,7 @@ export declare class CategoryTag extends TagAbstract {
|
|
|
32
32
|
* @throws {MessageException}
|
|
33
33
|
* @throws {ClientException}
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
create(payload: CategoryCreate): Promise<Message>;
|
|
36
36
|
/**
|
|
37
37
|
* @returns {Promise<CategoryCollection>}
|
|
38
38
|
* @throws {MessageException}
|
|
@@ -123,7 +123,7 @@ export class CategoryTag extends TagAbstract {
|
|
|
123
123
|
* @throws {MessageException}
|
|
124
124
|
* @throws {ClientException}
|
|
125
125
|
*/
|
|
126
|
-
async
|
|
126
|
+
async create(payload) {
|
|
127
127
|
const url = this.parser.url('/backend/category', {});
|
|
128
128
|
let params = {
|
|
129
129
|
url: url,
|
|
@@ -28,6 +28,8 @@ export class ScopeTag extends TagAbstract {
|
|
|
28
28
|
catch (error) {
|
|
29
29
|
if (axios.isAxiosError(error) && error.response) {
|
|
30
30
|
switch (error.response.status) {
|
|
31
|
+
case 400:
|
|
32
|
+
throw new MessageException(error.response.data);
|
|
31
33
|
case 401:
|
|
32
34
|
throw new MessageException(error.response.data);
|
|
33
35
|
case 404:
|
|
@@ -11,59 +11,59 @@ export declare class StatisticTag extends TagAbstract {
|
|
|
11
11
|
* @throws {MessageException}
|
|
12
12
|
* @throws {ClientException}
|
|
13
13
|
*/
|
|
14
|
-
getUsedPoints(startIndex?: number, count?: number, search?: string, from?: string, to?: string,
|
|
14
|
+
getUsedPoints(startIndex?: number, count?: number, search?: string, from?: string, to?: string, operationId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticChart>;
|
|
15
15
|
/**
|
|
16
16
|
* @returns {Promise<StatisticChart>}
|
|
17
17
|
* @throws {MessageException}
|
|
18
18
|
* @throws {ClientException}
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
getTimePerOperation(startIndex?: number, count?: number, search?: string, from?: string, to?: string, operationId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticChart>;
|
|
21
21
|
/**
|
|
22
22
|
* @returns {Promise<StatisticChart>}
|
|
23
23
|
* @throws {MessageException}
|
|
24
24
|
* @throws {ClientException}
|
|
25
25
|
*/
|
|
26
|
-
getTimeAverage(startIndex?: number, count?: number, search?: string, from?: string, to?: string,
|
|
26
|
+
getTimeAverage(startIndex?: number, count?: number, search?: string, from?: string, to?: string, operationId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticChart>;
|
|
27
27
|
/**
|
|
28
28
|
* @returns {Promise<StatisticChart>}
|
|
29
29
|
* @throws {MessageException}
|
|
30
30
|
* @throws {ClientException}
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
getMostUsedOperations(startIndex?: number, count?: number, search?: string, from?: string, to?: string, operationId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticChart>;
|
|
33
33
|
/**
|
|
34
34
|
* @returns {Promise<StatisticChart>}
|
|
35
35
|
* @throws {MessageException}
|
|
36
36
|
* @throws {ClientException}
|
|
37
37
|
*/
|
|
38
|
-
getMostUsedApps(startIndex?: number, count?: number, search?: string, from?: string, to?: string,
|
|
38
|
+
getMostUsedApps(startIndex?: number, count?: number, search?: string, from?: string, to?: string, operationId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticChart>;
|
|
39
39
|
/**
|
|
40
40
|
* @returns {Promise<StatisticChart>}
|
|
41
41
|
* @throws {MessageException}
|
|
42
42
|
* @throws {ClientException}
|
|
43
43
|
*/
|
|
44
|
-
getIssuedTokens(startIndex?: number, count?: number, search?: string, from?: string, to?: string,
|
|
44
|
+
getIssuedTokens(startIndex?: number, count?: number, search?: string, from?: string, to?: string, operationId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticChart>;
|
|
45
45
|
/**
|
|
46
46
|
* @returns {Promise<StatisticChart>}
|
|
47
47
|
* @throws {MessageException}
|
|
48
48
|
* @throws {ClientException}
|
|
49
49
|
*/
|
|
50
|
-
getIncomingTransactions(startIndex?: number, count?: number, search?: string, from?: string, to?: string,
|
|
50
|
+
getIncomingTransactions(startIndex?: number, count?: number, search?: string, from?: string, to?: string, operationId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticChart>;
|
|
51
51
|
/**
|
|
52
52
|
* @returns {Promise<StatisticChart>}
|
|
53
53
|
* @throws {MessageException}
|
|
54
54
|
* @throws {ClientException}
|
|
55
55
|
*/
|
|
56
|
-
getIncomingRequests(startIndex?: number, count?: number, search?: string, from?: string, to?: string,
|
|
56
|
+
getIncomingRequests(startIndex?: number, count?: number, search?: string, from?: string, to?: string, operationId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticChart>;
|
|
57
57
|
/**
|
|
58
58
|
* @returns {Promise<StatisticChart>}
|
|
59
59
|
* @throws {MessageException}
|
|
60
60
|
* @throws {ClientException}
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
getErrorsPerOperation(startIndex?: number, count?: number, search?: string, from?: string, to?: string, operationId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticChart>;
|
|
63
63
|
/**
|
|
64
64
|
* @returns {Promise<StatisticCount>}
|
|
65
65
|
* @throws {MessageException}
|
|
66
66
|
* @throws {ClientException}
|
|
67
67
|
*/
|
|
68
|
-
getCountRequests(startIndex?: number, count?: number, search?: string, from?: string, to?: string,
|
|
68
|
+
getCountRequests(startIndex?: number, count?: number, search?: string, from?: string, to?: string, operationId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticCount>;
|
|
69
69
|
}
|
|
@@ -12,7 +12,7 @@ export class StatisticTag extends TagAbstract {
|
|
|
12
12
|
* @throws {MessageException}
|
|
13
13
|
* @throws {ClientException}
|
|
14
14
|
*/
|
|
15
|
-
async getUsedPoints(startIndex, count, search, from, to,
|
|
15
|
+
async getUsedPoints(startIndex, count, search, from, to, operationId, appId, userId, ip, userAgent, method, path, header, body) {
|
|
16
16
|
const url = this.parser.url('/backend/statistic/used_points', {});
|
|
17
17
|
let params = {
|
|
18
18
|
url: url,
|
|
@@ -23,7 +23,7 @@ export class StatisticTag extends TagAbstract {
|
|
|
23
23
|
'search': search,
|
|
24
24
|
'from': from,
|
|
25
25
|
'to': to,
|
|
26
|
-
'
|
|
26
|
+
'operationId': operationId,
|
|
27
27
|
'appId': appId,
|
|
28
28
|
'userId': userId,
|
|
29
29
|
'ip': ip,
|
|
@@ -57,8 +57,8 @@ export class StatisticTag extends TagAbstract {
|
|
|
57
57
|
* @throws {MessageException}
|
|
58
58
|
* @throws {ClientException}
|
|
59
59
|
*/
|
|
60
|
-
async
|
|
61
|
-
const url = this.parser.url('/backend/statistic/
|
|
60
|
+
async getTimePerOperation(startIndex, count, search, from, to, operationId, appId, userId, ip, userAgent, method, path, header, body) {
|
|
61
|
+
const url = this.parser.url('/backend/statistic/time_per_operation', {});
|
|
62
62
|
let params = {
|
|
63
63
|
url: url,
|
|
64
64
|
method: 'GET',
|
|
@@ -68,7 +68,7 @@ export class StatisticTag extends TagAbstract {
|
|
|
68
68
|
'search': search,
|
|
69
69
|
'from': from,
|
|
70
70
|
'to': to,
|
|
71
|
-
'
|
|
71
|
+
'operationId': operationId,
|
|
72
72
|
'appId': appId,
|
|
73
73
|
'userId': userId,
|
|
74
74
|
'ip': ip,
|
|
@@ -102,7 +102,7 @@ export class StatisticTag extends TagAbstract {
|
|
|
102
102
|
* @throws {MessageException}
|
|
103
103
|
* @throws {ClientException}
|
|
104
104
|
*/
|
|
105
|
-
async getTimeAverage(startIndex, count, search, from, to,
|
|
105
|
+
async getTimeAverage(startIndex, count, search, from, to, operationId, appId, userId, ip, userAgent, method, path, header, body) {
|
|
106
106
|
const url = this.parser.url('/backend/statistic/time_average', {});
|
|
107
107
|
let params = {
|
|
108
108
|
url: url,
|
|
@@ -113,7 +113,7 @@ export class StatisticTag extends TagAbstract {
|
|
|
113
113
|
'search': search,
|
|
114
114
|
'from': from,
|
|
115
115
|
'to': to,
|
|
116
|
-
'
|
|
116
|
+
'operationId': operationId,
|
|
117
117
|
'appId': appId,
|
|
118
118
|
'userId': userId,
|
|
119
119
|
'ip': ip,
|
|
@@ -147,8 +147,8 @@ export class StatisticTag extends TagAbstract {
|
|
|
147
147
|
* @throws {MessageException}
|
|
148
148
|
* @throws {ClientException}
|
|
149
149
|
*/
|
|
150
|
-
async
|
|
151
|
-
const url = this.parser.url('/backend/statistic/
|
|
150
|
+
async getMostUsedOperations(startIndex, count, search, from, to, operationId, appId, userId, ip, userAgent, method, path, header, body) {
|
|
151
|
+
const url = this.parser.url('/backend/statistic/most_used_operations', {});
|
|
152
152
|
let params = {
|
|
153
153
|
url: url,
|
|
154
154
|
method: 'GET',
|
|
@@ -158,7 +158,7 @@ export class StatisticTag extends TagAbstract {
|
|
|
158
158
|
'search': search,
|
|
159
159
|
'from': from,
|
|
160
160
|
'to': to,
|
|
161
|
-
'
|
|
161
|
+
'operationId': operationId,
|
|
162
162
|
'appId': appId,
|
|
163
163
|
'userId': userId,
|
|
164
164
|
'ip': ip,
|
|
@@ -192,7 +192,7 @@ export class StatisticTag extends TagAbstract {
|
|
|
192
192
|
* @throws {MessageException}
|
|
193
193
|
* @throws {ClientException}
|
|
194
194
|
*/
|
|
195
|
-
async getMostUsedApps(startIndex, count, search, from, to,
|
|
195
|
+
async getMostUsedApps(startIndex, count, search, from, to, operationId, appId, userId, ip, userAgent, method, path, header, body) {
|
|
196
196
|
const url = this.parser.url('/backend/statistic/most_used_apps', {});
|
|
197
197
|
let params = {
|
|
198
198
|
url: url,
|
|
@@ -203,7 +203,7 @@ export class StatisticTag extends TagAbstract {
|
|
|
203
203
|
'search': search,
|
|
204
204
|
'from': from,
|
|
205
205
|
'to': to,
|
|
206
|
-
'
|
|
206
|
+
'operationId': operationId,
|
|
207
207
|
'appId': appId,
|
|
208
208
|
'userId': userId,
|
|
209
209
|
'ip': ip,
|
|
@@ -237,7 +237,7 @@ export class StatisticTag extends TagAbstract {
|
|
|
237
237
|
* @throws {MessageException}
|
|
238
238
|
* @throws {ClientException}
|
|
239
239
|
*/
|
|
240
|
-
async getIssuedTokens(startIndex, count, search, from, to,
|
|
240
|
+
async getIssuedTokens(startIndex, count, search, from, to, operationId, appId, userId, ip, userAgent, method, path, header, body) {
|
|
241
241
|
const url = this.parser.url('/backend/statistic/issued_tokens', {});
|
|
242
242
|
let params = {
|
|
243
243
|
url: url,
|
|
@@ -248,7 +248,7 @@ export class StatisticTag extends TagAbstract {
|
|
|
248
248
|
'search': search,
|
|
249
249
|
'from': from,
|
|
250
250
|
'to': to,
|
|
251
|
-
'
|
|
251
|
+
'operationId': operationId,
|
|
252
252
|
'appId': appId,
|
|
253
253
|
'userId': userId,
|
|
254
254
|
'ip': ip,
|
|
@@ -282,7 +282,7 @@ export class StatisticTag extends TagAbstract {
|
|
|
282
282
|
* @throws {MessageException}
|
|
283
283
|
* @throws {ClientException}
|
|
284
284
|
*/
|
|
285
|
-
async getIncomingTransactions(startIndex, count, search, from, to,
|
|
285
|
+
async getIncomingTransactions(startIndex, count, search, from, to, operationId, appId, userId, ip, userAgent, method, path, header, body) {
|
|
286
286
|
const url = this.parser.url('/backend/statistic/incoming_transactions', {});
|
|
287
287
|
let params = {
|
|
288
288
|
url: url,
|
|
@@ -293,7 +293,7 @@ export class StatisticTag extends TagAbstract {
|
|
|
293
293
|
'search': search,
|
|
294
294
|
'from': from,
|
|
295
295
|
'to': to,
|
|
296
|
-
'
|
|
296
|
+
'operationId': operationId,
|
|
297
297
|
'appId': appId,
|
|
298
298
|
'userId': userId,
|
|
299
299
|
'ip': ip,
|
|
@@ -327,7 +327,7 @@ export class StatisticTag extends TagAbstract {
|
|
|
327
327
|
* @throws {MessageException}
|
|
328
328
|
* @throws {ClientException}
|
|
329
329
|
*/
|
|
330
|
-
async getIncomingRequests(startIndex, count, search, from, to,
|
|
330
|
+
async getIncomingRequests(startIndex, count, search, from, to, operationId, appId, userId, ip, userAgent, method, path, header, body) {
|
|
331
331
|
const url = this.parser.url('/backend/statistic/incoming_requests', {});
|
|
332
332
|
let params = {
|
|
333
333
|
url: url,
|
|
@@ -338,7 +338,7 @@ export class StatisticTag extends TagAbstract {
|
|
|
338
338
|
'search': search,
|
|
339
339
|
'from': from,
|
|
340
340
|
'to': to,
|
|
341
|
-
'
|
|
341
|
+
'operationId': operationId,
|
|
342
342
|
'appId': appId,
|
|
343
343
|
'userId': userId,
|
|
344
344
|
'ip': ip,
|
|
@@ -372,8 +372,8 @@ export class StatisticTag extends TagAbstract {
|
|
|
372
372
|
* @throws {MessageException}
|
|
373
373
|
* @throws {ClientException}
|
|
374
374
|
*/
|
|
375
|
-
async
|
|
376
|
-
const url = this.parser.url('/backend/statistic/
|
|
375
|
+
async getErrorsPerOperation(startIndex, count, search, from, to, operationId, appId, userId, ip, userAgent, method, path, header, body) {
|
|
376
|
+
const url = this.parser.url('/backend/statistic/errors_per_operation', {});
|
|
377
377
|
let params = {
|
|
378
378
|
url: url,
|
|
379
379
|
method: 'GET',
|
|
@@ -383,7 +383,7 @@ export class StatisticTag extends TagAbstract {
|
|
|
383
383
|
'search': search,
|
|
384
384
|
'from': from,
|
|
385
385
|
'to': to,
|
|
386
|
-
'
|
|
386
|
+
'operationId': operationId,
|
|
387
387
|
'appId': appId,
|
|
388
388
|
'userId': userId,
|
|
389
389
|
'ip': ip,
|
|
@@ -417,7 +417,7 @@ export class StatisticTag extends TagAbstract {
|
|
|
417
417
|
* @throws {MessageException}
|
|
418
418
|
* @throws {ClientException}
|
|
419
419
|
*/
|
|
420
|
-
async getCountRequests(startIndex, count, search, from, to,
|
|
420
|
+
async getCountRequests(startIndex, count, search, from, to, operationId, appId, userId, ip, userAgent, method, path, header, body) {
|
|
421
421
|
const url = this.parser.url('/backend/statistic/count_requests', {});
|
|
422
422
|
let params = {
|
|
423
423
|
url: url,
|
|
@@ -428,7 +428,7 @@ export class StatisticTag extends TagAbstract {
|
|
|
428
428
|
'search': search,
|
|
429
429
|
'from': from,
|
|
430
430
|
'to': to,
|
|
431
|
-
'
|
|
431
|
+
'operationId': operationId,
|
|
432
432
|
'appId': appId,
|
|
433
433
|
'userId': userId,
|
|
434
434
|
'ip': ip,
|
|
@@ -186,6 +186,8 @@ export class AccountTag extends TagAbstract {
|
|
|
186
186
|
switch (error.response.status) {
|
|
187
187
|
case 400:
|
|
188
188
|
throw new MessageException(error.response.data);
|
|
189
|
+
case 401:
|
|
190
|
+
throw new MessageException(error.response.data);
|
|
189
191
|
case 500:
|
|
190
192
|
throw new MessageException(error.response.data);
|
|
191
193
|
default:
|