@zyacreatives/shared 2.5.52 → 2.5.55
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/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/schemas/activity.d.ts +1 -0
- package/dist/schemas/auth.d.ts +2 -0
- package/dist/schemas/bookmark.d.ts +62 -7
- package/dist/schemas/bookmark.js +32 -30
- package/dist/schemas/brand.d.ts +3 -3
- package/dist/schemas/chat.d.ts +96 -52
- package/dist/schemas/chat.js +44 -18
- package/dist/schemas/comment.d.ts +65 -21
- package/dist/schemas/comment.js +48 -54
- package/dist/schemas/common.d.ts +15 -11
- package/dist/schemas/creative.d.ts +21 -21
- package/dist/schemas/creative.js +3 -3
- package/dist/schemas/discipline.d.ts +63 -12
- package/dist/schemas/discipline.js +62 -65
- package/dist/schemas/entity-stats.d.ts +35 -3
- package/dist/schemas/entity-stats.js +24 -38
- package/dist/schemas/feed.d.ts +50 -3
- package/dist/schemas/feed.js +43 -13
- package/dist/schemas/file.d.ts +65 -24
- package/dist/schemas/file.js +60 -49
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/investor-shortlist.d.ts +68 -11
- package/dist/schemas/investor-shortlist.js +46 -24
- package/dist/schemas/investor-signal.d.ts +52 -12
- package/dist/schemas/investor-signal.js +59 -39
- package/dist/schemas/investor.d.ts +3 -3
- package/dist/schemas/job-application.d.ts +291 -279
- package/dist/schemas/job-application.js +59 -95
- package/dist/schemas/job.d.ts +200 -659
- package/dist/schemas/job.js +98 -231
- package/dist/schemas/like.d.ts +3 -0
- package/dist/schemas/message.d.ts +125 -94
- package/dist/schemas/message.js +54 -55
- package/dist/schemas/notification.d.ts +99 -32
- package/dist/schemas/notification.js +46 -42
- package/dist/schemas/payout-method.d.ts +51 -31
- package/dist/schemas/payout-method.js +48 -58
- package/dist/schemas/post.d.ts +295 -204
- package/dist/schemas/post.js +148 -272
- package/dist/schemas/product.d.ts +308 -229
- package/dist/schemas/product.js +111 -94
- package/dist/schemas/project.d.ts +75 -107
- package/dist/schemas/project.js +1 -5
- package/dist/schemas/seller.d.ts +10 -10
- package/dist/schemas/user-strike.d.ts +3 -0
- package/dist/schemas/user.d.ts +128 -126
- package/dist/schemas/user.js +10 -1
- package/dist/schemas/username.d.ts +1 -0
- package/dist/schemas/view.d.ts +1 -0
- package/dist/types/activity.d.ts +1 -3
- package/dist/types/auth.d.ts +1 -4
- package/dist/types/bookmark.d.ts +1 -3
- package/dist/types/chat.d.ts +1 -11
- package/dist/types/comment.d.ts +1 -5
- package/dist/types/common.d.ts +2 -8
- package/dist/types/discipline.d.ts +1 -11
- package/dist/types/entity-stats.d.ts +1 -3
- package/dist/types/feed.d.ts +1 -5
- package/dist/types/investor-shortlist.d.ts +1 -6
- package/dist/types/investor-signal.d.ts +1 -7
- package/dist/types/like.d.ts +1 -3
- package/dist/types/message.d.ts +1 -9
- package/dist/types/notification.d.ts +1 -9
- package/dist/types/user-strike.d.ts +1 -5
- package/dist/types/username.d.ts +1 -3
- package/package.json +1 -1
- package/src/index.ts +4 -5
- package/src/schemas/activity.ts +5 -4
- package/src/schemas/auth.ts +14 -10
- package/src/schemas/bookmark.ts +48 -29
- package/src/schemas/chat.ts +79 -18
- package/src/schemas/comment.ts +63 -49
- package/src/schemas/common.ts +8 -3
- package/src/schemas/creative.ts +3 -3
- package/src/schemas/discipline.ts +103 -71
- package/src/schemas/entity-stats.ts +32 -38
- package/src/schemas/feed.ts +62 -15
- package/src/schemas/file.ts +85 -58
- package/src/schemas/index.ts +1 -0
- package/src/schemas/investor-shortlist.ts +57 -8
- package/src/schemas/investor-signal.ts +79 -27
- package/src/schemas/job-application.ts +81 -115
- package/src/schemas/job.ts +160 -301
- package/src/schemas/like.ts +5 -1
- package/src/schemas/message.ts +71 -64
- package/src/schemas/notification.ts +63 -51
- package/src/schemas/payout-method.ts +47 -63
- package/src/schemas/post.ts +211 -272
- package/src/schemas/product.ts +202 -139
- package/src/schemas/project.ts +7 -10
- package/src/schemas/user-strike.ts +7 -1
- package/src/schemas/user.ts +17 -5
- package/src/schemas/username.ts +5 -3
- package/src/schemas/view.ts +0 -50
- package/src/types/activity.ts +0 -4
- package/src/types/auth.ts +0 -5
- package/src/types/bookmark.ts +0 -4
- package/src/types/chat.ts +0 -31
- package/src/types/comment.ts +0 -12
- package/src/types/common.ts +0 -14
- package/src/types/discipline.ts +0 -32
- package/src/types/entity-stats.ts +0 -4
- package/src/types/feed.ts +0 -10
- package/src/types/index.ts +0 -16
- package/src/types/investor-shortlist.ts +0 -18
- package/src/types/investor-signal.ts +0 -26
- package/src/types/like.ts +0 -4
- package/src/types/message.ts +0 -26
- package/src/types/notification.ts +0 -34
- package/src/types/user-strike.ts +0 -10
- package/src/types/username.ts +0 -4
package/dist/schemas/job.js
CHANGED
|
@@ -1,170 +1,97 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.JobSearchDocumentSchema = exports.GetJobsOutputSchema = exports.GetJobsInputSchema = exports.UpdateJobInputSchema = exports.CreateJobInputSchema = exports.NormalizedJobSchema = exports.JobWithRoleDetailsEntitySchema = exports.JobWithGigDetailsEntitySchema = exports.JobEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
.enum(Object.values(constants_1.JOB_LOCATIONS))
|
|
35
|
-
.openapi({ example: "LAGOS" }),
|
|
36
|
-
jobSections: zod_openapi_1.z
|
|
37
|
-
.array(JobSectionEnum)
|
|
38
|
-
.default([
|
|
39
|
-
constants_1.JOB_SECTIONS.PERSONAL_INFORMATION,
|
|
40
|
-
constants_1.JOB_SECTIONS.PROFESSIONAL_INFORMATION,
|
|
41
|
-
constants_1.JOB_SECTIONS.RESUME,
|
|
42
|
-
constants_1.JOB_SECTIONS.COVER_LETTER,
|
|
43
|
-
])
|
|
44
|
-
.openapi({
|
|
45
|
-
example: [
|
|
46
|
-
"PERSONAL_INFORMATION",
|
|
47
|
-
"PROFESSIONAL_INFORMATION",
|
|
48
|
-
"RESUME",
|
|
49
|
-
"COVER_LETTER",
|
|
50
|
-
],
|
|
51
|
-
}),
|
|
52
|
-
createdAt: zod_openapi_1.z.date().openapi({ example: "2026-04-09T12:00:00.000Z" }),
|
|
53
|
-
version: zod_openapi_1.z.number().int().openapi({ example: 1 }),
|
|
54
|
-
updatedAt: zod_openapi_1.z.date().openapi({ example: "2026-04-09T12:00:00.000Z" }),
|
|
55
|
-
});
|
|
56
|
-
exports.JobEntitySchema = exports.BaseJobEntitySchema.extend({
|
|
57
|
-
brandName: zod_openapi_1.z.string().openapi({ example: "Acme Corp" }),
|
|
58
|
-
isApplied: zod_openapi_1.z.boolean().default(false).optional(),
|
|
59
|
-
brandImgUrl: zod_openapi_1.z
|
|
60
|
-
.url()
|
|
61
|
-
.optional()
|
|
62
|
-
.openapi({ example: "https://example.com/logo.png" }),
|
|
63
|
-
isBookmarked: zod_openapi_1.z.boolean().openapi({ example: false }),
|
|
6
|
+
/**
|
|
7
|
+
* --------------------------------
|
|
8
|
+
* ENUMS
|
|
9
|
+
* --------------------------------
|
|
10
|
+
*/
|
|
11
|
+
const JobTypeSchema = zod_openapi_1.z.enum(Object.values(constants_1.JOB_TYPE));
|
|
12
|
+
const EmploymentTypeSchema = zod_openapi_1.z.enum(Object.values(constants_1.EMPLOYMENT_TYPE));
|
|
13
|
+
const WorkModeSchema = zod_openapi_1.z.enum(Object.values(constants_1.WORK_MODE));
|
|
14
|
+
const JobStatusSchema = zod_openapi_1.z.enum(Object.values(constants_1.JOB_STATUS));
|
|
15
|
+
const GigTypeSchema = zod_openapi_1.z.enum(Object.values(constants_1.GIG_TYPE));
|
|
16
|
+
const LocationSchema = zod_openapi_1.z.enum(Object.values(constants_1.JOB_LOCATIONS));
|
|
17
|
+
const ExperienceLevelSchema = zod_openapi_1.z.enum(Object.values(constants_1.EXPERIENCE_LEVELS));
|
|
18
|
+
const WageCurrencySchema = zod_openapi_1.z.enum(Object.values(constants_1.WAGES_CURRENCY));
|
|
19
|
+
const WageTypeSchema = zod_openapi_1.z.enum(Object.values(constants_1.WAGE_TYPES));
|
|
20
|
+
/**
|
|
21
|
+
* --------------------------------
|
|
22
|
+
* SHAPE
|
|
23
|
+
* --------------------------------
|
|
24
|
+
*/
|
|
25
|
+
const JobShape = zod_openapi_1.z.object({
|
|
26
|
+
title: zod_openapi_1.z.string().min(3).max(255),
|
|
27
|
+
brandId: zod_openapi_1.z.cuid2(),
|
|
28
|
+
jobType: JobTypeSchema,
|
|
29
|
+
employmentType: EmploymentTypeSchema.optional(),
|
|
30
|
+
workMode: WorkModeSchema,
|
|
31
|
+
gigType: GigTypeSchema.optional(),
|
|
32
|
+
location: LocationSchema,
|
|
33
|
+
jobSections: zod_openapi_1.z.array(zod_openapi_1.z.enum(Object.values(constants_1.JOB_SECTIONS))),
|
|
64
34
|
});
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
35
|
+
/**
|
|
36
|
+
* --------------------------------
|
|
37
|
+
* BASE ENTITY
|
|
38
|
+
* --------------------------------
|
|
39
|
+
*/
|
|
40
|
+
exports.JobEntitySchema = zod_openapi_1.z
|
|
41
|
+
.object({
|
|
42
|
+
id: zod_openapi_1.z.cuid2(),
|
|
43
|
+
...JobShape.shape,
|
|
44
|
+
status: JobStatusSchema,
|
|
45
|
+
brandName: zod_openapi_1.z.string(),
|
|
46
|
+
brandImgUrl: zod_openapi_1.z.string().nullable().optional(),
|
|
47
|
+
isApplied: zod_openapi_1.z.boolean().default(false),
|
|
48
|
+
isBookmarked: zod_openapi_1.z.boolean(),
|
|
49
|
+
createdAt: zod_openapi_1.z.iso.datetime(),
|
|
50
|
+
updatedAt: zod_openapi_1.z.iso.datetime(),
|
|
51
|
+
version: zod_openapi_1.z.int(),
|
|
52
|
+
})
|
|
53
|
+
.openapi("Job");
|
|
54
|
+
/**
|
|
55
|
+
* --------------------------------
|
|
56
|
+
* ROLE / GIG DETAILS
|
|
57
|
+
* --------------------------------
|
|
58
|
+
*/
|
|
59
|
+
const GigDetailsSchema = zod_openapi_1.z.object({
|
|
60
|
+
overview: zod_openapi_1.z.string(),
|
|
61
|
+
deliverables: zod_openapi_1.z.string(),
|
|
62
|
+
employeeRequirements: zod_openapi_1.z.string().optional(),
|
|
63
|
+
aboutCompany: zod_openapi_1.z.string().optional(),
|
|
64
|
+
requiredSkills: zod_openapi_1.z.array(zod_openapi_1.z.string()),
|
|
65
|
+
wagesMin: zod_openapi_1.z.number().nullable().optional(),
|
|
66
|
+
wagesMax: zod_openapi_1.z.number().nullable().optional(),
|
|
67
|
+
wagesCurrency: WageCurrencySchema.optional(),
|
|
68
|
+
wagesType: WageTypeSchema.optional(),
|
|
95
69
|
});
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
.string()
|
|
108
|
-
.openapi({ example: "Architect systems, mentor juniors." }),
|
|
109
|
-
requiredSkills: zod_openapi_1.z
|
|
110
|
-
.array(zod_openapi_1.z.string())
|
|
111
|
-
.openapi({ example: ["React", "TypeScript", "Node.js"] }),
|
|
112
|
-
employeeRequirements: zod_openapi_1.z
|
|
113
|
-
.string()
|
|
114
|
-
.optional()
|
|
115
|
-
.openapi({ example: "BS in Computer Science." }),
|
|
116
|
-
companyBenefits: zod_openapi_1.z
|
|
117
|
-
.string()
|
|
118
|
-
.optional()
|
|
119
|
-
.openapi({ example: "Health insurance, remote work." }),
|
|
120
|
-
wagesMin: zod_openapi_1.z.number().optional().nullable().openapi({ example: 80000 }),
|
|
121
|
-
wagesMax: zod_openapi_1.z.number().optional().nullable().openapi({ example: 120000 }),
|
|
122
|
-
wagesCurrency: zod_openapi_1.z
|
|
123
|
-
.enum(Object.values(constants_1.WAGES_CURRENCY))
|
|
124
|
-
.optional()
|
|
125
|
-
.openapi({ example: "USD" }),
|
|
126
|
-
wagesType: zod_openapi_1.z
|
|
127
|
-
.enum(Object.values(constants_1.WAGE_TYPES))
|
|
128
|
-
.optional()
|
|
129
|
-
.openapi({ example: "YEARLY" }),
|
|
70
|
+
const RoleDetailsSchema = zod_openapi_1.z.object({
|
|
71
|
+
experienceLevel: ExperienceLevelSchema,
|
|
72
|
+
overview: zod_openapi_1.z.string(),
|
|
73
|
+
keyResponsibilities: zod_openapi_1.z.string(),
|
|
74
|
+
requiredSkills: zod_openapi_1.z.array(zod_openapi_1.z.string()),
|
|
75
|
+
employeeRequirements: zod_openapi_1.z.string().optional(),
|
|
76
|
+
companyBenefits: zod_openapi_1.z.string().optional(),
|
|
77
|
+
wagesMin: zod_openapi_1.z.number().nullable().optional(),
|
|
78
|
+
wagesMax: zod_openapi_1.z.number().nullable().optional(),
|
|
79
|
+
wagesCurrency: WageCurrencySchema.optional(),
|
|
80
|
+
wagesType: WageTypeSchema.optional(),
|
|
130
81
|
});
|
|
131
|
-
exports.
|
|
82
|
+
exports.JobWithGigDetailsEntitySchema = exports.JobEntitySchema.extend(GigDetailsSchema.shape);
|
|
83
|
+
exports.JobWithRoleDetailsEntitySchema = exports.JobEntitySchema.extend(RoleDetailsSchema.shape);
|
|
132
84
|
exports.NormalizedJobSchema = zod_openapi_1.z.union([
|
|
133
85
|
exports.JobWithGigDetailsEntitySchema,
|
|
134
86
|
exports.JobWithRoleDetailsEntitySchema,
|
|
135
87
|
exports.JobEntitySchema,
|
|
136
88
|
]);
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
brandId: zod_openapi_1.z.cuid2().openapi({ example: "ckj1a2b3c0000brnd" }),
|
|
144
|
-
jobType: zod_openapi_1.z
|
|
145
|
-
.enum(Object.values(constants_1.JOB_TYPE))
|
|
146
|
-
.openapi({ example: "ROLE" }),
|
|
147
|
-
employmentType: zod_openapi_1.z
|
|
148
|
-
.enum(Object.values(constants_1.EMPLOYMENT_TYPE))
|
|
149
|
-
.optional()
|
|
150
|
-
.openapi({ example: "FULL_TIME" }),
|
|
151
|
-
workMode: zod_openapi_1.z
|
|
152
|
-
.enum(Object.values(constants_1.WORK_MODE))
|
|
153
|
-
.openapi({ example: "REMOTE" }),
|
|
154
|
-
gigType: zod_openapi_1.z
|
|
155
|
-
.enum(Object.values(constants_1.GIG_TYPE))
|
|
156
|
-
.optional()
|
|
157
|
-
.openapi({ example: "PROJECT_BASED" }),
|
|
158
|
-
location: zod_openapi_1.z
|
|
159
|
-
.enum(Object.values(constants_1.JOB_LOCATIONS))
|
|
160
|
-
.default(constants_1.JOB_LOCATIONS.REMOTE)
|
|
161
|
-
.openapi({ example: "REMOTE" }),
|
|
162
|
-
jobSections: zod_openapi_1.z
|
|
163
|
-
.array(JobSectionEnum)
|
|
164
|
-
.min(1, { message: "At least one job section must be provided." })
|
|
165
|
-
.openapi({ example: ["PERSONAL_INFORMATION", "RESUME"] }),
|
|
166
|
-
});
|
|
167
|
-
exports.CreateJobInputSchema = CreateJobInputBaseSchema.superRefine((data, ctx) => {
|
|
89
|
+
/**
|
|
90
|
+
* --------------------------------
|
|
91
|
+
* INPUTS
|
|
92
|
+
* --------------------------------
|
|
93
|
+
*/
|
|
94
|
+
exports.CreateJobInputSchema = JobShape.superRefine((data, ctx) => {
|
|
168
95
|
if (data.jobType === constants_1.JOB_TYPE.ROLE && !data.employmentType) {
|
|
169
96
|
ctx.addIssue({
|
|
170
97
|
path: ["employmentType"],
|
|
@@ -179,52 +106,23 @@ exports.CreateJobInputSchema = CreateJobInputBaseSchema.superRefine((data, ctx)
|
|
|
179
106
|
message: "gigType is required for GIG jobs",
|
|
180
107
|
});
|
|
181
108
|
}
|
|
182
|
-
}).transform((data) => {
|
|
183
|
-
if (data.jobType === constants_1.JOB_TYPE.ROLE)
|
|
184
|
-
return { ...data, gigType: undefined };
|
|
185
|
-
if (data.jobType === constants_1.JOB_TYPE.GIG)
|
|
186
|
-
return { ...data, employmentType: undefined };
|
|
187
|
-
return data;
|
|
188
|
-
});
|
|
189
|
-
exports.CreateRoleJobInputSchema = exports.RoleJobEntitySchema.omit({
|
|
190
|
-
id: true,
|
|
191
|
-
jobType: true,
|
|
192
|
-
})
|
|
193
|
-
.extend({ id: zod_openapi_1.z.cuid2() })
|
|
194
|
-
.refine(({ wagesMin, wagesMax }) => wagesMin == null || wagesMax == null || wagesMax > wagesMin, {
|
|
195
|
-
message: "wagesMax must be greater than wagesMin",
|
|
196
|
-
path: ["wagesMax"],
|
|
197
|
-
});
|
|
198
|
-
exports.CreateGigJobInputSchema = exports.GigJobEntitySchema.omit({
|
|
199
|
-
id: true,
|
|
200
|
-
jobType: true,
|
|
201
|
-
})
|
|
202
|
-
.extend({ id: zod_openapi_1.z.cuid2() })
|
|
203
|
-
.refine(({ wagesMin, wagesMax }) => wagesMin == null || wagesMax == null || wagesMax > wagesMin, {
|
|
204
|
-
message: "wagesMax must be greater than wagesMin",
|
|
205
|
-
path: ["wagesMax"],
|
|
206
109
|
});
|
|
207
|
-
exports.UpdateJobInputSchema =
|
|
208
|
-
id: zod_openapi_1.z.cuid2()
|
|
209
|
-
status:
|
|
210
|
-
|
|
211
|
-
.optional(),
|
|
212
|
-
version: zod_openapi_1.z.number().int().openapi({ example: 2 }),
|
|
110
|
+
exports.UpdateJobInputSchema = exports.CreateJobInputSchema.partial().extend({
|
|
111
|
+
id: zod_openapi_1.z.cuid2(),
|
|
112
|
+
status: JobStatusSchema.optional(),
|
|
113
|
+
version: zod_openapi_1.z.int(),
|
|
213
114
|
});
|
|
214
115
|
exports.GetJobsInputSchema = zod_openapi_1.z.object({
|
|
215
|
-
q: zod_openapi_1.z.string().optional()
|
|
216
|
-
jobType:
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
.enum(Object.values(constants_1.JOB_LOCATIONS))
|
|
220
|
-
.optional(),
|
|
221
|
-
employmentType: zod_openapi_1.z.string().optional().describe("Comma-separated values"),
|
|
222
|
-
gigType: zod_openapi_1.z.enum(Object.values(constants_1.GIG_TYPE)).optional(),
|
|
223
|
-
requiredSkills: zod_openapi_1.z.string().optional().describe("Comma-separated skills"),
|
|
224
|
-
status: zod_openapi_1.z.string().optional(),
|
|
225
|
-
page: zod_openapi_1.z.coerce.number().int().min(1).default(1),
|
|
226
|
-
limit: zod_openapi_1.z.coerce.number().int().min(1).max(100).default(20),
|
|
116
|
+
q: zod_openapi_1.z.string().optional(),
|
|
117
|
+
jobType: JobTypeSchema.optional(),
|
|
118
|
+
page: zod_openapi_1.z.coerce.number().min(1).default(1),
|
|
119
|
+
limit: zod_openapi_1.z.coerce.number().min(1).max(100).default(20),
|
|
227
120
|
});
|
|
121
|
+
/**
|
|
122
|
+
* --------------------------------
|
|
123
|
+
* OUTPUTS
|
|
124
|
+
* --------------------------------
|
|
125
|
+
*/
|
|
228
126
|
exports.GetJobsOutputSchema = zod_openapi_1.z.object({
|
|
229
127
|
jobs: zod_openapi_1.z.array(exports.NormalizedJobSchema),
|
|
230
128
|
total: zod_openapi_1.z.number(),
|
|
@@ -234,47 +132,16 @@ exports.GetJobsOutputSchema = zod_openapi_1.z.object({
|
|
|
234
132
|
hasNextPage: zod_openapi_1.z.boolean(),
|
|
235
133
|
hasPrevPage: zod_openapi_1.z.boolean(),
|
|
236
134
|
});
|
|
237
|
-
exports.
|
|
238
|
-
jobs: zod_openapi_1.z.array(exports.NormalizedJobSchema),
|
|
239
|
-
noOfJobs: zod_openapi_1.z.number(),
|
|
240
|
-
noOfActiveJobs: zod_openapi_1.z.number(),
|
|
241
|
-
noOfArchivedJobs: zod_openapi_1.z.number(),
|
|
242
|
-
});
|
|
243
|
-
exports.JobSearchDocumentSchema = zod_openapi_1.z
|
|
244
|
-
.object({
|
|
135
|
+
exports.JobSearchDocumentSchema = zod_openapi_1.z.object({
|
|
245
136
|
id: zod_openapi_1.z.cuid2(),
|
|
246
137
|
title: zod_openapi_1.z.string(),
|
|
247
|
-
isApplied: zod_openapi_1.z.boolean().default(false).optional(),
|
|
248
138
|
brandId: zod_openapi_1.z.cuid2(),
|
|
249
139
|
brandName: zod_openapi_1.z.string(),
|
|
250
140
|
brandImgUrl: zod_openapi_1.z.string().nullable().optional(),
|
|
251
141
|
jobType: zod_openapi_1.z.enum(["GIG", "ROLE"]),
|
|
252
|
-
status: zod_openapi_1.z.string().optional(),
|
|
253
|
-
employmentType: zod_openapi_1.z.string().nullable().optional(),
|
|
254
|
-
workMode: zod_openapi_1.z.string(),
|
|
255
|
-
gigType: zod_openapi_1.z.string().nullable().optional(),
|
|
256
142
|
location: zod_openapi_1.z.string(),
|
|
257
143
|
overview: zod_openapi_1.z.string(),
|
|
258
144
|
requiredSkills: zod_openapi_1.z.array(zod_openapi_1.z.string()),
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
wagesCurrency: zod_openapi_1.z.string().nullable().optional(),
|
|
262
|
-
wagesType: zod_openapi_1.z.string().nullable().optional(),
|
|
263
|
-
createdAt: zod_openapi_1.z.string(),
|
|
264
|
-
updatedAt: zod_openapi_1.z.string(),
|
|
265
|
-
})
|
|
266
|
-
.openapi("JobSearchDocument");
|
|
267
|
-
exports.UpdateRoleJobInputSchema = exports.CreateRoleJobInputSchema.partial()
|
|
268
|
-
.extend({
|
|
269
|
-
version: zod_openapi_1.z.number().int().openapi({ example: 2 }),
|
|
270
|
-
})
|
|
271
|
-
.required({
|
|
272
|
-
id: true,
|
|
273
|
-
});
|
|
274
|
-
exports.UpdateGigJobInputSchema = exports.CreateGigJobInputSchema.partial()
|
|
275
|
-
.extend({
|
|
276
|
-
version: zod_openapi_1.z.number().int().openapi({ example: 2 }),
|
|
277
|
-
})
|
|
278
|
-
.required({
|
|
279
|
-
id: true,
|
|
145
|
+
createdAt: zod_openapi_1.z.iso.datetime(),
|
|
146
|
+
updatedAt: zod_openapi_1.z.iso.datetime(),
|
|
280
147
|
});
|
package/dist/schemas/like.d.ts
CHANGED
|
@@ -51,3 +51,6 @@ export declare const LikeOutputSchema: z.ZodObject<{
|
|
|
51
51
|
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
52
52
|
}>;
|
|
53
53
|
}, z.core.$strip>;
|
|
54
|
+
export type LikeEntity = z.infer<typeof LikeEntitySchema>;
|
|
55
|
+
export type LikeInput = z.infer<typeof LikeInputSchema>;
|
|
56
|
+
export type LikeOutput = z.infer<typeof LikeOutputSchema>;
|