@internxt/sdk 1.17.12 → 1.17.13

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.
@@ -30,6 +30,7 @@ export declare class Payments {
30
30
  clientSecret: string;
31
31
  }>;
32
32
  updateWorkspaceMembers(workspaceId: string, subscriptionId: string, updatedSeats: number): Promise<unknown>;
33
+ applyCancellationTrial(subscriptionId: string): Promise<void>;
33
34
  cancelSubscription(userType?: UserType): Promise<void>;
34
35
  updateCustomerBillingInfo(payload: CustomerBillingInfo): Promise<void>;
35
36
  /**
@@ -88,6 +88,9 @@ class Payments {
88
88
  workspaceUpdatedSeats: updatedSeats,
89
89
  }, this.headers());
90
90
  }
91
+ applyCancellationTrial(subscriptionId) {
92
+ return this.client.post('/customer/cancellation-trial', { subscriptionId }, this.headers());
93
+ }
91
94
  cancelSubscription(userType) {
92
95
  const query = new URLSearchParams();
93
96
  if (userType)
@@ -59,6 +59,12 @@ export declare enum UserType {
59
59
  Individual = "individual",
60
60
  Business = "business"
61
61
  }
62
+ export type Commitment = {
63
+ enabled: boolean;
64
+ remainingMonths?: number;
65
+ cancellationDate?: string;
66
+ isElegibleForCancellation?: boolean;
67
+ };
62
68
  export type StoragePlan = {
63
69
  planId: string;
64
70
  productId: string;
@@ -71,11 +77,9 @@ export type StoragePlan = {
71
77
  isTeam: boolean;
72
78
  isLifetime: boolean;
73
79
  renewalPeriod: RenewalPeriod;
74
- commitment: {
75
- enabled: boolean;
76
- isFirstMonth?: boolean;
77
- remainingMonths?: number;
78
- cancellationDate?: string | null;
80
+ commitment: Commitment;
81
+ cancellationTrial: {
82
+ redeemed: boolean;
79
83
  };
80
84
  storageLimit: number;
81
85
  amountOfSeats: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@internxt/sdk",
3
3
  "author": "Internxt <hello@internxt.com>",
4
- "version": "1.17.12",
4
+ "version": "1.17.13",
5
5
  "description": "An sdk for interacting with Internxt's services",
6
6
  "repository": {
7
7
  "type": "git",