@zyacreatives/shared 2.1.15 → 2.1.17

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.
@@ -76,8 +76,8 @@ export declare const BaseJobApplicationEntitySchema: z.ZodObject<{
76
76
  wagesAmount: z.ZodNullable<z.ZodNumber>;
77
77
  }, z.core.$strip>;
78
78
  export declare const JobApplicationEntitySchema: z.ZodObject<{
79
- firstName: z.ZodString;
80
- lastName: z.ZodString;
79
+ firstName: z.ZodOptional<z.ZodString>;
80
+ lastName: z.ZodOptional<z.ZodString>;
81
81
  jobId: z.ZodCUID2;
82
82
  user: z.ZodObject<{
83
83
  id: z.ZodCUID2;
@@ -92,15 +92,15 @@ export declare const JobApplicationEntitySchema: z.ZodObject<{
92
92
  ADMIN: "ADMIN";
93
93
  }>;
94
94
  }, z.core.$strip>;
95
- emailAddress: z.ZodEmail;
95
+ emailAddress: z.ZodOptional<z.ZodEmail>;
96
96
  phoneNumber: z.ZodOptional<z.ZodString>;
97
- currentRole: z.ZodString;
98
- experienceLevel: z.ZodEnum<{
97
+ currentRole: z.ZodOptional<z.ZodString>;
98
+ experienceLevel: z.ZodOptional<z.ZodEnum<{
99
99
  "0-1 year": "0-1 year";
100
100
  "1-3 years": "1-3 years";
101
101
  "3-5 years": "3-5 years";
102
102
  "5+ years": "5+ years";
103
- }>;
103
+ }>>;
104
104
  resumeUrl: z.ZodURL;
105
105
  workSampleUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{
106
106
  url: z.ZodURL;
@@ -113,27 +113,27 @@ export declare const JobApplicationEntitySchema: z.ZodObject<{
113
113
  projectId: z.ZodCUID2;
114
114
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
115
115
  }, z.core.$strip>>>;
116
- applicationStatus: z.ZodEnum<{
116
+ applicationStatus: z.ZodDefault<z.ZodEnum<{
117
117
  "Application Sent": "Application Sent";
118
118
  Opened: "Opened";
119
119
  Rejected: "Rejected";
120
120
  Offered: "Offered";
121
121
  Hired: "Hired";
122
- }>;
122
+ }>>;
123
123
  applicantId: z.ZodCUID2;
124
124
  linkUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{
125
125
  url: z.ZodURL;
126
126
  isPortfolioUrl: z.ZodDefault<z.ZodBoolean>;
127
127
  }, z.core.$strip>>>;
128
- coverLetter: z.ZodString;
129
- receiveEmailUpdates: z.ZodBoolean;
130
- wagesAmount: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
131
- availability: z.ZodEnum<{
128
+ coverLetter: z.ZodOptional<z.ZodString>;
129
+ receiveEmailUpdates: z.ZodOptional<z.ZodBoolean>;
130
+ wagesAmount: z.ZodOptional<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
131
+ availability: z.ZodOptional<z.ZodEnum<{
132
132
  "Immediate (Within 1 week)": "Immediate (Within 1 week)";
133
133
  "2 weeks notice": "2 weeks notice";
134
134
  "1 month notice": "1 month notice";
135
135
  Flexible: "Flexible";
136
- }>;
136
+ }>>;
137
137
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
138
138
  updatedAt: z.ZodCoercedDate<unknown>;
139
139
  }, z.core.$strip>;
@@ -270,6 +270,56 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
270
270
  Monthly: "Monthly";
271
271
  "Project Based": "Project Based";
272
272
  }>>;
