@zyacreatives/shared 2.0.99 → 2.1.1
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.
|
@@ -151,6 +151,16 @@ export declare const CreateJobApplicationInputSchema: z.ZodObject<{
|
|
|
151
151
|
"3-5 years": "3-5 years";
|
|
152
152
|
"5+ years": "5+ years";
|
|
153
153
|
}>;
|
|
154
|
+
jobSections: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
155
|
+
readonly PERSONAL_INFORMATION: "PERSONAL_INFORMATION";
|
|
156
|
+
readonly PHONE_NO: "PHONE_NO";
|
|
157
|
+
readonly PROFESSIONAL_INFORMATION: "PROFESSIONAL_INFORMATION";
|
|
158
|
+
readonly RESUME: "RESUME";
|
|
159
|
+
readonly COVER_LETTER: "COVER_LETTER";
|
|
160
|
+
readonly PORTFOLIO_OR_WORK_SAMPLES: "PORTFOLIO_OR_WORK_SAMPLES";
|
|
161
|
+
readonly AVAILABILITY: "AVAILABILITY";
|
|
162
|
+
readonly WAGES: "WAGES";
|
|
163
|
+
}>>>;
|
|
154
164
|
resumeUrl: z.ZodURL;
|
|
155
165
|
workSampleUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
156
166
|
url: z.ZodURL;
|
|
@@ -170,19 +180,19 @@ export declare const CreateJobApplicationInputSchema: z.ZodObject<{
|
|
|
170
180
|
coverLetter: z.ZodString;
|
|
171
181
|
receiveEmailUpdates: z.ZodBoolean;
|
|
172
182
|
wagesAmount: z.ZodOptional<z.ZodString>;
|
|
173
|
-
availability: z.ZodEnum<{
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}
|
|
183
|
+
availability: z.ZodOptional<z.ZodEnum<{
|
|
184
|
+
readonly IMMEDIATE: "Immediate (Within 1 week)";
|
|
185
|
+
readonly TWO_WEEKS_NOTICE: "2 weeks notice";
|
|
186
|
+
readonly ONE_MONTH_NOTICE: "1 month notice";
|
|
187
|
+
readonly FLEXIBLE: "Flexible";
|
|
188
|
+
}>>;
|
|
179
189
|
}, z.core.$strip>;
|
|
180
190
|
export declare const UpdateJobApplicationStatusSchema: z.ZodObject<{
|
|
181
191
|
applicationStatus: z.ZodEnum<{
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
192
|
+
readonly SENT: "Application Sent";
|
|
193
|
+
readonly OPENED: "Opened";
|
|
194
|
+
readonly REJECTED: "Rejected";
|
|
195
|
+
readonly OFFERED: "Offered";
|
|
196
|
+
readonly HIRED: "Hired";
|
|
187
197
|
}>;
|
|
188
198
|
}, z.core.$strip>;
|
|
@@ -95,6 +95,7 @@ exports.CreateJobApplicationInputSchema = zod_openapi_1.z.object({
|
|
|
95
95
|
phoneNumber: zod_openapi_1.z.string().optional(),
|
|
96
96
|
currentRole: zod_openapi_1.z.string(),
|
|
97
97
|
experienceLevel: zod_openapi_1.z.enum(Object.values(constants_1.EXPERIENCE_LEVELS)),
|
|
98
|
+
jobSections: zod_openapi_1.z.array(zod_openapi_1.z.enum(constants_1.JOB_SECTIONS)).optional(),
|
|
98
99
|
resumeUrl: zod_openapi_1.z.url(),
|
|
99
100
|
workSampleUrls: zod_openapi_1.z
|
|
100
101
|
.array(zod_openapi_1.z.object({
|
|
@@ -117,8 +118,8 @@ exports.CreateJobApplicationInputSchema = zod_openapi_1.z.object({
|
|
|
117
118
|
coverLetter: zod_openapi_1.z.string(),
|
|
118
119
|
receiveEmailUpdates: zod_openapi_1.z.boolean(),
|
|
119
120
|
wagesAmount: zod_openapi_1.z.string().optional(),
|
|
120
|
-
availability: zod_openapi_1.z.enum(
|
|
121
|
+
availability: zod_openapi_1.z.enum(constants_1.JOB_AVAILABILITY_TYPES).optional(),
|
|
121
122
|
});
|
|
122
123
|
exports.UpdateJobApplicationStatusSchema = zod_openapi_1.z.object({
|
|
123
|
-
applicationStatus: zod_openapi_1.z.enum(
|
|
124
|
+
applicationStatus: zod_openapi_1.z.enum(constants_1.APPLICATION_STATUS),
|
|
124
125
|
});
|
package/package.json
CHANGED
|
@@ -5,7 +5,9 @@ import {
|
|
|
5
5
|
EXPERIENCE_LEVELS,
|
|
6
6
|
ExperienceLevel,
|
|
7
7
|
JOB_AVAILABILITY_TYPES,
|
|
8
|
+
JOB_SECTIONS,
|
|
8
9
|
JobAvailabilityTypes,
|
|
10
|
+
JobSections,
|
|
9
11
|
} from "../constants";
|
|
10
12
|
import { MinimalUserSchema } from "./user";
|
|
11
13
|
|
|
@@ -143,6 +145,8 @@ export const CreateJobApplicationInputSchema = z.object({
|
|
|
143
145
|
experienceLevel: z.enum(
|
|
144
146
|
Object.values(EXPERIENCE_LEVELS) as [ExperienceLevel, ...ExperienceLevel[]]
|
|
145
147
|
),
|
|
148
|
+
jobSections: z.array(z.enum(JOB_SECTIONS)).optional(),
|
|
149
|
+
|
|
146
150
|
resumeUrl: z.url(),
|
|
147
151
|
workSampleUrls: z
|
|
148
152
|
.array(
|
|
@@ -169,19 +173,9 @@ export const CreateJobApplicationInputSchema = z.object({
|
|
|
169
173
|
coverLetter: z.string(),
|
|
170
174
|
receiveEmailUpdates: z.boolean(),
|
|
171
175
|
wagesAmount: z.string().optional(),
|
|
172
|
-
availability: z.enum(
|
|
173
|
-
Object.values(JOB_AVAILABILITY_TYPES) as [
|
|
174
|
-
JobAvailabilityTypes,
|
|
175
|
-
...JobAvailabilityTypes[]
|
|
176
|
-
]
|
|
177
|
-
),
|
|
176
|
+
availability: z.enum(JOB_AVAILABILITY_TYPES).optional(),
|
|
178
177
|
});
|
|
179
178
|
|
|
180
179
|
export const UpdateJobApplicationStatusSchema = z.object({
|
|
181
|
-
applicationStatus: z.enum(
|
|
182
|
-
Object.values(APPLICATION_STATUS) as [
|
|
183
|
-
ApplicationStatus,
|
|
184
|
-
...ApplicationStatus[]
|
|
185
|
-
]
|
|
186
|
-
),
|
|
180
|
+
applicationStatus: z.enum(APPLICATION_STATUS),
|
|
187
181
|
});
|