@zyacreatives/shared 2.5.68 → 2.5.70
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/schemas/job-application.d.ts +501 -305
- package/dist/schemas/job-application.js +65 -24
- package/dist/schemas/job.d.ts +1214 -625
- package/dist/schemas/job.js +59 -46
- package/dist/schemas/project.d.ts +2 -2
- package/dist/schemas/project.js +2 -2
- package/dist/schemas/user.d.ts +56 -9
- package/package.json +1 -1
- package/src/schemas/job-application.ts +103 -41
- package/src/schemas/job.ts +88 -86
- package/src/schemas/project.ts +2 -2
|
@@ -4,7 +4,7 @@ import { z } from "@hono/zod-openapi";
|
|
|
4
4
|
* SHAPE
|
|
5
5
|
* --------------------------------
|
|
6
6
|
*/
|
|
7
|
-
declare const JobApplicationShape: z.ZodObject<{
|
|
7
|
+
export declare const JobApplicationShape: z.ZodObject<{
|
|
8
8
|
jobId: z.ZodCUID2;
|
|
9
9
|
firstName: z.ZodOptional<z.ZodString>;
|
|
10
10
|
lastName: z.ZodOptional<z.ZodString>;
|
|
@@ -13,16 +13,16 @@ declare const JobApplicationShape: z.ZodObject<{
|
|
|
13
13
|
currentRole: z.ZodString;
|
|
14
14
|
resumeUrl: z.ZodURL;
|
|
15
15
|
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
readonly YEAR_0_1: "0-1 year";
|
|
17
|
+
readonly YEAR_1_3: "1-3 years";
|
|
18
|
+
readonly YEAR_3_5: "3-5 years";
|
|
19
|
+
readonly YEAR_5_PLUS: "5+ years";
|
|
20
20
|
}>>;
|
|
21
21
|
availability: z.ZodOptional<z.ZodEnum<{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
readonly IMMEDIATE: "Immediate (Within 1 week)";
|
|
23
|
+
readonly TWO_WEEKS_NOTICE: "2 weeks notice";
|
|
24
|
+
readonly ONE_MONTH_NOTICE: "1 month notice";
|
|
25
|
+
readonly FLEXIBLE: "Flexible";
|
|
26
26
|
}>>;
|
|
27
27
|
coverLetter: z.ZodNullable<z.ZodString>;
|
|
28
28
|
receiveEmailUpdates: z.ZodBoolean;
|
|
@@ -36,7 +36,7 @@ declare const JobApplicationShape: z.ZodObject<{
|
|
|
36
36
|
projectName: z.ZodString;
|
|
37
37
|
projectImgUrl: z.ZodOptional<z.ZodURL>;
|
|
38
38
|
projectId: z.ZodCUID2;
|
|
39
|
-
tags: z.
|
|
39
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
40
40
|
}, z.core.$strip>>>;
|
|
41
41
|
linkUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
42
42
|
url: z.ZodURL;
|
|
@@ -44,6 +44,25 @@ declare const JobApplicationShape: z.ZodObject<{
|
|
|
44
44
|
}, z.core.$strip>>>;
|
|
45
45
|
}, z.core.$strip>;
|
|
46
46
|
export type JobApplicationShapeType = z.infer<typeof JobApplicationShape>;
|
|
47
|
+
/**
|
|
48
|
+
* --------------------------------
|
|
49
|
+
* RESPONSE / OFFER / STATUS TRACKING
|
|
50
|
+
* --------------------------------
|
|
51
|
+
*/
|
|
52
|
+
export declare const JobApplicationResponseSchema: z.ZodObject<{
|
|
53
|
+
brandResponseMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
meetingLink: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
55
|
+
offerAcceptedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
56
|
+
offerDeclinedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
57
|
+
hiredAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
58
|
+
rejectedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
59
|
+
lastStatusChangedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
60
|
+
lastStatusViewedByApplicantAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
61
|
+
lastStatusViewedByBrandAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
62
|
+
lastUpdatedByUserId: z.ZodOptional<z.ZodNullable<z.ZodCUID2>>;
|
|
63
|
+
hasUnreadStatusUpdate: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export type JobApplicationResponse = z.infer<typeof JobApplicationResponseSchema>;
|
|
47
66
|
/**
|
|
48
67
|
* --------------------------------
|
|
49
68
|
* BASE ENTITY
|
|
@@ -51,15 +70,26 @@ export type JobApplicationShapeType = z.infer<typeof JobApplicationShape>;
|
|
|
51
70
|
*/
|
|
52
71
|
export declare const JobApplicationEntitySchema: z.ZodObject<{
|
|
53
72
|
applicationStatus: z.ZodEnum<{
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
73
|
+
readonly SENT: "Application Sent";
|
|
74
|
+
readonly OPENED: "Opened";
|
|
75
|
+
readonly REJECTED: "Rejected";
|
|
76
|
+
readonly DECLINED: "Declined";
|
|
77
|
+
readonly OFFERED: "Offered";
|
|
78
|
+
readonly HIRED: "Hired";
|
|
60
79
|
}>;
|
|
61
80
|
createdAt: z.ZodISODateTime;
|
|
62
81
|
updatedAt: z.ZodISODateTime;
|
|
82
|
+
brandResponseMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
meetingLink: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
84
|
+
offerAcceptedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
85
|
+
offerDeclinedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
86
|
+
hiredAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
87
|
+
rejectedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
88
|
+
lastStatusChangedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
89
|
+
lastStatusViewedByApplicantAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
90
|
+
lastStatusViewedByBrandAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
91
|
+
lastUpdatedByUserId: z.ZodOptional<z.ZodNullable<z.ZodCUID2>>;
|
|
92
|
+
hasUnreadStatusUpdate: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
63
93
|
jobId: z.ZodCUID2;
|
|
64
94
|
firstName: z.ZodOptional<z.ZodString>;
|
|
65
95
|
lastName: z.ZodOptional<z.ZodString>;
|
|
@@ -68,16 +98,16 @@ export declare const JobApplicationEntitySchema: z.ZodObject<{
|
|
|
68
98
|
currentRole: z.ZodString;
|
|
69
99
|
resumeUrl: z.ZodURL;
|
|
70
100
|
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
101
|
+
readonly YEAR_0_1: "0-1 year";
|
|
102
|
+
readonly YEAR_1_3: "1-3 years";
|
|
103
|
+
readonly YEAR_3_5: "3-5 years";
|
|
104
|
+
readonly YEAR_5_PLUS: "5+ years";
|
|
75
105
|
}>>;
|
|
76
106
|
availability: z.ZodOptional<z.ZodEnum<{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
107
|
+
readonly IMMEDIATE: "Immediate (Within 1 week)";
|
|
108
|
+
readonly TWO_WEEKS_NOTICE: "2 weeks notice";
|
|
109
|
+
readonly ONE_MONTH_NOTICE: "1 month notice";
|
|
110
|
+
readonly FLEXIBLE: "Flexible";
|
|
81
111
|
}>>;
|
|
82
112
|
coverLetter: z.ZodNullable<z.ZodString>;
|
|
83
113
|
receiveEmailUpdates: z.ZodBoolean;
|
|
@@ -91,7 +121,7 @@ export declare const JobApplicationEntitySchema: z.ZodObject<{
|
|
|
91
121
|
projectName: z.ZodString;
|
|
92
122
|
projectImgUrl: z.ZodOptional<z.ZodURL>;
|
|
93
123
|
projectId: z.ZodCUID2;
|
|
94
|
-
tags: z.
|
|
124
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
95
125
|
}, z.core.$strip>>>;
|
|
96
126
|
linkUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
97
127
|
url: z.ZodURL;
|
|
@@ -114,6 +144,69 @@ export declare const JobApplicationEntitySchema: z.ZodObject<{
|
|
|
114
144
|
}, z.core.$strip>;
|
|
115
145
|
}, z.core.$strip>;
|
|
116
146
|
export type JobApplicationEntity = z.infer<typeof JobApplicationEntitySchema>;
|
|
147
|
+
export declare const BaseJobApplicationEntitySchema: z.ZodObject<{
|
|
148
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
149
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
150
|
+
id: z.ZodCUID2;
|
|
151
|
+
createdAt: z.ZodISODateTime;
|
|
152
|
+
updatedAt: z.ZodISODateTime;
|
|
153
|
+
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
154
|
+
readonly YEAR_0_1: "0-1 year";
|
|
155
|
+
readonly YEAR_1_3: "1-3 years";
|
|
156
|
+
readonly YEAR_3_5: "3-5 years";
|
|
157
|
+
readonly YEAR_5_PLUS: "5+ years";
|
|
158
|
+
}>>;
|
|
159
|
+
jobId: z.ZodCUID2;
|
|
160
|
+
emailAddress: z.ZodOptional<z.ZodEmail>;
|
|
161
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
162
|
+
currentRole: z.ZodString;
|
|
163
|
+
resumeUrl: z.ZodURL;
|
|
164
|
+
availability: z.ZodOptional<z.ZodEnum<{
|
|
165
|
+
readonly IMMEDIATE: "Immediate (Within 1 week)";
|
|
166
|
+
readonly TWO_WEEKS_NOTICE: "2 weeks notice";
|
|
167
|
+
readonly ONE_MONTH_NOTICE: "1 month notice";
|
|
168
|
+
readonly FLEXIBLE: "Flexible";
|
|
169
|
+
}>>;
|
|
170
|
+
coverLetter: z.ZodNullable<z.ZodString>;
|
|
171
|
+
receiveEmailUpdates: z.ZodBoolean;
|
|
172
|
+
wagesAmount: z.ZodNullable<z.ZodNumber>;
|
|
173
|
+
workSampleUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
174
|
+
url: z.ZodURL;
|
|
175
|
+
name: z.ZodOptional<z.ZodString>;
|
|
176
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
177
|
+
}, z.core.$strip>>>;
|
|
178
|
+
zyaProjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
179
|
+
projectName: z.ZodString;
|
|
180
|
+
projectImgUrl: z.ZodOptional<z.ZodURL>;
|
|
181
|
+
projectId: z.ZodCUID2;
|
|
182
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
183
|
+
}, z.core.$strip>>>;
|
|
184
|
+
linkUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
185
|
+
url: z.ZodURL;
|
|
186
|
+
isPortfolioUrl: z.ZodOptional<z.ZodBoolean>;
|
|
187
|
+
}, z.core.$strip>>>;
|
|
188
|
+
brandResponseMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
189
|
+
meetingLink: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
190
|
+
offerAcceptedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
191
|
+
offerDeclinedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
192
|
+
hiredAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
193
|
+
rejectedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
194
|
+
lastStatusChangedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
195
|
+
lastStatusViewedByApplicantAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
196
|
+
lastStatusViewedByBrandAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
197
|
+
lastUpdatedByUserId: z.ZodOptional<z.ZodNullable<z.ZodCUID2>>;
|
|
198
|
+
hasUnreadStatusUpdate: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
199
|
+
applicantId: z.ZodCUID2;
|
|
200
|
+
applicationStatus: z.ZodEnum<{
|
|
201
|
+
readonly SENT: "Application Sent";
|
|
202
|
+
readonly OPENED: "Opened";
|
|
203
|
+
readonly REJECTED: "Rejected";
|
|
204
|
+
readonly DECLINED: "Declined";
|
|
205
|
+
readonly OFFERED: "Offered";
|
|
206
|
+
readonly HIRED: "Hired";
|
|
207
|
+
}>;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
export type BaseJobApplicationEntity = z.infer<typeof BaseJobApplicationEntitySchema>;
|
|
117
210
|
/**
|
|
118
211
|
* --------------------------------
|
|
119
212
|
* DERIVED ENTITIES
|
|
@@ -135,35 +228,48 @@ export declare const MinimalJobApplicationEntitySchema: z.ZodObject<{
|
|
|
135
228
|
ADMIN: "ADMIN";
|
|
136
229
|
}>;
|
|
137
230
|
}, z.core.$strip>;
|
|
138
|
-
coverLetter: z.ZodString
|
|
231
|
+
coverLetter: z.ZodNullable<z.ZodString>;
|
|
139
232
|
applicationStatus: z.ZodEnum<{
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
233
|
+
readonly SENT: "Application Sent";
|
|
234
|
+
readonly OPENED: "Opened";
|
|
235
|
+
readonly REJECTED: "Rejected";
|
|
236
|
+
readonly DECLINED: "Declined";
|
|
237
|
+
readonly OFFERED: "Offered";
|
|
238
|
+
readonly HIRED: "Hired";
|
|
146
239
|
}>;
|
|
240
|
+
brandResponseMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
|
+
meetingLink: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
242
|
+
offerAcceptedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
243
|
+
offerDeclinedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
244
|
+
lastStatusChangedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
245
|
+
hasUnreadStatusUpdate: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
147
246
|
createdAt: z.ZodISODateTime;
|
|
148
247
|
}, z.core.$strip>;
|
|
149
248
|
export type MinimalJobApplicationEntity = z.infer<typeof MinimalJobApplicationEntitySchema>;
|
|
150
249
|
export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
|
|
151
250
|
id: z.ZodCUID2;
|
|
152
251
|
applicationStatus: z.ZodEnum<{
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
252
|
+
readonly SENT: "Application Sent";
|
|
253
|
+
readonly OPENED: "Opened";
|
|
254
|
+
readonly REJECTED: "Rejected";
|
|
255
|
+
readonly DECLINED: "Declined";
|
|
256
|
+
readonly OFFERED: "Offered";
|
|
257
|
+
readonly HIRED: "Hired";
|
|
159
258
|
}>;
|
|
259
|
+
brandResponseMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
260
|
+
meetingLink: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
261
|
+
offerAcceptedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
262
|
+
offerDeclinedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
263
|
+
lastStatusChangedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
264
|
+
hasUnreadStatusUpdate: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
160
265
|
createdAt: z.ZodISODateTime;
|
|
266
|
+
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
161
267
|
job: z.ZodUnion<readonly [z.ZodObject<{
|
|
162
268
|
status: z.ZodEnum<{
|
|
163
|
-
ACTIVE: "ACTIVE";
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
269
|
+
readonly ACTIVE: "ACTIVE";
|
|
270
|
+
readonly DRAFT: "DRAFT";
|
|
271
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
272
|
+
readonly DELETED: "DELETED";
|
|
167
273
|
}>;
|
|
168
274
|
brandName: z.ZodString;
|
|
169
275
|
brandImgUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -172,29 +278,40 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
|
|
|
172
278
|
createdAt: z.ZodISODateTime;
|
|
173
279
|
updatedAt: z.ZodISODateTime;
|
|
174
280
|
version: z.ZodInt;
|
|
281
|
+
maxApplications: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
282
|
+
maxHires: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
283
|
+
applicationDeadline: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
284
|
+
autoArchiveWhenFilled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
175
285
|
title: z.ZodString;
|
|
176
286
|
brandId: z.ZodCUID2;
|
|
177
287
|
workMode: z.ZodEnum<{
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
288
|
+
readonly REMOTE: "Remote";
|
|
289
|
+
readonly HYBRID: "Hybrid";
|
|
290
|
+
readonly ON_SITE: "On Site";
|
|
181
291
|
}>;
|
|
182
292
|
location: z.ZodEnum<{
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
293
|
+
readonly AFRICA: "Africa";
|
|
294
|
+
readonly REMOTE: "Remote";
|
|
295
|
+
readonly EUROPE: "Europe";
|
|
296
|
+
readonly ASIA: "Asia";
|
|
297
|
+
readonly NORTH_AMERICA: "North America";
|
|
298
|
+
readonly SOUTH_AMERICA: "South America";
|
|
299
|
+
readonly MIDDLE_EAST: "Middle East";
|
|
300
|
+
readonly OCEANIA: "Oceania";
|
|
301
|
+
readonly EMEA: "EMEA";
|
|
302
|
+
readonly ASIA_PACIFIC: "Asia Pacific";
|
|
303
|
+
readonly GLOBAL: "Global";
|
|
304
|
+
readonly OTHER: "Other";
|
|
195
305
|
}>;
|
|
196
306
|
jobSections: z.ZodArray<z.ZodEnum<{
|
|
197
|
-
|
|
307
|
+
readonly PERSONAL_INFORMATION: "PERSONAL_INFORMATION";
|
|
308
|
+
readonly PHONE_NO: "PHONE_NO";
|
|
309
|
+
readonly PROFESSIONAL_INFORMATION: "PROFESSIONAL_INFORMATION";
|
|
310
|
+
readonly RESUME: "RESUME";
|
|
311
|
+
readonly COVER_LETTER: "COVER_LETTER";
|
|
312
|
+
readonly PORTFOLIO_OR_WORK_SAMPLES: "PORTFOLIO_OR_WORK_SAMPLES";
|
|
313
|
+
readonly AVAILABILITY: "AVAILABILITY";
|
|
314
|
+
readonly WAGES: "WAGES";
|
|
198
315
|
}>>;
|
|
199
316
|
id: z.ZodCUID2;
|
|
200
317
|
overview: z.ZodString;
|
|
@@ -205,41 +322,41 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
|
|
|
205
322
|
wagesMin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
206
323
|
wagesMax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
207
324
|
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
325
|
+
readonly USD: "USD (United States Dollar)";
|
|
326
|
+
readonly EUR: "EUR (Euro)";
|
|
327
|
+
readonly GBP: "GBP (British Pound Sterling)";
|
|
328
|
+
readonly NGN: "NGN (Nigerian Naira)";
|
|
329
|
+
readonly CAD: "CAD (Canadian Dollar)";
|
|
330
|
+
readonly AUD: "AUD (Australian Dollar)";
|
|
331
|
+
readonly JPY: "JPY (Japanese Yen)";
|
|
332
|
+
readonly CHF: "CHF (Swiss Franc)";
|
|
333
|
+
readonly INR: "INR (Indian Rupee)";
|
|
334
|
+
readonly ZAR: "ZAR (South African Rand)";
|
|
218
335
|
}>>;
|
|
219
336
|
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
337
|
+
readonly HOURLY: "Hourly";
|
|
338
|
+
readonly DAILY: "Daily";
|
|
339
|
+
readonly WEEKLY: "Weekly";
|
|
340
|
+
readonly MONTHLY: "Monthly";
|
|
341
|
+
readonly PROJECT_BASED: "Project Based";
|
|
225
342
|
}>>;
|
|
226
343
|
jobType: z.ZodLiteral<"GIG">;
|
|
227
344
|
gigType: z.ZodEnum<{
|
|
228
|
-
|
|
229
|
-
|
|
345
|
+
readonly ONE_TIME: "One Time";
|
|
346
|
+
readonly RECURRING: "Recurring";
|
|
230
347
|
}>;
|
|
231
348
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
349
|
+
readonly FULL_TIME: "Full Time";
|
|
350
|
+
readonly PART_TIME: "Part Time";
|
|
351
|
+
readonly FREELANCE: "Freelance";
|
|
352
|
+
readonly INTERNSHIP: "Internship";
|
|
236
353
|
}>>;
|
|
237
354
|
}, z.core.$strip>, z.ZodObject<{
|
|
238
355
|
status: z.ZodEnum<{
|
|
239
|
-
ACTIVE: "ACTIVE";
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
356
|
+
readonly ACTIVE: "ACTIVE";
|
|
357
|
+
readonly DRAFT: "DRAFT";
|
|
358
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
359
|
+
readonly DELETED: "DELETED";
|
|
243
360
|
}>;
|
|
244
361
|
brandName: z.ZodString;
|
|
245
362
|
brandImgUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -248,36 +365,47 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
|
|
|
248
365
|
createdAt: z.ZodISODateTime;
|
|
249
366
|
updatedAt: z.ZodISODateTime;
|
|
250
367
|
version: z.ZodInt;
|
|
368
|
+
maxApplications: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
369
|
+
maxHires: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
370
|
+
applicationDeadline: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
371
|
+
autoArchiveWhenFilled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
251
372
|
title: z.ZodString;
|
|
252
373
|
brandId: z.ZodCUID2;
|
|
253
374
|
workMode: z.ZodEnum<{
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
375
|
+
readonly REMOTE: "Remote";
|
|
376
|
+
readonly HYBRID: "Hybrid";
|
|
377
|
+
readonly ON_SITE: "On Site";
|
|
257
378
|
}>;
|
|
258
379
|
location: z.ZodEnum<{
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
380
|
+
readonly AFRICA: "Africa";
|
|
381
|
+
readonly REMOTE: "Remote";
|
|
382
|
+
readonly EUROPE: "Europe";
|
|
383
|
+
readonly ASIA: "Asia";
|
|
384
|
+
readonly NORTH_AMERICA: "North America";
|
|
385
|
+
readonly SOUTH_AMERICA: "South America";
|
|
386
|
+
readonly MIDDLE_EAST: "Middle East";
|
|
387
|
+
readonly OCEANIA: "Oceania";
|
|
388
|
+
readonly EMEA: "EMEA";
|
|
389
|
+
readonly ASIA_PACIFIC: "Asia Pacific";
|
|
390
|
+
readonly GLOBAL: "Global";
|
|
391
|
+
readonly OTHER: "Other";
|
|
271
392
|
}>;
|
|
272
393
|
jobSections: z.ZodArray<z.ZodEnum<{
|
|
273
|
-
|
|
394
|
+
readonly PERSONAL_INFORMATION: "PERSONAL_INFORMATION";
|
|
395
|
+
readonly PHONE_NO: "PHONE_NO";
|
|
396
|
+
readonly PROFESSIONAL_INFORMATION: "PROFESSIONAL_INFORMATION";
|
|
397
|
+
readonly RESUME: "RESUME";
|
|
398
|
+
readonly COVER_LETTER: "COVER_LETTER";
|
|
399
|
+
readonly PORTFOLIO_OR_WORK_SAMPLES: "PORTFOLIO_OR_WORK_SAMPLES";
|
|
400
|
+
readonly AVAILABILITY: "AVAILABILITY";
|
|
401
|
+
readonly WAGES: "WAGES";
|
|
274
402
|
}>>;
|
|
275
403
|
id: z.ZodCUID2;
|
|
276
404
|
experienceLevel: z.ZodEnum<{
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
405
|
+
readonly YEAR_0_1: "0-1 year";
|
|
406
|
+
readonly YEAR_1_3: "1-3 years";
|
|
407
|
+
readonly YEAR_3_5: "3-5 years";
|
|
408
|
+
readonly YEAR_5_PLUS: "5+ years";
|
|
281
409
|
}>;
|
|
282
410
|
overview: z.ZodString;
|
|
283
411
|
keyResponsibilities: z.ZodString;
|
|
@@ -287,41 +415,41 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
|
|
|
287
415
|
wagesMin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
288
416
|
wagesMax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
289
417
|
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
418
|
+
readonly USD: "USD (United States Dollar)";
|
|
419
|
+
readonly EUR: "EUR (Euro)";
|
|
420
|
+
readonly GBP: "GBP (British Pound Sterling)";
|
|
421
|
+
readonly NGN: "NGN (Nigerian Naira)";
|
|
422
|
+
readonly CAD: "CAD (Canadian Dollar)";
|
|
423
|
+
readonly AUD: "AUD (Australian Dollar)";
|
|
424
|
+
readonly JPY: "JPY (Japanese Yen)";
|
|
425
|
+
readonly CHF: "CHF (Swiss Franc)";
|
|
426
|
+
readonly INR: "INR (Indian Rupee)";
|
|
427
|
+
readonly ZAR: "ZAR (South African Rand)";
|
|
300
428
|
}>>;
|
|
301
429
|
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
430
|
+
readonly HOURLY: "Hourly";
|
|
431
|
+
readonly DAILY: "Daily";
|
|
432
|
+
readonly WEEKLY: "Weekly";
|
|
433
|
+
readonly MONTHLY: "Monthly";
|
|
434
|
+
readonly PROJECT_BASED: "Project Based";
|
|
307
435
|
}>>;
|
|
308
436
|
jobType: z.ZodLiteral<"ROLE">;
|
|
309
437
|
employmentType: z.ZodEnum<{
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
438
|
+
readonly FULL_TIME: "Full Time";
|
|
439
|
+
readonly PART_TIME: "Part Time";
|
|
440
|
+
readonly FREELANCE: "Freelance";
|
|
441
|
+
readonly INTERNSHIP: "Internship";
|
|
314
442
|
}>;
|
|
315
443
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
316
|
-
|
|
317
|
-
|
|
444
|
+
readonly ONE_TIME: "One Time";
|
|
445
|
+
readonly RECURRING: "Recurring";
|
|
318
446
|
}>>;
|
|
319
447
|
}, z.core.$strip>, z.ZodObject<{
|
|
320
448
|
status: z.ZodEnum<{
|
|
321
|
-
ACTIVE: "ACTIVE";
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
449
|
+
readonly ACTIVE: "ACTIVE";
|
|
450
|
+
readonly DRAFT: "DRAFT";
|
|
451
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
452
|
+
readonly DELETED: "DELETED";
|
|
325
453
|
}>;
|
|
326
454
|
brandName: z.ZodString;
|
|
327
455
|
brandImgUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -330,43 +458,54 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
|
|
|
330
458
|
createdAt: z.ZodISODateTime;
|
|
331
459
|
updatedAt: z.ZodISODateTime;
|
|
332
460
|
version: z.ZodInt;
|
|
461
|
+
maxApplications: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
462
|
+
maxHires: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
463
|
+
applicationDeadline: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
464
|
+
autoArchiveWhenFilled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
333
465
|
title: z.ZodString;
|
|
334
466
|
brandId: z.ZodCUID2;
|
|
335
467
|
jobType: z.ZodEnum<{
|
|
336
|
-
GIG: "GIG";
|
|
337
|
-
ROLE: "ROLE";
|
|
468
|
+
readonly GIG: "GIG";
|
|
469
|
+
readonly ROLE: "ROLE";
|
|
338
470
|
}>;
|
|
339
471
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
472
|
+
readonly FULL_TIME: "Full Time";
|
|
473
|
+
readonly PART_TIME: "Part Time";
|
|
474
|
+
readonly FREELANCE: "Freelance";
|
|
475
|
+
readonly INTERNSHIP: "Internship";
|
|
344
476
|
}>>;
|
|
345
477
|
workMode: z.ZodEnum<{
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
478
|
+
readonly REMOTE: "Remote";
|
|
479
|
+
readonly HYBRID: "Hybrid";
|
|
480
|
+
readonly ON_SITE: "On Site";
|
|
349
481
|
}>;
|
|
350
482
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
351
|
-
|
|
352
|
-
|
|
483
|
+
readonly ONE_TIME: "One Time";
|
|
484
|
+
readonly RECURRING: "Recurring";
|
|
353
485
|
}>>;
|
|
354
486
|
location: z.ZodEnum<{
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
487
|
+
readonly AFRICA: "Africa";
|
|
488
|
+
readonly REMOTE: "Remote";
|
|
489
|
+
readonly EUROPE: "Europe";
|
|
490
|
+
readonly ASIA: "Asia";
|
|
491
|
+
readonly NORTH_AMERICA: "North America";
|
|
492
|
+
readonly SOUTH_AMERICA: "South America";
|
|
493
|
+
readonly MIDDLE_EAST: "Middle East";
|
|
494
|
+
readonly OCEANIA: "Oceania";
|
|
495
|
+
readonly EMEA: "EMEA";
|
|
496
|
+
readonly ASIA_PACIFIC: "Asia Pacific";
|
|
497
|
+
readonly GLOBAL: "Global";
|
|
498
|
+
readonly OTHER: "Other";
|
|
367
499
|
}>;
|
|
368
500
|
jobSections: z.ZodArray<z.ZodEnum<{
|
|
369
|
-
|
|
501
|
+
readonly PERSONAL_INFORMATION: "PERSONAL_INFORMATION";
|
|
502
|
+
readonly PHONE_NO: "PHONE_NO";
|
|
503
|
+
readonly PROFESSIONAL_INFORMATION: "PROFESSIONAL_INFORMATION";
|
|
504
|
+
readonly RESUME: "RESUME";
|
|
505
|
+
readonly COVER_LETTER: "COVER_LETTER";
|
|
506
|
+
readonly PORTFOLIO_OR_WORK_SAMPLES: "PORTFOLIO_OR_WORK_SAMPLES";
|
|
507
|
+
readonly AVAILABILITY: "AVAILABILITY";
|
|
508
|
+
readonly WAGES: "WAGES";
|
|
370
509
|
}>>;
|
|
371
510
|
id: z.ZodCUID2;
|
|
372
511
|
}, z.core.$strip>]>;
|
|
@@ -377,6 +516,10 @@ export type TrackedJobApplicationEntity = z.infer<typeof TrackedJobApplicationEn
|
|
|
377
516
|
* INPUTS
|
|
378
517
|
* --------------------------------
|
|
379
518
|
*/
|
|
519
|
+
export declare const ApplicationIdInputSchema: z.ZodObject<{
|
|
520
|
+
id: z.ZodCUID2;
|
|
521
|
+
}, z.core.$strip>;
|
|
522
|
+
export type ApplicationIdInput = z.infer<typeof ApplicationIdInputSchema>;
|
|
380
523
|
export declare const CreateJobApplicationInputSchema: z.ZodObject<{
|
|
381
524
|
jobId: z.ZodCUID2;
|
|
382
525
|
firstName: z.ZodOptional<z.ZodString>;
|
|
@@ -386,16 +529,16 @@ export declare const CreateJobApplicationInputSchema: z.ZodObject<{
|
|
|
386
529
|
currentRole: z.ZodString;
|
|
387
530
|
resumeUrl: z.ZodURL;
|
|
388
531
|
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
532
|
+
readonly YEAR_0_1: "0-1 year";
|
|
533
|
+
readonly YEAR_1_3: "1-3 years";
|
|
534
|
+
readonly YEAR_3_5: "3-5 years";
|
|
535
|
+
readonly YEAR_5_PLUS: "5+ years";
|
|
393
536
|
}>>;
|
|
394
537
|
availability: z.ZodOptional<z.ZodEnum<{
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
538
|
+
readonly IMMEDIATE: "Immediate (Within 1 week)";
|
|
539
|
+
readonly TWO_WEEKS_NOTICE: "2 weeks notice";
|
|
540
|
+
readonly ONE_MONTH_NOTICE: "1 month notice";
|
|
541
|
+
readonly FLEXIBLE: "Flexible";
|
|
399
542
|
}>>;
|
|
400
543
|
coverLetter: z.ZodNullable<z.ZodString>;
|
|
401
544
|
receiveEmailUpdates: z.ZodBoolean;
|
|
@@ -409,7 +552,7 @@ export declare const CreateJobApplicationInputSchema: z.ZodObject<{
|
|
|
409
552
|
projectName: z.ZodString;
|
|
410
553
|
projectImgUrl: z.ZodOptional<z.ZodURL>;
|
|
411
554
|
projectId: z.ZodCUID2;
|
|
412
|
-
tags: z.
|
|
555
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
413
556
|
}, z.core.$strip>>>;
|
|
414
557
|
linkUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
415
558
|
url: z.ZodURL;
|
|
@@ -436,16 +579,16 @@ export declare const UpdateJobApplicationInputSchema: z.ZodObject<{
|
|
|
436
579
|
currentRole: z.ZodOptional<z.ZodString>;
|
|
437
580
|
resumeUrl: z.ZodOptional<z.ZodURL>;
|
|
438
581
|
experienceLevel: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
582
|
+
readonly YEAR_0_1: "0-1 year";
|
|
583
|
+
readonly YEAR_1_3: "1-3 years";
|
|
584
|
+
readonly YEAR_3_5: "3-5 years";
|
|
585
|
+
readonly YEAR_5_PLUS: "5+ years";
|
|
443
586
|
}>>>;
|
|
444
587
|
availability: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
588
|
+
readonly IMMEDIATE: "Immediate (Within 1 week)";
|
|
589
|
+
readonly TWO_WEEKS_NOTICE: "2 weeks notice";
|
|
590
|
+
readonly ONE_MONTH_NOTICE: "1 month notice";
|
|
591
|
+
readonly FLEXIBLE: "Flexible";
|
|
449
592
|
}>>>;
|
|
450
593
|
coverLetter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
451
594
|
receiveEmailUpdates: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -459,7 +602,7 @@ export declare const UpdateJobApplicationInputSchema: z.ZodObject<{
|
|
|
459
602
|
projectName: z.ZodString;
|
|
460
603
|
projectImgUrl: z.ZodOptional<z.ZodURL>;
|
|
461
604
|
projectId: z.ZodCUID2;
|
|
462
|
-
tags: z.
|
|
605
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
463
606
|
}, z.core.$strip>>>>;
|
|
464
607
|
linkUrls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
465
608
|
url: z.ZodURL;
|
|
@@ -477,28 +620,34 @@ export declare const UpdateJobApplicationInputSchema: z.ZodObject<{
|
|
|
477
620
|
}>>>>;
|
|
478
621
|
id: z.ZodCUID2;
|
|
479
622
|
applicationStatus: z.ZodOptional<z.ZodEnum<{
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
623
|
+
readonly SENT: "Application Sent";
|
|
624
|
+
readonly OPENED: "Opened";
|
|
625
|
+
readonly REJECTED: "Rejected";
|
|
626
|
+
readonly DECLINED: "Declined";
|
|
627
|
+
readonly OFFERED: "Offered";
|
|
628
|
+
readonly HIRED: "Hired";
|
|
486
629
|
}>>;
|
|
630
|
+
brandResponseMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
631
|
+
meetingLink: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
632
|
+
offerAcceptedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
633
|
+
offerDeclinedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
634
|
+
lastStatusViewedByApplicantAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
635
|
+
lastStatusViewedByBrandAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
487
636
|
}, z.core.$strip>;
|
|
488
637
|
export type UpdateJobApplicationInput = z.infer<typeof UpdateJobApplicationInputSchema>;
|
|
489
638
|
export declare const GetTrackedJobApplicationsInputSchema: z.ZodObject<{
|
|
490
639
|
query: z.ZodOptional<z.ZodString>;
|
|
491
640
|
status: z.ZodOptional<z.ZodEnum<{
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
641
|
+
readonly SENT: "Application Sent";
|
|
642
|
+
readonly OPENED: "Opened";
|
|
643
|
+
readonly REJECTED: "Rejected";
|
|
644
|
+
readonly DECLINED: "Declined";
|
|
645
|
+
readonly OFFERED: "Offered";
|
|
646
|
+
readonly HIRED: "Hired";
|
|
498
647
|
}>>;
|
|
499
648
|
jobType: z.ZodOptional<z.ZodEnum<{
|
|
500
|
-
GIG: "GIG";
|
|
501
|
-
ROLE: "ROLE";
|
|
649
|
+
readonly GIG: "GIG";
|
|
650
|
+
readonly ROLE: "ROLE";
|
|
502
651
|
}>>;
|
|
503
652
|
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
504
653
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -513,20 +662,27 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
513
662
|
applications: z.ZodArray<z.ZodObject<{
|
|
514
663
|
id: z.ZodCUID2;
|
|
515
664
|
applicationStatus: z.ZodEnum<{
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
665
|
+
readonly SENT: "Application Sent";
|
|
666
|
+
readonly OPENED: "Opened";
|
|
667
|
+
readonly REJECTED: "Rejected";
|
|
668
|
+
readonly DECLINED: "Declined";
|
|
669
|
+
readonly OFFERED: "Offered";
|
|
670
|
+
readonly HIRED: "Hired";
|
|
522
671
|
}>;
|
|
672
|
+
brandResponseMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
673
|
+
meetingLink: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
674
|
+
offerAcceptedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
675
|
+
offerDeclinedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
676
|
+
lastStatusChangedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
677
|
+
hasUnreadStatusUpdate: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
523
678
|
createdAt: z.ZodISODateTime;
|
|
679
|
+
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
524
680
|
job: z.ZodUnion<readonly [z.ZodObject<{
|
|
525
681
|
status: z.ZodEnum<{
|
|
526
|
-
ACTIVE: "ACTIVE";
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
682
|
+
readonly ACTIVE: "ACTIVE";
|
|
683
|
+
readonly DRAFT: "DRAFT";
|
|
684
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
685
|
+
readonly DELETED: "DELETED";
|
|
530
686
|
}>;
|
|
531
687
|
brandName: z.ZodString;
|
|
532
688
|
brandImgUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -535,29 +691,40 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
535
691
|
createdAt: z.ZodISODateTime;
|
|
536
692
|
updatedAt: z.ZodISODateTime;
|
|
537
693
|
version: z.ZodInt;
|
|
694
|
+
maxApplications: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
695
|
+
maxHires: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
696
|
+
applicationDeadline: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
697
|
+
autoArchiveWhenFilled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
538
698
|
title: z.ZodString;
|
|
539
699
|
brandId: z.ZodCUID2;
|
|
540
700
|
workMode: z.ZodEnum<{
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
701
|
+
readonly REMOTE: "Remote";
|
|
702
|
+
readonly HYBRID: "Hybrid";
|
|
703
|
+
readonly ON_SITE: "On Site";
|
|
544
704
|
}>;
|
|
545
705
|
location: z.ZodEnum<{
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
706
|
+
readonly AFRICA: "Africa";
|
|
707
|
+
readonly REMOTE: "Remote";
|
|
708
|
+
readonly EUROPE: "Europe";
|
|
709
|
+
readonly ASIA: "Asia";
|
|
710
|
+
readonly NORTH_AMERICA: "North America";
|
|
711
|
+
readonly SOUTH_AMERICA: "South America";
|
|
712
|
+
readonly MIDDLE_EAST: "Middle East";
|
|
713
|
+
readonly OCEANIA: "Oceania";
|
|
714
|
+
readonly EMEA: "EMEA";
|
|
715
|
+
readonly ASIA_PACIFIC: "Asia Pacific";
|
|
716
|
+
readonly GLOBAL: "Global";
|
|
717
|
+
readonly OTHER: "Other";
|
|
558
718
|
}>;
|
|
559
719
|
jobSections: z.ZodArray<z.ZodEnum<{
|
|
560
|
-
|
|
720
|
+
readonly PERSONAL_INFORMATION: "PERSONAL_INFORMATION";
|
|
721
|
+
readonly PHONE_NO: "PHONE_NO";
|
|
722
|
+
readonly PROFESSIONAL_INFORMATION: "PROFESSIONAL_INFORMATION";
|
|
723
|
+
readonly RESUME: "RESUME";
|
|
724
|
+
readonly COVER_LETTER: "COVER_LETTER";
|
|
725
|
+
readonly PORTFOLIO_OR_WORK_SAMPLES: "PORTFOLIO_OR_WORK_SAMPLES";
|
|
726
|
+
readonly AVAILABILITY: "AVAILABILITY";
|
|
727
|
+
readonly WAGES: "WAGES";
|
|
561
728
|
}>>;
|
|
562
729
|
id: z.ZodCUID2;
|
|
563
730
|
overview: z.ZodString;
|
|
@@ -568,41 +735,41 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
568
735
|
wagesMin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
569
736
|
wagesMax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
570
737
|
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
738
|
+
readonly USD: "USD (United States Dollar)";
|
|
739
|
+
readonly EUR: "EUR (Euro)";
|
|
740
|
+
readonly GBP: "GBP (British Pound Sterling)";
|
|
741
|
+
readonly NGN: "NGN (Nigerian Naira)";
|
|
742
|
+
readonly CAD: "CAD (Canadian Dollar)";
|
|
743
|
+
readonly AUD: "AUD (Australian Dollar)";
|
|
744
|
+
readonly JPY: "JPY (Japanese Yen)";
|
|
745
|
+
readonly CHF: "CHF (Swiss Franc)";
|
|
746
|
+
readonly INR: "INR (Indian Rupee)";
|
|
747
|
+
readonly ZAR: "ZAR (South African Rand)";
|
|
581
748
|
}>>;
|
|
582
749
|
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
750
|
+
readonly HOURLY: "Hourly";
|
|
751
|
+
readonly DAILY: "Daily";
|
|
752
|
+
readonly WEEKLY: "Weekly";
|
|
753
|
+
readonly MONTHLY: "Monthly";
|
|
754
|
+
readonly PROJECT_BASED: "Project Based";
|
|
588
755
|
}>>;
|
|
589
756
|
jobType: z.ZodLiteral<"GIG">;
|
|
590
757
|
gigType: z.ZodEnum<{
|
|
591
|
-
|
|
592
|
-
|
|
758
|
+
readonly ONE_TIME: "One Time";
|
|
759
|
+
readonly RECURRING: "Recurring";
|
|
593
760
|
}>;
|
|
594
761
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
762
|
+
readonly FULL_TIME: "Full Time";
|
|
763
|
+
readonly PART_TIME: "Part Time";
|
|
764
|
+
readonly FREELANCE: "Freelance";
|
|
765
|
+
readonly INTERNSHIP: "Internship";
|
|
599
766
|
}>>;
|
|
600
767
|
}, z.core.$strip>, z.ZodObject<{
|
|
601
768
|
status: z.ZodEnum<{
|
|
602
|
-
ACTIVE: "ACTIVE";
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
769
|
+
readonly ACTIVE: "ACTIVE";
|
|
770
|
+
readonly DRAFT: "DRAFT";
|
|
771
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
772
|
+
readonly DELETED: "DELETED";
|
|
606
773
|
}>;
|
|
607
774
|
brandName: z.ZodString;
|
|
608
775
|
brandImgUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -611,36 +778,47 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
611
778
|
createdAt: z.ZodISODateTime;
|
|
612
779
|
updatedAt: z.ZodISODateTime;
|
|
613
780
|
version: z.ZodInt;
|
|
781
|
+
maxApplications: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
782
|
+
maxHires: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
783
|
+
applicationDeadline: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
784
|
+
autoArchiveWhenFilled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
614
785
|
title: z.ZodString;
|
|
615
786
|
brandId: z.ZodCUID2;
|
|
616
787
|
workMode: z.ZodEnum<{
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
788
|
+
readonly REMOTE: "Remote";
|
|
789
|
+
readonly HYBRID: "Hybrid";
|
|
790
|
+
readonly ON_SITE: "On Site";
|
|
620
791
|
}>;
|
|
621
792
|
location: z.ZodEnum<{
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
793
|
+
readonly AFRICA: "Africa";
|
|
794
|
+
readonly REMOTE: "Remote";
|
|
795
|
+
readonly EUROPE: "Europe";
|
|
796
|
+
readonly ASIA: "Asia";
|
|
797
|
+
readonly NORTH_AMERICA: "North America";
|
|
798
|
+
readonly SOUTH_AMERICA: "South America";
|
|
799
|
+
readonly MIDDLE_EAST: "Middle East";
|
|
800
|
+
readonly OCEANIA: "Oceania";
|
|
801
|
+
readonly EMEA: "EMEA";
|
|
802
|
+
readonly ASIA_PACIFIC: "Asia Pacific";
|
|
803
|
+
readonly GLOBAL: "Global";
|
|
804
|
+
readonly OTHER: "Other";
|
|
634
805
|
}>;
|
|
635
806
|
jobSections: z.ZodArray<z.ZodEnum<{
|
|
636
|
-
|
|
807
|
+
readonly PERSONAL_INFORMATION: "PERSONAL_INFORMATION";
|
|
808
|
+
readonly PHONE_NO: "PHONE_NO";
|
|
809
|
+
readonly PROFESSIONAL_INFORMATION: "PROFESSIONAL_INFORMATION";
|
|
810
|
+
readonly RESUME: "RESUME";
|
|
811
|
+
readonly COVER_LETTER: "COVER_LETTER";
|
|
812
|
+
readonly PORTFOLIO_OR_WORK_SAMPLES: "PORTFOLIO_OR_WORK_SAMPLES";
|
|
813
|
+
readonly AVAILABILITY: "AVAILABILITY";
|
|
814
|
+
readonly WAGES: "WAGES";
|
|
637
815
|
}>>;
|
|
638
816
|
id: z.ZodCUID2;
|
|
639
817
|
experienceLevel: z.ZodEnum<{
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
818
|
+
readonly YEAR_0_1: "0-1 year";
|
|
819
|
+
readonly YEAR_1_3: "1-3 years";
|
|
820
|
+
readonly YEAR_3_5: "3-5 years";
|
|
821
|
+
readonly YEAR_5_PLUS: "5+ years";
|
|
644
822
|
}>;
|
|
645
823
|
overview: z.ZodString;
|
|
646
824
|
keyResponsibilities: z.ZodString;
|
|
@@ -650,41 +828,41 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
650
828
|
wagesMin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
651
829
|
wagesMax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
652
830
|
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
831
|
+
readonly USD: "USD (United States Dollar)";
|
|
832
|
+
readonly EUR: "EUR (Euro)";
|
|
833
|
+
readonly GBP: "GBP (British Pound Sterling)";
|
|
834
|
+
readonly NGN: "NGN (Nigerian Naira)";
|
|
835
|
+
readonly CAD: "CAD (Canadian Dollar)";
|
|
836
|
+
readonly AUD: "AUD (Australian Dollar)";
|
|
837
|
+
readonly JPY: "JPY (Japanese Yen)";
|
|
838
|
+
readonly CHF: "CHF (Swiss Franc)";
|
|
839
|
+
readonly INR: "INR (Indian Rupee)";
|
|
840
|
+
readonly ZAR: "ZAR (South African Rand)";
|
|
663
841
|
}>>;
|
|
664
842
|
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
843
|
+
readonly HOURLY: "Hourly";
|
|
844
|
+
readonly DAILY: "Daily";
|
|
845
|
+
readonly WEEKLY: "Weekly";
|
|
846
|
+
readonly MONTHLY: "Monthly";
|
|
847
|
+
readonly PROJECT_BASED: "Project Based";
|
|
670
848
|
}>>;
|
|
671
849
|
jobType: z.ZodLiteral<"ROLE">;
|
|
672
850
|
employmentType: z.ZodEnum<{
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
851
|
+
readonly FULL_TIME: "Full Time";
|
|
852
|
+
readonly PART_TIME: "Part Time";
|
|
853
|
+
readonly FREELANCE: "Freelance";
|
|
854
|
+
readonly INTERNSHIP: "Internship";
|
|
677
855
|
}>;
|
|
678
856
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
679
|
-
|
|
680
|
-
|
|
857
|
+
readonly ONE_TIME: "One Time";
|
|
858
|
+
readonly RECURRING: "Recurring";
|
|
681
859
|
}>>;
|
|
682
860
|
}, z.core.$strip>, z.ZodObject<{
|
|
683
861
|
status: z.ZodEnum<{
|
|
684
|
-
ACTIVE: "ACTIVE";
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
862
|
+
readonly ACTIVE: "ACTIVE";
|
|
863
|
+
readonly DRAFT: "DRAFT";
|
|
864
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
865
|
+
readonly DELETED: "DELETED";
|
|
688
866
|
}>;
|
|
689
867
|
brandName: z.ZodString;
|
|
690
868
|
brandImgUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -693,43 +871,54 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
693
871
|
createdAt: z.ZodISODateTime;
|
|
694
872
|
updatedAt: z.ZodISODateTime;
|
|
695
873
|
version: z.ZodInt;
|
|
874
|
+
maxApplications: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
875
|
+
maxHires: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
876
|
+
applicationDeadline: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
877
|
+
autoArchiveWhenFilled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
696
878
|
title: z.ZodString;
|
|
697
879
|
brandId: z.ZodCUID2;
|
|
698
880
|
jobType: z.ZodEnum<{
|
|
699
|
-
GIG: "GIG";
|
|
700
|
-
ROLE: "ROLE";
|
|
881
|
+
readonly GIG: "GIG";
|
|
882
|
+
readonly ROLE: "ROLE";
|
|
701
883
|
}>;
|
|
702
884
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
885
|
+
readonly FULL_TIME: "Full Time";
|
|
886
|
+
readonly PART_TIME: "Part Time";
|
|
887
|
+
readonly FREELANCE: "Freelance";
|
|
888
|
+
readonly INTERNSHIP: "Internship";
|
|
707
889
|
}>>;
|
|
708
890
|
workMode: z.ZodEnum<{
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
891
|
+
readonly REMOTE: "Remote";
|
|
892
|
+
readonly HYBRID: "Hybrid";
|
|
893
|
+
readonly ON_SITE: "On Site";
|
|
712
894
|
}>;
|
|
713
895
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
714
|
-
|
|
715
|
-
|
|
896
|
+
readonly ONE_TIME: "One Time";
|
|
897
|
+
readonly RECURRING: "Recurring";
|
|
716
898
|
}>>;
|
|
717
899
|
location: z.ZodEnum<{
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
900
|
+
readonly AFRICA: "Africa";
|
|
901
|
+
readonly REMOTE: "Remote";
|
|
902
|
+
readonly EUROPE: "Europe";
|
|
903
|
+
readonly ASIA: "Asia";
|
|
904
|
+
readonly NORTH_AMERICA: "North America";
|
|
905
|
+
readonly SOUTH_AMERICA: "South America";
|
|
906
|
+
readonly MIDDLE_EAST: "Middle East";
|
|
907
|
+
readonly OCEANIA: "Oceania";
|
|
908
|
+
readonly EMEA: "EMEA";
|
|
909
|
+
readonly ASIA_PACIFIC: "Asia Pacific";
|
|
910
|
+
readonly GLOBAL: "Global";
|
|
911
|
+
readonly OTHER: "Other";
|
|
730
912
|
}>;
|
|
731
913
|
jobSections: z.ZodArray<z.ZodEnum<{
|
|
732
|
-
|
|
914
|
+
readonly PERSONAL_INFORMATION: "PERSONAL_INFORMATION";
|
|
915
|
+
readonly PHONE_NO: "PHONE_NO";
|
|
916
|
+
readonly PROFESSIONAL_INFORMATION: "PROFESSIONAL_INFORMATION";
|
|
917
|
+
readonly RESUME: "RESUME";
|
|
918
|
+
readonly COVER_LETTER: "COVER_LETTER";
|
|
919
|
+
readonly PORTFOLIO_OR_WORK_SAMPLES: "PORTFOLIO_OR_WORK_SAMPLES";
|
|
920
|
+
readonly AVAILABILITY: "AVAILABILITY";
|
|
921
|
+
readonly WAGES: "WAGES";
|
|
733
922
|
}>>;
|
|
734
923
|
id: z.ZodCUID2;
|
|
735
924
|
}, z.core.$strip>]>;
|
|
@@ -741,4 +930,11 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
741
930
|
hasPrevPage: z.ZodBoolean;
|
|
742
931
|
}, z.core.$strip>;
|
|
743
932
|
export type GetTrackedJobApplicationsOutput = z.infer<typeof GetTrackedJobApplicationsOutputSchema>;
|
|
744
|
-
export {
|
|
933
|
+
export declare const GetApplicationStatusUpdatesCountOutputSchema: z.ZodObject<{
|
|
934
|
+
unreadCount: z.ZodNumber;
|
|
935
|
+
}, z.core.$strip>;
|
|
936
|
+
export type GetApplicationStatusUpdatesCountOutput = z.infer<typeof GetApplicationStatusUpdatesCountOutputSchema>;
|
|
937
|
+
export declare const GetBrandUnansweredApplicationsOutputSchema: z.ZodObject<{
|
|
938
|
+
unansweredCount: z.ZodNumber;
|
|
939
|
+
}, z.core.$strip>;
|
|
940
|
+
export type GetBrandUnansweredApplicationsOutput = z.infer<typeof GetBrandUnansweredApplicationsOutputSchema>;
|