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
package/dist/index.js
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
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.youneedabudget.com
|
|
6
|
-
*
|
|
7
|
-
* OpenAPI spec version: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
11
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
2
|
+
/* tslint:disable */
|
|
14
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
4
|
if (k2 === undefined) k2 = k;
|
|
16
5
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
@@ -23,30 +12,33 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
23
12
|
};
|
|
24
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
14
|
exports.api = exports.utils = exports.API = void 0;
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const transactionsApi_1 = require("./transactionsApi");
|
|
15
|
+
const apis = require("./apis");
|
|
16
|
+
const CustomTransactionsApi_1 = require("./apis/CustomTransactionsApi");
|
|
29
17
|
const utils_1 = require("./utils");
|
|
30
18
|
exports.utils = utils_1.default;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
19
|
+
const runtime_1 = require("./runtime");
|
|
20
|
+
/* eslint-disable */
|
|
21
|
+
__exportStar(require("./runtime"), exports);
|
|
22
|
+
__exportStar(require("./apis"), exports);
|
|
23
|
+
__exportStar(require("./models"), exports);
|
|
35
24
|
class api {
|
|
36
25
|
/**
|
|
37
26
|
*
|
|
38
27
|
* @param accessToken The access token used for authentication
|
|
39
28
|
* @param endpointUrl The API endpoint URL (Optional)
|
|
40
29
|
*/
|
|
41
|
-
constructor(accessToken, endpointUrl =
|
|
42
|
-
this._configuration = new
|
|
30
|
+
constructor(accessToken, endpointUrl = runtime_1.BASE_PATH) {
|
|
31
|
+
this._configuration = new runtime_1.Configuration({
|
|
32
|
+
accessToken,
|
|
33
|
+
basePath: endpointUrl,
|
|
34
|
+
});
|
|
43
35
|
}
|
|
44
36
|
/**
|
|
45
37
|
* /user endpoints interface
|
|
46
38
|
*/
|
|
47
39
|
get user() {
|
|
48
40
|
if (!this._user) {
|
|
49
|
-
this._user = new
|
|
41
|
+
this._user = new apis.UserApi(this._configuration);
|
|
50
42
|
}
|
|
51
43
|
return this._user;
|
|
52
44
|
}
|
|
@@ -55,7 +47,7 @@ class api {
|
|
|
55
47
|
*/
|
|
56
48
|
get budgets() {
|
|
57
49
|
if (!this._budgets) {
|
|
58
|
-
this._budgets = new
|
|
50
|
+
this._budgets = new apis.BudgetsApi(this._configuration);
|
|
59
51
|
}
|
|
60
52
|
return this._budgets;
|
|
61
53
|
}
|
|
@@ -64,7 +56,7 @@ class api {
|
|
|
64
56
|
*/
|
|
65
57
|
get accounts() {
|
|
66
58
|
if (!this._accounts) {
|
|
67
|
-
this._accounts = new
|
|
59
|
+
this._accounts = new apis.AccountsApi(this._configuration);
|
|
68
60
|
}
|
|
69
61
|
return this._accounts;
|
|
70
62
|
}
|
|
@@ -73,7 +65,7 @@ class api {
|
|
|
73
65
|
*/
|
|
74
66
|
get categories() {
|
|
75
67
|
if (!this._categories) {
|
|
76
|
-
this._categories = new
|
|
68
|
+
this._categories = new apis.CategoriesApi(this._configuration);
|
|
77
69
|
}
|
|
78
70
|
return this._categories;
|
|
79
71
|
}
|
|
@@ -82,7 +74,7 @@ class api {
|
|
|
82
74
|
*/
|
|
83
75
|
get months() {
|
|
84
76
|
if (!this._months) {
|
|
85
|
-
this._months = new
|
|
77
|
+
this._months = new apis.MonthsApi(this._configuration);
|
|
86
78
|
}
|
|
87
79
|
return this._months;
|
|
88
80
|
}
|
|
@@ -91,7 +83,7 @@ class api {
|
|
|
91
83
|
*/
|
|
92
84
|
get payees() {
|
|
93
85
|
if (!this._payees) {
|
|
94
|
-
this._payees = new
|
|
86
|
+
this._payees = new apis.PayeesApi(this._configuration);
|
|
95
87
|
}
|
|
96
88
|
return this._payees;
|
|
97
89
|
}
|
|
@@ -100,7 +92,7 @@ class api {
|
|
|
100
92
|
*/
|
|
101
93
|
get payeeLocations() {
|
|
102
94
|
if (!this._payeeLocations) {
|
|
103
|
-
this._payeeLocations = new
|
|
95
|
+
this._payeeLocations = new apis.PayeeLocationsApi(this._configuration);
|
|
104
96
|
}
|
|
105
97
|
return this._payeeLocations;
|
|
106
98
|
}
|
|
@@ -109,7 +101,7 @@ class api {
|
|
|
109
101
|
*/
|
|
110
102
|
get transactions() {
|
|
111
103
|
if (!this._transactions) {
|
|
112
|
-
this._transactions = new
|
|
104
|
+
this._transactions = new CustomTransactionsApi_1.CustomTransactionsApi(this._configuration);
|
|
113
105
|
}
|
|
114
106
|
return this._transactions;
|
|
115
107
|
}
|
|
@@ -118,7 +110,7 @@ class api {
|
|
|
118
110
|
*/
|
|
119
111
|
get scheduledTransactions() {
|
|
120
112
|
if (!this._scheduledTransactions) {
|
|
121
|
-
this._scheduledTransactions = new
|
|
113
|
+
this._scheduledTransactions = new apis.ScheduledTransactionsApi(this._configuration);
|
|
122
114
|
}
|
|
123
115
|
return this._scheduledTransactions;
|
|
124
116
|
}
|
|
@@ -0,0 +1,140 @@
|
|
|
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 type { AccountType } from './AccountType';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Account
|
|
17
|
+
*/
|
|
18
|
+
export interface Account {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Account
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Account
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {AccountType}
|
|
34
|
+
* @memberof Account
|
|
35
|
+
*/
|
|
36
|
+
type: AccountType;
|
|
37
|
+
/**
|
|
38
|
+
* Whether this account is on budget or not
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof Account
|
|
41
|
+
*/
|
|
42
|
+
on_budget: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Whether this account is closed or not
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof Account
|
|
47
|
+
*/
|
|
48
|
+
closed: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof Account
|
|
53
|
+
*/
|
|
54
|
+
note?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* The current balance of the account in milliunits format
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof Account
|
|
59
|
+
*/
|
|
60
|
+
balance: number;
|
|
61
|
+
/**
|
|
62
|
+
* The current cleared balance of the account in milliunits format
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof Account
|
|
65
|
+
*/
|
|
66
|
+
cleared_balance: number;
|
|
67
|
+
/**
|
|
68
|
+
* The current uncleared balance of the account in milliunits format
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof Account
|
|
71
|
+
*/
|
|
72
|
+
uncleared_balance: number;
|
|
73
|
+
/**
|
|
74
|
+
* The payee id which should be used when transferring to this account
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof Account
|
|
77
|
+
*/
|
|
78
|
+
transfer_payee_id: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Whether or not the account is linked to a financial institution for automatic transaction import.
|
|
81
|
+
* @type {boolean}
|
|
82
|
+
* @memberof Account
|
|
83
|
+
*/
|
|
84
|
+
direct_import_linked?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* If an account linked to a financial institution (direct_import_linked=true) and the linked connection is not in a healthy state, this will be true.
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @memberof Account
|
|
89
|
+
*/
|
|
90
|
+
direct_import_in_error?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* A date/time specifying when the account was last reconciled.
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof Account
|
|
95
|
+
*/
|
|
96
|
+
last_reconciled_at?: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* The original debt/loan account balance, specified in milliunits format.
|
|
99
|
+
* @type {number}
|
|
100
|
+
* @memberof Account
|
|
101
|
+
*/
|
|
102
|
+
debt_original_balance?: number | null;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {{ [key: string]: number; }}
|
|
106
|
+
* @memberof Account
|
|
107
|
+
*/
|
|
108
|
+
debt_interest_rates?: {
|
|
109
|
+
[key: string]: number;
|
|
110
|
+
} | null;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {{ [key: string]: number; }}
|
|
114
|
+
* @memberof Account
|
|
115
|
+
*/
|
|
116
|
+
debt_minimum_payments?: {
|
|
117
|
+
[key: string]: number;
|
|
118
|
+
} | null;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {{ [key: string]: number; }}
|
|
122
|
+
* @memberof Account
|
|
123
|
+
*/
|
|
124
|
+
debt_escrow_amounts?: {
|
|
125
|
+
[key: string]: number;
|
|
126
|
+
} | null;
|
|
127
|
+
/**
|
|
128
|
+
* Whether or not the account has been deleted. Deleted accounts will only be included in delta requests.
|
|
129
|
+
* @type {boolean}
|
|
130
|
+
* @memberof Account
|
|
131
|
+
*/
|
|
132
|
+
deleted: boolean;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Check if a given object implements the Account interface.
|
|
136
|
+
*/
|
|
137
|
+
export declare function instanceOfAccount(value: object): boolean;
|
|
138
|
+
export declare function AccountFromJSON(json: any): Account;
|
|
139
|
+
export declare function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account;
|
|
140
|
+
export declare function AccountToJSON(value?: Account | null): any;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* YNAB API Endpoints
|
|
6
|
+
* 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
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AccountToJSON = exports.AccountFromJSONTyped = exports.AccountFromJSON = exports.instanceOfAccount = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const AccountType_1 = require("./AccountType");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the Account interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfAccount(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "id" in value;
|
|
25
|
+
isInstance = isInstance && "name" in value;
|
|
26
|
+
isInstance = isInstance && "type" in value;
|
|
27
|
+
isInstance = isInstance && "on_budget" in value;
|
|
28
|
+
isInstance = isInstance && "closed" in value;
|
|
29
|
+
isInstance = isInstance && "balance" in value;
|
|
30
|
+
isInstance = isInstance && "cleared_balance" in value;
|
|
31
|
+
isInstance = isInstance && "uncleared_balance" in value;
|
|
32
|
+
isInstance = isInstance && "transfer_payee_id" in value;
|
|
33
|
+
isInstance = isInstance && "deleted" in value;
|
|
34
|
+
return isInstance;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfAccount = instanceOfAccount;
|
|
37
|
+
function AccountFromJSON(json) {
|
|
38
|
+
return AccountFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.AccountFromJSON = AccountFromJSON;
|
|
41
|
+
function AccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if ((json === undefined) || (json === null)) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': json['id'],
|
|
47
|
+
'name': json['name'],
|
|
48
|
+
'type': (0, AccountType_1.AccountTypeFromJSON)(json['type']),
|
|
49
|
+
'on_budget': json['on_budget'],
|
|
50
|
+
'closed': json['closed'],
|
|
51
|
+
'note': !(0, runtime_1.exists)(json, 'note') ? undefined : json['note'],
|
|
52
|
+
'balance': json['balance'],
|
|
53
|
+
'cleared_balance': json['cleared_balance'],
|
|
54
|
+
'uncleared_balance': json['uncleared_balance'],
|
|
55
|
+
'transfer_payee_id': json['transfer_payee_id'],
|
|
56
|
+
'direct_import_linked': !(0, runtime_1.exists)(json, 'direct_import_linked') ? undefined : json['direct_import_linked'],
|
|
57
|
+
'direct_import_in_error': !(0, runtime_1.exists)(json, 'direct_import_in_error') ? undefined : json['direct_import_in_error'],
|
|
58
|
+
'last_reconciled_at': !(0, runtime_1.exists)(json, 'last_reconciled_at') ? undefined : json['last_reconciled_at'],
|
|
59
|
+
'debt_original_balance': !(0, runtime_1.exists)(json, 'debt_original_balance') ? undefined : json['debt_original_balance'],
|
|
60
|
+
'debt_interest_rates': !(0, runtime_1.exists)(json, 'debt_interest_rates') ? undefined : json['debt_interest_rates'],
|
|
61
|
+
'debt_minimum_payments': !(0, runtime_1.exists)(json, 'debt_minimum_payments') ? undefined : json['debt_minimum_payments'],
|
|
62
|
+
'debt_escrow_amounts': !(0, runtime_1.exists)(json, 'debt_escrow_amounts') ? undefined : json['debt_escrow_amounts'],
|
|
63
|
+
'deleted': json['deleted'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
exports.AccountFromJSONTyped = AccountFromJSONTyped;
|
|
67
|
+
function AccountToJSON(value) {
|
|
68
|
+
if (value === undefined) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
if (value === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'id': value.id,
|
|
76
|
+
'name': value.name,
|
|
77
|
+
'type': (0, AccountType_1.AccountTypeToJSON)(value.type),
|
|
78
|
+
'on_budget': value.on_budget,
|
|
79
|
+
'closed': value.closed,
|
|
80
|
+
'note': value.note,
|
|
81
|
+
'balance': value.balance,
|
|
82
|
+
'cleared_balance': value.cleared_balance,
|
|
83
|
+
'uncleared_balance': value.uncleared_balance,
|
|
84
|
+
'transfer_payee_id': value.transfer_payee_id,
|
|
85
|
+
'direct_import_linked': value.direct_import_linked,
|
|
86
|
+
'direct_import_in_error': value.direct_import_in_error,
|
|
87
|
+
'last_reconciled_at': value.last_reconciled_at,
|
|
88
|
+
'debt_original_balance': value.debt_original_balance,
|
|
89
|
+
'debt_interest_rates': value.debt_interest_rates,
|
|
90
|
+
'debt_minimum_payments': value.debt_minimum_payments,
|
|
91
|
+
'debt_escrow_amounts': value.debt_escrow_amounts,
|
|
92
|
+
'deleted': value.deleted,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
exports.AccountToJSON = AccountToJSON;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 type { AccountResponseData } from './AccountResponseData';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AccountResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface AccountResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {AccountResponseData}
|
|
22
|
+
* @memberof AccountResponse
|
|
23
|
+
*/
|
|
24
|
+
data: AccountResponseData;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AccountResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAccountResponse(value: object): boolean;
|
|
30
|
+
export declare function AccountResponseFromJSON(json: any): AccountResponse;
|
|
31
|
+
export declare function AccountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountResponse;
|
|
32
|
+
export declare function AccountResponseToJSON(value?: AccountResponse | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* YNAB API Endpoints
|
|
6
|
+
* 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
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AccountResponseToJSON = exports.AccountResponseFromJSONTyped = exports.AccountResponseFromJSON = exports.instanceOfAccountResponse = void 0;
|
|
17
|
+
const AccountResponseData_1 = require("./AccountResponseData");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the AccountResponse interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfAccountResponse(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "data" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfAccountResponse = instanceOfAccountResponse;
|
|
27
|
+
function AccountResponseFromJSON(json) {
|
|
28
|
+
return AccountResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.AccountResponseFromJSON = AccountResponseFromJSON;
|
|
31
|
+
function AccountResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': (0, AccountResponseData_1.AccountResponseDataFromJSON)(json['data']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.AccountResponseFromJSONTyped = AccountResponseFromJSONTyped;
|
|
40
|
+
function AccountResponseToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': (0, AccountResponseData_1.AccountResponseDataToJSON)(value.data),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.AccountResponseToJSON = AccountResponseToJSON;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 type { Account } from './Account';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AccountResponseData
|
|
17
|
+
*/
|
|
18
|
+
export interface AccountResponseData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Account}
|
|
22
|
+
* @memberof AccountResponseData
|
|
23
|
+
*/
|
|
24
|
+
account: Account;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AccountResponseData interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAccountResponseData(value: object): boolean;
|
|
30
|
+
export declare function AccountResponseDataFromJSON(json: any): AccountResponseData;
|
|
31
|
+
export declare function AccountResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountResponseData;
|
|
32
|
+
export declare function AccountResponseDataToJSON(value?: AccountResponseData | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* YNAB API Endpoints
|
|
6
|
+
* 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
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AccountResponseDataToJSON = exports.AccountResponseDataFromJSONTyped = exports.AccountResponseDataFromJSON = exports.instanceOfAccountResponseData = void 0;
|
|
17
|
+
const Account_1 = require("./Account");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the AccountResponseData interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfAccountResponseData(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "account" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfAccountResponseData = instanceOfAccountResponseData;
|
|
27
|
+
function AccountResponseDataFromJSON(json) {
|
|
28
|
+
return AccountResponseDataFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.AccountResponseDataFromJSON = AccountResponseDataFromJSON;
|
|
31
|
+
function AccountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'account': (0, Account_1.AccountFromJSON)(json['account']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.AccountResponseDataFromJSONTyped = AccountResponseDataFromJSONTyped;
|
|
40
|
+
function AccountResponseDataToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'account': (0, Account_1.AccountToJSON)(value.account),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.AccountResponseDataToJSON = AccountResponseDataToJSON;
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* The type of account
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const AccountType: {
|
|
17
|
+
readonly Checking: "checking";
|
|
18
|
+
readonly Savings: "savings";
|
|
19
|
+
readonly Cash: "cash";
|
|
20
|
+
readonly CreditCard: "creditCard";
|
|
21
|
+
readonly LineOfCredit: "lineOfCredit";
|
|
22
|
+
readonly OtherAsset: "otherAsset";
|
|
23
|
+
readonly OtherLiability: "otherLiability";
|
|
24
|
+
readonly Mortgage: "mortgage";
|
|
25
|
+
readonly AutoLoan: "autoLoan";
|
|
26
|
+
readonly StudentLoan: "studentLoan";
|
|
27
|
+
readonly PersonalLoan: "personalLoan";
|
|
28
|
+
readonly MedicalDebt: "medicalDebt";
|
|
29
|
+
readonly OtherDebt: "otherDebt";
|
|
30
|
+
};
|
|
31
|
+
export declare type AccountType = typeof AccountType[keyof typeof AccountType];
|
|
32
|
+
export declare function AccountTypeFromJSON(json: any): AccountType;
|
|
33
|
+
export declare function AccountTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountType;
|
|
34
|
+
export declare function AccountTypeToJSON(value?: AccountType | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* YNAB API Endpoints
|
|
6
|
+
* 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
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AccountTypeToJSON = exports.AccountTypeFromJSONTyped = exports.AccountTypeFromJSON = exports.AccountType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* The type of account
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.AccountType = {
|
|
22
|
+
Checking: 'checking',
|
|
23
|
+
Savings: 'savings',
|
|
24
|
+
Cash: 'cash',
|
|
25
|
+
CreditCard: 'creditCard',
|
|
26
|
+
LineOfCredit: 'lineOfCredit',
|
|
27
|
+
OtherAsset: 'otherAsset',
|
|
28
|
+
OtherLiability: 'otherLiability',
|
|
29
|
+
Mortgage: 'mortgage',
|
|
30
|
+
AutoLoan: 'autoLoan',
|
|
31
|
+
StudentLoan: 'studentLoan',
|
|
32
|
+
PersonalLoan: 'personalLoan',
|
|
33
|
+
MedicalDebt: 'medicalDebt',
|
|
34
|
+
OtherDebt: 'otherDebt'
|
|
35
|
+
};
|
|
36
|
+
function AccountTypeFromJSON(json) {
|
|
37
|
+
return AccountTypeFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
exports.AccountTypeFromJSON = AccountTypeFromJSON;
|
|
40
|
+
function AccountTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
exports.AccountTypeFromJSONTyped = AccountTypeFromJSONTyped;
|
|
44
|
+
function AccountTypeToJSON(value) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
exports.AccountTypeToJSON = AccountTypeToJSON;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 type { AccountsResponseData } from './AccountsResponseData';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AccountsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface AccountsResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {AccountsResponseData}
|
|
22
|
+
* @memberof AccountsResponse
|
|
23
|
+
*/
|
|
24
|
+
data: AccountsResponseData;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AccountsResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAccountsResponse(value: object): boolean;
|
|
30
|
+
export declare function AccountsResponseFromJSON(json: any): AccountsResponse;
|
|
31
|
+
export declare function AccountsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountsResponse;
|
|
32
|
+
export declare function AccountsResponseToJSON(value?: AccountsResponse | null): any;
|