lancer-shared 1.2.269 → 1.2.271
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 +26 -3
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +24 -4
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +3 -1
- package/dist/schemas/campaign/campaign-analytics.d.ts +80 -8
- package/dist/schemas/organization/index.d.ts +34 -7
- package/dist/schemas/organization/subscription.d.ts +11 -0
- package/dist/schemas/plan/index.d.ts +275 -0
- package/dist/schemas/scraper/scrape-payload.d.ts +26 -5
- package/package.json +1 -1
|
@@ -134,13 +134,15 @@ export declare const ROUTES: {
|
|
|
134
134
|
readonly BASE: (id: string) => string;
|
|
135
135
|
readonly BY_ID: (id: string, memberId: string) => string;
|
|
136
136
|
};
|
|
137
|
+
readonly CHECK_PROMO_CODE: (id: string) => string;
|
|
138
|
+
readonly STRIPE_PORTAL: (id: string) => string;
|
|
137
139
|
readonly UPDATE_LEADS_STATUS: (id: string) => string;
|
|
138
140
|
readonly SETTINGS: (id: string) => string;
|
|
139
141
|
readonly CHARGES: (id: string) => string;
|
|
140
142
|
readonly PAYMENT_METHODS: (id: string) => string;
|
|
141
143
|
readonly TRACK_USAGE: (id: string) => string;
|
|
142
144
|
readonly SUBSCRIBE: (id: string) => string;
|
|
143
|
-
readonly
|
|
145
|
+
readonly SUBSCRIBE_US_BIDDER_ACCOUNT: (id: string) => string;
|
|
144
146
|
readonly PAUSE_CAMPAIGNS: (id: string) => string;
|
|
145
147
|
readonly BIDDER_ACCOUNTS: {
|
|
146
148
|
readonly BASE: (id: string) => string;
|
|
@@ -226,6 +226,9 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
226
226
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
227
227
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
228
228
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
229
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
230
|
+
hasUsBidderAccess: z.ZodNullable<z.ZodBoolean>;
|
|
231
|
+
usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
|
|
229
232
|
}, "strip", z.ZodTypeAny, {
|
|
230
233
|
source: "manual" | "stripe";
|
|
231
234
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -248,6 +251,9 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
248
251
|
currentPeriodEnd: number;
|
|
249
252
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
250
253
|
trialEndsAt: number | null;
|
|
254
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
255
|
+
hasUsBidderAccess: boolean | null;
|
|
256
|
+
usBidderSubscriptionItemId: string | null;
|
|
251
257
|
}, {
|
|
252
258
|
source: "manual" | "stripe";
|
|
253
259
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -270,6 +276,9 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
270
276
|
currentPeriodEnd: number;
|
|
271
277
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
272
278
|
trialEndsAt: number | null;
|
|
279
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
280
|
+
hasUsBidderAccess: boolean | null;
|
|
281
|
+
usBidderSubscriptionItemId: string | null;
|
|
273
282
|
}>>;
|
|
274
283
|
active: z.ZodBoolean;
|
|
275
284
|
limits: z.ZodObject<{
|
|
@@ -325,7 +334,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
325
334
|
updatedAt: z.ZodNumber;
|
|
326
335
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
327
336
|
nextProposalStatusSyncTime: z.ZodNullable<z.ZodNumber>;
|
|
328
|
-
|
|
337
|
+
usBidderAccountSubscription: z.ZodOptional<z.ZodObject<{
|
|
329
338
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
330
339
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
331
340
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -867,6 +876,9 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
867
876
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
868
877
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
869
878
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
879
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
880
|
+
hasUsBidderAccess: z.ZodNullable<z.ZodBoolean>;
|
|
881
|
+
usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
|
|
870
882
|
}, "strip", z.ZodTypeAny, {
|
|
871
883
|
source: "manual" | "stripe";
|
|
872
884
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -889,6 +901,9 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
889
901
|
currentPeriodEnd: number;
|
|
890
902
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
891
903
|
trialEndsAt: number | null;
|
|
904
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
905
|
+
hasUsBidderAccess: boolean | null;
|
|
906
|
+
usBidderSubscriptionItemId: string | null;
|
|
892
907
|
}, {
|
|
893
908
|
source: "manual" | "stripe";
|
|
894
909
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -911,6 +926,9 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
911
926
|
currentPeriodEnd: number;
|
|
912
927
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
913
928
|
trialEndsAt: number | null;
|
|
929
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
930
|
+
hasUsBidderAccess: boolean | null;
|
|
931
|
+
usBidderSubscriptionItemId: string | null;
|
|
914
932
|
}>>;
|
|
915
933
|
active: z.ZodBoolean;
|
|
916
934
|
limits: z.ZodObject<{
|
|
@@ -966,7 +984,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
966
984
|
updatedAt: z.ZodNumber;
|
|
967
985
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
968
986
|
nextProposalStatusSyncTime: z.ZodNullable<z.ZodNumber>;
|
|
969
|
-
|
|
987
|
+
usBidderAccountSubscription: z.ZodOptional<z.ZodObject<{
|
|
970
988
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
971
989
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
972
990
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1938,6 +1956,9 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1938
1956
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
1939
1957
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
1940
1958
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
1959
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
1960
|
+
hasUsBidderAccess: z.ZodNullable<z.ZodBoolean>;
|
|
1961
|
+
usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
|
|
1941
1962
|
}, "strip", z.ZodTypeAny, {
|
|
1942
1963
|
source: "manual" | "stripe";
|
|
1943
1964
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -1960,6 +1981,9 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1960
1981
|
currentPeriodEnd: number;
|
|
1961
1982
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
1962
1983
|
trialEndsAt: number | null;
|
|
1984
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
1985
|
+
hasUsBidderAccess: boolean | null;
|
|
1986
|
+
usBidderSubscriptionItemId: string | null;
|
|
1963
1987
|
}, {
|
|
1964
1988
|
source: "manual" | "stripe";
|
|
1965
1989
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -1982,6 +2006,9 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1982
2006
|
currentPeriodEnd: number;
|
|
1983
2007
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
1984
2008
|
trialEndsAt: number | null;
|
|
2009
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
2010
|
+
hasUsBidderAccess: boolean | null;
|
|
2011
|
+
usBidderSubscriptionItemId: string | null;
|
|
1985
2012
|
}>>;
|
|
1986
2013
|
active: z.ZodBoolean;
|
|
1987
2014
|
limits: z.ZodObject<{
|
|
@@ -2037,7 +2064,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2037
2064
|
updatedAt: z.ZodNumber;
|
|
2038
2065
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
2039
2066
|
nextProposalStatusSyncTime: z.ZodNullable<z.ZodNumber>;
|
|
2040
|
-
|
|
2067
|
+
usBidderAccountSubscription: z.ZodOptional<z.ZodObject<{
|
|
2041
2068
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
2042
2069
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
2043
2070
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3009,6 +3036,9 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3009
3036
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
3010
3037
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
3011
3038
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
3039
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
3040
|
+
hasUsBidderAccess: z.ZodNullable<z.ZodBoolean>;
|
|
3041
|
+
usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
|
|
3012
3042
|
}, "strip", z.ZodTypeAny, {
|
|
3013
3043
|
source: "manual" | "stripe";
|
|
3014
3044
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -3031,6 +3061,9 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3031
3061
|
currentPeriodEnd: number;
|
|
3032
3062
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
3033
3063
|
trialEndsAt: number | null;
|
|
3064
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
3065
|
+
hasUsBidderAccess: boolean | null;
|
|
3066
|
+
usBidderSubscriptionItemId: string | null;
|
|
3034
3067
|
}, {
|
|
3035
3068
|
source: "manual" | "stripe";
|
|
3036
3069
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -3053,6 +3086,9 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3053
3086
|
currentPeriodEnd: number;
|
|
3054
3087
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
3055
3088
|
trialEndsAt: number | null;
|
|
3089
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
3090
|
+
hasUsBidderAccess: boolean | null;
|
|
3091
|
+
usBidderSubscriptionItemId: string | null;
|
|
3056
3092
|
}>>;
|
|
3057
3093
|
active: z.ZodBoolean;
|
|
3058
3094
|
limits: z.ZodObject<{
|
|
@@ -3108,7 +3144,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3108
3144
|
updatedAt: z.ZodNumber;
|
|
3109
3145
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
3110
3146
|
nextProposalStatusSyncTime: z.ZodNullable<z.ZodNumber>;
|
|
3111
|
-
|
|
3147
|
+
usBidderAccountSubscription: z.ZodOptional<z.ZodObject<{
|
|
3112
3148
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
3113
3149
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
3114
3150
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4077,6 +4113,9 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4077
4113
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
4078
4114
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
4079
4115
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
4116
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
4117
|
+
hasUsBidderAccess: z.ZodNullable<z.ZodBoolean>;
|
|
4118
|
+
usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
|
|
4080
4119
|
}, "strip", z.ZodTypeAny, {
|
|
4081
4120
|
source: "manual" | "stripe";
|
|
4082
4121
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -4099,6 +4138,9 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4099
4138
|
currentPeriodEnd: number;
|
|
4100
4139
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
4101
4140
|
trialEndsAt: number | null;
|
|
4141
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
4142
|
+
hasUsBidderAccess: boolean | null;
|
|
4143
|
+
usBidderSubscriptionItemId: string | null;
|
|
4102
4144
|
}, {
|
|
4103
4145
|
source: "manual" | "stripe";
|
|
4104
4146
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -4121,6 +4163,9 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4121
4163
|
currentPeriodEnd: number;
|
|
4122
4164
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
4123
4165
|
trialEndsAt: number | null;
|
|
4166
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
4167
|
+
hasUsBidderAccess: boolean | null;
|
|
4168
|
+
usBidderSubscriptionItemId: string | null;
|
|
4124
4169
|
}>>;
|
|
4125
4170
|
active: z.ZodBoolean;
|
|
4126
4171
|
limits: z.ZodObject<{
|
|
@@ -4176,7 +4221,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4176
4221
|
updatedAt: z.ZodNumber;
|
|
4177
4222
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
4178
4223
|
nextProposalStatusSyncTime: z.ZodNullable<z.ZodNumber>;
|
|
4179
|
-
|
|
4224
|
+
usBidderAccountSubscription: z.ZodOptional<z.ZodObject<{
|
|
4180
4225
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
4181
4226
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
4182
4227
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4717,6 +4762,9 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4717
4762
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
4718
4763
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
4719
4764
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
4765
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
4766
|
+
hasUsBidderAccess: z.ZodNullable<z.ZodBoolean>;
|
|
4767
|
+
usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
|
|
4720
4768
|
}, "strip", z.ZodTypeAny, {
|
|
4721
4769
|
source: "manual" | "stripe";
|
|
4722
4770
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -4739,6 +4787,9 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4739
4787
|
currentPeriodEnd: number;
|
|
4740
4788
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
4741
4789
|
trialEndsAt: number | null;
|
|
4790
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
4791
|
+
hasUsBidderAccess: boolean | null;
|
|
4792
|
+
usBidderSubscriptionItemId: string | null;
|
|
4742
4793
|
}, {
|
|
4743
4794
|
source: "manual" | "stripe";
|
|
4744
4795
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -4761,6 +4812,9 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4761
4812
|
currentPeriodEnd: number;
|
|
4762
4813
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
4763
4814
|
trialEndsAt: number | null;
|
|
4815
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
4816
|
+
hasUsBidderAccess: boolean | null;
|
|
4817
|
+
usBidderSubscriptionItemId: string | null;
|
|
4764
4818
|
}>>;
|
|
4765
4819
|
active: z.ZodBoolean;
|
|
4766
4820
|
limits: z.ZodObject<{
|
|
@@ -4816,7 +4870,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4816
4870
|
updatedAt: z.ZodNumber;
|
|
4817
4871
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
4818
4872
|
nextProposalStatusSyncTime: z.ZodNullable<z.ZodNumber>;
|
|
4819
|
-
|
|
4873
|
+
usBidderAccountSubscription: z.ZodOptional<z.ZodObject<{
|
|
4820
4874
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
4821
4875
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
4822
4876
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -5787,6 +5841,9 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5787
5841
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
5788
5842
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
5789
5843
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
5844
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
5845
|
+
hasUsBidderAccess: z.ZodNullable<z.ZodBoolean>;
|
|
5846
|
+
usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
|
|
5790
5847
|
}, "strip", z.ZodTypeAny, {
|
|
5791
5848
|
source: "manual" | "stripe";
|
|
5792
5849
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -5809,6 +5866,9 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5809
5866
|
currentPeriodEnd: number;
|
|
5810
5867
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
5811
5868
|
trialEndsAt: number | null;
|
|
5869
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
5870
|
+
hasUsBidderAccess: boolean | null;
|
|
5871
|
+
usBidderSubscriptionItemId: string | null;
|
|
5812
5872
|
}, {
|
|
5813
5873
|
source: "manual" | "stripe";
|
|
5814
5874
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -5831,6 +5891,9 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5831
5891
|
currentPeriodEnd: number;
|
|
5832
5892
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
5833
5893
|
trialEndsAt: number | null;
|
|
5894
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
5895
|
+
hasUsBidderAccess: boolean | null;
|
|
5896
|
+
usBidderSubscriptionItemId: string | null;
|
|
5834
5897
|
}>>;
|
|
5835
5898
|
active: z.ZodBoolean;
|
|
5836
5899
|
limits: z.ZodObject<{
|
|
@@ -5886,7 +5949,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5886
5949
|
updatedAt: z.ZodNumber;
|
|
5887
5950
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
5888
5951
|
nextProposalStatusSyncTime: z.ZodNullable<z.ZodNumber>;
|
|
5889
|
-
|
|
5952
|
+
usBidderAccountSubscription: z.ZodOptional<z.ZodObject<{
|
|
5890
5953
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
5891
5954
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
5892
5955
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -6857,6 +6920,9 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6857
6920
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
6858
6921
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
6859
6922
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
6923
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
6924
|
+
hasUsBidderAccess: z.ZodNullable<z.ZodBoolean>;
|
|
6925
|
+
usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
|
|
6860
6926
|
}, "strip", z.ZodTypeAny, {
|
|
6861
6927
|
source: "manual" | "stripe";
|
|
6862
6928
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -6879,6 +6945,9 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6879
6945
|
currentPeriodEnd: number;
|
|
6880
6946
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
6881
6947
|
trialEndsAt: number | null;
|
|
6948
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
6949
|
+
hasUsBidderAccess: boolean | null;
|
|
6950
|
+
usBidderSubscriptionItemId: string | null;
|
|
6882
6951
|
}, {
|
|
6883
6952
|
source: "manual" | "stripe";
|
|
6884
6953
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -6901,6 +6970,9 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6901
6970
|
currentPeriodEnd: number;
|
|
6902
6971
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
6903
6972
|
trialEndsAt: number | null;
|
|
6973
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
6974
|
+
hasUsBidderAccess: boolean | null;
|
|
6975
|
+
usBidderSubscriptionItemId: string | null;
|
|
6904
6976
|
}>>;
|
|
6905
6977
|
active: z.ZodBoolean;
|
|
6906
6978
|
limits: z.ZodObject<{
|
|
@@ -6956,7 +7028,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6956
7028
|
updatedAt: z.ZodNumber;
|
|
6957
7029
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
6958
7030
|
nextProposalStatusSyncTime: z.ZodNullable<z.ZodNumber>;
|
|
6959
|
-
|
|
7031
|
+
usBidderAccountSubscription: z.ZodOptional<z.ZodObject<{
|
|
6960
7032
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
6961
7033
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
6962
7034
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -151,6 +151,9 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
151
151
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
152
152
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
153
153
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
154
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
155
|
+
hasUsBidderAccess: z.ZodNullable<z.ZodBoolean>;
|
|
156
|
+
usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
|
|
154
157
|
}, "strip", z.ZodTypeAny, {
|
|
155
158
|
source: "manual" | "stripe";
|
|
156
159
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -173,6 +176,9 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
173
176
|
currentPeriodEnd: number;
|
|
174
177
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
175
178
|
trialEndsAt: number | null;
|
|
179
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
180
|
+
hasUsBidderAccess: boolean | null;
|
|
181
|
+
usBidderSubscriptionItemId: string | null;
|
|
176
182
|
}, {
|
|
177
183
|
source: "manual" | "stripe";
|
|
178
184
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -195,6 +201,9 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
195
201
|
currentPeriodEnd: number;
|
|
196
202
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
197
203
|
trialEndsAt: number | null;
|
|
204
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
205
|
+
hasUsBidderAccess: boolean | null;
|
|
206
|
+
usBidderSubscriptionItemId: string | null;
|
|
198
207
|
}>>;
|
|
199
208
|
active: z.ZodBoolean;
|
|
200
209
|
limits: z.ZodObject<{
|
|
@@ -250,7 +259,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
250
259
|
updatedAt: z.ZodNumber;
|
|
251
260
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
252
261
|
nextProposalStatusSyncTime: z.ZodNullable<z.ZodNumber>;
|
|
253
|
-
|
|
262
|
+
usBidderAccountSubscription: z.ZodOptional<z.ZodObject<{
|
|
254
263
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
255
264
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
256
265
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -328,6 +337,9 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
328
337
|
currentPeriodEnd: number;
|
|
329
338
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
330
339
|
trialEndsAt: number | null;
|
|
340
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
341
|
+
hasUsBidderAccess: boolean | null;
|
|
342
|
+
usBidderSubscriptionItemId: string | null;
|
|
331
343
|
} | null;
|
|
332
344
|
limits: {
|
|
333
345
|
monthlyCredits: number;
|
|
@@ -340,7 +352,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
340
352
|
updatedAt: number;
|
|
341
353
|
openRouterApiKey: string | null;
|
|
342
354
|
nextProposalStatusSyncTime: number | null;
|
|
343
|
-
|
|
355
|
+
usBidderAccountSubscription?: {
|
|
344
356
|
usBidderAccountPayment?: {
|
|
345
357
|
status: string;
|
|
346
358
|
error?: string | undefined;
|
|
@@ -386,6 +398,9 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
386
398
|
currentPeriodEnd: number;
|
|
387
399
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
388
400
|
trialEndsAt: number | null;
|
|
401
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
402
|
+
hasUsBidderAccess: boolean | null;
|
|
403
|
+
usBidderSubscriptionItemId: string | null;
|
|
389
404
|
} | null;
|
|
390
405
|
limits: {
|
|
391
406
|
monthlyCredits: number;
|
|
@@ -398,7 +413,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
398
413
|
updatedAt: number;
|
|
399
414
|
openRouterApiKey: string | null;
|
|
400
415
|
nextProposalStatusSyncTime: number | null;
|
|
401
|
-
|
|
416
|
+
usBidderAccountSubscription?: {
|
|
402
417
|
usBidderAccountPayment?: {
|
|
403
418
|
status: string;
|
|
404
419
|
error?: string | undefined;
|
|
@@ -722,6 +737,9 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
722
737
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
723
738
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
724
739
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
740
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
741
|
+
hasUsBidderAccess: z.ZodNullable<z.ZodBoolean>;
|
|
742
|
+
usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
|
|
725
743
|
}, "strip", z.ZodTypeAny, {
|
|
726
744
|
source: "manual" | "stripe";
|
|
727
745
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -744,6 +762,9 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
744
762
|
currentPeriodEnd: number;
|
|
745
763
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
746
764
|
trialEndsAt: number | null;
|
|
765
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
766
|
+
hasUsBidderAccess: boolean | null;
|
|
767
|
+
usBidderSubscriptionItemId: string | null;
|
|
747
768
|
}, {
|
|
748
769
|
source: "manual" | "stripe";
|
|
749
770
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -766,6 +787,9 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
766
787
|
currentPeriodEnd: number;
|
|
767
788
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
768
789
|
trialEndsAt: number | null;
|
|
790
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
791
|
+
hasUsBidderAccess: boolean | null;
|
|
792
|
+
usBidderSubscriptionItemId: string | null;
|
|
769
793
|
}>>;
|
|
770
794
|
active: z.ZodBoolean;
|
|
771
795
|
limits: z.ZodObject<{
|
|
@@ -821,7 +845,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
821
845
|
updatedAt: z.ZodNumber;
|
|
822
846
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
823
847
|
nextProposalStatusSyncTime: z.ZodNullable<z.ZodNumber>;
|
|
824
|
-
|
|
848
|
+
usBidderAccountSubscription: z.ZodOptional<z.ZodObject<{
|
|
825
849
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
826
850
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
827
851
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1008,15 +1032,18 @@ export declare const organizationSettingsSchema: z.ZodObject<{
|
|
|
1008
1032
|
export declare const subscribePayloadSchema: z.ZodObject<{
|
|
1009
1033
|
planId: z.ZodString;
|
|
1010
1034
|
toltReferral: z.ZodOptional<z.ZodString>;
|
|
1011
|
-
|
|
1035
|
+
promoCode: z.ZodOptional<z.ZodString>;
|
|
1036
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
1012
1037
|
}, "strip", z.ZodTypeAny, {
|
|
1013
1038
|
planId: string;
|
|
1039
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
1014
1040
|
toltReferral?: string | undefined;
|
|
1015
|
-
|
|
1041
|
+
promoCode?: string | undefined;
|
|
1016
1042
|
}, {
|
|
1017
1043
|
planId: string;
|
|
1044
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
1018
1045
|
toltReferral?: string | undefined;
|
|
1019
|
-
|
|
1046
|
+
promoCode?: string | undefined;
|
|
1020
1047
|
}>;
|
|
1021
1048
|
export interface OneTimePayment extends z.infer<typeof oneTimePaymentSchema> {
|
|
1022
1049
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { infer, z } from 'zod';
|
|
2
|
+
export declare const billingIntervalEnum: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
2
3
|
export declare const subscriptionStatusEnum: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
|
|
3
4
|
export declare const subscriptionSourceEnum: z.ZodEnum<["stripe", "manual"]>;
|
|
4
5
|
export declare const subscriptionStripeMetadataItemSchema: z.ZodObject<{
|
|
@@ -144,6 +145,9 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
144
145
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
145
146
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
146
147
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
148
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
149
|
+
hasUsBidderAccess: z.ZodNullable<z.ZodBoolean>;
|
|
150
|
+
usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
|
|
147
151
|
}, "strip", z.ZodTypeAny, {
|
|
148
152
|
source: "manual" | "stripe";
|
|
149
153
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -166,6 +170,9 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
166
170
|
currentPeriodEnd: number;
|
|
167
171
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
168
172
|
trialEndsAt: number | null;
|
|
173
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
174
|
+
hasUsBidderAccess: boolean | null;
|
|
175
|
+
usBidderSubscriptionItemId: string | null;
|
|
169
176
|
}, {
|
|
170
177
|
source: "manual" | "stripe";
|
|
171
178
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -188,6 +195,9 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
188
195
|
currentPeriodEnd: number;
|
|
189
196
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
190
197
|
trialEndsAt: number | null;
|
|
198
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
199
|
+
hasUsBidderAccess: boolean | null;
|
|
200
|
+
usBidderSubscriptionItemId: string | null;
|
|
191
201
|
}>;
|
|
192
202
|
export type SubscriptionStatus = z.infer<typeof subscriptionStatusEnum>;
|
|
193
203
|
export interface SubscriptionStripeMetadataItem extends infer<typeof subscriptionStripeMetadataItemSchema> {
|
|
@@ -196,3 +206,4 @@ export interface SubscriptionStripeMetadata extends infer<typeof subscriptionStr
|
|
|
196
206
|
}
|
|
197
207
|
export interface Subscription extends infer<typeof subscriptionSchema> {
|
|
198
208
|
}
|
|
209
|
+
export type BillingInterval = z.infer<typeof billingIntervalEnum>;
|