ynab 2.10.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -42
- package/dist/apis/AccountsApi.d.ts +12 -12
- package/dist/apis/AccountsApi.js +38 -28
- package/dist/apis/CategoriesApi.d.ts +68 -25
- package/dist/apis/CategoriesApi.js +176 -46
- package/dist/apis/DeprecatedApi.js +17 -7
- package/dist/apis/MoneyMovementsApi.d.ts +67 -0
- package/dist/apis/MoneyMovementsApi.js +194 -0
- package/dist/apis/MonthsApi.d.ts +16 -16
- package/dist/apis/MonthsApi.js +38 -28
- package/dist/apis/PayeeLocationsApi.d.ts +12 -12
- package/dist/apis/PayeeLocationsApi.js +38 -28
- package/dist/apis/PayeesApi.d.ts +10 -10
- package/dist/apis/PayeesApi.js +36 -26
- package/dist/apis/PlansApi.d.ts +53 -0
- package/dist/apis/{BudgetsApi.js → PlansApi.js} +50 -40
- package/dist/apis/ScheduledTransactionsApi.d.ts +20 -20
- package/dist/apis/ScheduledTransactionsApi.js +52 -42
- package/dist/apis/TransactionsApi.d.ts +49 -49
- package/dist/apis/TransactionsApi.js +99 -89
- package/dist/apis/UserApi.d.ts +2 -2
- package/dist/apis/UserApi.js +19 -9
- package/dist/apis/index.d.ts +2 -1
- package/dist/apis/index.js +2 -1
- package/dist/browser/ynab.js +1 -1
- package/dist/esm/apis/AccountsApi.d.ts +12 -12
- package/dist/esm/apis/AccountsApi.js +23 -23
- package/dist/esm/apis/CategoriesApi.d.ts +68 -25
- package/dist/esm/apis/CategoriesApi.js +228 -42
- package/dist/esm/apis/DeprecatedApi.js +2 -2
- package/dist/esm/apis/MoneyMovementsApi.d.ts +67 -0
- package/dist/esm/apis/MoneyMovementsApi.js +302 -0
- package/dist/esm/apis/MonthsApi.d.ts +16 -16
- package/dist/esm/apis/MonthsApi.js +23 -23
- package/dist/esm/apis/PayeeLocationsApi.d.ts +12 -12
- package/dist/esm/apis/PayeeLocationsApi.js +23 -23
- package/dist/esm/apis/PayeesApi.d.ts +10 -10
- package/dist/esm/apis/PayeesApi.js +21 -21
- package/dist/esm/apis/PlansApi.d.ts +53 -0
- package/dist/esm/apis/{BudgetsApi.js → PlansApi.js} +38 -38
- package/dist/esm/apis/ScheduledTransactionsApi.d.ts +20 -20
- package/dist/esm/apis/ScheduledTransactionsApi.js +37 -37
- package/dist/esm/apis/TransactionsApi.d.ts +49 -49
- package/dist/esm/apis/TransactionsApi.js +84 -84
- package/dist/esm/apis/UserApi.d.ts +2 -2
- package/dist/esm/apis/UserApi.js +4 -4
- package/dist/esm/apis/index.d.ts +2 -1
- package/dist/esm/apis/index.js +2 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +5 -5
- package/dist/esm/models/Account.d.ts +6 -6
- package/dist/esm/models/Category.d.ts +10 -4
- package/dist/esm/models/Category.js +2 -0
- package/dist/esm/models/CategoryGroupWithCategories.d.ts +1 -1
- package/dist/esm/models/CurrencyFormat.d.ts +1 -1
- package/dist/esm/models/DateFormat.d.ts +1 -1
- package/dist/esm/models/ExistingCategory.d.ts +51 -0
- package/dist/esm/models/ExistingCategory.js +45 -0
- package/dist/esm/models/ExistingTransaction.d.ts +4 -4
- package/dist/esm/models/HybridTransaction.d.ts +12 -12
- package/dist/esm/models/MoneyMovement.d.ts +75 -0
- package/dist/esm/models/MoneyMovement.js +57 -0
- package/dist/esm/models/MoneyMovementGroup.d.ts +51 -0
- package/dist/esm/models/MoneyMovementGroup.js +51 -0
- package/dist/esm/models/MoneyMovementGroupsResponse.d.ts +28 -0
- package/dist/esm/models/MoneyMovementGroupsResponse.js +40 -0
- package/dist/esm/models/MoneyMovementGroupsResponseData.d.ts +34 -0
- package/dist/esm/models/MoneyMovementGroupsResponseData.js +44 -0
- package/dist/esm/models/MoneyMovementsResponse.d.ts +28 -0
- package/dist/esm/models/{BudgetSettingsResponse.js → MoneyMovementsResponse.js} +11 -11
- package/dist/esm/models/MoneyMovementsResponseData.d.ts +34 -0
- package/dist/esm/models/MoneyMovementsResponseData.js +44 -0
- package/dist/esm/models/MonthDetail.d.ts +4 -4
- package/dist/esm/models/MonthSummary.d.ts +1 -1
- package/dist/esm/models/NewCategory.d.ts +51 -0
- package/dist/esm/models/NewCategory.js +45 -0
- package/dist/esm/models/NewTransaction.d.ts +4 -4
- package/dist/esm/models/PatchCategoryGroupWrapper.d.ts +28 -0
- package/dist/esm/models/PatchCategoryGroupWrapper.js +40 -0
- package/dist/esm/models/PatchCategoryWrapper.d.ts +3 -3
- package/dist/esm/models/PatchCategoryWrapper.js +3 -3
- package/dist/{models/BudgetDetail.d.ts → esm/models/PlanDetail.d.ts} +30 -30
- package/dist/esm/models/{BudgetDetail.js → PlanDetail.js} +8 -8
- package/dist/esm/models/PlanDetailResponse.d.ts +28 -0
- package/dist/esm/models/PlanDetailResponse.js +40 -0
- package/dist/esm/models/PlanDetailResponseData.d.ts +34 -0
- package/dist/esm/models/{BudgetDetailResponseData.js → PlanDetailResponseData.js} +11 -11
- package/dist/esm/models/PlanSettings.d.ts +35 -0
- package/dist/esm/models/{BudgetSettings.js → PlanSettings.js} +8 -8
- package/dist/esm/models/PlanSettingsResponse.d.ts +28 -0
- package/dist/esm/models/{BudgetDetailResponse.js → PlanSettingsResponse.js} +11 -11
- package/dist/esm/models/PlanSettingsResponseData.d.ts +28 -0
- package/dist/esm/models/PlanSettingsResponseData.js +40 -0
- package/dist/esm/models/PlanSummary.d.ts +72 -0
- package/dist/esm/models/{BudgetSummary.js → PlanSummary.js} +8 -8
- package/dist/esm/models/PlanSummaryResponse.d.ts +28 -0
- package/dist/esm/models/PlanSummaryResponse.js +40 -0
- package/dist/esm/models/PlanSummaryResponseData.d.ts +34 -0
- package/dist/esm/models/PlanSummaryResponseData.js +42 -0
- package/dist/esm/models/PostCategoryGroupWrapper.d.ts +28 -0
- package/dist/esm/models/PostCategoryGroupWrapper.js +40 -0
- package/dist/esm/models/PostCategoryWrapper.d.ts +28 -0
- package/dist/esm/models/PostCategoryWrapper.js +40 -0
- package/dist/esm/models/SaveCategory.d.ts +7 -1
- package/dist/esm/models/SaveCategory.js +2 -0
- package/dist/esm/models/SaveCategoryGroup.d.ts +27 -0
- package/dist/esm/models/SaveCategoryGroup.js +39 -0
- package/dist/esm/models/SaveCategoryGroupResponse.d.ts +28 -0
- package/dist/esm/models/SaveCategoryGroupResponse.js +40 -0
- package/dist/esm/models/SaveCategoryGroupResponseData.d.ts +34 -0
- package/dist/esm/models/SaveCategoryGroupResponseData.js +44 -0
- package/dist/esm/models/SaveMonthCategory.d.ts +1 -1
- package/dist/esm/models/SaveTransactionWithIdOrImportId.d.ts +4 -4
- package/dist/esm/models/ScheduledTransactionDetail.d.ts +6 -6
- package/dist/esm/models/ScheduledTransactionSummary.d.ts +1 -1
- package/dist/esm/models/TransactionDetail.d.ts +11 -11
- package/dist/esm/models/TransactionSummary.d.ts +1 -1
- package/dist/esm/models/index.d.ts +23 -9
- package/dist/esm/models/index.js +23 -9
- package/dist/esm/runtime.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +22 -12
- package/dist/models/Account.d.ts +6 -6
- package/dist/models/Account.js +5 -6
- package/dist/models/AccountResponse.js +5 -6
- package/dist/models/AccountResponseData.js +5 -6
- package/dist/models/AccountType.js +6 -6
- package/dist/models/AccountsResponse.js +5 -6
- package/dist/models/AccountsResponseData.js +5 -6
- package/dist/models/BulkResponse.js +5 -6
- package/dist/models/BulkResponseData.js +5 -6
- package/dist/models/BulkResponseDataBulk.js +5 -6
- package/dist/models/BulkTransactions.js +5 -6
- package/dist/models/CategoriesResponse.js +5 -6
- package/dist/models/CategoriesResponseData.js +5 -6
- package/dist/models/Category.d.ts +10 -4
- package/dist/models/Category.js +8 -6
- package/dist/models/CategoryGoalType.js +4 -5
- package/dist/models/CategoryGroup.js +5 -6
- package/dist/models/CategoryGroupWithCategories.d.ts +1 -1
- package/dist/models/CategoryGroupWithCategories.js +5 -6
- package/dist/models/CategoryGroupWithCategoriesAllOf.js +4 -5
- package/dist/models/CategoryResponse.js +5 -6
- package/dist/models/CategoryResponseData.js +5 -6
- package/dist/models/CurrencyFormat.d.ts +1 -1
- package/dist/models/CurrencyFormat.js +5 -6
- package/dist/models/DateFormat.d.ts +1 -1
- package/dist/models/DateFormat.js +5 -6
- package/dist/models/ErrorDetail.js +5 -6
- package/dist/models/ErrorResponse.js +5 -6
- package/dist/models/ExistingCategory.d.ts +51 -0
- package/dist/models/ExistingCategory.js +51 -0
- package/dist/models/ExistingTransaction.d.ts +4 -4
- package/dist/models/ExistingTransaction.js +5 -6
- package/dist/models/HybridTransaction.d.ts +12 -12
- package/dist/models/HybridTransaction.js +6 -6
- package/dist/models/HybridTransactionAllOf.js +5 -5
- package/dist/models/HybridTransactionsResponse.js +5 -6
- package/dist/models/HybridTransactionsResponseData.js +5 -6
- package/dist/models/MoneyMovement.d.ts +75 -0
- package/dist/models/MoneyMovement.js +63 -0
- package/dist/models/MoneyMovementGroup.d.ts +51 -0
- package/dist/models/MoneyMovementGroup.js +57 -0
- package/dist/models/MoneyMovementGroupsResponse.d.ts +28 -0
- package/dist/models/MoneyMovementGroupsResponse.js +46 -0
- package/dist/models/MoneyMovementGroupsResponseData.d.ts +34 -0
- package/dist/models/MoneyMovementGroupsResponseData.js +50 -0
- package/dist/models/MoneyMovementsResponse.d.ts +28 -0
- package/dist/models/MoneyMovementsResponse.js +46 -0
- package/dist/models/MoneyMovementsResponseData.d.ts +34 -0
- package/dist/models/MoneyMovementsResponseData.js +50 -0
- package/dist/models/MonthDetail.d.ts +4 -4
- package/dist/models/MonthDetail.js +5 -6
- package/dist/models/MonthDetailAllOf.js +4 -5
- package/dist/models/MonthDetailResponse.js +5 -6
- package/dist/models/MonthDetailResponseData.js +5 -6
- package/dist/models/MonthSummariesResponse.js +5 -6
- package/dist/models/MonthSummariesResponseData.js +5 -6
- package/dist/models/MonthSummary.d.ts +1 -1
- package/dist/models/MonthSummary.js +5 -6
- package/dist/models/NewCategory.d.ts +51 -0
- package/dist/models/NewCategory.js +51 -0
- package/dist/models/NewTransaction.d.ts +4 -4
- package/dist/models/NewTransaction.js +5 -6
- package/dist/models/PatchCategoryGroupWrapper.d.ts +28 -0
- package/dist/models/PatchCategoryGroupWrapper.js +46 -0
- package/dist/models/PatchCategoryWrapper.d.ts +3 -3
- package/dist/models/PatchCategoryWrapper.js +8 -9
- package/dist/models/PatchMonthCategoryWrapper.js +5 -6
- package/dist/models/PatchPayeeWrapper.js +5 -6
- package/dist/models/PatchTransactionsWrapper.js +5 -6
- package/dist/models/Payee.js +5 -6
- package/dist/models/PayeeLocation.js +5 -6
- package/dist/models/PayeeLocationResponse.js +5 -6
- package/dist/models/PayeeLocationResponseData.js +5 -6
- package/dist/models/PayeeLocationsResponse.js +5 -6
- package/dist/models/PayeeLocationsResponseData.js +5 -6
- package/dist/models/PayeeResponse.js +5 -6
- package/dist/models/PayeeResponseData.js +5 -6
- package/dist/models/PayeesResponse.js +5 -6
- package/dist/models/PayeesResponseData.js +5 -6
- package/dist/{esm/models/BudgetDetail.d.ts → models/PlanDetail.d.ts} +30 -30
- package/dist/models/{BudgetDetail.js → PlanDetail.js} +13 -14
- package/dist/models/PlanDetailResponse.d.ts +28 -0
- package/dist/models/PlanDetailResponse.js +46 -0
- package/dist/models/PlanDetailResponseData.d.ts +34 -0
- package/dist/models/PlanDetailResponseData.js +50 -0
- package/dist/models/PlanSettings.d.ts +35 -0
- package/dist/models/{BudgetSettings.js → PlanSettings.js} +13 -14
- package/dist/models/PlanSettingsResponse.d.ts +28 -0
- package/dist/models/PlanSettingsResponse.js +46 -0
- package/dist/models/PlanSettingsResponseData.d.ts +28 -0
- package/dist/models/PlanSettingsResponseData.js +46 -0
- package/dist/models/PlanSummary.d.ts +72 -0
- package/dist/models/{BudgetSummary.js → PlanSummary.js} +13 -14
- package/dist/models/PlanSummaryResponse.d.ts +28 -0
- package/dist/models/PlanSummaryResponse.js +46 -0
- package/dist/models/PlanSummaryResponseData.d.ts +34 -0
- package/dist/models/PlanSummaryResponseData.js +48 -0
- package/dist/models/PostAccountWrapper.js +5 -6
- package/dist/models/PostCategoryGroupWrapper.d.ts +28 -0
- package/dist/models/PostCategoryGroupWrapper.js +46 -0
- package/dist/models/PostCategoryWrapper.d.ts +28 -0
- package/dist/models/PostCategoryWrapper.js +46 -0
- package/dist/models/PostScheduledTransactionWrapper.js +5 -6
- package/dist/models/PostTransactionsWrapper.js +5 -6
- package/dist/models/PutScheduledTransactionWrapper.js +5 -6
- package/dist/models/PutTransactionWrapper.js +5 -6
- package/dist/models/SaveAccount.js +5 -6
- package/dist/models/SaveCategory.d.ts +7 -1
- package/dist/models/SaveCategory.js +7 -6
- package/dist/models/SaveCategoryGroup.d.ts +27 -0
- package/dist/models/SaveCategoryGroup.js +45 -0
- package/dist/models/SaveCategoryGroupResponse.d.ts +28 -0
- package/dist/models/SaveCategoryGroupResponse.js +46 -0
- package/dist/models/SaveCategoryGroupResponseData.d.ts +34 -0
- package/dist/models/SaveCategoryGroupResponseData.js +50 -0
- package/dist/models/SaveCategoryResponse.js +5 -6
- package/dist/models/SaveCategoryResponseData.js +5 -6
- package/dist/models/SaveMonthCategory.d.ts +1 -1
- package/dist/models/SaveMonthCategory.js +5 -6
- package/dist/models/SavePayee.js +5 -6
- package/dist/models/SavePayeeResponse.js +5 -6
- package/dist/models/SavePayeeResponseData.js +5 -6
- package/dist/models/SaveScheduledTransaction.js +5 -6
- package/dist/models/SaveSubTransaction.js +5 -6
- package/dist/models/SaveTransaction.js +4 -5
- package/dist/models/SaveTransactionWithId.js +4 -5
- package/dist/models/SaveTransactionWithIdAllOf.js +4 -5
- package/dist/models/SaveTransactionWithIdOrImportId.d.ts +4 -4
- package/dist/models/SaveTransactionWithIdOrImportId.js +5 -6
- package/dist/models/SaveTransactionWithOptionalFields.js +5 -6
- package/dist/models/SaveTransactionWithOptionalFieldsFlagColor.js +4 -5
- package/dist/models/SaveTransactionsResponse.js +5 -6
- package/dist/models/SaveTransactionsResponseData.js +5 -6
- package/dist/models/ScheduledSubTransaction.js +5 -6
- package/dist/models/ScheduledTransactionDetail.d.ts +6 -6
- package/dist/models/ScheduledTransactionDetail.js +6 -6
- package/dist/models/ScheduledTransactionDetailAllOf.js +4 -5
- package/dist/models/ScheduledTransactionFrequency.js +6 -6
- package/dist/models/ScheduledTransactionResponse.js +5 -6
- package/dist/models/ScheduledTransactionResponseData.js +5 -6
- package/dist/models/ScheduledTransactionSummary.d.ts +1 -1
- package/dist/models/ScheduledTransactionSummary.js +6 -6
- package/dist/models/ScheduledTransactionSummaryFlagColor.js +4 -5
- package/dist/models/ScheduledTransactionsResponse.js +5 -6
- package/dist/models/ScheduledTransactionsResponseData.js +5 -6
- package/dist/models/SubTransaction.js +5 -6
- package/dist/models/TransactionClearedStatus.js +6 -6
- package/dist/models/TransactionDetail.d.ts +11 -11
- package/dist/models/TransactionDetail.js +6 -6
- package/dist/models/TransactionDetailAllOf.js +4 -5
- package/dist/models/TransactionFlagColor.js +6 -6
- package/dist/models/TransactionResponse.js +5 -6
- package/dist/models/TransactionResponseData.js +5 -6
- package/dist/models/TransactionSummary.d.ts +1 -1
- package/dist/models/TransactionSummary.js +6 -6
- package/dist/models/TransactionSummaryDebtTransactionType.js +4 -5
- package/dist/models/TransactionsImportResponse.js +5 -6
- package/dist/models/TransactionsImportResponseData.js +5 -6
- package/dist/models/TransactionsResponse.js +5 -6
- package/dist/models/TransactionsResponseData.js +5 -6
- package/dist/models/User.js +5 -6
- package/dist/models/UserResponse.js +5 -6
- package/dist/models/UserResponseData.js +5 -6
- package/dist/models/index.d.ts +23 -9
- package/dist/models/index.js +23 -9
- package/dist/runtime.js +5 -5
- package/package.json +7 -8
- package/dist/apis/BudgetsApi.d.ts +0 -53
- package/dist/esm/apis/BudgetsApi.d.ts +0 -53
- package/dist/esm/models/BudgetDetailAllOf.d.ts +0 -95
- package/dist/esm/models/BudgetDetailAllOf.js +0 -71
- package/dist/esm/models/BudgetDetailResponse.d.ts +0 -28
- package/dist/esm/models/BudgetDetailResponseData.d.ts +0 -34
- package/dist/esm/models/BudgetSettings.d.ts +0 -35
- package/dist/esm/models/BudgetSettingsResponse.d.ts +0 -28
- package/dist/esm/models/BudgetSettingsResponseData.d.ts +0 -28
- package/dist/esm/models/BudgetSettingsResponseData.js +0 -40
- package/dist/esm/models/BudgetSummary.d.ts +0 -72
- package/dist/esm/models/BudgetSummaryResponse.d.ts +0 -28
- package/dist/esm/models/BudgetSummaryResponse.js +0 -40
- package/dist/esm/models/BudgetSummaryResponseData.d.ts +0 -34
- package/dist/esm/models/BudgetSummaryResponseData.js +0 -42
- package/dist/models/BudgetDetailAllOf.d.ts +0 -95
- package/dist/models/BudgetDetailAllOf.js +0 -78
- package/dist/models/BudgetDetailResponse.d.ts +0 -28
- package/dist/models/BudgetDetailResponse.js +0 -47
- package/dist/models/BudgetDetailResponseData.d.ts +0 -34
- package/dist/models/BudgetDetailResponseData.js +0 -51
- package/dist/models/BudgetSettings.d.ts +0 -35
- package/dist/models/BudgetSettingsResponse.d.ts +0 -28
- package/dist/models/BudgetSettingsResponse.js +0 -47
- package/dist/models/BudgetSettingsResponseData.d.ts +0 -28
- package/dist/models/BudgetSettingsResponseData.js +0 -47
- package/dist/models/BudgetSummary.d.ts +0 -72
- package/dist/models/BudgetSummaryResponse.d.ts +0 -28
- package/dist/models/BudgetSummaryResponse.js +0 -47
- package/dist/models/BudgetSummaryResponseData.d.ts +0 -34
- package/dist/models/BudgetSummaryResponseData.js +0 -49
|
@@ -31,8 +31,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
33
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
34
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
35
|
-
return g =
|
|
34
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
35
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
36
36
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
37
37
|
function step(op) {
|
|
38
38
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -77,8 +77,8 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
77
77
|
return __generator(this, function (_a) {
|
|
78
78
|
switch (_a.label) {
|
|
79
79
|
case 0:
|
|
80
|
-
if (requestParameters.
|
|
81
|
-
throw new runtime.RequiredError('
|
|
80
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
81
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling createTransaction.');
|
|
82
82
|
}
|
|
83
83
|
if (requestParameters.data === null || requestParameters.data === undefined) {
|
|
84
84
|
throw new runtime.RequiredError('data', 'Required parameter requestParameters.data was null or undefined when calling createTransaction.');
|
|
@@ -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/{
|
|
100
|
+
path: "/budgets/{plan_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
|
|
101
101
|
method: 'POST',
|
|
102
102
|
headers: headerParameters,
|
|
103
103
|
query: queryParameters,
|
|
@@ -114,12 +114,12 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
114
114
|
* 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.
|
|
115
115
|
* Create a single transaction or multiple transactions
|
|
116
116
|
*/
|
|
117
|
-
TransactionsApi.prototype.createTransaction = function (
|
|
117
|
+
TransactionsApi.prototype.createTransaction = function (planId, data, initOverrides) {
|
|
118
118
|
return __awaiter(this, void 0, void 0, function () {
|
|
119
119
|
var response;
|
|
120
120
|
return __generator(this, function (_a) {
|
|
121
121
|
switch (_a.label) {
|
|
122
|
-
case 0: return [4 /*yield*/, this.createTransactionRaw({
|
|
122
|
+
case 0: return [4 /*yield*/, this.createTransactionRaw({ planId: planId, data: data }, initOverrides)];
|
|
123
123
|
case 1:
|
|
124
124
|
response = _a.sent();
|
|
125
125
|
return [4 /*yield*/, response.value()];
|
|
@@ -130,7 +130,7 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
130
130
|
};
|
|
131
131
|
/**
|
|
132
132
|
* Deletes a transaction
|
|
133
|
-
*
|
|
133
|
+
* Delete a transaction
|
|
134
134
|
*/
|
|
135
135
|
TransactionsApi.prototype.deleteTransactionRaw = function (requestParameters, initOverrides) {
|
|
136
136
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -138,8 +138,8 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
138
138
|
return __generator(this, function (_a) {
|
|
139
139
|
switch (_a.label) {
|
|
140
140
|
case 0:
|
|
141
|
-
if (requestParameters.
|
|
142
|
-
throw new runtime.RequiredError('
|
|
141
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
142
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling deleteTransaction.');
|
|
143
143
|
}
|
|
144
144
|
if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
|
|
145
145
|
throw new runtime.RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling deleteTransaction.');
|
|
@@ -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/{
|
|
160
|
+
path: "/budgets/{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,
|
|
@@ -171,14 +171,14 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
171
171
|
};
|
|
172
172
|
/**
|
|
173
173
|
* Deletes a transaction
|
|
174
|
-
*
|
|
174
|
+
* Delete a transaction
|
|
175
175
|
*/
|
|
176
|
-
TransactionsApi.prototype.deleteTransaction = function (
|
|
176
|
+
TransactionsApi.prototype.deleteTransaction = function (planId, transactionId, initOverrides) {
|
|
177
177
|
return __awaiter(this, void 0, void 0, function () {
|
|
178
178
|
var response;
|
|
179
179
|
return __generator(this, function (_a) {
|
|
180
180
|
switch (_a.label) {
|
|
181
|
-
case 0: return [4 /*yield*/, this.deleteTransactionRaw({
|
|
181
|
+
case 0: return [4 /*yield*/, this.deleteTransactionRaw({ planId: planId, transactionId: transactionId }, initOverrides)];
|
|
182
182
|
case 1:
|
|
183
183
|
response = _a.sent();
|
|
184
184
|
return [4 /*yield*/, response.value()];
|
|
@@ -189,7 +189,7 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
189
189
|
};
|
|
190
190
|
/**
|
|
191
191
|
* Returns a single transaction
|
|
192
|
-
*
|
|
192
|
+
* Get a transaction
|
|
193
193
|
*/
|
|
194
194
|
TransactionsApi.prototype.getTransactionByIdRaw = function (requestParameters, initOverrides) {
|
|
195
195
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -197,8 +197,8 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
197
197
|
return __generator(this, function (_a) {
|
|
198
198
|
switch (_a.label) {
|
|
199
199
|
case 0:
|
|
200
|
-
if (requestParameters.
|
|
201
|
-
throw new runtime.RequiredError('
|
|
200
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
201
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getTransactionById.');
|
|
202
202
|
}
|
|
203
203
|
if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
|
|
204
204
|
throw new runtime.RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling getTransactionById.');
|
|
@@ -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/{
|
|
219
|
+
path: "/budgets/{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,
|
|
@@ -230,14 +230,14 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
230
230
|
};
|
|
231
231
|
/**
|
|
232
232
|
* Returns a single transaction
|
|
233
|
-
*
|
|
233
|
+
* Get a transaction
|
|
234
234
|
*/
|
|
235
|
-
TransactionsApi.prototype.getTransactionById = function (
|
|
235
|
+
TransactionsApi.prototype.getTransactionById = function (planId, transactionId, initOverrides) {
|
|
236
236
|
return __awaiter(this, void 0, void 0, function () {
|
|
237
237
|
var response;
|
|
238
238
|
return __generator(this, function (_a) {
|
|
239
239
|
switch (_a.label) {
|
|
240
|
-
case 0: return [4 /*yield*/, this.getTransactionByIdRaw({
|
|
240
|
+
case 0: return [4 /*yield*/, this.getTransactionByIdRaw({ planId: planId, transactionId: transactionId }, initOverrides)];
|
|
241
241
|
case 1:
|
|
242
242
|
response = _a.sent();
|
|
243
243
|
return [4 /*yield*/, response.value()];
|
|
@@ -247,8 +247,8 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
247
247
|
});
|
|
248
248
|
};
|
|
249
249
|
/**
|
|
250
|
-
* Returns
|
|
251
|
-
*
|
|
250
|
+
* Returns plan transactions, excluding any pending transactions
|
|
251
|
+
* Get all transactions
|
|
252
252
|
*/
|
|
253
253
|
TransactionsApi.prototype.getTransactionsRaw = function (requestParameters, initOverrides) {
|
|
254
254
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -256,8 +256,8 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
256
256
|
return __generator(this, function (_a) {
|
|
257
257
|
switch (_a.label) {
|
|
258
258
|
case 0:
|
|
259
|
-
if (requestParameters.
|
|
260
|
-
throw new runtime.RequiredError('
|
|
259
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
260
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getTransactions.');
|
|
261
261
|
}
|
|
262
262
|
queryParameters = {};
|
|
263
263
|
if (requestParameters.sinceDate !== undefined) {
|
|
@@ -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/{
|
|
284
|
+
path: "/budgets/{plan_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
|
|
285
285
|
method: 'GET',
|
|
286
286
|
headers: headerParameters,
|
|
287
287
|
query: queryParameters,
|
|
@@ -294,15 +294,15 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
294
294
|
});
|
|
295
295
|
};
|
|
296
296
|
/**
|
|
297
|
-
* Returns
|
|
298
|
-
*
|
|
297
|
+
* Returns plan transactions, excluding any pending transactions
|
|
298
|
+
* Get all transactions
|
|
299
299
|
*/
|
|
300
|
-
TransactionsApi.prototype.getTransactions = function (
|
|
300
|
+
TransactionsApi.prototype.getTransactions = function (planId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
301
301
|
return __awaiter(this, void 0, void 0, function () {
|
|
302
302
|
var response;
|
|
303
303
|
return __generator(this, function (_a) {
|
|
304
304
|
switch (_a.label) {
|
|
305
|
-
case 0: return [4 /*yield*/, this.getTransactionsRaw({
|
|
305
|
+
case 0: return [4 /*yield*/, this.getTransactionsRaw({ planId: planId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
|
|
306
306
|
case 1:
|
|
307
307
|
response = _a.sent();
|
|
308
308
|
return [4 /*yield*/, response.value()];
|
|
@@ -313,7 +313,7 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
313
313
|
};
|
|
314
314
|
/**
|
|
315
315
|
* Returns all transactions for a specified account, excluding any pending transactions
|
|
316
|
-
*
|
|
316
|
+
* Get all account transactions
|
|
317
317
|
*/
|
|
318
318
|
TransactionsApi.prototype.getTransactionsByAccountRaw = function (requestParameters, initOverrides) {
|
|
319
319
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -321,8 +321,8 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
321
321
|
return __generator(this, function (_a) {
|
|
322
322
|
switch (_a.label) {
|
|
323
323
|
case 0:
|
|
324
|
-
if (requestParameters.
|
|
325
|
-
throw new runtime.RequiredError('
|
|
324
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
325
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getTransactionsByAccount.');
|
|
326
326
|
}
|
|
327
327
|
if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
|
|
328
328
|
throw new runtime.RequiredError('accountId', 'Required parameter requestParameters.accountId was null or undefined when calling getTransactionsByAccount.');
|
|
@@ -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/{
|
|
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))),
|
|
353
353
|
method: 'GET',
|
|
354
354
|
headers: headerParameters,
|
|
355
355
|
query: queryParameters,
|
|
@@ -363,14 +363,14 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
363
363
|
};
|
|
364
364
|
/**
|
|
365
365
|
* Returns all transactions for a specified account, excluding any pending transactions
|
|
366
|
-
*
|
|
366
|
+
* Get all account transactions
|
|
367
367
|
*/
|
|
368
|
-
TransactionsApi.prototype.getTransactionsByAccount = function (
|
|
368
|
+
TransactionsApi.prototype.getTransactionsByAccount = function (planId, accountId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
369
369
|
return __awaiter(this, void 0, void 0, function () {
|
|
370
370
|
var response;
|
|
371
371
|
return __generator(this, function (_a) {
|
|
372
372
|
switch (_a.label) {
|
|
373
|
-
case 0: return [4 /*yield*/, this.getTransactionsByAccountRaw({
|
|
373
|
+
case 0: return [4 /*yield*/, this.getTransactionsByAccountRaw({ planId: planId, accountId: accountId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
|
|
374
374
|
case 1:
|
|
375
375
|
response = _a.sent();
|
|
376
376
|
return [4 /*yield*/, response.value()];
|
|
@@ -380,8 +380,8 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
380
380
|
});
|
|
381
381
|
};
|
|
382
382
|
/**
|
|
383
|
-
* Returns all transactions for a specified category
|
|
384
|
-
*
|
|
383
|
+
* Returns all transactions for a specified category, excluding any pending transactions
|
|
384
|
+
* Get all category transactions
|
|
385
385
|
*/
|
|
386
386
|
TransactionsApi.prototype.getTransactionsByCategoryRaw = function (requestParameters, initOverrides) {
|
|
387
387
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -389,8 +389,8 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
389
389
|
return __generator(this, function (_a) {
|
|
390
390
|
switch (_a.label) {
|
|
391
391
|
case 0:
|
|
392
|
-
if (requestParameters.
|
|
393
|
-
throw new runtime.RequiredError('
|
|
392
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
393
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getTransactionsByCategory.');
|
|
394
394
|
}
|
|
395
395
|
if (requestParameters.categoryId === null || requestParameters.categoryId === undefined) {
|
|
396
396
|
throw new runtime.RequiredError('categoryId', 'Required parameter requestParameters.categoryId was null or undefined when calling getTransactionsByCategory.');
|
|
@@ -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/{
|
|
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))),
|
|
421
421
|
method: 'GET',
|
|
422
422
|
headers: headerParameters,
|
|
423
423
|
query: queryParameters,
|
|
@@ -430,15 +430,15 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
430
430
|
});
|
|
431
431
|
};
|
|
432
432
|
/**
|
|
433
|
-
* Returns all transactions for a specified category
|
|
434
|
-
*
|
|
433
|
+
* Returns all transactions for a specified category, excluding any pending transactions
|
|
434
|
+
* Get all category transactions
|
|
435
435
|
*/
|
|
436
|
-
TransactionsApi.prototype.getTransactionsByCategory = function (
|
|
436
|
+
TransactionsApi.prototype.getTransactionsByCategory = function (planId, categoryId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
437
437
|
return __awaiter(this, void 0, void 0, function () {
|
|
438
438
|
var response;
|
|
439
439
|
return __generator(this, function (_a) {
|
|
440
440
|
switch (_a.label) {
|
|
441
|
-
case 0: return [4 /*yield*/, this.getTransactionsByCategoryRaw({
|
|
441
|
+
case 0: return [4 /*yield*/, this.getTransactionsByCategoryRaw({ planId: planId, categoryId: categoryId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
|
|
442
442
|
case 1:
|
|
443
443
|
response = _a.sent();
|
|
444
444
|
return [4 /*yield*/, response.value()];
|
|
@@ -448,8 +448,8 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
448
448
|
});
|
|
449
449
|
};
|
|
450
450
|
/**
|
|
451
|
-
* Returns all transactions for a specified month
|
|
452
|
-
*
|
|
451
|
+
* Returns all transactions for a specified month, excluding any pending transactions
|
|
452
|
+
* Get all plan month transactions
|
|
453
453
|
*/
|
|
454
454
|
TransactionsApi.prototype.getTransactionsByMonthRaw = function (requestParameters, initOverrides) {
|
|
455
455
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -457,8 +457,8 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
457
457
|
return __generator(this, function (_a) {
|
|
458
458
|
switch (_a.label) {
|
|
459
459
|
case 0:
|
|
460
|
-
if (requestParameters.
|
|
461
|
-
throw new runtime.RequiredError('
|
|
460
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
461
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getTransactionsByMonth.');
|
|
462
462
|
}
|
|
463
463
|
if (requestParameters.month === null || requestParameters.month === undefined) {
|
|
464
464
|
throw new runtime.RequiredError('month', 'Required parameter requestParameters.month was null or undefined when calling getTransactionsByMonth.');
|
|
@@ -485,28 +485,28 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
485
485
|
}
|
|
486
486
|
_a.label = 2;
|
|
487
487
|
case 2: return [4 /*yield*/, this.request({
|
|
488
|
-
path: "/budgets/{
|
|
488
|
+
path: "/budgets/{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,
|
|
492
492
|
}, initOverrides)];
|
|
493
493
|
case 3:
|
|
494
494
|
response = _a.sent();
|
|
495
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return
|
|
495
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return TransactionsResponseFromJSON(jsonValue); })];
|
|
496
496
|
}
|
|
497
497
|
});
|
|
498
498
|
});
|
|
499
499
|
};
|
|
500
500
|
/**
|
|
501
|
-
* Returns all transactions for a specified month
|
|
502
|
-
*
|
|
501
|
+
* Returns all transactions for a specified month, excluding any pending transactions
|
|
502
|
+
* Get all plan month transactions
|
|
503
503
|
*/
|
|
504
|
-
TransactionsApi.prototype.getTransactionsByMonth = function (
|
|
504
|
+
TransactionsApi.prototype.getTransactionsByMonth = function (planId, month, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
505
505
|
return __awaiter(this, void 0, void 0, function () {
|
|
506
506
|
var response;
|
|
507
507
|
return __generator(this, function (_a) {
|
|
508
508
|
switch (_a.label) {
|
|
509
|
-
case 0: return [4 /*yield*/, this.getTransactionsByMonthRaw({
|
|
509
|
+
case 0: return [4 /*yield*/, this.getTransactionsByMonthRaw({ planId: planId, month: month, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
|
|
510
510
|
case 1:
|
|
511
511
|
response = _a.sent();
|
|
512
512
|
return [4 /*yield*/, response.value()];
|
|
@@ -516,8 +516,8 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
516
516
|
});
|
|
517
517
|
};
|
|
518
518
|
/**
|
|
519
|
-
* Returns all transactions for a specified payee
|
|
520
|
-
*
|
|
519
|
+
* Returns all transactions for a specified payee, excluding any pending transactions
|
|
520
|
+
* Get all payee transactions
|
|
521
521
|
*/
|
|
522
522
|
TransactionsApi.prototype.getTransactionsByPayeeRaw = function (requestParameters, initOverrides) {
|
|
523
523
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -525,8 +525,8 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
525
525
|
return __generator(this, function (_a) {
|
|
526
526
|
switch (_a.label) {
|
|
527
527
|
case 0:
|
|
528
|
-
if (requestParameters.
|
|
529
|
-
throw new runtime.RequiredError('
|
|
528
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
529
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getTransactionsByPayee.');
|
|
530
530
|
}
|
|
531
531
|
if (requestParameters.payeeId === null || requestParameters.payeeId === undefined) {
|
|
532
532
|
throw new runtime.RequiredError('payeeId', 'Required parameter requestParameters.payeeId was null or undefined when calling getTransactionsByPayee.');
|
|
@@ -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/{
|
|
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))),
|
|
557
557
|
method: 'GET',
|
|
558
558
|
headers: headerParameters,
|
|
559
559
|
query: queryParameters,
|
|
@@ -566,15 +566,15 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
566
566
|
});
|
|
567
567
|
};
|
|
568
568
|
/**
|
|
569
|
-
* Returns all transactions for a specified payee
|
|
570
|
-
*
|
|
569
|
+
* Returns all transactions for a specified payee, excluding any pending transactions
|
|
570
|
+
* Get all payee transactions
|
|
571
571
|
*/
|
|
572
|
-
TransactionsApi.prototype.getTransactionsByPayee = function (
|
|
572
|
+
TransactionsApi.prototype.getTransactionsByPayee = function (planId, payeeId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
573
573
|
return __awaiter(this, void 0, void 0, function () {
|
|
574
574
|
var response;
|
|
575
575
|
return __generator(this, function (_a) {
|
|
576
576
|
switch (_a.label) {
|
|
577
|
-
case 0: return [4 /*yield*/, this.getTransactionsByPayeeRaw({
|
|
577
|
+
case 0: return [4 /*yield*/, this.getTransactionsByPayeeRaw({ planId: planId, payeeId: payeeId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
|
|
578
578
|
case 1:
|
|
579
579
|
response = _a.sent();
|
|
580
580
|
return [4 /*yield*/, response.value()];
|
|
@@ -584,7 +584,7 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
584
584
|
});
|
|
585
585
|
};
|
|
586
586
|
/**
|
|
587
|
-
* Imports available transactions on all linked accounts for the given
|
|
587
|
+
* Imports available transactions on all linked accounts for the given plan. Linked accounts allow transactions to be imported directly from a specified financial institution and this endpoint initiates that import. Sending a request to this endpoint is the equivalent of clicking \"Import\" on each account in the web application or tapping the \"New Transactions\" banner in the mobile applications. The response for this endpoint contains the transaction ids that have been imported.
|
|
588
588
|
* Import transactions
|
|
589
589
|
*/
|
|
590
590
|
TransactionsApi.prototype.importTransactionsRaw = function (requestParameters, initOverrides) {
|
|
@@ -593,8 +593,8 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
593
593
|
return __generator(this, function (_a) {
|
|
594
594
|
switch (_a.label) {
|
|
595
595
|
case 0:
|
|
596
|
-
if (requestParameters.
|
|
597
|
-
throw new runtime.RequiredError('
|
|
596
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
597
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling importTransactions.');
|
|
598
598
|
}
|
|
599
599
|
queryParameters = {};
|
|
600
600
|
headerParameters = {};
|
|
@@ -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/{
|
|
612
|
+
path: "/budgets/{plan_id}/transactions/import".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
|
|
613
613
|
method: 'POST',
|
|
614
614
|
headers: headerParameters,
|
|
615
615
|
query: queryParameters,
|
|
@@ -622,15 +622,15 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
622
622
|
});
|
|
623
623
|
};
|
|
624
624
|
/**
|
|
625
|
-
* Imports available transactions on all linked accounts for the given
|
|
625
|
+
* Imports available transactions on all linked accounts for the given plan. Linked accounts allow transactions to be imported directly from a specified financial institution and this endpoint initiates that import. Sending a request to this endpoint is the equivalent of clicking \"Import\" on each account in the web application or tapping the \"New Transactions\" banner in the mobile applications. The response for this endpoint contains the transaction ids that have been imported.
|
|
626
626
|
* Import transactions
|
|
627
627
|
*/
|
|
628
|
-
TransactionsApi.prototype.importTransactions = function (
|
|
628
|
+
TransactionsApi.prototype.importTransactions = function (planId, initOverrides) {
|
|
629
629
|
return __awaiter(this, void 0, void 0, function () {
|
|
630
630
|
var response;
|
|
631
631
|
return __generator(this, function (_a) {
|
|
632
632
|
switch (_a.label) {
|
|
633
|
-
case 0: return [4 /*yield*/, this.importTransactionsRaw({
|
|
633
|
+
case 0: return [4 /*yield*/, this.importTransactionsRaw({ planId: planId }, initOverrides)];
|
|
634
634
|
case 1:
|
|
635
635
|
response = _a.sent();
|
|
636
636
|
return [4 /*yield*/, response.value()];
|
|
@@ -641,7 +641,7 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
641
641
|
};
|
|
642
642
|
/**
|
|
643
643
|
* Updates a single transaction
|
|
644
|
-
*
|
|
644
|
+
* Update a transaction
|
|
645
645
|
*/
|
|
646
646
|
TransactionsApi.prototype.updateTransactionRaw = function (requestParameters, initOverrides) {
|
|
647
647
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -649,8 +649,8 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
649
649
|
return __generator(this, function (_a) {
|
|
650
650
|
switch (_a.label) {
|
|
651
651
|
case 0:
|
|
652
|
-
if (requestParameters.
|
|
653
|
-
throw new runtime.RequiredError('
|
|
652
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
653
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling updateTransaction.');
|
|
654
654
|
}
|
|
655
655
|
if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
|
|
656
656
|
throw new runtime.RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling updateTransaction.');
|
|
@@ -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/{
|
|
675
|
+
path: "/budgets/{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,
|
|
@@ -687,14 +687,14 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
687
687
|
};
|
|
688
688
|
/**
|
|
689
689
|
* Updates a single transaction
|
|
690
|
-
*
|
|
690
|
+
* Update a transaction
|
|
691
691
|
*/
|
|
692
|
-
TransactionsApi.prototype.updateTransaction = function (
|
|
692
|
+
TransactionsApi.prototype.updateTransaction = function (planId, transactionId, data, initOverrides) {
|
|
693
693
|
return __awaiter(this, void 0, void 0, function () {
|
|
694
694
|
var response;
|
|
695
695
|
return __generator(this, function (_a) {
|
|
696
696
|
switch (_a.label) {
|
|
697
|
-
case 0: return [4 /*yield*/, this.updateTransactionRaw({
|
|
697
|
+
case 0: return [4 /*yield*/, this.updateTransactionRaw({ planId: planId, transactionId: transactionId, data: data }, initOverrides)];
|
|
698
698
|
case 1:
|
|
699
699
|
response = _a.sent();
|
|
700
700
|
return [4 /*yield*/, response.value()];
|
|
@@ -713,8 +713,8 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
713
713
|
return __generator(this, function (_a) {
|
|
714
714
|
switch (_a.label) {
|
|
715
715
|
case 0:
|
|
716
|
-
if (requestParameters.
|
|
717
|
-
throw new runtime.RequiredError('
|
|
716
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
717
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling updateTransactions.');
|
|
718
718
|
}
|
|
719
719
|
if (requestParameters.data === null || requestParameters.data === undefined) {
|
|
720
720
|
throw new runtime.RequiredError('data', 'Required parameter requestParameters.data was null or undefined when calling updateTransactions.');
|
|
@@ -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/{
|
|
736
|
+
path: "/budgets/{plan_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
|
|
737
737
|
method: 'PATCH',
|
|
738
738
|
headers: headerParameters,
|
|
739
739
|
query: queryParameters,
|
|
@@ -750,12 +750,12 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
750
750
|
* Updates multiple transactions, by `id` or `import_id`.
|
|
751
751
|
* Update multiple transactions
|
|
752
752
|
*/
|
|
753
|
-
TransactionsApi.prototype.updateTransactions = function (
|
|
753
|
+
TransactionsApi.prototype.updateTransactions = function (planId, data, initOverrides) {
|
|
754
754
|
return __awaiter(this, void 0, void 0, function () {
|
|
755
755
|
var response;
|
|
756
756
|
return __generator(this, function (_a) {
|
|
757
757
|
switch (_a.label) {
|
|
758
|
-
case 0: return [4 /*yield*/, this.updateTransactionsRaw({
|
|
758
|
+
case 0: return [4 /*yield*/, this.updateTransactionsRaw({ planId: planId, data: data }, initOverrides)];
|
|
759
759
|
case 1:
|
|
760
760
|
response = _a.sent();
|
|
761
761
|
return [4 /*yield*/, response.value()];
|
|
@@ -12,12 +12,12 @@ import type { UserResponse } from '../models/index';
|
|
|
12
12
|
export declare class UserApi extends runtime.BaseAPI {
|
|
13
13
|
/**
|
|
14
14
|
* Returns authenticated user information
|
|
15
|
-
*
|
|
15
|
+
* Get user
|
|
16
16
|
*/
|
|
17
17
|
getUserRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
|
|
18
18
|
/**
|
|
19
19
|
* Returns authenticated user information
|
|
20
|
-
*
|
|
20
|
+
* Get user
|
|
21
21
|
*/
|
|
22
22
|
getUser(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
23
23
|
}
|
package/dist/esm/apis/UserApi.js
CHANGED
|
@@ -31,8 +31,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
33
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
34
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
35
|
-
return g =
|
|
34
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
35
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
36
36
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
37
37
|
function step(op) {
|
|
38
38
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -69,7 +69,7 @@ var UserApi = /** @class */ (function (_super) {
|
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
71
|
* Returns authenticated user information
|
|
72
|
-
*
|
|
72
|
+
* Get user
|
|
73
73
|
*/
|
|
74
74
|
UserApi.prototype.getUserRaw = function (initOverrides) {
|
|
75
75
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -104,7 +104,7 @@ var UserApi = /** @class */ (function (_super) {
|
|
|
104
104
|
};
|
|
105
105
|
/**
|
|
106
106
|
* Returns authenticated user information
|
|
107
|
-
*
|
|
107
|
+
* Get user
|
|
108
108
|
*/
|
|
109
109
|
UserApi.prototype.getUser = function (initOverrides) {
|
|
110
110
|
return __awaiter(this, void 0, void 0, function () {
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export * from './AccountsApi';
|
|
2
|
-
export * from './BudgetsApi';
|
|
3
2
|
export * from './CategoriesApi';
|
|
3
|
+
export * from './MoneyMovementsApi';
|
|
4
4
|
export * from './MonthsApi';
|
|
5
5
|
export * from './PayeeLocationsApi';
|
|
6
6
|
export * from './PayeesApi';
|
|
7
|
+
export * from './PlansApi';
|
|
7
8
|
export * from './ScheduledTransactionsApi';
|
|
8
9
|
export * from './TransactionsApi';
|
|
9
10
|
export * from './UserApi';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AccountsApi';
|
|
4
|
-
export * from './BudgetsApi';
|
|
5
4
|
export * from './CategoriesApi';
|
|
5
|
+
export * from './MoneyMovementsApi';
|
|
6
6
|
export * from './MonthsApi';
|
|
7
7
|
export * from './PayeeLocationsApi';
|
|
8
8
|
export * from './PayeesApi';
|
|
9
|
+
export * from './PlansApi';
|
|
9
10
|
export * from './ScheduledTransactionsApi';
|
|
10
11
|
export * from './TransactionsApi';
|
|
11
12
|
export * from './UserApi';
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -20,11 +20,11 @@ export declare class api {
|
|
|
20
20
|
* /user endpoints interface
|
|
21
21
|
*/
|
|
22
22
|
get user(): apis.UserApi;
|
|
23
|
-
protected
|
|
23
|
+
protected _plans: apis.PlansApi;
|
|
24
24
|
/**
|
|
25
|
-
* /
|
|
25
|
+
* /plans endpoints interface
|
|
26
26
|
*/
|
|
27
|
-
get
|
|
27
|
+
get plans(): apis.PlansApi;
|
|
28
28
|
protected _accounts: apis.AccountsApi;
|
|
29
29
|
/**
|
|
30
30
|
* /budgets/{budget_id}/accounts endpoints interface
|