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.
@@ -7,10 +7,10 @@ import { openDB } from 'idb';
7
7
 
8
8
  class RavcreditLibService {
9
9
  constructor() { }
10
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RavcreditLibService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
11
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RavcreditLibService, providedIn: 'root' });
10
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: RavcreditLibService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
11
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: RavcreditLibService, providedIn: 'root' });
12
12
  }
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RavcreditLibService, decorators: [{
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: RavcreditLibService, decorators: [{
14
14
  type: Injectable,
15
15
  args: [{
16
16
  providedIn: 'root'
@@ -18,14 +18,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
18
18
  }], ctorParameters: () => [] });
19
19
 
20
20
  class RavcreditLibComponent {
21
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RavcreditLibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: RavcreditLibComponent, isStandalone: true, selector: "lib-ravcredit-lib", ngImport: i0, template: `
21
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: RavcreditLibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.1", type: RavcreditLibComponent, isStandalone: true, selector: "lib-ravcredit-lib", ngImport: i0, template: `
23
23
  <p>
24
24
  ravcredit-lib works!
25
25
  </p>
26
26
  `, isInline: true, styles: [""] });
27
27
  }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RavcreditLibComponent, decorators: [{
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: RavcreditLibComponent, decorators: [{
29
29
  type: Component,
30
30
  args: [{ selector: 'lib-ravcredit-lib', standalone: true, imports: [], template: `
31
31
  <p>
@@ -34,62 +34,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
34
34
  ` }]
35
35
  }] });
36
36
 
37
- const cAddress = {
38
- street: "",
39
- city: "",
40
- neighbor: "",
41
- zip: "",
42
- ext: "",
43
- int: "",
44
- state: ""
45
- };
46
-
47
- var eConektaRes;
48
- (function (eConektaRes) {
49
- eConektaRes["CUSTOMER_CREATED"] = "customer.created";
50
- eConektaRes["ORDER_PENDING_PAYMENT"] = "order.pending_payment";
51
- eConektaRes["ORDER_CREATED"] = "order.created";
52
- eConektaRes["CHARGE_CREATED"] = "charge.created";
53
- eConektaRes["ORDER_PAID"] = "order.paid";
54
- eConektaRes["CHARGE_PAID"] = "charge.paid";
55
- })(eConektaRes || (eConektaRes = {}));
56
- var eConektaOrderStatus;
57
- (function (eConektaOrderStatus) {
58
- eConektaOrderStatus["expired"] = "expired";
59
- eConektaOrderStatus["paid"] = "paid";
60
- eConektaOrderStatus["pending_payment"] = "pending_payment";
61
- })(eConektaOrderStatus || (eConektaOrderStatus = {}));
62
- /******************************************************* New reference constant */
63
- const cOxxorecurrentSourcesData = {
64
- id: "",
65
- object: "",
66
- type: "",
67
- provider: "",
68
- reference: "",
69
- barcode: "",
70
- barcode_url: "",
71
- expires_at: 0,
72
- created_at: 0,
73
- parent_id: ""
74
- };
75
- const cOxxoRecurrentSources = {
76
- object: "",
77
- has_more: false,
78
- total: 0,
79
- data: []
80
- };
81
- const cConektaRecurrent = {
82
- livemode: false,
83
- name: "",
84
- email: "",
85
- phone: "",
86
- id: "",
87
- object: "",
88
- created_at: 0,
89
- corporate: false,
90
- custom_id: "",
91
- payment_sources: cOxxoRecurrentSources
92
- };
93
37
  //
94
38
  // {
95
39
  // data: {
@@ -146,233 +90,178 @@ const cConektaRecurrent = {
146
90
  // custom_reference:
147
91
  // }
148
92
 
149
- const cClient = {
150
- id: "",
151
- name: "",
152
- username: "",
153
- email: "",
154
- phone: "",
155
- curp: "",
156
- contract_temporary: "",
157
- conekta_id: "",
158
- userReferences: [],
159
- status: ""
93
+ const cTopic = "RavCreditClients";
94
+ const cNotification = {
95
+ notification: {
96
+ title: "",
97
+ body: ""
98
+ },
99
+ data: {
100
+ route: ""
101
+ }
160
102
  };
161
- const cUserReference = {
162
- name: "",
163
- phone: "",
164
- relationship: ""
103
+
104
+ /** ******************************** */
105
+
106
+ // export enum oGenVerificationProvider {
107
+ // pending, approved, expired
108
+ // }
109
+ //
110
+ // export interface oVerificationLookup {
111
+ // carrier: any[]
112
+ // }
113
+ //
114
+ // export interface oVerificationSenCodeAttempt {
115
+ // attempt_sid: any[],
116
+ // channel: any[],
117
+ // time: any[]
118
+ // }
119
+ //
120
+ // export interface oGenVerification {
121
+ // Sid: string
122
+ // ServiceSid: string,
123
+ // AccountSid: string,
124
+ // To: string,
125
+ // Channel: any,
126
+ // Status: oGenVerificationProvider,
127
+ // Valid: boolean,
128
+ // Lookup: oVerificationLookup,
129
+ // SendCodeAttempts: oVerificationSenCodeAttempt[],
130
+ // DateCreated: string,
131
+ // DateUpdated: string,
132
+ // Url: string
133
+ // }
134
+ //
135
+ // export interface oVerification {
136
+ // Sid : string,
137
+ // ServiceSid : string,
138
+ // AccountSid : string,
139
+ // To : string,
140
+ // Channel : any,
141
+ // Status : oGenVerificationProvider,
142
+ // Valid : boolean,
143
+ // DateCreated : string,
144
+ // DateUpdated : string
145
+ // }
146
+
147
+ var eClientStatus;
148
+ (function (eClientStatus) {
149
+ eClientStatus["ACTIVE"] = "active";
150
+ eClientStatus["COMPLETED"] = "completed";
151
+ eClientStatus["PAUSED"] = "paused";
152
+ eClientStatus["CANCELED"] = "canceled";
153
+ eClientStatus["LATE"] = "late";
154
+ })(eClientStatus || (eClientStatus = {}));
155
+
156
+ var eRoles;
157
+ (function (eRoles) {
158
+ eRoles["Administrator"] = "Administrator";
159
+ eRoles["Seller"] = "Seller";
160
+ eRoles["Consultant"] = "Consultant";
161
+ })(eRoles || (eRoles = {}));
162
+
163
+ const cSingleOptionClientStatus = {
164
+ viewValue: "",
165
+ value: ""
165
166
  };
166
- const cClientConekta = {
167
- conekta: cConektaRecurrent,
168
- ravcredit: cClient
167
+ const cOptionsClientStatus = [
168
+ {
169
+ value: eClientStatus.ACTIVE,
170
+ viewValue: "Activar"
171
+ }, {
172
+ value: eClientStatus.COMPLETED,
173
+ viewValue: "Completar"
174
+ }, {
175
+ value: eClientStatus.PAUSED,
176
+ viewValue: "Pausar"
177
+ }, {
178
+ value: eClientStatus.LATE,
179
+ viewValue: "Marcar con atraso"
180
+ }, {
181
+ value: eClientStatus.CANCELED,
182
+ viewValue: "Cancelar"
183
+ }
184
+ ];
185
+ const eRolesSelect = [
186
+ {
187
+ value: eRoles.Administrator,
188
+ viewValue: eRoles.Administrator
189
+ },
190
+ {
191
+ value: eRoles.Consultant,
192
+ viewValue: eRoles.Consultant
193
+ },
194
+ {
195
+ value: eRoles.Seller,
196
+ viewValue: eRoles.Seller
197
+ },
198
+ ];
199
+ const cPaymentDelay = {
200
+ today: 0,
201
+ nextPayment: 0,
202
+ daysDelay: 0,
203
+ late: false,
169
204
  };
170
- const cClientContract = {
171
- client: cClient,
172
- contract: cContract,
205
+ const snackBarConfigAction = {
206
+ horizontalPosition: "start"
207
+ };
208
+ const snackBarConfigNoAction = {
209
+ duration: 4000,
210
+ horizontalPosition: "start"
211
+ };
212
+ const snackBarConfigNoActionLong = {
213
+ duration: 8000,
214
+ horizontalPosition: "start"
215
+ };
216
+ const cTyClientContract = { ...cClient, ...cContract };
217
+ const cAddress = {
218
+ street: "",
219
+ city: "",
220
+ neighbor: "",
221
+ zip: "",
222
+ ext: "",
223
+ int: "",
224
+ state: ""
225
+ };
226
+ const cOxxoRecurrentSourcesData = {
227
+ id: "",
228
+ object: "",
229
+ type: "",
230
+ provider: "",
231
+ reference: "",
232
+ barcode: "",
233
+ barcode_url: "",
234
+ expires_at: 0,
235
+ created_at: 0,
236
+ parent_id: ""
237
+ };
238
+ const cOxxoRecurrentSources = {
239
+ object: "",
240
+ has_more: false,
241
+ total: 0,
242
+ data: []
243
+ };
244
+ const cConektaRecurrent = {
245
+ livemode: false,
246
+ name: "",
247
+ email: "",
248
+ phone: "",
249
+ id: "",
250
+ object: "",
251
+ created_at: 0,
252
+ corporate: false,
253
+ custom_id: "",
254
+ payment_sources: cOxxoRecurrentSources
255
+ };
256
+ const cAuthConfig = {
257
+ title: "",
258
+ desc: "",
259
+ data: true,
260
+ };
261
+ const cDaySchedule = {
262
+ open: 0,
263
+ close: 0
173
264
  };
174
- class FactoryClient {
175
- static CreateClientToConektaObj(data) {
176
- const o = {};
177
- if (data.name && data.name.length > 0)
178
- o.name = data.name;
179
- if (data.username && data.name.length > 0)
180
- o.username = data.username;
181
- if (data.email && data.email.length > 0)
182
- o.email = data.email;
183
- if (data.phone && data.phone.length > 0)
184
- o.phone = String(data.phone);
185
- if (data.curp && data.curp.length > 0)
186
- o.curp = data.curp;
187
- if (data.userReferences && data.userReferences.length > 0)
188
- o.userReferences = data.userReferences;
189
- if (data.contract)
190
- o.contract = data.contract;
191
- if (data.createdAt)
192
- o.createdAt = data.createdAt;
193
- if (data.lastLogin)
194
- o.lastLogin = data.lastLogin;
195
- if (data.conekta_id)
196
- o.conekta_id = data.conekta_id;
197
- return o;
198
- }
199
- static CreateClientFromFormObj(data, client) {
200
- const o = {
201
- id: "",
202
- name: data["client"][0].name,
203
- username: data["auth"][0].username,
204
- password: data["auth"][0].password,
205
- email: data["client"][0].email,
206
- phone: String(data["client"][0].phone),
207
- curp: data["client"][0].curp,
208
- userReferences: data["client"][0].userReferences,
209
- status: eClientStatus.ACTIVE
210
- };
211
- if (client != undefined) {
212
- if (client.dynamic_id)
213
- o.dynamic_id = client.dynamic_id;
214
- if (client.dynamic_account)
215
- o.dynamic_account = client.dynamic_account;
216
- if (client.conekta_id)
217
- o.conekta_id = client.conekta_id;
218
- }
219
- return o;
220
- }
221
- static CreateClientConektaObj(data, finalDate) {
222
- const sources = {
223
- type: "oxxo_recurrent",
224
- expires_at: finalDate
225
- };
226
- return {
227
- name: data.name,
228
- email: data.email,
229
- phone: data.phone,
230
- contract: data.contract_temporary,
231
- client_id: data.id,
232
- payment_sources: [sources]
233
- };
234
- }
235
- static MapperConektaClient(client, conekta) {
236
- const o = client;
237
- o.name = conekta.name;
238
- o.email = conekta.email;
239
- o.phone = conekta.phone;
240
- o.conekta_id = conekta.id;
241
- return {
242
- client: o,
243
- contract: cContract
244
- };
245
- }
246
- static MapperTypeContCli_Client(_client) {
247
- const client = {
248
- id: _client.id,
249
- name: _client.name,
250
- username: _client.username,
251
- email: _client.email,
252
- phone: _client.phone,
253
- curp: _client.curp,
254
- userReferences: _client.userReferences,
255
- status: _client.status,
256
- contract: _client.contract,
257
- reference: _client.reference,
258
- references: _client.references,
259
- conekta_id: _client.conekta_id,
260
- dynamic_account: _client.dynamic_account,
261
- token: _client.token,
262
- contract_temporary: _client.contract_temporary,
263
- lastLogin: _client.lastLogin,
264
- dynamic_id: _client.dynamic_id,
265
- createdAt: _client.createdAt,
266
- payments: _client.payments,
267
- password: _client.password,
268
- contractUrl: _client.contractUrl,
269
- dynamic_ref: _client.dynamic_ref,
270
- exists: _client.exists,
271
- passport_id: _client.passport_id,
272
- };
273
- return client;
274
- }
275
- static MapperDynamicClient(dynamic, client, contract, clientDyn, account) {
276
- // const o: tyClientContract = cTyClientContract
277
- /* Client ------------------------------------------------------ */
278
- client.username = `${dynamic.pii.name} ${dynamic.pii.motherlastname} ${dynamic.pii.lastname}`;
279
- client.phone = dynamic.pii.phone;
280
- client.dynamic_id = dynamic.id;
281
- client.curp = dynamic.pii.curp;
282
- client.email = dynamic.pii.email;
283
- if (account)
284
- client.dynamic_account = account.id;
285
- /* Auth ---------------------------------------------------------- */
286
- /* Device -------------------------------------------------------- */
287
- contract.device.IMEI = clientDyn.pii.imei;
288
- contract.device.device = clientDyn.pii.model;
289
- /* Contract ------------------------------------------------------ */
290
- contract.by = clientDyn.pii.seller_name;
291
- if (clientDyn.pii.fotografia_del_cliente_con_el_equipo != undefined) {
292
- const oPhoto = clientDyn.pii.fotografia_del_cliente_con_el_equipo;
293
- if (oPhoto != "") {
294
- const _photo = JSON.parse(oPhoto);
295
- if (_photo)
296
- contract.photo = _photo[0].url;
297
- }
298
- }
299
- contract.address.state = dynamic.pii.state;
300
- contract.address.city = dynamic.pii.city;
301
- contract.address.street = dynamic.pii.street;
302
- contract.address.ext = dynamic.pii.num_ext;
303
- contract.address.zip = dynamic.pii.zipcode;
304
- contract.address.neighbor = dynamic.pii.colony;
305
- /* Financial ------------------------------------------------------ */
306
- contract.dynamicAccount = Number(account?.id);
307
- if (account?.config.installments) {
308
- contract.financial.deadlines = {
309
- weeks: account.config.installments,
310
- interest: 0
311
- };
312
- }
313
- if (account?.properties.expected_disbursed)
314
- contract.financial.total = account?.properties.expected_disbursed;
315
- if (account?.properties.principal_disbursed)
316
- contract.financial.financed = account?.properties.principal_disbursed;
317
- if (account?.properties.amount_commission_opening) {
318
- contract.financial.initial = account?.properties.amount_commission_opening;
319
- contract.financial.amount_commission_opening = account?.properties.amount_commission_opening;
320
- }
321
- contract.financial.interest_rate = Number(clientDyn.pii.interest_rate);
322
- contract.financial.interest_arrears = account?.config.interest_arrears;
323
- contract.financial.commission_opening = account?.config.commission_opening;
324
- contract.financial.credit_type = account?.config.credit_type;
325
- contract.financial.principal_disbursed = account?.properties.principal_disbursed;
326
- contract.financial.expected_disbursed = account?.properties.expected_disbursed;
327
- contract.financial.weeklyPayment = Number(clientDyn.pii.amount_by_period);
328
- return {
329
- client: client,
330
- contract: contract,
331
- };
332
- }
333
- static MapperFinancialContract(contract, account) {
334
- contract.dynamicAccount = Number(account.id);
335
- if (account.config.installments) {
336
- contract.financial.deadlines = {
337
- weeks: account.config.installments,
338
- interest: 0
339
- };
340
- }
341
- const total = account.config.financed_amount != undefined ? account.config.financed_amount : 0;
342
- if (total > 0)
343
- contract.financial.total = total;
344
- // if (account.properties.expected_disbursed)
345
- const expected_disbursed = account.properties.expected_disbursed != undefined ? account.properties.expected_disbursed : 0;
346
- if (expected_disbursed > 0)
347
- contract.financial.total = expected_disbursed;
348
- contract.financial.expected_disbursed = expected_disbursed;
349
- contract.financial.interest_rate = account.config.interest_rate;
350
- contract.financial.interest_arrears = account.config.interest_arrears;
351
- // if (account.properties.principal_disbursed)
352
- if (account.properties.principal_disbursed > 0)
353
- contract.financial.financed = account.properties.principal_disbursed;
354
- contract.financial.principal_disbursed = account.properties.principal_disbursed;
355
- const amount_commission_opening = account.properties.amount_commission_opening != undefined ? account.properties.amount_commission_opening : 0;
356
- if (amount_commission_opening > 0)
357
- contract.financial.initial = amount_commission_opening;
358
- contract.financial.amount_commission_opening = amount_commission_opening;
359
- contract.financial.interest_arrears = account.config.interest_arrears;
360
- contract.financial.commission_opening = account.config.commission_opening;
361
- contract.financial.credit_type = account.config.credit_type;
362
- contract.financial.clabe = String(account.properties.clabe);
363
- return contract.financial;
364
- }
365
- }
366
- var eIdentityTypes;
367
- (function (eIdentityTypes) {
368
- eIdentityTypes["SELFIE"] = "SELFIE";
369
- eIdentityTypes["IDENTITY_FRONT"] = "IDENTITY_FRONT";
370
- eIdentityTypes["IDENTITY_BACK"] = "IDENTITY_BACK";
371
- eIdentityTypes["PASSPORT_FRONT"] = "PASSPORT_FRONT";
372
- eIdentityTypes["PASSPORT_BACK"] = "PASSPORT_BACK";
373
- eIdentityTypes["SERVICE"] = "SERVICE";
374
- eIdentityTypes["WITH_DEVICE"] = "WITH_DEVICE";
375
- })(eIdentityTypes || (eIdentityTypes = {}));
376
265
 
377
266
  const cSchedule = {
378
267
  day: "",
@@ -457,13 +346,13 @@ class FactoryBusiness {
457
346
  static CreateBusinessInfoObj(data) {
458
347
  const address = cAddress;
459
348
  const schedule = {
460
- monday: {},
461
- tuesday: {},
462
- wednesday: {},
463
- thursday: {},
464
- friday: {},
465
- saturday: {},
466
- sunday: {}
349
+ monday: cDaySchedule,
350
+ tuesday: cDaySchedule,
351
+ wednesday: cDaySchedule,
352
+ thursday: cDaySchedule,
353
+ friday: cDaySchedule,
354
+ saturday: cDaySchedule,
355
+ sunday: cDaySchedule
467
356
  };
468
357
  if (data.street)
469
358
  address.street = data.street;
@@ -480,33 +369,33 @@ class FactoryBusiness {
480
369
  if (data.cp)
481
370
  address.zip = data.cp;
482
371
  if (data.mondayOpen)
483
- schedule.monday.open = data.mondayOpen;
372
+ schedule.monday.open = Number(data.mondayOpen);
484
373
  if (data.mondayClose)
485
- schedule.monday.close = data.mondayClose;
374
+ schedule.monday.close = Number(data.mondayClose);
486
375
  if (data.tuesdayOpen)
487
- schedule.tuesday.open = data.tuesdayOpen;
376
+ schedule.tuesday.open = Number(data.tuesdayOpen);
488
377
  if (data.tuesdayClose)
489
- schedule.tuesday.close = data.tuesdayClose;
378
+ schedule.tuesday.close = Number(data.tuesdayClose);
490
379
  if (data.wednesdayOpen)
491
- schedule.wednesday.open = data.wednesdayOpen;
380
+ schedule.wednesday.open = Number(data.wednesdayOpen);
492
381
  if (data.wednesdayClose)
493
- schedule.wednesday.close = data.wednesdayClose;
382
+ schedule.wednesday.close = Number(data.wednesdayClose);
494
383
  if (data.thursdayOpen)
495
- schedule.thursday.open = data.thursdayOpen;
384
+ schedule.thursday.open = Number(data.thursdayOpen);
496
385
  if (data.thursdayClose)
497
- schedule.thursday.close = data.thursdayClose;
386
+ schedule.thursday.close = Number(data.thursdayClose);
498
387
  if (data.fridayOpen)
499
- schedule.friday.open = data.fridayOpen;
388
+ schedule.friday.open = Number(data.fridayOpen);
500
389
  if (data.fridayClose)
501
- schedule.friday.close = data.fridayClose;
390
+ schedule.friday.close = Number(data.fridayClose);
502
391
  if (data.saturdayOpen)
503
- schedule.saturday.open = data.saturdayOpen;
392
+ schedule.saturday.open = Number(data.saturdayOpen);
504
393
  if (data.saturdayClose)
505
- schedule.saturday.close = data.saturdayClose;
394
+ schedule.saturday.close = Number(data.saturdayClose);
506
395
  if (data.sundayOpen)
507
- schedule.sunday.open = data.sundayOpen;
396
+ schedule.sunday.open = Number(data.sundayOpen);
508
397
  if (data.sundayClose)
509
- schedule.sunday.close = data.sundayClose;
398
+ schedule.sunday.close = Number(data.sundayClose);
510
399
  const info = {
511
400
  version: "v2024",
512
401
  name: data.name ? data.name : "",
@@ -543,7 +432,6 @@ class FactoryBusiness {
543
432
  }
544
433
  }
545
434
 
546
- // import {oScore, oScoreReference} from '../../v2/objects/oClient';
547
435
  var eProvider;
548
436
  (function (eProvider) {
549
437
  eProvider["none"] = "";
@@ -551,7 +439,6 @@ var eProvider;
551
439
  eProvider["Passport"] = "Passport";
552
440
  eProvider["DynamiCore"] = "DynamiCore";
553
441
  })(eProvider || (eProvider = {}));
554
- // export type ProgressTaskStatus = TaskState | "uploading" | "idle" | "generating" | "unauthorized"
555
442
  const cDevice = {
556
443
  device: "",
557
444
  IMEI: ""
@@ -913,198 +800,233 @@ var eContractStatus;
913
800
  eContractStatus["CHECKING"] = "CHECKING";
914
801
  })(eContractStatus || (eContractStatus = {}));
915
802
 
916
- var eRoles;
917
- (function (eRoles) {
918
- eRoles["Administrator"] = "Administrator";
919
- eRoles["Seller"] = "Seller";
920
- eRoles["Consultant"] = "Consultant";
921
- })(eRoles || (eRoles = {}));
922
- var eProcessStatus;
923
- (function (eProcessStatus) {
924
- eProcessStatus["IDLE"] = "IDLE";
925
- eProcessStatus["ERROR"] = "ERROR";
926
- eProcessStatus["CANCELED"] = "CANCELED";
927
- eProcessStatus["COMPLETE"] = "COMPLETE";
928
- eProcessStatus["PROCESSING"] = "PROCESSING";
929
- eProcessStatus["WAITING"] = "WAITING";
930
- })(eProcessStatus || (eProcessStatus = {}));
931
- var eLoginStatus;
932
- (function (eLoginStatus) {
933
- eLoginStatus["IDLE"] = "IDLE";
934
- eLoginStatus["ERROR"] = "ERROR";
935
- eLoginStatus["AUTHORIZED"] = "AUTHORIZED";
936
- eLoginStatus["CHECKING"] = "CHECKING";
937
- eLoginStatus["NOAUTHORIZED"] = "NOAUTHORIZED";
938
- eLoginStatus["NOTFOUND"] = "NOTFOUND";
939
- eLoginStatus["ERRORPASSWORD"] = "ERRORPASSWORD";
940
- })(eLoginStatus || (eLoginStatus = {}));
941
- var eClientStatus;
942
- (function (eClientStatus) {
943
- eClientStatus["ACTIVE"] = "active";
944
- eClientStatus["COMPLETED"] = "completed";
945
- eClientStatus["PAUSED"] = "paused";
946
- eClientStatus["CANCELED"] = "canceled";
947
- eClientStatus["LATE"] = "late";
948
- })(eClientStatus || (eClientStatus = {}));
949
- const cSingleOptionClientStatus = {
950
- viewValue: "",
951
- value: ""
952
- };
953
- const cOptionsClientStatus = [
954
- {
955
- value: eClientStatus.ACTIVE,
956
- viewValue: "Activar"
957
- }, {
958
- value: eClientStatus.COMPLETED,
959
- viewValue: "Completar"
960
- }, {
961
- value: eClientStatus.PAUSED,
962
- viewValue: "Pausar"
963
- }, {
964
- value: eClientStatus.LATE,
965
- viewValue: "Marcar con atraso"
966
- }, {
967
- value: eClientStatus.CANCELED,
968
- viewValue: "Cancelar"
969
- }
970
- ];
971
- const eRolesSelect = [
972
- {
973
- value: eRoles.Administrator,
974
- viewValue: eRoles.Administrator
975
- },
976
- {
977
- value: eRoles.Consultant,
978
- viewValue: eRoles.Consultant
979
- },
980
- {
981
- value: eRoles.Seller,
982
- viewValue: eRoles.Seller
983
- },
984
- ];
985
- const cPaymentDalay = {
986
- today: 0,
987
- nextPayment: 0,
988
- daysDelay: 0,
989
- late: false,
990
- };
991
- const snackBarConfigAction = {
992
- horizontalPosition: "start"
803
+ const cClient = {
804
+ id: "",
805
+ name: "",
806
+ username: "",
807
+ email: "",
808
+ phone: "",
809
+ curp: "",
810
+ contract_temporary: "",
811
+ conekta_id: "",
812
+ userReferences: [],
813
+ status: ""
993
814
  };
994
- const snackBarConfigNoAction = {
995
- duration: 4000,
996
- horizontalPosition: "start"
815
+ const cUserReference = {
816
+ name: "",
817
+ phone: "",
818
+ relationship: ""
997
819
  };
998
- const snackBarConfigNoActionLong = {
999
- duration: 8000,
1000
- horizontalPosition: "start"
820
+ const cClientConekta = {
821
+ conekta: cConektaRecurrent,
822
+ ravcredit: cClient
1001
823
  };
1002
- const cTyClientContract = { ...cClient, ...cContract };
1003
-
1004
- var eAuthActions;
1005
- (function (eAuthActions) {
1006
- eAuthActions["delete"] = "delete";
1007
- eAuthActions["auth"] = "auth";
1008
- })(eAuthActions || (eAuthActions = {}));
1009
- var eAuthType;
1010
- (function (eAuthType) {
1011
- eAuthType["auth"] = "auth";
1012
- eAuthType["login"] = "login";
1013
- eAuthType["idle"] = "";
1014
- })(eAuthType || (eAuthType = {}));
1015
- const cAuthConfig = {
1016
- title: "",
1017
- desc: "",
1018
- data: true,
824
+ const cClientContract = {
825
+ client: cClient,
826
+ contract: cContract,
1019
827
  };
1020
-
1021
- const cTopic = "RavCreditClients";
1022
- var eNotificationType;
1023
- (function (eNotificationType) {
1024
- eNotificationType["GLOBAL"] = "global";
1025
- eNotificationType["USER"] = "user";
1026
- eNotificationType["PAYMENT"] = "payment";
1027
- })(eNotificationType || (eNotificationType = {}));
1028
- const cNotification = {
1029
- notification: {
1030
- title: "",
1031
- body: ""
1032
- },
1033
- data: {
1034
- route: ""
828
+ class FactoryClient {
829
+ static CreateClientToConektaObj(data) {
830
+ const o = {};
831
+ if (data.name && data.name.length > 0)
832
+ o.name = data.name;
833
+ if (data.username && data.name.length > 0)
834
+ o.username = data.username;
835
+ if (data.email && data.email.length > 0)
836
+ o.email = data.email;
837
+ if (data.phone && data.phone.length > 0)
838
+ o.phone = String(data.phone);
839
+ if (data.curp && data.curp.length > 0)
840
+ o.curp = data.curp;
841
+ if (data.userReferences && data.userReferences.length > 0)
842
+ o.userReferences = data.userReferences;
843
+ if (data.contract)
844
+ o.contract = data.contract;
845
+ if (data.createdAt)
846
+ o.createdAt = data.createdAt;
847
+ if (data.lastLogin)
848
+ o.lastLogin = data.lastLogin;
849
+ if (data.conekta_id)
850
+ o.conekta_id = data.conekta_id;
851
+ return o;
852
+ }
853
+ static CreateClientFromFormObj(data, client) {
854
+ const o = {
855
+ id: "",
856
+ name: data["client"][0].name,
857
+ username: data["auth"][0].username,
858
+ password: data["auth"][0].password,
859
+ email: data["client"][0].email,
860
+ phone: String(data["client"][0].phone),
861
+ curp: data["client"][0].curp,
862
+ userReferences: data["client"][0].userReferences,
863
+ status: eClientStatus.ACTIVE
864
+ };
865
+ if (client != undefined) {
866
+ if (client.dynamic_id)
867
+ o.dynamic_id = client.dynamic_id;
868
+ if (client.dynamic_account)
869
+ o.dynamic_account = client.dynamic_account;
870
+ if (client.conekta_id)
871
+ o.conekta_id = client.conekta_id;
872
+ }
873
+ return o;
874
+ }
875
+ static CreateClientConektaObj(data, finalDate) {
876
+ const sources = {
877
+ type: "oxxo_recurrent",
878
+ expires_at: finalDate
879
+ };
880
+ return {
881
+ name: data.name,
882
+ email: data.email,
883
+ phone: data.phone,
884
+ contract: data.contract_temporary,
885
+ client_id: data.id,
886
+ payment_sources: [sources]
887
+ };
888
+ }
889
+ static MapperConektaClient(client, conekta) {
890
+ const o = client;
891
+ o.name = conekta.name;
892
+ o.email = conekta.email;
893
+ o.phone = conekta.phone;
894
+ o.conekta_id = conekta.id;
895
+ return {
896
+ client: o,
897
+ contract: cContract
898
+ };
899
+ }
900
+ static MapperTypeContCli_Client(_client) {
901
+ const client = {
902
+ id: _client.id,
903
+ name: _client.name,
904
+ username: _client.username,
905
+ email: _client.email,
906
+ phone: _client.phone,
907
+ curp: _client.curp,
908
+ userReferences: _client.userReferences,
909
+ status: _client.status,
910
+ contract: _client.contract,
911
+ reference: _client.reference,
912
+ references: _client.references,
913
+ conekta_id: _client.conekta_id,
914
+ dynamic_account: _client.dynamic_account,
915
+ token: _client.token,
916
+ contract_temporary: _client.contract_temporary,
917
+ lastLogin: _client.lastLogin,
918
+ dynamic_id: _client.dynamic_id,
919
+ createdAt: _client.createdAt,
920
+ payments: _client.payments,
921
+ password: _client.password,
922
+ contractUrl: _client.contractUrl,
923
+ dynamic_ref: _client.dynamic_ref,
924
+ exists: _client.exists,
925
+ passport_id: _client.passport_id,
926
+ };
927
+ return client;
928
+ }
929
+ static MapperDynamicClient(dynamic, client, contract, clientDyn, account) {
930
+ // constant o: tyClientContract = cTyClientContract
931
+ /* Client ------------------------------------------------------ */
932
+ client.username = `${dynamic.pii.name} ${dynamic.pii.motherlastname} ${dynamic.pii.lastname}`;
933
+ client.phone = dynamic.pii.phone;
934
+ client.dynamic_id = dynamic.id;
935
+ client.curp = dynamic.pii.curp;
936
+ client.email = dynamic.pii.email;
937
+ if (account)
938
+ client.dynamic_account = account.id;
939
+ /* Auth ---------------------------------------------------------- */
940
+ /* Device -------------------------------------------------------- */
941
+ contract.device.IMEI = clientDyn.pii.imei;
942
+ contract.device.device = clientDyn.pii.model;
943
+ /* Contract ------------------------------------------------------ */
944
+ contract.by = clientDyn.pii.seller_name;
945
+ if (clientDyn.pii.fotografia_del_cliente_con_el_equipo != undefined) {
946
+ const oPhoto = clientDyn.pii.fotografia_del_cliente_con_el_equipo;
947
+ if (oPhoto != "") {
948
+ const _photo = JSON.parse(oPhoto);
949
+ if (_photo)
950
+ contract.photo = _photo[0].url;
951
+ }
952
+ }
953
+ contract.address.state = dynamic.pii.state;
954
+ contract.address.city = dynamic.pii.city;
955
+ contract.address.street = dynamic.pii.street;
956
+ contract.address.ext = dynamic.pii.num_ext;
957
+ contract.address.zip = dynamic.pii.zipcode;
958
+ contract.address.neighbor = dynamic.pii.colony;
959
+ /* Financial ------------------------------------------------------ */
960
+ contract.dynamicAccount = Number(account?.id);
961
+ if (account?.config.installments) {
962
+ contract.financial.deadlines = {
963
+ weeks: account.config.installments,
964
+ interest: 0
965
+ };
966
+ }
967
+ if (account?.properties.expected_disbursed)
968
+ contract.financial.total = account?.properties.expected_disbursed;
969
+ if (account?.properties.principal_disbursed)
970
+ contract.financial.financed = account?.properties.principal_disbursed;
971
+ if (account?.properties.amount_commission_opening) {
972
+ contract.financial.initial = account?.properties.amount_commission_opening;
973
+ contract.financial.amount_commission_opening = account?.properties.amount_commission_opening;
974
+ }
975
+ contract.financial.interest_rate = Number(clientDyn.pii.interest_rate);
976
+ contract.financial.interest_arrears = account?.config.interest_arrears;
977
+ contract.financial.commission_opening = account?.config.commission_opening;
978
+ contract.financial.credit_type = account?.config.credit_type;
979
+ contract.financial.principal_disbursed = account?.properties.principal_disbursed;
980
+ contract.financial.expected_disbursed = account?.properties.expected_disbursed;
981
+ contract.financial.weeklyPayment = Number(clientDyn.pii.amount_by_period);
982
+ return {
983
+ client: client,
984
+ contract: contract,
985
+ };
1035
986
  }
1036
- };
1037
-
1038
- var ePassportTypes;
1039
- (function (ePassportTypes) {
1040
- ePassportTypes["CREATE"] = "create_references";
1041
- ePassportTypes["SEND"] = "send_references";
1042
- })(ePassportTypes || (ePassportTypes = {}));
1043
- /** ******************************** */
1044
-
1045
- // export enum oGenVerificationProvider {
1046
- // pending, approved, expired
1047
- // }
1048
- //
1049
- // export interface oVerificationLookup {
1050
- // carrier: any[]
1051
- // }
1052
- //
1053
- // export interface oVerificationSenCodeAttempt {
1054
- // attempt_sid: any[],
1055
- // channel: any[],
1056
- // time: any[]
1057
- // }
1058
- //
1059
- // export interface oGenVerification {
1060
- // Sid: string
1061
- // ServiceSid: string,
1062
- // AccountSid: string,
1063
- // To: string,
1064
- // Channel: any,
1065
- // Status: oGenVerificationProvider,
1066
- // Valid: boolean,
1067
- // Lookup: oVerificationLookup,
1068
- // SendCodeAttempts: oVerificationSenCodeAttempt[],
1069
- // DateCreated: string,
1070
- // DateUpdated: string,
1071
- // Url: string
1072
- // }
1073
- //
1074
- // export interface oVerification {
1075
- // Sid : string,
1076
- // ServiceSid : string,
1077
- // AccountSid : string,
1078
- // To : string,
1079
- // Channel : any,
1080
- // Status : oGenVerificationProvider,
1081
- // Valid : boolean,
1082
- // DateCreated : string,
1083
- // DateUpdated : string
1084
- // }
1085
- var eVerificationStep;
1086
- (function (eVerificationStep) {
1087
- eVerificationStep["IDLE"] = "IDLE";
1088
- eVerificationStep["ERROR"] = "ERROR";
1089
- eVerificationStep["COMPLETED"] = "COMPLETED";
1090
- eVerificationStep["IN_PROGRESS"] = "IN_PROGRESS";
1091
- eVerificationStep["INVALID"] = "INVALID";
1092
- eVerificationStep["SUSPENDED"] = "SUSPENDED";
1093
- eVerificationStep["CANCELLED"] = "CANCELLED";
1094
- })(eVerificationStep || (eVerificationStep = {}));
1095
- var eVerificationStatus;
1096
- (function (eVerificationStatus) {
1097
- eVerificationStatus["APPROVED"] = "approved";
1098
- eVerificationStatus["CANCELLED"] = "cancelled";
1099
- })(eVerificationStatus || (eVerificationStatus = {}));
1100
- var eVerificationChannel;
1101
- (function (eVerificationChannel) {
1102
- eVerificationChannel["SMS"] = "sms";
1103
- eVerificationChannel["WHATSAPP"] = "whatsapp";
1104
- eVerificationChannel["CALL"] = "call";
1105
- eVerificationChannel["EMAIL"] = "email";
1106
- eVerificationChannel["SNA"] = "sna";
1107
- })(eVerificationChannel || (eVerificationChannel = {}));
987
+ static MapperFinancialContract(contract, account) {
988
+ contract.dynamicAccount = Number(account.id);
989
+ if (account.config.installments) {
990
+ contract.financial.deadlines = {
991
+ weeks: account.config.installments,
992
+ interest: 0
993
+ };
994
+ }
995
+ const total = account.config.financed_amount != undefined ? account.config.financed_amount : 0;
996
+ if (total > 0)
997
+ contract.financial.total = total;
998
+ // if (account.properties.expected_disbursed)
999
+ const expected_disbursed = account.properties.expected_disbursed != undefined ? account.properties.expected_disbursed : 0;
1000
+ if (expected_disbursed > 0)
1001
+ contract.financial.total = expected_disbursed;
1002
+ contract.financial.expected_disbursed = expected_disbursed;
1003
+ contract.financial.interest_rate = account.config.interest_rate;
1004
+ contract.financial.interest_arrears = account.config.interest_arrears;
1005
+ // if (account.properties.principal_disbursed)
1006
+ if (account.properties.principal_disbursed > 0)
1007
+ contract.financial.financed = account.properties.principal_disbursed;
1008
+ contract.financial.principal_disbursed = account.properties.principal_disbursed;
1009
+ const amount_commission_opening = account.properties.amount_commission_opening != undefined ? account.properties.amount_commission_opening : 0;
1010
+ if (amount_commission_opening > 0)
1011
+ contract.financial.initial = amount_commission_opening;
1012
+ contract.financial.amount_commission_opening = amount_commission_opening;
1013
+ contract.financial.interest_arrears = account.config.interest_arrears;
1014
+ contract.financial.commission_opening = account.config.commission_opening;
1015
+ contract.financial.credit_type = account.config.credit_type;
1016
+ contract.financial.clabe = String(account.properties.clabe);
1017
+ return contract.financial;
1018
+ }
1019
+ }
1020
+ var eIdentityTypes;
1021
+ (function (eIdentityTypes) {
1022
+ eIdentityTypes["SELFIE"] = "SELFIE";
1023
+ eIdentityTypes["IDENTITY_FRONT"] = "IDENTITY_FRONT";
1024
+ eIdentityTypes["IDENTITY_BACK"] = "IDENTITY_BACK";
1025
+ eIdentityTypes["PASSPORT_FRONT"] = "PASSPORT_FRONT";
1026
+ eIdentityTypes["PASSPORT_BACK"] = "PASSPORT_BACK";
1027
+ eIdentityTypes["SERVICE"] = "SERVICE";
1028
+ eIdentityTypes["WITH_DEVICE"] = "WITH_DEVICE";
1029
+ })(eIdentityTypes || (eIdentityTypes = {}));
1108
1030
 
1109
1031
  class UtilsHttp {
1110
1032
  static CreateHeadersRavcreditApi(token) {
@@ -1573,12 +1495,12 @@ class IndexedDbService {
1573
1495
  constructor() {
1574
1496
  }
1575
1497
  // async dbAuthorization() {
1576
- // // const k = this.getLocalUser()
1498
+ // // constant k = this.getLocalUser()
1577
1499
  // // if (k == null) return false
1578
1500
  // //
1579
- // // const db = await openDB(dbName, dbVersion)
1501
+ // // constant db = await openDB(dbName, dbVersion)
1580
1502
  // // // utils store = db.transaction(dbUsersStore).objectStore(dbUsersStore)
1581
- // // const auth = await db.get(dbAuthStore, k)
1503
+ // // constant auth = await db.get(dbAuthStore, k)
1582
1504
  // // // utils auth = await store.get(k)
1583
1505
  // // db.close()
1584
1506
  //
@@ -1701,7 +1623,7 @@ class IndexedDbService {
1701
1623
  const db = await openDB(dbName, dbVersion);
1702
1624
  const txn = db.transaction(store, "readwrite");
1703
1625
  const obj = txn.objectStore(store);
1704
- // const index = obj.index(keyPathCurp)
1626
+ // constant index = obj.index(keyPathCurp)
1705
1627
  await obj.put(data);
1706
1628
  return data;
1707
1629
  }
@@ -1887,10 +1809,10 @@ class IndexedDbService {
1887
1809
  }
1888
1810
  }
1889
1811
  }
1890
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: IndexedDbService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1891
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: IndexedDbService, providedIn: 'root' });
1812
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: IndexedDbService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1813
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: IndexedDbService, providedIn: 'root' });
1892
1814
  }
1893
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: IndexedDbService, decorators: [{
1815
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: IndexedDbService, decorators: [{
1894
1816
  type: Injectable,
1895
1817
  args: [{
1896
1818
  providedIn: 'root'
@@ -1970,7 +1892,7 @@ class UtilTime {
1970
1892
  last = ((((3600 * 24) * 7) * 1000) + lastPayment) * factor;
1971
1893
  runInInjectionContext(injector, () => {
1972
1894
  const idb = inject(IndexedDbService);
1973
- // const observable = inject(ObservablesService)
1895
+ // constant observable = inject(ObservablesService)
1974
1896
  idb.setLocalStorage(expiredPayment, String(now > last));
1975
1897
  // observable.isLate.next(now > last)
1976
1898
  });
@@ -2065,6 +1987,12 @@ const cContractMetrics = {
2065
1987
  rateLate: 0
2066
1988
  };
2067
1989
 
1990
+ var ePassportTypes;
1991
+ (function (ePassportTypes) {
1992
+ ePassportTypes["CREATE"] = "create_references";
1993
+ ePassportTypes["SEND"] = "send_references";
1994
+ })(ePassportTypes || (ePassportTypes = {}));
1995
+
2068
1996
  class FactoryPassport {
2069
1997
  static CreatePassportReference(client, contract, dateTime) {
2070
1998
  const o = {
@@ -2102,12 +2030,120 @@ class FactoryPayment {
2102
2030
  }
2103
2031
  }
2104
2032
 
2033
+ const ErrorMessages = {
2034
+ NotFound: "Recurso no encontrado",
2035
+ Unauthorized: "Request without(or not valid) token",
2036
+ RandomError: "Something goes wrong, try again -> ",
2037
+ RandomErrorFirestore: "Something goes wrong in firestore",
2038
+ CreateUser: "Error: Something goes wrong",
2039
+ CreateFoundedUser: "Error: User already exists try with another username",
2040
+ FindAllNotFound: "Not users found",
2041
+ UserFindOne: "User with given ID not found",
2042
+ UserFindOneError: "Error getting user by ID",
2043
+ UserUpdate: "Error updating user by ID",
2044
+ DeleteUser: "Error deleting user",
2045
+ UsernameNotFound: "User with given username not found",
2046
+ IncorrectPassword: "Incorrect or not valid password",
2047
+ LastLogIn: "Last LogIn date not updated",
2048
+ authError: "Username or password incorrect",
2049
+ tokenRequired: "Token required",
2050
+ ClientDefined: "This user already registered: Update user's contracts instead",
2051
+ ClientsNotFound: "List of clients is empty",
2052
+ ClientNotFound: "Client with given ID, not found",
2053
+ ClientNotUpdated: "Client with given ID, not updated",
2054
+ DeleteClient: "Error deleting client",
2055
+ UsernameClientNotFound: "Client with given username not found",
2056
+ ContractsAllEmpty: "Contract list empty",
2057
+ ContractNotFound: "Contract not found",
2058
+ ContractUpdateError: "Something goes wrong updating contract, try again",
2059
+ ContractDeleteError: "Something goes wrong deleting contract, try again"
2060
+ };
2061
+
2105
2062
  var eAssetPeriod;
2106
2063
  (function (eAssetPeriod) {
2107
2064
  eAssetPeriod["MONTH"] = "MONTH";
2108
2065
  eAssetPeriod["WEEK"] = "WEEK";
2109
2066
  })(eAssetPeriod || (eAssetPeriod = {}));
2110
2067
 
2068
+ var eLoginStatus;
2069
+ (function (eLoginStatus) {
2070
+ eLoginStatus["IDLE"] = "IDLE";
2071
+ eLoginStatus["ERROR"] = "ERROR";
2072
+ eLoginStatus["AUTHORIZED"] = "AUTHORIZED";
2073
+ eLoginStatus["CHECKING"] = "CHECKING";
2074
+ eLoginStatus["NOAUTHORIZED"] = "NOAUTHORIZED";
2075
+ eLoginStatus["NOTFOUND"] = "NOTFOUND";
2076
+ eLoginStatus["ERRORPASSWORD"] = "ERRORPASSWORD";
2077
+ })(eLoginStatus || (eLoginStatus = {}));
2078
+ var eAuthActions;
2079
+ (function (eAuthActions) {
2080
+ eAuthActions["delete"] = "delete";
2081
+ eAuthActions["auth"] = "auth";
2082
+ })(eAuthActions || (eAuthActions = {}));
2083
+ var eAuthType;
2084
+ (function (eAuthType) {
2085
+ eAuthType["auth"] = "auth";
2086
+ eAuthType["login"] = "login";
2087
+ eAuthType["idle"] = "";
2088
+ })(eAuthType || (eAuthType = {}));
2089
+
2090
+ var eConektaRes;
2091
+ (function (eConektaRes) {
2092
+ eConektaRes["CUSTOMER_CREATED"] = "customer.created";
2093
+ eConektaRes["ORDER_PENDING_PAYMENT"] = "order.pending_payment";
2094
+ eConektaRes["ORDER_CREATED"] = "order.created";
2095
+ eConektaRes["CHARGE_CREATED"] = "charge.created";
2096
+ eConektaRes["ORDER_PAID"] = "order.paid";
2097
+ eConektaRes["CHARGE_PAID"] = "charge.paid";
2098
+ })(eConektaRes || (eConektaRes = {}));
2099
+ var eConektaOrderStatus;
2100
+ (function (eConektaOrderStatus) {
2101
+ eConektaOrderStatus["expired"] = "expired";
2102
+ eConektaOrderStatus["paid"] = "paid";
2103
+ eConektaOrderStatus["pending_payment"] = "pending_payment";
2104
+ })(eConektaOrderStatus || (eConektaOrderStatus = {}));
2105
+
2106
+ var eNotificationType;
2107
+ (function (eNotificationType) {
2108
+ eNotificationType["GLOBAL"] = "global";
2109
+ eNotificationType["USER"] = "user";
2110
+ eNotificationType["PAYMENT"] = "payment";
2111
+ })(eNotificationType || (eNotificationType = {}));
2112
+
2113
+ var eProcessStatus;
2114
+ (function (eProcessStatus) {
2115
+ eProcessStatus["IDLE"] = "IDLE";
2116
+ eProcessStatus["ERROR"] = "ERROR";
2117
+ eProcessStatus["CANCELED"] = "CANCELED";
2118
+ eProcessStatus["COMPLETE"] = "COMPLETE";
2119
+ eProcessStatus["PROCESSING"] = "PROCESSING";
2120
+ eProcessStatus["WAITING"] = "WAITING";
2121
+ })(eProcessStatus || (eProcessStatus = {}));
2122
+
2123
+ var eVerificationStep;
2124
+ (function (eVerificationStep) {
2125
+ eVerificationStep["IDLE"] = "IDLE";
2126
+ eVerificationStep["ERROR"] = "ERROR";
2127
+ eVerificationStep["COMPLETED"] = "COMPLETED";
2128
+ eVerificationStep["IN_PROGRESS"] = "IN_PROGRESS";
2129
+ eVerificationStep["INVALID"] = "INVALID";
2130
+ eVerificationStep["SUSPENDED"] = "SUSPENDED";
2131
+ eVerificationStep["CANCELLED"] = "CANCELLED";
2132
+ })(eVerificationStep || (eVerificationStep = {}));
2133
+ var eVerificationStatus;
2134
+ (function (eVerificationStatus) {
2135
+ eVerificationStatus["APPROVED"] = "approved";
2136
+ eVerificationStatus["CANCELLED"] = "cancelled";
2137
+ })(eVerificationStatus || (eVerificationStatus = {}));
2138
+ var eVerificationChannel;
2139
+ (function (eVerificationChannel) {
2140
+ eVerificationChannel["SMS"] = "sms";
2141
+ eVerificationChannel["WHATSAPP"] = "whatsapp";
2142
+ eVerificationChannel["CALL"] = "call";
2143
+ eVerificationChannel["EMAIL"] = "email";
2144
+ eVerificationChannel["SNA"] = "sna";
2145
+ })(eVerificationChannel || (eVerificationChannel = {}));
2146
+
2111
2147
  /*
2112
2148
  * Public API Surface of ravcredit-lib
2113
2149
  */
@@ -2116,5 +2152,5 @@ var eAssetPeriod;
2116
2152
  * Generated bundle index. Do not edit.
2117
2153
  */
2118
2154
 
2119
- 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 };
2155
+ 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 };
2120
2156
  //# sourceMappingURL=ravcredit-lib.mjs.map