@fiado/api-invoker 1.3.3 → 1.3.4
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IHttpRequest } from "@fiado/http-client";
|
|
2
2
|
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
3
3
|
import { IPriceListApi } from "./interfaces/IPriceListApi";
|
|
4
|
-
import {
|
|
4
|
+
import { GetDiscountByServiceIdAndDirectoriesResponse, GetServiceMembershipListResponse } from "@fiado/type-kit/bin/pricelist";
|
|
5
5
|
export declare class PriceListApi implements IPriceListApi {
|
|
6
6
|
private httpRequest;
|
|
7
7
|
private readonly baseUrl;
|
|
@@ -11,5 +11,5 @@ export declare class PriceListApi implements IPriceListApi {
|
|
|
11
11
|
index?: string;
|
|
12
12
|
serviceId?: string;
|
|
13
13
|
}): Promise<FiadoApiResponse<GetServiceMembershipListResponse>>;
|
|
14
|
-
getDiscountByServiceIdAndDirectories(directories: string[], serviceId: string): Promise<FiadoApiResponse<
|
|
14
|
+
getDiscountByServiceIdAndDirectories(directories: string[], serviceId: string): Promise<FiadoApiResponse<GetDiscountByServiceIdAndDirectoriesResponse>>;
|
|
15
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
2
|
-
import {
|
|
2
|
+
import { GetDiscountByServiceIdAndDirectoriesResponse, GetServiceMembershipListResponse } from "@fiado/type-kit/bin/pricelist";
|
|
3
3
|
/**
|
|
4
4
|
* Interfaz para el servicio Directory que permite operaciones sobre directorios.
|
|
5
5
|
*/
|
|
@@ -9,7 +9,7 @@ export interface IPriceListApi {
|
|
|
9
9
|
* @param categoryId ID de la categoria.
|
|
10
10
|
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
11
11
|
*/
|
|
12
|
-
getDiscountByServiceIdAndDirectories(directories: string[], serviceId: string): Promise<FiadoApiResponse<
|
|
12
|
+
getDiscountByServiceIdAndDirectories(directories: string[], serviceId: string): Promise<FiadoApiResponse<GetDiscountByServiceIdAndDirectoriesResponse>>;
|
|
13
13
|
getList(params: {
|
|
14
14
|
pageSize?: number;
|
|
15
15
|
index?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
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",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@fiado/gateway-adapter": "^1.1.40",
|
|
17
17
|
"@fiado/http-client": "^1.0.5",
|
|
18
18
|
"@fiado/logger": "^1.0.3",
|
|
19
|
-
"@fiado/type-kit": "^1.8.
|
|
19
|
+
"@fiado/type-kit": "^1.8.73",
|
|
20
20
|
"dotenv": "^16.4.7",
|
|
21
21
|
"inversify": "^6.2.2",
|
|
22
22
|
"reflect-metadata": "^0.2.2"
|
|
@@ -3,7 +3,7 @@ import { IHttpRequest } from "@fiado/http-client";
|
|
|
3
3
|
import dotenv from 'dotenv';
|
|
4
4
|
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
5
5
|
import { IPriceListApi } from "./interfaces/IPriceListApi";
|
|
6
|
-
import {
|
|
6
|
+
import { GetDiscountByServiceIdAndDirectoriesResponse, GetServiceMembershipListResponse } from "@fiado/type-kit/bin/pricelist";
|
|
7
7
|
|
|
8
8
|
dotenv.config();
|
|
9
9
|
|
|
@@ -32,7 +32,7 @@ export class PriceListApi implements IPriceListApi {
|
|
|
32
32
|
return await this.httpRequest.get(`${url}`);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
async getDiscountByServiceIdAndDirectories(directories: string[], serviceId: string): Promise<FiadoApiResponse<
|
|
35
|
+
async getDiscountByServiceIdAndDirectories(directories: string[], serviceId: string): Promise<FiadoApiResponse<GetDiscountByServiceIdAndDirectoriesResponse>> {
|
|
36
36
|
|
|
37
37
|
const queryParams = []
|
|
38
38
|
directories.forEach(directory => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
2
|
-
import {
|
|
2
|
+
import { GetDiscountByServiceIdAndDirectoriesResponse, GetServiceMembershipListResponse } from "@fiado/type-kit/bin/pricelist";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Interfaz para el servicio Directory que permite operaciones sobre directorios.
|
|
@@ -11,6 +11,6 @@ export interface IPriceListApi {
|
|
|
11
11
|
* @param categoryId ID de la categoria.
|
|
12
12
|
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
13
13
|
*/
|
|
14
|
-
getDiscountByServiceIdAndDirectories(directories:string[], serviceId:string): Promise<FiadoApiResponse<
|
|
14
|
+
getDiscountByServiceIdAndDirectories(directories:string[], serviceId:string): Promise<FiadoApiResponse<GetDiscountByServiceIdAndDirectoriesResponse>>;
|
|
15
15
|
getList(params: {pageSize?: number;index?: string;serviceId?: string;}): Promise<FiadoApiResponse<GetServiceMembershipListResponse>>;
|
|
16
16
|
}
|