Comments (9)
The JavaScript Avatax SDK has existing limitations due to the fact that no models are present. When the caller is passing information to a method which will invoke the corresponding Avatax API, they have no idea what the model looks like or is expected without digging through the Avalara documentation on their own.
We have created a Typescript version of the Avatax SDK, which includes full support for models and enums. Javascript and Typescript developers will now get intelisense from any IDE which supports type files. Additionally, they will be able to navigate directly to the model definitions in the IDE and see exactly what is required and optional instead of having to look at some external documentation. We also added documentation for each method in the SDK which describes what the API does and other information.
The new version of the SDK is fully backwards compatible, so existing developers can take advantage of these new, useful features without having to make any changes to their code base.
We are looking for people willing to test out an early version of the SDK.
Steps to use:
- npm install ava-typescript --save
- Replace all require / imports to 'avatax' to 'ava-typescript'
Thank you.
cc: @jakerainis @ajhollowayvrm @cloudworkpro-dave @ryan-efendy @jyeros @awhitford
from avatax-rest-v2-js-sdk.
Inspiration: https://dev.to/open-wc/generating-typescript-definition-files-from-javascript-5bp2
from avatax-rest-v2-js-sdk.
Note that migrating to TypeScript would deprecate Babel.
from avatax-rest-v2-js-sdk.
Any update on the type definitions?
from avatax-rest-v2-js-sdk.
Any update on this?
from avatax-rest-v2-js-sdk.
Anything?
from avatax-rest-v2-js-sdk.
Bumping.
from avatax-rest-v2-js-sdk.
We have released the Typescript version of the JS SDK today (11/3/22), release 22.11.1. Please check it out we welcome any feedback. https://github.com/avadev/AvaTax-REST-V2-JS-SDK/releases/tag/22.11.1
from avatax-rest-v2-js-sdk.
Note to all devs trying ava-typescript: ava-typescript will now be deprecated and unpublished as we released Typescript with the 22.11.1 release on 11-03-22 for Avatax, please point to that release as it will be what we use for Typescript and Javascript moving forward. @awhitford @jakerainis @ryan-efendy @ajhollowayvrm @jyeros
from avatax-rest-v2-js-sdk.
Related Issues (20)
- `createTransaction` returns its `type` property as a `string` instead of the numeric `enum` HOT 7
- uploadCertificateImage does not work as intended HOT 1
- customHttpAgent is not nullable anymore HOT 1
- `voidTransaction` always throws when deleting a transaction even though it successfully deletes it HOT 1
- Can't create new client with Typescript - Docs example doesn't work HOT 4
- CreateTransaction - Can I provide the "final price" and avatax will calculate base price + tax so the final result will be the "final price" HOT 2
- Split shipment ShipFrom value HOT 3
- You forced us to do two `await res.text()`, we got `body used already for:...` HOT 2
- Why is `model` now optional in all the API functions? HOT 1
- Could not find a declaration file for module 'node-fetch' HOT 1
- Addresses undefined when using the `auditTransaction` function HOT 5
- Model required on voidTransaction HOT 3
- Doc: Missing comma (,) in the README.md file for configuration HOT 1
- "invalid json response body" when calling commit endpoint HOT 1
- BaseLogger is not exported
- `timeout` is optional according to README but required by TypeScript HOT 1
- "This document status is incorrect for this operation" with refundTransaction
- Console has an error of ReferenceError after add avatax sdk HOT 2
- Regression: `timeout` is optional according to README but required by TypeScript HOT 2
- DownloadCertificateImage ends with is not valid JSON error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avatax-rest-v2-js-sdk.