Releases: XeroAPI/xero-node
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
4.5.2
4.5.1
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
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
"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
"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
- Added documentation ( https://xeroapi.github.io/xero-node/v4/assets/index.html )
- enums capitalized for assets status
- AssetStatus component added
4.4.5
- Release Assets API for xero-node ( https://developer.xero.com/documentation/assets-api/overview )
- Added documentation for assets and changed directory structure
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
4.4.3
Change functionality of updateTenants()
function to sort connections so the most recent connection / active tenant is index 0
4.4.2
Built from: https://github.com/XeroAPI/Xero-OpenAPI/releases/tag/2.0.2
- Added functionality to for attachments on Quotes 🎉