lancer-shared 1.2.301 → 1.2.303

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.
Files changed (60) hide show
  1. package/dist/bundle.cjs.js +1 -0
  2. package/dist/bundle.cjs.js.map +1 -1
  3. package/dist/bundle.esm.js +1 -0
  4. package/dist/bundle.esm.js.map +1 -1
  5. package/dist/schemas/account/bidder-account.d.ts +40 -40
  6. package/dist/schemas/account/scraper-account.d.ts +27 -27
  7. package/dist/schemas/agent/index.d.ts +273 -273
  8. package/dist/schemas/agent/proposal.d.ts +4 -4
  9. package/dist/schemas/bidder/bid.d.ts +2358 -2358
  10. package/dist/schemas/campaign/campaign-analytics.d.ts +1404 -1404
  11. package/dist/schemas/campaign/campaign-chat-bot.d.ts +24 -24
  12. package/dist/schemas/campaign/campaign-expenses.d.ts +2 -2
  13. package/dist/schemas/campaign/campaign-insights.d.ts +12 -12
  14. package/dist/schemas/campaign/campaign.d.ts +566 -566
  15. package/dist/schemas/campaign/sequence/boost-node.d.ts +2 -2
  16. package/dist/schemas/campaign/sequence/client-size-node.d.ts +8 -8
  17. package/dist/schemas/campaign/sequence/client-spent-node.d.ts +16 -16
  18. package/dist/schemas/campaign/sequence/hire-rate-node.d.ts +16 -16
  19. package/dist/schemas/campaign/sequence/hourly-rate-node.d.ts +16 -16
  20. package/dist/schemas/campaign/sequence/rating-node.d.ts +16 -16
  21. package/dist/schemas/campaign/sequence/suitability-node.d.ts +16 -16
  22. package/dist/schemas/dashboard/index.d.ts +46 -46
  23. package/dist/schemas/golden-dataset/sample.d.ts +12 -12
  24. package/dist/schemas/infrastructure/index.d.ts +8 -8
  25. package/dist/schemas/invoice/index.d.ts +55 -55
  26. package/dist/schemas/job/index.d.ts +189 -189
  27. package/dist/schemas/job/job-api.d.ts +4 -4
  28. package/dist/schemas/job/job-details.d.ts +726 -726
  29. package/dist/schemas/job/job-filters.d.ts +55 -55
  30. package/dist/schemas/job/job-listing.d.ts +96 -96
  31. package/dist/schemas/job/nuxt.d.ts +130 -130
  32. package/dist/schemas/lead/index.d.ts +1040 -1040
  33. package/dist/schemas/lead/lead-status.d.ts +4 -4
  34. package/dist/schemas/logger/feed/feed-chunk-enrich.d.ts +16 -16
  35. package/dist/schemas/logger/feed/feed-enrich.d.ts +12 -12
  36. package/dist/schemas/logger/feed/feed-job-enrich.d.ts +272 -272
  37. package/dist/schemas/logger/feed/feed-scrape.d.ts +6 -6
  38. package/dist/schemas/logger/log-event.d.ts +103 -103
  39. package/dist/schemas/logger/scraper-events.d.ts +73 -73
  40. package/dist/schemas/notifications/index.d.ts +4 -4
  41. package/dist/schemas/organization/billing.d.ts +2 -2
  42. package/dist/schemas/organization/cover-letter.d.ts +4 -4
  43. package/dist/schemas/organization/index.d.ts +112 -112
  44. package/dist/schemas/organization/onboarding.d.ts +6 -6
  45. package/dist/schemas/organization/organization-leads.d.ts +4 -4
  46. package/dist/schemas/organization/subscription.d.ts +12 -12
  47. package/dist/schemas/plan/index.d.ts +55 -55
  48. package/dist/schemas/proxy/proxy.d.ts +29 -29
  49. package/dist/schemas/saved-search/index.d.ts +4 -4
  50. package/dist/schemas/scraper/scrape-payload.d.ts +876 -876
  51. package/dist/schemas/scraper/scrape-result.d.ts +174 -174
  52. package/dist/schemas/scraper/upwork-profile.d.ts +16 -16
  53. package/dist/schemas/shared.d.ts +1 -1
  54. package/dist/schemas/talent/index.d.ts +750 -750
  55. package/dist/schemas/transaction/index.d.ts +20 -20
  56. package/dist/schemas/upwork-analytics/index.d.ts +22 -22
  57. package/dist/schemas/usage/index.d.ts +16 -16
  58. package/dist/schemas/usage-event/index.d.ts +11 -11
  59. package/dist/schemas/user/index.d.ts +4 -4
  60. package/package.json +2 -2
@@ -13,18 +13,18 @@ export declare const agentGenerateProposalRequestSchema: z.ZodObject<{
13
13
  questions: z.ZodArray<z.ZodString, "many">;
14
14
  clientCountry: z.ZodString;
15
15
  }, "strip", z.ZodTypeAny, {
16
+ leadId: string;
17
+ jobId: string;
16
18
  title: string;
17
19
  description: string;
18
- leadId: string;
19
20
  questions: string[];
20
- jobId: string;
21
21
  clientCountry: string;
22
22
  }, {
23
+ leadId: string;
24
+ jobId: string;
23
25
  title: string;
24
26
  description: string;
25
- leadId: string;
26
27
  questions: string[];
27
- jobId: string;
28
28
  clientCountry: string;
29
29
  }>;
30
30
  isOverallHighestPriorityCampaign: z.ZodOptional<z.ZodBoolean>;
@@ -32,47 +32,47 @@ export declare const agentGenerateProposalRequestSchema: z.ZodObject<{
32
32
  leadId: z.ZodString;
33
33
  campaignId: z.ZodString;
34
34
  }, "strip", z.ZodTypeAny, {
35
- leadId: string;
36
35
  campaignId: string;
37
- }, {
38
36
  leadId: string;
37
+ }, {
39
38
  campaignId: string;
39
+ leadId: string;
40
40
  }>, "many">>;
41
41
  }, "strip", z.ZodTypeAny, {
42
+ userId: string | null;
42
43
  organizationId: string;
43
44
  campaignId: string;
44
- userId: string | null;
45
45
  job: {
46
+ leadId: string;
47
+ jobId: string;
46
48
  title: string;
47
49
  description: string;
48
- leadId: string;
49
50
  questions: string[];
50
- jobId: string;
51
51
  clientCountry: string;
52
52
  };
53
53
  coverLetterTemplateId?: string | undefined;
54
54
  isOverallHighestPriorityCampaign?: boolean | undefined;
55
55
  applyToLeads?: {
56
- leadId: string;
57
56
  campaignId: string;
57
+ leadId: string;
58
58
  }[] | undefined;
59
59
  }, {
60
+ userId: string | null;
60
61
  organizationId: string;
61
62
  campaignId: string;
62
- userId: string | null;
63
63
  job: {
64
+ leadId: string;
65
+ jobId: string;
64
66
  title: string;
65
67
  description: string;
66
- leadId: string;
67
68
  questions: string[];
68
- jobId: string;
69
69
  clientCountry: string;
70
70
  };
71
71
  coverLetterTemplateId?: string | undefined;
72
72
  isOverallHighestPriorityCampaign?: boolean | undefined;
73
73
  applyToLeads?: {
74
- leadId: string;
75
74
  campaignId: string;
75
+ leadId: string;
76
76
  }[] | undefined;
77
77
  }>;
