lancer-shared 1.2.189 → 1.2.191

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 (25) hide show
  1. package/dist/bundle.cjs.js +278 -33
  2. package/dist/schemas/bidder/bid.d.ts +71 -14
  3. package/dist/schemas/bidder/exceptions/boost-above-max-connects.exception.d.ts +5 -0
  4. package/dist/schemas/bidder/exceptions/index.d.ts +3 -1
  5. package/dist/schemas/campaign/campaign-analytics.d.ts +360 -72
  6. package/dist/schemas/campaign/campaign-chat-bot.d.ts +11 -11
  7. package/dist/schemas/campaign/campaign.d.ts +232 -48
  8. package/dist/schemas/campaign/sequence/budget-node.d.ts +294 -0
  9. package/dist/schemas/campaign/sequence/client-size-node.d.ts +10 -10
  10. package/dist/schemas/campaign/sequence/client-spent-node.d.ts +18 -18
  11. package/dist/schemas/campaign/sequence/edges.d.ts +12 -0
  12. package/dist/schemas/campaign/sequence/fixed-budget-node.d.ts +91 -0
  13. package/dist/schemas/campaign/sequence/hire-rate-node.d.ts +18 -18
  14. package/dist/schemas/campaign/sequence/hourly-budget-node.d.ts +91 -0
  15. package/dist/schemas/campaign/sequence/hourly-rate-node.d.ts +18 -18
  16. package/dist/schemas/campaign/sequence/index.d.ts +4 -0
  17. package/dist/schemas/campaign/sequence/node-types.d.ts +1 -1
  18. package/dist/schemas/campaign/sequence/payment-type-node.d.ts +45 -0
  19. package/dist/schemas/campaign/sequence/payment-type.d.ts +45 -0
  20. package/dist/schemas/campaign/sequence/rating-node.d.ts +91 -0
  21. package/dist/schemas/campaign/sequence/start-node.d.ts +16 -0
  22. package/dist/schemas/campaign/sequence/suitability-node.d.ts +18 -18
  23. package/dist/schemas/scraper/scrape-payload.d.ts +113 -37
  24. package/dist/utils/timezones.d.ts +4 -3
  25. package/package.json +1 -1
@@ -6,76 +6,76 @@ export declare const createSuitabilityFormSchema: (existingRanges: {
6
6
  }[]) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
7
7
  from: z.ZodNumber;
8
8
  to: z.ZodNumber;
9
- action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "suitabilityNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode"]>;
9
+ action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode", "paymentTypeNode"]>;
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  from: number;
12
12
  to: number;
13
- action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode";
13
+ action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
14
14
  }, {
15
15
  from: number;
16
16
  to: number;
17
- action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode";
17
+ action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
18
18
  }>, {
19
19
  from: number;
20
20
  to: number;
21
- action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode";
21
+ action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
22
22
  }, {
23
23
  from: number;
24
24
  to: number;
25
- action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode";
25
+ action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
26
26
  }>, {
27
27
  from: number;
28
28
  to: number;
29
- action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode";
29
+ action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
30
30
  }, {
31
31
  from: number;
32
32
  to: number;
33
- action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode";
33
+ action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
34
34
  }>, {
35
35
  from: number;
36
36
  to: number;
37
- action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode";
37
+ action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
38
38
  }, {
39
39
  from: number;
40
40
  to: number;
41
- action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode";
41
+ action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
42
42
  }>;
43
43
  export declare const addFromSuitabilityNodeFormSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
44
44
  from: z.ZodNumber;
45
45
  to: z.ZodNumber;
46
- action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "suitabilityNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode"]>;
46
+ action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode", "paymentTypeNode"]>;
47
47
  }, "strip", z.ZodTypeAny, {
48
48
  from: number;
49
49
  to: number;
50
- action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode";
50
+ action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
51
51
  }, {
52
52
  from: number;
53
53
  to: number;
54
- action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode";
54
+ action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
55
55
  }>, {
56
56
  from: number;
57
57
  to: number;
58
- action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode";
58
+ action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
59
59
  }, {
60
60
  from: number;
61
61
  to: number;
62
- action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode";
62
+ action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
63
63
  }>, {
64
64
  from: number;
65
65
  to: number;
66
- action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode";
66
+ action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
67
67
  }, {
68
68
  from: number;
69
69
  to: number;
70
- action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode";
70
+ action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
71
71
  }>, {
72
72
  from: number;
73
73
  to: number;
74
- action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode";
74
+ action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
75
75
  }, {
76
76
  from: number;
77
77
  to: number;
78
- action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode";
78
+ action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
79
79
  }>;
