xero-node 9.0.0 → 9.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/gen/api/accountingApi.d.ts +1 -1
  2. package/dist/gen/api/accountingApi.js +2 -2
  3. package/dist/gen/api/appStoreApi.d.ts +1 -1
  4. package/dist/gen/api/appStoreApi.js +2 -2
  5. package/dist/gen/api/assetApi.d.ts +1 -1
  6. package/dist/gen/api/assetApi.js +2 -2
  7. package/dist/gen/api/bankfeedsApi.d.ts +1 -1
  8. package/dist/gen/api/bankfeedsApi.js +2 -2
  9. package/dist/gen/api/filesApi.d.ts +1 -1
  10. package/dist/gen/api/filesApi.js +2 -2
  11. package/dist/gen/api/financeApi.d.ts +1 -1
  12. package/dist/gen/api/financeApi.js +2 -2
  13. package/dist/gen/api/payrollAUApi.d.ts +1 -1
  14. package/dist/gen/api/payrollAUApi.js +2 -2
  15. package/dist/gen/api/payrollNZApi.d.ts +64 -1
  16. package/dist/gen/api/payrollNZApi.js +316 -9
  17. package/dist/gen/api/payrollNZApi.js.map +1 -1
  18. package/dist/gen/api/payrollUKApi.d.ts +1 -1
  19. package/dist/gen/api/payrollUKApi.js +2 -2
  20. package/dist/gen/api/projectApi.d.ts +1 -1
  21. package/dist/gen/api/projectApi.js +2 -2
  22. package/dist/gen/model/accounting/bankTransactions.d.ts +5 -0
  23. package/dist/gen/model/accounting/bankTransactions.js +5 -0
  24. package/dist/gen/model/accounting/bankTransactions.js.map +1 -1
  25. package/dist/gen/model/accounting/contacts.d.ts +5 -0
  26. package/dist/gen/model/accounting/contacts.js +5 -0
  27. package/dist/gen/model/accounting/contacts.js.map +1 -1
  28. package/dist/gen/model/accounting/creditNote.d.ts +1 -1
  29. package/dist/gen/model/accounting/creditNotes.d.ts +5 -0
  30. package/dist/gen/model/accounting/creditNotes.js +5 -0
  31. package/dist/gen/model/accounting/creditNotes.js.map +1 -1
  32. package/dist/gen/model/accounting/invoices.d.ts +5 -0
  33. package/dist/gen/model/accounting/invoices.js +5 -0
  34. package/dist/gen/model/accounting/invoices.js.map +1 -1
  35. package/dist/gen/model/accounting/journals.d.ts +5 -0
  36. package/dist/gen/model/accounting/journals.js +5 -0
  37. package/dist/gen/model/accounting/journals.js.map +1 -1
  38. package/dist/gen/model/accounting/manualJournals.d.ts +5 -0
  39. package/dist/gen/model/accounting/manualJournals.js +5 -0
  40. package/dist/gen/model/accounting/manualJournals.js.map +1 -1
  41. package/dist/gen/model/accounting/overpayments.d.ts +5 -0
  42. package/dist/gen/model/accounting/overpayments.js +5 -0
  43. package/dist/gen/model/accounting/overpayments.js.map +1 -1
  44. package/dist/gen/model/accounting/payments.d.ts +5 -0
  45. package/dist/gen/model/accounting/payments.js +5 -0
  46. package/dist/gen/model/accounting/payments.js.map +1 -1
  47. package/dist/gen/model/accounting/prepayments.d.ts +5 -0
  48. package/dist/gen/model/accounting/prepayments.js +5 -0
  49. package/dist/gen/model/accounting/prepayments.js.map +1 -1
  50. package/dist/gen/model/accounting/purchaseOrders.d.ts +5 -0
  51. package/dist/gen/model/accounting/purchaseOrders.js +5 -0
  52. package/dist/gen/model/accounting/purchaseOrders.js.map +1 -1
  53. package/dist/gen/model/payroll-nz/employee.d.ts +8 -0
  54. package/dist/gen/model/payroll-nz/employee.js +10 -0
  55. package/dist/gen/model/payroll-nz/employee.js.map +1 -1
  56. package/dist/gen/model/payroll-nz/employeeLeaveSetup.d.ts +8 -0
  57. package/dist/gen/model/payroll-nz/employeeLeaveSetup.js +10 -0
  58. package/dist/gen/model/payroll-nz/employeeLeaveSetup.js.map +1 -1
  59. package/dist/gen/model/payroll-nz/employeeLeaveType.d.ts +4 -0
  60. package/dist/gen/model/payroll-nz/employeeLeaveType.js +5 -0
  61. package/dist/gen/model/payroll-nz/employeeLeaveType.js.map +1 -1
  62. package/dist/gen/model/payroll-nz/employeeWorkingPattern.d.ts +21 -0
  63. package/dist/gen/model/payroll-nz/employeeWorkingPattern.js +23 -0
  64. package/dist/gen/model/payroll-nz/employeeWorkingPattern.js.map +1 -0
  65. package/dist/gen/model/payroll-nz/employeeWorkingPatternWithWorkingWeeks.d.ts +23 -0
  66. package/dist/gen/model/payroll-nz/employeeWorkingPatternWithWorkingWeeks.js +28 -0
  67. package/dist/gen/model/payroll-nz/employeeWorkingPatternWithWorkingWeeks.js.map +1 -0
  68. package/dist/gen/model/payroll-nz/employeeWorkingPatternWithWorkingWeeksObject.d.ts +19 -0
  69. package/dist/gen/model/payroll-nz/employeeWorkingPatternWithWorkingWeeksObject.js +28 -0
  70. package/dist/gen/model/payroll-nz/employeeWorkingPatternWithWorkingWeeksObject.js.map +1 -0
  71. package/dist/gen/model/payroll-nz/employeeWorkingPatternWithWorkingWeeksRequest.d.ts +19 -0
  72. package/dist/gen/model/payroll-nz/employeeWorkingPatternWithWorkingWeeksRequest.js +23 -0
  73. package/dist/gen/model/payroll-nz/employeeWorkingPatternWithWorkingWeeksRequest.js.map +1 -0
  74. package/dist/gen/model/payroll-nz/employeeWorkingPatternsObject.d.ts +19 -0
  75. package/dist/gen/model/payroll-nz/employeeWorkingPatternsObject.js +28 -0
  76. package/dist/gen/model/payroll-nz/employeeWorkingPatternsObject.js.map +1 -0
  77. package/dist/gen/model/payroll-nz/employment.d.ts +8 -0
  78. package/dist/gen/model/payroll-nz/employment.js +10 -0
  79. package/dist/gen/model/payroll-nz/employment.js.map +1 -1
  80. package/dist/gen/model/payroll-nz/models.d.ts +6 -0
  81. package/dist/gen/model/payroll-nz/models.js +19 -0
  82. package/dist/gen/model/payroll-nz/models.js.map +1 -1
  83. package/dist/gen/model/payroll-nz/salaryAndWage.d.ts +8 -0
  84. package/dist/gen/model/payroll-nz/salaryAndWage.js +10 -0
  85. package/dist/gen/model/payroll-nz/salaryAndWage.js.map +1 -1
  86. package/dist/gen/model/payroll-nz/workingWeek.d.ts +41 -0
  87. package/dist/gen/model/payroll-nz/workingWeek.js +48 -0
  88. package/dist/gen/model/payroll-nz/workingWeek.js.map +1 -0
  89. package/package.json +1 -1
