@zyacreatives/shared 2.5.24 → 2.5.26
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 +159 -133
- package/dist/schemas/job-application.js +13 -22
- package/dist/schemas/job.d.ts +441 -463
- package/dist/schemas/job.js +79 -200
- package/dist/schemas/user.d.ts +2 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js +0 -1
- package/dist/types/job.d.ts +1 -27
- package/package.json +1 -1
- package/src/schemas/job-application.ts +66 -86
- package/src/schemas/job.ts +114 -224
- package/src/types/index.ts +0 -1
- package/src/types/job.ts +0 -77
- package/src/types/job-application.ts +0 -41
|
@@ -26,6 +26,7 @@ export declare const MinimalJobApplicationEntitySchema: z.ZodObject<{
|
|
|
26
26
|
Hired: "Hired";
|
|
27
27
|
}>;
|
|
28
28
|
}, z.core.$strip>;
|
|
29
|
+
export type MinimalJobApplicationEntity = z.infer<typeof MinimalJobApplicationEntitySchema>;
|
|
29
30
|
export declare const BaseJobApplicationEntitySchema: z.ZodObject<{
|
|
30
31
|
id: z.ZodString;
|
|
31
32
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
@@ -77,6 +78,7 @@ export declare const BaseJobApplicationEntitySchema: z.ZodObject<{
|
|
|
77
78
|
receiveEmailUpdates: z.ZodBoolean;
|
|
78
79
|
wagesAmount: z.ZodNullable<z.ZodNumber>;
|
|
79
80
|
}, z.core.$strip>;
|
|
81
|
+
export type BaseJobApplicationEntity = z.infer<typeof BaseJobApplicationEntitySchema>;
|
|
80
82
|
export declare const JobApplicationEntitySchema: z.ZodObject<{
|
|
81
83
|
id: z.ZodString;
|
|
82
84
|
firstName: z.ZodOptional<z.ZodString>;
|
|
@@ -131,7 +133,7 @@ export declare const JobApplicationEntitySchema: z.ZodObject<{
|
|
|
131
133
|
}, z.core.$strip>>>;
|
|
132
134
|
coverLetter: z.ZodOptional<z.ZodString>;
|
|
133
135
|
receiveEmailUpdates: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
-
wagesAmount: z.ZodOptional<z.
|
|
136
|
+
wagesAmount: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
135
137
|
availability: z.ZodOptional<z.ZodEnum<{
|
|
136
138
|
"Immediate (Within 1 week)": "Immediate (Within 1 week)";
|
|
137
139
|
"2 weeks notice": "2 weeks notice";
|
|
@@ -141,6 +143,7 @@ export declare const JobApplicationEntitySchema: z.ZodObject<{
|
|
|
141
143
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
142
144
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
143
145
|
}, z.core.$strip>;
|
|
146
|
+
export type JobApplicationEntity = z.infer<typeof JobApplicationEntitySchema>;
|
|
144
147
|
export declare const CreateJobApplicationInputSchema: z.ZodObject<{
|
|
145
148
|
jobId: z.ZodCUID2;
|
|
146
149
|
applicantId: z.ZodCUID2;
|
|
@@ -191,6 +194,7 @@ export declare const CreateJobApplicationInputSchema: z.ZodObject<{
|
|
|
191
194
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
192
195
|
}, z.core.$strip>>>;
|
|
193
196
|
}, z.core.$strip>;
|
|
197
|
+
export type CreateJobApplicationInput = z.infer<typeof CreateJobApplicationInputSchema>;
|
|
194
198
|
export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
|
|
195
199
|
id: z.ZodCUID2;
|
|
196
200
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
@@ -203,15 +207,12 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
|
|
|
203
207
|
Hired: "Hired";
|
|
204
208
|
}>;
|
|
205
209
|
job: z.ZodUnion<readonly [z.ZodObject<{
|
|
210
|
+
id: z.ZodCUID2;
|
|
206
211
|
title: z.ZodString;
|
|
207
212
|
brandId: z.ZodCUID2;
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
ACTIVE: "ACTIVE";
|
|
212
|
-
DELETED: "DELETED";
|
|
213
|
-
DRAFT: "DRAFT";
|
|
214
|
-
ARCHIVED: "ARCHIVED";
|
|
213
|
+
jobType: z.ZodEnum<{
|
|
214
|
+
GIG: "GIG";
|
|
215
|
+
ROLE: "ROLE";
|
|
215
216
|
}>;
|
|
216
217
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
217
218
|
"Full Time": "Full Time";
|
|
@@ -224,6 +225,12 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
|
|
|
224
225
|
Hybrid: "Hybrid";
|
|
225
226
|
"On Site": "On Site";
|
|
226
227
|
}>;
|
|
228
|
+
status: z.ZodEnum<{
|
|
229
|
+
ACTIVE: "ACTIVE";
|
|
230
|
+
DELETED: "DELETED";
|
|
231
|
+
DRAFT: "DRAFT";
|
|
232
|
+
ARCHIVED: "ARCHIVED";
|
|
233
|
+
}>;
|
|
227
234
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
228
235
|
"One Time": "One Time";
|
|
229
236
|
Recurring: "Recurring";
|
|
@@ -245,19 +252,20 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
|
|
|
245
252
|
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
246
253
|
[x: string]: string;
|
|
247
254
|
}>>>;
|
|
248
|
-
isBookmarked: z.ZodBoolean;
|
|
249
255
|
createdAt: z.ZodDate;
|
|
250
|
-
version: z.
|
|
256
|
+
version: z.ZodNumber;
|
|
251
257
|
updatedAt: z.ZodDate;
|
|
252
|
-
|
|
253
|
-
|
|
258
|
+
brandName: z.ZodString;
|
|
259
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
260
|
+
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
261
|
+
isBookmarked: z.ZodBoolean;
|
|
254
262
|
overview: z.ZodString;
|
|
255
263
|
deliverables: z.ZodString;
|
|
256
264
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
257
265
|
aboutCompany: z.ZodOptional<z.ZodString>;
|
|
258
266
|
requiredSkills: z.ZodArray<z.ZodString>;
|
|
259
|
-
wagesMin: z.ZodOptional<z.ZodNumber
|
|
260
|
-
wagesMax: z.ZodOptional<z.ZodNumber
|
|
267
|
+
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
268
|
+
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
261
269
|
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
262
270
|
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
263
271
|
"EUR (Euro)": "EUR (Euro)";
|
|
@@ -281,18 +289,10 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
|
|
|
281
289
|
id: z.ZodCUID2;
|
|
282
290
|
title: z.ZodString;
|
|
283
291
|
brandId: z.ZodCUID2;
|
|
284
|
-
brandName: z.ZodString;
|
|
285
|
-
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
286
292
|
jobType: z.ZodEnum<{
|
|
287
293
|
GIG: "GIG";
|
|
288
294
|
ROLE: "ROLE";
|
|
289
295
|
}>;
|
|
290
|
-
status: z.ZodEnum<{
|
|
291
|
-
ACTIVE: "ACTIVE";
|
|
292
|
-
DELETED: "DELETED";
|
|
293
|
-
DRAFT: "DRAFT";
|
|
294
|
-
ARCHIVED: "ARCHIVED";
|
|
295
|
-
}>;
|
|
296
296
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
297
297
|
"Full Time": "Full Time";
|
|
298
298
|
"Part Time": "Part Time";
|
|
@@ -304,6 +304,12 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
|
|
|
304
304
|
Hybrid: "Hybrid";
|
|
305
305
|
"On Site": "On Site";
|
|
306
306
|
}>;
|
|
307
|
+
status: z.ZodEnum<{
|
|
308
|
+
ACTIVE: "ACTIVE";
|
|
309
|
+
DELETED: "DELETED";
|
|
310
|
+
DRAFT: "DRAFT";
|
|
311
|
+
ARCHIVED: "ARCHIVED";
|
|
312
|
+
}>;
|
|
307
313
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
308
314
|
"One Time": "One Time";
|
|
309
315
|
Recurring: "Recurring";
|
|
@@ -325,20 +331,52 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
|
|
|
325
331
|
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
326
332
|
[x: string]: string;
|
|
327
333
|
}>>>;
|
|
328
|
-
isBookmarked: z.ZodBoolean;
|
|
329
334
|
createdAt: z.ZodDate;
|
|
330
|
-
version: z.
|
|
335
|
+
version: z.ZodNumber;
|
|
331
336
|
updatedAt: z.ZodDate;
|
|
337
|
+
brandName: z.ZodString;
|
|
338
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
339
|
+
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
340
|
+
isBookmarked: z.ZodBoolean;
|
|
341
|
+
overview: z.ZodString;
|
|
342
|
+
experienceLevel: z.ZodEnum<{
|
|
343
|
+
"0-1 year": "0-1 year";
|
|
344
|
+
"1-3 years": "1-3 years";
|
|
345
|
+
"3-5 years": "3-5 years";
|
|
346
|
+
"5+ years": "5+ years";
|
|
347
|
+
}>;
|
|
348
|
+
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
349
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
350
|
+
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
351
|
+
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
352
|
+
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
353
|
+
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
354
|
+
"EUR (Euro)": "EUR (Euro)";
|
|
355
|
+
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
356
|
+
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
357
|
+
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
358
|
+
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
359
|
+
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
360
|
+
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
361
|
+
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
362
|
+
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
363
|
+
}>>;
|
|
364
|
+
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
365
|
+
Hourly: "Hourly";
|
|
366
|
+
Daily: "Daily";
|
|
367
|
+
Weekly: "Weekly";
|
|
368
|
+
Monthly: "Monthly";
|
|
369
|
+
"Project Based": "Project Based";
|
|
370
|
+
}>>;
|
|
371
|
+
keyResponsibilities: z.ZodString;
|
|
372
|
+
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
332
373
|
}, z.core.$strip>, z.ZodObject<{
|
|
374
|
+
id: z.ZodCUID2;
|
|
333
375
|
title: z.ZodString;
|
|
334
376
|
brandId: z.ZodCUID2;
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
ACTIVE: "ACTIVE";
|
|
339
|
-
DELETED: "DELETED";
|
|
340
|
-
DRAFT: "DRAFT";
|
|
341
|
-
ARCHIVED: "ARCHIVED";
|
|
377
|
+
jobType: z.ZodEnum<{
|
|
378
|
+
GIG: "GIG";
|
|
379
|
+
ROLE: "ROLE";
|
|
342
380
|
}>;
|
|
343
381
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
344
382
|
"Full Time": "Full Time";
|
|
@@ -351,6 +389,12 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
|
|
|
351
389
|
Hybrid: "Hybrid";
|
|
352
390
|
"On Site": "On Site";
|
|
353
391
|
}>;
|
|
392
|
+
status: z.ZodEnum<{
|
|
393
|
+
ACTIVE: "ACTIVE";
|
|
394
|
+
DELETED: "DELETED";
|
|
395
|
+
DRAFT: "DRAFT";
|
|
396
|
+
ARCHIVED: "ARCHIVED";
|
|
397
|
+
}>;
|
|
354
398
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
355
399
|
"One Time": "One Time";
|
|
356
400
|
Recurring: "Recurring";
|
|
@@ -372,46 +416,16 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
|
|
|
372
416
|
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
373
417
|
[x: string]: string;
|
|
374
418
|
}>>>;
|
|
375
|
-
isBookmarked: z.ZodBoolean;
|
|
376
419
|
createdAt: z.ZodDate;
|
|
377
|
-
version: z.
|
|
420
|
+
version: z.ZodNumber;
|
|
378
421
|
updatedAt: z.ZodDate;
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
"1-3 years": "1-3 years";
|
|
384
|
-
"3-5 years": "3-5 years";
|
|
385
|
-
"5+ years": "5+ years";
|
|
386
|
-
}>;
|
|
387
|
-
overview: z.ZodString;
|
|
388
|
-
keyResponsibilities: z.ZodString;
|
|
389
|
-
requiredSkills: z.ZodArray<z.ZodString>;
|
|
390
|
-
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
391
|
-
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
392
|
-
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
393
|
-
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
394
|
-
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
395
|
-
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
396
|
-
"EUR (Euro)": "EUR (Euro)";
|
|
397
|
-
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
398
|
-
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
399
|
-
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
400
|
-
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
401
|
-
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
402
|
-
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
403
|
-
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
404
|
-
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
405
|
-
}>>;
|
|
406
|
-
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
407
|
-
Hourly: "Hourly";
|
|
408
|
-
Daily: "Daily";
|
|
409
|
-
Weekly: "Weekly";
|
|
410
|
-
Monthly: "Monthly";
|
|
411
|
-
"Project Based": "Project Based";
|
|
412
|
-
}>>;
|
|
422
|
+
brandName: z.ZodString;
|
|
423
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
424
|
+
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
425
|
+
isBookmarked: z.ZodBoolean;
|
|
413
426
|
}, z.core.$strip>]>;
|
|
414
427
|
}, z.core.$strip>;
|
|
428
|
+
export type TrackedJobApplicationEntity = z.infer<typeof TrackedJobApplicationEntitySchema>;
|
|
415
429
|
export declare const UpdateJobApplicationInputSchema: z.ZodObject<{
|
|
416
430
|
jobId: z.ZodOptional<z.ZodCUID2>;
|
|
417
431
|
applicantId: z.ZodOptional<z.ZodCUID2>;
|
|
@@ -471,6 +485,7 @@ export declare const UpdateJobApplicationInputSchema: z.ZodObject<{
|
|
|
471
485
|
Hired: "Hired";
|
|
472
486
|
}>>;
|
|
473
487
|
}, z.core.$strip>;
|
|
488
|
+
export type UpdateJobApplicationInput = z.infer<typeof UpdateJobApplicationInputSchema>;
|
|
474
489
|
export declare const GetTrackedJobApplicationsInputSchema: z.ZodObject<{
|
|
475
490
|
query: z.ZodOptional<z.ZodString>;
|
|
476
491
|
status: z.ZodOptional<z.ZodEnum<{
|
|
@@ -488,6 +503,7 @@ export declare const GetTrackedJobApplicationsInputSchema: z.ZodObject<{
|
|
|
488
503
|
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
489
504
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
490
505
|
}, z.core.$strip>;
|
|
506
|
+
export type GetTrackedJobApplicationsInput = z.infer<typeof GetTrackedJobApplicationsInputSchema>;
|
|
491
507
|
export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
492
508
|
applications: z.ZodArray<z.ZodObject<{
|
|
493
509
|
id: z.ZodCUID2;
|
|
@@ -501,15 +517,12 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
501
517
|
Hired: "Hired";
|
|
502
518
|
}>;
|
|
503
519
|
job: z.ZodUnion<readonly [z.ZodObject<{
|
|
520
|
+
id: z.ZodCUID2;
|
|
504
521
|
title: z.ZodString;
|
|
505
522
|
brandId: z.ZodCUID2;
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
ACTIVE: "ACTIVE";
|
|
510
|
-
DELETED: "DELETED";
|
|
511
|
-
DRAFT: "DRAFT";
|
|
512
|
-
ARCHIVED: "ARCHIVED";
|
|
523
|
+
jobType: z.ZodEnum<{
|
|
524
|
+
GIG: "GIG";
|
|
525
|
+
ROLE: "ROLE";
|
|
513
526
|
}>;
|
|
514
527
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
515
528
|
"Full Time": "Full Time";
|
|
@@ -522,6 +535,12 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
522
535
|
Hybrid: "Hybrid";
|
|
523
536
|
"On Site": "On Site";
|
|
524
537
|
}>;
|
|
538
|
+
status: z.ZodEnum<{
|
|
539
|
+
ACTIVE: "ACTIVE";
|
|
540
|
+
DELETED: "DELETED";
|
|
541
|
+
DRAFT: "DRAFT";
|
|
542
|
+
ARCHIVED: "ARCHIVED";
|
|
543
|
+
}>;
|
|
525
544
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
526
545
|
"One Time": "One Time";
|
|
527
546
|
Recurring: "Recurring";
|
|
@@ -543,19 +562,20 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
543
562
|
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
544
563
|
[x: string]: string;
|
|
545
564
|
}>>>;
|
|
546
|
-
isBookmarked: z.ZodBoolean;
|
|
547
565
|
createdAt: z.ZodDate;
|
|
548
|
-
version: z.
|
|
566
|
+
version: z.ZodNumber;
|
|
549
567
|
updatedAt: z.ZodDate;
|
|
550
|
-
|
|
551
|
-
|
|
568
|
+
brandName: z.ZodString;
|
|
569
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
570
|
+
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
571
|
+
isBookmarked: z.ZodBoolean;
|
|
552
572
|
overview: z.ZodString;
|
|
553
573
|
deliverables: z.ZodString;
|
|
554
574
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
555
575
|
aboutCompany: z.ZodOptional<z.ZodString>;
|
|
556
576
|
requiredSkills: z.ZodArray<z.ZodString>;
|
|
557
|
-
wagesMin: z.ZodOptional<z.ZodNumber
|
|
558
|
-
wagesMax: z.ZodOptional<z.ZodNumber
|
|
577
|
+
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
578
|
+
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
559
579
|
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
560
580
|
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
561
581
|
"EUR (Euro)": "EUR (Euro)";
|
|
@@ -579,18 +599,10 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
579
599
|
id: z.ZodCUID2;
|
|
580
600
|
title: z.ZodString;
|
|
581
601
|
brandId: z.ZodCUID2;
|
|
582
|
-
brandName: z.ZodString;
|
|
583
|
-
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
584
602
|
jobType: z.ZodEnum<{
|
|
585
603
|
GIG: "GIG";
|
|
586
604
|
ROLE: "ROLE";
|
|
587
605
|
}>;
|
|
588
|
-
status: z.ZodEnum<{
|
|
589
|
-
ACTIVE: "ACTIVE";
|
|
590
|
-
DELETED: "DELETED";
|
|
591
|
-
DRAFT: "DRAFT";
|
|
592
|
-
ARCHIVED: "ARCHIVED";
|
|
593
|
-
}>;
|
|
594
606
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
595
607
|
"Full Time": "Full Time";
|
|
596
608
|
"Part Time": "Part Time";
|
|
@@ -602,6 +614,12 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
602
614
|
Hybrid: "Hybrid";
|
|
603
615
|
"On Site": "On Site";
|
|
604
616
|
}>;
|
|
617
|
+
status: z.ZodEnum<{
|
|
618
|
+
ACTIVE: "ACTIVE";
|
|
619
|
+
DELETED: "DELETED";
|
|
620
|
+
DRAFT: "DRAFT";
|
|
621
|
+
ARCHIVED: "ARCHIVED";
|
|
622
|
+
}>;
|
|
605
623
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
606
624
|
"One Time": "One Time";
|
|
607
625
|
Recurring: "Recurring";
|
|
@@ -623,20 +641,52 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
623
641
|
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
624
642
|
[x: string]: string;
|
|
625
643
|
}>>>;
|
|
626
|
-
isBookmarked: z.ZodBoolean;
|
|
627
644
|
createdAt: z.ZodDate;
|
|
628
|
-
version: z.
|
|
645
|
+
version: z.ZodNumber;
|
|
629
646
|
updatedAt: z.ZodDate;
|
|
647
|
+
brandName: z.ZodString;
|
|
648
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
649
|
+
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
650
|
+
isBookmarked: z.ZodBoolean;
|
|
651
|
+
overview: z.ZodString;
|
|
652
|
+
experienceLevel: z.ZodEnum<{
|
|
653
|
+
"0-1 year": "0-1 year";
|
|
654
|
+
"1-3 years": "1-3 years";
|
|
655
|
+
"3-5 years": "3-5 years";
|
|
656
|
+
"5+ years": "5+ years";
|
|
657
|
+
}>;
|
|
658
|
+
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
659
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
660
|
+
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
661
|
+
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
662
|
+
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
663
|
+
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
664
|
+
"EUR (Euro)": "EUR (Euro)";
|
|
665
|
+
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
666
|
+
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
667
|
+
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
668
|
+
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
669
|
+
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
670
|
+
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
671
|
+
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
672
|
+
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
673
|
+
}>>;
|
|
674
|
+
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
675
|
+
Hourly: "Hourly";
|
|
676
|
+
Daily: "Daily";
|
|
677
|
+
Weekly: "Weekly";
|
|
678
|
+
Monthly: "Monthly";
|
|
679
|
+
"Project Based": "Project Based";
|
|
680
|
+
}>>;
|
|
681
|
+
keyResponsibilities: z.ZodString;
|
|
682
|
+
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
630
683
|
}, z.core.$strip>, z.ZodObject<{
|
|
684
|
+
id: z.ZodCUID2;
|
|
631
685
|
title: z.ZodString;
|
|
632
686
|
brandId: z.ZodCUID2;
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
ACTIVE: "ACTIVE";
|
|
637
|
-
DELETED: "DELETED";
|
|
638
|
-
DRAFT: "DRAFT";
|
|
639
|
-
ARCHIVED: "ARCHIVED";
|
|
687
|
+
jobType: z.ZodEnum<{
|
|
688
|
+
GIG: "GIG";
|
|
689
|
+
ROLE: "ROLE";
|
|
640
690
|
}>;
|
|
641
691
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
642
692
|
"Full Time": "Full Time";
|
|
@@ -649,6 +699,12 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
649
699
|
Hybrid: "Hybrid";
|
|
650
700
|
"On Site": "On Site";
|
|
651
701
|
}>;
|
|
702
|
+
status: z.ZodEnum<{
|
|
703
|
+
ACTIVE: "ACTIVE";
|
|
704
|
+
DELETED: "DELETED";
|
|
705
|
+
DRAFT: "DRAFT";
|
|
706
|
+
ARCHIVED: "ARCHIVED";
|
|
707
|
+
}>;
|
|
652
708
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
653
709
|
"One Time": "One Time";
|
|
654
710
|
Recurring: "Recurring";
|
|
@@ -670,44 +726,13 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
670
726
|
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
671
727
|
[x: string]: string;
|
|
672
728
|
}>>>;
|
|
673
|
-
isBookmarked: z.ZodBoolean;
|
|
674
729
|
createdAt: z.ZodDate;
|
|
675
|
-
version: z.
|
|
730
|
+
version: z.ZodNumber;
|
|
676
731
|
updatedAt: z.ZodDate;
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
"1-3 years": "1-3 years";
|
|
682
|
-
"3-5 years": "3-5 years";
|
|
683
|
-
"5+ years": "5+ years";
|
|
684
|
-
}>;
|
|
685
|
-
overview: z.ZodString;
|
|
686
|
-
keyResponsibilities: z.ZodString;
|
|
687
|
-
requiredSkills: z.ZodArray<z.ZodString>;
|
|
688
|
-
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
689
|
-
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
690
|
-
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
691
|
-
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
692
|
-
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
693
|
-
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
694
|
-
"EUR (Euro)": "EUR (Euro)";
|
|
695
|
-
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
696
|
-
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
697
|
-
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
698
|
-
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
699
|
-
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
700
|
-
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
701
|
-
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
702
|
-
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
703
|
-
}>>;
|
|
704
|
-
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
705
|
-
Hourly: "Hourly";
|
|
706
|
-
Daily: "Daily";
|
|
707
|
-
Weekly: "Weekly";
|
|
708
|
-
Monthly: "Monthly";
|
|
709
|
-
"Project Based": "Project Based";
|
|
710
|
-
}>>;
|
|
732
|
+
brandName: z.ZodString;
|
|
733
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
734
|
+
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
735
|
+
isBookmarked: z.ZodBoolean;
|
|
711
736
|
}, z.core.$strip>]>;
|
|
712
737
|
}, z.core.$strip>>;
|
|
713
738
|
total: z.ZodNumber;
|
|
@@ -716,3 +741,4 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
716
741
|
hasNextPage: z.ZodBoolean;
|
|
717
742
|
hasPrevPage: z.ZodBoolean;
|
|
718
743
|
}, z.core.$strip>;
|
|
744
|
+
export type GetTrackedJobApplicationsOutput = z.infer<typeof GetTrackedJobApplicationsOutputSchema>;
|
|
@@ -5,13 +5,16 @@ const zod_openapi_1 = require("@hono/zod-openapi");
|
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const user_1 = require("./user");
|
|
7
7
|
const job_1 = require("./job");
|
|
8
|
+
const ApplicationStatusSchema = zod_openapi_1.z.enum(Object.values(constants_1.APPLICATION_STATUS));
|
|
9
|
+
const ExperienceLevelSchema = zod_openapi_1.z.enum(Object.values(constants_1.EXPERIENCE_LEVELS));
|
|
10
|
+
const JobAvailabilitySchema = zod_openapi_1.z.enum(Object.values(constants_1.JOB_AVAILABILITY_TYPES));
|
|
8
11
|
exports.MinimalJobApplicationEntitySchema = zod_openapi_1.z.object({
|
|
9
12
|
user: user_1.MinimalUserSchema,
|
|
10
13
|
jobId: zod_openapi_1.z.cuid2(),
|
|
11
14
|
id: zod_openapi_1.z.cuid2(),
|
|
12
15
|
coverLetter: zod_openapi_1.z.string(),
|
|
13
16
|
createdAt: zod_openapi_1.z.coerce.date(),
|
|
14
|
-
applicationStatus:
|
|
17
|
+
applicationStatus: ApplicationStatusSchema,
|
|
15
18
|
});
|
|
16
19
|
exports.BaseJobApplicationEntitySchema = zod_openapi_1.z.object({
|
|
17
20
|
id: zod_openapi_1.z.string(),
|
|
@@ -42,7 +45,7 @@ exports.BaseJobApplicationEntitySchema = zod_openapi_1.z.object({
|
|
|
42
45
|
tags: zod_openapi_1.z.array(zod_openapi_1.z.string()).optional(),
|
|
43
46
|
}))
|
|
44
47
|
.optional(),
|
|
45
|
-
applicationStatus:
|
|
48
|
+
applicationStatus: ApplicationStatusSchema,
|
|
46
49
|
linkUrls: zod_openapi_1.z
|
|
47
50
|
.array(zod_openapi_1.z.object({
|
|
48
51
|
url: zod_openapi_1.z.url(),
|
|
@@ -62,9 +65,7 @@ exports.JobApplicationEntitySchema = zod_openapi_1.z.object({
|
|
|
62
65
|
emailAddress: zod_openapi_1.z.email().optional(),
|
|
63
66
|
phoneNumber: zod_openapi_1.z.string().optional(),
|
|
64
67
|
currentRole: zod_openapi_1.z.string().optional(),
|
|
65
|
-
experienceLevel:
|
|
66
|
-
.enum(Object.values(constants_1.EXPERIENCE_LEVELS))
|
|
67
|
-
.optional(),
|
|
68
|
+
experienceLevel: ExperienceLevelSchema.optional(),
|
|
68
69
|
resumeUrl: zod_openapi_1.z.url(),
|
|
69
70
|
workSampleUrls: zod_openapi_1.z
|
|
70
71
|
.array(zod_openapi_1.z.object({
|
|
@@ -81,19 +82,15 @@ exports.JobApplicationEntitySchema = zod_openapi_1.z.object({
|
|
|
81
82
|
tags: zod_openapi_1.z.array(zod_openapi_1.z.string()).optional(),
|
|
82
83
|
}))
|
|
83
84
|
.optional(),
|
|
84
|
-
applicationStatus:
|
|
85
|
-
.enum(Object.values(constants_1.APPLICATION_STATUS))
|
|
86
|
-
.default("Application Sent"),
|
|
85
|
+
applicationStatus: ApplicationStatusSchema.default("Application Sent"),
|
|
87
86
|
applicantId: zod_openapi_1.z.cuid2(),
|
|
88
87
|
linkUrls: zod_openapi_1.z
|
|
89
88
|
.array(zod_openapi_1.z.object({ url: zod_openapi_1.z.url(), isPortfolioUrl: zod_openapi_1.z.boolean().default(false) }))
|
|
90
89
|
.optional(),
|
|
91
90
|
coverLetter: zod_openapi_1.z.string().optional(),
|
|
92
91
|
receiveEmailUpdates: zod_openapi_1.z.boolean().optional(),
|
|
93
|
-
wagesAmount: zod_openapi_1.z.coerce.number().optional()
|
|
94
|
-
availability:
|
|
95
|
-
.enum(Object.values(constants_1.JOB_AVAILABILITY_TYPES))
|
|
96
|
-
.optional(),
|
|
92
|
+
wagesAmount: zod_openapi_1.z.coerce.number().optional(),
|
|
93
|
+
availability: JobAvailabilitySchema.optional(),
|
|
97
94
|
createdAt: zod_openapi_1.z.coerce
|
|
98
95
|
.date()
|
|
99
96
|
.optional()
|
|
@@ -109,9 +106,7 @@ exports.CreateJobApplicationInputSchema = zod_openapi_1.z.object({
|
|
|
109
106
|
emailAddress: zod_openapi_1.z.email().optional(),
|
|
110
107
|
phoneNumber: zod_openapi_1.z.string().optional(),
|
|
111
108
|
currentRole: zod_openapi_1.z.string().optional(),
|
|
112
|
-
experienceLevel:
|
|
113
|
-
.enum(Object.values(constants_1.EXPERIENCE_LEVELS))
|
|
114
|
-
.optional(),
|
|
109
|
+
experienceLevel: ExperienceLevelSchema.optional(),
|
|
115
110
|
resumeUrl: zod_openapi_1.z.url().optional(),
|
|
116
111
|
coverLetter: zod_openapi_1.z.string().optional(),
|
|
117
112
|
availability: zod_openapi_1.z.enum(constants_1.JOB_AVAILABILITY_TYPES).optional(),
|
|
@@ -139,20 +134,16 @@ exports.CreateJobApplicationInputSchema = zod_openapi_1.z.object({
|
|
|
139
134
|
exports.TrackedJobApplicationEntitySchema = zod_openapi_1.z.object({
|
|
140
135
|
id: zod_openapi_1.z.cuid2(),
|
|
141
136
|
createdAt: zod_openapi_1.z.coerce.date(),
|
|
142
|
-
applicationStatus:
|
|
137
|
+
applicationStatus: ApplicationStatusSchema,
|
|
143
138
|
job: job_1.NormalizedJobSchema,
|
|
144
139
|
});
|
|
145
140
|
exports.UpdateJobApplicationInputSchema = exports.CreateJobApplicationInputSchema.partial().extend({
|
|
146
141
|
id: zod_openapi_1.z.cuid2(),
|
|
147
|
-
applicationStatus:
|
|
148
|
-
.enum(Object.values(constants_1.APPLICATION_STATUS))
|
|
149
|
-
.optional(),
|
|
142
|
+
applicationStatus: ApplicationStatusSchema.optional(),
|
|
150
143
|
});
|
|
151
144
|
exports.GetTrackedJobApplicationsInputSchema = zod_openapi_1.z.object({
|
|
152
145
|
query: zod_openapi_1.z.string().optional(),
|
|
153
|
-
status:
|
|
154
|
-
.enum(Object.values(constants_1.APPLICATION_STATUS))
|
|
155
|
-
.optional(),
|
|
146
|
+
status: ApplicationStatusSchema.optional(),
|
|
156
147
|
jobType: zod_openapi_1.z
|
|
157
148
|
.enum(Object.values(constants_1.JOB_TYPE))
|
|
158
149
|
.optional(),
|