xero-node 4.16.1 → 4.17.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.
Files changed (57) hide show
  1. package/dist/XeroClient.d.ts +1 -0
  2. package/dist/XeroClient.js +2 -0
  3. package/dist/XeroClient.js.map +1 -1
  4. package/dist/gen/api/accountingApi.d.ts +1 -1
  5. package/dist/gen/api/accountingApi.js +2 -2
  6. package/dist/gen/api/apis.d.ts +3 -1
  7. package/dist/gen/api/apis.js +3 -1
  8. package/dist/gen/api/apis.js.map +1 -1
  9. package/dist/gen/api/appStoreApi.d.ts +1 -1
  10. package/dist/gen/api/appStoreApi.js +2 -2
  11. package/dist/gen/api/assetApi.d.ts +1 -1
  12. package/dist/gen/api/assetApi.js +2 -2
  13. package/dist/gen/api/bankfeedsApi.d.ts +1 -1
  14. package/dist/gen/api/bankfeedsApi.js +2 -2
  15. package/dist/gen/api/filesApi.d.ts +1 -1
  16. package/dist/gen/api/filesApi.js +2 -2
  17. package/dist/gen/api/financeApi.d.ts +40 -5
  18. package/dist/gen/api/financeApi.js +152 -6
  19. package/dist/gen/api/financeApi.js.map +1 -1
  20. package/dist/gen/api/payrollAUApi.d.ts +1 -1
  21. package/dist/gen/api/payrollAUApi.js +2 -2
  22. package/dist/gen/api/payrollNZApi.d.ts +1 -1
  23. package/dist/gen/api/payrollNZApi.js +2 -2
  24. package/dist/gen/api/payrollUKApi.d.ts +1 -1
  25. package/dist/gen/api/payrollUKApi.js +2 -2
  26. package/dist/gen/api/projectApi.d.ts +1 -1
  27. package/dist/gen/api/projectApi.js +2 -2
  28. package/dist/gen/model/accounting/contact.d.ts +26 -0
  29. package/dist/gen/model/accounting/contact.js +32 -0
  30. package/dist/gen/model/accounting/contact.js.map +1 -1
  31. package/dist/gen/model/accounting/models.js +2 -0
  32. package/dist/gen/model/accounting/models.js.map +1 -1
  33. package/dist/gen/model/finance/contactDetail.d.ts +33 -0
  34. package/dist/gen/model/finance/contactDetail.js +43 -0
  35. package/dist/gen/model/finance/contactDetail.js.map +1 -0
  36. package/dist/gen/model/finance/contactTotalDetail.d.ts +25 -0
  37. package/dist/gen/model/finance/contactTotalDetail.js +28 -0
  38. package/dist/gen/model/finance/contactTotalDetail.js.map +1 -0
  39. package/dist/gen/model/finance/contactTotalOther.d.ts +29 -0
  40. package/dist/gen/model/finance/contactTotalOther.js +33 -0
  41. package/dist/gen/model/finance/contactTotalOther.js.map +1 -0
  42. package/dist/gen/model/finance/incomeByContactResponse.d.ts +33 -0
  43. package/dist/gen/model/finance/incomeByContactResponse.js +48 -0
  44. package/dist/gen/model/finance/incomeByContactResponse.js.map +1 -0
  45. package/dist/gen/model/finance/manualJournalTotal.d.ts +17 -0
  46. package/dist/gen/model/finance/manualJournalTotal.js +18 -0
  47. package/dist/gen/model/finance/manualJournalTotal.js.map +1 -0
  48. package/dist/gen/model/finance/models.d.ts +7 -0
  49. package/dist/gen/model/finance/models.js +21 -0
  50. package/dist/gen/model/finance/models.js.map +1 -1
  51. package/dist/gen/model/finance/totalDetail.d.ts +25 -0
  52. package/dist/gen/model/finance/totalDetail.js +28 -0
  53. package/dist/gen/model/finance/totalDetail.js.map +1 -0
  54. package/dist/gen/model/finance/totalOther.d.ts +25 -0
  55. package/dist/gen/model/finance/totalOther.js +28 -0
  56. package/dist/gen/model/finance/totalOther.js.map +1 -0
  57. package/package.json +1 -1
