Socket
Socket
Sign inDemoInstall

@commercetools-test-data/attribute-definition

Package Overview
Dependencies
26
Maintainers
3
Versions
122
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @commercetools-test-data/attribute-definition

Data model for commercetools API AttributeDefinition


Version published
Maintainers
3
Install size
19.4 MB
Created

Readme

Source

@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>();

Keywords

FAQs

Last updated on 14 Sep 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc