Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
@commercetools-test-data/product-discount
Advanced tools
Data model for commercetools API ProductDiscount
This package provides the data models for the commercetools platform ProductDiscount
type representations
https://docs.commercetools.com/api/projects/productDiscounts#productdiscount
$ pnpm add -D @commercetools-test-data/product-discount
ProductDiscount
import {
ProductDiscount,
ProductDiscountDraft,
type TProductDiscount,
type TProductDiscountDraft,
} from '@commercetools-test-data/product-discount';
const productDiscount = ProductDiscount.random().build<TProductDiscount>();
const productDiscountDraft =
ProductDiscountDraft.random().build<TProductDiscountDraft>();
ProductDiscountValueAbsolute
import {
ProductDiscountValueAbsolute,
ProductDiscountValueAbsoluteDraft
type TProductDiscountValueAbsolute,
type TProductDiscountValueAbsoluteDraft,
} from '@commercetools-test-data/product-discount';
const productDiscountValueAbsolute =
ProductDiscountValueAbsolute.random().build<TProductDiscountValueAbsolute>();
const productDiscountValueAbsoluteDraft =
ProductDiscountValueAbsoluteDraft.random().build<TProductDiscountValueAbsoluteDraft>();
ProductDiscountValueExternal
import {
ProductDiscountValueExternal,
ProductDiscountValueExternalDraft,
type TProductDiscountValueExternal,
type TProductDiscountValueExternalDraft,
} from '@commercetools-test-data/product-discount';
const productDiscountValueExternal =
ProductDiscountValueExternal.random().build<TProductDiscountValueExternal>();
const productDiscountValueExternalDraft =
ProductDiscountValueExternalDraft.random().build<TProductDiscountValueExternalDraft>();
ProductDiscountValueRelative
import {
ProductDiscountValueRelative,
ProductDiscountValueRelativeDraft,
type TProductDiscountValueRelative,
type TProductDiscountValueRelativeDraft,
} from '@commercetools-test-data/product-discount';
const productDiscountValueRelative =
ProductDiscountValueRelative.random().build<TProductDiscountValueRelative>();
const productDiscountValueRelativeDraft =
ProductDiscountValueRelativeDraft.random().build<TProductDiscountValueRelativeDraft>();
FAQs
Data model for commercetools API ProductDiscount
The npm package @commercetools-test-data/product-discount receives a total of 4,483 weekly downloads. As such, @commercetools-test-data/product-discount popularity was classified as popular.
We found that @commercetools-test-data/product-discount 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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.