@zyacreatives/shared 2.5.24 → 2.5.26

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.
@@ -1,13 +1,8 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- export declare const MinimalJobEntitySchema: z.ZodObject<{
3
- id: z.ZodCUID2;
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.ZodInt;
53
+ version: z.ZodNumber;
59
54
  updatedAt: z.ZodDate;
60
55
  }, z.core.$strip>;
61
- export declare const JobIdSchema: z.ZodObject<{
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.ZodInt;
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
- brandName: z.ZodString;
151
- brandImgUrl: z.ZodOptional<z.ZodURL>;
152
- status: z.ZodEnum<{
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.ZodInt;
190
+ version: z.ZodNumber;
193
191
  updatedAt: z.ZodDate;
194
- id: z.ZodCUID2;
195
- jobType: z.ZodLiteral<"GIG">;
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
- brandName: z.ZodString;
263
- brandImgUrl: z.ZodOptional<z.ZodURL>;
264
- status: z.ZodEnum<{
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.ZodInt;
308
+ version: z.ZodNumber;
305
309
  updatedAt: z.ZodDate;
306
- id: z.ZodCUID2;
307
- jobType: z.ZodLiteral<"ROLE">;
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
- companyBenefits: z.ZodOptional<z.ZodString>;
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 declare const CreateJobInputSchema: z.ZodPipe<z.ZodObject<{
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.ZodDefault<z.ZodEnum<{
377
+ location: z.ZodEnum<{
364
378
  Africa: "Africa";
365
379
  Asia: "Asia";
366
380
  Europe: "Europe";
@@ -373,66 +387,17 @@ 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
  }>;
407
- overview: z.ZodString;
408
- keyResponsibilities: z.ZodString;
409
- requiredSkills: z.ZodArray<z.ZodString>;
410
- employeeRequirements: z.ZodOptional<z.ZodString>;
411
- companyBenefits: z.ZodOptional<z.ZodString>;
412
- wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
413
- wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
414
- wagesCurrency: z.ZodOptional<z.ZodEnum<{
415
- "USD (United States Dollar)": "USD (United States Dollar)";
416
- "EUR (Euro)": "EUR (Euro)";
417
- "GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
418
- "NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
419
- "CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
420
- "AUD (Australian Dollar)": "AUD (Australian Dollar)";
421
- "JPY (Japanese Yen)": "JPY (Japanese Yen)";
422
- "CHF (Swiss Franc)": "CHF (Swiss Franc)";
423
- "INR (Indian Rupee)": "INR (Indian Rupee)";
424
- "ZAR (South African Rand)": "ZAR (South African Rand)";
425
- }>>;
426
- wagesType: z.ZodOptional<z.ZodEnum<{
427
- Hourly: "Hourly";
428
- Daily: "Daily";
429
- Weekly: "Weekly";
430
- Monthly: "Monthly";
431
- "Project Based": "Project Based";
432
- }>>;
433
- }, z.core.$strip>;
434
- export declare const CreateGigJobInputSchema: z.ZodObject<{
435
- id: z.ZodCUID2;
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;
436
401
  overview: z.ZodString;
437
402
  deliverables: z.ZodString;
438
403
  employeeRequirements: z.ZodOptional<z.ZodString>;
@@ -459,96 +424,36 @@ export declare const CreateGigJobInputSchema: z.ZodObject<{
459
424
  Monthly: "Monthly";
460
425
  "Project Based": "Project Based";
461
426
  }>>;
462
- }, z.core.$strip>;
463
- export declare const UpdateRoleJobInputSchema: z.ZodObject<{
464
- id: z.ZodNonOptional<z.ZodOptional<z.ZodCUID2>>;
465
- experienceLevel: z.ZodOptional<z.ZodEnum<{
466
- "0-1 year": "0-1 year";
467
- "1-3 years": "1-3 years";
468
- "3-5 years": "3-5 years";
469
- "5+ years": "5+ years";
470
- }>>;
471
- overview: z.ZodOptional<z.ZodString>;
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<{
427
+ }, z.core.$strip>, z.ZodObject<{
428
+ id: z.ZodCUID2;
429
+ title: z.ZodString;
430
+ brandId: z.ZodCUID2;
431
+ jobType: z.ZodEnum<{
533
432
  GIG: "GIG";
534
433
  ROLE: "ROLE";
535
- }>>;
536
- employmentType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
434
+ }>;
435
+ employmentType: z.ZodOptional<z.ZodEnum<{
537
436
  "Full Time": "Full Time";
538
437
  "Part Time": "Part Time";
539
438
  Freelance: "Freelance";
540
439
  Internship: "Internship";
541
- }>>>;
542
- workMode: z.ZodOptional<z.ZodEnum<{
440
+ }>>;
441
+ workMode: z.ZodEnum<{
543
442
  Remote: "Remote";
544
443
  Hybrid: "Hybrid";
545
444
  "On Site": "On Site";
546
- }>>;
547
- gigType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
445
+ }>;
446
+ status: z.ZodEnum<{
447
+ ACTIVE: "ACTIVE";
448
+ DELETED: "DELETED";
449
+ DRAFT: "DRAFT";
450
+ ARCHIVED: "ARCHIVED";
451
+ }>;
452
+ gigType: z.ZodOptional<z.ZodEnum<{
548
453
  "One Time": "One Time";
549
454
  Recurring: "Recurring";
550
- }>>>;
551
- location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
455
+ }>>;
456
+ location: z.ZodEnum<{
552
457
  Africa: "Africa";
553
458
  Asia: "Asia";
554
459
  Europe: "Europe";
@@ -561,75 +466,28 @@ export declare const UpdateJobInputSchema: z.ZodObject<{
561
466
  Remote: "Remote";
562
467
  EMEA: "EMEA";
563
468
  "Asia Pacific": "Asia Pacific";
564
- }>>>;
565
- jobSections: z.ZodOptional<z.ZodArray<z.ZodEnum<{
469
+ }>;
470
+ jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
566
471
  [x: string]: string;
567
472
  }>>>;
568
- id: z.ZodCUID2;
569
- status: z.ZodOptional<z.ZodEnum<{
570
- ACTIVE: "ACTIVE";
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;
473
+ createdAt: z.ZodDate;
474
+ version: z.ZodNumber;
475
+ updatedAt: z.ZodDate;
580
476
  brandName: z.ZodString;
477
+ isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
581
478
  brandImgUrl: z.ZodOptional<z.ZodURL>;
582
- status: z.ZodEnum<{
583
- ACTIVE: "ACTIVE";
584
- DELETED: "DELETED";
585
- DRAFT: "DRAFT";
586
- ARCHIVED: "ARCHIVED";
587
- }>;
588
- employmentType: z.ZodOptional<z.ZodEnum<{
589
- "Full Time": "Full Time";
590
- "Part Time": "Part Time";
591
- Freelance: "Freelance";
592
- Internship: "Internship";
593
- }>>;
594
- workMode: z.ZodEnum<{
595
- Remote: "Remote";
596
- Hybrid: "Hybrid";
597
- "On Site": "On Site";
598
- }>;
599
- gigType: z.ZodOptional<z.ZodEnum<{
600
- "One Time": "One Time";
601
- Recurring: "Recurring";
602
- }>>;
603
- location: z.ZodEnum<{
604
- Africa: "Africa";
605
- Asia: "Asia";
606
- Europe: "Europe";
607
- "North America": "North America";
608
- "South America": "South America";
609
- "Middle East": "Middle East";
610
- Oceania: "Oceania";
611
- Global: "Global";
612
- Other: "Other";
613
- Remote: "Remote";
614
- EMEA: "EMEA";
615
- "Asia Pacific": "Asia Pacific";
616
- }>;
617
- jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
618
- [x: string]: string;
619
- }>>>;
620
479
  isBookmarked: z.ZodBoolean;
621
- createdAt: z.ZodDate;
622
- version: z.ZodInt;
623
- updatedAt: z.ZodDate;
624
- id: z.ZodCUID2;
625
- jobType: z.ZodLiteral<"GIG">;
626
480
  overview: z.ZodString;
627
- deliverables: z.ZodString;
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
+ }>;
628
487
  employeeRequirements: z.ZodOptional<z.ZodString>;
629
- aboutCompany: z.ZodOptional<z.ZodString>;
630
488
  requiredSkills: z.ZodArray<z.ZodString>;
631
- wagesMin: z.ZodOptional<z.ZodNumber>;
632
- wagesMax: z.ZodOptional<z.ZodNumber>;
489
+ wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
490
+ wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
633
491
  wagesCurrency: z.ZodOptional<z.ZodEnum<{
634
492
  "USD (United States Dollar)": "USD (United States Dollar)";
635
493
  "EUR (Euro)": "EUR (Euro)";
@@ -649,22 +507,16 @@ export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
649
507
  Monthly: "Monthly";
650
508
  "Project Based": "Project Based";
651
509
  }>>;
510
+ keyResponsibilities: z.ZodString;
511
+ companyBenefits: z.ZodOptional<z.ZodString>;
652
512
  }, z.core.$strip>, z.ZodObject<{
653
513
  id: z.ZodCUID2;
654
514
  title: z.ZodString;
655
515
  brandId: z.ZodCUID2;
656
- brandName: z.ZodString;
657
- brandImgUrl: z.ZodOptional<z.ZodURL>;
658
516
  jobType: z.ZodEnum<{
659
517
  GIG: "GIG";
660
518
  ROLE: "ROLE";
661
519
  }>;
662
- status: z.ZodEnum<{
663
- ACTIVE: "ACTIVE";
664
- DELETED: "DELETED";
665
- DRAFT: "DRAFT";
666
- ARCHIVED: "ARCHIVED";
667
- }>;
668
520
  employmentType: z.ZodOptional<z.ZodEnum<{
669
521
  "Full Time": "Full Time";
670
522
  "Part Time": "Part Time";
@@ -676,6 +528,12 @@ export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
676
528
  Hybrid: "Hybrid";
677
529
  "On Site": "On Site";
678
530
  }>;
531
+ status: z.ZodEnum<{
532
+ ACTIVE: "ACTIVE";
533
+ DELETED: "DELETED";
534
+ DRAFT: "DRAFT";
535
+ ARCHIVED: "ARCHIVED";
536
+ }>;
679
537
  gigType: z.ZodOptional<z.ZodEnum<{
680
538
  "One Time": "One Time";
681
539
  Recurring: "Recurring";
@@ -697,20 +555,21 @@ export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
697
555
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
698
556
  [x: string]: string;
699
557
  }>>>;
700
- isBookmarked: z.ZodBoolean;
701
558
  createdAt: z.ZodDate;
702
- version: z.ZodInt;
559
+ version: z.ZodNumber;
703
560
  updatedAt: z.ZodDate;
704
- }, z.core.$strip>, z.ZodObject<{
705
- title: z.ZodString;
706
- brandId: z.ZodCUID2;
707
561
  brandName: z.ZodString;
562
+ isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
708
563
  brandImgUrl: z.ZodOptional<z.ZodURL>;
709
- status: z.ZodEnum<{
710
- ACTIVE: "ACTIVE";
711
- DELETED: "DELETED";
712
- DRAFT: "DRAFT";
713
- ARCHIVED: "ARCHIVED";
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";
714
573
  }>;
715
574
  employmentType: z.ZodOptional<z.ZodEnum<{
716
575
  "Full Time": "Full Time";
@@ -727,7 +586,7 @@ export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
727
586
  "One Time": "One Time";
728
587
  Recurring: "Recurring";
729
588
  }>>;
730
- location: z.ZodEnum<{
589
+ location: z.ZodDefault<z.ZodEnum<{
731
590
  Africa: "Africa";
732
591
  Asia: "Asia";
733
592
  Europe: "Europe";
@@ -740,27 +599,72 @@ export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
740
599
  Remote: "Remote";
741
600
  EMEA: "EMEA";
742
601
  "Asia Pacific": "Asia Pacific";
743
- }>;
744
- jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
602
+ }>>;
603
+ jobSections: z.ZodArray<z.ZodEnum<{
745
604
  [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">;
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;
753
628
  experienceLevel: z.ZodEnum<{
754
629
  "0-1 year": "0-1 year";
755
630
  "1-3 years": "1-3 years";
756
631
  "3-5 years": "3-5 years";
757
632
  "5+ years": "5+ years";
758
633
  }>;
759
- overview: z.ZodString;
760
- keyResponsibilities: z.ZodString;
761
- requiredSkills: z.ZodArray<z.ZodString>;
762
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;
763
658
  companyBenefits: z.ZodOptional<z.ZodString>;
659
+ id: z.ZodCUID2;
660
+ }, z.core.$strip>;
661
+ export type CreateRoleJobInput = z.infer<typeof CreateRoleJobInputSchema>;
662
+ export declare const CreateGigJobInputSchema: z.ZodObject<{
663
+ overview: z.ZodString;
664
+ deliverables: z.ZodString;
665
+ employeeRequirements: z.ZodOptional<z.ZodString>;
666
+ aboutCompany: z.ZodOptional<z.ZodString>;
667
+ requiredSkills: z.ZodArray<z.ZodString>;
764
668
  wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
765
669
  wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
766
670
  wagesCurrency: z.ZodOptional<z.ZodEnum<{
@@ -782,18 +686,164 @@ export declare const NormalizedJobSchema: z.ZodUnion<readonly [z.ZodObject<{
782
686
  Monthly: "Monthly";
783
687
  "Project Based": "Project Based";
784
688
  }>>;
785
- }, z.core.$strip>]>;
786
- export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
689
+ id: z.ZodCUID2;
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<{
696
+ GIG: "GIG";
697
+ ROLE: "ROLE";
698
+ }>>;
699
+ employmentType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
700
+ "Full Time": "Full Time";
701
+ "Part Time": "Part Time";
702
+ Freelance: "Freelance";
703
+ Internship: "Internship";
704
+ }>>>;
705
+ workMode: z.ZodOptional<z.ZodEnum<{
706
+ Remote: "Remote";
707
+ Hybrid: "Hybrid";
708
+ "On Site": "On Site";
709
+ }>>;
710
+ gigType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
711
+ "One Time": "One Time";
712
+ Recurring: "Recurring";
713
+ }>>>;
714
+ location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
715
+ Africa: "Africa";
716
+ Asia: "Asia";
717
+ Europe: "Europe";
718
+ "North America": "North America";
719
+ "South America": "South America";
720
+ "Middle East": "Middle East";
721
+ Oceania: "Oceania";
722
+ Global: "Global";
723
+ Other: "Other";
724
+ Remote: "Remote";
725
+ EMEA: "EMEA";
726
+ "Asia Pacific": "Asia Pacific";
727
+ }>>>;
728
+ jobSections: z.ZodOptional<z.ZodArray<z.ZodEnum<{
729
+ [x: string]: string;
730
+ }>>>;
731
+ id: z.ZodCUID2;
732
+ status: z.ZodOptional<z.ZodEnum<{
733
+ ACTIVE: "ACTIVE";
734
+ DELETED: "DELETED";
735
+ DRAFT: "DRAFT";
736
+ ARCHIVED: "ARCHIVED";
737
+ }>>;
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;
745
+ }>>;
746
+ workMode: z.ZodOptional<z.ZodString>;
747
+ location: z.ZodOptional<z.ZodEnum<{
748
+ [x: string]: string;
749
+ }>>;
750
+ employmentType: z.ZodOptional<z.ZodString>;
751
+ gigType: z.ZodOptional<z.ZodEnum<{
752
+ [x: string]: string;
753
+ }>>;
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;
763
+ title: z.ZodString;
764
+ brandId: z.ZodCUID2;
765
+ jobType: z.ZodEnum<{
766
+ GIG: "GIG";
767
+ ROLE: "ROLE";
768
+ }>;
769
+ employmentType: z.ZodOptional<z.ZodEnum<{
770
+ "Full Time": "Full Time";
771
+ "Part Time": "Part Time";
772
+ Freelance: "Freelance";
773
+ Internship: "Internship";
774
+ }>>;
775
+ workMode: z.ZodEnum<{
776
+ Remote: "Remote";
777
+ Hybrid: "Hybrid";
778
+ "On Site": "On Site";
779
+ }>;
780
+ status: z.ZodEnum<{
781
+ ACTIVE: "ACTIVE";
782
+ DELETED: "DELETED";
783
+ DRAFT: "DRAFT";
784
+ ARCHIVED: "ARCHIVED";
785
+ }>;
786
+ gigType: z.ZodOptional<z.ZodEnum<{
787
+ "One Time": "One Time";
788
+ Recurring: "Recurring";
789
+ }>>;
790
+ location: z.ZodEnum<{
791
+ Africa: "Africa";
792
+ Asia: "Asia";
793
+ Europe: "Europe";
794
+ "North America": "North America";
795
+ "South America": "South America";
796
+ "Middle East": "Middle East";
797
+ Oceania: "Oceania";
798
+ Global: "Global";
799
+ Other: "Other";
800
+ Remote: "Remote";
801
+ EMEA: "EMEA";
802
+ "Asia Pacific": "Asia Pacific";
803
+ }>;
804
+ jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
805
+ [x: string]: string;
806
+ }>>>;
807
+ createdAt: z.ZodDate;
808
+ version: z.ZodNumber;
809
+ updatedAt: z.ZodDate;
810
+ brandName: z.ZodString;
811
+ isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
812
+ brandImgUrl: z.ZodOptional<z.ZodURL>;
813
+ isBookmarked: z.ZodBoolean;
814
+ overview: z.ZodString;
815
+ deliverables: z.ZodString;
816
+ employeeRequirements: z.ZodOptional<z.ZodString>;
817
+ aboutCompany: z.ZodOptional<z.ZodString>;
818
+ requiredSkills: z.ZodArray<z.ZodString>;
819
+ wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
820
+ wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
821
+ wagesCurrency: z.ZodOptional<z.ZodEnum<{
822
+ "USD (United States Dollar)": "USD (United States Dollar)";
823
+ "EUR (Euro)": "EUR (Euro)";
824
+ "GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
825
+ "NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
826
+ "CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
827
+ "AUD (Australian Dollar)": "AUD (Australian Dollar)";
828
+ "JPY (Japanese Yen)": "JPY (Japanese Yen)";
829
+ "CHF (Swiss Franc)": "CHF (Swiss Franc)";
830
+ "INR (Indian Rupee)": "INR (Indian Rupee)";
831
+ "ZAR (South African Rand)": "ZAR (South African Rand)";
832
+ }>>;
833
+ wagesType: z.ZodOptional<z.ZodEnum<{
834
+ Hourly: "Hourly";
835
+ Daily: "Daily";
836
+ Weekly: "Weekly";
837
+ Monthly: "Monthly";
838
+ "Project Based": "Project Based";
839
+ }>>;
840
+ }, z.core.$strip>, z.ZodObject<{
841
+ id: z.ZodCUID2;
788
842
  title: z.ZodString;
789
843
  brandId: z.ZodCUID2;
790
- brandName: z.ZodString;
791
- brandImgUrl: z.ZodOptional<z.ZodURL>;
792
- status: z.ZodEnum<{
793
- ACTIVE: "ACTIVE";
794
- DELETED: "DELETED";
795
- DRAFT: "DRAFT";
796
- ARCHIVED: "ARCHIVED";
844
+ jobType: z.ZodEnum<{
845
+ GIG: "GIG";
846
+ ROLE: "ROLE";
797
847
  }>;
798
848
  employmentType: z.ZodOptional<z.ZodEnum<{
799
849
  "Full Time": "Full Time";
@@ -806,6 +856,12 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
806
856
  Hybrid: "Hybrid";
807
857
  "On Site": "On Site";
808
858
  }>;
859
+ status: z.ZodEnum<{
860
+ ACTIVE: "ACTIVE";
861
+ DELETED: "DELETED";
862
+ DRAFT: "DRAFT";
863
+ ARCHIVED: "ARCHIVED";
864
+ }>;
809
865
  gigType: z.ZodOptional<z.ZodEnum<{
810
866
  "One Time": "One Time";
811
867
  Recurring: "Recurring";
@@ -827,19 +883,24 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
827
883
  jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
828
884
  [x: string]: string;
829
885
  }>>>;
830
- isBookmarked: z.ZodBoolean;
831
886
  createdAt: z.ZodDate;
832
- version: z.ZodInt;
887
+ version: z.ZodNumber;
833
888
  updatedAt: z.ZodDate;
834
- id: z.ZodCUID2;
835
- jobType: z.ZodLiteral<"GIG">;
889
+ brandName: z.ZodString;
890
+ isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
891
+ brandImgUrl: z.ZodOptional<z.ZodURL>;
892
+ isBookmarked: z.ZodBoolean;
836
893
  overview: z.ZodString;
837
- deliverables: 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
+ }>;
838
900
  employeeRequirements: z.ZodOptional<z.ZodString>;
839
- aboutCompany: z.ZodOptional<z.ZodString>;
840
901
  requiredSkills: z.ZodArray<z.ZodString>;
841
- wagesMin: z.ZodOptional<z.ZodNumber>;
842
- wagesMax: z.ZodOptional<z.ZodNumber>;
902
+ wagesMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
903
+ wagesMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
843
904
  wagesCurrency: z.ZodOptional<z.ZodEnum<{
844
905
  "USD (United States Dollar)": "USD (United States Dollar)";
845
906
  "EUR (Euro)": "EUR (Euro)";
@@ -859,22 +920,16 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
859
920
  Monthly: "Monthly";
860
921
  "Project Based": "Project Based";
861
922
  }>>;
923
+ keyResponsibilities: z.ZodString;
924
+ companyBenefits: z.ZodOptional<z.ZodString>;
862
925
  }, z.core.$strip>, z.ZodObject<{
863
926
  id: z.ZodCUID2;
864
927
  title: z.ZodString;
865
928
  brandId: z.ZodCUID2;
866
- brandName: z.ZodString;
867
- brandImgUrl: z.ZodOptional<z.ZodURL>;
868
929
  jobType: z.ZodEnum<{
869
930
  GIG: "GIG";
870
931
  ROLE: "ROLE";
871
932
  }>;
872
- status: z.ZodEnum<{
873
- ACTIVE: "ACTIVE";
874
- DELETED: "DELETED";
875
- DRAFT: "DRAFT";
876
- ARCHIVED: "ARCHIVED";
877
- }>;
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.ZodInt;
972
+ version: z.ZodNumber;
913
973
  updatedAt: z.ZodDate;
914
- }, z.core.$strip>, z.ZodObject<{
915
- title: z.ZodString;
916
- brandId: z.ZodCUID2;
917
974
  brandName: z.ZodString;
975
+ isApplied: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
918
976
  brandImgUrl: z.ZodOptional<z.ZodURL>;
919
- status: z.ZodEnum<{
920
- ACTIVE: "ACTIVE";
921
- DELETED: "DELETED";
922
- DRAFT: "DRAFT";
923
- ARCHIVED: "ARCHIVED";
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;
990
+ title: z.ZodString;
991
+ brandId: z.ZodCUID2;
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.ZodInt;
1035
+ version: z.ZodNumber;
960
1036
  updatedAt: z.ZodDate;
961
- id: z.ZodCUID2;
962
- jobType: z.ZodLiteral<"ROLE">;
963
- experienceLevel: z.ZodEnum<{
964
- "0-1 year": "0-1 year";
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
- keyResponsibilities: z.ZodString;
971
- requiredSkills: z.ZodArray<z.ZodString>;
1042
+ deliverables: z.ZodString;
972
1043
  employeeRequirements: z.ZodOptional<z.ZodString>;
973
- companyBenefits: z.ZodOptional<z.ZodString>;
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
- noOfJobs: z.ZodNumber;
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
- brandName: z.ZodString;
1023
- brandImgUrl: z.ZodOptional<z.ZodURL>;
1024
- status: z.ZodEnum<{
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.ZodInt;
1114
+ version: z.ZodNumber;
1065
1115
  updatedAt: z.ZodDate;
1066
- id: z.ZodCUID2;
1067
- jobType: z.ZodLiteral<"GIG">;
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
- deliverables: z.ZodString;
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.ZodInt;
1199
+ version: z.ZodNumber;
1192
1200
  updatedAt: z.ZodDate;
1193
- id: z.ZodCUID2;
1194
- jobType: z.ZodLiteral<"ROLE">;
1195
- experienceLevel: z.ZodEnum<{
1196
- "0-1 year": "0-1 year";
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
- total: z.ZodNumber;
1229
- page: z.ZodNumber;
1230
- limit: z.ZodNumber;
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,4 @@ 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>;