@zyacreatives/shared 2.2.1 → 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.
- package/dist/schemas/job.d.ts +6 -27
- package/dist/schemas/job.js +8 -12
- package/package.json +1 -1
- package/src/schemas/job.ts +9 -16
package/dist/schemas/job.d.ts
CHANGED
|
@@ -1000,37 +1000,15 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
|
|
|
1000
1000
|
export declare const GetJobsInputSchema: z.ZodObject<{
|
|
1001
1001
|
q: z.ZodOptional<z.ZodString>;
|
|
1002
1002
|
jobType: z.ZodOptional<z.ZodEnum<{
|
|
1003
|
-
|
|
1004
|
-
ROLE: "ROLE";
|
|
1005
|
-
}>>;
|
|
1006
|
-
workMode: z.ZodOptional<z.ZodEnum<{
|
|
1007
|
-
Remote: "Remote";
|
|
1008
|
-
Hybrid: "Hybrid";
|
|
1009
|
-
"On Site": "On Site";
|
|
1003
|
+
[x: string]: string;
|
|
1010
1004
|
}>>;
|
|
1005
|
+
workMode: z.ZodOptional<z.ZodString>;
|
|
1011
1006
|
location: z.ZodOptional<z.ZodEnum<{
|
|
1012
|
-
|
|
1013
|
-
Asia: "Asia";
|
|
1014
|
-
Europe: "Europe";
|
|
1015
|
-
"North America": "North America";
|
|
1016
|
-
"South America": "South America";
|
|
1017
|
-
"Middle East": "Middle East";
|
|
1018
|
-
Oceania: "Oceania";
|
|
1019
|
-
Global: "Global";
|
|
1020
|
-
Other: "Other";
|
|
1021
|
-
Remote: "Remote";
|
|
1022
|
-
EMEA: "EMEA";
|
|
1023
|
-
"Asia Pacific": "Asia Pacific";
|
|
1024
|
-
}>>;
|
|
1025
|
-
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
1026
|
-
"Full Time": "Full Time";
|
|
1027
|
-
"Part Time": "Part Time";
|
|
1028
|
-
Freelance: "Freelance";
|
|
1029
|
-
Internship: "Internship";
|
|
1007
|
+
[x: string]: string;
|
|
1030
1008
|
}>>;
|
|
1009
|
+
employmentType: z.ZodOptional<z.ZodString>;
|
|
1031
1010
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
1032
|
-
|
|
1033
|
-
Recurring: "Recurring";
|
|
1011
|
+
[x: string]: string;
|
|
1034
1012
|
}>>;
|
|
1035
1013
|
requiredSkills: z.ZodOptional<z.ZodString>;
|
|
1036
1014
|
status: z.ZodOptional<z.ZodString>;
|
|
@@ -1249,6 +1227,7 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
|
|
|
1249
1227
|
}, z.core.$strip>]>>;
|
|
1250
1228
|
total: z.ZodNumber;
|
|
1251
1229
|
page: z.ZodNumber;
|
|
1230
|
+
limit: z.ZodNumber;
|
|
1252
1231
|
totalPages: z.ZodNumber;
|
|
1253
1232
|
hasNextPage: z.ZodBoolean;
|
|
1254
1233
|
hasPrevPage: z.ZodBoolean;
|
package/dist/schemas/job.js
CHANGED
|
@@ -216,25 +216,20 @@ exports.GetCreatedJobsOutputSchema = zod_1.z.object({
|
|
|
216
216
|
});
|
|
217
217
|
exports.GetJobsInputSchema = zod_1.z.object({
|
|
218
218
|
q: zod_1.z.string().optional(),
|
|
219
|
-
jobType: zod_1.z
|
|
220
|
-
.enum(Object.values(constants_1.JOB_TYPE))
|
|
221
|
-
.optional(),
|
|
219
|
+
jobType: zod_1.z.enum(Object.values(constants_1.JOB_TYPE)).optional(),
|
|
222
220
|
workMode: zod_1.z
|
|
223
|
-
.
|
|
224
|
-
.optional()
|
|
221
|
+
.string()
|
|
222
|
+
.optional()
|
|
223
|
+
.describe("Comma-separated values, e.g. 'Remote,Hybrid'"),
|
|
225
224
|
location: zod_1.z
|
|
226
225
|
.enum(Object.values(constants_1.JOB_LOCATIONS))
|
|
227
226
|
.optional(),
|
|
228
227
|
employmentType: zod_1.z
|
|
229
|
-
.enum(Object.values(constants_1.EMPLOYMENT_TYPE))
|
|
230
|
-
.optional(),
|
|
231
|
-
gigType: zod_1.z
|
|
232
|
-
.enum(Object.values(constants_1.GIG_TYPE))
|
|
233
|
-
.optional(),
|
|
234
|
-
requiredSkills: zod_1.z
|
|
235
228
|
.string()
|
|
236
229
|
.optional()
|
|
237
|
-
.describe("Comma-separated
|
|
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"),
|
|
238
233
|
status: zod_1.z.string().optional(),
|
|
239
234
|
page: zod_1.z.coerce.number().min(1).default(1),
|
|
240
235
|
limit: zod_1.z.coerce.number().min(1).max(100).default(20),
|
|
@@ -243,6 +238,7 @@ exports.GetJobsOutputSchema = zod_1.z.object({
|
|
|
243
238
|
jobs: zod_1.z.array(exports.NormalizedJobSchema),
|
|
244
239
|
total: zod_1.z.number(),
|
|
245
240
|
page: zod_1.z.number(),
|
|
241
|
+
limit: zod_1.z.number(),
|
|
246
242
|
totalPages: zod_1.z.number(),
|
|
247
243
|
hasNextPage: zod_1.z.boolean(),
|
|
248
244
|
hasPrevPage: zod_1.z.boolean(),
|
package/package.json
CHANGED
package/src/schemas/job.ts
CHANGED
|
@@ -297,28 +297,20 @@ export const GetCreatedJobsOutputSchema = z.object({
|
|
|
297
297
|
|
|
298
298
|
export const GetJobsInputSchema = z.object({
|
|
299
299
|
q: z.string().optional(),
|
|
300
|
-
jobType: z
|
|
301
|
-
.enum(Object.values(JOB_TYPE) as [JobType, ...JobType[]])
|
|
302
|
-
.optional(),
|
|
300
|
+
jobType: z.enum(Object.values(JOB_TYPE) as [string, ...string[]]).optional(),
|
|
303
301
|
workMode: z
|
|
304
|
-
.
|
|
305
|
-
.optional()
|
|
302
|
+
.string()
|
|
303
|
+
.optional()
|
|
304
|
+
.describe("Comma-separated values, e.g. 'Remote,Hybrid'"),
|
|
306
305
|
location: z
|
|
307
|
-
.enum(Object.values(JOB_LOCATIONS) as [
|
|
306
|
+
.enum(Object.values(JOB_LOCATIONS) as [string, ...string[]])
|
|
308
307
|
.optional(),
|
|
309
308
|
employmentType: z
|
|
310
|
-
.enum(
|
|
311
|
-
Object.values(EMPLOYMENT_TYPE) as [EmploymentType, ...EmploymentType[]],
|
|
312
|
-
)
|
|
313
|
-
.optional(),
|
|
314
|
-
gigType: z
|
|
315
|
-
.enum(Object.values(GIG_TYPE) as [GigType, ...GigType[]])
|
|
316
|
-
.optional(),
|
|
317
|
-
requiredSkills: z
|
|
318
309
|
.string()
|
|
319
310
|
.optional()
|
|
320
|
-
.describe("Comma-separated
|
|
321
|
-
|
|
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"),
|
|
322
314
|
status: z.string().optional(),
|
|
323
315
|
page: z.coerce.number().min(1).default(1),
|
|
324
316
|
limit: z.coerce.number().min(1).max(100).default(20),
|
|
@@ -328,6 +320,7 @@ export const GetJobsOutputSchema = z.object({
|
|
|
328
320
|
jobs: z.array(NormalizedJobSchema),
|
|
329
321
|
total: z.number(),
|
|
330
322
|
page: z.number(),
|
|
323
|
+
limit: z.number(),
|
|
331
324
|
totalPages: z.number(),
|
|
332
325
|
hasNextPage: z.boolean(),
|
|
333
326
|
hasPrevPage: z.boolean(),
|