lancer-shared 1.2.260 → 1.2.261

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.
@@ -134,10 +134,10 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
134
134
  status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "won"]>;
135
135
  proposalId: z.ZodNullable<z.ZodString>;
136
136
  }, "strip", z.ZodTypeAny, {
137
- status: "rejected" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "won";
137
+ status: "rejected" | "contacted" | "viewed" | "replied" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won";
138
138
  proposalId: string | null;
139
139
  }, {
140
- status: "rejected" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "won";
140
+ status: "rejected" | "contacted" | "viewed" | "replied" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "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" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "won";
151
+ status: "rejected" | "contacted" | "viewed" | "replied" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "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" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "won";
161
+ status: "rejected" | "contacted" | "viewed" | "replied" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won";
162
162
  proposalId: string | null;
163
163
  } | undefined;
164
164
  }>;
@@ -1046,4 +1046,5 @@ export interface SubscribePayload extends z.infer<typeof subscribePayloadSchema>
1046
1046
  export * from './cover-letter';
1047
1047
  export * from './member';
1048
1048
  export * from './onboarding';
1049
+ export * from './organization-leads';
1049
1050
  export * from './subscription';
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ export declare const getOrganizationLeadsStatusEnum: z.ZodEnum<["all", "suitable", "contacted", "viewed", "replied"]>;
3
+ export declare const getOrganizationLeadsRequestQuerySchema: z.ZodObject<{
4
+ cursor: z.ZodOptional<z.ZodString>;
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ status: z.ZodOptional<z.ZodEnum<["all", "suitable", "contacted", "viewed", "replied"]>>;
7
+ campaignId: z.ZodOptional<z.ZodString>;
8
+ inQueue: z.ZodOptional<z.ZodBoolean>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ cursor?: string | undefined;
11
+ status?: "all" | "suitable" | "contacted" | "viewed" | "replied" | undefined;
12
+ campaignId?: string | undefined;
13
+ limit?: number | undefined;
14
+ inQueue?: boolean | undefined;
15
+ }, {
16
+ cursor?: string | undefined;
17
+ status?: "all" | "suitable" | "contacted" | "viewed" | "replied" | undefined;
18
+ campaignId?: string | undefined;
19
+ limit?: number | undefined;
20
+ inQueue?: boolean | undefined;
21
+ }>;
22
+ export type GetOrganizationLeadsStatus = z.infer<typeof getOrganizationLeadsStatusEnum>;
23
+ export type GetOrganizationLeadsRequestQuery = z.infer<typeof getOrganizationLeadsRequestQuerySchema>;
@@ -808,7 +808,8 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
808
808
  };
809
809
  createdAt: number;
810
810
  updatedAt: number;
