lancer-shared 1.2.188 → 1.2.190

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.
Files changed (27) hide show
  1. package/dist/bundle.cjs.js +250 -28
  2. package/dist/schemas/agent/index.d.ts +5 -5
  3. package/dist/schemas/bidder/bid.d.ts +44 -44
  4. package/dist/schemas/campaign/campaign-analytics.d.ts +405 -61
  5. package/dist/schemas/campaign/campaign.d.ts +270 -45
  6. package/dist/schemas/campaign/index.d.ts +1 -0
  7. package/dist/schemas/campaign/sequence/bid-node.d.ts +6 -0
  8. package/dist/schemas/campaign/sequence/boost-node.d.ts +26 -0
  9. package/dist/schemas/campaign/sequence/client-size-node.d.ts +45 -0
  10. package/dist/schemas/campaign/sequence/client-size.d.ts +45 -0
  11. package/dist/schemas/campaign/sequence/client-spent-node.d.ts +92 -0
  12. package/dist/schemas/campaign/sequence/edges.d.ts +24 -0
  13. package/dist/schemas/campaign/sequence/hire-rate-node.d.ts +91 -0
  14. package/dist/schemas/campaign/sequence/hire-rate.d.ts +91 -0
  15. package/dist/schemas/campaign/sequence/hourly-rate-node.d.ts +91 -0
  16. package/dist/schemas/campaign/sequence/hourly-rate.d.ts +91 -0
  17. package/dist/schemas/campaign/sequence/index.d.ts +10 -0
  18. package/dist/schemas/campaign/sequence/node-types.d.ts +3 -0
  19. package/dist/schemas/campaign/sequence/rating-node.d.ts +91 -0
  20. package/dist/schemas/campaign/sequence/suitability-node.d.ts +90 -0
  21. package/dist/schemas/campaign/sequence/suitability.d.ts +90 -0
  22. package/dist/schemas/lead/index.d.ts +18 -18
  23. package/dist/schemas/lead/lead-status.d.ts +7 -7
  24. package/dist/schemas/logger/log-event.d.ts +5 -5
  25. package/dist/schemas/scraper/scrape-payload.d.ts +147 -50
  26. package/dist/utils/timezones.d.ts +4 -3
  27. package/package.json +1 -1
@@ -524,6 +524,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
524
524
  isPhoneVerified?: "all" | "true" | "false" | undefined;
525
525
  enterpriseClient?: "all" | "true" | "false" | undefined;
526
526
  }>>;
527
+ includeClientsWithZeroReviews: import("zod").ZodNullable<import("zod").ZodBoolean>;
527
528
  vendorQualifications: import("zod").ZodNullable<import("zod").ZodObject<{
528
529
  locationIncludes: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString, "many">>;
529
530
  locationExcludes: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString, "many">>;
@@ -590,6 +591,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
590
591
  memberSinceFrom: string | null;
591
592
  memberSinceTo: string | null;
592
593
  } | null;
594
+ includeClientsWithZeroReviews: boolean | null;
593
595
  vendorQualifications: {
594
596
  locationIncludes: string[] | null;
595
597
  locationExcludes: string[] | null;
@@ -640,6 +642,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
640
642
  isPhoneVerified?: "all" | "true" | "false" | undefined;
641
643
  enterpriseClient?: "all" | "true" | "false" | undefined;
642
644
  } | null;
