@zyacreatives/shared 1.9.99 → 2.0.0

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.
@@ -93,19 +93,19 @@ export declare const POST_TYPES: {
93
93
  readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
94
94
  };
95
95
  export declare const JOB_TYPE: {
96
- GIG: string;
97
- ROLE: string;
96
+ readonly GIG: "GIG";
97
+ readonly ROLE: "ROLE";
98
98
  };
99
99
  export declare const WORK_MODE: {
100
- REMOTE: string;
101
- HYBRID: string;
102
- ON_SITE: string;
100
+ readonly REMOTE: "Remote";
101
+ readonly HYBRID: "Hybrid";
102
+ readonly ON_SITE: "On Site";
103
103
  };
104
104
  export declare const EMPLOYMENT_TYPE: {
105
- FULL_TIME: string;
106
- PART_TIME: string;
107
- FREELANCE: string;
108
- INTERNSHIP: string;
105
+ readonly FULL_TIME: "Full Time";
106
+ readonly PART_TIME: "Part Time";
107
+ readonly FREELANCE: "Freelance";
108
+ readonly INTERNSHIP: "Internship";
109
109
  };
110
110
  export declare const JOB_AVAILABILITY_TYPES: {
111
111
  readonly FULL_TIME: "Full Time";
@@ -4,13 +4,19 @@ export declare const BaseJobEntitySchema: z.ZodObject<{
4
4
  title: z.ZodString;
5
5
  brandId: z.ZodCUID2;
6
6
  jobType: z.ZodEnum<{
7
- [x: string]: string;
7
+ GIG: "GIG";
8
+ ROLE: "ROLE";
8
9
  }>;
9
10
  employmentType: z.ZodOptional<z.ZodEnum<{
10
- [x: string]: string;
11
+ "Full Time": "Full Time";
12
+ "Part Time": "Part Time";
13
+ Freelance: "Freelance";
14
+ Internship: "Internship";
11
15
  }>>;
12
16
  workMode: z.ZodEnum<{
13
- [x: string]: string;
17
+ Remote: "Remote";
18
+ Hybrid: "Hybrid";
19
+ "On Site": "On Site";
14
20
  }>;
15
21
  gigType: z.ZodOptional<z.ZodEnum<{
16
22
  [x: string]: string;
@@ -42,13 +48,19 @@ export declare const JobEntitySchema: z.ZodObject<{
42
48
  brandName: z.ZodCUID2;
43
49
  brandImgUrl: z.ZodOptional<z.ZodCUID2>;
44
50
  jobType: z.ZodEnum<{
45
- [x: string]: string;
51
+ GIG: "GIG";
52
+ ROLE: "ROLE";
46
53
  }>;
47
54
  employmentType: z.ZodOptional<z.ZodEnum<{
48
- [x: string]: string;
55
+ "Full Time": "Full Time";
56
+ "Part Time": "Part Time";
57
+ Freelance: "Freelance";
58
+ Internship: "Internship";
49
59
  }>>;
50
60
  workMode: z.ZodEnum<{
51
- [x: string]: string;
61
+ Remote: "Remote";
62
+ Hybrid: "Hybrid";
63
+ "On Site": "On Site";
52
64
  }>;
53
65
  gigType: z.ZodOptional<z.ZodEnum<{
54
66
  [x: string]: string;
@@ -72,7 +84,7 @@ export declare const JobEntitySchema: z.ZodObject<{
72
84
  }, z.core.$strip>;
73
85
  export declare const GigJobEntitySchema: z.ZodObject<{
74
86
  id: z.ZodCUID2;
75
- jobType: z.ZodLiteral<string>;
87
+ jobType: z.ZodLiteral<"GIG">;
76
88
  overview: z.ZodString;
77
89
  deliverables: z.ZodArray<z.ZodString>;
78
90
  employeeRequirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -107,10 +119,15 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
107
119
  brandName: z.ZodCUID2;
108
120
  brandImgUrl: z.ZodOptional<z.ZodCUID2>;
109
121
  employmentType: z.ZodOptional<z.ZodEnum<{
110
- [x: string]: string;
122
+ "Full Time": "Full Time";
123
+ "Part Time": "Part Time";
124
+ Freelance: "Freelance";
125
+ Internship: "Internship";
111
126
  }>>;
112
127
  workMode: z.ZodEnum<{
113
- [x: string]: string;
128
+ Remote: "Remote";
129
+ Hybrid: "Hybrid";
130
+ "On Site": "On Site";
114
131
  }>;
115
132
  gigType: z.ZodOptional<z.ZodEnum<{
116
133
  [x: string]: string;
@@ -132,7 +149,7 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
132
149
  createdAt: z.ZodDate;
133
150
  updatedAt: z.ZodDate;
134
151
  id: z.ZodCUID2;
135
- jobType: z.ZodLiteral<string>;
152
+ jobType: z.ZodLiteral<"GIG">;
136
153
  overview: z.ZodString;
137
154
  deliverables: z.ZodArray<z.ZodString>;
138
155
  employeeRequirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -163,7 +180,7 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
163
180
  }, z.core.$strip>;
164
181
  export declare const RoleJobEntitySchema: z.ZodObject<{
165
182
  id: z.ZodCUID2;
166
- jobType: z.ZodLiteral<string>;
183
+ jobType: z.ZodLiteral<"ROLE">;
167
184
  experienceLevel: z.ZodEnum<{
168
185
  "0-1 year": "0-1 year";
169
186
  "1-3 years": "1-3 years";
@@ -204,10 +221,15 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
204
221
  brandName: z.ZodCUID2;
205
222
  brandImgUrl: z.ZodOptional<z.ZodCUID2>;
206
223
  employmentType: z.ZodOptional<z.ZodEnum<{
207
- [x: string]: string;
224
+ "Full Time": "Full Time";
225
+ "Part Time": "Part Time";
226
+ Freelance: "Freelance";
227
+ Internship: "Internship";
208
228
  }>>;
209
229
  workMode: z.ZodEnum<{
210
- [x: string]: string;
230
+ Remote: "Remote";
231
+ Hybrid: "Hybrid";
232
+ "On Site": "On Site";
211
233
  }>;
212
234
  gigType: z.ZodOptional<z.ZodEnum<{
213
235
  [x: string]: string;
@@ -229,7 +251,7 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
229
251
  createdAt: z.ZodDate;
230
252
  updatedAt: z.ZodDate;
231
253
  id: z.ZodCUID2;
232
- jobType: z.ZodLiteral<string>;
254
+ jobType: z.ZodLiteral<"ROLE">;
233
255
  experienceLevel: z.ZodEnum<{
234
256
  "0-1 year": "0-1 year";
235
257
  "1-3 years": "1-3 years";
@@ -268,13 +290,19 @@ export declare const CreateJobInputSchema: z.ZodObject<{
268
290
  title: z.ZodString;
269
291
  brandId: z.ZodCUID2;
270
292
  jobType: z.ZodEnum<{
271
- [x: string]: string;
293
+ GIG: "GIG";
294
+ ROLE: "ROLE";
272
295
  }>;
273
296
  employmentType: z.ZodOptional<z.ZodEnum<{
274
- [x: string]: string;
297
+ "Full Time": "Full Time";
298
+ "Part Time": "Part Time";
299
+ Freelance: "Freelance";
300
+ Internship: "Internship";
275
301
  }>>;
276
302
  workMode: z.ZodEnum<{
277
- [x: string]: string;
303
+ Remote: "Remote";
304
+ Hybrid: "Hybrid";
305
+ "On Site": "On Site";
278
306
  }>;
279
307
  gigType: z.ZodOptional<z.ZodEnum<{
280
308
  [x: string]: string;
@@ -432,13 +460,19 @@ export declare const UpdateJobInputSchema: z.ZodObject<{
432
460
  title: z.ZodOptional<z.ZodString>;
433
461
  brandId: z.ZodOptional<z.ZodCUID2>;
434
462
  jobType: z.ZodOptional<z.ZodEnum<{
435
- [x: string]: string;
463
+ GIG: "GIG";
464
+ ROLE: "ROLE";
436
465
  }>>;
437
466
  employmentType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
438
- [x: string]: string;
467
+ "Full Time": "Full Time";
468
+ "Part Time": "Part Time";
469
+ Freelance: "Freelance";
470
+ Internship: "Internship";
439
471
  }>>>;
440
472
  workMode: z.ZodOptional<z.ZodEnum<{
441
- [x: string]: string;
473
+ Remote: "Remote";
474
+ Hybrid: "Hybrid";
475
+ "On Site": "On Site";
442
476
  }>>;
443
477
  gigType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
444
478
  [x: string]: string;
@@ -465,10 +499,15 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
465
499
  brandName: z.ZodCUID2;
466
500
  brandImgUrl: z.ZodOptional<z.ZodCUID2>;
467
501
  employmentType: z.ZodOptional<z.ZodEnum<{
468
- [x: string]: string;
502
+ "Full Time": "Full Time";
503
+ "Part Time": "Part Time";
504
+ Freelance: "Freelance";
505
+ Internship: "Internship";
469
506
  }>>;
470
507
  workMode: z.ZodEnum<{
471
- [x: string]: string;
508
+ Remote: "Remote";
509
+ Hybrid: "Hybrid";
510
+ "On Site": "On Site";
472
511
  }>;
473
512
  gigType: z.ZodOptional<z.ZodEnum<{
474
513
  [x: string]: string;
@@ -490,7 +529,7 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
490
529
  createdAt: z.ZodDate;
491
530
  updatedAt: z.ZodDate;
492
531
  id: z.ZodCUID2;
493
- jobType: z.ZodLiteral<string>;
532
+ jobType: z.ZodLiteral<"GIG">;
494
533
  overview: z.ZodString;
495
534
  deliverables: z.ZodArray<z.ZodString>;
496
535
  employeeRequirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -524,10 +563,15 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
524
563
  brandName: z.ZodCUID2;
525
564
  brandImgUrl: z.ZodOptional<z.ZodCUID2>;
526
565
  employmentType: z.ZodOptional<z.ZodEnum<{
527
- [x: string]: string;
566
+ "Full Time": "Full Time";
567
+ "Part Time": "Part Time";
568
+ Freelance: "Freelance";
569
+ Internship: "Internship";
528
570
  }>>;
529
571
  workMode: z.ZodEnum<{
530
- [x: string]: string;
572
+ Remote: "Remote";
573
+ Hybrid: "Hybrid";
574
+ "On Site": "On Site";
531
575
  }>;
532
576
  gigType: z.ZodOptional<z.ZodEnum<{
533
577
  [x: string]: string;
@@ -549,7 +593,7 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
549
593
  createdAt: z.ZodDate;
550
594
  updatedAt: z.ZodDate;
551
595
  id: z.ZodCUID2;
552
- jobType: z.ZodLiteral<string>;
596
+ jobType: z.ZodLiteral<"ROLE">;
553
597
  experienceLevel: z.ZodEnum<{
554
598
  "0-1 year": "0-1 year";
555
599
  "1-3 years": "1-3 years";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "1.9.99",
3
+ "version": "2.0.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/constants.ts CHANGED
@@ -107,20 +107,19 @@ export const POST_TYPES = {
107
107
  export const JOB_TYPE = {
108
108
  GIG: "GIG",
109
109
  ROLE: "ROLE",
110
- };
110
+ } as const;
111
111
 
112
112
  export const WORK_MODE = {
113
113
  REMOTE: "Remote",
114
114
  HYBRID: "Hybrid",
115
115
  ON_SITE: "On Site",
116
- };
117
-
116
+ } as const;
118
117
  export const EMPLOYMENT_TYPE = {
119
118
  FULL_TIME: "Full Time",
120
119
  PART_TIME: "Part Time",
121
120
  FREELANCE: "Freelance",
122
121
  INTERNSHIP: "Internship",
123
- };
122
+ } as const;
124
123
 
125
124
  export const JOB_AVAILABILITY_TYPES = {
126
125
  FULL_TIME: "Full Time",