fusio-sdk 3.0.9 → 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.js +35 -10
- 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 +84 -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 RoleTag 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 RoleTag 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 RoleTag 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 RoleTag 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 RoleTag 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 RoleTag 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 RoleTag 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 RoleTag 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 RoleTag 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 RoleTag 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 SchemaTag 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 SchemaTag 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 SchemaTag 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 SchemaTag 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 SchemaTag 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 SchemaTag 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
|
/**
|
|
@@ -138,7 +153,10 @@ export class SchemaTag extends TagAbstract {
|
|
|
138
153
|
return response.data;
|
|
139
154
|
}
|
|
140
155
|
catch (error) {
|
|
141
|
-
if (
|
|
156
|
+
if (error instanceof ClientException) {
|
|
157
|
+
throw error;
|
|
158
|
+
}
|
|
159
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
142
160
|
switch (error.response.status) {
|
|
143
161
|
case 400:
|
|
144
162
|
throw new MessageException(error.response.data);
|
|
@@ -154,7 +172,9 @@ export class SchemaTag extends TagAbstract {
|
|
|
154
172
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
155
173
|
}
|
|
156
174
|
}
|
|
157
|
-
|
|
175
|
+
else {
|
|
176
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
177
|
+
}
|
|
158
178
|
}
|
|
159
179
|
}
|
|
160
180
|
/**
|
|
@@ -176,7 +196,10 @@ export class SchemaTag extends TagAbstract {
|
|
|
176
196
|
return response.data;
|
|
177
197
|
}
|
|
178
198
|
catch (error) {
|
|
179
|
-
if (
|
|
199
|
+
if (error instanceof ClientException) {
|
|
200
|
+
throw error;
|
|
201
|
+
}
|
|
202
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
180
203
|
switch (error.response.status) {
|
|
181
204
|
case 401:
|
|
182
205
|
throw new MessageException(error.response.data);
|
|
@@ -186,7 +209,9 @@ export class SchemaTag extends TagAbstract {
|
|
|
186
209
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
187
210
|
}
|
|
188
211
|
}
|
|
189
|
-
|
|
212
|
+
else {
|
|
213
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
214
|
+
}
|
|
190
215
|
}
|
|
191
216
|
}
|
|
192
217
|
/**
|
|
@@ -207,7 +232,10 @@ export class SchemaTag extends TagAbstract {
|
|
|
207
232
|
return response.data;
|
|
208
233
|
}
|
|
209
234
|
catch (error) {
|
|
210
|
-
if (
|
|
235
|
+
if (error instanceof ClientException) {
|
|
236
|
+
throw error;
|
|
237
|
+
}
|
|
238
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
211
239
|
switch (error.response.status) {
|
|
212
240
|
case 400:
|
|
213
241
|
throw new MessageException(error.response.data);
|
|
@@ -219,7 +247,9 @@ export class SchemaTag extends TagAbstract {
|
|
|
219
247
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
220
248
|
}
|
|
221
249
|
}
|
|
222
|
-
|
|
250
|
+
else {
|
|
251
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
252
|
+
}
|
|
223
253
|
}
|
|
224
254
|
}
|
|
225
255
|
/**
|
|
@@ -243,7 +273,10 @@ export class SchemaTag extends TagAbstract {
|
|
|
243
273
|
return response.data;
|
|
244
274
|
}
|
|
245
275
|
catch (error) {
|
|
246
|
-
if (
|
|
276
|
+
if (error instanceof ClientException) {
|
|
277
|
+
throw error;
|
|
278
|
+
}
|
|
279
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
247
280
|
switch (error.response.status) {
|
|
248
281
|
case 401:
|
|
249
282
|
throw new MessageException(error.response.data);
|
|
@@ -253,7 +286,9 @@ export class SchemaTag extends TagAbstract {
|
|
|
253
286
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
254
287
|
}
|
|
255
288
|
}
|
|
256
|
-
|
|
289
|
+
else {
|
|
290
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
291
|
+
}
|
|
257
292
|
}
|
|
258
293
|
}
|
|
259
294
|
}
|
|
@@ -26,7 +26,10 @@ export class ScopeTag 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 400:
|
|
32
35
|
throw new MessageException(error.response.data);
|
|
@@ -42,7 +45,9 @@ export class ScopeTag extends TagAbstract {
|
|
|
42
45
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
43
46
|
}
|
|
44
47
|
}
|
|
45
|
-
|
|
48
|
+
else {
|
|
49
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
50
|
+
}
|
|
46
51
|
}
|
|
47
52
|
}
|
|
48
53
|
/**
|
|
@@ -65,7 +70,10 @@ export class ScopeTag 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 400:
|
|
71
79
|
throw new MessageException(error.response.data);
|
|
@@ -81,7 +89,9 @@ export class ScopeTag 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
|
/**
|
|
@@ -103,7 +113,10 @@ export class ScopeTag extends TagAbstract {
|
|
|
103
113
|
return response.data;
|
|
104
114
|
}
|
|
105
115
|
catch (error) {
|
|
106
|
-
if (
|
|
116
|
+
if (error instanceof ClientException) {
|
|
117
|
+
throw error;
|
|
118
|
+
}
|
|
119
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
107
120
|
switch (error.response.status) {
|
|
108
121
|
case 401:
|
|
109
122
|
throw new MessageException(error.response.data);
|
|
@@ -117,7 +130,9 @@ export class ScopeTag extends TagAbstract {
|
|
|
117
130
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
118
131
|
}
|
|
119
132
|
}
|
|
120
|
-
|
|
133
|
+
else {
|
|
134
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
135
|
+
}
|
|
121
136
|
}
|
|
122
137
|
}
|
|
123
138
|
/**
|
|
@@ -137,7 +152,10 @@ export class ScopeTag extends TagAbstract {
|
|
|
137
152
|
return response.data;
|
|
138
153
|
}
|
|
139
154
|
catch (error) {
|
|
140
|
-
if (
|
|
155
|
+
if (error instanceof ClientException) {
|
|
156
|
+
throw error;
|
|
157
|
+
}
|
|
158
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
141
159
|
switch (error.response.status) {
|
|
142
160
|
case 401:
|
|
143
161
|
throw new MessageException(error.response.data);
|
|
@@ -147,7 +165,9 @@ export class ScopeTag extends TagAbstract {
|
|
|
147
165
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
148
166
|
}
|
|
149
167
|
}
|
|
150
|
-
|
|
168
|
+
else {
|
|
169
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
170
|
+
}
|
|
151
171
|
}
|
|
152
172
|
}
|
|
153
173
|
/**
|
|
@@ -168,7 +188,10 @@ export class ScopeTag extends TagAbstract {
|
|
|
168
188
|
return response.data;
|
|
169
189
|
}
|
|
170
190
|
catch (error) {
|
|
171
|
-
if (
|
|
191
|
+
if (error instanceof ClientException) {
|
|
192
|
+
throw error;
|
|
193
|
+
}
|
|
194
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
172
195
|
switch (error.response.status) {
|
|
173
196
|
case 400:
|
|
174
197
|
throw new MessageException(error.response.data);
|
|
@@ -180,7 +203,9 @@ export class ScopeTag extends TagAbstract {
|
|
|
180
203
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
181
204
|
}
|
|
182
205
|
}
|
|
183
|
-
|
|
206
|
+
else {
|
|
207
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
208
|
+
}
|
|
184
209
|
}
|
|
185
210
|
}
|
|
186
211
|
/**
|
|
@@ -204,7 +229,10 @@ export class ScopeTag extends TagAbstract {
|
|
|
204
229
|
return response.data;
|
|
205
230
|
}
|
|
206
231
|
catch (error) {
|
|
207
|
-
if (
|
|
232
|
+
if (error instanceof ClientException) {
|
|
233
|
+
throw error;
|
|
234
|
+
}
|
|
235
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
208
236
|
switch (error.response.status) {
|
|
209
237
|
case 401:
|
|
210
238
|
throw new MessageException(error.response.data);
|
|
@@ -214,7 +242,9 @@ export class ScopeTag extends TagAbstract {
|
|
|
214
242
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
215
243
|
}
|
|
216
244
|
}
|
|
217
|
-
|
|
245
|
+
else {
|
|
246
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
247
|
+
}
|
|
218
248
|
}
|
|
219
249
|
}
|
|
220
250
|
}
|
|
@@ -25,7 +25,10 @@ export class SdkTag 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 401:
|
|
31
34
|
throw new MessageException(error.response.data);
|
|
@@ -35,7 +38,9 @@ export class SdkTag 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
|
/**
|
|
@@ -55,7 +60,10 @@ export class SdkTag extends TagAbstract {
|
|
|
55
60
|
return response.data;
|
|
56
61
|
}
|
|
57
62
|
catch (error) {
|
|
58
|
-
if (
|
|
63
|
+
if (error instanceof ClientException) {
|
|
64
|
+
throw error;
|
|
65
|
+
}
|
|
66
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
59
67
|
switch (error.response.status) {
|
|
60
68
|
case 401:
|
|
61
69
|
throw new MessageException(error.response.data);
|
|
@@ -65,7 +73,9 @@ export class SdkTag extends TagAbstract {
|
|
|
65
73
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
66
74
|
}
|
|
67
75
|
}
|
|
68
|
-
|
|
76
|
+
else {
|
|
77
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
78
|
+
}
|
|
69
79
|
}
|
|
70
80
|
}
|
|
71
81
|
}
|
|
@@ -39,7 +39,10 @@ export class StatisticTag extends TagAbstract {
|
|
|
39
39
|
return response.data;
|
|
40
40
|
}
|
|
41
41
|
catch (error) {
|
|
42
|
-
if (
|
|
42
|
+
if (error instanceof ClientException) {
|
|
43
|
+
throw error;
|
|
44
|
+
}
|
|
45
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
43
46
|
switch (error.response.status) {
|
|
44
47
|
case 401:
|
|
45
48
|
throw new MessageException(error.response.data);
|
|
@@ -49,7 +52,9 @@ export class StatisticTag extends TagAbstract {
|
|
|
49
52
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
|
-
|
|
55
|
+
else {
|
|
56
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
57
|
+
}
|
|
53
58
|
}
|
|
54
59
|
}
|
|
55
60
|
/**
|
|
@@ -84,7 +89,10 @@ export class StatisticTag extends TagAbstract {
|
|
|
84
89
|
return response.data;
|
|
85
90
|
}
|
|
86
91
|
catch (error) {
|
|
87
|
-
if (
|
|
92
|
+
if (error instanceof ClientException) {
|
|
93
|
+
throw error;
|
|
94
|
+
}
|
|
95
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
88
96
|
switch (error.response.status) {
|
|
89
97
|
case 401:
|
|
90
98
|
throw new MessageException(error.response.data);
|
|
@@ -94,7 +102,9 @@ export class StatisticTag extends TagAbstract {
|
|
|
94
102
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
95
103
|
}
|
|
96
104
|
}
|
|
97
|
-
|
|
105
|
+
else {
|
|
106
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
107
|
+
}
|
|
98
108
|
}
|
|
99
109
|
}
|
|
100
110
|
/**
|
|
@@ -129,7 +139,10 @@ export class StatisticTag extends TagAbstract {
|
|
|
129
139
|
return response.data;
|
|
130
140
|
}
|
|
131
141
|
catch (error) {
|
|
132
|
-
if (
|
|
142
|
+
if (error instanceof ClientException) {
|
|
143
|
+
throw error;
|
|
144
|
+
}
|
|
145
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
133
146
|
switch (error.response.status) {
|
|
134
147
|
case 401:
|
|
135
148
|
throw new MessageException(error.response.data);
|
|
@@ -139,7 +152,9 @@ export class StatisticTag extends TagAbstract {
|
|
|
139
152
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
140
153
|
}
|
|
141
154
|
}
|
|
142
|
-
|
|
155
|
+
else {
|
|
156
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
157
|
+
}
|
|
143
158
|
}
|
|
144
159
|
}
|
|
145
160
|
/**
|
|
@@ -174,7 +189,10 @@ export class StatisticTag extends TagAbstract {
|
|
|
174
189
|
return response.data;
|
|
175
190
|
}
|
|
176
191
|
catch (error) {
|
|
177
|
-
if (
|
|
192
|
+
if (error instanceof ClientException) {
|
|
193
|
+
throw error;
|
|
194
|
+
}
|
|
195
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
178
196
|
switch (error.response.status) {
|
|
179
197
|
case 401:
|
|
180
198
|
throw new MessageException(error.response.data);
|
|
@@ -184,7 +202,9 @@ export class StatisticTag extends TagAbstract {
|
|
|
184
202
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
185
203
|
}
|
|
186
204
|
}
|
|
187
|
-
|
|
205
|
+
else {
|
|
206
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
207
|
+
}
|
|
188
208
|
}
|
|
189
209
|
}
|
|
190
210
|
/**
|
|
@@ -219,7 +239,10 @@ export class StatisticTag extends TagAbstract {
|
|
|
219
239
|
return response.data;
|
|
220
240
|
}
|
|
221
241
|
catch (error) {
|
|
222
|
-
if (
|
|
242
|
+
if (error instanceof ClientException) {
|
|
243
|
+
throw error;
|
|
244
|
+
}
|
|
245
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
223
246
|
switch (error.response.status) {
|
|
224
247
|
case 401:
|
|
225
248
|
throw new MessageException(error.response.data);
|
|
@@ -229,7 +252,9 @@ export class StatisticTag extends TagAbstract {
|
|
|
229
252
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
230
253
|
}
|
|
231
254
|
}
|
|
232
|
-
|
|
255
|
+
else {
|
|
256
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
257
|
+
}
|
|
233
258
|
}
|
|
234
259
|
}
|
|
235
260
|
/**
|
|
@@ -264,7 +289,10 @@ export class StatisticTag extends TagAbstract {
|
|
|
264
289
|
return response.data;
|
|
265
290
|
}
|
|
266
291
|
catch (error) {
|
|
267
|
-
if (
|
|
292
|
+
if (error instanceof ClientException) {
|
|
293
|
+
throw error;
|
|
294
|
+
}
|
|
295
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
268
296
|
switch (error.response.status) {
|
|
269
297
|
case 401:
|
|
270
298
|
throw new MessageException(error.response.data);
|
|
@@ -274,7 +302,9 @@ export class StatisticTag extends TagAbstract {
|
|
|
274
302
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
275
303
|
}
|
|
276
304
|
}
|
|
277
|
-
|
|
305
|
+
else {
|
|
306
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
307
|
+
}
|
|
278
308
|
}
|
|
279
309
|
}
|
|
280
310
|
/**
|
|
@@ -309,7 +339,10 @@ export class StatisticTag extends TagAbstract {
|
|
|
309
339
|
return response.data;
|
|
310
340
|
}
|
|
311
341
|
catch (error) {
|
|
312
|
-
if (
|
|
342
|
+
if (error instanceof ClientException) {
|
|
343
|
+
throw error;
|
|
344
|
+
}
|
|
345
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
313
346
|
switch (error.response.status) {
|
|
314
347
|
case 401:
|
|
315
348
|
throw new MessageException(error.response.data);
|
|
@@ -319,7 +352,9 @@ export class StatisticTag extends TagAbstract {
|
|
|
319
352
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
320
353
|
}
|
|
321
354
|
}
|
|
322
|
-
|
|
355
|
+
else {
|
|
356
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
357
|
+
}
|
|
323
358
|
}
|
|
324
359
|
}
|
|
325
360
|
/**
|
|
@@ -354,7 +389,10 @@ export class StatisticTag extends TagAbstract {
|
|
|
354
389
|
return response.data;
|
|
355
390
|
}
|
|
356
391
|
catch (error) {
|
|
357
|
-
if (
|
|
392
|
+
if (error instanceof ClientException) {
|
|
393
|
+
throw error;
|
|
394
|
+
}
|
|
395
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
358
396
|
switch (error.response.status) {
|
|
359
397
|
case 401:
|
|
360
398
|
throw new MessageException(error.response.data);
|
|
@@ -364,7 +402,9 @@ export class StatisticTag extends TagAbstract {
|
|
|
364
402
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
365
403
|
}
|
|
366
404
|
}
|
|
367
|
-
|
|
405
|
+
else {
|
|
406
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
407
|
+
}
|
|
368
408
|
}
|
|
369
409
|
}
|
|
370
410
|
/**
|
|
@@ -399,7 +439,10 @@ export class StatisticTag extends TagAbstract {
|
|
|
399
439
|
return response.data;
|
|
400
440
|
}
|
|
401
441
|
catch (error) {
|
|
402
|
-
if (
|
|
442
|
+
if (error instanceof ClientException) {
|
|
443
|
+
throw error;
|
|
444
|
+
}
|
|
445
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
403
446
|
switch (error.response.status) {
|
|
404
447
|
case 401:
|
|
405
448
|
throw new MessageException(error.response.data);
|
|
@@ -409,7 +452,9 @@ export class StatisticTag extends TagAbstract {
|
|
|
409
452
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
410
453
|
}
|
|
411
454
|
}
|
|
412
|
-
|
|
455
|
+
else {
|
|
456
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
457
|
+
}
|
|
413
458
|
}
|
|
414
459
|
}
|
|
415
460
|
/**
|
|
@@ -444,7 +489,10 @@ export class StatisticTag extends TagAbstract {
|
|
|
444
489
|
return response.data;
|
|
445
490
|
}
|
|
446
491
|
catch (error) {
|
|
447
|
-
if (
|
|
492
|
+
if (error instanceof ClientException) {
|
|
493
|
+
throw error;
|
|
494
|
+
}
|
|
495
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
448
496
|
switch (error.response.status) {
|
|
449
497
|
case 401:
|
|
450
498
|
throw new MessageException(error.response.data);
|
|
@@ -454,7 +502,9 @@ export class StatisticTag extends TagAbstract {
|
|
|
454
502
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
455
503
|
}
|
|
456
504
|
}
|
|
457
|
-
|
|
505
|
+
else {
|
|
506
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
507
|
+
}
|
|
458
508
|
}
|
|
459
509
|
}
|
|
460
510
|
}
|