Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@commercetools-test-data/product
Advanced tools
Data models for commercetools API Product
This package provides the data models for the commercetools platform Product
type representations.
https://docs.commercetools.com/api/projects/products#product
$ pnpm add -D @commercetools-test-data/product
import {
Attribute,
AttributeDraft,
type TAttribute,
type TAttributeDraft,
} from '@commercetools-test-data/product';
const attribute = Attribute.random().build<TAttribute>();
const attributeDraftGraphql =
AttributeDraft.random().buildGraphql<TAttributeDraft>();
import { Image, type TImage } from '@commercetools-test-data/product';
const image = Image.random().build<TImage>();
import {
Product,
ProductDraft,
type TProduct,
type TProductDraft,
} from '@commercetools-test-data/product';
const product = Product.random().build<TProduct>();
const productDraft = ProductDraft.random().build<TProductDraft>();
import {
ProductCatalogData,
type TProductCatalogData,
} from '@commercetools-test-data/product';
const productCatalogData =
ProductCatalogData.random().build<TProductCatalogData>();
import {
ProductData,
type TProductData,
} from '@commercetools-test-data/product';
// For REST entities
const productDataRest = ProductData.random().buildRest<TProductData>();
// For Graphql entities
const productDataGraphql = ProductData.random().buildGraphql<TProductData>();
import {
ProductVariant,
ProductVariantDraft,
type TProductVariant,
type TProductVariantDraft,
} from '@commercetools-test-data/product';
const productVariant = ProductVariant.random().build<TProductVariant>();
const productVariantDraft =
ProductVariantDraft.random().build<TProductVariantDraft>();
FAQs
Data models for commercetools API Product
We found that @commercetools-test-data/product demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.