@fiado/api-invoker 1.3.83 → 1.3.85
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/package.json +1 -1
- package/src/centralPayments/CentralPaymentsConnectorApi.ts +1 -1
- package/src/centralPayments/interfaces/ICentralPaymentsConnectorApi.ts +1 -1
- package/src/transaction/api/interfaces/ITransactionApi.ts +35 -16
- package/bin/account-beneficiary/AccountBeneficiaryApi.d.ts +0 -10
- package/bin/account-beneficiary/AccountBeneficiaryApi.js +0 -32
- package/bin/account-beneficiary/index.d.ts +0 -2
- package/bin/account-beneficiary/index.js +0 -18
- package/bin/account-beneficiary/interfaces/IAccountBeneficiaryApi.d.ts +0 -5
- package/bin/account-beneficiary/interfaces/IAccountBeneficiaryApi.js +0 -2
- package/bin/account-fiadoinc/AccountFiadoIncApi.d.ts +0 -32
- package/bin/account-fiadoinc/AccountFiadoIncApi.js +0 -84
- package/bin/account-fiadoinc/index.d.ts +0 -4
- package/bin/account-fiadoinc/index.js +0 -20
- package/bin/account-fiadoinc/interfaces/IAccountFiadoIncApi.d.ts +0 -18
- package/bin/account-fiadoinc/interfaces/IAccountFiadoIncApi.js +0 -2
- package/bin/account-fiadoinc/queue/Publisher.d.ts +0 -9
- package/bin/account-fiadoinc/queue/Publisher.js +0 -34
- package/bin/account-fiadoinc/queue/interfaces/IPublisher.d.ts +0 -7
- package/bin/account-fiadoinc/queue/interfaces/IPublisher.js +0 -2
- package/bin/account-fiadosa/AccountFiadoSAApi.d.ts +0 -15
- package/bin/account-fiadosa/AccountFiadoSAApi.js +0 -47
- package/bin/account-fiadosa/index.d.ts +0 -2
- package/bin/account-fiadosa/index.js +0 -18
- package/bin/account-fiadosa/interfaces/IAccountFiadoSAApi.d.ts +0 -10
- package/bin/account-fiadosa/interfaces/IAccountFiadoSAApi.js +0 -2
- package/bin/account-pagoconfiado/AccountPagoConfiadoApi.d.ts +0 -17
- package/bin/account-pagoconfiado/AccountPagoConfiadoApi.js +0 -55
- package/bin/account-pagoconfiado/index.d.ts +0 -2
- package/bin/account-pagoconfiado/index.js +0 -18
- package/bin/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.d.ts +0 -12
- package/bin/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.js +0 -2
- package/bin/activity-business/ActivityApi.d.ts +0 -12
- package/bin/activity-business/ActivityApi.js +0 -49
- package/bin/activity-business/index.d.ts +0 -4
- package/bin/activity-business/index.js +0 -20
- package/bin/activity-business/interfaces/IActivityApi.d.ts +0 -7
- package/bin/activity-business/interfaces/IActivityApi.js +0 -2
- package/bin/activity-business/queue/ActivityPublisher.d.ts +0 -6
- package/bin/activity-business/queue/ActivityPublisher.js +0 -36
- package/bin/activity-business/queue/IActivityPublisher.d.ts +0 -4
- package/bin/activity-business/queue/IActivityPublisher.js +0 -2
- package/bin/address/AddressApi.d.ts +0 -13
- package/bin/address/AddressApi.js +0 -55
- package/bin/address/index.d.ts +0 -2
- package/bin/address/index.js +0 -18
- package/bin/address/interfaces/IAddressApi.d.ts +0 -26
- package/bin/address/interfaces/IAddressApi.js +0 -2
- package/bin/appselectondata/AppSelectionDataApi.d.ts +0 -12
- package/bin/appselectondata/AppSelectionDataApi.js +0 -47
- package/bin/appselectondata/index.d.ts +0 -2
- package/bin/appselectondata/index.js +0 -18
- package/bin/appselectondata/interfaces/IAppSelectionDataApi.d.ts +0 -18
- package/bin/appselectondata/interfaces/IAppSelectionDataApi.js +0 -2
- package/bin/authentication/AuthenticationApi.d.ts +0 -8
- package/bin/authentication/AuthenticationApi.js +0 -32
- package/bin/authentication/index.d.ts +0 -2
- package/bin/authentication/index.js +0 -18
- package/bin/authentication/interfaces/IAuthenticationApi.d.ts +0 -4
- package/bin/authentication/interfaces/IAuthenticationApi.js +0 -2
- package/bin/bankAccount/BankAccountApi.d.ts +0 -13
- package/bin/bankAccount/BankAccountApi.js +0 -43
- package/bin/bankAccount/index.d.ts +0 -2
- package/bin/bankAccount/index.js +0 -18
- package/bin/bankAccount/interfaces/IBankAccountApi.d.ts +0 -5
- package/bin/bankAccount/interfaces/IBankAccountApi.js +0 -2
- package/bin/bbvaRst/api/BBVARstApi.d.ts +0 -9
- package/bin/bbvaRst/api/BBVARstApi.js +0 -32
- package/bin/bbvaRst/api/interfaces/IBBVARstApi.d.ts +0 -4
- package/bin/bbvaRst/api/interfaces/IBBVARstApi.js +0 -2
- package/bin/bbvaRst/index.d.ts +0 -2
- package/bin/bbvaRst/index.js +0 -18
- package/bin/blacklist/BlackListApi.d.ts +0 -12
- package/bin/blacklist/BlackListApi.js +0 -37
- package/bin/blacklist/index.d.ts +0 -2
- package/bin/blacklist/index.js +0 -18
- package/bin/blacklist/interfaces/IBlackListApi.d.ts +0 -17
- package/bin/blacklist/interfaces/IBlackListApi.js +0 -2
- package/bin/card/CardApi.d.ts +0 -21
- package/bin/card/CardApi.js +0 -69
- package/bin/card/index.d.ts +0 -2
- package/bin/card/index.js +0 -18
- package/bin/card/interfaces/ICardApi.d.ts +0 -15
- package/bin/card/interfaces/ICardApi.js +0 -2
- package/bin/centralPayments/CentralPaymentsConnectorApi.d.ts +0 -67
- package/bin/centralPayments/CentralPaymentsConnectorApi.js +0 -223
- package/bin/centralPayments/index.d.ts +0 -2
- package/bin/centralPayments/index.js +0 -18
- package/bin/centralPayments/interfaces/ICentralPaymentsConnectorApi.d.ts +0 -57
- package/bin/centralPayments/interfaces/ICentralPaymentsConnectorApi.js +0 -2
- package/bin/cnbv-business/CnbvApi.d.ts +0 -8
- package/bin/cnbv-business/CnbvApi.js +0 -31
- package/bin/cnbv-business/index.d.ts +0 -2
- package/bin/cnbv-business/index.js +0 -18
- package/bin/cnbv-business/interfaces/ICnbvApi.d.ts +0 -3
- package/bin/cnbv-business/interfaces/ICnbvApi.js +0 -2
- package/bin/cognitoConnector/CognitoConnectorApi.d.ts +0 -16
- package/bin/cognitoConnector/CognitoConnectorApi.js +0 -89
- package/bin/cognitoConnector/CognitoConnectorV2.d.ts +0 -18
- package/bin/cognitoConnector/CognitoConnectorV2.js +0 -74
- package/bin/cognitoConnector/index.d.ts +0 -4
- package/bin/cognitoConnector/index.js +0 -20
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApi.d.ts +0 -12
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApi.js +0 -2
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApiV2.d.ts +0 -46
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApiV2.js +0 -2
- package/bin/cognitoConnector/interfaces/ICognitoV2Api.d.ts +0 -46
- package/bin/cognitoConnector/interfaces/ICognitoV2Api.js +0 -2
- package/bin/collector/CollectorApi.d.ts +0 -17
- package/bin/collector/CollectorApi.js +0 -64
- package/bin/collector/index.d.ts +0 -2
- package/bin/collector/index.js +0 -18
- package/bin/collector/interfaces/ICollectorApi.d.ts +0 -22
- package/bin/collector/interfaces/ICollectorApi.js +0 -2
- package/bin/contactInformation/ContactInformationApi.d.ts +0 -9
- package/bin/contactInformation/ContactInformationApi.js +0 -31
- package/bin/contactInformation/index.d.ts +0 -2
- package/bin/contactInformation/index.js +0 -18
- package/bin/contactInformation/interface/IContactInformationApi.d.ts +0 -4
- package/bin/contactInformation/interface/IContactInformationApi.js +0 -2
- package/bin/container.config.d.ts +0 -2
- package/bin/container.config.js +0 -121
- package/bin/contract-generator/ContractGeneratorApi.d.ts +0 -9
- package/bin/contract-generator/ContractGeneratorApi.js +0 -37
- package/bin/contract-generator/index.d.ts +0 -2
- package/bin/contract-generator/index.js +0 -18
- package/bin/contract-generator/interfaces/IContractGeneratorApi.d.ts +0 -14
- package/bin/contract-generator/interfaces/IContractGeneratorApi.js +0 -2
- package/bin/device/DeviceApi.d.ts +0 -14
- package/bin/device/DeviceApi.js +0 -45
- package/bin/device/index.d.ts +0 -2
- package/bin/device/index.js +0 -18
- package/bin/device/interfaces/IDeviceApi.d.ts +0 -30
- package/bin/device/interfaces/IDeviceApi.js +0 -2
- package/bin/directories/DirectoriesApi.d.ts +0 -20
- package/bin/directories/DirectoriesApi.js +0 -61
- package/bin/directories/index.d.ts +0 -2
- package/bin/directories/index.js +0 -18
- package/bin/directories/interfaces/IDirectoriesApi.d.ts +0 -21
- package/bin/directories/interfaces/IDirectoriesApi.js +0 -2
- package/bin/directory/DirectoryApi.d.ts +0 -22
- package/bin/directory/DirectoryApi.js +0 -145
- package/bin/directory/index.d.ts +0 -2
- package/bin/directory/index.js +0 -18
- package/bin/directory/interfaces/IDirectoryApi.d.ts +0 -55
- package/bin/directory/interfaces/IDirectoryApi.js +0 -2
- package/bin/directorySetting/DirectorySettingApi.d.ts +0 -31
- package/bin/directorySetting/DirectorySettingApi.js +0 -56
- package/bin/directorySetting/index.d.ts +0 -2
- package/bin/directorySetting/index.js +0 -18
- package/bin/directorySetting/interfaces/IDirectorySettingApi.d.ts +0 -42
- package/bin/directorySetting/interfaces/IDirectorySettingApi.js +0 -2
- package/bin/disputes/DisputesApi.d.ts +0 -24
- package/bin/disputes/DisputesApi.js +0 -61
- package/bin/disputes/index.d.ts +0 -2
- package/bin/disputes/index.js +0 -18
- package/bin/disputes/interfaces/IDisputesApi.d.ts +0 -48
- package/bin/disputes/interfaces/IDisputesApi.js +0 -2
- package/bin/document-image-processor/DocumentImageProcessorApi.d.ts +0 -11
- package/bin/document-image-processor/DocumentImageProcessorApi.js +0 -36
- package/bin/document-image-processor/index.d.ts +0 -2
- package/bin/document-image-processor/index.js +0 -18
- package/bin/document-image-processor/interfaces/IDocumentImageProcessorApi.d.ts +0 -6
- package/bin/document-image-processor/interfaces/IDocumentImageProcessorApi.js +0 -2
- package/bin/estafeta/EstafetaApi.d.ts +0 -0
- package/bin/estafeta/EstafetaApi.js +0 -0
- package/bin/estafeta/api/EstafetaApi.d.ts +0 -26
- package/bin/estafeta/api/EstafetaApi.js +0 -71
- package/bin/estafeta/api/interfaces/IEstafetaApi.d.ts +0 -20
- package/bin/estafeta/api/interfaces/IEstafetaApi.js +0 -2
- package/bin/estafeta/index.d.ts +0 -2
- package/bin/estafeta/index.js +0 -18
- package/bin/exchangeRates/ExchangeRatesApi.d.ts +0 -11
- package/bin/exchangeRates/ExchangeRatesApi.js +0 -39
- package/bin/exchangeRates/index.d.ts +0 -2
- package/bin/exchangeRates/index.js +0 -18
- package/bin/exchangeRates/interfaces/IExchangeRatesApi.d.ts +0 -6
- package/bin/exchangeRates/interfaces/IExchangeRatesApi.js +0 -2
- package/bin/fiadoMessages/api/FiadoMessagesApi.d.ts +0 -8
- package/bin/fiadoMessages/api/FiadoMessagesApi.js +0 -37
- package/bin/fiadoMessages/api/interfaces/IFiadoMessagesApi.d.ts +0 -3
- package/bin/fiadoMessages/api/interfaces/IFiadoMessagesApi.js +0 -2
- package/bin/fiadoMessages/index.d.ts +0 -2
- package/bin/fiadoMessages/index.js +0 -18
- package/bin/fraudPreventionEngine/api/FraudPreventionEngineApi.d.ts +0 -11
- package/bin/fraudPreventionEngine/api/FraudPreventionEngineApi.js +0 -35
- package/bin/fraudPreventionEngine/api/interfaces/IFraudPreventionEngineApi.d.ts +0 -6
- package/bin/fraudPreventionEngine/api/interfaces/IFraudPreventionEngineApi.js +0 -2
- package/bin/fraudPreventionEngine/index.d.ts +0 -2
- package/bin/fraudPreventionEngine/index.js +0 -18
- package/bin/group/GroupApi.d.ts +0 -19
- package/bin/group/GroupApi.js +0 -70
- package/bin/group/index.d.ts +0 -2
- package/bin/group/index.js +0 -18
- package/bin/group/interfaces/IGroupApi.d.ts +0 -28
- package/bin/group/interfaces/IGroupApi.js +0 -2
- package/bin/identity/IdentityApi.d.ts +0 -15
- package/bin/identity/IdentityApi.js +0 -85
- package/bin/identity/index.d.ts +0 -2
- package/bin/identity/index.js +0 -18
- package/bin/identity/interfaces/IIdentityApi.d.ts +0 -33
- package/bin/identity/interfaces/IIdentityApi.js +0 -2
- package/bin/index.d.ts +0 -49
- package/bin/index.js +0 -65
- package/bin/legalDocument/api/LegalDocumentApi.d.ts +0 -8
- package/bin/legalDocument/api/LegalDocumentApi.js +0 -34
- package/bin/legalDocument/api/interfaces/ILegalDocumentApi.d.ts +0 -3
- package/bin/legalDocument/api/interfaces/ILegalDocumentApi.js +0 -2
- package/bin/legalDocument/index.d.ts +0 -2
- package/bin/legalDocument/index.js +0 -18
- package/bin/notificationMessages/index.d.ts +0 -2
- package/bin/notificationMessages/index.js +0 -18
- package/bin/notificationMessages/queue/NotificationMessagePublisher.d.ts +0 -12
- package/bin/notificationMessages/queue/NotificationMessagePublisher.js +0 -47
- package/bin/notificationMessages/queue/interfaces/INotificationMessagesPublisher.d.ts +0 -6
- package/bin/notificationMessages/queue/interfaces/INotificationMessagesPublisher.js +0 -2
- package/bin/observations/ObservationsApi.d.ts +0 -10
- package/bin/observations/ObservationsApi.js +0 -39
- package/bin/observations/index.d.ts +0 -2
- package/bin/observations/index.js +0 -18
- package/bin/observations/interfaces/IObservationsApi.d.ts +0 -8
- package/bin/observations/interfaces/IObservationsApi.js +0 -2
- package/bin/order-collector-business/OrderCollectorApi.d.ts +0 -9
- package/bin/order-collector-business/OrderCollectorApi.js +0 -37
- package/bin/order-collector-business/index.d.ts +0 -2
- package/bin/order-collector-business/index.js +0 -18
- package/bin/order-collector-business/interfaces/IOrderCollectorApi.d.ts +0 -7
- package/bin/order-collector-business/interfaces/IOrderCollectorApi.js +0 -2
- package/bin/p2pContact/api/P2pContactApi.d.ts +0 -9
- package/bin/p2pContact/api/P2pContactApi.js +0 -34
- package/bin/p2pContact/api/interfaces/IP2pContactApi.d.ts +0 -4
- package/bin/p2pContact/api/interfaces/IP2pContactApi.js +0 -2
- package/bin/p2pContact/index.d.ts +0 -2
- package/bin/p2pContact/index.js +0 -18
- package/bin/pomelo/api/PomeloApi.d.ts +0 -23
- package/bin/pomelo/api/PomeloApi.js +0 -86
- package/bin/pomelo/api/interfaces/IPomeloApi.d.ts +0 -17
- package/bin/pomelo/api/interfaces/IPomeloApi.js +0 -2
- package/bin/pomelo/index.d.ts +0 -2
- package/bin/pomelo/index.js +0 -18
- package/bin/pomeloProcessor/api/PomeloProcessorApi.d.ts +0 -8
- package/bin/pomeloProcessor/api/PomeloProcessorApi.js +0 -32
- package/bin/pomeloProcessor/api/interfaces/IPomeloProcessorApi.d.ts +0 -3
- package/bin/pomeloProcessor/api/interfaces/IPomeloProcessorApi.js +0 -2
- package/bin/pomeloProcessor/index.d.ts +0 -2
- package/bin/pomeloProcessor/index.js +0 -18
- package/bin/pricelist-business/PriceListApi.d.ts +0 -15
- package/bin/pricelist-business/PriceListApi.js +0 -55
- package/bin/pricelist-business/index.d.ts +0 -2
- package/bin/pricelist-business/index.js +0 -18
- package/bin/pricelist-business/interfaces/IPriceListApi.d.ts +0 -18
- package/bin/pricelist-business/interfaces/IPriceListApi.js +0 -2
- package/bin/product-catalog/ProductCatalogApi.d.ts +0 -10
- package/bin/product-catalog/ProductCatalogApi.js +0 -31
- package/bin/product-catalog/index.d.ts +0 -2
- package/bin/product-catalog/index.js +0 -18
- package/bin/product-catalog/interfaces/IProductCatalogApi.d.ts +0 -5
- package/bin/product-catalog/interfaces/IProductCatalogApi.js +0 -2
- package/bin/riskProfile/api/RiskProfileApi.d.ts +0 -15
- package/bin/riskProfile/api/RiskProfileApi.js +0 -47
- package/bin/riskProfile/api/TransactionAlertApi.d.ts +0 -13
- package/bin/riskProfile/api/TransactionAlertApi.js +0 -31
- package/bin/riskProfile/api/interfaces/IRiskProfileApi.d.ts +0 -10
- package/bin/riskProfile/api/interfaces/IRiskProfileApi.js +0 -2
- package/bin/riskProfile/api/interfaces/ITransactionAlertApi.d.ts +0 -8
- package/bin/riskProfile/api/interfaces/ITransactionAlertApi.js +0 -2
- package/bin/riskProfile/index.d.ts +0 -6
- package/bin/riskProfile/index.js +0 -22
- package/bin/riskProfile/queue/TransactionAlarmPublisher.d.ts +0 -6
- package/bin/riskProfile/queue/TransactionAlarmPublisher.js +0 -36
- package/bin/riskProfile/queue/interfaces/ITransactionAlarmPublisher.d.ts +0 -4
- package/bin/riskProfile/queue/interfaces/ITransactionAlarmPublisher.js +0 -2
- package/bin/service-business/ServiceApi.d.ts +0 -32
- package/bin/service-business/ServiceApi.js +0 -89
- package/bin/service-business/index.d.ts +0 -2
- package/bin/service-business/index.js +0 -18
- package/bin/service-business/interfaces/IServiceApi.d.ts +0 -72
- package/bin/service-business/interfaces/IServiceApi.js +0 -2
- package/bin/sessionActivity/index.d.ts +0 -2
- package/bin/sessionActivity/index.js +0 -18
- package/bin/sessionActivity/queue/SessionActivityPublisher.d.ts +0 -6
- package/bin/sessionActivity/queue/SessionActivityPublisher.js +0 -34
- package/bin/sessionActivity/queue/interfaces/ISessionActivityPublisher.d.ts +0 -4
- package/bin/sessionActivity/queue/interfaces/ISessionActivityPublisher.js +0 -2
- package/bin/stpAccount/api/STPAccountApi.d.ts +0 -15
- package/bin/stpAccount/api/STPAccountApi.js +0 -39
- package/bin/stpAccount/api/interfaces/ISTPAccountApi.d.ts +0 -10
- package/bin/stpAccount/api/interfaces/ISTPAccountApi.js +0 -2
- package/bin/stpAccount/index.d.ts +0 -2
- package/bin/stpAccount/index.js +0 -18
- package/bin/stpServicePayment/api/StpServicePaymentApi.d.ts +0 -14
- package/bin/stpServicePayment/api/StpServicePaymentApi.js +0 -50
- package/bin/stpServicePayment/api/interfaces/IStpServicePaymentApi.d.ts +0 -9
- package/bin/stpServicePayment/api/interfaces/IStpServicePaymentApi.js +0 -2
- package/bin/stpServicePayment/index.d.ts +0 -2
- package/bin/stpServicePayment/index.js +0 -18
- package/bin/stpSpei/api/StpSpeiApi.d.ts +0 -10
- package/bin/stpSpei/api/StpSpeiApi.js +0 -47
- package/bin/stpSpei/api/interfaces/IStpSpeiApi.d.ts +0 -5
- package/bin/stpSpei/api/interfaces/IStpSpeiApi.js +0 -2
- package/bin/stpSpei/index.d.ts +0 -2
- package/bin/stpSpei/index.js +0 -18
- package/bin/tern/api/TernApi.d.ts +0 -30
- package/bin/tern/api/TernApi.js +0 -125
- package/bin/tern/api/interfaces/ITernApi.d.ts +0 -26
- package/bin/tern/api/interfaces/ITernApi.js +0 -2
- package/bin/tern/index.d.ts +0 -2
- package/bin/tern/index.js +0 -18
- package/bin/transaction/api/TransactionApi.d.ts +0 -45
- package/bin/transaction/api/TransactionApi.js +0 -84
- package/bin/transaction/api/interfaces/ITransactionApi.d.ts +0 -40
- package/bin/transaction/api/interfaces/ITransactionApi.js +0 -2
- package/bin/transaction/index.d.ts +0 -4
- package/bin/transaction/index.js +0 -20
- package/bin/transaction/queue/TransactionPublisher.d.ts +0 -6
- package/bin/transaction/queue/TransactionPublisher.js +0 -36
- package/bin/transaction/queue/interfaces/ITransactionPublisher.d.ts +0 -4
- package/bin/transaction/queue/interfaces/ITransactionPublisher.js +0 -2
- package/bin/transactionProcessor/api/TransactionProcessorApi.d.ts +0 -16
- package/bin/transactionProcessor/api/TransactionProcessorApi.js +0 -51
- package/bin/transactionProcessor/api/interfaces/ITransactionProcessorApi.d.ts +0 -11
- package/bin/transactionProcessor/api/interfaces/ITransactionProcessorApi.js +0 -2
- package/bin/transactionProcessor/index.d.ts +0 -2
- package/bin/transactionProcessor/index.js +0 -18
- package/bin/utils/InvokerUtils.d.ts +0 -4
- package/bin/utils/InvokerUtils.js +0 -34
- package/bin/zendesk/ZendeskApi.d.ts +0 -11
- package/bin/zendesk/ZendeskApi.js +0 -41
- package/bin/zendesk/index.d.ts +0 -2
- package/bin/zendesk/index.js +0 -18
- package/bin/zendesk/interfaces/IZendeskApi.d.ts +0 -9
- package/bin/zendesk/interfaces/IZendeskApi.js +0 -2
package/bin/container.config.js
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.apiInvokerBindings = void 0;
|
|
7
|
-
const inversify_1 = require("inversify");
|
|
8
|
-
const directory_1 = require("./directory");
|
|
9
|
-
const identity_1 = require("./identity");
|
|
10
|
-
const NotificationMessagePublisher_1 = __importDefault(require("./notificationMessages/queue/NotificationMessagePublisher"));
|
|
11
|
-
const TernApi_1 = __importDefault(require("./tern/api/TernApi"));
|
|
12
|
-
const PomeloApi_1 = __importDefault(require("./pomelo/api/PomeloApi"));
|
|
13
|
-
const address_1 = require("./address");
|
|
14
|
-
const account_fiadoinc_1 = require("./account-fiadoinc");
|
|
15
|
-
const AccountFiadoIncApi_1 = __importDefault(require("./account-fiadoinc/AccountFiadoIncApi"));
|
|
16
|
-
const AccountPagoConfiadoApi_1 = __importDefault(require("./account-pagoconfiado/AccountPagoConfiadoApi"));
|
|
17
|
-
const AccountFiadoSAApi_1 = __importDefault(require("./account-fiadosa/AccountFiadoSAApi"));
|
|
18
|
-
const STPAccountApi_1 = __importDefault(require("./stpAccount/api/STPAccountApi"));
|
|
19
|
-
const sessionActivity_1 = require("./sessionActivity");
|
|
20
|
-
const ExchangeRatesApi_1 = __importDefault(require("./exchangeRates/ExchangeRatesApi"));
|
|
21
|
-
const authentication_1 = require("./authentication");
|
|
22
|
-
const card_1 = require("./card");
|
|
23
|
-
const transaction_1 = require("./transaction");
|
|
24
|
-
const contract_generator_1 = require("./contract-generator");
|
|
25
|
-
const ProductCatalogApi_1 = __importDefault(require("./product-catalog/ProductCatalogApi"));
|
|
26
|
-
const collector_1 = require("./collector");
|
|
27
|
-
const P2pContactApi_1 = __importDefault(require("./p2pContact/api/P2pContactApi"));
|
|
28
|
-
const BankAccountApi_1 = __importDefault(require("./bankAccount/BankAccountApi"));
|
|
29
|
-
const account_beneficiary_1 = require("./account-beneficiary");
|
|
30
|
-
const stpSpei_1 = require("./stpSpei");
|
|
31
|
-
const StpServicePaymentApi_1 = __importDefault(require("./stpServicePayment/api/StpServicePaymentApi"));
|
|
32
|
-
const bbvaRst_1 = require("./bbvaRst");
|
|
33
|
-
const FraudPreventionEngineApi_1 = __importDefault(require("./fraudPreventionEngine/api/FraudPreventionEngineApi"));
|
|
34
|
-
const group_1 = require("./group");
|
|
35
|
-
const ActivityApi_1 = __importDefault(require("./activity-business/ActivityApi"));
|
|
36
|
-
const TransactionProcessorApi_1 = __importDefault(require("./transactionProcessor/api/TransactionProcessorApi"));
|
|
37
|
-
const ActivityPublisher_1 = __importDefault(require("./activity-business/queue/ActivityPublisher"));
|
|
38
|
-
const RiskProfileApi_1 = __importDefault(require("./riskProfile/api/RiskProfileApi"));
|
|
39
|
-
const riskProfile_1 = require("./riskProfile");
|
|
40
|
-
const contactInformation_1 = require("./contactInformation");
|
|
41
|
-
const fiadoMessages_1 = require("./fiadoMessages");
|
|
42
|
-
const CnbvApi_1 = __importDefault(require("./cnbv-business/CnbvApi"));
|
|
43
|
-
const TransactionApi_1 = __importDefault(require("./transaction/api/TransactionApi"));
|
|
44
|
-
const pomeloProcessor_1 = require("./pomeloProcessor");
|
|
45
|
-
const disputes_1 = require("./disputes");
|
|
46
|
-
const TransactionAlertApi_1 = __importDefault(require("./riskProfile/api/TransactionAlertApi"));
|
|
47
|
-
const directories_1 = require("./directories");
|
|
48
|
-
const CognitoConnectorApi_1 = __importDefault(require("./cognitoConnector/CognitoConnectorApi"));
|
|
49
|
-
const zendesk_1 = require("./zendesk");
|
|
50
|
-
const blacklist_1 = require("./blacklist");
|
|
51
|
-
const device_1 = require("./device");
|
|
52
|
-
const observations_1 = require("./observations");
|
|
53
|
-
const CognitoConnectorV2_1 = __importDefault(require("./cognitoConnector/CognitoConnectorV2"));
|
|
54
|
-
const centralPayments_1 = require("./centralPayments");
|
|
55
|
-
const InvokerUtils_1 = require("./utils/InvokerUtils");
|
|
56
|
-
const pricelist_business_1 = require("./pricelist-business");
|
|
57
|
-
const service_business_1 = require("./service-business");
|
|
58
|
-
const document_image_processor_1 = require("./document-image-processor");
|
|
59
|
-
const order_collector_business_1 = require("./order-collector-business");
|
|
60
|
-
const EstafetaApi_1 = __importDefault(require("./estafeta/api/EstafetaApi"));
|
|
61
|
-
const appselectondata_1 = require("./appselectondata");
|
|
62
|
-
const directorySetting_1 = require("./directorySetting");
|
|
63
|
-
exports.apiInvokerBindings = new inversify_1.ContainerModule((bind) => {
|
|
64
|
-
// UTILS bindings
|
|
65
|
-
bind("InvokerUtils").to(InvokerUtils_1.InvokerUtils);
|
|
66
|
-
// API invoker bindings
|
|
67
|
-
bind("IDirectoryApi").to(directory_1.DirectoryApi);
|
|
68
|
-
bind("IIdentityApi").to(identity_1.IdentityApi);
|
|
69
|
-
bind("IAddressApi").to(address_1.AddressApi);
|
|
70
|
-
bind("IExchangeRatesApi").to(ExchangeRatesApi_1.default);
|
|
71
|
-
bind("ITernApi").to(TernApi_1.default);
|
|
72
|
-
bind("IPomeloApi").to(PomeloApi_1.default);
|
|
73
|
-
bind("ISTPAccountApi").to(STPAccountApi_1.default);
|
|
74
|
-
bind("IAccountFiadoIncApi").to(AccountFiadoIncApi_1.default);
|
|
75
|
-
bind("IAccountPagoConfiadoApi").to(AccountPagoConfiadoApi_1.default);
|
|
76
|
-
bind("IAccountFiadoSAApi").to(AccountFiadoSAApi_1.default);
|
|
77
|
-
bind("INotificationMessagesPublisher").to(NotificationMessagePublisher_1.default);
|
|
78
|
-
bind("ISessionActivityPublisher").to(sessionActivity_1.SessionActivityPublisher);
|
|
79
|
-
bind("ITransactionPublisher").to(transaction_1.TransactionPublisher);
|
|
80
|
-
bind("ITransactionApi").to(TransactionApi_1.default);
|
|
81
|
-
bind("IAuthenticationApi").to(authentication_1.AuthenticationApi);
|
|
82
|
-
bind("ICardApi").to(card_1.CardApi);
|
|
83
|
-
bind("IContractGeneratorApi").to(contract_generator_1.ContractGeneratorApi);
|
|
84
|
-
bind("ICollectorApi").to(collector_1.CollectorApi);
|
|
85
|
-
bind("IProductCatalogApi").to(ProductCatalogApi_1.default);
|
|
86
|
-
bind("IP2pContactApi").to(P2pContactApi_1.default);
|
|
87
|
-
bind("IBankAccountApi").to(BankAccountApi_1.default);
|
|
88
|
-
bind("IAccountBeneficiaryApi").to(account_beneficiary_1.AccountBeneficiaryApi);
|
|
89
|
-
bind("IStpSpeiApi").to(stpSpei_1.StpSpeiApi);
|
|
90
|
-
bind("IStpServicePaymentApi").to(StpServicePaymentApi_1.default);
|
|
91
|
-
bind("IBBVARstApi").to(bbvaRst_1.BBVARstApi);
|
|
92
|
-
bind("IFraudPreventionEngineApi").to(FraudPreventionEngineApi_1.default);
|
|
93
|
-
bind("IGroupApi").to(group_1.GroupApi);
|
|
94
|
-
bind("IActivityApi").to(ActivityApi_1.default);
|
|
95
|
-
bind("ITransactionProcessorApi").to(TransactionProcessorApi_1.default);
|
|
96
|
-
bind("IActivityPublisher").to(ActivityPublisher_1.default);
|
|
97
|
-
bind("IRiskProfileApi").to(RiskProfileApi_1.default);
|
|
98
|
-
bind("ITransactionAlarmPublisher").to(riskProfile_1.TransactionAlarmPublisher);
|
|
99
|
-
bind("IContactInformationApi").to(contactInformation_1.ContactInformationApi);
|
|
100
|
-
bind("IFiadoMessagesApi").to(fiadoMessages_1.FiadoMessagesApi);
|
|
101
|
-
bind("ICnbvApi").to(CnbvApi_1.default);
|
|
102
|
-
bind("IPomeloProcessorApi").to(pomeloProcessor_1.PomeloProcessorApi);
|
|
103
|
-
bind("IDisputesApi").to(disputes_1.DisputesApi);
|
|
104
|
-
bind("ITransactionAlertApi").to(TransactionAlertApi_1.default);
|
|
105
|
-
bind("IDirectoriesApi").to(directories_1.DirectoriesApi);
|
|
106
|
-
bind("ICognitoConnectorApi").to(CognitoConnectorApi_1.default);
|
|
107
|
-
bind("ICognitoV2Api").to(CognitoConnectorV2_1.default);
|
|
108
|
-
bind("IZendeskApi").to(zendesk_1.ZendeskApi);
|
|
109
|
-
bind("IBlackListApi").to(blacklist_1.BlackListApi);
|
|
110
|
-
bind("IDeviceApi").to(device_1.DeviceApi);
|
|
111
|
-
bind("IObservationsApi").to(observations_1.ObservationsApi);
|
|
112
|
-
bind("ICentralPaymentsConnectorApi").to(centralPayments_1.CentralPaymentsConnectorApi);
|
|
113
|
-
bind("IPublisher").to(account_fiadoinc_1.Publisher);
|
|
114
|
-
bind("IPriceListApi").to(pricelist_business_1.PriceListApi);
|
|
115
|
-
bind("IServiceApi").to(service_business_1.ServiceApi);
|
|
116
|
-
bind("IDocumentImageProcessorApi").to(document_image_processor_1.DocumentImageProcessorApi);
|
|
117
|
-
bind("IOrderCollectorApi").to(order_collector_business_1.OrderCollectorApi);
|
|
118
|
-
bind("IEstafetaApi").to(EstafetaApi_1.default);
|
|
119
|
-
bind("IAppSelectionDataApi").to(appselectondata_1.AppSelectionDataApi);
|
|
120
|
-
bind("IDirectorySettingApi").to(directorySetting_1.DirectorySettingApi);
|
|
121
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IContractGeneratorApi } from "./interfaces/IContractGeneratorApi";
|
|
2
|
-
import { IHttpRequest } from "@fiado/http-client";
|
|
3
|
-
import { ContractCreateRequest } from "@fiado/type-kit/bin/contract";
|
|
4
|
-
export declare class ContractGeneratorApi implements IContractGeneratorApi {
|
|
5
|
-
private httpRequest;
|
|
6
|
-
private readonly baseUrl;
|
|
7
|
-
constructor(httpRequest: IHttpRequest);
|
|
8
|
-
generate(params: ContractCreateRequest): Promise<any>;
|
|
9
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
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.ContractGeneratorApi = void 0;
|
|
19
|
-
const inversify_1 = require("inversify");
|
|
20
|
-
const dotenv_1 = __importDefault(require("dotenv"));
|
|
21
|
-
dotenv_1.default.config();
|
|
22
|
-
let ContractGeneratorApi = class ContractGeneratorApi {
|
|
23
|
-
constructor(httpRequest) {
|
|
24
|
-
this.httpRequest = httpRequest;
|
|
25
|
-
this.baseUrl = process.env.CONTRACT_GENERATOR_URL || "";
|
|
26
|
-
}
|
|
27
|
-
async generate(params) {
|
|
28
|
-
const url = `${this.baseUrl}`;
|
|
29
|
-
return await this.httpRequest.post(`${url}`, params, { 'spring.cloud.function.definition': "generateReport" });
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
exports.ContractGeneratorApi = ContractGeneratorApi;
|
|
33
|
-
exports.ContractGeneratorApi = ContractGeneratorApi = __decorate([
|
|
34
|
-
(0, inversify_1.injectable)(),
|
|
35
|
-
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
36
|
-
__metadata("design:paramtypes", [Object])
|
|
37
|
-
], ContractGeneratorApi);
|
|
@@ -1,18 +0,0 @@
|
|
|
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/IContractGeneratorApi"), exports);
|
|
18
|
-
__exportStar(require("./ContractGeneratorApi"), exports);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ContractCreateRequest } from "@fiado/type-kit/bin/contract";
|
|
2
|
-
/**
|
|
3
|
-
* Interfaz para el servicio Contract Generator.
|
|
4
|
-
*/
|
|
5
|
-
export interface IContractGeneratorApi {
|
|
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
|
-
generate(params: ContractCreateRequest): Promise<any>;
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IHttpRequest } from "@fiado/http-client";
|
|
2
|
-
import { IDeviceApi } from "./interfaces/IDeviceApi";
|
|
3
|
-
import { RegisterDeviceRequest } from "@fiado/type-kit/bin/device";
|
|
4
|
-
export declare class DeviceApi implements IDeviceApi {
|
|
5
|
-
private httpRequest;
|
|
6
|
-
private readonly baseUrl;
|
|
7
|
-
constructor(httpRequest: IHttpRequest);
|
|
8
|
-
getById(id: string): Promise<void>;
|
|
9
|
-
registerDevice(params: RegisterDeviceRequest): Promise<void>;
|
|
10
|
-
getDevicesByDirectoryIdAndStatus(params: {
|
|
11
|
-
directoryId: string;
|
|
12
|
-
status: string;
|
|
13
|
-
}): Promise<void>;
|
|
14
|
-
}
|
package/bin/device/DeviceApi.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
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.DeviceApi = void 0;
|
|
19
|
-
const inversify_1 = require("inversify");
|
|
20
|
-
const dotenv_1 = __importDefault(require("dotenv"));
|
|
21
|
-
dotenv_1.default.config();
|
|
22
|
-
let DeviceApi = class DeviceApi {
|
|
23
|
-
constructor(httpRequest) {
|
|
24
|
-
this.httpRequest = httpRequest;
|
|
25
|
-
this.baseUrl = process.env.DEVICE_BUSINESS_URL || "";
|
|
26
|
-
}
|
|
27
|
-
async getById(id) {
|
|
28
|
-
const url = `${this.baseUrl}devices/get/${id}`;
|
|
29
|
-
return await this.httpRequest.get(url);
|
|
30
|
-
}
|
|
31
|
-
async registerDevice(params) {
|
|
32
|
-
const url = `${this.baseUrl}devices`;
|
|
33
|
-
return await this.httpRequest.post(url, params);
|
|
34
|
-
}
|
|
35
|
-
async getDevicesByDirectoryIdAndStatus(params) {
|
|
36
|
-
const url = `${this.baseUrl}devices/directories/${params.directoryId}?status=${params.status}`;
|
|
37
|
-
return await this.httpRequest.get(url);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
exports.DeviceApi = DeviceApi;
|
|
41
|
-
exports.DeviceApi = DeviceApi = __decorate([
|
|
42
|
-
(0, inversify_1.injectable)(),
|
|
43
|
-
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
44
|
-
__metadata("design:paramtypes", [Object])
|
|
45
|
-
], DeviceApi);
|
package/bin/device/index.d.ts
DELETED
package/bin/device/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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/IDeviceApi"), exports);
|
|
18
|
-
__exportStar(require("./DeviceApi"), exports);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { RegisterDeviceRequest } from "@fiado/type-kit/bin/device";
|
|
2
|
-
/**
|
|
3
|
-
* Interfaz que define las operaciones que se pueden realizar en el servicio de black list.
|
|
4
|
-
*/
|
|
5
|
-
export interface IDeviceApi {
|
|
6
|
-
/**
|
|
7
|
-
* Registar un nuevo dispositivo
|
|
8
|
-
* @param value valor del parametro.
|
|
9
|
-
* @returns Una promesa que resuelve a void.
|
|
10
|
-
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
11
|
-
*/
|
|
12
|
-
registerDevice(params: RegisterDeviceRequest): Promise<void>;
|
|
13
|
-
/**
|
|
14
|
-
* Consultar dispositivos por id de directorio y estado
|
|
15
|
-
* @param value valor del parametro.
|
|
16
|
-
* @returns Una promesa que resuelve a void.
|
|
17
|
-
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
18
|
-
*/
|
|
19
|
-
getDevicesByDirectoryIdAndStatus(params: {
|
|
20
|
-
directoryId: string;
|
|
21
|
-
status: string;
|
|
22
|
-
}): Promise<void>;
|
|
23
|
-
/**
|
|
24
|
-
* Consultar dispositivos por id
|
|
25
|
-
* @param value valor del parametro.
|
|
26
|
-
* @returns Una promesa que resuelve a void.
|
|
27
|
-
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
28
|
-
*/
|
|
29
|
-
getById(id: string): Promise<void>;
|
|
30
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IHttpRequest } from "@fiado/http-client";
|
|
2
|
-
import { IDirectoriesApi } from "./interfaces/IDirectoriesApi";
|
|
3
|
-
import { DirectoryBackofficeResponse, DirectoryBackofficeCreateRequest, DirectoryBackofficeUpdateRequest } from '@fiado/type-kit/bin/directory';
|
|
4
|
-
import FiadoApiResponse from '@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse';
|
|
5
|
-
export declare class DirectoriesApi implements IDirectoriesApi {
|
|
6
|
-
private httpRequest;
|
|
7
|
-
private readonly baseUrl;
|
|
8
|
-
constructor(httpRequest: IHttpRequest);
|
|
9
|
-
getBackofficeDirectoryById(id: string): Promise<FiadoApiResponse<DirectoryBackofficeResponse>>;
|
|
10
|
-
createBackofficeDirectory(directory: DirectoryBackofficeCreateRequest): Promise<FiadoApiResponse<DirectoryBackofficeResponse>>;
|
|
11
|
-
getBackofficeDirectoryByEmail(email: string): Promise<FiadoApiResponse<DirectoryBackofficeResponse>>;
|
|
12
|
-
getBackofficeDirectoryList(params: {
|
|
13
|
-
pageSize?: number;
|
|
14
|
-
index?: string;
|
|
15
|
-
}): Promise<FiadoApiResponse<{
|
|
16
|
-
index: string | null;
|
|
17
|
-
items: DirectoryBackofficeResponse[];
|
|
18
|
-
}>>;
|
|
19
|
-
updateBackofficeDirectory(directoryId: string, params: DirectoryBackofficeUpdateRequest): Promise<FiadoApiResponse<DirectoryBackofficeResponse>>;
|
|
20
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
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.DirectoriesApi = void 0;
|
|
19
|
-
const dotenv_1 = __importDefault(require("dotenv"));
|
|
20
|
-
const inversify_1 = require("inversify");
|
|
21
|
-
dotenv_1.default.config();
|
|
22
|
-
let DirectoriesApi = class DirectoriesApi {
|
|
23
|
-
constructor(httpRequest) {
|
|
24
|
-
this.httpRequest = httpRequest;
|
|
25
|
-
this.baseUrl = process.env.DIRECTORIES_LAMBDA_URL || "";
|
|
26
|
-
}
|
|
27
|
-
async getBackofficeDirectoryById(id) {
|
|
28
|
-
const url = `${this.baseUrl}directories/backoffice/${id}`;
|
|
29
|
-
return await this.httpRequest.get(url);
|
|
30
|
-
}
|
|
31
|
-
async createBackofficeDirectory(directory) {
|
|
32
|
-
const url = `${this.baseUrl}directories/backoffice`;
|
|
33
|
-
return await this.httpRequest.post(url, directory);
|
|
34
|
-
}
|
|
35
|
-
async getBackofficeDirectoryByEmail(email) {
|
|
36
|
-
const url = `${this.baseUrl}directories/backoffice/search/email?email=${email}`;
|
|
37
|
-
return await this.httpRequest.get(url);
|
|
38
|
-
}
|
|
39
|
-
async getBackofficeDirectoryList(params) {
|
|
40
|
-
let queryParams = [];
|
|
41
|
-
if (params.pageSize) {
|
|
42
|
-
queryParams.push(`pageSize=${params.pageSize}`);
|
|
43
|
-
}
|
|
44
|
-
if (params.index) {
|
|
45
|
-
queryParams.push(`index=${params.index}`);
|
|
46
|
-
}
|
|
47
|
-
const queryString = queryParams.join('&');
|
|
48
|
-
const url = `${this.baseUrl}directories/backoffice/${queryString}`;
|
|
49
|
-
return await this.httpRequest.get(url);
|
|
50
|
-
}
|
|
51
|
-
async updateBackofficeDirectory(directoryId, params) {
|
|
52
|
-
const url = `${this.baseUrl}directories/backoffice/${directoryId}`;
|
|
53
|
-
return await this.httpRequest.put(url, params);
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
exports.DirectoriesApi = DirectoriesApi;
|
|
57
|
-
exports.DirectoriesApi = DirectoriesApi = __decorate([
|
|
58
|
-
(0, inversify_1.injectable)(),
|
|
59
|
-
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
60
|
-
__metadata("design:paramtypes", [Object])
|
|
61
|
-
], DirectoriesApi);
|
package/bin/directories/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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/IDirectoriesApi"), exports);
|
|
18
|
-
__exportStar(require("./DirectoriesApi"), exports);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import FiadoApiResponse from '@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse';
|
|
2
|
-
import { DirectoryBackofficeCreateRequest, DirectoryBackofficeResponse, DirectoryBackofficeUpdateRequest } from "@fiado/type-kit/bin/directory";
|
|
3
|
-
/**
|
|
4
|
-
* Interfaz para el servicio Directory que permite operaciones sobre directorios.
|
|
5
|
-
*/
|
|
6
|
-
export interface IDirectoriesApi {
|
|
7
|
-
/**
|
|
8
|
-
* Obtiene una directorio.
|
|
9
|
-
*/
|
|
10
|
-
getBackofficeDirectoryById(id: string): Promise<FiadoApiResponse<DirectoryBackofficeResponse>>;
|
|
11
|
-
createBackofficeDirectory(directory: DirectoryBackofficeCreateRequest): Promise<FiadoApiResponse<DirectoryBackofficeResponse>>;
|
|
12
|
-
getBackofficeDirectoryByEmail(email: string): Promise<FiadoApiResponse<DirectoryBackofficeResponse>>;
|
|
13
|
-
getBackofficeDirectoryList(params: {
|
|
14
|
-
pageSize?: number;
|
|
15
|
-
index?: string;
|
|
16
|
-
}): Promise<FiadoApiResponse<{
|
|
17
|
-
index: string | null;
|
|
18
|
-
items: DirectoryBackofficeResponse[];
|
|
19
|
-
}>>;
|
|
20
|
-
updateBackofficeDirectory(directoryId: string, params: DirectoryBackofficeUpdateRequest): Promise<FiadoApiResponse<DirectoryBackofficeResponse>>;
|
|
21
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { IHttpRequest } from "@fiado/http-client";
|
|
2
|
-
import { IDirectoryApi } from "./interfaces/IDirectoryApi";
|
|
3
|
-
import { Provider } from '@fiado/type-kit/bin/provider';
|
|
4
|
-
import { Profile } from '@fiado/type-kit/bin/directory/enums/Profile';
|
|
5
|
-
import { Status } from '@fiado/type-kit/bin/directory/enums/Status';
|
|
6
|
-
export declare class DirectoryApi implements IDirectoryApi {
|
|
7
|
-
private httpRequest;
|
|
8
|
-
private readonly baseUrl;
|
|
9
|
-
constructor(httpRequest: IHttpRequest);
|
|
10
|
-
validateSecretNumber(directoryId: string, secretNumber: string): Promise<void>;
|
|
11
|
-
getByIds(ids: string[]): Promise<any>;
|
|
12
|
-
updateExternalUserId(directoryId: string, provider: Provider, externalUserId: string): Promise<void>;
|
|
13
|
-
updateScope(directoryId: string, scope: string[]): Promise<void>;
|
|
14
|
-
getByOwnerDirectoryId(ownerDirectoryId: string): Promise<any>;
|
|
15
|
-
getByPhoneNumber(phoneNumber: string): Promise<any>;
|
|
16
|
-
addOwnerDirectoryId(directoryId: string, newOwnerDirectoryId: any): Promise<any>;
|
|
17
|
-
updateOwnerDirectoryId(directoryId: string, newOwnerDirectoryId: any): Promise<any>;
|
|
18
|
-
updateUserProfile(directoryId: string, profile: Profile): Promise<void>;
|
|
19
|
-
updateStatus(directoryId: string, status: Status): Promise<void>;
|
|
20
|
-
getByPeopleId(peopleId: string): Promise<any>;
|
|
21
|
-
private normalizeE164Light;
|
|
22
|
-
}
|
|
@@ -1,145 +0,0 @@
|
|
|
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.DirectoryApi = void 0;
|
|
19
|
-
const dotenv_1 = __importDefault(require("dotenv"));
|
|
20
|
-
const inversify_1 = require("inversify");
|
|
21
|
-
dotenv_1.default.config();
|
|
22
|
-
let DirectoryApi = class DirectoryApi {
|
|
23
|
-
constructor(httpRequest) {
|
|
24
|
-
this.httpRequest = httpRequest;
|
|
25
|
-
this.baseUrl = process.env.DIRECTORY_LAMBDA_URL || "";
|
|
26
|
-
}
|
|
27
|
-
async validateSecretNumber(directoryId, secretNumber) {
|
|
28
|
-
const url = `${this.baseUrl}`;
|
|
29
|
-
const operationName = "validateSecretNumber";
|
|
30
|
-
const body = {
|
|
31
|
-
directoryId,
|
|
32
|
-
secretNumber,
|
|
33
|
-
};
|
|
34
|
-
return await this.httpRequest.post(`${url}`, body, { 'operationName': operationName });
|
|
35
|
-
}
|
|
36
|
-
async getByIds(ids) {
|
|
37
|
-
if (ids.length === 0) {
|
|
38
|
-
throw new Error("At least one directory ID is required.");
|
|
39
|
-
}
|
|
40
|
-
const url = `${this.baseUrl}?${ids.map(id => `directoryId=${encodeURIComponent(id)}`).join('&')}`;
|
|
41
|
-
const operationName = "getUserInfoByIds";
|
|
42
|
-
return await this.httpRequest.post(`${url}`, null, { 'operationName': operationName });
|
|
43
|
-
}
|
|
44
|
-
async updateExternalUserId(directoryId, provider, externalUserId) {
|
|
45
|
-
const url = `${this.baseUrl}`;
|
|
46
|
-
const operationName = "updateExternalUser";
|
|
47
|
-
const body = {
|
|
48
|
-
directoryId: directoryId,
|
|
49
|
-
typeOfDirectoryId: "USER",
|
|
50
|
-
provider: provider,
|
|
51
|
-
user: externalUserId
|
|
52
|
-
};
|
|
53
|
-
return await this.httpRequest.post(`${url}`, body, { 'operationName': operationName });
|
|
54
|
-
}
|
|
55
|
-
async updateScope(directoryId, scope) {
|
|
56
|
-
const url = `${this.baseUrl}`;
|
|
57
|
-
const operationName = "updateScope";
|
|
58
|
-
const body = {
|
|
59
|
-
directoryId: directoryId,
|
|
60
|
-
typeOfDirectoryId: "USER",
|
|
61
|
-
scope: scope
|
|
62
|
-
};
|
|
63
|
-
return await this.httpRequest.post(`${url}`, body, { 'operationName': operationName });
|
|
64
|
-
}
|
|
65
|
-
async getByOwnerDirectoryId(ownerDirectoryId) {
|
|
66
|
-
const url = `${this.baseUrl}?ownerDirectoryId=${ownerDirectoryId}`;
|
|
67
|
-
const operationName = "getByOwnerDirectoryId";
|
|
68
|
-
return await this.httpRequest.post(`${url}`, null, { 'operationName': operationName });
|
|
69
|
-
}
|
|
70
|
-
// public async getByPhoneNumber(phoneNumber: string): Promise<any> {
|
|
71
|
-
// const url = `${this.baseUrl}?phoneNumber=${phoneNumber}`;
|
|
72
|
-
// const operationName = "getUserInfoByParams";
|
|
73
|
-
// return await this.httpRequest.post(`${url}`, null, { 'operationName': operationName });
|
|
74
|
-
// }
|
|
75
|
-
async getByPhoneNumber(phoneNumber) {
|
|
76
|
-
// 🔒 Normaliza y codifica para preservar el '+'
|
|
77
|
-
const normalized = this.normalizeE164Light(phoneNumber);
|
|
78
|
-
const url = `${this.baseUrl}?phoneNumber=${encodeURIComponent(normalized)}`;
|
|
79
|
-
const operationName = "getUserInfoByParams";
|
|
80
|
-
return await this.httpRequest.post(`${url}`, null, { 'operationName': operationName });
|
|
81
|
-
}
|
|
82
|
-
async addOwnerDirectoryId(directoryId, newOwnerDirectoryId) {
|
|
83
|
-
const url = `${this.baseUrl}`;
|
|
84
|
-
const operationName = "addOwnerDirectoryId";
|
|
85
|
-
const data = {
|
|
86
|
-
directoryId: directoryId,
|
|
87
|
-
ownerDirectoryId: newOwnerDirectoryId
|
|
88
|
-
};
|
|
89
|
-
return await this.httpRequest.post(`${url}`, data, { 'operationName': operationName });
|
|
90
|
-
}
|
|
91
|
-
async updateOwnerDirectoryId(directoryId, newOwnerDirectoryId) {
|
|
92
|
-
const url = `${this.baseUrl}`;
|
|
93
|
-
const operationName = "updateOwnerDirectoryId";
|
|
94
|
-
const data = {
|
|
95
|
-
directoryId: directoryId,
|
|
96
|
-
ownerDirectoryId: newOwnerDirectoryId
|
|
97
|
-
};
|
|
98
|
-
return await this.httpRequest.post(`${url}`, data, { 'operationName': operationName });
|
|
99
|
-
}
|
|
100
|
-
async updateUserProfile(directoryId, profile) {
|
|
101
|
-
const url = `${this.baseUrl}`;
|
|
102
|
-
const operationName = "updateUserProfile";
|
|
103
|
-
const body = {
|
|
104
|
-
directoryId: directoryId,
|
|
105
|
-
typeOfDirectoryId: "USER",
|
|
106
|
-
profile: profile
|
|
107
|
-
};
|
|
108
|
-
return await this.httpRequest.post(`${url}`, body, { 'operationName': operationName });
|
|
109
|
-
}
|
|
110
|
-
async updateStatus(directoryId, status) {
|
|
111
|
-
const url = `${this.baseUrl}`;
|
|
112
|
-
const operationName = "updateStatus";
|
|
113
|
-
const body = {
|
|
114
|
-
directoryId: directoryId,
|
|
115
|
-
status: status
|
|
116
|
-
};
|
|
117
|
-
await this.httpRequest.post(`${url}`, body, { 'operationName': operationName });
|
|
118
|
-
}
|
|
119
|
-
async getByPeopleId(peopleId) {
|
|
120
|
-
const url = `${this.baseUrl}?peopleId=${peopleId}`;
|
|
121
|
-
const operationName = "getUserInfoByParams";
|
|
122
|
-
return await this.httpRequest.post(`${url}`, null, { 'operationName': operationName });
|
|
123
|
-
}
|
|
124
|
-
// --- Helper ligero para E.164 limpia espacios y garantiza '+'
|
|
125
|
-
normalizeE164Light(input) {
|
|
126
|
-
if (!input)
|
|
127
|
-
return input;
|
|
128
|
-
const trimmed = String(input).trim().replace(/\s+/g, "");
|
|
129
|
-
// Si ya viene como +<dígitos>
|
|
130
|
-
if (/^\+\d{6,15}$/.test(trimmed))
|
|
131
|
-
return trimmed;
|
|
132
|
-
// Si viene como <dígitos> a secas, antepone '+'
|
|
133
|
-
if (/^\d{6,15}$/.test(trimmed))
|
|
134
|
-
return `+${trimmed}`;
|
|
135
|
-
// Si trae símbolos como '-', '(', ')', etc., filtra a dígitos y antepone '+'
|
|
136
|
-
const digits = trimmed.replace(/\D+/g, "");
|
|
137
|
-
return digits ? `+${digits}` : trimmed;
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
exports.DirectoryApi = DirectoryApi;
|
|
141
|
-
exports.DirectoryApi = DirectoryApi = __decorate([
|
|
142
|
-
(0, inversify_1.injectable)(),
|
|
143
|
-
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
144
|
-
__metadata("design:paramtypes", [Object])
|
|
145
|
-
], DirectoryApi);
|
package/bin/directory/index.d.ts
DELETED