Releases: XeroAPI/xero-node
4.9.1
Regenerated from OAS 2.3.7
- Doc reformatting to address breaking doc change in OAS using vendor-extension
- NZ Payroll add statutory deductions and superannuations and supporting methods
- Added accounting api organisations actions
- Two new currency codes BYR & LTL
4.9.0
Generated using Xero-OpenAPI spec v2.3.2
ACCOUNTING
Adds RepeatingInvoiceID to the Invoice model
Adds optional parameter QuoteNumber to getQuotes to facilitate getting quotes by quote number
UK PAYROLL
Breaking change: getPayslips() is now getPaySlips()
NZ PAYROLL
🎉 🍾 Adds NZ PAYROLL api coverage to the xero-node sdk!!! 🎉 🍾
4.8.1
This Release addresses the following:
- It adds a non breaking change to the updatedTenants function that allows you to still get the /connections data on the client without having to have the accoutning.settings scope that calls the /organisations endpoint for each of your active connections. #452
A community member who had > 600 org connections discovered this to be a bug as it made 600 async calls.. The new params defaults true but if you pass .updateTenants(false) it won't do that call.
This was possible because the /connections endpoint now returns the tenantName which was not always the case.
- Allows for configuration of max timeout of the GOT lib openid uses, and sets the default timeout to 2500 ms #448
Thank you to @samuraitruong for the PR contribution to set timeout configuration 🥳
- Includes readme docs for how to access state
4.7.6
Generated using Xero-OpenAPI spec v2.2.10
ACCOUNTING
Add AccountID to ManualJournalLine
Change getQuoteAsPDF method to use QuoteID in path not QuotesID
Fix typo in report name/path for TenNinetyNineContact
AU Payroll
EarningRate - change accrueLeave from boolean to number
4.7.5
Generated using Xero-OpenAPI spec v2.2.7
Adds WAGESPAYABLELIABILITY
AccountType enum for AU-Payroll
HomeAddress
now optional for AU-Payroll Employee
Updates user-agent to reflect new version
Docs still included in repo but no longer included in published package, substantially reducing size.
Fixes bug causing Attachments to not deserialize correctly. See Issue
4.7.4
Generated using Xero-OpenAPI spec v2.2.6
Updates to the docs around some of the examples.
assetTypeId
no longer a required property of AssetType
.
Type changes to AccrueLeave
and NormalEntitlement
under AU Payroll.
Adds user-agent to the default headers formatted xero-node-{version}
.
4.7.3
Generated using Xero-OpenAPI spec v2.2.4
Small update here including adding 'summarizeErrors' to createCreditNoteAllocation
method. Also addressed a security vulnerability caused by an outdated version of 'minimist' being required as a dependency of a dependency.
4.7.2
Generated using Xero-OpenAPI spec v2.2.2
Additionally, changes to non-generated XeroClient code - updated apiCallback
so that this sdk can be used with and without openid scopes and the underlying openid-client functions callback
and oauthCallback
will be called conditionally depending on whether or not the openid scope is called since one validates the tokenset requiring an id_token and the other does not.
4.7.0
Adding the functionality of another XeroAPI set:
Added a new method for Accounting:
- getContactByContactNumber
Removed a method from Accounting:
- getPrepaymentAsPdf
Prepayments are not downloadable as pdf
Changed BankTransfer.amount
from type string to number: src/gen/model/accounting/bankTransfer.ts
4.6.0
Largest changes are adding in the functionality of 2 XeroAPI sets:
Small parameter change to the following methods:
- createInvoiceAttachmentByFileName
- createCreditNoteAttachmentByFileName
The body: fs.ReadStream
& includeOnline?: boolean
Have swapped parameter positions. This was a side effect of bumping to the supported openapi-generator version 4.3.
Added summarizeErrors
to the createPayments()
function
Added function getPrepaymentAsPdf
Added some name convention changes to src/gen/model/accounting/currencyCode.ts
Changed JournalNumber
from type string to number: src/gen/model/accounting/journal.ts
Fix deserialize
function to gracefully handle when we have the wrong types in the spec: src/gen/model/accounting/models.ts
Adds statusAttributeString
to Payment: src/gen/model/accounting/payment.ts
Adds assetTypeId
to Payment: src/gen/model/assets/asset.ts
Adds 2 tax rates to enum: src/gen/model/accounting/taxRate.ts
Adds 4 TaxTypes to enum: src/gen/model/accounting/taxType.ts