@fiado/api-invoker 1.1.81 → 1.1.83

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.
@@ -10,4 +10,5 @@ export declare class CardApi implements ICardApi {
10
10
  getById(id: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
11
11
  getByExternalId(externalId: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
12
12
  evaluateAccountLevelUpdate(directoryId: string): Promise<void>;
13
+ findCardIssuanceByIds(directoryIds: string[]): Promise<ApiGatewayResponse<any>>;
13
14
  }
@@ -31,6 +31,11 @@ let CardApi = class CardApi {
31
31
  const url = `${this.baseUrl}accounts/levels`;
32
32
  await this.httpRequest.post(url, { directoryId });
33
33
  }
34
+ async findCardIssuanceByIds(directoryIds) {
35
+ const queryparams = directoryIds.map((directoryId) => `directoryId=${directoryId}`).join("&");
36
+ const url = `${this.baseUrl}?${queryparams}`;
37
+ return await this.httpRequest.get(url);
38
+ }
34
39
  };
35
40
  exports.CardApi = CardApi;
36
41
  exports.CardApi = CardApi = __decorate([
@@ -4,4 +4,5 @@ import { CountryId } from "@fiado/type-kit/bin/country";
4
4
  export interface ICardApi {
5
5
  getById(id: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
6
6
  getByExternalId(externalId: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
7
+ findCardIssuanceByIds(directoryIds: string[]): Promise<ApiGatewayResponse<any>>;
7
8
  }
@@ -51,8 +51,8 @@ let IdentityApi = class IdentityApi {
51
51
  throw new Error("Directory ID is required.");
52
52
  }
53
53
  const url = `${this.baseUrl}identities/profile?directoryId=${directoryId}&typeOfDirectoryId=USER`;
54
- const operationName = "getUserInfoByIds";
55
- return await this.httpRequest.get(url, { 'operationName': operationName });
54
+ // const operationName = "getUserInfoByIds";
55
+ return await this.httpRequest.get(url);
56
56
  }
57
57
  };
58
58
  exports.IdentityApi = IdentityApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.1.81",
3
+ "version": "1.1.83",
4
4
  "description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a traves de invocaciones http",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -30,6 +30,15 @@ export class CardApi implements ICardApi {
30
30
  const url = `${this.baseUrl}accounts/levels`
31
31
  await this.httpRequest.post(url, { directoryId });
32
32
  }
33
+
34
+ async findCardIssuanceByIds(directoryIds: string[]): Promise<ApiGatewayResponse<any>> {
35
+
36
+ const queryparams = directoryIds.map((directoryId) => `directoryId=${directoryId}`).join("&");
37
+
38
+ const url = `${this.baseUrl}?${queryparams}`;
39
+
40
+ return await this.httpRequest.get(url);
41
+ }
33
42
  }
34
43
 
35
44
 
@@ -6,6 +6,8 @@ export interface ICardApi {
6
6
 
7
7
  getById(id: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
8
8
 
9
- getByExternalId(externalId: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>
9
+ getByExternalId(externalId: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
10
+
11
+ findCardIssuanceByIds(directoryIds: string[]): Promise<ApiGatewayResponse<any>>;
10
12
 
11
13
  }
@@ -53,9 +53,9 @@ export class IdentityApi implements IIdentityApi {
53
53
  }
54
54
 
55
55
  const url = `${this.baseUrl}identities/profile?directoryId=${directoryId}&typeOfDirectoryId=USER`;
56
- const operationName = "getUserInfoByIds";
56
+ // const operationName = "getUserInfoByIds";
57
57
 
58
- return await this.httpRequest.get<any>(url, { 'operationName': operationName });
58
+ return await this.httpRequest.get<any>(url);
59
59
 
60
60
  }
61
61
  }