@fiado/api-invoker 4.70.0 → 4.72.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.
Files changed (119) hide show
  1. package/bin/activity-business/ActivityApi.d.ts +5 -0
  2. package/bin/activity-business/ActivityApi.js +4 -0
  3. package/bin/activity-business/interfaces/IActivityApi.d.ts +10 -0
  4. package/bin/address/AddressApi.d.ts +5 -0
  5. package/bin/address/AddressApi.js +4 -0
  6. package/bin/address/interfaces/IAddressApi.d.ts +10 -0
  7. package/bin/auth-business/AuthBusinessApi.d.ts +12 -0
  8. package/bin/auth-business/AuthBusinessApi.js +32 -0
  9. package/bin/auth-business/index.d.ts +2 -0
  10. package/bin/auth-business/index.js +2 -0
  11. package/bin/auth-business/interfaces/IAuthBusinessApi.d.ts +15 -0
  12. package/bin/auth-business/interfaces/IAuthBusinessApi.js +1 -0
  13. package/bin/bankAccount/BankAccountApi.d.ts +3 -0
  14. package/bin/bankAccount/BankAccountApi.js +4 -0
  15. package/bin/bankAccount/interfaces/IBankAccountApi.d.ts +10 -0
  16. package/bin/beneficiary/BeneficiaryApi.d.ts +12 -0
  17. package/bin/beneficiary/BeneficiaryApi.js +32 -0
  18. package/bin/beneficiary/index.d.ts +2 -0
  19. package/bin/beneficiary/index.js +2 -0
  20. package/bin/beneficiary/interfaces/IBeneficiaryApi.d.ts +15 -0
  21. package/bin/beneficiary/interfaces/IBeneficiaryApi.js +1 -0
  22. package/bin/contactInformation/ContactInformationApi.d.ts +5 -0
  23. package/bin/contactInformation/ContactInformationApi.js +4 -0
  24. package/bin/contactInformation/interface/IContactInformationApi.d.ts +10 -0
  25. package/bin/container.config.js +13 -0
  26. package/bin/directorySetting/DirectorySettingApi.d.ts +3 -0
  27. package/bin/directorySetting/DirectorySettingApi.js +4 -0
  28. package/bin/directorySetting/interfaces/IDirectorySettingApi.d.ts +8 -0
  29. package/bin/group/GroupApi.d.ts +3 -0
  30. package/bin/group/GroupApi.js +4 -0
  31. package/bin/group/interfaces/IGroupApi.d.ts +8 -0
  32. package/bin/index.d.ts +8 -0
  33. package/bin/index.js +8 -0
  34. package/bin/membership/MembershipApi.d.ts +12 -0
  35. package/bin/membership/MembershipApi.js +32 -0
  36. package/bin/membership/index.d.ts +2 -0
  37. package/bin/membership/index.js +2 -0
  38. package/bin/membership/interfaces/IMembershipApi.d.ts +15 -0
  39. package/bin/membership/interfaces/IMembershipApi.js +1 -0
  40. package/bin/notificationWebsockets/NotificationWebsocketApi.d.ts +12 -0
  41. package/bin/notificationWebsockets/NotificationWebsocketApi.js +32 -0
  42. package/bin/notificationWebsockets/index.d.ts +2 -0
  43. package/bin/notificationWebsockets/index.js +2 -0
  44. package/bin/notificationWebsockets/interfaces/INotificationWebsocketApi.d.ts +15 -0
  45. package/bin/notificationWebsockets/interfaces/INotificationWebsocketApi.js +1 -0
  46. package/bin/performance-profile/PerformanceProfileApi.d.ts +12 -0
  47. package/bin/performance-profile/PerformanceProfileApi.js +32 -0
  48. package/bin/performance-profile/index.d.ts +2 -0
  49. package/bin/performance-profile/index.js +2 -0
  50. package/bin/performance-profile/interfaces/IPerformanceProfileApi.d.ts +15 -0
  51. package/bin/performance-profile/interfaces/IPerformanceProfileApi.js +1 -0
  52. package/bin/presence-websocket/PresenceWebsocketApi.d.ts +12 -0
  53. package/bin/presence-websocket/PresenceWebsocketApi.js +32 -0
  54. package/bin/presence-websocket/index.d.ts +2 -0
  55. package/bin/presence-websocket/index.js +2 -0
  56. package/bin/presence-websocket/interfaces/IPresenceWebsocketApi.d.ts +15 -0
  57. package/bin/presence-websocket/interfaces/IPresenceWebsocketApi.js +1 -0
  58. package/bin/retailCards/api/RetailCardsBusinessApi.d.ts +24 -0
  59. package/bin/retailCards/api/RetailCardsBusinessApi.js +51 -0
  60. package/bin/retailCards/api/interfaces/IRetailCardsBusinessApi.d.ts +41 -0
  61. package/bin/retailCards/api/interfaces/IRetailCardsBusinessApi.js +1 -0
  62. package/bin/retailCards/index.d.ts +2 -0
  63. package/bin/retailCards/index.js +2 -0
  64. package/bin/retailCatalog/api/RetailCatalogBusinessApi.d.ts +27 -0
  65. package/bin/retailCatalog/api/RetailCatalogBusinessApi.js +65 -0
  66. package/bin/retailCatalog/api/interfaces/IRetailCatalogBusinessApi.d.ts +64 -0
  67. package/bin/retailCatalog/api/interfaces/IRetailCatalogBusinessApi.js +1 -0
  68. package/bin/retailCatalog/index.d.ts +2 -0
  69. package/bin/retailCatalog/index.js +2 -0
  70. package/bin/riskProfile/api/RiskProfileApi.d.ts +4 -0
  71. package/bin/riskProfile/api/RiskProfileApi.js +4 -0
  72. package/bin/riskProfile/api/interfaces/IRiskProfileApi.d.ts +9 -0
  73. package/bin/zendesk/ZendeskApi.d.ts +3 -0
  74. package/bin/zendesk/ZendeskApi.js +4 -0
  75. package/bin/zendesk/interfaces/IZendeskApi.d.ts +8 -0
  76. package/docs/TECH_DEBT.md +7 -0
  77. package/package.json +1 -1
  78. package/src/activity-business/ActivityApi.ts +6 -0
  79. package/src/activity-business/interfaces/IActivityApi.ts +9 -1
  80. package/src/address/AddressApi.ts +6 -0
  81. package/src/address/interfaces/IAddressApi.ts +10 -1
  82. package/src/auth-business/AuthBusinessApi.ts +20 -0
  83. package/src/auth-business/index.ts +2 -0
  84. package/src/auth-business/interfaces/IAuthBusinessApi.ts +15 -0
  85. package/src/bankAccount/BankAccountApi.ts +5 -0
  86. package/src/bankAccount/interfaces/IBankAccountApi.ts +10 -0
  87. package/src/beneficiary/BeneficiaryApi.ts +20 -0
  88. package/src/beneficiary/index.ts +2 -0
  89. package/src/beneficiary/interfaces/IBeneficiaryApi.ts +15 -0
  90. package/src/contactInformation/ContactInformationApi.ts +6 -0
  91. package/src/contactInformation/interface/IContactInformationApi.ts +10 -1
  92. package/src/container.config.ts +14 -0
  93. package/src/directorySetting/DirectorySettingApi.ts +5 -0
  94. package/src/directorySetting/interfaces/IDirectorySettingApi.ts +8 -1
  95. package/src/group/GroupApi.ts +5 -0
  96. package/src/group/interfaces/IGroupApi.ts +8 -0
  97. package/src/index.ts +8 -0
  98. package/src/membership/MembershipApi.ts +20 -0
  99. package/src/membership/index.ts +2 -0
  100. package/src/membership/interfaces/IMembershipApi.ts +15 -0
  101. package/src/notificationWebsockets/NotificationWebsocketApi.ts +20 -0
  102. package/src/notificationWebsockets/index.ts +3 -1
  103. package/src/notificationWebsockets/interfaces/INotificationWebsocketApi.ts +15 -0
  104. package/src/performance-profile/PerformanceProfileApi.ts +20 -0
  105. package/src/performance-profile/index.ts +2 -0
  106. package/src/performance-profile/interfaces/IPerformanceProfileApi.ts +15 -0
  107. package/src/presence-websocket/PresenceWebsocketApi.ts +20 -0
  108. package/src/presence-websocket/index.ts +2 -0
  109. package/src/presence-websocket/interfaces/IPresenceWebsocketApi.ts +15 -0
  110. package/src/retailCards/api/RetailCardsBusinessApi.ts +44 -0
  111. package/src/retailCards/api/interfaces/IRetailCardsBusinessApi.ts +47 -0
  112. package/src/retailCards/index.ts +2 -0
  113. package/src/retailCatalog/api/RetailCatalogBusinessApi.ts +68 -0
  114. package/src/retailCatalog/api/interfaces/IRetailCatalogBusinessApi.ts +75 -0
  115. package/src/retailCatalog/index.ts +2 -0
  116. package/src/riskProfile/api/RiskProfileApi.ts +6 -0
  117. package/src/riskProfile/api/interfaces/IRiskProfileApi.ts +9 -0
  118. package/src/zendesk/ZendeskApi.ts +5 -0
  119. 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,2 @@
