diff --git a/package.json b/package.json index 77f62ac2..062493a2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@internxt/sdk", "author": "Internxt ", - "version": "1.9.8", + "version": "1.9.9", "description": "An sdk for interacting with Internxt's services", "repository": { "type": "git", diff --git a/src/drive/payments/types.ts b/src/drive/payments/types.ts index b46b331f..a1ad989b 100644 --- a/src/drive/payments/types.ts +++ b/src/drive/payments/types.ts @@ -145,7 +145,8 @@ export interface InvoicePayload { } export type UserSubscription = - | { type: 'free' | 'lifetime' } + | { type: 'free' } + | { type: 'lifetime'; productId?: string } | { type: 'subscription'; subscriptionId: string; @@ -155,13 +156,14 @@ export type UserSubscription = interval: 'year' | 'month'; nextPayment: number; priceId: string; + productId?: string; userType?: UserType; - planId?: string; plan?: StoragePlan; }; export interface DisplayPrice { id: string; + productId?: string; bytes: number; interval: 'year' | 'month' | 'lifetime'; amount: number; @@ -208,5 +210,6 @@ export type CreatedSubscriptionData = { export type AvailableProducts = { featuresPerService: { antivirus: boolean; + backups: boolean; }; };