@thejob/schema 2.6.0 → 2.8.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 +780 -752
- package/dist/index.d.cts +24 -13
- package/dist/index.d.ts +24 -13
- package/dist/index.js +766 -738
- package/package.json +1 -1
- package/src/job/job.schema.ts +28 -5
- package/src/taxonomy/taxonomy.schema.ts +13 -0
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;
|
|
@@ -3826,6 +3832,10 @@ declare const UnmatchedTermSchema: yup.ObjectSchema<{
|
|
|
3826
3832
|
context?: string | undefined;
|
|
3827
3833
|
service: string;
|
|
3828
3834
|
}[];
|
|
3835
|
+
samples: {
|
|
3836
|
+
title?: string | undefined;
|
|
3837
|
+
siblings: string[];
|
|
3838
|
+
}[];
|
|
3829
3839
|
resolution: NonNullable<"pending" | "rejected" | "added" | undefined>;
|
|
3830
3840
|
resolvedConceptId: string | undefined;
|
|
3831
3841
|
reason: "ambiguous" | undefined;
|
|
@@ -3839,6 +3849,7 @@ declare const UnmatchedTermSchema: yup.ObjectSchema<{
|
|
|
3839
3849
|
firstSeenAt: undefined;
|
|
3840
3850
|
lastSeenAt: undefined;
|
|
3841
3851
|
sources: never[];
|
|
3852
|
+
samples: never[];
|
|
3842
3853
|
resolution: undefined;
|
|
3843
3854
|
resolvedConceptId: undefined;
|
|
3844
3855
|
reason: undefined;
|
|
@@ -3867,7 +3878,7 @@ declare const ProposalCandidateSchema: yup.ObjectSchema<{
|
|
|
3867
3878
|
}, "">;
|
|
3868
3879
|
/** One turn of a draft's refinement chat. */
|
|
3869
3880
|
declare const ProposalMessageSchema: yup.ObjectSchema<{
|
|
3870
|
-
role: NonNullable<"
|
|
3881
|
+
role: NonNullable<"operator" | "model" | undefined>;
|
|
3871
3882
|
content: string;
|
|
3872
3883
|
model: string | undefined;
|
|
3873
3884
|
at: number;
|
|
@@ -3977,8 +3988,8 @@ declare const ConceptProposalSchema: yup.ObjectSchema<{
|
|
|
3977
3988
|
messages: {
|
|
3978
3989
|
model?: string | undefined;
|
|
3979
3990
|
at: number;
|
|
3991
|
+
role: NonNullable<"operator" | "model" | undefined>;
|
|
3980
3992
|
content: string;
|
|
3981
|
-
role: NonNullable<"model" | "operator" | undefined>;
|
|
3982
3993
|
}[];
|
|
3983
3994
|
status: NonNullable<"approved" | "draft" | "discarded" | undefined>;
|
|
3984
3995
|
resolvedConceptId: string | undefined;
|
|
@@ -4016,7 +4027,7 @@ declare const ConceptProposalSchema: yup.ObjectSchema<{
|
|
|
4016
4027
|
/** A group of key writes that is undone together. Every key write belongs to one. */
|
|
4017
4028
|
declare const ReleaseSchema: yup.ObjectSchema<{
|
|
4018
4029
|
releaseId: string;
|
|
4019
|
-
kind: NonNullable<"
|
|
4030
|
+
kind: NonNullable<"seed" | "manual" | "review" | "auto" | undefined>;
|
|
4020
4031
|
status: NonNullable<"open" | "rolled_back" | undefined>;
|
|
4021
4032
|
createdBy: string;
|
|
4022
4033
|
createdAt: number;
|
|
@@ -4415,8 +4426,8 @@ declare const UserSchema: yup.ObjectSchema<{
|
|
|
4415
4426
|
subscribed: boolean;
|
|
4416
4427
|
};
|
|
4417
4428
|
embedding: {
|
|
4418
|
-
vector?: number[] | undefined;
|
|
4419
4429
|
model?: string | undefined;
|
|
4430
|
+
vector?: number[] | undefined;
|
|
4420
4431
|
} | null | undefined;
|
|
4421
4432
|
createdAt: number | undefined;
|
|
4422
4433
|
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;
|
|
@@ -3826,6 +3832,10 @@ declare const UnmatchedTermSchema: yup.ObjectSchema<{
|
|
|
3826
3832
|
context?: string | undefined;
|
|
3827
3833
|
service: string;
|
|
3828
3834
|
}[];
|
|
3835
|
+
samples: {
|
|
3836
|
+
title?: string | undefined;
|
|
3837
|
+
siblings: string[];
|
|
3838
|
+
}[];
|
|
3829
3839
|
resolution: NonNullable<"pending" | "rejected" | "added" | undefined>;
|
|
3830
3840
|
resolvedConceptId: string | undefined;
|
|
3831
3841
|
reason: "ambiguous" | undefined;
|
|
@@ -3839,6 +3849,7 @@ declare const UnmatchedTermSchema: yup.ObjectSchema<{
|
|
|
3839
3849
|
firstSeenAt: undefined;
|
|
3840
3850
|
lastSeenAt: undefined;
|
|
3841
3851
|
sources: never[];
|
|
3852
|
+
samples: never[];
|
|
3842
3853
|
resolution: undefined;
|
|
3843
3854
|
resolvedConceptId: undefined;
|
|
3844
3855
|
reason: undefined;
|
|
@@ -3867,7 +3878,7 @@ declare const ProposalCandidateSchema: yup.ObjectSchema<{
|
|
|
3867
3878
|
}, "">;
|
|
3868
3879
|
/** One turn of a draft's refinement chat. */
|
|
3869
3880
|
declare const ProposalMessageSchema: yup.ObjectSchema<{
|
|
3870
|
-
role: NonNullable<"
|
|
3881
|
+
role: NonNullable<"operator" | "model" | undefined>;
|
|
3871
3882
|
content: string;
|
|
3872
3883
|
model: string | undefined;
|
|
3873
3884
|
at: number;
|
|
@@ -3977,8 +3988,8 @@ declare const ConceptProposalSchema: yup.ObjectSchema<{
|
|
|
3977
3988
|
messages: {
|
|
3978
3989
|
model?: string | undefined;
|
|
3979
3990
|
at: number;
|
|
3991
|
+
role: NonNullable<"operator" | "model" | undefined>;
|
|
3980
3992
|
content: string;
|
|
3981
|
-
role: NonNullable<"model" | "operator" | undefined>;
|
|
3982
3993
|
}[];
|
|
3983
3994
|
status: NonNullable<"approved" | "draft" | "discarded" | undefined>;
|
|
3984
3995
|
resolvedConceptId: string | undefined;
|
|
@@ -4016,7 +4027,7 @@ declare const ConceptProposalSchema: yup.ObjectSchema<{
|
|
|
4016
4027
|
/** A group of key writes that is undone together. Every key write belongs to one. */
|
|
4017
4028
|
declare const ReleaseSchema: yup.ObjectSchema<{
|
|
4018
4029
|
releaseId: string;
|
|
4019
|
-
kind: NonNullable<"
|
|
4030
|
+
kind: NonNullable<"seed" | "manual" | "review" | "auto" | undefined>;
|
|
4020
4031
|
status: NonNullable<"open" | "rolled_back" | undefined>;
|
|
4021
4032
|
createdBy: string;
|
|
4022
4033
|
createdAt: number;
|
|
@@ -4415,8 +4426,8 @@ declare const UserSchema: yup.ObjectSchema<{
|
|
|
4415
4426
|
subscribed: boolean;
|
|
4416
4427
|
};
|
|
4417
4428
|
embedding: {
|
|
4418
|
-
vector?: number[] | undefined;
|
|
4419
4429
|
model?: string | undefined;
|
|
4430
|
+
vector?: number[] | undefined;
|
|
4420
4431
|
} | null | undefined;
|
|
4421
4432
|
createdAt: number | undefined;
|
|
4422
4433
|
id: string | undefined;
|