ynab 1.55.0 → 2.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (432) hide show
  1. package/README.md +31 -38
  2. package/dist/apis/AccountsApi.d.ts +60 -0
  3. package/dist/apis/AccountsApi.js +137 -0
  4. package/dist/apis/BudgetsApi.d.ts +58 -0
  5. package/dist/apis/BudgetsApi.js +129 -0
  6. package/dist/apis/CategoriesApi.d.ts +77 -0
  7. package/dist/apis/CategoriesApi.js +183 -0
  8. package/dist/{esm/transactionsApi.d.ts → apis/CustomTransactionsApi.d.ts} +19 -19
  9. package/dist/{transactionsApi.js → apis/CustomTransactionsApi.js} +24 -19
  10. package/dist/apis/DeprecatedApi.d.ts +32 -0
  11. package/dist/apis/DeprecatedApi.js +63 -0
  12. package/dist/apis/MonthsApi.d.ts +46 -0
  13. package/dist/apis/MonthsApi.js +98 -0
  14. package/dist/apis/PayeeLocationsApi.d.ts +59 -0
  15. package/dist/apis/PayeeLocationsApi.js +132 -0
  16. package/dist/apis/PayeesApi.d.ts +46 -0
  17. package/dist/apis/PayeesApi.js +98 -0
  18. package/dist/apis/ScheduledTransactionsApi.d.ts +46 -0
  19. package/dist/apis/ScheduledTransactionsApi.js +98 -0
  20. package/dist/apis/TransactionsApi.d.ts +201 -0
  21. package/dist/apis/TransactionsApi.js +461 -0
  22. package/dist/apis/UserApi.d.ts +28 -0
  23. package/dist/apis/UserApi.js +55 -0
  24. package/dist/apis/index.d.ts +10 -0
  25. package/dist/apis/index.js +24 -0
  26. package/dist/browser/ynab.js +1 -1
  27. package/dist/esm/apis/AccountsApi.d.ts +60 -0
  28. package/dist/esm/apis/AccountsApi.js +256 -0
  29. package/dist/esm/apis/BudgetsApi.d.ts +58 -0
  30. package/dist/esm/apis/BudgetsApi.js +248 -0
  31. package/dist/esm/apis/CategoriesApi.d.ts +77 -0
  32. package/dist/esm/apis/CategoriesApi.js +324 -0
  33. package/dist/{transactionsApi.d.ts → esm/apis/CustomTransactionsApi.d.ts} +19 -19
  34. package/dist/esm/{transactionsApi.js → apis/CustomTransactionsApi.js} +27 -22
  35. package/dist/esm/apis/DeprecatedApi.d.ts +32 -0
  36. package/dist/esm/apis/DeprecatedApi.js +138 -0
  37. package/dist/esm/apis/MonthsApi.d.ts +46 -0
  38. package/dist/esm/apis/MonthsApi.js +195 -0
  39. package/dist/esm/apis/PayeeLocationsApi.d.ts +59 -0
  40. package/dist/esm/apis/PayeeLocationsApi.js +251 -0
  41. package/dist/esm/apis/PayeesApi.d.ts +46 -0
  42. package/dist/esm/apis/PayeesApi.js +195 -0
  43. package/dist/esm/apis/ScheduledTransactionsApi.d.ts +46 -0
  44. package/dist/esm/apis/ScheduledTransactionsApi.js +195 -0
  45. package/dist/esm/apis/TransactionsApi.d.ts +201 -0
  46. package/dist/esm/apis/TransactionsApi.js +734 -0
  47. package/dist/esm/apis/UserApi.d.ts +28 -0
  48. package/dist/esm/apis/UserApi.js +130 -0
  49. package/dist/esm/apis/index.d.ts +10 -0
  50. package/dist/esm/apis/index.js +12 -0
  51. package/dist/esm/index.d.ts +24 -36
  52. package/dist/esm/index.js +22 -30
  53. package/dist/esm/models/Account.d.ts +140 -0
  54. package/dist/esm/models/Account.js +88 -0
  55. package/dist/esm/models/AccountResponse.d.ts +32 -0
  56. package/dist/esm/models/AccountResponse.js +44 -0
  57. package/dist/esm/models/AccountResponseData.d.ts +32 -0
  58. package/dist/esm/models/AccountResponseData.js +44 -0
  59. package/dist/esm/models/AccountType.d.ts +34 -0
  60. package/dist/esm/models/AccountType.js +41 -0
  61. package/dist/esm/models/AccountsResponse.d.ts +32 -0
  62. package/dist/esm/models/AccountsResponse.js +44 -0
  63. package/dist/esm/models/AccountsResponseData.d.ts +38 -0
  64. package/dist/esm/models/AccountsResponseData.js +47 -0
  65. package/dist/esm/models/BudgetDetail.d.ts +139 -0
  66. package/dist/esm/models/BudgetDetail.js +89 -0
  67. package/dist/esm/models/BudgetDetailAllOf.d.ts +95 -0
  68. package/dist/esm/models/BudgetDetailAllOf.js +71 -0
  69. package/dist/esm/models/BudgetDetailResponse.d.ts +32 -0
  70. package/dist/esm/models/BudgetDetailResponse.js +44 -0
  71. package/dist/esm/models/BudgetDetailResponseData.d.ts +38 -0
  72. package/dist/esm/models/BudgetDetailResponseData.js +47 -0
  73. package/dist/esm/models/BudgetSettings.d.ts +39 -0
  74. package/dist/esm/models/BudgetSettings.js +48 -0
  75. package/dist/esm/models/BudgetSettingsResponse.d.ts +32 -0
  76. package/dist/esm/models/BudgetSettingsResponse.js +44 -0
  77. package/dist/esm/models/BudgetSettingsResponseData.d.ts +32 -0
  78. package/dist/esm/models/BudgetSettingsResponseData.js +44 -0
  79. package/dist/esm/models/BudgetSummary.d.ts +76 -0
  80. package/dist/esm/models/BudgetSummary.js +62 -0
  81. package/dist/esm/models/BudgetSummaryResponse.d.ts +32 -0
  82. package/dist/esm/models/BudgetSummaryResponse.js +44 -0
  83. package/dist/esm/models/BudgetSummaryResponseData.d.ts +38 -0
  84. package/dist/esm/models/BudgetSummaryResponseData.js +47 -0
  85. package/dist/esm/models/BulkResponse.d.ts +32 -0
  86. package/dist/esm/models/BulkResponse.js +44 -0
  87. package/dist/esm/models/BulkResponseData.d.ts +32 -0
  88. package/dist/esm/models/BulkResponseData.js +44 -0
  89. package/dist/esm/models/BulkResponseDataBulk.d.ts +37 -0
  90. package/dist/esm/models/BulkResponseDataBulk.js +46 -0
  91. package/dist/esm/models/BulkTransactions.d.ts +32 -0
  92. package/dist/esm/models/BulkTransactions.js +44 -0
  93. package/dist/esm/models/CategoriesResponse.d.ts +32 -0
  94. package/dist/esm/models/CategoriesResponse.js +44 -0
  95. package/dist/esm/models/CategoriesResponseData.d.ts +38 -0
  96. package/dist/esm/models/CategoriesResponseData.js +47 -0
  97. package/dist/esm/models/Category.d.ts +175 -0
  98. package/dist/esm/models/Category.js +106 -0
  99. package/dist/esm/models/CategoryGroup.d.ts +49 -0
  100. package/dist/esm/models/CategoryGroup.js +52 -0
  101. package/dist/esm/models/CategoryGroupWithCategories.d.ts +56 -0
  102. package/dist/esm/models/CategoryGroupWithCategories.js +56 -0
  103. package/dist/esm/models/CategoryGroupWithCategoriesAllOf.d.ts +32 -0
  104. package/dist/esm/models/CategoryGroupWithCategoriesAllOf.js +44 -0
  105. package/dist/esm/models/CategoryResponse.d.ts +32 -0
  106. package/dist/esm/models/CategoryResponse.js +44 -0
  107. package/dist/esm/models/CategoryResponseData.d.ts +32 -0
  108. package/dist/esm/models/CategoryResponseData.js +44 -0
  109. package/dist/esm/models/CurrencyFormat.d.ts +73 -0
  110. package/dist/esm/models/CurrencyFormat.js +64 -0
  111. package/dist/esm/models/DateFormat.d.ts +31 -0
  112. package/dist/esm/models/DateFormat.js +43 -0
  113. package/dist/esm/models/ErrorDetail.d.ts +43 -0
  114. package/dist/esm/models/ErrorDetail.js +49 -0
  115. package/dist/esm/models/ErrorResponse.d.ts +32 -0
  116. package/dist/esm/models/ErrorResponse.js +44 -0
  117. package/dist/esm/models/HybridTransaction.d.ts +208 -0
  118. package/dist/esm/models/HybridTransaction.js +137 -0
  119. package/dist/esm/models/HybridTransactionAllOf.d.ts +63 -0
  120. package/dist/esm/models/HybridTransactionAllOf.js +60 -0
  121. package/dist/esm/models/HybridTransactionsResponse.d.ts +32 -0
  122. package/dist/esm/models/HybridTransactionsResponse.js +44 -0
  123. package/dist/esm/models/HybridTransactionsResponseData.d.ts +38 -0
  124. package/dist/esm/models/HybridTransactionsResponseData.js +47 -0
  125. package/dist/esm/models/MonthDetail.d.ts +80 -0
  126. package/dist/esm/models/MonthDetail.js +67 -0
  127. package/dist/esm/models/MonthDetailAllOf.d.ts +32 -0
  128. package/dist/esm/models/MonthDetailAllOf.js +44 -0
  129. package/dist/esm/models/MonthDetailResponse.d.ts +32 -0
  130. package/dist/esm/models/MonthDetailResponse.js +44 -0
  131. package/dist/esm/models/MonthDetailResponseData.d.ts +32 -0
  132. package/dist/esm/models/MonthDetailResponseData.js +44 -0
  133. package/dist/esm/models/MonthSummariesResponse.d.ts +32 -0
  134. package/dist/esm/models/MonthSummariesResponse.js +44 -0
  135. package/dist/esm/models/MonthSummariesResponseData.d.ts +38 -0
  136. package/dist/esm/models/MonthSummariesResponseData.js +47 -0
  137. package/dist/esm/models/MonthSummary.d.ts +73 -0
  138. package/dist/esm/models/MonthSummary.js +63 -0
  139. package/dist/esm/models/PatchMonthCategoryWrapper.d.ts +32 -0
  140. package/dist/esm/models/PatchMonthCategoryWrapper.js +44 -0
  141. package/dist/esm/models/PatchTransactionsWrapper.d.ts +32 -0
  142. package/dist/esm/models/PatchTransactionsWrapper.js +44 -0
  143. package/dist/esm/models/Payee.d.ts +49 -0
  144. package/dist/esm/models/Payee.js +52 -0
  145. package/dist/esm/models/PayeeLocation.d.ts +55 -0
  146. package/dist/esm/models/PayeeLocation.js +55 -0
  147. package/dist/esm/models/PayeeLocationResponse.d.ts +32 -0
  148. package/dist/esm/models/PayeeLocationResponse.js +44 -0
  149. package/dist/esm/models/PayeeLocationResponseData.d.ts +32 -0
  150. package/dist/esm/models/PayeeLocationResponseData.js +44 -0
  151. package/dist/esm/models/PayeeLocationsResponse.d.ts +32 -0
  152. package/dist/esm/models/PayeeLocationsResponse.js +44 -0
  153. package/dist/esm/models/PayeeLocationsResponseData.d.ts +32 -0
  154. package/dist/esm/models/PayeeLocationsResponseData.js +44 -0
  155. package/dist/esm/models/PayeeResponse.d.ts +32 -0
  156. package/dist/esm/models/PayeeResponse.js +44 -0
  157. package/dist/esm/models/PayeeResponseData.d.ts +32 -0
  158. package/dist/esm/models/PayeeResponseData.js +44 -0
  159. package/dist/esm/models/PayeesResponse.d.ts +32 -0
  160. package/dist/esm/models/PayeesResponse.js +44 -0
  161. package/dist/esm/models/PayeesResponseData.d.ts +38 -0
  162. package/dist/esm/models/PayeesResponseData.js +47 -0
  163. package/dist/esm/models/PostAccountWrapper.d.ts +32 -0
  164. package/dist/esm/models/PostAccountWrapper.js +44 -0
  165. package/dist/esm/models/PostTransactionsWrapper.d.ts +38 -0
  166. package/dist/esm/models/PostTransactionsWrapper.js +46 -0
  167. package/dist/esm/models/PutTransactionWrapper.d.ts +32 -0
  168. package/dist/esm/models/PutTransactionWrapper.js +44 -0
  169. package/dist/esm/models/SaveAccount.d.ts +44 -0
  170. package/dist/esm/models/SaveAccount.js +50 -0
  171. package/dist/esm/models/SaveCategoryResponse.d.ts +32 -0
  172. package/dist/esm/models/SaveCategoryResponse.js +44 -0
  173. package/dist/esm/models/SaveCategoryResponseData.d.ts +38 -0
  174. package/dist/esm/models/SaveCategoryResponseData.js +47 -0
  175. package/dist/esm/models/SaveMonthCategory.d.ts +31 -0
  176. package/dist/esm/models/SaveMonthCategory.js +43 -0
  177. package/dist/esm/models/SaveSubTransaction.d.ts +55 -0
  178. package/dist/esm/models/SaveSubTransaction.js +52 -0
  179. package/dist/esm/models/SaveTransaction.d.ts +120 -0
  180. package/dist/esm/models/SaveTransaction.js +86 -0
  181. package/dist/esm/models/SaveTransactionWithId.d.ts +126 -0
  182. package/dist/esm/models/SaveTransactionWithId.js +88 -0
  183. package/dist/esm/models/SaveTransactionWithIdAllOf.d.ts +31 -0
  184. package/dist/esm/models/SaveTransactionWithIdAllOf.js +43 -0
  185. package/dist/esm/models/SaveTransactionWithOptionalFields.d.ts +120 -0
  186. package/dist/esm/models/SaveTransactionWithOptionalFields.js +86 -0
  187. package/dist/esm/models/SaveTransactionsResponse.d.ts +32 -0
  188. package/dist/esm/models/SaveTransactionsResponse.js +44 -0
  189. package/dist/esm/models/SaveTransactionsResponseData.d.ts +56 -0
  190. package/dist/esm/models/SaveTransactionsResponseData.js +54 -0
  191. package/dist/esm/models/ScheduledSubTransaction.d.ts +73 -0
  192. package/dist/esm/models/ScheduledSubTransaction.js +61 -0
  193. package/dist/esm/models/ScheduledTransactionDetail.d.ts +154 -0
  194. package/dist/esm/models/ScheduledTransactionDetail.js +113 -0
  195. package/dist/esm/models/ScheduledTransactionDetailAllOf.d.ts +50 -0
  196. package/dist/esm/models/ScheduledTransactionDetailAllOf.js +52 -0
  197. package/dist/esm/models/ScheduledTransactionResponse.d.ts +32 -0
  198. package/dist/esm/models/ScheduledTransactionResponse.js +44 -0
  199. package/dist/esm/models/ScheduledTransactionResponseData.d.ts +32 -0
  200. package/dist/esm/models/ScheduledTransactionResponseData.js +44 -0
  201. package/dist/esm/models/ScheduledTransactionSummary.d.ts +129 -0
  202. package/dist/esm/models/ScheduledTransactionSummary.js +102 -0
  203. package/dist/esm/models/ScheduledTransactionsResponse.d.ts +32 -0
  204. package/dist/esm/models/ScheduledTransactionsResponse.js +44 -0
  205. package/dist/esm/models/ScheduledTransactionsResponseData.d.ts +38 -0
  206. package/dist/esm/models/ScheduledTransactionsResponseData.js +47 -0
  207. package/dist/esm/models/SubTransaction.d.ts +91 -0
  208. package/dist/esm/models/SubTransaction.js +67 -0
  209. package/dist/esm/models/TransactionDetail.d.ts +195 -0
  210. package/dist/esm/models/TransactionDetail.js +129 -0
  211. package/dist/esm/models/TransactionDetailAllOf.d.ts +50 -0
  212. package/dist/esm/models/TransactionDetailAllOf.js +52 -0
  213. package/dist/esm/models/TransactionResponse.d.ts +32 -0
  214. package/dist/esm/models/TransactionResponse.js +44 -0
  215. package/dist/esm/models/TransactionResponseData.d.ts +32 -0
  216. package/dist/esm/models/TransactionResponseData.js +44 -0
  217. package/dist/esm/models/TransactionSummary.d.ts +170 -0
  218. package/dist/esm/models/TransactionSummary.js +118 -0
  219. package/dist/esm/models/TransactionsImportResponse.d.ts +32 -0
  220. package/dist/esm/models/TransactionsImportResponse.js +44 -0
  221. package/dist/esm/models/TransactionsImportResponseData.d.ts +31 -0
  222. package/dist/esm/models/TransactionsImportResponseData.js +43 -0
  223. package/dist/esm/models/TransactionsResponse.d.ts +32 -0
  224. package/dist/esm/models/TransactionsResponse.js +44 -0
  225. package/dist/esm/models/TransactionsResponseData.d.ts +38 -0
  226. package/dist/esm/models/TransactionsResponseData.js +47 -0
  227. package/dist/esm/models/User.d.ts +31 -0
  228. package/dist/esm/models/User.js +43 -0
  229. package/dist/esm/models/UserResponse.d.ts +32 -0
  230. package/dist/esm/models/UserResponse.js +44 -0
  231. package/dist/esm/models/UserResponseData.d.ts +32 -0
  232. package/dist/esm/models/UserResponseData.js +44 -0
  233. package/dist/esm/models/index.d.ts +90 -0
  234. package/dist/esm/models/index.js +92 -0
  235. package/dist/esm/runtime.d.ts +182 -0
  236. package/dist/esm/runtime.js +555 -0
  237. package/dist/index.d.ts +24 -36
  238. package/dist/index.js +22 -30
  239. package/dist/models/Account.d.ts +140 -0
  240. package/dist/models/Account.js +95 -0
  241. package/dist/models/AccountResponse.d.ts +32 -0
  242. package/dist/models/AccountResponse.js +51 -0
  243. package/dist/models/AccountResponseData.d.ts +32 -0
  244. package/dist/models/AccountResponseData.js +51 -0
  245. package/dist/models/AccountType.d.ts +34 -0
  246. package/dist/models/AccountType.js +47 -0
  247. package/dist/models/AccountsResponse.d.ts +32 -0
  248. package/dist/models/AccountsResponse.js +51 -0
  249. package/dist/models/AccountsResponseData.d.ts +38 -0
  250. package/dist/models/AccountsResponseData.js +54 -0
  251. package/dist/models/BudgetDetail.d.ts +139 -0
  252. package/dist/models/BudgetDetail.js +96 -0
  253. package/dist/models/BudgetDetailAllOf.d.ts +95 -0
  254. package/dist/models/BudgetDetailAllOf.js +78 -0
  255. package/dist/models/BudgetDetailResponse.d.ts +32 -0
  256. package/dist/models/BudgetDetailResponse.js +51 -0
  257. package/dist/models/BudgetDetailResponseData.d.ts +38 -0
  258. package/dist/models/BudgetDetailResponseData.js +54 -0
  259. package/dist/models/BudgetSettings.d.ts +39 -0
  260. package/dist/models/BudgetSettings.js +55 -0
  261. package/dist/models/BudgetSettingsResponse.d.ts +32 -0
  262. package/dist/models/BudgetSettingsResponse.js +51 -0
  263. package/dist/models/BudgetSettingsResponseData.d.ts +32 -0
  264. package/dist/models/BudgetSettingsResponseData.js +51 -0
  265. package/dist/models/BudgetSummary.d.ts +76 -0
  266. package/dist/models/BudgetSummary.js +69 -0
  267. package/dist/models/BudgetSummaryResponse.d.ts +32 -0
  268. package/dist/models/BudgetSummaryResponse.js +51 -0
  269. package/dist/models/BudgetSummaryResponseData.d.ts +38 -0
  270. package/dist/models/BudgetSummaryResponseData.js +54 -0
  271. package/dist/models/BulkResponse.d.ts +32 -0
  272. package/dist/models/BulkResponse.js +51 -0
  273. package/dist/models/BulkResponseData.d.ts +32 -0
  274. package/dist/models/BulkResponseData.js +51 -0
  275. package/dist/models/BulkResponseDataBulk.d.ts +37 -0
  276. package/dist/models/BulkResponseDataBulk.js +53 -0
  277. package/dist/models/BulkTransactions.d.ts +32 -0
  278. package/dist/models/BulkTransactions.js +51 -0
  279. package/dist/models/CategoriesResponse.d.ts +32 -0
  280. package/dist/models/CategoriesResponse.js +51 -0
  281. package/dist/models/CategoriesResponseData.d.ts +38 -0
  282. package/dist/models/CategoriesResponseData.js +54 -0
  283. package/dist/models/Category.d.ts +175 -0
  284. package/dist/models/Category.js +113 -0
  285. package/dist/models/CategoryGroup.d.ts +49 -0
  286. package/dist/models/CategoryGroup.js +59 -0
  287. package/dist/models/CategoryGroupWithCategories.d.ts +56 -0
  288. package/dist/models/CategoryGroupWithCategories.js +63 -0
  289. package/dist/models/CategoryGroupWithCategoriesAllOf.d.ts +32 -0
  290. package/dist/models/CategoryGroupWithCategoriesAllOf.js +51 -0
  291. package/dist/models/CategoryResponse.d.ts +32 -0
  292. package/dist/models/CategoryResponse.js +51 -0
  293. package/dist/models/CategoryResponseData.d.ts +32 -0
  294. package/dist/models/CategoryResponseData.js +51 -0
  295. package/dist/models/CurrencyFormat.d.ts +73 -0
  296. package/dist/models/CurrencyFormat.js +71 -0
  297. package/dist/models/DateFormat.d.ts +31 -0
  298. package/dist/models/DateFormat.js +50 -0
  299. package/dist/models/ErrorDetail.d.ts +43 -0
  300. package/dist/models/ErrorDetail.js +56 -0
  301. package/dist/models/ErrorResponse.d.ts +32 -0
  302. package/dist/models/ErrorResponse.js +51 -0
  303. package/dist/models/HybridTransaction.d.ts +208 -0
  304. package/dist/models/HybridTransaction.js +144 -0
  305. package/dist/models/HybridTransactionAllOf.d.ts +63 -0
  306. package/dist/models/HybridTransactionAllOf.js +67 -0
  307. package/dist/models/HybridTransactionsResponse.d.ts +32 -0
  308. package/dist/models/HybridTransactionsResponse.js +51 -0
  309. package/dist/models/HybridTransactionsResponseData.d.ts +38 -0
  310. package/dist/models/HybridTransactionsResponseData.js +54 -0
  311. package/dist/models/MonthDetail.d.ts +80 -0
  312. package/dist/models/MonthDetail.js +74 -0
  313. package/dist/models/MonthDetailAllOf.d.ts +32 -0
  314. package/dist/models/MonthDetailAllOf.js +51 -0
  315. package/dist/models/MonthDetailResponse.d.ts +32 -0
  316. package/dist/models/MonthDetailResponse.js +51 -0
  317. package/dist/models/MonthDetailResponseData.d.ts +32 -0
  318. package/dist/models/MonthDetailResponseData.js +51 -0
  319. package/dist/models/MonthSummariesResponse.d.ts +32 -0
  320. package/dist/models/MonthSummariesResponse.js +51 -0
  321. package/dist/models/MonthSummariesResponseData.d.ts +38 -0
  322. package/dist/models/MonthSummariesResponseData.js +54 -0
  323. package/dist/models/MonthSummary.d.ts +73 -0
  324. package/dist/models/MonthSummary.js +70 -0
  325. package/dist/models/PatchMonthCategoryWrapper.d.ts +32 -0
  326. package/dist/models/PatchMonthCategoryWrapper.js +51 -0
  327. package/dist/models/PatchTransactionsWrapper.d.ts +32 -0
  328. package/dist/models/PatchTransactionsWrapper.js +51 -0
  329. package/dist/models/Payee.d.ts +49 -0
  330. package/dist/models/Payee.js +59 -0
  331. package/dist/models/PayeeLocation.d.ts +55 -0
  332. package/dist/models/PayeeLocation.js +62 -0
  333. package/dist/models/PayeeLocationResponse.d.ts +32 -0
  334. package/dist/models/PayeeLocationResponse.js +51 -0
  335. package/dist/models/PayeeLocationResponseData.d.ts +32 -0
  336. package/dist/models/PayeeLocationResponseData.js +51 -0
  337. package/dist/models/PayeeLocationsResponse.d.ts +32 -0
  338. package/dist/models/PayeeLocationsResponse.js +51 -0
  339. package/dist/models/PayeeLocationsResponseData.d.ts +32 -0
  340. package/dist/models/PayeeLocationsResponseData.js +51 -0
  341. package/dist/models/PayeeResponse.d.ts +32 -0
  342. package/dist/models/PayeeResponse.js +51 -0
  343. package/dist/models/PayeeResponseData.d.ts +32 -0
  344. package/dist/models/PayeeResponseData.js +51 -0
  345. package/dist/models/PayeesResponse.d.ts +32 -0
  346. package/dist/models/PayeesResponse.js +51 -0
  347. package/dist/models/PayeesResponseData.d.ts +38 -0
  348. package/dist/models/PayeesResponseData.js +54 -0
  349. package/dist/models/PostAccountWrapper.d.ts +32 -0
  350. package/dist/models/PostAccountWrapper.js +51 -0
  351. package/dist/models/PostTransactionsWrapper.d.ts +38 -0
  352. package/dist/models/PostTransactionsWrapper.js +53 -0
  353. package/dist/models/PutTransactionWrapper.d.ts +32 -0
  354. package/dist/models/PutTransactionWrapper.js +51 -0
  355. package/dist/models/SaveAccount.d.ts +44 -0
  356. package/dist/models/SaveAccount.js +57 -0
  357. package/dist/models/SaveCategoryResponse.d.ts +32 -0
  358. package/dist/models/SaveCategoryResponse.js +51 -0
  359. package/dist/models/SaveCategoryResponseData.d.ts +38 -0
  360. package/dist/models/SaveCategoryResponseData.js +54 -0
  361. package/dist/models/SaveMonthCategory.d.ts +31 -0
  362. package/dist/models/SaveMonthCategory.js +50 -0
  363. package/dist/models/SaveSubTransaction.d.ts +55 -0
  364. package/dist/models/SaveSubTransaction.js +59 -0
  365. package/dist/models/SaveTransaction.d.ts +120 -0
  366. package/dist/models/SaveTransaction.js +93 -0
  367. package/dist/models/SaveTransactionWithId.d.ts +126 -0
  368. package/dist/models/SaveTransactionWithId.js +95 -0
  369. package/dist/models/SaveTransactionWithIdAllOf.d.ts +31 -0
  370. package/dist/models/SaveTransactionWithIdAllOf.js +50 -0
  371. package/dist/models/SaveTransactionWithOptionalFields.d.ts +120 -0
  372. package/dist/models/SaveTransactionWithOptionalFields.js +93 -0
  373. package/dist/models/SaveTransactionsResponse.d.ts +32 -0
  374. package/dist/models/SaveTransactionsResponse.js +51 -0
  375. package/dist/models/SaveTransactionsResponseData.d.ts +56 -0
  376. package/dist/models/SaveTransactionsResponseData.js +61 -0
  377. package/dist/models/ScheduledSubTransaction.d.ts +73 -0
  378. package/dist/models/ScheduledSubTransaction.js +68 -0
  379. package/dist/models/ScheduledTransactionDetail.d.ts +154 -0
  380. package/dist/models/ScheduledTransactionDetail.js +120 -0
  381. package/dist/models/ScheduledTransactionDetailAllOf.d.ts +50 -0
  382. package/dist/models/ScheduledTransactionDetailAllOf.js +59 -0
  383. package/dist/models/ScheduledTransactionResponse.d.ts +32 -0
  384. package/dist/models/ScheduledTransactionResponse.js +51 -0
  385. package/dist/models/ScheduledTransactionResponseData.d.ts +32 -0
  386. package/dist/models/ScheduledTransactionResponseData.js +51 -0
  387. package/dist/models/ScheduledTransactionSummary.d.ts +129 -0
  388. package/dist/models/ScheduledTransactionSummary.js +109 -0
  389. package/dist/models/ScheduledTransactionsResponse.d.ts +32 -0
  390. package/dist/models/ScheduledTransactionsResponse.js +51 -0
  391. package/dist/models/ScheduledTransactionsResponseData.d.ts +38 -0
  392. package/dist/models/ScheduledTransactionsResponseData.js +54 -0
  393. package/dist/models/SubTransaction.d.ts +91 -0
  394. package/dist/models/SubTransaction.js +74 -0
  395. package/dist/models/TransactionDetail.d.ts +195 -0
  396. package/dist/models/TransactionDetail.js +136 -0
  397. package/dist/models/TransactionDetailAllOf.d.ts +50 -0
  398. package/dist/models/TransactionDetailAllOf.js +59 -0
  399. package/dist/models/TransactionResponse.d.ts +32 -0
  400. package/dist/models/TransactionResponse.js +51 -0
  401. package/dist/models/TransactionResponseData.d.ts +32 -0
  402. package/dist/models/TransactionResponseData.js +51 -0
  403. package/dist/models/TransactionSummary.d.ts +170 -0
  404. package/dist/models/TransactionSummary.js +125 -0
  405. package/dist/models/TransactionsImportResponse.d.ts +32 -0
  406. package/dist/models/TransactionsImportResponse.js +51 -0
  407. package/dist/models/TransactionsImportResponseData.d.ts +31 -0
  408. package/dist/models/TransactionsImportResponseData.js +50 -0
  409. package/dist/models/TransactionsResponse.d.ts +32 -0
  410. package/dist/models/TransactionsResponse.js +51 -0
  411. package/dist/models/TransactionsResponseData.d.ts +38 -0
  412. package/dist/models/TransactionsResponseData.js +54 -0
  413. package/dist/models/User.d.ts +31 -0
  414. package/dist/models/User.js +50 -0
  415. package/dist/models/UserResponse.d.ts +32 -0
  416. package/dist/models/UserResponse.js +51 -0
  417. package/dist/models/UserResponseData.d.ts +32 -0
  418. package/dist/models/UserResponseData.js +51 -0
  419. package/dist/models/index.d.ts +90 -0
  420. package/dist/models/index.js +104 -0
  421. package/dist/runtime.d.ts +182 -0
  422. package/dist/runtime.js +336 -0
  423. package/package.json +4 -4
  424. package/dist/api.d.ts +0 -4639
  425. package/dist/api.js +0 -3757
  426. package/dist/browser/ynab.js.LICENSE.txt +0 -1
  427. package/dist/configuration.d.ts +0 -26
  428. package/dist/configuration.js +0 -22
  429. package/dist/esm/api.d.ts +0 -4639
  430. package/dist/esm/api.js +0 -4067
  431. package/dist/esm/configuration.d.ts +0 -26
  432. package/dist/esm/configuration.js +0 -20
