@zyacreatives/shared 2.1.35 → 2.1.37
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/constants.d.ts +1 -0
- package/dist/constants.js +1 -0
- package/dist/schemas/notification.d.ts +4 -0
- package/package.json +1 -1
- package/src/constants.ts +329 -328
package/dist/constants.d.ts
CHANGED
|
@@ -216,6 +216,7 @@ export declare const NOTIFICATION_TYPES: {
|
|
|
216
216
|
readonly COMMENT: "Comment";
|
|
217
217
|
readonly REPLY: "Reply";
|
|
218
218
|
readonly MESSAGE: "Message";
|
|
219
|
+
readonly BOOKMARK: "Bookmark";
|
|
219
220
|
readonly JOB_APPLICATION: "Job Application";
|
|
220
221
|
readonly APPLICATION_STATUS_CHANGE: "Application Status Change";
|
|
221
222
|
readonly SYSTEM_STRIKE: "System Strike";
|
package/dist/constants.js
CHANGED
|
@@ -218,6 +218,7 @@ exports.NOTIFICATION_TYPES = {
|
|
|
218
218
|
COMMENT: "Comment",
|
|
219
219
|
REPLY: "Reply",
|
|
220
220
|
MESSAGE: "Message",
|
|
221
|
+
BOOKMARK: "Bookmark",
|
|
221
222
|
JOB_APPLICATION: "Job Application",
|
|
222
223
|
APPLICATION_STATUS_CHANGE: "Application Status Change",
|
|
223
224
|
SYSTEM_STRIKE: "System Strike",
|
|
@@ -9,6 +9,7 @@ export declare const NotificationEntitySchema: z.ZodObject<{
|
|
|
9
9
|
readonly COMMENT: "Comment";
|
|
10
10
|
readonly REPLY: "Reply";
|
|
11
11
|
readonly MESSAGE: "Message";
|
|
12
|
+
readonly BOOKMARK: "Bookmark";
|
|
12
13
|
readonly JOB_APPLICATION: "Job Application";
|
|
13
14
|
readonly APPLICATION_STATUS_CHANGE: "Application Status Change";
|
|
14
15
|
readonly SYSTEM_STRIKE: "System Strike";
|
|
@@ -42,6 +43,7 @@ export declare const NotificationDetailsEntitySchema: z.ZodObject<{
|
|
|
42
43
|
readonly COMMENT: "Comment";
|
|
43
44
|
readonly REPLY: "Reply";
|
|
44
45
|
readonly MESSAGE: "Message";
|
|
46
|
+
readonly BOOKMARK: "Bookmark";
|
|
45
47
|
readonly JOB_APPLICATION: "Job Application";
|
|
46
48
|
readonly APPLICATION_STATUS_CHANGE: "Application Status Change";
|
|
47
49
|
readonly SYSTEM_STRIKE: "System Strike";
|
|
@@ -71,6 +73,7 @@ export declare const ListNotificationsInputSchema: z.ZodObject<{
|
|
|
71
73
|
readonly COMMENT: "Comment";
|
|
72
74
|
readonly REPLY: "Reply";
|
|
73
75
|
readonly MESSAGE: "Message";
|
|
76
|
+
readonly BOOKMARK: "Bookmark";
|
|
74
77
|
readonly JOB_APPLICATION: "Job Application";
|
|
75
78
|
readonly APPLICATION_STATUS_CHANGE: "Application Status Change";
|
|
76
79
|
readonly SYSTEM_STRIKE: "System Strike";
|
|
@@ -90,6 +93,7 @@ export declare const ListNotificationsOutputSchema: z.ZodObject<{
|
|
|
90
93
|
readonly COMMENT: "Comment";
|
|
91
94
|
readonly REPLY: "Reply";
|
|
92
95
|
readonly MESSAGE: "Message";
|
|
96
|
+
readonly BOOKMARK: "Bookmark";
|
|
93
97
|
readonly JOB_APPLICATION: "Job Application";
|
|
94
98
|
readonly APPLICATION_STATUS_CHANGE: "Application Status Change";
|
|
95
99
|
readonly SYSTEM_STRIKE: "System Strike";
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED
|
@@ -1,447 +1,448 @@
|
|
|
1
1
|
export const ROLES = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
CREATIVE: "CREATIVE",
|
|
3
|
+
BRAND: "BRAND",
|
|
4
|
+
INVESTOR: "INVESTOR",
|
|
5
|
+
ADMIN: "ADMIN",
|
|
6
6
|
} as const;
|
|
7
7
|
|
|
8
8
|
export const USER_STATUSES = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ACTIVE: "ACTIVE",
|
|
10
|
+
SUSPENDED: "SUSPENDED",
|
|
11
|
+
DELETED: "DELETED",
|
|
12
12
|
} as const;
|
|
13
13
|
|
|
14
14
|
export const CLIENT_TYPES = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
CREATIVE: "CREATIVE",
|
|
16
|
+
BRAND: "BRAND",
|
|
17
|
+
NONE: "NONE",
|
|
18
18
|
} as const;
|
|
19
19
|
|
|
20
20
|
export const EXPERIENCE_LEVELS = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
YEAR_0_1: "0-1 year",
|
|
22
|
+
YEAR_1_3: "1-3 years",
|
|
23
|
+
YEAR_3_5: "3-5 years",
|
|
24
|
+
YEAR_5_PLUS: "5+ years",
|
|
25
25
|
} as const;
|
|
26
26
|
|
|
27
27
|
export const ONBOARDING_PAGES = {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
EMAIL_VERIFICATION: "EMAIL_VERIFICATION",
|
|
29
|
+
USERNAME_SELECTION: "USERNAME_SELECTION",
|
|
30
|
+
ACCOUNT_TYPE_SELECTION: "ACCOUNT_TYPE_SELECTION",
|
|
31
|
+
CREATIVE_PROFILE_DETAILS: "CREATIVE_PROFILE_DETAILS",
|
|
32
|
+
BRAND_PROFILE_DETAILS: "BRAND_PROFILE_DETAILS",
|
|
33
|
+
INVESTOR_PROFILE_DETAILS: "INVESTOR_PROFILE_DETAILS",
|
|
34
|
+
INVESTOR_INVESTMENT_FOCUS: "INVESTOR_INVESTMENT_FOCUS",
|
|
35
|
+
INVESTOR_VERIFICATION: "INVESTOR_VERIFICATION",
|
|
36
|
+
DONE: "DONE",
|
|
37
37
|
} as const;
|
|
38
38
|
|
|
39
39
|
export const INVESTOR_TYPES = {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
40
|
+
ANGEL_INVESTOR: "Angel Investor",
|
|
41
|
+
VENTURE_CAPITALIST: "Venture Capitalist",
|
|
42
|
+
PRIVATE_EQUITY_FIRM: "Private Equity Firm",
|
|
43
|
+
VENTURE_DEBT_PROVIDER: "Venture Debt Provider",
|
|
44
|
+
BANK: "Bank",
|
|
45
|
+
CONVERTIBLE_NOTE_INVESTOR: "Convertible Note Investor",
|
|
46
|
+
REVENUE_BASED_FINANCING_INVESTOR: "Revenue Based Financing Investor",
|
|
47
|
+
CORPORATE_VENTURE_CAPITALIST: "Corporate Venture Capitalist",
|
|
48
|
+
GOVERNMENT: "Government",
|
|
49
|
+
SOCIAL_IMPACT_INVESTOR: "Social Impact Investor",
|
|
50
50
|
} as const;
|
|
51
51
|
|
|
52
52
|
export const INVESTMENT_SIZES = {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
UNDER_5K: "Under 5k USD",
|
|
54
|
+
BETWEEN_5K_25K: "5k - 25k USD",
|
|
55
|
+
BETWEEN_25K_100K: "25k - 100k USD",
|
|
56
|
+
BETWEEN_100K_500K: "100k - 500k USD",
|
|
57
|
+
BETWEEN_500K_1M: "500k - 1M USD",
|
|
58
|
+
OVER_1M: "1M+ USD",
|
|
59
59
|
} as const;
|
|
60
60
|
|
|
61
61
|
export const GEOGRAPHIC_FOCUS = {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
62
|
+
AFRICA: "Africa",
|
|
63
|
+
ASIA: "Asia",
|
|
64
|
+
EUROPE: "Europe",
|
|
65
|
+
NORTH_AMERICA: "North America",
|
|
66
|
+
SOUTH_AMERICA: "South America",
|
|
67
|
+
MIDDLE_EAST: "Middle East",
|
|
68
|
+
OCEANIA: "Oceania",
|
|
69
|
+
UK: "United Kingdom (UK)",
|
|
70
|
+
US: "United States (US)",
|
|
71
|
+
GLOBAL: "Global",
|
|
72
|
+
OTHER: "Other",
|
|
73
73
|
} as const;
|
|
74
74
|
|
|
75
75
|
export const INVESTOR_VERIFICATION_DOCUMENT_STATUSES = {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
PENDING: "PENDING",
|
|
77
|
+
APPROVED: "APPROVED",
|
|
78
|
+
REJECTED: "REJECTED",
|
|
79
79
|
} as const;
|
|
80
80
|
|
|
81
81
|
export const INVESTOR_VERIFICATION_DOCUMENT_TYPES = {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
ID_PROOF: "ID_PROOF",
|
|
83
|
+
BANK_STATEMENT: "BANK_STATEMENT",
|
|
84
|
+
TAX_DOCUMENT: "TAX_DOCUMENT",
|
|
85
|
+
BUSINESS_REGISTRATION: "BUSINESS_REGISTRATION",
|
|
86
|
+
OTHER_CERTIFICATE: "OTHER_CERTIFICATE",
|
|
87
87
|
} as const;
|
|
88
88
|
|
|
89
89
|
export const ACTIVITY_PARENT_TYPES = {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
90
|
+
PROJECT: "PROJECT",
|
|
91
|
+
USER: "USER",
|
|
92
|
+
JOB: "JOB",
|
|
93
|
+
POST: "POST",
|
|
94
|
+
COMMENT: "COMMENT",
|
|
95
|
+
JOB_APPLICATION: "JOB_APPLICATION",
|
|
96
96
|
} as const;
|
|
97
97
|
|
|
98
98
|
export const POST_TYPES = {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
99
|
+
MARKETPLACE: "MARKETPLACE",
|
|
100
|
+
PROJECT: "PROJECT",
|
|
101
|
+
JOB_OPENING: "JOB_OPENING",
|
|
102
|
+
DEFAULT_POST: "DEFAULT_POST",
|
|
103
|
+
POST_WITH_LINKS: "POST_WITH_LINKS",
|
|
104
|
+
POST_WITH_MEDIA: "POST_WITH_MEDIA",
|
|
105
|
+
POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS",
|
|
106
106
|
} as const;
|
|
107
107
|
|
|
108
108
|
export const JOB_TYPE = {
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
GIG: "GIG",
|
|
110
|
+
ROLE: "ROLE",
|
|
111
111
|
} as const;
|
|
112
112
|
|
|
113
113
|
export const WORK_MODE = {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
REMOTE: "Remote",
|
|
115
|
+
HYBRID: "Hybrid",
|
|
116
|
+
ON_SITE: "On Site",
|
|
117
117
|
} as const;
|
|
118
118
|
export const EMPLOYMENT_TYPE = {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
FULL_TIME: "Full Time",
|
|
120
|
+
PART_TIME: "Part Time",
|
|
121
|
+
FREELANCE: "Freelance",
|
|
122
|
+
INTERNSHIP: "Internship",
|
|
123
123
|
} as const;
|
|
124
124
|
|
|
125
125
|
export const JOB_AVAILABILITY_TYPES = {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
126
|
+
IMMEDIATE: "Immediate (Within 1 week)",
|
|
127
|
+
TWO_WEEKS_NOTICE: "2 weeks notice",
|
|
128
|
+
ONE_MONTH_NOTICE: "1 month notice",
|
|
129
|
+
FLEXIBLE: "Flexible",
|
|
130
130
|
} as const;
|
|
131
131
|
|
|
132
132
|
export const WAGE_TYPES = {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
133
|
+
HOURLY: "Hourly",
|
|
134
|
+
DAILY: "Daily",
|
|
135
|
+
WEEKLY: "Weekly",
|
|
136
|
+
MONTHLY: "Monthly",
|
|
137
|
+
PROJECT_BASED: "Project Based",
|
|
138
138
|
} as const;
|
|
139
139
|
|
|
140
140
|
export const JOB_SECTIONS = {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
141
|
+
PERSONAL_INFORMATION: "PERSONAL_INFORMATION",
|
|
142
|
+
PHONE_NO: "PHONE_NO",
|
|
143
|
+
PROFESSIONAL_INFORMATION: "PROFESSIONAL_INFORMATION",
|
|
144
|
+
RESUME: "RESUME",
|
|
145
|
+
COVER_LETTER: "COVER_LETTER",
|
|
146
|
+
PORTFOLIO_OR_WORK_SAMPLES: "PORTFOLIO_OR_WORK_SAMPLES",
|
|
147
|
+
AVAILABILITY: "AVAILABILITY",
|
|
148
|
+
WAGES: "WAGES",
|
|
149
149
|
} as const;
|
|
150
150
|
|
|
151
151
|
export const JOB_LOCATIONS = {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
152
|
+
AFRICA: "Africa",
|
|
153
|
+
REMOTE: "Remote",
|
|
154
|
+
EUROPE: "Europe",
|
|
155
|
+
ASIA: "Asia",
|
|
156
|
+
NORTH_AMERICA: "North America",
|
|
157
|
+
SOUTH_AMERICA: "South America",
|
|
158
|
+
MIDDLE_EAST: "Middle East",
|
|
159
|
+
OCEANIA: "Oceania",
|
|
160
|
+
EMEA: "EMEA", // Europe, Middle East, Africa
|
|
161
|
+
ASIA_PACIFIC: "Asia Pacific", // Asia Pacific
|
|
162
|
+
GLOBAL: "Global",
|
|
163
|
+
OTHER: "Other",
|
|
164
164
|
} as const;
|
|
165
165
|
|
|
166
166
|
export const MESSAGE_TYPES = {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
167
|
+
MARKETPLACE: "MARKETPLACE",
|
|
168
|
+
PROJECT: "PROJECT",
|
|
169
|
+
JOB_OPENING: "JOB_OPENING",
|
|
170
|
+
DEFAULT_MESSAGE: "DEFAULT_MESSAGE",
|
|
171
|
+
MESSAGE_WITH_LINKS: "MESSAGE_WITH_LINKS",
|
|
172
|
+
MESSAGE_WITH_MEDIA: "MESSAGE_WITH_MEDIA",
|
|
173
|
+
MESSAGE_WITH_MEDIA_AND_LINKS: "MESSAGE_WITH_MEDIA_AND_LINKS",
|
|
174
174
|
} as const;
|
|
175
175
|
|
|
176
176
|
export type JobLocation = (typeof JOB_LOCATIONS)[keyof typeof JOB_LOCATIONS];
|
|
177
177
|
|
|
178
178
|
export const GIG_TYPE = {
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
ONE_TIME: "One Time",
|
|
180
|
+
RECURRING: "Recurring",
|
|
181
181
|
} as const;
|
|
182
182
|
|
|
183
183
|
export const WAGES_CURRENCY = {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
184
|
+
USD: "USD (United States Dollar)",
|
|
185
|
+
EUR: "EUR (Euro)",
|
|
186
|
+
GBP: "GBP (British Pound Sterling)",
|
|
187
|
+
NGN: "NGN (Nigerian Naira)",
|
|
188
|
+
CAD: "CAD (Canadian Dollar)",
|
|
189
|
+
AUD: "AUD (Australian Dollar)",
|
|
190
|
+
JPY: "JPY (Japanese Yen)",
|
|
191
|
+
CHF: "CHF (Swiss Franc)",
|
|
192
|
+
INR: "INR (Indian Rupee)",
|
|
193
|
+
ZAR: "ZAR (South African Rand)",
|
|
194
194
|
} as const;
|
|
195
195
|
|
|
196
196
|
export const JOB_STATUS = {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
197
|
+
ACTIVE: "ACTIVE",
|
|
198
|
+
DRAFT: "DRAFT",
|
|
199
|
+
ARCHIVED: "ARCHIVED",
|
|
200
|
+
DELETED: "DELETED",
|
|
201
201
|
} as const;
|
|
202
202
|
|
|
203
203
|
export const POST_BADGE_TYPES = {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
204
|
+
NETWORKING: "Networking",
|
|
205
|
+
FUNDING: "Funding",
|
|
206
|
+
COLLABORATION: "Collaboration",
|
|
207
|
+
OPPORTUNITIES: "Opportunities",
|
|
208
|
+
SHOWCASE: "Showcase",
|
|
209
|
+
LEARNING: "Learning",
|
|
210
|
+
DISCUSSION: "Discussion",
|
|
211
|
+
MENTORSHIP: "Mentorship",
|
|
212
212
|
} as const;
|
|
213
213
|
|
|
214
214
|
export const ACTIVITY_TYPES = {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
215
|
+
LIKE: "LIKE",
|
|
216
|
+
UNLIKE: "UNLIKE",
|
|
217
|
+
BOOKMARK: "BOOKMARK",
|
|
218
|
+
UNBOOKMARK: "UNBOOKMARK",
|
|
219
|
+
VIEW: "VIEW",
|
|
220
220
|
} as const;
|
|
221
221
|
|
|
222
222
|
export const LINK_TYPES = {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
223
|
+
INSTAGRAM: "Instagram",
|
|
224
|
+
LINKEDIN: "LinkedIn",
|
|
225
|
+
TWITTER: "Twitter",
|
|
226
|
+
YOUTUBE: "Youtube",
|
|
227
|
+
PORTFOLIO: "Portfolio Website",
|
|
228
|
+
GENERIC_WEBSITE: "Generic Website",
|
|
229
229
|
} as const;
|
|
230
230
|
|
|
231
231
|
export const APPLICATION_STATUS = {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
232
|
+
SENT: "Application Sent",
|
|
233
|
+
OPENED: "Opened",
|
|
234
|
+
REJECTED: "Rejected",
|
|
235
|
+
DECLINED: "Declined",
|
|
236
|
+
OFFERED: "Offered",
|
|
237
|
+
HIRED: "Hired",
|
|
238
238
|
} as const;
|
|
239
239
|
|
|
240
240
|
export const NOTIFICATION_TYPES = {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
241
|
+
FOLLOW: "Follow",
|
|
242
|
+
LIKE: "Like",
|
|
243
|
+
COMMENT: "Comment",
|
|
244
|
+
REPLY: "Reply",
|
|
245
|
+
MESSAGE: "Message",
|
|
246
|
+
BOOKMARK: "Bookmark",
|
|
247
|
+
JOB_APPLICATION: "Job Application",
|
|
248
|
+
APPLICATION_STATUS_CHANGE: "Application Status Change",
|
|
249
|
+
SYSTEM_STRIKE: "System Strike",
|
|
250
|
+
PROJECT_FEATURED: "Project Featured",
|
|
250
251
|
} as const;
|
|
251
252
|
|
|
252
253
|
export type NotificationType =
|
|
253
|
-
|
|
254
|
+
(typeof NOTIFICATION_TYPES)[keyof typeof NOTIFICATION_TYPES];
|
|
254
255
|
|
|
255
256
|
export type ApplicationStatus =
|
|
256
|
-
|
|
257
|
+
(typeof APPLICATION_STATUS)[keyof typeof APPLICATION_STATUS];
|
|
257
258
|
export type ActivityType = (typeof ACTIVITY_TYPES)[keyof typeof ACTIVITY_TYPES];
|
|
258
259
|
export type PostBadgeType =
|
|
259
|
-
|
|
260
|
+
(typeof POST_BADGE_TYPES)[keyof typeof POST_BADGE_TYPES];
|
|
260
261
|
export type JobSections = (typeof JOB_SECTIONS)[keyof typeof JOB_SECTIONS];
|
|
261
262
|
export type WagesCurrency =
|
|
262
|
-
|
|
263
|
+
(typeof WAGES_CURRENCY)[keyof typeof WAGES_CURRENCY];
|
|
263
264
|
export type JobStatus = (typeof JOB_STATUS)[keyof typeof JOB_STATUS];
|
|
264
265
|
export type Role = (typeof ROLES)[keyof typeof ROLES];
|
|
265
266
|
export type JobType = (typeof JOB_TYPE)[keyof typeof JOB_TYPE];
|
|
266
267
|
export type WorkMode = (typeof WORK_MODE)[keyof typeof WORK_MODE];
|
|
267
268
|
export type GigType = (typeof GIG_TYPE)[keyof typeof GIG_TYPE];
|
|
268
269
|
export type EmploymentType =
|
|
269
|
-
|
|
270
|
+
(typeof EMPLOYMENT_TYPE)[keyof typeof EMPLOYMENT_TYPE];
|
|
270
271
|
export type JobAvailabilityTypes =
|
|
271
|
-
|
|
272
|
+
(typeof JOB_AVAILABILITY_TYPES)[keyof typeof JOB_AVAILABILITY_TYPES];
|
|
272
273
|
export type WageTypes = (typeof WAGE_TYPES)[keyof typeof WAGE_TYPES];
|
|
273
274
|
export type PostType = (typeof POST_TYPES)[keyof typeof POST_TYPES];
|
|
274
275
|
export type MessageType = (typeof MESSAGE_TYPES)[keyof typeof MESSAGE_TYPES];
|
|
275
276
|
export type LinkType = (typeof LINK_TYPES)[keyof typeof LINK_TYPES];
|
|
276
277
|
export type ActivityParentType =
|
|
277
|
-
|
|
278
|
+
(typeof ACTIVITY_PARENT_TYPES)[keyof typeof ACTIVITY_PARENT_TYPES];
|
|
278
279
|
export type UserStatus = (typeof USER_STATUSES)[keyof typeof USER_STATUSES];
|
|
279
280
|
export type ClientType = (typeof CLIENT_TYPES)[keyof typeof CLIENT_TYPES];
|
|
280
281
|
export type ExperienceLevel =
|
|
281
|
-
|
|
282
|
+
(typeof EXPERIENCE_LEVELS)[keyof typeof EXPERIENCE_LEVELS];
|
|
282
283
|
export type OnboardingPage =
|
|
283
|
-
|
|
284
|
+
(typeof ONBOARDING_PAGES)[keyof typeof ONBOARDING_PAGES];
|
|
284
285
|
export type InvestorType = (typeof INVESTOR_TYPES)[keyof typeof INVESTOR_TYPES];
|
|
285
286
|
export type InvestmentSize =
|
|
286
|
-
|
|
287
|
+
(typeof INVESTMENT_SIZES)[keyof typeof INVESTMENT_SIZES];
|
|
287
288
|
export type GeographicFocus =
|
|
288
|
-
|
|
289
|
+
(typeof GEOGRAPHIC_FOCUS)[keyof typeof GEOGRAPHIC_FOCUS];
|
|
289
290
|
export type InvestorVerificationDocumentStatus =
|
|
290
|
-
|
|
291
|
+
(typeof INVESTOR_VERIFICATION_DOCUMENT_STATUSES)[keyof typeof INVESTOR_VERIFICATION_DOCUMENT_STATUSES];
|
|
291
292
|
export type InvestorVerificationDocumentType =
|
|
292
|
-
|
|
293
|
+
(typeof INVESTOR_VERIFICATION_DOCUMENT_TYPES)[keyof typeof INVESTOR_VERIFICATION_DOCUMENT_TYPES];
|
|
293
294
|
|
|
294
295
|
export const API_ROUTES = {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
296
|
+
healthCheck: "/health",
|
|
297
|
+
username: {
|
|
298
|
+
base: "/usernames",
|
|
299
|
+
checkAvailability: "/:username/availability",
|
|
300
|
+
},
|
|
301
|
+
personal: {
|
|
302
|
+
base: "/me",
|
|
303
|
+
getUser: "",
|
|
304
|
+
getProfile: "/profile",
|
|
305
|
+
getProjects: "/projects",
|
|
306
|
+
getProjectBookmarks: "/project-bookmarks",
|
|
307
|
+
getFollowers: "/followers",
|
|
308
|
+
getFollowing: "/following",
|
|
309
|
+
},
|
|
310
|
+
user: {
|
|
311
|
+
base: "/users",
|
|
312
|
+
getUser: "/:value",
|
|
313
|
+
getProfile: "/:value/profile",
|
|
314
|
+
getProjects: "/:value/projects",
|
|
315
|
+
getFollowers: "/:userId/followers",
|
|
316
|
+
getFollowing: "/:userId/following",
|
|
317
|
+
followUser: "/:userId/follow",
|
|
318
|
+
unfollowUser: "/:userId/unfollow",
|
|
319
|
+
reserveUsername: "/reserve-username",
|
|
320
|
+
},
|
|
321
|
+
redirect: {
|
|
322
|
+
base: "/redirect",
|
|
323
|
+
passwordReset: "/password-reset",
|
|
324
|
+
verifiedUser: "/verified-user",
|
|
325
|
+
googleProfile: "/google-profile",
|
|
326
|
+
newGoogleProfile: "/new-google-profile",
|
|
327
|
+
},
|
|
328
|
+
file: {
|
|
329
|
+
base: "/files",
|
|
330
|
+
getPresignedUploadUrl: "/get-upload-url",
|
|
331
|
+
getPresignedDownloadUrl: "/:fileId/download-url",
|
|
332
|
+
getPublicUrl: "/:fileId/public-url",
|
|
333
|
+
createFile: "",
|
|
334
|
+
deleteFile: "/:fileId",
|
|
335
|
+
},
|
|
336
|
+
disciplines: {
|
|
337
|
+
base: "/disciplines",
|
|
338
|
+
getDisciplines: "",
|
|
339
|
+
getSingleDiscipline: "/:slug",
|
|
340
|
+
addDisciplines: "",
|
|
341
|
+
deleteDiscipline: "/:slug",
|
|
342
|
+
},
|
|
343
|
+
creatives: {
|
|
344
|
+
base: "/creatives",
|
|
345
|
+
createCreative: "",
|
|
346
|
+
getCreative: "/:value",
|
|
347
|
+
updateCreative: "",
|
|
348
|
+
},
|
|
349
|
+
brands: {
|
|
350
|
+
base: "/brands",
|
|
351
|
+
createBrand: "",
|
|
352
|
+
getBrand: "/:value",
|
|
353
|
+
updateBrand: "",
|
|
354
|
+
},
|
|
355
|
+
investors: {
|
|
356
|
+
base: "/investors",
|
|
357
|
+
createInvestor: "",
|
|
358
|
+
getInvestor: "/:value",
|
|
359
|
+
updateInvestor: "",
|
|
360
|
+
},
|
|
361
|
+
projects: {
|
|
362
|
+
base: "/projects",
|
|
363
|
+
createProject: "",
|
|
364
|
+
updateProject: "",
|
|
365
|
+
listProjects: "",
|
|
366
|
+
getProject: "/:projectId",
|
|
367
|
+
deleteProject: "/:projectId",
|
|
368
|
+
commentOnProject: "/:projectId/comment",
|
|
369
|
+
deleteCommentOnProject: "/:projectId/comments/:commentId",
|
|
370
|
+
bookmarkProject: "/:projectId/bookmark",
|
|
371
|
+
unbookmarkProject: "/:projectId/unbookmark",
|
|
372
|
+
likeProject: "/:projectId/like",
|
|
373
|
+
unlikeProject: "/:projectId/unlike",
|
|
374
|
+
viewProject: "/:projectId/view",
|
|
375
|
+
getProjectComments: "/:projectId/comments",
|
|
376
|
+
getProjectLikes: "/:projectId/likes",
|
|
377
|
+
getProjectBookmarks: "/:projectId/bookmarks",
|
|
378
|
+
getProjectViews: "/:projectId/views",
|
|
379
|
+
getProjectUser: "/:projectId/user",
|
|
380
|
+
},
|
|
380
381
|
} as const;
|
|
381
382
|
|
|
382
383
|
export const DEFAULT_DISCIPLINES = [
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
384
|
+
{ name: "3D Art", slug: "3d_art" },
|
|
385
|
+
{ name: "Advertising & Marketing", slug: "advertising_marketing" },
|
|
386
|
+
{ name: "AI & Machine Learning Art", slug: "ai_machine_learning_art" },
|
|
387
|
+
{ name: "Animation & Motion", slug: "animation_motion" },
|
|
388
|
+
{ name: "Architecture & Interior", slug: "architecture_interior" },
|
|
389
|
+
{ name: "Art Business", slug: "art_business" },
|
|
390
|
+
{ name: "Art Challenges & Community", slug: "art_challenges_community" },
|
|
391
|
+
{ name: "Art Education", slug: "art_education" },
|
|
392
|
+
{ name: "Book & Editorial Design", slug: "book_editorial_design" },
|
|
393
|
+
{ name: "Brand Strategy", slug: "brand_strategy" },
|
|
394
|
+
{ name: "Business & Consulting", slug: "business_consulting" },
|
|
395
|
+
{ name: "Calligraphy & Penmanship", slug: "calligraphy_penmanship" },
|
|
396
|
+
{
|
|
397
|
+
name: "Character Rigging & Animation Setup",
|
|
398
|
+
slug: "character_rigging_setup",
|
|
399
|
+
},
|
|
400
|
+
{ name: "Comics & Webtoons", slug: "comics_webtoons" },
|
|
401
|
+
{ name: "Concept Art", slug: "concept_art" },
|
|
402
|
+
{ name: "Content Creation", slug: "content_creation" },
|
|
403
|
+
{
|
|
404
|
+
name: "Copywriting & Content Writing",
|
|
405
|
+
slug: "copywriting_content_writing",
|
|
406
|
+
},
|
|
407
|
+
{ name: "Crafts & DIY", slug: "crafts_diy" },
|
|
408
|
+
{ name: "Creative Coding", slug: "creative_coding" },
|
|
409
|
+
{ name: "Data Science & Analysis", slug: "data_science_analysis" },
|
|
410
|
+
{ name: "Data Visualization", slug: "data_visualization" },
|
|
411
|
+
{ name: "Digital Art", slug: "digital_art" },
|
|
412
|
+
{
|
|
413
|
+
name: "Digital Painting & Matte Painting",
|
|
414
|
+
slug: "digital_painting_matte",
|
|
415
|
+
},
|
|
416
|
+
{ name: "E-commerce & Store Design", slug: "ecommerce_store_design" },
|
|
417
|
+
{ name: "Fashion & Style", slug: "fashion_style" },
|
|
418
|
+
{ name: "Food Content", slug: "food_content" },
|
|
419
|
+
{ name: "Game Development", slug: "game_development" },
|
|
420
|
+
{ name: "Graphic Design", slug: "graphic_design" },
|
|
421
|
+
{ name: "Illustration", slug: "illustration" },
|
|
422
|
+
{ name: "Lettering & Typography", slug: "lettering_typography" },
|
|
423
|
+
{ name: "Miniature & Model Making", slug: "miniature_model_making" },
|
|
424
|
+
{ name: "Music Performance", slug: "music_performance" },
|
|
425
|
+
{ name: "Music Production", slug: "music_production" },
|
|
426
|
+
{ name: "Photography", slug: "photography" },
|
|
427
|
+
{ name: "Pixel Art", slug: "pixel_art" },
|
|
428
|
+
{
|
|
429
|
+
name: "Product Strategy & Management",
|
|
430
|
+
slug: "product_strategy_management",
|
|
431
|
+
},
|
|
432
|
+
{ name: "Sculpture & 3D Crafts", slug: "sculpture_3d_crafts" },
|
|
433
|
+
{ name: "Sound Design & Audio", slug: "sound_design_audio" },
|
|
434
|
+
{ name: "Storyboarding & Pre-Vis", slug: "storyboarding_previs" },
|
|
435
|
+
{ name: "Street Art & Murals", slug: "street_art_murals" },
|
|
436
|
+
{ name: "Tattoo Art", slug: "tattoo_art" },
|
|
437
|
+
{ name: "Technical Illustration", slug: "technical_illustration" },
|
|
438
|
+
{ name: "Technical Writing", slug: "technical_writing" },
|
|
439
|
+
{ name: "Traditional Art", slug: "traditional_art" },
|
|
440
|
+
{ name: "Translation & Localization", slug: "translation_localization" },
|
|
441
|
+
{ name: "UI/UX Design", slug: "ui_ux_design" },
|
|
442
|
+
{ name: "Video Content", slug: "video_content" },
|
|
443
|
+
{ name: "Virtual/Augmented Reality", slug: "virtual_augmented_reality" },
|
|
444
|
+
{ name: "Visual Effects (VFX)", slug: "visual_effects_vfx" },
|
|
445
|
+
{ name: "Web Development (Back-End)", slug: "web_development_backend" },
|
|
446
|
+
{ name: "Web Development (Front-End)", slug: "web_development_frontend" },
|
|
447
|
+
{ name: "Writing & Storytelling", slug: "writing_storytelling" },
|
|
447
448
|
];
|