Skip to content

Releases: XeroAPI/xero-node

v5.0.1

07 Feb 06:11
9ce1b55
Compare
Choose a tag to compare

Build from OpenAPI 3.0.0

Bug Fixes

  • #639 | npm audit report
  • #594 | Vulnerability with [email protected]
  • #637 | Looping between versions due to vulnerabilities
  • #659 | The request package used by Node 4.3.0 is depreciated

Full Changelog: v5.0.0...v5.0.1

5.0.0

05 Feb 11:01
7cb5cde
Compare
Choose a tag to compare

BREAKING CHANGE

  • #649 - Changes order of Idempotency key parameter in method definitions
  • Fixes method definitions where required request-body parameters were declared as optional.
    Following methods will have required body parameters now
    • Payroll-AU
      • updateEmployee
      • updatePayRun
      • updatePayslip
      • updateSuperfund
      • updateTimesheet
    • Files
      • uploadFile
      • updateFile
      • uploadFileToFolder
      • createFileAssociation
      • createFolder
    • Bankfeeds
      - createStatements
    • Assets
      - createAssetType

Bug fixes

  • #579 | Get rid of deprecated "request" dependency

4.38.0

30 Jan 13:04
dfbd5a8
Compare
Choose a tag to compare
  • Build from OpenAPI v2.40.3

Full Changelog: 4.37.0...4.38.0

4.37.0

01 Dec 21:50
0886dbf
Compare
Choose a tag to compare

Accounting API

  • Compliance with new IRAS GST rate of 9% starting 2024

Files API

  • Paging parameters have been added to the associations/{objectid} endpoint

4.36.0

30 Aug 18:55
68ee225
Compare
Choose a tag to compare

All APIs

  • Added Idempotency-Key as optional header param for all PUT, POST, PATCH requests

Accounting API

  • Updated 1099 report sample JSON response.
  • Remove the Contact's SkypeUserName field, from the API.Accouting Contact's endpoints.
  • Adds the deletion of allocations to Credit Notes, Prepayments and Overpayments
  • Removed random character in getPurchaseOrderAttachmentByFileName
  • Removed PAYGLIABILITY, SUPERANNUATIONEXPENSE, SUPERANNUATIONLIABILITY, WAGESEXPENSE from AccountType enum

Payroll AU

  • Added two new enum values in LeavePeriodStatus

Finance

  • Cash Validation Api now has rate limiting, there is a new response type added to reflect that.

4.35.0

30 Aug 18:24
df28689
Compare
Choose a tag to compare

AU Payroll API

New endpoints added for expanding Leave functionality for AU Payroll

  • LeaveApplications/v2 GET includes REQUESTED and REJECTED leave applications
  • LeaveApplications/{id}/approve allows for approval of REQUESTED leave applications
  • LeaveApplications/{id}/reject allows for rejection of REQUESTED or SCHEDULED leave applications
    Added detail to LeaveApplications POST example to indicate expected inclusion of other attributes

Accounting API

Create compliance tax rates

4.34.0

19 May 19:20
ac84065
Compare
Choose a tag to compare

Description

Finance API

  • Updates import source description and the example in the BankStatementsPlus Api response doc

Accounting API

  • Added all missing currency codes CLF, EEK, LVL, MRO, MXV, SKK, SLE, STD, VES to enum
  • Fixed 2023 Reverse Charge tax rates for Singapore

4.33.0

16 Feb 18:50
e26224e
Compare
Choose a tag to compare

Generates Xero-Node 4.33.0 from Xero-OpenAPI 2.36.0

Description

Files API

  • Adds getAssociationsCount method to the Files API

Payroll AU API

  • Adds new property PaidLeaveEarnings to the OpeningBalance schema definition
  • Adds new property PayOutType to the LeaveApplication and LeaveEarningsLine schema definitions

Release Notes

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

4.32.0

14 Dec 17:43
b722201
Compare
Choose a tag to compare

Generates Xero-Node 4.32.0 from Xero-OpenAPI 2.35.0

Finance API

  • Adds Indicative Balances and Payee to BankStatementsPlus

Payroll AU API

  • Adds AllowanceContributesToAnnualLeaveRate and AllowanceContributesToOvertimeRate booleans to EarningsRate model

Payroll UK API

  • Update the case in BackPay property of earningsType

Release Notes

  • As part of STP2, two new checkboxes were added for allowance pay items.
  • Resolves Xero-Ruby #241

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

4.31.0

02 Dec 23:12
fc76e2d
Compare
Choose a tag to compare

XeroClient

  • Adds optional configurable httpTimeout
  • Adds optional configurable clockTolerance

Release Notes

const xero = new XeroClient({
  clientId: 'YOUR_CLIENT_ID',
  clientSecret: 'YOUR_CLIENT_SECRET',
  redirectUris: [`http://localhost:${port}/callback`],
  scopes: 'openid profile email accounting.transactions offline_access'.split(" "),
  state: 'returnPage=my-sweet-dashboard', // custom params (optional)
  httpTimeout: 3000, // ms (optional)
  clockTolerance: 10 // seconds (optional)
});
public async initialize(): Promise<XeroClient> {
    if (this.config) {
      custom.setHttpOptionsDefaults({
        retry: {
          maxRetryAfter: this.config.httpTimeout || 3500
        },
        timeout: this.config.httpTimeout || 3500
      })

      const issuer = await Issuer.discover('https://identity.xero.com');
      this.openIdClient = new issuer.Client({
        client_id: this.config.clientId,
        client_secret: this.config.clientSecret,
        redirect_uris: this.config.redirectUris,
      });

      this.openIdClient[custom.clock_tolerance] = this.config.clockTolerance || 5;
    }

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)