@zyacreatives/shared 1.9.6 → 1.9.7

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.
@@ -2,6 +2,9 @@ import { z } from "zod";
2
2
  export declare const JobEntitySchema: z.ZodObject<{
3
3
  id: z.ZodCUID2;
4
4
  title: z.ZodString;
5
+ brandId: z.ZodCUID2;
6
+ brandName: z.ZodCUID2;
7
+ brandImgUrl: z.ZodOptional<z.ZodCUID2>;
5
8
  jobType: z.ZodEnum<{
6
9
  [x: string]: string;
7
10
  }>;
@@ -33,6 +36,9 @@ export declare const JobEntitySchema: z.ZodObject<{
33
36
  }, z.core.$strip>;
34
37
  export declare const GigJobEntitySchema: z.ZodObject<{
35
38
  title: z.ZodString;
39
+ brandId: z.ZodCUID2;
40
+ brandName: z.ZodCUID2;
41
+ brandImgUrl: z.ZodOptional<z.ZodCUID2>;
36
42
  workMode: z.ZodEnum<{
37
43
  [x: string]: string;
38
44
  }>;
@@ -88,6 +94,9 @@ export declare const GigJobEntitySchema: z.ZodObject<{
88
94
  export declare const RoleJobEntitySchema: z.ZodObject<{
89
95
  id: z.ZodCUID2;
90
96
  title: z.ZodString;
97
+ brandId: z.ZodCUID2;
98
+ brandName: z.ZodCUID2;
99
+ brandImgUrl: z.ZodOptional<z.ZodCUID2>;
91
100
  workMode: z.ZodEnum<{
92
101
  [x: string]: string;
93
102
  }>;
@@ -147,6 +156,7 @@ export declare const RoleJobEntitySchema: z.ZodObject<{
147
156
  }, z.core.$strip>;
148
157
  export declare const CreateJobInputSchema: z.ZodObject<{
149
158
  title: z.ZodString;
159
+ brandId: z.ZodCUID2;
150
160
  jobType: z.ZodEnum<{
151
161
  [x: string]: string;
152
162
  }>;
@@ -308,6 +318,7 @@ export declare const UpdateGigJobInputSchema: z.ZodObject<{
308
318
  }, z.core.$strip>;
309
319
  export declare const UpdateJobInputSchema: z.ZodObject<{
310
320
  title: z.ZodOptional<z.ZodString>;
321
+ brandId: z.ZodOptional<z.ZodCUID2>;
311
322
  jobType: z.ZodOptional<z.ZodEnum<{
312
323
  [x: string]: string;
313
324
  }>>;
@@ -6,6 +6,9 @@ const constants_1 = require("../constants");
6
6
  exports.JobEntitySchema = zod_1.z.object({
7
7
  id: zod_1.z.cuid2(),
8
8
  title: zod_1.z.string(),
9
+ brandId: zod_1.z.cuid2(),
10
+ brandName: zod_1.z.cuid2(),
11
+ brandImgUrl: zod_1.z.cuid2().optional(),
9
12
  jobType: zod_1.z.enum(Object.values(constants_1.JOB_TYPE)),
10
13
  employmentType: zod_1.z
11
14
  .enum(Object.values(constants_1.EMPLOYMENT_TYPE))
@@ -61,6 +64,7 @@ exports.RoleJobEntitySchema = exports.JobEntitySchema.extend({
61
64
  exports.CreateJobInputSchema = zod_1.z
62
65
  .object({
63
66
  title: zod_1.z.string(),
67
+ brandId: zod_1.z.cuid2(),
64
68
  jobType: zod_1.z.enum(Object.values(constants_1.JOB_TYPE)),
65
69
  // status: z.enum(Object.values(JOB_TYPE) as [JobType, ...JobType[]]),
66
70
  employmentType: zod_1.z.enum(Object.values(constants_1.EMPLOYMENT_TYPE)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "1.9.6",
3
+ "version": "1.9.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,6 +24,9 @@ import {
24
24
  export const JobEntitySchema = z.object({
25
25
  id: z.cuid2(),
26
26
  title: z.string(),
27
+ brandId: z.cuid2(),
28
+ brandName: z.cuid2(),
29
+ brandImgUrl: z.cuid2().optional(),
27
30
  jobType: z.enum(Object.values(JOB_TYPE) as [JobType, ...JobType[]]),
28
31
  employmentType: z
29
32
  .enum(
@@ -90,6 +93,7 @@ export const RoleJobEntitySchema = JobEntitySchema.extend({
90
93
  export const CreateJobInputSchema = z
91
94
  .object({
92
95
  title: z.string(),
96
+ brandId: z.cuid2(),
93
97
  jobType: z.enum(Object.values(JOB_TYPE) as [JobType, ...JobType[]]),
94
98
  // status: z.enum(Object.values(JOB_TYPE) as [JobType, ...JobType[]]),
95
99
  employmentType: z.enum(