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