80
80
  export type AddFromSuitabilityNodeFormData = z.infer<typeof addFromSuitabilityNodeFormSchema>;
81
81
  export interface SuitabilityNodeData {
@@ -658,6 +658,9 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
658
658
  confirmedBillingAt: import("zod").ZodNullable<import("zod").ZodNumber>;
659
659
  boostingEnabled: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodBoolean>>;
660
660
  maximumBoost: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
661
+ boostDownToNthPlace: import("zod").ZodNullable<import("zod").ZodNumber>;
662
+ connectsAbovePrevious: import("zod").ZodNullable<import("zod").ZodNumber>;
663
+ insufficeintBoostConnectsAction: import("zod").ZodEnum<["skip", "bid_without_boost"]>;
661
664
  monthlyBudget: import("zod").ZodNullable<import("zod").ZodNumber>;
662
665
  boostingThreshold: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
663
666
  biddingDelayInMinutes: import("zod").ZodDefault<import("zod").ZodNumber>;
@@ -665,10 +668,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
665
668
  biddingFixedHourlyRate: import("zod").ZodNullable<import("zod").ZodNumber>;
666
669
  biddingHourlyRatePercentage: import("zod").ZodNullable<import("zod").ZodNumber>;
667
670
  bidWithWarning: import("zod").ZodEnum<["bid", "skip"]>;
668
- sleepEnabled: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodBoolean>>;
669
- sleepStartAtHour: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
670
- sleepEndAtHour: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
671
- sleepTimezone: import("zod").ZodNullable<import("zod").ZodString>;
672
671
  leadCounts: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>, import("zod").ZodNumber>>;
673
672
  expenses: import("zod").ZodObject<{
674
673
  biddingAmount: import("zod").ZodDefault<import("zod").ZodNumber>;
@@ -724,13 +723,50 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
724
723
  }>>;
725
724
  organizationProfileId: import("zod").ZodNullable<import("zod").ZodString>;
726
725
  lastSyncedProposalsAt: import("zod").ZodNullable<import("zod").ZodNumber>;
727
- limits: import("zod").ZodNullable<import("zod").ZodObject<{
728
- maxDailyProposalsSent: import("zod").ZodNullable<import("zod").ZodNumber>;
726
+ limits: import("zod").ZodObject<{
727
+ maxDailyProposalsSent: import("zod").ZodNumber;
728
+ enabled: import("zod").ZodBoolean;
729
+ windowAnchorAt: import("zod").ZodNullable<import("zod").ZodNumber>;
729
730
  }, "strip", import("zod").ZodTypeAny, {
730
- maxDailyProposalsSent: number | null;
731
+ maxDailyProposalsSent: number;
732
+ enabled: boolean;
733
+ windowAnchorAt: number | null;
731
734
  }, {
732
- maxDailyProposalsSent: number | null;
733
- }>>;
735
+ maxDailyProposalsSent: number;
736
+ enabled: boolean;
737
+ windowAnchorAt: number | null;
738
+ }>;
739
+ workTime: import("zod").ZodObject<{
740
+ enabled: import("zod").ZodBoolean;
741
+ days: import("zod").ZodArray<import("zod").ZodEnum<["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]>, "many">;
742
+ timeBlocks: import("zod").ZodArray<import("zod").ZodObject<{
743
+ fromHour: import("zod").ZodNumber;
744
+ toHour: import("zod").ZodNumber;
745
+ }, "strip", import("zod").ZodTypeAny, {
746
+ fromHour: number;
747
+ toHour: number;
748
+ }, {
749
+ fromHour: number;
750
+ toHour: number;
751
+ }>, "many">;
752
+ timezone: import("zod").ZodNullable<import("zod").ZodString>;
753
+ }, "strip", import("zod").ZodTypeAny, {
754
+ enabled: boolean;
755
+ days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
756
+ timeBlocks: {
757
+ fromHour: number;
758
+ toHour: number;
759
+ }[];
760
+ timezone: string | null;
761
+ }, {
762
+ enabled: boolean;
763
+ days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
764
+ timeBlocks: {
765
+ fromHour: number;
766
+ toHour: number;
767
+ }[];
768
+ timezone: string | null;
769
+ }>;
734
770
  }, "strip", import("zod").ZodTypeAny, {
735
771
  id: string;
736
772
  name: string;
@@ -791,17 +827,16 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
791
827
  confirmedBillingAt: number | null;
792
828
  boostingEnabled: boolean | null;
793
829
  maximumBoost: number | null;
830
+ boostDownToNthPlace: number | null;
831
+ connectsAbovePrevious: number | null;
832
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
794
833
  monthlyBudget: number | null;
795
834
  boostingThreshold: number | null;
796
835
  biddingDelayInMinutes: number;
797
836
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
798
837
  biddingFixedHourlyRate: number | null;
799
838
  biddingHourlyRatePercentage: number | null;
800
- bidWithWarning: "bid" | "skip";
801
- sleepEnabled: boolean | null;
802
- sleepStartAtHour: number | null;
803
- sleepEndAtHour: number | null;
804
- sleepTimezone: string | null;
839
+ bidWithWarning: "skip" | "bid";
805
840
  leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won", number>> | null;
806
841
  expenses: {
807
842
  biddingAmount: number;
@@ -827,8 +862,19 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
827
862
  organizationProfileId: string | null;
828
863
  lastSyncedProposalsAt: number | null;
829
864
  limits: {
830
- maxDailyProposalsSent: number | null;
831
- } | null;
865
+ maxDailyProposalsSent: number;
866
+ enabled: boolean;
867
+ windowAnchorAt: number | null;
868
+ };
869
+ workTime: {
870
+ enabled: boolean;
871
+ days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
872
+ timeBlocks: {
873
+ fromHour: number;
874
+ toHour: number;
875
+ }[];
876
+ timezone: string | null;
877
+ };
832
878
  status?: "active" | "draft" | "paused" | "error" | undefined;
833
879
  }, {
834
880
  id: string;
@@ -888,12 +934,14 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
888
934
  createdAt: number;
889
935
  updatedAt: number;
890
936
  confirmedBillingAt: number | null;
937
+ boostDownToNthPlace: number | null;
938
+ connectsAbovePrevious: number | null;
939
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
891
940
  monthlyBudget: number | null;
892
941
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
893
942
  biddingFixedHourlyRate: number | null;
894
943
  biddingHourlyRatePercentage: number | null;
895
- bidWithWarning: "bid" | "skip";
896
- sleepTimezone: string | null;
944
+ bidWithWarning: "skip" | "bid";
897
945
  leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won", number>> | null;
898
946
  expenses: {
899
947
  biddingAmount?: number | undefined;
@@ -919,16 +967,24 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
919
967
  organizationProfileId: string | null;
920
968
  lastSyncedProposalsAt: number | null;
921
969
  limits: {
922
- maxDailyProposalsSent: number | null;
923
- } | null;
970
+ maxDailyProposalsSent: number;
971
+ enabled: boolean;
972
+ windowAnchorAt: number | null;
973
+ };
974
+ workTime: {
975
+ enabled: boolean;
976
+ days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
977
+ timeBlocks: {
978
+ fromHour: number;
979
+ toHour: number;
980
+ }[];
981
+ timezone: string | null;
982
+ };
924
983
  status?: "active" | "draft" | "paused" | "error" | undefined;
925
984
  boostingEnabled?: boolean | null | undefined;
926
985
  maximumBoost?: number | null | undefined;
927
986
  boostingThreshold?: number | null | undefined;
928
987
  biddingDelayInMinutes?: number | undefined;
929
- sleepEnabled?: boolean | null | undefined;
930
- sleepStartAtHour?: number | null | undefined;
931
- sleepEndAtHour?: number | null | undefined;
932
988
  }>;
933
989
  organization: import("zod").ZodObject<{
934
990
  id: import("zod").ZodString;
@@ -2029,17 +2085,16 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2029
2085
  confirmedBillingAt: number | null;
2030
2086
  boostingEnabled: boolean | null;
2031
2087
  maximumBoost: number | null;
2088
+ boostDownToNthPlace: number | null;
2089
+ connectsAbovePrevious: number | null;
2090
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
2032
2091
  monthlyBudget: number | null;
2033
2092
  boostingThreshold: number | null;
2034
2093
  biddingDelayInMinutes: number;
2035
2094
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
2036
2095
  biddingFixedHourlyRate: number | null;
2037
2096
  biddingHourlyRatePercentage: number | null;
2038
- bidWithWarning: "bid" | "skip";
2039
- sleepEnabled: boolean | null;
2040
- sleepStartAtHour: number | null;
2041
- sleepEndAtHour: number | null;
2042
- sleepTimezone: string | null;
2097
+ bidWithWarning: "skip" | "bid";
2043
2098
  leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won", number>> | null;
2044
2099
  expenses: {
2045
2100
  biddingAmount: number;
@@ -2065,8 +2120,19 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2065
2120
  organizationProfileId: string | null;
2066
2121
  lastSyncedProposalsAt: number | null;
2067
2122
  limits: {
2068
- maxDailyProposalsSent: number | null;
2069
- } | null;
2123
+ maxDailyProposalsSent: number;
2124
+ enabled: boolean;
2125
+ windowAnchorAt: number | null;
2126
+ };
2127
+ workTime: {
2128
+ enabled: boolean;
2129
+ days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
2130
+ timeBlocks: {
2131
+ fromHour: number;
2132
+ toHour: number;
2133
+ }[];
2134
+ timezone: string | null;
2135
+ };
2070
2136
  status?: "active" | "draft" | "paused" | "error" | undefined;
2071
2137
  };
2072
2138
  organization: {
@@ -2354,12 +2420,14 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2354
2420
  createdAt: number;
2355
2421
  updatedAt: number;
2356
2422
  confirmedBillingAt: number | null;
2423
+ boostDownToNthPlace: number | null;
2424
+ connectsAbovePrevious: number | null;
2425
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
2357
2426
  monthlyBudget: number | null;
2358
2427
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
2359
2428
  biddingFixedHourlyRate: number | null;
2360
2429
  biddingHourlyRatePercentage: number | null;
2361
- bidWithWarning: "bid" | "skip";
2362
- sleepTimezone: string | null;
2430
+ bidWithWarning: "skip" | "bid";
2363
2431
  leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won", number>> | null;
2364
2432
  expenses: {
2365
2433
  biddingAmount?: number | undefined;
@@ -2385,16 +2453,24 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2385
2453
  organizationProfileId: string | null;
2386
2454
  lastSyncedProposalsAt: number | null;
2387
2455
  limits: {
2388
- maxDailyProposalsSent: number | null;
2389
- } | null;
2456
+ maxDailyProposalsSent: number;
2457
+ enabled: boolean;
2458
+ windowAnchorAt: number | null;
2459
+ };
2460
+ workTime: {
2461
+ enabled: boolean;
2462
+ days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
2463
+ timeBlocks: {
2464
+ fromHour: number;
2465
+ toHour: number;
2466
+ }[];
2467
+ timezone: string | null;
2468
+ };
2390
2469
  status?: "active" | "draft" | "paused" | "error" | undefined;
2391
2470
  boostingEnabled?: boolean | null | undefined;
2392
2471
  maximumBoost?: number | null | undefined;
2393
2472
  boostingThreshold?: number | null | undefined;
2394
2473
  biddingDelayInMinutes?: number | undefined;
2395
- sleepEnabled?: boolean | null | undefined;
2396
- sleepStartAtHour?: number | null | undefined;
2397
- sleepEndAtHour?: number | null | undefined;
2398
2474
  };
2399
2475
  organization: {
2400
2476
  type: "agency" | "freelancer";
@@ -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.189",
3
+ "version": "1.2.191",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",