fusio-sdk 3.0.8 → 3.1.0
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/AccountTag.js +21 -6
- package/dist/src/generated/backend/ActionTag.js +56 -16
- package/dist/src/generated/backend/AppTag.js +56 -16
- package/dist/src/generated/backend/AuditTag.js +14 -4
- package/dist/src/generated/backend/CategoryTag.d.ts +1 -1
- package/dist/src/generated/backend/CategoryTag.js +36 -11
- package/dist/src/generated/backend/ConfigTag.js +21 -6
- package/dist/src/generated/backend/ConnectionTag.js +70 -20
- package/dist/src/generated/backend/CronjobTag.js +35 -10
- package/dist/src/generated/backend/DashboardTag.js +7 -2
- package/dist/src/generated/backend/EventTag.js +70 -20
- package/dist/src/generated/backend/GeneratorTag.js +28 -8
- package/dist/src/generated/backend/LogTag.js +28 -8
- package/dist/src/generated/backend/MarketplaceTag.js +35 -10
- package/dist/src/generated/backend/OperationTag.js +35 -10
- package/dist/src/generated/backend/PageTag.js +35 -10
- package/dist/src/generated/backend/PlanTag.js +35 -10
- package/dist/src/generated/backend/RateTag.js +35 -10
- package/dist/src/generated/backend/RoleTag.js +35 -10
- package/dist/src/generated/backend/SchemaTag.js +49 -14
- package/dist/src/generated/backend/ScopeTag.js +42 -12
- package/dist/src/generated/backend/SdkTag.js +14 -4
- package/dist/src/generated/backend/StatisticTag.js +70 -20
- package/dist/src/generated/backend/TransactionTag.js +14 -4
- package/dist/src/generated/backend/TrashTag.js +21 -6
- package/dist/src/generated/backend/UserTag.js +35 -10
- package/dist/src/generated/consumer/AccountTag.js +86 -24
- package/dist/src/generated/consumer/AppTag.js +35 -10
- package/dist/src/generated/consumer/EventTag.js +7 -2
- package/dist/src/generated/consumer/GrantTag.js +14 -4
- package/dist/src/generated/consumer/LogTag.js +14 -4
- package/dist/src/generated/consumer/PageTag.js +14 -4
- package/dist/src/generated/consumer/PaymentTag.js +14 -4
- package/dist/src/generated/consumer/PlanTag.js +14 -4
- package/dist/src/generated/consumer/ScopeTag.js +7 -2
- package/dist/src/generated/consumer/SubscriptionTag.js +35 -10
- package/dist/src/generated/consumer/TransactionTag.js +14 -4
- package/package.json +1 -1
|
@@ -26,7 +26,10 @@ export class LogTag extends TagAbstract {
|
|
|
26
26
|
return response.data;
|
|
27
27
|
}
|
|
28
28
|
catch (error) {
|
|
29
|
-
if (
|
|
29
|
+
if (error instanceof ClientException) {
|
|
30
|
+
throw error;
|
|
31
|
+
}
|
|
32
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
30
33
|
switch (error.response.status) {
|
|
31
34
|
case 401:
|
|
32
35
|
throw new MessageException(error.response.data);
|
|
@@ -40,7 +43,9 @@ export class LogTag extends TagAbstract {
|
|
|
40
43
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
|
-
|
|
46
|
+
else {
|
|
47
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
48
|
+
}
|
|
44
49
|
}
|
|
45
50
|
}
|
|
46
51
|
/**
|
|
@@ -64,7 +69,10 @@ export class LogTag extends TagAbstract {
|
|
|
64
69
|
return response.data;
|
|
65
70
|
}
|
|
66
71
|
catch (error) {
|
|
67
|
-
if (
|
|
72
|
+
if (error instanceof ClientException) {
|
|
73
|
+
throw error;
|
|
74
|
+
}
|
|
75
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
68
76
|
switch (error.response.status) {
|
|
69
77
|
case 401:
|
|
70
78
|
throw new MessageException(error.response.data);
|
|
@@ -74,7 +82,9 @@ export class LogTag extends TagAbstract {
|
|
|
74
82
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
75
83
|
}
|
|
76
84
|
}
|
|
77
|
-
|
|
85
|
+
else {
|
|
86
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
87
|
+
}
|
|
78
88
|
}
|
|
79
89
|
}
|
|
80
90
|
}
|
|
@@ -26,7 +26,10 @@ export class PageTag extends TagAbstract {
|
|
|
26
26
|
return response.data;
|
|
27
27
|
}
|
|
28
28
|
catch (error) {
|
|
29
|
-
if (
|
|
29
|
+
if (error instanceof ClientException) {
|
|
30
|
+
throw error;
|
|
31
|
+
}
|
|
32
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
30
33
|
switch (error.response.status) {
|
|
31
34
|
case 401:
|
|
32
35
|
throw new MessageException(error.response.data);
|
|
@@ -40,7 +43,9 @@ export class PageTag extends TagAbstract {
|
|
|
40
43
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
|
-
|
|
46
|
+
else {
|
|
47
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
48
|
+
}
|
|
44
49
|
}
|
|
45
50
|
}
|
|
46
51
|
/**
|
|
@@ -64,7 +69,10 @@ export class PageTag extends TagAbstract {
|
|
|
64
69
|
return response.data;
|
|
65
70
|
}
|
|
66
71
|
catch (error) {
|
|
67
|
-
if (
|
|
72
|
+
if (error instanceof ClientException) {
|
|
73
|
+
throw error;
|
|
74
|
+
}
|
|
75
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
68
76
|
switch (error.response.status) {
|
|
69
77
|
case 401:
|
|
70
78
|
throw new MessageException(error.response.data);
|
|
@@ -74,7 +82,9 @@ export class PageTag extends TagAbstract {
|
|
|
74
82
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
75
83
|
}
|
|
76
84
|
}
|
|
77
|
-
|
|
85
|
+
else {
|
|
86
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
87
|
+
}
|
|
78
88
|
}
|
|
79
89
|
}
|
|
80
90
|
}
|
|
@@ -27,7 +27,10 @@ export class PaymentTag extends TagAbstract {
|
|
|
27
27
|
return response.data;
|
|
28
28
|
}
|
|
29
29
|
catch (error) {
|
|
30
|
-
if (
|
|
30
|
+
if (error instanceof ClientException) {
|
|
31
|
+
throw error;
|
|
32
|
+
}
|
|
33
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
31
34
|
switch (error.response.status) {
|
|
32
35
|
case 401:
|
|
33
36
|
throw new MessageException(error.response.data);
|
|
@@ -37,7 +40,9 @@ export class PaymentTag extends TagAbstract {
|
|
|
37
40
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
38
41
|
}
|
|
39
42
|
}
|
|
40
|
-
|
|
43
|
+
else {
|
|
44
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
45
|
+
}
|
|
41
46
|
}
|
|
42
47
|
}
|
|
43
48
|
/**
|
|
@@ -60,7 +65,10 @@ export class PaymentTag extends TagAbstract {
|
|
|
60
65
|
return response.data;
|
|
61
66
|
}
|
|
62
67
|
catch (error) {
|
|
63
|
-
if (
|
|
68
|
+
if (error instanceof ClientException) {
|
|
69
|
+
throw error;
|
|
70
|
+
}
|
|
71
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
64
72
|
switch (error.response.status) {
|
|
65
73
|
case 401:
|
|
66
74
|
throw new MessageException(error.response.data);
|
|
@@ -70,7 +78,9 @@ export class PaymentTag extends TagAbstract {
|
|
|
70
78
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
71
79
|
}
|
|
72
80
|
}
|
|
73
|
-
|
|
81
|
+
else {
|
|
82
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
83
|
+
}
|
|
74
84
|
}
|
|
75
85
|
}
|
|
76
86
|
}
|
|
@@ -26,7 +26,10 @@ export class PlanTag extends TagAbstract {
|
|
|
26
26
|
return response.data;
|
|
27
27
|
}
|
|
28
28
|
catch (error) {
|
|
29
|
-
if (
|
|
29
|
+
if (error instanceof ClientException) {
|
|
30
|
+
throw error;
|
|
31
|
+
}
|
|
32
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
30
33
|
switch (error.response.status) {
|
|
31
34
|
case 401:
|
|
32
35
|
throw new MessageException(error.response.data);
|
|
@@ -40,7 +43,9 @@ export class PlanTag extends TagAbstract {
|
|
|
40
43
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
|
-
|
|
46
|
+
else {
|
|
47
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
48
|
+
}
|
|
44
49
|
}
|
|
45
50
|
}
|
|
46
51
|
/**
|
|
@@ -64,7 +69,10 @@ export class PlanTag extends TagAbstract {
|
|
|
64
69
|
return response.data;
|
|
65
70
|
}
|
|
66
71
|
catch (error) {
|
|
67
|
-
if (
|
|
72
|
+
if (error instanceof ClientException) {
|
|
73
|
+
throw error;
|
|
74
|
+
}
|
|
75
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
68
76
|
switch (error.response.status) {
|
|
69
77
|
case 401:
|
|
70
78
|
throw new MessageException(error.response.data);
|
|
@@ -74,7 +82,9 @@ export class PlanTag extends TagAbstract {
|
|
|
74
82
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
75
83
|
}
|
|
76
84
|
}
|
|
77
|
-
|
|
85
|
+
else {
|
|
86
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
87
|
+
}
|
|
78
88
|
}
|
|
79
89
|
}
|
|
80
90
|
}
|
|
@@ -28,7 +28,10 @@ export class ScopeTag extends TagAbstract {
|
|
|
28
28
|
return response.data;
|
|
29
29
|
}
|
|
30
30
|
catch (error) {
|
|
31
|
-
if (
|
|
31
|
+
if (error instanceof ClientException) {
|
|
32
|
+
throw error;
|
|
33
|
+
}
|
|
34
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
32
35
|
switch (error.response.status) {
|
|
33
36
|
case 401:
|
|
34
37
|
throw new MessageException(error.response.data);
|
|
@@ -38,7 +41,9 @@ export class ScopeTag extends TagAbstract {
|
|
|
38
41
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
39
42
|
}
|
|
40
43
|
}
|
|
41
|
-
|
|
44
|
+
else {
|
|
45
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
46
|
+
}
|
|
42
47
|
}
|
|
43
48
|
}
|
|
44
49
|
}
|
|
@@ -26,7 +26,10 @@ export class SubscriptionTag extends TagAbstract {
|
|
|
26
26
|
return response.data;
|
|
27
27
|
}
|
|
28
28
|
catch (error) {
|
|
29
|
-
if (
|
|
29
|
+
if (error instanceof ClientException) {
|
|
30
|
+
throw error;
|
|
31
|
+
}
|
|
32
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
30
33
|
switch (error.response.status) {
|
|
31
34
|
case 401:
|
|
32
35
|
throw new MessageException(error.response.data);
|
|
@@ -40,7 +43,9 @@ export class SubscriptionTag extends TagAbstract {
|
|
|
40
43
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
|
-
|
|
46
|
+
else {
|
|
47
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
48
|
+
}
|
|
44
49
|
}
|
|
45
50
|
}
|
|
46
51
|
/**
|
|
@@ -63,7 +68,10 @@ export class SubscriptionTag extends TagAbstract {
|
|
|
63
68
|
return response.data;
|
|
64
69
|
}
|
|
65
70
|
catch (error) {
|
|
66
|
-
if (
|
|
71
|
+
if (error instanceof ClientException) {
|
|
72
|
+
throw error;
|
|
73
|
+
}
|
|
74
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
67
75
|
switch (error.response.status) {
|
|
68
76
|
case 400:
|
|
69
77
|
throw new MessageException(error.response.data);
|
|
@@ -79,7 +87,9 @@ export class SubscriptionTag extends TagAbstract {
|
|
|
79
87
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
80
88
|
}
|
|
81
89
|
}
|
|
82
|
-
|
|
90
|
+
else {
|
|
91
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
92
|
+
}
|
|
83
93
|
}
|
|
84
94
|
}
|
|
85
95
|
/**
|
|
@@ -101,7 +111,10 @@ export class SubscriptionTag extends TagAbstract {
|
|
|
101
111
|
return response.data;
|
|
102
112
|
}
|
|
103
113
|
catch (error) {
|
|
104
|
-
if (
|
|
114
|
+
if (error instanceof ClientException) {
|
|
115
|
+
throw error;
|
|
116
|
+
}
|
|
117
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
105
118
|
switch (error.response.status) {
|
|
106
119
|
case 401:
|
|
107
120
|
throw new MessageException(error.response.data);
|
|
@@ -115,7 +128,9 @@ export class SubscriptionTag extends TagAbstract {
|
|
|
115
128
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
116
129
|
}
|
|
117
130
|
}
|
|
118
|
-
|
|
131
|
+
else {
|
|
132
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
133
|
+
}
|
|
119
134
|
}
|
|
120
135
|
}
|
|
121
136
|
/**
|
|
@@ -136,7 +151,10 @@ export class SubscriptionTag extends TagAbstract {
|
|
|
136
151
|
return response.data;
|
|
137
152
|
}
|
|
138
153
|
catch (error) {
|
|
139
|
-
if (
|
|
154
|
+
if (error instanceof ClientException) {
|
|
155
|
+
throw error;
|
|
156
|
+
}
|
|
157
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
140
158
|
switch (error.response.status) {
|
|
141
159
|
case 400:
|
|
142
160
|
throw new MessageException(error.response.data);
|
|
@@ -148,7 +166,9 @@ export class SubscriptionTag extends TagAbstract {
|
|
|
148
166
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
149
167
|
}
|
|
150
168
|
}
|
|
151
|
-
|
|
169
|
+
else {
|
|
170
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
171
|
+
}
|
|
152
172
|
}
|
|
153
173
|
}
|
|
154
174
|
/**
|
|
@@ -172,7 +192,10 @@ export class SubscriptionTag extends TagAbstract {
|
|
|
172
192
|
return response.data;
|
|
173
193
|
}
|
|
174
194
|
catch (error) {
|
|
175
|
-
if (
|
|
195
|
+
if (error instanceof ClientException) {
|
|
196
|
+
throw error;
|
|
197
|
+
}
|
|
198
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
176
199
|
switch (error.response.status) {
|
|
177
200
|
case 401:
|
|
178
201
|
throw new MessageException(error.response.data);
|
|
@@ -182,7 +205,9 @@ export class SubscriptionTag extends TagAbstract {
|
|
|
182
205
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
183
206
|
}
|
|
184
207
|
}
|
|
185
|
-
|
|
208
|
+
else {
|
|
209
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
210
|
+
}
|
|
186
211
|
}
|
|
187
212
|
}
|
|
188
213
|
}
|
|
@@ -26,7 +26,10 @@ export class TransactionTag extends TagAbstract {
|
|
|
26
26
|
return response.data;
|
|
27
27
|
}
|
|
28
28
|
catch (error) {
|
|
29
|
-
if (
|
|
29
|
+
if (error instanceof ClientException) {
|
|
30
|
+
throw error;
|
|
31
|
+
}
|
|
32
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
30
33
|
switch (error.response.status) {
|
|
31
34
|
case 401:
|
|
32
35
|
throw new MessageException(error.response.data);
|
|
@@ -40,7 +43,9 @@ export class TransactionTag extends TagAbstract {
|
|
|
40
43
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
|
-
|
|
46
|
+
else {
|
|
47
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
48
|
+
}
|
|
44
49
|
}
|
|
45
50
|
}
|
|
46
51
|
/**
|
|
@@ -64,7 +69,10 @@ export class TransactionTag extends TagAbstract {
|
|
|
64
69
|
return response.data;
|
|
65
70
|
}
|
|
66
71
|
catch (error) {
|
|
67
|
-
if (
|
|
72
|
+
if (error instanceof ClientException) {
|
|
73
|
+
throw error;
|
|
74
|
+
}
|
|
75
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
68
76
|
switch (error.response.status) {
|
|
69
77
|
case 401:
|
|
70
78
|
throw new MessageException(error.response.data);
|
|
@@ -74,7 +82,9 @@ export class TransactionTag extends TagAbstract {
|
|
|
74
82
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
75
83
|
}
|
|
76
84
|
}
|
|
77
|
-
|
|
85
|
+
else {
|
|
86
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
87
|
+
}
|
|
78
88
|
}
|
|
79
89
|
}
|
|
80
90
|
}
|