Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@commercetools-test-data/channel
Advanced tools
Data model for commercetools API Channel
This package provides the data model for the commercetools platform Channel
type
https://docs.commercetools.com/api/projects/channels
$ pnpm add -D @commercetools-test-data/channel
import {
ChannelRest,
ChannelDraftRest,
ChannelGraphql,
ChannelDraftGraphql,
} from '@commercetools-test-data/inventory-entry';
const channelRest = ChannelRest.random().build();
const channelDraftRest = ChannelDraftRest.random().build();
const channelGraphql = ChannelGraphql.random().build();
const channelDraftGraphql = ChannelDraftGraphql.random().build();
// Presets
const withInventorySupplyAndProductDistributionRolesRest =
ChannelDraftRest.presets
.withInventorySupplyAndProductDistributionRoles()
.build();
const withInventorySupplyAndProductDistributionRolesGraphql =
ChannelDraftGraphql.presets
.withInventorySupplyAndProductDistributionRoles()
.build();
For backwards compatibility, we still support using the generic data models, but you should consider them legacy as we will be removing them in the future.
import {
Channel,
ChannelDraft,
type TChannel,
type TChannelDraft,
} from '@commercetools-test-data/channel';
const channel = Channel.random().build<TChannel>();
const channelDraft = ChannelDraft.random().build<TChannelDraft>();
// Presets
const withInventorySupplyAndProductDistributionRoles = ChannelDraft.presets
.withInventorySupplyAndProductDistributionRoles()
.build<TChannelDraft>();
FAQs
Data model for commercetools API Channel
We found that @commercetools-test-data/channel 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
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.