78
78
  export declare const agentGenerateProposalResponseSchema: z.ZodObject<{
@@ -81,23 +81,23 @@ export declare const agentGenerateProposalResponseSchema: z.ZodObject<{
81
81
  question: z.ZodString;
82
82
  answer: z.ZodString;
83
83
  }, "strip", z.ZodTypeAny, {
84
- answer: string;
85
84
  question: string;
86
- }, {
87
85
  answer: string;
86
+ }, {
88
87
  question: string;
88
+ answer: string;
89
89
  }>, "many">;
90
90
  }, "strip", z.ZodTypeAny, {
91
91
  coverLetter: string;
92
92
  questionAnswerPairs: {
93
- answer: string;
94
93
  question: string;
94
+ answer: string;
95
95
  }[];
96
96
  }, {
97
97
  coverLetter: string;
98
98
  questionAnswerPairs: {
99
- answer: string;
100
99
  question: string;
100
+ answer: string;
101
101
  }[];
102
102
  }>;
103
103
  export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
@@ -133,32 +133,32 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
133
133
  min: z.ZodNullable<z.ZodNumber>;
134
134
  max: z.ZodNullable<z.ZodNumber>;
135
135
  }, "strip", z.ZodTypeAny, {
136
- max: number | null;
137
136
  min: number | null;
138
- }, {
139
137
  max: number | null;
138
+ }, {
140
139
  min: number | null;
140
+ max: number | null;
141
141
  }>>;
142
142
  paymentType: z.ZodNullable<z.ZodString>;
143
143
  fixedPrice: z.ZodNullable<z.ZodNumber>;
144
144
  }, "strip", z.ZodTypeAny, {
145
145
  hours: string | null;
146
146
  duration: string | null;
147
+ experienceLevel: string | null;
147
148
  hourlyRate: {
148
- max: number | null;
149
149
  min: number | null;
150
+ max: number | null;
150
151
  } | null;
151
- experienceLevel: string | null;
152
152
  paymentType: string | null;
153
153
  fixedPrice: number | null;
154
154
  }, {
155
155
  hours: string | null;
156
156
  duration: string | null;
157
+ experienceLevel: string | null;
157
158
  hourlyRate: {
158
- max: number | null;
159
159
  min: number | null;
160
+ max: number | null;
160
161
  } | null;
161
- experienceLevel: string | null;
162
162
  paymentType: string | null;
163
163
  fixedPrice: number | null;
164
164
  }>>;
@@ -182,17 +182,17 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
182
182
  avgHourlyRatePaid: z.ZodNullable<z.ZodNumber>;
183
183
  companyId: z.ZodNullable<z.ZodString>;
184
184
  }, "strip", z.ZodTypeAny, {
185
- country: string | null;
186
- region: string | null;
187
- openJobs: number | null;
188
- isPhoneVerified: boolean | null;
189
185
  isPaymentVerified: boolean | null;
186
+ isPhoneVerified: boolean | null;
190
187
  numberOfReviews: number | null;
191
188
  rating: number | null;
189
+ country: string | null;
190
+ region: string | null;
192
191
  jobsPosted: number | null;
193
192
  totalSpent: number | null;
194
193
  numberOfHires: number | null;
195
194
  activeEngagements: number | null;
195
+ openJobs: number | null;
196
196
  hireRate: number | null;
197
197
  memberSince: string | null;
198
198
  companyIndustry: string | null;
@@ -201,17 +201,17 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
201
201
  avgHourlyRatePaid: number | null;
202
202
  companyId: string | null;
203
203
  }, {
204
- country: string | null;
205
- region: string | null;
206
- openJobs: number | null;
207
- isPhoneVerified: boolean | null;
208
204
  isPaymentVerified: boolean | null;
205
+ isPhoneVerified: boolean | null;
209
206
  numberOfReviews: number | null;
210
207
  rating: number | null;
208
+ country: string | null;
209
+ region: string | null;
211
210
  jobsPosted: number | null;
212
211
  totalSpent: number | null;
213
212
  numberOfHires: number | null;
214
213
  activeEngagements: number | null;
214
+ openJobs: number | null;
215
215
  hireRate: number | null;
216
216
  memberSince: string | null;
217
217
  companyIndustry: string | null;
@@ -229,14 +229,14 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
229
229
  includeRisingTalent: z.ZodNullable<z.ZodString>;
230
230
  }, "strip", z.ZodTypeAny, {
231
231
  location: string | null;
232
- talentType: "unspecified" | "Independent" | "Agency" | null;
232
+ talentType: "Agency" | "Independent" | "unspecified" | null;
233
233
  englishLevel: string | null;
234
234
  minimumEarnings: number | null;
235
235
  jobSuccessScore: string | null;
236
236
  includeRisingTalent: string | null;
237
237
  }, {
238
238
  location: string | null;
239
- talentType: "unspecified" | "Independent" | "Agency" | null;
239
+ talentType: "Agency" | "Independent" | "unspecified" | null;
240
240
  englishLevel: string | null;
241
241
  minimumEarnings: number | null;
242
242
  jobSuccessScore: string | null;
@@ -259,9 +259,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
259
259
  totalBilled: z.ZodNullable<z.ZodNumber>;
260
260
  }, "strip", z.ZodTypeAny, {
261
261
  hourlyRate: number | null;
262
- jobTitle: string | null;
263
262
  paymentType: string | null;
264
263
  fixedPrice: number | null;
264
+ jobTitle: string | null;
265
265
  freelancerName: string | null;
266
266
  freelancerRating: number | null;
267
267
  freelancerFeedback: string | null;
@@ -272,9 +272,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
272
272
  totalBilled: number | null;
273
273
  }, {
274
274
  hourlyRate: number | null;
275
- jobTitle: string | null;
276
275
  paymentType: string | null;
277
276
  fixedPrice: number | null;
277
+ jobTitle: string | null;
278
278
  freelancerName: string | null;
279
279
  freelancerRating: number | null;
280
280
  freelancerFeedback: string | null;
@@ -291,23 +291,23 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
291
291
  low: z.ZodNullable<z.ZodNumber>;
292
292
  }, "strip", z.ZodTypeAny, {
293
293
  high: number | null;
294
- low: number | null;
295
294
  avg: number | null;
295
+ low: number | null;
296
296
  }, {
297
297
  high: number | null;
298
- low: number | null;
299
298
  avg: number | null;
299
+ low: number | null;
300
300
  }>>;
