@zyacreatives/shared 2.0.18 → 2.0.19
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.d.ts +6 -0
- package/dist/schemas/job.js +3 -0
- package/package.json +1 -1
- package/src/schemas/job.ts +3 -0
package/dist/schemas/job.d.ts
CHANGED
|
@@ -530,6 +530,12 @@ export declare const UpdateJobInputSchema: z.ZodObject<{
|
|
|
530
530
|
[x: string]: string;
|
|
531
531
|
}>>>>;
|
|
532
532
|
id: z.ZodCUID2;
|
|
533
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
534
|
+
ACTIVE: "ACTIVE";
|
|
535
|
+
DELETED: "DELETED";
|
|
536
|
+
DRAFT: "DRAFT";
|
|
537
|
+
ARCHIVED: "ARCHIVED";
|
|
538
|
+
}>>;
|
|
533
539
|
}, z.core.$strip>;
|
|
534
540
|
export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
535
541
|
title: z.ZodString;
|
package/dist/schemas/job.js
CHANGED
|
@@ -193,6 +193,9 @@ exports.UpdateRoleJobInputSchema = exports.CreateRoleJobInputSchema.partial().re
|
|
|
193
193
|
exports.UpdateGigJobInputSchema = exports.CreateGigJobInputSchema.partial().required({ id: true });
|
|
194
194
|
exports.UpdateJobInputSchema = exports.CreateJobInputSchema.partial().extend({
|
|
195
195
|
id: zod_1.z.cuid2(),
|
|
196
|
+
status: zod_1.z
|
|
197
|
+
.enum(Object.values(constants_1.JOB_STATUS))
|
|
198
|
+
.optional(),
|
|
196
199
|
});
|
|
197
200
|
exports.NormalizedJobOutputSchema = zod_1.z.discriminatedUnion("jobType", [
|
|
198
201
|
exports.JobWithGigDetailsEntitySchema,
|
package/package.json
CHANGED
package/src/schemas/job.ts
CHANGED
|
@@ -255,6 +255,9 @@ export const UpdateGigJobInputSchema =
|
|
|
255
255
|
|
|
256
256
|
export const UpdateJobInputSchema = CreateJobInputSchema.partial().extend({
|
|
257
257
|
id: z.cuid2(),
|
|
258
|
+
status: z
|
|
259
|
+
.enum(Object.values(JOB_STATUS) as [JobStatus, ...JobStatus[]])
|
|
260
|
+
.optional(),
|
|
258
261
|
});
|
|
259
262
|
|
|
260
263
|
export const NormalizedJobOutputSchema = z.discriminatedUnion("jobType", [
|