811
- leadCounts: Partial<Record<"rejected" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "won", number>> | null;
811
+ biddingDelayInMinutes: number;
812
+ leadCounts: Partial<Record<"rejected" | "contacted" | "viewed" | "replied" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won", number>> | null;
812
813
  filters: {
813
814
  keywords: {
814
815
  includes: string | null;
@@ -878,7 +879,6 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
878
879
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
879
880
  monthlyBudget: number | null;
880
881
  boostingThreshold: number | null;
881
- biddingDelayInMinutes: number;
882
882
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
883
883
  biddingFixedHourlyRate: number | null;
884
884
  biddingHourlyRatePercentage: number | null;
@@ -926,7 +926,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
926
926
  };
927
927
  createdAt: number;
928
928
  updatedAt: number;
929
- leadCounts: Partial<Record<"rejected" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "won", number>> | null;
929
+ leadCounts: Partial<Record<"rejected" | "contacted" | "viewed" | "replied" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won", number>> | null;
930
930
  filters: {
931
931
  keywords: {
932
932
  includes: string | null;
@@ -1028,11 +1028,11 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1028
1028
  timezone: string | null;
1029
1029
  };
1030
1030
  status?: "error" | "active" | "paused" | "draft" | undefined;
1031
+ biddingDelayInMinutes?: number | undefined;
1031
1032
  boostingEnabled?: boolean | null | undefined;
1032
1033
  maximumBoost?: number | null | undefined;
1033
1034
  minBoost?: number | null | undefined;
1034
1035
  boostingThreshold?: number | null | undefined;
1035
- biddingDelayInMinutes?: number | undefined;
1036
1036
  }>;
1037
1037
  organization: z.ZodObject<{
1038
1038
  id: z.ZodString;
@@ -1691,12 +1691,12 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1691
1691
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
1692
1692
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
1693
1693
  inQueue: z.ZodNullable<z.ZodBoolean>;
1694
+ biddingDelayInMinutes: z.ZodNullable<z.ZodNumber>;
1694
1695
  wonAmount: z.ZodOptional<z.ZodNumber>;
1695
1696
  feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
1696
1697
  bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
1697
1698
  rejectedFeedback: z.ZodNullable<z.ZodString>;
1698
1699
  applicationId: z.ZodNullable<z.ZodString>;
1699
- campaignName: z.ZodOptional<z.ZodString>;
1700
1700
  }>, "processed">, "strip", z.ZodTypeAny, {
1701
1701
  id: string | null;
1702
1702
  title: string | null;
@@ -1716,6 +1716,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1716
1716
  datetime: number | null;
1717
1717
  campaignId: string;
1718
1718
  organizationId: string;
1719
+ inQueue: boolean | null;
1719
1720
  createdAt: number | null;
1720
1721
  updatedAt: number | null;
1721
1722
  isFeatured: boolean | null;
@@ -1800,7 +1801,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1800
1801
  question: string;
1801
1802
  }[] | null;
1802
1803
  agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
1803
- leadStatus: "rejected" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "won" | null;
1804
+ leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won" | null;
1804
1805
  biddingAmount: number | null;
1805
1806
  boosted: boolean | null;
1806
1807
  boostingAmount: number | null;
@@ -1809,7 +1810,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1809
1810
  biddedAt: number | null;
1810
1811
  biddingTaskScheduled: boolean | null;
1811
1812
  scheduledBiddingTime: number | null;
1812
- inQueue: boolean | null;
1813
+ biddingDelayInMinutes: number | null;
1813
1814
  feedbackCheckTaskId: string | null;
1814
1815
  bidDecision: "rejected" | "proceeded" | null;
1815
1816
  rejectedFeedback: string | null;
@@ -1836,7 +1837,6 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1836
1837
  } | null | undefined;
1837
1838
  proposalId?: string | undefined;
1838
1839
  wonAmount?: number | undefined;
1839
- campaignName?: string | undefined;
1840
1840
  }, {
1841
1841
  id: string | null;
1842
1842
  title: string | null;
@@ -1856,6 +1856,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1856
1856
  datetime: number | null;
1857
1857
  campaignId: string;
1858
1858
  organizationId: string;
1859
+ inQueue: boolean | null;
1859
1860
  createdAt: number | null;
1860
1861
  updatedAt: number | null;
1861
1862
  isFeatured: boolean | null;
@@ -1940,7 +1941,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1940
1941
  question: string;
1941
1942
  }[] | null;
1942
1943
  agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
1943
- leadStatus: "rejected" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "won" | null;
1944
+ leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won" | null;
1944
1945
  biddingAmount: number | null;
1945
1946
  boosted: boolean | null;
1946
1947
  boostingAmount: number | null;
@@ -1949,7 +1950,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1949
1950
  biddedAt: number | null;
1950
1951
  biddingTaskScheduled: boolean | null;
1951
1952
  scheduledBiddingTime: number | null;
1952
- inQueue: boolean | null;
1953
+ biddingDelayInMinutes: number | null;
1953
1954
  feedbackCheckTaskId: string | null;
1954
1955
  bidDecision: "rejected" | "proceeded" | null;
1955
1956
  rejectedFeedback: string | null;
@@ -1976,7 +1977,6 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1976
1977
  } | null | undefined;
1977
1978
  proposalId?: string | undefined;
1978
1979
  wonAmount?: number | undefined;
1979
- campaignName?: string | undefined;
1980
1980
  }>;
1981
1981
  bidder: z.ZodObject<{
1982
1982
  id: z.ZodString;
@@ -2166,6 +2166,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2166
2166
  datetime: number | null;
2167
2167
  campaignId: string;
2168
2168
  organizationId: string;
2169
+ inQueue: boolean | null;
2169
2170
  createdAt: number | null;
2170
2171
  updatedAt: number | null;
2171
2172
  isFeatured: boolean | null;
@@ -2250,7 +2251,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2250
2251
  question: string;
2251
2252
  }[] | null;
2252
2253
  agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
2253
- leadStatus: "rejected" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "won" | null;
2254
+ leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won" | null;
2254
2255
  biddingAmount: number | null;
