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
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
import * as runtime from '../runtime';
|
|
8
8
|
import type { AccountResponse, AccountsResponse, PostAccountWrapper } from '../models/index';
|
|
9
9
|
export interface CreateAccountRequest {
|
|
10
|
-
|
|
10
|
+
planId: string;
|
|
11
11
|
data: PostAccountWrapper;
|
|
12
12
|
}
|
|
13
13
|
export interface GetAccountByIdRequest {
|
|
14
|
-
|
|
14
|
+
planId: string;
|
|
15
15
|
accountId: string;
|
|
16
16
|
}
|
|
17
17
|
export interface GetAccountsRequest {
|
|
18
|
-
|
|
18
|
+
planId: string;
|
|
19
19
|
lastKnowledgeOfServer?: number;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -24,32 +24,32 @@ export interface GetAccountsRequest {
|
|
|
24
24
|
export declare class AccountsApi extends runtime.BaseAPI {
|
|
25
25
|
/**
|
|
26
26
|
* Creates a new account
|
|
27
|
-
* Create
|
|
27
|
+
* Create an account
|
|
28
28
|
*/
|
|
29
29
|
createAccountRaw(requestParameters: CreateAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountResponse>>;
|
|
30
30
|
/**
|
|
31
31
|
* Creates a new account
|
|
32
|
-
* Create
|
|
32
|
+
* Create an account
|
|
33
33
|
*/
|
|
34
|
-
createAccount(
|
|
34
|
+
createAccount(planId: string, data: PostAccountWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountResponse>;
|
|
35
35
|
/**
|
|
36
36
|
* Returns a single account
|
|
37
|
-
*
|
|
37
|
+
* Get an account
|
|
38
38
|
*/
|
|
39
39
|
getAccountByIdRaw(requestParameters: GetAccountByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountResponse>>;
|
|
40
40
|
/**
|
|
41
41
|
* Returns a single account
|
|
42
|
-
*
|
|
42
|
+
* Get an account
|
|
43
43
|
*/
|
|
44
|
-
getAccountById(
|
|
44
|
+
getAccountById(planId: string, accountId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountResponse>;
|
|
45
45
|
/**
|
|
46
46
|
* Returns all accounts
|
|
47
|
-
*
|
|
47
|
+
* Get all accounts
|
|
48
48
|
*/
|
|
49
49
|
getAccountsRaw(requestParameters: GetAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountsResponse>>;
|
|
50
50
|
/**
|
|
51
51
|
* Returns all accounts
|
|
52
|
-
*
|
|
52
|
+
* Get all accounts
|
|
53
53
|
*/
|
|
54
|
-
getAccounts(
|
|
54
|
+
getAccounts(planId: string, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountsResponse>;
|
|
55
55
|
}
|
|
@@ -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 AccountsApi = /** @class */ (function (_super) {
|
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
71
|
* Creates a new account
|
|
72
|
-
* Create
|
|
72
|
+
* Create an account
|
|
73
73
|
*/
|
|
74
74
|
AccountsApi.prototype.createAccountRaw = function (requestParameters, initOverrides) {
|
|
75
75
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -77,8 +77,8 @@ var AccountsApi = /** @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 createAccount.');
|
|
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 createAccount.');
|
|
@@ -97,7 +97,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
97
97
|
}
|
|
98
98
|
_a.label = 2;
|
|
99
99
|
case 2: return [4 /*yield*/, this.request({
|
|
100
|
-
path: "/budgets/{
|
|
100
|
+
path: "/budgets/{plan_id}/accounts".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
|
|
101
101
|
method: 'POST',
|
|
102
102
|
headers: headerParameters,
|
|
103
103
|
query: queryParameters,
|
|
@@ -112,14 +112,14 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
112
112
|
};
|
|
113
113
|
/**
|
|
114
114
|
* Creates a new account
|
|
115
|
-
* Create
|
|
115
|
+
* Create an account
|
|
116
116
|
*/
|
|
117
|
-
AccountsApi.prototype.createAccount = function (
|
|
117
|
+
AccountsApi.prototype.createAccount = 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.createAccountRaw({
|
|
122
|
+
case 0: return [4 /*yield*/, this.createAccountRaw({ 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 AccountsApi = /** @class */ (function (_super) {
|
|
|
130
130
|
};
|
|
131
131
|
/**
|
|
132
132
|
* Returns a single account
|
|
133
|
-
*
|
|
133
|
+
* Get an account
|
|
134
134
|
*/
|
|
135
135
|
AccountsApi.prototype.getAccountByIdRaw = function (requestParameters, initOverrides) {
|
|
136
136
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -138,8 +138,8 @@ var AccountsApi = /** @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 getAccountById.');
|
|
143
143
|
}
|
|
144
144
|
if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
|
|
145
145
|
throw new runtime.RequiredError('accountId', 'Required parameter requestParameters.accountId was null or undefined when calling getAccountById.');
|
|
@@ -157,7 +157,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
157
157
|
}
|
|
158
158
|
_a.label = 2;
|
|
159
159
|
case 2: return [4 /*yield*/, this.request({
|
|
160
|
-
path: "/budgets/{
|
|
160
|
+
path: "/budgets/{plan_id}/accounts/{account_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("account_id", "}"), encodeURIComponent(String(requestParameters.accountId))),
|
|
161
161
|
method: 'GET',
|
|
162
162
|
headers: headerParameters,
|
|
163
163
|
query: queryParameters,
|
|
@@ -171,14 +171,14 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
171
171
|
};
|
|
172
172
|
/**
|
|
173
173
|
* Returns a single account
|
|
174
|
-
*
|
|
174
|
+
* Get an account
|
|
175
175
|
*/
|
|
176
|
-
AccountsApi.prototype.getAccountById = function (
|
|
176
|
+
AccountsApi.prototype.getAccountById = function (planId, accountId, 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.getAccountByIdRaw({
|
|
181
|
+
case 0: return [4 /*yield*/, this.getAccountByIdRaw({ planId: planId, accountId: accountId }, initOverrides)];
|
|
182
182
|
case 1:
|
|
183
183
|
response = _a.sent();
|
|
184
184
|
return [4 /*yield*/, response.value()];
|
|
@@ -189,7 +189,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
189
189
|
};
|
|
190
190
|
/**
|
|
191
191
|
* Returns all accounts
|
|
192
|
-
*
|
|
192
|
+
* Get all accounts
|
|
193
193
|
*/
|
|
194
194
|
AccountsApi.prototype.getAccountsRaw = function (requestParameters, initOverrides) {
|
|
195
195
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -197,8 +197,8 @@ var AccountsApi = /** @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 getAccounts.');
|
|
202
202
|
}
|
|
203
203
|
queryParameters = {};
|
|
204
204
|
if (requestParameters.lastKnowledgeOfServer !== undefined) {
|
|
@@ -216,7 +216,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
216
216
|
}
|
|
217
217
|
_a.label = 2;
|
|
218
218
|
case 2: return [4 /*yield*/, this.request({
|
|
219
|
-
path: "/budgets/{
|
|
219
|
+
path: "/budgets/{plan_id}/accounts".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
|
|
220
220
|
method: 'GET',
|
|
221
221
|
headers: headerParameters,
|
|
222
222
|
query: queryParameters,
|
|
@@ -230,14 +230,14 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
230
230
|
};
|
|
231
231
|
/**
|
|
232
232
|
* Returns all accounts
|
|
233
|
-
*
|
|
233
|
+
* Get all accounts
|
|
234
234
|
*/
|
|
235
|
-
AccountsApi.prototype.getAccounts = function (
|
|
235
|
+
AccountsApi.prototype.getAccounts = function (planId, lastKnowledgeOfServer, 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.getAccountsRaw({
|
|
240
|
+
case 0: return [4 /*yield*/, this.getAccountsRaw({ planId: planId, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
|
|
241
241
|
case 1:
|
|
242
242
|
response = _a.sent();
|
|
243
243
|
return [4 /*yield*/, response.value()];
|
|
@@ -5,27 +5,40 @@
|
|
|
5
5
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
6
|
*/
|
|
7
7
|
import * as runtime from '../runtime';
|
|
8
|
-
import type { CategoriesResponse, CategoryResponse, PatchCategoryWrapper, PatchMonthCategoryWrapper, SaveCategoryResponse } from '../models/index';
|
|
8
|
+
import type { CategoriesResponse, CategoryResponse, PatchCategoryGroupWrapper, PatchCategoryWrapper, PatchMonthCategoryWrapper, PostCategoryGroupWrapper, PostCategoryWrapper, SaveCategoryGroupResponse, SaveCategoryResponse } from '../models/index';
|
|
9
|
+
export interface CreateCategoryRequest {
|
|
10
|
+
planId: string;
|
|
11
|
+
data: PostCategoryWrapper;
|
|
12
|
+
}
|
|
13
|
+
export interface CreateCategoryGroupRequest {
|
|
14
|
+
planId: string;
|
|
15
|
+
data: PostCategoryGroupWrapper;
|
|
16
|
+
}
|
|
9
17
|
export interface GetCategoriesRequest {
|
|
10
|
-
|
|
18
|
+
planId: string;
|
|
11
19
|
lastKnowledgeOfServer?: number;
|
|
12
20
|
}
|
|
13
21
|
export interface GetCategoryByIdRequest {
|
|
14
|
-
|
|
22
|
+
planId: string;
|
|
15
23
|
categoryId: string;
|
|
16
24
|
}
|
|
17
25
|
export interface GetMonthCategoryByIdRequest {
|
|
18
|
-
|
|
26
|
+
planId: string;
|
|
19
27
|
month: string;
|
|
20
28
|
categoryId: string;
|
|
21
29
|
}
|
|
22
30
|
export interface UpdateCategoryRequest {
|
|
23
|
-
|
|
31
|
+
planId: string;
|
|
24
32
|
categoryId: string;
|
|
25
33
|
data: PatchCategoryWrapper;
|
|
26
34
|
}
|
|
35
|
+
export interface UpdateCategoryGroupRequest {
|
|
36
|
+
planId: string;
|
|
37
|
+
categoryGroupId: string;
|
|
38
|
+
data: PatchCategoryGroupWrapper;
|
|
39
|
+
}
|
|
27
40
|
export interface UpdateMonthCategoryRequest {
|
|
28
|
-
|
|
41
|
+
planId: string;
|
|
29
42
|
month: string;
|
|
30
43
|
categoryId: string;
|
|
31
44
|
data: PatchMonthCategoryWrapper;
|
|
@@ -35,35 +48,55 @@ export interface UpdateMonthCategoryRequest {
|
|
|
35
48
|
*/
|
|
36
49
|
export declare class CategoriesApi extends runtime.BaseAPI {
|
|
37
50
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
51
|
+
* Creates a new category
|
|
52
|
+
* Create a category
|
|
53
|
+
*/
|
|
54
|
+
createCategoryRaw(requestParameters: CreateCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveCategoryResponse>>;
|
|
55
|
+
/**
|
|
56
|
+
* Creates a new category
|
|
57
|
+
* Create a category
|
|
58
|
+
*/
|
|
59
|
+
createCategory(planId: string, data: PostCategoryWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveCategoryResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Creates a new category group
|
|
62
|
+
* Create a category group
|
|
63
|
+
*/
|
|
64
|
+
createCategoryGroupRaw(requestParameters: CreateCategoryGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveCategoryGroupResponse>>;
|
|
65
|
+
/**
|
|
66
|
+
* Creates a new category group
|
|
67
|
+
* Create a category group
|
|
68
|
+
*/
|
|
69
|
+
createCategoryGroup(planId: string, data: PostCategoryGroupWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveCategoryGroupResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Returns all categories grouped by category group. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC).
|
|
72
|
+
* Get all categories
|
|
40
73
|
*/
|
|
41
74
|
getCategoriesRaw(requestParameters: GetCategoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CategoriesResponse>>;
|
|
42
75
|
/**
|
|
43
|
-
* Returns all categories grouped by category group. Amounts (
|
|
44
|
-
*
|
|
76
|
+
* Returns all categories grouped by category group. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC).
|
|
77
|
+
* Get all categories
|
|
45
78
|
*/
|
|
46
|
-
getCategories(
|
|
79
|
+
getCategories(planId: string, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CategoriesResponse>;
|
|
47
80
|
/**
|
|
48
|
-
* Returns a single category. Amounts (
|
|
49
|
-
*
|
|
81
|
+
* Returns a single category. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC).
|
|
82
|
+
* Get a category
|
|
50
83
|
*/
|
|
51
84
|
getCategoryByIdRaw(requestParameters: GetCategoryByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CategoryResponse>>;
|
|
52
85
|
/**
|
|
53
|
-
* Returns a single category. Amounts (
|
|
54
|
-
*
|
|
86
|
+
* Returns a single category. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC).
|
|
87
|
+
* Get a category
|
|
55
88
|
*/
|
|
56
|
-
getCategoryById(
|
|
89
|
+
getCategoryById(planId: string, categoryId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CategoryResponse>;
|
|
57
90
|
/**
|
|
58
|
-
* Returns a single category for a specific
|
|
59
|
-
*
|
|
91
|
+
* Returns a single category for a specific plan month. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC).
|
|
92
|
+
* Get a category for a specific plan month
|
|
60
93
|
*/
|
|
61
94
|
getMonthCategoryByIdRaw(requestParameters: GetMonthCategoryByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CategoryResponse>>;
|
|
62
95
|
/**
|
|
63
|
-
* Returns a single category for a specific
|
|
64
|
-
*
|
|
96
|
+
* Returns a single category for a specific plan month. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC).
|
|
97
|
+
* Get a category for a specific plan month
|
|
65
98
|
*/
|
|
66
|
-
getMonthCategoryById(
|
|
99
|
+
getMonthCategoryById(planId: string, month: string, categoryId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CategoryResponse>;
|
|
67
100
|
/**
|
|
68
101
|
* Update a category
|
|
69
102
|
* Update a category
|
|
@@ -73,15 +106,25 @@ export declare class CategoriesApi extends runtime.BaseAPI {
|
|
|
73
106
|
* Update a category
|
|
74
107
|
* Update a category
|
|
75
108
|
*/
|
|
76
|
-
updateCategory(
|
|
109
|
+
updateCategory(planId: string, categoryId: string, data: PatchCategoryWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveCategoryResponse>;
|
|
110
|
+
/**
|
|
111
|
+
* Update a category group
|
|
112
|
+
* Update a category group
|
|
113
|
+
*/
|
|
114
|
+
updateCategoryGroupRaw(requestParameters: UpdateCategoryGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveCategoryGroupResponse>>;
|
|
115
|
+
/**
|
|
116
|
+
* Update a category group
|
|
117
|
+
* Update a category group
|
|
118
|
+
*/
|
|
119
|
+
updateCategoryGroup(planId: string, categoryGroupId: string, data: PatchCategoryGroupWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveCategoryGroupResponse>;
|
|
77
120
|
/**
|
|
78
|
-
* Update a category for a specific month. Only `budgeted` amount can be updated.
|
|
121
|
+
* Update a category for a specific month. Only `budgeted` (assigned) amount can be updated.
|
|
79
122
|
* Update a category for a specific month
|
|
80
123
|
*/
|
|
81
124
|
updateMonthCategoryRaw(requestParameters: UpdateMonthCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveCategoryResponse>>;
|
|
82
125
|
/**
|
|
83
|
-
* Update a category for a specific month. Only `budgeted` amount can be updated.
|
|
126
|
+
* Update a category for a specific month. Only `budgeted` (assigned) amount can be updated.
|
|
84
127
|
* Update a category for a specific month
|
|
85
128
|
*/
|
|
86
|
-
updateMonthCategory(
|
|
129
|
+
updateMonthCategory(planId: string, month: string, categoryId: string, data: PatchMonthCategoryWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveCategoryResponse>;
|
|
87
130
|
}
|