ynab 3.1.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -97,7 +97,7 @@ var AccountsApi = /** @class */ (function (_super) {
97
97
  }
98
98
  _a.label = 2;
99
99
  case 2: return [4 /*yield*/, this.request({
100
- path: "/budgets/{plan_id}/accounts".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
100
+ path: "/plans/{plan_id}/accounts".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
101
101
  method: 'POST',
102
102
  headers: headerParameters,
103
103
  query: queryParameters,
@@ -157,7 +157,7 @@ var AccountsApi = /** @class */ (function (_super) {
157
157
  }
158
158
  _a.label = 2;
159
159
  case 2: return [4 /*yield*/, this.request({
160
- path: "/budgets/{plan_id}/accounts/{account_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("account_id", "}"), encodeURIComponent(String(requestParameters.accountId))),
160
+ path: "/plans/{plan_id}/accounts/{account_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("account_id", "}"), encodeURIComponent(String(requestParameters.accountId))),
161
161
  method: 'GET',
162
162
  headers: headerParameters,
163
163
  query: queryParameters,
@@ -216,7 +216,7 @@ var AccountsApi = /** @class */ (function (_super) {
216
216
  }
217
217
  _a.label = 2;
218
218
  case 2: return [4 /*yield*/, this.request({
219
- path: "/budgets/{plan_id}/accounts".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
219
+ path: "/plans/{plan_id}/accounts".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
220
220
  method: 'GET',
221
221
  headers: headerParameters,
222
222
  query: queryParameters,
@@ -97,7 +97,7 @@ var CategoriesApi = /** @class */ (function (_super) {
97
97
  }
98
98
  _a.label = 2;
99
99
  case 2: return [4 /*yield*/, this.request({
100
- path: "/budgets/{plan_id}/categories".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
100
+ path: "/plans/{plan_id}/categories".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
101
101
  method: 'POST',
102
102
  headers: headerParameters,
103
103
  query: queryParameters,
@@ -158,7 +158,7 @@ var CategoriesApi = /** @class */ (function (_super) {
158
158
  }
159
159
  _a.label = 2;
160
160
  case 2: return [4 /*yield*/, this.request({
161
- path: "/budgets/{plan_id}/category_groups".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
161
+ path: "/plans/{plan_id}/category_groups".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
162
162
  method: 'POST',
163
163
  headers: headerParameters,
164
164
  query: queryParameters,
@@ -218,7 +218,7 @@ var CategoriesApi = /** @class */ (function (_super) {
218
218
  }
219
219
  _a.label = 2;
220
220
  case 2: return [4 /*yield*/, this.request({
221
- path: "/budgets/{plan_id}/categories".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
221
+ path: "/plans/{plan_id}/categories".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
222
222
  method: 'GET',
223
223
  headers: headerParameters,
224
224
  query: queryParameters,
@@ -277,7 +277,7 @@ var CategoriesApi = /** @class */ (function (_super) {
277
277
  }
278
278
  _a.label = 2;
279
279
  case 2: return [4 /*yield*/, this.request({
280
- path: "/budgets/{plan_id}/categories/{category_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("category_id", "}"), encodeURIComponent(String(requestParameters.categoryId))),
280
+ path: "/plans/{plan_id}/categories/{category_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("category_id", "}"), encodeURIComponent(String(requestParameters.categoryId))),
281
281
  method: 'GET',
282
282
  headers: headerParameters,
283
283
  query: queryParameters,
@@ -339,7 +339,7 @@ var CategoriesApi = /** @class */ (function (_super) {
339
339
  }
340
340
  _a.label = 2;
341
341
  case 2: return [4 /*yield*/, this.request({
342
- path: "/budgets/{plan_id}/months/{month}/categories/{category_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("month", "}"), encodeURIComponent(String(requestParameters.month))).replace("{".concat("category_id", "}"), encodeURIComponent(String(requestParameters.categoryId))),
342
+ path: "/plans/{plan_id}/months/{month}/categories/{category_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("month", "}"), encodeURIComponent(String(requestParameters.month))).replace("{".concat("category_id", "}"), encodeURIComponent(String(requestParameters.categoryId))),
343
343
  method: 'GET',
344
344
  headers: headerParameters,
345
345
  query: queryParameters,
@@ -402,7 +402,7 @@ var CategoriesApi = /** @class */ (function (_super) {
402
402
  }
403
403
  _a.label = 2;
404
404
  case 2: return [4 /*yield*/, this.request({
405
- path: "/budgets/{plan_id}/categories/{category_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("category_id", "}"), encodeURIComponent(String(requestParameters.categoryId))),
405
+ path: "/plans/{plan_id}/categories/{category_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("category_id", "}"), encodeURIComponent(String(requestParameters.categoryId))),
406
406
  method: 'PATCH',
407
407
  headers: headerParameters,
408
408
  query: queryParameters,
@@ -466,7 +466,7 @@ var CategoriesApi = /** @class */ (function (_super) {
466
466
  }
467
467
  _a.label = 2;
468
468
  case 2: return [4 /*yield*/, this.request({
469
- path: "/budgets/{plan_id}/category_groups/{category_group_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("category_group_id", "}"), encodeURIComponent(String(requestParameters.categoryGroupId))),
469
+ path: "/plans/{plan_id}/category_groups/{category_group_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("category_group_id", "}"), encodeURIComponent(String(requestParameters.categoryGroupId))),
470
470
  method: 'PATCH',
471
471
  headers: headerParameters,
472
472
  query: queryParameters,
@@ -533,7 +533,7 @@ var CategoriesApi = /** @class */ (function (_super) {
533
533
  }
534
534
  _a.label = 2;
535
535
  case 2: return [4 /*yield*/, this.request({
536
- path: "/budgets/{plan_id}/months/{month}/categories/{category_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("month", "}"), encodeURIComponent(String(requestParameters.month))).replace("{".concat("category_id", "}"), encodeURIComponent(String(requestParameters.categoryId))),
536
+ path: "/plans/{plan_id}/months/{month}/categories/{category_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("month", "}"), encodeURIComponent(String(requestParameters.month))).replace("{".concat("category_id", "}"), encodeURIComponent(String(requestParameters.categoryId))),
537
537
  method: 'PATCH',
538
538
  headers: headerParameters,
539
539
  query: queryParameters,
@@ -93,7 +93,7 @@ var MoneyMovementsApi = /** @class */ (function (_super) {
93
93
  }
94
94
  _a.label = 2;
95
95
  case 2: return [4 /*yield*/, this.request({
96
- path: "/budgets/{plan_id}/money_movement_groups".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
96
+ path: "/plans/{plan_id}/money_movement_groups".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
97
97
  method: 'GET',
98
98
  headers: headerParameters,
99
99
  query: queryParameters,
@@ -152,7 +152,7 @@ var MoneyMovementsApi = /** @class */ (function (_super) {
152
152
  }
153
153
  _a.label = 2;
154
154
  case 2: return [4 /*yield*/, this.request({
155
- path: "/budgets/{plan_id}/months/{month}/money_movement_groups".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("month", "}"), encodeURIComponent(String(requestParameters.month))),
155
+ path: "/plans/{plan_id}/months/{month}/money_movement_groups".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("month", "}"), encodeURIComponent(String(requestParameters.month))),
156
156
  method: 'GET',
157
157
  headers: headerParameters,
158
158
  query: queryParameters,
@@ -208,7 +208,7 @@ var MoneyMovementsApi = /** @class */ (function (_super) {
208
208
  }
209
209
  _a.label = 2;
210
210
  case 2: return [4 /*yield*/, this.request({
211
- path: "/budgets/{plan_id}/money_movements".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
211
+ path: "/plans/{plan_id}/money_movements".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
212
212
  method: 'GET',
213
213
  headers: headerParameters,
214
214
  query: queryParameters,
@@ -267,7 +267,7 @@ var MoneyMovementsApi = /** @class */ (function (_super) {
267
267
  }
268
268
  _a.label = 2;
269
269
  case 2: return [4 /*yield*/, this.request({
270
- path: "/budgets/{plan_id}/months/{month}/money_movements".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("month", "}"), encodeURIComponent(String(requestParameters.month))),
270
+ path: "/plans/{plan_id}/months/{month}/money_movements".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("month", "}"), encodeURIComponent(String(requestParameters.month))),
271
271
  method: 'GET',
272
272
  headers: headerParameters,
273
273
  query: queryParameters,
@@ -96,7 +96,7 @@ var MonthsApi = /** @class */ (function (_super) {
96
96
  }
97
97
  _a.label = 2;
98
98
  case 2: return [4 /*yield*/, this.request({
99
- path: "/budgets/{plan_id}/months/{month}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("month", "}"), encodeURIComponent(String(requestParameters.month))),
99
+ path: "/plans/{plan_id}/months/{month}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("month", "}"), encodeURIComponent(String(requestParameters.month))),
100
100
  method: 'GET',
101
101
  headers: headerParameters,
102
102
  query: queryParameters,
@@ -155,7 +155,7 @@ var MonthsApi = /** @class */ (function (_super) {
155
155
  }
156
156
  _a.label = 2;
157
157
  case 2: return [4 /*yield*/, this.request({
158
- path: "/budgets/{plan_id}/months".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
158
+ path: "/plans/{plan_id}/months".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
159
159
  method: 'GET',
160
160
  headers: headerParameters,
161
161
  query: queryParameters,
@@ -96,7 +96,7 @@ var PayeeLocationsApi = /** @class */ (function (_super) {
96
96
  }
97
97
  _a.label = 2;
98
98
  case 2: return [4 /*yield*/, this.request({
99
- path: "/budgets/{plan_id}/payee_locations/{payee_location_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("payee_location_id", "}"), encodeURIComponent(String(requestParameters.payeeLocationId))),
99
+ path: "/plans/{plan_id}/payee_locations/{payee_location_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("payee_location_id", "}"), encodeURIComponent(String(requestParameters.payeeLocationId))),
100
100
  method: 'GET',
101
101
  headers: headerParameters,
102
102
  query: queryParameters,
@@ -152,7 +152,7 @@ var PayeeLocationsApi = /** @class */ (function (_super) {
152
152
  }
153
153
  _a.label = 2;
154
154
  case 2: return [4 /*yield*/, this.request({
155
- path: "/budgets/{plan_id}/payee_locations".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
155
+ path: "/plans/{plan_id}/payee_locations".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
156
156
  method: 'GET',
157
157
  headers: headerParameters,
158
158
  query: queryParameters,
@@ -211,7 +211,7 @@ var PayeeLocationsApi = /** @class */ (function (_super) {
211
211
  }
212
212
  _a.label = 2;
213
213
  case 2: return [4 /*yield*/, this.request({
214
- path: "/budgets/{plan_id}/payees/{payee_id}/payee_locations".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("payee_id", "}"), encodeURIComponent(String(requestParameters.payeeId))),
214
+ path: "/plans/{plan_id}/payees/{payee_id}/payee_locations".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("payee_id", "}"), encodeURIComponent(String(requestParameters.payeeId))),
215
215
  method: 'GET',
216
216
  headers: headerParameters,
217
217
  query: queryParameters,
@@ -96,7 +96,7 @@ var PayeesApi = /** @class */ (function (_super) {
96
96
  }
97
97
  _a.label = 2;
98
98
  case 2: return [4 /*yield*/, this.request({
99
- path: "/budgets/{plan_id}/payees/{payee_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("payee_id", "}"), encodeURIComponent(String(requestParameters.payeeId))),
99
+ path: "/plans/{plan_id}/payees/{payee_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("payee_id", "}"), encodeURIComponent(String(requestParameters.payeeId))),
100
100
  method: 'GET',
101
101
  headers: headerParameters,
102
102
  query: queryParameters,
@@ -155,7 +155,7 @@ var PayeesApi = /** @class */ (function (_super) {
155
155
  }
156
156
  _a.label = 2;
157
157
  case 2: return [4 /*yield*/, this.request({
158
- path: "/budgets/{plan_id}/payees".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
158
+ path: "/plans/{plan_id}/payees".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
159
159
  method: 'GET',
160
160
  headers: headerParameters,
161
161
  query: queryParameters,
@@ -218,7 +218,7 @@ var PayeesApi = /** @class */ (function (_super) {
218
218
  }
219
219
  _a.label = 2;
220
220
  case 2: return [4 /*yield*/, this.request({
221
- path: "/budgets/{plan_id}/payees/{payee_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("payee_id", "}"), encodeURIComponent(String(requestParameters.payeeId))),
221
+ path: "/plans/{plan_id}/payees/{payee_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("payee_id", "}"), encodeURIComponent(String(requestParameters.payeeId))),
222
222
  method: 'PATCH',
223
223
  headers: headerParameters,
224
224
  query: queryParameters,
@@ -96,7 +96,7 @@ var PlansApi = /** @class */ (function (_super) {
96
96
  }
97
97
  _a.label = 2;
98
98
  case 2: return [4 /*yield*/, this.request({
99
- path: "/budgets/{plan_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
99
+ path: "/plans/{plan_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
100
100
  method: 'GET',
101
101
  headers: headerParameters,
102
102
  query: queryParameters,
@@ -152,7 +152,7 @@ var PlansApi = /** @class */ (function (_super) {
152
152
  }
153
153
  _a.label = 2;
154
154
  case 2: return [4 /*yield*/, this.request({
155
- path: "/budgets/{plan_id}/settings".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
155
+ path: "/plans/{plan_id}/settings".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
156
156
  method: 'GET',
157
157
  headers: headerParameters,
158
158
  query: queryParameters,
@@ -208,7 +208,7 @@ var PlansApi = /** @class */ (function (_super) {
208
208
  }
209
209
  _a.label = 2;
210
210
  case 2: return [4 /*yield*/, this.request({
211
- path: "/budgets",
211
+ path: "/plans",
212
212
  method: 'GET',
213
213
  headers: headerParameters,
214
214
  query: queryParameters,
@@ -97,7 +97,7 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
97
97
  }
98
98
  _a.label = 2;
99
99
  case 2: return [4 /*yield*/, this.request({
100
- path: "/budgets/{plan_id}/scheduled_transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
100
+ path: "/plans/{plan_id}/scheduled_transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
101
101
  method: 'POST',
102
102
  headers: headerParameters,
103
103
  query: queryParameters,
@@ -157,7 +157,7 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
157
157
  }
158
158
  _a.label = 2;
159
159
  case 2: return [4 /*yield*/, this.request({
160
- path: "/budgets/{plan_id}/scheduled_transactions/{scheduled_transaction_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("scheduled_transaction_id", "}"), encodeURIComponent(String(requestParameters.scheduledTransactionId))),
160
+ path: "/plans/{plan_id}/scheduled_transactions/{scheduled_transaction_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("scheduled_transaction_id", "}"), encodeURIComponent(String(requestParameters.scheduledTransactionId))),
161
161
  method: 'DELETE',
162
162
  headers: headerParameters,
163
163
  query: queryParameters,
@@ -216,7 +216,7 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
216
216
  }
217
217
  _a.label = 2;
218
218
  case 2: return [4 /*yield*/, this.request({
219
- path: "/budgets/{plan_id}/scheduled_transactions/{scheduled_transaction_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("scheduled_transaction_id", "}"), encodeURIComponent(String(requestParameters.scheduledTransactionId))),
219
+ path: "/plans/{plan_id}/scheduled_transactions/{scheduled_transaction_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("scheduled_transaction_id", "}"), encodeURIComponent(String(requestParameters.scheduledTransactionId))),
220
220
  method: 'GET',
221
221
  headers: headerParameters,
222
222
  query: queryParameters,
@@ -275,7 +275,7 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
275
275
  }
276
276
  _a.label = 2;
277
277
  case 2: return [4 /*yield*/, this.request({
278
- path: "/budgets/{plan_id}/scheduled_transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
278
+ path: "/plans/{plan_id}/scheduled_transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
279
279
  method: 'GET',
280
280
  headers: headerParameters,
281
281
  query: queryParameters,
@@ -338,7 +338,7 @@ var ScheduledTransactionsApi = /** @class */ (function (_super) {
338
338
  }
339
339
  _a.label = 2;
340
340
  case 2: return [4 /*yield*/, this.request({
341
- path: "/budgets/{plan_id}/scheduled_transactions/{scheduled_transaction_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("scheduled_transaction_id", "}"), encodeURIComponent(String(requestParameters.scheduledTransactionId))),
341
+ path: "/plans/{plan_id}/scheduled_transactions/{scheduled_transaction_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("scheduled_transaction_id", "}"), encodeURIComponent(String(requestParameters.scheduledTransactionId))),
342
342
  method: 'PUT',
343
343
  headers: headerParameters,
344
344
  query: queryParameters,
@@ -97,7 +97,7 @@ var TransactionsApi = /** @class */ (function (_super) {
97
97
  }
98
98
  _a.label = 2;
99
99
  case 2: return [4 /*yield*/, this.request({
100
- path: "/budgets/{plan_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
100
+ path: "/plans/{plan_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
101
101
  method: 'POST',
102
102
  headers: headerParameters,
103
103
  query: queryParameters,
@@ -157,7 +157,7 @@ var TransactionsApi = /** @class */ (function (_super) {
157
157
  }
158
158
  _a.label = 2;
159
159
  case 2: return [4 /*yield*/, this.request({
160
- path: "/budgets/{plan_id}/transactions/{transaction_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("transaction_id", "}"), encodeURIComponent(String(requestParameters.transactionId))),
160
+ path: "/plans/{plan_id}/transactions/{transaction_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("transaction_id", "}"), encodeURIComponent(String(requestParameters.transactionId))),
161
161
  method: 'DELETE',
162
162
  headers: headerParameters,
163
163
  query: queryParameters,
@@ -216,7 +216,7 @@ var TransactionsApi = /** @class */ (function (_super) {
216
216
  }
217
217
  _a.label = 2;
218
218
  case 2: return [4 /*yield*/, this.request({
219
- path: "/budgets/{plan_id}/transactions/{transaction_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("transaction_id", "}"), encodeURIComponent(String(requestParameters.transactionId))),
219
+ path: "/plans/{plan_id}/transactions/{transaction_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("transaction_id", "}"), encodeURIComponent(String(requestParameters.transactionId))),
220
220
  method: 'GET',
221
221
  headers: headerParameters,
222
222
  query: queryParameters,
@@ -281,7 +281,7 @@ var TransactionsApi = /** @class */ (function (_super) {
281
281
  }
282
282
  _a.label = 2;
283
283
  case 2: return [4 /*yield*/, this.request({
284
- path: "/budgets/{plan_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
284
+ path: "/plans/{plan_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
285
285
  method: 'GET',
286
286
  headers: headerParameters,
287
287
  query: queryParameters,
@@ -349,7 +349,7 @@ var TransactionsApi = /** @class */ (function (_super) {
349
349
  }
350
350
  _a.label = 2;
351
351
  case 2: return [4 /*yield*/, this.request({
352
- path: "/budgets/{plan_id}/accounts/{account_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("account_id", "}"), encodeURIComponent(String(requestParameters.accountId))),
352
+ path: "/plans/{plan_id}/accounts/{account_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("account_id", "}"), encodeURIComponent(String(requestParameters.accountId))),
353
353
  method: 'GET',
354
354
  headers: headerParameters,
355
355
  query: queryParameters,
@@ -417,7 +417,7 @@ var TransactionsApi = /** @class */ (function (_super) {
417
417
  }
418
418
  _a.label = 2;
419
419
  case 2: return [4 /*yield*/, this.request({
420
- path: "/budgets/{plan_id}/categories/{category_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("category_id", "}"), encodeURIComponent(String(requestParameters.categoryId))),
420
+ path: "/plans/{plan_id}/categories/{category_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("category_id", "}"), encodeURIComponent(String(requestParameters.categoryId))),
421
421
  method: 'GET',
422
422
  headers: headerParameters,
423
423
  query: queryParameters,
@@ -485,7 +485,7 @@ var TransactionsApi = /** @class */ (function (_super) {
485
485
  }
486
486
  _a.label = 2;
487
487
  case 2: return [4 /*yield*/, this.request({
488
- path: "/budgets/{plan_id}/months/{month}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("month", "}"), encodeURIComponent(String(requestParameters.month))),
488
+ path: "/plans/{plan_id}/months/{month}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("month", "}"), encodeURIComponent(String(requestParameters.month))),
489
489
  method: 'GET',
490
490
  headers: headerParameters,
491
491
  query: queryParameters,
@@ -553,7 +553,7 @@ var TransactionsApi = /** @class */ (function (_super) {
553
553
  }
554
554
  _a.label = 2;
555
555
  case 2: return [4 /*yield*/, this.request({
556
- path: "/budgets/{plan_id}/payees/{payee_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("payee_id", "}"), encodeURIComponent(String(requestParameters.payeeId))),
556
+ path: "/plans/{plan_id}/payees/{payee_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("payee_id", "}"), encodeURIComponent(String(requestParameters.payeeId))),
557
557
  method: 'GET',
558
558
  headers: headerParameters,
559
559
  query: queryParameters,
@@ -609,7 +609,7 @@ var TransactionsApi = /** @class */ (function (_super) {
609
609
  }
610
610
  _a.label = 2;
611
611
  case 2: return [4 /*yield*/, this.request({
612
- path: "/budgets/{plan_id}/transactions/import".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
612
+ path: "/plans/{plan_id}/transactions/import".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
613
613
  method: 'POST',
614
614
  headers: headerParameters,
615
615
  query: queryParameters,
@@ -672,7 +672,7 @@ var TransactionsApi = /** @class */ (function (_super) {
672
672
  }
673
673
  _a.label = 2;
674
674
  case 2: return [4 /*yield*/, this.request({
675
- path: "/budgets/{plan_id}/transactions/{transaction_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("transaction_id", "}"), encodeURIComponent(String(requestParameters.transactionId))),
675
+ path: "/plans/{plan_id}/transactions/{transaction_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("transaction_id", "}"), encodeURIComponent(String(requestParameters.transactionId))),
676
676
  method: 'PUT',
677
677
  headers: headerParameters,
678
678
  query: queryParameters,
@@ -733,7 +733,7 @@ var TransactionsApi = /** @class */ (function (_super) {
733
733
  }
734
734
  _a.label = 2;
735
735
  case 2: return [4 /*yield*/, this.request({
736
- path: "/budgets/{plan_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
736
+ path: "/plans/{plan_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
737
737
  method: 'PATCH',
738
738
  headers: headerParameters,
739
739
  query: queryParameters,
@@ -16,7 +16,7 @@ export interface PlanDetailResponseData {
16
16
  * @type {PlanDetail}
17
17
  * @memberof PlanDetailResponseData
18
18
  */
19
- budget: PlanDetail;
19
+ plan: PlanDetail;
20
20
  /**
21
21
  * The knowledge of the server
22
22
  * @type {number}
@@ -11,7 +11,7 @@ import { PlanDetailFromJSON, PlanDetailToJSON, } from './PlanDetail';
11
11
  * Check if a given object implements the PlanDetailResponseData interface.
12
12
  */
13
13
  export function instanceOfPlanDetailResponseData(value) {
14
- if (!('budget' in value) || value['budget'] === undefined)
14
+ if (!('plan' in value) || value['plan'] === undefined)
15
15
  return false;
16
16
  if (!('server_knowledge' in value) || value['server_knowledge'] === undefined)
17
17
  return false;
@@ -25,7 +25,7 @@ export function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
25
25
  return json;
26
26
  }
27
27
  return {
28
- 'budget': PlanDetailFromJSON(json['budget']),
28
+ 'plan': PlanDetailFromJSON(json['plan']),
29
29
  'server_knowledge': json['server_knowledge'],
30
30
  };
31
31
  }
@@ -38,7 +38,7 @@ export function PlanDetailResponseDataToJSONTyped(value, ignoreDiscriminator) {
38
38
  return value;
39
39
  }
40
40
  return {
41
- 'budget': PlanDetailToJSON(value['budget']),
41
+ 'plan': PlanDetailToJSON(value['plan']),
42
42
  'server_knowledge': value['server_knowledge'],
43
43
  };
44
44
  }
@@ -16,13 +16,13 @@ export interface PlanSummaryResponseData {
16
16
  * @type {Array<PlanSummary>}
17
17
  * @memberof PlanSummaryResponseData
18
18
  */
19
- budgets: Array<PlanSummary>;
19
+ plans: Array<PlanSummary>;
20
20
  /**
21
21
  *
22
22
  * @type {PlanSummary}
23
23
  * @memberof PlanSummaryResponseData
24
24
  */
25
- default_budget?: PlanSummary;
25
+ default_plan?: PlanSummary;
26
26
  }
27
27
  /**
28
28
  * Check if a given object implements the PlanSummaryResponseData interface.
@@ -11,7 +11,7 @@ import { PlanSummaryFromJSON, PlanSummaryToJSON, } from './PlanSummary';
11
11
  * Check if a given object implements the PlanSummaryResponseData interface.
12
12
  */
13
13
  export function instanceOfPlanSummaryResponseData(value) {
14
- if (!('budgets' in value) || value['budgets'] === undefined)
14
+ if (!('plans' in value) || value['plans'] === undefined)
15
15
  return false;
16
16
  return true;
17
17
  }
@@ -23,8 +23,8 @@ export function PlanSummaryResponseDataFromJSONTyped(json, ignoreDiscriminator)
23
23
  return json;
24
24
  }
25
25
  return {
26
- 'budgets': (json['budgets'].map(PlanSummaryFromJSON)),
27
- 'default_budget': json['default_budget'] == null ? undefined : PlanSummaryFromJSON(json['default_budget']),
26
+ 'plans': (json['plans'].map(PlanSummaryFromJSON)),
27
+ 'default_plan': json['default_plan'] == null ? undefined : PlanSummaryFromJSON(json['default_plan']),
28
28
  };
29
29
  }
30
30
  export function PlanSummaryResponseDataToJSON(json) {
@@ -36,7 +36,7 @@ export function PlanSummaryResponseDataToJSONTyped(value, ignoreDiscriminator) {
36
36
  return value;
37
37
  }
38
38
  return {
39
- 'budgets': (value['budgets'].map(PlanSummaryToJSON)),
40
- 'default_budget': PlanSummaryToJSON(value['default_budget']),
39
+ 'plans': (value['plans'].map(PlanSummaryToJSON)),
40
+ 'default_plan': PlanSummaryToJSON(value['default_plan']),
41
41
  };
42
42
  }
@@ -16,7 +16,7 @@ export interface PlanDetailResponseData {
16
16
  * @type {PlanDetail}
17
17
  * @memberof PlanDetailResponseData
18
18
  */
19
- budget: PlanDetail;
19
+ plan: PlanDetail;
20
20
  /**
21
21
  * The knowledge of the server
22
22
  * @type {number}
@@ -18,7 +18,7 @@ const PlanDetail_1 = require("./PlanDetail");
18
18
  * Check if a given object implements the PlanDetailResponseData interface.
19
19
  */
20
20
  function instanceOfPlanDetailResponseData(value) {
21
- if (!('budget' in value) || value['budget'] === undefined)
21
+ if (!('plan' in value) || value['plan'] === undefined)
22
22
  return false;
23
23
  if (!('server_knowledge' in value) || value['server_knowledge'] === undefined)
24
24
  return false;
@@ -32,7 +32,7 @@ function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
32
32
  return json;
33
33
  }
34
34
  return {
35
- 'budget': (0, PlanDetail_1.PlanDetailFromJSON)(json['budget']),
35
+ 'plan': (0, PlanDetail_1.PlanDetailFromJSON)(json['plan']),
36
36
  'server_knowledge': json['server_knowledge'],
37
37
  };
38
38
  }
@@ -44,7 +44,7 @@ function PlanDetailResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
44
44
  return value;
45
45
  }
46
46
  return {
47
- 'budget': (0, PlanDetail_1.PlanDetailToJSON)(value['budget']),
47
+ 'plan': (0, PlanDetail_1.PlanDetailToJSON)(value['plan']),
48
48
  'server_knowledge': value['server_knowledge'],
49
49
  };
50
50
  }
@@ -16,13 +16,13 @@ export interface PlanSummaryResponseData {
16
16
  * @type {Array<PlanSummary>}
17
17
  * @memberof PlanSummaryResponseData
18
18
  */
19
- budgets: Array<PlanSummary>;
19
+ plans: Array<PlanSummary>;
20
20
  /**
21
21
  *
22
22
  * @type {PlanSummary}
23
23
  * @memberof PlanSummaryResponseData
24
24
  */
25
- default_budget?: PlanSummary;
25
+ default_plan?: PlanSummary;
26
26
  }
27
27
  /**
28
28
  * Check if a given object implements the PlanSummaryResponseData interface.
@@ -18,7 +18,7 @@ const PlanSummary_1 = require("./PlanSummary");
18
18
  * Check if a given object implements the PlanSummaryResponseData interface.
19
19
  */
20
20
  function instanceOfPlanSummaryResponseData(value) {
21
- if (!('budgets' in value) || value['budgets'] === undefined)
21
+ if (!('plans' in value) || value['plans'] === undefined)
22
22
  return false;
23
23
  return true;
24
24
  }
@@ -30,8 +30,8 @@ function PlanSummaryResponseDataFromJSONTyped(json, ignoreDiscriminator) {
30
30
  return json;
31
31
  }
32
32
  return {
33
- 'budgets': (json['budgets'].map(PlanSummary_1.PlanSummaryFromJSON)),
34
- 'default_budget': json['default_budget'] == null ? undefined : (0, PlanSummary_1.PlanSummaryFromJSON)(json['default_budget']),
33
+ 'plans': (json['plans'].map(PlanSummary_1.PlanSummaryFromJSON)),
34
+ 'default_plan': json['default_plan'] == null ? undefined : (0, PlanSummary_1.PlanSummaryFromJSON)(json['default_plan']),
35
35
  };
36
36
  }
37
37
  function PlanSummaryResponseDataToJSON(json) {
@@ -42,7 +42,7 @@ function PlanSummaryResponseDataToJSONTyped(value, ignoreDiscriminator = false)
42
42
  return value;
43
43
  }
44
44
  return {
45
- 'budgets': (value['budgets'].map(PlanSummary_1.PlanSummaryToJSON)),
46
- 'default_budget': (0, PlanSummary_1.PlanSummaryToJSON)(value['default_budget']),
45
+ 'plans': (value['plans'].map(PlanSummary_1.PlanSummaryToJSON)),
46
+ 'default_plan': (0, PlanSummary_1.PlanSummaryToJSON)(value['default_plan']),
47
47
  };
48
48
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ynab",
3
- "version": "3.1.0",
4
- "description": "Official JavaScript client for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.78.0",
3
+ "version": "4.0.0",
4
+ "description": "Official JavaScript client for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.79.0",
5
5
  "author": "YNAB",
6
6
  "email": "api@ynab.com",
7
7
  "url": "https://api.ynab.com",