-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.d.ts
142 lines (126 loc) Β· 2.24 KB
/
types.d.ts
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
type Offer = {
id: number;
title: string;
slug: string;
description?: string;
company?: string;
addresses: Address[];
is_remote: boolean;
is_hybrid: boolean;
apply_form?: string;
skills: string;
salary: Salary[];
experience: Experience[];
work_type?: string[];
employment_type?: string[];
createdAt: Date;
status: string;
company_logo: string;
url: string;
company_name?: string;
days_until_expiration_str: string;
is_expired?: boolean;
is_new?: boolean;
is_scraped: boolean;
created_at: string;
};
type Country = {
id: number
name: string
}
type Region = {
id: number
name: string
country?: Country
}
type Address = {
id: number;
country: Country;
city: City;
region: Region;
street?: string;
};
type City = {
id: number;
name: string;
latitude?: number;
longitude?: number;
region?: string;
country?: string;
};
type Salary = {
id: number;
salary_from?: number;
salary_to?: number;
currency?: string;
schedule?: string;
};
type Experience = {
id: number;
name: string;
};
type OfferResult = {
count: number;
next?: string | null;
previous?: string | null;
results: Offer[];
}
type Employment = {
id: number;
name: string;
}
type User = {
id: number;
first_name: string;
last_name: string;
email: string;
}
type CompanyCategory = {
id: number,
name: string
}
type Company = {
id: number;
name: string;
category: CompanyCategory | null;
logo: string | null;
slug: string;
description?: string | null;
linkedin_url?: string | null;
facebook_url?: string | null;
twitter_url?: string | null;
youtube_url?: string | null;
instagram_url?: string | null;
website_url?: string | null;
is_active: boolean;
company_size: number;
user: User;
addresses?: Address[] | null;
num_of_offers_to_add: number;
}
type WorkType = {
id: number;
name: string;
}
type EmploymentType = {
id: number;
name: string;
}
type OfferHelper = {
id: number;
slug: string;
title: string;
}
type UserAppliedOffer = {
id: number;
created_at: string;
user: number;
status: string;
job_offer: OfferHelper;
message?: string | null;
future_recruitment: boolean;
}
type TimelineData = {
created_at__date: string;
num_candidates: number
}