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

node-rics

v1.0.4

Published

Actieve - Node Library for Rics Access

Downloads

18

Readme

Node-Rics

RICS Api Node JS Library for accessing the Enterprise Rics Services

Installation

npm install node-rics

TypeSript Usage

# Get a value for a gift card

import { Rics, GiftCardsResponse } from 'node-rics';
const API_TOKEN = 'Your Token';
var giftCardNumber = '1234';
var rics = new Rics(API_TOKEN);
var data = await rics.GetGiftCardByNumber(giftCardNumber) as GiftCardsResponse;
console.log(data.GiftCards[0].GiftCardValue);

JavaScript Usage


var ricsLibrary = require('node-rics');

const API_TOKEN = 'Your Token';
var rics = new ricsLibrary.Rics(API_TOKEN);
var query = new ricsLibrary.ProductDetailQuery();
query.SKU = "123046P";

rics.GetProduct(query).then((data) => {
    console.log(data);
});

Functions

    
# Returns the AR Customer Credit Limit
GetArCustomerCreditLimit(customerId: string): Promise<unknown>;

# Returns the custom entries that match the query
GetCustomEntry(types: CustomEntryType[], tagTypes: TagType[]): Promise<unknown>;

# Get a single customer given an email address
GetCustomersByEMail(email: string): Promise<unknown>;

# Get a single customer given the identifier
GetCustomerById(customerId: string): Promise<unknown>;

# Returns the results of a full customer query
GetCustomer(query: CustomerQuery): Promise<unknown>;

# Returns the Customer Details from a Customer Detail Query
GetCustomerDetails(query: CustomerDetailQuery): Promise<unknown>;

# Returns the customer purchase details
GetCustomerPurchaseHistory(customerId: string, take?: Number, skip?: Number): Promise<unknown>;

# Save customer information to the system
SaveCustomer(customer: CustomerInfo): Promise<unknown>;

# List the various discounts in the system
GetDiscountReason(): Promise<unknown>;

# Query for a users frequency rewards
GetFrequentBuyerRewards(customerId: string): Promise<unknown>;

# Look up buyer activity for frequent customers
GetFrequentBuyerActivity(query: BuyerActivityQuery): Promise<unknown>;

# Look up gift card information based on the unique identifier
GetGiftCardById(cardId: string): Promise<unknown>;

# Search for a gift card by a number
GetGiftCardByNumber(cardNumber: string): Promise<unknown>;

# Get the gift card transactions from the Rics System
GetGiftCardTransaction(query: GiftCardTransactionQuery): Promise<unknown>;

# Save the updated information to Rics
SaveGiftCard(info: GiftCardInfo): Promise<unknown>;

# Check the Rics system for inventory
GetInventoryOnHand(query: InventoryQuery): Promise<unknown>;

# Get a list of inventory transactions matching the defined query
GetInventoryTransaction(query: InventoryTransactionQuery): Promise<unknown>;

# Return a list of non sellable batch records
GetNonSellableBatch(query: NonSellableBatchQuery): Promise<unknown>;

# Return a list of non sellable batch details
GetNonSellableBatchDetails(query: NonSellableBatchDetailsQuery): Promise<unknown>;

# Query the system for POS Transactions
GetPOSTransaction(query: PosTransactionQuery): Promise<unknown>;

# Get a list of products that match the query
GetProduct(query: ProductQuery): Promise<unknown>;

# Get a list of product details that match the query
GetProductDetails(query: ProductDetailQuery): Promise<unknown>;

# Search for Purchase Orders
GetPurchaseOrder(query: PurchaseOrderQuery): Promise<unknown>;

# Saves the purchase order to the system
SavePurchaseOrder(po: PurchaseOrder): Promise<unknown>;

# Get any Receipt information from a list of TicketNumbers
GetReceipt(ticketNumbers: string[]): Promise<unknown>;

# Search for sales on a particular salesman
GetSalesBySalesperson(startDate: Date, endDate: Date, salesPersonUsername?: string, sortBy?: SortBy, storeCode?: Number, skip?: Number, take?: Number): Promise<unknown>;

# Search for sales on a particular sku
GetSalesBySKU(startDate: Date, endDate: Date, sku?: string, sortBy?: SortBy, storeCode?: Number, skip?: Number, take?: Number): Promise<unknown>;

# Search for sales for a store code between two dates
GetSalesByStoreCode(startDate: Date, endDate: Date, storeCode: Number, skip?: Number, take?: Number): Promise<unknown>;

# Search for sales for a store code between two dates at a particular time
GetSalesByTimeOfDay(startDate: Date, endDate: Date, storeCode: Number): Promise<unknown>;

# Search for tags assigned to customers
GetCustomerTags(customerId: string[]): Promise<unknown>;

# Query for organized tags in the system
GetOrganizationTags(tagType: string): Promise<unknown>;