@zyacreatives/shared 1.9.99 → 2.0.1
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/constants.d.ts +11 -11
- package/dist/schemas/job.d.ts +86 -34
- package/package.json +1 -1
- package/src/constants.ts +4 -5
package/dist/constants.d.ts
CHANGED
|
@@ -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:
|
|
97
|
-
ROLE:
|
|
96
|
+
readonly GIG: "GIG";
|
|
97
|
+
readonly ROLE: "ROLE";
|
|
98
98
|
};
|
|
99
99
|
export declare const WORK_MODE: {
|
|
100
|
-
REMOTE:
|
|
101
|
-
HYBRID:
|
|
102
|
-
ON_SITE:
|
|
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:
|
|
106
|
-
PART_TIME:
|
|
107
|
-
FREELANCE:
|
|
108
|
-
INTERNSHIP:
|
|
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";
|
|
@@ -147,8 +147,8 @@ export declare const JOB_LOCATIONS: {
|
|
|
147
147
|
};
|
|
148
148
|
export type JobLocation = (typeof JOB_LOCATIONS)[keyof typeof JOB_LOCATIONS];
|
|
149
149
|
export declare const GIG_TYPE: {
|
|
150
|
-
ONE_TIME:
|
|
151
|
-
RECURRING:
|
|
150
|
+
readonly ONE_TIME: "One Time";
|
|
151
|
+
readonly RECURRING: "Recurring";
|
|
152
152
|
};
|
|
153
153
|
export declare const WAGES_CURRENCY: {
|
|
154
154
|
readonly USD: "USD";
|
package/dist/schemas/job.d.ts
CHANGED
|
@@ -4,16 +4,23 @@ export declare const BaseJobEntitySchema: z.ZodObject<{
|
|
|
4
4
|
title: z.ZodString;
|
|
5
5
|
brandId: z.ZodCUID2;
|
|
6
6
|
jobType: z.ZodEnum<{
|
|
7
|
-
|
|
7
|
+
GIG: "GIG";
|
|
8
|
+
ROLE: "ROLE";
|
|
8
9
|
}>;
|
|
9
10
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
10
|
-
|
|
11
|
+
"Full Time": "Full Time";
|
|
12
|
+
"Part Time": "Part Time";
|
|
13
|
+
Freelance: "Freelance";
|
|
14
|
+
Internship: "Internship";
|
|
11
15
|
}>>;
|
|
12
16
|
workMode: z.ZodEnum<{
|
|
13
|
-
|
|
17
|
+
Remote: "Remote";
|
|
18
|
+
Hybrid: "Hybrid";
|
|
19
|
+
"On Site": "On Site";
|
|
14
20
|
}>;
|
|
15
21
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
16
|
-
|
|
22
|
+
"One Time": "One Time";
|
|
23
|
+
Recurring: "Recurring";
|
|
17
24
|
}>>;
|
|
18
25
|
location: z.ZodEnum<{
|
|
19
26
|
Africa: "Africa";
|
|
@@ -42,16 +49,23 @@ export declare const JobEntitySchema: z.ZodObject<{
|
|
|
42
49
|
brandName: z.ZodCUID2;
|
|
43
50
|
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
44
51
|
jobType: z.ZodEnum<{
|
|
45
|
-
|
|
52
|
+
GIG: "GIG";
|
|
53
|
+
ROLE: "ROLE";
|
|
46
54
|
}>;
|
|
47
55
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
48
|
-
|
|
56
|
+
"Full Time": "Full Time";
|
|
57
|
+
"Part Time": "Part Time";
|
|
58
|
+
Freelance: "Freelance";
|
|
59
|
+
Internship: "Internship";
|
|
49
60
|
}>>;
|
|
50
61
|
workMode: z.ZodEnum<{
|
|
51
|
-
|
|
62
|
+
Remote: "Remote";
|
|
63
|
+
Hybrid: "Hybrid";
|
|
64
|
+
"On Site": "On Site";
|
|
52
65
|
}>;
|
|
53
66
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
54
|
-
|
|
67
|
+
"One Time": "One Time";
|
|
68
|
+
Recurring: "Recurring";
|
|
55
69
|
}>>;
|
|
56
70
|
location: z.ZodEnum<{
|
|
57
71
|
Africa: "Africa";
|
|
@@ -72,7 +86,7 @@ export declare const JobEntitySchema: z.ZodObject<{
|
|
|
72
86
|
}, z.core.$strip>;
|
|
73
87
|
export declare const GigJobEntitySchema: z.ZodObject<{
|
|
74
88
|
id: z.ZodCUID2;
|
|
75
|
-
jobType: z.ZodLiteral<
|
|
89
|
+
jobType: z.ZodLiteral<"GIG">;
|
|
76
90
|
overview: z.ZodString;
|
|
77
91
|
deliverables: z.ZodArray<z.ZodString>;
|
|
78
92
|
employeeRequirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -107,13 +121,19 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
|
|
|
107
121
|
brandName: z.ZodCUID2;
|
|
108
122
|
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
109
123
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
110
|
-
|
|
124
|
+
"Full Time": "Full Time";
|
|
125
|
+
"Part Time": "Part Time";
|
|
126
|
+
Freelance: "Freelance";
|
|
127
|
+
Internship: "Internship";
|
|
111
128
|
}>>;
|
|
112
129
|
workMode: z.ZodEnum<{
|
|
113
|
-
|
|
130
|
+
Remote: "Remote";
|
|
131
|
+
Hybrid: "Hybrid";
|
|
132
|
+
"On Site": "On Site";
|
|
114
133
|
}>;
|
|
115
134
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
116
|
-
|
|
135
|
+
"One Time": "One Time";
|
|
136
|
+
Recurring: "Recurring";
|
|
117
137
|
}>>;
|
|
118
138
|
location: z.ZodEnum<{
|
|
119
139
|
Africa: "Africa";
|
|
@@ -132,7 +152,7 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
|
|
|
132
152
|
createdAt: z.ZodDate;
|
|
133
153
|
updatedAt: z.ZodDate;
|
|
134
154
|
id: z.ZodCUID2;
|
|
135
|
-
jobType: z.ZodLiteral<
|
|
155
|
+
jobType: z.ZodLiteral<"GIG">;
|
|
136
156
|
overview: z.ZodString;
|
|
137
157
|
deliverables: z.ZodArray<z.ZodString>;
|
|
138
158
|
employeeRequirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -163,7 +183,7 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
|
|
|
163
183
|
}, z.core.$strip>;
|
|
164
184
|
export declare const RoleJobEntitySchema: z.ZodObject<{
|
|
165
185
|
id: z.ZodCUID2;
|
|
166
|
-
jobType: z.ZodLiteral<
|
|
186
|
+
jobType: z.ZodLiteral<"ROLE">;
|
|
167
187
|
experienceLevel: z.ZodEnum<{
|
|
168
188
|
"0-1 year": "0-1 year";
|
|
169
189
|
"1-3 years": "1-3 years";
|
|
@@ -204,13 +224,19 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
|
|
|
204
224
|
brandName: z.ZodCUID2;
|
|
205
225
|
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
206
226
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
207
|
-
|
|
227
|
+
"Full Time": "Full Time";
|
|
228
|
+
"Part Time": "Part Time";
|
|
229
|
+
Freelance: "Freelance";
|
|
230
|
+
Internship: "Internship";
|
|
208
231
|
}>>;
|
|
209
232
|
workMode: z.ZodEnum<{
|
|
210
|
-
|
|
233
|
+
Remote: "Remote";
|
|
234
|
+
Hybrid: "Hybrid";
|
|
235
|
+
"On Site": "On Site";
|
|
211
236
|
}>;
|
|
212
237
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
213
|
-
|
|
238
|
+
"One Time": "One Time";
|
|
239
|
+
Recurring: "Recurring";
|
|
214
240
|
}>>;
|
|
215
241
|
location: z.ZodEnum<{
|
|
216
242
|
Africa: "Africa";
|
|
@@ -229,7 +255,7 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
|
|
|
229
255
|
createdAt: z.ZodDate;
|
|
230
256
|
updatedAt: z.ZodDate;
|
|
231
257
|
id: z.ZodCUID2;
|
|
232
|
-
jobType: z.ZodLiteral<
|
|
258
|
+
jobType: z.ZodLiteral<"ROLE">;
|
|
233
259
|
experienceLevel: z.ZodEnum<{
|
|
234
260
|
"0-1 year": "0-1 year";
|
|
235
261
|
"1-3 years": "1-3 years";
|
|
@@ -268,16 +294,23 @@ export declare const CreateJobInputSchema: z.ZodObject<{
|
|
|
268
294
|
title: z.ZodString;
|
|
269
295
|
brandId: z.ZodCUID2;
|
|
270
296
|
jobType: z.ZodEnum<{
|
|
271
|
-
|
|
297
|
+
GIG: "GIG";
|
|
298
|
+
ROLE: "ROLE";
|
|
272
299
|
}>;
|
|
273
300
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
274
|
-
|
|
301
|
+
"Full Time": "Full Time";
|
|
302
|
+
"Part Time": "Part Time";
|
|
303
|
+
Freelance: "Freelance";
|
|
304
|
+
Internship: "Internship";
|
|
275
305
|
}>>;
|
|
276
306
|
workMode: z.ZodEnum<{
|
|
277
|
-
|
|
307
|
+
Remote: "Remote";
|
|
308
|
+
Hybrid: "Hybrid";
|
|
309
|
+
"On Site": "On Site";
|
|
278
310
|
}>;
|
|
279
311
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
280
|
-
|
|
312
|
+
"One Time": "One Time";
|
|
313
|
+
Recurring: "Recurring";
|
|
281
314
|
}>>;
|
|
282
315
|
location: z.ZodDefault<z.ZodEnum<{
|
|
283
316
|
Africa: "Africa";
|
|
@@ -432,16 +465,23 @@ export declare const UpdateJobInputSchema: z.ZodObject<{
|
|
|
432
465
|
title: z.ZodOptional<z.ZodString>;
|
|
433
466
|
brandId: z.ZodOptional<z.ZodCUID2>;
|
|
434
467
|
jobType: z.ZodOptional<z.ZodEnum<{
|
|
435
|
-
|
|
468
|
+
GIG: "GIG";
|
|
469
|
+
ROLE: "ROLE";
|
|
436
470
|
}>>;
|
|
437
471
|
employmentType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
438
|
-
|
|
472
|
+
"Full Time": "Full Time";
|
|
473
|
+
"Part Time": "Part Time";
|
|
474
|
+
Freelance: "Freelance";
|
|
475
|
+
Internship: "Internship";
|
|
439
476
|
}>>>;
|
|
440
477
|
workMode: z.ZodOptional<z.ZodEnum<{
|
|
441
|
-
|
|
478
|
+
Remote: "Remote";
|
|
479
|
+
Hybrid: "Hybrid";
|
|
480
|
+
"On Site": "On Site";
|
|
442
481
|
}>>;
|
|
443
482
|
gigType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
444
|
-
|
|
483
|
+
"One Time": "One Time";
|
|
484
|
+
Recurring: "Recurring";
|
|
445
485
|
}>>>;
|
|
446
486
|
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
447
487
|
Africa: "Africa";
|
|
@@ -465,13 +505,19 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
465
505
|
brandName: z.ZodCUID2;
|
|
466
506
|
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
467
507
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
468
|
-
|
|
508
|
+
"Full Time": "Full Time";
|
|
509
|
+
"Part Time": "Part Time";
|
|
510
|
+
Freelance: "Freelance";
|
|
511
|
+
Internship: "Internship";
|
|
469
512
|
}>>;
|
|
470
513
|
workMode: z.ZodEnum<{
|
|
471
|
-
|
|
514
|
+
Remote: "Remote";
|
|
515
|
+
Hybrid: "Hybrid";
|
|
516
|
+
"On Site": "On Site";
|
|
472
517
|
}>;
|
|
473
518
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
474
|
-
|
|
519
|
+
"One Time": "One Time";
|
|
520
|
+
Recurring: "Recurring";
|
|
475
521
|
}>>;
|
|
476
522
|
location: z.ZodEnum<{
|
|
477
523
|
Africa: "Africa";
|
|
@@ -490,7 +536,7 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
490
536
|
createdAt: z.ZodDate;
|
|
491
537
|
updatedAt: z.ZodDate;
|
|
492
538
|
id: z.ZodCUID2;
|
|
493
|
-
jobType: z.ZodLiteral<
|
|
539
|
+
jobType: z.ZodLiteral<"GIG">;
|
|
494
540
|
overview: z.ZodString;
|
|
495
541
|
deliverables: z.ZodArray<z.ZodString>;
|
|
496
542
|
employeeRequirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -524,13 +570,19 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
524
570
|
brandName: z.ZodCUID2;
|
|
525
571
|
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
526
572
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
527
|
-
|
|
573
|
+
"Full Time": "Full Time";
|
|
574
|
+
"Part Time": "Part Time";
|
|
575
|
+
Freelance: "Freelance";
|
|
576
|
+
Internship: "Internship";
|
|
528
577
|
}>>;
|
|
529
578
|
workMode: z.ZodEnum<{
|
|
530
|
-
|
|
579
|
+
Remote: "Remote";
|
|
580
|
+
Hybrid: "Hybrid";
|
|
581
|
+
"On Site": "On Site";
|
|
531
582
|
}>;
|
|
532
583
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
533
|
-
|
|
584
|
+
"One Time": "One Time";
|
|
585
|
+
Recurring: "Recurring";
|
|
534
586
|
}>>;
|
|
535
587
|
location: z.ZodEnum<{
|
|
536
588
|
Africa: "Africa";
|
|
@@ -549,7 +601,7 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
549
601
|
createdAt: z.ZodDate;
|
|
550
602
|
updatedAt: z.ZodDate;
|
|
551
603
|
id: z.ZodCUID2;
|
|
552
|
-
jobType: z.ZodLiteral<
|
|
604
|
+
jobType: z.ZodLiteral<"ROLE">;
|
|
553
605
|
experienceLevel: z.ZodEnum<{
|
|
554
606
|
"0-1 year": "0-1 year";
|
|
555
607
|
"1-3 years": "1-3 years";
|
package/package.json
CHANGED
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",
|
|
@@ -169,7 +168,7 @@ export type JobLocation = (typeof JOB_LOCATIONS)[keyof typeof JOB_LOCATIONS];
|
|
|
169
168
|
export const GIG_TYPE = {
|
|
170
169
|
ONE_TIME: "One Time",
|
|
171
170
|
RECURRING: "Recurring",
|
|
172
|
-
};
|
|
171
|
+
} as const;
|
|
173
172
|
export const WAGES_CURRENCY = {
|
|
174
173
|
USD: "USD",
|
|
175
174
|
EUR: "EUR",
|