Skip to content

Releases: XeroAPI/xero-node

4.6.0

15 May 18:39
2d78c92
Compare
Choose a tag to compare

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

4.5.2

08 May 23:37
1602e0d
Compare
Choose a tag to compare

Generated based on https://github.com/XeroAPI/Xero-OpenAPI/releases/tag/2.1.2

Closes #415

Fixes deserialization bug for when ain integer was typed string: #412

4.5.1

14 Apr 19:55
a203fc5
Compare
Choose a tag to compare

Refresh token without dependencies

Closes #396

  const tokenSet = getTokenSetFromUserId(user.id) // example function
  const newXeroClient = new XeroClient()
  const newTokenSet = await newXeroClient.refreshWithRefreshToken(xero_client_id, xero_client_secret, tokenSet.refresh_token)

Also released with OAS 2.0.9 https://github.com/XeroAPI/Xero-OpenAPI/releases/tag/2.0.9
add 2 missing ENUMs from EarningsType
ASSETS

change example response case for assetStatus
IDENTITY
Add tenantName to Get /connections object

And regenerated with openapi-generator version 4.3.0

4.4.9

08 Apr 17:42
44c9999
Compare
Choose a tag to compare

ACCOUNTING
Add getPurchaseOrderAsPdf methodASSETS
Add Error objects and Validation arrays

GET Assets requires a Status in ALL Caps otherwise you'll receive a 403 "Forbidden".

CREATE or GET Assets deserializes JSON responses into the Assets object where the Status is Init Caps.

For this reason the same component in our OpenAPI spec will not support both use cases without throwing an error for missing enums due to case sensitivity

4.4.8

27 Mar 19:49
734016f
Compare
Choose a tag to compare

"version": "4.4.8"
PROJECTS

Add projects functionality to xero-node (https://developer.xero.com/documentation/projects/overview-projects)
ASSETS

Fix array serialization bug for assets api

4.4.7

26 Mar 00:11
a97dfd9
Compare
Choose a tag to compare

"version": "4.4.7"

Generated as per OAS 2.0.6

Fixed deserialization of a few fields that were using the MS date format: #385

ACCOUNTING

  • updateEmployee singular not supported by API - removed
  • Add getQuotesAsPDF

ASSETS

4.4.5

20 Mar 20:35
Compare
Choose a tag to compare

Version 3 (OAuth1.0a documentation) https://xeroapi.github.io/xero-node/v3/index.html (deprecated)
Accounting API documentation: https://xeroapi.github.io/xero-node/v4/accounting/index.html
Assets API documentation: https://xeroapi.github.io/xero-node/v4/assets/index.html

4.4.4

11 Mar 22:02
418c9a0
Compare
Choose a tag to compare
  • getPurchaseOrderByNumber

4.4.3

04 Mar 21:21
9bde56a
Compare
Choose a tag to compare

Change functionality of updateTenants() function to sort connections so the most recent connection / active tenant is index 0

4.4.2

28 Feb 23:53
694857e
Compare
Choose a tag to compare

Built from: https://github.com/XeroAPI/Xero-OpenAPI/releases/tag/2.0.2

  • Added functionality to for attachments on Quotes 🎉