lancer-shared 1.0.10 → 1.0.12

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.
@@ -0,0 +1,1168 @@
1
+ import { z } from "zod";
2
+ export declare const jobSkillsSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ name: string;
6
+ }, {
7
+ name: string;
8
+ }>;
9
+ export declare const vendorQualificationSchema: z.ZodObject<{
10
+ location: z.ZodNullable<z.ZodString>;
11
+ talentType: z.ZodNullable<z.ZodEnum<["Agency", "Independent", "unspecified"]>>;
12
+ englishLevel: z.ZodNullable<z.ZodString>;
13
+ minimumEarnings: z.ZodNullable<z.ZodNumber>;
14
+ jobSuccessScore: z.ZodNullable<z.ZodString>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ location: string | null;
17
+ talentType: "unspecified" | "Agency" | "Independent" | null;
18
+ englishLevel: string | null;
19
+ minimumEarnings: number | null;
20
+ jobSuccessScore: string | null;
21
+ }, {
22
+ location: string | null;
23
+ talentType: "unspecified" | "Agency" | "Independent" | null;
24
+ englishLevel: string | null;
25
+ minimumEarnings: number | null;
26
+ jobSuccessScore: string | null;
27
+ }>;
28
+ export declare const clientInfoSchema: z.ZodObject<{
29
+ isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
30
+ numberOfReviews: z.ZodNullable<z.ZodNumber>;
31
+ rating: z.ZodNullable<z.ZodNumber>;
32
+ country: z.ZodNullable<z.ZodString>;
33
+ region: z.ZodNullable<z.ZodString>;
34
+ jobsPosted: z.ZodNullable<z.ZodNumber>;
35
+ totalSpent: z.ZodNullable<z.ZodNumber>;
36
+ numberOfHires: z.ZodNullable<z.ZodNumber>;
37
+ activeEngagements: z.ZodNullable<z.ZodNumber>;
38
+ openJobs: z.ZodNullable<z.ZodNumber>;
39
+ hireRate: z.ZodNullable<z.ZodNumber>;
40
+ memberSince: z.ZodNullable<z.ZodString>;
41
+ companyIndustry: z.ZodNullable<z.ZodString>;
42
+ companySize: z.ZodNullable<z.ZodString>;
43
+ enterpriseClient: z.ZodNullable<z.ZodBoolean>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ country: string | null;
46
+ region: string | null;
47
+ isPaymentVerified: boolean | null;
48
+ numberOfReviews: number | null;
49
+ rating: number | null;
50
+ jobsPosted: number | null;
51
+ totalSpent: number | null;
52
+ numberOfHires: number | null;
53
+ activeEngagements: number | null;
54
+ openJobs: number | null;
55
+ hireRate: number | null;
56
+ memberSince: string | null;
57
+ companyIndustry: string | null;
58
+ companySize: string | null;
59
+ enterpriseClient: boolean | null;
60
+ }, {
61
+ country: string | null;
62
+ region: string | null;
63
+ isPaymentVerified: boolean | null;
64
+ numberOfReviews: number | null;
65
+ rating: number | null;
66
+ jobsPosted: number | null;
67
+ totalSpent: number | null;
68
+ numberOfHires: number | null;
69
+ activeEngagements: number | null;
70
+ openJobs: number | null;
71
+ hireRate: number | null;
72
+ memberSince: string | null;
73
+ companyIndustry: string | null;
74
+ companySize: string | null;
75
+ enterpriseClient: boolean | null;
76
+ }>;
77
+ export declare const metadataSchema: z.ZodObject<{
78
+ hours: z.ZodNullable<z.ZodString>;
79
+ duration: z.ZodNullable<z.ZodString>;
80
+ experienceLevel: z.ZodNullable<z.ZodString>;
81
+ hourlyRate: z.ZodNullable<z.ZodObject<{
82
+ min: z.ZodNullable<z.ZodNumber>;
83
+ max: z.ZodNullable<z.ZodNumber>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ max: number | null;
86
+ min: number | null;
87
+ }, {
88
+ max: number | null;
89
+ min: number | null;
90
+ }>>;
91
+ paymentType: z.ZodNullable<z.ZodString>;
92
+ fixedPrice: z.ZodNullable<z.ZodNumber>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ hours: string | null;
95
+ duration: string | null;
96
+ experienceLevel: string | null;
97
+ hourlyRate: {
98
+ max: number | null;
99
+ min: number | null;
100
+ } | null;
101
+ paymentType: string | null;
102
+ fixedPrice: number | null;
103
+ }, {
104
+ hours: string | null;
105
+ duration: string | null;
106
+ experienceLevel: string | null;
107
+ hourlyRate: {
108
+ max: number | null;
109
+ min: number | null;
110
+ } | null;
111
+ paymentType: string | null;
112
+ fixedPrice: number | null;
113
+ }>;
114
+ export declare const upworkJobSchema: z.ZodObject<{
115
+ id: z.ZodNullable<z.ZodString>;
116
+ createdAt: z.ZodNullable<z.ZodNumber>;
117
+ title: z.ZodNullable<z.ZodString>;
118
+ category: z.ZodNullable<z.ZodString>;
119
+ skills: z.ZodNullable<z.ZodArray<z.ZodObject<{
120
+ name: z.ZodString;
121
+ }, "strip", z.ZodTypeAny, {
122
+ name: string;
123
+ }, {
124
+ name: string;
125
+ }>, "many">>;
126
+ datetime: z.ZodNullable<z.ZodNumber>;
127
+ description: z.ZodNullable<z.ZodString>;
128
+ descriptionLength: z.ZodNullable<z.ZodNumber>;
129
+ connectsRequired: z.ZodNullable<z.ZodNumber>;
130
+ projectType: z.ZodNullable<z.ZodString>;
131
+ projectDuration: z.ZodNullable<z.ZodString>;
132
+ questions: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
133
+ jobUrl: z.ZodNullable<z.ZodString>;
134
+ metadata: z.ZodNullable<z.ZodObject<{
135
+ hours: z.ZodNullable<z.ZodString>;
136
+ duration: z.ZodNullable<z.ZodString>;
137
+ experienceLevel: z.ZodNullable<z.ZodString>;
138
+ hourlyRate: z.ZodNullable<z.ZodObject<{
139
+ min: z.ZodNullable<z.ZodNumber>;
140
+ max: z.ZodNullable<z.ZodNumber>;
141
+ }, "strip", z.ZodTypeAny, {
142
+ max: number | null;
143
+ min: number | null;
144
+ }, {
145
+ max: number | null;
146
+ min: number | null;
147
+ }>>;
148
+ paymentType: z.ZodNullable<z.ZodString>;
149
+ fixedPrice: z.ZodNullable<z.ZodNumber>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ hours: string | null;
152
+ duration: string | null;
153
+ experienceLevel: string | null;
154
+ hourlyRate: {
155
+ max: number | null;
156
+ min: number | null;
157
+ } | null;
158
+ paymentType: string | null;
159
+ fixedPrice: number | null;
160
+ }, {
161
+ hours: string | null;
162
+ duration: string | null;
163
+ experienceLevel: string | null;
164
+ hourlyRate: {
165
+ max: number | null;
166
+ min: number | null;
167
+ } | null;
168
+ paymentType: string | null;
169
+ fixedPrice: number | null;
170
+ }>>;
171
+ clientInfo: z.ZodNullable<z.ZodObject<{
172
+ isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
173
+ numberOfReviews: z.ZodNullable<z.ZodNumber>;
174
+ rating: z.ZodNullable<z.ZodNumber>;
175
+ country: z.ZodNullable<z.ZodString>;
176
+ region: z.ZodNullable<z.ZodString>;
177
+ jobsPosted: z.ZodNullable<z.ZodNumber>;
178
+ totalSpent: z.ZodNullable<z.ZodNumber>;
179
+ numberOfHires: z.ZodNullable<z.ZodNumber>;
180
+ activeEngagements: z.ZodNullable<z.ZodNumber>;
181
+ openJobs: z.ZodNullable<z.ZodNumber>;
182
+ hireRate: z.ZodNullable<z.ZodNumber>;
183
+ memberSince: z.ZodNullable<z.ZodString>;
184
+ companyIndustry: z.ZodNullable<z.ZodString>;
185
+ companySize: z.ZodNullable<z.ZodString>;
186
+ enterpriseClient: z.ZodNullable<z.ZodBoolean>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ country: string | null;
189
+ region: string | null;
190
+ isPaymentVerified: boolean | null;
191
+ numberOfReviews: number | null;
192
+ rating: number | null;
193
+ jobsPosted: number | null;
194
+ totalSpent: number | null;
195
+ numberOfHires: number | null;
196
+ activeEngagements: number | null;
197
+ openJobs: number | null;
198
+ hireRate: number | null;
199
+ memberSince: string | null;
200
+ companyIndustry: string | null;
201
+ companySize: string | null;
202
+ enterpriseClient: boolean | null;
203
+ }, {
204
+ country: string | null;
205
+ region: string | null;
206
+ isPaymentVerified: boolean | null;
207
+ numberOfReviews: number | null;
208
+ rating: number | null;
209
+ jobsPosted: number | null;
210
+ totalSpent: number | null;
211
+ numberOfHires: number | null;
212
+ activeEngagements: number | null;
213
+ openJobs: number | null;
214
+ hireRate: number | null;
215
+ memberSince: string | null;
216
+ companyIndustry: string | null;
217
+ companySize: string | null;
218
+ enterpriseClient: boolean | null;
219
+ }>>;
220
+ vendorQualifications: z.ZodNullable<z.ZodObject<{
221
+ location: z.ZodNullable<z.ZodString>;
222
+ talentType: z.ZodNullable<z.ZodEnum<["Agency", "Independent", "unspecified"]>>;
223
+ englishLevel: z.ZodNullable<z.ZodString>;
224
+ minimumEarnings: z.ZodNullable<z.ZodNumber>;
225
+ jobSuccessScore: z.ZodNullable<z.ZodString>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ location: string | null;
228
+ talentType: "unspecified" | "Agency" | "Independent" | null;
229
+ englishLevel: string | null;
230
+ minimumEarnings: number | null;
231
+ jobSuccessScore: string | null;
232
+ }, {
233
+ location: string | null;
234
+ talentType: "unspecified" | "Agency" | "Independent" | null;
235
+ englishLevel: string | null;
236
+ minimumEarnings: number | null;
237
+ jobSuccessScore: string | null;
238
+ }>>;
239
+ processed: z.ZodNullable<z.ZodBoolean>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ id: string | null;
242
+ title: string | null;
243
+ metadata: {
244
+ hours: string | null;
245
+ duration: string | null;
246
+ experienceLevel: string | null;
247
+ hourlyRate: {
248
+ max: number | null;
249
+ min: number | null;
250
+ } | null;
251
+ paymentType: string | null;
252
+ fixedPrice: number | null;
253
+ } | null;
254
+ description: string | null;
255
+ datetime: number | null;
256
+ createdAt: number | null;
257
+ category: string | null;
258
+ skills: {
259
+ name: string;
260
+ }[] | null;
261
+ descriptionLength: number | null;
262
+ connectsRequired: number | null;
263
+ projectType: string | null;
264
+ projectDuration: string | null;
265
+ questions: string[] | null;
266
+ jobUrl: string | null;
267
+ clientInfo: {
268
+ country: string | null;
269
+ region: string | null;
270
+ isPaymentVerified: boolean | null;
271
+ numberOfReviews: number | null;
272
+ rating: number | null;
273
+ jobsPosted: number | null;
274
+ totalSpent: number | null;
275
+ numberOfHires: number | null;
276
+ activeEngagements: number | null;
277
+ openJobs: number | null;
278
+ hireRate: number | null;
279
+ memberSince: string | null;
280
+ companyIndustry: string | null;
281
+ companySize: string | null;
282
+ enterpriseClient: boolean | null;
283
+ } | null;
284
+ vendorQualifications: {
285
+ location: string | null;
286
+ talentType: "unspecified" | "Agency" | "Independent" | null;
287
+ englishLevel: string | null;
288
+ minimumEarnings: number | null;
289
+ jobSuccessScore: string | null;
290
+ } | null;
291
+ processed: boolean | null;
292
+ }, {
293
+ id: string | null;
294
+ title: string | null;
295
+ metadata: {
296
+ hours: string | null;
297
+ duration: string | null;
298
+ experienceLevel: string | null;
299
+ hourlyRate: {
300
+ max: number | null;
301
+ min: number | null;
302
+ } | null;
303
+ paymentType: string | null;
304
+ fixedPrice: number | null;
305
+ } | null;
306
+ description: string | null;
307
+ datetime: number | null;
308
+ createdAt: number | null;
309
+ category: string | null;
310
+ skills: {
311
+ name: string;
312
+ }[] | null;
313
+ descriptionLength: number | null;
314
+ connectsRequired: number | null;
315
+ projectType: string | null;
316
+ projectDuration: string | null;
317
+ questions: string[] | null;
318
+ jobUrl: string | null;
319
+ clientInfo: {
320
+ country: string | null;
321
+ region: string | null;
322
+ isPaymentVerified: boolean | null;
323
+ numberOfReviews: number | null;
324
+ rating: number | null;
325
+ jobsPosted: number | null;
326
+ totalSpent: number | null;
327
+ numberOfHires: number | null;
328
+ activeEngagements: number | null;
329
+ openJobs: number | null;
330
+ hireRate: number | null;
331
+ memberSince: string | null;
332
+ companyIndustry: string | null;
333
+ companySize: string | null;
334
+ enterpriseClient: boolean | null;
335
+ } | null;
336
+ vendorQualifications: {
337
+ location: string | null;
338
+ talentType: "unspecified" | "Agency" | "Independent" | null;
339
+ englishLevel: string | null;
340
+ minimumEarnings: number | null;
341
+ jobSuccessScore: string | null;
342
+ } | null;
343
+ processed: boolean | null;
344
+ }>;
345
+ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
346
+ id: z.ZodNullable<z.ZodString>;
347
+ createdAt: z.ZodNullable<z.ZodNumber>;
348
+ title: z.ZodNullable<z.ZodString>;
349
+ category: z.ZodNullable<z.ZodString>;
350
+ skills: z.ZodNullable<z.ZodArray<z.ZodObject<{
351
+ name: z.ZodString;
352
+ }, "strip", z.ZodTypeAny, {
353
+ name: string;
354
+ }, {
355
+ name: string;
356
+ }>, "many">>;
357
+ datetime: z.ZodNullable<z.ZodNumber>;
358
+ description: z.ZodNullable<z.ZodString>;
359
+ descriptionLength: z.ZodNullable<z.ZodNumber>;
360
+ connectsRequired: z.ZodNullable<z.ZodNumber>;
361
+ projectType: z.ZodNullable<z.ZodString>;
362
+ projectDuration: z.ZodNullable<z.ZodString>;
363
+ questions: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
364
+ jobUrl: z.ZodNullable<z.ZodString>;
365
+ metadata: z.ZodNullable<z.ZodObject<{
366
+ hours: z.ZodNullable<z.ZodString>;
367
+ duration: z.ZodNullable<z.ZodString>;
368
+ experienceLevel: z.ZodNullable<z.ZodString>;
369
+ hourlyRate: z.ZodNullable<z.ZodObject<{
370
+ min: z.ZodNullable<z.ZodNumber>;
371
+ max: z.ZodNullable<z.ZodNumber>;
372
+ }, "strip", z.ZodTypeAny, {
373
+ max: number | null;
374
+ min: number | null;
375
+ }, {
376
+ max: number | null;
377
+ min: number | null;
378
+ }>>;
379
+ paymentType: z.ZodNullable<z.ZodString>;
380
+ fixedPrice: z.ZodNullable<z.ZodNumber>;
381
+ }, "strip", z.ZodTypeAny, {
382
+ hours: string | null;
383
+ duration: string | null;
384
+ experienceLevel: string | null;
385
+ hourlyRate: {
386
+ max: number | null;
387
+ min: number | null;
388
+ } | null;
389
+ paymentType: string | null;
390
+ fixedPrice: number | null;
391
+ }, {
392
+ hours: string | null;
393
+ duration: string | null;
394
+ experienceLevel: string | null;
395
+ hourlyRate: {
396
+ max: number | null;
397
+ min: number | null;
398
+ } | null;
399
+ paymentType: string | null;
400
+ fixedPrice: number | null;
401
+ }>>;
402
+ clientInfo: z.ZodNullable<z.ZodObject<{
403
+ isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
404
+ numberOfReviews: z.ZodNullable<z.ZodNumber>;
405
+ rating: z.ZodNullable<z.ZodNumber>;
406
+ country: z.ZodNullable<z.ZodString>;
407
+ region: z.ZodNullable<z.ZodString>;
408
+ jobsPosted: z.ZodNullable<z.ZodNumber>;
409
+ totalSpent: z.ZodNullable<z.ZodNumber>;
410
+ numberOfHires: z.ZodNullable<z.ZodNumber>;
411
+ activeEngagements: z.ZodNullable<z.ZodNumber>;
412
+ openJobs: z.ZodNullable<z.ZodNumber>;
413
+ hireRate: z.ZodNullable<z.ZodNumber>;
414
+ memberSince: z.ZodNullable<z.ZodString>;
415
+ companyIndustry: z.ZodNullable<z.ZodString>;
416
+ companySize: z.ZodNullable<z.ZodString>;
417
+ enterpriseClient: z.ZodNullable<z.ZodBoolean>;
418
+ }, "strip", z.ZodTypeAny, {
419
+ country: string | null;
420
+ region: string | null;
421
+ isPaymentVerified: boolean | null;
422
+ numberOfReviews: number | null;
423
+ rating: number | null;
424
+ jobsPosted: number | null;
425
+ totalSpent: number | null;
426
+ numberOfHires: number | null;
427
+ activeEngagements: number | null;
428
+ openJobs: number | null;
429
+ hireRate: number | null;
430
+ memberSince: string | null;
431
+ companyIndustry: string | null;
432
+ companySize: string | null;
433
+ enterpriseClient: boolean | null;
434
+ }, {
435
+ country: string | null;
436
+ region: string | null;
437
+ isPaymentVerified: boolean | null;
438
+ numberOfReviews: number | null;
439
+ rating: number | null;
440
+ jobsPosted: number | null;
441
+ totalSpent: number | null;
442
+ numberOfHires: number | null;
443
+ activeEngagements: number | null;
444
+ openJobs: number | null;
445
+ hireRate: number | null;
446
+ memberSince: string | null;
447
+ companyIndustry: string | null;
448
+ companySize: string | null;
449
+ enterpriseClient: boolean | null;
450
+ }>>;
451
+ vendorQualifications: z.ZodNullable<z.ZodObject<{
452
+ location: z.ZodNullable<z.ZodString>;
453
+ talentType: z.ZodNullable<z.ZodEnum<["Agency", "Independent", "unspecified"]>>;
454
+ englishLevel: z.ZodNullable<z.ZodString>;
455
+ minimumEarnings: z.ZodNullable<z.ZodNumber>;
456
+ jobSuccessScore: z.ZodNullable<z.ZodString>;
457
+ }, "strip", z.ZodTypeAny, {
458
+ location: string | null;
459
+ talentType: "unspecified" | "Agency" | "Independent" | null;
460
+ englishLevel: string | null;
461
+ minimumEarnings: number | null;
462
+ jobSuccessScore: string | null;
463
+ }, {
464
+ location: string | null;
465
+ talentType: "unspecified" | "Agency" | "Independent" | null;
466
+ englishLevel: string | null;
467
+ minimumEarnings: number | null;
468
+ jobSuccessScore: string | null;
469
+ }>>;
470
+ processed: z.ZodNullable<z.ZodBoolean>;
471
+ }, {
472
+ jobId: z.ZodString;
473
+ updatedAt: z.ZodNullable<z.ZodNumber>;
474
+ suitabilityRating: z.ZodNullable<z.ZodNumber>;
475
+ suitabilityReason: z.ZodNullable<z.ZodString>;
476
+ proposal: z.ZodNullable<z.ZodString>;
477
+ questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
478
+ question: z.ZodString;
479
+ answer: z.ZodString;
480
+ }, "strip", z.ZodTypeAny, {
481
+ answer: string;
482
+ question: string;
483
+ }, {
484
+ answer: string;
485
+ question: string;
486
+ }>, "many">>;
487
+ agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalPending", "proposalProcessing", "proposalComplete", "biddingPending", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
488
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "negotiations", "won", "lost"]>>;
489
+ notes: z.ZodNullable<z.ZodArray<z.ZodObject<{
490
+ id: z.ZodString;
491
+ jobId: z.ZodString;
492
+ content: z.ZodString;
493
+ order: z.ZodNumber;
494
+ bgColor: z.ZodString;
495
+ createdAt: z.ZodNumber;
496
+ updatedAt: z.ZodNumber;
497
+ }, "strip", z.ZodTypeAny, {
498
+ id: string;
499
+ content: string;
500
+ order: number;
501
+ jobId: string;
502
+ bgColor: string;
503
+ createdAt: number;
504
+ updatedAt: number;
505
+ }, {
506
+ id: string;
507
+ content: string;
508
+ order: number;
509
+ jobId: string;
510
+ bgColor: string;
511
+ createdAt: number;
512
+ updatedAt: number;
513
+ }>, "many">>;
514
+ biddingAmount: z.ZodNullable<z.ZodNumber>;
515
+ boosted: z.ZodNullable<z.ZodBoolean>;
516
+ boostingAmount: z.ZodNullable<z.ZodNumber>;
517
+ }>, "strip", z.ZodTypeAny, {
518
+ id: string | null;
519
+ title: string | null;
520
+ metadata: {
521
+ hours: string | null;
522
+ duration: string | null;
523
+ experienceLevel: string | null;
524
+ hourlyRate: {
525
+ max: number | null;
526
+ min: number | null;
527
+ } | null;
528
+ paymentType: string | null;
529
+ fixedPrice: number | null;
530
+ } | null;
531
+ description: string | null;
532
+ datetime: number | null;
533
+ jobId: string;
534
+ createdAt: number | null;
535
+ updatedAt: number | null;
536
+ questionAnswerPairs: {
537
+ answer: string;
538
+ question: string;
539
+ }[] | null;
540
+ proposal: string | null;
541
+ category: string | null;
542
+ skills: {
543
+ name: string;
544
+ }[] | null;
545
+ descriptionLength: number | null;
546
+ connectsRequired: number | null;
547
+ projectType: string | null;
548
+ projectDuration: string | null;
549
+ questions: string[] | null;
550
+ jobUrl: string | null;
551
+ clientInfo: {
552
+ country: string | null;
553
+ region: string | null;
554
+ isPaymentVerified: boolean | null;
555
+ numberOfReviews: number | null;
556
+ rating: number | null;
557
+ jobsPosted: number | null;
558
+ totalSpent: number | null;
559
+ numberOfHires: number | null;
560
+ activeEngagements: number | null;
561
+ openJobs: number | null;
562
+ hireRate: number | null;
563
+ memberSince: string | null;
564
+ companyIndustry: string | null;
565
+ companySize: string | null;
566
+ enterpriseClient: boolean | null;
567
+ } | null;
568
+ vendorQualifications: {
569
+ location: string | null;
570
+ talentType: "unspecified" | "Agency" | "Independent" | null;
571
+ englishLevel: string | null;
572
+ minimumEarnings: number | null;
573
+ jobSuccessScore: string | null;
574
+ } | null;
575
+ processed: boolean | null;
576
+ suitabilityRating: number | null;
577
+ suitabilityReason: string | null;
578
+ agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
579
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost" | null;
580
+ notes: {
581
+ id: string;
582
+ content: string;
583
+ order: number;
584
+ jobId: string;
585
+ bgColor: string;
586
+ createdAt: number;
587
+ updatedAt: number;
588
+ }[] | null;
589
+ biddingAmount: number | null;
590
+ boosted: boolean | null;
591
+ boostingAmount: number | null;
592
+ }, {
593
+ id: string | null;
594
+ title: string | null;
595
+ metadata: {
596
+ hours: string | null;
597
+ duration: string | null;
598
+ experienceLevel: string | null;
599
+ hourlyRate: {
600
+ max: number | null;
601
+ min: number | null;
602
+ } | null;
603
+ paymentType: string | null;
604
+ fixedPrice: number | null;
605
+ } | null;
606
+ description: string | null;
607
+ datetime: number | null;
608
+ jobId: string;
609
+ createdAt: number | null;
610
+ updatedAt: number | null;
611
+ questionAnswerPairs: {
612
+ answer: string;
613
+ question: string;
614
+ }[] | null;
615
+ proposal: string | null;
616
+ category: string | null;
617
+ skills: {
618
+ name: string;
619
+ }[] | null;
620
+ descriptionLength: number | null;
621
+ connectsRequired: number | null;
622
+ projectType: string | null;
623
+ projectDuration: string | null;
624
+ questions: string[] | null;
625
+ jobUrl: string | null;
626
+ clientInfo: {
627
+ country: string | null;
628
+ region: string | null;
629
+ isPaymentVerified: boolean | null;
630
+ numberOfReviews: number | null;
631
+ rating: number | null;
632
+ jobsPosted: number | null;
633
+ totalSpent: number | null;
634
+ numberOfHires: number | null;
635
+ activeEngagements: number | null;
636
+ openJobs: number | null;
637
+ hireRate: number | null;
638
+ memberSince: string | null;
639
+ companyIndustry: string | null;
640
+ companySize: string | null;
641
+ enterpriseClient: boolean | null;
642
+ } | null;
643
+ vendorQualifications: {
644
+ location: string | null;
645
+ talentType: "unspecified" | "Agency" | "Independent" | null;
646
+ englishLevel: string | null;
647
+ minimumEarnings: number | null;
648
+ jobSuccessScore: string | null;
649
+ } | null;
650
+ processed: boolean | null;
651
+ suitabilityRating: number | null;
652
+ suitabilityReason: string | null;
653
+ agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
654
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost" | null;
655
+ notes: {
656
+ id: string;
657
+ content: string;
658
+ order: number;
659
+ jobId: string;
660
+ bgColor: string;
661
+ createdAt: number;
662
+ updatedAt: number;
663
+ }[] | null;
664
+ biddingAmount: number | null;
665
+ boosted: boolean | null;
666
+ boostingAmount: number | null;
667
+ }>;
668
+ export declare const jobListItemSchema: z.ZodObject<{
669
+ title: z.ZodNullable<z.ZodString>;
670
+ jobUrl: z.ZodNullable<z.ZodString>;
671
+ datetime: z.ZodNullable<z.ZodString>;
672
+ }, "strip", z.ZodTypeAny, {
673
+ title: string | null;
674
+ datetime: string | null;
675
+ jobUrl: string | null;
676
+ }, {
677
+ title: string | null;
678
+ datetime: string | null;
679
+ jobUrl: string | null;
680
+ }>;
681
+ export declare const leadResponseSchema: z.ZodObject<{
682
+ leads: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
683
+ id: z.ZodNullable<z.ZodString>;
684
+ createdAt: z.ZodNullable<z.ZodNumber>;
685
+ title: z.ZodNullable<z.ZodString>;
686
+ category: z.ZodNullable<z.ZodString>;
687
+ skills: z.ZodNullable<z.ZodArray<z.ZodObject<{
688
+ name: z.ZodString;
689
+ }, "strip", z.ZodTypeAny, {
690
+ name: string;
691
+ }, {
692
+ name: string;
693
+ }>, "many">>;
694
+ datetime: z.ZodNullable<z.ZodNumber>;
695
+ description: z.ZodNullable<z.ZodString>;
696
+ descriptionLength: z.ZodNullable<z.ZodNumber>;
697
+ connectsRequired: z.ZodNullable<z.ZodNumber>;
698
+ projectType: z.ZodNullable<z.ZodString>;
699
+ projectDuration: z.ZodNullable<z.ZodString>;
700
+ questions: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
701
+ jobUrl: z.ZodNullable<z.ZodString>;
702
+ metadata: z.ZodNullable<z.ZodObject<{
703
+ hours: z.ZodNullable<z.ZodString>;
704
+ duration: z.ZodNullable<z.ZodString>;
705
+ experienceLevel: z.ZodNullable<z.ZodString>;
706
+ hourlyRate: z.ZodNullable<z.ZodObject<{
707
+ min: z.ZodNullable<z.ZodNumber>;
708
+ max: z.ZodNullable<z.ZodNumber>;
709
+ }, "strip", z.ZodTypeAny, {
710
+ max: number | null;
711
+ min: number | null;
712
+ }, {
713
+ max: number | null;
714
+ min: number | null;
715
+ }>>;
716
+ paymentType: z.ZodNullable<z.ZodString>;
717
+ fixedPrice: z.ZodNullable<z.ZodNumber>;
718
+ }, "strip", z.ZodTypeAny, {
719
+ hours: string | null;
720
+ duration: string | null;
721
+ experienceLevel: string | null;
722
+ hourlyRate: {
723
+ max: number | null;
724
+ min: number | null;
725
+ } | null;
726
+ paymentType: string | null;
727
+ fixedPrice: number | null;
728
+ }, {
729
+ hours: string | null;
730
+ duration: string | null;
731
+ experienceLevel: string | null;
732
+ hourlyRate: {
733
+ max: number | null;
734
+ min: number | null;
735
+ } | null;
736
+ paymentType: string | null;
737
+ fixedPrice: number | null;
738
+ }>>;
739
+ clientInfo: z.ZodNullable<z.ZodObject<{
740
+ isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
741
+ numberOfReviews: z.ZodNullable<z.ZodNumber>;
742
+ rating: z.ZodNullable<z.ZodNumber>;
743
+ country: z.ZodNullable<z.ZodString>;
744
+ region: z.ZodNullable<z.ZodString>;
745
+ jobsPosted: z.ZodNullable<z.ZodNumber>;
746
+ totalSpent: z.ZodNullable<z.ZodNumber>;
747
+ numberOfHires: z.ZodNullable<z.ZodNumber>;
748
+ activeEngagements: z.ZodNullable<z.ZodNumber>;
749
+ openJobs: z.ZodNullable<z.ZodNumber>;
750
+ hireRate: z.ZodNullable<z.ZodNumber>;
751
+ memberSince: z.ZodNullable<z.ZodString>;
752
+ companyIndustry: z.ZodNullable<z.ZodString>;
753
+ companySize: z.ZodNullable<z.ZodString>;
754
+ enterpriseClient: z.ZodNullable<z.ZodBoolean>;
755
+ }, "strip", z.ZodTypeAny, {
756
+ country: string | null;
757
+ region: string | null;
758
+ isPaymentVerified: boolean | null;
759
+ numberOfReviews: number | null;
760
+ rating: number | null;
761
+ jobsPosted: number | null;
762
+ totalSpent: number | null;
763
+ numberOfHires: number | null;
764
+ activeEngagements: number | null;
765
+ openJobs: number | null;
766
+ hireRate: number | null;
767
+ memberSince: string | null;
768
+ companyIndustry: string | null;
769
+ companySize: string | null;
770
+ enterpriseClient: boolean | null;
771
+ }, {
772
+ country: string | null;
773
+ region: string | null;
774
+ isPaymentVerified: boolean | null;
775
+ numberOfReviews: number | null;
776
+ rating: number | null;
777
+ jobsPosted: number | null;
778
+ totalSpent: number | null;
779
+ numberOfHires: number | null;
780
+ activeEngagements: number | null;
781
+ openJobs: number | null;
782
+ hireRate: number | null;
783
+ memberSince: string | null;
784
+ companyIndustry: string | null;
785
+ companySize: string | null;
786
+ enterpriseClient: boolean | null;
787
+ }>>;
788
+ vendorQualifications: z.ZodNullable<z.ZodObject<{
789
+ location: z.ZodNullable<z.ZodString>;
790
+ talentType: z.ZodNullable<z.ZodEnum<["Agency", "Independent", "unspecified"]>>;
791
+ englishLevel: z.ZodNullable<z.ZodString>;
792
+ minimumEarnings: z.ZodNullable<z.ZodNumber>;
793
+ jobSuccessScore: z.ZodNullable<z.ZodString>;
794
+ }, "strip", z.ZodTypeAny, {
795
+ location: string | null;
796
+ talentType: "unspecified" | "Agency" | "Independent" | null;
797
+ englishLevel: string | null;
798
+ minimumEarnings: number | null;
799
+ jobSuccessScore: string | null;
800
+ }, {
801
+ location: string | null;
802
+ talentType: "unspecified" | "Agency" | "Independent" | null;
803
+ englishLevel: string | null;
804
+ minimumEarnings: number | null;
805
+ jobSuccessScore: string | null;
806
+ }>>;
807
+ processed: z.ZodNullable<z.ZodBoolean>;
808
+ }, {
809
+ jobId: z.ZodString;
810
+ updatedAt: z.ZodNullable<z.ZodNumber>;
811
+ suitabilityRating: z.ZodNullable<z.ZodNumber>;
812
+ suitabilityReason: z.ZodNullable<z.ZodString>;
813
+ proposal: z.ZodNullable<z.ZodString>;
814
+ questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
815
+ question: z.ZodString;
816
+ answer: z.ZodString;
817
+ }, "strip", z.ZodTypeAny, {
818
+ answer: string;
819
+ question: string;
820
+ }, {
821
+ answer: string;
822
+ question: string;
823
+ }>, "many">>;
824
+ agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalPending", "proposalProcessing", "proposalComplete", "biddingPending", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
825
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "negotiations", "won", "lost"]>>;
826
+ notes: z.ZodNullable<z.ZodArray<z.ZodObject<{
827
+ id: z.ZodString;
828
+ jobId: z.ZodString;
829
+ content: z.ZodString;
830
+ order: z.ZodNumber;
831
+ bgColor: z.ZodString;
832
+ createdAt: z.ZodNumber;
833
+ updatedAt: z.ZodNumber;
834
+ }, "strip", z.ZodTypeAny, {
835
+ id: string;
836
+ content: string;
837
+ order: number;
838
+ jobId: string;
839
+ bgColor: string;
840
+ createdAt: number;
841
+ updatedAt: number;
842
+ }, {
843
+ id: string;
844
+ content: string;
845
+ order: number;
846
+ jobId: string;
847
+ bgColor: string;
848
+ createdAt: number;
849
+ updatedAt: number;
850
+ }>, "many">>;
851
+ biddingAmount: z.ZodNullable<z.ZodNumber>;
852
+ boosted: z.ZodNullable<z.ZodBoolean>;
853
+ boostingAmount: z.ZodNullable<z.ZodNumber>;
854
+ }>, "strip", z.ZodTypeAny, {
855
+ id: string | null;
856
+ title: string | null;
857
+ metadata: {
858
+ hours: string | null;
859
+ duration: string | null;
860
+ experienceLevel: string | null;
861
+ hourlyRate: {
862
+ max: number | null;
863
+ min: number | null;
864
+ } | null;
865
+ paymentType: string | null;
866
+ fixedPrice: number | null;
867
+ } | null;
868
+ description: string | null;
869
+ datetime: number | null;
870
+ jobId: string;
871
+ createdAt: number | null;
872
+ updatedAt: number | null;
873
+ questionAnswerPairs: {
874
+ answer: string;
875
+ question: string;
876
+ }[] | null;
877
+ proposal: string | null;
878
+ category: string | null;
879
+ skills: {
880
+ name: string;
881
+ }[] | null;
882
+ descriptionLength: number | null;
883
+ connectsRequired: number | null;
884
+ projectType: string | null;
885
+ projectDuration: string | null;
886
+ questions: string[] | null;
887
+ jobUrl: string | null;
888
+ clientInfo: {
889
+ country: string | null;
890
+ region: string | null;
891
+ isPaymentVerified: boolean | null;
892
+ numberOfReviews: number | null;
893
+ rating: number | null;
894
+ jobsPosted: number | null;
895
+ totalSpent: number | null;
896
+ numberOfHires: number | null;
897
+ activeEngagements: number | null;
898
+ openJobs: number | null;
899
+ hireRate: number | null;
900
+ memberSince: string | null;
901
+ companyIndustry: string | null;
902
+ companySize: string | null;
903
+ enterpriseClient: boolean | null;
904
+ } | null;
905
+ vendorQualifications: {
906
+ location: string | null;
907
+ talentType: "unspecified" | "Agency" | "Independent" | null;
908
+ englishLevel: string | null;
909
+ minimumEarnings: number | null;
910
+ jobSuccessScore: string | null;
911
+ } | null;
912
+ processed: boolean | null;
913
+ suitabilityRating: number | null;
914
+ suitabilityReason: string | null;
915
+ agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
916
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost" | null;
917
+ notes: {
918
+ id: string;
919
+ content: string;
920
+ order: number;
921
+ jobId: string;
922
+ bgColor: string;
923
+ createdAt: number;
924
+ updatedAt: number;
925
+ }[] | null;
926
+ biddingAmount: number | null;
927
+ boosted: boolean | null;
928
+ boostingAmount: number | null;
929
+ }, {
930
+ id: string | null;
931
+ title: string | null;
932
+ metadata: {
933
+ hours: string | null;
934
+ duration: string | null;
935
+ experienceLevel: string | null;
936
+ hourlyRate: {
937
+ max: number | null;
938
+ min: number | null;
939
+ } | null;
940
+ paymentType: string | null;
941
+ fixedPrice: number | null;
942
+ } | null;
943
+ description: string | null;
944
+ datetime: number | null;
945
+ jobId: string;
946
+ createdAt: number | null;
947
+ updatedAt: number | null;
948
+ questionAnswerPairs: {
949
+ answer: string;
950
+ question: string;
951
+ }[] | null;
952
+ proposal: string | null;
953
+ category: string | null;
954
+ skills: {
955
+ name: string;
956
+ }[] | null;
957
+ descriptionLength: number | null;
958
+ connectsRequired: number | null;
959
+ projectType: string | null;
960
+ projectDuration: string | null;
961
+ questions: string[] | null;
962
+ jobUrl: string | null;
963
+ clientInfo: {
964
+ country: string | null;
965
+ region: string | null;
966
+ isPaymentVerified: boolean | null;
967
+ numberOfReviews: number | null;
968
+ rating: number | null;
969
+ jobsPosted: number | null;
970
+ totalSpent: number | null;
971
+ numberOfHires: number | null;
972
+ activeEngagements: number | null;
973
+ openJobs: number | null;
974
+ hireRate: number | null;
975
+ memberSince: string | null;
976
+ companyIndustry: string | null;
977
+ companySize: string | null;
978
+ enterpriseClient: boolean | null;
979
+ } | null;
980
+ vendorQualifications: {
981
+ location: string | null;
982
+ talentType: "unspecified" | "Agency" | "Independent" | null;
983
+ englishLevel: string | null;
984
+ minimumEarnings: number | null;
985
+ jobSuccessScore: string | null;
986
+ } | null;
987
+ processed: boolean | null;
988
+ suitabilityRating: number | null;
989
+ suitabilityReason: string | null;
990
+ agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
991
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost" | null;
992
+ notes: {
993
+ id: string;
994
+ content: string;
995
+ order: number;
996
+ jobId: string;
997
+ bgColor: string;
998
+ createdAt: number;
999
+ updatedAt: number;
1000
+ }[] | null;
1001
+ biddingAmount: number | null;
1002
+ boosted: boolean | null;
1003
+ boostingAmount: number | null;
1004
+ }>, "many">;
1005
+ nextCursor: z.ZodNullable<z.ZodString>;
1006
+ hasMore: z.ZodBoolean;
1007
+ leadCounts: z.ZodNullable<z.ZodNumber>;
1008
+ }, "strip", z.ZodTypeAny, {
1009
+ leads: {
1010
+ id: string | null;
1011
+ title: string | null;
1012
+ metadata: {
1013
+ hours: string | null;
1014
+ duration: string | null;
1015
+ experienceLevel: string | null;
1016
+ hourlyRate: {
1017
+ max: number | null;
1018
+ min: number | null;
1019
+ } | null;
1020
+ paymentType: string | null;
1021
+ fixedPrice: number | null;
1022
+ } | null;
1023
+ description: string | null;
1024
+ datetime: number | null;
1025
+ jobId: string;
1026
+ createdAt: number | null;
1027
+ updatedAt: number | null;
1028
+ questionAnswerPairs: {
1029
+ answer: string;
1030
+ question: string;
1031
+ }[] | null;
1032
+ proposal: string | null;
1033
+ category: string | null;
1034
+ skills: {
1035
+ name: string;
1036
+ }[] | null;
1037
+ descriptionLength: number | null;
1038
+ connectsRequired: number | null;
1039
+ projectType: string | null;
1040
+ projectDuration: string | null;
1041
+ questions: string[] | null;
1042
+ jobUrl: string | null;
1043
+ clientInfo: {
1044
+ country: string | null;
1045
+ region: string | null;
1046
+ isPaymentVerified: boolean | null;
1047
+ numberOfReviews: number | null;
1048
+ rating: number | null;
1049
+ jobsPosted: number | null;
1050
+ totalSpent: number | null;
1051
+ numberOfHires: number | null;
1052
+ activeEngagements: number | null;
1053
+ openJobs: number | null;
1054
+ hireRate: number | null;
1055
+ memberSince: string | null;
1056
+ companyIndustry: string | null;
1057
+ companySize: string | null;
1058
+ enterpriseClient: boolean | null;
1059
+ } | null;
1060
+ vendorQualifications: {
1061
+ location: string | null;
1062
+ talentType: "unspecified" | "Agency" | "Independent" | null;
1063
+ englishLevel: string | null;
1064
+ minimumEarnings: number | null;
1065
+ jobSuccessScore: string | null;
1066
+ } | null;
1067
+ processed: boolean | null;
1068
+ suitabilityRating: number | null;
1069
+ suitabilityReason: string | null;
1070
+ agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1071
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost" | null;
1072
+ notes: {
1073
+ id: string;
1074
+ content: string;
1075
+ order: number;
1076
+ jobId: string;
1077
+ bgColor: string;
1078
+ createdAt: number;
1079
+ updatedAt: number;
1080
+ }[] | null;
1081
+ biddingAmount: number | null;
1082
+ boosted: boolean | null;
1083
+ boostingAmount: number | null;
1084
+ }[];
1085
+ nextCursor: string | null;
1086
+ hasMore: boolean;
1087
+ leadCounts: number | null;
1088
+ }, {
1089
+ leads: {
1090
+ id: string | null;
1091
+ title: string | null;
1092
+ metadata: {
1093
+ hours: string | null;
1094
+ duration: string | null;
1095
+ experienceLevel: string | null;
1096
+ hourlyRate: {
1097
+ max: number | null;
1098
+ min: number | null;
1099
+ } | null;
1100
+ paymentType: string | null;
1101
+ fixedPrice: number | null;
1102
+ } | null;
1103
+ description: string | null;
1104
+ datetime: number | null;
1105
+ jobId: string;
1106
+ createdAt: number | null;
1107
+ updatedAt: number | null;
1108
+ questionAnswerPairs: {
1109
+ answer: string;
1110
+ question: string;
1111
+ }[] | null;
1112
+ proposal: string | null;
1113
+ category: string | null;
1114
+ skills: {
1115
+ name: string;
1116
+ }[] | null;
1117
+ descriptionLength: number | null;
1118
+ connectsRequired: number | null;
1119
+ projectType: string | null;
1120
+ projectDuration: string | null;
1121
+ questions: string[] | null;
1122
+ jobUrl: string | null;
1123
+ clientInfo: {
1124
+ country: string | null;
1125
+ region: string | null;
1126
+ isPaymentVerified: boolean | null;
1127
+ numberOfReviews: number | null;
1128
+ rating: number | null;
1129
+ jobsPosted: number | null;
1130
+ totalSpent: number | null;
1131
+ numberOfHires: number | null;
1132
+ activeEngagements: number | null;
1133
+ openJobs: number | null;
1134
+ hireRate: number | null;
1135
+ memberSince: string | null;
1136
+ companyIndustry: string | null;
1137
+ companySize: string | null;
1138
+ enterpriseClient: boolean | null;
1139
+ } | null;
1140
+ vendorQualifications: {
1141
+ location: string | null;
1142
+ talentType: "unspecified" | "Agency" | "Independent" | null;
1143
+ englishLevel: string | null;
1144
+ minimumEarnings: number | null;
1145
+ jobSuccessScore: string | null;
1146
+ } | null;
1147
+ processed: boolean | null;
1148
+ suitabilityRating: number | null;
1149
+ suitabilityReason: string | null;
1150
+ agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1151
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost" | null;
1152
+ notes: {
1153
+ id: string;
1154
+ content: string;
1155
+ order: number;
1156
+ jobId: string;
1157
+ bgColor: string;
1158
+ createdAt: number;
1159
+ updatedAt: number;
1160
+ }[] | null;
1161
+ biddingAmount: number | null;
1162
+ boosted: boolean | null;
1163
+ boostingAmount: number | null;
1164
+ }[];
1165
+ nextCursor: string | null;
1166
+ hasMore: boolean;
1167
+ leadCounts: number | null;
1168
+ }>;