301
301
  jobActivity: z.ZodNullable<z.ZodObject<{
302
302
  proposals: z.ZodObject<{
303
303
  min: z.ZodNullable<z.ZodNumber>;
304
304
  max: z.ZodNullable<z.ZodNumber>;
305
305
  }, "strip", z.ZodTypeAny, {
306
- max: number | null;
307
306
  min: number | null;
308
- }, {
309
307
  max: number | null;
308
+ }, {
310
309
  min: number | null;
310
+ max: number | null;
311
311
  }>;
312
312
  lastViewedByClient: z.ZodNullable<z.ZodString>;
313
313
  lastViewedByClientTimestamp: z.ZodNullable<z.ZodNumber>;
@@ -317,29 +317,29 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
317
317
  unansweredInvites: z.ZodNullable<z.ZodNumber>;
318
318
  updatedAt: z.ZodNullable<z.ZodNumber>;
319
319
  }, "strip", z.ZodTypeAny, {
320
- unansweredInvites: number | null;
321
- updatedAt: number | null;
322
320
  proposals: {
323
- max: number | null;
324
321
  min: number | null;
322
+ max: number | null;
325
323
  };
326
324
  lastViewedByClient: string | null;
327
325
  lastViewedByClientTimestamp: number | null;
328
326
  hires: number | null;
329
327
  interviewing: number | null;
330
328
  invitesSent: number | null;
331
- }, {
332
329
  unansweredInvites: number | null;
333
330
  updatedAt: number | null;
331
+ }, {
334
332
  proposals: {
335
- max: number | null;
336
333
  min: number | null;
334
+ max: number | null;
337
335
  };
338
336
  lastViewedByClient: string | null;
339
337
  lastViewedByClientTimestamp: number | null;
340
338
  hires: number | null;
341
339
  interviewing: number | null;
342
340
  invitesSent: number | null;
341
+ unansweredInvites: number | null;
342
+ updatedAt: number | null;
343
343
  }>>;
344
344
  occupation: z.ZodNullable<z.ZodString>;
345
345
  activityUpdates: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
@@ -348,11 +348,11 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
348
348
  min: z.ZodNullable<z.ZodNumber>;
349
349
  max: z.ZodNullable<z.ZodNumber>;
350
350
  }, "strip", z.ZodTypeAny, {
351
- max: number | null;
352
351
  min: number | null;
353
- }, {
354
352
  max: number | null;
353
+ }, {
355
354
  min: number | null;
355
+ max: number | null;
356
356
  }>;
357
357
  lastViewedByClient: z.ZodNullable<z.ZodString>;
358
358
  lastViewedByClientTimestamp: z.ZodNullable<z.ZodNumber>;
@@ -362,29 +362,29 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
362
362
  unansweredInvites: z.ZodNullable<z.ZodNumber>;
363
363
  updatedAt: z.ZodNullable<z.ZodNumber>;
364
364
  }, "strip", z.ZodTypeAny, {
365
- unansweredInvites: number | null;
366
- updatedAt: number | null;
367
365
  proposals: {
368
- max: number | null;
369
366
  min: number | null;
367
+ max: number | null;
370
368
  };
371
369
  lastViewedByClient: string | null;
372
370
  lastViewedByClientTimestamp: number | null;
373
371
  hires: number | null;
374
372
  interviewing: number | null;
375
373
  invitesSent: number | null;
376
- }, {
377
374
  unansweredInvites: number | null;
378
375
  updatedAt: number | null;
376
+ }, {
379
377
  proposals: {
380
- max: number | null;
381
378
  min: number | null;
379
+ max: number | null;
382
380
  };
383
381
  lastViewedByClient: string | null;
384
382
  lastViewedByClientTimestamp: number | null;
385
383
  hires: number | null;
386
384
  interviewing: number | null;
387
385
  invitesSent: number | null;
386
+ unansweredInvites: number | null;
387
+ updatedAt: number | null;
388
388
  }>>>>;
389
389
  activityDelta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
390
390
  proposals: z.ZodNumber;
@@ -393,17 +393,17 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
393
393
  invitesSent: z.ZodNumber;
394
394
  unansweredInvites: z.ZodNumber;
395
395
  }, "strip", z.ZodTypeAny, {
396
- unansweredInvites: number;
397
396
  proposals: number;
398
397
  hires: number;
399
398
  interviewing: number;
400
399
  invitesSent: number;
401
- }, {
402
400
  unansweredInvites: number;
401
+ }, {
403
402
  proposals: number;
404
403
  hires: number;
405
404
  interviewing: number;
406
405
  invitesSent: number;
406
+ unansweredInvites: number;
407
407
  }>>>;
408
408
  }, {
409
409
  jobId: z.ZodString;
@@ -419,11 +419,11 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
419
419
  question: z.ZodString;
420
420
  answer: z.ZodString;
421
421
  }, "strip", z.ZodTypeAny, {
422
- answer: string;
423
422
  question: string;
424
- }, {
425
423
  answer: string;
424
+ }, {
426
425
  question: string;
426
+ answer: string;
427
427
  }>, "many">>;
428
428
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
429
429
  leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "biddingScheduled", "biddingFailed", "alreadyHired", "won"]>>;
@@ -464,13 +464,13 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
464
464
  contractorName: z.ZodNullable<z.ZodString>;
465
465
  specialisedProfile: z.ZodNullable<z.ZodString>;
466
466
  }, "strip", z.ZodTypeAny, {
467
- contractorName: string | null;
468
- agencyName: string | null;
469
467
  specialisedProfile: string | null;
470
- }, {
471
- contractorName: string | null;
472
468
  agencyName: string | null;
469
+ contractorName: string | null;
470
+ }, {
473
471
  specialisedProfile: string | null;
472
+ agencyName: string | null;
473
+ contractorName: string | null;
474
474
  }>;
475
475
  }, "strip", z.ZodTypeAny, {
476
476
  biddingDelayInMinutes: number | null;
@@ -487,9 +487,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
487
487
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
488
488
  alreadyHiredAction: "bid" | "skip";
489
489
  bidConfig: {
490
- contractorName: string | null;
491
- agencyName: string | null;
492
490
  specialisedProfile: string | null;
491
+ agencyName: string | null;
492
+ contractorName: string | null;
493
493
  };
494
494
  }, {
495
495
  biddingDelayInMinutes: number | null;
@@ -506,63 +506,61 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
506
506
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
507
507
  alreadyHiredAction: "bid" | "skip";
508
508
  bidConfig: {
509
- contractorName: string | null;
510
- agencyName: string | null;
511
509
  specialisedProfile: string | null;
510
+ agencyName: string | null;
511
+ contractorName: string | null;
512
512
  };
513
513
  }>>;
