lancer-shared 1.2.26 → 1.2.28
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 +11808 -11402
- package/dist/constants/campaign-notifications.d.ts +2 -0
- package/dist/constants/routes.d.ts +12 -8
- package/dist/constants/upwork-accounts.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/schemas/account/account-status.d.ts +2 -2
- package/dist/schemas/account/bidder-account.d.ts +285 -35
- package/dist/schemas/account/exceptions/index.d.ts +3 -0
- package/dist/schemas/account/exceptions/invalid-google-oauth-token.exception.d.ts +5 -0
- package/dist/schemas/account/exceptions/no-bidder-accounts-available.exception.d.ts +5 -0
- package/dist/schemas/account/exceptions/no-google-oauth-tokens-found.exception.d.ts +5 -0
- package/dist/schemas/account/index.d.ts +4 -3
- package/dist/schemas/account/scraper-account.d.ts +7 -7
- package/dist/schemas/bid/exceptions/cloudflare-challenge-failed.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/delete-multilogin-profile.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/dropdown-option-not-present.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/element-not-clickable.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/evalaute-element.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/evaluate-function.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/get-multilogin-browser.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/incorrect-security-question-answer.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/index.d.ts +61 -0
- package/dist/schemas/bid/exceptions/init-browser.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/insufficient-connects.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/invalid-credentials.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/invalid-job-url.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/login-failed.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/multilogin-authentication.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/navigation-timeout.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/new-browser-page.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/new-page.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/open-new-url.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/parse-connects.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/proposal-error-alert.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/proposal-form-warning-alert.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/proposal-submit-failed.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/pupeteer-conection-error.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/question-pair-not-matching.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/select-agency.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/select-contractor.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/selector-not-found.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/typed-value-not-matching.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/typing-input-field.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/wait-for-function-timeout.exception.d.ts +5 -0
- package/dist/schemas/bid/index.d.ts +1 -0
- package/dist/schemas/campaign/campaign-notifications.d.ts +9 -0
- package/dist/schemas/campaign/campaign.d.ts +171 -238
- package/dist/schemas/campaign/index.d.ts +6 -6
- package/dist/schemas/logger/log-event.d.ts +18 -17
- package/dist/schemas/organization/index.d.ts +5 -62
- package/dist/schemas/organization/organization.d.ts +22 -118
- package/dist/schemas/scraper/scrape-payload.d.ts +65 -60
- package/dist/types/campaign/campaign-insights.d.ts +1 -2
- package/dist/types/campaign/campaign-notifications.d.ts +7 -0
- package/dist/types/campaign/campaign.d.ts +3 -5
- package/dist/types/campaign/index.d.ts +3 -6
- package/dist/types/logger/log-event.d.ts +5 -4
- package/package.json +1 -1
- 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/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.js +0 -13
- 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.js +0 -10
- package/dist/schemas/chat-message/index.js +0 -1
- package/dist/schemas/config/agency-config.js +0 -7
- 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.js +0 -1
- package/dist/schemas/job-filters/job-filters.js +0 -84
- package/dist/schemas/lead/index.js +0 -173
- package/dist/schemas/lead/lead-note.js +0 -27
- package/dist/schemas/lead/lead-status.js +0 -23
- 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.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.js +0 -1
- package/dist/types/account/bidder-account.js +0 -1
- package/dist/types/account/index.js +0 -3
- 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.js +0 -1
- package/dist/types/bid/bid.js +0 -1
- package/dist/types/bid/index.js +0 -2
- package/dist/types/campaign/campaign-analytics.js +0 -1
- package/dist/types/campaign/campaign-expenses.js +0 -1
- package/dist/types/campaign/campaign-insights.js +0 -1
- package/dist/types/campaign/campaign-integrations.js +0 -1
- 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.js +0 -1
- package/dist/types/chat-message/index.js +0 -1
- package/dist/types/config/agency-config.js +0 -1
- package/dist/types/config/index.js +0 -1
- package/dist/types/index.js +0 -15
- package/dist/types/job/index.js +0 -3
- package/dist/types/job/job-note.js +0 -1
- package/dist/types/job/job-status.js +0 -9
- package/dist/types/job/nuxt.js +0 -1
- package/dist/types/job-filters/index.js +0 -1
- package/dist/types/job-filters/job-filters.js +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.js +0 -1
- package/dist/types/scraper/index.js +0 -2
- package/dist/types/scraper/scrape-payload.js +0 -1
- package/dist/types/scraper/scrape-result.js +0 -1
- package/dist/types/shared.js +0 -1
- package/dist/types/time-filter/index.js +0 -1
- package/dist/types/transaction/index.js +0 -1
- package/dist/types/usage/index.js +0 -1
- package/dist/types/user/index.js +0 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/try-catch.js +0 -10
|
@@ -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
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const questionAnswerPairSchema: z.ZodObject<{
|
|
3
|
-
question: z.ZodString;
|
|
4
|
-
answer: z.ZodString;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
question: string;
|
|
7
|
-
answer: string;
|
|
8
|
-
}, {
|
|
9
|
-
question: string;
|
|
10
|
-
answer: string;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const proposalSchema: z.ZodObject<{
|
|
13
|
-
coverLetter: z.ZodString;
|
|
14
|
-
questionAnswerPairs: z.ZodArray<z.ZodObject<{
|
|
15
|
-
question: z.ZodString;
|
|
16
|
-
answer: z.ZodString;
|
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
question: string;
|
|
19
|
-
answer: string;
|
|
20
|
-
}, {
|
|
21
|
-
question: string;
|
|
22
|
-
answer: string;
|
|
23
|
-
}>, "many">;
|
|
24
|
-
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
coverLetter: string;
|
|
26
|
-
questionAnswerPairs: {
|
|
27
|
-
question: string;
|
|
28
|
-
answer: string;
|
|
29
|
-
}[];
|
|
30
|
-
}, {
|
|
31
|
-
coverLetter: string;
|
|
32
|
-
questionAnswerPairs: {
|
|
33
|
-
question: string;
|
|
34
|
-
answer: string;
|
|
35
|
-
}[];
|
|
36
|
-
}>;
|
|
37
|
-
export declare const proposalResponseSchema: z.ZodArray<z.ZodObject<{
|
|
38
|
-
modelName: z.ZodString;
|
|
39
|
-
proposal: z.ZodObject<{
|
|
40
|
-
coverLetter: z.ZodString;
|
|
41
|
-
questionAnswerPairs: z.ZodArray<z.ZodObject<{
|
|
42
|
-
question: z.ZodString;
|
|
43
|
-
answer: z.ZodString;
|
|
44
|
-
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
question: string;
|
|
46
|
-
answer: string;
|
|
47
|
-
}, {
|
|
48
|
-
question: string;
|
|
49
|
-
answer: string;
|
|
50
|
-
}>, "many">;
|
|
51
|
-
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
coverLetter: string;
|
|
53
|
-
questionAnswerPairs: {
|
|
54
|
-
question: string;
|
|
55
|
-
answer: string;
|
|
56
|
-
}[];
|
|
57
|
-
}, {
|
|
58
|
-
coverLetter: string;
|
|
59
|
-
questionAnswerPairs: {
|
|
60
|
-
question: string;
|
|
61
|
-
answer: string;
|
|
62
|
-
}[];
|
|
63
|
-
}>;
|
|
64
|
-
}, "strip", z.ZodTypeAny, {
|
|
65
|
-
modelName: string;
|
|
66
|
-
proposal: {
|
|
67
|
-
coverLetter: string;
|
|
68
|
-
questionAnswerPairs: {
|
|
69
|
-
question: string;
|
|
70
|
-
answer: string;
|
|
71
|
-
}[];
|
|
72
|
-
};
|
|
73
|
-
}, {
|
|
74
|
-
modelName: string;
|
|
75
|
-
proposal: {
|
|
76
|
-
coverLetter: string;
|
|
77
|
-
questionAnswerPairs: {
|
|
78
|
-
question: string;
|
|
79
|
-
answer: string;
|
|
80
|
-
}[];
|
|
81
|
-
};
|
|
82
|
-
}>, "many">;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export const questionAnswerPairSchema = z.object({
|
|
3
|
-
question: z.string(),
|
|
4
|
-
answer: z.string(),
|
|
5
|
-
});
|
|
6
|
-
export const proposalSchema = z.object({
|
|
7
|
-
coverLetter: z.string(),
|
|
8
|
-
questionAnswerPairs: z.array(questionAnswerPairSchema),
|
|
9
|
-
});
|
|
10
|
-
export const proposalResponseSchema = z.array(z.object({
|
|
11
|
-
modelName: z.string(),
|
|
12
|
-
proposal: proposalSchema,
|
|
13
|
-
}));
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const suitabilitySchema: z.ZodObject<{
|
|
3
|
-
rating: z.ZodString;
|
|
4
|
-
reason: z.ZodString;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
rating: string;
|
|
7
|
-
reason: string;
|
|
8
|
-
}, {
|
|
9
|
-
rating: string;
|
|
10
|
-
reason: string;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const suitabilityStatusSchema: z.ZodEnum<["completed", "pending", "failed"]>;
|
|
13
|
-
export declare const suitabilityResponseSchema: z.ZodArray<z.ZodObject<{
|
|
14
|
-
modelName: z.ZodString;
|
|
15
|
-
suitability: z.ZodObject<{
|
|
16
|
-
rating: z.ZodString;
|
|
17
|
-
reason: z.ZodString;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
rating: string;
|
|
20
|
-
reason: string;
|
|
21
|
-
}, {
|
|
22
|
-
rating: string;
|
|
23
|
-
reason: string;
|
|
24
|
-
}>;
|
|
25
|
-
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
modelName: string;
|
|
27
|
-
suitability: {
|
|
28
|
-
rating: string;
|
|
29
|
-
reason: string;
|
|
30
|
-
};
|
|
31
|
-
}, {
|
|
32
|
-
modelName: string;
|
|
33
|
-
suitability: {
|
|
34
|
-
rating: string;
|
|
35
|
-
reason: string;
|
|
36
|
-
};
|
|
37
|
-
}>, "many">;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export const suitabilitySchema = z.object({
|
|
3
|
-
rating: z.string(),
|
|
4
|
-
reason: z.string(),
|
|
5
|
-
});
|
|
6
|
-
export const suitabilityStatusSchema = z.enum([
|
|
7
|
-
'completed',
|
|
8
|
-
'pending',
|
|
9
|
-
'failed',
|
|
10
|
-
]);
|
|
11
|
-
export const suitabilityResponseSchema = z.array(z.object({
|
|
12
|
-
modelName: z.string(),
|
|
13
|
-
suitability: suitabilitySchema,
|
|
14
|
-
}));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export const bidSuccessSchema = z.object({
|
|
3
|
-
status: z.literal('success'),
|
|
4
|
-
biddingAmount: z.number(),
|
|
5
|
-
boosted: z.boolean(),
|
|
6
|
-
boostingAmount: z.number(),
|
|
7
|
-
});
|
|
8
|
-
export const bidFailedSchema = z.object({
|
|
9
|
-
status: z.literal('failed'),
|
|
10
|
-
errorMessage: z.string(),
|
|
11
|
-
});
|