Releases: XeroAPI/xero-node
4.2.0
"version": "4.2.0"
-
Added Singapore TaxRates and ReportTaxRates
-
getInvoiceAsPdf and getCreditNoteAsPdf
- removed "contentType" param as it's unnecessary
- changed response content type from application/octet-stream to application/pdf because it will alway return a pdf.
-
Update createEmployees
- add summarizeErrors param
-
Remove createEmployee method (singular - as this path/method)
-
/Employees POST is needed for updateOrCreateEmployees
-
Add updateOrCreateEmployees method
- with summarizeErrors param
-
Update createManualJournals
- add summarizeErrors param
-
Remove createManualJournal method (singular - as this path/method)
-
/ManualJournals POST is needed for updateOrCreateManualJournals
-
Add updateOrCreateManualJournals method
- with summarizeErrors param
-
Remove createOverpaymentAllocation method
-
Add createOverpaymentAllocations method
- with summarizeErrors param
-
Add createPrepaymentAllocations method
- with summarizeErrors param
-
Add missing attributes of Employee object
-
StatusAttributeString
-
ValidationErrors array
-
Add missing attributes of Invoice object
-
Warnings array
-
Add missing attributes of ManualJournal object
-
StatusAttributeString
4.1.7
"version": "4.1.7"
- Fixed file uploads.. Image data was being force encoded in JSON.. Using mime type now
- emailInvoice and functions with an empty response need
json: true
to succeed when its a 204 response - adds some additional types and optionalitities to ceratin functions
4.1.5
4.1.4
4.1.2
"version": "4.1.2"
-
Adds OAuth 2 Gateway to fix ##328 so that we can get Quotes
** NOTE -
getQuotes only endpoint supported, but rest of CRUD actions coming soon!
-
emailInvoice supported
-
Adds Fix for serializer for the numerous dates returned by XeroAPI to fix ##323
Possible raw date formats
"Date": "2009-03-29",
"DateString": "2016-12-16T00:00:00",
"DateUTCString": "2018-02-28T21:02:11",
"createdDateUtc": "2020-01-08T17:26:30.5778680",
MS Format ( this was main problem date )
"FullyPaidOnDate": "\/Date(1481846400000+0000)\/",
ref: https://developer.xero.com/documentation/api/requests-and-responses
"version": "4.1.1"
- Had a bug fix in #337 where the types were not being compiled
4.1.0
Naming Conventions updated - Open API spec only allows us to to single PUT/POST in our generated SDKS - refactoring to enable the supported endpoints. This is a larger change that will enable the generated SDK's to be encompass the full features of the raw API, but does require some painful re-naming.
Semver naming -> MAJOR.MINOR.PATCH
While this is not a backwards compatible (minor) change, we are opting to bounce this to 4.1.0 in lui of a major as the current SDK is relatively new and is getting to a more stable place
ex:
createContact
-> updateOrCreateContacts
createBankTransaction
-> updateOrCreateBankTransactions
This will enable the ability for our SDK's to both batch create/update from a single endpoint based on the payload..
Refer to the generated type files to see the newly expected format of each function. The sample app also has updated examples on each function change: https://github.com/XeroAPI/xero-node-oauth2-app
Remove singular create methods
- createItem
- createContact
- createBankTransaction
- createInvoice
- createPurchaseOrder
Add createOrUpdate bulk methods
-
updateOrCreateItems
-
updateOrCreateContacts
-
updateOrCreateBankTransactions
-
updateOrCreateInvoices
-
createPurchaseOrders
-
Add summarizeError to bulk create and updateOrCreate methods
-
Add missing Enums from
- taxRates
-
Fix datatype for DiscountRate from string to number on lineItem model
-
Add object IDs to ValidationError element array
-
Add statusAttributeString to Contact model
4.0.7
Remove Dist folder
Pass in "check" param into OpenIdClient to check the state on callback.
CreditNote
- HasError - boolean
TaxRate - ReportType enum
EXEMPTCAPITAL
Fixed bulk create for methods
- banktransactions
- contacts
- creditnotes
- employees
- invoices
-items - linkedtransactions
- overpayment (allocations)
- manualjournals
- purchaseorders
v4.0.4
First release after merge ouath2 branch to master and move v3.x to oauth1 branch
v3.1.2
v3.1.1
- BREAKING CHANGE: encodeURIComponent for all non-guid url segments. Fixes #253.
- FIX: Reinstate model attributes that were removed in bad merge commit (3035ce1)
- LineItem.ItemCode
- Contact.ContactNumber #283
- Invoice.BrandingThemeID
- Invoice.CurrencyRate
- Allocation.Amount
Published to https://www.npmjs.com/package/xero-node