645
+ includeClientsWithZeroReviews: boolean | null;
643
646
  vendorQualifications: {
644
647
  locationIncludes: string[] | null;
645
648
  locationExcludes: string[] | null;
@@ -662,11 +665,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
662
665
  biddingFixedHourlyRate: import("zod").ZodNullable<import("zod").ZodNumber>;
663
666
  biddingHourlyRatePercentage: import("zod").ZodNullable<import("zod").ZodNumber>;
664
667
  bidWithWarning: import("zod").ZodEnum<["bid", "skip"]>;
665
- sleepEnabled: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodBoolean>>;
666
- sleepStartAtHour: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
667
- sleepEndAtHour: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
668
- sleepTimezone: import("zod").ZodNullable<import("zod").ZodString>;
669
- leadCounts: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodEnum<["leads", "contacted", "insufficientConnects", "viewed", "replied", "won"]>, import("zod").ZodNumber>>;
668
+ leadCounts: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>, import("zod").ZodNumber>>;
670
669
  expenses: import("zod").ZodObject<{
671
670
  biddingAmount: import("zod").ZodDefault<import("zod").ZodNumber>;
672
671
  boostingAmount: import("zod").ZodDefault<import("zod").ZodNumber>;
@@ -719,6 +718,52 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
719
718
  template: string;
720
719
  instructions: string;
721
720
  }>>;
721
+ organizationProfileId: import("zod").ZodNullable<import("zod").ZodString>;
722
+ lastSyncedProposalsAt: import("zod").ZodNullable<import("zod").ZodNumber>;
723
+ limits: import("zod").ZodObject<{
724
+ maxDailyProposalsSent: import("zod").ZodNumber;
725
+ enabled: import("zod").ZodBoolean;
726
+ windowAnchorAt: import("zod").ZodNullable<import("zod").ZodNumber>;
727
+ }, "strip", import("zod").ZodTypeAny, {
728
+ maxDailyProposalsSent: number;
729
+ enabled: boolean;
730
+ windowAnchorAt: number | null;
731
+ }, {
732
+ maxDailyProposalsSent: number;
733
+ enabled: boolean;
734
+ windowAnchorAt: number | null;
735
+ }>;
736
+ workTime: import("zod").ZodObject<{
737
+ enabled: import("zod").ZodBoolean;
738
+ days: import("zod").ZodArray<import("zod").ZodEnum<["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]>, "many">;
739
+ timeBlocks: import("zod").ZodArray<import("zod").ZodObject<{
740
+ fromHour: import("zod").ZodNumber;
741
+ toHour: import("zod").ZodNumber;
742
+ }, "strip", import("zod").ZodTypeAny, {
743
+ fromHour: number;
744
+ toHour: number;
745
+ }, {
746
+ fromHour: number;
747
+ toHour: number;
748
+ }>, "many">;
749
+ timezone: import("zod").ZodNullable<import("zod").ZodString>;
750
+ }, "strip", import("zod").ZodTypeAny, {
751
+ enabled: boolean;
752
+ days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
753
+ timeBlocks: {
754
+ fromHour: number;
755
+ toHour: number;
756
+ }[];
757
+ timezone: string | null;
758
+ }, {
759
+ enabled: boolean;
760
+ days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
761
+ timeBlocks: {
762
+ fromHour: number;
763
+ toHour: number;
764
+ }[];
765
+ timezone: string | null;
766
+ }>;
722
767
  }, "strip", import("zod").ZodTypeAny, {
723
768
  id: string;
724
769
  name: string;
@@ -763,6 +808,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
763
808
  memberSinceFrom: string | null;
764
809
  memberSinceTo: string | null;
765
810
  } | null;
811
+ includeClientsWithZeroReviews: boolean | null;
766
812
  vendorQualifications: {
767
813
  locationIncludes: string[] | null;
768
814
  locationExcludes: string[] | null;
@@ -785,11 +831,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
785
831
  biddingFixedHourlyRate: number | null;
786
832
  biddingHourlyRatePercentage: number | null;
787
833
  bidWithWarning: "bid" | "skip";
788
- sleepEnabled: boolean | null;
789
- sleepStartAtHour: number | null;
790
- sleepEndAtHour: number | null;
791
- sleepTimezone: string | null;
792
- leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won", number>> | null;
834
+ leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won", number>> | null;
793
835
  expenses: {
794
836
  biddingAmount: number;
795
837
  boostingAmount: number;
@@ -811,6 +853,22 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
811
853
  template: string;
812
854
  instructions: string;
813
855
  } | null;
856
+ organizationProfileId: string | null;
857
+ lastSyncedProposalsAt: number | null;
858
+ limits: {
859
+ maxDailyProposalsSent: number;
860
+ enabled: boolean;
861
+ windowAnchorAt: number | null;
862
+ };
863
+ workTime: {
864
+ enabled: boolean;
865
+ days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
866
+ timeBlocks: {
867
+ fromHour: number;
868
+ toHour: number;
869
+ }[];
870
+ timezone: string | null;
871
+ };
814
872
  status?: "active" | "draft" | "paused" | "error" | undefined;
815
873
  }, {
816
874
  id: string;
@@ -856,6 +914,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
856
914
  isPhoneVerified?: "all" | "true" | "false" | undefined;
857
915
  enterpriseClient?: "all" | "true" | "false" | undefined;
858
916
  } | null;
917
+ includeClientsWithZeroReviews: boolean | null;
859
918
  vendorQualifications: {
860
919
  locationIncludes: string[] | null;
861
920
  locationExcludes: string[] | null;
@@ -874,8 +933,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
874
933
  biddingFixedHourlyRate: number | null;
875
934
  biddingHourlyRatePercentage: number | null;
876
935
  bidWithWarning: "bid" | "skip";
877
- sleepTimezone: string | null;
878
- leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won", number>> | null;
936
+ leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won", number>> | null;
879
937
  expenses: {
880
938
  biddingAmount?: number | undefined;
881
939
  boostingAmount?: number | undefined;
@@ -897,14 +955,27 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
897
955
  template: string;
898
956
  instructions: string;
899
957
  } | null;
958
+ organizationProfileId: string | null;
959
+ lastSyncedProposalsAt: number | null;
960
+ limits: {
961
+ maxDailyProposalsSent: number;
962
+ enabled: boolean;
963
+ windowAnchorAt: number | null;
964
+ };
965
+ workTime: {
966
+ enabled: boolean;
967
+ days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
968
+ timeBlocks: {
969
+ fromHour: number;
970
+ toHour: number;
971
+ }[];
972
+ timezone: string | null;
973
+ };
900
974
  status?: "active" | "draft" | "paused" | "error" | undefined;
901
975
  boostingEnabled?: boolean | null | undefined;
902
976
  maximumBoost?: number | null | undefined;
903
977
  boostingThreshold?: number | null | undefined;
904
978
  biddingDelayInMinutes?: number | undefined;
905
- sleepEnabled?: boolean | null | undefined;
906
- sleepStartAtHour?: number | null | undefined;
907
- sleepEndAtHour?: number | null | undefined;
908
979
  }>;
909
980
  organization: import("zod").ZodObject<{
910
981
  id: import("zod").ZodString;
@@ -1125,6 +1196,11 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1125
1196
  createdAt: number;
1126
1197
  updatedAt: number;
1127
1198
  active: boolean;
1199
+ limits: {
1200
+ monthlyCredits: number;
1201
+ usedCredits: number;
1202
+ extraCredits: number;
1203
+ };
1128
1204
  associatedBidders: string[] | null;
1129
1205
  subscription: {
1130
1206
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -1149,11 +1225,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1149
1225
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
1150
1226
  trialEndsAt: number | null;
1151
1227
  } | null;
1152
- limits: {
1153
- monthlyCredits: number;
1154
- usedCredits: number;
1155
- extraCredits: number;
1156
- };
1157
1228
  billing: {
1158
1229
  stripe: {
1159
1230
  customer: {
@@ -1183,6 +1254,11 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1183
1254
  createdAt: number;
1184
1255
  updatedAt: number;
1185
1256
  active: boolean;
1257
+ limits: {
1258
+ monthlyCredits: number;
1259
+ usedCredits: number;
1260
+ extraCredits: number;
1261
+ };
1186
1262
  associatedBidders: string[] | null;
1187
1263
  subscription: {
1188
1264
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -1207,11 +1283,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1207
1283
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
1208
1284
  trialEndsAt: number | null;
1209
1285
  } | null;
1210
- limits: {
1211
- monthlyCredits: number;
1212
- usedCredits: number;
1213
- extraCredits: number;
1214
- };
1215
1286
  billing: {
1216
1287
  stripe: {
1217
1288
  customer: {
@@ -1553,7 +1624,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1553
1624
  answer: string;
1554
1625
  }>, "many">>;
1555
1626
  agentStatus: import("zod").ZodNullable<import("zod").ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
1556
- leadStatus: import("zod").ZodNullable<import("zod").ZodEnum<["leads", "contacted", "insufficientConnects", "viewed", "replied", "won"]>>;
1627
+ leadStatus: import("zod").ZodNullable<import("zod").ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>>;
1557
1628
  biddingAmount: import("zod").ZodNullable<import("zod").ZodNumber>;
1558
1629
  boosted: import("zod").ZodNullable<import("zod").ZodBoolean>;
1559
1630
  boostingAmount: import("zod").ZodNullable<import("zod").ZodNumber>;
@@ -1670,7 +1741,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1670
1741
  answer: string;
1671
1742
  }[] | null;
1672
1743
  agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
1673
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won" | null;
1744
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
1674
1745
  biddingTaskScheduled: boolean | null;
1675
1746
  scheduledBiddingTime: number | null;
1676
1747
  feedbackCheckTaskId: string | null;
@@ -1805,7 +1876,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1805
1876
  answer: string;
1806
1877
  }[] | null;
1807
1878
  agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
1808
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won" | null;
1879
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
1809
1880
  biddingTaskScheduled: boolean | null;
1810
1881
  scheduledBiddingTime: number | null;
1811
1882
  feedbackCheckTaskId: string | null;
@@ -1989,6 +2060,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1989
2060
  memberSinceFrom: string | null;
1990
2061
  memberSinceTo: string | null;
1991
2062
  } | null;
2063
+ includeClientsWithZeroReviews: boolean | null;
1992
2064
  vendorQualifications: {
1993
2065
  locationIncludes: string[] | null;
1994
2066
  locationExcludes: string[] | null;
@@ -2011,11 +2083,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2011
2083
  biddingFixedHourlyRate: number | null;
2012
2084
  biddingHourlyRatePercentage: number | null;
2013
2085
  bidWithWarning: "bid" | "skip";
2014
- sleepEnabled: boolean | null;
2015
- sleepStartAtHour: number | null;
2016
- sleepEndAtHour: number | null;
2017
- sleepTimezone: string | null;
2018
- leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won", number>> | null;
2086
+ leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won", number>> | null;
2019
2087
  expenses: {
2020
2088
  biddingAmount: number;
2021
2089
  boostingAmount: number;
@@ -2037,6 +2105,22 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2037
2105
  template: string;
2038
2106
  instructions: string;
2039
2107
  } | null;
2108
+ organizationProfileId: string | null;
2109
+ lastSyncedProposalsAt: number | null;
2110
+ limits: {
2111
+ maxDailyProposalsSent: number;
2112
+ enabled: boolean;
2113
+ windowAnchorAt: number | null;
2114
+ };
2115
+ workTime: {
2116
+ enabled: boolean;
2117
+ days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
2118
+ timeBlocks: {
2119
+ fromHour: number;
2120
+ toHour: number;
2121
+ }[];
2122
+ timezone: string | null;
2123
+ };
2040
2124
  status?: "active" | "draft" | "paused" | "error" | undefined;
2041
2125
  };
2042
2126
  organization: {
@@ -2046,6 +2130,11 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2046
2130
  createdAt: number;
2047
2131
  updatedAt: number;
2048
2132
  active: boolean;
2133
+ limits: {
2134
+ monthlyCredits: number;
2135
+ usedCredits: number;
2136
+ extraCredits: number;
2137
+ };
2049
2138
  associatedBidders: string[] | null;
2050
2139
  subscription: {
2051
2140
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -2070,11 +2159,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2070
2159
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
2071
2160
  trialEndsAt: number | null;
2072
2161
  } | null;
2073
- limits: {
2074
- monthlyCredits: number;
2075
- usedCredits: number;
2076
- extraCredits: number;
2077
- };
2078
2162
  billing: {
2079
2163
  stripe: {
2080
2164
  customer: {
@@ -2204,7 +2288,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2204
2288
  answer: string;
2205
2289
  }[] | null;
2206
2290
  agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
2207
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won" | null;
2291
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
2208
2292
  biddingTaskScheduled: boolean | null;
2209
2293
  scheduledBiddingTime: number | null;
2210
2294
  feedbackCheckTaskId: string | null;
@@ -2310,6 +2394,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2310
2394
  isPhoneVerified?: "all" | "true" | "false" | undefined;
2311
2395
  enterpriseClient?: "all" | "true" | "false" | undefined;
2312
2396
  } | null;
2397
+ includeClientsWithZeroReviews: boolean | null;
2313
2398
  vendorQualifications: {
2314
2399
  locationIncludes: string[] | null;
2315
2400
  locationExcludes: string[] | null;
@@ -2328,8 +2413,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2328
2413
  biddingFixedHourlyRate: number | null;
2329
2414
  biddingHourlyRatePercentage: number | null;
2330
2415
  bidWithWarning: "bid" | "skip";
2331
- sleepTimezone: string | null;
2332
- leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won", number>> | null;
2416
+ leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won", number>> | null;
2333
2417
  expenses: {
2334
2418
  biddingAmount?: number | undefined;
2335
2419
  boostingAmount?: number | undefined;
@@ -2351,14 +2435,27 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2351
2435
  template: string;
2352
2436
  instructions: string;
2353
2437
  } | null;
2438
+ organizationProfileId: string | null;
2439
+ lastSyncedProposalsAt: number | null;
2440
+ limits: {
2441
+ maxDailyProposalsSent: number;
2442
+ enabled: boolean;
2443
+ windowAnchorAt: number | null;
2444
+ };
2445
+ workTime: {
2446
+ enabled: boolean;
2447
+ days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
2448
+ timeBlocks: {
2449
+ fromHour: number;
2450
+ toHour: number;
2451
+ }[];
2452
+ timezone: string | null;
2453
+ };
2354
2454
  status?: "active" | "draft" | "paused" | "error" | undefined;
2355
2455
  boostingEnabled?: boolean | null | undefined;
2356
2456
  maximumBoost?: number | null | undefined;
2357
2457
  boostingThreshold?: number | null | undefined;
2358
2458
  biddingDelayInMinutes?: number | undefined;
2359
- sleepEnabled?: boolean | null | undefined;
2360
- sleepStartAtHour?: number | null | undefined;
2361
- sleepEndAtHour?: number | null | undefined;
2362
2459
  };
2363
2460
  organization: {
2364
2461
  type: "agency" | "freelancer";
@@ -2367,6 +2464,11 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2367
2464
  createdAt: number;
2368
2465
  updatedAt: number;
2369
2466
  active: boolean;
2467
+ limits: {
2468
+ monthlyCredits: number;
2469
+ usedCredits: number;
2470
+ extraCredits: number;
2471
+ };
2370
2472
  associatedBidders: string[] | null;
2371
2473
  subscription: {
2372
2474
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -2391,11 +2493,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2391
2493
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
2392
2494
  trialEndsAt: number | null;
2393
2495
  } | null;
2394
- limits: {
2395
- monthlyCredits: number;
2396
- usedCredits: number;
2397
- extraCredits: number;
2398
- };
2399
2496
  billing: {
2400
2497
  stripe: {
2401
2498
  customer: {
@@ -2525,7 +2622,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2525
2622
  answer: string;
2526
2623
  }[] | null;
2527
2624
  agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
2528
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won" | null;
2625
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won" | null;
2529
2626
  biddingTaskScheduled: boolean | null;
2530
2627
  scheduledBiddingTime: number | null;
2531
2628
  feedbackCheckTaskId: string | null;
@@ -1,5 +1,6 @@
1
+ import { TimeBlock, WeekDays } from '../schemas';
1
2
  export declare const convertToUtc: (sleepTimezone: string, sleepStartAtHour: number, sleepEndAtHour: number) => {
2
- sleepStartAt: string | null;
3
- sleepEndAt: string | null;
3
+ from: string;
4
+ to: string;
4
5
  };
5
- export declare const isSleepTime: (sleepTimezone: string, sleepStartAtHour: number, sleepEndAtHour: number) => boolean;
6
+ export declare const isWorkTime: (workTimezone: string, workTimeBlocks: TimeBlock[], workDays: WeekDays[]) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.188",
3
+ "version": "1.2.190",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",