-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.js
58 lines (47 loc) · 1.11 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
const OrderStatuses = {
PENDING: "PENDING",
COMPLETED: "COMPLETED",
FAILED: "FAILED",
};
const paypalBaseUrl = {
sandbox: "https://api-m.sandbox.paypal.com",
};
const AvailableOrderStatusEnums = Object.values(OrderStatuses);
/**
* @type {{ UNKNOWN:"UNKNOWN"; PAYSTACK: "PAYSTACK"; FLUTTERWAVE: "FLUTTERWAVE"; BANK: "BANK";} as const}
*/
const PaymentMethods = {
UNKNOWN: "UNKNOWN",
BANK: "BANK",
PAYSTACK: "PAYSTACK",
FLUTTERWAVE: "FLUTTERWAVE",
};
const AvailablePaymentMethods = Object.values(PaymentMethods);
const paystackStatus = {
success: "success",
};
const RoleEnums = {
USER: "USER",
ADMIN: "ADMIN",
MODERATOR: "MODERATOR",
};
const AvailableRoles = Object.values(RoleEnums);
const LoginType = {
EMAIL_PASSWORD: "EMAIL_PASSWORD",
GOOGLE: "GOOGLE",
};
const AvailableLoginType = Object.values(LoginType);
const MAX_SUB_IMAGES_TO_BE_UPLOAD = 10;
module.exports = {
paystackStatus,
AvailableOrderStatusEnums,
OrderStatuses,
PaymentMethods,
AvailablePaymentMethods,
RoleEnums,
AvailableRoles,
LoginType,
AvailableLoginType,
MAX_SUB_IMAGES_TO_BE_UPLOAD,
paypalBaseUrl,
};