fusio-sdk 3.0.9 → 3.1.1
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/Client.d.ts +2 -0
- package/dist/src/generated/backend/Client.js +4 -0
- 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/Identity.d.ts +21 -0
- package/dist/src/generated/backend/Identity.js +5 -0
- package/dist/src/generated/backend/IdentityCollection.d.ts +7 -0
- package/dist/src/generated/backend/IdentityCollection.js +5 -0
- package/dist/src/generated/backend/IdentityCreate.d.ts +7 -0
- package/dist/src/generated/backend/IdentityCreate.js +5 -0
- package/dist/src/generated/backend/IdentityTag.d.ts +42 -0
- package/dist/src/generated/backend/IdentityTag.js +213 -0
- package/dist/src/generated/backend/IdentityUpdate.d.ts +7 -0
- package/dist/src/generated/backend/IdentityUpdate.js +5 -0
- 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.d.ts +0 -7
- package/dist/src/generated/consumer/AccountTag.js +76 -54
- package/dist/src/generated/consumer/AppTag.js +35 -10
- package/dist/src/generated/consumer/Client.d.ts +2 -0
- package/dist/src/generated/consumer/Client.js +4 -0
- package/dist/src/generated/consumer/EventTag.js +7 -2
- package/dist/src/generated/consumer/GrantTag.js +14 -4
- package/dist/src/generated/consumer/IdentityTag.d.ts +26 -0
- package/dist/src/generated/consumer/IdentityTag.js +121 -0
- 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
- package/dist/src/generated/consumer/UserProvider.d.ts +0 -9
- package/dist/src/generated/consumer/UserProvider.js +0 -5
|
@@ -27,7 +27,10 @@ export class ConfigTag 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);
|
|
@@ -43,7 +46,9 @@ export class ConfigTag extends TagAbstract {
|
|
|
43
46
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
|
-
|
|
49
|
+
else {
|
|
50
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
51
|
+
}
|
|
47
52
|
}
|
|
48
53
|
}
|
|
49
54
|
/**
|
|
@@ -65,7 +70,10 @@ export class ConfigTag 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);
|
|
@@ -79,7 +87,9 @@ export class ConfigTag 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
|
/**
|
|
@@ -103,7 +113,10 @@ export class ConfigTag 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);
|
|
@@ -113,7 +126,9 @@ export class ConfigTag extends TagAbstract {
|
|
|
113
126
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
114
127
|
}
|
|
115
128
|
}
|
|
116
|
-
|
|
129
|
+
else {
|
|
130
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
131
|
+
}
|
|
117
132
|
}
|
|
118
133
|
}
|
|
119
134
|
}
|
|
@@ -27,7 +27,10 @@ export class ConnectionTag 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);
|
|
@@ -39,7 +42,9 @@ export class ConnectionTag 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
|
/**
|
|
@@ -61,7 +66,10 @@ export class ConnectionTag extends TagAbstract {
|
|
|
61
66
|
return response.data;
|
|
62
67
|
}
|
|
63
68
|
catch (error) {
|
|
64
|
-
if (
|
|
69
|
+
if (error instanceof ClientException) {
|
|
70
|
+
throw error;
|
|
71
|
+
}
|
|
72
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
65
73
|
switch (error.response.status) {
|
|
66
74
|
case 401:
|
|
67
75
|
throw new MessageException(error.response.data);
|
|
@@ -73,7 +81,9 @@ export class ConnectionTag extends TagAbstract {
|
|
|
73
81
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
74
82
|
}
|
|
75
83
|
}
|
|
76
|
-
|
|
84
|
+
else {
|
|
85
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
86
|
+
}
|
|
77
87
|
}
|
|
78
88
|
}
|
|
79
89
|
/**
|
|
@@ -95,7 +105,10 @@ export class ConnectionTag 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 ConnectionTag 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
|
/**
|
|
@@ -127,7 +142,10 @@ export class ConnectionTag extends TagAbstract {
|
|
|
127
142
|
return response.data;
|
|
128
143
|
}
|
|
129
144
|
catch (error) {
|
|
130
|
-
if (
|
|
145
|
+
if (error instanceof ClientException) {
|
|
146
|
+
throw error;
|
|
147
|
+
}
|
|
148
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
131
149
|
switch (error.response.status) {
|
|
132
150
|
case 401:
|
|
133
151
|
throw new MessageException(error.response.data);
|
|
@@ -141,7 +159,9 @@ export class ConnectionTag extends TagAbstract {
|
|
|
141
159
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
142
160
|
}
|
|
143
161
|
}
|
|
144
|
-
|
|
162
|
+
else {
|
|
163
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
164
|
+
}
|
|
145
165
|
}
|
|
146
166
|
}
|
|
147
167
|
/**
|
|
@@ -164,7 +184,10 @@ export class ConnectionTag extends TagAbstract {
|
|
|
164
184
|
return response.data;
|
|
165
185
|
}
|
|
166
186
|
catch (error) {
|
|
167
|
-
if (
|
|
187
|
+
if (error instanceof ClientException) {
|
|
188
|
+
throw error;
|
|
189
|
+
}
|
|
190
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
168
191
|
switch (error.response.status) {
|
|
169
192
|
case 400:
|
|
170
193
|
throw new MessageException(error.response.data);
|
|
@@ -180,7 +203,9 @@ export class ConnectionTag 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
|
/**
|
|
@@ -202,7 +227,10 @@ export class ConnectionTag extends TagAbstract {
|
|
|
202
227
|
return response.data;
|
|
203
228
|
}
|
|
204
229
|
catch (error) {
|
|
205
|
-
if (
|
|
230
|
+
if (error instanceof ClientException) {
|
|
231
|
+
throw error;
|
|
232
|
+
}
|
|
233
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
206
234
|
switch (error.response.status) {
|
|
207
235
|
case 404:
|
|
208
236
|
throw new MessageException(error.response.data);
|
|
@@ -216,7 +244,9 @@ export class ConnectionTag extends TagAbstract {
|
|
|
216
244
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
217
245
|
}
|
|
218
246
|
}
|
|
219
|
-
|
|
247
|
+
else {
|
|
248
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
249
|
+
}
|
|
220
250
|
}
|
|
221
251
|
}
|
|
222
252
|
/**
|
|
@@ -238,7 +268,10 @@ export class ConnectionTag extends TagAbstract {
|
|
|
238
268
|
return response.data;
|
|
239
269
|
}
|
|
240
270
|
catch (error) {
|
|
241
|
-
if (
|
|
271
|
+
if (error instanceof ClientException) {
|
|
272
|
+
throw error;
|
|
273
|
+
}
|
|
274
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
242
275
|
switch (error.response.status) {
|
|
243
276
|
case 401:
|
|
244
277
|
throw new MessageException(error.response.data);
|
|
@@ -248,7 +281,9 @@ export class ConnectionTag extends TagAbstract {
|
|
|
248
281
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
249
282
|
}
|
|
250
283
|
}
|
|
251
|
-
|
|
284
|
+
else {
|
|
285
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
286
|
+
}
|
|
252
287
|
}
|
|
253
288
|
}
|
|
254
289
|
/**
|
|
@@ -268,7 +303,10 @@ export class ConnectionTag extends TagAbstract {
|
|
|
268
303
|
return response.data;
|
|
269
304
|
}
|
|
270
305
|
catch (error) {
|
|
271
|
-
if (
|
|
306
|
+
if (error instanceof ClientException) {
|
|
307
|
+
throw error;
|
|
308
|
+
}
|
|
309
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
272
310
|
switch (error.response.status) {
|
|
273
311
|
case 401:
|
|
274
312
|
throw new MessageException(error.response.data);
|
|
@@ -278,7 +316,9 @@ export class ConnectionTag extends TagAbstract {
|
|
|
278
316
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
279
317
|
}
|
|
280
318
|
}
|
|
281
|
-
|
|
319
|
+
else {
|
|
320
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
321
|
+
}
|
|
282
322
|
}
|
|
283
323
|
}
|
|
284
324
|
/**
|
|
@@ -299,7 +339,10 @@ export class ConnectionTag extends TagAbstract {
|
|
|
299
339
|
return response.data;
|
|
300
340
|
}
|
|
301
341
|
catch (error) {
|
|
302
|
-
if (
|
|
342
|
+
if (error instanceof ClientException) {
|
|
343
|
+
throw error;
|
|
344
|
+
}
|
|
345
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
303
346
|
switch (error.response.status) {
|
|
304
347
|
case 400:
|
|
305
348
|
throw new MessageException(error.response.data);
|
|
@@ -311,7 +354,9 @@ export class ConnectionTag extends TagAbstract {
|
|
|
311
354
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
312
355
|
}
|
|
313
356
|
}
|
|
314
|
-
|
|
357
|
+
else {
|
|
358
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
359
|
+
}
|
|
315
360
|
}
|
|
316
361
|
}
|
|
317
362
|
/**
|
|
@@ -335,7 +380,10 @@ export class ConnectionTag extends TagAbstract {
|
|
|
335
380
|
return response.data;
|
|
336
381
|
}
|
|
337
382
|
catch (error) {
|
|
338
|
-
if (
|
|
383
|
+
if (error instanceof ClientException) {
|
|
384
|
+
throw error;
|
|
385
|
+
}
|
|
386
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
339
387
|
switch (error.response.status) {
|
|
340
388
|
case 401:
|
|
341
389
|
throw new MessageException(error.response.data);
|
|
@@ -345,7 +393,9 @@ export class ConnectionTag extends TagAbstract {
|
|
|
345
393
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
346
394
|
}
|
|
347
395
|
}
|
|
348
|
-
|
|
396
|
+
else {
|
|
397
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
398
|
+
}
|
|
349
399
|
}
|
|
350
400
|
}
|
|
351
401
|
}
|
|
@@ -26,7 +26,10 @@ export class CronjobTag 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 CronjobTag 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 CronjobTag 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 CronjobTag 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 CronjobTag 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 CronjobTag 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 CronjobTag 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 CronjobTag 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 CronjobTag 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 CronjobTag 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
|
}
|
|
@@ -24,7 +24,10 @@ export class DashboardTag extends TagAbstract {
|
|
|
24
24
|
return response.data;
|
|
25
25
|
}
|
|
26
26
|
catch (error) {
|
|
27
|
-
if (
|
|
27
|
+
if (error instanceof ClientException) {
|
|
28
|
+
throw error;
|
|
29
|
+
}
|
|
30
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
28
31
|
switch (error.response.status) {
|
|
29
32
|
case 401:
|
|
30
33
|
throw new MessageException(error.response.data);
|
|
@@ -34,7 +37,9 @@ export class DashboardTag extends TagAbstract {
|
|
|
34
37
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
35
38
|
}
|
|
36
39
|
}
|
|
37
|
-
|
|
40
|
+
else {
|
|
41
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
42
|
+
}
|
|
38
43
|
}
|
|
39
44
|
}
|
|
40
45
|
}
|
|
@@ -26,7 +26,10 @@ export class EventTag 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 EventTag 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 EventTag 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 EventTag 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 EventTag 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 EventTag 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 EventTag 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 EventTag 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 EventTag 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 EventTag 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
|
/**
|
|
@@ -204,7 +229,10 @@ export class EventTag 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);
|
|
@@ -218,7 +246,9 @@ export class EventTag extends TagAbstract {
|
|
|
218
246
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
219
247
|
}
|
|
220
248
|
}
|
|
221
|
-
|
|
249
|
+
else {
|
|
250
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
251
|
+
}
|
|
222
252
|
}
|
|
223
253
|
}
|
|
224
254
|
/**
|
|
@@ -241,7 +271,10 @@ export class EventTag extends TagAbstract {
|
|
|
241
271
|
return response.data;
|
|
242
272
|
}
|
|
243
273
|
catch (error) {
|
|
244
|
-
if (
|
|
274
|
+
if (error instanceof ClientException) {
|
|
275
|
+
throw error;
|
|
276
|
+
}
|
|
277
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
245
278
|
switch (error.response.status) {
|
|
246
279
|
case 400:
|
|
247
280
|
throw new MessageException(error.response.data);
|
|
@@ -257,7 +290,9 @@ export class EventTag extends TagAbstract {
|
|
|
257
290
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
258
291
|
}
|
|
259
292
|
}
|
|
260
|
-
|
|
293
|
+
else {
|
|
294
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
295
|
+
}
|
|
261
296
|
}
|
|
262
297
|
}
|
|
263
298
|
/**
|
|
@@ -279,7 +314,10 @@ export class EventTag extends TagAbstract {
|
|
|
279
314
|
return response.data;
|
|
280
315
|
}
|
|
281
316
|
catch (error) {
|
|
282
|
-
if (
|
|
317
|
+
if (error instanceof ClientException) {
|
|
318
|
+
throw error;
|
|
319
|
+
}
|
|
320
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
283
321
|
switch (error.response.status) {
|
|
284
322
|
case 401:
|
|
285
323
|
throw new MessageException(error.response.data);
|
|
@@ -291,7 +329,9 @@ export class EventTag extends TagAbstract {
|
|
|
291
329
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
292
330
|
}
|
|
293
331
|
}
|
|
294
|
-
|
|
332
|
+
else {
|
|
333
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
334
|
+
}
|
|
295
335
|
}
|
|
296
336
|
}
|
|
297
337
|
/**
|
|
@@ -312,7 +352,10 @@ export class EventTag extends TagAbstract {
|
|
|
312
352
|
return response.data;
|
|
313
353
|
}
|
|
314
354
|
catch (error) {
|
|
315
|
-
if (
|
|
355
|
+
if (error instanceof ClientException) {
|
|
356
|
+
throw error;
|
|
357
|
+
}
|
|
358
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
316
359
|
switch (error.response.status) {
|
|
317
360
|
case 400:
|
|
318
361
|
throw new MessageException(error.response.data);
|
|
@@ -324,7 +367,9 @@ export class EventTag extends TagAbstract {
|
|
|
324
367
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
325
368
|
}
|
|
326
369
|
}
|
|
327
|
-
|
|
370
|
+
else {
|
|
371
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
372
|
+
}
|
|
328
373
|
}
|
|
329
374
|
}
|
|
330
375
|
/**
|
|
@@ -348,7 +393,10 @@ export class EventTag extends TagAbstract {
|
|
|
348
393
|
return response.data;
|
|
349
394
|
}
|
|
350
395
|
catch (error) {
|
|
351
|
-
if (
|
|
396
|
+
if (error instanceof ClientException) {
|
|
397
|
+
throw error;
|
|
398
|
+
}
|
|
399
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
352
400
|
switch (error.response.status) {
|
|
353
401
|
case 401:
|
|
354
402
|
throw new MessageException(error.response.data);
|
|
@@ -358,7 +406,9 @@ export class EventTag extends TagAbstract {
|
|
|
358
406
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
359
407
|
}
|
|
360
408
|
}
|
|
361
|
-
|
|
409
|
+
else {
|
|
410
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
411
|
+
}
|
|
362
412
|
}
|
|
363
413
|
}
|
|
364
414
|
}
|