This package has been deprecated

Author message:

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

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

5.11.2 • Public • Published

@commercetools-test-data/attribute-type

This package provides the data models for the commercetools platform `AttributeTypes' representations

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

Install

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

Usage

AttributeBooleanType

import {
  AttributeBooleanType,
  type TAttributeBooleanType,
} from '@commercetools-test-data/attribute-type';

const attributeBooleanType =
  AttributeBooleanType.random().build<TAttributeBooleanType>();

AttributeEnumType

import {
  AttributeEnumType,
  type TAttributeEnumType,
} from '@commercetools-test-data/attribute-type';

const attributeEnumType =
  AttributeEnumType.random().build<TAttributeEnumType>();

AttributeLocalizedEnumValue

import {
  AttributeLocalizedEnumValue,
  type TAttributeLocalizedEnumValue,
  type TAttributeLocalizedEnumValueGraphql,
} from '@commercetools-test-data/attribute-type';

const attributeLocalizedEnumValue =
  AttributePLocalizedEnumValue.random().build<TAttributeLocalizedEnumValue>();

AttributePlainEnumValue

import {
  AttributePlainEnumValue,
  type TAttributePlainEnumValue,
  type TAttributePlainEnumValueGraphql,
} from '@commercetools-test-data/attribute-type';

const attributePlainEnumValue =
  AttributePlainEnumValue.random().build<TAttributePlainEnumValue>();

AttributeTextType

import {
  AttributeTextType,
  type TAttributeTextType,
} from '@commercetools-test-data/attribute-type';

const attributeTextType =
  AttributeTextType.random().build<TAttributeTextType>();

Package Sidebar

Install

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

Weekly Downloads

4,096

Version

5.11.2

License

MIT

Unpacked Size

34.5 kB

Total Files

55

Last publish

Collaborators

  • commercetools-admin
  • emmenko
  • tdeekens