ynab 2.10.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -42
- package/dist/apis/AccountsApi.d.ts +12 -12
- package/dist/apis/AccountsApi.js +38 -28
- package/dist/apis/CategoriesApi.d.ts +68 -25
- package/dist/apis/CategoriesApi.js +176 -46
- package/dist/apis/DeprecatedApi.js +17 -7
- package/dist/apis/MoneyMovementsApi.d.ts +67 -0
- package/dist/apis/MoneyMovementsApi.js +194 -0
- package/dist/apis/MonthsApi.d.ts +16 -16
- package/dist/apis/MonthsApi.js +38 -28
- package/dist/apis/PayeeLocationsApi.d.ts +12 -12
- package/dist/apis/PayeeLocationsApi.js +38 -28
- package/dist/apis/PayeesApi.d.ts +10 -10
- package/dist/apis/PayeesApi.js +36 -26
- package/dist/apis/PlansApi.d.ts +53 -0
- package/dist/apis/{BudgetsApi.js → PlansApi.js} +50 -40
- package/dist/apis/ScheduledTransactionsApi.d.ts +20 -20
- package/dist/apis/ScheduledTransactionsApi.js +52 -42
- package/dist/apis/TransactionsApi.d.ts +49 -49
- package/dist/apis/TransactionsApi.js +99 -89
- package/dist/apis/UserApi.d.ts +2 -2
- package/dist/apis/UserApi.js +19 -9
- package/dist/apis/index.d.ts +2 -1
- package/dist/apis/index.js +2 -1
- package/dist/browser/ynab.js +1 -1
- package/dist/esm/apis/AccountsApi.d.ts +12 -12
- package/dist/esm/apis/AccountsApi.js +23 -23
- package/dist/esm/apis/CategoriesApi.d.ts +68 -25
- package/dist/esm/apis/CategoriesApi.js +228 -42
- package/dist/esm/apis/DeprecatedApi.js +2 -2
- package/dist/esm/apis/MoneyMovementsApi.d.ts +67 -0
- package/dist/esm/apis/MoneyMovementsApi.js +302 -0
- package/dist/esm/apis/MonthsApi.d.ts +16 -16
- package/dist/esm/apis/MonthsApi.js +23 -23
- package/dist/esm/apis/PayeeLocationsApi.d.ts +12 -12
- package/dist/esm/apis/PayeeLocationsApi.js +23 -23
- package/dist/esm/apis/PayeesApi.d.ts +10 -10
- package/dist/esm/apis/PayeesApi.js +21 -21
- package/dist/esm/apis/PlansApi.d.ts +53 -0
- package/dist/esm/apis/{BudgetsApi.js → PlansApi.js} +38 -38
- package/dist/esm/apis/ScheduledTransactionsApi.d.ts +20 -20
- package/dist/esm/apis/ScheduledTransactionsApi.js +37 -37
- package/dist/esm/apis/TransactionsApi.d.ts +49 -49
- package/dist/esm/apis/TransactionsApi.js +84 -84
- package/dist/esm/apis/UserApi.d.ts +2 -2
- package/dist/esm/apis/UserApi.js +4 -4
- package/dist/esm/apis/index.d.ts +2 -1
- package/dist/esm/apis/index.js +2 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +5 -5
- package/dist/esm/models/Account.d.ts +6 -6
- package/dist/esm/models/Category.d.ts +10 -4
- package/dist/esm/models/Category.js +2 -0
- package/dist/esm/models/CategoryGroupWithCategories.d.ts +1 -1
- package/dist/esm/models/CurrencyFormat.d.ts +1 -1
- package/dist/esm/models/DateFormat.d.ts +1 -1
- package/dist/esm/models/ExistingCategory.d.ts +51 -0
- package/dist/esm/models/ExistingCategory.js +45 -0
- package/dist/esm/models/ExistingTransaction.d.ts +4 -4
- package/dist/esm/models/HybridTransaction.d.ts +12 -12
- package/dist/esm/models/MoneyMovement.d.ts +75 -0
- package/dist/esm/models/MoneyMovement.js +57 -0
- package/dist/esm/models/MoneyMovementGroup.d.ts +51 -0
- package/dist/esm/models/MoneyMovementGroup.js +51 -0
- package/dist/esm/models/MoneyMovementGroupsResponse.d.ts +28 -0
- package/dist/esm/models/MoneyMovementGroupsResponse.js +40 -0
- package/dist/esm/models/MoneyMovementGroupsResponseData.d.ts +34 -0
- package/dist/esm/models/MoneyMovementGroupsResponseData.js +44 -0
- package/dist/esm/models/MoneyMovementsResponse.d.ts +28 -0
- package/dist/esm/models/{BudgetSettingsResponse.js → MoneyMovementsResponse.js} +11 -11
- package/dist/esm/models/MoneyMovementsResponseData.d.ts +34 -0
- package/dist/esm/models/MoneyMovementsResponseData.js +44 -0
- package/dist/esm/models/MonthDetail.d.ts +4 -4
- package/dist/esm/models/MonthSummary.d.ts +1 -1
- package/dist/esm/models/NewCategory.d.ts +51 -0
- package/dist/esm/models/NewCategory.js +45 -0
- package/dist/esm/models/NewTransaction.d.ts +4 -4
- package/dist/esm/models/PatchCategoryGroupWrapper.d.ts +28 -0
- package/dist/esm/models/PatchCategoryGroupWrapper.js +40 -0
- package/dist/esm/models/PatchCategoryWrapper.d.ts +3 -3
- package/dist/esm/models/PatchCategoryWrapper.js +3 -3
- package/dist/{models/BudgetDetail.d.ts → esm/models/PlanDetail.d.ts} +30 -30
- package/dist/esm/models/{BudgetDetail.js → PlanDetail.js} +8 -8
- package/dist/esm/models/PlanDetailResponse.d.ts +28 -0
- package/dist/esm/models/PlanDetailResponse.js +40 -0
- package/dist/esm/models/PlanDetailResponseData.d.ts +34 -0
- package/dist/esm/models/{BudgetDetailResponseData.js → PlanDetailResponseData.js} +11 -11
- package/dist/esm/models/PlanSettings.d.ts +35 -0
- package/dist/esm/models/{BudgetSettings.js → PlanSettings.js} +8 -8
- package/dist/esm/models/PlanSettingsResponse.d.ts +28 -0
- package/dist/esm/models/{BudgetDetailResponse.js → PlanSettingsResponse.js} +11 -11
- package/dist/esm/models/PlanSettingsResponseData.d.ts +28 -0
- package/dist/esm/models/PlanSettingsResponseData.js +40 -0
- package/dist/esm/models/PlanSummary.d.ts +72 -0
- package/dist/esm/models/{BudgetSummary.js → PlanSummary.js} +8 -8
- package/dist/esm/models/PlanSummaryResponse.d.ts +28 -0
- package/dist/esm/models/PlanSummaryResponse.js +40 -0
- package/dist/esm/models/PlanSummaryResponseData.d.ts +34 -0
- package/dist/esm/models/PlanSummaryResponseData.js +42 -0
- package/dist/esm/models/PostCategoryGroupWrapper.d.ts +28 -0
- package/dist/esm/models/PostCategoryGroupWrapper.js +40 -0
- package/dist/esm/models/PostCategoryWrapper.d.ts +28 -0
- package/dist/esm/models/PostCategoryWrapper.js +40 -0
- package/dist/esm/models/SaveCategory.d.ts +7 -1
- package/dist/esm/models/SaveCategory.js +2 -0
- package/dist/esm/models/SaveCategoryGroup.d.ts +27 -0
- package/dist/esm/models/SaveCategoryGroup.js +39 -0
- package/dist/esm/models/SaveCategoryGroupResponse.d.ts +28 -0
- package/dist/esm/models/SaveCategoryGroupResponse.js +40 -0
- package/dist/esm/models/SaveCategoryGroupResponseData.d.ts +34 -0
- package/dist/esm/models/SaveCategoryGroupResponseData.js +44 -0
- package/dist/esm/models/SaveMonthCategory.d.ts +1 -1
- package/dist/esm/models/SaveTransactionWithIdOrImportId.d.ts +4 -4
- package/dist/esm/models/ScheduledTransactionDetail.d.ts +6 -6
- package/dist/esm/models/ScheduledTransactionSummary.d.ts +1 -1
- package/dist/esm/models/TransactionDetail.d.ts +11 -11
- package/dist/esm/models/TransactionSummary.d.ts +1 -1
- package/dist/esm/models/index.d.ts +23 -9
- package/dist/esm/models/index.js +23 -9
- package/dist/esm/runtime.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +22 -12
- package/dist/models/Account.d.ts +6 -6
- package/dist/models/Account.js +5 -6
- package/dist/models/AccountResponse.js +5 -6
- package/dist/models/AccountResponseData.js +5 -6
- package/dist/models/AccountType.js +6 -6
- package/dist/models/AccountsResponse.js +5 -6
- package/dist/models/AccountsResponseData.js +5 -6
- package/dist/models/BulkResponse.js +5 -6
- package/dist/models/BulkResponseData.js +5 -6
- package/dist/models/BulkResponseDataBulk.js +5 -6
- package/dist/models/BulkTransactions.js +5 -6
- package/dist/models/CategoriesResponse.js +5 -6
- package/dist/models/CategoriesResponseData.js +5 -6
- package/dist/models/Category.d.ts +10 -4
- package/dist/models/Category.js +8 -6
- package/dist/models/CategoryGoalType.js +4 -5
- package/dist/models/CategoryGroup.js +5 -6
- package/dist/models/CategoryGroupWithCategories.d.ts +1 -1
- package/dist/models/CategoryGroupWithCategories.js +5 -6
- package/dist/models/CategoryGroupWithCategoriesAllOf.js +4 -5
- package/dist/models/CategoryResponse.js +5 -6
- package/dist/models/CategoryResponseData.js +5 -6
- package/dist/models/CurrencyFormat.d.ts +1 -1
- package/dist/models/CurrencyFormat.js +5 -6
- package/dist/models/DateFormat.d.ts +1 -1
- package/dist/models/DateFormat.js +5 -6
- package/dist/models/ErrorDetail.js +5 -6
- package/dist/models/ErrorResponse.js +5 -6
- package/dist/models/ExistingCategory.d.ts +51 -0
- package/dist/models/ExistingCategory.js +51 -0
- package/dist/models/ExistingTransaction.d.ts +4 -4
- package/dist/models/ExistingTransaction.js +5 -6
- package/dist/models/HybridTransaction.d.ts +12 -12
- package/dist/models/HybridTransaction.js +6 -6
- package/dist/models/HybridTransactionAllOf.js +5 -5
- package/dist/models/HybridTransactionsResponse.js +5 -6
- package/dist/models/HybridTransactionsResponseData.js +5 -6
- package/dist/models/MoneyMovement.d.ts +75 -0
- package/dist/models/MoneyMovement.js +63 -0
- package/dist/models/MoneyMovementGroup.d.ts +51 -0
- package/dist/models/MoneyMovementGroup.js +57 -0
- package/dist/models/MoneyMovementGroupsResponse.d.ts +28 -0
- package/dist/models/MoneyMovementGroupsResponse.js +46 -0
- package/dist/models/MoneyMovementGroupsResponseData.d.ts +34 -0
- package/dist/models/MoneyMovementGroupsResponseData.js +50 -0
- package/dist/models/MoneyMovementsResponse.d.ts +28 -0
- package/dist/models/MoneyMovementsResponse.js +46 -0
- package/dist/models/MoneyMovementsResponseData.d.ts +34 -0
- package/dist/models/MoneyMovementsResponseData.js +50 -0
- package/dist/models/MonthDetail.d.ts +4 -4
- package/dist/models/MonthDetail.js +5 -6
- package/dist/models/MonthDetailAllOf.js +4 -5
- package/dist/models/MonthDetailResponse.js +5 -6
- package/dist/models/MonthDetailResponseData.js +5 -6
- package/dist/models/MonthSummariesResponse.js +5 -6
- package/dist/models/MonthSummariesResponseData.js +5 -6
- package/dist/models/MonthSummary.d.ts +1 -1
- package/dist/models/MonthSummary.js +5 -6
- package/dist/models/NewCategory.d.ts +51 -0
- package/dist/models/NewCategory.js +51 -0
- package/dist/models/NewTransaction.d.ts +4 -4
- package/dist/models/NewTransaction.js +5 -6
- package/dist/models/PatchCategoryGroupWrapper.d.ts +28 -0
- package/dist/models/PatchCategoryGroupWrapper.js +46 -0
- package/dist/models/PatchCategoryWrapper.d.ts +3 -3
- package/dist/models/PatchCategoryWrapper.js +8 -9
- package/dist/models/PatchMonthCategoryWrapper.js +5 -6
- package/dist/models/PatchPayeeWrapper.js +5 -6
- package/dist/models/PatchTransactionsWrapper.js +5 -6
- package/dist/models/Payee.js +5 -6
- package/dist/models/PayeeLocation.js +5 -6
- package/dist/models/PayeeLocationResponse.js +5 -6
- package/dist/models/PayeeLocationResponseData.js +5 -6
- package/dist/models/PayeeLocationsResponse.js +5 -6
- package/dist/models/PayeeLocationsResponseData.js +5 -6
- package/dist/models/PayeeResponse.js +5 -6
- package/dist/models/PayeeResponseData.js +5 -6
- package/dist/models/PayeesResponse.js +5 -6
- package/dist/models/PayeesResponseData.js +5 -6
- package/dist/{esm/models/BudgetDetail.d.ts → models/PlanDetail.d.ts} +30 -30
- package/dist/models/{BudgetDetail.js → PlanDetail.js} +13 -14
- package/dist/models/PlanDetailResponse.d.ts +28 -0
- package/dist/models/PlanDetailResponse.js +46 -0
- package/dist/models/PlanDetailResponseData.d.ts +34 -0
- package/dist/models/PlanDetailResponseData.js +50 -0
- package/dist/models/PlanSettings.d.ts +35 -0
- package/dist/models/{BudgetSettings.js → PlanSettings.js} +13 -14
- package/dist/models/PlanSettingsResponse.d.ts +28 -0
- package/dist/models/PlanSettingsResponse.js +46 -0
- package/dist/models/PlanSettingsResponseData.d.ts +28 -0
- package/dist/models/PlanSettingsResponseData.js +46 -0
- package/dist/models/PlanSummary.d.ts +72 -0
- package/dist/models/{BudgetSummary.js → PlanSummary.js} +13 -14
- package/dist/models/PlanSummaryResponse.d.ts +28 -0
- package/dist/models/PlanSummaryResponse.js +46 -0
- package/dist/models/PlanSummaryResponseData.d.ts +34 -0
- package/dist/models/PlanSummaryResponseData.js +48 -0
- package/dist/models/PostAccountWrapper.js +5 -6
- package/dist/models/PostCategoryGroupWrapper.d.ts +28 -0
- package/dist/models/PostCategoryGroupWrapper.js +46 -0
- package/dist/models/PostCategoryWrapper.d.ts +28 -0
- package/dist/models/PostCategoryWrapper.js +46 -0
- package/dist/models/PostScheduledTransactionWrapper.js +5 -6
- package/dist/models/PostTransactionsWrapper.js +5 -6
- package/dist/models/PutScheduledTransactionWrapper.js +5 -6
- package/dist/models/PutTransactionWrapper.js +5 -6
- package/dist/models/SaveAccount.js +5 -6
- package/dist/models/SaveCategory.d.ts +7 -1
- package/dist/models/SaveCategory.js +7 -6
- package/dist/models/SaveCategoryGroup.d.ts +27 -0
- package/dist/models/SaveCategoryGroup.js +45 -0
- package/dist/models/SaveCategoryGroupResponse.d.ts +28 -0
- package/dist/models/SaveCategoryGroupResponse.js +46 -0
- package/dist/models/SaveCategoryGroupResponseData.d.ts +34 -0
- package/dist/models/SaveCategoryGroupResponseData.js +50 -0
- package/dist/models/SaveCategoryResponse.js +5 -6
- package/dist/models/SaveCategoryResponseData.js +5 -6
- package/dist/models/SaveMonthCategory.d.ts +1 -1
- package/dist/models/SaveMonthCategory.js +5 -6
- package/dist/models/SavePayee.js +5 -6
- package/dist/models/SavePayeeResponse.js +5 -6
- package/dist/models/SavePayeeResponseData.js +5 -6
- package/dist/models/SaveScheduledTransaction.js +5 -6
- package/dist/models/SaveSubTransaction.js +5 -6
- package/dist/models/SaveTransaction.js +4 -5
- package/dist/models/SaveTransactionWithId.js +4 -5
- package/dist/models/SaveTransactionWithIdAllOf.js +4 -5
- package/dist/models/SaveTransactionWithIdOrImportId.d.ts +4 -4
- package/dist/models/SaveTransactionWithIdOrImportId.js +5 -6
- package/dist/models/SaveTransactionWithOptionalFields.js +5 -6
- package/dist/models/SaveTransactionWithOptionalFieldsFlagColor.js +4 -5
- package/dist/models/SaveTransactionsResponse.js +5 -6
- package/dist/models/SaveTransactionsResponseData.js +5 -6
- package/dist/models/ScheduledSubTransaction.js +5 -6
- package/dist/models/ScheduledTransactionDetail.d.ts +6 -6
- package/dist/models/ScheduledTransactionDetail.js +6 -6
- package/dist/models/ScheduledTransactionDetailAllOf.js +4 -5
- package/dist/models/ScheduledTransactionFrequency.js +6 -6
- package/dist/models/ScheduledTransactionResponse.js +5 -6
- package/dist/models/ScheduledTransactionResponseData.js +5 -6
- package/dist/models/ScheduledTransactionSummary.d.ts +1 -1
- package/dist/models/ScheduledTransactionSummary.js +6 -6
- package/dist/models/ScheduledTransactionSummaryFlagColor.js +4 -5
- package/dist/models/ScheduledTransactionsResponse.js +5 -6
- package/dist/models/ScheduledTransactionsResponseData.js +5 -6
- package/dist/models/SubTransaction.js +5 -6
- package/dist/models/TransactionClearedStatus.js +6 -6
- package/dist/models/TransactionDetail.d.ts +11 -11
- package/dist/models/TransactionDetail.js +6 -6
- package/dist/models/TransactionDetailAllOf.js +4 -5
- package/dist/models/TransactionFlagColor.js +6 -6
- package/dist/models/TransactionResponse.js +5 -6
- package/dist/models/TransactionResponseData.js +5 -6
- package/dist/models/TransactionSummary.d.ts +1 -1
- package/dist/models/TransactionSummary.js +6 -6
- package/dist/models/TransactionSummaryDebtTransactionType.js +4 -5
- package/dist/models/TransactionsImportResponse.js +5 -6
- package/dist/models/TransactionsImportResponseData.js +5 -6
- package/dist/models/TransactionsResponse.js +5 -6
- package/dist/models/TransactionsResponseData.js +5 -6
- package/dist/models/User.js +5 -6
- package/dist/models/UserResponse.js +5 -6
- package/dist/models/UserResponseData.js +5 -6
- package/dist/models/index.d.ts +23 -9
- package/dist/models/index.js +23 -9
- package/dist/runtime.js +5 -5
- package/package.json +7 -8
- package/dist/apis/BudgetsApi.d.ts +0 -53
- package/dist/esm/apis/BudgetsApi.d.ts +0 -53
- package/dist/esm/models/BudgetDetailAllOf.d.ts +0 -95
- package/dist/esm/models/BudgetDetailAllOf.js +0 -71
- package/dist/esm/models/BudgetDetailResponse.d.ts +0 -28
- package/dist/esm/models/BudgetDetailResponseData.d.ts +0 -34
- package/dist/esm/models/BudgetSettings.d.ts +0 -35
- package/dist/esm/models/BudgetSettingsResponse.d.ts +0 -28
- package/dist/esm/models/BudgetSettingsResponseData.d.ts +0 -28
- package/dist/esm/models/BudgetSettingsResponseData.js +0 -40
- package/dist/esm/models/BudgetSummary.d.ts +0 -72
- package/dist/esm/models/BudgetSummaryResponse.d.ts +0 -28
- package/dist/esm/models/BudgetSummaryResponse.js +0 -40
- package/dist/esm/models/BudgetSummaryResponseData.d.ts +0 -34
- package/dist/esm/models/BudgetSummaryResponseData.js +0 -42
- package/dist/models/BudgetDetailAllOf.d.ts +0 -95
- package/dist/models/BudgetDetailAllOf.js +0 -78
- package/dist/models/BudgetDetailResponse.d.ts +0 -28
- package/dist/models/BudgetDetailResponse.js +0 -47
- package/dist/models/BudgetDetailResponseData.d.ts +0 -34
- package/dist/models/BudgetDetailResponseData.js +0 -51
- package/dist/models/BudgetSettings.d.ts +0 -35
- package/dist/models/BudgetSettingsResponse.d.ts +0 -28
- package/dist/models/BudgetSettingsResponse.js +0 -47
- package/dist/models/BudgetSettingsResponseData.d.ts +0 -28
- package/dist/models/BudgetSettingsResponseData.js +0 -47
- package/dist/models/BudgetSummary.d.ts +0 -72
- package/dist/models/BudgetSummaryResponse.d.ts +0 -28
- package/dist/models/BudgetSummaryResponse.js +0 -47
- package/dist/models/BudgetSummaryResponseData.d.ts +0 -34
- package/dist/models/BudgetSummaryResponseData.js +0 -49
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.instanceOfUserResponseData = instanceOfUserResponseData;
|
|
12
|
+
exports.UserResponseDataFromJSON = UserResponseDataFromJSON;
|
|
13
|
+
exports.UserResponseDataFromJSONTyped = UserResponseDataFromJSONTyped;
|
|
14
|
+
exports.UserResponseDataToJSON = UserResponseDataToJSON;
|
|
15
|
+
exports.UserResponseDataToJSONTyped = UserResponseDataToJSONTyped;
|
|
12
16
|
const User_1 = require("./User");
|
|
13
17
|
/**
|
|
14
18
|
* Check if a given object implements the UserResponseData interface.
|
|
@@ -18,11 +22,9 @@ function instanceOfUserResponseData(value) {
|
|
|
18
22
|
return false;
|
|
19
23
|
return true;
|
|
20
24
|
}
|
|
21
|
-
exports.instanceOfUserResponseData = instanceOfUserResponseData;
|
|
22
25
|
function UserResponseDataFromJSON(json) {
|
|
23
26
|
return UserResponseDataFromJSONTyped(json, false);
|
|
24
27
|
}
|
|
25
|
-
exports.UserResponseDataFromJSON = UserResponseDataFromJSON;
|
|
26
28
|
function UserResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
29
|
if (json == null) {
|
|
28
30
|
return json;
|
|
@@ -31,11 +33,9 @@ function UserResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
33
|
'user': (0, User_1.UserFromJSON)(json['user']),
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
|
-
exports.UserResponseDataFromJSONTyped = UserResponseDataFromJSONTyped;
|
|
35
36
|
function UserResponseDataToJSON(json) {
|
|
36
37
|
return UserResponseDataToJSONTyped(json, false);
|
|
37
38
|
}
|
|
38
|
-
exports.UserResponseDataToJSON = UserResponseDataToJSON;
|
|
39
39
|
function UserResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
40
|
if (value == null) {
|
|
41
41
|
return value;
|
|
@@ -44,4 +44,3 @@ function UserResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
44
|
'user': (0, User_1.UserToJSON)(value['user']),
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
exports.UserResponseDataToJSONTyped = UserResponseDataToJSONTyped;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -4,15 +4,6 @@ export * from './AccountResponseData';
|
|
|
4
4
|
export * from './AccountType';
|
|
5
5
|
export * from './AccountsResponse';
|
|
6
6
|
export * from './AccountsResponseData';
|
|
7
|
-
export * from './BudgetDetail';
|
|
8
|
-
export * from './BudgetDetailResponse';
|
|
9
|
-
export * from './BudgetDetailResponseData';
|
|
10
|
-
export * from './BudgetSettings';
|
|
11
|
-
export * from './BudgetSettingsResponse';
|
|
12
|
-
export * from './BudgetSettingsResponseData';
|
|
13
|
-
export * from './BudgetSummary';
|
|
14
|
-
export * from './BudgetSummaryResponse';
|
|
15
|
-
export * from './BudgetSummaryResponseData';
|
|
16
7
|
export * from './BulkResponse';
|
|
17
8
|
export * from './BulkResponseData';
|
|
18
9
|
export * from './BulkResponseDataBulk';
|
|
@@ -28,17 +19,26 @@ export * from './CurrencyFormat';
|
|
|
28
19
|
export * from './DateFormat';
|
|
29
20
|
export * from './ErrorDetail';
|
|
30
21
|
export * from './ErrorResponse';
|
|
22
|
+
export * from './ExistingCategory';
|
|
31
23
|
export * from './ExistingTransaction';
|
|
32
24
|
export * from './HybridTransaction';
|
|
33
25
|
export * from './HybridTransactionsResponse';
|
|
34
26
|
export * from './HybridTransactionsResponseData';
|
|
27
|
+
export * from './MoneyMovement';
|
|
28
|
+
export * from './MoneyMovementGroup';
|
|
29
|
+
export * from './MoneyMovementGroupsResponse';
|
|
30
|
+
export * from './MoneyMovementGroupsResponseData';
|
|
31
|
+
export * from './MoneyMovementsResponse';
|
|
32
|
+
export * from './MoneyMovementsResponseData';
|
|
35
33
|
export * from './MonthDetail';
|
|
36
34
|
export * from './MonthDetailResponse';
|
|
37
35
|
export * from './MonthDetailResponseData';
|
|
38
36
|
export * from './MonthSummariesResponse';
|
|
39
37
|
export * from './MonthSummariesResponseData';
|
|
40
38
|
export * from './MonthSummary';
|
|
39
|
+
export * from './NewCategory';
|
|
41
40
|
export * from './NewTransaction';
|
|
41
|
+
export * from './PatchCategoryGroupWrapper';
|
|
42
42
|
export * from './PatchCategoryWrapper';
|
|
43
43
|
export * from './PatchMonthCategoryWrapper';
|
|
44
44
|
export * from './PatchPayeeWrapper';
|
|
@@ -53,13 +53,27 @@ export * from './PayeeResponse';
|
|
|
53
53
|
export * from './PayeeResponseData';
|
|
54
54
|
export * from './PayeesResponse';
|
|
55
55
|
export * from './PayeesResponseData';
|
|
56
|
+
export * from './PlanDetail';
|
|
57
|
+
export * from './PlanDetailResponse';
|
|
58
|
+
export * from './PlanDetailResponseData';
|
|
59
|
+
export * from './PlanSettings';
|
|
60
|
+
export * from './PlanSettingsResponse';
|
|
61
|
+
export * from './PlanSettingsResponseData';
|
|
62
|
+
export * from './PlanSummary';
|
|
63
|
+
export * from './PlanSummaryResponse';
|
|
64
|
+
export * from './PlanSummaryResponseData';
|
|
56
65
|
export * from './PostAccountWrapper';
|
|
66
|
+
export * from './PostCategoryGroupWrapper';
|
|
67
|
+
export * from './PostCategoryWrapper';
|
|
57
68
|
export * from './PostScheduledTransactionWrapper';
|
|
58
69
|
export * from './PostTransactionsWrapper';
|
|
59
70
|
export * from './PutScheduledTransactionWrapper';
|
|
60
71
|
export * from './PutTransactionWrapper';
|
|
61
72
|
export * from './SaveAccount';
|
|
62
73
|
export * from './SaveCategory';
|
|
74
|
+
export * from './SaveCategoryGroup';
|
|
75
|
+
export * from './SaveCategoryGroupResponse';
|
|
76
|
+
export * from './SaveCategoryGroupResponseData';
|
|
63
77
|
export * from './SaveCategoryResponse';
|
|
64
78
|
export * from './SaveCategoryResponseData';
|
|
65
79
|
export * from './SaveMonthCategory';
|
package/dist/models/index.js
CHANGED
|
@@ -22,15 +22,6 @@ __exportStar(require("./AccountResponseData"), exports);
|
|
|
22
22
|
__exportStar(require("./AccountType"), exports);
|
|
23
23
|
__exportStar(require("./AccountsResponse"), exports);
|
|
24
24
|
__exportStar(require("./AccountsResponseData"), exports);
|
|
25
|
-
__exportStar(require("./BudgetDetail"), exports);
|
|
26
|
-
__exportStar(require("./BudgetDetailResponse"), exports);
|
|
27
|
-
__exportStar(require("./BudgetDetailResponseData"), exports);
|
|
28
|
-
__exportStar(require("./BudgetSettings"), exports);
|
|
29
|
-
__exportStar(require("./BudgetSettingsResponse"), exports);
|
|
30
|
-
__exportStar(require("./BudgetSettingsResponseData"), exports);
|
|
31
|
-
__exportStar(require("./BudgetSummary"), exports);
|
|
32
|
-
__exportStar(require("./BudgetSummaryResponse"), exports);
|
|
33
|
-
__exportStar(require("./BudgetSummaryResponseData"), exports);
|
|
34
25
|
__exportStar(require("./BulkResponse"), exports);
|
|
35
26
|
__exportStar(require("./BulkResponseData"), exports);
|
|
36
27
|
__exportStar(require("./BulkResponseDataBulk"), exports);
|
|
@@ -46,17 +37,26 @@ __exportStar(require("./CurrencyFormat"), exports);
|
|
|
46
37
|
__exportStar(require("./DateFormat"), exports);
|
|
47
38
|
__exportStar(require("./ErrorDetail"), exports);
|
|
48
39
|
__exportStar(require("./ErrorResponse"), exports);
|
|
40
|
+
__exportStar(require("./ExistingCategory"), exports);
|
|
49
41
|
__exportStar(require("./ExistingTransaction"), exports);
|
|
50
42
|
__exportStar(require("./HybridTransaction"), exports);
|
|
51
43
|
__exportStar(require("./HybridTransactionsResponse"), exports);
|
|
52
44
|
__exportStar(require("./HybridTransactionsResponseData"), exports);
|
|
45
|
+
__exportStar(require("./MoneyMovement"), exports);
|
|
46
|
+
__exportStar(require("./MoneyMovementGroup"), exports);
|
|
47
|
+
__exportStar(require("./MoneyMovementGroupsResponse"), exports);
|
|
48
|
+
__exportStar(require("./MoneyMovementGroupsResponseData"), exports);
|
|
49
|
+
__exportStar(require("./MoneyMovementsResponse"), exports);
|
|
50
|
+
__exportStar(require("./MoneyMovementsResponseData"), exports);
|
|
53
51
|
__exportStar(require("./MonthDetail"), exports);
|
|
54
52
|
__exportStar(require("./MonthDetailResponse"), exports);
|
|
55
53
|
__exportStar(require("./MonthDetailResponseData"), exports);
|
|
56
54
|
__exportStar(require("./MonthSummariesResponse"), exports);
|
|
57
55
|
__exportStar(require("./MonthSummariesResponseData"), exports);
|
|
58
56
|
__exportStar(require("./MonthSummary"), exports);
|
|
57
|
+
__exportStar(require("./NewCategory"), exports);
|
|
59
58
|
__exportStar(require("./NewTransaction"), exports);
|
|
59
|
+
__exportStar(require("./PatchCategoryGroupWrapper"), exports);
|
|
60
60
|
__exportStar(require("./PatchCategoryWrapper"), exports);
|
|
61
61
|
__exportStar(require("./PatchMonthCategoryWrapper"), exports);
|
|
62
62
|
__exportStar(require("./PatchPayeeWrapper"), exports);
|
|
@@ -71,13 +71,27 @@ __exportStar(require("./PayeeResponse"), exports);
|
|
|
71
71
|
__exportStar(require("./PayeeResponseData"), exports);
|
|
72
72
|
__exportStar(require("./PayeesResponse"), exports);
|
|
73
73
|
__exportStar(require("./PayeesResponseData"), exports);
|
|
74
|
+
__exportStar(require("./PlanDetail"), exports);
|
|
75
|
+
__exportStar(require("./PlanDetailResponse"), exports);
|
|
76
|
+
__exportStar(require("./PlanDetailResponseData"), exports);
|
|
77
|
+
__exportStar(require("./PlanSettings"), exports);
|
|
78
|
+
__exportStar(require("./PlanSettingsResponse"), exports);
|
|
79
|
+
__exportStar(require("./PlanSettingsResponseData"), exports);
|
|
80
|
+
__exportStar(require("./PlanSummary"), exports);
|
|
81
|
+
__exportStar(require("./PlanSummaryResponse"), exports);
|
|
82
|
+
__exportStar(require("./PlanSummaryResponseData"), exports);
|
|
74
83
|
__exportStar(require("./PostAccountWrapper"), exports);
|
|
84
|
+
__exportStar(require("./PostCategoryGroupWrapper"), exports);
|
|
85
|
+
__exportStar(require("./PostCategoryWrapper"), exports);
|
|
75
86
|
__exportStar(require("./PostScheduledTransactionWrapper"), exports);
|
|
76
87
|
__exportStar(require("./PostTransactionsWrapper"), exports);
|
|
77
88
|
__exportStar(require("./PutScheduledTransactionWrapper"), exports);
|
|
78
89
|
__exportStar(require("./PutTransactionWrapper"), exports);
|
|
79
90
|
__exportStar(require("./SaveAccount"), exports);
|
|
80
91
|
__exportStar(require("./SaveCategory"), exports);
|
|
92
|
+
__exportStar(require("./SaveCategoryGroup"), exports);
|
|
93
|
+
__exportStar(require("./SaveCategoryGroupResponse"), exports);
|
|
94
|
+
__exportStar(require("./SaveCategoryGroupResponseData"), exports);
|
|
81
95
|
__exportStar(require("./SaveCategoryResponse"), exports);
|
|
82
96
|
__exportStar(require("./SaveCategoryResponseData"), exports);
|
|
83
97
|
__exportStar(require("./SaveMonthCategory"), exports);
|
package/dist/runtime.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.
|
|
11
|
+
exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
|
|
12
|
+
exports.exists = exists;
|
|
13
|
+
exports.querystring = querystring;
|
|
14
|
+
exports.mapValues = mapValues;
|
|
15
|
+
exports.canConsumeForm = canConsumeForm;
|
|
12
16
|
// Polyfill fetch globally - this makes it easier to override with modules like fetch-mock.
|
|
13
17
|
const fetchPonyfill = require("fetch-ponyfill")();
|
|
14
18
|
if (!globalThis.fetch) {
|
|
@@ -258,14 +262,12 @@ function exists(json, key) {
|
|
|
258
262
|
const value = json[key];
|
|
259
263
|
return value !== null && value !== undefined;
|
|
260
264
|
}
|
|
261
|
-
exports.exists = exists;
|
|
262
265
|
function querystring(params, prefix = '') {
|
|
263
266
|
return Object.keys(params)
|
|
264
267
|
.map(key => querystringSingleKey(key, params[key], prefix))
|
|
265
268
|
.filter(part => part.length > 0)
|
|
266
269
|
.join('&');
|
|
267
270
|
}
|
|
268
|
-
exports.querystring = querystring;
|
|
269
271
|
function querystringSingleKey(key, value, keyPrefix = '') {
|
|
270
272
|
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
271
273
|
if (value instanceof Array) {
|
|
@@ -288,7 +290,6 @@ function querystringSingleKey(key, value, keyPrefix = '') {
|
|
|
288
290
|
function mapValues(data, fn) {
|
|
289
291
|
return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {});
|
|
290
292
|
}
|
|
291
|
-
exports.mapValues = mapValues;
|
|
292
293
|
function canConsumeForm(consumes) {
|
|
293
294
|
for (const consume of consumes) {
|
|
294
295
|
if ('multipart/form-data' === consume.contentType) {
|
|
@@ -297,7 +298,6 @@ function canConsumeForm(consumes) {
|
|
|
297
298
|
}
|
|
298
299
|
return false;
|
|
299
300
|
}
|
|
300
|
-
exports.canConsumeForm = canConsumeForm;
|
|
301
301
|
class JSONApiResponse {
|
|
302
302
|
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
303
303
|
this.raw = raw;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ynab",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Official JavaScript client for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.
|
|
3
|
+
"version": "3.1.0",
|
|
4
|
+
"description": "Official JavaScript client for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.78.0",
|
|
5
5
|
"author": "YNAB",
|
|
6
6
|
"email": "api@ynab.com",
|
|
7
7
|
"url": "https://api.ynab.com",
|
|
@@ -29,23 +29,22 @@
|
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"generate": "./scripts/generate.mjs",
|
|
32
|
-
"build": "tsc -b src/ test/ examples/ && tsc -b src/tsconfig.esm.json && webpack --mode production
|
|
33
|
-
"
|
|
34
|
-
"test": "TS_NODE_PROJECT=./test/tsconfig.json mocha --reporter spec --require ts-node/register/type-check 'test/**/*.ts'"
|
|
32
|
+
"build": "tsc -b src/ test/ examples/ && tsc -b src/tsconfig.esm.json && webpack --mode production",
|
|
33
|
+
"test": "npx mocha"
|
|
35
34
|
},
|
|
36
35
|
"devDependencies": {
|
|
37
36
|
"@types/chai": "^4.2.12",
|
|
38
37
|
"@types/fetch-mock": "^7.3.2",
|
|
39
38
|
"@types/mocha": "^8.0.2",
|
|
40
|
-
"@types/node": "^
|
|
39
|
+
"@types/node": "^22.19.11",
|
|
41
40
|
"chai": "^4.2.0",
|
|
42
41
|
"fetch-mock": "^9.10.6",
|
|
43
42
|
"js-yaml": "^4.1.0",
|
|
44
43
|
"jsh": "0.55.0",
|
|
45
44
|
"mocha": "^10.8.2",
|
|
46
45
|
"ts-loader": "^8.0.2",
|
|
47
|
-
"
|
|
48
|
-
"typescript": "5.
|
|
46
|
+
"tsx": "4.21.0",
|
|
47
|
+
"typescript": "^5.9.3",
|
|
49
48
|
"url": "^0.11.0",
|
|
50
49
|
"webpack": "^5.74.0",
|
|
51
50
|
"webpack-cli": "^5.0.1"
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* YNAB API Endpoints
|
|
3
|
-
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
-
*
|
|
5
|
-
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
-
*/
|
|
7
|
-
import * as runtime from '../runtime';
|
|
8
|
-
import type { BudgetDetailResponse, BudgetSettingsResponse, BudgetSummaryResponse } from '../models/index';
|
|
9
|
-
export interface GetBudgetByIdRequest {
|
|
10
|
-
budgetId: string;
|
|
11
|
-
lastKnowledgeOfServer?: number;
|
|
12
|
-
}
|
|
13
|
-
export interface GetBudgetSettingsByIdRequest {
|
|
14
|
-
budgetId: string;
|
|
15
|
-
}
|
|
16
|
-
export interface GetBudgetsRequest {
|
|
17
|
-
includeAccounts?: boolean;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
export declare class BudgetsApi extends runtime.BaseAPI {
|
|
23
|
-
/**
|
|
24
|
-
* Returns a single budget with all related entities. This resource is effectively a full budget export.
|
|
25
|
-
* Single budget
|
|
26
|
-
*/
|
|
27
|
-
getBudgetByIdRaw(requestParameters: GetBudgetByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BudgetDetailResponse>>;
|
|
28
|
-
/**
|
|
29
|
-
* Returns a single budget with all related entities. This resource is effectively a full budget export.
|
|
30
|
-
* Single budget
|
|
31
|
-
*/
|
|
32
|
-
getBudgetById(budgetId: string, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BudgetDetailResponse>;
|
|
33
|
-
/**
|
|
34
|
-
* Returns settings for a budget
|
|
35
|
-
* Budget Settings
|
|
36
|
-
*/
|
|
37
|
-
getBudgetSettingsByIdRaw(requestParameters: GetBudgetSettingsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BudgetSettingsResponse>>;
|
|
38
|
-
/**
|
|
39
|
-
* Returns settings for a budget
|
|
40
|
-
* Budget Settings
|
|
41
|
-
*/
|
|
42
|
-
getBudgetSettingsById(budgetId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BudgetSettingsResponse>;
|
|
43
|
-
/**
|
|
44
|
-
* Returns budgets list with summary information
|
|
45
|
-
* List budgets
|
|
46
|
-
*/
|
|
47
|
-
getBudgetsRaw(requestParameters: GetBudgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BudgetSummaryResponse>>;
|
|
48
|
-
/**
|
|
49
|
-
* Returns budgets list with summary information
|
|
50
|
-
* List budgets
|
|
51
|
-
*/
|
|
52
|
-
getBudgets(includeAccounts?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BudgetSummaryResponse>;
|
|
53
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* YNAB API Endpoints
|
|
3
|
-
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
-
*
|
|
5
|
-
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
-
*/
|
|
7
|
-
import * as runtime from '../runtime';
|
|
8
|
-
import type { BudgetDetailResponse, BudgetSettingsResponse, BudgetSummaryResponse } from '../models/index';
|
|
9
|
-
export interface GetBudgetByIdRequest {
|
|
10
|
-
budgetId: string;
|
|
11
|
-
lastKnowledgeOfServer?: number;
|
|
12
|
-
}
|
|
13
|
-
export interface GetBudgetSettingsByIdRequest {
|
|
14
|
-
budgetId: string;
|
|
15
|
-
}
|
|
16
|
-
export interface GetBudgetsRequest {
|
|
17
|
-
includeAccounts?: boolean;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
export declare class BudgetsApi extends runtime.BaseAPI {
|
|
23
|
-
/**
|
|
24
|
-
* Returns a single budget with all related entities. This resource is effectively a full budget export.
|
|
25
|
-
* Single budget
|
|
26
|
-
*/
|
|
27
|
-
getBudgetByIdRaw(requestParameters: GetBudgetByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BudgetDetailResponse>>;
|
|
28
|
-
/**
|
|
29
|
-
* Returns a single budget with all related entities. This resource is effectively a full budget export.
|
|
30
|
-
* Single budget
|
|
31
|
-
*/
|
|
32
|
-
getBudgetById(budgetId: string, lastKnowledgeOfServer?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BudgetDetailResponse>;
|
|
33
|
-
/**
|
|
34
|
-
* Returns settings for a budget
|
|
35
|
-
* Budget Settings
|
|
36
|
-
*/
|
|
37
|
-
getBudgetSettingsByIdRaw(requestParameters: GetBudgetSettingsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BudgetSettingsResponse>>;
|
|
38
|
-
/**
|
|
39
|
-
* Returns settings for a budget
|
|
40
|
-
* Budget Settings
|
|
41
|
-
*/
|
|
42
|
-
getBudgetSettingsById(budgetId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BudgetSettingsResponse>;
|
|
43
|
-
/**
|
|
44
|
-
* Returns budgets list with summary information
|
|
45
|
-
* List budgets
|
|
46
|
-
*/
|
|
47
|
-
getBudgetsRaw(requestParameters: GetBudgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BudgetSummaryResponse>>;
|
|
48
|
-
/**
|
|
49
|
-
* Returns budgets list with summary information
|
|
50
|
-
* List budgets
|
|
51
|
-
*/
|
|
52
|
-
getBudgets(includeAccounts?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BudgetSummaryResponse>;
|
|
53
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* YNAB API Endpoints
|
|
3
|
-
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { Account } from './Account';
|
|
13
|
-
import type { Category } from './Category';
|
|
14
|
-
import type { CategoryGroup } from './CategoryGroup';
|
|
15
|
-
import type { MonthDetail } from './MonthDetail';
|
|
16
|
-
import type { Payee } from './Payee';
|
|
17
|
-
import type { PayeeLocation } from './PayeeLocation';
|
|
18
|
-
import type { ScheduledSubTransaction } from './ScheduledSubTransaction';
|
|
19
|
-
import type { ScheduledTransactionSummary } from './ScheduledTransactionSummary';
|
|
20
|
-
import type { SubTransaction } from './SubTransaction';
|
|
21
|
-
import type { TransactionSummary } from './TransactionSummary';
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
* @interface BudgetDetailAllOf
|
|
26
|
-
*/
|
|
27
|
-
export interface BudgetDetailAllOf {
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {Array<Account>}
|
|
31
|
-
* @memberof BudgetDetailAllOf
|
|
32
|
-
*/
|
|
33
|
-
accounts?: Array<Account>;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {Array<Payee>}
|
|
37
|
-
* @memberof BudgetDetailAllOf
|
|
38
|
-
*/
|
|
39
|
-
payees?: Array<Payee>;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {Array<PayeeLocation>}
|
|
43
|
-
* @memberof BudgetDetailAllOf
|
|
44
|
-
*/
|
|
45
|
-
payee_locations?: Array<PayeeLocation>;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {Array<CategoryGroup>}
|
|
49
|
-
* @memberof BudgetDetailAllOf
|
|
50
|
-
*/
|
|
51
|
-
category_groups?: Array<CategoryGroup>;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {Array<Category>}
|
|
55
|
-
* @memberof BudgetDetailAllOf
|
|
56
|
-
*/
|
|
57
|
-
categories?: Array<Category>;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {Array<MonthDetail>}
|
|
61
|
-
* @memberof BudgetDetailAllOf
|
|
62
|
-
*/
|
|
63
|
-
months?: Array<MonthDetail>;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {Array<TransactionSummary>}
|
|
67
|
-
* @memberof BudgetDetailAllOf
|
|
68
|
-
*/
|
|
69
|
-
transactions?: Array<TransactionSummary>;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {Array<SubTransaction>}
|
|
73
|
-
* @memberof BudgetDetailAllOf
|
|
74
|
-
*/
|
|
75
|
-
subtransactions?: Array<SubTransaction>;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {Array<ScheduledTransactionSummary>}
|
|
79
|
-
* @memberof BudgetDetailAllOf
|
|
80
|
-
*/
|
|
81
|
-
scheduled_transactions?: Array<ScheduledTransactionSummary>;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {Array<ScheduledSubTransaction>}
|
|
85
|
-
* @memberof BudgetDetailAllOf
|
|
86
|
-
*/
|
|
87
|
-
scheduled_subtransactions?: Array<ScheduledSubTransaction>;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Check if a given object implements the BudgetDetailAllOf interface.
|
|
91
|
-
*/
|
|
92
|
-
export declare function instanceOfBudgetDetailAllOf(value: object): boolean;
|
|
93
|
-
export declare function BudgetDetailAllOfFromJSON(json: any): BudgetDetailAllOf;
|
|
94
|
-
export declare function BudgetDetailAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetDetailAllOf;
|
|
95
|
-
export declare function BudgetDetailAllOfToJSON(value?: BudgetDetailAllOf | null): any;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* YNAB API Endpoints
|
|
5
|
-
* 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
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import { exists } from '../runtime';
|
|
15
|
-
import { AccountFromJSON, AccountToJSON, } from './Account';
|
|
16
|
-
import { CategoryFromJSON, CategoryToJSON, } from './Category';
|
|
17
|
-
import { CategoryGroupFromJSON, CategoryGroupToJSON, } from './CategoryGroup';
|
|
18
|
-
import { MonthDetailFromJSON, MonthDetailToJSON, } from './MonthDetail';
|
|
19
|
-
import { PayeeFromJSON, PayeeToJSON, } from './Payee';
|
|
20
|
-
import { PayeeLocationFromJSON, PayeeLocationToJSON, } from './PayeeLocation';
|
|
21
|
-
import { ScheduledSubTransactionFromJSON, ScheduledSubTransactionToJSON, } from './ScheduledSubTransaction';
|
|
22
|
-
import { ScheduledTransactionSummaryFromJSON, ScheduledTransactionSummaryToJSON, } from './ScheduledTransactionSummary';
|
|
23
|
-
import { SubTransactionFromJSON, SubTransactionToJSON, } from './SubTransaction';
|
|
24
|
-
import { TransactionSummaryFromJSON, TransactionSummaryToJSON, } from './TransactionSummary';
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the BudgetDetailAllOf interface.
|
|
27
|
-
*/
|
|
28
|
-
export function instanceOfBudgetDetailAllOf(value) {
|
|
29
|
-
var isInstance = true;
|
|
30
|
-
return isInstance;
|
|
31
|
-
}
|
|
32
|
-
export function BudgetDetailAllOfFromJSON(json) {
|
|
33
|
-
return BudgetDetailAllOfFromJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
export function BudgetDetailAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
if ((json === undefined) || (json === null)) {
|
|
37
|
-
return json;
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
'accounts': !exists(json, 'accounts') ? undefined : (json['accounts'].map(AccountFromJSON)),
|
|
41
|
-
'payees': !exists(json, 'payees') ? undefined : (json['payees'].map(PayeeFromJSON)),
|
|
42
|
-
'payee_locations': !exists(json, 'payee_locations') ? undefined : (json['payee_locations'].map(PayeeLocationFromJSON)),
|
|
43
|
-
'category_groups': !exists(json, 'category_groups') ? undefined : (json['category_groups'].map(CategoryGroupFromJSON)),
|
|
44
|
-
'categories': !exists(json, 'categories') ? undefined : (json['categories'].map(CategoryFromJSON)),
|
|
45
|
-
'months': !exists(json, 'months') ? undefined : (json['months'].map(MonthDetailFromJSON)),
|
|
46
|
-
'transactions': !exists(json, 'transactions') ? undefined : (json['transactions'].map(TransactionSummaryFromJSON)),
|
|
47
|
-
'subtransactions': !exists(json, 'subtransactions') ? undefined : (json['subtransactions'].map(SubTransactionFromJSON)),
|
|
48
|
-
'scheduled_transactions': !exists(json, 'scheduled_transactions') ? undefined : (json['scheduled_transactions'].map(ScheduledTransactionSummaryFromJSON)),
|
|
49
|
-
'scheduled_subtransactions': !exists(json, 'scheduled_subtransactions') ? undefined : (json['scheduled_subtransactions'].map(ScheduledSubTransactionFromJSON)),
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
export function BudgetDetailAllOfToJSON(value) {
|
|
53
|
-
if (value === undefined) {
|
|
54
|
-
return undefined;
|
|
55
|
-
}
|
|
56
|
-
if (value === null) {
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
'accounts': value.accounts === undefined ? undefined : (value.accounts.map(AccountToJSON)),
|
|
61
|
-
'payees': value.payees === undefined ? undefined : (value.payees.map(PayeeToJSON)),
|
|
62
|
-
'payee_locations': value.payee_locations === undefined ? undefined : (value.payee_locations.map(PayeeLocationToJSON)),
|
|
63
|
-
'category_groups': value.category_groups === undefined ? undefined : (value.category_groups.map(CategoryGroupToJSON)),
|
|
64
|
-
'categories': value.categories === undefined ? undefined : (value.categories.map(CategoryToJSON)),
|
|
65
|
-
'months': value.months === undefined ? undefined : (value.months.map(MonthDetailToJSON)),
|
|
66
|
-
'transactions': value.transactions === undefined ? undefined : (value.transactions.map(TransactionSummaryToJSON)),
|
|
67
|
-
'subtransactions': value.subtransactions === undefined ? undefined : (value.subtransactions.map(SubTransactionToJSON)),
|
|
68
|
-
'scheduled_transactions': value.scheduled_transactions === undefined ? undefined : (value.scheduled_transactions.map(ScheduledTransactionSummaryToJSON)),
|
|
69
|
-
'scheduled_subtransactions': value.scheduled_subtransactions === undefined ? undefined : (value.scheduled_subtransactions.map(ScheduledSubTransactionToJSON)),
|
|
70
|
-
};
|
|
71
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* YNAB API Endpoints
|
|
3
|
-
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
-
*
|
|
5
|
-
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
-
*/
|
|
7
|
-
import type { BudgetDetailResponseData } from './BudgetDetailResponseData';
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @export
|
|
11
|
-
* @interface BudgetDetailResponse
|
|
12
|
-
*/
|
|
13
|
-
export interface BudgetDetailResponse {
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {BudgetDetailResponseData}
|
|
17
|
-
* @memberof BudgetDetailResponse
|
|
18
|
-
*/
|
|
19
|
-
data: BudgetDetailResponseData;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the BudgetDetailResponse interface.
|
|
23
|
-
*/
|
|
24
|
-
export declare function instanceOfBudgetDetailResponse(value: object): value is BudgetDetailResponse;
|
|
25
|
-
export declare function BudgetDetailResponseFromJSON(json: any): BudgetDetailResponse;
|
|
26
|
-
export declare function BudgetDetailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetDetailResponse;
|
|
27
|
-
export declare function BudgetDetailResponseToJSON(json: any): BudgetDetailResponse;
|
|
28
|
-
export declare function BudgetDetailResponseToJSONTyped(value?: BudgetDetailResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* YNAB API Endpoints
|
|
3
|
-
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
-
*
|
|
5
|
-
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
-
*/
|
|
7
|
-
import type { BudgetDetail } from './BudgetDetail';
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @export
|
|
11
|
-
* @interface BudgetDetailResponseData
|
|
12
|
-
*/
|
|
13
|
-
export interface BudgetDetailResponseData {
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {BudgetDetail}
|
|
17
|
-
* @memberof BudgetDetailResponseData
|
|
18
|
-
*/
|
|
19
|
-
budget: BudgetDetail;
|
|
20
|
-
/**
|
|
21
|
-
* The knowledge of the server
|
|
22
|
-
* @type {number}
|
|
23
|
-
* @memberof BudgetDetailResponseData
|
|
24
|
-
*/
|
|
25
|
-
server_knowledge: number;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Check if a given object implements the BudgetDetailResponseData interface.
|
|
29
|
-
*/
|
|
30
|
-
export declare function instanceOfBudgetDetailResponseData(value: object): value is BudgetDetailResponseData;
|
|
31
|
-
export declare function BudgetDetailResponseDataFromJSON(json: any): BudgetDetailResponseData;
|
|
32
|
-
export declare function BudgetDetailResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetDetailResponseData;
|
|
33
|
-
export declare function BudgetDetailResponseDataToJSON(json: any): BudgetDetailResponseData;
|
|
34
|
-
export declare function BudgetDetailResponseDataToJSONTyped(value?: BudgetDetailResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* YNAB API Endpoints
|
|
3
|
-
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
-
*
|
|
5
|
-
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
-
*/
|
|
7
|
-
import type { CurrencyFormat } from './CurrencyFormat';
|
|
8
|
-
import type { DateFormat } from './DateFormat';
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @export
|
|
12
|
-
* @interface BudgetSettings
|
|
13
|
-
*/
|
|
14
|
-
export interface BudgetSettings {
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @type {DateFormat}
|
|
18
|
-
* @memberof BudgetSettings
|
|
19
|
-
*/
|
|
20
|
-
date_format: DateFormat | null;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {CurrencyFormat}
|
|
24
|
-
* @memberof BudgetSettings
|
|
25
|
-
*/
|
|
26
|
-
currency_format: CurrencyFormat | null;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Check if a given object implements the BudgetSettings interface.
|
|
30
|
-
*/
|
|
31
|
-
export declare function instanceOfBudgetSettings(value: object): value is BudgetSettings;
|
|
32
|
-
export declare function BudgetSettingsFromJSON(json: any): BudgetSettings;
|
|
33
|
-
export declare function BudgetSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSettings;
|
|
34
|
-
export declare function BudgetSettingsToJSON(json: any): BudgetSettings;
|
|
35
|
-
export declare function BudgetSettingsToJSONTyped(value?: BudgetSettings | null, ignoreDiscriminator?: boolean): any;
|