chore(oas): add link for additional info on metadata (#4613)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2023-07-27 12:44:16 +03:00
1 parent 5fcb0d5281
commit 8d0ce0af06
95 files changed
+303

No files matched your search

@@ -41,4 +41,8 @@ export interface SalesChannel {
* The date with timezone at which the resource was deleted. * The date with timezone at which the resource was deleted.
*/ */
deleted_at: string | null deleted_at: string | null
/**
* An optional key-value map with additional details
*/
metadata?: Record<string, any> | null
} }
@@ -100,6 +100,9 @@ export default async (req: Request, res: Response) => {
* metadata: * metadata:
* description: An optional set of key-value pairs to hold additional information. * description: An optional set of key-value pairs to hold additional information.
* type: object * 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 { export class AdminPostCollectionsReq {
@IsString() @IsString()
@@ -103,6 +103,9 @@ export default async (req: Request, res: Response) => {
* metadata: * metadata:
* description: An optional set of key-value pairs to hold additional information. * description: An optional set of key-value pairs to hold additional information.
* type: object * 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 { export class AdminPostCollectionsCollectionReq {
@IsString() @IsString()
@@ -97,6 +97,9 @@ export default async (req: Request, res: Response) => {
* metadata: * metadata:
* type: object * type: object
* description: Metadata of the customer group. * 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 { export class AdminPostCustomerGroupsReq {
@IsString() @IsString()
@@ -116,6 +116,9 @@ export default async (req: Request, res: Response) => {
* metadata: * metadata:
* description: "Metadata of the customer group." * description: "Metadata of the customer group."
* type: object * 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 { export class AdminPostCustomerGroupsGroupReq {
@IsString() @IsString()
@@ -112,6 +112,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: An optional set of key-value pairs to hold additional information. * description: An optional set of key-value pairs to hold additional information.
* type: object * 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 { export class AdminPostCustomersReq {
@IsEmail() @IsEmail()
@@ -159,6 +159,9 @@ class Group {
* metadata: * metadata:
* description: An optional set of key-value pairs to hold additional information. * description: An optional set of key-value pairs to hold additional information.
* type: object * 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 { export class AdminPostCustomersCustomerReq {
@IsEmail() @IsEmail()
@@ -225,6 +225,9 @@ export default async (req: Request, res: Response) => {
* metadata: * metadata:
* description: An optional set of key-value pairs to hold additional information. * description: An optional set of key-value pairs to hold additional information.
* type: object * 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 { export class AdminPostDiscountsReq {
@IsString() @IsString()
@@ -112,6 +112,9 @@ export default async (req: Request, res: Response) => {
* metadata: * metadata:
* type: object * type: object
* description: An optional set of key-value pairs to hold additional information. * 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 { export class AdminPostDiscountsDiscountDynamicCodesReq {
@IsString() @IsString()
@@ -200,6 +200,9 @@ export default async (req: Request, res: Response) => {
* metadata: * metadata:
* description: An object containing metadata of the discount * description: An object containing metadata of the discount
* type: object * 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 { export class AdminPostDiscountsDiscountReq {
@IsString() @IsString()
@@ -212,6 +212,9 @@ enum Status {
* metadata: * metadata:
* description: The optional key-value map with additional details about the line item. * description: The optional key-value map with additional details about the line item.
* type: object * 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: * region_id:
* description: The ID of the region for the draft order * description: The ID of the region for the draft order
* type: string * type: string
@@ -252,6 +255,9 @@ enum Status {
* metadata: * metadata:
* description: The optional key-value map with additional details about the Draft Order. * description: The optional key-value map with additional details about the Draft Order.
* type: object * 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 { export class AdminPostDraftOrdersReq {
@IsEnum(Status) @IsEnum(Status)
@@ -167,6 +167,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: The optional key-value map with additional details about the Line Item. * description: The optional key-value map with additional details about the Line Item.
* type: object * 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 { export class AdminPostDraftOrdersDraftOrderLineItemsReq {
@IsString() @IsString()
@@ -162,6 +162,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: The optional key-value map with additional details about the Line Item. * description: The optional key-value map with additional details about the Line Item.
* type: object * 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 { export class AdminPostDraftOrdersDraftOrderLineItemsItemReq {
@IsString() @IsString()
@@ -108,6 +108,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: An optional set of key-value pairs to hold additional information. * description: An optional set of key-value pairs to hold additional information.
* type: object * 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 { export class AdminPostGiftCardsReq {
@IsOptional() @IsOptional()
@@ -110,6 +110,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: An optional set of key-value pairs to hold additional information. * description: An optional set of key-value pairs to hold additional information.
* type: object * 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 { export class AdminPostGiftCardsGiftCardReq {
@IsOptional() @IsOptional()
@@ -181,6 +181,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: An optional set of key-value pairs with additional information. * description: An optional set of key-value pairs with additional information.
* type: object * 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 { export class AdminPostInventoryItemsReq {
@IsString() @IsString()
@@ -115,6 +115,9 @@ export default async (req: Request, res: Response) => {
* metadata: * metadata:
* description: An optional set of key-value pairs to hold additional information. * description: An optional set of key-value pairs to hold additional information.
* type: object * 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 { export class AdminPostOrderEditsEditLineItemsReq {
@IsString() @IsString()
@@ -408,6 +408,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: An optional set of key-value pairs to hold additional information. * description: An optional set of key-value pairs to hold additional information.
* type: object * 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 { export class AdminPostOrdersOrderClaimsReq {
@IsEnum(ClaimType) @IsEnum(ClaimType)
@@ -228,6 +228,9 @@ export const updateInventoryAndReservations = async (
* metadata: * metadata:
* description: An optional set of key-value pairs to hold additional information. * description: An optional set of key-value pairs to hold additional information.
* type: object * 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 { export class AdminPostOrdersOrderFulfillmentsReq {
@IsArray() @IsArray()
@@ -143,6 +143,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: An optional set of key-value pairs to hold additional information. * description: An optional set of key-value pairs to hold additional information.
* type: object * 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: * no_notification:
* description: If set to `true`, no notification will be sent to the customer related to this Claim. * description: If set to `true`, no notification will be sent to the customer related to this Claim.
* type: boolean * type: boolean
@@ -150,6 +150,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: An optional set of key-value pairs to hold additional information. * description: An optional set of key-value pairs to hold additional information.
* type: object * 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: * no_notification:
* description: If set to `true`, no notification will be sent to the customer related to this swap. * description: If set to `true`, no notification will be sent to the customer related to this swap.
* type: boolean * type: boolean
@@ -168,6 +168,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: An optional set of key-value pairs to hold additional information. * description: An optional set of key-value pairs to hold additional information.
* type: object * 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: * shipping_methods:
* description: The Shipping Methods to send the additional Line Items with. * description: The Shipping Methods to send the additional Line Items with.
* type: array * type: array
@@ -192,6 +195,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: An optional set of key-value pairs to hold additional information. * description: An optional set of key-value pairs to hold additional information.
* type: object * 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 { export class AdminPostOrdersOrderClaimsClaimReq {
@IsArray() @IsArray()
@@ -95,6 +95,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: A set of key-value pairs to hold additional information. * description: A set of key-value pairs to hold additional information.
* type: object * 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 { export class AdminUpdatePaymentCollectionsReq {
@IsString() @IsString()
@@ -500,6 +500,9 @@ class ProductVariantReq {
* metadata: * metadata:
* description: An optional set of key-value pairs with additional information. * description: An optional set of key-value pairs with additional information.
* type: object * 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: * prices:
* type: array * type: array
* description: An array of product variant prices. A product variant can have different prices for each region or currency code. * 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: * metadata:
* description: An optional set of key-value pairs with additional information. * description: An optional set of key-value pairs with additional information.
* type: object * 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 { export class AdminPostProductsReq {
@IsString() @IsString()
@@ -225,6 +225,9 @@ class ProductVariantOptionReq {
* metadata: * metadata:
* description: An optional set of key-value pairs with additional information. * description: An optional set of key-value pairs with additional information.
* type: object * 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: * prices:
* type: array * type: array
* description: An array of product variant prices. A product variant can have different prices for each region or currency code. * 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" * operationId: "PostProductsProductMetadata"
* summary: "Set Metadata" * 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." * 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 * x-authenticated: true
* parameters: * parameters:
* - (path) id=* {string} The ID of the Product. * - (path) id=* {string} The ID of the Product.
@@ -492,6 +492,9 @@ class ProductVariantReq {
* metadata: * metadata:
* description: An optional set of key-value pairs with additional information. * description: An optional set of key-value pairs with additional information.
* type: object * 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: * prices:
* type: array * type: array
* description: An array of product variant prices. A product variant can have different prices for each region or currency code. * 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: * metadata:
* description: An optional set of key-value pairs with additional information. * description: An optional set of key-value pairs with additional information.
* type: object * 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 { export class AdminPostProductsProductReq {
@IsString() @IsString()
@@ -202,6 +202,9 @@ class ProductVariantOptionReq {
* metadata: * metadata:
* description: An optional set of key-value pairs with additional information. * description: An optional set of key-value pairs with additional information.
* type: object * 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: * prices:
* type: array * type: array
* description: An array of product variant prices. A product variant can have different prices for each region or currency code. * 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: * metadata:
* description: An optional set of key-value pairs with additional information. * description: An optional set of key-value pairs with additional information.
* type: object * 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 { export class AdminPostReservationsReq {
@IsString() @IsString()
@@ -111,6 +111,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: An optional set of key-value pairs with additional information. * description: An optional set of key-value pairs with additional information.
* type: object * 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 { export class AdminPostReservationsReservationReq {
@IsNumber() @IsNumber()
@@ -113,6 +113,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: An optional set of key-value pairs with additional information. * description: An optional set of key-value pairs with additional information.
* type: object * 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 { export class AdminPostReturnReasonsReq {
@IsString() @IsString()
@@ -110,6 +110,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: An optional set of key-value pairs with additional information. * description: An optional set of key-value pairs with additional information.
* type: object * 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 { export class AdminPostReturnReasonsReasonReq {
@IsOptional() @IsOptional()
@@ -181,6 +181,9 @@ class OptionRequirement {
* metadata: * metadata:
* description: An optional set of key-value pairs with additional information. * description: An optional set of key-value pairs with additional information.
* type: object * 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: * includes_tax:
* description: "Tax included in prices of shipping option" * description: "Tax included in prices of shipping option"
* x-featureFlag: "tax_inclusive_pricing" * x-featureFlag: "tax_inclusive_pricing"
@@ -146,6 +146,9 @@ class OptionRequirement {
* metadata: * metadata:
* description: "An optional set of key-value pairs with additional information." * description: "An optional set of key-value pairs with additional information."
* type: object * 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: * requirements:
* description: "The requirements that must be satisfied for the Shipping Option to be available." * description: "The requirements that must be satisfied for the Shipping Option to be available."
* type: array * type: array
@@ -113,6 +113,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: An optional set of key-value pairs with additional information. * description: An optional set of key-value pairs with additional information.
* type: object * 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: * type:
* description: The type of the Shipping Profile * description: The type of the Shipping Profile
* type: string * type: string
@@ -180,6 +180,9 @@ class StockLocationAddress {
* type: object * type: object
* description: An optional key-value map with additional details * description: An optional key-value map with additional details
* example: {car: "white"} * 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: * address:
* description: A new stock location address to create and associate with the stock location. Only required if `address_id` is not provided. * 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" * $ref: "#/components/schemas/StockLocationAddressInput"
@@ -131,6 +131,9 @@ class StockLocationAddress {
* type: object * type: object
* description: An optional key-value map with additional details * description: An optional key-value map with additional details
* example: {car: "white"} * 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: * address:
* $ref: "#/components/schemas/StockLocationAddressInput" * $ref: "#/components/schemas/StockLocationAddressInput"
*/ */
@@ -115,6 +115,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: "An optional set of key-value pairs with additional information." * description: "An optional set of key-value pairs with additional information."
* type: object * 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 { export class AdminPostStoreReq {
@IsOptional() @IsOptional()
@@ -103,6 +103,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: An optional set of key-value pairs with additional information. * description: An optional set of key-value pairs with additional information.
* type: object * 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 { export class AdminUpdateUserRequest {
@IsString() @IsString()
@@ -157,6 +157,9 @@ export default async (req, res) => {
* metadata: * metadata:
* type: object * type: object
* description: An optional key-value map with additional details about the Line Item. * 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 { export class StorePostCartsCartLineItemsReq {
@IsString() @IsString()
@@ -127,6 +127,9 @@ export default async (req, res) => {
* metadata: * metadata:
* type: object * type: object
* description: An optional key-value map with additional details about the Line Item. If omitted, the metadata will remain unchanged." * 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 { export class StorePostCartsCartLineItemsItemReq {
@IsInt() @IsInt()
@@ -116,6 +116,9 @@ export default async (req, res) => {
* metadata: * metadata:
* description: "Additional custom data about the customer." * description: "Additional custom data about the customer."
* type: object * 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 { export class StorePostCustomersCustomerReq {
@IsOptional() @IsOptional()
+3
View File
@@ -178,4 +178,7 @@ export class Address extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
+3
View File
@@ -177,6 +177,9 @@
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
* shipping_total: * shipping_total:
* description: The total of shipping * description: The total of shipping
* type: integer * type: integer
@@ -82,4 +82,7 @@ export class ClaimImage extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
+3
View File
@@ -184,4 +184,7 @@ export class ClaimItem extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -259,6 +259,9 @@ export class ClaimOrder extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
* no_notification: * no_notification:
* description: Flag for describing whether or not notifications related to this should be send. * description: Flag for describing whether or not notifications related to this should be send.
* nullable: true * nullable: true
+3
View File
@@ -58,4 +58,7 @@ export class ClaimTag extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -105,4 +105,7 @@ export class CustomShippingOption extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -82,4 +82,7 @@ export class CustomerGroup extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
+3
View File
@@ -170,4 +170,7 @@ export class Customer extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -78,4 +78,7 @@ export class DiscountConditionCustomerGroup {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -80,4 +80,7 @@ export class DiscountConditionProductCollection {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -80,4 +80,7 @@ export class DiscountConditionProductTag {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -80,4 +80,7 @@ export class DiscountConditionProductType {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -80,4 +80,7 @@ export class DiscountConditionProduct {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -230,4 +230,7 @@ export class DiscountCondition extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -118,4 +118,7 @@ export class DiscountRule extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
+3
View File
@@ -194,4 +194,7 @@ export class Discount extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -167,4 +167,7 @@ export class DraftOrder extends BaseEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -220,4 +220,7 @@ export class Fulfillment extends BaseEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
+3
View File
@@ -149,4 +149,7 @@ export class GiftCard extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
+3
View File
@@ -57,4 +57,7 @@ export class Image extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
+3
View File
@@ -100,4 +100,7 @@ export class Invite extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -101,4 +101,7 @@ export class LineItemAdjustment {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -83,4 +83,7 @@ export class LineItemTaxLine extends TaxLine {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
+3
View File
@@ -381,4 +381,7 @@ export class LineItem extends BaseEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
+3
View File
@@ -586,4 +586,7 @@ export class Order extends BaseEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -202,4 +202,7 @@ export class PaymentCollection extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
+3
View File
@@ -200,4 +200,7 @@ export class Payment extends BaseEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -83,4 +83,7 @@ export class ProductCollection extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -104,4 +104,7 @@ export class ProductOptionValue extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -94,4 +94,7 @@ export class ProductOption extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -57,4 +57,7 @@ export class ProductTag extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -81,4 +81,7 @@ export class ProductTaxRate {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -80,4 +80,7 @@ export class ProductTypeTaxRate {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -57,4 +57,7 @@ export class ProductType extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -270,6 +270,9 @@ export class ProductVariant extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
* purchasable: * purchasable:
* description: | * description: |
* Only used with the inventory modules. * Only used with the inventory modules.
+3
View File
@@ -432,4 +432,7 @@ export class Product extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
+3
View File
@@ -141,4 +141,7 @@ export class Refund extends BaseEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
+3
View File
@@ -217,4 +217,7 @@ export class Region extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -119,4 +119,7 @@ export class ReturnItem {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -112,4 +112,7 @@ export class ReturnReason extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
+3
View File
@@ -216,4 +216,7 @@ export class Return extends BaseEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -84,4 +84,12 @@ export class SalesChannel extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: string * type: string
* format: date-time * format: date-time
* metadata:
* description: An optional key-value map with additional details
* nullable: true
* type: object
* 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"
*/ */
@@ -83,4 +83,7 @@ export class ShippingMethodTaxLine extends TaxLine {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -195,4 +195,7 @@ export class ShippingOption extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -113,4 +113,7 @@ export class ShippingProfile extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -80,4 +80,7 @@ export class ShippingTaxRate {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
+3
View File
@@ -161,4 +161,7 @@ export class Store extends BaseEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
+3
View File
@@ -276,4 +276,7 @@ export class Swap extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
+3
View File
@@ -60,4 +60,7 @@ export class TaxLine extends BaseEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
+3
View File
@@ -175,4 +175,7 @@ export class TaxRate extends BaseEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
@@ -95,4 +95,7 @@ export class TrackingLink extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */
+3
View File
@@ -111,4 +111,7 @@ export class User extends SoftDeletableEntity {
* nullable: true * nullable: true
* type: object * type: object
* example: {car: "white"} * 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"
*/ */