lancer-shared 1.2.188 → 1.2.190

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 (27) hide show
  1. package/dist/bundle.cjs.js +250 -28
  2. package/dist/schemas/agent/index.d.ts +5 -5
  3. package/dist/schemas/bidder/bid.d.ts +44 -44
  4. package/dist/schemas/campaign/campaign-analytics.d.ts +405 -61
  5. package/dist/schemas/campaign/campaign.d.ts +270 -45
  6. package/dist/schemas/campaign/index.d.ts +1 -0
  7. package/dist/schemas/campaign/sequence/bid-node.d.ts +6 -0
  8. package/dist/schemas/campaign/sequence/boost-node.d.ts +26 -0
  9. package/dist/schemas/campaign/sequence/client-size-node.d.ts +45 -0
  10. package/dist/schemas/campaign/sequence/client-size.d.ts +45 -0
  11. package/dist/schemas/campaign/sequence/client-spent-node.d.ts +92 -0
  12. package/dist/schemas/campaign/sequence/edges.d.ts +24 -0
  13. package/dist/schemas/campaign/sequence/hire-rate-node.d.ts +91 -0
  14. package/dist/schemas/campaign/sequence/hire-rate.d.ts +91 -0
  15. package/dist/schemas/campaign/sequence/hourly-rate-node.d.ts +91 -0
  16. package/dist/schemas/campaign/sequence/hourly-rate.d.ts +91 -0
  17. package/dist/schemas/campaign/sequence/index.d.ts +10 -0
  18. package/dist/schemas/campaign/sequence/node-types.d.ts +3 -0
  19. package/dist/schemas/campaign/sequence/rating-node.d.ts +91 -0
  20. package/dist/schemas/campaign/sequence/suitability-node.d.ts +90 -0
  21. package/dist/schemas/campaign/sequence/suitability.d.ts +90 -0
  22. package/dist/schemas/lead/index.d.ts +18 -18
  23. package/dist/schemas/lead/lead-status.d.ts +7 -7
  24. package/dist/schemas/logger/log-event.d.ts +5 -5
  25. package/dist/schemas/scraper/scrape-payload.d.ts +147 -50
  26. package/dist/utils/timezones.d.ts +4 -3
  27. package/package.json +1 -1
