8.0.0 • Published 8 days ago

@commercetools-test-data/product-type v8.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 days ago

@commercetools-test-data/product-type

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

https://docs.commercetools.com/api/projects/productTypes#product-types

Install

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

Usage

AttributeDefinition

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

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

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

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

AttributeBooleanType

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

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

AttributeEnumType

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

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

AttributeLocalizedEnumType

import {
  AttributeLocalizedEnumType,
  type TAttributeLocalizedEnumType,
  type TAttributeLocalizedEnumValueGraphql,
} from '@commercetools-test-data/product-type';

const attributeLocalizedEnumType =
  AttributePLocalizedEnumType.random().build<TAttributeLocalizedEnumValue>();

AttributeLocalizedEnumValue

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

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

AttributeLocalizableTextType

import {
  AttributeLocalizableTextType,
  type TAttributeLocalizableTextType,
} from '@commercetools-test-data/product-type';

const attributeLocalizableTextType =
  AttributeLocalizableTextType.random().build<TattributeLocalizableTextType>();

AttributeNumberType

import {
  AttributeNumberType,
  type TAttributeNumberType,
} from '@commercetools-test-data/product-type';

const attributeNumberType =
  AttributeNumberType.random().build<TAttributeNumberType>();

AttributePlainEnumValue

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

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

AttributeSetType

import {
  AttributeSetType,
  type TAttributeSetType,
} from '@commercetools-test-data/product-type';

const attributeSetType = AttributeSetType.random().build<TAttributeSetType>();

AttributeReferenceType

import {
  AttributeReferenceType,
  type TAttributeReferenceType,
} from '@commercetools-test-data/product-type';

const attributeReferenceType =
  AttributeReferenceType.random().build<TAttributeReferenceType>();

AttributeTextType

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

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

ProductType

import {
  ProductType,
  ProductTypeDraft,
  type TProductType,
  type TProductTypeDraft,
} from '@commercetools-test-data/product-type';

const productType = ProductType.random().build<TProductType>();
const productTypeDraft = ProductTypeDraft.random().build<TProductTypeDraft>();

// Presets
const emptyProductTypeDraft = ProductTypeDraft.presets
  .empty()
  .build<TProductTypeDraft>();
8.0.0

8 days ago

7.11.0

15 days ago

7.10.0

20 days ago

7.9.1

1 month ago

7.9.0

1 month ago

7.8.0

1 month ago

7.6.0

1 month ago

7.7.1

1 month ago

7.7.0

1 month ago

7.5.0

2 months ago

7.4.0

2 months ago

7.3.0

2 months ago

7.2.13

2 months ago

7.2.12

2 months ago

7.2.11

2 months ago

7.2.10

2 months ago

7.2.9

2 months ago

7.2.8

2 months ago

7.2.7

2 months ago

7.2.6

2 months ago

7.2.5

2 months ago

7.2.4

2 months ago

7.2.3

2 months ago

7.2.2

2 months ago

7.2.1

2 months ago

7.1.1

2 months ago

7.1.0

2 months ago

7.2.0

2 months ago

7.0.0

3 months ago

6.11.0

4 months ago

6.10.0

4 months ago

6.9.0

5 months ago

6.8.1

5 months ago

6.8.0

5 months ago

6.1.0

7 months ago

6.1.1

7 months ago

6.5.0

6 months ago

5.11.2

8 months ago

5.11.1

8 months ago

5.11.0

8 months ago

6.6.0

6 months ago

5.8.2

9 months ago

5.8.1

10 months ago

5.8.0

10 months ago

6.2.0

7 months ago

6.3.4

7 months ago

6.3.3

7 months ago

6.3.6

7 months ago

6.3.5

7 months ago

6.3.8

7 months ago

6.3.7

7 months ago

5.9.0

9 months ago

6.3.0

7 months ago

6.3.2

7 months ago

6.3.1

7 months ago

6.4.2

6 months ago

6.0.0

8 months ago

6.4.1

6 months ago

6.4.0

7 months ago

5.10.1

8 months ago

5.10.0

8 months ago

5.7.0

10 months ago

5.5.1

11 months ago

5.5.0

11 months ago

5.6.0

11 months ago

5.4.1

11 months ago

5.4.0

11 months ago

5.3.6

11 months ago

5.3.5

11 months ago

5.3.3

12 months ago

5.3.2

12 months ago

5.3.1

12 months ago

5.3.0

12 months ago

5.1.1

12 months ago

5.1.0

12 months ago

5.2.0

12 months ago

5.0.0

1 year ago

5.3.4

12 months ago

4.11.0

1 year ago

4.11.1

1 year ago

4.10.0

1 year ago