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,9 +19,9 @@ const BulkResponseDataBulk_1 = require("./BulkResponseDataBulk");
|
|
|
19
19
|
* Check if a given object implements the BulkResponseData interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfBulkResponseData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('bulk' in value) || value['bulk'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfBulkResponseData = instanceOfBulkResponseData;
|
|
27
27
|
function BulkResponseDataFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function BulkResponseDataFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.BulkResponseDataFromJSON = BulkResponseDataFromJSON;
|
|
31
31
|
function BulkResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function BulkResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.BulkResponseDataFromJSONTyped = BulkResponseDataFromJSONTyped;
|
|
40
40
|
function BulkResponseDataToJSON(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
|
-
'bulk': (0, BulkResponseDataBulk_1.BulkResponseDataBulkToJSON)(value
|
|
45
|
+
'bulk': (0, BulkResponseDataBulk_1.BulkResponseDataBulkToJSON)(value['bulk']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.BulkResponseDataToJSON = BulkResponseDataToJSON;
|
|
@@ -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).
|
|
@@ -31,7 +31,7 @@ export interface BulkResponseDataBulk {
|
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the BulkResponseDataBulk interface.
|
|
33
33
|
*/
|
|
34
|
-
export declare function instanceOfBulkResponseDataBulk(value: object):
|
|
34
|
+
export declare function instanceOfBulkResponseDataBulk(value: object): value is BulkResponseDataBulk;
|
|
35
35
|
export declare function BulkResponseDataBulkFromJSON(json: any): BulkResponseDataBulk;
|
|
36
36
|
export declare function BulkResponseDataBulkFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkResponseDataBulk;
|
|
37
37
|
export declare function BulkResponseDataBulkToJSON(value?: BulkResponseDataBulk | 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,10 +18,11 @@ exports.BulkResponseDataBulkToJSON = exports.BulkResponseDataBulkFromJSONTyped =
|
|
|
18
18
|
* Check if a given object implements the BulkResponseDataBulk interface.
|
|
19
19
|
*/
|
|
20
20
|
function instanceOfBulkResponseDataBulk(value) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
if (!('transaction_ids' in value) || value['transaction_ids'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('duplicate_import_ids' in value) || value['duplicate_import_ids'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
25
26
|
}
|
|
26
27
|
exports.instanceOfBulkResponseDataBulk = instanceOfBulkResponseDataBulk;
|
|
27
28
|
function BulkResponseDataBulkFromJSON(json) {
|
|
@@ -29,7 +30,7 @@ function BulkResponseDataBulkFromJSON(json) {
|
|
|
29
30
|
}
|
|
30
31
|
exports.BulkResponseDataBulkFromJSON = BulkResponseDataBulkFromJSON;
|
|
31
32
|
function BulkResponseDataBulkFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
33
|
+
if (json == null) {
|
|
33
34
|
return json;
|
|
34
35
|
}
|
|
35
36
|
return {
|
|
@@ -39,15 +40,12 @@ function BulkResponseDataBulkFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
40
|
}
|
|
40
41
|
exports.BulkResponseDataBulkFromJSONTyped = BulkResponseDataBulkFromJSONTyped;
|
|
41
42
|
function BulkResponseDataBulkToJSON(value) {
|
|
42
|
-
if (value
|
|
43
|
-
return
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
47
45
|
}
|
|
48
46
|
return {
|
|
49
|
-
'transaction_ids': value
|
|
50
|
-
'duplicate_import_ids': value
|
|
47
|
+
'transaction_ids': value['transaction_ids'],
|
|
48
|
+
'duplicate_import_ids': value['duplicate_import_ids'],
|
|
51
49
|
};
|
|
52
50
|
}
|
|
53
51
|
exports.BulkResponseDataBulkToJSON = BulkResponseDataBulkToJSON;
|
|
@@ -2,14 +2,14 @@
|
|
|
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).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { SaveTransactionWithOptionalFields } from './SaveTransactionWithOptionalFields';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,15 +18,15 @@ import type { SaveTransaction } from './SaveTransaction';
|
|
|
18
18
|
export interface BulkTransactions {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {Array<
|
|
21
|
+
* @type {Array<SaveTransactionWithOptionalFields>}
|
|
22
22
|
* @memberof BulkTransactions
|
|
23
23
|
*/
|
|
24
|
-
transactions: Array<
|
|
24
|
+
transactions: Array<SaveTransactionWithOptionalFields>;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the BulkTransactions interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfBulkTransactions(value: object):
|
|
29
|
+
export declare function instanceOfBulkTransactions(value: object): value is BulkTransactions;
|
|
30
30
|
export declare function BulkTransactionsFromJSON(json: any): BulkTransactions;
|
|
31
31
|
export declare function BulkTransactionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkTransactions;
|
|
32
32
|
export declare function BulkTransactionsToJSON(value?: BulkTransactions | 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,14 +14,14 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.BulkTransactionsToJSON = exports.BulkTransactionsFromJSONTyped = exports.BulkTransactionsFromJSON = exports.instanceOfBulkTransactions = void 0;
|
|
17
|
-
const
|
|
17
|
+
const SaveTransactionWithOptionalFields_1 = require("./SaveTransactionWithOptionalFields");
|
|
18
18
|
/**
|
|
19
19
|
* Check if a given object implements the BulkTransactions interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfBulkTransactions(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('transactions' in value) || value['transactions'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfBulkTransactions = instanceOfBulkTransactions;
|
|
27
27
|
function BulkTransactionsFromJSON(json) {
|
|
@@ -29,23 +29,20 @@ function BulkTransactionsFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.BulkTransactionsFromJSON = BulkTransactionsFromJSON;
|
|
31
31
|
function BulkTransactionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
|
-
'transactions': (json['transactions'].map(
|
|
36
|
+
'transactions': (json['transactions'].map(SaveTransactionWithOptionalFields_1.SaveTransactionWithOptionalFieldsFromJSON)),
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
exports.BulkTransactionsFromJSONTyped = BulkTransactionsFromJSONTyped;
|
|
40
40
|
function BulkTransactionsToJSON(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
|
-
'transactions': (value
|
|
45
|
+
'transactions': (value['transactions'].map(SaveTransactionWithOptionalFields_1.SaveTransactionWithOptionalFieldsToJSON)),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.BulkTransactionsToJSON = BulkTransactionsToJSON;
|
|
@@ -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 CategoriesResponse {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the CategoriesResponse interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfCategoriesResponse(value: object):
|
|
29
|
+
export declare function instanceOfCategoriesResponse(value: object): value is CategoriesResponse;
|
|
30
30
|
export declare function CategoriesResponseFromJSON(json: any): CategoriesResponse;
|
|
31
31
|
export declare function CategoriesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoriesResponse;
|
|
32
32
|
export declare function CategoriesResponseToJSON(value?: CategoriesResponse | 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 CategoriesResponseData_1 = require("./CategoriesResponseData");
|
|
|
19
19
|
* Check if a given object implements the CategoriesResponse interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfCategoriesResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfCategoriesResponse = instanceOfCategoriesResponse;
|
|
27
27
|
function CategoriesResponseFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function CategoriesResponseFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.CategoriesResponseFromJSON = CategoriesResponseFromJSON;
|
|
31
31
|
function CategoriesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function CategoriesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.CategoriesResponseFromJSONTyped = CategoriesResponseFromJSONTyped;
|
|
40
40
|
function CategoriesResponseToJSON(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, CategoriesResponseData_1.CategoriesResponseDataToJSON)(value
|
|
45
|
+
'data': (0, CategoriesResponseData_1.CategoriesResponseDataToJSON)(value['data']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.CategoriesResponseToJSON = CategoriesResponseToJSON;
|
|
@@ -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 CategoriesResponseData {
|
|
|
32
32
|
/**
|
|
33
33
|
* Check if a given object implements the CategoriesResponseData interface.
|
|
34
34
|
*/
|
|
35
|
-
export declare function instanceOfCategoriesResponseData(value: object):
|
|
35
|
+
export declare function instanceOfCategoriesResponseData(value: object): value is CategoriesResponseData;
|
|
36
36
|
export declare function CategoriesResponseDataFromJSON(json: any): CategoriesResponseData;
|
|
37
37
|
export declare function CategoriesResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoriesResponseData;
|
|
38
38
|
export declare function CategoriesResponseDataToJSON(value?: CategoriesResponseData | 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,10 +19,11 @@ const CategoryGroupWithCategories_1 = require("./CategoryGroupWithCategories");
|
|
|
19
19
|
* Check if a given object implements the CategoriesResponseData interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfCategoriesResponseData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
if (!('category_groups' in value) || value['category_groups'] === 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.instanceOfCategoriesResponseData = instanceOfCategoriesResponseData;
|
|
28
29
|
function CategoriesResponseDataFromJSON(json) {
|
|
@@ -30,7 +31,7 @@ function CategoriesResponseDataFromJSON(json) {
|
|
|
30
31
|
}
|
|
31
32
|
exports.CategoriesResponseDataFromJSON = CategoriesResponseDataFromJSON;
|
|
32
33
|
function CategoriesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (
|
|
34
|
+
if (json == null) {
|
|
34
35
|
return json;
|
|
35
36
|
}
|
|
36
37
|
return {
|
|
@@ -40,15 +41,12 @@ function CategoriesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
}
|
|
41
42
|
exports.CategoriesResponseDataFromJSONTyped = CategoriesResponseDataFromJSONTyped;
|
|
42
43
|
function CategoriesResponseDataToJSON(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
|
-
'category_groups': (value
|
|
51
|
-
'server_knowledge': value
|
|
48
|
+
'category_groups': (value['category_groups'].map(CategoryGroupWithCategories_1.CategoryGroupWithCategoriesToJSON)),
|
|
49
|
+
'server_knowledge': value['server_knowledge'],
|
|
52
50
|
};
|
|
53
51
|
}
|
|
54
52
|
exports.CategoriesResponseDataToJSON = CategoriesResponseDataToJSON;
|
|
@@ -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,13 +50,13 @@ export interface Category {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof Category
|
|
52
52
|
*/
|
|
53
|
-
original_category_group_id?: string
|
|
53
|
+
original_category_group_id?: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof Category
|
|
58
58
|
*/
|
|
59
|
-
note?: string
|
|
59
|
+
note?: string;
|
|
60
60
|
/**
|
|
61
61
|
* Budgeted amount in milliunits format
|
|
62
62
|
* @type {number}
|
|
@@ -81,72 +81,78 @@ export interface Category {
|
|
|
81
81
|
* @memberof Category
|
|
82
82
|
*/
|
|
83
83
|
goal_type?: CategoryGoalTypeEnum;
|
|
84
|
+
/**
|
|
85
|
+
* Indicates the monthly rollover behavior for "NEED"-type goals. When "true", the goal will always ask for the target amount in the new month ("Set Aside"). When "false", previous month category funding is used ("Refill"). For other goal types, this field will be null.
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof Category
|
|
88
|
+
*/
|
|
89
|
+
goal_needs_whole_amount?: boolean;
|
|
84
90
|
/**
|
|
85
91
|
* A day offset modifier for the goal's due date. When goal_cadence is 2 (Weekly), this value specifies which day of the week the goal is due (0 = Sunday, 6 = Saturday). Otherwise, this value specifies which day of the month the goal is due (1 = 1st, 31 = 31st, null = Last day of Month).
|
|
86
92
|
* @type {number}
|
|
87
93
|
* @memberof Category
|
|
88
94
|
*/
|
|
89
|
-
goal_day?: number
|
|
95
|
+
goal_day?: number;
|
|
90
96
|
/**
|
|
91
97
|
* The goal cadence. Value in range 0-14. There are two subsets of these values which behave differently. For values 0, 1, 2, and 13, the goal's due date repeats every goal_cadence * goal_cadence_frequency, where 0 = None, 1 = Monthly, 2 = Weekly, and 13 = Yearly. For example, goal_cadence 1 with goal_cadence_frequency 2 means the goal is due every other month. For values 3-12 and 14, goal_cadence_frequency is ignored and the goal's due date repeats every goal_cadence, where 3 = Every 2 Months, 4 = Every 3 Months, ..., 12 = Every 11 Months, and 14 = Every 2 Years.
|
|
92
98
|
* @type {number}
|
|
93
99
|
* @memberof Category
|
|
94
100
|
*/
|
|
95
|
-
goal_cadence?: number
|
|
101
|
+
goal_cadence?: number;
|
|
96
102
|
/**
|
|
97
103
|
* The goal cadence frequency. When goal_cadence is 0, 1, 2, or 13, a goal's due date repeats every goal_cadence * goal_cadence_frequency. For example, goal_cadence 1 with goal_cadence_frequency 2 means the goal is due every other month. When goal_cadence is 3-12 or 14, goal_cadence_frequency is ignored.
|
|
98
104
|
* @type {number}
|
|
99
105
|
* @memberof Category
|
|
100
106
|
*/
|
|
101
|
-
goal_cadence_frequency?: number
|
|
107
|
+
goal_cadence_frequency?: number;
|
|
102
108
|
/**
|
|
103
109
|
* The month a goal was created
|
|
104
110
|
* @type {string}
|
|
105
111
|
* @memberof Category
|
|
106
112
|
*/
|
|
107
|
-
goal_creation_month?: string
|
|
113
|
+
goal_creation_month?: string;
|
|
108
114
|
/**
|
|
109
115
|
* The goal target amount in milliunits
|
|
110
116
|
* @type {number}
|
|
111
117
|
* @memberof Category
|
|
112
118
|
*/
|
|
113
|
-
goal_target?: number
|
|
119
|
+
goal_target?: number;
|
|
114
120
|
/**
|
|
115
121
|
* The original target month for the goal to be completed. Only some goal types specify this date.
|
|
116
122
|
* @type {string}
|
|
117
123
|
* @memberof Category
|
|
118
124
|
*/
|
|
119
|
-
goal_target_month?: string
|
|
125
|
+
goal_target_month?: string;
|
|
120
126
|
/**
|
|
121
127
|
* The percentage completion of the goal
|
|
122
128
|
* @type {number}
|
|
123
129
|
* @memberof Category
|
|
124
130
|
*/
|
|
125
|
-
goal_percentage_complete?: number
|
|
131
|
+
goal_percentage_complete?: number;
|
|
126
132
|
/**
|
|
127
133
|
* The number of months, including the current month, left in the current goal period.
|
|
128
134
|
* @type {number}
|
|
129
135
|
* @memberof Category
|
|
130
136
|
*/
|
|
131
|
-
goal_months_to_budget?: number
|
|
137
|
+
goal_months_to_budget?: number;
|
|
132
138
|
/**
|
|
133
139
|
* The amount of funding still needed in the current month to stay on track towards completing the goal within the current goal period. This amount will generally correspond to the 'Underfunded' amount in the web and mobile clients except when viewing a category with a Needed for Spending Goal in a future month. The web and mobile clients will ignore any funding from a prior goal period when viewing category with a Needed for Spending Goal in a future month.
|
|
134
140
|
* @type {number}
|
|
135
141
|
* @memberof Category
|
|
136
142
|
*/
|
|
137
|
-
goal_under_funded?: number
|
|
143
|
+
goal_under_funded?: number;
|
|
138
144
|
/**
|
|
139
145
|
* The total amount funded towards the goal within the current goal period.
|
|
140
146
|
* @type {number}
|
|
141
147
|
* @memberof Category
|
|
142
148
|
*/
|
|
143
|
-
goal_overall_funded?: number
|
|
149
|
+
goal_overall_funded?: number;
|
|
144
150
|
/**
|
|
145
151
|
* The amount of funding still needed to complete the goal within the current goal period.
|
|
146
152
|
* @type {number}
|
|
147
153
|
* @memberof Category
|
|
148
154
|
*/
|
|
149
|
-
goal_overall_left?: number
|
|
155
|
+
goal_overall_left?: number;
|
|
150
156
|
/**
|
|
151
157
|
* Whether or not the category has been deleted. Deleted categories will only be included in delta requests.
|
|
152
158
|
* @type {boolean}
|
|
@@ -163,13 +169,12 @@ export declare const CategoryGoalTypeEnum: {
|
|
|
163
169
|
readonly Mf: "MF";
|
|
164
170
|
readonly Need: "NEED";
|
|
165
171
|
readonly Debt: "DEBT";
|
|
166
|
-
readonly Null: "null";
|
|
167
172
|
};
|
|
168
|
-
export
|
|
173
|
+
export type CategoryGoalTypeEnum = typeof CategoryGoalTypeEnum[keyof typeof CategoryGoalTypeEnum];
|
|
169
174
|
/**
|
|
170
175
|
* Check if a given object implements the Category interface.
|
|
171
176
|
*/
|
|
172
|
-
export declare function instanceOfCategory(value: object):
|
|
177
|
+
export declare function instanceOfCategory(value: object): value is Category;
|
|
173
178
|
export declare function CategoryFromJSON(json: any): Category;
|
|
174
179
|
export declare function CategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): Category;
|
|
175
180
|
export declare function CategoryToJSON(value?: Category | null): any;
|