@zyacreatives/shared 2.2.0 → 2.2.2

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.
@@ -247,6 +247,7 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
247
247
  }>>>;
248
248
  isBookmarked: z.ZodBoolean;
249
249
  createdAt: z.ZodDate;
250
+ version: z.ZodInt;
250
251
  updatedAt: z.ZodDate;
251
252
  id: z.ZodCUID2;
252
253
  jobType: z.ZodLiteral<"GIG">;
@@ -276,7 +277,6 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
276
277
  Monthly: "Monthly";
277
278
  "Project Based": "Project Based";
278
279
  }>>;
279
- version: z.ZodInt;
280
280
  }, z.core.$strip>, z.ZodObject<{
281
281
  id: z.ZodCUID2;
282
282
  title: z.ZodString;
@@ -374,6 +374,7 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
374
374
  }>>>;
375
375
  isBookmarked: z.ZodBoolean;
376
376
  createdAt: z.ZodDate;
377
+ version: z.ZodInt;
377
378
  updatedAt: z.ZodDate;
378
379
  id: z.ZodCUID2;
379
380
  jobType: z.ZodLiteral<"ROLE">;
@@ -409,7 +410,6 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
409
410
  Monthly: "Monthly";
410
411
  "Project Based": "Project Based";
411
412
  }>>;
412
- version: z.ZodInt;
413
413
  }, z.core.$strip>]>;
414
414
  }, z.core.$strip>;
415
415
  export declare const UpdateJobApplicationInputSchema: z.ZodObject<{
@@ -545,6 +545,7 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
545
545
  }>>>;
546
546
  isBookmarked: z.ZodBoolean;
547
547
  createdAt: z.ZodDate;
548
+ version: z.ZodInt;
548
549
  updatedAt: z.ZodDate;
549
550
  id: z.ZodCUID2;
550
551
  jobType: z.ZodLiteral<"GIG">;
@@ -574,7 +575,6 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
574
575
  Monthly: "Monthly";
575
576
  "Project Based": "Project Based";
576
577
  }>>;
577
- version: z.ZodInt;
578
578
  }, z.core.$strip>, z.ZodObject<{
579
579
  id: z.ZodCUID2;
580
580
  title: z.ZodString;
@@ -672,6 +672,7 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
672
672
  }>>>;
673
673
  isBookmarked: z.ZodBoolean;
674
674
  createdAt: z.ZodDate;
675
+ version: z.ZodInt;
675
676
  updatedAt: z.ZodDate;
676
677
  id: z.ZodCUID2;
677
678
  jobType: z.ZodLiteral<"ROLE">;
@@ -707,7 +708,6 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
707
708
  Monthly: "Monthly";
708
709
  "Project Based": "Project Based";
709
710
  }>>;
710
- version: z.ZodInt;
711
711
  }, z.core.$strip>]>;
712
712
  }, z.core.$strip>>;
713
713
  total: z.ZodNumber;
@@ -143,7 +143,6 @@ export declare const GigJobEntitySchema: z.ZodObject<{
143
143
  Monthly: "Monthly";
144
144
  "Project Based": "Project Based";
145
145
  }>>;
146
- version: z.ZodInt;
147
146
  }, z.core.$strip>;
148
147
  export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
149
148
  title: z.ZodString;
@@ -190,6 +189,7 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
190
189
  }>>>;
191
190
  isBookmarked: z.ZodBoolean;
192
191
  createdAt: z.ZodDate;
192
+ version: z.ZodInt;
193
193
  updatedAt: z.ZodDate;
194
194
  id: z.ZodCUID2;
195
195
  jobType: z.ZodLiteral<"GIG">;
@@ -219,7 +219,6 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
219
219
  Monthly: "Monthly";
220
220
  "Project Based": "Project Based";
221
221
  }>>;
222
- version: z.ZodInt;
223
222
  }, z.core.$strip>;
224
223
  export declare const RoleJobEntitySchema: z.ZodObject<{
225
224
  id: z.ZodCUID2;
@@ -256,7 +255,6 @@ export declare const RoleJobEntitySchema: z.ZodObject<{
256
255
  Monthly: "Monthly";
257
256
  "Project Based": "Project Based";
258
257
  }>>;
259
- version: z.ZodInt;
260
258
  }, z.core.$strip>;
261
259
  export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
262
260
  title: z.ZodString;
@@ -303,6 +301,7 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
303
301
  }>>>;
304
302
  isBookmarked: z.ZodBoolean;
305
303
  createdAt: z.ZodDate;
