@commercetools-test-data/category
v10.11.1
Published
Data model for commercetools API Category
Downloads
20,154
Readme
@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>();