lancer-shared 1.2.261 → 1.2.262

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", "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,75 @@ 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>;
433
437
  wonAmount: z.ZodOptional<z.ZodNumber>;
434
438
  feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
435
439
  bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
436
440
  rejectedFeedback: z.ZodNullable<z.ZodString>;
437
441
  applicationId: z.ZodNullable<z.ZodString>;
442
+ leadBiddingConfig: z.ZodNullable<z.ZodObject<{
443
+ appliedFromQueue: z.ZodNullable<z.ZodBoolean>;
444
+ biddingDelayInMinutes: z.ZodNullable<z.ZodNumber>;
445
+ bidWithWarning: z.ZodEnum<["bid", "skip"]>;
446
+ biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
447
+ biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
448
+ biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
449
+ boostingEnabled: z.ZodNullable<z.ZodBoolean>;
450
+ boostDownToNthPlace: z.ZodNullable<z.ZodNumber>;
451
+ connectsAbovePrevious: z.ZodNullable<z.ZodNumber>;
452
+ maximumBoost: z.ZodNullable<z.ZodNumber>;
453
+ minBoost: z.ZodNullable<z.ZodNumber>;
454
+ insufficeintBoostConnectsAction: z.ZodEnum<["skip", "bid_without_boost"]>;
455
+ bidConfig: z.ZodObject<{
456
+ agencyName: z.ZodNullable<z.ZodString>;
457
+ contractorName: z.ZodNullable<z.ZodString>;
458
+ specialisedProfile: z.ZodNullable<z.ZodString>;
459
+ }, "strip", z.ZodTypeAny, {
460
+ contractorName: string | null;
461
+ agencyName: string | null;
462
+ specialisedProfile: string | null;
463
+ }, {
464
+ contractorName: string | null;
465
+ agencyName: string | null;
466
+ specialisedProfile: string | null;
467
+ }>;
468
+ }, "strip", z.ZodTypeAny, {
469
+ appliedFromQueue: boolean | null;
470
+ biddingDelayInMinutes: number | null;
471
+ bidWithWarning: "bid" | "skip";
472
+ biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
473
+ biddingHourlyRatePercentage: number | null;
474
+ biddingFixedHourlyRate: number | null;
475
+ boostingEnabled: boolean | null;
476
+ boostDownToNthPlace: number | null;
477
+ connectsAbovePrevious: number | null;
478
+ maximumBoost: number | null;
479
+ minBoost: number | null;
480
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
481
+ bidConfig: {
482
+ contractorName: string | null;
483
+ agencyName: string | null;
484
+ specialisedProfile: string | null;
485
+ };
486
+ }, {
487
+ appliedFromQueue: boolean | null;
488
+ biddingDelayInMinutes: number | null;
489
+ bidWithWarning: "bid" | "skip";
490
+ biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
491
+ biddingHourlyRatePercentage: number | null;
492
+ biddingFixedHourlyRate: number | null;
493
+ boostingEnabled: boolean | null;
494
+ boostDownToNthPlace: number | null;
495
+ connectsAbovePrevious: number | null;
496
+ maximumBoost: number | null;
497
+ minBoost: number | null;
498
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
499
+ bidConfig: {
500
+ contractorName: string | null;
501
+ agencyName: string | null;
502
+ specialisedProfile: string | null;
503
+ };
504
+ }>>;
438
505
  }>, "processed">, "strip", z.ZodTypeAny, {
439
506
  id: string | null;
440
507
  title: string | null;
@@ -530,6 +597,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
530
597
  } | null;
531
598
  activityUpdates: 2 | 1 | 3 | null;
532
599
  scrapedAt: number | null;
600
+ biddingDelayInMinutes: number | null;
601
+ specialisedProfile: string | null;
533
602
  jobId: string;
534
603
  suitabilityRating: number | null;
535
604
  suitabilityReason: string | null;
@@ -539,20 +608,38 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
539
608
  question: string;
540
609
  }[] | null;
541
610
  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;
611
+ leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "biddingProcessing" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won" | null;
543
612
  biddingAmount: number | null;
