docs: update docusaurus to v3 (#5625)
* update dependencies * update onboarding mdx * fixes for mdx issues * fixes for mdx compatibility * resolve mdx errors * fixes in reference * fix check errors * revert change in vale action * fix node version in action * fix summary in markdown
This commit is contained in:
@@ -12,7 +12,7 @@ Holds rule conditions for when a discount is applicable
|
||||
|
||||
### constructor
|
||||
|
||||
**new DiscountCondition**()
|
||||
`**new DiscountCondition**()`
|
||||
|
||||
Holds rule conditions for when a discount is applicable
|
||||
|
||||
@@ -30,8 +30,8 @@ Holds rule conditions for when a discount is applicable
|
||||
},
|
||||
{
|
||||
"name": "customer_groups",
|
||||
"type": "[`CustomerGroup`](CustomerGroup.mdx)[]",
|
||||
"description": "Customer groups associated with this condition if `type` is `customer_groups`.",
|
||||
"type": "[CustomerGroup](CustomerGroup.mdx)[]",
|
||||
"description": "Customer groups associated with this condition if `type` is `customer\\_groups`.",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"expandable": true,
|
||||
@@ -48,7 +48,7 @@ Holds rule conditions for when a discount is applicable
|
||||
},
|
||||
{
|
||||
"name": "discount_rule",
|
||||
"type": "[`DiscountRule`](DiscountRule.mdx)",
|
||||
"type": "[DiscountRule](DiscountRule.mdx)",
|
||||
"description": "The details of the discount rule associated with the condition.",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -75,7 +75,7 @@ Holds rule conditions for when a discount is applicable
|
||||
},
|
||||
{
|
||||
"name": "metadata",
|
||||
"type": "Record<`string`, `unknown`\\>",
|
||||
"type": "`Record<string, unknown>`",
|
||||
"description": "An optional key-value map with additional details",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -84,8 +84,8 @@ Holds rule conditions for when a discount is applicable
|
||||
},
|
||||
{
|
||||
"name": "operator",
|
||||
"type": "[`DiscountConditionOperator`](../enums/DiscountConditionOperator.mdx)",
|
||||
"description": "The operator of the condition. `in` indicates that discountable resources are within the specified resources. `not_in` indicates that discountable resources are everything but the specified resources.",
|
||||
"type": "[DiscountConditionOperator](../enums/DiscountConditionOperator.mdx)",
|
||||
"description": "The operator of the condition. `in` indicates that discountable resources are within the specified resources. `not\\_in` indicates that discountable resources are everything but the specified resources.",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"expandable": false,
|
||||
@@ -93,8 +93,8 @@ Holds rule conditions for when a discount is applicable
|
||||
},
|
||||
{
|
||||
"name": "product_collections",
|
||||
"type": "[`ProductCollection`](ProductCollection.mdx)[]",
|
||||
"description": "Product collections associated with this condition if `type` is `product_collections`.",
|
||||
"type": "[ProductCollection](ProductCollection.mdx)[]",
|
||||
"description": "Product collections associated with this condition if `type` is `product\\_collections`.",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"expandable": true,
|
||||
@@ -102,8 +102,8 @@ Holds rule conditions for when a discount is applicable
|
||||
},
|
||||
{
|
||||
"name": "product_tags",
|
||||
"type": "[`ProductTag`](ProductTag.mdx)[]",
|
||||
"description": "Product tags associated with this condition if `type` is `product_tags`.",
|
||||
"type": "[ProductTag](ProductTag.mdx)[]",
|
||||
"description": "Product tags associated with this condition if `type` is `product\\_tags`.",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"expandable": true,
|
||||
@@ -111,8 +111,8 @@ Holds rule conditions for when a discount is applicable
|
||||
},
|
||||
{
|
||||
"name": "product_types",
|
||||
"type": "[`ProductType`](ProductType.mdx)[]",
|
||||
"description": "Product types associated with this condition if `type` is `product_types`.",
|
||||
"type": "[ProductType](ProductType.mdx)[]",
|
||||
"description": "Product types associated with this condition if `type` is `product\\_types`.",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"expandable": true,
|
||||
@@ -120,7 +120,7 @@ Holds rule conditions for when a discount is applicable
|
||||
},
|
||||
{
|
||||
"name": "products",
|
||||
"type": "[`Product`](Product.mdx)[]",
|
||||
"type": "[Product](Product.mdx)[]",
|
||||
"description": "products associated with this condition if `type` is `products`.",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -129,7 +129,7 @@ Holds rule conditions for when a discount is applicable
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"type": "[`DiscountConditionType`](../enums/DiscountConditionType.mdx)",
|
||||
"type": "[DiscountConditionType](../enums/DiscountConditionType.mdx)",
|
||||
"description": "The type of the condition. The type affects the available resources associated with the condition. For example, if the type is `products`, that means the `products` relation will hold the products associated with this condition and other relations will be empty.",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -151,7 +151,7 @@ Holds rule conditions for when a discount is applicable
|
||||
|
||||
### beforeInsert
|
||||
|
||||
`Private` **beforeInsert**(): `void`
|
||||
`Private **beforeInsert**(): void`
|
||||
|
||||
#### Returns
|
||||
|
||||
|
||||
Reference in New Issue
Block a user