@zyacreatives/shared 2.1.17 → 2.1.19
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 +237 -0
- package/dist/schemas/job-application.js +20 -1
- package/dist/schemas/job.d.ts +251 -1
- package/dist/schemas/job.js +35 -2
- package/dist/types/job-application.d.ts +3 -1
- package/dist/types/job.d.ts +3 -1
- package/package.json +1 -1
- package/src/schemas/job-application.ts +28 -0
- package/src/schemas/job.ts +40 -2
- package/src/types/job-application.ts +10 -0
- package/src/types/job.ts +4 -1
|
@@ -410,3 +410,240 @@ export declare const UpdateJobApplicationStatusSchema: z.ZodObject<{
|
|
|
410
410
|
readonly HIRED: "Hired";
|
|
411
411
|
}>;
|
|
412
412
|
}, z.core.$strip>;
|
|
413
|
+
export declare const GetTrackedJobApplicationsInputSchema: z.ZodObject<{
|
|
414
|
+
q: z.ZodOptional<z.ZodString>;
|
|
415
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
416
|
+
"Application Sent": "Application Sent";
|
|
417
|
+
Opened: "Opened";
|
|
418
|
+
Rejected: "Rejected";
|
|
419
|
+
Offered: "Offered";
|
|
420
|
+
Hired: "Hired";
|
|
421
|
+
}>>;
|
|
422
|
+
jobType: z.ZodOptional<z.ZodEnum<{
|
|
423
|
+
GIG: "GIG";
|
|
424
|
+
ROLE: "ROLE";
|
|
425
|
+
}>>;
|
|
426
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
427
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
428
|
+
}, z.core.$strip>;
|
|
429
|
+
export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
430
|
+
applications: z.ZodArray<z.ZodObject<{
|
|
431
|
+
id: z.ZodCUID2;
|
|
432
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
433
|
+
applicationStatus: z.ZodEnum<{
|
|
434
|
+
"Application Sent": "Application Sent";
|
|
435
|
+
Opened: "Opened";
|
|
436
|
+
Rejected: "Rejected";
|
|
437
|
+
Offered: "Offered";
|
|
438
|
+
Hired: "Hired";
|
|
439
|
+
}>;
|
|
440
|
+
job: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
441
|
+
title: z.ZodString;
|
|
442
|
+
brandId: z.ZodCUID2;
|
|
443
|
+
brandName: z.ZodCUID2;
|
|
444
|
+
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
445
|
+
status: z.ZodEnum<{
|
|
446
|
+
ACTIVE: "ACTIVE";
|
|
447
|
+
DELETED: "DELETED";
|
|
448
|
+
DRAFT: "DRAFT";
|
|
449
|
+
ARCHIVED: "ARCHIVED";
|
|
450
|
+
}>;
|
|
451
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
452
|
+
"Full Time": "Full Time";
|
|
453
|
+
"Part Time": "Part Time";
|
|
454
|
+
Freelance: "Freelance";
|
|
455
|
+
Internship: "Internship";
|
|
456
|
+
}>>;
|
|
457
|
+
workMode: z.ZodEnum<{
|
|
458
|
+
Remote: "Remote";
|
|
459
|
+
Hybrid: "Hybrid";
|
|
460
|
+
"On Site": "On Site";
|
|
461
|
+
}>;
|
|
462
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
463
|
+
"One Time": "One Time";
|
|
464
|
+
Recurring: "Recurring";
|
|
465
|
+
}>>;
|
|
466
|
+
location: z.ZodEnum<{
|
|
467
|
+
Africa: "Africa";
|
|
468
|
+
Asia: "Asia";
|
|
469
|
+
Europe: "Europe";
|
|
470
|
+
"North America": "North America";
|
|
471
|
+
"South America": "South America";
|
|
472
|
+
"Middle East": "Middle East";
|
|
473
|
+
Oceania: "Oceania";
|
|
474
|
+
Global: "Global";
|
|
475
|
+
Other: "Other";
|
|
476
|
+
Remote: "Remote";
|
|
477
|
+
EMEA: "EMEA";
|
|
478
|
+
"Asia Pacific": "Asia Pacific";
|
|
479
|
+
}>;
|
|
480
|
+
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
481
|
+
[x: string]: string;
|
|
482
|
+
}>>>;
|
|
483
|
+
createdAt: z.ZodDate;
|
|
484
|
+
updatedAt: z.ZodDate;
|
|
485
|
+
id: z.ZodCUID2;
|
|
486
|
+
jobType: z.ZodLiteral<"GIG">;
|
|
487
|
+
overview: z.ZodString;
|
|
488
|
+
deliverables: z.ZodString;
|
|
489
|
+
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
490
|
+
aboutCompany: z.ZodOptional<z.ZodString>;
|
|
491
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
492
|
+
wagesMin: z.ZodOptional<z.ZodNumber>;
|
|
493
|
+
wagesMax: z.ZodOptional<z.ZodNumber>;
|
|
494
|
+
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
495
|
+
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
496
|
+
"EUR (Euro)": "EUR (Euro)";
|
|
497
|
+
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
498
|
+
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
499
|
+
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
500
|
+
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
501
|
+
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
502
|
+
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
503
|
+
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
504
|
+
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
505
|
+
}>>;
|
|
506
|
+
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
507
|
+
Hourly: "Hourly";
|
|
508
|
+
Daily: "Daily";
|
|
509
|
+
Weekly: "Weekly";
|
|
510
|
+
Monthly: "Monthly";
|
|
511
|
+
"Project Based": "Project Based";
|
|
512
|
+
}>>;
|
|
513
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
514
|
+
id: z.ZodCUID2;
|
|
515
|
+
title: z.ZodString;
|
|
516
|
+
brandId: z.ZodCUID2;
|
|
517
|
+
brandName: z.ZodCUID2;
|
|
518
|
+
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
519
|
+
jobType: z.ZodEnum<{
|
|
520
|
+
GIG: "GIG";
|
|
521
|
+
ROLE: "ROLE";
|
|
522
|
+
}>;
|
|
523
|
+
status: z.ZodEnum<{
|
|
524
|
+
ACTIVE: "ACTIVE";
|
|
525
|
+
DELETED: "DELETED";
|
|
526
|
+
DRAFT: "DRAFT";
|
|
527
|
+
ARCHIVED: "ARCHIVED";
|
|
528
|
+
}>;
|
|
529
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
530
|
+
"Full Time": "Full Time";
|
|
531
|
+
"Part Time": "Part Time";
|
|
532
|
+
Freelance: "Freelance";
|
|
533
|
+
Internship: "Internship";
|
|
534
|
+
}>>;
|
|
535
|
+
workMode: z.ZodEnum<{
|
|
536
|
+
Remote: "Remote";
|
|
537
|
+
Hybrid: "Hybrid";
|
|
538
|
+
"On Site": "On Site";
|
|
539
|
+
}>;
|
|
540
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
541
|
+
"One Time": "One Time";
|
|
542
|
+
Recurring: "Recurring";
|
|
543
|
+
}>>;
|
|
544
|
+
location: z.ZodEnum<{
|
|
545
|
+
Africa: "Africa";
|
|
546
|
+
Asia: "Asia";
|
|
547
|
+
Europe: "Europe";
|
|
548
|
+
"North America": "North America";
|
|
549
|
+
"South America": "South America";
|
|
550
|
+
"Middle East": "Middle East";
|
|
551
|
+
Oceania: "Oceania";
|
|
552
|
+
Global: "Global";
|
|
553
|
+
Other: "Other";
|
|
554
|
+
Remote: "Remote";
|
|
555
|
+
EMEA: "EMEA";
|
|
556
|
+
"Asia Pacific": "Asia Pacific";
|
|
557
|
+
}>;
|
|
558
|
+
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
559
|
+
[x: string]: string;
|
|
560
|
+
}>>>;
|
|
561
|
+
createdAt: z.ZodDate;
|
|
562
|
+
updatedAt: z.ZodDate;
|
|
563
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
564
|
+
title: z.ZodString;
|
|
565
|
+
brandId: z.ZodCUID2;
|
|
566
|
+
brandName: z.ZodCUID2;
|
|
567
|
+
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
568
|
+
status: z.ZodEnum<{
|
|
569
|
+
ACTIVE: "ACTIVE";
|
|
570
|
+
DELETED: "DELETED";
|
|
571
|
+
DRAFT: "DRAFT";
|
|
572
|
+
ARCHIVED: "ARCHIVED";
|
|
573
|
+
}>;
|
|
574
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
575
|
+
"Full Time": "Full Time";
|
|
576
|
+
"Part Time": "Part Time";
|
|
577
|
+
Freelance: "Freelance";
|
|
578
|
+
Internship: "Internship";
|
|
579
|
+
}>>;
|
|
580
|
+
workMode: z.ZodEnum<{
|
|
581
|
+
Remote: "Remote";
|
|
582
|
+
Hybrid: "Hybrid";
|
|
583
|
+
"On Site": "On Site";
|
|
584
|
+
}>;
|
|
585
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
586
|
+
"One Time": "One Time";
|
|
587
|
+
Recurring: "Recurring";
|
|
588
|
+
}>>;
|
|
589
|
+
location: z.ZodEnum<{
|
|
590
|
+
Africa: "Africa";
|
|
591
|
+
Asia: "Asia";
|
|
592
|
+
Europe: "Europe";
|
|
593
|
+
"North America": "North America";
|
|
594
|
+
"South America": "South America";
|
|
595
|
+
"Middle East": "Middle East";
|
|
596
|
+
Oceania: "Oceania";
|
|
597
|
+
Global: "Global";
|
|
598
|
+
Other: "Other";
|
|
599
|
+
Remote: "Remote";
|
|
600
|
+
EMEA: "EMEA";
|
|
601
|
+
"Asia Pacific": "Asia Pacific";
|
|
602
|
+
}>;
|
|
603
|
+
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
604
|
+
[x: string]: string;
|
|
605
|
+
}>>>;
|
|
606
|
+
createdAt: z.ZodDate;
|
|
607
|
+
updatedAt: z.ZodDate;
|
|
608
|
+
id: z.ZodCUID2;
|
|
609
|
+
jobType: z.ZodLiteral<"ROLE">;
|
|
610
|
+
experienceLevel: z.ZodEnum<{
|
|
611
|
+
"0-1 year": "0-1 year";
|
|
612
|
+
"1-3 years": "1-3 years";
|
|
613
|
+
"3-5 years": "3-5 years";
|
|
614
|
+
"5+ years": "5+ years";
|
|
615
|
+
}>;
|
|
616
|
+
overview: z.ZodString;
|
|
617
|
+
keyResponsibilities: z.ZodString;
|
|
618
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
619
|
+
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
620
|
+
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
621
|
+
wagesMin: z.ZodOptional<z.ZodNumber>;
|
|
622
|
+
wagesMax: z.ZodOptional<z.ZodNumber>;
|
|
623
|
+
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
624
|
+
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
625
|
+
"EUR (Euro)": "EUR (Euro)";
|
|
626
|
+
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
627
|
+
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
628
|
+
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
629
|
+
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
630
|
+
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
631
|
+
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
632
|
+
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
633
|
+
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
634
|
+
}>>;
|
|
635
|
+
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
636
|
+
Hourly: "Hourly";
|
|
637
|
+
Daily: "Daily";
|
|
638
|
+
Weekly: "Weekly";
|
|
639
|
+
Monthly: "Monthly";
|
|
640
|
+
"Project Based": "Project Based";
|
|
641
|
+
}>>;
|
|
642
|
+
}, z.core.$strip>], "jobType">;
|
|
643
|
+
}, z.core.$strip>>;
|
|
644
|
+
total: z.ZodNumber;
|
|
645
|
+
page: z.ZodNumber;
|
|
646
|
+
totalPages: z.ZodNumber;
|
|
647
|
+
hasNextPage: z.ZodBoolean;
|
|
648
|
+
hasPrevPage: z.ZodBoolean;
|
|
649
|
+
}, z.core.$strip>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateJobApplicationStatusSchema = exports.TrackedJobApplicationEntitySchema = exports.CreateJobApplicationInputSchema = exports.JobApplicationEntitySchema = exports.BaseJobApplicationEntitySchema = exports.MinimalJobApplicationEntitySchema = void 0;
|
|
3
|
+
exports.GetTrackedJobApplicationsOutputSchema = exports.GetTrackedJobApplicationsInputSchema = exports.UpdateJobApplicationStatusSchema = exports.TrackedJobApplicationEntitySchema = exports.CreateJobApplicationInputSchema = exports.JobApplicationEntitySchema = exports.BaseJobApplicationEntitySchema = exports.MinimalJobApplicationEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const user_1 = require("./user");
|
|
@@ -144,3 +144,22 @@ exports.TrackedJobApplicationEntitySchema = zod_openapi_1.z.object({
|
|
|
144
144
|
exports.UpdateJobApplicationStatusSchema = zod_openapi_1.z.object({
|
|
145
145
|
applicationStatus: zod_openapi_1.z.enum(constants_1.APPLICATION_STATUS),
|
|
146
146
|
});
|
|
147
|
+
exports.GetTrackedJobApplicationsInputSchema = zod_openapi_1.z.object({
|
|
148
|
+
q: zod_openapi_1.z.string().optional(),
|
|
149
|
+
status: zod_openapi_1.z
|
|
150
|
+
.enum(Object.values(constants_1.APPLICATION_STATUS))
|
|
151
|
+
.optional(),
|
|
152
|
+
jobType: zod_openapi_1.z
|
|
153
|
+
.enum(Object.values(constants_1.JOB_TYPE))
|
|
154
|
+
.optional(),
|
|
155
|
+
page: zod_openapi_1.z.coerce.number().min(1).default(1),
|
|
156
|
+
limit: zod_openapi_1.z.coerce.number().min(1).max(100).default(20),
|
|
157
|
+
});
|
|
158
|
+
exports.GetTrackedJobApplicationsOutputSchema = zod_openapi_1.z.object({
|
|
159
|
+
applications: zod_openapi_1.z.array(exports.TrackedJobApplicationEntitySchema),
|
|
160
|
+
total: zod_openapi_1.z.number(),
|
|
161
|
+
page: zod_openapi_1.z.number(),
|
|
162
|
+
totalPages: zod_openapi_1.z.number(),
|
|
163
|
+
hasNextPage: zod_openapi_1.z.boolean(),
|
|
164
|
+
hasPrevPage: zod_openapi_1.z.boolean(),
|
|
165
|
+
});
|
package/dist/schemas/job.d.ts
CHANGED
|
@@ -758,7 +758,7 @@ export declare const NormalizedJobSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
758
758
|
"Project Based": "Project Based";
|
|
759
759
|
}>>;
|
|
760
760
|
}, z.core.$strip>], "jobType">;
|
|
761
|
-
export declare const
|
|
761
|
+
export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
|
|
762
762
|
jobs: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
763
763
|
title: z.ZodString;
|
|
764
764
|
brandId: z.ZodCUID2;
|
|
@@ -966,3 +966,253 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
|
|
|
966
966
|
noOfActiveJobs: z.ZodNumber;
|
|
967
967
|
noOfArchivedJobs: z.ZodNumber;
|
|
968
968
|
}, z.core.$strip>;
|
|
969
|
+
export declare const GetJobsInputSchema: z.ZodObject<{
|
|
970
|
+
q: z.ZodOptional<z.ZodString>;
|
|
971
|
+
jobType: z.ZodOptional<z.ZodEnum<{
|
|
972
|
+
GIG: "GIG";
|
|
973
|
+
ROLE: "ROLE";
|
|
974
|
+
}>>;
|
|
975
|
+
workMode: z.ZodOptional<z.ZodEnum<{
|
|
976
|
+
Remote: "Remote";
|
|
977
|
+
Hybrid: "Hybrid";
|
|
978
|
+
"On Site": "On Site";
|
|
979
|
+
}>>;
|
|
980
|
+
location: z.ZodOptional<z.ZodEnum<{
|
|
981
|
+
Africa: "Africa";
|
|
982
|
+
Asia: "Asia";
|
|
983
|
+
Europe: "Europe";
|
|
984
|
+
"North America": "North America";
|
|
985
|
+
"South America": "South America";
|
|
986
|
+
"Middle East": "Middle East";
|
|
987
|
+
Oceania: "Oceania";
|
|
988
|
+
Global: "Global";
|
|
989
|
+
Other: "Other";
|
|
990
|
+
Remote: "Remote";
|
|
991
|
+
EMEA: "EMEA";
|
|
992
|
+
"Asia Pacific": "Asia Pacific";
|
|
993
|
+
}>>;
|
|
994
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
995
|
+
"Full Time": "Full Time";
|
|
996
|
+
"Part Time": "Part Time";
|
|
997
|
+
Freelance: "Freelance";
|
|
998
|
+
Internship: "Internship";
|
|
999
|
+
}>>;
|
|
1000
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
1001
|
+
"One Time": "One Time";
|
|
1002
|
+
Recurring: "Recurring";
|
|
1003
|
+
}>>;
|
|
1004
|
+
requiredSkills: z.ZodOptional<z.ZodString>;
|
|
1005
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1006
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1007
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1008
|
+
}, z.core.$strip>;
|
|
1009
|
+
export declare const GetJobsOutputSchema: z.ZodObject<{
|
|
1010
|
+
jobs: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1011
|
+
title: z.ZodString;
|
|
1012
|
+
brandId: z.ZodCUID2;
|
|
1013
|
+
brandName: z.ZodCUID2;
|
|
1014
|
+
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
1015
|
+
status: z.ZodEnum<{
|
|
1016
|
+
ACTIVE: "ACTIVE";
|
|
1017
|
+
DELETED: "DELETED";
|
|
1018
|
+
DRAFT: "DRAFT";
|
|
1019
|
+
ARCHIVED: "ARCHIVED";
|
|
1020
|
+
}>;
|
|
1021
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
1022
|
+
"Full Time": "Full Time";
|
|
1023
|
+
"Part Time": "Part Time";
|
|
1024
|
+
Freelance: "Freelance";
|
|
1025
|
+
Internship: "Internship";
|
|
1026
|
+
}>>;
|
|
1027
|
+
workMode: z.ZodEnum<{
|
|
1028
|
+
Remote: "Remote";
|
|
1029
|
+
Hybrid: "Hybrid";
|
|
1030
|
+
"On Site": "On Site";
|
|
1031
|
+
}>;
|
|
1032
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
1033
|
+
"One Time": "One Time";
|
|
1034
|
+
Recurring: "Recurring";
|
|
1035
|
+
}>>;
|
|
1036
|
+
location: z.ZodEnum<{
|
|
1037
|
+
Africa: "Africa";
|
|
1038
|
+
Asia: "Asia";
|
|
1039
|
+
Europe: "Europe";
|
|
1040
|
+
"North America": "North America";
|
|
1041
|
+
"South America": "South America";
|
|
1042
|
+
"Middle East": "Middle East";
|
|
1043
|
+
Oceania: "Oceania";
|
|
1044
|
+
Global: "Global";
|
|
1045
|
+
Other: "Other";
|
|
1046
|
+
Remote: "Remote";
|
|
1047
|
+
EMEA: "EMEA";
|
|
1048
|
+
"Asia Pacific": "Asia Pacific";
|
|
1049
|
+
}>;
|
|
1050
|
+
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1051
|
+
[x: string]: string;
|
|
1052
|
+
}>>>;
|
|
1053
|
+
createdAt: z.ZodDate;
|
|
1054
|
+
updatedAt: z.ZodDate;
|
|
1055
|
+
id: z.ZodCUID2;
|
|
1056
|
+
jobType: z.ZodLiteral<"GIG">;
|
|
1057
|
+
overview: z.ZodString;
|
|
1058
|
+
deliverables: z.ZodString;
|
|
1059
|
+
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
1060
|
+
aboutCompany: z.ZodOptional<z.ZodString>;
|
|
1061
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
1062
|
+
wagesMin: z.ZodOptional<z.ZodNumber>;
|
|
1063
|
+
wagesMax: z.ZodOptional<z.ZodNumber>;
|
|
1064
|
+
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
1065
|
+
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
1066
|
+
"EUR (Euro)": "EUR (Euro)";
|
|
1067
|
+
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
1068
|
+
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
1069
|
+
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
1070
|
+
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
1071
|
+
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
1072
|
+
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
1073
|
+
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
1074
|
+
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
1075
|
+
}>>;
|
|
1076
|
+
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
1077
|
+
Hourly: "Hourly";
|
|
1078
|
+
Daily: "Daily";
|
|
1079
|
+
Weekly: "Weekly";
|
|
1080
|
+
Monthly: "Monthly";
|
|
1081
|
+
"Project Based": "Project Based";
|
|
1082
|
+
}>>;
|
|
1083
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1084
|
+
id: z.ZodCUID2;
|
|
1085
|
+
title: z.ZodString;
|
|
1086
|
+
brandId: z.ZodCUID2;
|
|
1087
|
+
brandName: z.ZodCUID2;
|
|
1088
|
+
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
1089
|
+
jobType: z.ZodEnum<{
|
|
1090
|
+
GIG: "GIG";
|
|
1091
|
+
ROLE: "ROLE";
|
|
1092
|
+
}>;
|
|
1093
|
+
status: z.ZodEnum<{
|
|
1094
|
+
ACTIVE: "ACTIVE";
|
|
1095
|
+
DELETED: "DELETED";
|
|
1096
|
+
DRAFT: "DRAFT";
|
|
1097
|
+
ARCHIVED: "ARCHIVED";
|
|
1098
|
+
}>;
|
|
1099
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
1100
|
+
"Full Time": "Full Time";
|
|
1101
|
+
"Part Time": "Part Time";
|
|
1102
|
+
Freelance: "Freelance";
|
|
1103
|
+
Internship: "Internship";
|
|
1104
|
+
}>>;
|
|
1105
|
+
workMode: z.ZodEnum<{
|
|
1106
|
+
Remote: "Remote";
|
|
1107
|
+
Hybrid: "Hybrid";
|
|
1108
|
+
"On Site": "On Site";
|
|
1109
|
+
}>;
|
|
1110
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
1111
|
+
"One Time": "One Time";
|
|
1112
|
+
Recurring: "Recurring";
|
|
1113
|
+
}>>;
|
|
1114
|
+
location: z.ZodEnum<{
|
|
1115
|
+
Africa: "Africa";
|
|
1116
|
+
Asia: "Asia";
|
|
1117
|
+
Europe: "Europe";
|
|
1118
|
+
"North America": "North America";
|
|
1119
|
+
"South America": "South America";
|
|
1120
|
+
"Middle East": "Middle East";
|
|
1121
|
+
Oceania: "Oceania";
|
|
1122
|
+
Global: "Global";
|
|
1123
|
+
Other: "Other";
|
|
1124
|
+
Remote: "Remote";
|
|
1125
|
+
EMEA: "EMEA";
|
|
1126
|
+
"Asia Pacific": "Asia Pacific";
|
|
1127
|
+
}>;
|
|
1128
|
+
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1129
|
+
[x: string]: string;
|
|
1130
|
+
}>>>;
|
|
1131
|
+
createdAt: z.ZodDate;
|
|
1132
|
+
updatedAt: z.ZodDate;
|
|
1133
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1134
|
+
title: z.ZodString;
|
|
1135
|
+
brandId: z.ZodCUID2;
|
|
1136
|
+
brandName: z.ZodCUID2;
|
|
1137
|
+
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
1138
|
+
status: z.ZodEnum<{
|
|
1139
|
+
ACTIVE: "ACTIVE";
|
|
1140
|
+
DELETED: "DELETED";
|
|
1141
|
+
DRAFT: "DRAFT";
|
|
1142
|
+
ARCHIVED: "ARCHIVED";
|
|
1143
|
+
}>;
|
|
1144
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
1145
|
+
"Full Time": "Full Time";
|
|
1146
|
+
"Part Time": "Part Time";
|
|
1147
|
+
Freelance: "Freelance";
|
|
1148
|
+
Internship: "Internship";
|
|
1149
|
+
}>>;
|
|
1150
|
+
workMode: z.ZodEnum<{
|
|
1151
|
+
Remote: "Remote";
|
|
1152
|
+
Hybrid: "Hybrid";
|
|
1153
|
+
"On Site": "On Site";
|
|
1154
|
+
}>;
|
|
1155
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
1156
|
+
"One Time": "One Time";
|
|
1157
|
+
Recurring: "Recurring";
|
|
1158
|
+
}>>;
|
|
1159
|
+
location: z.ZodEnum<{
|
|
1160
|
+
Africa: "Africa";
|
|
1161
|
+
Asia: "Asia";
|
|
1162
|
+
Europe: "Europe";
|
|
1163
|
+
"North America": "North America";
|
|
1164
|
+
"South America": "South America";
|
|
1165
|
+
"Middle East": "Middle East";
|
|
1166
|
+
Oceania: "Oceania";
|
|
1167
|
+
Global: "Global";
|
|
1168
|
+
Other: "Other";
|
|
1169
|
+
Remote: "Remote";
|
|
1170
|
+
EMEA: "EMEA";
|
|
1171
|
+
"Asia Pacific": "Asia Pacific";
|
|
1172
|
+
}>;
|
|
1173
|
+
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1174
|
+
[x: string]: string;
|
|
1175
|
+
}>>>;
|
|
1176
|
+
createdAt: z.ZodDate;
|
|
1177
|
+
updatedAt: z.ZodDate;
|
|
1178
|
+
id: z.ZodCUID2;
|
|
1179
|
+
jobType: z.ZodLiteral<"ROLE">;
|
|
1180
|
+
experienceLevel: z.ZodEnum<{
|
|
1181
|
+
"0-1 year": "0-1 year";
|
|
1182
|
+
"1-3 years": "1-3 years";
|
|
1183
|
+
"3-5 years": "3-5 years";
|
|
1184
|
+
"5+ years": "5+ years";
|
|
1185
|
+
}>;
|
|
1186
|
+
overview: z.ZodString;
|
|
1187
|
+
keyResponsibilities: z.ZodString;
|
|
1188
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
1189
|
+
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
1190
|
+
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
1191
|
+
wagesMin: z.ZodOptional<z.ZodNumber>;
|
|
1192
|
+
wagesMax: z.ZodOptional<z.ZodNumber>;
|
|
1193
|
+
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
1194
|
+
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
1195
|
+
"EUR (Euro)": "EUR (Euro)";
|
|
1196
|
+
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
1197
|
+
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
1198
|
+
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
1199
|
+
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
1200
|
+
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
1201
|
+
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
1202
|
+
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
1203
|
+
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
1204
|
+
}>>;
|
|
1205
|
+
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
1206
|
+
Hourly: "Hourly";
|
|
1207
|
+
Daily: "Daily";
|
|
1208
|
+
Weekly: "Weekly";
|
|
1209
|
+
Monthly: "Monthly";
|
|
1210
|
+
"Project Based": "Project Based";
|
|
1211
|
+
}>>;
|
|
1212
|
+
}, z.core.$strip>], "jobType">>;
|
|
1213
|
+
total: z.ZodNumber;
|
|
1214
|
+
page: z.ZodNumber;
|
|
1215
|
+
totalPages: z.ZodNumber;
|
|
1216
|
+
hasNextPage: z.ZodBoolean;
|
|
1217
|
+
hasPrevPage: z.ZodBoolean;
|
|
1218
|
+
}, z.core.$strip>;
|
package/dist/schemas/job.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetJobsOutputSchema = exports.NormalizedJobSchema = exports.UpdateJobInputSchema = exports.UpdateGigJobInputSchema = exports.UpdateRoleJobInputSchema = exports.CreateGigJobInputSchema = exports.CreateRoleJobInputSchema = exports.CreateJobInputSchema = exports.JobWithRoleDetailsEntitySchema = exports.RoleJobEntitySchema = exports.JobWithGigDetailsEntitySchema = exports.GigJobEntitySchema = exports.JobEntitySchema = exports.JobIdSchema = exports.BaseJobEntitySchema = void 0;
|
|
3
|
+
exports.GetJobsOutputSchema = exports.GetJobsInputSchema = exports.GetCreatedJobsOutputSchema = exports.NormalizedJobSchema = exports.UpdateJobInputSchema = exports.UpdateGigJobInputSchema = exports.UpdateRoleJobInputSchema = exports.CreateGigJobInputSchema = exports.CreateRoleJobInputSchema = exports.CreateJobInputSchema = exports.JobWithRoleDetailsEntitySchema = exports.RoleJobEntitySchema = exports.JobWithGigDetailsEntitySchema = exports.GigJobEntitySchema = exports.JobEntitySchema = exports.JobIdSchema = exports.BaseJobEntitySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const JobSectionEnum = zod_1.z.enum(Object.values(constants_1.JOB_SECTIONS));
|
|
@@ -194,9 +194,42 @@ exports.NormalizedJobSchema = zod_1.z.discriminatedUnion("jobType", [
|
|
|
194
194
|
exports.JobEntitySchema,
|
|
195
195
|
exports.JobWithRoleDetailsEntitySchema,
|
|
196
196
|
]);
|
|
197
|
-
exports.
|
|
197
|
+
exports.GetCreatedJobsOutputSchema = zod_1.z.object({
|
|
198
198
|
jobs: zod_1.z.array(exports.NormalizedJobSchema),
|
|
199
199
|
noOfJobs: zod_1.z.number(),
|
|
200
200
|
noOfActiveJobs: zod_1.z.number(),
|
|
201
201
|
noOfArchivedJobs: zod_1.z.number(),
|
|
202
202
|
});
|
|
203
|
+
exports.GetJobsInputSchema = zod_1.z.object({
|
|
204
|
+
q: zod_1.z.string().optional(),
|
|
205
|
+
jobType: zod_1.z
|
|
206
|
+
.enum(Object.values(constants_1.JOB_TYPE))
|
|
207
|
+
.optional(),
|
|
208
|
+
workMode: zod_1.z
|
|
209
|
+
.enum(Object.values(constants_1.WORK_MODE))
|
|
210
|
+
.optional(),
|
|
211
|
+
location: zod_1.z
|
|
212
|
+
.enum(Object.values(constants_1.JOB_LOCATIONS))
|
|
213
|
+
.optional(),
|
|
214
|
+
employmentType: zod_1.z
|
|
215
|
+
.enum(Object.values(constants_1.EMPLOYMENT_TYPE))
|
|
216
|
+
.optional(),
|
|
217
|
+
gigType: zod_1.z
|
|
218
|
+
.enum(Object.values(constants_1.GIG_TYPE))
|
|
219
|
+
.optional(),
|
|
220
|
+
requiredSkills: zod_1.z
|
|
221
|
+
.string()
|
|
222
|
+
.optional()
|
|
223
|
+
.describe("Comma-separated: React,Node.js"),
|
|
224
|
+
status: zod_1.z.string().optional(),
|
|
225
|
+
page: zod_1.z.coerce.number().min(1).default(1),
|
|
226
|
+
limit: zod_1.z.coerce.number().min(1).max(100).default(20),
|
|
227
|
+
});
|
|
228
|
+
exports.GetJobsOutputSchema = zod_1.z.object({
|
|
229
|
+
jobs: zod_1.z.array(exports.NormalizedJobSchema),
|
|
230
|
+
total: zod_1.z.number(),
|
|
231
|
+
page: zod_1.z.number(),
|
|
232
|
+
totalPages: zod_1.z.number(),
|
|
233
|
+
hasNextPage: zod_1.z.boolean(),
|
|
234
|
+
hasPrevPage: zod_1.z.boolean(),
|
|
235
|
+
});
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
|
-
import { JobApplicationEntitySchema, CreateJobApplicationInputSchema, UpdateJobApplicationStatusSchema, MinimalJobApplicationEntitySchema, BaseJobApplicationEntitySchema, TrackedJobApplicationEntitySchema } from "../schemas/job-application";
|
|
2
|
+
import { JobApplicationEntitySchema, CreateJobApplicationInputSchema, UpdateJobApplicationStatusSchema, MinimalJobApplicationEntitySchema, BaseJobApplicationEntitySchema, TrackedJobApplicationEntitySchema, GetTrackedJobApplicationsInputSchema, GetTrackedJobApplicationsOutputSchema } from "../schemas/job-application";
|
|
3
3
|
export type CreateJobApplicationInput = z.infer<typeof CreateJobApplicationInputSchema>;
|
|
4
4
|
export type UpdateJobApplicationStatusInput = z.infer<typeof UpdateJobApplicationStatusSchema>;
|
|
5
5
|
export type JobApplicationEntity = z.infer<typeof JobApplicationEntitySchema>;
|
|
6
6
|
export type MinimalJobApplicationEntity = z.infer<typeof MinimalJobApplicationEntitySchema>;
|
|
7
7
|
export type BaseJobApplicationEntity = z.infer<typeof BaseJobApplicationEntitySchema>;
|
|
8
8
|
export type TrackedJobApplicationEntity = z.infer<typeof TrackedJobApplicationEntitySchema>;
|
|
9
|
+
export type GetTrackedJobApplicationsInput = z.infer<typeof GetTrackedJobApplicationsInputSchema>;
|
|
10
|
+
export type GetTrackedJobApplicationsOutput = z.infer<typeof GetTrackedJobApplicationsOutputSchema>;
|
package/dist/types/job.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { JobEntitySchema, GigJobEntitySchema, RoleJobEntitySchema, CreateJobInputSchema, CreateRoleJobInputSchema, CreateGigJobInputSchema, UpdateRoleJobInputSchema, UpdateGigJobInputSchema, UpdateJobInputSchema, JobWithGigDetailsEntitySchema, JobWithRoleDetailsEntitySchema, BaseJobEntitySchema, JobIdSchema, GetJobsOutputSchema, NormalizedJobSchema } from "../schemas/job";
|
|
2
|
+
import { JobEntitySchema, GigJobEntitySchema, RoleJobEntitySchema, CreateJobInputSchema, CreateRoleJobInputSchema, CreateGigJobInputSchema, UpdateRoleJobInputSchema, UpdateGigJobInputSchema, UpdateJobInputSchema, JobWithGigDetailsEntitySchema, JobWithRoleDetailsEntitySchema, BaseJobEntitySchema, JobIdSchema, GetJobsOutputSchema, NormalizedJobSchema, GetJobsInputSchema, GetCreatedJobsOutputSchema } from "../schemas/job";
|
|
3
3
|
export type BaseJobEntity = z.infer<typeof BaseJobEntitySchema>;
|
|
4
4
|
export type JobIdInput = z.infer<typeof JobIdSchema>;
|
|
5
5
|
export type JobEntity = z.infer<typeof JobEntitySchema>;
|
|
@@ -20,5 +20,7 @@ export type UpdateJobOutput = z.infer<typeof BaseJobEntitySchema>;
|
|
|
20
20
|
export type GetJobOutput = z.infer<typeof BaseJobEntitySchema>;
|
|
21
21
|
export type JobWithGigDetailsEntity = z.infer<typeof JobWithGigDetailsEntitySchema>;
|
|
22
22
|
export type JobWithRoleDetailsEntity = z.infer<typeof JobWithRoleDetailsEntitySchema>;
|
|
23
|
+
export type GetJobsInput = z.infer<typeof GetJobsInputSchema>;
|
|
23
24
|
export type GetJobsOutput = z.infer<typeof GetJobsOutputSchema>;
|
|
25
|
+
export type GetCreatedJobsOutput = z.infer<typeof GetCreatedJobsOutputSchema>;
|
|
24
26
|
export type NormalizedJobEntity = z.infer<typeof NormalizedJobSchema>;
|
package/package.json
CHANGED
|
@@ -6,7 +6,9 @@ import {
|
|
|
6
6
|
ExperienceLevel,
|
|
7
7
|
JOB_AVAILABILITY_TYPES,
|
|
8
8
|
JOB_SECTIONS,
|
|
9
|
+
JOB_TYPE,
|
|
9
10
|
JobAvailabilityTypes,
|
|
11
|
+
JobType,
|
|
10
12
|
} from "../constants";
|
|
11
13
|
import { MinimalUserSchema } from "./user";
|
|
12
14
|
import { NormalizedJobSchema } from "./job";
|
|
@@ -212,3 +214,29 @@ export const TrackedJobApplicationEntitySchema = z.object({
|
|
|
212
214
|
export const UpdateJobApplicationStatusSchema = z.object({
|
|
213
215
|
applicationStatus: z.enum(APPLICATION_STATUS),
|
|
214
216
|
});
|
|
217
|
+
|
|
218
|
+
export const GetTrackedJobApplicationsInputSchema = z.object({
|
|
219
|
+
q: z.string().optional(),
|
|
220
|
+
status: z
|
|
221
|
+
.enum(
|
|
222
|
+
Object.values(APPLICATION_STATUS) as [
|
|
223
|
+
ApplicationStatus,
|
|
224
|
+
...ApplicationStatus[]
|
|
225
|
+
]
|
|
226
|
+
)
|
|
227
|
+
.optional(),
|
|
228
|
+
jobType: z
|
|
229
|
+
.enum(Object.values(JOB_TYPE) as [JobType, ...JobType[]])
|
|
230
|
+
.optional(),
|
|
231
|
+
page: z.coerce.number().min(1).default(1),
|
|
232
|
+
limit: z.coerce.number().min(1).max(100).default(20),
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
export const GetTrackedJobApplicationsOutputSchema = z.object({
|
|
236
|
+
applications: z.array(TrackedJobApplicationEntitySchema),
|
|
237
|
+
total: z.number(),
|
|
238
|
+
page: z.number(),
|
|
239
|
+
totalPages: z.number(),
|
|
240
|
+
hasNextPage: z.boolean(),
|
|
241
|
+
hasPrevPage: z.boolean(),
|
|
242
|
+
});
|
package/src/schemas/job.ts
CHANGED
|
@@ -196,7 +196,7 @@ export const CreateJobInputSchema = CreateJobInputBaseSchema.superRefine(
|
|
|
196
196
|
});
|
|
197
197
|
|
|
198
198
|
export const CreateRoleJobInputSchema = z
|
|
199
|
-
.object({
|
|
199
|
+
.object({
|
|
200
200
|
id: z.cuid2(),
|
|
201
201
|
experienceLevel: z.enum(
|
|
202
202
|
Object.values(EXPERIENCE_LEVELS) as [
|
|
@@ -276,9 +276,47 @@ export const NormalizedJobSchema = z.discriminatedUnion("jobType", [
|
|
|
276
276
|
JobWithRoleDetailsEntitySchema,
|
|
277
277
|
]);
|
|
278
278
|
|
|
279
|
-
export const
|
|
279
|
+
export const GetCreatedJobsOutputSchema = z.object({
|
|
280
280
|
jobs: z.array(NormalizedJobSchema),
|
|
281
281
|
noOfJobs: z.number(),
|
|
282
282
|
noOfActiveJobs: z.number(),
|
|
283
283
|
noOfArchivedJobs: z.number(),
|
|
284
284
|
});
|
|
285
|
+
|
|
286
|
+
export const GetJobsInputSchema = z.object({
|
|
287
|
+
q: z.string().optional(),
|
|
288
|
+
jobType: z
|
|
289
|
+
.enum(Object.values(JOB_TYPE) as [JobType, ...JobType[]])
|
|
290
|
+
.optional(),
|
|
291
|
+
workMode: z
|
|
292
|
+
.enum(Object.values(WORK_MODE) as [WorkMode, ...WorkMode[]])
|
|
293
|
+
.optional(),
|
|
294
|
+
location: z
|
|
295
|
+
.enum(Object.values(JOB_LOCATIONS) as [JobLocation, ...JobLocation[]])
|
|
296
|
+
.optional(),
|
|
297
|
+
employmentType: z
|
|
298
|
+
.enum(
|
|
299
|
+
Object.values(EMPLOYMENT_TYPE) as [EmploymentType, ...EmploymentType[]]
|
|
300
|
+
)
|
|
301
|
+
.optional(),
|
|
302
|
+
gigType: z
|
|
303
|
+
.enum(Object.values(GIG_TYPE) as [GigType, ...GigType[]])
|
|
304
|
+
.optional(),
|
|
305
|
+
requiredSkills: z
|
|
306
|
+
.string()
|
|
307
|
+
.optional()
|
|
308
|
+
.describe("Comma-separated: React,Node.js"),
|
|
309
|
+
|
|
310
|
+
status: z.string().optional(),
|
|
311
|
+
page: z.coerce.number().min(1).default(1),
|
|
312
|
+
limit: z.coerce.number().min(1).max(100).default(20),
|
|
313
|
+
});
|
|
314
|
+
|
|
315
|
+
export const GetJobsOutputSchema = z.object({
|
|
316
|
+
jobs: z.array(NormalizedJobSchema),
|
|
317
|
+
total: z.number(),
|
|
318
|
+
page: z.number(),
|
|
319
|
+
totalPages: z.number(),
|
|
320
|
+
hasNextPage: z.boolean(),
|
|
321
|
+
hasPrevPage: z.boolean(),
|
|
322
|
+
});
|
|
@@ -6,6 +6,8 @@ import {
|
|
|
6
6
|
MinimalJobApplicationEntitySchema,
|
|
7
7
|
BaseJobApplicationEntitySchema,
|
|
8
8
|
TrackedJobApplicationEntitySchema,
|
|
9
|
+
GetTrackedJobApplicationsInputSchema,
|
|
10
|
+
GetTrackedJobApplicationsOutputSchema,
|
|
9
11
|
} from "../schemas/job-application";
|
|
10
12
|
|
|
11
13
|
export type CreateJobApplicationInput = z.infer<
|
|
@@ -29,3 +31,11 @@ export type BaseJobApplicationEntity = z.infer<
|
|
|
29
31
|
export type TrackedJobApplicationEntity = z.infer<
|
|
30
32
|
typeof TrackedJobApplicationEntitySchema
|
|
31
33
|
>;
|
|
34
|
+
|
|
35
|
+
export type GetTrackedJobApplicationsInput = z.infer<
|
|
36
|
+
typeof GetTrackedJobApplicationsInputSchema
|
|
37
|
+
>;
|
|
38
|
+
|
|
39
|
+
export type GetTrackedJobApplicationsOutput = z.infer<
|
|
40
|
+
typeof GetTrackedJobApplicationsOutputSchema
|
|
41
|
+
>;
|
package/src/types/job.ts
CHANGED
|
@@ -15,6 +15,8 @@ import {
|
|
|
15
15
|
JobIdSchema,
|
|
16
16
|
GetJobsOutputSchema,
|
|
17
17
|
NormalizedJobSchema,
|
|
18
|
+
GetJobsInputSchema,
|
|
19
|
+
GetCreatedJobsOutputSchema,
|
|
18
20
|
} from "../schemas/job";
|
|
19
21
|
|
|
20
22
|
export type BaseJobEntity = z.infer<typeof BaseJobEntitySchema>;
|
|
@@ -61,6 +63,7 @@ export type JobWithRoleDetailsEntity = z.infer<
|
|
|
61
63
|
typeof JobWithRoleDetailsEntitySchema
|
|
62
64
|
>;
|
|
63
65
|
|
|
66
|
+
export type GetJobsInput = z.infer<typeof GetJobsInputSchema>;
|
|
64
67
|
export type GetJobsOutput = z.infer<typeof GetJobsOutputSchema>;
|
|
65
|
-
|
|
68
|
+
export type GetCreatedJobsOutput = z.infer<typeof GetCreatedJobsOutputSchema>;
|
|
66
69
|
export type NormalizedJobEntity = z.infer<typeof NormalizedJobSchema>;
|