@thejob/schema 2.0.1 → 2.0.2
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/.claude/scheduled_tasks.lock +1 -0
- package/dist/index.cjs +504 -141
- package/dist/index.d.cts +560 -86
- package/dist/index.d.ts +560 -86
- package/dist/index.js +472 -138
- package/package.json +1 -1
- package/src/common/common.constant.ts +30 -0
- package/src/common/common.schema.ts +14 -0
- package/src/index.ts +11 -0
- package/src/job/job.constant.ts +66 -0
- package/src/job/job.schema.ts +245 -0
- package/src/question/choice-question.schema.ts +96 -0
- package/src/question/index.ts +6 -0
- package/src/question/input-question.schema.ts +24 -0
- package/src/question/question.constant.ts +14 -0
- package/src/question/question.schema.ts +22 -0
- package/src/question/question.utils.ts +23 -0
- package/src/question/read-and-acknowledge.schema.ts +25 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
|
-
import { Maybe, AnyObject, MixedSchema, Reference,
|
|
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,441 @@ 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
|
+
experienceLevel: ExperienceLevel | null | undefined;
|
|
482
|
+
contactEmail: string | null | undefined;
|
|
483
|
+
workingHoursPerWeek: number | null | undefined;
|
|
484
|
+
tags: any[] | undefined;
|
|
485
|
+
questionnaire: ({
|
|
486
|
+
label?: string | undefined;
|
|
487
|
+
isNew?: boolean | undefined;
|
|
488
|
+
isOptional?: boolean | undefined;
|
|
489
|
+
readonly?: boolean | undefined;
|
|
490
|
+
preferredAnswer?: string | undefined;
|
|
491
|
+
answers?: string | undefined;
|
|
492
|
+
type: QuestionType.Input;
|
|
493
|
+
default: boolean;
|
|
494
|
+
title: string;
|
|
495
|
+
} | {
|
|
496
|
+
label?: string | undefined;
|
|
497
|
+
isNew?: boolean | undefined;
|
|
498
|
+
isOptional?: boolean | undefined;
|
|
499
|
+
readonly?: boolean | undefined;
|
|
500
|
+
preferredAnswer?: string | undefined;
|
|
501
|
+
type: QuestionType.Input;
|
|
502
|
+
default: boolean;
|
|
503
|
+
title: string;
|
|
504
|
+
} | {
|
|
505
|
+
label?: string | undefined;
|
|
506
|
+
isNew?: boolean | undefined;
|
|
507
|
+
isOptional?: boolean | undefined;
|
|
508
|
+
readonly?: boolean | undefined;
|
|
509
|
+
optionsFrom?: Common.ExperienceLevel | Common.EducationLevel | Common.Skill | undefined;
|
|
510
|
+
preferredAnswer?: string | string[] | undefined;
|
|
511
|
+
answers?: string | string[] | undefined;
|
|
512
|
+
type: QuestionType.Choice;
|
|
513
|
+
default: boolean;
|
|
514
|
+
title: string;
|
|
515
|
+
options: string[];
|
|
516
|
+
answerChoiceType: NonNullable<AnswerChoiceType | undefined>;
|
|
517
|
+
} | {
|
|
518
|
+
label?: string | undefined;
|
|
519
|
+
isNew?: boolean | undefined;
|
|
520
|
+
isOptional?: boolean | undefined;
|
|
521
|
+
readonly?: boolean | undefined;
|
|
522
|
+
optionsFrom?: Common.ExperienceLevel | Common.EducationLevel | Common.Skill | undefined;
|
|
523
|
+
preferredAnswer?: string | string[] | undefined;
|
|
524
|
+
type: QuestionType.Choice;
|
|
525
|
+
default: boolean;
|
|
526
|
+
title: string;
|
|
527
|
+
options: string[];
|
|
528
|
+
answerChoiceType: NonNullable<AnswerChoiceType | undefined>;
|
|
529
|
+
} | {
|
|
530
|
+
label?: string | undefined;
|
|
531
|
+
isNew?: boolean | undefined;
|
|
532
|
+
isOptional?: boolean | undefined;
|
|
533
|
+
readonly?: boolean | undefined;
|
|
534
|
+
type: QuestionType.ReadAndAcknowledge;
|
|
535
|
+
default: boolean;
|
|
536
|
+
description: string;
|
|
537
|
+
title: string;
|
|
538
|
+
preferredAnswer: NonNullable<Common.Yes | Common.No | undefined>;
|
|
539
|
+
answers: NonNullable<Common.Yes | Common.No | undefined>;
|
|
540
|
+
} | {
|
|
541
|
+
label?: string | undefined;
|
|
542
|
+
isNew?: boolean | undefined;
|
|
543
|
+
isOptional?: boolean | undefined;
|
|
544
|
+
readonly?: boolean | undefined;
|
|
545
|
+
type: QuestionType.ReadAndAcknowledge;
|
|
546
|
+
default: boolean;
|
|
547
|
+
description: string;
|
|
548
|
+
title: string;
|
|
549
|
+
preferredAnswer: NonNullable<Common.Yes | Common.No | undefined>;
|
|
550
|
+
})[] | undefined;
|
|
551
|
+
status: NonNullable<JobStatus | undefined>;
|
|
552
|
+
seoTags: {
|
|
553
|
+
description?: string | undefined;
|
|
554
|
+
keywords?: (string | undefined)[] | undefined;
|
|
555
|
+
} | null | undefined;
|
|
556
|
+
jdSummary: string | undefined;
|
|
557
|
+
canCreateAlert: boolean | undefined;
|
|
558
|
+
canDirectApply: boolean | undefined;
|
|
559
|
+
hasApplied: boolean | undefined;
|
|
560
|
+
isOwner: boolean | undefined;
|
|
561
|
+
hasBookmarked: boolean | undefined;
|
|
562
|
+
hasReported: boolean | undefined;
|
|
563
|
+
ratePerHour: number | undefined;
|
|
564
|
+
isPromoted: boolean | undefined;
|
|
565
|
+
salaryRange: {
|
|
566
|
+
min?: number | null | undefined;
|
|
567
|
+
max?: number | null | undefined;
|
|
568
|
+
compensationType?: CompensationType | null | undefined;
|
|
569
|
+
currency: string;
|
|
570
|
+
isNegotiable: boolean | null;
|
|
571
|
+
} | null | undefined;
|
|
572
|
+
reports: {
|
|
573
|
+
createdAt: string;
|
|
574
|
+
userId: string;
|
|
575
|
+
}[] | undefined;
|
|
576
|
+
category: string | null | undefined;
|
|
577
|
+
industry: string | null | undefined;
|
|
578
|
+
subCategories: string[] | null | undefined;
|
|
579
|
+
termsAccepted: NonNullable<boolean | undefined>;
|
|
580
|
+
isFeatured: boolean;
|
|
581
|
+
featuredMarkets: string[];
|
|
582
|
+
} & {
|
|
583
|
+
shortId: string;
|
|
584
|
+
createdBy: string;
|
|
585
|
+
createdAt: number;
|
|
586
|
+
updatedBy: string | undefined;
|
|
587
|
+
updatedAt: number | undefined;
|
|
588
|
+
}, yup.AnyObject, {
|
|
589
|
+
uniqueId: undefined;
|
|
590
|
+
headline: undefined;
|
|
591
|
+
slug: undefined;
|
|
592
|
+
applicationReceivePreference: undefined;
|
|
593
|
+
externalApplyLink: undefined;
|
|
594
|
+
company: {
|
|
595
|
+
id: undefined;
|
|
596
|
+
shortId: undefined;
|
|
597
|
+
name: undefined;
|
|
598
|
+
headline: undefined;
|
|
599
|
+
about: undefined;
|
|
600
|
+
website: undefined;
|
|
601
|
+
slug: undefined;
|
|
602
|
+
employeeCount: undefined;
|
|
603
|
+
yearFounded: undefined;
|
|
604
|
+
type: undefined;
|
|
605
|
+
locations: "";
|
|
606
|
+
contacts: "";
|
|
607
|
+
verified: undefined;
|
|
608
|
+
logo: null;
|
|
609
|
+
categories: "";
|
|
610
|
+
socialAccounts: "";
|
|
611
|
+
isOwner: undefined;
|
|
612
|
+
isFeatured: false;
|
|
613
|
+
featuredMarkets: never[];
|
|
614
|
+
status: undefined;
|
|
615
|
+
followersCount: undefined;
|
|
616
|
+
equalOpportunityEmployer: undefined;
|
|
617
|
+
perksAndBenefits: "";
|
|
618
|
+
createdBy: undefined;
|
|
619
|
+
createdAt: undefined;
|
|
620
|
+
updatedBy: undefined;
|
|
621
|
+
updatedAt: undefined;
|
|
622
|
+
};
|
|
623
|
+
designation: undefined;
|
|
624
|
+
employmentType: undefined;
|
|
625
|
+
workMode: undefined;
|
|
626
|
+
skills: "";
|
|
627
|
+
bookmarks: "";
|
|
628
|
+
embedding: {
|
|
629
|
+
vector: undefined;
|
|
630
|
+
model: undefined;
|
|
631
|
+
};
|
|
632
|
+
applicants: "";
|
|
633
|
+
applicantCount: undefined;
|
|
634
|
+
externalApplicationLinkClickCount: undefined;
|
|
635
|
+
description: undefined;
|
|
636
|
+
descriptionMarkdown: undefined;
|
|
637
|
+
descriptionHTML: undefined;
|
|
638
|
+
locations: never[];
|
|
639
|
+
educationLevel: undefined;
|
|
640
|
+
validity: {
|
|
641
|
+
[x: string]: string | false;
|
|
642
|
+
isActive: false;
|
|
643
|
+
};
|
|
644
|
+
experienceLevel: undefined;
|
|
645
|
+
contactEmail: undefined;
|
|
646
|
+
workingHoursPerWeek: undefined;
|
|
647
|
+
tags: undefined;
|
|
648
|
+
questionnaire: "";
|
|
649
|
+
status: JobStatus.Draft;
|
|
650
|
+
seoTags: {
|
|
651
|
+
description: undefined;
|
|
652
|
+
keywords: "";
|
|
653
|
+
};
|
|
654
|
+
jdSummary: undefined;
|
|
655
|
+
canCreateAlert: undefined;
|
|
656
|
+
canDirectApply: undefined;
|
|
657
|
+
hasApplied: undefined;
|
|
658
|
+
isOwner: undefined;
|
|
659
|
+
hasBookmarked: undefined;
|
|
660
|
+
hasReported: undefined;
|
|
661
|
+
ratePerHour: undefined;
|
|
662
|
+
isPromoted: undefined;
|
|
663
|
+
salaryRange: {
|
|
664
|
+
currency: "USD";
|
|
665
|
+
min: undefined;
|
|
666
|
+
max: undefined;
|
|
667
|
+
compensationType: undefined;
|
|
668
|
+
isNegotiable: true;
|
|
669
|
+
};
|
|
670
|
+
reports: "";
|
|
671
|
+
category: undefined;
|
|
672
|
+
industry: undefined;
|
|
673
|
+
subCategories: "";
|
|
674
|
+
termsAccepted: undefined;
|
|
675
|
+
isFeatured: false;
|
|
676
|
+
featuredMarkets: never[];
|
|
677
|
+
shortId: undefined;
|
|
678
|
+
createdBy: undefined;
|
|
679
|
+
createdAt: undefined;
|
|
680
|
+
updatedBy: undefined;
|
|
681
|
+
updatedAt: undefined;
|
|
682
|
+
}, "">;
|
|
683
|
+
type TJobSchema = InferType<typeof JobSchema>;
|
|
684
|
+
|
|
211
685
|
declare const LocationSchema: yup.ObjectSchema<{
|
|
212
686
|
placeId: string | null | undefined;
|
|
213
687
|
country: string;
|
|
@@ -568,11 +1042,28 @@ declare const UserSchema: yup.ObjectSchema<{
|
|
|
568
1042
|
type: PageType;
|
|
569
1043
|
name: string;
|
|
570
1044
|
};
|
|
1045
|
+
location: {
|
|
1046
|
+
placeId?: string | null | undefined;
|
|
1047
|
+
state?: string | null | undefined;
|
|
1048
|
+
stateCode?: string | null | undefined;
|
|
1049
|
+
city?: string | null | undefined;
|
|
1050
|
+
address?: string | null | undefined;
|
|
1051
|
+
country: string;
|
|
1052
|
+
countryCode: string;
|
|
1053
|
+
geo: {
|
|
1054
|
+
type: "Point";
|
|
1055
|
+
coordinates: number[];
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
571
1058
|
designation: string;
|
|
572
1059
|
duration: {
|
|
573
1060
|
[x: string]: string | boolean;
|
|
574
1061
|
[x: number]: string | boolean;
|
|
575
1062
|
};
|
|
1063
|
+
isRemote: boolean;
|
|
1064
|
+
}[];
|
|
1065
|
+
educations: {
|
|
1066
|
+
description?: string | undefined;
|
|
576
1067
|
location: {
|
|
577
1068
|
placeId?: string | null | undefined;
|
|
578
1069
|
state?: string | null | undefined;
|
|
@@ -586,10 +1077,6 @@ declare const UserSchema: yup.ObjectSchema<{
|
|
|
586
1077
|
coordinates: number[];
|
|
587
1078
|
};
|
|
588
1079
|
};
|
|
589
|
-
isRemote: boolean;
|
|
590
|
-
}[];
|
|
591
|
-
educations: {
|
|
592
|
-
description?: string | undefined;
|
|
593
1080
|
institute: {
|
|
594
1081
|
slug?: string | undefined;
|
|
595
1082
|
logo?: {
|
|
@@ -604,19 +1091,6 @@ declare const UserSchema: yup.ObjectSchema<{
|
|
|
604
1091
|
endDate: string | null;
|
|
605
1092
|
isActive: boolean;
|
|
606
1093
|
};
|
|
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
1094
|
course: string;
|
|
621
1095
|
fieldOfStudy: string;
|
|
622
1096
|
isDistanceLearning: boolean;
|
|
@@ -723,12 +1197,26 @@ declare const UserSchema: yup.ObjectSchema<{
|
|
|
723
1197
|
}[];
|
|
724
1198
|
onboardingCompletedAt: Date | null | undefined;
|
|
725
1199
|
pendingPrefill: {
|
|
1200
|
+
location?: {
|
|
1201
|
+
placeId?: string | null | undefined;
|
|
1202
|
+
state?: string | null | undefined;
|
|
1203
|
+
stateCode?: string | null | undefined;
|
|
1204
|
+
city?: string | null | undefined;
|
|
1205
|
+
address?: string | null | undefined;
|
|
1206
|
+
country: string;
|
|
1207
|
+
countryCode: string;
|
|
1208
|
+
geo: {
|
|
1209
|
+
type: "Point";
|
|
1210
|
+
coordinates: number[];
|
|
1211
|
+
};
|
|
1212
|
+
} | undefined;
|
|
726
1213
|
headline?: string | undefined;
|
|
727
1214
|
socialAccounts?: {
|
|
728
1215
|
type: NonNullable<SocialAccount | undefined>;
|
|
729
1216
|
isNew: boolean;
|
|
730
1217
|
url: string;
|
|
731
1218
|
}[] | undefined;
|
|
1219
|
+
experienceLevel?: ExperienceLevel | undefined;
|
|
732
1220
|
workExperiences?: {
|
|
733
1221
|
description?: string | undefined;
|
|
734
1222
|
company: {
|
|
@@ -740,11 +1228,28 @@ declare const UserSchema: yup.ObjectSchema<{
|
|
|
740
1228
|
type: PageType;
|
|
741
1229
|
name: string;
|
|
742
1230
|
};
|
|
1231
|
+
location: {
|
|
1232
|
+
placeId?: string | null | undefined;
|
|
1233
|
+
state?: string | null | undefined;
|
|
1234
|
+
stateCode?: string | null | undefined;
|
|
1235
|
+
city?: string | null | undefined;
|
|
1236
|
+
address?: string | null | undefined;
|
|
1237
|
+
country: string;
|
|
1238
|
+
countryCode: string;
|
|
1239
|
+
geo: {
|
|
1240
|
+
type: "Point";
|
|
1241
|
+
coordinates: number[];
|
|
1242
|
+
};
|
|
1243
|
+
};
|
|
743
1244
|
designation: string;
|
|
744
1245
|
duration: {
|
|
745
1246
|
[x: string]: string | boolean;
|
|
746
1247
|
[x: number]: string | boolean;
|
|
747
1248
|
};
|
|
1249
|
+
isRemote: boolean;
|
|
1250
|
+
}[] | undefined;
|
|
1251
|
+
educations?: {
|
|
1252
|
+
description?: string | undefined;
|
|
748
1253
|
location: {
|
|
749
1254
|
placeId?: string | null | undefined;
|
|
750
1255
|
state?: string | null | undefined;
|
|
@@ -758,10 +1263,6 @@ declare const UserSchema: yup.ObjectSchema<{
|
|
|
758
1263
|
coordinates: number[];
|
|
759
1264
|
};
|
|
760
1265
|
};
|
|
761
|
-
isRemote: boolean;
|
|
762
|
-
}[] | undefined;
|
|
763
|
-
educations?: {
|
|
764
|
-
description?: string | undefined;
|
|
765
1266
|
institute: {
|
|
766
1267
|
slug?: string | undefined;
|
|
767
1268
|
logo?: {
|
|
@@ -776,40 +1277,13 @@ declare const UserSchema: yup.ObjectSchema<{
|
|
|
776
1277
|
endDate: string | null;
|
|
777
1278
|
isActive: boolean;
|
|
778
1279
|
};
|
|
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
1280
|
course: string;
|
|
793
1281
|
fieldOfStudy: string;
|
|
794
1282
|
isDistanceLearning: boolean;
|
|
795
1283
|
studyType: NonNullable<StudyType | undefined>;
|
|
796
1284
|
}[] | 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
1285
|
aboutMe?: string | undefined;
|
|
811
1286
|
mobile?: string | undefined;
|
|
812
|
-
experienceLevel?: ExperienceLevel | undefined;
|
|
813
1287
|
} | null | undefined;
|
|
814
1288
|
recruiterProfile: {
|
|
815
1289
|
hiringFor: {
|
|
@@ -1237,12 +1711,26 @@ declare const UserJobPreferencesSchema: yup.ObjectSchema<{
|
|
|
1237
1711
|
}[];
|
|
1238
1712
|
onboardingCompletedAt: Date | null | undefined;
|
|
1239
1713
|
pendingPrefill: {
|
|
1714
|
+
location?: {
|
|
1715
|
+
placeId?: string | null | undefined;
|
|
1716
|
+
state?: string | null | undefined;
|
|
1717
|
+
stateCode?: string | null | undefined;
|
|
1718
|
+
city?: string | null | undefined;
|
|
1719
|
+
address?: string | null | undefined;
|
|
1720
|
+
country: string;
|
|
1721
|
+
countryCode: string;
|
|
1722
|
+
geo: {
|
|
1723
|
+
type: "Point";
|
|
1724
|
+
coordinates: number[];
|
|
1725
|
+
};
|
|
1726
|
+
} | undefined;
|
|
1240
1727
|
headline?: string | undefined;
|
|
1241
1728
|
socialAccounts?: {
|
|
1242
1729
|
type: NonNullable<SocialAccount | undefined>;
|
|
1243
1730
|
isNew: boolean;
|
|
1244
1731
|
url: string;
|
|
1245
1732
|
}[] | undefined;
|
|
1733
|
+
experienceLevel?: ExperienceLevel | undefined;
|
|
1246
1734
|
workExperiences?: {
|
|
1247
1735
|
description?: string | undefined;
|
|
1248
1736
|
company: {
|
|
@@ -1254,11 +1742,28 @@ declare const UserJobPreferencesSchema: yup.ObjectSchema<{
|
|
|
1254
1742
|
type: PageType;
|
|
1255
1743
|
name: string;
|
|
1256
1744
|
};
|
|
1745
|
+
location: {
|
|
1746
|
+
placeId?: string | null | undefined;
|
|
1747
|
+
state?: string | null | undefined;
|
|
1748
|
+
stateCode?: string | null | undefined;
|
|
1749
|
+
city?: string | null | undefined;
|
|
1750
|
+
address?: string | null | undefined;
|
|
1751
|
+
country: string;
|
|
1752
|
+
countryCode: string;
|
|
1753
|
+
geo: {
|
|
1754
|
+
type: "Point";
|
|
1755
|
+
coordinates: number[];
|
|
1756
|
+
};
|
|
1757
|
+
};
|
|
1257
1758
|
designation: string;
|
|
1258
1759
|
duration: {
|
|
1259
1760
|
[x: string]: string | boolean;
|
|
1260
1761
|
[x: number]: string | boolean;
|
|
1261
1762
|
};
|
|
1763
|
+
isRemote: boolean;
|
|
1764
|
+
}[] | undefined;
|
|
1765
|
+
educations?: {
|
|
1766
|
+
description?: string | undefined;
|
|
1262
1767
|
location: {
|
|
1263
1768
|
placeId?: string | null | undefined;
|
|
1264
1769
|
state?: string | null | undefined;
|
|
@@ -1272,10 +1777,6 @@ declare const UserJobPreferencesSchema: yup.ObjectSchema<{
|
|
|
1272
1777
|
coordinates: number[];
|
|
1273
1778
|
};
|
|
1274
1779
|
};
|
|
1275
|
-
isRemote: boolean;
|
|
1276
|
-
}[] | undefined;
|
|
1277
|
-
educations?: {
|
|
1278
|
-
description?: string | undefined;
|
|
1279
1780
|
institute: {
|
|
1280
1781
|
slug?: string | undefined;
|
|
1281
1782
|
logo?: {
|
|
@@ -1290,40 +1791,13 @@ declare const UserJobPreferencesSchema: yup.ObjectSchema<{
|
|
|
1290
1791
|
endDate: string | null;
|
|
1291
1792
|
isActive: boolean;
|
|
1292
1793
|
};
|
|
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
1794
|
course: string;
|
|
1307
1795
|
fieldOfStudy: string;
|
|
1308
1796
|
isDistanceLearning: boolean;
|
|
1309
1797
|
studyType: NonNullable<StudyType | undefined>;
|
|
1310
1798
|
}[] | 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
1799
|
aboutMe?: string | undefined;
|
|
1325
1800
|
mobile?: string | undefined;
|
|
1326
|
-
experienceLevel?: ExperienceLevel | undefined;
|
|
1327
1801
|
} | null | undefined;
|
|
1328
1802
|
}, yup.AnyObject, {
|
|
1329
1803
|
openToWork: false;
|
|
@@ -1625,6 +2099,11 @@ declare const StudentCompletenessSchema: yup.ObjectSchema<{
|
|
|
1625
2099
|
totalSteps: number;
|
|
1626
2100
|
completedSteps: number;
|
|
1627
2101
|
};
|
|
2102
|
+
skills: {
|
|
2103
|
+
score: number;
|
|
2104
|
+
totalSteps: number;
|
|
2105
|
+
completedSteps: number;
|
|
2106
|
+
};
|
|
1628
2107
|
overview: {
|
|
1629
2108
|
score: number;
|
|
1630
2109
|
totalSteps: number;
|
|
@@ -1650,11 +2129,6 @@ declare const StudentCompletenessSchema: yup.ObjectSchema<{
|
|
|
1650
2129
|
totalSteps: number;
|
|
1651
2130
|
completedSteps: number;
|
|
1652
2131
|
};
|
|
1653
|
-
skills: {
|
|
1654
|
-
score: number;
|
|
1655
|
-
totalSteps: number;
|
|
1656
|
-
completedSteps: number;
|
|
1657
|
-
};
|
|
1658
2132
|
languages: {
|
|
1659
2133
|
score: number;
|
|
1660
2134
|
totalSteps: number;
|
|
@@ -1733,4 +2207,4 @@ declare const StudentCompletenessSchema: yup.ObjectSchema<{
|
|
|
1733
2207
|
};
|
|
1734
2208
|
}, "">;
|
|
1735
2209
|
|
|
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 };
|
|
2210
|
+
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 };
|