ravcredit-lib 0.0.4 → 0.0.5

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.
Files changed (49) hide show
  1. package/fesm2022/ravcredit-lib.mjs +247 -1
  2. package/fesm2022/ravcredit-lib.mjs.map +1 -1
  3. package/index.d.ts +1516 -4
  4. package/package.json +3 -4
  5. package/esm2022/lib/ravcredit-lib.component.mjs +0 -19
  6. package/esm2022/lib/ravcredit-lib.service.mjs +0 -14
  7. package/esm2022/lib/v1/objects/oAddress.mjs +0 -10
  8. package/esm2022/lib/v1/objects/oBusiness.mjs +0 -2
  9. package/esm2022/lib/v1/objects/oClient.mjs +0 -2
  10. package/esm2022/lib/v1/objects/oConekta.mjs +0 -85
  11. package/esm2022/lib/v1/objects/oContract.mjs +0 -2
  12. package/esm2022/lib/v1/objects/oContractAll.mjs +0 -2
  13. package/esm2022/lib/v1/objects/oCustomer.mjs +0 -18
  14. package/esm2022/lib/v1/objects/oDevice.mjs +0 -2
  15. package/esm2022/lib/v1/objects/oFinancial.mjs +0 -2
  16. package/esm2022/lib/v1/objects/oGlobal.mjs +0 -86
  17. package/esm2022/lib/v1/objects/oLogIn.mjs +0 -17
  18. package/esm2022/lib/v1/objects/oNewPayment.mjs +0 -2
  19. package/esm2022/lib/v1/objects/oNotification.mjs +0 -17
  20. package/esm2022/lib/v1/objects/oPassport.mjs +0 -7
  21. package/esm2022/lib/v1/objects/oUser.mjs +0 -2
  22. package/esm2022/lib/v1/util/UtilBusiness.mjs +0 -171
  23. package/esm2022/lib/v1/util/UtilClient.mjs +0 -221
  24. package/esm2022/lib/v1/util/UtilContract.mjs +0 -331
  25. package/esm2022/lib/v1/util/UtilDynamiCore.mjs +0 -292
  26. package/esm2022/public-api.mjs +0 -25
  27. package/esm2022/ravcredit-lib.mjs +0 -5
  28. package/lib/ravcredit-lib.component.d.ts +0 -5
  29. package/lib/ravcredit-lib.service.d.ts +0 -6
  30. package/lib/v1/objects/oAddress.d.ts +0 -10
  31. package/lib/v1/objects/oBusiness.d.ts +0 -101
  32. package/lib/v1/objects/oClient.d.ts +0 -43
  33. package/lib/v1/objects/oConekta.d.ts +0 -305
  34. package/lib/v1/objects/oContract.d.ts +0 -23
  35. package/lib/v1/objects/oContractAll.d.ts +0 -21
  36. package/lib/v1/objects/oCustomer.d.ts +0 -17
  37. package/lib/v1/objects/oDevice.d.ts +0 -5
  38. package/lib/v1/objects/oFinancial.d.ts +0 -30
  39. package/lib/v1/objects/oGlobal.d.ts +0 -149
  40. package/lib/v1/objects/oLogIn.d.ts +0 -30
  41. package/lib/v1/objects/oNewPayment.d.ts +0 -11
  42. package/lib/v1/objects/oNotification.d.ts +0 -25
  43. package/lib/v1/objects/oPassport.d.ts +0 -55
  44. package/lib/v1/objects/oUser.d.ts +0 -25
  45. package/lib/v1/util/UtilBusiness.d.ts +0 -52
  46. package/lib/v1/util/UtilClient.d.ts +0 -34
  47. package/lib/v1/util/UtilContract.d.ts +0 -70
  48. package/lib/v1/util/UtilDynamiCore.d.ts +0 -453
  49. package/public-api.d.ts +0 -21
