{"_id":"@agnostack/sync-moltin-to-shipstation","_rev":"1-6d52467cf540cd41496245c880c19ecb","name":"@agnostack/sync-moltin-to-shipstation","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@agnostack/sync-moltin-to-shipstation","version":"1.0.0","author":{"name":"Rob Bowers","email":"rob@uniquelyparticular.com","url":"https://agnostack.com"},"owner":"agnoStack","description":"Please contact agnoStack. via info@uniquelyparticular.com for any questions","keywords":["moltin","shipstation","webhooks","microservices","shipping","ecommerce","integration","aws","agnostack","particular","particular."],"license":"MIT","homepage":"https://github.com/agnostack/sync-moltin-to-shipstation#readme","repository":{"type":"git","url":"git+https://github.com/agnostack/sync-moltin-to-shipstation.git"},"main":"src/index.js","scripts":{"dev":"micro-dev","precommit":"pretty-quick --staged","start":"micro","clean-install":"yarn install --force","test":"jest --passWithNoTests","semantic-release":"semantic-release"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"dependencies":{"@agnostack/shipstation-request":"1.0.1","@moltin/request":"2.0.2","aws-sdk":"2.596.0","micro":"9.3.4","micro-cors":"0.1.1","moment-timezone":"^0.5.27","nodemailer":"6.4.2"},"devDependencies":{"husky":"2.7.0","jest":"24.9.0","micro-dev":"3.0.0","prettier":"1.19.1","pretty-quick":"1.11.1","semantic-release":"15.14.0","ts-jest":"24.2.0"},"publishConfig":{"access":"public"},"gitHead":"78204ba4d613115d9933ea1e51f429c3709fedd4","bugs":{"url":"https://github.com/agnostack/sync-moltin-to-shipstation/issues"},"_id":"@agnostack/sync-moltin-to-shipstation@1.0.0","_nodeVersion":"10.16.3","_npmVersion":"6.13.4","dist":{"integrity":"sha512-NDCdnoI7ZRPicCYehi+X8WbQtKPNB90N8g41YJHhccf0Y0OAaHvSS8EU8HgDY9xWIaf0g5Hg6Z94qnYVnRU5ig==","shasum":"a6c18fbbe04cbc0cbef0f6fef90c15d1194ab605","tarball":"https://registry.npmjs.org/@agnostack/sync-moltin-to-shipstation/-/sync-moltin-to-shipstation-1.0.0.tgz","fileCount":14,"unpackedSize":15361,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeBmjCCRA9TVsSAnZWagAAIjMP/RiPXAVTBGeSp0Mpj//y\nTAXBgoAkdqTFvPlq4ZEbwtU3P+L0e9kknbzpnwlUQ9cijwDiLOIQepZbq5Ns\nC4peY4awdqxhEDkqL8mcWynPN77po0My3sBYE5wXZKfaKzuLmOQweEgH5Yj8\naHItq39K/wPGxrbHYTEohSCBEdshjPHOcq8Ff1x9GIZ3xpJN8t0Q07y0BTwK\n/AyeoE2mgaWrK8h7nzfNbmbWgXgR+5ZNr1zIA6MJagsoINLWOPP5Yg+1K1X5\n5XZA5mIs4eGtV4HnZ3sO1Ah5OqKAmepZxnvwEl1zh5qrAl9poHi0+voJywNN\n5gLmnE1r5qw66gIvEzHXYhrDAfD2Pz0DRPYzK4+st4hmgPnrs/09AXhaWFcQ\nzm8k3MOXx6boe5j9npYcWF+lSgfdXzHnCVaS0s/nDJgHA7axZLM6WTQHiS1b\nV14qTXpAMIjzbxYUCxWPG4h22LcA4/K2F30U3Pc0wxWQL3+ogjqIHWRbWtmV\nXb2tEAOADhw5a5YHa3PTHqvTRuDe3m7wSKcpDPJQzM1MC/GiOW7hA0amNC0Y\nDSCEtMcyTahLQYPmzs5dBzhiootJNO1W6Frea/Wo5mdUd2Yce8BPJz7MphE3\nLBeb8vUkGS3Yta+biBAhMKr1SPwrrmv8Nxa3kGOPPweWT4Iku4iosx9IwvyA\nWSjF\r\n=3t9R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVgL1qknzedPj4+FtxS4FVidC0et69mAXXa8prZJ7nYgIgFsZ8DGj4uHcfUuREWwILVKo26In68S6Prb8C0hR4ems="}]},"maintainers":[{"name":"agrohs","email":"adam@uniquelyparticular.com"}],"_npmUser":{"name":"agrohs","email":"adam@uniquelyparticular.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sync-moltin-to-shipstation_1.0.0_1577478338397_0.6195567224950222"},"_hasShrinkwrap":false}},"time":{"created":"2019-12-27T20:25:38.183Z","1.0.0":"2019-12-27T20:25:38.528Z","modified":"2022-04-04T12:00:14.888Z"},"maintainers":[{"name":"agrohs","email":"adam@uniquelyparticular.com"}],"description":"Please contact agnoStack. via info@uniquelyparticular.com for any questions","homepage":"https://github.com/agnostack/sync-moltin-to-shipstation#readme","keywords":["moltin","shipstation","webhooks","microservices","shipping","ecommerce","integration","aws","agnostack","particular","particular."],"repository":{"type":"git","url":"git+https://github.com/agnostack/sync-moltin-to-shipstation.git"},"author":{"name":"Rob Bowers","email":"rob@uniquelyparticular.com","url":"https://agnostack.com"},"bugs":{"url":"https://github.com/agnostack/sync-moltin-to-shipstation/issues"},"license":"MIT","readme":"# @agnostack/sync-moltin-to-shipstation\n\n[![npm version](https://img.shields.io/npm/v/@agnostack/sync-moltin-to-shipstation.svg)](https://www.npmjs.com/package/@agnostack/sync-moltin-to-shipstation) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![CircleCI](https://img.shields.io/circleci/project/github/agnostack/sync-moltin-to-shipstation.svg?label=circleci)](https://circleci.com/gh/agnostack/sync-moltin-to-shipstation)\n![dependency status: david](https://img.shields.io/david/agnostack/sync-moltin-to-shipstation.svg)\n\n> Create ShipStation shipment and generate label when an order is paid/captured in Moltin\n\nAsynchronous microservice that is triggered by [moltin](https://moltin.com) webhooks to create a [ShipStation](https://www.shipstation.com) shipment.\n\nBuilt with [Micro](https://github.com/zeit/micro)! 🤩\n\n## 🛠 Setup\n\nBoth a [moltin](https://moltin.com) _and_ [ShipStation](https://www.shipstation.com) account are needed for this to function.\n\nCreate a `.env` at the project root with the following credentials:\n\n```dosini\nMOLTIN_CLIENT_ID=\nMOLTIN_CLIENT_SECRET=\nMOLTIN_WEBHOOK_SECRET=\nSHIPSTATION_PUBLIC_KEY=\nSHIPSTATION_SECRET_KEY=\n\n```\n\nFind your `MOLTIN_CLIENT_ID` and `MOLTIN_CLIENT_SECRET` inside of your [moltin Dashboard](https://dashboard.moltin.com)'s API keys.\n\n`MOLTIN_WEBHOOK_SECRET` can be anything you want.\n\nCreate a key to use for `SHIPSTATION_PUBLIC_KEY` and `SHIPSTATION_SECRET_KEY` inside of your [ShipStation Portal](https://ss.shipstation.com/).\n\n## 📦 Package\n\nRun the following command to build the app\n\n```bash\nyarn install\n```\n\nStart the development server\n\n```bash\nyarn dev\n```\n\nThe server will typically start on PORT `3000`, if not, make a note for the next step.\n\nStart ngrok (change ngrok port below from 3000 if yarn dev deployed locally on different port above)\n\n```bash\nngrok http 3000\n```\n\nMake a note of the https `ngrok URL` provided.\n\n## ⛽️ Usage\n\nNext head over to the [moltin Webhook Settings](https://dashboard.moltin.com/app/settings/integrations) area, add a new integration (`Settings > Integrations` and click `Create`).\n\nEnter any name and description for your Integration. Moltin recommends you prefix the name with `DEVELOPMENT:` for any testing.\n\nNext, enter the `ngrok URL` from above and `MOLTIN_WEBHOOK_SECRET` that you saved inside `.env`.\n\n![URL and Secret Key](https://user-images.githubusercontent.com/950181/52846929-ca957980-3102-11e9-9a20-23b8139767ee.png)\n\nNow finally you'll want to configure what Moltin Observables will cause this webhook to be invoked. In this example we want to monitor the `Order` observable and select the `Paid/Captured` box.\n\n![Observes selection](https://user-images.githubusercontent.com/950181/52851227-76dc5d80-310d-11e9-9dff-70b7daaf21e8.png)\n\nClick Save to register your new Webhook with Moltin.\n\n## 🚀 Deploy\n\nYou can easily deploy this function to [now](https://now.sh).\n\n_Contact [Adam Grohs](https://www.linkedin.com/in/adamgrohs/) @ [Particular.](https://uniquelyparticular.com) for any questions._\n","readmeFilename":"README.md"}