ynab 1.21.0 → 1.27.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 +307 -91
- package/dist/api.js +160 -91
- package/dist/browser/ynab.js +1 -1
- package/dist/esm/api.d.ts +307 -91
- package/dist/esm/api.js +577 -301
- package/dist/esm/transactionsApi.d.ts +19 -2
- package/dist/esm/transactionsApi.js +13 -0
- package/dist/transactionsApi.d.ts +19 -2
- package/dist/transactionsApi.js +13 -0
- package/package.json +1 -4
package/dist/api.js
CHANGED
|
@@ -11,13 +11,22 @@
|
|
|
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;
|
|
16
25
|
const url = require("url");
|
|
17
26
|
// Requiring portable-fetch like this ensures that we have a global fetch function
|
|
18
27
|
// That makes it easier to override with modules like fetch-mock
|
|
19
28
|
require("portable-fetch");
|
|
20
|
-
const USER_AGENT = "api_client/js/1.
|
|
29
|
+
const USER_AGENT = "api_client/js/1.24.0";
|
|
21
30
|
function convertDateToFullDateStringFormat(date) {
|
|
22
31
|
// Convert to RFC 3339 "full-date" format, like "2017-11-27"
|
|
23
32
|
if (date instanceof Date) {
|
|
@@ -511,16 +520,18 @@ exports.AccountsApiFp = function (configuration) {
|
|
|
511
520
|
createAccount(budget_id, data, options) {
|
|
512
521
|
const localVarFetchArgs = exports.AccountsApiFetchParamCreator(configuration).createAccount(budget_id, data, options);
|
|
513
522
|
return (fetchFunction = fetch) => {
|
|
514
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
523
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
515
524
|
if (response.status >= 200 && response.status < 300) {
|
|
516
|
-
|
|
525
|
+
const apiResponse = yield response.json();
|
|
526
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
527
|
+
return apiResponse;
|
|
517
528
|
}
|
|
518
529
|
else {
|
|
519
530
|
return response.json().then((e) => {
|
|
520
531
|
return Promise.reject(e);
|
|
521
532
|
});
|
|
522
533
|
}
|
|
523
|
-
});
|
|
534
|
+
}));
|
|
524
535
|
};
|
|
525
536
|
},
|
|
526
537
|
/**
|
|
@@ -534,16 +545,18 @@ exports.AccountsApiFp = function (configuration) {
|
|
|
534
545
|
getAccountById(budget_id, account_id, options) {
|
|
535
546
|
const localVarFetchArgs = exports.AccountsApiFetchParamCreator(configuration).getAccountById(budget_id, account_id, options);
|
|
536
547
|
return (fetchFunction = fetch) => {
|
|
537
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
548
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
538
549
|
if (response.status >= 200 && response.status < 300) {
|
|
539
|
-
|
|
550
|
+
const apiResponse = yield response.json();
|
|
551
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
552
|
+
return apiResponse;
|
|
540
553
|
}
|
|
541
554
|
else {
|
|
542
555
|
return response.json().then((e) => {
|
|
543
556
|
return Promise.reject(e);
|
|
544
557
|
});
|
|
545
558
|
}
|
|
546
|
-
});
|
|
559
|
+
}));
|
|
547
560
|
};
|
|
548
561
|
},
|
|
549
562
|
/**
|
|
@@ -557,16 +570,18 @@ exports.AccountsApiFp = function (configuration) {
|
|
|
557
570
|
getAccounts(budget_id, last_knowledge_of_server, options) {
|
|
558
571
|
const localVarFetchArgs = exports.AccountsApiFetchParamCreator(configuration).getAccounts(budget_id, last_knowledge_of_server, options);
|
|
559
572
|
return (fetchFunction = fetch) => {
|
|
560
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
573
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
561
574
|
if (response.status >= 200 && response.status < 300) {
|
|
562
|
-
|
|
575
|
+
const apiResponse = yield response.json();
|
|
576
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
577
|
+
return apiResponse;
|
|
563
578
|
}
|
|
564
579
|
else {
|
|
565
580
|
return response.json().then((e) => {
|
|
566
581
|
return Promise.reject(e);
|
|
567
582
|
});
|
|
568
583
|
}
|
|
569
|
-
});
|
|
584
|
+
}));
|
|
570
585
|
};
|
|
571
586
|
},
|
|
572
587
|
};
|
|
@@ -786,16 +801,18 @@ exports.BudgetsApiFp = function (configuration) {
|
|
|
786
801
|
getBudgetById(budget_id, last_knowledge_of_server, options) {
|
|
787
802
|
const localVarFetchArgs = exports.BudgetsApiFetchParamCreator(configuration).getBudgetById(budget_id, last_knowledge_of_server, options);
|
|
788
803
|
return (fetchFunction = fetch) => {
|
|
789
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
804
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
790
805
|
if (response.status >= 200 && response.status < 300) {
|
|
791
|
-
|
|
806
|
+
const apiResponse = yield response.json();
|
|
807
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
808
|
+
return apiResponse;
|
|
792
809
|
}
|
|
793
810
|
else {
|
|
794
811
|
return response.json().then((e) => {
|
|
795
812
|
return Promise.reject(e);
|
|
796
813
|
});
|
|
797
814
|
}
|
|
798
|
-
});
|
|
815
|
+
}));
|
|
799
816
|
};
|
|
800
817
|
},
|
|
801
818
|
/**
|
|
@@ -808,16 +825,18 @@ exports.BudgetsApiFp = function (configuration) {
|
|
|
808
825
|
getBudgetSettingsById(budget_id, options) {
|
|
809
826
|
const localVarFetchArgs = exports.BudgetsApiFetchParamCreator(configuration).getBudgetSettingsById(budget_id, options);
|
|
810
827
|
return (fetchFunction = fetch) => {
|
|
811
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
828
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
812
829
|
if (response.status >= 200 && response.status < 300) {
|
|
813
|
-
|
|
830
|
+
const apiResponse = yield response.json();
|
|
831
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
832
|
+
return apiResponse;
|
|
814
833
|
}
|
|
815
834
|
else {
|
|
816
835
|
return response.json().then((e) => {
|
|
817
836
|
return Promise.reject(e);
|
|
818
837
|
});
|
|
819
838
|
}
|
|
820
|
-
});
|
|
839
|
+
}));
|
|
821
840
|
};
|
|
822
841
|
},
|
|
823
842
|
/**
|
|
@@ -830,16 +849,18 @@ exports.BudgetsApiFp = function (configuration) {
|
|
|
830
849
|
getBudgets(include_accounts, options) {
|
|
831
850
|
const localVarFetchArgs = exports.BudgetsApiFetchParamCreator(configuration).getBudgets(include_accounts, options);
|
|
832
851
|
return (fetchFunction = fetch) => {
|
|
833
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
852
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
834
853
|
if (response.status >= 200 && response.status < 300) {
|
|
835
|
-
|
|
854
|
+
const apiResponse = yield response.json();
|
|
855
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
856
|
+
return apiResponse;
|
|
836
857
|
}
|
|
837
858
|
else {
|
|
838
859
|
return response.json().then((e) => {
|
|
839
860
|
return Promise.reject(e);
|
|
840
861
|
});
|
|
841
862
|
}
|
|
842
|
-
});
|
|
863
|
+
}));
|
|
843
864
|
};
|
|
844
865
|
},
|
|
845
866
|
};
|
|
@@ -1128,16 +1149,18 @@ exports.CategoriesApiFp = function (configuration) {
|
|
|
1128
1149
|
getCategories(budget_id, last_knowledge_of_server, options) {
|
|
1129
1150
|
const localVarFetchArgs = exports.CategoriesApiFetchParamCreator(configuration).getCategories(budget_id, last_knowledge_of_server, options);
|
|
1130
1151
|
return (fetchFunction = fetch) => {
|
|
1131
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1152
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1132
1153
|
if (response.status >= 200 && response.status < 300) {
|
|
1133
|
-
|
|
1154
|
+
const apiResponse = yield response.json();
|
|
1155
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1156
|
+
return apiResponse;
|
|
1134
1157
|
}
|
|
1135
1158
|
else {
|
|
1136
1159
|
return response.json().then((e) => {
|
|
1137
1160
|
return Promise.reject(e);
|
|
1138
1161
|
});
|
|
1139
1162
|
}
|
|
1140
|
-
});
|
|
1163
|
+
}));
|
|
1141
1164
|
};
|
|
1142
1165
|
},
|
|
1143
1166
|
/**
|
|
@@ -1151,16 +1174,18 @@ exports.CategoriesApiFp = function (configuration) {
|
|
|
1151
1174
|
getCategoryById(budget_id, category_id, options) {
|
|
1152
1175
|
const localVarFetchArgs = exports.CategoriesApiFetchParamCreator(configuration).getCategoryById(budget_id, category_id, options);
|
|
1153
1176
|
return (fetchFunction = fetch) => {
|
|
1154
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1177
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1155
1178
|
if (response.status >= 200 && response.status < 300) {
|
|
1156
|
-
|
|
1179
|
+
const apiResponse = yield response.json();
|
|
1180
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1181
|
+
return apiResponse;
|
|
1157
1182
|
}
|
|
1158
1183
|
else {
|
|
1159
1184
|
return response.json().then((e) => {
|
|
1160
1185
|
return Promise.reject(e);
|
|
1161
1186
|
});
|
|
1162
1187
|
}
|
|
1163
|
-
});
|
|
1188
|
+
}));
|
|
1164
1189
|
};
|
|
1165
1190
|
},
|
|
1166
1191
|
/**
|
|
@@ -1175,16 +1200,18 @@ exports.CategoriesApiFp = function (configuration) {
|
|
|
1175
1200
|
getMonthCategoryById(budget_id, month, category_id, options) {
|
|
1176
1201
|
const localVarFetchArgs = exports.CategoriesApiFetchParamCreator(configuration).getMonthCategoryById(budget_id, month, category_id, options);
|
|
1177
1202
|
return (fetchFunction = fetch) => {
|
|
1178
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1203
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1179
1204
|
if (response.status >= 200 && response.status < 300) {
|
|
1180
|
-
|
|
1205
|
+
const apiResponse = yield response.json();
|
|
1206
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1207
|
+
return apiResponse;
|
|
1181
1208
|
}
|
|
1182
1209
|
else {
|
|
1183
1210
|
return response.json().then((e) => {
|
|
1184
1211
|
return Promise.reject(e);
|
|
1185
1212
|
});
|
|
1186
1213
|
}
|
|
1187
|
-
});
|
|
1214
|
+
}));
|
|
1188
1215
|
};
|
|
1189
1216
|
},
|
|
1190
1217
|
/**
|
|
@@ -1200,16 +1227,18 @@ exports.CategoriesApiFp = function (configuration) {
|
|
|
1200
1227
|
updateMonthCategory(budget_id, month, category_id, data, options) {
|
|
1201
1228
|
const localVarFetchArgs = exports.CategoriesApiFetchParamCreator(configuration).updateMonthCategory(budget_id, month, category_id, data, options);
|
|
1202
1229
|
return (fetchFunction = fetch) => {
|
|
1203
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1230
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1204
1231
|
if (response.status >= 200 && response.status < 300) {
|
|
1205
|
-
|
|
1232
|
+
const apiResponse = yield response.json();
|
|
1233
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1234
|
+
return apiResponse;
|
|
1206
1235
|
}
|
|
1207
1236
|
else {
|
|
1208
1237
|
return response.json().then((e) => {
|
|
1209
1238
|
return Promise.reject(e);
|
|
1210
1239
|
});
|
|
1211
1240
|
}
|
|
1212
|
-
});
|
|
1241
|
+
}));
|
|
1213
1242
|
};
|
|
1214
1243
|
},
|
|
1215
1244
|
};
|
|
@@ -1395,16 +1424,18 @@ exports.DeprecatedApiFp = function (configuration) {
|
|
|
1395
1424
|
bulkCreateTransactions(budget_id, transactions, options) {
|
|
1396
1425
|
const localVarFetchArgs = exports.DeprecatedApiFetchParamCreator(configuration).bulkCreateTransactions(budget_id, transactions, options);
|
|
1397
1426
|
return (fetchFunction = fetch) => {
|
|
1398
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1427
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1399
1428
|
if (response.status >= 200 && response.status < 300) {
|
|
1400
|
-
|
|
1429
|
+
const apiResponse = yield response.json();
|
|
1430
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1431
|
+
return apiResponse;
|
|
1401
1432
|
}
|
|
1402
1433
|
else {
|
|
1403
1434
|
return response.json().then((e) => {
|
|
1404
1435
|
return Promise.reject(e);
|
|
1405
1436
|
});
|
|
1406
1437
|
}
|
|
1407
|
-
});
|
|
1438
|
+
}));
|
|
1408
1439
|
};
|
|
1409
1440
|
},
|
|
1410
1441
|
};
|
|
@@ -1552,16 +1583,18 @@ exports.MonthsApiFp = function (configuration) {
|
|
|
1552
1583
|
getBudgetMonth(budget_id, month, options) {
|
|
1553
1584
|
const localVarFetchArgs = exports.MonthsApiFetchParamCreator(configuration).getBudgetMonth(budget_id, month, options);
|
|
1554
1585
|
return (fetchFunction = fetch) => {
|
|
1555
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1586
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1556
1587
|
if (response.status >= 200 && response.status < 300) {
|
|
1557
|
-
|
|
1588
|
+
const apiResponse = yield response.json();
|
|
1589
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1590
|
+
return apiResponse;
|
|
1558
1591
|
}
|
|
1559
1592
|
else {
|
|
1560
1593
|
return response.json().then((e) => {
|
|
1561
1594
|
return Promise.reject(e);
|
|
1562
1595
|
});
|
|
1563
1596
|
}
|
|
1564
|
-
});
|
|
1597
|
+
}));
|
|
1565
1598
|
};
|
|
1566
1599
|
},
|
|
1567
1600
|
/**
|
|
@@ -1575,16 +1608,18 @@ exports.MonthsApiFp = function (configuration) {
|
|
|
1575
1608
|
getBudgetMonths(budget_id, last_knowledge_of_server, options) {
|
|
1576
1609
|
const localVarFetchArgs = exports.MonthsApiFetchParamCreator(configuration).getBudgetMonths(budget_id, last_knowledge_of_server, options);
|
|
1577
1610
|
return (fetchFunction = fetch) => {
|
|
1578
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1611
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1579
1612
|
if (response.status >= 200 && response.status < 300) {
|
|
1580
|
-
|
|
1613
|
+
const apiResponse = yield response.json();
|
|
1614
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1615
|
+
return apiResponse;
|
|
1581
1616
|
}
|
|
1582
1617
|
else {
|
|
1583
1618
|
return response.json().then((e) => {
|
|
1584
1619
|
return Promise.reject(e);
|
|
1585
1620
|
});
|
|
1586
1621
|
}
|
|
1587
|
-
});
|
|
1622
|
+
}));
|
|
1588
1623
|
};
|
|
1589
1624
|
},
|
|
1590
1625
|
};
|
|
@@ -1791,16 +1826,18 @@ exports.PayeeLocationsApiFp = function (configuration) {
|
|
|
1791
1826
|
getPayeeLocationById(budget_id, payee_location_id, options) {
|
|
1792
1827
|
const localVarFetchArgs = exports.PayeeLocationsApiFetchParamCreator(configuration).getPayeeLocationById(budget_id, payee_location_id, options);
|
|
1793
1828
|
return (fetchFunction = fetch) => {
|
|
1794
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1829
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1795
1830
|
if (response.status >= 200 && response.status < 300) {
|
|
1796
|
-
|
|
1831
|
+
const apiResponse = yield response.json();
|
|
1832
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1833
|
+
return apiResponse;
|
|
1797
1834
|
}
|
|
1798
1835
|
else {
|
|
1799
1836
|
return response.json().then((e) => {
|
|
1800
1837
|
return Promise.reject(e);
|
|
1801
1838
|
});
|
|
1802
1839
|
}
|
|
1803
|
-
});
|
|
1840
|
+
}));
|
|
1804
1841
|
};
|
|
1805
1842
|
},
|
|
1806
1843
|
/**
|
|
@@ -1813,16 +1850,18 @@ exports.PayeeLocationsApiFp = function (configuration) {
|
|
|
1813
1850
|
getPayeeLocations(budget_id, options) {
|
|
1814
1851
|
const localVarFetchArgs = exports.PayeeLocationsApiFetchParamCreator(configuration).getPayeeLocations(budget_id, options);
|
|
1815
1852
|
return (fetchFunction = fetch) => {
|
|
1816
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1853
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1817
1854
|
if (response.status >= 200 && response.status < 300) {
|
|
1818
|
-
|
|
1855
|
+
const apiResponse = yield response.json();
|
|
1856
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1857
|
+
return apiResponse;
|
|
1819
1858
|
}
|
|
1820
1859
|
else {
|
|
1821
1860
|
return response.json().then((e) => {
|
|
1822
1861
|
return Promise.reject(e);
|
|
1823
1862
|
});
|
|
1824
1863
|
}
|
|
1825
|
-
});
|
|
1864
|
+
}));
|
|
1826
1865
|
};
|
|
1827
1866
|
},
|
|
1828
1867
|
/**
|
|
@@ -1836,16 +1875,18 @@ exports.PayeeLocationsApiFp = function (configuration) {
|
|
|
1836
1875
|
getPayeeLocationsByPayee(budget_id, payee_id, options) {
|
|
1837
1876
|
const localVarFetchArgs = exports.PayeeLocationsApiFetchParamCreator(configuration).getPayeeLocationsByPayee(budget_id, payee_id, options);
|
|
1838
1877
|
return (fetchFunction = fetch) => {
|
|
1839
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
1878
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1840
1879
|
if (response.status >= 200 && response.status < 300) {
|
|
1841
|
-
|
|
1880
|
+
const apiResponse = yield response.json();
|
|
1881
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
1882
|
+
return apiResponse;
|
|
1842
1883
|
}
|
|
1843
1884
|
else {
|
|
1844
1885
|
return response.json().then((e) => {
|
|
1845
1886
|
return Promise.reject(e);
|
|
1846
1887
|
});
|
|
1847
1888
|
}
|
|
1848
|
-
});
|
|
1889
|
+
}));
|
|
1849
1890
|
};
|
|
1850
1891
|
},
|
|
1851
1892
|
};
|
|
@@ -2037,16 +2078,18 @@ exports.PayeesApiFp = function (configuration) {
|
|
|
2037
2078
|
getPayeeById(budget_id, payee_id, options) {
|
|
2038
2079
|
const localVarFetchArgs = exports.PayeesApiFetchParamCreator(configuration).getPayeeById(budget_id, payee_id, options);
|
|
2039
2080
|
return (fetchFunction = fetch) => {
|
|
2040
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2081
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2041
2082
|
if (response.status >= 200 && response.status < 300) {
|
|
2042
|
-
|
|
2083
|
+
const apiResponse = yield response.json();
|
|
2084
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2085
|
+
return apiResponse;
|
|
2043
2086
|
}
|
|
2044
2087
|
else {
|
|
2045
2088
|
return response.json().then((e) => {
|
|
2046
2089
|
return Promise.reject(e);
|
|
2047
2090
|
});
|
|
2048
2091
|
}
|
|
2049
|
-
});
|
|
2092
|
+
}));
|
|
2050
2093
|
};
|
|
2051
2094
|
},
|
|
2052
2095
|
/**
|
|
@@ -2060,16 +2103,18 @@ exports.PayeesApiFp = function (configuration) {
|
|
|
2060
2103
|
getPayees(budget_id, last_knowledge_of_server, options) {
|
|
2061
2104
|
const localVarFetchArgs = exports.PayeesApiFetchParamCreator(configuration).getPayees(budget_id, last_knowledge_of_server, options);
|
|
2062
2105
|
return (fetchFunction = fetch) => {
|
|
2063
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2106
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2064
2107
|
if (response.status >= 200 && response.status < 300) {
|
|
2065
|
-
|
|
2108
|
+
const apiResponse = yield response.json();
|
|
2109
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2110
|
+
return apiResponse;
|
|
2066
2111
|
}
|
|
2067
2112
|
else {
|
|
2068
2113
|
return response.json().then((e) => {
|
|
2069
2114
|
return Promise.reject(e);
|
|
2070
2115
|
});
|
|
2071
2116
|
}
|
|
2072
|
-
});
|
|
2117
|
+
}));
|
|
2073
2118
|
};
|
|
2074
2119
|
},
|
|
2075
2120
|
};
|
|
@@ -2240,16 +2285,18 @@ exports.ScheduledTransactionsApiFp = function (configuration) {
|
|
|
2240
2285
|
getScheduledTransactionById(budget_id, scheduled_transaction_id, options) {
|
|
2241
2286
|
const localVarFetchArgs = exports.ScheduledTransactionsApiFetchParamCreator(configuration).getScheduledTransactionById(budget_id, scheduled_transaction_id, options);
|
|
2242
2287
|
return (fetchFunction = fetch) => {
|
|
2243
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2288
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2244
2289
|
if (response.status >= 200 && response.status < 300) {
|
|
2245
|
-
|
|
2290
|
+
const apiResponse = yield response.json();
|
|
2291
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2292
|
+
return apiResponse;
|
|
2246
2293
|
}
|
|
2247
2294
|
else {
|
|
2248
2295
|
return response.json().then((e) => {
|
|
2249
2296
|
return Promise.reject(e);
|
|
2250
2297
|
});
|
|
2251
2298
|
}
|
|
2252
|
-
});
|
|
2299
|
+
}));
|
|
2253
2300
|
};
|
|
2254
2301
|
},
|
|
2255
2302
|
/**
|
|
@@ -2263,16 +2310,18 @@ exports.ScheduledTransactionsApiFp = function (configuration) {
|
|
|
2263
2310
|
getScheduledTransactions(budget_id, last_knowledge_of_server, options) {
|
|
2264
2311
|
const localVarFetchArgs = exports.ScheduledTransactionsApiFetchParamCreator(configuration).getScheduledTransactions(budget_id, last_knowledge_of_server, options);
|
|
2265
2312
|
return (fetchFunction = fetch) => {
|
|
2266
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2313
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2267
2314
|
if (response.status >= 200 && response.status < 300) {
|
|
2268
|
-
|
|
2315
|
+
const apiResponse = yield response.json();
|
|
2316
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2317
|
+
return apiResponse;
|
|
2269
2318
|
}
|
|
2270
2319
|
else {
|
|
2271
2320
|
return response.json().then((e) => {
|
|
2272
2321
|
return Promise.reject(e);
|
|
2273
2322
|
});
|
|
2274
2323
|
}
|
|
2275
|
-
});
|
|
2324
|
+
}));
|
|
2276
2325
|
};
|
|
2277
2326
|
},
|
|
2278
2327
|
};
|
|
@@ -2770,16 +2819,18 @@ exports.TransactionsApiFp = function (configuration) {
|
|
|
2770
2819
|
createTransaction(budget_id, data, options) {
|
|
2771
2820
|
const localVarFetchArgs = exports.TransactionsApiFetchParamCreator(configuration).createTransaction(budget_id, data, options);
|
|
2772
2821
|
return (fetchFunction = fetch) => {
|
|
2773
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2822
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2774
2823
|
if (response.status >= 200 && response.status < 300) {
|
|
2775
|
-
|
|
2824
|
+
const apiResponse = yield response.json();
|
|
2825
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2826
|
+
return apiResponse;
|
|
2776
2827
|
}
|
|
2777
2828
|
else {
|
|
2778
2829
|
return response.json().then((e) => {
|
|
2779
2830
|
return Promise.reject(e);
|
|
2780
2831
|
});
|
|
2781
2832
|
}
|
|
2782
|
-
});
|
|
2833
|
+
}));
|
|
2783
2834
|
};
|
|
2784
2835
|
},
|
|
2785
2836
|
/**
|
|
@@ -2793,16 +2844,18 @@ exports.TransactionsApiFp = function (configuration) {
|
|
|
2793
2844
|
getTransactionById(budget_id, transaction_id, options) {
|
|
2794
2845
|
const localVarFetchArgs = exports.TransactionsApiFetchParamCreator(configuration).getTransactionById(budget_id, transaction_id, options);
|
|
2795
2846
|
return (fetchFunction = fetch) => {
|
|
2796
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2847
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2797
2848
|
if (response.status >= 200 && response.status < 300) {
|
|
2798
|
-
|
|
2849
|
+
const apiResponse = yield response.json();
|
|
2850
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2851
|
+
return apiResponse;
|
|
2799
2852
|
}
|
|
2800
2853
|
else {
|
|
2801
2854
|
return response.json().then((e) => {
|
|
2802
2855
|
return Promise.reject(e);
|
|
2803
2856
|
});
|
|
2804
2857
|
}
|
|
2805
|
-
});
|
|
2858
|
+
}));
|
|
2806
2859
|
};
|
|
2807
2860
|
},
|
|
2808
2861
|
/**
|
|
@@ -2818,16 +2871,18 @@ exports.TransactionsApiFp = function (configuration) {
|
|
|
2818
2871
|
getTransactions(budget_id, since_date, type, last_knowledge_of_server, options) {
|
|
2819
2872
|
const localVarFetchArgs = exports.TransactionsApiFetchParamCreator(configuration).getTransactions(budget_id, since_date, type, last_knowledge_of_server, options);
|
|
2820
2873
|
return (fetchFunction = fetch) => {
|
|
2821
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2874
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2822
2875
|
if (response.status >= 200 && response.status < 300) {
|
|
2823
|
-
|
|
2876
|
+
const apiResponse = yield response.json();
|
|
2877
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2878
|
+
return apiResponse;
|
|
2824
2879
|
}
|
|
2825
2880
|
else {
|
|
2826
2881
|
return response.json().then((e) => {
|
|
2827
2882
|
return Promise.reject(e);
|
|
2828
2883
|
});
|
|
2829
2884
|
}
|
|
2830
|
-
});
|
|
2885
|
+
}));
|
|
2831
2886
|
};
|
|
2832
2887
|
},
|
|
2833
2888
|
/**
|
|
@@ -2844,16 +2899,18 @@ exports.TransactionsApiFp = function (configuration) {
|
|
|
2844
2899
|
getTransactionsByAccount(budget_id, account_id, since_date, type, last_knowledge_of_server, options) {
|
|
2845
2900
|
const localVarFetchArgs = exports.TransactionsApiFetchParamCreator(configuration).getTransactionsByAccount(budget_id, account_id, since_date, type, last_knowledge_of_server, options);
|
|
2846
2901
|
return (fetchFunction = fetch) => {
|
|
2847
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2902
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2848
2903
|
if (response.status >= 200 && response.status < 300) {
|
|
2849
|
-
|
|
2904
|
+
const apiResponse = yield response.json();
|
|
2905
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2906
|
+
return apiResponse;
|
|
2850
2907
|
}
|
|
2851
2908
|
else {
|
|
2852
2909
|
return response.json().then((e) => {
|
|
2853
2910
|
return Promise.reject(e);
|
|
2854
2911
|
});
|
|
2855
2912
|
}
|
|
2856
|
-
});
|
|
2913
|
+
}));
|
|
2857
2914
|
};
|
|
2858
2915
|
},
|
|
2859
2916
|
/**
|
|
@@ -2870,16 +2927,18 @@ exports.TransactionsApiFp = function (configuration) {
|
|
|
2870
2927
|
getTransactionsByCategory(budget_id, category_id, since_date, type, last_knowledge_of_server, options) {
|
|
2871
2928
|
const localVarFetchArgs = exports.TransactionsApiFetchParamCreator(configuration).getTransactionsByCategory(budget_id, category_id, since_date, type, last_knowledge_of_server, options);
|
|
2872
2929
|
return (fetchFunction = fetch) => {
|
|
2873
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2930
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2874
2931
|
if (response.status >= 200 && response.status < 300) {
|
|
2875
|
-
|
|
2932
|
+
const apiResponse = yield response.json();
|
|
2933
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2934
|
+
return apiResponse;
|
|
2876
2935
|
}
|
|
2877
2936
|
else {
|
|
2878
2937
|
return response.json().then((e) => {
|
|
2879
2938
|
return Promise.reject(e);
|
|
2880
2939
|
});
|
|
2881
2940
|
}
|
|
2882
|
-
});
|
|
2941
|
+
}));
|
|
2883
2942
|
};
|
|
2884
2943
|
},
|
|
2885
2944
|
/**
|
|
@@ -2896,16 +2955,18 @@ exports.TransactionsApiFp = function (configuration) {
|
|
|
2896
2955
|
getTransactionsByPayee(budget_id, payee_id, since_date, type, last_knowledge_of_server, options) {
|
|
2897
2956
|
const localVarFetchArgs = exports.TransactionsApiFetchParamCreator(configuration).getTransactionsByPayee(budget_id, payee_id, since_date, type, last_knowledge_of_server, options);
|
|
2898
2957
|
return (fetchFunction = fetch) => {
|
|
2899
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2958
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2900
2959
|
if (response.status >= 200 && response.status < 300) {
|
|
2901
|
-
|
|
2960
|
+
const apiResponse = yield response.json();
|
|
2961
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2962
|
+
return apiResponse;
|
|
2902
2963
|
}
|
|
2903
2964
|
else {
|
|
2904
2965
|
return response.json().then((e) => {
|
|
2905
2966
|
return Promise.reject(e);
|
|
2906
2967
|
});
|
|
2907
2968
|
}
|
|
2908
|
-
});
|
|
2969
|
+
}));
|
|
2909
2970
|
};
|
|
2910
2971
|
},
|
|
2911
2972
|
/**
|
|
@@ -2918,16 +2979,18 @@ exports.TransactionsApiFp = function (configuration) {
|
|
|
2918
2979
|
importTransactions(budget_id, options) {
|
|
2919
2980
|
const localVarFetchArgs = exports.TransactionsApiFetchParamCreator(configuration).importTransactions(budget_id, options);
|
|
2920
2981
|
return (fetchFunction = fetch) => {
|
|
2921
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2982
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2922
2983
|
if (response.status >= 200 && response.status < 300) {
|
|
2923
|
-
|
|
2984
|
+
const apiResponse = yield response.json();
|
|
2985
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
2986
|
+
return apiResponse;
|
|
2924
2987
|
}
|
|
2925
2988
|
else {
|
|
2926
2989
|
return response.json().then((e) => {
|
|
2927
2990
|
return Promise.reject(e);
|
|
2928
2991
|
});
|
|
2929
2992
|
}
|
|
2930
|
-
});
|
|
2993
|
+
}));
|
|
2931
2994
|
};
|
|
2932
2995
|
},
|
|
2933
2996
|
/**
|
|
@@ -2942,16 +3005,18 @@ exports.TransactionsApiFp = function (configuration) {
|
|
|
2942
3005
|
updateTransaction(budget_id, transaction_id, data, options) {
|
|
2943
3006
|
const localVarFetchArgs = exports.TransactionsApiFetchParamCreator(configuration).updateTransaction(budget_id, transaction_id, data, options);
|
|
2944
3007
|
return (fetchFunction = fetch) => {
|
|
2945
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
3008
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2946
3009
|
if (response.status >= 200 && response.status < 300) {
|
|
2947
|
-
|
|
3010
|
+
const apiResponse = yield response.json();
|
|
3011
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
3012
|
+
return apiResponse;
|
|
2948
3013
|
}
|
|
2949
3014
|
else {
|
|
2950
3015
|
return response.json().then((e) => {
|
|
2951
3016
|
return Promise.reject(e);
|
|
2952
3017
|
});
|
|
2953
3018
|
}
|
|
2954
|
-
});
|
|
3019
|
+
}));
|
|
2955
3020
|
};
|
|
2956
3021
|
},
|
|
2957
3022
|
/**
|
|
@@ -2965,16 +3030,18 @@ exports.TransactionsApiFp = function (configuration) {
|
|
|
2965
3030
|
updateTransactions(budget_id, data, options) {
|
|
2966
3031
|
const localVarFetchArgs = exports.TransactionsApiFetchParamCreator(configuration).updateTransactions(budget_id, data, options);
|
|
2967
3032
|
return (fetchFunction = fetch) => {
|
|
2968
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
3033
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
2969
3034
|
if (response.status >= 200 && response.status < 300) {
|
|
2970
|
-
|
|
3035
|
+
const apiResponse = yield response.json();
|
|
3036
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
3037
|
+
return apiResponse;
|
|
2971
3038
|
}
|
|
2972
3039
|
else {
|
|
2973
3040
|
return response.json().then((e) => {
|
|
2974
3041
|
return Promise.reject(e);
|
|
2975
3042
|
});
|
|
2976
3043
|
}
|
|
2977
|
-
});
|
|
3044
|
+
}));
|
|
2978
3045
|
};
|
|
2979
3046
|
},
|
|
2980
3047
|
};
|
|
@@ -3276,16 +3343,18 @@ exports.UserApiFp = function (configuration) {
|
|
|
3276
3343
|
getUser(options) {
|
|
3277
3344
|
const localVarFetchArgs = exports.UserApiFetchParamCreator(configuration).getUser(options);
|
|
3278
3345
|
return (fetchFunction = fetch) => {
|
|
3279
|
-
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
3346
|
+
return fetchFunction(configuration.basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
3280
3347
|
if (response.status >= 200 && response.status < 300) {
|
|
3281
|
-
|
|
3348
|
+
const apiResponse = yield response.json();
|
|
3349
|
+
apiResponse.rateLimit = response.headers.get("X-Rate-Limit");
|
|
3350
|
+
return apiResponse;
|
|
3282
3351
|
}
|
|
3283
3352
|
else {
|
|
3284
3353
|
return response.json().then((e) => {
|
|
3285
3354
|
return Promise.reject(e);
|
|
3286
3355
|
});
|
|
3287
3356
|
}
|
|
3288
|
-
});
|
|
3357
|
+
}));
|
|
3289
3358
|
};
|
|
3290
3359
|
},
|
|
3291
3360
|
};
|