npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rfk-oc-feed-importer

v1.1.3

Published

A tool to import a Reflektion feed into OrderCloud

Downloads

14

Readme

Overview

This command line interface allows you to take a reflektion product & category feed and use it to generate a set of associated products and categories in an OrderCloud marketplace.

The main goal is to give Sitecore partners the ability to quickly play with both set of APIs. Reflektion does not currently support self-service creation of new instances. To work around that limitation, our plan is to grant partners access to a shared reflektion instance which they can then use to seed their own OrderCloud instance. Long term, we want to be able to allow any developer to be able to create their own reflektion instance.

Known limitations

This tool is only meant to generate B2C scenarios. Reflektion does have some support for B2B use cases but we have not fleshed out what that would look like yet (that is next on our roadmap).

Requirements

⚙️ Installation

npm install --global rfk-oc-feed-importer

Usage

Usage: cli [options]

A tool to import a Reflektion feed into OrderCloud

Options:
  -v, --version                              output the version number
  -u, --username <string>                    username for portal credentials https://ordercloud.io/
  -p, --password <string>                    password for portal credentials https://ordercloud.io/
  -m --marketplaceID <string>                ID for the OrderCloud marketplace where products should be loaded into
  -t, --template <type>                      an existing template feed (choices: "riggsandporter", default: "riggsandporter")
  -f, --productFilePath <path>               filepath to a reflektion product feed, should adhere to reflektion standard     
  -c, --categoryFilePath <path>              filepath to a reflektion category feed, should adhere to reflektion standard    
  -b, --buyerID <string>                     (Optional) ID of an EXISTING buyer
  -x, --catalogID <string>                   (Optional) ID of an EXISTING catalog
  -e, --environment <ordercloudenvironment>   (choices: "sandbox", "staging", "production", default: "sandbox")
  -h, --help                                 display help for command

Examples

The shortest possible syntax

importfeed -u myusername -p mypassword -m mymarketplaceid

This will import products and categories from the riggsandporter template into your ordercloud marketplace

Using an existing catalog and buyer

importfeed -u myusername -p mypassword -m mymarketplaceid -b mybuyerid -x mycatalogid

This will load products and categories into the provided catalog and make those products & categories visible to the provided buyer

Using your own reflektion feed files

importfeed -u myusername -p mypassword -m mymarketplaceid -f path/to/my/product-feed.csv -c path/to/mycategory-feed.csv

Instead of using the templates stored in our application, you can provide your own reflektion feeds but they should match the format of the existing feeds used in the template. Check out /templates folder