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 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
|
/**
|
|
@@ -71,7 +76,10 @@ export class TransactionTag extends TagAbstract {
|
|
|
71
76
|
return response.data;
|
|
72
77
|
}
|
|
73
78
|
catch (error) {
|
|
74
|
-
if (
|
|
79
|
+
if (error instanceof ClientException) {
|
|
80
|
+
throw error;
|
|
81
|
+
}
|
|
82
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
75
83
|
switch (error.response.status) {
|
|
76
84
|
case 401:
|
|
77
85
|
throw new MessageException(error.response.data);
|
|
@@ -81,7 +89,9 @@ export class TransactionTag extends TagAbstract {
|
|
|
81
89
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
82
90
|
}
|
|
83
91
|
}
|
|
84
|
-
|
|
92
|
+
else {
|
|
93
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
94
|
+
}
|
|
85
95
|
}
|
|
86
96
|
}
|
|
87
97
|
}
|
|
@@ -27,7 +27,10 @@ export class TrashTag 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 400:
|
|
33
36
|
throw new MessageException(error.response.data);
|
|
@@ -39,7 +42,9 @@ export class TrashTag extends TagAbstract {
|
|
|
39
42
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
40
43
|
}
|
|
41
44
|
}
|
|
42
|
-
|
|
45
|
+
else {
|
|
46
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
47
|
+
}
|
|
43
48
|
}
|
|
44
49
|
}
|
|
45
50
|
/**
|
|
@@ -65,7 +70,10 @@ export class TrashTag extends TagAbstract {
|
|
|
65
70
|
return response.data;
|
|
66
71
|
}
|
|
67
72
|
catch (error) {
|
|
68
|
-
if (
|
|
73
|
+
if (error instanceof ClientException) {
|
|
74
|
+
throw error;
|
|
75
|
+
}
|
|
76
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
69
77
|
switch (error.response.status) {
|
|
70
78
|
case 401:
|
|
71
79
|
throw new MessageException(error.response.data);
|
|
@@ -75,7 +83,9 @@ export class TrashTag extends TagAbstract {
|
|
|
75
83
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
76
84
|
}
|
|
77
85
|
}
|
|
78
|
-
|
|
86
|
+
else {
|
|
87
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
88
|
+
}
|
|
79
89
|
}
|
|
80
90
|
}
|
|
81
91
|
/**
|
|
@@ -95,7 +105,10 @@ export class TrashTag extends TagAbstract {
|
|
|
95
105
|
return response.data;
|
|
96
106
|
}
|
|
97
107
|
catch (error) {
|
|
98
|
-
if (
|
|
108
|
+
if (error instanceof ClientException) {
|
|
109
|
+
throw error;
|
|
110
|
+
}
|
|
111
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
99
112
|
switch (error.response.status) {
|
|
100
113
|
case 401:
|
|
101
114
|
throw new MessageException(error.response.data);
|
|
@@ -105,7 +118,9 @@ export class TrashTag extends TagAbstract {
|
|
|
105
118
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
106
119
|
}
|
|
107
120
|
}
|
|
108
|
-
|
|
121
|
+
else {
|
|
122
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
123
|
+
}
|
|
109
124
|
}
|
|
110
125
|
}
|
|
111
126
|
}
|
|
@@ -26,7 +26,10 @@ export class UserTag 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 UserTag 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 UserTag 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 UserTag 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 UserTag 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 UserTag 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 UserTag 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 UserTag 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 UserTag 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 UserTag 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
|
}
|
|
@@ -25,7 +25,10 @@ export class AccountTag extends TagAbstract {
|
|
|
25
25
|
return response.data;
|
|
26
26
|
}
|
|
27
27
|
catch (error) {
|
|
28
|
-
if (
|
|
28
|
+
if (error instanceof ClientException) {
|
|
29
|
+
throw error;
|
|
30
|
+
}
|
|
31
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
29
32
|
switch (error.response.status) {
|
|
30
33
|
case 400:
|
|
31
34
|
throw new MessageException(error.response.data);
|
|
@@ -35,7 +38,9 @@ export class AccountTag extends TagAbstract {
|
|
|
35
38
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
|
-
|
|
41
|
+
else {
|
|
42
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
43
|
+
}
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
46
|
/**
|
|
@@ -56,7 +61,10 @@ export class AccountTag extends TagAbstract {
|
|
|
56
61
|
return response.data;
|
|
57
62
|
}
|
|
58
63
|
catch (error) {
|
|
59
|
-
if (
|
|
64
|
+
if (error instanceof ClientException) {
|
|
65
|
+
throw error;
|
|
66
|
+
}
|
|
67
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
60
68
|
switch (error.response.status) {
|
|
61
69
|
case 400:
|
|
62
70
|
throw new MessageException(error.response.data);
|
|
@@ -66,7 +74,9 @@ export class AccountTag extends TagAbstract {
|
|
|
66
74
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
67
75
|
}
|
|
68
76
|
}
|
|
69
|
-
|
|
77
|
+
else {
|
|
78
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
79
|
+
}
|
|
70
80
|
}
|
|
71
81
|
}
|
|
72
82
|
/**
|
|
@@ -87,7 +97,10 @@ export class AccountTag extends TagAbstract {
|
|
|
87
97
|
return response.data;
|
|
88
98
|
}
|
|
89
99
|
catch (error) {
|
|
90
|
-
if (
|
|
100
|
+
if (error instanceof ClientException) {
|
|
101
|
+
throw error;
|
|
102
|
+
}
|
|
103
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
91
104
|
switch (error.response.status) {
|
|
92
105
|
case 400:
|
|
93
106
|
throw new MessageException(error.response.data);
|
|
@@ -97,7 +110,9 @@ export class AccountTag extends TagAbstract {
|
|
|
97
110
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
98
111
|
}
|
|
99
112
|
}
|
|
100
|
-
|
|
113
|
+
else {
|
|
114
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
115
|
+
}
|
|
101
116
|
}
|
|
102
117
|
}
|
|
103
118
|
/**
|
|
@@ -120,7 +135,10 @@ export class AccountTag extends TagAbstract {
|
|
|
120
135
|
return response.data;
|
|
121
136
|
}
|
|
122
137
|
catch (error) {
|
|
123
|
-
if (
|
|
138
|
+
if (error instanceof ClientException) {
|
|
139
|
+
throw error;
|
|
140
|
+
}
|
|
141
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
124
142
|
switch (error.response.status) {
|
|
125
143
|
case 400:
|
|
126
144
|
throw new MessageException(error.response.data);
|
|
@@ -130,7 +148,9 @@ export class AccountTag extends TagAbstract {
|
|
|
130
148
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
131
149
|
}
|
|
132
150
|
}
|
|
133
|
-
|
|
151
|
+
else {
|
|
152
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
153
|
+
}
|
|
134
154
|
}
|
|
135
155
|
}
|
|
136
156
|
/**
|
|
@@ -151,7 +171,10 @@ export class AccountTag extends TagAbstract {
|
|
|
151
171
|
return response.data;
|
|
152
172
|
}
|
|
153
173
|
catch (error) {
|
|
154
|
-
if (
|
|
174
|
+
if (error instanceof ClientException) {
|
|
175
|
+
throw error;
|
|
176
|
+
}
|
|
177
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
155
178
|
switch (error.response.status) {
|
|
156
179
|
case 400:
|
|
157
180
|
throw new MessageException(error.response.data);
|
|
@@ -161,7 +184,9 @@ export class AccountTag extends TagAbstract {
|
|
|
161
184
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
162
185
|
}
|
|
163
186
|
}
|
|
164
|
-
|
|
187
|
+
else {
|
|
188
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
189
|
+
}
|
|
165
190
|
}
|
|
166
191
|
}
|
|
167
192
|
/**
|
|
@@ -182,17 +207,24 @@ export class AccountTag extends TagAbstract {
|
|
|
182
207
|
return response.data;
|
|
183
208
|
}
|
|
184
209
|
catch (error) {
|
|
185
|
-
if (
|
|
210
|
+
if (error instanceof ClientException) {
|
|
211
|
+
throw error;
|
|
212
|
+
}
|
|
213
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
186
214
|
switch (error.response.status) {
|
|
187
215
|
case 400:
|
|
188
216
|
throw new MessageException(error.response.data);
|
|
217
|
+
case 401:
|
|
218
|
+
throw new MessageException(error.response.data);
|
|
189
219
|
case 500:
|
|
190
220
|
throw new MessageException(error.response.data);
|
|
191
221
|
default:
|
|
192
222
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
193
223
|
}
|
|
194
224
|
}
|
|
195
|
-
|
|
225
|
+
else {
|
|
226
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
227
|
+
}
|
|
196
228
|
}
|
|
197
229
|
}
|
|
198
230
|
/**
|
|
@@ -213,7 +245,10 @@ export class AccountTag extends TagAbstract {
|
|
|
213
245
|
return response.data;
|
|
214
246
|
}
|
|
215
247
|
catch (error) {
|
|
216
|
-
if (
|
|
248
|
+
if (error instanceof ClientException) {
|
|
249
|
+
throw error;
|
|
250
|
+
}
|
|
251
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
217
252
|
switch (error.response.status) {
|
|
218
253
|
case 400:
|
|
219
254
|
throw new MessageException(error.response.data);
|
|
@@ -225,7 +260,9 @@ export class AccountTag extends TagAbstract {
|
|
|
225
260
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
226
261
|
}
|
|
227
262
|
}
|
|
228
|
-
|
|
263
|
+
else {
|
|
264
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
265
|
+
}
|
|
229
266
|
}
|
|
230
267
|
}
|
|
231
268
|
/**
|
|
@@ -245,7 +282,10 @@ export class AccountTag extends TagAbstract {
|
|
|
245
282
|
return response.data;
|
|
246
283
|
}
|
|
247
284
|
catch (error) {
|
|
248
|
-
if (
|
|
285
|
+
if (error instanceof ClientException) {
|
|
286
|
+
throw error;
|
|
287
|
+
}
|
|
288
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
249
289
|
switch (error.response.status) {
|
|
250
290
|
case 401:
|
|
251
291
|
throw new MessageException(error.response.data);
|
|
@@ -257,7 +297,9 @@ export class AccountTag extends TagAbstract {
|
|
|
257
297
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
258
298
|
}
|
|
259
299
|
}
|
|
260
|
-
|
|
300
|
+
else {
|
|
301
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
302
|
+
}
|
|
261
303
|
}
|
|
262
304
|
}
|
|
263
305
|
/**
|
|
@@ -278,7 +320,10 @@ export class AccountTag extends TagAbstract {
|
|
|
278
320
|
return response.data;
|
|
279
321
|
}
|
|
280
322
|
catch (error) {
|
|
281
|
-
if (
|
|
323
|
+
if (error instanceof ClientException) {
|
|
324
|
+
throw error;
|
|
325
|
+
}
|
|
326
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
282
327
|
switch (error.response.status) {
|
|
283
328
|
case 400:
|
|
284
329
|
throw new MessageException(error.response.data);
|
|
@@ -288,7 +333,9 @@ export class AccountTag extends TagAbstract {
|
|
|
288
333
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
289
334
|
}
|
|
290
335
|
}
|
|
291
|
-
|
|
336
|
+
else {
|
|
337
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
338
|
+
}
|
|
292
339
|
}
|
|
293
340
|
}
|
|
294
341
|
/**
|
|
@@ -309,7 +356,10 @@ export class AccountTag extends TagAbstract {
|
|
|
309
356
|
return response.data;
|
|
310
357
|
}
|
|
311
358
|
catch (error) {
|
|
312
|
-
if (
|
|
359
|
+
if (error instanceof ClientException) {
|
|
360
|
+
throw error;
|
|
361
|
+
}
|
|
362
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
313
363
|
switch (error.response.status) {
|
|
314
364
|
case 400:
|
|
315
365
|
throw new MessageException(error.response.data);
|
|
@@ -321,7 +371,9 @@ export class AccountTag extends TagAbstract {
|
|
|
321
371
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
322
372
|
}
|
|
323
373
|
}
|
|
324
|
-
|
|
374
|
+
else {
|
|
375
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
376
|
+
}
|
|
325
377
|
}
|
|
326
378
|
}
|
|
327
379
|
/**
|
|
@@ -342,7 +394,10 @@ export class AccountTag extends TagAbstract {
|
|
|
342
394
|
return response.data;
|
|
343
395
|
}
|
|
344
396
|
catch (error) {
|
|
345
|
-
if (
|
|
397
|
+
if (error instanceof ClientException) {
|
|
398
|
+
throw error;
|
|
399
|
+
}
|
|
400
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
346
401
|
switch (error.response.status) {
|
|
347
402
|
case 400:
|
|
348
403
|
throw new MessageException(error.response.data);
|
|
@@ -358,7 +413,9 @@ export class AccountTag extends TagAbstract {
|
|
|
358
413
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
359
414
|
}
|
|
360
415
|
}
|
|
361
|
-
|
|
416
|
+
else {
|
|
417
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
418
|
+
}
|
|
362
419
|
}
|
|
363
420
|
}
|
|
364
421
|
/**
|
|
@@ -378,7 +435,10 @@ export class AccountTag extends TagAbstract {
|
|
|
378
435
|
return response.data;
|
|
379
436
|
}
|
|
380
437
|
catch (error) {
|
|
381
|
-
if (
|
|
438
|
+
if (error instanceof ClientException) {
|
|
439
|
+
throw error;
|
|
440
|
+
}
|
|
441
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
382
442
|
switch (error.response.status) {
|
|
383
443
|
case 401:
|
|
384
444
|
throw new MessageException(error.response.data);
|
|
@@ -392,7 +452,9 @@ export class AccountTag extends TagAbstract {
|
|
|
392
452
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
393
453
|
}
|
|
394
454
|
}
|
|
395
|
-
|
|
455
|
+
else {
|
|
456
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
457
|
+
}
|
|
396
458
|
}
|
|
397
459
|
}
|
|
398
460
|
}
|
|
@@ -26,7 +26,10 @@ export class AppTag 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 AppTag 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 AppTag 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 AppTag 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 AppTag 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 AppTag 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 AppTag 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 AppTag 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 AppTag 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 AppTag 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
|
}
|
|
@@ -28,7 +28,10 @@ export class EventTag 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 EventTag 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 GrantTag 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 GrantTag 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 GrantTag 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 GrantTag 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
|
}
|