docs: redesign tables (#8653)

* docs: redesign tables

* fixes
This commit is contained in:
Shahed Nasser
2024-08-20 14:47:36 +02:00
committed by GitHub
parent 73905c14b1
commit b8ba020cd5
33 changed files with 226 additions and 208 deletions
@@ -56,8 +56,6 @@ This documentation page includes the list of injection zones you can add Admin W
</Table.Body>
</Table>
---
## Order Pages
<Table>
@@ -118,7 +116,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminOrder>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Order object
}
@@ -141,7 +139,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminOrder>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Order object
}
@@ -164,7 +162,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminOrder>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Order object
}
@@ -187,7 +185,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminOrder>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Order object
}
@@ -198,8 +196,6 @@ This documentation page includes the list of injection zones you can add Admin W
</Table.Body>
</Table>
---
## Customer Pages
<Table>
@@ -260,7 +256,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminCustomer>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Customer object
}
@@ -283,7 +279,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminCustomer>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Customer object
}
@@ -340,7 +336,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminCustomerGroup>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // CustomerGroup object
}
@@ -363,7 +359,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminCustomerGroup>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // CustomerGroup object
}
@@ -374,8 +370,6 @@ This documentation page includes the list of injection zones you can add Admin W
</Table.Body>
</Table>
---
## Product Pages
<Table>
@@ -436,7 +430,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProduct>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Product object
}
@@ -459,7 +453,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProduct>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Product object
}
@@ -482,7 +476,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProduct>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Product object
}
@@ -505,7 +499,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProduct>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Product object
}
@@ -562,7 +556,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProductCollection>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // ProductCollection object
}
@@ -585,7 +579,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProductCollection>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // ProductCollection object
}
@@ -642,7 +636,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProductCategory>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // ProductCategory object
}
@@ -665,7 +659,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProductCategory>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // ProductCategory object
}
@@ -688,7 +682,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProductCategory>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // ProductCategory object
}
@@ -711,7 +705,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProductCategory>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // ProductCategory object
}
@@ -722,8 +716,6 @@ This documentation page includes the list of injection zones you can add Admin W
</Table.Body>
</Table>
---
## Pricing Pages
<Table>
@@ -784,7 +776,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<PriceListDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // PriceList object
}
@@ -807,7 +799,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<PriceListDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // PriceList object
}
@@ -830,7 +822,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<PriceListDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // PriceList object
}
@@ -853,7 +845,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<PriceListDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // PriceList object
}
@@ -864,8 +856,6 @@ This documentation page includes the list of injection zones you can add Admin W
</Table.Body>
</Table>
---
## Promotion Pages
<Table>
@@ -926,7 +916,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<PromotionDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Promotion object
}
@@ -949,7 +939,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<PromotionDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Promotion object
}
@@ -972,7 +962,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<PromotionDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Promotion object
}
@@ -995,7 +985,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<PromotionDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Promotion object
}
@@ -1052,7 +1042,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<CampaignDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Campaign object
}
@@ -1075,7 +1065,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<CampaignDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Campaign object
}
@@ -1098,7 +1088,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<CampaignDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Campaign object
}
@@ -1121,7 +1111,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<CampaignDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Campaign object
}
@@ -1132,8 +1122,6 @@ This documentation page includes the list of injection zones you can add Admin W
</Table.Body>
</Table>
---
## Setting Pages
### User Pages
@@ -1196,7 +1184,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<UserDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // User object
}
@@ -1219,7 +1207,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<UserDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // User object
}
@@ -1256,7 +1244,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ExtendedStoreDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Store object
}
@@ -1279,7 +1267,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ExtendedStoreDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Store object
}
@@ -1316,7 +1304,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<UserDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // User object
}
@@ -1339,7 +1327,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<UserDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // User object
}
@@ -1410,7 +1398,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminRegion>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Region object
}
@@ -1433,7 +1421,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminRegion>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // Region object
}
@@ -1504,7 +1492,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ShippingProfileDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // ShippingProfile object
}
@@ -1527,7 +1515,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ShippingProfileDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // ShippingProfile object
}
@@ -1598,7 +1586,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ExtendedStockLocationDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // StockLocation object
}
@@ -1621,7 +1609,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ExtendedStockLocationDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // StockLocation object
}
@@ -1644,7 +1632,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ExtendedStockLocationDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // StockLocation object
}
@@ -1667,7 +1655,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ExtendedStockLocationDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // StockLocation object
}
@@ -1738,7 +1726,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<SalesChannelResponse>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // SalesChannel object
}
@@ -1761,7 +1749,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<SalesChannelResponse>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // SalesChannel object
}
@@ -1832,7 +1820,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ReservationItemDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // ReservationItem object
}
@@ -1855,7 +1843,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ReservationItemDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // ReservationItem object
}
@@ -1878,7 +1866,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ReservationItemDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // ReservationItem object
}
@@ -1901,7 +1889,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ReservationItemDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // ReservationItem object
}
@@ -1972,7 +1960,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ApiKeyResponse>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // ApiKey object
}
@@ -1995,7 +1983,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ApiKeyResponse>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // ApiKey object
}
@@ -2066,7 +2054,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<WorkflowExecutionDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // WorkflowExecution object
}
@@ -2089,7 +2077,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<WorkflowExecutionDTO>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // WorkflowExecution object
}
@@ -2160,7 +2148,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<TaxRegionResponse>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // TaxRegion object
}
@@ -2183,7 +2171,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<TaxRegionResponse>` imported from `@medusajs/types`
```ts noCopy noReport
```ts blockStyle="inline"
{
data, // TaxRegion object
}
@@ -159,8 +159,6 @@ CACHE_REDIS_URL=<YOUR_REDIS_URL>
</Table.Body>
</Table>
---
## Test the Module
To test the module, start the Medusa application:
@@ -207,8 +207,6 @@ EVENTS_REDIS_URL=<YOUR_REDIS_URL>
</Table.Body>
</Table>
---
## Test the Module
To test the module, start the Medusa application:
@@ -333,8 +333,6 @@ module.exports = {
</Table.Body>
</Table>
---
## Troubleshooting
<DetailsList
@@ -100,8 +100,6 @@ SENDGRID_FROM=<YOUR_SENDGRID_FROM>
</Table.Body>
</Table>
---
## SendGrid Templates
When you send a notification, you must specify the ID of the template to use in SendGrid.
@@ -164,8 +164,6 @@ WE_REDIS_URL=<YOUR_REDIS_URL>
</Table.Body>
</Table>
---
## Test the Module
To test the module, start the Medusa application:
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted API key
id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted auth identity
id,
@@ -76,7 +76,7 @@ const modules = {
</Table.Cell>
<Table.Cell>
```ts noCopy noReport noLineNumbers
```ts blockStyle="inline"
const hashConfig = {
logN: 15,
r: 8,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted cart
id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted address
id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted line item
id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted line item adjustment
id,
@@ -110,7 +110,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted line item tax line
id,
@@ -132,7 +132,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted shipping method
id,
@@ -154,7 +154,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted shipping method adjustment
id,
@@ -176,7 +176,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted shipping method tax line
id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted currency
id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted customer
id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted address
id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted customer group
id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted customer group customer
id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the fulfillment set
id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted fulfillment set
id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the service zone
id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted service zone
id,
@@ -110,7 +110,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the geo zone
id,
@@ -132,7 +132,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted geo zone
id,
@@ -154,7 +154,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the shipping option
id,
@@ -176,7 +176,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the shipping profile
id,
@@ -198,7 +198,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the shipping option rule
id,
@@ -220,7 +220,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the shipping option type
id,
@@ -242,7 +242,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the fulfillment provider
id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the inventory item
id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the inventory item
id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted inventory item
id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the inventory level
id,
@@ -110,7 +110,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the inventory level
id,
@@ -132,7 +132,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted inventory level
id,
@@ -154,7 +154,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the reservation item
id,
@@ -176,7 +176,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the reservation item
id,
@@ -198,7 +198,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted reservation item
id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted order
id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted address
id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted line item
id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted line item adjustment
id,
@@ -110,7 +110,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted line item tax line
id,
@@ -132,7 +132,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted shipping method
id,
@@ -154,7 +154,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted shipping method adjustment
id,
@@ -176,7 +176,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted shipping method tax line
id,
@@ -198,7 +198,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted transaction
id,
@@ -220,7 +220,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted order change
id,
@@ -242,7 +242,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted order change action
id,
@@ -264,7 +264,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted order item
id,
@@ -286,7 +286,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted order summary
id,
@@ -308,7 +308,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted order shipping method
id,
@@ -79,8 +79,6 @@ To check the outstanding amount of the order, its transaction amounts are summed
</Table.Body>
</Table>
---
## Transaction Reference
The Order Module doesnt provide payment processing functionalities, so it doesnt store payments that can be processed. Payment functionalities are provided by the [Payment Module](../../payment/page.mdx).
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted payment
id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted payment collection
id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted payment session
id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted capture
id,
@@ -110,7 +110,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted refund
id,
@@ -93,8 +93,6 @@ In this document, you'll learn about the options of the Payment Module.
</Table.Body>
</Table>
---
## providers
The `providers` option is an array of payment module providers.
@@ -197,8 +197,6 @@ STRIPE_API_KEY=<YOUR_STRIPE_API_KEY>
</Table.Body>
</Table>
---
## Use Provider
To use the Stripe provider, create a payment session for the provider:
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted price set
id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted price list
id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted price list rule
id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted price list rule value
id,
@@ -110,7 +110,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted price rule
id,
@@ -132,7 +132,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted price
id,
@@ -154,7 +154,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted price set rule type
id,
@@ -176,7 +176,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted rule type
id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the product
id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the product
id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted product
id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the product collection
id,
@@ -110,7 +110,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the product collection
id,
@@ -132,7 +132,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted product collection
id,
@@ -154,7 +154,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the product category
id,
@@ -176,7 +176,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the product category
id,
@@ -198,7 +198,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted product category
id,
@@ -220,7 +220,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted product option
id,
@@ -242,7 +242,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted product tag
id,
@@ -264,7 +264,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted product type
id,
@@ -286,7 +286,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted product variant
id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted promotion
id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted application method
id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted campaign
id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted campaign budget
id,
@@ -110,7 +110,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted promotion rule
id,
@@ -132,7 +132,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted promotion rule value
id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted region
id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted country
id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted sales channel
id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted stock location
id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted stock location address
id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted store
id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted tax rate
id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted tax region
id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted tax rate rule
id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted tax provider
id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the user
id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the user
id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted user
id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the invite
id,
@@ -110,7 +110,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the invite
id,
@@ -132,7 +132,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the deleted invite
id,
@@ -154,7 +154,7 @@ import { Table } from "docs-ui"
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
```ts blockStyle="inline"
{
// the ID of the invite
id,
+3 -3
View File
@@ -1,13 +1,13 @@
import { InformationCircleSolid } from "@medusajs/icons"
import { Table, Tooltip } from "@medusajs/ui"
import { Tooltip } from "@medusajs/ui"
import { HookData, HookDataMap } from "@/types/hooks"
import { EnumType, FunctionType, ObjectType } from "@/types/props"
import { InlineCode } from "docs-ui"
import { InlineCode, Table } from "docs-ui"
const HookTable = ({ props }: { props: HookDataMap }) => {
return (
<Table>
<Table className="!mb-0">
<Table.Header className="border-t-0">
<Table.Row>
<Table.HeaderCell>Value</Table.HeaderCell>
+4 -4
View File
@@ -1,11 +1,11 @@
"use client"
import { InformationCircleSolid } from "@medusajs/icons"
import { Table, Tooltip } from "@medusajs/ui"
import { Tooltip } from "@medusajs/ui"
import { PropData, PropDataMap, PropSpecType } from "@/types/props"
import { useCallback, useMemo } from "react"
import { InlineCode, MarkdownContent } from "docs-ui"
import { InlineCode, MarkdownContent, Table } from "docs-ui"
type PropTableProps = {
props: PropDataMap
@@ -13,12 +13,12 @@ type PropTableProps = {
const PropTable = ({ props }: PropTableProps) => {
return (
<Table>
<Table className="!mb-0">
<Table.Header className="border-t-0">
<Table.Row>
<Table.HeaderCell>Prop</Table.HeaderCell>
<Table.HeaderCell>Type</Table.HeaderCell>
<Table.HeaderCell className="text-right">Default</Table.HeaderCell>
<Table.HeaderCell className="!text-right">Default</Table.HeaderCell>
</Table.Row>
</Table.Header>
<Table.Body className="border-b-0 [&_tr:last-child]:border-b-0">