ynab 1.24.0 → 1.28.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 +17 -1
- package/dist/api.d.ts +276 -96
- package/dist/api.js +168 -94
- package/dist/browser/ynab.js +1 -1
- package/dist/esm/api.d.ts +276 -96
- package/dist/esm/api.js +585 -304
- package/dist/esm/transactionsApi.d.ts +9 -3
- package/dist/transactionsApi.d.ts +9 -3
- package/package.json +4 -8
package/dist/api.js
CHANGED
|
@@ -11,13 +11,27 @@
|
|
|
11
11
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
14
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
24
|
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiFetchParamCreator = exports.TransactionsApi = exports.TransactionsApiFactory = exports.TransactionsApiFp = exports.TransactionsApiFetchParamCreator = exports.ScheduledTransactionsApi = exports.ScheduledTransactionsApiFactory = exports.ScheduledTransactionsApiFp = exports.ScheduledTransactionsApiFetchParamCreator = exports.PayeesApi = exports.PayeesApiFactory = exports.PayeesApiFp = exports.PayeesApiFetchParamCreator = exports.PayeeLocationsApi = exports.PayeeLocationsApiFactory = exports.PayeeLocationsApiFp = exports.PayeeLocationsApiFetchParamCreator = exports.MonthsApi = exports.MonthsApiFactory = exports.MonthsApiFp = exports.MonthsApiFetchParamCreator = exports.DeprecatedApi = exports.DeprecatedApiFactory = exports.DeprecatedApiFp = exports.DeprecatedApiFetchParamCreator = exports.CategoriesApi = exports.CategoriesApiFactory = exports.CategoriesApiFp = exports.CategoriesApiFetchParamCreator = exports.BudgetsApi = exports.BudgetsApiFactory = exports.BudgetsApiFp = exports.BudgetsApiFetchParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiFetchParamCreator = exports.UpdateTransaction = exports.TransactionDetail = exports.ScheduledTransactionDetail = exports.HybridTransaction = exports.TransactionSummary = exports.ScheduledTransactionSummary = exports.SaveTransaction = exports.SaveAccount = exports.Category = exports.Account = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
|
|
25
|
+
// Polyfill fetch globally - this makes it easier to override with modules like fetch-mock.
|
|
26
|
+
const fetchPonyfill = require("fetch-ponyfill")();
|
|
27
|
+
if (!globalThis.fetch) {
|
|
28
|
+
globalThis.fetch = fetchPonyfill.fetch;
|
|
29
|
+
globalThis.Response = fetchPonyfill.Response;
|
|
30
|
+
globalThis.Headers = fetchPonyfill.Headers;
|
|
31
|
+
globalThis.Request = fetchPonyfill.Request;
|
|
32
|
+
}
|
|
16
33
|
const url = require("url");
|
|
17
|
-
|
|
18
|
-
// That makes it easier to override with modules like fetch-mock
|
|
19
|
-
require("portable-fetch");
|
|
20
|
-
const USER_AGENT = "api_client/js/1.21.0";
|
|
34
|
+
const USER_AGENT = "api_client/js/1.27.0";
|
|
21
35
|
function convertDateToFullDateStringFormat(date) {
|
|
22
36
|
// Convert to RFC 3339 "full-date" format, like "2017-11-27"
|
|
23
37
|
if (date instanceof Date) {
|
|
@@ -511,16 +525,18 @@ exports.AccountsApiFp = function (configuration) {
|
|
|
511
525
|
createAccount(budget_id, data, options) {
|
|
512
526
|
const localVarFetchArgs = exports.AccountsApiFetchParamCreator(configuration).createAccount(budget_id, data, options);
|
|
513
527
|
return (fetchFunction = fetch) => {
|
|
514
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
528
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
515
529
|
if (response.status >= 200 && response.status < 300) {
|
|
516
|
-
|
|
530
|
+
const apiResponse = yield response.json();
|
|
531
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
532
|
+
return apiResponse;
|
|
517
533
|
}
|
|
518
534
|
else {
|
|
519
535
|
return response.json().then((e) => {
|
|
520
536
|
return Promise.reject(e);
|
|
521
537
|
});
|
|
522
538
|
}
|
|
523
|
-
});
|
|
539
|
+
}));
|
|
524
540
|
};
|
|
525
541
|
},
|
|
526
542
|
/**
|
|
@@ -534,16 +550,18 @@ exports.AccountsApiFp = function (configuration) {
|
|
|
534
550
|
getAccountById(budget_id, account_id, options) {
|
|
535
551
|
const localVarFetchArgs = exports.AccountsApiFetchParamCreator(configuration).getAccountById(budget_id, account_id, options);
|
|
536
552
|
return (fetchFunction = fetch) => {
|
|
537
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
553
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
538
554
|
if (response.status >= 200 && response.status < 300) {
|
|
539
|
-
|
|
555
|
+
const apiResponse = yield response.json();
|
|
556
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
557
|
+
return apiResponse;
|
|
540
558
|
}
|
|
541
559
|
else {
|
|
542
560
|
return response.json().then((e) => {
|
|
543
561
|
return Promise.reject(e);
|
|
544
562
|
});
|
|
545
563
|
}
|
|
546
|
-
});
|
|
564
|
+
}));
|
|
547
565
|
};
|
|
548
566
|
},
|
|
549
567
|
/**
|
|
@@ -557,16 +575,18 @@ exports.AccountsApiFp = function (configuration) {
|
|
|
557
575
|
getAccounts(budget_id, last_knowledge_of_server, options) {
|
|
558
576
|
const localVarFetchArgs = exports.AccountsApiFetchParamCreator(configuration).getAccounts(budget_id, last_knowledge_of_server, options);
|
|
559
577
|
return (fetchFunction = fetch) => {
|
|
560
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
578
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
561
579
|
if (response.status >= 200 && response.status < 300) {
|
|
562
|
-
|
|
580
|
+
const apiResponse = yield response.json();
|
|
581
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
582
|
+
return apiResponse;
|
|
563
583
|
}
|
|
564
584
|
else {
|
|
565
585
|
return response.json().then((e) => {
|
|
566
586
|
return Promise.reject(e);
|
|
567
587
|
});
|
|
568
588
|
}
|
|
569
|
-
});
|
|
589
|
+
}));
|
|
570
590
|
};
|
|
571
591
|
},
|
|
572
592
|
};
|
|
@@ -786,16 +806,18 @@ exports.BudgetsApiFp = function (configuration) {
|
|
|
786
806
|
getBudgetById(budget_id, last_knowledge_of_server, options) {
|
|
787
807
|
const localVarFetchArgs = exports.BudgetsApiFetchParamCreator(configuration).getBudgetById(budget_id, last_knowledge_of_server, options);
|
|
788
808
|
return (fetchFunction = fetch) => {
|
|
789
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
809
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
790
810
|
if (response.status >= 200 && response.status < 300) {
|
|
791
|
-
|
|
811
|
+
const apiResponse = yield response.json();
|
|
812
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
813
|
+
return apiResponse;
|
|
792
814
|
}
|
|
793
815
|
else {
|
|
794
816
|
return response.json().then((e) => {
|
|
795
817
|
return Promise.reject(e);
|
|
796
818
|
});
|
|
797
819
|
}
|
|
798
|
-
});
|
|
820
|
+
}));
|
|
799
821
|
};
|
|
800
822
|
},
|
|
801
823
|
/**
|
|
@@ -808,16 +830,18 @@ exports.BudgetsApiFp = function (configuration) {
|
|
|
808
830
|
getBudgetSettingsById(budget_id, options) {
|
|
809
831
|
const localVarFetchArgs = exports.BudgetsApiFetchParamCreator(configuration).getBudgetSettingsById(budget_id, options);
|
|
810
832
|
return (fetchFunction = fetch) => {
|
|
811
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
833
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
812
834
|
if (response.status >= 200 && response.status < 300) {
|
|
813
|
-
|
|
835
|
+
const apiResponse = yield response.json();
|
|
836
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
837
|
+
return apiResponse;
|
|
814
838
|
}
|
|
815
839
|
else {
|
|
816
840
|
return response.json().then((e) => {
|
|
817
841
|
return Promise.reject(e);
|
|
818
842
|
});
|
|
819
843
|
}
|
|
820
|
-
});
|
|
844
|
+
}));
|
|
821
845
|
};
|
|
822
846
|
},
|
|
823
847
|
/**
|
|
@@ -830,16 +854,18 @@ exports.BudgetsApiFp = function (configuration) {
|
|
|
830
854
|
getBudgets(include_accounts, options) {
|
|
831
855
|
const localVarFetchArgs = exports.BudgetsApiFetchParamCreator(configuration).getBudgets(include_accounts, options);
|
|
832
856
|
return (fetchFunction = fetch) => {
|
|
833
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
857
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
834
858
|
if (response.status >= 200 && response.status < 300) {
|
|
835
|
-
|
|
859
|
+
const apiResponse = yield response.json();
|
|
860
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
861
|
+
return apiResponse;
|
|
836
862
|
}
|
|
837
863
|
else {
|
|
838
864
|
return response.json().then((e) => {
|
|
839
865
|
return Promise.reject(e);
|
|
840
866
|
});
|
|
841
867
|
}
|
|
842
|
-
});
|
|
868
|
+
}));
|
|
843
869
|
};
|
|
844
870
|
},
|
|
845
871
|
};
|
|
@@ -1128,16 +1154,18 @@ exports.CategoriesApiFp = function (configuration) {
|
|
|
1128
1154
|
getCategories(budget_id, last_knowledge_of_server, options) {
|
|
1129
1155
|
const localVarFetchArgs = exports.CategoriesApiFetchParamCreator(configuration).getCategories(budget_id, last_knowledge_of_server, options);
|
|
1130
1156
|
return (fetchFunction = fetch) => {
|
|
1131
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1157
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1132
1158
|
if (response.status >= 200 && response.status < 300) {
|
|
1133
|
-
|
|
1159
|
+
const apiResponse = yield response.json();
|
|
1160
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1161
|
+
return apiResponse;
|
|
1134
1162
|
}
|
|
1135
1163
|
else {
|
|
1136
1164
|
return response.json().then((e) => {
|
|
1137
1165
|
return Promise.reject(e);
|
|
1138
1166
|
});
|
|
1139
1167
|
}
|
|
1140
|
-
});
|
|
1168
|
+
}));
|
|
1141
1169
|
};
|
|
1142
1170
|
},
|
|
1143
1171
|
/**
|
|
@@ -1151,16 +1179,18 @@ exports.CategoriesApiFp = function (configuration) {
|
|
|
1151
1179
|
getCategoryById(budget_id, category_id, options) {
|
|
1152
1180
|
const localVarFetchArgs = exports.CategoriesApiFetchParamCreator(configuration).getCategoryById(budget_id, category_id, options);
|
|
1153
1181
|
return (fetchFunction = fetch) => {
|
|
1154
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1182
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1155
1183
|
if (response.status >= 200 && response.status < 300) {
|
|
1156
|
-
|
|
1184
|
+
const apiResponse = yield response.json();
|
|
1185
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1186
|
+
return apiResponse;
|
|
1157
1187
|
}
|
|
1158
1188
|
else {
|
|
1159
1189
|
return response.json().then((e) => {
|
|
1160
1190
|
return Promise.reject(e);
|
|
1161
1191
|
});
|
|
1162
1192
|
}
|
|
1163
|
-
});
|
|
1193
|
+
}));
|
|
1164
1194
|
};
|
|
1165
1195
|
},
|
|
1166
1196
|
/**
|
|
@@ -1175,16 +1205,18 @@ exports.CategoriesApiFp = function (configuration) {
|
|
|
1175
1205
|
getMonthCategoryById(budget_id, month, category_id, options) {
|
|
1176
1206
|
const localVarFetchArgs = exports.CategoriesApiFetchParamCreator(configuration).getMonthCategoryById(budget_id, month, category_id, options);
|
|
1177
1207
|
return (fetchFunction = fetch) => {
|
|
1178
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1208
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1179
1209
|
if (response.status >= 200 && response.status < 300) {
|
|
1180
|
-
|
|
1210
|
+
const apiResponse = yield response.json();
|
|
1211
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1212
|
+
return apiResponse;
|
|
1181
1213
|
}
|
|
1182
1214
|
else {
|
|
1183
1215
|
return response.json().then((e) => {
|
|
1184
1216
|
return Promise.reject(e);
|
|
1185
1217
|
});
|
|
1186
1218
|
}
|
|
1187
|
-
});
|
|
1219
|
+
}));
|
|
1188
1220
|
};
|
|
1189
1221
|
},
|
|
1190
1222
|
/**
|
|
@@ -1200,16 +1232,18 @@ exports.CategoriesApiFp = function (configuration) {
|
|
|
1200
1232
|
updateMonthCategory(budget_id, month, category_id, data, options) {
|
|
1201
1233
|
const localVarFetchArgs = exports.CategoriesApiFetchParamCreator(configuration).updateMonthCategory(budget_id, month, category_id, data, options);
|
|
1202
1234
|
return (fetchFunction = fetch) => {
|
|
1203
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1235
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1204
1236
|
if (response.status >= 200 && response.status < 300) {
|
|
1205
|
-
|
|
1237
|
+
const apiResponse = yield response.json();
|
|
1238
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1239
|
+
return apiResponse;
|
|
1206
1240
|
}
|
|
1207
1241
|
else {
|
|
1208
1242
|
return response.json().then((e) => {
|
|
1209
1243
|
return Promise.reject(e);
|
|
1210
1244
|
});
|
|
1211
1245
|
}
|
|
1212
|
-
});
|
|
1246
|
+
}));
|
|
1213
1247
|
};
|
|
1214
1248
|
},
|
|
1215
1249
|
};
|
|
@@ -1395,16 +1429,18 @@ exports.DeprecatedApiFp = function (configuration) {
|
|
|
1395
1429
|
bulkCreateTransactions(budget_id, transactions, options) {
|
|
1396
1430
|
const localVarFetchArgs = exports.DeprecatedApiFetchParamCreator(configuration).bulkCreateTransactions(budget_id, transactions, options);
|
|
1397
1431
|
return (fetchFunction = fetch) => {
|
|
1398
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1432
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1399
1433
|
if (response.status >= 200 && response.status < 300) {
|
|
1400
|
-
|
|
1434
|
+
const apiResponse = yield response.json();
|
|
1435
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1436
|
+
return apiResponse;
|
|
1401
1437
|
}
|
|
1402
1438
|
else {
|
|
1403
1439
|
return response.json().then((e) => {
|
|
1404
1440
|
return Promise.reject(e);
|
|
1405
1441
|
});
|
|
1406
1442
|
}
|
|
1407
|
-
});
|
|
1443
|
+
}));
|
|
1408
1444
|
};
|
|
1409
1445
|
},
|
|
1410
1446
|
};
|
|
@@ -1552,16 +1588,18 @@ exports.MonthsApiFp = function (configuration) {
|
|
|
1552
1588
|
getBudgetMonth(budget_id, month, options) {
|
|
1553
1589
|
const localVarFetchArgs = exports.MonthsApiFetchParamCreator(configuration).getBudgetMonth(budget_id, month, options);
|
|
1554
1590
|
return (fetchFunction = fetch) => {
|
|
1555
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1591
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1556
1592
|
if (response.status >= 200 && response.status < 300) {
|
|
1557
|
-
|
|
1593
|
+
const apiResponse = yield response.json();
|
|
1594
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1595
|
+
return apiResponse;
|
|
1558
1596
|
}
|
|
1559
1597
|
else {
|
|
1560
1598
|
return response.json().then((e) => {
|
|
1561
1599
|
return Promise.reject(e);
|
|
1562
1600
|
});
|
|
1563
1601
|
}
|
|
1564
|
-
});
|
|
1602
|
+
}));
|
|
1565
1603
|
};
|
|
1566
1604
|
},
|
|
1567
1605
|
/**
|
|
@@ -1575,16 +1613,18 @@ exports.MonthsApiFp = function (configuration) {
|
|
|
1575
1613
|
getBudgetMonths(budget_id, last_knowledge_of_server, options) {
|
|
1576
1614
|
const localVarFetchArgs = exports.MonthsApiFetchParamCreator(configuration).getBudgetMonths(budget_id, last_knowledge_of_server, options);
|
|
1577
1615
|
return (fetchFunction = fetch) => {
|
|
1578
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1616
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1579
1617
|
if (response.status >= 200 && response.status < 300) {
|
|
1580
|
-
|
|
1618
|
+
const apiResponse = yield response.json();
|
|
1619
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1620
|
+
return apiResponse;
|
|
1581
1621
|
}
|
|
1582
1622
|
else {
|
|
1583
1623
|
return response.json().then((e) => {
|
|
1584
1624
|
return Promise.reject(e);
|
|
1585
1625
|
});
|
|
1586
1626
|
}
|
|
1587
|
-
});
|
|
1627
|
+
}));
|
|
1588
1628
|
};
|
|
1589
1629
|
},
|
|
1590
1630
|
};
|
|
@@ -1791,16 +1831,18 @@ exports.PayeeLocationsApiFp = function (configuration) {
|
|
|
1791
1831
|
getPayeeLocationById(budget_id, payee_location_id, options) {
|
|
1792
1832
|
const localVarFetchArgs = exports.PayeeLocationsApiFetchParamCreator(configuration).getPayeeLocationById(budget_id, payee_location_id, options);
|
|
1793
1833
|
return (fetchFunction = fetch) => {
|
|
1794
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1834
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1795
1835
|
if (response.status >= 200 && response.status < 300) {
|
|
1796
|
-
|
|
1836
|
+
const apiResponse = yield response.json();
|
|
1837
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1838
|
+
return apiResponse;
|
|
1797
1839
|
}
|
|
1798
1840
|
else {
|
|
1799
1841
|
return response.json().then((e) => {
|
|
1800
1842
|
return Promise.reject(e);
|
|
1801
1843
|
});
|
|
1802
1844
|
}
|
|
1803
|
-
});
|
|
1845
|
+
}));
|
|
1804
1846
|
};
|
|
1805
1847
|
},
|
|
1806
1848
|
/**
|
|
@@ -1813,16 +1855,18 @@ exports.PayeeLocationsApiFp = function (configuration) {
|
|
|
1813
1855
|
getPayeeLocations(budget_id, options) {
|
|
1814
1856
|
const localVarFetchArgs = exports.PayeeLocationsApiFetchParamCreator(configuration).getPayeeLocations(budget_id, options);
|
|
1815
1857
|
return (fetchFunction = fetch) => {
|
|
1816
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1858
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1817
1859
|
if (response.status >= 200 && response.status < 300) {
|
|
1818
|
-
|
|
1860
|
+
const apiResponse = yield response.json();
|
|
1861
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1862
|
+
return apiResponse;
|
|
1819
1863
|
}
|
|
1820
1864
|
else {
|
|
1821
1865
|
return response.json().then((e) => {
|
|
1822
1866
|
return Promise.reject(e);
|
|
1823
1867
|
});
|
|
1824
1868
|
}
|
|
1825
|
-
});
|
|
1869
|
+
}));
|
|
1826
1870
|
};
|
|
1827
1871
|
},
|
|
1828
1872
|
/**
|
|
@@ -1836,16 +1880,18 @@ exports.PayeeLocationsApiFp = function (configuration) {
|
|
|
1836
1880
|
getPayeeLocationsByPayee(budget_id, payee_id, options) {
|
|
1837
1881
|
const localVarFetchArgs = exports.PayeeLocationsApiFetchParamCreator(configuration).getPayeeLocationsByPayee(budget_id, payee_id, options);
|
|
1838
1882
|
return (fetchFunction = fetch) => {
|
|
1839
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1883
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1840
1884
|
if (response.status >= 200 && response.status < 300) {
|
|
1841
|
-
|
|
1885
|
+
const apiResponse = yield response.json();
|
|
1886
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1887
|
+
return apiResponse;
|
|
1842
1888
|
}
|
|
1843
1889
|
else {
|
|
1844
1890
|
return response.json().then((e) => {
|
|
1845
1891
|
return Promise.reject(e);
|
|
1846
1892
|
});
|
|
1847
1893
|
}
|
|
1848
|
-
});
|
|
1894
|
+
}));
|
|
1849
1895
|
};
|
|
1850
1896
|
},
|
|
1851
1897
|
};
|
|
@@ -2037,16 +2083,18 @@ exports.PayeesApiFp = function (configuration) {
|
|
|
2037
2083
|
getPayeeById(budget_id, payee_id, options) {
|
|
2038
2084
|
const localVarFetchArgs = exports.PayeesApiFetchParamCreator(configuration).getPayeeById(budget_id, payee_id, options);
|
|
2039
2085
|
return (fetchFunction = fetch) => {
|
|
2040
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2086
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2041
2087
|
if (response.status >= 200 && response.status < 300) {
|
|
2042
|
-
|
|
2088
|
+
const apiResponse = yield response.json();
|
|
2089
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2090
|
+
return apiResponse;
|
|
2043
2091
|
}
|
|
2044
2092
|
else {
|
|
2045
2093
|
return response.json().then((e) => {
|
|
2046
2094
|
return Promise.reject(e);
|
|
2047
2095
|
});
|
|
2048
2096
|
}
|
|
2049
|
-
});
|
|
2097
|
+
}));
|
|
2050
2098
|
};
|
|
2051
2099
|
},
|
|
2052
2100
|
/**
|
|
@@ -2060,16 +2108,18 @@ exports.PayeesApiFp = function (configuration) {
|
|
|
2060
2108
|
getPayees(budget_id, last_knowledge_of_server, options) {
|
|
2061
2109
|
const localVarFetchArgs = exports.PayeesApiFetchParamCreator(configuration).getPayees(budget_id, last_knowledge_of_server, options);
|
|
2062
2110
|
return (fetchFunction = fetch) => {
|
|
2063
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2111
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2064
2112
|
if (response.status >= 200 && response.status < 300) {
|
|
2065
|
-
|
|
2113
|
+
const apiResponse = yield response.json();
|
|
2114
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2115
|
+
return apiResponse;
|
|
2066
2116
|
}
|
|
2067
2117
|
else {
|
|
2068
2118
|
return response.json().then((e) => {
|
|
2069
2119
|
return Promise.reject(e);
|
|
2070
2120
|
});
|
|
2071
2121
|
}
|
|
2072
|
-
});
|
|
2122
|
+
}));
|
|
2073
2123
|
};
|
|
2074
2124
|
},
|
|
2075
2125
|
};
|
|
@@ -2240,16 +2290,18 @@ exports.ScheduledTransactionsApiFp = function (configuration) {
|
|
|
2240
2290
|
getScheduledTransactionById(budget_id, scheduled_transaction_id, options) {
|
|
2241
2291
|
const localVarFetchArgs = exports.ScheduledTransactionsApiFetchParamCreator(configuration).getScheduledTransactionById(budget_id, scheduled_transaction_id, options);
|
|
2242
2292
|
return (fetchFunction = fetch) => {
|
|
2243
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2293
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2244
2294
|
if (response.status >= 200 && response.status < 300) {
|
|
2245
|
-
|
|
2295
|
+
const apiResponse = yield response.json();
|
|
2296
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2297
|
+
return apiResponse;
|
|
2246
2298
|
}
|
|
2247
2299
|
else {
|
|
2248
2300
|
return response.json().then((e) => {
|
|
2249
2301
|
return Promise.reject(e);
|
|
2250
2302
|
});
|
|
2251
2303
|
}
|
|
2252
|
-
});
|
|
2304
|
+
}));
|
|
2253
2305
|
};
|
|
2254
2306
|
},
|
|
2255
2307
|
/**
|
|
@@ -2263,16 +2315,18 @@ exports.ScheduledTransactionsApiFp = function (configuration) {
|
|
|
2263
2315
|
getScheduledTransactions(budget_id, last_knowledge_of_server, options) {
|
|
2264
2316
|
const localVarFetchArgs = exports.ScheduledTransactionsApiFetchParamCreator(configuration).getScheduledTransactions(budget_id, last_knowledge_of_server, options);
|
|
2265
2317
|
return (fetchFunction = fetch) => {
|
|
2266
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2318
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2267
2319
|
if (response.status >= 200 && response.status < 300) {
|
|
2268
|
-
|
|
2320
|
+
const apiResponse = yield response.json();
|
|
2321
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2322
|
+
return apiResponse;
|
|
2269
2323
|
}
|
|
2270
2324
|
else {
|
|
2271
2325
|
return response.json().then((e) => {
|
|
2272
2326
|
return Promise.reject(e);
|
|
2273
2327
|
});
|
|
2274
2328
|
}
|
|
2275
|
-
});
|
|
2329
|
+
}));
|
|
2276
2330
|
};
|
|
2277
2331
|
},
|
|
2278
2332
|
};
|
|
@@ -2770,16 +2824,18 @@ exports.TransactionsApiFp = function (configuration) {
|
|
|
2770
2824
|
createTransaction(budget_id, data, options) {
|
|
2771
2825
|
const localVarFetchArgs = exports.TransactionsApiFetchParamCreator(configuration).createTransaction(budget_id, data, options);
|
|
2772
2826
|
return (fetchFunction = fetch) => {
|
|
2773
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2827
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2774
2828
|
if (response.status >= 200 && response.status < 300) {
|
|
2775
|
-
|
|
2829
|
+
const apiResponse = yield response.json();
|
|
2830
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2831
|
+
return apiResponse;
|
|
2776
2832
|
}
|
|
2777
2833
|
else {
|
|
2778
2834
|
return response.json().then((e) => {
|
|
2779
2835
|
return Promise.reject(e);
|
|
2780
2836
|
});
|
|
2781
2837
|
}
|
|
2782
|
-
});
|
|
2838
|
+
}));
|
|
2783
2839
|
};
|
|
2784
2840
|
},
|
|
2785
2841
|
/**
|
|
@@ -2793,16 +2849,18 @@ exports.TransactionsApiFp = function (configuration) {
|
|
|
2793
2849
|
getTransactionById(budget_id, transaction_id, options) {
|
|
2794
2850
|
const localVarFetchArgs = exports.TransactionsApiFetchParamCreator(configuration).getTransactionById(budget_id, transaction_id, options);
|
|
2795
2851
|
return (fetchFunction = fetch) => {
|
|
2796
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2852
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2797
2853
|
if (response.status >= 200 && response.status < 300) {
|
|
2798
|
-
|
|
2854
|
+
const apiResponse = yield response.json();
|
|
2855
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2856
|
+
return apiResponse;
|
|
2799
2857
|
}
|
|
2800
2858
|
else {
|
|
2801
2859
|
return response.json().then((e) => {
|
|
2802
2860
|
return Promise.reject(e);
|
|
2803
2861
|
});
|
|
2804
2862
|
}
|
|
2805
|
-
});
|
|
2863
|
+
}));
|
|
2806
2864
|
};
|
|
2807
2865
|
},
|
|
2808
2866
|
/**
|
|
@@ -2818,16 +2876,18 @@ exports.TransactionsApiFp = function (configuration) {
|
|
|
2818
2876
|
getTransactions(budget_id, since_date, type, last_knowledge_of_server, options) {
|
|
2819
2877
|
const localVarFetchArgs = exports.TransactionsApiFetchParamCreator(configuration).getTransactions(budget_id, since_date, type, last_knowledge_of_server, options);
|
|
2820
2878
|
return (fetchFunction = fetch) => {
|
|
2821
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2879
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2822
2880
|
if (response.status >= 200 && response.status < 300) {
|
|
2823
|
-
|
|
2881
|
+
const apiResponse = yield response.json();
|
|
2882
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2883
|
+
return apiResponse;
|
|
2824
2884
|
}
|
|
2825
2885
|
else {
|
|
2826
2886
|
return response.json().then((e) => {
|
|
2827
2887
|
return Promise.reject(e);
|
|
2828
2888
|
});
|
|
2829
2889
|
}
|
|
2830
|
-
});
|
|
2890
|
+
}));
|
|
2831
2891
|
};
|
|
2832
2892
|
},
|
|
2833
2893
|
/**
|
|
@@ -2844,16 +2904,18 @@ exports.TransactionsApiFp = function (configuration) {
|
|
|
2844
2904
|
getTransactionsByAccount(budget_id, account_id, since_date, type, last_knowledge_of_server, options) {
|
|
2845
2905
|
const localVarFetchArgs = exports.TransactionsApiFetchParamCreator(configuration).getTransactionsByAccount(budget_id, account_id, since_date, type, last_knowledge_of_server, options);
|
|
2846
2906
|
return (fetchFunction = fetch) => {
|
|
2847
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2907
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2848
2908
|
if (response.status >= 200 && response.status < 300) {
|
|
2849
|
-
|
|
2909
|
+
const apiResponse = yield response.json();
|
|
2910
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2911
|
+
return apiResponse;
|
|
2850
2912
|
}
|
|
2851
2913
|
else {
|
|
2852
2914
|
return response.json().then((e) => {
|
|
2853
2915
|
return Promise.reject(e);
|
|
2854
2916
|
});
|
|
2855
2917
|
}
|
|
2856
|
-
});
|
|
2918
|
+
}));
|
|
2857
2919
|
};
|
|
2858
2920
|
},
|
|
2859
2921
|
/**
|
|
@@ -2870,16 +2932,18 @@ exports.TransactionsApiFp = function (configuration) {
|
|
|
2870
2932
|
getTransactionsByCategory(budget_id, category_id, since_date, type, last_knowledge_of_server, options) {
|
|
2871
2933
|
const localVarFetchArgs = exports.TransactionsApiFetchParamCreator(configuration).getTransactionsByCategory(budget_id, category_id, since_date, type, last_knowledge_of_server, options);
|
|
2872
2934
|
return (fetchFunction = fetch) => {
|
|
2873
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2935
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2874
2936
|
if (response.status >= 200 && response.status < 300) {
|
|
2875
|
-
|
|
2937
|
+
const apiResponse = yield response.json();
|
|
2938
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2939
|
+
return apiResponse;
|
|
2876
2940
|
}
|
|
2877
2941
|
else {
|
|
2878
2942
|
return response.json().then((e) => {
|
|
2879
2943
|
return Promise.reject(e);
|
|
2880
2944
|
});
|
|
2881
2945
|
}
|
|
2882
|
-
});
|
|
2946
|
+
}));
|
|
2883
2947
|
};
|
|
2884
2948
|
},
|
|
2885
2949
|
/**
|
|
@@ -2896,16 +2960,18 @@ exports.TransactionsApiFp = function (configuration) {
|
|
|
2896
2960
|
getTransactionsByPayee(budget_id, payee_id, since_date, type, last_knowledge_of_server, options) {
|
|
2897
2961
|
const localVarFetchArgs = exports.TransactionsApiFetchParamCreator(configuration).getTransactionsByPayee(budget_id, payee_id, since_date, type, last_knowledge_of_server, options);
|
|
2898
2962
|
return (fetchFunction = fetch) => {
|
|
2899
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2963
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2900
2964
|
if (response.status >= 200 && response.status < 300) {
|
|
2901
|
-
|
|
2965
|
+
const apiResponse = yield response.json();
|
|
2966
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2967
|
+
return apiResponse;
|
|
2902
2968
|
}
|
|
2903
2969
|
else {
|
|
2904
2970
|
return response.json().then((e) => {
|
|
2905
2971
|
return Promise.reject(e);
|
|
2906
2972
|
});
|
|
2907
2973
|
}
|
|
2908
|
-
});
|
|
2974
|
+
}));
|
|
2909
2975
|
};
|
|
2910
2976
|
},
|
|
2911
2977
|
/**
|
|
@@ -2918,16 +2984,18 @@ exports.TransactionsApiFp = function (configuration) {
|
|
|
2918
2984
|
importTransactions(budget_id, options) {
|
|
2919
2985
|
const localVarFetchArgs = exports.TransactionsApiFetchParamCreator(configuration).importTransactions(budget_id, options);
|
|
2920
2986
|
return (fetchFunction = fetch) => {
|
|
2921
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2987
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2922
2988
|
if (response.status >= 200 && response.status < 300) {
|
|
2923
|
-
|
|
2989
|
+
const apiResponse = yield response.json();
|
|
2990
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2991
|
+
return apiResponse;
|
|
2924
2992
|
}
|
|
2925
2993
|
else {
|
|
2926
2994
|
return response.json().then((e) => {
|
|
2927
2995
|
return Promise.reject(e);
|
|
2928
2996
|
});
|
|
2929
2997
|
}
|
|
2930
|
-
});
|
|
2998
|
+
}));
|
|
2931
2999
|
};
|
|
2932
3000
|
},
|
|
2933
3001
|
/**
|
|
@@ -2942,16 +3010,18 @@ exports.TransactionsApiFp = function (configuration) {
|
|
|
2942
3010
|
updateTransaction(budget_id, transaction_id, data, options) {
|
|
2943
3011
|
const localVarFetchArgs = exports.TransactionsApiFetchParamCreator(configuration).updateTransaction(budget_id, transaction_id, data, options);
|
|
2944
3012
|
return (fetchFunction = fetch) => {
|
|
2945
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
3013
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2946
3014
|
if (response.status >= 200 && response.status < 300) {
|
|
2947
|
-
|
|
3015
|
+
const apiResponse = yield response.json();
|
|
3016
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
3017
|
+
return apiResponse;
|
|
2948
3018
|
}
|
|
2949
3019
|
else {
|
|
2950
3020
|
return response.json().then((e) => {
|
|
2951
3021
|
return Promise.reject(e);
|
|
2952
3022
|
});
|
|
2953
3023
|
}
|
|
2954
|
-
});
|
|
3024
|
+
}));
|
|
2955
3025
|
};
|
|
2956
3026
|
},
|
|
2957
3027
|
/**
|
|
@@ -2965,16 +3035,18 @@ exports.TransactionsApiFp = function (configuration) {
|
|
|
2965
3035
|
updateTransactions(budget_id, data, options) {
|
|
2966
3036
|
const localVarFetchArgs = exports.TransactionsApiFetchParamCreator(configuration).updateTransactions(budget_id, data, options);
|
|
2967
3037
|
return (fetchFunction = fetch) => {
|
|
2968
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
3038
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2969
3039
|
if (response.status >= 200 && response.status < 300) {
|
|
2970
|
-
|
|
3040
|
+
const apiResponse = yield response.json();
|
|
3041
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
3042
|
+
return apiResponse;
|
|
2971
3043
|
}
|
|
2972
3044
|
else {
|
|
2973
3045
|
return response.json().then((e) => {
|
|
2974
3046
|
return Promise.reject(e);
|
|
2975
3047
|
});
|
|
2976
3048
|
}
|
|
2977
|
-
});
|
|
3049
|
+
}));
|
|
2978
3050
|
};
|
|
2979
3051
|
},
|
|
2980
3052
|
};
|
|
@@ -3276,16 +3348,18 @@ exports.UserApiFp = function (configuration) {
|
|
|
3276
3348
|
getUser(options) {
|
|
3277
3349
|
const localVarFetchArgs = exports.UserApiFetchParamCreator(configuration).getUser(options);
|
|
3278
3350
|
return (fetchFunction = fetch) => {
|
|
3279
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
3351
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
3280
3352
|
if (response.status >= 200 && response.status < 300) {
|
|
3281
|
-
|
|
3353
|
+
const apiResponse = yield response.json();
|
|
3354
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
3355
|
+
return apiResponse;
|
|
3282
3356
|
}
|
|
3283
3357
|
else {
|
|
3284
3358
|
return response.json().then((e) => {
|
|
3285
3359
|
return Promise.reject(e);
|
|
3286
3360
|
});
|
|
3287
3361
|
}
|
|
3288
|
-
});
|
|
3362
|
+
}));
|
|
3289
3363
|
};
|
|
3290
3364
|
},
|
|
3291
3365
|
};
|