ravcredit-lib 0.0.20 → 0.0.22

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/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import { UntypedFormGroup, UntypedFormControl, UntypedFormArray } from '@angular
4
4
  import { MatSnackBarConfig } from '@angular/material/snack-bar';
5
5
  import * as idb from 'idb';
6
6
  import { IDBPDatabase } from 'idb';
7
+ import * as ravcredit_lib from 'ravcredit-lib';
7
8
 
8
9
  declare class RavcreditLibService {
9
10
  constructor();
@@ -25,7 +26,6 @@ interface oAddress {
25
26
  int: string;
26
27
  state: string;
27
28
  }
28
- declare const cAddress: oAddress;
29
29
 
30
30
  interface iBusinessInfo {
31
31
  address: WritableSignal<oAddress>;
@@ -41,35 +41,18 @@ interface oSchedule {
41
41
  open: number;
42
42
  close: number;
43
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
- };
44
+ interface oDaySchedule {
45
+ open: number;
46
+ close: number;
47
+ }
48
+ type oWeekSchedule = {
49
+ monday: oDaySchedule;
50
+ tuesday: oDaySchedule;
51
+ wednesday: oDaySchedule;
52
+ thursday: oDaySchedule;
53
+ friday: oDaySchedule;
54
+ saturday: oDaySchedule;
55
+ sunday: oDaySchedule;
73
56
  };
74
57
  interface oBusinessInfo {
75
58
  version: string;
@@ -78,7 +61,7 @@ interface oBusinessInfo {
78
61
  address: oAddress;
79
62
  phones: string[];
80
63
  email: string;
81
- schedule?: weekSchedule;
64
+ schedule?: oWeekSchedule;
82
65
  }
83
66
  interface oBusinessDeadlines {
84
67
  weeks: number;
@@ -110,7 +93,7 @@ interface oTmpBusinessConfig {
110
93
  city?: string;
111
94
  state?: string;
112
95
  phones?: string[];
113
- mondayOpen?: string;
96
+ mondayOpen?: string | number;
114
97
  mondayClose?: string;
115
98
  tuesdayOpen?: string;
116
99
  tuesdayClose?: string;
@@ -126,50 +109,6 @@ interface oTmpBusinessConfig {
126
109
  sundayClose?: string;
127
110
  }
128
111
 
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
112
  declare enum eConektaRes {
174
113
  CUSTOMER_CREATED = "customer.created",
175
114
  ORDER_PENDING_PAYMENT = "order.pending_payment",
@@ -183,6 +122,7 @@ declare enum eConektaOrderStatus {
183
122
  paid = "paid",
184
123
  pending_payment = "pending_payment"
185
124
  }
125
+
186
126
  interface oConektaResObjChargePaid {
187
127
  id: string;
188
128
  livemode: boolean;
@@ -471,10 +411,6 @@ interface iConektaRecurrent {
471
411
  custom_id: string;
472
412
  payment_sources: iOxxoRecurrentSources;
473
413
  }
474
- /******************************************************* New reference constant */
475
- declare const cOxxorecurrentSourcesData: iOxxorecurrentSourcesData;
476
- declare const cOxxoRecurrentSources: iOxxoRecurrentSources;
477
- declare const cConektaRecurrent: iConektaRecurrent;
478
414
 
479
415
  interface oDevice {
480
416
  device: string;
@@ -533,150 +469,25 @@ interface oContract {
533
469
  photo?: string;
534
470
  }
535
471
 
536
- interface iUser {
537
- pUser: oUser;
538
- getAllUsers(): void;
539
- editUser(user: oUser): void;
540
- deleteUser(user: oUser): void;
541
- }
542
- interface oUser {
472
+ interface oClientPayments$1 {
473
+ date: number;
474
+ dayPayment: number;
475
+ amount: number;
543
476
  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
477
  }
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
- declare const snackBarConfigNoActionLong: MatSnackBarConfig;
656
- interface iInformativeDialog {
657
- message: string;
658
- title: string;
659
- cancel: string;
660
- continue: string;
478
+ interface oUserReference$1 {
479
+ name: string;
480
+ phone: string;
481
+ relationship: string;
661
482
  }
662
- interface iSnackBarMessage {
663
- message: string;
664
- action: string;
665
- config: MatSnackBarConfig;
483
+ interface oClientReferences$1 {
484
+ date?: number;
485
+ amount?: number;
486
+ id: string;
487
+ url?: string;
666
488
  }
667
- type tyClientContract = oClient & oContract;
668
- declare const cTyClientContract: {
489
+ interface oClient {
669
490
  id: string;
670
- dynamicAccount?: number;
671
- client: string;
672
- address: oAddress;
673
- device: oDevice;
674
- financial: oFinancial;
675
- createdAt?: number;
676
- lastPayment?: number;
677
- by: string;
678
- active: boolean;
679
- photo?: string;
680
491
  name: string;
681
492
  username: string;
682
493
  password?: string;
@@ -684,6 +495,7 @@ declare const cTyClientContract: {
684
495
  phone: string;
685
496
  curp: string;
686
497
  contract?: string;
498
+ createdAt?: number;
687
499
  lastLogin?: number;
688
500
  contract_temporary?: string;
689
501
  exists?: boolean;
@@ -692,37 +504,13 @@ declare const cTyClientContract: {
692
504
  dynamic_account?: string | number;
693
505
  dynamic_ref?: string;
694
506
  passport_id?: string;
695
- payments?: oClientPayments[];
507
+ payments?: oClientPayments$1[];
696
508
  reference?: string;
697
- references?: oClientReferences[];
509
+ references?: oClientReferences$1[];
698
510
  token?: string;
699
- userReferences: oUserReference[];
511
+ userReferences: oUserReference$1[];
700
512
  contractUrl?: string;
701
513
  status: string;
702
- };
703
- interface oContractMetrics {
704
- total: number;
705
- activated: number;
706
- paused: number;
707
- completed: number;
708
- canceled: number;
709
- late: number;
710
- dynamicCount: number;
711
- passportCount: number;
712
- conektaCount: number;
713
- rateTotal: number;
714
- rateActive: number;
715
- ratePaused: number;
716
- rateComplete: number;
717
- rateCanceled: number;
718
- rateLate: number;
719
- }
720
- interface HasUnsavedChanges {
721
- hasUnsavedChanges(): boolean;
722
- }
723
- interface oPaymentDates {
724
- week: number;
725
- date: number;
726
514
  }
727
515
 
728
516
  declare enum eReferenceStatusRav {
@@ -1176,31 +964,92 @@ declare class FactoryDynamiCore {
1176
964
  };
1177
965
  }
1178
966
 
1179
- interface iContractAll {
1180
- getAllLocal(): Promise<void>;
1181
- getAllServer(): Promise<void>;
1182
- getDynamicTransactionsManual(account: number): Promise<boolean>;
1183
- createNewReferenceDynamic(client: tyClientContract): Promise<boolean>;
1184
- createNewReferenceConekta(client: tyClientContract): Promise<void>;
1185
- createNewReferencePassport(client: tyClientContract): Promise<void>;
1186
- referenceCreated(response: boolean, provider: string): void;
1187
- getColumnName(column: string): string;
1188
- searchDynamicAccount(client: tyClientContract): Promise<IDCAccount | null>;
1189
- updateClient(client: Partial<oClient>): Promise<boolean>;
1190
- updateContract(id: string, contract: Partial<oContract>): Promise<boolean>;
1191
- deleteClient(client: oClient): Promise<boolean>;
1192
- deleteContract(contract: oContract): Promise<boolean>;
1193
- updateClientAppAccess(client: Partial<oClient>, id: string): Promise<boolean>;
1194
- calcTotal(contract: oContract): number;
967
+ declare enum eRoles {
968
+ Administrator = "Administrator",
969
+ Seller = "Seller",
970
+ Consultant = "Consultant"
1195
971
  }
1196
972
 
1197
- interface oCustomer {
1198
- livemode: boolean;
1199
- name: string;
1200
- email: string;
1201
- phone: string;
1202
- id: string;
1203
- object: string;
973
+ type tyClientContract = oClient & oContract;
974
+ interface oContractMetrics {
975
+ total: number;
976
+ activated: number;
977
+ paused: number;
978
+ completed: number;
979
+ canceled: number;
980
+ late: number;
981
+ dynamicCount: number;
982
+ passportCount: number;
983
+ conektaCount: number;
984
+ rateTotal: number;
985
+ rateActive: number;
986
+ ratePaused: number;
987
+ rateComplete: number;
988
+ rateCanceled: number;
989
+ rateLate: number;
990
+ }
991
+ interface HasUnsavedChanges {
992
+ hasUnsavedChanges(): boolean;
993
+ }
994
+ interface oPaymentDates {
995
+ week: number;
996
+ date: number;
997
+ }
998
+ interface iInformativeDialog {
999
+ message: string;
1000
+ title: string;
1001
+ cancel: string;
1002
+ continue: string;
1003
+ }
1004
+ interface iSnackBarMessage {
1005
+ message: string;
1006
+ action: string;
1007
+ config: MatSnackBarConfig;
1008
+ }
1009
+ interface iOptionsSelect {
1010
+ viewValue: String;
1011
+ value: String;
1012
+ }
1013
+ interface iSelect {
1014
+ viewValue: eRoles;
1015
+ value: eRoles;
1016
+ }
1017
+ interface iConfigUUID {
1018
+ client_uuid?: string;
1019
+ contract_uuid: string;
1020
+ }
1021
+ interface iPaymentDelay {
1022
+ today: number;
1023
+ nextPayment: number;
1024
+ daysDelay: number;
1025
+ late: boolean;
1026
+ }
1027
+
1028
+ interface iContractAll {
1029
+ getAllLocal(): Promise<void>;
1030
+ getAllServer(): Promise<void>;
1031
+ getDynamicTransactionsManual(account: number): Promise<boolean>;
1032
+ createNewReferenceDynamic(client: tyClientContract): Promise<boolean>;
1033
+ createNewReferenceConekta(client: tyClientContract): Promise<void>;
1034
+ createNewReferencePassport(client: tyClientContract): Promise<void>;
1035
+ referenceCreated(response: boolean, provider: string): void;
1036
+ getColumnName(column: string): string;
1037
+ searchDynamicAccount(client: tyClientContract): Promise<IDCAccount | null>;
1038
+ updateClient(client: Partial<oClient>): Promise<boolean>;
1039
+ updateContract(id: string, contract: Partial<oContract>): Promise<boolean>;
1040
+ deleteClient(client: oClient): Promise<boolean>;
1041
+ deleteContract(contract: oContract): Promise<boolean>;
1042
+ updateClientAppAccess(client: Partial<oClient>, id: string): Promise<boolean>;
1043
+ calcTotal(contract: oContract): number;
1044
+ }
1045
+
1046
+ interface oCustomer {
1047
+ livemode: boolean;
1048
+ name: string;
1049
+ email: string;
1050
+ phone: string;
1051
+ id: string;
1052
+ object: string;
1204
1053
  created_at: number;
1205
1054
  corporate: boolean;
1206
1055
  custom_reference: string;
@@ -1212,21 +1061,11 @@ interface oCustomerInfo {
1212
1061
  phone?: string;
1213
1062
  }
1214
1063
 
1215
- declare enum eAuthActions {
1216
- delete = "delete",
1217
- auth = "auth"
1218
- }
1219
- declare enum eAuthType {
1220
- auth = "auth",
1221
- login = "login",
1222
- idle = ""
1223
- }
1224
1064
  interface iAuthConfig {
1225
1065
  title: string;
1226
1066
  desc: string;
1227
1067
  data: boolean;
1228
1068
  }
1229
- declare const cAuthConfig: iAuthConfig;
1230
1069
  interface ISignIn {
1231
1070
  username: WritableSignal<string>;
1232
1071
  password: WritableSignal<string>;
@@ -1252,10 +1091,27 @@ interface iNewPayment {
1252
1091
  createPayment(): Promise<string>;
1253
1092
  }
1254
1093
 
1255
- declare enum ePassportTypes {
1256
- CREATE = "create_references",
1257
- SEND = "send_references"
1094
+ declare const cTopic = "RavCreditClients";
1095
+ interface oNotificationResponses {
1096
+ successCount: number;
1097
+ failureCount: number;
1098
+ }
1099
+ interface oNotification {
1100
+ ids?: string[];
1101
+ type?: string;
1102
+ tokens?: string[];
1103
+ topic?: string;
1104
+ notification: {
1105
+ title: string;
1106
+ body: string;
1107
+ };
1108
+ data: any;
1109
+ notification_id?: number;
1110
+ recipient?: string;
1111
+ responses?: oNotificationResponses;
1258
1112
  }
1113
+ declare const cNotification: oNotification;
1114
+
1259
1115
  /** *********************************************************************************/
1260
1116
  interface iPassportAdditional {
1261
1117
  client?: string;
@@ -1306,6 +1162,30 @@ interface iPassportResponse {
1306
1162
  references: iPassportReference[];
1307
1163
  }
1308
1164
 
1165
+ interface iUser {
1166
+ pUser: oUser;
1167
+ getAllUsers(): void;
1168
+ editUser(user: oUser): void;
1169
+ deleteUser(user: oUser): void;
1170
+ }
1171
+ interface oUser {
1172
+ id: string;
1173
+ username: string;
1174
+ name: string;
1175
+ password: string;
1176
+ role: eRoles;
1177
+ lastLogin?: number;
1178
+ createdAt?: number;
1179
+ access_token: string;
1180
+ }
1181
+ interface iServiceUser {
1182
+ users: WritableSignal<oUser[]>;
1183
+ getAllUsersServer(): void;
1184
+ createUser(o: oUser): void;
1185
+ updateUser(o: oUser): void;
1186
+ deleteUser(id: string): void;
1187
+ }
1188
+
1309
1189
  declare enum eVerificationStep {
1310
1190
  IDLE = "IDLE",
1311
1191
  ERROR = "ERROR",
@@ -1326,6 +1206,7 @@ declare enum eVerificationChannel {
1326
1206
  EMAIL = "email",
1327
1207
  SNA = "sna"
1328
1208
  }
1209
+
1329
1210
  interface ISendCodeAttempt {
1330
1211
  time: string;
1331
1212
  channel: eVerificationChannel;
@@ -1363,7 +1244,7 @@ interface oClientConekta {
1363
1244
  ravcredit: oClient;
1364
1245
  conekta: iConektaRecurrent;
1365
1246
  }
1366
- declare const cUserReference: oUserReference;
1247
+ declare const cUserReference: oUserReference$1;
1367
1248
  declare const cClientConekta: oClientConekta;
1368
1249
  interface iClientContract {
1369
1250
  client: oClient;
@@ -1481,7 +1362,7 @@ declare class FactoryContract {
1481
1362
  curp: UntypedFormControl;
1482
1363
  userReferences: UntypedFormArray;
1483
1364
  };
1484
- static CreateUserReferenceFormObj(user: oUserReference): {
1365
+ static CreateUserReferenceFormObj(user: oUserReference$1): {
1485
1366
  name: UntypedFormControl;
1486
1367
  phone: UntypedFormControl;
1487
1368
  relationship: UntypedFormControl;
@@ -1674,12 +1555,83 @@ declare const dateCompleteFormat = "EEEE, dd MMM yyyy hh:mm aaaa";
1674
1555
  declare const timeFormat = "hh:mm aaaa";
1675
1556
  declare const expiredPayment = "expiredPayment";
1676
1557
 
1677
- interface ILambdaResponse {
1678
- StatusCode: number;
1679
- VerificationSms?: IVerificationSms;
1680
- VerificationCheckSms?: IVerificationCheckSms;
1681
- Error: string;
1682
- }
1558
+ declare const cSingleOptionClientStatus: iOptionsSelect;
1559
+ declare const cOptionsClientStatus: iOptionsSelect[];
1560
+ declare const eRolesSelect: iSelect[];
1561
+ declare const cPaymentDelay: iPaymentDelay;
1562
+ declare const snackBarConfigAction: MatSnackBarConfig;
1563
+ declare const snackBarConfigNoAction: MatSnackBarConfig;
1564
+ declare const snackBarConfigNoActionLong: MatSnackBarConfig;
1565
+ declare const cTyClientContract: {
1566
+ id: string;
1567
+ dynamicAccount?: number;
1568
+ client: string;
1569
+ address: oAddress;
1570
+ device: ravcredit_lib.oDevice;
1571
+ financial: ravcredit_lib.oFinancial;
1572
+ createdAt?: number;
1573
+ lastPayment?: number;
1574
+ by: string;
1575
+ active: boolean;
1576
+ photo?: string;
1577
+ name: string;
1578
+ username: string;
1579
+ password?: string;
1580
+ email: string;
1581
+ phone: string;
1582
+ curp: string;
1583
+ contract?: string;
1584
+ lastLogin?: number;
1585
+ contract_temporary?: string;
1586
+ exists?: boolean;
1587
+ conekta_id?: string;
1588
+ dynamic_id?: number | string;
1589
+ dynamic_account?: string | number;
1590
+ dynamic_ref?: string;
1591
+ passport_id?: string;
1592
+ payments?: oClientPayments$1[];
1593
+ reference?: string;
1594
+ references?: oClientReferences$1[];
1595
+ token?: string;
1596
+ userReferences: oUserReference$1[];
1597
+ contractUrl?: string;
1598
+ status: string;
1599
+ };
1600
+ declare const cAddress: oAddress;
1601
+ declare const cOxxoRecurrentSourcesData: iOxxorecurrentSourcesData;
1602
+ declare const cOxxoRecurrentSources: iOxxoRecurrentSources;
1603
+ declare const cConektaRecurrent: iConektaRecurrent;
1604
+ declare const cAuthConfig: iAuthConfig;
1605
+ declare const cDaySchedule: oDaySchedule;
1606
+
1607
+ declare const ErrorMessages: {
1608
+ NotFound: string;
1609
+ Unauthorized: string;
1610
+ RandomError: string;
1611
+ RandomErrorFirestore: string;
1612
+ CreateUser: string;
1613
+ CreateFoundedUser: string;
1614
+ FindAllNotFound: string;
1615
+ UserFindOne: string;
1616
+ UserFindOneError: string;
1617
+ UserUpdate: string;
1618
+ DeleteUser: string;
1619
+ UsernameNotFound: string;
1620
+ IncorrectPassword: string;
1621
+ LastLogIn: string;
1622
+ authError: string;
1623
+ tokenRequired: string;
1624
+ ClientDefined: string;
1625
+ ClientsNotFound: string;
1626
+ ClientNotFound: string;
1627
+ ClientNotUpdated: string;
1628
+ DeleteClient: string;
1629
+ UsernameClientNotFound: string;
1630
+ ContractsAllEmpty: string;
1631
+ ContractNotFound: string;
1632
+ ContractUpdateError: string;
1633
+ ContractDeleteError: string;
1634
+ };
1683
1635
 
1684
1636
  interface oCatalog {
1685
1637
  name: string;
@@ -1688,14 +1640,6 @@ interface oCatalog {
1688
1640
  createdAt: number;
1689
1641
  }
1690
1642
 
1691
- interface oCompany {
1692
- name: string;
1693
- id: string;
1694
- rfc: string;
1695
- taxRegime: string;
1696
- address: oAddress;
1697
- }
1698
-
1699
1643
  interface oScoreAddress {
1700
1644
  CP: string;
1701
1645
  ciudad: string;
@@ -1730,6 +1674,11 @@ interface oScoreReference {
1730
1674
  score: number;
1731
1675
  }
1732
1676
 
1677
+ declare enum eAssetPeriod {
1678
+ MONTH = "MONTH",
1679
+ WEEK = "WEEK"
1680
+ }
1681
+
1733
1682
  interface oAssetCategory {
1734
1683
  name: string;
1735
1684
  id: string;
@@ -1746,10 +1695,6 @@ interface oAssetOffer {
1746
1695
  createAt: number;
1747
1696
  description: string;
1748
1697
  }
1749
- declare enum eAssetPeriod {
1750
- MONTH = "MONTH",
1751
- WEEK = "WEEK"
1752
- }
1753
1698
  interface oPaymentOption {
1754
1699
  deadline: number;
1755
1700
  score: oScoreNoHit;
@@ -1771,10 +1716,11 @@ interface oAsset {
1771
1716
  IMEI: string;
1772
1717
  }
1773
1718
 
1774
- interface oContractV2 extends oContract {
1775
- company: oCompany;
1776
- status: eContractStatus;
1777
- asset: oAsset;
1719
+ interface ILambdaResponse {
1720
+ StatusCode: number;
1721
+ VerificationSms?: IVerificationSms;
1722
+ VerificationCheckSms?: IVerificationCheckSms;
1723
+ Error: string;
1778
1724
  }
1779
1725
 
1780
1726
  interface oMediaIdentity {
@@ -1785,5 +1731,122 @@ interface oMediaIdentity {
1785
1731
  uploaded: number;
1786
1732
  }
1787
1733
 
1788
- 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, eAssetPeriod, eAuthActions, eAuthType, eClientDynamicStatus, eClientStatus, eConektaOrderStatus, eConektaRes, eContractStatus, eContractSteps, eIdentityTypes, eLoginStatus, eNotificationType, ePassportTypes, ePaymentType, eProcessStatus, eProvider, eReferenceStatusRav, eRoles, eRolesSelect, eVerificationChannel, eVerificationStatus, eVerificationStep, expiredPayment, keyPathId, keyUserID, ravCreditFunctions, snackBarConfigAction, snackBarConfigNoAction, snackBarConfigNoActionLong, timeFormat, week };
1789
- export type { 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, 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, oAsset, oAssetBrand, oAssetCategory, oAssetOffer, oAuth, oAuthRes, oBusinessConfig, oBusinessDeadlines, oBusinessInfo, oCatalog, oClient, oClientConekta, oClientPayments, oClientReferences, oCompany, oConektaChannel, oConektaChargeData, oConektaCharges, oConektaCheckout, oConektaCustomerInfo, oConektaLineItem, oConektaLineItems, oConektaNewOrder, oConektaNewOrderAntifraudInfo, oConektaNewOrderCharge, oConektaNewOrderCustomerInfo, oConektaNewOrderLineItem, oConektaNewOrderPymMethod, oConektaOrder, oConektaOrderCreate, oConektaOrdersResponse, oConektaPaymentMethod, oConektaRes, oConektaResData, oConektaResObjChargePaid, oConektaResObjOrderPaid, oConektaResPrevAttr, oContract, oContractMetrics, oContractV2, oCustomer, oCustomerInfo, oDevice, oFinancial, oFinancialProgress, oMediaIdentity, oNotification, oNotificationResponses, oPaymentDates, oPaymentGlobal, oPaymentOption, oResponse, oSchedule, oScore, oScoreAddress, oScoreGeneral, oScoreHit, oScoreNoHit, oScoreReference, oTmpBusinessConfig, oUser, oUserReference, partialIDCData, tyClientContract, weekSchedule };
1734
+ interface oClientPayments {
1735
+ date: number;
1736
+ dayPayment: number;
1737
+ amount: number;
1738
+ id: string;
1739
+ }
1740
+ interface oUserReference {
1741
+ name: string;
1742
+ phone: string;
1743
+ relationship: string;
1744
+ }
1745
+ interface oClientReferences {
1746
+ date?: number;
1747
+ amount?: number;
1748
+ id: string;
1749
+ url?: string;
1750
+ }
1751
+ interface oClientV2 extends oClient {
1752
+ score: oScore;
1753
+ seller_id?: string;
1754
+ scoreNoHit?: oScoreNoHit;
1755
+ study_degree?: string;
1756
+ mediaSelfie?: oMediaIdentity;
1757
+ mediaAddress?: oMediaIdentity;
1758
+ mediaWithDevice?: oMediaIdentity;
1759
+ mediaSelfieBack?: oMediaIdentity;
1760
+ identityVerification?: eVerificationStep;
1761
+ }
1762
+
1763
+ interface oCompany {
1764
+ name: string;
1765
+ id: string;
1766
+ rfc: string;
1767
+ taxRegime: string;
1768
+ address: oAddress;
1769
+ }
1770
+
1771
+ interface oContractV2 extends oContract {
1772
+ company: oCompany;
1773
+ status: eContractStatus;
1774
+ asset: oAsset;
1775
+ }
1776
+
1777
+ interface oResponse {
1778
+ error?: string;
1779
+ data: oUser | oUser[] | oBusinessInfo | oAddress | oSchedule | oFinancial | string | iPaymentDelay | oClient | oDevice | iConfigUUID | Response | oNotification;
1780
+ }
1781
+ interface gResponse {
1782
+ status?: boolean;
1783
+ path: string;
1784
+ statusCode: number;
1785
+ error?: string;
1786
+ epochTime: number;
1787
+ data?: any;
1788
+ }
1789
+ interface gResponseFuncEmail {
1790
+ success: boolean;
1791
+ message: any;
1792
+ }
1793
+
1794
+ interface oMessagingData {
1795
+ id: string;
1796
+ curp: string;
1797
+ type: string;
1798
+ }
1799
+ interface oMessaging {
1800
+ data: oMessagingData;
1801
+ topic: string;
1802
+ }
1803
+
1804
+ declare enum eLoginStatus {
1805
+ IDLE = "IDLE",
1806
+ ERROR = "ERROR",
1807
+ AUTHORIZED = "AUTHORIZED",
1808
+ CHECKING = "CHECKING",
1809
+ NOAUTHORIZED = "NOAUTHORIZED",
1810
+ NOTFOUND = "NOTFOUND",
1811
+ ERRORPASSWORD = "ERRORPASSWORD"
1812
+ }
1813
+ declare enum eAuthActions {
1814
+ delete = "delete",
1815
+ auth = "auth"
1816
+ }
1817
+ declare enum eAuthType {
1818
+ auth = "auth",
1819
+ login = "login",
1820
+ idle = ""
1821
+ }
1822
+
1823
+ declare enum eClientStatus {
1824
+ ACTIVE = "active",
1825
+ COMPLETED = "completed",
1826
+ PAUSED = "paused",
1827
+ CANCELED = "canceled",
1828
+ LATE = "late"
1829
+ }
1830
+
1831
+ declare enum eNotificationType {
1832
+ GLOBAL = "global",
1833
+ USER = "user",
1834
+ PAYMENT = "payment"
1835
+ }
1836
+
1837
+ declare enum ePassportTypes {
1838
+ CREATE = "create_references",
1839
+ SEND = "send_references"
1840
+ }
1841
+
1842
+ declare enum eProcessStatus {
1843
+ IDLE = "IDLE",
1844
+ ERROR = "ERROR",
1845
+ CANCELED = "CANCELED",
1846
+ COMPLETE = "COMPLETE",
1847
+ PROCESSING = "PROCESSING",
1848
+ WAITING = "WAITING"
1849
+ }
1850
+
1851
+ export { ErrorMessages, 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, cDaySchedule, cDefinedSchedule, cDevice, cEmptyDay, cFinancial, cIDCCharge, cIDCCustomer, cIDCDataPii, cIDCGeneratedReference, cIDCPayment, cNotification, cOptionsClientStatus, cOxxoRecurrentSources, cOxxoRecurrentSourcesData, cPaymentDelay, 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, eAssetPeriod, eAuthActions, eAuthType, eClientDynamicStatus, eClientStatus, eConektaOrderStatus, eConektaRes, eContractStatus, eContractSteps, eIdentityTypes, eLoginStatus, eNotificationType, ePassportTypes, ePaymentType, eProcessStatus, eProvider, eReferenceStatusRav, eRoles, eRolesSelect, eVerificationChannel, eVerificationStatus, eVerificationStep, expiredPayment, keyPathId, keyUserID, ravCreditFunctions, snackBarConfigAction, snackBarConfigNoAction, snackBarConfigNoActionLong, timeFormat, week };
1852
+ export type { 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, 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, oAsset, oAssetBrand, oAssetCategory, oAssetOffer, oAuth, oAuthRes, oBusinessConfig, oBusinessDeadlines, oBusinessInfo, oCatalog, oClientConekta, oClientPayments, oClientReferences, oClientV2, oCompany, oConektaChannel, oConektaChargeData, oConektaCharges, oConektaCheckout, oConektaCustomerInfo, oConektaLineItem, oConektaLineItems, oConektaNewOrder, oConektaNewOrderAntifraudInfo, oConektaNewOrderCharge, oConektaNewOrderCustomerInfo, oConektaNewOrderLineItem, oConektaNewOrderPymMethod, oConektaOrder, oConektaOrderCreate, oConektaOrdersResponse, oConektaPaymentMethod, oConektaRes, oConektaResData, oConektaResObjChargePaid, oConektaResObjOrderPaid, oConektaResPrevAttr, oContract, oContractMetrics, oContractV2, oCustomer, oCustomerInfo, oDaySchedule, oDevice, oFinancial, oFinancialProgress, oMediaIdentity, oMessaging, oMessagingData, oNotification, oNotificationResponses, oPaymentDates, oPaymentGlobal, oPaymentOption, oResponse, oSchedule, oScore, oScoreAddress, oScoreGeneral, oScoreHit, oScoreNoHit, oScoreReference, oTmpBusinessConfig, oUser, oUserReference, oWeekSchedule, partialIDCData, tyClientContract };