ynab 2.10.0 → 4.0.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 +50 -42
- 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} +51 -41
- 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} +39 -39
- 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 +10 -4
- package/dist/esm/models/Category.js +2 -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} +12 -12
- 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/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 +10 -4
- package/dist/models/Category.js +8 -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.js +6 -6
- package/dist/models/TransactionResponse.js +5 -6
- package/dist/models/TransactionResponseData.js +5 -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
|
@@ -0,0 +1,28 @@
|
|
|
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 { PlanDetailResponseData } from './PlanDetailResponseData';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface PlanDetailResponse
|
|
12
|
+
*/
|
|
13
|
+
export interface PlanDetailResponse {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {PlanDetailResponseData}
|
|
17
|
+
* @memberof PlanDetailResponse
|
|
18
|
+
*/
|
|
19
|
+
data: PlanDetailResponseData;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PlanDetailResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
export declare function instanceOfPlanDetailResponse(value: object): value is PlanDetailResponse;
|
|
25
|
+
export declare function PlanDetailResponseFromJSON(json: any): PlanDetailResponse;
|
|
26
|
+
export declare function PlanDetailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanDetailResponse;
|
|
27
|
+
export declare function PlanDetailResponseToJSON(json: any): PlanDetailResponse;
|
|
28
|
+
export declare function PlanDetailResponseToJSONTyped(value?: PlanDetailResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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.instanceOfPlanDetailResponse = instanceOfPlanDetailResponse;
|
|
12
|
+
exports.PlanDetailResponseFromJSON = PlanDetailResponseFromJSON;
|
|
13
|
+
exports.PlanDetailResponseFromJSONTyped = PlanDetailResponseFromJSONTyped;
|
|
14
|
+
exports.PlanDetailResponseToJSON = PlanDetailResponseToJSON;
|
|
15
|
+
exports.PlanDetailResponseToJSONTyped = PlanDetailResponseToJSONTyped;
|
|
16
|
+
const PlanDetailResponseData_1 = require("./PlanDetailResponseData");
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the PlanDetailResponse interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfPlanDetailResponse(value) {
|
|
21
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
function PlanDetailResponseFromJSON(json) {
|
|
26
|
+
return PlanDetailResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
function PlanDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'data': (0, PlanDetailResponseData_1.PlanDetailResponseDataFromJSON)(json['data']),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function PlanDetailResponseToJSON(json) {
|
|
37
|
+
return PlanDetailResponseToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function PlanDetailResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'data': (0, PlanDetailResponseData_1.PlanDetailResponseDataToJSON)(value['data']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YNAB API Endpoints
|
|
3
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
+
*
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
+
*/
|
|
7
|
+
import type { PlanDetail } from './PlanDetail';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface PlanDetailResponseData
|
|
12
|
+
*/
|
|
13
|
+
export interface PlanDetailResponseData {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {PlanDetail}
|
|
17
|
+
* @memberof PlanDetailResponseData
|
|
18
|
+
*/
|
|
19
|
+
plan: PlanDetail;
|
|
20
|
+
/**
|
|
21
|
+
* The knowledge of the server
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof PlanDetailResponseData
|
|
24
|
+
*/
|
|
25
|
+
server_knowledge: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the PlanDetailResponseData interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfPlanDetailResponseData(value: object): value is PlanDetailResponseData;
|
|
31
|
+
export declare function PlanDetailResponseDataFromJSON(json: any): PlanDetailResponseData;
|
|
32
|
+
export declare function PlanDetailResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanDetailResponseData;
|
|
33
|
+
export declare function PlanDetailResponseDataToJSON(json: any): PlanDetailResponseData;
|
|
34
|
+
export declare function PlanDetailResponseDataToJSONTyped(value?: PlanDetailResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfPlanDetailResponseData = instanceOfPlanDetailResponseData;
|
|
12
|
+
exports.PlanDetailResponseDataFromJSON = PlanDetailResponseDataFromJSON;
|
|
13
|
+
exports.PlanDetailResponseDataFromJSONTyped = PlanDetailResponseDataFromJSONTyped;
|
|
14
|
+
exports.PlanDetailResponseDataToJSON = PlanDetailResponseDataToJSON;
|
|
15
|
+
exports.PlanDetailResponseDataToJSONTyped = PlanDetailResponseDataToJSONTyped;
|
|
16
|
+
const PlanDetail_1 = require("./PlanDetail");
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the PlanDetailResponseData interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfPlanDetailResponseData(value) {
|
|
21
|
+
if (!('plan' in value) || value['plan'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('server_knowledge' in value) || value['server_knowledge'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PlanDetailResponseDataFromJSON(json) {
|
|
28
|
+
return PlanDetailResponseDataFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'plan': (0, PlanDetail_1.PlanDetailFromJSON)(json['plan']),
|
|
36
|
+
'server_knowledge': json['server_knowledge'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function PlanDetailResponseDataToJSON(json) {
|
|
40
|
+
return PlanDetailResponseDataToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function PlanDetailResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'plan': (0, PlanDetail_1.PlanDetailToJSON)(value['plan']),
|
|
48
|
+
'server_knowledge': value['server_knowledge'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 PlanSettings
|
|
13
|
+
*/
|
|
14
|
+
export interface PlanSettings {
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @type {DateFormat}
|
|
18
|
+
* @memberof PlanSettings
|
|
19
|
+
*/
|
|
20
|
+
date_format: DateFormat;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {CurrencyFormat}
|
|
24
|
+
* @memberof PlanSettings
|
|
25
|
+
*/
|
|
26
|
+
currency_format: CurrencyFormat;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the PlanSettings interface.
|
|
30
|
+
*/
|
|
31
|
+
export declare function instanceOfPlanSettings(value: object): value is PlanSettings;
|
|
32
|
+
export declare function PlanSettingsFromJSON(json: any): PlanSettings;
|
|
33
|
+
export declare function PlanSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanSettings;
|
|
34
|
+
export declare function PlanSettingsToJSON(json: any): PlanSettings;
|
|
35
|
+
export declare function PlanSettingsToJSONTyped(value?: PlanSettings | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -8,25 +8,27 @@
|
|
|
8
8
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.instanceOfPlanSettings = instanceOfPlanSettings;
|
|
12
|
+
exports.PlanSettingsFromJSON = PlanSettingsFromJSON;
|
|
13
|
+
exports.PlanSettingsFromJSONTyped = PlanSettingsFromJSONTyped;
|
|
14
|
+
exports.PlanSettingsToJSON = PlanSettingsToJSON;
|
|
15
|
+
exports.PlanSettingsToJSONTyped = PlanSettingsToJSONTyped;
|
|
12
16
|
const CurrencyFormat_1 = require("./CurrencyFormat");
|
|
13
17
|
const DateFormat_1 = require("./DateFormat");
|
|
14
18
|
/**
|
|
15
|
-
* Check if a given object implements the
|
|
19
|
+
* Check if a given object implements the PlanSettings interface.
|
|
16
20
|
*/
|
|
17
|
-
function
|
|
21
|
+
function instanceOfPlanSettings(value) {
|
|
18
22
|
if (!('date_format' in value) || value['date_format'] === undefined)
|
|
19
23
|
return false;
|
|
20
24
|
if (!('currency_format' in value) || value['currency_format'] === undefined)
|
|
21
25
|
return false;
|
|
22
26
|
return true;
|
|
23
27
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return BudgetSettingsFromJSONTyped(json, false);
|
|
28
|
+
function PlanSettingsFromJSON(json) {
|
|
29
|
+
return PlanSettingsFromJSONTyped(json, false);
|
|
27
30
|
}
|
|
28
|
-
|
|
29
|
-
function BudgetSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
function PlanSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
32
|
if (json == null) {
|
|
31
33
|
return json;
|
|
32
34
|
}
|
|
@@ -35,12 +37,10 @@ function BudgetSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
37
|
'currency_format': (0, CurrencyFormat_1.CurrencyFormatFromJSON)(json['currency_format']),
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return BudgetSettingsToJSONTyped(json, false);
|
|
40
|
+
function PlanSettingsToJSON(json) {
|
|
41
|
+
return PlanSettingsToJSONTyped(json, false);
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
-
function BudgetSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
function PlanSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
44
|
if (value == null) {
|
|
45
45
|
return value;
|
|
46
46
|
}
|
|
@@ -49,4 +49,3 @@ function BudgetSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
49
|
'currency_format': (0, CurrencyFormat_1.CurrencyFormatToJSON)(value['currency_format']),
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
exports.BudgetSettingsToJSONTyped = BudgetSettingsToJSONTyped;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { PlanSettingsResponseData } from './PlanSettingsResponseData';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface PlanSettingsResponse
|
|
12
|
+
*/
|
|
13
|
+
export interface PlanSettingsResponse {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {PlanSettingsResponseData}
|
|
17
|
+
* @memberof PlanSettingsResponse
|
|
18
|
+
*/
|
|
19
|
+
data: PlanSettingsResponseData;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PlanSettingsResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
export declare function instanceOfPlanSettingsResponse(value: object): value is PlanSettingsResponse;
|
|
25
|
+
export declare function PlanSettingsResponseFromJSON(json: any): PlanSettingsResponse;
|
|
26
|
+
export declare function PlanSettingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanSettingsResponse;
|
|
27
|
+
export declare function PlanSettingsResponseToJSON(json: any): PlanSettingsResponse;
|
|
28
|
+
export declare function PlanSettingsResponseToJSONTyped(value?: PlanSettingsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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.instanceOfPlanSettingsResponse = instanceOfPlanSettingsResponse;
|
|
12
|
+
exports.PlanSettingsResponseFromJSON = PlanSettingsResponseFromJSON;
|
|
13
|
+
exports.PlanSettingsResponseFromJSONTyped = PlanSettingsResponseFromJSONTyped;
|
|
14
|
+
exports.PlanSettingsResponseToJSON = PlanSettingsResponseToJSON;
|
|
15
|
+
exports.PlanSettingsResponseToJSONTyped = PlanSettingsResponseToJSONTyped;
|
|
16
|
+
const PlanSettingsResponseData_1 = require("./PlanSettingsResponseData");
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the PlanSettingsResponse interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfPlanSettingsResponse(value) {
|
|
21
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
function PlanSettingsResponseFromJSON(json) {
|
|
26
|
+
return PlanSettingsResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
function PlanSettingsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'data': (0, PlanSettingsResponseData_1.PlanSettingsResponseDataFromJSON)(json['data']),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function PlanSettingsResponseToJSON(json) {
|
|
37
|
+
return PlanSettingsResponseToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function PlanSettingsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'data': (0, PlanSettingsResponseData_1.PlanSettingsResponseDataToJSON)(value['data']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { PlanSettings } from './PlanSettings';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface PlanSettingsResponseData
|
|
12
|
+
*/
|
|
13
|
+
export interface PlanSettingsResponseData {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {PlanSettings}
|
|
17
|
+
* @memberof PlanSettingsResponseData
|
|
18
|
+
*/
|
|
19
|
+
settings: PlanSettings;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PlanSettingsResponseData interface.
|
|
23
|
+
*/
|
|
24
|
+
export declare function instanceOfPlanSettingsResponseData(value: object): value is PlanSettingsResponseData;
|
|
25
|
+
export declare function PlanSettingsResponseDataFromJSON(json: any): PlanSettingsResponseData;
|
|
26
|
+
export declare function PlanSettingsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanSettingsResponseData;
|
|
27
|
+
export declare function PlanSettingsResponseDataToJSON(json: any): PlanSettingsResponseData;
|
|
28
|
+
export declare function PlanSettingsResponseDataToJSONTyped(value?: PlanSettingsResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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.instanceOfPlanSettingsResponseData = instanceOfPlanSettingsResponseData;
|
|
12
|
+
exports.PlanSettingsResponseDataFromJSON = PlanSettingsResponseDataFromJSON;
|
|
13
|
+
exports.PlanSettingsResponseDataFromJSONTyped = PlanSettingsResponseDataFromJSONTyped;
|
|
14
|
+
exports.PlanSettingsResponseDataToJSON = PlanSettingsResponseDataToJSON;
|
|
15
|
+
exports.PlanSettingsResponseDataToJSONTyped = PlanSettingsResponseDataToJSONTyped;
|
|
16
|
+
const PlanSettings_1 = require("./PlanSettings");
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the PlanSettingsResponseData interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfPlanSettingsResponseData(value) {
|
|
21
|
+
if (!('settings' in value) || value['settings'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
function PlanSettingsResponseDataFromJSON(json) {
|
|
26
|
+
return PlanSettingsResponseDataFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
function PlanSettingsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'settings': (0, PlanSettings_1.PlanSettingsFromJSON)(json['settings']),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function PlanSettingsResponseDataToJSON(json) {
|
|
37
|
+
return PlanSettingsResponseDataToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function PlanSettingsResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'settings': (0, PlanSettings_1.PlanSettingsToJSON)(value['settings']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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 PlanSummary
|
|
14
|
+
*/
|
|
15
|
+
export interface PlanSummary {
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @type {string}
|
|
19
|
+
* @memberof PlanSummary
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PlanSummary
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* The last time any changes were made to the plan from either a web or mobile client
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PlanSummary
|
|
32
|
+
*/
|
|
33
|
+
last_modified_on?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The earliest plan month
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PlanSummary
|
|
38
|
+
*/
|
|
39
|
+
first_month?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The latest plan month
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PlanSummary
|
|
44
|
+
*/
|
|
45
|
+
last_month?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {DateFormat}
|
|
49
|
+
* @memberof PlanSummary
|
|
50
|
+
*/
|
|
51
|
+
date_format?: DateFormat;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {CurrencyFormat}
|
|
55
|
+
* @memberof PlanSummary
|
|
56
|
+
*/
|
|
57
|
+
currency_format?: CurrencyFormat;
|
|
58
|
+
/**
|
|
59
|
+
* The plan accounts (only included if `include_accounts=true` specified as query parameter)
|
|
60
|
+
* @type {Array<Account>}
|
|
61
|
+
* @memberof PlanSummary
|
|
62
|
+
*/
|
|
63
|
+
accounts?: Array<Account>;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the PlanSummary interface.
|
|
67
|
+
*/
|
|
68
|
+
export declare function instanceOfPlanSummary(value: object): value is PlanSummary;
|
|
69
|
+
export declare function PlanSummaryFromJSON(json: any): PlanSummary;
|
|
70
|
+
export declare function PlanSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanSummary;
|
|
71
|
+
export declare function PlanSummaryToJSON(json: any): PlanSummary;
|
|
72
|
+
export declare function PlanSummaryToJSONTyped(value?: PlanSummary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -8,26 +8,28 @@
|
|
|
8
8
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.instanceOfPlanSummary = instanceOfPlanSummary;
|
|
12
|
+
exports.PlanSummaryFromJSON = PlanSummaryFromJSON;
|
|
13
|
+
exports.PlanSummaryFromJSONTyped = PlanSummaryFromJSONTyped;
|
|
14
|
+
exports.PlanSummaryToJSON = PlanSummaryToJSON;
|
|
15
|
+
exports.PlanSummaryToJSONTyped = PlanSummaryToJSONTyped;
|
|
12
16
|
const Account_1 = require("./Account");
|
|
13
17
|
const CurrencyFormat_1 = require("./CurrencyFormat");
|
|
14
18
|
const DateFormat_1 = require("./DateFormat");
|
|
15
19
|
/**
|
|
16
|
-
* Check if a given object implements the
|
|
20
|
+
* Check if a given object implements the PlanSummary interface.
|
|
17
21
|
*/
|
|
18
|
-
function
|
|
22
|
+
function instanceOfPlanSummary(value) {
|
|
19
23
|
if (!('id' in value) || value['id'] === undefined)
|
|
20
24
|
return false;
|
|
21
25
|
if (!('name' in value) || value['name'] === undefined)
|
|
22
26
|
return false;
|
|
23
27
|
return true;
|
|
24
28
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return BudgetSummaryFromJSONTyped(json, false);
|
|
29
|
+
function PlanSummaryFromJSON(json) {
|
|
30
|
+
return PlanSummaryFromJSONTyped(json, false);
|
|
28
31
|
}
|
|
29
|
-
|
|
30
|
-
function BudgetSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
function PlanSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
33
|
if (json == null) {
|
|
32
34
|
return json;
|
|
33
35
|
}
|
|
@@ -42,12 +44,10 @@ function BudgetSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
44
|
'accounts': json['accounts'] == null ? undefined : (json['accounts'].map(Account_1.AccountFromJSON)),
|
|
43
45
|
};
|
|
44
46
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
return BudgetSummaryToJSONTyped(json, false);
|
|
47
|
+
function PlanSummaryToJSON(json) {
|
|
48
|
+
return PlanSummaryToJSONTyped(json, false);
|
|
48
49
|
}
|
|
49
|
-
|
|
50
|
-
function BudgetSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
function PlanSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
51
|
if (value == null) {
|
|
52
52
|
return value;
|
|
53
53
|
}
|
|
@@ -62,4 +62,3 @@ function BudgetSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
62
62
|
'accounts': value['accounts'] == null ? undefined : (value['accounts'].map(Account_1.AccountToJSON)),
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
exports.BudgetSummaryToJSONTyped = BudgetSummaryToJSONTyped;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { PlanSummaryResponseData } from './PlanSummaryResponseData';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface PlanSummaryResponse
|
|
12
|
+
*/
|
|
13
|
+
export interface PlanSummaryResponse {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {PlanSummaryResponseData}
|
|
17
|
+
* @memberof PlanSummaryResponse
|
|
18
|
+
*/
|
|
19
|
+
data: PlanSummaryResponseData;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PlanSummaryResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
export declare function instanceOfPlanSummaryResponse(value: object): value is PlanSummaryResponse;
|
|
25
|
+
export declare function PlanSummaryResponseFromJSON(json: any): PlanSummaryResponse;
|
|
26
|
+
export declare function PlanSummaryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanSummaryResponse;
|
|
27
|
+
export declare function PlanSummaryResponseToJSON(json: any): PlanSummaryResponse;
|
|
28
|
+
export declare function PlanSummaryResponseToJSONTyped(value?: PlanSummaryResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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.instanceOfPlanSummaryResponse = instanceOfPlanSummaryResponse;
|
|
12
|
+
exports.PlanSummaryResponseFromJSON = PlanSummaryResponseFromJSON;
|
|
13
|
+
exports.PlanSummaryResponseFromJSONTyped = PlanSummaryResponseFromJSONTyped;
|
|
14
|
+
exports.PlanSummaryResponseToJSON = PlanSummaryResponseToJSON;
|
|
15
|
+
exports.PlanSummaryResponseToJSONTyped = PlanSummaryResponseToJSONTyped;
|
|
16
|
+
const PlanSummaryResponseData_1 = require("./PlanSummaryResponseData");
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the PlanSummaryResponse interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfPlanSummaryResponse(value) {
|
|
21
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
function PlanSummaryResponseFromJSON(json) {
|
|
26
|
+
return PlanSummaryResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
function PlanSummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'data': (0, PlanSummaryResponseData_1.PlanSummaryResponseDataFromJSON)(json['data']),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function PlanSummaryResponseToJSON(json) {
|
|
37
|
+
return PlanSummaryResponseToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function PlanSummaryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'data': (0, PlanSummaryResponseData_1.PlanSummaryResponseDataToJSON)(value['data']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YNAB API Endpoints
|
|
3
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
+
*
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
+
*/
|
|
7
|
+
import type { PlanSummary } from './PlanSummary';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface PlanSummaryResponseData
|
|
12
|
+
*/
|
|
13
|
+
export interface PlanSummaryResponseData {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {Array<PlanSummary>}
|
|
17
|
+
* @memberof PlanSummaryResponseData
|
|
18
|
+
*/
|
|
19
|
+
plans: Array<PlanSummary>;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {PlanSummary}
|
|
23
|
+
* @memberof PlanSummaryResponseData
|
|
24
|
+
*/
|
|
25
|
+
default_plan?: PlanSummary;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the PlanSummaryResponseData interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfPlanSummaryResponseData(value: object): value is PlanSummaryResponseData;
|
|
31
|
+
export declare function PlanSummaryResponseDataFromJSON(json: any): PlanSummaryResponseData;
|
|
32
|
+
export declare function PlanSummaryResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanSummaryResponseData;
|
|
33
|
+
export declare function PlanSummaryResponseDataToJSON(json: any): PlanSummaryResponseData;
|
|
34
|
+
export declare function PlanSummaryResponseDataToJSONTyped(value?: PlanSummaryResponseData | null, ignoreDiscriminator?: boolean): any;
|