lancer-shared 1.2.269 → 1.2.270

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -134,6 +134,8 @@ 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;
@@ -226,6 +226,7 @@ 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"]>;
229
230
  }, "strip", z.ZodTypeAny, {
230
231
  source: "manual" | "stripe";
231
232
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -248,6 +249,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
248
249
  currentPeriodEnd: number;
249
250
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
250
251
  trialEndsAt: number | null;
252
+ billingInterval: "monthly" | "quarterly" | "yearly";
251
253
  }, {
252
254
  source: "manual" | "stripe";
253
255
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -270,6 +272,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
270
272
  currentPeriodEnd: number;
271
273
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
272
274
  trialEndsAt: number | null;
275
+ billingInterval: "monthly" | "quarterly" | "yearly";
273
276
  }>>;
274
277
  active: z.ZodBoolean;
275
278
  limits: z.ZodObject<{
@@ -867,6 +870,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
867
870
  source: z.ZodEnum<["stripe", "manual"]>;
868
871
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
869
872
  trialEndsAt: z.ZodNullable<z.ZodNumber>;
873
+ billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
870
874
  }, "strip", z.ZodTypeAny, {
871
875
  source: "manual" | "stripe";
872
876
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -889,6 +893,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
889
893
  currentPeriodEnd: number;
890
894
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
891
895
  trialEndsAt: number | null;
896
+ billingInterval: "monthly" | "quarterly" | "yearly";
892
897
  }, {
893
898
  source: "manual" | "stripe";
894
899
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -911,6 +916,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
911
916
  currentPeriodEnd: number;
912
917
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
913
918
  trialEndsAt: number | null;
919
+ billingInterval: "monthly" | "quarterly" | "yearly";
914
920
  }>>;
915
921
  active: z.ZodBoolean;
916
922
  limits: z.ZodObject<{
@@ -1938,6 +1944,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
1938
1944
  source: z.ZodEnum<["stripe", "manual"]>;
1939
1945
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
1940
1946
  trialEndsAt: z.ZodNullable<z.ZodNumber>;
1947
+ billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
1941
1948
  }, "strip", z.ZodTypeAny, {
1942
1949
  source: "manual" | "stripe";
1943
1950
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -1960,6 +1967,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
1960
1967
  currentPeriodEnd: number;
1961
1968
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
1962
1969
  trialEndsAt: number | null;
1970
+ billingInterval: "monthly" | "quarterly" | "yearly";
1963
1971
  }, {
1964
1972
  source: "manual" | "stripe";
1965
1973
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -1982,6 +1990,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
1982
1990
  currentPeriodEnd: number;
1983
1991
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
1984
1992
  trialEndsAt: number | null;
1993
+ billingInterval: "monthly" | "quarterly" | "yearly";
1985
1994
  }>>;
1986
1995
  active: z.ZodBoolean;
1987
1996
  limits: z.ZodObject<{
@@ -3009,6 +3018,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3009
3018
  source: z.ZodEnum<["stripe", "manual"]>;
3010
3019
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
3011
3020
  trialEndsAt: z.ZodNullable<z.ZodNumber>;
3021
+ billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
3012
3022
  }, "strip", z.ZodTypeAny, {
3013
3023
  source: "manual" | "stripe";
3014
3024
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -3031,6 +3041,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3031
3041
  currentPeriodEnd: number;
3032
3042
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
3033
3043
  trialEndsAt: number | null;
3044
+ billingInterval: "monthly" | "quarterly" | "yearly";
3034
3045
  }, {
3035
3046
  source: "manual" | "stripe";
3036
3047
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -3053,6 +3064,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3053
3064
  currentPeriodEnd: number;
3054
3065
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
3055
3066
  trialEndsAt: number | null;
3067
+ billingInterval: "monthly" | "quarterly" | "yearly";
3056
3068
  }>>;
3057
3069
  active: z.ZodBoolean;
