lancer-shared 1.2.326 → 1.2.327

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 (41) hide show
  1. package/dist/bundle.cjs.js +105 -0
  2. package/dist/bundle.cjs.js.map +1 -1
  3. package/dist/bundle.esm.js +94 -1
  4. package/dist/bundle.esm.js.map +1 -1
  5. package/dist/constants/chat.d.ts +17 -1
  6. package/dist/constants/routes.d.ts +1 -0
  7. package/dist/schemas/account/bidder-account.d.ts +33 -33
  8. package/dist/schemas/account/scraper-account.d.ts +10 -10
  9. package/dist/schemas/agent/index.d.ts +208 -208
  10. package/dist/schemas/agent/proposal.d.ts +2 -2
  11. package/dist/schemas/bidder/bid.d.ts +1744 -1744
  12. package/dist/schemas/campaign/campaign-analytics.d.ts +250 -250
  13. package/dist/schemas/campaign/campaign-chat-bot.d.ts +4 -4
  14. package/dist/schemas/campaign/campaign.d.ts +69 -69
  15. package/dist/schemas/chat/index.d.ts +563 -68
  16. package/dist/schemas/dashboard/index.d.ts +18 -18
  17. package/dist/schemas/golden-dataset/sample.d.ts +4 -4
  18. package/dist/schemas/job/index.d.ts +70 -70
  19. package/dist/schemas/job/job-details.d.ts +14 -14
  20. package/dist/schemas/job/job-listing.d.ts +10 -10
  21. package/dist/schemas/job/nuxt.d.ts +6 -6
  22. package/dist/schemas/lead/index.d.ts +683 -683
  23. package/dist/schemas/lead/lead-status.d.ts +2 -2
  24. package/dist/schemas/logger/feed/feed-job-enrich.d.ts +98 -98
  25. package/dist/schemas/logger/log-event.d.ts +40 -40
  26. package/dist/schemas/logger/scraper-events.d.ts +8 -8
  27. package/dist/schemas/notifications/index.d.ts +4 -4
  28. package/dist/schemas/organization/billing.d.ts +2 -2
  29. package/dist/schemas/organization/index.d.ts +34 -34
  30. package/dist/schemas/organization/onboarding.d.ts +2 -2
  31. package/dist/schemas/organization/organization-leads.d.ts +2 -2
  32. package/dist/schemas/organization/subscription.d.ts +6 -6
  33. package/dist/schemas/plan/index.d.ts +2 -2
  34. package/dist/schemas/proxy/proxy.d.ts +3 -3
  35. package/dist/schemas/scraper/scrape-payload.d.ts +262 -262
  36. package/dist/schemas/scraper/scrape-result.d.ts +86 -86
  37. package/dist/schemas/transaction/index.d.ts +4 -4
  38. package/dist/schemas/upwork-talent/index.d.ts +8 -8
  39. package/dist/schemas/usage/index.d.ts +2 -2
  40. package/dist/schemas/usage-event/index.d.ts +8 -8
  41. package/package.json +1 -1
@@ -15,15 +15,15 @@ export declare const agentGenerateProposalRequestSchema: z.ZodObject<{
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  title: string;
17
17
  description: string;
18
- leadId: string;
19
18
  questions: string[];
19
+ leadId: string;
20
20
  jobId: string;
21
21
  clientCountry: string;
22
22
  }, {
23
23
  title: string;
24
24
  description: string;
25
- leadId: string;
26
25
  questions: string[];
26
+ leadId: string;
27
27
  jobId: string;
28
28
  clientCountry: string;
29
29
  }>;
@@ -52,96 +52,96 @@ export declare const agentGenerateProposalRequestSchema: z.ZodObject<{
52
52
  numHours: z.ZodNullable<z.ZodNumber>;
53
53
  totalBilled: z.ZodNullable<z.ZodNumber>;
54
54
  }, "strip", z.ZodTypeAny, {
55
- freelancerName: string | null;
56
- jobTitle: string | null;
57
55
  hourlyRate: number | null;
56
+ paymentType: string | null;
57
+ fixedPrice: number | null;
58
+ jobTitle: string | null;
59
+ freelancerName: string | null;
58
60
  freelancerRating: number | null;
59
61
  freelancerFeedback: string | null;
60
62
  clientFeedback: string | null;
61
63
  clientFeedbackRating: number | null;
62
64
  dateRange: string | null;
63
- paymentType: string | null;
64
- fixedPrice: number | null;
65
65
  numHours: number | null;
66
66
  totalBilled: number | null;
67
67
  }, {
68
- freelancerName: string | null;
69
- jobTitle: string | null;
70
68
  hourlyRate: number | null;
69
+ paymentType: string | null;
70
+ fixedPrice: number | null;
71
+ jobTitle: string | null;
72
+ freelancerName: string | null;
71
73
  freelancerRating: number | null;
72
74
  freelancerFeedback: string | null;
73
75
  clientFeedback: string | null;
74
76
  clientFeedbackRating: number | null;
75
77
  dateRange: string | null;
76
- paymentType: string | null;
77
- fixedPrice: number | null;
78
78
  numHours: number | null;
79
79
  totalBilled: number | null;
80
80
  }>, "many">>;
