lancer-shared 1.2.261 → 1.2.263

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.
@@ -169,6 +169,7 @@ export declare const ROUTES: {
169
169
  readonly SEARCH: (organizationId: string, campaignId: string) => string;
170
170
  readonly GENERATE_COUNTS: (organizationId: string, campaignId: string) => string;
171
171
  readonly REJECTED: (organizationId: string, campaignId: string) => string;
172
+ readonly SCHEDULE_BIDDING: (organizationId: string, campaignId: string, leadId: string) => string;
172
173
  };
173
174
  readonly ANALYTICS: (organizationId: string, campaignId: string) => string;
174
175
  readonly TOTAL_STATS: (organizationId: string, campaignId: string) => string;
@@ -4,6 +4,7 @@ export declare const agentGenerateProposalRequestSchema: z.ZodObject<{
4
4
  userId: z.ZodNullable<z.ZodString>;
5
5
  organizationId: z.ZodString;
6
6
  campaignId: z.ZodString;
7
+ coverLetterTemplateId: z.ZodOptional<z.ZodString>;
7
8
  job: z.ZodObject<{
8
9
  leadId: z.ZodString;
9
10
  jobId: z.ZodString;
@@ -49,6 +50,7 @@ export declare const agentGenerateProposalRequestSchema: z.ZodObject<{
49
50
  jobId: string;
50
51
  clientCountry: string;
51
52
  };
53
+ coverLetterTemplateId?: string | undefined;
52
54
  isOverallHighestPriorityCampaign?: boolean | undefined;
53
55
  applyToLeads?: {
54
56
  campaignId: string;
@@ -66,6 +68,7 @@ export declare const agentGenerateProposalRequestSchema: z.ZodObject<{
66
68
  jobId: string;
67
69
  clientCountry: string;
68
70
  };
71
+ coverLetterTemplateId?: string | undefined;
69
72
  isOverallHighestPriorityCampaign?: boolean | undefined;
70
73
  applyToLeads?: {
71
74
  campaignId: string;
@@ -419,7 +422,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
419
422
  question: string;
420
423
  }>, "many">>;
421
424
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
422
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "won"]>>;
425
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "biddingProcessing", "biddingFailed", "won"]>>;
423
426
  biddingAmount: z.ZodNullable<z.ZodNumber>;
424
427
  boosted: z.ZodNullable<z.ZodBoolean>;
425
428
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -430,11 +433,76 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
430
433
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
431
434
  inQueue: z.ZodNullable<z.ZodBoolean>;
432
435
  biddingDelayInMinutes: z.ZodNullable<z.ZodNumber>;
436
+ checkFeedbackStatusCreatedAt: z.ZodNullable<z.ZodNumber>;
437
+ biddingScheduledAt: z.ZodNullable<z.ZodNumber>;
433
438
  wonAmount: z.ZodOptional<z.ZodNumber>;
434
439
  feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
435
440
  bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
436
441
  rejectedFeedback: z.ZodNullable<z.ZodString>;
437
442
  applicationId: z.ZodNullable<z.ZodString>;
443
+ leadBiddingConfig: z.ZodNullable<z.ZodObject<{
444
+ appliedFromQueue: z.ZodNullable<z.ZodBoolean>;
445
+ biddingDelayInMinutes: z.ZodNullable<z.ZodNumber>;
446
+ bidWithWarning: z.ZodEnum<["bid", "skip"]>;
447
+ biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
448
+ biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
449
+ biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
450
+ boostingEnabled: z.ZodNullable<z.ZodBoolean>;
451
+ boostDownToNthPlace: z.ZodNullable<z.ZodNumber>;
452
+ connectsAbovePrevious: z.ZodNullable<z.ZodNumber>;
453
+ maximumBoost: z.ZodNullable<z.ZodNumber>;
454
+ minBoost: z.ZodNullable<z.ZodNumber>;
455
+ insufficeintBoostConnectsAction: z.ZodEnum<["skip", "bid_without_boost"]>;
456
+ bidConfig: z.ZodObject<{
457
+ agencyName: z.ZodNullable<z.ZodString>;
458
+ contractorName: z.ZodNullable<z.ZodString>;
459
+ specialisedProfile: z.ZodNullable<z.ZodString>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ contractorName: string | null;
462
+ agencyName: string | null;
463
+ specialisedProfile: string | null;
464
+ }, {
465
+ contractorName: string | null;
466
+ agencyName: string | null;
467
+ specialisedProfile: string | null;
468
+ }>;
469
+ }, "strip", z.ZodTypeAny, {
470
+ appliedFromQueue: boolean | null;
471
+ biddingDelayInMinutes: number | null;
472
+ bidWithWarning: "bid" | "skip";
473
+ biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
474
+ biddingHourlyRatePercentage: number | null;
475
+ biddingFixedHourlyRate: number | null;
476
+ boostingEnabled: boolean | null;
477
+ boostDownToNthPlace: number | null;
478
+ connectsAbovePrevious: number | null;
479
+ maximumBoost: number | null;
480
+ minBoost: number | null;
481
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
482
+ bidConfig: {
483
+ contractorName: string | null;
484
+ agencyName: string | null;
485
+ specialisedProfile: string | null;
486
+ };
487
+ }, {
488
+ appliedFromQueue: boolean | null;
489
+ biddingDelayInMinutes: number | null;
490
+ bidWithWarning: "bid" | "skip";
491
+ biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
492
+ biddingHourlyRatePercentage: number | null;
493
+ biddingFixedHourlyRate: number | null;
494
+ boostingEnabled: boolean | null;
495
+ boostDownToNthPlace: number | null;
496
+ connectsAbovePrevious: number | null;
497
+ maximumBoost: number | null;
498
+ minBoost: number | null;
499
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
500
+ bidConfig: {
501
+ contractorName: string | null;
502
+ agencyName: string | null;
503
+ specialisedProfile: string | null;
504
+ };
505
+ }>>;
438
506
  }>, "processed">, "strip", z.ZodTypeAny, {
439
507
  id: string | null;
440
508
  title: string | null;
@@ -530,6 +598,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
530
598
  } | null;
