Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@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,023 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 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.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.