ravcredit-core 0.0.2
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/dist/index.d.ts +49 -0
- package/dist/index.js +55 -0
- package/dist/lib/v1/const/constants.d.ts +36 -0
- package/dist/lib/v1/const/constants.js +36 -0
- package/dist/lib/v1/objects/oAddress.d.ts +9 -0
- package/dist/lib/v1/objects/oAddress.js +1 -0
- package/dist/lib/v1/objects/oBusiness.d.ts +73 -0
- package/dist/lib/v1/objects/oBusiness.js +1 -0
- package/dist/lib/v1/objects/oClientBase.d.ts +38 -0
- package/dist/lib/v1/objects/oClientBase.js +1 -0
- package/dist/lib/v1/objects/oConekta.d.ts +423 -0
- package/dist/lib/v1/objects/oConekta.js +1 -0
- package/dist/lib/v1/objects/oContract.d.ts +23 -0
- package/dist/lib/v1/objects/oContract.js +1 -0
- package/dist/lib/v1/objects/oContractAll.d.ts +1 -0
- package/dist/lib/v1/objects/oContractAll.js +1 -0
- package/dist/lib/v1/objects/oCustomer.d.ts +17 -0
- package/dist/lib/v1/objects/oCustomer.js +1 -0
- package/dist/lib/v1/objects/oDevice.d.ts +5 -0
- package/dist/lib/v1/objects/oDevice.js +1 -0
- package/dist/lib/v1/objects/oFinancial.d.ts +30 -0
- package/dist/lib/v1/objects/oFinancial.js +1 -0
- package/dist/lib/v1/objects/oLogIn.d.ts +23 -0
- package/dist/lib/v1/objects/oLogIn.js +6 -0
- package/dist/lib/v1/objects/oNewPayment.d.ts +11 -0
- package/dist/lib/v1/objects/oNewPayment.js +1 -0
- package/dist/lib/v1/objects/oNotification.d.ts +20 -0
- package/dist/lib/v1/objects/oNotification.js +10 -0
- package/dist/lib/v1/objects/oPassport.d.ts +50 -0
- package/dist/lib/v1/objects/oPassport.js +2 -0
- package/dist/lib/v1/objects/oUser.d.ts +11 -0
- package/dist/lib/v1/objects/oUser.js +1 -0
- package/dist/lib/v1/objects/oVerification.d.ts +32 -0
- package/dist/lib/v1/objects/oVerification.js +1 -0
- package/dist/lib/v2/constant/cBusiness.d.ts +8 -0
- package/dist/lib/v2/constant/cBusiness.js +46 -0
- package/dist/lib/v2/constant/cClient.d.ts +12 -0
- package/dist/lib/v2/constant/cClient.js +6 -0
- package/dist/lib/v2/constant/cContract.d.ts +12 -0
- package/dist/lib/v2/constant/cContract.js +43 -0
- package/dist/lib/v2/constant/cDashboard.d.ts +2 -0
- package/dist/lib/v2/constant/cDashboard.js +17 -0
- package/dist/lib/v2/constant/cDynamic.d.ts +435 -0
- package/dist/lib/v2/constant/cDynamic.js +164 -0
- package/dist/lib/v2/constant/constants.d.ts +78 -0
- package/dist/lib/v2/constant/constants.js +173 -0
- package/dist/lib/v2/constant/messages.d.ts +33 -0
- package/dist/lib/v2/constant/messages.js +33 -0
- package/dist/lib/v2/enum/EnumAsset.d.ts +4 -0
- package/dist/lib/v2/enum/EnumAsset.js +5 -0
- package/dist/lib/v2/enum/EnumAuth.d.ts +27 -0
- package/dist/lib/v2/enum/EnumAuth.js +31 -0
- package/dist/lib/v2/enum/EnumClient.d.ts +17 -0
- package/dist/lib/v2/enum/EnumClient.js +19 -0
- package/dist/lib/v2/enum/EnumConekta.d.ts +13 -0
- package/dist/lib/v2/enum/EnumConekta.js +19 -0
- package/dist/lib/v2/enum/EnumContract.d.ts +7 -0
- package/dist/lib/v2/enum/EnumContract.js +8 -0
- package/dist/lib/v2/enum/EnumDynamic.d.ts +8 -0
- package/dist/lib/v2/enum/EnumDynamic.js +9 -0
- package/dist/lib/v2/enum/EnumHttpStatus.d.ts +50 -0
- package/dist/lib/v2/enum/EnumHttpStatus.js +51 -0
- package/dist/lib/v2/enum/EnumNotification.d.ts +5 -0
- package/dist/lib/v2/enum/EnumNotification.js +6 -0
- package/dist/lib/v2/enum/EnumPassport.d.ts +4 -0
- package/dist/lib/v2/enum/EnumPassport.js +5 -0
- package/dist/lib/v2/enum/EnumPayment.d.ts +5 -0
- package/dist/lib/v2/enum/EnumPayment.js +6 -0
- package/dist/lib/v2/enum/EnumRoles.d.ts +7 -0
- package/dist/lib/v2/enum/EnumRoles.js +8 -0
- package/dist/lib/v2/enum/EnumToken.d.ts +9 -0
- package/dist/lib/v2/enum/EnumToken.js +1 -0
- package/dist/lib/v2/enum/EnumUtil.d.ts +27 -0
- package/dist/lib/v2/enum/EnumUtil.js +31 -0
- package/dist/lib/v2/enum/EnumVerification.d.ts +20 -0
- package/dist/lib/v2/enum/EnumVerification.js +23 -0
- package/dist/lib/v2/objects/oAmortization.d.ts +26 -0
- package/dist/lib/v2/objects/oAmortization.js +7 -0
- package/dist/lib/v2/objects/oAsset.d.ts +39 -0
- package/dist/lib/v2/objects/oAsset.js +1 -0
- package/dist/lib/v2/objects/oAws.d.ts +7 -0
- package/dist/lib/v2/objects/oAws.js +1 -0
- package/dist/lib/v2/objects/oCatalog.d.ts +6 -0
- package/dist/lib/v2/objects/oCatalog.js +1 -0
- package/dist/lib/v2/objects/oClient.d.ts +34 -0
- package/dist/lib/v2/objects/oClient.js +1 -0
- package/dist/lib/v2/objects/oCompany.d.ts +8 -0
- package/dist/lib/v2/objects/oCompany.js +1 -0
- package/dist/lib/v2/objects/oContract.d.ts +9 -0
- package/dist/lib/v2/objects/oContract.js +1 -0
- package/dist/lib/v2/objects/oGlobal.d.ts +26 -0
- package/dist/lib/v2/objects/oGlobal.js +15 -0
- package/dist/lib/v2/objects/oHttp.d.ts +33 -0
- package/dist/lib/v2/objects/oHttp.js +1 -0
- package/dist/lib/v2/objects/oMedia.d.ts +8 -0
- package/dist/lib/v2/objects/oMedia.js +1 -0
- package/dist/lib/v2/objects/oMessaging.d.ts +9 -0
- package/dist/lib/v2/objects/oMessaging.js +1 -0
- package/dist/lib/v2/objects/oScore.d.ts +33 -0
- package/dist/lib/v2/objects/oScore.js +1 -0
- package/dist/lib/v2/objects/oUtil.d.ts +56 -0
- package/dist/lib/v2/objects/oUtil.js +1 -0
- package/dist/lib/v2/util/UtilsHttp.d.ts +16 -0
- package/dist/lib/v2/util/UtilsHttp.js +22 -0
- package/package.json +34 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
export var eReferenceStatusRav;
|
|
2
|
+
(function (eReferenceStatusRav) {
|
|
3
|
+
eReferenceStatusRav["Disponible"] = "Disponible";
|
|
4
|
+
eReferenceStatusRav["Active"] = "Activo con credito vigente";
|
|
5
|
+
eReferenceStatusRav["ActiveEnded"] = "Activo sin credito vigente";
|
|
6
|
+
eReferenceStatusRav["Registered"] = "Registrado";
|
|
7
|
+
eReferenceStatusRav["NonRegistered"] = "No registrado";
|
|
8
|
+
eReferenceStatusRav["NonVerified"] = "No verificado";
|
|
9
|
+
eReferenceStatusRav["Rejected"] = "Rechazado";
|
|
10
|
+
eReferenceStatusRav["Pending"] = "Pendiente";
|
|
11
|
+
})(eReferenceStatusRav || (eReferenceStatusRav = {}));
|
|
12
|
+
export var eAccountDynamicStatus;
|
|
13
|
+
(function (eAccountDynamicStatus) {
|
|
14
|
+
eAccountDynamicStatus["OK"] = "Con cuenta activa";
|
|
15
|
+
eAccountDynamicStatus["NOK"] = "Sin cuenta activa";
|
|
16
|
+
})(eAccountDynamicStatus || (eAccountDynamicStatus = {}));
|
|
17
|
+
//
|
|
18
|
+
// export enum eAccountDynamicRegister {
|
|
19
|
+
// "Active" = "Activo", // Ok
|
|
20
|
+
// "NonAuthorized" = "No autorizado",
|
|
21
|
+
// "Authorized" = "Autorizado", // Non ref
|
|
22
|
+
// "Accepted" = "Aceptado", // Non ref
|
|
23
|
+
// "Rejected" = "Rechazado", // Non ref
|
|
24
|
+
// "Pending" = "Pendiente", // Non ref
|
|
25
|
+
// "NotFound" = "No registrado"
|
|
26
|
+
// }
|
|
27
|
+
export var eClientDynamicStatus;
|
|
28
|
+
(function (eClientDynamicStatus) {
|
|
29
|
+
eClientDynamicStatus["Active"] = "Active";
|
|
30
|
+
eClientDynamicStatus["Pending"] = "Pending";
|
|
31
|
+
eClientDynamicStatus["Accepted"] = "Accepted";
|
|
32
|
+
eClientDynamicStatus["Rejected"] = "Rejected";
|
|
33
|
+
eClientDynamicStatus["approved"] = "Aprobado";
|
|
34
|
+
})(eClientDynamicStatus || (eClientDynamicStatus = {}));
|
|
35
|
+
export const cClientDynamicStatus = {
|
|
36
|
+
Active: {
|
|
37
|
+
value: "Active",
|
|
38
|
+
viewValue: "Activo"
|
|
39
|
+
},
|
|
40
|
+
Pending: {
|
|
41
|
+
value: "Pending",
|
|
42
|
+
viewValue: "Pendiente"
|
|
43
|
+
},
|
|
44
|
+
Accepted: {
|
|
45
|
+
value: "Accepted",
|
|
46
|
+
viewValue: "Pre autorizado"
|
|
47
|
+
},
|
|
48
|
+
Rejected: {
|
|
49
|
+
value: "Rejected",
|
|
50
|
+
viewValue: "Rechazado"
|
|
51
|
+
},
|
|
52
|
+
Idle: {
|
|
53
|
+
value: "Idle",
|
|
54
|
+
viewValue: ""
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
export var eContractSteps;
|
|
58
|
+
(function (eContractSteps) {
|
|
59
|
+
eContractSteps["idle"] = "idle";
|
|
60
|
+
eContractSteps["general"] = "General";
|
|
61
|
+
eContractSteps["address"] = "Address";
|
|
62
|
+
eContractSteps["device"] = "Device";
|
|
63
|
+
eContractSteps["financial"] = "Financial";
|
|
64
|
+
eContractSteps["app"] = "App";
|
|
65
|
+
})(eContractSteps || (eContractSteps = {}));
|
|
66
|
+
export const cIDCDataPii = {
|
|
67
|
+
icc: "",
|
|
68
|
+
rfc: "",
|
|
69
|
+
sex: "",
|
|
70
|
+
city: "",
|
|
71
|
+
curp: "",
|
|
72
|
+
days: "",
|
|
73
|
+
imei: "",
|
|
74
|
+
name: "",
|
|
75
|
+
step: "",
|
|
76
|
+
term: "",
|
|
77
|
+
brand: "",
|
|
78
|
+
email: "",
|
|
79
|
+
model: "",
|
|
80
|
+
phone: "",
|
|
81
|
+
score: "",
|
|
82
|
+
state: "",
|
|
83
|
+
amount: "",
|
|
84
|
+
colony: "",
|
|
85
|
+
period: "",
|
|
86
|
+
street: "",
|
|
87
|
+
ticket: "",
|
|
88
|
+
num_ext: "",
|
|
89
|
+
num_int: "",
|
|
90
|
+
zipcode: "",
|
|
91
|
+
evidence: "",
|
|
92
|
+
financed: "",
|
|
93
|
+
house_is: "",
|
|
94
|
+
lastname: "",
|
|
95
|
+
type_job: "",
|
|
96
|
+
birthdate: "",
|
|
97
|
+
birthstate: "",
|
|
98
|
+
dicio_data: "",
|
|
99
|
+
dicio_step: "",
|
|
100
|
+
secondname: "",
|
|
101
|
+
nationality: "",
|
|
102
|
+
seller_name: "",
|
|
103
|
+
down_payment: "",
|
|
104
|
+
municipality: "",
|
|
105
|
+
score_no_hit: "",
|
|
106
|
+
study_degree: "",
|
|
107
|
+
branch_office: "",
|
|
108
|
+
identity_data: "",
|
|
109
|
+
interest_rate: "",
|
|
110
|
+
score_interno: "",
|
|
111
|
+
marital_status: "",
|
|
112
|
+
monthly_income: "",
|
|
113
|
+
motherlastname: "",
|
|
114
|
+
score_rcc_fico: "",
|
|
115
|
+
identity_selfie: "",
|
|
116
|
+
amount_by_period: "",
|
|
117
|
+
identity_id_back: "",
|
|
118
|
+
proof_of_address: "",
|
|
119
|
+
identity_id_front: "",
|
|
120
|
+
economic_dependents: "",
|
|
121
|
+
identity_id_request: "",
|
|
122
|
+
identity_verification: "",
|
|
123
|
+
is_address_ine_currently_live: "",
|
|
124
|
+
fotografia_del_cliente_con_el_equipo: "",
|
|
125
|
+
estado: "",
|
|
126
|
+
gender: ""
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Base customer for create customer with DynamiCore provider
|
|
130
|
+
* */
|
|
131
|
+
export const cIDCCustomer = {
|
|
132
|
+
pii: cIDCDataPii,
|
|
133
|
+
client_type: 662
|
|
134
|
+
};
|
|
135
|
+
export const cIDCPayment = {
|
|
136
|
+
operation: 98,
|
|
137
|
+
account: "",
|
|
138
|
+
date: "",
|
|
139
|
+
amount: 0,
|
|
140
|
+
dst_account: "",
|
|
141
|
+
reference: ""
|
|
142
|
+
};
|
|
143
|
+
export const cIDCCharge = {
|
|
144
|
+
barcode_url: "",
|
|
145
|
+
currency: "",
|
|
146
|
+
expires_at: 0,
|
|
147
|
+
object: "",
|
|
148
|
+
quantity: 0,
|
|
149
|
+
reference: "",
|
|
150
|
+
service_name: "",
|
|
151
|
+
store_name: "",
|
|
152
|
+
type: "",
|
|
153
|
+
unit_price: 0
|
|
154
|
+
};
|
|
155
|
+
export const cIDCGeneratedReference = {
|
|
156
|
+
account: 0,
|
|
157
|
+
active: 0,
|
|
158
|
+
amount: 0,
|
|
159
|
+
channel: "",
|
|
160
|
+
charge: cIDCCharge,
|
|
161
|
+
company: 0,
|
|
162
|
+
id: "",
|
|
163
|
+
operation: 0
|
|
164
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { iOptionsSelect, iPaymentDelay, iSelect } from "../objects/oUtil.js";
|
|
2
|
+
import { oAddress } from "../../v1/objects/oAddress.js";
|
|
3
|
+
import { iConektaRecurrent, iOxxoRecurrentSources, iOxxorecurrentSourcesData } from "../../v1/objects/oConekta.js";
|
|
4
|
+
import { iAuthConfig } from "../../v1/objects/oLogIn.js";
|
|
5
|
+
import { oDaySchedule } from "../../v1/objects/oBusiness.js";
|
|
6
|
+
import { oResponse } from "../objects/oHttp.js";
|
|
7
|
+
import { oClientBase } from "../../v1/objects/oClientBase.js";
|
|
8
|
+
import { oScore, oScoreAddress, oScoreGeneral, oScoreHit } from "../objects/oScore.js";
|
|
9
|
+
import { oClient, oUserReference } from "../objects/oClient.js";
|
|
10
|
+
import { oMediaIdentity } from "../objects/oMedia.js";
|
|
11
|
+
import { oClientConekta } from "./cClient.js";
|
|
12
|
+
export declare const cSingleOptionClientStatus: iOptionsSelect;
|
|
13
|
+
export declare const cOptionsClientStatus: iOptionsSelect[];
|
|
14
|
+
export declare const eRolesSelect: iSelect[];
|
|
15
|
+
export declare const cPaymentDelay: iPaymentDelay;
|
|
16
|
+
export declare const cAddress: oAddress;
|
|
17
|
+
export declare const cOxxoRecurrentSourcesData: iOxxorecurrentSourcesData;
|
|
18
|
+
export declare const cOxxoRecurrentSources: iOxxoRecurrentSources;
|
|
19
|
+
export declare const cConektaRecurrent: iConektaRecurrent;
|
|
20
|
+
export declare const cAuthConfig: iAuthConfig;
|
|
21
|
+
export declare const cDaySchedule: oDaySchedule;
|
|
22
|
+
export declare const cResponse: oResponse;
|
|
23
|
+
export declare const cClientBase: oClientBase;
|
|
24
|
+
export declare const cScoreAddress: oScoreAddress;
|
|
25
|
+
export declare const cScoreHit: oScoreHit;
|
|
26
|
+
export declare const cScoreGeneral: oScoreGeneral;
|
|
27
|
+
export declare const cScore: oScore;
|
|
28
|
+
export declare const cMediaIdentity: oMediaIdentity;
|
|
29
|
+
export declare const cClient: oClient;
|
|
30
|
+
export declare const cUserReference: oUserReference;
|
|
31
|
+
export declare const cClientConekta: oClientConekta;
|
|
32
|
+
export declare const cResponseErrorData: oResponse;
|
|
33
|
+
export declare const emailContact = "contact@ravcredit.com";
|
|
34
|
+
export declare const cResponseError: oResponse;
|
|
35
|
+
export declare const cTyClientContract: {
|
|
36
|
+
id: string;
|
|
37
|
+
dynamicAccount?: number;
|
|
38
|
+
client: string;
|
|
39
|
+
address: oAddress;
|
|
40
|
+
device: import("../../../index.js").oDevice;
|
|
41
|
+
financial: import("../../../index.js").oFinancial;
|
|
42
|
+
createdAt?: number;
|
|
43
|
+
lastPayment?: number;
|
|
44
|
+
by: string;
|
|
45
|
+
active: boolean;
|
|
46
|
+
photo?: string;
|
|
47
|
+
score: oScore;
|
|
48
|
+
seller_id?: string;
|
|
49
|
+
scoreNoHit?: import("../objects/oScore.js").oScoreNoHit;
|
|
50
|
+
study_degree?: string;
|
|
51
|
+
mediaSelfie?: oMediaIdentity;
|
|
52
|
+
mediaAddress?: oMediaIdentity;
|
|
53
|
+
mediaWithDevice?: oMediaIdentity;
|
|
54
|
+
mediaSelfieBack?: oMediaIdentity;
|
|
55
|
+
identityVerification?: import("../enum/EnumVerification.js").eVerificationStep;
|
|
56
|
+
name: string;
|
|
57
|
+
username: string;
|
|
58
|
+
password?: string;
|
|
59
|
+
email: string;
|
|
60
|
+
phone: string;
|
|
61
|
+
curp: string;
|
|
62
|
+
contract?: string;
|
|
63
|
+
lastLogin?: number;
|
|
64
|
+
contract_temporary?: string;
|
|
65
|
+
exists?: boolean;
|
|
66
|
+
conekta_id?: string;
|
|
67
|
+
dynamic_id?: number | string;
|
|
68
|
+
dynamic_account?: string | number;
|
|
69
|
+
dynamic_ref?: string;
|
|
70
|
+
passport_id?: string;
|
|
71
|
+
payments?: import("../../v1/objects/oClientBase.js").oClientPaymentsBase[];
|
|
72
|
+
reference?: string;
|
|
73
|
+
references?: import("../objects/oClient.js").oClientReferences[];
|
|
74
|
+
token?: string;
|
|
75
|
+
userReferences: import("../../v1/objects/oClientBase.js").oUserReferenceBase[];
|
|
76
|
+
contractUrl?: string;
|
|
77
|
+
status: string;
|
|
78
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { eClientStatus, eIdentityTypes } from "../enum/EnumClient.js";
|
|
2
|
+
import { eRoles } from "../enum/EnumRoles.js";
|
|
3
|
+
import { HttpStatus } from "../enum/EnumHttpStatus.js";
|
|
4
|
+
import { cContract } from "./cContract.js";
|
|
5
|
+
export const cSingleOptionClientStatus = {
|
|
6
|
+
viewValue: "",
|
|
7
|
+
value: ""
|
|
8
|
+
};
|
|
9
|
+
export const cOptionsClientStatus = [
|
|
10
|
+
{
|
|
11
|
+
value: eClientStatus.ACTIVE,
|
|
12
|
+
viewValue: "Activar"
|
|
13
|
+
}, {
|
|
14
|
+
value: eClientStatus.COMPLETED,
|
|
15
|
+
viewValue: "Completar"
|
|
16
|
+
}, {
|
|
17
|
+
value: eClientStatus.PAUSED,
|
|
18
|
+
viewValue: "Pausar"
|
|
19
|
+
}, {
|
|
20
|
+
value: eClientStatus.LATE,
|
|
21
|
+
viewValue: "Marcar con atraso"
|
|
22
|
+
}, {
|
|
23
|
+
value: eClientStatus.CANCELED,
|
|
24
|
+
viewValue: "Cancelar"
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
export const eRolesSelect = [
|
|
28
|
+
{
|
|
29
|
+
value: eRoles.Administrator,
|
|
30
|
+
viewValue: eRoles.Administrator
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
value: eRoles.Consultant,
|
|
34
|
+
viewValue: eRoles.Consultant
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
value: eRoles.Seller,
|
|
38
|
+
viewValue: eRoles.Seller
|
|
39
|
+
},
|
|
40
|
+
];
|
|
41
|
+
export const cPaymentDelay = {
|
|
42
|
+
today: 0,
|
|
43
|
+
nextPayment: 0,
|
|
44
|
+
daysDelay: 0,
|
|
45
|
+
late: false,
|
|
46
|
+
};
|
|
47
|
+
export const cAddress = {
|
|
48
|
+
street: "",
|
|
49
|
+
city: "",
|
|
50
|
+
neighbor: "",
|
|
51
|
+
zip: "",
|
|
52
|
+
ext: "",
|
|
53
|
+
int: "",
|
|
54
|
+
state: ""
|
|
55
|
+
};
|
|
56
|
+
export const cOxxoRecurrentSourcesData = {
|
|
57
|
+
id: "",
|
|
58
|
+
object: "",
|
|
59
|
+
type: "",
|
|
60
|
+
provider: "",
|
|
61
|
+
reference: "",
|
|
62
|
+
barcode: "",
|
|
63
|
+
barcode_url: "",
|
|
64
|
+
expires_at: 0,
|
|
65
|
+
created_at: 0,
|
|
66
|
+
parent_id: ""
|
|
67
|
+
};
|
|
68
|
+
export const cOxxoRecurrentSources = {
|
|
69
|
+
object: "",
|
|
70
|
+
has_more: false,
|
|
71
|
+
total: 0,
|
|
72
|
+
data: []
|
|
73
|
+
};
|
|
74
|
+
export const cConektaRecurrent = {
|
|
75
|
+
livemode: false,
|
|
76
|
+
name: "",
|
|
77
|
+
email: "",
|
|
78
|
+
phone: "",
|
|
79
|
+
id: "",
|
|
80
|
+
object: "",
|
|
81
|
+
created_at: 0,
|
|
82
|
+
corporate: false,
|
|
83
|
+
custom_id: "",
|
|
84
|
+
payment_sources: cOxxoRecurrentSources
|
|
85
|
+
};
|
|
86
|
+
export const cAuthConfig = {
|
|
87
|
+
title: "",
|
|
88
|
+
desc: "",
|
|
89
|
+
data: true,
|
|
90
|
+
};
|
|
91
|
+
export const cDaySchedule = {
|
|
92
|
+
open: 0,
|
|
93
|
+
close: 0
|
|
94
|
+
};
|
|
95
|
+
export const cResponse = {
|
|
96
|
+
path: '',
|
|
97
|
+
statusCode: HttpStatus.CONTINUE,
|
|
98
|
+
epochTime: new Date().getTime(),
|
|
99
|
+
data: null,
|
|
100
|
+
};
|
|
101
|
+
export const cClientBase = {
|
|
102
|
+
id: "",
|
|
103
|
+
name: "",
|
|
104
|
+
username: "",
|
|
105
|
+
email: "",
|
|
106
|
+
phone: "",
|
|
107
|
+
curp: "",
|
|
108
|
+
contract_temporary: "",
|
|
109
|
+
conekta_id: "",
|
|
110
|
+
userReferences: [],
|
|
111
|
+
status: ""
|
|
112
|
+
};
|
|
113
|
+
export const cScoreAddress = {
|
|
114
|
+
CP: "",
|
|
115
|
+
ciudad: "",
|
|
116
|
+
estado: "",
|
|
117
|
+
domicilio: "",
|
|
118
|
+
coloniaPoblacion: "",
|
|
119
|
+
delegacionMunicipio: ""
|
|
120
|
+
};
|
|
121
|
+
export const cScoreHit = {
|
|
122
|
+
valor: ""
|
|
123
|
+
};
|
|
124
|
+
export const cScoreGeneral = {
|
|
125
|
+
nombres: "",
|
|
126
|
+
apellidoMaterno: "",
|
|
127
|
+
apellidoPaterno: "",
|
|
128
|
+
fechaNacimiento: ""
|
|
129
|
+
};
|
|
130
|
+
export const cScore = {
|
|
131
|
+
domicilio: cScoreAddress,
|
|
132
|
+
scoreNoHit: cScoreHit,
|
|
133
|
+
folioConsulta: "",
|
|
134
|
+
datosGenerales: cScoreGeneral
|
|
135
|
+
};
|
|
136
|
+
export const cMediaIdentity = {
|
|
137
|
+
active: false, metadata: null, name: eIdentityTypes.NONE, uploaded: 0, url: ''
|
|
138
|
+
};
|
|
139
|
+
export const cClient = {
|
|
140
|
+
score: cScore,
|
|
141
|
+
mediaAddress: cMediaIdentity,
|
|
142
|
+
id: "",
|
|
143
|
+
name: "",
|
|
144
|
+
username: "",
|
|
145
|
+
email: "",
|
|
146
|
+
phone: "",
|
|
147
|
+
curp: "",
|
|
148
|
+
contract_temporary: "",
|
|
149
|
+
conekta_id: "",
|
|
150
|
+
userReferences: [],
|
|
151
|
+
status: ""
|
|
152
|
+
};
|
|
153
|
+
export const cUserReference = {
|
|
154
|
+
name: "",
|
|
155
|
+
phone: "",
|
|
156
|
+
relationship: ""
|
|
157
|
+
};
|
|
158
|
+
export const cClientConekta = {
|
|
159
|
+
conekta: cConektaRecurrent,
|
|
160
|
+
ravcredit: cClient
|
|
161
|
+
};
|
|
162
|
+
export const cResponseErrorData = {
|
|
163
|
+
epochTime: new Date().getTime(), statusCode: 202,
|
|
164
|
+
data: []
|
|
165
|
+
};
|
|
166
|
+
export const emailContact = "contact@ravcredit.com";
|
|
167
|
+
export const cResponseError = {
|
|
168
|
+
path: "",
|
|
169
|
+
statusCode: 400,
|
|
170
|
+
epochTime: new Date().getTime(),
|
|
171
|
+
data: cResponseErrorData
|
|
172
|
+
};
|
|
173
|
+
export const cTyClientContract = { ...cClient, ...cContract };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const ErrorMessages: {
|
|
2
|
+
NotFound: string;
|
|
3
|
+
Unauthorized: string;
|
|
4
|
+
RandomError: string;
|
|
5
|
+
RandomErrorFirestore: string;
|
|
6
|
+
CreateUser: string;
|
|
7
|
+
CreateFoundedUser: string;
|
|
8
|
+
FindAllNotFound: string;
|
|
9
|
+
UserFindOne: string;
|
|
10
|
+
UserFindOneError: string;
|
|
11
|
+
UserUpdate: string;
|
|
12
|
+
DeleteUser: string;
|
|
13
|
+
UsernameNotFound: string;
|
|
14
|
+
IncorrectPassword: string;
|
|
15
|
+
LastLogIn: string;
|
|
16
|
+
authError: string;
|
|
17
|
+
tokenRequired: string;
|
|
18
|
+
ClientDefined: string;
|
|
19
|
+
ClientsNotFound: string;
|
|
20
|
+
ClientNotFound: string;
|
|
21
|
+
ClientNotUpdated: string;
|
|
22
|
+
DeleteClient: string;
|
|
23
|
+
UsernameClientNotFound: string;
|
|
24
|
+
ContractsAllEmpty: string;
|
|
25
|
+
ContractNotFound: string;
|
|
26
|
+
ContractUpdateError: string;
|
|
27
|
+
ContractDeleteError: string;
|
|
28
|
+
cNotUserFound: string;
|
|
29
|
+
cIncorrectPassword: string;
|
|
30
|
+
dbUsernameNotFound: string;
|
|
31
|
+
dbIncorrectPassword: string;
|
|
32
|
+
dbUsernameClientNotFound: string;
|
|
33
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export const ErrorMessages = {
|
|
2
|
+
NotFound: "Recurso no encontrado",
|
|
3
|
+
Unauthorized: "Request without(or not valid) token",
|
|
4
|
+
RandomError: "Something goes wrong, try again -> ",
|
|
5
|
+
RandomErrorFirestore: "Something goes wrong in firestore",
|
|
6
|
+
CreateUser: "Error: Something goes wrong",
|
|
7
|
+
CreateFoundedUser: "Error: User already exists try with another username",
|
|
8
|
+
FindAllNotFound: "Not users found",
|
|
9
|
+
UserFindOne: "User with given ID not found",
|
|
10
|
+
UserFindOneError: "Error getting user by ID",
|
|
11
|
+
UserUpdate: "Error updating user by ID",
|
|
12
|
+
DeleteUser: "Error deleting user",
|
|
13
|
+
UsernameNotFound: "User with given username not found",
|
|
14
|
+
IncorrectPassword: "Incorrect or not valid password",
|
|
15
|
+
LastLogIn: "Last LogIn date not updated",
|
|
16
|
+
authError: "Username or password incorrect",
|
|
17
|
+
tokenRequired: "Token required",
|
|
18
|
+
ClientDefined: "This user already registered: Update user's contracts instead",
|
|
19
|
+
ClientsNotFound: "List of clients is empty",
|
|
20
|
+
ClientNotFound: "Client with given ID, not found",
|
|
21
|
+
ClientNotUpdated: "Client with given ID, not updated",
|
|
22
|
+
DeleteClient: "Error deleting client",
|
|
23
|
+
UsernameClientNotFound: "Client with given username not found",
|
|
24
|
+
ContractsAllEmpty: "Contract list empty",
|
|
25
|
+
ContractNotFound: "Contract not found",
|
|
26
|
+
ContractUpdateError: "Something goes wrong updating contract, try again",
|
|
27
|
+
ContractDeleteError: "Something goes wrong deleting contract, try again",
|
|
28
|
+
cNotUserFound: "Usuario no encontrado",
|
|
29
|
+
cIncorrectPassword: "Contraseña incorrecta",
|
|
30
|
+
dbUsernameNotFound: "User with given username not found",
|
|
31
|
+
dbIncorrectPassword: "Incorrect or not valid password",
|
|
32
|
+
dbUsernameClientNotFound: "Client with given username not found",
|
|
33
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare enum eLoginStatus {
|
|
2
|
+
IDLE = "IDLE",
|
|
3
|
+
ERROR = "ERROR",
|
|
4
|
+
AUTHORIZED = "AUTHORIZED",
|
|
5
|
+
CHECKING = "CHECKING",
|
|
6
|
+
NOAUTHORIZED = "NOAUTHORIZED",
|
|
7
|
+
NOTFOUND = "NOTFOUND",
|
|
8
|
+
ERRORPASSWORD = "ERRORPASSWORD",
|
|
9
|
+
USERNOTFOUND = "USERNOTFOUND"
|
|
10
|
+
}
|
|
11
|
+
export declare enum eAuthActions {
|
|
12
|
+
delete = "delete",
|
|
13
|
+
auth = "auth"
|
|
14
|
+
}
|
|
15
|
+
export declare enum eAuthType2 {
|
|
16
|
+
auth = "auth",
|
|
17
|
+
login = "login",
|
|
18
|
+
idle = ""
|
|
19
|
+
}
|
|
20
|
+
export declare enum eAuthType {
|
|
21
|
+
USER = "USER",// Used for user of Ravcredit platform user, employee
|
|
22
|
+
ADMIN = "ADMIN",
|
|
23
|
+
SELLER = "SELLER",
|
|
24
|
+
CLIENT = "CLIENT",// Used for clients of Ravcredit
|
|
25
|
+
CONSULTANT = "CONSULTANT",
|
|
26
|
+
FUNCTION = "FUNCTION"
|
|
27
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export var eLoginStatus;
|
|
2
|
+
(function (eLoginStatus) {
|
|
3
|
+
eLoginStatus["IDLE"] = "IDLE";
|
|
4
|
+
eLoginStatus["ERROR"] = "ERROR";
|
|
5
|
+
eLoginStatus["AUTHORIZED"] = "AUTHORIZED";
|
|
6
|
+
eLoginStatus["CHECKING"] = "CHECKING";
|
|
7
|
+
eLoginStatus["NOAUTHORIZED"] = "NOAUTHORIZED";
|
|
8
|
+
eLoginStatus["NOTFOUND"] = "NOTFOUND";
|
|
9
|
+
eLoginStatus["ERRORPASSWORD"] = "ERRORPASSWORD";
|
|
10
|
+
eLoginStatus["USERNOTFOUND"] = "USERNOTFOUND";
|
|
11
|
+
})(eLoginStatus || (eLoginStatus = {}));
|
|
12
|
+
export var eAuthActions;
|
|
13
|
+
(function (eAuthActions) {
|
|
14
|
+
eAuthActions["delete"] = "delete";
|
|
15
|
+
eAuthActions["auth"] = "auth";
|
|
16
|
+
})(eAuthActions || (eAuthActions = {}));
|
|
17
|
+
export var eAuthType2;
|
|
18
|
+
(function (eAuthType2) {
|
|
19
|
+
eAuthType2["auth"] = "auth";
|
|
20
|
+
eAuthType2["login"] = "login";
|
|
21
|
+
eAuthType2["idle"] = "";
|
|
22
|
+
})(eAuthType2 || (eAuthType2 = {}));
|
|
23
|
+
export var eAuthType;
|
|
24
|
+
(function (eAuthType) {
|
|
25
|
+
eAuthType["USER"] = "USER";
|
|
26
|
+
eAuthType["ADMIN"] = "ADMIN";
|
|
27
|
+
eAuthType["SELLER"] = "SELLER";
|
|
28
|
+
eAuthType["CLIENT"] = "CLIENT";
|
|
29
|
+
eAuthType["CONSULTANT"] = "CONSULTANT";
|
|
30
|
+
eAuthType["FUNCTION"] = "FUNCTION";
|
|
31
|
+
})(eAuthType || (eAuthType = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum eClientStatus {
|
|
2
|
+
ACTIVE = "active",
|
|
3
|
+
COMPLETED = "completed",
|
|
4
|
+
PAUSED = "paused",
|
|
5
|
+
CANCELED = "canceled",
|
|
6
|
+
LATE = "late"
|
|
7
|
+
}
|
|
8
|
+
export declare enum eIdentityTypes {
|
|
9
|
+
SELFIE = "SELFIE",
|
|
10
|
+
IDENTITY_FRONT = "IDENTITY_FRONT",
|
|
11
|
+
IDENTITY_BACK = "IDENTITY_BACK",
|
|
12
|
+
PASSPORT_FRONT = "PASSPORT_FRONT",
|
|
13
|
+
PASSPORT_BACK = "PASSPORT_BACK",
|
|
14
|
+
SERVICE = "SERVICE",
|
|
15
|
+
WITH_DEVICE = "WITH_DEVICE",
|
|
16
|
+
NONE = "NONE"
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export var eClientStatus;
|
|
2
|
+
(function (eClientStatus) {
|
|
3
|
+
eClientStatus["ACTIVE"] = "active";
|
|
4
|
+
eClientStatus["COMPLETED"] = "completed";
|
|
5
|
+
eClientStatus["PAUSED"] = "paused";
|
|
6
|
+
eClientStatus["CANCELED"] = "canceled";
|
|
7
|
+
eClientStatus["LATE"] = "late";
|
|
8
|
+
})(eClientStatus || (eClientStatus = {}));
|
|
9
|
+
export var eIdentityTypes;
|
|
10
|
+
(function (eIdentityTypes) {
|
|
11
|
+
eIdentityTypes["SELFIE"] = "SELFIE";
|
|
12
|
+
eIdentityTypes["IDENTITY_FRONT"] = "IDENTITY_FRONT";
|
|
13
|
+
eIdentityTypes["IDENTITY_BACK"] = "IDENTITY_BACK";
|
|
14
|
+
eIdentityTypes["PASSPORT_FRONT"] = "PASSPORT_FRONT";
|
|
15
|
+
eIdentityTypes["PASSPORT_BACK"] = "PASSPORT_BACK";
|
|
16
|
+
eIdentityTypes["SERVICE"] = "SERVICE";
|
|
17
|
+
eIdentityTypes["WITH_DEVICE"] = "WITH_DEVICE";
|
|
18
|
+
eIdentityTypes["NONE"] = "NONE";
|
|
19
|
+
})(eIdentityTypes || (eIdentityTypes = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum eConektaRes {
|
|
2
|
+
CUSTOMER_CREATED = "customer.created",
|
|
3
|
+
ORDER_PENDING_PAYMENT = "order.pending_payment",
|
|
4
|
+
ORDER_CREATED = "order.created",
|
|
5
|
+
CHARGE_CREATED = "charge.created",
|
|
6
|
+
ORDER_PAID = "order.paid",
|
|
7
|
+
CHARGE_PAID = "charge.paid"
|
|
8
|
+
}
|
|
9
|
+
export declare enum eConektaOrderStatus {
|
|
10
|
+
expired = "expired",
|
|
11
|
+
paid = "paid",
|
|
12
|
+
pending_payment = "pending_payment"
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export var eConektaRes;
|
|
2
|
+
(function (eConektaRes) {
|
|
3
|
+
eConektaRes["CUSTOMER_CREATED"] = "customer.created";
|
|
4
|
+
eConektaRes["ORDER_PENDING_PAYMENT"] = "order.pending_payment";
|
|
5
|
+
eConektaRes["ORDER_CREATED"] = "order.created";
|
|
6
|
+
eConektaRes["CHARGE_CREATED"] = "charge.created";
|
|
7
|
+
eConektaRes["ORDER_PAID"] = "order.paid";
|
|
8
|
+
eConektaRes["CHARGE_PAID"] = "charge.paid";
|
|
9
|
+
})(eConektaRes || (eConektaRes = {}));
|
|
10
|
+
export var eConektaOrderStatus;
|
|
11
|
+
(function (eConektaOrderStatus) {
|
|
12
|
+
eConektaOrderStatus["expired"] = "expired";
|
|
13
|
+
eConektaOrderStatus["paid"] = "paid";
|
|
14
|
+
eConektaOrderStatus["pending_payment"] = "pending_payment";
|
|
15
|
+
})(eConektaOrderStatus || (eConektaOrderStatus = {}));
|
|
16
|
+
// export enum eConektaOrderType {
|
|
17
|
+
// REFERENCE = "REFERENCE",
|
|
18
|
+
// SPEI = "SPEI",
|
|
19
|
+
// }
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var eContractStatus;
|
|
2
|
+
(function (eContractStatus) {
|
|
3
|
+
eContractStatus["APPROVED"] = "APPROVED";
|
|
4
|
+
eContractStatus["DENIED"] = "DENIED";
|
|
5
|
+
eContractStatus["CANCELED"] = "CANCELED";
|
|
6
|
+
eContractStatus["PENDING"] = "PENDING";
|
|
7
|
+
eContractStatus["CHECKING"] = "CHECKING";
|
|
8
|
+
})(eContractStatus || (eContractStatus = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export var EnumDynamicClientStatus;
|
|
2
|
+
(function (EnumDynamicClientStatus) {
|
|
3
|
+
EnumDynamicClientStatus["ACCEPTED"] = "Accepted";
|
|
4
|
+
EnumDynamicClientStatus["PENDING"] = "Pending";
|
|
5
|
+
EnumDynamicClientStatus["REJECTED"] = "Rejected";
|
|
6
|
+
EnumDynamicClientStatus["ACTIVE"] = "Active";
|
|
7
|
+
EnumDynamicClientStatus["INACTIVE"] = "Inactive";
|
|
8
|
+
EnumDynamicClientStatus["CANCELED"] = "Cancelled";
|
|
9
|
+
})(EnumDynamicClientStatus || (EnumDynamicClientStatus = {}));
|