Skip to content

Releases: ordercloud-api/ordercloud-javascript-sdk

add requestType to requestOptions and miscellaneous

27 Mar 17:41

Choose a tag to compare

New Features ✨

  • Provide a value that can be used to identify the type of request. Useful for error logs.
  • export OrderCloudError class
  • use cjs module for main which is better for nodejs environemnts

Refactor ♻️

  • set default timeout to 60 seconds

Fix: post/put/patch calls broken

26 Mar 16:43

Choose a tag to compare

Pre-release

Fix Bug(s) 🐛

  • post/put/patch calls not getting token set

Feedback from beta users

25 Mar 21:58

Choose a tag to compare

Pre-release

New Feature(s) ✨

  • You can use axios interceptors to intercept a request before it goes out to the API or to intercept a response before it gets handled by the SDK. This enables you to log, rewrite, or even retry calls.
  • Add Searchable<T> and Sortable<T> typescript helpers that quickly give you searchable types by endpoint. For example Searchable<'Orders.List'> will give you the model expected for searchOn and Sortable<'Orders.List'> will give you the model

Bug Fixes 🐛

  • requestOptions.cancelToken not working on non-auth methods
  • post methods that did not have a body weren't working (Orders.Submit for example)
  • type errors when using filters
  • document breaking changes

handle auth errors, add enum models, and enrich comments

23 Mar 16:20

Choose a tag to compare

New Features(s) ✨

  • Add better comments to operations for better developer experiences. Includes summary, description, and link to api reference for the specific operation. If the IDE supports it (like vscode) you'll also see this information as you're typing.
  • Add enum models. These were previously "inline" enums that were referenced as properties of another model. Now these models exist and can be imported on their own. This includes ApiRole and OrderDirection to name a few

Bug Fixes 🐛

  • update OrderCloudError to handle auth errors. The schema for these types of errors is slightly different and wasn't being handled correctly. Now you can get the message and errors from the exception just like you can for API errors.

:sparkles: Add cancel token and more

06 Mar 23:54

Choose a tag to compare

Pre-release

New Features ✨

  • add axios CancelToken support
  • add prefix cookie option
  • add custom ordercloud error

Bugs 🐛

  • fix return value on tokens
  • fix return value on auth service

Fix post/put/patch calls failing

04 Mar 21:07

Choose a tag to compare

Pre-release

Not sending axios the correct body parameter

bind "this" for all class methods

03 Mar 18:12

Choose a tag to compare

Pre-release

this ensures "this" is never lost if context changes

ensure response model properties always exist and fix auth bug

03 Mar 17:33

Choose a tag to compare

Fixed Bugs 🐛

  • grant_type was incorrect for elevated login as well as client credentials auth methods
  • response model properties are now typed to always exist since we know the API always returns a well-formed response. This wasn't true for nested properties because the built in typescript helper Required only went one level deep. We are now using a custom type RequiredDeep that accounts for nested properties as well.

Bug fixes and improvements

02 Mar 03:19

Choose a tag to compare

Pre-release

Fixes:

  • error parsing jwt on server
  • list calls fail if no options provided

Improvements

  • Add options for cookies
    • domain
    • secure
    • samesite
  • add eslint to project
  • add unit tests for server
  • add helpeful error message when axios isn't loaded

Alpha Release V4

29 Feb 23:43

Choose a tag to compare

Alpha Release V4 Pre-release
Pre-release
4.0.0-1

:bookmark:  v4.0.0-1 alpha release