@@ -0,0 +1,90 @@
1
+ import { z } from 'zod';
2
+ import { NodeType } from './node-types';
3
+ export declare const createSuitabilityFormSchema: (existingRanges: {
4
+ from: number;
5
+ to: number;
6
+ }[]) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
7
+ from: z.ZodNumber;
8
+ to: z.ZodNumber;
9
+ action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "suitabilityNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode"]>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ from: number;
12
+ to: number;
13
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
14
+ }, {
15
+ from: number;
16
+ to: number;
17
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
18
+ }>, {
19
+ from: number;
20
+ to: number;
21
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
22
+ }, {
23
+ from: number;
24
+ to: number;
25
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
26
+ }>, {
27
+ from: number;
28
+ to: number;
29
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
30
+ }, {
31
+ from: number;
32
+ to: number;
33
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
34
+ }>, {
35
+ from: number;
36
+ to: number;
37
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
38
+ }, {
39
+ from: number;
40
+ to: number;
41
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
42
+ }>;
43
+ export declare const addFromSuitabilityNodeFormSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
44
+ from: z.ZodNumber;
45
+ to: z.ZodNumber;
46
+ action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "suitabilityNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode"]>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ from: number;
49
+ to: number;
50
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
51
+ }, {
52
+ from: number;
53
+ to: number;
54
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
55
+ }>, {
56
+ from: number;
57
+ to: number;
58
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
59
+ }, {
60
+ from: number;
61
+ to: number;
62
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
63
+ }>, {
64
+ from: number;
65
+ to: number;
66
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
67
+ }, {
68
+ from: number;
69
+ to: number;
70
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
71
+ }>, {
72
+ from: number;
73
+ to: number;
74
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
75
+ }, {
76
+ from: number;
77
+ to: number;
78
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
79
+ }>;
80
+ export type AddFromSuitabilityNodeFormData = z.infer<typeof addFromSuitabilityNodeFormSchema>;
81
+ export interface SuitabilityNodeData {
82
+ label: string;
83
+ onSubmit: (formData: AddFromSuitabilityNodeFormData) => void;
84
+ existingRanges: {
85
+ from: number;
86
+ to: number;
87
+ }[];
88
+ allowedNodes: NodeType[];
89
+ [key: string]: unknown;
90
+ }
@@ -0,0 +1,90 @@
1
+ import z from 'zod';
2
+ import { NodeType } from './node-types';
3
+ export declare const createSuitabilityFormSchema: (existingRanges: {
4
+ from: number;
5
+ to: number;
6
+ }[]) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
7
+ from: z.ZodNumber;
8
+ to: z.ZodNumber;
9
+ action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "suitabilityNode", "clientHireRateNode", "clientSizeNode", "boostNode"]>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ from: number;
12
+ to: number;
13
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
14
+ }, {
15
+ from: number;
16
+ to: number;
17
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
18
+ }>, {
19
+ from: number;
20
+ to: number;
21
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
22
+ }, {
23
+ from: number;
24
+ to: number;
25
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
26
+ }>, {
27
+ from: number;
28
+ to: number;
29
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
30
+ }, {
31
+ from: number;
32
+ to: number;
33
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
34
+ }>, {
35
+ from: number;
36
+ to: number;
37
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
38
+ }, {
39
+ from: number;
40
+ to: number;
41
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
42
+ }>;
43
+ export declare const addFromSuitabilityNodeFormSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
44
+ from: z.ZodNumber;
45
+ to: z.ZodNumber;
46
+ action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "suitabilityNode", "clientHireRateNode", "clientSizeNode", "boostNode"]>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ from: number;
49
+ to: number;
50
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
51
+ }, {
52
+ from: number;
53
+ to: number;
54
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
55
+ }>, {
56
+ from: number;
57
+ to: number;
58
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
59
+ }, {
60
+ from: number;
61
+ to: number;
62
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
63
+ }>, {
64
+ from: number;
65
+ to: number;
66
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
67
+ }, {
68
+ from: number;
69
+ to: number;
70
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
71
+ }>, {
72
+ from: number;
73
+ to: number;
74
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
75
+ }, {
76
+ from: number;
77
+ to: number;
78
+ action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
79
+ }>;
80
+ export type AddFromSuitabilityNodeFormData = z.infer<typeof addFromSuitabilityNodeFormSchema>;
81
+ export interface SuitabilityNodeData {
82
+ label: string;
83
+ onSubmit: (formData: AddFromSuitabilityNodeFormData) => void;
84
+ existingRanges: {
85
+ from: number;
86
+ to: number;
87
+ }[];
88
+ allowedNodes: NodeType[];
89
+ [key: string]: unknown;
90
+ }
@@ -329,7 +329,7 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
329
329
  answer: string;
330
330
  }>, "many">>;
331
331
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
332
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
332
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>>;
333
333
  biddingAmount: z.ZodNullable<z.ZodNumber>;
334
334
  boosted: z.ZodNullable<z.ZodBoolean>;
335
335
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -443,7 +443,7 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
443
443
  answer: string;
444
444
  }[] | null;
445
445
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
446
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won" | null;
446
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
447
447
  biddingAmount: number | null;
448
448
  boosted: boolean | null;
449
449
  boostingAmount: number | null;
@@ -578,7 +578,7 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
578
578
  answer: string;
579
579
  }[] | null;
580
580
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
581
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won" | null;
581
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
582
582
  biddingAmount: number | null;
583
583
  boosted: boolean | null;
584
584
  boostingAmount: number | null;
@@ -930,7 +930,7 @@ export declare const leadResponseSchema: z.ZodObject<{
930
930
  answer: string;
931
931
  }>, "many">>;
932
932
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
933
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
933
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>>;
934
934
  biddingAmount: z.ZodNullable<z.ZodNumber>;
935
935
  boosted: z.ZodNullable<z.ZodBoolean>;
936
936
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -1044,7 +1044,7 @@ export declare const leadResponseSchema: z.ZodObject<{
1044
1044
  answer: string;
1045
1045
  }[] | null;
1046
1046
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1047
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won" | null;
1047
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
1048
1048
  biddingAmount: number | null;
1049
1049
  boosted: boolean | null;
1050
1050
  boostingAmount: number | null;
@@ -1179,7 +1179,7 @@ export declare const leadResponseSchema: z.ZodObject<{
1179
1179
  answer: string;
1180
1180
  }[] | null;
1181
1181
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1182
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won" | null;
1182
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
1183
1183
  biddingAmount: number | null;
1184
1184
  boosted: boolean | null;
1185
1185
  boostingAmount: number | null;
@@ -1319,7 +1319,7 @@ export declare const leadResponseSchema: z.ZodObject<{
1319
1319
  answer: string;
1320
1320
  }[] | null;
1321
1321
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1322
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won" | null;
1322
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
1323
1323
  biddingAmount: number | null;
1324
1324
  boosted: boolean | null;
1325
1325
  boostingAmount: number | null;
@@ -1459,7 +1459,7 @@ export declare const leadResponseSchema: z.ZodObject<{
1459
1459
  answer: string;
1460
1460
  }[] | null;
1461
1461
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1462
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won" | null;
1462
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
1463
1463
  biddingAmount: number | null;
1464
1464
  boosted: boolean | null;
1465
1465
  boostingAmount: number | null;
@@ -2351,7 +2351,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
2351
2351
  answer: string;
2352
2352
  }>, "many">>;
2353
2353
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
2354
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
2354
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>>;
2355
2355
  biddingAmount: z.ZodNullable<z.ZodNumber>;
2356
2356
  boosted: z.ZodNullable<z.ZodBoolean>;
2357
2357
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -2465,7 +2465,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
2465
2465
  answer: string;
2466
2466
  }[] | null;
2467
2467
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
2468
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won" | null;
2468
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
2469
2469
  biddingAmount: number | null;
2470
2470
  boosted: boolean | null;
2471
2471
  boostingAmount: number | null;
@@ -2600,7 +2600,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
2600
2600
  answer: string;
2601
2601
  }[] | null;
2602
2602
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
2603
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won" | null;
2603
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
2604
2604
  biddingAmount: number | null;
2605
2605
  boosted: boolean | null;
2606
2606
  boostingAmount: number | null;
@@ -2851,7 +2851,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
2851
2851
  answer: string;
2852
2852
  }[] | null;
2853
2853
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
2854
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won" | null;
2854
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
2855
2855
  biddingAmount: number | null;
2856
2856
  boosted: boolean | null;
2857
2857
  boostingAmount: number | null;
@@ -3102,7 +3102,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
3102
3102
  answer: string;
3103
3103
  }[] | null;
3104
3104
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
3105
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won" | null;
3105
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
3106
3106
  biddingAmount: number | null;
3107
3107
  boosted: boolean | null;
3108
3108
  boostingAmount: number | null;
@@ -3470,7 +3470,7 @@ export declare const getCampaignLeadsResponseSchema: z.ZodObject<{
3470
3470
  answer: string;
3471
3471
  }>, "many">>;
3472
3472
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
3473
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
3473
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>>;
3474
3474
  biddingAmount: z.ZodNullable<z.ZodNumber>;
3475
3475
  boosted: z.ZodNullable<z.ZodBoolean>;
3476
3476
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -3584,7 +3584,7 @@ export declare const getCampaignLeadsResponseSchema: z.ZodObject<{
3584
3584
  answer: string;
3585
3585
  }[] | null;
3586
3586
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
3587
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won" | null;
3587
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
3588
3588
  biddingAmount: number | null;
3589
3589
  boosted: boolean | null;
3590
3590
  boostingAmount: number | null;
@@ -3719,7 +3719,7 @@ export declare const getCampaignLeadsResponseSchema: z.ZodObject<{
3719
3719
  answer: string;
3720
3720
  }[] | null;
3721
3721
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
3722
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won" | null;
3722
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
3723
3723
  biddingAmount: number | null;
3724
3724
  boosted: boolean | null;
3725
3725
  boostingAmount: number | null;
@@ -3869,7 +3869,7 @@ export declare const getCampaignLeadsResponseSchema: z.ZodObject<{
3869
3869
  answer: string;
3870
3870
  }[] | null;
3871
3871
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
3872
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won" | null;
3872
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
3873
3873
  biddingAmount: number | null;