package/index.d.ts CHANGED
@@ -1,5 +1,1517 @@
1
+ import * as i0 from '@angular/core';
2
+ import { WritableSignal } from '@angular/core';
3
+ import { UntypedFormGroup, UntypedFormControl, UntypedFormArray } from '@angular/forms';
4
+ import { MatSnackBarConfig } from '@angular/material/snack-bar';
5
+ import * as idb from 'idb';
6
+ import { IDBPDatabase } from 'idb';
7
+
8
+ declare class RavcreditLibService {
9
+ constructor();
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<RavcreditLibService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<RavcreditLibService>;
12
+ }
13
+
14
+ declare class RavcreditLibComponent {
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<RavcreditLibComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<RavcreditLibComponent, "lib-ravcredit-lib", never, {}, {}, never, never, true, never>;
17
+ }
18
+
19
+ interface oAddress {
20
+ street: string;
21
+ city: string;
22
+ neighbor: string;
23
+ zip: string;
24
+ ext: string;
25
+ int: string;
26
+ state: string;
27
+ }
28
+ declare const cAddress: oAddress;
29
+
30
+ interface iBusinessInfo {
31
+ address: WritableSignal<oAddress>;
32
+ schedule: WritableSignal<oSchedule>;
33
+ businessData: WritableSignal<oBusinessInfo>;
34
+ updateBusinessData(data: oBusinessInfo): boolean;
35
+ getBusinessDataAPI(): oBusinessInfo;
36
+ getBusinessDataLocal(): oBusinessInfo;
37
+ initFormBusiness(): UntypedFormGroup;
38
+ }
39
+ interface oSchedule {
40
+ day: string;
41
+ open: number;
42
+ close: number;
43
+ }
44
+ type weekSchedule = {
45
+ monday: {
46
+ open?: string;
47
+ close?: string;
48
+ };
49
+ tuesday: {
50
+ open?: string;
51
+ close?: string;
52
+ };
53
+ wednesday: {
54
+ open?: string;
55
+ close?: string;
56
+ };
57
+ thursday: {
58
+ open?: string;
59
+ close?: string;
60
+ };
61
+ friday: {
62
+ open?: string;
63
+ close?: string;
64
+ };
65
+ saturday: {
66
+ open?: string;
67
+ close?: string;
68
+ };
69
+ sunday: {
70
+ open?: string;
71
+ close?: string;
72
+ };
73
+ };
74
+ interface oBusinessInfo {
75
+ version: string;
76
+ name: string;
77
+ desc?: string;
78
+ address: oAddress;
79
+ phones: string[];
80
+ email: string;
81
+ schedule?: weekSchedule;
82
+ }
83
+ interface oBusinessDeadlines {
84
+ weeks: number;
85
+ interest: number;
86
+ }
87
+ interface oBusinessConfig {
88
+ adminVersion: string;
89
+ mobileVersion: string;
90
+ mobileVersionPrev: string;
91
+ apiVersion: string;
92
+ deadlines: oBusinessDeadlines[];
93
+ downloadsClient: boolean;
94
+ passportPaymentReference: boolean;
95
+ conektaPaymentReference: boolean;
96
+ conektaPaymentLink: boolean;
97
+ dynamicPaymentReference: boolean;
98
+ apkUrl: string;
99
+ version: string;
100
+ }
101
+ interface oTmpBusinessConfig {
102
+ name?: string;
103
+ email?: string;
104
+ desc?: string;
105
+ street?: string;
106
+ neighbor?: string;
107
+ cp?: string;
108
+ ext?: string;
109
+ int?: string;
110
+ city?: string;
111
+ state?: string;
112
+ phones?: string[];
113
+ mondayOpen?: string;
114
+ mondayClose?: string;
115
+ tuesdayOpen?: string;
116
+ tuesdayClose?: string;
117
+ wednesdayOpen?: string;
118
+ wednesdayClose?: string;
119
+ thursdayOpen?: string;
120
+ thursdayClose?: string;
121
+ fridayOpen?: string;
122
+ fridayClose?: string;
123
+ saturdayOpen?: string;
124
+ saturdayClose?: string;
125
+ sundayOpen?: string;
126
+ sundayClose?: string;
127
+ }
128
+
129
+ interface oClientPayments {
130
+ date: number;
131
+ dayPayment: number;
132
+ amount: number;
133
+ id: string;
134
+ }
135
+ interface oUserReference {
136
+ name: string;
137
+ phone: string;
138
+ relationship: string;
139
+ }
140
+ interface oClientReferences {
141
+ date?: number;
142
+ amount?: number;
143
+ id: string;
144
+ url?: string;
145
+ }
146
+ interface oClient {
147
+ id: string;
148
+ name: string;
149
+ username: string;
150
+ password?: string;
151
+ email: string;
152
+ phone: string;
153
+ curp: string;
154
+ contract?: string;
155
+ createdAt?: number;
156
+ lastLogin?: number;
157
+ contract_temporary?: string;
158
+ exists?: boolean;
159
+ conekta_id?: string;
160
+ dynamic_id?: number | string;
161
+ dynamic_account?: string | number;
162
+ dynamic_ref?: string;
163
+ passport_id?: string;
164
+ payments?: oClientPayments[];
165
+ reference?: string;
166
+ references?: oClientReferences[];
167
+ token?: string;
168
+ userReferences: oUserReference[];
169
+ contractUrl?: string;
170
+ status: string;
171
+ }
172
+
173
+ declare enum eConektaRes {
174
+ CUSTOMER_CREATED = "customer.created",
175
+ ORDER_PENDING_PAYMENT = "order.pending_payment",
176
+ ORDER_CREATED = "order.created",
177
+ CHARGE_CREATED = "charge.created",
178
+ ORDER_PAID = "order.paid",
179
+ CHARGE_PAID = "charge.paid"
180
+ }
181
+ declare enum eConektaOrderStatus {
182
+ expired = "expired",
183
+ paid = "paid",
184
+ pending_payment = "pending_payment"
185
+ }
186
+ interface oConektaResObjChargePaid {
187
+ id: string;
188
+ livemode: boolean;
189
+ created_at: number;
190
+ currency: string;
191
+ payment_method: any;
192
+ object: string;
193
+ description: string;
194
+ status: string;
195
+ amount: number;
196
+ paid_at: number;
197
+ fee: number;
198
+ customer_id: string;
199
+ order_id: string;
200
+ }
201
+ interface oConektaChannel {
202
+ segment: string;
203
+ checkout_request_id: string;
204
+ checkout_request_type: string;
205
+ id: string;
206
+ }
207
+ interface oConektaCheckout {
208
+ id: string;
209
+ name: string;
210
+ livemode: boolean;
211
+ emails_sent: number;
212
+ success_url: string;
213
+ failure_url: string;
214
+ payments_limit_count: number | null;
215
+ paid_payments_count: number;
216
+ status: string;
217
+ type: string;
218
+ recurrent: boolean;
219
+ starts_at: number;
220
+ expires_at: number;
221
+ allowed_payment_methods: string[];
222
+ needs_shipping_contact: boolean;
223
+ redirection_time: number | null;
224
+ metadata: object;
225
+ can_not_expire: boolean;
226
+ object: string;
227
+ is_redirect_on_failure: boolean;
228
+ slug: string;
229
+ url: string;
230
+ }
231
+ interface oConektaLineItem {
232
+ name: string;
233
+ description: string | null;
234
+ unit_price: number;
235
+ quantity: number;
236
+ sku: string | null;
237
+ tags: string[] | null;
238
+ brand: string | null;
239
+ type: string | null;
240
+ object: string;
241
+ id: string;
242
+ parent_id: string;
243
+ metadata: object;
244
+ antifraud_info: object;
245
+ }
246
+ interface oConektaLineItems {
247
+ object: string;
248
+ has_more: boolean;
249
+ total: number;
250
+ data: oConektaLineItem[];
251
+ }
252
+ interface oConektaCharges {
253
+ object: string;
254
+ has_more: boolean;
255
+ total: number;
256
+ data: oConektaChargeData[];
257
+ }
258
+ interface oConektaPaymentMethod {
259
+ service_name: string;
260
+ barcode_url: string;
261
+ store: string;
262
+ auth_code: number;
263
+ object: string;
264
+ type: string;
265
+ expires_at: number;
266
+ store_name: string;
267
+ reference: string;
268
+ cashier_id: string;
269
+ }
270
+ interface oConektaChargeData {
271
+ id: string;
272
+ livemode: boolean;
273
+ created_at: number;
274
+ currency: string;
275
+ failure_code: string | null;
276
+ failure_message: string | null;
277
+ channel: oConektaChannel;
278
+ payment_method: oConektaPaymentMethod;
279
+ object: string;
280
+ device_fingerprint: string;
281
+ description: string;
282
+ is_refundable: boolean;
283
+ reference_id: string | null;
284
+ status: string;
285
+ amount: number;
286
+ paid_at: number;
287
+ customer_id: string;
288
+ order_id: string;
289
+ is_button_premia: boolean;
290
+ refunds: string | null;
291
+ }
292
+ interface oConektaResObjOrderPaid {
293
+ livemode: boolean;
294
+ amount: number;
295
+ currency: string;
296
+ payment_status: string;
297
+ amount_refunded: number;
298
+ customer_info: oConektaCustomerInfo;
299
+ object: string;
300
+ id: string;
301
+ metadata: any;
302
+ is_refundable: boolean;
303
+ created_at: number;
304
+ updated_at: number;
305
+ line_items: any;
306
+ charges: any;
307
+ }
308
+ interface oConektaCustomerInfo {
309
+ email: string;
310
+ phone: string | null;
311
+ name: string;
312
+ corporate: boolean;
313
+ customer_id: string;
314
+ object: string;
315
+ customer_custom_reference: string | null;
316
+ }
317
+ interface oConektaCustomerInfo {
318
+ email: string;
319
+ phone: string | null;
320
+ name: string;
321
+ corporate: boolean;
322
+ customer_id: string;
323
+ object: string;
324
+ customer_custom_reference: string | null;
325
+ }
326
+ interface oConektaOrder {
327
+ livemode: boolean;
328
+ amount: number;
329
+ currency: string;
330
+ payment_status: string;
331
+ amount_refunded: number;
332
+ customer_info: oConektaCustomerInfo;
333
+ shipping_contact: string | null;
334
+ channel: oConektaChannel;
335
+ fiscal_entity: string | null;
336
+ object: string;
337
+ id: string;
338
+ metadata: object;
339
+ is_refundable: boolean;
340
+ created_at: number;
341
+ updated_at: number;
342
+ checkout: oConektaCheckout;
343
+ is_button_premia: boolean;
344
+ line_items: oConektaLineItems;
345
+ shipping_lines: string | null;
346
+ tax_lines: string | null;
347
+ discount_lines: string | null;
348
+ charges: oConektaCharges;
349
+ }
350
+ interface oConektaOrdersResponse {
351
+ next_page_url: string | null;
352
+ previous_page_url: string | null;
353
+ has_more: boolean;
354
+ object: string;
355
+ data: oConektaOrder[];
356
+ }
357
+ /******************************************************* Order Create */
358
+ interface oConektaNewOrderCustomerInfo {
359
+ customer_id: string;
360
+ }
361
+ interface oConektaNewOrderPymMethod {
362
+ expires_at: number;
363
+ type: string;
364
+ }
365
+ interface oConektaNewOrderCharge {
366
+ payment_method: oConektaNewOrderPymMethod;
367
+ amount: number;
368
+ }
369
+ interface oConektaNewOrderAntifraudInfo {
370
+ newKey: string;
371
+ }
372
+ interface oConektaNewOrderLineItem {
373
+ antifraud_info: oConektaNewOrderAntifraudInfo;
374
+ name: string;
375
+ quantity: number;
376
+ unit_price: number;
377
+ }
378
+ interface oConektaOrderCreate {
379
+ customer_info: oConektaNewOrderCustomerInfo;
380
+ charges: oConektaNewOrderCharge[];
381
+ currency: string;
382
+ line_items: oConektaNewOrderLineItem[];
383
+ }
384
+ interface oConektaNewOrder {
385
+ data: oConektaOrderCreate;
386
+ date?: number;
387
+ id: string;
388
+ }
389
+ interface oConektaResPrevAttr {
390
+ status: string;
391
+ }
392
+ interface oConektaResData {
393
+ object: oConektaResObjChargePaid | oConektaResObjOrderPaid;
394
+ previous_attributes: oConektaResPrevAttr;
395
+ }
396
+ interface iConektaResObjChargePaidMethod {
397
+ barcode_url: string;
398
+ expires_at: number;
399
+ object: string;
400
+ reference: string;
401
+ service_name: string;
402
+ store: string;
403
+ type: string;
404
+ }
405
+ interface iConektaResObjChargePaid {
406
+ id: string;
407
+ livemode: boolean;
408
+ created_at: number;
409
+ currency: string;
410
+ payment_method: iConektaResObjChargePaidMethod;
411
+ object: string;
412
+ description: string;
413
+ status: string;
414
+ amount: number;
415
+ paid_at: number;
416
+ fee: number;
417
+ customer_id: string;
418
+ order_id: string;
419
+ }
420
+ interface iConektaResPrevAttr {
421
+ status: string;
422
+ }
423
+ interface iConektaResData {
424
+ object: iConektaResObjChargePaid;
425
+ previous_attributes: iConektaResPrevAttr;
426
+ }
427
+ interface oConektaRes {
428
+ client_id?: string;
429
+ data: iConektaResData;
430
+ livemode: false;
431
+ webhook_status: string;
432
+ webhook_logs: any[];
433
+ id: string;
434
+ object: string;
435
+ type: eConektaRes;
436
+ created_at: number;
437
+ }
438
+ /******************************************************* New reference res */
439
+ interface iConektaSources {
440
+ type: string;
441
+ expires_at?: number;
442
+ }
443
+ interface iOxxorecurrentSourcesData {
444
+ id: string;
445
+ object: string;
446
+ type: string;
447
+ provider: string;
448
+ reference: string;
449
+ barcode: string;
450
+ barcode_url: string;
451
+ expires_at: number;
452
+ created_at: number;
453
+ parent_id: string;
454
+ }
455
+ interface iOxxoRecurrentSources {
456
+ object: string;
457
+ has_more: boolean;
458
+ total: number;
459
+ data: iOxxorecurrentSourcesData[];
460
+ }
461
+ interface iConektaRecurrent {
462
+ corporate: boolean;
463
+ created_at: number;
464
+ customer_reference?: string;
465
+ email: string;
466
+ id: string;
467
+ livemode: boolean;
468
+ name: string;
469
+ phone: string;
470
+ object: string;
471
+ custom_id: string;
472
+ payment_sources: iOxxoRecurrentSources;
473
+ }
474
+ /******************************************************* New reference constant */
475
+ declare const cOxxorecurrentSourcesData: iOxxorecurrentSourcesData;
476
+ declare const cOxxoRecurrentSources: iOxxoRecurrentSources;
477
+ declare const cConektaRecurrent: iConektaRecurrent;
478
+
479
+ interface oDevice {
480
+ device: string;
481
+ id?: string;
482
+ IMEI: string;
483
+ }
484
+
485
+ interface oFinancialProgress {
486
+ id: string;
487
+ amount: number;
488
+ date: number;
489
+ }
490
+ interface oFinancial {
491
+ total: number;
492
+ initial: number;
493
+ deadlines: oBusinessDeadlines;
494
+ initDate?: number;
495
+ finalDate?: number;
496
+ weeklyPayment: number;
497
+ dayCut?: number;
498
+ finalPayment?: number;
499
+ progress?: oFinancialProgress[];
500
+ pendingOf: string[];
501
+ interest: number;
502
+ provider: string;
503
+ financed: number;
504
+ nextPayment: number;
505
+ amount_commission_opening?: number;
506
+ principal_disbursed?: number;
507
+ expected_disbursed?: number;
508
+ credit_type?: string;
509
+ interest_rate?: number;
510
+ commission_opening?: number;
511
+ interest_arrears?: number;
512
+ clabe?: string;
513
+ }
514
+
515
+ interface iContract {
516
+ createContract(data: any, monthlyPay: number, finalPayment: number): Promise<void>;
517
+ editContract(): void;
518
+ verifyClient(clientCurp: string): Promise<void>;
519
+ dataClient(client: string): void;
520
+ referenceAdded(reference: number): Promise<void>;
521
+ }
522
+ interface oContract {
523
+ id: string;
524
+ dynamicAccount?: number;
525
+ client: string;
526
+ address: oAddress;
527
+ device: oDevice;
528
+ financial: oFinancial;
529
+ createdAt?: number;
530
+ lastPayment?: number;
531
+ by: string;
532
+ active: boolean;
533
+ photo?: string;
534
+ }
535
+
536
+ interface iUser {
537
+ pUser: oUser;
538
+ getAllUsers(): void;
539
+ editUser(user: oUser): void;
540
+ deleteUser(user: oUser): void;
541
+ }
542
+ interface oUser {
543
+ id: string;
544
+ username: string;
545
+ name: string;
546
+ password: string;
547
+ role: eRoles;
548
+ lastLogin?: number;
549
+ createdAt?: number;
550
+ access_token: string;
551
+ }
552
+ interface iServiceUser {
553
+ users: WritableSignal<oUser[]>;
554
+ getAllUsersServer(): void;
555
+ createUser(o: oUser): void;
556
+ updateUser(o: oUser): void;
557
+ deleteUser(id: string): void;
558
+ }
559
+
560
+ declare const cTopic = "RavCreditClients";
561
+ declare enum eNotificationType {
562
+ GLOBAL = "global",
563
+ USER = "user",
564
+ PAYMENT = "payment"
565
+ }
566
+ interface oNotificationResponses {
567
+ successCount: number;
568
+ failureCount: number;
569
+ }
570
+ interface oNotification {
571
+ ids?: string[];
572
+ type?: string;
573
+ tokens?: string[];
574
+ topic?: string;
575
+ notification: {
576
+ title: string;
577
+ body: string;
578
+ };
579
+ data: any;
580
+ notification_id?: number;
581
+ recipient?: string;
582
+ responses?: oNotificationResponses;
583
+ }
584
+ declare const cNotification: oNotification;
585
+
586
+ declare enum eRoles {
587
+ Administrator = "Administrator",
588
+ Seller = "Seller",
589
+ Consultant = "Consultant"
590
+ }
591
+ declare enum eProcessStatus {
592
+ IDLE = "IDLE",
593
+ ERROR = "ERROR",
594
+ CANCELED = "CANCELED",
595
+ COMPLETE = "COMPLETE",
596
+ PROCESSING = "PROCESSING",
597
+ WAITING = "WAITING"
598
+ }
599
+ declare enum eLoginStatus {
600
+ IDLE = "IDLE",
601
+ ERROR = "ERROR",
602
+ AUTHORIZED = "AUTHORIZED",
603
+ CHECKING = "CHECKING",
604
+ NOAUTHORIZED = "NOAUTHORIZED",
605
+ NOTFOUND = "NOTFOUND",
606
+ ERRORPASSWORD = "ERRORPASSWORD"
607
+ }
608
+ declare enum eClientStatus {
609
+ ACTIVE = "active",
610
+ COMPLETED = "completed",
611
+ PAUSED = "paused",
612
+ CANCELED = "canceled",
613
+ LATE = "late"
614
+ }
615
+ declare const cSingleOptionClientStatus: iOptionsSelect;
616
+ declare const cOptionsClientStatus: iOptionsSelect[];
617
+ interface iOptionsSelect {
618
+ viewValue: String;
619
+ value: String;
620
+ }
621
+ interface iSelect {
622
+ viewValue: eRoles;
623
+ value: eRoles;
624
+ }
625
+ declare const eRolesSelect: iSelect[];
626
+ interface iConfigUUID {
627
+ client_uuid?: string;
628
+ contract_uuid: string;
629
+ }
630
+ interface iPaymentDelay {
631
+ today: number;
632
+ nextPayment: number;
633
+ daysDelay: number;
634
+ late: boolean;
635
+ }
636
+ declare const cPaymentDalay: iPaymentDelay;
637
+ interface oResponse {
638
+ error?: string;
639
+ data: oUser | oUser[] | oBusinessInfo | oAddress | oSchedule | oFinancial | string | iPaymentDelay | oClient | oDevice | iConfigUUID | Response | oNotification;
640
+ }
641
+ interface gResponse {
642
+ status?: boolean;
643
+ path: string;
644
+ statusCode: number;
645
+ error?: string;
646
+ epochTime: number;
647
+ data: any;
648
+ }
649
+ interface gResponseFuncEmail {
650
+ success: boolean;
651
+ message: any;
652
+ }
653
+ declare const snackBarConfigAction: MatSnackBarConfig;
654
+ declare const snackBarConfigNoAction: MatSnackBarConfig;
655
+ interface iInformativeDialog {
656
+ message: string;
657
+ title: string;
658
+ cancel: string;
659
+ continue: string;
660
+ }
661
+ interface iSnackBarMessage {
662
+ message: string;
663
+ action: string;
664
+ config: MatSnackBarConfig;
665
+ }
666
+ type tyClientContract = oClient & oContract;
667
+ declare const cTyClientContract: {
668
+ id: string;
669
+ dynamicAccount?: number;
670
+ client: string;
671
+ address: oAddress;
672
+ device: oDevice;
673
+ financial: oFinancial;
674
+ createdAt?: number;
675
+ lastPayment?: number;
676
+ by: string;
677
+ active: boolean;
678
+ photo?: string;
679
+ name: string;
680
+ username: string;
681
+ password?: string;
682
+ email: string;
683
+ phone: string;
684
+ curp: string;
685
+ contract?: string;
686
+ lastLogin?: number;
687
+ contract_temporary?: string;
688
+ exists?: boolean;
689
+ conekta_id?: string;
690
+ dynamic_id?: number | string;
691
+ dynamic_account?: string | number;
692
+ dynamic_ref?: string;
693
+ passport_id?: string;
694
+ payments?: oClientPayments[];
695
+ reference?: string;
696
+ references?: oClientReferences[];
697
+ token?: string;
698
+ userReferences: oUserReference[];
699
+ contractUrl?: string;
700
+ status: string;
701
+ };
702
+ interface oContractMetrics {
703
+ total: number;
704
+ activated: number;
705
+ paused: number;
706
+ completed: number;
707
+ canceled: number;
708
+ late: number;
709
+ dynamicCount: number;
710
+ passportCount: number;
711
+ conektaCount: number;
712
+ rateTotal: number;
713
+ rateActive: number;
714
+ ratePaused: number;
715
+ rateComplete: number;
716
+ rateCanceled: number;
717
+ rateLate: number;
718
+ }
719
+ interface HasUnsavedChanges {
720
+ hasUnsavedChanges(): boolean;
721
+ }
722
+ interface oPaymentDates {
723
+ week: number;
724
+ date: number;
725
+ }
726
+
727
+ declare enum eReferenceStatusRav {
728
+ "Disponible" = "Disponible",
729
+ "Active" = "Activo con credito vigente",
730
+ "ActiveEnded" = "Activo sin credito vigente",
731
+ "Registered" = "Registrado",
732
+ "NonRegistered" = "No registrado",
733
+ "NonVerified" = "No verificado",
734
+ "Rejected" = "Rechazado",
735
+ "Pending" = "Pendiente"
736
+ }
737
+ declare enum eAccountDynamicStatus {
738
+ "OK" = "Con cuenta activa",
739
+ "NOK" = "Sin cuenta activa"
740
+ }
741
+ declare enum eClientDynamicStatus {
742
+ "Active" = "Active",
743
+ "Pending" = "Pending",
744
+ "Accepted" = "Accepted",
745
+ "Rejected" = "Rejected",
746
+ "approved" = "Aprobado"
747
+ }
748
+ declare const cClientDynamicStatus: {
749
+ Active: {
750
+ value: string;
751
+ viewValue: string;
752
+ };
753
+ Pending: {
754
+ value: string;
755
+ viewValue: string;
756
+ };
757
+ Accepted: {
758
+ value: string;
759
+ viewValue: string;
760
+ };
761
+ Rejected: {
762
+ value: string;
763
+ viewValue: string;
764
+ };
765
+ Idle: {
766
+ value: string;
767
+ viewValue: string;
768
+ };
769
+ };
770
+ declare enum eContractSteps {
771
+ "idle" = "idle",
772
+ "general" = "General",
773
+ "address" = "Address",
774
+ "device" = "Device",
775
+ "financial" = "Financial",
776
+ "app" = "App"
777
+ }
778
+ type partialIDCData = Pick<IDCClient, "pii" | "client_type">;
779
+ interface IDCCharge {
780
+ barcode_url: string;
781
+ currency: string;
782
+ expires_at: number;
783
+ object: string;
784
+ quantity: number;
785
+ reference: string;
786
+ service_name: string;
787
+ store_name: string;
788
+ type: string;
789
+ unit_price: number;
790
+ }
791
+ interface IDCGeneratedReference {
792
+ account: number;
793
+ active: number;
794
+ amount: number;
795
+ channel: string;
796
+ charge: IDCCharge;
797
+ company: number;
798
+ config?: any;
799
+ id: string;
800
+ operation: number;
801
+ }
802
+ declare const cIDCDataPii: IDCDataPii;
1
803
  /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="ravcredit-lib" />
