chore(docs): Updated API Reference (#6041)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
This commit is contained in:
12 files changed
+233
-6
No files matched your search
@@ -13,7 +13,6 @@ decorators:
|
|||||||
- Order
|
- Order
|
||||||
- Payment
|
- Payment
|
||||||
- PaymentSession
|
- PaymentSession
|
||||||
- SalesChannel
|
|
||||||
ClaimImage:
|
ClaimImage:
|
||||||
- ClaimItem
|
- ClaimItem
|
||||||
ClaimItem:
|
ClaimItem:
|
||||||
@@ -44,7 +43,6 @@ decorators:
|
|||||||
- Fulfillment
|
- Fulfillment
|
||||||
GiftCard:
|
GiftCard:
|
||||||
- Order
|
- Order
|
||||||
- Region
|
|
||||||
GiftCardTransaction:
|
GiftCardTransaction:
|
||||||
- GiftCard
|
- GiftCard
|
||||||
- Order
|
- Order
|
||||||
@@ -75,9 +73,6 @@ decorators:
|
|||||||
- Refund
|
- Refund
|
||||||
- Return
|
- Return
|
||||||
- Swap
|
- Swap
|
||||||
- SalesChannel
|
|
||||||
- Region
|
|
||||||
- LineItem
|
|
||||||
OrderEdit:
|
OrderEdit:
|
||||||
- Order
|
- Order
|
||||||
OrderItemChange:
|
OrderItemChange:
|
||||||
|
|||||||
@@ -234,3 +234,10 @@ properties:
|
|||||||
description: The total of gift cards with taxes
|
description: The total of gift cards with taxes
|
||||||
type: integer
|
type: integer
|
||||||
example: 0
|
example: 0
|
||||||
|
sales_channels:
|
||||||
|
description: The associated sales channels.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: sales_channels
|
||||||
|
items:
|
||||||
|
$ref: ./SalesChannel.yaml
|
||||||
@@ -339,3 +339,11 @@ properties:
|
|||||||
description: Learn about the metadata attribute, and how to delete and update it.
|
description: Learn about the metadata attribute, and how to delete and update it.
|
||||||
url: >-
|
url: >-
|
||||||
https://docs.medusajs.com/development/entities/overview#metadata-attribute
|
https://docs.medusajs.com/development/entities/overview#metadata-attribute
|
||||||
|
sales_channels:
|
||||||
|
description: The associated sales channels.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: sales_channels
|
||||||
|
x-featureFlag: medusa_v2
|
||||||
|
items:
|
||||||
|
$ref: ./SalesChannel.yaml
|
||||||
+20
@@ -6,7 +6,14 @@ type: object
|
|||||||
required:
|
required:
|
||||||
- publishable_key_id
|
- publishable_key_id
|
||||||
- sales_channel_id
|
- sales_channel_id
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
- deleted_at
|
||||||
properties:
|
properties:
|
||||||
|
id:
|
||||||
|
description: The relation's ID
|
||||||
|
type: string
|
||||||
|
example: pksc_01G8X9A7ESKAJXG2H0E6F1MW7A
|
||||||
sales_channel_id:
|
sales_channel_id:
|
||||||
description: The sales channel's ID
|
description: The sales channel's ID
|
||||||
type: string
|
type: string
|
||||||
@@ -15,3 +22,16 @@ properties:
|
|||||||
description: The publishable API key's ID
|
description: The publishable API key's ID
|
||||||
type: string
|
type: string
|
||||||
example: pak_01G1G5V21KADXNGH29BJMAJ4B4
|
example: pak_01G1G5V21KADXNGH29BJMAJ4B4
|
||||||
|
created_at:
|
||||||
|
description: The date with timezone at which the resource was created.
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
updated_at:
|
||||||
|
description: The date with timezone at which the resource was updated.
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
deleted_at:
|
||||||
|
description: The date with timezone at which the resource was deleted.
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
@@ -59,3 +59,26 @@ properties:
|
|||||||
description: Learn about the metadata attribute, and how to delete and update it.
|
description: Learn about the metadata attribute, and how to delete and update it.
|
||||||
url: >-
|
url: >-
|
||||||
https://docs.medusajs.com/development/entities/overview#metadata-attribute
|
https://docs.medusajs.com/development/entities/overview#metadata-attribute
|
||||||
|
carts:
|
||||||
|
description: The associated carts.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: carts
|
||||||
|
x-featureFlag: medusa_v2
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
orders:
|
||||||
|
description: The associated orders.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: orders
|
||||||
|
x-featureFlag: medusa_v2
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
publishableKeys:
|
||||||
|
description: The associated publishable API keys.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: publishableKeys
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
@@ -36000,6 +36000,13 @@ components:
|
|||||||
description: The total of gift cards with taxes
|
description: The total of gift cards with taxes
|
||||||
type: integer
|
type: integer
|
||||||
example: 0
|
example: 0
|
||||||
|
sales_channels:
|
||||||
|
description: The associated sales channels.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: sales_channels
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/SalesChannel'
|
||||||
ClaimImage:
|
ClaimImage:
|
||||||
title: Claim Image
|
title: Claim Image
|
||||||
description: The details of an image attached to a claim.
|
description: The details of an image attached to a claim.
|
||||||
@@ -39255,6 +39262,14 @@ components:
|
|||||||
it.
|
it.
|
||||||
url: >-
|
url: >-
|
||||||
https://docs.medusajs.com/development/entities/overview#metadata-attribute
|
https://docs.medusajs.com/development/entities/overview#metadata-attribute
|
||||||
|
sales_channels:
|
||||||
|
description: The associated sales channels.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: sales_channels
|
||||||
|
x-featureFlag: medusa_v2
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/SalesChannel'
|
||||||
OrderEdit:
|
OrderEdit:
|
||||||
title: Order Edit
|
title: Order Edit
|
||||||
description: >-
|
description: >-
|
||||||
@@ -41157,7 +41172,14 @@ components:
|
|||||||
required:
|
required:
|
||||||
- publishable_key_id
|
- publishable_key_id
|
||||||
- sales_channel_id
|
- sales_channel_id
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
- deleted_at
|
||||||
properties:
|
properties:
|
||||||
|
id:
|
||||||
|
description: The relation's ID
|
||||||
|
type: string
|
||||||
|
example: pksc_01G8X9A7ESKAJXG2H0E6F1MW7A
|
||||||
sales_channel_id:
|
sales_channel_id:
|
||||||
description: The sales channel's ID
|
description: The sales channel's ID
|
||||||
type: string
|
type: string
|
||||||
@@ -41166,6 +41188,19 @@ components:
|
|||||||
description: The publishable API key's ID
|
description: The publishable API key's ID
|
||||||
type: string
|
type: string
|
||||||
example: pak_01G1G5V21KADXNGH29BJMAJ4B4
|
example: pak_01G1G5V21KADXNGH29BJMAJ4B4
|
||||||
|
created_at:
|
||||||
|
description: The date with timezone at which the resource was created.
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
updated_at:
|
||||||
|
description: The date with timezone at which the resource was updated.
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
deleted_at:
|
||||||
|
description: The date with timezone at which the resource was deleted.
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
Refund:
|
Refund:
|
||||||
title: Refund
|
title: Refund
|
||||||
description: >-
|
description: >-
|
||||||
@@ -41811,6 +41846,29 @@ components:
|
|||||||
it.
|
it.
|
||||||
url: >-
|
url: >-
|
||||||
https://docs.medusajs.com/development/entities/overview#metadata-attribute
|
https://docs.medusajs.com/development/entities/overview#metadata-attribute
|
||||||
|
carts:
|
||||||
|
description: The associated carts.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: carts
|
||||||
|
x-featureFlag: medusa_v2
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
orders:
|
||||||
|
description: The associated orders.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: orders
|
||||||
|
x-featureFlag: medusa_v2
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
publishableKeys:
|
||||||
|
description: The associated publishable API keys.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: publishableKeys
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
SalesChannelLocation:
|
SalesChannelLocation:
|
||||||
title: Sales Channel Stock Location
|
title: Sales Channel Stock Location
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from "react"
|
import React from "react"
|
||||||
import { useProducts } from "medusa-react"
|
import { useProducts } from "medusa-react"
|
||||||
|
|
||||||
function Product () {
|
const Products = () => {
|
||||||
const { products, isLoading } = useProducts()
|
const { products, isLoading } = useProducts()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -234,3 +234,10 @@ properties:
|
|||||||
description: The total of gift cards with taxes
|
description: The total of gift cards with taxes
|
||||||
type: integer
|
type: integer
|
||||||
example: 0
|
example: 0
|
||||||
|
sales_channels:
|
||||||
|
description: The associated sales channels.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: sales_channels
|
||||||
|
items:
|
||||||
|
$ref: ./SalesChannel.yaml
|
||||||
@@ -339,3 +339,11 @@ properties:
|
|||||||
description: Learn about the metadata attribute, and how to delete and update it.
|
description: Learn about the metadata attribute, and how to delete and update it.
|
||||||
url: >-
|
url: >-
|
||||||
https://docs.medusajs.com/development/entities/overview#metadata-attribute
|
https://docs.medusajs.com/development/entities/overview#metadata-attribute
|
||||||
|
sales_channels:
|
||||||
|
description: The associated sales channels.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: sales_channels
|
||||||
|
x-featureFlag: medusa_v2
|
||||||
|
items:
|
||||||
|
$ref: ./SalesChannel.yaml
|
||||||
+20
@@ -6,7 +6,14 @@ type: object
|
|||||||
required:
|
required:
|
||||||
- publishable_key_id
|
- publishable_key_id
|
||||||
- sales_channel_id
|
- sales_channel_id
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
- deleted_at
|
||||||
properties:
|
properties:
|
||||||
|
id:
|
||||||
|
description: The relation's ID
|
||||||
|
type: string
|
||||||
|
example: pksc_01G8X9A7ESKAJXG2H0E6F1MW7A
|
||||||
sales_channel_id:
|
sales_channel_id:
|
||||||
description: The sales channel's ID
|
description: The sales channel's ID
|
||||||
type: string
|
type: string
|
||||||
@@ -15,3 +22,16 @@ properties:
|
|||||||
description: The publishable API key's ID
|
description: The publishable API key's ID
|
||||||
type: string
|
type: string
|
||||||
example: pak_01G1G5V21KADXNGH29BJMAJ4B4
|
example: pak_01G1G5V21KADXNGH29BJMAJ4B4
|
||||||
|
created_at:
|
||||||
|
description: The date with timezone at which the resource was created.
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
updated_at:
|
||||||
|
description: The date with timezone at which the resource was updated.
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
deleted_at:
|
||||||
|
description: The date with timezone at which the resource was deleted.
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
@@ -59,3 +59,26 @@ properties:
|
|||||||
description: Learn about the metadata attribute, and how to delete and update it.
|
description: Learn about the metadata attribute, and how to delete and update it.
|
||||||
url: >-
|
url: >-
|
||||||
https://docs.medusajs.com/development/entities/overview#metadata-attribute
|
https://docs.medusajs.com/development/entities/overview#metadata-attribute
|
||||||
|
carts:
|
||||||
|
description: The associated carts.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: carts
|
||||||
|
x-featureFlag: medusa_v2
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
orders:
|
||||||
|
description: The associated orders.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: orders
|
||||||
|
x-featureFlag: medusa_v2
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
publishableKeys:
|
||||||
|
description: The associated publishable API keys.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: publishableKeys
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
@@ -7540,6 +7540,13 @@ components:
|
|||||||
description: The total of gift cards with taxes
|
description: The total of gift cards with taxes
|
||||||
type: integer
|
type: integer
|
||||||
example: 0
|
example: 0
|
||||||
|
sales_channels:
|
||||||
|
description: The associated sales channels.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: sales_channels
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/SalesChannel'
|
||||||
ClaimImage:
|
ClaimImage:
|
||||||
title: Claim Image
|
title: Claim Image
|
||||||
description: The details of an image attached to a claim.
|
description: The details of an image attached to a claim.
|
||||||
@@ -10758,6 +10765,14 @@ components:
|
|||||||
it.
|
it.
|
||||||
url: >-
|
url: >-
|
||||||
https://docs.medusajs.com/development/entities/overview#metadata-attribute
|
https://docs.medusajs.com/development/entities/overview#metadata-attribute
|
||||||
|
sales_channels:
|
||||||
|
description: The associated sales channels.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: sales_channels
|
||||||
|
x-featureFlag: medusa_v2
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/SalesChannel'
|
||||||
OrderEdit:
|
OrderEdit:
|
||||||
title: Order Edit
|
title: Order Edit
|
||||||
description: >-
|
description: >-
|
||||||
@@ -12660,7 +12675,14 @@ components:
|
|||||||
required:
|
required:
|
||||||
- publishable_key_id
|
- publishable_key_id
|
||||||
- sales_channel_id
|
- sales_channel_id
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
- deleted_at
|
||||||
properties:
|
properties:
|
||||||
|
id:
|
||||||
|
description: The relation's ID
|
||||||
|
type: string
|
||||||
|
example: pksc_01G8X9A7ESKAJXG2H0E6F1MW7A
|
||||||
sales_channel_id:
|
sales_channel_id:
|
||||||
description: The sales channel's ID
|
description: The sales channel's ID
|
||||||
type: string
|
type: string
|
||||||
@@ -12669,6 +12691,19 @@ components:
|
|||||||
description: The publishable API key's ID
|
description: The publishable API key's ID
|
||||||
type: string
|
type: string
|
||||||
example: pak_01G1G5V21KADXNGH29BJMAJ4B4
|
example: pak_01G1G5V21KADXNGH29BJMAJ4B4
|
||||||
|
created_at:
|
||||||
|
description: The date with timezone at which the resource was created.
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
updated_at:
|
||||||
|
description: The date with timezone at which the resource was updated.
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
deleted_at:
|
||||||
|
description: The date with timezone at which the resource was deleted.
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
Refund:
|
Refund:
|
||||||
title: Refund
|
title: Refund
|
||||||
description: >-
|
description: >-
|
||||||
@@ -13296,6 +13331,29 @@ components:
|
|||||||
it.
|
it.
|
||||||
url: >-
|
url: >-
|
||||||
https://docs.medusajs.com/development/entities/overview#metadata-attribute
|
https://docs.medusajs.com/development/entities/overview#metadata-attribute
|
||||||
|
carts:
|
||||||
|
description: The associated carts.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: carts
|
||||||
|
x-featureFlag: medusa_v2
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
orders:
|
||||||
|
description: The associated orders.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: orders
|
||||||
|
x-featureFlag: medusa_v2
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
publishableKeys:
|
||||||
|
description: The associated publishable API keys.
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
x-expandable: publishableKeys
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
SalesChannelLocation:
|
SalesChannelLocation:
|
||||||
title: Sales Channel Stock Location
|
title: Sales Channel Stock Location
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
Reference in new issue
Block a user