3058
3070
  limits: z.ZodObject<{
@@ -4077,6 +4089,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4077
4089
  source: z.ZodEnum<["stripe", "manual"]>;
4078
4090
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
4079
4091
  trialEndsAt: z.ZodNullable<z.ZodNumber>;
4092
+ billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
4080
4093
  }, "strip", z.ZodTypeAny, {
4081
4094
  source: "manual" | "stripe";
4082
4095
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -4099,6 +4112,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4099
4112
  currentPeriodEnd: number;
4100
4113
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
4101
4114
  trialEndsAt: number | null;
4115
+ billingInterval: "monthly" | "quarterly" | "yearly";
4102
4116
  }, {
4103
4117
  source: "manual" | "stripe";
4104
4118
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -4121,6 +4135,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4121
4135
  currentPeriodEnd: number;
4122
4136
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
4123
4137
  trialEndsAt: number | null;
4138
+ billingInterval: "monthly" | "quarterly" | "yearly";
4124
4139
  }>>;
4125
4140
  active: z.ZodBoolean;
4126
4141
  limits: z.ZodObject<{
@@ -4717,6 +4732,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4717
4732
  source: z.ZodEnum<["stripe", "manual"]>;
4718
4733
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
4719
4734
  trialEndsAt: z.ZodNullable<z.ZodNumber>;
4735
+ billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
4720
4736
  }, "strip", z.ZodTypeAny, {
4721
4737
  source: "manual" | "stripe";
4722
4738
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -4739,6 +4755,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4739
4755
  currentPeriodEnd: number;
4740
4756
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
4741
4757
  trialEndsAt: number | null;
4758
+ billingInterval: "monthly" | "quarterly" | "yearly";
4742
4759
  }, {
4743
4760
  source: "manual" | "stripe";
4744
4761
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -4761,6 +4778,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4761
4778
  currentPeriodEnd: number;
4762
4779
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
4763
4780
  trialEndsAt: number | null;
4781
+ billingInterval: "monthly" | "quarterly" | "yearly";
4764
4782
  }>>;
4765
4783
  active: z.ZodBoolean;
4766
4784
  limits: z.ZodObject<{
@@ -5787,6 +5805,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5787
5805
  source: z.ZodEnum<["stripe", "manual"]>;
5788
5806
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
5789
5807
  trialEndsAt: z.ZodNullable<z.ZodNumber>;
5808
+ billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
5790
5809
  }, "strip", z.ZodTypeAny, {
5791
5810
  source: "manual" | "stripe";
5792
5811
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -5809,6 +5828,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5809
5828
  currentPeriodEnd: number;
5810
5829
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
5811
5830
  trialEndsAt: number | null;
5831
+ billingInterval: "monthly" | "quarterly" | "yearly";
5812
5832
  }, {
5813
5833
  source: "manual" | "stripe";
5814
5834
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -5831,6 +5851,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5831
5851
  currentPeriodEnd: number;
5832
5852
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
5833
5853
  trialEndsAt: number | null;
5854
+ billingInterval: "monthly" | "quarterly" | "yearly";
5834
5855
  }>>;
5835
5856
  active: z.ZodBoolean;
5836
5857
  limits: z.ZodObject<{
@@ -6857,6 +6878,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6857
6878
  source: z.ZodEnum<["stripe", "manual"]>;
6858
6879
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
6859
6880
  trialEndsAt: z.ZodNullable<z.ZodNumber>;
6881
+ billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
6860
6882
  }, "strip", z.ZodTypeAny, {
6861
6883
  source: "manual" | "stripe";
6862
6884
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -6879,6 +6901,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6879
6901
  currentPeriodEnd: number;
6880
6902
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
6881
6903
  trialEndsAt: number | null;
6904
+ billingInterval: "monthly" | "quarterly" | "yearly";
6882
6905
  }, {
6883
6906
  source: "manual" | "stripe";
6884
6907
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -6901,6 +6924,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6901
6924
  currentPeriodEnd: number;
6902
6925
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
6903
6926
  trialEndsAt: number | null;
6927
+ billingInterval: "monthly" | "quarterly" | "yearly";
6904
6928
  }>>;
