ravcredit-lib 0.0.5 → 0.0.6
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 +420 -2
- package/fesm2022/ravcredit-lib.mjs.map +1 -1
- package/index.d.ts +85 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { WritableSignal } from '@angular/core';
|
|
2
|
+
import { WritableSignal, Injector } from '@angular/core';
|
|
3
3
|
import { UntypedFormGroup, UntypedFormControl, UntypedFormArray } from '@angular/forms';
|
|
4
4
|
import { MatSnackBarConfig } from '@angular/material/snack-bar';
|
|
5
5
|
import * as idb from 'idb';
|
|
@@ -1334,6 +1334,15 @@ declare class FactoryClient {
|
|
|
1334
1334
|
static MapperFinancialContract(contract: oContract, account: IDCAccount): oFinancial;
|
|
1335
1335
|
}
|
|
1336
1336
|
|
|
1337
|
+
declare class UtilsHttp {
|
|
1338
|
+
static CreateHeadersApi(token: string): {
|
|
1339
|
+
'Content-Type': string;
|
|
1340
|
+
Accept: string;
|
|
1341
|
+
'Access-Control-Allow-Headers': string;
|
|
1342
|
+
Authorization: string;
|
|
1343
|
+
};
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1337
1346
|
declare const cSchedule: oSchedule;
|
|
1338
1347
|
declare const cEmptyDay: oSchedule;
|
|
1339
1348
|
declare const week: string[];
|
|
@@ -1448,16 +1457,78 @@ declare class FactoryContract {
|
|
|
1448
1457
|
static MapperSyncContractDynamic(base: oContract, account: IDCAccount): oContract;
|
|
1449
1458
|
}
|
|
1450
1459
|
|
|
1460
|
+
declare enum ePaymentType {
|
|
1461
|
+
OXXO = "OXXO",
|
|
1462
|
+
ALTERNA = "ALTERNA",
|
|
1463
|
+
OXXO_RECURRENT = "oxxo_recurrent"
|
|
1464
|
+
}
|
|
1465
|
+
declare class FactoryConekta {
|
|
1466
|
+
static createOrder(client: oClient, contract: oContract, dateTime?: number): oConektaNewOrder;
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
declare const ROUTE_NOTIFICATIONS = "notifications";
|
|
1470
|
+
declare const ROUTE_GLOBAL_REFERENCE2 = "/contract-reference";
|
|
1471
|
+
declare const ravCreditFunctions = "https://us-central1-ravcredit-2b079.cloudfunctions.net/CustomerNotification";
|
|
1472
|
+
declare class FactoryNotification {
|
|
1473
|
+
static FormNotification(notification?: oNotification): {
|
|
1474
|
+
title: UntypedFormControl;
|
|
1475
|
+
body: UntypedFormControl;
|
|
1476
|
+
};
|
|
1477
|
+
static CreateGlobalNotificationObj(data: oNotification): any;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
declare class UtilTime {
|
|
1481
|
+
private localeFns;
|
|
1482
|
+
static IsExpired(time: number): boolean;
|
|
1483
|
+
static getDates(initial: number, weeks: number): oPaymentDates[];
|
|
1484
|
+
static getPreviousWeek(): number;
|
|
1485
|
+
static getDayNum(date: Date | number): number;
|
|
1486
|
+
static getDayName(date: Date | number): string;
|
|
1487
|
+
static getMonthName(date: Date | number): string;
|
|
1488
|
+
static getYear(date: Date | number): string;
|
|
1489
|
+
static GetNextPayment(time: number, provider: string): string;
|
|
1490
|
+
static getLocalTimeFromLong(time: number, provider: string): string;
|
|
1491
|
+
static DelayPaymentLast(lastPayment: number, provider: string, injector: Injector): boolean;
|
|
1492
|
+
static GetFactor(provider: string): number;
|
|
1493
|
+
static GetEpochFromFormatedDate(date: string): number;
|
|
1494
|
+
static GetTimeFromString(date: string): string;
|
|
1495
|
+
static GetDateFromString(date: string): string;
|
|
1496
|
+
static SortingByTime(payments: IDCTxnRow[]): IDCTxnRow[];
|
|
1497
|
+
static SortingByTimeConekta(payments: oConektaOrder[]): oConektaOrder[];
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
declare const cContractMetrics: oContractMetrics;
|
|
1501
|
+
|
|
1502
|
+
declare class FactoryPassport {
|
|
1503
|
+
static CreatePassportReference(client: oClient, contract: oContract, dateTime?: number): iGlobalPassport;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
interface oPaymentGlobal {
|
|
1507
|
+
conektaPayment?: oConektaRes;
|
|
1508
|
+
dynamicPayment?: IDCTxnRow[];
|
|
1509
|
+
}
|
|
1510
|
+
declare class FactoryPayment {
|
|
1511
|
+
static CreatePayment(data: oConektaRes | IDCTxnRow[], provider: eProvider): oPaymentGlobal;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1451
1514
|
declare class IndexedDbService {
|
|
1452
1515
|
indexDbStatus: boolean;
|
|
1453
1516
|
iDb: IDBPDatabase<unknown>;
|
|
1454
1517
|
constructor();
|
|
1455
1518
|
dbAuthorization(): Promise<any>;
|
|
1519
|
+
/****************** SIMPLE Transactional - CRUD *************************************/
|
|
1520
|
+
dbGetObject<T>(store: string, data: any): Promise<T>;
|
|
1521
|
+
dbGetAllByStore<T>(store: string, index?: string): Promise<T>;
|
|
1522
|
+
dbAddObject<T>(store: string, data: any): Promise<boolean>;
|
|
1523
|
+
dbRemoveObject<T>(store: string, data: any): Promise<T>;
|
|
1524
|
+
/********************************************************************************* **/
|
|
1456
1525
|
dbSignIn(store: string, data: any): Promise<void>;
|
|
1526
|
+
/******************************** Local Storage *************************************/
|
|
1457
1527
|
setLocalStorage(k: string, v: string): void;
|
|
1458
1528
|
getLocalStorage<T>(k: string): T;
|
|
1459
1529
|
deleteLocalStorage<T>(k: string): T;
|
|
1460
1530
|
getLocalUser(): string | null;
|
|
1531
|
+
/********************************************************************************* **/
|
|
1461
1532
|
getPlatformUser(): Promise<string>;
|
|
1462
1533
|
getToken(): Promise<string>;
|
|
1463
1534
|
addObject<T>(store: string, data: any): Promise<boolean>;
|
|
@@ -1477,6 +1548,17 @@ declare class IndexedDbService {
|
|
|
1477
1548
|
saveDataLocally<T>(contract: oContract, client: oClient, providerData: T): Promise<boolean>;
|
|
1478
1549
|
/******************** MERGE **************************************/
|
|
1479
1550
|
getAllClientContracts(): Promise<tyClientContract[]>;
|
|
1551
|
+
/******************** MERGE **************************************/
|
|
1552
|
+
dbGetAllClientContracts(): Promise<tyClientContract[]>;
|
|
1553
|
+
/****************** BUSINESS INFO *************************************/
|
|
1554
|
+
getBusinessInfo(): Promise<oBusinessInfo | null>;
|
|
1555
|
+
/****************** BUSINESS CONFIG ************************************/
|
|
1556
|
+
getBusinessConfig(): Promise<oBusinessConfig | null>;
|
|
1557
|
+
updateBusinessConfig(config: oBusinessConfig): Promise<void>;
|
|
1558
|
+
updateBusinessInfo(config: oBusinessInfo): Promise<void>;
|
|
1559
|
+
/**************** NOTIFICATIONS *********************************/
|
|
1560
|
+
getLocalNotifications(): Promise<oNotification[] | null>;
|
|
1561
|
+
updateNotifications(notifications: oNotification[]): Promise<void>;
|
|
1480
1562
|
static ɵfac: i0.ɵɵFactoryDeclaration<IndexedDbService, never>;
|
|
1481
1563
|
static ɵprov: i0.ɵɵInjectableDeclaration<IndexedDbService>;
|
|
1482
1564
|
}
|
|
@@ -1513,5 +1595,5 @@ declare const dateCompleteFormat = "EEEE, dd MMM yyyy hh:mm aaaa";
|
|
|
1513
1595
|
declare const timeFormat = "hh:mm aaaa";
|
|
1514
1596
|
declare const expiredPayment = "expiredPayment";
|
|
1515
1597
|
|
|
1516
|
-
export { FactoryBusiness, FactoryClient, FactoryContract, FactoryDynamiCore, IndexedDbService, RavcreditLibComponent, RavcreditLibService, cAddress, cAuthConfig, cBusinessConfig, cBusinessDeadlines, cBusinessInfo, cClient, cClientConekta, cClientContract, cClientDynamicStatus, cConektaRecurrent, cContract, cDefinedSchedule, cDevice, cEmptyDay, cFinancial, cIDCCharge, cIDCCustomer, cIDCDataPii, cIDCGeneratedReference, cIDCPayment, cNotification, cOptionsClientStatus, cOxxoRecurrentSources, cOxxorecurrentSourcesData, cPaymentDalay, cSchedule, cSingleOptionClientStatus, cTopic, cTyClientContract, cUserReference, dateCompleteFormat, dateFormat, dbAuthStore, dbBusinessConfig, dbBusinessInfo, dbClientsStore, dbConektaClientsStore, dbConektaReferencesStore, dbContractsStore, dbDynamicAccountStore, dbDynamicReferencesStore, dbIndexAuth, dbIndexBusiness, dbIndexClients, dbIndexConektaClients, dbIndexConektaClientsRef, dbIndexContracts, dbIndexNotification, dbIndexPassportClientsRef, dbIndexPayments, dbIndexUsers, dbName, dbNotificationsStore, dbPassportReferencesStore, dbPaymentsStore, dbUsersStore, dbVersion, eAccountDynamicStatus, eAuthActions, eAuthType, eClientDynamicStatus, eClientStatus, eConektaOrderStatus, eConektaRes, eContractSteps, eLoginStatus, eNotificationType, ePassportTypes, eProcessStatus, eProvider, eReferenceStatusRav, eRoles, eRolesSelect, expiredPayment, keyPathId, keyUserID, snackBarConfigAction, snackBarConfigNoAction, timeFormat, week };
|
|
1517
|
-
export type { HasUnsavedChanges, 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, ISignIn, gResponse, gResponseFuncEmail, 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, oAuth, oAuthRes, oBusinessConfig, oBusinessDeadlines, oBusinessInfo, oClient, oClientConekta, oClientPayments, oClientReferences, oConektaChannel, oConektaChargeData, oConektaCharges, oConektaCheckout, oConektaCustomerInfo, oConektaLineItem, oConektaLineItems, oConektaNewOrder, oConektaNewOrderAntifraudInfo, oConektaNewOrderCharge, oConektaNewOrderCustomerInfo, oConektaNewOrderLineItem, oConektaNewOrderPymMethod, oConektaOrder, oConektaOrderCreate, oConektaOrdersResponse, oConektaPaymentMethod, oConektaRes, oConektaResData, oConektaResObjChargePaid, oConektaResObjOrderPaid, oConektaResPrevAttr, oContract, oContractMetrics, oCustomer, oCustomerInfo, oDevice, oFinancial, oFinancialProgress, oNotification, oNotificationResponses, oPaymentDates, oResponse, oSchedule, oTmpBusinessConfig, oUser, oUserReference, partialIDCData, tyClientContract, weekSchedule };
|
|
1598
|
+
export { FactoryBusiness, FactoryClient, FactoryConekta, FactoryContract, FactoryDynamiCore, FactoryNotification, FactoryPassport, FactoryPayment, IndexedDbService, ROUTE_GLOBAL_REFERENCE2, ROUTE_NOTIFICATIONS, RavcreditLibComponent, RavcreditLibService, UtilTime, UtilsHttp, cAddress, cAuthConfig, cBusinessConfig, cBusinessDeadlines, cBusinessInfo, cClient, cClientConekta, cClientContract, cClientDynamicStatus, cConektaRecurrent, cContract, cContractMetrics, cDefinedSchedule, cDevice, cEmptyDay, cFinancial, cIDCCharge, cIDCCustomer, cIDCDataPii, cIDCGeneratedReference, cIDCPayment, cNotification, cOptionsClientStatus, cOxxoRecurrentSources, cOxxorecurrentSourcesData, cPaymentDalay, cSchedule, cSingleOptionClientStatus, cTopic, cTyClientContract, cUserReference, dateCompleteFormat, dateFormat, dbAuthStore, dbBusinessConfig, dbBusinessInfo, dbClientsStore, dbConektaClientsStore, dbConektaReferencesStore, dbContractsStore, dbDynamicAccountStore, dbDynamicReferencesStore, dbIndexAuth, dbIndexBusiness, dbIndexClients, dbIndexConektaClients, dbIndexConektaClientsRef, dbIndexContracts, dbIndexNotification, dbIndexPassportClientsRef, dbIndexPayments, dbIndexUsers, dbName, dbNotificationsStore, dbPassportReferencesStore, dbPaymentsStore, dbUsersStore, dbVersion, eAccountDynamicStatus, eAuthActions, eAuthType, eClientDynamicStatus, eClientStatus, eConektaOrderStatus, eConektaRes, eContractSteps, eLoginStatus, eNotificationType, ePassportTypes, ePaymentType, eProcessStatus, eProvider, eReferenceStatusRav, eRoles, eRolesSelect, expiredPayment, keyPathId, keyUserID, ravCreditFunctions, snackBarConfigAction, snackBarConfigNoAction, timeFormat, week };
|
|
1599
|
+
export type { HasUnsavedChanges, 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, ISignIn, gResponse, gResponseFuncEmail, 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, oAuth, oAuthRes, oBusinessConfig, oBusinessDeadlines, oBusinessInfo, oClient, oClientConekta, oClientPayments, oClientReferences, oConektaChannel, oConektaChargeData, oConektaCharges, oConektaCheckout, oConektaCustomerInfo, oConektaLineItem, oConektaLineItems, oConektaNewOrder, oConektaNewOrderAntifraudInfo, oConektaNewOrderCharge, oConektaNewOrderCustomerInfo, oConektaNewOrderLineItem, oConektaNewOrderPymMethod, oConektaOrder, oConektaOrderCreate, oConektaOrdersResponse, oConektaPaymentMethod, oConektaRes, oConektaResData, oConektaResObjChargePaid, oConektaResObjOrderPaid, oConektaResPrevAttr, oContract, oContractMetrics, oCustomer, oCustomerInfo, oDevice, oFinancial, oFinancialProgress, oNotification, oNotificationResponses, oPaymentDates, oPaymentGlobal, oResponse, oSchedule, oTmpBusinessConfig, oUser, oUserReference, partialIDCData, tyClientContract, weekSchedule };
|