@zyacreatives/shared 2.1.15 → 2.1.16
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.
|
@@ -76,8 +76,8 @@ export declare const BaseJobApplicationEntitySchema: z.ZodObject<{
|
|
|
76
76
|
wagesAmount: z.ZodNullable<z.ZodNumber>;
|
|
77
77
|
}, z.core.$strip>;
|
|
78
78
|
export declare const JobApplicationEntitySchema: z.ZodObject<{
|
|
79
|
-
firstName: z.ZodString
|
|
80
|
-
lastName: z.ZodString
|
|
79
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
80
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
81
81
|
jobId: z.ZodCUID2;
|
|
82
82
|
user: z.ZodObject<{
|
|
83
83
|
id: z.ZodCUID2;
|
|
@@ -92,15 +92,15 @@ export declare const JobApplicationEntitySchema: z.ZodObject<{
|
|
|
92
92
|
ADMIN: "ADMIN";
|
|
93
93
|
}>;
|
|
94
94
|
}, z.core.$strip>;
|
|
95
|
-
emailAddress: z.ZodEmail
|
|
95
|
+
emailAddress: z.ZodOptional<z.ZodEmail>;
|
|
96
96
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
97
|
-
currentRole: z.ZodString
|
|
98
|
-
experienceLevel: z.ZodEnum<{
|
|
97
|
+
currentRole: z.ZodOptional<z.ZodString>;
|
|
98
|
+
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
99
99
|
"0-1 year": "0-1 year";
|
|
100
100
|
"1-3 years": "1-3 years";
|
|
101
101
|
"3-5 years": "3-5 years";
|
|
102
102
|
"5+ years": "5+ years";
|
|
103
|
-
}
|
|
103
|
+
}>>;
|
|
104
104
|
resumeUrl: z.ZodURL;
|
|
105
105
|
workSampleUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
106
106
|
url: z.ZodURL;
|
|
@@ -113,27 +113,27 @@ export declare const JobApplicationEntitySchema: z.ZodObject<{
|
|
|
113
113
|
projectId: z.ZodCUID2;
|
|
114
114
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
115
115
|
}, z.core.$strip>>>;
|
|
116
|
-
applicationStatus: z.ZodEnum<{
|
|
116
|
+
applicationStatus: z.ZodDefault<z.ZodEnum<{
|
|
117
117
|
"Application Sent": "Application Sent";
|
|
118
118
|
Opened: "Opened";
|
|
119
119
|
Rejected: "Rejected";
|
|
120
120
|
Offered: "Offered";
|
|
121
121
|
Hired: "Hired";
|
|
122
|
-
}
|
|
122
|
+
}>>;
|
|
123
123
|
applicantId: z.ZodCUID2;
|
|
124
124
|
linkUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
125
125
|
url: z.ZodURL;
|
|
126
126
|
isPortfolioUrl: z.ZodDefault<z.ZodBoolean>;
|
|
127
127
|
}, z.core.$strip>>>;
|
|
128
|
-
coverLetter: z.ZodString
|
|
129
|
-
receiveEmailUpdates: z.ZodBoolean
|
|
130
|
-
wagesAmount: z.ZodOptional<z.ZodCoercedNumber<unknown
|
|
131
|
-
availability: z.ZodEnum<{
|
|
128
|
+
coverLetter: z.ZodOptional<z.ZodString>;
|
|
129
|
+
receiveEmailUpdates: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
+
wagesAmount: z.ZodOptional<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
131
|
+
availability: z.ZodOptional<z.ZodEnum<{
|
|
132
132
|
"Immediate (Within 1 week)": "Immediate (Within 1 week)";
|
|
133
133
|
"2 weeks notice": "2 weeks notice";
|
|
134
134
|
"1 month notice": "1 month notice";
|
|
135
135
|
Flexible: "Flexible";
|
|
136
|
-
}
|
|
136
|
+
}>>;
|
|
137
137
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
138
138
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
139
139
|
}, z.core.$strip>;
|
|
@@ -54,14 +54,16 @@ exports.BaseJobApplicationEntitySchema = zod_openapi_1.z.object({
|
|
|
54
54
|
wagesAmount: zod_openapi_1.z.number().nullable(),
|
|
55
55
|
});
|
|
56
56
|
exports.JobApplicationEntitySchema = zod_openapi_1.z.object({
|
|
57
|
-
firstName: zod_openapi_1.z.string(),
|
|
58
|
-
lastName: zod_openapi_1.z.string(),
|
|
57
|
+
firstName: zod_openapi_1.z.string().optional(),
|
|
58
|
+
lastName: zod_openapi_1.z.string().optional(),
|
|
59
59
|
jobId: zod_openapi_1.z.cuid2(),
|
|
60
60
|
user: user_1.MinimalUserSchema,
|
|
61
|
-
emailAddress: zod_openapi_1.z.email(),
|
|
61
|
+
emailAddress: zod_openapi_1.z.email().optional(),
|
|
62
62
|
phoneNumber: zod_openapi_1.z.string().optional(),
|
|
63
|
-
currentRole: zod_openapi_1.z.string(),
|
|
64
|
-
experienceLevel: zod_openapi_1.z
|
|
63
|
+
currentRole: zod_openapi_1.z.string().optional(),
|
|
64
|
+
experienceLevel: zod_openapi_1.z
|
|
65
|
+
.enum(Object.values(constants_1.EXPERIENCE_LEVELS))
|
|
66
|
+
.optional(),
|
|
65
67
|
resumeUrl: zod_openapi_1.z.url(),
|
|
66
68
|
workSampleUrls: zod_openapi_1.z
|
|
67
69
|
.array(zod_openapi_1.z.object({
|
|
@@ -78,15 +80,19 @@ exports.JobApplicationEntitySchema = zod_openapi_1.z.object({
|
|
|
78
80
|
tags: zod_openapi_1.z.array(zod_openapi_1.z.string()).optional(),
|
|
79
81
|
}))
|
|
80
82
|
.optional(),
|
|
81
|
-
applicationStatus: zod_openapi_1.z
|
|
83
|
+
applicationStatus: zod_openapi_1.z
|
|
84
|
+
.enum(Object.values(constants_1.APPLICATION_STATUS))
|
|
85
|
+
.default("Application Sent"),
|
|
82
86
|
applicantId: zod_openapi_1.z.cuid2(),
|
|
83
87
|
linkUrls: zod_openapi_1.z
|
|
84
88
|
.array(zod_openapi_1.z.object({ url: zod_openapi_1.z.url(), isPortfolioUrl: zod_openapi_1.z.boolean().default(false) }))
|
|
85
89
|
.optional(),
|
|
86
|
-
coverLetter: zod_openapi_1.z.string(),
|
|
87
|
-
receiveEmailUpdates: zod_openapi_1.z.boolean(),
|
|
88
|
-
wagesAmount: zod_openapi_1.z.coerce.number().optional(),
|
|
89
|
-
availability: zod_openapi_1.z
|
|
90
|
+
coverLetter: zod_openapi_1.z.string().optional(),
|
|
91
|
+
receiveEmailUpdates: zod_openapi_1.z.boolean().optional(),
|
|
92
|
+
wagesAmount: zod_openapi_1.z.coerce.number().optional().optional(),
|
|
93
|
+
availability: zod_openapi_1.z
|
|
94
|
+
.enum(Object.values(constants_1.JOB_AVAILABILITY_TYPES))
|
|
95
|
+
.optional(),
|
|
90
96
|
createdAt: zod_openapi_1.z.coerce
|
|
91
97
|
.date()
|
|
92
98
|
.optional()
|
package/package.json
CHANGED
|
@@ -81,16 +81,21 @@ export const BaseJobApplicationEntitySchema = z.object({
|
|
|
81
81
|
});
|
|
82
82
|
|
|
83
83
|
export const JobApplicationEntitySchema = z.object({
|
|
84
|
-
firstName: z.string(),
|
|
85
|
-
lastName: z.string(),
|
|
84
|
+
firstName: z.string().optional(),
|
|
85
|
+
lastName: z.string().optional(),
|
|
86
86
|
jobId: z.cuid2(),
|
|
87
87
|
user: MinimalUserSchema,
|
|
88
|
-
emailAddress: z.email(),
|
|
88
|
+
emailAddress: z.email().optional(),
|
|
89
89
|
phoneNumber: z.string().optional(),
|
|
90
|
-
currentRole: z.string(),
|
|
91
|
-
experienceLevel: z
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
currentRole: z.string().optional(),
|
|
91
|
+
experienceLevel: z
|
|
92
|
+
.enum(
|
|
93
|
+
Object.values(EXPERIENCE_LEVELS) as [
|
|
94
|
+
ExperienceLevel,
|
|
95
|
+
...ExperienceLevel[]
|
|
96
|
+
]
|
|
97
|
+
)
|
|
98
|
+
.optional(),
|
|
94
99
|
resumeUrl: z.url(),
|
|
95
100
|
workSampleUrls: z
|
|
96
101
|
.array(
|
|
@@ -111,27 +116,31 @@ export const JobApplicationEntitySchema = z.object({
|
|
|
111
116
|
})
|
|
112
117
|
)
|
|
113
118
|
.optional(),
|
|
114
|
-
applicationStatus: z
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
applicationStatus: z
|
|
120
|
+
.enum(
|
|
121
|
+
Object.values(APPLICATION_STATUS) as [
|
|
122
|
+
ApplicationStatus,
|
|
123
|
+
...ApplicationStatus[]
|
|
124
|
+
]
|
|
125
|
+
)
|
|
126
|
+
.default("Application Sent"),
|
|
120
127
|
applicantId: z.cuid2(),
|
|
121
128
|
linkUrls: z
|
|
122
129
|
.array(
|
|
123
130
|
z.object({ url: z.url(), isPortfolioUrl: z.boolean().default(false) })
|
|
124
131
|
)
|
|
125
132
|
.optional(),
|
|
126
|
-
coverLetter: z.string(),
|
|
127
|
-
receiveEmailUpdates: z.boolean(),
|
|
128
|
-
wagesAmount: z.coerce.number().optional(),
|
|
129
|
-
availability: z
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
coverLetter: z.string().optional(),
|
|
134
|
+
receiveEmailUpdates: z.boolean().optional(),
|
|
135
|
+
wagesAmount: z.coerce.number().optional().optional(),
|
|
136
|
+
availability: z
|
|
137
|
+
.enum(
|
|
138
|
+
Object.values(JOB_AVAILABILITY_TYPES) as [
|
|
139
|
+
JobAvailabilityTypes,
|
|
140
|
+
...JobAvailabilityTypes[]
|
|
141
|
+
]
|
|
142
|
+
)
|
|
143
|
+
.optional(),
|
|
135
144
|
createdAt: z.coerce
|
|
136
145
|
.date()
|
|
137
146
|
.optional()
|