-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmapping.ts
112 lines (103 loc) · 3.34 KB
/
mapping.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
export const mapDAOFamiliarity = (val: string): string => {
const map: { [key: string]: string } = {
Expert: 'EXPERT',
Familiar: 'FAMILIAR',
'A Little': 'AWARE',
None: 'NONE',
'Not Applicable': 'NOT_APPLICABLE',
};
return val in map ? map[val] : 'NOT_APPLICABLE';
};
export const mapSkillType = (val: string) => {
const map: { [key: string]: string } = {
Technical: 'TECHNICAL',
'Non - Technical': 'NON_TECHNICAL',
'Not Applicable': 'NOT_APPLICABLE',
Other: 'OTHER',
};
return val ? map[val] : 'NOT_APPLICABLE';
};
export const mapAvailability = (val: string) => {
const map: { [key: string]: string } = {
'0-5 hours': 'LESS_THAN_FIVE_HOURS',
'6-12 hours': 'SIX_TO_TWELVE_HOURS',
'13-35 hours': 'THIRTEEN_TO_THIRTY_FIVE_HOURS',
'36+ hours': 'MORE_THAN_THIRTY_SIX_HOURS',
'Not Applicable': 'NOT_APPLICABLE',
};
return val ? map[val] : 'NOT_APPLICABLE';
};
export const mapSkill = (val: string) => {
const map: { [key: string]: string } = {
'Frontend Dev': 'FRONTEND',
'Backend Dev': 'BACKEND',
Solidity: 'SOLIDITY',
BizDev: 'BIZ_DEV',
Community: 'COMMUNITY',
'Project Management': 'PROJECT_MANAGEMENT',
Finance: 'FINANCE',
'Product Design': 'PRODUCT_DESIGN',
'UX Research': 'UX_RESEARCH',
'Game Theory': 'GAME_THEORY',
DevOps: 'DEVOPS',
Tokenomics: 'TOKENOMICS',
Content: 'CONTENT',
Memes: 'MEMES',
'Visual Design': 'VISUAL_DESIGN',
'UI Design': 'UI_DESIGN',
Illustration: 'ILLUSTRATION',
Legal: 'LEGAL',
Accounting: 'ACCOUNTING',
};
return val ? map[val] : null;
};
export const mapConsultationService = (val: string): string => {
const map: { [key: string]: string } = {
'DAO (Design, Deployment)': 'DAO',
'Development (Frontend, Backend)': 'DEVELOPMENT',
'Marketing (Social Media, Copywriting, Memes/GIFs)': 'MARKETING',
'Motion Design (Video, Explainers, Sticker Packs)': 'MOTION_DESIGN',
'NFTs (Contracts, Art, Tokenomics)': 'NFTS',
'Smart Contracts (Solidity, Audits)': 'SMART_CONTRACTS',
'Strategy (Product, Launch Planning, Agile)': 'STRATEGY',
'Tokenomics (Incentives, Distribution, Rewards)': 'TOKENOMICS',
'UX (Research, Testing, User Stories)': 'UX',
'UI (Interface Design, Interaction Design)': 'UI',
'Visual Design (Branding, Illustration, Graphics)': 'VISUAL_DESIGN',
'Help me figure out what I need': 'HELP_ME',
};
return map[val];
};
export const mapProjectType = (val: string) => {
const map: { [key: string]: string } = {
New: 'NEW',
Existing: 'EXISTING',
};
return map[val];
};
export const mapAvailableProjectSpec = (val: string) => {
const map: { [key: string]: string } = {
Yes: 'YES',
Partial: 'PARTIAL',
None: 'NONE',
};
return map[val];
};
export const mapBudgetOptions = (val: string) => {
const map: { [key: string]: string } = {
'< $5k': 'LESS_THAN_FIVE_THOUSAND',
'$5k - $20k': 'FIVE_TO_TWENTY_THOUSAND',
'$20k - $50k': 'TWENTY_TO_FIFTY_THOUSAND',
'$50k +': 'MORE_THAN_FIFTY_THOUSAND',
'Not Sure': 'NOT_SURE',
};
return map[val];
};
export const mapDeliveryPriorities = (val: string) => {
const map: { [key: string]: string } = {
'Fast & Polished': 'FAST_AND_POLISHED',
'Fast & Inexpensive': 'FAST_AND_INEXPENSIVE',
'Polished & Inexpensive': 'POLISHED_AND_INEXPENSIVE',
};
return map[val];
};