ravcredit-lib 0.0.58 → 0.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/ravcredit-lib.mjs +105 -35
- package/fesm2022/ravcredit-lib.mjs.map +1 -1
- package/index.d.ts +1100 -1058
- package/package.json +1 -1
|
@@ -120,6 +120,17 @@ var eClientStatus;
|
|
|
120
120
|
eClientStatus["CANCELED"] = "canceled";
|
|
121
121
|
eClientStatus["LATE"] = "late";
|
|
122
122
|
})(eClientStatus || (eClientStatus = {}));
|
|
123
|
+
var eIdentityTypes;
|
|
124
|
+
(function (eIdentityTypes) {
|
|
125
|
+
eIdentityTypes["SELFIE"] = "SELFIE";
|
|
126
|
+
eIdentityTypes["IDENTITY_FRONT"] = "IDENTITY_FRONT";
|
|
127
|
+
eIdentityTypes["IDENTITY_BACK"] = "IDENTITY_BACK";
|
|
128
|
+
eIdentityTypes["PASSPORT_FRONT"] = "PASSPORT_FRONT";
|
|
129
|
+
eIdentityTypes["PASSPORT_BACK"] = "PASSPORT_BACK";
|
|
130
|
+
eIdentityTypes["SERVICE"] = "SERVICE";
|
|
131
|
+
eIdentityTypes["WITH_DEVICE"] = "WITH_DEVICE";
|
|
132
|
+
eIdentityTypes["NONE"] = "NONE";
|
|
133
|
+
})(eIdentityTypes || (eIdentityTypes = {}));
|
|
123
134
|
|
|
124
135
|
var eRoles;
|
|
125
136
|
(function (eRoles) {
|
|
@@ -235,7 +246,6 @@ const snackBarConfigNoActionLong = {
|
|
|
235
246
|
duration: 8000,
|
|
236
247
|
horizontalPosition: "start"
|
|
237
248
|
};
|
|
238
|
-
const cTyClientContract = { ...cClient, ...cContract };
|
|
239
249
|
const cAddress = {
|
|
240
250
|
street: "",
|
|
241
251
|
city: "",
|
|
@@ -290,6 +300,79 @@ const cResponse = {
|
|
|
290
300
|
epochTime: new Date().getTime(),
|
|
291
301
|
data: null,
|
|
292
302
|
};
|
|
303
|
+
const cClientBase = {
|
|
304
|
+
id: "",
|
|
305
|
+
name: "",
|
|
306
|
+
username: "",
|
|
307
|
+
email: "",
|
|
308
|
+
phone: "",
|
|
309
|
+
curp: "",
|
|
310
|
+
contract_temporary: "",
|
|
311
|
+
conekta_id: "",
|
|
312
|
+
userReferences: [],
|
|
313
|
+
status: ""
|
|
314
|
+
};
|
|
315
|
+
const cScoreAddress = {
|
|
316
|
+
CP: "",
|
|
317
|
+
ciudad: "",
|
|
318
|
+
estado: "",
|
|
319
|
+
domicilio: "",
|
|
320
|
+
coloniaPoblacion: "",
|
|
321
|
+
delegacionMunicipio: ""
|
|
322
|
+
};
|
|
323
|
+
const cScoreHit = {
|
|
324
|
+
valor: ""
|
|
325
|
+
};
|
|
326
|
+
const cScoreGeneral = {
|
|
327
|
+
nombres: "",
|
|
328
|
+
apellidoMaterno: "",
|
|
329
|
+
apellidoPaterno: "",
|
|
330
|
+
fechaNacimiento: ""
|
|
331
|
+
};
|
|
332
|
+
const cScore = {
|
|
333
|
+
domicilio: cScoreAddress,
|
|
334
|
+
scoreNoHit: cScoreHit,
|
|
335
|
+
folioConsulta: "",
|
|
336
|
+
datosGenerales: cScoreGeneral
|
|
337
|
+
};
|
|
338
|
+
const cMediaIdentity = {
|
|
339
|
+
active: false, metadata: null, name: eIdentityTypes.NONE, uploaded: 0, url: ''
|
|
340
|
+
};
|
|
341
|
+
const cClient = {
|
|
342
|
+
score: cScore,
|
|
343
|
+
mediaAddress: cMediaIdentity,
|
|
344
|
+
id: "",
|
|
345
|
+
name: "",
|
|
346
|
+
username: "",
|
|
347
|
+
email: "",
|
|
348
|
+
phone: "",
|
|
349
|
+
curp: "",
|
|
350
|
+
contract_temporary: "",
|
|
351
|
+
conekta_id: "",
|
|
352
|
+
userReferences: [],
|
|
353
|
+
status: ""
|
|
354
|
+
};
|
|
355
|
+
const cUserReference = {
|
|
356
|
+
name: "",
|
|
357
|
+
phone: "",
|
|
358
|
+
relationship: ""
|
|
359
|
+
};
|
|
360
|
+
const cClientConekta = {
|
|
361
|
+
conekta: cConektaRecurrent,
|
|
362
|
+
ravcredit: cClient
|
|
363
|
+
};
|
|
364
|
+
const cResponseErrorData = {
|
|
365
|
+
epochTime: new Date().getTime(), statusCode: 202,
|
|
366
|
+
data: []
|
|
367
|
+
};
|
|
368
|
+
const emailContact = "contact@ravcredit.com";
|
|
369
|
+
const cResponseError = {
|
|
370
|
+
path: "",
|
|
371
|
+
statusCode: 400,
|
|
372
|
+
epochTime: new Date().getTime(),
|
|
373
|
+
data: cResponseErrorData
|
|
374
|
+
};
|
|
375
|
+
const cTyClientContract = { ...cClient, ...cContract };
|
|
293
376
|
|
|
294
377
|
const cSchedule = {
|
|
295
378
|
day: "",
|
|
@@ -828,27 +911,6 @@ var eContractStatus;
|
|
|
828
911
|
eContractStatus["CHECKING"] = "CHECKING";
|
|
829
912
|
})(eContractStatus || (eContractStatus = {}));
|
|
830
913
|
|
|
831
|
-
const cClient = {
|
|
832
|
-
id: "",
|
|
833
|
-
name: "",
|
|
834
|
-
username: "",
|
|
835
|
-
email: "",
|
|
836
|
-
phone: "",
|
|
837
|
-
curp: "",
|
|
838
|
-
contract_temporary: "",
|
|
839
|
-
conekta_id: "",
|
|
840
|
-
userReferences: [],
|
|
841
|
-
status: ""
|
|
842
|
-
};
|
|
843
|
-
const cUserReference = {
|
|
844
|
-
name: "",
|
|
845
|
-
phone: "",
|
|
846
|
-
relationship: ""
|
|
847
|
-
};
|
|
848
|
-
const cClientConekta = {
|
|
849
|
-
conekta: cConektaRecurrent,
|
|
850
|
-
ravcredit: cClient
|
|
851
|
-
};
|
|
852
914
|
const cClientContract = {
|
|
853
915
|
client: cClient,
|
|
854
916
|
contract: cContract,
|
|
@@ -888,7 +950,8 @@ class FactoryClient {
|
|
|
888
950
|
phone: String(data["client"][0].phone),
|
|
889
951
|
curp: data["client"][0].curp,
|
|
890
952
|
userReferences: data["client"][0].userReferences,
|
|
891
|
-
status: eClientStatus.ACTIVE
|
|
953
|
+
status: eClientStatus.ACTIVE,
|
|
954
|
+
score: cScore,
|
|
892
955
|
};
|
|
893
956
|
if (client != undefined) {
|
|
894
957
|
if (client.dynamic_id)
|
|
@@ -927,6 +990,7 @@ class FactoryClient {
|
|
|
927
990
|
}
|
|
928
991
|
static MapperTypeContCli_Client(_client) {
|
|
929
992
|
const client = {
|
|
993
|
+
score: cScore,
|
|
930
994
|
id: _client.id,
|
|
931
995
|
name: _client.name,
|
|
932
996
|
username: _client.username,
|
|
@@ -950,7 +1014,7 @@ class FactoryClient {
|
|
|
950
1014
|
contractUrl: _client.contractUrl,
|
|
951
1015
|
dynamic_ref: _client.dynamic_ref,
|
|
952
1016
|
exists: _client.exists,
|
|
953
|
-
passport_id: _client.passport_id
|
|
1017
|
+
passport_id: _client.passport_id
|
|
954
1018
|
};
|
|
955
1019
|
return client;
|
|
956
1020
|
}
|
|
@@ -1046,16 +1110,6 @@ class FactoryClient {
|
|
|
1046
1110
|
}
|
|
1047
1111
|
static CheckEmail = (email) => email.includes("@") && email.endsWith(".com");
|
|
1048
1112
|
}
|
|
1049
|
-
var eIdentityTypes;
|
|
1050
|
-
(function (eIdentityTypes) {
|
|
1051
|
-
eIdentityTypes["SELFIE"] = "SELFIE";
|
|
1052
|
-
eIdentityTypes["IDENTITY_FRONT"] = "IDENTITY_FRONT";
|
|
1053
|
-
eIdentityTypes["IDENTITY_BACK"] = "IDENTITY_BACK";
|
|
1054
|
-
eIdentityTypes["PASSPORT_FRONT"] = "PASSPORT_FRONT";
|
|
1055
|
-
eIdentityTypes["PASSPORT_BACK"] = "PASSPORT_BACK";
|
|
1056
|
-
eIdentityTypes["SERVICE"] = "SERVICE";
|
|
1057
|
-
eIdentityTypes["WITH_DEVICE"] = "WITH_DEVICE";
|
|
1058
|
-
})(eIdentityTypes || (eIdentityTypes = {}));
|
|
1059
1113
|
|
|
1060
1114
|
class UtilsHttp {
|
|
1061
1115
|
static CreateHeadersRavcreditApi(token) {
|
|
@@ -2109,6 +2163,22 @@ const ErrorMessages = {
|
|
|
2109
2163
|
ContractDeleteError: "Something goes wrong deleting contract, try again"
|
|
2110
2164
|
};
|
|
2111
2165
|
|
|
2166
|
+
var RouteData;
|
|
2167
|
+
(function (RouteData) {
|
|
2168
|
+
RouteData[RouteData["CLIENT"] = 0] = "CLIENT";
|
|
2169
|
+
RouteData[RouteData["CONTRACT"] = 1] = "CONTRACT";
|
|
2170
|
+
RouteData[RouteData["REFERENCE"] = 2] = "REFERENCE";
|
|
2171
|
+
RouteData[RouteData["ID"] = 3] = "ID";
|
|
2172
|
+
RouteData[RouteData["EXTERNAL_ID"] = 4] = "EXTERNAL_ID";
|
|
2173
|
+
RouteData[RouteData["PAYMENT_DYNAMIC"] = 5] = "PAYMENT_DYNAMIC";
|
|
2174
|
+
RouteData[RouteData["PAYMENT_CONEKTA"] = 6] = "PAYMENT_CONEKTA";
|
|
2175
|
+
})(RouteData || (RouteData = {}));
|
|
2176
|
+
var eEmailType;
|
|
2177
|
+
(function (eEmailType) {
|
|
2178
|
+
eEmailType["register"] = "register";
|
|
2179
|
+
eEmailType["update"] = "update";
|
|
2180
|
+
})(eEmailType || (eEmailType = {}));
|
|
2181
|
+
|
|
2112
2182
|
var eAssetPeriod;
|
|
2113
2183
|
(function (eAssetPeriod) {
|
|
2114
2184
|
eAssetPeriod["MONTH"] = "MONTH";
|
|
@@ -2249,5 +2319,5 @@ var eVerificationChannel;
|
|
|
2249
2319
|
* Generated bundle index. Do not edit.
|
|
2250
2320
|
*/
|
|
2251
2321
|
|
|
2252
|
-
export { EnumDynamicClientStatus, ErrorMessages, FactoryBusiness, FactoryClient, FactoryConekta, FactoryContract, FactoryDynamiCore, FactoryNotification, FactoryPassport, FactoryPayment, IndexedDbService, ROLES_KEY, ROUTE_GLOBAL_REFERENCE2, ROUTE_NOTIFICATIONS, RavcreditLibComponent, RavcreditLibService, TIME_FORMAT_TABLE, UtilGeneral, UtilTime, UtilsHttp, cAddress, cAuthConfig, cBusinessConfig, cBusinessDeadlines, cBusinessInfo, cClient, cClientConekta, cClientContract, cClientDynamicStatus, cConektaRecurrent, cContract, cContractMetrics, cDaySchedule, cDefinedSchedule, cDevice, cEmptyDay, cFinancial, cIDCCharge, cIDCCustomer, cIDCDataPii, cIDCGeneratedReference, cIDCPayment, cNotification, cOptionsClientStatus, cOxxoRecurrentSources, cOxxoRecurrentSourcesData, cPaymentDelay, cResponse, cSchedule, cSingleOptionClientStatus, cTopic, cTyClientContract, cUserReference, dateCompleteFormat, dateFormat, dateFormatSimple, dbAuthStore, dbBusinessConfig, dbBusinessInfo, dbClientsStore, dbConektaClientsStore, dbConektaReferencesStore, dbConektaSpeiStore, dbContractsStore, dbDynamicAccountStore, dbDynamicReferencesStore, dbIndexAuth, dbIndexBusiness, dbIndexClients, dbIndexConektaClients, dbIndexConektaClientsRef, dbIndexContracts, dbIndexNotification, dbIndexPassportClientsRef, dbIndexPayments, dbIndexUsers, dbName, dbNotificationsStore, dbPassportReferencesStore, dbPaymentsStore, dbUsersStore, dbVersion, eAccountDynamicStatus, eAssetPeriod, eAuthActions, eAuthType, eAuthType2, eClientDynamicStatus, eClientStatus, eConektaOrderStatus, eConektaOrderType, eConektaRes, eContractStatus, eContractSteps, eDestinationType, eGCActions, eIdentityTypes, eLoginStatus, eNotificationType, eOrderType, ePassportTypes, ePaymentType, eProcessStatus, eProvider, eReferenceStatusRav, eRequestVerb, eRoles, eRolesSelect, eVerificationChannel, eVerificationStatus, eVerificationStep, expiredPayment, keyPathId, keyUserID, ravCreditFunctions, snackBarConfigAction, snackBarConfigNoAction, snackBarConfigNoActionLong, timeFormat, timeFormatTable, week };
|
|
2322
|
+
export { EnumDynamicClientStatus, ErrorMessages, FactoryBusiness, FactoryClient, FactoryConekta, FactoryContract, FactoryDynamiCore, FactoryNotification, FactoryPassport, FactoryPayment, IndexedDbService, ROLES_KEY, ROUTE_GLOBAL_REFERENCE2, ROUTE_NOTIFICATIONS, RavcreditLibComponent, RavcreditLibService, RouteData, TIME_FORMAT_TABLE, UtilGeneral, UtilTime, UtilsHttp, cAddress, cAuthConfig, cBusinessConfig, cBusinessDeadlines, cBusinessInfo, cClient, cClientBase, cClientConekta, cClientContract, cClientDynamicStatus, cConektaRecurrent, cContract, cContractMetrics, cDaySchedule, cDefinedSchedule, cDevice, cEmptyDay, cFinancial, cIDCCharge, cIDCCustomer, cIDCDataPii, cIDCGeneratedReference, cIDCPayment, cMediaIdentity, cNotification, cOptionsClientStatus, cOxxoRecurrentSources, cOxxoRecurrentSourcesData, cPaymentDelay, cResponse, cResponseError, cResponseErrorData, cSchedule, cScore, cScoreAddress, cScoreGeneral, cScoreHit, cSingleOptionClientStatus, cTopic, cTyClientContract, cUserReference, dateCompleteFormat, dateFormat, dateFormatSimple, dbAuthStore, dbBusinessConfig, dbBusinessInfo, dbClientsStore, dbConektaClientsStore, dbConektaReferencesStore, dbConektaSpeiStore, dbContractsStore, dbDynamicAccountStore, dbDynamicReferencesStore, dbIndexAuth, dbIndexBusiness, dbIndexClients, dbIndexConektaClients, dbIndexConektaClientsRef, dbIndexContracts, dbIndexNotification, dbIndexPassportClientsRef, dbIndexPayments, dbIndexUsers, dbName, dbNotificationsStore, dbPassportReferencesStore, dbPaymentsStore, dbUsersStore, dbVersion, eAccountDynamicStatus, eAssetPeriod, eAuthActions, eAuthType, eAuthType2, eClientDynamicStatus, eClientStatus, eConektaOrderStatus, eConektaOrderType, eConektaRes, eContractStatus, eContractSteps, eDestinationType, eEmailType, eGCActions, eIdentityTypes, eLoginStatus, eNotificationType, eOrderType, ePassportTypes, ePaymentType, eProcessStatus, eProvider, eReferenceStatusRav, eRequestVerb, eRoles, eRolesSelect, eVerificationChannel, eVerificationStatus, eVerificationStep, emailContact, expiredPayment, keyPathId, keyUserID, ravCreditFunctions, snackBarConfigAction, snackBarConfigNoAction, snackBarConfigNoActionLong, timeFormat, timeFormatTable, week };
|
|
2253
2323
|
//# sourceMappingURL=ravcredit-lib.mjs.map
|