@@ -58,6 +58,7 @@ export declare class XeroClient {
58
58
  readonly payrollUKApi: xero.PayrollUkApi;
59
59
  readonly payrollNZApi: xero.PayrollNzApi;
60
60
  readonly appStoreApi: xero.AppStoreApi;
61
+ readonly financeApi: xero.FinanceApi;
61
62
  openIdClient: Client;
62
63
  get tenants(): any[];
63
64
  initialize(): Promise<XeroClient>;
@@ -51,6 +51,7 @@ class XeroClient {
51
51
  this.payrollUKApi = new xero.PayrollUkApi();
52
52
  this.payrollNZApi = new xero.PayrollNzApi();
53
53
  this.appStoreApi = new xero.AppStoreApi();
54
+ this.financeApi = new xero.FinanceApi();
54
55
  }
55
56
  ;
56
57
  get tenants() {
@@ -263,6 +264,7 @@ class XeroClient {
263
264
  this.payrollUKApi.accessToken = accessToken;
264
265
  this.payrollNZApi.accessToken = accessToken;
265
266
  this.appStoreApi.accessToken = accessToken;
267
+ this.financeApi.accessToken = accessToken;
266
268
  }
267
269
  }
268
270
  exports.XeroClient = XeroClient;
@@ -1 +1 @@
1
- {"version":3,"file":"XeroClient.js","sourceRoot":"","sources":["../src/XeroClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAqF;AACrF,gDAAkC;AAClC,mCAAoC;AAGpC,+CAA6D;AAApD,yGAAA,QAAQ,OAAA;AAUhB,CAAC;AAoBD,CAAC;AAgBD,CAAC;AAEF,MAAa,UAAU;IACrB,YAAqB,MAA0B;QAA1B,WAAM,GAAN,MAAM,CAAoB;QAYvC,cAAS,GAAa,IAAI,wBAAQ,CAAC;QACnC,aAAQ,GAAU,EAAE,CAAC;QAZ3B,IAAI,CAAC,aAAa,GAAG,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;QAC9C,IAAI,CAAC,QAAQ,GAAG,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;QACpC,IAAI,CAAC,UAAU,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;QACxC,IAAI,CAAC,YAAY,GAAG,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;QAC5C,IAAI,CAAC,YAAY,GAAG,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;QAC5C,IAAI,CAAC,YAAY,GAAG,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;QAC5C,IAAI,CAAC,YAAY,GAAG,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;QAC5C,IAAI,CAAC,WAAW,GAAG,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC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C,IAAI,CAAC,UAAU,CAAC,WAAW,GAAG,WAAW,CAAC;IAC5C,CAAC;CACF;AA5OD,gCA4OC"}
@@ -2,7 +2,7 @@
2
2
  * Xero Accounting API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 2.17.1
5
+ * The version of the OpenAPI document: 2.17.2
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 Accounting API
4
4
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
  *
6
- * The version of the OpenAPI document: 2.17.1
6
+ * The version of the OpenAPI document: 2.17.2
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 AccountingApiApiKeys;
34
34
  class AccountingApi {
35
35
  constructor(basePathOrUsername, password, basePath) {
36
36
  this._basePath = defaultBasePath;
37
- this.defaultHeaders = { 'user-agent': 'xero-node-4.16.0' };
37
+ this.defaultHeaders = { 'user-agent': 'xero-node-4.17.0' };
38
38
  this._useQuerystring = false;
39
39
  this.binaryHeaders = {};
40
40
  this.authentications = {
@@ -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
- export declare const APIS: (typeof AccountingApi | typeof AssetApi | typeof ProjectApi | typeof FilesApi | typeof PayrollAuApi | typeof BankFeedsApi | typeof PayrollUkApi | typeof PayrollNzApi | typeof AppStoreApi)[];
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)[];
@@ -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
- 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];
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
@@ -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;AAC/B,QAAA,IAAI,GAAG,CAAC,6BAAa,EAAE,mBAAQ,EAAE,mBAAQ,EAAE,uBAAU,EAAE,2BAAY,EAAE,2BAAY,EAAE,2BAAY,EAAE,2BAAY,EAAE,yBAAW,CAAC,CAAC"}
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.17.1
5
+ * The version of the OpenAPI document: 2.17.2
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.17.1
6
+ * The version of the OpenAPI document: 2.17.2
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.16.0' };
37
+ this.defaultHeaders = { 'user-agent': 'xero-node-4.17.0' };
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.17.1
5
+ * The version of the OpenAPI document: 2.17.2
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 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.17.1
6
+ * The version of the OpenAPI document: 2.17.2
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.16.0' };
37
+ this.defaultHeaders = { 'user-agent': 'xero-node-4.17.0' };
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.17.1
5
+ * The version of the OpenAPI document: 2.17.2
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.17.1
6
+ * The version of the OpenAPI document: 2.17.2
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.16.0' };
37
+ this.defaultHeaders = { 'user-agent': 'xero-node-4.17.0' };
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.17.1
5
+ * The version of the OpenAPI document: 2.17.2
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 Files API
4
4
  * These endpoints are specific to Xero Files API
5
5
  *
6
- * The version of the OpenAPI document: 2.17.1
6
+ * The version of the OpenAPI document: 2.17.2
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.16.0' };
37
+ this.defaultHeaders = { 'user-agent': 'xero-node-4.17.0' };
38
38
  this._useQuerystring = false;
39
39
  this.binaryHeaders = {};
40
40
  this.authentications = {
@@ -2,7 +2,7 @@
2
2
  * Xero Finance API
3
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
4
  *
5
- * The version of the OpenAPI document: 2.16.4
5
+ * The version of the OpenAPI document: 2.17.2
6
6
  * Contact: api@xero.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,6 +15,7 @@ import { AccountUsageResponse } from '../model/finance/accountUsageResponse';
15
15
  import { BalanceSheetResponse } from '../model/finance/balanceSheetResponse';
16
16
  import { CashValidationResponse } from '../model/finance/cashValidationResponse';
17
17
  import { CashflowResponse } from '../model/finance/cashflowResponse';
18
+ import { IncomeByContactResponse } from '../model/finance/incomeByContactResponse';
18
19
  import { LockHistoryResponse } from '../model/finance/lockHistoryResponse';
19
20
  import { ProfitAndLossResponse } from '../model/finance/profitAndLossResponse';
20
21
  import { ReportHistoryResponse } from '../model/finance/reportHistoryResponse';
@@ -59,7 +60,7 @@ export declare class FinanceApi {
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.
60
61
  * @summary Get lock history
61
62
  * @param xeroTenantId Xero identifier for Tenant
62
- * @param endDate date, yyyy-MM-dd If no parameter is provided, the current date will be used. Lock History for up to 12 months before this date will be returned.
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.
63
64
  */
64
65
  getAccountingActivityLockHistory(xeroTenantId: string, endDate?: string, options?: {
65
66
  headers: {
@@ -70,10 +71,10 @@ export declare class FinanceApi {
70
71
  body: LockHistoryResponse;
71
72
  }>;
72
73
  /**
73
- * For a specified organisation, provides a summary of all the reports run for a given period, which may be an indicator for good business management and oversight.
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.
74
75
  * @summary Get report history
75
76
  * @param xeroTenantId Xero identifier for Tenant
76
- * @param endDate date, yyyy-MM-dd If no parameter is provided, the current date will be used. Reports published up to 12 months before this date will be returned.
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.
77
78
  */
78
79
  getAccountingActivityReportHistory(xeroTenantId: string, endDate?: string, options?: {
79
80
  headers: {
@@ -87,7 +88,7 @@ export declare class FinanceApi {
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.
88
89
  * @summary Get user activities
89
90
  * @param xeroTenantId Xero identifier for Tenant
90
- * @param dataMonth date, yyyy-MM If no parameter is provided, the month immediately previous to the current month will be used. The user activities for the specified month will be returned.
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.
91
92
  */
92
93
  getAccountingActivityUserActivities(xeroTenantId: string, dataMonth?: string, options?: {
93
94
  headers: {
@@ -142,6 +143,40 @@ export declare class FinanceApi {
142
143
  response: http.IncomingMessage;
143
144
  body: CashflowResponse;
144
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
+ }>;
145
180
  /**
146
181
  * The profit and loss statement is a standard financial report providing detailed year to date income and expense detail for an organisation.
147
182
  * @summary Get Profit & Loss report
@@ -3,7 +3,7 @@
3
3
  * Xero Finance API
4
4
  * 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.
5
5
  *
6
- * The version of the OpenAPI document: 2.16.4
6
+ * The version of the OpenAPI document: 2.17.2
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 FinanceApiApiKeys;
34
34
  class FinanceApi {
35
35
  constructor(basePathOrUsername, password, basePath) {
36
36
  this._basePath = defaultBasePath;
37
- this.defaultHeaders = { 'user-agent': 'xero-node-4.16.0' };
37
+ this.defaultHeaders = { 'user-agent': 'xero-node-4.17.0' };
38
38
  this._useQuerystring = false;
39
39
  this.binaryHeaders = {};
40
40
  this.authentications = {
@@ -139,7 +139,7 @@ class FinanceApi {
139
139
  * 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.
140
140
  * @summary Get lock history
141
141
  * @param xeroTenantId Xero identifier for Tenant
142
- * @param endDate date, yyyy-MM-dd If no parameter is provided, the current date will be used. Lock History for up to 12 months before this date will be returned.
142
+ * @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.
143
143
  */
144
144
  getAccountingActivityLockHistory(xeroTenantId, endDate, options = { headers: {} }) {
145
145
  return __awaiter(this, void 0, void 0, function* () {
@@ -197,10 +197,10 @@ class FinanceApi {
197
197
  });
198
198
  }
199
199
  /**
200
- * For a specified organisation, provides a summary of all the reports run for a given period, which may be an indicator for good business management and oversight.
200
+ * 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.
201
201
  * @summary Get report history
202
202
  * @param xeroTenantId Xero identifier for Tenant
203
- * @param endDate date, yyyy-MM-dd If no parameter is provided, the current date will be used. Reports published up to 12 months before this date will be returned.
203
+ * @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.
204
204
  */
205
205
  getAccountingActivityReportHistory(xeroTenantId, endDate, options = { headers: {} }) {
206
206
  return __awaiter(this, void 0, void 0, function* () {
@@ -261,7 +261,7 @@ class FinanceApi {
261
261
  * 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.
262
262
  * @summary Get user activities
263
263
  * @param xeroTenantId Xero identifier for Tenant
264
- * @param dataMonth date, yyyy-MM If no parameter is provided, the month immediately previous to the current month will be used. The user activities for the specified month will be returned.
264
+ * @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.
265
265
  */
266
266
  getAccountingActivityUserActivities(xeroTenantId, dataMonth, options = { headers: {} }) {
267
267
  return __awaiter(this, void 0, void 0, function* () {
@@ -512,6 +512,152 @@ class FinanceApi {
512
512
  });
513
513
  });
514
514
  }
515
+ /**
516
+ * 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.
517
+ * @summary Get expense by contacts report
518
+ * @param xeroTenantId Xero identifier for Tenant
519
+ * @param contactIds Specifies the customer contacts to be included in the report. If no parameter is provided, all customer contacts will be included
520
+ * @param includeManualJournals Specifies whether to include the manual journals in the report. If no parameter is provided, manual journals will not be included.
521
+ * @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.
522
+ * @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.
523
+ */
524
+ getFinancialStatementContactsExpense(xeroTenantId, contactIds, includeManualJournals, startDate, endDate, options = { headers: {} }) {
525
+ return __awaiter(this, void 0, void 0, function* () {
526
+ const localVarPath = this.basePath + '/FinancialStatements/contacts/expense';
527
+ let localVarQueryParameters = {};
528
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
529
+ let localVarFormParams = {};
530
+ // verify required parameter 'xeroTenantId' is not null or undefined
531
+ if (xeroTenantId === null || xeroTenantId === undefined) {
532
+ throw new Error('Required parameter xeroTenantId was null or undefined when calling getFinancialStatementContactsExpense.');
533
+ }
534
+ if (contactIds !== undefined) {
535
+ localVarQueryParameters['contactIds'] = models_1.ObjectSerializer.serialize(contactIds, "Array<string>");
536
+ }
537
+ if (includeManualJournals !== undefined) {
538
+ localVarQueryParameters['includeManualJournals'] = models_1.ObjectSerializer.serialize(includeManualJournals, "boolean");
539
+ }
540
+ if (startDate !== undefined) {
541
+ localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(startDate, "string");
542
+ }
543
+ if (endDate !== undefined) {
544
+ localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(endDate, "string");
545
+ }
546
+ localVarHeaderParams['xero-tenant-id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
547
+ Object.assign(localVarHeaderParams, options.headers);
548
+ let localVarUseFormData = false;
549
+ let localVarRequestOptions = {
550
+ method: 'GET',
551
+ qs: localVarQueryParameters,
552
+ headers: localVarHeaderParams,
553
+ uri: localVarPath,
554
+ useQuerystring: this._useQuerystring,
555
+ json: true,
556
+ };
557
+ let authenticationPromise = Promise.resolve();
558
+ authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
559
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
560
+ return authenticationPromise.then(() => {
561
+ if (Object.keys(localVarFormParams).length) {
562
+ if (localVarUseFormData) {
563
+ localVarRequestOptions.formData = localVarFormParams;
564
+ }
565
+ else {
566
+ localVarRequestOptions.form = localVarFormParams;
567
+ }
568
+ }
569
+ return new Promise((resolve, reject) => {
570
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
571
+ if (error) {
572
+ reject(error);
573
+ }
574
+ else {
575
+ body = models_1.ObjectSerializer.deserialize(body, "IncomeByContactResponse");
576
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
577
+ resolve({ response: response, body: body });
578
+ }
579
+ else {
580
+ reject({ response: response, body: body });
581
+ }
582
+ }
583
+ });
584
+ });
585
+ });
586
+ });
587
+ }
588
+ /**
589
+ * 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.
590
+ * @summary Get revenue by contacts report
591
+ * @param xeroTenantId Xero identifier for Tenant
592
+ * @param contactIds Specifies the customer contacts to be included in the report. If no parameter is provided, all customer contacts will be included
593
+ * @param includeManualJournals Specifies whether to include the manual journals in the report. If no parameter is provided, manual journals will not be included.
594
+ * @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.
595
+ * @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.
596
+ */
597
+ getFinancialStatementContactsRevenue(xeroTenantId, contactIds, includeManualJournals, startDate, endDate, options = { headers: {} }) {
598
+ return __awaiter(this, void 0, void 0, function* () {
599
+ const localVarPath = this.basePath + '/FinancialStatements/contacts/revenue';
600
+ let localVarQueryParameters = {};
601
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
602
+ let localVarFormParams = {};
603
+ // verify required parameter 'xeroTenantId' is not null or undefined
604
+ if (xeroTenantId === null || xeroTenantId === undefined) {
605
+ throw new Error('Required parameter xeroTenantId was null or undefined when calling getFinancialStatementContactsRevenue.');
606
+ }
607
+ if (contactIds !== undefined) {
608
+ localVarQueryParameters['contactIds'] = models_1.ObjectSerializer.serialize(contactIds, "Array<string>");
609
+ }
610
+ if (includeManualJournals !== undefined) {
611
+ localVarQueryParameters['includeManualJournals'] = models_1.ObjectSerializer.serialize(includeManualJournals, "boolean");
612
+ }
613
+ if (startDate !== undefined) {
614
+ localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(startDate, "string");
615
+ }
616
+ if (endDate !== undefined) {
617
+ localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(endDate, "string");
618
+ }
619
+ localVarHeaderParams['xero-tenant-id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
620
+ Object.assign(localVarHeaderParams, options.headers);
621
+ let localVarUseFormData = false;
622
+ let localVarRequestOptions = {
623
+ method: 'GET',
624
+ qs: localVarQueryParameters,
625
+ headers: localVarHeaderParams,
626
+ uri: localVarPath,
627
+ useQuerystring: this._useQuerystring,
628
+ json: true,
629
+ };
630
+ let authenticationPromise = Promise.resolve();
631
+ authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
632
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
633
+ return authenticationPromise.then(() => {
634
+ if (Object.keys(localVarFormParams).length) {
635
+ if (localVarUseFormData) {
636
+ localVarRequestOptions.formData = localVarFormParams;
637
+ }
638
+ else {
639
+ localVarRequestOptions.form = localVarFormParams;
640
+ }
641
+ }
642
+ return new Promise((resolve, reject) => {
643
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
644
+ if (error) {
645
+ reject(error);
646
+ }
647
+ else {
648
+ body = models_1.ObjectSerializer.deserialize(body, "IncomeByContactResponse");
649
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
650
+ resolve({ response: response, body: body });
651
+ }
652
+ else {
653
+ reject({ response: response, body: body });
654
+ }
655
+ }
656
+ });
657
+ });
658
+ });
659
+ });
660
+ }
515
661
  /**
516
662
  * The profit and loss statement is a standard financial report providing detailed year to date income and expense detail for an organisation.
517
663
  * @summary Get Profit & Loss report