lancer-shared 1.2.161 → 1.2.162
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 +8261 -72
- package/dist/schemas/account/bidder-account.d.ts +5 -1
- package/dist/schemas/campaign/campaign-analytics.d.ts +56 -8
- package/dist/schemas/campaign/campaign-chat-bot.d.ts +3 -0
- package/dist/schemas/campaign/campaign.d.ts +36 -0
- package/dist/schemas/organization/index.d.ts +8 -4
- package/dist/schemas/organization/subscription.d.ts +4 -1
- package/dist/schemas/plan/index.d.ts +44 -42
- package/dist/schemas/scraper/scrape-payload.d.ts +27 -5
- package/dist/utils/index.d.ts +3 -2
- package/package.json +3 -1
|
@@ -199,7 +199,7 @@ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
199
199
|
updatedAt: z.ZodNumber;
|
|
200
200
|
region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
|
|
201
201
|
isProtected: z.ZodOptional<z.ZodBoolean>;
|
|
202
|
-
}, "name" | "provider" | "email" | "password" | "securityQuestionAnswer" | "assignedOrganizations" | "profilePhotoUrl" | "agencies" | "region">, {
|
|
202
|
+
}, "name" | "provider" | "email" | "password" | "securityQuestionAnswer" | "assignedOrganizations" | "multiLoginProfileId" | "proxyId" | "profilePhotoUrl" | "agencies" | "region">, {
|
|
203
203
|
proxyCountry: z.ZodNullable<z.ZodEnum<["US", "CA", "GB", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]>>;
|
|
204
204
|
}>, "strip", z.ZodTypeAny, {
|
|
205
205
|
name: string | null;
|
|
@@ -208,6 +208,8 @@ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
208
208
|
password: string;
|
|
209
209
|
securityQuestionAnswer: string | null;
|
|
210
210
|
assignedOrganizations: string[];
|
|
211
|
+
multiLoginProfileId: string | null;
|
|
212
|
+
proxyId: string | null;
|
|
211
213
|
profilePhotoUrl: string | null;
|
|
212
214
|
agencies: {
|
|
213
215
|
name: string;
|
|
@@ -227,6 +229,8 @@ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
227
229
|
password: string;
|
|
228
230
|
securityQuestionAnswer: string | null;
|
|
229
231
|
assignedOrganizations: string[];
|
|
232
|
+
multiLoginProfileId: string | null;
|
|
233
|
+
proxyId: string | null;
|
|
230
234
|
profilePhotoUrl: string | null;
|
|
231
235
|
agencies: {
|
|
232
236
|
name: string;
|
|
@@ -225,6 +225,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
225
225
|
}>;
|
|
226
226
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
227
227
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
228
|
+
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
228
229
|
}, "strip", z.ZodTypeAny, {
|
|
229
230
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
230
231
|
planId: string;
|
|
@@ -246,6 +247,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
246
247
|
};
|
|
247
248
|
source: "stripe" | "manual";
|
|
248
249
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
250
|
+
trialEndsAt: number | null;
|
|
249
251
|
}, {
|
|
250
252
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
251
253
|
planId: string;
|
|
@@ -267,6 +269,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
267
269
|
};
|
|
268
270
|
source: "stripe" | "manual";
|
|
269
271
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
272
|
+
trialEndsAt: number | null;
|
|
270
273
|
}>>;
|
|
271
274
|
active: z.ZodBoolean;
|
|
272
275
|
limits: z.ZodObject<{
|
|
@@ -321,7 +324,6 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
321
324
|
createdAt: z.ZodNumber;
|
|
322
325
|
updatedAt: z.ZodNumber;
|
|
323
326
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
324
|
-
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
325
327
|
oneTimePayments: z.ZodOptional<z.ZodObject<{
|
|
326
328
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
327
329
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -613,6 +615,10 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
613
615
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
614
616
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
615
617
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
618
|
+
sleepEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
619
|
+
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
620
|
+
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
621
|
+
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
616
622
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
617
623
|
expenses: z.ZodObject<{
|
|
618
624
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -777,6 +783,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
777
783
|
}>;
|
|
778
784
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
779
785
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
786
|
+
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
780
787
|
}, "strip", z.ZodTypeAny, {
|
|
781
788
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
782
789
|
planId: string;
|
|
@@ -798,6 +805,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
798
805
|
};
|
|
799
806
|
source: "stripe" | "manual";
|
|
800
807
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
808
|
+
trialEndsAt: number | null;
|
|
801
809
|
}, {
|
|
802
810
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
803
811
|
planId: string;
|
|
@@ -819,6 +827,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
819
827
|
};
|
|
820
828
|
source: "stripe" | "manual";
|
|
821
829
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
830
|
+
trialEndsAt: number | null;
|
|
822
831
|
}>>;
|
|
823
832
|
active: z.ZodBoolean;
|
|
824
833
|
limits: z.ZodObject<{
|
|
@@ -873,7 +882,6 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
873
882
|
createdAt: z.ZodNumber;
|
|
874
883
|
updatedAt: z.ZodNumber;
|
|
875
884
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
876
|
-
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
877
885
|
oneTimePayments: z.ZodOptional<z.ZodObject<{
|
|
878
886
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
879
887
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1165,6 +1173,10 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1165
1173
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
1166
1174
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
1167
1175
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
1176
|
+
sleepEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
1177
|
+
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1178
|
+
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1179
|
+
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
1168
1180
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
1169
1181
|
expenses: z.ZodObject<{
|
|
1170
1182
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1680,6 +1692,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1680
1692
|
}>;
|
|
1681
1693
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
1682
1694
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
1695
|
+
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
1683
1696
|
}, "strip", z.ZodTypeAny, {
|
|
1684
1697
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
1685
1698
|
planId: string;
|
|
@@ -1701,6 +1714,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1701
1714
|
};
|
|
1702
1715
|
source: "stripe" | "manual";
|
|
1703
1716
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
1717
|
+
trialEndsAt: number | null;
|
|
1704
1718
|
}, {
|
|
1705
1719
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
1706
1720
|
planId: string;
|
|
@@ -1722,6 +1736,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1722
1736
|
};
|
|
1723
1737
|
source: "stripe" | "manual";
|
|
1724
1738
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
1739
|
+
trialEndsAt: number | null;
|
|
1725
1740
|
}>>;
|
|
1726
1741
|
active: z.ZodBoolean;
|
|
1727
1742
|
limits: z.ZodObject<{
|
|
@@ -1776,7 +1791,6 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1776
1791
|
createdAt: z.ZodNumber;
|
|
1777
1792
|
updatedAt: z.ZodNumber;
|
|
1778
1793
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
1779
|
-
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
1780
1794
|
oneTimePayments: z.ZodOptional<z.ZodObject<{
|
|
1781
1795
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
1782
1796
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2068,6 +2082,10 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2068
2082
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
2069
2083
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
2070
2084
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
2085
|
+
sleepEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
2086
|
+
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2087
|
+
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2088
|
+
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
2071
2089
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
2072
2090
|
expenses: z.ZodObject<{
|
|
2073
2091
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2583,6 +2601,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
2583
2601
|
}>;
|
|
2584
2602
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
2585
2603
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
2604
|
+
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
2586
2605
|
}, "strip", z.ZodTypeAny, {
|
|
2587
2606
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
2588
2607
|
planId: string;
|
|
@@ -2604,6 +2623,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
2604
2623
|
};
|
|
2605
2624
|
source: "stripe" | "manual";
|
|
2606
2625
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
2626
|
+
trialEndsAt: number | null;
|
|
2607
2627
|
}, {
|
|
2608
2628
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
2609
2629
|
planId: string;
|
|
@@ -2625,6 +2645,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
2625
2645
|
};
|
|
2626
2646
|
source: "stripe" | "manual";
|
|
2627
2647
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
2648
|
+
trialEndsAt: number | null;
|
|
2628
2649
|
}>>;
|
|
2629
2650
|
active: z.ZodBoolean;
|
|
2630
2651
|
limits: z.ZodObject<{
|
|
@@ -2679,7 +2700,6 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
2679
2700
|
createdAt: z.ZodNumber;
|
|
2680
2701
|
updatedAt: z.ZodNumber;
|
|
2681
2702
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
2682
|
-
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
2683
2703
|
oneTimePayments: z.ZodOptional<z.ZodObject<{
|
|
2684
2704
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
2685
2705
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2971,6 +2991,10 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
2971
2991
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
2972
2992
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
2973
2993
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
2994
|
+
sleepEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
2995
|
+
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2996
|
+
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2997
|
+
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
2974
2998
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
2975
2999
|
expenses: z.ZodObject<{
|
|
2976
3000
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -3483,6 +3507,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3483
3507
|
}>;
|
|
3484
3508
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
3485
3509
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
3510
|
+
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
3486
3511
|
}, "strip", z.ZodTypeAny, {
|
|
3487
3512
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
3488
3513
|
planId: string;
|
|
@@ -3504,6 +3529,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3504
3529
|
};
|
|
3505
3530
|
source: "stripe" | "manual";
|
|
3506
3531
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
3532
|
+
trialEndsAt: number | null;
|
|
3507
3533
|
}, {
|
|
3508
3534
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
3509
3535
|
planId: string;
|
|
@@ -3525,6 +3551,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3525
3551
|
};
|
|
3526
3552
|
source: "stripe" | "manual";
|
|
3527
3553
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
3554
|
+
trialEndsAt: number | null;
|
|
3528
3555
|
}>>;
|
|
3529
3556
|
active: z.ZodBoolean;
|
|
3530
3557
|
limits: z.ZodObject<{
|
|
@@ -3579,7 +3606,6 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3579
3606
|
createdAt: z.ZodNumber;
|
|
3580
3607
|
updatedAt: z.ZodNumber;
|
|
3581
3608
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
3582
|
-
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
3583
3609
|
oneTimePayments: z.ZodOptional<z.ZodObject<{
|
|
3584
3610
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
3585
3611
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3871,6 +3897,10 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3871
3897
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
3872
3898
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
3873
3899
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
3900
|
+
sleepEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
3901
|
+
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
3902
|
+
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
3903
|
+
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
3874
3904
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
3875
3905
|
expenses: z.ZodObject<{
|
|
3876
3906
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -4034,6 +4064,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4034
4064
|
}>;
|
|
4035
4065
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
4036
4066
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
4067
|
+
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
4037
4068
|
}, "strip", z.ZodTypeAny, {
|
|
4038
4069
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
4039
4070
|
planId: string;
|
|
@@ -4055,6 +4086,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4055
4086
|
};
|
|
4056
4087
|
source: "stripe" | "manual";
|
|
4057
4088
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
4089
|
+
trialEndsAt: number | null;
|
|
4058
4090
|
}, {
|
|
4059
4091
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
4060
4092
|
planId: string;
|
|
@@ -4076,6 +4108,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4076
4108
|
};
|
|
4077
4109
|
source: "stripe" | "manual";
|
|
4078
4110
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
4111
|
+
trialEndsAt: number | null;
|
|
4079
4112
|
}>>;
|
|
4080
4113
|
active: z.ZodBoolean;
|
|
4081
4114
|
limits: z.ZodObject<{
|
|
@@ -4130,7 +4163,6 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4130
4163
|
createdAt: z.ZodNumber;
|
|
4131
4164
|
updatedAt: z.ZodNumber;
|
|
4132
4165
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
4133
|
-
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
4134
4166
|
oneTimePayments: z.ZodOptional<z.ZodObject<{
|
|
4135
4167
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
4136
4168
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4422,6 +4454,10 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4422
4454
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
4423
4455
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
4424
4456
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
4457
|
+
sleepEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
4458
|
+
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
4459
|
+
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
4460
|
+
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
4425
4461
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
4426
4462
|
expenses: z.ZodObject<{
|
|
4427
4463
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -4936,6 +4972,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4936
4972
|
}>;
|
|
4937
4973
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
4938
4974
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
4975
|
+
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
4939
4976
|
}, "strip", z.ZodTypeAny, {
|
|
4940
4977
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
4941
4978
|
planId: string;
|
|
@@ -4957,6 +4994,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4957
4994
|
};
|
|
4958
4995
|
source: "stripe" | "manual";
|
|
4959
4996
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
4997
|
+
trialEndsAt: number | null;
|
|
4960
4998
|
}, {
|
|
4961
4999
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
4962
5000
|
planId: string;
|
|
@@ -4978,6 +5016,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4978
5016
|
};
|
|
4979
5017
|
source: "stripe" | "manual";
|
|
4980
5018
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
5019
|
+
trialEndsAt: number | null;
|
|
4981
5020
|
}>>;
|
|
4982
5021
|
active: z.ZodBoolean;
|
|
4983
5022
|
limits: z.ZodObject<{
|
|
@@ -5032,7 +5071,6 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5032
5071
|
createdAt: z.ZodNumber;
|
|
5033
5072
|
updatedAt: z.ZodNumber;
|
|
5034
5073
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
5035
|
-
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
5036
5074
|
oneTimePayments: z.ZodOptional<z.ZodObject<{
|
|
5037
5075
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
5038
5076
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -5324,6 +5362,10 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5324
5362
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
5325
5363
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
5326
5364
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
5365
|
+
sleepEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
5366
|
+
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
5367
|
+
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
5368
|
+
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
5327
5369
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
5328
5370
|
expenses: z.ZodObject<{
|
|
5329
5371
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -5838,6 +5880,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5838
5880
|
}>;
|
|
5839
5881
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
5840
5882
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
5883
|
+
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
5841
5884
|
}, "strip", z.ZodTypeAny, {
|
|
5842
5885
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
5843
5886
|
planId: string;
|
|
@@ -5859,6 +5902,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5859
5902
|
};
|
|
5860
5903
|
source: "stripe" | "manual";
|
|
5861
5904
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
5905
|
+
trialEndsAt: number | null;
|
|
5862
5906
|
}, {
|
|
5863
5907
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
5864
5908
|
planId: string;
|
|
@@ -5880,6 +5924,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5880
5924
|
};
|
|
5881
5925
|
source: "stripe" | "manual";
|
|
5882
5926
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
5927
|
+
trialEndsAt: number | null;
|
|
5883
5928
|
}>>;
|
|
5884
5929
|
active: z.ZodBoolean;
|
|
5885
5930
|
limits: z.ZodObject<{
|
|
@@ -5934,7 +5979,6 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5934
5979
|
createdAt: z.ZodNumber;
|
|
5935
5980
|
updatedAt: z.ZodNumber;
|
|
5936
5981
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
5937
|
-
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
5938
5982
|
oneTimePayments: z.ZodOptional<z.ZodObject<{
|
|
5939
5983
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
5940
5984
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -6226,6 +6270,10 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6226
6270
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
6227
6271
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
6228
6272
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
6273
|
+
sleepEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
6274
|
+
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
6275
|
+
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
6276
|
+
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
6229
6277
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
6230
6278
|
expenses: z.ZodObject<{
|
|
6231
6279
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -141,18 +141,21 @@ export declare const sendNotificationRequestSchema: z.ZodObject<{
|
|
|
141
141
|
leadId: z.ZodString;
|
|
142
142
|
notificationType: z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning"]>;
|
|
143
143
|
message: z.ZodOptional<z.ZodString>;
|
|
144
|
+
isSleepModeActive: z.ZodOptional<z.ZodBoolean>;
|
|
144
145
|
}, "strip", z.ZodTypeAny, {
|
|
145
146
|
organizationId: string;
|
|
146
147
|
campaignId: string;
|
|
147
148
|
leadId: string;
|
|
148
149
|
notificationType: "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning";
|
|
149
150
|
message?: string | undefined;
|
|
151
|
+
isSleepModeActive?: boolean | undefined;
|
|
150
152
|
}, {
|
|
151
153
|
organizationId: string;
|
|
152
154
|
campaignId: string;
|
|
153
155
|
leadId: string;
|
|
154
156
|
notificationType: "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning";
|
|
155
157
|
message?: string | undefined;
|
|
158
|
+
isSleepModeActive?: boolean | undefined;
|
|
156
159
|
}>;
|
|
157
160
|
export declare const updateSuitableLeadNotificationType: z.ZodEnum<["proceeded", "feedback-provided"]>;
|
|
158
161
|
export declare const updateSuitableLeadNotificationBodySchema: z.ZodObject<{
|
|
@@ -262,6 +262,10 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
262
262
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
263
263
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
264
264
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
265
|
+
sleepEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
266
|
+
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
267
|
+
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
268
|
+
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
265
269
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
266
270
|
expenses: z.ZodObject<{
|
|
267
271
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -381,6 +385,10 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
381
385
|
biddingFixedHourlyRate: number | null;
|
|
382
386
|
biddingHourlyRatePercentage: number | null;
|
|
383
387
|
bidWithWarning: "bid" | "skip";
|
|
388
|
+
sleepEnabled: boolean | null;
|
|
389
|
+
sleepStartAtHour: number | null;
|
|
390
|
+
sleepEndAtHour: number | null;
|
|
391
|
+
sleepTimezone: string | null;
|
|
384
392
|
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
|
|
385
393
|
expenses: {
|
|
386
394
|
biddingAmount: number;
|
|
@@ -466,6 +474,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
466
474
|
biddingFixedHourlyRate: number | null;
|
|
467
475
|
biddingHourlyRatePercentage: number | null;
|
|
468
476
|
bidWithWarning: "bid" | "skip";
|
|
477
|
+
sleepTimezone: string | null;
|
|
469
478
|
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
|
|
470
479
|
expenses: {
|
|
471
480
|
biddingAmount?: number | undefined;
|
|
@@ -493,6 +502,9 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
493
502
|
maximumBoost?: number | null | undefined;
|
|
494
503
|
boostingThreshold?: number | null | undefined;
|
|
495
504
|
biddingDelayInMinutes?: number | undefined;
|
|
505
|
+
sleepEnabled?: boolean | null | undefined;
|
|
506
|
+
sleepStartAtHour?: number | null | undefined;
|
|
507
|
+
sleepEndAtHour?: number | null | undefined;
|
|
496
508
|
}>;
|
|
497
509
|
export declare const upworkAccountConnectStatusSchema: z.ZodUnion<[z.ZodLiteral<"processing">, z.ZodLiteral<"connected">, z.ZodLiteral<"failed">, z.ZodLiteral<"reconnecting">, z.ZodLiteral<"reconnected">, z.ZodLiteral<"reconnect_failed">]>;
|
|
498
510
|
export declare const upworkAccountConnectSchema: z.ZodObject<{
|
|
@@ -755,6 +767,10 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
755
767
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
756
768
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
757
769
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
770
|
+
sleepEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
771
|
+
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
772
|
+
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
773
|
+
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
758
774
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
759
775
|
expenses: z.ZodObject<{
|
|
760
776
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -871,6 +887,10 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
871
887
|
biddingFixedHourlyRate: number | null;
|
|
872
888
|
biddingHourlyRatePercentage: number | null;
|
|
873
889
|
bidWithWarning: "bid" | "skip";
|
|
890
|
+
sleepEnabled: boolean | null;
|
|
891
|
+
sleepStartAtHour: number | null;
|
|
892
|
+
sleepEndAtHour: number | null;
|
|
893
|
+
sleepTimezone: string | null;
|
|
874
894
|
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
|
|
875
895
|
expenses: {
|
|
876
896
|
biddingAmount: number;
|
|
@@ -947,6 +967,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
947
967
|
biddingFixedHourlyRate: number | null;
|
|
948
968
|
biddingHourlyRatePercentage: number | null;
|
|
949
969
|
bidWithWarning: "bid" | "skip";
|
|
970
|
+
sleepTimezone: string | null;
|
|
950
971
|
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
|
|
951
972
|
expenses: {
|
|
952
973
|
biddingAmount?: number | undefined;
|
|
@@ -968,6 +989,9 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
968
989
|
maximumBoost?: number | null | undefined;
|
|
969
990
|
boostingThreshold?: number | null | undefined;
|
|
970
991
|
biddingDelayInMinutes?: number | undefined;
|
|
992
|
+
sleepEnabled?: boolean | null | undefined;
|
|
993
|
+
sleepStartAtHour?: number | null | undefined;
|
|
994
|
+
sleepEndAtHour?: number | null | undefined;
|
|
971
995
|
}>;
|
|
972
996
|
export declare const updateCampaignSchema: z.ZodObject<{
|
|
973
997
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">]>>>;
|
|
@@ -1210,6 +1234,10 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1210
1234
|
biddingFixedHourlyRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1211
1235
|
biddingHourlyRatePercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1212
1236
|
bidWithWarning: z.ZodOptional<z.ZodEnum<["bid", "skip"]>>;
|
|
1237
|
+
sleepEnabled: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodBoolean>>>;
|
|
1238
|
+
sleepStartAtHour: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1239
|
+
sleepEndAtHour: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1240
|
+
sleepTimezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1213
1241
|
leadCounts: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>>;
|
|
1214
1242
|
expenses: z.ZodOptional<z.ZodObject<{
|
|
1215
1243
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1327,6 +1355,10 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1327
1355
|
biddingFixedHourlyRate?: number | null | undefined;
|
|
1328
1356
|
biddingHourlyRatePercentage?: number | null | undefined;
|
|
1329
1357
|
bidWithWarning?: "bid" | "skip" | undefined;
|
|
1358
|
+
sleepEnabled?: boolean | null | undefined;
|
|
1359
|
+
sleepStartAtHour?: number | null | undefined;
|
|
1360
|
+
sleepEndAtHour?: number | null | undefined;
|
|
1361
|
+
sleepTimezone?: string | null | undefined;
|
|
1330
1362
|
leadCounts?: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null | undefined;
|
|
1331
1363
|
expenses?: {
|
|
1332
1364
|
biddingAmount: number;
|
|
@@ -1414,6 +1446,10 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1414
1446
|
biddingFixedHourlyRate?: number | null | undefined;
|
|
1415
1447
|
biddingHourlyRatePercentage?: number | null | undefined;
|
|
1416
1448
|
bidWithWarning?: "bid" | "skip" | undefined;
|
|
1449
|
+
sleepEnabled?: boolean | null | undefined;
|
|
1450
|
+
sleepStartAtHour?: number | null | undefined;
|
|
1451
|
+
sleepEndAtHour?: number | null | undefined;
|
|
1452
|
+
sleepTimezone?: string | null | undefined;
|
|
1417
1453
|
leadCounts?: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null | undefined;
|
|
1418
1454
|
expenses?: {
|
|
1419
1455
|
biddingAmount?: number | undefined;
|
|
@@ -150,6 +150,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
150
150
|
}>;
|
|
151
151
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
152
152
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
153
|
+
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
153
154
|
}, "strip", z.ZodTypeAny, {
|
|
154
155
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
155
156
|
planId: string;
|
|
@@ -171,6 +172,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
171
172
|
};
|
|
172
173
|
source: "stripe" | "manual";
|
|
173
174
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
175
|
+
trialEndsAt: number | null;
|
|
174
176
|
}, {
|
|
175
177
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
176
178
|
planId: string;
|
|
@@ -192,6 +194,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
192
194
|
};
|
|
193
195
|
source: "stripe" | "manual";
|
|
194
196
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
197
|
+
trialEndsAt: number | null;
|
|
195
198
|
}>>;
|
|
196
199
|
active: z.ZodBoolean;
|
|
197
200
|
limits: z.ZodObject<{
|
|
@@ -246,7 +249,6 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
246
249
|
createdAt: z.ZodNumber;
|
|
247
250
|
updatedAt: z.ZodNumber;
|
|
248
251
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
249
|
-
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
250
252
|
oneTimePayments: z.ZodOptional<z.ZodObject<{
|
|
251
253
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
252
254
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -316,6 +318,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
316
318
|
};
|
|
317
319
|
source: "stripe" | "manual";
|
|
318
320
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
321
|
+
trialEndsAt: number | null;
|
|
319
322
|
} | null;
|
|
320
323
|
limits: {
|
|
321
324
|
monthlyCredits: number;
|
|
@@ -335,7 +338,6 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
335
338
|
createdAt: number;
|
|
336
339
|
updatedAt: number;
|
|
337
340
|
openRouterApiKey: string | null;
|
|
338
|
-
appTrialEndsAt: number | null;
|
|
339
341
|
oneTimePayments?: {
|
|
340
342
|
usBidderAccountPayment?: {
|
|
341
343
|
status: string;
|
|
@@ -373,6 +375,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
373
375
|
};
|
|
374
376
|
source: "stripe" | "manual";
|
|
375
377
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
378
|
+
trialEndsAt: number | null;
|
|
376
379
|
} | null;
|
|
377
380
|
limits: {
|
|
378
381
|
monthlyCredits: number;
|
|
@@ -392,7 +395,6 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
392
395
|
createdAt: number;
|
|
393
396
|
updatedAt: number;
|
|
394
397
|
openRouterApiKey: string | null;
|
|
395
|
-
appTrialEndsAt: number | null;
|
|
396
398
|
oneTimePayments?: {
|
|
397
399
|
usBidderAccountPayment?: {
|
|
398
400
|
status: string;
|
|
@@ -573,6 +575,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
573
575
|
}>;
|
|
574
576
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
575
577
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
578
|
+
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
576
579
|
}, "strip", z.ZodTypeAny, {
|
|
577
580
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
578
581
|
planId: string;
|
|
@@ -594,6 +597,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
594
597
|
};
|
|
595
598
|
source: "stripe" | "manual";
|
|
596
599
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
600
|
+
trialEndsAt: number | null;
|
|
597
601
|
}, {
|
|
598
602
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
599
603
|
planId: string;
|
|
@@ -615,6 +619,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
615
619
|
};
|
|
616
620
|
source: "stripe" | "manual";
|
|
617
621
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
622
|
+
trialEndsAt: number | null;
|
|
618
623
|
}>>;
|
|
619
624
|
active: z.ZodBoolean;
|
|
620
625
|
limits: z.ZodObject<{
|
|
@@ -669,7 +674,6 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
669
674
|
createdAt: z.ZodNumber;
|
|
670
675
|
updatedAt: z.ZodNumber;
|
|
671
676
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
672
|
-
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
673
677
|
oneTimePayments: z.ZodOptional<z.ZodObject<{
|
|
674
678
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
675
679
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { infer, z } from
|
|
1
|
+
import { infer, z } from 'zod';
|
|
2
2
|
export declare const subscriptionStatusEnum: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
|
|
3
3
|
export declare const subscriptionSourceEnum: z.ZodEnum<["stripe", "manual"]>;
|
|
4
4
|
export declare const subscriptionStripeMetadataItemSchema: z.ZodObject<{
|
|
@@ -143,6 +143,7 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
143
143
|
}>;
|
|
144
144
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
145
145
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
146
|
+
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
146
147
|
}, "strip", z.ZodTypeAny, {
|
|
147
148
|
stripe: {
|
|
148
149
|
id: string;
|
|
@@ -164,6 +165,7 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
164
165
|
currentPeriodEnd: number;
|
|
165
166
|
source: "stripe" | "manual";
|
|
166
167
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
168
|
+
trialEndsAt: number | null;
|
|
167
169
|
}, {
|
|
168
170
|
stripe: {
|
|
169
171
|
id: string;
|
|
@@ -185,6 +187,7 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
185
187
|
currentPeriodEnd: number;
|
|
186
188
|
source: "stripe" | "manual";
|
|
187
189
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
190
|
+
trialEndsAt: number | null;
|
|
188
191
|
}>;
|
|
189
192
|
export type SubscriptionStatus = z.infer<typeof subscriptionStatusEnum>;
|
|
190
193
|
export interface SubscriptionStripeMetadataItem extends infer<typeof subscriptionStripeMetadataItemSchema> {
|