Socket
Socket
Sign inDemoInstall

ynab

Package Overview
Dependencies
Maintainers
3
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ynab - npm Package Compare versions

Comparing version 1.8.0 to 1.9.0

dist/esm/transactionsApi.d.ts

2

dist/browser/ynab.js

@@ -1,1 +0,1 @@

var ynab=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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=1)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3);n(11);const o="api_client/js/1.6.0";function a(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;!function(e){e[e.TB="TB"]="TB",e[e.TBD="TBD"]="TBD",e[e.MF="MF"]="MF"}(t=e.GoalTypeEnum||(e.GoalTypeEnum={}))}(t.Category||(t.Category={})),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,a={}){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"},a),d={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return c.query=Object.assign({},c.query,{},a.query),delete c.search,u.headers=Object.assign({},d,a.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 a="/budgets/{budget_id}/accounts".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(a,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=o,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,o){const a=t.AccountsApiFetchParamCreator(e).getAccountById(n,r,o);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)))},getAccounts(n,r){const o=t.AccountsApiFetchParamCreator(e).getAccounts(n,r);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.AccountsApiFactory=function(e){return{getAccountById:(n,r,o)=>t.AccountsApiFp(e).getAccountById(n,r,o)(),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,a={}){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"},a),d={},h={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return void 0!==n&&(h.last_knowledge_of_server=n),c.query=Object.assign({},c.query,h,a.query),delete c.search,u.headers=Object.assign({},d,a.headers),{url:r.format(c),options:u}},getBudgetSettingsById(t,n={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getBudgetSettingsById.");const a="/budgets/{budget_id}/settings".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(a,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=o,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}},getBudgets(t={}){const n=r.parse("/budgets",!0),a=Object.assign({method:"GET"},t),s={};if(s["User-Agent"]=o,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,a.headers=Object.assign({},s,t.headers),{url:r.format(n),options:a}}}},t.BudgetsApiFp=function(e){return{getBudgetById(n,r,o){const a=t.BudgetsApiFetchParamCreator(e).getBudgetById(n,r,o);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)))},getBudgetSettingsById(n,r){const o=t.BudgetsApiFetchParamCreator(e).getBudgetSettingsById(n,r);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,o)=>t.BudgetsApiFp(e).getBudgetById(n,r,o)(),getBudgetSettingsById:(n,r)=>t.BudgetsApiFp(e).getBudgetSettingsById(n,r)(),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)()}getBudgetSettingsById(e,n){return t.BudgetsApiFp(this.configuration).getBudgetSettingsById(e,n)()}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 a="/budgets/{budget_id}/categories".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(a,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=o,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,a={}){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"},a),d={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return c.query=Object.assign({},c.query,{},a.query),delete c.search,u.headers=Object.assign({},d,a.headers),{url:r.format(c),options:u}},getMonthCategoryById(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 getMonthCategoryById.");if(null===n||void 0===n)throw new i("month","Required parameter month was null or undefined when calling getMonthCategoryById.");if(null===s||void 0===s)throw new i("category_id","Required parameter category_id was null or undefined when calling getMonthCategoryById.");const u="/budgets/{budget_id}/months/{month}/categories/{category_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{month}",encodeURIComponent(a(n))).replace("{category_id}",encodeURIComponent(String(s))),d=r.parse(u,!0),h=Object.assign({method:"GET"},c),l={};if(l["User-Agent"]=o,l.Accept="application/json",e&&e.apiKey){const t=e.apiKey;l.Authorization=t}return d.query=Object.assign({},d.query,{},c.query),delete d.search,h.headers=Object.assign({},l,c.headers),{url:r.format(d),options:h}},updateMonthCategory(t,n,s,c,u={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling updateMonthCategory.");if(null===n||void 0===n)throw new i("month","Required parameter month was null or undefined when calling updateMonthCategory.");if(null===s||void 0===s)throw new i("category_id","Required parameter category_id was null or undefined when calling updateMonthCategory.");if(null===c||void 0===c)throw new i("month_category","Required parameter month_category was null or undefined when calling updateMonthCategory.");const d="/budgets/{budget_id}/months/{month}/categories/{category_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{month}",encodeURIComponent(a(n))).replace("{category_id}",encodeURIComponent(String(s))),h=r.parse(d,!0),l=Object.assign({method:"PATCH"},u),p={};if(p["User-Agent"]=o,p.Accept="application/json",e&&e.apiKey){const t=e.apiKey;p.Authorization=t}return p["Content-Type"]="application/json",h.query=Object.assign({},h.query,{},u.query),delete h.search,l.headers=Object.assign({},p,u.headers),l.body=JSON.stringify(c||{}),{url:r.format(h),options:l}}}},t.CategoriesApiFp=function(e){return{getCategories(n,r){const o=t.CategoriesApiFetchParamCreator(e).getCategories(n,r);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)))},getCategoryById(n,r,o){const a=t.CategoriesApiFetchParamCreator(e).getCategoryById(n,r,o);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)))},getMonthCategoryById(n,r,o,a){const s=t.CategoriesApiFetchParamCreator(e).getMonthCategoryById(n,r,o,a);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)))},updateMonthCategory(n,r,o,a,s){const i=t.CategoriesApiFetchParamCreator(e).updateMonthCategory(n,r,o,a,s);return(t=fetch)=>t(e.basePath+i.url,i.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,o)=>t.CategoriesApiFp(e).getCategoryById(n,r,o)(),getMonthCategoryById:(n,r,o,a)=>t.CategoriesApiFp(e).getMonthCategoryById(n,r,o,a)(),updateMonthCategory:(n,r,o,a,s)=>t.CategoriesApiFp(e).updateMonthCategory(n,r,o,a,s)()}};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)()}getMonthCategoryById(e,n,r,o){return t.CategoriesApiFp(this.configuration).getMonthCategoryById(e,n,r,o)()}updateMonthCategory(e,n,r,o,a){return t.CategoriesApiFp(this.configuration).updateMonthCategory(e,n,r,o,a)()}},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(a(n))),u=r.parse(c,!0),d=Object.assign({method:"GET"},s),h={};if(h["User-Agent"]=o,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return u.query=Object.assign({},u.query,{},s.query),delete u.search,d.headers=Object.assign({},h,s.headers),{url:r.format(u),options:d}},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 a="/budgets/{budget_id}/months".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(a,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=o,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,o){const a=t.MonthsApiFetchParamCreator(e).getBudgetMonth(n,r,o);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)))},getBudgetMonths(n,r){const o=t.MonthsApiFetchParamCreator(e).getBudgetMonths(n,r);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.MonthsApiFactory=function(e){return{getBudgetMonth:(n,r,o)=>t.MonthsApiFp(e).getBudgetMonth(n,r,o)(),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,a={}){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"},a),d={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return c.query=Object.assign({},c.query,{},a.query),delete c.search,u.headers=Object.assign({},d,a.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 a="/budgets/{budget_id}/payee_locations".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(a,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=o,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,a={}){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"},a),d={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return c.query=Object.assign({},c.query,{},a.query),delete c.search,u.headers=Object.assign({},d,a.headers),{url:r.format(c),options:u}}}},t.PayeeLocationsApiFp=function(e){return{getPayeeLocationById(n,r,o){const a=t.PayeeLocationsApiFetchParamCreator(e).getPayeeLocationById(n,r,o);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)))},getPayeeLocations(n,r){const o=t.PayeeLocationsApiFetchParamCreator(e).getPayeeLocations(n,r);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)))},getPayeeLocationsByPayee(n,r,o){const a=t.PayeeLocationsApiFetchParamCreator(e).getPayeeLocationsByPayee(n,r,o);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.PayeeLocationsApiFactory=function(e){return{getPayeeLocationById:(n,r,o)=>t.PayeeLocationsApiFp(e).getPayeeLocationById(n,r,o)(),getPayeeLocations:(n,r)=>t.PayeeLocationsApiFp(e).getPayeeLocations(n,r)(),getPayeeLocationsByPayee:(n,r,o)=>t.PayeeLocationsApiFp(e).getPayeeLocationsByPayee(n,r,o)()}};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,a={}){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"},a),d={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return c.query=Object.assign({},c.query,{},a.query),delete c.search,u.headers=Object.assign({},d,a.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 a="/budgets/{budget_id}/payees".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(a,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=o,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,o){const a=t.PayeesApiFetchParamCreator(e).getPayeeById(n,r,o);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)))},getPayees(n,r){const o=t.PayeesApiFetchParamCreator(e).getPayees(n,r);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.PayeesApiFactory=function(e){return{getPayeeById:(n,r,o)=>t.PayeesApiFp(e).getPayeeById(n,r,o)(),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,a={}){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"},a),d={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return c.query=Object.assign({},c.query,{},a.query),delete c.search,u.headers=Object.assign({},d,a.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 a="/budgets/{budget_id}/scheduled_transactions".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(a,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=o,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,o){const a=t.ScheduledTransactionsApiFetchParamCreator(e).getScheduledTransactionById(n,r,o);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)))},getScheduledTransactions(n,r){const o=t.ScheduledTransactionsApiFetchParamCreator(e).getScheduledTransactions(n,r);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.ScheduledTransactionsApiFactory=function(e){return{getScheduledTransactionById:(n,r,o)=>t.ScheduledTransactionsApiFp(e).getScheduledTransactionById(n,r,o)(),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,a={}){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"},a),d={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return d["Content-Type"]="application/json",c.query=Object.assign({},c.query,{},a.query),delete c.search,u.headers=Object.assign({},d,a.headers),u.body=JSON.stringify(n||{}),{url:r.format(c),options:u}},createTransaction(t,n,a={}){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("save_transactions","Required parameter save_transactions 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"},a),d={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return d["Content-Type"]="application/json",c.query=Object.assign({},c.query,{},a.query),delete c.search,u.headers=Object.assign({},d,a.headers),u.body=JSON.stringify(n||{}),{url:r.format(c),options:u}},getTransactionById(t,n,a={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getTransactionById.");if(null===n||void 0===n)throw new i("transaction_id","Required parameter transaction_id was null or undefined when calling getTransactionById.");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"},a),d={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return c.query=Object.assign({},c.query,{},a.query),delete c.search,u.headers=Object.assign({},d,a.headers),{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))),d=r.parse(u,!0),h=Object.assign({method:"GET"},c),l={},p={};if(l["User-Agent"]=o,l.Accept="application/json",e&&e.apiKey){const t=e.apiKey;l.Authorization=t}return void 0!==n&&(p.since_date=a(n)),void 0!==s&&(p.type=s),d.query=Object.assign({},d.query,p,c.query),delete d.search,h.headers=Object.assign({},l,c.headers),{url:r.format(d),options:h}},getTransactionsByAccount(t,n,s,c,u={}){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 d="/budgets/{budget_id}/accounts/{account_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))).replace("{account_id}",encodeURIComponent(String(n))),h=r.parse(d,!0),l=Object.assign({method:"GET"},u),p={},g={};if(p["User-Agent"]=o,p.Accept="application/json",e&&e.apiKey){const t=e.apiKey;p.Authorization=t}return void 0!==s&&(g.since_date=a(s)),void 0!==c&&(g.type=c),h.query=Object.assign({},h.query,g,u.query),delete h.search,l.headers=Object.assign({},p,u.headers),{url:r.format(h),options:l}},getTransactionsByCategory(t,n,s,c,u={}){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 d="/budgets/{budget_id}/categories/{category_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))).replace("{category_id}",encodeURIComponent(String(n))),h=r.parse(d,!0),l=Object.assign({method:"GET"},u),p={},g={};if(p["User-Agent"]=o,p.Accept="application/json",e&&e.apiKey){const t=e.apiKey;p.Authorization=t}return void 0!==s&&(g.since_date=a(s)),void 0!==c&&(g.type=c),h.query=Object.assign({},h.query,g,u.query),delete h.search,l.headers=Object.assign({},p,u.headers),{url:r.format(h),options:l}},getTransactionsByPayee(t,n,s,c,u={}){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 d="/budgets/{budget_id}/payees/{payee_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))).replace("{payee_id}",encodeURIComponent(String(n))),h=r.parse(d,!0),l=Object.assign({method:"GET"},u),p={},g={};if(p["User-Agent"]=o,p.Accept="application/json",e&&e.apiKey){const t=e.apiKey;p.Authorization=t}return void 0!==s&&(g.since_date=a(s)),void 0!==c&&(g.type=c),h.query=Object.assign({},h.query,g,u.query),delete h.search,l.headers=Object.assign({},p,u.headers),{url:r.format(h),options:l}},updateTransaction(t,n,a,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===a||void 0===a)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),d=Object.assign({method:"PUT"},s),h={};if(h["User-Agent"]=o,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return h["Content-Type"]="application/json",u.query=Object.assign({},u.query,{},s.query),delete u.search,d.headers=Object.assign({},h,s.headers),d.body=JSON.stringify(a||{}),{url:r.format(u),options:d}}}},t.TransactionsApiFp=function(e){return{bulkCreateTransactions(n,r,o){const a=t.TransactionsApiFetchParamCreator(e).bulkCreateTransactions(n,r,o);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)))},createTransaction(n,r,o){const a=t.TransactionsApiFetchParamCreator(e).createTransaction(n,r,o);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)))},getTransactionById(n,r,o){const a=t.TransactionsApiFetchParamCreator(e).getTransactionById(n,r,o);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)))},getTransactions(n,r,o,a){const s=t.TransactionsApiFetchParamCreator(e).getTransactions(n,r,o,a);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,o,a,s){const i=t.TransactionsApiFetchParamCreator(e).getTransactionsByAccount(n,r,o,a,s);return(t=fetch)=>t(e.basePath+i.url,i.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getTransactionsByCategory(n,r,o,a,s){const i=t.TransactionsApiFetchParamCreator(e).getTransactionsByCategory(n,r,o,a,s);return(t=fetch)=>t(e.basePath+i.url,i.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getTransactionsByPayee(n,r,o,a,s){const i=t.TransactionsApiFetchParamCreator(e).getTransactionsByPayee(n,r,o,a,s);return(t=fetch)=>t(e.basePath+i.url,i.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},updateTransaction(n,r,o,a){const s=t.TransactionsApiFetchParamCreator(e).updateTransaction(n,r,o,a);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,o)=>t.TransactionsApiFp(e).bulkCreateTransactions(n,r,o)(),createTransaction:(n,r,o)=>t.TransactionsApiFp(e).createTransaction(n,r,o)(),getTransactionById:(n,r,o)=>t.TransactionsApiFp(e).getTransactionById(n,r,o)(),getTransactions:(n,r,o,a)=>t.TransactionsApiFp(e).getTransactions(n,r,o,a)(),getTransactionsByAccount:(n,r,o,a,s)=>t.TransactionsApiFp(e).getTransactionsByAccount(n,r,o,a,s)(),getTransactionsByCategory:(n,r,o,a,s)=>t.TransactionsApiFp(e).getTransactionsByCategory(n,r,o,a,s)(),getTransactionsByPayee:(n,r,o,a,s)=>t.TransactionsApiFp(e).getTransactionsByPayee(n,r,o,a,s)(),updateTransaction:(n,r,o,a)=>t.TransactionsApiFp(e).updateTransaction(n,r,o,a)()}};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)()}getTransactionById(e,n,r){return t.TransactionsApiFp(this.configuration).getTransactionById(e,n,r)()}getTransactions(e,n,r,o){return t.TransactionsApiFp(this.configuration).getTransactions(e,n,r,o)()}getTransactionsByAccount(e,n,r,o,a){return t.TransactionsApiFp(this.configuration).getTransactionsByAccount(e,n,r,o,a)()}getTransactionsByCategory(e,n,r,o,a){return t.TransactionsApiFp(this.configuration).getTransactionsByCategory(e,n,r,o,a)()}getTransactionsByPayee(e,n,r,o,a){return t.TransactionsApiFp(this.configuration).getTransactionsByPayee(e,n,r,o,a)()}updateTransaction(e,n,r,o){return t.TransactionsApiFp(this.configuration).updateTransaction(e,n,r,o)()}},t.UserApiFetchParamCreator=function(e){return{getUser(t={}){const n=r.parse("/user",!0),a=Object.assign({method:"GET"},t),s={};if(s["User-Agent"]=o,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,a.headers=Object.assign({},s,t.headers),{url:r.format(n),options:a}}}},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});const r=n(2),o=n(0),a=n(13);t.utils=a.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 user(){return this._user||(this._user=new o.UserApi(this._configuration)),this._user}get budgets(){return this._budgets||(this._budgets=new o.BudgetsApi(this._configuration)),this._budgets}get accounts(){return this._accounts||(this._accounts=new o.AccountsApi(this._configuration)),this._accounts}get categories(){return this._categories||(this._categories=new o.CategoriesApi(this._configuration)),this._categories}get months(){return this._months||(this._months=new o.MonthsApi(this._configuration)),this._months}get payees(){return this._payees||(this._payees=new o.PayeesApi(this._configuration)),this._payees}get payeeLocations(){return this._payeeLocations||(this._payeeLocations=new o.PayeeLocationsApi(this._configuration)),this._payeeLocations}get transactions(){return this._transactions||(this._transactions=new o.TransactionsApi(this._configuration)),this._transactions}get scheduledTransactions(){return this._scheduledTransactions||(this._scheduledTransactions=new o.ScheduledTransactionsApi(this._configuration)),this._scheduledTransactions}}t.api=s,t.API=s},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";var r=n(4),o=n(7);function a(){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){o.isString(e)&&(e=A(e));return e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a;var s=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),d=["'"].concat(u),h=["%","/","?",";","#"].concat(d),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(8);function A(e,t,n){if(e&&o.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),i=-1!==a&&a<e.indexOf("#")?"?":"#",u=e.split(i);u[0]=u[0].replace(/\\/g,"/");var A=e=u.join(i);if(A=A.trim(),!n&&1===e.split("#").length){var w=c.exec(A);if(w)return this.path=A,this.href=A,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?b.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var _=s.exec(A);if(_){var j=(_=_[0]).toLowerCase();this.protocol=j,A=A.substr(_.length)}if(n||_||A.match(/^\/\/[^@\/]+@[^@\/]+/)){var v="//"===A.substr(0,2);!v||_&&f[_]||(A=A.substr(2),this.slashes=!0)}if(!f[_]&&(v||_&&!m[_])){for(var P,T,C=-1,B=0;B<l.length;B++){-1!==(O=A.indexOf(l[B]))&&(-1===C||O<C)&&(C=O)}-1!==(T=-1===C?A.lastIndexOf("@"):A.lastIndexOf("@",C))&&(P=A.slice(0,T),A=A.slice(T+1),this.auth=decodeURIComponent(P)),C=-1;for(B=0;B<h.length;B++){var O;-1!==(O=A.indexOf(h[B]))&&(-1===C||O<C)&&(C=O)}-1===C&&(C=A.length),this.host=A.slice(0,C),A=A.slice(C),this.parseHost(),this.hostname=this.hostname||"";var I="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!I)for(var q=this.hostname.split(/\./),F=(B=0,q.length);B<F;B++){var R=q[B];if(R&&!R.match(p)){for(var S="",U=0,E=R.length;U<E;U++)R.charCodeAt(U)>127?S+="x":S+=R[U];if(!S.match(p)){var M=q.slice(0,B),x=q.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,F=d.length;B<F;B++){var G=d[B];if(-1!==A.indexOf(G)){var D=encodeURIComponent(G);D===G&&(D=escape(G)),A=A.split(G).join(D)}}var z=A.indexOf("#");-1!==z&&(this.hash=A.substr(z),A=A.slice(0,z));var Y=A.indexOf("?");if(-1!==Y?(this.search=A.substr(Y),this.query=A.substr(Y+1),t&&(this.query=b.parse(this.query)),A=A.slice(0,Y)):t&&(this.search="",this.query={}),A&&(this.pathname=A),m[j]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){K=this.pathname||"";var N=this.search||"";this.path=K+N}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",a=!1,s="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(s=b.stringify(this.query));var i=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[t])&&!1!==a?(a="//"+(a||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):a||(a=""),r&&"#"!==r.charAt(0)&&(r="#"+r),i&&"?"!==i.charAt(0)&&(i="?"+i),t+a+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(i=i.replace("#","%23"))+r},a.prototype.resolve=function(e){return this.resolveObject(A(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if(o.isString(e)){var t=new a;t.parse(e,!1,!0),e=t}for(var n=new a,r=Object.keys(this),s=0;s<r.length;s++){var i=r[s];n[i]=this[i]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),u=0;u<c.length;u++){var d=c[u];"protocol"!==d&&(n[d]=e[d])}return m[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!m[e.protocol]){for(var h=Object.keys(e),l=0;l<h.length;l++){var p=h[l];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||f[e.protocol])n.pathname=e.pathname;else{for(var g=(e.pathname||"").split("/");g.length&&!(e.host=g.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==g[0]&&g.unshift(""),g.length<2&&g.unshift(""),n.pathname=g.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var y=n.pathname||"",b=n.search||"";n.path=y+b}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var A=n.pathname&&"/"===n.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=w||A||n.host&&e.pathname,j=_,v=n.pathname&&n.pathname.split("/")||[],P=(g=e.pathname&&e.pathname.split("/")||[],n.protocol&&!m[n.protocol]);if(P&&(n.hostname="",n.port=null,n.host&&(""===v[0]?v[0]=n.host:v.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===g[0]?g[0]=e.host:g.unshift(e.host)),e.host=null),_=_&&(""===g[0]||""===v[0])),w)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,v=g;else if(g.length)v||(v=[]),v.pop(),v=v.concat(g),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(P)n.hostname=n.host=v.shift(),(I=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=I.shift(),n.host=n.hostname=I.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.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,q=""===v[0]||v[0]&&"/"===v[0].charAt(0);P&&(n.hostname=n.host=q?"":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)&&!q&&v.unshift(""),v.length?n.pathname=v.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.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},a.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){(function(e,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(a){"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,d=1,h=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-d,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=[],o=0,a=e.length;o<a;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<a?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function O(e){return T(e,function(e){var t="";return e>65535&&(t+=v((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=v(e)}).join("")}function I(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:u}function q(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>_*h>>1;r+=u)e=j(e/_);return j(r+(_+1)*e/(e+l))}function R(e){var t,n,r,o,a,s,i,l,p,m,b=[],A=e.length,w=0,_=y,v=g;for((n=e.lastIndexOf(f))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&P("not-basic"),b.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<A;){for(a=w,s=1,i=u;o>=A&&P("invalid-input"),((l=I(e.charCodeAt(o++)))>=u||l>j((c-w)/s))&&P("overflow"),w+=l*s,!(l<(p=i<=v?d:i>=v+h?h:i-v));i+=u)s>j(c/(m=u-p))&&P("overflow"),s*=m;v=F(w-a,t=b.length+1,0==a),j(w/t)>c-_&&P("overflow"),_+=j(w/t),w%=t,b.splice(w++,0,_)}return O(b)}function S(e){var t,n,r,o,a,s,i,l,p,m,b,A,w,_,T,C=[];for(A=(e=B(e)).length,t=y,n=0,a=g,s=0;s<A;++s)(b=e[s])<128&&C.push(v(b));for(r=o=C.length,o&&C.push(f);r<A;){for(i=c,s=0;s<A;++s)(b=e[s])>=t&&b<i&&(i=b);for(i-t>j((c-n)/(w=r+1))&&P("overflow"),n+=(i-t)*w,t=i,s=0;s<A;++s)if((b=e[s])<t&&++n>c&&P("overflow"),b==t){for(l=n,p=u;!(l<(m=p<=a?d:p>=a+h?h:p-a));p+=u)T=l-m,_=u-m,C.push(v(q(m+T%_,0))),l=j(T/_);C.push(v(q(l,0))),a=F(n,w,r==o),n=0,++r}++n,++t}return C.join("")}i={version:"1.4.1",ucs2:{decode:B,encode:O},decode:R,encode:S,toASCII:function(e){return C(e,function(e){return b.test(e)?"xn--"+S(e):e})},toUnicode:function(e){return C(e,function(e){return m.test(e)?R(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(5)(e),n(6))},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){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,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,n){"use strict";t.decode=t.parse=n(9),t.encode=t.stringify=n(10)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,a){t=t||"&",n=n||"=";var s={};if("string"!=typeof e||0===e.length)return s;var i=/\+/g;e=e.split(t);var c=1e3;a&&"number"==typeof a.maxKeys&&(c=a.maxKeys);var u=e.length;c>0&&u>c&&(u=c);for(var d=0;d<u;++d){var h,l,p,g,y=e[d].replace(i,"%20"),f=y.indexOf(n);f>=0?(h=y.substr(0,f),l=y.substr(f+1)):(h=y,l=""),p=decodeURIComponent(h),g=decodeURIComponent(l),r(s,p)?o(s[p])?s[p].push(g):s[p]=[s[p],g]:s[p]=g}return s};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},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?a(s(e),function(s){var i=encodeURIComponent(r(s))+n;return o(e[s])?a(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 o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var s=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){n(12),e.exports=self.fetch.bind(self)},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)},o=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};d.prototype.append=function(e,t){e=i(e),t=c(t);var n=this.map[e];this.map[e]=n?n+","+t:t},d.prototype.delete=function(e){delete this.map[i(e)]},d.prototype.get=function(e){return e=i(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(i(e))},d.prototype.set=function(e,t){this.map[i(e)]=c(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),u(e)},d.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},d.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),u(e)},t.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);var a=["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 d(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=d,e.Request=f,e.Response=b,e.fetch=function(e,n){return new Promise(function(r,o){var a=new f(e,n),s=new XMLHttpRequest;s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:function(e){var t=new d;return e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t}(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;r(new b(t,e))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.open(a.method,a.url,!0),"include"===a.credentials&&(s.withCredentials=!0),"responseType"in s&&t.blob&&(s.responseType="blob"),a.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),s.send(void 0===a._bodyInit?null:a._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 d(e){this.map={},e instanceof d?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 h(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)&&!o(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=h(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?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=l(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},t.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}function f(e,t){var n=(t=t||{}).body;if(e instanceof f){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=function(e){var t=e.toUpperCase();return a.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}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," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),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 d(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},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))}}}]);
var ynab=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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=1)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3);n(11);const o="api_client/js/1.8.0";function a(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;!function(e){e[e.TB="TB"]="TB",e[e.TBD="TBD"]="TBD",e[e.MF="MF"]="MF"}(t=e.GoalTypeEnum||(e.GoalTypeEnum={}))}(t.Category||(t.Category={})),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,a={}){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"},a),d={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return c.query=Object.assign({},c.query,{},a.query),delete c.search,u.headers=Object.assign({},d,a.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 a="/budgets/{budget_id}/accounts".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(a,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=o,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,o){const a=t.AccountsApiFetchParamCreator(e).getAccountById(n,r,o);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)))},getAccounts(n,r){const o=t.AccountsApiFetchParamCreator(e).getAccounts(n,r);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.AccountsApiFactory=function(e){return{getAccountById:(n,r,o)=>t.AccountsApiFp(e).getAccountById(n,r,o)(),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,a={}){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"},a),d={},h={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return void 0!==n&&(h.last_knowledge_of_server=n),c.query=Object.assign({},c.query,h,a.query),delete c.search,u.headers=Object.assign({},d,a.headers),{url:r.format(c),options:u}},getBudgetSettingsById(t,n={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getBudgetSettingsById.");const a="/budgets/{budget_id}/settings".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(a,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=o,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}},getBudgets(t={}){const n=r.parse("/budgets",!0),a=Object.assign({method:"GET"},t),s={};if(s["User-Agent"]=o,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,a.headers=Object.assign({},s,t.headers),{url:r.format(n),options:a}}}},t.BudgetsApiFp=function(e){return{getBudgetById(n,r,o){const a=t.BudgetsApiFetchParamCreator(e).getBudgetById(n,r,o);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)))},getBudgetSettingsById(n,r){const o=t.BudgetsApiFetchParamCreator(e).getBudgetSettingsById(n,r);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,o)=>t.BudgetsApiFp(e).getBudgetById(n,r,o)(),getBudgetSettingsById:(n,r)=>t.BudgetsApiFp(e).getBudgetSettingsById(n,r)(),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)()}getBudgetSettingsById(e,n){return t.BudgetsApiFp(this.configuration).getBudgetSettingsById(e,n)()}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 a="/budgets/{budget_id}/categories".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(a,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=o,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,a={}){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"},a),d={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return c.query=Object.assign({},c.query,{},a.query),delete c.search,u.headers=Object.assign({},d,a.headers),{url:r.format(c),options:u}},getMonthCategoryById(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 getMonthCategoryById.");if(null===n||void 0===n)throw new i("month","Required parameter month was null or undefined when calling getMonthCategoryById.");if(null===s||void 0===s)throw new i("category_id","Required parameter category_id was null or undefined when calling getMonthCategoryById.");const u="/budgets/{budget_id}/months/{month}/categories/{category_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{month}",encodeURIComponent(a(n))).replace("{category_id}",encodeURIComponent(String(s))),d=r.parse(u,!0),h=Object.assign({method:"GET"},c),l={};if(l["User-Agent"]=o,l.Accept="application/json",e&&e.apiKey){const t=e.apiKey;l.Authorization=t}return d.query=Object.assign({},d.query,{},c.query),delete d.search,h.headers=Object.assign({},l,c.headers),{url:r.format(d),options:h}},updateMonthCategory(t,n,s,c,u={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling updateMonthCategory.");if(null===n||void 0===n)throw new i("month","Required parameter month was null or undefined when calling updateMonthCategory.");if(null===s||void 0===s)throw new i("category_id","Required parameter category_id was null or undefined when calling updateMonthCategory.");if(null===c||void 0===c)throw new i("month_category","Required parameter month_category was null or undefined when calling updateMonthCategory.");const d="/budgets/{budget_id}/months/{month}/categories/{category_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{month}",encodeURIComponent(a(n))).replace("{category_id}",encodeURIComponent(String(s))),h=r.parse(d,!0),l=Object.assign({method:"PATCH"},u),p={};if(p["User-Agent"]=o,p.Accept="application/json",e&&e.apiKey){const t=e.apiKey;p.Authorization=t}return p["Content-Type"]="application/json",h.query=Object.assign({},h.query,{},u.query),delete h.search,l.headers=Object.assign({},p,u.headers),l.body=JSON.stringify(c||{}),{url:r.format(h),options:l}}}},t.CategoriesApiFp=function(e){return{getCategories(n,r){const o=t.CategoriesApiFetchParamCreator(e).getCategories(n,r);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)))},getCategoryById(n,r,o){const a=t.CategoriesApiFetchParamCreator(e).getCategoryById(n,r,o);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)))},getMonthCategoryById(n,r,o,a){const s=t.CategoriesApiFetchParamCreator(e).getMonthCategoryById(n,r,o,a);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)))},updateMonthCategory(n,r,o,a,s){const i=t.CategoriesApiFetchParamCreator(e).updateMonthCategory(n,r,o,a,s);return(t=fetch)=>t(e.basePath+i.url,i.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,o)=>t.CategoriesApiFp(e).getCategoryById(n,r,o)(),getMonthCategoryById:(n,r,o,a)=>t.CategoriesApiFp(e).getMonthCategoryById(n,r,o,a)(),updateMonthCategory:(n,r,o,a,s)=>t.CategoriesApiFp(e).updateMonthCategory(n,r,o,a,s)()}};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)()}getMonthCategoryById(e,n,r,o){return t.CategoriesApiFp(this.configuration).getMonthCategoryById(e,n,r,o)()}updateMonthCategory(e,n,r,o,a){return t.CategoriesApiFp(this.configuration).updateMonthCategory(e,n,r,o,a)()}},t.DeprecatedApiFetchParamCreator=function(e){return{bulkCreateTransactions(t,n,a={}){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"},a),d={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return d["Content-Type"]="application/json",c.query=Object.assign({},c.query,{},a.query),delete c.search,u.headers=Object.assign({},d,a.headers),u.body=JSON.stringify(n||{}),{url:r.format(c),options:u}}}},t.DeprecatedApiFp=function(e){return{bulkCreateTransactions(n,r,o){const a=t.DeprecatedApiFetchParamCreator(e).bulkCreateTransactions(n,r,o);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.DeprecatedApiFactory=function(e){return{bulkCreateTransactions:(n,r,o)=>t.DeprecatedApiFp(e).bulkCreateTransactions(n,r,o)()}};t.DeprecatedApi=class extends s{bulkCreateTransactions(e,n,r){return t.DeprecatedApiFp(this.configuration).bulkCreateTransactions(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(a(n))),u=r.parse(c,!0),d=Object.assign({method:"GET"},s),h={};if(h["User-Agent"]=o,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return u.query=Object.assign({},u.query,{},s.query),delete u.search,d.headers=Object.assign({},h,s.headers),{url:r.format(u),options:d}},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 a="/budgets/{budget_id}/months".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(a,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=o,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,o){const a=t.MonthsApiFetchParamCreator(e).getBudgetMonth(n,r,o);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)))},getBudgetMonths(n,r){const o=t.MonthsApiFetchParamCreator(e).getBudgetMonths(n,r);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.MonthsApiFactory=function(e){return{getBudgetMonth:(n,r,o)=>t.MonthsApiFp(e).getBudgetMonth(n,r,o)(),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,a={}){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"},a),d={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return c.query=Object.assign({},c.query,{},a.query),delete c.search,u.headers=Object.assign({},d,a.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 a="/budgets/{budget_id}/payee_locations".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(a,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=o,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,a={}){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"},a),d={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return c.query=Object.assign({},c.query,{},a.query),delete c.search,u.headers=Object.assign({},d,a.headers),{url:r.format(c),options:u}}}},t.PayeeLocationsApiFp=function(e){return{getPayeeLocationById(n,r,o){const a=t.PayeeLocationsApiFetchParamCreator(e).getPayeeLocationById(n,r,o);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)))},getPayeeLocations(n,r){const o=t.PayeeLocationsApiFetchParamCreator(e).getPayeeLocations(n,r);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)))},getPayeeLocationsByPayee(n,r,o){const a=t.PayeeLocationsApiFetchParamCreator(e).getPayeeLocationsByPayee(n,r,o);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.PayeeLocationsApiFactory=function(e){return{getPayeeLocationById:(n,r,o)=>t.PayeeLocationsApiFp(e).getPayeeLocationById(n,r,o)(),getPayeeLocations:(n,r)=>t.PayeeLocationsApiFp(e).getPayeeLocations(n,r)(),getPayeeLocationsByPayee:(n,r,o)=>t.PayeeLocationsApiFp(e).getPayeeLocationsByPayee(n,r,o)()}};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,a={}){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"},a),d={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return c.query=Object.assign({},c.query,{},a.query),delete c.search,u.headers=Object.assign({},d,a.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 a="/budgets/{budget_id}/payees".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(a,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=o,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,o){const a=t.PayeesApiFetchParamCreator(e).getPayeeById(n,r,o);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)))},getPayees(n,r){const o=t.PayeesApiFetchParamCreator(e).getPayees(n,r);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.PayeesApiFactory=function(e){return{getPayeeById:(n,r,o)=>t.PayeesApiFp(e).getPayeeById(n,r,o)(),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,a={}){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"},a),d={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return c.query=Object.assign({},c.query,{},a.query),delete c.search,u.headers=Object.assign({},d,a.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 a="/budgets/{budget_id}/scheduled_transactions".replace("{budget_id}",encodeURIComponent(String(t))),s=r.parse(a,!0),c=Object.assign({method:"GET"},n),u={};if(u["User-Agent"]=o,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,o){const a=t.ScheduledTransactionsApiFetchParamCreator(e).getScheduledTransactionById(n,r,o);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)))},getScheduledTransactions(n,r){const o=t.ScheduledTransactionsApiFetchParamCreator(e).getScheduledTransactions(n,r);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.ScheduledTransactionsApiFactory=function(e){return{getScheduledTransactionById:(n,r,o)=>t.ScheduledTransactionsApiFp(e).getScheduledTransactionById(n,r,o)(),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{createTransaction(t,n,a={}){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("save_transactions","Required parameter save_transactions 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"},a),d={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return d["Content-Type"]="application/json",c.query=Object.assign({},c.query,{},a.query),delete c.search,u.headers=Object.assign({},d,a.headers),u.body=JSON.stringify(n||{}),{url:r.format(c),options:u}},getTransactionById(t,n,a={}){if(null===t||void 0===t)throw new i("budget_id","Required parameter budget_id was null or undefined when calling getTransactionById.");if(null===n||void 0===n)throw new i("transaction_id","Required parameter transaction_id was null or undefined when calling getTransactionById.");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"},a),d={};if(d["User-Agent"]=o,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return c.query=Object.assign({},c.query,{},a.query),delete c.search,u.headers=Object.assign({},d,a.headers),{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))),d=r.parse(u,!0),h=Object.assign({method:"GET"},c),l={},p={};if(l["User-Agent"]=o,l.Accept="application/json",e&&e.apiKey){const t=e.apiKey;l.Authorization=t}return void 0!==n&&(p.since_date=a(n)),void 0!==s&&(p.type=s),d.query=Object.assign({},d.query,p,c.query),delete d.search,h.headers=Object.assign({},l,c.headers),{url:r.format(d),options:h}},getTransactionsByAccount(t,n,s,c,u={}){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 d="/budgets/{budget_id}/accounts/{account_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))).replace("{account_id}",encodeURIComponent(String(n))),h=r.parse(d,!0),l=Object.assign({method:"GET"},u),p={},g={};if(p["User-Agent"]=o,p.Accept="application/json",e&&e.apiKey){const t=e.apiKey;p.Authorization=t}return void 0!==s&&(g.since_date=a(s)),void 0!==c&&(g.type=c),h.query=Object.assign({},h.query,g,u.query),delete h.search,l.headers=Object.assign({},p,u.headers),{url:r.format(h),options:l}},getTransactionsByCategory(t,n,s,c,u={}){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 d="/budgets/{budget_id}/categories/{category_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))).replace("{category_id}",encodeURIComponent(String(n))),h=r.parse(d,!0),l=Object.assign({method:"GET"},u),p={},g={};if(p["User-Agent"]=o,p.Accept="application/json",e&&e.apiKey){const t=e.apiKey;p.Authorization=t}return void 0!==s&&(g.since_date=a(s)),void 0!==c&&(g.type=c),h.query=Object.assign({},h.query,g,u.query),delete h.search,l.headers=Object.assign({},p,u.headers),{url:r.format(h),options:l}},getTransactionsByPayee(t,n,s,c,u={}){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 d="/budgets/{budget_id}/payees/{payee_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))).replace("{payee_id}",encodeURIComponent(String(n))),h=r.parse(d,!0),l=Object.assign({method:"GET"},u),p={},g={};if(p["User-Agent"]=o,p.Accept="application/json",e&&e.apiKey){const t=e.apiKey;p.Authorization=t}return void 0!==s&&(g.since_date=a(s)),void 0!==c&&(g.type=c),h.query=Object.assign({},h.query,g,u.query),delete h.search,l.headers=Object.assign({},p,u.headers),{url:r.format(h),options:l}},updateTransaction(t,n,a,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===a||void 0===a)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),d=Object.assign({method:"PUT"},s),h={};if(h["User-Agent"]=o,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return h["Content-Type"]="application/json",u.query=Object.assign({},u.query,{},s.query),delete u.search,d.headers=Object.assign({},h,s.headers),d.body=JSON.stringify(a||{}),{url:r.format(u),options:d}}}},t.TransactionsApiFp=function(e){return{createTransaction(n,r,o){const a=t.TransactionsApiFetchParamCreator(e).createTransaction(n,r,o);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)))},getTransactionById(n,r,o){const a=t.TransactionsApiFetchParamCreator(e).getTransactionById(n,r,o);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)))},getTransactions(n,r,o,a){const s=t.TransactionsApiFetchParamCreator(e).getTransactions(n,r,o,a);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,o,a,s){const i=t.TransactionsApiFetchParamCreator(e).getTransactionsByAccount(n,r,o,a,s);return(t=fetch)=>t(e.basePath+i.url,i.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getTransactionsByCategory(n,r,o,a,s){const i=t.TransactionsApiFetchParamCreator(e).getTransactionsByCategory(n,r,o,a,s);return(t=fetch)=>t(e.basePath+i.url,i.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},getTransactionsByPayee(n,r,o,a,s){const i=t.TransactionsApiFetchParamCreator(e).getTransactionsByPayee(n,r,o,a,s);return(t=fetch)=>t(e.basePath+i.url,i.options).then(e=>e.status>=200&&e.status<300?e.json():e.json().then(e=>Promise.reject(e)))},updateTransaction(n,r,o,a){const s=t.TransactionsApiFetchParamCreator(e).updateTransaction(n,r,o,a);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{createTransaction:(n,r,o)=>t.TransactionsApiFp(e).createTransaction(n,r,o)(),getTransactionById:(n,r,o)=>t.TransactionsApiFp(e).getTransactionById(n,r,o)(),getTransactions:(n,r,o,a)=>t.TransactionsApiFp(e).getTransactions(n,r,o,a)(),getTransactionsByAccount:(n,r,o,a,s)=>t.TransactionsApiFp(e).getTransactionsByAccount(n,r,o,a,s)(),getTransactionsByCategory:(n,r,o,a,s)=>t.TransactionsApiFp(e).getTransactionsByCategory(n,r,o,a,s)(),getTransactionsByPayee:(n,r,o,a,s)=>t.TransactionsApiFp(e).getTransactionsByPayee(n,r,o,a,s)(),updateTransaction:(n,r,o,a)=>t.TransactionsApiFp(e).updateTransaction(n,r,o,a)()}};t.TransactionsApi=class extends s{createTransaction(e,n,r){return t.TransactionsApiFp(this.configuration).createTransaction(e,n,r)()}getTransactionById(e,n,r){return t.TransactionsApiFp(this.configuration).getTransactionById(e,n,r)()}getTransactions(e,n,r,o){return t.TransactionsApiFp(this.configuration).getTransactions(e,n,r,o)()}getTransactionsByAccount(e,n,r,o,a){return t.TransactionsApiFp(this.configuration).getTransactionsByAccount(e,n,r,o,a)()}getTransactionsByCategory(e,n,r,o,a){return t.TransactionsApiFp(this.configuration).getTransactionsByCategory(e,n,r,o,a)()}getTransactionsByPayee(e,n,r,o,a){return t.TransactionsApiFp(this.configuration).getTransactionsByPayee(e,n,r,o,a)()}updateTransaction(e,n,r,o){return t.TransactionsApiFp(this.configuration).updateTransaction(e,n,r,o)()}},t.UserApiFetchParamCreator=function(e){return{getUser(t={}){const n=r.parse("/user",!0),a=Object.assign({method:"GET"},t),s={};if(s["User-Agent"]=o,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,a.headers=Object.assign({},s,t.headers),{url:r.format(n),options:a}}}},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});const r=n(2),o=n(0),a=n(13),s=n(14);t.utils=s.default,function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(0));class i{constructor(e,t="https://api.youneedabudget.com/v1"){this._configuration=new r.Configuration(e,t)}get user(){return this._user||(this._user=new o.UserApi(this._configuration)),this._user}get budgets(){return this._budgets||(this._budgets=new o.BudgetsApi(this._configuration)),this._budgets}get accounts(){return this._accounts||(this._accounts=new o.AccountsApi(this._configuration)),this._accounts}get categories(){return this._categories||(this._categories=new o.CategoriesApi(this._configuration)),this._categories}get months(){return this._months||(this._months=new o.MonthsApi(this._configuration)),this._months}get payees(){return this._payees||(this._payees=new o.PayeesApi(this._configuration)),this._payees}get payeeLocations(){return this._payeeLocations||(this._payeeLocations=new o.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 o.ScheduledTransactionsApi(this._configuration)),this._scheduledTransactions}}t.api=i,t.API=i},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";var r=n(4),o=n(7);function a(){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){o.isString(e)&&(e=A(e));return e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a;var s=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),d=["'"].concat(u),h=["%","/","?",";","#"].concat(d),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(8);function A(e,t,n){if(e&&o.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),i=-1!==a&&a<e.indexOf("#")?"?":"#",u=e.split(i);u[0]=u[0].replace(/\\/g,"/");var A=e=u.join(i);if(A=A.trim(),!n&&1===e.split("#").length){var w=c.exec(A);if(w)return this.path=A,this.href=A,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?b.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var _=s.exec(A);if(_){var j=(_=_[0]).toLowerCase();this.protocol=j,A=A.substr(_.length)}if(n||_||A.match(/^\/\/[^@\/]+@[^@\/]+/)){var v="//"===A.substr(0,2);!v||_&&f[_]||(A=A.substr(2),this.slashes=!0)}if(!f[_]&&(v||_&&!m[_])){for(var P,T,C=-1,B=0;B<l.length;B++){-1!==(O=A.indexOf(l[B]))&&(-1===C||O<C)&&(C=O)}-1!==(T=-1===C?A.lastIndexOf("@"):A.lastIndexOf("@",C))&&(P=A.slice(0,T),A=A.slice(T+1),this.auth=decodeURIComponent(P)),C=-1;for(B=0;B<h.length;B++){var O;-1!==(O=A.indexOf(h[B]))&&(-1===C||O<C)&&(C=O)}-1===C&&(C=A.length),this.host=A.slice(0,C),A=A.slice(C),this.parseHost(),this.hostname=this.hostname||"";var I="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!I)for(var F=this.hostname.split(/\./),q=(B=0,F.length);B<q;B++){var R=F[B];if(R&&!R.match(p)){for(var S="",U=0,E=R.length;U<E;U++)R.charCodeAt(U)>127?S+="x":S+=R[U];if(!S.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=d.length;B<q;B++){var D=d[B];if(-1!==A.indexOf(D)){var G=encodeURIComponent(D);G===D&&(G=escape(D)),A=A.split(D).join(G)}}var z=A.indexOf("#");-1!==z&&(this.hash=A.substr(z),A=A.slice(0,z));var Y=A.indexOf("?");if(-1!==Y?(this.search=A.substr(Y),this.query=A.substr(Y+1),t&&(this.query=b.parse(this.query)),A=A.slice(0,Y)):t&&(this.search="",this.query={}),A&&(this.pathname=A),m[j]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){K=this.pathname||"";var N=this.search||"";this.path=K+N}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",a=!1,s="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(s=b.stringify(this.query));var i=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[t])&&!1!==a?(a="//"+(a||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):a||(a=""),r&&"#"!==r.charAt(0)&&(r="#"+r),i&&"?"!==i.charAt(0)&&(i="?"+i),t+a+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(i=i.replace("#","%23"))+r},a.prototype.resolve=function(e){return this.resolveObject(A(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if(o.isString(e)){var t=new a;t.parse(e,!1,!0),e=t}for(var n=new a,r=Object.keys(this),s=0;s<r.length;s++){var i=r[s];n[i]=this[i]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),u=0;u<c.length;u++){var d=c[u];"protocol"!==d&&(n[d]=e[d])}return m[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!m[e.protocol]){for(var h=Object.keys(e),l=0;l<h.length;l++){var p=h[l];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||f[e.protocol])n.pathname=e.pathname;else{for(var g=(e.pathname||"").split("/");g.length&&!(e.host=g.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==g[0]&&g.unshift(""),g.length<2&&g.unshift(""),n.pathname=g.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var y=n.pathname||"",b=n.search||"";n.path=y+b}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var A=n.pathname&&"/"===n.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=w||A||n.host&&e.pathname,j=_,v=n.pathname&&n.pathname.split("/")||[],P=(g=e.pathname&&e.pathname.split("/")||[],n.protocol&&!m[n.protocol]);if(P&&(n.hostname="",n.port=null,n.host&&(""===v[0]?v[0]=n.host:v.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===g[0]?g[0]=e.host:g.unshift(e.host)),e.host=null),_=_&&(""===g[0]||""===v[0])),w)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,v=g;else if(g.length)v||(v=[]),v.pop(),v=v.concat(g),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(P)n.hostname=n.host=v.shift(),(I=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=I.shift(),n.host=n.hostname=I.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.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),o.isNull(n.pathname)&&o.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},a.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){(function(e,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(a){"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,d=1,h=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-d,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=[],o=0,a=e.length;o<a;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<a?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function O(e){return T(e,function(e){var t="";return e>65535&&(t+=v((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=v(e)}).join("")}function I(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:u}function F(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function q(e,t,n){var r=0;for(e=n?j(e/p):e>>1,e+=j(e/t);e>_*h>>1;r+=u)e=j(e/_);return j(r+(_+1)*e/(e+l))}function R(e){var t,n,r,o,a,s,i,l,p,m,b=[],A=e.length,w=0,_=y,v=g;for((n=e.lastIndexOf(f))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&P("not-basic"),b.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<A;){for(a=w,s=1,i=u;o>=A&&P("invalid-input"),((l=I(e.charCodeAt(o++)))>=u||l>j((c-w)/s))&&P("overflow"),w+=l*s,!(l<(p=i<=v?d:i>=v+h?h:i-v));i+=u)s>j(c/(m=u-p))&&P("overflow"),s*=m;v=q(w-a,t=b.length+1,0==a),j(w/t)>c-_&&P("overflow"),_+=j(w/t),w%=t,b.splice(w++,0,_)}return O(b)}function S(e){var t,n,r,o,a,s,i,l,p,m,b,A,w,_,T,C=[];for(A=(e=B(e)).length,t=y,n=0,a=g,s=0;s<A;++s)(b=e[s])<128&&C.push(v(b));for(r=o=C.length,o&&C.push(f);r<A;){for(i=c,s=0;s<A;++s)(b=e[s])>=t&&b<i&&(i=b);for(i-t>j((c-n)/(w=r+1))&&P("overflow"),n+=(i-t)*w,t=i,s=0;s<A;++s)if((b=e[s])<t&&++n>c&&P("overflow"),b==t){for(l=n,p=u;!(l<(m=p<=a?d:p>=a+h?h:p-a));p+=u)T=l-m,_=u-m,C.push(v(F(m+T%_,0))),l=j(T/_);C.push(v(F(l,0))),a=q(n,w,r==o),n=0,++r}++n,++t}return C.join("")}i={version:"1.4.1",ucs2:{decode:B,encode:O},decode:R,encode:S,toASCII:function(e){return C(e,function(e){return b.test(e)?"xn--"+S(e):e})},toUnicode:function(e){return C(e,function(e){return m.test(e)?R(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(5)(e),n(6))},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){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,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,n){"use strict";t.decode=t.parse=n(9),t.encode=t.stringify=n(10)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,a){t=t||"&",n=n||"=";var s={};if("string"!=typeof e||0===e.length)return s;var i=/\+/g;e=e.split(t);var c=1e3;a&&"number"==typeof a.maxKeys&&(c=a.maxKeys);var u=e.length;c>0&&u>c&&(u=c);for(var d=0;d<u;++d){var h,l,p,g,y=e[d].replace(i,"%20"),f=y.indexOf(n);f>=0?(h=y.substr(0,f),l=y.substr(f+1)):(h=y,l=""),p=decodeURIComponent(h),g=decodeURIComponent(l),r(s,p)?o(s[p])?s[p].push(g):s[p]=[s[p],g]:s[p]=g}return s};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},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?a(s(e),function(s){var i=encodeURIComponent(r(s))+n;return o(e[s])?a(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 o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var s=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){n(12),e.exports=self.fetch.bind(self)},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)},o=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};d.prototype.append=function(e,t){e=i(e),t=c(t);var n=this.map[e];this.map[e]=n?n+","+t:t},d.prototype.delete=function(e){delete this.map[i(e)]},d.prototype.get=function(e){return e=i(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(i(e))},d.prototype.set=function(e,t){this.map[i(e)]=c(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),u(e)},d.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},d.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),u(e)},t.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);var a=["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 d(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=d,e.Request=f,e.Response=b,e.fetch=function(e,n){return new Promise(function(r,o){var a=new f(e,n),s=new XMLHttpRequest;s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:function(e){var t=new d;return e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t}(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;r(new b(t,e))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.open(a.method,a.url,!0),"include"===a.credentials&&(s.withCredentials=!0),"responseType"in s&&t.blob&&(s.responseType="blob"),a.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),s.send(void 0===a._bodyInit?null:a._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 d(e){this.map={},e instanceof d?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 h(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)&&!o(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=h(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?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=l(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},t.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}function f(e,t){var n=(t=t||{}).body;if(e instanceof f){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=function(e){var t=e.toUpperCase();return a.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}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," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),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 d(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);t.TransactionsApi=class extends r.TransactionsApi{createTransactions(e,t,n){return r.TransactionsApiFp(this.configuration).createTransaction(e,t,n)()}bulkCreateTransactions(e,t,n){return r.DeprecatedApiFp(this.configuration).bulkCreateTransactions(e,t,n)()}}},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))}}}]);

@@ -14,2 +14,3 @@ /**

import * as CodeGen from "./api";
import { TransactionsApi } from "./transactionsApi";
import utils from "./utils";

@@ -65,7 +66,7 @@ export { api as API };

readonly payeeLocations: CodeGen.PayeeLocationsApi;
protected _transactions: CodeGen.TransactionsApi;
protected _transactions: TransactionsApi;
/**
* /budgets/{budget_id}/transactions endpoints interface
*/
readonly transactions: CodeGen.TransactionsApi;
readonly transactions: TransactionsApi;
protected _scheduledTransactions: CodeGen.ScheduledTransactionsApi;

@@ -72,0 +73,0 @@ /**

@@ -15,2 +15,3 @@ // tslint:disable

import * as CodeGen from "./api";
import { TransactionsApi } from "./transactionsApi";
import utils from "./utils";

@@ -130,3 +131,3 @@ export { api as API };

if (!this._transactions) {
this._transactions = new CodeGen.TransactionsApi(this._configuration);
this._transactions = new TransactionsApi(this._configuration);
}

@@ -133,0 +134,0 @@ return this._transactions;

@@ -14,2 +14,3 @@ /**

import * as CodeGen from "./api";
import { TransactionsApi } from "./transactionsApi";
import utils from "./utils";

@@ -65,7 +66,7 @@ export { api as API };

readonly payeeLocations: CodeGen.PayeeLocationsApi;
protected _transactions: CodeGen.TransactionsApi;
protected _transactions: TransactionsApi;
/**
* /budgets/{budget_id}/transactions endpoints interface
*/
readonly transactions: CodeGen.TransactionsApi;
readonly transactions: TransactionsApi;
protected _scheduledTransactions: CodeGen.ScheduledTransactionsApi;

@@ -72,0 +73,0 @@ /**

@@ -20,2 +20,3 @@ "use strict";

const CodeGen = require("./api");
const transactionsApi_1 = require("./transactionsApi");
const utils_1 = require("./utils");

@@ -104,3 +105,3 @@ exports.utils = utils_1.default;

if (!this._transactions) {
this._transactions = new CodeGen.TransactionsApi(this._configuration);
this._transactions = new transactionsApi_1.TransactionsApi(this._configuration);
}

@@ -107,0 +108,0 @@ return this._transactions;

{
"name": "ynab",
"version": "1.8.0",
"version": "1.9.0",
"description": "YNAB API Javascript (Node) Library",

@@ -5,0 +5,0 @@ "author": "You Need a Budget, LLC",

@@ -117,27 +117,28 @@ # YNAB API JavaScript Library

|----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------|
| **User** | [user.getUser()](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L3354) | Returns authenticated user information |
| **Budgets** | [budgets.getBudgets()](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L2428) | Returns budgets list with summary information |
| | [budgets.getBudgetById(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L2411) | Returns a single budget with all related entities |
| | [budgets.getBudgetSettingsById(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L2420) | Returns settings for a budget |
| **Accounts** | [accounts.getAccounts(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L2303) | Returns all accounts |
| | [accounts.getAccountById(budget_id, account_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L2294) | Returns a single account |
| **Categories** | [categories.getCategories(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L2514) | Returns all categories grouped by category group. |
| | [categories.getCategoryById(budget_id, category_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L2524) | Returns a single category |
| **Payees** | [payees.getPayees(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L2849) | Returns all payees |
| | [payees.getPayeeById(budget_id, payee_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L2840) | Returns single payee |
| **Payee Locations** | [payee_locations.getPayeeLocations(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L2743) | Returns all payee locations |
| | [payee_locations.getPayeeLocationById(budget_id, payee_location_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L2734) | Returns a single payee location |
| | [payee_locations.getPayeeLocationsByPayee(budget_id, payee_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L2753) | Returns all payee locations for the specified payee |
| **Months** | [months.getBudgetMonths(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L2620) | Returns all budget months |
| | [months.getBudgetMonth(budget_id, month)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L2611) | Returns a single budget month |
| | [months.getMonthCategory_by_id(budget_id, month, category_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L2618) | Returns a single category for a specific budget month |
| **User** | [user.getUser()](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns authenticated user information |
| **Budgets** | [budgets.getBudgets()](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns budgets list with summary information |
| | [budgets.getBudgetById(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns a single budget with all related entities |
| | [budgets.getBudgetSettingsById(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns settings for a budget |
| **Accounts** | [accounts.getAccounts(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns all accounts |
| | [accounts.getAccountById(budget_id, account_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns a single account |
| **Categories** | [categories.getCategories(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns all categories grouped by category group. |
| | [categories.getCategoryById(budget_id, category_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns a single category |
| **Payees** | [payees.getPayees(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns all payees |
| | [payees.getPayeeById(budget_id, payee_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns single payee |
| **Payee Locations** | [payee_locations.getPayeeLocations(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns all payee locations |
| | [payee_locations.getPayeeLocationById(budget_id, payee_location_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns a single payee location |
| | [payee_locations.getPayeeLocationsByPayee(budget_id, payee_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns all payee locations for the specified payee |
| **Months** | [months.getBudgetMonths(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns all budget months |
| | [months.getBudgetMonth(budget_id, month)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns a single budget month |
| | [months.getMonthCategory_by_id(budget_id, month, category_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns a single category for a specific budget month |
| | [months.updateMonthCategory(budget_id, month, category_id, month_category)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L2629) | Update an existing month category |
| **Transactions** | [transactions.getTransactions(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L3252) | Returns budget transactions |
| | [transactions.getTransactionsByAccount(budget_id, account_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L3264) | Returns all transactions for a specified account |
| | [transactions.getTransactionsByCategory(budget_id, category_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L3276) | Returns all transactions for a specified category |
| | [transactions.getTransactionById(budget_id, transaction_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L3241) | Returns a single transaction |
| | [transactions.updateTransaction(budget_id, transaction_id, transaction)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L3299) | Updates a transaction |
| | [transactions.createTransaction(budget_id, save_transactions)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L3231) | Creates one or multiple transactions |
| | [transactions.bulkCreateTransactions(budget_id, transactions)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L3221) | Creates multiple transactions |
| **Scheduled Transactions** | [scheduled_transactions.getScheduledTransactions(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L2945) | Returns all scheduled transactions |
| **Transactions** | [transactions.getTransactions(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns budget transactions |
| | [transactions.getTransactionsByAccount(budget_id, account_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns all transactions for a specified account |
| | [transactions.getTransactionsByCategory(budget_id, category_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns all transactions for a specified category |
| | [transactions.getTransactionById(budget_id, transaction_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns a single transaction |
| | [transactions.updateTransaction(budget_id, transaction_id, transaction)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Updates a transaction |
| | [transactions.createTransaction(budget_id, save_transactions)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Creates one transactions |
| | [transactions.createTransactions(budget_id, save_transactions)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Creates multiple transactions |
| | [transactions.bulkCreateTransactions(budget_id, transactions)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Creates multiple transactions |
| **Scheduled Transactions** | [scheduled_transactions.getScheduledTransactions(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts) | Returns all scheduled transactions |
| | [scheduled_transactions.getScheduledTransactionById(budget_id, scheduled_transaction_id)](https://github.com/ynab/ynab-sdk-js/blob/master/dist/api.d.ts#L2936) | Returns a single scheduled transaction |

@@ -144,0 +145,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc