@buildbase/sdk 0.0.15 → 0.0.16

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/index.d.ts CHANGED
@@ -21,9 +21,12 @@ interface IUser extends IDocument {
21
21
  currency: string;
22
22
  attributes?: Record<string, string | number | boolean>;
23
23
  }
24
+ type BillingInterval = 'monthly' | 'yearly' | 'quarterly';
24
25
  interface ISubscription {
25
26
  _id: string;
26
27
  subscriptionStatus: 'active' | 'trialing' | 'canceled' | 'past_due';
28
+ stripePriceId?: string;
29
+ stripeCurrentPeriodEnd?: string;
27
30
  cancelAtPeriodEnd: boolean;
28
31
  createdAt: string;
29
32
  updatedAt: string;
@@ -175,7 +178,6 @@ interface IPlanGroupVersionsResponse {
175
178
  currentVersion: IPlanGroupVersionWithPlans;
176
179
  availableVersions: IPlanGroupVersionWithPlans[];
177
180
  }
178
- type BillingInterval = 'monthly' | 'yearly' | 'quarterly';
179
181
  interface ICheckoutSessionRequest {
180
182
  planVersionId: string;
181
183
  billingInterval?: BillingInterval;