531
599
  activityUpdates: 2 | 1 | 3 | null;
532
600
  scrapedAt: number | null;
601
+ biddingDelayInMinutes: number | null;
602
+ specialisedProfile: string | null;
533
603
  jobId: string;
534
604
  suitabilityRating: number | null;
535
605
  suitabilityReason: string | null;
@@ -539,20 +609,39 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
539
609
  question: string;
540
610
  }[] | null;
541
611
  agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
542
- leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won" | null;
612
+ leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "biddingProcessing" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won" | null;
543
613
  biddingAmount: number | null;
544
614
  boosted: boolean | null;
545
615
  boostingAmount: number | null;
546
616
  boostedForPlace: number | null;
547
- specialisedProfile: string | null;
548
617
  biddedAt: number | null;
549
618
  biddingTaskScheduled: boolean | null;
550
619
  scheduledBiddingTime: number | null;
551
- biddingDelayInMinutes: number | null;
620
+ checkFeedbackStatusCreatedAt: number | null;
621
+ biddingScheduledAt: number | null;
552
622
  feedbackCheckTaskId: string | null;
553
623
  bidDecision: "rejected" | "proceeded" | null;
554
624
  rejectedFeedback: string | null;
555
625
  applicationId: string | null;
626
+ leadBiddingConfig: {
627
+ appliedFromQueue: boolean | null;
628
+ biddingDelayInMinutes: number | null;
629
+ bidWithWarning: "bid" | "skip";
630
+ biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
631
+ biddingHourlyRatePercentage: number | null;
632
+ biddingFixedHourlyRate: number | null;
633
+ boostingEnabled: boolean | null;
634
+ boostDownToNthPlace: number | null;
635
+ connectsAbovePrevious: number | null;
636
+ maximumBoost: number | null;
637
+ minBoost: number | null;
638
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
639
+ bidConfig: {
640
+ contractorName: string | null;
641
+ agencyName: string | null;
642
+ specialisedProfile: string | null;
643
+ };
644
+ } | null;
556
645
  activity?: Partial<Record<"4h" | "24h", {
557
646
  updatedAt: number | null;
558
647
  unansweredInvites: number | null;
@@ -670,6 +759,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
670
759
  } | null;
671
760
  activityUpdates: 2 | 1 | 3 | null;
672
761
  scrapedAt: number | null;
762
+ biddingDelayInMinutes: number | null;
763
+ specialisedProfile: string | null;
673
764
  jobId: string;
674
765
  suitabilityRating: number | null;
675
766
  suitabilityReason: string | null;
@@ -679,20 +770,39 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
679
770
  question: string;
680
771
  }[] | null;
681
772
  agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
682
- leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won" | null;
773
+ leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "biddingProcessing" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won" | null;
683
774
  biddingAmount: number | null;
684
775
  boosted: boolean | null;
685
776
  boostingAmount: number | null;
686
777
  boostedForPlace: number | null;
687
- specialisedProfile: string | null;
688
778
  biddedAt: number | null;
689
779
  biddingTaskScheduled: boolean | null;
690
780
  scheduledBiddingTime: number | null;
691
- biddingDelayInMinutes: number | null;
781
+ checkFeedbackStatusCreatedAt: number | null;
782
+ biddingScheduledAt: number | null;
692
783
  feedbackCheckTaskId: string | null;
693
784
  bidDecision: "rejected" | "proceeded" | null;
694
785
  rejectedFeedback: string | null;
695
786
  applicationId: string | null;
