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 UserResponseData_1 = require("./UserResponseData");
|
|
|
19
19
|
* Check if a given object implements the UserResponse interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfUserResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfUserResponse = instanceOfUserResponse;
|
|
27
27
|
function UserResponseFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function UserResponseFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.UserResponseFromJSON = UserResponseFromJSON;
|
|
31
31
|
function UserResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function UserResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.UserResponseFromJSONTyped = UserResponseFromJSONTyped;
|
|
40
40
|
function UserResponseToJSON(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, UserResponseData_1.UserResponseDataToJSON)(value
|
|
45
|
+
'data': (0, UserResponseData_1.UserResponseDataToJSON)(value['data']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.UserResponseToJSON = UserResponseToJSON;
|
|
@@ -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 UserResponseData {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the UserResponseData interface.
|
|
28
28
|
*/
|
|
29
|
-
export declare function instanceOfUserResponseData(value: object):
|
|
29
|
+
export declare function instanceOfUserResponseData(value: object): value is UserResponseData;
|
|
30
30
|
export declare function UserResponseDataFromJSON(json: any): UserResponseData;
|
|
31
31
|
export declare function UserResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserResponseData;
|
|
32
32
|
export declare function UserResponseDataToJSON(value?: UserResponseData | 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 User_1 = require("./User");
|
|
|
19
19
|
* Check if a given object implements the UserResponseData interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfUserResponseData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfUserResponseData = instanceOfUserResponseData;
|
|
27
27
|
function UserResponseDataFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function UserResponseDataFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.UserResponseDataFromJSON = UserResponseDataFromJSON;
|
|
31
31
|
function UserResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function UserResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.UserResponseDataFromJSONTyped = UserResponseDataFromJSONTyped;
|
|
40
40
|
function UserResponseDataToJSON(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
|
-
'user': (0, User_1.UserToJSON)(value
|
|
45
|
+
'user': (0, User_1.UserToJSON)(value['user']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.UserResponseDataToJSON = UserResponseDataToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export * from './AccountType';
|
|
|
5
5
|
export * from './AccountsResponse';
|
|
6
6
|
export * from './AccountsResponseData';
|
|
7
7
|
export * from './BudgetDetail';
|
|
8
|
-
export * from './BudgetDetailAllOf';
|
|
9
8
|
export * from './BudgetDetailResponse';
|
|
10
9
|
export * from './BudgetDetailResponseData';
|
|
11
10
|
export * from './BudgetSettings';
|
|
@@ -23,25 +22,26 @@ export * from './CategoriesResponseData';
|
|
|
23
22
|
export * from './Category';
|
|
24
23
|
export * from './CategoryGroup';
|
|
25
24
|
export * from './CategoryGroupWithCategories';
|
|
26
|
-
export * from './CategoryGroupWithCategoriesAllOf';
|
|
27
25
|
export * from './CategoryResponse';
|
|
28
26
|
export * from './CategoryResponseData';
|
|
29
27
|
export * from './CurrencyFormat';
|
|
30
28
|
export * from './DateFormat';
|
|
31
29
|
export * from './ErrorDetail';
|
|
32
30
|
export * from './ErrorResponse';
|
|
31
|
+
export * from './ExistingTransaction';
|
|
33
32
|
export * from './HybridTransaction';
|
|
34
|
-
export * from './HybridTransactionAllOf';
|
|
35
33
|
export * from './HybridTransactionsResponse';
|
|
36
34
|
export * from './HybridTransactionsResponseData';
|
|
37
35
|
export * from './MonthDetail';
|
|
38
|
-
export * from './MonthDetailAllOf';
|
|
39
36
|
export * from './MonthDetailResponse';
|
|
40
37
|
export * from './MonthDetailResponseData';
|
|
41
38
|
export * from './MonthSummariesResponse';
|
|
42
39
|
export * from './MonthSummariesResponseData';
|
|
43
40
|
export * from './MonthSummary';
|
|
41
|
+
export * from './NewTransaction';
|
|
42
|
+
export * from './PatchCategoryWrapper';
|
|
44
43
|
export * from './PatchMonthCategoryWrapper';
|
|
44
|
+
export * from './PatchPayeeWrapper';
|
|
45
45
|
export * from './PatchTransactionsWrapper';
|
|
46
46
|
export * from './Payee';
|
|
47
47
|
export * from './PayeeLocation';
|
|
@@ -57,27 +57,29 @@ export * from './PostAccountWrapper';
|
|
|
57
57
|
export * from './PostTransactionsWrapper';
|
|
58
58
|
export * from './PutTransactionWrapper';
|
|
59
59
|
export * from './SaveAccount';
|
|
60
|
+
export * from './SaveCategory';
|
|
60
61
|
export * from './SaveCategoryResponse';
|
|
61
62
|
export * from './SaveCategoryResponseData';
|
|
62
63
|
export * from './SaveMonthCategory';
|
|
64
|
+
export * from './SavePayee';
|
|
65
|
+
export * from './SavePayeeResponse';
|
|
66
|
+
export * from './SavePayeeResponseData';
|
|
63
67
|
export * from './SaveSubTransaction';
|
|
64
|
-
export * from './
|
|
65
|
-
export * from './SaveTransactionWithId';
|
|
66
|
-
export * from './SaveTransactionWithIdAllOf';
|
|
68
|
+
export * from './SaveTransactionWithIdOrImportId';
|
|
67
69
|
export * from './SaveTransactionWithOptionalFields';
|
|
68
70
|
export * from './SaveTransactionsResponse';
|
|
69
71
|
export * from './SaveTransactionsResponseData';
|
|
70
72
|
export * from './ScheduledSubTransaction';
|
|
71
73
|
export * from './ScheduledTransactionDetail';
|
|
72
|
-
export * from './ScheduledTransactionDetailAllOf';
|
|
73
74
|
export * from './ScheduledTransactionResponse';
|
|
74
75
|
export * from './ScheduledTransactionResponseData';
|
|
75
76
|
export * from './ScheduledTransactionSummary';
|
|
76
77
|
export * from './ScheduledTransactionsResponse';
|
|
77
78
|
export * from './ScheduledTransactionsResponseData';
|
|
78
79
|
export * from './SubTransaction';
|
|
80
|
+
export * from './TransactionClearedStatus';
|
|
79
81
|
export * from './TransactionDetail';
|
|
80
|
-
export * from './
|
|
82
|
+
export * from './TransactionFlagColor';
|
|
81
83
|
export * from './TransactionResponse';
|
|
82
84
|
export * from './TransactionResponseData';
|
|
83
85
|
export * from './TransactionSummary';
|
package/dist/models/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -19,7 +23,6 @@ __exportStar(require("./AccountType"), exports);
|
|
|
19
23
|
__exportStar(require("./AccountsResponse"), exports);
|
|
20
24
|
__exportStar(require("./AccountsResponseData"), exports);
|
|
21
25
|
__exportStar(require("./BudgetDetail"), exports);
|
|
22
|
-
__exportStar(require("./BudgetDetailAllOf"), exports);
|
|
23
26
|
__exportStar(require("./BudgetDetailResponse"), exports);
|
|
24
27
|
__exportStar(require("./BudgetDetailResponseData"), exports);
|
|
25
28
|
__exportStar(require("./BudgetSettings"), exports);
|
|
@@ -37,25 +40,26 @@ __exportStar(require("./CategoriesResponseData"), exports);
|
|
|
37
40
|
__exportStar(require("./Category"), exports);
|
|
38
41
|
__exportStar(require("./CategoryGroup"), exports);
|
|
39
42
|
__exportStar(require("./CategoryGroupWithCategories"), exports);
|
|
40
|
-
__exportStar(require("./CategoryGroupWithCategoriesAllOf"), exports);
|
|
41
43
|
__exportStar(require("./CategoryResponse"), exports);
|
|
42
44
|
__exportStar(require("./CategoryResponseData"), exports);
|
|
43
45
|
__exportStar(require("./CurrencyFormat"), exports);
|
|
44
46
|
__exportStar(require("./DateFormat"), exports);
|
|
45
47
|
__exportStar(require("./ErrorDetail"), exports);
|
|
46
48
|
__exportStar(require("./ErrorResponse"), exports);
|
|
49
|
+
__exportStar(require("./ExistingTransaction"), exports);
|
|
47
50
|
__exportStar(require("./HybridTransaction"), exports);
|
|
48
|
-
__exportStar(require("./HybridTransactionAllOf"), exports);
|
|
49
51
|
__exportStar(require("./HybridTransactionsResponse"), exports);
|
|
50
52
|
__exportStar(require("./HybridTransactionsResponseData"), exports);
|
|
51
53
|
__exportStar(require("./MonthDetail"), exports);
|
|
52
|
-
__exportStar(require("./MonthDetailAllOf"), exports);
|
|
53
54
|
__exportStar(require("./MonthDetailResponse"), exports);
|
|
54
55
|
__exportStar(require("./MonthDetailResponseData"), exports);
|
|
55
56
|
__exportStar(require("./MonthSummariesResponse"), exports);
|
|
56
57
|
__exportStar(require("./MonthSummariesResponseData"), exports);
|
|
57
58
|
__exportStar(require("./MonthSummary"), exports);
|
|
59
|
+
__exportStar(require("./NewTransaction"), exports);
|
|
60
|
+
__exportStar(require("./PatchCategoryWrapper"), exports);
|
|
58
61
|
__exportStar(require("./PatchMonthCategoryWrapper"), exports);
|
|
62
|
+
__exportStar(require("./PatchPayeeWrapper"), exports);
|
|
59
63
|
__exportStar(require("./PatchTransactionsWrapper"), exports);
|
|
60
64
|
__exportStar(require("./Payee"), exports);
|
|
61
65
|
__exportStar(require("./PayeeLocation"), exports);
|
|
@@ -71,27 +75,29 @@ __exportStar(require("./PostAccountWrapper"), exports);
|
|
|
71
75
|
__exportStar(require("./PostTransactionsWrapper"), exports);
|
|
72
76
|
__exportStar(require("./PutTransactionWrapper"), exports);
|
|
73
77
|
__exportStar(require("./SaveAccount"), exports);
|
|
78
|
+
__exportStar(require("./SaveCategory"), exports);
|
|
74
79
|
__exportStar(require("./SaveCategoryResponse"), exports);
|
|
75
80
|
__exportStar(require("./SaveCategoryResponseData"), exports);
|
|
76
81
|
__exportStar(require("./SaveMonthCategory"), exports);
|
|
82
|
+
__exportStar(require("./SavePayee"), exports);
|
|
83
|
+
__exportStar(require("./SavePayeeResponse"), exports);
|
|
84
|
+
__exportStar(require("./SavePayeeResponseData"), exports);
|
|
77
85
|
__exportStar(require("./SaveSubTransaction"), exports);
|
|
78
|
-
__exportStar(require("./
|
|
79
|
-
__exportStar(require("./SaveTransactionWithId"), exports);
|
|
80
|
-
__exportStar(require("./SaveTransactionWithIdAllOf"), exports);
|
|
86
|
+
__exportStar(require("./SaveTransactionWithIdOrImportId"), exports);
|
|
81
87
|
__exportStar(require("./SaveTransactionWithOptionalFields"), exports);
|
|
82
88
|
__exportStar(require("./SaveTransactionsResponse"), exports);
|
|
83
89
|
__exportStar(require("./SaveTransactionsResponseData"), exports);
|
|
84
90
|
__exportStar(require("./ScheduledSubTransaction"), exports);
|
|
85
91
|
__exportStar(require("./ScheduledTransactionDetail"), exports);
|
|
86
|
-
__exportStar(require("./ScheduledTransactionDetailAllOf"), exports);
|
|
87
92
|
__exportStar(require("./ScheduledTransactionResponse"), exports);
|
|
88
93
|
__exportStar(require("./ScheduledTransactionResponseData"), exports);
|
|
89
94
|
__exportStar(require("./ScheduledTransactionSummary"), exports);
|
|
90
95
|
__exportStar(require("./ScheduledTransactionsResponse"), exports);
|
|
91
96
|
__exportStar(require("./ScheduledTransactionsResponseData"), exports);
|
|
92
97
|
__exportStar(require("./SubTransaction"), exports);
|
|
98
|
+
__exportStar(require("./TransactionClearedStatus"), exports);
|
|
93
99
|
__exportStar(require("./TransactionDetail"), exports);
|
|
94
|
-
__exportStar(require("./
|
|
100
|
+
__exportStar(require("./TransactionFlagColor"), exports);
|
|
95
101
|
__exportStar(require("./TransactionResponse"), exports);
|
|
96
102
|
__exportStar(require("./TransactionResponseData"), exports);
|
|
97
103
|
__exportStar(require("./TransactionSummary"), exports);
|
package/dist/runtime.d.ts
CHANGED
|
@@ -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).
|
|
@@ -90,24 +90,24 @@ export declare const COLLECTION_FORMATS: {
|
|
|
90
90
|
tsv: string;
|
|
91
91
|
pipes: string;
|
|
92
92
|
};
|
|
93
|
-
export
|
|
94
|
-
export
|
|
95
|
-
export
|
|
96
|
-
export
|
|
93
|
+
export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
|
|
94
|
+
export type Json = any;
|
|
95
|
+
export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
|
|
96
|
+
export type HTTPHeaders = {
|
|
97
97
|
[key: string]: string;
|
|
98
98
|
};
|
|
99
|
-
export
|
|
99
|
+
export type HTTPQuery = {
|
|
100
100
|
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
|
|
101
101
|
};
|
|
102
|
-
export
|
|
103
|
-
export
|
|
102
|
+
export type HTTPBody = Json | FormData | URLSearchParams;
|
|
103
|
+
export type HTTPRequestInit = {
|
|
104
104
|
headers?: HTTPHeaders;
|
|
105
105
|
method: HTTPMethod;
|
|
106
106
|
credentials?: RequestCredentials;
|
|
107
107
|
body?: HTTPBody;
|
|
108
108
|
};
|
|
109
|
-
export
|
|
110
|
-
export
|
|
109
|
+
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
|
110
|
+
export type InitOverrideFunction = (requestContext: {
|
|
111
111
|
init: HTTPRequestInit;
|
|
112
112
|
context: RequestOpts;
|
|
113
113
|
}) => Promise<RequestInit>;
|
package/dist/runtime.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).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ynab",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "YNAB API Javascript (Node) Library",
|
|
5
5
|
"author": "YNAB",
|
|
6
6
|
"email": "api@ynab.com",
|
|
@@ -25,11 +25,10 @@
|
|
|
25
25
|
"url": "https://github.com/ynab/ynab-sdk-js.git"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
|
-
"node": "
|
|
28
|
+
"node": ">=14"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
|
-
"generate": "
|
|
32
|
-
"download_lastest_spec": "wget https://api.ynab.com/papi/open_api_spec.yaml -O open_api_spec.yaml",
|
|
31
|
+
"generate": "./scripts/generate.mjs",
|
|
33
32
|
"build": "tsc -b src/ test/ examples/ && tsc -b src/tsconfig.esm.json && webpack --mode production && npm run build_examples",
|
|
34
33
|
"build_examples": "tsc -b examples/",
|
|
35
34
|
"test": "TS_NODE_PROJECT=./test/tsconfig.json mocha --reporter spec --require ts-node/register/type-check 'test/**/*.ts'"
|
|
@@ -41,11 +40,11 @@
|
|
|
41
40
|
"@types/node": "^14.0.27",
|
|
42
41
|
"chai": "^4.2.0",
|
|
43
42
|
"fetch-mock": "^9.10.6",
|
|
44
|
-
"jsh": "0.
|
|
43
|
+
"jsh": "0.55.0",
|
|
45
44
|
"mocha": "^10.2.0",
|
|
46
45
|
"ts-loader": "^8.0.2",
|
|
47
|
-
"ts-node": "
|
|
48
|
-
"typescript": "
|
|
46
|
+
"ts-node": "10.9.1",
|
|
47
|
+
"typescript": "5.2.2",
|
|
49
48
|
"url": "^0.11.0",
|
|
50
49
|
"webpack": "^5.74.0",
|
|
51
50
|
"webpack-cli": "^5.0.1"
|