514
514
  statusSynced: z.ZodNullable<z.ZodBoolean>;
515
515
  }>, "processed">, "strip", z.ZodTypeAny, {
516
- id: string | null;
517
- title: string | null;
518
- metadata: {
519
- hours: string | null;
520
- duration: string | null;
521
- hourlyRate: {
522
- max: number | null;
523
- min: number | null;
524
- } | null;
525
- experienceLevel: string | null;
526
- paymentType: string | null;
527
- fixedPrice: number | null;
528
- } | null;
529
- description: string | null;
530
- region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
531
- datetime: number | null;
532
516
  organizationId: string;
533
517
  campaignId: string;
534
- category: string | null;
535
- uid: string | null;
518
+ coverLetterTemplateId: string | null;
519
+ jobId: string;
520
+ title: string | null;
521
+ description: string | null;
536
522
  questions: string[] | null;
537
- occupation: string | null;
538
- createdAt: number | null;
539
- updatedAt: number | null;
540
523
  questionAnswerPairs: {
541
- answer: string;
542
524
  question: string;
525
+ answer: string;
543
526
  }[] | null;
544
- coverLetterTemplateId: string | null;
545
- jobId: string;
527
+ id: string | null;
528
+ uid: string | null;
529
+ createdAt: number | null;
530
+ category: string | null;
546
531
  skills: {
547
532
  name: string;
548
533
  }[] | null;
534
+ datetime: number | null;
549
535
  descriptionLength: number | null;
550
536
  connectsRequired: number | null;
551
537
  projectType: string | null;
552
538
  projectDuration: string | null;
553
539
  jobUrl: string | null;
540
+ metadata: {
541
+ hours: string | null;
542
+ duration: string | null;
543
+ experienceLevel: string | null;
544
+ hourlyRate: {
545
+ min: number | null;
546
+ max: number | null;
547
+ } | null;
548
+ paymentType: string | null;
549
+ fixedPrice: number | null;
550
+ } | null;
551
+ region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
554
552
  clientInfo: {
555
- country: string | null;
556
- region: string | null;
557
- openJobs: number | null;
558
- isPhoneVerified: boolean | null;
559
553
  isPaymentVerified: boolean | null;
554
+ isPhoneVerified: boolean | null;
560
555
  numberOfReviews: number | null;
561
556
  rating: number | null;
557
+ country: string | null;
558
+ region: string | null;
562
559
  jobsPosted: number | null;
563
560
  totalSpent: number | null;
564
561
  numberOfHires: number | null;
565
562
  activeEngagements: number | null;
563
+ openJobs: number | null;
566
564
  hireRate: number | null;
567
565
  memberSince: string | null;
568
566
  companyIndustry: string | null;
@@ -573,7 +571,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
573
571
  } | null;
574
572
  vendorQualifications: {
575
573
  location: string | null;
576
- talentType: "unspecified" | "Independent" | "Agency" | null;
574
+ talentType: "Agency" | "Independent" | "unspecified" | null;
577
575
  englishLevel: string | null;
578
576
  minimumEarnings: number | null;
579
577
  jobSuccessScore: string | null;
@@ -582,9 +580,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
582
580
  isFeatured: boolean | null;
583
581
  clientReviews: {
584
582
  hourlyRate: number | null;
585
- jobTitle: string | null;
586
583
  paymentType: string | null;
587
584
  fixedPrice: number | null;
585
+ jobTitle: string | null;
588
586
  freelancerName: string | null;
589
587
  freelancerRating: number | null;
590
588
  freelancerFeedback: string | null;
@@ -596,29 +594,31 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
596
594
  }[] | null;
597
595
  bidRange: {
598
596
  high: number | null;
599
- low: number | null;
600
597
  avg: number | null;
598
+ low: number | null;
601
599
  } | null;
600
+ updatedAt: number | null;
602
601
  jobActivity: {
603
- unansweredInvites: number | null;
604
- updatedAt: number | null;
605
602
  proposals: {
606
- max: number | null;
607
603
  min: number | null;
604
+ max: number | null;
608
605
  };
609
606
  lastViewedByClient: string | null;
610
607
  lastViewedByClientTimestamp: number | null;
611
608
  hires: number | null;
612
609
  interviewing: number | null;
613
610
  invitesSent: number | null;
611
+ unansweredInvites: number | null;
612
+ updatedAt: number | null;
614
613
  } | null;
615
- activityUpdates: 2 | 1 | 3 | null;
614
+ occupation: string | null;
615
+ activityUpdates: 1 | 2 | 3 | null;
616
616
  scrapedAt: number | null;
617
617
  suitabilityRating: number | null;
618
618
  suitabilityReason: string | null;
619
619
  proposal: string | null;
620
620
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
621
- leadStatus: "rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won" | null;
621
+ leadStatus: "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won" | null;
622
622
  biddingAmount: number | null;
623
623
  boosted: boolean | null;
624
624
  boostingAmount: number | null;
@@ -650,85 +650,83 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
650
650
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
651
651
  alreadyHiredAction: "bid" | "skip";
652
652
  bidConfig: {
653
- contractorName: string | null;
654
- agencyName: string | null;
655
653
  specialisedProfile: string | null;
654
+ agencyName: string | null;
655
+ contractorName: string | null;
656
656
  };
657
657
  } | null;
658
658
  statusSynced: boolean | null;
659
- proposalId?: string | undefined;
660
- wonAmount?: number | undefined;
661
659
  activity?: Partial<Record<"4h" | "24h", {
662
- unansweredInvites: number | null;
663
- updatedAt: number | null;
664
660
  proposals: {
665
- max: number | null;
666
661
  min: number | null;
662
+ max: number | null;
667
663
  };
668
664
  lastViewedByClient: string | null;
669
665
  lastViewedByClientTimestamp: number | null;
670
666
  hires: number | null;
671
667
  interviewing: number | null;
672
668
  invitesSent: number | null;
669
+ unansweredInvites: number | null;
670
+ updatedAt: number | null;
673
671
  }>> | null | undefined;
674
672
  activityDelta?: {
675
- unansweredInvites: number;
676
673
  proposals: number;
677
674
  hires: number;
678
675
  interviewing: number;
679
676
  invitesSent: number;
677
+ unansweredInvites: number;
680
678
  } | null | undefined;
679
+ proposalId?: string | undefined;
680
+ wonAmount?: number | undefined;
681
681
  }, {
682
- id: string | null;
683
- title: string | null;
684
- metadata: {
685
- hours: string | null;
686
- duration: string | null;
687
- hourlyRate: {
688
- max: number | null;
689
- min: number | null;
690
- } | null;
691
- experienceLevel: string | null;
692
- paymentType: string | null;
693
- fixedPrice: number | null;
694
- } | null;
695
- description: string | null;
696
- region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
697
- datetime: number | null;
698
682
  organizationId: string;
699
683
  campaignId: string;
700
- category: string | null;
701
- uid: string | null;
684
+ coverLetterTemplateId: string | null;
685
+ jobId: string;
686
+ title: string | null;
687
+ description: string | null;
702
688
  questions: string[] | null;
703
- occupation: string | null;
704
- createdAt: number | null;
705
- updatedAt: number | null;
706
689
  questionAnswerPairs: {
707
- answer: string;
708
690
  question: string;
691
+ answer: string;
709
692
  }[] | null;
710
- coverLetterTemplateId: string | null;
711
- jobId: string;
693
+ id: string | null;
694
+ uid: string | null;
695
+ createdAt: number | null;
696
+ category: string | null;
712
697
  skills: {
713
698
  name: string;
714
699
  }[] | null;
700
+ datetime: number | null;
715
701
  descriptionLength: number | null;
716
702
  connectsRequired: number | null;
717
703
  projectType: string | null;
718
704
  projectDuration: string | null;
719
705
  jobUrl: string | null;
706
+ metadata: {
707
+ hours: string | null;
708
+ duration: string | null;
709
+ experienceLevel: string | null;
710
+ hourlyRate: {
711
+ min: number | null;
712
+ max: number | null;
713
+ } | null;
714
+ paymentType: string | null;
715
+ fixedPrice: number | null;
716
+ } | null;
717
+ region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
720
718
  clientInfo: {
719
+ isPaymentVerified: boolean | null;
720
+ isPhoneVerified: boolean | null;
721
+ numberOfReviews: number | null;
722
+ rating: number | null;
721
723
  country: string | null;
722
724
  region: string | null;
723
- openJobs: number | null;
724
- isPhoneVerified: boolean | null;
725
- isPaymentVerified: boolean | null;
726
- numberOfReviews: number | null;
727
- rating: number | null;
728
725
  jobsPosted: number | null;
729
726
  totalSpent: number | null;
730
727
  numberOfHires: number | null;
731
728
  activeEngagements: number | null;
729
+ openJobs: number | null;
732
730
  hireRate: number | null;
733
731
  memberSince: string | null;
734
732
  companyIndustry: string | null;
@@ -739,7 +737,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
739
737
  } | null;
740
738
  vendorQualifications: {
741
739
  location: string | null;
742
- talentType: "unspecified" | "Independent" | "Agency" | null;
740
+ talentType: "Agency" | "Independent" | "unspecified" | null;
743
741
  englishLevel: string | null;
744
742
  minimumEarnings: number | null;
745
743
  jobSuccessScore: string | null;
@@ -748,9 +746,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
748
746
  isFeatured: boolean | null;
749
747
  clientReviews: {
750
748
  hourlyRate: number | null;
751
- jobTitle: string | null;
752
749
  paymentType: string | null;
753
750
  fixedPrice: number | null;
751
+ jobTitle: string | null;
754
752
  freelancerName: string | null;
755
753
  freelancerRating: number | null;
756
754
  freelancerFeedback: string | null;
@@ -762,29 +760,31 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
762
760
  }[] | null;
763
761
  bidRange: {
764
762
  high: number | null;
765
- low: number | null;
766
763
  avg: number | null;
764
+ low: number | null;
767
765
  } | null;
766
+ updatedAt: number | null;
768
767
  jobActivity: {
769
- unansweredInvites: number | null;
770
- updatedAt: number | null;
771
768
  proposals: {
772
- max: number | null;
773
769
  min: number | null;
770
+ max: number | null;
774
771
  };
775
772
  lastViewedByClient: string | null;
776
773
  lastViewedByClientTimestamp: number | null;
777
774
  hires: number | null;
778
775
  interviewing: number | null;
779
776
  invitesSent: number | null;
777
+ unansweredInvites: number | null;
778
+ updatedAt: number | null;
780
779
  } | null;
781
- activityUpdates: 2 | 1 | 3 | null;
780
+ occupation: string | null;
781
+ activityUpdates: 1 | 2 | 3 | null;
782
782
  scrapedAt: number | null;
783
783
  suitabilityRating: number | null;
784
784
  suitabilityReason: string | null;
785
785
  proposal: string | null;
786
786
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
787
- leadStatus: "rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won" | null;
787
+ leadStatus: "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won" | null;
788
788
  biddingAmount: number | null;
789
789
  boosted: boolean | null;
790
790
  boostingAmount: number | null;
@@ -816,101 +816,99 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
816
816
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
817
817
  alreadyHiredAction: "bid" | "skip";
818
818
  bidConfig: {
819
- contractorName: string | null;
820
- agencyName: string | null;
821
819
  specialisedProfile: string | null;
820
+ agencyName: string | null;
821
+ contractorName: string | null;
822
822
  };
823
823
  } | null;
824
824
  statusSynced: boolean | null;
825
- proposalId?: string | undefined;
826
- wonAmount?: number | undefined;
827
825
  activity?: Partial<Record<"4h" | "24h", {
828
- unansweredInvites: number | null;
829
- updatedAt: number | null;
830
826
  proposals: {
831
- max: number | null;
832
827
  min: number | null;
828
+ max: number | null;
833
829
  };
834
830
  lastViewedByClient: string | null;
835
831
  lastViewedByClientTimestamp: number | null;
836
832
  hires: number | null;
837
833
  interviewing: number | null;
838
834
  invitesSent: number | null;
835
+ unansweredInvites: number | null;
836
+ updatedAt: number | null;
839
837
  }>> | null | undefined;
840
838
  activityDelta?: {
841
- unansweredInvites: number;
842
839
  proposals: number;
843
840
  hires: number;
844
841
  interviewing: number;
845
842
  invitesSent: number;
843
+ unansweredInvites: number;
846
844
  } | null | undefined;
845
+ proposalId?: string | undefined;
846
+ wonAmount?: number | undefined;
847
847
  }>;
