lancer-shared 1.2.259 → 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;
@@ -1690,12 +1690,13 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1690
1690
  biddedAt: z.ZodNullable<z.ZodNumber>;
1691
1691
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
1692
1692
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
1693
+ inQueue: z.ZodNullable<z.ZodBoolean>;
1694
+ biddingDelayInMinutes: z.ZodNullable<z.ZodNumber>;
1693
1695
  wonAmount: z.ZodOptional<z.ZodNumber>;
1694
1696
  feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
1695
1697
  bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
1696
1698
  rejectedFeedback: z.ZodNullable<z.ZodString>;
1697
1699
  applicationId: z.ZodNullable<z.ZodString>;
1698
- campaignName: z.ZodOptional<z.ZodString>;
1699
1700
  }>, "processed">, "strip", z.ZodTypeAny, {
1700
1701
  id: string | null;
1701
1702
  title: string | null;
@@ -1715,6 +1716,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1715
1716
  datetime: number | null;
1716
1717
  campaignId: string;
1717
1718
  organizationId: string;
1719
+ inQueue: boolean | null;
1718
1720
  createdAt: number | null;
1719
1721
  updatedAt: number | null;
1720
1722
  isFeatured: boolean | null;
@@ -1799,7 +1801,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1799
1801
  question: string;
1800
1802
  }[] | null;
1801
1803
  agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
1802
- 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;
1803
1805
  biddingAmount: number | null;
1804
1806
  boosted: boolean | null;
1805
1807
  boostingAmount: number | null;
@@ -1808,6 +1810,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1808
1810
  biddedAt: number | null;
1809
1811
  biddingTaskScheduled: boolean | null;
1810
1812
  scheduledBiddingTime: number | null;
1813
+ biddingDelayInMinutes: number | null;
1811
1814
  feedbackCheckTaskId: string | null;
1812
1815
  bidDecision: "rejected" | "proceeded" | null;
1813
1816
  rejectedFeedback: string | null;
@@ -1834,7 +1837,6 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1834
1837
  } | null | undefined;
1835
1838
  proposalId?: string | undefined;
1836
1839
  wonAmount?: number | undefined;
1837
- campaignName?: string | undefined;
1838
1840
  }, {
1839
1841
  id: string | null;
1840
1842
  title: string | null;
@@ -1854,6 +1856,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1854
1856
  datetime: number | null;
1855
1857
  campaignId: string;
1856
1858
  organizationId: string;
1859
+ inQueue: boolean | null;
1857
1860
  createdAt: number | null;
1858
1861
  updatedAt: number | null;
1859
1862
  isFeatured: boolean | null;
@@ -1938,7 +1941,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1938
1941
  question: string;
1939
1942
  }[] | null;
1940
1943
  agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
1941
- 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;
1942
1945
  biddingAmount: number | null;
1943
1946
  boosted: boolean | null;
1944
1947
  boostingAmount: number | null;
@@ -1947,6 +1950,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1947
1950
  biddedAt: number | null;
1948
1951
  biddingTaskScheduled: boolean | null;
1949
1952
  scheduledBiddingTime: number | null;
1953
+ biddingDelayInMinutes: number | null;
1950
1954
  feedbackCheckTaskId: string | null;
1951
1955
  bidDecision: "rejected" | "proceeded" | null;
1952
1956
  rejectedFeedback: string | null;
@@ -1973,7 +1977,6 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1973
1977
  } | null | undefined;
1974
1978
  proposalId?: string | undefined;
1975
1979
  wonAmount?: number | undefined;
1976
- campaignName?: string | undefined;
1977
1980
  }>;
1978
1981
  bidder: z.ZodObject<{
1979
1982
  id: z.ZodString;
@@ -2163,6 +2166,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2163
2166
  datetime: number | null;
2164
2167
  campaignId: string;
2165
2168
  organizationId: string;
2169
+ inQueue: boolean | null;
2166
2170
  createdAt: number | null;
2167
2171
  updatedAt: number | null;
2168
2172
  isFeatured: boolean | null;
@@ -2247,7 +2251,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2247
2251
  question: string;
2248
2252
  }[] | null;
