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.
@@ -66,274 +66,276 @@ const invoiceStatusNames = {
66
66
  };
67
67
 
68
68
  const JOB_FILTER_OPTIONS = {
69
- REGIONS: ["Worldwide", "USOnly", "UKOnly"],
69
+ REGIONS: ['Worldwide', 'USOnly', 'UKOnly'],
70
70
  PROJECT_DURATION: [
71
- "Less than 1 month",
72
- "1 to 3 months",
73
- "3 to 6 months",
74
- "More than 6 months",
75
- "Unspecified",
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
- "Less than 30 hrs/week",
79
- "More than 30 hrs/week",
80
- "Unspecified",
78
+ 'Less than 30 hrs/week',
79
+ 'More than 30 hrs/week',
80
+ 'Unspecified',
81
81
  ],
82
- VENDOR_TYPE: ["Independent", "Agency", "Unspecified"],
83
- PAYMENT_TYPE: ["Unspecified", "Hourly", "Fixed-price"],
84
- TALENT_TYPE: ["Agency", "Independent", "Unspecified"],
82
+ VENDOR_TYPE: ['Independent', 'Agency', 'Unspecified'],
83
+ PAYMENT_TYPE: ['Unspecified', 'Hourly', 'Fixed-price'],
84
+ TALENT_TYPE: ['Agency', 'Independent', 'Unspecified'],
85
85
  ENGLISH_LEVELS: [
86
- "Fluent",
87
- "Conversational",
88
- "Native or Bilingual",
89
- "Unspecified",
86
+ 'Fluent',
87
+ 'Conversational',
88
+ 'Native or Bilingual',
89
+ 'Unspecified',
90
90
  ],
91
- EXPERIENCE_LEVELS: ["Entry level", "Intermediate", "Expert"],
91
+ EXPERIENCE_LEVELS: ['Entry level', 'Intermediate', 'Expert'],
92
92
  REQUIRED_EARNINGS: [100, 1000, 10000],
93
- REQUIRED_JSS: [">80%", ">90%", "100%", "RT"],
93
+ REQUIRED_JSS: ['>80%', '>90%', '100%', 'RT'],
94
94
  HIERARCHICAL_CATEGORIES: [
95
95
  {
96
- label: "Accounting & Consulting",
97
- value: "accounting-consulting",
96
+ label: 'Accounting & Consulting',
97
+ value: 'accounting-consulting',
98
98
  children: [
99
- "Accounting & Bookkeeping",
100
- "Financial Planning",
101
- "Management Consulting & Analysis",
102
- "Other - Accounting & Consulting",
103
- "Personal & Professional Coaching",
104
- "Recruiting & Human Resources",
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: "Admin Support",
109
- value: "admin-support",
108
+ label: 'Admin Support',
109
+ value: 'admin-support',
110
110
  children: [
111
- "Data Entry & Transcription Services",
112
- "Market Research & Product Reviews",
113
- "Project Management",
114
- "Virtual Assistance",
111
+ 'Data Entry & Transcription Services',
112
+ 'Market Research & Product Reviews',
113
+ 'Project Management',
114
+ 'Virtual Assistance',
115
115
  ],
116
116
  },
117
117
  {
118
- label: "Customer Service",
119
- value: "customer-service",
118
+ label: 'Customer Service',
119
+ value: 'customer-service',
120
120
  children: [
121
- "Community Management & Tagging",
122
- "Customer Service & Tech Support",
121
+ 'Community Management & Tagging',
122
+ 'Customer Service & Tech Support',
123
123
  ],
124
124
  },
125
125
  {
126
- label: "Data Science & Analytics",
127
- value: "data-science-analytics",
126
+ label: 'Data Science & Analytics',
127
+ value: 'data-science-analytics',
128
128
  children: [
129
- "AI & Machine Learning",
130
- "Data Analysis & Testing",
131
- "Data Extraction/ETL",
132
- "Data Mining & Management",
129
+ 'AI & Machine Learning',
130
+ 'Data Analysis & Testing',
131
+ 'Data Extraction/ETL',
132
+ 'Data Mining & Management',
133
133
  ],
134
134
  },
135
135
  {
136
- label: "Design & Creative",
137
- value: "design-creative",
136
+ label: 'Design & Creative',
137
+ value: 'design-creative',
138
138
  children: [
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",
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: "Engineering & Architecture",
152
- value: "engineering-architecture",
151
+ label: 'Engineering & Architecture',
152
+ value: 'engineering-architecture',
153
153
  children: [
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",
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: "IT & Networking",
165
- value: "it-networking",
164
+ label: 'IT & Networking',
165
+ value: 'it-networking',
166
166
  children: [
167
- "Database Management & Administration",
168
- "DevOps & Solution Architecture",
169
- "ERP/CRM Software",
170
- "Information Security & Compliance",
171
- "Network & System Administration",
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: "Legal",
176
- value: "legal",
175
+ label: 'Legal',
176
+ value: 'legal',
177
177
  children: [
178
- "Corporate & Contract Law",
179
- "Finance & Tax Law",
180
- "International & Immigration Law",
181
- "Public Law",
178
+ 'Corporate & Contract Law',
179
+ 'Finance & Tax Law',
180
+ 'International & Immigration Law',
181
+ 'Public Law',
182
182
  ],
183
183
  },
184
184
  {
185
- label: "Sales & Marketing",
186
- value: "sales-marketing",
185
+ label: 'Sales & Marketing',
186
+ value: 'sales-marketing',
187
187
  children: [
188
- "Digital Marketing",
189
- "Lead Generation & Telemarketing",
190
- "Marketing, PR & Brand Strategy",
188
+ 'Digital Marketing',
189
+ 'Lead Generation & Telemarketing',
190
+ 'Marketing, PR & Brand Strategy',
191
191
  ],
192
192
  },
193
193
  {
194
- label: "Translation",
195
- value: "translation",
194
+ label: 'Translation',
195
+ value: 'translation',
196
196
  children: [
197
- "Language Tutoring & Interpretation",
198
- "Translation & Localization Services",
197
+ 'Language Tutoring & Interpretation',
198
+ 'Translation & Localization Services',
199
199
  ],
200
200
  },
201
201
  {
202
- label: "Software Development",
203
- value: "software-development",
202
+ label: 'Software Development',
203
+ value: 'software-development',
204
204
  children: [
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",
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: "Writing",
221
- value: "writing",
220
+ label: 'Writing',
221
+ value: 'writing',
222
222
  children: [
223
- "Content Writing",
224
- "Editing & Proofreading Services",
225
- "Professional & Business Writing",
226
- "Sales & Marketing Copywriting",
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
- "Personal & Professional Coaching",
232
- "Accounting & Bookkeeping",
233
- "Financial Planning",
234
- "Recruiting & Human Resources",
235
- "Management Consulting & Analysis",
236
- "Other - Accounting & Consulting",
237
- "Data Entry & Transcription Services",
238
- "Virtual Assistance",
239
- "Project Management",
240
- "Market Research & Product Reviews",
241
- "Community Management & Tagging",
242
- "Customer Service & Tech Support",
243
- "Data Analysis & Testing",
244
- "Data Extraction/ETL",
245
- "Data Mining & Management",
246
- "AI & Machine Learning",
247
- "Art & Illustration",
248
- "Audio & Music Production",
249
- "Branding & Logo Design",
250
- "NFT, AR/VR & Game Art",
251
- "Graphic, Editorial & Presentation Design",
252
- "Performing Arts",
253
- "Photography",
254
- "Product Design",
255
- "Video & Animation",
256
- "Building & Landscape Architecture",
257
- "Chemical Engineering",
258
- "Civil & Structural Engineering",
259
- "Contract Manufacturing",
260
- "Electrical & Electronic Engineering",
261
- "Energy & Mechanical Engineering",
262
- "3D Modeling & CAD",
263
- "Database Management & Administration",
264
- "ERP/CRM Software",
265
- "Information Security & Compliance",
266
- "Network & System Administration",
267
- "DevOps & Solution Architecture",
268
- "Corporate & Contract Law",
269
- "International & Immigration Law",
270
- "Finance & Tax Law",
271
- "Public Law",
272
- "Digital Marketing",
273
- "Lead Generation & Telemarketing",
274
- "Marketing, PR & Brand Strategy",
275
- "Language Tutoring & Interpretation",
276
- "Translation & Localization Services",
277
- "Blockchain, NFT & Cryptocurrency",
278
- "AI Apps & Integration",
279
- "Desktop Application Development",
280
- "Ecommerce Development",
281
- "Game Design & Development",
282
- "Mobile Development",
283
- "Other - Software Development",
284
- "Product Management & Scrum",
285
- "QA Testing",
286
- "Scripts & Utilities",
287
- "Web & Mobile Design",
288
- "Web Development",
289
- "Sales & Marketing Copywriting",
290
- "Content Writing",
291
- "Editing & Proofreading Services",
292
- "Professional & Business Writing",
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
- "Aerospace",
296
- "Agriculture & Forestry",
297
- "Art & Design",
298
- "Automotive",
299
- "Aviation",
300
- "Education",
301
- "Energy & Utilities",
302
- "Engineering & Architecture",
303
- "Fashion & Beauty",
304
- "Finance & Accounting",
305
- "Food & Beverage",
306
- "Government & Public Sector",
307
- "Health & Fitness",
308
- "HR & Business Services",
309
- "Legal",
310
- "Manufacturing & Construction",
311
- "Media & Entertainment",
312
- "Military & Defense",
313
- "Mining",
314
- "Real Estate",
315
- "Retail & Consumer Goods",
316
- "Sales & Marketing",
317
- "Science & Medicine",
318
- "Sports & Recreation",
319
- "Supply Chain & Logistics",
320
- "Tech & IT",
321
- "Transportation & Warehousing",
322
- "Travel & Hospitality",
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
- "Individual client",
326
- "Small company (2-9 people)",
327
- "Mid-sized company (10-99 people)",
328
- "Large company (100-1,000 people)",
329
- "Large company (1,000+ people)",
330
- "Unspecified",
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: "Worldwide",
335
- USOnly: "US Only",
336
- UKOnly: "UK Only",
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(["all", "Worldwide", "UKOnly", "USOnly"]);
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(["all", "true", "false"]);
11105
- const isPhoneVerifiedEnum = z.enum(["all", "true", "false"]);
11106
- const hasQuestionsEnum = z.enum(["all", "yes", "no"]);
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(["all", "true", "false"]).nullable(),
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("all"),
11143
- isPhoneVerified: isPhoneVerifiedEnum.default("all"),
11144
- enterpriseClient: z.enum(["all", "true", "false"]).default("all"),
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: feedJobSchema,
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: feedJobSchema,
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: feedJobSchema,
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;