chore(docs): Generated References (automated) (#9727)
Generated the following references: - `api_key` - `auth` - `cart` - `core_flows` - `currency` - `customer` - `dml` - `fulfillment` - `helper_steps` - `inventory_next` - `js_sdk` - `medusa` - `medusa_config` - `modules` - `modules_sdk` - `notification` - `order` - `order_models` - `payment` - `pricing` - `product` - `promotion` - `region` - `sales_channel` - `stock_location_next` - `store` - `tax` - `tax_provider` - `types` - `user` - `utils` - `workflows` 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:
2313 files changed
+533036
-383477
No files matched your search
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `addPromotionBuyRules` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method adds buy promotion rules to a promotion's application method.
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `addPromotionRules` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method adds promotion rules to a promotion.
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `addPromotionTargetRules` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method adds target promotion rules to a promotion's application method.
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `addPromotionsToCampaign` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
## Parameters
|
||||
|
||||
<TypeList types={[{"name":"data","type":"[AddPromotionsToCampaignDTO](../../../interfaces/promotion.AddPromotionsToCampaignDTO/page.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"id","type":"`string`","description":"The ID of the campaign.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"promotion_ids","type":"`string`[]","description":"Ids of promotions to add","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"sharedContext","type":"[Context](../../../interfaces/promotion.Context/page.mdx)","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"transactionManager","type":"TManager","description":"An instance of a transaction manager of type `TManager`, which is a typed parameter passed to the context to specify the type of the `transactionManager`.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"manager","type":"TManager","description":"An instance of a manager, typically an entity manager, of type `TManager`, which is a typed parameter passed to the context to specify the type of the `manager`.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"isolationLevel","type":"`string`","description":"A string indicating the isolation level of the context. Possible values are `READ UNCOMMITTED`, `READ COMMITTED`, `REPEATABLE READ`, or `SERIALIZABLE`.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"enableNestedTransactions","type":"`boolean`","description":"A boolean value indicating whether nested transactions are enabled.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"eventGroupId","type":"`string`","description":"A string indicating the ID of the group to aggregate the events to be emitted at a later point.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"transactionId","type":"`string`","description":"A string indicating the ID of the current transaction.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"messageAggregator","type":"[IMessageAggregator](../../../interfaces/promotion.IMessageAggregator/page.mdx)","description":"An instance of a message aggregator, which is used to aggregate messages to be emitted at a later point.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"requestId","type":"`string`","description":"A string indicating the ID of the current request.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"idempotencyKey","type":"`string`","description":"A string indicating the idempotencyKey of the current workflow execution.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"parentStepIdempotencyKey","type":"`string`","description":"A string indicating the idempotencyKey of the parent workflow execution.","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]} expandUrl="https://docs.medusajs.com/v2/advanced-development/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="addPromotionsToCampaign"/>
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `computeActions` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method provides the actions to perform on a cart based on the specified promotions
|
||||
and context.
|
||||
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `createCampaigns` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
## createCampaigns(data, sharedContext?): Promise<[CampaignDTO](../../../interfaces/promotion.CampaignDTO/page.mdx)>
|
||||
|
||||
This method creates a campaign.
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `createPromotions` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
## createPromotions(data, sharedContext?): Promise<[PromotionDTO](../../../interfaces/promotion.PromotionDTO/page.mdx)[]>
|
||||
|
||||
This method creates promotions.
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `deleteCampaigns` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
## deleteCampaigns(ids, sharedContext?): Promise<void>
|
||||
|
||||
This method deletes campaigns by their IDs.
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `deletePromotions` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
## deletePromotions(ids, sharedContext?): Promise<void>
|
||||
|
||||
This method deletes promotions by their IDs.
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `listAndCountCampaigns` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method retrieves a paginated list of campaigns along with the total count of available campaigns satisfying the provided filters.
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `listAndCountPromotions` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method retrieves a paginated list of promotions along with the total count of available promotions satisfying the provided filters.
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `listCampaigns` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method retrieves a paginated list of campaigns based on optional filters and configuration.
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `listPromotionRules` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method retrieves a paginated list of promotion rules based on optional filters and configuration.
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `listPromotions` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method retrieves a paginated list of promotions based on optional filters and configuration.
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `registerUsage` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method adjusts the budget for each campaign associated with the promotions' specified computed actions.
|
||||
It adjusts the `used` property of a `CampaignBudget` to account for the adjustment amounts in the specified associated
|
||||
computed actions.
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `removePromotionBuyRules` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method removes buy promotion rules from a promotion's application method.
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `removePromotionRules` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method removes promotion rules from a promotion.
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `removePromotionTargetRules` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method removes target promotion rules from a promotion's application method.
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `removePromotionsFromCampaign` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
## Parameters
|
||||
|
||||
<TypeList types={[{"name":"data","type":"[RemovePromotionsFromCampaignDTO](../../../interfaces/promotion.RemovePromotionsFromCampaignDTO/page.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"id","type":"`string`","description":"The ID of the campaign.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"promotion_ids","type":"`string`[]","description":"Ids of promotions to add","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"sharedContext","type":"[Context](../../../interfaces/promotion.Context/page.mdx)","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"transactionManager","type":"TManager","description":"An instance of a transaction manager of type `TManager`, which is a typed parameter passed to the context to specify the type of the `transactionManager`.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"manager","type":"TManager","description":"An instance of a manager, typically an entity manager, of type `TManager`, which is a typed parameter passed to the context to specify the type of the `manager`.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"isolationLevel","type":"`string`","description":"A string indicating the isolation level of the context. Possible values are `READ UNCOMMITTED`, `READ COMMITTED`, `REPEATABLE READ`, or `SERIALIZABLE`.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"enableNestedTransactions","type":"`boolean`","description":"A boolean value indicating whether nested transactions are enabled.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"eventGroupId","type":"`string`","description":"A string indicating the ID of the group to aggregate the events to be emitted at a later point.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"transactionId","type":"`string`","description":"A string indicating the ID of the current transaction.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"messageAggregator","type":"[IMessageAggregator](../../../interfaces/promotion.IMessageAggregator/page.mdx)","description":"An instance of a message aggregator, which is used to aggregate messages to be emitted at a later point.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"requestId","type":"`string`","description":"A string indicating the ID of the current request.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"idempotencyKey","type":"`string`","description":"A string indicating the idempotencyKey of the current workflow execution.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"parentStepIdempotencyKey","type":"`string`","description":"A string indicating the idempotencyKey of the parent workflow execution.","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]} expandUrl="https://docs.medusajs.com/v2/advanced-development/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="removePromotionsFromCampaign"/>
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `restoreCampaigns` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method restores soft deleted campaigns by their IDs.
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `restorePromotions` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method restores soft deleted promotions by their IDs.
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `retrieveCampaign` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method retrieves a campaigns by its ID.
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `retrievePromotion` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method retrieves a promotion by its ID.
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `revertUsage` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method is used to revert the changes made by registerUsage action
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `softDeleteCampaigns` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method soft deletes campaigns by their IDs.
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `softDeletePromotions` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method soft deletes a promotion by its IDs.
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `updateCampaigns` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
## updateCampaigns(data, sharedContext?): Promise<[CampaignDTO](../../../interfaces/promotion.CampaignDTO/page.mdx)[]>
|
||||
|
||||
This method updates existing campaigns.
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `updatePromotionRules` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
This method updates existing promotion rules.
|
||||
|
||||
## Example
|
||||
|
||||
+6
@@ -10,6 +10,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `updatePromotions` method. This belongs to the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
## updatePromotions(data, sharedContext?): Promise<[PromotionDTO](../../../interfaces/promotion.PromotionDTO/page.mdx)[]>
|
||||
|
||||
This method updates existing promotions.
|
||||
|
||||
+6
@@ -9,6 +9,12 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This section of the documentation provides a reference to the `IPromotionModuleService` interface’s methods. This is the interface developers use to use the functionalities provided by the Promotion Module.
|
||||
|
||||
<Note>
|
||||
|
||||
You should only use the methods in this reference when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference).
|
||||
|
||||
</Note>
|
||||
|
||||
The main service interface for the Promotion Module.
|
||||
|
||||
## Methods
|
||||
|
||||
@@ -8,6 +8,4 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
**BigNumberRawValue**: `Object`
|
||||
|
||||
## Properties
|
||||
|
||||
<TypeList types={[{"name":"value","type":"`string` \\| `number`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/v2/advanced-development/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="BigNumberRawValue"/>
|
||||
@@ -8,6 +8,4 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
**Event**: `Object`
|
||||
|
||||
## Properties
|
||||
|
||||
<TypeList types={[{"name":"name","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"data","type":"TData","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"metadata","type":"[EventMetadata](../promotion.EventMetadata/page.mdx)","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"eventGroupId","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]} expandUrl="https://docs.medusajs.com/v2/advanced-development/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="Event"/>
|
||||
@@ -8,6 +8,4 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
**JoinerRelationship**: `Object`
|
||||
|
||||
## Properties
|
||||
|
||||
<TypeList types={[{"name":"alias","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"foreignKey","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"primaryKey","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"serviceName","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"entity","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"inverse","type":"`boolean`","description":"In an inverted relationship the foreign key is on the other service and the primary key is on the current service","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"isList","type":"`boolean`","description":"Force the relationship to return a list","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"args","type":"`Record<string, any>`","description":"Extra arguments to pass to the remoteFetchData callback","optional":true,"defaultValue":"","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/v2/advanced-development/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="JoinerRelationship"/>
|
||||
@@ -8,6 +8,4 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
**OperatorMap**: `Object`
|
||||
|
||||
## Properties
|
||||
|
||||
<TypeList types={[{"name":"$and","type":"[Query](../promotion.Query/page.mdx)<T>[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"$or","type":"[Query](../promotion.Query/page.mdx)<T>[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"$eq","type":"[ExpandScalar](../promotion.ExpandScalar/page.mdx)<T> \\| [ExpandScalar](../promotion.ExpandScalar/page.mdx)<T>[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"$ne","type":"[ExpandScalar](../promotion.ExpandScalar/page.mdx)<T>","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"$in","type":"[ExpandScalar](../promotion.ExpandScalar/page.mdx)<T>[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"$nin","type":"[ExpandScalar](../promotion.ExpandScalar/page.mdx)<T>[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"$not","type":"[Query](../promotion.Query/page.mdx)<T>","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"$gt","type":"[ExpandScalar](../promotion.ExpandScalar/page.mdx)<T>","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"$gte","type":"[ExpandScalar](../promotion.ExpandScalar/page.mdx)<T>","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"$lt","type":"[ExpandScalar](../promotion.ExpandScalar/page.mdx)<T>","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"$lte","type":"[ExpandScalar](../promotion.ExpandScalar/page.mdx)<T>","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"$like","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"$re","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"$ilike","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"$fulltext","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"$overlap","type":"`string`[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"$contains","type":"`string`[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"$contained","type":"`string`[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"$exists","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/v2/advanced-development/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="OperatorMap"/>
|
||||
@@ -8,6 +8,4 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
**RawMessageFormat**: `Object`
|
||||
|
||||
## Properties
|
||||
|
||||
<TypeList types={[{"name":"eventName","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"data","type":"TData","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"source","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"object","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"action","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"context","type":"Pick<[Context](../../interfaces/promotion.Context/page.mdx), \"eventGroupId\">","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"eventGroupId","type":"`string`","description":"A string indicating the ID of the group to aggregate the events to be emitted at a later point.","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"options","type":"`Record<string, any>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/v2/advanced-development/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="RawMessageFormat"/>
|
||||
@@ -10,6 +10,4 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
These computed action types can affect a campaign's budget.
|
||||
|
||||
## Properties
|
||||
|
||||
<TypeList types={[{"name":"amount","type":"[BigNumberInput](../promotion.BigNumberInput/page.mdx)","description":"The amount to remove off the shipping method's total.","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"value","type":"`string` \\| `number`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"numeric","type":"`number`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"raw","type":"[BigNumberRawValue](../promotion.BigNumberRawValue/page.mdx)","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"value","type":"`string` \\| `number`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"bigNumber","type":"`BigNumber`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"code","type":"`string`","description":"The promotion's code.","optional":false,"defaultValue":"","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/v2/advanced-development/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="UsageComputedActions"/>
|
||||
Reference in new issue
Block a user