
Security News
Scaling Socket from Zero to 10,000+ Organizations
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.
@commercetools-test-data/channel
Advanced tools
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
The npm package @commercetools-test-data/channel receives a total of 1,598 weekly downloads. As such, @commercetools-test-data/channel popularity was classified as popular.
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 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
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.

Research
Socket Threat Research maps a rare inside look at OtterCookie’s npm-Vercel-GitHub chain, adding 197 malicious packages and evidence of North Korean operators.

Research
Socket researchers identified a malicious Chrome extension that manipulates Raydium swaps to inject an undisclosed SOL transfer, quietly routing fees to an attacker wallet.