lancer-shared 1.2.263 → 1.2.264
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 +3 -2
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +3 -2
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +1 -0
- package/dist/schemas/agent/index.d.ts +5 -5
- package/dist/schemas/bidder/bid.d.ts +49 -49
- 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 +5 -5
- package/dist/schemas/scraper/scrape-payload.d.ts +10 -10
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
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", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "
|
|
3
|
+
export declare const leadStatusEnum: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "biddingScheduled", "biddingFailed", "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", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "
|
|
8
|
+
status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "biddingScheduled", "biddingFailed", "won"]>;
|
|
9
9
|
proposalId: z.ZodOptional<z.ZodString>;
|
|
10
10
|
userId: z.ZodOptional<z.ZodString>;
|
|
11
11
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
status: "rejected" | "contacted" | "viewed" | "replied" | "
|
|
13
|
+
status: "rejected" | "contacted" | "viewed" | "replied" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "biddingScheduled" | "won";
|
|
14
14
|
campaignId: string;
|
|
15
15
|
organizationId: string;
|
|
16
16
|
leadId: string;
|
|
@@ -18,7 +18,7 @@ export declare const updateLeadStatusSchema: z.ZodObject<{
|
|
|
18
18
|
proposalId?: string | undefined;
|
|
19
19
|
wonAmount?: number | undefined;
|
|
20
20
|
}, {
|
|
21
|
-
status: "rejected" | "contacted" | "viewed" | "replied" | "
|
|
21
|
+
status: "rejected" | "contacted" | "viewed" | "replied" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "biddingScheduled" | "won";
|
|
22
22
|
campaignId: string;
|
|
23
23
|
organizationId: string;
|
|
24
24
|
leadId: string;
|
|
@@ -28,12 +28,12 @@ export declare const updateLeadStatusSchema: z.ZodObject<{
|
|
|
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", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "
|
|
31
|
+
status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "biddingScheduled", "biddingFailed", "won"]>;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
status: "rejected" | "contacted" | "viewed" | "replied" | "
|
|
33
|
+
status: "rejected" | "contacted" | "viewed" | "replied" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "biddingScheduled" | "won";
|
|
34
34
|
applicationUid: string;
|
|
35
35
|
}, {
|
|
36
|
-
status: "rejected" | "contacted" | "viewed" | "replied" | "
|
|
36
|
+
status: "rejected" | "contacted" | "viewed" | "replied" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "biddingScheduled" | "won";
|
|
37
37
|
applicationUid: string;
|
|
38
38
|
}>, "many">;
|
|
39
39
|
export type LeadStatus = z.infer<typeof leadStatusEnum>;
|
|
@@ -131,13 +131,13 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
|
|
|
131
131
|
leadId: z.ZodString;
|
|
132
132
|
userId: z.ZodString;
|
|
133
133
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
134
|
-
status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "
|
|
134
|
+
status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "biddingScheduled", "biddingFailed", "won"]>;
|
|
135
135
|
proposalId: z.ZodNullable<z.ZodString>;
|
|
136
136
|
}, "strip", z.ZodTypeAny, {
|
|
137
|
-
status: "rejected" | "contacted" | "viewed" | "replied" | "
|
|
137
|
+
status: "rejected" | "contacted" | "viewed" | "replied" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "biddingScheduled" | "won";
|
|
138
138
|
proposalId: string | null;
|
|
139
139
|
}, {
|
|
140
|
-
status: "rejected" | "contacted" | "viewed" | "replied" | "
|
|
140
|
+
status: "rejected" | "contacted" | "viewed" | "replied" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "biddingScheduled" | "won";
|
|
141
141
|
proposalId: string | null;
|
|
142
142
|
}>>;
|
|
143
143
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -148,7 +148,7 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
|
|
|
148
148
|
leadId: string;
|
|
149
149
|
reason?: string | undefined;
|
|
150
150
|
metadata?: {
|
|
151
|
-
status: "rejected" | "contacted" | "viewed" | "replied" | "
|
|
151
|
+
status: "rejected" | "contacted" | "viewed" | "replied" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "biddingScheduled" | "won";
|
|
152
152
|
proposalId: string | null;
|
|
153
153
|
} | undefined;
|
|
154
154
|
}, {
|
|
@@ -158,7 +158,7 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
|
|
|
158
158
|
leadId: string;
|
|
159
159
|
reason?: string | undefined;
|
|
160
160
|
metadata?: {
|
|
161
|
-
status: "rejected" | "contacted" | "viewed" | "replied" | "
|
|
161
|
+
status: "rejected" | "contacted" | "viewed" | "replied" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "biddingScheduled" | "won";
|
|
162
162
|
proposalId: string | null;
|
|
163
163
|
} | undefined;
|
|
164
164
|
}>;
|
|
@@ -698,7 +698,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
698
698
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
699
699
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
700
700
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
701
|
-
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "
|
|
701
|
+
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "biddingScheduled", "biddingFailed", "won"]>, z.ZodNumber>>;
|
|
702
702
|
expenses: z.ZodObject<{
|
|
703
703
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
704
704
|
boostingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -825,7 +825,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
825
825
|
specialisedProfile: string | null;
|
|
826
826
|
bidderId: string | null;
|
|
827
827
|
} | null;
|
|
828
|
-
leadCounts: Partial<Record<"rejected" | "contacted" | "viewed" | "replied" | "
|
|
828
|
+
leadCounts: Partial<Record<"rejected" | "contacted" | "viewed" | "replied" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "biddingScheduled" | "won", number>> | null;
|
|
829
829
|
filters: {
|
|
830
830
|
keywords: {
|
|
831
831
|
includes: string | null;
|
|
@@ -939,7 +939,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
939
939
|
specialisedProfile: string | null;
|
|
940
940
|
bidderId: string | null;
|
|
941
941
|
} | null;
|
|
942
|
-
leadCounts: Partial<Record<"rejected" | "contacted" | "viewed" | "replied" | "
|
|
942
|
+
leadCounts: Partial<Record<"rejected" | "contacted" | "viewed" | "replied" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "biddingScheduled" | "won", number>> | null;
|
|
943
943
|
filters: {
|
|
944
944
|
keywords: {
|
|
945
945
|
includes: string | null;
|
|
@@ -1681,7 +1681,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1681
1681
|
question: string;
|
|
1682
1682
|
}>, "many">>;
|
|
1683
1683
|
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
1684
|
-
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "
|
|
1684
|
+
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "biddingScheduled", "biddingFailed", "won"]>>;
|
|
1685
1685
|
biddingAmount: z.ZodNullable<z.ZodNumber>;
|
|
1686
1686
|
boosted: z.ZodNullable<z.ZodBoolean>;
|
|
1687
1687
|
boostingAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1868,7 +1868,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1868
1868
|
question: string;
|
|
1869
1869
|
}[] | null;
|
|
1870
1870
|
agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
|
|
1871
|
-
leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "
|
|
1871
|
+
leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "biddingScheduled" | "won" | null;
|
|
1872
1872
|
biddingAmount: number | null;
|
|
1873
1873
|
boosted: boolean | null;
|
|
1874
1874
|
boostingAmount: number | null;
|
|
@@ -2029,7 +2029,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
2029
2029
|
question: string;
|
|
2030
2030
|
}[] | null;
|
|
2031
2031
|
agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
|
|
2032
|
-
leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "
|
|
2032
|
+
leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "biddingScheduled" | "won" | null;
|
|
2033
2033
|
biddingAmount: number | null;
|
|
2034
2034
|
boosted: boolean | null;
|
|
2035
2035
|
boostingAmount: number | null;
|
|
@@ -2360,7 +2360,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
2360
2360
|
question: string;
|
|
2361
2361
|
}[] | null;
|
|
2362
2362
|
agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
|
|
2363
|
-
leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "
|
|
2363
|
+
leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "biddingScheduled" | "won" | null;
|
|
2364
2364
|
biddingAmount: number | null;
|
|
2365
2365
|
boosted: boolean | null;
|
|
2366
2366
|
boostingAmount: number | null;
|
|
@@ -2444,7 +2444,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
2444
2444
|
specialisedProfile: string | null;
|
|
2445
2445
|
bidderId: string | null;
|
|
2446
2446
|
} | null;
|
|
2447
|
-
leadCounts: Partial<Record<"rejected" | "contacted" | "viewed" | "replied" | "
|
|
2447
|
+
leadCounts: Partial<Record<"rejected" | "contacted" | "viewed" | "replied" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "biddingScheduled" | "won", number>> | null;
|
|
2448
2448
|
filters: {
|
|
2449
2449
|
keywords: {
|
|
2450
2450
|
includes: string | null;
|
|
@@ -2732,7 +2732,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
2732
2732
|
question: string;
|
|
2733
2733
|
}[] | null;
|
|
2734
2734
|
agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
|
|
2735
|
-
leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "
|
|
2735
|
+
leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "biddingScheduled" | "won" | null;
|
|
2736
2736
|
biddingAmount: number | null;
|
|
2737
2737
|
boosted: boolean | null;
|
|
2738
2738
|
boostingAmount: number | null;
|
|
@@ -2812,7 +2812,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
2812
2812
|
specialisedProfile: string | null;
|
|
2813
2813
|
bidderId: string | null;
|
|
2814
2814
|
} | null;
|
|
2815
|
-
leadCounts: Partial<Record<"rejected" | "contacted" | "viewed" | "replied" | "
|
|
2815
|
+
leadCounts: Partial<Record<"rejected" | "contacted" | "viewed" | "replied" | "biddingFailed" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "biddingScheduled" | "won", number>> | null;
|
|
2816
2816
|
filters: {
|
|
2817
2817
|
keywords: {
|
|
2818
2818
|
includes: string | null;
|