@commercetools-test-data/product-selection
此软件包为商务工具平台提供了数据模型 ProductSelection 代表权.
https://docs.com/api/project/produc-selections# 代表文件
安装
$ pnpm add -D @commercetools-test-data/product-selection
使用量
import {
ProductSelection,
ProductSelectionDraft,
type TProductSelection,
type TProductSelectionDraft,
} from '@commercetools-test-data/product-selection';
const productSelection = ProductSelection.random().build<TProductSelection>();
const productSelectionDraft =
ProductSelectionDraft.random().build<TProductSelection>();