ravcredit-lib 0.0.59 → 0.0.61
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/fesm2022/ravcredit-lib.mjs +139 -41
- package/fesm2022/ravcredit-lib.mjs.map +1 -1
- package/index.d.ts +43 -14
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -122,10 +122,6 @@ declare enum eConektaOrderStatus {
|
|
|
122
122
|
paid = "paid",
|
|
123
123
|
pending_payment = "pending_payment"
|
|
124
124
|
}
|
|
125
|
-
declare enum eConektaOrderType {
|
|
126
|
-
REFERENCE = "REFERENCE",
|
|
127
|
-
SPEI = "SPEI"
|
|
128
|
-
}
|
|
129
125
|
|
|
130
126
|
declare enum eClientStatus {
|
|
131
127
|
ACTIVE = "active",
|
|
@@ -1496,18 +1492,18 @@ interface IVerificationData {
|
|
|
1496
1492
|
}
|
|
1497
1493
|
|
|
1498
1494
|
interface oClientConekta {
|
|
1499
|
-
ravcredit:
|
|
1495
|
+
ravcredit: oClient;
|
|
1500
1496
|
conekta: iConektaRecurrent;
|
|
1501
1497
|
}
|
|
1502
1498
|
interface iClientContract {
|
|
1503
|
-
client:
|
|
1499
|
+
client: oClient;
|
|
1504
1500
|
contract: oContract;
|
|
1505
1501
|
}
|
|
1506
1502
|
declare const cClientContract: iClientContract;
|
|
1507
1503
|
declare class FactoryClient {
|
|
1508
|
-
static CreateClientToConektaObj(data:
|
|
1509
|
-
static CreateClientFromFormObj(data: any, client?:
|
|
1510
|
-
static CreateClientConektaObj(data:
|
|
1504
|
+
static CreateClientToConektaObj(data: oClient): any;
|
|
1505
|
+
static CreateClientFromFormObj(data: any, client?: oClient): oClient;
|
|
1506
|
+
static CreateClientConektaObj(data: oClient, finalDate: number): {
|
|
1511
1507
|
name: string;
|
|
1512
1508
|
email: string;
|
|
1513
1509
|
phone: string;
|
|
@@ -1515,9 +1511,9 @@ declare class FactoryClient {
|
|
|
1515
1511
|
client_id: string;
|
|
1516
1512
|
payment_sources: iConektaSources[];
|
|
1517
1513
|
};
|
|
1518
|
-
static MapperConektaClient(client:
|
|
1519
|
-
static MapperTypeContCli_Client(_client: tyClientContract):
|
|
1520
|
-
static MapperDynamicClient(dynamic: IDCClient, client:
|
|
1514
|
+
static MapperConektaClient(client: oClient, conekta: iConektaRecurrent): iClientContract;
|
|
1515
|
+
static MapperTypeContCli_Client(_client: tyClientContract): oClient;
|
|
1516
|
+
static MapperDynamicClient(dynamic: IDCClient, client: oClient, contract: oContract, clientDyn?: IDCClient, account?: IDCAccount): iClientContract;
|
|
1521
1517
|
static MapperFinancialContract(contract: oContract, account: IDCAccount): oFinancial;
|
|
1522
1518
|
static CheckEmail: (email: string) => boolean;
|
|
1523
1519
|
}
|
|
@@ -1667,6 +1663,8 @@ declare enum ePaymentType {
|
|
|
1667
1663
|
}
|
|
1668
1664
|
declare class FactoryConekta {
|
|
1669
1665
|
static createOrder(client: oClientBase, contract: oContract, dateTime?: number): oConektaNewOrder;
|
|
1666
|
+
static _createOrder(client: oClient, contract: oContract, dateTime?: number, type?: string): oConektaOrderCreate;
|
|
1667
|
+
static defineObject(client: oClient, type: eOrderType, order: oConektaOrderCreate, dateTime?: number): oConektaNewOrder | oConektaOrderSpei;
|
|
1670
1668
|
}
|
|
1671
1669
|
|
|
1672
1670
|
declare const ROUTE_NOTIFICATIONS = "notifications";
|
|
@@ -1846,6 +1844,9 @@ declare const cMediaIdentity: oMediaIdentity;
|
|
|
1846
1844
|
declare const cClient: oClient;
|
|
1847
1845
|
declare const cUserReference: oUserReference;
|
|
1848
1846
|
declare const cClientConekta: oClientConekta;
|
|
1847
|
+
declare const cResponseErrorData: oResponse;
|
|
1848
|
+
declare const emailContact = "contact@ravcredit.com";
|
|
1849
|
+
declare const cResponseError: oResponse;
|
|
1849
1850
|
declare const cTyClientContract: {
|
|
1850
1851
|
id: string;
|
|
1851
1852
|
dynamicAccount?: number;
|
|
@@ -1918,6 +1919,11 @@ declare const ErrorMessages: {
|
|
|
1918
1919
|
ContractNotFound: string;
|
|
1919
1920
|
ContractUpdateError: string;
|
|
1920
1921
|
ContractDeleteError: string;
|
|
1922
|
+
cNotUserFound: string;
|
|
1923
|
+
cIncorrectPassword: string;
|
|
1924
|
+
dbUsernameNotFound: string;
|
|
1925
|
+
dbIncorrectPassword: string;
|
|
1926
|
+
dbUsernameClientNotFound: string;
|
|
1921
1927
|
};
|
|
1922
1928
|
|
|
1923
1929
|
interface oCatalog {
|
|
@@ -2000,6 +2006,29 @@ interface oMessaging {
|
|
|
2000
2006
|
topic: string;
|
|
2001
2007
|
}
|
|
2002
2008
|
|
|
2009
|
+
type RoutingParams = {
|
|
2010
|
+
contract?: oContract;
|
|
2011
|
+
client?: oClient;
|
|
2012
|
+
id?: string;
|
|
2013
|
+
external_id?: string;
|
|
2014
|
+
reference?: string;
|
|
2015
|
+
paymentDynamic?: IDCTxnRow;
|
|
2016
|
+
orderConekta?: oConektaOrder;
|
|
2017
|
+
};
|
|
2018
|
+
declare enum RouteData {
|
|
2019
|
+
CLIENT = 0,
|
|
2020
|
+
CONTRACT = 1,
|
|
2021
|
+
REFERENCE = 2,
|
|
2022
|
+
ID = 3,
|
|
2023
|
+
EXTERNAL_ID = 4,
|
|
2024
|
+
PAYMENT_DYNAMIC = 5,
|
|
2025
|
+
PAYMENT_CONEKTA = 6
|
|
2026
|
+
}
|
|
2027
|
+
declare enum eEmailType {
|
|
2028
|
+
register = "register",
|
|
2029
|
+
update = "update"
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2003
2032
|
declare enum eLoginStatus {
|
|
2004
2033
|
IDLE = "IDLE",
|
|
2005
2034
|
ERROR = "ERROR",
|
|
@@ -2057,5 +2086,5 @@ interface oPayloadToken {
|
|
|
2057
2086
|
role: eRoles;
|
|
2058
2087
|
}
|
|
2059
2088
|
|
|
2060
|
-
export { EnumDynamicClientStatus, ErrorMessages, FactoryBusiness, FactoryClient, FactoryConekta, FactoryContract, FactoryDynamiCore, FactoryNotification, FactoryPassport, FactoryPayment, IndexedDbService, ROLES_KEY, ROUTE_GLOBAL_REFERENCE2, ROUTE_NOTIFICATIONS, RavcreditLibComponent, RavcreditLibService, TIME_FORMAT_TABLE, UtilGeneral, UtilTime, UtilsHttp, cAddress, cAuthConfig, cBusinessConfig, cBusinessDeadlines, cBusinessInfo, cClient, cClientBase, cClientConekta, cClientContract, cClientDynamicStatus, cConektaRecurrent, cContract, cContractMetrics, cDaySchedule, cDefinedSchedule, cDevice, cEmptyDay, cFinancial, cIDCCharge, cIDCCustomer, cIDCDataPii, cIDCGeneratedReference, cIDCPayment, cMediaIdentity, cNotification, cOptionsClientStatus, cOxxoRecurrentSources, cOxxoRecurrentSourcesData, cPaymentDelay, cResponse, cSchedule, cScore, cScoreAddress, cScoreGeneral, cScoreHit, cSingleOptionClientStatus, cTopic, cTyClientContract, cUserReference, dateCompleteFormat, dateFormat, dateFormatSimple, dbAuthStore, dbBusinessConfig, dbBusinessInfo, dbClientsStore, dbConektaClientsStore, dbConektaReferencesStore, dbConektaSpeiStore, dbContractsStore, dbDynamicAccountStore, dbDynamicReferencesStore, dbIndexAuth, dbIndexBusiness, dbIndexClients, dbIndexConektaClients, dbIndexConektaClientsRef, dbIndexContracts, dbIndexNotification, dbIndexPassportClientsRef, dbIndexPayments, dbIndexUsers, dbName, dbNotificationsStore, dbPassportReferencesStore, dbPaymentsStore, dbUsersStore, dbVersion, eAccountDynamicStatus, eAssetPeriod, eAuthActions, eAuthType, eAuthType2, eClientDynamicStatus, eClientStatus, eConektaOrderStatus,
|
|
2061
|
-
export type { BankTransferPaymentSpei, ChargeListSpei, ChargeSpei, CustomerInfoSpei, HasUnsavedChanges, IBaseVerification, IDCAccount, IDCAccountConfig, IDCAccountProps, IDCCharge, IDCClient, IDCClientObjFilter, IDCClientPiiFilter, IDCClientQuery, IDCCredit, IDCCreditConfig, IDCCreditProperties, IDCDataPii, IDCGeneratedReference, IDCMntryCycle, IDCMntryPymt, IDCMntryPymtAll, IDCMntryPymtAllPaidTotal, IDCMntryPymtCal, IDCMntryPymtDue, IDCMntryPymtDueTax, IDCMntryPymtOpen, IDCMntryPymtPaid, IDCMntryPymtPymt, IDCMsg, IDCNewReference, IDCOxxoRef, IDCOxxoRefItem, IDCOxxoRefPymtMth, IDCPayment, IDCRefCustInfo, IDCRefItems, IDCRefPymtMethod, IDCReference, IDCTransaction, IDCTxn, IDCTxnHeader, IDCTxnRow, IDCTxnRowExtras, IDynamiCore, ILambdaResponse, ISendCodeAttempt, ISignIn, IVerificationCheckSms, IVerificationData, IVerificationSms, LineItemListSpei, LineItemSpei, Tokens, iAuthConfig, iBusinessInfo, iClientContract, iConektaRecurrent, iConektaResData, iConektaResObjChargePaid, iConektaResObjChargePaidMethod, iConektaResPrevAttr, iConektaSources, iConfigUUID, iContract, iContractAll, iGlobalPassport, iInformativeDialog, iNewPayment, iOptionsSelect, iOxxoRecurrentSources, iOxxorecurrentSourcesData, iPassportAdditional, iPassportReference, iPassportReferenceCenters, iPassportReferenceData, iPassportReferenceRes, iPassportResponse, iPassportResponseData, iPaymentDelay, iSelect, iServiceUser, iSnackBarMessage, iUser, oAddress, oAsset, oAssetBrand, oAssetCategory, oAssetOffer, oAuth, oAuthRes, oBusinessConfig, oBusinessDeadlines, oBusinessInfo, oCatalog, oClient, oClientConekta, oClientPayments, oClientReferences, oCompany, oConektaChannel, oConektaChargeData, oConektaCharges, oConektaCheckout, oConektaCustomerInfo, oConektaLineItem, oConektaLineItems, oConektaMixOrder, oConektaNewOrder, oConektaNewOrderAntifraudInfo, oConektaNewOrderCharge, oConektaNewOrderCustomerInfo, oConektaNewOrderLineItem, oConektaNewOrderPymMethod, oConektaOrder, oConektaOrderCreate, oConektaOrderResponseSpei, oConektaOrderSpei, oConektaOrdersResponse, oConektaPaymentMethod, oConektaRes, oConektaResData, oConektaResObjChargePaid, oConektaResObjOrderPaid, oConektaResPrevAttr, oContract, oContractMetrics, oContractV2, oCustomer, oCustomerInfo, oDaySchedule, oDevice, oFinancial, oFinancialProgress, oMediaIdentity, oMessaging, oMessagingData, oNotification, oNotificationResponses, oPayloadToken, oPaymentDates, oPaymentGlobal, oPaymentOption, oResponse, oResponseFuncEmail, oSchedule, oScore, oScoreAddress, oScoreGeneral, oScoreHit, oScoreNoHit, oScoreReference, oTmpBusinessConfig, oUser, oUserReference, oWeekSchedule, partialIDCData, tyClientContract };
|
|
2089
|
+
export { EnumDynamicClientStatus, ErrorMessages, FactoryBusiness, FactoryClient, FactoryConekta, FactoryContract, FactoryDynamiCore, FactoryNotification, FactoryPassport, FactoryPayment, IndexedDbService, ROLES_KEY, ROUTE_GLOBAL_REFERENCE2, ROUTE_NOTIFICATIONS, RavcreditLibComponent, RavcreditLibService, RouteData, TIME_FORMAT_TABLE, UtilGeneral, UtilTime, UtilsHttp, cAddress, cAuthConfig, cBusinessConfig, cBusinessDeadlines, cBusinessInfo, cClient, cClientBase, cClientConekta, cClientContract, cClientDynamicStatus, cConektaRecurrent, cContract, cContractMetrics, cDaySchedule, cDefinedSchedule, cDevice, cEmptyDay, cFinancial, cIDCCharge, cIDCCustomer, cIDCDataPii, cIDCGeneratedReference, cIDCPayment, cMediaIdentity, cNotification, cOptionsClientStatus, cOxxoRecurrentSources, cOxxoRecurrentSourcesData, cPaymentDelay, cResponse, cResponseError, cResponseErrorData, cSchedule, cScore, cScoreAddress, cScoreGeneral, cScoreHit, cSingleOptionClientStatus, cTopic, cTyClientContract, cUserReference, dateCompleteFormat, dateFormat, dateFormatSimple, dbAuthStore, dbBusinessConfig, dbBusinessInfo, dbClientsStore, dbConektaClientsStore, dbConektaReferencesStore, dbConektaSpeiStore, dbContractsStore, dbDynamicAccountStore, dbDynamicReferencesStore, dbIndexAuth, dbIndexBusiness, dbIndexClients, dbIndexConektaClients, dbIndexConektaClientsRef, dbIndexContracts, dbIndexNotification, dbIndexPassportClientsRef, dbIndexPayments, dbIndexUsers, dbName, dbNotificationsStore, dbPassportReferencesStore, dbPaymentsStore, dbUsersStore, dbVersion, eAccountDynamicStatus, eAssetPeriod, eAuthActions, eAuthType, eAuthType2, eClientDynamicStatus, eClientStatus, eConektaOrderStatus, eConektaRes, eContractStatus, eContractSteps, eDestinationType, eEmailType, eGCActions, eIdentityTypes, eLoginStatus, eNotificationType, eOrderType, ePassportTypes, ePaymentType, eProcessStatus, eProvider, eReferenceStatusRav, eRequestVerb, eRoles, eRolesSelect, eVerificationChannel, eVerificationStatus, eVerificationStep, emailContact, expiredPayment, keyPathId, keyUserID, ravCreditFunctions, snackBarConfigAction, snackBarConfigNoAction, snackBarConfigNoActionLong, timeFormat, timeFormatTable, week };
|
|
2090
|
+
export type { BankTransferPaymentSpei, ChargeListSpei, ChargeSpei, CustomerInfoSpei, HasUnsavedChanges, IBaseVerification, IDCAccount, IDCAccountConfig, IDCAccountProps, IDCCharge, IDCClient, IDCClientObjFilter, IDCClientPiiFilter, IDCClientQuery, IDCCredit, IDCCreditConfig, IDCCreditProperties, IDCDataPii, IDCGeneratedReference, IDCMntryCycle, IDCMntryPymt, IDCMntryPymtAll, IDCMntryPymtAllPaidTotal, IDCMntryPymtCal, IDCMntryPymtDue, IDCMntryPymtDueTax, IDCMntryPymtOpen, IDCMntryPymtPaid, IDCMntryPymtPymt, IDCMsg, IDCNewReference, IDCOxxoRef, IDCOxxoRefItem, IDCOxxoRefPymtMth, IDCPayment, IDCRefCustInfo, IDCRefItems, IDCRefPymtMethod, IDCReference, IDCTransaction, IDCTxn, IDCTxnHeader, IDCTxnRow, IDCTxnRowExtras, IDynamiCore, ILambdaResponse, ISendCodeAttempt, ISignIn, IVerificationCheckSms, IVerificationData, IVerificationSms, LineItemListSpei, LineItemSpei, RoutingParams, Tokens, iAuthConfig, iBusinessInfo, iClientContract, iConektaRecurrent, iConektaResData, iConektaResObjChargePaid, iConektaResObjChargePaidMethod, iConektaResPrevAttr, iConektaSources, iConfigUUID, iContract, iContractAll, iGlobalPassport, iInformativeDialog, iNewPayment, iOptionsSelect, iOxxoRecurrentSources, iOxxorecurrentSourcesData, iPassportAdditional, iPassportReference, iPassportReferenceCenters, iPassportReferenceData, iPassportReferenceRes, iPassportResponse, iPassportResponseData, iPaymentDelay, iSelect, iServiceUser, iSnackBarMessage, iUser, oAddress, oAsset, oAssetBrand, oAssetCategory, oAssetOffer, oAuth, oAuthRes, oBusinessConfig, oBusinessDeadlines, oBusinessInfo, oCatalog, oClient, oClientConekta, oClientPayments, oClientReferences, oCompany, oConektaChannel, oConektaChargeData, oConektaCharges, oConektaCheckout, oConektaCustomerInfo, oConektaLineItem, oConektaLineItems, oConektaMixOrder, oConektaNewOrder, oConektaNewOrderAntifraudInfo, oConektaNewOrderCharge, oConektaNewOrderCustomerInfo, oConektaNewOrderLineItem, oConektaNewOrderPymMethod, oConektaOrder, oConektaOrderCreate, oConektaOrderResponseSpei, oConektaOrderSpei, oConektaOrdersResponse, oConektaPaymentMethod, oConektaRes, oConektaResData, oConektaResObjChargePaid, oConektaResObjOrderPaid, oConektaResPrevAttr, oContract, oContractMetrics, oContractV2, oCustomer, oCustomerInfo, oDaySchedule, oDevice, oFinancial, oFinancialProgress, oMediaIdentity, oMessaging, oMessagingData, oNotification, oNotificationResponses, oPayloadToken, oPaymentDates, oPaymentGlobal, oPaymentOption, oResponse, oResponseFuncEmail, oSchedule, oScore, oScoreAddress, oScoreGeneral, oScoreHit, oScoreNoHit, oScoreReference, oTmpBusinessConfig, oUser, oUserReference, oWeekSchedule, partialIDCData, tyClientContract };
|