304
+ version: z.ZodInt;
306
305
  updatedAt: z.ZodDate;
307
306
  id: z.ZodCUID2;
308
307
  jobType: z.ZodLiteral<"ROLE">;
@@ -338,7 +337,6 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
338
337
  Monthly: "Monthly";
339
338
  "Project Based": "Project Based";
340
339
  }>>;
341
- version: z.ZodInt;
342
340
  }, z.core.$strip>;
343
341
  export declare const CreateJobInputSchema: z.ZodPipe<z.ZodObject<{
344
342
  title: z.ZodString;
@@ -621,6 +619,7 @@ export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
621
619
  }>>>;
622
620
  isBookmarked: z.ZodBoolean;
623
621
  createdAt: z.ZodDate;
622
+ version: z.ZodInt;
624
623
  updatedAt: z.ZodDate;
625
624
  id: z.ZodCUID2;
626
625
  jobType: z.ZodLiteral<"GIG">;
@@ -650,7 +649,6 @@ export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
650
649
  Monthly: "Monthly";
651
650
  "Project Based": "Project Based";
652
651
  }>>;
653
- version: z.ZodInt;
654
652
  }, z.core.$strip>, z.ZodObject<{
655
653
  id: z.ZodCUID2;
656
654
  title: z.ZodString;
@@ -748,6 +746,7 @@ export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
748
746
  }>>>;
749
747
  isBookmarked: z.ZodBoolean;
750
748
  createdAt: z.ZodDate;
749
+ version: z.ZodInt;
751
750
  updatedAt: z.ZodDate;
752
751
  id: z.ZodCUID2;
753
752
  jobType: z.ZodLiteral<"ROLE">;
@@ -783,7 +782,6 @@ export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
783
782
  Monthly: "Monthly";
784
783
  "Project Based": "Project Based";
785
784
  }>>;
786
- version: z.ZodInt;
787
785
  }, z.core.$strip>]>;
788
786
  export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
789
787
  jobs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
@@ -831,6 +829,7 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
831
829
  }>>>;
832
830
  isBookmarked: z.ZodBoolean;
833
831
  createdAt: z.ZodDate;
832
+ version: z.ZodInt;
834
833
  updatedAt: z.ZodDate;
835
834
  id: z.ZodCUID2;
836
835
  jobType: z.ZodLiteral<"GIG">;
@@ -860,7 +859,6 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
860
859
  Monthly: "Monthly";
861
860
  "Project Based": "Project Based";
862
861
  }>>;
863
- version: z.ZodInt;
864
862
  }, z.core.$strip>, z.ZodObject<{
865
863
  id: z.ZodCUID2;
866
864
  title: z.ZodString;
@@ -958,6 +956,7 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
958
956
  }>>>;
959
957
  isBookmarked: z.ZodBoolean;
960
958
  createdAt: z.ZodDate;
959
+ version: z.ZodInt;
961
960
  updatedAt: z.ZodDate;
962
961
  id: z.ZodCUID2;
963
962
  jobType: z.ZodLiteral<"ROLE">;
@@ -993,7 +992,6 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
993
992
  Monthly: "Monthly";
994
993
  "Project Based": "Project Based";
995
994
  }>>;
996
- version: z.ZodInt;
997
995
  }, z.core.$strip>]>>;
998
996
  noOfJobs: z.ZodNumber;
999
997
  noOfActiveJobs: z.ZodNumber;
@@ -1002,37 +1000,15 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
1002
1000
  export declare const GetJobsInputSchema: z.ZodObject<{
1003
1001
  q: z.ZodOptional<z.ZodString>;
1004
1002
  jobType: z.ZodOptional<z.ZodEnum<{
1005
- GIG: "GIG";
1006
- ROLE: "ROLE";
1007
- }>>;
1008
- workMode: z.ZodOptional<z.ZodEnum<{
1009
- Remote: "Remote";
1010
- Hybrid: "Hybrid";
1011
- "On Site": "On Site";
1003
+ [x: string]: string;
1012
1004
  }>>;
1005
+ workMode: z.ZodOptional<z.ZodString>;
1013
1006
  location: z.ZodOptional<z.ZodEnum<{
1014
- Africa: "Africa";
1015
- Asia: "Asia";
1016
- Europe: "Europe";
1017
- "North America": "North America";
1018
- "South America": "South America";
1019
- "Middle East": "Middle East";
1020
- Oceania: "Oceania";
1021
- Global: "Global";
1022
- Other: "Other";
1023
- Remote: "Remote";
1024
- EMEA: "EMEA";
1025
- "Asia Pacific": "Asia Pacific";
1026
- }>>;
1027
- employmentType: z.ZodOptional<z.ZodEnum<{
1028
- "Full Time": "Full Time";
1029
- "Part Time": "Part Time";
1030
- Freelance: "Freelance";
1031
- Internship: "Internship";
1007
+ [x: string]: string;
1032
1008
  }>>;
1009
+ employmentType: z.ZodOptional<z.ZodString>;
1033
1010
  gigType: z.ZodOptional<z.ZodEnum<{
1034
- "One Time": "One Time";
1035
- Recurring: "Recurring";
1011
+ [x: string]: string;
1036
1012
  }>>;
1037
1013
  requiredSkills: z.ZodOptional<z.ZodString>;
1038
1014
  status: z.ZodOptional<z.ZodString>;
@@ -1085,6 +1061,7 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
1085
1061
  }>>>;
