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
|
@@ -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);
|
|
@@ -37,7 +40,9 @@ export class AccountTag 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
|
/**
|
|
@@ -58,7 +63,10 @@ export class AccountTag extends TagAbstract {
|
|
|
58
63
|
return response.data;
|
|
59
64
|
}
|
|
60
65
|
catch (error) {
|
|
61
|
-
if (
|
|
66
|
+
if (error instanceof ClientException) {
|
|
67
|
+
throw error;
|
|
68
|
+
}
|
|
69
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
62
70
|
switch (error.response.status) {
|
|
63
71
|
case 400:
|
|
64
72
|
throw new MessageException(error.response.data);
|
|
@@ -70,7 +78,9 @@ export class AccountTag 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
|
/**
|
|
@@ -90,7 +100,10 @@ export class AccountTag extends TagAbstract {
|
|
|
90
100
|
return response.data;
|
|
91
101
|
}
|
|
92
102
|
catch (error) {
|
|
93
|
-
if (
|
|
103
|
+
if (error instanceof ClientException) {
|
|
104
|
+
throw error;
|
|
105
|
+
}
|
|
106
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
94
107
|
switch (error.response.status) {
|
|
95
108
|
case 401:
|
|
96
109
|
throw new MessageException(error.response.data);
|
|
@@ -100,7 +113,9 @@ export class AccountTag extends TagAbstract {
|
|
|
100
113
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
101
114
|
}
|
|
102
115
|
}
|
|
103
|
-
|
|
116
|
+
else {
|
|
117
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
118
|
+
}
|
|
104
119
|
}
|
|
105
120
|
}
|
|
106
121
|
}
|
|
@@ -26,7 +26,10 @@ export class ActionTag 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 404:
|
|
32
35
|
throw new MessageException(error.response.data);
|
|
@@ -40,7 +43,9 @@ export class ActionTag 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 ActionTag 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 ActionTag 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 ActionTag 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 ActionTag 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 ActionTag 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 401:
|
|
144
162
|
throw new MessageException(error.response.data);
|
|
@@ -148,7 +166,9 @@ export class ActionTag 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
|
/**
|
|
@@ -170,7 +190,10 @@ export class ActionTag extends TagAbstract {
|
|
|
170
190
|
return response.data;
|
|
171
191
|
}
|
|
172
192
|
catch (error) {
|
|
173
|
-
if (
|
|
193
|
+
if (error instanceof ClientException) {
|
|
194
|
+
throw error;
|
|
195
|
+
}
|
|
196
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
174
197
|
switch (error.response.status) {
|
|
175
198
|
case 401:
|
|
176
199
|
throw new MessageException(error.response.data);
|
|
@@ -180,7 +203,9 @@ export class ActionTag 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
|
/**
|
|
@@ -200,7 +225,10 @@ export class ActionTag extends TagAbstract {
|
|
|
200
225
|
return response.data;
|
|
201
226
|
}
|
|
202
227
|
catch (error) {
|
|
203
|
-
if (
|
|
228
|
+
if (error instanceof ClientException) {
|
|
229
|
+
throw error;
|
|
230
|
+
}
|
|
231
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
204
232
|
switch (error.response.status) {
|
|
205
233
|
case 401:
|
|
206
234
|
throw new MessageException(error.response.data);
|
|
@@ -210,7 +238,9 @@ export class ActionTag extends TagAbstract {
|
|
|
210
238
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
211
239
|
}
|
|
212
240
|
}
|
|
213
|
-
|
|
241
|
+
else {
|
|
242
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
243
|
+
}
|
|
214
244
|
}
|
|
215
245
|
}
|
|
216
246
|
/**
|
|
@@ -231,7 +261,10 @@ export class ActionTag extends TagAbstract {
|
|
|
231
261
|
return response.data;
|
|
232
262
|
}
|
|
233
263
|
catch (error) {
|
|
234
|
-
if (
|
|
264
|
+
if (error instanceof ClientException) {
|
|
265
|
+
throw error;
|
|
266
|
+
}
|
|
267
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
235
268
|
switch (error.response.status) {
|
|
236
269
|
case 400:
|
|
237
270
|
throw new MessageException(error.response.data);
|
|
@@ -243,7 +276,9 @@ export class ActionTag extends TagAbstract {
|
|
|
243
276
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
244
277
|
}
|
|
245
278
|
}
|
|
246
|
-
|
|
279
|
+
else {
|
|
280
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
281
|
+
}
|
|
247
282
|
}
|
|
248
283
|
}
|
|
249
284
|
/**
|
|
@@ -267,7 +302,10 @@ export class ActionTag extends TagAbstract {
|
|
|
267
302
|
return response.data;
|
|
268
303
|
}
|
|
269
304
|
catch (error) {
|
|
270
|
-
if (
|
|
305
|
+
if (error instanceof ClientException) {
|
|
306
|
+
throw error;
|
|
307
|
+
}
|
|
308
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
271
309
|
switch (error.response.status) {
|
|
272
310
|
case 401:
|
|
273
311
|
throw new MessageException(error.response.data);
|
|
@@ -277,7 +315,9 @@ export class ActionTag extends TagAbstract {
|
|
|
277
315
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
278
316
|
}
|
|
279
317
|
}
|
|
280
|
-
|
|
318
|
+
else {
|
|
319
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
320
|
+
}
|
|
281
321
|
}
|
|
282
322
|
}
|
|
283
323
|
}
|
|
@@ -27,7 +27,10 @@ export class AppTag 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);
|
|
@@ -41,7 +44,9 @@ export class AppTag extends TagAbstract {
|
|
|
41
44
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
42
45
|
}
|
|
43
46
|
}
|
|
44
|
-
|
|
47
|
+
else {
|
|
48
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
49
|
+
}
|
|
45
50
|
}
|
|
46
51
|
}
|
|
47
52
|
/**
|
|
@@ -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 401:
|
|
69
77
|
throw new MessageException(error.response.data);
|
|
@@ -77,7 +85,9 @@ export class AppTag extends TagAbstract {
|
|
|
77
85
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
78
86
|
}
|
|
79
87
|
}
|
|
80
|
-
|
|
88
|
+
else {
|
|
89
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
90
|
+
}
|
|
81
91
|
}
|
|
82
92
|
}
|
|
83
93
|
/**
|
|
@@ -100,7 +110,10 @@ export class AppTag extends TagAbstract {
|
|
|
100
110
|
return response.data;
|
|
101
111
|
}
|
|
102
112
|
catch (error) {
|
|
103
|
-
if (
|
|
113
|
+
if (error instanceof ClientException) {
|
|
114
|
+
throw error;
|
|
115
|
+
}
|
|
116
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
104
117
|
switch (error.response.status) {
|
|
105
118
|
case 400:
|
|
106
119
|
throw new MessageException(error.response.data);
|
|
@@ -116,7 +129,9 @@ export class AppTag extends TagAbstract {
|
|
|
116
129
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
117
130
|
}
|
|
118
131
|
}
|
|
119
|
-
|
|
132
|
+
else {
|
|
133
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
134
|
+
}
|
|
120
135
|
}
|
|
121
136
|
}
|
|
122
137
|
/**
|
|
@@ -138,7 +153,10 @@ export class AppTag 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 404:
|
|
144
162
|
throw new MessageException(error.response.data);
|
|
@@ -152,7 +170,9 @@ export class AppTag extends TagAbstract {
|
|
|
152
170
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
153
171
|
}
|
|
154
172
|
}
|
|
155
|
-
|
|
173
|
+
else {
|
|
174
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
175
|
+
}
|
|
156
176
|
}
|
|
157
177
|
}
|
|
158
178
|
/**
|
|
@@ -173,7 +193,10 @@ export class AppTag extends TagAbstract {
|
|
|
173
193
|
return response.data;
|
|
174
194
|
}
|
|
175
195
|
catch (error) {
|
|
176
|
-
if (
|
|
196
|
+
if (error instanceof ClientException) {
|
|
197
|
+
throw error;
|
|
198
|
+
}
|
|
199
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
177
200
|
switch (error.response.status) {
|
|
178
201
|
case 400:
|
|
179
202
|
throw new MessageException(error.response.data);
|
|
@@ -185,7 +208,9 @@ export class AppTag extends TagAbstract {
|
|
|
185
208
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
186
209
|
}
|
|
187
210
|
}
|
|
188
|
-
|
|
211
|
+
else {
|
|
212
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
213
|
+
}
|
|
189
214
|
}
|
|
190
215
|
}
|
|
191
216
|
/**
|
|
@@ -209,7 +234,10 @@ export class AppTag extends TagAbstract {
|
|
|
209
234
|
return response.data;
|
|
210
235
|
}
|
|
211
236
|
catch (error) {
|
|
212
|
-
if (
|
|
237
|
+
if (error instanceof ClientException) {
|
|
238
|
+
throw error;
|
|
239
|
+
}
|
|
240
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
213
241
|
switch (error.response.status) {
|
|
214
242
|
case 401:
|
|
215
243
|
throw new MessageException(error.response.data);
|
|
@@ -219,7 +247,9 @@ export class AppTag 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
|
/**
|
|
@@ -241,7 +271,10 @@ export class AppTag 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 401:
|
|
247
280
|
throw new MessageException(error.response.data);
|
|
@@ -253,7 +286,9 @@ export class AppTag 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
|
/**
|
|
@@ -284,7 +319,10 @@ export class AppTag extends TagAbstract {
|
|
|
284
319
|
return response.data;
|
|
285
320
|
}
|
|
286
321
|
catch (error) {
|
|
287
|
-
if (
|
|
322
|
+
if (error instanceof ClientException) {
|
|
323
|
+
throw error;
|
|
324
|
+
}
|
|
325
|
+
else if (axios.isAxiosError(error) && error.response) {
|
|
288
326
|
switch (error.response.status) {
|
|
289
327
|
case 401:
|
|
290
328
|
throw new MessageException(error.response.data);
|
|
@@ -294,7 +332,9 @@ export class AppTag extends TagAbstract {
|
|
|
294
332
|
throw new UnknownStatusCodeException('The server returned an unknown status code');
|
|
295
333
|
}
|
|
296
334
|
}
|
|
297
|
-
|
|
335
|
+
else {
|
|
336
|
+
throw new ClientException('An unknown error occurred: ' + String(error));
|
|
337
|
+
}
|
|
298
338
|
}
|
|
299
339
|
}
|
|
300
340
|
}
|
|
@@ -26,7 +26,10 @@ export class AuditTag 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 AuditTag 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 AuditTag 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 AuditTag 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
|
}
|
|
@@ -26,7 +26,10 @@ export class CategoryTag 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 CategoryTag 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 CategoryTag 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 CategoryTag 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 CategoryTag 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 CategoryTag 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 CategoryTag 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 CategoryTag 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 CategoryTag 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 CategoryTag 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
|
}
|
|
@@ -17,6 +17,7 @@ import { PlanTag } from "./PlanTag";
|
|
|
17
17
|
import { PageTag } from "./PageTag";
|
|
18
18
|
import { MarketplaceTag } from "./MarketplaceTag";
|
|
19
19
|
import { LogTag } from "./LogTag";
|
|
20
|
+
import { IdentityTag } from "./IdentityTag";
|
|
20
21
|
import { GeneratorTag } from "./GeneratorTag";
|
|
21
22
|
import { EventTag } from "./EventTag";
|
|
22
23
|
import { DashboardTag } from "./DashboardTag";
|
|
@@ -43,6 +44,7 @@ export declare class Client extends ClientAbstract {
|
|
|
43
44
|
page(): PageTag;
|
|
44
45
|
marketplace(): MarketplaceTag;
|
|
45
46
|
log(): LogTag;
|
|
47
|
+
identity(): IdentityTag;
|
|
46
48
|
generator(): GeneratorTag;
|
|
47
49
|
event(): EventTag;
|
|
48
50
|
dashboard(): DashboardTag;
|
|
@@ -17,6 +17,7 @@ import { PlanTag } from "./PlanTag";
|
|
|
17
17
|
import { PageTag } from "./PageTag";
|
|
18
18
|
import { MarketplaceTag } from "./MarketplaceTag";
|
|
19
19
|
import { LogTag } from "./LogTag";
|
|
20
|
+
import { IdentityTag } from "./IdentityTag";
|
|
20
21
|
import { GeneratorTag } from "./GeneratorTag";
|
|
21
22
|
import { EventTag } from "./EventTag";
|
|
22
23
|
import { DashboardTag } from "./DashboardTag";
|
|
@@ -71,6 +72,9 @@ export class Client extends ClientAbstract {
|
|
|
71
72
|
log() {
|
|
72
73
|
return new LogTag(this.httpClient, this.parser);
|
|
73
74
|
}
|
|
75
|
+
identity() {
|
|
76
|
+
return new IdentityTag(this.httpClient, this.parser);
|
|
77
|
+
}
|
|
74
78
|
generator() {
|
|
75
79
|
return new GeneratorTag(this.httpClient, this.parser);
|
|
76
80
|
}
|