lancer-shared 1.2.122 → 1.2.124
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 +298 -287
- package/dist/constants/job-filter-options.d.ts +2 -2
- package/dist/schemas/account/scraper-account.d.ts +11 -9
- package/dist/schemas/job/feed-job.d.ts +36 -12
- package/dist/schemas/job/job-filters.d.ts +14 -13
- package/dist/schemas/logger/log-event.d.ts +1067 -247
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -66,274 +66,276 @@ const invoiceStatusNames = {
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
const JOB_FILTER_OPTIONS = {
|
|
69
|
-
REGIONS: [
|
|
69
|
+
REGIONS: ['Worldwide', 'USOnly', 'UKOnly'],
|
|
70
70
|
PROJECT_DURATION: [
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
'Less than 1 month',
|
|
72
|
+
'1 to 3 months',
|
|
73
|
+
'3 to 6 months',
|
|
74
|
+
'More than 6 months',
|
|
75
|
+
'Unspecified',
|
|
76
76
|
],
|
|
77
77
|
ENGAGEMENT_TYPE: [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
'Less than 30 hrs/week',
|
|
79
|
+
'More than 30 hrs/week',
|
|
80
|
+
'Unspecified',
|
|
81
81
|
],
|
|
82
|
-
VENDOR_TYPE: [
|
|
83
|
-
PAYMENT_TYPE: [
|
|
84
|
-
TALENT_TYPE: [
|
|
82
|
+
VENDOR_TYPE: ['Independent', 'Agency', 'Unspecified'],
|
|
83
|
+
PAYMENT_TYPE: ['Unspecified', 'Hourly', 'Fixed-price'],
|
|
84
|
+
TALENT_TYPE: ['Agency', 'Independent', 'Unspecified'],
|
|
85
85
|
ENGLISH_LEVELS: [
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
'Fluent',
|
|
87
|
+
'Conversational',
|
|
88
|
+
'Native or Bilingual',
|
|
89
|
+
'Unspecified',
|
|
90
90
|
],
|
|
91
|
-
EXPERIENCE_LEVELS: [
|
|
91
|
+
EXPERIENCE_LEVELS: ['Entry level', 'Intermediate', 'Expert'],
|
|
92
92
|
REQUIRED_EARNINGS: [100, 1000, 10000],
|
|
93
|
-
REQUIRED_JSS: [
|
|
93
|
+
REQUIRED_JSS: ['>80%', '>90%', '100%', 'RT'],
|
|
94
94
|
HIERARCHICAL_CATEGORIES: [
|
|
95
95
|
{
|
|
96
|
-
label:
|
|
97
|
-
value:
|
|
96
|
+
label: 'Accounting & Consulting',
|
|
97
|
+
value: 'accounting-consulting',
|
|
98
98
|
children: [
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
'Accounting & Bookkeeping',
|
|
100
|
+
'Financial Planning',
|
|
101
|
+
'Management Consulting & Analysis',
|
|
102
|
+
'Other - Accounting & Consulting',
|
|
103
|
+
'Personal & Professional Coaching',
|
|
104
|
+
'Recruiting & Human Resources',
|
|
105
105
|
],
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
|
-
label:
|
|
109
|
-
value:
|
|
108
|
+
label: 'Admin Support',
|
|
109
|
+
value: 'admin-support',
|
|
110
110
|
children: [
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
111
|
+
'Data Entry & Transcription Services',
|
|
112
|
+
'Market Research & Product Reviews',
|
|
113
|
+
'Project Management',
|
|
114
|
+
'Virtual Assistance',
|
|
115
115
|
],
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
|
-
label:
|
|
119
|
-
value:
|
|
118
|
+
label: 'Customer Service',
|
|
119
|
+
value: 'customer-service',
|
|
120
120
|
children: [
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
'Community Management & Tagging',
|
|
122
|
+
'Customer Service & Tech Support',
|
|
123
123
|
],
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
|
-
label:
|
|
127
|
-
value:
|
|
126
|
+
label: 'Data Science & Analytics',
|
|
127
|
+
value: 'data-science-analytics',
|
|
128
128
|
children: [
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
'AI & Machine Learning',
|
|
130
|
+
'Data Analysis & Testing',
|
|
131
|
+
'Data Extraction/ETL',
|
|
132
|
+
'Data Mining & Management',
|
|
133
133
|
],
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
|
-
label:
|
|
137
|
-
value:
|
|
136
|
+
label: 'Design & Creative',
|
|
137
|
+
value: 'design-creative',
|
|
138
138
|
children: [
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
139
|
+
'Art & Illustration',
|
|
140
|
+
'Audio & Music Production',
|
|
141
|
+
'Branding & Logo Design',
|
|
142
|
+
'Graphic, Editorial & Presentation Design',
|
|
143
|
+
'NFT, AR/VR & Game Art',
|
|
144
|
+
'Performing Arts',
|
|
145
|
+
'Photography',
|
|
146
|
+
'Product Design',
|
|
147
|
+
'Video & Animation',
|
|
148
148
|
],
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
|
-
label:
|
|
152
|
-
value:
|
|
151
|
+
label: 'Engineering & Architecture',
|
|
152
|
+
value: 'engineering-architecture',
|
|
153
153
|
children: [
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
154
|
+
'3D Modeling & CAD',
|
|
155
|
+
'Building & Landscape Architecture',
|
|
156
|
+
'Chemical Engineering',
|
|
157
|
+
'Civil & Structural Engineering',
|
|
158
|
+
'Contract Manufacturing',
|
|
159
|
+
'Electrical & Electronic Engineering',
|
|
160
|
+
'Energy & Mechanical Engineering',
|
|
161
161
|
],
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
|
-
label:
|
|
165
|
-
value:
|
|
164
|
+
label: 'IT & Networking',
|
|
165
|
+
value: 'it-networking',
|
|
166
166
|
children: [
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
167
|
+
'Database Management & Administration',
|
|
168
|
+
'DevOps & Solution Architecture',
|
|
169
|
+
'ERP/CRM Software',
|
|
170
|
+
'Information Security & Compliance',
|
|
171
|
+
'Network & System Administration',
|
|
172
172
|
],
|
|
173
173
|
},
|
|
174
174
|
{
|
|
175
|
-
label:
|
|
176
|
-
value:
|
|
175
|
+
label: 'Legal',
|
|
176
|
+
value: 'legal',
|
|
177
177
|
children: [
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
'Corporate & Contract Law',
|
|
179
|
+
'Finance & Tax Law',
|
|
180
|
+
'International & Immigration Law',
|
|
181
|
+
'Public Law',
|
|
182
182
|
],
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
|
-
label:
|
|
186
|
-
value:
|
|
185
|
+
label: 'Sales & Marketing',
|
|
186
|
+
value: 'sales-marketing',
|
|
187
187
|
children: [
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
'Digital Marketing',
|
|
189
|
+
'Lead Generation & Telemarketing',
|
|
190
|
+
'Marketing, PR & Brand Strategy',
|
|
191
191
|
],
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
|
-
label:
|
|
195
|
-
value:
|
|
194
|
+
label: 'Translation',
|
|
195
|
+
value: 'translation',
|
|
196
196
|
children: [
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
'Language Tutoring & Interpretation',
|
|
198
|
+
'Translation & Localization Services',
|
|
199
199
|
],
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
|
-
label:
|
|
203
|
-
value:
|
|
202
|
+
label: 'Software Development',
|
|
203
|
+
value: 'software-development',
|
|
204
204
|
children: [
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
205
|
+
'AI Apps & Integration',
|
|
206
|
+
'Blockchain, NFT & Cryptocurrency',
|
|
207
|
+
'Desktop Application Development',
|
|
208
|
+
'Ecommerce Development',
|
|
209
|
+
'Game Design & Development',
|
|
210
|
+
'Mobile Development',
|
|
211
|
+
'Other - Software Development',
|
|
212
|
+
'Product Management & Scrum',
|
|
213
|
+
'QA Testing',
|
|
214
|
+
'Scripts & Utilities',
|
|
215
|
+
'Web & Mobile Design',
|
|
216
|
+
'Web Development',
|
|
217
217
|
],
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
|
-
label:
|
|
221
|
-
value:
|
|
220
|
+
label: 'Writing',
|
|
221
|
+
value: 'writing',
|
|
222
222
|
children: [
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
223
|
+
'Content Writing',
|
|
224
|
+
'Editing & Proofreading Services',
|
|
225
|
+
'Professional & Business Writing',
|
|
226
|
+
'Sales & Marketing Copywriting',
|
|
227
227
|
],
|
|
228
228
|
},
|
|
229
229
|
],
|
|
230
230
|
CATEGORIES: [
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
231
|
+
'Interior & Trade Show Design',
|
|
232
|
+
'Physical Sciences',
|
|
233
|
+
'Personal & Professional Coaching',
|
|
234
|
+
'Accounting & Bookkeeping',
|
|
235
|
+
'Financial Planning',
|
|
236
|
+
'Recruiting & Human Resources',
|
|
237
|
+
'Management Consulting & Analysis',
|
|
238
|
+
'Other - Accounting & Consulting',
|
|
239
|
+
'Data Entry & Transcription Services',
|
|
240
|
+
'Virtual Assistance',
|
|
241
|
+
'Project Management',
|
|
242
|
+
'Market Research & Product Reviews',
|
|
243
|
+
'Community Management & Tagging',
|
|
244
|
+
'Customer Service & Tech Support',
|
|
245
|
+
'Data Analysis & Testing',
|
|
246
|
+
'Data Extraction/ETL',
|
|
247
|
+
'Data Mining & Management',
|
|
248
|
+
'AI & Machine Learning',
|
|
249
|
+
'Art & Illustration',
|
|
250
|
+
'Audio & Music Production',
|
|
251
|
+
'Branding & Logo Design',
|
|
252
|
+
'NFT, AR/VR & Game Art',
|
|
253
|
+
'Graphic, Editorial & Presentation Design',
|
|
254
|
+
'Performing Arts',
|
|
255
|
+
'Photography',
|
|
256
|
+
'Product Design',
|
|
257
|
+
'Video & Animation',
|
|
258
|
+
'Building & Landscape Architecture',
|
|
259
|
+
'Chemical Engineering',
|
|
260
|
+
'Civil & Structural Engineering',
|
|
261
|
+
'Contract Manufacturing',
|
|
262
|
+
'Electrical & Electronic Engineering',
|
|
263
|
+
'Energy & Mechanical Engineering',
|
|
264
|
+
'3D Modeling & CAD',
|
|
265
|
+
'Database Management & Administration',
|
|
266
|
+
'ERP/CRM Software',
|
|
267
|
+
'Information Security & Compliance',
|
|
268
|
+
'Network & System Administration',
|
|
269
|
+
'DevOps & Solution Architecture',
|
|
270
|
+
'Corporate & Contract Law',
|
|
271
|
+
'International & Immigration Law',
|
|
272
|
+
'Finance & Tax Law',
|
|
273
|
+
'Public Law',
|
|
274
|
+
'Digital Marketing',
|
|
275
|
+
'Lead Generation & Telemarketing',
|
|
276
|
+
'Marketing, PR & Brand Strategy',
|
|
277
|
+
'Language Tutoring & Interpretation',
|
|
278
|
+
'Translation & Localization Services',
|
|
279
|
+
'Blockchain, NFT & Cryptocurrency',
|
|
280
|
+
'AI Apps & Integration',
|
|
281
|
+
'Desktop Application Development',
|
|
282
|
+
'Ecommerce Development',
|
|
283
|
+
'Game Design & Development',
|
|
284
|
+
'Mobile Development',
|
|
285
|
+
'Other - Software Development',
|
|
286
|
+
'Product Management & Scrum',
|
|
287
|
+
'QA Testing',
|
|
288
|
+
'Scripts & Utilities',
|
|
289
|
+
'Web & Mobile Design',
|
|
290
|
+
'Web Development',
|
|
291
|
+
'Sales & Marketing Copywriting',
|
|
292
|
+
'Content Writing',
|
|
293
|
+
'Editing & Proofreading Services',
|
|
294
|
+
'Professional & Business Writing',
|
|
293
295
|
],
|
|
294
296
|
CLIENT_INDUSTRY: [
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
297
|
+
'Aerospace',
|
|
298
|
+
'Agriculture & Forestry',
|
|
299
|
+
'Art & Design',
|
|
300
|
+
'Automotive',
|
|
301
|
+
'Aviation',
|
|
302
|
+
'Education',
|
|
303
|
+
'Energy & Utilities',
|
|
304
|
+
'Engineering & Architecture',
|
|
305
|
+
'Fashion & Beauty',
|
|
306
|
+
'Finance & Accounting',
|
|
307
|
+
'Food & Beverage',
|
|
308
|
+
'Government & Public Sector',
|
|
309
|
+
'Health & Fitness',
|
|
310
|
+
'HR & Business Services',
|
|
311
|
+
'Legal',
|
|
312
|
+
'Manufacturing & Construction',
|
|
313
|
+
'Media & Entertainment',
|
|
314
|
+
'Military & Defense',
|
|
315
|
+
'Mining',
|
|
316
|
+
'Real Estate',
|
|
317
|
+
'Retail & Consumer Goods',
|
|
318
|
+
'Sales & Marketing',
|
|
319
|
+
'Science & Medicine',
|
|
320
|
+
'Sports & Recreation',
|
|
321
|
+
'Supply Chain & Logistics',
|
|
322
|
+
'Tech & IT',
|
|
323
|
+
'Transportation & Warehousing',
|
|
324
|
+
'Travel & Hospitality',
|
|
323
325
|
],
|
|
324
326
|
CLIENT_SIZE: [
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
327
|
+
'Individual client',
|
|
328
|
+
'Small company (2-9 people)',
|
|
329
|
+
'Mid-sized company (10-99 people)',
|
|
330
|
+
'Large company (100-1,000 people)',
|
|
331
|
+
'Large company (1,000+ people)',
|
|
332
|
+
'Unspecified',
|
|
331
333
|
],
|
|
332
334
|
};
|
|
333
335
|
const regionNames = {
|
|
334
|
-
Worldwide:
|
|
335
|
-
USOnly:
|
|
336
|
-
UKOnly:
|
|
336
|
+
Worldwide: 'Worldwide',
|
|
337
|
+
USOnly: 'US Only',
|
|
338
|
+
UKOnly: 'UK Only',
|
|
337
339
|
};
|
|
338
340
|
|
|
339
341
|
const jobStatusOrder = [
|
|
@@ -11094,16 +11096,16 @@ const clientSizeEnum = z.enum(JOB_FILTER_OPTIONS.CLIENT_SIZE);
|
|
|
11094
11096
|
const talentTypeEnum = z.enum(JOB_FILTER_OPTIONS.TALENT_TYPE);
|
|
11095
11097
|
const englishLevelEnum = z.enum(JOB_FILTER_OPTIONS.ENGLISH_LEVELS);
|
|
11096
11098
|
const experienceLevelEnum = z.enum(JOB_FILTER_OPTIONS.EXPERIENCE_LEVELS);
|
|
11097
|
-
const regionEnum = z.enum([
|
|
11099
|
+
const regionEnum = z.enum(['all', 'Worldwide', 'UKOnly', 'USOnly']);
|
|
11098
11100
|
const requiredEarningsEnum = z.union([
|
|
11099
11101
|
z.literal(100),
|
|
11100
11102
|
z.literal(1000),
|
|
11101
11103
|
z.literal(10000),
|
|
11102
11104
|
]);
|
|
11103
11105
|
const requiredJSSEnum = z.enum(JOB_FILTER_OPTIONS.REQUIRED_JSS);
|
|
11104
|
-
const isPaymentVerifiedEnum = z.enum([
|
|
11105
|
-
const isPhoneVerifiedEnum = z.enum([
|
|
11106
|
-
const hasQuestionsEnum = z.enum([
|
|
11106
|
+
const isPaymentVerifiedEnum = z.enum(['all', 'true', 'false']);
|
|
11107
|
+
const isPhoneVerifiedEnum = z.enum(['all', 'true', 'false']);
|
|
11108
|
+
const hasQuestionsEnum = z.enum(['all', 'yes', 'no']);
|
|
11107
11109
|
// Main job filters schema
|
|
11108
11110
|
const jobFiltersSchema = z.object({
|
|
11109
11111
|
keywords: z
|
|
@@ -11112,7 +11114,7 @@ const jobFiltersSchema = z.object({
|
|
|
11112
11114
|
excludes: z.string().nullable(),
|
|
11113
11115
|
})
|
|
11114
11116
|
.nullable(),
|
|
11115
|
-
isFeatured: z.enum([
|
|
11117
|
+
isFeatured: z.enum(['all', 'true', 'false']).nullable(),
|
|
11116
11118
|
regions: z.array(regionEnum).nullable(),
|
|
11117
11119
|
categories: z
|
|
11118
11120
|
.object({
|
|
@@ -11139,9 +11141,9 @@ const jobFiltersSchema = z.object({
|
|
|
11139
11141
|
engagementType: z.array(engagementTypeEnum).nullable(),
|
|
11140
11142
|
clientInfo: z
|
|
11141
11143
|
.object({
|
|
11142
|
-
isPaymentVerified: isPaymentVerifiedEnum.default(
|
|
11143
|
-
isPhoneVerified: isPhoneVerifiedEnum.default(
|
|
11144
|
-
enterpriseClient: z.enum([
|
|
11144
|
+
isPaymentVerified: isPaymentVerifiedEnum.default('all'),
|
|
11145
|
+
isPhoneVerified: isPhoneVerifiedEnum.default('all'),
|
|
11146
|
+
enterpriseClient: z.enum(['all', 'true', 'false']).default('all'),
|
|
11145
11147
|
clientLocationIncludes: z.array(z.string()).nullable(),
|
|
11146
11148
|
clientLocationExcludes: z.array(z.string()).nullable(),
|
|
11147
11149
|
minReviewScore: z.number().min(0).max(5).nullable(),
|
|
@@ -11561,6 +11563,83 @@ class NoGoogleOAuthTokensFoundException extends Error {
|
|
|
11561
11563
|
}
|
|
11562
11564
|
const noGoogleOAuthTokensFoundException = (message) => new NoGoogleOAuthTokensFoundException(message);
|
|
11563
11565
|
|
|
11566
|
+
const scraperAccountType = z.enum([
|
|
11567
|
+
'feed',
|
|
11568
|
+
'job',
|
|
11569
|
+
'status',
|
|
11570
|
+
'activity',
|
|
11571
|
+
'profile',
|
|
11572
|
+
'unauthenticated',
|
|
11573
|
+
]);
|
|
11574
|
+
const scraperAccountRegionEnum = z.enum([
|
|
11575
|
+
'Worldwide',
|
|
11576
|
+
'UKOnly',
|
|
11577
|
+
'USOnly',
|
|
11578
|
+
]);
|
|
11579
|
+
const scraperAccountSchema = z.object({
|
|
11580
|
+
id: z.string(),
|
|
11581
|
+
isActive: z.boolean(),
|
|
11582
|
+
region: scraperAccountRegionEnum,
|
|
11583
|
+
email: z.string().email(),
|
|
11584
|
+
password: z.string(),
|
|
11585
|
+
securityQuestionAnswer: z.string().nullable(),
|
|
11586
|
+
lastUsed: z.number().nullable(),
|
|
11587
|
+
multiloginProfileId: z.string().nullable(),
|
|
11588
|
+
proxyId: z.string().nullable(),
|
|
11589
|
+
type: scraperAccountType,
|
|
11590
|
+
createdAt: z.number(),
|
|
11591
|
+
updatedAt: z.number(),
|
|
11592
|
+
isProtected: z.boolean().optional(),
|
|
11593
|
+
});
|
|
11594
|
+
const createScraperAccountSchema = scraperAccountSchema
|
|
11595
|
+
.pick({
|
|
11596
|
+
region: true,
|
|
11597
|
+
email: true,
|
|
11598
|
+
password: true,
|
|
11599
|
+
securityQuestionAnswer: true,
|
|
11600
|
+
isActive: true,
|
|
11601
|
+
type: true,
|
|
11602
|
+
})
|
|
11603
|
+
.extend({
|
|
11604
|
+
proxyCountry: proxyCountryEnum.optional(),
|
|
11605
|
+
rotatingProxy: z.boolean().optional(),
|
|
11606
|
+
});
|
|
11607
|
+
const updateScraperAccountSchema = scraperAccountSchema
|
|
11608
|
+
.omit({
|
|
11609
|
+
id: true,
|
|
11610
|
+
})
|
|
11611
|
+
.partial();
|
|
11612
|
+
|
|
11613
|
+
const agentStatusSchema = z.enum([
|
|
11614
|
+
"suitabilityPending",
|
|
11615
|
+
"suitabilityProcessing",
|
|
11616
|
+
"suitabilityComplete",
|
|
11617
|
+
"suitabilityFailed",
|
|
11618
|
+
"proposalProcessing",
|
|
11619
|
+
"proposalComplete",
|
|
11620
|
+
"proposalFailed",
|
|
11621
|
+
"biddingProcessing",
|
|
11622
|
+
"biddingComplete",
|
|
11623
|
+
"biddingFailed",
|
|
11624
|
+
"jobArchived",
|
|
11625
|
+
]);
|
|
11626
|
+
const leadStatusSchema = z.enum([
|
|
11627
|
+
"leads",
|
|
11628
|
+
"contacted",
|
|
11629
|
+
"viewed",
|
|
11630
|
+
"replied",
|
|
11631
|
+
"won",
|
|
11632
|
+
]);
|
|
11633
|
+
const updateLeadStatusSchema = z.object({
|
|
11634
|
+
leadId: z.string(),
|
|
11635
|
+
organizationId: z.string(),
|
|
11636
|
+
campaignId: z.string(),
|
|
11637
|
+
status: leadStatusSchema,
|
|
11638
|
+
proposalId: z.string().optional(),
|
|
11639
|
+
userId: z.string().optional(),
|
|
11640
|
+
wonAmount: z.number().optional(),
|
|
11641
|
+
});
|
|
11642
|
+
|
|
11564
11643
|
const booleanSchema = z
|
|
11565
11644
|
.union([z.boolean(), z.literal("true"), z.literal("false")])
|
|
11566
11645
|
.transform((value) => value === true || value === "true");
|
|
@@ -11909,6 +11988,8 @@ const feedJobSchemaV2 = objectType({
|
|
|
11909
11988
|
uid: stringType(),
|
|
11910
11989
|
ciphertext: stringType(),
|
|
11911
11990
|
title: stringType(),
|
|
11991
|
+
category: stringType().optional(),
|
|
11992
|
+
jobUrl: stringType().optional(),
|
|
11912
11993
|
description: stringType(),
|
|
11913
11994
|
createdOn: stringType(),
|
|
11914
11995
|
publishedOn: stringType(),
|
|
@@ -11923,7 +12004,7 @@ const feedJobSchemaV2 = objectType({
|
|
|
11923
12004
|
freelancersToHire: numberType(),
|
|
11924
12005
|
relevanceEncoded: stringType(),
|
|
11925
12006
|
enterpriseJob: booleanType(),
|
|
11926
|
-
tierText: stringType(),
|
|
12007
|
+
tierText: stringType().nullable(),
|
|
11927
12008
|
isApplied: booleanType(),
|
|
11928
12009
|
proposalsTier: stringType().nullable(),
|
|
11929
12010
|
premium: booleanType(),
|
|
@@ -12667,78 +12748,6 @@ const feedJobSchema = objectType({
|
|
|
12667
12748
|
region: regionSchema.nullable(),
|
|
12668
12749
|
});
|
|
12669
12750
|
|
|
12670
|
-
const scraperAccountType = z.enum([
|
|
12671
|
-
'feed',
|
|
12672
|
-
'job',
|
|
12673
|
-
'status',
|
|
12674
|
-
'activity',
|
|
12675
|
-
'profile',
|
|
12676
|
-
'unauthenticated',
|
|
12677
|
-
]);
|
|
12678
|
-
const scraperAccountSchema = z.object({
|
|
12679
|
-
id: z.string(),
|
|
12680
|
-
isActive: z.boolean(),
|
|
12681
|
-
region: regionEnum,
|
|
12682
|
-
email: z.string().email(),
|
|
12683
|
-
password: z.string(),
|
|
12684
|
-
securityQuestionAnswer: z.string().nullable(),
|
|
12685
|
-
lastUsed: z.number().nullable(),
|
|
12686
|
-
multiloginProfileId: z.string().nullable(),
|
|
12687
|
-
proxyId: z.string().nullable(),
|
|
12688
|
-
type: scraperAccountType,
|
|
12689
|
-
createdAt: z.number(),
|
|
12690
|
-
updatedAt: z.number(),
|
|
12691
|
-
isProtected: z.boolean().optional(),
|
|
12692
|
-
});
|
|
12693
|
-
const createScraperAccountSchema = scraperAccountSchema
|
|
12694
|
-
.pick({
|
|
12695
|
-
region: true,
|
|
12696
|
-
email: true,
|
|
12697
|
-
password: true,
|
|
12698
|
-
securityQuestionAnswer: true,
|
|
12699
|
-
isActive: true,
|
|
12700
|
-
type: true,
|
|
12701
|
-
})
|
|
12702
|
-
.extend({
|
|
12703
|
-
proxyCountry: proxyCountryEnum.optional(),
|
|
12704
|
-
rotatingProxy: z.boolean().optional(),
|
|
12705
|
-
});
|
|
12706
|
-
const updateScraperAccountSchema = scraperAccountSchema
|
|
12707
|
-
.omit({
|
|
12708
|
-
id: true,
|
|
12709
|
-
})
|
|
12710
|
-
.partial();
|
|
12711
|
-
|
|
12712
|
-
const agentStatusSchema = z.enum([
|
|
12713
|
-
"suitabilityPending",
|
|
12714
|
-
"suitabilityProcessing",
|
|
12715
|
-
"suitabilityComplete",
|
|
12716
|
-
"suitabilityFailed",
|
|
12717
|
-
"proposalProcessing",
|
|
12718
|
-
"proposalComplete",
|
|
12719
|
-
"proposalFailed",
|
|
12720
|
-
"biddingProcessing",
|
|
12721
|
-
"biddingComplete",
|
|
12722
|
-
"biddingFailed",
|
|
12723
|
-
"jobArchived",
|
|
12724
|
-
]);
|
|
12725
|
-
const leadStatusSchema = z.enum([
|
|
12726
|
-
"leads",
|
|
12727
|
-
"contacted",
|
|
12728
|
-
"viewed",
|
|
12729
|
-
"replied",
|
|
12730
|
-
"won",
|
|
12731
|
-
]);
|
|
12732
|
-
const updateLeadStatusSchema = z.object({
|
|
12733
|
-
leadId: z.string(),
|
|
12734
|
-
organizationId: z.string(),
|
|
12735
|
-
campaignId: z.string(),
|
|
12736
|
-
status: leadStatusSchema,
|
|
12737
|
-
proposalId: z.string().optional(),
|
|
12738
|
-
userId: z.string().optional(),
|
|
12739
|
-
wonAmount: z.number().optional(),
|
|
12740
|
-
});
|
|
12741
|
-
|
|
12742
12751
|
const questionAnswerPairSchema = z.object({
|
|
12743
12752
|
question: z.string(),
|
|
12744
12753
|
answer: z.string(),
|
|
@@ -13124,6 +13133,7 @@ const LogEventTypeEnum = z.enum([
|
|
|
13124
13133
|
'jobActivityScrapeFailed',
|
|
13125
13134
|
'leadStatusCheckFailed',
|
|
13126
13135
|
'leadStatusUpdated',
|
|
13136
|
+
'scrapeJobsCompleted',
|
|
13127
13137
|
// Feed Scraper Events
|
|
13128
13138
|
'feedScrapeStarted',
|
|
13129
13139
|
'feedScrapeCompleted',
|
|
@@ -13188,7 +13198,7 @@ const logEventSchema = z.object({
|
|
|
13188
13198
|
timestamp: z.number(),
|
|
13189
13199
|
});
|
|
13190
13200
|
const listingScrapedEventMetadata = objectType({
|
|
13191
|
-
listing:
|
|
13201
|
+
listing: feedJobSchemaV2,
|
|
13192
13202
|
region: regionSchema,
|
|
13193
13203
|
});
|
|
13194
13204
|
const scrapeFeedEventMetadata = objectType({
|
|
@@ -13219,7 +13229,7 @@ const scrapeFeedJobsDetailsFailedEventMetadata = objectType({
|
|
|
13219
13229
|
duration: stringType(),
|
|
13220
13230
|
});
|
|
13221
13231
|
const scrapeJobStartedEventMetadata = objectType({
|
|
13222
|
-
listing:
|
|
13232
|
+
listing: feedJobSchemaV2,
|
|
13223
13233
|
region: regionSchema,
|
|
13224
13234
|
accountId: stringType(),
|
|
13225
13235
|
accountEmail: stringType(),
|
|
@@ -13236,7 +13246,7 @@ const jobActivityScrapedEventMetadata = objectType({
|
|
|
13236
13246
|
scrapedAt: numberType(),
|
|
13237
13247
|
});
|
|
13238
13248
|
const jobActivityScrapeFailedEventMetadata = objectType({
|
|
13239
|
-
listing:
|
|
13249
|
+
listing: feedJobSchemaV2,
|
|
13240
13250
|
region: regionSchema,
|
|
13241
13251
|
offsetHour: jobActivityOffsetHourSchema,
|
|
13242
13252
|
});
|
|
@@ -14769,6 +14779,7 @@ exports.scrapePayloadSchema = scrapePayloadSchema;
|
|
|
14769
14779
|
exports.scrapeResultSchema = scrapeResultSchema;
|
|
14770
14780
|
exports.scrapeUserProfileRequestSchema = scrapeUserProfileRequestSchema;
|
|
14771
14781
|
exports.scraperAccountErrorEventMetadata = scraperAccountErrorEventMetadata;
|
|
14782
|
+
exports.scraperAccountRegionEnum = scraperAccountRegionEnum;
|
|
14772
14783
|
exports.scraperAccountSchema = scraperAccountSchema;
|
|
14773
14784
|
exports.scraperAccountType = scraperAccountType;
|
|
14774
14785
|
exports.selectAgencyException = selectAgencyException;
|