81
81
  }, "strip", z.ZodTypeAny, {
82
- userId: string | null;
83
- organizationId: string;
84
- campaignId: string;
85
82
  job: {
86
83
  title: string;
87
84
  description: string;
88
- leadId: string;
89
85
  questions: string[];
86
+ leadId: string;
90
87
  jobId: string;
91
88
  clientCountry: string;
92
89
  };
93
- coverLetterTemplateId?: string | undefined;
94
- isOverallHighestPriorityCampaign?: boolean | undefined;
95
- applyToLeads?: {
96
- leadId: string;
97
- campaignId: string;
98
- }[] | undefined;
90
+ organizationId: string;
91
+ userId: string | null;
92
+ campaignId: string;
99
93
  clientReviews?: {
100
- freelancerName: string | null;
101
- jobTitle: string | null;
102
94
  hourlyRate: number | null;
95
+ paymentType: string | null;
96
+ fixedPrice: number | null;
97
+ jobTitle: string | null;
98
+ freelancerName: string | null;
103
99
  freelancerRating: number | null;
104
100
  freelancerFeedback: string | null;
105
101
  clientFeedback: string | null;
106
102
  clientFeedbackRating: number | null;
107
103
  dateRange: string | null;
108
- paymentType: string | null;
109
- fixedPrice: number | null;
110
104
  numHours: number | null;
111
105
  totalBilled: number | null;
112
106
  }[] | undefined;
107
+ coverLetterTemplateId?: string | undefined;
108
+ isOverallHighestPriorityCampaign?: boolean | undefined;
109
+ applyToLeads?: {
110
+ leadId: string;
111
+ campaignId: string;
112
+ }[] | undefined;
113
113
  }, {
114
- userId: string | null;
115
- organizationId: string;
116
- campaignId: string;
117
114
  job: {
118
115
  title: string;
119
116
  description: string;
120
- leadId: string;
121
117
  questions: string[];
118
+ leadId: string;
122
119
  jobId: string;
123
120
  clientCountry: string;
124
121
  };
125
- coverLetterTemplateId?: string | undefined;
126
- isOverallHighestPriorityCampaign?: boolean | undefined;
127
- applyToLeads?: {
128
- leadId: string;
129
- campaignId: string;
130
- }[] | undefined;
122
+ organizationId: string;
123
+ userId: string | null;
124
+ campaignId: string;
131
125
  clientReviews?: {
132
- freelancerName: string | null;
133
- jobTitle: string | null;
134
126
  hourlyRate: number | null;
127
+ paymentType: string | null;
128
+ fixedPrice: number | null;
129
+ jobTitle: string | null;
130
+ freelancerName: string | null;
135
131
  freelancerRating: number | null;
136
132
  freelancerFeedback: string | null;
137
133
  clientFeedback: string | null;
138
134
  clientFeedbackRating: number | null;
139
135
  dateRange: string | null;
140
- paymentType: string | null;
141
- fixedPrice: number | null;
142
136
  numHours: number | null;
143
137
  totalBilled: number | null;
144
138
  }[] | undefined;
139
+ coverLetterTemplateId?: string | undefined;
140
+ isOverallHighestPriorityCampaign?: boolean | undefined;
141
+ applyToLeads?: {
142
+ leadId: string;
143
+ campaignId: string;
144
+ }[] | undefined;
145
145
  }>;
146
146
  export declare const agentGenerateProposalResponseSchema: z.ZodObject<{
147
147
  coverLetter: z.ZodString;
@@ -156,17 +156,17 @@ export declare const agentGenerateProposalResponseSchema: z.ZodObject<{
156
156
  question: string;
157
157
  }>, "many">;
158
158
  }, "strip", z.ZodTypeAny, {
159
- coverLetter: string;
160
159
  questionAnswerPairs: {
161
160
  answer: string;
162
161
  question: string;
163
162
  }[];
164
- }, {
165
163
  coverLetter: string;
164
+ }, {
166
165
  questionAnswerPairs: {
167
166
  answer: string;
168
167
  question: string;
169
168
  }[];
169
+ coverLetter: string;
170
170
  }>;
171
171
  export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
172
172
  userId: z.ZodNullable<z.ZodString>;
@@ -216,9 +216,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
216
216
  max: number | null;
217
217
  min: number | null;
218
218
  } | null;
219
+ experienceLevel: string | null;
219
220
  paymentType: string | null;
220
221
  fixedPrice: number | null;
221
- experienceLevel: string | null;
222
222
  }, {
223
223
  hours: string | null;
224
224
  duration: string | null;
@@ -226,9 +226,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
226
226
  max: number | null;
227
227
  min: number | null;
228
228
  } | null;
229
+ experienceLevel: string | null;
229
230
  paymentType: string | null;
230
231
  fixedPrice: number | null;
231
- experienceLevel: string | null;
232
232
  }>>;
