
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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
The npm package @commercetools-test-data/product receives a total of 3,112 weekly downloads. As such, @commercetools-test-data/product popularity was classified as popular.
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 3 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.