ynab 2.2.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/apis/AccountsApi.d.ts +1 -6
- package/dist/apis/AccountsApi.js +1 -6
- package/dist/apis/BudgetsApi.d.ts +1 -6
- package/dist/apis/BudgetsApi.js +1 -6
- package/dist/apis/CategoriesApi.d.ts +1 -6
- package/dist/apis/CategoriesApi.js +1 -6
- package/dist/apis/MonthsApi.d.ts +1 -6
- package/dist/apis/MonthsApi.js +1 -6
- package/dist/apis/PayeeLocationsApi.d.ts +1 -6
- package/dist/apis/PayeeLocationsApi.js +1 -6
- package/dist/apis/PayeesApi.d.ts +17 -7
- package/dist/apis/PayeesApi.js +43 -6
- package/dist/apis/ScheduledTransactionsApi.d.ts +16 -7
- package/dist/apis/ScheduledTransactionsApi.js +40 -6
- package/dist/apis/TransactionsApi.d.ts +36 -16
- package/dist/apis/TransactionsApi.js +65 -17
- package/dist/apis/UserApi.d.ts +1 -6
- package/dist/apis/UserApi.js +1 -6
- package/dist/browser/ynab.js +1 -1
- package/dist/models/Account.d.ts +2 -7
- package/dist/models/Account.js +51 -51
- package/dist/models/AccountResponse.d.ts +2 -7
- package/dist/models/AccountResponse.js +8 -16
- package/dist/models/AccountResponseData.d.ts +2 -7
- package/dist/models/AccountResponseData.js +8 -16
- package/dist/models/AccountType.d.ts +2 -6
- package/dist/models/AccountType.js +13 -7
- package/dist/models/AccountsResponse.d.ts +2 -7
- package/dist/models/AccountsResponse.js +8 -16
- package/dist/models/AccountsResponseData.d.ts +2 -7
- package/dist/models/AccountsResponseData.js +11 -18
- package/dist/models/BudgetDetail.d.ts +6 -11
- package/dist/models/BudgetDetail.js +45 -53
- package/dist/models/BudgetDetailResponse.d.ts +2 -7
- package/dist/models/BudgetDetailResponse.js +8 -16
- package/dist/models/BudgetDetailResponseData.d.ts +2 -7
- package/dist/models/BudgetDetailResponseData.js +11 -18
- package/dist/models/BudgetSettings.d.ts +2 -7
- package/dist/models/BudgetSettings.js +11 -18
- package/dist/models/BudgetSettingsResponse.d.ts +2 -7
- package/dist/models/BudgetSettingsResponse.js +8 -16
- package/dist/models/BudgetSettingsResponseData.d.ts +2 -7
- package/dist/models/BudgetSettingsResponseData.js +8 -16
- package/dist/models/BudgetSummary.d.ts +2 -7
- package/dist/models/BudgetSummary.js +23 -31
- package/dist/models/BudgetSummaryResponse.d.ts +2 -7
- package/dist/models/BudgetSummaryResponse.js +8 -16
- package/dist/models/BudgetSummaryResponseData.d.ts +2 -7
- package/dist/models/BudgetSummaryResponseData.js +10 -19
- package/dist/models/BulkResponse.d.ts +2 -7
- package/dist/models/BulkResponse.js +8 -16
- package/dist/models/BulkResponseData.d.ts +2 -7
- package/dist/models/BulkResponseData.js +8 -16
- package/dist/models/BulkResponseDataBulk.d.ts +2 -7
- package/dist/models/BulkResponseDataBulk.js +11 -18
- package/dist/models/BulkTransactions.d.ts +5 -10
- package/dist/models/BulkTransactions.js +10 -18
- package/dist/models/CategoriesResponse.d.ts +2 -7
- package/dist/models/CategoriesResponse.js +8 -16
- package/dist/models/CategoriesResponseData.d.ts +2 -7
- package/dist/models/CategoriesResponseData.js +11 -18
- package/dist/models/Category.d.ts +9 -8
- package/dist/models/Category.js +61 -61
- package/dist/models/CategoryGroup.d.ts +2 -7
- package/dist/models/CategoryGroup.js +17 -22
- package/dist/models/CategoryGroupWithCategories.d.ts +2 -7
- package/dist/models/CategoryGroupWithCategories.js +20 -24
- package/dist/models/CategoryResponse.d.ts +2 -7
- package/dist/models/CategoryResponse.js +8 -16
- package/dist/models/CategoryResponseData.d.ts +2 -7
- package/dist/models/CategoryResponseData.js +8 -16
- package/dist/models/CurrencyFormat.d.ts +2 -7
- package/dist/models/CurrencyFormat.js +29 -30
- package/dist/models/DateFormat.d.ts +2 -7
- package/dist/models/DateFormat.js +8 -16
- package/dist/models/ErrorDetail.d.ts +2 -7
- package/dist/models/ErrorDetail.js +14 -20
- package/dist/models/ErrorResponse.d.ts +2 -7
- package/dist/models/ErrorResponse.js +8 -16
- package/dist/models/ExistingTransaction.d.ts +89 -0
- package/dist/models/ExistingTransaction.js +63 -0
- package/dist/models/HybridTransaction.d.ts +10 -9
- package/dist/models/HybridTransaction.js +63 -62
- package/dist/models/HybridTransactionsResponse.d.ts +2 -7
- package/dist/models/HybridTransactionsResponse.js +8 -16
- package/dist/models/HybridTransactionsResponseData.d.ts +2 -7
- package/dist/models/HybridTransactionsResponseData.js +10 -19
- package/dist/models/MonthDetail.d.ts +2 -7
- package/dist/models/MonthDetail.js +30 -33
- package/dist/models/MonthDetailResponse.d.ts +2 -7
- package/dist/models/MonthDetailResponse.js +8 -16
- package/dist/models/MonthDetailResponseData.d.ts +2 -7
- package/dist/models/MonthDetailResponseData.js +8 -16
- package/dist/models/MonthSummariesResponse.d.ts +2 -7
- package/dist/models/MonthSummariesResponse.js +8 -16
- package/dist/models/MonthSummariesResponseData.d.ts +2 -7
- package/dist/models/MonthSummariesResponseData.js +11 -18
- package/dist/models/MonthSummary.d.ts +2 -7
- package/dist/models/MonthSummary.js +27 -31
- package/dist/models/NewTransaction.d.ts +95 -0
- package/dist/models/NewTransaction.js +65 -0
- package/dist/models/PatchCategoryWrapper.d.ts +2 -7
- package/dist/models/PatchCategoryWrapper.js +8 -16
- package/dist/models/PatchMonthCategoryWrapper.d.ts +2 -7
- package/dist/models/PatchMonthCategoryWrapper.js +8 -16
- package/dist/models/PatchPayeeWrapper.d.ts +27 -0
- package/dist/models/PatchPayeeWrapper.js +43 -0
- package/dist/models/PatchTransactionsWrapper.d.ts +5 -10
- package/dist/models/PatchTransactionsWrapper.js +10 -18
- package/dist/models/Payee.d.ts +2 -7
- package/dist/models/Payee.js +16 -23
- package/dist/models/PayeeLocation.d.ts +2 -7
- package/dist/models/PayeeLocation.js +20 -24
- package/dist/models/PayeeLocationResponse.d.ts +2 -7
- package/dist/models/PayeeLocationResponse.js +8 -16
- package/dist/models/PayeeLocationResponseData.d.ts +2 -7
- package/dist/models/PayeeLocationResponseData.js +8 -16
- package/dist/models/PayeeLocationsResponse.d.ts +2 -7
- package/dist/models/PayeeLocationsResponse.js +8 -16
- package/dist/models/PayeeLocationsResponseData.d.ts +2 -7
- package/dist/models/PayeeLocationsResponseData.js +8 -16
- package/dist/models/PayeeResponse.d.ts +2 -7
- package/dist/models/PayeeResponse.js +8 -16
- package/dist/models/PayeeResponseData.d.ts +2 -7
- package/dist/models/PayeeResponseData.js +8 -16
- package/dist/models/PayeesResponse.d.ts +2 -7
- package/dist/models/PayeesResponse.js +8 -16
- package/dist/models/PayeesResponseData.d.ts +2 -7
- package/dist/models/PayeesResponseData.js +11 -18
- package/dist/models/PostAccountWrapper.d.ts +2 -7
- package/dist/models/PostAccountWrapper.js +8 -16
- package/dist/models/PostScheduledTransactionWrapper.d.ts +27 -0
- package/dist/models/PostScheduledTransactionWrapper.js +43 -0
- package/dist/models/PostTransactionsWrapper.d.ts +7 -12
- package/dist/models/PostTransactionsWrapper.js +10 -20
- package/dist/models/PutTransactionWrapper.d.ts +5 -10
- package/dist/models/PutTransactionWrapper.js +10 -18
- package/dist/models/SaveAccount.d.ts +2 -7
- package/dist/models/SaveAccount.js +14 -20
- package/dist/models/SaveCategory.d.ts +2 -7
- package/dist/models/SaveCategory.js +11 -21
- package/dist/models/SaveCategoryResponse.d.ts +2 -7
- package/dist/models/SaveCategoryResponse.js +8 -16
- package/dist/models/SaveCategoryResponseData.d.ts +2 -7
- package/dist/models/SaveCategoryResponseData.js +11 -18
- package/dist/models/SaveMonthCategory.d.ts +2 -7
- package/dist/models/SaveMonthCategory.js +8 -16
- package/dist/models/SavePayee.d.ts +26 -0
- package/dist/models/SavePayee.js +40 -0
- package/dist/models/SavePayeeResponse.d.ts +27 -0
- package/dist/models/SavePayeeResponse.js +43 -0
- package/dist/models/SavePayeeResponseData.d.ts +33 -0
- package/dist/models/SavePayeeResponseData.js +47 -0
- package/dist/models/SaveScheduledTransaction.d.ts +76 -0
- package/dist/models/SaveScheduledTransaction.js +62 -0
- package/dist/models/SaveSubTransaction.d.ts +2 -7
- package/dist/models/SaveSubTransaction.js +16 -25
- package/dist/models/SaveTransactionWithIdOrImportId.d.ts +101 -0
- package/dist/models/SaveTransactionWithIdOrImportId.js +67 -0
- package/dist/models/SaveTransactionWithOptionalFields.d.ts +5 -16
- package/dist/models/SaveTransactionWithOptionalFields.js +29 -41
- package/dist/models/SaveTransactionsResponse.d.ts +2 -7
- package/dist/models/SaveTransactionsResponse.js +8 -16
- package/dist/models/SaveTransactionsResponseData.d.ts +2 -7
- package/dist/models/SaveTransactionsResponseData.js +17 -25
- package/dist/models/ScheduledSubTransaction.d.ts +2 -7
- package/dist/models/ScheduledSubTransaction.js +25 -31
- package/dist/models/ScheduledTransactionDetail.d.ts +9 -8
- package/dist/models/ScheduledTransactionDetail.js +49 -48
- package/dist/models/ScheduledTransactionFrequency.d.ts +30 -0
- package/dist/models/ScheduledTransactionFrequency.js +53 -0
- package/dist/models/ScheduledTransactionResponse.d.ts +2 -7
- package/dist/models/ScheduledTransactionResponse.js +8 -16
- package/dist/models/ScheduledTransactionResponseData.d.ts +2 -7
- package/dist/models/ScheduledTransactionResponseData.js +8 -16
- package/dist/models/ScheduledTransactionSummary.d.ts +8 -7
- package/dist/models/ScheduledTransactionSummary.js +38 -39
- package/dist/models/ScheduledTransactionsResponse.d.ts +2 -7
- package/dist/models/ScheduledTransactionsResponse.js +8 -16
- package/dist/models/ScheduledTransactionsResponseData.d.ts +2 -7
- package/dist/models/ScheduledTransactionsResponseData.js +11 -18
- package/dist/models/SubTransaction.d.ts +2 -7
- package/dist/models/SubTransaction.js +31 -37
- package/dist/models/TransactionClearedStatus.d.ts +2 -6
- package/dist/models/TransactionClearedStatus.js +13 -7
- package/dist/models/TransactionDetail.d.ts +11 -10
- package/dist/models/TransactionDetail.js +62 -61
- package/dist/models/TransactionFlagColor.d.ts +2 -6
- package/dist/models/TransactionFlagColor.js +13 -7
- package/dist/models/TransactionResponse.d.ts +2 -7
- package/dist/models/TransactionResponse.js +8 -16
- package/dist/models/TransactionResponseData.d.ts +2 -7
- package/dist/models/TransactionResponseData.js +8 -16
- package/dist/models/TransactionSummary.d.ts +10 -9
- package/dist/models/TransactionSummary.js +51 -52
- package/dist/models/TransactionsImportResponse.d.ts +2 -7
- package/dist/models/TransactionsImportResponse.js +8 -16
- package/dist/models/TransactionsImportResponseData.d.ts +2 -7
- package/dist/models/TransactionsImportResponseData.js +8 -16
- package/dist/models/TransactionsResponse.d.ts +2 -7
- package/dist/models/TransactionsResponse.js +8 -16
- package/dist/models/TransactionsResponseData.d.ts +2 -7
- package/dist/models/TransactionsResponseData.js +11 -18
- package/dist/models/User.d.ts +2 -7
- package/dist/models/User.js +8 -16
- package/dist/models/UserResponse.d.ts +2 -7
- package/dist/models/UserResponse.js +8 -16
- package/dist/models/UserResponseData.d.ts +2 -7
- package/dist/models/UserResponseData.js +8 -16
- package/dist/models/index.d.ts +10 -9
- package/dist/models/index.js +10 -9
- package/dist/runtime.d.ts +1 -6
- package/dist/runtime.js +1 -6
- package/package.json +1 -1
|
@@ -5,15 +5,10 @@
|
|
|
5
5
|
* YNAB API Endpoints
|
|
6
6
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
8
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
14
9
|
*/
|
|
15
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.GetTransactionsByPayeeTypeEnum = exports.GetTransactionsByCategoryTypeEnum = exports.GetTransactionsByAccountTypeEnum = exports.GetTransactionsTypeEnum = exports.TransactionsApi = void 0;
|
|
11
|
+
exports.GetTransactionsByPayeeTypeEnum = exports.GetTransactionsByMonthTypeEnum = exports.GetTransactionsByCategoryTypeEnum = exports.GetTransactionsByAccountTypeEnum = exports.GetTransactionsTypeEnum = exports.TransactionsApi = void 0;
|
|
17
12
|
const runtime = require("../runtime");
|
|
18
13
|
const index_1 = require("../models/index");
|
|
19
14
|
/**
|
|
@@ -21,7 +16,7 @@ const index_1 = require("../models/index");
|
|
|
21
16
|
*/
|
|
22
17
|
class TransactionsApi extends runtime.BaseAPI {
|
|
23
18
|
/**
|
|
24
|
-
* Creates a single transaction or multiple transactions. If you provide a body containing a `transaction` object, a single transaction will be created and if you provide a body containing a `transactions` array, multiple transactions will be created. Scheduled transactions cannot be created on this endpoint.
|
|
19
|
+
* Creates a single transaction or multiple transactions. If you provide a body containing a `transaction` object, a single transaction will be created and if you provide a body containing a `transactions` array, multiple transactions will be created. Scheduled transactions (transactions with a future date) cannot be created on this endpoint.
|
|
25
20
|
* Create a single transaction or multiple transactions
|
|
26
21
|
*/
|
|
27
22
|
async createTransactionRaw(requestParameters, initOverrides) {
|
|
@@ -52,7 +47,7 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
52
47
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SaveTransactionsResponseFromJSON)(jsonValue));
|
|
53
48
|
}
|
|
54
49
|
/**
|
|
55
|
-
* Creates a single transaction or multiple transactions. If you provide a body containing a `transaction` object, a single transaction will be created and if you provide a body containing a `transactions` array, multiple transactions will be created. Scheduled transactions cannot be created on this endpoint.
|
|
50
|
+
* Creates a single transaction or multiple transactions. If you provide a body containing a `transaction` object, a single transaction will be created and if you provide a body containing a `transactions` array, multiple transactions will be created. Scheduled transactions (transactions with a future date) cannot be created on this endpoint.
|
|
56
51
|
* Create a single transaction or multiple transactions
|
|
57
52
|
*/
|
|
58
53
|
async createTransaction(budgetId, data, initOverrides) {
|
|
@@ -134,7 +129,7 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
134
129
|
return await response.value();
|
|
135
130
|
}
|
|
136
131
|
/**
|
|
137
|
-
* Returns budget transactions
|
|
132
|
+
* Returns budget transactions, excluding any pending transactions
|
|
138
133
|
* List transactions
|
|
139
134
|
*/
|
|
140
135
|
async getTransactionsRaw(requestParameters, initOverrides) {
|
|
@@ -169,7 +164,7 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
169
164
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TransactionsResponseFromJSON)(jsonValue));
|
|
170
165
|
}
|
|
171
166
|
/**
|
|
172
|
-
* Returns budget transactions
|
|
167
|
+
* Returns budget transactions, excluding any pending transactions
|
|
173
168
|
* List transactions
|
|
174
169
|
*/
|
|
175
170
|
async getTransactions(budgetId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
@@ -177,7 +172,7 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
177
172
|
return await response.value();
|
|
178
173
|
}
|
|
179
174
|
/**
|
|
180
|
-
* Returns all transactions for a specified account
|
|
175
|
+
* Returns all transactions for a specified account, excluding any pending transactions
|
|
181
176
|
* List account transactions
|
|
182
177
|
*/
|
|
183
178
|
async getTransactionsByAccountRaw(requestParameters, initOverrides) {
|
|
@@ -215,7 +210,7 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
215
210
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TransactionsResponseFromJSON)(jsonValue));
|
|
216
211
|
}
|
|
217
212
|
/**
|
|
218
|
-
* Returns all transactions for a specified account
|
|
213
|
+
* Returns all transactions for a specified account, excluding any pending transactions
|
|
219
214
|
* List account transactions
|
|
220
215
|
*/
|
|
221
216
|
async getTransactionsByAccount(budgetId, accountId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
@@ -224,7 +219,7 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
224
219
|
}
|
|
225
220
|
/**
|
|
226
221
|
* Returns all transactions for a specified category
|
|
227
|
-
* List category transactions
|
|
222
|
+
* List category transactions, excluding any pending transactions
|
|
228
223
|
*/
|
|
229
224
|
async getTransactionsByCategoryRaw(requestParameters, initOverrides) {
|
|
230
225
|
if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
|
|
@@ -262,15 +257,61 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
262
257
|
}
|
|
263
258
|
/**
|
|
264
259
|
* Returns all transactions for a specified category
|
|
265
|
-
* List category transactions
|
|
260
|
+
* List category transactions, excluding any pending transactions
|
|
266
261
|
*/
|
|
267
262
|
async getTransactionsByCategory(budgetId, categoryId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
268
263
|
const response = await this.getTransactionsByCategoryRaw({ budgetId: budgetId, categoryId: categoryId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides);
|
|
269
264
|
return await response.value();
|
|
270
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* Returns all transactions for a specified month
|
|
268
|
+
* List transactions in month, excluding any pending transactions
|
|
269
|
+
*/
|
|
270
|
+
async getTransactionsByMonthRaw(requestParameters, initOverrides) {
|
|
271
|
+
if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
|
|
272
|
+
throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling getTransactionsByMonth.');
|
|
273
|
+
}
|
|
274
|
+
if (requestParameters.month === null || requestParameters.month === undefined) {
|
|
275
|
+
throw new runtime.RequiredError('month', 'Required parameter requestParameters.month was null or undefined when calling getTransactionsByMonth.');
|
|
276
|
+
}
|
|
277
|
+
const queryParameters = {};
|
|
278
|
+
if (requestParameters.sinceDate !== undefined) {
|
|
279
|
+
queryParameters['since_date'] = requestParameters.sinceDate;
|
|
280
|
+
}
|
|
281
|
+
if (requestParameters.type !== undefined) {
|
|
282
|
+
queryParameters['type'] = requestParameters.type;
|
|
283
|
+
}
|
|
284
|
+
if (requestParameters.lastKnowledgeOfServer !== undefined) {
|
|
285
|
+
queryParameters['last_knowledge_of_server'] = requestParameters.lastKnowledgeOfServer;
|
|
286
|
+
}
|
|
287
|
+
const headerParameters = {};
|
|
288
|
+
headerParameters['Accept'] = 'application/json';
|
|
289
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
290
|
+
const token = this.configuration.accessToken;
|
|
291
|
+
const tokenString = await token("bearer", []);
|
|
292
|
+
if (tokenString) {
|
|
293
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
const response = await this.request({
|
|
297
|
+
path: `/budgets/{budget_id}/months/{month}/transactions`.replace(`{${"budget_id"}}`, encodeURIComponent(String(requestParameters.budgetId))).replace(`{${"month"}}`, encodeURIComponent(String(requestParameters.month))),
|
|
298
|
+
method: 'GET',
|
|
299
|
+
headers: headerParameters,
|
|
300
|
+
query: queryParameters,
|
|
301
|
+
}, initOverrides);
|
|
302
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.HybridTransactionsResponseFromJSON)(jsonValue));
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Returns all transactions for a specified month
|
|
306
|
+
* List transactions in month, excluding any pending transactions
|
|
307
|
+
*/
|
|
308
|
+
async getTransactionsByMonth(budgetId, month, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
309
|
+
const response = await this.getTransactionsByMonthRaw({ budgetId: budgetId, month: month, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides);
|
|
310
|
+
return await response.value();
|
|
311
|
+
}
|
|
271
312
|
/**
|
|
272
313
|
* Returns all transactions for a specified payee
|
|
273
|
-
* List payee transactions
|
|
314
|
+
* List payee transactions, excluding any pending transactions
|
|
274
315
|
*/
|
|
275
316
|
async getTransactionsByPayeeRaw(requestParameters, initOverrides) {
|
|
276
317
|
if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
|
|
@@ -308,7 +349,7 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
308
349
|
}
|
|
309
350
|
/**
|
|
310
351
|
* Returns all transactions for a specified payee
|
|
311
|
-
* List payee transactions
|
|
352
|
+
* List payee transactions, excluding any pending transactions
|
|
312
353
|
*/
|
|
313
354
|
async getTransactionsByPayee(budgetId, payeeId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
314
355
|
const response = await this.getTransactionsByPayeeRaw({ budgetId: budgetId, payeeId: payeeId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides);
|
|
@@ -452,6 +493,13 @@ exports.GetTransactionsByCategoryTypeEnum = {
|
|
|
452
493
|
Uncategorized: 'uncategorized',
|
|
453
494
|
Unapproved: 'unapproved'
|
|
454
495
|
};
|
|
496
|
+
/**
|
|
497
|
+
* @export
|
|
498
|
+
*/
|
|
499
|
+
exports.GetTransactionsByMonthTypeEnum = {
|
|
500
|
+
Uncategorized: 'uncategorized',
|
|
501
|
+
Unapproved: 'unapproved'
|
|
502
|
+
};
|
|
455
503
|
/**
|
|
456
504
|
* @export
|
|
457
505
|
*/
|
package/dist/apis/UserApi.d.ts
CHANGED
|
@@ -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 { UserResponse } from '../models/index';
|
package/dist/apis/UserApi.js
CHANGED
|
@@ -5,12 +5,7 @@
|
|
|
5
5
|
* YNAB API Endpoints
|
|
6
6
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
8
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
14
9
|
*/
|
|
15
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
11
|
exports.UserApi = void 0;
|