@fiado/api-invoker 1.3.84 → 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,55 @@
|
|
|
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.PriceListApi = void 0;
|
|
19
|
+
const inversify_1 = require("inversify");
|
|
20
|
+
const dotenv_1 = __importDefault(require("dotenv"));
|
|
21
|
+
dotenv_1.default.config();
|
|
22
|
+
let PriceListApi = class PriceListApi {
|
|
23
|
+
constructor(httpRequest) {
|
|
24
|
+
this.httpRequest = httpRequest;
|
|
25
|
+
this.baseUrl = process.env.PRICELIST_BUSINESS_URL || "";
|
|
26
|
+
}
|
|
27
|
+
async getList(params) {
|
|
28
|
+
const queryParams = [];
|
|
29
|
+
if (params.pageSize) {
|
|
30
|
+
queryParams.push(`pageSize=${params.pageSize}`);
|
|
31
|
+
}
|
|
32
|
+
if (params.index) {
|
|
33
|
+
queryParams.push(`index=${params.index}`);
|
|
34
|
+
}
|
|
35
|
+
if (params.serviceId) {
|
|
36
|
+
queryParams.push(`serviceId=${params.serviceId}`);
|
|
37
|
+
}
|
|
38
|
+
const url = `${this.baseUrl}pricelist?${queryParams.join('&')}`;
|
|
39
|
+
return await this.httpRequest.get(`${url}`);
|
|
40
|
+
}
|
|
41
|
+
async getDiscountByServiceIdAndDirectories(directories, serviceId) {
|
|
42
|
+
const queryParams = [];
|
|
43
|
+
directories.forEach(directory => {
|
|
44
|
+
queryParams.push(`directoryId=${directory}`);
|
|
45
|
+
});
|
|
46
|
+
const url = `${this.baseUrl}discounts/directories/${serviceId}?${queryParams.join('&')}`;
|
|
47
|
+
return await this.httpRequest.get(`${url}`);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
exports.PriceListApi = PriceListApi;
|
|
51
|
+
exports.PriceListApi = PriceListApi = __decorate([
|
|
52
|
+
(0, inversify_1.injectable)(),
|
|
53
|
+
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
54
|
+
__metadata("design:paramtypes", [Object])
|
|
55
|
+
], PriceListApi);
|
|
@@ -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/IPriceListApi"), exports);
|
|
18
|
+
__exportStar(require("./PriceListApi"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
2
|
+
import { GetDiscountByServiceIdAndDirectoriesResponse, GetServiceMembershipListResponse } from "@fiado/type-kit/bin/pricelist";
|
|
3
|
+
/**
|
|
4
|
+
* Interfaz para el servicio Directory que permite operaciones sobre directorios.
|
|
5
|
+
*/
|
|
6
|
+
export interface IPriceListApi {
|
|
7
|
+
/**
|
|
8
|
+
* Buscar grupos por directorios
|
|
9
|
+
* @param categoryId ID de la categoria.
|
|
10
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
11
|
+
*/
|
|
12
|
+
getDiscountByServiceIdAndDirectories(directories: string[], serviceId: string): Promise<FiadoApiResponse<GetDiscountByServiceIdAndDirectoriesResponse>>;
|
|
13
|
+
getList(params: {
|
|
14
|
+
pageSize?: number;
|
|
15
|
+
index?: string;
|
|
16
|
+
serviceId?: string;
|
|
17
|
+
}): Promise<FiadoApiResponse<GetServiceMembershipListResponse>>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IProductCatalogApi } from "./interfaces/IProductCatalogApi";
|
|
2
|
+
import { IHttpRequest } from "@fiado/http-client";
|
|
3
|
+
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
4
|
+
import GetProductCatalogResponse from "@fiado/type-kit/bin/productCatalog/dtos/GetProductCatalogResponse";
|
|
5
|
+
export default class ProductCatalogApi implements IProductCatalogApi {
|
|
6
|
+
private httpRequest;
|
|
7
|
+
private readonly baseUrl;
|
|
8
|
+
constructor(httpRequest: IHttpRequest);
|
|
9
|
+
getProductCatalogByIds(ids: string[]): Promise<ApiGatewayResponse<GetProductCatalogResponse[]>>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 ProductCatalogApi = class ProductCatalogApi {
|
|
17
|
+
constructor(httpRequest) {
|
|
18
|
+
this.httpRequest = httpRequest;
|
|
19
|
+
this.baseUrl = process.env.PRODUCT_CATALOG_LAMBDA_URL || "";
|
|
20
|
+
}
|
|
21
|
+
async getProductCatalogByIds(ids) {
|
|
22
|
+
const url = `${this.baseUrl}?${ids.map(id => `id=${encodeURIComponent(id)}`).join('&')}`;
|
|
23
|
+
return await this.httpRequest.get(url);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
ProductCatalogApi = __decorate([
|
|
27
|
+
(0, inversify_1.injectable)(),
|
|
28
|
+
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
29
|
+
__metadata("design:paramtypes", [Object])
|
|
30
|
+
], ProductCatalogApi);
|
|
31
|
+
exports.default = ProductCatalogApi;
|
|
@@ -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/IProductCatalogApi"), exports);
|
|
18
|
+
__exportStar(require("./ProductCatalogApi"), exports);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
2
|
+
import GetProductCatalogResponse from "@fiado/type-kit/bin/productCatalog/dtos/GetProductCatalogResponse";
|
|
3
|
+
export interface IProductCatalogApi {
|
|
4
|
+
getProductCatalogByIds(ids: string[]): Promise<ApiGatewayResponse<GetProductCatalogResponse[]>>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IRiskProfileApi } from "./interfaces/IRiskProfileApi";
|
|
2
|
+
import { IHttpRequest } from "@fiado/http-client";
|
|
3
|
+
import { CreatePrivateAlarm, CreateRiskProfileRequest } from "@fiado/type-kit/bin/riskProfile";
|
|
4
|
+
import UpdateRiskProfileRequest from "@fiado/type-kit/bin/riskProfile/dtos/UpdateRiskProfileRequest";
|
|
5
|
+
import UpdateAlarmProfileRequest from "@fiado/type-kit/bin/riskProfile/dtos/UpdateAlarmProfileRequest";
|
|
6
|
+
export default class RiskProfileApi implements IRiskProfileApi {
|
|
7
|
+
private httpRequest;
|
|
8
|
+
private readonly baseUrl;
|
|
9
|
+
constructor(httpRequest: IHttpRequest);
|
|
10
|
+
createRiskProfile(request: CreateRiskProfileRequest): Promise<any>;
|
|
11
|
+
updateRiskProfile(request: UpdateRiskProfileRequest): Promise<any>;
|
|
12
|
+
updateAlarmProfile(request: UpdateAlarmProfileRequest): Promise<any>;
|
|
13
|
+
getRiskProfileByDirectoryId(directoryId: string): Promise<any>;
|
|
14
|
+
createAlarm(params: CreatePrivateAlarm): Promise<any>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 RiskProfileApi = class RiskProfileApi {
|
|
17
|
+
constructor(httpRequest) {
|
|
18
|
+
this.httpRequest = httpRequest;
|
|
19
|
+
this.baseUrl = process.env.RISK_PROFILE_LAMBDA_URL || "";
|
|
20
|
+
}
|
|
21
|
+
async createRiskProfile(request) {
|
|
22
|
+
const url = `${this.baseUrl}/profiles`;
|
|
23
|
+
return await this.httpRequest.post(url, request);
|
|
24
|
+
}
|
|
25
|
+
async updateRiskProfile(request) {
|
|
26
|
+
const url = `${this.baseUrl}/profiles`;
|
|
27
|
+
return await this.httpRequest.put(url, request);
|
|
28
|
+
}
|
|
29
|
+
async updateAlarmProfile(request) {
|
|
30
|
+
const url = `${this.baseUrl}/alarms`;
|
|
31
|
+
return await this.httpRequest.put(url, request);
|
|
32
|
+
}
|
|
33
|
+
async getRiskProfileByDirectoryId(directoryId) {
|
|
34
|
+
const url = `${this.baseUrl}/profiles/directories/${directoryId}`;
|
|
35
|
+
return await this.httpRequest.get(url);
|
|
36
|
+
}
|
|
37
|
+
async createAlarm(params) {
|
|
38
|
+
const url = `${this.baseUrl}/alarms/create`;
|
|
39
|
+
return await this.httpRequest.post(url, params);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
RiskProfileApi = __decorate([
|
|
43
|
+
(0, inversify_1.injectable)(),
|
|
44
|
+
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
45
|
+
__metadata("design:paramtypes", [Object])
|
|
46
|
+
], RiskProfileApi);
|
|
47
|
+
exports.default = RiskProfileApi;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ITransactionAlertApi } from "./interfaces/ITransactionAlertApi";
|
|
2
|
+
import { IHttpRequest } from "@fiado/http-client";
|
|
3
|
+
import { AlarmOperationType, TransactionAlertResponse } from "@fiado/type-kit/bin/riskProfile";
|
|
4
|
+
import { ResponseOptions } from "@fiado/gateway-adapter";
|
|
5
|
+
export default class TransactionAlertApi implements ITransactionAlertApi {
|
|
6
|
+
private httpRequest;
|
|
7
|
+
private readonly baseUrl;
|
|
8
|
+
constructor(httpRequest: IHttpRequest);
|
|
9
|
+
getAlerts(status: AlarmOperationType, reported: 1 | 0): Promise<ResponseOptions<{
|
|
10
|
+
items: TransactionAlertResponse[];
|
|
11
|
+
lastKey: any;
|
|
12
|
+
}>>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 TransactionAlertApi = class TransactionAlertApi {
|
|
17
|
+
constructor(httpRequest) {
|
|
18
|
+
this.httpRequest = httpRequest;
|
|
19
|
+
this.baseUrl = process.env.RISK_PROFILE_LAMBDA_URL || "";
|
|
20
|
+
}
|
|
21
|
+
async getAlerts(status, reported) {
|
|
22
|
+
const url = `${this.baseUrl}/alarms?status=${status}&reported=${reported}`;
|
|
23
|
+
return await this.httpRequest.get(url);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
TransactionAlertApi = __decorate([
|
|
27
|
+
(0, inversify_1.injectable)(),
|
|
28
|
+
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
29
|
+
__metadata("design:paramtypes", [Object])
|
|
30
|
+
], TransactionAlertApi);
|
|
31
|
+
exports.default = TransactionAlertApi;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CreatePrivateAlarm, CreateRiskProfileRequest } from "@fiado/type-kit/bin/riskProfile";
|
|
2
|
+
import UpdateAlarmProfileRequest from "@fiado/type-kit/bin/riskProfile/dtos/UpdateAlarmProfileRequest";
|
|
3
|
+
import UpdateRiskProfileRequest from "@fiado/type-kit/bin/riskProfile/dtos/UpdateRiskProfileRequest";
|
|
4
|
+
export interface IRiskProfileApi {
|
|
5
|
+
createRiskProfile(request: CreateRiskProfileRequest): Promise<any>;
|
|
6
|
+
updateRiskProfile(request: UpdateRiskProfileRequest): Promise<any>;
|
|
7
|
+
updateAlarmProfile(request: UpdateAlarmProfileRequest): Promise<any>;
|
|
8
|
+
getRiskProfileByDirectoryId(directoryId: string): Promise<any>;
|
|
9
|
+
createAlarm(params: CreatePrivateAlarm): Promise<any>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ResponseOptions } from "@fiado/gateway-adapter";
|
|
2
|
+
import { AlarmOperationType, TransactionAlertResponse } from "@fiado/type-kit/bin/riskProfile";
|
|
3
|
+
export interface ITransactionAlertApi {
|
|
4
|
+
getAlerts(status: AlarmOperationType, reported: 1 | 0): Promise<ResponseOptions<{
|
|
5
|
+
items: TransactionAlertResponse[];
|
|
6
|
+
lastKey: any;
|
|
7
|
+
}>>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './api/RiskProfileApi';
|
|
2
|
+
export * from './api/interfaces/IRiskProfileApi';
|
|
3
|
+
export * from './api/interfaces/ITransactionAlertApi';
|
|
4
|
+
export * from './api/TransactionAlertApi';
|
|
5
|
+
export * from './queue/TransactionAlarmPublisher';
|
|
6
|
+
export * from './queue/interfaces/ITransactionAlarmPublisher';
|
|
@@ -0,0 +1,22 @@
|
|
|
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/RiskProfileApi"), exports);
|
|
18
|
+
__exportStar(require("./api/interfaces/IRiskProfileApi"), exports);
|
|
19
|
+
__exportStar(require("./api/interfaces/ITransactionAlertApi"), exports);
|
|
20
|
+
__exportStar(require("./api/TransactionAlertApi"), exports);
|
|
21
|
+
__exportStar(require("./queue/TransactionAlarmPublisher"), exports);
|
|
22
|
+
__exportStar(require("./queue/interfaces/ITransactionAlarmPublisher"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TransactionAlarmQueueMessage } from "@fiado/type-kit/bin/riskProfile";
|
|
2
|
+
import { ITransactionAlarmPublisher } from "./interfaces/ITransactionAlarmPublisher";
|
|
3
|
+
export declare class TransactionAlarmPublisher implements ITransactionAlarmPublisher {
|
|
4
|
+
private readonly TRANSACTION_ALARM_QUEUE;
|
|
5
|
+
publish(message: TransactionAlarmQueueMessage): Promise<void>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.TransactionAlarmPublisher = void 0;
|
|
10
|
+
const client_sqs_1 = require("@aws-sdk/client-sqs");
|
|
11
|
+
const inversify_1 = require("inversify");
|
|
12
|
+
let TransactionAlarmPublisher = class TransactionAlarmPublisher {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.TRANSACTION_ALARM_QUEUE = process.env.TRANSACTION_ALARM_QUEUE;
|
|
15
|
+
}
|
|
16
|
+
async publish(message) {
|
|
17
|
+
try {
|
|
18
|
+
const client = new client_sqs_1.SQSClient();
|
|
19
|
+
const sendMessageRequest = {
|
|
20
|
+
QueueUrl: this.TRANSACTION_ALARM_QUEUE,
|
|
21
|
+
MessageBody: JSON.stringify(message),
|
|
22
|
+
MessageGroupId: message.transactionNumber,
|
|
23
|
+
MessageDeduplicationId: message.transactionNumber
|
|
24
|
+
};
|
|
25
|
+
const command = new client_sqs_1.SendMessageCommand(sendMessageRequest);
|
|
26
|
+
await client.send(command);
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
throw new Error(`Error publishing message to queue ${': ' + error.message}`);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.TransactionAlarmPublisher = TransactionAlarmPublisher;
|
|
34
|
+
exports.TransactionAlarmPublisher = TransactionAlarmPublisher = __decorate([
|
|
35
|
+
(0, inversify_1.injectable)()
|
|
36
|
+
], TransactionAlarmPublisher);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IHttpRequest } from "@fiado/http-client";
|
|
2
|
+
import { IServiceApi } from "./interfaces/IServiceApi";
|
|
3
|
+
import { GetServiceListResponse, GetServiceMembershipListResponse, RegisterServiceMembershipRequest, ServiceFlowEnum, ServiceMembershipResponse, ServiceMembershipStatusEnum, ServiceResponse, UpdateServiceMembershipRequest } from "@fiado/type-kit/bin/services";
|
|
4
|
+
import { ServiceCompanyEnum } from "@fiado/type-kit/bin/services/enums/ServiceCompanyEnum";
|
|
5
|
+
import { UpdateMultipleServiceMembershipStatusRequest } from "@fiado/type-kit/bin/services/dtos/UpdateMultipleServiceMembershipStatusRequest";
|
|
6
|
+
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
7
|
+
export declare class ServiceApi implements IServiceApi {
|
|
8
|
+
private httpRequest;
|
|
9
|
+
private readonly baseUrl;
|
|
10
|
+
constructor(httpRequest: IHttpRequest);
|
|
11
|
+
updateMultipleStatus(parameters: UpdateMultipleServiceMembershipStatusRequest): Promise<FiadoApiResponse<ServiceResponse>>;
|
|
12
|
+
getById(id: string): Promise<FiadoApiResponse<ServiceResponse>>;
|
|
13
|
+
getServices(params: {
|
|
14
|
+
pageSize?: number;
|
|
15
|
+
index?: string;
|
|
16
|
+
company?: ServiceCompanyEnum;
|
|
17
|
+
flow?: ServiceFlowEnum;
|
|
18
|
+
}): Promise<FiadoApiResponse<GetServiceListResponse>>;
|
|
19
|
+
getServiceMembershipsByDirectoryId(params: {
|
|
20
|
+
directoryId: string;
|
|
21
|
+
pageSize?: number;
|
|
22
|
+
index?: string;
|
|
23
|
+
}): Promise<FiadoApiResponse<GetServiceMembershipListResponse>>;
|
|
24
|
+
getServiceMembershipsByDirectoryIdAndStatus(params: {
|
|
25
|
+
pageSize?: number;
|
|
26
|
+
index?: string;
|
|
27
|
+
directoryId: string;
|
|
28
|
+
status: ServiceMembershipStatusEnum;
|
|
29
|
+
}): Promise<FiadoApiResponse<GetServiceMembershipListResponse>>;
|
|
30
|
+
updateServiceMembership(serviceMembershipId: string, params: UpdateServiceMembershipRequest): Promise<FiadoApiResponse<ServiceMembershipResponse>>;
|
|
31
|
+
createServiceMembership(params: RegisterServiceMembershipRequest): Promise<FiadoApiResponse<ServiceMembershipResponse>>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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.ServiceApi = void 0;
|
|
19
|
+
const inversify_1 = require("inversify");
|
|
20
|
+
const dotenv_1 = __importDefault(require("dotenv"));
|
|
21
|
+
dotenv_1.default.config();
|
|
22
|
+
let ServiceApi = class ServiceApi {
|
|
23
|
+
constructor(httpRequest) {
|
|
24
|
+
this.httpRequest = httpRequest;
|
|
25
|
+
this.baseUrl = process.env.SERVICE_BUSINESS_URL || "";
|
|
26
|
+
}
|
|
27
|
+
async updateMultipleStatus(parameters) {
|
|
28
|
+
const url = `${this.baseUrl}services/memberships/batch/update/status`;
|
|
29
|
+
return await this.httpRequest.put(url, parameters);
|
|
30
|
+
}
|
|
31
|
+
async getById(id) {
|
|
32
|
+
const url = `${this.baseUrl}services/get/${id}`;
|
|
33
|
+
return await this.httpRequest.get(url);
|
|
34
|
+
}
|
|
35
|
+
async getServices(params) {
|
|
36
|
+
const url = `${this.baseUrl}services`;
|
|
37
|
+
const queryParameters = [];
|
|
38
|
+
if (params.pageSize)
|
|
39
|
+
queryParameters.push(`pageSize=${params.pageSize}`);
|
|
40
|
+
if (params.index)
|
|
41
|
+
queryParameters.push(`index=${params.index}`);
|
|
42
|
+
if (params.company)
|
|
43
|
+
queryParameters.push(`status=${params.company}`);
|
|
44
|
+
if (params.flow)
|
|
45
|
+
queryParameters.push(`flow=${params.flow}`);
|
|
46
|
+
if (queryParameters.length > 0) {
|
|
47
|
+
url.concat(`?${queryParameters.join('&')}`);
|
|
48
|
+
}
|
|
49
|
+
return await this.httpRequest.get(url);
|
|
50
|
+
}
|
|
51
|
+
async getServiceMembershipsByDirectoryId(params) {
|
|
52
|
+
const url = `${this.baseUrl}services/memberships?directoryId=${params.directoryId}`;
|
|
53
|
+
const queryParameters = [];
|
|
54
|
+
if (params.pageSize)
|
|
55
|
+
queryParameters.push(`pageSize=${params.pageSize}`);
|
|
56
|
+
if (params.index)
|
|
57
|
+
queryParameters.push(`index=${params.index}`);
|
|
58
|
+
if (queryParameters.length > 0) {
|
|
59
|
+
url.concat(`${queryParameters.join('&')}`);
|
|
60
|
+
}
|
|
61
|
+
return await this.httpRequest.get(url);
|
|
62
|
+
}
|
|
63
|
+
async getServiceMembershipsByDirectoryIdAndStatus(params) {
|
|
64
|
+
const url = `${this.baseUrl}services/memberships/status/${params.status}?directoryId=${params.directoryId}`;
|
|
65
|
+
const queryParameters = [];
|
|
66
|
+
if (params.pageSize)
|
|
67
|
+
queryParameters.push(`pageSize=${params.pageSize}`);
|
|
68
|
+
if (params.index)
|
|
69
|
+
queryParameters.push(`index=${params.index}`);
|
|
70
|
+
if (queryParameters.length > 0) {
|
|
71
|
+
url.concat(`${queryParameters.join('&')}`);
|
|
72
|
+
}
|
|
73
|
+
return await this.httpRequest.get(url);
|
|
74
|
+
}
|
|
75
|
+
async updateServiceMembership(serviceMembershipId, params) {
|
|
76
|
+
const url = `${this.baseUrl}services/memberships/${serviceMembershipId}`;
|
|
77
|
+
return await this.httpRequest.put(url, params);
|
|
78
|
+
}
|
|
79
|
+
async createServiceMembership(params) {
|
|
80
|
+
const url = `${this.baseUrl}services/memberships`;
|
|
81
|
+
return await this.httpRequest.post(url, params);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
exports.ServiceApi = ServiceApi;
|
|
85
|
+
exports.ServiceApi = ServiceApi = __decorate([
|
|
86
|
+
(0, inversify_1.injectable)(),
|
|
87
|
+
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
88
|
+
__metadata("design:paramtypes", [Object])
|
|
89
|
+
], ServiceApi);
|
|
@@ -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/IServiceApi"), exports);
|
|
18
|
+
__exportStar(require("./ServiceApi"), exports);
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
2
|
+
import { GetServiceListResponse, GetServiceMembershipListResponse, RegisterServiceMembershipRequest, ServiceFlowEnum, ServiceMembershipResponse, ServiceMembershipStatusEnum, ServiceResponse, UpdateServiceMembershipRequest } from "@fiado/type-kit/bin/services";
|
|
3
|
+
import { UpdateMultipleServiceMembershipStatusRequest } from "@fiado/type-kit/bin/services/dtos/UpdateMultipleServiceMembershipStatusRequest";
|
|
4
|
+
import { ServiceCompanyEnum } from "@fiado/type-kit/bin/services/enums/ServiceCompanyEnum";
|
|
5
|
+
/**
|
|
6
|
+
* Interfaz que define las operaciones que se pueden realizar en el servicio de black list.
|
|
7
|
+
*/
|
|
8
|
+
export interface IServiceApi {
|
|
9
|
+
/**
|
|
10
|
+
* Consulta de membresias
|
|
11
|
+
* @param value valor del parametro.
|
|
12
|
+
* @returns Una promesa que resuelve a void.
|
|
13
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
14
|
+
*/
|
|
15
|
+
getServices(params: {
|
|
16
|
+
pageSize?: number;
|
|
17
|
+
index?: string;
|
|
18
|
+
company?: ServiceCompanyEnum;
|
|
19
|
+
flow?: ServiceFlowEnum;
|
|
20
|
+
}): Promise<FiadoApiResponse<GetServiceListResponse>>;
|
|
21
|
+
/**
|
|
22
|
+
* Consulta de membresias de un directorio dado un directoryId
|
|
23
|
+
* @param value valor del parametro.
|
|
24
|
+
* @returns Una promesa que resuelve a void.
|
|
25
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
26
|
+
*/
|
|
27
|
+
getServiceMembershipsByDirectoryId(params: {
|
|
28
|
+
directoryId: string;
|
|
29
|
+
pageSize?: number;
|
|
30
|
+
index?: string;
|
|
31
|
+
}): Promise<FiadoApiResponse<GetServiceMembershipListResponse>>;
|
|
32
|
+
/**
|
|
33
|
+
* Consulta de membresias de un directorio dado un directoryId y un status
|
|
34
|
+
* @param value valor del parametro.
|
|
35
|
+
* @returns Una promesa que resuelve a void.
|
|
36
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
37
|
+
*/
|
|
38
|
+
getServiceMembershipsByDirectoryIdAndStatus(params: {
|
|
39
|
+
pageSize?: number;
|
|
40
|
+
index?: string;
|
|
41
|
+
directoryId: string;
|
|
42
|
+
status: ServiceMembershipStatusEnum;
|
|
43
|
+
}): Promise<FiadoApiResponse<GetServiceMembershipListResponse>>;
|
|
44
|
+
/**
|
|
45
|
+
* Actualizar una membresia de un servicio
|
|
46
|
+
* @param value valor del parametro.
|
|
47
|
+
* @returns Una promesa que resuelve a void.
|
|
48
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
49
|
+
*/
|
|
50
|
+
updateServiceMembership(serviceMembershipId: string, params: UpdateServiceMembershipRequest): Promise<FiadoApiResponse<ServiceMembershipResponse>>;
|
|
51
|
+
/**
|
|
52
|
+
* Crear una membresia de un servicio
|
|
53
|
+
* @param value valor del parametro.
|
|
54
|
+
* @returns Una promesa que resuelve a void.
|
|
55
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
56
|
+
*/
|
|
57
|
+
createServiceMembership(params: RegisterServiceMembershipRequest): Promise<FiadoApiResponse<ServiceMembershipResponse>>;
|
|
58
|
+
/**
|
|
59
|
+
* Obtener servicio por id
|
|
60
|
+
* @param value valor del parametro.
|
|
61
|
+
* @returns Una promesa que resuelve a void.
|
|
62
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
63
|
+
*/
|
|
64
|
+
getById(id: string): Promise<FiadoApiResponse<ServiceResponse>>;
|
|
65
|
+
/**
|
|
66
|
+
* Actualizar estatus de membresias en lote
|
|
67
|
+
* @param value valor del parametro.
|
|
68
|
+
* @returns Una promesa que resuelve a void.
|
|
69
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
70
|
+
*/
|
|
71
|
+
updateMultipleStatus(parameters: UpdateMultipleServiceMembershipStatusRequest): Promise<FiadoApiResponse<ServiceResponse>>;
|
|
72
|
+
}
|