@fiado/api-invoker 1.3.85 → 1.3.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/account-beneficiary/AccountBeneficiaryApi.d.ts +10 -0
- package/bin/account-beneficiary/AccountBeneficiaryApi.js +32 -0
- package/bin/account-beneficiary/index.d.ts +2 -0
- package/bin/account-beneficiary/index.js +18 -0
- package/bin/account-beneficiary/interfaces/IAccountBeneficiaryApi.d.ts +5 -0
- package/bin/account-beneficiary/interfaces/IAccountBeneficiaryApi.js +2 -0
- package/bin/account-fiadoinc/AccountFiadoIncApi.d.ts +32 -0
- package/bin/account-fiadoinc/AccountFiadoIncApi.js +84 -0
- package/bin/account-fiadoinc/index.d.ts +4 -0
- package/bin/account-fiadoinc/index.js +20 -0
- package/bin/account-fiadoinc/interfaces/IAccountFiadoIncApi.d.ts +18 -0
- package/bin/account-fiadoinc/interfaces/IAccountFiadoIncApi.js +2 -0
- package/bin/account-fiadoinc/queue/Publisher.d.ts +9 -0
- package/bin/account-fiadoinc/queue/Publisher.js +34 -0
- package/bin/account-fiadoinc/queue/interfaces/IPublisher.d.ts +7 -0
- package/bin/account-fiadoinc/queue/interfaces/IPublisher.js +2 -0
- package/bin/account-fiadosa/AccountFiadoSAApi.d.ts +15 -0
- package/bin/account-fiadosa/AccountFiadoSAApi.js +47 -0
- package/bin/account-fiadosa/index.d.ts +2 -0
- package/bin/account-fiadosa/index.js +18 -0
- package/bin/account-fiadosa/interfaces/IAccountFiadoSAApi.d.ts +10 -0
- package/bin/account-fiadosa/interfaces/IAccountFiadoSAApi.js +2 -0
- package/bin/account-pagoconfiado/AccountPagoConfiadoApi.d.ts +17 -0
- package/bin/account-pagoconfiado/AccountPagoConfiadoApi.js +55 -0
- package/bin/account-pagoconfiado/index.d.ts +2 -0
- package/bin/account-pagoconfiado/index.js +18 -0
- package/bin/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.d.ts +12 -0
- package/bin/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.js +2 -0
- package/bin/activity-business/ActivityApi.d.ts +12 -0
- package/bin/activity-business/ActivityApi.js +49 -0
- package/bin/activity-business/index.d.ts +4 -0
- package/bin/activity-business/index.js +20 -0
- package/bin/activity-business/interfaces/IActivityApi.d.ts +7 -0
- package/bin/activity-business/interfaces/IActivityApi.js +2 -0
- package/bin/activity-business/queue/ActivityPublisher.d.ts +6 -0
- package/bin/activity-business/queue/ActivityPublisher.js +36 -0
- package/bin/activity-business/queue/IActivityPublisher.d.ts +4 -0
- package/bin/activity-business/queue/IActivityPublisher.js +2 -0
- package/bin/address/AddressApi.d.ts +13 -0
- package/bin/address/AddressApi.js +55 -0
- package/bin/address/index.d.ts +2 -0
- package/bin/address/index.js +18 -0
- package/bin/address/interfaces/IAddressApi.d.ts +26 -0
- package/bin/address/interfaces/IAddressApi.js +2 -0
- package/bin/appselectondata/AppSelectionDataApi.d.ts +12 -0
- package/bin/appselectondata/AppSelectionDataApi.js +47 -0
- package/bin/appselectondata/index.d.ts +2 -0
- package/bin/appselectondata/index.js +18 -0
- package/bin/appselectondata/interfaces/IAppSelectionDataApi.d.ts +18 -0
- package/bin/appselectondata/interfaces/IAppSelectionDataApi.js +2 -0
- package/bin/authentication/AuthenticationApi.d.ts +8 -0
- package/bin/authentication/AuthenticationApi.js +32 -0
- package/bin/authentication/index.d.ts +2 -0
- package/bin/authentication/index.js +18 -0
- package/bin/authentication/interfaces/IAuthenticationApi.d.ts +4 -0
- package/bin/authentication/interfaces/IAuthenticationApi.js +2 -0
- package/bin/bankAccount/BankAccountApi.d.ts +13 -0
- package/bin/bankAccount/BankAccountApi.js +43 -0
- package/bin/bankAccount/index.d.ts +2 -0
- package/bin/bankAccount/index.js +18 -0
- package/bin/bankAccount/interfaces/IBankAccountApi.d.ts +5 -0
- package/bin/bankAccount/interfaces/IBankAccountApi.js +2 -0
- package/bin/bbvaRst/api/BBVARstApi.d.ts +9 -0
- package/bin/bbvaRst/api/BBVARstApi.js +32 -0
- package/bin/bbvaRst/api/interfaces/IBBVARstApi.d.ts +4 -0
- package/bin/bbvaRst/api/interfaces/IBBVARstApi.js +2 -0
- package/bin/bbvaRst/index.d.ts +2 -0
- package/bin/bbvaRst/index.js +18 -0
- package/bin/blacklist/BlackListApi.d.ts +12 -0
- package/bin/blacklist/BlackListApi.js +37 -0
- package/bin/blacklist/index.d.ts +2 -0
- package/bin/blacklist/index.js +18 -0
- package/bin/blacklist/interfaces/IBlackListApi.d.ts +17 -0
- package/bin/blacklist/interfaces/IBlackListApi.js +2 -0
- package/bin/card/CardApi.d.ts +21 -0
- package/bin/card/CardApi.js +69 -0
- package/bin/card/index.d.ts +2 -0
- package/bin/card/index.js +18 -0
- package/bin/card/interfaces/ICardApi.d.ts +15 -0
- package/bin/card/interfaces/ICardApi.js +2 -0
- package/bin/centralPayments/CentralPaymentsConnectorApi.d.ts +67 -0
- package/bin/centralPayments/CentralPaymentsConnectorApi.js +223 -0
- package/bin/centralPayments/index.d.ts +2 -0
- package/bin/centralPayments/index.js +18 -0
- package/bin/centralPayments/interfaces/ICentralPaymentsConnectorApi.d.ts +57 -0
- package/bin/centralPayments/interfaces/ICentralPaymentsConnectorApi.js +2 -0
- package/bin/cnbv-business/CnbvApi.d.ts +8 -0
- package/bin/cnbv-business/CnbvApi.js +31 -0
- package/bin/cnbv-business/index.d.ts +2 -0
- package/bin/cnbv-business/index.js +18 -0
- package/bin/cnbv-business/interfaces/ICnbvApi.d.ts +3 -0
- package/bin/cnbv-business/interfaces/ICnbvApi.js +2 -0
- package/bin/cognitoConnector/CognitoConnectorApi.d.ts +16 -0
- package/bin/cognitoConnector/CognitoConnectorApi.js +89 -0
- package/bin/cognitoConnector/CognitoConnectorV2.d.ts +18 -0
- package/bin/cognitoConnector/CognitoConnectorV2.js +74 -0
- package/bin/cognitoConnector/index.d.ts +4 -0
- package/bin/cognitoConnector/index.js +20 -0
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApi.d.ts +12 -0
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApi.js +2 -0
- package/bin/cognitoConnector/interfaces/ICognitoV2Api.d.ts +46 -0
- package/bin/cognitoConnector/interfaces/ICognitoV2Api.js +2 -0
- package/bin/collector/CollectorApi.d.ts +17 -0
- package/bin/collector/CollectorApi.js +64 -0
- package/bin/collector/index.d.ts +2 -0
- package/bin/collector/index.js +18 -0
- package/bin/collector/interfaces/ICollectorApi.d.ts +22 -0
- package/bin/collector/interfaces/ICollectorApi.js +2 -0
- package/bin/contactInformation/ContactInformationApi.d.ts +9 -0
- package/bin/contactInformation/ContactInformationApi.js +31 -0
- package/bin/contactInformation/index.d.ts +2 -0
- package/bin/contactInformation/index.js +18 -0
- package/bin/contactInformation/interface/IContactInformationApi.d.ts +4 -0
- package/bin/contactInformation/interface/IContactInformationApi.js +2 -0
- package/bin/container.config.d.ts +2 -0
- package/bin/container.config.js +121 -0
- package/bin/contract-generator/ContractGeneratorApi.d.ts +9 -0
- package/bin/contract-generator/ContractGeneratorApi.js +37 -0
- package/bin/contract-generator/index.d.ts +2 -0
- package/bin/contract-generator/index.js +18 -0
- package/bin/contract-generator/interfaces/IContractGeneratorApi.d.ts +14 -0
- package/bin/contract-generator/interfaces/IContractGeneratorApi.js +2 -0
- package/bin/device/DeviceApi.d.ts +14 -0
- package/bin/device/DeviceApi.js +45 -0
- package/bin/device/index.d.ts +2 -0
- package/bin/device/index.js +18 -0
- package/bin/device/interfaces/IDeviceApi.d.ts +30 -0
- package/bin/device/interfaces/IDeviceApi.js +2 -0
- package/bin/directories/DirectoriesApi.d.ts +20 -0
- package/bin/directories/DirectoriesApi.js +61 -0
- package/bin/directories/index.d.ts +2 -0
- package/bin/directories/index.js +18 -0
- package/bin/directories/interfaces/IDirectoriesApi.d.ts +21 -0
- package/bin/directories/interfaces/IDirectoriesApi.js +2 -0
- package/bin/directory/DirectoryApi.d.ts +22 -0
- package/bin/directory/DirectoryApi.js +145 -0
- package/bin/directory/index.d.ts +2 -0
- package/bin/directory/index.js +18 -0
- package/bin/directory/interfaces/IDirectoryApi.d.ts +55 -0
- package/bin/directory/interfaces/IDirectoryApi.js +2 -0
- package/bin/directorySetting/DirectorySettingApi.d.ts +31 -0
- package/bin/directorySetting/DirectorySettingApi.js +56 -0
- package/bin/directorySetting/index.d.ts +2 -0
- package/bin/directorySetting/index.js +18 -0
- package/bin/directorySetting/interfaces/IDirectorySettingApi.d.ts +42 -0
- package/bin/directorySetting/interfaces/IDirectorySettingApi.js +2 -0
- package/bin/disputes/DisputesApi.d.ts +24 -0
- package/bin/disputes/DisputesApi.js +61 -0
- package/bin/disputes/index.d.ts +2 -0
- package/bin/disputes/index.js +18 -0
- package/bin/disputes/interfaces/IDisputesApi.d.ts +48 -0
- package/bin/disputes/interfaces/IDisputesApi.js +2 -0
- package/bin/document-image-processor/DocumentImageProcessorApi.d.ts +11 -0
- package/bin/document-image-processor/DocumentImageProcessorApi.js +36 -0
- package/bin/document-image-processor/index.d.ts +2 -0
- package/bin/document-image-processor/index.js +18 -0
- package/bin/document-image-processor/interfaces/IDocumentImageProcessorApi.d.ts +6 -0
- package/bin/document-image-processor/interfaces/IDocumentImageProcessorApi.js +2 -0
- package/bin/estafeta/api/EstafetaApi.d.ts +26 -0
- package/bin/estafeta/api/EstafetaApi.js +71 -0
- package/bin/estafeta/api/interfaces/IEstafetaApi.d.ts +20 -0
- package/bin/estafeta/api/interfaces/IEstafetaApi.js +2 -0
- package/bin/estafeta/index.d.ts +2 -0
- package/bin/estafeta/index.js +18 -0
- package/bin/exchangeRates/ExchangeRatesApi.d.ts +11 -0
- package/bin/exchangeRates/ExchangeRatesApi.js +39 -0
- package/bin/exchangeRates/index.d.ts +2 -0
- package/bin/exchangeRates/index.js +18 -0
- package/bin/exchangeRates/interfaces/IExchangeRatesApi.d.ts +6 -0
- package/bin/exchangeRates/interfaces/IExchangeRatesApi.js +2 -0
- package/bin/fiadoMessages/api/FiadoMessagesApi.d.ts +8 -0
- package/bin/fiadoMessages/api/FiadoMessagesApi.js +37 -0
- package/bin/fiadoMessages/api/interfaces/IFiadoMessagesApi.d.ts +3 -0
- package/bin/fiadoMessages/api/interfaces/IFiadoMessagesApi.js +2 -0
- package/bin/fiadoMessages/index.d.ts +2 -0
- package/bin/fiadoMessages/index.js +18 -0
- package/bin/fraudPreventionEngine/api/FraudPreventionEngineApi.d.ts +11 -0
- package/bin/fraudPreventionEngine/api/FraudPreventionEngineApi.js +35 -0
- package/bin/fraudPreventionEngine/api/interfaces/IFraudPreventionEngineApi.d.ts +6 -0
- package/bin/fraudPreventionEngine/api/interfaces/IFraudPreventionEngineApi.js +2 -0
- package/bin/fraudPreventionEngine/index.d.ts +2 -0
- package/bin/fraudPreventionEngine/index.js +18 -0
- package/bin/group/GroupApi.d.ts +19 -0
- package/bin/group/GroupApi.js +70 -0
- package/bin/group/index.d.ts +2 -0
- package/bin/group/index.js +18 -0
- package/bin/group/interfaces/IGroupApi.d.ts +28 -0
- package/bin/group/interfaces/IGroupApi.js +2 -0
- package/bin/identity/IdentityApi.d.ts +15 -0
- package/bin/identity/IdentityApi.js +85 -0
- package/bin/identity/index.d.ts +2 -0
- package/bin/identity/index.js +18 -0
- package/bin/identity/interfaces/IIdentityApi.d.ts +33 -0
- package/bin/identity/interfaces/IIdentityApi.js +2 -0
- package/bin/index.d.ts +49 -0
- package/bin/index.js +65 -0
- package/bin/legalDocument/api/LegalDocumentApi.d.ts +8 -0
- package/bin/legalDocument/api/LegalDocumentApi.js +34 -0
- package/bin/legalDocument/api/interfaces/ILegalDocumentApi.d.ts +3 -0
- package/bin/legalDocument/api/interfaces/ILegalDocumentApi.js +2 -0
- package/bin/legalDocument/index.d.ts +2 -0
- package/bin/legalDocument/index.js +18 -0
- package/bin/notificationMessages/index.d.ts +2 -0
- package/bin/notificationMessages/index.js +18 -0
- package/bin/notificationMessages/queue/NotificationMessagePublisher.d.ts +12 -0
- package/bin/notificationMessages/queue/NotificationMessagePublisher.js +47 -0
- package/bin/notificationMessages/queue/interfaces/INotificationMessagesPublisher.d.ts +6 -0
- package/bin/notificationMessages/queue/interfaces/INotificationMessagesPublisher.js +2 -0
- package/bin/observations/ObservationsApi.d.ts +10 -0
- package/bin/observations/ObservationsApi.js +39 -0
- package/bin/observations/index.d.ts +2 -0
- package/bin/observations/index.js +18 -0
- package/bin/observations/interfaces/IObservationsApi.d.ts +8 -0
- package/bin/observations/interfaces/IObservationsApi.js +2 -0
- package/bin/order-collector-business/OrderCollectorApi.d.ts +9 -0
- package/bin/order-collector-business/OrderCollectorApi.js +37 -0
- package/bin/order-collector-business/index.d.ts +2 -0
- package/bin/order-collector-business/index.js +18 -0
- package/bin/order-collector-business/interfaces/IOrderCollectorApi.d.ts +7 -0
- package/bin/order-collector-business/interfaces/IOrderCollectorApi.js +2 -0
- package/bin/p2pContact/api/P2pContactApi.d.ts +9 -0
- package/bin/p2pContact/api/P2pContactApi.js +34 -0
- package/bin/p2pContact/api/interfaces/IP2pContactApi.d.ts +4 -0
- package/bin/p2pContact/api/interfaces/IP2pContactApi.js +2 -0
- package/bin/p2pContact/index.d.ts +2 -0
- package/bin/p2pContact/index.js +18 -0
- package/bin/pomelo/api/PomeloApi.d.ts +23 -0
- package/bin/pomelo/api/PomeloApi.js +86 -0
- package/bin/pomelo/api/interfaces/IPomeloApi.d.ts +17 -0
- package/bin/pomelo/api/interfaces/IPomeloApi.js +2 -0
- package/bin/pomelo/index.d.ts +2 -0
- package/bin/pomelo/index.js +18 -0
- package/bin/pomeloProcessor/api/PomeloProcessorApi.d.ts +8 -0
- package/bin/pomeloProcessor/api/PomeloProcessorApi.js +32 -0
- package/bin/pomeloProcessor/api/interfaces/IPomeloProcessorApi.d.ts +3 -0
- package/bin/pomeloProcessor/api/interfaces/IPomeloProcessorApi.js +2 -0
- package/bin/pomeloProcessor/index.d.ts +2 -0
- package/bin/pomeloProcessor/index.js +18 -0
- package/bin/pricelist-business/PriceListApi.d.ts +15 -0
- package/bin/pricelist-business/PriceListApi.js +55 -0
- package/bin/pricelist-business/index.d.ts +2 -0
- package/bin/pricelist-business/index.js +18 -0
- package/bin/pricelist-business/interfaces/IPriceListApi.d.ts +18 -0
- package/bin/pricelist-business/interfaces/IPriceListApi.js +2 -0
- package/bin/product-catalog/ProductCatalogApi.d.ts +10 -0
- package/bin/product-catalog/ProductCatalogApi.js +31 -0
- package/bin/product-catalog/index.d.ts +2 -0
- package/bin/product-catalog/index.js +18 -0
- package/bin/product-catalog/interfaces/IProductCatalogApi.d.ts +5 -0
- package/bin/product-catalog/interfaces/IProductCatalogApi.js +2 -0
- package/bin/riskProfile/api/RiskProfileApi.d.ts +15 -0
- package/bin/riskProfile/api/RiskProfileApi.js +47 -0
- package/bin/riskProfile/api/TransactionAlertApi.d.ts +13 -0
- package/bin/riskProfile/api/TransactionAlertApi.js +31 -0
- package/bin/riskProfile/api/interfaces/IRiskProfileApi.d.ts +10 -0
- package/bin/riskProfile/api/interfaces/IRiskProfileApi.js +2 -0
- package/bin/riskProfile/api/interfaces/ITransactionAlertApi.d.ts +8 -0
- package/bin/riskProfile/api/interfaces/ITransactionAlertApi.js +2 -0
- package/bin/riskProfile/index.d.ts +6 -0
- package/bin/riskProfile/index.js +22 -0
- package/bin/riskProfile/queue/TransactionAlarmPublisher.d.ts +6 -0
- package/bin/riskProfile/queue/TransactionAlarmPublisher.js +36 -0
- package/bin/riskProfile/queue/interfaces/ITransactionAlarmPublisher.d.ts +4 -0
- package/bin/riskProfile/queue/interfaces/ITransactionAlarmPublisher.js +2 -0
- package/bin/service-business/ServiceApi.d.ts +32 -0
- package/bin/service-business/ServiceApi.js +89 -0
- package/bin/service-business/index.d.ts +2 -0
- package/bin/service-business/index.js +18 -0
- package/bin/service-business/interfaces/IServiceApi.d.ts +72 -0
- package/bin/service-business/interfaces/IServiceApi.js +2 -0
- package/bin/sessionActivity/index.d.ts +2 -0
- package/bin/sessionActivity/index.js +18 -0
- package/bin/sessionActivity/queue/SessionActivityPublisher.d.ts +6 -0
- package/bin/sessionActivity/queue/SessionActivityPublisher.js +34 -0
- package/bin/sessionActivity/queue/interfaces/ISessionActivityPublisher.d.ts +4 -0
- package/bin/sessionActivity/queue/interfaces/ISessionActivityPublisher.js +2 -0
- package/bin/stpAccount/api/STPAccountApi.d.ts +15 -0
- package/bin/stpAccount/api/STPAccountApi.js +39 -0
- package/bin/stpAccount/api/interfaces/ISTPAccountApi.d.ts +10 -0
- package/bin/stpAccount/api/interfaces/ISTPAccountApi.js +2 -0
- package/bin/stpAccount/index.d.ts +2 -0
- package/bin/stpAccount/index.js +18 -0
- package/bin/stpServicePayment/api/StpServicePaymentApi.d.ts +14 -0
- package/bin/stpServicePayment/api/StpServicePaymentApi.js +50 -0
- package/bin/stpServicePayment/api/interfaces/IStpServicePaymentApi.d.ts +9 -0
- package/bin/stpServicePayment/api/interfaces/IStpServicePaymentApi.js +2 -0
- package/bin/stpServicePayment/index.d.ts +2 -0
- package/bin/stpServicePayment/index.js +18 -0
- package/bin/stpSpei/api/StpSpeiApi.d.ts +10 -0
- package/bin/stpSpei/api/StpSpeiApi.js +47 -0
- package/bin/stpSpei/api/interfaces/IStpSpeiApi.d.ts +5 -0
- package/bin/stpSpei/api/interfaces/IStpSpeiApi.js +2 -0
- package/bin/stpSpei/index.d.ts +2 -0
- package/bin/stpSpei/index.js +18 -0
- package/bin/tern/api/TernApi.d.ts +30 -0
- package/bin/tern/api/TernApi.js +125 -0
- package/bin/tern/api/interfaces/ITernApi.d.ts +26 -0
- package/bin/tern/api/interfaces/ITernApi.js +2 -0
- package/bin/tern/index.d.ts +2 -0
- package/bin/tern/index.js +18 -0
- package/bin/transaction/api/TransactionApi.d.ts +45 -0
- package/bin/transaction/api/TransactionApi.js +84 -0
- package/bin/transaction/api/interfaces/ITransactionApi.d.ts +40 -0
- package/bin/transaction/api/interfaces/ITransactionApi.js +2 -0
- package/bin/transaction/index.d.ts +4 -0
- package/bin/transaction/index.js +20 -0
- package/bin/transaction/queue/TransactionPublisher.d.ts +6 -0
- package/bin/transaction/queue/TransactionPublisher.js +36 -0
- package/bin/transaction/queue/interfaces/ITransactionPublisher.d.ts +4 -0
- package/bin/transaction/queue/interfaces/ITransactionPublisher.js +2 -0
- package/bin/transactionProcessor/api/TransactionProcessorApi.d.ts +16 -0
- package/bin/transactionProcessor/api/TransactionProcessorApi.js +51 -0
- package/bin/transactionProcessor/api/interfaces/ITransactionProcessorApi.d.ts +11 -0
- package/bin/transactionProcessor/api/interfaces/ITransactionProcessorApi.js +2 -0
- package/bin/transactionProcessor/index.d.ts +2 -0
- package/bin/transactionProcessor/index.js +18 -0
- package/bin/utils/InvokerUtils.d.ts +4 -0
- package/bin/utils/InvokerUtils.js +34 -0
- package/bin/zendesk/ZendeskApi.d.ts +11 -0
- package/bin/zendesk/ZendeskApi.js +41 -0
- package/bin/zendesk/index.d.ts +2 -0
- package/bin/zendesk/index.js +18 -0
- package/bin/zendesk/interfaces/IZendeskApi.d.ts +9 -0
- package/bin/zendesk/interfaces/IZendeskApi.js +2 -0
- package/package.json +2 -2
- package/src/transaction/api/TransactionApi.ts +1 -1
- package/src/transaction/api/interfaces/ITransactionApi.ts +2 -2
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
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);
|
|
@@ -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/IContractGeneratorApi"), exports);
|
|
18
|
+
__exportStar(require("./ContractGeneratorApi"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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);
|
|
@@ -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/IDeviceApi"), exports);
|
|
18
|
+
__exportStar(require("./DeviceApi"), exports);
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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);
|
|
@@ -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/IDirectoriesApi"), exports);
|
|
18
|
+
__exportStar(require("./DirectoriesApi"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
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);
|
|
@@ -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/IDirectoryApi"), exports);
|
|
18
|
+
__exportStar(require("./DirectoryApi"), exports);
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Profile } from "@fiado/type-kit/bin/directory/enums/Profile";
|
|
2
|
+
import { Status } from "@fiado/type-kit/bin/directory/enums/Status";
|
|
3
|
+
import { Provider } from "@fiado/type-kit/bin/provider";
|
|
4
|
+
/**
|
|
5
|
+
* Interfaz para el servicio Directory que permite operaciones sobre directorios.
|
|
6
|
+
*/
|
|
7
|
+
export interface IDirectoryApi {
|
|
8
|
+
/**
|
|
9
|
+
* Obtiene una lista de directorios por sus IDs.
|
|
10
|
+
* @param ids Array de IDs de directorios (UUIDs) a buscar.
|
|
11
|
+
* @returns Una promesa que resuelve a un arreglo de objetos de directorio.
|
|
12
|
+
* Puede devolver un arreglo vacío si no se encuentran coincidencias.
|
|
13
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
14
|
+
*/
|
|
15
|
+
getByIds(ids: string[]): Promise<any>;
|
|
16
|
+
/**
|
|
17
|
+
* Actualiza el ID de usuario externo en un directorio.
|
|
18
|
+
* @param directoryId ID del directorio (UUID) a actualizar.
|
|
19
|
+
* @param provider Proveedor de autenticación del usuario.
|
|
20
|
+
* @param externalUserId ID de usuario externo.
|
|
21
|
+
* @returns Una promesa que resuelve a un objeto vacío.
|
|
22
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
23
|
+
*/
|
|
24
|
+
updateExternalUserId(directoryId: string, provider: Provider, externalUserId: string): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Actualiza el alcance de un directorio.
|
|
27
|
+
* @param directoryId ID del directorio (UUID) a actualizar.
|
|
28
|
+
* @param scope Alcance a actualizar.
|
|
29
|
+
* @returns Una promesa que resuelve a un objeto vacío.
|
|
30
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
31
|
+
*/
|
|
32
|
+
updateScope(directoryId: string, scope: string[]): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Obtiene un directorio por su ID de directorio propietario.
|
|
35
|
+
* @param ownerDirectoryId ID de directorio propietario (UUID) a buscar.
|
|
36
|
+
* @returns Una promesa que resuelve a un objeto de directorio.
|
|
37
|
+
* Puede devolver un objeto vacío si no se encuentra coincidencia.
|
|
38
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
39
|
+
*/
|
|
40
|
+
getByOwnerDirectoryId(ownerDirectoryId: string): Promise<any>;
|
|
41
|
+
/**
|
|
42
|
+
* Obtiene un directorio por su número de teléfono.
|
|
43
|
+
* @param phoneNumber Número de teléfono a buscar.
|
|
44
|
+
* @returns Una promesa que resuelve a un objeto de directorio.
|
|
45
|
+
* Puede devolver un objeto vacío si no se encuentra coincidencia.
|
|
46
|
+
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
47
|
+
*/
|
|
48
|
+
getByPhoneNumber(phoneNumber: string): Promise<any>;
|
|
49
|
+
addOwnerDirectoryId(directoryId: string, newOwnerDirectoryId: any): Promise<any>;
|
|
50
|
+
updateUserProfile(directoryId: string, profile: Profile): Promise<void>;
|
|
51
|
+
updateOwnerDirectoryId(directoryId: string, newOwnerDirectoryId: any): Promise<any>;
|
|
52
|
+
updateStatus(directoryId: string, status: Status): Promise<void>;
|
|
53
|
+
getByPeopleId(peopleId: string): Promise<any>;
|
|
54
|
+
validateSecretNumber(directoryId: string, secretNumber: string): Promise<void>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IHttpRequest } from "@fiado/http-client";
|
|
2
|
+
import { IDirectorySettingApi } from "./interfaces/IDirectorySettingApi";
|
|
3
|
+
import FiadoApiResponse from '@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse';
|
|
4
|
+
import { DirectorySettingCreateRequest } from '@fiado/type-kit/bin/directorySetting';
|
|
5
|
+
export declare class DirectorySettingApi implements IDirectorySettingApi {
|
|
6
|
+
private httpRequest;
|
|
7
|
+
private readonly baseUrl;
|
|
8
|
+
constructor(httpRequest: IHttpRequest);
|
|
9
|
+
createBatchDirectorySetting(params: DirectorySettingCreateRequest): Promise<FiadoApiResponse<{
|
|
10
|
+
key: string;
|
|
11
|
+
value: string;
|
|
12
|
+
directoryId: string;
|
|
13
|
+
metadata?: any;
|
|
14
|
+
}[]>>;
|
|
15
|
+
getByIds(ids: string[]): Promise<FiadoApiResponse<{
|
|
16
|
+
key: string;
|
|
17
|
+
value: string;
|
|
18
|
+
directoryId: string;
|
|
19
|
+
metadata?: any;
|
|
20
|
+
}[]>>;
|
|
21
|
+
getDirectorySettingsByDirectoryId(params: {
|
|
22
|
+
pageSize?: number;
|
|
23
|
+
index?: string;
|
|
24
|
+
directoryId: string;
|
|
25
|
+
}): Promise<FiadoApiResponse<{
|
|
26
|
+
key: string;
|
|
27
|
+
value: string;
|
|
28
|
+
directoryId: string;
|
|
29
|
+
metadata?: any;
|
|
30
|
+
}>>;
|
|
31
|
+
}
|