2249
2253
  agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
2250
- 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;
2251
2255
  biddingAmount: number | null;
2252
2256
  boosted: boolean | null;
2253
2257
  boostingAmount: number | null;
@@ -2256,6 +2260,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2256
2260
  biddedAt: number | null;
2257
2261
  biddingTaskScheduled: boolean | null;
2258
2262
  scheduledBiddingTime: number | null;
2263
+ biddingDelayInMinutes: number | null;
2259
2264
  feedbackCheckTaskId: string | null;
2260
2265
  bidDecision: "rejected" | "proceeded" | null;
2261
2266
  rejectedFeedback: string | null;
@@ -2282,7 +2287,6 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2282
2287
  } | null | undefined;
2283
2288
  proposalId?: string | undefined;
2284
2289
  wonAmount?: number | undefined;
2285
- campaignName?: string | undefined;
2286
2290
  };
2287
2291
  campaign: {
2288
2292
  id: string;
@@ -2295,7 +2299,8 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2295
2299
  };
2296
2300
  createdAt: number;
2297
2301
  updatedAt: number;
2298
- 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;
2299
2304
  filters: {
2300
2305
  keywords: {
2301
2306
  includes: string | null;
@@ -2365,7 +2370,6 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2365
2370
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
2366
2371
  monthlyBudget: number | null;
2367
2372
  boostingThreshold: number | null;
2368
- biddingDelayInMinutes: number;
2369
2373
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
2370
2374
  biddingFixedHourlyRate: number | null;
2371
2375
  biddingHourlyRatePercentage: number | null;
@@ -2513,6 +2517,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2513
2517
  datetime: number | null;
2514
2518
  campaignId: string;
2515
2519
  organizationId: string;
2520
+ inQueue: boolean | null;
2516
2521
  createdAt: number | null;
2517
2522
  updatedAt: number | null;
2518
2523
  isFeatured: boolean | null;
@@ -2597,7 +2602,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2597
2602
  question: string;
2598
2603
  }[] | null;
2599
2604
  agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
2600
- 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;
2601
2606
  biddingAmount: number | null;
2602
2607
  boosted: boolean | null;
2603
2608
  boostingAmount: number | null;
@@ -2606,6 +2611,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2606
2611
  biddedAt: number | null;
2607
2612
  biddingTaskScheduled: boolean | null;
2608
2613
  scheduledBiddingTime: number | null;
2614
+ biddingDelayInMinutes: number | null;
2609
2615
  feedbackCheckTaskId: string | null;
2610
2616
  bidDecision: "rejected" | "proceeded" | null;
2611
2617
  rejectedFeedback: string | null;
@@ -2632,7 +2638,6 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2632
2638
  } | null | undefined;
2633
2639
  proposalId?: string | undefined;
2634
2640
  wonAmount?: number | undefined;
2635
- campaignName?: string | undefined;
2636
2641
  };
2637
2642
  campaign: {
2638
2643
  id: string;
@@ -2645,7 +2650,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2645
2650
  };
2646
2651
  createdAt: number;
2647
2652
  updatedAt: number;
2648
- 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;
2649
2654
  filters: {
2650
2655
  keywords: {
2651
2656
  includes: string | null;
@@ -2747,11 +2752,11 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2747
2752
  timezone: string | null;
2748
2753
  };
2749
2754
  status?: "error" | "active" | "paused" | "draft" | undefined;
2755
+ biddingDelayInMinutes?: number | undefined;
2750
2756
  boostingEnabled?: boolean | null | undefined;
2751
2757
  maximumBoost?: number | null | undefined;
2752
2758
  minBoost?: number | null | undefined;
2753
2759
  boostingThreshold?: number | null | undefined;
2754
- biddingDelayInMinutes?: number | undefined;
2755
2760
  };
2756
2761
  bidder: {
2757
2762
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.259",
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",