lancer-shared 1.2.19 → 1.2.21
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/bundle.cjs.js +134 -23
- package/dist/constants/account-status.d.ts +3 -0
- package/dist/constants/account-status.js +17 -0
- package/dist/constants/collections.js +16 -0
- package/dist/constants/common-questions.js +60 -0
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +40 -0
- package/dist/constants/invoice.d.ts +2 -0
- package/dist/constants/job-filter-options.js +268 -0
- package/dist/constants/job-status.js +26 -0
- package/dist/constants/mappings/countryMapping.js +122 -0
- package/dist/constants/mappings/regionMapping.js +242 -0
- package/dist/constants/routes.js +108 -0
- package/dist/constants/upwork-accounts.js +21 -0
- package/dist/index.js +20 -0
- package/dist/schemas/account/account-status.js +11 -0
- package/dist/schemas/account/bidder-account.js +37 -0
- package/dist/schemas/account/index.js +19 -0
- package/dist/schemas/account/manager-account.d.ts +116 -0
- package/dist/schemas/account/manager-account.js +38 -0
- package/dist/schemas/account/scraper-account.js +37 -0
- package/dist/schemas/ai/ai-config.d.ts +36 -0
- package/dist/schemas/ai/ai-config.js +12 -0
- package/dist/schemas/ai/index.d.ts +3 -0
- package/dist/schemas/ai/index.js +19 -0
- package/dist/schemas/ai/proposal.d.ts +82 -0
- package/dist/schemas/ai/proposal.js +16 -0
- package/dist/schemas/ai/suitability.d.ts +37 -0
- package/dist/schemas/ai/suitability.js +17 -0
- package/dist/schemas/bid/bid-result.js +15 -0
- package/dist/schemas/bid/bid.js +36 -0
- package/dist/schemas/bid/index.js +18 -0
- package/dist/schemas/bidding/index.d.ts +1 -0
- package/dist/schemas/bidding/index.js +17 -0
- package/dist/schemas/bidding/proposal-bidding-status.d.ts +26 -0
- package/dist/schemas/bidding/proposal-bidding-status.js +18 -0
- package/dist/schemas/campaign/campaign-ai-metrics.js +9 -0
- package/dist/schemas/campaign/campaign-analytics.d.ts +2621 -38
- package/dist/schemas/campaign/campaign-analytics.js +41 -0
- package/dist/schemas/campaign/campaign-expenses.js +9 -0
- package/dist/schemas/campaign/campaign-insights.js +31 -0
- package/dist/schemas/campaign/campaign-integrations.js +16 -0
- package/dist/schemas/campaign/campaign-job-count.js +6 -0
- package/dist/schemas/campaign/campaign.js +44 -0
- package/dist/schemas/campaign/index.js +23 -0
- package/dist/schemas/chat-message/chat-message.js +13 -0
- package/dist/schemas/chat-message/index.js +17 -0
- package/dist/schemas/config/agency-config.js +10 -0
- package/dist/schemas/config/index.js +17 -0
- package/dist/schemas/index.js +32 -0
- package/dist/schemas/invoice/index.d.ts +8 -0
- package/dist/schemas/job/index.js +19 -0
- package/dist/schemas/job/job-details.d.ts +335 -0
- package/dist/schemas/job/job-details.js +29 -0
- package/dist/schemas/job/job-note.d.ts +83 -0
- package/dist/schemas/job/job-note.js +30 -0
- package/dist/schemas/job/job-status.d.ts +3 -0
- package/dist/schemas/job/job-status.js +27 -0
- package/dist/schemas/job/job.d.ts +1160 -0
- package/dist/schemas/job/job.js +90 -0
- package/dist/schemas/job/pipeline-job.d.ts +602 -0
- package/dist/schemas/job/pipeline-job.js +42 -0
- package/dist/schemas/job/upwork-job.d.ts +334 -0
- package/dist/schemas/job/upwork-job.js +60 -0
- package/dist/schemas/job-filters/index.js +17 -0
- package/dist/schemas/job-filters/job-filters.js +87 -0
- package/dist/schemas/lead/index.js +19 -0
- package/dist/schemas/lead/lead-note.js +30 -0
- package/dist/schemas/lead/lead-status.d.ts +23 -0
- package/dist/schemas/lead/lead-status.js +26 -0
- package/dist/schemas/lead/lead.d.ts +1897 -0
- package/dist/schemas/lead/lead.js +143 -0
- package/dist/schemas/logger/index.js +17 -0
- package/dist/schemas/logger/log-event.d.ts +13 -10
- package/dist/schemas/logger/log-event.js +66 -0
- package/dist/schemas/organization/index.d.ts +68 -1
- package/dist/schemas/organization/index.js +17 -0
- package/dist/schemas/organization/organization.d.ts +13 -87
- package/dist/schemas/organization/organization.js +19 -0
- package/dist/schemas/organization/subscription.d.ts +47 -0
- package/dist/schemas/plan/index.d.ts +36 -3
- package/dist/schemas/proxy/index.js +17 -0
- package/dist/schemas/proxy/proxy.js +21 -0
- package/dist/schemas/saved-search/index.js +12 -0
- package/dist/schemas/scraper/index.js +18 -0
- package/dist/schemas/scraper/scrape-payload.d.ts +49 -0
- package/dist/schemas/scraper/scrape-payload.js +16 -0
- package/dist/schemas/scraper/scrape-result.js +23 -0
- package/dist/schemas/shared.js +16 -0
- package/dist/schemas/time-filter/index.js +9 -0
- package/dist/schemas/upwork-account/index.d.ts +3 -0
- package/dist/schemas/upwork-account/index.js +19 -0
- package/dist/schemas/upwork-account/upwork-account-status.d.ts +2 -0
- package/dist/schemas/upwork-account/upwork-account-status.js +11 -0
- package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +95 -0
- package/dist/schemas/upwork-account/upwork-business-manager-account.js +35 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +90 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.js +29 -0
- package/dist/schemas/user/index.js +55 -0
- package/dist/types/account/account-status.js +2 -0
- package/dist/types/account/bidder-account.js +2 -0
- package/dist/types/account/index.js +19 -0
- package/dist/types/account/manager-account.d.ts +7 -0
- package/dist/types/account/manager-account.js +2 -0
- package/dist/types/account/scraper-account.js +2 -0
- package/dist/types/ai/ai-config.d.ts +6 -0
- package/dist/types/ai/ai-config.js +2 -0
- package/dist/types/ai/index.d.ts +3 -0
- package/dist/types/ai/index.js +19 -0
- package/dist/types/ai/proposal.d.ts +10 -0
- package/dist/types/ai/proposal.js +2 -0
- package/dist/types/ai/suitability.d.ts +6 -0
- package/dist/types/ai/suitability.js +2 -0
- package/dist/types/bid/bid-result.js +2 -0
- package/dist/types/bid/bid.js +2 -0
- package/dist/types/bid/index.js +18 -0
- package/dist/types/bidding/index.d.ts +1 -0
- package/dist/types/bidding/index.js +17 -0
- package/dist/types/bidding/proposal-bidding-status.d.ts +3 -0
- package/dist/types/bidding/proposal-bidding-status.js +2 -0
- package/dist/types/campaign/campaign-analytics.js +2 -0
- package/dist/types/campaign/campaign-expenses.js +2 -0
- package/dist/types/campaign/campaign-insights.js +2 -0
- package/dist/types/campaign/campaign-integrations.js +2 -0
- package/dist/types/campaign/campaign-job-count.js +2 -0
- package/dist/types/campaign/campaign.js +2 -0
- package/dist/types/campaign/index.js +22 -0
- package/dist/types/chat-message/chat-message.js +2 -0
- package/dist/types/chat-message/index.js +17 -0
- package/dist/types/config/agency-config.js +2 -0
- package/dist/types/config/index.js +17 -0
- package/dist/types/index.js +29 -0
- package/dist/types/job/index.js +19 -0
- package/dist/types/job/job-details.d.ts +36 -0
- package/dist/types/job/job-details.js +2 -0
- package/dist/types/job/job-note.js +2 -0
- package/dist/types/job/job-status.js +12 -0
- package/dist/types/job/job.d.ts +36 -0
- package/dist/types/job/job.js +2 -0
- package/dist/types/job-filters/index.js +17 -0
- package/dist/types/job-filters/job-filters.js +2 -0
- package/dist/types/logger/index.js +17 -0
- package/dist/types/logger/log-event.js +2 -0
- package/dist/types/saved-search/index.js +2 -0
- package/dist/types/scraper/index.js +18 -0
- package/dist/types/scraper/scrape-payload.js +2 -0
- package/dist/types/scraper/scrape-result.js +2 -0
- package/dist/types/time-filter/index.js +2 -0
- package/dist/types/upwork-account/index.d.ts +3 -0
- package/dist/types/upwork-account/index.js +19 -0
- package/dist/types/upwork-account/upwork-account-status.d.ts +3 -0
- package/dist/types/upwork-account/upwork-account-status.js +2 -0
- package/dist/types/upwork-account/upwork-business-manager-account.d.ts +7 -0
- package/dist/types/upwork-account/upwork-business-manager-account.js +2 -0
- package/dist/types/upwork-account/upwork-scraping-account.d.ts +5 -0
- package/dist/types/upwork-account/upwork-scraping-account.js +2 -0
- package/dist/types/user/index.js +2 -0
- package/dist/utils/index.js +17 -0
- package/dist/utils/try-catch.js +25 -0
- package/package.json +1 -1
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JOB_FILTER_OPTIONS = void 0;
|
|
4
|
+
exports.JOB_FILTER_OPTIONS = {
|
|
5
|
+
REGIONS: ["Worldwide", "UKOnly", "USOnly"],
|
|
6
|
+
PROJECT_DURATION: [
|
|
7
|
+
"Less than 1 month",
|
|
8
|
+
"1 to 3 months",
|
|
9
|
+
"3 to 6 months",
|
|
10
|
+
"More than 6 months",
|
|
11
|
+
"Unspecified",
|
|
12
|
+
],
|
|
13
|
+
ENGAGEMENT_TYPE: [
|
|
14
|
+
"Less than 30 hrs/week",
|
|
15
|
+
"More than 30 hrs/week",
|
|
16
|
+
"Unspecified",
|
|
17
|
+
],
|
|
18
|
+
VENDOR_TYPE: ["Independent", "Agency", "Unspecified"],
|
|
19
|
+
PAYMENT_TYPE: ["Fixed-price", "Hourly", "Unspecified"],
|
|
20
|
+
TALENT_TYPE: ["Agency", "Independent", "Unspecified"],
|
|
21
|
+
ENGLISH_LEVELS: [
|
|
22
|
+
"Fluent",
|
|
23
|
+
"Conversational",
|
|
24
|
+
"Native or Bilingual",
|
|
25
|
+
"Unspecified",
|
|
26
|
+
],
|
|
27
|
+
EXPERIENCE_LEVELS: ["Entry level", "Intermediate", "Expert"],
|
|
28
|
+
REQUIRED_EARNINGS: [100, 1000, 10000],
|
|
29
|
+
REQUIRED_JSS: [">80%", ">90%", "100%", "RT"],
|
|
30
|
+
HIERARCHICAL_CATEGORIES: [
|
|
31
|
+
{
|
|
32
|
+
label: "Accounting & Consulting",
|
|
33
|
+
value: "accounting-consulting",
|
|
34
|
+
children: [
|
|
35
|
+
"Accounting & Bookkeeping",
|
|
36
|
+
"Financial Planning",
|
|
37
|
+
"Management Consulting & Analysis",
|
|
38
|
+
"Other - Accounting & Consulting",
|
|
39
|
+
"Personal & Professional Coaching",
|
|
40
|
+
"Recruiting & Human Resources",
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: "Admin Support",
|
|
45
|
+
value: "admin-support",
|
|
46
|
+
children: [
|
|
47
|
+
"Data Entry & Transcription Services",
|
|
48
|
+
"Market Research & Product Reviews",
|
|
49
|
+
"Project Management",
|
|
50
|
+
"Virtual Assistance",
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: "Customer Service",
|
|
55
|
+
value: "customer-service",
|
|
56
|
+
children: [
|
|
57
|
+
"Community Management & Tagging",
|
|
58
|
+
"Customer Service & Tech Support",
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
label: "Data Science & Analytics",
|
|
63
|
+
value: "data-science-analytics",
|
|
64
|
+
children: [
|
|
65
|
+
"AI & Machine Learning",
|
|
66
|
+
"Data Analysis & Testing",
|
|
67
|
+
"Data Extraction/ETL",
|
|
68
|
+
"Data Mining & Management",
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: "Design & Creative",
|
|
73
|
+
value: "design-creative",
|
|
74
|
+
children: [
|
|
75
|
+
"Art & Illustration",
|
|
76
|
+
"Audio & Music Production",
|
|
77
|
+
"Branding & Logo Design",
|
|
78
|
+
"Graphic, Editorial & Presentation Design",
|
|
79
|
+
"NFT, AR/VR & Game Art",
|
|
80
|
+
"Performing Arts",
|
|
81
|
+
"Photography",
|
|
82
|
+
"Product Design",
|
|
83
|
+
"Video & Animation",
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: "Engineering & Architecture",
|
|
88
|
+
value: "engineering-architecture",
|
|
89
|
+
children: [
|
|
90
|
+
"3D Modeling & CAD",
|
|
91
|
+
"Building & Landscape Architecture",
|
|
92
|
+
"Chemical Engineering",
|
|
93
|
+
"Civil & Structural Engineering",
|
|
94
|
+
"Contract Manufacturing",
|
|
95
|
+
"Electrical & Electronic Engineering",
|
|
96
|
+
"Energy & Mechanical Engineering",
|
|
97
|
+
],
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
label: "IT & Networking",
|
|
101
|
+
value: "it-networking",
|
|
102
|
+
children: [
|
|
103
|
+
"Database Management & Administration",
|
|
104
|
+
"DevOps & Solution Architecture",
|
|
105
|
+
"ERP/CRM Software",
|
|
106
|
+
"Information Security & Compliance",
|
|
107
|
+
"Network & System Administration",
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
label: "Legal",
|
|
112
|
+
value: "legal",
|
|
113
|
+
children: [
|
|
114
|
+
"Corporate & Contract Law",
|
|
115
|
+
"Finance & Tax Law",
|
|
116
|
+
"International & Immigration Law",
|
|
117
|
+
"Public Law",
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
label: "Sales & Marketing",
|
|
122
|
+
value: "sales-marketing",
|
|
123
|
+
children: [
|
|
124
|
+
"Digital Marketing",
|
|
125
|
+
"Lead Generation & Telemarketing",
|
|
126
|
+
"Marketing, PR & Brand Strategy",
|
|
127
|
+
],
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
label: "Translation",
|
|
131
|
+
value: "translation",
|
|
132
|
+
children: [
|
|
133
|
+
"Language Tutoring & Interpretation",
|
|
134
|
+
"Translation & Localization Services",
|
|
135
|
+
],
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
label: "Software Development",
|
|
139
|
+
value: "software-development",
|
|
140
|
+
children: [
|
|
141
|
+
"AI Apps & Integration",
|
|
142
|
+
"Blockchain, NFT & Cryptocurrency",
|
|
143
|
+
"Desktop Application Development",
|
|
144
|
+
"Ecommerce Development",
|
|
145
|
+
"Game Design & Development",
|
|
146
|
+
"Mobile Development",
|
|
147
|
+
"Other - Software Development",
|
|
148
|
+
"Product Management & Scrum",
|
|
149
|
+
"QA Testing",
|
|
150
|
+
"Scripts & Utilities",
|
|
151
|
+
"Web & Mobile Design",
|
|
152
|
+
"Web Development",
|
|
153
|
+
],
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
label: "Writing",
|
|
157
|
+
value: "writing",
|
|
158
|
+
children: [
|
|
159
|
+
"Content Writing",
|
|
160
|
+
"Editing & Proofreading Services",
|
|
161
|
+
"Professional & Business Writing",
|
|
162
|
+
"Sales & Marketing Copywriting",
|
|
163
|
+
],
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
CATEGORIES: [
|
|
167
|
+
"Personal & Professional Coaching",
|
|
168
|
+
"Accounting & Bookkeeping",
|
|
169
|
+
"Financial Planning",
|
|
170
|
+
"Recruiting & Human Resources",
|
|
171
|
+
"Management Consulting & Analysis",
|
|
172
|
+
"Other - Accounting & Consulting",
|
|
173
|
+
"Data Entry & Transcription Services",
|
|
174
|
+
"Virtual Assistance",
|
|
175
|
+
"Project Management",
|
|
176
|
+
"Market Research & Product Reviews",
|
|
177
|
+
"Community Management & Tagging",
|
|
178
|
+
"Customer Service & Tech Support",
|
|
179
|
+
"Data Analysis & Testing",
|
|
180
|
+
"Data Extraction/ETL",
|
|
181
|
+
"Data Mining & Management",
|
|
182
|
+
"AI & Machine Learning",
|
|
183
|
+
"Art & Illustration",
|
|
184
|
+
"Audio & Music Production",
|
|
185
|
+
"Branding & Logo Design",
|
|
186
|
+
"NFT, AR/VR & Game Art",
|
|
187
|
+
"Graphic, Editorial & Presentation Design",
|
|
188
|
+
"Performing Arts",
|
|
189
|
+
"Photography",
|
|
190
|
+
"Product Design",
|
|
191
|
+
"Video & Animation",
|
|
192
|
+
"Building & Landscape Architecture",
|
|
193
|
+
"Chemical Engineering",
|
|
194
|
+
"Civil & Structural Engineering",
|
|
195
|
+
"Contract Manufacturing",
|
|
196
|
+
"Electrical & Electronic Engineering",
|
|
197
|
+
"Energy & Mechanical Engineering",
|
|
198
|
+
"3D Modeling & CAD",
|
|
199
|
+
"Database Management & Administration",
|
|
200
|
+
"ERP/CRM Software",
|
|
201
|
+
"Information Security & Compliance",
|
|
202
|
+
"Network & System Administration",
|
|
203
|
+
"DevOps & Solution Architecture",
|
|
204
|
+
"Corporate & Contract Law",
|
|
205
|
+
"International & Immigration Law",
|
|
206
|
+
"Finance & Tax Law",
|
|
207
|
+
"Public Law",
|
|
208
|
+
"Digital Marketing",
|
|
209
|
+
"Lead Generation & Telemarketing",
|
|
210
|
+
"Marketing, PR & Brand Strategy",
|
|
211
|
+
"Language Tutoring & Interpretation",
|
|
212
|
+
"Translation & Localization Services",
|
|
213
|
+
"Blockchain, NFT & Cryptocurrency",
|
|
214
|
+
"AI Apps & Integration",
|
|
215
|
+
"Desktop Application Development",
|
|
216
|
+
"Ecommerce Development",
|
|
217
|
+
"Game Design & Development",
|
|
218
|
+
"Mobile Development",
|
|
219
|
+
"Other - Software Development",
|
|
220
|
+
"Product Management & Scrum",
|
|
221
|
+
"QA Testing",
|
|
222
|
+
"Scripts & Utilities",
|
|
223
|
+
"Web & Mobile Design",
|
|
224
|
+
"Web Development",
|
|
225
|
+
"Sales & Marketing Copywriting",
|
|
226
|
+
"Content Writing",
|
|
227
|
+
"Editing & Proofreading Services",
|
|
228
|
+
"Professional & Business Writing",
|
|
229
|
+
],
|
|
230
|
+
CLIENT_INDUSTRY: [
|
|
231
|
+
"Aerospace",
|
|
232
|
+
"Agriculture & Forestry",
|
|
233
|
+
"Art & Design",
|
|
234
|
+
"Automotive",
|
|
235
|
+
"Aviation",
|
|
236
|
+
"Education",
|
|
237
|
+
"Energy & Utilities",
|
|
238
|
+
"Engineering & Architecture",
|
|
239
|
+
"Fashion & Beauty",
|
|
240
|
+
"Finance & Accounting",
|
|
241
|
+
"Food & Beverage",
|
|
242
|
+
"Government & Public Sector",
|
|
243
|
+
"Health & Fitness",
|
|
244
|
+
"HR & Business Services",
|
|
245
|
+
"Legal",
|
|
246
|
+
"Manufacturing & Construction",
|
|
247
|
+
"Media & Entertainment",
|
|
248
|
+
"Military & Defense",
|
|
249
|
+
"Mining",
|
|
250
|
+
"Real Estate",
|
|
251
|
+
"Retail & Consumer Goods",
|
|
252
|
+
"Sales & Marketing",
|
|
253
|
+
"Science & Medicine",
|
|
254
|
+
"Sports & Recreation",
|
|
255
|
+
"Supply Chain & Logistics",
|
|
256
|
+
"Tech & IT",
|
|
257
|
+
"Transportation & Warehousing",
|
|
258
|
+
"Travel & Hospitality",
|
|
259
|
+
],
|
|
260
|
+
CLIENT_SIZE: [
|
|
261
|
+
"Individual client",
|
|
262
|
+
"Small company (2-9 people)",
|
|
263
|
+
"Mid-sized company (10-99 people)",
|
|
264
|
+
"Large company (100-1,000 people)",
|
|
265
|
+
"Large company (1,000+ people)",
|
|
266
|
+
"Unspecified",
|
|
267
|
+
],
|
|
268
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getNextStatus = exports.getPreviousStatus = exports.jobStatusOrder = void 0;
|
|
4
|
+
exports.jobStatusOrder = [
|
|
5
|
+
"leads",
|
|
6
|
+
"contacted",
|
|
7
|
+
"viewed",
|
|
8
|
+
"replied",
|
|
9
|
+
"negotiations",
|
|
10
|
+
"won",
|
|
11
|
+
"lost",
|
|
12
|
+
];
|
|
13
|
+
const getPreviousStatus = (status) => {
|
|
14
|
+
if (status === "won")
|
|
15
|
+
return "negotiations";
|
|
16
|
+
if (status === "lost")
|
|
17
|
+
return "negotiations";
|
|
18
|
+
const index = exports.jobStatusOrder.indexOf(status);
|
|
19
|
+
return index > 0 ? exports.jobStatusOrder[index - 1] : null;
|
|
20
|
+
};
|
|
21
|
+
exports.getPreviousStatus = getPreviousStatus;
|
|
22
|
+
const getNextStatus = (status) => {
|
|
23
|
+
const index = exports.jobStatusOrder.indexOf(status);
|
|
24
|
+
return index < exports.jobStatusOrder.length - 1 ? exports.jobStatusOrder[index + 1] : null;
|
|
25
|
+
};
|
|
26
|
+
exports.getNextStatus = getNextStatus;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const countryMapping = {
|
|
4
|
+
USA: "United States",
|
|
5
|
+
GBR: "United Kingdom",
|
|
6
|
+
AUS: "Australia",
|
|
7
|
+
CAN: "Canada",
|
|
8
|
+
IND: "India",
|
|
9
|
+
NLD: "Netherlands",
|
|
10
|
+
ARE: "United Arab Emirates",
|
|
11
|
+
DEU: "Germany",
|
|
12
|
+
SAU: "Saudi Arabia",
|
|
13
|
+
FRA: "France",
|
|
14
|
+
TUR: "Turkey",
|
|
15
|
+
CHE: "Switzerland",
|
|
16
|
+
ISR: "Israel",
|
|
17
|
+
ITA: "Italy",
|
|
18
|
+
ESP: "Spain",
|
|
19
|
+
PAK: "Pakistan",
|
|
20
|
+
SGP: "Singapore",
|
|
21
|
+
KAZ: "Kazakhstan",
|
|
22
|
+
UKR: "Ukraine",
|
|
23
|
+
IRL: "Ireland",
|
|
24
|
+
SWE: "Sweden",
|
|
25
|
+
ZAF: "South Africa",
|
|
26
|
+
CHN: "China",
|
|
27
|
+
NOR: "Norway",
|
|
28
|
+
POL: "Poland",
|
|
29
|
+
COL: "Colombia",
|
|
30
|
+
NZL: "New Zealand",
|
|
31
|
+
ROU: "Romania",
|
|
32
|
+
BRA: "Brazil",
|
|
33
|
+
GRC: "Greece",
|
|
34
|
+
BGR: "Bulgaria",
|
|
35
|
+
DNK: "Denmark",
|
|
36
|
+
PHL: "Philippines",
|
|
37
|
+
BEL: "Belgium",
|
|
38
|
+
AUT: "Austria",
|
|
39
|
+
HKG: "Hong Kong",
|
|
40
|
+
QAT: "Qatar",
|
|
41
|
+
BGD: "Bangladesh",
|
|
42
|
+
PRT: "Portugal",
|
|
43
|
+
CYP: "Cyprus",
|
|
44
|
+
LKA: "Sri Lanka",
|
|
45
|
+
NGA: "Nigeria",
|
|
46
|
+
VNM: "Vietnam",
|
|
47
|
+
JPN: "Japan",
|
|
48
|
+
LVA: "Latvia",
|
|
49
|
+
THA: "Thailand",
|
|
50
|
+
CZE: "Czech Republic",
|
|
51
|
+
MEX: "Mexico",
|
|
52
|
+
EGY: "Egypt",
|
|
53
|
+
KEN: "Kenya",
|
|
54
|
+
KWT: "Kuwait",
|
|
55
|
+
CHL: "Chile",
|
|
56
|
+
EST: "Estonia",
|
|
57
|
+
UZB: "Uzbekistan",
|
|
58
|
+
FIN: "Finland",
|
|
59
|
+
HRV: "Croatia",
|
|
60
|
+
HUN: "Hungary",
|
|
61
|
+
KOR: "South Korea",
|
|
62
|
+
LTU: "Lithuania",
|
|
63
|
+
PRI: "Puerto Rico",
|
|
64
|
+
ALB: "Albania",
|
|
65
|
+
BHR: "Bahrain",
|
|
66
|
+
GEO: "Georgia",
|
|
67
|
+
GTM: "Guatemala",
|
|
68
|
+
IDN: "Indonesia",
|
|
69
|
+
LBN: "Lebanon",
|
|
70
|
+
UGA: "Uganda",
|
|
71
|
+
ARG: "Argentina",
|
|
72
|
+
ARM: "Armenia",
|
|
73
|
+
BMU: "Bermuda",
|
|
74
|
+
CRI: "Costa Rica",
|
|
75
|
+
CYM: "Cayman Islands",
|
|
76
|
+
GHA: "Ghana",
|
|
77
|
+
ISL: "Iceland",
|
|
78
|
+
JOR: "Jordan",
|
|
79
|
+
LUX: "Luxembourg",
|
|
80
|
+
MAR: "Morocco",
|
|
81
|
+
MKD: "Macedonia",
|
|
82
|
+
MLT: "Malta",
|
|
83
|
+
MYS: "Malaysia",
|
|
84
|
+
OMN: "Oman",
|
|
85
|
+
SRB: "Serbia",
|
|
86
|
+
TWN: "Taiwan",
|
|
87
|
+
BHS: "Bahamas",
|
|
88
|
+
DZA: "Algeria",
|
|
89
|
+
ETH: "Ethiopia",
|
|
90
|
+
GUY: "Guyana",
|
|
91
|
+
PAN: "Panama",
|
|
92
|
+
PER: "Peru",
|
|
93
|
+
SVK: "Slovakia",
|
|
94
|
+
SVN: "Slovenia",
|
|
95
|
+
TTO: "Trinidad and Tobago",
|
|
96
|
+
URY: "Uruguay",
|
|
97
|
+
VEN: "Venezuela",
|
|
98
|
+
VIR: "Virgin Islands",
|
|
99
|
+
ABW: "Aruba",
|
|
100
|
+
CMR: "Cameroon",
|
|
101
|
+
CUW: "Curaçao",
|
|
102
|
+
GIB: "Gibraltar",
|
|
103
|
+
HND: "Honduras",
|
|
104
|
+
JAM: "Jamaica",
|
|
105
|
+
JEY: "Jersey",
|
|
106
|
+
MDV: "Maldives",
|
|
107
|
+
MUS: "Mauritius",
|
|
108
|
+
TUN: "Tunisia",
|
|
109
|
+
RUS: "Russia",
|
|
110
|
+
IRN: "Iran",
|
|
111
|
+
IRQ: "Iraq",
|
|
112
|
+
AZE: "Azerbaijan",
|
|
113
|
+
CIV: "Cote d'Ivoire",
|
|
114
|
+
PSE: "Palestine",
|
|
115
|
+
MNE: "Montenegro",
|
|
116
|
+
BIH: "Bosnia and Herzegovina",
|
|
117
|
+
IMN: "Isle of Man",
|
|
118
|
+
PNG: "Papua New Guinea",
|
|
119
|
+
VCT: "Saint Vincent and the Grenadines",
|
|
120
|
+
VGB: "British Virgin Islands",
|
|
121
|
+
};
|
|
122
|
+
exports.default = countryMapping;
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const regionMapping = {
|
|
4
|
+
Africa: [
|
|
5
|
+
"Algeria",
|
|
6
|
+
"Angola",
|
|
7
|
+
"Benin",
|
|
8
|
+
"Botswana",
|
|
9
|
+
"Burkina Faso",
|
|
10
|
+
"Burundi",
|
|
11
|
+
"Cabo Verde",
|
|
12
|
+
"Cameroon",
|
|
13
|
+
"Central African Republic",
|
|
14
|
+
"Chad",
|
|
15
|
+
"Comoros",
|
|
16
|
+
"Congo",
|
|
17
|
+
"Congo, the Democratic Republic of the",
|
|
18
|
+
"Cote d'Ivoire",
|
|
19
|
+
"Djibouti",
|
|
20
|
+
"Egypt",
|
|
21
|
+
"Equatorial Guinea",
|
|
22
|
+
"Eritrea",
|
|
23
|
+
"Eswatini",
|
|
24
|
+
"Ethiopia",
|
|
25
|
+
"Gabon",
|
|
26
|
+
"Gambia",
|
|
27
|
+
"Ghana",
|
|
28
|
+
"Guinea",
|
|
29
|
+
"Guinea-Bissau",
|
|
30
|
+
"Kenya",
|
|
31
|
+
"Lesotho",
|
|
32
|
+
"Liberia",
|
|
33
|
+
"Libya",
|
|
34
|
+
"Madagascar",
|
|
35
|
+
"Malawi",
|
|
36
|
+
"Mali",
|
|
37
|
+
"Mauritania",
|
|
38
|
+
"Mauritius",
|
|
39
|
+
"Morocco",
|
|
40
|
+
"Mozambique",
|
|
41
|
+
"Namibia",
|
|
42
|
+
"Niger",
|
|
43
|
+
"Nigeria",
|
|
44
|
+
"Rwanda",
|
|
45
|
+
"Sao Tome and Principe",
|
|
46
|
+
"Senegal",
|
|
47
|
+
"Seychelles",
|
|
48
|
+
"Sierra Leone",
|
|
49
|
+
"Somalia",
|
|
50
|
+
"South Africa",
|
|
51
|
+
"South Sudan",
|
|
52
|
+
"Sudan",
|
|
53
|
+
"Tanzania",
|
|
54
|
+
"Togo",
|
|
55
|
+
"Tunisia",
|
|
56
|
+
"Uganda",
|
|
57
|
+
"Zambia",
|
|
58
|
+
"Zimbabwe",
|
|
59
|
+
],
|
|
60
|
+
Americas: [
|
|
61
|
+
"Anguilla",
|
|
62
|
+
"Antigua and Barbuda",
|
|
63
|
+
"Argentina",
|
|
64
|
+
"Aruba",
|
|
65
|
+
"Bahamas",
|
|
66
|
+
"Barbados",
|
|
67
|
+
"Belize",
|
|
68
|
+
"Bermuda",
|
|
69
|
+
"Bolivia",
|
|
70
|
+
"Brazil",
|
|
71
|
+
"British Virgin Islands",
|
|
72
|
+
"Canada",
|
|
73
|
+
"Cayman Islands",
|
|
74
|
+
"Chile",
|
|
75
|
+
"Colombia",
|
|
76
|
+
"Costa Rica",
|
|
77
|
+
"Cuba",
|
|
78
|
+
"Curacao",
|
|
79
|
+
"Dominica",
|
|
80
|
+
"Dominican Republic",
|
|
81
|
+
"Ecuador",
|
|
82
|
+
"El Salvador",
|
|
83
|
+
"Falkland Islands",
|
|
84
|
+
"French Guiana",
|
|
85
|
+
"Grenada",
|
|
86
|
+
"Guadeloupe",
|
|
87
|
+
"Guatemala",
|
|
88
|
+
"Guyana",
|
|
89
|
+
"Haiti",
|
|
90
|
+
"Honduras",
|
|
91
|
+
"Jamaica",
|
|
92
|
+
"Martinique",
|
|
93
|
+
"Mexico",
|
|
94
|
+
"Montserrat",
|
|
95
|
+
"Nicaragua",
|
|
96
|
+
"Panama",
|
|
97
|
+
"Paraguay",
|
|
98
|
+
"Peru",
|
|
99
|
+
"Puerto Rico",
|
|
100
|
+
"Saint Kitts and Nevis",
|
|
101
|
+
"Saint Lucia",
|
|
102
|
+
"Saint Vincent and the Grenadines",
|
|
103
|
+
"Suriname",
|
|
104
|
+
"Trinidad and Tobago",
|
|
105
|
+
"Turks and Caicos Islands",
|
|
106
|
+
"United States",
|
|
107
|
+
"United States Virgin Islands",
|
|
108
|
+
"Uruguay",
|
|
109
|
+
"Venezuela",
|
|
110
|
+
],
|
|
111
|
+
Antarctica: ["French Southern And Antarctic Lands"],
|
|
112
|
+
Asia: [
|
|
113
|
+
"Afghanistan",
|
|
114
|
+
"Armenia",
|
|
115
|
+
"Azerbaijan",
|
|
116
|
+
"Bahrain",
|
|
117
|
+
"Bangladesh",
|
|
118
|
+
"Bhutan",
|
|
119
|
+
"Brunei Darussalam",
|
|
120
|
+
"Cambodia",
|
|
121
|
+
"China",
|
|
122
|
+
"East Timor",
|
|
123
|
+
"Georgia",
|
|
124
|
+
"Hong Kong",
|
|
125
|
+
"India",
|
|
126
|
+
"Indonesia",
|
|
127
|
+
"Iran",
|
|
128
|
+
"Iraq",
|
|
129
|
+
"Israel",
|
|
130
|
+
"Japan",
|
|
131
|
+
"Jordan",
|
|
132
|
+
"Kazakhstan",
|
|
133
|
+
"Kuwait",
|
|
134
|
+
"Kyrgyzstan",
|
|
135
|
+
"Laos",
|
|
136
|
+
"Lebanon",
|
|
137
|
+
"Macao",
|
|
138
|
+
"Malaysia",
|
|
139
|
+
"Maldives",
|
|
140
|
+
"Mongolia",
|
|
141
|
+
"Myanmar",
|
|
142
|
+
"Nepal",
|
|
143
|
+
"Palestine",
|
|
144
|
+
"Oman",
|
|
145
|
+
"Pakistan",
|
|
146
|
+
"Palestinian Territories",
|
|
147
|
+
"Philippines",
|
|
148
|
+
"Qatar",
|
|
149
|
+
"Russia",
|
|
150
|
+
"Saudi Arabia",
|
|
151
|
+
"Singapore",
|
|
152
|
+
"South Korea",
|
|
153
|
+
"Sri Lanka",
|
|
154
|
+
"Syria",
|
|
155
|
+
"Taiwan",
|
|
156
|
+
"Tajikistan",
|
|
157
|
+
"Turkey",
|
|
158
|
+
"Thailand",
|
|
159
|
+
"Turkmenistan",
|
|
160
|
+
"United Arab Emirates",
|
|
161
|
+
"Uzbekistan",
|
|
162
|
+
"Vietnam",
|
|
163
|
+
"Yemen",
|
|
164
|
+
],
|
|
165
|
+
Europe: [
|
|
166
|
+
"Albania",
|
|
167
|
+
"Andorra",
|
|
168
|
+
"Austria",
|
|
169
|
+
"Belarus",
|
|
170
|
+
"Belgium",
|
|
171
|
+
"Bosnia and Herzegovina",
|
|
172
|
+
"Bulgaria",
|
|
173
|
+
"Croatia",
|
|
174
|
+
"Cyprus",
|
|
175
|
+
"Czech Republic",
|
|
176
|
+
"Denmark",
|
|
177
|
+
"Estonia",
|
|
178
|
+
"Faroe Islands",
|
|
179
|
+
"Finland",
|
|
180
|
+
"France",
|
|
181
|
+
"Germany",
|
|
182
|
+
"Gibraltar",
|
|
183
|
+
"Greece",
|
|
184
|
+
"Guernsey",
|
|
185
|
+
"Hungary",
|
|
186
|
+
"Iceland",
|
|
187
|
+
"Ireland",
|
|
188
|
+
"Isle of Man",
|
|
189
|
+
"Italy",
|
|
190
|
+
"Jersey",
|
|
191
|
+
"Latvia",
|
|
192
|
+
"Liechtenstein",
|
|
193
|
+
"Lithuania",
|
|
194
|
+
"Luxembourg",
|
|
195
|
+
"Malta",
|
|
196
|
+
"Moldova",
|
|
197
|
+
"Monaco",
|
|
198
|
+
"Montenegro",
|
|
199
|
+
"Netherlands",
|
|
200
|
+
"Macedonia",
|
|
201
|
+
"Norway",
|
|
202
|
+
"Poland",
|
|
203
|
+
"Portugal",
|
|
204
|
+
"Romania",
|
|
205
|
+
"San Marino",
|
|
206
|
+
"Serbia",
|
|
207
|
+
"Slovakia",
|
|
208
|
+
"Slovenia",
|
|
209
|
+
"Spain",
|
|
210
|
+
"Sweden",
|
|
211
|
+
"Switzerland",
|
|
212
|
+
"Ukraine",
|
|
213
|
+
"United Kingdom",
|
|
214
|
+
"Vatican City",
|
|
215
|
+
],
|
|
216
|
+
Oceania: [
|
|
217
|
+
"American Samoa",
|
|
218
|
+
"Australia",
|
|
219
|
+
"Cook Islands",
|
|
220
|
+
"Fiji",
|
|
221
|
+
"French Polynesia",
|
|
222
|
+
"Guam",
|
|
223
|
+
"Kiribati",
|
|
224
|
+
"Marshall Islands",
|
|
225
|
+
"Micronesia",
|
|
226
|
+
"Nauru",
|
|
227
|
+
"New Caledonia",
|
|
228
|
+
"New Zealand",
|
|
229
|
+
"Niue",
|
|
230
|
+
"Northern Mariana Islands",
|
|
231
|
+
"Palau",
|
|
232
|
+
"Papua New Guinea",
|
|
233
|
+
"Samoa",
|
|
234
|
+
"Solomon Islands",
|
|
235
|
+
"Tokelau",
|
|
236
|
+
"Tonga",
|
|
237
|
+
"Tuvalu",
|
|
238
|
+
"Vanuatu",
|
|
239
|
+
"Wallis and Futuna",
|
|
240
|
+
],
|
|
241
|
+
};
|
|
242
|
+
exports.default = regionMapping;
|