ynab 2.3.0 → 2.4.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 (215) hide show
  1. package/README.md +2 -0
  2. package/dist/apis/AccountsApi.d.ts +1 -6
  3. package/dist/apis/AccountsApi.js +1 -6
  4. package/dist/apis/BudgetsApi.d.ts +1 -6
  5. package/dist/apis/BudgetsApi.js +1 -6
  6. package/dist/apis/CategoriesApi.d.ts +1 -6
  7. package/dist/apis/CategoriesApi.js +1 -6
  8. package/dist/apis/MonthsApi.d.ts +1 -6
  9. package/dist/apis/MonthsApi.js +1 -6
  10. package/dist/apis/PayeeLocationsApi.d.ts +1 -6
  11. package/dist/apis/PayeeLocationsApi.js +1 -6
  12. package/dist/apis/PayeesApi.d.ts +1 -6
  13. package/dist/apis/PayeesApi.js +1 -6
  14. package/dist/apis/ScheduledTransactionsApi.d.ts +16 -7
  15. package/dist/apis/ScheduledTransactionsApi.js +40 -6
  16. package/dist/apis/TransactionsApi.d.ts +28 -8
  17. package/dist/apis/TransactionsApi.js +57 -9
  18. package/dist/apis/UserApi.d.ts +1 -6
  19. package/dist/apis/UserApi.js +1 -6
  20. package/dist/browser/ynab.js +1 -1
  21. package/dist/models/Account.d.ts +7 -12
  22. package/dist/models/Account.js +1 -6
  23. package/dist/models/AccountResponse.d.ts +1 -6
  24. package/dist/models/AccountResponse.js +1 -6
  25. package/dist/models/AccountResponseData.d.ts +1 -6
  26. package/dist/models/AccountResponseData.js +1 -6
  27. package/dist/models/AccountType.d.ts +1 -6
  28. package/dist/models/AccountType.js +1 -6
  29. package/dist/models/AccountsResponse.d.ts +1 -6
  30. package/dist/models/AccountsResponse.js +1 -6
  31. package/dist/models/AccountsResponseData.d.ts +1 -6
  32. package/dist/models/AccountsResponseData.js +1 -6
  33. package/dist/models/BudgetDetail.d.ts +3 -8
  34. package/dist/models/BudgetDetail.js +1 -6
  35. package/dist/models/BudgetDetailResponse.d.ts +1 -6
  36. package/dist/models/BudgetDetailResponse.js +1 -6
  37. package/dist/models/BudgetDetailResponseData.d.ts +1 -6
  38. package/dist/models/BudgetDetailResponseData.js +1 -6
  39. package/dist/models/BudgetSettings.d.ts +1 -6
  40. package/dist/models/BudgetSettings.js +1 -6
  41. package/dist/models/BudgetSettingsResponse.d.ts +1 -6
  42. package/dist/models/BudgetSettingsResponse.js +1 -6
  43. package/dist/models/BudgetSettingsResponseData.d.ts +1 -6
  44. package/dist/models/BudgetSettingsResponseData.js +1 -6
  45. package/dist/models/BudgetSummary.d.ts +3 -8
  46. package/dist/models/BudgetSummary.js +1 -6
  47. package/dist/models/BudgetSummaryResponse.d.ts +1 -6
  48. package/dist/models/BudgetSummaryResponse.js +1 -6
  49. package/dist/models/BudgetSummaryResponseData.d.ts +1 -6
  50. package/dist/models/BudgetSummaryResponseData.js +1 -6
  51. package/dist/models/BulkResponse.d.ts +1 -6
  52. package/dist/models/BulkResponse.js +1 -6
  53. package/dist/models/BulkResponseData.d.ts +1 -6
  54. package/dist/models/BulkResponseData.js +1 -6
  55. package/dist/models/BulkResponseDataBulk.d.ts +1 -6
  56. package/dist/models/BulkResponseDataBulk.js +1 -6
  57. package/dist/models/BulkTransactions.d.ts +1 -6
  58. package/dist/models/BulkTransactions.js +1 -6
  59. package/dist/models/CategoriesResponse.d.ts +1 -6
  60. package/dist/models/CategoriesResponse.js +1 -6
  61. package/dist/models/CategoriesResponseData.d.ts +1 -6
  62. package/dist/models/CategoriesResponseData.js +1 -6
  63. package/dist/models/Category.d.ts +16 -21
  64. package/dist/models/Category.js +1 -6
  65. package/dist/models/CategoryGroup.d.ts +1 -6
  66. package/dist/models/CategoryGroup.js +1 -6
  67. package/dist/models/CategoryGroupWithCategories.d.ts +1 -6
  68. package/dist/models/CategoryGroupWithCategories.js +1 -6
  69. package/dist/models/CategoryResponse.d.ts +1 -6
  70. package/dist/models/CategoryResponse.js +1 -6
  71. package/dist/models/CategoryResponseData.d.ts +1 -6
  72. package/dist/models/CategoryResponseData.js +1 -6
  73. package/dist/models/CurrencyFormat.d.ts +1 -6
  74. package/dist/models/CurrencyFormat.js +1 -6
  75. package/dist/models/DateFormat.d.ts +1 -6
  76. package/dist/models/DateFormat.js +1 -6
  77. package/dist/models/ErrorDetail.d.ts +1 -6
  78. package/dist/models/ErrorDetail.js +1 -6
  79. package/dist/models/ErrorResponse.d.ts +1 -6
  80. package/dist/models/ErrorResponse.js +1 -6
  81. package/dist/models/ExistingTransaction.d.ts +7 -12
  82. package/dist/models/ExistingTransaction.js +1 -6
  83. package/dist/models/HybridTransaction.d.ts +15 -20
  84. package/dist/models/HybridTransaction.js +1 -6
  85. package/dist/models/HybridTransactionsResponse.d.ts +1 -6
  86. package/dist/models/HybridTransactionsResponse.js +1 -6
  87. package/dist/models/HybridTransactionsResponseData.d.ts +1 -6
  88. package/dist/models/HybridTransactionsResponseData.js +1 -6
  89. package/dist/models/MonthDetail.d.ts +3 -8
  90. package/dist/models/MonthDetail.js +1 -6
  91. package/dist/models/MonthDetailResponse.d.ts +1 -6
  92. package/dist/models/MonthDetailResponse.js +1 -6
  93. package/dist/models/MonthDetailResponseData.d.ts +1 -6
  94. package/dist/models/MonthDetailResponseData.js +1 -6
  95. package/dist/models/MonthSummariesResponse.d.ts +1 -6
  96. package/dist/models/MonthSummariesResponse.js +1 -6
  97. package/dist/models/MonthSummariesResponseData.d.ts +1 -6
  98. package/dist/models/MonthSummariesResponseData.js +1 -6
  99. package/dist/models/MonthSummary.d.ts +3 -8
  100. package/dist/models/MonthSummary.js +1 -6
  101. package/dist/models/NewTransaction.d.ts +8 -13
  102. package/dist/models/NewTransaction.js +1 -6
  103. package/dist/models/PatchCategoryWrapper.d.ts +1 -6
  104. package/dist/models/PatchCategoryWrapper.js +1 -6
  105. package/dist/models/PatchMonthCategoryWrapper.d.ts +1 -6
  106. package/dist/models/PatchMonthCategoryWrapper.js +1 -6
  107. package/dist/models/PatchPayeeWrapper.d.ts +1 -6
  108. package/dist/models/PatchPayeeWrapper.js +1 -6
  109. package/dist/models/PatchTransactionsWrapper.d.ts +1 -6
  110. package/dist/models/PatchTransactionsWrapper.js +1 -6
  111. package/dist/models/Payee.d.ts +2 -7
  112. package/dist/models/Payee.js +1 -6
  113. package/dist/models/PayeeLocation.d.ts +1 -6
  114. package/dist/models/PayeeLocation.js +1 -6
  115. package/dist/models/PayeeLocationResponse.d.ts +1 -6
  116. package/dist/models/PayeeLocationResponse.js +1 -6
  117. package/dist/models/PayeeLocationResponseData.d.ts +1 -6
  118. package/dist/models/PayeeLocationResponseData.js +1 -6
  119. package/dist/models/PayeeLocationsResponse.d.ts +1 -6
  120. package/dist/models/PayeeLocationsResponse.js +1 -6
  121. package/dist/models/PayeeLocationsResponseData.d.ts +1 -6
  122. package/dist/models/PayeeLocationsResponseData.js +1 -6
  123. package/dist/models/PayeeResponse.d.ts +1 -6
  124. package/dist/models/PayeeResponse.js +1 -6
  125. package/dist/models/PayeeResponseData.d.ts +1 -6
  126. package/dist/models/PayeeResponseData.js +1 -6
  127. package/dist/models/PayeesResponse.d.ts +1 -6
  128. package/dist/models/PayeesResponse.js +1 -6
  129. package/dist/models/PayeesResponseData.d.ts +1 -6
  130. package/dist/models/PayeesResponseData.js +1 -6
  131. package/dist/models/PostAccountWrapper.d.ts +1 -6
  132. package/dist/models/PostAccountWrapper.js +1 -6
  133. package/dist/models/PostScheduledTransactionWrapper.d.ts +27 -0
  134. package/dist/models/PostScheduledTransactionWrapper.js +43 -0
  135. package/dist/models/PostTransactionsWrapper.d.ts +1 -6
  136. package/dist/models/PostTransactionsWrapper.js +1 -6
  137. package/dist/models/PutTransactionWrapper.d.ts +1 -6
  138. package/dist/models/PutTransactionWrapper.js +1 -6
  139. package/dist/models/SaveAccount.d.ts +1 -6
  140. package/dist/models/SaveAccount.js +1 -6
  141. package/dist/models/SaveCategory.d.ts +3 -8
  142. package/dist/models/SaveCategory.js +1 -6
  143. package/dist/models/SaveCategoryResponse.d.ts +1 -6
  144. package/dist/models/SaveCategoryResponse.js +1 -6
  145. package/dist/models/SaveCategoryResponseData.d.ts +1 -6
  146. package/dist/models/SaveCategoryResponseData.js +1 -6
  147. package/dist/models/SaveMonthCategory.d.ts +1 -6
  148. package/dist/models/SaveMonthCategory.js +1 -6
  149. package/dist/models/SavePayee.d.ts +1 -6
  150. package/dist/models/SavePayee.js +1 -6
  151. package/dist/models/SavePayeeResponse.d.ts +1 -6
  152. package/dist/models/SavePayeeResponse.js +1 -6
  153. package/dist/models/SavePayeeResponseData.d.ts +1 -6
  154. package/dist/models/SavePayeeResponseData.js +1 -6
  155. package/dist/models/SaveScheduledTransaction.d.ts +76 -0
  156. package/dist/models/SaveScheduledTransaction.js +62 -0
  157. package/dist/models/SaveSubTransaction.d.ts +5 -10
  158. package/dist/models/SaveSubTransaction.js +1 -6
  159. package/dist/models/SaveTransactionWithIdOrImportId.d.ts +9 -14
  160. package/dist/models/SaveTransactionWithIdOrImportId.js +1 -6
  161. package/dist/models/SaveTransactionWithOptionalFields.d.ts +7 -12
  162. package/dist/models/SaveTransactionWithOptionalFields.js +1 -6
  163. package/dist/models/SaveTransactionsResponse.d.ts +1 -6
  164. package/dist/models/SaveTransactionsResponse.js +1 -6
  165. package/dist/models/SaveTransactionsResponseData.d.ts +1 -6
  166. package/dist/models/SaveTransactionsResponseData.js +1 -6
  167. package/dist/models/ScheduledSubTransaction.d.ts +5 -10
  168. package/dist/models/ScheduledSubTransaction.js +1 -6
  169. package/dist/models/ScheduledTransactionDetail.d.ts +9 -14
  170. package/dist/models/ScheduledTransactionDetail.js +1 -6
  171. package/dist/models/ScheduledTransactionFrequency.d.ts +30 -0
  172. package/dist/models/ScheduledTransactionFrequency.js +53 -0
  173. package/dist/models/ScheduledTransactionResponse.d.ts +1 -6
  174. package/dist/models/ScheduledTransactionResponse.js +1 -6
  175. package/dist/models/ScheduledTransactionResponseData.d.ts +1 -6
  176. package/dist/models/ScheduledTransactionResponseData.js +1 -6
  177. package/dist/models/ScheduledTransactionSummary.d.ts +7 -12
  178. package/dist/models/ScheduledTransactionSummary.js +1 -6
  179. package/dist/models/ScheduledTransactionsResponse.d.ts +1 -6
  180. package/dist/models/ScheduledTransactionsResponse.js +1 -6
  181. package/dist/models/ScheduledTransactionsResponseData.d.ts +1 -6
  182. package/dist/models/ScheduledTransactionsResponseData.js +1 -6
  183. package/dist/models/SubTransaction.d.ts +8 -13
  184. package/dist/models/SubTransaction.js +1 -6
  185. package/dist/models/TransactionClearedStatus.d.ts +1 -6
  186. package/dist/models/TransactionClearedStatus.js +1 -6
  187. package/dist/models/TransactionDetail.d.ts +15 -20
  188. package/dist/models/TransactionDetail.js +1 -6
  189. package/dist/models/TransactionFlagColor.d.ts +1 -6
  190. package/dist/models/TransactionFlagColor.js +1 -6
  191. package/dist/models/TransactionResponse.d.ts +1 -6
  192. package/dist/models/TransactionResponse.js +1 -6
  193. package/dist/models/TransactionResponseData.d.ts +1 -6
  194. package/dist/models/TransactionResponseData.js +1 -6
  195. package/dist/models/TransactionSummary.d.ts +13 -18
  196. package/dist/models/TransactionSummary.js +1 -6
  197. package/dist/models/TransactionsImportResponse.d.ts +1 -6
  198. package/dist/models/TransactionsImportResponse.js +1 -6
  199. package/dist/models/TransactionsImportResponseData.d.ts +1 -6
  200. package/dist/models/TransactionsImportResponseData.js +1 -6
  201. package/dist/models/TransactionsResponse.d.ts +1 -6
  202. package/dist/models/TransactionsResponse.js +1 -6
  203. package/dist/models/TransactionsResponseData.d.ts +1 -6
  204. package/dist/models/TransactionsResponseData.js +1 -6
  205. package/dist/models/User.d.ts +1 -6
  206. package/dist/models/User.js +1 -6
  207. package/dist/models/UserResponse.d.ts +1 -6
  208. package/dist/models/UserResponse.js +1 -6
  209. package/dist/models/UserResponseData.d.ts +1 -6
  210. package/dist/models/UserResponseData.js +1 -6
  211. package/dist/models/index.d.ts +3 -0
  212. package/dist/models/index.js +3 -0
  213. package/dist/runtime.d.ts +1 -6
  214. package/dist/runtime.js +1 -6
  215. package/package.json +1 -1
