diff --git a/dist/api.d.ts b/dist/api.d.ts index 582680b..5fa025f 100644 --- a/dist/api.d.ts +++ b/dist/api.d.ts @@ -1,3 +1,14 @@ +/** + * YNAB API Endpoints + * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com + * + * OpenAPI spec version: 1.0.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ import { Configuration } from "./configuration"; /** * @@ -133,7 +144,7 @@ export declare namespace Account { PayPal, MerchantAccount, InvestmentAccount, - Mortgage, + Mortgage } } /** @@ -957,7 +968,7 @@ export declare namespace SaveTransaction { enum ClearedEnum { Cleared, Uncleared, - Reconciled, + Reconciled } /** * @export @@ -969,7 +980,7 @@ export declare namespace SaveTransaction { Yellow, Green, Blue, - Purple, + Purple } } /** @@ -1154,7 +1165,7 @@ export declare namespace ScheduledTransactionSummary { Every4Months, TwiceAYear, Yearly, - EveryOtherYear, + EveryOtherYear } /** * @export @@ -1166,7 +1177,7 @@ export declare namespace ScheduledTransactionSummary { Yellow, Green, Blue, - Purple, + Purple } } /** @@ -1373,7 +1384,7 @@ export declare namespace TransactionSummary { enum ClearedEnum { Cleared, Uncleared, - Reconciled, + Reconciled } /** * @export @@ -1385,7 +1396,7 @@ export declare namespace TransactionSummary { Yellow, Green, Blue, - Purple, + Purple } } /** @@ -1727,7 +1738,7 @@ export declare namespace HybridTransaction { enum ClearedEnum { Cleared, Uncleared, - Reconciled, + Reconciled } /** * @export @@ -1739,7 +1750,7 @@ export declare namespace HybridTransaction { Yellow, Green, Blue, - Purple, + Purple } /** * @export @@ -1747,7 +1758,7 @@ export declare namespace HybridTransaction { */ enum TypeEnum { Transaction, - Subtransaction, + Subtransaction } } /** @@ -1912,7 +1923,7 @@ export declare namespace ScheduledTransactionDetail { Every4Months, TwiceAYear, Yearly, - EveryOtherYear, + EveryOtherYear } /** * @export @@ -1924,7 +1935,7 @@ export declare namespace ScheduledTransactionDetail { Yellow, Green, Blue, - Purple, + Purple } } /** @@ -2048,7 +2059,7 @@ export declare namespace TransactionDetail { enum ClearedEnum { Cleared, Uncleared, - Reconciled, + Reconciled } /** * @export @@ -2060,7 +2071,7 @@ export declare namespace TransactionDetail { Yellow, Green, Blue, - Purple, + Purple } } /** @@ -2068,7 +2079,22 @@ export declare namespace TransactionDetail { * @export */ export declare const AccountsApiFetchParamCreator: (configuration?: Configuration) => { + /** + * Returns a single account + * @summary Single account + * @param {string} budget_id - The ID of the Budget. + * @param {string} account_id - The ID of the Account. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getAccountById(budget_id: string, account_id: string, options?: any): FetchArgs; + /** + * Returns all accounts + * @summary Account list + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getAccounts(budget_id: string, options?: any): FetchArgs; }; /** @@ -2076,7 +2102,22 @@ export declare const AccountsApiFetchParamCreator: (configuration?: Configuratio * @export */ export declare const AccountsApiFp: (configuration?: Configuration) => { + /** + * Returns a single account + * @summary Single account + * @param {string} budget_id - The ID of the Budget. + * @param {string} account_id - The ID of the Account. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getAccountById(budget_id: string, account_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns all accounts + * @summary Account list + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getAccounts(budget_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; }; /** @@ -2084,7 +2125,22 @@ export declare const AccountsApiFp: (configuration?: Configuration) => { * @export */ export declare const AccountsApiFactory: (configuration?: Configuration) => { + /** + * Returns a single account + * @summary Single account + * @param {string} budget_id - The ID of the Budget. + * @param {string} account_id - The ID of the Account. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getAccountById(budget_id: string, account_id: string, options?: any): Promise; + /** + * Returns all accounts + * @summary Account list + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getAccounts(budget_id: string, options?: any): Promise; }; /** @@ -2119,7 +2175,21 @@ export declare class AccountsApi extends BaseAPI { * @export */ export declare const BudgetsApiFetchParamCreator: (configuration?: Configuration) => { + /** + * Returns a single budget with all related entities. This resource is effectively a full budget export. + * @summary Single budget + * @param {string} budget_id - The ID of the Budget. + * @param {number} [last_knowledge_of_server] - The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgetById(budget_id: string, last_knowledge_of_server?: number, options?: any): FetchArgs; + /** + * Returns budgets list with summary information. + * @summary List budgets + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgets(options?: any): FetchArgs; }; /** @@ -2127,7 +2197,21 @@ export declare const BudgetsApiFetchParamCreator: (configuration?: Configuration * @export */ export declare const BudgetsApiFp: (configuration?: Configuration) => { + /** + * Returns a single budget with all related entities. This resource is effectively a full budget export. + * @summary Single budget + * @param {string} budget_id - The ID of the Budget. + * @param {number} [last_knowledge_of_server] - The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgetById(budget_id: string, last_knowledge_of_server?: number, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns budgets list with summary information. + * @summary List budgets + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgets(options?: any): (fetchFunction?: FetchAPI) => Promise; }; /** @@ -2135,7 +2219,21 @@ export declare const BudgetsApiFp: (configuration?: Configuration) => { * @export */ export declare const BudgetsApiFactory: (configuration?: Configuration) => { + /** + * Returns a single budget with all related entities. This resource is effectively a full budget export. + * @summary Single budget + * @param {string} budget_id - The ID of the Budget. + * @param {number} [last_knowledge_of_server] - The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgetById(budget_id: string, last_knowledge_of_server?: number, options?: any): Promise; + /** + * Returns budgets list with summary information. + * @summary List budgets + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgets(options?: any): Promise; }; /** @@ -2169,7 +2267,22 @@ export declare class BudgetsApi extends BaseAPI { * @export */ export declare const CategoriesApiFetchParamCreator: (configuration?: Configuration) => { + /** + * Returns all categories grouped by category group. + * @summary List categories + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getCategories(budget_id: string, options?: any): FetchArgs; + /** + * Returns a single category + * @summary Single category + * @param {string} budget_id - The ID of the Budget. + * @param {string} category_id - The ID of the Category. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getCategoryById(budget_id: string, category_id: string, options?: any): FetchArgs; }; /** @@ -2177,7 +2290,22 @@ export declare const CategoriesApiFetchParamCreator: (configuration?: Configurat * @export */ export declare const CategoriesApiFp: (configuration?: Configuration) => { + /** + * Returns all categories grouped by category group. + * @summary List categories + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getCategories(budget_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns a single category + * @summary Single category + * @param {string} budget_id - The ID of the Budget. + * @param {string} category_id - The ID of the Category. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getCategoryById(budget_id: string, category_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; }; /** @@ -2185,7 +2313,22 @@ export declare const CategoriesApiFp: (configuration?: Configuration) => { * @export */ export declare const CategoriesApiFactory: (configuration?: Configuration) => { + /** + * Returns all categories grouped by category group. + * @summary List categories + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getCategories(budget_id: string, options?: any): Promise; + /** + * Returns a single category + * @summary Single category + * @param {string} budget_id - The ID of the Budget. + * @param {string} category_id - The ID of the Category. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getCategoryById(budget_id: string, category_id: string, options?: any): Promise; }; /** @@ -2220,7 +2363,22 @@ export declare class CategoriesApi extends BaseAPI { * @export */ export declare const MonthsApiFetchParamCreator: (configuration?: Configuration) => { + /** + * Returns a single budget month + * @summary Single budget month + * @param {string} budget_id - The ID of the Budget. + * @param {Date} month - The Budget Month. \"current\" can also be used to specify the current calendar month (UTC). + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgetMonth(budget_id: string, month: string | Date, options?: any): FetchArgs; + /** + * Returns all budget months + * @summary List budget months + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgetMonths(budget_id: string, options?: any): FetchArgs; }; /** @@ -2228,7 +2386,22 @@ export declare const MonthsApiFetchParamCreator: (configuration?: Configuration) * @export */ export declare const MonthsApiFp: (configuration?: Configuration) => { + /** + * Returns a single budget month + * @summary Single budget month + * @param {string} budget_id - The ID of the Budget. + * @param {Date} month - The Budget Month. \"current\" can also be used to specify the current calendar month (UTC). + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgetMonth(budget_id: string, month: string | Date, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns all budget months + * @summary List budget months + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgetMonths(budget_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; }; /** @@ -2236,7 +2409,22 @@ export declare const MonthsApiFp: (configuration?: Configuration) => { * @export */ export declare const MonthsApiFactory: (configuration?: Configuration) => { + /** + * Returns a single budget month + * @summary Single budget month + * @param {string} budget_id - The ID of the Budget. + * @param {Date} month - The Budget Month. \"current\" can also be used to specify the current calendar month (UTC). + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgetMonth(budget_id: string, month: string | Date, options?: any): Promise; + /** + * Returns all budget months + * @summary List budget months + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgetMonths(budget_id: string, options?: any): Promise; }; /** @@ -2271,8 +2459,31 @@ export declare class MonthsApi extends BaseAPI { * @export */ export declare const PayeeLocationsApiFetchParamCreator: (configuration?: Configuration) => { + /** + * Returns a single payee location + * @summary Single payee location + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_location_id - ID of payee location + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeLocationById(budget_id: string, payee_location_id: string, options?: any): FetchArgs; + /** + * Returns all payee locations + * @summary List payee locations + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeLocations(budget_id: string, options?: any): FetchArgs; + /** + * Returns all payee locations for the specified payee + * @summary List locations for a payee + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_id - ID of payee + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeLocationsByPayee(budget_id: string, payee_id: string, options?: any): FetchArgs; }; /** @@ -2280,8 +2491,31 @@ export declare const PayeeLocationsApiFetchParamCreator: (configuration?: Config * @export */ export declare const PayeeLocationsApiFp: (configuration?: Configuration) => { + /** + * Returns a single payee location + * @summary Single payee location + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_location_id - ID of payee location + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeLocationById(budget_id: string, payee_location_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns all payee locations + * @summary List payee locations + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeLocations(budget_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns all payee locations for the specified payee + * @summary List locations for a payee + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_id - ID of payee + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeLocationsByPayee(budget_id: string, payee_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; }; /** @@ -2289,8 +2523,31 @@ export declare const PayeeLocationsApiFp: (configuration?: Configuration) => { * @export */ export declare const PayeeLocationsApiFactory: (configuration?: Configuration) => { + /** + * Returns a single payee location + * @summary Single payee location + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_location_id - ID of payee location + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeLocationById(budget_id: string, payee_location_id: string, options?: any): Promise; + /** + * Returns all payee locations + * @summary List payee locations + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeLocations(budget_id: string, options?: any): Promise; + /** + * Returns all payee locations for the specified payee + * @summary List locations for a payee + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_id - ID of payee + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeLocationsByPayee(budget_id: string, payee_id: string, options?: any): Promise; }; /** @@ -2335,15 +2592,45 @@ export declare class PayeeLocationsApi extends BaseAPI { * @export */ export declare const PayeesApiFetchParamCreator: (configuration?: Configuration) => { - getPayeeById(budget_id: string, payee_id: string, options?: any): FetchArgs; - getPayees(budget_id: string, options?: any): FetchArgs; -}; -/** - * PayeesApi - functional programming interface + /** + * Returns single payee + * @summary Single payee + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_id - The ID of the Payee. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ + getPayeeById(budget_id: string, payee_id: string, options?: any): FetchArgs; + /** + * Returns all payees + * @summary List payees + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ + getPayees(budget_id: string, options?: any): FetchArgs; +}; +/** + * PayeesApi - functional programming interface * @export */ export declare const PayeesApiFp: (configuration?: Configuration) => { + /** + * Returns single payee + * @summary Single payee + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_id - The ID of the Payee. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeById(budget_id: string, payee_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns all payees + * @summary List payees + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayees(budget_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; }; /** @@ -2351,7 +2638,22 @@ export declare const PayeesApiFp: (configuration?: Configuration) => { * @export */ export declare const PayeesApiFactory: (configuration?: Configuration) => { + /** + * Returns single payee + * @summary Single payee + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_id - The ID of the Payee. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeById(budget_id: string, payee_id: string, options?: any): Promise; + /** + * Returns all payees + * @summary List payees + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayees(budget_id: string, options?: any): Promise; }; /** @@ -2386,7 +2688,22 @@ export declare class PayeesApi extends BaseAPI { * @export */ export declare const ScheduledTransactionsApiFetchParamCreator: (configuration?: Configuration) => { + /** + * Returns a single scheduled transaction + * @summary Single scheduled transaction + * @param {string} budget_id - The ID of the Budget. + * @param {string} scheduled_transaction_id - The ID of the Scheduled Transaction. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getScheduledTransactionById(budget_id: string, scheduled_transaction_id: string, options?: any): FetchArgs; + /** + * Returns all scheduled transactions + * @summary List scheduled transactions + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getScheduledTransactions(budget_id: string, options?: any): FetchArgs; }; /** @@ -2394,7 +2711,22 @@ export declare const ScheduledTransactionsApiFetchParamCreator: (configuration?: * @export */ export declare const ScheduledTransactionsApiFp: (configuration?: Configuration) => { + /** + * Returns a single scheduled transaction + * @summary Single scheduled transaction + * @param {string} budget_id - The ID of the Budget. + * @param {string} scheduled_transaction_id - The ID of the Scheduled Transaction. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getScheduledTransactionById(budget_id: string, scheduled_transaction_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns all scheduled transactions + * @summary List scheduled transactions + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getScheduledTransactions(budget_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; }; /** @@ -2402,7 +2734,22 @@ export declare const ScheduledTransactionsApiFp: (configuration?: Configuration) * @export */ export declare const ScheduledTransactionsApiFactory: (configuration?: Configuration) => { + /** + * Returns a single scheduled transaction + * @summary Single scheduled transaction + * @param {string} budget_id - The ID of the Budget. + * @param {string} scheduled_transaction_id - The ID of the Scheduled Transaction. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getScheduledTransactionById(budget_id: string, scheduled_transaction_id: string, options?: any): Promise; + /** + * Returns all scheduled transactions + * @summary List scheduled transactions + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getScheduledTransactions(budget_id: string, options?: any): Promise; }; /** @@ -2437,13 +2784,82 @@ export declare class ScheduledTransactionsApi extends BaseAPI { * @export */ export declare const TransactionsApiFetchParamCreator: (configuration?: Configuration) => { + /** + * Creates multiple transactions + * @summary Bulk create transactions + * @param {string} budget_id - The ID of the Budget. + * @param {BulkTransactions} transactions - The list of Transactions to create. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ bulkCreateTransactions(budget_id: string, transactions: BulkTransactions, options?: any): FetchArgs; + /** + * Creates a transaction + * @summary Create new transaction + * @param {string} budget_id - The ID of the Budget. + * @param {SaveTransactionWrapper} transaction - The Transaction to create. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ createTransaction(budget_id: string, transaction: SaveTransactionWrapper, options?: any): FetchArgs; + /** + * Returns budget transactions + * @summary List transactions + * @param {string} budget_id - The ID of the Budget. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {'uncategorized' | 'unapproved'} [type] - Only return transactions of a certain type (i.e. 'uncategorized', 'unapproved') + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactions(budget_id: string, since_date?: string | Date, type?: "uncategorized" | "unapproved", options?: any): FetchArgs; + /** + * Returns all transactions for a specified account + * @summary List account transactions + * @param {string} budget_id - The ID of the Budget. + * @param {string} account_id - The ID of the Account. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsByAccount(budget_id: string, account_id: string, since_date?: string | Date, options?: any): FetchArgs; + /** + * Returns all transactions for a specified category + * @summary List category transactions + * @param {string} budget_id - The ID of the Budget. + * @param {string} category_id - The ID of the Category. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsByCategory(budget_id: string, category_id: string, since_date?: string | Date, options?: any): FetchArgs; + /** + * Returns a single transaction + * @summary Single transaction + * @param {string} budget_id - The ID of the Budget. + * @param {string} transaction_id - The ID of the Transaction. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsById(budget_id: string, transaction_id: string, options?: any): FetchArgs; + /** + * Returns all transactions for a specified payee + * @summary List payee transactions + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_id - The ID of the Payee. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsByPayee(budget_id: string, payee_id: string, since_date?: string | Date, options?: any): FetchArgs; + /** + * Updates a transaction + * @summary Updates an existing transaction + * @param {string} budget_id - The ID of the Budget. + * @param {string} transaction_id - The ID of the Transaction. + * @param {SaveTransactionWrapper} transaction - The Transaction to update. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ updateTransaction(budget_id: string, transaction_id: string, transaction: SaveTransactionWrapper, options?: any): FetchArgs; }; /** @@ -2451,13 +2867,82 @@ export declare const TransactionsApiFetchParamCreator: (configuration?: Configur * @export */ export declare const TransactionsApiFp: (configuration?: Configuration) => { + /** + * Creates multiple transactions + * @summary Bulk create transactions + * @param {string} budget_id - The ID of the Budget. + * @param {BulkTransactions} transactions - The list of Transactions to create. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ bulkCreateTransactions(budget_id: string, transactions: BulkTransactions, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Creates a transaction + * @summary Create new transaction + * @param {string} budget_id - The ID of the Budget. + * @param {SaveTransactionWrapper} transaction - The Transaction to create. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ createTransaction(budget_id: string, transaction: SaveTransactionWrapper, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns budget transactions + * @summary List transactions + * @param {string} budget_id - The ID of the Budget. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {'uncategorized' | 'unapproved'} [type] - Only return transactions of a certain type (i.e. 'uncategorized', 'unapproved') + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactions(budget_id: string, since_date?: string | Date, type?: "uncategorized" | "unapproved", options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns all transactions for a specified account + * @summary List account transactions + * @param {string} budget_id - The ID of the Budget. + * @param {string} account_id - The ID of the Account. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsByAccount(budget_id: string, account_id: string, since_date?: string | Date, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns all transactions for a specified category + * @summary List category transactions + * @param {string} budget_id - The ID of the Budget. + * @param {string} category_id - The ID of the Category. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsByCategory(budget_id: string, category_id: string, since_date?: string | Date, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns a single transaction + * @summary Single transaction + * @param {string} budget_id - The ID of the Budget. + * @param {string} transaction_id - The ID of the Transaction. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsById(budget_id: string, transaction_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns all transactions for a specified payee + * @summary List payee transactions + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_id - The ID of the Payee. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsByPayee(budget_id: string, payee_id: string, since_date?: string | Date, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Updates a transaction + * @summary Updates an existing transaction + * @param {string} budget_id - The ID of the Budget. + * @param {string} transaction_id - The ID of the Transaction. + * @param {SaveTransactionWrapper} transaction - The Transaction to update. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ updateTransaction(budget_id: string, transaction_id: string, transaction: SaveTransactionWrapper, options?: any): (fetchFunction?: FetchAPI) => Promise; }; /** @@ -2465,13 +2950,82 @@ export declare const TransactionsApiFp: (configuration?: Configuration) => { * @export */ export declare const TransactionsApiFactory: (configuration?: Configuration) => { + /** + * Creates multiple transactions + * @summary Bulk create transactions + * @param {string} budget_id - The ID of the Budget. + * @param {BulkTransactions} transactions - The list of Transactions to create. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ bulkCreateTransactions(budget_id: string, transactions: BulkTransactions, options?: any): Promise; + /** + * Creates a transaction + * @summary Create new transaction + * @param {string} budget_id - The ID of the Budget. + * @param {SaveTransactionWrapper} transaction - The Transaction to create. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ createTransaction(budget_id: string, transaction: SaveTransactionWrapper, options?: any): Promise; + /** + * Returns budget transactions + * @summary List transactions + * @param {string} budget_id - The ID of the Budget. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {'uncategorized' | 'unapproved'} [type] - Only return transactions of a certain type (i.e. 'uncategorized', 'unapproved') + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactions(budget_id: string, since_date?: string | Date, type?: "uncategorized" | "unapproved", options?: any): Promise; + /** + * Returns all transactions for a specified account + * @summary List account transactions + * @param {string} budget_id - The ID of the Budget. + * @param {string} account_id - The ID of the Account. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsByAccount(budget_id: string, account_id: string, since_date?: string | Date, options?: any): Promise; + /** + * Returns all transactions for a specified category + * @summary List category transactions + * @param {string} budget_id - The ID of the Budget. + * @param {string} category_id - The ID of the Category. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsByCategory(budget_id: string, category_id: string, since_date?: string | Date, options?: any): Promise; + /** + * Returns a single transaction + * @summary Single transaction + * @param {string} budget_id - The ID of the Budget. + * @param {string} transaction_id - The ID of the Transaction. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsById(budget_id: string, transaction_id: string, options?: any): Promise; + /** + * Returns all transactions for a specified payee + * @summary List payee transactions + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_id - The ID of the Payee. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsByPayee(budget_id: string, payee_id: string, since_date?: string | Date, options?: any): Promise; + /** + * Updates a transaction + * @summary Updates an existing transaction + * @param {string} budget_id - The ID of the Budget. + * @param {string} transaction_id - The ID of the Transaction. + * @param {SaveTransactionWrapper} transaction - The Transaction to update. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ updateTransaction(budget_id: string, transaction_id: string, transaction: SaveTransactionWrapper, options?: any): Promise; }; /** @@ -2572,6 +3126,12 @@ export declare class TransactionsApi extends BaseAPI { * @export */ export declare const UserApiFetchParamCreator: (configuration?: Configuration) => { + /** + * Returns authenticated user information. + * @summary User info + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getUser(options?: any): FetchArgs; }; /** @@ -2579,6 +3139,12 @@ export declare const UserApiFetchParamCreator: (configuration?: Configuration) = * @export */ export declare const UserApiFp: (configuration?: Configuration) => { + /** + * Returns authenticated user information. + * @summary User info + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getUser(options?: any): (fetchFunction?: FetchAPI) => Promise; }; /** @@ -2586,6 +3152,12 @@ export declare const UserApiFp: (configuration?: Configuration) => { * @export */ export declare const UserApiFactory: (configuration?: Configuration) => { + /** + * Returns authenticated user information. + * @summary User info + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getUser(options?: any): Promise; }; /** diff --git a/dist/browser/ynab.js b/dist/browser/ynab.js index d40350f..d8c0d32 100644 --- a/dist/browser/ynab.js +++ b/dist/browser/ynab.js @@ -1 +1 @@ -var ynab=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=13)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(11);n(3);const a="api_client/js/0.17.0";function o(e){return e instanceof Date?e.toISOString().substring(0,10):e}t.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"};class s{constructor(e){e&&(this.configuration=e)}}t.BaseAPI=s;class i extends Error{constructor(e,t){super(t),this.field=e}}t.RequiredError=i,function(e){let t;!function(e){e[e.Checking="checking"]="Checking",e[e.Savings="savings"]="Savings",e[e.Cash="cash"]="Cash",e[e.CreditCard="creditCard"]="CreditCard",e[e.LineOfCredit="lineOfCredit"]="LineOfCredit",e[e.OtherAsset="otherAsset"]="OtherAsset",e[e.OtherLiability="otherLiability"]="OtherLiability",e[e.PayPal="payPal"]="PayPal",e[e.MerchantAccount="merchantAccount"]="MerchantAccount",e[e.InvestmentAccount="investmentAccount"]="InvestmentAccount",e[e.Mortgage="mortgage"]="Mortgage"}(t=e.TypeEnum||(e.TypeEnum={}))}(t.Account||(t.Account={})),function(e){let t,n;!function(e){e[e.Cleared="cleared"]="Cleared",e[e.Uncleared="uncleared"]="Uncleared",e[e.Reconciled="reconciled"]="Reconciled"}(t=e.ClearedEnum||(e.ClearedEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.SaveTransaction||(t.SaveTransaction={})),function(e){let t,n;!function(e){e[e.Never="never"]="Never",e[e.Daily="daily"]="Daily",e[e.Weekly="weekly"]="Weekly",e[e.EveryOtherWeek="everyOtherWeek"]="EveryOtherWeek",e[e.TwiceAMonth="twiceAMonth"]="TwiceAMonth",e[e.Every4Weeks="every4Weeks"]="Every4Weeks",e[e.Monthly="monthly"]="Monthly",e[e.EveryOtherMonth="everyOtherMonth"]="EveryOtherMonth",e[e.Every3Months="every3Months"]="Every3Months",e[e.Every4Months="every4Months"]="Every4Months",e[e.TwiceAYear="twiceAYear"]="TwiceAYear",e[e.Yearly="yearly"]="Yearly",e[e.EveryOtherYear="everyOtherYear"]="EveryOtherYear"}(t=e.FrequencyEnum||(e.FrequencyEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.ScheduledTransactionSummary||(t.ScheduledTransactionSummary={})),function(e){let t,n;!function(e){e[e.Cleared="cleared"]="Cleared",e[e.Uncleared="uncleared"]="Uncleared",e[e.Reconciled="reconciled"]="Reconciled"}(t=e.ClearedEnum||(e.ClearedEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.TransactionSummary||(t.TransactionSummary={})),function(e){let t,n,r;!function(e){e[e.Cleared="cleared"]="Cleared",e[e.Uncleared="uncleared"]="Uncleared",e[e.Reconciled="reconciled"]="Reconciled"}(t=e.ClearedEnum||(e.ClearedEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={})),function(e){e[e.Transaction="transaction"]="Transaction",e[e.Subtransaction="subtransaction"]="Subtransaction"}(r=e.TypeEnum||(e.TypeEnum={}))}(t.HybridTransaction||(t.HybridTransaction={})),function(e){let t,n;!function(e){e[e.Never="never"]="Never",e[e.Daily="daily"]="Daily",e[e.Weekly="weekly"]="Weekly",e[e.EveryOtherWeek="everyOtherWeek"]="EveryOtherWeek",e[e.TwiceAMonth="twiceAMonth"]="TwiceAMonth",e[e.Every4Weeks="every4Weeks"]="Every4Weeks",e[e.Monthly="monthly"]="Monthly",e[e.EveryOtherMonth="everyOtherMonth"]="EveryOtherMonth",e[e.Every3Months="every3Months"]="Every3Months",e[e.Every4Months="every4Months"]="Every4Months",e[e.TwiceAYear="twiceAYear"]="TwiceAYear",e[e.Yearly="yearly"]="Yearly",e[e.EveryOtherYear="everyOtherYear"]="EveryOtherYear"}(t=e.FrequencyEnum||(e.FrequencyEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.ScheduledTransactionDetail||(t.ScheduledTransactionDetail={})),function(e){let t,n;!function(e){e[e.Cleared="cleared"]="Cleared",e[e.Uncleared="uncleared"]="Uncleared",e[e.Reconciled="reconciled"]="Reconciled"}(t=e.ClearedEnum||(e.ClearedEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.TransactionDetail||(t.TransactionDetail={})),t.AccountsApiFetchParamCreator=function(e){return{getAccountById(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getAccountById.");if(null===n||void 0===n)throw new i("account_id","Required parameter account_id was null or undefined when calling getAccountById.");const s="/budgets/{budget_id}/accounts/{account_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{account_id}",encodeURIComponent(String(n))),c=r.parse(s,!0),u=Object.assign({method:"GET"},o),h={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return c.query=Object.assign({},c.query,{},o.query),delete c.search,u.headers=Object.assign({},h,o.headers),{url:r.format(c),options:u}},getAccounts(t,n={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getAccounts.");const o="/budgets/{budget_id}/accounts".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(o,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=a,u.Accept="application/json",e&&e.apiKey){const t=e.apiKey;u.Authorization=t}return s.query=Object.assign({},s.query,{},n.query),delete s.search,c.headers=Object.assign({},u,n.headers),{url:r.format(s),options:c}}}},t.AccountsApiFp=function(e){return{getAccountById(n,r,a){const o=t.AccountsApiFetchParamCreator(e).getAccountById(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getAccounts(n,r){const a=t.AccountsApiFetchParamCreator(e).getAccounts(n,r);return(t=fetch)=>t(e.basePath+a.url,a.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))}}},t.AccountsApiFactory=function(e){return{getAccountById:(n,r,a)=>t.AccountsApiFp(e).getAccountById(n,r,a)(),getAccounts:(n,r)=>t.AccountsApiFp(e).getAccounts(n,r)()}};t.AccountsApi=class extends s{getAccountById(e,n,r){return t.AccountsApiFp(this.configuration).getAccountById(e,n,r)()}getAccounts(e,n){return t.AccountsApiFp(this.configuration).getAccounts(e,n)()}},t.BudgetsApiFetchParamCreator=function(e){return{getBudgetById(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getBudgetById.");const s="/budgets/{budget_id}".replace("{budget_id}",encodeURIComponent(String(t))),c=r.parse(s,!0),u=Object.assign({method:"GET"},o),h={},d={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return void 0!==n&&(d.last_knowledge_of_server=n),c.query=Object.assign({},c.query,d,o.query),delete c.search,u.headers=Object.assign({},h,o.headers),{url:r.format(c),options:u}},getBudgets(t={}){const n=r.parse("/budgets",!0),o=Object.assign({method:"GET"},t),s={};if(s["User-Agent"]=a,s.Accept="application/json",e&&e.apiKey){const t=e.apiKey;s.Authorization=t}return n.query=Object.assign({},n.query,{},t.query),delete n.search,o.headers=Object.assign({},s,t.headers),{url:r.format(n),options:o}}}},t.BudgetsApiFp=function(e){return{getBudgetById(n,r,a){const o=t.BudgetsApiFetchParamCreator(e).getBudgetById(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getBudgets(n){const r=t.BudgetsApiFetchParamCreator(e).getBudgets(n);return(t=fetch)=>t(e.basePath+r.url,r.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))}}},t.BudgetsApiFactory=function(e){return{getBudgetById:(n,r,a)=>t.BudgetsApiFp(e).getBudgetById(n,r,a)(),getBudgets:n=>t.BudgetsApiFp(e).getBudgets(n)()}};t.BudgetsApi=class extends s{getBudgetById(e,n,r){return t.BudgetsApiFp(this.configuration).getBudgetById(e,n,r)()}getBudgets(e){return t.BudgetsApiFp(this.configuration).getBudgets(e)()}},t.CategoriesApiFetchParamCreator=function(e){return{getCategories(t,n={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getCategories.");const o="/budgets/{budget_id}/categories".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(o,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=a,u.Accept="application/json",e&&e.apiKey){const t=e.apiKey;u.Authorization=t}return s.query=Object.assign({},s.query,{},n.query),delete s.search,c.headers=Object.assign({},u,n.headers),{url:r.format(s),options:c}},getCategoryById(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getCategoryById.");if(null===n||void 0===n)throw new i("category_id","Required parameter category_id was null or undefined when calling getCategoryById.");const s="/budgets/{budget_id}/categories/{category_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{category_id}",encodeURIComponent(String(n))),c=r.parse(s,!0),u=Object.assign({method:"GET"},o),h={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return c.query=Object.assign({},c.query,{},o.query),delete c.search,u.headers=Object.assign({},h,o.headers),{url:r.format(c),options:u}}}},t.CategoriesApiFp=function(e){return{getCategories(n,r){const a=t.CategoriesApiFetchParamCreator(e).getCategories(n,r);return(t=fetch)=>t(e.basePath+a.url,a.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getCategoryById(n,r,a){const o=t.CategoriesApiFetchParamCreator(e).getCategoryById(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))}}},t.CategoriesApiFactory=function(e){return{getCategories:(n,r)=>t.CategoriesApiFp(e).getCategories(n,r)(),getCategoryById:(n,r,a)=>t.CategoriesApiFp(e).getCategoryById(n,r,a)()}};t.CategoriesApi=class extends s{getCategories(e,n){return t.CategoriesApiFp(this.configuration).getCategories(e,n)()}getCategoryById(e,n,r){return t.CategoriesApiFp(this.configuration).getCategoryById(e,n,r)()}},t.MonthsApiFetchParamCreator=function(e){return{getBudgetMonth(t,n,s={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getBudgetMonth.");if(null===n||void 0===n)throw new i("month","Required parameter month was null or undefined when calling getBudgetMonth.");const c="/budgets/{budget_id}/months/{month}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{month}",encodeURIComponent(o(n))),u=r.parse(c,!0),h=Object.assign({method:"GET"},s),d={};if(d["User-Agent"]=a,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return u.query=Object.assign({},u.query,{},s.query),delete u.search,h.headers=Object.assign({},d,s.headers),{url:r.format(u),options:h}},getBudgetMonths(t,n={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getBudgetMonths.");const o="/budgets/{budget_id}/months".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(o,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=a,u.Accept="application/json",e&&e.apiKey){const t=e.apiKey;u.Authorization=t}return s.query=Object.assign({},s.query,{},n.query),delete s.search,c.headers=Object.assign({},u,n.headers),{url:r.format(s),options:c}}}},t.MonthsApiFp=function(e){return{getBudgetMonth(n,r,a){const o=t.MonthsApiFetchParamCreator(e).getBudgetMonth(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getBudgetMonths(n,r){const a=t.MonthsApiFetchParamCreator(e).getBudgetMonths(n,r);return(t=fetch)=>t(e.basePath+a.url,a.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))}}},t.MonthsApiFactory=function(e){return{getBudgetMonth:(n,r,a)=>t.MonthsApiFp(e).getBudgetMonth(n,r,a)(),getBudgetMonths:(n,r)=>t.MonthsApiFp(e).getBudgetMonths(n,r)()}};t.MonthsApi=class extends s{getBudgetMonth(e,n,r){return t.MonthsApiFp(this.configuration).getBudgetMonth(e,n,r)()}getBudgetMonths(e,n){return t.MonthsApiFp(this.configuration).getBudgetMonths(e,n)()}},t.PayeeLocationsApiFetchParamCreator=function(e){return{getPayeeLocationById(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getPayeeLocationById.");if(null===n||void 0===n)throw new i("payee_location_id","Required parameter payee_location_id was null or undefined when calling getPayeeLocationById.");const s="/budgets/{budget_id}/payee_locations/{payee_location_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{payee_location_id}",encodeURIComponent(String(n))),c=r.parse(s,!0),u=Object.assign({method:"GET"},o),h={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return c.query=Object.assign({},c.query,{},o.query),delete c.search,u.headers=Object.assign({},h,o.headers),{url:r.format(c),options:u}},getPayeeLocations(t,n={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getPayeeLocations.");const o="/budgets/{budget_id}/payee_locations".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(o,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=a,u.Accept="application/json",e&&e.apiKey){const t=e.apiKey;u.Authorization=t}return s.query=Object.assign({},s.query,{},n.query),delete s.search,c.headers=Object.assign({},u,n.headers),{url:r.format(s),options:c}},getPayeeLocationsByPayee(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getPayeeLocationsByPayee.");if(null===n||void 0===n)throw new i("payee_id","Required parameter payee_id was null or undefined when calling getPayeeLocationsByPayee.");const s="/budgets/{budget_id}/payees/{payee_id}/payee_locations".replace("{budget_id}",encodeURIComponent(String(t))).replace("{payee_id}",encodeURIComponent(String(n))),c=r.parse(s,!0),u=Object.assign({method:"GET"},o),h={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return c.query=Object.assign({},c.query,{},o.query),delete c.search,u.headers=Object.assign({},h,o.headers),{url:r.format(c),options:u}}}},t.PayeeLocationsApiFp=function(e){return{getPayeeLocationById(n,r,a){const o=t.PayeeLocationsApiFetchParamCreator(e).getPayeeLocationById(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getPayeeLocations(n,r){const a=t.PayeeLocationsApiFetchParamCreator(e).getPayeeLocations(n,r);return(t=fetch)=>t(e.basePath+a.url,a.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getPayeeLocationsByPayee(n,r,a){const o=t.PayeeLocationsApiFetchParamCreator(e).getPayeeLocationsByPayee(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))}}},t.PayeeLocationsApiFactory=function(e){return{getPayeeLocationById:(n,r,a)=>t.PayeeLocationsApiFp(e).getPayeeLocationById(n,r,a)(),getPayeeLocations:(n,r)=>t.PayeeLocationsApiFp(e).getPayeeLocations(n,r)(),getPayeeLocationsByPayee:(n,r,a)=>t.PayeeLocationsApiFp(e).getPayeeLocationsByPayee(n,r,a)()}};t.PayeeLocationsApi=class extends s{getPayeeLocationById(e,n,r){return t.PayeeLocationsApiFp(this.configuration).getPayeeLocationById(e,n,r)()}getPayeeLocations(e,n){return t.PayeeLocationsApiFp(this.configuration).getPayeeLocations(e,n)()}getPayeeLocationsByPayee(e,n,r){return t.PayeeLocationsApiFp(this.configuration).getPayeeLocationsByPayee(e,n,r)()}},t.PayeesApiFetchParamCreator=function(e){return{getPayeeById(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getPayeeById.");if(null===n||void 0===n)throw new i("payee_id","Required parameter payee_id was null or undefined when calling getPayeeById.");const s="/budgets/{budget_id}/payees/{payee_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{payee_id}",encodeURIComponent(String(n))),c=r.parse(s,!0),u=Object.assign({method:"GET"},o),h={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return c.query=Object.assign({},c.query,{},o.query),delete c.search,u.headers=Object.assign({},h,o.headers),{url:r.format(c),options:u}},getPayees(t,n={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getPayees.");const o="/budgets/{budget_id}/payees".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(o,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=a,u.Accept="application/json",e&&e.apiKey){const t=e.apiKey;u.Authorization=t}return s.query=Object.assign({},s.query,{},n.query),delete s.search,c.headers=Object.assign({},u,n.headers),{url:r.format(s),options:c}}}},t.PayeesApiFp=function(e){return{getPayeeById(n,r,a){const o=t.PayeesApiFetchParamCreator(e).getPayeeById(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getPayees(n,r){const a=t.PayeesApiFetchParamCreator(e).getPayees(n,r);return(t=fetch)=>t(e.basePath+a.url,a.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))}}},t.PayeesApiFactory=function(e){return{getPayeeById:(n,r,a)=>t.PayeesApiFp(e).getPayeeById(n,r,a)(),getPayees:(n,r)=>t.PayeesApiFp(e).getPayees(n,r)()}};t.PayeesApi=class extends s{getPayeeById(e,n,r){return t.PayeesApiFp(this.configuration).getPayeeById(e,n,r)()}getPayees(e,n){return t.PayeesApiFp(this.configuration).getPayees(e,n)()}},t.ScheduledTransactionsApiFetchParamCreator=function(e){return{getScheduledTransactionById(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getScheduledTransactionById.");if(null===n||void 0===n)throw new i("scheduled_transaction_id","Required parameter scheduled_transaction_id was null or undefined when calling getScheduledTransactionById.");const s="/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{scheduled_transaction_id}",encodeURIComponent(String(n))),c=r.parse(s,!0),u=Object.assign({method:"GET"},o),h={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return c.query=Object.assign({},c.query,{},o.query),delete c.search,u.headers=Object.assign({},h,o.headers),{url:r.format(c),options:u}},getScheduledTransactions(t,n={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getScheduledTransactions.");const o="/budgets/{budget_id}/scheduled_transactions".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(o,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=a,u.Accept="application/json",e&&e.apiKey){const t=e.apiKey;u.Authorization=t}return s.query=Object.assign({},s.query,{},n.query),delete s.search,c.headers=Object.assign({},u,n.headers),{url:r.format(s),options:c}}}},t.ScheduledTransactionsApiFp=function(e){return{getScheduledTransactionById(n,r,a){const o=t.ScheduledTransactionsApiFetchParamCreator(e).getScheduledTransactionById(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getScheduledTransactions(n,r){const a=t.ScheduledTransactionsApiFetchParamCreator(e).getScheduledTransactions(n,r);return(t=fetch)=>t(e.basePath+a.url,a.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))}}},t.ScheduledTransactionsApiFactory=function(e){return{getScheduledTransactionById:(n,r,a)=>t.ScheduledTransactionsApiFp(e).getScheduledTransactionById(n,r,a)(),getScheduledTransactions:(n,r)=>t.ScheduledTransactionsApiFp(e).getScheduledTransactions(n,r)()}};t.ScheduledTransactionsApi=class extends s{getScheduledTransactionById(e,n,r){return t.ScheduledTransactionsApiFp(this.configuration).getScheduledTransactionById(e,n,r)()}getScheduledTransactions(e,n){return t.ScheduledTransactionsApiFp(this.configuration).getScheduledTransactions(e,n)()}},t.TransactionsApiFetchParamCreator=function(e){return{bulkCreateTransactions(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling bulkCreateTransactions.");if(null===n||void 0===n)throw new i("transactions","Required parameter transactions was null or undefined when calling bulkCreateTransactions.");const s="/budgets/{budget_id}/transactions/bulk".replace("{budget_id}",encodeURIComponent(String(t))),c=r.parse(s,!0),u=Object.assign({method:"POST"},o),h={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return h["Content-Type"]="application/json",c.query=Object.assign({},c.query,{},o.query),delete c.search,u.headers=Object.assign({},h,o.headers),u.body=JSON.stringify(n||{}),{url:r.format(c),options:u}},createTransaction(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling createTransaction.");if(null===n||void 0===n)throw new i("transaction","Required parameter transaction was null or undefined when calling createTransaction.");const s="/budgets/{budget_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))),c=r.parse(s,!0),u=Object.assign({method:"POST"},o),h={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return h["Content-Type"]="application/json",c.query=Object.assign({},c.query,{},o.query),delete c.search,u.headers=Object.assign({},h,o.headers),u.body=JSON.stringify(n||{}),{url:r.format(c),options:u}},getTransactions(t,n,s,c={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getTransactions.");const u="/budgets/{budget_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))),h=r.parse(u,!0),d=Object.assign({method:"GET"},c),l={},p={};if(l["User-Agent"]=a,l.Accept="application/json",e&&e.apiKey){const t=e.apiKey;l.Authorization=t}return void 0!==n&&(p.since_date=o(n)),void 0!==s&&(p.type=s),h.query=Object.assign({},h.query,p,c.query),delete h.search,d.headers=Object.assign({},l,c.headers),{url:r.format(h),options:d}},getTransactionsByAccount(t,n,s,c={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsByAccount.");if(null===n||void 0===n)throw new i("account_id","Required parameter account_id was null or undefined when calling getTransactionsByAccount.");const u="/budgets/{budget_id}/accounts/{account_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))).replace("{account_id}",encodeURIComponent(String(n))),h=r.parse(u,!0),d=Object.assign({method:"GET"},c),l={},p={};if(l["User-Agent"]=a,l.Accept="application/json",e&&e.apiKey){const t=e.apiKey;l.Authorization=t}return void 0!==s&&(p.since_date=o(s)),h.query=Object.assign({},h.query,p,c.query),delete h.search,d.headers=Object.assign({},l,c.headers),{url:r.format(h),options:d}},getTransactionsByCategory(t,n,s,c={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsByCategory.");if(null===n||void 0===n)throw new i("category_id","Required parameter category_id was null or undefined when calling getTransactionsByCategory.");const u="/budgets/{budget_id}/categories/{category_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))).replace("{category_id}",encodeURIComponent(String(n))),h=r.parse(u,!0),d=Object.assign({method:"GET"},c),l={},p={};if(l["User-Agent"]=a,l.Accept="application/json",e&&e.apiKey){const t=e.apiKey;l.Authorization=t}return void 0!==s&&(p.since_date=o(s)),h.query=Object.assign({},h.query,p,c.query),delete h.search,d.headers=Object.assign({},l,c.headers),{url:r.format(h),options:d}},getTransactionsById(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsById.");if(null===n||void 0===n)throw new i("transaction_id","Required parameter transaction_id was null or undefined when calling getTransactionsById.");const s="/budgets/{budget_id}/transactions/{transaction_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{transaction_id}",encodeURIComponent(String(n))),c=r.parse(s,!0),u=Object.assign({method:"GET"},o),h={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return c.query=Object.assign({},c.query,{},o.query),delete c.search,u.headers=Object.assign({},h,o.headers),{url:r.format(c),options:u}},getTransactionsByPayee(t,n,s,c={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsByPayee.");if(null===n||void 0===n)throw new i("payee_id","Required parameter payee_id was null or undefined when calling getTransactionsByPayee.");const u="/budgets/{budget_id}/payees/{payee_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))).replace("{payee_id}",encodeURIComponent(String(n))),h=r.parse(u,!0),d=Object.assign({method:"GET"},c),l={},p={};if(l["User-Agent"]=a,l.Accept="application/json",e&&e.apiKey){const t=e.apiKey;l.Authorization=t}return void 0!==s&&(p.since_date=o(s)),h.query=Object.assign({},h.query,p,c.query),delete h.search,d.headers=Object.assign({},l,c.headers),{url:r.format(h),options:d}},updateTransaction(t,n,o,s={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling updateTransaction.");if(null===n||void 0===n)throw new i("transaction_id","Required parameter transaction_id was null or undefined when calling updateTransaction.");if(null===o||void 0===o)throw new i("transaction","Required parameter transaction was null or undefined when calling updateTransaction.");const c="/budgets/{budget_id}/transactions/{transaction_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{transaction_id}",encodeURIComponent(String(n))),u=r.parse(c,!0),h=Object.assign({method:"PUT"},s),d={};if(d["User-Agent"]=a,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return d["Content-Type"]="application/json",u.query=Object.assign({},u.query,{},s.query),delete u.search,h.headers=Object.assign({},d,s.headers),h.body=JSON.stringify(o||{}),{url:r.format(u),options:h}}}},t.TransactionsApiFp=function(e){return{bulkCreateTransactions(n,r,a){const o=t.TransactionsApiFetchParamCreator(e).bulkCreateTransactions(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},createTransaction(n,r,a){const o=t.TransactionsApiFetchParamCreator(e).createTransaction(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getTransactions(n,r,a,o){const s=t.TransactionsApiFetchParamCreator(e).getTransactions(n,r,a,o);return(t=fetch)=>t(e.basePath+s.url,s.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getTransactionsByAccount(n,r,a,o){const s=t.TransactionsApiFetchParamCreator(e).getTransactionsByAccount(n,r,a,o);return(t=fetch)=>t(e.basePath+s.url,s.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getTransactionsByCategory(n,r,a,o){const s=t.TransactionsApiFetchParamCreator(e).getTransactionsByCategory(n,r,a,o);return(t=fetch)=>t(e.basePath+s.url,s.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getTransactionsById(n,r,a){const o=t.TransactionsApiFetchParamCreator(e).getTransactionsById(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getTransactionsByPayee(n,r,a,o){const s=t.TransactionsApiFetchParamCreator(e).getTransactionsByPayee(n,r,a,o);return(t=fetch)=>t(e.basePath+s.url,s.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},updateTransaction(n,r,a,o){const s=t.TransactionsApiFetchParamCreator(e).updateTransaction(n,r,a,o);return(t=fetch)=>t(e.basePath+s.url,s.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))}}},t.TransactionsApiFactory=function(e){return{bulkCreateTransactions:(n,r,a)=>t.TransactionsApiFp(e).bulkCreateTransactions(n,r,a)(),createTransaction:(n,r,a)=>t.TransactionsApiFp(e).createTransaction(n,r,a)(),getTransactions:(n,r,a,o)=>t.TransactionsApiFp(e).getTransactions(n,r,a,o)(),getTransactionsByAccount:(n,r,a,o)=>t.TransactionsApiFp(e).getTransactionsByAccount(n,r,a,o)(),getTransactionsByCategory:(n,r,a,o)=>t.TransactionsApiFp(e).getTransactionsByCategory(n,r,a,o)(),getTransactionsById:(n,r,a)=>t.TransactionsApiFp(e).getTransactionsById(n,r,a)(),getTransactionsByPayee:(n,r,a,o)=>t.TransactionsApiFp(e).getTransactionsByPayee(n,r,a,o)(),updateTransaction:(n,r,a,o)=>t.TransactionsApiFp(e).updateTransaction(n,r,a,o)()}};t.TransactionsApi=class extends s{bulkCreateTransactions(e,n,r){return t.TransactionsApiFp(this.configuration).bulkCreateTransactions(e,n,r)()}createTransaction(e,n,r){return t.TransactionsApiFp(this.configuration).createTransaction(e,n,r)()}getTransactions(e,n,r,a){return t.TransactionsApiFp(this.configuration).getTransactions(e,n,r,a)()}getTransactionsByAccount(e,n,r,a){return t.TransactionsApiFp(this.configuration).getTransactionsByAccount(e,n,r,a)()}getTransactionsByCategory(e,n,r,a){return t.TransactionsApiFp(this.configuration).getTransactionsByCategory(e,n,r,a)()}getTransactionsById(e,n,r){return t.TransactionsApiFp(this.configuration).getTransactionsById(e,n,r)()}getTransactionsByPayee(e,n,r,a){return t.TransactionsApiFp(this.configuration).getTransactionsByPayee(e,n,r,a)()}updateTransaction(e,n,r,a){return t.TransactionsApiFp(this.configuration).updateTransaction(e,n,r,a)()}},t.UserApiFetchParamCreator=function(e){return{getUser(t={}){const n=r.parse("/user",!0),o=Object.assign({method:"GET"},t),s={};if(s["User-Agent"]=a,s.Accept="application/json",e&&e.apiKey){const t=e.apiKey;s.Authorization=t}return n.query=Object.assign({},n.query,{},t.query),delete n.search,o.headers=Object.assign({},s,t.headers),{url:r.format(n),options:o}}}},t.UserApiFp=function(e){return{getUser(n){const r=t.UserApiFetchParamCreator(e).getUser(n);return(t=fetch)=>t(e.basePath+r.url,r.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))}}},t.UserApiFactory=function(e){return{getUser:n=>t.UserApiFp(e).getUser(n)()}};t.UserApi=class extends s{getUser(e){return t.UserApiFp(this.configuration).getUser(e)()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getCurrentMonthInISOFormat(){return`${this.getCurrentDateInISOFormat().substr(0,7)}-01`},getCurrentDateInISOFormat(){let e=new Date;return new Date(e.getTime()-6e4*e.getTimezoneOffset()).toISOString()},convertFromISODateString:e=>new Date(new Date(e)),convertMilliUnitsToCurrencyAmount(e,t=2){let n=Math.pow(10,3-Math.min(3,t));n=1/n;let r=Math.round(e*n)/n*(.1/Math.pow(10,2));return Number(r.toFixed(t))}}},function(e,t){!function(e){"use strict";if(!e.fetch){var t={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(t.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=function(e){return e&&DataView.prototype.isPrototypeOf(e)},a=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};h.prototype.append=function(e,t){e=i(e),t=c(t);var n=this.map[e];this.map[e]=n?n+","+t:t},h.prototype.delete=function(e){delete this.map[i(e)]},h.prototype.get=function(e){return e=i(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(i(e))},h.prototype.set=function(e,t){this.map[i(e)]=c(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),u(e)},h.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},h.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),u(e)},t.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);var o=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];f.prototype.clone=function(){return new f(this,{body:this._bodyInit})},y.call(f.prototype),y.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:0,statusText:""});return e.type="error",e};var s=[301,302,303,307,308];b.redirect=function(e,t){if(-1===s.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},e.Headers=h,e.Request=f,e.Response=b,e.fetch=function(e,n){return new Promise(function(r,a){var o=new f(e,n),s=new XMLHttpRequest;s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new h,e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var a=n.join(":").trim();t.append(r,a)}}),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var a="response"in s?s.response:s.responseText;r(new b(a,n))},s.onerror=function(){a(new TypeError("Network request failed"))},s.ontimeout=function(){a(new TypeError("Network request failed"))},s.open(o.method,o.url,!0),"include"===o.credentials&&(s.withCredentials=!0),"responseType"in s&&t.blob&&(s.responseType="blob"),o.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),s.send(void 0===o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}function i(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(n[Symbol.iterator]=function(){return n}),n}function h(e){this.map={},e instanceof h?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function l(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function p(e){var t=new FileReader,n=l(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(t.arrayBuffer&&t.blob&&r(e))this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!t.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!a(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=g(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var e,t,n,r=d(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=l(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a)}function m(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(a))}}),t}function b(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},function(e,t,n){n(2),e.exports=self.fetch.bind(self)},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,i){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?o(s(e),function(s){var i=encodeURIComponent(r(s))+n;return a(e[s])?o(e[s],function(e){return i+encodeURIComponent(r(e))}).join(t):i+encodeURIComponent(r(e[s]))}).join(t):i?encodeURIComponent(r(i))+n+encodeURIComponent(r(e)):""};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r0&&u>c&&(u=c);for(var h=0;h=0?(d=y.substr(0,f),l=y.substr(f+1)):(d=y,l=""),p=decodeURIComponent(d),g=decodeURIComponent(l),r(s,p)?a(s[p])?s[p].push(g):s[p]=[s[p],g]:s[p]=g}return s};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";t.decode=t.parse=n(5),t.encode=t.stringify=n(4)},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){(function(e,r){var a;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){"object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType;var s="object"==typeof r&&r;s.global!==s&&s.window!==s&&s.self;var i,c=2147483647,u=36,h=1,d=26,l=38,p=700,g=72,y=128,f="-",m=/^xn--/,b=/[^\x20-\x7E]/,A=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=u-h,j=Math.floor,v=String.fromCharCode;function P(e){throw new RangeError(w[e])}function T(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function C(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+T((e=e.replace(A,".")).split("."),t).join(".")}function B(e){for(var t,n,r=[],a=0,o=e.length;a=55296&&t<=56319&&a65535&&(t+=v((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=v(e)}).join("")}function I(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function F(e,t,n){var r=0;for(e=n?j(e/p):e>>1,e+=j(e/t);e>_*d>>1;r+=u)e=j(e/_);return j(r+(_+1)*e/(e+l))}function q(e){var t,n,r,a,o,s,i,l,p,m,b,A=[],w=e.length,_=0,v=y,T=g;for((n=e.lastIndexOf(f))<0&&(n=0),r=0;r=128&&P("not-basic"),A.push(e.charCodeAt(r));for(a=n>0?n+1:0;a=w&&P("invalid-input"),((l=(b=e.charCodeAt(a++))-48<10?b-22:b-65<26?b-65:b-97<26?b-97:u)>=u||l>j((c-_)/s))&&P("overflow"),_+=l*s,!(l<(p=i<=T?h:i>=T+d?d:i-T));i+=u)s>j(c/(m=u-p))&&P("overflow"),s*=m;T=F(_-o,t=A.length+1,0==o),j(_/t)>c-v&&P("overflow"),v+=j(_/t),_%=t,A.splice(_++,0,v)}return O(A)}function R(e){var t,n,r,a,o,s,i,l,p,m,b,A,w,_,T,C=[];for(A=(e=B(e)).length,t=y,n=0,o=g,s=0;s=t&&bj((c-n)/(w=r+1))&&P("overflow"),n+=(i-t)*w,t=i,s=0;sc&&P("overflow"),b==t){for(l=n,p=u;!(l<(m=p<=o?h:p>=o+d?d:p-o));p+=u)T=l-m,_=u-m,C.push(v(I(m+T%_,0))),l=j(T/_);C.push(v(I(l,0))),o=F(n,w,r==a),n=0,++r}++n,++t}return C.join("")}i={version:"1.4.1",ucs2:{decode:B,encode:O},decode:q,encode:R,toASCII:function(e){return C(e,function(e){return b.test(e)?"xn--"+R(e):e})},toUnicode:function(e){return C(e,function(e){return m.test(e)?q(e.slice(4).toLowerCase()):e})}},void 0===(a=function(){return i}.call(t,n,t,e))||(e.exports=a)}()}).call(this,n(9)(e),n(8))},function(e,t,n){"use strict";var r=n(10),a=n(7);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=A,t.resolve=function(e,t){return A(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?A(e,!1,!0).resolveObject(t):t},t.format=function(e){a.isString(e)&&(e=A(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var s=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),h=["'"].concat(u),d=["%","/","?",";","#"].concat(h),l=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},f={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(6);function A(e,t,n){if(e&&a.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),i=-1!==o&&o127?U+="x":U+=R[S];if(!U.match(p)){var M=F.slice(0,B),x=F.slice(B+1),L=R.match(g);L&&(M.push(L[1]),x.unshift(L[2])),x.length&&(A="/"+x.join(".")+A),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=r.toASCII(this.hostname));var K=this.port?":"+this.port:"",k=this.hostname||"";this.host=k+K,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==A[0]&&(A="/"+A))}if(!y[j])for(B=0,q=h.length;B0)&&n.host.split("@"))&&(n.auth=I.shift(),n.host=n.hostname=I.shift());return n.search=e.search,n.query=e.query,a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!v.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=v.slice(-1)[0],C=(n.host||e.host||v.length>1)&&("."===T||".."===T)||""===T,B=0,O=v.length;O>=0;O--)"."===(T=v[O])?v.splice(O,1):".."===T?(v.splice(O,1),B++):B&&(v.splice(O,1),B--);if(!_&&!j)for(;B--;B)v.unshift("..");!_||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),C&&"/"!==v.join("/").substr(-1)&&v.push("");var I,F=""===v[0]||v[0]&&"/"===v[0].charAt(0);P&&(n.hostname=n.host=F?"":v.length?v.shift():"",(I=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=I.shift(),n.host=n.hostname=I.shift()));return(_=_||n.host&&v.length)&&!F&&v.unshift(""),v.length?n.pathname=v.join("/"):(n.pathname=null,n.path=null),a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Configuration=class{constructor(e,t){this.apiKey=`Bearer ${e}`,this.basePath=t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(12),a=n(0),o=n(1);t.utils=o.default,function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(0));class s{constructor(e,t="https://api.youneedabudget.com/v1"){this._configuration=new r.Configuration(e,t)}get budgets(){return this._budgets||(this._budgets=new a.BudgetsApi(this._configuration)),this._budgets}get accounts(){return this._accounts||(this._accounts=new a.AccountsApi(this._configuration)),this._accounts}get categories(){return this._categories||(this._categories=new a.CategoriesApi(this._configuration)),this._categories}get months(){return this._months||(this._months=new a.MonthsApi(this._configuration)),this._months}get payees(){return this._payees||(this._payees=new a.PayeesApi(this._configuration)),this._payees}get payeeLocations(){return this._payeeLocations||(this._payeeLocations=new a.PayeeLocationsApi(this._configuration)),this._payeeLocations}get transactions(){return this._transactions||(this._transactions=new a.TransactionsApi(this._configuration)),this._transactions}get scheduledTransactions(){return this._scheduledTransactions||(this._scheduledTransactions=new a.ScheduledTransactionsApi(this._configuration)),this._scheduledTransactions}}t.api=s,t.API=s}]); \ No newline at end of file +var ynab=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=13)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(11);n(3);const a="api_client/js/0.17.0";function o(e){return e instanceof Date?e.toISOString().substring(0,10):e}t.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"};class s{constructor(e){e&&(this.configuration=e)}}t.BaseAPI=s;class i extends Error{constructor(e,t){super(t),this.field=e}}t.RequiredError=i,function(e){let t;!function(e){e[e.Checking="checking"]="Checking",e[e.Savings="savings"]="Savings",e[e.Cash="cash"]="Cash",e[e.CreditCard="creditCard"]="CreditCard",e[e.LineOfCredit="lineOfCredit"]="LineOfCredit",e[e.OtherAsset="otherAsset"]="OtherAsset",e[e.OtherLiability="otherLiability"]="OtherLiability",e[e.PayPal="payPal"]="PayPal",e[e.MerchantAccount="merchantAccount"]="MerchantAccount",e[e.InvestmentAccount="investmentAccount"]="InvestmentAccount",e[e.Mortgage="mortgage"]="Mortgage"}(t=e.TypeEnum||(e.TypeEnum={}))}(t.Account||(t.Account={})),function(e){let t,n;!function(e){e[e.Cleared="cleared"]="Cleared",e[e.Uncleared="uncleared"]="Uncleared",e[e.Reconciled="reconciled"]="Reconciled"}(t=e.ClearedEnum||(e.ClearedEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.SaveTransaction||(t.SaveTransaction={})),function(e){let t,n;!function(e){e[e.Never="never"]="Never",e[e.Daily="daily"]="Daily",e[e.Weekly="weekly"]="Weekly",e[e.EveryOtherWeek="everyOtherWeek"]="EveryOtherWeek",e[e.TwiceAMonth="twiceAMonth"]="TwiceAMonth",e[e.Every4Weeks="every4Weeks"]="Every4Weeks",e[e.Monthly="monthly"]="Monthly",e[e.EveryOtherMonth="everyOtherMonth"]="EveryOtherMonth",e[e.Every3Months="every3Months"]="Every3Months",e[e.Every4Months="every4Months"]="Every4Months",e[e.TwiceAYear="twiceAYear"]="TwiceAYear",e[e.Yearly="yearly"]="Yearly",e[e.EveryOtherYear="everyOtherYear"]="EveryOtherYear"}(t=e.FrequencyEnum||(e.FrequencyEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.ScheduledTransactionSummary||(t.ScheduledTransactionSummary={})),function(e){let t,n;!function(e){e[e.Cleared="cleared"]="Cleared",e[e.Uncleared="uncleared"]="Uncleared",e[e.Reconciled="reconciled"]="Reconciled"}(t=e.ClearedEnum||(e.ClearedEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.TransactionSummary||(t.TransactionSummary={})),function(e){let t,n,r;!function(e){e[e.Cleared="cleared"]="Cleared",e[e.Uncleared="uncleared"]="Uncleared",e[e.Reconciled="reconciled"]="Reconciled"}(t=e.ClearedEnum||(e.ClearedEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={})),function(e){e[e.Transaction="transaction"]="Transaction",e[e.Subtransaction="subtransaction"]="Subtransaction"}(r=e.TypeEnum||(e.TypeEnum={}))}(t.HybridTransaction||(t.HybridTransaction={})),function(e){let t,n;!function(e){e[e.Never="never"]="Never",e[e.Daily="daily"]="Daily",e[e.Weekly="weekly"]="Weekly",e[e.EveryOtherWeek="everyOtherWeek"]="EveryOtherWeek",e[e.TwiceAMonth="twiceAMonth"]="TwiceAMonth",e[e.Every4Weeks="every4Weeks"]="Every4Weeks",e[e.Monthly="monthly"]="Monthly",e[e.EveryOtherMonth="everyOtherMonth"]="EveryOtherMonth",e[e.Every3Months="every3Months"]="Every3Months",e[e.Every4Months="every4Months"]="Every4Months",e[e.TwiceAYear="twiceAYear"]="TwiceAYear",e[e.Yearly="yearly"]="Yearly",e[e.EveryOtherYear="everyOtherYear"]="EveryOtherYear"}(t=e.FrequencyEnum||(e.FrequencyEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.ScheduledTransactionDetail||(t.ScheduledTransactionDetail={})),function(e){let t,n;!function(e){e[e.Cleared="cleared"]="Cleared",e[e.Uncleared="uncleared"]="Uncleared",e[e.Reconciled="reconciled"]="Reconciled"}(t=e.ClearedEnum||(e.ClearedEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.TransactionDetail||(t.TransactionDetail={})),t.AccountsApiFetchParamCreator=function(e){return{getAccountById(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getAccountById.");if(null===n||void 0===n)throw new i("account_id","Required parameter account_id was null or undefined when calling getAccountById.");const s="/budgets/{budget_id}/accounts/{account_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{account_id}",encodeURIComponent(String(n))),c=r.parse(s,!0),u=Object.assign({method:"GET"},o),h={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return c.query=Object.assign({},c.query,{},o.query),delete c.search,u.headers=Object.assign({},h,o.headers),{url:r.format(c),options:u}},getAccounts(t,n={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getAccounts.");const o="/budgets/{budget_id}/accounts".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(o,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=a,u.Accept="application/json",e&&e.apiKey){const t=e.apiKey;u.Authorization=t}return s.query=Object.assign({},s.query,{},n.query),delete s.search,c.headers=Object.assign({},u,n.headers),{url:r.format(s),options:c}}}},t.AccountsApiFp=function(e){return{getAccountById(n,r,a){const o=t.AccountsApiFetchParamCreator(e).getAccountById(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getAccounts(n,r){const a=t.AccountsApiFetchParamCreator(e).getAccounts(n,r);return(t=fetch)=>t(e.basePath+a.url,a.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))}}},t.AccountsApiFactory=function(e){return{getAccountById:(n,r,a)=>t.AccountsApiFp(e).getAccountById(n,r,a)(),getAccounts:(n,r)=>t.AccountsApiFp(e).getAccounts(n,r)()}};t.AccountsApi=class extends s{getAccountById(e,n,r){return t.AccountsApiFp(this.configuration).getAccountById(e,n,r)()}getAccounts(e,n){return t.AccountsApiFp(this.configuration).getAccounts(e,n)()}},t.BudgetsApiFetchParamCreator=function(e){return{getBudgetById(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getBudgetById.");const s="/budgets/{budget_id}".replace("{budget_id}",encodeURIComponent(String(t))),c=r.parse(s,!0),u=Object.assign({method:"GET"},o),h={},d={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return void 0!==n&&(d.last_knowledge_of_server=n),c.query=Object.assign({},c.query,d,o.query),delete c.search,u.headers=Object.assign({},h,o.headers),{url:r.format(c),options:u}},getBudgets(t={}){const n=r.parse("/budgets",!0),o=Object.assign({method:"GET"},t),s={};if(s["User-Agent"]=a,s.Accept="application/json",e&&e.apiKey){const t=e.apiKey;s.Authorization=t}return n.query=Object.assign({},n.query,{},t.query),delete n.search,o.headers=Object.assign({},s,t.headers),{url:r.format(n),options:o}}}},t.BudgetsApiFp=function(e){return{getBudgetById(n,r,a){const o=t.BudgetsApiFetchParamCreator(e).getBudgetById(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getBudgets(n){const r=t.BudgetsApiFetchParamCreator(e).getBudgets(n);return(t=fetch)=>t(e.basePath+r.url,r.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))}}},t.BudgetsApiFactory=function(e){return{getBudgetById:(n,r,a)=>t.BudgetsApiFp(e).getBudgetById(n,r,a)(),getBudgets:n=>t.BudgetsApiFp(e).getBudgets(n)()}};t.BudgetsApi=class extends s{getBudgetById(e,n,r){return t.BudgetsApiFp(this.configuration).getBudgetById(e,n,r)()}getBudgets(e){return t.BudgetsApiFp(this.configuration).getBudgets(e)()}},t.CategoriesApiFetchParamCreator=function(e){return{getCategories(t,n={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getCategories.");const o="/budgets/{budget_id}/categories".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(o,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=a,u.Accept="application/json",e&&e.apiKey){const t=e.apiKey;u.Authorization=t}return s.query=Object.assign({},s.query,{},n.query),delete s.search,c.headers=Object.assign({},u,n.headers),{url:r.format(s),options:c}},getCategoryById(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getCategoryById.");if(null===n||void 0===n)throw new i("category_id","Required parameter category_id was null or undefined when calling getCategoryById.");const s="/budgets/{budget_id}/categories/{category_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{category_id}",encodeURIComponent(String(n))),c=r.parse(s,!0),u=Object.assign({method:"GET"},o),h={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return c.query=Object.assign({},c.query,{},o.query),delete c.search,u.headers=Object.assign({},h,o.headers),{url:r.format(c),options:u}}}},t.CategoriesApiFp=function(e){return{getCategories(n,r){const a=t.CategoriesApiFetchParamCreator(e).getCategories(n,r);return(t=fetch)=>t(e.basePath+a.url,a.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getCategoryById(n,r,a){const o=t.CategoriesApiFetchParamCreator(e).getCategoryById(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))}}},t.CategoriesApiFactory=function(e){return{getCategories:(n,r)=>t.CategoriesApiFp(e).getCategories(n,r)(),getCategoryById:(n,r,a)=>t.CategoriesApiFp(e).getCategoryById(n,r,a)()}};t.CategoriesApi=class extends s{getCategories(e,n){return t.CategoriesApiFp(this.configuration).getCategories(e,n)()}getCategoryById(e,n,r){return t.CategoriesApiFp(this.configuration).getCategoryById(e,n,r)()}},t.MonthsApiFetchParamCreator=function(e){return{getBudgetMonth(t,n,s={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getBudgetMonth.");if(null===n||void 0===n)throw new i("month","Required parameter month was null or undefined when calling getBudgetMonth.");const c="/budgets/{budget_id}/months/{month}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{month}",encodeURIComponent(o(n))),u=r.parse(c,!0),h=Object.assign({method:"GET"},s),d={};if(d["User-Agent"]=a,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return u.query=Object.assign({},u.query,{},s.query),delete u.search,h.headers=Object.assign({},d,s.headers),{url:r.format(u),options:h}},getBudgetMonths(t,n={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getBudgetMonths.");const o="/budgets/{budget_id}/months".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(o,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=a,u.Accept="application/json",e&&e.apiKey){const t=e.apiKey;u.Authorization=t}return s.query=Object.assign({},s.query,{},n.query),delete s.search,c.headers=Object.assign({},u,n.headers),{url:r.format(s),options:c}}}},t.MonthsApiFp=function(e){return{getBudgetMonth(n,r,a){const o=t.MonthsApiFetchParamCreator(e).getBudgetMonth(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getBudgetMonths(n,r){const a=t.MonthsApiFetchParamCreator(e).getBudgetMonths(n,r);return(t=fetch)=>t(e.basePath+a.url,a.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))}}},t.MonthsApiFactory=function(e){return{getBudgetMonth:(n,r,a)=>t.MonthsApiFp(e).getBudgetMonth(n,r,a)(),getBudgetMonths:(n,r)=>t.MonthsApiFp(e).getBudgetMonths(n,r)()}};t.MonthsApi=class extends s{getBudgetMonth(e,n,r){return t.MonthsApiFp(this.configuration).getBudgetMonth(e,n,r)()}getBudgetMonths(e,n){return t.MonthsApiFp(this.configuration).getBudgetMonths(e,n)()}},t.PayeeLocationsApiFetchParamCreator=function(e){return{getPayeeLocationById(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getPayeeLocationById.");if(null===n||void 0===n)throw new i("payee_location_id","Required parameter payee_location_id was null or undefined when calling getPayeeLocationById.");const s="/budgets/{budget_id}/payee_locations/{payee_location_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{payee_location_id}",encodeURIComponent(String(n))),c=r.parse(s,!0),u=Object.assign({method:"GET"},o),h={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return c.query=Object.assign({},c.query,{},o.query),delete c.search,u.headers=Object.assign({},h,o.headers),{url:r.format(c),options:u}},getPayeeLocations(t,n={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getPayeeLocations.");const o="/budgets/{budget_id}/payee_locations".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(o,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=a,u.Accept="application/json",e&&e.apiKey){const t=e.apiKey;u.Authorization=t}return s.query=Object.assign({},s.query,{},n.query),delete s.search,c.headers=Object.assign({},u,n.headers),{url:r.format(s),options:c}},getPayeeLocationsByPayee(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getPayeeLocationsByPayee.");if(null===n||void 0===n)throw new i("payee_id","Required parameter payee_id was null or undefined when calling getPayeeLocationsByPayee.");const s="/budgets/{budget_id}/payees/{payee_id}/payee_locations".replace("{budget_id}",encodeURIComponent(String(t))).replace("{payee_id}",encodeURIComponent(String(n))),c=r.parse(s,!0),u=Object.assign({method:"GET"},o),h={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return c.query=Object.assign({},c.query,{},o.query),delete c.search,u.headers=Object.assign({},h,o.headers),{url:r.format(c),options:u}}}},t.PayeeLocationsApiFp=function(e){return{getPayeeLocationById(n,r,a){const o=t.PayeeLocationsApiFetchParamCreator(e).getPayeeLocationById(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getPayeeLocations(n,r){const a=t.PayeeLocationsApiFetchParamCreator(e).getPayeeLocations(n,r);return(t=fetch)=>t(e.basePath+a.url,a.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getPayeeLocationsByPayee(n,r,a){const o=t.PayeeLocationsApiFetchParamCreator(e).getPayeeLocationsByPayee(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))}}},t.PayeeLocationsApiFactory=function(e){return{getPayeeLocationById:(n,r,a)=>t.PayeeLocationsApiFp(e).getPayeeLocationById(n,r,a)(),getPayeeLocations:(n,r)=>t.PayeeLocationsApiFp(e).getPayeeLocations(n,r)(),getPayeeLocationsByPayee:(n,r,a)=>t.PayeeLocationsApiFp(e).getPayeeLocationsByPayee(n,r,a)()}};t.PayeeLocationsApi=class extends s{getPayeeLocationById(e,n,r){return t.PayeeLocationsApiFp(this.configuration).getPayeeLocationById(e,n,r)()}getPayeeLocations(e,n){return t.PayeeLocationsApiFp(this.configuration).getPayeeLocations(e,n)()}getPayeeLocationsByPayee(e,n,r){return t.PayeeLocationsApiFp(this.configuration).getPayeeLocationsByPayee(e,n,r)()}},t.PayeesApiFetchParamCreator=function(e){return{getPayeeById(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getPayeeById.");if(null===n||void 0===n)throw new i("payee_id","Required parameter payee_id was null or undefined when calling getPayeeById.");const s="/budgets/{budget_id}/payees/{payee_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{payee_id}",encodeURIComponent(String(n))),c=r.parse(s,!0),u=Object.assign({method:"GET"},o),h={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return c.query=Object.assign({},c.query,{},o.query),delete c.search,u.headers=Object.assign({},h,o.headers),{url:r.format(c),options:u}},getPayees(t,n={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getPayees.");const o="/budgets/{budget_id}/payees".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(o,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=a,u.Accept="application/json",e&&e.apiKey){const t=e.apiKey;u.Authorization=t}return s.query=Object.assign({},s.query,{},n.query),delete s.search,c.headers=Object.assign({},u,n.headers),{url:r.format(s),options:c}}}},t.PayeesApiFp=function(e){return{getPayeeById(n,r,a){const o=t.PayeesApiFetchParamCreator(e).getPayeeById(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getPayees(n,r){const a=t.PayeesApiFetchParamCreator(e).getPayees(n,r);return(t=fetch)=>t(e.basePath+a.url,a.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))}}},t.PayeesApiFactory=function(e){return{getPayeeById:(n,r,a)=>t.PayeesApiFp(e).getPayeeById(n,r,a)(),getPayees:(n,r)=>t.PayeesApiFp(e).getPayees(n,r)()}};t.PayeesApi=class extends s{getPayeeById(e,n,r){return t.PayeesApiFp(this.configuration).getPayeeById(e,n,r)()}getPayees(e,n){return t.PayeesApiFp(this.configuration).getPayees(e,n)()}},t.ScheduledTransactionsApiFetchParamCreator=function(e){return{getScheduledTransactionById(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getScheduledTransactionById.");if(null===n||void 0===n)throw new i("scheduled_transaction_id","Required parameter scheduled_transaction_id was null or undefined when calling getScheduledTransactionById.");const s="/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{scheduled_transaction_id}",encodeURIComponent(String(n))),c=r.parse(s,!0),u=Object.assign({method:"GET"},o),h={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return c.query=Object.assign({},c.query,{},o.query),delete c.search,u.headers=Object.assign({},h,o.headers),{url:r.format(c),options:u}},getScheduledTransactions(t,n={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getScheduledTransactions.");const o="/budgets/{budget_id}/scheduled_transactions".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(o,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=a,u.Accept="application/json",e&&e.apiKey){const t=e.apiKey;u.Authorization=t}return s.query=Object.assign({},s.query,{},n.query),delete s.search,c.headers=Object.assign({},u,n.headers),{url:r.format(s),options:c}}}},t.ScheduledTransactionsApiFp=function(e){return{getScheduledTransactionById(n,r,a){const o=t.ScheduledTransactionsApiFetchParamCreator(e).getScheduledTransactionById(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getScheduledTransactions(n,r){const a=t.ScheduledTransactionsApiFetchParamCreator(e).getScheduledTransactions(n,r);return(t=fetch)=>t(e.basePath+a.url,a.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))}}},t.ScheduledTransactionsApiFactory=function(e){return{getScheduledTransactionById:(n,r,a)=>t.ScheduledTransactionsApiFp(e).getScheduledTransactionById(n,r,a)(),getScheduledTransactions:(n,r)=>t.ScheduledTransactionsApiFp(e).getScheduledTransactions(n,r)()}};t.ScheduledTransactionsApi=class extends s{getScheduledTransactionById(e,n,r){return t.ScheduledTransactionsApiFp(this.configuration).getScheduledTransactionById(e,n,r)()}getScheduledTransactions(e,n){return t.ScheduledTransactionsApiFp(this.configuration).getScheduledTransactions(e,n)()}},t.TransactionsApiFetchParamCreator=function(e){return{bulkCreateTransactions(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling bulkCreateTransactions.");if(null===n||void 0===n)throw new i("transactions","Required parameter transactions was null or undefined when calling bulkCreateTransactions.");const s="/budgets/{budget_id}/transactions/bulk".replace("{budget_id}",encodeURIComponent(String(t))),c=r.parse(s,!0),u=Object.assign({method:"POST"},o),h={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return h["Content-Type"]="application/json",c.query=Object.assign({},c.query,{},o.query),delete c.search,u.headers=Object.assign({},h,o.headers),u.body=JSON.stringify(n||{}),{url:r.format(c),options:u}},createTransaction(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling createTransaction.");if(null===n||void 0===n)throw new i("transaction","Required parameter transaction was null or undefined when calling createTransaction.");const s="/budgets/{budget_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))),c=r.parse(s,!0),u=Object.assign({method:"POST"},o),h={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return h["Content-Type"]="application/json",c.query=Object.assign({},c.query,{},o.query),delete c.search,u.headers=Object.assign({},h,o.headers),u.body=JSON.stringify(n||{}),{url:r.format(c),options:u}},getTransactions(t,n,s,c={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getTransactions.");const u="/budgets/{budget_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))),h=r.parse(u,!0),d=Object.assign({method:"GET"},c),l={},p={};if(l["User-Agent"]=a,l.Accept="application/json",e&&e.apiKey){const t=e.apiKey;l.Authorization=t}return void 0!==n&&(p.since_date=o(n)),void 0!==s&&(p.type=s),h.query=Object.assign({},h.query,p,c.query),delete h.search,d.headers=Object.assign({},l,c.headers),{url:r.format(h),options:d}},getTransactionsByAccount(t,n,s,c={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsByAccount.");if(null===n||void 0===n)throw new i("account_id","Required parameter account_id was null or undefined when calling getTransactionsByAccount.");const u="/budgets/{budget_id}/accounts/{account_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))).replace("{account_id}",encodeURIComponent(String(n))),h=r.parse(u,!0),d=Object.assign({method:"GET"},c),l={},p={};if(l["User-Agent"]=a,l.Accept="application/json",e&&e.apiKey){const t=e.apiKey;l.Authorization=t}return void 0!==s&&(p.since_date=o(s)),h.query=Object.assign({},h.query,p,c.query),delete h.search,d.headers=Object.assign({},l,c.headers),{url:r.format(h),options:d}},getTransactionsByCategory(t,n,s,c={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsByCategory.");if(null===n||void 0===n)throw new i("category_id","Required parameter category_id was null or undefined when calling getTransactionsByCategory.");const u="/budgets/{budget_id}/categories/{category_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))).replace("{category_id}",encodeURIComponent(String(n))),h=r.parse(u,!0),d=Object.assign({method:"GET"},c),l={},p={};if(l["User-Agent"]=a,l.Accept="application/json",e&&e.apiKey){const t=e.apiKey;l.Authorization=t}return void 0!==s&&(p.since_date=o(s)),h.query=Object.assign({},h.query,p,c.query),delete h.search,d.headers=Object.assign({},l,c.headers),{url:r.format(h),options:d}},getTransactionsById(t,n,o={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsById.");if(null===n||void 0===n)throw new i("transaction_id","Required parameter transaction_id was null or undefined when calling getTransactionsById.");const s="/budgets/{budget_id}/transactions/{transaction_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{transaction_id}",encodeURIComponent(String(n))),c=r.parse(s,!0),u=Object.assign({method:"GET"},o),h={};if(h["User-Agent"]=a,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return c.query=Object.assign({},c.query,{},o.query),delete c.search,u.headers=Object.assign({},h,o.headers),{url:r.format(c),options:u}},getTransactionsByPayee(t,n,s,c={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsByPayee.");if(null===n||void 0===n)throw new i("payee_id","Required parameter payee_id was null or undefined when calling getTransactionsByPayee.");const u="/budgets/{budget_id}/payees/{payee_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))).replace("{payee_id}",encodeURIComponent(String(n))),h=r.parse(u,!0),d=Object.assign({method:"GET"},c),l={},p={};if(l["User-Agent"]=a,l.Accept="application/json",e&&e.apiKey){const t=e.apiKey;l.Authorization=t}return void 0!==s&&(p.since_date=o(s)),h.query=Object.assign({},h.query,p,c.query),delete h.search,d.headers=Object.assign({},l,c.headers),{url:r.format(h),options:d}},updateTransaction(t,n,o,s={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling updateTransaction.");if(null===n||void 0===n)throw new i("transaction_id","Required parameter transaction_id was null or undefined when calling updateTransaction.");if(null===o||void 0===o)throw new i("transaction","Required parameter transaction was null or undefined when calling updateTransaction.");const c="/budgets/{budget_id}/transactions/{transaction_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{transaction_id}",encodeURIComponent(String(n))),u=r.parse(c,!0),h=Object.assign({method:"PUT"},s),d={};if(d["User-Agent"]=a,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return d["Content-Type"]="application/json",u.query=Object.assign({},u.query,{},s.query),delete u.search,h.headers=Object.assign({},d,s.headers),h.body=JSON.stringify(o||{}),{url:r.format(u),options:h}}}},t.TransactionsApiFp=function(e){return{bulkCreateTransactions(n,r,a){const o=t.TransactionsApiFetchParamCreator(e).bulkCreateTransactions(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},createTransaction(n,r,a){const o=t.TransactionsApiFetchParamCreator(e).createTransaction(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getTransactions(n,r,a,o){const s=t.TransactionsApiFetchParamCreator(e).getTransactions(n,r,a,o);return(t=fetch)=>t(e.basePath+s.url,s.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getTransactionsByAccount(n,r,a,o){const s=t.TransactionsApiFetchParamCreator(e).getTransactionsByAccount(n,r,a,o);return(t=fetch)=>t(e.basePath+s.url,s.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getTransactionsByCategory(n,r,a,o){const s=t.TransactionsApiFetchParamCreator(e).getTransactionsByCategory(n,r,a,o);return(t=fetch)=>t(e.basePath+s.url,s.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getTransactionsById(n,r,a){const o=t.TransactionsApiFetchParamCreator(e).getTransactionsById(n,r,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getTransactionsByPayee(n,r,a,o){const s=t.TransactionsApiFetchParamCreator(e).getTransactionsByPayee(n,r,a,o);return(t=fetch)=>t(e.basePath+s.url,s.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},updateTransaction(n,r,a,o){const s=t.TransactionsApiFetchParamCreator(e).updateTransaction(n,r,a,o);return(t=fetch)=>t(e.basePath+s.url,s.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))}}},t.TransactionsApiFactory=function(e){return{bulkCreateTransactions:(n,r,a)=>t.TransactionsApiFp(e).bulkCreateTransactions(n,r,a)(),createTransaction:(n,r,a)=>t.TransactionsApiFp(e).createTransaction(n,r,a)(),getTransactions:(n,r,a,o)=>t.TransactionsApiFp(e).getTransactions(n,r,a,o)(),getTransactionsByAccount:(n,r,a,o)=>t.TransactionsApiFp(e).getTransactionsByAccount(n,r,a,o)(),getTransactionsByCategory:(n,r,a,o)=>t.TransactionsApiFp(e).getTransactionsByCategory(n,r,a,o)(),getTransactionsById:(n,r,a)=>t.TransactionsApiFp(e).getTransactionsById(n,r,a)(),getTransactionsByPayee:(n,r,a,o)=>t.TransactionsApiFp(e).getTransactionsByPayee(n,r,a,o)(),updateTransaction:(n,r,a,o)=>t.TransactionsApiFp(e).updateTransaction(n,r,a,o)()}};t.TransactionsApi=class extends s{bulkCreateTransactions(e,n,r){return t.TransactionsApiFp(this.configuration).bulkCreateTransactions(e,n,r)()}createTransaction(e,n,r){return t.TransactionsApiFp(this.configuration).createTransaction(e,n,r)()}getTransactions(e,n,r,a){return t.TransactionsApiFp(this.configuration).getTransactions(e,n,r,a)()}getTransactionsByAccount(e,n,r,a){return t.TransactionsApiFp(this.configuration).getTransactionsByAccount(e,n,r,a)()}getTransactionsByCategory(e,n,r,a){return t.TransactionsApiFp(this.configuration).getTransactionsByCategory(e,n,r,a)()}getTransactionsById(e,n,r){return t.TransactionsApiFp(this.configuration).getTransactionsById(e,n,r)()}getTransactionsByPayee(e,n,r,a){return t.TransactionsApiFp(this.configuration).getTransactionsByPayee(e,n,r,a)()}updateTransaction(e,n,r,a){return t.TransactionsApiFp(this.configuration).updateTransaction(e,n,r,a)()}},t.UserApiFetchParamCreator=function(e){return{getUser(t={}){const n=r.parse("/user",!0),o=Object.assign({method:"GET"},t),s={};if(s["User-Agent"]=a,s.Accept="application/json",e&&e.apiKey){const t=e.apiKey;s.Authorization=t}return n.query=Object.assign({},n.query,{},t.query),delete n.search,o.headers=Object.assign({},s,t.headers),{url:r.format(n),options:o}}}},t.UserApiFp=function(e){return{getUser(n){const r=t.UserApiFetchParamCreator(e).getUser(n);return(t=fetch)=>t(e.basePath+r.url,r.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))}}},t.UserApiFactory=function(e){return{getUser:n=>t.UserApiFp(e).getUser(n)()}};t.UserApi=class extends s{getUser(e){return t.UserApiFp(this.configuration).getUser(e)()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getCurrentMonthInISOFormat(){return`${this.getCurrentDateInISOFormat().substr(0,7)}-01`},getCurrentDateInISOFormat(){let e=new Date;return new Date(e.getTime()-6e4*e.getTimezoneOffset()).toISOString()},convertFromISODateString:e=>new Date(new Date(e)),convertMilliUnitsToCurrencyAmount(e,t=2){let n=Math.pow(10,3-Math.min(3,t));n=1/n;let r=Math.round(e*n)/n*(.1/Math.pow(10,2));return Number(r.toFixed(t))}}},function(e,t){!function(e){"use strict";if(!e.fetch){var t={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(t.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=function(e){return e&&DataView.prototype.isPrototypeOf(e)},a=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};h.prototype.append=function(e,t){e=i(e),t=c(t);var n=this.map[e];this.map[e]=n?n+","+t:t},h.prototype.delete=function(e){delete this.map[i(e)]},h.prototype.get=function(e){return e=i(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(i(e))},h.prototype.set=function(e,t){this.map[i(e)]=c(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),u(e)},h.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},h.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),u(e)},t.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);var o=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];f.prototype.clone=function(){return new f(this,{body:this._bodyInit})},y.call(f.prototype),y.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:0,statusText:""});return e.type="error",e};var s=[301,302,303,307,308];b.redirect=function(e,t){if(-1===s.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},e.Headers=h,e.Request=f,e.Response=b,e.fetch=function(e,n){return new Promise(function(r,a){var o=new f(e,n),s=new XMLHttpRequest;s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new h,e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var a=n.join(":").trim();t.append(r,a)}}),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var a="response"in s?s.response:s.responseText;r(new b(a,n))},s.onerror=function(){a(new TypeError("Network request failed"))},s.ontimeout=function(){a(new TypeError("Network request failed"))},s.open(o.method,o.url,!0),"include"===o.credentials&&(s.withCredentials=!0),"responseType"in s&&t.blob&&(s.responseType="blob"),o.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),s.send(void 0===o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}function i(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(n[Symbol.iterator]=function(){return n}),n}function h(e){this.map={},e instanceof h?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function l(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function p(e){var t=new FileReader,n=l(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(t.arrayBuffer&&t.blob&&r(e))this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!t.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!a(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=g(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var e,t,n,r=d(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=l(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a)}function m(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(a))}}),t}function b(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},function(e,t,n){n(2),e.exports=self.fetch.bind(self)},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,i){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?o(s(e),function(s){var i=encodeURIComponent(r(s))+n;return a(e[s])?o(e[s],function(e){return i+encodeURIComponent(r(e))}).join(t):i+encodeURIComponent(r(e[s]))}).join(t):i?encodeURIComponent(r(i))+n+encodeURIComponent(r(e)):""};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r0&&u>c&&(u=c);for(var h=0;h=0?(d=y.substr(0,f),l=y.substr(f+1)):(d=y,l=""),p=decodeURIComponent(d),g=decodeURIComponent(l),r(s,p)?a(s[p])?s[p].push(g):s[p]=[s[p],g]:s[p]=g}return s};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";t.decode=t.parse=n(5),t.encode=t.stringify=n(4)},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){(function(e,r){var a;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){"object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType;var s="object"==typeof r&&r;s.global!==s&&s.window!==s&&s.self;var i,c=2147483647,u=36,h=1,d=26,l=38,p=700,g=72,y=128,f="-",m=/^xn--/,b=/[^\x20-\x7E]/,A=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=u-h,_=Math.floor,v=String.fromCharCode;function P(e){throw new RangeError(w[e])}function T(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function C(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+T((e=e.replace(A,".")).split("."),t).join(".")}function B(e){for(var t,n,r=[],a=0,o=e.length;a=55296&&t<=56319&&a65535&&(t+=v((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=v(e)}).join("")}function I(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function F(e,t,n){var r=0;for(e=n?_(e/p):e>>1,e+=_(e/t);e>j*d>>1;r+=u)e=_(e/j);return _(r+(j+1)*e/(e+l))}function q(e){var t,n,r,a,o,s,i,l,p,m,b,A=[],w=e.length,j=0,v=y,T=g;for((n=e.lastIndexOf(f))<0&&(n=0),r=0;r=128&&P("not-basic"),A.push(e.charCodeAt(r));for(a=n>0?n+1:0;a=w&&P("invalid-input"),((l=(b=e.charCodeAt(a++))-48<10?b-22:b-65<26?b-65:b-97<26?b-97:u)>=u||l>_((c-j)/s))&&P("overflow"),j+=l*s,!(l<(p=i<=T?h:i>=T+d?d:i-T));i+=u)s>_(c/(m=u-p))&&P("overflow"),s*=m;T=F(j-o,t=A.length+1,0==o),_(j/t)>c-v&&P("overflow"),v+=_(j/t),j%=t,A.splice(j++,0,v)}return O(A)}function R(e){var t,n,r,a,o,s,i,l,p,m,b,A,w,j,T,C=[];for(A=(e=B(e)).length,t=y,n=0,o=g,s=0;s=t&&b_((c-n)/(w=r+1))&&P("overflow"),n+=(i-t)*w,t=i,s=0;sc&&P("overflow"),b==t){for(l=n,p=u;!(l<(m=p<=o?h:p>=o+d?d:p-o));p+=u)T=l-m,j=u-m,C.push(v(I(m+T%j,0))),l=_(T/j);C.push(v(I(l,0))),o=F(n,w,r==a),n=0,++r}++n,++t}return C.join("")}i={version:"1.4.1",ucs2:{decode:B,encode:O},decode:q,encode:R,toASCII:function(e){return C(e,function(e){return b.test(e)?"xn--"+R(e):e})},toUnicode:function(e){return C(e,function(e){return m.test(e)?q(e.slice(4).toLowerCase()):e})}},void 0===(a=function(){return i}.call(t,n,t,e))||(e.exports=a)}()}).call(this,n(9)(e),n(8))},function(e,t,n){"use strict";var r=n(10),a=n(7);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=A,t.resolve=function(e,t){return A(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?A(e,!1,!0).resolveObject(t):t},t.format=function(e){a.isString(e)&&(e=A(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var s=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),h=["'"].concat(u),d=["%","/","?",";","#"].concat(h),l=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},f={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(6);function A(e,t,n){if(e&&a.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),i=-1!==o&&o127?U+="x":U+=R[S];if(!U.match(p)){var M=F.slice(0,B),x=F.slice(B+1),L=R.match(g);L&&(M.push(L[1]),x.unshift(L[2])),x.length&&(A="/"+x.join(".")+A),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=r.toASCII(this.hostname));var K=this.port?":"+this.port:"",k=this.hostname||"";this.host=k+K,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==A[0]&&(A="/"+A))}if(!y[_])for(B=0,q=h.length;B0)&&n.host.split("@"))&&(n.auth=I.shift(),n.host=n.hostname=I.shift());return n.search=e.search,n.query=e.query,a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!v.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=v.slice(-1)[0],C=(n.host||e.host||v.length>1)&&("."===T||".."===T)||""===T,B=0,O=v.length;O>=0;O--)"."===(T=v[O])?v.splice(O,1):".."===T?(v.splice(O,1),B++):B&&(v.splice(O,1),B--);if(!j&&!_)for(;B--;B)v.unshift("..");!j||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),C&&"/"!==v.join("/").substr(-1)&&v.push("");var I,F=""===v[0]||v[0]&&"/"===v[0].charAt(0);P&&(n.hostname=n.host=F?"":v.length?v.shift():"",(I=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=I.shift(),n.host=n.hostname=I.shift()));return(j=j||n.host&&v.length)&&!F&&v.unshift(""),v.length?n.pathname=v.join("/"):(n.pathname=null,n.path=null),a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Configuration=class{constructor(e,t){this.apiKey=`Bearer ${e}`,this.basePath=t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(12),a=n(0),o=n(1);t.utils=o.default,function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(0));class s{constructor(e,t="https://api.youneedabudget.com/v1"){this._configuration=new r.Configuration(e,t)}get budgets(){return this._budgets||(this._budgets=new a.BudgetsApi(this._configuration)),this._budgets}get accounts(){return this._accounts||(this._accounts=new a.AccountsApi(this._configuration)),this._accounts}get categories(){return this._categories||(this._categories=new a.CategoriesApi(this._configuration)),this._categories}get months(){return this._months||(this._months=new a.MonthsApi(this._configuration)),this._months}get payees(){return this._payees||(this._payees=new a.PayeesApi(this._configuration)),this._payees}get payeeLocations(){return this._payeeLocations||(this._payeeLocations=new a.PayeeLocationsApi(this._configuration)),this._payeeLocations}get transactions(){return this._transactions||(this._transactions=new a.TransactionsApi(this._configuration)),this._transactions}get scheduledTransactions(){return this._scheduledTransactions||(this._scheduledTransactions=new a.ScheduledTransactionsApi(this._configuration)),this._scheduledTransactions}}t.api=s,t.API=s}]); \ No newline at end of file diff --git a/dist/esm/api.d.ts b/dist/esm/api.d.ts index 582680b..5fa025f 100644 --- a/dist/esm/api.d.ts +++ b/dist/esm/api.d.ts @@ -1,3 +1,14 @@ +/** + * YNAB API Endpoints + * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com + * + * OpenAPI spec version: 1.0.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ import { Configuration } from "./configuration"; /** * @@ -133,7 +144,7 @@ export declare namespace Account { PayPal, MerchantAccount, InvestmentAccount, - Mortgage, + Mortgage } } /** @@ -957,7 +968,7 @@ export declare namespace SaveTransaction { enum ClearedEnum { Cleared, Uncleared, - Reconciled, + Reconciled } /** * @export @@ -969,7 +980,7 @@ export declare namespace SaveTransaction { Yellow, Green, Blue, - Purple, + Purple } } /** @@ -1154,7 +1165,7 @@ export declare namespace ScheduledTransactionSummary { Every4Months, TwiceAYear, Yearly, - EveryOtherYear, + EveryOtherYear } /** * @export @@ -1166,7 +1177,7 @@ export declare namespace ScheduledTransactionSummary { Yellow, Green, Blue, - Purple, + Purple } } /** @@ -1373,7 +1384,7 @@ export declare namespace TransactionSummary { enum ClearedEnum { Cleared, Uncleared, - Reconciled, + Reconciled } /** * @export @@ -1385,7 +1396,7 @@ export declare namespace TransactionSummary { Yellow, Green, Blue, - Purple, + Purple } } /** @@ -1727,7 +1738,7 @@ export declare namespace HybridTransaction { enum ClearedEnum { Cleared, Uncleared, - Reconciled, + Reconciled } /** * @export @@ -1739,7 +1750,7 @@ export declare namespace HybridTransaction { Yellow, Green, Blue, - Purple, + Purple } /** * @export @@ -1747,7 +1758,7 @@ export declare namespace HybridTransaction { */ enum TypeEnum { Transaction, - Subtransaction, + Subtransaction } } /** @@ -1912,7 +1923,7 @@ export declare namespace ScheduledTransactionDetail { Every4Months, TwiceAYear, Yearly, - EveryOtherYear, + EveryOtherYear } /** * @export @@ -1924,7 +1935,7 @@ export declare namespace ScheduledTransactionDetail { Yellow, Green, Blue, - Purple, + Purple } } /** @@ -2048,7 +2059,7 @@ export declare namespace TransactionDetail { enum ClearedEnum { Cleared, Uncleared, - Reconciled, + Reconciled } /** * @export @@ -2060,7 +2071,7 @@ export declare namespace TransactionDetail { Yellow, Green, Blue, - Purple, + Purple } } /** @@ -2068,7 +2079,22 @@ export declare namespace TransactionDetail { * @export */ export declare const AccountsApiFetchParamCreator: (configuration?: Configuration) => { + /** + * Returns a single account + * @summary Single account + * @param {string} budget_id - The ID of the Budget. + * @param {string} account_id - The ID of the Account. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getAccountById(budget_id: string, account_id: string, options?: any): FetchArgs; + /** + * Returns all accounts + * @summary Account list + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getAccounts(budget_id: string, options?: any): FetchArgs; }; /** @@ -2076,7 +2102,22 @@ export declare const AccountsApiFetchParamCreator: (configuration?: Configuratio * @export */ export declare const AccountsApiFp: (configuration?: Configuration) => { + /** + * Returns a single account + * @summary Single account + * @param {string} budget_id - The ID of the Budget. + * @param {string} account_id - The ID of the Account. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getAccountById(budget_id: string, account_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns all accounts + * @summary Account list + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getAccounts(budget_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; }; /** @@ -2084,7 +2125,22 @@ export declare const AccountsApiFp: (configuration?: Configuration) => { * @export */ export declare const AccountsApiFactory: (configuration?: Configuration) => { + /** + * Returns a single account + * @summary Single account + * @param {string} budget_id - The ID of the Budget. + * @param {string} account_id - The ID of the Account. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getAccountById(budget_id: string, account_id: string, options?: any): Promise; + /** + * Returns all accounts + * @summary Account list + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getAccounts(budget_id: string, options?: any): Promise; }; /** @@ -2119,7 +2175,21 @@ export declare class AccountsApi extends BaseAPI { * @export */ export declare const BudgetsApiFetchParamCreator: (configuration?: Configuration) => { + /** + * Returns a single budget with all related entities. This resource is effectively a full budget export. + * @summary Single budget + * @param {string} budget_id - The ID of the Budget. + * @param {number} [last_knowledge_of_server] - The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgetById(budget_id: string, last_knowledge_of_server?: number, options?: any): FetchArgs; + /** + * Returns budgets list with summary information. + * @summary List budgets + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgets(options?: any): FetchArgs; }; /** @@ -2127,7 +2197,21 @@ export declare const BudgetsApiFetchParamCreator: (configuration?: Configuration * @export */ export declare const BudgetsApiFp: (configuration?: Configuration) => { + /** + * Returns a single budget with all related entities. This resource is effectively a full budget export. + * @summary Single budget + * @param {string} budget_id - The ID of the Budget. + * @param {number} [last_knowledge_of_server] - The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgetById(budget_id: string, last_knowledge_of_server?: number, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns budgets list with summary information. + * @summary List budgets + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgets(options?: any): (fetchFunction?: FetchAPI) => Promise; }; /** @@ -2135,7 +2219,21 @@ export declare const BudgetsApiFp: (configuration?: Configuration) => { * @export */ export declare const BudgetsApiFactory: (configuration?: Configuration) => { + /** + * Returns a single budget with all related entities. This resource is effectively a full budget export. + * @summary Single budget + * @param {string} budget_id - The ID of the Budget. + * @param {number} [last_knowledge_of_server] - The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgetById(budget_id: string, last_knowledge_of_server?: number, options?: any): Promise; + /** + * Returns budgets list with summary information. + * @summary List budgets + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgets(options?: any): Promise; }; /** @@ -2169,7 +2267,22 @@ export declare class BudgetsApi extends BaseAPI { * @export */ export declare const CategoriesApiFetchParamCreator: (configuration?: Configuration) => { + /** + * Returns all categories grouped by category group. + * @summary List categories + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getCategories(budget_id: string, options?: any): FetchArgs; + /** + * Returns a single category + * @summary Single category + * @param {string} budget_id - The ID of the Budget. + * @param {string} category_id - The ID of the Category. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getCategoryById(budget_id: string, category_id: string, options?: any): FetchArgs; }; /** @@ -2177,7 +2290,22 @@ export declare const CategoriesApiFetchParamCreator: (configuration?: Configurat * @export */ export declare const CategoriesApiFp: (configuration?: Configuration) => { + /** + * Returns all categories grouped by category group. + * @summary List categories + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getCategories(budget_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns a single category + * @summary Single category + * @param {string} budget_id - The ID of the Budget. + * @param {string} category_id - The ID of the Category. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getCategoryById(budget_id: string, category_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; }; /** @@ -2185,7 +2313,22 @@ export declare const CategoriesApiFp: (configuration?: Configuration) => { * @export */ export declare const CategoriesApiFactory: (configuration?: Configuration) => { + /** + * Returns all categories grouped by category group. + * @summary List categories + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getCategories(budget_id: string, options?: any): Promise; + /** + * Returns a single category + * @summary Single category + * @param {string} budget_id - The ID of the Budget. + * @param {string} category_id - The ID of the Category. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getCategoryById(budget_id: string, category_id: string, options?: any): Promise; }; /** @@ -2220,7 +2363,22 @@ export declare class CategoriesApi extends BaseAPI { * @export */ export declare const MonthsApiFetchParamCreator: (configuration?: Configuration) => { + /** + * Returns a single budget month + * @summary Single budget month + * @param {string} budget_id - The ID of the Budget. + * @param {Date} month - The Budget Month. \"current\" can also be used to specify the current calendar month (UTC). + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgetMonth(budget_id: string, month: string | Date, options?: any): FetchArgs; + /** + * Returns all budget months + * @summary List budget months + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgetMonths(budget_id: string, options?: any): FetchArgs; }; /** @@ -2228,7 +2386,22 @@ export declare const MonthsApiFetchParamCreator: (configuration?: Configuration) * @export */ export declare const MonthsApiFp: (configuration?: Configuration) => { + /** + * Returns a single budget month + * @summary Single budget month + * @param {string} budget_id - The ID of the Budget. + * @param {Date} month - The Budget Month. \"current\" can also be used to specify the current calendar month (UTC). + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgetMonth(budget_id: string, month: string | Date, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns all budget months + * @summary List budget months + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgetMonths(budget_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; }; /** @@ -2236,7 +2409,22 @@ export declare const MonthsApiFp: (configuration?: Configuration) => { * @export */ export declare const MonthsApiFactory: (configuration?: Configuration) => { + /** + * Returns a single budget month + * @summary Single budget month + * @param {string} budget_id - The ID of the Budget. + * @param {Date} month - The Budget Month. \"current\" can also be used to specify the current calendar month (UTC). + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgetMonth(budget_id: string, month: string | Date, options?: any): Promise; + /** + * Returns all budget months + * @summary List budget months + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getBudgetMonths(budget_id: string, options?: any): Promise; }; /** @@ -2271,8 +2459,31 @@ export declare class MonthsApi extends BaseAPI { * @export */ export declare const PayeeLocationsApiFetchParamCreator: (configuration?: Configuration) => { + /** + * Returns a single payee location + * @summary Single payee location + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_location_id - ID of payee location + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeLocationById(budget_id: string, payee_location_id: string, options?: any): FetchArgs; + /** + * Returns all payee locations + * @summary List payee locations + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeLocations(budget_id: string, options?: any): FetchArgs; + /** + * Returns all payee locations for the specified payee + * @summary List locations for a payee + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_id - ID of payee + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeLocationsByPayee(budget_id: string, payee_id: string, options?: any): FetchArgs; }; /** @@ -2280,8 +2491,31 @@ export declare const PayeeLocationsApiFetchParamCreator: (configuration?: Config * @export */ export declare const PayeeLocationsApiFp: (configuration?: Configuration) => { + /** + * Returns a single payee location + * @summary Single payee location + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_location_id - ID of payee location + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeLocationById(budget_id: string, payee_location_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns all payee locations + * @summary List payee locations + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeLocations(budget_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns all payee locations for the specified payee + * @summary List locations for a payee + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_id - ID of payee + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeLocationsByPayee(budget_id: string, payee_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; }; /** @@ -2289,8 +2523,31 @@ export declare const PayeeLocationsApiFp: (configuration?: Configuration) => { * @export */ export declare const PayeeLocationsApiFactory: (configuration?: Configuration) => { + /** + * Returns a single payee location + * @summary Single payee location + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_location_id - ID of payee location + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeLocationById(budget_id: string, payee_location_id: string, options?: any): Promise; + /** + * Returns all payee locations + * @summary List payee locations + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeLocations(budget_id: string, options?: any): Promise; + /** + * Returns all payee locations for the specified payee + * @summary List locations for a payee + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_id - ID of payee + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeLocationsByPayee(budget_id: string, payee_id: string, options?: any): Promise; }; /** @@ -2335,15 +2592,45 @@ export declare class PayeeLocationsApi extends BaseAPI { * @export */ export declare const PayeesApiFetchParamCreator: (configuration?: Configuration) => { - getPayeeById(budget_id: string, payee_id: string, options?: any): FetchArgs; - getPayees(budget_id: string, options?: any): FetchArgs; -}; -/** - * PayeesApi - functional programming interface + /** + * Returns single payee + * @summary Single payee + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_id - The ID of the Payee. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ + getPayeeById(budget_id: string, payee_id: string, options?: any): FetchArgs; + /** + * Returns all payees + * @summary List payees + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ + getPayees(budget_id: string, options?: any): FetchArgs; +}; +/** + * PayeesApi - functional programming interface * @export */ export declare const PayeesApiFp: (configuration?: Configuration) => { + /** + * Returns single payee + * @summary Single payee + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_id - The ID of the Payee. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeById(budget_id: string, payee_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns all payees + * @summary List payees + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayees(budget_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; }; /** @@ -2351,7 +2638,22 @@ export declare const PayeesApiFp: (configuration?: Configuration) => { * @export */ export declare const PayeesApiFactory: (configuration?: Configuration) => { + /** + * Returns single payee + * @summary Single payee + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_id - The ID of the Payee. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayeeById(budget_id: string, payee_id: string, options?: any): Promise; + /** + * Returns all payees + * @summary List payees + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getPayees(budget_id: string, options?: any): Promise; }; /** @@ -2386,7 +2688,22 @@ export declare class PayeesApi extends BaseAPI { * @export */ export declare const ScheduledTransactionsApiFetchParamCreator: (configuration?: Configuration) => { + /** + * Returns a single scheduled transaction + * @summary Single scheduled transaction + * @param {string} budget_id - The ID of the Budget. + * @param {string} scheduled_transaction_id - The ID of the Scheduled Transaction. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getScheduledTransactionById(budget_id: string, scheduled_transaction_id: string, options?: any): FetchArgs; + /** + * Returns all scheduled transactions + * @summary List scheduled transactions + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getScheduledTransactions(budget_id: string, options?: any): FetchArgs; }; /** @@ -2394,7 +2711,22 @@ export declare const ScheduledTransactionsApiFetchParamCreator: (configuration?: * @export */ export declare const ScheduledTransactionsApiFp: (configuration?: Configuration) => { + /** + * Returns a single scheduled transaction + * @summary Single scheduled transaction + * @param {string} budget_id - The ID of the Budget. + * @param {string} scheduled_transaction_id - The ID of the Scheduled Transaction. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getScheduledTransactionById(budget_id: string, scheduled_transaction_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns all scheduled transactions + * @summary List scheduled transactions + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getScheduledTransactions(budget_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; }; /** @@ -2402,7 +2734,22 @@ export declare const ScheduledTransactionsApiFp: (configuration?: Configuration) * @export */ export declare const ScheduledTransactionsApiFactory: (configuration?: Configuration) => { + /** + * Returns a single scheduled transaction + * @summary Single scheduled transaction + * @param {string} budget_id - The ID of the Budget. + * @param {string} scheduled_transaction_id - The ID of the Scheduled Transaction. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getScheduledTransactionById(budget_id: string, scheduled_transaction_id: string, options?: any): Promise; + /** + * Returns all scheduled transactions + * @summary List scheduled transactions + * @param {string} budget_id - The ID of the Budget. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getScheduledTransactions(budget_id: string, options?: any): Promise; }; /** @@ -2437,13 +2784,82 @@ export declare class ScheduledTransactionsApi extends BaseAPI { * @export */ export declare const TransactionsApiFetchParamCreator: (configuration?: Configuration) => { + /** + * Creates multiple transactions + * @summary Bulk create transactions + * @param {string} budget_id - The ID of the Budget. + * @param {BulkTransactions} transactions - The list of Transactions to create. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ bulkCreateTransactions(budget_id: string, transactions: BulkTransactions, options?: any): FetchArgs; + /** + * Creates a transaction + * @summary Create new transaction + * @param {string} budget_id - The ID of the Budget. + * @param {SaveTransactionWrapper} transaction - The Transaction to create. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ createTransaction(budget_id: string, transaction: SaveTransactionWrapper, options?: any): FetchArgs; + /** + * Returns budget transactions + * @summary List transactions + * @param {string} budget_id - The ID of the Budget. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {'uncategorized' | 'unapproved'} [type] - Only return transactions of a certain type (i.e. 'uncategorized', 'unapproved') + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactions(budget_id: string, since_date?: string | Date, type?: "uncategorized" | "unapproved", options?: any): FetchArgs; + /** + * Returns all transactions for a specified account + * @summary List account transactions + * @param {string} budget_id - The ID of the Budget. + * @param {string} account_id - The ID of the Account. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsByAccount(budget_id: string, account_id: string, since_date?: string | Date, options?: any): FetchArgs; + /** + * Returns all transactions for a specified category + * @summary List category transactions + * @param {string} budget_id - The ID of the Budget. + * @param {string} category_id - The ID of the Category. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsByCategory(budget_id: string, category_id: string, since_date?: string | Date, options?: any): FetchArgs; + /** + * Returns a single transaction + * @summary Single transaction + * @param {string} budget_id - The ID of the Budget. + * @param {string} transaction_id - The ID of the Transaction. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsById(budget_id: string, transaction_id: string, options?: any): FetchArgs; + /** + * Returns all transactions for a specified payee + * @summary List payee transactions + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_id - The ID of the Payee. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsByPayee(budget_id: string, payee_id: string, since_date?: string | Date, options?: any): FetchArgs; + /** + * Updates a transaction + * @summary Updates an existing transaction + * @param {string} budget_id - The ID of the Budget. + * @param {string} transaction_id - The ID of the Transaction. + * @param {SaveTransactionWrapper} transaction - The Transaction to update. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ updateTransaction(budget_id: string, transaction_id: string, transaction: SaveTransactionWrapper, options?: any): FetchArgs; }; /** @@ -2451,13 +2867,82 @@ export declare const TransactionsApiFetchParamCreator: (configuration?: Configur * @export */ export declare const TransactionsApiFp: (configuration?: Configuration) => { + /** + * Creates multiple transactions + * @summary Bulk create transactions + * @param {string} budget_id - The ID of the Budget. + * @param {BulkTransactions} transactions - The list of Transactions to create. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ bulkCreateTransactions(budget_id: string, transactions: BulkTransactions, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Creates a transaction + * @summary Create new transaction + * @param {string} budget_id - The ID of the Budget. + * @param {SaveTransactionWrapper} transaction - The Transaction to create. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ createTransaction(budget_id: string, transaction: SaveTransactionWrapper, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns budget transactions + * @summary List transactions + * @param {string} budget_id - The ID of the Budget. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {'uncategorized' | 'unapproved'} [type] - Only return transactions of a certain type (i.e. 'uncategorized', 'unapproved') + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactions(budget_id: string, since_date?: string | Date, type?: "uncategorized" | "unapproved", options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns all transactions for a specified account + * @summary List account transactions + * @param {string} budget_id - The ID of the Budget. + * @param {string} account_id - The ID of the Account. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsByAccount(budget_id: string, account_id: string, since_date?: string | Date, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns all transactions for a specified category + * @summary List category transactions + * @param {string} budget_id - The ID of the Budget. + * @param {string} category_id - The ID of the Category. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsByCategory(budget_id: string, category_id: string, since_date?: string | Date, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns a single transaction + * @summary Single transaction + * @param {string} budget_id - The ID of the Budget. + * @param {string} transaction_id - The ID of the Transaction. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsById(budget_id: string, transaction_id: string, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Returns all transactions for a specified payee + * @summary List payee transactions + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_id - The ID of the Payee. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsByPayee(budget_id: string, payee_id: string, since_date?: string | Date, options?: any): (fetchFunction?: FetchAPI) => Promise; + /** + * Updates a transaction + * @summary Updates an existing transaction + * @param {string} budget_id - The ID of the Budget. + * @param {string} transaction_id - The ID of the Transaction. + * @param {SaveTransactionWrapper} transaction - The Transaction to update. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ updateTransaction(budget_id: string, transaction_id: string, transaction: SaveTransactionWrapper, options?: any): (fetchFunction?: FetchAPI) => Promise; }; /** @@ -2465,13 +2950,82 @@ export declare const TransactionsApiFp: (configuration?: Configuration) => { * @export */ export declare const TransactionsApiFactory: (configuration?: Configuration) => { + /** + * Creates multiple transactions + * @summary Bulk create transactions + * @param {string} budget_id - The ID of the Budget. + * @param {BulkTransactions} transactions - The list of Transactions to create. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ bulkCreateTransactions(budget_id: string, transactions: BulkTransactions, options?: any): Promise; + /** + * Creates a transaction + * @summary Create new transaction + * @param {string} budget_id - The ID of the Budget. + * @param {SaveTransactionWrapper} transaction - The Transaction to create. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ createTransaction(budget_id: string, transaction: SaveTransactionWrapper, options?: any): Promise; + /** + * Returns budget transactions + * @summary List transactions + * @param {string} budget_id - The ID of the Budget. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {'uncategorized' | 'unapproved'} [type] - Only return transactions of a certain type (i.e. 'uncategorized', 'unapproved') + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactions(budget_id: string, since_date?: string | Date, type?: "uncategorized" | "unapproved", options?: any): Promise; + /** + * Returns all transactions for a specified account + * @summary List account transactions + * @param {string} budget_id - The ID of the Budget. + * @param {string} account_id - The ID of the Account. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsByAccount(budget_id: string, account_id: string, since_date?: string | Date, options?: any): Promise; + /** + * Returns all transactions for a specified category + * @summary List category transactions + * @param {string} budget_id - The ID of the Budget. + * @param {string} category_id - The ID of the Category. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsByCategory(budget_id: string, category_id: string, since_date?: string | Date, options?: any): Promise; + /** + * Returns a single transaction + * @summary Single transaction + * @param {string} budget_id - The ID of the Budget. + * @param {string} transaction_id - The ID of the Transaction. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsById(budget_id: string, transaction_id: string, options?: any): Promise; + /** + * Returns all transactions for a specified payee + * @summary List payee transactions + * @param {string} budget_id - The ID of the Budget. + * @param {string} payee_id - The ID of the Payee. + * @param {Date} [since_date] - Only return transactions on or after this date. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getTransactionsByPayee(budget_id: string, payee_id: string, since_date?: string | Date, options?: any): Promise; + /** + * Updates a transaction + * @summary Updates an existing transaction + * @param {string} budget_id - The ID of the Budget. + * @param {string} transaction_id - The ID of the Transaction. + * @param {SaveTransactionWrapper} transaction - The Transaction to update. + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ updateTransaction(budget_id: string, transaction_id: string, transaction: SaveTransactionWrapper, options?: any): Promise; }; /** @@ -2572,6 +3126,12 @@ export declare class TransactionsApi extends BaseAPI { * @export */ export declare const UserApiFetchParamCreator: (configuration?: Configuration) => { + /** + * Returns authenticated user information. + * @summary User info + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getUser(options?: any): FetchArgs; }; /** @@ -2579,6 +3139,12 @@ export declare const UserApiFetchParamCreator: (configuration?: Configuration) = * @export */ export declare const UserApiFp: (configuration?: Configuration) => { + /** + * Returns authenticated user information. + * @summary User info + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getUser(options?: any): (fetchFunction?: FetchAPI) => Promise; }; /** @@ -2586,6 +3152,12 @@ export declare const UserApiFp: (configuration?: Configuration) => { * @export */ export declare const UserApiFactory: (configuration?: Configuration) => { + /** + * Returns authenticated user information. + * @summary User info + * @param {*} [options] - Override http request options. + * @throws {RequiredError} + */ getUser(options?: any): Promise; }; /** diff --git a/dist/esm/utils.d.ts b/dist/esm/utils.d.ts index 43bace5..dd1c838 100644 --- a/dist/esm/utils.d.ts +++ b/dist/esm/utils.d.ts @@ -1,7 +1,22 @@ declare const _default: { + /** + * Returns the current month (system timezone) in ISO 8601 format (i.e. '2015-12-01') + */ getCurrentMonthInISOFormat(): string; + /** + * Returns the current date (system timezone) in ISO 8601 format (i.e. '2015-12-15') + */ getCurrentDateInISOFormat(): string; + /** + * Converts an ISO 8601 formatted string to a JS date object + * @param {string} isoDateString - An ISO 8601 formatted date (i.e. '2015-12-30'). This date is assumed to be in UTC timezone + */ convertFromISODateString(isoDateString: string): Date; + /** + * Converts a milliunits amount to a currency amount + * @param milliunits - The milliunits amount (i.e. 293294) + * @param [currencyDecimalDigits] - The number of decimals in the currency (i.e. 2 for USD) + */ convertMilliUnitsToCurrencyAmount(milliunits: number, currencyDecimalDigits?: number): number; }; export default _default; diff --git a/dist/utils.d.ts b/dist/utils.d.ts index 43bace5..dd1c838 100644 --- a/dist/utils.d.ts +++ b/dist/utils.d.ts @@ -1,7 +1,22 @@ declare const _default: { + /** + * Returns the current month (system timezone) in ISO 8601 format (i.e. '2015-12-01') + */ getCurrentMonthInISOFormat(): string; + /** + * Returns the current date (system timezone) in ISO 8601 format (i.e. '2015-12-15') + */ getCurrentDateInISOFormat(): string; + /** + * Converts an ISO 8601 formatted string to a JS date object + * @param {string} isoDateString - An ISO 8601 formatted date (i.e. '2015-12-30'). This date is assumed to be in UTC timezone + */ convertFromISODateString(isoDateString: string): Date; + /** + * Converts a milliunits amount to a currency amount + * @param milliunits - The milliunits amount (i.e. 293294) + * @param [currencyDecimalDigits] - The number of decimals in the currency (i.e. 2 for USD) + */ convertMilliUnitsToCurrencyAmount(milliunits: number, currencyDecimalDigits?: number): number; }; export default _default;