@commercetools-test-data/channel
TypeScript icon, indicating that this package has built-in type declarations

7.11.0 • Public • Published

@commercetools-test-data/channel

This package provides the data model for the commercetools platform Channel type

https://docs.commercetools.com/api/projects/channels

Install

$ pnpm add -D @commercetools-test-data/channel

Usage

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>();

Package Sidebar

Install

npm i @commercetools-test-data/channel

Weekly Downloads

4,951

Version

7.11.0

License

MIT

Unpacked Size

40 kB

Total Files

16

Last publish

Collaborators

  • emmenko
  • commercetools-admin
  • tdeekens