ynab 2.10.0 → 4.0.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 (320) hide show
  1. package/README.md +50 -42
  2. package/dist/apis/AccountsApi.d.ts +12 -12
  3. package/dist/apis/AccountsApi.js +38 -28
  4. package/dist/apis/CategoriesApi.d.ts +68 -25
  5. package/dist/apis/CategoriesApi.js +176 -46
  6. package/dist/apis/DeprecatedApi.js +17 -7
  7. package/dist/apis/MoneyMovementsApi.d.ts +67 -0
  8. package/dist/apis/MoneyMovementsApi.js +194 -0
  9. package/dist/apis/MonthsApi.d.ts +16 -16
  10. package/dist/apis/MonthsApi.js +38 -28
  11. package/dist/apis/PayeeLocationsApi.d.ts +12 -12
  12. package/dist/apis/PayeeLocationsApi.js +38 -28
  13. package/dist/apis/PayeesApi.d.ts +10 -10
  14. package/dist/apis/PayeesApi.js +36 -26
  15. package/dist/apis/PlansApi.d.ts +53 -0
  16. package/dist/apis/{BudgetsApi.js → PlansApi.js} +51 -41
  17. package/dist/apis/ScheduledTransactionsApi.d.ts +20 -20
  18. package/dist/apis/ScheduledTransactionsApi.js +52 -42
  19. package/dist/apis/TransactionsApi.d.ts +49 -49
  20. package/dist/apis/TransactionsApi.js +99 -89
  21. package/dist/apis/UserApi.d.ts +2 -2
  22. package/dist/apis/UserApi.js +19 -9
  23. package/dist/apis/index.d.ts +2 -1
  24. package/dist/apis/index.js +2 -1
  25. package/dist/browser/ynab.js +1 -1
  26. package/dist/esm/apis/AccountsApi.d.ts +12 -12
  27. package/dist/esm/apis/AccountsApi.js +23 -23
  28. package/dist/esm/apis/CategoriesApi.d.ts +68 -25
  29. package/dist/esm/apis/CategoriesApi.js +228 -42
  30. package/dist/esm/apis/DeprecatedApi.js +2 -2
  31. package/dist/esm/apis/MoneyMovementsApi.d.ts +67 -0
  32. package/dist/esm/apis/MoneyMovementsApi.js +302 -0
  33. package/dist/esm/apis/MonthsApi.d.ts +16 -16
  34. package/dist/esm/apis/MonthsApi.js +23 -23
  35. package/dist/esm/apis/PayeeLocationsApi.d.ts +12 -12
  36. package/dist/esm/apis/PayeeLocationsApi.js +23 -23
  37. package/dist/esm/apis/PayeesApi.d.ts +10 -10
  38. package/dist/esm/apis/PayeesApi.js +21 -21
  39. package/dist/esm/apis/PlansApi.d.ts +53 -0
  40. package/dist/esm/apis/{BudgetsApi.js → PlansApi.js} +39 -39
  41. package/dist/esm/apis/ScheduledTransactionsApi.d.ts +20 -20
  42. package/dist/esm/apis/ScheduledTransactionsApi.js +37 -37
  43. package/dist/esm/apis/TransactionsApi.d.ts +49 -49
  44. package/dist/esm/apis/TransactionsApi.js +84 -84
  45. package/dist/esm/apis/UserApi.d.ts +2 -2
  46. package/dist/esm/apis/UserApi.js +4 -4
  47. package/dist/esm/apis/index.d.ts +2 -1
  48. package/dist/esm/apis/index.js +2 -1
  49. package/dist/esm/index.d.ts +3 -3
  50. package/dist/esm/index.js +5 -5
  51. package/dist/esm/models/Account.d.ts +6 -6
  52. package/dist/esm/models/Category.d.ts +10 -4
  53. package/dist/esm/models/Category.js +2 -0
  54. package/dist/esm/models/CategoryGroupWithCategories.d.ts +1 -1
  55. package/dist/esm/models/CurrencyFormat.d.ts +1 -1
  56. package/dist/esm/models/DateFormat.d.ts +1 -1
  57. package/dist/esm/models/ExistingCategory.d.ts +51 -0
  58. package/dist/esm/models/ExistingCategory.js +45 -0
  59. package/dist/esm/models/ExistingTransaction.d.ts +4 -4
  60. package/dist/esm/models/HybridTransaction.d.ts +12 -12
  61. package/dist/esm/models/MoneyMovement.d.ts +75 -0
  62. package/dist/esm/models/MoneyMovement.js +57 -0
  63. package/dist/esm/models/MoneyMovementGroup.d.ts +51 -0
  64. package/dist/esm/models/MoneyMovementGroup.js +51 -0
  65. package/dist/esm/models/MoneyMovementGroupsResponse.d.ts +28 -0
  66. package/dist/esm/models/MoneyMovementGroupsResponse.js +40 -0
  67. package/dist/esm/models/MoneyMovementGroupsResponseData.d.ts +34 -0
  68. package/dist/esm/models/MoneyMovementGroupsResponseData.js +44 -0
  69. package/dist/esm/models/MoneyMovementsResponse.d.ts +28 -0
  70. package/dist/esm/models/{BudgetSettingsResponse.js → MoneyMovementsResponse.js} +11 -11
  71. package/dist/esm/models/MoneyMovementsResponseData.d.ts +34 -0
  72. package/dist/esm/models/MoneyMovementsResponseData.js +44 -0
  73. package/dist/esm/models/MonthDetail.d.ts +4 -4
  74. package/dist/esm/models/MonthSummary.d.ts +1 -1
  75. package/dist/esm/models/NewCategory.d.ts +51 -0
  76. package/dist/esm/models/NewCategory.js +45 -0
  77. package/dist/esm/models/NewTransaction.d.ts +4 -4
  78. package/dist/esm/models/PatchCategoryGroupWrapper.d.ts +28 -0
  79. package/dist/esm/models/PatchCategoryGroupWrapper.js +40 -0
  80. package/dist/esm/models/PatchCategoryWrapper.d.ts +3 -3
  81. package/dist/esm/models/PatchCategoryWrapper.js +3 -3
  82. package/dist/{models/BudgetDetail.d.ts → esm/models/PlanDetail.d.ts} +30 -30
  83. package/dist/esm/models/{BudgetDetail.js → PlanDetail.js} +8 -8
  84. package/dist/esm/models/PlanDetailResponse.d.ts +28 -0
  85. package/dist/esm/models/PlanDetailResponse.js +40 -0
  86. package/dist/esm/models/PlanDetailResponseData.d.ts +34 -0
  87. package/dist/esm/models/{BudgetDetailResponseData.js → PlanDetailResponseData.js} +12 -12
  88. package/dist/esm/models/PlanSettings.d.ts +35 -0
  89. package/dist/esm/models/{BudgetSettings.js → PlanSettings.js} +8 -8
  90. package/dist/esm/models/PlanSettingsResponse.d.ts +28 -0
  91. package/dist/esm/models/{BudgetDetailResponse.js → PlanSettingsResponse.js} +11 -11
  92. package/dist/esm/models/PlanSettingsResponseData.d.ts +28 -0
  93. package/dist/esm/models/PlanSettingsResponseData.js +40 -0
  94. package/dist/esm/models/PlanSummary.d.ts +72 -0
  95. package/dist/esm/models/{BudgetSummary.js → PlanSummary.js} +8 -8
  96. package/dist/esm/models/PlanSummaryResponse.d.ts +28 -0
  97. package/dist/esm/models/PlanSummaryResponse.js +40 -0
  98. package/dist/esm/models/PlanSummaryResponseData.d.ts +34 -0
  99. package/dist/esm/models/PlanSummaryResponseData.js +42 -0
  100. package/dist/esm/models/PostCategoryGroupWrapper.d.ts +28 -0
  101. package/dist/esm/models/PostCategoryGroupWrapper.js +40 -0
  102. package/dist/esm/models/PostCategoryWrapper.d.ts +28 -0
  103. package/dist/esm/models/PostCategoryWrapper.js +40 -0
  104. package/dist/esm/models/SaveCategory.d.ts +7 -1
  105. package/dist/esm/models/SaveCategory.js +2 -0
  106. package/dist/esm/models/SaveCategoryGroup.d.ts +27 -0
  107. package/dist/esm/models/SaveCategoryGroup.js +39 -0
  108. package/dist/esm/models/SaveCategoryGroupResponse.d.ts +28 -0
  109. package/dist/esm/models/SaveCategoryGroupResponse.js +40 -0
  110. package/dist/esm/models/SaveCategoryGroupResponseData.d.ts +34 -0
  111. package/dist/esm/models/SaveCategoryGroupResponseData.js +44 -0
  112. package/dist/esm/models/SaveMonthCategory.d.ts +1 -1
  113. package/dist/esm/models/SaveTransactionWithIdOrImportId.d.ts +4 -4
  114. package/dist/esm/models/ScheduledTransactionDetail.d.ts +6 -6
  115. package/dist/esm/models/ScheduledTransactionSummary.d.ts +1 -1
  116. package/dist/esm/models/TransactionDetail.d.ts +11 -11
  117. package/dist/esm/models/TransactionSummary.d.ts +1 -1
  118. package/dist/esm/models/index.d.ts +23 -9
  119. package/dist/esm/models/index.js +23 -9
  120. package/dist/esm/runtime.js +3 -3
  121. package/dist/index.d.ts +3 -3
  122. package/dist/index.js +22 -12
  123. package/dist/models/Account.d.ts +6 -6
  124. package/dist/models/Account.js +5 -6
  125. package/dist/models/AccountResponse.js +5 -6
  126. package/dist/models/AccountResponseData.js +5 -6
  127. package/dist/models/AccountType.js +6 -6
  128. package/dist/models/AccountsResponse.js +5 -6
  129. package/dist/models/AccountsResponseData.js +5 -6
  130. package/dist/models/BulkResponse.js +5 -6
  131. package/dist/models/BulkResponseData.js +5 -6
  132. package/dist/models/BulkResponseDataBulk.js +5 -6
  133. package/dist/models/BulkTransactions.js +5 -6
  134. package/dist/models/CategoriesResponse.js +5 -6
  135. package/dist/models/CategoriesResponseData.js +5 -6
  136. package/dist/models/Category.d.ts +10 -4
  137. package/dist/models/Category.js +8 -6
  138. package/dist/models/CategoryGoalType.js +4 -5
  139. package/dist/models/CategoryGroup.js +5 -6
  140. package/dist/models/CategoryGroupWithCategories.d.ts +1 -1
  141. package/dist/models/CategoryGroupWithCategories.js +5 -6
  142. package/dist/models/CategoryGroupWithCategoriesAllOf.js +4 -5
  143. package/dist/models/CategoryResponse.js +5 -6
  144. package/dist/models/CategoryResponseData.js +5 -6
  145. package/dist/models/CurrencyFormat.d.ts +1 -1
  146. package/dist/models/CurrencyFormat.js +5 -6
  147. package/dist/models/DateFormat.d.ts +1 -1
  148. package/dist/models/DateFormat.js +5 -6
  149. package/dist/models/ErrorDetail.js +5 -6
  150. package/dist/models/ErrorResponse.js +5 -6
  151. package/dist/models/ExistingCategory.d.ts +51 -0
  152. package/dist/models/ExistingCategory.js +51 -0
  153. package/dist/models/ExistingTransaction.d.ts +4 -4
  154. package/dist/models/ExistingTransaction.js +5 -6
  155. package/dist/models/HybridTransaction.d.ts +12 -12
  156. package/dist/models/HybridTransaction.js +6 -6
  157. package/dist/models/HybridTransactionAllOf.js +5 -5
  158. package/dist/models/HybridTransactionsResponse.js +5 -6
  159. package/dist/models/HybridTransactionsResponseData.js +5 -6
  160. package/dist/models/MoneyMovement.d.ts +75 -0
  161. package/dist/models/MoneyMovement.js +63 -0
  162. package/dist/models/MoneyMovementGroup.d.ts +51 -0
  163. package/dist/models/MoneyMovementGroup.js +57 -0
  164. package/dist/models/MoneyMovementGroupsResponse.d.ts +28 -0
  165. package/dist/models/MoneyMovementGroupsResponse.js +46 -0
  166. package/dist/models/MoneyMovementGroupsResponseData.d.ts +34 -0
  167. package/dist/models/MoneyMovementGroupsResponseData.js +50 -0
  168. package/dist/models/MoneyMovementsResponse.d.ts +28 -0
  169. package/dist/models/MoneyMovementsResponse.js +46 -0
  170. package/dist/models/MoneyMovementsResponseData.d.ts +34 -0
  171. package/dist/models/MoneyMovementsResponseData.js +50 -0
  172. package/dist/models/MonthDetail.d.ts +4 -4
  173. package/dist/models/MonthDetail.js +5 -6
  174. package/dist/models/MonthDetailAllOf.js +4 -5
  175. package/dist/models/MonthDetailResponse.js +5 -6
  176. package/dist/models/MonthDetailResponseData.js +5 -6
  177. package/dist/models/MonthSummariesResponse.js +5 -6
  178. package/dist/models/MonthSummariesResponseData.js +5 -6
  179. package/dist/models/MonthSummary.d.ts +1 -1
  180. package/dist/models/MonthSummary.js +5 -6
  181. package/dist/models/NewCategory.d.ts +51 -0
  182. package/dist/models/NewCategory.js +51 -0
  183. package/dist/models/NewTransaction.d.ts +4 -4
  184. package/dist/models/NewTransaction.js +5 -6
  185. package/dist/models/PatchCategoryGroupWrapper.d.ts +28 -0
  186. package/dist/models/PatchCategoryGroupWrapper.js +46 -0
  187. package/dist/models/PatchCategoryWrapper.d.ts +3 -3
  188. package/dist/models/PatchCategoryWrapper.js +8 -9
  189. package/dist/models/PatchMonthCategoryWrapper.js +5 -6
  190. package/dist/models/PatchPayeeWrapper.js +5 -6
  191. package/dist/models/PatchTransactionsWrapper.js +5 -6
  192. package/dist/models/Payee.js +5 -6
  193. package/dist/models/PayeeLocation.js +5 -6
  194. package/dist/models/PayeeLocationResponse.js +5 -6
  195. package/dist/models/PayeeLocationResponseData.js +5 -6
  196. package/dist/models/PayeeLocationsResponse.js +5 -6
  197. package/dist/models/PayeeLocationsResponseData.js +5 -6
  198. package/dist/models/PayeeResponse.js +5 -6
  199. package/dist/models/PayeeResponseData.js +5 -6
  200. package/dist/models/PayeesResponse.js +5 -6
  201. package/dist/models/PayeesResponseData.js +5 -6
  202. package/dist/{esm/models/BudgetDetail.d.ts → models/PlanDetail.d.ts} +30 -30
  203. package/dist/models/{BudgetDetail.js → PlanDetail.js} +13 -14
  204. package/dist/models/PlanDetailResponse.d.ts +28 -0
  205. package/dist/models/PlanDetailResponse.js +46 -0
  206. package/dist/models/PlanDetailResponseData.d.ts +34 -0
  207. package/dist/models/PlanDetailResponseData.js +50 -0
  208. package/dist/models/PlanSettings.d.ts +35 -0
  209. package/dist/models/{BudgetSettings.js → PlanSettings.js} +13 -14
  210. package/dist/models/PlanSettingsResponse.d.ts +28 -0
  211. package/dist/models/PlanSettingsResponse.js +46 -0
  212. package/dist/models/PlanSettingsResponseData.d.ts +28 -0
  213. package/dist/models/PlanSettingsResponseData.js +46 -0
  214. package/dist/models/PlanSummary.d.ts +72 -0
  215. package/dist/models/{BudgetSummary.js → PlanSummary.js} +13 -14
  216. package/dist/models/PlanSummaryResponse.d.ts +28 -0
  217. package/dist/models/PlanSummaryResponse.js +46 -0
  218. package/dist/models/PlanSummaryResponseData.d.ts +34 -0
  219. package/dist/models/PlanSummaryResponseData.js +48 -0
  220. package/dist/models/PostAccountWrapper.js +5 -6
  221. package/dist/models/PostCategoryGroupWrapper.d.ts +28 -0
  222. package/dist/models/PostCategoryGroupWrapper.js +46 -0
  223. package/dist/models/PostCategoryWrapper.d.ts +28 -0
  224. package/dist/models/PostCategoryWrapper.js +46 -0
  225. package/dist/models/PostScheduledTransactionWrapper.js +5 -6
  226. package/dist/models/PostTransactionsWrapper.js +5 -6
  227. package/dist/models/PutScheduledTransactionWrapper.js +5 -6
  228. package/dist/models/PutTransactionWrapper.js +5 -6
  229. package/dist/models/SaveAccount.js +5 -6
  230. package/dist/models/SaveCategory.d.ts +7 -1
  231. package/dist/models/SaveCategory.js +7 -6
  232. package/dist/models/SaveCategoryGroup.d.ts +27 -0
  233. package/dist/models/SaveCategoryGroup.js +45 -0
  234. package/dist/models/SaveCategoryGroupResponse.d.ts +28 -0
  235. package/dist/models/SaveCategoryGroupResponse.js +46 -0
  236. package/dist/models/SaveCategoryGroupResponseData.d.ts +34 -0
  237. package/dist/models/SaveCategoryGroupResponseData.js +50 -0
  238. package/dist/models/SaveCategoryResponse.js +5 -6
  239. package/dist/models/SaveCategoryResponseData.js +5 -6
  240. package/dist/models/SaveMonthCategory.d.ts +1 -1
  241. package/dist/models/SaveMonthCategory.js +5 -6
  242. package/dist/models/SavePayee.js +5 -6
  243. package/dist/models/SavePayeeResponse.js +5 -6
  244. package/dist/models/SavePayeeResponseData.js +5 -6
  245. package/dist/models/SaveScheduledTransaction.js +5 -6
  246. package/dist/models/SaveSubTransaction.js +5 -6
  247. package/dist/models/SaveTransaction.js +4 -5
  248. package/dist/models/SaveTransactionWithId.js +4 -5
  249. package/dist/models/SaveTransactionWithIdAllOf.js +4 -5
  250. package/dist/models/SaveTransactionWithIdOrImportId.d.ts +4 -4
  251. package/dist/models/SaveTransactionWithIdOrImportId.js +5 -6
  252. package/dist/models/SaveTransactionWithOptionalFields.js +5 -6
  253. package/dist/models/SaveTransactionWithOptionalFieldsFlagColor.js +4 -5
  254. package/dist/models/SaveTransactionsResponse.js +5 -6
  255. package/dist/models/SaveTransactionsResponseData.js +5 -6
  256. package/dist/models/ScheduledSubTransaction.js +5 -6
  257. package/dist/models/ScheduledTransactionDetail.d.ts +6 -6
  258. package/dist/models/ScheduledTransactionDetail.js +6 -6
  259. package/dist/models/ScheduledTransactionDetailAllOf.js +4 -5
  260. package/dist/models/ScheduledTransactionFrequency.js +6 -6
  261. package/dist/models/ScheduledTransactionResponse.js +5 -6
  262. package/dist/models/ScheduledTransactionResponseData.js +5 -6
  263. package/dist/models/ScheduledTransactionSummary.d.ts +1 -1
  264. package/dist/models/ScheduledTransactionSummary.js +6 -6
  265. package/dist/models/ScheduledTransactionSummaryFlagColor.js +4 -5
  266. package/dist/models/ScheduledTransactionsResponse.js +5 -6
  267. package/dist/models/ScheduledTransactionsResponseData.js +5 -6
  268. package/dist/models/SubTransaction.js +5 -6
  269. package/dist/models/TransactionClearedStatus.js +6 -6
  270. package/dist/models/TransactionDetail.d.ts +11 -11
  271. package/dist/models/TransactionDetail.js +6 -6
  272. package/dist/models/TransactionDetailAllOf.js +4 -5
  273. package/dist/models/TransactionFlagColor.js +6 -6
  274. package/dist/models/TransactionResponse.js +5 -6
  275. package/dist/models/TransactionResponseData.js +5 -6
  276. package/dist/models/TransactionSummary.d.ts +1 -1
  277. package/dist/models/TransactionSummary.js +6 -6
  278. package/dist/models/TransactionSummaryDebtTransactionType.js +4 -5
  279. package/dist/models/TransactionsImportResponse.js +5 -6
  280. package/dist/models/TransactionsImportResponseData.js +5 -6
  281. package/dist/models/TransactionsResponse.js +5 -6
  282. package/dist/models/TransactionsResponseData.js +5 -6
  283. package/dist/models/User.js +5 -6
  284. package/dist/models/UserResponse.js +5 -6
  285. package/dist/models/UserResponseData.js +5 -6
  286. package/dist/models/index.d.ts +23 -9
  287. package/dist/models/index.js +23 -9
  288. package/dist/runtime.js +5 -5
  289. package/package.json +7 -8
  290. package/dist/apis/BudgetsApi.d.ts +0 -53
  291. package/dist/esm/apis/BudgetsApi.d.ts +0 -53
  292. package/dist/esm/models/BudgetDetailAllOf.d.ts +0 -95
  293. package/dist/esm/models/BudgetDetailAllOf.js +0 -71
  294. package/dist/esm/models/BudgetDetailResponse.d.ts +0 -28
  295. package/dist/esm/models/BudgetDetailResponseData.d.ts +0 -34
  296. package/dist/esm/models/BudgetSettings.d.ts +0 -35
  297. package/dist/esm/models/BudgetSettingsResponse.d.ts +0 -28
  298. package/dist/esm/models/BudgetSettingsResponseData.d.ts +0 -28
  299. package/dist/esm/models/BudgetSettingsResponseData.js +0 -40
  300. package/dist/esm/models/BudgetSummary.d.ts +0 -72
  301. package/dist/esm/models/BudgetSummaryResponse.d.ts +0 -28
  302. package/dist/esm/models/BudgetSummaryResponse.js +0 -40
  303. package/dist/esm/models/BudgetSummaryResponseData.d.ts +0 -34
  304. package/dist/esm/models/BudgetSummaryResponseData.js +0 -42
  305. package/dist/models/BudgetDetailAllOf.d.ts +0 -95
  306. package/dist/models/BudgetDetailAllOf.js +0 -78
  307. package/dist/models/BudgetDetailResponse.d.ts +0 -28
  308. package/dist/models/BudgetDetailResponse.js +0 -47
  309. package/dist/models/BudgetDetailResponseData.d.ts +0 -34
  310. package/dist/models/BudgetDetailResponseData.js +0 -51
  311. package/dist/models/BudgetSettings.d.ts +0 -35
  312. package/dist/models/BudgetSettingsResponse.d.ts +0 -28
  313. package/dist/models/BudgetSettingsResponse.js +0 -47
  314. package/dist/models/BudgetSettingsResponseData.d.ts +0 -28
  315. package/dist/models/BudgetSettingsResponseData.js +0 -47
  316. package/dist/models/BudgetSummary.d.ts +0 -72
  317. package/dist/models/BudgetSummaryResponse.d.ts +0 -28
  318. package/dist/models/BudgetSummaryResponse.js +0 -47
  319. package/dist/models/BudgetSummaryResponseData.d.ts +0 -34
  320. package/dist/models/BudgetSummaryResponseData.js +0 -49
