ynab 2.9.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 +51 -43
- 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 +16 -4
- package/dist/esm/models/Category.js +4 -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/TransactionFlagColor.d.ts +1 -0
- package/dist/esm/models/TransactionFlagColor.js +2 -1
- package/dist/esm/models/TransactionResponseData.d.ts +6 -0
- package/dist/esm/models/TransactionResponseData.js +4 -0
- 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 +16 -4
- package/dist/models/Category.js +10 -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.d.ts +1 -0
- package/dist/models/TransactionFlagColor.js +8 -7
- package/dist/models/TransactionResponse.js +5 -6
- package/dist/models/TransactionResponseData.d.ts +6 -0
- package/dist/models/TransactionResponseData.js +9 -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
|
@@ -23,13 +23,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
23
23
|
}) : function(o, v) {
|
|
24
24
|
o["default"] = v;
|
|
25
25
|
});
|
|
26
|
-
var __importStar = (this && this.__importStar) || function (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
26
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
27
|
+
var ownKeys = function(o) {
|
|
28
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
29
|
+
var ar = [];
|
|
30
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
31
|
+
return ar;
|
|
32
|
+
};
|
|
33
|
+
return ownKeys(o);
|
|
34
|
+
};
|
|
35
|
+
return function (mod) {
|
|
36
|
+
if (mod && mod.__esModule) return mod;
|
|
37
|
+
var result = {};
|
|
38
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
39
|
+
__setModuleDefault(result, mod);
|
|
40
|
+
return result;
|
|
41
|
+
};
|
|
42
|
+
})();
|
|
33
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
44
|
exports.GetTransactionsByPayeeTypeEnum = exports.GetTransactionsByMonthTypeEnum = exports.GetTransactionsByCategoryTypeEnum = exports.GetTransactionsByAccountTypeEnum = exports.GetTransactionsTypeEnum = exports.TransactionsApi = void 0;
|
|
35
45
|
const runtime = __importStar(require("../runtime"));
|
|
@@ -43,8 +53,8 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
43
53
|
* Create a single transaction or multiple transactions
|
|
44
54
|
*/
|
|
45
55
|
async createTransactionRaw(requestParameters, initOverrides) {
|
|
46
|
-
if (requestParameters.
|
|
47
|
-
throw new runtime.RequiredError('
|
|
56
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
57
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling createTransaction.');
|
|
48
58
|
}
|
|
49
59
|
if (requestParameters.data === null || requestParameters.data === undefined) {
|
|
50
60
|
throw new runtime.RequiredError('data', 'Required parameter requestParameters.data was null or undefined when calling createTransaction.');
|
|
@@ -61,7 +71,7 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
61
71
|
}
|
|
62
72
|
}
|
|
63
73
|
const response = await this.request({
|
|
64
|
-
path: `/budgets/{
|
|
74
|
+
path: `/budgets/{plan_id}/transactions`.replace(`{${"plan_id"}}`, encodeURIComponent(String(requestParameters.planId))),
|
|
65
75
|
method: 'POST',
|
|
66
76
|
headers: headerParameters,
|
|
67
77
|
query: queryParameters,
|
|
@@ -73,17 +83,17 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
73
83
|
* 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.
|
|
74
84
|
* Create a single transaction or multiple transactions
|
|
75
85
|
*/
|
|
76
|
-
async createTransaction(
|
|
77
|
-
const response = await this.createTransactionRaw({
|
|
86
|
+
async createTransaction(planId, data, initOverrides) {
|
|
87
|
+
const response = await this.createTransactionRaw({ planId: planId, data: data }, initOverrides);
|
|
78
88
|
return await response.value();
|
|
79
89
|
}
|
|
80
90
|
/**
|
|
81
91
|
* Deletes a transaction
|
|
82
|
-
*
|
|
92
|
+
* Delete a transaction
|
|
83
93
|
*/
|
|
84
94
|
async deleteTransactionRaw(requestParameters, initOverrides) {
|
|
85
|
-
if (requestParameters.
|
|
86
|
-
throw new runtime.RequiredError('
|
|
95
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
96
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling deleteTransaction.');
|
|
87
97
|
}
|
|
88
98
|
if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
|
|
89
99
|
throw new runtime.RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling deleteTransaction.');
|
|
@@ -99,7 +109,7 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
99
109
|
}
|
|
100
110
|
}
|
|
101
111
|
const response = await this.request({
|
|
102
|
-
path: `/budgets/{
|
|
112
|
+
path: `/budgets/{plan_id}/transactions/{transaction_id}`.replace(`{${"plan_id"}}`, encodeURIComponent(String(requestParameters.planId))).replace(`{${"transaction_id"}}`, encodeURIComponent(String(requestParameters.transactionId))),
|
|
103
113
|
method: 'DELETE',
|
|
104
114
|
headers: headerParameters,
|
|
105
115
|
query: queryParameters,
|
|
@@ -108,19 +118,19 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
108
118
|
}
|
|
109
119
|
/**
|
|
110
120
|
* Deletes a transaction
|
|
111
|
-
*
|
|
121
|
+
* Delete a transaction
|
|
112
122
|
*/
|
|
113
|
-
async deleteTransaction(
|
|
114
|
-
const response = await this.deleteTransactionRaw({
|
|
123
|
+
async deleteTransaction(planId, transactionId, initOverrides) {
|
|
124
|
+
const response = await this.deleteTransactionRaw({ planId: planId, transactionId: transactionId }, initOverrides);
|
|
115
125
|
return await response.value();
|
|
116
126
|
}
|
|
117
127
|
/**
|
|
118
128
|
* Returns a single transaction
|
|
119
|
-
*
|
|
129
|
+
* Get a transaction
|
|
120
130
|
*/
|
|
121
131
|
async getTransactionByIdRaw(requestParameters, initOverrides) {
|
|
122
|
-
if (requestParameters.
|
|
123
|
-
throw new runtime.RequiredError('
|
|
132
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
133
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getTransactionById.');
|
|
124
134
|
}
|
|
125
135
|
if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
|
|
126
136
|
throw new runtime.RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling getTransactionById.');
|
|
@@ -136,7 +146,7 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
136
146
|
}
|
|
137
147
|
}
|
|
138
148
|
const response = await this.request({
|
|
139
|
-
path: `/budgets/{
|
|
149
|
+
path: `/budgets/{plan_id}/transactions/{transaction_id}`.replace(`{${"plan_id"}}`, encodeURIComponent(String(requestParameters.planId))).replace(`{${"transaction_id"}}`, encodeURIComponent(String(requestParameters.transactionId))),
|
|
140
150
|
method: 'GET',
|
|
141
151
|
headers: headerParameters,
|
|
142
152
|
query: queryParameters,
|
|
@@ -145,19 +155,19 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
145
155
|
}
|
|
146
156
|
/**
|
|
147
157
|
* Returns a single transaction
|
|
148
|
-
*
|
|
158
|
+
* Get a transaction
|
|
149
159
|
*/
|
|
150
|
-
async getTransactionById(
|
|
151
|
-
const response = await this.getTransactionByIdRaw({
|
|
160
|
+
async getTransactionById(planId, transactionId, initOverrides) {
|
|
161
|
+
const response = await this.getTransactionByIdRaw({ planId: planId, transactionId: transactionId }, initOverrides);
|
|
152
162
|
return await response.value();
|
|
153
163
|
}
|
|
154
164
|
/**
|
|
155
|
-
* Returns
|
|
156
|
-
*
|
|
165
|
+
* Returns plan transactions, excluding any pending transactions
|
|
166
|
+
* Get all transactions
|
|
157
167
|
*/
|
|
158
168
|
async getTransactionsRaw(requestParameters, initOverrides) {
|
|
159
|
-
if (requestParameters.
|
|
160
|
-
throw new runtime.RequiredError('
|
|
169
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
170
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getTransactions.');
|
|
161
171
|
}
|
|
162
172
|
const queryParameters = {};
|
|
163
173
|
if (requestParameters.sinceDate !== undefined) {
|
|
@@ -179,7 +189,7 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
179
189
|
}
|
|
180
190
|
}
|
|
181
191
|
const response = await this.request({
|
|
182
|
-
path: `/budgets/{
|
|
192
|
+
path: `/budgets/{plan_id}/transactions`.replace(`{${"plan_id"}}`, encodeURIComponent(String(requestParameters.planId))),
|
|
183
193
|
method: 'GET',
|
|
184
194
|
headers: headerParameters,
|
|
185
195
|
query: queryParameters,
|
|
@@ -187,20 +197,20 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
187
197
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TransactionsResponseFromJSON)(jsonValue));
|
|
188
198
|
}
|
|
189
199
|
/**
|
|
190
|
-
* Returns
|
|
191
|
-
*
|
|
200
|
+
* Returns plan transactions, excluding any pending transactions
|
|
201
|
+
* Get all transactions
|
|
192
202
|
*/
|
|
193
|
-
async getTransactions(
|
|
194
|
-
const response = await this.getTransactionsRaw({
|
|
203
|
+
async getTransactions(planId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
204
|
+
const response = await this.getTransactionsRaw({ planId: planId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides);
|
|
195
205
|
return await response.value();
|
|
196
206
|
}
|
|
197
207
|
/**
|
|
198
208
|
* Returns all transactions for a specified account, excluding any pending transactions
|
|
199
|
-
*
|
|
209
|
+
* Get all account transactions
|
|
200
210
|
*/
|
|
201
211
|
async getTransactionsByAccountRaw(requestParameters, initOverrides) {
|
|
202
|
-
if (requestParameters.
|
|
203
|
-
throw new runtime.RequiredError('
|
|
212
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
213
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getTransactionsByAccount.');
|
|
204
214
|
}
|
|
205
215
|
if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
|
|
206
216
|
throw new runtime.RequiredError('accountId', 'Required parameter requestParameters.accountId was null or undefined when calling getTransactionsByAccount.');
|
|
@@ -225,7 +235,7 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
225
235
|
}
|
|
226
236
|
}
|
|
227
237
|
const response = await this.request({
|
|
228
|
-
path: `/budgets/{
|
|
238
|
+
path: `/budgets/{plan_id}/accounts/{account_id}/transactions`.replace(`{${"plan_id"}}`, encodeURIComponent(String(requestParameters.planId))).replace(`{${"account_id"}}`, encodeURIComponent(String(requestParameters.accountId))),
|
|
229
239
|
method: 'GET',
|
|
230
240
|
headers: headerParameters,
|
|
231
241
|
query: queryParameters,
|
|
@@ -234,19 +244,19 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
234
244
|
}
|
|
235
245
|
/**
|
|
236
246
|
* Returns all transactions for a specified account, excluding any pending transactions
|
|
237
|
-
*
|
|
247
|
+
* Get all account transactions
|
|
238
248
|
*/
|
|
239
|
-
async getTransactionsByAccount(
|
|
240
|
-
const response = await this.getTransactionsByAccountRaw({
|
|
249
|
+
async getTransactionsByAccount(planId, accountId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
250
|
+
const response = await this.getTransactionsByAccountRaw({ planId: planId, accountId: accountId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides);
|
|
241
251
|
return await response.value();
|
|
242
252
|
}
|
|
243
253
|
/**
|
|
244
|
-
* Returns all transactions for a specified category
|
|
245
|
-
*
|
|
254
|
+
* Returns all transactions for a specified category, excluding any pending transactions
|
|
255
|
+
* Get all category transactions
|
|
246
256
|
*/
|
|
247
257
|
async getTransactionsByCategoryRaw(requestParameters, initOverrides) {
|
|
248
|
-
if (requestParameters.
|
|
249
|
-
throw new runtime.RequiredError('
|
|
258
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
259
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getTransactionsByCategory.');
|
|
250
260
|
}
|
|
251
261
|
if (requestParameters.categoryId === null || requestParameters.categoryId === undefined) {
|
|
252
262
|
throw new runtime.RequiredError('categoryId', 'Required parameter requestParameters.categoryId was null or undefined when calling getTransactionsByCategory.');
|
|
@@ -271,7 +281,7 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
271
281
|
}
|
|
272
282
|
}
|
|
273
283
|
const response = await this.request({
|
|
274
|
-
path: `/budgets/{
|
|
284
|
+
path: `/budgets/{plan_id}/categories/{category_id}/transactions`.replace(`{${"plan_id"}}`, encodeURIComponent(String(requestParameters.planId))).replace(`{${"category_id"}}`, encodeURIComponent(String(requestParameters.categoryId))),
|
|
275
285
|
method: 'GET',
|
|
276
286
|
headers: headerParameters,
|
|
277
287
|
query: queryParameters,
|
|
@@ -279,20 +289,20 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
279
289
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.HybridTransactionsResponseFromJSON)(jsonValue));
|
|
280
290
|
}
|
|
281
291
|
/**
|
|
282
|
-
* Returns all transactions for a specified category
|
|
283
|
-
*
|
|
292
|
+
* Returns all transactions for a specified category, excluding any pending transactions
|
|
293
|
+
* Get all category transactions
|
|
284
294
|
*/
|
|
285
|
-
async getTransactionsByCategory(
|
|
286
|
-
const response = await this.getTransactionsByCategoryRaw({
|
|
295
|
+
async getTransactionsByCategory(planId, categoryId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
296
|
+
const response = await this.getTransactionsByCategoryRaw({ planId: planId, categoryId: categoryId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides);
|
|
287
297
|
return await response.value();
|
|
288
298
|
}
|
|
289
299
|
/**
|
|
290
|
-
* Returns all transactions for a specified month
|
|
291
|
-
*
|
|
300
|
+
* Returns all transactions for a specified month, excluding any pending transactions
|
|
301
|
+
* Get all plan month transactions
|
|
292
302
|
*/
|
|
293
303
|
async getTransactionsByMonthRaw(requestParameters, initOverrides) {
|
|
294
|
-
if (requestParameters.
|
|
295
|
-
throw new runtime.RequiredError('
|
|
304
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
305
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getTransactionsByMonth.');
|
|
296
306
|
}
|
|
297
307
|
if (requestParameters.month === null || requestParameters.month === undefined) {
|
|
298
308
|
throw new runtime.RequiredError('month', 'Required parameter requestParameters.month was null or undefined when calling getTransactionsByMonth.');
|
|
@@ -317,28 +327,28 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
317
327
|
}
|
|
318
328
|
}
|
|
319
329
|
const response = await this.request({
|
|
320
|
-
path: `/budgets/{
|
|
330
|
+
path: `/budgets/{plan_id}/months/{month}/transactions`.replace(`{${"plan_id"}}`, encodeURIComponent(String(requestParameters.planId))).replace(`{${"month"}}`, encodeURIComponent(String(requestParameters.month))),
|
|
321
331
|
method: 'GET',
|
|
322
332
|
headers: headerParameters,
|
|
323
333
|
query: queryParameters,
|
|
324
334
|
}, initOverrides);
|
|
325
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
335
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TransactionsResponseFromJSON)(jsonValue));
|
|
326
336
|
}
|
|
327
337
|
/**
|
|
328
|
-
* Returns all transactions for a specified month
|
|
329
|
-
*
|
|
338
|
+
* Returns all transactions for a specified month, excluding any pending transactions
|
|
339
|
+
* Get all plan month transactions
|
|
330
340
|
*/
|
|
331
|
-
async getTransactionsByMonth(
|
|
332
|
-
const response = await this.getTransactionsByMonthRaw({
|
|
341
|
+
async getTransactionsByMonth(planId, month, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
342
|
+
const response = await this.getTransactionsByMonthRaw({ planId: planId, month: month, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides);
|
|
333
343
|
return await response.value();
|
|
334
344
|
}
|
|
335
345
|
/**
|
|
336
|
-
* Returns all transactions for a specified payee
|
|
337
|
-
*
|
|
346
|
+
* Returns all transactions for a specified payee, excluding any pending transactions
|
|
347
|
+
* Get all payee transactions
|
|
338
348
|
*/
|
|
339
349
|
async getTransactionsByPayeeRaw(requestParameters, initOverrides) {
|
|
340
|
-
if (requestParameters.
|
|
341
|
-
throw new runtime.RequiredError('
|
|
350
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
351
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getTransactionsByPayee.');
|
|
342
352
|
}
|
|
343
353
|
if (requestParameters.payeeId === null || requestParameters.payeeId === undefined) {
|
|
344
354
|
throw new runtime.RequiredError('payeeId', 'Required parameter requestParameters.payeeId was null or undefined when calling getTransactionsByPayee.');
|
|
@@ -363,7 +373,7 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
363
373
|
}
|
|
364
374
|
}
|
|
365
375
|
const response = await this.request({
|
|
366
|
-
path: `/budgets/{
|
|
376
|
+
path: `/budgets/{plan_id}/payees/{payee_id}/transactions`.replace(`{${"plan_id"}}`, encodeURIComponent(String(requestParameters.planId))).replace(`{${"payee_id"}}`, encodeURIComponent(String(requestParameters.payeeId))),
|
|
367
377
|
method: 'GET',
|
|
368
378
|
headers: headerParameters,
|
|
369
379
|
query: queryParameters,
|
|
@@ -371,20 +381,20 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
371
381
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.HybridTransactionsResponseFromJSON)(jsonValue));
|
|
372
382
|
}
|
|
373
383
|
/**
|
|
374
|
-
* Returns all transactions for a specified payee
|
|
375
|
-
*
|
|
384
|
+
* Returns all transactions for a specified payee, excluding any pending transactions
|
|
385
|
+
* Get all payee transactions
|
|
376
386
|
*/
|
|
377
|
-
async getTransactionsByPayee(
|
|
378
|
-
const response = await this.getTransactionsByPayeeRaw({
|
|
387
|
+
async getTransactionsByPayee(planId, payeeId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
|
|
388
|
+
const response = await this.getTransactionsByPayeeRaw({ planId: planId, payeeId: payeeId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides);
|
|
379
389
|
return await response.value();
|
|
380
390
|
}
|
|
381
391
|
/**
|
|
382
|
-
* Imports available transactions on all linked accounts for the given
|
|
392
|
+
* 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.
|
|
383
393
|
* Import transactions
|
|
384
394
|
*/
|
|
385
395
|
async importTransactionsRaw(requestParameters, initOverrides) {
|
|
386
|
-
if (requestParameters.
|
|
387
|
-
throw new runtime.RequiredError('
|
|
396
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
397
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling importTransactions.');
|
|
388
398
|
}
|
|
389
399
|
const queryParameters = {};
|
|
390
400
|
const headerParameters = {};
|
|
@@ -397,7 +407,7 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
397
407
|
}
|
|
398
408
|
}
|
|
399
409
|
const response = await this.request({
|
|
400
|
-
path: `/budgets/{
|
|
410
|
+
path: `/budgets/{plan_id}/transactions/import`.replace(`{${"plan_id"}}`, encodeURIComponent(String(requestParameters.planId))),
|
|
401
411
|
method: 'POST',
|
|
402
412
|
headers: headerParameters,
|
|
403
413
|
query: queryParameters,
|
|
@@ -405,20 +415,20 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
405
415
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TransactionsImportResponseFromJSON)(jsonValue));
|
|
406
416
|
}
|
|
407
417
|
/**
|
|
408
|
-
* Imports available transactions on all linked accounts for the given
|
|
418
|
+
* 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.
|
|
409
419
|
* Import transactions
|
|
410
420
|
*/
|
|
411
|
-
async importTransactions(
|
|
412
|
-
const response = await this.importTransactionsRaw({
|
|
421
|
+
async importTransactions(planId, initOverrides) {
|
|
422
|
+
const response = await this.importTransactionsRaw({ planId: planId }, initOverrides);
|
|
413
423
|
return await response.value();
|
|
414
424
|
}
|
|
415
425
|
/**
|
|
416
426
|
* Updates a single transaction
|
|
417
|
-
*
|
|
427
|
+
* Update a transaction
|
|
418
428
|
*/
|
|
419
429
|
async updateTransactionRaw(requestParameters, initOverrides) {
|
|
420
|
-
if (requestParameters.
|
|
421
|
-
throw new runtime.RequiredError('
|
|
430
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
431
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling updateTransaction.');
|
|
422
432
|
}
|
|
423
433
|
if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
|
|
424
434
|
throw new runtime.RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling updateTransaction.');
|
|
@@ -438,7 +448,7 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
438
448
|
}
|
|
439
449
|
}
|
|
440
450
|
const response = await this.request({
|
|
441
|
-
path: `/budgets/{
|
|
451
|
+
path: `/budgets/{plan_id}/transactions/{transaction_id}`.replace(`{${"plan_id"}}`, encodeURIComponent(String(requestParameters.planId))).replace(`{${"transaction_id"}}`, encodeURIComponent(String(requestParameters.transactionId))),
|
|
442
452
|
method: 'PUT',
|
|
443
453
|
headers: headerParameters,
|
|
444
454
|
query: queryParameters,
|
|
@@ -448,10 +458,10 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
448
458
|
}
|
|
449
459
|
/**
|
|
450
460
|
* Updates a single transaction
|
|
451
|
-
*
|
|
461
|
+
* Update a transaction
|
|
452
462
|
*/
|
|
453
|
-
async updateTransaction(
|
|
454
|
-
const response = await this.updateTransactionRaw({
|
|
463
|
+
async updateTransaction(planId, transactionId, data, initOverrides) {
|
|
464
|
+
const response = await this.updateTransactionRaw({ planId: planId, transactionId: transactionId, data: data }, initOverrides);
|
|
455
465
|
return await response.value();
|
|
456
466
|
}
|
|
457
467
|
/**
|
|
@@ -459,8 +469,8 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
459
469
|
* Update multiple transactions
|
|
460
470
|
*/
|
|
461
471
|
async updateTransactionsRaw(requestParameters, initOverrides) {
|
|
462
|
-
if (requestParameters.
|
|
463
|
-
throw new runtime.RequiredError('
|
|
472
|
+
if (requestParameters.planId === null || requestParameters.planId === undefined) {
|
|
473
|
+
throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling updateTransactions.');
|
|
464
474
|
}
|
|
465
475
|
if (requestParameters.data === null || requestParameters.data === undefined) {
|
|
466
476
|
throw new runtime.RequiredError('data', 'Required parameter requestParameters.data was null or undefined when calling updateTransactions.');
|
|
@@ -477,7 +487,7 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
477
487
|
}
|
|
478
488
|
}
|
|
479
489
|
const response = await this.request({
|
|
480
|
-
path: `/budgets/{
|
|
490
|
+
path: `/budgets/{plan_id}/transactions`.replace(`{${"plan_id"}}`, encodeURIComponent(String(requestParameters.planId))),
|
|
481
491
|
method: 'PATCH',
|
|
482
492
|
headers: headerParameters,
|
|
483
493
|
query: queryParameters,
|
|
@@ -489,8 +499,8 @@ class TransactionsApi extends runtime.BaseAPI {
|
|
|
489
499
|
* Updates multiple transactions, by `id` or `import_id`.
|
|
490
500
|
* Update multiple transactions
|
|
491
501
|
*/
|
|
492
|
-
async updateTransactions(
|
|
493
|
-
const response = await this.updateTransactionsRaw({
|
|
502
|
+
async updateTransactions(planId, data, initOverrides) {
|
|
503
|
+
const response = await this.updateTransactionsRaw({ planId: planId, data: data }, initOverrides);
|
|
494
504
|
return await response.value();
|
|
495
505
|
}
|
|
496
506
|
}
|
package/dist/apis/UserApi.d.ts
CHANGED
|
@@ -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/apis/UserApi.js
CHANGED
|
@@ -23,13 +23,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
23
23
|
}) : function(o, v) {
|
|
24
24
|
o["default"] = v;
|
|
25
25
|
});
|
|
26
|
-
var __importStar = (this && this.__importStar) || function (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
26
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
27
|
+
var ownKeys = function(o) {
|
|
28
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
29
|
+
var ar = [];
|
|
30
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
31
|
+
return ar;
|
|
32
|
+
};
|
|
33
|
+
return ownKeys(o);
|
|
34
|
+
};
|
|
35
|
+
return function (mod) {
|
|
36
|
+
if (mod && mod.__esModule) return mod;
|
|
37
|
+
var result = {};
|
|
38
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
39
|
+
__setModuleDefault(result, mod);
|
|
40
|
+
return result;
|
|
41
|
+
};
|
|
42
|
+
})();
|
|
33
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
44
|
exports.UserApi = void 0;
|
|
35
45
|
const runtime = __importStar(require("../runtime"));
|
|
@@ -40,7 +50,7 @@ const index_1 = require("../models/index");
|
|
|
40
50
|
class UserApi extends runtime.BaseAPI {
|
|
41
51
|
/**
|
|
42
52
|
* Returns authenticated user information
|
|
43
|
-
*
|
|
53
|
+
* Get user
|
|
44
54
|
*/
|
|
45
55
|
async getUserRaw(initOverrides) {
|
|
46
56
|
const queryParameters = {};
|
|
@@ -63,7 +73,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
63
73
|
}
|
|
64
74
|
/**
|
|
65
75
|
* Returns authenticated user information
|
|
66
|
-
*
|
|
76
|
+
* Get user
|
|
67
77
|
*/
|
|
68
78
|
async getUser(initOverrides) {
|
|
69
79
|
const response = await this.getUserRaw(initOverrides);
|
package/dist/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/apis/index.js
CHANGED
|
@@ -17,11 +17,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AccountsApi"), exports);
|
|
20
|
-
__exportStar(require("./BudgetsApi"), exports);
|
|
21
20
|
__exportStar(require("./CategoriesApi"), exports);
|
|
21
|
+
__exportStar(require("./MoneyMovementsApi"), exports);
|
|
22
22
|
__exportStar(require("./MonthsApi"), exports);
|
|
23
23
|
__exportStar(require("./PayeeLocationsApi"), exports);
|
|
24
24
|
__exportStar(require("./PayeesApi"), exports);
|
|
25
|
+
__exportStar(require("./PlansApi"), exports);
|
|
25
26
|
__exportStar(require("./ScheduledTransactionsApi"), exports);
|
|
26
27
|
__exportStar(require("./TransactionsApi"), exports);
|
|
27
28
|
__exportStar(require("./UserApi"), exports);
|