Skip to content

Commit

Permalink
chore: add types for accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahetter committed Dec 7, 2024
1 parent d6aa48f commit fae7b5c
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/commands/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export type EnvironmentVariables = Record<string, { sources: EnvironmentVariable
* The netlify object inside each command with the state
*/
export type NetlifyOptions = {
accounts: $TSFixMe
accounts: Account[]
// poorly duck type the missing api functions
api: NetlifyAPI & Record<string, (...args: $TSFixMe) => Promise<$TSFixMe>>
apiOpts: $TSFixMe
Expand All @@ -82,3 +82,22 @@ export interface AddressInUseError extends Error {
address: string
port: number
}

export interface Account {
id: string;
name: string;
slug: string;
type: string;
capabilities: Record<string, {included: string, used: string}>;
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;
}

0 comments on commit fae7b5c

Please sign in to comment.