@commercetools-test-data/product-type v8.0.0
@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
- AttributeBooleanType
- AttributeDefinition
- AttributeEnumType
- AttributeLocalizedEnumType
- AttributeLocalizedEnumValue
- AttributeLocalizableTextType
- AttributeNumberType
- AttributePlainEnumValue
- AttributeSetType
- AttributeReferenceType
- AttributeTextType
- ProductType
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 days ago
8 days ago
12 days ago
15 days ago
15 days ago
16 days ago
19 days ago
20 days ago
20 days ago
28 days ago
29 days ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
9 months ago
7 months ago
7 months ago
7 months ago
8 months ago
7 months ago
7 months ago
6 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
7 months ago
6 months ago
10 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
7 months ago
6 months ago
8 months ago
7 months ago
8 months ago
9 months ago
7 months ago
9 months ago
6 months ago
10 months ago
10 months ago
7 months ago
8 months ago
8 months ago
8 months ago
6 months ago
8 months ago
7 months ago
9 months ago
7 months ago
8 months ago
8 months ago
7 months ago
7 months ago
10 months ago
7 months ago
6 months ago
7 months ago
9 months ago
9 months ago
7 months ago
8 months ago
8 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
9 months ago
6 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
10 months ago
9 months ago
8 months ago
8 months ago
9 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
7 months ago
10 months ago
7 months ago
7 months ago
7 months ago
9 months ago
6 months ago
8 months ago
7 months ago
10 months ago
6 months ago
7 months ago
8 months ago
6 months ago
8 months ago
8 months ago
6 months ago
7 months ago
8 months ago
7 months ago
8 months ago
8 months ago
8 months ago
7 months ago
10 months ago
10 months ago
6 months ago
9 months ago
7 months ago
8 months ago
6 months ago
7 months ago
8 months ago
7 months ago
7 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
12 months ago
1 year ago
1 year ago
12 months ago
1 year ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago