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

@speakeasy-sdks/pim-sdk

v3.1.0

Published

<div align="center"> <picture> <img src="https://user-images.githubusercontent.com/68016351/222832872-23483018-514d-4cbc-9948-939a0133a829.png" width="500"> </picture> <p>Node SDK for Fabric PIM API.</p> <a href="https://knowledgebas

Downloads

6

Readme

As brands and retailers grow, they often expand their product catalogs, resulting in the need to enrich and manage more product data. fabric product information management (PIM) solution alleviates the burden of managing large amounts of product data by means of a central storage repository. fabric PIM helps you with improved data quality, consistent customer experience, reduced time to market, easy integration with external systems, reduced management costs and risks, faster and easier updates, and easy scaling. You can create, import, enrich, validate, distribute, and manage complex product information, centrally. As a result, you deliver product experiences that drive sales through every channel.

More information on the Fabric PIM API can be found here

SDK Installation

NPM

npm add @speakeasy-sdks/pim-sdk

Yarn

yarn add @speakeasy-sdks/pim-sdk

Authentication

For more details on getting access to the Fabric API please see here

SDK Example Usage

import {
  ModifyAttributeGroupsRequest,
  ModifyAttributeGroupsResponse 
} from "@speakeasy-sdks/pim-sdk/dist/sdk/models/operations";

import { AxiosError } from "axios";
import { Fabric } from "@speakeasy-sdks/pim-sdk";


const sdk = new Fabric();
    
const req: ModifyAttributeGroupsRequest = {
  headers: {
    xSiteContext: {
      account: "unde",
      channel: 5928.45,
      date: "porro",
      stage: "nulla",
    },
  },
  request: {
    attributeGroup: [
      {
        action: "undefined",
        description: "perspiciatis",
        editableAttributes: [
          {
            action: "UPDATE",
            id: "fuga",
            order: 6458.94,
          },
          {
            action: "UPDATE",
            id: "iusto",
            order: 2975.34,
          },
          {
            action: "undefined",
            id: "inventore",
            order: 9636.63,
          },
          {
            action: "UPDATE",
            id: "eum",
            order: 4776.65,
          },
        ],
        id: "autem",
        name: "vel",
        priorityOrder: 5288.95,
        type: "COLLECTION",
      },
      {
        action: "DELETE",
        description: "reprehenderit",
        editableAttributes: [
          {
            action: "undefined",
            id: "quasi",
            order: 3373.96,
          },
          {
            action: "ADD",
            id: "est",
            order: 202.18,
          },
          {
            action: "UPDATE",
            id: "fugiat",
            order: 9571.56,
          },
          {
            action: "undefined",
            id: "eos",
            order: 8700.13,
          },
        ],
        id: "accusamus",
        name: "reiciendis",
        priorityOrder: 4736.08,
        type: "undefined",
      },
      {
        action: "undefined",
        description: "praesentium",
        editableAttributes: [
          {
            action: "undefined",
            id: "soluta",
            order: 1182.74,
          },
          {
            action: "DELETE",
            id: "rerum",
            order: 5820.2,
          },
          {
            action: "ADD",
            id: "sed",
            order: 9446.69,
          },
        ],
        id: "possimus",
        name: "occaecati",
        priorityOrder: 1059.07,
        type: "COLLECTION",
      },
    ],
    transactional: true,
  },
};

sdk.attributes.modifyAttributeGroups(req).then((res: ModifyAttributeGroupsResponse | AxiosError) => {
   // handle response
});

SDK Available Operations

attributes

  • modifyAttributeGroups - Create, update and delete attribute groups
  • modifyAttributeMappings - Create and Update attribute mappings
  • postCategoryAttributeBulk - Create, update and delete category attributes
  • postProductAttributeBulk - Create update and delete item attributes
  • searchAttributeGroups - Find attribute groups
  • searchAttributeMappings - Find attribute mapping

bulkImport

  • itemAttributeFileSearch - Get imported files for item attributes
  • itemBundleFileSearch - Get imported files for bundles
  • fileSearch - Get imported files for items
  • generateCSVfile - Generate CSV template file for items
  • generateItemAttributeCSVfile - Generate CSV template for item attributes
  • generateItemAttributeS3url - Generate S3 bucket URL for item attribute import
  • generateItemBundleCSVfile - Generate CSV template for bundles
  • generateItemBundleS3url - Generate S3 bucket URL for bundle import
  • generateS3url - Generate S3 bucket URL for item import
  • getFileStatus - Get file upload status

category

  • categoryCreate - Create category
  • categoryModify - Modify category
  • getCategoriesById - Get categories
  • getCategoriesNodeSourceExclusions - Get category source exclusions
  • getCategoriesNodeSources - Get category source inclusions
  • getCategoryAttributesByID - Get assigned category attributes
  • getCategoryItemAttributes - Get assigned item attributes
  • getCategoryItemAttributesCondition - Get item attribute conditions
  • getCategorySKUs - Get SKUs in a category
  • getCategoryTree - Get category tree
  • modifyCategoriesNodeSourceExclusions - Add and remove category source exclusions
  • modifyCategoriesNodeSources - Add and remove category source inclusions
  • postCategoryAttributeByID - Assign and unassign category attributes
  • postCategoryItemAttributeByID - Add and remove item attribute conditions
  • postCategoryItemibuteByID - Assign and unassign item attributes
  • searchCategories - Find categories

product

  • createProducts - Create items and bundles
  • getProductAttribute - Get item attributes
  • getProducts - Get items and children items
  • getProductsV2 - Get items and limited children items
  • productSearch - Find items
  • updateBundles - Update items in bundle
  • updateProducts - Update items and bundles
  • upsertProducts - Upsert items and bundles

SDK Generated by Speakeasy