@@ -0,0 +1,28 @@
1
+ /**
2
+ * YNAB API Endpoints
3
+ * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { UserResponse } from '../models/index';
14
+ /**
15
+ *
16
+ */
17
+ export declare class UserApi extends runtime.BaseAPI {
18
+ /**
19
+ * Returns authenticated user information
20
+ * User info
21
+ */
22
+ getUserRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
23
+ /**
24
+ * Returns authenticated user information
25
+ * User info
26
+ */
27
+ getUser(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
28
+ }
@@ -0,0 +1,130 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * YNAB API Endpoints
5
+ * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __extends = (this && this.__extends) || (function () {
15
+ var extendStatics = function (d, b) {
16
+ extendStatics = Object.setPrototypeOf ||
17
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
19
+ return extendStatics(d, b);
20
+ };
21
+ return function (d, b) {
22
+ if (typeof b !== "function" && b !== null)
23
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
24
+ extendStatics(d, b);
25
+ function __() { this.constructor = d; }
26
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27
+ };
28
+ })();
29
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
30
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
31
+ return new (P || (P = Promise))(function (resolve, reject) {
32
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
33
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
34
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
35
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
36
+ });
37
+ };
38
+ var __generator = (this && this.__generator) || function (thisArg, body) {
39
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
40
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
41
+ function verb(n) { return function (v) { return step([n, v]); }; }
42
+ function step(op) {
43
+ if (f) throw new TypeError("Generator is already executing.");
44
+ while (_) try {
45
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
46
+ if (y = 0, t) op = [op[0] & 2, t.value];
47
+ switch (op[0]) {
48
+ case 0: case 1: t = op; break;
49
+ case 4: _.label++; return { value: op[1], done: false };
50
+ case 5: _.label++; y = op[1]; op = [0]; continue;
51
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
52
+ default:
53
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
54
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
55
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
56
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
57
+ if (t[2]) _.ops.pop();
58
+ _.trys.pop(); continue;
59
+ }
60
+ op = body.call(thisArg, _);
61
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
62
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
63
+ }
64
+ };
65
+ import * as runtime from '../runtime';
66
+ import { UserResponseFromJSON, } from '../models/index';
67
+ /**
68
+ *
69
+ */
70
+ var UserApi = /** @class */ (function (_super) {
71
+ __extends(UserApi, _super);
72
+ function UserApi() {
73
+ return _super !== null && _super.apply(this, arguments) || this;
74
+ }
75
+ /**
76
+ * Returns authenticated user information
77
+ * User info
78
+ */
79
+ UserApi.prototype.getUserRaw = function (initOverrides) {
80
+ return __awaiter(this, void 0, void 0, function () {
81
+ var queryParameters, headerParameters, token, tokenString, response;
82
+ return __generator(this, function (_a) {
83
+ switch (_a.label) {
84
+ case 0:
85
+ queryParameters = {};
86
+ headerParameters = {};
87
+ headerParameters['Accept'] = 'application/json';
88
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
89
+ token = this.configuration.accessToken;
90
+ return [4 /*yield*/, token("bearer", [])];
91
+ case 1:
92
+ tokenString = _a.sent();
93
+ if (tokenString) {
94
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
95
+ }
96
+ _a.label = 2;
97
+ case 2: return [4 /*yield*/, this.request({
98
+ path: "/user",
99
+ method: 'GET',
100
+ headers: headerParameters,
101
+ query: queryParameters,
102
+ }, initOverrides)];
103
+ case 3:
104
+ response = _a.sent();
105
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return UserResponseFromJSON(jsonValue); })];
106
+ }
107
+ });
108
+ });
109
+ };
110
+ /**
111
+ * Returns authenticated user information
112
+ * User info
113
+ */
114
+ UserApi.prototype.getUser = function (initOverrides) {
115
+ return __awaiter(this, void 0, void 0, function () {
116
+ var response;
117
+ return __generator(this, function (_a) {
118
+ switch (_a.label) {
119
+ case 0: return [4 /*yield*/, this.getUserRaw(initOverrides)];
120
+ case 1:
121
+ response = _a.sent();
122
+ return [4 /*yield*/, response.value()];
123
+ case 2: return [2 /*return*/, _a.sent()];
124
+ }
125
+ });
126
+ });
127
+ };
128
+ return UserApi;
129
+ }(runtime.BaseAPI));
130
+ export { UserApi };
@@ -0,0 +1,10 @@
1
+ export * from './AccountsApi';
2
+ export * from './BudgetsApi';
3
+ export * from './CategoriesApi';
4
+ export * from './DeprecatedApi';
5
+ export * from './MonthsApi';
6
+ export * from './PayeeLocationsApi';
7
+ export * from './PayeesApi';
8
+ export * from './ScheduledTransactionsApi';
9
+ export * from './TransactionsApi';
10
+ export * from './UserApi';
@@ -0,0 +1,12 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './AccountsApi';
4
+ export * from './BudgetsApi';
5
+ export * from './CategoriesApi';
6
+ export * from './DeprecatedApi';
7
+ export * from './MonthsApi';
8
+ export * from './PayeeLocationsApi';
9
+ export * from './PayeesApi';
10
+ export * from './ScheduledTransactionsApi';
11
+ export * from './TransactionsApi';
12
+ export * from './UserApi';
@@ -1,24 +1,12 @@
1
- /**
2
- * YNAB API Endpoints
3
- * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com
4
- *
5
- * OpenAPI spec version: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by the swagger code generator program.
9
- * https://github.com/swagger-api/swagger-codegen.git
10
- * Do not edit the class manually.
11
- */
12
- import { Configuration } from "./configuration";
13
- import * as CodeGen from "./api";
14
- import { TransactionsApi } from "./transactionsApi";
1
+ import * as apis from "./apis";
2
+ import { CustomTransactionsApi } from "./apis/CustomTransactionsApi";
15
3
  import utils from "./utils";