3874
3874
  boosted: boolean | null;
3875
3875
  boostingAmount: number | null;
@@ -4011,7 +4011,7 @@ export declare const getCampaignLeadsResponseSchema: z.ZodObject<{
4011
4011
  answer: string;
4012
4012
  }[] | null;
4013
4013
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
4014
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won" | null;
4014
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
4015
4015
  biddingAmount: number | null;
4016
4016
  boosted: boolean | null;
4017
4017
  boostingAmount: number | null;
@@ -1,11 +1,11 @@
1
1
  import { z } from 'zod';
2
2
  export declare const agentStatusSchema: z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>;
3
- export declare const leadStatusEnum: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>;
3
+ export declare const leadStatusEnum: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>;
4
4
  export declare const updateLeadStatusSchema: z.ZodObject<{
5
5
  leadId: z.ZodString;
6
6
  organizationId: z.ZodString;
7
7
  campaignId: z.ZodString;
8
- status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>;
8
+ status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>;
9
9
  proposalId: z.ZodOptional<z.ZodString>;
10
10
  userId: z.ZodOptional<z.ZodString>;
11
11
  wonAmount: z.ZodOptional<z.ZodNumber>;
@@ -13,7 +13,7 @@ export declare const updateLeadStatusSchema: z.ZodObject<{
13
13
  leadId: string;
14
14
  organizationId: string;
15
15
  campaignId: string;
16
- status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "viewed" | "replied" | "won";
16
+ status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
17
17
  proposalId?: string | undefined;
18
18
  userId?: string | undefined;
19
19
  wonAmount?: number | undefined;
@@ -21,19 +21,19 @@ export declare const updateLeadStatusSchema: z.ZodObject<{
21
21
  leadId: string;
22
22
  organizationId: string;
23
23
  campaignId: string;
24
- status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "viewed" | "replied" | "won";
24
+ status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
25
25
  proposalId?: string | undefined;
26
26
  userId?: string | undefined;
27
27
  wonAmount?: number | undefined;
28
28
  }>;
29
29
  export declare const updateOrganizationLeadsStatusPayloadSchema: z.ZodArray<z.ZodObject<{
30
30
  applicationUid: z.ZodString;
31
- status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>;
31
+ status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>;
32
32
  }, "strip", z.ZodTypeAny, {
33
- status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "viewed" | "replied" | "won";
33
+ status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
34
34
  applicationUid: string;
35
35
  }, {
36
- status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "viewed" | "replied" | "won";
36
+ status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
37
37
  applicationUid: string;
38
38
  }>, "many">;
39
39
  export type LeadStatus = z.infer<typeof leadStatusEnum>;
@@ -89,13 +89,13 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
89
89
  leadId: z.ZodString;
90
90
  userId: z.ZodString;
91
91
  metadata: z.ZodOptional<z.ZodObject<{
92
- status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "viewed", "replied", "won"]>;
92
+ status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>;
93
93
  proposalId: z.ZodNullable<z.ZodString>;
94
94
  }, "strip", z.ZodTypeAny, {
95
- status: "insufficientConnects" | "leads" | "contacted" | "viewed" | "replied" | "won";
95
+ status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
96
96
  proposalId: string | null;
97
97
  }, {
98
- status: "insufficientConnects" | "leads" | "contacted" | "viewed" | "replied" | "won";
98
+ status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
99
99
  proposalId: string | null;
100
100
  }>>;
101
101
  reason: z.ZodOptional<z.ZodString>;
@@ -106,7 +106,7 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
106
106
  leadId: string;
107
107
  reason?: string | undefined;
108
108
  metadata?: {
109
- status: "insufficientConnects" | "leads" | "contacted" | "viewed" | "replied" | "won";
109
+ status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
110
110
  proposalId: string | null;
111
111
  } | undefined;
112
112
  }, {
@@ -116,7 +116,7 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
116
116
  leadId: string;
117
117
  reason?: string | undefined;
118
118
  metadata?: {
119
- status: "insufficientConnects" | "leads" | "contacted" | "viewed" | "replied" | "won";
119
+ status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
120
120
  proposalId: string | null;
121
121
  } | undefined;
122
122
  }>;