@thejob/schema 2.6.0 → 2.7.0
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.cjs +769 -752
- package/dist/index.d.cts +19 -13
- package/dist/index.d.ts +19 -13
- package/dist/index.js +755 -738
- package/package.json +1 -1
- package/src/job/job.schema.ts +28 -5
package/dist/index.d.cts
CHANGED
|
@@ -640,8 +640,12 @@ declare const JobSchema: ObjectSchema<{
|
|
|
640
640
|
employmentType: string;
|
|
641
641
|
workMode: string;
|
|
642
642
|
skills: {
|
|
643
|
-
|
|
644
|
-
|
|
643
|
+
concept?: {
|
|
644
|
+
name: string;
|
|
645
|
+
type: string;
|
|
646
|
+
conceptId: string;
|
|
647
|
+
vocabulary: string;
|
|
648
|
+
} | null | undefined;
|
|
645
649
|
name: string;
|
|
646
650
|
logo: {
|
|
647
651
|
dark?: string | null | undefined;
|
|
@@ -653,8 +657,8 @@ declare const JobSchema: ObjectSchema<{
|
|
|
653
657
|
userId: string;
|
|
654
658
|
}[] | undefined;
|
|
655
659
|
embedding: {
|
|
656
|
-
vector?: number[] | undefined;
|
|
657
660
|
model?: string | undefined;
|
|
661
|
+
vector?: number[] | undefined;
|
|
658
662
|
} | null | undefined;
|
|
659
663
|
applicants: {
|
|
660
664
|
createdAt: string;
|
|
@@ -789,6 +793,7 @@ declare const JobSchema: ObjectSchema<{
|
|
|
789
793
|
category: string | null | undefined;
|
|
790
794
|
industry: string | null | undefined;
|
|
791
795
|
subCategories: string[] | null | undefined;
|
|
796
|
+
taxonomyVersion: number | null | undefined;
|
|
792
797
|
termsAccepted: NonNullable<boolean | undefined>;
|
|
793
798
|
isFeatured: boolean;
|
|
794
799
|
featuredMarkets: string[];
|
|
@@ -894,6 +899,7 @@ declare const JobSchema: ObjectSchema<{
|
|
|
894
899
|
category: undefined;
|
|
895
900
|
industry: undefined;
|
|
896
901
|
subCategories: "";
|
|
902
|
+
taxonomyVersion: undefined;
|
|
897
903
|
termsAccepted: undefined;
|
|
898
904
|
isFeatured: false;
|
|
899
905
|
featuredMarkets: never[];
|
|
@@ -2848,8 +2854,8 @@ declare const CampaignSchema: yup.ObjectSchema<{
|
|
|
2848
2854
|
unit: NonNullable<CampaignIntervalUnit | undefined>;
|
|
2849
2855
|
} | undefined;
|
|
2850
2856
|
byMonthday?: number | undefined;
|
|
2851
|
-
timezone: string;
|
|
2852
2857
|
kind: NonNullable<CampaignTriggerKind | undefined>;
|
|
2858
|
+
timezone: string;
|
|
2853
2859
|
timeOfDay: string;
|
|
2854
2860
|
byWeekday: number[];
|
|
2855
2861
|
end: {
|
|
@@ -2862,8 +2868,8 @@ declare const CampaignSchema: yup.ObjectSchema<{
|
|
|
2862
2868
|
resendAfterDays: number | null | undefined;
|
|
2863
2869
|
maxRecipients: number | undefined;
|
|
2864
2870
|
utm: {
|
|
2865
|
-
campaign?: string | undefined;
|
|
2866
2871
|
content?: string | undefined;
|
|
2872
|
+
campaign?: string | undefined;
|
|
2867
2873
|
} | undefined;
|
|
2868
2874
|
}, yup.AnyObject, {
|
|
2869
2875
|
name: undefined;
|
|
@@ -3689,7 +3695,7 @@ declare const VocabularySchema: yup.ObjectSchema<{
|
|
|
3689
3695
|
verify?: string | undefined;
|
|
3690
3696
|
place?: string | undefined;
|
|
3691
3697
|
};
|
|
3692
|
-
source: NonNullable<"
|
|
3698
|
+
source: NonNullable<"seed" | "manual" | undefined>;
|
|
3693
3699
|
createdAt: number;
|
|
3694
3700
|
updatedAt: number;
|
|
3695
3701
|
}, yup.AnyObject, {
|
|
@@ -3722,13 +3728,13 @@ declare const VocabularySchema: yup.ObjectSchema<{
|
|
|
3722
3728
|
declare const TaxonomyNodeSchema: yup.ObjectSchema<{
|
|
3723
3729
|
nodeId: string;
|
|
3724
3730
|
vocabulary: string;
|
|
3725
|
-
kind: NonNullable<"category" | "
|
|
3731
|
+
kind: NonNullable<"category" | "subcategory" | "group" | undefined>;
|
|
3726
3732
|
name: string;
|
|
3727
3733
|
description: string | undefined;
|
|
3728
3734
|
aliases: string[];
|
|
3729
3735
|
parentId: string | null;
|
|
3730
3736
|
path: string[];
|
|
3731
|
-
source: "
|
|
3737
|
+
source: "seed" | "manual" | undefined;
|
|
3732
3738
|
createdAt: number;
|
|
3733
3739
|
updatedAt: number;
|
|
3734
3740
|
}, yup.AnyObject, {
|
|
@@ -3789,7 +3795,7 @@ declare const ConceptSchema: yup.ObjectSchema<{
|
|
|
3789
3795
|
sourceId: string;
|
|
3790
3796
|
}[];
|
|
3791
3797
|
relatedConceptIds: string[];
|
|
3792
|
-
source: NonNullable<"
|
|
3798
|
+
source: NonNullable<"seed" | "manual" | "import" | undefined>;
|
|
3793
3799
|
createdAt: number;
|
|
3794
3800
|
updatedAt: number;
|
|
3795
3801
|
retypedAt: number | undefined;
|
|
@@ -3867,7 +3873,7 @@ declare const ProposalCandidateSchema: yup.ObjectSchema<{
|
|
|
3867
3873
|
}, "">;
|
|
3868
3874
|
/** One turn of a draft's refinement chat. */
|
|
3869
3875
|
declare const ProposalMessageSchema: yup.ObjectSchema<{
|
|
3870
|
-
role: NonNullable<"
|
|
3876
|
+
role: NonNullable<"operator" | "model" | undefined>;
|
|
3871
3877
|
content: string;
|
|
3872
3878
|
model: string | undefined;
|
|
3873
3879
|
at: number;
|
|
@@ -3977,8 +3983,8 @@ declare const ConceptProposalSchema: yup.ObjectSchema<{
|
|
|
3977
3983
|
messages: {
|
|
3978
3984
|
model?: string | undefined;
|
|
3979
3985
|
at: number;
|
|
3986
|
+
role: NonNullable<"operator" | "model" | undefined>;
|
|
3980
3987
|
content: string;
|
|
3981
|
-
role: NonNullable<"model" | "operator" | undefined>;
|
|
3982
3988
|
}[];
|
|
3983
3989
|
status: NonNullable<"approved" | "draft" | "discarded" | undefined>;
|
|
3984
3990
|
resolvedConceptId: string | undefined;
|
|
@@ -4016,7 +4022,7 @@ declare const ConceptProposalSchema: yup.ObjectSchema<{
|
|
|
4016
4022
|
/** A group of key writes that is undone together. Every key write belongs to one. */
|
|
4017
4023
|
declare const ReleaseSchema: yup.ObjectSchema<{
|
|
4018
4024
|
releaseId: string;
|
|
4019
|
-
kind: NonNullable<"
|
|
4025
|
+
kind: NonNullable<"seed" | "manual" | "review" | "auto" | undefined>;
|
|
4020
4026
|
status: NonNullable<"open" | "rolled_back" | undefined>;
|
|
4021
4027
|
createdBy: string;
|
|
4022
4028
|
createdAt: number;
|
|
@@ -4415,8 +4421,8 @@ declare const UserSchema: yup.ObjectSchema<{
|
|
|
4415
4421
|
subscribed: boolean;
|
|
4416
4422
|
};
|
|
4417
4423
|
embedding: {
|
|
4418
|
-
vector?: number[] | undefined;
|
|
4419
4424
|
model?: string | undefined;
|
|
4425
|
+
vector?: number[] | undefined;
|
|
4420
4426
|
} | null | undefined;
|
|
4421
4427
|
createdAt: number | undefined;
|
|
4422
4428
|
id: string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -640,8 +640,12 @@ declare const JobSchema: ObjectSchema<{
|
|
|
640
640
|
employmentType: string;
|
|
641
641
|
workMode: string;
|
|
642
642
|
skills: {
|
|
643
|
-
|
|
644
|
-
|
|
643
|
+
concept?: {
|
|
644
|
+
name: string;
|
|
645
|
+
type: string;
|
|
646
|
+
conceptId: string;
|
|
647
|
+
vocabulary: string;
|
|
648
|
+
} | null | undefined;
|
|
645
649
|
name: string;
|
|
646
650
|
logo: {
|
|
647
651
|
dark?: string | null | undefined;
|
|
@@ -653,8 +657,8 @@ declare const JobSchema: ObjectSchema<{
|
|
|
653
657
|
userId: string;
|
|
654
658
|
}[] | undefined;
|
|
655
659
|
embedding: {
|
|
656
|
-
vector?: number[] | undefined;
|
|
657
660
|
model?: string | undefined;
|
|
661
|
+
vector?: number[] | undefined;
|
|
658
662
|
} | null | undefined;
|
|
659
663
|
applicants: {
|
|
660
664
|
createdAt: string;
|
|
@@ -789,6 +793,7 @@ declare const JobSchema: ObjectSchema<{
|
|
|
789
793
|
category: string | null | undefined;
|
|
790
794
|
industry: string | null | undefined;
|
|
791
795
|
subCategories: string[] | null | undefined;
|
|
796
|
+
taxonomyVersion: number | null | undefined;
|
|
792
797
|
termsAccepted: NonNullable<boolean | undefined>;
|
|
793
798
|
isFeatured: boolean;
|
|
794
799
|
featuredMarkets: string[];
|
|
@@ -894,6 +899,7 @@ declare const JobSchema: ObjectSchema<{
|
|
|
894
899
|
category: undefined;
|
|
895
900
|
industry: undefined;
|
|
896
901
|
subCategories: "";
|
|
902
|
+
taxonomyVersion: undefined;
|
|
897
903
|
termsAccepted: undefined;
|
|
898
904
|
isFeatured: false;
|
|
899
905
|
featuredMarkets: never[];
|
|
@@ -2848,8 +2854,8 @@ declare const CampaignSchema: yup.ObjectSchema<{
|
|
|
2848
2854
|
unit: NonNullable<CampaignIntervalUnit | undefined>;
|
|
2849
2855
|
} | undefined;
|
|
2850
2856
|
byMonthday?: number | undefined;
|
|
2851
|
-
timezone: string;
|
|
2852
2857
|
kind: NonNullable<CampaignTriggerKind | undefined>;
|
|
2858
|
+
timezone: string;
|
|
2853
2859
|
timeOfDay: string;
|
|
2854
2860
|
byWeekday: number[];
|
|
2855
2861
|
end: {
|
|
@@ -2862,8 +2868,8 @@ declare const CampaignSchema: yup.ObjectSchema<{
|
|
|
2862
2868
|
resendAfterDays: number | null | undefined;
|
|
2863
2869
|
maxRecipients: number | undefined;
|
|
2864
2870
|
utm: {
|
|
2865
|
-
campaign?: string | undefined;
|
|
2866
2871
|
content?: string | undefined;
|
|
2872
|
+
campaign?: string | undefined;
|
|
2867
2873
|
} | undefined;
|
|
2868
2874
|
}, yup.AnyObject, {
|
|
2869
2875
|
name: undefined;
|
|
@@ -3689,7 +3695,7 @@ declare const VocabularySchema: yup.ObjectSchema<{
|
|
|
3689
3695
|
verify?: string | undefined;
|
|
3690
3696
|
place?: string | undefined;
|
|
3691
3697
|
};
|
|
3692
|
-
source: NonNullable<"
|
|
3698
|
+
source: NonNullable<"seed" | "manual" | undefined>;
|
|
3693
3699
|
createdAt: number;
|
|
3694
3700
|
updatedAt: number;
|
|
3695
3701
|
}, yup.AnyObject, {
|
|
@@ -3722,13 +3728,13 @@ declare const VocabularySchema: yup.ObjectSchema<{
|
|
|
3722
3728
|
declare const TaxonomyNodeSchema: yup.ObjectSchema<{
|
|
3723
3729
|
nodeId: string;
|
|
3724
3730
|
vocabulary: string;
|
|
3725
|
-
kind: NonNullable<"category" | "
|
|
3731
|
+
kind: NonNullable<"category" | "subcategory" | "group" | undefined>;
|
|
3726
3732
|
name: string;
|
|
3727
3733
|
description: string | undefined;
|
|
3728
3734
|
aliases: string[];
|
|
3729
3735
|
parentId: string | null;
|
|
3730
3736
|
path: string[];
|
|
3731
|
-
source: "
|
|
3737
|
+
source: "seed" | "manual" | undefined;
|
|
3732
3738
|
createdAt: number;
|
|
3733
3739
|
updatedAt: number;
|
|
3734
3740
|
}, yup.AnyObject, {
|
|
@@ -3789,7 +3795,7 @@ declare const ConceptSchema: yup.ObjectSchema<{
|
|
|
3789
3795
|
sourceId: string;
|
|
3790
3796
|
}[];
|
|
3791
3797
|
relatedConceptIds: string[];
|
|
3792
|
-
source: NonNullable<"
|
|
3798
|
+
source: NonNullable<"seed" | "manual" | "import" | undefined>;
|
|
3793
3799
|
createdAt: number;
|
|
3794
3800
|
updatedAt: number;
|
|
3795
3801
|
retypedAt: number | undefined;
|
|
@@ -3867,7 +3873,7 @@ declare const ProposalCandidateSchema: yup.ObjectSchema<{
|
|
|
3867
3873
|
}, "">;
|
|
3868
3874
|
/** One turn of a draft's refinement chat. */
|
|
3869
3875
|
declare const ProposalMessageSchema: yup.ObjectSchema<{
|
|
3870
|
-
role: NonNullable<"
|
|
3876
|
+
role: NonNullable<"operator" | "model" | undefined>;
|
|
3871
3877
|
content: string;
|
|
3872
3878
|
model: string | undefined;
|
|
3873
3879
|
at: number;
|
|
@@ -3977,8 +3983,8 @@ declare const ConceptProposalSchema: yup.ObjectSchema<{
|
|
|
3977
3983
|
messages: {
|
|
3978
3984
|
model?: string | undefined;
|
|
3979
3985
|
at: number;
|
|
3986
|
+
role: NonNullable<"operator" | "model" | undefined>;
|
|
3980
3987
|
content: string;
|
|
3981
|
-
role: NonNullable<"model" | "operator" | undefined>;
|
|
3982
3988
|
}[];
|
|
3983
3989
|
status: NonNullable<"approved" | "draft" | "discarded" | undefined>;
|
|
3984
3990
|
resolvedConceptId: string | undefined;
|
|
@@ -4016,7 +4022,7 @@ declare const ConceptProposalSchema: yup.ObjectSchema<{
|
|
|
4016
4022
|
/** A group of key writes that is undone together. Every key write belongs to one. */
|
|
4017
4023
|
declare const ReleaseSchema: yup.ObjectSchema<{
|
|
4018
4024
|
releaseId: string;
|
|
4019
|
-
kind: NonNullable<"
|
|
4025
|
+
kind: NonNullable<"seed" | "manual" | "review" | "auto" | undefined>;
|
|
4020
4026
|
status: NonNullable<"open" | "rolled_back" | undefined>;
|
|
4021
4027
|
createdBy: string;
|
|
4022
4028
|
createdAt: number;
|
|
@@ -4415,8 +4421,8 @@ declare const UserSchema: yup.ObjectSchema<{
|
|
|
4415
4421
|
subscribed: boolean;
|
|
4416
4422
|
};
|
|
4417
4423
|
embedding: {
|
|
4418
|
-
vector?: number[] | undefined;
|
|
4419
4424
|
model?: string | undefined;
|
|
4425
|
+
vector?: number[] | undefined;
|
|
4420
4426
|
} | null | undefined;
|
|
4421
4427
|
createdAt: number | undefined;
|
|
4422
4428
|
id: string | undefined;
|