4
+ import { Configuration } from "./runtime";
5
+ export * from "./runtime";
6
+ export * from "./apis";
7
+ export * from "./models";
16
8
  export { api as API };
17
9
  export { utils };
18
- export * from "./api";
19
- /**
20
- * The YNAB API client
21
- */
22
10
  export declare class api {
23
11
  protected _configuration: Configuration;
24
12
  /**
@@ -27,49 +15,49 @@ export declare class api {
27
15
  * @param endpointUrl The API endpoint URL (Optional)
28
16
  */
29
17
  constructor(accessToken: string, endpointUrl?: string);
30
- protected _user: CodeGen.UserApi;
18
+ protected _user: apis.UserApi;
31
19
  /**
32
20
  * /user endpoints interface
33
21
  */
34
- get user(): CodeGen.UserApi;
35
- protected _budgets: CodeGen.BudgetsApi;
22
+ get user(): apis.UserApi;
23
+ protected _budgets: apis.BudgetsApi;
36
24
  /**
37
25
  * /budgets endpoints interface
38
26
  */
39
- get budgets(): CodeGen.BudgetsApi;
40
- protected _accounts: CodeGen.AccountsApi;
27
+ get budgets(): apis.BudgetsApi;
28
+ protected _accounts: apis.AccountsApi;
41
29
  /**
42
30
  * /budgets/{budget_id}/accounts endpoints interface
43
31
  */
44
- get accounts(): CodeGen.AccountsApi;
45
- protected _categories: CodeGen.CategoriesApi;
32
+ get accounts(): apis.AccountsApi;
33
+ protected _categories: apis.CategoriesApi;
46
34
  /**
47
35
  * /budgets/{budget_id}/categories endpoints interface
48
36
  */
49
- get categories(): CodeGen.CategoriesApi;
50
- protected _months: CodeGen.MonthsApi;
37
+ get categories(): apis.CategoriesApi;
38
+ protected _months: apis.MonthsApi;
51
39
  /**
52
40
  * /budgets/{budget_id}/months endpoints interface
53
41
  */
54
- get months(): CodeGen.MonthsApi;
55
- protected _payees: CodeGen.PayeesApi;
42
+ get months(): apis.MonthsApi;
43
+ protected _payees: apis.PayeesApi;
56
44
  /**
57
45
  * /budgets/{budget_id}/payees endpoints interface
58
46
  */
59
- get payees(): CodeGen.PayeesApi;
60
- protected _payeeLocations: CodeGen.PayeeLocationsApi;
47
+ get payees(): apis.PayeesApi;
48
+ protected _payeeLocations: apis.PayeeLocationsApi;
61
49
  /**
62
50
  * /budgets/{budget_id}/payee_locations endpoints interface
63
51
  */
64
- get payeeLocations(): CodeGen.PayeeLocationsApi;
65
- protected _transactions: TransactionsApi;
52
+ get payeeLocations(): apis.PayeeLocationsApi;
53
+ protected _transactions: CustomTransactionsApi;
66
54
  /**
67
55
  * /budgets/{budget_id}/transactions endpoints interface
68
56
  */
69
- get transactions(): TransactionsApi;
70
- protected _scheduledTransactions: CodeGen.ScheduledTransactionsApi;
57
+ get transactions(): CustomTransactionsApi;
58
+ protected _scheduledTransactions: apis.ScheduledTransactionsApi;
71
59
  /**
72
60
  * /budgets/{budget_id}/scheduled_transactions endpoints interface
73
61
  */
74
- get scheduledTransactions(): CodeGen.ScheduledTransactionsApi;
62
+ get scheduledTransactions(): apis.ScheduledTransactionsApi;
75
63
  }