5
- export * from './public-api';
804
+ * Base customer for create customer with DynamiCore provider
805
+ * */
806
+ declare const cIDCCustomer: partialIDCData;
807
+ interface IDCDataPii {
808
+ icc: string;
809
+ rfc: string;
810
+ city: string;
811
+ curp: string;
812
+ sex: string;
813
+ days: string;
814
+ step: string;
815
+ ticket: string;
816
+ evidence: string;
817
+ proof_of_address: string;
818
+ score_interno: string;
819
+ imei: string;
820
+ name: string;
821
+ term: string;
822
+ brand: string;
823
+ email: string;
824
+ model: string;
825
+ phone: string;
826
+ score: any;
827
+ state: string;
828
+ amount: string;
829
+ colony: string;
830
+ estado: any;
831
+ gender: string;
832
+ period: string;
833
+ street: string;
834
+ num_ext: string;
835
+ num_int: string;
836
+ zipcode: string;
837
+ financed: string;
838
+ house_is: string;
839
+ lastname: string;
840
+ type_job: string;
841
+ birthdate: string;
842
+ birthstate: string;
843
+ dicio_data: string;
844
+ dicio_step: any;
845
+ secondname: string;
846
+ nationality: string;
847
+ seller_name: string;
848
+ down_payment: string;
849
+ municipality: string;
850
+ score_no_hit: string;
851
+ study_degree: string;
852
+ branch_office: string;
853
+ identity_data: any;
854
+ interest_rate: string;
855
+ marital_status: string;
856
+ monthly_income: string;
857
+ motherlastname: string;
858
+ score_rcc_fico: string;
859
+ identity_selfie: any;
860
+ amount_by_period: string;
861
+ identity_id_back: any;
862
+ identity_id_front: any;
863
+ economic_dependents: string;
864
+ identity_id_request: any;
865
+ identity_verification: any;
866
+ is_address_ine_currently_live: string;
867
+ fotografia_del_cliente_con_el_equipo?: string;
868
+ }
869
+ interface IDCAccountProps {
870
+ clabe: string | number;
871
+ pagaqui: string | number;
872
+ start_date: string;
873
+ expected_disbursed: number;
874
+ reference_pagaaqui: string;
875
+ principal_disbursed: number;
876
+ amount_commission_opening: number;
877
+ seller_name?: string;
878
+ }
879
+ interface IDCAccountConfig {
880
+ contract: string;
881
+ credit_type: string;
882
+ periodicity: string;
883
+ installments: number;
884
+ interest_base: string;
885
+ interest_rate: number;
886
+ interest_arrears: number;
887
+ commission_opening: number;
888
+ financed_amount?: number;
889
+ }
890
+ interface IDCAccount {
891
+ id: number;
892
+ group: number;
893
+ company: number;
894
+ client: number;
895
+ created_at: string;
896
+ currency: string | number;
897
+ status: string;
898
+ properties: IDCAccountProps;
899
+ product: number;
900
+ enabled: string | number;
901
+ config: IDCAccountConfig;
902
+ amount: number;
903
+ type: string;
904
+ identifier: string;
905
+ start_at: string;
906
+ el: any;
907
+ client_id: string | number;
908
+ }
909
+ interface IDCTxnRowExtras {
910
+ reference: string;
911
+ transaction: string;
912
+ }
913
+ interface IDCTxnRow {
914
+ id: string;
915
+ created_at: string;
916
+ seq: number;
917
+ created: string;
918
+ last4: string;
919
+ response: any;
920
+ transaction_id: string;
921
+ contrapart: string;
922
+ reference: string;
923
+ external_reference: any;
924
+ extras: IDCTxnRowExtras;
925
+ name: string;
926
+ debit: number;
927
+ credit: number;
928
+ amount: number;
929
+ }
930
+ interface IDCTxnHeader {
931
+ name: string;
932
+ type: string;
933
+ label?: string;
934
+ money?: string;
935
+ format?: string;
936
+ }
937
+ interface IDCTxn {
938
+ rows: IDCTxnRow[];
939
+ headers: IDCTxnHeader[];
940
+ }
941
+ interface IDCMntryCycle {
942
+ date: string;
943
+ late: number;
944
+ paid: number;
945
+ past: string | boolean;
946
+ cycle: string | number;
947
+ amount: number;
948
+ detail: any;
949
+ status: string;
950
+ }
951
+ interface IDCMntryPymtAllPaidTotal {
952
+ amount: string;
953
+ cycles: string;
954
+ }
955
+ interface IDCMntryPymtAll {
956
+ late: number;
957
+ total: number;
958
+ va_cp: number;
959
+ actual: number;
960
+ cycles: IDCMntryCycle[];
961
+ vencido: number;
962
+ paid_total: IDCMntryPymtAllPaidTotal;
963
+ total_amount: number;
964
+ }
965
+ interface IDCMntryPymtDue {
966
+ total: number;
967
+ cycles: IDCMntryCycle[];
968
+ new_cycle: IDCMntryCycle;
969
+ old_cycle: IDCMntryCycle;
970
+ total_amount: number;
971
+ }
972
+ interface IDCMntryPymtOpen extends IDCMntryPymtDue {
973
+ }
974
+ interface IDCMntryPymtPaid {
975
+ total: number;
976
+ cycles: IDCMntryCycle[] | any[];
977
+ new_cycle: any;
978
+ old_cycle: any;
979
+ total_amount: number;
980
+ }
981
+ interface IDCMntryPymtDueTax {
982
+ expected: number;
983
+ }
984
+ interface IDCMntryPymtPymt {
985
+ paid: number;
986
+ expected: number;
987
+ }
988
+ interface IDCMntryPymtCal {
989
+ due: IDCMntryPymtDue;
990
+ date: string;
991
+ past: string;
992
+ cycle: number;
993
+ balance: number;
994
+ due_tax: IDCMntryPymtDueTax;
995
+ payment: IDCMntryPymtPymt;
996
+ interest: IDCMntryPymtPymt;
997
+ principal: IDCMntryPymtPymt;
998
+ payment_tax: IDCMntryPymtPymt;
999
+ interest_tax: IDCMntryPymtPymt;
1000
+ final_balance: number;
1001
+ payment_total: IDCMntryPymtPymt;
1002
+ principal_tax: IDCMntryPymtPymt;
1003
+ }
1004
+ interface IDCMntryPymt {
1005
+ all: IDCMntryPymtAll;
1006
+ due: IDCMntryPymtDue;
1007
+ open: IDCMntryPymtOpen;
1008
+ paid: IDCMntryPymtPaid;
1009
+ payment_calendar: IDCMntryPymtCal[];
1010
+ }
1011
+ interface IDCClient {
1012
+ id: number;
1013
+ company: number;
1014
+ status: string;
1015
+ external_id: string;
1016
+ pii: IDCDataPii;
1017
+ client_type: number;
1018
+ created_at: string;
1019
+ pd: number;
1020
+ username: string;
1021
+ group: number;
1022
+ }
1023
+ interface IDCMsg {
1024
+ code: number;
1025
+ total: number;
1026
+ data: IDCClient[] | IDCAccount[] | IDCTxn[] | IDCTxn | IDCMntryPymt | IDCCredit[] | IDCTransaction[];
1027
+ transaction?: string;
1028
+ }
1029
+ interface IDynamiCore {
1030
+ status: string;
1031
+ message: IDCMsg;
1032
+ }
1033
+ /**
1034
+ * Interfaces for request (base)
1035
+ * */
1036
+ interface IDCClientObjFilter {
1037
+ name: string;
1038
+ filter: string[] | number[];
1039
+ type: string;
1040
+ sort: string;
1041
+ }
1042
+ interface IDCClientQuery {
1043
+ filters: IDCClientObjFilter[];
1044
+ }
1045
+ interface IDCClientPiiFilter {
1046
+ limit: number;
1047
+ page: number;
1048
+ query: IDCClientQuery;
1049
+ }
1050
+ interface IDCOxxoRefItem {
1051
+ name: string;
1052
+ unit_price: number;
1053
+ quantity: number;
1054
+ }
1055
+ interface IDCOxxoRefPymtMth {
1056
+ type: string;
1057
+ }
1058
+ interface IDCOxxoRef {
1059
+ account: number;
1060
+ operation: number;
1061
+ customer_info: IDCRefCustInfo;
1062
+ items: IDCOxxoRefItem;
1063
+ payment_method: IDCOxxoRefPymtMth;
1064
+ }
1065
+ /**
1066
+ * DynamiCore Reference Interface
1067
+ * */
1068
+ interface IDCRefCustInfo {
1069
+ name: string;
1070
+ email: string;
1071
+ phone: string | number;
1072
+ }
1073
+ /**
1074
+ * DynamiCore Reference
1075
+ * */
1076
+ interface IDCRefCustInfo {
1077
+ name: string;
1078
+ email: string;
1079
+ phone: string | number;
1080
+ }
1081
+ interface IDCRefItems {
1082
+ name: string;
1083
+ unit_price: number;
1084
+ quantity: number;
1085
+ }
1086
+ interface IDCRefPymtMethod {
1087
+ type: string;
1088
+ }
1089
+ interface IDCNewReference {
1090
+ id: string;
1091
+ data: IDCReference;
1092
+ date?: number;
1093
+ }
1094
+ interface IDCReference {
1095
+ account: number;
1096
+ operation: number;
1097
+ customer_info: IDCRefCustInfo;
1098
+ items: IDCRefItems;
1099
+ payment_method: IDCRefPymtMethod;
1100
+ }
1101
+ /**
1102
+ * Interfaces to Credits
1103
+ * */
1104
+ interface IDCCreditProperties {
1105
+ start_date: string;
1106
+ principal_disbursed: number;
1107
+ expected_disbursed: number;
1108
+ amount_commission_opening: number;
1109
+ }
1110
+ interface IDCCreditConfig {
1111
+ contract: string;
1112
+ credit_type: string;
1113
+ interest_rate: number;
1114
+ installments: number;
1115
+ periodicity: string;
1116
+ interest_base: string;
1117
+ commission_opening: number;
1118
+ financed_amount: number;
1119
+ interest_arrears: number;
1120
+ }
1121
+ interface IDCCredit {
1122
+ id: number;
1123
+ group: number;
1124
+ company: number;
1125
+ client: number;
1126
+ created_at: string;
1127
+ currency: string;
1128
+ status: string;
1129
+ properties: IDCCreditProperties;
1130
+ product: number;
1131
+ enabled: string;
1132
+ config: IDCCreditConfig;
1133
+ amount: number;
1134
+ type: string;
1135
+ identifier: null | string;
1136
+ start_at: null | string;
1137
+ }
1138
+ /**
1139
+ * Payments
1140
+ * */
1141
+ interface IDCPayment {
1142
+ operation: number;
1143
+ account: string;
1144
+ date: string;
1145
+ amount: number;
1146
+ external_id?: string;
1147
+ dst_account: string;
1148
+ extras?: object;
1149
+ reference: string;
1150
+ }
1151
+ declare const cIDCPayment: IDCPayment;
1152
+ /**
1153
+ * Transactions
1154
+ * */
1155
+ interface IDCTransaction {
1156
+ data: [number, {
1157
+ transaction: string;
1158
+ }];
1159
+ }
1160
+ declare const cIDCCharge: IDCCharge;
1161
+ declare const cIDCGeneratedReference: IDCGeneratedReference;
1162
+ /**
1163
+ * Common Factory Dynamic
1164
+ * */
1165
+ declare class FactoryDynamiCore {
1166
+ static CreateReferenceBody(client: oClient, contract: oContract, dateTime?: number): IDCNewReference | null;
1167
+ static CreateEmptyCustomer(): partialIDCData;
1168
+ static CreateCustomerFromOClient(client: oClient, contract: oContract): partialIDCData;
1169
+ static CreateDynamicCredit(client: oClient, contract: oContract, clientDynamic: IDCClient): Partial<IDCCredit> | null;
1170
+ static CreatePayment(contract: oContract, clientDynamic: IDCAccount): IDCPayment;
1171
+ static getNextDateTime(): string;
1172
+ static getIsoDate(): string;
1173
+ static FormPayment(contract: oContract, account: IDCAccount): {
1174
+ amount: UntypedFormControl;
1175
+ };
1176
+ }
1177
+
1178
+ interface iContractAll {
1179
+ getAllLocal(): Promise<void>;
1180
+ getAllServer(): Promise<void>;
1181
+ getDynamicTransactionsManual(account: number): Promise<boolean>;
1182
+ createNewReferenceDynamic(client: tyClientContract): Promise<boolean>;
1183
+ createNewReferenceConekta(client: tyClientContract): Promise<void>;
1184
+ createNewReferencePassport(client: tyClientContract): Promise<void>;
1185
+ referenceCreated(response: boolean, provider: string): void;
1186
+ getColumnName(column: string): string;
1187
+ searchDynamicAccount(client: tyClientContract): Promise<IDCAccount | null>;
1188
+ updateClient(client: Partial<oClient>): Promise<boolean>;
1189
+ updateContract(id: string, contract: Partial<oContract>): Promise<boolean>;
1190
+ deleteClient(client: oClient): Promise<boolean>;
1191
+ deleteContract(contract: oContract): Promise<boolean>;
1192
+ updateClientAppAccess(client: Partial<oClient>, id: string): Promise<boolean>;
1193
+ calcTotal(contract: oContract): number;
1194
+ }
1195
+
1196
+ interface oCustomer {
1197
+ livemode: boolean;
1198
+ name: string;
1199
+ email: string;
1200
+ phone: string;
1201
+ id: string;
1202
+ object: string;
1203
+ created_at: number;
1204
+ corporate: boolean;
1205
+ custom_reference: string;
1206
+ }
1207
+ interface oCustomerInfo {
1208
+ customer_id: string;
1209
+ name?: string;
1210
+ email?: string;
1211
+ phone?: string;
1212
+ }
1213
+
1214
+ declare enum eAuthActions {
1215
+ delete = "delete",
1216
+ auth = "auth"
1217
+ }
1218
+ declare enum eAuthType {
1219
+ auth = "auth",
1220
+ login = "login",
1221
+ idle = ""
1222
+ }
1223
+ interface iAuthConfig {
1224
+ title: string;
1225
+ desc: string;
1226
+ data: boolean;
1227
+ }
1228
+ declare const cAuthConfig: iAuthConfig;
1229
+ interface ISignIn {
1230
+ username: WritableSignal<string>;
1231
+ password: WritableSignal<string>;
1232
+ login(credentials: oAuth, destination: string): Promise<void>;
1233
+ success(): void;
1234
+ }
1235
+ interface oAuth {
1236
+ username: string;
1237
+ password: string;
1238
+ }
1239
+ interface oAuthRes {
1240
+ status: number;
1241
+ data: {};
1242
+ }
1243
+
1244
+ interface iNewPayment {
1245
+ getContract(): Promise<void>;
1246
+ getContractApi(): Promise<oContract>;
1247
+ getClient(contract: oContract): Promise<void>;
1248
+ getClientApi(contract: oContract): Promise<oClient>;
1249
+ getParams(): Promise<void>;
1250
+ getAccount(): Promise<boolean>;
1251
+ createPayment(): Promise<string>;
1252
+ }
1253
+
1254
+ declare enum ePassportTypes {
1255
+ CREATE = "create_references",
1256
+ SEND = "send_references"
1257
+ }
1258
+ /** *********************************************************************************/
1259
+ interface iPassportAdditional {
1260
+ client?: string;
1261
+ clientID?: string;
1262
+ credit?: string;
1263
+ }
1264
+ interface iPassportReferenceData {
1265
+ name: string;
1266
+ email: string;
1267
+ amount: number;
1268
+ expirationDate: string;
1269
+ additional: iPassportAdditional;
1270
+ }
1271
+ /** Passport request interface base */
1272
+ interface iPassportReference {
1273
+ type: string;
1274
+ data: iPassportReferenceData;
1275
+ }
1276
+ /** Global passport reference aPI */
1277
+ interface iGlobalPassport {
1278
+ passport: iPassportReference;
1279
+ contract: oContract;
1280
+ date?: number;
1281
+ }
1282
+ /** ******************************** */
1283
+ interface iPassportResponseData {
1284
+ name: string;
1285
+ email: string;
1286
+ amount: number;
1287
+ expirationDate: string;
1288
+ additional: iPassportAdditional;
1289
+ }
1290
+ interface iPassportReferenceCenters {
1291
+ name: string;
1292
+ logo: string;
1293
+ }
1294
+ interface iPassportReferenceRes {
1295
+ reference: string;
1296
+ centers: iPassportReferenceCenters[];
1297
+ centerId: number;
1298
+ barcode: string;
1299
+ }
1300
+ /** Passport response interface base */
1301
+ interface iPassportResponse {
1302
+ type: string;
1303
+ data: iPassportResponseData;
1304
+ message: string;
1305
+ references: iPassportReference[];
1306
+ }
1307
+
1308
+ declare const cClient: oClient;
1309
+ interface oClientConekta {
1310
+ ravcredit: oClient;
1311
+ conekta: iConektaRecurrent;
1312
+ }
1313
+ declare const cUserReference: oUserReference;
1314
+ declare const cClientConekta: oClientConekta;
1315
+ interface iClientContract {
1316
+ client: oClient;
1317
+ contract: oContract;
1318
+ }
1319
+ declare const cClientContract: iClientContract;
1320
+ declare class FactoryClient {
1321
+ static CreateClientToConektaObj(data: oClient): any;
1322
+ static CreateClientFromFormObj(data: any, client?: oClient): oClient;
1323
+ static CreateClientConektaObj(data: oClient, finalDate: number): {
1324
+ name: string;
1325
+ email: string;
1326
+ phone: string;
1327
+ contract: string | undefined;
1328
+ client_id: string;
1329
+ payment_sources: iConektaSources[];
1330
+ };
1331
+ static MapperConektaClient(client: oClient, conekta: iConektaRecurrent): iClientContract;
1332
+ static MapperTypeContCli_Client(_client: tyClientContract): oClient;
1333
+ static MapperDynamicClient(dynamic: IDCClient, client: oClient, contract: oContract, clientDyn?: IDCClient, account?: IDCAccount): iClientContract;
1334
+ static MapperFinancialContract(contract: oContract, account: IDCAccount): oFinancial;
1335
+ }
1336
+
1337
+ declare const cSchedule: oSchedule;
1338
+ declare const cEmptyDay: oSchedule;
1339
+ declare const week: string[];
1340
+ declare const cDefinedSchedule: oSchedule[];
1341
+ declare const cBusinessInfo: oBusinessInfo;
1342
+ declare const cBusinessDeadlines: oBusinessDeadlines;
1343
+ declare const cBusinessConfig: oBusinessConfig;
1344
+ declare class FactoryBusiness {
1345
+ static FormBusinessInfo(info?: oBusinessInfo): {
1346
+ name: UntypedFormControl;
1347
+ email: UntypedFormControl;
1348
+ desc: UntypedFormControl;
1349
+ street: UntypedFormControl;
1350
+ neighbor: UntypedFormControl;
1351
+ cp: UntypedFormControl;
1352
+ ext: UntypedFormControl;
1353
+ int: UntypedFormControl;
1354
+ city: UntypedFormControl;
1355
+ state: UntypedFormControl;
1356
+ phones: UntypedFormControl;
1357
+ mondayOpen: UntypedFormControl;
1358
+ mondayClose: UntypedFormControl;
1359
+ tuesdayOpen: UntypedFormControl;
1360
+ tuesdayClose: UntypedFormControl;
1361
+ wednesdayOpen: UntypedFormControl;
1362
+ wednesdayClose: UntypedFormControl;
1363
+ thursdayOpen: UntypedFormControl;
1364
+ thursdayClose: UntypedFormControl;
1365
+ fridayOpen: UntypedFormControl;
1366
+ fridayClose: UntypedFormControl;
1367
+ saturdayOpen: UntypedFormControl;
1368
+ saturdayClose: UntypedFormControl;
1369
+ sundayOpen: UntypedFormControl;
1370
+ sundayClose: UntypedFormControl;
1371
+ };
1372
+ static CreateBusinessInfoObj(data: oTmpBusinessConfig): oBusinessInfo;
1373
+ static FormDeadlineConfig(data: oBusinessDeadlines): {
1374
+ weeks: UntypedFormControl;
1375
+ interest: UntypedFormControl;
1376
+ };
1377
+ static FormBusinessConfig(config?: oBusinessConfig): {
1378
+ downloadsClient: UntypedFormControl;
1379
+ passportPaymentReference: UntypedFormControl;
1380
+ conektaPaymentReference: UntypedFormControl;
1381
+ conektaPaymentLink: UntypedFormControl;
1382
+ dynamicPaymentReference: UntypedFormControl;
1383
+ deadlines: UntypedFormArray;
1384
+ };
1385
+ static testBusiness(message: string): string;
1386
+ }
1387
+
1388
+ declare enum eProvider {
1389
+ none = "",
1390
+ Conekta = "Conekta",
1391
+ Passport = "Passport",
1392
+ DynamiCore = "DynamiCore"
1393
+ }
1394
+ declare const cDevice: oDevice;
1395
+ declare const cFinancial: oFinancial;
1396
+ declare const cContract: oContract;
1397
+ declare class FactoryContract {
1398
+ static FormClient(client?: oClient): {
1399
+ name: UntypedFormControl;
1400
+ email: UntypedFormControl;
1401
+ phone: UntypedFormControl;
1402
+ curp: UntypedFormControl;
1403
+ userReferences: UntypedFormArray;
1404
+ };
1405
+ static CreateUserReferenceFormObj(user: oUserReference): {
1406
+ name: UntypedFormControl;
1407
+ phone: UntypedFormControl;
1408
+ relationship: UntypedFormControl;
1409
+ };
1410
+ static FormAddress(address?: oAddress): {
1411
+ street: UntypedFormControl;
1412
+ neighbor: UntypedFormControl;
1413
+ cp: UntypedFormControl;
1414
+ ext: UntypedFormControl;
1415
+ int: UntypedFormControl;
1416
+ city: UntypedFormControl;
1417
+ state: UntypedFormControl;
1418
+ };
1419
+ static FormDevice(device?: oDevice): {
1420
+ model: UntypedFormControl;
1421
+ IMEI: UntypedFormControl;
1422
+ ID: UntypedFormControl;
1423
+ };
1424
+ static FormFinancial(financial?: oFinancial): {
1425
+ total: UntypedFormControl;
1426
+ initial: UntypedFormControl;
1427
+ financed: UntypedFormControl;
1428
+ weeklyPayment: UntypedFormControl;
1429
+ deadlines: UntypedFormControl;
1430
+ initDate: UntypedFormControl;
1431
+ provider: UntypedFormControl;
1432
+ credit_type: UntypedFormControl;
1433
+ interest_rate: UntypedFormControl;
1434
+ commission_opening: UntypedFormControl;
1435
+ interest_arrears: UntypedFormControl;
1436
+ amount_commission_opening: UntypedFormControl;
1437
+ principal_disbursed: UntypedFormControl;
1438
+ expected_disbursed: UntypedFormControl;
1439
+ };
1440
+ static CreateContractFromFormObj(data: any, finalPay: number): oContract;
1441
+ static CreateContractToConektaObj(data: oContract, monthlyPay: number, finalPay: number): oContract;
1442
+ static CreateAuthForm(username: string, curp: string): {
1443
+ username: UntypedFormControl;
1444
+ password: UntypedFormControl;
1445
+ };
1446
+ static createPassword(curp: string): string;
1447
+ static MapperTypeContCli_Contract(_contract: tyClientContract): oContract;
1448
+ static MapperSyncContractDynamic(base: oContract, account: IDCAccount): oContract;
1449
+ }
1450
+
1451
+ declare class IndexedDbService {
1452
+ indexDbStatus: boolean;
1453
+ iDb: IDBPDatabase<unknown>;
1454
+ constructor();
1455
+ dbAuthorization(): Promise<any>;
1456
+ dbSignIn(store: string, data: any): Promise<void>;
1457
+ setLocalStorage(k: string, v: string): void;
1458
+ getLocalStorage<T>(k: string): T;
1459
+ deleteLocalStorage<T>(k: string): T;
1460
+ getLocalUser(): string | null;
1461
+ getPlatformUser(): Promise<string>;
1462
+ getToken(): Promise<string>;
1463
+ addObject<T>(store: string, data: any): Promise<boolean>;
1464
+ patchObject<T>(store: string, data: any): Promise<T>;
1465
+ updateObjectByID<T>(store: string, id: string, data: T): Promise<boolean>;
1466
+ upsertObjectById<T>(store: string, id: string, data: T): Promise<IDBValidKey>;
1467
+ removeObject<T>(store: string, data: any): Promise<T>;
1468
+ deleteObjectByID<T>(store: string, id: string): Promise<T | idb.IDBPCursorWithValue<unknown, [string], string, string, "readwrite"> | null>;
1469
+ cleanAll<T>(store: string): Promise<void>;
1470
+ getObject<T>(store: string, data: any): Promise<T>;
1471
+ addBuildByStore(store: string, data: any[]): Promise<void>;
1472
+ updateObject<T>(store: string, data: any): Promise<void>;
1473
+ getAllByStore<T>(store: string, index?: string): Promise<T>;
1474
+ getAuthUser(): Promise<oUser>;
1475
+ getAuthName(): Promise<string>;
1476
+ getAuthUsername(): Promise<string>;
1477
+ saveDataLocally<T>(contract: oContract, client: oClient, providerData: T): Promise<boolean>;
1478
+ /******************** MERGE **************************************/
1479
+ getAllClientContracts(): Promise<tyClientContract[]>;
1480
+ static ɵfac: i0.ɵɵFactoryDeclaration<IndexedDbService, never>;
1481
+ static ɵprov: i0.ɵɵInjectableDeclaration<IndexedDbService>;
1482
+ }
1483
+
1484
+ declare const keyUserID: string;
1485
+ declare const dbVersion: number;
1486
+ declare const dbName: string;
1487
+ declare const keyPathId: string;
1488
+ declare const dbAuthStore: string;
1489
+ declare const dbUsersStore: string;
1490
+ declare const dbContractsStore: string;
1491
+ declare const dbClientsStore: string;
1492
+ declare const dbBusinessInfo: string;
1493
+ declare const dbBusinessConfig: string;
1494
+ declare const dbConektaClientsStore: string;
1495
+ declare const dbConektaReferencesStore: string;
1496
+ declare const dbPassportReferencesStore: string;
1497
+ declare const dbDynamicReferencesStore: string;
1498
+ declare const dbDynamicAccountStore: string;
1499
+ declare const dbNotificationsStore: string;
1500
+ declare const dbPaymentsStore: string;
1501
+ declare const dbIndexAuth: string;
1502
+ declare const dbIndexUsers: string;
1503
+ declare const dbIndexContracts: string;
1504
+ declare const dbIndexClients: string;
1505
+ declare const dbIndexBusiness: string;
1506
+ declare const dbIndexConektaClients: string;
1507
+ declare const dbIndexConektaClientsRef: string;
1508
+ declare const dbIndexPassportClientsRef: string;
1509
+ declare const dbIndexNotification: string;
1510
+ declare const dbIndexPayments: string;
1511
+ declare const dateFormat = "EEEE, dd MMM yyyy";
1512
+ declare const dateCompleteFormat = "EEEE, dd MMM yyyy hh:mm aaaa";
1513
+ declare const timeFormat = "hh:mm aaaa";
1514
+ declare const expiredPayment = "expiredPayment";
1515
+
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 };