Skip to content

Commit b22edbf

Browse files
committed
Added Constants and enums
1 parent 438dc16 commit b22edbf

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
2+
const SubscriptionCategory = Object({
3+
STREAMING: "streaming",
4+
SOFTWARE: "software",
5+
UTILITIES: "utilities",
6+
EDUCATION: "education",
7+
FITNESS: "fitness",
8+
FINANCE: "finance",
9+
GAMING: "gaming",
10+
MUSIC: "music",
11+
NEWS: "news",
12+
CLOUD: "cloud",
13+
OTHER: "other",
14+
});
15+
16+
const BillingCycle = Object({
17+
DAILY: "daily",
18+
WEEKLY: "weekly",
19+
MONTHLY: "monthly",
20+
QUARTERLY: "quarterly",
21+
YEARLY: "yearly",
22+
CUSTOM: "custom",
23+
});
24+
25+
const SubscriptionStatus = Object({
26+
ACTIVE: "active",
27+
TRIAL: "trial",
28+
PAUSED: "paused",
29+
CANCELLED: "cancelled",
30+
EXPIRED: "expired",
31+
});
32+
33+
const GMAIL_SUBSCRIPTION_KEYWORDS = [
34+
"subscription",
35+
"renewal",
36+
"trial",
37+
"billing",
38+
"invoice",
39+
"payment",
40+
"receipt",
41+
"charged",
42+
];
43+
44+
module.exports = {
45+
SubscriptionCategory,
46+
BillingCycle,
47+
SubscriptionStatus,
48+
GMAIL_SUBSCRIPTION_KEYWORDS,
49+
};

0 commit comments

Comments
 (0)