6905
6929
  active: z.ZodBoolean;
6906
6930
  limits: z.ZodObject<{
@@ -151,6 +151,7 @@ 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"]>;
154
155
  }, "strip", z.ZodTypeAny, {
155
156
  source: "manual" | "stripe";
156
157
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -173,6 +174,7 @@ export declare const organizationSchema: z.ZodObject<{
173
174
  currentPeriodEnd: number;
174
175
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
175
176
  trialEndsAt: number | null;
177
+ billingInterval: "monthly" | "quarterly" | "yearly";
176
178
  }, {
177
179
  source: "manual" | "stripe";
178
180
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -195,6 +197,7 @@ export declare const organizationSchema: z.ZodObject<{
195
197
  currentPeriodEnd: number;
196
198
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
197
199
  trialEndsAt: number | null;
200
+ billingInterval: "monthly" | "quarterly" | "yearly";
198
201
  }>>;
199
202
  active: z.ZodBoolean;
200
203
  limits: z.ZodObject<{
@@ -328,6 +331,7 @@ export declare const organizationSchema: z.ZodObject<{
328
331
  currentPeriodEnd: number;
329
332
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
330
333
  trialEndsAt: number | null;
334
+ billingInterval: "monthly" | "quarterly" | "yearly";
331
335
  } | null;
332
336
  limits: {
333
337
  monthlyCredits: number;
@@ -386,6 +390,7 @@ export declare const organizationSchema: z.ZodObject<{
386
390
  currentPeriodEnd: number;
387
391
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
388
392
  trialEndsAt: number | null;
393
+ billingInterval: "monthly" | "quarterly" | "yearly";
389
394
  } | null;
390
395
  limits: {
391
396
  monthlyCredits: number;
@@ -722,6 +727,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
722
727
  source: z.ZodEnum<["stripe", "manual"]>;
723
728
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
724
729
  trialEndsAt: z.ZodNullable<z.ZodNumber>;
730
+ billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
725
731
  }, "strip", z.ZodTypeAny, {
726
732
  source: "manual" | "stripe";
727
733
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -744,6 +750,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
744
750
  currentPeriodEnd: number;
745
751
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
746
752
  trialEndsAt: number | null;
753
+ billingInterval: "monthly" | "quarterly" | "yearly";
747
754
  }, {
748
755
  source: "manual" | "stripe";
749
756
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -766,6 +773,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
766
773
  currentPeriodEnd: number;
767
774
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
768
775
  trialEndsAt: number | null;
776
+ billingInterval: "monthly" | "quarterly" | "yearly";
769
777
  }>>;
770
778
  active: z.ZodBoolean;
771
779
  limits: z.ZodObject<{
@@ -1008,15 +1016,18 @@ export declare const organizationSettingsSchema: z.ZodObject<{
1008
1016
  export declare const subscribePayloadSchema: z.ZodObject<{
1009
1017
  planId: z.ZodString;
1010
1018
  toltReferral: z.ZodOptional<z.ZodString>;
1011
- couponCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1019
+ promoCode: z.ZodOptional<z.ZodString>;
1020
+ billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
1012
1021
  }, "strip", z.ZodTypeAny, {
1013
1022
  planId: string;
1023
+ billingInterval: "monthly" | "quarterly" | "yearly";
1014
1024
  toltReferral?: string | undefined;
1015
- couponCode?: string | null | undefined;
1025
+ promoCode?: string | undefined;
1016
1026
  }, {
1017
1027
  planId: string;
1028
+ billingInterval: "monthly" | "quarterly" | "yearly";
1018
1029
  toltReferral?: string | undefined;
1019
- couponCode?: string | null | undefined;
1030
+ promoCode?: string | undefined;
1020
1031
  }>;
1021
1032
  export interface OneTimePayment extends z.infer<typeof oneTimePaymentSchema> {
1022
1033
  }
@@ -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,7 @@ 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"]>;
147
149
  }, "strip", z.ZodTypeAny, {
148
150
  source: "manual" | "stripe";
149
151
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -166,6 +168,7 @@ export declare const subscriptionSchema: z.ZodObject<{
166
168
  currentPeriodEnd: number;
167
169
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
168
170
  trialEndsAt: number | null;
171
+ billingInterval: "monthly" | "quarterly" | "yearly";
169
172
  }, {
170
173
  source: "manual" | "stripe";
171
174
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
@@ -188,6 +191,7 @@ export declare const subscriptionSchema: z.ZodObject<{
188
191
  currentPeriodEnd: number;
189
192
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
190
193
  trialEndsAt: number | null;
194
+ billingInterval: "monthly" | "quarterly" | "yearly";
191
195
  }>;
192
196
  export type SubscriptionStatus = z.infer<typeof subscriptionStatusEnum>;
193
197
  export interface SubscriptionStripeMetadataItem extends infer<typeof subscriptionStripeMetadataItemSchema> {
@@ -196,3 +200,4 @@ export interface SubscriptionStripeMetadata extends infer<typeof subscriptionStr
196
200
  }
197
201
  export interface Subscription extends infer<typeof subscriptionSchema> {
198
202
  }
203
+ export type BillingInterval = z.infer<typeof billingIntervalEnum>;
@@ -45,6 +45,128 @@ export declare const planFeatureSchema: z.ZodObject<{
45
45
  description: string;
46
46
  tooltipContent: string | null;
47
47
  }>;
48
+ export declare const planPricingIntervalSchema: z.ZodObject<{
49
+ amount: z.ZodNumber;
50
+ currency: z.ZodString;
51
+ priceId: z.ZodString;
52
+ lookupKey: z.ZodString;
53
+ isLegacyPricing: z.ZodBoolean;
54
+ }, "strip", z.ZodTypeAny, {
55
+ currency: string;
56
+ amount: number;
57
+ priceId: string;
58
+ lookupKey: string;
59
+ isLegacyPricing: boolean;
60
+ }, {
61
+ currency: string;
62
+ amount: number;
63
+ priceId: string;
64
+ lookupKey: string;
65
+ isLegacyPricing: boolean;
66
+ }>;
67
+ export declare const planPricingSchema: z.ZodObject<{
68
+ monthly: z.ZodObject<{
69
+ amount: z.ZodNumber;
70
+ currency: z.ZodString;
71
+ priceId: z.ZodString;
72
+ lookupKey: z.ZodString;
73
+ isLegacyPricing: z.ZodBoolean;
74
+ }, "strip", z.ZodTypeAny, {
75
+ currency: string;
76
+ amount: number;
77
+ priceId: string;
78
+ lookupKey: string;
79
+ isLegacyPricing: boolean;
80
+ }, {
81
+ currency: string;
82
+ amount: number;
83
+ priceId: string;
84
+ lookupKey: string;
85
+ isLegacyPricing: boolean;
86
+ }>;
87
+ quarterly: z.ZodOptional<z.ZodObject<{
88
+ amount: z.ZodNumber;
89
+ currency: z.ZodString;
90
+ priceId: z.ZodString;
91
+ lookupKey: z.ZodString;
92
+ isLegacyPricing: z.ZodBoolean;
93
+ }, "strip", z.ZodTypeAny, {
94
+ currency: string;
95
+ amount: number;
96
+ priceId: string;
97
+ lookupKey: string;
98
+ isLegacyPricing: boolean;
99
+ }, {
100
+ currency: string;
101
+ amount: number;
102
+ priceId: string;
103
+ lookupKey: string;
104
+ isLegacyPricing: boolean;
105
+ }>>;
106
+ yearly: z.ZodOptional<z.ZodObject<{
107
+ amount: z.ZodNumber;
108
+ currency: z.ZodString;
109
+ priceId: z.ZodString;
110
+ lookupKey: z.ZodString;
111
+ isLegacyPricing: z.ZodBoolean;
112
+ }, "strip", z.ZodTypeAny, {
113
+ currency: string;
114
+ amount: number;
115
+ priceId: string;
116
+ lookupKey: string;
117
+ isLegacyPricing: boolean;
118
+ }, {
119
+ currency: string;
120
+ amount: number;
121
+ priceId: string;
122
+ lookupKey: string;
123
+ isLegacyPricing: boolean;
124
+ }>>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ monthly: {
127
+ currency: string;
128
+ amount: number;
129
+ priceId: string;
130
+ lookupKey: string;
131
+ isLegacyPricing: boolean;
132
+ };
133
+ quarterly?: {
134
+ currency: string;
135
+ amount: number;
136
+ priceId: string;
137
+ lookupKey: string;
138
+ isLegacyPricing: boolean;
139
+ } | undefined;
140
+ yearly?: {
141
+ currency: string;
142
+ amount: number;
143
+ priceId: string;
144
+ lookupKey: string;
145
+ isLegacyPricing: boolean;
146
+ } | undefined;
147
+ }, {
148
+ monthly: {
149
+ currency: string;
150
+ amount: number;
151
+ priceId: string;
152
+ lookupKey: string;
153
+ isLegacyPricing: boolean;
154
+ };
155
+ quarterly?: {
156
+ currency: string;
157
+ amount: number;
158
+ priceId: string;
159
+ lookupKey: string;
160
+ isLegacyPricing: boolean;
161
+ } | undefined;
162
+ yearly?: {
163
+ currency: string;
164
+ amount: number;
165
+ priceId: string;
166
+ lookupKey: string;
167
+ isLegacyPricing: boolean;
168
+ } | undefined;
169
+ }>;
48
170
  export declare const planSchema: z.ZodObject<{
49
171
  id: z.ZodString;
50
172
  name: z.ZodString;
@@ -103,6 +225,109 @@ export declare const planSchema: z.ZodObject<{
103
225
  isActive: z.ZodBoolean;
104
226
  createdAt: z.ZodNumber;
105
227
  archivedAt: z.ZodNullable<z.ZodNumber>;
228
+ pricing: z.ZodObject<{
229
+ monthly: z.ZodObject<{
230
+ amount: z.ZodNumber;
231
+ currency: z.ZodString;
232
+ priceId: z.ZodString;
233
+ lookupKey: z.ZodString;
234
+ isLegacyPricing: z.ZodBoolean;
235
+ }, "strip", z.ZodTypeAny, {
236
+ currency: string;
237
+ amount: number;
238
+ priceId: string;
239
+ lookupKey: string;
240
+ isLegacyPricing: boolean;
241
+ }, {
242
+ currency: string;
243
+ amount: number;
244
+ priceId: string;
245
+ lookupKey: string;
246
+ isLegacyPricing: boolean;
247
+ }>;
248
+ quarterly: z.ZodOptional<z.ZodObject<{
249
+ amount: z.ZodNumber;
250
+ currency: z.ZodString;
251
+ priceId: z.ZodString;
252
+ lookupKey: z.ZodString;
253
+ isLegacyPricing: z.ZodBoolean;
254
+ }, "strip", z.ZodTypeAny, {
255
+ currency: string;
256
+ amount: number;
257
+ priceId: string;
258
+ lookupKey: string;
259
+ isLegacyPricing: boolean;
260
+ }, {
261
+ currency: string;
262
+ amount: number;
263
+ priceId: string;
264
+ lookupKey: string;
265
+ isLegacyPricing: boolean;
266
+ }>>;
267
+ yearly: z.ZodOptional<z.ZodObject<{
268
+ amount: z.ZodNumber;
269
+ currency: z.ZodString;
270
+ priceId: z.ZodString;
271
+ lookupKey: z.ZodString;
272
+ isLegacyPricing: z.ZodBoolean;
273
+ }, "strip", z.ZodTypeAny, {
274
+ currency: string;
275
+ amount: number;
276
+ priceId: string;
277
+ lookupKey: string;
278
+ isLegacyPricing: boolean;
279
+ }, {
280
+ currency: string;
281
+ amount: number;
282
+ priceId: string;
283
+ lookupKey: string;
284
+ isLegacyPricing: boolean;
285
+ }>>;
286
+ }, "strip", z.ZodTypeAny, {
287
+ monthly: {
288
+ currency: string;
289
+ amount: number;
290
+ priceId: string;
291
+ lookupKey: string;
292
+ isLegacyPricing: boolean;
293
+ };
294
+ quarterly?: {
295
+ currency: string;
296
+ amount: number;
297
+ priceId: string;
298
+ lookupKey: string;
299
+ isLegacyPricing: boolean;
300
+ } | undefined;
301
+ yearly?: {
302
+ currency: string;
303
+ amount: number;
304
+ priceId: string;
305
+ lookupKey: string;
306
+ isLegacyPricing: boolean;
307
+ } | undefined;
308
+ }, {
309
+ monthly: {
310
+ currency: string;
311
+ amount: number;
312
+ priceId: string;
313
+ lookupKey: string;
314
+ isLegacyPricing: boolean;
315
+ };
316
+ quarterly?: {
317
+ currency: string;
318
+ amount: number;
319
+ priceId: string;
320
+ lookupKey: string;
321
+ isLegacyPricing: boolean;
322
+ } | undefined;
323
+ yearly?: {
324
+ currency: string;
325
+ amount: number;
326
+ priceId: string;
327
+ lookupKey: string;
328
+ isLegacyPricing: boolean;
329
+ } | undefined;
330
+ }>;
106
331
  }, "strip", z.ZodTypeAny, {
107
332
  id: string;
108
333
  name: string;
@@ -120,6 +345,29 @@ export declare const planSchema: z.ZodObject<{
120
345
  price: number;
121
346
  createdAt: number;
122
347
  sortOrder: number;
348
+ pricing: {
349
+ monthly: {
350
+ currency: string;
351
+ amount: number;
352
+ priceId: string;
353
+ lookupKey: string;
354
+ isLegacyPricing: boolean;
355
+ };
356
+ quarterly?: {
357
+ currency: string;
358
+ amount: number;
359
+ priceId: string;
360
+ lookupKey: string;
361
+ isLegacyPricing: boolean;
362
+ } | undefined;
363
+ yearly?: {
364
+ currency: string;
365
+ amount: number;
366
+ priceId: string;
367
+ lookupKey: string;
368
+ isLegacyPricing: boolean;
369
+ } | undefined;
370
+ };
123
371
  isActive: boolean;
124
372
  displayName: string;
125
373
  slug: string;
@@ -146,6 +394,29 @@ export declare const planSchema: z.ZodObject<{
146
394
  price: number;
147
395
  createdAt: number;
148
396
  sortOrder: number;
397
+ pricing: {
398
+ monthly: {
399
+ currency: string;
400
+ amount: number;
401
+ priceId: string;
402
+ lookupKey: string;
403
+ isLegacyPricing: boolean;
404
+ };
405
+ quarterly?: {
406
+ currency: string;
407
+ amount: number;
408
+ priceId: string;
409
+ lookupKey: string;
410
+ isLegacyPricing: boolean;
411
+ } | undefined;
412
+ yearly?: {
413
+ currency: string;
414
+ amount: number;
415
+ priceId: string;
416
+ lookupKey: string;
417
+ isLegacyPricing: boolean;
418
+ } | undefined;
419
+ };
149
420
  isActive: boolean;
150
421
  displayName: string;
151
422
  slug: string;
@@ -161,6 +432,10 @@ export interface PlanStripeMetadata extends infer<typeof planStripeMetadataSchem
161
432
  }
162
433
  export interface PlanFeature extends infer<typeof planFeatureSchema> {
163
434
  }
435
+ export interface PlanPricingInterval extends infer<typeof planPricingIntervalSchema> {
436
+ }
437
+ export interface PlanPricing extends infer<typeof planPricingSchema> {
438
+ }
164
439
  export interface Plan extends infer<typeof planSchema> {
165
440
  }
166
441
  export type PlanSlug = z.infer<typeof planSlugEnum>;