package/README.md CHANGED
@@ -142,6 +142,7 @@ The following methods are available in this library.
142
142
  | **Transactions** | [transactions.getTransactions(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/main/dist/apis/TransactionsApi.d.ts) | Returns budget transactions |
143
143
  | | [transactions.getTransactionsByAccount(budget_id, account_id)](https://github.com/ynab/ynab-sdk-js/blob/main/dist/apis/TransactionsApi.d.ts) | Returns all transactions for a specified account |
144
144
  | | [transactions.getTransactionsByCategory(budget_id, category_id)](https://github.com/ynab/ynab-sdk-js/blob/main/dist/apis/TransactionsApi.d.ts) | Returns all transactions for a specified category |
145
+ | | [transactions.getTransactionsByMonth(budget_id, month)](https://github.com/ynab/ynab-sdk-js/blob/main/dist/apis/TransactionsApi.d.ts) | Returns all transactions for a specified month |
145
146
  | | [transactions.getTransactionsByType(budget_id, type)](https://github.com/ynab/ynab-sdk-js/blob/main/dist/apis/TransactionsApi.d.ts) | Returns all transactions of a specified type ("unapproved" or "uncategorized") |
146
147
  | | [transactions.getTransactionById(budget_id, transaction_id)](https://github.com/ynab/ynab-sdk-js/blob/main/dist/apis/TransactionsApi.d.ts) | Returns a single transaction |
147
148
  | | [transactions.createTransaction(budget_id, data)](https://github.com/ynab/ynab-sdk-js/blob/main/dist/apis/TransactionsApi.d.ts) | Creates a single transaction |
@@ -152,6 +153,7 @@ The following methods are available in this library.
152
153
  | | [transactions.importTransactions(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/main/dist/apis/TransactionsApi.d.ts) | Imports transactions |
153
154
  | **Scheduled Transactions** | [scheduled_transactions.getScheduledTransactions(budget_id)](https://github.com/ynab/ynab-sdk-js/blob/main/dist/apis/ScheduledTransactionsApi.d.ts) | Returns all scheduled transactions |
154
155
  | | [scheduled_transactions.getScheduledTransactionById(budget_id, scheduled_transaction_id)](https://github.com/ynab/ynab-sdk-js/blob/main/dist/apis/ScheduledTransactionsApi.d.ts) | Returns a single scheduled transaction |
156
+ | | [scheduled_transactions.createScheduledTransaction(budget_id, data)](https://github.com/ynab/ynab-sdk-js/blob/main/dist/apis/ScheduledTransactionsApi.d.ts) | Creates a single scheduled transaction |
155
157
 
156
158
  ### Utilities
157
159
 
@@ -2,12 +2,7 @@
2
2
  * YNAB API Endpoints
3
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
4
  *
5
- * The version of the OpenAPI document: 1.70.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.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
7
  import * as runtime from '../runtime';
13
8
  import type { AccountResponse, AccountsResponse, PostAccountWrapper } from '../models/index';
@@ -5,12 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * 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
7
7
  *
8
- * The version of the OpenAPI document: 1.70.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
8
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
14
9
  */
15
10
  Object.defineProperty(exports, "__esModule", { value: true });
16
11
  exports.AccountsApi = void 0;
@@ -2,12 +2,7 @@
2
2
  * YNAB API Endpoints
3
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
4
  *
5
- * The version of the OpenAPI document: 1.70.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.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
7
  import * as runtime from '../runtime';
13
8
  import type { BudgetDetailResponse, BudgetSettingsResponse, BudgetSummaryResponse } from '../models/index';
@@ -5,12 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * 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
7
7
  *
8
- * The version of the OpenAPI document: 1.70.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
8
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
14
9
  */
15
10
  Object.defineProperty(exports, "__esModule", { value: true });
16
11
  exports.BudgetsApi = void 0;
@@ -2,12 +2,7 @@
2
2
  * YNAB API Endpoints
3
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
4
  *
5
- * The version of the OpenAPI document: 1.70.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.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
7
  import * as runtime from '../runtime';
13
8
  import type { CategoriesResponse, CategoryResponse, PatchCategoryWrapper, PatchMonthCategoryWrapper, SaveCategoryResponse } from '../models/index';
@@ -5,12 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * 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
7
7
  *
8
- * The version of the OpenAPI document: 1.70.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
8
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
14
9
  */
15
10
  Object.defineProperty(exports, "__esModule", { value: true });
16
11
  exports.CategoriesApi = void 0;
@@ -2,12 +2,7 @@
2
2
  * YNAB API Endpoints
3
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
4
  *
5
- * The version of the OpenAPI document: 1.70.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.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
7
  import * as runtime from '../runtime';
13
8
  import type { MonthDetailResponse, MonthSummariesResponse } from '../models/index';
@@ -5,12 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * 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
7
7
  *
8
- * The version of the OpenAPI document: 1.70.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
8
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
14
9
  */
15
10
  Object.defineProperty(exports, "__esModule", { value: true });
16
11
  exports.MonthsApi = void 0;
@@ -2,12 +2,7 @@
2
2
  * YNAB API Endpoints
3
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
4
  *
5
- * The version of the OpenAPI document: 1.70.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.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
7
  import * as runtime from '../runtime';
13
8
  import type { PayeeLocationResponse, PayeeLocationsResponse } from '../models/index';
@@ -5,12 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * 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
7
7
  *
8
- * The version of the OpenAPI document: 1.70.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
8
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
14
9
  */
15
10
  Object.defineProperty(exports, "__esModule", { value: true });
16
11
  exports.PayeeLocationsApi = void 0;
@@ -2,12 +2,7 @@
2
2
  * YNAB API Endpoints
3
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
4
  *
5
- * The version of the OpenAPI document: 1.70.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.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
7
  import * as runtime from '../runtime';
13
8
  import type { PatchPayeeWrapper, PayeeResponse, PayeesResponse, SavePayeeResponse } from '../models/index';
@@ -5,12 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * 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
7
7
  *
8
- * The version of the OpenAPI document: 1.70.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
8
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
14
9
  */
15
10
  Object.defineProperty(exports, "__esModule", { value: true });
16
11
  exports.PayeesApi = void 0;
@@ -2,15 +2,14 @@
2
2
  * YNAB API Endpoints
3
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
4
  *
5
- * The version of the OpenAPI document: 1.70.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.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
7
  import * as runtime from '../runtime';
13
- import type { ScheduledTransactionResponse, ScheduledTransactionsResponse } from '../models/index';
8
+ import type { PostScheduledTransactionWrapper, ScheduledTransactionResponse, ScheduledTransactionsResponse } from '../models/index';
9
+ export interface CreateScheduledTransactionRequest {
10
+ budgetId: string;
11
+ data: PostScheduledTransactionWrapper;
12
+ }
14
13
  export interface GetScheduledTransactionByIdRequest {
15
14
  budgetId: string;
16
15
  scheduledTransactionId: string;
@@ -23,6 +22,16 @@ export interface GetScheduledTransactionsRequest {
23
22
  *
24
23
  */
25
24
  export declare class ScheduledTransactionsApi extends runtime.BaseAPI {
25
+ /**
26
+ * Creates a single scheduled transaction.
27
+ * Create a single scheduled transaction
28
+ */
29
+ createScheduledTransactionRaw(requestParameters: CreateScheduledTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTransactionResponse>>;
30
+ /**
31
+ * Creates a single scheduled transaction.
32
+ * Create a single scheduled transaction
33
+ */
34
+ createScheduledTransaction(budgetId: string, data: PostScheduledTransactionWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTransactionResponse>;
26
35
  /**
27
36
  * Returns a single scheduled transaction
28
37
  * Single scheduled transaction
@@ -5,12 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * 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
7
7
  *
8
- * The version of the OpenAPI document: 1.70.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
8
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
14
9
  */
15
10
  Object.defineProperty(exports, "__esModule", { value: true });
16
11
  exports.ScheduledTransactionsApi = void 0;
@@ -20,6 +15,45 @@ const index_1 = require("../models/index");
20
15
  *
21
16
  */
22
17
  class ScheduledTransactionsApi extends runtime.BaseAPI {
18
+ /**
19
+ * Creates a single scheduled transaction.
20
+ * Create a single scheduled transaction
21
+ */
22
+ async createScheduledTransactionRaw(requestParameters, initOverrides) {
23
+ if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
24
+ throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling createScheduledTransaction.');
25
+ }
26
+ if (requestParameters.data === null || requestParameters.data === undefined) {
27
+ throw new runtime.RequiredError('data', 'Required parameter requestParameters.data was null or undefined when calling createScheduledTransaction.');
28
+ }
29
+ const queryParameters = {};
30
+ const headerParameters = {};
31
+ headerParameters['Accept'] = 'application/json';
32
+ headerParameters['Content-Type'] = 'application/json';
33
+ if (this.configuration && this.configuration.accessToken) {
34
+ const token = this.configuration.accessToken;
35
+ const tokenString = await token("bearer", []);
36
+ if (tokenString) {
37
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
38
+ }
39
+ }
40
+ const response = await this.request({
41
+ path: `/budgets/{budget_id}/scheduled_transactions`.replace(`{${"budget_id"}}`, encodeURIComponent(String(requestParameters.budgetId))),
42
+ method: 'POST',
43
+ headers: headerParameters,
44
+ query: queryParameters,
45
+ body: (0, index_1.PostScheduledTransactionWrapperToJSON)(requestParameters.data),
46
+ }, initOverrides);
47
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ScheduledTransactionResponseFromJSON)(jsonValue));
48
+ }
49
+ /**
50
+ * Creates a single scheduled transaction.
51
+ * Create a single scheduled transaction
52
+ */
53
+ async createScheduledTransaction(budgetId, data, initOverrides) {
54
+ const response = await this.createScheduledTransactionRaw({ budgetId: budgetId, data: data }, initOverrides);
55
+ return await response.value();
56
+ }
23
57
  /**
24
58
  * Returns a single scheduled transaction
25
59
  * Single scheduled transaction
@@ -2,12 +2,7 @@
2
2
  * YNAB API Endpoints
3
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
4
  *
5
- * The version of the OpenAPI document: 1.70.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.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
7
  import * as runtime from '../runtime';
13
8
  import type { HybridTransactionsResponse, PatchTransactionsWrapper, PostTransactionsWrapper, PutTransactionWrapper, SaveTransactionsResponse, TransactionResponse, TransactionsImportResponse, TransactionsResponse } from '../models/index';
@@ -43,6 +38,13 @@ export interface GetTransactionsByCategoryRequest {
43
38
  type?: GetTransactionsByCategoryTypeEnum;
44
39
  lastKnowledgeOfServer?: number;
45
40
  }
41
+ export interface GetTransactionsByMonthRequest {
42
+ budgetId: string;
43
+ month: string;
44
+ sinceDate?: string;
45
+ type?: GetTransactionsByMonthTypeEnum;
46
+ lastKnowledgeOfServer?: number;
47
+ }
46
48
  export interface GetTransactionsByPayeeRequest {
47
49
  budgetId: string;
48
50
  payeeId: string;
@@ -67,12 +69,12 @@ export interface UpdateTransactionsRequest {
67
69
  */
68
70
  export declare class TransactionsApi extends runtime.BaseAPI {
69
71
  /**
70
- * Creates a single transaction or multiple transactions. If you provide a body containing a `transaction` object, a single transaction will be created and if you provide a body containing a `transactions` array, multiple transactions will be created. Scheduled transactions cannot be created on this endpoint.
72
+ * Creates a single transaction or multiple transactions. If you provide a body containing a `transaction` object, a single transaction will be created and if you provide a body containing a `transactions` array, multiple transactions will be created. Scheduled transactions (transactions with a future date) cannot be created on this endpoint.
71
73
  * Create a single transaction or multiple transactions
72
74
  */
73
75
  createTransactionRaw(requestParameters: CreateTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveTransactionsResponse>>;
74
76
  /**
75
- * Creates a single transaction or multiple transactions. If you provide a body containing a `transaction` object, a single transaction will be created and if you provide a body containing a `transactions` array, multiple transactions will be created. Scheduled transactions cannot be created on this endpoint.
77
+ * Creates a single transaction or multiple transactions. If you provide a body containing a `transaction` object, a single transaction will be created and if you provide a body containing a `transactions` array, multiple transactions will be created. Scheduled transactions (transactions with a future date) cannot be created on this endpoint.
76
78
  * Create a single transaction or multiple transactions
77
79
  */
78
80
  createTransaction(budgetId: string, data: PostTransactionsWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveTransactionsResponse>;
@@ -126,6 +128,16 @@ export declare class TransactionsApi extends runtime.BaseAPI {
126
128
  * List category transactions, excluding any pending transactions
127
129
  */
128
130
  getTransactionsByCategory(budgetId: string, categoryId: string, sinceDate?: string, type?: GetTransactionsByCategoryTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HybridTransactionsResponse>;
131
+ /**
132
+ * Returns all transactions for a specified month
133
+ * List transactions in month, excluding any pending transactions
134
+ */
135
+ getTransactionsByMonthRaw(requestParameters: GetTransactionsByMonthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HybridTransactionsResponse>>;
136
+ /**
137
+ * Returns all transactions for a specified month
138
+ * List transactions in month, excluding any pending transactions
139
+ */
140
+ getTransactionsByMonth(budgetId: string, month: string, sinceDate?: string, type?: GetTransactionsByMonthTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HybridTransactionsResponse>;
129
141
  /**
130
142
  * Returns all transactions for a specified payee
131
143
  * List payee transactions, excluding any pending transactions
@@ -191,6 +203,14 @@ export declare const GetTransactionsByCategoryTypeEnum: {
191
203
  readonly Unapproved: "unapproved";
192
204
  };
193
205
  export type GetTransactionsByCategoryTypeEnum = typeof GetTransactionsByCategoryTypeEnum[keyof typeof GetTransactionsByCategoryTypeEnum];
206
+ /**
207
+ * @export
208
+ */
209
+ export declare const GetTransactionsByMonthTypeEnum: {
210
+ readonly Uncategorized: "uncategorized";
211
+ readonly Unapproved: "unapproved";
212
+ };
213
+ export type GetTransactionsByMonthTypeEnum = typeof GetTransactionsByMonthTypeEnum[keyof typeof GetTransactionsByMonthTypeEnum];
194
214
  /**
195
215
  * @export
196
216
  */
@@ -5,15 +5,10 @@
5
5
  * YNAB API Endpoints
6
6
  * 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
7
7
  *
8
- * The version of the OpenAPI document: 1.70.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
8
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
14
9
  */
15
10
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetTransactionsByPayeeTypeEnum = exports.GetTransactionsByCategoryTypeEnum = exports.GetTransactionsByAccountTypeEnum = exports.GetTransactionsTypeEnum = exports.TransactionsApi = void 0;
11
+ exports.GetTransactionsByPayeeTypeEnum = exports.GetTransactionsByMonthTypeEnum = exports.GetTransactionsByCategoryTypeEnum = exports.GetTransactionsByAccountTypeEnum = exports.GetTransactionsTypeEnum = exports.TransactionsApi = void 0;
17
12
  const runtime = require("../runtime");
18
13
  const index_1 = require("../models/index");
19
14
  /**
@@ -21,7 +16,7 @@ const index_1 = require("../models/index");
21
16
  */
22
17
  class TransactionsApi extends runtime.BaseAPI {
23
18
  /**
24
- * Creates a single transaction or multiple transactions. If you provide a body containing a `transaction` object, a single transaction will be created and if you provide a body containing a `transactions` array, multiple transactions will be created. Scheduled transactions cannot be created on this endpoint.
19
+ * Creates a single transaction or multiple transactions. If you provide a body containing a `transaction` object, a single transaction will be created and if you provide a body containing a `transactions` array, multiple transactions will be created. Scheduled transactions (transactions with a future date) cannot be created on this endpoint.
25
20
  * Create a single transaction or multiple transactions
26
21
  */
27
22
  async createTransactionRaw(requestParameters, initOverrides) {
@@ -52,7 +47,7 @@ class TransactionsApi extends runtime.BaseAPI {
52
47
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SaveTransactionsResponseFromJSON)(jsonValue));
53
48
  }
54
49
  /**
55
- * Creates a single transaction or multiple transactions. If you provide a body containing a `transaction` object, a single transaction will be created and if you provide a body containing a `transactions` array, multiple transactions will be created. Scheduled transactions cannot be created on this endpoint.
50
+ * Creates a single transaction or multiple transactions. If you provide a body containing a `transaction` object, a single transaction will be created and if you provide a body containing a `transactions` array, multiple transactions will be created. Scheduled transactions (transactions with a future date) cannot be created on this endpoint.
56
51
  * Create a single transaction or multiple transactions
57
52
  */
58
53
  async createTransaction(budgetId, data, initOverrides) {
@@ -268,6 +263,52 @@ class TransactionsApi extends runtime.BaseAPI {
268
263
  const response = await this.getTransactionsByCategoryRaw({ budgetId: budgetId, categoryId: categoryId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides);
269
264
  return await response.value();
270
265
  }
266
+ /**
267
+ * Returns all transactions for a specified month
268
+ * List transactions in month, excluding any pending transactions
269
+ */
270
+ async getTransactionsByMonthRaw(requestParameters, initOverrides) {
271
+ if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
272
+ throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling getTransactionsByMonth.');
273
+ }
274
+ if (requestParameters.month === null || requestParameters.month === undefined) {
275
+ throw new runtime.RequiredError('month', 'Required parameter requestParameters.month was null or undefined when calling getTransactionsByMonth.');
276
+ }
277
+ const queryParameters = {};
278
+ if (requestParameters.sinceDate !== undefined) {
279
+ queryParameters['since_date'] = requestParameters.sinceDate;
280
+ }
281
+ if (requestParameters.type !== undefined) {
282
+ queryParameters['type'] = requestParameters.type;
283
+ }
284
+ if (requestParameters.lastKnowledgeOfServer !== undefined) {
285
+ queryParameters['last_knowledge_of_server'] = requestParameters.lastKnowledgeOfServer;
286
+ }
287
+ const headerParameters = {};
288
+ headerParameters['Accept'] = 'application/json';
289
+ if (this.configuration && this.configuration.accessToken) {
290
+ const token = this.configuration.accessToken;
291
+ const tokenString = await token("bearer", []);
292
+ if (tokenString) {
293
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
294
+ }
295
+ }
296
+ const response = await this.request({
297
+ path: `/budgets/{budget_id}/months/{month}/transactions`.replace(`{${"budget_id"}}`, encodeURIComponent(String(requestParameters.budgetId))).replace(`{${"month"}}`, encodeURIComponent(String(requestParameters.month))),
298
+ method: 'GET',
299
+ headers: headerParameters,
300
+ query: queryParameters,
301
+ }, initOverrides);
302
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.HybridTransactionsResponseFromJSON)(jsonValue));
303
+ }
304
+ /**
305
+ * Returns all transactions for a specified month
306
+ * List transactions in month, excluding any pending transactions
307
+ */
308
+ async getTransactionsByMonth(budgetId, month, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
309
+ const response = await this.getTransactionsByMonthRaw({ budgetId: budgetId, month: month, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides);
310
+ return await response.value();
311
+ }
271
312
  /**
272
313
  * Returns all transactions for a specified payee
273
314
  * List payee transactions, excluding any pending transactions
@@ -452,6 +493,13 @@ exports.GetTransactionsByCategoryTypeEnum = {
452
493
  Uncategorized: 'uncategorized',
453
494
  Unapproved: 'unapproved'
454
495
  };
496
+ /**
497
+ * @export
498
+ */
499
+ exports.GetTransactionsByMonthTypeEnum = {
500
+ Uncategorized: 'uncategorized',
501
+ Unapproved: 'unapproved'
502
+ };
455
503
  /**
456
504
  * @export
457
505
  */
@@ -2,12 +2,7 @@
2
2
  * YNAB API Endpoints
3
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
4
  *
5
- * The version of the OpenAPI document: 1.70.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.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
7
  import * as runtime from '../runtime';
13
8
  import type { UserResponse } from '../models/index';
@@ -5,12 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * 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
7
7
  *
8
- * The version of the OpenAPI document: 1.70.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
8
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
14
9
  */
15
10
  Object.defineProperty(exports, "__esModule", { value: true });
16
11
  exports.UserApi = void 0;