● Zion Boggan
repos/Stepping App/packages/types/src/index.ts
zionboggan.com ↗
59 lines · typescript
History for this file →
1
 
2
export const CONTENT_STATUS = ["active", "pending", "hidden", "removed"] as const;
3
export type ContentStatus = (typeof CONTENT_STATUS)[number];
4
 
5
export const USER_ROLE = ["member", "moderator", "admin"] as const;
6
export type UserRole = (typeof USER_ROLE)[number];
7
 
8
export const EVENT_TYPE = [
9
  "set",
10
  "weekender",
11
  "class",
12
  "workshop",
13
  "competition",
14
  "special",
15
  "social",
16
] as const;
17
export type EventType = (typeof EVENT_TYPE)[number];
18
 
19
export const VIDEO_PLATFORM = ["youtube", "instagram", "tiktok", "other"] as const;
20
export type VideoPlatform = (typeof VIDEO_PLATFORM)[number];
21
 
22
export const SUBJECT_TYPE = [
23
  "event",
24
  "video",
25
  "promoter",
26
  "dj",
27
  "stepping_group",
28
  "class",
29
] as const;
30
export type SubjectType = (typeof SUBJECT_TYPE)[number];
31
 
32
export const TRAVEL_CATEGORY = [
33
  "event_center",
34
  "hotel",
35
  "restaurant",
36
  "mall",
37
  "attraction",
38
  "entertainment",
39
  "hospital",
40
] as const;
41
export type TravelCategory = (typeof TRAVEL_CATEGORY)[number];
42
 
43
export const FLAG_STATUS = ["open", "reviewed", "actioned", "dismissed"] as const;
44
export type FlagStatus = (typeof FLAG_STATUS)[number];
45
 
46
export const ORDER_PURPOSE = ["ticket", "boost", "pro", "sponsor"] as const;
47
export type OrderPurpose = (typeof ORDER_PURPOSE)[number];
48
 
49
export const ORDER_STATUS = ["reserved", "paid", "refunded", "cancelled"] as const;
50
export type OrderStatus = (typeof ORDER_STATUS)[number];
51
 
52
export const TICKET_STATUS = ["valid", "used", "void"] as const;
53
export type TicketStatus = (typeof TICKET_STATUS)[number];
54
 
55
export const PRO_STATUS = ["pending", "active", "expired", "cancelled"] as const;
56
export type ProStatus = (typeof PRO_STATUS)[number];
57
 
58
export const SPONSOR_STATUS = ["pending", "active", "ended"] as const;
59
export type SponsorStatus = (typeof SPONSOR_STATUS)[number];