ynab 2.4.0 → 2.6.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.
- package/README.md +1 -1
- package/dist/apis/AccountsApi.js +24 -1
- package/dist/apis/BudgetsApi.js +24 -1
- package/dist/apis/CategoriesApi.js +24 -1
- package/dist/apis/DeprecatedApi.js +24 -1
- package/dist/apis/MonthsApi.js +24 -1
- package/dist/apis/PayeeLocationsApi.js +24 -1
- package/dist/apis/PayeesApi.js +24 -1
- package/dist/apis/ScheduledTransactionsApi.js +24 -1
- package/dist/apis/TransactionsApi.js +24 -1
- package/dist/apis/UserApi.js +24 -1
- package/dist/browser/ynab.js +1 -1
- package/dist/esm/apis/AccountsApi.d.ts +1 -6
- package/dist/esm/apis/AccountsApi.js +2 -7
- package/dist/esm/apis/BudgetsApi.d.ts +1 -6
- package/dist/esm/apis/BudgetsApi.js +2 -7
- package/dist/esm/apis/CategoriesApi.d.ts +1 -6
- package/dist/esm/apis/CategoriesApi.js +2 -7
- package/dist/esm/apis/DeprecatedApi.js +1 -1
- package/dist/esm/apis/MonthsApi.d.ts +1 -6
- package/dist/esm/apis/MonthsApi.js +2 -7
- package/dist/esm/apis/PayeeLocationsApi.d.ts +1 -6
- package/dist/esm/apis/PayeeLocationsApi.js +2 -7
- package/dist/esm/apis/PayeesApi.d.ts +17 -7
- package/dist/esm/apis/PayeesApi.js +67 -8
- package/dist/esm/apis/ScheduledTransactionsApi.d.ts +16 -7
- package/dist/esm/apis/ScheduledTransactionsApi.js +64 -8
- package/dist/esm/apis/TransactionsApi.d.ts +40 -20
- package/dist/esm/apis/TransactionsApi.js +87 -17
- package/dist/esm/apis/UserApi.d.ts +1 -6
- package/dist/esm/apis/UserApi.js +2 -7
- package/dist/esm/models/Account.d.ts +2 -7
- package/dist/esm/models/Account.js +51 -51
- package/dist/esm/models/AccountResponse.d.ts +2 -7
- package/dist/esm/models/AccountResponse.js +8 -16
- package/dist/esm/models/AccountResponseData.d.ts +2 -7
- package/dist/esm/models/AccountResponseData.js +8 -16
- package/dist/esm/models/AccountType.d.ts +3 -7
- package/dist/esm/models/AccountType.js +11 -6
- package/dist/esm/models/AccountsResponse.d.ts +2 -7
- package/dist/esm/models/AccountsResponse.js +8 -16
- package/dist/esm/models/AccountsResponseData.d.ts +2 -7
- package/dist/esm/models/AccountsResponseData.js +11 -18
- package/dist/esm/models/BudgetDetail.d.ts +6 -11
- package/dist/esm/models/BudgetDetail.js +45 -53
- package/dist/esm/models/BudgetDetailResponse.d.ts +2 -7
- package/dist/esm/models/BudgetDetailResponse.js +8 -16
- package/dist/esm/models/BudgetDetailResponseData.d.ts +2 -7
- package/dist/esm/models/BudgetDetailResponseData.js +11 -18
- package/dist/esm/models/BudgetSettings.d.ts +2 -7
- package/dist/esm/models/BudgetSettings.js +11 -18
- package/dist/esm/models/BudgetSettingsResponse.d.ts +2 -7
- package/dist/esm/models/BudgetSettingsResponse.js +8 -16
- package/dist/esm/models/BudgetSettingsResponseData.d.ts +2 -7
- package/dist/esm/models/BudgetSettingsResponseData.js +8 -16
- package/dist/esm/models/BudgetSummary.d.ts +2 -7
- package/dist/esm/models/BudgetSummary.js +23 -31
- package/dist/esm/models/BudgetSummaryResponse.d.ts +2 -7
- package/dist/esm/models/BudgetSummaryResponse.js +8 -16
- package/dist/esm/models/BudgetSummaryResponseData.d.ts +2 -7
- package/dist/esm/models/BudgetSummaryResponseData.js +10 -19
- package/dist/esm/models/BulkResponse.d.ts +2 -7
- package/dist/esm/models/BulkResponse.js +8 -16
- package/dist/esm/models/BulkResponseData.d.ts +2 -7
- package/dist/esm/models/BulkResponseData.js +8 -16
- package/dist/esm/models/BulkResponseDataBulk.d.ts +2 -7
- package/dist/esm/models/BulkResponseDataBulk.js +11 -18
- package/dist/esm/models/BulkTransactions.d.ts +5 -10
- package/dist/esm/models/BulkTransactions.js +10 -18
- package/dist/esm/models/CategoriesResponse.d.ts +2 -7
- package/dist/esm/models/CategoriesResponse.js +8 -16
- package/dist/esm/models/CategoriesResponseData.d.ts +2 -7
- package/dist/esm/models/CategoriesResponseData.js +11 -18
- package/dist/esm/models/Category.d.ts +10 -9
- package/dist/esm/models/Category.js +61 -61
- package/dist/esm/models/CategoryGroup.d.ts +2 -7
- package/dist/esm/models/CategoryGroup.js +17 -22
- package/dist/esm/models/CategoryGroupWithCategories.d.ts +2 -7
- package/dist/esm/models/CategoryGroupWithCategories.js +20 -24
- package/dist/esm/models/CategoryResponse.d.ts +2 -7
- package/dist/esm/models/CategoryResponse.js +8 -16
- package/dist/esm/models/CategoryResponseData.d.ts +2 -7
- package/dist/esm/models/CategoryResponseData.js +8 -16
- package/dist/esm/models/CurrencyFormat.d.ts +2 -7
- package/dist/esm/models/CurrencyFormat.js +29 -30
- package/dist/esm/models/DateFormat.d.ts +2 -7
- package/dist/esm/models/DateFormat.js +8 -16
- package/dist/esm/models/ErrorDetail.d.ts +2 -7
- package/dist/esm/models/ErrorDetail.js +14 -20
- package/dist/esm/models/ErrorResponse.d.ts +2 -7
- package/dist/esm/models/ErrorResponse.js +8 -16
- package/dist/esm/models/ExistingTransaction.d.ts +89 -0
- package/dist/esm/models/ExistingTransaction.js +56 -0
- package/dist/esm/models/HybridTransaction.d.ts +12 -11
- package/dist/esm/models/HybridTransaction.js +63 -62
- package/dist/esm/models/HybridTransactionAllOf.d.ts +1 -1
- package/dist/esm/models/HybridTransactionsResponse.d.ts +2 -7
- package/dist/esm/models/HybridTransactionsResponse.js +8 -16
- package/dist/esm/models/HybridTransactionsResponseData.d.ts +2 -7
- package/dist/esm/models/HybridTransactionsResponseData.js +10 -19
- package/dist/esm/models/MonthDetail.d.ts +2 -7
- package/dist/esm/models/MonthDetail.js +30 -33
- package/dist/esm/models/MonthDetailResponse.d.ts +2 -7
- package/dist/esm/models/MonthDetailResponse.js +8 -16
- package/dist/esm/models/MonthDetailResponseData.d.ts +2 -7
- package/dist/esm/models/MonthDetailResponseData.js +8 -16
- package/dist/esm/models/MonthSummariesResponse.d.ts +2 -7
- package/dist/esm/models/MonthSummariesResponse.js +8 -16
- package/dist/esm/models/MonthSummariesResponseData.d.ts +2 -7
- package/dist/esm/models/MonthSummariesResponseData.js +11 -18
- package/dist/esm/models/MonthSummary.d.ts +2 -7
- package/dist/esm/models/MonthSummary.js +27 -31
- package/dist/esm/models/NewTransaction.d.ts +95 -0
- package/dist/esm/models/NewTransaction.js +58 -0
- package/dist/esm/models/PatchCategoryWrapper.d.ts +2 -7
- package/dist/esm/models/PatchCategoryWrapper.js +8 -16
- package/dist/esm/models/PatchMonthCategoryWrapper.d.ts +2 -7
- package/dist/esm/models/PatchMonthCategoryWrapper.js +8 -16
- package/dist/esm/models/PatchPayeeWrapper.d.ts +27 -0
- package/dist/esm/models/PatchPayeeWrapper.js +36 -0
- package/dist/esm/models/PatchTransactionsWrapper.d.ts +5 -10
- package/dist/esm/models/PatchTransactionsWrapper.js +10 -18
- package/dist/esm/models/Payee.d.ts +2 -7
- package/dist/esm/models/Payee.js +16 -23
- package/dist/esm/models/PayeeLocation.d.ts +2 -7
- package/dist/esm/models/PayeeLocation.js +20 -24
- package/dist/esm/models/PayeeLocationResponse.d.ts +2 -7
- package/dist/esm/models/PayeeLocationResponse.js +8 -16
- package/dist/esm/models/PayeeLocationResponseData.d.ts +2 -7
- package/dist/esm/models/PayeeLocationResponseData.js +8 -16
- package/dist/esm/models/PayeeLocationsResponse.d.ts +2 -7
- package/dist/esm/models/PayeeLocationsResponse.js +8 -16
- package/dist/esm/models/PayeeLocationsResponseData.d.ts +2 -7
- package/dist/esm/models/PayeeLocationsResponseData.js +8 -16
- package/dist/esm/models/PayeeResponse.d.ts +2 -7
- package/dist/esm/models/PayeeResponse.js +8 -16
- package/dist/esm/models/PayeeResponseData.d.ts +2 -7
- package/dist/esm/models/PayeeResponseData.js +8 -16
- package/dist/esm/models/PayeesResponse.d.ts +2 -7
- package/dist/esm/models/PayeesResponse.js +8 -16
- package/dist/esm/models/PayeesResponseData.d.ts +2 -7
- package/dist/esm/models/PayeesResponseData.js +11 -18
- package/dist/esm/models/PostAccountWrapper.d.ts +2 -7
- package/dist/esm/models/PostAccountWrapper.js +8 -16
- package/dist/esm/models/PostScheduledTransactionWrapper.d.ts +27 -0
- package/dist/esm/models/PostScheduledTransactionWrapper.js +36 -0
- package/dist/esm/models/PostTransactionsWrapper.d.ts +7 -12
- package/dist/esm/models/PostTransactionsWrapper.js +10 -20
- package/dist/esm/models/PutTransactionWrapper.d.ts +5 -10
- package/dist/esm/models/PutTransactionWrapper.js +10 -18
- package/dist/esm/models/SaveAccount.d.ts +2 -7
- package/dist/esm/models/SaveAccount.js +14 -20
- package/dist/esm/models/SaveCategory.d.ts +2 -7
- package/dist/esm/models/SaveCategory.js +11 -21
- package/dist/esm/models/SaveCategoryResponse.d.ts +2 -7
- package/dist/esm/models/SaveCategoryResponse.js +8 -16
- package/dist/esm/models/SaveCategoryResponseData.d.ts +2 -7
- package/dist/esm/models/SaveCategoryResponseData.js +11 -18
- package/dist/esm/models/SaveMonthCategory.d.ts +2 -7
- package/dist/esm/models/SaveMonthCategory.js +8 -16
- package/dist/esm/models/SavePayee.d.ts +26 -0
- package/dist/esm/models/SavePayee.js +33 -0
- package/dist/esm/models/SavePayeeResponse.d.ts +27 -0
- package/dist/esm/models/SavePayeeResponse.js +36 -0
- package/dist/esm/models/SavePayeeResponseData.d.ts +33 -0
- package/dist/esm/models/SavePayeeResponseData.js +40 -0
- package/dist/esm/models/SaveScheduledTransaction.d.ts +76 -0
- package/dist/esm/models/SaveScheduledTransaction.js +55 -0
- package/dist/esm/models/SaveSubTransaction.d.ts +2 -7
- package/dist/esm/models/SaveSubTransaction.js +16 -25
- package/dist/esm/models/SaveTransactionWithIdOrImportId.d.ts +101 -0
- package/dist/esm/models/SaveTransactionWithIdOrImportId.js +60 -0
- package/dist/esm/models/SaveTransactionWithOptionalFields.d.ts +5 -16
- package/dist/esm/models/SaveTransactionWithOptionalFields.js +29 -41
- package/dist/esm/models/SaveTransactionsResponse.d.ts +2 -7
- package/dist/esm/models/SaveTransactionsResponse.js +8 -16
- package/dist/esm/models/SaveTransactionsResponseData.d.ts +2 -7
- package/dist/esm/models/SaveTransactionsResponseData.js +17 -25
- package/dist/esm/models/ScheduledSubTransaction.d.ts +2 -7
- package/dist/esm/models/ScheduledSubTransaction.js +25 -31
- package/dist/esm/models/ScheduledTransactionDetail.d.ts +10 -9
- package/dist/esm/models/ScheduledTransactionDetail.js +49 -48
- package/dist/esm/models/ScheduledTransactionFrequency.d.ts +30 -0
- package/dist/esm/models/ScheduledTransactionFrequency.js +46 -0
- package/dist/esm/models/ScheduledTransactionResponse.d.ts +2 -7
- package/dist/esm/models/ScheduledTransactionResponse.js +8 -16
- package/dist/esm/models/ScheduledTransactionResponseData.d.ts +2 -7
- package/dist/esm/models/ScheduledTransactionResponseData.js +8 -16
- package/dist/esm/models/ScheduledTransactionSummary.d.ts +9 -8
- package/dist/esm/models/ScheduledTransactionSummary.js +38 -39
- package/dist/esm/models/ScheduledTransactionsResponse.d.ts +2 -7
- package/dist/esm/models/ScheduledTransactionsResponse.js +8 -16
- package/dist/esm/models/ScheduledTransactionsResponseData.d.ts +2 -7
- package/dist/esm/models/ScheduledTransactionsResponseData.js +11 -18
- package/dist/esm/models/SubTransaction.d.ts +2 -7
- package/dist/esm/models/SubTransaction.js +31 -37
- package/dist/esm/models/TransactionClearedStatus.d.ts +3 -7
- package/dist/esm/models/TransactionClearedStatus.js +11 -6
- package/dist/esm/models/TransactionDetail.d.ts +12 -11
- package/dist/esm/models/TransactionDetail.js +62 -61
- package/dist/esm/models/TransactionFlagColor.d.ts +3 -7
- package/dist/esm/models/TransactionFlagColor.js +11 -6
- package/dist/esm/models/TransactionResponse.d.ts +2 -7
- package/dist/esm/models/TransactionResponse.js +8 -16
- package/dist/esm/models/TransactionResponseData.d.ts +2 -7
- package/dist/esm/models/TransactionResponseData.js +8 -16
- package/dist/esm/models/TransactionSummary.d.ts +11 -10
- package/dist/esm/models/TransactionSummary.js +51 -52
- package/dist/esm/models/TransactionsImportResponse.d.ts +2 -7
- package/dist/esm/models/TransactionsImportResponse.js +8 -16
- package/dist/esm/models/TransactionsImportResponseData.d.ts +2 -7
- package/dist/esm/models/TransactionsImportResponseData.js +8 -16
- package/dist/esm/models/TransactionsResponse.d.ts +2 -7
- package/dist/esm/models/TransactionsResponse.js +8 -16
- package/dist/esm/models/TransactionsResponseData.d.ts +2 -7
- package/dist/esm/models/TransactionsResponseData.js +11 -18
- package/dist/esm/models/User.d.ts +2 -7
- package/dist/esm/models/User.js +8 -16
- package/dist/esm/models/UserResponse.d.ts +2 -7
- package/dist/esm/models/UserResponse.js +8 -16
- package/dist/esm/models/UserResponseData.d.ts +2 -7
- package/dist/esm/models/UserResponseData.js +8 -16
- package/dist/esm/models/index.d.ts +10 -9
- package/dist/esm/models/index.js +10 -9
- package/dist/esm/runtime.d.ts +12 -17
- package/dist/esm/runtime.js +43 -39
- package/dist/index.js +17 -2
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +58 -48
- package/package.json +1 -1
|
@@ -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
|
-
*
|
|
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';
|
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
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
6
|
*
|
|
7
|
-
*
|
|
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.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
var __extends = (this && this.__extends) || (function () {
|
|
15
10
|
var extendStatics = function (d, b) {
|
|
@@ -41,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
41
36
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
37
|
function step(op) {
|
|
43
38
|
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
-
while (_) try {
|
|
39
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
45
40
|
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
41
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
42
|
switch (op[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
|
-
*
|
|
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';
|
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
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
6
|
*
|
|
7
|
-
*
|
|
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.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
var __extends = (this && this.__extends) || (function () {
|
|
15
10
|
var extendStatics = function (d, b) {
|
|
@@ -41,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
41
36
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
37
|
function step(op) {
|
|
43
38
|
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
-
while (_) try {
|
|
39
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
45
40
|
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
41
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
42
|
switch (op[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
|
-
*
|
|
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';
|
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
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
6
|
*
|
|
7
|
-
*
|
|
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.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
var __extends = (this && this.__extends) || (function () {
|
|
15
10
|
var extendStatics = function (d, b) {
|
|
@@ -41,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
41
36
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
37
|
function step(op) {
|
|
43
38
|
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
-
while (_) try {
|
|
39
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
45
40
|
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
41
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
42
|
switch (op[0]) {
|
|
@@ -41,7 +41,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
41
41
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
42
|
function step(op) {
|
|
43
43
|
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
-
while (_) try {
|
|
44
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
45
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
46
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
47
|
switch (op[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
|
-
*
|
|
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';
|
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
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
6
|
*
|
|
7
|
-
*
|
|
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.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
var __extends = (this && this.__extends) || (function () {
|
|
15
10
|
var extendStatics = function (d, b) {
|
|
@@ -41,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
41
36
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
37
|
function step(op) {
|
|
43
38
|
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
-
while (_) try {
|
|
39
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
45
40
|
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
41
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
42
|
switch (op[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
|
-
*
|
|
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';
|
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
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
6
|
*
|
|
7
|
-
*
|
|
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.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
var __extends = (this && this.__extends) || (function () {
|
|
15
10
|
var extendStatics = function (d, b) {
|
|
@@ -41,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
41
36
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
37
|
function step(op) {
|
|
43
38
|
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
-
while (_) try {
|
|
39
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
45
40
|
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
41
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
42
|
switch (op[0]) {
|
|
@@ -2,15 +2,10 @@
|
|
|
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
|
-
*
|
|
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 { PayeeResponse, PayeesResponse } from '../models/index';
|
|
8
|
+
import type { PatchPayeeWrapper, PayeeResponse, PayeesResponse, SavePayeeResponse } from '../models/index';
|
|
14
9
|
export interface GetPayeeByIdRequest {
|
|
15
10
|
budgetId: string;
|
|
16
11
|
payeeId: string;
|
|
@@ -19,6 +14,11 @@ export interface GetPayeesRequest {
|
|
|
19
14
|
budgetId: string;
|
|
20
15
|
lastKnowledgeOfServer?: number;
|
|
21
16
|
}
|
|
17
|
+
export interface UpdatePayeeRequest {
|
|
18
|
+
budgetId: string;
|
|
19
|
+
payeeId: string;
|
|
20
|
+
data: PatchPayeeWrapper;
|
|
21
|
+
}
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
@@ -43,4 +43,14 @@ export declare class PayeesApi extends runtime.BaseAPI {
|
|
|
43
43
|
* List payees
|
|
44
44
|
*/
|
|
45
45
|
getPayees(budgetId: string, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PayeesResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Update a payee
|
|
48
|
+
* Update a payee
|
|
49
|
+
*/
|
|
50
|
+
updatePayeeRaw(requestParameters: UpdatePayeeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SavePayeeResponse>>;
|
|
51
|
+
/**
|
|
52
|
+
* Update a payee
|
|
53
|
+
* Update a payee
|
|
54
|
+
*/
|
|
55
|
+
updatePayee(budgetId: string, payeeId: string, data: PatchPayeeWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SavePayeeResponse>;
|
|
46
56
|
}
|
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
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
6
|
*
|
|
7
|
-
*
|
|
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.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
var __extends = (this && this.__extends) || (function () {
|
|
15
10
|
var extendStatics = function (d, b) {
|
|
@@ -41,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
41
36
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
37
|
function step(op) {
|
|
43
38
|
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
-
while (_) try {
|
|
39
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
45
40
|
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
41
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
42
|
switch (op[0]) {
|
|
@@ -63,7 +58,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
63
58
|
}
|
|
64
59
|
};
|
|
65
60
|
import * as runtime from '../runtime';
|
|
66
|
-
import { PayeeResponseFromJSON, PayeesResponseFromJSON, } from '../models/index';
|
|
61
|
+
import { PatchPayeeWrapperToJSON, PayeeResponseFromJSON, PayeesResponseFromJSON, SavePayeeResponseFromJSON, } from '../models/index';
|
|
67
62
|
/**
|
|
68
63
|
*
|
|
69
64
|
*/
|
|
@@ -190,6 +185,70 @@ var PayeesApi = /** @class */ (function (_super) {
|
|
|
190
185
|
});
|
|
191
186
|
});
|
|
192
187
|
};
|
|
188
|
+
/**
|
|
189
|
+
* Update a payee
|
|
190
|
+
* Update a payee
|
|
191
|
+
*/
|
|
192
|
+
PayeesApi.prototype.updatePayeeRaw = function (requestParameters, initOverrides) {
|
|
193
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
194
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
195
|
+
return __generator(this, function (_a) {
|
|
196
|
+
switch (_a.label) {
|
|
197
|
+
case 0:
|
|
198
|
+
if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
|
|
199
|
+
throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling updatePayee.');
|
|
200
|
+
}
|
|
201
|
+
if (requestParameters.payeeId === null || requestParameters.payeeId === undefined) {
|
|
202
|
+
throw new runtime.RequiredError('payeeId', 'Required parameter requestParameters.payeeId was null or undefined when calling updatePayee.');
|
|
203
|
+
}
|
|
204
|
+
if (requestParameters.data === null || requestParameters.data === undefined) {
|
|
205
|
+
throw new runtime.RequiredError('data', 'Required parameter requestParameters.data was null or undefined when calling updatePayee.');
|
|
206
|
+
}
|
|
207
|
+
queryParameters = {};
|
|
208
|
+
headerParameters = {};
|
|
209
|
+
headerParameters['Accept'] = 'application/json';
|
|
210
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
211
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
212
|
+
token = this.configuration.accessToken;
|
|
213
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
214
|
+
case 1:
|
|
215
|
+
tokenString = _a.sent();
|
|
216
|
+
if (tokenString) {
|
|
217
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
218
|
+
}
|
|
219
|
+
_a.label = 2;
|
|
220
|
+
case 2: return [4 /*yield*/, this.request({
|
|
221
|
+
path: "/budgets/{budget_id}/payees/{payee_id}".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))).replace("{".concat("payee_id", "}"), encodeURIComponent(String(requestParameters.payeeId))),
|
|
222
|
+
method: 'PATCH',
|
|
223
|
+
headers: headerParameters,
|
|
224
|
+
query: queryParameters,
|
|
225
|
+
body: PatchPayeeWrapperToJSON(requestParameters.data),
|
|
226
|
+
}, initOverrides)];
|
|
227
|
+
case 3:
|
|
228
|
+
response = _a.sent();
|
|
229
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return SavePayeeResponseFromJSON(jsonValue); })];
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
});
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* Update a payee
|
|
236
|
+
* Update a payee
|
|
237
|
+
*/
|
|
238
|
+
PayeesApi.prototype.updatePayee = function (budgetId, payeeId, data, initOverrides) {
|
|
239
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
240
|
+
var response;
|
|
241
|
+
return __generator(this, function (_a) {
|
|
242
|
+
switch (_a.label) {
|
|
243
|
+
case 0: return [4 /*yield*/, this.updatePayeeRaw({ budgetId: budgetId, payeeId: payeeId, data: data }, initOverrides)];
|
|
244
|
+
case 1:
|
|
245
|
+
response = _a.sent();
|
|
246
|
+
return [4 /*yield*/, response.value()];
|
|
247
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
};
|
|
193
252
|
return PayeesApi;
|
|
194
253
|
}(runtime.BaseAPI));
|
|
195
254
|
export { PayeesApi };
|
|
@@ -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
|
-
*
|
|
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
|
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
* YNAB API Endpoints
|
|
5
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
6
|
*
|
|
7
|
-
*
|
|
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.
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
13
8
|
*/
|
|
14
9
|
var __extends = (this && this.__extends) || (function () {
|
|
15
10
|
var extendStatics = function (d, b) {
|
|
@@ -41,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
41
36
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
37
|
function step(op) {
|
|
43
38
|
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
-
while (_) try {
|
|
39
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
45
40
|
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
41
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
42
|
switch (op[0]) {
|
|
@@ -63,7 +58,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
63
58
|
}
|
|
64
59
|
};
|
|
65
60
|
import * as runtime from '../runtime';
|
|
66
|
-
import { ScheduledTransactionResponseFromJSON, ScheduledTransactionsResponseFromJSON, } from '../models/index';
|
|
61
|
+
import { PostScheduledTransactionWrapperToJSON, ScheduledTransactionResponseFromJSON, ScheduledTransactionsResponseFromJSON, } from '../models/index';
|
|
67
62
|
/**
|
|
68
63
|
*
|
|
69
64
|
*/
|
|
@@ -72,6 +67,67 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
|
72
67
|
function ScheduledTransactionsApi() {
|
|
73
68
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
74
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Creates a single scheduled transaction.
|
|
72
|
+
* Create a single scheduled transaction
|
|
73
|
+
*/
|
|
74
|
+
ScheduledTransactionsApi.prototype.createScheduledTransactionRaw = function (requestParameters, initOverrides) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
76
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
77
|
+
return __generator(this, function (_a) {
|
|
78
|
+
switch (_a.label) {
|
|
79
|
+
case 0:
|
|
80
|
+
if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
|
|
81
|
+
throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling createScheduledTransaction.');
|
|
82
|
+
}
|
|
83
|
+
if (requestParameters.data === null || requestParameters.data === undefined) {
|
|
84
|
+
throw new runtime.RequiredError('data', 'Required parameter requestParameters.data was null or undefined when calling createScheduledTransaction.');
|
|
85
|
+
}
|
|
86
|
+
queryParameters = {};
|
|
87
|
+
headerParameters = {};
|
|
88
|
+
headerParameters['Accept'] = 'application/json';
|
|
89
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
90
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
91
|
+
token = this.configuration.accessToken;
|
|
92
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
93
|
+
case 1:
|
|
94
|
+
tokenString = _a.sent();
|
|
95
|
+
if (tokenString) {
|
|
96
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
97
|
+
}
|
|
98
|
+
_a.label = 2;
|
|
99
|
+
case 2: return [4 /*yield*/, this.request({
|
|
100
|
+
path: "/budgets/{budget_id}/scheduled_transactions".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))),
|
|
101
|
+
method: 'POST',
|
|
102
|
+
headers: headerParameters,
|
|
103
|
+
query: queryParameters,
|
|
104
|
+
body: PostScheduledTransactionWrapperToJSON(requestParameters.data),
|
|
105
|
+
}, initOverrides)];
|
|
106
|
+
case 3:
|
|
107
|
+
response = _a.sent();
|
|
108
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return ScheduledTransactionResponseFromJSON(jsonValue); })];
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Creates a single scheduled transaction.
|
|
115
|
+
* Create a single scheduled transaction
|
|
116
|
+
*/
|
|
117
|
+
ScheduledTransactionsApi.prototype.createScheduledTransaction = function (budgetId, data, initOverrides) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
119
|
+
var response;
|
|
120
|
+
return __generator(this, function (_a) {
|
|
121
|
+
switch (_a.label) {
|
|
122
|
+
case 0: return [4 /*yield*/, this.createScheduledTransactionRaw({ budgetId: budgetId, data: data }, initOverrides)];
|
|
123
|
+
case 1:
|
|
124
|
+
response = _a.sent();
|
|
125
|
+
return [4 /*yield*/, response.value()];
|
|
126
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
};
|
|
75
131
|
/**
|
|
76
132
|
* Returns a single scheduled transaction
|
|
77
133
|
* 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
|
-
*
|
|
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>;
|
|
@@ -97,43 +99,53 @@ export declare class TransactionsApi extends runtime.BaseAPI {
|
|
|
97
99
|
*/
|
|
98
100
|
getTransactionById(budgetId: string, transactionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionResponse>;
|
|
99
101
|
/**
|
|
100
|
-
* Returns budget transactions
|
|
102
|
+
* Returns budget transactions, excluding any pending transactions
|
|
101
103
|
* List transactions
|
|
102
104
|
*/
|
|
103
105
|
getTransactionsRaw(requestParameters: GetTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionsResponse>>;
|
|
104
106
|
/**
|
|
105
|
-
* Returns budget transactions
|
|
107
|
+
* Returns budget transactions, excluding any pending transactions
|
|
106
108
|
* List transactions
|
|
107
109
|
*/
|
|
108
110
|
getTransactions(budgetId: string, sinceDate?: string, type?: GetTransactionsTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionsResponse>;
|
|
109
111
|
/**
|
|
110
|
-
* Returns all transactions for a specified account
|
|
112
|
+
* Returns all transactions for a specified account, excluding any pending transactions
|
|
111
113
|
* List account transactions
|
|
112
114
|
*/
|
|
113
115
|
getTransactionsByAccountRaw(requestParameters: GetTransactionsByAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionsResponse>>;
|
|
114
116
|
/**
|
|
115
|
-
* Returns all transactions for a specified account
|
|
117
|
+
* Returns all transactions for a specified account, excluding any pending transactions
|
|
116
118
|
* List account transactions
|
|
117
119
|
*/
|
|
118
120
|
getTransactionsByAccount(budgetId: string, accountId: string, sinceDate?: string, type?: GetTransactionsByAccountTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionsResponse>;
|
|
119
121
|
/**
|
|
120
122
|
* Returns all transactions for a specified category
|
|
121
|
-
* List category transactions
|
|
123
|
+
* List category transactions, excluding any pending transactions
|
|
122
124
|
*/
|
|
123
125
|
getTransactionsByCategoryRaw(requestParameters: GetTransactionsByCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HybridTransactionsResponse>>;
|
|
124
126
|
/**
|
|
125
127
|
* Returns all transactions for a specified category
|
|
126
|
-
* List category transactions
|
|
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
|
-
* List payee transactions
|
|
143
|
+
* List payee transactions, excluding any pending transactions
|
|
132
144
|
*/
|
|
133
145
|
getTransactionsByPayeeRaw(requestParameters: GetTransactionsByPayeeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HybridTransactionsResponse>>;
|
|
134
146
|
/**
|
|
135
147
|
* Returns all transactions for a specified payee
|
|
136
|
-
* List payee transactions
|
|
148
|
+
* List payee transactions, excluding any pending transactions
|
|
137
149
|
*/
|
|
138
150
|
getTransactionsByPayee(budgetId: string, payeeId: string, sinceDate?: string, type?: GetTransactionsByPayeeTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HybridTransactionsResponse>;
|
|
139
151
|
/**
|
|
@@ -174,7 +186,7 @@ export declare const GetTransactionsTypeEnum: {
|
|
|
174
186
|
readonly Uncategorized: "uncategorized";
|
|
175
187
|
readonly Unapproved: "unapproved";
|
|
176
188
|
};
|
|
177
|
-
export
|
|
189
|
+
export type GetTransactionsTypeEnum = typeof GetTransactionsTypeEnum[keyof typeof GetTransactionsTypeEnum];
|
|
178
190
|
/**
|
|
179
191
|
* @export
|
|
180
192
|
*/
|
|
@@ -182,7 +194,7 @@ export declare const GetTransactionsByAccountTypeEnum: {
|
|
|
182
194
|
readonly Uncategorized: "uncategorized";
|
|
183
195
|
readonly Unapproved: "unapproved";
|
|
184
196
|
};
|
|
185
|
-
export
|
|
197
|
+
export type GetTransactionsByAccountTypeEnum = typeof GetTransactionsByAccountTypeEnum[keyof typeof GetTransactionsByAccountTypeEnum];
|
|
186
198
|
/**
|
|
187
199
|
* @export
|
|
188
200
|
*/
|
|
@@ -190,7 +202,15 @@ export declare const GetTransactionsByCategoryTypeEnum: {
|
|
|
190
202
|
readonly Uncategorized: "uncategorized";
|
|
191
203
|
readonly Unapproved: "unapproved";
|
|
192
204
|
};
|
|
193
|
-
export
|
|
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
|
*/
|
|
@@ -198,4 +218,4 @@ export declare const GetTransactionsByPayeeTypeEnum: {
|
|
|
198
218
|
readonly Uncategorized: "uncategorized";
|
|
199
219
|
readonly Unapproved: "unapproved";
|
|
200
220
|
};
|
|
201
|
-
export
|
|
221
|
+
export type GetTransactionsByPayeeTypeEnum = typeof GetTransactionsByPayeeTypeEnum[keyof typeof GetTransactionsByPayeeTypeEnum];
|