2255
2256
  boosted: boolean | null;
2256
2257
  boostingAmount: number | null;
@@ -2259,7 +2260,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2259
2260
  biddedAt: number | null;
2260
2261
  biddingTaskScheduled: boolean | null;
2261
2262
  scheduledBiddingTime: number | null;
2262
- inQueue: boolean | null;
2263
+ biddingDelayInMinutes: number | null;
2263
2264
  feedbackCheckTaskId: string | null;
2264
2265
  bidDecision: "rejected" | "proceeded" | null;
2265
2266
  rejectedFeedback: string | null;
@@ -2286,7 +2287,6 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2286
2287
  } | null | undefined;
2287
2288
  proposalId?: string | undefined;
2288
2289
  wonAmount?: number | undefined;
2289
- campaignName?: string | undefined;
2290
2290
  };
2291
2291
  campaign: {
2292
2292
  id: string;
@@ -2299,7 +2299,8 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2299
2299
  };
2300
2300
  createdAt: number;
2301
2301
  updatedAt: number;
2302
- leadCounts: Partial<Record<"rejected" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "won", number>> | null;
2302
+ biddingDelayInMinutes: number;
2303
+ leadCounts: Partial<Record<"rejected" | "contacted" | "viewed" | "replied" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won", number>> | null;
2303
2304
  filters: {
2304
2305
  keywords: {
2305
2306
  includes: string | null;
@@ -2369,7 +2370,6 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2369
2370
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
2370
2371
  monthlyBudget: number | null;
2371
2372
  boostingThreshold: number | null;
2372
- biddingDelayInMinutes: number;
2373
2373
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
2374
2374
  biddingFixedHourlyRate: number | null;
2375
2375
  biddingHourlyRatePercentage: number | null;
@@ -2517,6 +2517,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2517
2517
  datetime: number | null;
2518
2518
  campaignId: string;
2519
2519
  organizationId: string;
2520
+ inQueue: boolean | null;
2520
2521
  createdAt: number | null;
2521
2522
  updatedAt: number | null;
2522
2523
  isFeatured: boolean | null;
@@ -2601,7 +2602,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2601
2602
  question: string;
2602
2603
  }[] | null;
2603
2604
  agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
2604
- leadStatus: "rejected" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "won" | null;
2605
+ leadStatus: "rejected" | "contacted" | "viewed" | "replied" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won" | null;
2605
2606
  biddingAmount: number | null;
2606
2607
  boosted: boolean | null;
2607
2608
  boostingAmount: number | null;
@@ -2610,7 +2611,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2610
2611
  biddedAt: number | null;
2611
2612
  biddingTaskScheduled: boolean | null;
2612
2613
  scheduledBiddingTime: number | null;
2613
- inQueue: boolean | null;
2614
+ biddingDelayInMinutes: number | null;
2614
2615
  feedbackCheckTaskId: string | null;
2615
2616
  bidDecision: "rejected" | "proceeded" | null;
2616
2617
  rejectedFeedback: string | null;
@@ -2637,7 +2638,6 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2637
2638
  } | null | undefined;
2638
2639
  proposalId?: string | undefined;
2639
2640
  wonAmount?: number | undefined;
2640
- campaignName?: string | undefined;
2641
2641
  };
2642
2642
  campaign: {
2643
2643
  id: string;
@@ -2650,7 +2650,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2650
2650
  };
2651
2651
  createdAt: number;
2652
2652
  updatedAt: number;
2653
- leadCounts: Partial<Record<"rejected" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "won", number>> | null;
2653
+ leadCounts: Partial<Record<"rejected" | "contacted" | "viewed" | "replied" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "won", number>> | null;
2654
2654
  filters: {
2655
2655
  keywords: {
2656
2656
  includes: string | null;
@@ -2752,11 +2752,11 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2752
2752
  timezone: string | null;
2753
2753
  };
2754
2754
  status?: "error" | "active" | "paused" | "draft" | undefined;
2755
+ biddingDelayInMinutes?: number | undefined;
2755
2756
  boostingEnabled?: boolean | null | undefined;
2756
2757
  maximumBoost?: number | null | undefined;
2757
2758
  minBoost?: number | null | undefined;
2758
2759
  boostingThreshold?: number | null | undefined;
2759
- biddingDelayInMinutes?: number | undefined;
2760
2760
  };
2761
2761
  bidder: {
2762
2762
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.260",
3
+ "version": "1.2.261",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",