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,93 @@
|
|
|
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.SaveTransactionWithOptionalFieldsToJSON = exports.SaveTransactionWithOptionalFieldsFromJSONTyped = exports.SaveTransactionWithOptionalFieldsFromJSON = exports.instanceOfSaveTransactionWithOptionalFields = exports.SaveTransactionWithOptionalFieldsFlagColorEnum = exports.SaveTransactionWithOptionalFieldsClearedEnum = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const SaveSubTransaction_1 = require("./SaveSubTransaction");
|
|
19
|
+
/**
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
exports.SaveTransactionWithOptionalFieldsClearedEnum = {
|
|
23
|
+
Cleared: 'cleared',
|
|
24
|
+
Uncleared: 'uncleared',
|
|
25
|
+
Reconciled: 'reconciled'
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
exports.SaveTransactionWithOptionalFieldsFlagColorEnum = {
|
|
31
|
+
Red: 'red',
|
|
32
|
+
Orange: 'orange',
|
|
33
|
+
Yellow: 'yellow',
|
|
34
|
+
Green: 'green',
|
|
35
|
+
Blue: 'blue',
|
|
36
|
+
Purple: 'purple',
|
|
37
|
+
Null: 'null'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the SaveTransactionWithOptionalFields interface.
|
|
41
|
+
*/
|
|
42
|
+
function instanceOfSaveTransactionWithOptionalFields(value) {
|
|
43
|
+
let isInstance = true;
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
exports.instanceOfSaveTransactionWithOptionalFields = instanceOfSaveTransactionWithOptionalFields;
|
|
47
|
+
function SaveTransactionWithOptionalFieldsFromJSON(json) {
|
|
48
|
+
return SaveTransactionWithOptionalFieldsFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
exports.SaveTransactionWithOptionalFieldsFromJSON = SaveTransactionWithOptionalFieldsFromJSON;
|
|
51
|
+
function SaveTransactionWithOptionalFieldsFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'account_id': !(0, runtime_1.exists)(json, 'account_id') ? undefined : json['account_id'],
|
|
57
|
+
'date': !(0, runtime_1.exists)(json, 'date') ? undefined : json['date'],
|
|
58
|
+
'amount': !(0, runtime_1.exists)(json, 'amount') ? undefined : json['amount'],
|
|
59
|
+
'payee_id': !(0, runtime_1.exists)(json, 'payee_id') ? undefined : json['payee_id'],
|
|
60
|
+
'payee_name': !(0, runtime_1.exists)(json, 'payee_name') ? undefined : json['payee_name'],
|
|
61
|
+
'category_id': !(0, runtime_1.exists)(json, 'category_id') ? undefined : json['category_id'],
|
|
62
|
+
'memo': !(0, runtime_1.exists)(json, 'memo') ? undefined : json['memo'],
|
|
63
|
+
'cleared': !(0, runtime_1.exists)(json, 'cleared') ? undefined : json['cleared'],
|
|
64
|
+
'approved': !(0, runtime_1.exists)(json, 'approved') ? undefined : json['approved'],
|
|
65
|
+
'flag_color': !(0, runtime_1.exists)(json, 'flag_color') ? undefined : json['flag_color'],
|
|
66
|
+
'import_id': !(0, runtime_1.exists)(json, 'import_id') ? undefined : json['import_id'],
|
|
67
|
+
'subtransactions': !(0, runtime_1.exists)(json, 'subtransactions') ? undefined : (json['subtransactions'].map(SaveSubTransaction_1.SaveSubTransactionFromJSON)),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
exports.SaveTransactionWithOptionalFieldsFromJSONTyped = SaveTransactionWithOptionalFieldsFromJSONTyped;
|
|
71
|
+
function SaveTransactionWithOptionalFieldsToJSON(value) {
|
|
72
|
+
if (value === undefined) {
|
|
73
|
+
return undefined;
|
|
74
|
+
}
|
|
75
|
+
if (value === null) {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'account_id': value.account_id,
|
|
80
|
+
'date': value.date,
|
|
81
|
+
'amount': value.amount,
|
|
82
|
+
'payee_id': value.payee_id,
|
|
83
|
+
'payee_name': value.payee_name,
|
|
84
|
+
'category_id': value.category_id,
|
|
85
|
+
'memo': value.memo,
|
|
86
|
+
'cleared': value.cleared,
|
|
87
|
+
'approved': value.approved,
|
|
88
|
+
'flag_color': value.flag_color,
|
|
89
|
+
'import_id': value.import_id,
|
|
90
|
+
'subtransactions': value.subtransactions === undefined ? undefined : (value.subtransactions.map(SaveSubTransaction_1.SaveSubTransactionToJSON)),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
exports.SaveTransactionWithOptionalFieldsToJSON = SaveTransactionWithOptionalFieldsToJSON;
|
|
@@ -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 { SaveTransactionsResponseData } from './SaveTransactionsResponseData';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SaveTransactionsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface SaveTransactionsResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {SaveTransactionsResponseData}
|
|
22
|
+
* @memberof SaveTransactionsResponse
|
|
23
|
+
*/
|
|
24
|
+
data: SaveTransactionsResponseData;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the SaveTransactionsResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfSaveTransactionsResponse(value: object): boolean;
|
|
30
|
+
export declare function SaveTransactionsResponseFromJSON(json: any): SaveTransactionsResponse;
|
|
31
|
+
export declare function SaveTransactionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveTransactionsResponse;
|
|
32
|
+
export declare function SaveTransactionsResponseToJSON(value?: SaveTransactionsResponse | 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.SaveTransactionsResponseToJSON = exports.SaveTransactionsResponseFromJSONTyped = exports.SaveTransactionsResponseFromJSON = exports.instanceOfSaveTransactionsResponse = void 0;
|
|
17
|
+
const SaveTransactionsResponseData_1 = require("./SaveTransactionsResponseData");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the SaveTransactionsResponse interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfSaveTransactionsResponse(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "data" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfSaveTransactionsResponse = instanceOfSaveTransactionsResponse;
|
|
27
|
+
function SaveTransactionsResponseFromJSON(json) {
|
|
28
|
+
return SaveTransactionsResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.SaveTransactionsResponseFromJSON = SaveTransactionsResponseFromJSON;
|
|
31
|
+
function SaveTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': (0, SaveTransactionsResponseData_1.SaveTransactionsResponseDataFromJSON)(json['data']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.SaveTransactionsResponseFromJSONTyped = SaveTransactionsResponseFromJSONTyped;
|
|
40
|
+
function SaveTransactionsResponseToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': (0, SaveTransactionsResponseData_1.SaveTransactionsResponseDataToJSON)(value.data),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.SaveTransactionsResponseToJSON = SaveTransactionsResponseToJSON;
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { TransactionDetail } from './TransactionDetail';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SaveTransactionsResponseData
|
|
17
|
+
*/
|
|
18
|
+
export interface SaveTransactionsResponseData {
|
|
19
|
+
/**
|
|
20
|
+
* The transaction ids that were saved
|
|
21
|
+
* @type {Array<string>}
|
|
22
|
+
* @memberof SaveTransactionsResponseData
|
|
23
|
+
*/
|
|
24
|
+
transaction_ids: Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {TransactionDetail}
|
|
28
|
+
* @memberof SaveTransactionsResponseData
|
|
29
|
+
*/
|
|
30
|
+
transaction?: TransactionDetail;
|
|
31
|
+
/**
|
|
32
|
+
* If multiple transactions were specified, the transactions that were saved
|
|
33
|
+
* @type {Array<TransactionDetail>}
|
|
34
|
+
* @memberof SaveTransactionsResponseData
|
|
35
|
+
*/
|
|
36
|
+
transactions?: Array<TransactionDetail>;
|
|
37
|
+
/**
|
|
38
|
+
* If multiple transactions were specified, a list of import_ids that were not created because of an existing `import_id` found on the same account
|
|
39
|
+
* @type {Array<string>}
|
|
40
|
+
* @memberof SaveTransactionsResponseData
|
|
41
|
+
*/
|
|
42
|
+
duplicate_import_ids?: Array<string>;
|
|
43
|
+
/**
|
|
44
|
+
* The knowledge of the server
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof SaveTransactionsResponseData
|
|
47
|
+
*/
|
|
48
|
+
server_knowledge: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the SaveTransactionsResponseData interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfSaveTransactionsResponseData(value: object): boolean;
|
|
54
|
+
export declare function SaveTransactionsResponseDataFromJSON(json: any): SaveTransactionsResponseData;
|
|
55
|
+
export declare function SaveTransactionsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveTransactionsResponseData;
|
|
56
|
+
export declare function SaveTransactionsResponseDataToJSON(value?: SaveTransactionsResponseData | null): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
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.SaveTransactionsResponseDataToJSON = exports.SaveTransactionsResponseDataFromJSONTyped = exports.SaveTransactionsResponseDataFromJSON = exports.instanceOfSaveTransactionsResponseData = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const TransactionDetail_1 = require("./TransactionDetail");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the SaveTransactionsResponseData interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfSaveTransactionsResponseData(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "transaction_ids" in value;
|
|
25
|
+
isInstance = isInstance && "server_knowledge" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfSaveTransactionsResponseData = instanceOfSaveTransactionsResponseData;
|
|
29
|
+
function SaveTransactionsResponseDataFromJSON(json) {
|
|
30
|
+
return SaveTransactionsResponseDataFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.SaveTransactionsResponseDataFromJSON = SaveTransactionsResponseDataFromJSON;
|
|
33
|
+
function SaveTransactionsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'transaction_ids': json['transaction_ids'],
|
|
39
|
+
'transaction': !(0, runtime_1.exists)(json, 'transaction') ? undefined : (0, TransactionDetail_1.TransactionDetailFromJSON)(json['transaction']),
|
|
40
|
+
'transactions': !(0, runtime_1.exists)(json, 'transactions') ? undefined : (json['transactions'].map(TransactionDetail_1.TransactionDetailFromJSON)),
|
|
41
|
+
'duplicate_import_ids': !(0, runtime_1.exists)(json, 'duplicate_import_ids') ? undefined : json['duplicate_import_ids'],
|
|
42
|
+
'server_knowledge': json['server_knowledge'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.SaveTransactionsResponseDataFromJSONTyped = SaveTransactionsResponseDataFromJSONTyped;
|
|
46
|
+
function SaveTransactionsResponseDataToJSON(value) {
|
|
47
|
+
if (value === undefined) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
if (value === null) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'transaction_ids': value.transaction_ids,
|
|
55
|
+
'transaction': (0, TransactionDetail_1.TransactionDetailToJSON)(value.transaction),
|
|
56
|
+
'transactions': value.transactions === undefined ? undefined : (value.transactions.map(TransactionDetail_1.TransactionDetailToJSON)),
|
|
57
|
+
'duplicate_import_ids': value.duplicate_import_ids,
|
|
58
|
+
'server_knowledge': value.server_knowledge,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
exports.SaveTransactionsResponseDataToJSON = SaveTransactionsResponseDataToJSON;
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ScheduledSubTransaction
|
|
16
|
+
*/
|
|
17
|
+
export interface ScheduledSubTransaction {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ScheduledSubTransaction
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ScheduledSubTransaction
|
|
28
|
+
*/
|
|
29
|
+
scheduled_transaction_id: string;
|
|
30
|
+
/**
|
|
31
|
+
* The scheduled subtransaction amount in milliunits format
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ScheduledSubTransaction
|
|
34
|
+
*/
|
|
35
|
+
amount: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ScheduledSubTransaction
|
|
40
|
+
*/
|
|
41
|
+
memo?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ScheduledSubTransaction
|
|
46
|
+
*/
|
|
47
|
+
payee_id?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ScheduledSubTransaction
|
|
52
|
+
*/
|
|
53
|
+
category_id?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* If a transfer, the account_id which the scheduled subtransaction transfers to
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ScheduledSubTransaction
|
|
58
|
+
*/
|
|
59
|
+
transfer_account_id?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* Whether or not the scheduled subtransaction has been deleted. Deleted scheduled subtransactions will only be included in delta requests.
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof ScheduledSubTransaction
|
|
64
|
+
*/
|
|
65
|
+
deleted: boolean;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the ScheduledSubTransaction interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfScheduledSubTransaction(value: object): boolean;
|
|
71
|
+
export declare function ScheduledSubTransactionFromJSON(json: any): ScheduledSubTransaction;
|
|
72
|
+
export declare function ScheduledSubTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledSubTransaction;
|
|
73
|
+
export declare function ScheduledSubTransactionToJSON(value?: ScheduledSubTransaction | null): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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.ScheduledSubTransactionToJSON = exports.ScheduledSubTransactionFromJSONTyped = exports.ScheduledSubTransactionFromJSON = exports.instanceOfScheduledSubTransaction = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ScheduledSubTransaction interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfScheduledSubTransaction(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "id" in value;
|
|
24
|
+
isInstance = isInstance && "scheduled_transaction_id" in value;
|
|
25
|
+
isInstance = isInstance && "amount" in value;
|
|
26
|
+
isInstance = isInstance && "deleted" in value;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfScheduledSubTransaction = instanceOfScheduledSubTransaction;
|
|
30
|
+
function ScheduledSubTransactionFromJSON(json) {
|
|
31
|
+
return ScheduledSubTransactionFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.ScheduledSubTransactionFromJSON = ScheduledSubTransactionFromJSON;
|
|
34
|
+
function ScheduledSubTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'scheduled_transaction_id': json['scheduled_transaction_id'],
|
|
41
|
+
'amount': json['amount'],
|
|
42
|
+
'memo': !(0, runtime_1.exists)(json, 'memo') ? undefined : json['memo'],
|
|
43
|
+
'payee_id': !(0, runtime_1.exists)(json, 'payee_id') ? undefined : json['payee_id'],
|
|
44
|
+
'category_id': !(0, runtime_1.exists)(json, 'category_id') ? undefined : json['category_id'],
|
|
45
|
+
'transfer_account_id': !(0, runtime_1.exists)(json, 'transfer_account_id') ? undefined : json['transfer_account_id'],
|
|
46
|
+
'deleted': json['deleted'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.ScheduledSubTransactionFromJSONTyped = ScheduledSubTransactionFromJSONTyped;
|
|
50
|
+
function ScheduledSubTransactionToJSON(value) {
|
|
51
|
+
if (value === undefined) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
if (value === null) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value.id,
|
|
59
|
+
'scheduled_transaction_id': value.scheduled_transaction_id,
|
|
60
|
+
'amount': value.amount,
|
|
61
|
+
'memo': value.memo,
|
|
62
|
+
'payee_id': value.payee_id,
|
|
63
|
+
'category_id': value.category_id,
|
|
64
|
+
'transfer_account_id': value.transfer_account_id,
|
|
65
|
+
'deleted': value.deleted,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
exports.ScheduledSubTransactionToJSON = ScheduledSubTransactionToJSON;
|
|
@@ -0,0 +1,154 @@
|
|
|
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 { ScheduledSubTransaction } from './ScheduledSubTransaction';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ScheduledTransactionDetail
|
|
17
|
+
*/
|
|
18
|
+
export interface ScheduledTransactionDetail {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ScheduledTransactionDetail
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The first date for which the Scheduled Transaction was scheduled.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ScheduledTransactionDetail
|
|
29
|
+
*/
|
|
30
|
+
date_first: string;
|
|
31
|
+
/**
|
|
32
|
+
* The next date for which the Scheduled Transaction is scheduled.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ScheduledTransactionDetail
|
|
35
|
+
*/
|
|
36
|
+
date_next: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ScheduledTransactionDetail
|
|
41
|
+
*/
|
|
42
|
+
frequency: ScheduledTransactionDetailFrequencyEnum;
|
|
43
|
+
/**
|
|
44
|
+
* The scheduled transaction amount in milliunits format
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ScheduledTransactionDetail
|
|
47
|
+
*/
|
|
48
|
+
amount: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ScheduledTransactionDetail
|
|
53
|
+
*/
|
|
54
|
+
memo?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* The scheduled transaction flag
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ScheduledTransactionDetail
|
|
59
|
+
*/
|
|
60
|
+
flag_color?: ScheduledTransactionDetailFlagColorEnum;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ScheduledTransactionDetail
|
|
65
|
+
*/
|
|
66
|
+
account_id: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof ScheduledTransactionDetail
|
|
71
|
+
*/
|
|
72
|
+
payee_id?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof ScheduledTransactionDetail
|
|
77
|
+
*/
|
|
78
|
+
category_id?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* If a transfer, the account_id which the scheduled transaction transfers to
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof ScheduledTransactionDetail
|
|
83
|
+
*/
|
|
84
|
+
transfer_account_id?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Whether or not the scheduled transaction has been deleted. Deleted scheduled transactions will only be included in delta requests.
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @memberof ScheduledTransactionDetail
|
|
89
|
+
*/
|
|
90
|
+
deleted: boolean;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof ScheduledTransactionDetail
|
|
95
|
+
*/
|
|
96
|
+
account_name: string;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof ScheduledTransactionDetail
|
|
101
|
+
*/
|
|
102
|
+
payee_name?: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* The name of the category. If a split scheduled transaction, this will be 'Split'.
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof ScheduledTransactionDetail
|
|
107
|
+
*/
|
|
108
|
+
category_name?: string | null;
|
|
109
|
+
/**
|
|
110
|
+
* If a split scheduled transaction, the subtransactions.
|
|
111
|
+
* @type {Array<ScheduledSubTransaction>}
|
|
112
|
+
* @memberof ScheduledTransactionDetail
|
|
113
|
+
*/
|
|
114
|
+
subtransactions: Array<ScheduledSubTransaction>;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @export
|
|
118
|
+
*/
|
|
119
|
+
export declare const ScheduledTransactionDetailFrequencyEnum: {
|
|
120
|
+
readonly Never: "never";
|
|
121
|
+
readonly Daily: "daily";
|
|
122
|
+
readonly Weekly: "weekly";
|
|
123
|
+
readonly EveryOtherWeek: "everyOtherWeek";
|
|
124
|
+
readonly TwiceAMonth: "twiceAMonth";
|
|
125
|
+
readonly Every4Weeks: "every4Weeks";
|
|
126
|
+
readonly Monthly: "monthly";
|
|
127
|
+
readonly EveryOtherMonth: "everyOtherMonth";
|
|
128
|
+
readonly Every3Months: "every3Months";
|
|
129
|
+
readonly Every4Months: "every4Months";
|
|
130
|
+
readonly TwiceAYear: "twiceAYear";
|
|
131
|
+
readonly Yearly: "yearly";
|
|
132
|
+
readonly EveryOtherYear: "everyOtherYear";
|
|
133
|
+
};
|
|
134
|
+
export declare type ScheduledTransactionDetailFrequencyEnum = typeof ScheduledTransactionDetailFrequencyEnum[keyof typeof ScheduledTransactionDetailFrequencyEnum];
|
|
135
|
+
/**
|
|
136
|
+
* @export
|
|
137
|
+
*/
|
|
138
|
+
export declare const ScheduledTransactionDetailFlagColorEnum: {
|
|
139
|
+
readonly Red: "red";
|
|
140
|
+
readonly Orange: "orange";
|
|
141
|
+
readonly Yellow: "yellow";
|
|
142
|
+
readonly Green: "green";
|
|
143
|
+
readonly Blue: "blue";
|
|
144
|
+
readonly Purple: "purple";
|
|
145
|
+
readonly Null: "null";
|
|
146
|
+
};
|
|
147
|
+
export declare type ScheduledTransactionDetailFlagColorEnum = typeof ScheduledTransactionDetailFlagColorEnum[keyof typeof ScheduledTransactionDetailFlagColorEnum];
|
|
148
|
+
/**
|
|
149
|
+
* Check if a given object implements the ScheduledTransactionDetail interface.
|
|
150
|
+
*/
|
|
151
|
+
export declare function instanceOfScheduledTransactionDetail(value: object): boolean;
|
|
152
|
+
export declare function ScheduledTransactionDetailFromJSON(json: any): ScheduledTransactionDetail;
|
|
153
|
+
export declare function ScheduledTransactionDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionDetail;
|
|
154
|
+
export declare function ScheduledTransactionDetailToJSON(value?: ScheduledTransactionDetail | null): any;
|