ynab 2.9.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 +51 -43
- 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 +16 -4
- package/dist/esm/models/Category.js +4 -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/TransactionFlagColor.d.ts +1 -0
- package/dist/esm/models/TransactionFlagColor.js +2 -1
- package/dist/esm/models/TransactionResponseData.d.ts +6 -0
- package/dist/esm/models/TransactionResponseData.js +4 -0
- 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 +16 -4
- package/dist/models/Category.js +10 -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.d.ts +1 -0
- package/dist/models/TransactionFlagColor.js +8 -7
- package/dist/models/TransactionResponse.js +5 -6
- package/dist/models/TransactionResponseData.d.ts +6 -0
- package/dist/models/TransactionResponseData.js +9 -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
|
@@ -13,7 +13,10 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.instanceOfMonthDetailAllOf = instanceOfMonthDetailAllOf;
|
|
17
|
+
exports.MonthDetailAllOfFromJSON = MonthDetailAllOfFromJSON;
|
|
18
|
+
exports.MonthDetailAllOfFromJSONTyped = MonthDetailAllOfFromJSONTyped;
|
|
19
|
+
exports.MonthDetailAllOfToJSON = MonthDetailAllOfToJSON;
|
|
17
20
|
const Category_1 = require("./Category");
|
|
18
21
|
/**
|
|
19
22
|
* Check if a given object implements the MonthDetailAllOf interface.
|
|
@@ -23,11 +26,9 @@ function instanceOfMonthDetailAllOf(value) {
|
|
|
23
26
|
isInstance = isInstance && "categories" in value;
|
|
24
27
|
return isInstance;
|
|
25
28
|
}
|
|
26
|
-
exports.instanceOfMonthDetailAllOf = instanceOfMonthDetailAllOf;
|
|
27
29
|
function MonthDetailAllOfFromJSON(json) {
|
|
28
30
|
return MonthDetailAllOfFromJSONTyped(json, false);
|
|
29
31
|
}
|
|
30
|
-
exports.MonthDetailAllOfFromJSON = MonthDetailAllOfFromJSON;
|
|
31
32
|
function MonthDetailAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
33
|
if ((json === undefined) || (json === null)) {
|
|
33
34
|
return json;
|
|
@@ -36,7 +37,6 @@ function MonthDetailAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
'categories': (json['categories'].map(Category_1.CategoryFromJSON)),
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
|
-
exports.MonthDetailAllOfFromJSONTyped = MonthDetailAllOfFromJSONTyped;
|
|
40
40
|
function MonthDetailAllOfToJSON(value) {
|
|
41
41
|
if (value === undefined) {
|
|
42
42
|
return undefined;
|
|
@@ -48,4 +48,3 @@ function MonthDetailAllOfToJSON(value) {
|
|
|
48
48
|
'categories': (value.categories.map(Category_1.CategoryToJSON)),
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
exports.MonthDetailAllOfToJSON = MonthDetailAllOfToJSON;
|
|
@@ -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.instanceOfMonthDetailResponse = instanceOfMonthDetailResponse;
|
|
12
|
+
exports.MonthDetailResponseFromJSON = MonthDetailResponseFromJSON;
|
|
13
|
+
exports.MonthDetailResponseFromJSONTyped = MonthDetailResponseFromJSONTyped;
|
|
14
|
+
exports.MonthDetailResponseToJSON = MonthDetailResponseToJSON;
|
|
15
|
+
exports.MonthDetailResponseToJSONTyped = MonthDetailResponseToJSONTyped;
|
|
12
16
|
const MonthDetailResponseData_1 = require("./MonthDetailResponseData");
|
|
13
17
|
/**
|
|
14
18
|
* Check if a given object implements the MonthDetailResponse interface.
|
|
@@ -18,11 +22,9 @@ function instanceOfMonthDetailResponse(value) {
|
|
|
18
22
|
return false;
|
|
19
23
|
return true;
|
|
20
24
|
}
|
|
21
|
-
exports.instanceOfMonthDetailResponse = instanceOfMonthDetailResponse;
|
|
22
25
|
function MonthDetailResponseFromJSON(json) {
|
|
23
26
|
return MonthDetailResponseFromJSONTyped(json, false);
|
|
24
27
|
}
|
|
25
|
-
exports.MonthDetailResponseFromJSON = MonthDetailResponseFromJSON;
|
|
26
28
|
function MonthDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
29
|
if (json == null) {
|
|
28
30
|
return json;
|
|
@@ -31,11 +33,9 @@ function MonthDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
33
|
'data': (0, MonthDetailResponseData_1.MonthDetailResponseDataFromJSON)(json['data']),
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
|
-
exports.MonthDetailResponseFromJSONTyped = MonthDetailResponseFromJSONTyped;
|
|
35
36
|
function MonthDetailResponseToJSON(json) {
|
|
36
37
|
return MonthDetailResponseToJSONTyped(json, false);
|
|
37
38
|
}
|
|
38
|
-
exports.MonthDetailResponseToJSON = MonthDetailResponseToJSON;
|
|
39
39
|
function MonthDetailResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
40
|
if (value == null) {
|
|
41
41
|
return value;
|
|
@@ -44,4 +44,3 @@ function MonthDetailResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
44
|
'data': (0, MonthDetailResponseData_1.MonthDetailResponseDataToJSON)(value['data']),
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
exports.MonthDetailResponseToJSONTyped = MonthDetailResponseToJSONTyped;
|
|
@@ -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.instanceOfMonthDetailResponseData = instanceOfMonthDetailResponseData;
|
|
12
|
+
exports.MonthDetailResponseDataFromJSON = MonthDetailResponseDataFromJSON;
|
|
13
|
+
exports.MonthDetailResponseDataFromJSONTyped = MonthDetailResponseDataFromJSONTyped;
|
|
14
|
+
exports.MonthDetailResponseDataToJSON = MonthDetailResponseDataToJSON;
|
|
15
|
+
exports.MonthDetailResponseDataToJSONTyped = MonthDetailResponseDataToJSONTyped;
|
|
12
16
|
const MonthDetail_1 = require("./MonthDetail");
|
|
13
17
|
/**
|
|
14
18
|
* Check if a given object implements the MonthDetailResponseData interface.
|
|
@@ -18,11 +22,9 @@ function instanceOfMonthDetailResponseData(value) {
|
|
|
18
22
|
return false;
|
|
19
23
|
return true;
|
|
20
24
|
}
|
|
21
|
-
exports.instanceOfMonthDetailResponseData = instanceOfMonthDetailResponseData;
|
|
22
25
|
function MonthDetailResponseDataFromJSON(json) {
|
|
23
26
|
return MonthDetailResponseDataFromJSONTyped(json, false);
|
|
24
27
|
}
|
|
25
|
-
exports.MonthDetailResponseDataFromJSON = MonthDetailResponseDataFromJSON;
|
|
26
28
|
function MonthDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
29
|
if (json == null) {
|
|
28
30
|
return json;
|
|
@@ -31,11 +33,9 @@ function MonthDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
33
|
'month': (0, MonthDetail_1.MonthDetailFromJSON)(json['month']),
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
|
-
exports.MonthDetailResponseDataFromJSONTyped = MonthDetailResponseDataFromJSONTyped;
|
|
35
36
|
function MonthDetailResponseDataToJSON(json) {
|
|
36
37
|
return MonthDetailResponseDataToJSONTyped(json, false);
|
|
37
38
|
}
|
|
38
|
-
exports.MonthDetailResponseDataToJSON = MonthDetailResponseDataToJSON;
|
|
39
39
|
function MonthDetailResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
40
|
if (value == null) {
|
|
41
41
|
return value;
|
|
@@ -44,4 +44,3 @@ function MonthDetailResponseDataToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
44
44
|
'month': (0, MonthDetail_1.MonthDetailToJSON)(value['month']),
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
exports.MonthDetailResponseDataToJSONTyped = MonthDetailResponseDataToJSONTyped;
|
|
@@ -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.instanceOfMonthSummariesResponse = instanceOfMonthSummariesResponse;
|
|
12
|
+
exports.MonthSummariesResponseFromJSON = MonthSummariesResponseFromJSON;
|
|
13
|
+
exports.MonthSummariesResponseFromJSONTyped = MonthSummariesResponseFromJSONTyped;
|
|
14
|
+
exports.MonthSummariesResponseToJSON = MonthSummariesResponseToJSON;
|
|
15
|
+
exports.MonthSummariesResponseToJSONTyped = MonthSummariesResponseToJSONTyped;
|
|
12
16
|
const MonthSummariesResponseData_1 = require("./MonthSummariesResponseData");
|
|
13
17
|
/**
|
|
14
18
|
* Check if a given object implements the MonthSummariesResponse interface.
|
|
@@ -18,11 +22,9 @@ function instanceOfMonthSummariesResponse(value) {
|
|
|
18
22
|
return false;
|
|
19
23
|
return true;
|
|
20
24
|
}
|
|
21
|
-
exports.instanceOfMonthSummariesResponse = instanceOfMonthSummariesResponse;
|
|
22
25
|
function MonthSummariesResponseFromJSON(json) {
|
|
23
26
|
return MonthSummariesResponseFromJSONTyped(json, false);
|
|
24
27
|
}
|
|
25
|
-
exports.MonthSummariesResponseFromJSON = MonthSummariesResponseFromJSON;
|
|
26
28
|
function MonthSummariesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
29
|
if (json == null) {
|
|
28
30
|
return json;
|
|
@@ -31,11 +33,9 @@ function MonthSummariesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
33
|
'data': (0, MonthSummariesResponseData_1.MonthSummariesResponseDataFromJSON)(json['data']),
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
|
-
exports.MonthSummariesResponseFromJSONTyped = MonthSummariesResponseFromJSONTyped;
|
|
35
36
|
function MonthSummariesResponseToJSON(json) {
|
|
36
37
|
return MonthSummariesResponseToJSONTyped(json, false);
|
|
37
38
|
}
|
|
38
|
-
exports.MonthSummariesResponseToJSON = MonthSummariesResponseToJSON;
|
|
39
39
|
function MonthSummariesResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
40
|
if (value == null) {
|
|
41
41
|
return value;
|
|
@@ -44,4 +44,3 @@ function MonthSummariesResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
44
|
'data': (0, MonthSummariesResponseData_1.MonthSummariesResponseDataToJSON)(value['data']),
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
exports.MonthSummariesResponseToJSONTyped = MonthSummariesResponseToJSONTyped;
|
|
@@ -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.instanceOfMonthSummariesResponseData = instanceOfMonthSummariesResponseData;
|
|
12
|
+
exports.MonthSummariesResponseDataFromJSON = MonthSummariesResponseDataFromJSON;
|
|
13
|
+
exports.MonthSummariesResponseDataFromJSONTyped = MonthSummariesResponseDataFromJSONTyped;
|
|
14
|
+
exports.MonthSummariesResponseDataToJSON = MonthSummariesResponseDataToJSON;
|
|
15
|
+
exports.MonthSummariesResponseDataToJSONTyped = MonthSummariesResponseDataToJSONTyped;
|
|
12
16
|
const MonthSummary_1 = require("./MonthSummary");
|
|
13
17
|
/**
|
|
14
18
|
* Check if a given object implements the MonthSummariesResponseData interface.
|
|
@@ -20,11 +24,9 @@ function instanceOfMonthSummariesResponseData(value) {
|
|
|
20
24
|
return false;
|
|
21
25
|
return true;
|
|
22
26
|
}
|
|
23
|
-
exports.instanceOfMonthSummariesResponseData = instanceOfMonthSummariesResponseData;
|
|
24
27
|
function MonthSummariesResponseDataFromJSON(json) {
|
|
25
28
|
return MonthSummariesResponseDataFromJSONTyped(json, false);
|
|
26
29
|
}
|
|
27
|
-
exports.MonthSummariesResponseDataFromJSON = MonthSummariesResponseDataFromJSON;
|
|
28
30
|
function MonthSummariesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
31
|
if (json == null) {
|
|
30
32
|
return json;
|
|
@@ -34,11 +36,9 @@ function MonthSummariesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
36
|
'server_knowledge': json['server_knowledge'],
|
|
35
37
|
};
|
|
36
38
|
}
|
|
37
|
-
exports.MonthSummariesResponseDataFromJSONTyped = MonthSummariesResponseDataFromJSONTyped;
|
|
38
39
|
function MonthSummariesResponseDataToJSON(json) {
|
|
39
40
|
return MonthSummariesResponseDataToJSONTyped(json, false);
|
|
40
41
|
}
|
|
41
|
-
exports.MonthSummariesResponseDataToJSON = MonthSummariesResponseDataToJSON;
|
|
42
42
|
function MonthSummariesResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
43
|
if (value == null) {
|
|
44
44
|
return value;
|
|
@@ -48,4 +48,3 @@ function MonthSummariesResponseDataToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
48
48
|
'server_knowledge': value['server_knowledge'],
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
exports.MonthSummariesResponseDataToJSONTyped = MonthSummariesResponseDataToJSONTyped;
|
|
@@ -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.instanceOfMonthSummary = instanceOfMonthSummary;
|
|
12
|
+
exports.MonthSummaryFromJSON = MonthSummaryFromJSON;
|
|
13
|
+
exports.MonthSummaryFromJSONTyped = MonthSummaryFromJSONTyped;
|
|
14
|
+
exports.MonthSummaryToJSON = MonthSummaryToJSON;
|
|
15
|
+
exports.MonthSummaryToJSONTyped = MonthSummaryToJSONTyped;
|
|
12
16
|
/**
|
|
13
17
|
* Check if a given object implements the MonthSummary interface.
|
|
14
18
|
*/
|
|
@@ -27,11 +31,9 @@ function instanceOfMonthSummary(value) {
|
|
|
27
31
|
return false;
|
|
28
32
|
return true;
|
|
29
33
|
}
|
|
30
|
-
exports.instanceOfMonthSummary = instanceOfMonthSummary;
|
|
31
34
|
function MonthSummaryFromJSON(json) {
|
|
32
35
|
return MonthSummaryFromJSONTyped(json, false);
|
|
33
36
|
}
|
|
34
|
-
exports.MonthSummaryFromJSON = MonthSummaryFromJSON;
|
|
35
37
|
function MonthSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
38
|
if (json == null) {
|
|
37
39
|
return json;
|
|
@@ -47,11 +49,9 @@ function MonthSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
49
|
'deleted': json['deleted'],
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
|
-
exports.MonthSummaryFromJSONTyped = MonthSummaryFromJSONTyped;
|
|
51
52
|
function MonthSummaryToJSON(json) {
|
|
52
53
|
return MonthSummaryToJSONTyped(json, false);
|
|
53
54
|
}
|
|
54
|
-
exports.MonthSummaryToJSON = MonthSummaryToJSON;
|
|
55
55
|
function MonthSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
56
|
if (value == null) {
|
|
57
57
|
return value;
|
|
@@ -67,4 +67,3 @@ function MonthSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
67
67
|
'deleted': value['deleted'],
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
exports.MonthSummaryToJSONTyped = MonthSummaryToJSONTyped;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @interface NewCategory
|
|
11
|
+
*/
|
|
12
|
+
export interface NewCategory {
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof NewCategory
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof NewCategory
|
|
23
|
+
*/
|
|
24
|
+
note?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof NewCategory
|
|
29
|
+
*/
|
|
30
|
+
category_group_id?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The goal target amount in milliunits format. If value is specified and goal has not already been configured for category, a monthly 'Needed for Spending' goal will be created for the category with this target amount.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof NewCategory
|
|
35
|
+
*/
|
|
36
|
+
goal_target?: number;
|
|
37
|
+
/**
|
|
38
|
+
* The goal target date in ISO format (e.g. 2016-12-01).
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof NewCategory
|
|
41
|
+
*/
|
|
42
|
+
goal_target_date?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the NewCategory interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfNewCategory(value: object): value is NewCategory;
|
|
48
|
+
export declare function NewCategoryFromJSON(json: any): NewCategory;
|
|
49
|
+
export declare function NewCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): NewCategory;
|
|
50
|
+
export declare function NewCategoryToJSON(json: any): NewCategory;
|
|
51
|
+
export declare function NewCategoryToJSONTyped(value?: NewCategory | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* YNAB API Endpoints
|
|
6
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
7
|
+
*
|
|
8
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.instanceOfNewCategory = instanceOfNewCategory;
|
|
12
|
+
exports.NewCategoryFromJSON = NewCategoryFromJSON;
|
|
13
|
+
exports.NewCategoryFromJSONTyped = NewCategoryFromJSONTyped;
|
|
14
|
+
exports.NewCategoryToJSON = NewCategoryToJSON;
|
|
15
|
+
exports.NewCategoryToJSONTyped = NewCategoryToJSONTyped;
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the NewCategory interface.
|
|
18
|
+
*/
|
|
19
|
+
function instanceOfNewCategory(value) {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
function NewCategoryFromJSON(json) {
|
|
23
|
+
return NewCategoryFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
function NewCategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
31
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
32
|
+
'category_group_id': json['category_group_id'] == null ? undefined : json['category_group_id'],
|
|
33
|
+
'goal_target': json['goal_target'] == null ? undefined : json['goal_target'],
|
|
34
|
+
'goal_target_date': json['goal_target_date'] == null ? undefined : json['goal_target_date'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function NewCategoryToJSON(json) {
|
|
38
|
+
return NewCategoryToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function NewCategoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'name': value['name'],
|
|
46
|
+
'note': value['note'],
|
|
47
|
+
'category_group_id': value['category_group_id'],
|
|
48
|
+
'goal_target': value['goal_target'],
|
|
49
|
+
'goal_target_date': value['goal_target_date'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -36,25 +36,25 @@ export interface NewTransaction {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof NewTransaction
|
|
38
38
|
*/
|
|
39
|
-
payee_id?: string
|
|
39
|
+
payee_id?: string;
|
|
40
40
|
/**
|
|
41
41
|
* The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if `import_id` is also specified) or (2) a payee with the same name or (3) creation of a new payee.
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof NewTransaction
|
|
44
44
|
*/
|
|
45
|
-
payee_name?: string
|
|
45
|
+
payee_name?: string;
|
|
46
46
|
/**
|
|
47
47
|
* The category for the transaction. To configure a split transaction, you can specify null for `category_id` and provide a `subtransactions` array as part of the transaction object. If an existing transaction is a split, the `category_id` cannot be changed. Credit Card Payment categories are not permitted and will be ignored if supplied.
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof NewTransaction
|
|
50
50
|
*/
|
|
51
|
-
category_id?: string
|
|
51
|
+
category_id?: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof NewTransaction
|
|
56
56
|
*/
|
|
57
|
-
memo?: string
|
|
57
|
+
memo?: string;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {TransactionClearedStatus}
|
|
@@ -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.instanceOfNewTransaction = instanceOfNewTransaction;
|
|
12
|
+
exports.NewTransactionFromJSON = NewTransactionFromJSON;
|
|
13
|
+
exports.NewTransactionFromJSONTyped = NewTransactionFromJSONTyped;
|
|
14
|
+
exports.NewTransactionToJSON = NewTransactionToJSON;
|
|
15
|
+
exports.NewTransactionToJSONTyped = NewTransactionToJSONTyped;
|
|
12
16
|
const TransactionFlagColor_1 = require("./TransactionFlagColor");
|
|
13
17
|
const TransactionClearedStatus_1 = require("./TransactionClearedStatus");
|
|
14
18
|
const SaveSubTransaction_1 = require("./SaveSubTransaction");
|
|
@@ -18,11 +22,9 @@ const SaveSubTransaction_1 = require("./SaveSubTransaction");
|
|
|
18
22
|
function instanceOfNewTransaction(value) {
|
|
19
23
|
return true;
|
|
20
24
|
}
|
|
21
|
-
exports.instanceOfNewTransaction = instanceOfNewTransaction;
|
|
22
25
|
function NewTransactionFromJSON(json) {
|
|
23
26
|
return NewTransactionFromJSONTyped(json, false);
|
|
24
27
|
}
|
|
25
|
-
exports.NewTransactionFromJSON = NewTransactionFromJSON;
|
|
26
28
|
function NewTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
29
|
if (json == null) {
|
|
28
30
|
return json;
|
|
@@ -42,11 +44,9 @@ function NewTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
44
|
'import_id': json['import_id'] == null ? undefined : json['import_id'],
|
|
43
45
|
};
|
|
44
46
|
}
|
|
45
|
-
exports.NewTransactionFromJSONTyped = NewTransactionFromJSONTyped;
|
|
46
47
|
function NewTransactionToJSON(json) {
|
|
47
48
|
return NewTransactionToJSONTyped(json, false);
|
|
48
49
|
}
|
|
49
|
-
exports.NewTransactionToJSON = NewTransactionToJSON;
|
|
50
50
|
function NewTransactionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
51
|
if (value == null) {
|
|
52
52
|
return value;
|
|
@@ -66,4 +66,3 @@ function NewTransactionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
66
|
'import_id': value['import_id'],
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
exports.NewTransactionToJSONTyped = NewTransactionToJSONTyped;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { SaveCategoryGroup } from './SaveCategoryGroup';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface PatchCategoryGroupWrapper
|
|
12
|
+
*/
|
|
13
|
+
export interface PatchCategoryGroupWrapper {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {SaveCategoryGroup}
|
|
17
|
+
* @memberof PatchCategoryGroupWrapper
|
|
18
|
+
*/
|
|
19
|
+
category_group: SaveCategoryGroup;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PatchCategoryGroupWrapper interface.
|
|
23
|
+
*/
|
|
24
|
+
export declare function instanceOfPatchCategoryGroupWrapper(value: object): value is PatchCategoryGroupWrapper;
|
|
25
|
+
export declare function PatchCategoryGroupWrapperFromJSON(json: any): PatchCategoryGroupWrapper;
|
|
26
|
+
export declare function PatchCategoryGroupWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchCategoryGroupWrapper;
|
|
27
|
+
export declare function PatchCategoryGroupWrapperToJSON(json: any): PatchCategoryGroupWrapper;
|
|
28
|
+
export declare function PatchCategoryGroupWrapperToJSONTyped(value?: PatchCategoryGroupWrapper | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* YNAB API Endpoints
|
|
6
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
7
|
+
*
|
|
8
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.instanceOfPatchCategoryGroupWrapper = instanceOfPatchCategoryGroupWrapper;
|
|
12
|
+
exports.PatchCategoryGroupWrapperFromJSON = PatchCategoryGroupWrapperFromJSON;
|
|
13
|
+
exports.PatchCategoryGroupWrapperFromJSONTyped = PatchCategoryGroupWrapperFromJSONTyped;
|
|
14
|
+
exports.PatchCategoryGroupWrapperToJSON = PatchCategoryGroupWrapperToJSON;
|
|
15
|
+
exports.PatchCategoryGroupWrapperToJSONTyped = PatchCategoryGroupWrapperToJSONTyped;
|
|
16
|
+
const SaveCategoryGroup_1 = require("./SaveCategoryGroup");
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the PatchCategoryGroupWrapper interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfPatchCategoryGroupWrapper(value) {
|
|
21
|
+
if (!('category_group' in value) || value['category_group'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
function PatchCategoryGroupWrapperFromJSON(json) {
|
|
26
|
+
return PatchCategoryGroupWrapperFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
function PatchCategoryGroupWrapperFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'category_group': (0, SaveCategoryGroup_1.SaveCategoryGroupFromJSON)(json['category_group']),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function PatchCategoryGroupWrapperToJSON(json) {
|
|
37
|
+
return PatchCategoryGroupWrapperToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function PatchCategoryGroupWrapperToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'category_group': (0, SaveCategoryGroup_1.SaveCategoryGroupToJSON)(value['category_group']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
7
|
+
import type { ExistingCategory } from './ExistingCategory';
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
10
|
* @export
|
|
@@ -13,10 +13,10 @@ import type { SaveCategory } from './SaveCategory';
|
|
|
13
13
|
export interface PatchCategoryWrapper {
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
|
-
* @type {
|
|
16
|
+
* @type {ExistingCategory}
|
|
17
17
|
* @memberof PatchCategoryWrapper
|
|
18
18
|
*/
|
|
19
|
-
category:
|
|
19
|
+
category: ExistingCategory;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* Check if a given object implements the PatchCategoryWrapper interface.
|
|
@@ -8,8 +8,12 @@
|
|
|
8
8
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
12
|
-
|
|
11
|
+
exports.instanceOfPatchCategoryWrapper = instanceOfPatchCategoryWrapper;
|
|
12
|
+
exports.PatchCategoryWrapperFromJSON = PatchCategoryWrapperFromJSON;
|
|
13
|
+
exports.PatchCategoryWrapperFromJSONTyped = PatchCategoryWrapperFromJSONTyped;
|
|
14
|
+
exports.PatchCategoryWrapperToJSON = PatchCategoryWrapperToJSON;
|
|
15
|
+
exports.PatchCategoryWrapperToJSONTyped = PatchCategoryWrapperToJSONTyped;
|
|
16
|
+
const ExistingCategory_1 = require("./ExistingCategory");
|
|
13
17
|
/**
|
|
14
18
|
* Check if a given object implements the PatchCategoryWrapper interface.
|
|
15
19
|
*/
|
|
@@ -18,30 +22,25 @@ function instanceOfPatchCategoryWrapper(value) {
|
|
|
18
22
|
return false;
|
|
19
23
|
return true;
|
|
20
24
|
}
|
|
21
|
-
exports.instanceOfPatchCategoryWrapper = instanceOfPatchCategoryWrapper;
|
|
22
25
|
function PatchCategoryWrapperFromJSON(json) {
|
|
23
26
|
return PatchCategoryWrapperFromJSONTyped(json, false);
|
|
24
27
|
}
|
|
25
|
-
exports.PatchCategoryWrapperFromJSON = PatchCategoryWrapperFromJSON;
|
|
26
28
|
function PatchCategoryWrapperFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
29
|
if (json == null) {
|
|
28
30
|
return json;
|
|
29
31
|
}
|
|
30
32
|
return {
|
|
31
|
-
'category': (0,
|
|
33
|
+
'category': (0, ExistingCategory_1.ExistingCategoryFromJSON)(json['category']),
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
|
-
exports.PatchCategoryWrapperFromJSONTyped = PatchCategoryWrapperFromJSONTyped;
|
|
35
36
|
function PatchCategoryWrapperToJSON(json) {
|
|
36
37
|
return PatchCategoryWrapperToJSONTyped(json, false);
|
|
37
38
|
}
|
|
38
|
-
exports.PatchCategoryWrapperToJSON = PatchCategoryWrapperToJSON;
|
|
39
39
|
function PatchCategoryWrapperToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
40
|
if (value == null) {
|
|
41
41
|
return value;
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
|
-
'category': (0,
|
|
44
|
+
'category': (0, ExistingCategory_1.ExistingCategoryToJSON)(value['category']),
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
exports.PatchCategoryWrapperToJSONTyped = PatchCategoryWrapperToJSONTyped;
|
|
@@ -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.instanceOfPatchMonthCategoryWrapper = instanceOfPatchMonthCategoryWrapper;
|
|
12
|
+
exports.PatchMonthCategoryWrapperFromJSON = PatchMonthCategoryWrapperFromJSON;
|
|
13
|
+
exports.PatchMonthCategoryWrapperFromJSONTyped = PatchMonthCategoryWrapperFromJSONTyped;
|
|
14
|
+
exports.PatchMonthCategoryWrapperToJSON = PatchMonthCategoryWrapperToJSON;
|
|
15
|
+
exports.PatchMonthCategoryWrapperToJSONTyped = PatchMonthCategoryWrapperToJSONTyped;
|
|
12
16
|
const SaveMonthCategory_1 = require("./SaveMonthCategory");
|
|
13
17
|
/**
|
|
14
18
|
* Check if a given object implements the PatchMonthCategoryWrapper interface.
|
|
@@ -18,11 +22,9 @@ function instanceOfPatchMonthCategoryWrapper(value) {
|
|
|
18
22
|
return false;
|
|
19
23
|
return true;
|
|
20
24
|
}
|
|
21
|
-
exports.instanceOfPatchMonthCategoryWrapper = instanceOfPatchMonthCategoryWrapper;
|
|
22
25
|
function PatchMonthCategoryWrapperFromJSON(json) {
|
|
23
26
|
return PatchMonthCategoryWrapperFromJSONTyped(json, false);
|
|
24
27
|
}
|
|
25
|
-
exports.PatchMonthCategoryWrapperFromJSON = PatchMonthCategoryWrapperFromJSON;
|
|
26
28
|
function PatchMonthCategoryWrapperFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
29
|
if (json == null) {
|
|
28
30
|
return json;
|
|
@@ -31,11 +33,9 @@ function PatchMonthCategoryWrapperFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
33
|
'category': (0, SaveMonthCategory_1.SaveMonthCategoryFromJSON)(json['category']),
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
|
-
exports.PatchMonthCategoryWrapperFromJSONTyped = PatchMonthCategoryWrapperFromJSONTyped;
|
|
35
36
|
function PatchMonthCategoryWrapperToJSON(json) {
|
|
36
37
|
return PatchMonthCategoryWrapperToJSONTyped(json, false);
|
|
37
38
|
}
|
|
38
|
-
exports.PatchMonthCategoryWrapperToJSON = PatchMonthCategoryWrapperToJSON;
|
|
39
39
|
function PatchMonthCategoryWrapperToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
40
|
if (value == null) {
|
|
41
41
|
return value;
|
|
@@ -44,4 +44,3 @@ function PatchMonthCategoryWrapperToJSONTyped(value, ignoreDiscriminator = false
|
|
|
44
44
|
'category': (0, SaveMonthCategory_1.SaveMonthCategoryToJSON)(value['category']),
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
exports.PatchMonthCategoryWrapperToJSONTyped = PatchMonthCategoryWrapperToJSONTyped;
|
|
@@ -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.instanceOfPatchPayeeWrapper = instanceOfPatchPayeeWrapper;
|
|
12
|
+
exports.PatchPayeeWrapperFromJSON = PatchPayeeWrapperFromJSON;
|
|
13
|
+
exports.PatchPayeeWrapperFromJSONTyped = PatchPayeeWrapperFromJSONTyped;
|
|
14
|
+
exports.PatchPayeeWrapperToJSON = PatchPayeeWrapperToJSON;
|
|
15
|
+
exports.PatchPayeeWrapperToJSONTyped = PatchPayeeWrapperToJSONTyped;
|
|
12
16
|
const SavePayee_1 = require("./SavePayee");
|
|
13
17
|
/**
|
|
14
18
|
* Check if a given object implements the PatchPayeeWrapper interface.
|
|
@@ -18,11 +22,9 @@ function instanceOfPatchPayeeWrapper(value) {
|
|
|
18
22
|
return false;
|
|
19
23
|
return true;
|
|
20
24
|
}
|
|
21
|
-
exports.instanceOfPatchPayeeWrapper = instanceOfPatchPayeeWrapper;
|
|
22
25
|
function PatchPayeeWrapperFromJSON(json) {
|
|
23
26
|
return PatchPayeeWrapperFromJSONTyped(json, false);
|
|
24
27
|
}
|
|
25
|
-
exports.PatchPayeeWrapperFromJSON = PatchPayeeWrapperFromJSON;
|
|
26
28
|
function PatchPayeeWrapperFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
29
|
if (json == null) {
|
|
28
30
|
return json;
|
|
@@ -31,11 +33,9 @@ function PatchPayeeWrapperFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
33
|
'payee': (0, SavePayee_1.SavePayeeFromJSON)(json['payee']),
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
|
-
exports.PatchPayeeWrapperFromJSONTyped = PatchPayeeWrapperFromJSONTyped;
|
|
35
36
|
function PatchPayeeWrapperToJSON(json) {
|
|
36
37
|
return PatchPayeeWrapperToJSONTyped(json, false);
|
|
37
38
|
}
|
|
38
|
-
exports.PatchPayeeWrapperToJSON = PatchPayeeWrapperToJSON;
|
|
39
39
|
function PatchPayeeWrapperToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
40
|
if (value == null) {
|
|
41
41
|
return value;
|
|
@@ -44,4 +44,3 @@ function PatchPayeeWrapperToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
44
|
'payee': (0, SavePayee_1.SavePayeeToJSON)(value['payee']),
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
exports.PatchPayeeWrapperToJSONTyped = PatchPayeeWrapperToJSONTyped;
|