@fiado/api-invoker 5.68.0 → 5.70.0
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/identity/IdentityApi.d.ts +2 -1
- package/bin/identity/IdentityApi.js +7 -0
- package/bin/identity/interfaces/IIdentityApi.d.ts +3 -1
- package/bin/remittance-business/api/RemittanceBusinessApi.d.ts +2 -1
- package/bin/remittance-business/api/RemittanceBusinessApi.js +4 -0
- package/bin/remittance-business/api/interfaces/IRemittanceBusinessApi.d.ts +3 -1
- package/package.json +2 -2
- package/src/identity/IdentityApi.ts +9 -1
- package/src/identity/interfaces/IIdentityApi.ts +3 -1
- package/src/remittance-business/api/RemittanceBusinessApi.ts +6 -0
- package/src/remittance-business/api/interfaces/IRemittanceBusinessApi.ts +3 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IIdentityApi } from "./interfaces/IIdentityApi.js";
|
|
2
2
|
import { LegacyApiResponse } from "./interfaces/LegacyApiResponse.js";
|
|
3
3
|
import type { IHttpRequest } from "@fiado/http-client";
|
|
4
|
-
import { PeopleUpdateRequest, UploadDocumentRequest, PeopleResponse, PeopleSelfVerifiedRequest, AgentDocumentKeyResponse, DocumentUploadResponse, PeopleSelfieResponse } from "@fiado/type-kit/bin/identity/index.js";
|
|
4
|
+
import { PeopleUpdateRequest, UploadDocumentRequest, PeopleResponse, PeopleSelfVerifiedRequest, AgentDocumentKeyResponse, DocumentUploadResponse, PeopleSelfieResponse, PeopleIdPhotoResponse } from "@fiado/type-kit/bin/identity/index.js";
|
|
5
5
|
export declare class IdentityApi implements IIdentityApi {
|
|
6
6
|
private httpRequest;
|
|
7
7
|
private readonly baseUrl;
|
|
@@ -21,4 +21,5 @@ export declare class IdentityApi implements IIdentityApi {
|
|
|
21
21
|
privateSearchPeople(fullName: string): Promise<LegacyApiResponse<PeopleResponse[]>>;
|
|
22
22
|
privateUpdatePeople(directoryId: string, data: PeopleUpdateRequest): Promise<LegacyApiResponse<unknown>>;
|
|
23
23
|
privateGetPeopleSelfie(directoryId: string): Promise<LegacyApiResponse<PeopleSelfieResponse>>;
|
|
24
|
+
privateGetPeopleIdPhoto(directoryId: string): Promise<LegacyApiResponse<PeopleIdPhotoResponse>>;
|
|
24
25
|
}
|
|
@@ -130,6 +130,13 @@ let IdentityApi = class IdentityApi {
|
|
|
130
130
|
const url = `${this.baseUrl}identities/private/people/${encodeURIComponent(directoryId)}/selfie`;
|
|
131
131
|
return await this.httpRequest.get(url);
|
|
132
132
|
}
|
|
133
|
+
async privateGetPeopleIdPhoto(directoryId) {
|
|
134
|
+
if (!directoryId) {
|
|
135
|
+
throw new Error('Directory ID is required.');
|
|
136
|
+
}
|
|
137
|
+
const url = `${this.baseUrl}identities/private/people/${encodeURIComponent(directoryId)}/id-photo`;
|
|
138
|
+
return await this.httpRequest.get(url);
|
|
139
|
+
}
|
|
133
140
|
};
|
|
134
141
|
IdentityApi = __decorate([
|
|
135
142
|
injectable(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PeopleUpdateRequest, UploadDocumentRequest, PeopleResponse, PeopleSelfVerifiedRequest, AgentDocumentKeyResponse, DocumentUploadResponse, PeopleSelfieResponse } from "@fiado/type-kit/bin/identity/index.js";
|
|
1
|
+
import { PeopleUpdateRequest, UploadDocumentRequest, PeopleResponse, PeopleSelfVerifiedRequest, AgentDocumentKeyResponse, DocumentUploadResponse, PeopleSelfieResponse, PeopleIdPhotoResponse } from "@fiado/type-kit/bin/identity/index.js";
|
|
2
2
|
import { LegacyApiResponse } from "./LegacyApiResponse.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interfaz para el servicio Directory que permite operaciones sobre directorios.
|
|
@@ -50,4 +50,6 @@ export interface IIdentityApi {
|
|
|
50
50
|
privateUpdatePeople(directoryId: string, data: PeopleUpdateRequest): Promise<LegacyApiResponse<unknown>>;
|
|
51
51
|
/** Selfie del KYC del usuario: URL presignado de S3 (el userPhotoLink del facematch) + vigencia. */
|
|
52
52
|
privateGetPeopleSelfie(directoryId: string): Promise<LegacyApiResponse<PeopleSelfieResponse>>;
|
|
53
|
+
/** Frente de la identificación del usuario: URL presignado de S3 + vigencia. Gemelo del de la selfie. */
|
|
54
|
+
privateGetPeopleIdPhoto(directoryId: string): Promise<LegacyApiResponse<PeopleIdPhotoResponse>>;
|
|
53
55
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IHttpRequest } from "@fiado/http-client";
|
|
2
2
|
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
3
|
-
import { PricingResolveRequest, PricingResolveResponse, PricingScheduleRequest, PricingScheduleResponse, RemittanceCountryCarouselItem } from "@fiado/type-kit/bin/remittance/index.js";
|
|
3
|
+
import { PricingResolveRequest, PricingResolveResponse, PricingScheduleRequest, PricingScheduleResponse, RemittanceCountryCarouselItem, RemittancePayerConfigEntry } from "@fiado/type-kit/bin/remittance/index.js";
|
|
4
4
|
import { IRemittanceBusinessApi } from "./interfaces/IRemittanceBusinessApi.js";
|
|
5
5
|
export default class RemittanceBusinessApi implements IRemittanceBusinessApi {
|
|
6
6
|
private httpRequest;
|
|
@@ -9,4 +9,5 @@ export default class RemittanceBusinessApi implements IRemittanceBusinessApi {
|
|
|
9
9
|
pricingResolve(request: PricingResolveRequest): Promise<ApiGatewayResponse<PricingResolveResponse>>;
|
|
10
10
|
pricingSchedule(request: PricingScheduleRequest): Promise<ApiGatewayResponse<PricingScheduleResponse>>;
|
|
11
11
|
getCountryCarousel(): Promise<ApiGatewayResponse<RemittanceCountryCarouselItem[]>>;
|
|
12
|
+
getPayersConfig(): Promise<ApiGatewayResponse<RemittancePayerConfigEntry[]>>;
|
|
12
13
|
}
|
|
@@ -29,6 +29,10 @@ let RemittanceBusinessApi = class RemittanceBusinessApi {
|
|
|
29
29
|
const url = `${this.baseUrl}/private/countries/carousel`;
|
|
30
30
|
return await this.httpRequest.get(url);
|
|
31
31
|
}
|
|
32
|
+
async getPayersConfig() {
|
|
33
|
+
const url = `${this.baseUrl}/private/payers/config`;
|
|
34
|
+
return await this.httpRequest.get(url);
|
|
35
|
+
}
|
|
32
36
|
};
|
|
33
37
|
RemittanceBusinessApi = __decorate([
|
|
34
38
|
injectable(),
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
2
|
-
import { PricingResolveRequest, PricingResolveResponse, PricingScheduleRequest, PricingScheduleResponse, RemittanceCountryCarouselItem } from "@fiado/type-kit/bin/remittance/index.js";
|
|
2
|
+
import { PricingResolveRequest, PricingResolveResponse, PricingScheduleRequest, PricingScheduleResponse, RemittanceCountryCarouselItem, RemittancePayerConfigEntry } from "@fiado/type-kit/bin/remittance/index.js";
|
|
3
3
|
export interface IRemittanceBusinessApi {
|
|
4
4
|
pricingResolve(request: PricingResolveRequest): Promise<ApiGatewayResponse<PricingResolveResponse>>;
|
|
5
5
|
/** Schedule de tramos de service fee + promo automática por corredor (F2 app). POST /private/pricing/schedule. */
|
|
6
6
|
pricingSchedule(request: PricingScheduleRequest): Promise<ApiGatewayResponse<PricingScheduleResponse>>;
|
|
7
7
|
/** Carrusel de países (enabled-only, ya ordenado) para la app. GET /private/countries/carousel. */
|
|
8
8
|
getCountryCarousel(): Promise<ApiGatewayResponse<RemittanceCountryCarouselItem[]>>;
|
|
9
|
+
/** Config de payers (enabled + override de nombre) para mergear al servir el catálogo. GET /private/payers/config. */
|
|
10
|
+
getPayersConfig(): Promise<ApiGatewayResponse<RemittancePayerConfigEntry[]>>;
|
|
9
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.70.0",
|
|
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
|
"type": "module",
|
|
6
6
|
"main": "bin/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@fiado/gateway-adapter": "^3.9.0",
|
|
35
35
|
"@fiado/http-client": "^2.0.1",
|
|
36
36
|
"@fiado/logger": "^1.1.3",
|
|
37
|
-
"@fiado/type-kit": "^3.
|
|
37
|
+
"@fiado/type-kit": "^3.407.0",
|
|
38
38
|
"dotenv": "^16.4.7"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
@@ -6,7 +6,7 @@ import dotenv from 'dotenv';
|
|
|
6
6
|
import {
|
|
7
7
|
PeopleUpdateRequest, UploadDocumentRequest, PeopleResponse,
|
|
8
8
|
PeopleSelfVerifiedRequest, AgentDocumentKeyResponse, DocumentUploadResponse,
|
|
9
|
-
PeopleSelfieResponse,
|
|
9
|
+
PeopleSelfieResponse, PeopleIdPhotoResponse,
|
|
10
10
|
} from "@fiado/type-kit/bin/identity/index.js";
|
|
11
11
|
|
|
12
12
|
dotenv.config();
|
|
@@ -160,4 +160,12 @@ export class IdentityApi implements IIdentityApi {
|
|
|
160
160
|
const url = `${this.baseUrl}identities/private/people/${encodeURIComponent(directoryId)}/selfie`;
|
|
161
161
|
return await this.httpRequest.get<LegacyApiResponse<PeopleSelfieResponse>>(url);
|
|
162
162
|
}
|
|
163
|
+
|
|
164
|
+
async privateGetPeopleIdPhoto(directoryId: string): Promise<LegacyApiResponse<PeopleIdPhotoResponse>> {
|
|
165
|
+
if (!directoryId) {
|
|
166
|
+
throw new Error('Directory ID is required.');
|
|
167
|
+
}
|
|
168
|
+
const url = `${this.baseUrl}identities/private/people/${encodeURIComponent(directoryId)}/id-photo`;
|
|
169
|
+
return await this.httpRequest.get<LegacyApiResponse<PeopleIdPhotoResponse>>(url);
|
|
170
|
+
}
|
|
163
171
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PeopleUpdateRequest, UploadDocumentRequest, PeopleResponse,
|
|
3
3
|
PeopleSelfVerifiedRequest, AgentDocumentKeyResponse, DocumentUploadResponse,
|
|
4
|
-
PeopleSelfieResponse,
|
|
4
|
+
PeopleSelfieResponse, PeopleIdPhotoResponse,
|
|
5
5
|
} from "@fiado/type-kit/bin/identity/index.js";
|
|
6
6
|
import { LegacyApiResponse } from "./LegacyApiResponse.js";
|
|
7
7
|
|
|
@@ -66,4 +66,6 @@ export interface IIdentityApi {
|
|
|
66
66
|
privateUpdatePeople(directoryId: string, data: PeopleUpdateRequest): Promise<LegacyApiResponse<unknown>>;
|
|
67
67
|
/** Selfie del KYC del usuario: URL presignado de S3 (el userPhotoLink del facematch) + vigencia. */
|
|
68
68
|
privateGetPeopleSelfie(directoryId: string): Promise<LegacyApiResponse<PeopleSelfieResponse>>;
|
|
69
|
+
/** Frente de la identificación del usuario: URL presignado de S3 + vigencia. Gemelo del de la selfie. */
|
|
70
|
+
privateGetPeopleIdPhoto(directoryId: string): Promise<LegacyApiResponse<PeopleIdPhotoResponse>>;
|
|
69
71
|
}
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
PricingScheduleRequest,
|
|
8
8
|
PricingScheduleResponse,
|
|
9
9
|
RemittanceCountryCarouselItem,
|
|
10
|
+
RemittancePayerConfigEntry,
|
|
10
11
|
} from "@fiado/type-kit/bin/remittance/index.js";
|
|
11
12
|
import { IRemittanceBusinessApi } from "./interfaces/IRemittanceBusinessApi.js";
|
|
12
13
|
|
|
@@ -30,4 +31,9 @@ export default class RemittanceBusinessApi implements IRemittanceBusinessApi {
|
|
|
30
31
|
const url = `${this.baseUrl}/private/countries/carousel`;
|
|
31
32
|
return await this.httpRequest.get(url);
|
|
32
33
|
}
|
|
34
|
+
|
|
35
|
+
async getPayersConfig(): Promise<ApiGatewayResponse<RemittancePayerConfigEntry[]>> {
|
|
36
|
+
const url = `${this.baseUrl}/private/payers/config`;
|
|
37
|
+
return await this.httpRequest.get(url);
|
|
38
|
+
}
|
|
33
39
|
}
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
PricingScheduleRequest,
|
|
6
6
|
PricingScheduleResponse,
|
|
7
7
|
RemittanceCountryCarouselItem,
|
|
8
|
+
RemittancePayerConfigEntry,
|
|
8
9
|
} from "@fiado/type-kit/bin/remittance/index.js";
|
|
9
10
|
|
|
10
11
|
export interface IRemittanceBusinessApi {
|
|
@@ -13,4 +14,6 @@ export interface IRemittanceBusinessApi {
|
|
|
13
14
|
pricingSchedule(request: PricingScheduleRequest): Promise<ApiGatewayResponse<PricingScheduleResponse>>;
|
|
14
15
|
/** Carrusel de países (enabled-only, ya ordenado) para la app. GET /private/countries/carousel. */
|
|
15
16
|
getCountryCarousel(): Promise<ApiGatewayResponse<RemittanceCountryCarouselItem[]>>;
|
|
17
|
+
/** Config de payers (enabled + override de nombre) para mergear al servir el catálogo. GET /private/payers/config. */
|
|
18
|
+
getPayersConfig(): Promise<ApiGatewayResponse<RemittancePayerConfigEntry[]>>;
|
|
16
19
|
}
|