This package has been deprecated

Author message:

Use the @commercetools-test-data/product-type package instead

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

5.11.2 • Public • Published

@commercetools-test-data/attribute-definition

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

https://docs.commercetools.com/api/projects/productTypes#attributedefinition

Install

$ pnpm add -D @commercetools-test-data/attribute-definition

Usage

import {
  AttributeDefinition,
  AttributeDefinitionDraft,
  type TAttributeDefinition,
  type TAttributeDefinitionDraft,
} from '@commercetools-test-data/attribute-definition';

const attributeDefinition =
  AttributeDefinition.random().build<TAttributeDefinition>();

const attributeDefinitionDraft =
  AttributeDefinitionDraft.random().build<TAttributeDefinitionDraft>();

// Presets
const emptyAttributeDefinitionPreset = AttributeDefinitionDraft.presets
  .empty()
  .build<TAttributeDefinitionDraft>();

Versions

Current Tags

VersionDownloads (Last 7 Days)Published

Version History

VersionDownloads (Last 7 Days)Published

Package Sidebar

Install

npm i @commercetools-test-data/attribute-definition

Weekly Downloads

644

Version

5.11.2

License

MIT

Unpacked Size

19.4 kB

Total Files

22

Last publish

Collaborators

  • commercetools-admin
  • emmenko
  • tdeekens