@fiado/api-invoker 4.68.0 → 4.71.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/activity-business/ActivityApi.d.ts +5 -0
- package/bin/activity-business/ActivityApi.js +4 -0
- package/bin/activity-business/interfaces/IActivityApi.d.ts +10 -0
- package/bin/address/AddressApi.d.ts +5 -0
- package/bin/address/AddressApi.js +4 -0
- package/bin/address/interfaces/IAddressApi.d.ts +10 -0
- package/bin/auth-business/AuthBusinessApi.d.ts +12 -0
- package/bin/auth-business/AuthBusinessApi.js +32 -0
- package/bin/auth-business/index.d.ts +2 -0
- package/bin/auth-business/index.js +2 -0
- package/bin/auth-business/interfaces/IAuthBusinessApi.d.ts +15 -0
- package/bin/auth-business/interfaces/IAuthBusinessApi.js +1 -0
- package/bin/bankAccount/BankAccountApi.d.ts +3 -0
- package/bin/bankAccount/BankAccountApi.js +4 -0
- package/bin/bankAccount/interfaces/IBankAccountApi.d.ts +10 -0
- package/bin/beneficiary/BeneficiaryApi.d.ts +12 -0
- package/bin/beneficiary/BeneficiaryApi.js +32 -0
- package/bin/beneficiary/index.d.ts +2 -0
- package/bin/beneficiary/index.js +2 -0
- package/bin/beneficiary/interfaces/IBeneficiaryApi.d.ts +15 -0
- package/bin/beneficiary/interfaces/IBeneficiaryApi.js +1 -0
- package/bin/contactInformation/ContactInformationApi.d.ts +5 -0
- package/bin/contactInformation/ContactInformationApi.js +4 -0
- package/bin/contactInformation/interface/IContactInformationApi.d.ts +10 -0
- package/bin/container.config.js +15 -0
- package/bin/directorySetting/DirectorySettingApi.d.ts +3 -0
- package/bin/directorySetting/DirectorySettingApi.js +4 -0
- package/bin/directorySetting/interfaces/IDirectorySettingApi.d.ts +8 -0
- package/bin/group/GroupApi.d.ts +3 -0
- package/bin/group/GroupApi.js +4 -0
- package/bin/group/interfaces/IGroupApi.d.ts +8 -0
- package/bin/index.d.ts +8 -0
- package/bin/index.js +8 -0
- package/bin/membership/MembershipApi.d.ts +12 -0
- package/bin/membership/MembershipApi.js +32 -0
- package/bin/membership/index.d.ts +2 -0
- package/bin/membership/index.js +2 -0
- package/bin/membership/interfaces/IMembershipApi.d.ts +15 -0
- package/bin/membership/interfaces/IMembershipApi.js +1 -0
- package/bin/notificationWebsockets/NotificationWebsocketApi.d.ts +12 -0
- package/bin/notificationWebsockets/NotificationWebsocketApi.js +32 -0
- package/bin/notificationWebsockets/index.d.ts +2 -0
- package/bin/notificationWebsockets/index.js +2 -0
- package/bin/notificationWebsockets/interfaces/INotificationWebsocketApi.d.ts +15 -0
- package/bin/notificationWebsockets/interfaces/INotificationWebsocketApi.js +1 -0
- package/bin/performance-profile/PerformanceProfileApi.d.ts +12 -0
- package/bin/performance-profile/PerformanceProfileApi.js +32 -0
- package/bin/performance-profile/index.d.ts +2 -0
- package/bin/performance-profile/index.js +2 -0
- package/bin/performance-profile/interfaces/IPerformanceProfileApi.d.ts +15 -0
- package/bin/performance-profile/interfaces/IPerformanceProfileApi.js +1 -0
- package/bin/places-business/api/PlacesBusinessApi.d.ts +12 -0
- package/bin/places-business/api/PlacesBusinessApi.js +32 -0
- package/bin/places-business/api/interfaces/IPlacesBusinessApi.d.ts +9 -0
- package/bin/places-business/api/interfaces/IPlacesBusinessApi.js +1 -0
- package/bin/places-business/index.d.ts +2 -0
- package/bin/places-business/index.js +2 -0
- package/bin/presence-websocket/PresenceWebsocketApi.d.ts +12 -0
- package/bin/presence-websocket/PresenceWebsocketApi.js +32 -0
- package/bin/presence-websocket/index.d.ts +2 -0
- package/bin/presence-websocket/index.js +2 -0
- package/bin/presence-websocket/interfaces/IPresenceWebsocketApi.d.ts +15 -0
- package/bin/presence-websocket/interfaces/IPresenceWebsocketApi.js +1 -0
- package/bin/retailCustomer/api/RetailCustomerBusinessApi.d.ts +27 -0
- package/bin/retailCustomer/api/RetailCustomerBusinessApi.js +56 -0
- package/bin/retailCustomer/api/interfaces/IRetailCustomerBusinessApi.d.ts +76 -0
- package/bin/retailCustomer/api/interfaces/IRetailCustomerBusinessApi.js +1 -0
- package/bin/retailCustomer/index.d.ts +2 -0
- package/bin/retailCustomer/index.js +2 -0
- package/bin/riskProfile/api/RiskProfileApi.d.ts +4 -0
- package/bin/riskProfile/api/RiskProfileApi.js +4 -0
- package/bin/riskProfile/api/interfaces/IRiskProfileApi.d.ts +9 -0
- package/bin/zendesk/ZendeskApi.d.ts +3 -0
- package/bin/zendesk/ZendeskApi.js +4 -0
- package/bin/zendesk/interfaces/IZendeskApi.d.ts +8 -0
- package/package.json +2 -2
- package/src/activity-business/ActivityApi.ts +6 -0
- package/src/activity-business/interfaces/IActivityApi.ts +9 -1
- package/src/address/AddressApi.ts +6 -0
- package/src/address/interfaces/IAddressApi.ts +10 -1
- package/src/auth-business/AuthBusinessApi.ts +20 -0
- package/src/auth-business/index.ts +2 -0
- package/src/auth-business/interfaces/IAuthBusinessApi.ts +15 -0
- package/src/bankAccount/BankAccountApi.ts +5 -0
- package/src/bankAccount/interfaces/IBankAccountApi.ts +10 -0
- package/src/beneficiary/BeneficiaryApi.ts +20 -0
- package/src/beneficiary/index.ts +2 -0
- package/src/beneficiary/interfaces/IBeneficiaryApi.ts +15 -0
- package/src/contactInformation/ContactInformationApi.ts +6 -0
- package/src/contactInformation/interface/IContactInformationApi.ts +10 -1
- package/src/container.config.ts +17 -0
- package/src/directorySetting/DirectorySettingApi.ts +5 -0
- package/src/directorySetting/interfaces/IDirectorySettingApi.ts +8 -1
- package/src/group/GroupApi.ts +5 -0
- package/src/group/interfaces/IGroupApi.ts +8 -0
- package/src/index.ts +8 -0
- package/src/membership/MembershipApi.ts +20 -0
- package/src/membership/index.ts +2 -0
- package/src/membership/interfaces/IMembershipApi.ts +15 -0
- package/src/notificationWebsockets/NotificationWebsocketApi.ts +20 -0
- package/src/notificationWebsockets/index.ts +3 -1
- package/src/notificationWebsockets/interfaces/INotificationWebsocketApi.ts +15 -0
- package/src/performance-profile/PerformanceProfileApi.ts +20 -0
- package/src/performance-profile/index.ts +2 -0
- package/src/performance-profile/interfaces/IPerformanceProfileApi.ts +15 -0
- package/src/places-business/api/PlacesBusinessApi.ts +22 -0
- package/src/places-business/api/interfaces/IPlacesBusinessApi.ts +9 -0
- package/src/places-business/index.ts +2 -0
- package/src/presence-websocket/PresenceWebsocketApi.ts +20 -0
- package/src/presence-websocket/index.ts +2 -0
- package/src/presence-websocket/interfaces/IPresenceWebsocketApi.ts +15 -0
- package/src/retailCustomer/api/RetailCustomerBusinessApi.ts +63 -0
- package/src/retailCustomer/api/interfaces/IRetailCustomerBusinessApi.ts +97 -0
- package/src/retailCustomer/index.ts +2 -0
- package/src/riskProfile/api/RiskProfileApi.ts +6 -0
- package/src/riskProfile/api/interfaces/IRiskProfileApi.ts +9 -0
- package/src/zendesk/ZendeskApi.ts +5 -0
- package/src/zendesk/interfaces/IZendeskApi.ts +8 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IHttpRequest } from "@fiado/http-client";
|
|
2
2
|
import { IActivityApi } from "./interfaces/IActivityApi.js";
|
|
3
|
+
type FiadoApiResponse<T> = import("@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse.js").default<T>;
|
|
3
4
|
export default class ActivityApi implements IActivityApi {
|
|
4
5
|
private httpRequest;
|
|
5
6
|
private readonly baseUrl;
|
|
@@ -9,4 +10,8 @@ export default class ActivityApi implements IActivityApi {
|
|
|
9
10
|
getActivityByDirectoryId(directoryId: string, typeOfActivityIds: string[], table?: "PRINCIPAL" | "DETAIL"): Promise<any>;
|
|
10
11
|
getActivityById(typeOfActivityIds: string[]): Promise<any>;
|
|
11
12
|
getActivityHistory(typeOfActivity: string, startDate: string, endDate: string): Promise<any>;
|
|
13
|
+
deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
|
|
14
|
+
deletedCount: number;
|
|
15
|
+
}>>;
|
|
12
16
|
}
|
|
17
|
+
export {};
|
|
@@ -39,6 +39,10 @@ let ActivityApi = class ActivityApi {
|
|
|
39
39
|
const url = `${this.baseUrl}activities/history?typeOfActivity=${typeOfActivity}&startDate=${startDate}&endDate=${endDate}`;
|
|
40
40
|
return await this.httpRequest.get(url);
|
|
41
41
|
}
|
|
42
|
+
async deleteByDirectoryId(directoryId) {
|
|
43
|
+
const url = `${this.baseUrl}private/directory/${directoryId}`;
|
|
44
|
+
return await this.httpRequest.delete(url);
|
|
45
|
+
}
|
|
42
46
|
};
|
|
43
47
|
ActivityApi = __decorate([
|
|
44
48
|
injectable(),
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
type FiadoApiResponse<T> = import("@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse.js").default<T>;
|
|
1
2
|
export interface IActivityApi {
|
|
2
3
|
getActivityByDirectoryId(directoryId: string, typeOfActivityIds: string[], table?: "PRINCIPAL" | "DETAIL"): Promise<any>;
|
|
3
4
|
getActivityById(typeOfActivityIds: string[]): Promise<any>;
|
|
4
5
|
getActivityHistory(typeOfActivity: string, startDate: string, endDate: string): Promise<any>;
|
|
5
6
|
findByDirectoriesList(directories: string[]): Promise<any>;
|
|
6
7
|
correctCounters(): Promise<any>;
|
|
8
|
+
/**
|
|
9
|
+
* Borra en cascada las actividades asociadas a un directoryId.
|
|
10
|
+
* @param directoryId ID del directorio.
|
|
11
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
12
|
+
*/
|
|
13
|
+
deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
|
|
14
|
+
deletedCount: number;
|
|
15
|
+
}>>;
|
|
7
16
|
}
|
|
17
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IHttpRequest } from "@fiado/http-client";
|
|
2
2
|
import { AddressCreateRequest, AddressShippingCardResponse } from "@fiado/type-kit/bin/address/index.js";
|
|
3
3
|
import { IAddressApi } from "./interfaces/IAddressApi.js";
|
|
4
|
+
type FiadoApiResponse<T> = import("@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse.js").default<T>;
|
|
4
5
|
export declare class AddressApi implements IAddressApi {
|
|
5
6
|
private httpRequest;
|
|
6
7
|
private readonly baseUrl;
|
|
@@ -8,6 +9,10 @@ export declare class AddressApi implements IAddressApi {
|
|
|
8
9
|
getByDirectoryId(directoryId: string): Promise<any>;
|
|
9
10
|
create(directoryId: string, address: AddressCreateRequest): Promise<void>;
|
|
10
11
|
getAddressLocationShipping(directoryId: string): Promise<AddressShippingCardResponse>;
|
|
12
|
+
deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
|
|
13
|
+
deletedCount: number;
|
|
14
|
+
}>>;
|
|
11
15
|
private validateBaseUrl;
|
|
12
16
|
private validateDirectoryId;
|
|
13
17
|
}
|
|
18
|
+
export {};
|
|
@@ -34,6 +34,10 @@ let AddressApi = class AddressApi {
|
|
|
34
34
|
const url = `${this.baseUrl}shipping`;
|
|
35
35
|
return await this.httpRequest.post(url, { directoryId });
|
|
36
36
|
}
|
|
37
|
+
async deleteByDirectoryId(directoryId) {
|
|
38
|
+
const url = `${this.baseUrl}private/directory/${directoryId}`;
|
|
39
|
+
return await this.httpRequest.delete(url);
|
|
40
|
+
}
|
|
37
41
|
validateBaseUrl() {
|
|
38
42
|
if (!this.baseUrl) {
|
|
39
43
|
throw new Error("Environment variable ADDRESS_LAMBDA_URL value not found");
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AddressCreateRequest, AddressResponse, AddressShippingCardResponse } from "@fiado/type-kit/bin/address/index.js";
|
|
2
|
+
type FiadoApiResponse<T> = import("@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse.js").default<T>;
|
|
2
3
|
export interface IAddressApi {
|
|
3
4
|
/**
|
|
4
5
|
* Obtiene una lista de direcciones por su ID de directorio.
|
|
@@ -23,4 +24,13 @@ export interface IAddressApi {
|
|
|
23
24
|
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
24
25
|
*/
|
|
25
26
|
getAddressLocationShipping(directoryId: string): Promise<AddressShippingCardResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Borra en cascada las direcciones asociadas a un directoryId.
|
|
29
|
+
* @param directoryId ID del directorio.
|
|
30
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
31
|
+
*/
|
|
32
|
+
deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
|
|
33
|
+
deletedCount: number;
|
|
34
|
+
}>>;
|
|
26
35
|
}
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IHttpRequest } from "@fiado/http-client";
|
|
2
|
+
import { IAuthBusinessApi } from "./interfaces/IAuthBusinessApi.js";
|
|
3
|
+
type FiadoApiResponse<T> = import("@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse.js").default<T>;
|
|
4
|
+
export declare class AuthBusinessApi implements IAuthBusinessApi {
|
|
5
|
+
private httpRequest;
|
|
6
|
+
private readonly baseUrl;
|
|
7
|
+
constructor(httpRequest: IHttpRequest);
|
|
8
|
+
deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
|
|
9
|
+
deletedCount: number;
|
|
10
|
+
}>>;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { inject, injectable } from "inversify";
|
|
14
|
+
import dotenv from 'dotenv';
|
|
15
|
+
dotenv.config();
|
|
16
|
+
let AuthBusinessApi = class AuthBusinessApi {
|
|
17
|
+
httpRequest;
|
|
18
|
+
baseUrl = process.env.AUTH_BUSINESS_LAMBDA_URL || "";
|
|
19
|
+
constructor(httpRequest) {
|
|
20
|
+
this.httpRequest = httpRequest;
|
|
21
|
+
}
|
|
22
|
+
async deleteByDirectoryId(directoryId) {
|
|
23
|
+
const url = `${this.baseUrl}private/directory/${directoryId}`;
|
|
24
|
+
return await this.httpRequest.delete(url);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
AuthBusinessApi = __decorate([
|
|
28
|
+
injectable(),
|
|
29
|
+
__param(0, inject("IHttpRequest")),
|
|
30
|
+
__metadata("design:paramtypes", [Object])
|
|
31
|
+
], AuthBusinessApi);
|
|
32
|
+
export { AuthBusinessApi };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type FiadoApiResponse<T> = import("@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse.js").default<T>;
|
|
2
|
+
/**
|
|
3
|
+
* Interfaz para el servicio Auth Business (auth-business).
|
|
4
|
+
*/
|
|
5
|
+
export interface IAuthBusinessApi {
|
|
6
|
+
/**
|
|
7
|
+
* Borra en cascada los registros de auth asociados a un directoryId.
|
|
8
|
+
* @param directoryId ID del directorio.
|
|
9
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
10
|
+
*/
|
|
11
|
+
deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
|
|
12
|
+
deletedCount: number;
|
|
13
|
+
}>>;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,5 +10,8 @@ export default class BankAccountApi implements IBankAccountApi {
|
|
|
10
10
|
getBankAccountById(bankAccountId: string): Promise<FiadoApiResponse<GetExternalBankAccountResponse>>;
|
|
11
11
|
getBankById(bankId: string): Promise<FiadoApiResponse<GetExternalBankResponse>>;
|
|
12
12
|
getBankByCode(bankCode?: string, shortBankCode?: string): Promise<FiadoApiResponse<GetExternalBankResponse[]>>;
|
|
13
|
+
deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
|
|
14
|
+
deletedCount: number;
|
|
15
|
+
}>>;
|
|
13
16
|
}
|
|
14
17
|
export {};
|
|
@@ -33,6 +33,10 @@ let BankAccountApi = class BankAccountApi {
|
|
|
33
33
|
};
|
|
34
34
|
return await this.httpRequest.get(url, { params });
|
|
35
35
|
}
|
|
36
|
+
async deleteByDirectoryId(directoryId) {
|
|
37
|
+
const url = `${this.baseUrl}/private/directory/${directoryId}`;
|
|
38
|
+
return await this.httpRequest.delete(url);
|
|
39
|
+
}
|
|
36
40
|
};
|
|
37
41
|
BankAccountApi = __decorate([
|
|
38
42
|
injectable(),
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
type FiadoApiResponse<T> = import("@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse.js").default<T>;
|
|
1
2
|
export interface IBankAccountApi {
|
|
2
3
|
getBankAccountById(bankAccountId: string): Promise<any>;
|
|
3
4
|
getBankById(bankId: string): Promise<any>;
|
|
4
5
|
getBankByCode(bankCode?: string, shortBankCode?: string): Promise<any>;
|
|
6
|
+
/**
|
|
7
|
+
* Borra en cascada las cuentas bancarias asociadas a un directoryId.
|
|
8
|
+
* @param directoryId ID del directorio.
|
|
9
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
10
|
+
*/
|
|
11
|
+
deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
|
|
12
|
+
deletedCount: number;
|
|
13
|
+
}>>;
|
|
5
14
|
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IHttpRequest } from "@fiado/http-client";
|
|
2
|
+
import { IBeneficiaryApi } from "./interfaces/IBeneficiaryApi.js";
|
|
3
|
+
type FiadoApiResponse<T> = import("@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse.js").default<T>;
|
|
4
|
+
export declare class BeneficiaryApi implements IBeneficiaryApi {
|
|
5
|
+
private httpRequest;
|
|
6
|
+
private readonly baseUrl;
|
|
7
|
+
constructor(httpRequest: IHttpRequest);
|
|
8
|
+
deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
|
|
9
|
+
deletedCount: number;
|
|
10
|
+
}>>;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { inject, injectable } from "inversify";
|
|
14
|
+
import dotenv from 'dotenv';
|
|
15
|
+
dotenv.config();
|
|
16
|
+
let BeneficiaryApi = class BeneficiaryApi {
|
|
17
|
+
httpRequest;
|
|
18
|
+
baseUrl = process.env.BENEFICIARY_BUSINESS_LAMBDA_URL || "";
|
|
19
|
+
constructor(httpRequest) {
|
|
20
|
+
this.httpRequest = httpRequest;
|
|
21
|
+
}
|
|
22
|
+
async deleteByDirectoryId(directoryId) {
|
|
23
|
+
const url = `${this.baseUrl}private/directory/${directoryId}`;
|
|
24
|
+
return await this.httpRequest.delete(url);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
BeneficiaryApi = __decorate([
|
|
28
|
+
injectable(),
|
|
29
|
+
__param(0, inject("IHttpRequest")),
|
|
30
|
+
__metadata("design:paramtypes", [Object])
|
|
31
|
+
], BeneficiaryApi);
|
|
32
|
+
export { BeneficiaryApi };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type FiadoApiResponse<T> = import("@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse.js").default<T>;
|
|
2
|
+
/**
|
|
3
|
+
* Interfaz para el servicio Beneficiary (beneficiary-business).
|
|
4
|
+
*/
|
|
5
|
+
export interface IBeneficiaryApi {
|
|
6
|
+
/**
|
|
7
|
+
* Borra en cascada los beneficiarios asociados a un directoryId.
|
|
8
|
+
* @param directoryId ID del directorio.
|
|
9
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
10
|
+
*/
|
|
11
|
+
deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
|
|
12
|
+
deletedCount: number;
|
|
13
|
+
}>>;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { ContactInfoCreateRequest } from "@fiado/type-kit/bin/contactInfo/index.js";
|
|
2
2
|
import { IContactInformationApi } from "./interface/IContactInformationApi.js";
|
|
3
3
|
import { IHttpRequest } from "@fiado/http-client";
|
|
4
|
+
type FiadoApiResponse<T> = import("@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse.js").default<T>;
|
|
4
5
|
export declare class ContactInformationApi implements IContactInformationApi {
|
|
5
6
|
private httpRequest;
|
|
6
7
|
private readonly baseUrl;
|
|
7
8
|
constructor(httpRequest: IHttpRequest);
|
|
8
9
|
create(input: ContactInfoCreateRequest): Promise<void>;
|
|
10
|
+
deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
|
|
11
|
+
deletedCount: number;
|
|
12
|
+
}>>;
|
|
9
13
|
}
|
|
14
|
+
export {};
|
|
@@ -21,6 +21,10 @@ let ContactInformationApi = class ContactInformationApi {
|
|
|
21
21
|
const url = `${this.baseUrl}`;
|
|
22
22
|
return await this.httpRequest.post(`${url}`, input);
|
|
23
23
|
}
|
|
24
|
+
async deleteByDirectoryId(directoryId) {
|
|
25
|
+
const url = `${this.baseUrl}private/directory/${directoryId}`;
|
|
26
|
+
return await this.httpRequest.delete(url);
|
|
27
|
+
}
|
|
24
28
|
};
|
|
25
29
|
ContactInformationApi = __decorate([
|
|
26
30
|
__param(0, inject("IHttpRequest")),
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { ContactInfoCreateRequest } from "@fiado/type-kit/bin/contactInfo/index.js";
|
|
2
|
+
type FiadoApiResponse<T> = import("@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse.js").default<T>;
|
|
2
3
|
export interface IContactInformationApi {
|
|
3
4
|
create(input: ContactInfoCreateRequest): Promise<void>;
|
|
5
|
+
/**
|
|
6
|
+
* Borra en cascada los registros asociados a un directoryId.
|
|
7
|
+
* @param directoryId ID del directorio.
|
|
8
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
9
|
+
*/
|
|
10
|
+
deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
|
|
11
|
+
deletedCount: number;
|
|
12
|
+
}>>;
|
|
4
13
|
}
|
|
14
|
+
export {};
|
package/bin/container.config.js
CHANGED
|
@@ -68,6 +68,7 @@ import { EventHistoryApi } from "./event-history-business/index.js";
|
|
|
68
68
|
import ReportProcessorBusinessApi from "./report-processor-business/api/ReportProcessorBusinessApi.js";
|
|
69
69
|
import NotificationWSMessagePublisher from "./notificationWebsockets/queue/NotificationWSMessagePublisher.js";
|
|
70
70
|
import PeopleBusinessApi from "./people-business/api/PeopleBusinessApi.js";
|
|
71
|
+
import PlacesBusinessApi from "./places-business/api/PlacesBusinessApi.js";
|
|
71
72
|
import STPBusinessApi from "./stp-business/api/STPBusinessApi.js";
|
|
72
73
|
import MulticommServicePaymentApi from "./multicommServicePayment/api/MulticommServicePaymentApi.js";
|
|
73
74
|
import ProductPaymentApi from "./product-payment/api/ProductPaymentApi.js";
|
|
@@ -118,6 +119,12 @@ import { WalletFundingRulesApi } from "./wallet-funding-rules/index.js";
|
|
|
118
119
|
import { SnsSesConnectorApi } from "./sns-ses-connector/index.js";
|
|
119
120
|
// Remittance business — pricingResolve (Dashboard Ops Fase B, puente de resolución de precio en send-time)
|
|
120
121
|
import { RemittanceBusinessApi } from "./remittance-business/index.js";
|
|
122
|
+
import { BeneficiaryApi } from "./beneficiary/index.js";
|
|
123
|
+
import { MembershipApi } from "./membership/index.js";
|
|
124
|
+
import { PerformanceProfileApi } from "./performance-profile/index.js";
|
|
125
|
+
import { AuthBusinessApi } from "./auth-business/index.js";
|
|
126
|
+
import { PresenceWebsocketApi } from "./presence-websocket/index.js";
|
|
127
|
+
import { NotificationWebsocketApi } from "./notificationWebsockets/index.js";
|
|
121
128
|
export const apiInvokerBindings = new ContainerModule(({ bind }) => {
|
|
122
129
|
// UTILS bindings
|
|
123
130
|
bind("InvokerUtils").to(InvokerUtils);
|
|
@@ -191,6 +198,7 @@ export const apiInvokerBindings = new ContainerModule(({ bind }) => {
|
|
|
191
198
|
bind("IEventHistoryApi").to(EventHistoryApi);
|
|
192
199
|
bind("IReportProcessorBusinessApi").to(ReportProcessorBusinessApi);
|
|
193
200
|
bind("IPeopleBusinessApi").to(PeopleBusinessApi);
|
|
201
|
+
bind("IPlacesBusinessApi").to(PlacesBusinessApi);
|
|
194
202
|
bind("ISTPBusinessApi").to(STPBusinessApi);
|
|
195
203
|
bind("IProductPaymentApi").to(ProductPaymentApi);
|
|
196
204
|
bind("ICommissionBusinessApi").to(CommissionBusinessApi);
|
|
@@ -249,4 +257,11 @@ export const apiInvokerBindings = new ContainerModule(({ bind }) => {
|
|
|
249
257
|
bind("ISnsSesConnectorApi").to(SnsSesConnectorApi);
|
|
250
258
|
// Remittance business — pricingResolve (Dashboard Ops Fase B, puente de resolución de precio en send-time)
|
|
251
259
|
bind("IRemittanceBusinessApi").to(RemittanceBusinessApi);
|
|
260
|
+
// Borrado en cascada del directorio — deleteByDirectoryId por dominio
|
|
261
|
+
bind("IBeneficiaryApi").to(BeneficiaryApi);
|
|
262
|
+
bind("IMembershipApi").to(MembershipApi);
|
|
263
|
+
bind("IPerformanceProfileApi").to(PerformanceProfileApi);
|
|
264
|
+
bind("IAuthBusinessApi").to(AuthBusinessApi);
|
|
265
|
+
bind("IPresenceWebsocketApi").to(PresenceWebsocketApi);
|
|
266
|
+
bind("INotificationWebsocketApi").to(NotificationWebsocketApi);
|
|
252
267
|
});
|
|
@@ -42,6 +42,10 @@ let DirectorySettingApi = class DirectorySettingApi {
|
|
|
42
42
|
}
|
|
43
43
|
return await this.httpRequest.get(url);
|
|
44
44
|
}
|
|
45
|
+
async deleteByDirectoryId(directoryId) {
|
|
46
|
+
const url = `${this.baseUrl}private/directory/${directoryId}`;
|
|
47
|
+
return await this.httpRequest.delete(url);
|
|
48
|
+
}
|
|
45
49
|
};
|
|
46
50
|
DirectorySettingApi = __decorate([
|
|
47
51
|
injectable(),
|
|
@@ -39,5 +39,13 @@ export interface IDirectorySettingApi {
|
|
|
39
39
|
directoryId: string;
|
|
40
40
|
metadata?: any;
|
|
41
41
|
}>>;
|
|
42
|
+
/**
|
|
43
|
+
* Borra en cascada los settings asociados a un directoryId.
|
|
44
|
+
* @param directoryId ID del directorio.
|
|
45
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
46
|
+
*/
|
|
47
|
+
deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
|
|
48
|
+
deletedCount: number;
|
|
49
|
+
}>>;
|
|
42
50
|
}
|
|
43
51
|
export {};
|
package/bin/group/GroupApi.d.ts
CHANGED
|
@@ -18,5 +18,8 @@ export declare class GroupApi implements IGroupApi {
|
|
|
18
18
|
members(params: GroupAddDirectoryRequest): Promise<any>;
|
|
19
19
|
findById(id: string): Promise<any>;
|
|
20
20
|
findAllWithCounts(): Promise<any>;
|
|
21
|
+
deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
|
|
22
|
+
deletedCount: number;
|
|
23
|
+
}>>;
|
|
21
24
|
}
|
|
22
25
|
export {};
|
package/bin/group/GroupApi.js
CHANGED
|
@@ -64,6 +64,10 @@ let GroupApi = class GroupApi {
|
|
|
64
64
|
const url = `${this.baseUrl}groups/counts`;
|
|
65
65
|
return await this.httpRequest.get(`${url}`);
|
|
66
66
|
}
|
|
67
|
+
async deleteByDirectoryId(directoryId) {
|
|
68
|
+
const url = `${this.baseUrl}private/directory/${directoryId}`;
|
|
69
|
+
return await this.httpRequest.delete(url);
|
|
70
|
+
}
|
|
67
71
|
};
|
|
68
72
|
GroupApi = __decorate([
|
|
69
73
|
injectable(),
|
|
@@ -36,5 +36,13 @@ export interface IGroupApi {
|
|
|
36
36
|
* (GET groups/counts, privado en fiado-group-business).
|
|
37
37
|
*/
|
|
38
38
|
findAllWithCounts(): Promise<FiadoApiResponse<GroupCountsResponse>>;
|
|
39
|
+
/**
|
|
40
|
+
* Borra en cascada los grupos/membresías asociados a un directoryId.
|
|
41
|
+
* @param directoryId ID del directorio.
|
|
42
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
43
|
+
*/
|
|
44
|
+
deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
|
|
45
|
+
deletedCount: number;
|
|
46
|
+
}>>;
|
|
39
47
|
}
|
|
40
48
|
export {};
|
package/bin/index.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export * from "./event-history-business/index.js";
|
|
|
61
61
|
export * from "./report-processor-business/index.js";
|
|
62
62
|
export * from "./notificationWebsockets/index.js";
|
|
63
63
|
export * from "./people-business/index.js";
|
|
64
|
+
export * from "./places-business/index.js";
|
|
64
65
|
export * from "./stp-business/index.js";
|
|
65
66
|
export * from "./multicommServicePayment/index.js";
|
|
66
67
|
export * from "./product-payment/index.js";
|
|
@@ -77,6 +78,7 @@ export * from "./milestone-business/index.js";
|
|
|
77
78
|
export * from "./cognitoBackofficeConnector/index.js";
|
|
78
79
|
export * from "./platformRbac/index.js";
|
|
79
80
|
export * from "./retailOrg/index.js";
|
|
81
|
+
export * from "./retailCustomer/index.js";
|
|
80
82
|
export * from "./loanConfig/index.js";
|
|
81
83
|
export * from "./loanOfferings/index.js";
|
|
82
84
|
export * from "./loanCollectorAssignment/index.js";
|
|
@@ -85,9 +87,15 @@ export * from "./totp-security/index.js";
|
|
|
85
87
|
export * from "./equality-connector/index.js";
|
|
86
88
|
export * from "./synergypay-connector/index.js";
|
|
87
89
|
export * from "./contacts-business/index.js";
|
|
90
|
+
export * from "./contactInformation/index.js";
|
|
88
91
|
export * from "./uniteller-connector/index.js";
|
|
89
92
|
export * from "./walletFundingSettlement/index.js";
|
|
90
93
|
export * from "./wallet-funding-rules/index.js";
|
|
91
94
|
export * from "./sns-ses-connector/index.js";
|
|
92
95
|
export * from "./remittance-business/index.js";
|
|
93
96
|
export * from "./modelias-connector/index.js";
|
|
97
|
+
export * from "./beneficiary/index.js";
|
|
98
|
+
export * from "./membership/index.js";
|
|
99
|
+
export * from "./performance-profile/index.js";
|
|
100
|
+
export * from "./auth-business/index.js";
|
|
101
|
+
export * from "./presence-websocket/index.js";
|
package/bin/index.js
CHANGED
|
@@ -61,6 +61,7 @@ export * from "./event-history-business/index.js";
|
|
|
61
61
|
export * from "./report-processor-business/index.js";
|
|
62
62
|
export * from "./notificationWebsockets/index.js";
|
|
63
63
|
export * from "./people-business/index.js";
|
|
64
|
+
export * from "./places-business/index.js";
|
|
64
65
|
export * from "./stp-business/index.js";
|
|
65
66
|
export * from "./multicommServicePayment/index.js";
|
|
66
67
|
export * from "./product-payment/index.js";
|
|
@@ -77,6 +78,7 @@ export * from "./milestone-business/index.js";
|
|
|
77
78
|
export * from "./cognitoBackofficeConnector/index.js";
|
|
78
79
|
export * from "./platformRbac/index.js";
|
|
79
80
|
export * from "./retailOrg/index.js";
|
|
81
|
+
export * from "./retailCustomer/index.js";
|
|
80
82
|
export * from "./loanConfig/index.js";
|
|
81
83
|
export * from "./loanOfferings/index.js";
|
|
82
84
|
export * from "./loanCollectorAssignment/index.js";
|
|
@@ -85,9 +87,15 @@ export * from "./totp-security/index.js";
|
|
|
85
87
|
export * from "./equality-connector/index.js";
|
|
86
88
|
export * from "./synergypay-connector/index.js";
|
|
87
89
|
export * from "./contacts-business/index.js";
|
|
90
|
+
export * from "./contactInformation/index.js";
|
|
88
91
|
export * from "./uniteller-connector/index.js";
|
|
89
92
|
export * from "./walletFundingSettlement/index.js";
|
|
90
93
|
export * from "./wallet-funding-rules/index.js";
|
|
91
94
|
export * from "./sns-ses-connector/index.js";
|
|
92
95
|
export * from "./remittance-business/index.js";
|
|
93
96
|
export * from "./modelias-connector/index.js";
|
|
97
|
+
export * from "./beneficiary/index.js";
|
|
98
|
+
export * from "./membership/index.js";
|
|
99
|
+
export * from "./performance-profile/index.js";
|
|
100
|
+
export * from "./auth-business/index.js";
|
|
101
|
+
export * from "./presence-websocket/index.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IHttpRequest } from "@fiado/http-client";
|
|
2
|
+
import { IMembershipApi } from "./interfaces/IMembershipApi.js";
|
|
3
|
+
type FiadoApiResponse<T> = import("@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse.js").default<T>;
|
|
4
|
+
export declare class MembershipApi implements IMembershipApi {
|
|
5
|
+
private httpRequest;
|
|
6
|
+
private readonly baseUrl;
|
|
7
|
+
constructor(httpRequest: IHttpRequest);
|
|
8
|
+
deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
|
|
9
|
+
deletedCount: number;
|
|
10
|
+
}>>;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { inject, injectable } from "inversify";
|
|
14
|
+
import dotenv from 'dotenv';
|
|
15
|
+
dotenv.config();
|
|
16
|
+
let MembershipApi = class MembershipApi {
|
|
17
|
+
httpRequest;
|
|
18
|
+
baseUrl = process.env.MEMBERSHIP_BUSINESS_LAMBDA_URL || "";
|
|
19
|
+
constructor(httpRequest) {
|
|
20
|
+
this.httpRequest = httpRequest;
|
|
21
|
+
}
|
|
22
|
+
async deleteByDirectoryId(directoryId) {
|
|
23
|
+
const url = `${this.baseUrl}private/directory/${directoryId}`;
|
|
24
|
+
return await this.httpRequest.delete(url);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
MembershipApi = __decorate([
|
|
28
|
+
injectable(),
|
|
29
|
+
__param(0, inject("IHttpRequest")),
|
|
30
|
+
__metadata("design:paramtypes", [Object])
|
|
31
|
+
], MembershipApi);
|
|
32
|
+
export { MembershipApi };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type FiadoApiResponse<T> = import("@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse.js").default<T>;
|
|
2
|
+
/**
|
|
3
|
+
* Interfaz para el servicio Membership (membership-business).
|
|
4
|
+
*/
|
|
5
|
+
export interface IMembershipApi {
|
|
6
|
+
/**
|
|
7
|
+
* Borra en cascada las membresías asociadas a un directoryId.
|
|
8
|
+
* @param directoryId ID del directorio.
|
|
9
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
10
|
+
*/
|
|
11
|
+
deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
|
|
12
|
+
deletedCount: number;
|
|
13
|
+
}>>;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IHttpRequest } from "@fiado/http-client";
|
|
2
|
+
import { INotificationWebsocketApi } from "./interfaces/INotificationWebsocketApi.js";
|
|
3
|
+
type FiadoApiResponse<T> = import("@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse.js").default<T>;
|
|
4
|
+
export declare class NotificationWebsocketApi implements INotificationWebsocketApi {
|
|
5
|
+
private httpRequest;
|
|
6
|
+
private readonly baseUrl;
|
|
7
|
+
constructor(httpRequest: IHttpRequest);
|
|
8
|
+
deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
|
|
9
|
+
deletedCount: number;
|
|
10
|
+
}>>;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { inject, injectable } from "inversify";
|
|
14
|
+
import dotenv from 'dotenv';
|
|
15
|
+
dotenv.config();
|
|
16
|
+
let NotificationWebsocketApi = class NotificationWebsocketApi {
|
|
17
|
+
httpRequest;
|
|
18
|
+
baseUrl = process.env.NOTIFICATIONS_WEBSOCKET_LAMBDA_URL || "";
|
|
19
|
+
constructor(httpRequest) {
|
|
20
|
+
this.httpRequest = httpRequest;
|
|
21
|
+
}
|
|
22
|
+
async deleteByDirectoryId(directoryId) {
|
|
23
|
+
const url = `${this.baseUrl}private/directory/${directoryId}`;
|
|
24
|
+
return await this.httpRequest.delete(url);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
NotificationWebsocketApi = __decorate([
|
|
28
|
+
injectable(),
|
|
29
|
+
__param(0, inject("IHttpRequest")),
|
|
30
|
+
__metadata("design:paramtypes", [Object])
|
|
31
|
+
], NotificationWebsocketApi);
|
|
32
|
+
export { NotificationWebsocketApi };
|