@fiado/api-invoker 1.3.85 → 1.3.86
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/account-beneficiary/AccountBeneficiaryApi.d.ts +10 -0
- package/bin/account-beneficiary/AccountBeneficiaryApi.js +32 -0
- package/bin/account-beneficiary/index.d.ts +2 -0
- package/bin/account-beneficiary/index.js +18 -0
- package/bin/account-beneficiary/interfaces/IAccountBeneficiaryApi.d.ts +5 -0
- package/bin/account-beneficiary/interfaces/IAccountBeneficiaryApi.js +2 -0
- package/bin/account-fiadoinc/AccountFiadoIncApi.d.ts +32 -0
- package/bin/account-fiadoinc/AccountFiadoIncApi.js +84 -0
- package/bin/account-fiadoinc/index.d.ts +4 -0
- package/bin/account-fiadoinc/index.js +20 -0
- package/bin/account-fiadoinc/interfaces/IAccountFiadoIncApi.d.ts +18 -0
- package/bin/account-fiadoinc/interfaces/IAccountFiadoIncApi.js +2 -0
- package/bin/account-fiadoinc/queue/Publisher.d.ts +9 -0
- package/bin/account-fiadoinc/queue/Publisher.js +34 -0
- package/bin/account-fiadoinc/queue/interfaces/IPublisher.d.ts +7 -0
- package/bin/account-fiadoinc/queue/interfaces/IPublisher.js +2 -0
- package/bin/account-fiadosa/AccountFiadoSAApi.d.ts +15 -0
- package/bin/account-fiadosa/AccountFiadoSAApi.js +47 -0
- package/bin/account-fiadosa/index.d.ts +2 -0
- package/bin/account-fiadosa/index.js +18 -0
- package/bin/account-fiadosa/interfaces/IAccountFiadoSAApi.d.ts +10 -0
- package/bin/account-fiadosa/interfaces/IAccountFiadoSAApi.js +2 -0
- package/bin/account-pagoconfiado/AccountPagoConfiadoApi.d.ts +17 -0
- package/bin/account-pagoconfiado/AccountPagoConfiadoApi.js +55 -0
- package/bin/account-pagoconfiado/index.d.ts +2 -0
- package/bin/account-pagoconfiado/index.js +18 -0
- package/bin/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.d.ts +12 -0
- package/bin/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.js +2 -0
- package/bin/activity-business/ActivityApi.d.ts +12 -0
- package/bin/activity-business/ActivityApi.js +49 -0
- package/bin/activity-business/index.d.ts +4 -0
- package/bin/activity-business/index.js +20 -0
- package/bin/activity-business/interfaces/IActivityApi.d.ts +7 -0
- package/bin/activity-business/interfaces/IActivityApi.js +2 -0
- package/bin/activity-business/queue/ActivityPublisher.d.ts +6 -0
- package/bin/activity-business/queue/ActivityPublisher.js +36 -0
- package/bin/activity-business/queue/IActivityPublisher.d.ts +4 -0
- package/bin/activity-business/queue/IActivityPublisher.js +2 -0
- package/bin/address/AddressApi.d.ts +13 -0
- package/bin/address/AddressApi.js +55 -0
- package/bin/address/index.d.ts +2 -0
- package/bin/address/index.js +18 -0
- package/bin/address/interfaces/IAddressApi.d.ts +26 -0
- package/bin/address/interfaces/IAddressApi.js +2 -0
- package/bin/appselectondata/AppSelectionDataApi.d.ts +12 -0
- package/bin/appselectondata/AppSelectionDataApi.js +47 -0
- package/bin/appselectondata/index.d.ts +2 -0
- package/bin/appselectondata/index.js +18 -0
- package/bin/appselectondata/interfaces/IAppSelectionDataApi.d.ts +18 -0
- package/bin/appselectondata/interfaces/IAppSelectionDataApi.js +2 -0
- package/bin/authentication/AuthenticationApi.d.ts +8 -0
- package/bin/authentication/AuthenticationApi.js +32 -0
- package/bin/authentication/index.d.ts +2 -0
- package/bin/authentication/index.js +18 -0
- package/bin/authentication/interfaces/IAuthenticationApi.d.ts +4 -0
- package/bin/authentication/interfaces/IAuthenticationApi.js +2 -0
- package/bin/bankAccount/BankAccountApi.d.ts +13 -0
- package/bin/bankAccount/BankAccountApi.js +43 -0
- package/bin/bankAccount/index.d.ts +2 -0
- package/bin/bankAccount/index.js +18 -0
- package/bin/bankAccount/interfaces/IBankAccountApi.d.ts +5 -0
- package/bin/bankAccount/interfaces/IBankAccountApi.js +2 -0
- package/bin/bbvaRst/api/BBVARstApi.d.ts +9 -0
- package/bin/bbvaRst/api/BBVARstApi.js +32 -0
- package/bin/bbvaRst/api/interfaces/IBBVARstApi.d.ts +4 -0
- package/bin/bbvaRst/api/interfaces/IBBVARstApi.js +2 -0
- package/bin/bbvaRst/index.d.ts +2 -0
- package/bin/bbvaRst/index.js +18 -0
- package/bin/blacklist/BlackListApi.d.ts +12 -0
- package/bin/blacklist/BlackListApi.js +37 -0
- package/bin/blacklist/index.d.ts +2 -0
- package/bin/blacklist/index.js +18 -0
- package/bin/blacklist/interfaces/IBlackListApi.d.ts +17 -0
- package/bin/blacklist/interfaces/IBlackListApi.js +2 -0
- package/bin/card/CardApi.d.ts +21 -0
- package/bin/card/CardApi.js +69 -0
- package/bin/card/index.d.ts +2 -0
- package/bin/card/index.js +18 -0
- package/bin/card/interfaces/ICardApi.d.ts +15 -0
- package/bin/card/interfaces/ICardApi.js +2 -0
- package/bin/centralPayments/CentralPaymentsConnectorApi.d.ts +67 -0
- package/bin/centralPayments/CentralPaymentsConnectorApi.js +223 -0
- package/bin/centralPayments/index.d.ts +2 -0
- package/bin/centralPayments/index.js +18 -0
- package/bin/centralPayments/interfaces/ICentralPaymentsConnectorApi.d.ts +57 -0
- package/bin/centralPayments/interfaces/ICentralPaymentsConnectorApi.js +2 -0
- package/bin/cnbv-business/CnbvApi.d.ts +8 -0
- package/bin/cnbv-business/CnbvApi.js +31 -0
- package/bin/cnbv-business/index.d.ts +2 -0
- package/bin/cnbv-business/index.js +18 -0
- package/bin/cnbv-business/interfaces/ICnbvApi.d.ts +3 -0
- package/bin/cnbv-business/interfaces/ICnbvApi.js +2 -0
- package/bin/cognitoConnector/CognitoConnectorApi.d.ts +16 -0
- package/bin/cognitoConnector/CognitoConnectorApi.js +89 -0
- package/bin/cognitoConnector/CognitoConnectorV2.d.ts +18 -0
- package/bin/cognitoConnector/CognitoConnectorV2.js +74 -0
- package/bin/cognitoConnector/index.d.ts +4 -0
- package/bin/cognitoConnector/index.js +20 -0
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApi.d.ts +12 -0
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApi.js +2 -0
- package/bin/cognitoConnector/interfaces/ICognitoV2Api.d.ts +46 -0
- package/bin/cognitoConnector/interfaces/ICognitoV2Api.js +2 -0
- package/bin/collector/CollectorApi.d.ts +17 -0
- package/bin/collector/CollectorApi.js +64 -0
- package/bin/collector/index.d.ts +2 -0
- package/bin/collector/index.js +18 -0
- package/bin/collector/interfaces/ICollectorApi.d.ts +22 -0
- package/bin/collector/interfaces/ICollectorApi.js +2 -0
- package/bin/contactInformation/ContactInformationApi.d.ts +9 -0
- package/bin/contactInformation/ContactInformationApi.js +31 -0
- package/bin/contactInformation/index.d.ts +2 -0
- package/bin/contactInformation/index.js +18 -0
- package/bin/contactInformation/interface/IContactInformationApi.d.ts +4 -0
- package/bin/contactInformation/interface/IContactInformationApi.js +2 -0
- package/bin/container.config.d.ts +2 -0
- package/bin/container.config.js +121 -0
- package/bin/contract-generator/ContractGeneratorApi.d.ts +9 -0
- package/bin/contract-generator/ContractGeneratorApi.js +37 -0
- package/bin/contract-generator/index.d.ts +2 -0
- package/bin/contract-generator/index.js +18 -0
- package/bin/contract-generator/interfaces/IContractGeneratorApi.d.ts +14 -0
- package/bin/contract-generator/interfaces/IContractGeneratorApi.js +2 -0
- package/bin/device/DeviceApi.d.ts +14 -0
- package/bin/device/DeviceApi.js +45 -0
- package/bin/device/index.d.ts +2 -0
- package/bin/device/index.js +18 -0
- package/bin/device/interfaces/IDeviceApi.d.ts +30 -0
- package/bin/device/interfaces/IDeviceApi.js +2 -0
- package/bin/directories/DirectoriesApi.d.ts +20 -0
- package/bin/directories/DirectoriesApi.js +61 -0
- package/bin/directories/index.d.ts +2 -0
- package/bin/directories/index.js +18 -0
- package/bin/directories/interfaces/IDirectoriesApi.d.ts +21 -0
- package/bin/directories/interfaces/IDirectoriesApi.js +2 -0
- package/bin/directory/DirectoryApi.d.ts +22 -0
- package/bin/directory/DirectoryApi.js +145 -0
- package/bin/directory/index.d.ts +2 -0
- package/bin/directory/index.js +18 -0
- package/bin/directory/interfaces/IDirectoryApi.d.ts +55 -0
- package/bin/directory/interfaces/IDirectoryApi.js +2 -0
- package/bin/directorySetting/DirectorySettingApi.d.ts +31 -0
- package/bin/directorySetting/DirectorySettingApi.js +56 -0
- package/bin/directorySetting/index.d.ts +2 -0
- package/bin/directorySetting/index.js +18 -0
- package/bin/directorySetting/interfaces/IDirectorySettingApi.d.ts +42 -0
- package/bin/directorySetting/interfaces/IDirectorySettingApi.js +2 -0
- package/bin/disputes/DisputesApi.d.ts +24 -0
- package/bin/disputes/DisputesApi.js +61 -0
- package/bin/disputes/index.d.ts +2 -0
- package/bin/disputes/index.js +18 -0
- package/bin/disputes/interfaces/IDisputesApi.d.ts +48 -0
- package/bin/disputes/interfaces/IDisputesApi.js +2 -0
- package/bin/document-image-processor/DocumentImageProcessorApi.d.ts +11 -0
- package/bin/document-image-processor/DocumentImageProcessorApi.js +36 -0
- package/bin/document-image-processor/index.d.ts +2 -0
- package/bin/document-image-processor/index.js +18 -0
- package/bin/document-image-processor/interfaces/IDocumentImageProcessorApi.d.ts +6 -0
- package/bin/document-image-processor/interfaces/IDocumentImageProcessorApi.js +2 -0
- package/bin/estafeta/api/EstafetaApi.d.ts +26 -0
- package/bin/estafeta/api/EstafetaApi.js +71 -0
- package/bin/estafeta/api/interfaces/IEstafetaApi.d.ts +20 -0
- package/bin/estafeta/api/interfaces/IEstafetaApi.js +2 -0
- package/bin/estafeta/index.d.ts +2 -0
- package/bin/estafeta/index.js +18 -0
- package/bin/exchangeRates/ExchangeRatesApi.d.ts +11 -0
- package/bin/exchangeRates/ExchangeRatesApi.js +39 -0
- package/bin/exchangeRates/index.d.ts +2 -0
- package/bin/exchangeRates/index.js +18 -0
- package/bin/exchangeRates/interfaces/IExchangeRatesApi.d.ts +6 -0
- package/bin/exchangeRates/interfaces/IExchangeRatesApi.js +2 -0
- package/bin/fiadoMessages/api/FiadoMessagesApi.d.ts +8 -0
- package/bin/fiadoMessages/api/FiadoMessagesApi.js +37 -0
- package/bin/fiadoMessages/api/interfaces/IFiadoMessagesApi.d.ts +3 -0
- package/bin/fiadoMessages/api/interfaces/IFiadoMessagesApi.js +2 -0
- package/bin/fiadoMessages/index.d.ts +2 -0
- package/bin/fiadoMessages/index.js +18 -0
- package/bin/fraudPreventionEngine/api/FraudPreventionEngineApi.d.ts +11 -0
- package/bin/fraudPreventionEngine/api/FraudPreventionEngineApi.js +35 -0
- package/bin/fraudPreventionEngine/api/interfaces/IFraudPreventionEngineApi.d.ts +6 -0
- package/bin/fraudPreventionEngine/api/interfaces/IFraudPreventionEngineApi.js +2 -0
- package/bin/fraudPreventionEngine/index.d.ts +2 -0
- package/bin/fraudPreventionEngine/index.js +18 -0
- package/bin/group/GroupApi.d.ts +19 -0
- package/bin/group/GroupApi.js +70 -0
- package/bin/group/index.d.ts +2 -0
- package/bin/group/index.js +18 -0
- package/bin/group/interfaces/IGroupApi.d.ts +28 -0
- package/bin/group/interfaces/IGroupApi.js +2 -0
- package/bin/identity/IdentityApi.d.ts +15 -0
- package/bin/identity/IdentityApi.js +85 -0
- package/bin/identity/index.d.ts +2 -0
- package/bin/identity/index.js +18 -0
- package/bin/identity/interfaces/IIdentityApi.d.ts +33 -0
- package/bin/identity/interfaces/IIdentityApi.js +2 -0
- package/bin/index.d.ts +49 -0
- package/bin/index.js +65 -0
- package/bin/legalDocument/api/LegalDocumentApi.d.ts +8 -0
- package/bin/legalDocument/api/LegalDocumentApi.js +34 -0
- package/bin/legalDocument/api/interfaces/ILegalDocumentApi.d.ts +3 -0
- package/bin/legalDocument/api/interfaces/ILegalDocumentApi.js +2 -0
- package/bin/legalDocument/index.d.ts +2 -0
- package/bin/legalDocument/index.js +18 -0
- package/bin/notificationMessages/index.d.ts +2 -0
- package/bin/notificationMessages/index.js +18 -0
- package/bin/notificationMessages/queue/NotificationMessagePublisher.d.ts +12 -0
- package/bin/notificationMessages/queue/NotificationMessagePublisher.js +47 -0
- package/bin/notificationMessages/queue/interfaces/INotificationMessagesPublisher.d.ts +6 -0
- package/bin/notificationMessages/queue/interfaces/INotificationMessagesPublisher.js +2 -0
- package/bin/observations/ObservationsApi.d.ts +10 -0
- package/bin/observations/ObservationsApi.js +39 -0
- package/bin/observations/index.d.ts +2 -0
- package/bin/observations/index.js +18 -0
- package/bin/observations/interfaces/IObservationsApi.d.ts +8 -0
- package/bin/observations/interfaces/IObservationsApi.js +2 -0
- package/bin/order-collector-business/OrderCollectorApi.d.ts +9 -0
- package/bin/order-collector-business/OrderCollectorApi.js +37 -0
- package/bin/order-collector-business/index.d.ts +2 -0
- package/bin/order-collector-business/index.js +18 -0
- package/bin/order-collector-business/interfaces/IOrderCollectorApi.d.ts +7 -0
- package/bin/order-collector-business/interfaces/IOrderCollectorApi.js +2 -0
- package/bin/p2pContact/api/P2pContactApi.d.ts +9 -0
- package/bin/p2pContact/api/P2pContactApi.js +34 -0
- package/bin/p2pContact/api/interfaces/IP2pContactApi.d.ts +4 -0
- package/bin/p2pContact/api/interfaces/IP2pContactApi.js +2 -0
- package/bin/p2pContact/index.d.ts +2 -0
- package/bin/p2pContact/index.js +18 -0
- package/bin/pomelo/api/PomeloApi.d.ts +23 -0
- package/bin/pomelo/api/PomeloApi.js +86 -0
- package/bin/pomelo/api/interfaces/IPomeloApi.d.ts +17 -0
- package/bin/pomelo/api/interfaces/IPomeloApi.js +2 -0
- package/bin/pomelo/index.d.ts +2 -0
- package/bin/pomelo/index.js +18 -0
- package/bin/pomeloProcessor/api/PomeloProcessorApi.d.ts +8 -0
- package/bin/pomeloProcessor/api/PomeloProcessorApi.js +32 -0
- package/bin/pomeloProcessor/api/interfaces/IPomeloProcessorApi.d.ts +3 -0
- package/bin/pomeloProcessor/api/interfaces/IPomeloProcessorApi.js +2 -0
- package/bin/pomeloProcessor/index.d.ts +2 -0
- package/bin/pomeloProcessor/index.js +18 -0
- package/bin/pricelist-business/PriceListApi.d.ts +15 -0
- package/bin/pricelist-business/PriceListApi.js +55 -0
- package/bin/pricelist-business/index.d.ts +2 -0
- package/bin/pricelist-business/index.js +18 -0
- package/bin/pricelist-business/interfaces/IPriceListApi.d.ts +18 -0
- package/bin/pricelist-business/interfaces/IPriceListApi.js +2 -0
- package/bin/product-catalog/ProductCatalogApi.d.ts +10 -0
- package/bin/product-catalog/ProductCatalogApi.js +31 -0
- package/bin/product-catalog/index.d.ts +2 -0
- package/bin/product-catalog/index.js +18 -0
- package/bin/product-catalog/interfaces/IProductCatalogApi.d.ts +5 -0
- package/bin/product-catalog/interfaces/IProductCatalogApi.js +2 -0
- package/bin/riskProfile/api/RiskProfileApi.d.ts +15 -0
- package/bin/riskProfile/api/RiskProfileApi.js +47 -0
- package/bin/riskProfile/api/TransactionAlertApi.d.ts +13 -0
- package/bin/riskProfile/api/TransactionAlertApi.js +31 -0
- package/bin/riskProfile/api/interfaces/IRiskProfileApi.d.ts +10 -0
- package/bin/riskProfile/api/interfaces/IRiskProfileApi.js +2 -0
- package/bin/riskProfile/api/interfaces/ITransactionAlertApi.d.ts +8 -0
- package/bin/riskProfile/api/interfaces/ITransactionAlertApi.js +2 -0
- package/bin/riskProfile/index.d.ts +6 -0
- package/bin/riskProfile/index.js +22 -0
- package/bin/riskProfile/queue/TransactionAlarmPublisher.d.ts +6 -0
- package/bin/riskProfile/queue/TransactionAlarmPublisher.js +36 -0
- package/bin/riskProfile/queue/interfaces/ITransactionAlarmPublisher.d.ts +4 -0
- package/bin/riskProfile/queue/interfaces/ITransactionAlarmPublisher.js +2 -0
- package/bin/service-business/ServiceApi.d.ts +32 -0
- package/bin/service-business/ServiceApi.js +89 -0
- package/bin/service-business/index.d.ts +2 -0
- package/bin/service-business/index.js +18 -0
- package/bin/service-business/interfaces/IServiceApi.d.ts +72 -0
- package/bin/service-business/interfaces/IServiceApi.js +2 -0
- package/bin/sessionActivity/index.d.ts +2 -0
- package/bin/sessionActivity/index.js +18 -0
- package/bin/sessionActivity/queue/SessionActivityPublisher.d.ts +6 -0
- package/bin/sessionActivity/queue/SessionActivityPublisher.js +34 -0
- package/bin/sessionActivity/queue/interfaces/ISessionActivityPublisher.d.ts +4 -0
- package/bin/sessionActivity/queue/interfaces/ISessionActivityPublisher.js +2 -0
- package/bin/stpAccount/api/STPAccountApi.d.ts +15 -0
- package/bin/stpAccount/api/STPAccountApi.js +39 -0
- package/bin/stpAccount/api/interfaces/ISTPAccountApi.d.ts +10 -0
- package/bin/stpAccount/api/interfaces/ISTPAccountApi.js +2 -0
- package/bin/stpAccount/index.d.ts +2 -0
- package/bin/stpAccount/index.js +18 -0
- package/bin/stpServicePayment/api/StpServicePaymentApi.d.ts +14 -0
- package/bin/stpServicePayment/api/StpServicePaymentApi.js +50 -0
- package/bin/stpServicePayment/api/interfaces/IStpServicePaymentApi.d.ts +9 -0
- package/bin/stpServicePayment/api/interfaces/IStpServicePaymentApi.js +2 -0
- package/bin/stpServicePayment/index.d.ts +2 -0
- package/bin/stpServicePayment/index.js +18 -0
- package/bin/stpSpei/api/StpSpeiApi.d.ts +10 -0
- package/bin/stpSpei/api/StpSpeiApi.js +47 -0
- package/bin/stpSpei/api/interfaces/IStpSpeiApi.d.ts +5 -0
- package/bin/stpSpei/api/interfaces/IStpSpeiApi.js +2 -0
- package/bin/stpSpei/index.d.ts +2 -0
- package/bin/stpSpei/index.js +18 -0
- package/bin/tern/api/TernApi.d.ts +30 -0
- package/bin/tern/api/TernApi.js +125 -0
- package/bin/tern/api/interfaces/ITernApi.d.ts +26 -0
- package/bin/tern/api/interfaces/ITernApi.js +2 -0
- package/bin/tern/index.d.ts +2 -0
- package/bin/tern/index.js +18 -0
- package/bin/transaction/api/TransactionApi.d.ts +45 -0
- package/bin/transaction/api/TransactionApi.js +84 -0
- package/bin/transaction/api/interfaces/ITransactionApi.d.ts +40 -0
- package/bin/transaction/api/interfaces/ITransactionApi.js +2 -0
- package/bin/transaction/index.d.ts +4 -0
- package/bin/transaction/index.js +20 -0
- package/bin/transaction/queue/TransactionPublisher.d.ts +6 -0
- package/bin/transaction/queue/TransactionPublisher.js +36 -0
- package/bin/transaction/queue/interfaces/ITransactionPublisher.d.ts +4 -0
- package/bin/transaction/queue/interfaces/ITransactionPublisher.js +2 -0
- package/bin/transactionProcessor/api/TransactionProcessorApi.d.ts +16 -0
- package/bin/transactionProcessor/api/TransactionProcessorApi.js +51 -0
- package/bin/transactionProcessor/api/interfaces/ITransactionProcessorApi.d.ts +11 -0
- package/bin/transactionProcessor/api/interfaces/ITransactionProcessorApi.js +2 -0
- package/bin/transactionProcessor/index.d.ts +2 -0
- package/bin/transactionProcessor/index.js +18 -0
- package/bin/utils/InvokerUtils.d.ts +4 -0
- package/bin/utils/InvokerUtils.js +34 -0
- package/bin/zendesk/ZendeskApi.d.ts +11 -0
- package/bin/zendesk/ZendeskApi.js +41 -0
- package/bin/zendesk/index.d.ts +2 -0
- package/bin/zendesk/index.js +18 -0
- package/bin/zendesk/interfaces/IZendeskApi.d.ts +9 -0
- package/bin/zendesk/interfaces/IZendeskApi.js +2 -0
- package/package.json +2 -2
- package/src/transaction/api/TransactionApi.ts +1 -1
- package/src/transaction/api/interfaces/ITransactionApi.ts +2 -2
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.FiadoMessagesApi = void 0;
|
|
16
|
+
const inversify_1 = require("inversify");
|
|
17
|
+
let FiadoMessagesApi = class FiadoMessagesApi {
|
|
18
|
+
constructor(httpRequest) {
|
|
19
|
+
this.httpRequest = httpRequest;
|
|
20
|
+
this.baseUrl = process.env.MESSAGE_LAMBDA_URL || "";
|
|
21
|
+
}
|
|
22
|
+
async getValidatedOtpByDirectoryIdAndOtpCode(directoryId, otpCode) {
|
|
23
|
+
const url = `${this.baseUrl}`;
|
|
24
|
+
const operationName = "getValidatedOtpByDirectoryIdAndOtpCode";
|
|
25
|
+
const request = {
|
|
26
|
+
directoryId: directoryId,
|
|
27
|
+
otpCode: otpCode
|
|
28
|
+
};
|
|
29
|
+
return await this.httpRequest.post(`${url}`, request, { 'operationName': operationName });
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.FiadoMessagesApi = FiadoMessagesApi;
|
|
33
|
+
exports.FiadoMessagesApi = FiadoMessagesApi = __decorate([
|
|
34
|
+
(0, inversify_1.injectable)(),
|
|
35
|
+
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
36
|
+
__metadata("design:paramtypes", [Object])
|
|
37
|
+
], FiadoMessagesApi);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./api/interfaces/IFiadoMessagesApi"), exports);
|
|
18
|
+
__exportStar(require("./api/FiadoMessagesApi"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IFraudPreventionEngineApi } from "./interfaces/IFraudPreventionEngineApi";
|
|
2
|
+
import { IHttpRequest } from "@fiado/http-client";
|
|
3
|
+
import GetAccountLevelParams from "@fiado/type-kit/bin/fraudPreventionEngine/dtos/GetAccountLevelParams";
|
|
4
|
+
import CreateAccountLevelRequest from "@fiado/type-kit/bin/fraudPreventionEngine/dtos/CreateAccountLevelRequest";
|
|
5
|
+
export default class FraudPreventionEngineApi implements IFraudPreventionEngineApi {
|
|
6
|
+
private httpRequest;
|
|
7
|
+
private readonly baseUrl;
|
|
8
|
+
constructor(httpRequest: IHttpRequest);
|
|
9
|
+
getAccountLevel(params: GetAccountLevelParams): Promise<any>;
|
|
10
|
+
createAccountLevel(request: CreateAccountLevelRequest): Promise<any>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const inversify_1 = require("inversify");
|
|
16
|
+
let FraudPreventionEngineApi = class FraudPreventionEngineApi {
|
|
17
|
+
constructor(httpRequest) {
|
|
18
|
+
this.httpRequest = httpRequest;
|
|
19
|
+
this.baseUrl = process.env.FRAUD_PREVENTION_ENGINE_LAMBDA_URL || "";
|
|
20
|
+
}
|
|
21
|
+
async getAccountLevel(params) {
|
|
22
|
+
const url = `${this.baseUrl}/account/levels?${Object.entries(params).map(([key, value]) => `${key}=${encodeURIComponent(value)}`).join('&')}`;
|
|
23
|
+
return await this.httpRequest.get(url);
|
|
24
|
+
}
|
|
25
|
+
async createAccountLevel(request) {
|
|
26
|
+
const url = `${this.baseUrl}/account/levels`;
|
|
27
|
+
return await this.httpRequest.post(url, request);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
FraudPreventionEngineApi = __decorate([
|
|
31
|
+
(0, inversify_1.injectable)(),
|
|
32
|
+
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
33
|
+
__metadata("design:paramtypes", [Object])
|
|
34
|
+
], FraudPreventionEngineApi);
|
|
35
|
+
exports.default = FraudPreventionEngineApi;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import GetAccountLevelParams from "@fiado/type-kit/bin/fraudPreventionEngine/dtos/GetAccountLevelParams";
|
|
2
|
+
import CreateAccountLevelRequest from "@fiado/type-kit/bin/fraudPreventionEngine/dtos/CreateAccountLevelRequest";
|
|
3
|
+
export interface IFraudPreventionEngineApi {
|
|
4
|
+
getAccountLevel(params: GetAccountLevelParams): Promise<any>;
|
|
5
|
+
createAccountLevel(request: CreateAccountLevelRequest): Promise<any>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./api/interfaces/IFraudPreventionEngineApi"), exports);
|
|
18
|
+
__exportStar(require("./api/FraudPreventionEngineApi"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IHttpRequest } from "@fiado/http-client";
|
|
2
|
+
import { GroupAddDirectoryRequest, GroupResponse } from "@fiado/type-kit/bin/group";
|
|
3
|
+
import { IGroupApi } from "./interfaces/IGroupApi";
|
|
4
|
+
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
5
|
+
export declare class GroupApi implements IGroupApi {
|
|
6
|
+
private httpRequest;
|
|
7
|
+
private readonly baseUrl;
|
|
8
|
+
constructor(httpRequest: IHttpRequest);
|
|
9
|
+
getMembershipDirectoryUserList(directories: string[], pageSize: number, index?: string): Promise<FiadoApiResponse<{
|
|
10
|
+
directory: string;
|
|
11
|
+
groups: GroupResponse[];
|
|
12
|
+
}[]>>;
|
|
13
|
+
findByCategory(categoryId: string): Promise<any>;
|
|
14
|
+
findAll(params: {
|
|
15
|
+
index?: string;
|
|
16
|
+
pageSize?: number;
|
|
17
|
+
}): Promise<any>;
|
|
18
|
+
members(params: GroupAddDirectoryRequest): Promise<any>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
15
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.GroupApi = void 0;
|
|
19
|
+
const inversify_1 = require("inversify");
|
|
20
|
+
const dotenv_1 = __importDefault(require("dotenv"));
|
|
21
|
+
dotenv_1.default.config();
|
|
22
|
+
let GroupApi = class GroupApi {
|
|
23
|
+
constructor(httpRequest) {
|
|
24
|
+
this.httpRequest = httpRequest;
|
|
25
|
+
this.baseUrl = process.env.FIADO_GROUP_LAMBDA_URL || "";
|
|
26
|
+
}
|
|
27
|
+
async getMembershipDirectoryUserList(directories, pageSize, index) {
|
|
28
|
+
const queryParams = [];
|
|
29
|
+
directories.forEach(directory => {
|
|
30
|
+
queryParams.push(`directoryId=${directory}`);
|
|
31
|
+
});
|
|
32
|
+
if (pageSize) {
|
|
33
|
+
queryParams.push(`pageSize=${pageSize}`);
|
|
34
|
+
}
|
|
35
|
+
if (index) {
|
|
36
|
+
queryParams.push(`index=${index}`);
|
|
37
|
+
}
|
|
38
|
+
const url = `${this.baseUrl}groups/directories?${queryParams.join('&')}`;
|
|
39
|
+
return await this.httpRequest.get(`${url}`);
|
|
40
|
+
}
|
|
41
|
+
async findByCategory(categoryId) {
|
|
42
|
+
const url = `${this.baseUrl}groups/categories/${categoryId}`;
|
|
43
|
+
return await this.httpRequest.get(`${url}`);
|
|
44
|
+
}
|
|
45
|
+
async findAll(params) {
|
|
46
|
+
let queryParams = [];
|
|
47
|
+
let queryParamsString = '';
|
|
48
|
+
if (params.index) {
|
|
49
|
+
queryParams.push(`index=${params.index}`);
|
|
50
|
+
}
|
|
51
|
+
if (params.pageSize) {
|
|
52
|
+
queryParams.push(`pageSize=${params.pageSize}`);
|
|
53
|
+
}
|
|
54
|
+
if (queryParams.length > 0) {
|
|
55
|
+
queryParamsString = `?${queryParams.join('&')}`;
|
|
56
|
+
}
|
|
57
|
+
const url = `${this.baseUrl}groups/all${queryParamsString}`;
|
|
58
|
+
return await this.httpRequest.get(`${url}`);
|
|
59
|
+
}
|
|
60
|
+
async members(params) {
|
|
61
|
+
const url = `${this.baseUrl}members`;
|
|
62
|
+
return await this.httpRequest.post(`${url}`, params);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
exports.GroupApi = GroupApi;
|
|
66
|
+
exports.GroupApi = GroupApi = __decorate([
|
|
67
|
+
(0, inversify_1.injectable)(),
|
|
68
|
+
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
69
|
+
__metadata("design:paramtypes", [Object])
|
|
70
|
+
], GroupApi);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./interfaces/IGroupApi"), exports);
|
|
18
|
+
__exportStar(require("./GroupApi"), exports);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
2
|
+
import { GroupAddDirectoryRequest, GroupResponse } from "@fiado/type-kit/bin/group";
|
|
3
|
+
/**
|
|
4
|
+
* Interfaz para el servicio Directory que permite operaciones sobre directorios.
|
|
5
|
+
*/
|
|
6
|
+
export interface IGroupApi {
|
|
7
|
+
/**
|
|
8
|
+
* Agrega o elimina miembros a un grupo.
|
|
9
|
+
* @param GroupAddDirectoryRequest
|
|
10
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
11
|
+
*/
|
|
12
|
+
members(params: GroupAddDirectoryRequest): Promise<any>;
|
|
13
|
+
/**
|
|
14
|
+
* Buscar grupos por categoria.
|
|
15
|
+
* @param categoryId ID de la categoria.
|
|
16
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
17
|
+
*/
|
|
18
|
+
findByCategory(categoryId: string): Promise<any>;
|
|
19
|
+
/**
|
|
20
|
+
* Buscar grupos por directorios
|
|
21
|
+
* @param categoryId ID de la categoria.
|
|
22
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
23
|
+
*/
|
|
24
|
+
getMembershipDirectoryUserList(directories: string[], pageSize: number, index?: string): Promise<FiadoApiResponse<{
|
|
25
|
+
directory: string;
|
|
26
|
+
groups: GroupResponse[];
|
|
27
|
+
}[]>>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IIdentityApi } from "./interfaces/IIdentityApi";
|
|
2
|
+
import { IHttpRequest } from "@fiado/http-client";
|
|
3
|
+
import { PeopleUpdateRequest, UploadDocumentRequest } from "@fiado/type-kit/bin/identity";
|
|
4
|
+
export declare class IdentityApi implements IIdentityApi {
|
|
5
|
+
private httpRequest;
|
|
6
|
+
private readonly baseUrl;
|
|
7
|
+
constructor(httpRequest: IHttpRequest);
|
|
8
|
+
getPeopleByIds(ids: string[]): Promise<any>;
|
|
9
|
+
getPeopleByCurp(curp: string): Promise<any>;
|
|
10
|
+
updatePeopleById(id: string, data: PeopleUpdateRequest): Promise<void>;
|
|
11
|
+
getProfilePicture(directoryId: string): Promise<any>;
|
|
12
|
+
privateUploadDocument(directoryId: string, document: UploadDocumentRequest): Promise<any>;
|
|
13
|
+
getPeopleByFullName(fullName: string): Promise<any>;
|
|
14
|
+
privateGetDocumentsUrlSigned(directoryId: string, documentNames: string[]): Promise<any>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
15
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.IdentityApi = void 0;
|
|
19
|
+
const inversify_1 = require("inversify");
|
|
20
|
+
const dotenv_1 = __importDefault(require("dotenv"));
|
|
21
|
+
dotenv_1.default.config();
|
|
22
|
+
let IdentityApi = class IdentityApi {
|
|
23
|
+
constructor(httpRequest) {
|
|
24
|
+
this.httpRequest = httpRequest;
|
|
25
|
+
this.baseUrl = process.env.IDENTITY_LAMBDA_URL || "";
|
|
26
|
+
}
|
|
27
|
+
async getPeopleByIds(ids) {
|
|
28
|
+
if (ids.length === 0) {
|
|
29
|
+
throw new Error("At least one people ID is required.");
|
|
30
|
+
}
|
|
31
|
+
const url = `${this.baseUrl}identities/people?${ids.map(id => `id=${encodeURIComponent(id)}`).join('&')}`;
|
|
32
|
+
return await this.httpRequest.get(`${url}`);
|
|
33
|
+
}
|
|
34
|
+
async getPeopleByCurp(curp) {
|
|
35
|
+
if (!curp) {
|
|
36
|
+
throw new Error("CURP is required.");
|
|
37
|
+
}
|
|
38
|
+
const operationName = "getPeopleByCurp";
|
|
39
|
+
const url = `${this.baseUrl}?curp=${curp}`;
|
|
40
|
+
return await this.httpRequest.post(`${url}`, null, { 'operationName': operationName });
|
|
41
|
+
}
|
|
42
|
+
async updatePeopleById(id, data) {
|
|
43
|
+
if (!id) {
|
|
44
|
+
throw new Error("People ID is required.");
|
|
45
|
+
}
|
|
46
|
+
const url = `${this.baseUrl}identities/people/${id}`;
|
|
47
|
+
await this.httpRequest.put(url, data);
|
|
48
|
+
}
|
|
49
|
+
async getProfilePicture(directoryId) {
|
|
50
|
+
if (!directoryId) {
|
|
51
|
+
throw new Error("Directory ID is required.");
|
|
52
|
+
}
|
|
53
|
+
const url = `${this.baseUrl}identities/profile?directoryId=${directoryId}&typeOfDirectoryId=USER`;
|
|
54
|
+
// const operationName = "getUserInfoByIds";
|
|
55
|
+
return await this.httpRequest.get(url);
|
|
56
|
+
}
|
|
57
|
+
async privateUploadDocument(directoryId, document) {
|
|
58
|
+
if (!directoryId) {
|
|
59
|
+
throw new Error("Directory ID is required.");
|
|
60
|
+
}
|
|
61
|
+
const url = `${this.baseUrl}/documents/${directoryId}/upload`;
|
|
62
|
+
return await this.httpRequest.post(url, document);
|
|
63
|
+
}
|
|
64
|
+
async getPeopleByFullName(fullName) {
|
|
65
|
+
if (!fullName) {
|
|
66
|
+
throw new Error("Full name is required.");
|
|
67
|
+
}
|
|
68
|
+
const url = `${this.baseUrl}identities/people/search?fullName=${fullName}`;
|
|
69
|
+
return await this.httpRequest.get(url);
|
|
70
|
+
}
|
|
71
|
+
async privateGetDocumentsUrlSigned(directoryId, documentNames) {
|
|
72
|
+
const queryParams = [];
|
|
73
|
+
for (const documentName of documentNames) {
|
|
74
|
+
queryParams.push(`id=${documentName}`);
|
|
75
|
+
}
|
|
76
|
+
const url = `${this.baseUrl}identities/private/people/${directoryId}/documents/signed?${queryParams.join('&')}`;
|
|
77
|
+
return await this.httpRequest.get(url);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
exports.IdentityApi = IdentityApi;
|
|
81
|
+
exports.IdentityApi = IdentityApi = __decorate([
|
|
82
|
+
(0, inversify_1.injectable)(),
|
|
83
|
+
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
84
|
+
__metadata("design:paramtypes", [Object])
|
|
85
|
+
], IdentityApi);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./interfaces/IIdentityApi"), exports);
|
|
18
|
+
__exportStar(require("./IdentityApi"), exports);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PeopleUpdateRequest, UploadDocumentRequest } from "@fiado/type-kit/bin/identity";
|
|
2
|
+
/**
|
|
3
|
+
* Interfaz para el servicio Directory que permite operaciones sobre directorios.
|
|
4
|
+
*/
|
|
5
|
+
export interface IIdentityApi {
|
|
6
|
+
/**
|
|
7
|
+
* Obtiene una lista de people por sus IDs.
|
|
8
|
+
* @param ids Array de IDs de peopleId (UUIDs) a buscar.
|
|
9
|
+
* @returns Una promesa que resuelve a un arreglo de objetos de people.
|
|
10
|
+
* Puede devolver un arreglo vacío si no se encuentran coincidencias.
|
|
11
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
12
|
+
*/
|
|
13
|
+
getPeopleByIds(ids: string[]): Promise<any>;
|
|
14
|
+
/**
|
|
15
|
+
* Actualiza la información de un people.
|
|
16
|
+
* @param id ID de people a actualizar.
|
|
17
|
+
* @param data Datos de people a actualizar.
|
|
18
|
+
* @returns Una promesa que resuelve a void.
|
|
19
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
20
|
+
*/
|
|
21
|
+
updatePeopleById(id: string, data: PeopleUpdateRequest): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Obtiene la URL de la imagen de perfil de un usuario.
|
|
24
|
+
* @param directoryId ID de directorio del usuario.
|
|
25
|
+
* @returns Una promesa que resuelve a un objeto con la URL de la imagen de perfil.
|
|
26
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
27
|
+
*/
|
|
28
|
+
getProfilePicture(directoryId: string): Promise<any>;
|
|
29
|
+
getPeopleByCurp(curp: string): Promise<any>;
|
|
30
|
+
privateUploadDocument(directoryId: string, document: UploadDocumentRequest): Promise<any>;
|
|
31
|
+
getPeopleByFullName(fullName: string): Promise<any>;
|
|
32
|
+
privateGetDocumentsUrlSigned(directoryId: string, documentNames: string[]): Promise<any>;
|
|
33
|
+
}
|
package/bin/index.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export * from './directory';
|
|
2
|
+
export * from './identity';
|
|
3
|
+
export * from './notificationMessages';
|
|
4
|
+
export * from './sessionActivity';
|
|
5
|
+
export * from './tern';
|
|
6
|
+
export * from './pomelo';
|
|
7
|
+
export * from './address';
|
|
8
|
+
export * from './stpAccount';
|
|
9
|
+
export * from "./container.config";
|
|
10
|
+
export * from "./account-fiadoinc";
|
|
11
|
+
export * from "./account-fiadosa";
|
|
12
|
+
export * from "./account-pagoconfiado";
|
|
13
|
+
export * from "./account-beneficiary";
|
|
14
|
+
export * from "./exchangeRates";
|
|
15
|
+
export * from "./authentication";
|
|
16
|
+
export * from "./transaction";
|
|
17
|
+
export * from "./contract-generator";
|
|
18
|
+
export * from "./product-catalog";
|
|
19
|
+
export * from "./collector";
|
|
20
|
+
export * from "./p2pContact";
|
|
21
|
+
export * from "./bankAccount";
|
|
22
|
+
export * from "./stpSpei";
|
|
23
|
+
export * from "./stpServicePayment";
|
|
24
|
+
export * from "./bbvaRst";
|
|
25
|
+
export * from "./fraudPreventionEngine";
|
|
26
|
+
export * from "./group";
|
|
27
|
+
export * from "./activity-business";
|
|
28
|
+
export * from "./transactionProcessor";
|
|
29
|
+
export * from "./riskProfile";
|
|
30
|
+
export * from "./fiadoMessages";
|
|
31
|
+
export * from "./cnbv-business";
|
|
32
|
+
export * from "./pomeloProcessor";
|
|
33
|
+
export * from "./disputes";
|
|
34
|
+
export * from "./directories";
|
|
35
|
+
export * from "./cognitoConnector";
|
|
36
|
+
export * from "./centralPayments";
|
|
37
|
+
export * from "./zendesk";
|
|
38
|
+
export * from "./blacklist";
|
|
39
|
+
export * from "./legalDocument";
|
|
40
|
+
export * from "./device";
|
|
41
|
+
export * from "./observations";
|
|
42
|
+
export * from "./service-business";
|
|
43
|
+
export * from "./pricelist-business";
|
|
44
|
+
export * from "./card";
|
|
45
|
+
export * from "./document-image-processor";
|
|
46
|
+
export * from "./order-collector-business";
|
|
47
|
+
export * from "./estafeta";
|
|
48
|
+
export * from "./appselectondata";
|
|
49
|
+
export * from "./directorySetting";
|
package/bin/index.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./directory"), exports);
|
|
18
|
+
__exportStar(require("./identity"), exports);
|
|
19
|
+
__exportStar(require("./notificationMessages"), exports);
|
|
20
|
+
__exportStar(require("./sessionActivity"), exports);
|
|
21
|
+
__exportStar(require("./tern"), exports);
|
|
22
|
+
__exportStar(require("./pomelo"), exports);
|
|
23
|
+
__exportStar(require("./address"), exports);
|
|
24
|
+
__exportStar(require("./stpAccount"), exports);
|
|
25
|
+
__exportStar(require("./container.config"), exports);
|
|
26
|
+
__exportStar(require("./account-fiadoinc"), exports);
|
|
27
|
+
__exportStar(require("./account-fiadosa"), exports);
|
|
28
|
+
__exportStar(require("./account-pagoconfiado"), exports);
|
|
29
|
+
__exportStar(require("./account-beneficiary"), exports);
|
|
30
|
+
__exportStar(require("./exchangeRates"), exports);
|
|
31
|
+
__exportStar(require("./authentication"), exports);
|
|
32
|
+
__exportStar(require("./transaction"), exports);
|
|
33
|
+
__exportStar(require("./contract-generator"), exports);
|
|
34
|
+
__exportStar(require("./product-catalog"), exports);
|
|
35
|
+
__exportStar(require("./collector"), exports);
|
|
36
|
+
__exportStar(require("./p2pContact"), exports);
|
|
37
|
+
__exportStar(require("./bankAccount"), exports);
|
|
38
|
+
__exportStar(require("./stpSpei"), exports);
|
|
39
|
+
__exportStar(require("./stpServicePayment"), exports);
|
|
40
|
+
__exportStar(require("./bbvaRst"), exports);
|
|
41
|
+
__exportStar(require("./fraudPreventionEngine"), exports);
|
|
42
|
+
__exportStar(require("./group"), exports);
|
|
43
|
+
__exportStar(require("./activity-business"), exports);
|
|
44
|
+
__exportStar(require("./transactionProcessor"), exports);
|
|
45
|
+
__exportStar(require("./riskProfile"), exports);
|
|
46
|
+
__exportStar(require("./fiadoMessages"), exports);
|
|
47
|
+
__exportStar(require("./cnbv-business"), exports);
|
|
48
|
+
__exportStar(require("./pomeloProcessor"), exports);
|
|
49
|
+
__exportStar(require("./disputes"), exports);
|
|
50
|
+
__exportStar(require("./directories"), exports);
|
|
51
|
+
__exportStar(require("./cognitoConnector"), exports);
|
|
52
|
+
__exportStar(require("./centralPayments"), exports);
|
|
53
|
+
__exportStar(require("./zendesk"), exports);
|
|
54
|
+
__exportStar(require("./blacklist"), exports);
|
|
55
|
+
__exportStar(require("./legalDocument"), exports);
|
|
56
|
+
__exportStar(require("./device"), exports);
|
|
57
|
+
__exportStar(require("./observations"), exports);
|
|
58
|
+
__exportStar(require("./service-business"), exports);
|
|
59
|
+
__exportStar(require("./pricelist-business"), exports);
|
|
60
|
+
__exportStar(require("./card"), exports);
|
|
61
|
+
__exportStar(require("./document-image-processor"), exports);
|
|
62
|
+
__exportStar(require("./order-collector-business"), exports);
|
|
63
|
+
__exportStar(require("./estafeta"), exports);
|
|
64
|
+
__exportStar(require("./appselectondata"), exports);
|
|
65
|
+
__exportStar(require("./directorySetting"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ILegalDocumentApi } from "./interfaces/ILegalDocumentApi";
|
|
2
|
+
import { IHttpRequest } from "@fiado/http-client";
|
|
3
|
+
export declare class LegalDocumentApi implements ILegalDocumentApi {
|
|
4
|
+
private httpRequest;
|
|
5
|
+
private readonly baseUrl;
|
|
6
|
+
constructor(httpRequest: IHttpRequest);
|
|
7
|
+
getPendingSign(directoryId: string): Promise<any>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.LegalDocumentApi = void 0;
|
|
16
|
+
const inversify_1 = require("inversify");
|
|
17
|
+
let LegalDocumentApi = class LegalDocumentApi {
|
|
18
|
+
constructor(httpRequest) {
|
|
19
|
+
this.httpRequest = httpRequest;
|
|
20
|
+
this.baseUrl = process.env.LEGAL_DOCUMENT_LAMBDA_URL || "";
|
|
21
|
+
}
|
|
22
|
+
async getPendingSign(directoryId) {
|
|
23
|
+
if (!directoryId) {
|
|
24
|
+
throw new Error("Directory ID is required.");
|
|
25
|
+
}
|
|
26
|
+
const url = `${this.baseUrl}documents/directories/directoryId=${directoryId}`;
|
|
27
|
+
return await this.httpRequest.get(url);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.LegalDocumentApi = LegalDocumentApi;
|
|
31
|
+
exports.LegalDocumentApi = LegalDocumentApi = __decorate([
|
|
32
|
+
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
33
|
+
__metadata("design:paramtypes", [Object])
|
|
34
|
+
], LegalDocumentApi);
|