-
Notifications
You must be signed in to change notification settings - Fork 0
/
schemas.py
51 lines (38 loc) · 1.13 KB
/
schemas.py
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
from dataclasses import dataclass
from typing import List, Optional
@dataclass
class WorkType:
name: Optional[str] = None
@dataclass
class EmploymentType:
name: Optional[str] = None
@dataclass
class Experience:
name: Optional[str] = None
@dataclass
class Salary:
salary_from: Optional[float] = None
salary_to: Optional[float] = None
currency: Optional[str] = None
schedule: Optional[str] = None
@dataclass
class Addresses:
country: Optional[str] = None
city: Optional[str] = None
region: Optional[str] = None
street: Optional[str] = None
@dataclass
class ParsedOffer:
title: Optional[str] = None
description: Optional[str] = None
addresses: Optional[List[Addresses]] = None
is_remote: Optional[bool] = False
is_hybrid: Optional[bool] = False
skills: Optional[str] = None
salary: Optional[List[Salary]] = None
experience: Optional[List[Experience]] = None
work_type: Optional[List[WorkType]] = None
employment_type: Optional[List[EmploymentType]] = None
company_logo: Optional[str] = None
url: Optional[str] = None
company_name: Optional[str] = None