fusio-sdk 5.0.5 → 5.0.7
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.
|
@@ -32,6 +32,8 @@ export class BackendGeneratorTag extends TagAbstract {
|
|
|
32
32
|
}
|
|
33
33
|
else if (axios.isAxiosError(error) && error.response) {
|
|
34
34
|
switch (error.response.status) {
|
|
35
|
+
case 400:
|
|
36
|
+
throw new CommonMessageException(error.response.data);
|
|
35
37
|
case 401:
|
|
36
38
|
throw new CommonMessageException(error.response.data);
|
|
37
39
|
case 500:
|
|
@@ -70,6 +72,8 @@ export class BackendGeneratorTag extends TagAbstract {
|
|
|
70
72
|
}
|
|
71
73
|
else if (axios.isAxiosError(error) && error.response) {
|
|
72
74
|
switch (error.response.status) {
|
|
75
|
+
case 400:
|
|
76
|
+
throw new CommonMessageException(error.response.data);
|
|
73
77
|
case 401:
|
|
74
78
|
throw new CommonMessageException(error.response.data);
|
|
75
79
|
case 500:
|
|
@@ -107,6 +111,8 @@ export class BackendGeneratorTag extends TagAbstract {
|
|
|
107
111
|
}
|
|
108
112
|
else if (axios.isAxiosError(error) && error.response) {
|
|
109
113
|
switch (error.response.status) {
|
|
114
|
+
case 400:
|
|
115
|
+
throw new CommonMessageException(error.response.data);
|
|
110
116
|
case 401:
|
|
111
117
|
throw new CommonMessageException(error.response.data);
|
|
112
118
|
case 500:
|
|
@@ -23,5 +23,5 @@ export declare class ConsumerIdentityTag extends TagAbstract {
|
|
|
23
23
|
* @throws {CommonMessageExceptionException}
|
|
24
24
|
* @throws {ClientException}
|
|
25
25
|
*/
|
|
26
|
-
getAll(appId?: number): Promise<ConsumerIdentityCollection>;
|
|
26
|
+
getAll(appId?: number, appKey?: string): Promise<ConsumerIdentityCollection>;
|
|
27
27
|
}
|
|
@@ -86,13 +86,14 @@ export class ConsumerIdentityTag extends TagAbstract {
|
|
|
86
86
|
* @throws {CommonMessageExceptionException}
|
|
87
87
|
* @throws {ClientException}
|
|
88
88
|
*/
|
|
89
|
-
async getAll(appId) {
|
|
89
|
+
async getAll(appId, appKey) {
|
|
90
90
|
const url = this.parser.url('/consumer/identity', {});
|
|
91
91
|
let params = {
|
|
92
92
|
url: url,
|
|
93
93
|
method: 'GET',
|
|
94
94
|
params: this.parser.query({
|
|
95
95
|
'appId': appId,
|
|
96
|
+
'appKey': appKey,
|
|
96
97
|
}, []),
|
|
97
98
|
};
|
|
98
99
|
try {
|