848
848
  isOverallHighestPriorityCampaign: z.ZodOptional<z.ZodBoolean>;
849
849
  applyToLeads: z.ZodOptional<z.ZodArray<z.ZodObject<{
850
850
  leadId: z.ZodString;
851
851
  campaignId: z.ZodString;
852
852
  }, "strip", z.ZodTypeAny, {
853
- leadId: string;
854
853
  campaignId: string;
855
- }, {
856
854
  leadId: string;
855
+ }, {
857
856
  campaignId: string;
857
+ leadId: string;
858
858
  }>, "many">>;
859
859
  }, "strip", z.ZodTypeAny, {
860
+ userId: string | null;
860
861
  organizationId: string;
861
862
  campaignId: string;
862
- userId: string | null;
863
863
  lead: {
864
- id: string | null;
865
- title: string | null;
866
- metadata: {
867
- hours: string | null;
868
- duration: string | null;
869
- hourlyRate: {
870
- max: number | null;
871
- min: number | null;
872
- } | null;
873
- experienceLevel: string | null;
874
- paymentType: string | null;
875
- fixedPrice: number | null;
876
- } | null;
877
- description: string | null;
878
- region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
879
- datetime: number | null;
880
864
  organizationId: string;
881
865
  campaignId: string;
882
- category: string | null;
883
- uid: string | null;
866
+ coverLetterTemplateId: string | null;
867
+ jobId: string;
868
+ title: string | null;
869
+ description: string | null;
884
870
  questions: string[] | null;
885
- occupation: string | null;
886
- createdAt: number | null;
887
- updatedAt: number | null;
888
871
  questionAnswerPairs: {
889
- answer: string;
890
872
  question: string;
873
+ answer: string;
891
874
  }[] | null;
892
- coverLetterTemplateId: string | null;
893
- jobId: string;
875
+ id: string | null;
876
+ uid: string | null;
877
+ createdAt: number | null;
878
+ category: string | null;
894
879
  skills: {
895
880
  name: string;
896
881
  }[] | null;
882
+ datetime: number | null;
897
883
  descriptionLength: number | null;
898
884
  connectsRequired: number | null;
899
885
  projectType: string | null;
900
886
  projectDuration: string | null;
901
887
  jobUrl: string | null;
888
+ metadata: {
889
+ hours: string | null;
890
+ duration: string | null;
891
+ experienceLevel: string | null;
892
+ hourlyRate: {
893
+ min: number | null;
894
+ max: number | null;
895
+ } | null;
896
+ paymentType: string | null;
897
+ fixedPrice: number | null;
898
+ } | null;
899
+ region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
902
900
  clientInfo: {
903
- country: string | null;
904
- region: string | null;
905
- openJobs: number | null;
906
- isPhoneVerified: boolean | null;
907
901
  isPaymentVerified: boolean | null;
902
+ isPhoneVerified: boolean | null;
908
903
  numberOfReviews: number | null;
909
904
  rating: number | null;
905
+ country: string | null;
906
+ region: string | null;
910
907
  jobsPosted: number | null;
911
908
  totalSpent: number | null;
912
909
  numberOfHires: number | null;
913
910
  activeEngagements: number | null;
911
+ openJobs: number | null;
914
912
  hireRate: number | null;
915
913
  memberSince: string | null;
916
914
  companyIndustry: string | null;
@@ -921,7 +919,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
921
919
  } | null;
922
920
  vendorQualifications: {
923
921
  location: string | null;
924
- talentType: "unspecified" | "Independent" | "Agency" | null;
922
+ talentType: "Agency" | "Independent" | "unspecified" | null;
925
923
  englishLevel: string | null;
926
924
  minimumEarnings: number | null;
927
925
  jobSuccessScore: string | null;
@@ -930,9 +928,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
930
928
  isFeatured: boolean | null;
931
929
  clientReviews: {
932
930
  hourlyRate: number | null;
933
- jobTitle: string | null;
934
931
  paymentType: string | null;
935
932
  fixedPrice: number | null;
933
+ jobTitle: string | null;
936
934
  freelancerName: string | null;
937
935
  freelancerRating: number | null;
938
936
  freelancerFeedback: string | null;
@@ -944,29 +942,31 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
944
942
  }[] | null;
945
943
  bidRange: {
946
944
  high: number | null;
947
- low: number | null;
948
945
  avg: number | null;
946
+ low: number | null;
949
947
  } | null;
948
+ updatedAt: number | null;
950
949
  jobActivity: {
951
- unansweredInvites: number | null;
952
- updatedAt: number | null;
953
950
  proposals: {
954
- max: number | null;
955
951
  min: number | null;
952
+ max: number | null;
956
953
  };
957
954
  lastViewedByClient: string | null;
958
955
  lastViewedByClientTimestamp: number | null;
959
956
  hires: number | null;
960
957
  interviewing: number | null;
961
958
  invitesSent: number | null;
959
+ unansweredInvites: number | null;
960
+ updatedAt: number | null;
962
961
  } | null;
963
- activityUpdates: 2 | 1 | 3 | null;
962
+ occupation: string | null;
963
+ activityUpdates: 1 | 2 | 3 | null;
964
964
  scrapedAt: number | null;
965
965
  suitabilityRating: number | null;
966
966
  suitabilityReason: string | null;
967
967
  proposal: string | null;
968
968
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
969
- leadStatus: "rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won" | null;
969
+ leadStatus: "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won" | null;
970
970
  biddingAmount: number | null;
971
971
  boosted: boolean | null;
972
972
  boostingAmount: number | null;
@@ -998,95 +998,93 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
998
998
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
999
999
  alreadyHiredAction: "bid" | "skip";
1000
1000
  bidConfig: {
1001
- contractorName: string | null;
1002
- agencyName: string | null;
1003
1001
  specialisedProfile: string | null;
1002
+ agencyName: string | null;
1003
+ contractorName: string | null;
1004
1004
  };
1005
1005
  } | null;
1006
1006
  statusSynced: boolean | null;
1007
- proposalId?: string | undefined;
1008
- wonAmount?: number | undefined;
1009
1007
  activity?: Partial<Record<"4h" | "24h", {
1010
- unansweredInvites: number | null;
1011
- updatedAt: number | null;
1012
1008
  proposals: {
1013
- max: number | null;
1014
1009
  min: number | null;
1010
+ max: number | null;
1015
1011
  };
1016
1012
  lastViewedByClient: string | null;
1017
1013
  lastViewedByClientTimestamp: number | null;
1018
1014
  hires: number | null;
1019
1015
  interviewing: number | null;
1020
1016
  invitesSent: number | null;
1017
+ unansweredInvites: number | null;
1018
+ updatedAt: number | null;
1021
1019
  }>> | null | undefined;
1022
1020
  activityDelta?: {
1023
- unansweredInvites: number;
1024
1021
  proposals: number;
1025
1022
  hires: number;
1026
1023
  interviewing: number;
1027
1024
  invitesSent: number;
1025
+ unansweredInvites: number;
1028
1026
  } | null | undefined;
1027
+ proposalId?: string | undefined;
1028
+ wonAmount?: number | undefined;
1029
1029
  };
1030
1030
  isOverallHighestPriorityCampaign?: boolean | undefined;
1031
1031
  applyToLeads?: {
1032
- leadId: string;
1033
1032
  campaignId: string;
1033
+ leadId: string;
1034
1034
  }[] | undefined;
1035
1035
  }, {
1036
+ userId: string | null;
1036
1037
  organizationId: string;
1037
1038
  campaignId: string;
1038
- userId: string | null;
1039
1039
  lead: {
1040
- id: string | null;
1041
- title: string | null;
1042
- metadata: {
1043
- hours: string | null;
1044
- duration: string | null;
1045
- hourlyRate: {
1046
- max: number | null;
1047
- min: number | null;
1048
- } | null;
1049
- experienceLevel: string | null;
1050
- paymentType: string | null;
1051
- fixedPrice: number | null;
1052
- } | null;
1053
- description: string | null;
1054
- region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
1055
- datetime: number | null;
1056
1040
  organizationId: string;
1057
1041
  campaignId: string;
1058
- category: string | null;
1059
- uid: string | null;
1042
+ coverLetterTemplateId: string | null;
1043
+ jobId: string;
1044
+ title: string | null;
1045
+ description: string | null;
1060
1046
  questions: string[] | null;
1061
- occupation: string | null;
1062
- createdAt: number | null;
1063
- updatedAt: number | null;
1064
1047
  questionAnswerPairs: {
1065
- answer: string;
1066
1048
  question: string;
1049
+ answer: string;
1067
1050
  }[] | null;
1068
- coverLetterTemplateId: string | null;
1069
- jobId: string;
1051
+ id: string | null;
1052
+ uid: string | null;
1053
+ createdAt: number | null;
1054
+ category: string | null;
1070
1055
  skills: {
1071
1056
  name: string;
1072
1057
  }[] | null;
1058
+ datetime: number | null;
1073
1059
  descriptionLength: number | null;
1074
1060
  connectsRequired: number | null;
1075
1061
  projectType: string | null;
1076
1062
  projectDuration: string | null;
1077
1063
  jobUrl: string | null;
1064
+ metadata: {
1065
+ hours: string | null;
1066
+ duration: string | null;
1067
+ experienceLevel: string | null;
1068
+ hourlyRate: {
1069
+ min: number | null;
1070
+ max: number | null;
1071
+ } | null;
1072
+ paymentType: string | null;
1073
+ fixedPrice: number | null;
1074
+ } | null;
1075
+ region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
1078
1076
  clientInfo: {
1079
- country: string | null;
1080
- region: string | null;
1081
- openJobs: number | null;
1082
- isPhoneVerified: boolean | null;
1083
1077
  isPaymentVerified: boolean | null;
1078
+ isPhoneVerified: boolean | null;
1084
1079
  numberOfReviews: number | null;
1085
1080
  rating: number | null;
1081
+ country: string | null;
1082
+ region: string | null;
1086
1083
  jobsPosted: number | null;
1087
1084
  totalSpent: number | null;
1088
1085
  numberOfHires: number | null;
1089
1086
  activeEngagements: number | null;
1087
+ openJobs: number | null;
1090
1088
  hireRate: number | null;
1091
1089
  memberSince: string | null;
1092
1090
  companyIndustry: string | null;
@@ -1097,7 +1095,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1097
1095
  } | null;
1098
1096
  vendorQualifications: {
1099
1097
  location: string | null;
1100
- talentType: "unspecified" | "Independent" | "Agency" | null;
1098
+ talentType: "Agency" | "Independent" | "unspecified" | null;
1101
1099
  englishLevel: string | null;
1102
1100
  minimumEarnings: number | null;
1103
1101
  jobSuccessScore: string | null;
@@ -1106,9 +1104,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1106
1104
  isFeatured: boolean | null;
1107
1105
  clientReviews: {
1108
1106
  hourlyRate: number | null;
1109
- jobTitle: string | null;
1110
1107
  paymentType: string | null;
1111
1108
  fixedPrice: number | null;
1109
+ jobTitle: string | null;
1112
1110
  freelancerName: string | null;
1113
1111
  freelancerRating: number | null;
1114
1112
  freelancerFeedback: string | null;
@@ -1120,29 +1118,31 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1120
1118
  }[] | null;
1121
1119
  bidRange: {
1122
1120
  high: number | null;
1123
- low: number | null;
1124
1121
  avg: number | null;
1122
+ low: number | null;
1125
1123
  } | null;
1124
+ updatedAt: number | null;
1126
1125
  jobActivity: {
1127
- unansweredInvites: number | null;
1128
- updatedAt: number | null;
1129
1126
  proposals: {
1130
- max: number | null;
1131
1127
  min: number | null;
1128
+ max: number | null;
1132
1129
  };
1133
1130
  lastViewedByClient: string | null;
1134
1131
  lastViewedByClientTimestamp: number | null;
1135
1132
  hires: number | null;
1136
1133
  interviewing: number | null;
1137
1134
  invitesSent: number | null;
1135
+ unansweredInvites: number | null;
1136
+ updatedAt: number | null;
1138
1137
  } | null;
1139
- activityUpdates: 2 | 1 | 3 | null;
1138
+ occupation: string | null;
1139
+ activityUpdates: 1 | 2 | 3 | null;
1140
1140
  scrapedAt: number | null;
1141
1141
  suitabilityRating: number | null;
1142
1142
  suitabilityReason: string | null;
1143
1143
  proposal: string | null;
1144
1144
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1145
- leadStatus: "rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won" | null;
1145
+ leadStatus: "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won" | null;
1146
1146
  biddingAmount: number | null;
1147
1147
  boosted: boolean | null;
1148
1148
  boostingAmount: number | null;
@@ -1174,39 +1174,39 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1174
1174
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
1175
1175
  alreadyHiredAction: "bid" | "skip";
1176
1176
  bidConfig: {
1177
- contractorName: string | null;
1178
- agencyName: string | null;
1179
1177
  specialisedProfile: string | null;
1178
+ agencyName: string | null;
1179
+ contractorName: string | null;
1180
1180
  };
1181
1181
  } | null;
1182
1182
  statusSynced: boolean | null;
1183
- proposalId?: string | undefined;
1184
- wonAmount?: number | undefined;
1185
1183
  activity?: Partial<Record<"4h" | "24h", {
1186
- unansweredInvites: number | null;
1187
- updatedAt: number | null;
1188
1184
  proposals: {
1189
- max: number | null;
1190
1185
  min: number | null;
1186
+ max: number | null;
1191
1187
  };
1192
1188
  lastViewedByClient: string | null;
1193
1189
  lastViewedByClientTimestamp: number | null;
1194
1190
  hires: number | null;
1195
1191
  interviewing: number | null;
1196
1192
  invitesSent: number | null;
1193
+ unansweredInvites: number | null;
1194
+ updatedAt: number | null;
1197
1195
  }>> | null | undefined;
1198
1196
  activityDelta?: {
1199
- unansweredInvites: number;
1200
1197
  proposals: number;
1201
1198
  hires: number;
1202
1199
  interviewing: number;
1203
1200
  invitesSent: number;
1201
+ unansweredInvites: number;
1204
1202
  } | null | undefined;
1203
+ proposalId?: string | undefined;
1204
+ wonAmount?: number | undefined;
1205
1205
  };
1206
1206
  isOverallHighestPriorityCampaign?: boolean | undefined;
1207
1207
  applyToLeads?: {
1208
- leadId: string;
1209
1208
  campaignId: string;
1209
+ leadId: string;
1210
1210
  }[] | undefined;
1211
1211
  }>;
