ynab 2.0.0 → 2.3.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 +2 -2
- package/dist/apis/AccountsApi.d.ts +1 -1
- package/dist/apis/AccountsApi.js +1 -1
- package/dist/apis/BudgetsApi.d.ts +1 -1
- package/dist/apis/BudgetsApi.js +1 -1
- package/dist/apis/CategoriesApi.d.ts +17 -2
- package/dist/apis/CategoriesApi.js +43 -1
- package/dist/apis/CustomTransactionsApi.d.ts +1 -1
- package/dist/apis/MonthsApi.d.ts +1 -1
- package/dist/apis/MonthsApi.js +1 -1
- package/dist/apis/PayeeLocationsApi.d.ts +1 -1
- package/dist/apis/PayeeLocationsApi.js +1 -1
- package/dist/apis/PayeesApi.d.ts +17 -2
- package/dist/apis/PayeesApi.js +43 -1
- package/dist/apis/ScheduledTransactionsApi.d.ts +1 -1
- package/dist/apis/ScheduledTransactionsApi.js +1 -1
- package/dist/apis/TransactionsApi.d.ts +13 -13
- package/dist/apis/TransactionsApi.js +9 -9
- package/dist/apis/UserApi.d.ts +1 -1
- package/dist/apis/UserApi.js +1 -1
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +5 -2
- package/dist/browser/ynab.js +1 -1
- package/dist/esm/apis/CategoriesApi.d.ts +16 -1
- package/dist/esm/apis/CategoriesApi.js +65 -1
- package/dist/esm/apis/CustomTransactionsApi.d.ts +1 -1
- package/dist/esm/apis/index.d.ts +0 -1
- package/dist/esm/apis/index.js +0 -1
- package/dist/esm/models/Category.d.ts +0 -1
- package/dist/esm/models/Category.js +0 -1
- package/dist/esm/models/CategoryGoalType.d.ts +25 -0
- package/dist/esm/models/CategoryGoalType.js +29 -0
- package/dist/esm/models/HybridTransaction.d.ts +9 -30
- package/dist/esm/models/HybridTransaction.js +7 -26
- package/dist/esm/models/PatchCategoryWrapper.d.ts +32 -0
- package/dist/esm/models/PatchCategoryWrapper.js +44 -0
- package/dist/esm/models/SaveCategory.d.ts +43 -0
- package/dist/esm/models/SaveCategory.js +47 -0
- package/dist/esm/models/SaveTransaction.d.ts +8 -28
- package/dist/esm/models/SaveTransaction.js +6 -24
- package/dist/esm/models/SaveTransactionWithId.d.ts +8 -28
- package/dist/esm/models/SaveTransactionWithId.js +6 -24
- package/dist/esm/models/SaveTransactionWithOptionalFields.d.ts +8 -28
- package/dist/esm/models/SaveTransactionWithOptionalFields.js +6 -24
- package/dist/esm/models/SaveTransactionWithOptionalFieldsFlagColor.d.ts +25 -0
- package/dist/esm/models/SaveTransactionWithOptionalFieldsFlagColor.js +29 -0
- package/dist/esm/models/ScheduledTransactionDetail.d.ts +4 -16
- package/dist/esm/models/ScheduledTransactionDetail.js +3 -14
- package/dist/esm/models/ScheduledTransactionSummary.d.ts +4 -16
- package/dist/esm/models/ScheduledTransactionSummary.js +3 -14
- package/dist/esm/models/ScheduledTransactionSummaryFlagColor.d.ts +25 -0
- package/dist/esm/models/ScheduledTransactionSummaryFlagColor.js +29 -0
- package/dist/esm/models/TransactionClearedStatus.d.ts +24 -0
- package/dist/esm/models/TransactionClearedStatus.js +31 -0
- package/dist/esm/models/TransactionDetail.d.ts +9 -30
- package/dist/esm/models/TransactionDetail.js +7 -26
- package/dist/esm/models/TransactionFlagColor.d.ts +27 -0
- package/dist/esm/models/TransactionFlagColor.js +34 -0
- package/dist/esm/models/TransactionSummary.d.ts +9 -30
- package/dist/esm/models/TransactionSummary.js +7 -26
- package/dist/esm/models/TransactionSummaryDebtTransactionType.d.ts +25 -0
- package/dist/esm/models/TransactionSummaryDebtTransactionType.js +29 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/index.js +5 -1
- package/dist/models/Account.d.ts +8 -8
- package/dist/models/Account.js +51 -46
- package/dist/models/AccountResponse.d.ts +2 -2
- package/dist/models/AccountResponse.js +8 -11
- package/dist/models/AccountResponseData.d.ts +2 -2
- package/dist/models/AccountResponseData.js +8 -11
- package/dist/models/AccountType.d.ts +3 -2
- package/dist/models/AccountType.js +13 -2
- package/dist/models/AccountsResponse.d.ts +2 -2
- package/dist/models/AccountsResponse.js +8 -11
- package/dist/models/AccountsResponseData.d.ts +2 -2
- package/dist/models/AccountsResponseData.js +11 -13
- package/dist/models/BudgetDetail.d.ts +8 -8
- package/dist/models/BudgetDetail.js +45 -48
- package/dist/models/BudgetDetailResponse.d.ts +2 -2
- package/dist/models/BudgetDetailResponse.js +8 -11
- package/dist/models/BudgetDetailResponseData.d.ts +2 -2
- package/dist/models/BudgetDetailResponseData.js +11 -13
- package/dist/models/BudgetSettings.d.ts +2 -2
- package/dist/models/BudgetSettings.js +11 -13
- package/dist/models/BudgetSettingsResponse.d.ts +2 -2
- package/dist/models/BudgetSettingsResponse.js +8 -11
- package/dist/models/BudgetSettingsResponseData.d.ts +2 -2
- package/dist/models/BudgetSettingsResponseData.js +8 -11
- package/dist/models/BudgetSummary.d.ts +4 -4
- package/dist/models/BudgetSummary.js +23 -26
- package/dist/models/BudgetSummaryResponse.d.ts +2 -2
- package/dist/models/BudgetSummaryResponse.js +8 -11
- package/dist/models/BudgetSummaryResponseData.d.ts +2 -2
- package/dist/models/BudgetSummaryResponseData.js +10 -14
- package/dist/models/BulkResponse.d.ts +2 -2
- package/dist/models/BulkResponse.js +8 -11
- package/dist/models/BulkResponseData.d.ts +2 -2
- package/dist/models/BulkResponseData.js +8 -11
- package/dist/models/BulkResponseDataBulk.d.ts +2 -2
- package/dist/models/BulkResponseDataBulk.js +11 -13
- package/dist/models/BulkTransactions.d.ts +5 -5
- package/dist/models/BulkTransactions.js +10 -13
- package/dist/models/CategoriesResponse.d.ts +2 -2
- package/dist/models/CategoriesResponse.js +8 -11
- package/dist/models/CategoriesResponseData.d.ts +2 -2
- package/dist/models/CategoriesResponseData.js +11 -13
- package/dist/models/Category.d.ts +22 -17
- package/dist/models/Category.js +61 -57
- package/dist/models/CategoryGoalType.d.ts +25 -0
- package/dist/models/CategoryGoalType.js +36 -0
- package/dist/models/CategoryGroup.d.ts +2 -2
- package/dist/models/CategoryGroup.js +17 -17
- package/dist/models/CategoryGroupWithCategories.d.ts +2 -2
- package/dist/models/CategoryGroupWithCategories.js +20 -19
- package/dist/models/CategoryResponse.d.ts +2 -2
- package/dist/models/CategoryResponse.js +8 -11
- package/dist/models/CategoryResponseData.d.ts +2 -2
- package/dist/models/CategoryResponseData.js +8 -11
- package/dist/models/CurrencyFormat.d.ts +2 -2
- package/dist/models/CurrencyFormat.js +29 -25
- package/dist/models/DateFormat.d.ts +2 -2
- package/dist/models/DateFormat.js +8 -11
- package/dist/models/ErrorDetail.d.ts +2 -2
- package/dist/models/ErrorDetail.js +14 -15
- package/dist/models/ErrorResponse.d.ts +2 -2
- package/dist/models/ErrorResponse.js +8 -11
- package/dist/models/ExistingTransaction.d.ts +94 -0
- package/dist/models/ExistingTransaction.js +68 -0
- package/dist/models/HybridTransaction.d.ts +29 -44
- package/dist/models/HybridTransaction.js +67 -80
- package/dist/models/HybridTransactionAllOf.d.ts +1 -1
- package/dist/models/HybridTransactionsResponse.d.ts +2 -2
- package/dist/models/HybridTransactionsResponse.js +8 -11
- package/dist/models/HybridTransactionsResponseData.d.ts +2 -2
- package/dist/models/HybridTransactionsResponseData.js +10 -14
- package/dist/models/MonthDetail.d.ts +4 -4
- package/dist/models/MonthDetail.js +30 -28
- package/dist/models/MonthDetailResponse.d.ts +2 -2
- package/dist/models/MonthDetailResponse.js +8 -11
- package/dist/models/MonthDetailResponseData.d.ts +2 -2
- package/dist/models/MonthDetailResponseData.js +8 -11
- package/dist/models/MonthSummariesResponse.d.ts +2 -2
- package/dist/models/MonthSummariesResponse.js +8 -11
- package/dist/models/MonthSummariesResponseData.d.ts +2 -2
- package/dist/models/MonthSummariesResponseData.js +11 -13
- package/dist/models/MonthSummary.d.ts +4 -4
- package/dist/models/MonthSummary.js +27 -26
- package/dist/models/NewTransaction.d.ts +100 -0
- package/dist/models/NewTransaction.js +70 -0
- package/dist/models/PatchCategoryWrapper.d.ts +32 -0
- package/dist/models/PatchCategoryWrapper.js +48 -0
- package/dist/models/PatchMonthCategoryWrapper.d.ts +2 -2
- package/dist/models/PatchMonthCategoryWrapper.js +8 -11
- package/dist/models/PatchPayeeWrapper.d.ts +32 -0
- package/dist/models/PatchPayeeWrapper.js +48 -0
- package/dist/models/PatchTransactionsWrapper.d.ts +5 -5
- package/dist/models/PatchTransactionsWrapper.js +10 -13
- package/dist/models/Payee.d.ts +3 -3
- package/dist/models/Payee.js +16 -18
- package/dist/models/PayeeLocation.d.ts +2 -2
- package/dist/models/PayeeLocation.js +20 -19
- package/dist/models/PayeeLocationResponse.d.ts +2 -2
- package/dist/models/PayeeLocationResponse.js +8 -11
- package/dist/models/PayeeLocationResponseData.d.ts +2 -2
- package/dist/models/PayeeLocationResponseData.js +8 -11
- package/dist/models/PayeeLocationsResponse.d.ts +2 -2
- package/dist/models/PayeeLocationsResponse.js +8 -11
- package/dist/models/PayeeLocationsResponseData.d.ts +2 -2
- package/dist/models/PayeeLocationsResponseData.js +8 -11
- package/dist/models/PayeeResponse.d.ts +2 -2
- package/dist/models/PayeeResponse.js +8 -11
- package/dist/models/PayeeResponseData.d.ts +2 -2
- package/dist/models/PayeeResponseData.js +8 -11
- package/dist/models/PayeesResponse.d.ts +2 -2
- package/dist/models/PayeesResponse.js +8 -11
- package/dist/models/PayeesResponseData.d.ts +2 -2
- package/dist/models/PayeesResponseData.js +11 -13
- package/dist/models/PostAccountWrapper.d.ts +2 -2
- package/dist/models/PostAccountWrapper.js +8 -11
- package/dist/models/PostTransactionsWrapper.d.ts +7 -7
- package/dist/models/PostTransactionsWrapper.js +10 -15
- package/dist/models/PutTransactionWrapper.d.ts +5 -5
- package/dist/models/PutTransactionWrapper.js +10 -13
- package/dist/models/SaveAccount.d.ts +2 -2
- package/dist/models/SaveAccount.js +14 -15
- package/dist/models/SaveCategory.d.ts +43 -0
- package/dist/models/SaveCategory.js +49 -0
- package/dist/models/SaveCategoryResponse.d.ts +2 -2
- package/dist/models/SaveCategoryResponse.js +8 -11
- package/dist/models/SaveCategoryResponseData.d.ts +2 -2
- package/dist/models/SaveCategoryResponseData.js +11 -13
- package/dist/models/SaveMonthCategory.d.ts +2 -2
- package/dist/models/SaveMonthCategory.js +8 -11
- package/dist/models/SavePayee.d.ts +31 -0
- package/dist/models/SavePayee.js +45 -0
- package/dist/models/SavePayeeResponse.d.ts +32 -0
- package/dist/models/SavePayeeResponse.js +48 -0
- package/dist/models/SavePayeeResponseData.d.ts +38 -0
- package/dist/models/SavePayeeResponseData.js +52 -0
- package/dist/models/SaveSubTransaction.d.ts +6 -6
- package/dist/models/SaveSubTransaction.js +16 -20
- package/dist/models/SaveTransaction.d.ts +8 -28
- package/dist/models/SaveTransaction.js +7 -25
- package/dist/models/SaveTransactionWithId.d.ts +8 -28
- package/dist/models/SaveTransactionWithId.js +7 -25
- package/dist/models/SaveTransactionWithIdOrImportId.d.ts +106 -0
- package/dist/models/SaveTransactionWithIdOrImportId.js +72 -0
- package/dist/models/SaveTransactionWithOptionalFields.d.ts +14 -40
- package/dist/models/SaveTransactionWithOptionalFields.js +30 -55
- package/dist/models/SaveTransactionWithOptionalFieldsFlagColor.d.ts +25 -0
- package/dist/models/SaveTransactionWithOptionalFieldsFlagColor.js +36 -0
- package/dist/models/SaveTransactionsResponse.d.ts +2 -2
- package/dist/models/SaveTransactionsResponse.js +8 -11
- package/dist/models/SaveTransactionsResponseData.d.ts +2 -2
- package/dist/models/SaveTransactionsResponseData.js +17 -20
- package/dist/models/ScheduledSubTransaction.d.ts +6 -6
- package/dist/models/ScheduledSubTransaction.js +25 -26
- package/dist/models/ScheduledTransactionDetail.d.ts +18 -24
- package/dist/models/ScheduledTransactionDetail.js +50 -55
- package/dist/models/ScheduledTransactionResponse.d.ts +2 -2
- package/dist/models/ScheduledTransactionResponse.js +8 -11
- package/dist/models/ScheduledTransactionResponseData.d.ts +2 -2
- package/dist/models/ScheduledTransactionResponseData.js +8 -11
- package/dist/models/ScheduledTransactionSummary.d.ts +16 -22
- package/dist/models/ScheduledTransactionSummary.js +40 -47
- package/dist/models/ScheduledTransactionSummaryFlagColor.d.ts +25 -0
- package/dist/models/ScheduledTransactionSummaryFlagColor.js +36 -0
- package/dist/models/ScheduledTransactionsResponse.d.ts +2 -2
- package/dist/models/ScheduledTransactionsResponse.js +8 -11
- package/dist/models/ScheduledTransactionsResponseData.d.ts +2 -2
- package/dist/models/ScheduledTransactionsResponseData.js +11 -13
- package/dist/models/SubTransaction.d.ts +9 -9
- package/dist/models/SubTransaction.js +31 -32
- package/dist/models/TransactionClearedStatus.d.ts +25 -0
- package/dist/models/TransactionClearedStatus.js +48 -0
- package/dist/models/TransactionDetail.d.ts +28 -43
- package/dist/models/TransactionDetail.js +65 -78
- package/dist/models/TransactionFlagColor.d.ts +28 -0
- package/dist/models/TransactionFlagColor.js +51 -0
- package/dist/models/TransactionResponse.d.ts +2 -2
- package/dist/models/TransactionResponse.js +8 -11
- package/dist/models/TransactionResponseData.d.ts +2 -2
- package/dist/models/TransactionResponseData.js +8 -11
- package/dist/models/TransactionSummary.d.ts +26 -41
- package/dist/models/TransactionSummary.js +55 -70
- package/dist/models/TransactionSummaryDebtTransactionType.d.ts +25 -0
- package/dist/models/TransactionSummaryDebtTransactionType.js +36 -0
- package/dist/models/TransactionsImportResponse.d.ts +2 -2
- package/dist/models/TransactionsImportResponse.js +8 -11
- package/dist/models/TransactionsImportResponseData.d.ts +2 -2
- package/dist/models/TransactionsImportResponseData.js +8 -11
- package/dist/models/TransactionsResponse.d.ts +2 -2
- package/dist/models/TransactionsResponse.js +8 -11
- package/dist/models/TransactionsResponseData.d.ts +2 -2
- package/dist/models/TransactionsResponseData.js +11 -13
- package/dist/models/User.d.ts +2 -2
- package/dist/models/User.js +8 -11
- package/dist/models/UserResponse.d.ts +2 -2
- package/dist/models/UserResponse.js +8 -11
- package/dist/models/UserResponseData.d.ts +2 -2
- package/dist/models/UserResponseData.js +8 -11
- package/dist/models/index.d.ts +11 -9
- package/dist/models/index.js +16 -10
- package/dist/runtime.d.ts +10 -10
- package/dist/runtime.js +1 -1
- package/package.json +6 -7
package/dist/models/Category.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* YNAB API Endpoints
|
|
6
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
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.70.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CategoryToJSON = exports.CategoryFromJSONTyped = exports.CategoryFromJSON = exports.instanceOfCategory = exports.CategoryGoalTypeEnum = void 0;
|
|
17
|
-
const runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* @export
|
|
20
19
|
*/
|
|
@@ -24,22 +23,28 @@ exports.CategoryGoalTypeEnum = {
|
|
|
24
23
|
Mf: 'MF',
|
|
25
24
|
Need: 'NEED',
|
|
26
25
|
Debt: 'DEBT',
|
|
27
|
-
Null: 'null'
|
|
28
26
|
};
|
|
29
27
|
/**
|
|
30
28
|
* Check if a given object implements the Category interface.
|
|
31
29
|
*/
|
|
32
30
|
function instanceOfCategory(value) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
31
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('category_group_id' in value) || value['category_group_id'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('hidden' in value) || value['hidden'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('budgeted' in value) || value['budgeted'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('activity' in value) || value['activity'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('balance' in value) || value['balance'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
43
48
|
}
|
|
44
49
|
exports.instanceOfCategory = instanceOfCategory;
|
|
45
50
|
function CategoryFromJSON(json) {
|
|
@@ -47,67 +52,66 @@ function CategoryFromJSON(json) {
|
|
|
47
52
|
}
|
|
48
53
|
exports.CategoryFromJSON = CategoryFromJSON;
|
|
49
54
|
function CategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
-
if (
|
|
55
|
+
if (json == null) {
|
|
51
56
|
return json;
|
|
52
57
|
}
|
|
53
58
|
return {
|
|
54
59
|
'id': json['id'],
|
|
55
60
|
'category_group_id': json['category_group_id'],
|
|
56
|
-
'category_group_name':
|
|
61
|
+
'category_group_name': json['category_group_name'] == null ? undefined : json['category_group_name'],
|
|
57
62
|
'name': json['name'],
|
|
58
63
|
'hidden': json['hidden'],
|
|
59
|
-
'original_category_group_id':
|
|
60
|
-
'note':
|
|
64
|
+
'original_category_group_id': json['original_category_group_id'] == null ? undefined : json['original_category_group_id'],
|
|
65
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
61
66
|
'budgeted': json['budgeted'],
|
|
62
67
|
'activity': json['activity'],
|
|
63
68
|
'balance': json['balance'],
|
|
64
|
-
'goal_type':
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
'
|
|
74
|
-
'
|
|
75
|
-
'
|
|
69
|
+
'goal_type': json['goal_type'] == null ? undefined : json['goal_type'],
|
|
70
|
+
'goal_needs_whole_amount': json['goal_needs_whole_amount'] == null ? undefined : json['goal_needs_whole_amount'],
|
|
71
|
+
'goal_day': json['goal_day'] == null ? undefined : json['goal_day'],
|
|
72
|
+
'goal_cadence': json['goal_cadence'] == null ? undefined : json['goal_cadence'],
|
|
73
|
+
'goal_cadence_frequency': json['goal_cadence_frequency'] == null ? undefined : json['goal_cadence_frequency'],
|
|
74
|
+
'goal_creation_month': json['goal_creation_month'] == null ? undefined : json['goal_creation_month'],
|
|
75
|
+
'goal_target': json['goal_target'] == null ? undefined : json['goal_target'],
|
|
76
|
+
'goal_target_month': json['goal_target_month'] == null ? undefined : json['goal_target_month'],
|
|
77
|
+
'goal_percentage_complete': json['goal_percentage_complete'] == null ? undefined : json['goal_percentage_complete'],
|
|
78
|
+
'goal_months_to_budget': json['goal_months_to_budget'] == null ? undefined : json['goal_months_to_budget'],
|
|
79
|
+
'goal_under_funded': json['goal_under_funded'] == null ? undefined : json['goal_under_funded'],
|
|
80
|
+
'goal_overall_funded': json['goal_overall_funded'] == null ? undefined : json['goal_overall_funded'],
|
|
81
|
+
'goal_overall_left': json['goal_overall_left'] == null ? undefined : json['goal_overall_left'],
|
|
76
82
|
'deleted': json['deleted'],
|
|
77
83
|
};
|
|
78
84
|
}
|
|
79
85
|
exports.CategoryFromJSONTyped = CategoryFromJSONTyped;
|
|
80
86
|
function CategoryToJSON(value) {
|
|
81
|
-
if (value
|
|
82
|
-
return
|
|
83
|
-
}
|
|
84
|
-
if (value === null) {
|
|
85
|
-
return null;
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
86
89
|
}
|
|
87
90
|
return {
|
|
88
|
-
'id': value
|
|
89
|
-
'category_group_id': value
|
|
90
|
-
'category_group_name': value
|
|
91
|
-
'name': value
|
|
92
|
-
'hidden': value
|
|
93
|
-
'original_category_group_id': value
|
|
94
|
-
'note': value
|
|
95
|
-
'budgeted': value
|
|
96
|
-
'activity': value
|
|
97
|
-
'balance': value
|
|
98
|
-
'goal_type': value
|
|
99
|
-
'
|
|
100
|
-
'
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'
|
|
104
|
-
'
|
|
105
|
-
'
|
|
106
|
-
'
|
|
107
|
-
'
|
|
108
|
-
'
|
|
109
|
-
'
|
|
110
|
-
'
|
|
91
|
+
'id': value['id'],
|
|
92
|
+
'category_group_id': value['category_group_id'],
|
|
93
|
+
'category_group_name': value['category_group_name'],
|
|
94
|
+
'name': value['name'],
|
|
95
|
+
'hidden': value['hidden'],
|
|
96
|
+
'original_category_group_id': value['original_category_group_id'],
|
|
97
|
+
'note': value['note'],
|
|
98
|
+
'budgeted': value['budgeted'],
|
|
99
|
+
'activity': value['activity'],
|
|
100
|
+
'balance': value['balance'],
|
|
101
|
+
'goal_type': value['goal_type'],
|
|
102
|
+
'goal_needs_whole_amount': value['goal_needs_whole_amount'],
|
|
103
|
+
'goal_day': value['goal_day'],
|
|
104
|
+
'goal_cadence': value['goal_cadence'],
|
|
105
|
+
'goal_cadence_frequency': value['goal_cadence_frequency'],
|
|
106
|
+
'goal_creation_month': value['goal_creation_month'],
|
|
107
|
+
'goal_target': value['goal_target'],
|
|
108
|
+
'goal_target_month': value['goal_target_month'],
|
|
109
|
+
'goal_percentage_complete': value['goal_percentage_complete'],
|
|
110
|
+
'goal_months_to_budget': value['goal_months_to_budget'],
|
|
111
|
+
'goal_under_funded': value['goal_under_funded'],
|
|
112
|
+
'goal_overall_funded': value['goal_overall_funded'],
|
|
113
|
+
'goal_overall_left': value['goal_overall_left'],
|
|
114
|
+
'deleted': value['deleted'],
|
|
111
115
|
};
|
|
112
116
|
}
|
|
113
117
|
exports.CategoryToJSON = CategoryToJSON;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YNAB API Endpoints
|
|
3
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The type of goal, if the category has a goal (TB='Target Category Balance', TBD='Target Category Balance by Date', MF='Monthly Funding', NEED='Plan Your Spending')
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CategoryGoalType
|
|
16
|
+
*/
|
|
17
|
+
export interface CategoryGoalType {
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the CategoryGoalType interface.
|
|
21
|
+
*/
|
|
22
|
+
export declare function instanceOfCategoryGoalType(value: object): boolean;
|
|
23
|
+
export declare function CategoryGoalTypeFromJSON(json: any): CategoryGoalType;
|
|
24
|
+
export declare function CategoryGoalTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryGoalType;
|
|
25
|
+
export declare function CategoryGoalTypeToJSON(value?: CategoryGoalType | null): any;
|
|
@@ -0,0 +1,36 @@
|
|
|
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.CategoryGoalTypeToJSON = exports.CategoryGoalTypeFromJSONTyped = exports.CategoryGoalTypeFromJSON = exports.instanceOfCategoryGoalType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the CategoryGoalType interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfCategoryGoalType(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
exports.instanceOfCategoryGoalType = instanceOfCategoryGoalType;
|
|
25
|
+
function CategoryGoalTypeFromJSON(json) {
|
|
26
|
+
return CategoryGoalTypeFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
exports.CategoryGoalTypeFromJSON = CategoryGoalTypeFromJSON;
|
|
29
|
+
function CategoryGoalTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
exports.CategoryGoalTypeFromJSONTyped = CategoryGoalTypeFromJSONTyped;
|
|
33
|
+
function CategoryGoalTypeToJSON(value) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
exports.CategoryGoalTypeToJSON = CategoryGoalTypeToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.70.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -43,7 +43,7 @@ export interface CategoryGroup {
|
|
|
43
43
|
/**
|
|
44
44
|
* Check if a given object implements the CategoryGroup interface.
|
|
45
45
|
*/
|
|
46
|
-
export declare function instanceOfCategoryGroup(value: object):
|
|
46
|
+
export declare function instanceOfCategoryGroup(value: object): value is CategoryGroup;
|
|
47
47
|
export declare function CategoryGroupFromJSON(json: any): CategoryGroup;
|
|
48
48
|
export declare function CategoryGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryGroup;
|
|
49
49
|
export declare function CategoryGroupToJSON(value?: CategoryGroup | null): any;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* YNAB API Endpoints
|
|
6
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
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.70.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -18,12 +18,15 @@ exports.CategoryGroupToJSON = exports.CategoryGroupFromJSONTyped = exports.Categ
|
|
|
18
18
|
* Check if a given object implements the CategoryGroup interface.
|
|
19
19
|
*/
|
|
20
20
|
function instanceOfCategoryGroup(value) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('hidden' in value) || value['hidden'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
27
30
|
}
|
|
28
31
|
exports.instanceOfCategoryGroup = instanceOfCategoryGroup;
|
|
29
32
|
function CategoryGroupFromJSON(json) {
|
|
@@ -31,7 +34,7 @@ function CategoryGroupFromJSON(json) {
|
|
|
31
34
|
}
|
|
32
35
|
exports.CategoryGroupFromJSON = CategoryGroupFromJSON;
|
|
33
36
|
function CategoryGroupFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (
|
|
37
|
+
if (json == null) {
|
|
35
38
|
return json;
|
|
36
39
|
}
|
|
37
40
|
return {
|
|
@@ -43,17 +46,14 @@ function CategoryGroupFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
46
|
}
|
|
44
47
|
exports.CategoryGroupFromJSONTyped = CategoryGroupFromJSONTyped;
|
|
45
48
|
function CategoryGroupToJSON(value) {
|
|
46
|
-
if (value
|
|
47
|
-
return
|
|
48
|
-
}
|
|
49
|
-
if (value === null) {
|
|
50
|
-
return null;
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
|
-
'id': value
|
|
54
|
-
'name': value
|
|
55
|
-
'hidden': value
|
|
56
|
-
'deleted': value
|
|
53
|
+
'id': value['id'],
|
|
54
|
+
'name': value['name'],
|
|
55
|
+
'hidden': value['hidden'],
|
|
56
|
+
'deleted': value['deleted'],
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
exports.CategoryGroupToJSON = CategoryGroupToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.70.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -50,7 +50,7 @@ export interface CategoryGroupWithCategories {
|
|
|
50
50
|
/**
|
|
51
51
|
* Check if a given object implements the CategoryGroupWithCategories interface.
|
|
52
52
|
*/
|
|
53
|
-
export declare function instanceOfCategoryGroupWithCategories(value: object):
|
|
53
|
+
export declare function instanceOfCategoryGroupWithCategories(value: object): value is CategoryGroupWithCategories;
|
|
54
54
|
export declare function CategoryGroupWithCategoriesFromJSON(json: any): CategoryGroupWithCategories;
|
|
55
55
|
export declare function CategoryGroupWithCategoriesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryGroupWithCategories;
|
|
56
56
|
export declare function CategoryGroupWithCategoriesToJSON(value?: CategoryGroupWithCategories | null): any;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* YNAB API Endpoints
|
|
6
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
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.70.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -19,13 +19,17 @@ const Category_1 = require("./Category");
|
|
|
19
19
|
* Check if a given object implements the CategoryGroupWithCategories interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfCategoryGroupWithCategories(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('hidden' in value) || value['hidden'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('categories' in value) || value['categories'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
29
33
|
}
|
|
30
34
|
exports.instanceOfCategoryGroupWithCategories = instanceOfCategoryGroupWithCategories;
|
|
31
35
|
function CategoryGroupWithCategoriesFromJSON(json) {
|
|
@@ -33,7 +37,7 @@ function CategoryGroupWithCategoriesFromJSON(json) {
|
|
|
33
37
|
}
|
|
34
38
|
exports.CategoryGroupWithCategoriesFromJSON = CategoryGroupWithCategoriesFromJSON;
|
|
35
39
|
function CategoryGroupWithCategoriesFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
if (
|
|
40
|
+
if (json == null) {
|
|
37
41
|
return json;
|
|
38
42
|
}
|
|
39
43
|
return {
|
|
@@ -46,18 +50,15 @@ function CategoryGroupWithCategoriesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
50
|
}
|
|
47
51
|
exports.CategoryGroupWithCategoriesFromJSONTyped = CategoryGroupWithCategoriesFromJSONTyped;
|
|
48
52
|
function CategoryGroupWithCategoriesToJSON(value) {
|
|
49
|
-
if (value
|
|
50
|
-
return
|
|
51
|
-
}
|
|
52
|
-
if (value === null) {
|
|
53
|
-
return null;
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
54
55
|
}
|
|
55
56
|
return {
|
|
56
|
-
'id': value
|
|
57
|
-
'name': value
|
|
58
|
-
'hidden': value
|
|
59
|
-
'deleted': value
|
|
60
|
-
'categories': (value
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'name': value['name'],
|
|
59
|
+
'hidden': value['hidden'],
|
|
60
|
+
'deleted': value['deleted'],
|
|
61
|
+
'categories': (value['categories'].map(Category_1.CategoryToJSON)),
|
|
61
62
|
};
|
|
62
63
|
}
|
|
63
64
|
exports.CategoryGroupWithCategoriesToJSON = CategoryGroupWithCategoriesToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.70.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,7 +26,7 @@ export interface CategoryResponse {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the CategoryResponse interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfCategoryResponse(value: object):
|
|
29
|
+
export declare function instanceOfCategoryResponse(value: object): value is CategoryResponse;
|
|
30
30
|
export declare function CategoryResponseFromJSON(json: any): CategoryResponse;
|
|
31
31
|
export declare function CategoryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryResponse;
|
|
32
32
|
export declare function CategoryResponseToJSON(value?: CategoryResponse | null): any;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* YNAB API Endpoints
|
|
6
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
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.70.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -19,9 +19,9 @@ const CategoryResponseData_1 = require("./CategoryResponseData");
|
|
|
19
19
|
* Check if a given object implements the CategoryResponse interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfCategoryResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfCategoryResponse = instanceOfCategoryResponse;
|
|
27
27
|
function CategoryResponseFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function CategoryResponseFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.CategoryResponseFromJSON = CategoryResponseFromJSON;
|
|
31
31
|
function CategoryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function CategoryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.CategoryResponseFromJSONTyped = CategoryResponseFromJSONTyped;
|
|
40
40
|
function CategoryResponseToJSON(value) {
|
|
41
|
-
if (value
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
46
43
|
}
|
|
47
44
|
return {
|
|
48
|
-
'data': (0, CategoryResponseData_1.CategoryResponseDataToJSON)(value
|
|
45
|
+
'data': (0, CategoryResponseData_1.CategoryResponseDataToJSON)(value['data']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.CategoryResponseToJSON = CategoryResponseToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.70.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,7 +26,7 @@ export interface CategoryResponseData {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the CategoryResponseData interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfCategoryResponseData(value: object):
|
|
29
|
+
export declare function instanceOfCategoryResponseData(value: object): value is CategoryResponseData;
|
|
30
30
|
export declare function CategoryResponseDataFromJSON(json: any): CategoryResponseData;
|
|
31
31
|
export declare function CategoryResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryResponseData;
|
|
32
32
|
export declare function CategoryResponseDataToJSON(value?: CategoryResponseData | null): any;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* YNAB API Endpoints
|
|
6
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
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.70.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -19,9 +19,9 @@ const Category_1 = require("./Category");
|
|
|
19
19
|
* Check if a given object implements the CategoryResponseData interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfCategoryResponseData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfCategoryResponseData = instanceOfCategoryResponseData;
|
|
27
27
|
function CategoryResponseDataFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function CategoryResponseDataFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.CategoryResponseDataFromJSON = CategoryResponseDataFromJSON;
|
|
31
31
|
function CategoryResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function CategoryResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.CategoryResponseDataFromJSONTyped = CategoryResponseDataFromJSONTyped;
|
|
40
40
|
function CategoryResponseDataToJSON(value) {
|
|
41
|
-
if (value
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
46
43
|
}
|
|
47
44
|
return {
|
|
48
|
-
'category': (0, Category_1.CategoryToJSON)(value
|
|
45
|
+
'category': (0, Category_1.CategoryToJSON)(value['category']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.CategoryResponseDataToJSON = CategoryResponseDataToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.70.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -67,7 +67,7 @@ export interface CurrencyFormat {
|
|
|
67
67
|
/**
|
|
68
68
|
* Check if a given object implements the CurrencyFormat interface.
|
|
69
69
|
*/
|
|
70
|
-
export declare function instanceOfCurrencyFormat(value: object):
|
|
70
|
+
export declare function instanceOfCurrencyFormat(value: object): value is CurrencyFormat;
|
|
71
71
|
export declare function CurrencyFormatFromJSON(json: any): CurrencyFormat;
|
|
72
72
|
export declare function CurrencyFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): CurrencyFormat;
|
|
73
73
|
export declare function CurrencyFormatToJSON(value?: CurrencyFormat | null): any;
|