fusio-sdk 5.1.1 → 5.1.2
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.
|
@@ -33,8 +33,12 @@ export class BackendDatabaseTag extends TagAbstract {
|
|
|
33
33
|
}
|
|
34
34
|
else if (axios.isAxiosError(error) && error.response) {
|
|
35
35
|
switch (error.response.status) {
|
|
36
|
+
case 400:
|
|
37
|
+
throw new CommonMessageException(error.response.data);
|
|
36
38
|
case 401:
|
|
37
39
|
throw new CommonMessageException(error.response.data);
|
|
40
|
+
case 404:
|
|
41
|
+
throw new CommonMessageException(error.response.data);
|
|
38
42
|
case 500:
|
|
39
43
|
throw new CommonMessageException(error.response.data);
|
|
40
44
|
default:
|
|
@@ -73,8 +77,12 @@ export class BackendDatabaseTag extends TagAbstract {
|
|
|
73
77
|
}
|
|
74
78
|
else if (axios.isAxiosError(error) && error.response) {
|
|
75
79
|
switch (error.response.status) {
|
|
80
|
+
case 400:
|
|
81
|
+
throw new CommonMessageException(error.response.data);
|
|
76
82
|
case 401:
|
|
77
83
|
throw new CommonMessageException(error.response.data);
|
|
84
|
+
case 404:
|
|
85
|
+
throw new CommonMessageException(error.response.data);
|
|
78
86
|
case 500:
|
|
79
87
|
throw new CommonMessageException(error.response.data);
|
|
80
88
|
default:
|
|
@@ -112,8 +120,12 @@ export class BackendDatabaseTag extends TagAbstract {
|
|
|
112
120
|
}
|
|
113
121
|
else if (axios.isAxiosError(error) && error.response) {
|
|
114
122
|
switch (error.response.status) {
|
|
123
|
+
case 400:
|
|
124
|
+
throw new CommonMessageException(error.response.data);
|
|
115
125
|
case 401:
|
|
116
126
|
throw new CommonMessageException(error.response.data);
|
|
127
|
+
case 404:
|
|
128
|
+
throw new CommonMessageException(error.response.data);
|
|
117
129
|
case 500:
|
|
118
130
|
throw new CommonMessageException(error.response.data);
|
|
119
131
|
default:
|
|
@@ -153,6 +165,8 @@ export class BackendDatabaseTag extends TagAbstract {
|
|
|
153
165
|
switch (error.response.status) {
|
|
154
166
|
case 401:
|
|
155
167
|
throw new CommonMessageException(error.response.data);
|
|
168
|
+
case 404:
|
|
169
|
+
throw new CommonMessageException(error.response.data);
|
|
156
170
|
case 500:
|
|
157
171
|
throw new CommonMessageException(error.response.data);
|
|
158
172
|
default:
|
|
@@ -200,6 +214,8 @@ export class BackendDatabaseTag extends TagAbstract {
|
|
|
200
214
|
switch (error.response.status) {
|
|
201
215
|
case 401:
|
|
202
216
|
throw new CommonMessageException(error.response.data);
|
|
217
|
+
case 404:
|
|
218
|
+
throw new CommonMessageException(error.response.data);
|
|
203
219
|
case 500:
|
|
204
220
|
throw new CommonMessageException(error.response.data);
|
|
205
221
|
default:
|
|
@@ -236,8 +252,12 @@ export class BackendDatabaseTag extends TagAbstract {
|
|
|
236
252
|
}
|
|
237
253
|
else if (axios.isAxiosError(error) && error.response) {
|
|
238
254
|
switch (error.response.status) {
|
|
255
|
+
case 400:
|
|
256
|
+
throw new CommonMessageException(error.response.data);
|
|
239
257
|
case 401:
|
|
240
258
|
throw new CommonMessageException(error.response.data);
|
|
259
|
+
case 404:
|
|
260
|
+
throw new CommonMessageException(error.response.data);
|
|
241
261
|
case 500:
|
|
242
262
|
throw new CommonMessageException(error.response.data);
|
|
243
263
|
default:
|
|
@@ -275,8 +295,12 @@ export class BackendDatabaseTag extends TagAbstract {
|
|
|
275
295
|
}
|
|
276
296
|
else if (axios.isAxiosError(error) && error.response) {
|
|
277
297
|
switch (error.response.status) {
|
|
298
|
+
case 400:
|
|
299
|
+
throw new CommonMessageException(error.response.data);
|
|
278
300
|
case 401:
|
|
279
301
|
throw new CommonMessageException(error.response.data);
|
|
302
|
+
case 404:
|
|
303
|
+
throw new CommonMessageException(error.response.data);
|
|
280
304
|
case 500:
|
|
281
305
|
throw new CommonMessageException(error.response.data);
|
|
282
306
|
default:
|
|
@@ -313,8 +337,12 @@ export class BackendDatabaseTag extends TagAbstract {
|
|
|
313
337
|
}
|
|
314
338
|
else if (axios.isAxiosError(error) && error.response) {
|
|
315
339
|
switch (error.response.status) {
|
|
340
|
+
case 400:
|
|
341
|
+
throw new CommonMessageException(error.response.data);
|
|
316
342
|
case 401:
|
|
317
343
|
throw new CommonMessageException(error.response.data);
|
|
344
|
+
case 404:
|
|
345
|
+
throw new CommonMessageException(error.response.data);
|
|
318
346
|
case 500:
|
|
319
347
|
throw new CommonMessageException(error.response.data);
|
|
320
348
|
default:
|
|
@@ -353,6 +381,8 @@ export class BackendDatabaseTag extends TagAbstract {
|
|
|
353
381
|
switch (error.response.status) {
|
|
354
382
|
case 401:
|
|
355
383
|
throw new CommonMessageException(error.response.data);
|
|
384
|
+
case 404:
|
|
385
|
+
throw new CommonMessageException(error.response.data);
|
|
356
386
|
case 500:
|
|
357
387
|
throw new CommonMessageException(error.response.data);
|
|
358
388
|
default:
|
|
@@ -390,6 +420,8 @@ export class BackendDatabaseTag extends TagAbstract {
|
|
|
390
420
|
switch (error.response.status) {
|
|
391
421
|
case 401:
|
|
392
422
|
throw new CommonMessageException(error.response.data);
|
|
423
|
+
case 404:
|
|
424
|
+
throw new CommonMessageException(error.response.data);
|
|
393
425
|
case 500:
|
|
394
426
|
throw new CommonMessageException(error.response.data);
|
|
395
427
|
default:
|
package/dist/BackendSdkTag.d.ts
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { TagAbstract } from "sdkgen-client";
|
|
6
6
|
import { BackendSdkGenerate } from "./BackendSdkGenerate";
|
|
7
|
+
import { BackendSdkMessage } from "./BackendSdkMessage";
|
|
7
8
|
import { BackendSdkResponse } from "./BackendSdkResponse";
|
|
8
|
-
import { CommonMessage } from "./CommonMessage";
|
|
9
9
|
export declare class BackendSdkTag extends TagAbstract {
|
|
10
10
|
/**
|
|
11
|
-
* @returns {Promise<
|
|
11
|
+
* @returns {Promise<BackendSdkMessage>}
|
|
12
12
|
* @throws {CommonMessageExceptionException}
|
|
13
13
|
* @throws {ClientException}
|
|
14
14
|
*/
|
|
15
|
-
generate(payload: BackendSdkGenerate): Promise<
|
|
15
|
+
generate(payload: BackendSdkGenerate): Promise<BackendSdkMessage>;
|
|
16
16
|
/**
|
|
17
17
|
* @returns {Promise<BackendSdkResponse>}
|
|
18
18
|
* @throws {CommonMessageExceptionException}
|
package/dist/BackendSdkTag.js
CHANGED
|
@@ -8,7 +8,7 @@ import { ClientException, UnknownStatusCodeException } from "sdkgen-client";
|
|
|
8
8
|
import { CommonMessageException } from "./CommonMessageException";
|
|
9
9
|
export class BackendSdkTag extends TagAbstract {
|
|
10
10
|
/**
|
|
11
|
-
* @returns {Promise<
|
|
11
|
+
* @returns {Promise<BackendSdkMessage>}
|
|
12
12
|
* @throws {CommonMessageExceptionException}
|
|
13
13
|
* @throws {ClientException}
|
|
14
14
|
*/
|
|
@@ -30,6 +30,8 @@ export class BackendSdkTag extends TagAbstract {
|
|
|
30
30
|
}
|
|
31
31
|
else if (axios.isAxiosError(error) && error.response) {
|
|
32
32
|
switch (error.response.status) {
|
|
33
|
+
case 400:
|
|
34
|
+
throw new CommonMessageException(error.response.data);
|
|
33
35
|
case 401:
|
|
34
36
|
throw new CommonMessageException(error.response.data);
|
|
35
37
|
case 500:
|