1086
1062
  isBookmarked: z.ZodBoolean;
1087
1063
  createdAt: z.ZodDate;
1064
+ version: z.ZodInt;
1088
1065
  updatedAt: z.ZodDate;
1089
1066
  id: z.ZodCUID2;
1090
1067
  jobType: z.ZodLiteral<"GIG">;
@@ -1114,7 +1091,6 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
1114
1091
  Monthly: "Monthly";
1115
1092
  "Project Based": "Project Based";
1116
1093
  }>>;
1117
- version: z.ZodInt;
1118
1094
  }, z.core.$strip>, z.ZodObject<{
1119
1095
  id: z.ZodCUID2;
1120
1096
  title: z.ZodString;
@@ -1212,6 +1188,7 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
1212
1188
  }>>>;
1213
1189
  isBookmarked: z.ZodBoolean;
1214
1190
  createdAt: z.ZodDate;
1191
+ version: z.ZodInt;
1215
1192
  updatedAt: z.ZodDate;
1216
1193
  id: z.ZodCUID2;
1217
1194
  jobType: z.ZodLiteral<"ROLE">;
@@ -1247,10 +1224,10 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
1247
1224
  Monthly: "Monthly";
1248
1225
  "Project Based": "Project Based";
1249
1226
  }>>;
1250
- version: z.ZodInt;
1251
1227
  }, z.core.$strip>]>>;
1252
1228
  total: z.ZodNumber;
1253
1229
  page: z.ZodNumber;
1230
+ limit: z.ZodNumber;
1254
1231
  totalPages: z.ZodNumber;
1255
1232
  hasNextPage: z.ZodBoolean;
1256
1233
  hasPrevPage: z.ZodBoolean;
@@ -84,7 +84,6 @@ exports.GigJobEntitySchema = zod_1.z.object({
84
84
  wagesType: zod_1.z
85
85
  .enum(Object.values(constants_1.WAGE_TYPES))
86
86
  .optional(),
87
- version: zod_1.z.int(),
88
87
  });
89
88
  exports.JobWithGigDetailsEntitySchema = exports.JobEntitySchema.extend(exports.GigJobEntitySchema.shape);
