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
|
@@ -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,10 +19,11 @@ const BudgetDetail_1 = require("./BudgetDetail");
|
|
|
19
19
|
* Check if a given object implements the BudgetDetailResponseData interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfBudgetDetailResponseData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
if (!('budget' in value) || value['budget'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('server_knowledge' in value) || value['server_knowledge'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
26
27
|
}
|
|
27
28
|
exports.instanceOfBudgetDetailResponseData = instanceOfBudgetDetailResponseData;
|
|
28
29
|
function BudgetDetailResponseDataFromJSON(json) {
|
|
@@ -30,7 +31,7 @@ function BudgetDetailResponseDataFromJSON(json) {
|
|
|
30
31
|
}
|
|
31
32
|
exports.BudgetDetailResponseDataFromJSON = BudgetDetailResponseDataFromJSON;
|
|
32
33
|
function BudgetDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (
|
|
34
|
+
if (json == null) {
|
|
34
35
|
return json;
|
|
35
36
|
}
|
|
36
37
|
return {
|
|
@@ -40,15 +41,12 @@ function BudgetDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
}
|
|
41
42
|
exports.BudgetDetailResponseDataFromJSONTyped = BudgetDetailResponseDataFromJSONTyped;
|
|
42
43
|
function BudgetDetailResponseDataToJSON(value) {
|
|
43
|
-
if (value
|
|
44
|
-
return
|
|
45
|
-
}
|
|
46
|
-
if (value === null) {
|
|
47
|
-
return null;
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
48
46
|
}
|
|
49
47
|
return {
|
|
50
|
-
'budget': (0, BudgetDetail_1.BudgetDetailToJSON)(value
|
|
51
|
-
'server_knowledge': value
|
|
48
|
+
'budget': (0, BudgetDetail_1.BudgetDetailToJSON)(value['budget']),
|
|
49
|
+
'server_knowledge': value['server_knowledge'],
|
|
52
50
|
};
|
|
53
51
|
}
|
|
54
52
|
exports.BudgetDetailResponseDataToJSON = BudgetDetailResponseDataToJSON;
|
|
@@ -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).
|
|
@@ -33,7 +33,7 @@ export interface BudgetSettings {
|
|
|
33
33
|
/**
|
|
34
34
|
* Check if a given object implements the BudgetSettings interface.
|
|
35
35
|
*/
|
|
36
|
-
export declare function instanceOfBudgetSettings(value: object):
|
|
36
|
+
export declare function instanceOfBudgetSettings(value: object): value is BudgetSettings;
|
|
37
37
|
export declare function BudgetSettingsFromJSON(json: any): BudgetSettings;
|
|
38
38
|
export declare function BudgetSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSettings;
|
|
39
39
|
export declare function BudgetSettingsToJSON(value?: BudgetSettings | 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).
|
|
@@ -20,10 +20,11 @@ const DateFormat_1 = require("./DateFormat");
|
|
|
20
20
|
* Check if a given object implements the BudgetSettings interface.
|
|
21
21
|
*/
|
|
22
22
|
function instanceOfBudgetSettings(value) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
if (!('date_format' in value) || value['date_format'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('currency_format' in value) || value['currency_format'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
27
28
|
}
|
|
28
29
|
exports.instanceOfBudgetSettings = instanceOfBudgetSettings;
|
|
29
30
|
function BudgetSettingsFromJSON(json) {
|
|
@@ -31,7 +32,7 @@ function BudgetSettingsFromJSON(json) {
|
|
|
31
32
|
}
|
|
32
33
|
exports.BudgetSettingsFromJSON = BudgetSettingsFromJSON;
|
|
33
34
|
function BudgetSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (
|
|
35
|
+
if (json == null) {
|
|
35
36
|
return json;
|
|
36
37
|
}
|
|
37
38
|
return {
|
|
@@ -41,15 +42,12 @@ function BudgetSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
42
|
}
|
|
42
43
|
exports.BudgetSettingsFromJSONTyped = BudgetSettingsFromJSONTyped;
|
|
43
44
|
function BudgetSettingsToJSON(value) {
|
|
44
|
-
if (value
|
|
45
|
-
return
|
|
46
|
-
}
|
|
47
|
-
if (value === null) {
|
|
48
|
-
return null;
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
49
47
|
}
|
|
50
48
|
return {
|
|
51
|
-
'date_format': (0, DateFormat_1.DateFormatToJSON)(value
|
|
52
|
-
'currency_format': (0, CurrencyFormat_1.CurrencyFormatToJSON)(value
|
|
49
|
+
'date_format': (0, DateFormat_1.DateFormatToJSON)(value['date_format']),
|
|
50
|
+
'currency_format': (0, CurrencyFormat_1.CurrencyFormatToJSON)(value['currency_format']),
|
|
53
51
|
};
|
|
54
52
|
}
|
|
55
53
|
exports.BudgetSettingsToJSON = BudgetSettingsToJSON;
|
|
@@ -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 BudgetSettingsResponse {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the BudgetSettingsResponse interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfBudgetSettingsResponse(value: object):
|
|
29
|
+
export declare function instanceOfBudgetSettingsResponse(value: object): value is BudgetSettingsResponse;
|
|
30
30
|
export declare function BudgetSettingsResponseFromJSON(json: any): BudgetSettingsResponse;
|
|
31
31
|
export declare function BudgetSettingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSettingsResponse;
|
|
32
32
|
export declare function BudgetSettingsResponseToJSON(value?: BudgetSettingsResponse | 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 BudgetSettingsResponseData_1 = require("./BudgetSettingsResponseData");
|
|
|
19
19
|
* Check if a given object implements the BudgetSettingsResponse interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfBudgetSettingsResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfBudgetSettingsResponse = instanceOfBudgetSettingsResponse;
|
|
27
27
|
function BudgetSettingsResponseFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function BudgetSettingsResponseFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.BudgetSettingsResponseFromJSON = BudgetSettingsResponseFromJSON;
|
|
31
31
|
function BudgetSettingsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function BudgetSettingsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.BudgetSettingsResponseFromJSONTyped = BudgetSettingsResponseFromJSONTyped;
|
|
40
40
|
function BudgetSettingsResponseToJSON(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, BudgetSettingsResponseData_1.BudgetSettingsResponseDataToJSON)(value
|
|
45
|
+
'data': (0, BudgetSettingsResponseData_1.BudgetSettingsResponseDataToJSON)(value['data']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.BudgetSettingsResponseToJSON = BudgetSettingsResponseToJSON;
|
|
@@ -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 BudgetSettingsResponseData {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the BudgetSettingsResponseData interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfBudgetSettingsResponseData(value: object):
|
|
29
|
+
export declare function instanceOfBudgetSettingsResponseData(value: object): value is BudgetSettingsResponseData;
|
|
30
30
|
export declare function BudgetSettingsResponseDataFromJSON(json: any): BudgetSettingsResponseData;
|
|
31
31
|
export declare function BudgetSettingsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSettingsResponseData;
|
|
32
32
|
export declare function BudgetSettingsResponseDataToJSON(value?: BudgetSettingsResponseData | 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 BudgetSettings_1 = require("./BudgetSettings");
|
|
|
19
19
|
* Check if a given object implements the BudgetSettingsResponseData interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfBudgetSettingsResponseData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('settings' in value) || value['settings'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfBudgetSettingsResponseData = instanceOfBudgetSettingsResponseData;
|
|
27
27
|
function BudgetSettingsResponseDataFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function BudgetSettingsResponseDataFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.BudgetSettingsResponseDataFromJSON = BudgetSettingsResponseDataFromJSON;
|
|
31
31
|
function BudgetSettingsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function BudgetSettingsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.BudgetSettingsResponseDataFromJSONTyped = BudgetSettingsResponseDataFromJSONTyped;
|
|
40
40
|
function BudgetSettingsResponseDataToJSON(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
|
-
'settings': (0, BudgetSettings_1.BudgetSettingsToJSON)(value
|
|
45
|
+
'settings': (0, BudgetSettings_1.BudgetSettingsToJSON)(value['settings']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.BudgetSettingsResponseDataToJSON = BudgetSettingsResponseDataToJSON;
|
|
@@ -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).
|
|
@@ -53,13 +53,13 @@ export interface BudgetSummary {
|
|
|
53
53
|
* @type {DateFormat}
|
|
54
54
|
* @memberof BudgetSummary
|
|
55
55
|
*/
|
|
56
|
-
date_format?: DateFormat
|
|
56
|
+
date_format?: DateFormat;
|
|
57
57
|
/**
|
|
58
58
|
*
|
|
59
59
|
* @type {CurrencyFormat}
|
|
60
60
|
* @memberof BudgetSummary
|
|
61
61
|
*/
|
|
62
|
-
currency_format?: CurrencyFormat
|
|
62
|
+
currency_format?: CurrencyFormat;
|
|
63
63
|
/**
|
|
64
64
|
* The budget accounts (only included if `include_accounts=true` specified as query parameter)
|
|
65
65
|
* @type {Array<Account>}
|
|
@@ -70,7 +70,7 @@ export interface BudgetSummary {
|
|
|
70
70
|
/**
|
|
71
71
|
* Check if a given object implements the BudgetSummary interface.
|
|
72
72
|
*/
|
|
73
|
-
export declare function instanceOfBudgetSummary(value: object):
|
|
73
|
+
export declare function instanceOfBudgetSummary(value: object): value is BudgetSummary;
|
|
74
74
|
export declare function BudgetSummaryFromJSON(json: any): BudgetSummary;
|
|
75
75
|
export declare function BudgetSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSummary;
|
|
76
76
|
export declare function BudgetSummaryToJSON(value?: BudgetSummary | 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).
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.BudgetSummaryToJSON = exports.BudgetSummaryFromJSONTyped = exports.BudgetSummaryFromJSON = exports.instanceOfBudgetSummary = void 0;
|
|
17
|
-
const runtime_1 = require("../runtime");
|
|
18
17
|
const Account_1 = require("./Account");
|
|
19
18
|
const CurrencyFormat_1 = require("./CurrencyFormat");
|
|
20
19
|
const DateFormat_1 = require("./DateFormat");
|
|
@@ -22,10 +21,11 @@ const DateFormat_1 = require("./DateFormat");
|
|
|
22
21
|
* Check if a given object implements the BudgetSummary interface.
|
|
23
22
|
*/
|
|
24
23
|
function instanceOfBudgetSummary(value) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
29
|
}
|
|
30
30
|
exports.instanceOfBudgetSummary = instanceOfBudgetSummary;
|
|
31
31
|
function BudgetSummaryFromJSON(json) {
|
|
@@ -33,37 +33,34 @@ function BudgetSummaryFromJSON(json) {
|
|
|
33
33
|
}
|
|
34
34
|
exports.BudgetSummaryFromJSON = BudgetSummaryFromJSON;
|
|
35
35
|
function BudgetSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
if (
|
|
36
|
+
if (json == null) {
|
|
37
37
|
return json;
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
40
|
'id': json['id'],
|
|
41
41
|
'name': json['name'],
|
|
42
|
-
'last_modified_on':
|
|
43
|
-
'first_month':
|
|
44
|
-
'last_month':
|
|
45
|
-
'date_format':
|
|
46
|
-
'currency_format':
|
|
47
|
-
'accounts':
|
|
42
|
+
'last_modified_on': json['last_modified_on'] == null ? undefined : json['last_modified_on'],
|
|
43
|
+
'first_month': json['first_month'] == null ? undefined : json['first_month'],
|
|
44
|
+
'last_month': json['last_month'] == null ? undefined : json['last_month'],
|
|
45
|
+
'date_format': json['date_format'] == null ? undefined : (0, DateFormat_1.DateFormatFromJSON)(json['date_format']),
|
|
46
|
+
'currency_format': json['currency_format'] == null ? undefined : (0, CurrencyFormat_1.CurrencyFormatFromJSON)(json['currency_format']),
|
|
47
|
+
'accounts': json['accounts'] == null ? undefined : (json['accounts'].map(Account_1.AccountFromJSON)),
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
exports.BudgetSummaryFromJSONTyped = BudgetSummaryFromJSONTyped;
|
|
51
51
|
function BudgetSummaryToJSON(value) {
|
|
52
|
-
if (value
|
|
53
|
-
return
|
|
54
|
-
}
|
|
55
|
-
if (value === null) {
|
|
56
|
-
return null;
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
57
54
|
}
|
|
58
55
|
return {
|
|
59
|
-
'id': value
|
|
60
|
-
'name': value
|
|
61
|
-
'last_modified_on': value
|
|
62
|
-
'first_month': value
|
|
63
|
-
'last_month': value
|
|
64
|
-
'date_format': (0, DateFormat_1.DateFormatToJSON)(value
|
|
65
|
-
'currency_format': (0, CurrencyFormat_1.CurrencyFormatToJSON)(value
|
|
66
|
-
'accounts': value
|
|
56
|
+
'id': value['id'],
|
|
57
|
+
'name': value['name'],
|
|
58
|
+
'last_modified_on': value['last_modified_on'],
|
|
59
|
+
'first_month': value['first_month'],
|
|
60
|
+
'last_month': value['last_month'],
|
|
61
|
+
'date_format': (0, DateFormat_1.DateFormatToJSON)(value['date_format']),
|
|
62
|
+
'currency_format': (0, CurrencyFormat_1.CurrencyFormatToJSON)(value['currency_format']),
|
|
63
|
+
'accounts': value['accounts'] == null ? undefined : (value['accounts'].map(Account_1.AccountToJSON)),
|
|
67
64
|
};
|
|
68
65
|
}
|
|
69
66
|
exports.BudgetSummaryToJSON = BudgetSummaryToJSON;
|
|
@@ -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 BudgetSummaryResponse {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the BudgetSummaryResponse interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfBudgetSummaryResponse(value: object):
|
|
29
|
+
export declare function instanceOfBudgetSummaryResponse(value: object): value is BudgetSummaryResponse;
|
|
30
30
|
export declare function BudgetSummaryResponseFromJSON(json: any): BudgetSummaryResponse;
|
|
31
31
|
export declare function BudgetSummaryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSummaryResponse;
|
|
32
32
|
export declare function BudgetSummaryResponseToJSON(value?: BudgetSummaryResponse | 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 BudgetSummaryResponseData_1 = require("./BudgetSummaryResponseData");
|
|
|
19
19
|
* Check if a given object implements the BudgetSummaryResponse interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfBudgetSummaryResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfBudgetSummaryResponse = instanceOfBudgetSummaryResponse;
|
|
27
27
|
function BudgetSummaryResponseFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function BudgetSummaryResponseFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.BudgetSummaryResponseFromJSON = BudgetSummaryResponseFromJSON;
|
|
31
31
|
function BudgetSummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function BudgetSummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.BudgetSummaryResponseFromJSONTyped = BudgetSummaryResponseFromJSONTyped;
|
|
40
40
|
function BudgetSummaryResponseToJSON(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, BudgetSummaryResponseData_1.BudgetSummaryResponseDataToJSON)(value
|
|
45
|
+
'data': (0, BudgetSummaryResponseData_1.BudgetSummaryResponseDataToJSON)(value['data']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.BudgetSummaryResponseToJSON = BudgetSummaryResponseToJSON;
|
|
@@ -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).
|
|
@@ -32,7 +32,7 @@ export interface BudgetSummaryResponseData {
|
|
|
32
32
|
/**
|
|
33
33
|
* Check if a given object implements the BudgetSummaryResponseData interface.
|
|
34
34
|
*/
|
|
35
|
-
export declare function instanceOfBudgetSummaryResponseData(value: object):
|
|
35
|
+
export declare function instanceOfBudgetSummaryResponseData(value: object): value is BudgetSummaryResponseData;
|
|
36
36
|
export declare function BudgetSummaryResponseDataFromJSON(json: any): BudgetSummaryResponseData;
|
|
37
37
|
export declare function BudgetSummaryResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSummaryResponseData;
|
|
38
38
|
export declare function BudgetSummaryResponseDataToJSON(value?: BudgetSummaryResponseData | 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).
|
|
@@ -14,15 +14,14 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.BudgetSummaryResponseDataToJSON = exports.BudgetSummaryResponseDataFromJSONTyped = exports.BudgetSummaryResponseDataFromJSON = exports.instanceOfBudgetSummaryResponseData = void 0;
|
|
17
|
-
const runtime_1 = require("../runtime");
|
|
18
17
|
const BudgetSummary_1 = require("./BudgetSummary");
|
|
19
18
|
/**
|
|
20
19
|
* Check if a given object implements the BudgetSummaryResponseData interface.
|
|
21
20
|
*/
|
|
22
21
|
function instanceOfBudgetSummaryResponseData(value) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return
|
|
22
|
+
if (!('budgets' in value) || value['budgets'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
26
25
|
}
|
|
27
26
|
exports.instanceOfBudgetSummaryResponseData = instanceOfBudgetSummaryResponseData;
|
|
28
27
|
function BudgetSummaryResponseDataFromJSON(json) {
|
|
@@ -30,25 +29,22 @@ function BudgetSummaryResponseDataFromJSON(json) {
|
|
|
30
29
|
}
|
|
31
30
|
exports.BudgetSummaryResponseDataFromJSON = BudgetSummaryResponseDataFromJSON;
|
|
32
31
|
function BudgetSummaryResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
34
33
|
return json;
|
|
35
34
|
}
|
|
36
35
|
return {
|
|
37
36
|
'budgets': (json['budgets'].map(BudgetSummary_1.BudgetSummaryFromJSON)),
|
|
38
|
-
'default_budget':
|
|
37
|
+
'default_budget': json['default_budget'] == null ? undefined : (0, BudgetSummary_1.BudgetSummaryFromJSON)(json['default_budget']),
|
|
39
38
|
};
|
|
40
39
|
}
|
|
41
40
|
exports.BudgetSummaryResponseDataFromJSONTyped = BudgetSummaryResponseDataFromJSONTyped;
|
|
42
41
|
function BudgetSummaryResponseDataToJSON(value) {
|
|
43
|
-
if (value
|
|
44
|
-
return
|
|
45
|
-
}
|
|
46
|
-
if (value === null) {
|
|
47
|
-
return null;
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
48
44
|
}
|
|
49
45
|
return {
|
|
50
|
-
'budgets': (value
|
|
51
|
-
'default_budget': (0, BudgetSummary_1.BudgetSummaryToJSON)(value
|
|
46
|
+
'budgets': (value['budgets'].map(BudgetSummary_1.BudgetSummaryToJSON)),
|
|
47
|
+
'default_budget': (0, BudgetSummary_1.BudgetSummaryToJSON)(value['default_budget']),
|
|
52
48
|
};
|
|
53
49
|
}
|
|
54
50
|
exports.BudgetSummaryResponseDataToJSON = BudgetSummaryResponseDataToJSON;
|
|
@@ -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 BulkResponse {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the BulkResponse interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfBulkResponse(value: object):
|
|
29
|
+
export declare function instanceOfBulkResponse(value: object): value is BulkResponse;
|
|
30
30
|
export declare function BulkResponseFromJSON(json: any): BulkResponse;
|
|
31
31
|
export declare function BulkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkResponse;
|
|
32
32
|
export declare function BulkResponseToJSON(value?: BulkResponse | 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 BulkResponseData_1 = require("./BulkResponseData");
|
|
|
19
19
|
* Check if a given object implements the BulkResponse interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfBulkResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfBulkResponse = instanceOfBulkResponse;
|
|
27
27
|
function BulkResponseFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function BulkResponseFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.BulkResponseFromJSON = BulkResponseFromJSON;
|
|
31
31
|
function BulkResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function BulkResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.BulkResponseFromJSONTyped = BulkResponseFromJSONTyped;
|
|
40
40
|
function BulkResponseToJSON(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, BulkResponseData_1.BulkResponseDataToJSON)(value
|
|
45
|
+
'data': (0, BulkResponseData_1.BulkResponseDataToJSON)(value['data']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.BulkResponseToJSON = BulkResponseToJSON;
|
|
@@ -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 BulkResponseData {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the BulkResponseData interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfBulkResponseData(value: object):
|
|
29
|
+
export declare function instanceOfBulkResponseData(value: object): value is BulkResponseData;
|
|
30
30
|
export declare function BulkResponseDataFromJSON(json: any): BulkResponseData;
|
|
31
31
|
export declare function BulkResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkResponseData;
|
|
32
32
|
export declare function BulkResponseDataToJSON(value?: BulkResponseData | null): any;
|