544
613
  boosted: boolean | null;
545
614
  boostingAmount: number | null;
546
615
  boostedForPlace: number | null;
547
- specialisedProfile: string | null;
548
616
  biddedAt: number | null;
549
617
  biddingTaskScheduled: boolean | null;
550
618
  scheduledBiddingTime: number | null;
551
- biddingDelayInMinutes: number | null;
619
+ checkFeedbackStatusCreatedAt: number | null;
552
620
  feedbackCheckTaskId: string | null;
553
621
  bidDecision: "rejected" | "proceeded" | null;
554
622
  rejectedFeedback: string | null;
555
623
  applicationId: string | null;
624
+ leadBiddingConfig: {
625
+ appliedFromQueue: boolean | null;
626
+ biddingDelayInMinutes: number | null;
627
+ bidWithWarning: "bid" | "skip";
628
+ biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
629
+ biddingHourlyRatePercentage: number | null;
630
+ biddingFixedHourlyRate: number | null;
631
+ boostingEnabled: boolean | null;
632
+ boostDownToNthPlace: number | null;
633
+ connectsAbovePrevious: number | null;
634
+ maximumBoost: number | null;
635
+ minBoost: number | null;
636
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
637
+ bidConfig: {
638
+ contractorName: string | null;
639
+ agencyName: string | null;
640
+ specialisedProfile: string | null;
641
+ };
642
+ } | null;
556
643
  activity?: Partial<Record<"4h" | "24h", {
557
644
  updatedAt: number | null;
558
645
  unansweredInvites: number | null;
@@ -670,6 +757,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
670
757
  } | null;
671
758
  activityUpdates: 2 | 1 | 3 | null;
672
759
  scrapedAt: number | null;
760
+ biddingDelayInMinutes: number | null;
761
+ specialisedProfile: string | null;
673
762
  jobId: string;
674
763
  suitabilityRating: number | null;
675
764
  suitabilityReason: string | null;
@@ -679,20 +768,38 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
679
768
  question: string;
680
769
  }[] | null;
681
770
  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;
771
+ leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "biddingProcessing" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won" | null;
683
772
  biddingAmount: number | null;
684
773
  boosted: boolean | null;
685
774
  boostingAmount: number | null;
686
775
  boostedForPlace: number | null;
687
- specialisedProfile: string | null;
688
776
  biddedAt: number | null;
689
777
  biddingTaskScheduled: boolean | null;
690
778
  scheduledBiddingTime: number | null;
691
- biddingDelayInMinutes: number | null;
779
+ checkFeedbackStatusCreatedAt: number | null;
692
780
  feedbackCheckTaskId: string | null;
693
781
  bidDecision: "rejected" | "proceeded" | null;
694
782
  rejectedFeedback: string | null;
695
783
  applicationId: string | null;
784
+ leadBiddingConfig: {
785
+ appliedFromQueue: boolean | null;
786
+ biddingDelayInMinutes: number | null;
787
+ bidWithWarning: "bid" | "skip";
788
+ biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
789
+ biddingHourlyRatePercentage: number | null;
790
+ biddingFixedHourlyRate: number | null;
791
+ boostingEnabled: boolean | null;
792
+ boostDownToNthPlace: number | null;
793
+ connectsAbovePrevious: number | null;
794
+ maximumBoost: number | null;
795
+ minBoost: number | null;
796
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
797
+ bidConfig: {
798
+ contractorName: string | null;
799
+ agencyName: string | null;
800
+ specialisedProfile: string | null;
801
+ };
802
+ } | null;
696
803
  activity?: Partial<Record<"4h" | "24h", {
697
804
  updatedAt: number | null;
698
805
  unansweredInvites: number | null;
@@ -826,6 +933,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
826
933
  } | null;
827
934
  activityUpdates: 2 | 1 | 3 | null;
828
935
  scrapedAt: number | null;
936
+ biddingDelayInMinutes: number | null;
937
+ specialisedProfile: string | null;
829
938
  jobId: string;
830
939
  suitabilityRating: number | null;