90
89
  exports.RoleJobEntitySchema = zod_1.z.object({
@@ -104,7 +103,6 @@ exports.RoleJobEntitySchema = zod_1.z.object({
104
103
  wagesType: zod_1.z
105
104
  .enum(Object.values(constants_1.WAGE_TYPES))
106
105
  .optional(),
107
- version: zod_1.z.int(),
108
106
  });
109
107
  exports.JobWithRoleDetailsEntitySchema = exports.JobEntitySchema.extend(exports.RoleJobEntitySchema.shape);
110
108
  const CreateJobInputBaseSchema = zod_1.z.object({
@@ -218,25 +216,20 @@ exports.GetCreatedJobsOutputSchema = zod_1.z.object({
218
216
  });
219
217
  exports.GetJobsInputSchema = zod_1.z.object({
220
218
  q: zod_1.z.string().optional(),
221
- jobType: zod_1.z
222
- .enum(Object.values(constants_1.JOB_TYPE))
223
- .optional(),
219
+ jobType: zod_1.z.enum(Object.values(constants_1.JOB_TYPE)).optional(),
224
220
  workMode: zod_1.z
225
- .enum(Object.values(constants_1.WORK_MODE))
226
- .optional(),
221
+ .string()
222
+ .optional()
223
+ .describe("Comma-separated values, e.g. 'Remote,Hybrid'"),
227
224
  location: zod_1.z
228
225
  .enum(Object.values(constants_1.JOB_LOCATIONS))
229
226
  .optional(),
230
227
  employmentType: zod_1.z
231
- .enum(Object.values(constants_1.EMPLOYMENT_TYPE))
232
- .optional(),
233
- gigType: zod_1.z
234
- .enum(Object.values(constants_1.GIG_TYPE))
235
- .optional(),
236
- requiredSkills: zod_1.z
237
228
  .string()
238
229
  .optional()
239
- .describe("Comma-separated: React,Node.js"),
230
+ .describe("Comma-separated values, e.g. 'Full Time,Freelance'"),
231
+ gigType: zod_1.z.enum(Object.values(constants_1.GIG_TYPE)).optional(),
232
+ requiredSkills: zod_1.z.string().optional().describe("Comma-separated skills"),
240
233
  status: zod_1.z.string().optional(),
241
234
  page: zod_1.z.coerce.number().min(1).default(1),
242
235
  limit: zod_1.z.coerce.number().min(1).max(100).default(20),
@@ -245,6 +238,7 @@ exports.GetJobsOutputSchema = zod_1.z.object({
245
238
  jobs: zod_1.z.array(exports.NormalizedJobSchema),
246
239
  total: zod_1.z.number(),
247
240
  page: zod_1.z.number(),
241
+ limit: zod_1.z.number(),
248
242
  totalPages: zod_1.z.number(),
249
243
  hasNextPage: zod_1.z.boolean(),
250
244
  hasPrevPage: zod_1.z.boolean(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -117,7 +117,6 @@ export const GigJobEntitySchema = z.object({
117
117
  wagesType: z
118
118
  .enum(Object.values(WAGE_TYPES) as [WageTypes, ...WageTypes[]])
119
119
  .optional(),
120
- version: z.int(),
121
120
  });
122
121
 
123
122
  export const JobWithGigDetailsEntitySchema = JobEntitySchema.extend(
@@ -143,7 +142,6 @@ export const RoleJobEntitySchema = z.object({
143
142
  wagesType: z
144
143
  .enum(Object.values(WAGE_TYPES) as [WageTypes, ...WageTypes[]])
145
144
  .optional(),
146
- version: z.int(),
147
145
  });
148
146
 
149
147
  export const JobWithRoleDetailsEntitySchema = JobEntitySchema.extend(
@@ -299,28 +297,20 @@ export const GetCreatedJobsOutputSchema = z.object({
299
297
 
300
298
  export const GetJobsInputSchema = z.object({
301
299
  q: z.string().optional(),
302
- jobType: z
303
- .enum(Object.values(JOB_TYPE) as [JobType, ...JobType[]])
304
- .optional(),
300
+ jobType: z.enum(Object.values(JOB_TYPE) as [string, ...string[]]).optional(),
305
301
  workMode: z
306
- .enum(Object.values(WORK_MODE) as [WorkMode, ...WorkMode[]])
307
- .optional(),
302
+ .string()
303
+ .optional()
304
+ .describe("Comma-separated values, e.g. 'Remote,Hybrid'"),
308
305
  location: z
309
- .enum(Object.values(JOB_LOCATIONS) as [JobLocation, ...JobLocation[]])
306
+ .enum(Object.values(JOB_LOCATIONS) as [string, ...string[]])
310
307
  .optional(),
311
308
  employmentType: z
312
- .enum(
313
- Object.values(EMPLOYMENT_TYPE) as [EmploymentType, ...EmploymentType[]],
314
- )
315
- .optional(),
316
- gigType: z
317
- .enum(Object.values(GIG_TYPE) as [GigType, ...GigType[]])
318
- .optional(),
319
- requiredSkills: z
320
309
  .string()
321
310
  .optional()
322
- .describe("Comma-separated: React,Node.js"),
323
-
311
+ .describe("Comma-separated values, e.g. 'Full Time,Freelance'"),
312
+ gigType: z.enum(Object.values(GIG_TYPE) as [string, ...string[]]).optional(),
313
+ requiredSkills: z.string().optional().describe("Comma-separated skills"),
324
314
  status: z.string().optional(),
325
315
  page: z.coerce.number().min(1).default(1),
326
316
  limit: z.coerce.number().min(1).max(100).default(20),
@@ -330,6 +320,7 @@ export const GetJobsOutputSchema = z.object({
330
320
  jobs: z.array(NormalizedJobSchema),
331
321
  total: z.number(),
332
322
  page: z.number(),
323
+ limit: z.number(),
333
324
  totalPages: z.number(),
334
325
  hasNextPage: z.boolean(),
335
326
  hasPrevPage: z.boolean(),