diff --git a/src/commands/types.d.ts b/src/commands/types.d.ts index 11115c5ef9d..06f8a4789e5 100644 --- a/src/commands/types.d.ts +++ b/src/commands/types.d.ts @@ -4,6 +4,7 @@ import type { NetlifyAPI } from 'netlify' import type { FrameworksAPIPaths } from "../utils/frameworks-api.ts"; import StateConfig from '../utils/state-config.js' +import { Account } from "../utils/types.ts"; // eslint-disable-next-line @typescript-eslint/no-explicit-any @@ -82,22 +83,3 @@ export interface AddressInUseError extends Error { address: string port: number } - -export interface Account { - id: string; - name: string; - slug: string; - type: string; - capabilities: Record; - billing_name: string; - billing_email: string; - billing_details: string; - billing_period: string; - payment_method_id: string; - type_name: string; - type_id: string; - owner_ids: string[]; - roles_allowed: string[]; - created_at: string; - updated_at: string; -} diff --git a/src/utils/types.ts b/src/utils/types.ts index f424abcce82..98b7042a14b 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -168,16 +168,7 @@ export interface Account { name: string slug: string type: string - capabilities: { - sites: { - included: number - used: number - } - collaborators: { - included: number - used: number - } - } + capabilities: Record billing_name: string billing_email: string billing_details: string