lancer-shared 1.2.203 → 1.2.204
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 +25 -1
- package/dist/constants/routes.d.ts +1 -1
- package/dist/schemas/agent/index.d.ts +9 -9
- package/dist/schemas/bidder/bid.d.ts +104 -80
- package/dist/schemas/bidder/exceptions/index.d.ts +3 -1
- 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 +32 -32
- 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 +14 -14
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -6448,7 +6448,7 @@ const ROUTES = {
|
|
|
6448
6448
|
EVENTS: {
|
|
6449
6449
|
BASE: 'events',
|
|
6450
6450
|
BY_ID: (id) => `events/${id}`,
|
|
6451
|
-
GET_BIDDING_PROCESSING_EVENT_FROM_ANOTHER_CAMPAIGNS:
|
|
6451
|
+
GET_BIDDING_PROCESSING_EVENT_FROM_ANOTHER_CAMPAIGNS: 'events/get-bidding-processing-event-from-another-campaign',
|
|
6452
6452
|
},
|
|
6453
6453
|
JOBS: {
|
|
6454
6454
|
BASE: 'jobs',
|
|
@@ -12715,6 +12715,7 @@ const leadStatusEnum = z.enum([
|
|
|
12715
12715
|
'boostAboveMaxConnects',
|
|
12716
12716
|
'privateJob',
|
|
12717
12717
|
'noLongerAvailable',
|
|
12718
|
+
'rejected',
|
|
12718
12719
|
'viewed',
|
|
12719
12720
|
'replied',
|
|
12720
12721
|
'won',
|
|
@@ -13311,6 +13312,7 @@ const updateCampaignAnalyticsSchema = z.object({
|
|
|
13311
13312
|
'privateJob',
|
|
13312
13313
|
'insufficientConnects',
|
|
13313
13314
|
'noLongerAvailable',
|
|
13315
|
+
'rejected',
|
|
13314
13316
|
'won',
|
|
13315
13317
|
'leadsAnalyzed',
|
|
13316
13318
|
'leadsFailed',
|
|
@@ -13993,6 +13995,14 @@ const bidDtoSchema = z.object({
|
|
|
13993
13995
|
campaignId: z.string(),
|
|
13994
13996
|
leadId: z.string(),
|
|
13995
13997
|
});
|
|
13998
|
+
const getBiddingProcessingEventFromAnotherCampaignsPayloadSchema = z.object({
|
|
13999
|
+
organizationId: z.string(),
|
|
14000
|
+
campaignId: z.string(),
|
|
14001
|
+
jobUrl: z.string(),
|
|
14002
|
+
});
|
|
14003
|
+
const getBiddingProcessingEventFromAnotherCampaignsResponseSchema = z.object({
|
|
14004
|
+
exists: z.boolean(),
|
|
14005
|
+
});
|
|
13996
14006
|
|
|
13997
14007
|
const bidSuccessSchema = z.object({
|
|
13998
14008
|
status: z.literal("success"),
|
|
@@ -14119,6 +14129,16 @@ function invalidJobUrlException(message) {
|
|
|
14119
14129
|
return new InvalidJobUrlException(message);
|
|
14120
14130
|
}
|
|
14121
14131
|
|
|
14132
|
+
class JobAlreadyProcessedInAnotherCampaignException extends Error {
|
|
14133
|
+
code = 'JOB_ALREADY_PROCESSED_IN_ANOTHER_CAMPAIGN_EXCEPTION';
|
|
14134
|
+
constructor(message) {
|
|
14135
|
+
super(message);
|
|
14136
|
+
}
|
|
14137
|
+
}
|
|
14138
|
+
function jobAlreadyProcessedInAnotherCampaignException(message) {
|
|
14139
|
+
return new JobAlreadyProcessedInAnotherCampaignException(message);
|
|
14140
|
+
}
|
|
14141
|
+
|
|
14122
14142
|
class JobNoLongerAvailableException extends Error {
|
|
14123
14143
|
code = 'JOB_NO_LONGER_AVAILABLE_EXCEPTION';
|
|
14124
14144
|
constructor(message) {
|
|
@@ -23742,6 +23762,7 @@ exports.InvalidCredentialsException = InvalidCredentialsException;
|
|
|
23742
23762
|
exports.InvalidGoogleOAuthTokenException = InvalidGoogleOAuthTokenException;
|
|
23743
23763
|
exports.InvalidJobUrlException = InvalidJobUrlException;
|
|
23744
23764
|
exports.JOB_FILTER_OPTIONS = JOB_FILTER_OPTIONS;
|
|
23765
|
+
exports.JobAlreadyProcessedInAnotherCampaignException = JobAlreadyProcessedInAnotherCampaignException;
|
|
23745
23766
|
exports.JobIsPrivateException = JobIsPrivateException;
|
|
23746
23767
|
exports.JobNoLongerAvailableException = JobNoLongerAvailableException;
|
|
23747
23768
|
exports.LogEventTypeEnum = LogEventTypeEnum;
|
|
@@ -23905,6 +23926,8 @@ exports.freelancerBidPayloadSchema = freelancerBidPayloadSchema;
|
|
|
23905
23926
|
exports.freelancerBidProposalDataSchema = freelancerBidProposalDataSchema;
|
|
23906
23927
|
exports.generateLeadCountsRequestSchema = generateLeadCountsRequestSchema;
|
|
23907
23928
|
exports.generateSlug = generateSlug;
|
|
23929
|
+
exports.getBiddingProcessingEventFromAnotherCampaignsPayloadSchema = getBiddingProcessingEventFromAnotherCampaignsPayloadSchema;
|
|
23930
|
+
exports.getBiddingProcessingEventFromAnotherCampaignsResponseSchema = getBiddingProcessingEventFromAnotherCampaignsResponseSchema;
|
|
23908
23931
|
exports.getCampaignLeadsRequestQuerySchema = getCampaignLeadsRequestQuerySchema;
|
|
23909
23932
|
exports.getCampaignLeadsResponseSchema = getCampaignLeadsResponseSchema;
|
|
23910
23933
|
exports.getMultiloginBrowserException = getMultiloginBrowserException;
|
|
@@ -23939,6 +23962,7 @@ exports.jobActivityScrapeFailedEventMetadata = jobActivityScrapeFailedEventMetad
|
|
|
23939
23962
|
exports.jobActivityScrapedEventMetadata = jobActivityScrapedEventMetadata;
|
|
23940
23963
|
exports.jobActivitySnapshotSchema = jobActivitySnapshotSchema;
|
|
23941
23964
|
exports.jobActivityUpdateSchema = jobActivityUpdateSchema;
|
|
23965
|
+
exports.jobAlreadyProcessedInAnotherCampaignException = jobAlreadyProcessedInAnotherCampaignException;
|
|
23942
23966
|
exports.jobDetailsStateSchema = jobDetailsStateSchema;
|
|
23943
23967
|
exports.jobFiltersSchema = jobFiltersSchema;
|
|
23944
23968
|
exports.jobIsPrivateException = jobIsPrivateException;
|
|
@@ -17,7 +17,7 @@ export declare const ROUTES: {
|
|
|
17
17
|
readonly EVENTS: {
|
|
18
18
|
readonly BASE: "events";
|
|
19
19
|
readonly BY_ID: (id: string) => string;
|
|
20
|
-
readonly GET_BIDDING_PROCESSING_EVENT_FROM_ANOTHER_CAMPAIGNS:
|
|
20
|
+
readonly GET_BIDDING_PROCESSING_EVENT_FROM_ANOTHER_CAMPAIGNS: "events/get-bidding-processing-event-from-another-campaign";
|
|
21
21
|
};
|
|
22
22
|
readonly JOBS: {
|
|
23
23
|
readonly BASE: "jobs";
|
|
@@ -419,7 +419,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
|
|
|
419
419
|
answer: string;
|
|
420
420
|
}>, "many">>;
|
|
421
421
|
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", "viewed", "replied", "won"]>>;
|
|
422
|
+
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "viewed", "replied", "won"]>>;
|
|
423
423
|
biddingAmount: z.ZodNullable<z.ZodNumber>;
|
|
424
424
|
boosted: z.ZodNullable<z.ZodBoolean>;
|
|
425
425
|
boostingAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -533,14 +533,14 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
|
|
|
533
533
|
suitabilityReason: string | null;
|
|
534
534
|
proposal: string | null;
|
|
535
535
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
536
|
-
leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "viewed" | "replied" | "won" | null;
|
|
536
|
+
leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "viewed" | "replied" | "won" | null;
|
|
537
537
|
biddingAmount: number | null;
|
|
538
538
|
boosted: boolean | null;
|
|
539
539
|
boostingAmount: number | null;
|
|
540
540
|
biddingTaskScheduled: boolean | null;
|
|
541
541
|
scheduledBiddingTime: number | null;
|
|
542
542
|
feedbackCheckTaskId: string | null;
|
|
543
|
-
bidDecision: "
|
|
543
|
+
bidDecision: "rejected" | "proceeded" | null;
|
|
544
544
|
rejectedFeedback: string | null;
|
|
545
545
|
applicationId: string | null;
|
|
546
546
|
activity?: Partial<Record<"4h" | "24h", {
|
|
@@ -668,14 +668,14 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
|
|
|
668
668
|
suitabilityReason: string | null;
|
|
669
669
|
proposal: string | null;
|
|
670
670
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
671
|
-
leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "viewed" | "replied" | "won" | null;
|
|
671
|
+
leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "viewed" | "replied" | "won" | null;
|
|
672
672
|
biddingAmount: number | null;
|
|
673
673
|
boosted: boolean | null;
|
|
674
674
|
boostingAmount: number | null;
|
|
675
675
|
biddingTaskScheduled: boolean | null;
|
|
676
676
|
scheduledBiddingTime: number | null;
|
|
677
677
|
feedbackCheckTaskId: string | null;
|
|
678
|
-
bidDecision: "
|
|
678
|
+
bidDecision: "rejected" | "proceeded" | null;
|
|
679
679
|
rejectedFeedback: string | null;
|
|
680
680
|
applicationId: string | null;
|
|
681
681
|
activity?: Partial<Record<"4h" | "24h", {
|
|
@@ -819,14 +819,14 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
|
|
|
819
819
|
suitabilityReason: string | null;
|
|
820
820
|
proposal: string | null;
|
|
821
821
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
822
|
-
leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "viewed" | "replied" | "won" | null;
|
|
822
|
+
leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "viewed" | "replied" | "won" | null;
|
|
823
823
|
biddingAmount: number | null;
|
|
824
824
|
boosted: boolean | null;
|
|
825
825
|
boostingAmount: number | null;
|
|
826
826
|
biddingTaskScheduled: boolean | null;
|
|
827
827
|
scheduledBiddingTime: number | null;
|
|
828
828
|
feedbackCheckTaskId: string | null;
|
|
829
|
-
bidDecision: "
|
|
829
|
+
bidDecision: "rejected" | "proceeded" | null;
|
|
830
830
|
rejectedFeedback: string | null;
|
|
831
831
|
applicationId: string | null;
|
|
832
832
|
activity?: Partial<Record<"4h" | "24h", {
|
|
@@ -964,14 +964,14 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
|
|
|
964
964
|
suitabilityReason: string | null;
|
|
965
965
|
proposal: string | null;
|
|
966
966
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
967
|
-
leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "viewed" | "replied" | "won" | null;
|
|
967
|
+
leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "viewed" | "replied" | "won" | null;
|
|
968
968
|
biddingAmount: number | null;
|
|
969
969
|
boosted: boolean | null;
|
|
970
970
|
boostingAmount: number | null;
|
|
971
971
|
biddingTaskScheduled: boolean | null;
|
|
972
972
|
scheduledBiddingTime: number | null;
|
|
973
973
|
feedbackCheckTaskId: string | null;
|
|
974
|
-
bidDecision: "
|
|
974
|
+
bidDecision: "rejected" | "proceeded" | null;
|
|
975
975
|
rejectedFeedback: string | null;
|
|
976
976
|
applicationId: string | null;
|
|
977
977
|
activity?: Partial<Record<"4h" | "24h", {
|