@zyacreatives/shared 2.1.1 → 2.1.3
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.
|
@@ -127,7 +127,7 @@ export declare const JobApplicationEntitySchema: z.ZodObject<{
|
|
|
127
127
|
}, z.core.$strip>>>;
|
|
128
128
|
coverLetter: z.ZodString;
|
|
129
129
|
receiveEmailUpdates: z.ZodBoolean;
|
|
130
|
-
wagesAmount: z.ZodOptional<z.
|
|
130
|
+
wagesAmount: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
131
131
|
availability: z.ZodEnum<{
|
|
132
132
|
"Immediate (Within 1 week)": "Immediate (Within 1 week)";
|
|
133
133
|
"2 weeks notice": "2 weeks notice";
|
|
@@ -179,7 +179,7 @@ export declare const CreateJobApplicationInputSchema: z.ZodObject<{
|
|
|
179
179
|
}, z.core.$strip>>>;
|
|
180
180
|
coverLetter: z.ZodString;
|
|
181
181
|
receiveEmailUpdates: z.ZodBoolean;
|
|
182
|
-
wagesAmount: z.ZodOptional<z.
|
|
182
|
+
wagesAmount: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
183
183
|
availability: z.ZodOptional<z.ZodEnum<{
|
|
184
184
|
readonly IMMEDIATE: "Immediate (Within 1 week)";
|
|
185
185
|
readonly TWO_WEEKS_NOTICE: "2 weeks notice";
|
|
@@ -78,7 +78,7 @@ exports.JobApplicationEntitySchema = zod_openapi_1.z.object({
|
|
|
78
78
|
.optional(),
|
|
79
79
|
coverLetter: zod_openapi_1.z.string(),
|
|
80
80
|
receiveEmailUpdates: zod_openapi_1.z.boolean(),
|
|
81
|
-
wagesAmount: zod_openapi_1.z.
|
|
81
|
+
wagesAmount: zod_openapi_1.z.coerce.number().optional(),
|
|
82
82
|
availability: zod_openapi_1.z.enum(Object.values(constants_1.JOB_AVAILABILITY_TYPES)),
|
|
83
83
|
createdAt: zod_openapi_1.z.coerce
|
|
84
84
|
.date()
|
|
@@ -117,7 +117,7 @@ exports.CreateJobApplicationInputSchema = zod_openapi_1.z.object({
|
|
|
117
117
|
.optional(),
|
|
118
118
|
coverLetter: zod_openapi_1.z.string(),
|
|
119
119
|
receiveEmailUpdates: zod_openapi_1.z.boolean(),
|
|
120
|
-
wagesAmount: zod_openapi_1.z.
|
|
120
|
+
wagesAmount: zod_openapi_1.z.coerce.number().optional(),
|
|
121
121
|
availability: zod_openapi_1.z.enum(constants_1.JOB_AVAILABILITY_TYPES).optional(),
|
|
122
122
|
});
|
|
123
123
|
exports.UpdateJobApplicationStatusSchema = zod_openapi_1.z.object({
|
package/dist/schemas/post.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ export declare const PostWithFilesEntitySchema: z.ZodObject<{
|
|
|
99
99
|
}, z.core.$strip>>>;
|
|
100
100
|
}, z.core.$strip>;
|
|
101
101
|
export declare const CreatePostInputSchema: z.ZodObject<{
|
|
102
|
+
id: z.ZodCUID2;
|
|
102
103
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
103
104
|
parentType: z.ZodDefault<z.ZodEnum<{
|
|
104
105
|
readonly PROJECT: "PROJECT";
|
|
@@ -131,10 +132,10 @@ export declare const CreatePostInputSchema: z.ZodObject<{
|
|
|
131
132
|
readonly MENTORSHIP: "Mentorship";
|
|
132
133
|
}>>;
|
|
133
134
|
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
134
|
-
url: z.
|
|
135
|
+
url: z.ZodURL;
|
|
135
136
|
title: z.ZodOptional<z.ZodString>;
|
|
136
137
|
description: z.ZodOptional<z.ZodString>;
|
|
137
|
-
image: z.ZodOptional<z.
|
|
138
|
+
image: z.ZodOptional<z.ZodURL>;
|
|
138
139
|
}, z.core.$strip>>;
|
|
139
140
|
}, z.core.$strip>;
|
|
140
141
|
export declare const CreatePostOutputSchema: z.ZodObject<{
|
package/dist/schemas/post.js
CHANGED
|
@@ -84,6 +84,7 @@ exports.PostWithFilesEntitySchema = exports.PostEntitySchema.extend({
|
|
|
84
84
|
.openapi({ description: "Files associated with the project." }),
|
|
85
85
|
});
|
|
86
86
|
exports.CreatePostInputSchema = zod_openapi_1.z.object({
|
|
87
|
+
id: zod_openapi_1.z.cuid2(),
|
|
87
88
|
parentId: zod_openapi_1.z
|
|
88
89
|
.cuid2({ message: "Invalid parentId" })
|
|
89
90
|
.optional()
|
|
@@ -118,7 +119,7 @@ exports.CreatePostInputSchema = zod_openapi_1.z.object({
|
|
|
118
119
|
badge: zod_openapi_1.z.enum(constants_1.POST_BADGE_TYPES).optional(),
|
|
119
120
|
linkMeta: zod_openapi_1.z
|
|
120
121
|
.object({
|
|
121
|
-
url: zod_openapi_1.z.url({ message: "Invalid URL format" })
|
|
122
|
+
url: zod_openapi_1.z.url({ message: "Invalid URL format" }),
|
|
122
123
|
title: zod_openapi_1.z
|
|
123
124
|
.string()
|
|
124
125
|
.max(200, { message: "Title cannot exceed 200 characters" })
|
|
@@ -127,7 +128,7 @@ exports.CreatePostInputSchema = zod_openapi_1.z.object({
|
|
|
127
128
|
.string()
|
|
128
129
|
.max(500, { message: "Description cannot exceed 500 characters" })
|
|
129
130
|
.optional(),
|
|
130
|
-
image: zod_openapi_1.z.
|
|
131
|
+
image: zod_openapi_1.z.url({ message: "Invalid image URL" }).optional(),
|
|
131
132
|
})
|
|
132
133
|
.optional()
|
|
133
134
|
.openapi({
|
package/package.json
CHANGED
|
@@ -120,7 +120,7 @@ export const JobApplicationEntitySchema = z.object({
|
|
|
120
120
|
.optional(),
|
|
121
121
|
coverLetter: z.string(),
|
|
122
122
|
receiveEmailUpdates: z.boolean(),
|
|
123
|
-
wagesAmount: z.
|
|
123
|
+
wagesAmount: z.coerce.number().optional(),
|
|
124
124
|
availability: z.enum(
|
|
125
125
|
Object.values(JOB_AVAILABILITY_TYPES) as [
|
|
126
126
|
JobAvailabilityTypes,
|
|
@@ -172,7 +172,7 @@ export const CreateJobApplicationInputSchema = z.object({
|
|
|
172
172
|
.optional(),
|
|
173
173
|
coverLetter: z.string(),
|
|
174
174
|
receiveEmailUpdates: z.boolean(),
|
|
175
|
-
wagesAmount: z.
|
|
175
|
+
wagesAmount: z.coerce.number().optional(),
|
|
176
176
|
availability: z.enum(JOB_AVAILABILITY_TYPES).optional(),
|
|
177
177
|
});
|
|
178
178
|
|
package/src/schemas/post.ts
CHANGED
|
@@ -95,6 +95,7 @@ export const PostWithFilesEntitySchema = PostEntitySchema.extend({
|
|
|
95
95
|
});
|
|
96
96
|
|
|
97
97
|
export const CreatePostInputSchema = z.object({
|
|
98
|
+
id: z.cuid2(),
|
|
98
99
|
parentId: z
|
|
99
100
|
.cuid2({ message: "Invalid parentId" })
|
|
100
101
|
.optional()
|
|
@@ -135,7 +136,7 @@ export const CreatePostInputSchema = z.object({
|
|
|
135
136
|
badge: z.enum(POST_BADGE_TYPES).optional(),
|
|
136
137
|
linkMeta: z
|
|
137
138
|
.object({
|
|
138
|
-
url: z.url({ message: "Invalid URL format" })
|
|
139
|
+
url: z.url({ message: "Invalid URL format" }),
|
|
139
140
|
title: z
|
|
140
141
|
.string()
|
|
141
142
|
.max(200, { message: "Title cannot exceed 200 characters" })
|
|
@@ -144,7 +145,7 @@ export const CreatePostInputSchema = z.object({
|
|
|
144
145
|
.string()
|
|
145
146
|
.max(500, { message: "Description cannot exceed 500 characters" })
|
|
146
147
|
.optional(),
|
|
147
|
-
image: z.
|
|
148
|
+
image: z.url({ message: "Invalid image URL" }).optional(),
|
|
148
149
|
})
|
|
149
150
|
.optional()
|
|
150
151
|
.openapi({
|