Skip to content

Commit

Permalink
chore(docs): Updated API Reference (automated) (#10047)
Browse files Browse the repository at this point in the history
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Oli Juhl <[email protected]>
Co-authored-by: Shahed Nasser <[email protected]>
  • Loading branch information
3 people authored Nov 12, 2024
1 parent c3a0123 commit 9e40f34
Show file tree
Hide file tree
Showing 8 changed files with 441 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ properties:
type: array
description: The product variants to update.
items:
$ref: ./AdminUpdateProductVariant.yaml
$ref: ./AdminBatchUpdateProductVariant.yaml
delete:
type: array
description: The product variants to delete.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
type: object
description: The properties to update of a product variant.
x-schemaName: AdminBatchUpdateProductVariant
properties:
title:
type: string
title: title
description: The product variant's title.
sku:
type: string
title: sku
description: The product variant's SKU.
ean:
type: string
title: ean
description: The product variant's EAN.
upc:
type: string
title: upc
description: The product variant's UPC.
barcode:
type: string
title: barcode
description: The product variant's barcode.
hs_code:
type: string
title: hs_code
description: The product variant's HS code.
mid_code:
type: string
title: mid_code
description: The product variant's MID code.
allow_backorder:
type: boolean
title: allow_backorder
description: Whether customers can order the variant even if it's not in stock.
manage_inventory:
type: boolean
title: manage_inventory
description: >-
Whether the Medusa application manages the variant's inventory. If
disabled, the product variant is always considered in stock.
variant_rank:
type: number
title: variant_rank
description: The product variant's rank among its siblings.
weight:
type: number
title: weight
description: The product variant's weight.
length:
type: number
title: length
description: The product variant's length.
height:
type: number
title: height
description: The product variant's height.
width:
type: number
title: width
description: The product variant's width.
origin_country:
type: string
title: origin_country
description: The product variant's origin country.
material:
type: string
title: material
description: The product variant's material.
metadata:
type: object
description: The product variant's metadata, can hold custom key-value pairs.
prices:
type: array
description: The product variant's prices.
items:
$ref: ./AdminCreateProductVariantPrice.yaml
options:
type: object
description: The product variant's options.
id:
type: string
title: id
description: The update's ID.
required:
- id
88 changes: 87 additions & 1 deletion www/apps/api-reference/specs/admin/openapi.full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43651,7 +43651,7 @@ components:
type: array
description: The product variants to update.
items:
$ref: '#/components/schemas/AdminUpdateProductVariant'
$ref: '#/components/schemas/AdminBatchUpdateProductVariant'
delete:
type: array
description: The product variants to delete.
Expand Down Expand Up @@ -43702,6 +43702,92 @@ components:
type: boolean
title: deleted
description: Whether the product variants were deleted.
AdminBatchUpdateProductVariant:
type: object
description: The properties to update of a product variant.
x-schemaName: AdminBatchUpdateProductVariant
properties:
title:
type: string
title: title
description: The product variant's title.
sku:
type: string
title: sku
description: The product variant's SKU.
ean:
type: string
title: ean
description: The product variant's EAN.
upc:
type: string
title: upc
description: The product variant's UPC.
barcode:
type: string
title: barcode
description: The product variant's barcode.
hs_code:
type: string
title: hs_code
description: The product variant's HS code.
mid_code:
type: string
title: mid_code
description: The product variant's MID code.
allow_backorder:
type: boolean
title: allow_backorder
description: Whether customers can order the variant even if it's not in stock.
manage_inventory:
type: boolean
title: manage_inventory
description: Whether the Medusa application manages the variant's inventory. If disabled, the product variant is always considered in stock.
variant_rank:
type: number
title: variant_rank
description: The product variant's rank among its siblings.
weight:
type: number
title: weight
description: The product variant's weight.
length:
type: number
title: length
description: The product variant's length.
height:
type: number
title: height
description: The product variant's height.
width:
type: number
title: width
description: The product variant's width.
origin_country:
type: string
title: origin_country
description: The product variant's origin country.
material:
type: string
title: material
description: The product variant's material.
metadata:
type: object
description: The product variant's metadata, can hold custom key-value pairs.
prices:
type: array
description: The product variant's prices.
items:
$ref: '#/components/schemas/AdminCreateProductVariantPrice'
options:
type: object
description: The product variant's options.
id:
type: string
title: id
description: The update's ID.
required:
- id
AdminCampaign:
type: object
description: The campaign's details.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ properties:
type: array
description: The product variants to update.
items:
$ref: ./AdminUpdateProductVariant.yaml
$ref: ./AdminBatchUpdateProductVariant.yaml
delete:
type: array
description: The product variants to delete.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
type: object
description: The properties to update of a product variant.
x-schemaName: AdminBatchUpdateProductVariant
properties:
title:
type: string
title: title
description: The product variant's title.
sku:
type: string
title: sku
description: The product variant's SKU.
ean:
type: string
title: ean
description: The product variant's EAN.
upc:
type: string
title: upc
description: The product variant's UPC.
barcode:
type: string
title: barcode
description: The product variant's barcode.
hs_code:
type: string
title: hs_code
description: The product variant's HS code.
mid_code:
type: string
title: mid_code
description: The product variant's MID code.
allow_backorder:
type: boolean
title: allow_backorder
description: Whether customers can order the variant even if it's not in stock.
manage_inventory:
type: boolean
title: manage_inventory
description: >-
Whether the Medusa application manages the variant's inventory. If
disabled, the product variant is always considered in stock.
variant_rank:
type: number
title: variant_rank
description: The product variant's rank among its siblings.
weight:
type: number
title: weight
description: The product variant's weight.
length:
type: number
title: length
description: The product variant's length.
height:
type: number
title: height
description: The product variant's height.
width:
type: number
title: width
description: The product variant's width.
origin_country:
type: string
title: origin_country
description: The product variant's origin country.
material:
type: string
title: material
description: The product variant's material.
metadata:
type: object
description: The product variant's metadata, can hold custom key-value pairs.
prices:
type: array
description: The product variant's prices.
items:
$ref: ./AdminCreateProductVariantPrice.yaml
options:
type: object
description: The product variant's options.
id:
type: string
title: id
description: The update's ID.
required:
- id
88 changes: 87 additions & 1 deletion www/apps/api-reference/specs/store/openapi.full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5681,7 +5681,7 @@ components:
type: array
description: The product variants to update.
items:
$ref: '#/components/schemas/AdminUpdateProductVariant'
$ref: '#/components/schemas/AdminBatchUpdateProductVariant'
delete:
type: array
description: The product variants to delete.
Expand Down Expand Up @@ -5732,6 +5732,92 @@ components:
type: boolean
title: deleted
description: Whether the product variants were deleted.
AdminBatchUpdateProductVariant:
type: object
description: The properties to update of a product variant.
x-schemaName: AdminBatchUpdateProductVariant
properties:
title:
type: string
title: title
description: The product variant's title.
sku:
type: string
title: sku
description: The product variant's SKU.
ean:
type: string
title: ean
description: The product variant's EAN.
upc:
type: string
title: upc
description: The product variant's UPC.
barcode:
type: string
title: barcode
description: The product variant's barcode.
hs_code:
type: string
title: hs_code
description: The product variant's HS code.
mid_code:
type: string
title: mid_code
description: The product variant's MID code.
allow_backorder:
type: boolean
title: allow_backorder
description: Whether customers can order the variant even if it's not in stock.
manage_inventory:
type: boolean
title: manage_inventory
description: Whether the Medusa application manages the variant's inventory. If disabled, the product variant is always considered in stock.
variant_rank:
type: number
title: variant_rank
description: The product variant's rank among its siblings.
weight:
type: number
title: weight
description: The product variant's weight.
length:
type: number
title: length
description: The product variant's length.
height:
type: number
title: height
description: The product variant's height.
width:
type: number
title: width
description: The product variant's width.
origin_country:
type: string
title: origin_country
description: The product variant's origin country.
material:
type: string
title: material
description: The product variant's material.
metadata:
type: object
description: The product variant's metadata, can hold custom key-value pairs.
prices:
type: array
description: The product variant's prices.
items:
$ref: '#/components/schemas/AdminCreateProductVariantPrice'
options:
type: object
description: The product variant's options.
id:
type: string
title: id
description: The update's ID.
required:
- id
AdminCampaign:
type: object
description: The campaign's details.
Expand Down
Loading

0 comments on commit 9e40f34

Please sign in to comment.