@fiado/api-invoker 3.0.34 → 3.0.35
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/bin/countries-business/CountriesBusinessApi.js +3 -8
- package/bin/countries-business/interfaces/ICountriesBusinessApi.d.ts +10 -10
- package/package.json +1 -1
- package/src/countries-business/CountriesBusinessApi.ts +3 -8
- package/src/countries-business/interfaces/ICountriesBusinessApi.ts +10 -10
|
@@ -19,10 +19,8 @@ let CountriesBusinessApi = class CountriesBusinessApi {
|
|
|
19
19
|
this.baseUrl = process.env.COUNTRIES_BUSINESS_LAMBDA_URL || "";
|
|
20
20
|
}
|
|
21
21
|
async getAll() {
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
return await this.httpRequest.post(this.baseUrl, null, headers);
|
|
22
|
+
const url = `${this.baseUrl}all`;
|
|
23
|
+
return await this.httpRequest.get(url);
|
|
26
24
|
}
|
|
27
25
|
async getList(params) {
|
|
28
26
|
const queryParams = Object.entries(params)
|
|
@@ -30,10 +28,7 @@ let CountriesBusinessApi = class CountriesBusinessApi {
|
|
|
30
28
|
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
31
29
|
.join('&');
|
|
32
30
|
const url = queryParams ? `${this.baseUrl}?${queryParams}` : this.baseUrl;
|
|
33
|
-
|
|
34
|
-
"operationName": "privateGetList"
|
|
35
|
-
};
|
|
36
|
-
return await this.httpRequest.post(url, null, headers);
|
|
31
|
+
return await this.httpRequest.get(url);
|
|
37
32
|
}
|
|
38
33
|
};
|
|
39
34
|
CountriesBusinessApi = __decorate([
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export interface CountriesGetListRequest {
|
|
2
2
|
index?: string;
|
|
3
3
|
pageSize?: number;
|
|
4
|
-
filter1?:
|
|
5
|
-
filter2?:
|
|
6
|
-
filter3?:
|
|
7
|
-
filter4?:
|
|
8
|
-
filter5?:
|
|
9
|
-
filter6?:
|
|
10
|
-
filter7?:
|
|
11
|
-
filter8?:
|
|
12
|
-
filter9?:
|
|
13
|
-
filter10?:
|
|
4
|
+
filter1?: boolean;
|
|
5
|
+
filter2?: boolean;
|
|
6
|
+
filter3?: boolean;
|
|
7
|
+
filter4?: boolean;
|
|
8
|
+
filter5?: boolean;
|
|
9
|
+
filter6?: boolean;
|
|
10
|
+
filter7?: boolean;
|
|
11
|
+
filter8?: boolean;
|
|
12
|
+
filter9?: boolean;
|
|
13
|
+
filter10?: boolean;
|
|
14
14
|
isEnabled?: boolean;
|
|
15
15
|
iso2?: string;
|
|
16
16
|
iso3?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.35",
|
|
4
4
|
"description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a través de invocaciones http",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
@@ -10,10 +10,8 @@ export default class CountriesBusinessApi implements ICountriesBusinessApi {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
async getAll(): Promise<any> {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
return await this.httpRequest.post(this.baseUrl, null, headers);
|
|
13
|
+
const url = `${this.baseUrl}all`;
|
|
14
|
+
return await this.httpRequest.get(url);
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
async getList(params: CountriesGetListRequest): Promise<any> {
|
|
@@ -23,9 +21,6 @@ export default class CountriesBusinessApi implements ICountriesBusinessApi {
|
|
|
23
21
|
.join('&');
|
|
24
22
|
|
|
25
23
|
const url = queryParams ? `${this.baseUrl}?${queryParams}` : this.baseUrl;
|
|
26
|
-
|
|
27
|
-
"operationName": "privateGetList"
|
|
28
|
-
}
|
|
29
|
-
return await this.httpRequest.post(url, null, headers);
|
|
24
|
+
return await this.httpRequest.get(url);
|
|
30
25
|
}
|
|
31
26
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export interface CountriesGetListRequest {
|
|
2
2
|
index?: string;
|
|
3
3
|
pageSize?: number;
|
|
4
|
-
filter1?:
|
|
5
|
-
filter2?:
|
|
6
|
-
filter3?:
|
|
7
|
-
filter4?:
|
|
8
|
-
filter5?:
|
|
9
|
-
filter6?:
|
|
10
|
-
filter7?:
|
|
11
|
-
filter8?:
|
|
12
|
-
filter9?:
|
|
13
|
-
filter10?:
|
|
4
|
+
filter1?: boolean;
|
|
5
|
+
filter2?: boolean;
|
|
6
|
+
filter3?: boolean;
|
|
7
|
+
filter4?: boolean;
|
|
8
|
+
filter5?: boolean;
|
|
9
|
+
filter6?: boolean;
|
|
10
|
+
filter7?: boolean;
|
|
11
|
+
filter8?: boolean;
|
|
12
|
+
filter9?: boolean;
|
|
13
|
+
filter10?: boolean;
|
|
14
14
|
isEnabled?: boolean;
|
|
15
15
|
iso2?: string;
|
|
16
16
|
iso3?: string;
|