@zyacreatives/shared 2.2.65 → 2.2.67
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-application.d.ts +12 -12
- package/dist/schemas/job.d.ts +49 -25
- package/dist/schemas/job.js +293 -150
- package/dist/schemas/post.d.ts +69 -19
- package/dist/schemas/post.js +178 -81
- package/dist/schemas/user.d.ts +23 -5
- package/dist/schemas/user.js +118 -56
- package/dist/types/job.d.ts +2 -1
- package/dist/types/post.d.ts +2 -1
- package/dist/types/user.d.ts +2 -1
- package/dist/utils/slugify.d.ts +3 -0
- package/dist/utils/slugify.js +9 -1
- package/package.json +1 -1
- package/src/schemas/job.ts +271 -128
- package/src/schemas/post.ts +182 -81
- package/src/schemas/user.ts +172 -114
- package/src/types/job.ts +6 -0
- package/src/types/post.ts +3 -0
- package/src/types/user.ts +2 -0
- package/src/utils/slugify.ts +8 -0
|
@@ -205,8 +205,8 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
|
|
|
205
205
|
job: z.ZodUnion<readonly [z.ZodObject<{
|
|
206
206
|
title: z.ZodString;
|
|
207
207
|
brandId: z.ZodCUID2;
|
|
208
|
-
brandName: z.
|
|
209
|
-
brandImgUrl: z.ZodOptional<z.
|
|
208
|
+
brandName: z.ZodString;
|
|
209
|
+
brandImgUrl: z.ZodOptional<z.ZodString>;
|
|
210
210
|
status: z.ZodEnum<{
|
|
211
211
|
ACTIVE: "ACTIVE";
|
|
212
212
|
DELETED: "DELETED";
|
|
@@ -281,8 +281,8 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
|
|
|
281
281
|
id: z.ZodCUID2;
|
|
282
282
|
title: z.ZodString;
|
|
283
283
|
brandId: z.ZodCUID2;
|
|
284
|
-
brandName: z.
|
|
285
|
-
brandImgUrl: z.ZodOptional<z.
|
|
284
|
+
brandName: z.ZodString;
|
|
285
|
+
brandImgUrl: z.ZodOptional<z.ZodString>;
|
|
286
286
|
jobType: z.ZodEnum<{
|
|
287
287
|
GIG: "GIG";
|
|
288
288
|
ROLE: "ROLE";
|
|
@@ -332,8 +332,8 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
|
|
|
332
332
|
}, z.core.$strip>, z.ZodObject<{
|
|
333
333
|
title: z.ZodString;
|
|
334
334
|
brandId: z.ZodCUID2;
|
|
335
|
-
brandName: z.
|
|
336
|
-
brandImgUrl: z.ZodOptional<z.
|
|
335
|
+
brandName: z.ZodString;
|
|
336
|
+
brandImgUrl: z.ZodOptional<z.ZodString>;
|
|
337
337
|
status: z.ZodEnum<{
|
|
338
338
|
ACTIVE: "ACTIVE";
|
|
339
339
|
DELETED: "DELETED";
|
|
@@ -503,8 +503,8 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
503
503
|
job: z.ZodUnion<readonly [z.ZodObject<{
|
|
504
504
|
title: z.ZodString;
|
|
505
505
|
brandId: z.ZodCUID2;
|
|
506
|
-
brandName: z.
|
|
507
|
-
brandImgUrl: z.ZodOptional<z.
|
|
506
|
+
brandName: z.ZodString;
|
|
507
|
+
brandImgUrl: z.ZodOptional<z.ZodString>;
|
|
508
508
|
status: z.ZodEnum<{
|
|
509
509
|
ACTIVE: "ACTIVE";
|
|
510
510
|
DELETED: "DELETED";
|
|
@@ -579,8 +579,8 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
579
579
|
id: z.ZodCUID2;
|
|
580
580
|
title: z.ZodString;
|
|
581
581
|
brandId: z.ZodCUID2;
|
|
582
|
-
brandName: z.
|
|
583
|
-
brandImgUrl: z.ZodOptional<z.
|
|
582
|
+
brandName: z.ZodString;
|
|
583
|
+
brandImgUrl: z.ZodOptional<z.ZodString>;
|
|
584
584
|
jobType: z.ZodEnum<{
|
|
585
585
|
GIG: "GIG";
|
|
586
586
|
ROLE: "ROLE";
|
|
@@ -630,8 +630,8 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
630
630
|
}, z.core.$strip>, z.ZodObject<{
|
|
631
631
|
title: z.ZodString;
|
|
632
632
|
brandId: z.ZodCUID2;
|
|
633
|
-
brandName: z.
|
|
634
|
-
brandImgUrl: z.ZodOptional<z.
|
|
633
|
+
brandName: z.ZodString;
|
|
634
|
+
brandImgUrl: z.ZodOptional<z.ZodString>;
|
|
635
635
|
status: z.ZodEnum<{
|
|
636
636
|
ACTIVE: "ACTIVE";
|
|
637
637
|
DELETED: "DELETED";
|
package/dist/schemas/job.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
2
|
export declare const MinimalJobEntitySchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodCUID2;
|
|
4
4
|
title: z.ZodString;
|
|
@@ -65,8 +65,8 @@ export declare const JobEntitySchema: z.ZodObject<{
|
|
|
65
65
|
id: z.ZodCUID2;
|
|
66
66
|
title: z.ZodString;
|
|
67
67
|
brandId: z.ZodCUID2;
|
|
68
|
-
brandName: z.
|
|
69
|
-
brandImgUrl: z.ZodOptional<z.
|
|
68
|
+
brandName: z.ZodString;
|
|
69
|
+
brandImgUrl: z.ZodOptional<z.ZodString>;
|
|
70
70
|
jobType: z.ZodEnum<{
|
|
71
71
|
GIG: "GIG";
|
|
72
72
|
ROLE: "ROLE";
|
|
@@ -147,8 +147,8 @@ export declare const GigJobEntitySchema: z.ZodObject<{
|
|
|
147
147
|
export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
|
|
148
148
|
title: z.ZodString;
|
|
149
149
|
brandId: z.ZodCUID2;
|
|
150
|
-
brandName: z.
|
|
151
|
-
brandImgUrl: z.ZodOptional<z.
|
|
150
|
+
brandName: z.ZodString;
|
|
151
|
+
brandImgUrl: z.ZodOptional<z.ZodString>;
|
|
152
152
|
status: z.ZodEnum<{
|
|
153
153
|
ACTIVE: "ACTIVE";
|
|
154
154
|
DELETED: "DELETED";
|
|
@@ -259,8 +259,8 @@ export declare const RoleJobEntitySchema: z.ZodObject<{
|
|
|
259
259
|
export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
|
|
260
260
|
title: z.ZodString;
|
|
261
261
|
brandId: z.ZodCUID2;
|
|
262
|
-
brandName: z.
|
|
263
|
-
brandImgUrl: z.ZodOptional<z.
|
|
262
|
+
brandName: z.ZodString;
|
|
263
|
+
brandImgUrl: z.ZodOptional<z.ZodString>;
|
|
264
264
|
status: z.ZodEnum<{
|
|
265
265
|
ACTIVE: "ACTIVE";
|
|
266
266
|
DELETED: "DELETED";
|
|
@@ -577,8 +577,8 @@ export declare const UpdateJobInputSchema: z.ZodObject<{
|
|
|
577
577
|
export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
578
578
|
title: z.ZodString;
|
|
579
579
|
brandId: z.ZodCUID2;
|
|
580
|
-
brandName: z.
|
|
581
|
-
brandImgUrl: z.ZodOptional<z.
|
|
580
|
+
brandName: z.ZodString;
|
|
581
|
+
brandImgUrl: z.ZodOptional<z.ZodString>;
|
|
582
582
|
status: z.ZodEnum<{
|
|
583
583
|
ACTIVE: "ACTIVE";
|
|
584
584
|
DELETED: "DELETED";
|
|
@@ -653,8 +653,8 @@ export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
653
653
|
id: z.ZodCUID2;
|
|
654
654
|
title: z.ZodString;
|
|
655
655
|
brandId: z.ZodCUID2;
|
|
656
|
-
brandName: z.
|
|
657
|
-
brandImgUrl: z.ZodOptional<z.
|
|
656
|
+
brandName: z.ZodString;
|
|
657
|
+
brandImgUrl: z.ZodOptional<z.ZodString>;
|
|
658
658
|
jobType: z.ZodEnum<{
|
|
659
659
|
GIG: "GIG";
|
|
660
660
|
ROLE: "ROLE";
|
|
@@ -704,8 +704,8 @@ export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
704
704
|
}, z.core.$strip>, z.ZodObject<{
|
|
705
705
|
title: z.ZodString;
|
|
706
706
|
brandId: z.ZodCUID2;
|
|
707
|
-
brandName: z.
|
|
708
|
-
brandImgUrl: z.ZodOptional<z.
|
|
707
|
+
brandName: z.ZodString;
|
|
708
|
+
brandImgUrl: z.ZodOptional<z.ZodString>;
|
|
709
709
|
status: z.ZodEnum<{
|
|
710
710
|
ACTIVE: "ACTIVE";
|
|
711
711
|
DELETED: "DELETED";
|
|
@@ -787,8 +787,8 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
|
|
|
787
787
|
jobs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
788
788
|
title: z.ZodString;
|
|
789
789
|
brandId: z.ZodCUID2;
|
|
790
|
-
brandName: z.
|
|
791
|
-
brandImgUrl: z.ZodOptional<z.
|
|
790
|
+
brandName: z.ZodString;
|
|
791
|
+
brandImgUrl: z.ZodOptional<z.ZodString>;
|
|
792
792
|
status: z.ZodEnum<{
|
|
793
793
|
ACTIVE: "ACTIVE";
|
|
794
794
|
DELETED: "DELETED";
|
|
@@ -863,8 +863,8 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
|
|
|
863
863
|
id: z.ZodCUID2;
|
|
864
864
|
title: z.ZodString;
|
|
865
865
|
brandId: z.ZodCUID2;
|
|
866
|
-
brandName: z.
|
|
867
|
-
brandImgUrl: z.ZodOptional<z.
|
|
866
|
+
brandName: z.ZodString;
|
|
867
|
+
brandImgUrl: z.ZodOptional<z.ZodString>;
|
|
868
868
|
jobType: z.ZodEnum<{
|
|
869
869
|
GIG: "GIG";
|
|
870
870
|
ROLE: "ROLE";
|
|
@@ -914,8 +914,8 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
|
|
|
914
914
|
}, z.core.$strip>, z.ZodObject<{
|
|
915
915
|
title: z.ZodString;
|
|
916
916
|
brandId: z.ZodCUID2;
|
|
917
|
-
brandName: z.
|
|
918
|
-
brandImgUrl: z.ZodOptional<z.
|
|
917
|
+
brandName: z.ZodString;
|
|
918
|
+
brandImgUrl: z.ZodOptional<z.ZodString>;
|
|
919
919
|
status: z.ZodEnum<{
|
|
920
920
|
ACTIVE: "ACTIVE";
|
|
921
921
|
DELETED: "DELETED";
|
|
@@ -1019,8 +1019,8 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
|
|
|
1019
1019
|
jobs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1020
1020
|
title: z.ZodString;
|
|
1021
1021
|
brandId: z.ZodCUID2;
|
|
1022
|
-
brandName: z.
|
|
1023
|
-
brandImgUrl: z.ZodOptional<z.
|
|
1022
|
+
brandName: z.ZodString;
|
|
1023
|
+
brandImgUrl: z.ZodOptional<z.ZodString>;
|
|
1024
1024
|
status: z.ZodEnum<{
|
|
1025
1025
|
ACTIVE: "ACTIVE";
|
|
1026
1026
|
DELETED: "DELETED";
|
|
@@ -1095,8 +1095,8 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
|
|
|
1095
1095
|
id: z.ZodCUID2;
|
|
1096
1096
|
title: z.ZodString;
|
|
1097
1097
|
brandId: z.ZodCUID2;
|
|
1098
|
-
brandName: z.
|
|
1099
|
-
brandImgUrl: z.ZodOptional<z.
|
|
1098
|
+
brandName: z.ZodString;
|
|
1099
|
+
brandImgUrl: z.ZodOptional<z.ZodString>;
|
|
1100
1100
|
jobType: z.ZodEnum<{
|
|
1101
1101
|
GIG: "GIG";
|
|
1102
1102
|
ROLE: "ROLE";
|
|
@@ -1146,8 +1146,8 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
|
|
|
1146
1146
|
}, z.core.$strip>, z.ZodObject<{
|
|
1147
1147
|
title: z.ZodString;
|
|
1148
1148
|
brandId: z.ZodCUID2;
|
|
1149
|
-
brandName: z.
|
|
1150
|
-
brandImgUrl: z.ZodOptional<z.
|
|
1149
|
+
brandName: z.ZodString;
|
|
1150
|
+
brandImgUrl: z.ZodOptional<z.ZodString>;
|
|
1151
1151
|
status: z.ZodEnum<{
|
|
1152
1152
|
ACTIVE: "ACTIVE";
|
|
1153
1153
|
DELETED: "DELETED";
|
|
@@ -1232,3 +1232,27 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
|
|
|
1232
1232
|
hasNextPage: z.ZodBoolean;
|
|
1233
1233
|
hasPrevPage: z.ZodBoolean;
|
|
1234
1234
|
}, z.core.$strip>;
|
|
1235
|
+
export declare const JobSearchDocumentSchema: z.ZodObject<{
|
|
1236
|
+
id: z.ZodCUID2;
|
|
1237
|
+
title: z.ZodString;
|
|
1238
|
+
brandId: z.ZodCUID2;
|
|
1239
|
+
brandName: z.ZodString;
|
|
1240
|
+
brandImgUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1241
|
+
jobType: z.ZodEnum<{
|
|
1242
|
+
GIG: "GIG";
|
|
1243
|
+
ROLE: "ROLE";
|
|
1244
|
+
}>;
|
|
1245
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1246
|
+
employmentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1247
|
+
workMode: z.ZodString;
|
|
1248
|
+
gigType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1249
|
+
location: z.ZodString;
|
|
1250
|
+
overview: z.ZodString;
|
|
1251
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
1252
|
+
wagesMin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1253
|
+
wagesMax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1254
|
+
wagesCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1255
|
+
wagesType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1256
|
+
createdAt: z.ZodString;
|
|
1257
|
+
updatedAt: z.ZodString;
|
|
1258
|
+
}, z.core.$strip>;
|