1
+ export * from './interfaces/IAuthBusinessApi.js';
2
+ export * from './AuthBusinessApi.js';
@@ -0,0 +1,2 @@
1
+ export * from './interfaces/IAuthBusinessApi.js';
2
+ export * from './AuthBusinessApi.js';
@@ -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,2 @@
1
+ export * from './interfaces/IBeneficiaryApi.js';
2
+ export * from './BeneficiaryApi.js';
@@ -0,0 +1,2 @@
1
+ export * from './interfaces/IBeneficiaryApi.js';
2
+ export * from './BeneficiaryApi.js';
@@ -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 {};
@@ -119,6 +119,12 @@ import { WalletFundingRulesApi } from "./wallet-funding-rules/index.js";
119
119
  import { SnsSesConnectorApi } from "./sns-ses-connector/index.js";
120
120
  // Remittance business — pricingResolve (Dashboard Ops Fase B, puente de resolución de precio en send-time)
121
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";
122
128
  export const apiInvokerBindings = new ContainerModule(({ bind }) => {
123
129
  // UTILS bindings
124
130
  bind("InvokerUtils").to(InvokerUtils);
@@ -251,4 +257,11 @@ export const apiInvokerBindings = new ContainerModule(({ bind }) => {
251
257
  bind("ISnsSesConnectorApi").to(SnsSesConnectorApi);
252
258
  // Remittance business — pricingResolve (Dashboard Ops Fase B, puente de resolución de precio en send-time)
253
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);
254
267
  });
@@ -28,5 +28,8 @@ export declare class DirectorySettingApi implements IDirectorySettingApi {
28
28
  directoryId: string;
29
29
  metadata?: any;
30
30
  }>>;
31
+ deleteByDirectoryId(directoryId: string): Promise<FiadoApiResponse<{
32
+ deletedCount: number;
33
+ }>>;
31
34
  }