831
940
  suitabilityReason: string | null;
@@ -835,20 +944,38 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
835
944
  question: string;
836
945
  }[] | null;
837
946
  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;
947
+ leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "biddingProcessing" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won" | null;
839
948
  biddingAmount: number | null;
840
949
  boosted: boolean | null;
841
950
  boostingAmount: number | null;
842
951
  boostedForPlace: number | null;
843
- specialisedProfile: string | null;
844
952
  biddedAt: number | null;
845
953
  biddingTaskScheduled: boolean | null;
846
954
  scheduledBiddingTime: number | null;
847
- biddingDelayInMinutes: number | null;
955
+ checkFeedbackStatusCreatedAt: number | null;
848
956
  feedbackCheckTaskId: string | null;
849
957
  bidDecision: "rejected" | "proceeded" | null;
850
958
  rejectedFeedback: string | null;
851
959
  applicationId: string | null;
960
+ leadBiddingConfig: {
961
+ appliedFromQueue: boolean | null;
962
+ biddingDelayInMinutes: number | null;
963
+ bidWithWarning: "bid" | "skip";
964
+ biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
965
+ biddingHourlyRatePercentage: number | null;
966
+ biddingFixedHourlyRate: number | null;
967
+ boostingEnabled: boolean | null;
968
+ boostDownToNthPlace: number | null;
969
+ connectsAbovePrevious: number | null;
970
+ maximumBoost: number | null;
971
+ minBoost: number | null;
972
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
973
+ bidConfig: {
974
+ contractorName: string | null;
975
+ agencyName: string | null;
976
+ specialisedProfile: string | null;
977
+ };
978
+ } | null;
852
979
  activity?: Partial<Record<"4h" | "24h", {
853
980
  updatedAt: number | null;
854
981
  unansweredInvites: number | null;
@@ -976,6 +1103,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
976
1103
  } | null;
977
1104
  activityUpdates: 2 | 1 | 3 | null;
978
1105
  scrapedAt: number | null;
1106
+ biddingDelayInMinutes: number | null;
1107
+ specialisedProfile: string | null;
979
1108
  jobId: string;
980
1109
  suitabilityRating: number | null;
981
1110
  suitabilityReason: string | null;
@@ -985,20 +1114,38 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
985
1114
  question: string;
986
1115
  }[] | null;
987
1116
  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;
1117
+ leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "biddingProcessing" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won" | null;
989
1118
  biddingAmount: number | null;
990
1119
  boosted: boolean | null;
991
1120
  boostingAmount: number | null;
992
1121
  boostedForPlace: number | null;
993
- specialisedProfile: string | null;
994
1122
  biddedAt: number | null;
995
1123
  biddingTaskScheduled: boolean | null;
996
1124
  scheduledBiddingTime: number | null;
997
- biddingDelayInMinutes: number | null;
1125
+ checkFeedbackStatusCreatedAt: number | null;
998
1126
  feedbackCheckTaskId: string | null;
999
1127
  bidDecision: "rejected" | "proceeded" | null;
1000
1128
  rejectedFeedback: string | null;
1001
1129
  applicationId: string | null;
1130
+ leadBiddingConfig: {
1131
+ appliedFromQueue: boolean | null;
1132
+ biddingDelayInMinutes: number | null;
1133
+ bidWithWarning: "bid" | "skip";
1134
+ biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
1135
+ biddingHourlyRatePercentage: number | null;
1136
+ biddingFixedHourlyRate: number | null;
1137
+ boostingEnabled: boolean | null;
1138
+ boostDownToNthPlace: number | null;
1139
+ connectsAbovePrevious: number | null;
1140
+ maximumBoost: number | null;
1141
+ minBoost: number | null;
1142
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
1143
+ bidConfig: {
1144
+ contractorName: string | null;
1145
+ agencyName: string | null;
1146
+ specialisedProfile: string | null;
1147
+ };
1148
+ } | null;
1002
1149
  activity?: Partial<Record<"4h" | "24h", {
1003
1150
  updatedAt: number | null;
1004
1151
  unansweredInvites: number | null;