Skip to content

Releases: XeroAPI/xero-node

4.2.0

21 Feb 20:18
f81eb91
Compare
Choose a tag to compare

"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

10 Feb 21:00
671a9da
Compare
Choose a tag to compare

"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

04 Feb 21:17
a2dd97c
Compare
Choose a tag to compare

"version": "4.1.5"

  • Relaxes required types for certain objects & parameters

4.1.4

31 Jan 00:51
802c1e7
Compare
Choose a tag to compare
  • Adds Quotes CRUD 🥳
  • Remove a duplicate Enum
  • Improved docs for unitdp
  • Fix filters and where clause where we expect an array. Serializes to api as a comma sep. string

4.1.2

23 Jan 00:33
6c40fa5
Compare
Choose a tag to compare

"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

22 Jan 00:17
Compare
Choose a tag to compare

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

21 Jan 16:18
6240855
Compare
Choose a tag to compare

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

11 Dec 21:55
Compare
Choose a tag to compare

First release after merge ouath2 branch to master and move v3.x to oauth1 branch

v3.1.2

05 Dec 00:53
Compare
Choose a tag to compare

merge PR #274

v3.1.1

02 Oct 23:13
Compare
Choose a tag to compare
  • 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