32
35
  export {};
@@ -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 {};
@@ -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 {};
@@ -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
@@ -79,6 +79,8 @@ export * from "./cognitoBackofficeConnector/index.js";
79
79
  export * from "./platformRbac/index.js";
80
80
  export * from "./retailOrg/index.js";
81
81
  export * from "./retailCustomer/index.js";
82
+ export * from "./retailCatalog/index.js";
83
+ export * from "./retailCards/index.js";
82
84
  export * from "./loanConfig/index.js";
83
85
  export * from "./loanOfferings/index.js";
84
86
  export * from "./loanCollectorAssignment/index.js";
@@ -87,9 +89,15 @@ export * from "./totp-security/index.js";
87
89
  export * from "./equality-connector/index.js";
88
90
  export * from "./synergypay-connector/index.js";
89
91
  export * from "./contacts-business/index.js";
92
+ export * from "./contactInformation/index.js";
90
93
  export * from "./uniteller-connector/index.js";
91
94
  export * from "./walletFundingSettlement/index.js";
92
95
  export * from "./wallet-funding-rules/index.js";
93
96
  export * from "./sns-ses-connector/index.js";
94
97
  export * from "./remittance-business/index.js";
95
98
  export * from "./modelias-connector/index.js";
99
+ export * from "./beneficiary/index.js";
100
+ export * from "./membership/index.js";
101
+ export * from "./performance-profile/index.js";
102
+ export * from "./auth-business/index.js";
103
+ export * from "./presence-websocket/index.js";
package/bin/index.js CHANGED
@@ -79,6 +79,8 @@ export * from "./cognitoBackofficeConnector/index.js";
79
79
  export * from "./platformRbac/index.js";
80
80
  export * from "./retailOrg/index.js";
81
81
  export * from "./retailCustomer/index.js";
82
+ export * from "./retailCatalog/index.js";
83
+ export * from "./retailCards/index.js";
82
84
  export * from "./loanConfig/index.js";
83
85
  export * from "./loanOfferings/index.js";
84
86
  export * from "./loanCollectorAssignment/index.js";
@@ -87,9 +89,15 @@ export * from "./totp-security/index.js";
87
89
  export * from "./equality-connector/index.js";
88
90
  export * from "./synergypay-connector/index.js";
89
91
  export * from "./contacts-business/index.js";
92
+ export * from "./contactInformation/index.js";
90
93
  export * from "./uniteller-connector/index.js";
91
94
  export * from "./walletFundingSettlement/index.js";
92
95
  export * from "./wallet-funding-rules/index.js";
93
96
  export * from "./sns-ses-connector/index.js";
94
97
  export * from "./remittance-business/index.js";
95
98
  export * from "./modelias-connector/index.js";
99
+ export * from "./beneficiary/index.js";
100
+ export * from "./membership/index.js";
101
+ export * from "./performance-profile/index.js";
102
+ export * from "./auth-business/index.js";
103
+ 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,2 @@
1
+ export * from './interfaces/IMembershipApi.js';
2
+ export * from './MembershipApi.js';
@@ -0,0 +1,2 @@
1
+ export * from './interfaces/IMembershipApi.js';
2
+ export * from './MembershipApi.js';
@@ -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 };
@@ -1,2 +1,4 @@
1
1
  export * from './queue/NotificationWSMessagePublisher.js';
2
2
  export * from './queue/interfaces/INotificationWSMessagesPublisher.js';
3
+ export * from './interfaces/INotificationWebsocketApi.js';
4
+ export * from './NotificationWebsocketApi.js';
@@ -1,2 +1,4 @@
1
1
  export * from './queue/NotificationWSMessagePublisher.js';
2
2
  export * from './queue/interfaces/INotificationWSMessagesPublisher.js';
3
+ export * from './interfaces/INotificationWebsocketApi.js';
4
+ export * from './NotificationWebsocketApi.js';
@@ -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 Notifications Websocket (notifications-websocket).
4
+ */
5
+ export interface INotificationWebsocketApi {
6
+ /**
7
+ * Borra en cascada las conexiones/notificaciones WS 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 {};