@zyacreatives/shared 2.1.19 → 2.1.21

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.
@@ -197,7 +197,7 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
197
197
  Offered: "Offered";
198
198
  Hired: "Hired";
199
199
  }>;
200
- job: z.ZodDiscriminatedUnion<[z.ZodObject<{
200
+ job: z.ZodUnion<readonly [z.ZodObject<{
201
201
  title: z.ZodString;
202
202
  brandId: z.ZodCUID2;
203
203
  brandName: z.ZodCUID2;
@@ -240,6 +240,7 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
240
240
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
241
241
  [x: string]: string;
242
242
  }>>>;
243
+ isBookmarked: z.ZodBoolean;
243
244
  createdAt: z.ZodDate;
244
245
  updatedAt: z.ZodDate;
245
246
  id: z.ZodCUID2;
@@ -318,6 +319,7 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
318
319
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
319
320
  [x: string]: string;
320
321
  }>>>;
322
+ isBookmarked: z.ZodBoolean;
321
323
  createdAt: z.ZodDate;
322
324
  updatedAt: z.ZodDate;
323
325
  }, z.core.$strip>, z.ZodObject<{
@@ -363,6 +365,7 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
363
365
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
364
366
  [x: string]: string;
365
367
  }>>>;
368
+ isBookmarked: z.ZodBoolean;
366
369
  createdAt: z.ZodDate;
367
370
  updatedAt: z.ZodDate;
368
371
  id: z.ZodCUID2;
@@ -399,7 +402,7 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
399
402
  Monthly: "Monthly";
400
403
  "Project Based": "Project Based";
401
404
  }>>;
402
- }, z.core.$strip>], "jobType">;
405
+ }, z.core.$strip>]>;
403
406
  }, z.core.$strip>;
404
407
  export declare const UpdateJobApplicationStatusSchema: z.ZodObject<{
405
408
  applicationStatus: z.ZodEnum<{
@@ -411,7 +414,7 @@ export declare const UpdateJobApplicationStatusSchema: z.ZodObject<{
411
414
  }>;
412
415
  }, z.core.$strip>;
413
416
  export declare const GetTrackedJobApplicationsInputSchema: z.ZodObject<{
414
- q: z.ZodOptional<z.ZodString>;
417
+ query: z.ZodOptional<z.ZodString>;
415
418
  status: z.ZodOptional<z.ZodEnum<{
416
419
  "Application Sent": "Application Sent";
417
420
  Opened: "Opened";
@@ -437,7 +440,7 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
437
440
  Offered: "Offered";
438
441
  Hired: "Hired";
439
442
  }>;
440
- job: z.ZodDiscriminatedUnion<[z.ZodObject<{
443
+ job: z.ZodUnion<readonly [z.ZodObject<{
441
444
  title: z.ZodString;
442
445
  brandId: z.ZodCUID2;
443
446
  brandName: z.ZodCUID2;
@@ -480,6 +483,7 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
480
483
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
481
484
  [x: string]: string;
482
485
  }>>>;
486
+ isBookmarked: z.ZodBoolean;
483
487
  createdAt: z.ZodDate;
484
488
  updatedAt: z.ZodDate;
485
489
  id: z.ZodCUID2;
@@ -558,6 +562,7 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
558
562
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
559
563
  [x: string]: string;
560
564
  }>>>;
565
+ isBookmarked: z.ZodBoolean;
561
566
  createdAt: z.ZodDate;
562
567
  updatedAt: z.ZodDate;
563
568
  }, z.core.$strip>, z.ZodObject<{
@@ -603,6 +608,7 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
603
608
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
604
609
  [x: string]: string;
605
610
  }>>>;
611
+ isBookmarked: z.ZodBoolean;
606
612
  createdAt: z.ZodDate;
607
613
  updatedAt: z.ZodDate;
608
614
  id: z.ZodCUID2;
@@ -639,7 +645,7 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
639
645
  Monthly: "Monthly";
640
646
  "Project Based": "Project Based";
641
647
  }>>;
642
- }, z.core.$strip>], "jobType">;
648
+ }, z.core.$strip>]>;
643
649
  }, z.core.$strip>>;
644
650
  total: z.ZodNumber;
645
651
  page: z.ZodNumber;
@@ -145,7 +145,7 @@ exports.UpdateJobApplicationStatusSchema = zod_openapi_1.z.object({
145
145
  applicationStatus: zod_openapi_1.z.enum(constants_1.APPLICATION_STATUS),
146
146
  });