@@ -1,28 +0,0 @@
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
- * Generated by: OpenAPI Generator (https://openapi-generator.tech)
6
- */
7
- import type { BudgetSettingsResponseData } from './BudgetSettingsResponseData';
8
- /**
9
- *
10
- * @export
11
- * @interface BudgetSettingsResponse
12
- */
13
- export interface BudgetSettingsResponse {
14
- /**
15
- *
16
- * @type {BudgetSettingsResponseData}
17
- * @memberof BudgetSettingsResponse
18
- */
19
- data: BudgetSettingsResponseData;
20
- }
21
- /**
22
- * Check if a given object implements the BudgetSettingsResponse interface.
23
- */
24
- export declare function instanceOfBudgetSettingsResponse(value: object): value is BudgetSettingsResponse;
25
- export declare function BudgetSettingsResponseFromJSON(json: any): BudgetSettingsResponse;
26
- export declare function BudgetSettingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSettingsResponse;
27
- export declare function BudgetSettingsResponseToJSON(json: any): BudgetSettingsResponse;
28
- export declare function BudgetSettingsResponseToJSONTyped(value?: BudgetSettingsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,28 +0,0 @@
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
- * Generated by: OpenAPI Generator (https://openapi-generator.tech)
6
- */
7
- import type { BudgetSettings } from './BudgetSettings';
8
- /**
9
- *
10
- * @export
11
- * @interface BudgetSettingsResponseData
12
- */
13
- export interface BudgetSettingsResponseData {
14
- /**
15
- *
16
- * @type {BudgetSettings}
17
- * @memberof BudgetSettingsResponseData
18
- */
19
- settings: BudgetSettings;
20
- }
21
- /**
22
- * Check if a given object implements the BudgetSettingsResponseData interface.
23
- */
24
- export declare function instanceOfBudgetSettingsResponseData(value: object): value is BudgetSettingsResponseData;
25
- export declare function BudgetSettingsResponseDataFromJSON(json: any): BudgetSettingsResponseData;
26
- export declare function BudgetSettingsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSettingsResponseData;
27
- export declare function BudgetSettingsResponseDataToJSON(json: any): BudgetSettingsResponseData;
28
- export declare function BudgetSettingsResponseDataToJSONTyped(value?: BudgetSettingsResponseData | null, ignoreDiscriminator?: boolean): any;
@@ -1,40 +0,0 @@
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
- * Generated by: OpenAPI Generator (https://openapi-generator.tech)
8
- */
9
- import { BudgetSettingsFromJSON, BudgetSettingsToJSON, } from './BudgetSettings';
10
- /**
11
- * Check if a given object implements the BudgetSettingsResponseData interface.
12
- */
13
- export function instanceOfBudgetSettingsResponseData(value) {
14
- if (!('settings' in value) || value['settings'] === undefined)
15
- return false;
16
- return true;
17
- }
18
- export function BudgetSettingsResponseDataFromJSON(json) {
19
- return BudgetSettingsResponseDataFromJSONTyped(json, false);
20
- }
21
- export function BudgetSettingsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
22
- if (json == null) {
23
- return json;
24
- }
25
- return {
26
- 'settings': BudgetSettingsFromJSON(json['settings']),
27
- };
28
- }
29
- export function BudgetSettingsResponseDataToJSON(json) {
30
- return BudgetSettingsResponseDataToJSONTyped(json, false);
31
- }
32
- export function BudgetSettingsResponseDataToJSONTyped(value, ignoreDiscriminator) {
33
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
34
- if (value == null) {
35
- return value;
36
- }
37
- return {
38
- 'settings': BudgetSettingsToJSON(value['settings']),
39
- };
40
- }
@@ -1,72 +0,0 @@
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
- * Generated by: OpenAPI Generator (https://openapi-generator.tech)
6
- */
7
- import type { Account } from './Account';
8
- import type { CurrencyFormat } from './CurrencyFormat';
9
- import type { DateFormat } from './DateFormat';
10
- /**
11
- *
12
- * @export
13
- * @interface BudgetSummary
14
- */
15
- export interface BudgetSummary {
16
- /**
17
- *
18
- * @type {string}
19
- * @memberof BudgetSummary
20
- */
21
- id: string;
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof BudgetSummary
26
- */
27
- name: string;
28
- /**
29
- * The last time any changes were made to the budget from either a web or mobile client
30
- * @type {string}
31
- * @memberof BudgetSummary
32
- */
33
- last_modified_on?: string;
34
- /**
35
- * The earliest budget month
36
- * @type {string}
37
- * @memberof BudgetSummary
38
- */
39
- first_month?: string;
40
- /**
41
- * The latest budget month
42
- * @type {string}
43
- * @memberof BudgetSummary
44
- */
45
- last_month?: string;
46
- /**
47
- *
48
- * @type {DateFormat}
49
- * @memberof BudgetSummary
50
- */
51
- date_format?: DateFormat | null;
52
- /**
53
- *
54
- * @type {CurrencyFormat}
55
- * @memberof BudgetSummary
56
- */
57
- currency_format?: CurrencyFormat | null;
58
- /**
59
- * The budget accounts (only included if `include_accounts=true` specified as query parameter)
60
- * @type {Array<Account>}
61
- * @memberof BudgetSummary
62
- */
63
- accounts?: Array<Account>;
64
- }
65
- /**
66
- * Check if a given object implements the BudgetSummary interface.
67
- */
68
- export declare function instanceOfBudgetSummary(value: object): value is BudgetSummary;
69
- export declare function BudgetSummaryFromJSON(json: any): BudgetSummary;
70
- export declare function BudgetSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSummary;
71
- export declare function BudgetSummaryToJSON(json: any): BudgetSummary;
72
- export declare function BudgetSummaryToJSONTyped(value?: BudgetSummary | null, ignoreDiscriminator?: boolean): any;
@@ -1,28 +0,0 @@
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
- * Generated by: OpenAPI Generator (https://openapi-generator.tech)
6
- */
7
- import type { BudgetSummaryResponseData } from './BudgetSummaryResponseData';
8
- /**
9
- *
10
- * @export
11
- * @interface BudgetSummaryResponse
12
- */
13
- export interface BudgetSummaryResponse {
14
- /**
15
- *
16
- * @type {BudgetSummaryResponseData}
17
- * @memberof BudgetSummaryResponse
18
- */
19
- data: BudgetSummaryResponseData;
20
- }
21
- /**
22
- * Check if a given object implements the BudgetSummaryResponse interface.
23
- */
24
- export declare function instanceOfBudgetSummaryResponse(value: object): value is BudgetSummaryResponse;
25
- export declare function BudgetSummaryResponseFromJSON(json: any): BudgetSummaryResponse;
26
- export declare function BudgetSummaryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSummaryResponse;
27
- export declare function BudgetSummaryResponseToJSON(json: any): BudgetSummaryResponse;
28
- export declare function BudgetSummaryResponseToJSONTyped(value?: BudgetSummaryResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,40 +0,0 @@
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
- * Generated by: OpenAPI Generator (https://openapi-generator.tech)
8
- */
9
- import { BudgetSummaryResponseDataFromJSON, BudgetSummaryResponseDataToJSON, } from './BudgetSummaryResponseData';
10
- /**
11
- * Check if a given object implements the BudgetSummaryResponse interface.
12
- */
13
- export function instanceOfBudgetSummaryResponse(value) {
14
- if (!('data' in value) || value['data'] === undefined)
15
- return false;
16
- return true;
17
- }
18
- export function BudgetSummaryResponseFromJSON(json) {
19
- return BudgetSummaryResponseFromJSONTyped(json, false);
20
- }
21
- export function BudgetSummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
22
- if (json == null) {
23
- return json;
24
- }
25
- return {
26
- 'data': BudgetSummaryResponseDataFromJSON(json['data']),
27
- };
28
- }
29
- export function BudgetSummaryResponseToJSON(json) {
30
- return BudgetSummaryResponseToJSONTyped(json, false);
31
- }
32
- export function BudgetSummaryResponseToJSONTyped(value, ignoreDiscriminator) {
33
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
34
- if (value == null) {
35
- return value;
36
- }
37
- return {
38
- 'data': BudgetSummaryResponseDataToJSON(value['data']),
39
- };
40
- }
@@ -1,34 +0,0 @@
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
- * Generated by: OpenAPI Generator (https://openapi-generator.tech)
6
- */
7
- import type { BudgetSummary } from './BudgetSummary';
8
- /**
9
- *
10
- * @export
11
- * @interface BudgetSummaryResponseData
12
- */
13
- export interface BudgetSummaryResponseData {
14
- /**
15
- *
16
- * @type {Array<BudgetSummary>}
17
- * @memberof BudgetSummaryResponseData
18
- */
19
- budgets: Array<BudgetSummary>;
20
- /**
21
- *
22
- * @type {BudgetSummary}
23
- * @memberof BudgetSummaryResponseData
24
- */
25
- default_budget?: BudgetSummary;
26
- }
27
- /**
28
- * Check if a given object implements the BudgetSummaryResponseData interface.
29
- */
30
- export declare function instanceOfBudgetSummaryResponseData(value: object): value is BudgetSummaryResponseData;
31
- export declare function BudgetSummaryResponseDataFromJSON(json: any): BudgetSummaryResponseData;
32
- export declare function BudgetSummaryResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSummaryResponseData;
33
- export declare function BudgetSummaryResponseDataToJSON(json: any): BudgetSummaryResponseData;
34
- export declare function BudgetSummaryResponseDataToJSONTyped(value?: BudgetSummaryResponseData | null, ignoreDiscriminator?: boolean): any;
@@ -1,42 +0,0 @@
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
- * Generated by: OpenAPI Generator (https://openapi-generator.tech)
8
- */
9
- import { BudgetSummaryFromJSON, BudgetSummaryToJSON, } from './BudgetSummary';
10
- /**
11
- * Check if a given object implements the BudgetSummaryResponseData interface.
12
- */
13
- export function instanceOfBudgetSummaryResponseData(value) {
14
- if (!('budgets' in value) || value['budgets'] === undefined)
15
- return false;
16
- return true;
17
- }
18
- export function BudgetSummaryResponseDataFromJSON(json) {
19
- return BudgetSummaryResponseDataFromJSONTyped(json, false);
20
- }
21
- export function BudgetSummaryResponseDataFromJSONTyped(json, ignoreDiscriminator) {
22
- if (json == null) {
23
- return json;
24
- }
25
- return {
26
- 'budgets': (json['budgets'].map(BudgetSummaryFromJSON)),
27
- 'default_budget': json['default_budget'] == null ? undefined : BudgetSummaryFromJSON(json['default_budget']),
28
- };
29
- }
30
- export function BudgetSummaryResponseDataToJSON(json) {
31
- return BudgetSummaryResponseDataToJSONTyped(json, false);
32
- }
33
- export function BudgetSummaryResponseDataToJSONTyped(value, ignoreDiscriminator) {
34
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
35
- if (value == null) {
36
- return value;
37
- }
38
- return {
39
- 'budgets': (value['budgets'].map(BudgetSummaryToJSON)),
40
- 'default_budget': BudgetSummaryToJSON(value['default_budget']),
41
- };
42
- }
@@ -1,95 +0,0 @@
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 { Account } from './Account';
13
- import type { Category } from './Category';
14
- import type { CategoryGroup } from './CategoryGroup';
15
- import type { MonthDetail } from './MonthDetail';
16
- import type { Payee } from './Payee';
17
- import type { PayeeLocation } from './PayeeLocation';
18
- import type { ScheduledSubTransaction } from './ScheduledSubTransaction';
19
- import type { ScheduledTransactionSummary } from './ScheduledTransactionSummary';
20
- import type { SubTransaction } from './SubTransaction';
21
- import type { TransactionSummary } from './TransactionSummary';
22
- /**
23
- *
24
- * @export
25
- * @interface BudgetDetailAllOf
26
- */
27
- export interface BudgetDetailAllOf {
28
- /**
29
- *
30
- * @type {Array<Account>}
31
- * @memberof BudgetDetailAllOf
32
- */
33
- accounts?: Array<Account>;
34
- /**
35
- *
36
- * @type {Array<Payee>}
37
- * @memberof BudgetDetailAllOf
38
- */
39
- payees?: Array<Payee>;
40
- /**
41
- *
42
- * @type {Array<PayeeLocation>}
43
- * @memberof BudgetDetailAllOf
44
- */
45
- payee_locations?: Array<PayeeLocation>;
46
- /**
47
- *
48
- * @type {Array<CategoryGroup>}
49
- * @memberof BudgetDetailAllOf
50
- */
51
- category_groups?: Array<CategoryGroup>;
52
- /**
53
- *
54
- * @type {Array<Category>}
55
- * @memberof BudgetDetailAllOf
56
- */
57
- categories?: Array<Category>;
58
- /**
59
- *
60
- * @type {Array<MonthDetail>}
61
- * @memberof BudgetDetailAllOf
62
- */
63
- months?: Array<MonthDetail>;
64
- /**
65
- *
66
- * @type {Array<TransactionSummary>}
67
- * @memberof BudgetDetailAllOf
68
- */
69
- transactions?: Array<TransactionSummary>;
70
- /**
71
- *
72
- * @type {Array<SubTransaction>}
73
- * @memberof BudgetDetailAllOf
74
- */
75
- subtransactions?: Array<SubTransaction>;
76
- /**
77
- *
78
- * @type {Array<ScheduledTransactionSummary>}
79
- * @memberof BudgetDetailAllOf
80
- */
81
- scheduled_transactions?: Array<ScheduledTransactionSummary>;
82
- /**
83
- *
84
- * @type {Array<ScheduledSubTransaction>}
85
- * @memberof BudgetDetailAllOf
86
- */
87
- scheduled_subtransactions?: Array<ScheduledSubTransaction>;
88
- }
89
- /**
90
- * Check if a given object implements the BudgetDetailAllOf interface.
91
- */
92
- export declare function instanceOfBudgetDetailAllOf(value: object): boolean;
93
- export declare function BudgetDetailAllOfFromJSON(json: any): BudgetDetailAllOf;
94
- export declare function BudgetDetailAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetDetailAllOf;
95
- export declare function BudgetDetailAllOfToJSON(value?: BudgetDetailAllOf | null): any;
@@ -1,78 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * YNAB API Endpoints
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
- *
8
- * The version of the OpenAPI document: 1.0.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.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.BudgetDetailAllOfToJSON = exports.BudgetDetailAllOfFromJSONTyped = exports.BudgetDetailAllOfFromJSON = exports.instanceOfBudgetDetailAllOf = void 0;
17
- const runtime_1 = require("../runtime");
18
- const Account_1 = require("./Account");
19
- const Category_1 = require("./Category");
20
- const CategoryGroup_1 = require("./CategoryGroup");
21
- const MonthDetail_1 = require("./MonthDetail");
22
- const Payee_1 = require("./Payee");
23
- const PayeeLocation_1 = require("./PayeeLocation");
24
- const ScheduledSubTransaction_1 = require("./ScheduledSubTransaction");
25
- const ScheduledTransactionSummary_1 = require("./ScheduledTransactionSummary");
26
- const SubTransaction_1 = require("./SubTransaction");
27
- const TransactionSummary_1 = require("./TransactionSummary");
28
- /**
29
- * Check if a given object implements the BudgetDetailAllOf interface.
30
- */
31
- function instanceOfBudgetDetailAllOf(value) {
32
- let isInstance = true;
33
- return isInstance;
34
- }
35
- exports.instanceOfBudgetDetailAllOf = instanceOfBudgetDetailAllOf;
36
- function BudgetDetailAllOfFromJSON(json) {
37
- return BudgetDetailAllOfFromJSONTyped(json, false);
38
- }
39
- exports.BudgetDetailAllOfFromJSON = BudgetDetailAllOfFromJSON;
40
- function BudgetDetailAllOfFromJSONTyped(json, ignoreDiscriminator) {
41
- if ((json === undefined) || (json === null)) {
42
- return json;
43
- }
44
- return {
45
- 'accounts': !(0, runtime_1.exists)(json, 'accounts') ? undefined : (json['accounts'].map(Account_1.AccountFromJSON)),
46
- 'payees': !(0, runtime_1.exists)(json, 'payees') ? undefined : (json['payees'].map(Payee_1.PayeeFromJSON)),
47
- 'payee_locations': !(0, runtime_1.exists)(json, 'payee_locations') ? undefined : (json['payee_locations'].map(PayeeLocation_1.PayeeLocationFromJSON)),
48
- 'category_groups': !(0, runtime_1.exists)(json, 'category_groups') ? undefined : (json['category_groups'].map(CategoryGroup_1.CategoryGroupFromJSON)),
49
- 'categories': !(0, runtime_1.exists)(json, 'categories') ? undefined : (json['categories'].map(Category_1.CategoryFromJSON)),
50
- 'months': !(0, runtime_1.exists)(json, 'months') ? undefined : (json['months'].map(MonthDetail_1.MonthDetailFromJSON)),
51
- 'transactions': !(0, runtime_1.exists)(json, 'transactions') ? undefined : (json['transactions'].map(TransactionSummary_1.TransactionSummaryFromJSON)),
52
- 'subtransactions': !(0, runtime_1.exists)(json, 'subtransactions') ? undefined : (json['subtransactions'].map(SubTransaction_1.SubTransactionFromJSON)),
53
- 'scheduled_transactions': !(0, runtime_1.exists)(json, 'scheduled_transactions') ? undefined : (json['scheduled_transactions'].map(ScheduledTransactionSummary_1.ScheduledTransactionSummaryFromJSON)),
54
- 'scheduled_subtransactions': !(0, runtime_1.exists)(json, 'scheduled_subtransactions') ? undefined : (json['scheduled_subtransactions'].map(ScheduledSubTransaction_1.ScheduledSubTransactionFromJSON)),
55
- };
56
- }
57
- exports.BudgetDetailAllOfFromJSONTyped = BudgetDetailAllOfFromJSONTyped;
58
- function BudgetDetailAllOfToJSON(value) {
59
- if (value === undefined) {
60
- return undefined;
61
- }
62
- if (value === null) {
63
- return null;
64
- }
65
- return {
66
- 'accounts': value.accounts === undefined ? undefined : (value.accounts.map(Account_1.AccountToJSON)),
67
- 'payees': value.payees === undefined ? undefined : (value.payees.map(Payee_1.PayeeToJSON)),
68
- 'payee_locations': value.payee_locations === undefined ? undefined : (value.payee_locations.map(PayeeLocation_1.PayeeLocationToJSON)),
69
- 'category_groups': value.category_groups === undefined ? undefined : (value.category_groups.map(CategoryGroup_1.CategoryGroupToJSON)),
70
- 'categories': value.categories === undefined ? undefined : (value.categories.map(Category_1.CategoryToJSON)),
71
- 'months': value.months === undefined ? undefined : (value.months.map(MonthDetail_1.MonthDetailToJSON)),
72
- 'transactions': value.transactions === undefined ? undefined : (value.transactions.map(TransactionSummary_1.TransactionSummaryToJSON)),
73
- 'subtransactions': value.subtransactions === undefined ? undefined : (value.subtransactions.map(SubTransaction_1.SubTransactionToJSON)),
74
- 'scheduled_transactions': value.scheduled_transactions === undefined ? undefined : (value.scheduled_transactions.map(ScheduledTransactionSummary_1.ScheduledTransactionSummaryToJSON)),
75
- 'scheduled_subtransactions': value.scheduled_subtransactions === undefined ? undefined : (value.scheduled_subtransactions.map(ScheduledSubTransaction_1.ScheduledSubTransactionToJSON)),
76
- };
77
- }
78
- exports.BudgetDetailAllOfToJSON = BudgetDetailAllOfToJSON;
@@ -1,28 +0,0 @@
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
- * Generated by: OpenAPI Generator (https://openapi-generator.tech)
6
- */
7
- import type { BudgetDetailResponseData } from './BudgetDetailResponseData';
8
- /**
9
- *
10
- * @export
11
- * @interface BudgetDetailResponse
12
- */
13
- export interface BudgetDetailResponse {
14
- /**
15
- *
16
- * @type {BudgetDetailResponseData}
17
- * @memberof BudgetDetailResponse
18
- */
19
- data: BudgetDetailResponseData;
20
- }
21
- /**
22
- * Check if a given object implements the BudgetDetailResponse interface.
23
- */
24
- export declare function instanceOfBudgetDetailResponse(value: object): value is BudgetDetailResponse;
25
- export declare function BudgetDetailResponseFromJSON(json: any): BudgetDetailResponse;
26
- export declare function BudgetDetailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetDetailResponse;
27
- export declare function BudgetDetailResponseToJSON(json: any): BudgetDetailResponse;
28
- export declare function BudgetDetailResponseToJSONTyped(value?: BudgetDetailResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,47 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * YNAB API Endpoints
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
- *
8
- * Generated by: OpenAPI Generator (https://openapi-generator.tech)
9
- */
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.BudgetDetailResponseToJSONTyped = exports.BudgetDetailResponseToJSON = exports.BudgetDetailResponseFromJSONTyped = exports.BudgetDetailResponseFromJSON = exports.instanceOfBudgetDetailResponse = void 0;
12
- const BudgetDetailResponseData_1 = require("./BudgetDetailResponseData");
13
- /**
14
- * Check if a given object implements the BudgetDetailResponse interface.
15
- */
16
- function instanceOfBudgetDetailResponse(value) {
17
- if (!('data' in value) || value['data'] === undefined)
18
- return false;
19
- return true;
20
- }
21
- exports.instanceOfBudgetDetailResponse = instanceOfBudgetDetailResponse;
22
- function BudgetDetailResponseFromJSON(json) {
23
- return BudgetDetailResponseFromJSONTyped(json, false);
24
- }
25
- exports.BudgetDetailResponseFromJSON = BudgetDetailResponseFromJSON;
26
- function BudgetDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
27
- if (json == null) {
28
- return json;
29
- }
30
- return {
31
- 'data': (0, BudgetDetailResponseData_1.BudgetDetailResponseDataFromJSON)(json['data']),
32
- };
33
- }
34
- exports.BudgetDetailResponseFromJSONTyped = BudgetDetailResponseFromJSONTyped;
35
- function BudgetDetailResponseToJSON(json) {
36
- return BudgetDetailResponseToJSONTyped(json, false);
37
- }
38
- exports.BudgetDetailResponseToJSON = BudgetDetailResponseToJSON;
39
- function BudgetDetailResponseToJSONTyped(value, ignoreDiscriminator = false) {
40
- if (value == null) {
41
- return value;
42
- }
43
- return {
44
- 'data': (0, BudgetDetailResponseData_1.BudgetDetailResponseDataToJSON)(value['data']),
45
- };
46
- }
47
- exports.BudgetDetailResponseToJSONTyped = BudgetDetailResponseToJSONTyped;
@@ -1,34 +0,0 @@
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
- * Generated by: OpenAPI Generator (https://openapi-generator.tech)
6
- */
7
- import type { BudgetDetail } from './BudgetDetail';
8
- /**
9
- *
10
- * @export
11
- * @interface BudgetDetailResponseData
12
- */
13
- export interface BudgetDetailResponseData {
14
- /**
15
- *
16
- * @type {BudgetDetail}
17
- * @memberof BudgetDetailResponseData
18
- */
19
- budget: BudgetDetail;
20
- /**
21
- * The knowledge of the server
22
- * @type {number}
23
- * @memberof BudgetDetailResponseData
24
- */
25
- server_knowledge: number;
26
- }
27
- /**
28
- * Check if a given object implements the BudgetDetailResponseData interface.
29
- */
30
- export declare function instanceOfBudgetDetailResponseData(value: object): value is BudgetDetailResponseData;
31
- export declare function BudgetDetailResponseDataFromJSON(json: any): BudgetDetailResponseData;
32
- export declare function BudgetDetailResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetDetailResponseData;
33
- export declare function BudgetDetailResponseDataToJSON(json: any): BudgetDetailResponseData;
34
- export declare function BudgetDetailResponseDataToJSONTyped(value?: BudgetDetailResponseData | null, ignoreDiscriminator?: boolean): any;
@@ -1,51 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * YNAB API Endpoints
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
- *
8
- * Generated by: OpenAPI Generator (https://openapi-generator.tech)
9
- */
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.BudgetDetailResponseDataToJSONTyped = exports.BudgetDetailResponseDataToJSON = exports.BudgetDetailResponseDataFromJSONTyped = exports.BudgetDetailResponseDataFromJSON = exports.instanceOfBudgetDetailResponseData = void 0;
12
- const BudgetDetail_1 = require("./BudgetDetail");
13
- /**
14
- * Check if a given object implements the BudgetDetailResponseData interface.
15
- */
16
- function instanceOfBudgetDetailResponseData(value) {
17
- if (!('budget' in value) || value['budget'] === undefined)
18
- return false;
19
- if (!('server_knowledge' in value) || value['server_knowledge'] === undefined)
20
- return false;
21
- return true;
22
- }
23
- exports.instanceOfBudgetDetailResponseData = instanceOfBudgetDetailResponseData;
24
- function BudgetDetailResponseDataFromJSON(json) {
25
- return BudgetDetailResponseDataFromJSONTyped(json, false);
26
- }
27
- exports.BudgetDetailResponseDataFromJSON = BudgetDetailResponseDataFromJSON;
28
- function BudgetDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
29
- if (json == null) {
30
- return json;
31
- }
32
- return {
33
- 'budget': (0, BudgetDetail_1.BudgetDetailFromJSON)(json['budget']),
34
- 'server_knowledge': json['server_knowledge'],
35
- };
36
- }
37
- exports.BudgetDetailResponseDataFromJSONTyped = BudgetDetailResponseDataFromJSONTyped;
38
- function BudgetDetailResponseDataToJSON(json) {
39
- return BudgetDetailResponseDataToJSONTyped(json, false);
40
- }
41
- exports.BudgetDetailResponseDataToJSON = BudgetDetailResponseDataToJSON;
42
- function BudgetDetailResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
43
- if (value == null) {
44
- return value;
45
- }
46
- return {
47
- 'budget': (0, BudgetDetail_1.BudgetDetailToJSON)(value['budget']),
48
- 'server_knowledge': value['server_knowledge'],
49
- };
50
- }
51
- exports.BudgetDetailResponseDataToJSONTyped = BudgetDetailResponseDataToJSONTyped;