233
233
  clientInfo: z.ZodNullable<z.ZodObject<{
234
234
  isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
@@ -326,29 +326,29 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
326
326
  numHours: z.ZodNullable<z.ZodNumber>;
327
327
  totalBilled: z.ZodNullable<z.ZodNumber>;
328
328
  }, "strip", z.ZodTypeAny, {
329
- freelancerName: string | null;
330
- jobTitle: string | null;
331
329
  hourlyRate: number | null;
330
+ paymentType: string | null;
331
+ fixedPrice: number | null;
332
+ jobTitle: string | null;
333
+ freelancerName: string | null;
332
334
  freelancerRating: number | null;
333
335
  freelancerFeedback: string | null;
334
336
  clientFeedback: string | null;
335
337
  clientFeedbackRating: number | null;
336
338
  dateRange: string | null;
337
- paymentType: string | null;
338
- fixedPrice: number | null;
339
339
  numHours: number | null;
340
340
  totalBilled: number | null;
341
341
  }, {
342
- freelancerName: string | null;
343
- jobTitle: string | null;
344
342
  hourlyRate: number | null;
343
+ paymentType: string | null;
344
+ fixedPrice: number | null;
345
+ jobTitle: string | null;
346
+ freelancerName: string | null;
345
347
  freelancerRating: number | null;
346
348
  freelancerFeedback: string | null;
347
349
  clientFeedback: string | null;
348
350
  clientFeedbackRating: number | null;
349
351
  dateRange: string | null;
350
- paymentType: string | null;
351
- fixedPrice: number | null;
352
352
  numHours: number | null;
353
353
  totalBilled: number | null;
354
354
  }>, "many">>;
@@ -385,8 +385,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
385
385
  unansweredInvites: z.ZodNullable<z.ZodNumber>;
386
386
  updatedAt: z.ZodNullable<z.ZodNumber>;