273
+ }, z.core.$strip>, z.ZodObject<{
274
+ id: z.ZodCUID2;
275
+ title: z.ZodString;
276
+ brandId: z.ZodCUID2;
277
+ brandName: z.ZodCUID2;
278
+ brandImgUrl: z.ZodOptional<z.ZodCUID2>;
279
+ jobType: z.ZodEnum<{
280
+ GIG: "GIG";
281
+ ROLE: "ROLE";
282
+ }>;
283
+ status: z.ZodEnum<{
284
+ ACTIVE: "ACTIVE";
285
+ DELETED: "DELETED";
286
+ DRAFT: "DRAFT";
287
+ ARCHIVED: "ARCHIVED";
288
+ }>;
289
+ employmentType: z.ZodOptional<z.ZodEnum<{
290
+ "Full Time": "Full Time";
291
+ "Part Time": "Part Time";
292
+ Freelance: "Freelance";
293
+ Internship: "Internship";
294
+ }>>;
295
+ workMode: z.ZodEnum<{
296
+ Remote: "Remote";
297
+ Hybrid: "Hybrid";
298
+ "On Site": "On Site";
299
+ }>;
300
+ gigType: z.ZodOptional<z.ZodEnum<{
301
+ "One Time": "One Time";
302
+ Recurring: "Recurring";
303
+ }>>;
304
+ location: z.ZodEnum<{
305
+ Africa: "Africa";
306
+ Asia: "Asia";
307
+ Europe: "Europe";
308
+ "North America": "North America";
309
+ "South America": "South America";
310
+ "Middle East": "Middle East";
311
+ Oceania: "Oceania";
312
+ Global: "Global";
313
+ Other: "Other";
314
+ Remote: "Remote";
315
+ EMEA: "EMEA";
316
+ "Asia Pacific": "Asia Pacific";
317
+ }>;
318
+ jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
319
+ [x: string]: string;
320
+ }>>>;
321
+ createdAt: z.ZodDate;
322
+ updatedAt: z.ZodDate;
273
323
  }, z.core.$strip>, z.ZodObject<{
274
324
  title: z.ZodString;
275
325
  brandId: z.ZodCUID2;
@@ -54,14 +54,16 @@ exports.BaseJobApplicationEntitySchema = zod_openapi_1.z.object({
54
54
  wagesAmount: zod_openapi_1.z.number().nullable(),
55
55
  });
56
56
  exports.JobApplicationEntitySchema = zod_openapi_1.z.object({
57
- firstName: zod_openapi_1.z.string(),
58
- lastName: zod_openapi_1.z.string(),
57
+ firstName: zod_openapi_1.z.string().optional(),
58
+ lastName: zod_openapi_1.z.string().optional(),
59
59
  jobId: zod_openapi_1.z.cuid2(),
60
60
  user: user_1.MinimalUserSchema,
61
- emailAddress: zod_openapi_1.z.email(),
61
+ emailAddress: zod_openapi_1.z.email().optional(),
62
62
  phoneNumber: zod_openapi_1.z.string().optional(),
63
- currentRole: zod_openapi_1.z.string(),
64
- experienceLevel: zod_openapi_1.z.enum(Object.values(constants_1.EXPERIENCE_LEVELS)),
63
+ currentRole: zod_openapi_1.z.string().optional(),
64
+ experienceLevel: zod_openapi_1.z
65
+ .enum(Object.values(constants_1.EXPERIENCE_LEVELS))
66
+ .optional(),
65
67
  resumeUrl: zod_openapi_1.z.url(),
66
68
  workSampleUrls: zod_openapi_1.z
67
69
  .array(zod_openapi_1.z.object({
@@ -78,15 +80,19 @@ exports.JobApplicationEntitySchema = zod_openapi_1.z.object({
78
80
  tags: zod_openapi_1.z.array(zod_openapi_1.z.string()).optional(),
79
81
  }))
80
82
  .optional(),
81
- applicationStatus: zod_openapi_1.z.enum(Object.values(constants_1.APPLICATION_STATUS)),
83
+ applicationStatus: zod_openapi_1.z
84
+ .enum(Object.values(constants_1.APPLICATION_STATUS))
85
+ .default("Application Sent"),
82
86
  applicantId: zod_openapi_1.z.cuid2(),
83
87
  linkUrls: zod_openapi_1.z
84
88
  .array(zod_openapi_1.z.object({ url: zod_openapi_1.z.url(), isPortfolioUrl: zod_openapi_1.z.boolean().default(false) }))
85
89
  .optional(),
86
- coverLetter: zod_openapi_1.z.string(),
87
- receiveEmailUpdates: zod_openapi_1.z.boolean(),
88
- wagesAmount: zod_openapi_1.z.coerce.number().optional(),
89
- availability: zod_openapi_1.z.enum(Object.values(constants_1.JOB_AVAILABILITY_TYPES)),
90
+ coverLetter: zod_openapi_1.z.string().optional(),
91
+ receiveEmailUpdates: zod_openapi_1.z.boolean().optional(),
92
+ wagesAmount: zod_openapi_1.z.coerce.number().optional().optional(),
93
+ availability: zod_openapi_1.z
94
+ .enum(Object.values(constants_1.JOB_AVAILABILITY_TYPES))
95
+ .optional(),
90
96
  createdAt: zod_openapi_1.z.coerce
91
97
  .date()
92
98
  .optional()
@@ -133,7 +139,7 @@ exports.TrackedJobApplicationEntitySchema = zod_openapi_1.z.object({
133
139
  id: zod_openapi_1.z.cuid2(),
134
140
  createdAt: zod_openapi_1.z.coerce.date(),
135
141
  applicationStatus: zod_openapi_1.z.enum(Object.values(constants_1.APPLICATION_STATUS)),
136
- job: job_1.NormalizedJobOutputSchema,
142
+ job: job_1.NormalizedJobSchema,
137
143
  });
138
144
  exports.UpdateJobApplicationStatusSchema = zod_openapi_1.z.object({
139
145
  applicationStatus: zod_openapi_1.z.enum(constants_1.APPLICATION_STATUS),
@@ -555,7 +555,7 @@ export declare const UpdateJobInputSchema: z.ZodObject<{
555
555
  ARCHIVED: "ARCHIVED";
556
556
  }>>;
557
557
  }, z.core.$strip>;
558
- export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
558
+ export declare const NormalizedJobSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
559
559
  title: z.ZodString;
560
560
  brandId: z.ZodCUID2;
561
561
  brandName: z.ZodCUID2;
@@ -628,6 +628,56 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
628
628
  Monthly: "Monthly";
629
629
  "Project Based": "Project Based";
630
630
  }>>;
631
+ }, z.core.$strip>, z.ZodObject<{
632
+ id: z.ZodCUID2;
633
+ title: z.ZodString;
634
+ brandId: z.ZodCUID2;
635
+ brandName: z.ZodCUID2;
636
+ brandImgUrl: z.ZodOptional<z.ZodCUID2>;
637
+ jobType: z.ZodEnum<{
638
+ GIG: "GIG";
639
+ ROLE: "ROLE";
640
+ }>;
641
+ status: z.ZodEnum<{
642
+ ACTIVE: "ACTIVE";
643
+ DELETED: "DELETED";
644
+ DRAFT: "DRAFT";
645
+ ARCHIVED: "ARCHIVED";
646
+ }>;
647
+ employmentType: z.ZodOptional<z.ZodEnum<{
648
+ "Full Time": "Full Time";
649
+ "Part Time": "Part Time";
650
+ Freelance: "Freelance";
651
+ Internship: "Internship";
652
+ }>>;
653
+ workMode: z.ZodEnum<{
654
+ Remote: "Remote";
655
+ Hybrid: "Hybrid";
656
+ "On Site": "On Site";
657
+ }>;
658
+ gigType: z.ZodOptional<z.ZodEnum<{
659
+ "One Time": "One Time";
660
+ Recurring: "Recurring";
661
+ }>>;
662
+ location: z.ZodEnum<{
663
+ Africa: "Africa";
664
+ Asia: "Asia";
665
+ Europe: "Europe";
666
+ "North America": "North America";
667
+ "South America": "South America";
668
+ "Middle East": "Middle East";
669
+ Oceania: "Oceania";
670
+ Global: "Global";
671
+ Other: "Other";
672
+ Remote: "Remote";
673
+ EMEA: "EMEA";
674
+ "Asia Pacific": "Asia Pacific";
675
+ }>;
676
+ jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
677
+ [x: string]: string;
678
+ }>>>;
679
+ createdAt: z.ZodDate;
680
+ updatedAt: z.ZodDate;
631
681
  }, z.core.$strip>, z.ZodObject<{
632
682
  title: z.ZodString;
633
683
  brandId: z.ZodCUID2;
@@ -782,6 +832,56 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
782
832
  Monthly: "Monthly";
783
833
  "Project Based": "Project Based";
784
834
  }>>;
835
+ }, z.core.$strip>, z.ZodObject<{
836
+ id: z.ZodCUID2;
837
+ title: z.ZodString;
838
+ brandId: z.ZodCUID2;
839
+ brandName: z.ZodCUID2;
840
+ brandImgUrl: z.ZodOptional<z.ZodCUID2>;
841
+ jobType: z.ZodEnum<{
842
+ GIG: "GIG";
843
+ ROLE: "ROLE";
844
+ }>;
845
+ status: z.ZodEnum<{
846
+ ACTIVE: "ACTIVE";
847
+ DELETED: "DELETED";
848
+ DRAFT: "DRAFT";
849
+ ARCHIVED: "ARCHIVED";
850
+ }>;
851
+ employmentType: z.ZodOptional<z.ZodEnum<{
852
+ "Full Time": "Full Time";
853
+ "Part Time": "Part Time";
854
+ Freelance: "Freelance";
855
+ Internship: "Internship";
856
+ }>>;
857
+ workMode: z.ZodEnum<{
858
+ Remote: "Remote";
859
+ Hybrid: "Hybrid";
860
+ "On Site": "On Site";
861
+ }>;
862
+ gigType: z.ZodOptional<z.ZodEnum<{
863
+ "One Time": "One Time";
864
+ Recurring: "Recurring";
865
+ }>>;
866
+ location: z.ZodEnum<{
867
+ Africa: "Africa";
868
+ Asia: "Asia";
869
+ Europe: "Europe";
870
+ "North America": "North America";
871
+ "South America": "South America";
872
+ "Middle East": "Middle East";
873
+ Oceania: "Oceania";
874
+ Global: "Global";
875
+ Other: "Other";
876
+ Remote: "Remote";
877
+ EMEA: "EMEA";
878
+ "Asia Pacific": "Asia Pacific";
879
+ }>;
880
+ jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
881
+ [x: string]: string;
882
+ }>>>;
883
+ createdAt: z.ZodDate;
884
+ updatedAt: z.ZodDate;
785
885
  }, z.core.$strip>, z.ZodObject<{
786
886
  title: z.ZodString;
787
887
  brandId: z.ZodCUID2;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetJobsOutputSchema = exports.NormalizedJobOutputSchema = 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.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));
