@zyacreatives/shared 2.5.59 → 2.5.60
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 +11 -2
- package/dist/schemas/job.js +16 -5
- package/dist/schemas/user.d.ts +11 -2
- package/package.json +1 -1
- package/src/schemas/job.ts +24 -13
package/dist/schemas/job.d.ts
CHANGED
|
@@ -1135,6 +1135,7 @@ export type GetJobsOutput = z.infer<typeof GetJobsOutputSchema>;
|
|
|
1135
1135
|
export declare const JobSearchDocumentSchema: z.ZodObject<{
|
|
1136
1136
|
id: z.ZodCUID2;
|
|
1137
1137
|
title: z.ZodString;
|
|
1138
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1138
1139
|
brandId: z.ZodCUID2;
|
|
1139
1140
|
brandName: z.ZodString;
|
|
1140
1141
|
brandImgUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1142,10 +1143,18 @@ export declare const JobSearchDocumentSchema: z.ZodObject<{
|
|
|
1142
1143
|
GIG: "GIG";
|
|
1143
1144
|
ROLE: "ROLE";
|
|
1144
1145
|
}>;
|
|
1146
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1147
|
+
employmentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1148
|
+
workMode: z.ZodString;
|
|
1149
|
+
gigType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1145
1150
|
location: z.ZodString;
|
|
1146
1151
|
overview: z.ZodString;
|
|
1147
1152
|
requiredSkills: z.ZodArray<z.ZodString>;
|
|
1148
|
-
|
|
1149
|
-
|
|
1153
|
+
wagesMin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1154
|
+
wagesMax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1155
|
+
wagesCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1156
|
+
wagesType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1157
|
+
createdAt: z.ZodString;
|
|
1158
|
+
updatedAt: z.ZodString;
|
|
1150
1159
|
}, z.core.$strip>;
|
|
1151
1160
|
export type JobSearchDocument = z.infer<typeof JobSearchDocumentSchema>;
|
package/dist/schemas/job.js
CHANGED
|
@@ -165,16 +165,27 @@ exports.GetJobsOutputSchema = zod_openapi_1.z.object({
|
|
|
165
165
|
* SEARCH DOCUMENT
|
|
166
166
|
* --------------------------------
|
|
167
167
|
*/
|
|
168
|
-
exports.JobSearchDocumentSchema = zod_openapi_1.z
|
|
168
|
+
exports.JobSearchDocumentSchema = zod_openapi_1.z
|
|
169
|
+
.object({
|
|
169
170
|
id: zod_openapi_1.z.cuid2(),
|
|
170
171
|
title: zod_openapi_1.z.string(),
|
|
172
|
+
isApplied: zod_openapi_1.z.boolean().default(false).optional(),
|
|
171
173
|
brandId: zod_openapi_1.z.cuid2(),
|
|
172
174
|
brandName: zod_openapi_1.z.string(),
|
|
173
175
|
brandImgUrl: zod_openapi_1.z.string().nullable().optional(),
|
|
174
|
-
jobType: zod_openapi_1.z.enum([
|
|
176
|
+
jobType: zod_openapi_1.z.enum(["GIG", "ROLE"]),
|
|
177
|
+
status: zod_openapi_1.z.string().optional(),
|
|
178
|
+
employmentType: zod_openapi_1.z.string().nullable().optional(),
|
|
179
|
+
workMode: zod_openapi_1.z.string(),
|
|
180
|
+
gigType: zod_openapi_1.z.string().nullable().optional(),
|
|
175
181
|
location: zod_openapi_1.z.string(),
|
|
176
182
|
overview: zod_openapi_1.z.string(),
|
|
177
183
|
requiredSkills: zod_openapi_1.z.array(zod_openapi_1.z.string()),
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
184
|
+
wagesMin: zod_openapi_1.z.number().nullable().optional(),
|
|
185
|
+
wagesMax: zod_openapi_1.z.number().nullable().optional(),
|
|
186
|
+
wagesCurrency: zod_openapi_1.z.string().nullable().optional(),
|
|
187
|
+
wagesType: zod_openapi_1.z.string().nullable().optional(),
|
|
188
|
+
createdAt: zod_openapi_1.z.string(),
|
|
189
|
+
updatedAt: zod_openapi_1.z.string(),
|
|
190
|
+
})
|
|
191
|
+
.openapi("JobSearchDocument");
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -518,6 +518,7 @@ export declare const UserWithJobBookmarksEntitySchema: z.ZodObject<{
|
|
|
518
518
|
job: z.ZodObject<{
|
|
519
519
|
id: z.ZodCUID2;
|
|
520
520
|
title: z.ZodString;
|
|
521
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
521
522
|
brandId: z.ZodCUID2;
|
|
522
523
|
brandName: z.ZodString;
|
|
523
524
|
brandImgUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -525,11 +526,19 @@ export declare const UserWithJobBookmarksEntitySchema: z.ZodObject<{
|
|
|
525
526
|
GIG: "GIG";
|
|
526
527
|
ROLE: "ROLE";
|
|
527
528
|
}>;
|
|
529
|
+
status: z.ZodOptional<z.ZodString>;
|
|
530
|
+
employmentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
531
|
+
workMode: z.ZodString;
|
|
532
|
+
gigType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
528
533
|
location: z.ZodString;
|
|
529
534
|
overview: z.ZodString;
|
|
530
535
|
requiredSkills: z.ZodArray<z.ZodString>;
|
|
531
|
-
|
|
532
|
-
|
|
536
|
+
wagesMin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
537
|
+
wagesMax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
538
|
+
wagesCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
539
|
+
wagesType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
540
|
+
createdAt: z.ZodString;
|
|
541
|
+
updatedAt: z.ZodString;
|
|
533
542
|
isBookmarked: z.ZodDefault<z.ZodBoolean>;
|
|
534
543
|
}, z.core.$strip>;
|
|
535
544
|
}, z.core.$strip>>;
|
package/package.json
CHANGED
package/src/schemas/job.ts
CHANGED
|
@@ -261,18 +261,29 @@ export type GetJobsOutput = z.infer<typeof GetJobsOutputSchema>;
|
|
|
261
261
|
* --------------------------------
|
|
262
262
|
*/
|
|
263
263
|
|
|
264
|
-
export const JobSearchDocumentSchema = z
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
264
|
+
export const JobSearchDocumentSchema = z
|
|
265
|
+
.object({
|
|
266
|
+
id: z.cuid2(),
|
|
267
|
+
title: z.string(),
|
|
268
|
+
isApplied: z.boolean().default(false).optional(),
|
|
269
|
+
brandId: z.cuid2(),
|
|
270
|
+
brandName: z.string(),
|
|
271
|
+
brandImgUrl: z.string().nullable().optional(),
|
|
272
|
+
jobType: z.enum(["GIG", "ROLE"]),
|
|
273
|
+
status: z.string().optional(),
|
|
274
|
+
employmentType: z.string().nullable().optional(),
|
|
275
|
+
workMode: z.string(),
|
|
276
|
+
gigType: z.string().nullable().optional(),
|
|
277
|
+
location: z.string(),
|
|
278
|
+
overview: z.string(),
|
|
279
|
+
requiredSkills: z.array(z.string()),
|
|
280
|
+
wagesMin: z.number().nullable().optional(),
|
|
281
|
+
wagesMax: z.number().nullable().optional(),
|
|
282
|
+
wagesCurrency: z.string().nullable().optional(),
|
|
283
|
+
wagesType: z.string().nullable().optional(),
|
|
284
|
+
createdAt: z.string(),
|
|
285
|
+
updatedAt: z.string(),
|
|
286
|
+
})
|
|
287
|
+
.openapi("JobSearchDocument");
|
|
277
288
|
|
|
278
289
|
export type JobSearchDocument = z.infer<typeof JobSearchDocumentSchema>;
|