@zyacreatives/shared 2.5.25 → 2.5.27
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-application.d.ts +150 -135
- package/dist/schemas/job-application.js +0 -3
- package/dist/schemas/job.d.ts +522 -474
- package/dist/schemas/job.js +93 -200
- package/dist/schemas/user.d.ts +2 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js +0 -1
- package/dist/types/job.d.ts +1 -27
- package/package.json +1 -1
- package/src/schemas/job-application.ts +0 -3
- package/src/schemas/job.ts +138 -224
- package/src/types/index.ts +0 -1
- package/src/types/job.ts +0 -77
package/dist/schemas/job.d.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
title: z.ZodString;
|
|
5
|
-
brandId: z.ZodCUID2;
|
|
6
|
-
jobType: z.ZodEnum<{
|
|
7
|
-
GIG: "GIG";
|
|
8
|
-
ROLE: "ROLE";
|
|
9
|
-
}>;
|
|
2
|
+
export declare const JobIdSchema: z.ZodObject<{
|
|
3
|
+
jobId: z.ZodCUID2;
|
|
10
4
|
}, z.core.$strip>;
|
|
5
|
+
export type JobIdInput = z.infer<typeof JobIdSchema>;
|
|
11
6
|
export declare const BaseJobEntitySchema: z.ZodObject<{
|
|
12
7
|
id: z.ZodCUID2;
|
|
13
8
|
title: z.ZodString;
|
|
@@ -55,28 +50,18 @@ export declare const BaseJobEntitySchema: z.ZodObject<{
|
|
|
55
50
|
[x: string]: string;
|
|
56
51
|
}>>>;
|
|
57
52
|
createdAt: z.ZodDate;
|
|
58
|
-
version: z.
|
|
53
|
+
version: z.ZodNumber;
|
|
59
54
|
updatedAt: z.ZodDate;
|
|
60
55
|
}, z.core.$strip>;
|
|
61
|
-
export
|
|
62
|
-
jobId: z.ZodCUID2;
|
|
63
|
-
}, z.core.$strip>;
|
|
56
|
+
export type BaseJobEntity = z.infer<typeof BaseJobEntitySchema>;
|
|
64
57
|
export declare const JobEntitySchema: z.ZodObject<{
|
|
65
58
|
id: z.ZodCUID2;
|
|
66
59
|
title: z.ZodString;
|
|
67
60
|
brandId: z.ZodCUID2;
|
|
68
|
-
brandName: z.ZodString;
|
|
69
|
-
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
70
61
|
jobType: z.ZodEnum<{
|
|
71
62
|
GIG: "GIG";
|
|
72
63
|
ROLE: "ROLE";
|
|
73
64
|
}>;
|
|
74
|
-
status: z.ZodEnum<{
|
|
75
|
-
ACTIVE: "ACTIVE";
|
|
76
|
-
DELETED: "DELETED";
|
|
77
|
-
DRAFT: "DRAFT";
|
|
78
|
-
ARCHIVED: "ARCHIVED";
|
|
79
|
-
}>;
|
|
80
65
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
81
66
|
"Full Time": "Full Time";
|
|
82
67
|
"Part Time": "Part Time";
|
|
@@ -88,6 +73,12 @@ export declare const JobEntitySchema: z.ZodObject<{
|
|
|
88
73
|
Hybrid: "Hybrid";
|
|
89
74
|
"On Site": "On Site";
|
|
90
75
|
}>;
|
|
76
|
+
status: z.ZodEnum<{
|
|
77
|
+
ACTIVE: "ACTIVE";
|
|
78
|
+
DELETED: "DELETED";
|
|
79
|
+
DRAFT: "DRAFT";
|
|
80
|
+
ARCHIVED: "ARCHIVED";
|
|
81
|
+
}>;
|
|
91
82
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
92
83
|
"One Time": "One Time";
|
|
93
84
|
Recurring: "Recurring";
|
|
@@ -109,11 +100,15 @@ export declare const JobEntitySchema: z.ZodObject<{
|
|
|
109
100
|
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
110
101
|
[x: string]: string;
|
|
111
102
|
}>>>;
|
|
112
|
-
isBookmarked: z.ZodBoolean;
|
|
113
103
|
createdAt: z.ZodDate;
|
|
114
|
-
version: z.
|
|
104
|
+
version: z.ZodNumber;
|
|
115
105
|
updatedAt: z.ZodDate;
|
|
106
|
+
brandName: z.ZodString;
|
|
107
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
108
|
+
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
109
|
+
isBookmarked: z.ZodBoolean;
|
|
116
110
|
}, z.core.$strip>;
|
|
111
|
+
export type JobEntity = z.infer<typeof JobEntitySchema>;
|
|
117
112
|
export declare const GigJobEntitySchema: z.ZodObject<{
|
|
118
113
|
id: z.ZodCUID2;
|
|
119
114
|
jobType: z.ZodLiteral<"GIG">;
|
|
@@ -122,8 +117,8 @@ export declare const GigJobEntitySchema: z.ZodObject<{
|
|
|
122
117
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
123
118
|
aboutCompany: z.ZodOptional<z.ZodString>;
|
|
124
119
|
requiredSkills: z.ZodArray<z.ZodString>;
|
|
125
|
-
wagesMin: z.ZodOptional<z.ZodNumber
|
|
126
|
-
wagesMax: z.ZodOptional<z.ZodNumber
|
|
120
|
+
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
121
|
+
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
127
122
|
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
128
123
|
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
129
124
|
"EUR (Euro)": "EUR (Euro)";
|
|
@@ -144,16 +139,14 @@ export declare const GigJobEntitySchema: z.ZodObject<{
|
|
|
144
139
|
"Project Based": "Project Based";
|
|
145
140
|
}>>;
|
|
146
141
|
}, z.core.$strip>;
|
|
142
|
+
export type GigJobEntity = z.infer<typeof GigJobEntitySchema>;
|
|
147
143
|
export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
|
|
144
|
+
id: z.ZodCUID2;
|
|
148
145
|
title: z.ZodString;
|
|
149
146
|
brandId: z.ZodCUID2;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
ACTIVE: "ACTIVE";
|
|
154
|
-
DELETED: "DELETED";
|
|
155
|
-
DRAFT: "DRAFT";
|
|
156
|
-
ARCHIVED: "ARCHIVED";
|
|
147
|
+
jobType: z.ZodEnum<{
|
|
148
|
+
GIG: "GIG";
|
|
149
|
+
ROLE: "ROLE";
|
|
157
150
|
}>;
|
|
158
151
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
159
152
|
"Full Time": "Full Time";
|
|
@@ -166,6 +159,12 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
|
|
|
166
159
|
Hybrid: "Hybrid";
|
|
167
160
|
"On Site": "On Site";
|
|
168
161
|
}>;
|
|
162
|
+
status: z.ZodEnum<{
|
|
163
|
+
ACTIVE: "ACTIVE";
|
|
164
|
+
DELETED: "DELETED";
|
|
165
|
+
DRAFT: "DRAFT";
|
|
166
|
+
ARCHIVED: "ARCHIVED";
|
|
167
|
+
}>;
|
|
169
168
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
170
169
|
"One Time": "One Time";
|
|
171
170
|
Recurring: "Recurring";
|
|
@@ -187,19 +186,20 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
|
|
|
187
186
|
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
188
187
|
[x: string]: string;
|
|
189
188
|
}>>>;
|
|
190
|
-
isBookmarked: z.ZodBoolean;
|
|
191
189
|
createdAt: z.ZodDate;
|
|
192
|
-
version: z.
|
|
190
|
+
version: z.ZodNumber;
|
|
193
191
|
updatedAt: z.ZodDate;
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
brandName: z.ZodString;
|
|
193
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
194
|
+
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
195
|
+
isBookmarked: z.ZodBoolean;
|
|
196
196
|
overview: z.ZodString;
|
|
197
197
|
deliverables: z.ZodString;
|
|
198
198
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
199
199
|
aboutCompany: z.ZodOptional<z.ZodString>;
|
|
200
200
|
requiredSkills: z.ZodArray<z.ZodString>;
|
|
201
|
-
wagesMin: z.ZodOptional<z.ZodNumber
|
|
202
|
-
wagesMax: z.ZodOptional<z.ZodNumber
|
|
201
|
+
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
202
|
+
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
203
203
|
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
204
204
|
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
205
205
|
"EUR (Euro)": "EUR (Euro)";
|
|
@@ -220,6 +220,7 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
|
|
|
220
220
|
"Project Based": "Project Based";
|
|
221
221
|
}>>;
|
|
222
222
|
}, z.core.$strip>;
|
|
223
|
+
export type JobWithGigDetailsEntity = z.infer<typeof JobWithGigDetailsEntitySchema>;
|
|
223
224
|
export declare const RoleJobEntitySchema: z.ZodObject<{
|
|
224
225
|
id: z.ZodCUID2;
|
|
225
226
|
jobType: z.ZodLiteral<"ROLE">;
|
|
@@ -256,16 +257,14 @@ export declare const RoleJobEntitySchema: z.ZodObject<{
|
|
|
256
257
|
"Project Based": "Project Based";
|
|
257
258
|
}>>;
|
|
258
259
|
}, z.core.$strip>;
|
|
260
|
+
export type RoleJobEntity = z.infer<typeof RoleJobEntitySchema>;
|
|
259
261
|
export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
|
|
262
|
+
id: z.ZodCUID2;
|
|
260
263
|
title: z.ZodString;
|
|
261
264
|
brandId: z.ZodCUID2;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
ACTIVE: "ACTIVE";
|
|
266
|
-
DELETED: "DELETED";
|
|
267
|
-
DRAFT: "DRAFT";
|
|
268
|
-
ARCHIVED: "ARCHIVED";
|
|
265
|
+
jobType: z.ZodEnum<{
|
|
266
|
+
GIG: "GIG";
|
|
267
|
+
ROLE: "ROLE";
|
|
269
268
|
}>;
|
|
270
269
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
271
270
|
"Full Time": "Full Time";
|
|
@@ -278,6 +277,12 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
|
|
|
278
277
|
Hybrid: "Hybrid";
|
|
279
278
|
"On Site": "On Site";
|
|
280
279
|
}>;
|
|
280
|
+
status: z.ZodEnum<{
|
|
281
|
+
ACTIVE: "ACTIVE";
|
|
282
|
+
DELETED: "DELETED";
|
|
283
|
+
DRAFT: "DRAFT";
|
|
284
|
+
ARCHIVED: "ARCHIVED";
|
|
285
|
+
}>;
|
|
281
286
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
282
287
|
"One Time": "One Time";
|
|
283
288
|
Recurring: "Recurring";
|
|
@@ -299,23 +304,22 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
|
|
|
299
304
|
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
300
305
|
[x: string]: string;
|
|
301
306
|
}>>>;
|
|
302
|
-
isBookmarked: z.ZodBoolean;
|
|
303
307
|
createdAt: z.ZodDate;
|
|
304
|
-
version: z.
|
|
308
|
+
version: z.ZodNumber;
|
|
305
309
|
updatedAt: z.ZodDate;
|
|
306
|
-
|
|
307
|
-
|
|
310
|
+
brandName: z.ZodString;
|
|
311
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
312
|
+
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
313
|
+
isBookmarked: z.ZodBoolean;
|
|
314
|
+
overview: z.ZodString;
|
|
308
315
|
experienceLevel: z.ZodEnum<{
|
|
309
316
|
"0-1 year": "0-1 year";
|
|
310
317
|
"1-3 years": "1-3 years";
|
|
311
318
|
"3-5 years": "3-5 years";
|
|
312
319
|
"5+ years": "5+ years";
|
|
313
320
|
}>;
|
|
314
|
-
overview: z.ZodString;
|
|
315
|
-
keyResponsibilities: z.ZodString;
|
|
316
|
-
requiredSkills: z.ZodArray<z.ZodString>;
|
|
317
321
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
318
|
-
|
|
322
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
319
323
|
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
320
324
|
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
321
325
|
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
@@ -337,8 +341,12 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
|
|
|
337
341
|
Monthly: "Monthly";
|
|
338
342
|
"Project Based": "Project Based";
|
|
339
343
|
}>>;
|
|
344
|
+
keyResponsibilities: z.ZodString;
|
|
345
|
+
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
340
346
|
}, z.core.$strip>;
|
|
341
|
-
export
|
|
347
|
+
export type JobWithRoleDetailsEntity = z.infer<typeof JobWithRoleDetailsEntitySchema>;
|
|
348
|
+
export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
349
|
+
id: z.ZodCUID2;
|
|
342
350
|
title: z.ZodString;
|
|
343
351
|
brandId: z.ZodCUID2;
|
|
344
352
|
jobType: z.ZodEnum<{
|
|
@@ -356,11 +364,17 @@ export declare const CreateJobInputSchema: z.ZodPipe<z.ZodObject<{
|
|
|
356
364
|
Hybrid: "Hybrid";
|
|
357
365
|
"On Site": "On Site";
|
|
358
366
|
}>;
|
|
367
|
+
status: z.ZodEnum<{
|
|
368
|
+
ACTIVE: "ACTIVE";
|
|
369
|
+
DELETED: "DELETED";
|
|
370
|
+
DRAFT: "DRAFT";
|
|
371
|
+
ARCHIVED: "ARCHIVED";
|
|
372
|
+
}>;
|
|
359
373
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
360
374
|
"One Time": "One Time";
|
|
361
375
|
Recurring: "Recurring";
|
|
362
376
|
}>>;
|
|
363
|
-
location: z.
|
|
377
|
+
location: z.ZodEnum<{
|
|
364
378
|
Africa: "Africa";
|
|
365
379
|
Asia: "Asia";
|
|
366
380
|
Europe: "Europe";
|
|
@@ -373,42 +387,22 @@ export declare const CreateJobInputSchema: z.ZodPipe<z.ZodObject<{
|
|
|
373
387
|
Remote: "Remote";
|
|
374
388
|
EMEA: "EMEA";
|
|
375
389
|
"Asia Pacific": "Asia Pacific";
|
|
376
|
-
}>>;
|
|
377
|
-
jobSections: z.ZodArray<z.ZodEnum<{
|
|
378
|
-
[x: string]: string;
|
|
379
|
-
}>>;
|
|
380
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
381
|
-
title: string;
|
|
382
|
-
brandId: string;
|
|
383
|
-
jobType: "GIG" | "ROLE";
|
|
384
|
-
workMode: "Remote" | "Hybrid" | "On Site";
|
|
385
|
-
location: "Africa" | "Asia" | "Europe" | "North America" | "South America" | "Middle East" | "Oceania" | "Global" | "Other" | "Remote" | "EMEA" | "Asia Pacific";
|
|
386
|
-
jobSections: string[];
|
|
387
|
-
employmentType?: "Full Time" | "Part Time" | "Freelance" | "Internship" | undefined;
|
|
388
|
-
gigType?: "One Time" | "Recurring" | undefined;
|
|
389
|
-
}, {
|
|
390
|
-
title: string;
|
|
391
|
-
brandId: string;
|
|
392
|
-
jobType: "GIG" | "ROLE";
|
|
393
|
-
workMode: "Remote" | "Hybrid" | "On Site";
|
|
394
|
-
location: "Africa" | "Asia" | "Europe" | "North America" | "South America" | "Middle East" | "Oceania" | "Global" | "Other" | "Remote" | "EMEA" | "Asia Pacific";
|
|
395
|
-
jobSections: string[];
|
|
396
|
-
employmentType?: "Full Time" | "Part Time" | "Freelance" | "Internship" | undefined;
|
|
397
|
-
gigType?: "One Time" | "Recurring" | undefined;
|
|
398
|
-
}>>;
|
|
399
|
-
export declare const CreateRoleJobInputSchema: z.ZodObject<{
|
|
400
|
-
id: z.ZodCUID2;
|
|
401
|
-
experienceLevel: z.ZodEnum<{
|
|
402
|
-
"0-1 year": "0-1 year";
|
|
403
|
-
"1-3 years": "1-3 years";
|
|
404
|
-
"3-5 years": "3-5 years";
|
|
405
|
-
"5+ years": "5+ years";
|
|
406
390
|
}>;
|
|
391
|
+
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
392
|
+
[x: string]: string;
|
|
393
|
+
}>>>;
|
|
394
|
+
createdAt: z.ZodDate;
|
|
395
|
+
version: z.ZodNumber;
|
|
396
|
+
updatedAt: z.ZodDate;
|
|
397
|
+
brandName: z.ZodString;
|
|
398
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
399
|
+
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
400
|
+
isBookmarked: z.ZodBoolean;
|
|
407
401
|
overview: z.ZodString;
|
|
408
|
-
|
|
409
|
-
requiredSkills: z.ZodArray<z.ZodString>;
|
|
402
|
+
deliverables: z.ZodString;
|
|
410
403
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
411
|
-
|
|
404
|
+
aboutCompany: z.ZodOptional<z.ZodString>;
|
|
405
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
412
406
|
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
413
407
|
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
414
408
|
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
@@ -430,13 +424,67 @@ export declare const CreateRoleJobInputSchema: z.ZodObject<{
|
|
|
430
424
|
Monthly: "Monthly";
|
|
431
425
|
"Project Based": "Project Based";
|
|
432
426
|
}>>;
|
|
433
|
-
}, z.core.$strip
|
|
434
|
-
export declare const CreateGigJobInputSchema: z.ZodObject<{
|
|
427
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
435
428
|
id: z.ZodCUID2;
|
|
429
|
+
title: z.ZodString;
|
|
430
|
+
brandId: z.ZodCUID2;
|
|
431
|
+
jobType: z.ZodEnum<{
|
|
432
|
+
GIG: "GIG";
|
|
433
|
+
ROLE: "ROLE";
|
|
434
|
+
}>;
|
|
435
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
436
|
+
"Full Time": "Full Time";
|
|
437
|
+
"Part Time": "Part Time";
|
|
438
|
+
Freelance: "Freelance";
|
|
439
|
+
Internship: "Internship";
|
|
440
|
+
}>>;
|
|
441
|
+
workMode: z.ZodEnum<{
|
|
442
|
+
Remote: "Remote";
|
|
443
|
+
Hybrid: "Hybrid";
|
|
444
|
+
"On Site": "On Site";
|
|
445
|
+
}>;
|
|
446
|
+
status: z.ZodEnum<{
|
|
447
|
+
ACTIVE: "ACTIVE";
|
|
448
|
+
DELETED: "DELETED";
|
|
449
|
+
DRAFT: "DRAFT";
|
|
450
|
+
ARCHIVED: "ARCHIVED";
|
|
451
|
+
}>;
|
|
452
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
453
|
+
"One Time": "One Time";
|
|
454
|
+
Recurring: "Recurring";
|
|
455
|
+
}>>;
|
|
456
|
+
location: z.ZodEnum<{
|
|
457
|
+
Africa: "Africa";
|
|
458
|
+
Asia: "Asia";
|
|
459
|
+
Europe: "Europe";
|
|
460
|
+
"North America": "North America";
|
|
461
|
+
"South America": "South America";
|
|
462
|
+
"Middle East": "Middle East";
|
|
463
|
+
Oceania: "Oceania";
|
|
464
|
+
Global: "Global";
|
|
465
|
+
Other: "Other";
|
|
466
|
+
Remote: "Remote";
|
|
467
|
+
EMEA: "EMEA";
|
|
468
|
+
"Asia Pacific": "Asia Pacific";
|
|
469
|
+
}>;
|
|
470
|
+
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
471
|
+
[x: string]: string;
|
|
472
|
+
}>>>;
|
|
473
|
+
createdAt: z.ZodDate;
|
|
474
|
+
version: z.ZodNumber;
|
|
475
|
+
updatedAt: z.ZodDate;
|
|
476
|
+
brandName: z.ZodString;
|
|
477
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
478
|
+
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
479
|
+
isBookmarked: z.ZodBoolean;
|
|
436
480
|
overview: z.ZodString;
|
|
437
|
-
|
|
481
|
+
experienceLevel: z.ZodEnum<{
|
|
482
|
+
"0-1 year": "0-1 year";
|
|
483
|
+
"1-3 years": "1-3 years";
|
|
484
|
+
"3-5 years": "3-5 years";
|
|
485
|
+
"5+ years": "5+ years";
|
|
486
|
+
}>;
|
|
438
487
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
439
|
-
aboutCompany: z.ZodOptional<z.ZodString>;
|
|
440
488
|
requiredSkills: z.ZodArray<z.ZodString>;
|
|
441
489
|
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
442
490
|
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -459,96 +507,38 @@ export declare const CreateGigJobInputSchema: z.ZodObject<{
|
|
|
459
507
|
Monthly: "Monthly";
|
|
460
508
|
"Project Based": "Project Based";
|
|
461
509
|
}>>;
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
510
|
+
keyResponsibilities: z.ZodString;
|
|
511
|
+
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
512
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
513
|
+
id: z.ZodCUID2;
|
|
514
|
+
title: z.ZodString;
|
|
515
|
+
brandId: z.ZodCUID2;
|
|
516
|
+
jobType: z.ZodEnum<{
|
|
517
|
+
GIG: "GIG";
|
|
518
|
+
ROLE: "ROLE";
|
|
519
|
+
}>;
|
|
520
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
521
|
+
"Full Time": "Full Time";
|
|
522
|
+
"Part Time": "Part Time";
|
|
523
|
+
Freelance: "Freelance";
|
|
524
|
+
Internship: "Internship";
|
|
470
525
|
}>>;
|
|
471
|
-
|
|
472
|
-
keyResponsibilities: z.ZodOptional<z.ZodString>;
|
|
473
|
-
requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
474
|
-
employeeRequirements: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
475
|
-
companyBenefits: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
476
|
-
wagesMin: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
477
|
-
wagesMax: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
478
|
-
wagesCurrency: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
479
|
-
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
480
|
-
"EUR (Euro)": "EUR (Euro)";
|
|
481
|
-
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
482
|
-
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
483
|
-
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
484
|
-
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
485
|
-
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
486
|
-
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
487
|
-
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
488
|
-
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
489
|
-
}>>>;
|
|
490
|
-
wagesType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
491
|
-
Hourly: "Hourly";
|
|
492
|
-
Daily: "Daily";
|
|
493
|
-
Weekly: "Weekly";
|
|
494
|
-
Monthly: "Monthly";
|
|
495
|
-
"Project Based": "Project Based";
|
|
496
|
-
}>>>;
|
|
497
|
-
version: z.ZodInt;
|
|
498
|
-
}, z.core.$strip>;
|
|
499
|
-
export declare const UpdateGigJobInputSchema: z.ZodObject<{
|
|
500
|
-
id: z.ZodNonOptional<z.ZodOptional<z.ZodCUID2>>;
|
|
501
|
-
overview: z.ZodOptional<z.ZodString>;
|
|
502
|
-
deliverables: z.ZodOptional<z.ZodString>;
|
|
503
|
-
employeeRequirements: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
504
|
-
aboutCompany: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
505
|
-
requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
506
|
-
wagesMin: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
507
|
-
wagesMax: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
508
|
-
wagesCurrency: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
509
|
-
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
510
|
-
"EUR (Euro)": "EUR (Euro)";
|
|
511
|
-
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
512
|
-
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
513
|
-
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
514
|
-
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
515
|
-
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
516
|
-
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
517
|
-
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
518
|
-
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
519
|
-
}>>>;
|
|
520
|
-
wagesType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
521
|
-
Hourly: "Hourly";
|
|
522
|
-
Daily: "Daily";
|
|
523
|
-
Weekly: "Weekly";
|
|
524
|
-
Monthly: "Monthly";
|
|
525
|
-
"Project Based": "Project Based";
|
|
526
|
-
}>>>;
|
|
527
|
-
version: z.ZodInt;
|
|
528
|
-
}, z.core.$strip>;
|
|
529
|
-
export declare const UpdateJobInputSchema: z.ZodObject<{
|
|
530
|
-
title: z.ZodOptional<z.ZodString>;
|
|
531
|
-
brandId: z.ZodOptional<z.ZodCUID2>;
|
|
532
|
-
jobType: z.ZodOptional<z.ZodEnum<{
|
|
533
|
-
GIG: "GIG";
|
|
534
|
-
ROLE: "ROLE";
|
|
535
|
-
}>>;
|
|
536
|
-
employmentType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
537
|
-
"Full Time": "Full Time";
|
|
538
|
-
"Part Time": "Part Time";
|
|
539
|
-
Freelance: "Freelance";
|
|
540
|
-
Internship: "Internship";
|
|
541
|
-
}>>>;
|
|
542
|
-
workMode: z.ZodOptional<z.ZodEnum<{
|
|
526
|
+
workMode: z.ZodEnum<{
|
|
543
527
|
Remote: "Remote";
|
|
544
528
|
Hybrid: "Hybrid";
|
|
545
529
|
"On Site": "On Site";
|
|
546
|
-
}
|
|
547
|
-
|
|
530
|
+
}>;
|
|
531
|
+
status: z.ZodEnum<{
|
|
532
|
+
ACTIVE: "ACTIVE";
|
|
533
|
+
DELETED: "DELETED";
|
|
534
|
+
DRAFT: "DRAFT";
|
|
535
|
+
ARCHIVED: "ARCHIVED";
|
|
536
|
+
}>;
|
|
537
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
548
538
|
"One Time": "One Time";
|
|
549
539
|
Recurring: "Recurring";
|
|
550
|
-
}
|
|
551
|
-
location: z.
|
|
540
|
+
}>>;
|
|
541
|
+
location: z.ZodEnum<{
|
|
552
542
|
Africa: "Africa";
|
|
553
543
|
Asia: "Asia";
|
|
554
544
|
Europe: "Europe";
|
|
@@ -561,29 +551,25 @@ export declare const UpdateJobInputSchema: z.ZodObject<{
|
|
|
561
551
|
Remote: "Remote";
|
|
562
552
|
EMEA: "EMEA";
|
|
563
553
|
"Asia Pacific": "Asia Pacific";
|
|
564
|
-
}
|
|
565
|
-
jobSections: z.
|
|
554
|
+
}>;
|
|
555
|
+
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
566
556
|
[x: string]: string;
|
|
567
557
|
}>>>;
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
DELETED: "DELETED";
|
|
572
|
-
DRAFT: "DRAFT";
|
|
573
|
-
ARCHIVED: "ARCHIVED";
|
|
574
|
-
}>>;
|
|
575
|
-
version: z.ZodInt;
|
|
576
|
-
}, z.core.$strip>;
|
|
577
|
-
export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
578
|
-
title: z.ZodString;
|
|
579
|
-
brandId: z.ZodCUID2;
|
|
558
|
+
createdAt: z.ZodDate;
|
|
559
|
+
version: z.ZodNumber;
|
|
560
|
+
updatedAt: z.ZodDate;
|
|
580
561
|
brandName: z.ZodString;
|
|
562
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
581
563
|
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
564
|
+
isBookmarked: z.ZodBoolean;
|
|
565
|
+
}, z.core.$strip>]>;
|
|
566
|
+
export type NormalizedJobEntity = z.infer<typeof NormalizedJobSchema>;
|
|
567
|
+
export declare const CreateJobInputSchema: z.ZodPipe<z.ZodObject<{
|
|
568
|
+
title: z.ZodString;
|
|
569
|
+
brandId: z.ZodCUID2;
|
|
570
|
+
jobType: z.ZodEnum<{
|
|
571
|
+
GIG: "GIG";
|
|
572
|
+
ROLE: "ROLE";
|
|
587
573
|
}>;
|
|
588
574
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
589
575
|
"Full Time": "Full Time";
|
|
@@ -600,7 +586,7 @@ export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
600
586
|
"One Time": "One Time";
|
|
601
587
|
Recurring: "Recurring";
|
|
602
588
|
}>>;
|
|
603
|
-
location: z.ZodEnum<{
|
|
589
|
+
location: z.ZodDefault<z.ZodEnum<{
|
|
604
590
|
Africa: "Africa";
|
|
605
591
|
Asia: "Asia";
|
|
606
592
|
Europe: "Europe";
|
|
@@ -613,23 +599,74 @@ export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
613
599
|
Remote: "Remote";
|
|
614
600
|
EMEA: "EMEA";
|
|
615
601
|
"Asia Pacific": "Asia Pacific";
|
|
616
|
-
}
|
|
617
|
-
jobSections: z.
|
|
602
|
+
}>>;
|
|
603
|
+
jobSections: z.ZodArray<z.ZodEnum<{
|
|
618
604
|
[x: string]: string;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
605
|
+
}>>;
|
|
606
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
607
|
+
title: string;
|
|
608
|
+
brandId: string;
|
|
609
|
+
jobType: "GIG" | "ROLE";
|
|
610
|
+
workMode: "Remote" | "Hybrid" | "On Site";
|
|
611
|
+
location: "Africa" | "Asia" | "Europe" | "North America" | "South America" | "Middle East" | "Oceania" | "Global" | "Other" | "Remote" | "EMEA" | "Asia Pacific";
|
|
612
|
+
jobSections: string[];
|
|
613
|
+
employmentType?: "Full Time" | "Part Time" | "Freelance" | "Internship" | undefined;
|
|
614
|
+
gigType?: "One Time" | "Recurring" | undefined;
|
|
615
|
+
}, {
|
|
616
|
+
title: string;
|
|
617
|
+
brandId: string;
|
|
618
|
+
jobType: "GIG" | "ROLE";
|
|
619
|
+
workMode: "Remote" | "Hybrid" | "On Site";
|
|
620
|
+
location: "Africa" | "Asia" | "Europe" | "North America" | "South America" | "Middle East" | "Oceania" | "Global" | "Other" | "Remote" | "EMEA" | "Asia Pacific";
|
|
621
|
+
jobSections: string[];
|
|
622
|
+
employmentType?: "Full Time" | "Part Time" | "Freelance" | "Internship" | undefined;
|
|
623
|
+
gigType?: "One Time" | "Recurring" | undefined;
|
|
624
|
+
}>>;
|
|
625
|
+
export type CreateJobInput = z.infer<typeof CreateJobInputSchema>;
|
|
626
|
+
export declare const CreateRoleJobInputSchema: z.ZodObject<{
|
|
627
|
+
overview: z.ZodString;
|
|
628
|
+
experienceLevel: z.ZodEnum<{
|
|
629
|
+
"0-1 year": "0-1 year";
|
|
630
|
+
"1-3 years": "1-3 years";
|
|
631
|
+
"3-5 years": "3-5 years";
|
|
632
|
+
"5+ years": "5+ years";
|
|
633
|
+
}>;
|
|
634
|
+
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
635
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
636
|
+
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
637
|
+
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
638
|
+
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
639
|
+
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
640
|
+
"EUR (Euro)": "EUR (Euro)";
|
|
641
|
+
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
642
|
+
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
643
|
+
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
644
|
+
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
645
|
+
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
646
|
+
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
647
|
+
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
648
|
+
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
649
|
+
}>>;
|
|
650
|
+
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
651
|
+
Hourly: "Hourly";
|
|
652
|
+
Daily: "Daily";
|
|
653
|
+
Weekly: "Weekly";
|
|
654
|
+
Monthly: "Monthly";
|
|
655
|
+
"Project Based": "Project Based";
|
|
656
|
+
}>>;
|
|
657
|
+
keyResponsibilities: z.ZodString;
|
|
658
|
+
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
624
659
|
id: z.ZodCUID2;
|
|
625
|
-
|
|
660
|
+
}, z.core.$strip>;
|
|
661
|
+
export type CreateRoleJobInput = z.infer<typeof CreateRoleJobInputSchema>;
|
|
662
|
+
export declare const CreateGigJobInputSchema: z.ZodObject<{
|
|
626
663
|
overview: z.ZodString;
|
|
627
664
|
deliverables: z.ZodString;
|
|
628
665
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
629
666
|
aboutCompany: z.ZodOptional<z.ZodString>;
|
|
630
667
|
requiredSkills: z.ZodArray<z.ZodString>;
|
|
631
|
-
wagesMin: z.ZodOptional<z.ZodNumber
|
|
632
|
-
wagesMax: z.ZodOptional<z.ZodNumber
|
|
668
|
+
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
669
|
+
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
633
670
|
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
634
671
|
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
635
672
|
"EUR (Euro)": "EUR (Euro)";
|
|
@@ -649,38 +686,32 @@ export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
649
686
|
Monthly: "Monthly";
|
|
650
687
|
"Project Based": "Project Based";
|
|
651
688
|
}>>;
|
|
652
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
653
689
|
id: z.ZodCUID2;
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
690
|
+
}, z.core.$strip>;
|
|
691
|
+
export type CreateGigJobInput = z.infer<typeof CreateGigJobInputSchema>;
|
|
692
|
+
export declare const UpdateJobInputSchema: z.ZodObject<{
|
|
693
|
+
title: z.ZodOptional<z.ZodString>;
|
|
694
|
+
brandId: z.ZodOptional<z.ZodCUID2>;
|
|
695
|
+
jobType: z.ZodOptional<z.ZodEnum<{
|
|
659
696
|
GIG: "GIG";
|
|
660
697
|
ROLE: "ROLE";
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
ACTIVE: "ACTIVE";
|
|
664
|
-
DELETED: "DELETED";
|
|
665
|
-
DRAFT: "DRAFT";
|
|
666
|
-
ARCHIVED: "ARCHIVED";
|
|
667
|
-
}>;
|
|
668
|
-
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
698
|
+
}>>;
|
|
699
|
+
employmentType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
669
700
|
"Full Time": "Full Time";
|
|
670
701
|
"Part Time": "Part Time";
|
|
671
702
|
Freelance: "Freelance";
|
|
672
703
|
Internship: "Internship";
|
|
673
|
-
}
|
|
674
|
-
workMode: z.ZodEnum<{
|
|
704
|
+
}>>>;
|
|
705
|
+
workMode: z.ZodOptional<z.ZodEnum<{
|
|
675
706
|
Remote: "Remote";
|
|
676
707
|
Hybrid: "Hybrid";
|
|
677
708
|
"On Site": "On Site";
|
|
678
|
-
}
|
|
679
|
-
gigType: z.ZodOptional<z.ZodEnum<{
|
|
709
|
+
}>>;
|
|
710
|
+
gigType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
680
711
|
"One Time": "One Time";
|
|
681
712
|
Recurring: "Recurring";
|
|
682
|
-
}
|
|
683
|
-
location: z.ZodEnum<{
|
|
713
|
+
}>>>;
|
|
714
|
+
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
684
715
|
Africa: "Africa";
|
|
685
716
|
Asia: "Asia";
|
|
686
717
|
Europe: "Europe";
|
|
@@ -693,107 +724,47 @@ export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
693
724
|
Remote: "Remote";
|
|
694
725
|
EMEA: "EMEA";
|
|
695
726
|
"Asia Pacific": "Asia Pacific";
|
|
696
|
-
}
|
|
697
|
-
jobSections: z.
|
|
727
|
+
}>>>;
|
|
728
|
+
jobSections: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
698
729
|
[x: string]: string;
|
|
699
730
|
}>>>;
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
version: z.ZodInt;
|
|
703
|
-
updatedAt: z.ZodDate;
|
|
704
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
705
|
-
title: z.ZodString;
|
|
706
|
-
brandId: z.ZodCUID2;
|
|
707
|
-
brandName: z.ZodString;
|
|
708
|
-
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
709
|
-
status: z.ZodEnum<{
|
|
731
|
+
id: z.ZodCUID2;
|
|
732
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
710
733
|
ACTIVE: "ACTIVE";
|
|
711
734
|
DELETED: "DELETED";
|
|
712
735
|
DRAFT: "DRAFT";
|
|
713
736
|
ARCHIVED: "ARCHIVED";
|
|
714
|
-
}>;
|
|
715
|
-
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
716
|
-
"Full Time": "Full Time";
|
|
717
|
-
"Part Time": "Part Time";
|
|
718
|
-
Freelance: "Freelance";
|
|
719
|
-
Internship: "Internship";
|
|
720
737
|
}>>;
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
Recurring: "Recurring";
|
|
738
|
+
version: z.ZodNumber;
|
|
739
|
+
}, z.core.$strip>;
|
|
740
|
+
export type UpdateJobInput = z.infer<typeof UpdateJobInputSchema>;
|
|
741
|
+
export declare const GetJobsInputSchema: z.ZodObject<{
|
|
742
|
+
q: z.ZodOptional<z.ZodString>;
|
|
743
|
+
jobType: z.ZodOptional<z.ZodEnum<{
|
|
744
|
+
[x: string]: string;
|
|
729
745
|
}>>;
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
Asia: "Asia";
|
|
733
|
-
Europe: "Europe";
|
|
734
|
-
"North America": "North America";
|
|
735
|
-
"South America": "South America";
|
|
736
|
-
"Middle East": "Middle East";
|
|
737
|
-
Oceania: "Oceania";
|
|
738
|
-
Global: "Global";
|
|
739
|
-
Other: "Other";
|
|
740
|
-
Remote: "Remote";
|
|
741
|
-
EMEA: "EMEA";
|
|
742
|
-
"Asia Pacific": "Asia Pacific";
|
|
743
|
-
}>;
|
|
744
|
-
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
746
|
+
workMode: z.ZodOptional<z.ZodString>;
|
|
747
|
+
location: z.ZodOptional<z.ZodEnum<{
|
|
745
748
|
[x: string]: string;
|
|
746
|
-
}>>>;
|
|
747
|
-
isBookmarked: z.ZodBoolean;
|
|
748
|
-
createdAt: z.ZodDate;
|
|
749
|
-
version: z.ZodInt;
|
|
750
|
-
updatedAt: z.ZodDate;
|
|
751
|
-
id: z.ZodCUID2;
|
|
752
|
-
jobType: z.ZodLiteral<"ROLE">;
|
|
753
|
-
experienceLevel: z.ZodEnum<{
|
|
754
|
-
"0-1 year": "0-1 year";
|
|
755
|
-
"1-3 years": "1-3 years";
|
|
756
|
-
"3-5 years": "3-5 years";
|
|
757
|
-
"5+ years": "5+ years";
|
|
758
|
-
}>;
|
|
759
|
-
overview: z.ZodString;
|
|
760
|
-
keyResponsibilities: z.ZodString;
|
|
761
|
-
requiredSkills: z.ZodArray<z.ZodString>;
|
|
762
|
-
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
763
|
-
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
764
|
-
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
765
|
-
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
766
|
-
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
767
|
-
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
768
|
-
"EUR (Euro)": "EUR (Euro)";
|
|
769
|
-
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
770
|
-
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
771
|
-
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
772
|
-
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
773
|
-
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
774
|
-
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
775
|
-
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
776
|
-
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
777
749
|
}>>;
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
Weekly: "Weekly";
|
|
782
|
-
Monthly: "Monthly";
|
|
783
|
-
"Project Based": "Project Based";
|
|
750
|
+
employmentType: z.ZodOptional<z.ZodString>;
|
|
751
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
752
|
+
[x: string]: string;
|
|
784
753
|
}>>;
|
|
785
|
-
|
|
786
|
-
|
|
754
|
+
requiredSkills: z.ZodOptional<z.ZodString>;
|
|
755
|
+
status: z.ZodOptional<z.ZodString>;
|
|
756
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
757
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
758
|
+
}, z.core.$strip>;
|
|
759
|
+
export type GetJobsInput = z.infer<typeof GetJobsInputSchema>;
|
|
760
|
+
export declare const GetJobsOutputSchema: z.ZodObject<{
|
|
787
761
|
jobs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
762
|
+
id: z.ZodCUID2;
|
|
788
763
|
title: z.ZodString;
|
|
789
764
|
brandId: z.ZodCUID2;
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
ACTIVE: "ACTIVE";
|
|
794
|
-
DELETED: "DELETED";
|
|
795
|
-
DRAFT: "DRAFT";
|
|
796
|
-
ARCHIVED: "ARCHIVED";
|
|
765
|
+
jobType: z.ZodEnum<{
|
|
766
|
+
GIG: "GIG";
|
|
767
|
+
ROLE: "ROLE";
|
|
797
768
|
}>;
|
|
798
769
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
799
770
|
"Full Time": "Full Time";
|
|
@@ -806,6 +777,12 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
|
|
|
806
777
|
Hybrid: "Hybrid";
|
|
807
778
|
"On Site": "On Site";
|
|
808
779
|
}>;
|
|
780
|
+
status: z.ZodEnum<{
|
|
781
|
+
ACTIVE: "ACTIVE";
|
|
782
|
+
DELETED: "DELETED";
|
|
783
|
+
DRAFT: "DRAFT";
|
|
784
|
+
ARCHIVED: "ARCHIVED";
|
|
785
|
+
}>;
|
|
809
786
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
810
787
|
"One Time": "One Time";
|
|
811
788
|
Recurring: "Recurring";
|
|
@@ -827,19 +804,20 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
|
|
|
827
804
|
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
828
805
|
[x: string]: string;
|
|
829
806
|
}>>>;
|
|
830
|
-
isBookmarked: z.ZodBoolean;
|
|
831
807
|
createdAt: z.ZodDate;
|
|
832
|
-
version: z.
|
|
808
|
+
version: z.ZodNumber;
|
|
833
809
|
updatedAt: z.ZodDate;
|
|
834
|
-
|
|
835
|
-
|
|
810
|
+
brandName: z.ZodString;
|
|
811
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
812
|
+
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
813
|
+
isBookmarked: z.ZodBoolean;
|
|
836
814
|
overview: z.ZodString;
|
|
837
815
|
deliverables: z.ZodString;
|
|
838
816
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
839
817
|
aboutCompany: z.ZodOptional<z.ZodString>;
|
|
840
818
|
requiredSkills: z.ZodArray<z.ZodString>;
|
|
841
|
-
wagesMin: z.ZodOptional<z.ZodNumber
|
|
842
|
-
wagesMax: z.ZodOptional<z.ZodNumber
|
|
819
|
+
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
820
|
+
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
843
821
|
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
844
822
|
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
845
823
|
"EUR (Euro)": "EUR (Euro)";
|
|
@@ -863,18 +841,95 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
|
|
|
863
841
|
id: z.ZodCUID2;
|
|
864
842
|
title: z.ZodString;
|
|
865
843
|
brandId: z.ZodCUID2;
|
|
866
|
-
brandName: z.ZodString;
|
|
867
|
-
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
868
844
|
jobType: z.ZodEnum<{
|
|
869
845
|
GIG: "GIG";
|
|
870
846
|
ROLE: "ROLE";
|
|
871
847
|
}>;
|
|
848
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
849
|
+
"Full Time": "Full Time";
|
|
850
|
+
"Part Time": "Part Time";
|
|
851
|
+
Freelance: "Freelance";
|
|
852
|
+
Internship: "Internship";
|
|
853
|
+
}>>;
|
|
854
|
+
workMode: z.ZodEnum<{
|
|
855
|
+
Remote: "Remote";
|
|
856
|
+
Hybrid: "Hybrid";
|
|
857
|
+
"On Site": "On Site";
|
|
858
|
+
}>;
|
|
872
859
|
status: z.ZodEnum<{
|
|
873
860
|
ACTIVE: "ACTIVE";
|
|
874
861
|
DELETED: "DELETED";
|
|
875
862
|
DRAFT: "DRAFT";
|
|
876
863
|
ARCHIVED: "ARCHIVED";
|
|
877
864
|
}>;
|
|
865
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
866
|
+
"One Time": "One Time";
|
|
867
|
+
Recurring: "Recurring";
|
|
868
|
+
}>>;
|
|
869
|
+
location: z.ZodEnum<{
|
|
870
|
+
Africa: "Africa";
|
|
871
|
+
Asia: "Asia";
|
|
872
|
+
Europe: "Europe";
|
|
873
|
+
"North America": "North America";
|
|
874
|
+
"South America": "South America";
|
|
875
|
+
"Middle East": "Middle East";
|
|
876
|
+
Oceania: "Oceania";
|
|
877
|
+
Global: "Global";
|
|
878
|
+
Other: "Other";
|
|
879
|
+
Remote: "Remote";
|
|
880
|
+
EMEA: "EMEA";
|
|
881
|
+
"Asia Pacific": "Asia Pacific";
|
|
882
|
+
}>;
|
|
883
|
+
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
884
|
+
[x: string]: string;
|
|
885
|
+
}>>>;
|
|
886
|
+
createdAt: z.ZodDate;
|
|
887
|
+
version: z.ZodNumber;
|
|
888
|
+
updatedAt: z.ZodDate;
|
|
889
|
+
brandName: z.ZodString;
|
|
890
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
891
|
+
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
892
|
+
isBookmarked: z.ZodBoolean;
|
|
893
|
+
overview: z.ZodString;
|
|
894
|
+
experienceLevel: z.ZodEnum<{
|
|
895
|
+
"0-1 year": "0-1 year";
|
|
896
|
+
"1-3 years": "1-3 years";
|
|
897
|
+
"3-5 years": "3-5 years";
|
|
898
|
+
"5+ years": "5+ years";
|
|
899
|
+
}>;
|
|
900
|
+
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
901
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
902
|
+
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
903
|
+
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
904
|
+
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
905
|
+
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
906
|
+
"EUR (Euro)": "EUR (Euro)";
|
|
907
|
+
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
908
|
+
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
909
|
+
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
910
|
+
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
911
|
+
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
912
|
+
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
913
|
+
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
914
|
+
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
915
|
+
}>>;
|
|
916
|
+
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
917
|
+
Hourly: "Hourly";
|
|
918
|
+
Daily: "Daily";
|
|
919
|
+
Weekly: "Weekly";
|
|
920
|
+
Monthly: "Monthly";
|
|
921
|
+
"Project Based": "Project Based";
|
|
922
|
+
}>>;
|
|
923
|
+
keyResponsibilities: z.ZodString;
|
|
924
|
+
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
925
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
926
|
+
id: z.ZodCUID2;
|
|
927
|
+
title: z.ZodString;
|
|
928
|
+
brandId: z.ZodCUID2;
|
|
929
|
+
jobType: z.ZodEnum<{
|
|
930
|
+
GIG: "GIG";
|
|
931
|
+
ROLE: "ROLE";
|
|
932
|
+
}>;
|
|
878
933
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
879
934
|
"Full Time": "Full Time";
|
|
880
935
|
"Part Time": "Part Time";
|
|
@@ -886,6 +941,12 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
|
|
|
886
941
|
Hybrid: "Hybrid";
|
|
887
942
|
"On Site": "On Site";
|
|
888
943
|
}>;
|
|
944
|
+
status: z.ZodEnum<{
|
|
945
|
+
ACTIVE: "ACTIVE";
|
|
946
|
+
DELETED: "DELETED";
|
|
947
|
+
DRAFT: "DRAFT";
|
|
948
|
+
ARCHIVED: "ARCHIVED";
|
|
949
|
+
}>;
|
|
889
950
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
890
951
|
"One Time": "One Time";
|
|
891
952
|
Recurring: "Recurring";
|
|
@@ -907,20 +968,30 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
|
|
|
907
968
|
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
908
969
|
[x: string]: string;
|
|
909
970
|
}>>>;
|
|
910
|
-
isBookmarked: z.ZodBoolean;
|
|
911
971
|
createdAt: z.ZodDate;
|
|
912
|
-
version: z.
|
|
972
|
+
version: z.ZodNumber;
|
|
913
973
|
updatedAt: z.ZodDate;
|
|
914
|
-
|
|
974
|
+
brandName: z.ZodString;
|
|
975
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
976
|
+
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
977
|
+
isBookmarked: z.ZodBoolean;
|
|
978
|
+
}, z.core.$strip>]>>;
|
|
979
|
+
total: z.ZodNumber;
|
|
980
|
+
page: z.ZodNumber;
|
|
981
|
+
limit: z.ZodNumber;
|
|
982
|
+
totalPages: z.ZodNumber;
|
|
983
|
+
hasNextPage: z.ZodBoolean;
|
|
984
|
+
hasPrevPage: z.ZodBoolean;
|
|
985
|
+
}, z.core.$strip>;
|
|
986
|
+
export type GetJobsOutput = z.infer<typeof GetJobsOutputSchema>;
|
|
987
|
+
export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
|
|
988
|
+
jobs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
989
|
+
id: z.ZodCUID2;
|
|
915
990
|
title: z.ZodString;
|
|
916
991
|
brandId: z.ZodCUID2;
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
ACTIVE: "ACTIVE";
|
|
921
|
-
DELETED: "DELETED";
|
|
922
|
-
DRAFT: "DRAFT";
|
|
923
|
-
ARCHIVED: "ARCHIVED";
|
|
992
|
+
jobType: z.ZodEnum<{
|
|
993
|
+
GIG: "GIG";
|
|
994
|
+
ROLE: "ROLE";
|
|
924
995
|
}>;
|
|
925
996
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
926
997
|
"Full Time": "Full Time";
|
|
@@ -933,6 +1004,12 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
|
|
|
933
1004
|
Hybrid: "Hybrid";
|
|
934
1005
|
"On Site": "On Site";
|
|
935
1006
|
}>;
|
|
1007
|
+
status: z.ZodEnum<{
|
|
1008
|
+
ACTIVE: "ACTIVE";
|
|
1009
|
+
DELETED: "DELETED";
|
|
1010
|
+
DRAFT: "DRAFT";
|
|
1011
|
+
ARCHIVED: "ARCHIVED";
|
|
1012
|
+
}>;
|
|
936
1013
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
937
1014
|
"One Time": "One Time";
|
|
938
1015
|
Recurring: "Recurring";
|
|
@@ -954,23 +1031,18 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
|
|
|
954
1031
|
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
955
1032
|
[x: string]: string;
|
|
956
1033
|
}>>>;
|
|
957
|
-
isBookmarked: z.ZodBoolean;
|
|
958
1034
|
createdAt: z.ZodDate;
|
|
959
|
-
version: z.
|
|
1035
|
+
version: z.ZodNumber;
|
|
960
1036
|
updatedAt: z.ZodDate;
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
"1-3 years": "1-3 years";
|
|
966
|
-
"3-5 years": "3-5 years";
|
|
967
|
-
"5+ years": "5+ years";
|
|
968
|
-
}>;
|
|
1037
|
+
brandName: z.ZodString;
|
|
1038
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1039
|
+
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
1040
|
+
isBookmarked: z.ZodBoolean;
|
|
969
1041
|
overview: z.ZodString;
|
|
970
|
-
|
|
971
|
-
requiredSkills: z.ZodArray<z.ZodString>;
|
|
1042
|
+
deliverables: z.ZodString;
|
|
972
1043
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
973
|
-
|
|
1044
|
+
aboutCompany: z.ZodOptional<z.ZodString>;
|
|
1045
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
974
1046
|
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
975
1047
|
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
976
1048
|
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
@@ -992,40 +1064,13 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
|
|
|
992
1064
|
Monthly: "Monthly";
|
|
993
1065
|
"Project Based": "Project Based";
|
|
994
1066
|
}>>;
|
|
995
|
-
}, z.core.$strip
|
|
996
|
-
|
|
997
|
-
noOfActiveJobs: z.ZodNumber;
|
|
998
|
-
noOfArchivedJobs: z.ZodNumber;
|
|
999
|
-
}, z.core.$strip>;
|
|
1000
|
-
export declare const GetJobsInputSchema: z.ZodObject<{
|
|
1001
|
-
q: z.ZodOptional<z.ZodString>;
|
|
1002
|
-
jobType: z.ZodOptional<z.ZodEnum<{
|
|
1003
|
-
[x: string]: string;
|
|
1004
|
-
}>>;
|
|
1005
|
-
workMode: z.ZodOptional<z.ZodString>;
|
|
1006
|
-
location: z.ZodOptional<z.ZodEnum<{
|
|
1007
|
-
[x: string]: string;
|
|
1008
|
-
}>>;
|
|
1009
|
-
employmentType: z.ZodOptional<z.ZodString>;
|
|
1010
|
-
gigType: z.ZodOptional<z.ZodEnum<{
|
|
1011
|
-
[x: string]: string;
|
|
1012
|
-
}>>;
|
|
1013
|
-
requiredSkills: z.ZodOptional<z.ZodString>;
|
|
1014
|
-
status: z.ZodOptional<z.ZodString>;
|
|
1015
|
-
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1016
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1017
|
-
}, z.core.$strip>;
|
|
1018
|
-
export declare const GetJobsOutputSchema: z.ZodObject<{
|
|
1019
|
-
jobs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1067
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1068
|
+
id: z.ZodCUID2;
|
|
1020
1069
|
title: z.ZodString;
|
|
1021
1070
|
brandId: z.ZodCUID2;
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
ACTIVE: "ACTIVE";
|
|
1026
|
-
DELETED: "DELETED";
|
|
1027
|
-
DRAFT: "DRAFT";
|
|
1028
|
-
ARCHIVED: "ARCHIVED";
|
|
1071
|
+
jobType: z.ZodEnum<{
|
|
1072
|
+
GIG: "GIG";
|
|
1073
|
+
ROLE: "ROLE";
|
|
1029
1074
|
}>;
|
|
1030
1075
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
1031
1076
|
"Full Time": "Full Time";
|
|
@@ -1038,6 +1083,12 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
|
|
|
1038
1083
|
Hybrid: "Hybrid";
|
|
1039
1084
|
"On Site": "On Site";
|
|
1040
1085
|
}>;
|
|
1086
|
+
status: z.ZodEnum<{
|
|
1087
|
+
ACTIVE: "ACTIVE";
|
|
1088
|
+
DELETED: "DELETED";
|
|
1089
|
+
DRAFT: "DRAFT";
|
|
1090
|
+
ARCHIVED: "ARCHIVED";
|
|
1091
|
+
}>;
|
|
1041
1092
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
1042
1093
|
"One Time": "One Time";
|
|
1043
1094
|
Recurring: "Recurring";
|
|
@@ -1059,19 +1110,24 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
|
|
|
1059
1110
|
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1060
1111
|
[x: string]: string;
|
|
1061
1112
|
}>>>;
|
|
1062
|
-
isBookmarked: z.ZodBoolean;
|
|
1063
1113
|
createdAt: z.ZodDate;
|
|
1064
|
-
version: z.
|
|
1114
|
+
version: z.ZodNumber;
|
|
1065
1115
|
updatedAt: z.ZodDate;
|
|
1066
|
-
|
|
1067
|
-
|
|
1116
|
+
brandName: z.ZodString;
|
|
1117
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1118
|
+
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
1119
|
+
isBookmarked: z.ZodBoolean;
|
|
1068
1120
|
overview: z.ZodString;
|
|
1069
|
-
|
|
1121
|
+
experienceLevel: z.ZodEnum<{
|
|
1122
|
+
"0-1 year": "0-1 year";
|
|
1123
|
+
"1-3 years": "1-3 years";
|
|
1124
|
+
"3-5 years": "3-5 years";
|
|
1125
|
+
"5+ years": "5+ years";
|
|
1126
|
+
}>;
|
|
1070
1127
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
1071
|
-
aboutCompany: z.ZodOptional<z.ZodString>;
|
|
1072
1128
|
requiredSkills: z.ZodArray<z.ZodString>;
|
|
1073
|
-
wagesMin: z.ZodOptional<z.ZodNumber
|
|
1074
|
-
wagesMax: z.ZodOptional<z.ZodNumber
|
|
1129
|
+
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1130
|
+
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1075
1131
|
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
1076
1132
|
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
1077
1133
|
"EUR (Euro)": "EUR (Euro)";
|
|
@@ -1091,22 +1147,16 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
|
|
|
1091
1147
|
Monthly: "Monthly";
|
|
1092
1148
|
"Project Based": "Project Based";
|
|
1093
1149
|
}>>;
|
|
1150
|
+
keyResponsibilities: z.ZodString;
|
|
1151
|
+
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
1094
1152
|
}, z.core.$strip>, z.ZodObject<{
|
|
1095
1153
|
id: z.ZodCUID2;
|
|
1096
1154
|
title: z.ZodString;
|
|
1097
1155
|
brandId: z.ZodCUID2;
|
|
1098
|
-
brandName: z.ZodString;
|
|
1099
|
-
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
1100
1156
|
jobType: z.ZodEnum<{
|
|
1101
1157
|
GIG: "GIG";
|
|
1102
1158
|
ROLE: "ROLE";
|
|
1103
1159
|
}>;
|
|
1104
|
-
status: z.ZodEnum<{
|
|
1105
|
-
ACTIVE: "ACTIVE";
|
|
1106
|
-
DELETED: "DELETED";
|
|
1107
|
-
DRAFT: "DRAFT";
|
|
1108
|
-
ARCHIVED: "ARCHIVED";
|
|
1109
|
-
}>;
|
|
1110
1160
|
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
1111
1161
|
"Full Time": "Full Time";
|
|
1112
1162
|
"Part Time": "Part Time";
|
|
@@ -1118,53 +1168,12 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
|
|
|
1118
1168
|
Hybrid: "Hybrid";
|
|
1119
1169
|
"On Site": "On Site";
|
|
1120
1170
|
}>;
|
|
1121
|
-
gigType: z.ZodOptional<z.ZodEnum<{
|
|
1122
|
-
"One Time": "One Time";
|
|
1123
|
-
Recurring: "Recurring";
|
|
1124
|
-
}>>;
|
|
1125
|
-
location: z.ZodEnum<{
|
|
1126
|
-
Africa: "Africa";
|
|
1127
|
-
Asia: "Asia";
|
|
1128
|
-
Europe: "Europe";
|
|
1129
|
-
"North America": "North America";
|
|
1130
|
-
"South America": "South America";
|
|
1131
|
-
"Middle East": "Middle East";
|
|
1132
|
-
Oceania: "Oceania";
|
|
1133
|
-
Global: "Global";
|
|
1134
|
-
Other: "Other";
|
|
1135
|
-
Remote: "Remote";
|
|
1136
|
-
EMEA: "EMEA";
|
|
1137
|
-
"Asia Pacific": "Asia Pacific";
|
|
1138
|
-
}>;
|
|
1139
|
-
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1140
|
-
[x: string]: string;
|
|
1141
|
-
}>>>;
|
|
1142
|
-
isBookmarked: z.ZodBoolean;
|
|
1143
|
-
createdAt: z.ZodDate;
|
|
1144
|
-
version: z.ZodInt;
|
|
1145
|
-
updatedAt: z.ZodDate;
|
|
1146
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1147
|
-
title: z.ZodString;
|
|
1148
|
-
brandId: z.ZodCUID2;
|
|
1149
|
-
brandName: z.ZodString;
|
|
1150
|
-
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
1151
1171
|
status: z.ZodEnum<{
|
|
1152
1172
|
ACTIVE: "ACTIVE";
|
|
1153
1173
|
DELETED: "DELETED";
|
|
1154
1174
|
DRAFT: "DRAFT";
|
|
1155
1175
|
ARCHIVED: "ARCHIVED";
|
|
1156
1176
|
}>;
|
|
1157
|
-
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
1158
|
-
"Full Time": "Full Time";
|
|
1159
|
-
"Part Time": "Part Time";
|
|
1160
|
-
Freelance: "Freelance";
|
|
1161
|
-
Internship: "Internship";
|
|
1162
|
-
}>>;
|
|
1163
|
-
workMode: z.ZodEnum<{
|
|
1164
|
-
Remote: "Remote";
|
|
1165
|
-
Hybrid: "Hybrid";
|
|
1166
|
-
"On Site": "On Site";
|
|
1167
|
-
}>;
|
|
1168
1177
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
1169
1178
|
"One Time": "One Time";
|
|
1170
1179
|
Recurring: "Recurring";
|
|
@@ -1186,55 +1195,23 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
|
|
|
1186
1195
|
jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1187
1196
|
[x: string]: string;
|
|
1188
1197
|
}>>>;
|
|
1189
|
-
isBookmarked: z.ZodBoolean;
|
|
1190
1198
|
createdAt: z.ZodDate;
|
|
1191
|
-
version: z.
|
|
1199
|
+
version: z.ZodNumber;
|
|
1192
1200
|
updatedAt: z.ZodDate;
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
"1-3 years": "1-3 years";
|
|
1198
|
-
"3-5 years": "3-5 years";
|
|
1199
|
-
"5+ years": "5+ years";
|
|
1200
|
-
}>;
|
|
1201
|
-
overview: z.ZodString;
|
|
1202
|
-
keyResponsibilities: z.ZodString;
|
|
1203
|
-
requiredSkills: z.ZodArray<z.ZodString>;
|
|
1204
|
-
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
1205
|
-
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
1206
|
-
wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1207
|
-
wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1208
|
-
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
1209
|
-
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
1210
|
-
"EUR (Euro)": "EUR (Euro)";
|
|
1211
|
-
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
1212
|
-
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
1213
|
-
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
1214
|
-
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
1215
|
-
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
1216
|
-
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
1217
|
-
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
1218
|
-
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
1219
|
-
}>>;
|
|
1220
|
-
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
1221
|
-
Hourly: "Hourly";
|
|
1222
|
-
Daily: "Daily";
|
|
1223
|
-
Weekly: "Weekly";
|
|
1224
|
-
Monthly: "Monthly";
|
|
1225
|
-
"Project Based": "Project Based";
|
|
1226
|
-
}>>;
|
|
1201
|
+
brandName: z.ZodString;
|
|
1202
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1203
|
+
brandImgUrl: z.ZodOptional<z.ZodURL>;
|
|
1204
|
+
isBookmarked: z.ZodBoolean;
|
|
1227
1205
|
}, z.core.$strip>]>>;
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
totalPages: z.ZodNumber;
|
|
1232
|
-
hasNextPage: z.ZodBoolean;
|
|
1233
|
-
hasPrevPage: z.ZodBoolean;
|
|
1206
|
+
noOfJobs: z.ZodNumber;
|
|
1207
|
+
noOfActiveJobs: z.ZodNumber;
|
|
1208
|
+
noOfArchivedJobs: z.ZodNumber;
|
|
1234
1209
|
}, z.core.$strip>;
|
|
1210
|
+
export type GetCreatedJobsOutput = z.infer<typeof GetCreatedJobsOutputSchema>;
|
|
1235
1211
|
export declare const JobSearchDocumentSchema: z.ZodObject<{
|
|
1236
1212
|
id: z.ZodCUID2;
|
|
1237
1213
|
title: z.ZodString;
|
|
1214
|
+
isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1238
1215
|
brandId: z.ZodCUID2;
|
|
1239
1216
|
brandName: z.ZodString;
|
|
1240
1217
|
brandImgUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1256,3 +1233,74 @@ export declare const JobSearchDocumentSchema: z.ZodObject<{
|
|
|
1256
1233
|
createdAt: z.ZodString;
|
|
1257
1234
|
updatedAt: z.ZodString;
|
|
1258
1235
|
}, z.core.$strip>;
|
|
1236
|
+
export type JobSearchDocument = z.infer<typeof JobSearchDocumentSchema>;
|
|
1237
|
+
export declare const UpdateRoleJobInputSchema: z.ZodObject<{
|
|
1238
|
+
overview: z.ZodOptional<z.ZodString>;
|
|
1239
|
+
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
1240
|
+
"0-1 year": "0-1 year";
|
|
1241
|
+
"1-3 years": "1-3 years";
|
|
1242
|
+
"3-5 years": "3-5 years";
|
|
1243
|
+
"5+ years": "5+ years";
|
|
1244
|
+
}>>;
|
|
1245
|
+
employeeRequirements: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1246
|
+
requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1247
|
+
wagesMin: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1248
|
+
wagesMax: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1249
|
+
wagesCurrency: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
1250
|
+
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
1251
|
+
"EUR (Euro)": "EUR (Euro)";
|
|
1252
|
+
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
1253
|
+
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
1254
|
+
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
1255
|
+
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
1256
|
+
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
1257
|
+
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
1258
|
+
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
1259
|
+
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
1260
|
+
}>>>;
|
|
1261
|
+
wagesType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
1262
|
+
Hourly: "Hourly";
|
|
1263
|
+
Daily: "Daily";
|
|
1264
|
+
Weekly: "Weekly";
|
|
1265
|
+
Monthly: "Monthly";
|
|
1266
|
+
"Project Based": "Project Based";
|
|
1267
|
+
}>>>;
|
|
1268
|
+
keyResponsibilities: z.ZodOptional<z.ZodString>;
|
|
1269
|
+
companyBenefits: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1270
|
+
id: z.ZodNonOptional<z.ZodOptional<z.ZodCUID2>>;
|
|
1271
|
+
version: z.ZodNumber;
|
|
1272
|
+
}, z.core.$strip>;
|
|
1273
|
+
export type UpdateRoleJobInput = z.infer<typeof UpdateRoleJobInputSchema>;
|
|
1274
|
+
export declare const UpdateGigJobInputSchema: z.ZodObject<{
|
|
1275
|
+
overview: z.ZodOptional<z.ZodString>;
|
|
1276
|
+
deliverables: z.ZodOptional<z.ZodString>;
|
|
1277
|
+
employeeRequirements: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1278
|
+
aboutCompany: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1279
|
+
requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1280
|
+
wagesMin: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1281
|
+
wagesMax: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1282
|
+
wagesCurrency: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
1283
|
+
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
1284
|
+
"EUR (Euro)": "EUR (Euro)";
|
|
1285
|
+
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
1286
|
+
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
1287
|
+
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
1288
|
+
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
1289
|
+
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
1290
|
+
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
1291
|
+
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
1292
|
+
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
1293
|
+
}>>>;
|
|
1294
|
+
wagesType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
1295
|
+
Hourly: "Hourly";
|
|
1296
|
+
Daily: "Daily";
|
|
1297
|
+
Weekly: "Weekly";
|
|
1298
|
+
Monthly: "Monthly";
|
|
1299
|
+
"Project Based": "Project Based";
|
|
1300
|
+
}>>>;
|
|
1301
|
+
id: z.ZodNonOptional<z.ZodOptional<z.ZodCUID2>>;
|
|
1302
|
+
version: z.ZodNumber;
|
|
1303
|
+
}, z.core.$strip>;
|
|
1304
|
+
export type UpdateGigJobInput = z.infer<typeof UpdateGigJobInputSchema>;
|
|
1305
|
+
export type UpdateRoleJobOutput = z.infer<typeof RoleJobEntitySchema>;
|
|
1306
|
+
export type UpdateGigJobOutput = z.infer<typeof GigJobEntitySchema>;
|