forked from dsnger/JobIt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.d.ts
More file actions
109 lines (104 loc) · 2.81 KB
/
types.d.ts
File metadata and controls
109 lines (104 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/* eslint-disable no-unused-vars */
type Job = {
data: [
{
employer_name: string;
employer_logo: string;
employer_website: string;
employer_company_type: string;
job_publisher: string;
job_id: string;
job_employment_type: string;
job_title: string;
job_apply_link: string;
job_apply_is_direct: boolean;
job_apply_quality_score: number;
job_description: string;
job_is_remote: boolean;
job_posted_at_timestamp: number;
job_posted_at_datetime_utc: string;
job_city: string;
job_state: string;
job_country: string;
job_latitude: number;
job_longitude: number;
job_benefits: null;
job_google_link: string;
job_offer_expiration_datetime_utc: string;
job_offer_expiration_timestamp: number;
job_required_experience: {
no_experience_required: boolean;
required_experience_in_months: null;
experience_mentioned: boolean;
experience_preferred: boolean;
};
job_required_skills: null;
job_required_education: {
postgraduate_degree: boolean;
professional_certification: boolean;
high_school: boolean;
associates_degree: boolean;
bachelors_degree: boolean;
degree_mentioned: boolean;
degree_preferred: boolean;
professional_certification_mentioned: boolean;
};
job_experience_in_place_of_education: boolean;
job_min_salary: null;
job_max_salary: null;
job_salary_currency: null;
job_salary_period: null;
job_highlights: {
Qualifications: [string];
Responsibilities: [string, string];
Benefits: [string, string, string];
};
job_job_title: null;
job_posting_language: string;
job_onet_soc: string;
job_onet_job_zone: string;
job_naics_code: string;
job_naics_name: string;
},
];
};
type JobResult = Job["data"][0];
type JobSalaryEntryType = {
location?: string;
job_title?: string;
publisher_name?: string;
publisher_link?: string;
min_salary?: number;
max_salary?: number;
median_salary?: number;
salary_period?: "YEAR";
salary_currency?: "CAD";
};
interface JobRequiredExperienceType {
no_experience_required?: boolean;
required_experience_in_months: number | null;
experience_mentioned?: boolean;
experience_preferred?: boolean;
}
interface SearchParams {
query?: string;
searchQuery?: string;
employmentType?: string;
pageNumber?: number;
recommended?: boolean;
}
interface CommonFilterDataShapeType {
name: string;
value: string;
}
type CompanyDetailCardProps = {
logo: string;
employerName: string;
companyType: string;
city: string;
state: string;
companyLink: string | null;
jobId: string;
companyJobs: JobResult[];
country: string;
};