Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify tsBuildInfoFile to fix esm build #175

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions dist/esm/apis/AccountsApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
9 changes: 2 additions & 7 deletions dist/esm/apis/AccountsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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]) {
Expand Down
7 changes: 1 addition & 6 deletions dist/esm/apis/BudgetsApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
9 changes: 2 additions & 7 deletions dist/esm/apis/BudgetsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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]) {
Expand Down
7 changes: 1 addition & 6 deletions dist/esm/apis/CategoriesApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
9 changes: 2 additions & 7 deletions dist/esm/apis/CategoriesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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]) {
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/apis/DeprecatedApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down
7 changes: 1 addition & 6 deletions dist/esm/apis/MonthsApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
9 changes: 2 additions & 7 deletions dist/esm/apis/MonthsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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]) {
Expand Down
7 changes: 1 addition & 6 deletions dist/esm/apis/PayeeLocationsApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
9 changes: 2 additions & 7 deletions dist/esm/apis/PayeeLocationsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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]) {
Expand Down
24 changes: 17 additions & 7 deletions dist/esm/apis/PayeesApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -19,6 +14,11 @@ export interface GetPayeesRequest {
budgetId: string;
lastKnowledgeOfServer?: number;
}
export interface UpdatePayeeRequest {
budgetId: string;
payeeId: string;
data: PatchPayeeWrapper;
}
/**
*
*/
Expand All @@ -43,4 +43,14 @@ export declare class PayeesApi extends runtime.BaseAPI {
* List payees
*/
getPayees(budgetId: string, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PayeesResponse>;
/**
* Update a payee
* Update a payee
*/
updatePayeeRaw(requestParameters: UpdatePayeeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SavePayeeResponse>>;
/**
* Update a payee
* Update a payee
*/
updatePayee(budgetId: string, payeeId: string, data: PatchPayeeWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SavePayeeResponse>;
}
75 changes: 67 additions & 8 deletions dist/esm/apis/PayeesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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]) {
Expand All @@ -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';
/**
*
*/
Expand Down Expand Up @@ -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 };
23 changes: 16 additions & 7 deletions dist/esm/apis/ScheduledTransactionsApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<runtime.ApiResponse<ScheduledTransactionResponse>>;
/**
* Creates a single scheduled transaction.
* Create a single scheduled transaction
*/
createScheduledTransaction(budgetId: string, data: PostScheduledTransactionWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTransactionResponse>;
/**
* Returns a single scheduled transaction
* Single scheduled transaction
Expand Down
Loading
Loading