ynab 1.55.0 → 2.0.0-rc.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 +31 -38
- package/dist/apis/AccountsApi.d.ts +60 -0
- package/dist/apis/AccountsApi.js +137 -0
- package/dist/apis/BudgetsApi.d.ts +58 -0
- package/dist/apis/BudgetsApi.js +129 -0
- package/dist/apis/CategoriesApi.d.ts +77 -0
- package/dist/apis/CategoriesApi.js +183 -0
- package/dist/{esm/transactionsApi.d.ts → apis/CustomTransactionsApi.d.ts} +19 -19
- package/dist/{transactionsApi.js → apis/CustomTransactionsApi.js} +24 -19
- package/dist/apis/DeprecatedApi.d.ts +32 -0
- package/dist/apis/DeprecatedApi.js +63 -0
- package/dist/apis/MonthsApi.d.ts +46 -0
- package/dist/apis/MonthsApi.js +98 -0
- package/dist/apis/PayeeLocationsApi.d.ts +59 -0
- package/dist/apis/PayeeLocationsApi.js +132 -0
- package/dist/apis/PayeesApi.d.ts +46 -0
- package/dist/apis/PayeesApi.js +98 -0
- package/dist/apis/ScheduledTransactionsApi.d.ts +46 -0
- package/dist/apis/ScheduledTransactionsApi.js +98 -0
- package/dist/apis/TransactionsApi.d.ts +201 -0
- package/dist/apis/TransactionsApi.js +461 -0
- package/dist/apis/UserApi.d.ts +28 -0
- package/dist/apis/UserApi.js +55 -0
- package/dist/apis/index.d.ts +10 -0
- package/dist/apis/index.js +24 -0
- package/dist/browser/ynab.js +1 -1
- package/dist/esm/apis/AccountsApi.d.ts +60 -0
- package/dist/esm/apis/AccountsApi.js +256 -0
- package/dist/esm/apis/BudgetsApi.d.ts +58 -0
- package/dist/esm/apis/BudgetsApi.js +248 -0
- package/dist/esm/apis/CategoriesApi.d.ts +77 -0
- package/dist/esm/apis/CategoriesApi.js +324 -0
- package/dist/{transactionsApi.d.ts → esm/apis/CustomTransactionsApi.d.ts} +19 -19
- package/dist/esm/{transactionsApi.js → apis/CustomTransactionsApi.js} +27 -22
- package/dist/esm/apis/DeprecatedApi.d.ts +32 -0
- package/dist/esm/apis/DeprecatedApi.js +138 -0
- package/dist/esm/apis/MonthsApi.d.ts +46 -0
- package/dist/esm/apis/MonthsApi.js +195 -0
- package/dist/esm/apis/PayeeLocationsApi.d.ts +59 -0
- package/dist/esm/apis/PayeeLocationsApi.js +251 -0
- package/dist/esm/apis/PayeesApi.d.ts +46 -0
- package/dist/esm/apis/PayeesApi.js +195 -0
- package/dist/esm/apis/ScheduledTransactionsApi.d.ts +46 -0
- package/dist/esm/apis/ScheduledTransactionsApi.js +195 -0
- package/dist/esm/apis/TransactionsApi.d.ts +201 -0
- package/dist/esm/apis/TransactionsApi.js +734 -0
- package/dist/esm/apis/UserApi.d.ts +28 -0
- package/dist/esm/apis/UserApi.js +130 -0
- package/dist/esm/apis/index.d.ts +10 -0
- package/dist/esm/apis/index.js +12 -0
- package/dist/esm/index.d.ts +24 -36
- package/dist/esm/index.js +22 -30
- package/dist/esm/models/Account.d.ts +140 -0
- package/dist/esm/models/Account.js +88 -0
- package/dist/esm/models/AccountResponse.d.ts +32 -0
- package/dist/esm/models/AccountResponse.js +44 -0
- package/dist/esm/models/AccountResponseData.d.ts +32 -0
- package/dist/esm/models/AccountResponseData.js +44 -0
- package/dist/esm/models/AccountType.d.ts +34 -0
- package/dist/esm/models/AccountType.js +41 -0
- package/dist/esm/models/AccountsResponse.d.ts +32 -0
- package/dist/esm/models/AccountsResponse.js +44 -0
- package/dist/esm/models/AccountsResponseData.d.ts +38 -0
- package/dist/esm/models/AccountsResponseData.js +47 -0
- package/dist/esm/models/BudgetDetail.d.ts +139 -0
- package/dist/esm/models/BudgetDetail.js +89 -0
- package/dist/esm/models/BudgetDetailAllOf.d.ts +95 -0
- package/dist/esm/models/BudgetDetailAllOf.js +71 -0
- package/dist/esm/models/BudgetDetailResponse.d.ts +32 -0
- package/dist/esm/models/BudgetDetailResponse.js +44 -0
- package/dist/esm/models/BudgetDetailResponseData.d.ts +38 -0
- package/dist/esm/models/BudgetDetailResponseData.js +47 -0
- package/dist/esm/models/BudgetSettings.d.ts +39 -0
- package/dist/esm/models/BudgetSettings.js +48 -0
- package/dist/esm/models/BudgetSettingsResponse.d.ts +32 -0
- package/dist/esm/models/BudgetSettingsResponse.js +44 -0
- package/dist/esm/models/BudgetSettingsResponseData.d.ts +32 -0
- package/dist/esm/models/BudgetSettingsResponseData.js +44 -0
- package/dist/esm/models/BudgetSummary.d.ts +76 -0
- package/dist/esm/models/BudgetSummary.js +62 -0
- package/dist/esm/models/BudgetSummaryResponse.d.ts +32 -0
- package/dist/esm/models/BudgetSummaryResponse.js +44 -0
- package/dist/esm/models/BudgetSummaryResponseData.d.ts +38 -0
- package/dist/esm/models/BudgetSummaryResponseData.js +47 -0
- package/dist/esm/models/BulkResponse.d.ts +32 -0
- package/dist/esm/models/BulkResponse.js +44 -0
- package/dist/esm/models/BulkResponseData.d.ts +32 -0
- package/dist/esm/models/BulkResponseData.js +44 -0
- package/dist/esm/models/BulkResponseDataBulk.d.ts +37 -0
- package/dist/esm/models/BulkResponseDataBulk.js +46 -0
- package/dist/esm/models/BulkTransactions.d.ts +32 -0
- package/dist/esm/models/BulkTransactions.js +44 -0
- package/dist/esm/models/CategoriesResponse.d.ts +32 -0
- package/dist/esm/models/CategoriesResponse.js +44 -0
- package/dist/esm/models/CategoriesResponseData.d.ts +38 -0
- package/dist/esm/models/CategoriesResponseData.js +47 -0
- package/dist/esm/models/Category.d.ts +175 -0
- package/dist/esm/models/Category.js +106 -0
- package/dist/esm/models/CategoryGroup.d.ts +49 -0
- package/dist/esm/models/CategoryGroup.js +52 -0
- package/dist/esm/models/CategoryGroupWithCategories.d.ts +56 -0
- package/dist/esm/models/CategoryGroupWithCategories.js +56 -0
- package/dist/esm/models/CategoryGroupWithCategoriesAllOf.d.ts +32 -0
- package/dist/esm/models/CategoryGroupWithCategoriesAllOf.js +44 -0
- package/dist/esm/models/CategoryResponse.d.ts +32 -0
- package/dist/esm/models/CategoryResponse.js +44 -0
- package/dist/esm/models/CategoryResponseData.d.ts +32 -0
- package/dist/esm/models/CategoryResponseData.js +44 -0
- package/dist/esm/models/CurrencyFormat.d.ts +73 -0
- package/dist/esm/models/CurrencyFormat.js +64 -0
- package/dist/esm/models/DateFormat.d.ts +31 -0
- package/dist/esm/models/DateFormat.js +43 -0
- package/dist/esm/models/ErrorDetail.d.ts +43 -0
- package/dist/esm/models/ErrorDetail.js +49 -0
- package/dist/esm/models/ErrorResponse.d.ts +32 -0
- package/dist/esm/models/ErrorResponse.js +44 -0
- package/dist/esm/models/HybridTransaction.d.ts +208 -0
- package/dist/esm/models/HybridTransaction.js +137 -0
- package/dist/esm/models/HybridTransactionAllOf.d.ts +63 -0
- package/dist/esm/models/HybridTransactionAllOf.js +60 -0
- package/dist/esm/models/HybridTransactionsResponse.d.ts +32 -0
- package/dist/esm/models/HybridTransactionsResponse.js +44 -0
- package/dist/esm/models/HybridTransactionsResponseData.d.ts +38 -0
- package/dist/esm/models/HybridTransactionsResponseData.js +47 -0
- package/dist/esm/models/MonthDetail.d.ts +80 -0
- package/dist/esm/models/MonthDetail.js +67 -0
- package/dist/esm/models/MonthDetailAllOf.d.ts +32 -0
- package/dist/esm/models/MonthDetailAllOf.js +44 -0
- package/dist/esm/models/MonthDetailResponse.d.ts +32 -0
- package/dist/esm/models/MonthDetailResponse.js +44 -0
- package/dist/esm/models/MonthDetailResponseData.d.ts +32 -0
- package/dist/esm/models/MonthDetailResponseData.js +44 -0
- package/dist/esm/models/MonthSummariesResponse.d.ts +32 -0
- package/dist/esm/models/MonthSummariesResponse.js +44 -0
- package/dist/esm/models/MonthSummariesResponseData.d.ts +38 -0
- package/dist/esm/models/MonthSummariesResponseData.js +47 -0
- package/dist/esm/models/MonthSummary.d.ts +73 -0
- package/dist/esm/models/MonthSummary.js +63 -0
- package/dist/esm/models/PatchMonthCategoryWrapper.d.ts +32 -0
- package/dist/esm/models/PatchMonthCategoryWrapper.js +44 -0
- package/dist/esm/models/PatchTransactionsWrapper.d.ts +32 -0
- package/dist/esm/models/PatchTransactionsWrapper.js +44 -0
- package/dist/esm/models/Payee.d.ts +49 -0
- package/dist/esm/models/Payee.js +52 -0
- package/dist/esm/models/PayeeLocation.d.ts +55 -0
- package/dist/esm/models/PayeeLocation.js +55 -0
- package/dist/esm/models/PayeeLocationResponse.d.ts +32 -0
- package/dist/esm/models/PayeeLocationResponse.js +44 -0
- package/dist/esm/models/PayeeLocationResponseData.d.ts +32 -0
- package/dist/esm/models/PayeeLocationResponseData.js +44 -0
- package/dist/esm/models/PayeeLocationsResponse.d.ts +32 -0
- package/dist/esm/models/PayeeLocationsResponse.js +44 -0
- package/dist/esm/models/PayeeLocationsResponseData.d.ts +32 -0
- package/dist/esm/models/PayeeLocationsResponseData.js +44 -0
- package/dist/esm/models/PayeeResponse.d.ts +32 -0
- package/dist/esm/models/PayeeResponse.js +44 -0
- package/dist/esm/models/PayeeResponseData.d.ts +32 -0
- package/dist/esm/models/PayeeResponseData.js +44 -0
- package/dist/esm/models/PayeesResponse.d.ts +32 -0
- package/dist/esm/models/PayeesResponse.js +44 -0
- package/dist/esm/models/PayeesResponseData.d.ts +38 -0
- package/dist/esm/models/PayeesResponseData.js +47 -0
- package/dist/esm/models/PostAccountWrapper.d.ts +32 -0
- package/dist/esm/models/PostAccountWrapper.js +44 -0
- package/dist/esm/models/PostTransactionsWrapper.d.ts +38 -0
- package/dist/esm/models/PostTransactionsWrapper.js +46 -0
- package/dist/esm/models/PutTransactionWrapper.d.ts +32 -0
- package/dist/esm/models/PutTransactionWrapper.js +44 -0
- package/dist/esm/models/SaveAccount.d.ts +44 -0
- package/dist/esm/models/SaveAccount.js +50 -0
- package/dist/esm/models/SaveCategoryResponse.d.ts +32 -0
- package/dist/esm/models/SaveCategoryResponse.js +44 -0
- package/dist/esm/models/SaveCategoryResponseData.d.ts +38 -0
- package/dist/esm/models/SaveCategoryResponseData.js +47 -0
- package/dist/esm/models/SaveMonthCategory.d.ts +31 -0
- package/dist/esm/models/SaveMonthCategory.js +43 -0
- package/dist/esm/models/SaveSubTransaction.d.ts +55 -0
- package/dist/esm/models/SaveSubTransaction.js +52 -0
- package/dist/esm/models/SaveTransaction.d.ts +120 -0
- package/dist/esm/models/SaveTransaction.js +86 -0
- package/dist/esm/models/SaveTransactionWithId.d.ts +126 -0
- package/dist/esm/models/SaveTransactionWithId.js +88 -0
- package/dist/esm/models/SaveTransactionWithIdAllOf.d.ts +31 -0
- package/dist/esm/models/SaveTransactionWithIdAllOf.js +43 -0
- package/dist/esm/models/SaveTransactionWithOptionalFields.d.ts +120 -0
- package/dist/esm/models/SaveTransactionWithOptionalFields.js +86 -0
- package/dist/esm/models/SaveTransactionsResponse.d.ts +32 -0
- package/dist/esm/models/SaveTransactionsResponse.js +44 -0
- package/dist/esm/models/SaveTransactionsResponseData.d.ts +56 -0
- package/dist/esm/models/SaveTransactionsResponseData.js +54 -0
- package/dist/esm/models/ScheduledSubTransaction.d.ts +73 -0
- package/dist/esm/models/ScheduledSubTransaction.js +61 -0
- package/dist/esm/models/ScheduledTransactionDetail.d.ts +154 -0
- package/dist/esm/models/ScheduledTransactionDetail.js +113 -0
- package/dist/esm/models/ScheduledTransactionDetailAllOf.d.ts +50 -0
- package/dist/esm/models/ScheduledTransactionDetailAllOf.js +52 -0
- package/dist/esm/models/ScheduledTransactionResponse.d.ts +32 -0
- package/dist/esm/models/ScheduledTransactionResponse.js +44 -0
- package/dist/esm/models/ScheduledTransactionResponseData.d.ts +32 -0
- package/dist/esm/models/ScheduledTransactionResponseData.js +44 -0
- package/dist/esm/models/ScheduledTransactionSummary.d.ts +129 -0
- package/dist/esm/models/ScheduledTransactionSummary.js +102 -0
- package/dist/esm/models/ScheduledTransactionsResponse.d.ts +32 -0
- package/dist/esm/models/ScheduledTransactionsResponse.js +44 -0
- package/dist/esm/models/ScheduledTransactionsResponseData.d.ts +38 -0
- package/dist/esm/models/ScheduledTransactionsResponseData.js +47 -0
- package/dist/esm/models/SubTransaction.d.ts +91 -0
- package/dist/esm/models/SubTransaction.js +67 -0
- package/dist/esm/models/TransactionDetail.d.ts +195 -0
- package/dist/esm/models/TransactionDetail.js +129 -0
- package/dist/esm/models/TransactionDetailAllOf.d.ts +50 -0
- package/dist/esm/models/TransactionDetailAllOf.js +52 -0
- package/dist/esm/models/TransactionResponse.d.ts +32 -0
- package/dist/esm/models/TransactionResponse.js +44 -0
- package/dist/esm/models/TransactionResponseData.d.ts +32 -0
- package/dist/esm/models/TransactionResponseData.js +44 -0
- package/dist/esm/models/TransactionSummary.d.ts +170 -0
- package/dist/esm/models/TransactionSummary.js +118 -0
- package/dist/esm/models/TransactionsImportResponse.d.ts +32 -0
- package/dist/esm/models/TransactionsImportResponse.js +44 -0
- package/dist/esm/models/TransactionsImportResponseData.d.ts +31 -0
- package/dist/esm/models/TransactionsImportResponseData.js +43 -0
- package/dist/esm/models/TransactionsResponse.d.ts +32 -0
- package/dist/esm/models/TransactionsResponse.js +44 -0
- package/dist/esm/models/TransactionsResponseData.d.ts +38 -0
- package/dist/esm/models/TransactionsResponseData.js +47 -0
- package/dist/esm/models/User.d.ts +31 -0
- package/dist/esm/models/User.js +43 -0
- package/dist/esm/models/UserResponse.d.ts +32 -0
- package/dist/esm/models/UserResponse.js +44 -0
- package/dist/esm/models/UserResponseData.d.ts +32 -0
- package/dist/esm/models/UserResponseData.js +44 -0
- package/dist/esm/models/index.d.ts +90 -0
- package/dist/esm/models/index.js +92 -0
- package/dist/esm/runtime.d.ts +182 -0
- package/dist/esm/runtime.js +555 -0
- package/dist/index.d.ts +24 -36
- package/dist/index.js +22 -30
- package/dist/models/Account.d.ts +140 -0
- package/dist/models/Account.js +95 -0
- package/dist/models/AccountResponse.d.ts +32 -0
- package/dist/models/AccountResponse.js +51 -0
- package/dist/models/AccountResponseData.d.ts +32 -0
- package/dist/models/AccountResponseData.js +51 -0
- package/dist/models/AccountType.d.ts +34 -0
- package/dist/models/AccountType.js +47 -0
- package/dist/models/AccountsResponse.d.ts +32 -0
- package/dist/models/AccountsResponse.js +51 -0
- package/dist/models/AccountsResponseData.d.ts +38 -0
- package/dist/models/AccountsResponseData.js +54 -0
- package/dist/models/BudgetDetail.d.ts +139 -0
- package/dist/models/BudgetDetail.js +96 -0
- package/dist/models/BudgetDetailAllOf.d.ts +95 -0
- package/dist/models/BudgetDetailAllOf.js +78 -0
- package/dist/models/BudgetDetailResponse.d.ts +32 -0
- package/dist/models/BudgetDetailResponse.js +51 -0
- package/dist/models/BudgetDetailResponseData.d.ts +38 -0
- package/dist/models/BudgetDetailResponseData.js +54 -0
- package/dist/models/BudgetSettings.d.ts +39 -0
- package/dist/models/BudgetSettings.js +55 -0
- package/dist/models/BudgetSettingsResponse.d.ts +32 -0
- package/dist/models/BudgetSettingsResponse.js +51 -0
- package/dist/models/BudgetSettingsResponseData.d.ts +32 -0
- package/dist/models/BudgetSettingsResponseData.js +51 -0
- package/dist/models/BudgetSummary.d.ts +76 -0
- package/dist/models/BudgetSummary.js +69 -0
- package/dist/models/BudgetSummaryResponse.d.ts +32 -0
- package/dist/models/BudgetSummaryResponse.js +51 -0
- package/dist/models/BudgetSummaryResponseData.d.ts +38 -0
- package/dist/models/BudgetSummaryResponseData.js +54 -0
- package/dist/models/BulkResponse.d.ts +32 -0
- package/dist/models/BulkResponse.js +51 -0
- package/dist/models/BulkResponseData.d.ts +32 -0
- package/dist/models/BulkResponseData.js +51 -0
- package/dist/models/BulkResponseDataBulk.d.ts +37 -0
- package/dist/models/BulkResponseDataBulk.js +53 -0
- package/dist/models/BulkTransactions.d.ts +32 -0
- package/dist/models/BulkTransactions.js +51 -0
- package/dist/models/CategoriesResponse.d.ts +32 -0
- package/dist/models/CategoriesResponse.js +51 -0
- package/dist/models/CategoriesResponseData.d.ts +38 -0
- package/dist/models/CategoriesResponseData.js +54 -0
- package/dist/models/Category.d.ts +175 -0
- package/dist/models/Category.js +113 -0
- package/dist/models/CategoryGroup.d.ts +49 -0
- package/dist/models/CategoryGroup.js +59 -0
- package/dist/models/CategoryGroupWithCategories.d.ts +56 -0
- package/dist/models/CategoryGroupWithCategories.js +63 -0
- package/dist/models/CategoryGroupWithCategoriesAllOf.d.ts +32 -0
- package/dist/models/CategoryGroupWithCategoriesAllOf.js +51 -0
- package/dist/models/CategoryResponse.d.ts +32 -0
- package/dist/models/CategoryResponse.js +51 -0
- package/dist/models/CategoryResponseData.d.ts +32 -0
- package/dist/models/CategoryResponseData.js +51 -0
- package/dist/models/CurrencyFormat.d.ts +73 -0
- package/dist/models/CurrencyFormat.js +71 -0
- package/dist/models/DateFormat.d.ts +31 -0
- package/dist/models/DateFormat.js +50 -0
- package/dist/models/ErrorDetail.d.ts +43 -0
- package/dist/models/ErrorDetail.js +56 -0
- package/dist/models/ErrorResponse.d.ts +32 -0
- package/dist/models/ErrorResponse.js +51 -0
- package/dist/models/HybridTransaction.d.ts +208 -0
- package/dist/models/HybridTransaction.js +144 -0
- package/dist/models/HybridTransactionAllOf.d.ts +63 -0
- package/dist/models/HybridTransactionAllOf.js +67 -0
- package/dist/models/HybridTransactionsResponse.d.ts +32 -0
- package/dist/models/HybridTransactionsResponse.js +51 -0
- package/dist/models/HybridTransactionsResponseData.d.ts +38 -0
- package/dist/models/HybridTransactionsResponseData.js +54 -0
- package/dist/models/MonthDetail.d.ts +80 -0
- package/dist/models/MonthDetail.js +74 -0
- package/dist/models/MonthDetailAllOf.d.ts +32 -0
- package/dist/models/MonthDetailAllOf.js +51 -0
- package/dist/models/MonthDetailResponse.d.ts +32 -0
- package/dist/models/MonthDetailResponse.js +51 -0
- package/dist/models/MonthDetailResponseData.d.ts +32 -0
- package/dist/models/MonthDetailResponseData.js +51 -0
- package/dist/models/MonthSummariesResponse.d.ts +32 -0
- package/dist/models/MonthSummariesResponse.js +51 -0
- package/dist/models/MonthSummariesResponseData.d.ts +38 -0
- package/dist/models/MonthSummariesResponseData.js +54 -0
- package/dist/models/MonthSummary.d.ts +73 -0
- package/dist/models/MonthSummary.js +70 -0
- package/dist/models/PatchMonthCategoryWrapper.d.ts +32 -0
- package/dist/models/PatchMonthCategoryWrapper.js +51 -0
- package/dist/models/PatchTransactionsWrapper.d.ts +32 -0
- package/dist/models/PatchTransactionsWrapper.js +51 -0
- package/dist/models/Payee.d.ts +49 -0
- package/dist/models/Payee.js +59 -0
- package/dist/models/PayeeLocation.d.ts +55 -0
- package/dist/models/PayeeLocation.js +62 -0
- package/dist/models/PayeeLocationResponse.d.ts +32 -0
- package/dist/models/PayeeLocationResponse.js +51 -0
- package/dist/models/PayeeLocationResponseData.d.ts +32 -0
- package/dist/models/PayeeLocationResponseData.js +51 -0
- package/dist/models/PayeeLocationsResponse.d.ts +32 -0
- package/dist/models/PayeeLocationsResponse.js +51 -0
- package/dist/models/PayeeLocationsResponseData.d.ts +32 -0
- package/dist/models/PayeeLocationsResponseData.js +51 -0
- package/dist/models/PayeeResponse.d.ts +32 -0
- package/dist/models/PayeeResponse.js +51 -0
- package/dist/models/PayeeResponseData.d.ts +32 -0
- package/dist/models/PayeeResponseData.js +51 -0
- package/dist/models/PayeesResponse.d.ts +32 -0
- package/dist/models/PayeesResponse.js +51 -0
- package/dist/models/PayeesResponseData.d.ts +38 -0
- package/dist/models/PayeesResponseData.js +54 -0
- package/dist/models/PostAccountWrapper.d.ts +32 -0
- package/dist/models/PostAccountWrapper.js +51 -0
- package/dist/models/PostTransactionsWrapper.d.ts +38 -0
- package/dist/models/PostTransactionsWrapper.js +53 -0
- package/dist/models/PutTransactionWrapper.d.ts +32 -0
- package/dist/models/PutTransactionWrapper.js +51 -0
- package/dist/models/SaveAccount.d.ts +44 -0
- package/dist/models/SaveAccount.js +57 -0
- package/dist/models/SaveCategoryResponse.d.ts +32 -0
- package/dist/models/SaveCategoryResponse.js +51 -0
- package/dist/models/SaveCategoryResponseData.d.ts +38 -0
- package/dist/models/SaveCategoryResponseData.js +54 -0
- package/dist/models/SaveMonthCategory.d.ts +31 -0
- package/dist/models/SaveMonthCategory.js +50 -0
- package/dist/models/SaveSubTransaction.d.ts +55 -0
- package/dist/models/SaveSubTransaction.js +59 -0
- package/dist/models/SaveTransaction.d.ts +120 -0
- package/dist/models/SaveTransaction.js +93 -0
- package/dist/models/SaveTransactionWithId.d.ts +126 -0
- package/dist/models/SaveTransactionWithId.js +95 -0
- package/dist/models/SaveTransactionWithIdAllOf.d.ts +31 -0
- package/dist/models/SaveTransactionWithIdAllOf.js +50 -0
- package/dist/models/SaveTransactionWithOptionalFields.d.ts +120 -0
- package/dist/models/SaveTransactionWithOptionalFields.js +93 -0
- package/dist/models/SaveTransactionsResponse.d.ts +32 -0
- package/dist/models/SaveTransactionsResponse.js +51 -0
- package/dist/models/SaveTransactionsResponseData.d.ts +56 -0
- package/dist/models/SaveTransactionsResponseData.js +61 -0
- package/dist/models/ScheduledSubTransaction.d.ts +73 -0
- package/dist/models/ScheduledSubTransaction.js +68 -0
- package/dist/models/ScheduledTransactionDetail.d.ts +154 -0
- package/dist/models/ScheduledTransactionDetail.js +120 -0
- package/dist/models/ScheduledTransactionDetailAllOf.d.ts +50 -0
- package/dist/models/ScheduledTransactionDetailAllOf.js +59 -0
- package/dist/models/ScheduledTransactionResponse.d.ts +32 -0
- package/dist/models/ScheduledTransactionResponse.js +51 -0
- package/dist/models/ScheduledTransactionResponseData.d.ts +32 -0
- package/dist/models/ScheduledTransactionResponseData.js +51 -0
- package/dist/models/ScheduledTransactionSummary.d.ts +129 -0
- package/dist/models/ScheduledTransactionSummary.js +109 -0
- package/dist/models/ScheduledTransactionsResponse.d.ts +32 -0
- package/dist/models/ScheduledTransactionsResponse.js +51 -0
- package/dist/models/ScheduledTransactionsResponseData.d.ts +38 -0
- package/dist/models/ScheduledTransactionsResponseData.js +54 -0
- package/dist/models/SubTransaction.d.ts +91 -0
- package/dist/models/SubTransaction.js +74 -0
- package/dist/models/TransactionDetail.d.ts +195 -0
- package/dist/models/TransactionDetail.js +136 -0
- package/dist/models/TransactionDetailAllOf.d.ts +50 -0
- package/dist/models/TransactionDetailAllOf.js +59 -0
- package/dist/models/TransactionResponse.d.ts +32 -0
- package/dist/models/TransactionResponse.js +51 -0
- package/dist/models/TransactionResponseData.d.ts +32 -0
- package/dist/models/TransactionResponseData.js +51 -0
- package/dist/models/TransactionSummary.d.ts +170 -0
- package/dist/models/TransactionSummary.js +125 -0
- package/dist/models/TransactionsImportResponse.d.ts +32 -0
- package/dist/models/TransactionsImportResponse.js +51 -0
- package/dist/models/TransactionsImportResponseData.d.ts +31 -0
- package/dist/models/TransactionsImportResponseData.js +50 -0
- package/dist/models/TransactionsResponse.d.ts +32 -0
- package/dist/models/TransactionsResponse.js +51 -0
- package/dist/models/TransactionsResponseData.d.ts +38 -0
- package/dist/models/TransactionsResponseData.js +54 -0
- package/dist/models/User.d.ts +31 -0
- package/dist/models/User.js +50 -0
- package/dist/models/UserResponse.d.ts +32 -0
- package/dist/models/UserResponse.js +51 -0
- package/dist/models/UserResponseData.d.ts +32 -0
- package/dist/models/UserResponseData.js +51 -0
- package/dist/models/index.d.ts +90 -0
- package/dist/models/index.js +104 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +336 -0
- package/package.json +4 -4
- package/dist/api.d.ts +0 -4639
- package/dist/api.js +0 -3757
- package/dist/browser/ynab.js.LICENSE.txt +0 -1
- package/dist/configuration.d.ts +0 -26
- package/dist/configuration.js +0 -22
- package/dist/esm/api.d.ts +0 -4639
- package/dist/esm/api.js +0 -4067
- package/dist/esm/configuration.d.ts +0 -26
- package/dist/esm/configuration.js +0 -20
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* YNAB API Endpoints
|
|
5
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __extends = (this && this.__extends) || (function () {
|
|
15
|
+
var extendStatics = function (d, b) {
|
|
16
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
19
|
+
return extendStatics(d, b);
|
|
20
|
+
};
|
|
21
|
+
return function (d, b) {
|
|
22
|
+
if (typeof b !== "function" && b !== null)
|
|
23
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
24
|
+
extendStatics(d, b);
|
|
25
|
+
function __() { this.constructor = d; }
|
|
26
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
30
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
33
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
34
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
35
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
39
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
40
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
41
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
|
+
function step(op) {
|
|
43
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
+
while (_) try {
|
|
45
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
46
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
|
+
switch (op[0]) {
|
|
48
|
+
case 0: case 1: t = op; break;
|
|
49
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
50
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
51
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
52
|
+
default:
|
|
53
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
54
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
55
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
56
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
57
|
+
if (t[2]) _.ops.pop();
|
|
58
|
+
_.trys.pop(); continue;
|
|
59
|
+
}
|
|
60
|
+
op = body.call(thisArg, _);
|
|
61
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
62
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
import * as runtime from '../runtime';
|
|
66
|
+
import { PayeeResponseFromJSON, PayeesResponseFromJSON, } from '../models/index';
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
var PayeesApi = /** @class */ (function (_super) {
|
|
71
|
+
__extends(PayeesApi, _super);
|
|
72
|
+
function PayeesApi() {
|
|
73
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Returns a single payee
|
|
77
|
+
* Single payee
|
|
78
|
+
*/
|
|
79
|
+
PayeesApi.prototype.getPayeeByIdRaw = function (requestParameters, initOverrides) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
81
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
82
|
+
return __generator(this, function (_a) {
|
|
83
|
+
switch (_a.label) {
|
|
84
|
+
case 0:
|
|
85
|
+
if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
|
|
86
|
+
throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling getPayeeById.');
|
|
87
|
+
}
|
|
88
|
+
if (requestParameters.payeeId === null || requestParameters.payeeId === undefined) {
|
|
89
|
+
throw new runtime.RequiredError('payeeId', 'Required parameter requestParameters.payeeId was null or undefined when calling getPayeeById.');
|
|
90
|
+
}
|
|
91
|
+
queryParameters = {};
|
|
92
|
+
headerParameters = {};
|
|
93
|
+
headerParameters['Accept'] = 'application/json';
|
|
94
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
95
|
+
token = this.configuration.accessToken;
|
|
96
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
97
|
+
case 1:
|
|
98
|
+
tokenString = _a.sent();
|
|
99
|
+
if (tokenString) {
|
|
100
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
101
|
+
}
|
|
102
|
+
_a.label = 2;
|
|
103
|
+
case 2: return [4 /*yield*/, this.request({
|
|
104
|
+
path: "/budgets/{budget_id}/payees/{payee_id}".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))).replace("{".concat("payee_id", "}"), encodeURIComponent(String(requestParameters.payeeId))),
|
|
105
|
+
method: 'GET',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
}, initOverrides)];
|
|
109
|
+
case 3:
|
|
110
|
+
response = _a.sent();
|
|
111
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return PayeeResponseFromJSON(jsonValue); })];
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Returns a single payee
|
|
118
|
+
* Single payee
|
|
119
|
+
*/
|
|
120
|
+
PayeesApi.prototype.getPayeeById = function (budgetId, payeeId, initOverrides) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
122
|
+
var response;
|
|
123
|
+
return __generator(this, function (_a) {
|
|
124
|
+
switch (_a.label) {
|
|
125
|
+
case 0: return [4 /*yield*/, this.getPayeeByIdRaw({ budgetId: budgetId, payeeId: payeeId }, initOverrides)];
|
|
126
|
+
case 1:
|
|
127
|
+
response = _a.sent();
|
|
128
|
+
return [4 /*yield*/, response.value()];
|
|
129
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Returns all payees
|
|
136
|
+
* List payees
|
|
137
|
+
*/
|
|
138
|
+
PayeesApi.prototype.getPayeesRaw = function (requestParameters, initOverrides) {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
140
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
141
|
+
return __generator(this, function (_a) {
|
|
142
|
+
switch (_a.label) {
|
|
143
|
+
case 0:
|
|
144
|
+
if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
|
|
145
|
+
throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling getPayees.');
|
|
146
|
+
}
|
|
147
|
+
queryParameters = {};
|
|
148
|
+
if (requestParameters.lastKnowledgeOfServer !== undefined) {
|
|
149
|
+
queryParameters['last_knowledge_of_server'] = requestParameters.lastKnowledgeOfServer;
|
|
150
|
+
}
|
|
151
|
+
headerParameters = {};
|
|
152
|
+
headerParameters['Accept'] = 'application/json';
|
|
153
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
154
|
+
token = this.configuration.accessToken;
|
|
155
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
156
|
+
case 1:
|
|
157
|
+
tokenString = _a.sent();
|
|
158
|
+
if (tokenString) {
|
|
159
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
160
|
+
}
|
|
161
|
+
_a.label = 2;
|
|
162
|
+
case 2: return [4 /*yield*/, this.request({
|
|
163
|
+
path: "/budgets/{budget_id}/payees".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))),
|
|
164
|
+
method: 'GET',
|
|
165
|
+
headers: headerParameters,
|
|
166
|
+
query: queryParameters,
|
|
167
|
+
}, initOverrides)];
|
|
168
|
+
case 3:
|
|
169
|
+
response = _a.sent();
|
|
170
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return PayeesResponseFromJSON(jsonValue); })];
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* Returns all payees
|
|
177
|
+
* List payees
|
|
178
|
+
*/
|
|
179
|
+
PayeesApi.prototype.getPayees = function (budgetId, lastKnowledgeOfServer, initOverrides) {
|
|
180
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
181
|
+
var response;
|
|
182
|
+
return __generator(this, function (_a) {
|
|
183
|
+
switch (_a.label) {
|
|
184
|
+
case 0: return [4 /*yield*/, this.getPayeesRaw({ budgetId: budgetId, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
|
|
185
|
+
case 1:
|
|
186
|
+
response = _a.sent();
|
|
187
|
+
return [4 /*yield*/, response.value()];
|
|
188
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
};
|
|
193
|
+
return PayeesApi;
|
|
194
|
+
}(runtime.BaseAPI));
|
|
195
|
+
export { PayeesApi };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YNAB API Endpoints
|
|
3
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { ScheduledTransactionResponse, ScheduledTransactionsResponse } from '../models/index';
|
|
14
|
+
export interface GetScheduledTransactionByIdRequest {
|
|
15
|
+
budgetId: string;
|
|
16
|
+
scheduledTransactionId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface GetScheduledTransactionsRequest {
|
|
19
|
+
budgetId: string;
|
|
20
|
+
lastKnowledgeOfServer?: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare class ScheduledTransactionsApi extends runtime.BaseAPI {
|
|
26
|
+
/**
|
|
27
|
+
* Returns a single scheduled transaction
|
|
28
|
+
* Single scheduled transaction
|
|
29
|
+
*/
|
|
30
|
+
getScheduledTransactionByIdRaw(requestParameters: GetScheduledTransactionByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTransactionResponse>>;
|
|
31
|
+
/**
|
|
32
|
+
* Returns a single scheduled transaction
|
|
33
|
+
* Single scheduled transaction
|
|
34
|
+
*/
|
|
35
|
+
getScheduledTransactionById(budgetId: string, scheduledTransactionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTransactionResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Returns all scheduled transactions
|
|
38
|
+
* List scheduled transactions
|
|
39
|
+
*/
|
|
40
|
+
getScheduledTransactionsRaw(requestParameters: GetScheduledTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTransactionsResponse>>;
|
|
41
|
+
/**
|
|
42
|
+
* Returns all scheduled transactions
|
|
43
|
+
* List scheduled transactions
|
|
44
|
+
*/
|
|
45
|
+
getScheduledTransactions(budgetId: string, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTransactionsResponse>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* YNAB API Endpoints
|
|
5
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __extends = (this && this.__extends) || (function () {
|
|
15
|
+
var extendStatics = function (d, b) {
|
|
16
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
19
|
+
return extendStatics(d, b);
|
|
20
|
+
};
|
|
21
|
+
return function (d, b) {
|
|
22
|
+
if (typeof b !== "function" && b !== null)
|
|
23
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
24
|
+
extendStatics(d, b);
|
|
25
|
+
function __() { this.constructor = d; }
|
|
26
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
30
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
33
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
34
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
35
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
39
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
40
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
41
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
|
+
function step(op) {
|
|
43
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
+
while (_) try {
|
|
45
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
46
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
|
+
switch (op[0]) {
|
|
48
|
+
case 0: case 1: t = op; break;
|
|
49
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
50
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
51
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
52
|
+
default:
|
|
53
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
54
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
55
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
56
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
57
|
+
if (t[2]) _.ops.pop();
|
|
58
|
+
_.trys.pop(); continue;
|
|
59
|
+
}
|
|
60
|
+
op = body.call(thisArg, _);
|
|
61
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
62
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
import * as runtime from '../runtime';
|
|
66
|
+
import { ScheduledTransactionResponseFromJSON, ScheduledTransactionsResponseFromJSON, } from '../models/index';
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
var ScheduledTransactionsApi = /** @class */ (function (_super) {
|
|
71
|
+
__extends(ScheduledTransactionsApi, _super);
|
|
72
|
+
function ScheduledTransactionsApi() {
|
|
73
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Returns a single scheduled transaction
|
|
77
|
+
* Single scheduled transaction
|
|
78
|
+
*/
|
|
79
|
+
ScheduledTransactionsApi.prototype.getScheduledTransactionByIdRaw = function (requestParameters, initOverrides) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
81
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
82
|
+
return __generator(this, function (_a) {
|
|
83
|
+
switch (_a.label) {
|
|
84
|
+
case 0:
|
|
85
|
+
if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
|
|
86
|
+
throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling getScheduledTransactionById.');
|
|
87
|
+
}
|
|
88
|
+
if (requestParameters.scheduledTransactionId === null || requestParameters.scheduledTransactionId === undefined) {
|
|
89
|
+
throw new runtime.RequiredError('scheduledTransactionId', 'Required parameter requestParameters.scheduledTransactionId was null or undefined when calling getScheduledTransactionById.');
|
|
90
|
+
}
|
|
91
|
+
queryParameters = {};
|
|
92
|
+
headerParameters = {};
|
|
93
|
+
headerParameters['Accept'] = 'application/json';
|
|
94
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
95
|
+
token = this.configuration.accessToken;
|
|
96
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
97
|
+
case 1:
|
|
98
|
+
tokenString = _a.sent();
|
|
99
|
+
if (tokenString) {
|
|
100
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
101
|
+
}
|
|
102
|
+
_a.label = 2;
|
|
103
|
+
case 2: return [4 /*yield*/, this.request({
|
|
104
|
+
path: "/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))).replace("{".concat("scheduled_transaction_id", "}"), encodeURIComponent(String(requestParameters.scheduledTransactionId))),
|
|
105
|
+
method: 'GET',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
}, initOverrides)];
|
|
109
|
+
case 3:
|
|
110
|
+
response = _a.sent();
|
|
111
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return ScheduledTransactionResponseFromJSON(jsonValue); })];
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Returns a single scheduled transaction
|
|
118
|
+
* Single scheduled transaction
|
|
119
|
+
*/
|
|
120
|
+
ScheduledTransactionsApi.prototype.getScheduledTransactionById = function (budgetId, scheduledTransactionId, initOverrides) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
122
|
+
var response;
|
|
123
|
+
return __generator(this, function (_a) {
|
|
124
|
+
switch (_a.label) {
|
|
125
|
+
case 0: return [4 /*yield*/, this.getScheduledTransactionByIdRaw({ budgetId: budgetId, scheduledTransactionId: scheduledTransactionId }, initOverrides)];
|
|
126
|
+
case 1:
|
|
127
|
+
response = _a.sent();
|
|
128
|
+
return [4 /*yield*/, response.value()];
|
|
129
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Returns all scheduled transactions
|
|
136
|
+
* List scheduled transactions
|
|
137
|
+
*/
|
|
138
|
+
ScheduledTransactionsApi.prototype.getScheduledTransactionsRaw = function (requestParameters, initOverrides) {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
140
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
141
|
+
return __generator(this, function (_a) {
|
|
142
|
+
switch (_a.label) {
|
|
143
|
+
case 0:
|
|
144
|
+
if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
|
|
145
|
+
throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling getScheduledTransactions.');
|
|
146
|
+
}
|
|
147
|
+
queryParameters = {};
|
|
148
|
+
if (requestParameters.lastKnowledgeOfServer !== undefined) {
|
|
149
|
+
queryParameters['last_knowledge_of_server'] = requestParameters.lastKnowledgeOfServer;
|
|
150
|
+
}
|
|
151
|
+
headerParameters = {};
|
|
152
|
+
headerParameters['Accept'] = 'application/json';
|
|
153
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
154
|
+
token = this.configuration.accessToken;
|
|
155
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
156
|
+
case 1:
|
|
157
|
+
tokenString = _a.sent();
|
|
158
|
+
if (tokenString) {
|
|
159
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
160
|
+
}
|
|
161
|
+
_a.label = 2;
|
|
162
|
+
case 2: return [4 /*yield*/, this.request({
|
|
163
|
+
path: "/budgets/{budget_id}/scheduled_transactions".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))),
|
|
164
|
+
method: 'GET',
|
|
165
|
+
headers: headerParameters,
|
|
166
|
+
query: queryParameters,
|
|
167
|
+
}, initOverrides)];
|
|
168
|
+
case 3:
|
|
169
|
+
response = _a.sent();
|
|
170
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return ScheduledTransactionsResponseFromJSON(jsonValue); })];
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* Returns all scheduled transactions
|
|
177
|
+
* List scheduled transactions
|
|
178
|
+
*/
|
|
179
|
+
ScheduledTransactionsApi.prototype.getScheduledTransactions = function (budgetId, lastKnowledgeOfServer, initOverrides) {
|
|
180
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
181
|
+
var response;
|
|
182
|
+
return __generator(this, function (_a) {
|
|
183
|
+
switch (_a.label) {
|
|
184
|
+
case 0: return [4 /*yield*/, this.getScheduledTransactionsRaw({ budgetId: budgetId, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
|
|
185
|
+
case 1:
|
|
186
|
+
response = _a.sent();
|
|
187
|
+
return [4 /*yield*/, response.value()];
|
|
188
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
};
|
|
193
|
+
return ScheduledTransactionsApi;
|
|
194
|
+
}(runtime.BaseAPI));
|
|
195
|
+
export { ScheduledTransactionsApi };
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YNAB API Endpoints
|
|
3
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { HybridTransactionsResponse, PatchTransactionsWrapper, PostTransactionsWrapper, PutTransactionWrapper, SaveTransactionsResponse, TransactionResponse, TransactionsImportResponse, TransactionsResponse } from '../models/index';
|
|
14
|
+
export interface CreateTransactionRequest {
|
|
15
|
+
budgetId: string;
|
|
16
|
+
data: PostTransactionsWrapper;
|
|
17
|
+
}
|
|
18
|
+
export interface DeleteTransactionRequest {
|
|
19
|
+
budgetId: string;
|
|
20
|
+
transactionId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface GetTransactionByIdRequest {
|
|
23
|
+
budgetId: string;
|
|
24
|
+
transactionId: string;
|
|
25
|
+
}
|
|
26
|
+
export interface GetTransactionsRequest {
|
|
27
|
+
budgetId: string;
|
|
28
|
+
sinceDate?: string;
|
|
29
|
+
type?: GetTransactionsTypeEnum;
|
|
30
|
+
lastKnowledgeOfServer?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface GetTransactionsByAccountRequest {
|
|
33
|
+
budgetId: string;
|
|
34
|
+
accountId: string;
|
|
35
|
+
sinceDate?: string;
|
|
36
|
+
type?: GetTransactionsByAccountTypeEnum;
|
|
37
|
+
lastKnowledgeOfServer?: number;
|
|
38
|
+
}
|
|
39
|
+
export interface GetTransactionsByCategoryRequest {
|
|
40
|
+
budgetId: string;
|
|
41
|
+
categoryId: string;
|
|
42
|
+
sinceDate?: string;
|
|
43
|
+
type?: GetTransactionsByCategoryTypeEnum;
|
|
44
|
+
lastKnowledgeOfServer?: number;
|
|
45
|
+
}
|
|
46
|
+
export interface GetTransactionsByPayeeRequest {
|
|
47
|
+
budgetId: string;
|
|
48
|
+
payeeId: string;
|
|
49
|
+
sinceDate?: string;
|
|
50
|
+
type?: GetTransactionsByPayeeTypeEnum;
|
|
51
|
+
lastKnowledgeOfServer?: number;
|
|
52
|
+
}
|
|
53
|
+
export interface ImportTransactionsRequest {
|
|
54
|
+
budgetId: string;
|
|
55
|
+
}
|
|
56
|
+
export interface UpdateTransactionRequest {
|
|
57
|
+
budgetId: string;
|
|
58
|
+
transactionId: string;
|
|
59
|
+
data: PutTransactionWrapper;
|
|
60
|
+
}
|
|
61
|
+
export interface UpdateTransactionsRequest {
|
|
62
|
+
budgetId: string;
|
|
63
|
+
data: PatchTransactionsWrapper;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
export declare class TransactionsApi extends runtime.BaseAPI {
|
|
69
|
+
/**
|
|
70
|
+
* 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 cannot be created on this endpoint.
|
|
71
|
+
* Create a single transaction or multiple transactions
|
|
72
|
+
*/
|
|
73
|
+
createTransactionRaw(requestParameters: CreateTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveTransactionsResponse>>;
|
|
74
|
+
/**
|
|
75
|
+
* 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 cannot be created on this endpoint.
|
|
76
|
+
* Create a single transaction or multiple transactions
|
|
77
|
+
*/
|
|
78
|
+
createTransaction(budgetId: string, data: PostTransactionsWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveTransactionsResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* Deletes a transaction
|
|
81
|
+
* Deletes an existing transaction
|
|
82
|
+
*/
|
|
83
|
+
deleteTransactionRaw(requestParameters: DeleteTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionResponse>>;
|
|
84
|
+
/**
|
|
85
|
+
* Deletes a transaction
|
|
86
|
+
* Deletes an existing transaction
|
|
87
|
+
*/
|
|
88
|
+
deleteTransaction(budgetId: string, transactionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionResponse>;
|
|
89
|
+
/**
|
|
90
|
+
* Returns a single transaction
|
|
91
|
+
* Single transaction
|
|
92
|
+
*/
|
|
93
|
+
getTransactionByIdRaw(requestParameters: GetTransactionByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionResponse>>;
|
|
94
|
+
/**
|
|
95
|
+
* Returns a single transaction
|
|
96
|
+
* Single transaction
|
|
97
|
+
*/
|
|
98
|
+
getTransactionById(budgetId: string, transactionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionResponse>;
|
|
99
|
+
/**
|
|
100
|
+
* Returns budget transactions
|
|
101
|
+
* List transactions
|
|
102
|
+
*/
|
|
103
|
+
getTransactionsRaw(requestParameters: GetTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionsResponse>>;
|
|
104
|
+
/**
|
|
105
|
+
* Returns budget transactions
|
|
106
|
+
* List transactions
|
|
107
|
+
*/
|
|
108
|
+
getTransactions(budgetId: string, sinceDate?: string, type?: GetTransactionsTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionsResponse>;
|
|
109
|
+
/**
|
|
110
|
+
* Returns all transactions for a specified account
|
|
111
|
+
* List account transactions
|
|
112
|
+
*/
|
|
113
|
+
getTransactionsByAccountRaw(requestParameters: GetTransactionsByAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionsResponse>>;
|
|
114
|
+
/**
|
|
115
|
+
* Returns all transactions for a specified account
|
|
116
|
+
* List account transactions
|
|
117
|
+
*/
|
|
118
|
+
getTransactionsByAccount(budgetId: string, accountId: string, sinceDate?: string, type?: GetTransactionsByAccountTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionsResponse>;
|
|
119
|
+
/**
|
|
120
|
+
* Returns all transactions for a specified category
|
|
121
|
+
* List category transactions
|
|
122
|
+
*/
|
|
123
|
+
getTransactionsByCategoryRaw(requestParameters: GetTransactionsByCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HybridTransactionsResponse>>;
|
|
124
|
+
/**
|
|
125
|
+
* Returns all transactions for a specified category
|
|
126
|
+
* List category transactions
|
|
127
|
+
*/
|
|
128
|
+
getTransactionsByCategory(budgetId: string, categoryId: string, sinceDate?: string, type?: GetTransactionsByCategoryTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HybridTransactionsResponse>;
|
|
129
|
+
/**
|
|
130
|
+
* Returns all transactions for a specified payee
|
|
131
|
+
* List payee transactions
|
|
132
|
+
*/
|
|
133
|
+
getTransactionsByPayeeRaw(requestParameters: GetTransactionsByPayeeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HybridTransactionsResponse>>;
|
|
134
|
+
/**
|
|
135
|
+
* Returns all transactions for a specified payee
|
|
136
|
+
* List payee transactions
|
|
137
|
+
*/
|
|
138
|
+
getTransactionsByPayee(budgetId: string, payeeId: string, sinceDate?: string, type?: GetTransactionsByPayeeTypeEnum, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HybridTransactionsResponse>;
|
|
139
|
+
/**
|
|
140
|
+
* Imports available transactions on all linked accounts for the given budget. 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.
|
|
141
|
+
* Import transactions
|
|
142
|
+
*/
|
|
143
|
+
importTransactionsRaw(requestParameters: ImportTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionsImportResponse>>;
|
|
144
|
+
/**
|
|
145
|
+
* Imports available transactions on all linked accounts for the given budget. 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.
|
|
146
|
+
* Import transactions
|
|
147
|
+
*/
|
|
148
|
+
importTransactions(budgetId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionsImportResponse>;
|
|
149
|
+
/**
|
|
150
|
+
* Updates a single transaction
|
|
151
|
+
* Updates an existing transaction
|
|
152
|
+
*/
|
|
153
|
+
updateTransactionRaw(requestParameters: UpdateTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionResponse>>;
|
|
154
|
+
/**
|
|
155
|
+
* Updates a single transaction
|
|
156
|
+
* Updates an existing transaction
|
|
157
|
+
*/
|
|
158
|
+
updateTransaction(budgetId: string, transactionId: string, data: PutTransactionWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionResponse>;
|
|
159
|
+
/**
|
|
160
|
+
* Updates multiple transactions, by `id` or `import_id`.
|
|
161
|
+
* Update multiple transactions
|
|
162
|
+
*/
|
|
163
|
+
updateTransactionsRaw(requestParameters: UpdateTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveTransactionsResponse>>;
|
|
164
|
+
/**
|
|
165
|
+
* Updates multiple transactions, by `id` or `import_id`.
|
|
166
|
+
* Update multiple transactions
|
|
167
|
+
*/
|
|
168
|
+
updateTransactions(budgetId: string, data: PatchTransactionsWrapper, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveTransactionsResponse>;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* @export
|
|
172
|
+
*/
|
|
173
|
+
export declare const GetTransactionsTypeEnum: {
|
|
174
|
+
readonly Uncategorized: "uncategorized";
|
|
175
|
+
readonly Unapproved: "unapproved";
|
|
176
|
+
};
|
|
177
|
+
export declare type GetTransactionsTypeEnum = typeof GetTransactionsTypeEnum[keyof typeof GetTransactionsTypeEnum];
|
|
178
|
+
/**
|
|
179
|
+
* @export
|
|
180
|
+
*/
|
|
181
|
+
export declare const GetTransactionsByAccountTypeEnum: {
|
|
182
|
+
readonly Uncategorized: "uncategorized";
|
|
183
|
+
readonly Unapproved: "unapproved";
|
|
184
|
+
};
|
|
185
|
+
export declare type GetTransactionsByAccountTypeEnum = typeof GetTransactionsByAccountTypeEnum[keyof typeof GetTransactionsByAccountTypeEnum];
|
|
186
|
+
/**
|
|
187
|
+
* @export
|
|
188
|
+
*/
|
|
189
|
+
export declare const GetTransactionsByCategoryTypeEnum: {
|
|
190
|
+
readonly Uncategorized: "uncategorized";
|
|
191
|
+
readonly Unapproved: "unapproved";
|
|
192
|
+
};
|
|
193
|
+
export declare type GetTransactionsByCategoryTypeEnum = typeof GetTransactionsByCategoryTypeEnum[keyof typeof GetTransactionsByCategoryTypeEnum];
|
|
194
|
+
/**
|
|
195
|
+
* @export
|
|
196
|
+
*/
|
|
197
|
+
export declare const GetTransactionsByPayeeTypeEnum: {
|
|
198
|
+
readonly Uncategorized: "uncategorized";
|
|
199
|
+
readonly Unapproved: "unapproved";
|
|
200
|
+
};
|
|
201
|
+
export declare type GetTransactionsByPayeeTypeEnum = typeof GetTransactionsByPayeeTypeEnum[keyof typeof GetTransactionsByPayeeTypeEnum];
|