xero-node 4.15.0 → 4.18.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 -1
- package/dist/XeroClient.d.ts +1 -0
- package/dist/XeroClient.js +2 -0
- package/dist/XeroClient.js.map +1 -1
- package/dist/gen/api/accountingApi.d.ts +7 -4
- package/dist/gen/api/accountingApi.js +17 -5
- package/dist/gen/api/accountingApi.js.map +1 -1
- package/dist/gen/api/apis.d.ts +3 -1
- package/dist/gen/api/apis.js +3 -1
- package/dist/gen/api/apis.js.map +1 -1
- package/dist/gen/api/appStoreApi.d.ts +1 -1
- package/dist/gen/api/appStoreApi.js +2 -2
- package/dist/gen/api/assetApi.d.ts +1 -1
- package/dist/gen/api/assetApi.js +2 -2
- package/dist/gen/api/bankfeedsApi.d.ts +1 -1
- package/dist/gen/api/bankfeedsApi.js +2 -2
- package/dist/gen/api/filesApi.d.ts +1 -1
- package/dist/gen/api/filesApi.js +2 -2
- package/dist/gen/api/financeApi.d.ts +209 -0
- package/dist/gen/api/financeApi.js +789 -0
- package/dist/gen/api/financeApi.js.map +1 -0
- package/dist/gen/api/payrollAUApi.d.ts +8 -8
- package/dist/gen/api/payrollAUApi.js +9 -9
- package/dist/gen/api/payrollAUApi.js.map +1 -1
- package/dist/gen/api/payrollNZApi.d.ts +9 -7
- package/dist/gen/api/payrollNZApi.js +25 -17
- package/dist/gen/api/payrollNZApi.js.map +1 -1
- package/dist/gen/api/payrollUKApi.d.ts +7 -3
- package/dist/gen/api/payrollUKApi.js +20 -4
- package/dist/gen/api/payrollUKApi.js.map +1 -1
- package/dist/gen/api/projectApi.d.ts +1 -1
- package/dist/gen/api/projectApi.js +2 -2
- package/dist/gen/model/accounting/bankTransfer.d.ts +12 -0
- package/dist/gen/model/accounting/bankTransfer.js +15 -0
- package/dist/gen/model/accounting/bankTransfer.js.map +1 -1
- package/dist/gen/model/accounting/contact.d.ts +26 -0
- package/dist/gen/model/accounting/contact.js +32 -0
- package/dist/gen/model/accounting/contact.js.map +1 -1
- package/dist/gen/model/accounting/models.js +2 -0
- package/dist/gen/model/accounting/models.js.map +1 -1
- package/dist/gen/model/appstore/models.js +2 -0
- package/dist/gen/model/appstore/models.js.map +1 -1
- package/dist/gen/model/appstore/plan.d.ts +2 -1
- package/dist/gen/model/appstore/plan.js +1 -0
- package/dist/gen/model/appstore/plan.js.map +1 -1
- package/dist/gen/model/appstore/product.d.ts +4 -0
- package/dist/gen/model/appstore/product.js +5 -0
- package/dist/gen/model/appstore/product.js.map +1 -1
- package/dist/gen/model/appstore/subscription.d.ts +8 -1
- package/dist/gen/model/appstore/subscription.js +9 -1
- package/dist/gen/model/appstore/subscription.js.map +1 -1
- package/dist/gen/model/appstore/subscriptionItem.d.ts +11 -0
- package/dist/gen/model/appstore/subscriptionItem.js +13 -0
- package/dist/gen/model/appstore/subscriptionItem.js.map +1 -1
- package/dist/gen/model/files/objectGroup.d.ts +1 -0
- package/dist/gen/model/files/objectGroup.js +1 -0
- package/dist/gen/model/files/objectGroup.js.map +1 -1
- package/dist/gen/model/files/objectType.d.ts +2 -1
- package/dist/gen/model/files/objectType.js +1 -0
- package/dist/gen/model/files/objectType.js.map +1 -1
- package/dist/gen/model/finance/accountUsage.d.ts +65 -0
- package/dist/gen/model/finance/accountUsage.js +78 -0
- package/dist/gen/model/finance/accountUsage.js.map +1 -0
- package/dist/gen/model/finance/accountUsageResponse.d.ts +27 -0
- package/dist/gen/model/finance/accountUsageResponse.js +33 -0
- package/dist/gen/model/finance/accountUsageResponse.js.map +1 -0
- package/dist/gen/model/finance/balanceSheetAccountDetail.d.ts +33 -0
- package/dist/gen/model/finance/balanceSheetAccountDetail.js +38 -0
- package/dist/gen/model/finance/balanceSheetAccountDetail.js.map +1 -0
- package/dist/gen/model/finance/balanceSheetAccountGroup.d.ts +19 -0
- package/dist/gen/model/finance/balanceSheetAccountGroup.js +23 -0
- package/dist/gen/model/finance/balanceSheetAccountGroup.js.map +1 -0
- package/dist/gen/model/finance/balanceSheetAccountType.d.ts +26 -0
- package/dist/gen/model/finance/balanceSheetAccountType.js +28 -0
- package/dist/gen/model/finance/balanceSheetAccountType.js.map +1 -0
- package/dist/gen/model/finance/balanceSheetResponse.d.ts +21 -0
- package/dist/gen/model/finance/balanceSheetResponse.js +33 -0
- package/dist/gen/model/finance/balanceSheetResponse.js.map +1 -0
- package/dist/gen/model/finance/bankStatementResponse.d.ts +17 -0
- package/dist/gen/model/finance/bankStatementResponse.js +23 -0
- package/dist/gen/model/finance/bankStatementResponse.js.map +1 -0
- package/dist/gen/model/finance/cashAccountResponse.d.ts +33 -0
- package/dist/gen/model/finance/cashAccountResponse.js +38 -0
- package/dist/gen/model/finance/cashAccountResponse.js.map +1 -0
- package/dist/gen/model/finance/cashBalance.d.ts +25 -0
- package/dist/gen/model/finance/cashBalance.js +28 -0
- package/dist/gen/model/finance/cashBalance.js.map +1 -0
- package/dist/gen/model/finance/cashValidationResponse.d.ts +27 -0
- package/dist/gen/model/finance/cashValidationResponse.js +38 -0
- package/dist/gen/model/finance/cashValidationResponse.js.map +1 -0
- package/dist/gen/model/finance/cashflowAccount.d.ts +41 -0
- package/dist/gen/model/finance/cashflowAccount.js +48 -0
- package/dist/gen/model/finance/cashflowAccount.js.map +1 -0
- package/dist/gen/model/finance/cashflowActivity.d.ts +23 -0
- package/dist/gen/model/finance/cashflowActivity.js +28 -0
- package/dist/gen/model/finance/cashflowActivity.js.map +1 -0
- package/dist/gen/model/finance/cashflowResponse.d.ts +28 -0
- package/dist/gen/model/finance/cashflowResponse.js +33 -0
- package/dist/gen/model/finance/cashflowResponse.js.map +1 -0
- package/dist/gen/model/finance/cashflowType.d.ts +26 -0
- package/dist/gen/model/finance/cashflowType.js +28 -0
- package/dist/gen/model/finance/cashflowType.js.map +1 -0
- package/dist/gen/model/finance/contactDetail.d.ts +33 -0
- package/dist/gen/model/finance/contactDetail.js +43 -0
- package/dist/gen/model/finance/contactDetail.js.map +1 -0
- package/dist/gen/model/finance/contactTotalDetail.d.ts +25 -0
- package/dist/gen/model/finance/contactTotalDetail.js +28 -0
- package/dist/gen/model/finance/contactTotalDetail.js.map +1 -0
- package/dist/gen/model/finance/contactTotalOther.d.ts +29 -0
- package/dist/gen/model/finance/contactTotalOther.js +33 -0
- package/dist/gen/model/finance/contactTotalOther.js.map +1 -0
- package/dist/gen/model/finance/currentStatementResponse.d.ts +37 -0
- package/dist/gen/model/finance/currentStatementResponse.js +43 -0
- package/dist/gen/model/finance/currentStatementResponse.js.map +1 -0
- package/dist/gen/model/finance/dataSourceResponse.d.ts +73 -0
- package/dist/gen/model/finance/dataSourceResponse.js +88 -0
- package/dist/gen/model/finance/dataSourceResponse.js.map +1 -0
- package/dist/gen/model/finance/historyRecordResponse.d.ts +33 -0
- package/dist/gen/model/finance/historyRecordResponse.js +38 -0
- package/dist/gen/model/finance/historyRecordResponse.js.map +1 -0
- package/dist/gen/model/finance/incomeByContactResponse.d.ts +33 -0
- package/dist/gen/model/finance/incomeByContactResponse.js +48 -0
- package/dist/gen/model/finance/incomeByContactResponse.js.map +1 -0
- package/dist/gen/model/finance/lockHistoryModel.d.ts +25 -0
- package/dist/gen/model/finance/lockHistoryModel.js +28 -0
- package/dist/gen/model/finance/lockHistoryModel.js.map +1 -0
- package/dist/gen/model/finance/lockHistoryResponse.d.ts +23 -0
- package/dist/gen/model/finance/lockHistoryResponse.js +28 -0
- package/dist/gen/model/finance/lockHistoryResponse.js.map +1 -0
- package/dist/gen/model/finance/manualJournalTotal.d.ts +17 -0
- package/dist/gen/model/finance/manualJournalTotal.js +18 -0
- package/dist/gen/model/finance/manualJournalTotal.js.map +1 -0
- package/dist/gen/model/finance/models.d.ts +77 -0
- package/dist/gen/model/finance/models.js +348 -0
- package/dist/gen/model/finance/models.js.map +1 -0
- package/dist/gen/model/finance/pnlAccount.d.ts +37 -0
- package/dist/gen/model/finance/pnlAccount.js +43 -0
- package/dist/gen/model/finance/pnlAccount.js.map +1 -0
- package/dist/gen/model/finance/pnlAccountClass.d.ts +22 -0
- package/dist/gen/model/finance/pnlAccountClass.js +23 -0
- package/dist/gen/model/finance/pnlAccountClass.js.map +1 -0
- package/dist/gen/model/finance/pnlAccountType.d.ts +26 -0
- package/dist/gen/model/finance/pnlAccountType.js +28 -0
- package/dist/gen/model/finance/pnlAccountType.js.map +1 -0
- package/dist/gen/model/finance/practiceResponse.d.ts +33 -0
- package/dist/gen/model/finance/practiceResponse.js +38 -0
- package/dist/gen/model/finance/practiceResponse.js.map +1 -0
- package/dist/gen/model/finance/problem.d.ts +18 -0
- package/dist/gen/model/finance/problem.js +33 -0
- package/dist/gen/model/finance/problem.js.map +1 -0
- package/dist/gen/model/finance/problemType.d.ts +7 -0
- package/dist/gen/model/finance/problemType.js +12 -0
- package/dist/gen/model/finance/problemType.js.map +1 -0
- package/dist/gen/model/finance/profitAndLossResponse.d.ts +28 -0
- package/dist/gen/model/finance/profitAndLossResponse.js +38 -0
- package/dist/gen/model/finance/profitAndLossResponse.js.map +1 -0
- package/dist/gen/model/finance/reportHistoryModel.d.ts +25 -0
- package/dist/gen/model/finance/reportHistoryModel.js +28 -0
- package/dist/gen/model/finance/reportHistoryModel.js.map +1 -0
- package/dist/gen/model/finance/reportHistoryResponse.d.ts +23 -0
- package/dist/gen/model/finance/reportHistoryResponse.js +28 -0
- package/dist/gen/model/finance/reportHistoryResponse.js.map +1 -0
- package/dist/gen/model/finance/statementBalanceResponse.d.ts +21 -0
- package/dist/gen/model/finance/statementBalanceResponse.js +23 -0
- package/dist/gen/model/finance/statementBalanceResponse.js.map +1 -0
- package/dist/gen/model/finance/statementLinesResponse.d.ts +79 -0
- package/dist/gen/model/finance/statementLinesResponse.js +98 -0
- package/dist/gen/model/finance/statementLinesResponse.js.map +1 -0
- package/dist/gen/model/finance/totalDetail.d.ts +25 -0
- package/dist/gen/model/finance/totalDetail.js +28 -0
- package/dist/gen/model/finance/totalDetail.js.map +1 -0
- package/dist/gen/model/finance/totalOther.d.ts +25 -0
- package/dist/gen/model/finance/totalOther.js +28 -0
- package/dist/gen/model/finance/totalOther.js.map +1 -0
- package/dist/gen/model/finance/trialBalanceAccount.d.ts +49 -0
- package/dist/gen/model/finance/trialBalanceAccount.js +63 -0
- package/dist/gen/model/finance/trialBalanceAccount.js.map +1 -0
- package/dist/gen/model/finance/trialBalanceEntry.d.ts +21 -0
- package/dist/gen/model/finance/trialBalanceEntry.js +23 -0
- package/dist/gen/model/finance/trialBalanceEntry.js.map +1 -0
- package/dist/gen/model/finance/trialBalanceMovement.d.ts +27 -0
- package/dist/gen/model/finance/trialBalanceMovement.js +33 -0
- package/dist/gen/model/finance/trialBalanceMovement.js.map +1 -0
- package/dist/gen/model/finance/trialBalanceResponse.d.ts +26 -0
- package/dist/gen/model/finance/trialBalanceResponse.js +28 -0
- package/dist/gen/model/finance/trialBalanceResponse.js.map +1 -0
- package/dist/gen/model/finance/userActivitiesResponse.d.ts +23 -0
- package/dist/gen/model/finance/userActivitiesResponse.js +28 -0
- package/dist/gen/model/finance/userActivitiesResponse.js.map +1 -0
- package/dist/gen/model/finance/userResponse.d.ts +57 -0
- package/dist/gen/model/finance/userResponse.js +73 -0
- package/dist/gen/model/finance/userResponse.js.map +1 -0
- package/dist/gen/model/payroll-au/allowanceCategory.d.ts +9 -0
- package/dist/gen/model/payroll-au/allowanceCategory.js +14 -0
- package/dist/gen/model/payroll-au/allowanceCategory.js.map +1 -0
- package/dist/gen/model/payroll-au/allowanceType.d.ts +5 -2
- package/dist/gen/model/payroll-au/allowanceType.js +5 -2
- package/dist/gen/model/payroll-au/allowanceType.js.map +1 -1
- package/dist/gen/model/payroll-au/earningsRate.d.ts +2 -0
- package/dist/gen/model/payroll-au/earningsRate.js +5 -0
- package/dist/gen/model/payroll-au/earningsRate.js.map +1 -1
- package/dist/gen/model/payroll-au/earningsType.d.ts +3 -1
- package/dist/gen/model/payroll-au/earningsType.js +2 -0
- package/dist/gen/model/payroll-au/earningsType.js.map +1 -1
- package/dist/gen/model/payroll-au/manualTaxType.d.ts +2 -1
- package/dist/gen/model/payroll-au/manualTaxType.js +1 -0
- package/dist/gen/model/payroll-au/manualTaxType.js.map +1 -1
- package/dist/gen/model/payroll-au/models.d.ts +1 -0
- package/dist/gen/model/payroll-au/models.js +3 -0
- package/dist/gen/model/payroll-au/models.js.map +1 -1
- package/dist/gen/model/payroll-uk/earningsRate.d.ts +1 -1
- package/dist/gen/model/payroll-uk/earningsRate.js +2 -2
- package/dist/gen/model/payroll-uk/earningsRate.js.map +1 -1
- package/package.json +1 -1
package/dist/gen/api/apis.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './bankfeedsApi';
|
|
|
7
7
|
export * from './payrollUKApi';
|
|
8
8
|
export * from './payrollNZApi';
|
|
9
9
|
export * from './appStoreApi';
|
|
10
|
+
export * from './financeApi';
|
|
10
11
|
import { AccountingApi } from './accountingApi';
|
|
11
12
|
import { AssetApi } from './assetApi';
|
|
12
13
|
import { FilesApi } from './filesApi';
|
|
@@ -16,4 +17,5 @@ import { BankFeedsApi } from './bankfeedsApi';
|
|
|
16
17
|
import { PayrollUkApi } from './payrollUKApi';
|
|
17
18
|
import { PayrollNzApi } from './payrollNZApi';
|
|
18
19
|
import { AppStoreApi } from './appStoreApi';
|
|
19
|
-
|
|
20
|
+
import { FinanceApi } from './financeApi';
|
|
21
|
+
export declare const APIS: (typeof AccountingApi | typeof AssetApi | typeof ProjectApi | typeof FilesApi | typeof PayrollAuApi | typeof BankFeedsApi | typeof PayrollUkApi | typeof PayrollNzApi | typeof AppStoreApi | typeof FinanceApi)[];
|
package/dist/gen/api/apis.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./bankfeedsApi"), exports);
|
|
|
20
20
|
__exportStar(require("./payrollUKApi"), exports);
|
|
21
21
|
__exportStar(require("./payrollNZApi"), exports);
|
|
22
22
|
__exportStar(require("./appStoreApi"), exports);
|
|
23
|
+
__exportStar(require("./financeApi"), exports);
|
|
23
24
|
const accountingApi_1 = require("./accountingApi");
|
|
24
25
|
const assetApi_1 = require("./assetApi");
|
|
25
26
|
const filesApi_1 = require("./filesApi");
|
|
@@ -29,5 +30,6 @@ const bankfeedsApi_1 = require("./bankfeedsApi");
|
|
|
29
30
|
const payrollUKApi_1 = require("./payrollUKApi");
|
|
30
31
|
const payrollNZApi_1 = require("./payrollNZApi");
|
|
31
32
|
const appStoreApi_1 = require("./appStoreApi");
|
|
32
|
-
|
|
33
|
+
const financeApi_1 = require("./financeApi");
|
|
34
|
+
exports.APIS = [accountingApi_1.AccountingApi, assetApi_1.AssetApi, filesApi_1.FilesApi, projectApi_1.ProjectApi, payrollAUApi_1.PayrollAuApi, bankfeedsApi_1.BankFeedsApi, payrollUKApi_1.PayrollUkApi, payrollNZApi_1.PayrollNzApi, appStoreApi_1.AppStoreApi, financeApi_1.FinanceApi];
|
|
33
35
|
//# sourceMappingURL=apis.js.map
|
package/dist/gen/api/apis.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apis.js","sourceRoot":"","sources":["../../../src/gen/api/apis.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAgC;AAChC,6CAA2B;AAC3B,+CAA6B;AAC7B,6CAA2B;AAC3B,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B,gDAA8B;AAC9B,mDAAgD;AAChD,yCAAsC;AACtC,yCAAsC;AACtC,6CAA0C;AAC1C,iDAA8C;AAC9C,iDAA8C;AAC9C,iDAA8C;AAC9C,iDAA8C;AAC9C,+CAA4C;
|
|
1
|
+
{"version":3,"file":"apis.js","sourceRoot":"","sources":["../../../src/gen/api/apis.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAgC;AAChC,6CAA2B;AAC3B,+CAA6B;AAC7B,6CAA2B;AAC3B,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B,gDAA8B;AAC9B,+CAA6B;AAC7B,mDAAgD;AAChD,yCAAsC;AACtC,yCAAsC;AACtC,6CAA0C;AAC1C,iDAA8C;AAC9C,iDAA8C;AAC9C,iDAA8C;AAC9C,iDAA8C;AAC9C,+CAA4C;AAC5C,6CAA0C;AAC7B,QAAA,IAAI,GAAG,CAAC,6BAAa,EAAE,mBAAQ,EAAE,mBAAQ,EAAE,uBAAU,EAAE,2BAAY,EAAE,2BAAY,EAAE,2BAAY,EAAE,2BAAY,EAAE,yBAAW,EAAE,uBAAU,CAAC,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero AppStore API
|
|
3
3
|
* These endpoints are for Xero Partners to interact with the App Store Billing platform
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.17.4
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero AppStore API
|
|
4
4
|
* These endpoints are for Xero Partners to interact with the App Store Billing platform
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.17.4
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var AppStoreApiApiKeys;
|
|
|
34
34
|
class AppStoreApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.17.1' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Assets API
|
|
3
3
|
* The Assets API exposes fixed asset related functions of the Xero Accounting application and can be used for a variety of purposes such as creating assets, retrieving asset valuations etc.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.17.4
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/gen/api/assetApi.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Assets API
|
|
4
4
|
* The Assets API exposes fixed asset related functions of the Xero Accounting application and can be used for a variety of purposes such as creating assets, retrieving asset valuations etc.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.17.4
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var AssetApiApiKeys;
|
|
|
34
34
|
class AssetApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.17.1' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Bank Feeds API
|
|
3
3
|
* The Bank Feeds API is a closed API that is only available to financial institutions that have an established financial services partnership with Xero. If you\'re an existing financial services partner that wants access, contact your local Partner Manager. If you\'re a financial institution who wants to provide bank feeds to your business customers, contact us to become a financial services partner.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.17.4
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Bank Feeds API
|
|
4
4
|
* The Bank Feeds API is a closed API that is only available to financial institutions that have an established financial services partnership with Xero. If you\'re an existing financial services partner that wants access, contact your local Partner Manager. If you\'re a financial institution who wants to provide bank feeds to your business customers, contact us to become a financial services partner.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.17.4
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var BankFeedsApiApiKeys;
|
|
|
34
34
|
class BankFeedsApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.17.1' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Files API
|
|
3
3
|
* These endpoints are specific to Xero Files API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.17.4
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/gen/api/filesApi.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Files API
|
|
4
4
|
* These endpoints are specific to Xero Files API
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.17.4
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var FilesApiApiKeys;
|
|
|
34
34
|
class FilesApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.17.1' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Xero Finance API
|
|
3
|
+
* The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.17.4
|
|
6
|
+
* Contact: api@xero.com
|
|
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
|
+
/// <reference types="node" />
|
|
13
|
+
import http = require('http');
|
|
14
|
+
import { AccountUsageResponse } from '../model/finance/accountUsageResponse';
|
|
15
|
+
import { BalanceSheetResponse } from '../model/finance/balanceSheetResponse';
|
|
16
|
+
import { CashValidationResponse } from '../model/finance/cashValidationResponse';
|
|
17
|
+
import { CashflowResponse } from '../model/finance/cashflowResponse';
|
|
18
|
+
import { IncomeByContactResponse } from '../model/finance/incomeByContactResponse';
|
|
19
|
+
import { LockHistoryResponse } from '../model/finance/lockHistoryResponse';
|
|
20
|
+
import { ProfitAndLossResponse } from '../model/finance/profitAndLossResponse';
|
|
21
|
+
import { ReportHistoryResponse } from '../model/finance/reportHistoryResponse';
|
|
22
|
+
import { TrialBalanceResponse } from '../model/finance/trialBalanceResponse';
|
|
23
|
+
import { UserActivitiesResponse } from '../model/finance/userActivitiesResponse';
|
|
24
|
+
import { Authentication } from '../model/finance/models';
|
|
25
|
+
import { OAuth } from '../model/finance/models';
|
|
26
|
+
export declare enum FinanceApiApiKeys {
|
|
27
|
+
}
|
|
28
|
+
export declare class FinanceApi {
|
|
29
|
+
protected _basePath: string;
|
|
30
|
+
protected defaultHeaders: any;
|
|
31
|
+
protected _useQuerystring: boolean;
|
|
32
|
+
protected binaryHeaders: any;
|
|
33
|
+
protected authentications: {
|
|
34
|
+
default: Authentication;
|
|
35
|
+
OAuth2: OAuth;
|
|
36
|
+
};
|
|
37
|
+
constructor(basePath?: string);
|
|
38
|
+
set useQuerystring(value: boolean);
|
|
39
|
+
set basePath(basePath: string);
|
|
40
|
+
get basePath(): string;
|
|
41
|
+
setDefaultAuthentication(auth: Authentication): void;
|
|
42
|
+
setApiKey(key: FinanceApiApiKeys, value: string): void;
|
|
43
|
+
set accessToken(token: string);
|
|
44
|
+
/**
|
|
45
|
+
* A summary of how each account is being transacted on exposing the level of detail and amounts attributable to manual adjustments.
|
|
46
|
+
* @summary Get account usage
|
|
47
|
+
* @param xeroTenantId Xero identifier for Tenant
|
|
48
|
+
* @param startMonth date, yyyy-MM If no parameter is provided, the month 12 months prior to the end month will be used. Account usage for up to 12 months from this date will be returned.
|
|
49
|
+
* @param endMonth date, yyyy-MM If no parameter is provided, the current month will be used. Account usage for up to 12 months prior to this date will be returned.
|
|
50
|
+
*/
|
|
51
|
+
getAccountingActivityAccountUsage(xeroTenantId: string, startMonth?: string, endMonth?: string, options?: {
|
|
52
|
+
headers: {
|
|
53
|
+
[name: string]: string;
|
|
54
|
+
};
|
|
55
|
+
}): Promise<{
|
|
56
|
+
response: http.IncomingMessage;
|
|
57
|
+
body: AccountUsageResponse;
|
|
58
|
+
}>;
|
|
59
|
+
/**
|
|
60
|
+
* Provides a history of locking of accounting books. Locking may be an indicator of good accounting practices that could reduce the risk of changes to accounting records in prior periods.
|
|
61
|
+
* @summary Get lock history
|
|
62
|
+
* @param xeroTenantId Xero identifier for Tenant
|
|
63
|
+
* @param endDate date, yyyy-MM-dd If no parameter is provided, the current date will be used. Any changes to hard or soft lock dates that were made within the period up to 12 months before this date will be returned. Please be aware that there may be a delay of up to 3 days before a change is visible from this API.
|
|
64
|
+
*/
|
|
65
|
+
getAccountingActivityLockHistory(xeroTenantId: string, endDate?: string, options?: {
|
|
66
|
+
headers: {
|
|
67
|
+
[name: string]: string;
|
|
68
|
+
};
|
|
69
|
+
}): Promise<{
|
|
70
|
+
response: http.IncomingMessage;
|
|
71
|
+
body: LockHistoryResponse;
|
|
72
|
+
}>;
|
|
73
|
+
/**
|
|
74
|
+
* For a specified organisation, provides a summary of all the reports published within a given period, which may be an indicator for good business management and oversight.
|
|
75
|
+
* @summary Get report history
|
|
76
|
+
* @param xeroTenantId Xero identifier for Tenant
|
|
77
|
+
* @param endDate date, yyyy-MM-dd If no parameter is provided, the current date will be used. Any reports that were published within the period up to 12 months before this date will be returned. Please be aware that there may be a delay of up to 3 days before a published report is visible from this API.
|
|
78
|
+
*/
|
|
79
|
+
getAccountingActivityReportHistory(xeroTenantId: string, endDate?: string, options?: {
|
|
80
|
+
headers: {
|
|
81
|
+
[name: string]: string;
|
|
82
|
+
};
|
|
83
|
+
}): Promise<{
|
|
84
|
+
response: http.IncomingMessage;
|
|
85
|
+
body: ReportHistoryResponse;
|
|
86
|
+
}>;
|
|
87
|
+
/**
|
|
88
|
+
* For a specified organisation, provides a list of all the users registered, and a history of their accounting transactions. Also identifies the existence of an external accounting advisor and the level of interaction.
|
|
89
|
+
* @summary Get user activities
|
|
90
|
+
* @param xeroTenantId Xero identifier for Tenant
|
|
91
|
+
* @param dataMonth date, yyyy-MM The specified month must be complete (in the past); The current month cannot be specified since it is not complete. If no parameter is provided, the month immediately previous to the current month will be used. Any user activities occurring within the specified month will be returned. Please be aware that there may be a delay of up to 3 days before a user activity is visible from this API.
|
|
92
|
+
*/
|
|
93
|
+
getAccountingActivityUserActivities(xeroTenantId: string, dataMonth?: string, options?: {
|
|
94
|
+
headers: {
|
|
95
|
+
[name: string]: string;
|
|
96
|
+
};
|
|
97
|
+
}): Promise<{
|
|
98
|
+
response: http.IncomingMessage;
|
|
99
|
+
body: UserActivitiesResponse;
|
|
100
|
+
}>;
|
|
101
|
+
/**
|
|
102
|
+
* Summarizes the total cash position for each account for an org
|
|
103
|
+
* @summary Get cash validation
|
|
104
|
+
* @param xeroTenantId Xero identifier for Tenant
|
|
105
|
+
* @param balanceDate date, yyyy-MM-dd If no parameter is provided, the current date will be used. The ‘balance date’ will return transactions based on the accounting date entered by the user. Transactions before the balanceDate will be included. The user has discretion as to which accounting period the transaction relates to. The ‘balance date’ will control the latest maximum date of transactions included in the aggregate numbers. Balance date does not affect the CurrentStatement object, as this will always return the most recent statement before asAtSystemDate (if specified)
|
|
106
|
+
* @param asAtSystemDate date, yyyy-MM-dd If no parameter is provided, the current date will be used. The ‘as at’ date will return transactions based on the creation date. It reflects the date the transactions were entered into Xero, not the accounting date. The ‘as at’ date can not be overridden by the user. This can be used to estimate a ‘historical frequency of reconciliation’. The ‘as at’ date will affect the current statement in the response, as any candidate statements created after this date will be filtered out. Thus the current statement returned will be the most recent statement prior to the specified ‘as at’ date. Be aware that neither the begin date, nor the balance date, will affect the current statement. Note; information is only presented when system architecture allows, meaning historical cash validation information will be an estimate. In addition, delete events are not aware of the ‘as at’ functionality in this endpoint, meaning that transactions deleted at the time the API is accessed will be considered to always have been deleted.
|
|
107
|
+
* @param beginDate date, yyyy-MM-dd If no parameter is provided, the aggregate results will be drawn from the user’s total history. The ‘begin date’ will return transactions based on the accounting date entered by the user. Transactions after the beginDate will be included. The user has discretion as to which accounting period the transaction relates to.
|
|
108
|
+
*/
|
|
109
|
+
getCashValidation(xeroTenantId: string, balanceDate?: string, asAtSystemDate?: string, beginDate?: string, options?: {
|
|
110
|
+
headers: {
|
|
111
|
+
[name: string]: string;
|
|
112
|
+
};
|
|
113
|
+
}): Promise<{
|
|
114
|
+
response: http.IncomingMessage;
|
|
115
|
+
body: Array<CashValidationResponse>;
|
|
116
|
+
}>;
|
|
117
|
+
/**
|
|
118
|
+
* The balance sheet report is a standard financial report which describes the financial position of an organisation at a point in time.
|
|
119
|
+
* @summary Get Balance Sheet report
|
|
120
|
+
* @param xeroTenantId Xero identifier for Tenant
|
|
121
|
+
* @param balanceDate Specifies the date for balance sheet report. Format yyyy-MM-dd. If no parameter is provided, the current date will be used.
|
|
122
|
+
*/
|
|
123
|
+
getFinancialStatementBalanceSheet(xeroTenantId: string, balanceDate?: string, options?: {
|
|
124
|
+
headers: {
|
|
125
|
+
[name: string]: string;
|
|
126
|
+
};
|
|
127
|
+
}): Promise<{
|
|
128
|
+
response: http.IncomingMessage;
|
|
129
|
+
body: BalanceSheetResponse;
|
|
130
|
+
}>;
|
|
131
|
+
/**
|
|
132
|
+
* The statement of cash flows - direct method, provides the year to date changes in operating, financing and investing cash flow activities for an organisation. Cashflow statement is not available in US region at this stage.
|
|
133
|
+
* @summary Get Cash flow report
|
|
134
|
+
* @param xeroTenantId Xero identifier for Tenant
|
|
135
|
+
* @param startDate Date e.g. yyyy-MM-dd Specifies the start date for cash flow report. If no parameter is provided, the date of 12 months before the end date will be used.
|
|
136
|
+
* @param endDate Date e.g. yyyy-MM-dd Specifies the end date for cash flow report. If no parameter is provided, the current date will be used.
|
|
137
|
+
*/
|
|
138
|
+
getFinancialStatementCashflow(xeroTenantId: string, startDate?: string, endDate?: string, options?: {
|
|
139
|
+
headers: {
|
|
140
|
+
[name: string]: string;
|
|
141
|
+
};
|
|
142
|
+
}): Promise<{
|
|
143
|
+
response: http.IncomingMessage;
|
|
144
|
+
body: CashflowResponse;
|
|
145
|
+
}>;
|
|
146
|
+
/**
|
|
147
|
+
* The expense by contact report provides a year to date profit and loss for customers and suppliers for a given organisation, including detailed contact information.
|
|
148
|
+
* @summary Get expense by contacts report
|
|
149
|
+
* @param xeroTenantId Xero identifier for Tenant
|
|
150
|
+
* @param contactIds Specifies the customer contacts to be included in the report. If no parameter is provided, all customer contacts will be included
|
|
151
|
+
* @param includeManualJournals Specifies whether to include the manual journals in the report. If no parameter is provided, manual journals will not be included.
|
|
152
|
+
* @param startDate Date yyyy-MM-dd Specifies the start date for the report. If no parameter is provided, the date of 12 months before the end date will be used. It is recommended to always specify both a start date and end date; While the initial range may be set to 12 months, this may need to be reduced for high volume organisations in order to improve latency.
|
|
153
|
+
* @param endDate Date yyyy-MM-dd Specifies the end date for the report. If no parameter is provided, the current date will be used. It is recommended to always specify both a start date and end date; While the initial range may be set to 12 months, this may need to be reduced for high volume organisations in order to improve latency.
|
|
154
|
+
*/
|
|
155
|
+
getFinancialStatementContactsExpense(xeroTenantId: string, contactIds?: Array<string>, includeManualJournals?: boolean, startDate?: string, endDate?: string, options?: {
|
|
156
|
+
headers: {
|
|
157
|
+
[name: string]: string;
|
|
158
|
+
};
|
|
159
|
+
}): Promise<{
|
|
160
|
+
response: http.IncomingMessage;
|
|
161
|
+
body: IncomeByContactResponse;
|
|
162
|
+
}>;
|
|
163
|
+
/**
|
|
164
|
+
* The revenue by contact report provides a year to date profit and loss for customers and suppliers for a given organisation, including detailed contact information.
|
|
165
|
+
* @summary Get revenue by contacts report
|
|
166
|
+
* @param xeroTenantId Xero identifier for Tenant
|
|
167
|
+
* @param contactIds Specifies the customer contacts to be included in the report. If no parameter is provided, all customer contacts will be included
|
|
168
|
+
* @param includeManualJournals Specifies whether to include the manual journals in the report. If no parameter is provided, manual journals will not be included.
|
|
169
|
+
* @param startDate Date yyyy-MM-dd Specifies the start date for the report. If no parameter is provided, the date of 12 months before the end date will be used. It is recommended to always specify both a start date and end date; While the initial range may be set to 12 months, this may need to be reduced for high volume organisations in order to improve latency.
|
|
170
|
+
* @param endDate Date yyyy-MM-dd Specifies the end date for the report. If no parameter is provided, the current date will be used. It is recommended to always specify both a start date and end date; While the initial range may be set to 12 months, this may need to be reduced for high volume organisations in order to improve latency.
|
|
171
|
+
*/
|
|
172
|
+
getFinancialStatementContactsRevenue(xeroTenantId: string, contactIds?: Array<string>, includeManualJournals?: boolean, startDate?: string, endDate?: string, options?: {
|
|
173
|
+
headers: {
|
|
174
|
+
[name: string]: string;
|
|
175
|
+
};
|
|
176
|
+
}): Promise<{
|
|
177
|
+
response: http.IncomingMessage;
|
|
178
|
+
body: IncomeByContactResponse;
|
|
179
|
+
}>;
|
|
180
|
+
/**
|
|
181
|
+
* The profit and loss statement is a standard financial report providing detailed year to date income and expense detail for an organisation.
|
|
182
|
+
* @summary Get Profit & Loss report
|
|
183
|
+
* @param xeroTenantId Xero identifier for Tenant
|
|
184
|
+
* @param startDate Date e.g. yyyy-MM-dd Specifies the start date for profit and loss report If no parameter is provided, the date of 12 months before the end date will be used.
|
|
185
|
+
* @param endDate Date e.g. yyyy-MM-dd Specifies the end date for profit and loss report If no parameter is provided, the current date will be used.
|
|
186
|
+
*/
|
|
187
|
+
getFinancialStatementProfitAndLoss(xeroTenantId: string, startDate?: string, endDate?: string, options?: {
|
|
188
|
+
headers: {
|
|
189
|
+
[name: string]: string;
|
|
190
|
+
};
|
|
191
|
+
}): Promise<{
|
|
192
|
+
response: http.IncomingMessage;
|
|
193
|
+
body: ProfitAndLossResponse;
|
|
194
|
+
}>;
|
|
195
|
+
/**
|
|
196
|
+
* The trial balance provides a detailed list of all accounts of an organisation at a point in time, with revenue and expense items being year to date.
|
|
197
|
+
* @summary Get Trial Balance report
|
|
198
|
+
* @param xeroTenantId Xero identifier for Tenant
|
|
199
|
+
* @param endDate Date e.g. yyyy-MM-dd Specifies the end date for trial balance report If no parameter is provided, the current date will be used.
|
|
200
|
+
*/
|
|
201
|
+
getFinancialStatementTrialBalance(xeroTenantId: string, endDate?: string, options?: {
|
|
202
|
+
headers: {
|
|
203
|
+
[name: string]: string;
|
|
204
|
+
};
|
|
205
|
+
}): Promise<{
|
|
206
|
+
response: http.IncomingMessage;
|
|
207
|
+
body: TrialBalanceResponse;
|
|
208
|
+
}>;
|
|
209
|
+
}
|