fusio-sdk 3.0.7 → 3.0.8

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.
@@ -10,7 +10,6 @@ export interface Action {
10
10
  name?: string;
11
11
  class?: string;
12
12
  async?: boolean;
13
- engine?: string;
14
13
  config?: ActionConfig;
15
14
  metadata?: Metadata;
16
15
  }
@@ -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 {
@@ -5,5 +5,4 @@
5
5
  export interface ScopeOperation {
6
6
  operationId?: number;
7
7
  allow?: boolean;
8
- methods?: string;
9
8
  }
@@ -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, routeId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticChart>;
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
- getTimePerRoute(startIndex?: number, count?: number, search?: string, from?: string, to?: string, routeId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticChart>;
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, routeId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticChart>;
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
- getMostUsedRoutes(startIndex?: number, count?: number, search?: string, from?: string, to?: string, routeId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticChart>;
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, routeId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticChart>;
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, routeId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticChart>;
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, routeId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticChart>;
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, routeId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticChart>;
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
- getErrorsPerRoute(startIndex?: number, count?: number, search?: string, from?: string, to?: string, routeId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticChart>;
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, routeId?: number, appId?: number, userId?: number, ip?: string, userAgent?: string, method?: string, path?: string, header?: string, body?: string): Promise<StatisticCount>;
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, routeId, appId, userId, ip, userAgent, method, path, header, body) {
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
- 'routeId': routeId,
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 getTimePerRoute(startIndex, count, search, from, to, routeId, appId, userId, ip, userAgent, method, path, header, body) {
61
- const url = this.parser.url('/backend/statistic/time_per_route', {});
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
- 'routeId': routeId,
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, routeId, appId, userId, ip, userAgent, method, path, header, body) {
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
- 'routeId': routeId,
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 getMostUsedRoutes(startIndex, count, search, from, to, routeId, appId, userId, ip, userAgent, method, path, header, body) {
151
- const url = this.parser.url('/backend/statistic/most_used_routes', {});
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
- 'routeId': routeId,
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, routeId, appId, userId, ip, userAgent, method, path, header, body) {
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
- 'routeId': routeId,
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, routeId, appId, userId, ip, userAgent, method, path, header, body) {
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
- 'routeId': routeId,
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, routeId, appId, userId, ip, userAgent, method, path, header, body) {
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
- 'routeId': routeId,
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, routeId, appId, userId, ip, userAgent, method, path, header, body) {
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
- 'routeId': routeId,
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 getErrorsPerRoute(startIndex, count, search, from, to, routeId, appId, userId, ip, userAgent, method, path, header, body) {
376
- const url = this.parser.url('/backend/statistic/errors_per_route', {});
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
- 'routeId': routeId,
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, routeId, appId, userId, ip, userAgent, method, path, header, body) {
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
- 'routeId': routeId,
431
+ 'operationId': operationId,
432
432
  'appId': appId,
433
433
  'userId': userId,
434
434
  'ip': ip,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fusio-sdk",
3
- "version": "3.0.7",
3
+ "version": "3.0.8",
4
4
  "description": "SDK to talk to the Fusio API",
5
5
  "keywords": [
6
6
  "API",