10.9.0 • Published 2 months ago

@commercetools-test-data/attribute-group v10.9.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@commercetools-test-data/attribute-group

This package provides the data model for the commercetools platform attributeGroup representations

https://docs.commercetools.com/api/projects/attribute-groups#attributegroup

Install

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

Usage

import {
  AttributeGroup,
  type TAttributeGroup,
  type TAttributeGroupGraphql,
} from '@commercetools-test-data/attribute-group';

const attributeGroup = AttributeGroup.random().build<TAttributeGroup>();
// For REST entities
const attributeGroupRest = AttributeGroup.random().buildRest<TAttributeGroup>();
// For Graphql entities
const attributeGroupGraphql =
  AttributeGroup.random().buildGraphql<TAttributeGroupGraphql>();