commercetools-entities-schemas

1.1.28 • Public • Published

commercetools entities schemas

Reusable commercetools entities schemas definitions

Docs

  • baseTypes

  • address
  • addressDraft
  • asset
  • assetSource
  • attribute
  • baseMoney
  • createdBy
  • customFields
  • dateTime
  • image
  • lastModifiedBy
  • priceDraft
  • reference
  • resourceIdentifier
  • geoJSONGeometry
  • localizedString
  • money
  • reviewRatingStatistics
  • assetDraft
  • customFieldsDraft
  • date
  • key
  • price
  • slug
  • general purpose

  • message
  • pagedQueryResult
  • categories

  • category
  • categoryDraft
  • channel

  • channel
  • channelDraft
  • customer

  • customer
  • customerDraft
  • customerSignInResult
  • customerToken
  • customerGroup

  • customerGroup
  • customerGroupDraft
  • httpApi

  • pagedQueryResult
  • searchParams
  • store

  • store
  • storeDraft
  • taxCategory

  • subRate
  • taxCategory
  • taxCategoryDraft
  • taxRate
  • taxRateDraft
  • discount

  • discountCode
  • cart

  • cart
  • lineItem
  • lineItemDraft
  • order

  • order
  • orderFromCartDraft
  • shippingMethod

  • shippingMethod

Install

npm i commercetools-entities-schemas --save

Usage

After adding it to your project just require the desired schemas.

You can require the specific schema you need:

const address = require("commercetools-entities-schemas/baseTypes/address");

You can also require by group:

const { address } = require("commercetools-entities-schemas/baseTypes");

Or get everything at once:

const schemas = require("commercetools-entities-schemas");

const address = schemas.baseTypes.address

Dependents (0)

Package Sidebar

Install

npm i commercetools-entities-schemas

Weekly Downloads

41

Version

1.1.28

License

ISC

Unpacked Size

190 kB

Total Files

280

Last publish

Collaborators

  • dsanchezdmi
  • rubenbrieva
  • xemayebenes
  • fmoro