chore(oas): add link for additional info on metadata (#4613)
This commit is contained in:
1 parent
5fcb0d5281
commit
8d0ce0af06
95 files changed
+303
No files matched your search
@@ -100,6 +100,9 @@ export default async (req: Request, res: Response) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs to hold additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostCollectionsReq {
|
||||
@IsString()
|
||||
|
||||
@@ -103,6 +103,9 @@ export default async (req: Request, res: Response) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs to hold additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostCollectionsCollectionReq {
|
||||
@IsString()
|
||||
|
||||
@@ -97,6 +97,9 @@ export default async (req: Request, res: Response) => {
|
||||
* metadata:
|
||||
* type: object
|
||||
* description: Metadata of the customer group.
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostCustomerGroupsReq {
|
||||
@IsString()
|
||||
|
||||
@@ -116,6 +116,9 @@ export default async (req: Request, res: Response) => {
|
||||
* metadata:
|
||||
* description: "Metadata of the customer group."
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostCustomerGroupsGroupReq {
|
||||
@IsString()
|
||||
|
||||
@@ -112,6 +112,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs to hold additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostCustomersReq {
|
||||
@IsEmail()
|
||||
|
||||
@@ -159,6 +159,9 @@ class Group {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs to hold additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostCustomersCustomerReq {
|
||||
@IsEmail()
|
||||
|
||||
@@ -225,6 +225,9 @@ export default async (req: Request, res: Response) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs to hold additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostDiscountsReq {
|
||||
@IsString()
|
||||
|
||||
@@ -112,6 +112,9 @@ export default async (req: Request, res: Response) => {
|
||||
* metadata:
|
||||
* type: object
|
||||
* description: An optional set of key-value pairs to hold additional information.
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostDiscountsDiscountDynamicCodesReq {
|
||||
@IsString()
|
||||
|
||||
@@ -200,6 +200,9 @@ export default async (req: Request, res: Response) => {
|
||||
* metadata:
|
||||
* description: An object containing metadata of the discount
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostDiscountsDiscountReq {
|
||||
@IsString()
|
||||
|
||||
@@ -212,6 +212,9 @@ enum Status {
|
||||
* metadata:
|
||||
* description: The optional key-value map with additional details about the line item.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
* region_id:
|
||||
* description: The ID of the region for the draft order
|
||||
* type: string
|
||||
@@ -252,6 +255,9 @@ enum Status {
|
||||
* metadata:
|
||||
* description: The optional key-value map with additional details about the Draft Order.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostDraftOrdersReq {
|
||||
@IsEnum(Status)
|
||||
|
||||
@@ -167,6 +167,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: The optional key-value map with additional details about the Line Item.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostDraftOrdersDraftOrderLineItemsReq {
|
||||
@IsString()
|
||||
|
||||
@@ -162,6 +162,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: The optional key-value map with additional details about the Line Item.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostDraftOrdersDraftOrderLineItemsItemReq {
|
||||
@IsString()
|
||||
|
||||
@@ -108,6 +108,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs to hold additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostGiftCardsReq {
|
||||
@IsOptional()
|
||||
|
||||
@@ -110,6 +110,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs to hold additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostGiftCardsGiftCardReq {
|
||||
@IsOptional()
|
||||
|
||||
@@ -181,6 +181,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs with additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostInventoryItemsReq {
|
||||
@IsString()
|
||||
|
||||
@@ -115,6 +115,9 @@ export default async (req: Request, res: Response) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs to hold additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostOrderEditsEditLineItemsReq {
|
||||
@IsString()
|
||||
|
||||
@@ -408,6 +408,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs to hold additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostOrdersOrderClaimsReq {
|
||||
@IsEnum(ClaimType)
|
||||
|
||||
@@ -228,6 +228,9 @@ export const updateInventoryAndReservations = async (
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs to hold additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostOrdersOrderFulfillmentsReq {
|
||||
@IsArray()
|
||||
|
||||
@@ -143,6 +143,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs to hold additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
* no_notification:
|
||||
* description: If set to `true`, no notification will be sent to the customer related to this Claim.
|
||||
* type: boolean
|
||||
|
||||
@@ -150,6 +150,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs to hold additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
* no_notification:
|
||||
* description: If set to `true`, no notification will be sent to the customer related to this swap.
|
||||
* type: boolean
|
||||
|
||||
@@ -168,6 +168,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs to hold additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
* shipping_methods:
|
||||
* description: The Shipping Methods to send the additional Line Items with.
|
||||
* type: array
|
||||
@@ -192,6 +195,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs to hold additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostOrdersOrderClaimsClaimReq {
|
||||
@IsArray()
|
||||
|
||||
@@ -95,6 +95,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: A set of key-value pairs to hold additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminUpdatePaymentCollectionsReq {
|
||||
@IsString()
|
||||
|
||||
@@ -500,6 +500,9 @@ class ProductVariantReq {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs with additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
* prices:
|
||||
* type: array
|
||||
* description: An array of product variant prices. A product variant can have different prices for each region or currency code.
|
||||
@@ -570,6 +573,9 @@ class ProductVariantReq {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs with additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostProductsReq {
|
||||
@IsString()
|
||||
|
||||
@@ -225,6 +225,9 @@ class ProductVariantOptionReq {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs with additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
* prices:
|
||||
* type: array
|
||||
* description: An array of product variant prices. A product variant can have different prices for each region or currency code.
|
||||
|
||||
@@ -10,6 +10,9 @@ import { PricingService } from "../../../../services"
|
||||
* operationId: "PostProductsProductMetadata"
|
||||
* summary: "Set Metadata"
|
||||
* description: "Set the metadata of a Product. It can be any key-value pair, which allows adding custom data to a product."
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
* x-authenticated: true
|
||||
* parameters:
|
||||
* - (path) id=* {string} The ID of the Product.
|
||||
|
||||
@@ -492,6 +492,9 @@ class ProductVariantReq {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs with additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
* prices:
|
||||
* type: array
|
||||
* description: An array of product variant prices. A product variant can have different prices for each region or currency code.
|
||||
@@ -563,6 +566,9 @@ class ProductVariantReq {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs with additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostProductsProductReq {
|
||||
@IsString()
|
||||
|
||||
@@ -202,6 +202,9 @@ class ProductVariantOptionReq {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs with additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
* prices:
|
||||
* type: array
|
||||
* description: An array of product variant prices. A product variant can have different prices for each region or currency code.
|
||||
|
||||
@@ -118,6 +118,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs with additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostReservationsReq {
|
||||
@IsString()
|
||||
|
||||
@@ -111,6 +111,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs with additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostReservationsReservationReq {
|
||||
@IsNumber()
|
||||
|
||||
@@ -113,6 +113,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs with additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostReturnReasonsReq {
|
||||
@IsString()
|
||||
|
||||
@@ -110,6 +110,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs with additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostReturnReasonsReasonReq {
|
||||
@IsOptional()
|
||||
|
||||
@@ -181,6 +181,9 @@ class OptionRequirement {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs with additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
* includes_tax:
|
||||
* description: "Tax included in prices of shipping option"
|
||||
* x-featureFlag: "tax_inclusive_pricing"
|
||||
|
||||
@@ -146,6 +146,9 @@ class OptionRequirement {
|
||||
* metadata:
|
||||
* description: "An optional set of key-value pairs with additional information."
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
* requirements:
|
||||
* description: "The requirements that must be satisfied for the Shipping Option to be available."
|
||||
* type: array
|
||||
|
||||
@@ -113,6 +113,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs with additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
* type:
|
||||
* description: The type of the Shipping Profile
|
||||
* type: string
|
||||
|
||||
@@ -180,6 +180,9 @@ class StockLocationAddress {
|
||||
* type: object
|
||||
* description: An optional key-value map with additional details
|
||||
* example: {car: "white"}
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
* address:
|
||||
* description: A new stock location address to create and associate with the stock location. Only required if `address_id` is not provided.
|
||||
* $ref: "#/components/schemas/StockLocationAddressInput"
|
||||
|
||||
@@ -131,6 +131,9 @@ class StockLocationAddress {
|
||||
* type: object
|
||||
* description: An optional key-value map with additional details
|
||||
* example: {car: "white"}
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
* address:
|
||||
* $ref: "#/components/schemas/StockLocationAddressInput"
|
||||
*/
|
||||
|
||||
@@ -115,6 +115,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: "An optional set of key-value pairs with additional information."
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminPostStoreReq {
|
||||
@IsOptional()
|
||||
|
||||
@@ -103,6 +103,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: An optional set of key-value pairs with additional information.
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class AdminUpdateUserRequest {
|
||||
@IsString()
|
||||
|
||||
@@ -157,6 +157,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* type: object
|
||||
* description: An optional key-value map with additional details about the Line Item.
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class StorePostCartsCartLineItemsReq {
|
||||
@IsString()
|
||||
|
||||
@@ -127,6 +127,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* type: object
|
||||
* description: An optional key-value map with additional details about the Line Item. If omitted, the metadata will remain unchanged."
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class StorePostCartsCartLineItemsItemReq {
|
||||
@IsInt()
|
||||
|
||||
@@ -116,6 +116,9 @@ export default async (req, res) => {
|
||||
* metadata:
|
||||
* description: "Additional custom data about the customer."
|
||||
* type: object
|
||||
* externalDocs:
|
||||
* description: "Learn about the metadata attribute, and how to delete and update it."
|
||||
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
||||
*/
|
||||
export class StorePostCustomersCustomerReq {
|
||||
@IsOptional()
|
||||
|
||||
Reference in new issue
Block a user