ynab 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/apis/CategoriesApi.d.ts +16 -1
- package/dist/apis/CategoriesApi.js +42 -0
- package/dist/apis/CustomTransactionsApi.d.ts +1 -1
- package/dist/apis/TransactionsApi.d.ts +4 -4
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +5 -2
- package/dist/browser/ynab.js +1 -1
- package/dist/esm/apis/CategoriesApi.d.ts +16 -1
- package/dist/esm/apis/CategoriesApi.js +65 -1
- package/dist/esm/apis/CustomTransactionsApi.d.ts +1 -1
- package/dist/esm/apis/index.d.ts +0 -1
- package/dist/esm/apis/index.js +0 -1
- package/dist/esm/models/Category.d.ts +0 -1
- package/dist/esm/models/Category.js +0 -1
- package/dist/esm/models/CategoryGoalType.d.ts +25 -0
- package/dist/esm/models/CategoryGoalType.js +29 -0
- package/dist/esm/models/HybridTransaction.d.ts +9 -30
- package/dist/esm/models/HybridTransaction.js +7 -26
- package/dist/esm/models/PatchCategoryWrapper.d.ts +32 -0
- package/dist/esm/models/PatchCategoryWrapper.js +44 -0
- package/dist/esm/models/SaveCategory.d.ts +43 -0
- package/dist/esm/models/SaveCategory.js +47 -0
- package/dist/esm/models/SaveTransaction.d.ts +8 -28
- package/dist/esm/models/SaveTransaction.js +6 -24
- package/dist/esm/models/SaveTransactionWithId.d.ts +8 -28
- package/dist/esm/models/SaveTransactionWithId.js +6 -24
- package/dist/esm/models/SaveTransactionWithOptionalFields.d.ts +8 -28
- package/dist/esm/models/SaveTransactionWithOptionalFields.js +6 -24
- package/dist/esm/models/SaveTransactionWithOptionalFieldsFlagColor.d.ts +25 -0
- package/dist/esm/models/SaveTransactionWithOptionalFieldsFlagColor.js +29 -0
- package/dist/esm/models/ScheduledTransactionDetail.d.ts +4 -16
- package/dist/esm/models/ScheduledTransactionDetail.js +3 -14
- package/dist/esm/models/ScheduledTransactionSummary.d.ts +4 -16
- package/dist/esm/models/ScheduledTransactionSummary.js +3 -14
- package/dist/esm/models/ScheduledTransactionSummaryFlagColor.d.ts +25 -0
- package/dist/esm/models/ScheduledTransactionSummaryFlagColor.js +29 -0
- package/dist/esm/models/TransactionClearedStatus.d.ts +24 -0
- package/dist/esm/models/TransactionClearedStatus.js +31 -0
- package/dist/esm/models/TransactionDetail.d.ts +9 -30
- package/dist/esm/models/TransactionDetail.js +7 -26
- package/dist/esm/models/TransactionFlagColor.d.ts +27 -0
- package/dist/esm/models/TransactionFlagColor.js +34 -0
- package/dist/esm/models/TransactionSummary.d.ts +9 -30
- package/dist/esm/models/TransactionSummary.js +7 -26
- package/dist/esm/models/TransactionSummaryDebtTransactionType.d.ts +25 -0
- package/dist/esm/models/TransactionSummaryDebtTransactionType.js +29 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/index.js +5 -1
- package/dist/models/AccountType.d.ts +1 -1
- package/dist/models/Category.d.ts +1 -2
- package/dist/models/Category.js +0 -1
- package/dist/models/CategoryGoalType.d.ts +25 -0
- package/dist/models/CategoryGoalType.js +36 -0
- package/dist/models/HybridTransaction.d.ts +11 -32
- package/dist/models/HybridTransaction.js +8 -27
- package/dist/models/HybridTransactionAllOf.d.ts +1 -1
- package/dist/models/PatchCategoryWrapper.d.ts +32 -0
- package/dist/models/PatchCategoryWrapper.js +51 -0
- package/dist/models/SaveCategory.d.ts +43 -0
- package/dist/models/SaveCategory.js +54 -0
- package/dist/models/SaveTransaction.d.ts +8 -28
- package/dist/models/SaveTransaction.js +7 -25
- package/dist/models/SaveTransactionWithId.d.ts +8 -28
- package/dist/models/SaveTransactionWithId.js +7 -25
- package/dist/models/SaveTransactionWithOptionalFields.d.ts +8 -28
- package/dist/models/SaveTransactionWithOptionalFields.js +7 -25
- package/dist/models/SaveTransactionWithOptionalFieldsFlagColor.d.ts +25 -0
- package/dist/models/SaveTransactionWithOptionalFieldsFlagColor.js +36 -0
- package/dist/models/ScheduledTransactionDetail.d.ts +5 -17
- package/dist/models/ScheduledTransactionDetail.js +4 -15
- package/dist/models/ScheduledTransactionSummary.d.ts +5 -17
- package/dist/models/ScheduledTransactionSummary.js +4 -15
- package/dist/models/ScheduledTransactionSummaryFlagColor.d.ts +25 -0
- package/dist/models/ScheduledTransactionSummaryFlagColor.js +36 -0
- package/dist/models/TransactionClearedStatus.d.ts +24 -0
- package/dist/models/TransactionClearedStatus.js +37 -0
- package/dist/models/TransactionDetail.d.ts +10 -31
- package/dist/models/TransactionDetail.js +8 -27
- package/dist/models/TransactionFlagColor.d.ts +27 -0
- package/dist/models/TransactionFlagColor.js +40 -0
- package/dist/models/TransactionSummary.d.ts +10 -31
- package/dist/models/TransactionSummary.js +8 -27
- package/dist/models/TransactionSummaryDebtTransactionType.d.ts +25 -0
- package/dist/models/TransactionSummaryDebtTransactionType.js +36 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +9 -1
- package/dist/runtime.d.ts +9 -9
- package/package.json +6 -7
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ScheduledSubTransaction } from './ScheduledSubTransaction';
|
|
13
|
+
import type { TransactionFlagColor } from './TransactionFlagColor';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -53,11 +54,11 @@ export interface ScheduledTransactionDetail {
|
|
|
53
54
|
*/
|
|
54
55
|
memo?: string | null;
|
|
55
56
|
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {
|
|
57
|
+
*
|
|
58
|
+
* @type {TransactionFlagColor}
|
|
58
59
|
* @memberof ScheduledTransactionDetail
|
|
59
60
|
*/
|
|
60
|
-
flag_color?:
|
|
61
|
+
flag_color?: TransactionFlagColor | null;
|
|
61
62
|
/**
|
|
62
63
|
*
|
|
63
64
|
* @type {string}
|
|
@@ -131,20 +132,7 @@ export declare const ScheduledTransactionDetailFrequencyEnum: {
|
|
|
131
132
|
readonly Yearly: "yearly";
|
|
132
133
|
readonly EveryOtherYear: "everyOtherYear";
|
|
133
134
|
};
|
|
134
|
-
export
|
|
135
|
-
/**
|
|
136
|
-
* @export
|
|
137
|
-
*/
|
|
138
|
-
export declare const ScheduledTransactionDetailFlagColorEnum: {
|
|
139
|
-
readonly Red: "red";
|
|
140
|
-
readonly Orange: "orange";
|
|
141
|
-
readonly Yellow: "yellow";
|
|
142
|
-
readonly Green: "green";
|
|
143
|
-
readonly Blue: "blue";
|
|
144
|
-
readonly Purple: "purple";
|
|
145
|
-
readonly Null: "null";
|
|
146
|
-
};
|
|
147
|
-
export declare type ScheduledTransactionDetailFlagColorEnum = typeof ScheduledTransactionDetailFlagColorEnum[keyof typeof ScheduledTransactionDetailFlagColorEnum];
|
|
135
|
+
export type ScheduledTransactionDetailFrequencyEnum = typeof ScheduledTransactionDetailFrequencyEnum[keyof typeof ScheduledTransactionDetailFrequencyEnum];
|
|
148
136
|
/**
|
|
149
137
|
* Check if a given object implements the ScheduledTransactionDetail interface.
|
|
150
138
|
*/
|
|
@@ -13,9 +13,10 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ScheduledTransactionDetailToJSON = exports.ScheduledTransactionDetailFromJSONTyped = exports.ScheduledTransactionDetailFromJSON = exports.instanceOfScheduledTransactionDetail = exports.
|
|
16
|
+
exports.ScheduledTransactionDetailToJSON = exports.ScheduledTransactionDetailFromJSONTyped = exports.ScheduledTransactionDetailFromJSON = exports.instanceOfScheduledTransactionDetail = exports.ScheduledTransactionDetailFrequencyEnum = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
18
|
const ScheduledSubTransaction_1 = require("./ScheduledSubTransaction");
|
|
19
|
+
const TransactionFlagColor_1 = require("./TransactionFlagColor");
|
|
19
20
|
/**
|
|
20
21
|
* @export
|
|
21
22
|
*/
|
|
@@ -34,18 +35,6 @@ exports.ScheduledTransactionDetailFrequencyEnum = {
|
|
|
34
35
|
Yearly: 'yearly',
|
|
35
36
|
EveryOtherYear: 'everyOtherYear'
|
|
36
37
|
};
|
|
37
|
-
/**
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
|
-
exports.ScheduledTransactionDetailFlagColorEnum = {
|
|
41
|
-
Red: 'red',
|
|
42
|
-
Orange: 'orange',
|
|
43
|
-
Yellow: 'yellow',
|
|
44
|
-
Green: 'green',
|
|
45
|
-
Blue: 'blue',
|
|
46
|
-
Purple: 'purple',
|
|
47
|
-
Null: 'null'
|
|
48
|
-
};
|
|
49
38
|
/**
|
|
50
39
|
* Check if a given object implements the ScheduledTransactionDetail interface.
|
|
51
40
|
*/
|
|
@@ -78,7 +67,7 @@ function ScheduledTransactionDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
78
67
|
'frequency': json['frequency'],
|
|
79
68
|
'amount': json['amount'],
|
|
80
69
|
'memo': !(0, runtime_1.exists)(json, 'memo') ? undefined : json['memo'],
|
|
81
|
-
'flag_color': !(0, runtime_1.exists)(json, 'flag_color') ? undefined : json['flag_color'],
|
|
70
|
+
'flag_color': !(0, runtime_1.exists)(json, 'flag_color') ? undefined : (0, TransactionFlagColor_1.TransactionFlagColorFromJSON)(json['flag_color']),
|
|
82
71
|
'account_id': json['account_id'],
|
|
83
72
|
'payee_id': !(0, runtime_1.exists)(json, 'payee_id') ? undefined : json['payee_id'],
|
|
84
73
|
'category_id': !(0, runtime_1.exists)(json, 'category_id') ? undefined : json['category_id'],
|
|
@@ -105,7 +94,7 @@ function ScheduledTransactionDetailToJSON(value) {
|
|
|
105
94
|
'frequency': value.frequency,
|
|
106
95
|
'amount': value.amount,
|
|
107
96
|
'memo': value.memo,
|
|
108
|
-
'flag_color': value.flag_color,
|
|
97
|
+
'flag_color': (0, TransactionFlagColor_1.TransactionFlagColorToJSON)(value.flag_color),
|
|
109
98
|
'account_id': value.account_id,
|
|
110
99
|
'payee_id': value.payee_id,
|
|
111
100
|
'category_id': value.category_id,
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { TransactionFlagColor } from './TransactionFlagColor';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -52,11 +53,11 @@ export interface ScheduledTransactionSummary {
|
|
|
52
53
|
*/
|
|
53
54
|
memo?: string | null;
|
|
54
55
|
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {
|
|
56
|
+
*
|
|
57
|
+
* @type {TransactionFlagColor}
|
|
57
58
|
* @memberof ScheduledTransactionSummary
|
|
58
59
|
*/
|
|
59
|
-
flag_color?:
|
|
60
|
+
flag_color?: TransactionFlagColor | null;
|
|
60
61
|
/**
|
|
61
62
|
*
|
|
62
63
|
* @type {string}
|
|
@@ -106,20 +107,7 @@ export declare const ScheduledTransactionSummaryFrequencyEnum: {
|
|
|
106
107
|
readonly Yearly: "yearly";
|
|
107
108
|
readonly EveryOtherYear: "everyOtherYear";
|
|
108
109
|
};
|
|
109
|
-
export
|
|
110
|
-
/**
|
|
111
|
-
* @export
|
|
112
|
-
*/
|
|
113
|
-
export declare const ScheduledTransactionSummaryFlagColorEnum: {
|
|
114
|
-
readonly Red: "red";
|
|
115
|
-
readonly Orange: "orange";
|
|
116
|
-
readonly Yellow: "yellow";
|
|
117
|
-
readonly Green: "green";
|
|
118
|
-
readonly Blue: "blue";
|
|
119
|
-
readonly Purple: "purple";
|
|
120
|
-
readonly Null: "null";
|
|
121
|
-
};
|
|
122
|
-
export declare type ScheduledTransactionSummaryFlagColorEnum = typeof ScheduledTransactionSummaryFlagColorEnum[keyof typeof ScheduledTransactionSummaryFlagColorEnum];
|
|
110
|
+
export type ScheduledTransactionSummaryFrequencyEnum = typeof ScheduledTransactionSummaryFrequencyEnum[keyof typeof ScheduledTransactionSummaryFrequencyEnum];
|
|
123
111
|
/**
|
|
124
112
|
* Check if a given object implements the ScheduledTransactionSummary interface.
|
|
125
113
|
*/
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ScheduledTransactionSummaryToJSON = exports.ScheduledTransactionSummaryFromJSONTyped = exports.ScheduledTransactionSummaryFromJSON = exports.instanceOfScheduledTransactionSummary = exports.
|
|
16
|
+
exports.ScheduledTransactionSummaryToJSON = exports.ScheduledTransactionSummaryFromJSONTyped = exports.ScheduledTransactionSummaryFromJSON = exports.instanceOfScheduledTransactionSummary = exports.ScheduledTransactionSummaryFrequencyEnum = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
+
const TransactionFlagColor_1 = require("./TransactionFlagColor");
|
|
18
19
|
/**
|
|
19
20
|
* @export
|
|
20
21
|
*/
|
|
@@ -33,18 +34,6 @@ exports.ScheduledTransactionSummaryFrequencyEnum = {
|
|
|
33
34
|
Yearly: 'yearly',
|
|
34
35
|
EveryOtherYear: 'everyOtherYear'
|
|
35
36
|
};
|
|
36
|
-
/**
|
|
37
|
-
* @export
|
|
38
|
-
*/
|
|
39
|
-
exports.ScheduledTransactionSummaryFlagColorEnum = {
|
|
40
|
-
Red: 'red',
|
|
41
|
-
Orange: 'orange',
|
|
42
|
-
Yellow: 'yellow',
|
|
43
|
-
Green: 'green',
|
|
44
|
-
Blue: 'blue',
|
|
45
|
-
Purple: 'purple',
|
|
46
|
-
Null: 'null'
|
|
47
|
-
};
|
|
48
37
|
/**
|
|
49
38
|
* Check if a given object implements the ScheduledTransactionSummary interface.
|
|
50
39
|
*/
|
|
@@ -75,7 +64,7 @@ function ScheduledTransactionSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
75
64
|
'frequency': json['frequency'],
|
|
76
65
|
'amount': json['amount'],
|
|
77
66
|
'memo': !(0, runtime_1.exists)(json, 'memo') ? undefined : json['memo'],
|
|
78
|
-
'flag_color': !(0, runtime_1.exists)(json, 'flag_color') ? undefined : json['flag_color'],
|
|
67
|
+
'flag_color': !(0, runtime_1.exists)(json, 'flag_color') ? undefined : (0, TransactionFlagColor_1.TransactionFlagColorFromJSON)(json['flag_color']),
|
|
79
68
|
'account_id': json['account_id'],
|
|
80
69
|
'payee_id': !(0, runtime_1.exists)(json, 'payee_id') ? undefined : json['payee_id'],
|
|
81
70
|
'category_id': !(0, runtime_1.exists)(json, 'category_id') ? undefined : json['category_id'],
|
|
@@ -98,7 +87,7 @@ function ScheduledTransactionSummaryToJSON(value) {
|
|
|
98
87
|
'frequency': value.frequency,
|
|
99
88
|
'amount': value.amount,
|
|
100
89
|
'memo': value.memo,
|
|
101
|
-
'flag_color': value.flag_color,
|
|
90
|
+
'flag_color': (0, TransactionFlagColor_1.TransactionFlagColorToJSON)(value.flag_color),
|
|
102
91
|
'account_id': value.account_id,
|
|
103
92
|
'payee_id': value.payee_id,
|
|
104
93
|
'category_id': value.category_id,
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* The scheduled transaction flag
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ScheduledTransactionSummaryFlagColor
|
|
16
|
+
*/
|
|
17
|
+
export interface ScheduledTransactionSummaryFlagColor {
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the ScheduledTransactionSummaryFlagColor interface.
|
|
21
|
+
*/
|
|
22
|
+
export declare function instanceOfScheduledTransactionSummaryFlagColor(value: object): boolean;
|
|
23
|
+
export declare function ScheduledTransactionSummaryFlagColorFromJSON(json: any): ScheduledTransactionSummaryFlagColor;
|
|
24
|
+
export declare function ScheduledTransactionSummaryFlagColorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionSummaryFlagColor;
|
|
25
|
+
export declare function ScheduledTransactionSummaryFlagColorToJSON(value?: ScheduledTransactionSummaryFlagColor | null): any;
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ScheduledTransactionSummaryFlagColorToJSON = exports.ScheduledTransactionSummaryFlagColorFromJSONTyped = exports.ScheduledTransactionSummaryFlagColorFromJSON = exports.instanceOfScheduledTransactionSummaryFlagColor = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ScheduledTransactionSummaryFlagColor interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfScheduledTransactionSummaryFlagColor(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
exports.instanceOfScheduledTransactionSummaryFlagColor = instanceOfScheduledTransactionSummaryFlagColor;
|
|
25
|
+
function ScheduledTransactionSummaryFlagColorFromJSON(json) {
|
|
26
|
+
return ScheduledTransactionSummaryFlagColorFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
exports.ScheduledTransactionSummaryFlagColorFromJSON = ScheduledTransactionSummaryFlagColorFromJSON;
|
|
29
|
+
function ScheduledTransactionSummaryFlagColorFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
exports.ScheduledTransactionSummaryFlagColorFromJSONTyped = ScheduledTransactionSummaryFlagColorFromJSONTyped;
|
|
33
|
+
function ScheduledTransactionSummaryFlagColorToJSON(value) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
exports.ScheduledTransactionSummaryFlagColorToJSON = ScheduledTransactionSummaryFlagColorToJSON;
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* The cleared status of the transaction
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const TransactionClearedStatus: {
|
|
17
|
+
readonly Cleared: "cleared";
|
|
18
|
+
readonly Uncleared: "uncleared";
|
|
19
|
+
readonly Reconciled: "reconciled";
|
|
20
|
+
};
|
|
21
|
+
export type TransactionClearedStatus = typeof TransactionClearedStatus[keyof typeof TransactionClearedStatus];
|
|
22
|
+
export declare function TransactionClearedStatusFromJSON(json: any): TransactionClearedStatus;
|
|
23
|
+
export declare function TransactionClearedStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionClearedStatus;
|
|
24
|
+
export declare function TransactionClearedStatusToJSON(value?: TransactionClearedStatus | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.TransactionClearedStatusToJSON = exports.TransactionClearedStatusFromJSONTyped = exports.TransactionClearedStatusFromJSON = exports.TransactionClearedStatus = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* The cleared status of the transaction
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.TransactionClearedStatus = {
|
|
22
|
+
Cleared: 'cleared',
|
|
23
|
+
Uncleared: 'uncleared',
|
|
24
|
+
Reconciled: 'reconciled'
|
|
25
|
+
};
|
|
26
|
+
function TransactionClearedStatusFromJSON(json) {
|
|
27
|
+
return TransactionClearedStatusFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.TransactionClearedStatusFromJSON = TransactionClearedStatusFromJSON;
|
|
30
|
+
function TransactionClearedStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
exports.TransactionClearedStatusFromJSONTyped = TransactionClearedStatusFromJSONTyped;
|
|
34
|
+
function TransactionClearedStatusToJSON(value) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
exports.TransactionClearedStatusToJSON = TransactionClearedStatusToJSON;
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SubTransaction } from './SubTransaction';
|
|
13
|
+
import type { TransactionClearedStatus } from './TransactionClearedStatus';
|
|
14
|
+
import type { TransactionFlagColor } from './TransactionFlagColor';
|
|
13
15
|
/**
|
|
14
16
|
*
|
|
15
17
|
* @export
|
|
@@ -41,11 +43,11 @@ export interface TransactionDetail {
|
|
|
41
43
|
*/
|
|
42
44
|
memo?: string | null;
|
|
43
45
|
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {
|
|
46
|
+
*
|
|
47
|
+
* @type {TransactionClearedStatus}
|
|
46
48
|
* @memberof TransactionDetail
|
|
47
49
|
*/
|
|
48
|
-
cleared:
|
|
50
|
+
cleared: TransactionClearedStatus;
|
|
49
51
|
/**
|
|
50
52
|
* Whether or not the transaction is approved
|
|
51
53
|
* @type {boolean}
|
|
@@ -53,11 +55,11 @@ export interface TransactionDetail {
|
|
|
53
55
|
*/
|
|
54
56
|
approved: boolean;
|
|
55
57
|
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {
|
|
58
|
+
*
|
|
59
|
+
* @type {TransactionFlagColor}
|
|
58
60
|
* @memberof TransactionDetail
|
|
59
61
|
*/
|
|
60
|
-
flag_color?:
|
|
62
|
+
flag_color?: TransactionFlagColor | null;
|
|
61
63
|
/**
|
|
62
64
|
*
|
|
63
65
|
* @type {string}
|
|
@@ -149,28 +151,6 @@ export interface TransactionDetail {
|
|
|
149
151
|
*/
|
|
150
152
|
subtransactions: Array<SubTransaction>;
|
|
151
153
|
}
|
|
152
|
-
/**
|
|
153
|
-
* @export
|
|
154
|
-
*/
|
|
155
|
-
export declare const TransactionDetailClearedEnum: {
|
|
156
|
-
readonly Cleared: "cleared";
|
|
157
|
-
readonly Uncleared: "uncleared";
|
|
158
|
-
readonly Reconciled: "reconciled";
|
|
159
|
-
};
|
|
160
|
-
export declare type TransactionDetailClearedEnum = typeof TransactionDetailClearedEnum[keyof typeof TransactionDetailClearedEnum];
|
|
161
|
-
/**
|
|
162
|
-
* @export
|
|
163
|
-
*/
|
|
164
|
-
export declare const TransactionDetailFlagColorEnum: {
|
|
165
|
-
readonly Red: "red";
|
|
166
|
-
readonly Orange: "orange";
|
|
167
|
-
readonly Yellow: "yellow";
|
|
168
|
-
readonly Green: "green";
|
|
169
|
-
readonly Blue: "blue";
|
|
170
|
-
readonly Purple: "purple";
|
|
171
|
-
readonly Null: "null";
|
|
172
|
-
};
|
|
173
|
-
export declare type TransactionDetailFlagColorEnum = typeof TransactionDetailFlagColorEnum[keyof typeof TransactionDetailFlagColorEnum];
|
|
174
154
|
/**
|
|
175
155
|
* @export
|
|
176
156
|
*/
|
|
@@ -180,12 +160,11 @@ export declare const TransactionDetailDebtTransactionTypeEnum: {
|
|
|
180
160
|
readonly Fee: "fee";
|
|
181
161
|
readonly Interest: "interest";
|
|
182
162
|
readonly Escrow: "escrow";
|
|
183
|
-
readonly
|
|
163
|
+
readonly BalanceAdjustment: "balanceAdjustment";
|
|
184
164
|
readonly Credit: "credit";
|
|
185
165
|
readonly Charge: "charge";
|
|
186
|
-
readonly Null: "null";
|
|
187
166
|
};
|
|
188
|
-
export
|
|
167
|
+
export type TransactionDetailDebtTransactionTypeEnum = typeof TransactionDetailDebtTransactionTypeEnum[keyof typeof TransactionDetailDebtTransactionTypeEnum];
|
|
189
168
|
/**
|
|
190
169
|
* Check if a given object implements the TransactionDetail interface.
|
|
191
170
|
*/
|
|
@@ -13,29 +13,11 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.TransactionDetailToJSON = exports.TransactionDetailFromJSONTyped = exports.TransactionDetailFromJSON = exports.instanceOfTransactionDetail = exports.TransactionDetailDebtTransactionTypeEnum =
|
|
16
|
+
exports.TransactionDetailToJSON = exports.TransactionDetailFromJSONTyped = exports.TransactionDetailFromJSON = exports.instanceOfTransactionDetail = exports.TransactionDetailDebtTransactionTypeEnum = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
18
|
const SubTransaction_1 = require("./SubTransaction");
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
*/
|
|
22
|
-
exports.TransactionDetailClearedEnum = {
|
|
23
|
-
Cleared: 'cleared',
|
|
24
|
-
Uncleared: 'uncleared',
|
|
25
|
-
Reconciled: 'reconciled'
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* @export
|
|
29
|
-
*/
|
|
30
|
-
exports.TransactionDetailFlagColorEnum = {
|
|
31
|
-
Red: 'red',
|
|
32
|
-
Orange: 'orange',
|
|
33
|
-
Yellow: 'yellow',
|
|
34
|
-
Green: 'green',
|
|
35
|
-
Blue: 'blue',
|
|
36
|
-
Purple: 'purple',
|
|
37
|
-
Null: 'null'
|
|
38
|
-
};
|
|
19
|
+
const TransactionClearedStatus_1 = require("./TransactionClearedStatus");
|
|
20
|
+
const TransactionFlagColor_1 = require("./TransactionFlagColor");
|
|
39
21
|
/**
|
|
40
22
|
* @export
|
|
41
23
|
*/
|
|
@@ -45,10 +27,9 @@ exports.TransactionDetailDebtTransactionTypeEnum = {
|
|
|
45
27
|
Fee: 'fee',
|
|
46
28
|
Interest: 'interest',
|
|
47
29
|
Escrow: 'escrow',
|
|
48
|
-
|
|
30
|
+
BalanceAdjustment: 'balanceAdjustment',
|
|
49
31
|
Credit: 'credit',
|
|
50
32
|
Charge: 'charge',
|
|
51
|
-
Null: 'null'
|
|
52
33
|
};
|
|
53
34
|
/**
|
|
54
35
|
* Check if a given object implements the TransactionDetail interface.
|
|
@@ -80,9 +61,9 @@ function TransactionDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
80
61
|
'date': json['date'],
|
|
81
62
|
'amount': json['amount'],
|
|
82
63
|
'memo': !(0, runtime_1.exists)(json, 'memo') ? undefined : json['memo'],
|
|
83
|
-
'cleared': json['cleared'],
|
|
64
|
+
'cleared': (0, TransactionClearedStatus_1.TransactionClearedStatusFromJSON)(json['cleared']),
|
|
84
65
|
'approved': json['approved'],
|
|
85
|
-
'flag_color': !(0, runtime_1.exists)(json, 'flag_color') ? undefined : json['flag_color'],
|
|
66
|
+
'flag_color': !(0, runtime_1.exists)(json, 'flag_color') ? undefined : (0, TransactionFlagColor_1.TransactionFlagColorFromJSON)(json['flag_color']),
|
|
86
67
|
'account_id': json['account_id'],
|
|
87
68
|
'payee_id': !(0, runtime_1.exists)(json, 'payee_id') ? undefined : json['payee_id'],
|
|
88
69
|
'category_id': !(0, runtime_1.exists)(json, 'category_id') ? undefined : json['category_id'],
|
|
@@ -113,9 +94,9 @@ function TransactionDetailToJSON(value) {
|
|
|
113
94
|
'date': value.date,
|
|
114
95
|
'amount': value.amount,
|
|
115
96
|
'memo': value.memo,
|
|
116
|
-
'cleared': value.cleared,
|
|
97
|
+
'cleared': (0, TransactionClearedStatus_1.TransactionClearedStatusToJSON)(value.cleared),
|
|
117
98
|
'approved': value.approved,
|
|
118
|
-
'flag_color': value.flag_color,
|
|
99
|
+
'flag_color': (0, TransactionFlagColor_1.TransactionFlagColorToJSON)(value.flag_color),
|
|
119
100
|
'account_id': value.account_id,
|
|
120
101
|
'payee_id': value.payee_id,
|
|
121
102
|
'category_id': value.category_id,
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* The transaction flag
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const TransactionFlagColor: {
|
|
17
|
+
readonly Red: "red";
|
|
18
|
+
readonly Orange: "orange";
|
|
19
|
+
readonly Yellow: "yellow";
|
|
20
|
+
readonly Green: "green";
|
|
21
|
+
readonly Blue: "blue";
|
|
22
|
+
readonly Purple: "purple";
|
|
23
|
+
};
|
|
24
|
+
export type TransactionFlagColor = typeof TransactionFlagColor[keyof typeof TransactionFlagColor];
|
|
25
|
+
export declare function TransactionFlagColorFromJSON(json: any): TransactionFlagColor;
|
|
26
|
+
export declare function TransactionFlagColorFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionFlagColor;
|
|
27
|
+
export declare function TransactionFlagColorToJSON(value?: TransactionFlagColor | null): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.TransactionFlagColorToJSON = exports.TransactionFlagColorFromJSONTyped = exports.TransactionFlagColorFromJSON = exports.TransactionFlagColor = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* The transaction flag
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.TransactionFlagColor = {
|
|
22
|
+
Red: 'red',
|
|
23
|
+
Orange: 'orange',
|
|
24
|
+
Yellow: 'yellow',
|
|
25
|
+
Green: 'green',
|
|
26
|
+
Blue: 'blue',
|
|
27
|
+
Purple: 'purple',
|
|
28
|
+
};
|
|
29
|
+
function TransactionFlagColorFromJSON(json) {
|
|
30
|
+
return TransactionFlagColorFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.TransactionFlagColorFromJSON = TransactionFlagColorFromJSON;
|
|
33
|
+
function TransactionFlagColorFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
exports.TransactionFlagColorFromJSONTyped = TransactionFlagColorFromJSONTyped;
|
|
37
|
+
function TransactionFlagColorToJSON(value) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
exports.TransactionFlagColorToJSON = TransactionFlagColorToJSON;
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { TransactionClearedStatus } from './TransactionClearedStatus';
|
|
13
|
+
import type { TransactionFlagColor } from './TransactionFlagColor';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -40,11 +42,11 @@ export interface TransactionSummary {
|
|
|
40
42
|
*/
|
|
41
43
|
memo?: string | null;
|
|
42
44
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {
|
|
45
|
+
*
|
|
46
|
+
* @type {TransactionClearedStatus}
|
|
45
47
|
* @memberof TransactionSummary
|
|
46
48
|
*/
|
|
47
|
-
cleared:
|
|
49
|
+
cleared: TransactionClearedStatus;
|
|
48
50
|
/**
|
|
49
51
|
* Whether or not the transaction is approved
|
|
50
52
|
* @type {boolean}
|
|
@@ -52,11 +54,11 @@ export interface TransactionSummary {
|
|
|
52
54
|
*/
|
|
53
55
|
approved: boolean;
|
|
54
56
|
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {
|
|
57
|
+
*
|
|
58
|
+
* @type {TransactionFlagColor}
|
|
57
59
|
* @memberof TransactionSummary
|
|
58
60
|
*/
|
|
59
|
-
flag_color?:
|
|
61
|
+
flag_color?: TransactionFlagColor | null;
|
|
60
62
|
/**
|
|
61
63
|
*
|
|
62
64
|
* @type {string}
|
|
@@ -124,28 +126,6 @@ export interface TransactionSummary {
|
|
|
124
126
|
*/
|
|
125
127
|
deleted: boolean;
|
|
126
128
|
}
|
|
127
|
-
/**
|
|
128
|
-
* @export
|
|
129
|
-
*/
|
|
130
|
-
export declare const TransactionSummaryClearedEnum: {
|
|
131
|
-
readonly Cleared: "cleared";
|
|
132
|
-
readonly Uncleared: "uncleared";
|
|
133
|
-
readonly Reconciled: "reconciled";
|
|
134
|
-
};
|
|
135
|
-
export declare type TransactionSummaryClearedEnum = typeof TransactionSummaryClearedEnum[keyof typeof TransactionSummaryClearedEnum];
|
|
136
|
-
/**
|
|
137
|
-
* @export
|
|
138
|
-
*/
|
|
139
|
-
export declare const TransactionSummaryFlagColorEnum: {
|
|
140
|
-
readonly Red: "red";
|
|
141
|
-
readonly Orange: "orange";
|
|
142
|
-
readonly Yellow: "yellow";
|
|
143
|
-
readonly Green: "green";
|
|
144
|
-
readonly Blue: "blue";
|
|
145
|
-
readonly Purple: "purple";
|
|
146
|
-
readonly Null: "null";
|
|
147
|
-
};
|
|
148
|
-
export declare type TransactionSummaryFlagColorEnum = typeof TransactionSummaryFlagColorEnum[keyof typeof TransactionSummaryFlagColorEnum];
|
|
149
129
|
/**
|
|
150
130
|
* @export
|
|
151
131
|
*/
|
|
@@ -155,12 +135,11 @@ export declare const TransactionSummaryDebtTransactionTypeEnum: {
|
|
|
155
135
|
readonly Fee: "fee";
|
|
156
136
|
readonly Interest: "interest";
|
|
157
137
|
readonly Escrow: "escrow";
|
|
158
|
-
readonly
|
|
138
|
+
readonly BalanceAdjustment: "balanceAdjustment";
|
|
159
139
|
readonly Credit: "credit";
|
|
160
140
|
readonly Charge: "charge";
|
|
161
|
-
readonly Null: "null";
|
|
162
141
|
};
|
|
163
|
-
export
|
|
142
|
+
export type TransactionSummaryDebtTransactionTypeEnum = typeof TransactionSummaryDebtTransactionTypeEnum[keyof typeof TransactionSummaryDebtTransactionTypeEnum];
|
|
164
143
|
/**
|
|
165
144
|
* Check if a given object implements the TransactionSummary interface.
|
|
166
145
|
*/
|