1212
1212
  export declare const agentPickSpecialisedProfileRequestSchema: z.ZodObject<{
@@ -1214,23 +1214,23 @@ export declare const agentPickSpecialisedProfileRequestSchema: z.ZodObject<{
1214
1214
  jobDescription: z.ZodString;
1215
1215
  specialisedProfiles: z.ZodArray<z.ZodString, "many">;
1216
1216
  }, "strip", z.ZodTypeAny, {
1217
- specialisedProfiles: string[];
1218
1217
  jobTitle: string;
1219
1218
  jobDescription: string;
1220
- }, {
1221
1219
  specialisedProfiles: string[];
1220
+ }, {
1222
1221
  jobTitle: string;
1223
1222
  jobDescription: string;
1223
+ specialisedProfiles: string[];
1224
1224
  }>;
1225
1225
  export declare const agentPickSpecialisedProfileResponseSchema: z.ZodObject<{
1226
1226
  selected_profile: z.ZodString;
1227
1227
  reason: z.ZodString;
1228
1228
  }, "strip", z.ZodTypeAny, {
1229
- reason: string;
1230
1229
  selected_profile: string;
1231
- }, {
1232
1230
  reason: string;
1231
+ }, {
1233
1232
  selected_profile: string;
1233
+ reason: string;
1234
1234
  }>;
1235
1235
  export type AgentCalculateSuitabilityRequest = z.infer<typeof agentCalculateSuitabilityRequestSchema>;
1236
1236
  export type AgentGenerateProposalRequest = z.infer<typeof agentGenerateProposalRequestSchema>;
@@ -1241,21 +1241,21 @@ export declare const suitabilityRatingSchema: z.ZodObject<{
1241
1241
  rating: z.ZodNumber;
1242
1242
  reason: z.ZodString;
1243
1243
  }, "strip", z.ZodTypeAny, {
1244
- reason: string;
1245
1244
  rating: number;
1246
- }, {
1247
1245
  reason: string;
1246
+ }, {
1248
1247
  rating: number;
1248
+ reason: string;
1249
1249
  }>;
1250
1250
  export declare const jobQualityScoreSchema: z.ZodObject<{
1251
1251
  rating: z.ZodNumber;
1252
1252
  reason: z.ZodString;
1253
1253
  }, "strip", z.ZodTypeAny, {
1254
- reason: string;
1255
1254
  rating: number;
1256
- }, {
1257
1255
  reason: string;
1256
+ }, {
1258
1257
  rating: number;
1258
+ reason: string;
1259
1259
  }>;
1260
1260
  export type JobQualityScore = z.infer<typeof jobQualityScoreSchema>;
1261
1261
  export { proposalSchema };
@@ -1265,34 +1265,34 @@ export declare const agentTaskResponseSchema: z.ZodObject<{
1265
1265
  rating: z.ZodNumber;
1266
1266
  reason: z.ZodString;
1267
1267
  }, "strip", z.ZodTypeAny, {
1268
- reason: string;
1269
1268
  rating: number;
1270
- }, {
1271
1269
  reason: string;
1270
+ }, {
1272
1271
  rating: number;
1272
+ reason: string;
1273
1273
  }>, z.ZodObject<{
1274
1274
  coverLetter: z.ZodString;
1275
1275
  questionAnswerPairs: z.ZodArray<z.ZodObject<{
1276
1276
  question: z.ZodString;
1277
1277
  answer: z.ZodString;
1278
1278
  }, "strip", z.ZodTypeAny, {
1279
- answer: string;
1280
1279
  question: string;
1281
- }, {
1282
1280
  answer: string;
1281
+ }, {
1283
1282
  question: string;
1283
+ answer: string;
1284
1284
  }>, "many">;
1285
1285
  }, "strip", z.ZodTypeAny, {
1286
1286
  coverLetter: string;
1287
1287
  questionAnswerPairs: {
1288
- answer: string;
1289
1288
  question: string;
1289
+ answer: string;
1290
1290
  }[];
1291
1291
  }, {
1292
1292
  coverLetter: string;
1293
1293
  questionAnswerPairs: {
1294
- answer: string;
1295
1294
  question: string;
1295
+ answer: string;
1296
1296
  }[];
1297
1297
  }>]>;
