diff --git a/dist/esm/apis/AccountsApi.d.ts b/dist/esm/apis/AccountsApi.d.ts index 484952d..7d16492 100644 --- a/dist/esm/apis/AccountsApi.d.ts +++ b/dist/esm/apis/AccountsApi.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import * as runtime from '../runtime'; import type { AccountResponse, AccountsResponse, PostAccountWrapper } from '../models/index'; diff --git a/dist/esm/apis/AccountsApi.js b/dist/esm/apis/AccountsApi.js index 15dfb87..0295bd4 100644 --- a/dist/esm/apis/AccountsApi.js +++ b/dist/esm/apis/AccountsApi.js @@ -4,12 +4,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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { @@ -41,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); - while (_) try { + while (g && (g = 0, op[0] && (_ = 0)), _) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { diff --git a/dist/esm/apis/BudgetsApi.d.ts b/dist/esm/apis/BudgetsApi.d.ts index fcfae8d..89955ef 100644 --- a/dist/esm/apis/BudgetsApi.d.ts +++ b/dist/esm/apis/BudgetsApi.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import * as runtime from '../runtime'; import type { BudgetDetailResponse, BudgetSettingsResponse, BudgetSummaryResponse } from '../models/index'; diff --git a/dist/esm/apis/BudgetsApi.js b/dist/esm/apis/BudgetsApi.js index 8b1985e..d932012 100644 --- a/dist/esm/apis/BudgetsApi.js +++ b/dist/esm/apis/BudgetsApi.js @@ -4,12 +4,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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { @@ -41,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); - while (_) try { + while (g && (g = 0, op[0] && (_ = 0)), _) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { diff --git a/dist/esm/apis/CategoriesApi.d.ts b/dist/esm/apis/CategoriesApi.d.ts index c06a9f2..e0b10f5 100644 --- a/dist/esm/apis/CategoriesApi.d.ts +++ b/dist/esm/apis/CategoriesApi.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import * as runtime from '../runtime'; import type { CategoriesResponse, CategoryResponse, PatchCategoryWrapper, PatchMonthCategoryWrapper, SaveCategoryResponse } from '../models/index'; diff --git a/dist/esm/apis/CategoriesApi.js b/dist/esm/apis/CategoriesApi.js index 6fb99d9..1993834 100644 --- a/dist/esm/apis/CategoriesApi.js +++ b/dist/esm/apis/CategoriesApi.js @@ -4,12 +4,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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { @@ -41,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); - while (_) try { + while (g && (g = 0, op[0] && (_ = 0)), _) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { diff --git a/dist/esm/apis/DeprecatedApi.js b/dist/esm/apis/DeprecatedApi.js index bf31cac..eae6300 100644 --- a/dist/esm/apis/DeprecatedApi.js +++ b/dist/esm/apis/DeprecatedApi.js @@ -41,7 +41,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); - while (_) try { + while (g && (g = 0, op[0] && (_ = 0)), _) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { diff --git a/dist/esm/apis/MonthsApi.d.ts b/dist/esm/apis/MonthsApi.d.ts index b3fea19..9d47d98 100644 --- a/dist/esm/apis/MonthsApi.d.ts +++ b/dist/esm/apis/MonthsApi.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import * as runtime from '../runtime'; import type { MonthDetailResponse, MonthSummariesResponse } from '../models/index'; diff --git a/dist/esm/apis/MonthsApi.js b/dist/esm/apis/MonthsApi.js index e1aca18..440eea7 100644 --- a/dist/esm/apis/MonthsApi.js +++ b/dist/esm/apis/MonthsApi.js @@ -4,12 +4,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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { @@ -41,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); - while (_) try { + while (g && (g = 0, op[0] && (_ = 0)), _) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { diff --git a/dist/esm/apis/PayeeLocationsApi.d.ts b/dist/esm/apis/PayeeLocationsApi.d.ts index 757f728..1b5f14e 100644 --- a/dist/esm/apis/PayeeLocationsApi.d.ts +++ b/dist/esm/apis/PayeeLocationsApi.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import * as runtime from '../runtime'; import type { PayeeLocationResponse, PayeeLocationsResponse } from '../models/index'; diff --git a/dist/esm/apis/PayeeLocationsApi.js b/dist/esm/apis/PayeeLocationsApi.js index 5cee4fe..0bbf544 100644 --- a/dist/esm/apis/PayeeLocationsApi.js +++ b/dist/esm/apis/PayeeLocationsApi.js @@ -4,12 +4,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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { @@ -41,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); - while (_) try { + while (g && (g = 0, op[0] && (_ = 0)), _) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { diff --git a/dist/esm/apis/PayeesApi.d.ts b/dist/esm/apis/PayeesApi.d.ts index fa3225b..2309489 100644 --- a/dist/esm/apis/PayeesApi.d.ts +++ b/dist/esm/apis/PayeesApi.d.ts @@ -2,15 +2,10 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ 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; @@ -19,6 +14,11 @@ export interface GetPayeesRequest { budgetId: string; lastKnowledgeOfServer?: number; } +export interface UpdatePayeeRequest { + budgetId: string; + payeeId: string; + data: PatchPayeeWrapper; +} /** * */ @@ -43,4 +43,14 @@ export declare class PayeesApi extends runtime.BaseAPI { * List payees */ getPayees(budgetId: string, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Update a payee + * Update a payee + */ + updatePayeeRaw(requestParameters: UpdatePayeeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Update a payee + * Update a payee + */ + updatePayee(budgetId: string, payeeId: string, data: PatchPayeeWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } diff --git a/dist/esm/apis/PayeesApi.js b/dist/esm/apis/PayeesApi.js index 8e4d57a..f7d7302 100644 --- a/dist/esm/apis/PayeesApi.js +++ b/dist/esm/apis/PayeesApi.js @@ -4,12 +4,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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { @@ -41,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); - while (_) try { + while (g && (g = 0, op[0] && (_ = 0)), _) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { @@ -63,7 +58,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { } }; import * as runtime from '../runtime'; -import { PayeeResponseFromJSON, PayeesResponseFromJSON, } from '../models/index'; +import { PatchPayeeWrapperToJSON, PayeeResponseFromJSON, PayeesResponseFromJSON, SavePayeeResponseFromJSON, } from '../models/index'; /** * */ @@ -190,6 +185,70 @@ var PayeesApi = /** @class */ (function (_super) { }); }); }; + /** + * Update a payee + * Update a payee + */ + PayeesApi.prototype.updatePayeeRaw = function (requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function () { + var queryParameters, headerParameters, token, tokenString, response; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + 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.'); + } + queryParameters = {}; + headerParameters = {}; + headerParameters['Accept'] = 'application/json'; + headerParameters['Content-Type'] = 'application/json'; + if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2]; + token = this.configuration.accessToken; + return [4 /*yield*/, token("bearer", [])]; + case 1: + tokenString = _a.sent(); + if (tokenString) { + headerParameters["Authorization"] = "Bearer ".concat(tokenString); + } + _a.label = 2; + case 2: return [4 /*yield*/, this.request({ + path: "/budgets/{budget_id}/payees/{payee_id}".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))).replace("{".concat("payee_id", "}"), encodeURIComponent(String(requestParameters.payeeId))), + method: 'PATCH', + headers: headerParameters, + query: queryParameters, + body: PatchPayeeWrapperToJSON(requestParameters.data), + }, initOverrides)]; + case 3: + response = _a.sent(); + return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return SavePayeeResponseFromJSON(jsonValue); })]; + } + }); + }); + }; + /** + * Update a payee + * Update a payee + */ + PayeesApi.prototype.updatePayee = function (budgetId, payeeId, data, initOverrides) { + return __awaiter(this, void 0, void 0, function () { + var response; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, this.updatePayeeRaw({ budgetId: budgetId, payeeId: payeeId, data: data }, initOverrides)]; + case 1: + response = _a.sent(); + return [4 /*yield*/, response.value()]; + case 2: return [2 /*return*/, _a.sent()]; + } + }); + }); + }; return PayeesApi; }(runtime.BaseAPI)); export { PayeesApi }; diff --git a/dist/esm/apis/ScheduledTransactionsApi.d.ts b/dist/esm/apis/ScheduledTransactionsApi.d.ts index 32a8597..251e126 100644 --- a/dist/esm/apis/ScheduledTransactionsApi.d.ts +++ b/dist/esm/apis/ScheduledTransactionsApi.d.ts @@ -2,15 +2,14 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import * as runtime from '../runtime'; -import type { ScheduledTransactionResponse, ScheduledTransactionsResponse } from '../models/index'; +import type { PostScheduledTransactionWrapper, ScheduledTransactionResponse, ScheduledTransactionsResponse } from '../models/index'; +export interface CreateScheduledTransactionRequest { + budgetId: string; + data: PostScheduledTransactionWrapper; +} export interface GetScheduledTransactionByIdRequest { budgetId: string; scheduledTransactionId: string; @@ -23,6 +22,16 @@ export interface GetScheduledTransactionsRequest { * */ export declare class ScheduledTransactionsApi extends runtime.BaseAPI { + /** + * Creates a single scheduled transaction. + * Create a single scheduled transaction + */ + createScheduledTransactionRaw(requestParameters: CreateScheduledTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Creates a single scheduled transaction. + * Create a single scheduled transaction + */ + createScheduledTransaction(budgetId: string, data: PostScheduledTransactionWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Returns a single scheduled transaction * Single scheduled transaction diff --git a/dist/esm/apis/ScheduledTransactionsApi.js b/dist/esm/apis/ScheduledTransactionsApi.js index 4480538..6bc68d9 100644 --- a/dist/esm/apis/ScheduledTransactionsApi.js +++ b/dist/esm/apis/ScheduledTransactionsApi.js @@ -4,12 +4,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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { @@ -41,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); - while (_) try { + while (g && (g = 0, op[0] && (_ = 0)), _) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { @@ -63,7 +58,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { } }; import * as runtime from '../runtime'; -import { ScheduledTransactionResponseFromJSON, ScheduledTransactionsResponseFromJSON, } from '../models/index'; +import { PostScheduledTransactionWrapperToJSON, ScheduledTransactionResponseFromJSON, ScheduledTransactionsResponseFromJSON, } from '../models/index'; /** * */ @@ -72,6 +67,67 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) { function ScheduledTransactionsApi() { return _super !== null && _super.apply(this, arguments) || this; } + /** + * Creates a single scheduled transaction. + * Create a single scheduled transaction + */ + ScheduledTransactionsApi.prototype.createScheduledTransactionRaw = function (requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function () { + var queryParameters, headerParameters, token, tokenString, response; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) { + throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling createScheduledTransaction.'); + } + if (requestParameters.data === null || requestParameters.data === undefined) { + throw new runtime.RequiredError('data', 'Required parameter requestParameters.data was null or undefined when calling createScheduledTransaction.'); + } + queryParameters = {}; + headerParameters = {}; + headerParameters['Accept'] = 'application/json'; + headerParameters['Content-Type'] = 'application/json'; + if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2]; + token = this.configuration.accessToken; + return [4 /*yield*/, token("bearer", [])]; + case 1: + tokenString = _a.sent(); + if (tokenString) { + headerParameters["Authorization"] = "Bearer ".concat(tokenString); + } + _a.label = 2; + case 2: return [4 /*yield*/, this.request({ + path: "/budgets/{budget_id}/scheduled_transactions".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostScheduledTransactionWrapperToJSON(requestParameters.data), + }, initOverrides)]; + case 3: + response = _a.sent(); + return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return ScheduledTransactionResponseFromJSON(jsonValue); })]; + } + }); + }); + }; + /** + * Creates a single scheduled transaction. + * Create a single scheduled transaction + */ + ScheduledTransactionsApi.prototype.createScheduledTransaction = function (budgetId, data, initOverrides) { + return __awaiter(this, void 0, void 0, function () { + var response; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, this.createScheduledTransactionRaw({ budgetId: budgetId, data: data }, initOverrides)]; + case 1: + response = _a.sent(); + return [4 /*yield*/, response.value()]; + case 2: return [2 /*return*/, _a.sent()]; + } + }); + }); + }; /** * Returns a single scheduled transaction * Single scheduled transaction diff --git a/dist/esm/apis/TransactionsApi.d.ts b/dist/esm/apis/TransactionsApi.d.ts index 661f5e0..72441c1 100644 --- a/dist/esm/apis/TransactionsApi.d.ts +++ b/dist/esm/apis/TransactionsApi.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import * as runtime from '../runtime'; import type { HybridTransactionsResponse, PatchTransactionsWrapper, PostTransactionsWrapper, PutTransactionWrapper, SaveTransactionsResponse, TransactionResponse, TransactionsImportResponse, TransactionsResponse } from '../models/index'; @@ -43,6 +38,13 @@ export interface GetTransactionsByCategoryRequest { type?: GetTransactionsByCategoryTypeEnum; lastKnowledgeOfServer?: number; } +export interface GetTransactionsByMonthRequest { + budgetId: string; + month: string; + sinceDate?: string; + type?: GetTransactionsByMonthTypeEnum; + lastKnowledgeOfServer?: number; +} export interface GetTransactionsByPayeeRequest { budgetId: string; payeeId: string; @@ -67,12 +69,12 @@ export interface UpdateTransactionsRequest { */ export declare class TransactionsApi extends runtime.BaseAPI { /** - * 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. + * 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. * Create a single transaction or multiple transactions */ createTransactionRaw(requestParameters: CreateTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * 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. + * 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. * Create a single transaction or multiple transactions */ createTransaction(budgetId: string, data: PostTransactionsWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; @@ -97,43 +99,53 @@ export declare class TransactionsApi extends runtime.BaseAPI { */ getTransactionById(budgetId: string, transactionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** - * Returns budget transactions + * Returns budget transactions, excluding any pending transactions * List transactions */ getTransactionsRaw(requestParameters: GetTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * 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; /** - * 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>; /** - * 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; /** * 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>; /** * 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; + /** + * Returns all transactions for a specified month + * List transactions in month, excluding any pending transactions + */ + getTransactionsByMonthRaw(requestParameters: GetTransactionsByMonthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Returns all transactions for a specified month + * List transactions in month, excluding any pending transactions + */ + getTransactionsByMonth(budgetId: string, month: string, sinceDate?: string, type?: GetTransactionsByMonthTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * 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>; /** * 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; /** @@ -174,7 +186,7 @@ export declare const GetTransactionsTypeEnum: { readonly Uncategorized: "uncategorized"; readonly Unapproved: "unapproved"; }; -export declare type GetTransactionsTypeEnum = typeof GetTransactionsTypeEnum[keyof typeof GetTransactionsTypeEnum]; +export type GetTransactionsTypeEnum = typeof GetTransactionsTypeEnum[keyof typeof GetTransactionsTypeEnum]; /** * @export */ @@ -182,7 +194,7 @@ export declare const GetTransactionsByAccountTypeEnum: { readonly Uncategorized: "uncategorized"; readonly Unapproved: "unapproved"; }; -export declare type GetTransactionsByAccountTypeEnum = typeof GetTransactionsByAccountTypeEnum[keyof typeof GetTransactionsByAccountTypeEnum]; +export type GetTransactionsByAccountTypeEnum = typeof GetTransactionsByAccountTypeEnum[keyof typeof GetTransactionsByAccountTypeEnum]; /** * @export */ @@ -190,7 +202,15 @@ export declare const GetTransactionsByCategoryTypeEnum: { readonly Uncategorized: "uncategorized"; readonly Unapproved: "unapproved"; }; -export declare type GetTransactionsByCategoryTypeEnum = typeof GetTransactionsByCategoryTypeEnum[keyof typeof GetTransactionsByCategoryTypeEnum]; +export type GetTransactionsByCategoryTypeEnum = typeof GetTransactionsByCategoryTypeEnum[keyof typeof GetTransactionsByCategoryTypeEnum]; +/** + * @export + */ +export declare const GetTransactionsByMonthTypeEnum: { + readonly Uncategorized: "uncategorized"; + readonly Unapproved: "unapproved"; +}; +export type GetTransactionsByMonthTypeEnum = typeof GetTransactionsByMonthTypeEnum[keyof typeof GetTransactionsByMonthTypeEnum]; /** * @export */ @@ -198,4 +218,4 @@ export declare const GetTransactionsByPayeeTypeEnum: { readonly Uncategorized: "uncategorized"; readonly Unapproved: "unapproved"; }; -export declare type GetTransactionsByPayeeTypeEnum = typeof GetTransactionsByPayeeTypeEnum[keyof typeof GetTransactionsByPayeeTypeEnum]; +export type GetTransactionsByPayeeTypeEnum = typeof GetTransactionsByPayeeTypeEnum[keyof typeof GetTransactionsByPayeeTypeEnum]; diff --git a/dist/esm/apis/TransactionsApi.js b/dist/esm/apis/TransactionsApi.js index a9ef8fa..7d55754 100644 --- a/dist/esm/apis/TransactionsApi.js +++ b/dist/esm/apis/TransactionsApi.js @@ -4,12 +4,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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { @@ -41,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); - while (_) try { + while (g && (g = 0, op[0] && (_ = 0)), _) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { @@ -73,7 +68,7 @@ var TransactionsApi = /** @class */ (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } /** - * 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. + * 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. * Create a single transaction or multiple transactions */ TransactionsApi.prototype.createTransactionRaw = function (requestParameters, initOverrides) { @@ -116,7 +111,7 @@ var TransactionsApi = /** @class */ (function (_super) { }); }; /** - * 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. + * 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. * Create a single transaction or multiple transactions */ TransactionsApi.prototype.createTransaction = function (budgetId, data, initOverrides) { @@ -252,7 +247,7 @@ var TransactionsApi = /** @class */ (function (_super) { }); }; /** - * Returns budget transactions + * Returns budget transactions, excluding any pending transactions * List transactions */ TransactionsApi.prototype.getTransactionsRaw = function (requestParameters, initOverrides) { @@ -299,7 +294,7 @@ var TransactionsApi = /** @class */ (function (_super) { }); }; /** - * Returns budget transactions + * Returns budget transactions, excluding any pending transactions * List transactions */ TransactionsApi.prototype.getTransactions = function (budgetId, sinceDate, type, lastKnowledgeOfServer, initOverrides) { @@ -317,7 +312,7 @@ var TransactionsApi = /** @class */ (function (_super) { }); }; /** - * Returns all transactions for a specified account + * Returns all transactions for a specified account, excluding any pending transactions * List account transactions */ TransactionsApi.prototype.getTransactionsByAccountRaw = function (requestParameters, initOverrides) { @@ -367,7 +362,7 @@ var TransactionsApi = /** @class */ (function (_super) { }); }; /** - * Returns all transactions for a specified account + * Returns all transactions for a specified account, excluding any pending transactions * List account transactions */ TransactionsApi.prototype.getTransactionsByAccount = function (budgetId, accountId, sinceDate, type, lastKnowledgeOfServer, initOverrides) { @@ -386,7 +381,7 @@ var TransactionsApi = /** @class */ (function (_super) { }; /** * Returns all transactions for a specified category - * List category transactions + * List category transactions, excluding any pending transactions */ TransactionsApi.prototype.getTransactionsByCategoryRaw = function (requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function () { @@ -436,7 +431,7 @@ var TransactionsApi = /** @class */ (function (_super) { }; /** * Returns all transactions for a specified category - * List category transactions + * List category transactions, excluding any pending transactions */ TransactionsApi.prototype.getTransactionsByCategory = function (budgetId, categoryId, sinceDate, type, lastKnowledgeOfServer, initOverrides) { return __awaiter(this, void 0, void 0, function () { @@ -452,9 +447,77 @@ var TransactionsApi = /** @class */ (function (_super) { }); }); }; + /** + * Returns all transactions for a specified month + * List transactions in month, excluding any pending transactions + */ + TransactionsApi.prototype.getTransactionsByMonthRaw = function (requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function () { + var queryParameters, headerParameters, token, tokenString, response; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) { + throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling getTransactionsByMonth.'); + } + if (requestParameters.month === null || requestParameters.month === undefined) { + throw new runtime.RequiredError('month', 'Required parameter requestParameters.month was null or undefined when calling getTransactionsByMonth.'); + } + queryParameters = {}; + if (requestParameters.sinceDate !== undefined) { + queryParameters['since_date'] = requestParameters.sinceDate; + } + if (requestParameters.type !== undefined) { + queryParameters['type'] = requestParameters.type; + } + if (requestParameters.lastKnowledgeOfServer !== undefined) { + queryParameters['last_knowledge_of_server'] = requestParameters.lastKnowledgeOfServer; + } + headerParameters = {}; + headerParameters['Accept'] = 'application/json'; + if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2]; + token = this.configuration.accessToken; + return [4 /*yield*/, token("bearer", [])]; + case 1: + tokenString = _a.sent(); + if (tokenString) { + headerParameters["Authorization"] = "Bearer ".concat(tokenString); + } + _a.label = 2; + case 2: return [4 /*yield*/, this.request({ + path: "/budgets/{budget_id}/months/{month}/transactions".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))).replace("{".concat("month", "}"), encodeURIComponent(String(requestParameters.month))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides)]; + case 3: + response = _a.sent(); + return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return HybridTransactionsResponseFromJSON(jsonValue); })]; + } + }); + }); + }; + /** + * Returns all transactions for a specified month + * List transactions in month, excluding any pending transactions + */ + TransactionsApi.prototype.getTransactionsByMonth = function (budgetId, month, sinceDate, type, lastKnowledgeOfServer, initOverrides) { + return __awaiter(this, void 0, void 0, function () { + var response; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, this.getTransactionsByMonthRaw({ budgetId: budgetId, month: month, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)]; + case 1: + response = _a.sent(); + return [4 /*yield*/, response.value()]; + case 2: return [2 /*return*/, _a.sent()]; + } + }); + }); + }; /** * Returns all transactions for a specified payee - * List payee transactions + * List payee transactions, excluding any pending transactions */ TransactionsApi.prototype.getTransactionsByPayeeRaw = function (requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function () { @@ -504,7 +567,7 @@ var TransactionsApi = /** @class */ (function (_super) { }; /** * Returns all transactions for a specified payee - * List payee transactions + * List payee transactions, excluding any pending transactions */ TransactionsApi.prototype.getTransactionsByPayee = function (budgetId, payeeId, sinceDate, type, lastKnowledgeOfServer, initOverrides) { return __awaiter(this, void 0, void 0, function () { @@ -725,6 +788,13 @@ export var GetTransactionsByCategoryTypeEnum = { Uncategorized: 'uncategorized', Unapproved: 'unapproved' }; +/** + * @export + */ +export var GetTransactionsByMonthTypeEnum = { + Uncategorized: 'uncategorized', + Unapproved: 'unapproved' +}; /** * @export */ diff --git a/dist/esm/apis/UserApi.d.ts b/dist/esm/apis/UserApi.d.ts index 62ebce9..159a8c1 100644 --- a/dist/esm/apis/UserApi.d.ts +++ b/dist/esm/apis/UserApi.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import * as runtime from '../runtime'; import type { UserResponse } from '../models/index'; diff --git a/dist/esm/apis/UserApi.js b/dist/esm/apis/UserApi.js index e70753a..45b65b8 100644 --- a/dist/esm/apis/UserApi.js +++ b/dist/esm/apis/UserApi.js @@ -4,12 +4,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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { @@ -41,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); - while (_) try { + while (g && (g = 0, op[0] && (_ = 0)), _) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { diff --git a/dist/esm/models/Account.d.ts b/dist/esm/models/Account.d.ts index 55ba9cd..3d3a168 100644 --- a/dist/esm/models/Account.d.ts +++ b/dist/esm/models/Account.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { AccountType } from './AccountType'; /** @@ -134,7 +129,7 @@ export interface Account { /** * Check if a given object implements the Account interface. */ -export declare function instanceOfAccount(value: object): boolean; +export declare function instanceOfAccount(value: object): value is Account; export declare function AccountFromJSON(json: any): Account; export declare function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account; export declare function AccountToJSON(value?: Account | null): any; diff --git a/dist/esm/models/Account.js b/dist/esm/models/Account.js index f75b2fe..fbd581c 100644 --- a/dist/esm/models/Account.js +++ b/dist/esm/models/Account.js @@ -4,37 +4,40 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; import { AccountTypeFromJSON, AccountTypeToJSON, } from './AccountType'; /** * Check if a given object implements the Account interface. */ export function instanceOfAccount(value) { - var isInstance = true; - isInstance = isInstance && "id" in value; - isInstance = isInstance && "name" in value; - isInstance = isInstance && "type" in value; - isInstance = isInstance && "on_budget" in value; - isInstance = isInstance && "closed" in value; - isInstance = isInstance && "balance" in value; - isInstance = isInstance && "cleared_balance" in value; - isInstance = isInstance && "uncleared_balance" in value; - isInstance = isInstance && "transfer_payee_id" in value; - isInstance = isInstance && "deleted" in value; - return isInstance; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + if (!('on_budget' in value) || value['on_budget'] === undefined) + return false; + if (!('closed' in value) || value['closed'] === undefined) + return false; + if (!('balance' in value) || value['balance'] === undefined) + return false; + if (!('cleared_balance' in value) || value['cleared_balance'] === undefined) + return false; + if (!('uncleared_balance' in value) || value['uncleared_balance'] === undefined) + return false; + if (!('transfer_payee_id' in value) || value['transfer_payee_id'] === undefined) + return false; + if (!('deleted' in value) || value['deleted'] === undefined) + return false; + return true; } export function AccountFromJSON(json) { return AccountFromJSONTyped(json, false); } export function AccountFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -43,46 +46,43 @@ export function AccountFromJSONTyped(json, ignoreDiscriminator) { 'type': AccountTypeFromJSON(json['type']), 'on_budget': json['on_budget'], 'closed': json['closed'], - 'note': !exists(json, 'note') ? undefined : json['note'], + 'note': json['note'] == null ? undefined : json['note'], 'balance': json['balance'], 'cleared_balance': json['cleared_balance'], 'uncleared_balance': json['uncleared_balance'], 'transfer_payee_id': json['transfer_payee_id'], - 'direct_import_linked': !exists(json, 'direct_import_linked') ? undefined : json['direct_import_linked'], - 'direct_import_in_error': !exists(json, 'direct_import_in_error') ? undefined : json['direct_import_in_error'], - 'last_reconciled_at': !exists(json, 'last_reconciled_at') ? undefined : json['last_reconciled_at'], - 'debt_original_balance': !exists(json, 'debt_original_balance') ? undefined : json['debt_original_balance'], - 'debt_interest_rates': !exists(json, 'debt_interest_rates') ? undefined : json['debt_interest_rates'], - 'debt_minimum_payments': !exists(json, 'debt_minimum_payments') ? undefined : json['debt_minimum_payments'], - 'debt_escrow_amounts': !exists(json, 'debt_escrow_amounts') ? undefined : json['debt_escrow_amounts'], + 'direct_import_linked': json['direct_import_linked'] == null ? undefined : json['direct_import_linked'], + 'direct_import_in_error': json['direct_import_in_error'] == null ? undefined : json['direct_import_in_error'], + 'last_reconciled_at': json['last_reconciled_at'] == null ? undefined : json['last_reconciled_at'], + 'debt_original_balance': json['debt_original_balance'] == null ? undefined : json['debt_original_balance'], + 'debt_interest_rates': json['debt_interest_rates'] == null ? undefined : json['debt_interest_rates'], + 'debt_minimum_payments': json['debt_minimum_payments'] == null ? undefined : json['debt_minimum_payments'], + 'debt_escrow_amounts': json['debt_escrow_amounts'] == null ? undefined : json['debt_escrow_amounts'], 'deleted': json['deleted'], }; } export function AccountToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'id': value.id, - 'name': value.name, - 'type': AccountTypeToJSON(value.type), - 'on_budget': value.on_budget, - 'closed': value.closed, - 'note': value.note, - 'balance': value.balance, - 'cleared_balance': value.cleared_balance, - 'uncleared_balance': value.uncleared_balance, - 'transfer_payee_id': value.transfer_payee_id, - 'direct_import_linked': value.direct_import_linked, - 'direct_import_in_error': value.direct_import_in_error, - 'last_reconciled_at': value.last_reconciled_at, - 'debt_original_balance': value.debt_original_balance, - 'debt_interest_rates': value.debt_interest_rates, - 'debt_minimum_payments': value.debt_minimum_payments, - 'debt_escrow_amounts': value.debt_escrow_amounts, - 'deleted': value.deleted, + 'id': value['id'], + 'name': value['name'], + 'type': AccountTypeToJSON(value['type']), + 'on_budget': value['on_budget'], + 'closed': value['closed'], + 'note': value['note'], + 'balance': value['balance'], + 'cleared_balance': value['cleared_balance'], + 'uncleared_balance': value['uncleared_balance'], + 'transfer_payee_id': value['transfer_payee_id'], + 'direct_import_linked': value['direct_import_linked'], + 'direct_import_in_error': value['direct_import_in_error'], + 'last_reconciled_at': value['last_reconciled_at'], + 'debt_original_balance': value['debt_original_balance'], + 'debt_interest_rates': value['debt_interest_rates'], + 'debt_minimum_payments': value['debt_minimum_payments'], + 'debt_escrow_amounts': value['debt_escrow_amounts'], + 'deleted': value['deleted'], }; } diff --git a/dist/esm/models/AccountResponse.d.ts b/dist/esm/models/AccountResponse.d.ts index 0fff492..14f32dc 100644 --- a/dist/esm/models/AccountResponse.d.ts +++ b/dist/esm/models/AccountResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { AccountResponseData } from './AccountResponseData'; /** @@ -26,7 +21,7 @@ export interface AccountResponse { /** * Check if a given object implements the AccountResponse interface. */ -export declare function instanceOfAccountResponse(value: object): boolean; +export declare function instanceOfAccountResponse(value: object): value is AccountResponse; export declare function AccountResponseFromJSON(json: any): AccountResponse; export declare function AccountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountResponse; export declare function AccountResponseToJSON(value?: AccountResponse | null): any; diff --git a/dist/esm/models/AccountResponse.js b/dist/esm/models/AccountResponse.js index 05db1f5..bdb3ed1 100644 --- a/dist/esm/models/AccountResponse.js +++ b/dist/esm/models/AccountResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { AccountResponseDataFromJSON, AccountResponseDataToJSON, } from './AccountResponseData'; /** * Check if a given object implements the AccountResponse interface. */ export function instanceOfAccountResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function AccountResponseFromJSON(json) { return AccountResponseFromJSONTyped(json, false); } export function AccountResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function AccountResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function AccountResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': AccountResponseDataToJSON(value.data), + 'data': AccountResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/AccountResponseData.d.ts b/dist/esm/models/AccountResponseData.d.ts index 1bfff24..a2f235b 100644 --- a/dist/esm/models/AccountResponseData.d.ts +++ b/dist/esm/models/AccountResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { Account } from './Account'; /** @@ -26,7 +21,7 @@ export interface AccountResponseData { /** * Check if a given object implements the AccountResponseData interface. */ -export declare function instanceOfAccountResponseData(value: object): boolean; +export declare function instanceOfAccountResponseData(value: object): value is AccountResponseData; export declare function AccountResponseDataFromJSON(json: any): AccountResponseData; export declare function AccountResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountResponseData; export declare function AccountResponseDataToJSON(value?: AccountResponseData | null): any; diff --git a/dist/esm/models/AccountResponseData.js b/dist/esm/models/AccountResponseData.js index 77be5d2..6813252 100644 --- a/dist/esm/models/AccountResponseData.js +++ b/dist/esm/models/AccountResponseData.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { AccountFromJSON, AccountToJSON, } from './Account'; /** * Check if a given object implements the AccountResponseData interface. */ export function instanceOfAccountResponseData(value) { - var isInstance = true; - isInstance = isInstance && "account" in value; - return isInstance; + if (!('account' in value) || value['account'] === undefined) + return false; + return true; } export function AccountResponseDataFromJSON(json) { return AccountResponseDataFromJSONTyped(json, false); } export function AccountResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function AccountResponseDataFromJSONTyped(json, ignoreDiscriminator) { }; } export function AccountResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'account': AccountToJSON(value.account), + 'account': AccountToJSON(value['account']), }; } diff --git a/dist/esm/models/AccountType.d.ts b/dist/esm/models/AccountType.d.ts index 707aa8f..6fa7f52 100644 --- a/dist/esm/models/AccountType.d.ts +++ b/dist/esm/models/AccountType.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * The type of account @@ -28,7 +23,8 @@ export declare const AccountType: { readonly MedicalDebt: "medicalDebt"; readonly OtherDebt: "otherDebt"; }; -export declare type AccountType = typeof AccountType[keyof typeof AccountType]; +export type AccountType = typeof AccountType[keyof typeof AccountType]; +export declare function instanceOfAccountType(value: any): boolean; export declare function AccountTypeFromJSON(json: any): AccountType; export declare function AccountTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountType; export declare function AccountTypeToJSON(value?: AccountType | null): any; diff --git a/dist/esm/models/AccountType.js b/dist/esm/models/AccountType.js index fccb7e8..503de13 100644 --- a/dist/esm/models/AccountType.js +++ b/dist/esm/models/AccountType.js @@ -4,12 +4,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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * The type of account @@ -30,6 +25,16 @@ export var AccountType = { MedicalDebt: 'medicalDebt', OtherDebt: 'otherDebt' }; +export function instanceOfAccountType(value) { + for (var key in AccountType) { + if (Object.prototype.hasOwnProperty.call(AccountType, key)) { + if (AccountType[key] === value) { + return true; + } + } + } + return false; +} export function AccountTypeFromJSON(json) { return AccountTypeFromJSONTyped(json, false); } diff --git a/dist/esm/models/AccountsResponse.d.ts b/dist/esm/models/AccountsResponse.d.ts index 3710557..e1b9237 100644 --- a/dist/esm/models/AccountsResponse.d.ts +++ b/dist/esm/models/AccountsResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { AccountsResponseData } from './AccountsResponseData'; /** @@ -26,7 +21,7 @@ export interface AccountsResponse { /** * Check if a given object implements the AccountsResponse interface. */ -export declare function instanceOfAccountsResponse(value: object): boolean; +export declare function instanceOfAccountsResponse(value: object): value is AccountsResponse; export declare function AccountsResponseFromJSON(json: any): AccountsResponse; export declare function AccountsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountsResponse; export declare function AccountsResponseToJSON(value?: AccountsResponse | null): any; diff --git a/dist/esm/models/AccountsResponse.js b/dist/esm/models/AccountsResponse.js index 053febb..6653cd4 100644 --- a/dist/esm/models/AccountsResponse.js +++ b/dist/esm/models/AccountsResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { AccountsResponseDataFromJSON, AccountsResponseDataToJSON, } from './AccountsResponseData'; /** * Check if a given object implements the AccountsResponse interface. */ export function instanceOfAccountsResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function AccountsResponseFromJSON(json) { return AccountsResponseFromJSONTyped(json, false); } export function AccountsResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function AccountsResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function AccountsResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': AccountsResponseDataToJSON(value.data), + 'data': AccountsResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/AccountsResponseData.d.ts b/dist/esm/models/AccountsResponseData.d.ts index 3154b14..5ee9ca4 100644 --- a/dist/esm/models/AccountsResponseData.d.ts +++ b/dist/esm/models/AccountsResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { Account } from './Account'; /** @@ -32,7 +27,7 @@ export interface AccountsResponseData { /** * Check if a given object implements the AccountsResponseData interface. */ -export declare function instanceOfAccountsResponseData(value: object): boolean; +export declare function instanceOfAccountsResponseData(value: object): value is AccountsResponseData; export declare function AccountsResponseDataFromJSON(json: any): AccountsResponseData; export declare function AccountsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountsResponseData; export declare function AccountsResponseDataToJSON(value?: AccountsResponseData | null): any; diff --git a/dist/esm/models/AccountsResponseData.js b/dist/esm/models/AccountsResponseData.js index f3c0a91..0bc4c7d 100644 --- a/dist/esm/models/AccountsResponseData.js +++ b/dist/esm/models/AccountsResponseData.js @@ -4,28 +4,24 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { AccountFromJSON, AccountToJSON, } from './Account'; /** * Check if a given object implements the AccountsResponseData interface. */ export function instanceOfAccountsResponseData(value) { - var isInstance = true; - isInstance = isInstance && "accounts" in value; - isInstance = isInstance && "server_knowledge" in value; - return isInstance; + if (!('accounts' in value) || value['accounts'] === undefined) + return false; + if (!('server_knowledge' in value) || value['server_knowledge'] === undefined) + return false; + return true; } export function AccountsResponseDataFromJSON(json) { return AccountsResponseDataFromJSONTyped(json, false); } export function AccountsResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -34,14 +30,11 @@ export function AccountsResponseDataFromJSONTyped(json, ignoreDiscriminator) { }; } export function AccountsResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'accounts': (value.accounts.map(AccountToJSON)), - 'server_knowledge': value.server_knowledge, + 'accounts': (value['accounts'].map(AccountToJSON)), + 'server_knowledge': value['server_knowledge'], }; } diff --git a/dist/esm/models/BudgetDetail.d.ts b/dist/esm/models/BudgetDetail.d.ts index af92a64..34cecdd 100644 --- a/dist/esm/models/BudgetDetail.d.ts +++ b/dist/esm/models/BudgetDetail.d.ts @@ -2,25 +2,20 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ +import type { PayeeLocation } from './PayeeLocation'; import type { Account } from './Account'; +import type { ScheduledTransactionSummary } from './ScheduledTransactionSummary'; import type { Category } from './Category'; -import type { CategoryGroup } from './CategoryGroup'; import type { CurrencyFormat } from './CurrencyFormat'; import type { DateFormat } from './DateFormat'; +import type { SubTransaction } from './SubTransaction'; import type { MonthDetail } from './MonthDetail'; import type { Payee } from './Payee'; -import type { PayeeLocation } from './PayeeLocation'; import type { ScheduledSubTransaction } from './ScheduledSubTransaction'; -import type { ScheduledTransactionSummary } from './ScheduledTransactionSummary'; -import type { SubTransaction } from './SubTransaction'; import type { TransactionSummary } from './TransactionSummary'; +import type { CategoryGroup } from './CategoryGroup'; /** * * @export @@ -133,7 +128,7 @@ export interface BudgetDetail { /** * Check if a given object implements the BudgetDetail interface. */ -export declare function instanceOfBudgetDetail(value: object): boolean; +export declare function instanceOfBudgetDetail(value: object): value is BudgetDetail; export declare function BudgetDetailFromJSON(json: any): BudgetDetail; export declare function BudgetDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetDetail; export declare function BudgetDetailToJSON(value?: BudgetDetail | null): any; diff --git a/dist/esm/models/BudgetDetail.js b/dist/esm/models/BudgetDetail.js index b22657d..294ded8 100644 --- a/dist/esm/models/BudgetDetail.js +++ b/dist/esm/models/BudgetDetail.js @@ -4,86 +4,78 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; +import { PayeeLocationFromJSON, PayeeLocationToJSON, } from './PayeeLocation'; import { AccountFromJSON, AccountToJSON, } from './Account'; +import { ScheduledTransactionSummaryFromJSON, ScheduledTransactionSummaryToJSON, } from './ScheduledTransactionSummary'; import { CategoryFromJSON, CategoryToJSON, } from './Category'; -import { CategoryGroupFromJSON, CategoryGroupToJSON, } from './CategoryGroup'; import { CurrencyFormatFromJSON, CurrencyFormatToJSON, } from './CurrencyFormat'; import { DateFormatFromJSON, DateFormatToJSON, } from './DateFormat'; +import { SubTransactionFromJSON, SubTransactionToJSON, } from './SubTransaction'; import { MonthDetailFromJSON, MonthDetailToJSON, } from './MonthDetail'; import { PayeeFromJSON, PayeeToJSON, } from './Payee'; -import { PayeeLocationFromJSON, PayeeLocationToJSON, } from './PayeeLocation'; import { ScheduledSubTransactionFromJSON, ScheduledSubTransactionToJSON, } from './ScheduledSubTransaction'; -import { ScheduledTransactionSummaryFromJSON, ScheduledTransactionSummaryToJSON, } from './ScheduledTransactionSummary'; -import { SubTransactionFromJSON, SubTransactionToJSON, } from './SubTransaction'; import { TransactionSummaryFromJSON, TransactionSummaryToJSON, } from './TransactionSummary'; +import { CategoryGroupFromJSON, CategoryGroupToJSON, } from './CategoryGroup'; /** * Check if a given object implements the BudgetDetail interface. */ export function instanceOfBudgetDetail(value) { - var isInstance = true; - isInstance = isInstance && "id" in value; - isInstance = isInstance && "name" in value; - return isInstance; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + return true; } export function BudgetDetailFromJSON(json) { return BudgetDetailFromJSONTyped(json, false); } export function BudgetDetailFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { 'id': json['id'], 'name': json['name'], - 'last_modified_on': !exists(json, 'last_modified_on') ? undefined : json['last_modified_on'], - 'first_month': !exists(json, 'first_month') ? undefined : json['first_month'], - 'last_month': !exists(json, 'last_month') ? undefined : json['last_month'], - 'date_format': !exists(json, 'date_format') ? undefined : DateFormatFromJSON(json['date_format']), - 'currency_format': !exists(json, 'currency_format') ? undefined : CurrencyFormatFromJSON(json['currency_format']), - 'accounts': !exists(json, 'accounts') ? undefined : (json['accounts'].map(AccountFromJSON)), - 'payees': !exists(json, 'payees') ? undefined : (json['payees'].map(PayeeFromJSON)), - 'payee_locations': !exists(json, 'payee_locations') ? undefined : (json['payee_locations'].map(PayeeLocationFromJSON)), - 'category_groups': !exists(json, 'category_groups') ? undefined : (json['category_groups'].map(CategoryGroupFromJSON)), - 'categories': !exists(json, 'categories') ? undefined : (json['categories'].map(CategoryFromJSON)), - 'months': !exists(json, 'months') ? undefined : (json['months'].map(MonthDetailFromJSON)), - 'transactions': !exists(json, 'transactions') ? undefined : (json['transactions'].map(TransactionSummaryFromJSON)), - 'subtransactions': !exists(json, 'subtransactions') ? undefined : (json['subtransactions'].map(SubTransactionFromJSON)), - 'scheduled_transactions': !exists(json, 'scheduled_transactions') ? undefined : (json['scheduled_transactions'].map(ScheduledTransactionSummaryFromJSON)), - 'scheduled_subtransactions': !exists(json, 'scheduled_subtransactions') ? undefined : (json['scheduled_subtransactions'].map(ScheduledSubTransactionFromJSON)), + 'last_modified_on': json['last_modified_on'] == null ? undefined : json['last_modified_on'], + 'first_month': json['first_month'] == null ? undefined : json['first_month'], + 'last_month': json['last_month'] == null ? undefined : json['last_month'], + 'date_format': json['date_format'] == null ? undefined : DateFormatFromJSON(json['date_format']), + 'currency_format': json['currency_format'] == null ? undefined : CurrencyFormatFromJSON(json['currency_format']), + 'accounts': json['accounts'] == null ? undefined : (json['accounts'].map(AccountFromJSON)), + 'payees': json['payees'] == null ? undefined : (json['payees'].map(PayeeFromJSON)), + 'payee_locations': json['payee_locations'] == null ? undefined : (json['payee_locations'].map(PayeeLocationFromJSON)), + 'category_groups': json['category_groups'] == null ? undefined : (json['category_groups'].map(CategoryGroupFromJSON)), + 'categories': json['categories'] == null ? undefined : (json['categories'].map(CategoryFromJSON)), + 'months': json['months'] == null ? undefined : (json['months'].map(MonthDetailFromJSON)), + 'transactions': json['transactions'] == null ? undefined : (json['transactions'].map(TransactionSummaryFromJSON)), + 'subtransactions': json['subtransactions'] == null ? undefined : (json['subtransactions'].map(SubTransactionFromJSON)), + 'scheduled_transactions': json['scheduled_transactions'] == null ? undefined : (json['scheduled_transactions'].map(ScheduledTransactionSummaryFromJSON)), + 'scheduled_subtransactions': json['scheduled_subtransactions'] == null ? undefined : (json['scheduled_subtransactions'].map(ScheduledSubTransactionFromJSON)), }; } export function BudgetDetailToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'id': value.id, - 'name': value.name, - 'last_modified_on': value.last_modified_on, - 'first_month': value.first_month, - 'last_month': value.last_month, - 'date_format': DateFormatToJSON(value.date_format), - 'currency_format': CurrencyFormatToJSON(value.currency_format), - 'accounts': value.accounts === undefined ? undefined : (value.accounts.map(AccountToJSON)), - 'payees': value.payees === undefined ? undefined : (value.payees.map(PayeeToJSON)), - 'payee_locations': value.payee_locations === undefined ? undefined : (value.payee_locations.map(PayeeLocationToJSON)), - 'category_groups': value.category_groups === undefined ? undefined : (value.category_groups.map(CategoryGroupToJSON)), - 'categories': value.categories === undefined ? undefined : (value.categories.map(CategoryToJSON)), - 'months': value.months === undefined ? undefined : (value.months.map(MonthDetailToJSON)), - 'transactions': value.transactions === undefined ? undefined : (value.transactions.map(TransactionSummaryToJSON)), - 'subtransactions': value.subtransactions === undefined ? undefined : (value.subtransactions.map(SubTransactionToJSON)), - 'scheduled_transactions': value.scheduled_transactions === undefined ? undefined : (value.scheduled_transactions.map(ScheduledTransactionSummaryToJSON)), - 'scheduled_subtransactions': value.scheduled_subtransactions === undefined ? undefined : (value.scheduled_subtransactions.map(ScheduledSubTransactionToJSON)), + 'id': value['id'], + 'name': value['name'], + 'last_modified_on': value['last_modified_on'], + 'first_month': value['first_month'], + 'last_month': value['last_month'], + 'date_format': DateFormatToJSON(value['date_format']), + 'currency_format': CurrencyFormatToJSON(value['currency_format']), + 'accounts': value['accounts'] == null ? undefined : (value['accounts'].map(AccountToJSON)), + 'payees': value['payees'] == null ? undefined : (value['payees'].map(PayeeToJSON)), + 'payee_locations': value['payee_locations'] == null ? undefined : (value['payee_locations'].map(PayeeLocationToJSON)), + 'category_groups': value['category_groups'] == null ? undefined : (value['category_groups'].map(CategoryGroupToJSON)), + 'categories': value['categories'] == null ? undefined : (value['categories'].map(CategoryToJSON)), + 'months': value['months'] == null ? undefined : (value['months'].map(MonthDetailToJSON)), + 'transactions': value['transactions'] == null ? undefined : (value['transactions'].map(TransactionSummaryToJSON)), + 'subtransactions': value['subtransactions'] == null ? undefined : (value['subtransactions'].map(SubTransactionToJSON)), + 'scheduled_transactions': value['scheduled_transactions'] == null ? undefined : (value['scheduled_transactions'].map(ScheduledTransactionSummaryToJSON)), + 'scheduled_subtransactions': value['scheduled_subtransactions'] == null ? undefined : (value['scheduled_subtransactions'].map(ScheduledSubTransactionToJSON)), }; } diff --git a/dist/esm/models/BudgetDetailResponse.d.ts b/dist/esm/models/BudgetDetailResponse.d.ts index 5e8cbf7..424654c 100644 --- a/dist/esm/models/BudgetDetailResponse.d.ts +++ b/dist/esm/models/BudgetDetailResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { BudgetDetailResponseData } from './BudgetDetailResponseData'; /** @@ -26,7 +21,7 @@ export interface BudgetDetailResponse { /** * Check if a given object implements the BudgetDetailResponse interface. */ -export declare function instanceOfBudgetDetailResponse(value: object): boolean; +export declare function instanceOfBudgetDetailResponse(value: object): value is BudgetDetailResponse; export declare function BudgetDetailResponseFromJSON(json: any): BudgetDetailResponse; export declare function BudgetDetailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetDetailResponse; export declare function BudgetDetailResponseToJSON(value?: BudgetDetailResponse | null): any; diff --git a/dist/esm/models/BudgetDetailResponse.js b/dist/esm/models/BudgetDetailResponse.js index b9924e9..30f2a70 100644 --- a/dist/esm/models/BudgetDetailResponse.js +++ b/dist/esm/models/BudgetDetailResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { BudgetDetailResponseDataFromJSON, BudgetDetailResponseDataToJSON, } from './BudgetDetailResponseData'; /** * Check if a given object implements the BudgetDetailResponse interface. */ export function instanceOfBudgetDetailResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function BudgetDetailResponseFromJSON(json) { return BudgetDetailResponseFromJSONTyped(json, false); } export function BudgetDetailResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function BudgetDetailResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function BudgetDetailResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': BudgetDetailResponseDataToJSON(value.data), + 'data': BudgetDetailResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/BudgetDetailResponseData.d.ts b/dist/esm/models/BudgetDetailResponseData.d.ts index 441ed46..3741766 100644 --- a/dist/esm/models/BudgetDetailResponseData.d.ts +++ b/dist/esm/models/BudgetDetailResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { BudgetDetail } from './BudgetDetail'; /** @@ -32,7 +27,7 @@ export interface BudgetDetailResponseData { /** * Check if a given object implements the BudgetDetailResponseData interface. */ -export declare function instanceOfBudgetDetailResponseData(value: object): boolean; +export declare function instanceOfBudgetDetailResponseData(value: object): value is BudgetDetailResponseData; export declare function BudgetDetailResponseDataFromJSON(json: any): BudgetDetailResponseData; export declare function BudgetDetailResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetDetailResponseData; export declare function BudgetDetailResponseDataToJSON(value?: BudgetDetailResponseData | null): any; diff --git a/dist/esm/models/BudgetDetailResponseData.js b/dist/esm/models/BudgetDetailResponseData.js index a068b8b..73625f6 100644 --- a/dist/esm/models/BudgetDetailResponseData.js +++ b/dist/esm/models/BudgetDetailResponseData.js @@ -4,28 +4,24 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { BudgetDetailFromJSON, BudgetDetailToJSON, } from './BudgetDetail'; /** * Check if a given object implements the BudgetDetailResponseData interface. */ export function instanceOfBudgetDetailResponseData(value) { - var isInstance = true; - isInstance = isInstance && "budget" in value; - isInstance = isInstance && "server_knowledge" in value; - return isInstance; + if (!('budget' in value) || value['budget'] === undefined) + return false; + if (!('server_knowledge' in value) || value['server_knowledge'] === undefined) + return false; + return true; } export function BudgetDetailResponseDataFromJSON(json) { return BudgetDetailResponseDataFromJSONTyped(json, false); } export function BudgetDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -34,14 +30,11 @@ export function BudgetDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) }; } export function BudgetDetailResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'budget': BudgetDetailToJSON(value.budget), - 'server_knowledge': value.server_knowledge, + 'budget': BudgetDetailToJSON(value['budget']), + 'server_knowledge': value['server_knowledge'], }; } diff --git a/dist/esm/models/BudgetSettings.d.ts b/dist/esm/models/BudgetSettings.d.ts index b46a7f7..ba5fb92 100644 --- a/dist/esm/models/BudgetSettings.d.ts +++ b/dist/esm/models/BudgetSettings.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { CurrencyFormat } from './CurrencyFormat'; import type { DateFormat } from './DateFormat'; @@ -33,7 +28,7 @@ export interface BudgetSettings { /** * Check if a given object implements the BudgetSettings interface. */ -export declare function instanceOfBudgetSettings(value: object): boolean; +export declare function instanceOfBudgetSettings(value: object): value is BudgetSettings; export declare function BudgetSettingsFromJSON(json: any): BudgetSettings; export declare function BudgetSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSettings; export declare function BudgetSettingsToJSON(value?: BudgetSettings | null): any; diff --git a/dist/esm/models/BudgetSettings.js b/dist/esm/models/BudgetSettings.js index 40df0b7..0155842 100644 --- a/dist/esm/models/BudgetSettings.js +++ b/dist/esm/models/BudgetSettings.js @@ -4,12 +4,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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { CurrencyFormatFromJSON, CurrencyFormatToJSON, } from './CurrencyFormat'; import { DateFormatFromJSON, DateFormatToJSON, } from './DateFormat'; @@ -17,16 +12,17 @@ import { DateFormatFromJSON, DateFormatToJSON, } from './DateFormat'; * Check if a given object implements the BudgetSettings interface. */ export function instanceOfBudgetSettings(value) { - var isInstance = true; - isInstance = isInstance && "date_format" in value; - isInstance = isInstance && "currency_format" in value; - return isInstance; + if (!('date_format' in value) || value['date_format'] === undefined) + return false; + if (!('currency_format' in value) || value['currency_format'] === undefined) + return false; + return true; } export function BudgetSettingsFromJSON(json) { return BudgetSettingsFromJSONTyped(json, false); } export function BudgetSettingsFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -35,14 +31,11 @@ export function BudgetSettingsFromJSONTyped(json, ignoreDiscriminator) { }; } export function BudgetSettingsToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'date_format': DateFormatToJSON(value.date_format), - 'currency_format': CurrencyFormatToJSON(value.currency_format), + 'date_format': DateFormatToJSON(value['date_format']), + 'currency_format': CurrencyFormatToJSON(value['currency_format']), }; } diff --git a/dist/esm/models/BudgetSettingsResponse.d.ts b/dist/esm/models/BudgetSettingsResponse.d.ts index 05aa44a..356c5c6 100644 --- a/dist/esm/models/BudgetSettingsResponse.d.ts +++ b/dist/esm/models/BudgetSettingsResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { BudgetSettingsResponseData } from './BudgetSettingsResponseData'; /** @@ -26,7 +21,7 @@ export interface BudgetSettingsResponse { /** * Check if a given object implements the BudgetSettingsResponse interface. */ -export declare function instanceOfBudgetSettingsResponse(value: object): boolean; +export declare function instanceOfBudgetSettingsResponse(value: object): value is BudgetSettingsResponse; export declare function BudgetSettingsResponseFromJSON(json: any): BudgetSettingsResponse; export declare function BudgetSettingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSettingsResponse; export declare function BudgetSettingsResponseToJSON(value?: BudgetSettingsResponse | null): any; diff --git a/dist/esm/models/BudgetSettingsResponse.js b/dist/esm/models/BudgetSettingsResponse.js index ab99254..aa731e6 100644 --- a/dist/esm/models/BudgetSettingsResponse.js +++ b/dist/esm/models/BudgetSettingsResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { BudgetSettingsResponseDataFromJSON, BudgetSettingsResponseDataToJSON, } from './BudgetSettingsResponseData'; /** * Check if a given object implements the BudgetSettingsResponse interface. */ export function instanceOfBudgetSettingsResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function BudgetSettingsResponseFromJSON(json) { return BudgetSettingsResponseFromJSONTyped(json, false); } export function BudgetSettingsResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function BudgetSettingsResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function BudgetSettingsResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': BudgetSettingsResponseDataToJSON(value.data), + 'data': BudgetSettingsResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/BudgetSettingsResponseData.d.ts b/dist/esm/models/BudgetSettingsResponseData.d.ts index 1c44e41..1ca9e4d 100644 --- a/dist/esm/models/BudgetSettingsResponseData.d.ts +++ b/dist/esm/models/BudgetSettingsResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { BudgetSettings } from './BudgetSettings'; /** @@ -26,7 +21,7 @@ export interface BudgetSettingsResponseData { /** * Check if a given object implements the BudgetSettingsResponseData interface. */ -export declare function instanceOfBudgetSettingsResponseData(value: object): boolean; +export declare function instanceOfBudgetSettingsResponseData(value: object): value is BudgetSettingsResponseData; export declare function BudgetSettingsResponseDataFromJSON(json: any): BudgetSettingsResponseData; export declare function BudgetSettingsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSettingsResponseData; export declare function BudgetSettingsResponseDataToJSON(value?: BudgetSettingsResponseData | null): any; diff --git a/dist/esm/models/BudgetSettingsResponseData.js b/dist/esm/models/BudgetSettingsResponseData.js index 5aa23ff..b190b08 100644 --- a/dist/esm/models/BudgetSettingsResponseData.js +++ b/dist/esm/models/BudgetSettingsResponseData.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { BudgetSettingsFromJSON, BudgetSettingsToJSON, } from './BudgetSettings'; /** * Check if a given object implements the BudgetSettingsResponseData interface. */ export function instanceOfBudgetSettingsResponseData(value) { - var isInstance = true; - isInstance = isInstance && "settings" in value; - return isInstance; + if (!('settings' in value) || value['settings'] === undefined) + return false; + return true; } export function BudgetSettingsResponseDataFromJSON(json) { return BudgetSettingsResponseDataFromJSONTyped(json, false); } export function BudgetSettingsResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function BudgetSettingsResponseDataFromJSONTyped(json, ignoreDiscriminato }; } export function BudgetSettingsResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'settings': BudgetSettingsToJSON(value.settings), + 'settings': BudgetSettingsToJSON(value['settings']), }; } diff --git a/dist/esm/models/BudgetSummary.d.ts b/dist/esm/models/BudgetSummary.d.ts index 978b6f8..3e88327 100644 --- a/dist/esm/models/BudgetSummary.d.ts +++ b/dist/esm/models/BudgetSummary.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { Account } from './Account'; import type { CurrencyFormat } from './CurrencyFormat'; @@ -70,7 +65,7 @@ export interface BudgetSummary { /** * Check if a given object implements the BudgetSummary interface. */ -export declare function instanceOfBudgetSummary(value: object): boolean; +export declare function instanceOfBudgetSummary(value: object): value is BudgetSummary; export declare function BudgetSummaryFromJSON(json: any): BudgetSummary; export declare function BudgetSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSummary; export declare function BudgetSummaryToJSON(value?: BudgetSummary | null): any; diff --git a/dist/esm/models/BudgetSummary.js b/dist/esm/models/BudgetSummary.js index 13f0b99..c3da710 100644 --- a/dist/esm/models/BudgetSummary.js +++ b/dist/esm/models/BudgetSummary.js @@ -4,14 +4,8 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; import { AccountFromJSON, AccountToJSON, } from './Account'; import { CurrencyFormatFromJSON, CurrencyFormatToJSON, } from './CurrencyFormat'; import { DateFormatFromJSON, DateFormatToJSON, } from './DateFormat'; @@ -19,44 +13,42 @@ import { DateFormatFromJSON, DateFormatToJSON, } from './DateFormat'; * Check if a given object implements the BudgetSummary interface. */ export function instanceOfBudgetSummary(value) { - var isInstance = true; - isInstance = isInstance && "id" in value; - isInstance = isInstance && "name" in value; - return isInstance; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + return true; } export function BudgetSummaryFromJSON(json) { return BudgetSummaryFromJSONTyped(json, false); } export function BudgetSummaryFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { 'id': json['id'], 'name': json['name'], - 'last_modified_on': !exists(json, 'last_modified_on') ? undefined : json['last_modified_on'], - 'first_month': !exists(json, 'first_month') ? undefined : json['first_month'], - 'last_month': !exists(json, 'last_month') ? undefined : json['last_month'], - 'date_format': !exists(json, 'date_format') ? undefined : DateFormatFromJSON(json['date_format']), - 'currency_format': !exists(json, 'currency_format') ? undefined : CurrencyFormatFromJSON(json['currency_format']), - 'accounts': !exists(json, 'accounts') ? undefined : (json['accounts'].map(AccountFromJSON)), + 'last_modified_on': json['last_modified_on'] == null ? undefined : json['last_modified_on'], + 'first_month': json['first_month'] == null ? undefined : json['first_month'], + 'last_month': json['last_month'] == null ? undefined : json['last_month'], + 'date_format': json['date_format'] == null ? undefined : DateFormatFromJSON(json['date_format']), + 'currency_format': json['currency_format'] == null ? undefined : CurrencyFormatFromJSON(json['currency_format']), + 'accounts': json['accounts'] == null ? undefined : (json['accounts'].map(AccountFromJSON)), }; } export function BudgetSummaryToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'id': value.id, - 'name': value.name, - 'last_modified_on': value.last_modified_on, - 'first_month': value.first_month, - 'last_month': value.last_month, - 'date_format': DateFormatToJSON(value.date_format), - 'currency_format': CurrencyFormatToJSON(value.currency_format), - 'accounts': value.accounts === undefined ? undefined : (value.accounts.map(AccountToJSON)), + 'id': value['id'], + 'name': value['name'], + 'last_modified_on': value['last_modified_on'], + 'first_month': value['first_month'], + 'last_month': value['last_month'], + 'date_format': DateFormatToJSON(value['date_format']), + 'currency_format': CurrencyFormatToJSON(value['currency_format']), + 'accounts': value['accounts'] == null ? undefined : (value['accounts'].map(AccountToJSON)), }; } diff --git a/dist/esm/models/BudgetSummaryResponse.d.ts b/dist/esm/models/BudgetSummaryResponse.d.ts index d4ae1aa..496b948 100644 --- a/dist/esm/models/BudgetSummaryResponse.d.ts +++ b/dist/esm/models/BudgetSummaryResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { BudgetSummaryResponseData } from './BudgetSummaryResponseData'; /** @@ -26,7 +21,7 @@ export interface BudgetSummaryResponse { /** * Check if a given object implements the BudgetSummaryResponse interface. */ -export declare function instanceOfBudgetSummaryResponse(value: object): boolean; +export declare function instanceOfBudgetSummaryResponse(value: object): value is BudgetSummaryResponse; export declare function BudgetSummaryResponseFromJSON(json: any): BudgetSummaryResponse; export declare function BudgetSummaryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSummaryResponse; export declare function BudgetSummaryResponseToJSON(value?: BudgetSummaryResponse | null): any; diff --git a/dist/esm/models/BudgetSummaryResponse.js b/dist/esm/models/BudgetSummaryResponse.js index 8a65d24..c524e6b 100644 --- a/dist/esm/models/BudgetSummaryResponse.js +++ b/dist/esm/models/BudgetSummaryResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { BudgetSummaryResponseDataFromJSON, BudgetSummaryResponseDataToJSON, } from './BudgetSummaryResponseData'; /** * Check if a given object implements the BudgetSummaryResponse interface. */ export function instanceOfBudgetSummaryResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function BudgetSummaryResponseFromJSON(json) { return BudgetSummaryResponseFromJSONTyped(json, false); } export function BudgetSummaryResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function BudgetSummaryResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function BudgetSummaryResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': BudgetSummaryResponseDataToJSON(value.data), + 'data': BudgetSummaryResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/BudgetSummaryResponseData.d.ts b/dist/esm/models/BudgetSummaryResponseData.d.ts index 06643ee..f642cd2 100644 --- a/dist/esm/models/BudgetSummaryResponseData.d.ts +++ b/dist/esm/models/BudgetSummaryResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { BudgetSummary } from './BudgetSummary'; /** @@ -32,7 +27,7 @@ export interface BudgetSummaryResponseData { /** * Check if a given object implements the BudgetSummaryResponseData interface. */ -export declare function instanceOfBudgetSummaryResponseData(value: object): boolean; +export declare function instanceOfBudgetSummaryResponseData(value: object): value is BudgetSummaryResponseData; export declare function BudgetSummaryResponseDataFromJSON(json: any): BudgetSummaryResponseData; export declare function BudgetSummaryResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSummaryResponseData; export declare function BudgetSummaryResponseDataToJSON(value?: BudgetSummaryResponseData | null): any; diff --git a/dist/esm/models/BudgetSummaryResponseData.js b/dist/esm/models/BudgetSummaryResponseData.js index 1bf3586..68e2028 100644 --- a/dist/esm/models/BudgetSummaryResponseData.js +++ b/dist/esm/models/BudgetSummaryResponseData.js @@ -4,44 +4,35 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; import { BudgetSummaryFromJSON, BudgetSummaryToJSON, } from './BudgetSummary'; /** * Check if a given object implements the BudgetSummaryResponseData interface. */ export function instanceOfBudgetSummaryResponseData(value) { - var isInstance = true; - isInstance = isInstance && "budgets" in value; - return isInstance; + if (!('budgets' in value) || value['budgets'] === undefined) + return false; + return true; } export function BudgetSummaryResponseDataFromJSON(json) { return BudgetSummaryResponseDataFromJSONTyped(json, false); } export function BudgetSummaryResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { 'budgets': (json['budgets'].map(BudgetSummaryFromJSON)), - 'default_budget': !exists(json, 'default_budget') ? undefined : BudgetSummaryFromJSON(json['default_budget']), + 'default_budget': json['default_budget'] == null ? undefined : BudgetSummaryFromJSON(json['default_budget']), }; } export function BudgetSummaryResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'budgets': (value.budgets.map(BudgetSummaryToJSON)), - 'default_budget': BudgetSummaryToJSON(value.default_budget), + 'budgets': (value['budgets'].map(BudgetSummaryToJSON)), + 'default_budget': BudgetSummaryToJSON(value['default_budget']), }; } diff --git a/dist/esm/models/BulkResponse.d.ts b/dist/esm/models/BulkResponse.d.ts index 43f7b09..d6d79e9 100644 --- a/dist/esm/models/BulkResponse.d.ts +++ b/dist/esm/models/BulkResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { BulkResponseData } from './BulkResponseData'; /** @@ -26,7 +21,7 @@ export interface BulkResponse { /** * Check if a given object implements the BulkResponse interface. */ -export declare function instanceOfBulkResponse(value: object): boolean; +export declare function instanceOfBulkResponse(value: object): value is BulkResponse; export declare function BulkResponseFromJSON(json: any): BulkResponse; export declare function BulkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkResponse; export declare function BulkResponseToJSON(value?: BulkResponse | null): any; diff --git a/dist/esm/models/BulkResponse.js b/dist/esm/models/BulkResponse.js index 28ac1b5..5ce886c 100644 --- a/dist/esm/models/BulkResponse.js +++ b/dist/esm/models/BulkResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { BulkResponseDataFromJSON, BulkResponseDataToJSON, } from './BulkResponseData'; /** * Check if a given object implements the BulkResponse interface. */ export function instanceOfBulkResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function BulkResponseFromJSON(json) { return BulkResponseFromJSONTyped(json, false); } export function BulkResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function BulkResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function BulkResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': BulkResponseDataToJSON(value.data), + 'data': BulkResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/BulkResponseData.d.ts b/dist/esm/models/BulkResponseData.d.ts index b55d554..a95238b 100644 --- a/dist/esm/models/BulkResponseData.d.ts +++ b/dist/esm/models/BulkResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { BulkResponseDataBulk } from './BulkResponseDataBulk'; /** @@ -26,7 +21,7 @@ export interface BulkResponseData { /** * Check if a given object implements the BulkResponseData interface. */ -export declare function instanceOfBulkResponseData(value: object): boolean; +export declare function instanceOfBulkResponseData(value: object): value is BulkResponseData; export declare function BulkResponseDataFromJSON(json: any): BulkResponseData; export declare function BulkResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkResponseData; export declare function BulkResponseDataToJSON(value?: BulkResponseData | null): any; diff --git a/dist/esm/models/BulkResponseData.js b/dist/esm/models/BulkResponseData.js index 00e6ff8..1d9ebd0 100644 --- a/dist/esm/models/BulkResponseData.js +++ b/dist/esm/models/BulkResponseData.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { BulkResponseDataBulkFromJSON, BulkResponseDataBulkToJSON, } from './BulkResponseDataBulk'; /** * Check if a given object implements the BulkResponseData interface. */ export function instanceOfBulkResponseData(value) { - var isInstance = true; - isInstance = isInstance && "bulk" in value; - return isInstance; + if (!('bulk' in value) || value['bulk'] === undefined) + return false; + return true; } export function BulkResponseDataFromJSON(json) { return BulkResponseDataFromJSONTyped(json, false); } export function BulkResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function BulkResponseDataFromJSONTyped(json, ignoreDiscriminator) { }; } export function BulkResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'bulk': BulkResponseDataBulkToJSON(value.bulk), + 'bulk': BulkResponseDataBulkToJSON(value['bulk']), }; } diff --git a/dist/esm/models/BulkResponseDataBulk.d.ts b/dist/esm/models/BulkResponseDataBulk.d.ts index 44a5457..0b30a0c 100644 --- a/dist/esm/models/BulkResponseDataBulk.d.ts +++ b/dist/esm/models/BulkResponseDataBulk.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * @@ -31,7 +26,7 @@ export interface BulkResponseDataBulk { /** * Check if a given object implements the BulkResponseDataBulk interface. */ -export declare function instanceOfBulkResponseDataBulk(value: object): boolean; +export declare function instanceOfBulkResponseDataBulk(value: object): value is BulkResponseDataBulk; export declare function BulkResponseDataBulkFromJSON(json: any): BulkResponseDataBulk; export declare function BulkResponseDataBulkFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkResponseDataBulk; export declare function BulkResponseDataBulkToJSON(value?: BulkResponseDataBulk | null): any; diff --git a/dist/esm/models/BulkResponseDataBulk.js b/dist/esm/models/BulkResponseDataBulk.js index cedea44..8be9932 100644 --- a/dist/esm/models/BulkResponseDataBulk.js +++ b/dist/esm/models/BulkResponseDataBulk.js @@ -4,27 +4,23 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * Check if a given object implements the BulkResponseDataBulk interface. */ export function instanceOfBulkResponseDataBulk(value) { - var isInstance = true; - isInstance = isInstance && "transaction_ids" in value; - isInstance = isInstance && "duplicate_import_ids" in value; - return isInstance; + if (!('transaction_ids' in value) || value['transaction_ids'] === undefined) + return false; + if (!('duplicate_import_ids' in value) || value['duplicate_import_ids'] === undefined) + return false; + return true; } export function BulkResponseDataBulkFromJSON(json) { return BulkResponseDataBulkFromJSONTyped(json, false); } export function BulkResponseDataBulkFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -33,14 +29,11 @@ export function BulkResponseDataBulkFromJSONTyped(json, ignoreDiscriminator) { }; } export function BulkResponseDataBulkToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'transaction_ids': value.transaction_ids, - 'duplicate_import_ids': value.duplicate_import_ids, + 'transaction_ids': value['transaction_ids'], + 'duplicate_import_ids': value['duplicate_import_ids'], }; } diff --git a/dist/esm/models/BulkTransactions.d.ts b/dist/esm/models/BulkTransactions.d.ts index 2bc5545..3bf10a7 100644 --- a/dist/esm/models/BulkTransactions.d.ts +++ b/dist/esm/models/BulkTransactions.d.ts @@ -2,14 +2,9 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import type { SaveTransaction } from './SaveTransaction'; +import type { SaveTransactionWithOptionalFields } from './SaveTransactionWithOptionalFields'; /** * * @export @@ -18,15 +13,15 @@ import type { SaveTransaction } from './SaveTransaction'; export interface BulkTransactions { /** * - * @type {Array} + * @type {Array} * @memberof BulkTransactions */ - transactions: Array; + transactions: Array; } /** * Check if a given object implements the BulkTransactions interface. */ -export declare function instanceOfBulkTransactions(value: object): boolean; +export declare function instanceOfBulkTransactions(value: object): value is BulkTransactions; export declare function BulkTransactionsFromJSON(json: any): BulkTransactions; export declare function BulkTransactionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkTransactions; export declare function BulkTransactionsToJSON(value?: BulkTransactions | null): any; diff --git a/dist/esm/models/BulkTransactions.js b/dist/esm/models/BulkTransactions.js index 7a127bb..b7c9713 100644 --- a/dist/esm/models/BulkTransactions.js +++ b/dist/esm/models/BulkTransactions.js @@ -4,41 +4,33 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { SaveTransactionFromJSON, SaveTransactionToJSON, } from './SaveTransaction'; +import { SaveTransactionWithOptionalFieldsFromJSON, SaveTransactionWithOptionalFieldsToJSON, } from './SaveTransactionWithOptionalFields'; /** * Check if a given object implements the BulkTransactions interface. */ export function instanceOfBulkTransactions(value) { - var isInstance = true; - isInstance = isInstance && "transactions" in value; - return isInstance; + if (!('transactions' in value) || value['transactions'] === undefined) + return false; + return true; } export function BulkTransactionsFromJSON(json) { return BulkTransactionsFromJSONTyped(json, false); } export function BulkTransactionsFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { - 'transactions': (json['transactions'].map(SaveTransactionFromJSON)), + 'transactions': (json['transactions'].map(SaveTransactionWithOptionalFieldsFromJSON)), }; } export function BulkTransactionsToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'transactions': (value.transactions.map(SaveTransactionToJSON)), + 'transactions': (value['transactions'].map(SaveTransactionWithOptionalFieldsToJSON)), }; } diff --git a/dist/esm/models/CategoriesResponse.d.ts b/dist/esm/models/CategoriesResponse.d.ts index 0bf20ce..959e1ec 100644 --- a/dist/esm/models/CategoriesResponse.d.ts +++ b/dist/esm/models/CategoriesResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { CategoriesResponseData } from './CategoriesResponseData'; /** @@ -26,7 +21,7 @@ export interface CategoriesResponse { /** * Check if a given object implements the CategoriesResponse interface. */ -export declare function instanceOfCategoriesResponse(value: object): boolean; +export declare function instanceOfCategoriesResponse(value: object): value is CategoriesResponse; export declare function CategoriesResponseFromJSON(json: any): CategoriesResponse; export declare function CategoriesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoriesResponse; export declare function CategoriesResponseToJSON(value?: CategoriesResponse | null): any; diff --git a/dist/esm/models/CategoriesResponse.js b/dist/esm/models/CategoriesResponse.js index 853140b..3b39abc 100644 --- a/dist/esm/models/CategoriesResponse.js +++ b/dist/esm/models/CategoriesResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { CategoriesResponseDataFromJSON, CategoriesResponseDataToJSON, } from './CategoriesResponseData'; /** * Check if a given object implements the CategoriesResponse interface. */ export function instanceOfCategoriesResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function CategoriesResponseFromJSON(json) { return CategoriesResponseFromJSONTyped(json, false); } export function CategoriesResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function CategoriesResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function CategoriesResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': CategoriesResponseDataToJSON(value.data), + 'data': CategoriesResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/CategoriesResponseData.d.ts b/dist/esm/models/CategoriesResponseData.d.ts index 706a289..0faa6bb 100644 --- a/dist/esm/models/CategoriesResponseData.d.ts +++ b/dist/esm/models/CategoriesResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { CategoryGroupWithCategories } from './CategoryGroupWithCategories'; /** @@ -32,7 +27,7 @@ export interface CategoriesResponseData { /** * Check if a given object implements the CategoriesResponseData interface. */ -export declare function instanceOfCategoriesResponseData(value: object): boolean; +export declare function instanceOfCategoriesResponseData(value: object): value is CategoriesResponseData; export declare function CategoriesResponseDataFromJSON(json: any): CategoriesResponseData; export declare function CategoriesResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoriesResponseData; export declare function CategoriesResponseDataToJSON(value?: CategoriesResponseData | null): any; diff --git a/dist/esm/models/CategoriesResponseData.js b/dist/esm/models/CategoriesResponseData.js index e8a7b71..495e40a 100644 --- a/dist/esm/models/CategoriesResponseData.js +++ b/dist/esm/models/CategoriesResponseData.js @@ -4,28 +4,24 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { CategoryGroupWithCategoriesFromJSON, CategoryGroupWithCategoriesToJSON, } from './CategoryGroupWithCategories'; /** * Check if a given object implements the CategoriesResponseData interface. */ export function instanceOfCategoriesResponseData(value) { - var isInstance = true; - isInstance = isInstance && "category_groups" in value; - isInstance = isInstance && "server_knowledge" in value; - return isInstance; + if (!('category_groups' in value) || value['category_groups'] === undefined) + return false; + if (!('server_knowledge' in value) || value['server_knowledge'] === undefined) + return false; + return true; } export function CategoriesResponseDataFromJSON(json) { return CategoriesResponseDataFromJSONTyped(json, false); } export function CategoriesResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -34,14 +30,11 @@ export function CategoriesResponseDataFromJSONTyped(json, ignoreDiscriminator) { }; } export function CategoriesResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'category_groups': (value.category_groups.map(CategoryGroupWithCategoriesToJSON)), - 'server_knowledge': value.server_knowledge, + 'category_groups': (value['category_groups'].map(CategoryGroupWithCategoriesToJSON)), + 'server_knowledge': value['server_knowledge'], }; } diff --git a/dist/esm/models/Category.d.ts b/dist/esm/models/Category.d.ts index da8f74b..9ac5e64 100644 --- a/dist/esm/models/Category.d.ts +++ b/dist/esm/models/Category.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * @@ -80,7 +75,13 @@ export interface Category { * @type {string} * @memberof Category */ - goal_type?: CategoryGoalTypeEnum; + goal_type?: CategoryGoalTypeEnum | null; + /** + * Indicates the monthly rollover behavior for "NEED"-type goals. When "true", the goal will always ask for the target amount in the new month ("Set Aside"). When "false", previous month category funding is used ("Refill"). For other goal types, this field will be null. + * @type {boolean} + * @memberof Category + */ + goal_needs_whole_amount?: boolean | null; /** * A day offset modifier for the goal's due date. When goal_cadence is 2 (Weekly), this value specifies which day of the week the goal is due (0 = Sunday, 6 = Saturday). Otherwise, this value specifies which day of the month the goal is due (1 = 1st, 31 = 31st, null = Last day of Month). * @type {number} @@ -164,11 +165,11 @@ export declare const CategoryGoalTypeEnum: { readonly Need: "NEED"; readonly Debt: "DEBT"; }; -export declare type CategoryGoalTypeEnum = typeof CategoryGoalTypeEnum[keyof typeof CategoryGoalTypeEnum]; +export type CategoryGoalTypeEnum = typeof CategoryGoalTypeEnum[keyof typeof CategoryGoalTypeEnum]; /** * Check if a given object implements the Category interface. */ -export declare function instanceOfCategory(value: object): boolean; +export declare function instanceOfCategory(value: object): value is Category; export declare function CategoryFromJSON(json: any): Category; export declare function CategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): Category; export declare function CategoryToJSON(value?: Category | null): any; diff --git a/dist/esm/models/Category.js b/dist/esm/models/Category.js index 017c760..a38d8af 100644 --- a/dist/esm/models/Category.js +++ b/dist/esm/models/Category.js @@ -4,14 +4,8 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; /** * @export */ @@ -26,80 +20,86 @@ export var CategoryGoalTypeEnum = { * Check if a given object implements the Category interface. */ export function instanceOfCategory(value) { - var isInstance = true; - isInstance = isInstance && "id" in value; - isInstance = isInstance && "category_group_id" in value; - isInstance = isInstance && "name" in value; - isInstance = isInstance && "hidden" in value; - isInstance = isInstance && "budgeted" in value; - isInstance = isInstance && "activity" in value; - isInstance = isInstance && "balance" in value; - isInstance = isInstance && "deleted" in value; - return isInstance; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('category_group_id' in value) || value['category_group_id'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('hidden' in value) || value['hidden'] === undefined) + return false; + if (!('budgeted' in value) || value['budgeted'] === undefined) + return false; + if (!('activity' in value) || value['activity'] === undefined) + return false; + if (!('balance' in value) || value['balance'] === undefined) + return false; + if (!('deleted' in value) || value['deleted'] === undefined) + return false; + return true; } export function CategoryFromJSON(json) { return CategoryFromJSONTyped(json, false); } export function CategoryFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { 'id': json['id'], 'category_group_id': json['category_group_id'], - 'category_group_name': !exists(json, 'category_group_name') ? undefined : json['category_group_name'], + 'category_group_name': json['category_group_name'] == null ? undefined : json['category_group_name'], 'name': json['name'], 'hidden': json['hidden'], - 'original_category_group_id': !exists(json, 'original_category_group_id') ? undefined : json['original_category_group_id'], - 'note': !exists(json, 'note') ? undefined : json['note'], + 'original_category_group_id': json['original_category_group_id'] == null ? undefined : json['original_category_group_id'], + 'note': json['note'] == null ? undefined : json['note'], 'budgeted': json['budgeted'], 'activity': json['activity'], 'balance': json['balance'], - 'goal_type': !exists(json, 'goal_type') ? undefined : json['goal_type'], - 'goal_day': !exists(json, 'goal_day') ? undefined : json['goal_day'], - 'goal_cadence': !exists(json, 'goal_cadence') ? undefined : json['goal_cadence'], - 'goal_cadence_frequency': !exists(json, 'goal_cadence_frequency') ? undefined : json['goal_cadence_frequency'], - 'goal_creation_month': !exists(json, 'goal_creation_month') ? undefined : json['goal_creation_month'], - 'goal_target': !exists(json, 'goal_target') ? undefined : json['goal_target'], - 'goal_target_month': !exists(json, 'goal_target_month') ? undefined : json['goal_target_month'], - 'goal_percentage_complete': !exists(json, 'goal_percentage_complete') ? undefined : json['goal_percentage_complete'], - 'goal_months_to_budget': !exists(json, 'goal_months_to_budget') ? undefined : json['goal_months_to_budget'], - 'goal_under_funded': !exists(json, 'goal_under_funded') ? undefined : json['goal_under_funded'], - 'goal_overall_funded': !exists(json, 'goal_overall_funded') ? undefined : json['goal_overall_funded'], - 'goal_overall_left': !exists(json, 'goal_overall_left') ? undefined : json['goal_overall_left'], + 'goal_type': json['goal_type'] == null ? undefined : json['goal_type'], + 'goal_needs_whole_amount': json['goal_needs_whole_amount'] == null ? undefined : json['goal_needs_whole_amount'], + 'goal_day': json['goal_day'] == null ? undefined : json['goal_day'], + 'goal_cadence': json['goal_cadence'] == null ? undefined : json['goal_cadence'], + 'goal_cadence_frequency': json['goal_cadence_frequency'] == null ? undefined : json['goal_cadence_frequency'], + 'goal_creation_month': json['goal_creation_month'] == null ? undefined : json['goal_creation_month'], + 'goal_target': json['goal_target'] == null ? undefined : json['goal_target'], + 'goal_target_month': json['goal_target_month'] == null ? undefined : json['goal_target_month'], + 'goal_percentage_complete': json['goal_percentage_complete'] == null ? undefined : json['goal_percentage_complete'], + 'goal_months_to_budget': json['goal_months_to_budget'] == null ? undefined : json['goal_months_to_budget'], + 'goal_under_funded': json['goal_under_funded'] == null ? undefined : json['goal_under_funded'], + 'goal_overall_funded': json['goal_overall_funded'] == null ? undefined : json['goal_overall_funded'], + 'goal_overall_left': json['goal_overall_left'] == null ? undefined : json['goal_overall_left'], 'deleted': json['deleted'], }; } export function CategoryToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'id': value.id, - 'category_group_id': value.category_group_id, - 'category_group_name': value.category_group_name, - 'name': value.name, - 'hidden': value.hidden, - 'original_category_group_id': value.original_category_group_id, - 'note': value.note, - 'budgeted': value.budgeted, - 'activity': value.activity, - 'balance': value.balance, - 'goal_type': value.goal_type, - 'goal_day': value.goal_day, - 'goal_cadence': value.goal_cadence, - 'goal_cadence_frequency': value.goal_cadence_frequency, - 'goal_creation_month': value.goal_creation_month, - 'goal_target': value.goal_target, - 'goal_target_month': value.goal_target_month, - 'goal_percentage_complete': value.goal_percentage_complete, - 'goal_months_to_budget': value.goal_months_to_budget, - 'goal_under_funded': value.goal_under_funded, - 'goal_overall_funded': value.goal_overall_funded, - 'goal_overall_left': value.goal_overall_left, - 'deleted': value.deleted, + 'id': value['id'], + 'category_group_id': value['category_group_id'], + 'category_group_name': value['category_group_name'], + 'name': value['name'], + 'hidden': value['hidden'], + 'original_category_group_id': value['original_category_group_id'], + 'note': value['note'], + 'budgeted': value['budgeted'], + 'activity': value['activity'], + 'balance': value['balance'], + 'goal_type': value['goal_type'], + 'goal_needs_whole_amount': value['goal_needs_whole_amount'], + 'goal_day': value['goal_day'], + 'goal_cadence': value['goal_cadence'], + 'goal_cadence_frequency': value['goal_cadence_frequency'], + 'goal_creation_month': value['goal_creation_month'], + 'goal_target': value['goal_target'], + 'goal_target_month': value['goal_target_month'], + 'goal_percentage_complete': value['goal_percentage_complete'], + 'goal_months_to_budget': value['goal_months_to_budget'], + 'goal_under_funded': value['goal_under_funded'], + 'goal_overall_funded': value['goal_overall_funded'], + 'goal_overall_left': value['goal_overall_left'], + 'deleted': value['deleted'], }; } diff --git a/dist/esm/models/CategoryGroup.d.ts b/dist/esm/models/CategoryGroup.d.ts index 7979c01..947ef09 100644 --- a/dist/esm/models/CategoryGroup.d.ts +++ b/dist/esm/models/CategoryGroup.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * @@ -43,7 +38,7 @@ export interface CategoryGroup { /** * Check if a given object implements the CategoryGroup interface. */ -export declare function instanceOfCategoryGroup(value: object): boolean; +export declare function instanceOfCategoryGroup(value: object): value is CategoryGroup; export declare function CategoryGroupFromJSON(json: any): CategoryGroup; export declare function CategoryGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryGroup; export declare function CategoryGroupToJSON(value?: CategoryGroup | null): any; diff --git a/dist/esm/models/CategoryGroup.js b/dist/esm/models/CategoryGroup.js index cca2d1a..def3229 100644 --- a/dist/esm/models/CategoryGroup.js +++ b/dist/esm/models/CategoryGroup.js @@ -4,29 +4,27 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * Check if a given object implements the CategoryGroup interface. */ export function instanceOfCategoryGroup(value) { - var isInstance = true; - isInstance = isInstance && "id" in value; - isInstance = isInstance && "name" in value; - isInstance = isInstance && "hidden" in value; - isInstance = isInstance && "deleted" in value; - return isInstance; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('hidden' in value) || value['hidden'] === undefined) + return false; + if (!('deleted' in value) || value['deleted'] === undefined) + return false; + return true; } export function CategoryGroupFromJSON(json) { return CategoryGroupFromJSONTyped(json, false); } export function CategoryGroupFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -37,16 +35,13 @@ export function CategoryGroupFromJSONTyped(json, ignoreDiscriminator) { }; } export function CategoryGroupToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'id': value.id, - 'name': value.name, - 'hidden': value.hidden, - 'deleted': value.deleted, + 'id': value['id'], + 'name': value['name'], + 'hidden': value['hidden'], + 'deleted': value['deleted'], }; } diff --git a/dist/esm/models/CategoryGroupWithCategories.d.ts b/dist/esm/models/CategoryGroupWithCategories.d.ts index 2628e06..590b971 100644 --- a/dist/esm/models/CategoryGroupWithCategories.d.ts +++ b/dist/esm/models/CategoryGroupWithCategories.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { Category } from './Category'; /** @@ -50,7 +45,7 @@ export interface CategoryGroupWithCategories { /** * Check if a given object implements the CategoryGroupWithCategories interface. */ -export declare function instanceOfCategoryGroupWithCategories(value: object): boolean; +export declare function instanceOfCategoryGroupWithCategories(value: object): value is CategoryGroupWithCategories; export declare function CategoryGroupWithCategoriesFromJSON(json: any): CategoryGroupWithCategories; export declare function CategoryGroupWithCategoriesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryGroupWithCategories; export declare function CategoryGroupWithCategoriesToJSON(value?: CategoryGroupWithCategories | null): any; diff --git a/dist/esm/models/CategoryGroupWithCategories.js b/dist/esm/models/CategoryGroupWithCategories.js index e464155..ed38dce 100644 --- a/dist/esm/models/CategoryGroupWithCategories.js +++ b/dist/esm/models/CategoryGroupWithCategories.js @@ -4,31 +4,30 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { CategoryFromJSON, CategoryToJSON, } from './Category'; /** * Check if a given object implements the CategoryGroupWithCategories interface. */ export function instanceOfCategoryGroupWithCategories(value) { - var isInstance = true; - isInstance = isInstance && "id" in value; - isInstance = isInstance && "name" in value; - isInstance = isInstance && "hidden" in value; - isInstance = isInstance && "deleted" in value; - isInstance = isInstance && "categories" in value; - return isInstance; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('hidden' in value) || value['hidden'] === undefined) + return false; + if (!('deleted' in value) || value['deleted'] === undefined) + return false; + if (!('categories' in value) || value['categories'] === undefined) + return false; + return true; } export function CategoryGroupWithCategoriesFromJSON(json) { return CategoryGroupWithCategoriesFromJSONTyped(json, false); } export function CategoryGroupWithCategoriesFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -40,17 +39,14 @@ export function CategoryGroupWithCategoriesFromJSONTyped(json, ignoreDiscriminat }; } export function CategoryGroupWithCategoriesToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'id': value.id, - 'name': value.name, - 'hidden': value.hidden, - 'deleted': value.deleted, - 'categories': (value.categories.map(CategoryToJSON)), + 'id': value['id'], + 'name': value['name'], + 'hidden': value['hidden'], + 'deleted': value['deleted'], + 'categories': (value['categories'].map(CategoryToJSON)), }; } diff --git a/dist/esm/models/CategoryResponse.d.ts b/dist/esm/models/CategoryResponse.d.ts index c2bc2da..e57d60b 100644 --- a/dist/esm/models/CategoryResponse.d.ts +++ b/dist/esm/models/CategoryResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { CategoryResponseData } from './CategoryResponseData'; /** @@ -26,7 +21,7 @@ export interface CategoryResponse { /** * Check if a given object implements the CategoryResponse interface. */ -export declare function instanceOfCategoryResponse(value: object): boolean; +export declare function instanceOfCategoryResponse(value: object): value is CategoryResponse; export declare function CategoryResponseFromJSON(json: any): CategoryResponse; export declare function CategoryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryResponse; export declare function CategoryResponseToJSON(value?: CategoryResponse | null): any; diff --git a/dist/esm/models/CategoryResponse.js b/dist/esm/models/CategoryResponse.js index b9335e9..cb03d55 100644 --- a/dist/esm/models/CategoryResponse.js +++ b/dist/esm/models/CategoryResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { CategoryResponseDataFromJSON, CategoryResponseDataToJSON, } from './CategoryResponseData'; /** * Check if a given object implements the CategoryResponse interface. */ export function instanceOfCategoryResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function CategoryResponseFromJSON(json) { return CategoryResponseFromJSONTyped(json, false); } export function CategoryResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function CategoryResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function CategoryResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': CategoryResponseDataToJSON(value.data), + 'data': CategoryResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/CategoryResponseData.d.ts b/dist/esm/models/CategoryResponseData.d.ts index d6d833f..dadf957 100644 --- a/dist/esm/models/CategoryResponseData.d.ts +++ b/dist/esm/models/CategoryResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { Category } from './Category'; /** @@ -26,7 +21,7 @@ export interface CategoryResponseData { /** * Check if a given object implements the CategoryResponseData interface. */ -export declare function instanceOfCategoryResponseData(value: object): boolean; +export declare function instanceOfCategoryResponseData(value: object): value is CategoryResponseData; export declare function CategoryResponseDataFromJSON(json: any): CategoryResponseData; export declare function CategoryResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryResponseData; export declare function CategoryResponseDataToJSON(value?: CategoryResponseData | null): any; diff --git a/dist/esm/models/CategoryResponseData.js b/dist/esm/models/CategoryResponseData.js index f1ea7e2..b399155 100644 --- a/dist/esm/models/CategoryResponseData.js +++ b/dist/esm/models/CategoryResponseData.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { CategoryFromJSON, CategoryToJSON, } from './Category'; /** * Check if a given object implements the CategoryResponseData interface. */ export function instanceOfCategoryResponseData(value) { - var isInstance = true; - isInstance = isInstance && "category" in value; - return isInstance; + if (!('category' in value) || value['category'] === undefined) + return false; + return true; } export function CategoryResponseDataFromJSON(json) { return CategoryResponseDataFromJSONTyped(json, false); } export function CategoryResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function CategoryResponseDataFromJSONTyped(json, ignoreDiscriminator) { }; } export function CategoryResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'category': CategoryToJSON(value.category), + 'category': CategoryToJSON(value['category']), }; } diff --git a/dist/esm/models/CurrencyFormat.d.ts b/dist/esm/models/CurrencyFormat.d.ts index 241ab12..c073a85 100644 --- a/dist/esm/models/CurrencyFormat.d.ts +++ b/dist/esm/models/CurrencyFormat.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * The currency format setting for the budget. In some cases the format will not be available and will be specified as null. @@ -67,7 +62,7 @@ export interface CurrencyFormat { /** * Check if a given object implements the CurrencyFormat interface. */ -export declare function instanceOfCurrencyFormat(value: object): boolean; +export declare function instanceOfCurrencyFormat(value: object): value is CurrencyFormat; export declare function CurrencyFormatFromJSON(json: any): CurrencyFormat; export declare function CurrencyFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): CurrencyFormat; export declare function CurrencyFormatToJSON(value?: CurrencyFormat | null): any; diff --git a/dist/esm/models/CurrencyFormat.js b/dist/esm/models/CurrencyFormat.js index 62410bf..cd7dc6e 100644 --- a/dist/esm/models/CurrencyFormat.js +++ b/dist/esm/models/CurrencyFormat.js @@ -4,33 +4,35 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * Check if a given object implements the CurrencyFormat interface. */ export function instanceOfCurrencyFormat(value) { - var isInstance = true; - isInstance = isInstance && "iso_code" in value; - isInstance = isInstance && "example_format" in value; - isInstance = isInstance && "decimal_digits" in value; - isInstance = isInstance && "decimal_separator" in value; - isInstance = isInstance && "symbol_first" in value; - isInstance = isInstance && "group_separator" in value; - isInstance = isInstance && "currency_symbol" in value; - isInstance = isInstance && "display_symbol" in value; - return isInstance; + if (!('iso_code' in value) || value['iso_code'] === undefined) + return false; + if (!('example_format' in value) || value['example_format'] === undefined) + return false; + if (!('decimal_digits' in value) || value['decimal_digits'] === undefined) + return false; + if (!('decimal_separator' in value) || value['decimal_separator'] === undefined) + return false; + if (!('symbol_first' in value) || value['symbol_first'] === undefined) + return false; + if (!('group_separator' in value) || value['group_separator'] === undefined) + return false; + if (!('currency_symbol' in value) || value['currency_symbol'] === undefined) + return false; + if (!('display_symbol' in value) || value['display_symbol'] === undefined) + return false; + return true; } export function CurrencyFormatFromJSON(json) { return CurrencyFormatFromJSONTyped(json, false); } export function CurrencyFormatFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -45,20 +47,17 @@ export function CurrencyFormatFromJSONTyped(json, ignoreDiscriminator) { }; } export function CurrencyFormatToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'iso_code': value.iso_code, - 'example_format': value.example_format, - 'decimal_digits': value.decimal_digits, - 'decimal_separator': value.decimal_separator, - 'symbol_first': value.symbol_first, - 'group_separator': value.group_separator, - 'currency_symbol': value.currency_symbol, - 'display_symbol': value.display_symbol, + 'iso_code': value['iso_code'], + 'example_format': value['example_format'], + 'decimal_digits': value['decimal_digits'], + 'decimal_separator': value['decimal_separator'], + 'symbol_first': value['symbol_first'], + 'group_separator': value['group_separator'], + 'currency_symbol': value['currency_symbol'], + 'display_symbol': value['display_symbol'], }; } diff --git a/dist/esm/models/DateFormat.d.ts b/dist/esm/models/DateFormat.d.ts index 3b43bca..fb4b73b 100644 --- a/dist/esm/models/DateFormat.d.ts +++ b/dist/esm/models/DateFormat.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * The date format setting for the budget. In some cases the format will not be available and will be specified as null. @@ -25,7 +20,7 @@ export interface DateFormat { /** * Check if a given object implements the DateFormat interface. */ -export declare function instanceOfDateFormat(value: object): boolean; +export declare function instanceOfDateFormat(value: object): value is DateFormat; export declare function DateFormatFromJSON(json: any): DateFormat; export declare function DateFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): DateFormat; export declare function DateFormatToJSON(value?: DateFormat | null): any; diff --git a/dist/esm/models/DateFormat.js b/dist/esm/models/DateFormat.js index a34290f..68ee8d9 100644 --- a/dist/esm/models/DateFormat.js +++ b/dist/esm/models/DateFormat.js @@ -4,26 +4,21 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * Check if a given object implements the DateFormat interface. */ export function instanceOfDateFormat(value) { - var isInstance = true; - isInstance = isInstance && "format" in value; - return isInstance; + if (!('format' in value) || value['format'] === undefined) + return false; + return true; } export function DateFormatFromJSON(json) { return DateFormatFromJSONTyped(json, false); } export function DateFormatFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -31,13 +26,10 @@ export function DateFormatFromJSONTyped(json, ignoreDiscriminator) { }; } export function DateFormatToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'format': value.format, + 'format': value['format'], }; } diff --git a/dist/esm/models/ErrorDetail.d.ts b/dist/esm/models/ErrorDetail.d.ts index ea3d874..f5dd765 100644 --- a/dist/esm/models/ErrorDetail.d.ts +++ b/dist/esm/models/ErrorDetail.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * @@ -37,7 +32,7 @@ export interface ErrorDetail { /** * Check if a given object implements the ErrorDetail interface. */ -export declare function instanceOfErrorDetail(value: object): boolean; +export declare function instanceOfErrorDetail(value: object): value is ErrorDetail; export declare function ErrorDetailFromJSON(json: any): ErrorDetail; export declare function ErrorDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorDetail; export declare function ErrorDetailToJSON(value?: ErrorDetail | null): any; diff --git a/dist/esm/models/ErrorDetail.js b/dist/esm/models/ErrorDetail.js index 053eec2..4a3cb8b 100644 --- a/dist/esm/models/ErrorDetail.js +++ b/dist/esm/models/ErrorDetail.js @@ -4,28 +4,25 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * Check if a given object implements the ErrorDetail interface. */ export function instanceOfErrorDetail(value) { - var isInstance = true; - isInstance = isInstance && "id" in value; - isInstance = isInstance && "name" in value; - isInstance = isInstance && "detail" in value; - return isInstance; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('detail' in value) || value['detail'] === undefined) + return false; + return true; } export function ErrorDetailFromJSON(json) { return ErrorDetailFromJSONTyped(json, false); } export function ErrorDetailFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -35,15 +32,12 @@ export function ErrorDetailFromJSONTyped(json, ignoreDiscriminator) { }; } export function ErrorDetailToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'id': value.id, - 'name': value.name, - 'detail': value.detail, + 'id': value['id'], + 'name': value['name'], + 'detail': value['detail'], }; } diff --git a/dist/esm/models/ErrorResponse.d.ts b/dist/esm/models/ErrorResponse.d.ts index b1c4359..1782c82 100644 --- a/dist/esm/models/ErrorResponse.d.ts +++ b/dist/esm/models/ErrorResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { ErrorDetail } from './ErrorDetail'; /** @@ -26,7 +21,7 @@ export interface ErrorResponse { /** * Check if a given object implements the ErrorResponse interface. */ -export declare function instanceOfErrorResponse(value: object): boolean; +export declare function instanceOfErrorResponse(value: object): value is ErrorResponse; export declare function ErrorResponseFromJSON(json: any): ErrorResponse; export declare function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse; export declare function ErrorResponseToJSON(value?: ErrorResponse | null): any; diff --git a/dist/esm/models/ErrorResponse.js b/dist/esm/models/ErrorResponse.js index 24a74ce..b6417f0 100644 --- a/dist/esm/models/ErrorResponse.js +++ b/dist/esm/models/ErrorResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { ErrorDetailFromJSON, ErrorDetailToJSON, } from './ErrorDetail'; /** * Check if a given object implements the ErrorResponse interface. */ export function instanceOfErrorResponse(value) { - var isInstance = true; - isInstance = isInstance && "error" in value; - return isInstance; + if (!('error' in value) || value['error'] === undefined) + return false; + return true; } export function ErrorResponseFromJSON(json) { return ErrorResponseFromJSONTyped(json, false); } export function ErrorResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function ErrorResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function ErrorResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'error': ErrorDetailToJSON(value.error), + 'error': ErrorDetailToJSON(value['error']), }; } diff --git a/dist/esm/models/ExistingTransaction.d.ts b/dist/esm/models/ExistingTransaction.d.ts new file mode 100644 index 0000000..5bc1323 --- /dev/null +++ b/dist/esm/models/ExistingTransaction.d.ts @@ -0,0 +1,89 @@ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +import type { TransactionFlagColor } from './TransactionFlagColor'; +import type { TransactionClearedStatus } from './TransactionClearedStatus'; +import type { SaveSubTransaction } from './SaveSubTransaction'; +/** + * + * @export + * @interface ExistingTransaction + */ +export interface ExistingTransaction { + /** + * + * @type {string} + * @memberof ExistingTransaction + */ + account_id?: string; + /** + * The transaction date in ISO format (e.g. 2016-12-01). Future dates (scheduled transactions) are not permitted. Split transaction dates cannot be changed and if a different date is supplied it will be ignored. + * @type {string} + * @memberof ExistingTransaction + */ + date?: string; + /** + * The transaction amount in milliunits format. Split transaction amounts cannot be changed and if a different amount is supplied it will be ignored. + * @type {number} + * @memberof ExistingTransaction + */ + amount?: number; + /** + * The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `transfer_payee_id` on the account resource. + * @type {string} + * @memberof ExistingTransaction + */ + payee_id?: string | null; + /** + * The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if `import_id` is also specified) or (2) a payee with the same name or (3) creation of a new payee. + * @type {string} + * @memberof ExistingTransaction + */ + payee_name?: string | null; + /** + * The category for the transaction. To configure a split transaction, you can specify null for `category_id` and provide a `subtransactions` array as part of the transaction object. If an existing transaction is a split, the `category_id` cannot be changed. Credit Card Payment categories are not permitted and will be ignored if supplied. + * @type {string} + * @memberof ExistingTransaction + */ + category_id?: string | null; + /** + * + * @type {string} + * @memberof ExistingTransaction + */ + memo?: string | null; + /** + * + * @type {TransactionClearedStatus} + * @memberof ExistingTransaction + */ + cleared?: TransactionClearedStatus; + /** + * Whether or not the transaction is approved. If not supplied, transaction will be unapproved by default. + * @type {boolean} + * @memberof ExistingTransaction + */ + approved?: boolean; + /** + * + * @type {TransactionFlagColor} + * @memberof ExistingTransaction + */ + flag_color?: TransactionFlagColor | null; + /** + * An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported. + * @type {Array} + * @memberof ExistingTransaction + */ + subtransactions?: Array; +} +/** + * Check if a given object implements the ExistingTransaction interface. + */ +export declare function instanceOfExistingTransaction(value: object): value is ExistingTransaction; +export declare function ExistingTransactionFromJSON(json: any): ExistingTransaction; +export declare function ExistingTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExistingTransaction; +export declare function ExistingTransactionToJSON(value?: ExistingTransaction | null): any; diff --git a/dist/esm/models/ExistingTransaction.js b/dist/esm/models/ExistingTransaction.js new file mode 100644 index 0000000..7c4de95 --- /dev/null +++ b/dist/esm/models/ExistingTransaction.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor'; +import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus'; +import { SaveSubTransactionFromJSON, SaveSubTransactionToJSON, } from './SaveSubTransaction'; +/** + * Check if a given object implements the ExistingTransaction interface. + */ +export function instanceOfExistingTransaction(value) { + return true; +} +export function ExistingTransactionFromJSON(json) { + return ExistingTransactionFromJSONTyped(json, false); +} +export function ExistingTransactionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'account_id': json['account_id'] == null ? undefined : json['account_id'], + 'date': json['date'] == null ? undefined : json['date'], + 'amount': json['amount'] == null ? undefined : json['amount'], + 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'], + 'payee_name': json['payee_name'] == null ? undefined : json['payee_name'], + 'category_id': json['category_id'] == null ? undefined : json['category_id'], + 'memo': json['memo'] == null ? undefined : json['memo'], + 'cleared': json['cleared'] == null ? undefined : TransactionClearedStatusFromJSON(json['cleared']), + 'approved': json['approved'] == null ? undefined : json['approved'], + 'flag_color': json['flag_color'] == null ? undefined : TransactionFlagColorFromJSON(json['flag_color']), + 'subtransactions': json['subtransactions'] == null ? undefined : (json['subtransactions'].map(SaveSubTransactionFromJSON)), + }; +} +export function ExistingTransactionToJSON(value) { + if (value == null) { + return value; + } + return { + 'account_id': value['account_id'], + 'date': value['date'], + 'amount': value['amount'], + 'payee_id': value['payee_id'], + 'payee_name': value['payee_name'], + 'category_id': value['category_id'], + 'memo': value['memo'], + 'cleared': TransactionClearedStatusToJSON(value['cleared']), + 'approved': value['approved'], + 'flag_color': TransactionFlagColorToJSON(value['flag_color']), + 'subtransactions': value['subtransactions'] == null ? undefined : (value['subtransactions'].map(SaveSubTransactionToJSON)), + }; +} diff --git a/dist/esm/models/HybridTransaction.d.ts b/dist/esm/models/HybridTransaction.d.ts index 558cae9..df59135 100644 --- a/dist/esm/models/HybridTransaction.d.ts +++ b/dist/esm/models/HybridTransaction.d.ts @@ -2,15 +2,10 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import type { TransactionClearedStatus } from './TransactionClearedStatus'; import type { TransactionFlagColor } from './TransactionFlagColor'; +import type { TransactionClearedStatus } from './TransactionClearedStatus'; /** * * @export @@ -59,6 +54,12 @@ export interface HybridTransaction { * @memberof HybridTransaction */ flag_color?: TransactionFlagColor | null; + /** + * The customized name of a transaction flag + * @type {string} + * @memberof HybridTransaction + */ + flag_name?: string | null; /** * * @type {string} @@ -118,7 +119,7 @@ export interface HybridTransaction { * @type {string} * @memberof HybridTransaction */ - debt_transaction_type?: HybridTransactionDebtTransactionTypeEnum; + debt_transaction_type?: HybridTransactionDebtTransactionTypeEnum | null; /** * Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests. * @type {boolean} @@ -169,7 +170,7 @@ export declare const HybridTransactionDebtTransactionTypeEnum: { readonly Credit: "credit"; readonly Charge: "charge"; }; -export declare type HybridTransactionDebtTransactionTypeEnum = typeof HybridTransactionDebtTransactionTypeEnum[keyof typeof HybridTransactionDebtTransactionTypeEnum]; +export type HybridTransactionDebtTransactionTypeEnum = typeof HybridTransactionDebtTransactionTypeEnum[keyof typeof HybridTransactionDebtTransactionTypeEnum]; /** * @export */ @@ -177,11 +178,11 @@ export declare const HybridTransactionTypeEnum: { readonly Transaction: "transaction"; readonly Subtransaction: "subtransaction"; }; -export declare type HybridTransactionTypeEnum = typeof HybridTransactionTypeEnum[keyof typeof HybridTransactionTypeEnum]; +export type HybridTransactionTypeEnum = typeof HybridTransactionTypeEnum[keyof typeof HybridTransactionTypeEnum]; /** * Check if a given object implements the HybridTransaction interface. */ -export declare function instanceOfHybridTransaction(value: object): boolean; +export declare function instanceOfHybridTransaction(value: object): value is HybridTransaction; export declare function HybridTransactionFromJSON(json: any): HybridTransaction; export declare function HybridTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): HybridTransaction; export declare function HybridTransactionToJSON(value?: HybridTransaction | null): any; diff --git a/dist/esm/models/HybridTransaction.js b/dist/esm/models/HybridTransaction.js index 168a781..86024d8 100644 --- a/dist/esm/models/HybridTransaction.js +++ b/dist/esm/models/HybridTransaction.js @@ -4,16 +4,10 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; -import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus'; import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor'; +import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus'; /** * @export */ @@ -38,81 +32,88 @@ export var HybridTransactionTypeEnum = { * Check if a given object implements the HybridTransaction interface. */ export function instanceOfHybridTransaction(value) { - var isInstance = true; - isInstance = isInstance && "id" in value; - isInstance = isInstance && "date" in value; - isInstance = isInstance && "amount" in value; - isInstance = isInstance && "cleared" in value; - isInstance = isInstance && "approved" in value; - isInstance = isInstance && "account_id" in value; - isInstance = isInstance && "deleted" in value; - isInstance = isInstance && "type" in value; - isInstance = isInstance && "account_name" in value; - return isInstance; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('date' in value) || value['date'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('cleared' in value) || value['cleared'] === undefined) + return false; + if (!('approved' in value) || value['approved'] === undefined) + return false; + if (!('account_id' in value) || value['account_id'] === undefined) + return false; + if (!('deleted' in value) || value['deleted'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + if (!('account_name' in value) || value['account_name'] === undefined) + return false; + return true; } export function HybridTransactionFromJSON(json) { return HybridTransactionFromJSONTyped(json, false); } export function HybridTransactionFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { 'id': json['id'], 'date': json['date'], 'amount': json['amount'], - 'memo': !exists(json, 'memo') ? undefined : json['memo'], + 'memo': json['memo'] == null ? undefined : json['memo'], 'cleared': TransactionClearedStatusFromJSON(json['cleared']), 'approved': json['approved'], - 'flag_color': !exists(json, 'flag_color') ? undefined : TransactionFlagColorFromJSON(json['flag_color']), + 'flag_color': json['flag_color'] == null ? undefined : TransactionFlagColorFromJSON(json['flag_color']), + 'flag_name': json['flag_name'] == null ? undefined : json['flag_name'], 'account_id': json['account_id'], - 'payee_id': !exists(json, 'payee_id') ? undefined : json['payee_id'], - 'category_id': !exists(json, 'category_id') ? undefined : json['category_id'], - 'transfer_account_id': !exists(json, 'transfer_account_id') ? undefined : json['transfer_account_id'], - 'transfer_transaction_id': !exists(json, 'transfer_transaction_id') ? undefined : json['transfer_transaction_id'], - 'matched_transaction_id': !exists(json, 'matched_transaction_id') ? undefined : json['matched_transaction_id'], - 'import_id': !exists(json, 'import_id') ? undefined : json['import_id'], - 'import_payee_name': !exists(json, 'import_payee_name') ? undefined : json['import_payee_name'], - 'import_payee_name_original': !exists(json, 'import_payee_name_original') ? undefined : json['import_payee_name_original'], - 'debt_transaction_type': !exists(json, 'debt_transaction_type') ? undefined : json['debt_transaction_type'], + 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'], + 'category_id': json['category_id'] == null ? undefined : json['category_id'], + 'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'], + 'transfer_transaction_id': json['transfer_transaction_id'] == null ? undefined : json['transfer_transaction_id'], + 'matched_transaction_id': json['matched_transaction_id'] == null ? undefined : json['matched_transaction_id'], + 'import_id': json['import_id'] == null ? undefined : json['import_id'], + 'import_payee_name': json['import_payee_name'] == null ? undefined : json['import_payee_name'], + 'import_payee_name_original': json['import_payee_name_original'] == null ? undefined : json['import_payee_name_original'], + 'debt_transaction_type': json['debt_transaction_type'] == null ? undefined : json['debt_transaction_type'], 'deleted': json['deleted'], 'type': json['type'], - 'parent_transaction_id': !exists(json, 'parent_transaction_id') ? undefined : json['parent_transaction_id'], + 'parent_transaction_id': json['parent_transaction_id'] == null ? undefined : json['parent_transaction_id'], 'account_name': json['account_name'], - 'payee_name': !exists(json, 'payee_name') ? undefined : json['payee_name'], - 'category_name': !exists(json, 'category_name') ? undefined : json['category_name'], + 'payee_name': json['payee_name'] == null ? undefined : json['payee_name'], + 'category_name': json['category_name'] == null ? undefined : json['category_name'], }; } export function HybridTransactionToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'id': value.id, - 'date': value.date, - 'amount': value.amount, - 'memo': value.memo, - 'cleared': TransactionClearedStatusToJSON(value.cleared), - 'approved': value.approved, - 'flag_color': TransactionFlagColorToJSON(value.flag_color), - 'account_id': value.account_id, - 'payee_id': value.payee_id, - 'category_id': value.category_id, - 'transfer_account_id': value.transfer_account_id, - 'transfer_transaction_id': value.transfer_transaction_id, - 'matched_transaction_id': value.matched_transaction_id, - 'import_id': value.import_id, - 'import_payee_name': value.import_payee_name, - 'import_payee_name_original': value.import_payee_name_original, - 'debt_transaction_type': value.debt_transaction_type, - 'deleted': value.deleted, - 'type': value.type, - 'parent_transaction_id': value.parent_transaction_id, - 'account_name': value.account_name, - 'payee_name': value.payee_name, - 'category_name': value.category_name, + 'id': value['id'], + 'date': value['date'], + 'amount': value['amount'], + 'memo': value['memo'], + 'cleared': TransactionClearedStatusToJSON(value['cleared']), + 'approved': value['approved'], + 'flag_color': TransactionFlagColorToJSON(value['flag_color']), + 'flag_name': value['flag_name'], + 'account_id': value['account_id'], + 'payee_id': value['payee_id'], + 'category_id': value['category_id'], + 'transfer_account_id': value['transfer_account_id'], + 'transfer_transaction_id': value['transfer_transaction_id'], + 'matched_transaction_id': value['matched_transaction_id'], + 'import_id': value['import_id'], + 'import_payee_name': value['import_payee_name'], + 'import_payee_name_original': value['import_payee_name_original'], + 'debt_transaction_type': value['debt_transaction_type'], + 'deleted': value['deleted'], + 'type': value['type'], + 'parent_transaction_id': value['parent_transaction_id'], + 'account_name': value['account_name'], + 'payee_name': value['payee_name'], + 'category_name': value['category_name'], }; } diff --git a/dist/esm/models/HybridTransactionAllOf.d.ts b/dist/esm/models/HybridTransactionAllOf.d.ts index 66bfeb8..339a08d 100644 --- a/dist/esm/models/HybridTransactionAllOf.d.ts +++ b/dist/esm/models/HybridTransactionAllOf.d.ts @@ -53,7 +53,7 @@ export declare const HybridTransactionAllOfTypeEnum: { readonly Transaction: "transaction"; readonly Subtransaction: "subtransaction"; }; -export declare type HybridTransactionAllOfTypeEnum = typeof HybridTransactionAllOfTypeEnum[keyof typeof HybridTransactionAllOfTypeEnum]; +export type HybridTransactionAllOfTypeEnum = typeof HybridTransactionAllOfTypeEnum[keyof typeof HybridTransactionAllOfTypeEnum]; /** * Check if a given object implements the HybridTransactionAllOf interface. */ diff --git a/dist/esm/models/HybridTransactionsResponse.d.ts b/dist/esm/models/HybridTransactionsResponse.d.ts index 29d103f..7ba2794 100644 --- a/dist/esm/models/HybridTransactionsResponse.d.ts +++ b/dist/esm/models/HybridTransactionsResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { HybridTransactionsResponseData } from './HybridTransactionsResponseData'; /** @@ -26,7 +21,7 @@ export interface HybridTransactionsResponse { /** * Check if a given object implements the HybridTransactionsResponse interface. */ -export declare function instanceOfHybridTransactionsResponse(value: object): boolean; +export declare function instanceOfHybridTransactionsResponse(value: object): value is HybridTransactionsResponse; export declare function HybridTransactionsResponseFromJSON(json: any): HybridTransactionsResponse; export declare function HybridTransactionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HybridTransactionsResponse; export declare function HybridTransactionsResponseToJSON(value?: HybridTransactionsResponse | null): any; diff --git a/dist/esm/models/HybridTransactionsResponse.js b/dist/esm/models/HybridTransactionsResponse.js index ec4ec69..86be78d 100644 --- a/dist/esm/models/HybridTransactionsResponse.js +++ b/dist/esm/models/HybridTransactionsResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { HybridTransactionsResponseDataFromJSON, HybridTransactionsResponseDataToJSON, } from './HybridTransactionsResponseData'; /** * Check if a given object implements the HybridTransactionsResponse interface. */ export function instanceOfHybridTransactionsResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function HybridTransactionsResponseFromJSON(json) { return HybridTransactionsResponseFromJSONTyped(json, false); } export function HybridTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function HybridTransactionsResponseFromJSONTyped(json, ignoreDiscriminato }; } export function HybridTransactionsResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': HybridTransactionsResponseDataToJSON(value.data), + 'data': HybridTransactionsResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/HybridTransactionsResponseData.d.ts b/dist/esm/models/HybridTransactionsResponseData.d.ts index 217948a..dce3f02 100644 --- a/dist/esm/models/HybridTransactionsResponseData.d.ts +++ b/dist/esm/models/HybridTransactionsResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { HybridTransaction } from './HybridTransaction'; /** @@ -32,7 +27,7 @@ export interface HybridTransactionsResponseData { /** * Check if a given object implements the HybridTransactionsResponseData interface. */ -export declare function instanceOfHybridTransactionsResponseData(value: object): boolean; +export declare function instanceOfHybridTransactionsResponseData(value: object): value is HybridTransactionsResponseData; export declare function HybridTransactionsResponseDataFromJSON(json: any): HybridTransactionsResponseData; export declare function HybridTransactionsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): HybridTransactionsResponseData; export declare function HybridTransactionsResponseDataToJSON(value?: HybridTransactionsResponseData | null): any; diff --git a/dist/esm/models/HybridTransactionsResponseData.js b/dist/esm/models/HybridTransactionsResponseData.js index 656a537..81c10be 100644 --- a/dist/esm/models/HybridTransactionsResponseData.js +++ b/dist/esm/models/HybridTransactionsResponseData.js @@ -4,44 +4,35 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; import { HybridTransactionFromJSON, HybridTransactionToJSON, } from './HybridTransaction'; /** * Check if a given object implements the HybridTransactionsResponseData interface. */ export function instanceOfHybridTransactionsResponseData(value) { - var isInstance = true; - isInstance = isInstance && "transactions" in value; - return isInstance; + if (!('transactions' in value) || value['transactions'] === undefined) + return false; + return true; } export function HybridTransactionsResponseDataFromJSON(json) { return HybridTransactionsResponseDataFromJSONTyped(json, false); } export function HybridTransactionsResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { 'transactions': (json['transactions'].map(HybridTransactionFromJSON)), - 'server_knowledge': !exists(json, 'server_knowledge') ? undefined : json['server_knowledge'], + 'server_knowledge': json['server_knowledge'] == null ? undefined : json['server_knowledge'], }; } export function HybridTransactionsResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'transactions': (value.transactions.map(HybridTransactionToJSON)), - 'server_knowledge': value.server_knowledge, + 'transactions': (value['transactions'].map(HybridTransactionToJSON)), + 'server_knowledge': value['server_knowledge'], }; } diff --git a/dist/esm/models/MonthDetail.d.ts b/dist/esm/models/MonthDetail.d.ts index 1bd67ad..0d0e0a3 100644 --- a/dist/esm/models/MonthDetail.d.ts +++ b/dist/esm/models/MonthDetail.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { Category } from './Category'; /** @@ -74,7 +69,7 @@ export interface MonthDetail { /** * Check if a given object implements the MonthDetail interface. */ -export declare function instanceOfMonthDetail(value: object): boolean; +export declare function instanceOfMonthDetail(value: object): value is MonthDetail; export declare function MonthDetailFromJSON(json: any): MonthDetail; export declare function MonthDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): MonthDetail; export declare function MonthDetailToJSON(value?: MonthDetail | null): any; diff --git a/dist/esm/models/MonthDetail.js b/dist/esm/models/MonthDetail.js index 06b5218..bec7e2e 100644 --- a/dist/esm/models/MonthDetail.js +++ b/dist/esm/models/MonthDetail.js @@ -4,64 +4,61 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; import { CategoryFromJSON, CategoryToJSON, } from './Category'; /** * Check if a given object implements the MonthDetail interface. */ export function instanceOfMonthDetail(value) { - var isInstance = true; - isInstance = isInstance && "month" in value; - isInstance = isInstance && "income" in value; - isInstance = isInstance && "budgeted" in value; - isInstance = isInstance && "activity" in value; - isInstance = isInstance && "to_be_budgeted" in value; - isInstance = isInstance && "deleted" in value; - isInstance = isInstance && "categories" in value; - return isInstance; + if (!('month' in value) || value['month'] === undefined) + return false; + if (!('income' in value) || value['income'] === undefined) + return false; + if (!('budgeted' in value) || value['budgeted'] === undefined) + return false; + if (!('activity' in value) || value['activity'] === undefined) + return false; + if (!('to_be_budgeted' in value) || value['to_be_budgeted'] === undefined) + return false; + if (!('deleted' in value) || value['deleted'] === undefined) + return false; + if (!('categories' in value) || value['categories'] === undefined) + return false; + return true; } export function MonthDetailFromJSON(json) { return MonthDetailFromJSONTyped(json, false); } export function MonthDetailFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { 'month': json['month'], - 'note': !exists(json, 'note') ? undefined : json['note'], + 'note': json['note'] == null ? undefined : json['note'], 'income': json['income'], 'budgeted': json['budgeted'], 'activity': json['activity'], 'to_be_budgeted': json['to_be_budgeted'], - 'age_of_money': !exists(json, 'age_of_money') ? undefined : json['age_of_money'], + 'age_of_money': json['age_of_money'] == null ? undefined : json['age_of_money'], 'deleted': json['deleted'], 'categories': (json['categories'].map(CategoryFromJSON)), }; } export function MonthDetailToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'month': value.month, - 'note': value.note, - 'income': value.income, - 'budgeted': value.budgeted, - 'activity': value.activity, - 'to_be_budgeted': value.to_be_budgeted, - 'age_of_money': value.age_of_money, - 'deleted': value.deleted, - 'categories': (value.categories.map(CategoryToJSON)), + 'month': value['month'], + 'note': value['note'], + 'income': value['income'], + 'budgeted': value['budgeted'], + 'activity': value['activity'], + 'to_be_budgeted': value['to_be_budgeted'], + 'age_of_money': value['age_of_money'], + 'deleted': value['deleted'], + 'categories': (value['categories'].map(CategoryToJSON)), }; } diff --git a/dist/esm/models/MonthDetailResponse.d.ts b/dist/esm/models/MonthDetailResponse.d.ts index 7793322..58207ef 100644 --- a/dist/esm/models/MonthDetailResponse.d.ts +++ b/dist/esm/models/MonthDetailResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { MonthDetailResponseData } from './MonthDetailResponseData'; /** @@ -26,7 +21,7 @@ export interface MonthDetailResponse { /** * Check if a given object implements the MonthDetailResponse interface. */ -export declare function instanceOfMonthDetailResponse(value: object): boolean; +export declare function instanceOfMonthDetailResponse(value: object): value is MonthDetailResponse; export declare function MonthDetailResponseFromJSON(json: any): MonthDetailResponse; export declare function MonthDetailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MonthDetailResponse; export declare function MonthDetailResponseToJSON(value?: MonthDetailResponse | null): any; diff --git a/dist/esm/models/MonthDetailResponse.js b/dist/esm/models/MonthDetailResponse.js index bd8a100..6b8142b 100644 --- a/dist/esm/models/MonthDetailResponse.js +++ b/dist/esm/models/MonthDetailResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { MonthDetailResponseDataFromJSON, MonthDetailResponseDataToJSON, } from './MonthDetailResponseData'; /** * Check if a given object implements the MonthDetailResponse interface. */ export function instanceOfMonthDetailResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function MonthDetailResponseFromJSON(json) { return MonthDetailResponseFromJSONTyped(json, false); } export function MonthDetailResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function MonthDetailResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function MonthDetailResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': MonthDetailResponseDataToJSON(value.data), + 'data': MonthDetailResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/MonthDetailResponseData.d.ts b/dist/esm/models/MonthDetailResponseData.d.ts index 613ed82..207c75a 100644 --- a/dist/esm/models/MonthDetailResponseData.d.ts +++ b/dist/esm/models/MonthDetailResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { MonthDetail } from './MonthDetail'; /** @@ -26,7 +21,7 @@ export interface MonthDetailResponseData { /** * Check if a given object implements the MonthDetailResponseData interface. */ -export declare function instanceOfMonthDetailResponseData(value: object): boolean; +export declare function instanceOfMonthDetailResponseData(value: object): value is MonthDetailResponseData; export declare function MonthDetailResponseDataFromJSON(json: any): MonthDetailResponseData; export declare function MonthDetailResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): MonthDetailResponseData; export declare function MonthDetailResponseDataToJSON(value?: MonthDetailResponseData | null): any; diff --git a/dist/esm/models/MonthDetailResponseData.js b/dist/esm/models/MonthDetailResponseData.js index 4f68c27..ef22465 100644 --- a/dist/esm/models/MonthDetailResponseData.js +++ b/dist/esm/models/MonthDetailResponseData.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { MonthDetailFromJSON, MonthDetailToJSON, } from './MonthDetail'; /** * Check if a given object implements the MonthDetailResponseData interface. */ export function instanceOfMonthDetailResponseData(value) { - var isInstance = true; - isInstance = isInstance && "month" in value; - return isInstance; + if (!('month' in value) || value['month'] === undefined) + return false; + return true; } export function MonthDetailResponseDataFromJSON(json) { return MonthDetailResponseDataFromJSONTyped(json, false); } export function MonthDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function MonthDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) }; } export function MonthDetailResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'month': MonthDetailToJSON(value.month), + 'month': MonthDetailToJSON(value['month']), }; } diff --git a/dist/esm/models/MonthSummariesResponse.d.ts b/dist/esm/models/MonthSummariesResponse.d.ts index 4c1b67c..6d2e36b 100644 --- a/dist/esm/models/MonthSummariesResponse.d.ts +++ b/dist/esm/models/MonthSummariesResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { MonthSummariesResponseData } from './MonthSummariesResponseData'; /** @@ -26,7 +21,7 @@ export interface MonthSummariesResponse { /** * Check if a given object implements the MonthSummariesResponse interface. */ -export declare function instanceOfMonthSummariesResponse(value: object): boolean; +export declare function instanceOfMonthSummariesResponse(value: object): value is MonthSummariesResponse; export declare function MonthSummariesResponseFromJSON(json: any): MonthSummariesResponse; export declare function MonthSummariesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MonthSummariesResponse; export declare function MonthSummariesResponseToJSON(value?: MonthSummariesResponse | null): any; diff --git a/dist/esm/models/MonthSummariesResponse.js b/dist/esm/models/MonthSummariesResponse.js index 6fc9f3f..c3457e8 100644 --- a/dist/esm/models/MonthSummariesResponse.js +++ b/dist/esm/models/MonthSummariesResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { MonthSummariesResponseDataFromJSON, MonthSummariesResponseDataToJSON, } from './MonthSummariesResponseData'; /** * Check if a given object implements the MonthSummariesResponse interface. */ export function instanceOfMonthSummariesResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function MonthSummariesResponseFromJSON(json) { return MonthSummariesResponseFromJSONTyped(json, false); } export function MonthSummariesResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function MonthSummariesResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function MonthSummariesResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': MonthSummariesResponseDataToJSON(value.data), + 'data': MonthSummariesResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/MonthSummariesResponseData.d.ts b/dist/esm/models/MonthSummariesResponseData.d.ts index 75945d3..a325f99 100644 --- a/dist/esm/models/MonthSummariesResponseData.d.ts +++ b/dist/esm/models/MonthSummariesResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { MonthSummary } from './MonthSummary'; /** @@ -32,7 +27,7 @@ export interface MonthSummariesResponseData { /** * Check if a given object implements the MonthSummariesResponseData interface. */ -export declare function instanceOfMonthSummariesResponseData(value: object): boolean; +export declare function instanceOfMonthSummariesResponseData(value: object): value is MonthSummariesResponseData; export declare function MonthSummariesResponseDataFromJSON(json: any): MonthSummariesResponseData; export declare function MonthSummariesResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): MonthSummariesResponseData; export declare function MonthSummariesResponseDataToJSON(value?: MonthSummariesResponseData | null): any; diff --git a/dist/esm/models/MonthSummariesResponseData.js b/dist/esm/models/MonthSummariesResponseData.js index 6b72925..99f5e99 100644 --- a/dist/esm/models/MonthSummariesResponseData.js +++ b/dist/esm/models/MonthSummariesResponseData.js @@ -4,28 +4,24 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { MonthSummaryFromJSON, MonthSummaryToJSON, } from './MonthSummary'; /** * Check if a given object implements the MonthSummariesResponseData interface. */ export function instanceOfMonthSummariesResponseData(value) { - var isInstance = true; - isInstance = isInstance && "months" in value; - isInstance = isInstance && "server_knowledge" in value; - return isInstance; + if (!('months' in value) || value['months'] === undefined) + return false; + if (!('server_knowledge' in value) || value['server_knowledge'] === undefined) + return false; + return true; } export function MonthSummariesResponseDataFromJSON(json) { return MonthSummariesResponseDataFromJSONTyped(json, false); } export function MonthSummariesResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -34,14 +30,11 @@ export function MonthSummariesResponseDataFromJSONTyped(json, ignoreDiscriminato }; } export function MonthSummariesResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'months': (value.months.map(MonthSummaryToJSON)), - 'server_knowledge': value.server_knowledge, + 'months': (value['months'].map(MonthSummaryToJSON)), + 'server_knowledge': value['server_knowledge'], }; } diff --git a/dist/esm/models/MonthSummary.d.ts b/dist/esm/models/MonthSummary.d.ts index d71bad4..617ad95 100644 --- a/dist/esm/models/MonthSummary.d.ts +++ b/dist/esm/models/MonthSummary.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * @@ -67,7 +62,7 @@ export interface MonthSummary { /** * Check if a given object implements the MonthSummary interface. */ -export declare function instanceOfMonthSummary(value: object): boolean; +export declare function instanceOfMonthSummary(value: object): value is MonthSummary; export declare function MonthSummaryFromJSON(json: any): MonthSummary; export declare function MonthSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): MonthSummary; export declare function MonthSummaryToJSON(value?: MonthSummary | null): any; diff --git a/dist/esm/models/MonthSummary.js b/dist/esm/models/MonthSummary.js index 7161290..3d064c1 100644 --- a/dist/esm/models/MonthSummary.js +++ b/dist/esm/models/MonthSummary.js @@ -4,60 +4,56 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; /** * Check if a given object implements the MonthSummary interface. */ export function instanceOfMonthSummary(value) { - var isInstance = true; - isInstance = isInstance && "month" in value; - isInstance = isInstance && "income" in value; - isInstance = isInstance && "budgeted" in value; - isInstance = isInstance && "activity" in value; - isInstance = isInstance && "to_be_budgeted" in value; - isInstance = isInstance && "deleted" in value; - return isInstance; + if (!('month' in value) || value['month'] === undefined) + return false; + if (!('income' in value) || value['income'] === undefined) + return false; + if (!('budgeted' in value) || value['budgeted'] === undefined) + return false; + if (!('activity' in value) || value['activity'] === undefined) + return false; + if (!('to_be_budgeted' in value) || value['to_be_budgeted'] === undefined) + return false; + if (!('deleted' in value) || value['deleted'] === undefined) + return false; + return true; } export function MonthSummaryFromJSON(json) { return MonthSummaryFromJSONTyped(json, false); } export function MonthSummaryFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { 'month': json['month'], - 'note': !exists(json, 'note') ? undefined : json['note'], + 'note': json['note'] == null ? undefined : json['note'], 'income': json['income'], 'budgeted': json['budgeted'], 'activity': json['activity'], 'to_be_budgeted': json['to_be_budgeted'], - 'age_of_money': !exists(json, 'age_of_money') ? undefined : json['age_of_money'], + 'age_of_money': json['age_of_money'] == null ? undefined : json['age_of_money'], 'deleted': json['deleted'], }; } export function MonthSummaryToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'month': value.month, - 'note': value.note, - 'income': value.income, - 'budgeted': value.budgeted, - 'activity': value.activity, - 'to_be_budgeted': value.to_be_budgeted, - 'age_of_money': value.age_of_money, - 'deleted': value.deleted, + 'month': value['month'], + 'note': value['note'], + 'income': value['income'], + 'budgeted': value['budgeted'], + 'activity': value['activity'], + 'to_be_budgeted': value['to_be_budgeted'], + 'age_of_money': value['age_of_money'], + 'deleted': value['deleted'], }; } diff --git a/dist/esm/models/NewTransaction.d.ts b/dist/esm/models/NewTransaction.d.ts new file mode 100644 index 0000000..976984e --- /dev/null +++ b/dist/esm/models/NewTransaction.d.ts @@ -0,0 +1,95 @@ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +import type { TransactionFlagColor } from './TransactionFlagColor'; +import type { TransactionClearedStatus } from './TransactionClearedStatus'; +import type { SaveSubTransaction } from './SaveSubTransaction'; +/** + * + * @export + * @interface NewTransaction + */ +export interface NewTransaction { + /** + * + * @type {string} + * @memberof NewTransaction + */ + account_id?: string; + /** + * The transaction date in ISO format (e.g. 2016-12-01). Future dates (scheduled transactions) are not permitted. Split transaction dates cannot be changed and if a different date is supplied it will be ignored. + * @type {string} + * @memberof NewTransaction + */ + date?: string; + /** + * The transaction amount in milliunits format. Split transaction amounts cannot be changed and if a different amount is supplied it will be ignored. + * @type {number} + * @memberof NewTransaction + */ + amount?: number; + /** + * The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `transfer_payee_id` on the account resource. + * @type {string} + * @memberof NewTransaction + */ + payee_id?: string | null; + /** + * The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if `import_id` is also specified) or (2) a payee with the same name or (3) creation of a new payee. + * @type {string} + * @memberof NewTransaction + */ + payee_name?: string | null; + /** + * The category for the transaction. To configure a split transaction, you can specify null for `category_id` and provide a `subtransactions` array as part of the transaction object. If an existing transaction is a split, the `category_id` cannot be changed. Credit Card Payment categories are not permitted and will be ignored if supplied. + * @type {string} + * @memberof NewTransaction + */ + category_id?: string | null; + /** + * + * @type {string} + * @memberof NewTransaction + */ + memo?: string | null; + /** + * + * @type {TransactionClearedStatus} + * @memberof NewTransaction + */ + cleared?: TransactionClearedStatus; + /** + * Whether or not the transaction is approved. If not supplied, transaction will be unapproved by default. + * @type {boolean} + * @memberof NewTransaction + */ + approved?: boolean; + /** + * + * @type {TransactionFlagColor} + * @memberof NewTransaction + */ + flag_color?: TransactionFlagColor | null; + /** + * An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported. + * @type {Array} + * @memberof NewTransaction + */ + subtransactions?: Array; + /** + * If specified, a new transaction will be assigned this `import_id` and considered "imported". We will also attempt to match this imported transaction to an existing "user-entered" transaction on the same account, with the same amount, and with a date +/-10 days from the imported transaction date.

Transactions imported through File Based Import or Direct Import (not through the API) are assigned an import_id in the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'. Using a consistent format will prevent duplicates through Direct Import and File Based Import.

If import_id is omitted or specified as null, the transaction will be treated as a "user-entered" transaction. As such, it will be eligible to be matched against transactions later being imported (via DI, FBI, or API). + * @type {string} + * @memberof NewTransaction + */ + import_id?: string | null; +} +/** + * Check if a given object implements the NewTransaction interface. + */ +export declare function instanceOfNewTransaction(value: object): value is NewTransaction; +export declare function NewTransactionFromJSON(json: any): NewTransaction; +export declare function NewTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): NewTransaction; +export declare function NewTransactionToJSON(value?: NewTransaction | null): any; diff --git a/dist/esm/models/NewTransaction.js b/dist/esm/models/NewTransaction.js new file mode 100644 index 0000000..9fc117a --- /dev/null +++ b/dist/esm/models/NewTransaction.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor'; +import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus'; +import { SaveSubTransactionFromJSON, SaveSubTransactionToJSON, } from './SaveSubTransaction'; +/** + * Check if a given object implements the NewTransaction interface. + */ +export function instanceOfNewTransaction(value) { + return true; +} +export function NewTransactionFromJSON(json) { + return NewTransactionFromJSONTyped(json, false); +} +export function NewTransactionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'account_id': json['account_id'] == null ? undefined : json['account_id'], + 'date': json['date'] == null ? undefined : json['date'], + 'amount': json['amount'] == null ? undefined : json['amount'], + 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'], + 'payee_name': json['payee_name'] == null ? undefined : json['payee_name'], + 'category_id': json['category_id'] == null ? undefined : json['category_id'], + 'memo': json['memo'] == null ? undefined : json['memo'], + 'cleared': json['cleared'] == null ? undefined : TransactionClearedStatusFromJSON(json['cleared']), + 'approved': json['approved'] == null ? undefined : json['approved'], + 'flag_color': json['flag_color'] == null ? undefined : TransactionFlagColorFromJSON(json['flag_color']), + 'subtransactions': json['subtransactions'] == null ? undefined : (json['subtransactions'].map(SaveSubTransactionFromJSON)), + 'import_id': json['import_id'] == null ? undefined : json['import_id'], + }; +} +export function NewTransactionToJSON(value) { + if (value == null) { + return value; + } + return { + 'account_id': value['account_id'], + 'date': value['date'], + 'amount': value['amount'], + 'payee_id': value['payee_id'], + 'payee_name': value['payee_name'], + 'category_id': value['category_id'], + 'memo': value['memo'], + 'cleared': TransactionClearedStatusToJSON(value['cleared']), + 'approved': value['approved'], + 'flag_color': TransactionFlagColorToJSON(value['flag_color']), + 'subtransactions': value['subtransactions'] == null ? undefined : (value['subtransactions'].map(SaveSubTransactionToJSON)), + 'import_id': value['import_id'], + }; +} diff --git a/dist/esm/models/PatchCategoryWrapper.d.ts b/dist/esm/models/PatchCategoryWrapper.d.ts index 02e6135..7c7a687 100644 --- a/dist/esm/models/PatchCategoryWrapper.d.ts +++ b/dist/esm/models/PatchCategoryWrapper.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { SaveCategory } from './SaveCategory'; /** @@ -26,7 +21,7 @@ export interface PatchCategoryWrapper { /** * Check if a given object implements the PatchCategoryWrapper interface. */ -export declare function instanceOfPatchCategoryWrapper(value: object): boolean; +export declare function instanceOfPatchCategoryWrapper(value: object): value is PatchCategoryWrapper; export declare function PatchCategoryWrapperFromJSON(json: any): PatchCategoryWrapper; export declare function PatchCategoryWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchCategoryWrapper; export declare function PatchCategoryWrapperToJSON(value?: PatchCategoryWrapper | null): any; diff --git a/dist/esm/models/PatchCategoryWrapper.js b/dist/esm/models/PatchCategoryWrapper.js index c831460..895d413 100644 --- a/dist/esm/models/PatchCategoryWrapper.js +++ b/dist/esm/models/PatchCategoryWrapper.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { SaveCategoryFromJSON, SaveCategoryToJSON, } from './SaveCategory'; /** * Check if a given object implements the PatchCategoryWrapper interface. */ export function instanceOfPatchCategoryWrapper(value) { - var isInstance = true; - isInstance = isInstance && "category" in value; - return isInstance; + if (!('category' in value) || value['category'] === undefined) + return false; + return true; } export function PatchCategoryWrapperFromJSON(json) { return PatchCategoryWrapperFromJSONTyped(json, false); } export function PatchCategoryWrapperFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function PatchCategoryWrapperFromJSONTyped(json, ignoreDiscriminator) { }; } export function PatchCategoryWrapperToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'category': SaveCategoryToJSON(value.category), + 'category': SaveCategoryToJSON(value['category']), }; } diff --git a/dist/esm/models/PatchMonthCategoryWrapper.d.ts b/dist/esm/models/PatchMonthCategoryWrapper.d.ts index 6503bf5..56bdede 100644 --- a/dist/esm/models/PatchMonthCategoryWrapper.d.ts +++ b/dist/esm/models/PatchMonthCategoryWrapper.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { SaveMonthCategory } from './SaveMonthCategory'; /** @@ -26,7 +21,7 @@ export interface PatchMonthCategoryWrapper { /** * Check if a given object implements the PatchMonthCategoryWrapper interface. */ -export declare function instanceOfPatchMonthCategoryWrapper(value: object): boolean; +export declare function instanceOfPatchMonthCategoryWrapper(value: object): value is PatchMonthCategoryWrapper; export declare function PatchMonthCategoryWrapperFromJSON(json: any): PatchMonthCategoryWrapper; export declare function PatchMonthCategoryWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchMonthCategoryWrapper; export declare function PatchMonthCategoryWrapperToJSON(value?: PatchMonthCategoryWrapper | null): any; diff --git a/dist/esm/models/PatchMonthCategoryWrapper.js b/dist/esm/models/PatchMonthCategoryWrapper.js index c0b7019..2e4a278 100644 --- a/dist/esm/models/PatchMonthCategoryWrapper.js +++ b/dist/esm/models/PatchMonthCategoryWrapper.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { SaveMonthCategoryFromJSON, SaveMonthCategoryToJSON, } from './SaveMonthCategory'; /** * Check if a given object implements the PatchMonthCategoryWrapper interface. */ export function instanceOfPatchMonthCategoryWrapper(value) { - var isInstance = true; - isInstance = isInstance && "category" in value; - return isInstance; + if (!('category' in value) || value['category'] === undefined) + return false; + return true; } export function PatchMonthCategoryWrapperFromJSON(json) { return PatchMonthCategoryWrapperFromJSONTyped(json, false); } export function PatchMonthCategoryWrapperFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function PatchMonthCategoryWrapperFromJSONTyped(json, ignoreDiscriminator }; } export function PatchMonthCategoryWrapperToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'category': SaveMonthCategoryToJSON(value.category), + 'category': SaveMonthCategoryToJSON(value['category']), }; } diff --git a/dist/esm/models/PatchPayeeWrapper.d.ts b/dist/esm/models/PatchPayeeWrapper.d.ts new file mode 100644 index 0000000..6587cfa --- /dev/null +++ b/dist/esm/models/PatchPayeeWrapper.d.ts @@ -0,0 +1,27 @@ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +import type { SavePayee } from './SavePayee'; +/** + * + * @export + * @interface PatchPayeeWrapper + */ +export interface PatchPayeeWrapper { + /** + * + * @type {SavePayee} + * @memberof PatchPayeeWrapper + */ + payee: SavePayee; +} +/** + * Check if a given object implements the PatchPayeeWrapper interface. + */ +export declare function instanceOfPatchPayeeWrapper(value: object): value is PatchPayeeWrapper; +export declare function PatchPayeeWrapperFromJSON(json: any): PatchPayeeWrapper; +export declare function PatchPayeeWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchPayeeWrapper; +export declare function PatchPayeeWrapperToJSON(value?: PatchPayeeWrapper | null): any; diff --git a/dist/esm/models/PatchPayeeWrapper.js b/dist/esm/models/PatchPayeeWrapper.js new file mode 100644 index 0000000..307e98e --- /dev/null +++ b/dist/esm/models/PatchPayeeWrapper.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +import { SavePayeeFromJSON, SavePayeeToJSON, } from './SavePayee'; +/** + * Check if a given object implements the PatchPayeeWrapper interface. + */ +export function instanceOfPatchPayeeWrapper(value) { + if (!('payee' in value) || value['payee'] === undefined) + return false; + return true; +} +export function PatchPayeeWrapperFromJSON(json) { + return PatchPayeeWrapperFromJSONTyped(json, false); +} +export function PatchPayeeWrapperFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'payee': SavePayeeFromJSON(json['payee']), + }; +} +export function PatchPayeeWrapperToJSON(value) { + if (value == null) { + return value; + } + return { + 'payee': SavePayeeToJSON(value['payee']), + }; +} diff --git a/dist/esm/models/PatchTransactionsWrapper.d.ts b/dist/esm/models/PatchTransactionsWrapper.d.ts index c480275..c179db7 100644 --- a/dist/esm/models/PatchTransactionsWrapper.d.ts +++ b/dist/esm/models/PatchTransactionsWrapper.d.ts @@ -2,14 +2,9 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import type { SaveTransactionWithId } from './SaveTransactionWithId'; +import type { SaveTransactionWithIdOrImportId } from './SaveTransactionWithIdOrImportId'; /** * * @export @@ -18,15 +13,15 @@ import type { SaveTransactionWithId } from './SaveTransactionWithId'; export interface PatchTransactionsWrapper { /** * - * @type {Array} + * @type {Array} * @memberof PatchTransactionsWrapper */ - transactions: Array; + transactions: Array; } /** * Check if a given object implements the PatchTransactionsWrapper interface. */ -export declare function instanceOfPatchTransactionsWrapper(value: object): boolean; +export declare function instanceOfPatchTransactionsWrapper(value: object): value is PatchTransactionsWrapper; export declare function PatchTransactionsWrapperFromJSON(json: any): PatchTransactionsWrapper; export declare function PatchTransactionsWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchTransactionsWrapper; export declare function PatchTransactionsWrapperToJSON(value?: PatchTransactionsWrapper | null): any; diff --git a/dist/esm/models/PatchTransactionsWrapper.js b/dist/esm/models/PatchTransactionsWrapper.js index 5ea9dc5..15464d2 100644 --- a/dist/esm/models/PatchTransactionsWrapper.js +++ b/dist/esm/models/PatchTransactionsWrapper.js @@ -4,41 +4,33 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { SaveTransactionWithIdFromJSON, SaveTransactionWithIdToJSON, } from './SaveTransactionWithId'; +import { SaveTransactionWithIdOrImportIdFromJSON, SaveTransactionWithIdOrImportIdToJSON, } from './SaveTransactionWithIdOrImportId'; /** * Check if a given object implements the PatchTransactionsWrapper interface. */ export function instanceOfPatchTransactionsWrapper(value) { - var isInstance = true; - isInstance = isInstance && "transactions" in value; - return isInstance; + if (!('transactions' in value) || value['transactions'] === undefined) + return false; + return true; } export function PatchTransactionsWrapperFromJSON(json) { return PatchTransactionsWrapperFromJSONTyped(json, false); } export function PatchTransactionsWrapperFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { - 'transactions': (json['transactions'].map(SaveTransactionWithIdFromJSON)), + 'transactions': (json['transactions'].map(SaveTransactionWithIdOrImportIdFromJSON)), }; } export function PatchTransactionsWrapperToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'transactions': (value.transactions.map(SaveTransactionWithIdToJSON)), + 'transactions': (value['transactions'].map(SaveTransactionWithIdOrImportIdToJSON)), }; } diff --git a/dist/esm/models/Payee.d.ts b/dist/esm/models/Payee.d.ts index e753e42..e6696c2 100644 --- a/dist/esm/models/Payee.d.ts +++ b/dist/esm/models/Payee.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * @@ -43,7 +38,7 @@ export interface Payee { /** * Check if a given object implements the Payee interface. */ -export declare function instanceOfPayee(value: object): boolean; +export declare function instanceOfPayee(value: object): value is Payee; export declare function PayeeFromJSON(json: any): Payee; export declare function PayeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Payee; export declare function PayeeToJSON(value?: Payee | null): any; diff --git a/dist/esm/models/Payee.js b/dist/esm/models/Payee.js index ceccd12..8b55768 100644 --- a/dist/esm/models/Payee.js +++ b/dist/esm/models/Payee.js @@ -4,49 +4,42 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; /** * Check if a given object implements the Payee interface. */ export function instanceOfPayee(value) { - var isInstance = true; - isInstance = isInstance && "id" in value; - isInstance = isInstance && "name" in value; - isInstance = isInstance && "deleted" in value; - return isInstance; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('deleted' in value) || value['deleted'] === undefined) + return false; + return true; } export function PayeeFromJSON(json) { return PayeeFromJSONTyped(json, false); } export function PayeeFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { 'id': json['id'], 'name': json['name'], - 'transfer_account_id': !exists(json, 'transfer_account_id') ? undefined : json['transfer_account_id'], + 'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'], 'deleted': json['deleted'], }; } export function PayeeToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'id': value.id, - 'name': value.name, - 'transfer_account_id': value.transfer_account_id, - 'deleted': value.deleted, + 'id': value['id'], + 'name': value['name'], + 'transfer_account_id': value['transfer_account_id'], + 'deleted': value['deleted'], }; } diff --git a/dist/esm/models/PayeeLocation.d.ts b/dist/esm/models/PayeeLocation.d.ts index caee4b9..28eaceb 100644 --- a/dist/esm/models/PayeeLocation.d.ts +++ b/dist/esm/models/PayeeLocation.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * @@ -49,7 +44,7 @@ export interface PayeeLocation { /** * Check if a given object implements the PayeeLocation interface. */ -export declare function instanceOfPayeeLocation(value: object): boolean; +export declare function instanceOfPayeeLocation(value: object): value is PayeeLocation; export declare function PayeeLocationFromJSON(json: any): PayeeLocation; export declare function PayeeLocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeLocation; export declare function PayeeLocationToJSON(value?: PayeeLocation | null): any; diff --git a/dist/esm/models/PayeeLocation.js b/dist/esm/models/PayeeLocation.js index 09615a2..5f96726 100644 --- a/dist/esm/models/PayeeLocation.js +++ b/dist/esm/models/PayeeLocation.js @@ -4,30 +4,29 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * Check if a given object implements the PayeeLocation interface. */ export function instanceOfPayeeLocation(value) { - var isInstance = true; - isInstance = isInstance && "id" in value; - isInstance = isInstance && "payee_id" in value; - isInstance = isInstance && "latitude" in value; - isInstance = isInstance && "longitude" in value; - isInstance = isInstance && "deleted" in value; - return isInstance; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('payee_id' in value) || value['payee_id'] === undefined) + return false; + if (!('latitude' in value) || value['latitude'] === undefined) + return false; + if (!('longitude' in value) || value['longitude'] === undefined) + return false; + if (!('deleted' in value) || value['deleted'] === undefined) + return false; + return true; } export function PayeeLocationFromJSON(json) { return PayeeLocationFromJSONTyped(json, false); } export function PayeeLocationFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -39,17 +38,14 @@ export function PayeeLocationFromJSONTyped(json, ignoreDiscriminator) { }; } export function PayeeLocationToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'id': value.id, - 'payee_id': value.payee_id, - 'latitude': value.latitude, - 'longitude': value.longitude, - 'deleted': value.deleted, + 'id': value['id'], + 'payee_id': value['payee_id'], + 'latitude': value['latitude'], + 'longitude': value['longitude'], + 'deleted': value['deleted'], }; } diff --git a/dist/esm/models/PayeeLocationResponse.d.ts b/dist/esm/models/PayeeLocationResponse.d.ts index 6bfefaa..4d3996e 100644 --- a/dist/esm/models/PayeeLocationResponse.d.ts +++ b/dist/esm/models/PayeeLocationResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { PayeeLocationResponseData } from './PayeeLocationResponseData'; /** @@ -26,7 +21,7 @@ export interface PayeeLocationResponse { /** * Check if a given object implements the PayeeLocationResponse interface. */ -export declare function instanceOfPayeeLocationResponse(value: object): boolean; +export declare function instanceOfPayeeLocationResponse(value: object): value is PayeeLocationResponse; export declare function PayeeLocationResponseFromJSON(json: any): PayeeLocationResponse; export declare function PayeeLocationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeLocationResponse; export declare function PayeeLocationResponseToJSON(value?: PayeeLocationResponse | null): any; diff --git a/dist/esm/models/PayeeLocationResponse.js b/dist/esm/models/PayeeLocationResponse.js index 7a98b5b..381727f 100644 --- a/dist/esm/models/PayeeLocationResponse.js +++ b/dist/esm/models/PayeeLocationResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { PayeeLocationResponseDataFromJSON, PayeeLocationResponseDataToJSON, } from './PayeeLocationResponseData'; /** * Check if a given object implements the PayeeLocationResponse interface. */ export function instanceOfPayeeLocationResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function PayeeLocationResponseFromJSON(json) { return PayeeLocationResponseFromJSONTyped(json, false); } export function PayeeLocationResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function PayeeLocationResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function PayeeLocationResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': PayeeLocationResponseDataToJSON(value.data), + 'data': PayeeLocationResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/PayeeLocationResponseData.d.ts b/dist/esm/models/PayeeLocationResponseData.d.ts index b6a4729..08da60b 100644 --- a/dist/esm/models/PayeeLocationResponseData.d.ts +++ b/dist/esm/models/PayeeLocationResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { PayeeLocation } from './PayeeLocation'; /** @@ -26,7 +21,7 @@ export interface PayeeLocationResponseData { /** * Check if a given object implements the PayeeLocationResponseData interface. */ -export declare function instanceOfPayeeLocationResponseData(value: object): boolean; +export declare function instanceOfPayeeLocationResponseData(value: object): value is PayeeLocationResponseData; export declare function PayeeLocationResponseDataFromJSON(json: any): PayeeLocationResponseData; export declare function PayeeLocationResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeLocationResponseData; export declare function PayeeLocationResponseDataToJSON(value?: PayeeLocationResponseData | null): any; diff --git a/dist/esm/models/PayeeLocationResponseData.js b/dist/esm/models/PayeeLocationResponseData.js index 45038a1..9cb4922 100644 --- a/dist/esm/models/PayeeLocationResponseData.js +++ b/dist/esm/models/PayeeLocationResponseData.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { PayeeLocationFromJSON, PayeeLocationToJSON, } from './PayeeLocation'; /** * Check if a given object implements the PayeeLocationResponseData interface. */ export function instanceOfPayeeLocationResponseData(value) { - var isInstance = true; - isInstance = isInstance && "payee_location" in value; - return isInstance; + if (!('payee_location' in value) || value['payee_location'] === undefined) + return false; + return true; } export function PayeeLocationResponseDataFromJSON(json) { return PayeeLocationResponseDataFromJSONTyped(json, false); } export function PayeeLocationResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function PayeeLocationResponseDataFromJSONTyped(json, ignoreDiscriminator }; } export function PayeeLocationResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'payee_location': PayeeLocationToJSON(value.payee_location), + 'payee_location': PayeeLocationToJSON(value['payee_location']), }; } diff --git a/dist/esm/models/PayeeLocationsResponse.d.ts b/dist/esm/models/PayeeLocationsResponse.d.ts index dc4b8b0..716c17b 100644 --- a/dist/esm/models/PayeeLocationsResponse.d.ts +++ b/dist/esm/models/PayeeLocationsResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { PayeeLocationsResponseData } from './PayeeLocationsResponseData'; /** @@ -26,7 +21,7 @@ export interface PayeeLocationsResponse { /** * Check if a given object implements the PayeeLocationsResponse interface. */ -export declare function instanceOfPayeeLocationsResponse(value: object): boolean; +export declare function instanceOfPayeeLocationsResponse(value: object): value is PayeeLocationsResponse; export declare function PayeeLocationsResponseFromJSON(json: any): PayeeLocationsResponse; export declare function PayeeLocationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeLocationsResponse; export declare function PayeeLocationsResponseToJSON(value?: PayeeLocationsResponse | null): any; diff --git a/dist/esm/models/PayeeLocationsResponse.js b/dist/esm/models/PayeeLocationsResponse.js index 3e623b1..cc0bc0b 100644 --- a/dist/esm/models/PayeeLocationsResponse.js +++ b/dist/esm/models/PayeeLocationsResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { PayeeLocationsResponseDataFromJSON, PayeeLocationsResponseDataToJSON, } from './PayeeLocationsResponseData'; /** * Check if a given object implements the PayeeLocationsResponse interface. */ export function instanceOfPayeeLocationsResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function PayeeLocationsResponseFromJSON(json) { return PayeeLocationsResponseFromJSONTyped(json, false); } export function PayeeLocationsResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function PayeeLocationsResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function PayeeLocationsResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': PayeeLocationsResponseDataToJSON(value.data), + 'data': PayeeLocationsResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/PayeeLocationsResponseData.d.ts b/dist/esm/models/PayeeLocationsResponseData.d.ts index 9bfb487..942423d 100644 --- a/dist/esm/models/PayeeLocationsResponseData.d.ts +++ b/dist/esm/models/PayeeLocationsResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { PayeeLocation } from './PayeeLocation'; /** @@ -26,7 +21,7 @@ export interface PayeeLocationsResponseData { /** * Check if a given object implements the PayeeLocationsResponseData interface. */ -export declare function instanceOfPayeeLocationsResponseData(value: object): boolean; +export declare function instanceOfPayeeLocationsResponseData(value: object): value is PayeeLocationsResponseData; export declare function PayeeLocationsResponseDataFromJSON(json: any): PayeeLocationsResponseData; export declare function PayeeLocationsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeLocationsResponseData; export declare function PayeeLocationsResponseDataToJSON(value?: PayeeLocationsResponseData | null): any; diff --git a/dist/esm/models/PayeeLocationsResponseData.js b/dist/esm/models/PayeeLocationsResponseData.js index b00cd67..89b2d25 100644 --- a/dist/esm/models/PayeeLocationsResponseData.js +++ b/dist/esm/models/PayeeLocationsResponseData.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { PayeeLocationFromJSON, PayeeLocationToJSON, } from './PayeeLocation'; /** * Check if a given object implements the PayeeLocationsResponseData interface. */ export function instanceOfPayeeLocationsResponseData(value) { - var isInstance = true; - isInstance = isInstance && "payee_locations" in value; - return isInstance; + if (!('payee_locations' in value) || value['payee_locations'] === undefined) + return false; + return true; } export function PayeeLocationsResponseDataFromJSON(json) { return PayeeLocationsResponseDataFromJSONTyped(json, false); } export function PayeeLocationsResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function PayeeLocationsResponseDataFromJSONTyped(json, ignoreDiscriminato }; } export function PayeeLocationsResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'payee_locations': (value.payee_locations.map(PayeeLocationToJSON)), + 'payee_locations': (value['payee_locations'].map(PayeeLocationToJSON)), }; } diff --git a/dist/esm/models/PayeeResponse.d.ts b/dist/esm/models/PayeeResponse.d.ts index 8923789..89aba73 100644 --- a/dist/esm/models/PayeeResponse.d.ts +++ b/dist/esm/models/PayeeResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { PayeeResponseData } from './PayeeResponseData'; /** @@ -26,7 +21,7 @@ export interface PayeeResponse { /** * Check if a given object implements the PayeeResponse interface. */ -export declare function instanceOfPayeeResponse(value: object): boolean; +export declare function instanceOfPayeeResponse(value: object): value is PayeeResponse; export declare function PayeeResponseFromJSON(json: any): PayeeResponse; export declare function PayeeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeResponse; export declare function PayeeResponseToJSON(value?: PayeeResponse | null): any; diff --git a/dist/esm/models/PayeeResponse.js b/dist/esm/models/PayeeResponse.js index fe3c858..ba0c209 100644 --- a/dist/esm/models/PayeeResponse.js +++ b/dist/esm/models/PayeeResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { PayeeResponseDataFromJSON, PayeeResponseDataToJSON, } from './PayeeResponseData'; /** * Check if a given object implements the PayeeResponse interface. */ export function instanceOfPayeeResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function PayeeResponseFromJSON(json) { return PayeeResponseFromJSONTyped(json, false); } export function PayeeResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function PayeeResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function PayeeResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': PayeeResponseDataToJSON(value.data), + 'data': PayeeResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/PayeeResponseData.d.ts b/dist/esm/models/PayeeResponseData.d.ts index e618165..96f4d08 100644 --- a/dist/esm/models/PayeeResponseData.d.ts +++ b/dist/esm/models/PayeeResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { Payee } from './Payee'; /** @@ -26,7 +21,7 @@ export interface PayeeResponseData { /** * Check if a given object implements the PayeeResponseData interface. */ -export declare function instanceOfPayeeResponseData(value: object): boolean; +export declare function instanceOfPayeeResponseData(value: object): value is PayeeResponseData; export declare function PayeeResponseDataFromJSON(json: any): PayeeResponseData; export declare function PayeeResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeResponseData; export declare function PayeeResponseDataToJSON(value?: PayeeResponseData | null): any; diff --git a/dist/esm/models/PayeeResponseData.js b/dist/esm/models/PayeeResponseData.js index 2df7bd1..8f050b8 100644 --- a/dist/esm/models/PayeeResponseData.js +++ b/dist/esm/models/PayeeResponseData.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { PayeeFromJSON, PayeeToJSON, } from './Payee'; /** * Check if a given object implements the PayeeResponseData interface. */ export function instanceOfPayeeResponseData(value) { - var isInstance = true; - isInstance = isInstance && "payee" in value; - return isInstance; + if (!('payee' in value) || value['payee'] === undefined) + return false; + return true; } export function PayeeResponseDataFromJSON(json) { return PayeeResponseDataFromJSONTyped(json, false); } export function PayeeResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function PayeeResponseDataFromJSONTyped(json, ignoreDiscriminator) { }; } export function PayeeResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'payee': PayeeToJSON(value.payee), + 'payee': PayeeToJSON(value['payee']), }; } diff --git a/dist/esm/models/PayeesResponse.d.ts b/dist/esm/models/PayeesResponse.d.ts index fe4b8c5..7662753 100644 --- a/dist/esm/models/PayeesResponse.d.ts +++ b/dist/esm/models/PayeesResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { PayeesResponseData } from './PayeesResponseData'; /** @@ -26,7 +21,7 @@ export interface PayeesResponse { /** * Check if a given object implements the PayeesResponse interface. */ -export declare function instanceOfPayeesResponse(value: object): boolean; +export declare function instanceOfPayeesResponse(value: object): value is PayeesResponse; export declare function PayeesResponseFromJSON(json: any): PayeesResponse; export declare function PayeesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeesResponse; export declare function PayeesResponseToJSON(value?: PayeesResponse | null): any; diff --git a/dist/esm/models/PayeesResponse.js b/dist/esm/models/PayeesResponse.js index ceeaab2..dc00c72 100644 --- a/dist/esm/models/PayeesResponse.js +++ b/dist/esm/models/PayeesResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { PayeesResponseDataFromJSON, PayeesResponseDataToJSON, } from './PayeesResponseData'; /** * Check if a given object implements the PayeesResponse interface. */ export function instanceOfPayeesResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function PayeesResponseFromJSON(json) { return PayeesResponseFromJSONTyped(json, false); } export function PayeesResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function PayeesResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function PayeesResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': PayeesResponseDataToJSON(value.data), + 'data': PayeesResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/PayeesResponseData.d.ts b/dist/esm/models/PayeesResponseData.d.ts index 73abb83..565ee1f 100644 --- a/dist/esm/models/PayeesResponseData.d.ts +++ b/dist/esm/models/PayeesResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { Payee } from './Payee'; /** @@ -32,7 +27,7 @@ export interface PayeesResponseData { /** * Check if a given object implements the PayeesResponseData interface. */ -export declare function instanceOfPayeesResponseData(value: object): boolean; +export declare function instanceOfPayeesResponseData(value: object): value is PayeesResponseData; export declare function PayeesResponseDataFromJSON(json: any): PayeesResponseData; export declare function PayeesResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeesResponseData; export declare function PayeesResponseDataToJSON(value?: PayeesResponseData | null): any; diff --git a/dist/esm/models/PayeesResponseData.js b/dist/esm/models/PayeesResponseData.js index f7593a6..283bada 100644 --- a/dist/esm/models/PayeesResponseData.js +++ b/dist/esm/models/PayeesResponseData.js @@ -4,28 +4,24 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { PayeeFromJSON, PayeeToJSON, } from './Payee'; /** * Check if a given object implements the PayeesResponseData interface. */ export function instanceOfPayeesResponseData(value) { - var isInstance = true; - isInstance = isInstance && "payees" in value; - isInstance = isInstance && "server_knowledge" in value; - return isInstance; + if (!('payees' in value) || value['payees'] === undefined) + return false; + if (!('server_knowledge' in value) || value['server_knowledge'] === undefined) + return false; + return true; } export function PayeesResponseDataFromJSON(json) { return PayeesResponseDataFromJSONTyped(json, false); } export function PayeesResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -34,14 +30,11 @@ export function PayeesResponseDataFromJSONTyped(json, ignoreDiscriminator) { }; } export function PayeesResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'payees': (value.payees.map(PayeeToJSON)), - 'server_knowledge': value.server_knowledge, + 'payees': (value['payees'].map(PayeeToJSON)), + 'server_knowledge': value['server_knowledge'], }; } diff --git a/dist/esm/models/PostAccountWrapper.d.ts b/dist/esm/models/PostAccountWrapper.d.ts index aff4078..b3d6cc7 100644 --- a/dist/esm/models/PostAccountWrapper.d.ts +++ b/dist/esm/models/PostAccountWrapper.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { SaveAccount } from './SaveAccount'; /** @@ -26,7 +21,7 @@ export interface PostAccountWrapper { /** * Check if a given object implements the PostAccountWrapper interface. */ -export declare function instanceOfPostAccountWrapper(value: object): boolean; +export declare function instanceOfPostAccountWrapper(value: object): value is PostAccountWrapper; export declare function PostAccountWrapperFromJSON(json: any): PostAccountWrapper; export declare function PostAccountWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostAccountWrapper; export declare function PostAccountWrapperToJSON(value?: PostAccountWrapper | null): any; diff --git a/dist/esm/models/PostAccountWrapper.js b/dist/esm/models/PostAccountWrapper.js index 5afe860..0d28360 100644 --- a/dist/esm/models/PostAccountWrapper.js +++ b/dist/esm/models/PostAccountWrapper.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { SaveAccountFromJSON, SaveAccountToJSON, } from './SaveAccount'; /** * Check if a given object implements the PostAccountWrapper interface. */ export function instanceOfPostAccountWrapper(value) { - var isInstance = true; - isInstance = isInstance && "account" in value; - return isInstance; + if (!('account' in value) || value['account'] === undefined) + return false; + return true; } export function PostAccountWrapperFromJSON(json) { return PostAccountWrapperFromJSONTyped(json, false); } export function PostAccountWrapperFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function PostAccountWrapperFromJSONTyped(json, ignoreDiscriminator) { }; } export function PostAccountWrapperToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'account': SaveAccountToJSON(value.account), + 'account': SaveAccountToJSON(value['account']), }; } diff --git a/dist/esm/models/PostScheduledTransactionWrapper.d.ts b/dist/esm/models/PostScheduledTransactionWrapper.d.ts new file mode 100644 index 0000000..fc8eea8 --- /dev/null +++ b/dist/esm/models/PostScheduledTransactionWrapper.d.ts @@ -0,0 +1,27 @@ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +import type { SaveScheduledTransaction } from './SaveScheduledTransaction'; +/** + * + * @export + * @interface PostScheduledTransactionWrapper + */ +export interface PostScheduledTransactionWrapper { + /** + * + * @type {SaveScheduledTransaction} + * @memberof PostScheduledTransactionWrapper + */ + scheduled_transaction: SaveScheduledTransaction; +} +/** + * Check if a given object implements the PostScheduledTransactionWrapper interface. + */ +export declare function instanceOfPostScheduledTransactionWrapper(value: object): value is PostScheduledTransactionWrapper; +export declare function PostScheduledTransactionWrapperFromJSON(json: any): PostScheduledTransactionWrapper; +export declare function PostScheduledTransactionWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostScheduledTransactionWrapper; +export declare function PostScheduledTransactionWrapperToJSON(value?: PostScheduledTransactionWrapper | null): any; diff --git a/dist/esm/models/PostScheduledTransactionWrapper.js b/dist/esm/models/PostScheduledTransactionWrapper.js new file mode 100644 index 0000000..3dd4acd --- /dev/null +++ b/dist/esm/models/PostScheduledTransactionWrapper.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +import { SaveScheduledTransactionFromJSON, SaveScheduledTransactionToJSON, } from './SaveScheduledTransaction'; +/** + * Check if a given object implements the PostScheduledTransactionWrapper interface. + */ +export function instanceOfPostScheduledTransactionWrapper(value) { + if (!('scheduled_transaction' in value) || value['scheduled_transaction'] === undefined) + return false; + return true; +} +export function PostScheduledTransactionWrapperFromJSON(json) { + return PostScheduledTransactionWrapperFromJSONTyped(json, false); +} +export function PostScheduledTransactionWrapperFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'scheduled_transaction': SaveScheduledTransactionFromJSON(json['scheduled_transaction']), + }; +} +export function PostScheduledTransactionWrapperToJSON(value) { + if (value == null) { + return value; + } + return { + 'scheduled_transaction': SaveScheduledTransactionToJSON(value['scheduled_transaction']), + }; +} diff --git a/dist/esm/models/PostTransactionsWrapper.d.ts b/dist/esm/models/PostTransactionsWrapper.d.ts index 0be2fb7..63964c4 100644 --- a/dist/esm/models/PostTransactionsWrapper.d.ts +++ b/dist/esm/models/PostTransactionsWrapper.d.ts @@ -2,14 +2,9 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import type { SaveTransaction } from './SaveTransaction'; +import type { NewTransaction } from './NewTransaction'; /** * * @export @@ -18,21 +13,21 @@ import type { SaveTransaction } from './SaveTransaction'; export interface PostTransactionsWrapper { /** * - * @type {SaveTransaction} + * @type {NewTransaction} * @memberof PostTransactionsWrapper */ - transaction?: SaveTransaction; + transaction?: NewTransaction; /** * - * @type {Array} + * @type {Array} * @memberof PostTransactionsWrapper */ - transactions?: Array; + transactions?: Array; } /** * Check if a given object implements the PostTransactionsWrapper interface. */ -export declare function instanceOfPostTransactionsWrapper(value: object): boolean; +export declare function instanceOfPostTransactionsWrapper(value: object): value is PostTransactionsWrapper; export declare function PostTransactionsWrapperFromJSON(json: any): PostTransactionsWrapper; export declare function PostTransactionsWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostTransactionsWrapper; export declare function PostTransactionsWrapperToJSON(value?: PostTransactionsWrapper | null): any; diff --git a/dist/esm/models/PostTransactionsWrapper.js b/dist/esm/models/PostTransactionsWrapper.js index e9c0890..a32a3f3 100644 --- a/dist/esm/models/PostTransactionsWrapper.js +++ b/dist/esm/models/PostTransactionsWrapper.js @@ -4,43 +4,33 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; -import { SaveTransactionFromJSON, SaveTransactionToJSON, } from './SaveTransaction'; +import { NewTransactionFromJSON, NewTransactionToJSON, } from './NewTransaction'; /** * Check if a given object implements the PostTransactionsWrapper interface. */ export function instanceOfPostTransactionsWrapper(value) { - var isInstance = true; - return isInstance; + return true; } export function PostTransactionsWrapperFromJSON(json) { return PostTransactionsWrapperFromJSONTyped(json, false); } export function PostTransactionsWrapperFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { - 'transaction': !exists(json, 'transaction') ? undefined : SaveTransactionFromJSON(json['transaction']), - 'transactions': !exists(json, 'transactions') ? undefined : (json['transactions'].map(SaveTransactionFromJSON)), + 'transaction': json['transaction'] == null ? undefined : NewTransactionFromJSON(json['transaction']), + 'transactions': json['transactions'] == null ? undefined : (json['transactions'].map(NewTransactionFromJSON)), }; } export function PostTransactionsWrapperToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'transaction': SaveTransactionToJSON(value.transaction), - 'transactions': value.transactions === undefined ? undefined : (value.transactions.map(SaveTransactionToJSON)), + 'transaction': NewTransactionToJSON(value['transaction']), + 'transactions': value['transactions'] == null ? undefined : (value['transactions'].map(NewTransactionToJSON)), }; } diff --git a/dist/esm/models/PutTransactionWrapper.d.ts b/dist/esm/models/PutTransactionWrapper.d.ts index 0593a9b..c58d7e4 100644 --- a/dist/esm/models/PutTransactionWrapper.d.ts +++ b/dist/esm/models/PutTransactionWrapper.d.ts @@ -2,14 +2,9 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import type { SaveTransaction } from './SaveTransaction'; +import type { ExistingTransaction } from './ExistingTransaction'; /** * * @export @@ -18,15 +13,15 @@ import type { SaveTransaction } from './SaveTransaction'; export interface PutTransactionWrapper { /** * - * @type {SaveTransaction} + * @type {ExistingTransaction} * @memberof PutTransactionWrapper */ - transaction: SaveTransaction; + transaction: ExistingTransaction; } /** * Check if a given object implements the PutTransactionWrapper interface. */ -export declare function instanceOfPutTransactionWrapper(value: object): boolean; +export declare function instanceOfPutTransactionWrapper(value: object): value is PutTransactionWrapper; export declare function PutTransactionWrapperFromJSON(json: any): PutTransactionWrapper; export declare function PutTransactionWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutTransactionWrapper; export declare function PutTransactionWrapperToJSON(value?: PutTransactionWrapper | null): any; diff --git a/dist/esm/models/PutTransactionWrapper.js b/dist/esm/models/PutTransactionWrapper.js index 31ce998..d1515b9 100644 --- a/dist/esm/models/PutTransactionWrapper.js +++ b/dist/esm/models/PutTransactionWrapper.js @@ -4,41 +4,33 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { SaveTransactionFromJSON, SaveTransactionToJSON, } from './SaveTransaction'; +import { ExistingTransactionFromJSON, ExistingTransactionToJSON, } from './ExistingTransaction'; /** * Check if a given object implements the PutTransactionWrapper interface. */ export function instanceOfPutTransactionWrapper(value) { - var isInstance = true; - isInstance = isInstance && "transaction" in value; - return isInstance; + if (!('transaction' in value) || value['transaction'] === undefined) + return false; + return true; } export function PutTransactionWrapperFromJSON(json) { return PutTransactionWrapperFromJSONTyped(json, false); } export function PutTransactionWrapperFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { - 'transaction': SaveTransactionFromJSON(json['transaction']), + 'transaction': ExistingTransactionFromJSON(json['transaction']), }; } export function PutTransactionWrapperToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'transaction': SaveTransactionToJSON(value.transaction), + 'transaction': ExistingTransactionToJSON(value['transaction']), }; } diff --git a/dist/esm/models/SaveAccount.d.ts b/dist/esm/models/SaveAccount.d.ts index 107c5cf..03d7de9 100644 --- a/dist/esm/models/SaveAccount.d.ts +++ b/dist/esm/models/SaveAccount.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { AccountType } from './AccountType'; /** @@ -38,7 +33,7 @@ export interface SaveAccount { /** * Check if a given object implements the SaveAccount interface. */ -export declare function instanceOfSaveAccount(value: object): boolean; +export declare function instanceOfSaveAccount(value: object): value is SaveAccount; export declare function SaveAccountFromJSON(json: any): SaveAccount; export declare function SaveAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveAccount; export declare function SaveAccountToJSON(value?: SaveAccount | null): any; diff --git a/dist/esm/models/SaveAccount.js b/dist/esm/models/SaveAccount.js index 7d949f7..80859d3 100644 --- a/dist/esm/models/SaveAccount.js +++ b/dist/esm/models/SaveAccount.js @@ -4,29 +4,26 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { AccountTypeFromJSON, AccountTypeToJSON, } from './AccountType'; /** * Check if a given object implements the SaveAccount interface. */ export function instanceOfSaveAccount(value) { - var isInstance = true; - isInstance = isInstance && "name" in value; - isInstance = isInstance && "type" in value; - isInstance = isInstance && "balance" in value; - return isInstance; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + if (!('balance' in value) || value['balance'] === undefined) + return false; + return true; } export function SaveAccountFromJSON(json) { return SaveAccountFromJSONTyped(json, false); } export function SaveAccountFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -36,15 +33,12 @@ export function SaveAccountFromJSONTyped(json, ignoreDiscriminator) { }; } export function SaveAccountToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'name': value.name, - 'type': AccountTypeToJSON(value.type), - 'balance': value.balance, + 'name': value['name'], + 'type': AccountTypeToJSON(value['type']), + 'balance': value['balance'], }; } diff --git a/dist/esm/models/SaveCategory.d.ts b/dist/esm/models/SaveCategory.d.ts index 62eb07e..0ba3fff 100644 --- a/dist/esm/models/SaveCategory.d.ts +++ b/dist/esm/models/SaveCategory.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * @@ -37,7 +32,7 @@ export interface SaveCategory { /** * Check if a given object implements the SaveCategory interface. */ -export declare function instanceOfSaveCategory(value: object): boolean; +export declare function instanceOfSaveCategory(value: object): value is SaveCategory; export declare function SaveCategoryFromJSON(json: any): SaveCategory; export declare function SaveCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveCategory; export declare function SaveCategoryToJSON(value?: SaveCategory | null): any; diff --git a/dist/esm/models/SaveCategory.js b/dist/esm/models/SaveCategory.js index 4143ef2..c852936 100644 --- a/dist/esm/models/SaveCategory.js +++ b/dist/esm/models/SaveCategory.js @@ -4,44 +4,34 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; /** * Check if a given object implements the SaveCategory interface. */ export function instanceOfSaveCategory(value) { - var isInstance = true; - return isInstance; + return true; } export function SaveCategoryFromJSON(json) { return SaveCategoryFromJSONTyped(json, false); } export function SaveCategoryFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { - 'name': !exists(json, 'name') ? undefined : json['name'], - 'note': !exists(json, 'note') ? undefined : json['note'], - 'category_group_id': !exists(json, 'category_group_id') ? undefined : json['category_group_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'note': json['note'] == null ? undefined : json['note'], + 'category_group_id': json['category_group_id'] == null ? undefined : json['category_group_id'], }; } export function SaveCategoryToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'name': value.name, - 'note': value.note, - 'category_group_id': value.category_group_id, + 'name': value['name'], + 'note': value['note'], + 'category_group_id': value['category_group_id'], }; } diff --git a/dist/esm/models/SaveCategoryResponse.d.ts b/dist/esm/models/SaveCategoryResponse.d.ts index e381346..34132cb 100644 --- a/dist/esm/models/SaveCategoryResponse.d.ts +++ b/dist/esm/models/SaveCategoryResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { SaveCategoryResponseData } from './SaveCategoryResponseData'; /** @@ -26,7 +21,7 @@ export interface SaveCategoryResponse { /** * Check if a given object implements the SaveCategoryResponse interface. */ -export declare function instanceOfSaveCategoryResponse(value: object): boolean; +export declare function instanceOfSaveCategoryResponse(value: object): value is SaveCategoryResponse; export declare function SaveCategoryResponseFromJSON(json: any): SaveCategoryResponse; export declare function SaveCategoryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveCategoryResponse; export declare function SaveCategoryResponseToJSON(value?: SaveCategoryResponse | null): any; diff --git a/dist/esm/models/SaveCategoryResponse.js b/dist/esm/models/SaveCategoryResponse.js index 2b71cab..f328193 100644 --- a/dist/esm/models/SaveCategoryResponse.js +++ b/dist/esm/models/SaveCategoryResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { SaveCategoryResponseDataFromJSON, SaveCategoryResponseDataToJSON, } from './SaveCategoryResponseData'; /** * Check if a given object implements the SaveCategoryResponse interface. */ export function instanceOfSaveCategoryResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function SaveCategoryResponseFromJSON(json) { return SaveCategoryResponseFromJSONTyped(json, false); } export function SaveCategoryResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function SaveCategoryResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function SaveCategoryResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': SaveCategoryResponseDataToJSON(value.data), + 'data': SaveCategoryResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/SaveCategoryResponseData.d.ts b/dist/esm/models/SaveCategoryResponseData.d.ts index 6191598..97002d1 100644 --- a/dist/esm/models/SaveCategoryResponseData.d.ts +++ b/dist/esm/models/SaveCategoryResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { Category } from './Category'; /** @@ -32,7 +27,7 @@ export interface SaveCategoryResponseData { /** * Check if a given object implements the SaveCategoryResponseData interface. */ -export declare function instanceOfSaveCategoryResponseData(value: object): boolean; +export declare function instanceOfSaveCategoryResponseData(value: object): value is SaveCategoryResponseData; export declare function SaveCategoryResponseDataFromJSON(json: any): SaveCategoryResponseData; export declare function SaveCategoryResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveCategoryResponseData; export declare function SaveCategoryResponseDataToJSON(value?: SaveCategoryResponseData | null): any; diff --git a/dist/esm/models/SaveCategoryResponseData.js b/dist/esm/models/SaveCategoryResponseData.js index cf8a553..520fa05 100644 --- a/dist/esm/models/SaveCategoryResponseData.js +++ b/dist/esm/models/SaveCategoryResponseData.js @@ -4,28 +4,24 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { CategoryFromJSON, CategoryToJSON, } from './Category'; /** * Check if a given object implements the SaveCategoryResponseData interface. */ export function instanceOfSaveCategoryResponseData(value) { - var isInstance = true; - isInstance = isInstance && "category" in value; - isInstance = isInstance && "server_knowledge" in value; - return isInstance; + if (!('category' in value) || value['category'] === undefined) + return false; + if (!('server_knowledge' in value) || value['server_knowledge'] === undefined) + return false; + return true; } export function SaveCategoryResponseDataFromJSON(json) { return SaveCategoryResponseDataFromJSONTyped(json, false); } export function SaveCategoryResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -34,14 +30,11 @@ export function SaveCategoryResponseDataFromJSONTyped(json, ignoreDiscriminator) }; } export function SaveCategoryResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'category': CategoryToJSON(value.category), - 'server_knowledge': value.server_knowledge, + 'category': CategoryToJSON(value['category']), + 'server_knowledge': value['server_knowledge'], }; } diff --git a/dist/esm/models/SaveMonthCategory.d.ts b/dist/esm/models/SaveMonthCategory.d.ts index 56d0426..589efeb 100644 --- a/dist/esm/models/SaveMonthCategory.d.ts +++ b/dist/esm/models/SaveMonthCategory.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * @@ -25,7 +20,7 @@ export interface SaveMonthCategory { /** * Check if a given object implements the SaveMonthCategory interface. */ -export declare function instanceOfSaveMonthCategory(value: object): boolean; +export declare function instanceOfSaveMonthCategory(value: object): value is SaveMonthCategory; export declare function SaveMonthCategoryFromJSON(json: any): SaveMonthCategory; export declare function SaveMonthCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveMonthCategory; export declare function SaveMonthCategoryToJSON(value?: SaveMonthCategory | null): any; diff --git a/dist/esm/models/SaveMonthCategory.js b/dist/esm/models/SaveMonthCategory.js index c6c8604..3b1b24a 100644 --- a/dist/esm/models/SaveMonthCategory.js +++ b/dist/esm/models/SaveMonthCategory.js @@ -4,26 +4,21 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * Check if a given object implements the SaveMonthCategory interface. */ export function instanceOfSaveMonthCategory(value) { - var isInstance = true; - isInstance = isInstance && "budgeted" in value; - return isInstance; + if (!('budgeted' in value) || value['budgeted'] === undefined) + return false; + return true; } export function SaveMonthCategoryFromJSON(json) { return SaveMonthCategoryFromJSONTyped(json, false); } export function SaveMonthCategoryFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -31,13 +26,10 @@ export function SaveMonthCategoryFromJSONTyped(json, ignoreDiscriminator) { }; } export function SaveMonthCategoryToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'budgeted': value.budgeted, + 'budgeted': value['budgeted'], }; } diff --git a/dist/esm/models/SavePayee.d.ts b/dist/esm/models/SavePayee.d.ts new file mode 100644 index 0000000..dfd1b9f --- /dev/null +++ b/dist/esm/models/SavePayee.d.ts @@ -0,0 +1,26 @@ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +/** + * + * @export + * @interface SavePayee + */ +export interface SavePayee { + /** + * The name of the payee. The name must be a maximum of 500 characters. + * @type {string} + * @memberof SavePayee + */ + name?: string; +} +/** + * Check if a given object implements the SavePayee interface. + */ +export declare function instanceOfSavePayee(value: object): value is SavePayee; +export declare function SavePayeeFromJSON(json: any): SavePayee; +export declare function SavePayeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavePayee; +export declare function SavePayeeToJSON(value?: SavePayee | null): any; diff --git a/dist/esm/models/SavePayee.js b/dist/esm/models/SavePayee.js new file mode 100644 index 0000000..a2c57a0 --- /dev/null +++ b/dist/esm/models/SavePayee.js @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +/** + * Check if a given object implements the SavePayee interface. + */ +export function instanceOfSavePayee(value) { + return true; +} +export function SavePayeeFromJSON(json) { + return SavePayeeFromJSONTyped(json, false); +} +export function SavePayeeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function SavePayeeToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + }; +} diff --git a/dist/esm/models/SavePayeeResponse.d.ts b/dist/esm/models/SavePayeeResponse.d.ts new file mode 100644 index 0000000..7ee4d3d --- /dev/null +++ b/dist/esm/models/SavePayeeResponse.d.ts @@ -0,0 +1,27 @@ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +import type { SavePayeeResponseData } from './SavePayeeResponseData'; +/** + * + * @export + * @interface SavePayeeResponse + */ +export interface SavePayeeResponse { + /** + * + * @type {SavePayeeResponseData} + * @memberof SavePayeeResponse + */ + data: SavePayeeResponseData; +} +/** + * Check if a given object implements the SavePayeeResponse interface. + */ +export declare function instanceOfSavePayeeResponse(value: object): value is SavePayeeResponse; +export declare function SavePayeeResponseFromJSON(json: any): SavePayeeResponse; +export declare function SavePayeeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavePayeeResponse; +export declare function SavePayeeResponseToJSON(value?: SavePayeeResponse | null): any; diff --git a/dist/esm/models/SavePayeeResponse.js b/dist/esm/models/SavePayeeResponse.js new file mode 100644 index 0000000..2e24eac --- /dev/null +++ b/dist/esm/models/SavePayeeResponse.js @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +import { SavePayeeResponseDataFromJSON, SavePayeeResponseDataToJSON, } from './SavePayeeResponseData'; +/** + * Check if a given object implements the SavePayeeResponse interface. + */ +export function instanceOfSavePayeeResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +export function SavePayeeResponseFromJSON(json) { + return SavePayeeResponseFromJSONTyped(json, false); +} +export function SavePayeeResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': SavePayeeResponseDataFromJSON(json['data']), + }; +} +export function SavePayeeResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'data': SavePayeeResponseDataToJSON(value['data']), + }; +} diff --git a/dist/esm/models/SavePayeeResponseData.d.ts b/dist/esm/models/SavePayeeResponseData.d.ts new file mode 100644 index 0000000..2cb7710 --- /dev/null +++ b/dist/esm/models/SavePayeeResponseData.d.ts @@ -0,0 +1,33 @@ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +import type { Payee } from './Payee'; +/** + * + * @export + * @interface SavePayeeResponseData + */ +export interface SavePayeeResponseData { + /** + * + * @type {Payee} + * @memberof SavePayeeResponseData + */ + payee: Payee; + /** + * The knowledge of the server + * @type {number} + * @memberof SavePayeeResponseData + */ + server_knowledge: number; +} +/** + * Check if a given object implements the SavePayeeResponseData interface. + */ +export declare function instanceOfSavePayeeResponseData(value: object): value is SavePayeeResponseData; +export declare function SavePayeeResponseDataFromJSON(json: any): SavePayeeResponseData; +export declare function SavePayeeResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavePayeeResponseData; +export declare function SavePayeeResponseDataToJSON(value?: SavePayeeResponseData | null): any; diff --git a/dist/esm/models/SavePayeeResponseData.js b/dist/esm/models/SavePayeeResponseData.js new file mode 100644 index 0000000..f41bb32 --- /dev/null +++ b/dist/esm/models/SavePayeeResponseData.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +import { PayeeFromJSON, PayeeToJSON, } from './Payee'; +/** + * Check if a given object implements the SavePayeeResponseData interface. + */ +export function instanceOfSavePayeeResponseData(value) { + if (!('payee' in value) || value['payee'] === undefined) + return false; + if (!('server_knowledge' in value) || value['server_knowledge'] === undefined) + return false; + return true; +} +export function SavePayeeResponseDataFromJSON(json) { + return SavePayeeResponseDataFromJSONTyped(json, false); +} +export function SavePayeeResponseDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'payee': PayeeFromJSON(json['payee']), + 'server_knowledge': json['server_knowledge'], + }; +} +export function SavePayeeResponseDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'payee': PayeeToJSON(value['payee']), + 'server_knowledge': value['server_knowledge'], + }; +} diff --git a/dist/esm/models/SaveScheduledTransaction.d.ts b/dist/esm/models/SaveScheduledTransaction.d.ts new file mode 100644 index 0000000..3893078 --- /dev/null +++ b/dist/esm/models/SaveScheduledTransaction.d.ts @@ -0,0 +1,76 @@ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +import type { TransactionFlagColor } from './TransactionFlagColor'; +import type { ScheduledTransactionFrequency } from './ScheduledTransactionFrequency'; +/** + * + * @export + * @interface SaveScheduledTransaction + */ +export interface SaveScheduledTransaction { + /** + * + * @type {string} + * @memberof SaveScheduledTransaction + */ + account_id: string; + /** + * The scheduled transaction date in ISO format (e.g. 2016-12-01). + * @type {string} + * @memberof SaveScheduledTransaction + */ + date: string; + /** + * The scheduled transaction amount in milliunits format. + * @type {number} + * @memberof SaveScheduledTransaction + */ + amount?: number; + /** + * The payee for the scheduled transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `transfer_payee_id` on the account resource. + * @type {string} + * @memberof SaveScheduledTransaction + */ + payee_id?: string | null; + /** + * The payee name for the the scheduled transaction. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a payee with the same name or (2) creation of a new payee. + * @type {string} + * @memberof SaveScheduledTransaction + */ + payee_name?: string | null; + /** + * The category for the scheduled transaction. Credit Card Payment categories are not permitted. Creating a split scheduled transaction is not currently supported. + * @type {string} + * @memberof SaveScheduledTransaction + */ + category_id?: string | null; + /** + * + * @type {string} + * @memberof SaveScheduledTransaction + */ + memo?: string | null; + /** + * + * @type {TransactionFlagColor} + * @memberof SaveScheduledTransaction + */ + flag_color?: TransactionFlagColor | null; + /** + * + * @type {ScheduledTransactionFrequency} + * @memberof SaveScheduledTransaction + */ + frequency?: ScheduledTransactionFrequency; +} +/** + * Check if a given object implements the SaveScheduledTransaction interface. + */ +export declare function instanceOfSaveScheduledTransaction(value: object): value is SaveScheduledTransaction; +export declare function SaveScheduledTransactionFromJSON(json: any): SaveScheduledTransaction; +export declare function SaveScheduledTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveScheduledTransaction; +export declare function SaveScheduledTransactionToJSON(value?: SaveScheduledTransaction | null): any; diff --git a/dist/esm/models/SaveScheduledTransaction.js b/dist/esm/models/SaveScheduledTransaction.js new file mode 100644 index 0000000..9e2b745 --- /dev/null +++ b/dist/esm/models/SaveScheduledTransaction.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor'; +import { ScheduledTransactionFrequencyFromJSON, ScheduledTransactionFrequencyToJSON, } from './ScheduledTransactionFrequency'; +/** + * Check if a given object implements the SaveScheduledTransaction interface. + */ +export function instanceOfSaveScheduledTransaction(value) { + if (!('account_id' in value) || value['account_id'] === undefined) + return false; + if (!('date' in value) || value['date'] === undefined) + return false; + return true; +} +export function SaveScheduledTransactionFromJSON(json) { + return SaveScheduledTransactionFromJSONTyped(json, false); +} +export function SaveScheduledTransactionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'account_id': json['account_id'], + 'date': json['date'], + 'amount': json['amount'] == null ? undefined : json['amount'], + 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'], + 'payee_name': json['payee_name'] == null ? undefined : json['payee_name'], + 'category_id': json['category_id'] == null ? undefined : json['category_id'], + 'memo': json['memo'] == null ? undefined : json['memo'], + 'flag_color': json['flag_color'] == null ? undefined : TransactionFlagColorFromJSON(json['flag_color']), + 'frequency': json['frequency'] == null ? undefined : ScheduledTransactionFrequencyFromJSON(json['frequency']), + }; +} +export function SaveScheduledTransactionToJSON(value) { + if (value == null) { + return value; + } + return { + 'account_id': value['account_id'], + 'date': value['date'], + 'amount': value['amount'], + 'payee_id': value['payee_id'], + 'payee_name': value['payee_name'], + 'category_id': value['category_id'], + 'memo': value['memo'], + 'flag_color': TransactionFlagColorToJSON(value['flag_color']), + 'frequency': ScheduledTransactionFrequencyToJSON(value['frequency']), + }; +} diff --git a/dist/esm/models/SaveSubTransaction.d.ts b/dist/esm/models/SaveSubTransaction.d.ts index 2841cfe..26a778d 100644 --- a/dist/esm/models/SaveSubTransaction.d.ts +++ b/dist/esm/models/SaveSubTransaction.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * @@ -49,7 +44,7 @@ export interface SaveSubTransaction { /** * Check if a given object implements the SaveSubTransaction interface. */ -export declare function instanceOfSaveSubTransaction(value: object): boolean; +export declare function instanceOfSaveSubTransaction(value: object): value is SaveSubTransaction; export declare function SaveSubTransactionFromJSON(json: any): SaveSubTransaction; export declare function SaveSubTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveSubTransaction; export declare function SaveSubTransactionToJSON(value?: SaveSubTransaction | null): any; diff --git a/dist/esm/models/SaveSubTransaction.js b/dist/esm/models/SaveSubTransaction.js index 4327a93..6921ed1 100644 --- a/dist/esm/models/SaveSubTransaction.js +++ b/dist/esm/models/SaveSubTransaction.js @@ -4,49 +4,40 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; /** * Check if a given object implements the SaveSubTransaction interface. */ export function instanceOfSaveSubTransaction(value) { - var isInstance = true; - isInstance = isInstance && "amount" in value; - return isInstance; + if (!('amount' in value) || value['amount'] === undefined) + return false; + return true; } export function SaveSubTransactionFromJSON(json) { return SaveSubTransactionFromJSONTyped(json, false); } export function SaveSubTransactionFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { 'amount': json['amount'], - 'payee_id': !exists(json, 'payee_id') ? undefined : json['payee_id'], - 'payee_name': !exists(json, 'payee_name') ? undefined : json['payee_name'], - 'category_id': !exists(json, 'category_id') ? undefined : json['category_id'], - 'memo': !exists(json, 'memo') ? undefined : json['memo'], + 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'], + 'payee_name': json['payee_name'] == null ? undefined : json['payee_name'], + 'category_id': json['category_id'] == null ? undefined : json['category_id'], + 'memo': json['memo'] == null ? undefined : json['memo'], }; } export function SaveSubTransactionToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'amount': value.amount, - 'payee_id': value.payee_id, - 'payee_name': value.payee_name, - 'category_id': value.category_id, - 'memo': value.memo, + 'amount': value['amount'], + 'payee_id': value['payee_id'], + 'payee_name': value['payee_name'], + 'category_id': value['category_id'], + 'memo': value['memo'], }; } diff --git a/dist/esm/models/SaveTransactionWithIdOrImportId.d.ts b/dist/esm/models/SaveTransactionWithIdOrImportId.d.ts new file mode 100644 index 0000000..de72c28 --- /dev/null +++ b/dist/esm/models/SaveTransactionWithIdOrImportId.d.ts @@ -0,0 +1,101 @@ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +import type { TransactionFlagColor } from './TransactionFlagColor'; +import type { TransactionClearedStatus } from './TransactionClearedStatus'; +import type { SaveSubTransaction } from './SaveSubTransaction'; +/** + * + * @export + * @interface SaveTransactionWithIdOrImportId + */ +export interface SaveTransactionWithIdOrImportId { + /** + * + * @type {string} + * @memberof SaveTransactionWithIdOrImportId + */ + account_id?: string; + /** + * The transaction date in ISO format (e.g. 2016-12-01). Future dates (scheduled transactions) are not permitted. Split transaction dates cannot be changed and if a different date is supplied it will be ignored. + * @type {string} + * @memberof SaveTransactionWithIdOrImportId + */ + date?: string; + /** + * The transaction amount in milliunits format. Split transaction amounts cannot be changed and if a different amount is supplied it will be ignored. + * @type {number} + * @memberof SaveTransactionWithIdOrImportId + */ + amount?: number; + /** + * The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `transfer_payee_id` on the account resource. + * @type {string} + * @memberof SaveTransactionWithIdOrImportId + */ + payee_id?: string | null; + /** + * The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if `import_id` is also specified) or (2) a payee with the same name or (3) creation of a new payee. + * @type {string} + * @memberof SaveTransactionWithIdOrImportId + */ + payee_name?: string | null; + /** + * The category for the transaction. To configure a split transaction, you can specify null for `category_id` and provide a `subtransactions` array as part of the transaction object. If an existing transaction is a split, the `category_id` cannot be changed. Credit Card Payment categories are not permitted and will be ignored if supplied. + * @type {string} + * @memberof SaveTransactionWithIdOrImportId + */ + category_id?: string | null; + /** + * + * @type {string} + * @memberof SaveTransactionWithIdOrImportId + */ + memo?: string | null; + /** + * + * @type {TransactionClearedStatus} + * @memberof SaveTransactionWithIdOrImportId + */ + cleared?: TransactionClearedStatus; + /** + * Whether or not the transaction is approved. If not supplied, transaction will be unapproved by default. + * @type {boolean} + * @memberof SaveTransactionWithIdOrImportId + */ + approved?: boolean; + /** + * + * @type {TransactionFlagColor} + * @memberof SaveTransactionWithIdOrImportId + */ + flag_color?: TransactionFlagColor | null; + /** + * An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported. + * @type {Array} + * @memberof SaveTransactionWithIdOrImportId + */ + subtransactions?: Array; + /** + * If specified, this id will be used to lookup a transaction by its `id` for the purpose of updating the transaction itself. If not specified, an `import_id` should be supplied. + * @type {string} + * @memberof SaveTransactionWithIdOrImportId + */ + id?: string | null; + /** + * If specified, this id will be used to lookup a transaction by its `import_id` for the purpose of updating the transaction itself. If not specified, an `id` should be supplied. You may not provide both an `id` and an `import_id` and updating an `import_id` on an existing transaction is not allowed. + * @type {string} + * @memberof SaveTransactionWithIdOrImportId + */ + import_id?: string | null; +} +/** + * Check if a given object implements the SaveTransactionWithIdOrImportId interface. + */ +export declare function instanceOfSaveTransactionWithIdOrImportId(value: object): value is SaveTransactionWithIdOrImportId; +export declare function SaveTransactionWithIdOrImportIdFromJSON(json: any): SaveTransactionWithIdOrImportId; +export declare function SaveTransactionWithIdOrImportIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveTransactionWithIdOrImportId; +export declare function SaveTransactionWithIdOrImportIdToJSON(value?: SaveTransactionWithIdOrImportId | null): any; diff --git a/dist/esm/models/SaveTransactionWithIdOrImportId.js b/dist/esm/models/SaveTransactionWithIdOrImportId.js new file mode 100644 index 0000000..95e180e --- /dev/null +++ b/dist/esm/models/SaveTransactionWithIdOrImportId.js @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor'; +import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus'; +import { SaveSubTransactionFromJSON, SaveSubTransactionToJSON, } from './SaveSubTransaction'; +/** + * Check if a given object implements the SaveTransactionWithIdOrImportId interface. + */ +export function instanceOfSaveTransactionWithIdOrImportId(value) { + return true; +} +export function SaveTransactionWithIdOrImportIdFromJSON(json) { + return SaveTransactionWithIdOrImportIdFromJSONTyped(json, false); +} +export function SaveTransactionWithIdOrImportIdFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'account_id': json['account_id'] == null ? undefined : json['account_id'], + 'date': json['date'] == null ? undefined : json['date'], + 'amount': json['amount'] == null ? undefined : json['amount'], + 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'], + 'payee_name': json['payee_name'] == null ? undefined : json['payee_name'], + 'category_id': json['category_id'] == null ? undefined : json['category_id'], + 'memo': json['memo'] == null ? undefined : json['memo'], + 'cleared': json['cleared'] == null ? undefined : TransactionClearedStatusFromJSON(json['cleared']), + 'approved': json['approved'] == null ? undefined : json['approved'], + 'flag_color': json['flag_color'] == null ? undefined : TransactionFlagColorFromJSON(json['flag_color']), + 'subtransactions': json['subtransactions'] == null ? undefined : (json['subtransactions'].map(SaveSubTransactionFromJSON)), + 'id': json['id'] == null ? undefined : json['id'], + 'import_id': json['import_id'] == null ? undefined : json['import_id'], + }; +} +export function SaveTransactionWithIdOrImportIdToJSON(value) { + if (value == null) { + return value; + } + return { + 'account_id': value['account_id'], + 'date': value['date'], + 'amount': value['amount'], + 'payee_id': value['payee_id'], + 'payee_name': value['payee_name'], + 'category_id': value['category_id'], + 'memo': value['memo'], + 'cleared': TransactionClearedStatusToJSON(value['cleared']), + 'approved': value['approved'], + 'flag_color': TransactionFlagColorToJSON(value['flag_color']), + 'subtransactions': value['subtransactions'] == null ? undefined : (value['subtransactions'].map(SaveSubTransactionToJSON)), + 'id': value['id'], + 'import_id': value['import_id'], + }; +} diff --git a/dist/esm/models/SaveTransactionWithOptionalFields.d.ts b/dist/esm/models/SaveTransactionWithOptionalFields.d.ts index 8722293..bc34649 100644 --- a/dist/esm/models/SaveTransactionWithOptionalFields.d.ts +++ b/dist/esm/models/SaveTransactionWithOptionalFields.d.ts @@ -2,16 +2,11 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import type { SaveSubTransaction } from './SaveSubTransaction'; -import type { TransactionClearedStatus } from './TransactionClearedStatus'; import type { TransactionFlagColor } from './TransactionFlagColor'; +import type { TransactionClearedStatus } from './TransactionClearedStatus'; +import type { SaveSubTransaction } from './SaveSubTransaction'; /** * * @export @@ -37,7 +32,7 @@ export interface SaveTransactionWithOptionalFields { */ amount?: number; /** - * The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `tranfer_payee_id` on the account resource. + * The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `transfer_payee_id` on the account resource. * @type {string} * @memberof SaveTransactionWithOptionalFields */ @@ -78,12 +73,6 @@ export interface SaveTransactionWithOptionalFields { * @memberof SaveTransactionWithOptionalFields */ flag_color?: TransactionFlagColor | null; - /** - * If specified, the new transaction will be assigned this `import_id` and considered "imported". We will also attempt to match this imported transaction to an existing "user-entered" transation on the same account, with the same amount, and with a date +/-10 days from the imported transaction date.

Transactions imported through File Based Import or Direct Import (not through the API) are assigned an import_id in the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'. Using a consistent format will prevent duplicates through Direct Import and File Based Import.

If import_id is omitted or specified as null, the transaction will be treated as a "user-entered" transaction. As such, it will be eligible to be matched against transactions later being imported (via DI, FBI, or API). - * @type {string} - * @memberof SaveTransactionWithOptionalFields - */ - import_id?: string | null; /** * An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported. * @type {Array} @@ -94,7 +83,7 @@ export interface SaveTransactionWithOptionalFields { /** * Check if a given object implements the SaveTransactionWithOptionalFields interface. */ -export declare function instanceOfSaveTransactionWithOptionalFields(value: object): boolean; +export declare function instanceOfSaveTransactionWithOptionalFields(value: object): value is SaveTransactionWithOptionalFields; export declare function SaveTransactionWithOptionalFieldsFromJSON(json: any): SaveTransactionWithOptionalFields; export declare function SaveTransactionWithOptionalFieldsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveTransactionWithOptionalFields; export declare function SaveTransactionWithOptionalFieldsToJSON(value?: SaveTransactionWithOptionalFields | null): any; diff --git a/dist/esm/models/SaveTransactionWithOptionalFields.js b/dist/esm/models/SaveTransactionWithOptionalFields.js index 82de695..21b5081 100644 --- a/dist/esm/models/SaveTransactionWithOptionalFields.js +++ b/dist/esm/models/SaveTransactionWithOptionalFields.js @@ -4,65 +4,53 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; -import { SaveSubTransactionFromJSON, SaveSubTransactionToJSON, } from './SaveSubTransaction'; -import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus'; import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor'; +import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus'; +import { SaveSubTransactionFromJSON, SaveSubTransactionToJSON, } from './SaveSubTransaction'; /** * Check if a given object implements the SaveTransactionWithOptionalFields interface. */ export function instanceOfSaveTransactionWithOptionalFields(value) { - var isInstance = true; - return isInstance; + return true; } export function SaveTransactionWithOptionalFieldsFromJSON(json) { return SaveTransactionWithOptionalFieldsFromJSONTyped(json, false); } export function SaveTransactionWithOptionalFieldsFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { - 'account_id': !exists(json, 'account_id') ? undefined : json['account_id'], - 'date': !exists(json, 'date') ? undefined : json['date'], - 'amount': !exists(json, 'amount') ? undefined : json['amount'], - 'payee_id': !exists(json, 'payee_id') ? undefined : json['payee_id'], - 'payee_name': !exists(json, 'payee_name') ? undefined : json['payee_name'], - 'category_id': !exists(json, 'category_id') ? undefined : json['category_id'], - 'memo': !exists(json, 'memo') ? undefined : json['memo'], - 'cleared': !exists(json, 'cleared') ? undefined : TransactionClearedStatusFromJSON(json['cleared']), - 'approved': !exists(json, 'approved') ? undefined : json['approved'], - 'flag_color': !exists(json, 'flag_color') ? undefined : TransactionFlagColorFromJSON(json['flag_color']), - 'import_id': !exists(json, 'import_id') ? undefined : json['import_id'], - 'subtransactions': !exists(json, 'subtransactions') ? undefined : (json['subtransactions'].map(SaveSubTransactionFromJSON)), + 'account_id': json['account_id'] == null ? undefined : json['account_id'], + 'date': json['date'] == null ? undefined : json['date'], + 'amount': json['amount'] == null ? undefined : json['amount'], + 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'], + 'payee_name': json['payee_name'] == null ? undefined : json['payee_name'], + 'category_id': json['category_id'] == null ? undefined : json['category_id'], + 'memo': json['memo'] == null ? undefined : json['memo'], + 'cleared': json['cleared'] == null ? undefined : TransactionClearedStatusFromJSON(json['cleared']), + 'approved': json['approved'] == null ? undefined : json['approved'], + 'flag_color': json['flag_color'] == null ? undefined : TransactionFlagColorFromJSON(json['flag_color']), + 'subtransactions': json['subtransactions'] == null ? undefined : (json['subtransactions'].map(SaveSubTransactionFromJSON)), }; } export function SaveTransactionWithOptionalFieldsToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'account_id': value.account_id, - 'date': value.date, - 'amount': value.amount, - 'payee_id': value.payee_id, - 'payee_name': value.payee_name, - 'category_id': value.category_id, - 'memo': value.memo, - 'cleared': TransactionClearedStatusToJSON(value.cleared), - 'approved': value.approved, - 'flag_color': TransactionFlagColorToJSON(value.flag_color), - 'import_id': value.import_id, - 'subtransactions': value.subtransactions === undefined ? undefined : (value.subtransactions.map(SaveSubTransactionToJSON)), + 'account_id': value['account_id'], + 'date': value['date'], + 'amount': value['amount'], + 'payee_id': value['payee_id'], + 'payee_name': value['payee_name'], + 'category_id': value['category_id'], + 'memo': value['memo'], + 'cleared': TransactionClearedStatusToJSON(value['cleared']), + 'approved': value['approved'], + 'flag_color': TransactionFlagColorToJSON(value['flag_color']), + 'subtransactions': value['subtransactions'] == null ? undefined : (value['subtransactions'].map(SaveSubTransactionToJSON)), }; } diff --git a/dist/esm/models/SaveTransactionsResponse.d.ts b/dist/esm/models/SaveTransactionsResponse.d.ts index 4d68387..f8b3993 100644 --- a/dist/esm/models/SaveTransactionsResponse.d.ts +++ b/dist/esm/models/SaveTransactionsResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { SaveTransactionsResponseData } from './SaveTransactionsResponseData'; /** @@ -26,7 +21,7 @@ export interface SaveTransactionsResponse { /** * Check if a given object implements the SaveTransactionsResponse interface. */ -export declare function instanceOfSaveTransactionsResponse(value: object): boolean; +export declare function instanceOfSaveTransactionsResponse(value: object): value is SaveTransactionsResponse; export declare function SaveTransactionsResponseFromJSON(json: any): SaveTransactionsResponse; export declare function SaveTransactionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveTransactionsResponse; export declare function SaveTransactionsResponseToJSON(value?: SaveTransactionsResponse | null): any; diff --git a/dist/esm/models/SaveTransactionsResponse.js b/dist/esm/models/SaveTransactionsResponse.js index d502302..5c8378f 100644 --- a/dist/esm/models/SaveTransactionsResponse.js +++ b/dist/esm/models/SaveTransactionsResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { SaveTransactionsResponseDataFromJSON, SaveTransactionsResponseDataToJSON, } from './SaveTransactionsResponseData'; /** * Check if a given object implements the SaveTransactionsResponse interface. */ export function instanceOfSaveTransactionsResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function SaveTransactionsResponseFromJSON(json) { return SaveTransactionsResponseFromJSONTyped(json, false); } export function SaveTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function SaveTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) }; } export function SaveTransactionsResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': SaveTransactionsResponseDataToJSON(value.data), + 'data': SaveTransactionsResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/SaveTransactionsResponseData.d.ts b/dist/esm/models/SaveTransactionsResponseData.d.ts index 5cafa1f..535f550 100644 --- a/dist/esm/models/SaveTransactionsResponseData.d.ts +++ b/dist/esm/models/SaveTransactionsResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { TransactionDetail } from './TransactionDetail'; /** @@ -50,7 +45,7 @@ export interface SaveTransactionsResponseData { /** * Check if a given object implements the SaveTransactionsResponseData interface. */ -export declare function instanceOfSaveTransactionsResponseData(value: object): boolean; +export declare function instanceOfSaveTransactionsResponseData(value: object): value is SaveTransactionsResponseData; export declare function SaveTransactionsResponseDataFromJSON(json: any): SaveTransactionsResponseData; export declare function SaveTransactionsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveTransactionsResponseData; export declare function SaveTransactionsResponseDataToJSON(value?: SaveTransactionsResponseData | null): any; diff --git a/dist/esm/models/SaveTransactionsResponseData.js b/dist/esm/models/SaveTransactionsResponseData.js index 0647694..d13bfff 100644 --- a/dist/esm/models/SaveTransactionsResponseData.js +++ b/dist/esm/models/SaveTransactionsResponseData.js @@ -4,51 +4,43 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; import { TransactionDetailFromJSON, TransactionDetailToJSON, } from './TransactionDetail'; /** * Check if a given object implements the SaveTransactionsResponseData interface. */ export function instanceOfSaveTransactionsResponseData(value) { - var isInstance = true; - isInstance = isInstance && "transaction_ids" in value; - isInstance = isInstance && "server_knowledge" in value; - return isInstance; + if (!('transaction_ids' in value) || value['transaction_ids'] === undefined) + return false; + if (!('server_knowledge' in value) || value['server_knowledge'] === undefined) + return false; + return true; } export function SaveTransactionsResponseDataFromJSON(json) { return SaveTransactionsResponseDataFromJSONTyped(json, false); } export function SaveTransactionsResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { 'transaction_ids': json['transaction_ids'], - 'transaction': !exists(json, 'transaction') ? undefined : TransactionDetailFromJSON(json['transaction']), - 'transactions': !exists(json, 'transactions') ? undefined : (json['transactions'].map(TransactionDetailFromJSON)), - 'duplicate_import_ids': !exists(json, 'duplicate_import_ids') ? undefined : json['duplicate_import_ids'], + 'transaction': json['transaction'] == null ? undefined : TransactionDetailFromJSON(json['transaction']), + 'transactions': json['transactions'] == null ? undefined : (json['transactions'].map(TransactionDetailFromJSON)), + 'duplicate_import_ids': json['duplicate_import_ids'] == null ? undefined : json['duplicate_import_ids'], 'server_knowledge': json['server_knowledge'], }; } export function SaveTransactionsResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'transaction_ids': value.transaction_ids, - 'transaction': TransactionDetailToJSON(value.transaction), - 'transactions': value.transactions === undefined ? undefined : (value.transactions.map(TransactionDetailToJSON)), - 'duplicate_import_ids': value.duplicate_import_ids, - 'server_knowledge': value.server_knowledge, + 'transaction_ids': value['transaction_ids'], + 'transaction': TransactionDetailToJSON(value['transaction']), + 'transactions': value['transactions'] == null ? undefined : (value['transactions'].map(TransactionDetailToJSON)), + 'duplicate_import_ids': value['duplicate_import_ids'], + 'server_knowledge': value['server_knowledge'], }; } diff --git a/dist/esm/models/ScheduledSubTransaction.d.ts b/dist/esm/models/ScheduledSubTransaction.d.ts index 6cf34d4..5a89edd 100644 --- a/dist/esm/models/ScheduledSubTransaction.d.ts +++ b/dist/esm/models/ScheduledSubTransaction.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * @@ -67,7 +62,7 @@ export interface ScheduledSubTransaction { /** * Check if a given object implements the ScheduledSubTransaction interface. */ -export declare function instanceOfScheduledSubTransaction(value: object): boolean; +export declare function instanceOfScheduledSubTransaction(value: object): value is ScheduledSubTransaction; export declare function ScheduledSubTransactionFromJSON(json: any): ScheduledSubTransaction; export declare function ScheduledSubTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledSubTransaction; export declare function ScheduledSubTransactionToJSON(value?: ScheduledSubTransaction | null): any; diff --git a/dist/esm/models/ScheduledSubTransaction.js b/dist/esm/models/ScheduledSubTransaction.js index 1fc41f2..3521984 100644 --- a/dist/esm/models/ScheduledSubTransaction.js +++ b/dist/esm/models/ScheduledSubTransaction.js @@ -4,58 +4,52 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; /** * Check if a given object implements the ScheduledSubTransaction interface. */ export function instanceOfScheduledSubTransaction(value) { - var isInstance = true; - isInstance = isInstance && "id" in value; - isInstance = isInstance && "scheduled_transaction_id" in value; - isInstance = isInstance && "amount" in value; - isInstance = isInstance && "deleted" in value; - return isInstance; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('scheduled_transaction_id' in value) || value['scheduled_transaction_id'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('deleted' in value) || value['deleted'] === undefined) + return false; + return true; } export function ScheduledSubTransactionFromJSON(json) { return ScheduledSubTransactionFromJSONTyped(json, false); } export function ScheduledSubTransactionFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { 'id': json['id'], 'scheduled_transaction_id': json['scheduled_transaction_id'], 'amount': json['amount'], - 'memo': !exists(json, 'memo') ? undefined : json['memo'], - 'payee_id': !exists(json, 'payee_id') ? undefined : json['payee_id'], - 'category_id': !exists(json, 'category_id') ? undefined : json['category_id'], - 'transfer_account_id': !exists(json, 'transfer_account_id') ? undefined : json['transfer_account_id'], + 'memo': json['memo'] == null ? undefined : json['memo'], + 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'], + 'category_id': json['category_id'] == null ? undefined : json['category_id'], + 'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'], 'deleted': json['deleted'], }; } export function ScheduledSubTransactionToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'id': value.id, - 'scheduled_transaction_id': value.scheduled_transaction_id, - 'amount': value.amount, - 'memo': value.memo, - 'payee_id': value.payee_id, - 'category_id': value.category_id, - 'transfer_account_id': value.transfer_account_id, - 'deleted': value.deleted, + 'id': value['id'], + 'scheduled_transaction_id': value['scheduled_transaction_id'], + 'amount': value['amount'], + 'memo': value['memo'], + 'payee_id': value['payee_id'], + 'category_id': value['category_id'], + 'transfer_account_id': value['transfer_account_id'], + 'deleted': value['deleted'], }; } diff --git a/dist/esm/models/ScheduledTransactionDetail.d.ts b/dist/esm/models/ScheduledTransactionDetail.d.ts index 93253b2..04388b7 100644 --- a/dist/esm/models/ScheduledTransactionDetail.d.ts +++ b/dist/esm/models/ScheduledTransactionDetail.d.ts @@ -2,15 +2,10 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import type { ScheduledSubTransaction } from './ScheduledSubTransaction'; import type { TransactionFlagColor } from './TransactionFlagColor'; +import type { ScheduledSubTransaction } from './ScheduledSubTransaction'; /** * * @export @@ -59,6 +54,12 @@ export interface ScheduledTransactionDetail { * @memberof ScheduledTransactionDetail */ flag_color?: TransactionFlagColor | null; + /** + * The customized name of a transaction flag + * @type {string} + * @memberof ScheduledTransactionDetail + */ + flag_name?: string | null; /** * * @type {string} @@ -132,11 +133,11 @@ export declare const ScheduledTransactionDetailFrequencyEnum: { readonly Yearly: "yearly"; readonly EveryOtherYear: "everyOtherYear"; }; -export declare type ScheduledTransactionDetailFrequencyEnum = typeof ScheduledTransactionDetailFrequencyEnum[keyof typeof ScheduledTransactionDetailFrequencyEnum]; +export type ScheduledTransactionDetailFrequencyEnum = typeof ScheduledTransactionDetailFrequencyEnum[keyof typeof ScheduledTransactionDetailFrequencyEnum]; /** * Check if a given object implements the ScheduledTransactionDetail interface. */ -export declare function instanceOfScheduledTransactionDetail(value: object): boolean; +export declare function instanceOfScheduledTransactionDetail(value: object): value is ScheduledTransactionDetail; export declare function ScheduledTransactionDetailFromJSON(json: any): ScheduledTransactionDetail; export declare function ScheduledTransactionDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionDetail; export declare function ScheduledTransactionDetailToJSON(value?: ScheduledTransactionDetail | null): any; diff --git a/dist/esm/models/ScheduledTransactionDetail.js b/dist/esm/models/ScheduledTransactionDetail.js index 69f01f8..fa29ca9 100644 --- a/dist/esm/models/ScheduledTransactionDetail.js +++ b/dist/esm/models/ScheduledTransactionDetail.js @@ -4,16 +4,10 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; -import { ScheduledSubTransactionFromJSON, ScheduledSubTransactionToJSON, } from './ScheduledSubTransaction'; import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor'; +import { ScheduledSubTransactionFromJSON, ScheduledSubTransactionToJSON, } from './ScheduledSubTransaction'; /** * @export */ @@ -36,23 +30,31 @@ export var ScheduledTransactionDetailFrequencyEnum = { * Check if a given object implements the ScheduledTransactionDetail interface. */ export function instanceOfScheduledTransactionDetail(value) { - var isInstance = true; - isInstance = isInstance && "id" in value; - isInstance = isInstance && "date_first" in value; - isInstance = isInstance && "date_next" in value; - isInstance = isInstance && "frequency" in value; - isInstance = isInstance && "amount" in value; - isInstance = isInstance && "account_id" in value; - isInstance = isInstance && "deleted" in value; - isInstance = isInstance && "account_name" in value; - isInstance = isInstance && "subtransactions" in value; - return isInstance; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('date_first' in value) || value['date_first'] === undefined) + return false; + if (!('date_next' in value) || value['date_next'] === undefined) + return false; + if (!('frequency' in value) || value['frequency'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('account_id' in value) || value['account_id'] === undefined) + return false; + if (!('deleted' in value) || value['deleted'] === undefined) + return false; + if (!('account_name' in value) || value['account_name'] === undefined) + return false; + if (!('subtransactions' in value) || value['subtransactions'] === undefined) + return false; + return true; } export function ScheduledTransactionDetailFromJSON(json) { return ScheduledTransactionDetailFromJSONTyped(json, false); } export function ScheduledTransactionDetailFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -61,42 +63,41 @@ export function ScheduledTransactionDetailFromJSONTyped(json, ignoreDiscriminato 'date_next': json['date_next'], 'frequency': json['frequency'], 'amount': json['amount'], - 'memo': !exists(json, 'memo') ? undefined : json['memo'], - 'flag_color': !exists(json, 'flag_color') ? undefined : TransactionFlagColorFromJSON(json['flag_color']), + 'memo': json['memo'] == null ? undefined : json['memo'], + 'flag_color': json['flag_color'] == null ? undefined : TransactionFlagColorFromJSON(json['flag_color']), + 'flag_name': json['flag_name'] == null ? undefined : json['flag_name'], 'account_id': json['account_id'], - 'payee_id': !exists(json, 'payee_id') ? undefined : json['payee_id'], - 'category_id': !exists(json, 'category_id') ? undefined : json['category_id'], - 'transfer_account_id': !exists(json, 'transfer_account_id') ? undefined : json['transfer_account_id'], + 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'], + 'category_id': json['category_id'] == null ? undefined : json['category_id'], + 'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'], 'deleted': json['deleted'], 'account_name': json['account_name'], - 'payee_name': !exists(json, 'payee_name') ? undefined : json['payee_name'], - 'category_name': !exists(json, 'category_name') ? undefined : json['category_name'], + 'payee_name': json['payee_name'] == null ? undefined : json['payee_name'], + 'category_name': json['category_name'] == null ? undefined : json['category_name'], 'subtransactions': (json['subtransactions'].map(ScheduledSubTransactionFromJSON)), }; } export function ScheduledTransactionDetailToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'id': value.id, - 'date_first': value.date_first, - 'date_next': value.date_next, - 'frequency': value.frequency, - 'amount': value.amount, - 'memo': value.memo, - 'flag_color': TransactionFlagColorToJSON(value.flag_color), - 'account_id': value.account_id, - 'payee_id': value.payee_id, - 'category_id': value.category_id, - 'transfer_account_id': value.transfer_account_id, - 'deleted': value.deleted, - 'account_name': value.account_name, - 'payee_name': value.payee_name, - 'category_name': value.category_name, - 'subtransactions': (value.subtransactions.map(ScheduledSubTransactionToJSON)), + 'id': value['id'], + 'date_first': value['date_first'], + 'date_next': value['date_next'], + 'frequency': value['frequency'], + 'amount': value['amount'], + 'memo': value['memo'], + 'flag_color': TransactionFlagColorToJSON(value['flag_color']), + 'flag_name': value['flag_name'], + 'account_id': value['account_id'], + 'payee_id': value['payee_id'], + 'category_id': value['category_id'], + 'transfer_account_id': value['transfer_account_id'], + 'deleted': value['deleted'], + 'account_name': value['account_name'], + 'payee_name': value['payee_name'], + 'category_name': value['category_name'], + 'subtransactions': (value['subtransactions'].map(ScheduledSubTransactionToJSON)), }; } diff --git a/dist/esm/models/ScheduledTransactionFrequency.d.ts b/dist/esm/models/ScheduledTransactionFrequency.d.ts new file mode 100644 index 0000000..c6caae1 --- /dev/null +++ b/dist/esm/models/ScheduledTransactionFrequency.d.ts @@ -0,0 +1,30 @@ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +/** + * The scheduled transaction frequency + * @export + */ +export declare const ScheduledTransactionFrequency: { + readonly Never: "never"; + readonly Daily: "daily"; + readonly Weekly: "weekly"; + readonly EveryOtherWeek: "everyOtherWeek"; + readonly TwiceAMonth: "twiceAMonth"; + readonly Every4Weeks: "every4Weeks"; + readonly Monthly: "monthly"; + readonly EveryOtherMonth: "everyOtherMonth"; + readonly Every3Months: "every3Months"; + readonly Every4Months: "every4Months"; + readonly TwiceAYear: "twiceAYear"; + readonly Yearly: "yearly"; + readonly EveryOtherYear: "everyOtherYear"; +}; +export type ScheduledTransactionFrequency = typeof ScheduledTransactionFrequency[keyof typeof ScheduledTransactionFrequency]; +export declare function instanceOfScheduledTransactionFrequency(value: any): boolean; +export declare function ScheduledTransactionFrequencyFromJSON(json: any): ScheduledTransactionFrequency; +export declare function ScheduledTransactionFrequencyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionFrequency; +export declare function ScheduledTransactionFrequencyToJSON(value?: ScheduledTransactionFrequency | null): any; diff --git a/dist/esm/models/ScheduledTransactionFrequency.js b/dist/esm/models/ScheduledTransactionFrequency.js new file mode 100644 index 0000000..f5f12e6 --- /dev/null +++ b/dist/esm/models/ScheduledTransactionFrequency.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ +/** + * The scheduled transaction frequency + * @export + */ +export var ScheduledTransactionFrequency = { + Never: 'never', + Daily: 'daily', + Weekly: 'weekly', + EveryOtherWeek: 'everyOtherWeek', + TwiceAMonth: 'twiceAMonth', + Every4Weeks: 'every4Weeks', + Monthly: 'monthly', + EveryOtherMonth: 'everyOtherMonth', + Every3Months: 'every3Months', + Every4Months: 'every4Months', + TwiceAYear: 'twiceAYear', + Yearly: 'yearly', + EveryOtherYear: 'everyOtherYear' +}; +export function instanceOfScheduledTransactionFrequency(value) { + for (var key in ScheduledTransactionFrequency) { + if (Object.prototype.hasOwnProperty.call(ScheduledTransactionFrequency, key)) { + if (ScheduledTransactionFrequency[key] === value) { + return true; + } + } + } + return false; +} +export function ScheduledTransactionFrequencyFromJSON(json) { + return ScheduledTransactionFrequencyFromJSONTyped(json, false); +} +export function ScheduledTransactionFrequencyFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ScheduledTransactionFrequencyToJSON(value) { + return value; +} diff --git a/dist/esm/models/ScheduledTransactionResponse.d.ts b/dist/esm/models/ScheduledTransactionResponse.d.ts index c63a9cb..b6f5088 100644 --- a/dist/esm/models/ScheduledTransactionResponse.d.ts +++ b/dist/esm/models/ScheduledTransactionResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { ScheduledTransactionResponseData } from './ScheduledTransactionResponseData'; /** @@ -26,7 +21,7 @@ export interface ScheduledTransactionResponse { /** * Check if a given object implements the ScheduledTransactionResponse interface. */ -export declare function instanceOfScheduledTransactionResponse(value: object): boolean; +export declare function instanceOfScheduledTransactionResponse(value: object): value is ScheduledTransactionResponse; export declare function ScheduledTransactionResponseFromJSON(json: any): ScheduledTransactionResponse; export declare function ScheduledTransactionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionResponse; export declare function ScheduledTransactionResponseToJSON(value?: ScheduledTransactionResponse | null): any; diff --git a/dist/esm/models/ScheduledTransactionResponse.js b/dist/esm/models/ScheduledTransactionResponse.js index 26b2a17..d28a569 100644 --- a/dist/esm/models/ScheduledTransactionResponse.js +++ b/dist/esm/models/ScheduledTransactionResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { ScheduledTransactionResponseDataFromJSON, ScheduledTransactionResponseDataToJSON, } from './ScheduledTransactionResponseData'; /** * Check if a given object implements the ScheduledTransactionResponse interface. */ export function instanceOfScheduledTransactionResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function ScheduledTransactionResponseFromJSON(json) { return ScheduledTransactionResponseFromJSONTyped(json, false); } export function ScheduledTransactionResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function ScheduledTransactionResponseFromJSONTyped(json, ignoreDiscrimina }; } export function ScheduledTransactionResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': ScheduledTransactionResponseDataToJSON(value.data), + 'data': ScheduledTransactionResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/ScheduledTransactionResponseData.d.ts b/dist/esm/models/ScheduledTransactionResponseData.d.ts index 3782aa6..a21e274 100644 --- a/dist/esm/models/ScheduledTransactionResponseData.d.ts +++ b/dist/esm/models/ScheduledTransactionResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { ScheduledTransactionDetail } from './ScheduledTransactionDetail'; /** @@ -26,7 +21,7 @@ export interface ScheduledTransactionResponseData { /** * Check if a given object implements the ScheduledTransactionResponseData interface. */ -export declare function instanceOfScheduledTransactionResponseData(value: object): boolean; +export declare function instanceOfScheduledTransactionResponseData(value: object): value is ScheduledTransactionResponseData; export declare function ScheduledTransactionResponseDataFromJSON(json: any): ScheduledTransactionResponseData; export declare function ScheduledTransactionResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionResponseData; export declare function ScheduledTransactionResponseDataToJSON(value?: ScheduledTransactionResponseData | null): any; diff --git a/dist/esm/models/ScheduledTransactionResponseData.js b/dist/esm/models/ScheduledTransactionResponseData.js index 31e9c37..7aff514 100644 --- a/dist/esm/models/ScheduledTransactionResponseData.js +++ b/dist/esm/models/ScheduledTransactionResponseData.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { ScheduledTransactionDetailFromJSON, ScheduledTransactionDetailToJSON, } from './ScheduledTransactionDetail'; /** * Check if a given object implements the ScheduledTransactionResponseData interface. */ export function instanceOfScheduledTransactionResponseData(value) { - var isInstance = true; - isInstance = isInstance && "scheduled_transaction" in value; - return isInstance; + if (!('scheduled_transaction' in value) || value['scheduled_transaction'] === undefined) + return false; + return true; } export function ScheduledTransactionResponseDataFromJSON(json) { return ScheduledTransactionResponseDataFromJSONTyped(json, false); } export function ScheduledTransactionResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function ScheduledTransactionResponseDataFromJSONTyped(json, ignoreDiscri }; } export function ScheduledTransactionResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'scheduled_transaction': ScheduledTransactionDetailToJSON(value.scheduled_transaction), + 'scheduled_transaction': ScheduledTransactionDetailToJSON(value['scheduled_transaction']), }; } diff --git a/dist/esm/models/ScheduledTransactionSummary.d.ts b/dist/esm/models/ScheduledTransactionSummary.d.ts index 977da2c..c2b8d55 100644 --- a/dist/esm/models/ScheduledTransactionSummary.d.ts +++ b/dist/esm/models/ScheduledTransactionSummary.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { TransactionFlagColor } from './TransactionFlagColor'; /** @@ -58,6 +53,12 @@ export interface ScheduledTransactionSummary { * @memberof ScheduledTransactionSummary */ flag_color?: TransactionFlagColor | null; + /** + * The customized name of a transaction flag + * @type {string} + * @memberof ScheduledTransactionSummary + */ + flag_name?: string | null; /** * * @type {string} @@ -107,11 +108,11 @@ export declare const ScheduledTransactionSummaryFrequencyEnum: { readonly Yearly: "yearly"; readonly EveryOtherYear: "everyOtherYear"; }; -export declare type ScheduledTransactionSummaryFrequencyEnum = typeof ScheduledTransactionSummaryFrequencyEnum[keyof typeof ScheduledTransactionSummaryFrequencyEnum]; +export type ScheduledTransactionSummaryFrequencyEnum = typeof ScheduledTransactionSummaryFrequencyEnum[keyof typeof ScheduledTransactionSummaryFrequencyEnum]; /** * Check if a given object implements the ScheduledTransactionSummary interface. */ -export declare function instanceOfScheduledTransactionSummary(value: object): boolean; +export declare function instanceOfScheduledTransactionSummary(value: object): value is ScheduledTransactionSummary; export declare function ScheduledTransactionSummaryFromJSON(json: any): ScheduledTransactionSummary; export declare function ScheduledTransactionSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionSummary; export declare function ScheduledTransactionSummaryToJSON(value?: ScheduledTransactionSummary | null): any; diff --git a/dist/esm/models/ScheduledTransactionSummary.js b/dist/esm/models/ScheduledTransactionSummary.js index 09e3c93..f7fd43c 100644 --- a/dist/esm/models/ScheduledTransactionSummary.js +++ b/dist/esm/models/ScheduledTransactionSummary.js @@ -4,14 +4,8 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor'; /** * @export @@ -35,21 +29,27 @@ export var ScheduledTransactionSummaryFrequencyEnum = { * Check if a given object implements the ScheduledTransactionSummary interface. */ export function instanceOfScheduledTransactionSummary(value) { - var isInstance = true; - isInstance = isInstance && "id" in value; - isInstance = isInstance && "date_first" in value; - isInstance = isInstance && "date_next" in value; - isInstance = isInstance && "frequency" in value; - isInstance = isInstance && "amount" in value; - isInstance = isInstance && "account_id" in value; - isInstance = isInstance && "deleted" in value; - return isInstance; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('date_first' in value) || value['date_first'] === undefined) + return false; + if (!('date_next' in value) || value['date_next'] === undefined) + return false; + if (!('frequency' in value) || value['frequency'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('account_id' in value) || value['account_id'] === undefined) + return false; + if (!('deleted' in value) || value['deleted'] === undefined) + return false; + return true; } export function ScheduledTransactionSummaryFromJSON(json) { return ScheduledTransactionSummaryFromJSONTyped(json, false); } export function ScheduledTransactionSummaryFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -58,34 +58,33 @@ export function ScheduledTransactionSummaryFromJSONTyped(json, ignoreDiscriminat 'date_next': json['date_next'], 'frequency': json['frequency'], 'amount': json['amount'], - 'memo': !exists(json, 'memo') ? undefined : json['memo'], - 'flag_color': !exists(json, 'flag_color') ? undefined : TransactionFlagColorFromJSON(json['flag_color']), + 'memo': json['memo'] == null ? undefined : json['memo'], + 'flag_color': json['flag_color'] == null ? undefined : TransactionFlagColorFromJSON(json['flag_color']), + 'flag_name': json['flag_name'] == null ? undefined : json['flag_name'], 'account_id': json['account_id'], - 'payee_id': !exists(json, 'payee_id') ? undefined : json['payee_id'], - 'category_id': !exists(json, 'category_id') ? undefined : json['category_id'], - 'transfer_account_id': !exists(json, 'transfer_account_id') ? undefined : json['transfer_account_id'], + 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'], + 'category_id': json['category_id'] == null ? undefined : json['category_id'], + 'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'], 'deleted': json['deleted'], }; } export function ScheduledTransactionSummaryToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'id': value.id, - 'date_first': value.date_first, - 'date_next': value.date_next, - 'frequency': value.frequency, - 'amount': value.amount, - 'memo': value.memo, - 'flag_color': TransactionFlagColorToJSON(value.flag_color), - 'account_id': value.account_id, - 'payee_id': value.payee_id, - 'category_id': value.category_id, - 'transfer_account_id': value.transfer_account_id, - 'deleted': value.deleted, + 'id': value['id'], + 'date_first': value['date_first'], + 'date_next': value['date_next'], + 'frequency': value['frequency'], + 'amount': value['amount'], + 'memo': value['memo'], + 'flag_color': TransactionFlagColorToJSON(value['flag_color']), + 'flag_name': value['flag_name'], + 'account_id': value['account_id'], + 'payee_id': value['payee_id'], + 'category_id': value['category_id'], + 'transfer_account_id': value['transfer_account_id'], + 'deleted': value['deleted'], }; } diff --git a/dist/esm/models/ScheduledTransactionsResponse.d.ts b/dist/esm/models/ScheduledTransactionsResponse.d.ts index 27d2b66..7c2d99a 100644 --- a/dist/esm/models/ScheduledTransactionsResponse.d.ts +++ b/dist/esm/models/ScheduledTransactionsResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { ScheduledTransactionsResponseData } from './ScheduledTransactionsResponseData'; /** @@ -26,7 +21,7 @@ export interface ScheduledTransactionsResponse { /** * Check if a given object implements the ScheduledTransactionsResponse interface. */ -export declare function instanceOfScheduledTransactionsResponse(value: object): boolean; +export declare function instanceOfScheduledTransactionsResponse(value: object): value is ScheduledTransactionsResponse; export declare function ScheduledTransactionsResponseFromJSON(json: any): ScheduledTransactionsResponse; export declare function ScheduledTransactionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionsResponse; export declare function ScheduledTransactionsResponseToJSON(value?: ScheduledTransactionsResponse | null): any; diff --git a/dist/esm/models/ScheduledTransactionsResponse.js b/dist/esm/models/ScheduledTransactionsResponse.js index 6842e6d..f2c45ee 100644 --- a/dist/esm/models/ScheduledTransactionsResponse.js +++ b/dist/esm/models/ScheduledTransactionsResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { ScheduledTransactionsResponseDataFromJSON, ScheduledTransactionsResponseDataToJSON, } from './ScheduledTransactionsResponseData'; /** * Check if a given object implements the ScheduledTransactionsResponse interface. */ export function instanceOfScheduledTransactionsResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function ScheduledTransactionsResponseFromJSON(json) { return ScheduledTransactionsResponseFromJSONTyped(json, false); } export function ScheduledTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function ScheduledTransactionsResponseFromJSONTyped(json, ignoreDiscrimin }; } export function ScheduledTransactionsResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': ScheduledTransactionsResponseDataToJSON(value.data), + 'data': ScheduledTransactionsResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/ScheduledTransactionsResponseData.d.ts b/dist/esm/models/ScheduledTransactionsResponseData.d.ts index 0bdaa39..ca807d1 100644 --- a/dist/esm/models/ScheduledTransactionsResponseData.d.ts +++ b/dist/esm/models/ScheduledTransactionsResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { ScheduledTransactionDetail } from './ScheduledTransactionDetail'; /** @@ -32,7 +27,7 @@ export interface ScheduledTransactionsResponseData { /** * Check if a given object implements the ScheduledTransactionsResponseData interface. */ -export declare function instanceOfScheduledTransactionsResponseData(value: object): boolean; +export declare function instanceOfScheduledTransactionsResponseData(value: object): value is ScheduledTransactionsResponseData; export declare function ScheduledTransactionsResponseDataFromJSON(json: any): ScheduledTransactionsResponseData; export declare function ScheduledTransactionsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionsResponseData; export declare function ScheduledTransactionsResponseDataToJSON(value?: ScheduledTransactionsResponseData | null): any; diff --git a/dist/esm/models/ScheduledTransactionsResponseData.js b/dist/esm/models/ScheduledTransactionsResponseData.js index 57deeea..006a762 100644 --- a/dist/esm/models/ScheduledTransactionsResponseData.js +++ b/dist/esm/models/ScheduledTransactionsResponseData.js @@ -4,28 +4,24 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { ScheduledTransactionDetailFromJSON, ScheduledTransactionDetailToJSON, } from './ScheduledTransactionDetail'; /** * Check if a given object implements the ScheduledTransactionsResponseData interface. */ export function instanceOfScheduledTransactionsResponseData(value) { - var isInstance = true; - isInstance = isInstance && "scheduled_transactions" in value; - isInstance = isInstance && "server_knowledge" in value; - return isInstance; + if (!('scheduled_transactions' in value) || value['scheduled_transactions'] === undefined) + return false; + if (!('server_knowledge' in value) || value['server_knowledge'] === undefined) + return false; + return true; } export function ScheduledTransactionsResponseDataFromJSON(json) { return ScheduledTransactionsResponseDataFromJSONTyped(json, false); } export function ScheduledTransactionsResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -34,14 +30,11 @@ export function ScheduledTransactionsResponseDataFromJSONTyped(json, ignoreDiscr }; } export function ScheduledTransactionsResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'scheduled_transactions': (value.scheduled_transactions.map(ScheduledTransactionDetailToJSON)), - 'server_knowledge': value.server_knowledge, + 'scheduled_transactions': (value['scheduled_transactions'].map(ScheduledTransactionDetailToJSON)), + 'server_knowledge': value['server_knowledge'], }; } diff --git a/dist/esm/models/SubTransaction.d.ts b/dist/esm/models/SubTransaction.d.ts index 19de91b..d157a4d 100644 --- a/dist/esm/models/SubTransaction.d.ts +++ b/dist/esm/models/SubTransaction.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * @@ -85,7 +80,7 @@ export interface SubTransaction { /** * Check if a given object implements the SubTransaction interface. */ -export declare function instanceOfSubTransaction(value: object): boolean; +export declare function instanceOfSubTransaction(value: object): value is SubTransaction; export declare function SubTransactionFromJSON(json: any): SubTransaction; export declare function SubTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubTransaction; export declare function SubTransactionToJSON(value?: SubTransaction | null): any; diff --git a/dist/esm/models/SubTransaction.js b/dist/esm/models/SubTransaction.js index e4b7692..1677769 100644 --- a/dist/esm/models/SubTransaction.js +++ b/dist/esm/models/SubTransaction.js @@ -4,64 +4,58 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; /** * Check if a given object implements the SubTransaction interface. */ export function instanceOfSubTransaction(value) { - var isInstance = true; - isInstance = isInstance && "id" in value; - isInstance = isInstance && "transaction_id" in value; - isInstance = isInstance && "amount" in value; - isInstance = isInstance && "deleted" in value; - return isInstance; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('transaction_id' in value) || value['transaction_id'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('deleted' in value) || value['deleted'] === undefined) + return false; + return true; } export function SubTransactionFromJSON(json) { return SubTransactionFromJSONTyped(json, false); } export function SubTransactionFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { 'id': json['id'], 'transaction_id': json['transaction_id'], 'amount': json['amount'], - 'memo': !exists(json, 'memo') ? undefined : json['memo'], - 'payee_id': !exists(json, 'payee_id') ? undefined : json['payee_id'], - 'payee_name': !exists(json, 'payee_name') ? undefined : json['payee_name'], - 'category_id': !exists(json, 'category_id') ? undefined : json['category_id'], - 'category_name': !exists(json, 'category_name') ? undefined : json['category_name'], - 'transfer_account_id': !exists(json, 'transfer_account_id') ? undefined : json['transfer_account_id'], - 'transfer_transaction_id': !exists(json, 'transfer_transaction_id') ? undefined : json['transfer_transaction_id'], + 'memo': json['memo'] == null ? undefined : json['memo'], + 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'], + 'payee_name': json['payee_name'] == null ? undefined : json['payee_name'], + 'category_id': json['category_id'] == null ? undefined : json['category_id'], + 'category_name': json['category_name'] == null ? undefined : json['category_name'], + 'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'], + 'transfer_transaction_id': json['transfer_transaction_id'] == null ? undefined : json['transfer_transaction_id'], 'deleted': json['deleted'], }; } export function SubTransactionToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'id': value.id, - 'transaction_id': value.transaction_id, - 'amount': value.amount, - 'memo': value.memo, - 'payee_id': value.payee_id, - 'payee_name': value.payee_name, - 'category_id': value.category_id, - 'category_name': value.category_name, - 'transfer_account_id': value.transfer_account_id, - 'transfer_transaction_id': value.transfer_transaction_id, - 'deleted': value.deleted, + 'id': value['id'], + 'transaction_id': value['transaction_id'], + 'amount': value['amount'], + 'memo': value['memo'], + 'payee_id': value['payee_id'], + 'payee_name': value['payee_name'], + 'category_id': value['category_id'], + 'category_name': value['category_name'], + 'transfer_account_id': value['transfer_account_id'], + 'transfer_transaction_id': value['transfer_transaction_id'], + 'deleted': value['deleted'], }; } diff --git a/dist/esm/models/TransactionClearedStatus.d.ts b/dist/esm/models/TransactionClearedStatus.d.ts index 3529732..5c59373 100644 --- a/dist/esm/models/TransactionClearedStatus.d.ts +++ b/dist/esm/models/TransactionClearedStatus.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * The cleared status of the transaction @@ -18,7 +13,8 @@ export declare const TransactionClearedStatus: { readonly Uncleared: "uncleared"; readonly Reconciled: "reconciled"; }; -export declare type TransactionClearedStatus = typeof TransactionClearedStatus[keyof typeof TransactionClearedStatus]; +export type TransactionClearedStatus = typeof TransactionClearedStatus[keyof typeof TransactionClearedStatus]; +export declare function instanceOfTransactionClearedStatus(value: any): boolean; export declare function TransactionClearedStatusFromJSON(json: any): TransactionClearedStatus; export declare function TransactionClearedStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionClearedStatus; export declare function TransactionClearedStatusToJSON(value?: TransactionClearedStatus | null): any; diff --git a/dist/esm/models/TransactionClearedStatus.js b/dist/esm/models/TransactionClearedStatus.js index c4d3743..e043a06 100644 --- a/dist/esm/models/TransactionClearedStatus.js +++ b/dist/esm/models/TransactionClearedStatus.js @@ -4,12 +4,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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * The cleared status of the transaction @@ -20,6 +15,16 @@ export var TransactionClearedStatus = { Uncleared: 'uncleared', Reconciled: 'reconciled' }; +export function instanceOfTransactionClearedStatus(value) { + for (var key in TransactionClearedStatus) { + if (Object.prototype.hasOwnProperty.call(TransactionClearedStatus, key)) { + if (TransactionClearedStatus[key] === value) { + return true; + } + } + } + return false; +} export function TransactionClearedStatusFromJSON(json) { return TransactionClearedStatusFromJSONTyped(json, false); } diff --git a/dist/esm/models/TransactionDetail.d.ts b/dist/esm/models/TransactionDetail.d.ts index 39ccb27..dd7bec3 100644 --- a/dist/esm/models/TransactionDetail.d.ts +++ b/dist/esm/models/TransactionDetail.d.ts @@ -2,16 +2,11 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import type { SubTransaction } from './SubTransaction'; -import type { TransactionClearedStatus } from './TransactionClearedStatus'; import type { TransactionFlagColor } from './TransactionFlagColor'; +import type { TransactionClearedStatus } from './TransactionClearedStatus'; +import type { SubTransaction } from './SubTransaction'; /** * * @export @@ -60,6 +55,12 @@ export interface TransactionDetail { * @memberof TransactionDetail */ flag_color?: TransactionFlagColor | null; + /** + * The customized name of a transaction flag + * @type {string} + * @memberof TransactionDetail + */ + flag_name?: string | null; /** * * @type {string} @@ -119,7 +120,7 @@ export interface TransactionDetail { * @type {string} * @memberof TransactionDetail */ - debt_transaction_type?: TransactionDetailDebtTransactionTypeEnum; + debt_transaction_type?: TransactionDetailDebtTransactionTypeEnum | null; /** * Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests. * @type {boolean} @@ -164,11 +165,11 @@ export declare const TransactionDetailDebtTransactionTypeEnum: { readonly Credit: "credit"; readonly Charge: "charge"; }; -export declare type TransactionDetailDebtTransactionTypeEnum = typeof TransactionDetailDebtTransactionTypeEnum[keyof typeof TransactionDetailDebtTransactionTypeEnum]; +export type TransactionDetailDebtTransactionTypeEnum = typeof TransactionDetailDebtTransactionTypeEnum[keyof typeof TransactionDetailDebtTransactionTypeEnum]; /** * Check if a given object implements the TransactionDetail interface. */ -export declare function instanceOfTransactionDetail(value: object): boolean; +export declare function instanceOfTransactionDetail(value: object): value is TransactionDetail; export declare function TransactionDetailFromJSON(json: any): TransactionDetail; export declare function TransactionDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionDetail; export declare function TransactionDetailToJSON(value?: TransactionDetail | null): any; diff --git a/dist/esm/models/TransactionDetail.js b/dist/esm/models/TransactionDetail.js index 7b4d383..64dd163 100644 --- a/dist/esm/models/TransactionDetail.js +++ b/dist/esm/models/TransactionDetail.js @@ -4,17 +4,11 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; -import { SubTransactionFromJSON, SubTransactionToJSON, } from './SubTransaction'; -import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus'; import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor'; +import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus'; +import { SubTransactionFromJSON, SubTransactionToJSON, } from './SubTransaction'; /** * @export */ @@ -32,79 +26,86 @@ export var TransactionDetailDebtTransactionTypeEnum = { * Check if a given object implements the TransactionDetail interface. */ export function instanceOfTransactionDetail(value) { - var isInstance = true; - isInstance = isInstance && "id" in value; - isInstance = isInstance && "date" in value; - isInstance = isInstance && "amount" in value; - isInstance = isInstance && "cleared" in value; - isInstance = isInstance && "approved" in value; - isInstance = isInstance && "account_id" in value; - isInstance = isInstance && "deleted" in value; - isInstance = isInstance && "account_name" in value; - isInstance = isInstance && "subtransactions" in value; - return isInstance; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('date' in value) || value['date'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('cleared' in value) || value['cleared'] === undefined) + return false; + if (!('approved' in value) || value['approved'] === undefined) + return false; + if (!('account_id' in value) || value['account_id'] === undefined) + return false; + if (!('deleted' in value) || value['deleted'] === undefined) + return false; + if (!('account_name' in value) || value['account_name'] === undefined) + return false; + if (!('subtransactions' in value) || value['subtransactions'] === undefined) + return false; + return true; } export function TransactionDetailFromJSON(json) { return TransactionDetailFromJSONTyped(json, false); } export function TransactionDetailFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { 'id': json['id'], 'date': json['date'], 'amount': json['amount'], - 'memo': !exists(json, 'memo') ? undefined : json['memo'], + 'memo': json['memo'] == null ? undefined : json['memo'], 'cleared': TransactionClearedStatusFromJSON(json['cleared']), 'approved': json['approved'], - 'flag_color': !exists(json, 'flag_color') ? undefined : TransactionFlagColorFromJSON(json['flag_color']), + 'flag_color': json['flag_color'] == null ? undefined : TransactionFlagColorFromJSON(json['flag_color']), + 'flag_name': json['flag_name'] == null ? undefined : json['flag_name'], 'account_id': json['account_id'], - 'payee_id': !exists(json, 'payee_id') ? undefined : json['payee_id'], - 'category_id': !exists(json, 'category_id') ? undefined : json['category_id'], - 'transfer_account_id': !exists(json, 'transfer_account_id') ? undefined : json['transfer_account_id'], - 'transfer_transaction_id': !exists(json, 'transfer_transaction_id') ? undefined : json['transfer_transaction_id'], - 'matched_transaction_id': !exists(json, 'matched_transaction_id') ? undefined : json['matched_transaction_id'], - 'import_id': !exists(json, 'import_id') ? undefined : json['import_id'], - 'import_payee_name': !exists(json, 'import_payee_name') ? undefined : json['import_payee_name'], - 'import_payee_name_original': !exists(json, 'import_payee_name_original') ? undefined : json['import_payee_name_original'], - 'debt_transaction_type': !exists(json, 'debt_transaction_type') ? undefined : json['debt_transaction_type'], + 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'], + 'category_id': json['category_id'] == null ? undefined : json['category_id'], + 'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'], + 'transfer_transaction_id': json['transfer_transaction_id'] == null ? undefined : json['transfer_transaction_id'], + 'matched_transaction_id': json['matched_transaction_id'] == null ? undefined : json['matched_transaction_id'], + 'import_id': json['import_id'] == null ? undefined : json['import_id'], + 'import_payee_name': json['import_payee_name'] == null ? undefined : json['import_payee_name'], + 'import_payee_name_original': json['import_payee_name_original'] == null ? undefined : json['import_payee_name_original'], + 'debt_transaction_type': json['debt_transaction_type'] == null ? undefined : json['debt_transaction_type'], 'deleted': json['deleted'], 'account_name': json['account_name'], - 'payee_name': !exists(json, 'payee_name') ? undefined : json['payee_name'], - 'category_name': !exists(json, 'category_name') ? undefined : json['category_name'], + 'payee_name': json['payee_name'] == null ? undefined : json['payee_name'], + 'category_name': json['category_name'] == null ? undefined : json['category_name'], 'subtransactions': (json['subtransactions'].map(SubTransactionFromJSON)), }; } export function TransactionDetailToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'id': value.id, - 'date': value.date, - 'amount': value.amount, - 'memo': value.memo, - 'cleared': TransactionClearedStatusToJSON(value.cleared), - 'approved': value.approved, - 'flag_color': TransactionFlagColorToJSON(value.flag_color), - 'account_id': value.account_id, - 'payee_id': value.payee_id, - 'category_id': value.category_id, - 'transfer_account_id': value.transfer_account_id, - 'transfer_transaction_id': value.transfer_transaction_id, - 'matched_transaction_id': value.matched_transaction_id, - 'import_id': value.import_id, - 'import_payee_name': value.import_payee_name, - 'import_payee_name_original': value.import_payee_name_original, - 'debt_transaction_type': value.debt_transaction_type, - 'deleted': value.deleted, - 'account_name': value.account_name, - 'payee_name': value.payee_name, - 'category_name': value.category_name, - 'subtransactions': (value.subtransactions.map(SubTransactionToJSON)), + 'id': value['id'], + 'date': value['date'], + 'amount': value['amount'], + 'memo': value['memo'], + 'cleared': TransactionClearedStatusToJSON(value['cleared']), + 'approved': value['approved'], + 'flag_color': TransactionFlagColorToJSON(value['flag_color']), + 'flag_name': value['flag_name'], + 'account_id': value['account_id'], + 'payee_id': value['payee_id'], + 'category_id': value['category_id'], + 'transfer_account_id': value['transfer_account_id'], + 'transfer_transaction_id': value['transfer_transaction_id'], + 'matched_transaction_id': value['matched_transaction_id'], + 'import_id': value['import_id'], + 'import_payee_name': value['import_payee_name'], + 'import_payee_name_original': value['import_payee_name_original'], + 'debt_transaction_type': value['debt_transaction_type'], + 'deleted': value['deleted'], + 'account_name': value['account_name'], + 'payee_name': value['payee_name'], + 'category_name': value['category_name'], + 'subtransactions': (value['subtransactions'].map(SubTransactionToJSON)), }; } diff --git a/dist/esm/models/TransactionFlagColor.d.ts b/dist/esm/models/TransactionFlagColor.d.ts index 47aa7af..bcdf7e2 100644 --- a/dist/esm/models/TransactionFlagColor.d.ts +++ b/dist/esm/models/TransactionFlagColor.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * The transaction flag @@ -21,7 +16,8 @@ export declare const TransactionFlagColor: { readonly Blue: "blue"; readonly Purple: "purple"; }; -export declare type TransactionFlagColor = typeof TransactionFlagColor[keyof typeof TransactionFlagColor]; +export type TransactionFlagColor = typeof TransactionFlagColor[keyof typeof TransactionFlagColor]; +export declare function instanceOfTransactionFlagColor(value: any): boolean; export declare function TransactionFlagColorFromJSON(json: any): TransactionFlagColor; export declare function TransactionFlagColorFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionFlagColor; export declare function TransactionFlagColorToJSON(value?: TransactionFlagColor | null): any; diff --git a/dist/esm/models/TransactionFlagColor.js b/dist/esm/models/TransactionFlagColor.js index 0c77eeb..e7771cd 100644 --- a/dist/esm/models/TransactionFlagColor.js +++ b/dist/esm/models/TransactionFlagColor.js @@ -4,12 +4,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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * The transaction flag @@ -23,6 +18,16 @@ export var TransactionFlagColor = { Blue: 'blue', Purple: 'purple', }; +export function instanceOfTransactionFlagColor(value) { + for (var key in TransactionFlagColor) { + if (Object.prototype.hasOwnProperty.call(TransactionFlagColor, key)) { + if (TransactionFlagColor[key] === value) { + return true; + } + } + } + return false; +} export function TransactionFlagColorFromJSON(json) { return TransactionFlagColorFromJSONTyped(json, false); } diff --git a/dist/esm/models/TransactionResponse.d.ts b/dist/esm/models/TransactionResponse.d.ts index c80b0de..9385e01 100644 --- a/dist/esm/models/TransactionResponse.d.ts +++ b/dist/esm/models/TransactionResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { TransactionResponseData } from './TransactionResponseData'; /** @@ -26,7 +21,7 @@ export interface TransactionResponse { /** * Check if a given object implements the TransactionResponse interface. */ -export declare function instanceOfTransactionResponse(value: object): boolean; +export declare function instanceOfTransactionResponse(value: object): value is TransactionResponse; export declare function TransactionResponseFromJSON(json: any): TransactionResponse; export declare function TransactionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionResponse; export declare function TransactionResponseToJSON(value?: TransactionResponse | null): any; diff --git a/dist/esm/models/TransactionResponse.js b/dist/esm/models/TransactionResponse.js index f3a62ff..88c4812 100644 --- a/dist/esm/models/TransactionResponse.js +++ b/dist/esm/models/TransactionResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { TransactionResponseDataFromJSON, TransactionResponseDataToJSON, } from './TransactionResponseData'; /** * Check if a given object implements the TransactionResponse interface. */ export function instanceOfTransactionResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function TransactionResponseFromJSON(json) { return TransactionResponseFromJSONTyped(json, false); } export function TransactionResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function TransactionResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function TransactionResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': TransactionResponseDataToJSON(value.data), + 'data': TransactionResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/TransactionResponseData.d.ts b/dist/esm/models/TransactionResponseData.d.ts index e8f2907..7a98605 100644 --- a/dist/esm/models/TransactionResponseData.d.ts +++ b/dist/esm/models/TransactionResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { TransactionDetail } from './TransactionDetail'; /** @@ -26,7 +21,7 @@ export interface TransactionResponseData { /** * Check if a given object implements the TransactionResponseData interface. */ -export declare function instanceOfTransactionResponseData(value: object): boolean; +export declare function instanceOfTransactionResponseData(value: object): value is TransactionResponseData; export declare function TransactionResponseDataFromJSON(json: any): TransactionResponseData; export declare function TransactionResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionResponseData; export declare function TransactionResponseDataToJSON(value?: TransactionResponseData | null): any; diff --git a/dist/esm/models/TransactionResponseData.js b/dist/esm/models/TransactionResponseData.js index bfe61ad..caa684c 100644 --- a/dist/esm/models/TransactionResponseData.js +++ b/dist/esm/models/TransactionResponseData.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { TransactionDetailFromJSON, TransactionDetailToJSON, } from './TransactionDetail'; /** * Check if a given object implements the TransactionResponseData interface. */ export function instanceOfTransactionResponseData(value) { - var isInstance = true; - isInstance = isInstance && "transaction" in value; - return isInstance; + if (!('transaction' in value) || value['transaction'] === undefined) + return false; + return true; } export function TransactionResponseDataFromJSON(json) { return TransactionResponseDataFromJSONTyped(json, false); } export function TransactionResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function TransactionResponseDataFromJSONTyped(json, ignoreDiscriminator) }; } export function TransactionResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'transaction': TransactionDetailToJSON(value.transaction), + 'transaction': TransactionDetailToJSON(value['transaction']), }; } diff --git a/dist/esm/models/TransactionSummary.d.ts b/dist/esm/models/TransactionSummary.d.ts index 78f5824..dfc7679 100644 --- a/dist/esm/models/TransactionSummary.d.ts +++ b/dist/esm/models/TransactionSummary.d.ts @@ -2,15 +2,10 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import type { TransactionClearedStatus } from './TransactionClearedStatus'; import type { TransactionFlagColor } from './TransactionFlagColor'; +import type { TransactionClearedStatus } from './TransactionClearedStatus'; /** * * @export @@ -59,6 +54,12 @@ export interface TransactionSummary { * @memberof TransactionSummary */ flag_color?: TransactionFlagColor | null; + /** + * The customized name of a transaction flag + * @type {string} + * @memberof TransactionSummary + */ + flag_name?: string | null; /** * * @type {string} @@ -118,7 +119,7 @@ export interface TransactionSummary { * @type {string} * @memberof TransactionSummary */ - debt_transaction_type?: TransactionSummaryDebtTransactionTypeEnum; + debt_transaction_type?: TransactionSummaryDebtTransactionTypeEnum | null; /** * Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests. * @type {boolean} @@ -139,11 +140,11 @@ export declare const TransactionSummaryDebtTransactionTypeEnum: { readonly Credit: "credit"; readonly Charge: "charge"; }; -export declare type TransactionSummaryDebtTransactionTypeEnum = typeof TransactionSummaryDebtTransactionTypeEnum[keyof typeof TransactionSummaryDebtTransactionTypeEnum]; +export type TransactionSummaryDebtTransactionTypeEnum = typeof TransactionSummaryDebtTransactionTypeEnum[keyof typeof TransactionSummaryDebtTransactionTypeEnum]; /** * Check if a given object implements the TransactionSummary interface. */ -export declare function instanceOfTransactionSummary(value: object): boolean; +export declare function instanceOfTransactionSummary(value: object): value is TransactionSummary; export declare function TransactionSummaryFromJSON(json: any): TransactionSummary; export declare function TransactionSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionSummary; export declare function TransactionSummaryToJSON(value?: TransactionSummary | null): any; diff --git a/dist/esm/models/TransactionSummary.js b/dist/esm/models/TransactionSummary.js index 758743b..aa0b632 100644 --- a/dist/esm/models/TransactionSummary.js +++ b/dist/esm/models/TransactionSummary.js @@ -4,16 +4,10 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ -import { exists } from '../runtime'; -import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus'; import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor'; +import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus'; /** * @export */ @@ -31,69 +25,74 @@ export var TransactionSummaryDebtTransactionTypeEnum = { * Check if a given object implements the TransactionSummary interface. */ export function instanceOfTransactionSummary(value) { - var isInstance = true; - isInstance = isInstance && "id" in value; - isInstance = isInstance && "date" in value; - isInstance = isInstance && "amount" in value; - isInstance = isInstance && "cleared" in value; - isInstance = isInstance && "approved" in value; - isInstance = isInstance && "account_id" in value; - isInstance = isInstance && "deleted" in value; - return isInstance; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('date' in value) || value['date'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('cleared' in value) || value['cleared'] === undefined) + return false; + if (!('approved' in value) || value['approved'] === undefined) + return false; + if (!('account_id' in value) || value['account_id'] === undefined) + return false; + if (!('deleted' in value) || value['deleted'] === undefined) + return false; + return true; } export function TransactionSummaryFromJSON(json) { return TransactionSummaryFromJSONTyped(json, false); } export function TransactionSummaryFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { 'id': json['id'], 'date': json['date'], 'amount': json['amount'], - 'memo': !exists(json, 'memo') ? undefined : json['memo'], + 'memo': json['memo'] == null ? undefined : json['memo'], 'cleared': TransactionClearedStatusFromJSON(json['cleared']), 'approved': json['approved'], - 'flag_color': !exists(json, 'flag_color') ? undefined : TransactionFlagColorFromJSON(json['flag_color']), + 'flag_color': json['flag_color'] == null ? undefined : TransactionFlagColorFromJSON(json['flag_color']), + 'flag_name': json['flag_name'] == null ? undefined : json['flag_name'], 'account_id': json['account_id'], - 'payee_id': !exists(json, 'payee_id') ? undefined : json['payee_id'], - 'category_id': !exists(json, 'category_id') ? undefined : json['category_id'], - 'transfer_account_id': !exists(json, 'transfer_account_id') ? undefined : json['transfer_account_id'], - 'transfer_transaction_id': !exists(json, 'transfer_transaction_id') ? undefined : json['transfer_transaction_id'], - 'matched_transaction_id': !exists(json, 'matched_transaction_id') ? undefined : json['matched_transaction_id'], - 'import_id': !exists(json, 'import_id') ? undefined : json['import_id'], - 'import_payee_name': !exists(json, 'import_payee_name') ? undefined : json['import_payee_name'], - 'import_payee_name_original': !exists(json, 'import_payee_name_original') ? undefined : json['import_payee_name_original'], - 'debt_transaction_type': !exists(json, 'debt_transaction_type') ? undefined : json['debt_transaction_type'], + 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'], + 'category_id': json['category_id'] == null ? undefined : json['category_id'], + 'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'], + 'transfer_transaction_id': json['transfer_transaction_id'] == null ? undefined : json['transfer_transaction_id'], + 'matched_transaction_id': json['matched_transaction_id'] == null ? undefined : json['matched_transaction_id'], + 'import_id': json['import_id'] == null ? undefined : json['import_id'], + 'import_payee_name': json['import_payee_name'] == null ? undefined : json['import_payee_name'], + 'import_payee_name_original': json['import_payee_name_original'] == null ? undefined : json['import_payee_name_original'], + 'debt_transaction_type': json['debt_transaction_type'] == null ? undefined : json['debt_transaction_type'], 'deleted': json['deleted'], }; } export function TransactionSummaryToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'id': value.id, - 'date': value.date, - 'amount': value.amount, - 'memo': value.memo, - 'cleared': TransactionClearedStatusToJSON(value.cleared), - 'approved': value.approved, - 'flag_color': TransactionFlagColorToJSON(value.flag_color), - 'account_id': value.account_id, - 'payee_id': value.payee_id, - 'category_id': value.category_id, - 'transfer_account_id': value.transfer_account_id, - 'transfer_transaction_id': value.transfer_transaction_id, - 'matched_transaction_id': value.matched_transaction_id, - 'import_id': value.import_id, - 'import_payee_name': value.import_payee_name, - 'import_payee_name_original': value.import_payee_name_original, - 'debt_transaction_type': value.debt_transaction_type, - 'deleted': value.deleted, + 'id': value['id'], + 'date': value['date'], + 'amount': value['amount'], + 'memo': value['memo'], + 'cleared': TransactionClearedStatusToJSON(value['cleared']), + 'approved': value['approved'], + 'flag_color': TransactionFlagColorToJSON(value['flag_color']), + 'flag_name': value['flag_name'], + 'account_id': value['account_id'], + 'payee_id': value['payee_id'], + 'category_id': value['category_id'], + 'transfer_account_id': value['transfer_account_id'], + 'transfer_transaction_id': value['transfer_transaction_id'], + 'matched_transaction_id': value['matched_transaction_id'], + 'import_id': value['import_id'], + 'import_payee_name': value['import_payee_name'], + 'import_payee_name_original': value['import_payee_name_original'], + 'debt_transaction_type': value['debt_transaction_type'], + 'deleted': value['deleted'], }; } diff --git a/dist/esm/models/TransactionsImportResponse.d.ts b/dist/esm/models/TransactionsImportResponse.d.ts index 84583f0..3f1354d 100644 --- a/dist/esm/models/TransactionsImportResponse.d.ts +++ b/dist/esm/models/TransactionsImportResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { TransactionsImportResponseData } from './TransactionsImportResponseData'; /** @@ -26,7 +21,7 @@ export interface TransactionsImportResponse { /** * Check if a given object implements the TransactionsImportResponse interface. */ -export declare function instanceOfTransactionsImportResponse(value: object): boolean; +export declare function instanceOfTransactionsImportResponse(value: object): value is TransactionsImportResponse; export declare function TransactionsImportResponseFromJSON(json: any): TransactionsImportResponse; export declare function TransactionsImportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsImportResponse; export declare function TransactionsImportResponseToJSON(value?: TransactionsImportResponse | null): any; diff --git a/dist/esm/models/TransactionsImportResponse.js b/dist/esm/models/TransactionsImportResponse.js index 4e0b029..a9584f1 100644 --- a/dist/esm/models/TransactionsImportResponse.js +++ b/dist/esm/models/TransactionsImportResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { TransactionsImportResponseDataFromJSON, TransactionsImportResponseDataToJSON, } from './TransactionsImportResponseData'; /** * Check if a given object implements the TransactionsImportResponse interface. */ export function instanceOfTransactionsImportResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function TransactionsImportResponseFromJSON(json) { return TransactionsImportResponseFromJSONTyped(json, false); } export function TransactionsImportResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function TransactionsImportResponseFromJSONTyped(json, ignoreDiscriminato }; } export function TransactionsImportResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': TransactionsImportResponseDataToJSON(value.data), + 'data': TransactionsImportResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/TransactionsImportResponseData.d.ts b/dist/esm/models/TransactionsImportResponseData.d.ts index 57838a2..10c266c 100644 --- a/dist/esm/models/TransactionsImportResponseData.d.ts +++ b/dist/esm/models/TransactionsImportResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * @@ -25,7 +20,7 @@ export interface TransactionsImportResponseData { /** * Check if a given object implements the TransactionsImportResponseData interface. */ -export declare function instanceOfTransactionsImportResponseData(value: object): boolean; +export declare function instanceOfTransactionsImportResponseData(value: object): value is TransactionsImportResponseData; export declare function TransactionsImportResponseDataFromJSON(json: any): TransactionsImportResponseData; export declare function TransactionsImportResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsImportResponseData; export declare function TransactionsImportResponseDataToJSON(value?: TransactionsImportResponseData | null): any; diff --git a/dist/esm/models/TransactionsImportResponseData.js b/dist/esm/models/TransactionsImportResponseData.js index a85347c..a3cea16 100644 --- a/dist/esm/models/TransactionsImportResponseData.js +++ b/dist/esm/models/TransactionsImportResponseData.js @@ -4,26 +4,21 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * Check if a given object implements the TransactionsImportResponseData interface. */ export function instanceOfTransactionsImportResponseData(value) { - var isInstance = true; - isInstance = isInstance && "transaction_ids" in value; - return isInstance; + if (!('transaction_ids' in value) || value['transaction_ids'] === undefined) + return false; + return true; } export function TransactionsImportResponseDataFromJSON(json) { return TransactionsImportResponseDataFromJSONTyped(json, false); } export function TransactionsImportResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -31,13 +26,10 @@ export function TransactionsImportResponseDataFromJSONTyped(json, ignoreDiscrimi }; } export function TransactionsImportResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'transaction_ids': value.transaction_ids, + 'transaction_ids': value['transaction_ids'], }; } diff --git a/dist/esm/models/TransactionsResponse.d.ts b/dist/esm/models/TransactionsResponse.d.ts index f74d03f..80910b4 100644 --- a/dist/esm/models/TransactionsResponse.d.ts +++ b/dist/esm/models/TransactionsResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { TransactionsResponseData } from './TransactionsResponseData'; /** @@ -26,7 +21,7 @@ export interface TransactionsResponse { /** * Check if a given object implements the TransactionsResponse interface. */ -export declare function instanceOfTransactionsResponse(value: object): boolean; +export declare function instanceOfTransactionsResponse(value: object): value is TransactionsResponse; export declare function TransactionsResponseFromJSON(json: any): TransactionsResponse; export declare function TransactionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsResponse; export declare function TransactionsResponseToJSON(value?: TransactionsResponse | null): any; diff --git a/dist/esm/models/TransactionsResponse.js b/dist/esm/models/TransactionsResponse.js index 4f2b6b2..7c563b9 100644 --- a/dist/esm/models/TransactionsResponse.js +++ b/dist/esm/models/TransactionsResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { TransactionsResponseDataFromJSON, TransactionsResponseDataToJSON, } from './TransactionsResponseData'; /** * Check if a given object implements the TransactionsResponse interface. */ export function instanceOfTransactionsResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function TransactionsResponseFromJSON(json) { return TransactionsResponseFromJSONTyped(json, false); } export function TransactionsResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function TransactionsResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function TransactionsResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': TransactionsResponseDataToJSON(value.data), + 'data': TransactionsResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/TransactionsResponseData.d.ts b/dist/esm/models/TransactionsResponseData.d.ts index 98f9923..c7b47d4 100644 --- a/dist/esm/models/TransactionsResponseData.d.ts +++ b/dist/esm/models/TransactionsResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { TransactionDetail } from './TransactionDetail'; /** @@ -32,7 +27,7 @@ export interface TransactionsResponseData { /** * Check if a given object implements the TransactionsResponseData interface. */ -export declare function instanceOfTransactionsResponseData(value: object): boolean; +export declare function instanceOfTransactionsResponseData(value: object): value is TransactionsResponseData; export declare function TransactionsResponseDataFromJSON(json: any): TransactionsResponseData; export declare function TransactionsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsResponseData; export declare function TransactionsResponseDataToJSON(value?: TransactionsResponseData | null): any; diff --git a/dist/esm/models/TransactionsResponseData.js b/dist/esm/models/TransactionsResponseData.js index 7b63069..03ce213 100644 --- a/dist/esm/models/TransactionsResponseData.js +++ b/dist/esm/models/TransactionsResponseData.js @@ -4,28 +4,24 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { TransactionDetailFromJSON, TransactionDetailToJSON, } from './TransactionDetail'; /** * Check if a given object implements the TransactionsResponseData interface. */ export function instanceOfTransactionsResponseData(value) { - var isInstance = true; - isInstance = isInstance && "transactions" in value; - isInstance = isInstance && "server_knowledge" in value; - return isInstance; + if (!('transactions' in value) || value['transactions'] === undefined) + return false; + if (!('server_knowledge' in value) || value['server_knowledge'] === undefined) + return false; + return true; } export function TransactionsResponseDataFromJSON(json) { return TransactionsResponseDataFromJSONTyped(json, false); } export function TransactionsResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -34,14 +30,11 @@ export function TransactionsResponseDataFromJSONTyped(json, ignoreDiscriminator) }; } export function TransactionsResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'transactions': (value.transactions.map(TransactionDetailToJSON)), - 'server_knowledge': value.server_knowledge, + 'transactions': (value['transactions'].map(TransactionDetailToJSON)), + 'server_knowledge': value['server_knowledge'], }; } diff --git a/dist/esm/models/User.d.ts b/dist/esm/models/User.d.ts index de00120..7ddcc8c 100644 --- a/dist/esm/models/User.d.ts +++ b/dist/esm/models/User.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * @@ -25,7 +20,7 @@ export interface User { /** * Check if a given object implements the User interface. */ -export declare function instanceOfUser(value: object): boolean; +export declare function instanceOfUser(value: object): value is User; export declare function UserFromJSON(json: any): User; export declare function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User; export declare function UserToJSON(value?: User | null): any; diff --git a/dist/esm/models/User.js b/dist/esm/models/User.js index af57b05..e5c13af 100644 --- a/dist/esm/models/User.js +++ b/dist/esm/models/User.js @@ -4,26 +4,21 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * Check if a given object implements the User interface. */ export function instanceOfUser(value) { - var isInstance = true; - isInstance = isInstance && "id" in value; - return isInstance; + if (!('id' in value) || value['id'] === undefined) + return false; + return true; } export function UserFromJSON(json) { return UserFromJSONTyped(json, false); } export function UserFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -31,13 +26,10 @@ export function UserFromJSONTyped(json, ignoreDiscriminator) { }; } export function UserToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'id': value.id, + 'id': value['id'], }; } diff --git a/dist/esm/models/UserResponse.d.ts b/dist/esm/models/UserResponse.d.ts index 1526aaf..073728b 100644 --- a/dist/esm/models/UserResponse.d.ts +++ b/dist/esm/models/UserResponse.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { UserResponseData } from './UserResponseData'; /** @@ -26,7 +21,7 @@ export interface UserResponse { /** * Check if a given object implements the UserResponse interface. */ -export declare function instanceOfUserResponse(value: object): boolean; +export declare function instanceOfUserResponse(value: object): value is UserResponse; export declare function UserResponseFromJSON(json: any): UserResponse; export declare function UserResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserResponse; export declare function UserResponseToJSON(value?: UserResponse | null): any; diff --git a/dist/esm/models/UserResponse.js b/dist/esm/models/UserResponse.js index 06b659a..51ce6a2 100644 --- a/dist/esm/models/UserResponse.js +++ b/dist/esm/models/UserResponse.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { UserResponseDataFromJSON, UserResponseDataToJSON, } from './UserResponseData'; /** * Check if a given object implements the UserResponse interface. */ export function instanceOfUserResponse(value) { - var isInstance = true; - isInstance = isInstance && "data" in value; - return isInstance; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; } export function UserResponseFromJSON(json) { return UserResponseFromJSONTyped(json, false); } export function UserResponseFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function UserResponseFromJSONTyped(json, ignoreDiscriminator) { }; } export function UserResponseToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'data': UserResponseDataToJSON(value.data), + 'data': UserResponseDataToJSON(value['data']), }; } diff --git a/dist/esm/models/UserResponseData.d.ts b/dist/esm/models/UserResponseData.d.ts index 8b30f86..50e258d 100644 --- a/dist/esm/models/UserResponseData.d.ts +++ b/dist/esm/models/UserResponseData.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { User } from './User'; /** @@ -26,7 +21,7 @@ export interface UserResponseData { /** * Check if a given object implements the UserResponseData interface. */ -export declare function instanceOfUserResponseData(value: object): boolean; +export declare function instanceOfUserResponseData(value: object): value is UserResponseData; export declare function UserResponseDataFromJSON(json: any): UserResponseData; export declare function UserResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserResponseData; export declare function UserResponseDataToJSON(value?: UserResponseData | null): any; diff --git a/dist/esm/models/UserResponseData.js b/dist/esm/models/UserResponseData.js index 6b8f22a..468bc05 100644 --- a/dist/esm/models/UserResponseData.js +++ b/dist/esm/models/UserResponseData.js @@ -4,27 +4,22 @@ * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import { UserFromJSON, UserToJSON, } from './User'; /** * Check if a given object implements the UserResponseData interface. */ export function instanceOfUserResponseData(value) { - var isInstance = true; - isInstance = isInstance && "user" in value; - return isInstance; + if (!('user' in value) || value['user'] === undefined) + return false; + return true; } export function UserResponseDataFromJSON(json) { return UserResponseDataFromJSONTyped(json, false); } export function UserResponseDataFromJSONTyped(json, ignoreDiscriminator) { - if ((json === undefined) || (json === null)) { + if (json == null) { return json; } return { @@ -32,13 +27,10 @@ export function UserResponseDataFromJSONTyped(json, ignoreDiscriminator) { }; } export function UserResponseDataToJSON(value) { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; + if (value == null) { + return value; } return { - 'user': UserToJSON(value.user), + 'user': UserToJSON(value['user']), }; } diff --git a/dist/esm/models/index.d.ts b/dist/esm/models/index.d.ts index b9221cf..cc81982 100644 --- a/dist/esm/models/index.d.ts +++ b/dist/esm/models/index.d.ts @@ -5,7 +5,6 @@ export * from './AccountType'; export * from './AccountsResponse'; export * from './AccountsResponseData'; export * from './BudgetDetail'; -export * from './BudgetDetailAllOf'; export * from './BudgetDetailResponse'; export * from './BudgetDetailResponseData'; export * from './BudgetSettings'; @@ -23,26 +22,26 @@ export * from './CategoriesResponseData'; export * from './Category'; export * from './CategoryGroup'; export * from './CategoryGroupWithCategories'; -export * from './CategoryGroupWithCategoriesAllOf'; export * from './CategoryResponse'; export * from './CategoryResponseData'; export * from './CurrencyFormat'; export * from './DateFormat'; export * from './ErrorDetail'; export * from './ErrorResponse'; +export * from './ExistingTransaction'; export * from './HybridTransaction'; -export * from './HybridTransactionAllOf'; export * from './HybridTransactionsResponse'; export * from './HybridTransactionsResponseData'; export * from './MonthDetail'; -export * from './MonthDetailAllOf'; export * from './MonthDetailResponse'; export * from './MonthDetailResponseData'; export * from './MonthSummariesResponse'; export * from './MonthSummariesResponseData'; export * from './MonthSummary'; +export * from './NewTransaction'; export * from './PatchCategoryWrapper'; export * from './PatchMonthCategoryWrapper'; +export * from './PatchPayeeWrapper'; export * from './PatchTransactionsWrapper'; export * from './Payee'; export * from './PayeeLocation'; @@ -55,6 +54,7 @@ export * from './PayeeResponseData'; export * from './PayeesResponse'; export * from './PayeesResponseData'; export * from './PostAccountWrapper'; +export * from './PostScheduledTransactionWrapper'; export * from './PostTransactionsWrapper'; export * from './PutTransactionWrapper'; export * from './SaveAccount'; @@ -62,16 +62,18 @@ export * from './SaveCategory'; export * from './SaveCategoryResponse'; export * from './SaveCategoryResponseData'; export * from './SaveMonthCategory'; +export * from './SavePayee'; +export * from './SavePayeeResponse'; +export * from './SavePayeeResponseData'; +export * from './SaveScheduledTransaction'; export * from './SaveSubTransaction'; -export * from './SaveTransaction'; -export * from './SaveTransactionWithId'; -export * from './SaveTransactionWithIdAllOf'; +export * from './SaveTransactionWithIdOrImportId'; export * from './SaveTransactionWithOptionalFields'; export * from './SaveTransactionsResponse'; export * from './SaveTransactionsResponseData'; export * from './ScheduledSubTransaction'; export * from './ScheduledTransactionDetail'; -export * from './ScheduledTransactionDetailAllOf'; +export * from './ScheduledTransactionFrequency'; export * from './ScheduledTransactionResponse'; export * from './ScheduledTransactionResponseData'; export * from './ScheduledTransactionSummary'; @@ -80,7 +82,6 @@ export * from './ScheduledTransactionsResponseData'; export * from './SubTransaction'; export * from './TransactionClearedStatus'; export * from './TransactionDetail'; -export * from './TransactionDetailAllOf'; export * from './TransactionFlagColor'; export * from './TransactionResponse'; export * from './TransactionResponseData'; diff --git a/dist/esm/models/index.js b/dist/esm/models/index.js index 06626e5..b379cd5 100644 --- a/dist/esm/models/index.js +++ b/dist/esm/models/index.js @@ -7,7 +7,6 @@ export * from './AccountType'; export * from './AccountsResponse'; export * from './AccountsResponseData'; export * from './BudgetDetail'; -export * from './BudgetDetailAllOf'; export * from './BudgetDetailResponse'; export * from './BudgetDetailResponseData'; export * from './BudgetSettings'; @@ -25,26 +24,26 @@ export * from './CategoriesResponseData'; export * from './Category'; export * from './CategoryGroup'; export * from './CategoryGroupWithCategories'; -export * from './CategoryGroupWithCategoriesAllOf'; export * from './CategoryResponse'; export * from './CategoryResponseData'; export * from './CurrencyFormat'; export * from './DateFormat'; export * from './ErrorDetail'; export * from './ErrorResponse'; +export * from './ExistingTransaction'; export * from './HybridTransaction'; -export * from './HybridTransactionAllOf'; export * from './HybridTransactionsResponse'; export * from './HybridTransactionsResponseData'; export * from './MonthDetail'; -export * from './MonthDetailAllOf'; export * from './MonthDetailResponse'; export * from './MonthDetailResponseData'; export * from './MonthSummariesResponse'; export * from './MonthSummariesResponseData'; export * from './MonthSummary'; +export * from './NewTransaction'; export * from './PatchCategoryWrapper'; export * from './PatchMonthCategoryWrapper'; +export * from './PatchPayeeWrapper'; export * from './PatchTransactionsWrapper'; export * from './Payee'; export * from './PayeeLocation'; @@ -57,6 +56,7 @@ export * from './PayeeResponseData'; export * from './PayeesResponse'; export * from './PayeesResponseData'; export * from './PostAccountWrapper'; +export * from './PostScheduledTransactionWrapper'; export * from './PostTransactionsWrapper'; export * from './PutTransactionWrapper'; export * from './SaveAccount'; @@ -64,16 +64,18 @@ export * from './SaveCategory'; export * from './SaveCategoryResponse'; export * from './SaveCategoryResponseData'; export * from './SaveMonthCategory'; +export * from './SavePayee'; +export * from './SavePayeeResponse'; +export * from './SavePayeeResponseData'; +export * from './SaveScheduledTransaction'; export * from './SaveSubTransaction'; -export * from './SaveTransaction'; -export * from './SaveTransactionWithId'; -export * from './SaveTransactionWithIdAllOf'; +export * from './SaveTransactionWithIdOrImportId'; export * from './SaveTransactionWithOptionalFields'; export * from './SaveTransactionsResponse'; export * from './SaveTransactionsResponseData'; export * from './ScheduledSubTransaction'; export * from './ScheduledTransactionDetail'; -export * from './ScheduledTransactionDetailAllOf'; +export * from './ScheduledTransactionFrequency'; export * from './ScheduledTransactionResponse'; export * from './ScheduledTransactionResponseData'; export * from './ScheduledTransactionSummary'; @@ -82,7 +84,6 @@ export * from './ScheduledTransactionsResponseData'; export * from './SubTransaction'; export * from './TransactionClearedStatus'; export * from './TransactionDetail'; -export * from './TransactionDetailAllOf'; export * from './TransactionFlagColor'; export * from './TransactionResponse'; export * from './TransactionResponseData'; diff --git a/dist/esm/runtime.d.ts b/dist/esm/runtime.d.ts index 71f3185..42f96b7 100644 --- a/dist/esm/runtime.d.ts +++ b/dist/esm/runtime.d.ts @@ -2,12 +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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ export declare const BASE_PATH: string; export interface ConfigurationParameters { @@ -90,24 +85,24 @@ export declare const COLLECTION_FORMATS: { tsv: string; pipes: string; }; -export declare type FetchAPI = WindowOrWorkerGlobalScope['fetch']; -export declare type Json = any; -export declare type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; -export declare type HTTPHeaders = { +export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; +export type Json = any; +export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; +export type HTTPHeaders = { [key: string]: string; }; -export declare type HTTPQuery = { +export type HTTPQuery = { [key: string]: string | number | null | boolean | Array | Set | HTTPQuery; }; -export declare type HTTPBody = Json | FormData | URLSearchParams; -export declare type HTTPRequestInit = { +export type HTTPBody = Json | FormData | URLSearchParams; +export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody; }; -export declare type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; -export declare type InitOverrideFunction = (requestContext: { +export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; +export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit; context: RequestOpts; }) => Promise; diff --git a/dist/esm/runtime.js b/dist/esm/runtime.js index 0b8405b..658705c 100644 --- a/dist/esm/runtime.js +++ b/dist/esm/runtime.js @@ -4,12 +4,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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { @@ -52,7 +47,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); - while (_) try { + while (g && (g = 0, op[0] && (_ = 0)), _) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { diff --git a/src/tsconfig.esm.json b/src/tsconfig.esm.json index 294a3da..78efe1a 100644 --- a/src/tsconfig.esm.json +++ b/src/tsconfig.esm.json @@ -4,6 +4,7 @@ "target":"ES5", "module": "ES2015", "outDir": "../dist/esm", - "moduleResolution": "node" + "moduleResolution": "node", + "tsBuildInfoFile": "./tsconfig.esm.tsbuildinfo" } } diff --git a/src/tsconfig.esm.tsbuildinfo b/src/tsconfig.esm.tsbuildinfo new file mode 100644 index 0000000..c962086 --- /dev/null +++ b/src/tsconfig.esm.tsbuildinfo @@ -0,0 +1 @@ +{"program":{"fileNames":["../node_modules/typescript/lib/lib.d.ts","../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","./runtime.ts","./models/accounttype.ts","./models/account.ts","./models/accountresponsedata.ts","./models/accountresponse.ts","./models/accountsresponsedata.ts","./models/accountsresponse.ts","./models/payeelocation.ts","./models/transactionflagcolor.ts","./models/scheduledtransactionsummary.ts","./models/category.ts","./models/currencyformat.ts","./models/dateformat.ts","./models/subtransaction.ts","./models/monthdetail.ts","./models/payee.ts","./models/scheduledsubtransaction.ts","./models/transactionclearedstatus.ts","./models/transactionsummary.ts","./models/categorygroup.ts","./models/budgetdetail.ts","./models/budgetdetailresponsedata.ts","./models/budgetdetailresponse.ts","./models/budgetsettings.ts","./models/budgetsettingsresponsedata.ts","./models/budgetsettingsresponse.ts","./models/budgetsummary.ts","./models/budgetsummaryresponsedata.ts","./models/budgetsummaryresponse.ts","./models/bulkresponsedatabulk.ts","./models/bulkresponsedata.ts","./models/bulkresponse.ts","./models/savesubtransaction.ts","./models/savetransactionwithoptionalfields.ts","./models/bulktransactions.ts","./models/categorygroupwithcategories.ts","./models/categoriesresponsedata.ts","./models/categoriesresponse.ts","./models/categoryresponsedata.ts","./models/categoryresponse.ts","./models/errordetail.ts","./models/errorresponse.ts","./models/existingtransaction.ts","./models/hybridtransaction.ts","./models/hybridtransactionsresponsedata.ts","./models/hybridtransactionsresponse.ts","./models/monthdetailresponsedata.ts","./models/monthdetailresponse.ts","./models/monthsummary.ts","./models/monthsummariesresponsedata.ts","./models/monthsummariesresponse.ts","./models/newtransaction.ts","./models/savecategory.ts","./models/patchcategorywrapper.ts","./models/savemonthcategory.ts","./models/patchmonthcategorywrapper.ts","./models/savepayee.ts","./models/patchpayeewrapper.ts","./models/savetransactionwithidorimportid.ts","./models/patchtransactionswrapper.ts","./models/payeelocationresponsedata.ts","./models/payeelocationresponse.ts","./models/payeelocationsresponsedata.ts","./models/payeelocationsresponse.ts","./models/payeeresponsedata.ts","./models/payeeresponse.ts","./models/payeesresponsedata.ts","./models/payeesresponse.ts","./models/saveaccount.ts","./models/postaccountwrapper.ts","./models/scheduledtransactionfrequency.ts","./models/savescheduledtransaction.ts","./models/postscheduledtransactionwrapper.ts","./models/posttransactionswrapper.ts","./models/puttransactionwrapper.ts","./models/savecategoryresponsedata.ts","./models/savecategoryresponse.ts","./models/savepayeeresponsedata.ts","./models/savepayeeresponse.ts","./models/transactiondetail.ts","./models/savetransactionsresponsedata.ts","./models/savetransactionsresponse.ts","./models/scheduledtransactiondetail.ts","./models/scheduledtransactionresponsedata.ts","./models/scheduledtransactionresponse.ts","./models/scheduledtransactionsresponsedata.ts","./models/scheduledtransactionsresponse.ts","./models/transactionresponsedata.ts","./models/transactionresponse.ts","./models/transactionsimportresponsedata.ts","./models/transactionsimportresponse.ts","./models/transactionsresponsedata.ts","./models/transactionsresponse.ts","./models/user.ts","./models/userresponsedata.ts","./models/userresponse.ts","./models/index.ts","./apis/accountsapi.ts","./apis/budgetsapi.ts","./apis/categoriesapi.ts","./apis/monthsapi.ts","./apis/payeelocationsapi.ts","./apis/payeesapi.ts","./apis/scheduledtransactionsapi.ts","./apis/transactionsapi.ts","./apis/userapi.ts","./apis/index.ts","./apis/customtransactionsapi.ts","./utils.ts","./index.ts","./apis/deprecatedapi.ts","./models/budgetdetailallof.ts","./models/categorygoaltype.ts","./models/categorygroupwithcategoriesallof.ts","./models/hybridtransactionallof.ts","./models/monthdetailallof.ts","./models/savetransaction.ts","./models/savetransactionwithid.ts","./models/savetransactionwithidallof.ts","./models/savetransactionwithoptionalfieldsflagcolor.ts","./models/scheduledtransactiondetailallof.ts","./models/scheduledtransactionsummaryflagcolor.ts","./models/transactiondetailallof.ts","./models/transactionsummarydebttransactiontype.ts","../node_modules/@types/chai/index.d.ts","../node_modules/@types/eslint/helpers.d.ts","../node_modules/@types/estree/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/eslint/index.d.ts","../node_modules/@types/eslint-scope/index.d.ts","../node_modules/@types/fetch-mock/index.d.ts","../node_modules/@types/mocha/index.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/ts3.2/fs.d.ts","../node_modules/@types/node/ts3.2/process.d.ts","../node_modules/@types/node/ts3.2/util.d.ts","../node_modules/@types/node/ts3.2/globals.d.ts","../node_modules/@types/node/ts3.2/base.d.ts","../node_modules/@types/node/ts3.5/globals.global.d.ts","../node_modules/@types/node/ts3.5/wasi.d.ts","../node_modules/@types/node/ts3.5/base.d.ts","../node_modules/@types/node/ts3.7/assert.d.ts","../node_modules/@types/node/ts3.7/base.d.ts","../node_modules/@types/node/ts3.7/index.d.ts","../../node_modules/@types/better-sqlite3/index.d.ts","../../node_modules/@types/stack-trace/index.d.ts"],"fileInfos":["a7297ff837fcdf174a9524925966429eb8e5feecc2cc55cc06574e6b092c1eaa",{"version":"2ac9cdcfb8f8875c18d14ec5796a8b029c426f73ad6dc3ffb580c228b58d1c44","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8",{"version":"0075fa5ceda385bcdf3488e37786b5a33be730e8bc4aa3cf1e78c63891752ce8","affectsGlobalScope":true},{"version":"c5c5565225fce2ede835725a92a28ece149f83542aa4866cfb10290bff7b8996","affectsGlobalScope":true},{"version":"7d2dbc2a0250400af0809b0ad5f84686e84c73526de931f84560e483eb16b03c","affectsGlobalScope":true},{"version":"f296963760430fb65b4e5d91f0ed770a91c6e77455bacf8fa23a1501654ede0e","affectsGlobalScope":true},{"version":"09226e53d1cfda217317074a97724da3e71e2c545e18774484b61562afc53cd2","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"8b41361862022eb72fcc8a7f34680ac842aca802cf4bc1f915e8c620c9ce4331","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"b7e9f95a7387e3f66be0ed6db43600c49cec33a3900437ce2fd350d9b7cb16f2","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"f35a831e4f0fe3b3697f4a0fe0e3caa7624c92b78afbecaf142c0f93abfaf379","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"ed90f12423d512b609214acbed9609e04356a96fcc16bc3fc8cc1abe39912e45","signature":"76663a261e9b7dd4422cb22230dcac67e506c5db3d10e8415a73c836482916ce"},{"version":"87cc8c330fab899d2fb8a60b06e38bf5a0865a7859820320258fbec4a906d458","signature":"048e46e920e00b2ffeeb8097c2867f0b9408c7409878ebb031612337762dc0b8"},{"version":"9156895b0dfdbe85f2a36cc8b75491fd25982f1e89a4ca151a756410ae4c2de0","signature":"84c08d4d294775f848df5cb58d635b7a11e4b1b720a7e7160ff0b673e3da8fc5"},{"version":"7876b4e037b472e036de70f6181eb06533487fc962aa9719455601fb24f2061e","signature":"16f3239e15d7a3941629b540629e26eb57bf02b378c2708e61089573cdd7ab6e"},{"version":"4e3e8ddb1e57846f4da9174062496f2937be37fb13841a0ae3e5aa7fe2929254","signature":"ae7e6f9128d2705aaf91f300c6ce9a3c441bd071fe82c1db03d4910a19b2849c"},{"version":"ceb87516407318025c07c20c063874649a019cb94c6ce617ea482f8958f50963","signature":"69b26fadcc1ca6882346736b800b53ec4f9744a19af4dea5c0b19a3de34d4e61"},{"version":"0cf4a76d649b6d527780aacaf3cfb4bf963606cc5d1f9c7de859578c3f65d2d3","signature":"6dc982c28f06c8829f6c95a00736ccf4bd0a54373622a5eed9e8a0fdc361d687"},{"version":"61591907e25a6b07da75fe1a4c8c6d997600d532ae97b738dc36e04bdb36a157","signature":"ea7597962e5e0fb51aebbcfd3bf680e797ff59c5bca67be462718f78a301afbb"},{"version":"11cde5fb7fc3bc78dcab420ffe8913f432dca97350de286e7316fe31b36cc83c","signature":"8072422e3da2f6615c76ab8aa4f8a57e7d9725cd2e30f8e1234a7178f453483c"},{"version":"da2bc85ceb40aaa98d09f2f70ad598120b1075adc5bbe36e90f8dccf0121bc37","signature":"62b5a7c20165d92b0b7de68b25a27d0b3be36843d0ccb6e6ff9b4b0eeddaa66d"},{"version":"2cc449a31a358936c419ea472d8af8388dc96aeccb6b31736babe7519d45d372","signature":"16fe3a4a0f68fd312eb0bf7fc25d2089beadd704fdab422794c4d65c83598d14"},{"version":"47363fabe13cf95cd10bb703dce84b011555d0fc954550d033ae5b8f25187d4a","signature":"313c9619aa6aecfbb7a65bb5a378600b743ad99637b54834c25a9638b7a152de"},{"version":"7f3279e56ccbd6c31ccadeda31e84c3b77852a72616fb3a8040e80f30e1ade6d","signature":"93adacd54d0b3d238e0ff56e4a473c1adaca88c8ed3f48bc20086b9c08f1d0f6"},{"version":"1730d9e83b86182650ce0f97bdeb5582bc737477b04c66c4f778156a4b510722","signature":"1bef0e2d4d2cc922c08f6e62c3fbd76b4f46272699a002ef2e3df735ef644157"},{"version":"7ebae5187aae9018e4f3e8a6f86304bf5f831ebbb755e46cf236af6e1bd6872e","signature":"c07e59a51429c04e6b53fed7335176e96fc219f6292a536d9acfbe3521f06cdd"},{"version":"761c00e5e45d2086cfeb243be72a4ea68140528e123c5f52b60471b50a329abc","signature":"4dbabc3973161b0049bc4de07b1abd9940e8cf219ea45c9eeeac7be0406dd172"},{"version":"8d53b639af61060bfabd1a67c725c2a2aa4a000bc75bdc6ab940368e0354dd4f","signature":"ba99d6305d420d3ac6507769ca780ee9dc350ba25155c3561c830b413a1565c3"},{"version":"b1e5213df6fb97698190204dbe258fa1faefaf936fe62026bde7dacdf58d740e","signature":"de5d64926f5d895026c9150adfe219ebc3246ecf422639ef06090264918c2071"},{"version":"f46defd1fb50a31c5b933e2fb19d50ec7bfb78e8ed2ee37e4bb7cd88a912916e","signature":"c5c89949ec69ffbc5baac86565493bff630bc7c463e84081adb70c7b0b338c34"},{"version":"b7ad5acee620114ca3ddaa968dd3e91d856f1b4e01d3587288fc0b3a256b33f6","signature":"c990abecdd29c593fd10fba0fa1a2a5a6cda56ca8f5cc0b4cd6628529804e71b"},{"version":"9d347a9d61bd618c029c06764e348ac26dcb1e3a08a3e3c3b99548ee5eb3416b","signature":"175d081f5e7adbc24a0d97a37fd1fbb4e359c6d71c233474bb370b4fc73600ca"},{"version":"f8a370a0213caa53def5de851e27d3844c616b19965bb9700de47374aaf318b5","signature":"b3edbe955bcafc495223840bb5d9c683290c2922baf7d06a2ec13c54167c6899"},{"version":"d2cba7a8252d2f23487c5d331f60b34f509683598f0cdcd68ac8a70ff25d8c59","signature":"9bacbfccb5d9cabbe6961b603dcb7d12b8501de80cefbcbc0610641cb155fc09"},{"version":"0318df45ad0c1638e5b280e27e15c90980968f4660eb97b68adae8e0863b2a71","signature":"35d58c0b6b4d5475dca759e4cf80e6b59038ad93c88eda6261bce78a21c32324"},{"version":"89fcd6bbb60a9bee24d08b54bf76f14df0594ee48dced9212079c4b25b475365","signature":"bc0b0f794ba15458c91c04552aee914c1c8332fe0f481ad08ee663fc3b077e58"},{"version":"38a31db0ba8b0760fc7890829c94232ad981562b1c3fb1a293a5d70f7acbb734","signature":"f6e230d0924f4d3dce5ac832cf49cb7f41707a7b6e6d24ebd47ab0a74c04b705"},{"version":"4cdcc84a22b30207dfa55bd33e679b43b0066da94d0b5b20c35b4142dc7cca00","signature":"f423e29a743872a35836e6bf8554812db7aa8b94901f912b8bae54baccfcb65a"},{"version":"e97e0201151d3064329b3c8565fc351aacf39f964b53f06fab4c19196caab577","signature":"b3162a3601e3473f7f3e81f715d75951ab45df032af0af427f6c0170f988d906"},{"version":"0908061b90ba16327798e7b8670751ca2c3ef831768a0271feed2fadf48d2a87","signature":"bcd49d37df6aeec3cd9838885db259e42106ff3e4205ac386cf4ef22a44dc1e3"},{"version":"5a7395518e6dc19b06fe741dff7c6f90cadf1848ec824e1f0f0a5b0ada3a6a10","signature":"2cd26b92795161a8058386168870e9079588392f2a7d305ae7e00ccec5c8d977"},{"version":"709fcff54c0420fd5b4e778ba9f153c15991e66f1096b5312a0bd1f2949ee110","signature":"cd0df93102541be1e5102658665bc90f1edac8c5ad6fbb28a410de69bd56d025"},{"version":"6f3718843c2f64fb577975a696506ce378fcbd0cffa849fcfb1a9fa46fc455b4","signature":"7d2a911cb56383526a11b0912ce83f88ec8a6094e1944d42ccdb428b8c044769"},{"version":"f568aa2a98ac49518cb0f5c45f0d7e2d6b8dc51da9e71d404db531213246d225","signature":"ab3c0fc2c5750cc41b713ab66b9215db7362dddf86f70e52e9fe13e8d809fa41"},{"version":"335733ca72b56a6c96422df87f38c516e5e8bd431d1b72214a0058c3b20a8371","signature":"b4c202a22a3f527408ef4a4a3a69ba0a6c1c0f78c866a7f9f158025af7950d28"},{"version":"16dd2462421849b54fe394f2231a9c5c7bca72e2b46e257735fff972581c1897","signature":"aa02b1720630bff8f447867b35ff5e4c6145045f0033aaab2e8c8fb38aca6b78"},{"version":"6ca807300bcaeb5b8a975121bb3191d0663df187cda02f6803c25443d00844d3","signature":"781251c784341944ee50a0f624d69a7482c91dd9e47947ca86acbfbb32b940bf"},{"version":"bd2489f0433c48e1f2bb71a3b293fbf215c629f1611a22f0399427aa0fbf6212","signature":"be8cc114a98bab4326021d4868970d56dd6203eb7000c12299d81d3c1a9bebff"},{"version":"f466d04a3cb9b50556982786dc3ed8eea45253f9181d10506ef4be8b63a63e46","signature":"4bf28f8d5e0a94842360b05644d6591e0bfd6af6f1e74f91b36e48089501d774"},{"version":"f3172a0333d8c76fa8e480b4f5e502cf89b211c0d419c3f5efa689b5cebc86f2","signature":"d50cb3c8e05d186a568524493b18ba0873976644f77645eef561cdb5cfe26cd3"},{"version":"a74215d51aeb1e90f5828e65b90ec94287b789dad0e90ffc2ea6a9ae1f0bd511","signature":"1084892e06fe0f95051155566a4da95075e733c894c41d4c94ba9e973c0ce677"},{"version":"a463d268de3ca95110cd460383fc1b106753c9aa6c3d998bb841a4bccfe1ba6c","signature":"03ba9b65ce9ec837320e768cc036f030234bf7c7dc02045edc4daa7ef23f44a7"},{"version":"261bb521f88a7e4ed34a20f499e5c42a5095aa10664103065eb09fbac37a306d","signature":"4137288e5fdc715f59aafa4331dbca47ebe8278483e29f95a53c66e88b166b12"},{"version":"90e450495640510a9cd9ca2fc54a6a5b8a4b59dc30671453a292b87308359229","signature":"2c5f62f68773e4ba8d924d7273cfbbbf2a71938cbbd2c51b363caf1e6ea034f4"},{"version":"27589e2c7f830a107acdc1d7886b6151b780a5f604558772956d8d817294dbd0","signature":"a5dc0c0008b07269cd2d008e1ec033c870e9a3e058f29b6463b3b4564d9c5811"},{"version":"5978a6f6c5fa4398ece77edaedced48e76fdcc13403dd1d1edc2175188d45378","signature":"20aa2923cfb8ece063abf59facb0e0aa84964e8a5b0d6526a90835d0e2c54db9"},{"version":"02f40753b1796e4cc27b3c4c70bbb64ab1923910bfb33656b12172ebbb024239","signature":"9343a7ee313928009f8547128bb2040f5c29bafe3c6ee340d0c4b613ba49a0cb"},{"version":"e3d238a5f17c570d914b1fd5c0e2e622440040c64cd2bc948ebcfda76d5b43af","signature":"3fffdd4b5fb29e9ef469799e5fe76a191ca91060e287aeb2f0b56ab63f6c9fc4"},{"version":"b0cb5eea8317e06215694425a26bd85005515d941efcb39c511514f46668c59e","signature":"c638101a28624c199ebdfd9804fdd6857568397944be19126a8426f7d53d52fb"},{"version":"9e23b3a850a050386b6031b1460380ae9494bf118467a3ab042910b9f22f9f92","signature":"ece99b7ee7c6e642f94442eb1a3245460c331334a5bf95f91a1b46f49580763d"},{"version":"3e597ce184cc40a1b06364b2bb101d98a1146c8cf201ef670f7b3d1071481ce6","signature":"b2fabe1df9ef31c553cd8f9a7b8f1dde39d5cbc90d0add3c8f81211db2ccda04"},{"version":"093c3df271fc1576ba3ce745489d2816e52cb9458f0318a650dfb8fe7e791415","signature":"b9200517dfe2cad4a2c3b0b55335032b5e16329b5c81b01517d62655b68d932c"},{"version":"706020410192943553d201a312944001e4f922c0e9caf23864d671e71330b689","signature":"052cc6e5c5563dc6c2d6bd5afc22fe55b4098af6a5ae978faedb2778c32a2735"},{"version":"a5f16941366e5b650b4001aed99828557260192b2f01150f843afded2980406d","signature":"5f3d81dd02f7b359fcc59459878c6e8c9ccc7bc25d379c2e065863d5c2d6cc5b"},{"version":"94111074fa66d607141920c0c1294570fa96a3ceb727a412547ed09c7bbf53cd","signature":"d6415aabbc77d3b473e132a47117dac430e26870e465d211c6ba230c4e75cfcf"},{"version":"cf36a6d08c439a35713d6a07257d5d0e3d9a234d5a3224a66d4a99eb37c5c9f7","signature":"d7fecf8731ae647fdfdc0e95a9e836eedd47a4b7095faf6a4d06a5ed8a36332a"},{"version":"bbd4a953f85a1b1c48dd71825fce747b1c474b2ee97e9979112fd00fed2e4fa0","signature":"b537f1845d8d37fd57d0befd286f327a0fb74180ca0a76893fa99e30bdd0f422"},{"version":"1f9e395ca2e3694d362856e42c60558d876d01c2658c2aedd30b5ad28e9f1433","signature":"7a3d035821cb4a950ef99fa046bbef5f51d039a37c70bdd09350e95aaddbb050"},{"version":"fea289956cf9a7c51261ad0a2a3d90c2b9c0067cc4bbc471b668a7ec7f6be63e","signature":"c493acb0941cc74d53c9b6a963b08daab39079e3d25a2f184bba1b7f729c0469"},{"version":"7c70cedde8d263b0097fbac27fcac43ad63560e0a68da8e579c8cb30f427f664","signature":"93bc23d3f0e536b0409dec5432a096d32780c21066f60afffbd1921438a9563b"},{"version":"89b2758c9bca588aea885153eed85bbe755cbca80b9663404cf7c236791576ff","signature":"fae3ddd67207ebb3cffffca18e4124f44381eaf20a788cf05f7080ec5b5e9243"},{"version":"43f2b6cfd5dbf86150893f8357d89d08a83184bf1bed14ba8e6c44a407d4d392","signature":"f74f651e0baae28c0a3cf5d107b6e3475ef84e1d1950de37bf64272a68ae34af"},{"version":"aa3e16c69918c0df69ae495cee44a1040edd8b647e29f1524f505de5e2b94ed9","signature":"f46c9f636711befa06d46752ed2d5e73f2da2cbf7336df5d517563232631ec7a"},{"version":"3772ed76632cd86c3201b2560c62f11d120d0f140a465a32a1eca68faaf5f79f","signature":"8430588520f9fc1031951db8aa2fd6da4aa2274447cb4421d4b15c823c04f71c"},{"version":"81b383dbde3d0c8853529e0f88e99cb06c440796c36c0ccf9d7c6240708387bd","signature":"72089b34ea21f9eb514d302d34d068d43e39ad2783e769eb90c0e2ab932f28dc"},{"version":"535fd9b608f3bf9949aff8f01e239ac88468fbf00d8c886aaf5490d59fad69cb","signature":"2cb450b66baf937fab9237f157c0f2bd3eb8dc61d8ca0f9939cc78ef557a5df3"},{"version":"51e1a5bc190b711f88e5c410e4d416e97590f728431cd64aaa00c4da1269d4da","signature":"db43782d435a03ca52f61c99aace3659fb58c345215598b56d4cbd63e8be7062"},{"version":"edecdb1f804466f7c59190568c4308b96629a57c9f8e0e2e3740fcbacd5ca06b","signature":"a86f099ef227f158d5a8c20589184c0d8536f732aa4bf30c56f542096352d42b"},{"version":"6cee78ca519504ad64194b3821595ee825538e2f0350b62371a81c252e4a71f6","signature":"3c2cdc014b0f7b78fb0bfadd3c625474c6a8f8d6279a58db1d989a1d4821f80b"},{"version":"e46e7ba6a23458fc88225020b8eaeab34d66020a74b6d43b7b1705201482a8dc","signature":"8646dd4b0d23f671b7845ed47656d3381a9feb71a24608a539177f0af29a3c74"},{"version":"3d80a1ad9265a60ff887b1b32742b31bd685d817e8209777ef4b97cb714a55e8","signature":"24fd6f1225d4c62f1012fc6a978a0295bb7d3fb51b63099bb1ecf1eb84f5dae0"},{"version":"4b3b52ea976164c230d6ab7c548105301f5efc4c6a4d6f6f79c8b2dd4da9b267","signature":"07084a4f0beb213436d2fd3090f20d6a0b811097bcb3b7734ca47d12b5e1bdab"},{"version":"2d00754e0177e577ca03ba577b1c3e12d74f071a76a5a1bea831df1e80065214","signature":"e937d1d0e022661e0d725cc830b0cc2f126e6425e9bf078b1a3cfb2ead102692"},{"version":"c54ff3f6ddda523a179f5469733cff9804aa8b7e5af9275ea1949e3d83a4051e","signature":"159075b8f2e5efa547ada62502abb355193a67ed3437e0c727eae4274c383798"},{"version":"145fc354009b04ee31b2ca2af3d625285e99f957dcacca1a816fd6184cc1fbeb","signature":"5411c9e3222a0061e271c5fb8e8ea33411881949d3b5a8eb35667a7dfe8badce"},{"version":"650201ca7433a975f6648472198e019a262dfb571c8176fbeeae855c5b42bf4b","signature":"7e0263955c47430305bf7714f37b97e68cd18e9e4ee31b3f75e9fd566af30d6f"},{"version":"faaaf36df372ad4318e6c229cd7252f46f160eb4d34522f5b06255c2bcbb7e2a","signature":"f2e525713d81dc2ae7a9aee89b362ab4fb466200410f88db3bace613ccc2e25c"},{"version":"32de6888f522251ddf5bc94e114d3670bca04d0c10892c4bbe5634813d10a67d","signature":"46730184949a7d10f9f5d2ffe46c84141f9b797516dfb4470aed7d096c99bd3c"},{"version":"49dd0974b0be397f0b5f413bc4abc774a462d64b264b851920e6c34ade4d904a","signature":"ceae32c0431da6d108dc9c25496f50845f572a1f8cd623a1883e7e5da0047dbe"},{"version":"6e371da84cabf512553be6d2608a21838b0d9276447dc4c5b013bde632c5399d","signature":"affb3d82f33d219ff0dca730e2196707fdd4b07bf4a3902192481c9847faafd7"},{"version":"8181f6922ffbb6732f90afa011fee101190b4f8bb67aee1fac67e36670814e55","signature":"8d7c8b86037fb5628152bb7b87b7853a475e3850f6daf0019402a49daebd766d"},{"version":"c7e28f69e099691ac6e09e79b40051d80231602647bf6f3ce939bfb4906aa0d3","signature":"5345fd803b56e01112e798d20d3ac4d3b65a03e500e8033bda81950238b5ac4b"},{"version":"8597eafb75549adb72b765d9413f6c7ec139fcdac6c6c5c5c1251ceed1046e90","signature":"0d90f7cd9eba0df8cc809fea0ddaf1a5c4b71c389f44646eb5567989459a662a"},{"version":"d75640cfb84b047249c50e1c0481670734646d652884465b468cee97c9bcf78c","signature":"f2c864ce6afa10b330895fbfed4d0b52fc7c4bf221569bb8ee24b2d412c3a079"},{"version":"dd02405bc6a963e334b49e8c787634d19b178cdc42a18af19ede8077cd18555f","signature":"2316c0a7e6dfbb3c00865e44693bbd7c96daf6b3dbe527343793d562bec6d01f"},{"version":"c45e80389d8a3328d5aed50f711ea6d52080c67089d5a0ac509d6bd53c438e12","signature":"de0062b8cca0a085fc5b00e6374a372f038245d512429ee277422a962774ec89"},{"version":"8f191a416b28526f90fd1308951e8d7cb3c1a62600e80cacac8f1313bd38d357","signature":"4ef778e3dc30f56e51e8382e0294173c3262de6e9ca032f496b241d552843b2b"},{"version":"8868346cdd1aae0873a5373d4bb5d3fdfe72e59c4912bb9310b218a6607443fd","signature":"2b4968448cc82c2265da8f9af61eccf381c3144e5ac403ccde562d1eba064112"},{"version":"dcd604c14a1f0574b7e954983fb2db8fbeb546c148e931ef2433c06e0b18f1c2","signature":"348fb7c3038a3f5658f2fa8e9a507ce56ccecf6edaa8f683c2cb5e4ab755a1ff"},{"version":"5adcd289a1c0c26e06f241e7db56fd800a3e775d9d642c7918cbba57b4edb817","signature":"5b95ff6129a69516258224b6564deb2fc497f1f28072a25709d8ec011483773a"},{"version":"aeb0b6eec3db36e1baa9b1597ecbe9191aaa376c0683bf242d1b370887569c81","signature":"db08a26688f1cdd993a4dd1341a3e1d73b6232609213302d35b0dc5ee057c0fb"},{"version":"34c0ec4e2ca7dbda8055e80b605eedf3dfad3f0a2110f0a35aad30c7861e49de","signature":"36c28b0a9b6a33331d2bbd342f1ebb84aa3b548466e1dd7683279427b2b8f9d9"},{"version":"4370b91c966adf3f647af519e96ebf1ea86d4a76110cf264e550cc603ace7d94","signature":"4389efd6878be91af71a6c21de78f83bf7a894cf338d21ca81a2bbe18bc49de1"},{"version":"ebaa93f1d57694348cfd0c7205ef97cab0d85ce9ccca77c8190ad6853a488d7e","signature":"adc0222832b516ff210f97ac8da5128fcdce835d6cdeb7e266e44faf1087e14d"},{"version":"8a9e1cf6591bb8873fb1fa7ea1734ab0e404488cb1ed699225e95f0ccda3bd52","signature":"ca718d6546007dc612116631a6122de8c754113324b66acda269fe6df348b5cc"},{"version":"914258dc61040eb22145dc2c53c2ca17206a4ebc7076de67197cfc96b7dfe05e","signature":"cea0adb38ca27d5337eb51796271ae2a357c3151ea46a00d72354ec41cf2c6df"},{"version":"425abc8c8333e0de5ed5ebbd9d5778871eb73f962e8ffb6ea8631de8f19cbfa8","signature":"f3b3b68d15d356812f2ad73c96ae5881c0142283a84dd29078def6dcb43a788c"},{"version":"5afe1b58a9b56d44ad803fe6fe7a30e7757d40e16598ebdce91306c8fe8edc34","signature":"dfd2261a272cdb5caaa297fa499229a0e91504571a9376515c3ec2d83b04e2dd"},{"version":"95a75c0cb660e4b71d9ea216c37234935886ccdd764776af7a99e7f12bbcf6da","signature":"2177846a60c947b1e0d05976477819d7161c22e6b90ffc40e27030dadae92f60"},{"version":"44295027e7153dfd83b5e5044fc5aaab4b423ceaf5e4459d55da8bb4adb87552","signature":"fd0601e472101962bc477671702966bd336b3b89996d88808479e581e8872c42"},{"version":"88741cdb8153fc80b5a970e9f1cafea720e079bad5807ef3ed8b9e1378c2413b","signature":"1ada6fc7c54a33b5b974db8625d53442d8ea966d61a5e644fd98a86a4a33a4c3"},{"version":"187044aa80e9f21db5671272131b74c888071645eac506f2b37ed45c0844ca49","signature":"4885bf92807894625a8155236f059a948b11763ab7e22ce6adfa70628e569243"},{"version":"5cc7676fdb5c45196c0b7212986e6415df73b1b3e6795ff608759d40c02b2216","signature":"e804dbc43a25f90aff350efcd6765ed209b4952841c5aa9d874df03efd0e901c"},{"version":"e27a3281621a418f8f0de5f9d39146684d892e4863b9d6be1297e12e56b7e85e","signature":"c1548c49481bc91d0d13ffbe33b41a8a63d36e33e029a4250f88e91ed9bb34e3"},{"version":"37f3c5eea1b5ffa77b38379a621ddfb57ff8b5481434d06a531934a2b7164f64","signature":"c6f1ec18824e2a73cb7ab802174a3e16630e72632e7827eea683a79b040dfa0f"},{"version":"a0cdd984cb4ad38111c3adc5d824f08db2e8f01b928c4016dfae4f6eb0f34eb8","signature":"fa5f6199a9932f0b14408b4a6330d0dba7e1cfb7b7b1bd43ca58c5eef307ce41"},{"version":"40441e5e7d2acbd74fc3e81eaae59e28a5fcf2a2511a1c87ba0f2c39ce80ec99","signature":"c73d200f626af4830d69e5f5b8a4c1b4ee3077fe430a9dc99d41b8a6d3c4e7a2"},{"version":"26dffc75fa4583834aa2b3074e6411a2240571f9388f7ff0ac43f400fd347c21","signature":"5939a9bae648a3dc98f777652d20d8984a57bbc6a8ef52f53c117224f9d95194"},{"version":"b338bb933cdc1f12c2aeb3266ab14d0dd8295784e19fe00ebd31bb6207afa806","signature":"3fe596899e66d76c7469f30ee2cfaa29bdb77b94cfcd255a0f74a4d2e9dbf7db"},{"version":"f18d4b0209fe01f38e3224197f575cd4d417f57bc1835de39e643358349afef0","signature":"94bef913a33374e6391c12a1de5d101188ba1c3f1adbe9cf7b9c3403639cf6a3"},{"version":"8349721c15e2b940488103b5d337e36e2f0ef9cdb41ccde68c44743188176331","signature":"2900cd36186ed726e6516908a96674c9c6533b1345f21f4d7f5ef8d3486b0715"},{"version":"db1eec33f4994501e520569d25b485babfcd96d479c41ec8bf0a9e0f43fcb662","signature":"13458d4bc9cca28bd3c8db40472d51571689f67ae3473ff0f402394ab310b149"},{"version":"cad8e027cee598d1b5f02dc9be4a0e2d49216bd63fc21f3f9782fcfeadd6e3b6","signature":"7666d31c7a645d125c23cf5a8fc31a62fd239ef76fb4e16b6dd3ceae1f71b6dc"},{"version":"7b52391cf7abe96a481e33fd3adc26a285be42896d793129db32d670694bbf9c","signature":"6a42b112db6ba2d932610890fefa93067c040b3392e387c570a54c00cb65fd4c"},{"version":"b4afac6487f839cb4a6073d8fbf166a74b550f7d2fc78cb3d04ce7780f75b566","signature":"d24605b3d6087d642cbdd8bc3a5713c5c37cdc8cf88ac8f7365d8efaf9760cfa"},{"version":"cda245570fef94ac037497bf074f5e8e75a7655448c3de3b8503c44a8d3f02b0","signature":"50be398613160567f48335ccaf51069f4db27ffe249bee2fa1476cca9e55c9fe"},{"version":"93b4ba26e8402072f74aaf4548082c6e657bed43ee276257337ef1980ce163af","signature":"5533ab976e321fe76e26c113192a2609b0243883b20372baade4047d06331888"},{"version":"2bfdf987e8974707b6aa1fce2c221033bf8f02fe8f2e09232b1a4db29af39e59","signature":"282f8d55dc34ab7a063e51b71059e97656dd68a40d175b978bf3c7bf1fe76328"},{"version":"47fefeb6573406be9ec1d21feed7a3b986209f471ca58fa96fa144355dfc8fe7","signature":"1f871dbaffde565ece2e6b1177414fab3317f9833c412fb2d71b0f21d4f5f96c"},{"version":"cd90aba463c7acde346fc5860bf97b4adc90d930b471c640a980dbc5190dae33","signature":"e2fe614e5ca92de6bb5e13154b58121cc5eee2b95b133f6963805556e07d0c4a"},{"version":"971ebddd4f4d394a3a6cce1e3be734224acfee580cdd58c5c6b5edea7e7a152b","signature":"a0eca4a0368583236c5a890e600ccd506030785e2c3ae5f8bebfdc931b9cc92e"},{"version":"201f48c6952e5fc5d104e1924e3fb1152b04b9ec8262483771f88e86c8660787","signature":"65ab434c25fd31ba7cf1151ca7b7cfbf32aa99c3ac7e3c025ab5ec451a95f1f7"},{"version":"2e4a12b669a59c3bf28d63f0533baae1c77f7c182441b8ad6227adec6518af80","signature":"7b3ceffc531f59a8b843060cf82c8df00789ea4a1930aa4208cb8d3cdafa1ae0"},{"version":"dcb4cb973b5984e10420ae6bc7659cebbd93ce19b6dd96ff0ba13e9024cfea1d","signature":"596dfc0a656a50e9e58bca0044725c72030d8cf68a8a3cba9c4bc80c704edf80"},{"version":"61263c2392d9f30cf3f271c6a7d52b498fbbea0c0b7a295e129435d1d934e48c","signature":"56b85730f806433db7a5cab5e34f21d7ea687cfb22a311f7b56ea456008e04d9"},{"version":"2fc02febc18eb7df45ce134505a190daeb2fad54c71d12f41a741d47c0cc5549","affectsGlobalScope":true},{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"a1c79f857f5c7754e14c93949dad8cfefcd7df2ecc0dc9dd79a30fd493e28449","f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","c84d0f714fe122193c21c0f0917e873beb3a03fa3422ceb2fbd1ebc0558790a0","e050a0afcdbb269720a900c85076d18e0c1ab73e580202a2bf6964978181222a","c552df30bb2eef1d7d8778f0635202a060f26f851c8326967cc1e9ce84cbb5f9",{"version":"5fa636db579756828c6b7d63badcba112f2d1352cf0331e5d462946762082ffa","affectsGlobalScope":true},{"version":"6fc83519155969f2457d2454908d68830a6f6480974914c024eaf4e3248a2fd1","affectsGlobalScope":true},"4ed9f71ddbb5753771ee391f64297078a88f7dfd1480646dcf08c31395778682","bc6a78961535181265845bf9b9e8a147ffd0ca275097ceb670a9b92afa825152","714e21572208da98a16594de5e42ee54dbbebca7e69e956d2dac010564378c45","123ec69e4b3a686eb49afd94ebe3292a5c84a867ecbcb6bb84bdd720a12af803",{"version":"51851805d06a6878796c3a00ccf0839fe18111a38d1bae84964c269f16bcc2b7","affectsGlobalScope":true},"90c85ddbb8de82cd19198bda062065fc51b7407c0f206f2e399e65a52e979720","bc99370962c617000b3f66ba97426142bf49daa5467c081c64a57ad7bc6bcc14","7ecfe97b43aa6c8b8f90caa599d5648bb559962e74e6f038f73a77320569dd78","7db7569fbb3e2b01ba8751c761cdd3f0debd104170d5665b7dc20a11630df3a9",{"version":"cde4d7f6274468180fa39847b183aec22626e8212ff885d535c53f4cd7c225fd","affectsGlobalScope":true},{"version":"072b0ac82ae8fe05b0d4f2eadb7f6edd0ebd84175ecad2f9e09261290a86bcee","affectsGlobalScope":true},"5a1eba6d050430241b27463e4917e1d30d3f5e242f47cab42619e4f7c5dea486","fb28748ff8d015f52e99daee4f454e57cec1a22141f1257c317f3630a15edeb7","27534007150d3d80f12fe48dc815b32bf9b92a7de058b52bfc21a256e9d18966","5d9394b829cfd504b2fe17287aaad8ce1dcfb2a2183c962a90a85b96da2c1c90","c969bf4c7cdfe4d5dd28aa09432f99d09ad1d8d8b839959646579521d0467d1a","6c3857edaeeaaf43812f527830ebeece9266b6e8eb5271ab6d2f0008306c9947","bc6a77e750f4d34584e46b1405b771fb69a224197dd6bafe5b0392a29a70b665","46cac76114704902baa535b30fb66a26aeaf9430f3b3ab44746e329f12e85498","ed4ae81196cccc10f297d228bca8d02e31058e6d723a3c5bc4be5fb3c61c6a34","84044697c8b3e08ef24e4b32cfe6440143d07e469a5e34bda0635276d32d9f35","0b6098fedb648cab8091cca2b022a5c729b6ef18da923852033f495907cb1a45",{"version":"6eaee45c02a226f96d34e0c6a7542873d0160af179bbf9ead42e05f6fc36f9e5","affectsGlobalScope":true},"30ec6f9c683b988c3cfaa0c4690692049c4e7ed7dc6f6e94f56194c06b86f5e1","884560fda6c3868f925f022adc3a1289fe6507bbb45adb10fa1bbcc73a941bb0","6b2bb67b0942bcfce93e1d6fad5f70afd54940a2b13df7f311201fba54b2cbe9","dd3706b25d06fe23c73d16079e8c66ac775831ef419da00716bf2aee530a04a4","1298327149e93a60c24a3b5db6048f7cc8fd4e3259e91d05fc44306a04b1b873","d67e08745494b000da9410c1ae2fdc9965fc6d593fe0f381a47491f75417d457","b40652bf8ce4a18133b31349086523b219724dca8df3448c1a0742528e7ad5b9","b268804feea68616eb0daad944359f46a2eac9b53a72a3d12bf328ef01207805","a77fdb357c78b70142b2fdbbfb72958d69e8f765fd2a3c69946c1018e89d4638","3c2ac350c3baa61fd2b1925844109e098f4376d0768a4643abc82754fd752748","826d48e49c905cedb906cbde6ccaf758827ff5867d4daa006b5a79e0fb489357","baa711b17f67390c60eac3c70a1391b23a8e3833cb723b2d7336d4817a22455c","289be113bad7ee27ee7fa5b1e373c964c9789a5e9ed7db5ddcb631371120b953","e4abb8eaa8a7d78236be0f8342404aab076668d20590209e32fdeb924588531e","086bfc0710b044ce1586108ee56c6e1c0d9ca2d325c153bb026cbc850169f593","f409183966a1dd93d3a9cd1d54fbeb85c73101e87cd5b19467c5e37b252f3fd8","b46af749e3574b83bccc0ec829322b15e834ae90b45760eebc75a189c28c0868","12b2608d6074167c331c9c3c6994a57819f6ff934c7fd4527e23aabf56d4c8d1",{"version":"ed9a167405a95168481b8b3ca6934565c8ed59de52f06e08b4c8b547e16b1257","affectsGlobalScope":true},"ffc1cd688606ad1ddb59a40e8f3defbde907af2a3402d1d9ddf69accb2903f07",{"version":"0bd12336f0f61303a1f71e1ab0b2ae325489eb9c7896cd49eb96edc9f182cf07","affectsGlobalScope":true},"bf7aafaeb6b90aaad61e446a8ad36eb30f6ea0292953eefcb7fdca95582d5c98",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"0b3fef11ea6208c4cb3715c9aa108766ce98fc726bfba68cc23b25ce944ce9c0","255dbc5a5acef2b83b47145042aa0127ebf7fe24cd5ce6afaaaf5c8fc2c5eb96","a8b842671d535d14f533fd8dbfacebceacf5195069d720425d572d5cc5ab3dc4","9779312cffccce68e3ffbaa3a876381dc54a8240d9bdaa448f7eba222ec19392","d522314e80ed71b57e3c2939d3c9594eaae63a4adf028559e6574f6b270b0fee","b310d0ecac745104887df9d5e3bf9651df9f5391b0d369adaebe12ed1905e459","8b5d6b8b473ed3f589ca8bb5f49e5f150451b6df73d4cbc43d8e4de78794a8eb"],"root":[[36,159]],"options":{"composite":true,"declaration":true,"module":5,"noEmitOnError":true,"noImplicitAny":true,"outDir":"../dist/esm","rootDir":"./","strict":true,"strictPropertyInitialization":false,"target":1,"tsBuildInfoFile":"./tsconfig.esm.tsbuildinfo"},"fileIdsList":[[180,191,203,209,210,211,219],[180,191,203,209,210,211],[162,164,180,191,203,209,210,211],[161,162,163,180,191,203,209,210,211],[168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,209,210,211],[179,180,187,191,196,203,209,210,211],[171,179,180,187,191,203,209,210,211],[175,180,188,191,203,209,210,211],[180,191,196,203,209,210,211],[177,179,180,187,191,203,209,210,211],[179,180,191,203,209,210,211],[179,181,191,196,202,203,209,210,211],[180,187,191,196,202,203,209,210,211],[179,180,182,187,191,196,199,202,203,209,210,211],[179,180,182,191,199,202,203,209,210,211],[180,191,202,203,209,210,211],[177,179,180,191,196,203,209,210,211],[169,180,191,203,209,210,211],[180,201,203,209,210,211],[179,180,191,196,203,209,210,211],[180,191,194,203,205,209,210,211],[175,177,180,187,191,196,203,209,210,211],[180,191,203,208,209,210,211,212],[180,191,203,210,211],[168,180,191,203,209,210,211],[180,191,203,209,211],[180,191,203,209,210],[180,191,203,209,210,211,213,214,215],[180,191,203,209,210,211,216,217],[180,191,203,209,210,211,218],[180,187,191,203,209,210,211],[180,191,193,203,209,210,211],[180,191,209,210,211],[179,180,191,196,202,203,205,209,210,211],[36,132,180,191,203,209,210,211],[109,140,180,191,203,209,210,211],[133,134,135,136,137,138,139,140,141,180,191,203,209,210,211],[36,132,142,143,144,180,191,203,209,210,211],[36,37,180,191,203,209,210,211],[36,39,180,191,203,209,210,211],[36,38,180,191,203,209,210,211],[36,41,180,191,203,209,210,211],[36,38,43,45,46,47,48,49,50,51,52,54,55,180,191,203,209,210,211],[36,38,43,45,46,49,50,51,52,54,55,180,191,203,209,210,211],[36,57,180,191,203,209,210,211],[36,56,180,191,203,209,210,211],[36,47,48,180,191,203,209,210,211],[36,60,180,191,203,209,210,211],[36,59,180,191,203,209,210,211],[36,38,47,48,180,191,203,209,210,211],[36,63,180,191,203,209,210,211],[36,62,180,191,203,209,210,211],[36,66,180,191,203,209,210,211],[36,65,180,191,203,209,210,211],[36,180,191,203,209,210,211],[36,69,180,191,203,209,210,211],[36,72,180,191,203,209,210,211],[36,71,180,191,203,209,210,211],[36,46,180,191,203,209,210,211],[36,74,180,191,203,209,210,211],[36,76,180,191,203,209,210,211],[36,44,53,68,180,191,203,209,210,211],[36,44,53,180,191,203,209,210,211],[36,80,180,191,203,209,210,211],[36,79,180,191,203,209,210,211],[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,180,191,203,209,210,211],[36,82,180,191,203,209,210,211],[36,50,180,191,203,209,210,211],[36,85,180,191,203,209,210,211],[36,84,180,191,203,209,210,211],[36,88,180,191,203,209,210,211],[36,90,180,191,203,209,210,211],[36,92,180,191,203,209,210,211],[36,94,180,191,203,209,210,211],[36,96,180,191,203,209,210,211],[36,43,180,191,203,209,210,211],[36,98,180,191,203,209,210,211],[36,100,180,191,203,209,210,211],[36,51,180,191,203,209,210,211],[36,102,180,191,203,209,210,211],[36,104,180,191,203,209,210,211],[36,107,180,191,203,209,210,211],[36,87,180,191,203,209,210,211],[36,78,180,191,203,209,210,211],[36,111,180,191,203,209,210,211],[36,113,180,191,203,209,210,211],[36,44,106,180,191,203,209,210,211],[36,116,180,191,203,209,210,211],[36,115,180,191,203,209,210,211],[36,44,52,180,191,203,209,210,211],[36,52,180,191,203,209,210,211],[36,119,180,191,203,209,210,211],[36,118,180,191,203,209,210,211],[36,121,180,191,203,209,210,211],[36,44,180,191,203,209,210,211],[36,44,49,53,180,191,203,209,210,211],[36,49,180,191,203,209,210,211],[36,123,180,191,203,209,210,211],[36,125,180,191,203,209,210,211],[36,127,180,191,203,209,210,211],[36,130,180,191,203,209,210,211],[36,129,180,191,203,209,210,211],[36,132],[109,140,145],[133,134,135,136,137,138,139,140,141],[36,132,142,143,144],[37],[39],[38],[41],[38,43,45,46,47,48,49,50,51,52,54,55],[38,43,45,46,49,50,51,52,54,55],[57],[56],[47,48],[60],[59],[38,47,48],[63],[62],[66],[65],[69],[72],[71],[46],[74],[76],[44,53,68],[44,53],[80],[79],[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131],[82],[50],[85],[84],[88],[90],[92],[94],[96],[43],[98],[100],[51],[102],[104],[107],[87],[78],[111],[113],[44,106],[116],[115],[44,52],[52],[119],[118],[121],[44],[44,49,53],[49],[123],[125],[127],[130],[129]],"referencedMap":[[220,1],[221,2],[160,2],[165,3],[161,2],[164,4],[162,2],[166,2],[163,2],[167,2],[169,2],[208,5],[170,2],[171,6],[172,7],[173,2],[174,8],[175,9],[176,10],[177,2],[178,11],[179,2],[180,12],[181,2],[168,2],[182,13],[183,14],[184,15],[185,11],[186,16],[187,17],[188,2],[189,2],[190,18],[191,19],[192,2],[193,2],[194,20],[195,21],[196,11],[197,2],[198,2],[199,22],[200,2],[213,23],[209,24],[212,25],[210,26],[211,27],[216,28],[214,2],[215,2],[217,2],[218,29],[219,30],[201,31],[202,32],[203,33],[204,9],[205,2],[206,34],[207,9],[1,2],[34,2],[35,2],[7,2],[11,2],[10,2],[3,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[4,2],[5,2],[20,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[6,2],[28,2],[29,2],[30,2],[31,2],[32,2],[2,2],[33,2],[9,2],[8,2],[133,35],[134,35],[135,35],[143,36],[146,35],[142,37],[136,35],[137,35],[138,35],[139,35],[140,35],[141,35],[145,38],[38,39],[40,40],[39,41],[42,42],[41,41],[37,2],[56,43],[147,44],[58,45],[57,46],[59,47],[61,48],[60,49],[62,50],[64,51],[63,52],[67,53],[66,54],[65,55],[70,56],[73,57],[72,58],[46,55],[148,55],[55,55],[71,59],[149,59],[75,60],[74,59],[47,55],[48,55],[76,55],[77,61],[78,62],[79,63],[150,55],[81,64],[80,65],[132,66],[50,59],[151,59],[83,67],[82,68],[86,69],[85,70],[84,55],[87,62],[89,71],[91,72],[93,73],[95,74],[51,55],[43,55],[97,75],[96,76],[99,77],[98,76],[101,78],[100,79],[103,80],[102,79],[105,81],[108,82],[109,83],[110,84],[104,39],[88,55],[112,85],[111,59],[90,55],[92,55],[114,86],[113,79],[107,87],[68,55],[152,62],[117,88],[116,89],[153,62],[154,55],[94,62],[69,62],[155,55],[52,55],[118,90],[156,91],[106,2],[120,92],[119,93],[122,94],[121,93],[45,95],[157,55],[49,55],[53,2],[115,96],[158,97],[44,2],[124,98],[123,89],[126,99],[125,55],[128,100],[127,89],[54,63],[159,55],[129,55],[131,101],[130,102],[36,2],[144,2]],"exportedModulesMap":[[220,1],[221,2],[160,2],[165,3],[161,2],[164,4],[162,2],[166,2],[163,2],[167,2],[169,2],[208,5],[170,2],[171,6],[172,7],[173,2],[174,8],[175,9],[176,10],[177,2],[178,11],[179,2],[180,12],[181,2],[168,2],[182,13],[183,14],[184,15],[185,11],[186,16],[187,17],[188,2],[189,2],[190,18],[191,19],[192,2],[193,2],[194,20],[195,21],[196,11],[197,2],[198,2],[199,22],[200,2],[213,23],[209,24],[212,25],[210,26],[211,27],[216,28],[214,2],[215,2],[217,2],[218,29],[219,30],[201,31],[202,32],[203,33],[204,9],[205,2],[206,34],[207,9],[1,2],[34,2],[35,2],[7,2],[11,2],[10,2],[3,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[4,2],[5,2],[20,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[6,2],[28,2],[29,2],[30,2],[31,2],[32,2],[2,2],[33,2],[9,2],[8,2],[133,103],[134,103],[135,103],[143,104],[146,103],[142,105],[136,103],[137,103],[138,103],[139,103],[140,103],[141,103],[145,106],[38,107],[40,108],[39,109],[42,110],[41,109],[56,111],[147,112],[58,113],[57,114],[59,115],[61,116],[60,117],[62,118],[64,119],[63,120],[67,121],[66,122],[70,123],[73,124],[72,125],[71,126],[149,126],[75,127],[74,126],[77,128],[78,129],[79,130],[81,131],[80,132],[132,133],[50,126],[151,126],[83,134],[82,135],[86,136],[85,137],[87,129],[89,138],[91,139],[93,140],[95,141],[97,142],[96,143],[99,144],[98,143],[101,145],[100,146],[103,147],[102,146],[105,148],[108,149],[109,150],[110,151],[104,107],[112,152],[111,126],[114,153],[113,146],[107,154],[152,129],[117,155],[116,156],[153,129],[94,129],[69,129],[118,157],[156,158],[120,159],[119,160],[122,161],[121,160],[45,162],[115,163],[158,164],[124,165],[123,156],[126,166],[128,167],[127,156],[54,130],[131,168],[130,169]],"semanticDiagnosticsPerFile":[220,221,160,165,161,164,162,166,163,167,169,208,170,171,172,173,174,175,176,177,178,179,180,181,168,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,213,209,212,210,211,216,214,215,217,218,219,201,202,203,204,205,206,207,1,34,35,7,11,10,3,12,13,14,15,16,17,18,19,4,5,20,24,21,22,23,25,26,27,6,28,29,30,31,32,2,33,9,8,133,134,135,143,146,142,136,137,138,139,140,141,145,38,40,39,42,41,37,56,147,58,57,59,61,60,62,64,63,67,66,65,70,73,72,46,148,55,71,149,75,74,47,48,76,77,78,79,150,81,80,132,50,151,83,82,86,85,84,87,89,91,93,95,51,43,97,96,99,98,101,100,103,102,105,108,109,110,104,88,112,111,90,92,114,113,107,68,152,117,116,153,154,94,69,155,52,118,156,106,120,119,122,121,45,157,49,53,115,158,44,124,123,126,125,128,127,54,159,129,131,130,36,144],"latestChangedDtsFile":"../dist/esm/models/TransactionSummaryDebtTransactionType.d.ts"},"version":"5.2.2"} \ No newline at end of file