147
147
  exports.GetTrackedJobApplicationsInputSchema = zod_openapi_1.z.object({
148
- q: zod_openapi_1.z.string().optional(),
148
+ query: zod_openapi_1.z.string().optional(),
149
149
  status: zod_openapi_1.z
150
150
  .enum(Object.values(constants_1.APPLICATION_STATUS))
151
151
  .optional(),
@@ -99,6 +99,7 @@ export declare const JobEntitySchema: z.ZodObject<{
99
99
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
100
100
  [x: string]: string;
101
101
  }>>>;
102
+ isBookmarked: z.ZodBoolean;
102
103
  createdAt: z.ZodDate;
103
104
  updatedAt: z.ZodDate;
104
105
  }, z.core.$strip>;
@@ -175,6 +176,7 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
175
176
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
176
177
  [x: string]: string;
177
178
  }>>>;
179
+ isBookmarked: z.ZodBoolean;
178
180
  createdAt: z.ZodDate;
179
181
  updatedAt: z.ZodDate;
180
182
  id: z.ZodCUID2;
@@ -285,6 +287,7 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
285
287
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
286
288
  [x: string]: string;
287
289
  }>>>;
290
+ isBookmarked: z.ZodBoolean;
288
291
  createdAt: z.ZodDate;
289
292
  updatedAt: z.ZodDate;
290
293
  id: z.ZodCUID2;
@@ -555,7 +558,7 @@ export declare const UpdateJobInputSchema: z.ZodObject<{
555
558
  ARCHIVED: "ARCHIVED";
556
559
  }>>;
557
560
  }, z.core.$strip>;
558
- export declare const NormalizedJobSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
561
+ export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
559
562
  title: z.ZodString;
560
563
  brandId: z.ZodCUID2;
561
564
  brandName: z.ZodCUID2;
@@ -598,6 +601,7 @@ export declare const NormalizedJobSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
598
601
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
599
602
  [x: string]: string;
600
603
  }>>>;
604
+ isBookmarked: z.ZodBoolean;
601
605
  createdAt: z.ZodDate;
602
606
  updatedAt: z.ZodDate;
603
607
  id: z.ZodCUID2;
@@ -676,6 +680,7 @@ export declare const NormalizedJobSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
676
680
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
677
681
  [x: string]: string;
678
682
  }>>>;
683
+ isBookmarked: z.ZodBoolean;
679
684
  createdAt: z.ZodDate;
680
685
  updatedAt: z.ZodDate;
681
686
  }, z.core.$strip>, z.ZodObject<{
@@ -721,6 +726,7 @@ export declare const NormalizedJobSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
721
726
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
722
727
  [x: string]: string;
723
728
  }>>>;
729
+ isBookmarked: z.ZodBoolean;
724
730
  createdAt: z.ZodDate;
725
731
  updatedAt: z.ZodDate;
726
732
  id: z.ZodCUID2;
@@ -757,9 +763,9 @@ export declare const NormalizedJobSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
757
763
  Monthly: "Monthly";
758
764
  "Project Based": "Project Based";
759
765
  }>>;
760
- }, z.core.$strip>], "jobType">;
766
+ }, z.core.$strip>]>;
761
767
  export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
762
- jobs: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
768
+ jobs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
763
769
  title: z.ZodString;
764
770
  brandId: z.ZodCUID2;
765
771
  brandName: z.ZodCUID2;
@@ -802,6 +808,7 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
802
808
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
803
809
  [x: string]: string;
804
810
  }>>>;
811
+ isBookmarked: z.ZodBoolean;
805
812
  createdAt: z.ZodDate;
806
813
  updatedAt: z.ZodDate;
807
814
  id: z.ZodCUID2;
@@ -880,6 +887,7 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
880
887
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
881
888
  [x: string]: string;
882
889
  }>>>;
890
+ isBookmarked: z.ZodBoolean;
883
891
  createdAt: z.ZodDate;
884
892
  updatedAt: z.ZodDate;
885
893
  }, z.core.$strip>, z.ZodObject<{
@@ -925,6 +933,7 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
925
933
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
926
934
  [x: string]: string;
927
935
  }>>>;
936
+ isBookmarked: z.ZodBoolean;
928
937
  createdAt: z.ZodDate;
929
938
  updatedAt: z.ZodDate;
930
939
  id: z.ZodCUID2;
@@ -961,7 +970,7 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
961
970
  Monthly: "Monthly";
962
971
  "Project Based": "Project Based";
963
972
  }>>;