1298
1298
  model: z.ZodString;
@@ -1300,33 +1300,33 @@ export declare const agentTaskResponseSchema: z.ZodObject<{
1300
1300
  promptTokens: z.ZodNumber;
1301
1301
  completionTokens: z.ZodNumber;
1302
1302
  }, "strip", z.ZodTypeAny, {
1303
- provider: string;
1304
- model: string;
1305
1303
  result: {
1304
+ rating: number;
1305
+ reason: string;
1306
+ } | {
1306
1307
  coverLetter: string;
1307
1308
  questionAnswerPairs: {
1308
- answer: string;
1309
1309
  question: string;
1310
+ answer: string;
1310
1311
  }[];
1311
- } | {
1312
- reason: string;
1313
- rating: number;
1314
1312
  };
1313
+ model: string;
1314
+ provider: string;
1315
1315
  promptTokens: number;
1316
1316
  completionTokens: number;
1317
1317
  }, {
1318
- provider: string;
1319
- model: string;
1320
1318
  result: {
1319
+ rating: number;
1320
+ reason: string;
1321
+ } | {
1321
1322
  coverLetter: string;
1322
1323
  questionAnswerPairs: {
1323
- answer: string;
1324
1324
  question: string;
1325
+ answer: string;
1325
1326
  }[];
1326
- } | {
1327
- reason: string;
1328
- rating: number;
1329
1327
  };
1328
+ model: string;
1329
+ provider: string;
1330
1330
  promptTokens: number;
1331
1331
  completionTokens: number;
1332
1332
  }>;