lancer-shared 1.2.74 → 1.2.76
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 +6 -0
- package/dist/constants/routes.d.ts +1 -0
- package/dist/schemas/campaign/campaign-analytics.d.ts +24 -24
- package/dist/schemas/logger/log-event.d.ts +11 -0
- package/dist/schemas/proxy/proxy-available-replacements.d.ts +1 -1
- package/package.json +1 -1
- package/dist/constants/collections.d.ts +0 -13
- package/dist/constants/collections.js +0 -14
- package/dist/constants/common-questions.js +0 -57
- package/dist/constants/index.js +0 -18
- package/dist/constants/job-filter-options.js +0 -265
- package/dist/constants/job-status.js +0 -21
- package/dist/constants/mappings/countryMapping.js +0 -120
- package/dist/constants/mappings/regionMapping.js +0 -240
- package/dist/constants/organization.d.ts +0 -2
- package/dist/constants/routes.js +0 -116
- package/dist/constants/upwork-accounts.js +0 -18
- package/dist/index.js +0 -4
- package/dist/schemas/account/account-status.js +0 -8
- package/dist/schemas/account/bidder-account.js +0 -35
- package/dist/schemas/account/index.js +0 -3
- package/dist/schemas/account/scraper-account.js +0 -34
- package/dist/schemas/ai/ai-config.d.ts +0 -36
- package/dist/schemas/ai/ai-config.js +0 -9
- package/dist/schemas/ai/index.d.ts +0 -3
- package/dist/schemas/ai/index.js +0 -3
- package/dist/schemas/ai/proposal.d.ts +0 -82
- package/dist/schemas/ai/proposal.js +0 -13
- package/dist/schemas/ai/suitability.d.ts +0 -37
- package/dist/schemas/ai/suitability.js +0 -14
- package/dist/schemas/bid/bid-result.js +0 -11
- package/dist/schemas/bid/bid.js +0 -35
- package/dist/schemas/bid/index.js +0 -2
- package/dist/schemas/campaign/campaign-ai-metrics.js +0 -6
- package/dist/schemas/campaign/campaign-analytics.js +0 -42
- package/dist/schemas/campaign/campaign-expenses.js +0 -6
- package/dist/schemas/campaign/campaign-insights.js +0 -31
- package/dist/schemas/campaign/campaign-integrations.d.ts +0 -87
- package/dist/schemas/campaign/campaign-integrations.js +0 -13
- package/dist/schemas/campaign/campaign-job-count.d.ts +0 -2
- package/dist/schemas/campaign/campaign-job-count.js +0 -3
- package/dist/schemas/campaign/campaign.js +0 -41
- package/dist/schemas/campaign/index.js +0 -7
- package/dist/schemas/chat-message/chat-message.d.ts +0 -31
- package/dist/schemas/chat-message/chat-message.js +0 -10
- package/dist/schemas/chat-message/index.d.ts +0 -1
- package/dist/schemas/chat-message/index.js +0 -1
- package/dist/schemas/config/agency-config.d.ts +0 -17
- package/dist/schemas/config/agency-config.js +0 -7
- package/dist/schemas/config/index.d.ts +0 -1
- package/dist/schemas/config/index.js +0 -1
- package/dist/schemas/event/index.d.ts +0 -58
- package/dist/schemas/index.js +0 -17
- package/dist/schemas/job-filters/index.d.ts +0 -1
- package/dist/schemas/job-filters/index.js +0 -1
- package/dist/schemas/job-filters/job-filters.d.ts +0 -241
- package/dist/schemas/job-filters/job-filters.js +0 -84
- package/dist/schemas/lead/index.js +0 -173
- package/dist/schemas/lead/lead-note.d.ts +0 -83
- package/dist/schemas/lead/lead-note.js +0 -27
- package/dist/schemas/lead/lead-status.js +0 -23
- package/dist/schemas/lead/nuxt.d.ts +0 -1664
- package/dist/schemas/lead/nuxt.js +0 -287
- package/dist/schemas/logger/index.js +0 -1
- package/dist/schemas/logger/log-event.js +0 -117
- package/dist/schemas/meter-event/index.d.ts +0 -12
- package/dist/schemas/organization/index.js +0 -70
- package/dist/schemas/organization/member.js +0 -7
- package/dist/schemas/organization/organization.d.ts +0 -240
- package/dist/schemas/organization/organization.js +0 -16
- package/dist/schemas/organization/subscription.js +0 -17
- package/dist/schemas/proxy/index.js +0 -3
- package/dist/schemas/proxy/proxy-available-replacements.js +0 -3
- package/dist/schemas/proxy/proxy-country.js +0 -249
- package/dist/schemas/proxy/proxy.js +0 -29
- package/dist/schemas/saved-search/index.js +0 -9
- package/dist/schemas/scraper/index.js +0 -2
- package/dist/schemas/scraper/scrape-payload.js +0 -21
- package/dist/schemas/scraper/scrape-result.js +0 -23
- package/dist/schemas/shared.js +0 -19
- package/dist/schemas/tier/index.d.ts +0 -119
- package/dist/schemas/time-filter/index.js +0 -6
- package/dist/schemas/transaction/index.js +0 -17
- package/dist/schemas/usage/index.js +0 -18
- package/dist/schemas/user/index.js +0 -52
- package/dist/types/account/account-status.d.ts +0 -3
- package/dist/types/account/account-status.js +0 -1
- package/dist/types/account/bidder-account.d.ts +0 -7
- package/dist/types/account/bidder-account.js +0 -1
- package/dist/types/account/index.d.ts +0 -3
- package/dist/types/account/index.js +0 -3
- package/dist/types/account/scraper-account.d.ts +0 -5
- package/dist/types/account/scraper-account.js +0 -1
- package/dist/types/ai/ai-config.d.ts +0 -6
- package/dist/types/ai/ai-config.js +0 -1
- package/dist/types/ai/index.d.ts +0 -3
- package/dist/types/ai/index.js +0 -3
- package/dist/types/ai/proposal.d.ts +0 -10
- package/dist/types/ai/proposal.js +0 -1
- package/dist/types/ai/suitability.d.ts +0 -6
- package/dist/types/ai/suitability.js +0 -1
- package/dist/types/bid/bid-result.d.ts +0 -5
- package/dist/types/bid/bid-result.js +0 -1
- package/dist/types/bid/bid.d.ts +0 -9
- package/dist/types/bid/bid.js +0 -1
- package/dist/types/bid/index.d.ts +0 -2
- package/dist/types/bid/index.js +0 -2
- package/dist/types/campaign/campaign-analytics.d.ts +0 -7
- package/dist/types/campaign/campaign-analytics.js +0 -1
- package/dist/types/campaign/campaign-expenses.d.ts +0 -3
- package/dist/types/campaign/campaign-expenses.js +0 -1
- package/dist/types/campaign/campaign-insights.js +0 -1
- package/dist/types/campaign/campaign-integrations.d.ts +0 -6
- package/dist/types/campaign/campaign-integrations.js +0 -1
- package/dist/types/campaign/campaign-job-count.d.ts +0 -4
- package/dist/types/campaign/campaign-job-count.js +0 -1
- package/dist/types/campaign/campaign.js +0 -1
- package/dist/types/campaign/index.js +0 -6
- package/dist/types/chat-message/chat-message.d.ts +0 -4
- package/dist/types/chat-message/chat-message.js +0 -1
- package/dist/types/chat-message/index.d.ts +0 -1
- package/dist/types/chat-message/index.js +0 -1
- package/dist/types/config/agency-config.d.ts +0 -4
- package/dist/types/config/agency-config.js +0 -1
- package/dist/types/config/index.d.ts +0 -1
- package/dist/types/config/index.js +0 -1
- package/dist/types/index.d.ts +0 -15
- package/dist/types/index.js +0 -15
- package/dist/types/job/index.d.ts +0 -48
- package/dist/types/job/index.js +0 -3
- package/dist/types/job/job-note.d.ts +0 -10
- package/dist/types/job/job-note.js +0 -1
- package/dist/types/job/job-status.d.ts +0 -5
- package/dist/types/job/job-status.js +0 -9
- package/dist/types/job/nuxt.d.ts +0 -4
- package/dist/types/job/nuxt.js +0 -1
- package/dist/types/job-filters/index.d.ts +0 -1
- package/dist/types/job-filters/index.js +0 -1
- package/dist/types/job-filters/job-filters.d.ts +0 -4
- package/dist/types/job-filters/job-filters.js +0 -1
- package/dist/types/logger/index.d.ts +0 -1
- package/dist/types/logger/index.js +0 -1
- package/dist/types/logger/log-event.js +0 -1
- package/dist/types/saved-search/index.d.ts +0 -6
- package/dist/types/saved-search/index.js +0 -1
- package/dist/types/scraper/index.d.ts +0 -2
- package/dist/types/scraper/index.js +0 -2
- package/dist/types/scraper/scrape-payload.d.ts +0 -10
- package/dist/types/scraper/scrape-payload.js +0 -1
- package/dist/types/scraper/scrape-result.d.ts +0 -8
- package/dist/types/scraper/scrape-result.js +0 -1
- package/dist/types/shared.d.ts +0 -8
- package/dist/types/shared.js +0 -1
- package/dist/types/time-filter/index.d.ts +0 -3
- package/dist/types/time-filter/index.js +0 -1
- package/dist/types/transaction/index.d.ts +0 -4
- package/dist/types/transaction/index.js +0 -1
- package/dist/types/usage/index.d.ts +0 -6
- package/dist/types/usage/index.js +0 -1
- package/dist/types/user/index.d.ts +0 -15
- package/dist/types/user/index.js +0 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/try-catch.js +0 -10
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export const jobStatusOrder = [
|
|
2
|
-
"leads",
|
|
3
|
-
"contacted",
|
|
4
|
-
"viewed",
|
|
5
|
-
"replied",
|
|
6
|
-
"negotiations",
|
|
7
|
-
"won",
|
|
8
|
-
"lost",
|
|
9
|
-
];
|
|
10
|
-
export const getPreviousStatus = (status) => {
|
|
11
|
-
if (status === "won")
|
|
12
|
-
return "negotiations";
|
|
13
|
-
if (status === "lost")
|
|
14
|
-
return "negotiations";
|
|
15
|
-
const index = jobStatusOrder.indexOf(status);
|
|
16
|
-
return index > 0 ? jobStatusOrder[index - 1] : null;
|
|
17
|
-
};
|
|
18
|
-
export const getNextStatus = (status) => {
|
|
19
|
-
const index = jobStatusOrder.indexOf(status);
|
|
20
|
-
return index < jobStatusOrder.length - 1 ? jobStatusOrder[index + 1] : null;
|
|
21
|
-
};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
const countryMapping = {
|
|
2
|
-
USA: "United States",
|
|
3
|
-
GBR: "United Kingdom",
|
|
4
|
-
AUS: "Australia",
|
|
5
|
-
CAN: "Canada",
|
|
6
|
-
IND: "India",
|
|
7
|
-
NLD: "Netherlands",
|
|
8
|
-
ARE: "United Arab Emirates",
|
|
9
|
-
DEU: "Germany",
|
|
10
|
-
SAU: "Saudi Arabia",
|
|
11
|
-
FRA: "France",
|
|
12
|
-
TUR: "Turkey",
|
|
13
|
-
CHE: "Switzerland",
|
|
14
|
-
ISR: "Israel",
|
|
15
|
-
ITA: "Italy",
|
|
16
|
-
ESP: "Spain",
|
|
17
|
-
PAK: "Pakistan",
|
|
18
|
-
SGP: "Singapore",
|
|
19
|
-
KAZ: "Kazakhstan",
|
|
20
|
-
UKR: "Ukraine",
|
|
21
|
-
IRL: "Ireland",
|
|
22
|
-
SWE: "Sweden",
|
|
23
|
-
ZAF: "South Africa",
|
|
24
|
-
CHN: "China",
|
|
25
|
-
NOR: "Norway",
|
|
26
|
-
POL: "Poland",
|
|
27
|
-
COL: "Colombia",
|
|
28
|
-
NZL: "New Zealand",
|
|
29
|
-
ROU: "Romania",
|
|
30
|
-
BRA: "Brazil",
|
|
31
|
-
GRC: "Greece",
|
|
32
|
-
BGR: "Bulgaria",
|
|
33
|
-
DNK: "Denmark",
|
|
34
|
-
PHL: "Philippines",
|
|
35
|
-
BEL: "Belgium",
|
|
36
|
-
AUT: "Austria",
|
|
37
|
-
HKG: "Hong Kong",
|
|
38
|
-
QAT: "Qatar",
|
|
39
|
-
BGD: "Bangladesh",
|
|
40
|
-
PRT: "Portugal",
|
|
41
|
-
CYP: "Cyprus",
|
|
42
|
-
LKA: "Sri Lanka",
|
|
43
|
-
NGA: "Nigeria",
|
|
44
|
-
VNM: "Vietnam",
|
|
45
|
-
JPN: "Japan",
|
|
46
|
-
LVA: "Latvia",
|
|
47
|
-
THA: "Thailand",
|
|
48
|
-
CZE: "Czech Republic",
|
|
49
|
-
MEX: "Mexico",
|
|
50
|
-
EGY: "Egypt",
|
|
51
|
-
KEN: "Kenya",
|
|
52
|
-
KWT: "Kuwait",
|
|
53
|
-
CHL: "Chile",
|
|
54
|
-
EST: "Estonia",
|
|
55
|
-
UZB: "Uzbekistan",
|
|
56
|
-
FIN: "Finland",
|
|
57
|
-
HRV: "Croatia",
|
|
58
|
-
HUN: "Hungary",
|
|
59
|
-
KOR: "South Korea",
|
|
60
|
-
LTU: "Lithuania",
|
|
61
|
-
PRI: "Puerto Rico",
|
|
62
|
-
ALB: "Albania",
|
|
63
|
-
BHR: "Bahrain",
|
|
64
|
-
GEO: "Georgia",
|
|
65
|
-
GTM: "Guatemala",
|
|
66
|
-
IDN: "Indonesia",
|
|
67
|
-
LBN: "Lebanon",
|
|
68
|
-
UGA: "Uganda",
|
|
69
|
-
ARG: "Argentina",
|
|
70
|
-
ARM: "Armenia",
|
|
71
|
-
BMU: "Bermuda",
|
|
72
|
-
CRI: "Costa Rica",
|
|
73
|
-
CYM: "Cayman Islands",
|
|
74
|
-
GHA: "Ghana",
|
|
75
|
-
ISL: "Iceland",
|
|
76
|
-
JOR: "Jordan",
|
|
77
|
-
LUX: "Luxembourg",
|
|
78
|
-
MAR: "Morocco",
|
|
79
|
-
MKD: "Macedonia",
|
|
80
|
-
MLT: "Malta",
|
|
81
|
-
MYS: "Malaysia",
|
|
82
|
-
OMN: "Oman",
|
|
83
|
-
SRB: "Serbia",
|
|
84
|
-
TWN: "Taiwan",
|
|
85
|
-
BHS: "Bahamas",
|
|
86
|
-
DZA: "Algeria",
|
|
87
|
-
ETH: "Ethiopia",
|
|
88
|
-
GUY: "Guyana",
|
|
89
|
-
PAN: "Panama",
|
|
90
|
-
PER: "Peru",
|
|
91
|
-
SVK: "Slovakia",
|
|
92
|
-
SVN: "Slovenia",
|
|
93
|
-
TTO: "Trinidad and Tobago",
|
|
94
|
-
URY: "Uruguay",
|
|
95
|
-
VEN: "Venezuela",
|
|
96
|
-
VIR: "Virgin Islands",
|
|
97
|
-
ABW: "Aruba",
|
|
98
|
-
CMR: "Cameroon",
|
|
99
|
-
CUW: "Curaçao",
|
|
100
|
-
GIB: "Gibraltar",
|
|
101
|
-
HND: "Honduras",
|
|
102
|
-
JAM: "Jamaica",
|
|
103
|
-
JEY: "Jersey",
|
|
104
|
-
MDV: "Maldives",
|
|
105
|
-
MUS: "Mauritius",
|
|
106
|
-
TUN: "Tunisia",
|
|
107
|
-
RUS: "Russia",
|
|
108
|
-
IRN: "Iran",
|
|
109
|
-
IRQ: "Iraq",
|
|
110
|
-
AZE: "Azerbaijan",
|
|
111
|
-
CIV: "Cote d'Ivoire",
|
|
112
|
-
PSE: "Palestine",
|
|
113
|
-
MNE: "Montenegro",
|
|
114
|
-
BIH: "Bosnia and Herzegovina",
|
|
115
|
-
IMN: "Isle of Man",
|
|
116
|
-
PNG: "Papua New Guinea",
|
|
117
|
-
VCT: "Saint Vincent and the Grenadines",
|
|
118
|
-
VGB: "British Virgin Islands",
|
|
119
|
-
};
|
|
120
|
-
export default countryMapping;
|
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
const regionMapping = {
|
|
2
|
-
Africa: [
|
|
3
|
-
"Algeria",
|
|
4
|
-
"Angola",
|
|
5
|
-
"Benin",
|
|
6
|
-
"Botswana",
|
|
7
|
-
"Burkina Faso",
|
|
8
|
-
"Burundi",
|
|
9
|
-
"Cabo Verde",
|
|
10
|
-
"Cameroon",
|
|
11
|
-
"Central African Republic",
|
|
12
|
-
"Chad",
|
|
13
|
-
"Comoros",
|
|
14
|
-
"Congo",
|
|
15
|
-
"Congo, the Democratic Republic of the",
|
|
16
|
-
"Cote d'Ivoire",
|
|
17
|
-
"Djibouti",
|
|
18
|
-
"Egypt",
|
|
19
|
-
"Equatorial Guinea",
|
|
20
|
-
"Eritrea",
|
|
21
|
-
"Eswatini",
|
|
22
|
-
"Ethiopia",
|
|
23
|
-
"Gabon",
|
|
24
|
-
"Gambia",
|
|
25
|
-
"Ghana",
|
|
26
|
-
"Guinea",
|
|
27
|
-
"Guinea-Bissau",
|
|
28
|
-
"Kenya",
|
|
29
|
-
"Lesotho",
|
|
30
|
-
"Liberia",
|
|
31
|
-
"Libya",
|
|
32
|
-
"Madagascar",
|
|
33
|
-
"Malawi",
|
|
34
|
-
"Mali",
|
|
35
|
-
"Mauritania",
|
|
36
|
-
"Mauritius",
|
|
37
|
-
"Morocco",
|
|
38
|
-
"Mozambique",
|
|
39
|
-
"Namibia",
|
|
40
|
-
"Niger",
|
|
41
|
-
"Nigeria",
|
|
42
|
-
"Rwanda",
|
|
43
|
-
"Sao Tome and Principe",
|
|
44
|
-
"Senegal",
|
|
45
|
-
"Seychelles",
|
|
46
|
-
"Sierra Leone",
|
|
47
|
-
"Somalia",
|
|
48
|
-
"South Africa",
|
|
49
|
-
"South Sudan",
|
|
50
|
-
"Sudan",
|
|
51
|
-
"Tanzania",
|
|
52
|
-
"Togo",
|
|
53
|
-
"Tunisia",
|
|
54
|
-
"Uganda",
|
|
55
|
-
"Zambia",
|
|
56
|
-
"Zimbabwe",
|
|
57
|
-
],
|
|
58
|
-
Americas: [
|
|
59
|
-
"Anguilla",
|
|
60
|
-
"Antigua and Barbuda",
|
|
61
|
-
"Argentina",
|
|
62
|
-
"Aruba",
|
|
63
|
-
"Bahamas",
|
|
64
|
-
"Barbados",
|
|
65
|
-
"Belize",
|
|
66
|
-
"Bermuda",
|
|
67
|
-
"Bolivia",
|
|
68
|
-
"Brazil",
|
|
69
|
-
"British Virgin Islands",
|
|
70
|
-
"Canada",
|
|
71
|
-
"Cayman Islands",
|
|
72
|
-
"Chile",
|
|
73
|
-
"Colombia",
|
|
74
|
-
"Costa Rica",
|
|
75
|
-
"Cuba",
|
|
76
|
-
"Curacao",
|
|
77
|
-
"Dominica",
|
|
78
|
-
"Dominican Republic",
|
|
79
|
-
"Ecuador",
|
|
80
|
-
"El Salvador",
|
|
81
|
-
"Falkland Islands",
|
|
82
|
-
"French Guiana",
|
|
83
|
-
"Grenada",
|
|
84
|
-
"Guadeloupe",
|
|
85
|
-
"Guatemala",
|
|
86
|
-
"Guyana",
|
|
87
|
-
"Haiti",
|
|
88
|
-
"Honduras",
|
|
89
|
-
"Jamaica",
|
|
90
|
-
"Martinique",
|
|
91
|
-
"Mexico",
|
|
92
|
-
"Montserrat",
|
|
93
|
-
"Nicaragua",
|
|
94
|
-
"Panama",
|
|
95
|
-
"Paraguay",
|
|
96
|
-
"Peru",
|
|
97
|
-
"Puerto Rico",
|
|
98
|
-
"Saint Kitts and Nevis",
|
|
99
|
-
"Saint Lucia",
|
|
100
|
-
"Saint Vincent and the Grenadines",
|
|
101
|
-
"Suriname",
|
|
102
|
-
"Trinidad and Tobago",
|
|
103
|
-
"Turks and Caicos Islands",
|
|
104
|
-
"United States",
|
|
105
|
-
"United States Virgin Islands",
|
|
106
|
-
"Uruguay",
|
|
107
|
-
"Venezuela",
|
|
108
|
-
],
|
|
109
|
-
Antarctica: ["French Southern And Antarctic Lands"],
|
|
110
|
-
Asia: [
|
|
111
|
-
"Afghanistan",
|
|
112
|
-
"Armenia",
|
|
113
|
-
"Azerbaijan",
|
|
114
|
-
"Bahrain",
|
|
115
|
-
"Bangladesh",
|
|
116
|
-
"Bhutan",
|
|
117
|
-
"Brunei Darussalam",
|
|
118
|
-
"Cambodia",
|
|
119
|
-
"China",
|
|
120
|
-
"East Timor",
|
|
121
|
-
"Georgia",
|
|
122
|
-
"Hong Kong",
|
|
123
|
-
"India",
|
|
124
|
-
"Indonesia",
|
|
125
|
-
"Iran",
|
|
126
|
-
"Iraq",
|
|
127
|
-
"Israel",
|
|
128
|
-
"Japan",
|
|
129
|
-
"Jordan",
|
|
130
|
-
"Kazakhstan",
|
|
131
|
-
"Kuwait",
|
|
132
|
-
"Kyrgyzstan",
|
|
133
|
-
"Laos",
|
|
134
|
-
"Lebanon",
|
|
135
|
-
"Macao",
|
|
136
|
-
"Malaysia",
|
|
137
|
-
"Maldives",
|
|
138
|
-
"Mongolia",
|
|
139
|
-
"Myanmar",
|
|
140
|
-
"Nepal",
|
|
141
|
-
"Palestine",
|
|
142
|
-
"Oman",
|
|
143
|
-
"Pakistan",
|
|
144
|
-
"Palestinian Territories",
|
|
145
|
-
"Philippines",
|
|
146
|
-
"Qatar",
|
|
147
|
-
"Russia",
|
|
148
|
-
"Saudi Arabia",
|
|
149
|
-
"Singapore",
|
|
150
|
-
"South Korea",
|
|
151
|
-
"Sri Lanka",
|
|
152
|
-
"Syria",
|
|
153
|
-
"Taiwan",
|
|
154
|
-
"Tajikistan",
|
|
155
|
-
"Turkey",
|
|
156
|
-
"Thailand",
|
|
157
|
-
"Turkmenistan",
|
|
158
|
-
"United Arab Emirates",
|
|
159
|
-
"Uzbekistan",
|
|
160
|
-
"Vietnam",
|
|
161
|
-
"Yemen",
|
|
162
|
-
],
|
|
163
|
-
Europe: [
|
|
164
|
-
"Albania",
|
|
165
|
-
"Andorra",
|
|
166
|
-
"Austria",
|
|
167
|
-
"Belarus",
|
|
168
|
-
"Belgium",
|
|
169
|
-
"Bosnia and Herzegovina",
|
|
170
|
-
"Bulgaria",
|
|
171
|
-
"Croatia",
|
|
172
|
-
"Cyprus",
|
|
173
|
-
"Czech Republic",
|
|
174
|
-
"Denmark",
|
|
175
|
-
"Estonia",
|
|
176
|
-
"Faroe Islands",
|
|
177
|
-
"Finland",
|
|
178
|
-
"France",
|
|
179
|
-
"Germany",
|
|
180
|
-
"Gibraltar",
|
|
181
|
-
"Greece",
|
|
182
|
-
"Guernsey",
|
|
183
|
-
"Hungary",
|
|
184
|
-
"Iceland",
|
|
185
|
-
"Ireland",
|
|
186
|
-
"Isle of Man",
|
|
187
|
-
"Italy",
|
|
188
|
-
"Jersey",
|
|
189
|
-
"Latvia",
|
|
190
|
-
"Liechtenstein",
|
|
191
|
-
"Lithuania",
|
|
192
|
-
"Luxembourg",
|
|
193
|
-
"Malta",
|
|
194
|
-
"Moldova",
|
|
195
|
-
"Monaco",
|
|
196
|
-
"Montenegro",
|
|
197
|
-
"Netherlands",
|
|
198
|
-
"Macedonia",
|
|
199
|
-
"Norway",
|
|
200
|
-
"Poland",
|
|
201
|
-
"Portugal",
|
|
202
|
-
"Romania",
|
|
203
|
-
"San Marino",
|
|
204
|
-
"Serbia",
|
|
205
|
-
"Slovakia",
|
|
206
|
-
"Slovenia",
|
|
207
|
-
"Spain",
|
|
208
|
-
"Sweden",
|
|
209
|
-
"Switzerland",
|
|
210
|
-
"Ukraine",
|
|
211
|
-
"United Kingdom",
|
|
212
|
-
"Vatican City",
|
|
213
|
-
],
|
|
214
|
-
Oceania: [
|
|
215
|
-
"American Samoa",
|
|
216
|
-
"Australia",
|
|
217
|
-
"Cook Islands",
|
|
218
|
-
"Fiji",
|
|
219
|
-
"French Polynesia",
|
|
220
|
-
"Guam",
|
|
221
|
-
"Kiribati",
|
|
222
|
-
"Marshall Islands",
|
|
223
|
-
"Micronesia",
|
|
224
|
-
"Nauru",
|
|
225
|
-
"New Caledonia",
|
|
226
|
-
"New Zealand",
|
|
227
|
-
"Niue",
|
|
228
|
-
"Northern Mariana Islands",
|
|
229
|
-
"Palau",
|
|
230
|
-
"Papua New Guinea",
|
|
231
|
-
"Samoa",
|
|
232
|
-
"Solomon Islands",
|
|
233
|
-
"Tokelau",
|
|
234
|
-
"Tonga",
|
|
235
|
-
"Tuvalu",
|
|
236
|
-
"Vanuatu",
|
|
237
|
-
"Wallis and Futuna",
|
|
238
|
-
],
|
|
239
|
-
};
|
|
240
|
-
export default regionMapping;
|
package/dist/constants/routes.js
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
export const ROUTES = {
|
|
2
|
-
AUTH: {
|
|
3
|
-
BASE: "auth",
|
|
4
|
-
REGISTER: "auth/register",
|
|
5
|
-
},
|
|
6
|
-
EVENTS: {
|
|
7
|
-
BASE: "events",
|
|
8
|
-
BY_ID: (id) => `events/${id}`,
|
|
9
|
-
},
|
|
10
|
-
CAMPAIGNS: {
|
|
11
|
-
BASE: "campaigns",
|
|
12
|
-
BY_ID: (id) => `campaigns/${id}`,
|
|
13
|
-
LEADS: {
|
|
14
|
-
BASE: (campaignId) => `campaigns/${campaignId}/leads`,
|
|
15
|
-
BY_ID: (campaignId, leadId) => `campaigns/${campaignId}/leads/${leadId}`,
|
|
16
|
-
SYNC: (campaignId) => `campaigns/${campaignId}/leads/sync`,
|
|
17
|
-
NOTES: (campaignId, leadId, noteId) => `campaigns/${campaignId}/leads/${leadId}/notes/${noteId}`,
|
|
18
|
-
SEARCH: (campaignId) => `campaigns/${campaignId}/leads/search`,
|
|
19
|
-
},
|
|
20
|
-
INSIGHTS: (campaignId) => `campaigns/${campaignId}/insights`,
|
|
21
|
-
AI_METRICS: (campaignId) => `campaigns/${campaignId}/ai-metrics`,
|
|
22
|
-
CONNECT_SAVED: (campaignId) => `campaigns/${campaignId}/get-connects-saved`,
|
|
23
|
-
ANALYTICS: (campaignId, timeFilter) => `campaigns/${campaignId}/analytics?createdAt=${timeFilter}`,
|
|
24
|
-
ACTIVITY: (campaignId, status, offset, limit) => `campaigns/${campaignId}/activity?status=${status}&offset=${offset}&limit=${limit}`,
|
|
25
|
-
INTEGRATIONS: {
|
|
26
|
-
BASE: (campaignId) => `campaigns/${campaignId}/integrations`,
|
|
27
|
-
TEST_SUITABILITY_WEBHOOK: (campaignId, integrationId) => `campaigns/${campaignId}/integrations/${integrationId}/suitability/test-webhook`,
|
|
28
|
-
TEST_PROPOSAL_WEBHOOK: (campaignId, integrationId) => `campaigns/${campaignId}/integrations/${integrationId}/proposal/test-webhook`,
|
|
29
|
-
SUITABILITY_NOTIFICATION: (campaignId, leadId) => `campaigns/${campaignId}/integrations/suitability/notify/${leadId}`,
|
|
30
|
-
PROPOSAL_SENT_NOTIFICATION: (campaignId, leadId) => `campaigns/${campaignId}/integrations/proposal-sent/notify/${leadId}`,
|
|
31
|
-
SLACK: {
|
|
32
|
-
BASE: (campaignId) => `campaigns/${campaignId}/integrations/slack`,
|
|
33
|
-
TEST_SUITABILITY_WEBHOOK: (campaignId) => `campaigns/${campaignId}/integrations/slack/suitability/test-webhook`,
|
|
34
|
-
TEST_PROPOSAL_WEBHOOK: (campaignId) => `campaigns/${campaignId}/integrations/slack/proposal/test-webhook`,
|
|
35
|
-
},
|
|
36
|
-
DISCORD: {
|
|
37
|
-
BASE: (campaignId) => `campaigns/${campaignId}/integrations/discord`,
|
|
38
|
-
TEST_SUITABILITY_WEBHOOK: (campaignId) => `campaigns/${campaignId}/integrations/discord/suitability/test-webhook`,
|
|
39
|
-
TEST_PROPOSAL_WEBHOOK: (campaignId) => `campaigns/${campaignId}/integrations/discord/proposal/test-webhook`,
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
JOBS: {
|
|
44
|
-
BASE: "jobs",
|
|
45
|
-
BY_ID: (id) => `jobs/${id}`,
|
|
46
|
-
BY_URL: (url) => `jobs/${encodeURIComponent(url)}`,
|
|
47
|
-
IMPORT: "jobs/import",
|
|
48
|
-
FILTER_OPTIONS: "jobs/filter-options",
|
|
49
|
-
TOTAL_JOBS: "jobs/total-jobs",
|
|
50
|
-
GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
|
|
51
|
-
SEARCH: "jobs/search",
|
|
52
|
-
},
|
|
53
|
-
USERS: {
|
|
54
|
-
BASE: "users",
|
|
55
|
-
BY_ID: (id) => `users/${id}`,
|
|
56
|
-
},
|
|
57
|
-
AI_CONFIG: {
|
|
58
|
-
BASE: "ai-config",
|
|
59
|
-
GENERATE_KNOWLEDGE_BASE: "ai-config/generate-knowledge-base",
|
|
60
|
-
},
|
|
61
|
-
COOKIES: {
|
|
62
|
-
BASE: "cookies",
|
|
63
|
-
SCRAPE: "cookies/scrape-cookies",
|
|
64
|
-
},
|
|
65
|
-
SCRAPING: {
|
|
66
|
-
BASE: "scraping",
|
|
67
|
-
START_SCRAPING: "scraping/start",
|
|
68
|
-
START_WORLDWIDE_SCRAPING: "scraping/start-worldwide",
|
|
69
|
-
START_US_SCRAPING: "scraping/start-us",
|
|
70
|
-
START_UK_SCRAPING: "scraping/start-uk",
|
|
71
|
-
UPDATE_ACTIVITY_4H_WORLDWIDE: "scraping/update-activity/4h",
|
|
72
|
-
UPDATE_ACTIVITY_4H_UK: "scraping/update-activity/4h/uk",
|
|
73
|
-
UPDATE_ACTIVITY_4H_US: "scraping/update-activity/4h/us",
|
|
74
|
-
UPDATE_ACTIVITY_24H_WORLDWIDE: "scraping/update-activity/24h",
|
|
75
|
-
UPDATE_ACTIVITY_24H_UK: "scraping/update-activity/24h/uk",
|
|
76
|
-
UPDATE_ACTIVITY_24H_US: "scraping/update-activity/24h/us",
|
|
77
|
-
SCRAPE_FEED_WORLDWIDE: "scraping/feed-worldwide",
|
|
78
|
-
SCRAPE_FEED_UK: "scraping/feed-uk",
|
|
79
|
-
SCRAPE_FEED_US: "scraping/feed-us",
|
|
80
|
-
SCRAPE_JOB: "scraping/job",
|
|
81
|
-
SCRAPE_JOB_ACTIVITY: "scraping/job-activity",
|
|
82
|
-
},
|
|
83
|
-
ADMIN: {
|
|
84
|
-
BASE: "admin",
|
|
85
|
-
BIDDER_ACCOUNTS: {
|
|
86
|
-
BASE: "admin/bidder-accounts",
|
|
87
|
-
BY_ID: (id) => `admin/bidder-accounts/${id}`,
|
|
88
|
-
BY_PROVIDER: (provider) => `admin/bidder-accounts/${provider}`,
|
|
89
|
-
BY_PROVIDER_AND_ID: (provider, id) => `admin/bidder-accounts/${provider}/${id}`,
|
|
90
|
-
},
|
|
91
|
-
SCRAPER_ACCOUNTS: {
|
|
92
|
-
BASE: "admin/scraper-accounts",
|
|
93
|
-
BY_ID: (id) => `admin/scraper-accounts/${id}`,
|
|
94
|
-
BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
|
|
95
|
-
BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
|
|
96
|
-
},
|
|
97
|
-
PROXIES: {
|
|
98
|
-
BASE: "admin/proxies",
|
|
99
|
-
BY_ID: (id) => `admin/proxies/${id}`,
|
|
100
|
-
REPLACE_PROXY: (id) => `admin/proxies/${id}/replace`,
|
|
101
|
-
SYNC: "admin/proxies/sync",
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
BID: {
|
|
105
|
-
BASE: "bid",
|
|
106
|
-
BID_ON_JOB: (userId, campaignId, leadId) => `bid/${userId}/${campaignId}/${leadId}`,
|
|
107
|
-
},
|
|
108
|
-
};
|
|
109
|
-
// Helper function to build route with parameters
|
|
110
|
-
export const buildRoute = (route, params = {}) => {
|
|
111
|
-
let builtRoute = route;
|
|
112
|
-
Object.entries(params).forEach(([key, value]) => {
|
|
113
|
-
builtRoute = builtRoute.replace(`:${key}`, value);
|
|
114
|
-
});
|
|
115
|
-
return builtRoute;
|
|
116
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export const accountStatusOrder = [
|
|
2
|
-
'verification_required',
|
|
3
|
-
'shadow_banned',
|
|
4
|
-
'healthy',
|
|
5
|
-
'banned',
|
|
6
|
-
'suspended',
|
|
7
|
-
];
|
|
8
|
-
export const accountStatusDisplayMap = {
|
|
9
|
-
verification_required: 'Verification Required',
|
|
10
|
-
shadow_banned: 'Shadow Banned',
|
|
11
|
-
healthy: 'Healthy',
|
|
12
|
-
banned: 'Banned',
|
|
13
|
-
suspended: 'Suspended',
|
|
14
|
-
};
|
|
15
|
-
export const bidderAccountProviderDisplayMap = {
|
|
16
|
-
'lancer-provided': 'Lancer Provided',
|
|
17
|
-
'user-provided': 'User Provided',
|
|
18
|
-
};
|
package/dist/index.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { accountStatusSchema } from "./account-status";
|
|
3
|
-
export const bidderAccountProvider = z.enum([
|
|
4
|
-
"user-provided",
|
|
5
|
-
"lancer-provided",
|
|
6
|
-
]);
|
|
7
|
-
export const bidderAccountSchema = z.object({
|
|
8
|
-
id: z.string(),
|
|
9
|
-
provider: bidderAccountProvider,
|
|
10
|
-
email: z.string().email(),
|
|
11
|
-
password: z.string(),
|
|
12
|
-
cookies: z.array(z.any()).nullable(),
|
|
13
|
-
status: accountStatusSchema,
|
|
14
|
-
verified: z.boolean(),
|
|
15
|
-
isActive: z.boolean(),
|
|
16
|
-
assignedOrganizations: z.array(z.string()),
|
|
17
|
-
lastUsed: z.number().nullable(),
|
|
18
|
-
multiLoginProfileId: z.string().nullable(),
|
|
19
|
-
proxyId: z.string().nullable(),
|
|
20
|
-
createdAt: z.number(),
|
|
21
|
-
updatedAt: z.number(),
|
|
22
|
-
});
|
|
23
|
-
export const createBidderAccountSchema = bidderAccountSchema.pick({
|
|
24
|
-
email: true,
|
|
25
|
-
password: true,
|
|
26
|
-
provider: true,
|
|
27
|
-
status: true,
|
|
28
|
-
verified: true,
|
|
29
|
-
isActive: true,
|
|
30
|
-
});
|
|
31
|
-
export const updateBidderAccountSchema = bidderAccountSchema
|
|
32
|
-
.omit({
|
|
33
|
-
id: true,
|
|
34
|
-
})
|
|
35
|
-
.partial();
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { accountStatusSchema } from './account-status';
|
|
3
|
-
import { regionEnum } from '../job-filters';
|
|
4
|
-
export const scraperAccountSchema = z.object({
|
|
5
|
-
id: z.string(),
|
|
6
|
-
email: z.string().email(),
|
|
7
|
-
password: z.string(),
|
|
8
|
-
cookies: z.record(z.string(), z.string()),
|
|
9
|
-
proxy_credentials: z.string(),
|
|
10
|
-
region: regionEnum,
|
|
11
|
-
isActive: z.boolean(),
|
|
12
|
-
lastUsed: z.number(),
|
|
13
|
-
status: accountStatusSchema,
|
|
14
|
-
verified: z.boolean(),
|
|
15
|
-
errors: z.array(z.object({
|
|
16
|
-
errorMessage: z.string(),
|
|
17
|
-
timestamp: z.number(),
|
|
18
|
-
screenshotUrl: z.string(),
|
|
19
|
-
htmlUrl: z.string(),
|
|
20
|
-
})),
|
|
21
|
-
});
|
|
22
|
-
export const createScraperAccountSchema = scraperAccountSchema.pick({
|
|
23
|
-
email: true,
|
|
24
|
-
password: true,
|
|
25
|
-
proxy_credentials: true,
|
|
26
|
-
region: true,
|
|
27
|
-
verified: true,
|
|
28
|
-
isActive: true,
|
|
29
|
-
});
|
|
30
|
-
export const updateScraperAccountSchema = scraperAccountSchema
|
|
31
|
-
.omit({
|
|
32
|
-
id: true,
|
|
33
|
-
})
|
|
34
|
-
.partial();
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const aiConfigSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
suitabilityPrompt: z.ZodNullable<z.ZodString>;
|
|
5
|
-
proposalPrompt: z.ZodNullable<z.ZodString>;
|
|
6
|
-
questionProposalPrompt: z.ZodNullable<z.ZodString>;
|
|
7
|
-
knowledgeBase: z.ZodNullable<z.ZodString>;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
id: string;
|
|
10
|
-
suitabilityPrompt: string | null;
|
|
11
|
-
proposalPrompt: string | null;
|
|
12
|
-
questionProposalPrompt: string | null;
|
|
13
|
-
knowledgeBase: string | null;
|
|
14
|
-
}, {
|
|
15
|
-
id: string;
|
|
16
|
-
suitabilityPrompt: string | null;
|
|
17
|
-
proposalPrompt: string | null;
|
|
18
|
-
questionProposalPrompt: string | null;
|
|
19
|
-
knowledgeBase: string | null;
|
|
20
|
-
}>;
|
|
21
|
-
export declare const updateAiConfigSchema: z.ZodObject<{
|
|
22
|
-
suitabilityPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
-
proposalPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
-
questionProposalPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
knowledgeBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
suitabilityPrompt?: string | null | undefined;
|
|
28
|
-
proposalPrompt?: string | null | undefined;
|
|
29
|
-
questionProposalPrompt?: string | null | undefined;
|
|
30
|
-
knowledgeBase?: string | null | undefined;
|
|
31
|
-
}, {
|
|
32
|
-
suitabilityPrompt?: string | null | undefined;
|
|
33
|
-
proposalPrompt?: string | null | undefined;
|
|
34
|
-
questionProposalPrompt?: string | null | undefined;
|
|
35
|
-
knowledgeBase?: string | null | undefined;
|
|
36
|
-
}>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export const aiConfigSchema = z.object({
|
|
3
|
-
id: z.string(),
|
|
4
|
-
suitabilityPrompt: z.string().nullable(),
|
|
5
|
-
proposalPrompt: z.string().nullable(),
|
|
6
|
-
questionProposalPrompt: z.string().nullable(),
|
|
7
|
-
knowledgeBase: z.string().nullable(),
|
|
8
|
-
});
|
|
9
|
-
export const updateAiConfigSchema = aiConfigSchema.omit({ id: true }).partial();
|
package/dist/schemas/ai/index.js
DELETED