Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Jun 27, 2023
1 parent 8cd149d commit 6d56b08
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 29 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fusio-sdk",
"version": "3.0.7",
"version": "3.0.8",
"description": "SDK to talk to the Fusio API",
"keywords": [
"API",
Expand Down
1 change: 0 additions & 1 deletion src/generated/backend/Action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export interface Action {
name?: string
class?: string
async?: boolean
engine?: string
config?: ActionConfig
metadata?: Metadata
}
3 changes: 2 additions & 1 deletion src/generated/backend/ActionTag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export class ActionTag extends TagAbstract {
* @throws {MessageException}
* @throws {ClientException}
*/
public async getAll(startIndex?: number, count?: number): Promise<ActionCollection> {
public async getAll(startIndex?: number, count?: number, search?: string): Promise<ActionCollection> {
const url = this.parser.url('/backend/action', {
});

Expand All @@ -303,6 +303,7 @@ export class ActionTag extends TagAbstract {
params: this.parser.query({
'startIndex': startIndex,
'count': count,
'search': search,
}),
};

Expand Down
1 change: 0 additions & 1 deletion src/generated/backend/ScopeOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
export interface ScopeOperation {
operationId?: number
allow?: boolean
methods?: string
}
2 changes: 2 additions & 0 deletions src/generated/backend/ScopeTag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export class ScopeTag extends TagAbstract {
} catch (error) {
if (axios.isAxiosError(error) && error.response) {
switch (error.response.status) {
case 400:
throw new MessageException(error.response.data);
case 401:
throw new MessageException(error.response.data);
case 404:
Expand Down
46 changes: 23 additions & 23 deletions src/generated/backend/StatisticTag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class StatisticTag extends TagAbstract {
* @throws {MessageException}
* @throws {ClientException}
*/
public async 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> {
public async 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> {
const url = this.parser.url('/backend/statistic/used_points', {
});

Expand All @@ -31,7 +31,7 @@ export class StatisticTag extends TagAbstract {
'search': search,
'from': from,
'to': to,
'routeId': routeId,
'operationId': operationId,
'appId': appId,
'userId': userId,
'ip': ip,
Expand Down Expand Up @@ -67,8 +67,8 @@ export class StatisticTag extends TagAbstract {
* @throws {MessageException}
* @throws {ClientException}
*/
public async 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> {
const url = this.parser.url('/backend/statistic/time_per_route', {
public async 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> {
const url = this.parser.url('/backend/statistic/time_per_operation', {
});

let params: AxiosRequestConfig = {
Expand All @@ -80,7 +80,7 @@ export class StatisticTag extends TagAbstract {
'search': search,
'from': from,
'to': to,
'routeId': routeId,
'operationId': operationId,
'appId': appId,
'userId': userId,
'ip': ip,
Expand Down Expand Up @@ -116,7 +116,7 @@ export class StatisticTag extends TagAbstract {
* @throws {MessageException}
* @throws {ClientException}
*/
public async 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> {
public async 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> {
const url = this.parser.url('/backend/statistic/time_average', {
});

Expand All @@ -129,7 +129,7 @@ export class StatisticTag extends TagAbstract {
'search': search,
'from': from,
'to': to,
'routeId': routeId,
'operationId': operationId,
'appId': appId,
'userId': userId,
'ip': ip,
Expand Down Expand Up @@ -165,8 +165,8 @@ export class StatisticTag extends TagAbstract {
* @throws {MessageException}
* @throws {ClientException}
*/
public async 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> {
const url = this.parser.url('/backend/statistic/most_used_routes', {
public async 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> {
const url = this.parser.url('/backend/statistic/most_used_operations', {
});

let params: AxiosRequestConfig = {
Expand All @@ -178,7 +178,7 @@ export class StatisticTag extends TagAbstract {
'search': search,
'from': from,
'to': to,
'routeId': routeId,
'operationId': operationId,
'appId': appId,
'userId': userId,
'ip': ip,
Expand Down Expand Up @@ -214,7 +214,7 @@ export class StatisticTag extends TagAbstract {
* @throws {MessageException}
* @throws {ClientException}
*/
public async 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> {
public async 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> {
const url = this.parser.url('/backend/statistic/most_used_apps', {
});

Expand All @@ -227,7 +227,7 @@ export class StatisticTag extends TagAbstract {
'search': search,
'from': from,
'to': to,
'routeId': routeId,
'operationId': operationId,
'appId': appId,
'userId': userId,
'ip': ip,
Expand Down Expand Up @@ -263,7 +263,7 @@ export class StatisticTag extends TagAbstract {
* @throws {MessageException}
* @throws {ClientException}
*/
public async 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> {
public async 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> {
const url = this.parser.url('/backend/statistic/issued_tokens', {
});

Expand All @@ -276,7 +276,7 @@ export class StatisticTag extends TagAbstract {
'search': search,
'from': from,
'to': to,
'routeId': routeId,
'operationId': operationId,
'appId': appId,
'userId': userId,
'ip': ip,
Expand Down Expand Up @@ -312,7 +312,7 @@ export class StatisticTag extends TagAbstract {
* @throws {MessageException}
* @throws {ClientException}
*/
public async 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> {
public async 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> {
const url = this.parser.url('/backend/statistic/incoming_transactions', {
});

Expand All @@ -325,7 +325,7 @@ export class StatisticTag extends TagAbstract {
'search': search,
'from': from,
'to': to,
'routeId': routeId,
'operationId': operationId,
'appId': appId,
'userId': userId,
'ip': ip,
Expand Down Expand Up @@ -361,7 +361,7 @@ export class StatisticTag extends TagAbstract {
* @throws {MessageException}
* @throws {ClientException}
*/
public async 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> {
public async 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> {
const url = this.parser.url('/backend/statistic/incoming_requests', {
});

Expand All @@ -374,7 +374,7 @@ export class StatisticTag extends TagAbstract {
'search': search,
'from': from,
'to': to,
'routeId': routeId,
'operationId': operationId,
'appId': appId,
'userId': userId,
'ip': ip,
Expand Down Expand Up @@ -410,8 +410,8 @@ export class StatisticTag extends TagAbstract {
* @throws {MessageException}
* @throws {ClientException}
*/
public async 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> {
const url = this.parser.url('/backend/statistic/errors_per_route', {
public async 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> {
const url = this.parser.url('/backend/statistic/errors_per_operation', {
});

let params: AxiosRequestConfig = {
Expand All @@ -423,7 +423,7 @@ export class StatisticTag extends TagAbstract {
'search': search,
'from': from,
'to': to,
'routeId': routeId,
'operationId': operationId,
'appId': appId,
'userId': userId,
'ip': ip,
Expand Down Expand Up @@ -459,7 +459,7 @@ export class StatisticTag extends TagAbstract {
* @throws {MessageException}
* @throws {ClientException}
*/
public async 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> {
public async 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> {
const url = this.parser.url('/backend/statistic/count_requests', {
});

Expand All @@ -472,7 +472,7 @@ export class StatisticTag extends TagAbstract {
'search': search,
'from': from,
'to': to,
'routeId': routeId,
'operationId': operationId,
'appId': appId,
'userId': userId,
'ip': ip,
Expand Down

0 comments on commit 6d56b08

Please sign in to comment.