chore(oas): add missing variant_id to AdminPostInventoryItemsReq schema (#4780)
* chore(oas): add missing variant_id to AdminPostInventoryItemsReq schema * ran build
This commit is contained in:
@@ -4,6 +4,10 @@
|
|||||||
import { SetRelation, Merge } from "../core/ModelUtils"
|
import { SetRelation, Merge } from "../core/ModelUtils"
|
||||||
|
|
||||||
export interface AdminPostInventoryItemsReq {
|
export interface AdminPostInventoryItemsReq {
|
||||||
|
/**
|
||||||
|
* The ID of the variant to create the inventory item for.
|
||||||
|
*/
|
||||||
|
variant_id: string
|
||||||
/**
|
/**
|
||||||
* The unique SKU of the associated Product Variant.
|
* The unique SKU of the associated Product Variant.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import { validator } from "../../../../utils/validator"
|
|||||||
* @oas [post] /admin/inventory-items
|
* @oas [post] /admin/inventory-items
|
||||||
* operationId: "PostInventoryItems"
|
* operationId: "PostInventoryItems"
|
||||||
* summary: "Create an Inventory Item"
|
* summary: "Create an Inventory Item"
|
||||||
* description: "Create an Inventory Item."
|
* description: "Create an Inventory Item for a product variant."
|
||||||
* x-authenticated: true
|
* x-authenticated: true
|
||||||
* parameters:
|
* parameters:
|
||||||
* - (query) expand {string} Comma-separated relations that should be expanded in the returned inventory item.
|
* - (query) expand {string} Comma-separated relations that should be expanded in the returned inventory item.
|
||||||
@@ -130,7 +130,12 @@ export default async (req, res) => {
|
|||||||
/**
|
/**
|
||||||
* @schema AdminPostInventoryItemsReq
|
* @schema AdminPostInventoryItemsReq
|
||||||
* type: object
|
* type: object
|
||||||
|
* required:
|
||||||
|
* - variant_id
|
||||||
* properties:
|
* properties:
|
||||||
|
* variant_id:
|
||||||
|
* description: The ID of the variant to create the inventory item for.
|
||||||
|
* type: string
|
||||||
* sku:
|
* sku:
|
||||||
* description: The unique SKU of the associated Product Variant.
|
* description: The unique SKU of the associated Product Variant.
|
||||||
* type: string
|
* type: string
|
||||||
|
|||||||
Reference in New Issue
Block a user