New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@commercetools-test-data/category

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools-test-data/category

Data model for commercetools API Category

0.0.0-canary-20240912083745
Version published
Weekly downloads
5.4K
46.48%
Maintainers
0
Weekly downloads
 
Created

@commercetools-test-data/category

This package provides the data model for the commercetools platform Category type

https://docs.commercetools.com/api/projects/categories

Install

$ pnpm add -D @commercetools-test-data/category

Usage

import {
  Category,
  CategoryDraft,
  type TCategory,
  type TCategoryDraft,
} from '@commercetools-test-data/category';

const category = Category.random().build<TCategory>();
const categoryDraft = CategoryDraft.random().build<TCategory>();

// Presets
const emptyCategoryDraft = CategoryDraft.presets
  .empty()
  .build<TCategoryDraft>();

FAQs

Package last updated on 12 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts