@shipengine/toll-shipping
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

Toll Shared Library

This is a shared library used by Toll Group carriers integrated into SE Connect.

The following environment variables are required for any SE Connect App referencing this library:

  • BASIC_AUTH_USER - Toll API User Name
  • PASSWORD_UAT - Toll API Test Password
  • PASSWORD_PRD - Toll API Production Password

To get the required files and fonts for label-gen, you may need to copy-paste the static folder into the root directory of the connect runtime.

Documentation

Documentation for the Toll API is in the /docs folder.

Test Changes Locally

To test changes in this shared library without publishing, run npm link in this directory and then switch to the SE Connect App directory and run npm link @shipengine/toll-shipping.

  • Make sure to run npm run build in this directory when any change is made.

Unit Tests

Tests are located under src/utils/__tests__. Use npm run test to run them.

Build Tracking Events

Run npm run convert-tracking-events to convert csv tracking event data into json.

  • This script should be ran if any csv data file is added or updated.
  • There should be a csv file in src/data for each Business ID supported. Business IDs are defined in src/utils/constants.ts.

Push Updates

  • Make sure the latest changes are built with npm run build and unit tests succeed with npm run test.
  • Increment the minor version in package.json then run npm install to increment version in package-lock.json
  • Preview the package contents with npm publish --dry-run to make sure everything looks correct.
  • Run npm publish and the public npm library should have its version incremented.
    • The library will become available to install in the Toll SE Connect Apps.
  • Note: You will need to create an account on the npm website and request permissions to publish from the IT Help Desk.

Readme

Keywords

none

Package Sidebar

Install

npm i @shipengine/toll-shipping

Weekly Downloads

0

Version

1.1.3

License

none

Unpacked Size

973 kB

Total Files

226

Last publish

Collaborators

  • arjun.modi
  • christian.casado
  • lzhang
  • lukasz.parala
  • deeepawesome
  • akowalczyk
  • ddygas
  • pspringerauct
  • dangnguyen91
  • arapicki
  • prasadjoshi29
  • zjaholkowska
  • maciej_sabik_auctane
  • kdobrzynskiactn
  • bmusielak
  • mmilowska
  • bartoszzurawski
  • mspiaczka-auctane
  • maciej_adamek
  • marcin_karwat_auctane
  • krzysztof.malcher
  • auctome
  • sushithegreat
  • agustin.martin.auctane
  • brock.bouchard.auctane
  • auctane.joshua.semar
  • romofel
  • chunter-auctane
  • luxehahn
  • jeffrysparrow
  • uiuxdeveloper
  • ckroutterauctane
  • shipengine_it
  • kaseycantu-se
  • joshuaflanagan
  • anthonyshull
  • binkard-auctane
  • dlblom
  • rickyr
  • dbernazal
  • auc-rhibbeler
  • harris.butler