ynab 2.9.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -43
- package/dist/apis/AccountsApi.d.ts +12 -12
- package/dist/apis/AccountsApi.js +38 -28
- package/dist/apis/CategoriesApi.d.ts +68 -25
- package/dist/apis/CategoriesApi.js +176 -46
- package/dist/apis/DeprecatedApi.js +17 -7
- package/dist/apis/MoneyMovementsApi.d.ts +67 -0
- package/dist/apis/MoneyMovementsApi.js +194 -0
- package/dist/apis/MonthsApi.d.ts +16 -16
- package/dist/apis/MonthsApi.js +38 -28
- package/dist/apis/PayeeLocationsApi.d.ts +12 -12
- package/dist/apis/PayeeLocationsApi.js +38 -28
- package/dist/apis/PayeesApi.d.ts +10 -10
- package/dist/apis/PayeesApi.js +36 -26
- package/dist/apis/PlansApi.d.ts +53 -0
- package/dist/apis/{BudgetsApi.js → PlansApi.js} +50 -40
- package/dist/apis/ScheduledTransactionsApi.d.ts +20 -20
- package/dist/apis/ScheduledTransactionsApi.js +52 -42
- package/dist/apis/TransactionsApi.d.ts +49 -49
- package/dist/apis/TransactionsApi.js +99 -89
- package/dist/apis/UserApi.d.ts +2 -2
- package/dist/apis/UserApi.js +19 -9
- package/dist/apis/index.d.ts +2 -1
- package/dist/apis/index.js +2 -1
- package/dist/browser/ynab.js +1 -1
- package/dist/esm/apis/AccountsApi.d.ts +12 -12
- package/dist/esm/apis/AccountsApi.js +23 -23
- package/dist/esm/apis/CategoriesApi.d.ts +68 -25
- package/dist/esm/apis/CategoriesApi.js +228 -42
- package/dist/esm/apis/DeprecatedApi.js +2 -2
- package/dist/esm/apis/MoneyMovementsApi.d.ts +67 -0
- package/dist/esm/apis/MoneyMovementsApi.js +302 -0
- package/dist/esm/apis/MonthsApi.d.ts +16 -16
- package/dist/esm/apis/MonthsApi.js +23 -23
- package/dist/esm/apis/PayeeLocationsApi.d.ts +12 -12
- package/dist/esm/apis/PayeeLocationsApi.js +23 -23
- package/dist/esm/apis/PayeesApi.d.ts +10 -10
- package/dist/esm/apis/PayeesApi.js +21 -21
- package/dist/esm/apis/PlansApi.d.ts +53 -0
- package/dist/esm/apis/{BudgetsApi.js → PlansApi.js} +38 -38
- package/dist/esm/apis/ScheduledTransactionsApi.d.ts +20 -20
- package/dist/esm/apis/ScheduledTransactionsApi.js +37 -37
- package/dist/esm/apis/TransactionsApi.d.ts +49 -49
- package/dist/esm/apis/TransactionsApi.js +84 -84
- package/dist/esm/apis/UserApi.d.ts +2 -2
- package/dist/esm/apis/UserApi.js +4 -4
- package/dist/esm/apis/index.d.ts +2 -1
- package/dist/esm/apis/index.js +2 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +5 -5
- package/dist/esm/models/Account.d.ts +6 -6
- package/dist/esm/models/Category.d.ts +16 -4
- package/dist/esm/models/Category.js +4 -0
- package/dist/esm/models/CategoryGroupWithCategories.d.ts +1 -1
- package/dist/esm/models/CurrencyFormat.d.ts +1 -1
- package/dist/esm/models/DateFormat.d.ts +1 -1
- package/dist/esm/models/ExistingCategory.d.ts +51 -0
- package/dist/esm/models/ExistingCategory.js +45 -0
- package/dist/esm/models/ExistingTransaction.d.ts +4 -4
- package/dist/esm/models/HybridTransaction.d.ts +12 -12
- package/dist/esm/models/MoneyMovement.d.ts +75 -0
- package/dist/esm/models/MoneyMovement.js +57 -0
- package/dist/esm/models/MoneyMovementGroup.d.ts +51 -0
- package/dist/esm/models/MoneyMovementGroup.js +51 -0
- package/dist/esm/models/MoneyMovementGroupsResponse.d.ts +28 -0
- package/dist/esm/models/MoneyMovementGroupsResponse.js +40 -0
- package/dist/esm/models/MoneyMovementGroupsResponseData.d.ts +34 -0
- package/dist/esm/models/MoneyMovementGroupsResponseData.js +44 -0
- package/dist/esm/models/MoneyMovementsResponse.d.ts +28 -0
- package/dist/esm/models/{BudgetSettingsResponse.js → MoneyMovementsResponse.js} +11 -11
- package/dist/esm/models/MoneyMovementsResponseData.d.ts +34 -0
- package/dist/esm/models/MoneyMovementsResponseData.js +44 -0
- package/dist/esm/models/MonthDetail.d.ts +4 -4
- package/dist/esm/models/MonthSummary.d.ts +1 -1
- package/dist/esm/models/NewCategory.d.ts +51 -0
- package/dist/esm/models/NewCategory.js +45 -0
- package/dist/esm/models/NewTransaction.d.ts +4 -4
- package/dist/esm/models/PatchCategoryGroupWrapper.d.ts +28 -0
- package/dist/esm/models/PatchCategoryGroupWrapper.js +40 -0
- package/dist/esm/models/PatchCategoryWrapper.d.ts +3 -3
- package/dist/esm/models/PatchCategoryWrapper.js +3 -3
- package/dist/{models/BudgetDetail.d.ts → esm/models/PlanDetail.d.ts} +30 -30
- package/dist/esm/models/{BudgetDetail.js → PlanDetail.js} +8 -8
- package/dist/esm/models/PlanDetailResponse.d.ts +28 -0
- package/dist/esm/models/PlanDetailResponse.js +40 -0
- package/dist/esm/models/PlanDetailResponseData.d.ts +34 -0
- package/dist/esm/models/{BudgetDetailResponseData.js → PlanDetailResponseData.js} +11 -11
- package/dist/esm/models/PlanSettings.d.ts +35 -0
- package/dist/esm/models/{BudgetSettings.js → PlanSettings.js} +8 -8
- package/dist/esm/models/PlanSettingsResponse.d.ts +28 -0
- package/dist/esm/models/{BudgetDetailResponse.js → PlanSettingsResponse.js} +11 -11
- package/dist/esm/models/PlanSettingsResponseData.d.ts +28 -0
- package/dist/esm/models/PlanSettingsResponseData.js +40 -0
- package/dist/esm/models/PlanSummary.d.ts +72 -0
- package/dist/esm/models/{BudgetSummary.js → PlanSummary.js} +8 -8
- package/dist/esm/models/PlanSummaryResponse.d.ts +28 -0
- package/dist/esm/models/PlanSummaryResponse.js +40 -0
- package/dist/esm/models/PlanSummaryResponseData.d.ts +34 -0
- package/dist/esm/models/PlanSummaryResponseData.js +42 -0
- package/dist/esm/models/PostCategoryGroupWrapper.d.ts +28 -0
- package/dist/esm/models/PostCategoryGroupWrapper.js +40 -0
- package/dist/esm/models/PostCategoryWrapper.d.ts +28 -0
- package/dist/esm/models/PostCategoryWrapper.js +40 -0
- package/dist/esm/models/SaveCategory.d.ts +7 -1
- package/dist/esm/models/SaveCategory.js +2 -0
- package/dist/esm/models/SaveCategoryGroup.d.ts +27 -0
- package/dist/esm/models/SaveCategoryGroup.js +39 -0
- package/dist/esm/models/SaveCategoryGroupResponse.d.ts +28 -0
- package/dist/esm/models/SaveCategoryGroupResponse.js +40 -0
- package/dist/esm/models/SaveCategoryGroupResponseData.d.ts +34 -0
- package/dist/esm/models/SaveCategoryGroupResponseData.js +44 -0
- package/dist/esm/models/SaveMonthCategory.d.ts +1 -1
- package/dist/esm/models/SaveTransactionWithIdOrImportId.d.ts +4 -4
- package/dist/esm/models/ScheduledTransactionDetail.d.ts +6 -6
- package/dist/esm/models/ScheduledTransactionSummary.d.ts +1 -1
- package/dist/esm/models/TransactionDetail.d.ts +11 -11
- package/dist/esm/models/TransactionFlagColor.d.ts +1 -0
- package/dist/esm/models/TransactionFlagColor.js +2 -1
- package/dist/esm/models/TransactionResponseData.d.ts +6 -0
- package/dist/esm/models/TransactionResponseData.js +4 -0
- package/dist/esm/models/TransactionSummary.d.ts +1 -1
- package/dist/esm/models/index.d.ts +23 -9
- package/dist/esm/models/index.js +23 -9
- package/dist/esm/runtime.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +22 -12
- package/dist/models/Account.d.ts +6 -6
- package/dist/models/Account.js +5 -6
- package/dist/models/AccountResponse.js +5 -6
- package/dist/models/AccountResponseData.js +5 -6
- package/dist/models/AccountType.js +6 -6
- package/dist/models/AccountsResponse.js +5 -6
- package/dist/models/AccountsResponseData.js +5 -6
- package/dist/models/BulkResponse.js +5 -6
- package/dist/models/BulkResponseData.js +5 -6
- package/dist/models/BulkResponseDataBulk.js +5 -6
- package/dist/models/BulkTransactions.js +5 -6
- package/dist/models/CategoriesResponse.js +5 -6
- package/dist/models/CategoriesResponseData.js +5 -6
- package/dist/models/Category.d.ts +16 -4
- package/dist/models/Category.js +10 -6
- package/dist/models/CategoryGoalType.js +4 -5
- package/dist/models/CategoryGroup.js +5 -6
- package/dist/models/CategoryGroupWithCategories.d.ts +1 -1
- package/dist/models/CategoryGroupWithCategories.js +5 -6
- package/dist/models/CategoryGroupWithCategoriesAllOf.js +4 -5
- package/dist/models/CategoryResponse.js +5 -6
- package/dist/models/CategoryResponseData.js +5 -6
- package/dist/models/CurrencyFormat.d.ts +1 -1
- package/dist/models/CurrencyFormat.js +5 -6
- package/dist/models/DateFormat.d.ts +1 -1
- package/dist/models/DateFormat.js +5 -6
- package/dist/models/ErrorDetail.js +5 -6
- package/dist/models/ErrorResponse.js +5 -6
- package/dist/models/ExistingCategory.d.ts +51 -0
- package/dist/models/ExistingCategory.js +51 -0
- package/dist/models/ExistingTransaction.d.ts +4 -4
- package/dist/models/ExistingTransaction.js +5 -6
- package/dist/models/HybridTransaction.d.ts +12 -12
- package/dist/models/HybridTransaction.js +6 -6
- package/dist/models/HybridTransactionAllOf.js +5 -5
- package/dist/models/HybridTransactionsResponse.js +5 -6
- package/dist/models/HybridTransactionsResponseData.js +5 -6
- package/dist/models/MoneyMovement.d.ts +75 -0
- package/dist/models/MoneyMovement.js +63 -0
- package/dist/models/MoneyMovementGroup.d.ts +51 -0
- package/dist/models/MoneyMovementGroup.js +57 -0
- package/dist/models/MoneyMovementGroupsResponse.d.ts +28 -0
- package/dist/models/MoneyMovementGroupsResponse.js +46 -0
- package/dist/models/MoneyMovementGroupsResponseData.d.ts +34 -0
- package/dist/models/MoneyMovementGroupsResponseData.js +50 -0
- package/dist/models/MoneyMovementsResponse.d.ts +28 -0
- package/dist/models/MoneyMovementsResponse.js +46 -0
- package/dist/models/MoneyMovementsResponseData.d.ts +34 -0
- package/dist/models/MoneyMovementsResponseData.js +50 -0
- package/dist/models/MonthDetail.d.ts +4 -4
- package/dist/models/MonthDetail.js +5 -6
- package/dist/models/MonthDetailAllOf.js +4 -5
- package/dist/models/MonthDetailResponse.js +5 -6
- package/dist/models/MonthDetailResponseData.js +5 -6
- package/dist/models/MonthSummariesResponse.js +5 -6
- package/dist/models/MonthSummariesResponseData.js +5 -6
- package/dist/models/MonthSummary.d.ts +1 -1
- package/dist/models/MonthSummary.js +5 -6
- package/dist/models/NewCategory.d.ts +51 -0
- package/dist/models/NewCategory.js +51 -0
- package/dist/models/NewTransaction.d.ts +4 -4
- package/dist/models/NewTransaction.js +5 -6
- package/dist/models/PatchCategoryGroupWrapper.d.ts +28 -0
- package/dist/models/PatchCategoryGroupWrapper.js +46 -0
- package/dist/models/PatchCategoryWrapper.d.ts +3 -3
- package/dist/models/PatchCategoryWrapper.js +8 -9
- package/dist/models/PatchMonthCategoryWrapper.js +5 -6
- package/dist/models/PatchPayeeWrapper.js +5 -6
- package/dist/models/PatchTransactionsWrapper.js +5 -6
- package/dist/models/Payee.js +5 -6
- package/dist/models/PayeeLocation.js +5 -6
- package/dist/models/PayeeLocationResponse.js +5 -6
- package/dist/models/PayeeLocationResponseData.js +5 -6
- package/dist/models/PayeeLocationsResponse.js +5 -6
- package/dist/models/PayeeLocationsResponseData.js +5 -6
- package/dist/models/PayeeResponse.js +5 -6
- package/dist/models/PayeeResponseData.js +5 -6
- package/dist/models/PayeesResponse.js +5 -6
- package/dist/models/PayeesResponseData.js +5 -6
- package/dist/{esm/models/BudgetDetail.d.ts → models/PlanDetail.d.ts} +30 -30
- package/dist/models/{BudgetDetail.js → PlanDetail.js} +13 -14
- package/dist/models/PlanDetailResponse.d.ts +28 -0
- package/dist/models/PlanDetailResponse.js +46 -0
- package/dist/models/PlanDetailResponseData.d.ts +34 -0
- package/dist/models/PlanDetailResponseData.js +50 -0
- package/dist/models/PlanSettings.d.ts +35 -0
- package/dist/models/{BudgetSettings.js → PlanSettings.js} +13 -14
- package/dist/models/PlanSettingsResponse.d.ts +28 -0
- package/dist/models/PlanSettingsResponse.js +46 -0
- package/dist/models/PlanSettingsResponseData.d.ts +28 -0
- package/dist/models/PlanSettingsResponseData.js +46 -0
- package/dist/models/PlanSummary.d.ts +72 -0
- package/dist/models/{BudgetSummary.js → PlanSummary.js} +13 -14
- package/dist/models/PlanSummaryResponse.d.ts +28 -0
- package/dist/models/PlanSummaryResponse.js +46 -0
- package/dist/models/PlanSummaryResponseData.d.ts +34 -0
- package/dist/models/PlanSummaryResponseData.js +48 -0
- package/dist/models/PostAccountWrapper.js +5 -6
- package/dist/models/PostCategoryGroupWrapper.d.ts +28 -0
- package/dist/models/PostCategoryGroupWrapper.js +46 -0
- package/dist/models/PostCategoryWrapper.d.ts +28 -0
- package/dist/models/PostCategoryWrapper.js +46 -0
- package/dist/models/PostScheduledTransactionWrapper.js +5 -6
- package/dist/models/PostTransactionsWrapper.js +5 -6
- package/dist/models/PutScheduledTransactionWrapper.js +5 -6
- package/dist/models/PutTransactionWrapper.js +5 -6
- package/dist/models/SaveAccount.js +5 -6
- package/dist/models/SaveCategory.d.ts +7 -1
- package/dist/models/SaveCategory.js +7 -6
- package/dist/models/SaveCategoryGroup.d.ts +27 -0
- package/dist/models/SaveCategoryGroup.js +45 -0
- package/dist/models/SaveCategoryGroupResponse.d.ts +28 -0
- package/dist/models/SaveCategoryGroupResponse.js +46 -0
- package/dist/models/SaveCategoryGroupResponseData.d.ts +34 -0
- package/dist/models/SaveCategoryGroupResponseData.js +50 -0
- package/dist/models/SaveCategoryResponse.js +5 -6
- package/dist/models/SaveCategoryResponseData.js +5 -6
- package/dist/models/SaveMonthCategory.d.ts +1 -1
- package/dist/models/SaveMonthCategory.js +5 -6
- package/dist/models/SavePayee.js +5 -6
- package/dist/models/SavePayeeResponse.js +5 -6
- package/dist/models/SavePayeeResponseData.js +5 -6
- package/dist/models/SaveScheduledTransaction.js +5 -6
- package/dist/models/SaveSubTransaction.js +5 -6
- package/dist/models/SaveTransaction.js +4 -5
- package/dist/models/SaveTransactionWithId.js +4 -5
- package/dist/models/SaveTransactionWithIdAllOf.js +4 -5
- package/dist/models/SaveTransactionWithIdOrImportId.d.ts +4 -4
- package/dist/models/SaveTransactionWithIdOrImportId.js +5 -6
- package/dist/models/SaveTransactionWithOptionalFields.js +5 -6
- package/dist/models/SaveTransactionWithOptionalFieldsFlagColor.js +4 -5
- package/dist/models/SaveTransactionsResponse.js +5 -6
- package/dist/models/SaveTransactionsResponseData.js +5 -6
- package/dist/models/ScheduledSubTransaction.js +5 -6
- package/dist/models/ScheduledTransactionDetail.d.ts +6 -6
- package/dist/models/ScheduledTransactionDetail.js +6 -6
- package/dist/models/ScheduledTransactionDetailAllOf.js +4 -5
- package/dist/models/ScheduledTransactionFrequency.js +6 -6
- package/dist/models/ScheduledTransactionResponse.js +5 -6
- package/dist/models/ScheduledTransactionResponseData.js +5 -6
- package/dist/models/ScheduledTransactionSummary.d.ts +1 -1
- package/dist/models/ScheduledTransactionSummary.js +6 -6
- package/dist/models/ScheduledTransactionSummaryFlagColor.js +4 -5
- package/dist/models/ScheduledTransactionsResponse.js +5 -6
- package/dist/models/ScheduledTransactionsResponseData.js +5 -6
- package/dist/models/SubTransaction.js +5 -6
- package/dist/models/TransactionClearedStatus.js +6 -6
- package/dist/models/TransactionDetail.d.ts +11 -11
- package/dist/models/TransactionDetail.js +6 -6
- package/dist/models/TransactionDetailAllOf.js +4 -5
- package/dist/models/TransactionFlagColor.d.ts +1 -0
- package/dist/models/TransactionFlagColor.js +8 -7
- package/dist/models/TransactionResponse.js +5 -6
- package/dist/models/TransactionResponseData.d.ts +6 -0
- package/dist/models/TransactionResponseData.js +9 -6
- package/dist/models/TransactionSummary.d.ts +1 -1
- package/dist/models/TransactionSummary.js +6 -6
- package/dist/models/TransactionSummaryDebtTransactionType.js +4 -5
- package/dist/models/TransactionsImportResponse.js +5 -6
- package/dist/models/TransactionsImportResponseData.js +5 -6
- package/dist/models/TransactionsResponse.js +5 -6
- package/dist/models/TransactionsResponseData.js +5 -6
- package/dist/models/User.js +5 -6
- package/dist/models/UserResponse.js +5 -6
- package/dist/models/UserResponseData.js +5 -6
- package/dist/models/index.d.ts +23 -9
- package/dist/models/index.js +23 -9
- package/dist/runtime.js +5 -5
- package/package.json +7 -8
- package/dist/apis/BudgetsApi.d.ts +0 -53
- package/dist/esm/apis/BudgetsApi.d.ts +0 -53
- package/dist/esm/models/BudgetDetailAllOf.d.ts +0 -95
- package/dist/esm/models/BudgetDetailAllOf.js +0 -71
- package/dist/esm/models/BudgetDetailResponse.d.ts +0 -28
- package/dist/esm/models/BudgetDetailResponseData.d.ts +0 -34
- package/dist/esm/models/BudgetSettings.d.ts +0 -35
- package/dist/esm/models/BudgetSettingsResponse.d.ts +0 -28
- package/dist/esm/models/BudgetSettingsResponseData.d.ts +0 -28
- package/dist/esm/models/BudgetSettingsResponseData.js +0 -40
- package/dist/esm/models/BudgetSummary.d.ts +0 -72
- package/dist/esm/models/BudgetSummaryResponse.d.ts +0 -28
- package/dist/esm/models/BudgetSummaryResponse.js +0 -40
- package/dist/esm/models/BudgetSummaryResponseData.d.ts +0 -34
- package/dist/esm/models/BudgetSummaryResponseData.js +0 -42
- package/dist/models/BudgetDetailAllOf.d.ts +0 -95
- package/dist/models/BudgetDetailAllOf.js +0 -78
- package/dist/models/BudgetDetailResponse.d.ts +0 -28
- package/dist/models/BudgetDetailResponse.js +0 -47
- package/dist/models/BudgetDetailResponseData.d.ts +0 -34
- package/dist/models/BudgetDetailResponseData.js +0 -51
- package/dist/models/BudgetSettings.d.ts +0 -35
- package/dist/models/BudgetSettingsResponse.d.ts +0 -28
- package/dist/models/BudgetSettingsResponse.js +0 -47
- package/dist/models/BudgetSettingsResponseData.d.ts +0 -28
- package/dist/models/BudgetSettingsResponseData.js +0 -47
- package/dist/models/BudgetSummary.d.ts +0 -72
- package/dist/models/BudgetSummaryResponse.d.ts +0 -28
- package/dist/models/BudgetSummaryResponse.js +0 -47
- package/dist/models/BudgetSummaryResponseData.d.ts +0 -34
- package/dist/models/BudgetSummaryResponseData.js +0 -49
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
-
*/
|
|
7
|
-
import type { CurrencyFormat } from './CurrencyFormat';
|
|
8
|
-
import type { DateFormat } from './DateFormat';
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @export
|
|
12
|
-
* @interface BudgetSettings
|
|
13
|
-
*/
|
|
14
|
-
export interface BudgetSettings {
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @type {DateFormat}
|
|
18
|
-
* @memberof BudgetSettings
|
|
19
|
-
*/
|
|
20
|
-
date_format: DateFormat | null;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {CurrencyFormat}
|
|
24
|
-
* @memberof BudgetSettings
|
|
25
|
-
*/
|
|
26
|
-
currency_format: CurrencyFormat | null;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Check if a given object implements the BudgetSettings interface.
|
|
30
|
-
*/
|
|
31
|
-
export declare function instanceOfBudgetSettings(value: object): value is BudgetSettings;
|
|
32
|
-
export declare function BudgetSettingsFromJSON(json: any): BudgetSettings;
|
|
33
|
-
export declare function BudgetSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSettings;
|
|
34
|
-
export declare function BudgetSettingsToJSON(json: any): BudgetSettings;
|
|
35
|
-
export declare function BudgetSettingsToJSONTyped(value?: BudgetSettings | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
-
*/
|
|
7
|
-
import type { BudgetSettingsResponseData } from './BudgetSettingsResponseData';
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @export
|
|
11
|
-
* @interface BudgetSettingsResponse
|
|
12
|
-
*/
|
|
13
|
-
export interface BudgetSettingsResponse {
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {BudgetSettingsResponseData}
|
|
17
|
-
* @memberof BudgetSettingsResponse
|
|
18
|
-
*/
|
|
19
|
-
data: BudgetSettingsResponseData;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the BudgetSettingsResponse interface.
|
|
23
|
-
*/
|
|
24
|
-
export declare function instanceOfBudgetSettingsResponse(value: object): value is BudgetSettingsResponse;
|
|
25
|
-
export declare function BudgetSettingsResponseFromJSON(json: any): BudgetSettingsResponse;
|
|
26
|
-
export declare function BudgetSettingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSettingsResponse;
|
|
27
|
-
export declare function BudgetSettingsResponseToJSON(json: any): BudgetSettingsResponse;
|
|
28
|
-
export declare function BudgetSettingsResponseToJSONTyped(value?: BudgetSettingsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
-
*/
|
|
7
|
-
import type { BudgetSettings } from './BudgetSettings';
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @export
|
|
11
|
-
* @interface BudgetSettingsResponseData
|
|
12
|
-
*/
|
|
13
|
-
export interface BudgetSettingsResponseData {
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {BudgetSettings}
|
|
17
|
-
* @memberof BudgetSettingsResponseData
|
|
18
|
-
*/
|
|
19
|
-
settings: BudgetSettings;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the BudgetSettingsResponseData interface.
|
|
23
|
-
*/
|
|
24
|
-
export declare function instanceOfBudgetSettingsResponseData(value: object): value is BudgetSettingsResponseData;
|
|
25
|
-
export declare function BudgetSettingsResponseDataFromJSON(json: any): BudgetSettingsResponseData;
|
|
26
|
-
export declare function BudgetSettingsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSettingsResponseData;
|
|
27
|
-
export declare function BudgetSettingsResponseDataToJSON(json: any): BudgetSettingsResponseData;
|
|
28
|
-
export declare function BudgetSettingsResponseDataToJSONTyped(value?: BudgetSettingsResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* YNAB API Endpoints
|
|
5
|
-
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
|
-
*
|
|
7
|
-
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
-
*/
|
|
9
|
-
import { BudgetSettingsFromJSON, BudgetSettingsToJSON, } from './BudgetSettings';
|
|
10
|
-
/**
|
|
11
|
-
* Check if a given object implements the BudgetSettingsResponseData interface.
|
|
12
|
-
*/
|
|
13
|
-
export function instanceOfBudgetSettingsResponseData(value) {
|
|
14
|
-
if (!('settings' in value) || value['settings'] === undefined)
|
|
15
|
-
return false;
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
export function BudgetSettingsResponseDataFromJSON(json) {
|
|
19
|
-
return BudgetSettingsResponseDataFromJSONTyped(json, false);
|
|
20
|
-
}
|
|
21
|
-
export function BudgetSettingsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
-
if (json == null) {
|
|
23
|
-
return json;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
'settings': BudgetSettingsFromJSON(json['settings']),
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export function BudgetSettingsResponseDataToJSON(json) {
|
|
30
|
-
return BudgetSettingsResponseDataToJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
export function BudgetSettingsResponseDataToJSONTyped(value, ignoreDiscriminator) {
|
|
33
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
34
|
-
if (value == null) {
|
|
35
|
-
return value;
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
'settings': BudgetSettingsToJSON(value['settings']),
|
|
39
|
-
};
|
|
40
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
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
|
-
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
-
*/
|
|
7
|
-
import type { Account } from './Account';
|
|
8
|
-
import type { CurrencyFormat } from './CurrencyFormat';
|
|
9
|
-
import type { DateFormat } from './DateFormat';
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @export
|
|
13
|
-
* @interface BudgetSummary
|
|
14
|
-
*/
|
|
15
|
-
export interface BudgetSummary {
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @type {string}
|
|
19
|
-
* @memberof BudgetSummary
|
|
20
|
-
*/
|
|
21
|
-
id: string;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof BudgetSummary
|
|
26
|
-
*/
|
|
27
|
-
name: string;
|
|
28
|
-
/**
|
|
29
|
-
* The last time any changes were made to the budget from either a web or mobile client
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof BudgetSummary
|
|
32
|
-
*/
|
|
33
|
-
last_modified_on?: string;
|
|
34
|
-
/**
|
|
35
|
-
* The earliest budget month
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof BudgetSummary
|
|
38
|
-
*/
|
|
39
|
-
first_month?: string;
|
|
40
|
-
/**
|
|
41
|
-
* The latest budget month
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof BudgetSummary
|
|
44
|
-
*/
|
|
45
|
-
last_month?: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {DateFormat}
|
|
49
|
-
* @memberof BudgetSummary
|
|
50
|
-
*/
|
|
51
|
-
date_format?: DateFormat | null;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {CurrencyFormat}
|
|
55
|
-
* @memberof BudgetSummary
|
|
56
|
-
*/
|
|
57
|
-
currency_format?: CurrencyFormat | null;
|
|
58
|
-
/**
|
|
59
|
-
* The budget accounts (only included if `include_accounts=true` specified as query parameter)
|
|
60
|
-
* @type {Array<Account>}
|
|
61
|
-
* @memberof BudgetSummary
|
|
62
|
-
*/
|
|
63
|
-
accounts?: Array<Account>;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Check if a given object implements the BudgetSummary interface.
|
|
67
|
-
*/
|
|
68
|
-
export declare function instanceOfBudgetSummary(value: object): value is BudgetSummary;
|
|
69
|
-
export declare function BudgetSummaryFromJSON(json: any): BudgetSummary;
|
|
70
|
-
export declare function BudgetSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSummary;
|
|
71
|
-
export declare function BudgetSummaryToJSON(json: any): BudgetSummary;
|
|
72
|
-
export declare function BudgetSummaryToJSONTyped(value?: BudgetSummary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
-
*/
|
|
7
|
-
import type { BudgetSummaryResponseData } from './BudgetSummaryResponseData';
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @export
|
|
11
|
-
* @interface BudgetSummaryResponse
|
|
12
|
-
*/
|
|
13
|
-
export interface BudgetSummaryResponse {
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {BudgetSummaryResponseData}
|
|
17
|
-
* @memberof BudgetSummaryResponse
|
|
18
|
-
*/
|
|
19
|
-
data: BudgetSummaryResponseData;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the BudgetSummaryResponse interface.
|
|
23
|
-
*/
|
|
24
|
-
export declare function instanceOfBudgetSummaryResponse(value: object): value is BudgetSummaryResponse;
|
|
25
|
-
export declare function BudgetSummaryResponseFromJSON(json: any): BudgetSummaryResponse;
|
|
26
|
-
export declare function BudgetSummaryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSummaryResponse;
|
|
27
|
-
export declare function BudgetSummaryResponseToJSON(json: any): BudgetSummaryResponse;
|
|
28
|
-
export declare function BudgetSummaryResponseToJSONTyped(value?: BudgetSummaryResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* YNAB API Endpoints
|
|
5
|
-
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
|
-
*
|
|
7
|
-
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
-
*/
|
|
9
|
-
import { BudgetSummaryResponseDataFromJSON, BudgetSummaryResponseDataToJSON, } from './BudgetSummaryResponseData';
|
|
10
|
-
/**
|
|
11
|
-
* Check if a given object implements the BudgetSummaryResponse interface.
|
|
12
|
-
*/
|
|
13
|
-
export function instanceOfBudgetSummaryResponse(value) {
|
|
14
|
-
if (!('data' in value) || value['data'] === undefined)
|
|
15
|
-
return false;
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
export function BudgetSummaryResponseFromJSON(json) {
|
|
19
|
-
return BudgetSummaryResponseFromJSONTyped(json, false);
|
|
20
|
-
}
|
|
21
|
-
export function BudgetSummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
-
if (json == null) {
|
|
23
|
-
return json;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
'data': BudgetSummaryResponseDataFromJSON(json['data']),
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export function BudgetSummaryResponseToJSON(json) {
|
|
30
|
-
return BudgetSummaryResponseToJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
export function BudgetSummaryResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
33
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
34
|
-
if (value == null) {
|
|
35
|
-
return value;
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
'data': BudgetSummaryResponseDataToJSON(value['data']),
|
|
39
|
-
};
|
|
40
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
-
*/
|
|
7
|
-
import type { BudgetSummary } from './BudgetSummary';
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @export
|
|
11
|
-
* @interface BudgetSummaryResponseData
|
|
12
|
-
*/
|
|
13
|
-
export interface BudgetSummaryResponseData {
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {Array<BudgetSummary>}
|
|
17
|
-
* @memberof BudgetSummaryResponseData
|
|
18
|
-
*/
|
|
19
|
-
budgets: Array<BudgetSummary>;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {BudgetSummary}
|
|
23
|
-
* @memberof BudgetSummaryResponseData
|
|
24
|
-
*/
|
|
25
|
-
default_budget?: BudgetSummary;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Check if a given object implements the BudgetSummaryResponseData interface.
|
|
29
|
-
*/
|
|
30
|
-
export declare function instanceOfBudgetSummaryResponseData(value: object): value is BudgetSummaryResponseData;
|
|
31
|
-
export declare function BudgetSummaryResponseDataFromJSON(json: any): BudgetSummaryResponseData;
|
|
32
|
-
export declare function BudgetSummaryResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSummaryResponseData;
|
|
33
|
-
export declare function BudgetSummaryResponseDataToJSON(json: any): BudgetSummaryResponseData;
|
|
34
|
-
export declare function BudgetSummaryResponseDataToJSONTyped(value?: BudgetSummaryResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* YNAB API Endpoints
|
|
5
|
-
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
6
|
-
*
|
|
7
|
-
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
-
*/
|
|
9
|
-
import { BudgetSummaryFromJSON, BudgetSummaryToJSON, } from './BudgetSummary';
|
|
10
|
-
/**
|
|
11
|
-
* Check if a given object implements the BudgetSummaryResponseData interface.
|
|
12
|
-
*/
|
|
13
|
-
export function instanceOfBudgetSummaryResponseData(value) {
|
|
14
|
-
if (!('budgets' in value) || value['budgets'] === undefined)
|
|
15
|
-
return false;
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
export function BudgetSummaryResponseDataFromJSON(json) {
|
|
19
|
-
return BudgetSummaryResponseDataFromJSONTyped(json, false);
|
|
20
|
-
}
|
|
21
|
-
export function BudgetSummaryResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
-
if (json == null) {
|
|
23
|
-
return json;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
'budgets': (json['budgets'].map(BudgetSummaryFromJSON)),
|
|
27
|
-
'default_budget': json['default_budget'] == null ? undefined : BudgetSummaryFromJSON(json['default_budget']),
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export function BudgetSummaryResponseDataToJSON(json) {
|
|
31
|
-
return BudgetSummaryResponseDataToJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
export function BudgetSummaryResponseDataToJSONTyped(value, ignoreDiscriminator) {
|
|
34
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
35
|
-
if (value == null) {
|
|
36
|
-
return value;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'budgets': (value['budgets'].map(BudgetSummaryToJSON)),
|
|
40
|
-
'default_budget': BudgetSummaryToJSON(value['default_budget']),
|
|
41
|
-
};
|
|
42
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
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
|
-
import type { Category } from './Category';
|
|
14
|
-
import type { CategoryGroup } from './CategoryGroup';
|
|
15
|
-
import type { MonthDetail } from './MonthDetail';
|
|
16
|
-
import type { Payee } from './Payee';
|
|
17
|
-
import type { PayeeLocation } from './PayeeLocation';
|
|
18
|
-
import type { ScheduledSubTransaction } from './ScheduledSubTransaction';
|
|
19
|
-
import type { ScheduledTransactionSummary } from './ScheduledTransactionSummary';
|
|
20
|
-
import type { SubTransaction } from './SubTransaction';
|
|
21
|
-
import type { TransactionSummary } from './TransactionSummary';
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
* @interface BudgetDetailAllOf
|
|
26
|
-
*/
|
|
27
|
-
export interface BudgetDetailAllOf {
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {Array<Account>}
|
|
31
|
-
* @memberof BudgetDetailAllOf
|
|
32
|
-
*/
|
|
33
|
-
accounts?: Array<Account>;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {Array<Payee>}
|
|
37
|
-
* @memberof BudgetDetailAllOf
|
|
38
|
-
*/
|
|
39
|
-
payees?: Array<Payee>;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {Array<PayeeLocation>}
|
|
43
|
-
* @memberof BudgetDetailAllOf
|
|
44
|
-
*/
|
|
45
|
-
payee_locations?: Array<PayeeLocation>;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {Array<CategoryGroup>}
|
|
49
|
-
* @memberof BudgetDetailAllOf
|
|
50
|
-
*/
|
|
51
|
-
category_groups?: Array<CategoryGroup>;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {Array<Category>}
|
|
55
|
-
* @memberof BudgetDetailAllOf
|
|
56
|
-
*/
|
|
57
|
-
categories?: Array<Category>;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {Array<MonthDetail>}
|
|
61
|
-
* @memberof BudgetDetailAllOf
|
|
62
|
-
*/
|
|
63
|
-
months?: Array<MonthDetail>;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {Array<TransactionSummary>}
|
|
67
|
-
* @memberof BudgetDetailAllOf
|
|
68
|
-
*/
|
|
69
|
-
transactions?: Array<TransactionSummary>;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {Array<SubTransaction>}
|
|
73
|
-
* @memberof BudgetDetailAllOf
|
|
74
|
-
*/
|
|
75
|
-
subtransactions?: Array<SubTransaction>;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {Array<ScheduledTransactionSummary>}
|
|
79
|
-
* @memberof BudgetDetailAllOf
|
|
80
|
-
*/
|
|
81
|
-
scheduled_transactions?: Array<ScheduledTransactionSummary>;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {Array<ScheduledSubTransaction>}
|
|
85
|
-
* @memberof BudgetDetailAllOf
|
|
86
|
-
*/
|
|
87
|
-
scheduled_subtransactions?: Array<ScheduledSubTransaction>;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Check if a given object implements the BudgetDetailAllOf interface.
|
|
91
|
-
*/
|
|
92
|
-
export declare function instanceOfBudgetDetailAllOf(value: object): boolean;
|
|
93
|
-
export declare function BudgetDetailAllOfFromJSON(json: any): BudgetDetailAllOf;
|
|
94
|
-
export declare function BudgetDetailAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetDetailAllOf;
|
|
95
|
-
export declare function BudgetDetailAllOfToJSON(value?: BudgetDetailAllOf | null): any;
|
|
@@ -1,78 +0,0 @@
|
|
|
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.BudgetDetailAllOfToJSON = exports.BudgetDetailAllOfFromJSONTyped = exports.BudgetDetailAllOfFromJSON = exports.instanceOfBudgetDetailAllOf = void 0;
|
|
17
|
-
const runtime_1 = require("../runtime");
|
|
18
|
-
const Account_1 = require("./Account");
|
|
19
|
-
const Category_1 = require("./Category");
|
|
20
|
-
const CategoryGroup_1 = require("./CategoryGroup");
|
|
21
|
-
const MonthDetail_1 = require("./MonthDetail");
|
|
22
|
-
const Payee_1 = require("./Payee");
|
|
23
|
-
const PayeeLocation_1 = require("./PayeeLocation");
|
|
24
|
-
const ScheduledSubTransaction_1 = require("./ScheduledSubTransaction");
|
|
25
|
-
const ScheduledTransactionSummary_1 = require("./ScheduledTransactionSummary");
|
|
26
|
-
const SubTransaction_1 = require("./SubTransaction");
|
|
27
|
-
const TransactionSummary_1 = require("./TransactionSummary");
|
|
28
|
-
/**
|
|
29
|
-
* Check if a given object implements the BudgetDetailAllOf interface.
|
|
30
|
-
*/
|
|
31
|
-
function instanceOfBudgetDetailAllOf(value) {
|
|
32
|
-
let isInstance = true;
|
|
33
|
-
return isInstance;
|
|
34
|
-
}
|
|
35
|
-
exports.instanceOfBudgetDetailAllOf = instanceOfBudgetDetailAllOf;
|
|
36
|
-
function BudgetDetailAllOfFromJSON(json) {
|
|
37
|
-
return BudgetDetailAllOfFromJSONTyped(json, false);
|
|
38
|
-
}
|
|
39
|
-
exports.BudgetDetailAllOfFromJSON = BudgetDetailAllOfFromJSON;
|
|
40
|
-
function BudgetDetailAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
-
if ((json === undefined) || (json === null)) {
|
|
42
|
-
return json;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
'accounts': !(0, runtime_1.exists)(json, 'accounts') ? undefined : (json['accounts'].map(Account_1.AccountFromJSON)),
|
|
46
|
-
'payees': !(0, runtime_1.exists)(json, 'payees') ? undefined : (json['payees'].map(Payee_1.PayeeFromJSON)),
|
|
47
|
-
'payee_locations': !(0, runtime_1.exists)(json, 'payee_locations') ? undefined : (json['payee_locations'].map(PayeeLocation_1.PayeeLocationFromJSON)),
|
|
48
|
-
'category_groups': !(0, runtime_1.exists)(json, 'category_groups') ? undefined : (json['category_groups'].map(CategoryGroup_1.CategoryGroupFromJSON)),
|
|
49
|
-
'categories': !(0, runtime_1.exists)(json, 'categories') ? undefined : (json['categories'].map(Category_1.CategoryFromJSON)),
|
|
50
|
-
'months': !(0, runtime_1.exists)(json, 'months') ? undefined : (json['months'].map(MonthDetail_1.MonthDetailFromJSON)),
|
|
51
|
-
'transactions': !(0, runtime_1.exists)(json, 'transactions') ? undefined : (json['transactions'].map(TransactionSummary_1.TransactionSummaryFromJSON)),
|
|
52
|
-
'subtransactions': !(0, runtime_1.exists)(json, 'subtransactions') ? undefined : (json['subtransactions'].map(SubTransaction_1.SubTransactionFromJSON)),
|
|
53
|
-
'scheduled_transactions': !(0, runtime_1.exists)(json, 'scheduled_transactions') ? undefined : (json['scheduled_transactions'].map(ScheduledTransactionSummary_1.ScheduledTransactionSummaryFromJSON)),
|
|
54
|
-
'scheduled_subtransactions': !(0, runtime_1.exists)(json, 'scheduled_subtransactions') ? undefined : (json['scheduled_subtransactions'].map(ScheduledSubTransaction_1.ScheduledSubTransactionFromJSON)),
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
exports.BudgetDetailAllOfFromJSONTyped = BudgetDetailAllOfFromJSONTyped;
|
|
58
|
-
function BudgetDetailAllOfToJSON(value) {
|
|
59
|
-
if (value === undefined) {
|
|
60
|
-
return undefined;
|
|
61
|
-
}
|
|
62
|
-
if (value === null) {
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
return {
|
|
66
|
-
'accounts': value.accounts === undefined ? undefined : (value.accounts.map(Account_1.AccountToJSON)),
|
|
67
|
-
'payees': value.payees === undefined ? undefined : (value.payees.map(Payee_1.PayeeToJSON)),
|
|
68
|
-
'payee_locations': value.payee_locations === undefined ? undefined : (value.payee_locations.map(PayeeLocation_1.PayeeLocationToJSON)),
|
|
69
|
-
'category_groups': value.category_groups === undefined ? undefined : (value.category_groups.map(CategoryGroup_1.CategoryGroupToJSON)),
|
|
70
|
-
'categories': value.categories === undefined ? undefined : (value.categories.map(Category_1.CategoryToJSON)),
|
|
71
|
-
'months': value.months === undefined ? undefined : (value.months.map(MonthDetail_1.MonthDetailToJSON)),
|
|
72
|
-
'transactions': value.transactions === undefined ? undefined : (value.transactions.map(TransactionSummary_1.TransactionSummaryToJSON)),
|
|
73
|
-
'subtransactions': value.subtransactions === undefined ? undefined : (value.subtransactions.map(SubTransaction_1.SubTransactionToJSON)),
|
|
74
|
-
'scheduled_transactions': value.scheduled_transactions === undefined ? undefined : (value.scheduled_transactions.map(ScheduledTransactionSummary_1.ScheduledTransactionSummaryToJSON)),
|
|
75
|
-
'scheduled_subtransactions': value.scheduled_subtransactions === undefined ? undefined : (value.scheduled_subtransactions.map(ScheduledSubTransaction_1.ScheduledSubTransactionToJSON)),
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
exports.BudgetDetailAllOfToJSON = BudgetDetailAllOfToJSON;
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
-
*/
|
|
7
|
-
import type { BudgetDetailResponseData } from './BudgetDetailResponseData';
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @export
|
|
11
|
-
* @interface BudgetDetailResponse
|
|
12
|
-
*/
|
|
13
|
-
export interface BudgetDetailResponse {
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {BudgetDetailResponseData}
|
|
17
|
-
* @memberof BudgetDetailResponse
|
|
18
|
-
*/
|
|
19
|
-
data: BudgetDetailResponseData;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the BudgetDetailResponse interface.
|
|
23
|
-
*/
|
|
24
|
-
export declare function instanceOfBudgetDetailResponse(value: object): value is BudgetDetailResponse;
|
|
25
|
-
export declare function BudgetDetailResponseFromJSON(json: any): BudgetDetailResponse;
|
|
26
|
-
export declare function BudgetDetailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetDetailResponse;
|
|
27
|
-
export declare function BudgetDetailResponseToJSON(json: any): BudgetDetailResponse;
|
|
28
|
-
export declare function BudgetDetailResponseToJSONTyped(value?: BudgetDetailResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,47 +0,0 @@
|
|
|
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
|
-
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
9
|
-
*/
|
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.BudgetDetailResponseToJSONTyped = exports.BudgetDetailResponseToJSON = exports.BudgetDetailResponseFromJSONTyped = exports.BudgetDetailResponseFromJSON = exports.instanceOfBudgetDetailResponse = void 0;
|
|
12
|
-
const BudgetDetailResponseData_1 = require("./BudgetDetailResponseData");
|
|
13
|
-
/**
|
|
14
|
-
* Check if a given object implements the BudgetDetailResponse interface.
|
|
15
|
-
*/
|
|
16
|
-
function instanceOfBudgetDetailResponse(value) {
|
|
17
|
-
if (!('data' in value) || value['data'] === undefined)
|
|
18
|
-
return false;
|
|
19
|
-
return true;
|
|
20
|
-
}
|
|
21
|
-
exports.instanceOfBudgetDetailResponse = instanceOfBudgetDetailResponse;
|
|
22
|
-
function BudgetDetailResponseFromJSON(json) {
|
|
23
|
-
return BudgetDetailResponseFromJSONTyped(json, false);
|
|
24
|
-
}
|
|
25
|
-
exports.BudgetDetailResponseFromJSON = BudgetDetailResponseFromJSON;
|
|
26
|
-
function BudgetDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (json == null) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
'data': (0, BudgetDetailResponseData_1.BudgetDetailResponseDataFromJSON)(json['data']),
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
exports.BudgetDetailResponseFromJSONTyped = BudgetDetailResponseFromJSONTyped;
|
|
35
|
-
function BudgetDetailResponseToJSON(json) {
|
|
36
|
-
return BudgetDetailResponseToJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
exports.BudgetDetailResponseToJSON = BudgetDetailResponseToJSON;
|
|
39
|
-
function BudgetDetailResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
-
if (value == null) {
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'data': (0, BudgetDetailResponseData_1.BudgetDetailResponseDataToJSON)(value['data']),
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
exports.BudgetDetailResponseToJSONTyped = BudgetDetailResponseToJSONTyped;
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
-
*/
|
|
7
|
-
import type { BudgetDetail } from './BudgetDetail';
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @export
|
|
11
|
-
* @interface BudgetDetailResponseData
|
|
12
|
-
*/
|
|
13
|
-
export interface BudgetDetailResponseData {
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {BudgetDetail}
|
|
17
|
-
* @memberof BudgetDetailResponseData
|
|
18
|
-
*/
|
|
19
|
-
budget: BudgetDetail;
|
|
20
|
-
/**
|
|
21
|
-
* The knowledge of the server
|
|
22
|
-
* @type {number}
|
|
23
|
-
* @memberof BudgetDetailResponseData
|
|
24
|
-
*/
|
|
25
|
-
server_knowledge: number;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Check if a given object implements the BudgetDetailResponseData interface.
|
|
29
|
-
*/
|
|
30
|
-
export declare function instanceOfBudgetDetailResponseData(value: object): value is BudgetDetailResponseData;
|
|
31
|
-
export declare function BudgetDetailResponseDataFromJSON(json: any): BudgetDetailResponseData;
|
|
32
|
-
export declare function BudgetDetailResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetDetailResponseData;
|
|
33
|
-
export declare function BudgetDetailResponseDataToJSON(json: any): BudgetDetailResponseData;
|
|
34
|
-
export declare function BudgetDetailResponseDataToJSONTyped(value?: BudgetDetailResponseData | null, ignoreDiscriminator?: boolean): any;
|