package/dist/esm/index.js CHANGED
@@ -1,25 +1,14 @@
1
- // tslint:disable
2
- /**
3
- * YNAB API Endpoints
4
- * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com
5
- *
6
- * OpenAPI spec version: 1.0.0
7
- *
8
- *
9
- * NOTE: This class is auto generated by the swagger code generator program.
10
- * https://github.com/swagger-api/swagger-codegen.git
11
- * Do not edit the class manually.
12
- */
13
- import { Configuration } from "./configuration";
14
- import * as CodeGen from "./api";
15
- import { TransactionsApi } from "./transactionsApi";
1
+ /* tslint:disable */
2
+ import * as apis from "./apis";
3
+ import { CustomTransactionsApi } from "./apis/CustomTransactionsApi";
16
4
  import utils from "./utils";
5
+ import { BASE_PATH, Configuration } from "./runtime";
6
+ /* eslint-disable */
7
+ export * from "./runtime";
8
+ export * from "./apis";
9
+ export * from "./models";
17
10
  export { api as API };
18
11
  export { utils };
19
- export * from "./api";
20
- /**
21
- * The YNAB API client
22
- */
23
12
  var api = /** @class */ (function () {
24
13
  /**
25
14
  *
@@ -27,8 +16,11 @@ var api = /** @class */ (function () {
27
16
  * @param endpointUrl The API endpoint URL (Optional)
28
17
  */
29
18
  function api(accessToken, endpointUrl) {
30
- if (endpointUrl === void 0) { endpointUrl = "https://api.youneedabudget.com/v1"; }
31
- this._configuration = new Configuration(accessToken, endpointUrl);
19
+ if (endpointUrl === void 0) { endpointUrl = BASE_PATH; }
20
+ this._configuration = new Configuration({
21
+ accessToken: accessToken,
22
+ basePath: endpointUrl,
23
+ });
32
24
  }
33
25
  Object.defineProperty(api.prototype, "user", {
34
26
  /**
@@ -36,7 +28,7 @@ var api = /** @class */ (function () {
36
28
  */
37
29
  get: function () {
38
30
  if (!this._user) {
39
- this._user = new CodeGen.UserApi(this._configuration);
31
+ this._user = new apis.UserApi(this._configuration);
40
32
  }
41
33
  return this._user;
42
34
  },
@@ -49,7 +41,7 @@ var api = /** @class */ (function () {
49
41
  */
50
42
  get: function () {
51
43
  if (!this._budgets) {
52
- this._budgets = new CodeGen.BudgetsApi(this._configuration);
44
+ this._budgets = new apis.BudgetsApi(this._configuration);
53
45
  }
54
46
  return this._budgets;
55
47
  },
@@ -62,7 +54,7 @@ var api = /** @class */ (function () {
62
54
  */
63
55
  get: function () {
64
56
  if (!this._accounts) {
65
- this._accounts = new CodeGen.AccountsApi(this._configuration);
57
+ this._accounts = new apis.AccountsApi(this._configuration);
66
58
  }
67
59
  return this._accounts;
68
60
  },
@@ -75,7 +67,7 @@ var api = /** @class */ (function () {
75
67
  */
76
68
  get: function () {
77
69
  if (!this._categories) {
78
- this._categories = new CodeGen.CategoriesApi(this._configuration);
70
+ this._categories = new apis.CategoriesApi(this._configuration);
79
71
  }
80
72
  return this._categories;
81
73
  },
@@ -88,7 +80,7 @@ var api = /** @class */ (function () {
88
80
  */
89
81
  get: function () {
90
82
  if (!this._months) {
91
- this._months = new CodeGen.MonthsApi(this._configuration);
83
+ this._months = new apis.MonthsApi(this._configuration);
92
84
  }
93
85
  return this._months;
94
86
  },
@@ -101,7 +93,7 @@ var api = /** @class */ (function () {
101
93
  */
102
94
  get: function () {
103
95
  if (!this._payees) {
104
- this._payees = new CodeGen.PayeesApi(this._configuration);
96
+ this._payees = new apis.PayeesApi(this._configuration);
105
97
  }
106
98
  return this._payees;
107
99
  },
@@ -114,7 +106,7 @@ var api = /** @class */ (function () {
114
106
  */
115
107
  get: function () {
116
108
  if (!this._payeeLocations) {
117
- this._payeeLocations = new CodeGen.PayeeLocationsApi(this._configuration);
109
+ this._payeeLocations = new apis.PayeeLocationsApi(this._configuration);
118
110
  }
119
111
  return this._payeeLocations;
120
112
  },
@@ -127,7 +119,7 @@ var api = /** @class */ (function () {
127
119
  */
128
120
  get: function () {
129
121
  if (!this._transactions) {
130
- this._transactions = new TransactionsApi(this._configuration);
122
+ this._transactions = new CustomTransactionsApi(this._configuration);
131
123
  }
132
124
  return this._transactions;
133
125
  },
@@ -140,7 +132,7 @@ var api = /** @class */ (function () {
140
132
  */
141
133
  get: function () {
142
134
  if (!this._scheduledTransactions) {
143
- this._scheduledTransactions = new CodeGen.ScheduledTransactionsApi(this._configuration);
135
+ this._scheduledTransactions = new apis.ScheduledTransactionsApi(this._configuration);
144
136
  }
145
137
  return this._scheduledTransactions;
146
138
  },
@@ -0,0 +1,140 @@
1
+ /**
2
+ * YNAB API Endpoints
3
+ * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AccountType } from './AccountType';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Account
17
+ */
18
+ export interface Account {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof Account
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof Account
29
+ */
30
+ name: string;
31
+ /**
32
+ *
33
+ * @type {AccountType}
34
+ * @memberof Account
35
+ */
36
+ type: AccountType;
37
+ /**
38
+ * Whether this account is on budget or not
39
+ * @type {boolean}
40
+ * @memberof Account
41
+ */
42
+ on_budget: boolean;
43
+ /**
44
+ * Whether this account is closed or not
45
+ * @type {boolean}
46
+ * @memberof Account
47
+ */
48
+ closed: boolean;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof Account
53
+ */
54
+ note?: string | null;
55
+ /**
56
+ * The current balance of the account in milliunits format
57
+ * @type {number}
58
+ * @memberof Account
59
+ */
60
+ balance: number;
61
+ /**
62
+ * The current cleared balance of the account in milliunits format
63
+ * @type {number}
64
+ * @memberof Account
65
+ */
66
+ cleared_balance: number;
67
+ /**
68
+ * The current uncleared balance of the account in milliunits format
69
+ * @type {number}
70
+ * @memberof Account
71
+ */
72
+ uncleared_balance: number;
73
+ /**
74
+ * The payee id which should be used when transferring to this account
75
+ * @type {string}
76
+ * @memberof Account
77
+ */
78
+ transfer_payee_id: string | null;
79
+ /**
80
+ * Whether or not the account is linked to a financial institution for automatic transaction import.
81
+ * @type {boolean}
82
+ * @memberof Account
83
+ */
84
+ direct_import_linked?: boolean;
85
+ /**
86
+ * If an account linked to a financial institution (direct_import_linked=true) and the linked connection is not in a healthy state, this will be true.
87
+ * @type {boolean}
88
+ * @memberof Account
89
+ */
90
+ direct_import_in_error?: boolean;
91
+ /**
92
+ * A date/time specifying when the account was last reconciled.
93
+ * @type {string}
94
+ * @memberof Account
95
+ */
96
+ last_reconciled_at?: string | null;
97
+ /**
98
+ * The original debt/loan account balance, specified in milliunits format.
99
+ * @type {number}
100
+ * @memberof Account
101
+ */
102
+ debt_original_balance?: number | null;
103
+ /**
104
+ *
105
+ * @type {{ [key: string]: number; }}
106
+ * @memberof Account
107
+ */
108
+ debt_interest_rates?: {
109
+ [key: string]: number;
110
+ } | null;
111
+ /**
112
+ *
113
+ * @type {{ [key: string]: number; }}
114
+ * @memberof Account
115
+ */
116
+ debt_minimum_payments?: {
117
+ [key: string]: number;
118
+ } | null;
119
+ /**
120
+ *
121
+ * @type {{ [key: string]: number; }}
122
+ * @memberof Account
123
+ */
124
+ debt_escrow_amounts?: {
125
+ [key: string]: number;
126
+ } | null;
127
+ /**
128
+ * Whether or not the account has been deleted. Deleted accounts will only be included in delta requests.
129
+ * @type {boolean}
130
+ * @memberof Account
131
+ */
132
+ deleted: boolean;
133
+ }
134
+ /**
135
+ * Check if a given object implements the Account interface.
136
+ */
137
+ export declare function instanceOfAccount(value: object): boolean;
138
+ export declare function AccountFromJSON(json: any): Account;
139
+ export declare function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account;
140
+ export declare function AccountToJSON(value?: Account | null): any;
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * YNAB API Endpoints
5
+ * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { exists } from '../runtime';
15
+ import { AccountTypeFromJSON, AccountTypeToJSON, } from './AccountType';
16
+ /**
17
+ * Check if a given object implements the Account interface.
18
+ */
19
+ export function instanceOfAccount(value) {
20
+ var isInstance = true;
21
+ isInstance = isInstance && "id" in value;
22
+ isInstance = isInstance && "name" in value;
23
+ isInstance = isInstance && "type" in value;
24
+ isInstance = isInstance && "on_budget" in value;
25
+ isInstance = isInstance && "closed" in value;
26
+ isInstance = isInstance && "balance" in value;
27
+ isInstance = isInstance && "cleared_balance" in value;
28
+ isInstance = isInstance && "uncleared_balance" in value;
29
+ isInstance = isInstance && "transfer_payee_id" in value;
30
+ isInstance = isInstance && "deleted" in value;
31
+ return isInstance;
32
+ }
33
+ export function AccountFromJSON(json) {
34
+ return AccountFromJSONTyped(json, false);
35
+ }
36
+ export function AccountFromJSONTyped(json, ignoreDiscriminator) {
37
+ if ((json === undefined) || (json === null)) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'name': json['name'],
43
+ 'type': AccountTypeFromJSON(json['type']),
44
+ 'on_budget': json['on_budget'],
45
+ 'closed': json['closed'],
46
+ 'note': !exists(json, 'note') ? undefined : json['note'],
47
+ 'balance': json['balance'],
48
+ 'cleared_balance': json['cleared_balance'],
49
+ 'uncleared_balance': json['uncleared_balance'],
50
+ 'transfer_payee_id': json['transfer_payee_id'],
51
+ 'direct_import_linked': !exists(json, 'direct_import_linked') ? undefined : json['direct_import_linked'],
52
+ 'direct_import_in_error': !exists(json, 'direct_import_in_error') ? undefined : json['direct_import_in_error'],
53
+ 'last_reconciled_at': !exists(json, 'last_reconciled_at') ? undefined : json['last_reconciled_at'],
54
+ 'debt_original_balance': !exists(json, 'debt_original_balance') ? undefined : json['debt_original_balance'],
55
+ 'debt_interest_rates': !exists(json, 'debt_interest_rates') ? undefined : json['debt_interest_rates'],
56
+ 'debt_minimum_payments': !exists(json, 'debt_minimum_payments') ? undefined : json['debt_minimum_payments'],
57
+ 'debt_escrow_amounts': !exists(json, 'debt_escrow_amounts') ? undefined : json['debt_escrow_amounts'],
58
+ 'deleted': json['deleted'],
59
+ };
60
+ }
61
+ export function AccountToJSON(value) {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+ 'id': value.id,
70
+ 'name': value.name,
71
+ 'type': AccountTypeToJSON(value.type),
72
+ 'on_budget': value.on_budget,
73
+ 'closed': value.closed,
74
+ 'note': value.note,
75
+ 'balance': value.balance,
76
+ 'cleared_balance': value.cleared_balance,
77
+ 'uncleared_balance': value.uncleared_balance,
78
+ 'transfer_payee_id': value.transfer_payee_id,
79
+ 'direct_import_linked': value.direct_import_linked,
80
+ 'direct_import_in_error': value.direct_import_in_error,
81
+ 'last_reconciled_at': value.last_reconciled_at,
82
+ 'debt_original_balance': value.debt_original_balance,
83
+ 'debt_interest_rates': value.debt_interest_rates,
84
+ 'debt_minimum_payments': value.debt_minimum_payments,
85
+ 'debt_escrow_amounts': value.debt_escrow_amounts,
86
+ 'deleted': value.deleted,
87
+ };
88
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * YNAB API Endpoints
3
+ * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AccountResponseData } from './AccountResponseData';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AccountResponse
17
+ */
18
+ export interface AccountResponse {
19
+ /**
20
+ *
21
+ * @type {AccountResponseData}
22
+ * @memberof AccountResponse
23
+ */
24
+ data: AccountResponseData;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AccountResponse interface.
28
+ */
29
+ export declare function instanceOfAccountResponse(value: object): boolean;
30
+ export declare function AccountResponseFromJSON(json: any): AccountResponse;
31
+ export declare function AccountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountResponse;
32
+ export declare function AccountResponseToJSON(value?: AccountResponse | null): any;