Skip to content

Commit

Permalink
Generate from spec version 1.70.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymholt committed Jun 25, 2024
1 parent f20ba7c commit 4c3999e
Show file tree
Hide file tree
Showing 316 changed files with 5,102 additions and 3,686 deletions.
2 changes: 1 addition & 1 deletion dist/apis/AccountsApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* YNAB API Endpoints
* 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
*
* The version of the OpenAPI document: 1.0.0
* The version of the OpenAPI document: 1.70.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion dist/apis/AccountsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* YNAB API Endpoints
* 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
*
* The version of the OpenAPI document: 1.0.0
* The version of the OpenAPI document: 1.70.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion dist/apis/BudgetsApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* YNAB API Endpoints
* 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
*
* The version of the OpenAPI document: 1.0.0
* The version of the OpenAPI document: 1.70.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion dist/apis/BudgetsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* YNAB API Endpoints
* 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
*
* The version of the OpenAPI document: 1.0.0
* The version of the OpenAPI document: 1.70.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion dist/apis/CategoriesApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* YNAB API Endpoints
* 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
*
* The version of the OpenAPI document: 1.0.0
* The version of the OpenAPI document: 1.70.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion dist/apis/CategoriesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* YNAB API Endpoints
* 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
*
* The version of the OpenAPI document: 1.0.0
* The version of the OpenAPI document: 1.70.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion dist/apis/MonthsApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* YNAB API Endpoints
* 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
*
* The version of the OpenAPI document: 1.0.0
* The version of the OpenAPI document: 1.70.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion dist/apis/MonthsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* YNAB API Endpoints
* 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
*
* The version of the OpenAPI document: 1.0.0
* The version of the OpenAPI document: 1.70.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion dist/apis/PayeeLocationsApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* YNAB API Endpoints
* 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
*
* The version of the OpenAPI document: 1.0.0
* The version of the OpenAPI document: 1.70.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion dist/apis/PayeeLocationsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* YNAB API Endpoints
* 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
*
* The version of the OpenAPI document: 1.0.0
* The version of the OpenAPI document: 1.70.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
19 changes: 17 additions & 2 deletions dist/apis/PayeesApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
* YNAB API Endpoints
* 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
*
* The version of the OpenAPI document: 1.0.0
* The version of the OpenAPI document: 1.70.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import type { PayeeResponse, PayeesResponse } from '../models/index';
import type { PatchPayeeWrapper, PayeeResponse, PayeesResponse, SavePayeeResponse } from '../models/index';
export interface GetPayeeByIdRequest {
budgetId: string;
payeeId: string;
Expand All @@ -19,6 +19,11 @@ export interface GetPayeesRequest {
budgetId: string;
lastKnowledgeOfServer?: number;
}
export interface UpdatePayeeRequest {
budgetId: string;
payeeId: string;
data: PatchPayeeWrapper;
}
/**
*
*/
Expand All @@ -43,4 +48,14 @@ export declare class PayeesApi extends runtime.BaseAPI {
* List payees
*/
getPayees(budgetId: string, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PayeesResponse>;
/**
* Update a payee
* Update a payee
*/
updatePayeeRaw(requestParameters: UpdatePayeeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SavePayeeResponse>>;
/**
* Update a payee
* Update a payee
*/
updatePayee(budgetId: string, payeeId: string, data: PatchPayeeWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SavePayeeResponse>;
}
44 changes: 43 additions & 1 deletion dist/apis/PayeesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* YNAB API Endpoints
* 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
*
* The version of the OpenAPI document: 1.0.0
* The version of the OpenAPI document: 1.70.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -94,5 +94,47 @@ class PayeesApi extends runtime.BaseAPI {
const response = await this.getPayeesRaw({ budgetId: budgetId, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides);
return await response.value();
}
/**
* Update a payee
* Update a payee
*/
async updatePayeeRaw(requestParameters, initOverrides) {
if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling updatePayee.');
}
if (requestParameters.payeeId === null || requestParameters.payeeId === undefined) {
throw new runtime.RequiredError('payeeId', 'Required parameter requestParameters.payeeId was null or undefined when calling updatePayee.');
}
if (requestParameters.data === null || requestParameters.data === undefined) {
throw new runtime.RequiredError('data', 'Required parameter requestParameters.data was null or undefined when calling updatePayee.');
}
const queryParameters = {};
const headerParameters = {};
headerParameters['Accept'] = 'application/json';
headerParameters['Content-Type'] = 'application/json';
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("bearer", []);
if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const response = await this.request({
path: `/budgets/{budget_id}/payees/{payee_id}`.replace(`{${"budget_id"}}`, encodeURIComponent(String(requestParameters.budgetId))).replace(`{${"payee_id"}}`, encodeURIComponent(String(requestParameters.payeeId))),
method: 'PATCH',
headers: headerParameters,
query: queryParameters,
body: (0, index_1.PatchPayeeWrapperToJSON)(requestParameters.data),
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SavePayeeResponseFromJSON)(jsonValue));
}
/**
* Update a payee
* Update a payee
*/
async updatePayee(budgetId, payeeId, data, initOverrides) {
const response = await this.updatePayeeRaw({ budgetId: budgetId, payeeId: payeeId, data: data }, initOverrides);
return await response.value();
}
}
exports.PayeesApi = PayeesApi;
2 changes: 1 addition & 1 deletion dist/apis/ScheduledTransactionsApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* YNAB API Endpoints
* 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
*
* The version of the OpenAPI document: 1.0.0
* The version of the OpenAPI document: 1.70.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion dist/apis/ScheduledTransactionsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* YNAB API Endpoints
* 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
*
* The version of the OpenAPI document: 1.0.0
* The version of the OpenAPI document: 1.70.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
18 changes: 9 additions & 9 deletions dist/apis/TransactionsApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* YNAB API Endpoints
* 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
*
* The version of the OpenAPI document: 1.0.0
* The version of the OpenAPI document: 1.70.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -97,43 +97,43 @@ export declare class TransactionsApi extends runtime.BaseAPI {
*/
getTransactionById(budgetId: string, transactionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionResponse>;
/**
* Returns budget transactions
* Returns budget transactions, excluding any pending transactions
* List transactions
*/
getTransactionsRaw(requestParameters: GetTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionsResponse>>;
/**
* Returns budget transactions
* Returns budget transactions, excluding any pending transactions
* List transactions
*/
getTransactions(budgetId: string, sinceDate?: string, type?: GetTransactionsTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionsResponse>;
/**
* Returns all transactions for a specified account
* Returns all transactions for a specified account, excluding any pending transactions
* List account transactions
*/
getTransactionsByAccountRaw(requestParameters: GetTransactionsByAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionsResponse>>;
/**
* Returns all transactions for a specified account
* Returns all transactions for a specified account, excluding any pending transactions
* List account transactions
*/
getTransactionsByAccount(budgetId: string, accountId: string, sinceDate?: string, type?: GetTransactionsByAccountTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionsResponse>;
/**
* Returns all transactions for a specified category
* List category transactions
* List category transactions, excluding any pending transactions
*/
getTransactionsByCategoryRaw(requestParameters: GetTransactionsByCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HybridTransactionsResponse>>;
/**
* Returns all transactions for a specified category
* List category transactions
* List category transactions, excluding any pending transactions
*/
getTransactionsByCategory(budgetId: string, categoryId: string, sinceDate?: string, type?: GetTransactionsByCategoryTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HybridTransactionsResponse>;
/**
* Returns all transactions for a specified payee
* List payee transactions
* List payee transactions, excluding any pending transactions
*/
getTransactionsByPayeeRaw(requestParameters: GetTransactionsByPayeeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HybridTransactionsResponse>>;
/**
* Returns all transactions for a specified payee
* List payee transactions
* List payee transactions, excluding any pending transactions
*/
getTransactionsByPayee(budgetId: string, payeeId: string, sinceDate?: string, type?: GetTransactionsByPayeeTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HybridTransactionsResponse>;
/**
Expand Down
18 changes: 9 additions & 9 deletions dist/apis/TransactionsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* YNAB API Endpoints
* 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
*
* The version of the OpenAPI document: 1.0.0
* The version of the OpenAPI document: 1.70.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -134,7 +134,7 @@ class TransactionsApi extends runtime.BaseAPI {
return await response.value();
}
/**
* Returns budget transactions
* Returns budget transactions, excluding any pending transactions
* List transactions
*/
async getTransactionsRaw(requestParameters, initOverrides) {
Expand Down Expand Up @@ -169,15 +169,15 @@ class TransactionsApi extends runtime.BaseAPI {
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TransactionsResponseFromJSON)(jsonValue));
}
/**
* Returns budget transactions
* Returns budget transactions, excluding any pending transactions
* List transactions
*/
async getTransactions(budgetId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
const response = await this.getTransactionsRaw({ budgetId: budgetId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides);
return await response.value();
}
/**
* Returns all transactions for a specified account
* Returns all transactions for a specified account, excluding any pending transactions
* List account transactions
*/
async getTransactionsByAccountRaw(requestParameters, initOverrides) {
Expand Down Expand Up @@ -215,7 +215,7 @@ class TransactionsApi extends runtime.BaseAPI {
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TransactionsResponseFromJSON)(jsonValue));
}
/**
* Returns all transactions for a specified account
* Returns all transactions for a specified account, excluding any pending transactions
* List account transactions
*/
async getTransactionsByAccount(budgetId, accountId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
Expand All @@ -224,7 +224,7 @@ class TransactionsApi extends runtime.BaseAPI {
}
/**
* Returns all transactions for a specified category
* List category transactions
* List category transactions, excluding any pending transactions
*/
async getTransactionsByCategoryRaw(requestParameters, initOverrides) {
if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
Expand Down Expand Up @@ -262,15 +262,15 @@ class TransactionsApi extends runtime.BaseAPI {
}
/**
* Returns all transactions for a specified category
* List category transactions
* List category transactions, excluding any pending transactions
*/
async getTransactionsByCategory(budgetId, categoryId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
const response = await this.getTransactionsByCategoryRaw({ budgetId: budgetId, categoryId: categoryId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides);
return await response.value();
}
/**
* Returns all transactions for a specified payee
* List payee transactions
* List payee transactions, excluding any pending transactions
*/
async getTransactionsByPayeeRaw(requestParameters, initOverrides) {
if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
Expand Down Expand Up @@ -308,7 +308,7 @@ class TransactionsApi extends runtime.BaseAPI {
}
/**
* Returns all transactions for a specified payee
* List payee transactions
* List payee transactions, excluding any pending transactions
*/
async getTransactionsByPayee(budgetId, payeeId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
const response = await this.getTransactionsByPayeeRaw({ budgetId: budgetId, payeeId: payeeId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides);
Expand Down
2 changes: 1 addition & 1 deletion dist/apis/UserApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* YNAB API Endpoints
* 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
*
* The version of the OpenAPI document: 1.0.0
* The version of the OpenAPI document: 1.70.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion dist/apis/UserApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* YNAB API Endpoints
* 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
*
* The version of the OpenAPI document: 1.0.0
* The version of the OpenAPI document: 1.70.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion dist/browser/ynab.js

Large diffs are not rendered by default.

Loading

0 comments on commit 4c3999e

Please sign in to comment.