@@ -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: 6.0.0
5
+ * The version of the OpenAPI document: 6.2.0
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: 6.0.0
6
+ * The version of the OpenAPI document: 6.2.0
7
7
  * Contact: api@xero.com
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -39,7 +39,7 @@ var AccountingApiApiKeys;
39
39
  class AccountingApi {
40
40
  constructor(basePathOrUsername, password, basePath) {
41
41
  this._basePath = defaultBasePath;
42
- this.defaultHeaders = { 'user-agent': 'xero-node-9.0.0' };
42
+ this.defaultHeaders = { 'user-agent': 'xero-node-9.2.0' };
43
43
  this._useQuerystring = false;
44
44
  this.binaryHeaders = {};
45
45
  this.authentications = {
@@ -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: 6.0.0
5
+ * The version of the OpenAPI document: 6.2.0
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: 6.0.0
6
+ * The version of the OpenAPI document: 6.2.0
7
7
  * Contact: api@xero.com
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -38,7 +38,7 @@ var AppStoreApiApiKeys;
38
38
  class AppStoreApi {
39
39
  constructor(basePathOrUsername, password, basePath) {
40
40
  this._basePath = defaultBasePath;
41
- this.defaultHeaders = { 'user-agent': 'xero-node-9.0.0' };
41
+ this.defaultHeaders = { 'user-agent': 'xero-node-9.2.0' };
42
42
  this._useQuerystring = false;
43
43
  this.binaryHeaders = {};
44
44
  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: 6.0.0
5
+ * The version of the OpenAPI document: 6.2.0
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: 6.0.0
6
+ * The version of the OpenAPI document: 6.2.0
7
7
  * Contact: api@xero.com
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -38,7 +38,7 @@ var AssetApiApiKeys;
38
38
  class AssetApi {
39
39
  constructor(basePathOrUsername, password, basePath) {
40
40
  this._basePath = defaultBasePath;
41
- this.defaultHeaders = { 'user-agent': 'xero-node-9.0.0' };
41
+ this.defaultHeaders = { 'user-agent': 'xero-node-9.2.0' };
42
42
  this._useQuerystring = false;
43
43
  this.binaryHeaders = {};
44
44
  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: 6.0.0
5
+ * The version of the OpenAPI document: 6.2.0
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: 6.0.0
6
+ * The version of the OpenAPI document: 6.2.0
7
7
  * Contact: api@xero.com
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -38,7 +38,7 @@ var BankFeedsApiApiKeys;
38
38
  class BankFeedsApi {
39
39
  constructor(basePathOrUsername, password, basePath) {
40
40
  this._basePath = defaultBasePath;
41
- this.defaultHeaders = { 'user-agent': 'xero-node-9.0.0' };
41
+ this.defaultHeaders = { 'user-agent': 'xero-node-9.2.0' };
42
42
  this._useQuerystring = false;
43
43
  this.binaryHeaders = {};
44
44
  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: 6.0.0
5
+ * The version of the OpenAPI document: 6.2.0
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: 6.0.0
6
+ * The version of the OpenAPI document: 6.2.0
7
7
  * Contact: api@xero.com
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -38,7 +38,7 @@ var FilesApiApiKeys;
38
38
  class FilesApi {
39
39
  constructor(basePathOrUsername, password, basePath) {
40
40
  this._basePath = defaultBasePath;
41
- this.defaultHeaders = { 'user-agent': 'xero-node-9.0.0' };
41
+ this.defaultHeaders = { 'user-agent': 'xero-node-9.2.0' };
42
42
  this._useQuerystring = false;
43
43
  this.binaryHeaders = {};
44
44
  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: 6.0.0
5
+ * The version of the OpenAPI document: 6.2.0
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 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: 6.0.0
6
+ * The version of the OpenAPI document: 6.2.0
7
7
  * Contact: api@xero.com
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -38,7 +38,7 @@ var FinanceApiApiKeys;
38
38
  class FinanceApi {
39
39
  constructor(basePathOrUsername, password, basePath) {
40
40
  this._basePath = defaultBasePath;
41
- this.defaultHeaders = { 'user-agent': 'xero-node-9.0.0' };
41
+ this.defaultHeaders = { 'user-agent': 'xero-node-9.2.0' };
42
42
  this._useQuerystring = false;
43
43
  this.binaryHeaders = {};
44
44
  this.authentications = {
@@ -2,7 +2,7 @@
2
2
  * Xero Payroll AU API
3
3
  * This is the Xero Payroll API for orgs in Australia region.
4
4
  *
5
- * The version of the OpenAPI document: 6.0.0
5
+ * The version of the OpenAPI document: 6.2.0
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 Payroll AU API
4
4
  * This is the Xero Payroll API for orgs in Australia region.
5
5
  *
6
- * The version of the OpenAPI document: 6.0.0
6
+ * The version of the OpenAPI document: 6.2.0
7
7
  * Contact: api@xero.com
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -38,7 +38,7 @@ var PayrollAuApiApiKeys;
38
38
  class PayrollAuApi {
39
39
  constructor(basePathOrUsername, password, basePath) {
40
40
  this._basePath = defaultBasePath;
41
- this.defaultHeaders = { 'user-agent': 'xero-node-9.0.0' };
41
+ this.defaultHeaders = { 'user-agent': 'xero-node-9.2.0' };
42
42
  this._useQuerystring = false;
43
43
  this.binaryHeaders = {};
44
44
  this.authentications = {
@@ -2,7 +2,7 @@
2
2
  * Xero Payroll NZ
3
3
  * This is the Xero Payroll API for orgs in the NZ region.
4
4
  *
5
- * The version of the OpenAPI document: 6.0.0
5
+ * The version of the OpenAPI document: 6.2.0
6
6
  * Contact: api@xero.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -35,6 +35,9 @@ import { EmployeeOpeningBalancesObject } from '../model/payroll-nz/employeeOpeni
35
35
  import { EmployeePayTemplates } from '../model/payroll-nz/employeePayTemplates';
36
36
  import { EmployeeTax } from '../model/payroll-nz/employeeTax';
37
37
  import { EmployeeTaxObject } from '../model/payroll-nz/employeeTaxObject';
38
+ import { EmployeeWorkingPatternWithWorkingWeeksObject } from '../model/payroll-nz/employeeWorkingPatternWithWorkingWeeksObject';
39
+ import { EmployeeWorkingPatternWithWorkingWeeksRequest } from '../model/payroll-nz/employeeWorkingPatternWithWorkingWeeksRequest';
40
+ import { EmployeeWorkingPatternsObject } from '../model/payroll-nz/employeeWorkingPatternsObject';
38
41
  import { Employees } from '../model/payroll-nz/employees';
39
42
  import { Employment } from '../model/payroll-nz/employment';
40
43
  import { EmploymentObject } from '../model/payroll-nz/employmentObject';
@@ -263,6 +266,22 @@ export declare class PayrollNzApi {
263
266
  response: AxiosResponse;
264
267
  body: SalaryAndWageObject;
265
268
  }>;
269
+ /**
270
+ *
271
+ * @summary Creates an employee working pattern
272
+ * @param xeroTenantId Xero identifier for Tenant
273
+ * @param employeeID Employee id for single object
274
+ * @param employeeWorkingPatternWithWorkingWeeksRequest
275
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
276
+ */
277
+ createEmployeeWorkingPattern(xeroTenantId: string, employeeID: string, employeeWorkingPatternWithWorkingWeeksRequest: EmployeeWorkingPatternWithWorkingWeeksRequest, idempotencyKey?: string, options?: {
278
+ headers: {
279
+ [name: string]: string;
280
+ };
281
+ }): Promise<{
282
+ response: AxiosResponse;
283
+ body: EmployeeWorkingPatternWithWorkingWeeksObject;
284
+ }>;
266
285
  /**
267
286
  *
268
287
  * @summary Creates an employment detail for a specific employee
@@ -446,6 +465,21 @@ export declare class PayrollNzApi {
446
465
  response: AxiosResponse;
447
466
  body: SalaryAndWageObject;
448
467
  }>;
468
+ /**
469
+ *
470
+ * @summary deletes employee\'s working patterns
471
+ * @param xeroTenantId Xero identifier for Tenant
472
+ * @param employeeID Employee id for single object
473
+ * @param employeeWorkingPatternID Employee working pattern id for single object
474
+ */
475
+ deleteEmployeeWorkingPattern(xeroTenantId: string, employeeID: string, employeeWorkingPatternID: string, options?: {
476
+ headers: {
477
+ [name: string]: string;
478
+ };
479
+ }): Promise<{
480
+ response: AxiosResponse;
481
+ body: EmployeeLeaveObject;
482
+ }>;
449
483
  /**
450
484
  *
451
485
  * @summary Deletes a timesheet
@@ -689,6 +723,35 @@ export declare class PayrollNzApi {
689
723
  response: AxiosResponse;
690
724
  body: EmployeeTaxObject;
691
725
  }>;
726
+ /**
727
+ *
728
+ * @summary Retrieves employee\'s working patterns
729
+ * @param xeroTenantId Xero identifier for Tenant
730
+ * @param employeeID Employee id for single object
731
+ * @param employeeWorkingPatternID Employee working pattern id for single object
732
+ */
733
+ getEmployeeWorkingPattern(xeroTenantId: string, employeeID: string, employeeWorkingPatternID: string, options?: {
734
+ headers: {
735
+ [name: string]: string;
736
+ };
737
+ }): Promise<{
738
+ response: AxiosResponse;
739
+ body: EmployeeWorkingPatternWithWorkingWeeksObject;
740
+ }>;
741
+ /**
742
+ *
743
+ * @summary Retrieves employee\'s working patterns
744
+ * @param xeroTenantId Xero identifier for Tenant
745
+ * @param employeeID Employee id for single object
746
+ */
747
+ getEmployeeWorkingPatterns(xeroTenantId: string, employeeID: string, options?: {
748
+ headers: {
749
+ [name: string]: string;
750
+ };
751
+ }): Promise<{
752
+ response: AxiosResponse;
753
+ body: EmployeeWorkingPatternsObject;
754
+ }>;
692
755
  /**
693
756
  *
694
757
  * @summary Retrieves employees