@thejob/schema 1.0.26 → 1.0.28
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/cjs/common/common.schema.d.ts.map +1 -1
- package/dist/cjs/index.d.ts +5 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +5 -0
- package/dist/cjs/interfaces.index.d.ts +103 -77
- package/dist/cjs/interfaces.index.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.d.ts +23 -8
- package/dist/cjs/job/job.schema.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.js +3 -1
- package/dist/cjs/job/utils.d.ts +3 -2
- package/dist/cjs/job/utils.d.ts.map +1 -1
- package/dist/cjs/job-application/job-application.schema.d.ts +19 -11
- package/dist/cjs/job-application/job-application.schema.d.ts.map +1 -1
- package/dist/cjs/job-application/job-application.schema.js +54 -52
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts +23 -8
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts.map +1 -1
- package/dist/cjs/page/page-location/page-location.schema.d.ts.map +1 -1
- package/dist/cjs/question/choice-question.schema.d.ts +44 -3
- package/dist/cjs/question/choice-question.schema.d.ts.map +1 -1
- package/dist/cjs/question/choice-question.schema.js +38 -11
- package/dist/cjs/question/input-question.schema.d.ts +26 -4
- package/dist/cjs/question/input-question.schema.d.ts.map +1 -1
- package/dist/cjs/question/input-question.schema.js +15 -2
- package/dist/cjs/question/question.schema.d.ts +2 -17
- package/dist/cjs/question/question.schema.d.ts.map +1 -1
- package/dist/cjs/question/question.schema.js +3 -11
- package/dist/esm/common/common.schema.d.ts.map +1 -1
- package/dist/esm/common/common.schema.js +1 -1
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +5 -0
- package/dist/esm/interfaces.index.d.ts +103 -77
- package/dist/esm/interfaces.index.d.ts.map +1 -1
- package/dist/esm/job/job.schema.d.ts +23 -8
- package/dist/esm/job/job.schema.d.ts.map +1 -1
- package/dist/esm/job/job.schema.js +3 -1
- package/dist/esm/job/utils.d.ts +3 -2
- package/dist/esm/job/utils.d.ts.map +1 -1
- package/dist/esm/job-application/job-application.schema.d.ts +19 -11
- package/dist/esm/job-application/job-application.schema.d.ts.map +1 -1
- package/dist/esm/job-application/job-application.schema.js +56 -54
- package/dist/esm/job-role-template/job-role-template.schema.d.ts +23 -8
- package/dist/esm/job-role-template/job-role-template.schema.d.ts.map +1 -1
- package/dist/esm/page/page-location/page-location.schema.d.ts.map +1 -1
- package/dist/esm/page/page-location/page-location.schema.js +1 -1
- package/dist/esm/question/choice-question.schema.d.ts +44 -3
- package/dist/esm/question/choice-question.schema.d.ts.map +1 -1
- package/dist/esm/question/choice-question.schema.js +41 -14
- package/dist/esm/question/input-question.schema.d.ts +26 -4
- package/dist/esm/question/input-question.schema.d.ts.map +1 -1
- package/dist/esm/question/input-question.schema.js +15 -2
- package/dist/esm/question/question.schema.d.ts +2 -17
- package/dist/esm/question/question.schema.d.ts.map +1 -1
- package/dist/esm/question/question.schema.js +5 -13
- package/package.json +1 -1
|
@@ -158,16 +158,32 @@ export interface IJobSchema {
|
|
|
158
158
|
contactEmail?: string | undefined;
|
|
159
159
|
workingHoursPerWeek?: number | undefined;
|
|
160
160
|
tags?: any[] | undefined;
|
|
161
|
-
questionnaire?: {
|
|
162
|
-
description?: string | undefined;
|
|
161
|
+
questionnaire?: ({
|
|
163
162
|
label?: string | undefined;
|
|
164
163
|
isNew?: boolean | undefined;
|
|
165
164
|
isOptional?: boolean | undefined;
|
|
166
165
|
readonly?: boolean | undefined;
|
|
167
|
-
preferredAnswer?:
|
|
166
|
+
preferredAnswer?: string | undefined;
|
|
167
|
+
answers?: string | undefined;
|
|
168
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Input;
|
|
169
|
+
default: boolean;
|
|
170
|
+
title: string;
|
|
171
|
+
} | {
|
|
172
|
+
label?: string | undefined;
|
|
173
|
+
isNew?: boolean | undefined;
|
|
174
|
+
isOptional?: boolean | undefined;
|
|
175
|
+
readonly?: boolean | undefined;
|
|
176
|
+
preferredAnswer?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue[] | undefined;
|
|
177
|
+
answers?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | (string | number | boolean | {
|
|
178
|
+
logo?: string | undefined;
|
|
179
|
+
name: string;
|
|
180
|
+
id: string;
|
|
181
|
+
} | {
|
|
182
|
+
value: "others" | (string | undefined)[];
|
|
183
|
+
otherValue: string | string[];
|
|
184
|
+
} | undefined)[] | undefined;
|
|
168
185
|
optionsFrom?: string | undefined;
|
|
169
|
-
|
|
170
|
-
type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType | undefined>;
|
|
186
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Choice;
|
|
171
187
|
default: boolean;
|
|
172
188
|
title: string;
|
|
173
189
|
options: (string | {
|
|
@@ -177,9 +193,8 @@ export interface IJobSchema {
|
|
|
177
193
|
} | {
|
|
178
194
|
value: "others" | (string | undefined)[];
|
|
179
195
|
otherValue: string | string[];
|
|
180
|
-
})[];
|
|
181
|
-
|
|
182
|
-
}[] | undefined;
|
|
196
|
+
} | undefined)[];
|
|
197
|
+
} | {})[] | undefined;
|
|
183
198
|
jdSummary?: string | undefined;
|
|
184
199
|
canCreateAlert?: boolean | undefined;
|
|
185
200
|
canDirectApply?: boolean | undefined;
|
|
@@ -320,15 +335,31 @@ export interface IobRoleTemplate {
|
|
|
320
335
|
}[];
|
|
321
336
|
tags: string[];
|
|
322
337
|
questionnaire?: ({
|
|
323
|
-
description?: string | undefined;
|
|
324
338
|
label?: string | undefined;
|
|
325
339
|
isNew?: boolean | undefined;
|
|
326
340
|
isOptional?: boolean | undefined;
|
|
327
341
|
readonly?: boolean | undefined;
|
|
328
|
-
preferredAnswer?:
|
|
342
|
+
preferredAnswer?: string | undefined;
|
|
343
|
+
answers?: string | undefined;
|
|
344
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Input;
|
|
345
|
+
default: boolean;
|
|
346
|
+
title: string;
|
|
347
|
+
} | {
|
|
348
|
+
label?: string | undefined;
|
|
349
|
+
isNew?: boolean | undefined;
|
|
350
|
+
isOptional?: boolean | undefined;
|
|
351
|
+
readonly?: boolean | undefined;
|
|
352
|
+
preferredAnswer?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue[] | undefined;
|
|
353
|
+
answers?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | (string | number | boolean | {
|
|
354
|
+
logo?: string | undefined;
|
|
355
|
+
name: string;
|
|
356
|
+
id: string;
|
|
357
|
+
} | {
|
|
358
|
+
value: "others" | (string | undefined)[];
|
|
359
|
+
otherValue: string | string[];
|
|
360
|
+
} | undefined)[] | undefined;
|
|
329
361
|
optionsFrom?: string | undefined;
|
|
330
|
-
|
|
331
|
-
type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType | undefined>;
|
|
362
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Choice;
|
|
332
363
|
default: boolean;
|
|
333
364
|
title: string;
|
|
334
365
|
options: (string | {
|
|
@@ -338,32 +369,40 @@ export interface IobRoleTemplate {
|
|
|
338
369
|
} | {
|
|
339
370
|
value: "others" | (string | undefined)[];
|
|
340
371
|
otherValue: string | string[];
|
|
341
|
-
})[];
|
|
342
|
-
|
|
343
|
-
} | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/input-question.schema").TInputQuestionSchema)[] | undefined;
|
|
372
|
+
} | undefined)[];
|
|
373
|
+
})[] | undefined;
|
|
344
374
|
educationLevel?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").EducationLevel[] | undefined;
|
|
345
375
|
}
|
|
346
376
|
export interface IJobApplicationSchema {
|
|
347
377
|
updatedBy?: string | undefined;
|
|
348
378
|
updatedAt?: number | undefined;
|
|
349
379
|
score?: number | undefined;
|
|
350
|
-
questionnaire?: {
|
|
351
|
-
description?: string | undefined;
|
|
380
|
+
questionnaire?: ({
|
|
352
381
|
label?: string | undefined;
|
|
353
382
|
isNew?: boolean | undefined;
|
|
354
383
|
isOptional?: boolean | undefined;
|
|
355
384
|
readonly?: boolean | undefined;
|
|
356
|
-
preferredAnswer?:
|
|
357
|
-
|
|
358
|
-
|
|
385
|
+
preferredAnswer?: string | undefined;
|
|
386
|
+
answers?: string | undefined;
|
|
387
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Input;
|
|
388
|
+
default: boolean;
|
|
389
|
+
title: string;
|
|
390
|
+
} | {
|
|
391
|
+
label?: string | undefined;
|
|
392
|
+
isNew?: boolean | undefined;
|
|
393
|
+
isOptional?: boolean | undefined;
|
|
394
|
+
readonly?: boolean | undefined;
|
|
395
|
+
preferredAnswer?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue[] | undefined;
|
|
396
|
+
answers?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | (string | number | boolean | {
|
|
359
397
|
logo?: string | undefined;
|
|
360
398
|
name: string;
|
|
361
399
|
id: string;
|
|
362
400
|
} | {
|
|
363
401
|
value: "others" | (string | undefined)[];
|
|
364
402
|
otherValue: string | string[];
|
|
365
|
-
} | undefined;
|
|
366
|
-
|
|
403
|
+
} | undefined)[] | undefined;
|
|
404
|
+
optionsFrom?: string | undefined;
|
|
405
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Choice;
|
|
367
406
|
default: boolean;
|
|
368
407
|
title: string;
|
|
369
408
|
options: (string | {
|
|
@@ -373,9 +412,8 @@ export interface IJobApplicationSchema {
|
|
|
373
412
|
} | {
|
|
374
413
|
value: "others" | (string | undefined)[];
|
|
375
414
|
otherValue: string | string[];
|
|
376
|
-
})[];
|
|
377
|
-
|
|
378
|
-
}[] | undefined;
|
|
415
|
+
} | undefined)[];
|
|
416
|
+
} | {})[] | undefined;
|
|
379
417
|
applicationSummary?: string | undefined;
|
|
380
418
|
name: {
|
|
381
419
|
first: string;
|
|
@@ -635,16 +673,32 @@ export interface IJobRoleTemplateSchema {
|
|
|
635
673
|
otherValue: string | string[];
|
|
636
674
|
} | undefined)[] | undefined;
|
|
637
675
|
tags?: any[] | undefined;
|
|
638
|
-
questionnaire?: {
|
|
639
|
-
description?: string | undefined;
|
|
676
|
+
questionnaire?: ({
|
|
640
677
|
label?: string | undefined;
|
|
641
678
|
isNew?: boolean | undefined;
|
|
642
679
|
isOptional?: boolean | undefined;
|
|
643
680
|
readonly?: boolean | undefined;
|
|
644
|
-
preferredAnswer?:
|
|
681
|
+
preferredAnswer?: string | undefined;
|
|
682
|
+
answers?: string | undefined;
|
|
683
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Input;
|
|
684
|
+
default: boolean;
|
|
685
|
+
title: string;
|
|
686
|
+
} | {
|
|
687
|
+
label?: string | undefined;
|
|
688
|
+
isNew?: boolean | undefined;
|
|
689
|
+
isOptional?: boolean | undefined;
|
|
690
|
+
readonly?: boolean | undefined;
|
|
691
|
+
preferredAnswer?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue[] | undefined;
|
|
692
|
+
answers?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | (string | number | boolean | {
|
|
693
|
+
logo?: string | undefined;
|
|
694
|
+
name: string;
|
|
695
|
+
id: string;
|
|
696
|
+
} | {
|
|
697
|
+
value: "others" | (string | undefined)[];
|
|
698
|
+
otherValue: string | string[];
|
|
699
|
+
} | undefined)[] | undefined;
|
|
645
700
|
optionsFrom?: string | undefined;
|
|
646
|
-
|
|
647
|
-
type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType | undefined>;
|
|
701
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Choice;
|
|
648
702
|
default: boolean;
|
|
649
703
|
title: string;
|
|
650
704
|
options: (string | {
|
|
@@ -654,9 +708,8 @@ export interface IJobRoleTemplateSchema {
|
|
|
654
708
|
} | {
|
|
655
709
|
value: "others" | (string | undefined)[];
|
|
656
710
|
otherValue: string | string[];
|
|
657
|
-
})[];
|
|
658
|
-
|
|
659
|
-
}[] | undefined;
|
|
711
|
+
} | undefined)[];
|
|
712
|
+
} | {})[] | undefined;
|
|
660
713
|
description: string;
|
|
661
714
|
headline: string;
|
|
662
715
|
designation: NonNullable<{
|
|
@@ -766,15 +819,21 @@ export interface IMobileNumberSchema {
|
|
|
766
819
|
};
|
|
767
820
|
}
|
|
768
821
|
export interface IChoiceQuestionSchema {
|
|
769
|
-
description?: string | undefined;
|
|
770
822
|
label?: string | undefined;
|
|
771
823
|
isNew?: boolean | undefined;
|
|
772
824
|
isOptional?: boolean | undefined;
|
|
773
825
|
readonly?: boolean | undefined;
|
|
774
|
-
preferredAnswer?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | undefined;
|
|
826
|
+
preferredAnswer?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue[] | undefined;
|
|
827
|
+
answers?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | (string | number | boolean | {
|
|
828
|
+
logo?: string | undefined;
|
|
829
|
+
name: string;
|
|
830
|
+
id: string;
|
|
831
|
+
} | {
|
|
832
|
+
value: "others" | (string | undefined)[];
|
|
833
|
+
otherValue: string | string[];
|
|
834
|
+
} | undefined)[] | undefined;
|
|
775
835
|
optionsFrom?: string | undefined;
|
|
776
|
-
|
|
777
|
-
type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType | undefined>;
|
|
836
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Choice;
|
|
778
837
|
default: boolean;
|
|
779
838
|
title: string;
|
|
780
839
|
options: (string | {
|
|
@@ -784,77 +843,44 @@ export interface IChoiceQuestionSchema {
|
|
|
784
843
|
} | {
|
|
785
844
|
value: "others" | (string | undefined)[];
|
|
786
845
|
otherValue: string | string[];
|
|
787
|
-
})[];
|
|
788
|
-
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
846
|
+
} | undefined)[];
|
|
789
847
|
}
|
|
790
848
|
export interface IInputQuestionSchema {
|
|
791
|
-
type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType | undefined>;
|
|
792
|
-
description?: string | undefined;
|
|
793
849
|
label?: string | undefined;
|
|
794
850
|
isNew?: boolean | undefined;
|
|
795
|
-
default: boolean;
|
|
796
|
-
title: string;
|
|
797
851
|
isOptional?: boolean | undefined;
|
|
798
852
|
readonly?: boolean | undefined;
|
|
799
|
-
preferredAnswer?:
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
853
|
+
preferredAnswer?: string | undefined;
|
|
854
|
+
answers?: string | undefined;
|
|
855
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Input;
|
|
856
|
+
default: boolean;
|
|
857
|
+
title: string;
|
|
803
858
|
}
|
|
804
859
|
export interface IMixedValue {
|
|
805
|
-
toString: (() => string) | ((radix?: number | undefined) => string) | (() => string)
|
|
860
|
+
toString: (() => string) | ((radix?: number | undefined) => string) | (() => string);
|
|
806
861
|
valueOf: (() => string) | (() => number) | (() => boolean) | (() => Object);
|
|
807
862
|
toLocaleString: (() => string) | {
|
|
808
863
|
(locales?: string | string[] | undefined, options?: Intl.NumberFormatOptions | undefined): string;
|
|
809
864
|
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions | undefined): string;
|
|
810
|
-
} | {
|
|
811
|
-
(): string;
|
|
812
|
-
(locales: string | string[], options?: (Intl.NumberFormatOptions & Intl.DateTimeFormatOptions) | undefined): string;
|
|
813
865
|
};
|
|
814
866
|
}
|
|
815
867
|
export interface IQuestionSchema {
|
|
816
868
|
type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType | undefined>;
|
|
817
|
-
description?: string | undefined;
|
|
818
869
|
label?: string | undefined;
|
|
819
870
|
isNew?: boolean | undefined;
|
|
820
871
|
default: boolean;
|
|
821
872
|
title: string;
|
|
822
873
|
isOptional?: boolean | undefined;
|
|
823
874
|
readonly?: boolean | undefined;
|
|
824
|
-
preferredAnswer?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | undefined;
|
|
825
|
-
optionsFrom?: string | undefined;
|
|
826
|
-
answers?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | undefined;
|
|
827
|
-
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
828
|
-
options: (string | {
|
|
829
|
-
logo?: string | undefined;
|
|
830
|
-
name: string;
|
|
831
|
-
id: string;
|
|
832
|
-
} | {
|
|
833
|
-
value: "others" | (string | undefined)[];
|
|
834
|
-
otherValue: string | string[];
|
|
835
|
-
})[];
|
|
836
875
|
}
|
|
837
876
|
export interface IReadAndAcknowledgeQuestionSchema {
|
|
838
|
-
description?: string | undefined;
|
|
839
877
|
label?: string | undefined;
|
|
840
878
|
isNew?: boolean | undefined;
|
|
841
879
|
isOptional?: boolean | undefined;
|
|
842
880
|
readonly?: boolean | undefined;
|
|
843
|
-
preferredAnswer?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | undefined;
|
|
844
|
-
optionsFrom?: string | undefined;
|
|
845
|
-
answers?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | undefined;
|
|
846
881
|
type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType | undefined>;
|
|
847
882
|
default: boolean;
|
|
848
883
|
title: string;
|
|
849
|
-
options: (string | {
|
|
850
|
-
logo?: string | undefined;
|
|
851
|
-
name: string;
|
|
852
|
-
id: string;
|
|
853
|
-
} | {
|
|
854
|
-
value: "others" | (string | undefined)[];
|
|
855
|
-
otherValue: string | string[];
|
|
856
|
-
})[];
|
|
857
|
-
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
858
884
|
}
|
|
859
885
|
export interface IResumeGeneralInfoSchema {
|
|
860
886
|
headline?: string | undefined;
|