lancer-shared 1.2.199 → 1.2.201
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.
- package/dist/bundle.cjs.js +19 -0
- package/dist/constants/routes.d.ts +1 -0
- package/dist/schemas/agent/index.d.ts +5 -5
- package/dist/schemas/bidder/bid.d.ts +44 -44
- package/dist/schemas/bidder/exceptions/index.d.ts +3 -1
- package/dist/schemas/bidder/exceptions/job-already-processed-in-another-campaign.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/private-job.exception.d.ts +5 -0
- package/dist/schemas/campaign/campaign-analytics.d.ts +29 -29
- package/dist/schemas/campaign/campaign.d.ts +9 -9
- package/dist/schemas/lead/index.d.ts +18 -18
- package/dist/schemas/lead/lead-status.d.ts +7 -7
- package/dist/schemas/logger/log-event.d.ts +15 -7
- package/dist/schemas/scraper/scrape-payload.d.ts +10 -10
- package/package.json +1 -1
|
@@ -60,6 +60,13 @@ export declare const biddingFailedEventMetadata: z.ZodObject<{
|
|
|
60
60
|
}, {
|
|
61
61
|
error?: any;
|
|
62
62
|
}>;
|
|
63
|
+
export declare const biddingProcessingEventMetadata: z.ZodObject<{
|
|
64
|
+
jobUrl: z.ZodString;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
jobUrl: string;
|
|
67
|
+
}, {
|
|
68
|
+
jobUrl: string;
|
|
69
|
+
}>;
|
|
63
70
|
export declare const userAccountBiddingExceptionEventMetadata: z.ZodObject<{
|
|
64
71
|
errorType: z.ZodEnum<["insufficientConnects", "proposalFormWarningAlert"]>;
|
|
65
72
|
context: z.ZodOptional<z.ZodString>;
|
|
@@ -89,13 +96,13 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
|
|
|
89
96
|
leadId: z.ZodString;
|
|
90
97
|
userId: z.ZodString;
|
|
91
98
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
92
|
-
status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>;
|
|
99
|
+
status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "viewed", "replied", "won"]>;
|
|
93
100
|
proposalId: z.ZodNullable<z.ZodString>;
|
|
94
101
|
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
|
|
102
|
+
status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "viewed" | "replied" | "won";
|
|
96
103
|
proposalId: string | null;
|
|
97
104
|
}, {
|
|
98
|
-
status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
|
|
105
|
+
status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "viewed" | "replied" | "won";
|
|
99
106
|
proposalId: string | null;
|
|
100
107
|
}>>;
|
|
101
108
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -106,7 +113,7 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
|
|
|
106
113
|
leadId: string;
|
|
107
114
|
reason?: string | undefined;
|
|
108
115
|
metadata?: {
|
|
109
|
-
status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
|
|
116
|
+
status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "viewed" | "replied" | "won";
|
|
110
117
|
proposalId: string | null;
|
|
111
118
|
} | undefined;
|
|
112
119
|
}, {
|
|
@@ -116,7 +123,7 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
|
|
|
116
123
|
leadId: string;
|
|
117
124
|
reason?: string | undefined;
|
|
118
125
|
metadata?: {
|
|
119
|
-
status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
|
|
126
|
+
status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "viewed" | "replied" | "won";
|
|
120
127
|
proposalId: string | null;
|
|
121
128
|
} | undefined;
|
|
122
129
|
}>;
|
|
@@ -131,6 +138,7 @@ export type LogEventType = z.infer<typeof LogEventTypeEnum>;
|
|
|
131
138
|
export type LogEvent = z.infer<typeof logEventSchema>;
|
|
132
139
|
export type BiddingCompletedEventMetadata = z.infer<typeof biddingCompletedEventMetadata>;
|
|
133
140
|
export type BiddingFailedEventMetadata = z.infer<typeof biddingFailedEventMetadata>;
|
|
141
|
+
export type BiddingProcessingEventMetadata = z.infer<typeof biddingProcessingEventMetadata>;
|
|
134
142
|
export type BiddingRejectedWithFeedbackEventMetadata = z.infer<typeof biddingRejectedWithFeedbackEventMetadata>;
|
|
135
143
|
export type LeadStatusEventMetadata = z.infer<typeof leadStatusEventMetadata>;
|
|
136
144
|
export declare const suitabilityPendingEventMetadataSchema: z.ZodObject<{
|
|
@@ -150,8 +158,8 @@ export declare const suitabilityPendingEventMetadataSchema: z.ZodObject<{
|
|
|
150
158
|
}>, "many">;
|
|
151
159
|
}, "strip", z.ZodTypeAny, {
|
|
152
160
|
timestamp: number;
|
|
153
|
-
jobId: string;
|
|
154
161
|
jobUrl: string;
|
|
162
|
+
jobId: string;
|
|
155
163
|
title: string;
|
|
156
164
|
applyToLeads: {
|
|
157
165
|
campaignId: string;
|
|
@@ -159,8 +167,8 @@ export declare const suitabilityPendingEventMetadataSchema: z.ZodObject<{
|
|
|
159
167
|
}[];
|
|
160
168
|
}, {
|
|
161
169
|
timestamp: number;
|
|
162
|
-
jobId: string;
|
|
163
170
|
jobUrl: string;
|
|
171
|
+
jobId: string;
|
|
164
172
|
title: string;
|
|
165
173
|
applyToLeads: {
|
|
166
174
|
campaignId: string;
|
|
@@ -692,7 +692,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
692
692
|
biddingFixedHourlyRate: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
693
693
|
biddingHourlyRatePercentage: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
694
694
|
bidWithWarning: import("zod").ZodEnum<["bid", "skip"]>;
|
|
695
|
-
leadCounts: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>, import("zod").ZodNumber>>;
|
|
695
|
+
leadCounts: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "viewed", "replied", "won"]>, import("zod").ZodNumber>>;
|
|
696
696
|
expenses: import("zod").ZodObject<{
|
|
697
697
|
biddingAmount: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
698
698
|
boostingAmount: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
@@ -867,7 +867,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
867
867
|
biddingFixedHourlyRate: number | null;
|
|
868
868
|
biddingHourlyRatePercentage: number | null;
|
|
869
869
|
bidWithWarning: "skip" | "bid";
|
|
870
|
-
leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won", number>> | null;
|
|
870
|
+
leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "viewed" | "replied" | "won", number>> | null;
|
|
871
871
|
expenses: {
|
|
872
872
|
biddingAmount: number;
|
|
873
873
|
boostingAmount: number;
|
|
@@ -977,7 +977,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
977
977
|
biddingFixedHourlyRate: number | null;
|
|
978
978
|
biddingHourlyRatePercentage: number | null;
|
|
979
979
|
bidWithWarning: "skip" | "bid";
|
|
980
|
-
leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won", number>> | null;
|
|
980
|
+
leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "viewed" | "replied" | "won", number>> | null;
|
|
981
981
|
expenses: {
|
|
982
982
|
biddingAmount?: number | undefined;
|
|
983
983
|
boostingAmount?: number | undefined;
|
|
@@ -1669,7 +1669,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1669
1669
|
answer: string;
|
|
1670
1670
|
}>, "many">>;
|
|
1671
1671
|
agentStatus: import("zod").ZodNullable<import("zod").ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
1672
|
-
leadStatus: import("zod").ZodNullable<import("zod").ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>>;
|
|
1672
|
+
leadStatus: import("zod").ZodNullable<import("zod").ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "viewed", "replied", "won"]>>;
|
|
1673
1673
|
biddingAmount: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
1674
1674
|
boosted: import("zod").ZodNullable<import("zod").ZodBoolean>;
|
|
1675
1675
|
boostingAmount: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
@@ -1786,7 +1786,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1786
1786
|
answer: string;
|
|
1787
1787
|
}[] | null;
|
|
1788
1788
|
agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
|
|
1789
|
-
leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
|
|
1789
|
+
leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "viewed" | "replied" | "won" | null;
|
|
1790
1790
|
biddingTaskScheduled: boolean | null;
|
|
1791
1791
|
scheduledBiddingTime: number | null;
|
|
1792
1792
|
feedbackCheckTaskId: string | null;
|
|
@@ -1921,7 +1921,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1921
1921
|
answer: string;
|
|
1922
1922
|
}[] | null;
|
|
1923
1923
|
agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
|
|
1924
|
-
leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
|
|
1924
|
+
leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "viewed" | "replied" | "won" | null;
|
|
1925
1925
|
biddingTaskScheduled: boolean | null;
|
|
1926
1926
|
scheduledBiddingTime: number | null;
|
|
1927
1927
|
feedbackCheckTaskId: string | null;
|
|
@@ -2137,7 +2137,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
2137
2137
|
biddingFixedHourlyRate: number | null;
|
|
2138
2138
|
biddingHourlyRatePercentage: number | null;
|
|
2139
2139
|
bidWithWarning: "skip" | "bid";
|
|
2140
|
-
leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won", number>> | null;
|
|
2140
|
+
leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "viewed" | "replied" | "won", number>> | null;
|
|
2141
2141
|
expenses: {
|
|
2142
2142
|
biddingAmount: number;
|
|
2143
2143
|
boostingAmount: number;
|
|
@@ -2342,7 +2342,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
2342
2342
|
answer: string;
|
|
2343
2343
|
}[] | null;
|
|
2344
2344
|
agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
|
|
2345
|
-
leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
|
|
2345
|
+
leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "viewed" | "replied" | "won" | null;
|
|
2346
2346
|
biddingTaskScheduled: boolean | null;
|
|
2347
2347
|
scheduledBiddingTime: number | null;
|
|
2348
2348
|
feedbackCheckTaskId: string | null;
|
|
@@ -2475,7 +2475,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
2475
2475
|
biddingFixedHourlyRate: number | null;
|
|
2476
2476
|
biddingHourlyRatePercentage: number | null;
|
|
2477
2477
|
bidWithWarning: "skip" | "bid";
|
|
2478
|
-
leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won", number>> | null;
|
|
2478
|
+
leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "viewed" | "replied" | "won", number>> | null;
|
|
2479
2479
|
expenses: {
|
|
2480
2480
|
biddingAmount?: number | undefined;
|
|
2481
2481
|
boostingAmount?: number | undefined;
|
|
@@ -2685,7 +2685,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
2685
2685
|
answer: string;
|
|
2686
2686
|
}[] | null;
|
|
2687
2687
|
agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
|
|
2688
|
-
leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
|
|
2688
|
+
leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "viewed" | "replied" | "won" | null;
|
|
2689
2689
|
biddingTaskScheduled: boolean | null;
|
|
2690
2690
|
scheduledBiddingTime: number | null;
|
|
2691
2691
|
feedbackCheckTaskId: string | null;
|