lancer-shared 1.2.124 → 1.2.126

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.
@@ -1,7 +1,98 @@
1
- import { z } from "zod";
2
- import { Lead } from "../lead";
3
- import { proposalSchema } from "./proposal";
4
- export declare const agentTaskRequestSchema: z.ZodObject<{
1
+ import { z } from 'zod';
2
+ import { proposalSchema } from './proposal';
3
+ export declare const agentGenerateProposalRequestSchema: z.ZodObject<{
4
+ userId: z.ZodNullable<z.ZodString>;
5
+ organizationId: z.ZodString;
6
+ campaignId: z.ZodString;
7
+ job: z.ZodObject<{
8
+ id: z.ZodString;
9
+ title: z.ZodString;
10
+ description: z.ZodString;
11
+ questions: z.ZodArray<z.ZodString, "many">;
12
+ clientCountry: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ id: string;
15
+ title: string;
16
+ description: string;
17
+ questions: string[];
18
+ clientCountry: string;
19
+ }, {
20
+ id: string;
21
+ title: string;
22
+ description: string;
23
+ questions: string[];
24
+ clientCountry: string;
25
+ }>;
26
+ isOverallHighestPriorityCampaign: z.ZodOptional<z.ZodBoolean>;
27
+ applyToLeads: z.ZodOptional<z.ZodArray<z.ZodObject<{
28
+ leadId: z.ZodString;
29
+ campaignId: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ campaignId: string;
32
+ leadId: string;
33
+ }, {
34
+ campaignId: string;
35
+ leadId: string;
36
+ }>, "many">>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ userId: string | null;
39
+ organizationId: string;
40
+ campaignId: string;
41
+ job: {
42
+ id: string;
43
+ title: string;
44
+ description: string;
45
+ questions: string[];
46
+ clientCountry: string;
47
+ };
48
+ isOverallHighestPriorityCampaign?: boolean | undefined;
49
+ applyToLeads?: {
50
+ campaignId: string;
51
+ leadId: string;
52
+ }[] | undefined;
53
+ }, {
54
+ userId: string | null;
55
+ organizationId: string;
56
+ campaignId: string;
57
+ job: {
58
+ id: string;
59
+ title: string;
60
+ description: string;
61
+ questions: string[];
62
+ clientCountry: string;
63
+ };
64
+ isOverallHighestPriorityCampaign?: boolean | undefined;
65
+ applyToLeads?: {
66
+ campaignId: string;
67
+ leadId: string;
68
+ }[] | undefined;
69
+ }>;
70
+ export declare const agentGenerateProposalResponseSchema: z.ZodObject<{
71
+ coverLetter: z.ZodString;
72
+ questionAnswerPairs: z.ZodArray<z.ZodObject<{
73
+ question: z.ZodString;
74
+ answer: z.ZodString;
75
+ }, "strip", z.ZodTypeAny, {
76
+ question: string;
77
+ answer: string;
78
+ }, {
79
+ question: string;
80
+ answer: string;
81
+ }>, "many">;
82
+ }, "strip", z.ZodTypeAny, {
83
+ coverLetter: string;
84
+ questionAnswerPairs: {
85
+ question: string;
86
+ answer: string;
87
+ }[];
88
+ }, {
89
+ coverLetter: string;
90
+ questionAnswerPairs: {
91
+ question: string;
92
+ answer: string;
93
+ }[];
94
+ }>;
95
+ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
5
96
  userId: z.ZodNullable<z.ZodString>;
6
97
  organizationId: z.ZodString;
7
98
  campaignId: z.ZodString;
@@ -337,20 +428,24 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
337
428
  organizationId: string;
338
429
  campaignId: string;
339
430
  id: string | null;
431
+ title: string | null;
432
+ description: string | null;
433
+ questions: string[] | null;
434
+ questionAnswerPairs: {
435
+ question: string;
436
+ answer: string;
437
+ }[] | null;
340
438
  uid: string | null;
341
439
  createdAt: number | null;
342
- title: string | null;
343
440
  category: string | null;
344
441
  skills: {
345
442
  name: string;
346
443
  }[] | null;
347
444
  datetime: number | null;
348
- description: string | null;
349
445
  descriptionLength: number | null;
350
446
  connectsRequired: number | null;
351
447
  projectType: string | null;
352
448
  projectDuration: string | null;
353
- questions: string[] | null;
354
449
  jobUrl: string | null;
355
450
  metadata: {
356
451
  hours: string | null;
@@ -431,10 +526,6 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
431
526
  suitabilityRating: number | null;
432
527
  suitabilityReason: string | null;
433
528
  proposal: string | null;
434
- questionAnswerPairs: {
435
- question: string;
436
- answer: string;
437
- }[] | null;
438
529
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
439
530
  leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
440
531
  biddingAmount: number | null;
@@ -471,20 +562,24 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
471
562
  organizationId: string;
472
563
  campaignId: string;
473
564
  id: string | null;
565
+ title: string | null;
566
+ description: string | null;
567
+ questions: string[] | null;
568
+ questionAnswerPairs: {
569
+ question: string;
570
+ answer: string;
571
+ }[] | null;
474
572
  uid: string | null;
475
573
  createdAt: number | null;
476
- title: string | null;
477
574
  category: string | null;
478
575
  skills: {
479
576
  name: string;
480
577
  }[] | null;
481
578
  datetime: number | null;
482
- description: string | null;
483
579
  descriptionLength: number | null;
484
580
  connectsRequired: number | null;
485
581
  projectType: string | null;
486
582
  projectDuration: string | null;
487
- questions: string[] | null;
488
583
  jobUrl: string | null;
489
584
  metadata: {
490
585
  hours: string | null;
@@ -565,10 +660,6 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
565
660
  suitabilityRating: number | null;
566
661
  suitabilityReason: string | null;
567
662
  proposal: string | null;
568
- questionAnswerPairs: {
569
- question: string;
570
- answer: string;
571
- }[] | null;
572
663
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
573
664
  leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
574
665
  biddingAmount: number | null;
@@ -621,20 +712,24 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
621
712
  organizationId: string;
622
713
  campaignId: string;
623
714
  id: string | null;
715
+ title: string | null;
716
+ description: string | null;
717
+ questions: string[] | null;
718
+ questionAnswerPairs: {
719
+ question: string;
720
+ answer: string;
721
+ }[] | null;
624
722
  uid: string | null;
625
723
  createdAt: number | null;
626
- title: string | null;
627
724
  category: string | null;
628
725
  skills: {
629
726
  name: string;
630
727
  }[] | null;
631
728
  datetime: number | null;
632
- description: string | null;
633
729
  descriptionLength: number | null;
634
730
  connectsRequired: number | null;
635
731
  projectType: string | null;
636
732
  projectDuration: string | null;
637
- questions: string[] | null;
638
733
  jobUrl: string | null;
639
734
  metadata: {
640
735
  hours: string | null;
@@ -715,10 +810,6 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
715
810
  suitabilityRating: number | null;
716
811
  suitabilityReason: string | null;
717
812
  proposal: string | null;
718
- questionAnswerPairs: {
719
- question: string;
720
- answer: string;
721
- }[] | null;
722
813
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
723
814
  leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
724
815
  biddingAmount: number | null;
@@ -765,20 +856,24 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
765
856
  organizationId: string;
766
857
  campaignId: string;
767
858
  id: string | null;
859
+ title: string | null;
860
+ description: string | null;
861
+ questions: string[] | null;
862
+ questionAnswerPairs: {
863
+ question: string;
864
+ answer: string;
865
+ }[] | null;
768
866
  uid: string | null;
769
867
  createdAt: number | null;
770
- title: string | null;
771
868
  category: string | null;
772
869
  skills: {
773
870
  name: string;
774
871
  }[] | null;
775
872
  datetime: number | null;
776
- description: string | null;
777
873
  descriptionLength: number | null;
778
874
  connectsRequired: number | null;
779
875
  projectType: string | null;
780
876
  projectDuration: string | null;
781
- questions: string[] | null;
782
877
  jobUrl: string | null;
783
878
  metadata: {
784
879
  hours: string | null;
@@ -859,10 +954,6 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
859
954
  suitabilityRating: number | null;
860
955
  suitabilityReason: string | null;
861
956
  proposal: string | null;
862
- questionAnswerPairs: {
863
- question: string;
864
- answer: string;
865
- }[] | null;
866
957
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
867
958
  leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
868
959
  biddingAmount: number | null;
@@ -902,8 +993,11 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
902
993
  leadId: string;
903
994
  }[] | undefined;
904
995
  }>;
905
- export interface AgentTaskRequest extends z.infer<typeof agentTaskRequestSchema> {
906
- lead: Lead;
996
+ export interface AgentCalculateSuitabilityRequest extends z.infer<typeof agentCalculateSuitabilityRequestSchema> {
997
+ }
998
+ export interface AgentGenerateProposalRequest extends z.infer<typeof agentGenerateProposalRequestSchema> {
999
+ }
1000
+ export interface AgentGenerateProposalResponse extends z.infer<typeof agentGenerateProposalResponseSchema> {
907
1001
  }
908
1002
  export declare const suitabilityRatingSchema: z.ZodObject<{
909
1003
  rating: z.ZodNumber;
@@ -951,17 +1045,17 @@ export declare const agentTaskResponseSchema: z.ZodObject<{
951
1045
  answer: string;
952
1046
  }>, "many">;
953
1047
  }, "strip", z.ZodTypeAny, {
1048
+ coverLetter: string;
954
1049
  questionAnswerPairs: {
955
1050
  question: string;
956
1051
  answer: string;
957
1052
  }[];
958
- coverLetter: string;
959
1053
  }, {
1054
+ coverLetter: string;
960
1055
  questionAnswerPairs: {
961
1056
  question: string;
962
1057
  answer: string;
963
1058
  }[];
964
- coverLetter: string;
965
1059
  }>]>;
966
1060
  model: z.ZodString;
967
1061
  provider: z.ZodString;
@@ -972,11 +1066,11 @@ export declare const agentTaskResponseSchema: z.ZodObject<{
972
1066
  rating: number;
973
1067
  reason: string;
974
1068
  } | {
1069
+ coverLetter: string;
975
1070
  questionAnswerPairs: {
976
1071
  question: string;
977
1072
  answer: string;
978
1073
  }[];
979
- coverLetter: string;
980
1074
  };
981
1075
  model: string;
982
1076
  provider: string;
@@ -987,11 +1081,11 @@ export declare const agentTaskResponseSchema: z.ZodObject<{
987
1081
  rating: number;
988
1082
  reason: string;
989
1083
  } | {
1084
+ coverLetter: string;
990
1085
  questionAnswerPairs: {
991
1086
  question: string;
992
1087
  answer: string;
993
1088
  }[];
994
- coverLetter: string;
995
1089
  };
996
1090
  model: string;
997
1091
  provider: string;