@thejob/schema 2.0.1 → 2.0.3

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as yup from 'yup';
2
- import { Maybe, AnyObject, MixedSchema, Reference, InferType, ObjectSchema } from 'yup';
2
+ import { InferType, Maybe, AnyObject, MixedSchema, Reference, ObjectSchema } from 'yup';
3
3
 
4
4
  declare const TermsAcceptedSchema: yup.ObjectSchema<{
5
5
  termsAccepted: NonNullable<boolean | undefined>;
@@ -28,7 +28,46 @@ declare const CompletenessScoreSchema: (minScore?: number) => yup.ObjectSchema<{
28
28
  totalSteps: 0;
29
29
  completedSteps: 0;
30
30
  }, "">;
31
+ /**
32
+ * Tracks a user reference plus when the relation was created (bookmarks,
33
+ * applicants, reports on a job). The v1 `userId` used `.objectId()`; plain
34
+ * `string()` in v2.
35
+ */
36
+ declare const UserIdAndCreatedAtSchema: yup.ObjectSchema<{
37
+ userId: string;
38
+ createdAt: string;
39
+ }, yup.AnyObject, {
40
+ userId: undefined;
41
+ createdAt: undefined;
42
+ }, "">;
43
+ type TUserIdAndCreatedAtSchema = InferType<typeof UserIdAndCreatedAtSchema>;
31
44
 
45
+ /**
46
+ * Common option keys shared across schemas. `Yes`/`No` are used by acknowledge
47
+ * questions; `Skill`/`EducationLevel`/`ExperienceLevel`/etc. tag where a choice
48
+ * question sources its options from. Migrated from schema v1.
49
+ */
50
+ declare enum Common {
51
+ Yes = "yes",
52
+ No = "no",
53
+ DateRangeOption = "date_range_option",
54
+ ExperienceLevel = "experience_level",
55
+ Company = "company",
56
+ EmploymentType = "employment_type",
57
+ WorkMode = "work_mode",
58
+ Location = "location",
59
+ CareerLevel = "career_level",
60
+ Category = "category",
61
+ Designation = "designation",
62
+ EducationLevel = "education_level",
63
+ Language = "language",
64
+ Skill = "skill"
65
+ }
66
+ declare const EMPTY_STRING = "eMpTyStRiNg";
67
+ declare const SYSTEM_DATE_FORMAT = "YYYY-MM-DD";
68
+ declare const DISPLAY_DATE_FORMAT = "LL";
69
+ declare const DISPLAY_DATE_FORMAT_SHORT = "MMMM, YYYY";
70
+ declare const SITEMAP_FORMAT = "YYYY-MM-DDThh:mm:ssZ";
32
71
  declare enum StudyType {
33
72
  FullTime = "full_time",
34
73
  PartTime = "part_time",
@@ -208,6 +247,443 @@ declare const GroupMembershipSchema: yup.ObjectSchema<{
208
247
  updatedAt: undefined;
209
248
  }, "">;
210
249
 
250
+ declare enum JobStatus {
251
+ Published = "published",
252
+ Draft = "draft",
253
+ Deleted = "deleted",
254
+ Closed = "closed",
255
+ Expired = "expired"
256
+ }
257
+ declare const SupportedJobStatuses: JobStatus[];
258
+ declare enum EmploymentType {
259
+ Fulltime = "full_time",
260
+ PartTime = "part_time",
261
+ Temporary = "temporary",
262
+ Contract = "contract",
263
+ Internship = "internship",
264
+ Freelance = "freelance",
265
+ Volunteer = "volunteer",
266
+ PerDiem = "per_diem"
267
+ }
268
+ declare const SupportedEmploymentTypes: EmploymentType[];
269
+ declare enum WorkMode {
270
+ OnSite = "on_site",
271
+ Hybrid = "hybrid",
272
+ Remote = "remote"
273
+ }
274
+ declare const SupportedWorkModes: WorkMode[];
275
+ declare enum CompensationType {
276
+ Hourly = "hourly",
277
+ Weekly = "weekly",
278
+ Monthly = "monthly",
279
+ Yearly = "yearly",
280
+ OneTime = "one-time",
281
+ Other = "other"
282
+ }
283
+ declare const SupportedCompensationTypes: CompensationType[];
284
+ declare enum EmployeeCount {
285
+ _1_2 = "1_2_employees",
286
+ _3_10 = "3_10_employees",
287
+ _11_100 = "11_100_employees",
288
+ _101_1000 = "101_1000_employees",
289
+ _1001_5000 = "1001_5000_employees",
290
+ _5001_10000 = "5001_10000_employees",
291
+ _10001_Plus = "10001_plus_employees"
292
+ }
293
+ declare const SupportedEmployeeCounts: EmployeeCount[];
294
+ declare enum ApplicationReceivePreference {
295
+ Inbox = "inbox",
296
+ Email = "email",
297
+ ExternalWebsite = "external_website"
298
+ }
299
+ declare const SupportedApplicationReceivePreferences: ApplicationReceivePreference[];
300
+
301
+ declare enum QuestionType {
302
+ Input = "input",
303
+ Choice = "choice",
304
+ ReadAndAcknowledge = "readAndAcknowledge"
305
+ }
306
+ declare const SupportedQuestionTypes: QuestionType[];
307
+ declare enum AnswerChoiceType {
308
+ Single = "single",
309
+ Multiple = "multiple"
310
+ }
311
+ declare const SupportedAnswerChoiceTypes: AnswerChoiceType[];
312
+
313
+ declare const ChoiceQuestionSchema: yup.ObjectSchema<{
314
+ label: string | undefined;
315
+ default: boolean;
316
+ title: string;
317
+ type: QuestionType.Choice;
318
+ isOptional: boolean | undefined;
319
+ readonly: boolean | undefined;
320
+ isNew: boolean | undefined;
321
+ } & {
322
+ type: QuestionType.Choice;
323
+ optionsFrom: Common.ExperienceLevel | Common.EducationLevel | Common.Skill | undefined;
324
+ options: string[];
325
+ answerChoiceType: NonNullable<AnswerChoiceType | undefined>;
326
+ preferredAnswer: string | string[] | undefined;
327
+ answers: string | string[] | undefined;
328
+ }, yup.AnyObject, {
329
+ label: undefined;
330
+ default: false;
331
+ title: undefined;
332
+ type: undefined;
333
+ isOptional: undefined;
334
+ readonly: undefined;
335
+ isNew: undefined;
336
+ optionsFrom: undefined;
337
+ options: undefined;
338
+ answerChoiceType: AnswerChoiceType.Single;
339
+ preferredAnswer: undefined;
340
+ answers: undefined;
341
+ }, "">;
342
+ type TChoiceQuestionSchema = InferType<typeof ChoiceQuestionSchema>;
343
+
344
+ declare const InputQuestionSchema: yup.ObjectSchema<{
345
+ label: string | undefined;
346
+ default: boolean;
347
+ title: string;
348
+ type: QuestionType.Input;
349
+ isOptional: boolean | undefined;
350
+ readonly: boolean | undefined;
351
+ isNew: boolean | undefined;
352
+ } & {
353
+ type: QuestionType.Input;
354
+ preferredAnswer: string | undefined;
355
+ answers: string | undefined;
356
+ }, yup.AnyObject, {
357
+ label: undefined;
358
+ default: false;
359
+ title: undefined;
360
+ type: undefined;
361
+ isOptional: undefined;
362
+ readonly: undefined;
363
+ isNew: undefined;
364
+ preferredAnswer: undefined;
365
+ answers: undefined;
366
+ }, "">;
367
+ type TInputQuestionSchema = InferType<typeof InputQuestionSchema>;
368
+
369
+ declare const ReadAndAcknowledgeQuestionSchema: yup.ObjectSchema<{
370
+ label: string | undefined;
371
+ default: boolean;
372
+ title: string;
373
+ type: QuestionType.ReadAndAcknowledge;
374
+ isOptional: boolean | undefined;
375
+ readonly: boolean | undefined;
376
+ isNew: boolean | undefined;
377
+ } & {
378
+ type: QuestionType.ReadAndAcknowledge;
379
+ description: string;
380
+ preferredAnswer: NonNullable<Common.Yes | Common.No | undefined>;
381
+ answers: NonNullable<Common.Yes | Common.No | undefined>;
382
+ }, yup.AnyObject, {
383
+ label: undefined;
384
+ default: false;
385
+ title: undefined;
386
+ type: undefined;
387
+ isOptional: undefined;
388
+ readonly: undefined;
389
+ isNew: undefined;
390
+ description: undefined;
391
+ preferredAnswer: undefined;
392
+ answers: undefined;
393
+ }, "">;
394
+ type TReadAndAcknowledgeQuestionSchema = InferType<typeof ReadAndAcknowledgeQuestionSchema>;
395
+
396
+ /** Base fields shared by every question variant. The concrete variants concat
397
+ * their own `type`-narrowed fields onto this (see input/choice/acknowledge). */
398
+ declare const QuestionSchema: yup.ObjectSchema<{
399
+ label: string | undefined;
400
+ default: boolean;
401
+ title: string;
402
+ type: NonNullable<QuestionType | undefined>;
403
+ isOptional: boolean | undefined;
404
+ readonly: boolean | undefined;
405
+ isNew: boolean | undefined;
406
+ }, yup.AnyObject, {
407
+ label: undefined;
408
+ default: false;
409
+ title: undefined;
410
+ type: undefined;
411
+ isOptional: undefined;
412
+ readonly: undefined;
413
+ isNew: undefined;
414
+ }, "">;
415
+ type TQuestionSchema = TInputQuestionSchema | TChoiceQuestionSchema | TReadAndAcknowledgeQuestionSchema;
416
+
417
+ /** Resolve the concrete question schema for a question's `type`. Drives the
418
+ * `lazy` validation of the job questionnaire. */
419
+ declare const getSchemaByQuestion: (type: QuestionType) => ObjectSchema<TQuestionSchema>;
420
+
421
+ declare const JobSchema: ObjectSchema<{
422
+ uniqueId: string | undefined;
423
+ headline: string;
424
+ slug: string;
425
+ applicationReceivePreference: NonNullable<ApplicationReceivePreference | undefined>;
426
+ externalApplyLink: string | undefined;
427
+ company: {
428
+ slug?: string | undefined;
429
+ logo?: {
430
+ dark?: string | null | undefined;
431
+ light?: string | undefined;
432
+ } | null | undefined;
433
+ type: PageType;
434
+ name: string;
435
+ };
436
+ designation: string | null | undefined;
437
+ employmentType: string;
438
+ workMode: string;
439
+ skills: {
440
+ name: string;
441
+ logo: {
442
+ dark?: string | null | undefined;
443
+ light: string;
444
+ } | null;
445
+ }[] | null | undefined;
446
+ bookmarks: {
447
+ createdAt: string;
448
+ userId: string;
449
+ }[] | undefined;
450
+ embedding: {
451
+ vector?: number[] | undefined;
452
+ model?: string | undefined;
453
+ } | null | undefined;
454
+ applicants: {
455
+ createdAt: string;
456
+ userId: string;
457
+ }[] | undefined;
458
+ applicantCount: number | undefined;
459
+ externalApplicationLinkClickCount: number | undefined;
460
+ description: string;
461
+ descriptionMarkdown: string;
462
+ descriptionHTML: string | undefined;
463
+ locations: {
464
+ placeId?: string | null | undefined;
465
+ state?: string | null | undefined;
466
+ stateCode?: string | null | undefined;
467
+ city?: string | null | undefined;
468
+ address?: string | null | undefined;
469
+ country: string;
470
+ countryCode: string;
471
+ geo: {
472
+ type: "Point";
473
+ coordinates: number[];
474
+ };
475
+ }[];
476
+ educationLevel: (EducationLevel | undefined)[];
477
+ validity: {
478
+ [x: string]: string | boolean;
479
+ [x: number]: string | boolean;
480
+ };
481
+ lastExpiryCheckAt: number | null | undefined;
482
+ experienceLevel: ExperienceLevel | null | undefined;
483
+ contactEmail: string | null | undefined;
484
+ workingHoursPerWeek: number | null | undefined;
485
+ tags: any[] | undefined;
486
+ questionnaire: ({
487
+ label?: string | undefined;
488
+ isNew?: boolean | undefined;
489
+ isOptional?: boolean | undefined;
490
+ readonly?: boolean | undefined;
491
+ preferredAnswer?: string | undefined;
492
+ answers?: string | undefined;
493
+ type: QuestionType.Input;
494
+ default: boolean;
495
+ title: string;
496
+ } | {
497
+ label?: string | undefined;
498
+ isNew?: boolean | undefined;
499
+ isOptional?: boolean | undefined;
500
+ readonly?: boolean | undefined;
501
+ preferredAnswer?: string | undefined;
502
+ type: QuestionType.Input;
503
+ default: boolean;
504
+ title: string;
505
+ } | {
506
+ label?: string | undefined;
507
+ isNew?: boolean | undefined;
508
+ isOptional?: boolean | undefined;
509
+ readonly?: boolean | undefined;
510
+ optionsFrom?: Common.ExperienceLevel | Common.EducationLevel | Common.Skill | undefined;
511
+ preferredAnswer?: string | string[] | undefined;
512
+ answers?: string | string[] | undefined;
513
+ type: QuestionType.Choice;
514
+ default: boolean;
515
+ title: string;
516
+ options: string[];
517
+ answerChoiceType: NonNullable<AnswerChoiceType | undefined>;
518
+ } | {
519
+ label?: string | undefined;
520
+ isNew?: boolean | undefined;
521
+ isOptional?: boolean | undefined;
522
+ readonly?: boolean | undefined;
523
+ optionsFrom?: Common.ExperienceLevel | Common.EducationLevel | Common.Skill | undefined;
524
+ preferredAnswer?: string | string[] | undefined;
525
+ type: QuestionType.Choice;
526
+ default: boolean;
527
+ title: string;
528
+ options: string[];
529
+ answerChoiceType: NonNullable<AnswerChoiceType | undefined>;
530
+ } | {
531
+ label?: string | undefined;
532
+ isNew?: boolean | undefined;
533
+ isOptional?: boolean | undefined;
534
+ readonly?: boolean | undefined;
535
+ type: QuestionType.ReadAndAcknowledge;
536
+ default: boolean;
537
+ description: string;
538
+ title: string;
539
+ preferredAnswer: NonNullable<Common.Yes | Common.No | undefined>;
540
+ answers: NonNullable<Common.Yes | Common.No | undefined>;
541
+ } | {
542
+ label?: string | undefined;
543
+ isNew?: boolean | undefined;
544
+ isOptional?: boolean | undefined;
545
+ readonly?: boolean | undefined;
546
+ type: QuestionType.ReadAndAcknowledge;
547
+ default: boolean;
548
+ description: string;
549
+ title: string;
550
+ preferredAnswer: NonNullable<Common.Yes | Common.No | undefined>;
551
+ })[] | undefined;
552
+ status: NonNullable<JobStatus | undefined>;
553
+ seoTags: {
554
+ description?: string | undefined;
555
+ keywords?: (string | undefined)[] | undefined;
556
+ } | null | undefined;
557
+ jdSummary: string | undefined;
558
+ canCreateAlert: boolean | undefined;
559
+ canDirectApply: boolean | undefined;
560
+ hasApplied: boolean | undefined;
561
+ isOwner: boolean | undefined;
562
+ hasBookmarked: boolean | undefined;
563
+ hasReported: boolean | undefined;
564
+ ratePerHour: number | undefined;
565
+ isPromoted: boolean | undefined;
566
+ salaryRange: {
567
+ min?: number | null | undefined;
568
+ max?: number | null | undefined;
569
+ compensationType?: CompensationType | null | undefined;
570
+ currency: string;
571
+ isNegotiable: boolean | null;
572
+ } | null | undefined;
573
+ reports: {
574
+ createdAt: string;
575
+ userId: string;
576
+ }[] | undefined;
577
+ category: string | null | undefined;
578
+ industry: string | null | undefined;
579
+ subCategories: string[] | null | undefined;
580
+ termsAccepted: NonNullable<boolean | undefined>;
581
+ isFeatured: boolean;
582
+ featuredMarkets: string[];
583
+ } & {
584
+ shortId: string;
585
+ createdBy: string;
586
+ createdAt: number;
587
+ updatedBy: string | undefined;
588
+ updatedAt: number | undefined;
589
+ }, yup.AnyObject, {
590
+ uniqueId: undefined;
591
+ headline: undefined;
592
+ slug: undefined;
593
+ applicationReceivePreference: undefined;
594
+ externalApplyLink: undefined;
595
+ company: {
596
+ id: undefined;
597
+ shortId: undefined;
598
+ name: undefined;
599
+ headline: undefined;
600
+ about: undefined;
601
+ website: undefined;
602
+ slug: undefined;
603
+ employeeCount: undefined;
604
+ yearFounded: undefined;
605
+ type: undefined;
606
+ locations: "";
607
+ contacts: "";
608
+ verified: undefined;
609
+ logo: null;
610
+ categories: "";
611
+ socialAccounts: "";
612
+ isOwner: undefined;
613
+ isFeatured: false;
614
+ featuredMarkets: never[];
615
+ status: undefined;
616
+ followersCount: undefined;
617
+ equalOpportunityEmployer: undefined;
618
+ perksAndBenefits: "";
619
+ createdBy: undefined;
620
+ createdAt: undefined;
621
+ updatedBy: undefined;
622
+ updatedAt: undefined;
623
+ };
624
+ designation: undefined;
625
+ employmentType: undefined;
626
+ workMode: undefined;
627
+ skills: "";
628
+ bookmarks: "";
629
+ embedding: {
630
+ vector: undefined;
631
+ model: undefined;
632
+ };
633
+ applicants: "";
634
+ applicantCount: undefined;
635
+ externalApplicationLinkClickCount: undefined;
636
+ description: undefined;
637
+ descriptionMarkdown: undefined;
638
+ descriptionHTML: undefined;
639
+ locations: never[];
640
+ educationLevel: undefined;
641
+ validity: {
642
+ [x: string]: string | false;
643
+ isActive: false;
644
+ };
645
+ lastExpiryCheckAt: undefined;
646
+ experienceLevel: undefined;
647
+ contactEmail: undefined;
648
+ workingHoursPerWeek: undefined;
649
+ tags: undefined;
650
+ questionnaire: "";
651
+ status: JobStatus.Draft;
652
+ seoTags: {
653
+ description: undefined;
654
+ keywords: "";
655
+ };
656
+ jdSummary: undefined;
657
+ canCreateAlert: undefined;
658
+ canDirectApply: undefined;
659
+ hasApplied: undefined;
660
+ isOwner: undefined;
661
+ hasBookmarked: undefined;
662
+ hasReported: undefined;
663
+ ratePerHour: undefined;
664
+ isPromoted: undefined;
665
+ salaryRange: {
666
+ currency: "USD";
667
+ min: undefined;
668
+ max: undefined;
669
+ compensationType: undefined;
670
+ isNegotiable: true;
671
+ };
672
+ reports: "";
673
+ category: undefined;
674
+ industry: undefined;
675
+ subCategories: "";
676
+ termsAccepted: undefined;
677
+ isFeatured: false;
678
+ featuredMarkets: never[];
679
+ shortId: undefined;
680
+ createdBy: undefined;
681
+ createdAt: undefined;
682
+ updatedBy: undefined;
683
+ updatedAt: undefined;
684
+ }, "">;
685
+ type TJobSchema = InferType<typeof JobSchema>;
686
+
211
687
  declare const LocationSchema: yup.ObjectSchema<{
212
688
  placeId: string | null | undefined;
213
689
  country: string;
@@ -568,11 +1044,28 @@ declare const UserSchema: yup.ObjectSchema<{
568
1044
  type: PageType;
569
1045
  name: string;
570
1046
  };
1047
+ location: {
1048
+ placeId?: string | null | undefined;
1049
+ state?: string | null | undefined;
1050
+ stateCode?: string | null | undefined;
1051
+ city?: string | null | undefined;
1052
+ address?: string | null | undefined;
1053
+ country: string;
1054
+ countryCode: string;
1055
+ geo: {
1056
+ type: "Point";
1057
+ coordinates: number[];
1058
+ };
1059
+ };
571
1060
  designation: string;
572
1061
  duration: {
573
1062
  [x: string]: string | boolean;
574
1063
  [x: number]: string | boolean;
575
1064
  };
1065
+ isRemote: boolean;
1066
+ }[];
1067
+ educations: {
1068
+ description?: string | undefined;
576
1069
  location: {
577
1070
  placeId?: string | null | undefined;
578
1071
  state?: string | null | undefined;
@@ -586,10 +1079,6 @@ declare const UserSchema: yup.ObjectSchema<{
586
1079
  coordinates: number[];
587
1080
  };
588
1081
  };
589
- isRemote: boolean;
590
- }[];
591
- educations: {
592
- description?: string | undefined;
593
1082
  institute: {
594
1083
  slug?: string | undefined;
595
1084
  logo?: {
@@ -604,19 +1093,6 @@ declare const UserSchema: yup.ObjectSchema<{
604
1093
  endDate: string | null;
605
1094
  isActive: boolean;
606
1095
  };
607
- location: {
608
- placeId?: string | null | undefined;
609
- state?: string | null | undefined;
610
- stateCode?: string | null | undefined;
611
- city?: string | null | undefined;
612
- address?: string | null | undefined;
613
- country: string;
614
- countryCode: string;
615
- geo: {
616
- type: "Point";
617
- coordinates: number[];
618
- };
619
- };
620
1096
  course: string;
621
1097
  fieldOfStudy: string;
622
1098
  isDistanceLearning: boolean;
@@ -723,12 +1199,26 @@ declare const UserSchema: yup.ObjectSchema<{
723
1199
  }[];
724
1200
  onboardingCompletedAt: Date | null | undefined;
725
1201
  pendingPrefill: {
1202
+ location?: {
1203
+ placeId?: string | null | undefined;
1204
+ state?: string | null | undefined;
1205
+ stateCode?: string | null | undefined;
1206
+ city?: string | null | undefined;
1207
+ address?: string | null | undefined;
1208
+ country: string;
1209
+ countryCode: string;
1210
+ geo: {
1211
+ type: "Point";
1212
+ coordinates: number[];
1213
+ };
1214
+ } | undefined;
726
1215
  headline?: string | undefined;
727
1216
  socialAccounts?: {
728
1217
  type: NonNullable<SocialAccount | undefined>;
729
1218
  isNew: boolean;
730
1219
  url: string;
731
1220
  }[] | undefined;
1221
+ experienceLevel?: ExperienceLevel | undefined;
732
1222
  workExperiences?: {
733
1223
  description?: string | undefined;
734
1224
  company: {
@@ -740,11 +1230,28 @@ declare const UserSchema: yup.ObjectSchema<{
740
1230
  type: PageType;
741
1231
  name: string;
742
1232
  };
1233
+ location: {
1234
+ placeId?: string | null | undefined;
1235
+ state?: string | null | undefined;
1236
+ stateCode?: string | null | undefined;
1237
+ city?: string | null | undefined;
1238
+ address?: string | null | undefined;
1239
+ country: string;
1240
+ countryCode: string;
1241
+ geo: {
1242
+ type: "Point";
1243
+ coordinates: number[];
1244
+ };
1245
+ };
743
1246
  designation: string;
744
1247
  duration: {
745
1248
  [x: string]: string | boolean;
746
1249
  [x: number]: string | boolean;
747
1250
  };
1251
+ isRemote: boolean;
1252
+ }[] | undefined;
1253
+ educations?: {
1254
+ description?: string | undefined;
748
1255
  location: {
749
1256
  placeId?: string | null | undefined;
750
1257
  state?: string | null | undefined;
@@ -758,10 +1265,6 @@ declare const UserSchema: yup.ObjectSchema<{
758
1265
  coordinates: number[];
759
1266
  };
760
1267
  };
761
- isRemote: boolean;
762
- }[] | undefined;
763
- educations?: {
764
- description?: string | undefined;
765
1268
  institute: {
766
1269
  slug?: string | undefined;
767
1270
  logo?: {
@@ -776,40 +1279,13 @@ declare const UserSchema: yup.ObjectSchema<{
776
1279
  endDate: string | null;
777
1280
  isActive: boolean;
778
1281
  };
779
- location: {
780
- placeId?: string | null | undefined;
781
- state?: string | null | undefined;
782
- stateCode?: string | null | undefined;
783
- city?: string | null | undefined;
784
- address?: string | null | undefined;
785
- country: string;
786
- countryCode: string;
787
- geo: {
788
- type: "Point";
789
- coordinates: number[];
790
- };
791
- };
792
1282
  course: string;
793
1283
  fieldOfStudy: string;
794
1284
  isDistanceLearning: boolean;
795
1285
  studyType: NonNullable<StudyType | undefined>;
796
1286
  }[] | undefined;
797
- location?: {
798
- placeId?: string | null | undefined;
799
- state?: string | null | undefined;
800
- stateCode?: string | null | undefined;
801
- city?: string | null | undefined;
802
- address?: string | null | undefined;
803
- country: string;
804
- countryCode: string;
805
- geo: {
806
- type: "Point";
807
- coordinates: number[];
808
- };
809
- } | undefined;
810
1287
  aboutMe?: string | undefined;
811
1288
  mobile?: string | undefined;
812
- experienceLevel?: ExperienceLevel | undefined;
813
1289
  } | null | undefined;
814
1290
  recruiterProfile: {
815
1291
  hiringFor: {
@@ -1237,12 +1713,26 @@ declare const UserJobPreferencesSchema: yup.ObjectSchema<{
1237
1713
  }[];
1238
1714
  onboardingCompletedAt: Date | null | undefined;
1239
1715
  pendingPrefill: {
1716
+ location?: {
1717
+ placeId?: string | null | undefined;
1718
+ state?: string | null | undefined;
1719
+ stateCode?: string | null | undefined;
1720
+ city?: string | null | undefined;
1721
+ address?: string | null | undefined;
1722
+ country: string;
1723
+ countryCode: string;
1724
+ geo: {
1725
+ type: "Point";
1726
+ coordinates: number[];
1727
+ };
1728
+ } | undefined;
1240
1729
  headline?: string | undefined;
1241
1730
  socialAccounts?: {
1242
1731
  type: NonNullable<SocialAccount | undefined>;
1243
1732
  isNew: boolean;
1244
1733
  url: string;
1245
1734
  }[] | undefined;
1735
+ experienceLevel?: ExperienceLevel | undefined;
1246
1736
  workExperiences?: {
1247
1737
  description?: string | undefined;
1248
1738
  company: {
@@ -1254,11 +1744,28 @@ declare const UserJobPreferencesSchema: yup.ObjectSchema<{
1254
1744
  type: PageType;
1255
1745
  name: string;
1256
1746
  };
1747
+ location: {
1748
+ placeId?: string | null | undefined;
1749
+ state?: string | null | undefined;
1750
+ stateCode?: string | null | undefined;
1751
+ city?: string | null | undefined;
1752
+ address?: string | null | undefined;
1753
+ country: string;
1754
+ countryCode: string;
1755
+ geo: {
1756
+ type: "Point";
1757
+ coordinates: number[];
1758
+ };
1759
+ };
1257
1760
  designation: string;
1258
1761
  duration: {
1259
1762
  [x: string]: string | boolean;
1260
1763
  [x: number]: string | boolean;
1261
1764
  };
1765
+ isRemote: boolean;
1766
+ }[] | undefined;
1767
+ educations?: {
1768
+ description?: string | undefined;
1262
1769
  location: {
1263
1770
  placeId?: string | null | undefined;
1264
1771
  state?: string | null | undefined;
@@ -1272,10 +1779,6 @@ declare const UserJobPreferencesSchema: yup.ObjectSchema<{
1272
1779
  coordinates: number[];
1273
1780
  };
1274
1781
  };
1275
- isRemote: boolean;
1276
- }[] | undefined;
1277
- educations?: {
1278
- description?: string | undefined;
1279
1782
  institute: {
1280
1783
  slug?: string | undefined;
1281
1784
  logo?: {
@@ -1290,40 +1793,13 @@ declare const UserJobPreferencesSchema: yup.ObjectSchema<{
1290
1793
  endDate: string | null;
1291
1794
  isActive: boolean;
1292
1795
  };
1293
- location: {
1294
- placeId?: string | null | undefined;
1295
- state?: string | null | undefined;
1296
- stateCode?: string | null | undefined;
1297
- city?: string | null | undefined;
1298
- address?: string | null | undefined;
1299
- country: string;
1300
- countryCode: string;
1301
- geo: {
1302
- type: "Point";
1303
- coordinates: number[];
1304
- };
1305
- };
1306
1796
  course: string;
1307
1797
  fieldOfStudy: string;
1308
1798
  isDistanceLearning: boolean;
1309
1799
  studyType: NonNullable<StudyType | undefined>;
1310
1800
  }[] | undefined;
1311
- location?: {
1312
- placeId?: string | null | undefined;
1313
- state?: string | null | undefined;
1314
- stateCode?: string | null | undefined;
1315
- city?: string | null | undefined;
1316
- address?: string | null | undefined;
1317
- country: string;
1318
- countryCode: string;
1319
- geo: {
1320
- type: "Point";
1321
- coordinates: number[];
1322
- };
1323
- } | undefined;
1324
1801
  aboutMe?: string | undefined;
1325
1802
  mobile?: string | undefined;
1326
- experienceLevel?: ExperienceLevel | undefined;
1327
1803
  } | null | undefined;
1328
1804
  }, yup.AnyObject, {
1329
1805
  openToWork: false;
@@ -1625,6 +2101,11 @@ declare const StudentCompletenessSchema: yup.ObjectSchema<{
1625
2101
  totalSteps: number;
1626
2102
  completedSteps: number;
1627
2103
  };
2104
+ skills: {
2105
+ score: number;
2106
+ totalSteps: number;
2107
+ completedSteps: number;
2108
+ };
1628
2109
  overview: {
1629
2110
  score: number;
1630
2111
  totalSteps: number;
@@ -1650,11 +2131,6 @@ declare const StudentCompletenessSchema: yup.ObjectSchema<{
1650
2131
  totalSteps: number;
1651
2132
  completedSteps: number;
1652
2133
  };
1653
- skills: {
1654
- score: number;
1655
- totalSteps: number;
1656
- completedSteps: number;
1657
- };
1658
2134
  languages: {
1659
2135
  score: number;
1660
2136
  totalSteps: number;
@@ -1733,4 +2209,4 @@ declare const StudentCompletenessSchema: yup.ObjectSchema<{
1733
2209
  };
1734
2210
  }, "">;
1735
2211
 
1736
- export { CompletenessScoreSchema, ContactTypes, CoordinatorPageLinkSchema, DateStringSchema, DbDefaultSchema, DefaultPaginatedResponse, DefaultPaginationOptions, DefaultUserRoles, DurationSchema, EducationLevel, EducationSchema, ExperienceLevel, GeneraDetailFields, GroupManagedBy, GroupMembershipSchema, GroupMembershipStatus, GroupSchema, GroupStatus, GroupTranslationSchema, GroupVisibility, JobSearchUrgency, LocationSchema, MIN_SALARY_LOWER_BOUND, MIN_SALARY_UPPER_BOUND, PageSchema, PageStatus, PageType, type PaginatedResponse, PaginationSchema, ProficiencyLevel, RecruiterPageLinkSchema, ReferralSource, ReportReason, ReportSchema, ResourceType, SkillSchema, SocialAccount, SocialAccountSchema, StudentCompletenessSchema, StudyType, SupportedContactTypes, SupportedEducationLevels, SupportedExperienceLevels, SupportedJobSearchUrgencies, SupportedPageStatuses, SupportedPageTypes, SupportedProficiencyLevels, SupportedReferralSources, SupportedReportReasons, SupportedResourceTypes, SupportedSalaryCurrencies, type SupportedSalaryCurrency, SupportedSocialAccounts, SupportedStudyTypes, SupportedUserProfileVisibilities, SupportedUserRoles, SupportedUserStatuses, type TDurationSchema, TermsAcceptedSchema, UserAdditionalInfoSchema, UserCertificationSchema, UserCompletenessSchema, UserCoordinatorProfileSchema, UserDetailType, UserGeneralDetailSchema, UserInterestSchema, UserJobPreferencesSchema, UserLanguageSchema, type UserProfileOverview, UserProfileVisibility, UserProjectSchema, UserRecruiterProfileSchema, UserRole, UserSchema, UserSkillSchema, UserStatus, WorkExperienceSchema, dateString };
2212
+ export { AnswerChoiceType, ApplicationReceivePreference, ChoiceQuestionSchema, Common, CompensationType, CompletenessScoreSchema, ContactTypes, CoordinatorPageLinkSchema, DISPLAY_DATE_FORMAT, DISPLAY_DATE_FORMAT_SHORT, DateStringSchema, DbDefaultSchema, DefaultPaginatedResponse, DefaultPaginationOptions, DefaultUserRoles, DurationSchema, EMPTY_STRING, EducationLevel, EducationSchema, EmployeeCount, EmploymentType, ExperienceLevel, GeneraDetailFields, GroupManagedBy, GroupMembershipSchema, GroupMembershipStatus, GroupSchema, GroupStatus, GroupTranslationSchema, GroupVisibility, InputQuestionSchema, JobSchema, JobSearchUrgency, JobStatus, LocationSchema, MIN_SALARY_LOWER_BOUND, MIN_SALARY_UPPER_BOUND, PageSchema, PageStatus, PageType, type PaginatedResponse, PaginationSchema, ProficiencyLevel, QuestionSchema, QuestionType, ReadAndAcknowledgeQuestionSchema, RecruiterPageLinkSchema, ReferralSource, ReportReason, ReportSchema, ResourceType, SITEMAP_FORMAT, SYSTEM_DATE_FORMAT, SkillSchema, SocialAccount, SocialAccountSchema, StudentCompletenessSchema, StudyType, SupportedAnswerChoiceTypes, SupportedApplicationReceivePreferences, SupportedCompensationTypes, SupportedContactTypes, SupportedEducationLevels, SupportedEmployeeCounts, SupportedEmploymentTypes, SupportedExperienceLevels, SupportedJobSearchUrgencies, SupportedJobStatuses, SupportedPageStatuses, SupportedPageTypes, SupportedProficiencyLevels, SupportedQuestionTypes, SupportedReferralSources, SupportedReportReasons, SupportedResourceTypes, SupportedSalaryCurrencies, type SupportedSalaryCurrency, SupportedSocialAccounts, SupportedStudyTypes, SupportedUserProfileVisibilities, SupportedUserRoles, SupportedUserStatuses, SupportedWorkModes, type TChoiceQuestionSchema, type TDurationSchema, type TInputQuestionSchema, type TJobSchema, type TQuestionSchema, type TReadAndAcknowledgeQuestionSchema, type TUserIdAndCreatedAtSchema, TermsAcceptedSchema, UserAdditionalInfoSchema, UserCertificationSchema, UserCompletenessSchema, UserCoordinatorProfileSchema, UserDetailType, UserGeneralDetailSchema, UserIdAndCreatedAtSchema, UserInterestSchema, UserJobPreferencesSchema, UserLanguageSchema, type UserProfileOverview, UserProfileVisibility, UserProjectSchema, UserRecruiterProfileSchema, UserRole, UserSchema, UserSkillSchema, UserStatus, WorkExperienceSchema, WorkMode, dateString, getSchemaByQuestion };