964
- }, z.core.$strip>], "jobType">>;
973
+ }, z.core.$strip>]>>;
965
974
  noOfJobs: z.ZodNumber;
966
975
  noOfActiveJobs: z.ZodNumber;
967
976
  noOfArchivedJobs: z.ZodNumber;
@@ -1007,7 +1016,7 @@ export declare const GetJobsInputSchema: z.ZodObject<{
1007
1016
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1008
1017
  }, z.core.$strip>;
1009
1018
  export declare const GetJobsOutputSchema: z.ZodObject<{
1010
- jobs: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1019
+ jobs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1011
1020
  title: z.ZodString;
1012
1021
  brandId: z.ZodCUID2;
1013
1022
  brandName: z.ZodCUID2;
@@ -1050,6 +1059,7 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
1050
1059
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1051
1060
  [x: string]: string;
1052
1061
  }>>>;
1062
+ isBookmarked: z.ZodBoolean;
1053
1063
  createdAt: z.ZodDate;
1054
1064
  updatedAt: z.ZodDate;
1055
1065
  id: z.ZodCUID2;
@@ -1128,6 +1138,7 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
1128
1138
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1129
1139
  [x: string]: string;
1130
1140
  }>>>;
1141
+ isBookmarked: z.ZodBoolean;
1131
1142
  createdAt: z.ZodDate;
1132
1143
  updatedAt: z.ZodDate;
1133
1144
  }, z.core.$strip>, z.ZodObject<{
@@ -1173,6 +1184,7 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
1173
1184
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1174
1185
  [x: string]: string;
1175
1186
  }>>>;
1187
+ isBookmarked: z.ZodBoolean;
1176
1188
  createdAt: z.ZodDate;
1177
1189
  updatedAt: z.ZodDate;
1178
1190
  id: z.ZodCUID2;
@@ -1209,7 +1221,7 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
1209
1221
  Monthly: "Monthly";
1210
1222
  "Project Based": "Project Based";
1211
1223
  }>>;
1212
- }, z.core.$strip>], "jobType">>;
1224
+ }, z.core.$strip>]>>;
1213
1225
  total: z.ZodNumber;
1214
1226
  page: z.ZodNumber;
1215
1227
  totalPages: z.ZodNumber;
@@ -56,6 +56,7 @@ exports.JobEntitySchema = zod_1.z.object({
56
56
  constants_1.JOB_SECTIONS.RESUME,
57
57
  constants_1.JOB_SECTIONS.COVER_LETTER,
58
58
  ]),
59
+ isBookmarked: zod_1.z.boolean(),
59
60
  createdAt: zod_1.z.date(),
60
61
  updatedAt: zod_1.z.date(),
61
62
  });
@@ -189,7 +190,7 @@ exports.UpdateJobInputSchema = CreateJobInputBaseSchema.partial().extend({
189
190
  .enum(Object.values(constants_1.JOB_STATUS))
190
191
  .optional(),
191
192
  });
192
- exports.NormalizedJobSchema = zod_1.z.discriminatedUnion("jobType", [
193
+ exports.NormalizedJobSchema = zod_1.z.union([
193
194
  exports.JobWithGigDetailsEntitySchema,
194
195
  exports.JobEntitySchema,
195
196
  exports.JobWithRoleDetailsEntitySchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.1.19",
3
+ "version": "2.1.21",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -216,7 +216,7 @@ export const UpdateJobApplicationStatusSchema = z.object({
216
216
  });
217
217
 
218
218
  export const GetTrackedJobApplicationsInputSchema = z.object({
219
- q: z.string().optional(),
219
+ query: z.string().optional(),
220
220
  status: z
221
221
  .enum(
222
222
  Object.values(APPLICATION_STATUS) as [
@@ -87,8 +87,8 @@ export const JobEntitySchema = z.object({
87
87
  JOB_SECTIONS.RESUME,
88
88
  JOB_SECTIONS.COVER_LETTER,
89
89
  ]),
90
+ isBookmarked: z.boolean(),
90
91
  createdAt: z.date(),
91
-
92
92
  updatedAt: z.date(),
93
93
  });
94
94
 
@@ -270,7 +270,7 @@ export const UpdateJobInputSchema = CreateJobInputBaseSchema.partial().extend({
270
270
  .optional(),
271
271
  });
272
272
 
273
- export const NormalizedJobSchema = z.discriminatedUnion("jobType", [
273
+ export const NormalizedJobSchema = z.union([
274
274
  JobWithGigDetailsEntitySchema,
275
275
  JobEntitySchema,
276
276
  JobWithRoleDetailsEntitySchema,