@@ -189,12 +189,13 @@ exports.UpdateJobInputSchema = CreateJobInputBaseSchema.partial().extend({
189
189
  .enum(Object.values(constants_1.JOB_STATUS))
190
190
  .optional(),
191
191
  });
192
- exports.NormalizedJobOutputSchema = zod_1.z.discriminatedUnion("jobType", [
192
+ exports.NormalizedJobSchema = zod_1.z.discriminatedUnion("jobType", [
193
193
  exports.JobWithGigDetailsEntitySchema,
194
+ exports.JobEntitySchema,
194
195
  exports.JobWithRoleDetailsEntitySchema,
195
196
  ]);
196
197
  exports.GetJobsOutputSchema = zod_1.z.object({
197
- jobs: zod_1.z.array(exports.NormalizedJobOutputSchema),
198
+ jobs: zod_1.z.array(exports.NormalizedJobSchema),
198
199
  noOfJobs: zod_1.z.number(),
199
200
  noOfActiveJobs: zod_1.z.number(),
200
201
  noOfArchivedJobs: zod_1.z.number(),
@@ -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 } from "../schemas/job";
2
+ import { JobEntitySchema, GigJobEntitySchema, RoleJobEntitySchema, CreateJobInputSchema, CreateRoleJobInputSchema, CreateGigJobInputSchema, UpdateRoleJobInputSchema, UpdateGigJobInputSchema, UpdateJobInputSchema, JobWithGigDetailsEntitySchema, JobWithRoleDetailsEntitySchema, BaseJobEntitySchema, JobIdSchema, GetJobsOutputSchema, NormalizedJobSchema } 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>;
@@ -21,3 +21,4 @@ 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
23
  export type GetJobsOutput = z.infer<typeof GetJobsOutputSchema>;
24
+ export type NormalizedJobEntity = z.infer<typeof NormalizedJobSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.1.15",
3
+ "version": "2.1.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,7 +9,7 @@ import {
9
9
  JobAvailabilityTypes,
10
10
  } from "../constants";
11
11
  import { MinimalUserSchema } from "./user";
12
- import { NormalizedJobOutputSchema } from "./job";
12
+ import { NormalizedJobSchema } from "./job";
13
13
 
14
14
  export const MinimalJobApplicationEntitySchema = z.object({
15
15
  user: MinimalUserSchema,
@@ -81,16 +81,21 @@ export const BaseJobApplicationEntitySchema = z.object({
81
81
  });
82
82
 
83
83
  export const JobApplicationEntitySchema = z.object({
84
- firstName: z.string(),
85
- lastName: z.string(),
84
+ firstName: z.string().optional(),
85
+ lastName: z.string().optional(),
86
86
  jobId: z.cuid2(),
87
87
  user: MinimalUserSchema,
88
- emailAddress: z.email(),
88
+ emailAddress: z.email().optional(),
89
89
  phoneNumber: z.string().optional(),
90
- currentRole: z.string(),
91
- experienceLevel: z.enum(
92
- Object.values(EXPERIENCE_LEVELS) as [ExperienceLevel, ...ExperienceLevel[]]
93
- ),
90
+ currentRole: z.string().optional(),
91
+ experienceLevel: z
92
+ .enum(
93
+ Object.values(EXPERIENCE_LEVELS) as [
94
+ ExperienceLevel,
95
+ ...ExperienceLevel[]
96
+ ]
97
+ )
98
+ .optional(),
94
99
  resumeUrl: z.url(),
95
100
  workSampleUrls: z
96
101
  .array(
@@ -111,27 +116,31 @@ export const JobApplicationEntitySchema = z.object({
111
116
  })
112
117
  )
113
118
  .optional(),
114
- applicationStatus: z.enum(
115
- Object.values(APPLICATION_STATUS) as [
116
- ApplicationStatus,
117
- ...ApplicationStatus[]
118
- ]
119
- ),
119
+ applicationStatus: z
120
+ .enum(
121
+ Object.values(APPLICATION_STATUS) as [
122
+ ApplicationStatus,
123
+ ...ApplicationStatus[]
124
+ ]
125
+ )
126
+ .default("Application Sent"),
120
127
  applicantId: z.cuid2(),
121
128
  linkUrls: z
122
129
  .array(
123
130
  z.object({ url: z.url(), isPortfolioUrl: z.boolean().default(false) })
124
131
  )
125
132
  .optional(),
126
- coverLetter: z.string(),
127
- receiveEmailUpdates: z.boolean(),
128
- wagesAmount: z.coerce.number().optional(),
129
- availability: z.enum(
130
- Object.values(JOB_AVAILABILITY_TYPES) as [
131
- JobAvailabilityTypes,
132
- ...JobAvailabilityTypes[]
133
- ]
134
- ),
133
+ coverLetter: z.string().optional(),
134
+ receiveEmailUpdates: z.boolean().optional(),
135
+ wagesAmount: z.coerce.number().optional().optional(),
136
+ availability: z
137
+ .enum(
138
+ Object.values(JOB_AVAILABILITY_TYPES) as [
139
+ JobAvailabilityTypes,
140
+ ...JobAvailabilityTypes[]
141
+ ]
142
+ )
143
+ .optional(),
135
144
  createdAt: z.coerce
136
145
  .date()
137
146
  .optional()
@@ -197,7 +206,7 @@ export const TrackedJobApplicationEntitySchema = z.object({
197
206
  ...ApplicationStatus[]
198
207
  ]
199
208
  ),
200
- job: NormalizedJobOutputSchema,
209
+ job: NormalizedJobSchema,
201
210
  });
202
211
 
203
212
  export const UpdateJobApplicationStatusSchema = z.object({
@@ -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 [
@@ -270,13 +270,14 @@ export const UpdateJobInputSchema = CreateJobInputBaseSchema.partial().extend({
270
270
  .optional(),
271
271
  });
272
272
 
273
- export const NormalizedJobOutputSchema = z.discriminatedUnion("jobType", [
273
+ export const NormalizedJobSchema = z.discriminatedUnion("jobType", [
274
274
  JobWithGigDetailsEntitySchema,
275
+ JobEntitySchema,
275
276
  JobWithRoleDetailsEntitySchema,
276
277
  ]);
277
278
 
278
279
  export const GetJobsOutputSchema = z.object({
279
- jobs: z.array(NormalizedJobOutputSchema),
280
+ jobs: z.array(NormalizedJobSchema),
280
281
  noOfJobs: z.number(),
281
282
  noOfActiveJobs: z.number(),
282
283
  noOfArchivedJobs: z.number(),
package/src/types/job.ts CHANGED
@@ -14,6 +14,7 @@ import {
14
14
  BaseJobEntitySchema,
15
15
  JobIdSchema,
16
16
  GetJobsOutputSchema,
17
+ NormalizedJobSchema,
17
18
  } from "../schemas/job";
18
19
 
19
20
  export type BaseJobEntity = z.infer<typeof BaseJobEntitySchema>;
@@ -61,3 +62,5 @@ export type JobWithRoleDetailsEntity = z.infer<
61
62
  >;
62
63
 
63
64
  export type GetJobsOutput = z.infer<typeof GetJobsOutputSchema>;
65
+
66
+ export type NormalizedJobEntity = z.infer<typeof NormalizedJobSchema>;