chore(docs): Generated References (#6904)

Generated the following references:
- `inventory`
- `js_client`
- `medusa`
- `medusa_config`
- `medusa_react`
- `modules`
- `payment`
- `pricing`
- `product`
- `services`
- `stock_location`
- `tax_calculation`
- `types`
- `workflows`

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2024-04-02 10:06:06 +00:00
committed by GitHub
parent 85e5478873
commit 7fe164bc1d
946 changed files with 3695 additions and 12029 deletions

View File

@@ -31,7 +31,7 @@ export const createProductStep = createStep(
const productService = context.container.resolve(
"productService"
)
try {
const product = await productService.create(input)
return new StepResponse({

View File

@@ -8,4 +8,4 @@ import TypeList from "@site/src/components/TypeList"
The step's context.
<TypeList types={[{"name":"workflowId","type":"`string`","description":"The ID of the workflow.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"attempt","type":"`number`","description":"The attempt number of the step.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"idempotencyKey","type":"`string`","description":"The idempoency key of the step.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"stepName","type":"`string`","description":"The name of the step.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"action","type":"`\"invoke\"` \\| `\"compensate\"`","description":"The action of the step.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"container","type":"[MedusaContainer](../../medusa/types/medusa.MedusaContainer-2.mdx)","description":"The container used to access resources, such as services, in the step.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"metadata","type":"`TransactionMetadata`","description":"Metadata passed in the input.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"context","type":"[Context](../../types/interfaces/types.Context.mdx)","description":"A context used to share resources, such as transaction manager, between the application and the module.","optional":false,"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](../../types/interfaces/types.IMessageAggregator.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":[]}]}]} sectionTitle="StepExecutionContext"/>
<TypeList types={[{"name":"container","type":"[MedusaContainer](../../medusa/types/medusa.MedusaContainer-2.mdx)","description":"The container used to access resources, such as services, in the step.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"metadata","type":"`TransactionMetadata`","description":"Metadata passed in the input.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"context","type":"[Context](../../types/interfaces/types.Context.mdx)","description":"A context used to share resources, such as transaction manager, between the application and the module.","optional":false,"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](../../types/interfaces/types.IMessageAggregator.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":[]}]}]} sectionTitle="StepExecutionContext"/>

View File

@@ -6,7 +6,7 @@ import TypeList from "@site/src/components/TypeList"
# StepFunction
**StepFunction**: keyof TInput extends [] ? () => TOutput extends `Item`[] ? (`Item` \| [WorkflowData](workflows.WorkflowData.mdx)&#60;Item&#62;)[] : TOutput extends `object` ? &#123; [Key in string \| number \| symbol]: TOutput[Key] \| WorkflowData&#60;TOutput[Key]&#62; &#125; : TOutput & [WorkflowDataProperties](workflows.WorkflowDataProperties.mdx)&#60;TOutput&#62; & TOutput & [WorkflowDataProperties](workflows.WorkflowDataProperties.mdx)&#60;TOutput&#62; & ``{ config: Method config }`` & StepFunctionReturnConfig&#60;TOutput&#62; : (`input`: TInput \| [WorkflowData](workflows.WorkflowData.mdx)&#60;TInput&#62;) => TOutput extends `Item`[] ? (`Item` \| [WorkflowData](workflows.WorkflowData.mdx)&#60;Item&#62;)[] : TOutput extends `object` ? &#123; [Key in string \| number \| symbol]: TOutput[Key] \| WorkflowData&#60;TOutput[Key]&#62; &#125; : TOutput & [WorkflowDataProperties](workflows.WorkflowDataProperties.mdx)&#60;TOutput&#62; & TOutput & [WorkflowDataProperties](workflows.WorkflowDataProperties.mdx)&#60;TOutput&#62; & ``{ config: Method config }`` & StepFunctionReturnConfig&#60;TOutput&#62; & [WorkflowDataProperties](workflows.WorkflowDataProperties.mdx)&#60;TOutput&#62;
**StepFunction**: keyof TInput extends [] ? () => [WorkflowData](workflows.WorkflowData.mdx)&#60;&#123; [K in string \| number \| symbol]: TOutput[K] &#125;&#62; : (`input`: TInput extends `object` ? &#123; [K in string \| number \| symbol]: TInput[K] \| WorkflowData&#60;TInput[K]&#62; &#125; : TInput \| [WorkflowData](workflows.WorkflowData.mdx)&#60;TInput&#62;) => [WorkflowData](workflows.WorkflowData.mdx)&#60;&#123; [K in string \| number \| symbol]: TOutput[K] &#125;&#62; & [WorkflowDataProperties](workflows.WorkflowDataProperties.mdx)&#60;&#123; [K in keyof TOutput]: TOutput[K] &#125;&#62; & [WorkflowDataProperties](workflows.WorkflowDataProperties.mdx)&#60;&#123; [K in keyof TOutput]: TOutput[K] &#125;&#62;
A step function to be used in a workflow.

View File

@@ -6,7 +6,7 @@ import TypeList from "@site/src/components/TypeList"
# StepFunctionResult
**StepFunctionResult**: (`this`: [CreateWorkflowComposerContext](workflows.CreateWorkflowComposerContext.mdx)) => [WorkflowData](workflows.WorkflowData.mdx)&#60;TOutput&#62;
**StepFunctionResult**: (`this`: [CreateWorkflowComposerContext](workflows.CreateWorkflowComposerContext.mdx)) => [WorkflowData](workflows.WorkflowData.mdx)&#60;&#123; [K in keyof TOutput]: TOutput[K] &#125;&#62;
## Type Parameters
@@ -20,4 +20,4 @@ import TypeList from "@site/src/components/TypeList"
### Returns
<TypeList types={[{"name":"WorkflowData","type":"[WorkflowData](workflows.WorkflowData.mdx)&#60;TOutput&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"TOutput","type":"TOutput","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]} sectionTitle="__type"/>
<TypeList types={[{"name":"WorkflowData","type":"[WorkflowData](workflows.WorkflowData.mdx)&#60;&#123; [K in keyof TOutput]: TOutput[K] &#125;&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"&#123; [K in keyof TOutput]: TOutput[K] &#125;","type":"&#123; [K in keyof TOutput]: TOutput[K] &#125;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]} sectionTitle="__type"/>

View File

@@ -6,7 +6,7 @@ import TypeList from "@site/src/components/TypeList"
# WorkflowData
**WorkflowData**: T extends infer Item[] ? (`Item` \| [WorkflowData](workflows.WorkflowData.mdx)&#60;Item&#62;)[] : T extends `object` ? &#123; [Key in keyof T]: T[Key] \| WorkflowData&#60;T[Key]&#62; &#125; : T & [WorkflowDataProperties](workflows.WorkflowDataProperties.mdx)&#60;T&#62; & T & [WorkflowDataProperties](workflows.WorkflowDataProperties.mdx)&#60;T&#62; & `object`
**WorkflowData**: T extends `object` ? &#123; [Key in keyof T]: WorkflowData&#60;T[Key]&#62; &#125; : [WorkflowDataProperties](workflows.WorkflowDataProperties.mdx)&#60;T&#62; & [WorkflowDataProperties](workflows.WorkflowDataProperties.mdx)&#60;T&#62; & `object`
This type is used to encapsulate the input or output type of all utils.

View File

@@ -14,4 +14,4 @@ import TypeList from "@site/src/components/TypeList"
## Properties
<TypeList types={[{"name":"__type","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__step__","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]} sectionTitle="WorkflowDataProperties"/>
<TypeList types={[{"name":"__type","type":"`Symbol`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__step__","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]} sectionTitle="WorkflowDataProperties"/>