787
+ leadBiddingConfig: {
788
+ appliedFromQueue: boolean | null;
789
+ biddingDelayInMinutes: number | null;
790
+ bidWithWarning: "bid" | "skip";
791
+ biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
792
+ biddingHourlyRatePercentage: number | null;
793
+ biddingFixedHourlyRate: number | null;
794
+ boostingEnabled: boolean | null;
795
+ boostDownToNthPlace: number | null;
796
+ connectsAbovePrevious: number | null;
797
+ maximumBoost: number | null;
798
+ minBoost: number | null;
799
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
800
+ bidConfig: {
801
+ contractorName: string | null;
802
+ agencyName: string | null;
803
+ specialisedProfile: string | null;
804
+ };
805
+ } | null;
696
806
  activity?: Partial<Record<"4h" | "24h", {
697
807
  updatedAt: number | null;
698
808
  unansweredInvites: number | null;
@@ -826,6 +936,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
826
936
  } | null;
827
937
  activityUpdates: 2 | 1 | 3 | null;
828
938
  scrapedAt: number | null;
939
+ biddingDelayInMinutes: number | null;
940
+ specialisedProfile: string | null;
829
941
  jobId: string;
830
942
  suitabilityRating: number | null;
831
943
  suitabilityReason: string | null;
@@ -835,20 +947,39 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
835
947
  question: string;
836
948
  }[] | null;
837
949
  agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
838
- leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won" | null;
950
+ leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "biddingProcessing" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won" | null;
839
951
  biddingAmount: number | null;
840
952
  boosted: boolean | null;
841
953
  boostingAmount: number | null;
842
954
  boostedForPlace: number | null;
843
- specialisedProfile: string | null;
844
955
  biddedAt: number | null;
845
956
  biddingTaskScheduled: boolean | null;
846
957
  scheduledBiddingTime: number | null;
847
- biddingDelayInMinutes: number | null;
958
+ checkFeedbackStatusCreatedAt: number | null;
959
+ biddingScheduledAt: number | null;
848
960
  feedbackCheckTaskId: string | null;
849
961
  bidDecision: "rejected" | "proceeded" | null;
850
962
  rejectedFeedback: string | null;
851
963
  applicationId: string | null;
964
+ leadBiddingConfig: {
965
+ appliedFromQueue: boolean | null;
966
+ biddingDelayInMinutes: number | null;
967
+ bidWithWarning: "bid" | "skip";
968
+ biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
969
+ biddingHourlyRatePercentage: number | null;
970
+ biddingFixedHourlyRate: number | null;
971
+ boostingEnabled: boolean | null;
972
+ boostDownToNthPlace: number | null;
973
+ connectsAbovePrevious: number | null;
974
+ maximumBoost: number | null;
975
+ minBoost: number | null;
976
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
977
+ bidConfig: {
978
+ contractorName: string | null;
979
+ agencyName: string | null;
980
+ specialisedProfile: string | null;
981
+ };
982
+ } | null;
852
983
  activity?: Partial<Record<"4h" | "24h", {
853
984
  updatedAt: number | null;
854
985
  unansweredInvites: number | null;
@@ -976,6 +1107,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
976
1107
  } | null;
977
1108
  activityUpdates: 2 | 1 | 3 | null;
978
1109
  scrapedAt: number | null;
1110
+ biddingDelayInMinutes: number | null;
1111
+ specialisedProfile: string | null;
979
1112
  jobId: string;
980
1113
  suitabilityRating: number | null;
981
1114
  suitabilityReason: string | null;
@@ -985,20 +1118,39 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
985
1118
  question: string;
986
1119
  }[] | null;
987
1120
  agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
988
- leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won" | null;
1121
+ leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "biddingProcessing" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won" | null;
989
1122
  biddingAmount: number | null;
990
1123
  boosted: boolean | null;
991
1124
  boostingAmount: number | null;
992
1125
  boostedForPlace: number | null;
993
- specialisedProfile: string | null;
994
1126
  biddedAt: number | null;
995
1127
  biddingTaskScheduled: boolean | null;
996
1128
  scheduledBiddingTime: number | null;
997
- biddingDelayInMinutes: number | null;
1129
+ checkFeedbackStatusCreatedAt: number | null;
1130
+ biddingScheduledAt: number | null;
998
1131
  feedbackCheckTaskId: string | null;
999
1132
  bidDecision: "rejected" | "proceeded" | null;
1000
1133
  rejectedFeedback: string | null;
1001
1134
  applicationId: string | null;
1135
+ leadBiddingConfig: {
1136
+ appliedFromQueue: boolean | null;
1137
+ biddingDelayInMinutes: number | null;
1138
+ bidWithWarning: "bid" | "skip";
1139
+ biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
1140
+ biddingHourlyRatePercentage: number | null;
1141
+ biddingFixedHourlyRate: number | null;
1142
+ boostingEnabled: boolean | null;
1143
+ boostDownToNthPlace: number | null;
1144
+ connectsAbovePrevious: number | null;
1145
+ maximumBoost: number | null;
1146
+ minBoost: number | null;
1147
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
1148
+ bidConfig: {
1149
+ contractorName: string | null;
1150
+ agencyName: string | null;
1151
+ specialisedProfile: string | null;
1152
+ };
1153
+ } | null;
1002
1154
  activity?: Partial<Record<"4h" | "24h", {
1003
1155
  updatedAt: number | null;
1004
1156
  unansweredInvites: number | null;