387
387
  }, "strip", z.ZodTypeAny, {
388
- updatedAt: number | null;
389
388
  unansweredInvites: number | null;
389
+ updatedAt: number | null;
390
390
  proposals: {
391
391
  max: number | null;
392
392
  min: number | null;
@@ -397,8 +397,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
397
397
  interviewing: number | null;
398
398
  invitesSent: number | null;
399
399
  }, {
400
- updatedAt: number | null;
401
400
  unansweredInvites: number | null;
401
+ updatedAt: number | null;
402
402
  proposals: {
403
403
  max: number | null;
404
404
  min: number | null;
@@ -430,8 +430,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
430
430
  unansweredInvites: z.ZodNullable<z.ZodNumber>;
431
431
  updatedAt: z.ZodNullable<z.ZodNumber>;
432
432
  }, "strip", z.ZodTypeAny, {
433
- updatedAt: number | null;
434
433
  unansweredInvites: number | null;
434
+ updatedAt: number | null;
435
435
  proposals: {
436
436
  max: number | null;
437
437
  min: number | null;
@@ -442,8 +442,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
442
442
  interviewing: number | null;
443
443
  invitesSent: number | null;
444
444
  }, {
445
- updatedAt: number | null;
446
445
  unansweredInvites: number | null;
446
+ updatedAt: number | null;
447
447
  proposals: {
448
448
  max: number | null;
449
449
  min: number | null;
@@ -541,9 +541,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
541
541
  specialisedProfile: string | null;
542
542
  }>;
543
543
  }, "strip", z.ZodTypeAny, {
544
- biddingDelayInMinutes: number | null;
545
544
  appliedFromQueue: boolean | null;
546
- bidWithWarning: "bid" | "skip";
545
+ biddingDelayInMinutes: number | null;
546
+ bidWithWarning: "skip" | "bid";
547
547
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate" | "smart_bidding";
548
548
  biddingHourlyRatePercentage: number | null;
549
549
  biddingFixedHourlyRate: number | null;
@@ -553,16 +553,16 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
553
553
  maximumBoost: number | null;
554
554
  minBoost: number | null;
555
555
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
556
- alreadyHiredAction: "bid" | "skip";
556
+ alreadyHiredAction: "skip" | "bid";
557
557
  bidConfig: {
558
558
  contractorName: string | null;
559
559
  agencyName: string | null;
560
560
  specialisedProfile: string | null;
561
561
  };
562
562
  }, {
563
- biddingDelayInMinutes: number | null;
564
563
  appliedFromQueue: boolean | null;
565
- bidWithWarning: "bid" | "skip";
564
+ biddingDelayInMinutes: number | null;
565
+ bidWithWarning: "skip" | "bid";
566
566
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate" | "smart_bidding";
567
567
  biddingHourlyRatePercentage: number | null;
568
568
  biddingFixedHourlyRate: number | null;
@@ -572,7 +572,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
572
572
  maximumBoost: number | null;
573
573
  minBoost: number | null;
574
574
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
575
- alreadyHiredAction: "bid" | "skip";
575
+ alreadyHiredAction: "skip" | "bid";
576
576
  bidConfig: {
577
577
  contractorName: string | null;
578
578
  agencyName: string | null;
@@ -590,42 +590,23 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
590
590
  max: number | null;
591
591
  min: number | null;
592
592
  } | null;
593
+ experienceLevel: string | null;
593
594
  paymentType: string | null;
594
595
  fixedPrice: number | null;
595
- experienceLevel: string | null;
596
596
  } | null;
597
597
  description: string | null;
598
598
  region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
599
599
  datetime: number | null;
600
- createdAt: number | null;
601
- updatedAt: number | null;
602
- proposal: string | null;
603
- organizationId: string;
604
- campaignId: string;
605
600
  category: string | null;
606
601
  uid: string | null;
607
602
  questions: string[] | null;
608
603
  occupation: string | null;
609
- questionAnswerPairs: {
610
- answer: string;
611
- question: string;
612
- }[] | null;
613
- coverLetterTemplateId: string | null;
614
- jobId: string;
615
- clientReviews: {
616
- freelancerName: string | null;
617
- jobTitle: string | null;
618
- hourlyRate: number | null;
619
- freelancerRating: number | null;
620
- freelancerFeedback: string | null;
621
- clientFeedback: string | null;
622
- clientFeedbackRating: number | null;
623
- dateRange: string | null;
624
- paymentType: string | null;
625
- fixedPrice: number | null;
626
- numHours: number | null;
627
- totalBilled: number | null;
628
- }[] | null;
604
+ organizationId: string;
605
+ createdAt: number | null;
606
+ updatedAt: number | null;
607
+ campaignId: string;
608
+ biddingDelayInMinutes: number | null;
609
+ specialisedProfile: string | null;
629
610
  skills: {
630
611
  name: string;
631
612
  }[] | null;
@@ -663,14 +644,28 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
663
644
  includeRisingTalent: string | null;
664
645
  } | null;
665
646
  isFeatured: boolean | null;
647
+ clientReviews: {
648
+ hourlyRate: number | null;
649
+ paymentType: string | null;
650
+ fixedPrice: number | null;
651
+ jobTitle: string | null;
652
+ freelancerName: string | null;
653
+ freelancerRating: number | null;
654
+ freelancerFeedback: string | null;
655
+ clientFeedback: string | null;
656
+ clientFeedbackRating: number | null;
657
+ dateRange: string | null;
658
+ numHours: number | null;
659
+ totalBilled: number | null;
660
+ }[] | null;
666
661
  bidRange: {
667
662
  high: number | null;
668
663
  low: number | null;
669
664
  avg: number | null;
670
665
  } | null;
671
666
  jobActivity: {
672
- updatedAt: number | null;
673
667
  unansweredInvites: number | null;
668
+ updatedAt: number | null;
674
669
  proposals: {
675
670
  max: number | null;
676
671
  min: number | null;
@@ -682,31 +677,36 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
682
677
  invitesSent: number | null;
683
678
  } | null;
684
679
  activityUpdates: 2 | 1 | 3 | null;
680
+ jobId: string;
685
681
  scrapedAt: number | null;
686
682
  suitabilityRating: number | null;
687
683
  suitabilityReason: string | null;
684
+ proposal: string | null;
685
+ questionAnswerPairs: {
686
+ answer: string;
687
+ question: string;
688
+ }[] | null;
688
689
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
689
690
  leadStatus: "rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won" | null;
690
691
  biddingAmount: number | null;
691
692
  boosted: boolean | null;
692
693
  boostingAmount: number | null;
693
694
  boostedForPlace: number | null;
694
- specialisedProfile: string | null;
695
695
  biddedAt: number | null;
696
696
  biddingTaskScheduled: boolean | null;
697
697
  scheduledBiddingTime: number | null;
698
698
  inQueue: boolean | null;
699
- biddingDelayInMinutes: number | null;
700
699
  checkFeedbackStatusCreatedAt: number | null;
701
700
  biddingScheduledAt: number | null;
701
+ coverLetterTemplateId: string | null;
702
702
  feedbackCheckTaskId: string | null;
703
703
  bidDecision: "rejected" | "proceeded" | null;
704
704
  rejectedFeedback: string | null;
705
705
  applicationId: string | null;
706
706
  leadBiddingConfig: {
707
- biddingDelayInMinutes: number | null;
708
707
  appliedFromQueue: boolean | null;
709
- bidWithWarning: "bid" | "skip";
708
+ biddingDelayInMinutes: number | null;
709
+ bidWithWarning: "skip" | "bid";
710
710
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate" | "smart_bidding";
711
711
  biddingHourlyRatePercentage: number | null;
712
712
  biddingFixedHourlyRate: number | null;
@@ -716,7 +716,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
716
716
  maximumBoost: number | null;
717
717
  minBoost: number | null;
718
718
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
719
- alreadyHiredAction: "bid" | "skip";
719
+ alreadyHiredAction: "skip" | "bid";
720
720
  bidConfig: {
721
721
  contractorName: string | null;
722
722
  agencyName: string | null;
@@ -724,11 +724,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
724
724
  };
725
725
  } | null;
726
726
  statusSynced: boolean | null;
727
- proposalId?: string | undefined;
728
- wonAmount?: number | undefined;
729
727
  activity?: Partial<Record<"4h" | "24h", {
730
- updatedAt: number | null;
731
728
  unansweredInvites: number | null;
729
+ updatedAt: number | null;
732
730
  proposals: {
733
731
  max: number | null;
734
732
  min: number | null;
@@ -739,6 +737,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
739
737
  interviewing: number | null;
740
738
  invitesSent: number | null;
741
739
  }>> | null | undefined;
740
+ proposalId?: string | undefined;
741
+ wonAmount?: number | undefined;
742
742
  activityDelta?: {
743
743
  unansweredInvites: number;
744
744
  proposals: number;
@@ -756,42 +756,23 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
756
756
  max: number | null;
757
757
  min: number | null;
758
758
  } | null;
759
+ experienceLevel: string | null;
759
760
  paymentType: string | null;
760
761
  fixedPrice: number | null;
761
- experienceLevel: string | null;
762
762
  } | null;
763
763
  description: string | null;
764
764
  region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
765
765
  datetime: number | null;
766
- createdAt: number | null;
767
- updatedAt: number | null;
768
- proposal: string | null;
769
- organizationId: string;
770
- campaignId: string;
771
766
  category: string | null;
772
767
  uid: string | null;
773
768
  questions: string[] | null;
774
769
  occupation: string | null;
775
- questionAnswerPairs: {
776
- answer: string;
777
- question: string;
778
- }[] | null;
779
- coverLetterTemplateId: string | null;
780
- jobId: string;
781
- clientReviews: {
782
- freelancerName: string | null;
783
- jobTitle: string | null;
784
- hourlyRate: number | null;
785
- freelancerRating: number | null;
786
- freelancerFeedback: string | null;
787
- clientFeedback: string | null;
788
- clientFeedbackRating: number | null;
789
- dateRange: string | null;
790
- paymentType: string | null;
791
- fixedPrice: number | null;
792
- numHours: number | null;
793
- totalBilled: number | null;
794
- }[] | null;
770
+ organizationId: string;
771
+ createdAt: number | null;
772
+ updatedAt: number | null;
773
+ campaignId: string;
774
+ biddingDelayInMinutes: number | null;
775
+ specialisedProfile: string | null;
795
776
  skills: {
796
777
  name: string;
797
778
  }[] | null;
@@ -829,14 +810,28 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
829
810
  includeRisingTalent: string | null;
830
811
  } | null;
831
812
  isFeatured: boolean | null;
813
+ clientReviews: {
814
+ hourlyRate: number | null;
815
+ paymentType: string | null;
816
+ fixedPrice: number | null;
817
+ jobTitle: string | null;
818
+ freelancerName: string | null;
819
+ freelancerRating: number | null;
820
+ freelancerFeedback: string | null;
821
+ clientFeedback: string | null;
822
+ clientFeedbackRating: number | null;
823
+ dateRange: string | null;
824
+ numHours: number | null;
825
+ totalBilled: number | null;
826
+ }[] | null;
832
827
  bidRange: {
833
828
  high: number | null;
834
829
  low: number | null;
835
830
  avg: number | null;
836
831
  } | null;
837
832
  jobActivity: {
838
- updatedAt: number | null;
839
833
  unansweredInvites: number | null;
834
+ updatedAt: number | null;
840
835
  proposals: {
841
836
  max: number | null;
842
837
  min: number | null;
@@ -848,31 +843,36 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
848
843
  invitesSent: number | null;
849
844
  } | null;
850
845
  activityUpdates: 2 | 1 | 3 | null;
846
+ jobId: string;
851
847
  scrapedAt: number | null;
852
848
  suitabilityRating: number | null;
853
849
  suitabilityReason: string | null;
850
+ proposal: string | null;
851
+ questionAnswerPairs: {
852
+ answer: string;
853
+ question: string;
854
+ }[] | null;
854
855
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
855
856
  leadStatus: "rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won" | null;
856
857
  biddingAmount: number | null;
857
858
  boosted: boolean | null;
858
859
  boostingAmount: number | null;
859
860
  boostedForPlace: number | null;
860
- specialisedProfile: string | null;
861
861
  biddedAt: number | null;
862
862
  biddingTaskScheduled: boolean | null;
863
863
  scheduledBiddingTime: number | null;
864
864
  inQueue: boolean | null;
865
- biddingDelayInMinutes: number | null;
866
865
  checkFeedbackStatusCreatedAt: number | null;
867
866
  biddingScheduledAt: number | null;
867
+ coverLetterTemplateId: string | null;
868
868
  feedbackCheckTaskId: string | null;
869
869
  bidDecision: "rejected" | "proceeded" | null;
870
870
  rejectedFeedback: string | null;
871
871
  applicationId: string | null;
872
872
  leadBiddingConfig: {
873
- biddingDelayInMinutes: number | null;
874
873
  appliedFromQueue: boolean | null;
875
- bidWithWarning: "bid" | "skip";
874
+ biddingDelayInMinutes: number | null;
875
+ bidWithWarning: "skip" | "bid";
876
876
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate" | "smart_bidding";
877
877
  biddingHourlyRatePercentage: number | null;
878
878
  biddingFixedHourlyRate: number | null;
@@ -882,7 +882,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
882
882
  maximumBoost: number | null;
883
883
  minBoost: number | null;
884
884
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
885
- alreadyHiredAction: "bid" | "skip";
885
+ alreadyHiredAction: "skip" | "bid";
886
886
  bidConfig: {
887
887
  contractorName: string | null;
888
888
  agencyName: string | null;
@@ -890,11 +890,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
890
890
  };
891
891
  } | null;
892
892
  statusSynced: boolean | null;
893
- proposalId?: string | undefined;
894
- wonAmount?: number | undefined;
895
893
  activity?: Partial<Record<"4h" | "24h", {
896
- updatedAt: number | null;
897
894
  unansweredInvites: number | null;
895
+ updatedAt: number | null;
898
896
  proposals: {
899
897
  max: number | null;
900
898
  min: number | null;
@@ -905,6 +903,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
905
903
  interviewing: number | null;
906
904
  invitesSent: number | null;
907
905
  }>> | null | undefined;
906
+ proposalId?: string | undefined;
907
+ wonAmount?: number | undefined;
908
908
  activityDelta?: {
909
909
  unansweredInvites: number;
910
910
  proposals: number;
@@ -925,8 +925,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
925
925
  campaignId: string;
926
926
  }>, "many">>;
927
927
  }, "strip", z.ZodTypeAny, {
928
- userId: string | null;
929
928
  organizationId: string;
929
+ userId: string | null;
930
930
  campaignId: string;
931
931
  lead: {
932
932
  id: string | null;
@@ -938,42 +938,23 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
938
938
  max: number | null;
939
939
  min: number | null;
940
940
  } | null;
941
+ experienceLevel: string | null;
941
942
  paymentType: string | null;
942
943
  fixedPrice: number | null;
943
- experienceLevel: string | null;
944
944
  } | null;
945
945
  description: string | null;
946
946
  region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
947
947
  datetime: number | null;
948
- createdAt: number | null;
949
- updatedAt: number | null;
950
- proposal: string | null;
951
- organizationId: string;
952
- campaignId: string;
953
948
  category: string | null;
954
949
  uid: string | null;
955
950
  questions: string[] | null;
956
951
  occupation: string | null;
957
- questionAnswerPairs: {
958
- answer: string;
959
- question: string;
960
- }[] | null;
961
- coverLetterTemplateId: string | null;
962
- jobId: string;
963
- clientReviews: {
964
- freelancerName: string | null;
965
- jobTitle: string | null;
966
- hourlyRate: number | null;
967
- freelancerRating: number | null;
968
- freelancerFeedback: string | null;
969
- clientFeedback: string | null;
970
- clientFeedbackRating: number | null;
971
- dateRange: string | null;
972
- paymentType: string | null;
973
- fixedPrice: number | null;
974
- numHours: number | null;
975
- totalBilled: number | null;
976
- }[] | null;
952
+ organizationId: string;
953
+ createdAt: number | null;
954
+ updatedAt: number | null;
955
+ campaignId: string;
956
+ biddingDelayInMinutes: number | null;
957
+ specialisedProfile: string | null;
977
958
  skills: {
978
959
  name: string;
979
960
  }[] | null;
@@ -1011,14 +992,28 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1011
992
  includeRisingTalent: string | null;
1012
993
  } | null;
1013
994
  isFeatured: boolean | null;
995
+ clientReviews: {
996
+ hourlyRate: number | null;
997
+ paymentType: string | null;
998
+ fixedPrice: number | null;
999
+ jobTitle: string | null;
1000
+ freelancerName: string | null;
1001
+ freelancerRating: number | null;
1002
+ freelancerFeedback: string | null;
1003
+ clientFeedback: string | null;
1004
+ clientFeedbackRating: number | null;
1005
+ dateRange: string | null;
1006
+ numHours: number | null;
1007
+ totalBilled: number | null;
1008
+ }[] | null;
1014
1009
  bidRange: {
1015
1010
  high: number | null;
1016
1011
  low: number | null;
1017
1012
  avg: number | null;
1018
1013
  } | null;
1019
1014
  jobActivity: {
1020
- updatedAt: number | null;
1021
1015
  unansweredInvites: number | null;
1016
+ updatedAt: number | null;
1022
1017
  proposals: {
1023
1018
  max: number | null;
1024
1019
  min: number | null;
@@ -1030,31 +1025,36 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1030
1025
  invitesSent: number | null;
1031
1026
  } | null;
1032
1027
  activityUpdates: 2 | 1 | 3 | null;
1028
+ jobId: string;
1033
1029
  scrapedAt: number | null;
1034
1030
  suitabilityRating: number | null;
1035
1031
  suitabilityReason: string | null;
1032
+ proposal: string | null;
1033
+ questionAnswerPairs: {
1034
+ answer: string;
1035
+ question: string;
1036
+ }[] | null;
1036
1037
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1037
1038
  leadStatus: "rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won" | null;
1038
1039
  biddingAmount: number | null;
1039
1040
  boosted: boolean | null;
1040
1041
  boostingAmount: number | null;
1041
1042
  boostedForPlace: number | null;
1042
- specialisedProfile: string | null;
1043
1043
  biddedAt: number | null;
1044
1044
  biddingTaskScheduled: boolean | null;
1045
1045
  scheduledBiddingTime: number | null;
1046
1046
  inQueue: boolean | null;
1047
- biddingDelayInMinutes: number | null;
1048
1047
  checkFeedbackStatusCreatedAt: number | null;
1049
1048
  biddingScheduledAt: number | null;
1049
+ coverLetterTemplateId: string | null;
1050
1050
  feedbackCheckTaskId: string | null;
1051
1051
  bidDecision: "rejected" | "proceeded" | null;
1052
1052
  rejectedFeedback: string | null;
1053
1053
  applicationId: string | null;
1054
1054
  leadBiddingConfig: {
1055
- biddingDelayInMinutes: number | null;
1056
1055
  appliedFromQueue: boolean | null;
1057
- bidWithWarning: "bid" | "skip";
1056
+ biddingDelayInMinutes: number | null;
1057
+ bidWithWarning: "skip" | "bid";
1058
1058
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate" | "smart_bidding";
1059
1059
  biddingHourlyRatePercentage: number | null;
1060
1060
  biddingFixedHourlyRate: number | null;
@@ -1064,7 +1064,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1064
1064
  maximumBoost: number | null;
1065
1065
  minBoost: number | null;
1066
1066
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
1067
- alreadyHiredAction: "bid" | "skip";
1067
+ alreadyHiredAction: "skip" | "bid";
1068
1068
  bidConfig: {
1069
1069
  contractorName: string | null;
1070
1070
  agencyName: string | null;
@@ -1072,11 +1072,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1072
1072
  };
1073
1073
  } | null;
1074
1074
  statusSynced: boolean | null;
1075
- proposalId?: string | undefined;
1076
- wonAmount?: number | undefined;
1077
1075
  activity?: Partial<Record<"4h" | "24h", {
1078
- updatedAt: number | null;
1079
1076
  unansweredInvites: number | null;
1077
+ updatedAt: number | null;
1080
1078
  proposals: {
1081
1079
  max: number | null;
1082
1080
  min: number | null;
@@ -1087,6 +1085,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1087
1085
  interviewing: number | null;
1088
1086
  invitesSent: number | null;
1089
1087
  }>> | null | undefined;
1088
+ proposalId?: string | undefined;
1089
+ wonAmount?: number | undefined;
1090
1090
  activityDelta?: {
1091
1091
  unansweredInvites: number;
1092
1092
  proposals: number;
@@ -1101,8 +1101,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1101
1101
  campaignId: string;
1102
1102
  }[] | undefined;
1103
1103
  }, {
1104
- userId: string | null;
1105
1104
  organizationId: string;
1105
+ userId: string | null;
1106
1106
  campaignId: string;
1107
1107
  lead: {
1108
1108
  id: string | null;
@@ -1114,42 +1114,23 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1114
1114
  max: number | null;
1115
1115
  min: number | null;
1116
1116
  } | null;
1117
+ experienceLevel: string | null;
1117
1118
  paymentType: string | null;
1118
1119
  fixedPrice: number | null;
1119
- experienceLevel: string | null;
1120
1120
  } | null;
1121
1121
  description: string | null;
1122
1122
  region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
1123
1123
  datetime: number | null;
1124
- createdAt: number | null;
1125
- updatedAt: number | null;
1126
- proposal: string | null;
1127
- organizationId: string;
1128
- campaignId: string;
1129
1124
  category: string | null;
1130
1125
  uid: string | null;
1131
1126
  questions: string[] | null;
1132
1127
  occupation: string | null;
1133
- questionAnswerPairs: {
1134
- answer: string;
1135
- question: string;
1136
- }[] | null;
1137
- coverLetterTemplateId: string | null;
1138
- jobId: string;
1139
- clientReviews: {
1140
- freelancerName: string | null;
1141
- jobTitle: string | null;
1142
- hourlyRate: number | null;
1143
- freelancerRating: number | null;
1144
- freelancerFeedback: string | null;
1145
- clientFeedback: string | null;
1146
- clientFeedbackRating: number | null;
1147
- dateRange: string | null;
1148
- paymentType: string | null;
1149
- fixedPrice: number | null;
1150
- numHours: number | null;
1151
- totalBilled: number | null;
1152
- }[] | null;
1128
+ organizationId: string;
1129
+ createdAt: number | null;
1130
+ updatedAt: number | null;
1131
+ campaignId: string;
1132
+ biddingDelayInMinutes: number | null;
1133
+ specialisedProfile: string | null;
1153
1134
  skills: {
1154
1135
  name: string;
1155
1136
  }[] | null;
@@ -1187,14 +1168,28 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1187
1168
  includeRisingTalent: string | null;
1188
1169
  } | null;
1189
1170
  isFeatured: boolean | null;
1171
+ clientReviews: {
1172
+ hourlyRate: number | null;
1173
+ paymentType: string | null;
1174
+ fixedPrice: number | null;
1175
+ jobTitle: string | null;
1176
+ freelancerName: string | null;
1177
+ freelancerRating: number | null;
1178
+ freelancerFeedback: string | null;
1179
+ clientFeedback: string | null;
1180
+ clientFeedbackRating: number | null;
1181
+ dateRange: string | null;
1182
+ numHours: number | null;
1183
+ totalBilled: number | null;
1184
+ }[] | null;
1190
1185
  bidRange: {
1191
1186
  high: number | null;
1192
1187
  low: number | null;
1193
1188
  avg: number | null;
1194
1189
  } | null;
1195
1190
  jobActivity: {
1196
- updatedAt: number | null;
1197
1191
  unansweredInvites: number | null;
1192
+ updatedAt: number | null;
1198
1193
  proposals: {
1199
1194
  max: number | null;
1200
1195
  min: number | null;
@@ -1206,31 +1201,36 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1206
1201
  invitesSent: number | null;
1207
1202
  } | null;
1208
1203
  activityUpdates: 2 | 1 | 3 | null;
1204
+ jobId: string;
1209
1205
  scrapedAt: number | null;
1210
1206
  suitabilityRating: number | null;
1211
1207
  suitabilityReason: string | null;
1208
+ proposal: string | null;
1209
+ questionAnswerPairs: {
1210
+ answer: string;
1211
+ question: string;
1212
+ }[] | null;
1212
1213
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1213
1214
  leadStatus: "rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won" | null;
1214
1215
  biddingAmount: number | null;
1215
1216
  boosted: boolean | null;
1216
1217
  boostingAmount: number | null;
1217
1218
  boostedForPlace: number | null;
1218
- specialisedProfile: string | null;
1219
1219
  biddedAt: number | null;
1220
1220
  biddingTaskScheduled: boolean | null;
1221
1221
  scheduledBiddingTime: number | null;
1222
1222
  inQueue: boolean | null;
1223
- biddingDelayInMinutes: number | null;
1224
1223
  checkFeedbackStatusCreatedAt: number | null;
1225
1224
  biddingScheduledAt: number | null;
1225
+ coverLetterTemplateId: string | null;
1226
1226
  feedbackCheckTaskId: string | null;
1227
1227
  bidDecision: "rejected" | "proceeded" | null;
1228
1228
  rejectedFeedback: string | null;
1229
1229
  applicationId: string | null;
1230
1230
  leadBiddingConfig: {
1231
- biddingDelayInMinutes: number | null;
1232
1231
  appliedFromQueue: boolean | null;
1233
- bidWithWarning: "bid" | "skip";
1232
+ biddingDelayInMinutes: number | null;
1233
+ bidWithWarning: "skip" | "bid";
1234
1234
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate" | "smart_bidding";
1235
1235
  biddingHourlyRatePercentage: number | null;
1236
1236
  biddingFixedHourlyRate: number | null;
@@ -1240,7 +1240,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1240
1240
  maximumBoost: number | null;
1241
1241
  minBoost: number | null;
1242
1242
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
1243
- alreadyHiredAction: "bid" | "skip";
1243
+ alreadyHiredAction: "skip" | "bid";
1244
1244
  bidConfig: {
1245
1245
  contractorName: string | null;
1246
1246
  agencyName: string | null;
@@ -1248,11 +1248,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1248
1248
  };
1249
1249
  } | null;
1250
1250
  statusSynced: boolean | null;
1251
- proposalId?: string | undefined;
1252
- wonAmount?: number | undefined;
1253
1251
  activity?: Partial<Record<"4h" | "24h", {
1254
- updatedAt: number | null;
1255
1252
  unansweredInvites: number | null;
1253
+ updatedAt: number | null;
1256
1254
  proposals: {
1257
1255
  max: number | null;
1258
1256
  min: number | null;
@@ -1263,6 +1261,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1263
1261
  interviewing: number | null;
1264
1262
  invitesSent: number | null;
1265
1263
  }>> | null | undefined;
1264
+ proposalId?: string | undefined;
1265
+ wonAmount?: number | undefined;
1266
1266
  activityDelta?: {
1267
1267
  unansweredInvites: number;
1268
1268
  proposals: number;
@@ -1282,12 +1282,12 @@ export declare const agentPickSpecialisedProfileRequestSchema: z.ZodObject<{
1282
1282
  jobDescription: z.ZodString;
1283
1283
  specialisedProfiles: z.ZodArray<z.ZodString, "many">;
1284
1284
  }, "strip", z.ZodTypeAny, {
1285
- jobTitle: string;
1286
1285
  specialisedProfiles: string[];
1286
+ jobTitle: string;
1287
1287
  jobDescription: string;
1288
1288
  }, {
1289
- jobTitle: string;
1290
1289
  specialisedProfiles: string[];
1290
+ jobTitle: string;
1291
1291
  jobDescription: string;
1292
1292
  }>;
1293
1293
  export declare const agentPickSpecialisedProfileResponseSchema: z.ZodObject<{
@@ -1351,17 +1351,17 @@ export declare const agentTaskResponseSchema: z.ZodObject<{
1351
1351
  question: string;
1352
1352
  }>, "many">;
1353
1353
  }, "strip", z.ZodTypeAny, {
1354
- coverLetter: string;
1355
1354
  questionAnswerPairs: {
1356
1355
  answer: string;
1357
1356
  question: string;
1358
1357
  }[];
1359
- }, {
1360
1358
  coverLetter: string;
1359
+ }, {
1361
1360
  questionAnswerPairs: {
1362
1361
  answer: string;
1363
1362
  question: string;
1364
1363
  }[];
1364
+ coverLetter: string;
1365
1365
  }>]>;
1366
1366
  model: z.ZodString;
1367
1367
  provider: z.ZodString;
@@ -1371,11 +1371,11 @@ export declare const agentTaskResponseSchema: z.ZodObject<{
1371
1371
  provider: string;
1372
1372
  model: string;
1373
1373
  result: {
1374
- coverLetter: string;
1375
1374
  questionAnswerPairs: {
1376
1375
  answer: string;
1377
1376
  question: string;
1378
1377
  }[];
1378
+ coverLetter: string;
1379
1379
  } | {
1380
1380
  reason: string;
1381
1381
  rating: number;
@@ -1386,11 +1386,11 @@ export declare const agentTaskResponseSchema: z.ZodObject<{
1386
1386
  provider: string;
1387
1387
  model: string;
1388
1388
  result: {
1389
- coverLetter: string;
1390
1389
  questionAnswerPairs: {
1391
1390
  answer: string;
1392
1391
  question: string;
1393
1392
  }[];
1393
+ coverLetter: string;
1394
1394
  } | {
1395
1395
  reason: string;
1396
1396
  rating: number;