chore(docs): Generated References (#5743)

Generated the following references:
- `entities`
- `inventory`
- `js-client`
- `pricing`
- `product`
- `services`
- `stock-location`
- `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:
github-actions[bot]
2023-11-27 18:58:52 +00:00
committed by GitHub
parent dc6b815b12
commit cdd42dbdcd
1383 changed files with 18978 additions and 20154 deletions

View File

@@ -39,12 +39,12 @@ Related Guide: [How to implement customer profiles in your storefront](https://d
## Methods
### create
#### create
Register a new customer. This will also automatically authenticate the customer and set their login session in the response Cookie header.
Subsequent requests sent with the JS client are sent with the Cookie session automatically.
#### Example
##### Example
```ts
import Medusa from "@medusajs/medusa-js"
@@ -61,7 +61,7 @@ medusa.customers
})
```
#### Parameters
##### Parameters
<ParameterTypes parameters={[
{
@@ -130,7 +130,7 @@ medusa.customers
}
]} />
#### Returns
##### Returns
<ParameterTypes parameters={[
{
@@ -302,12 +302,12 @@ medusa.customers
___
### generatePasswordToken
#### generatePasswordToken
Create a reset password token to be used when sending a request with the [resetPassword](CustomersResource.mdx#resetpassword) method. This emits the event `customer.password_reset`. If a notification provider is
installed in the Medusa backend and is configured to handle this event, a notification to the customer, such as an email, may be sent with reset instructions.
#### Example
##### Example
```ts
import Medusa from "@medusajs/medusa-js"
@@ -324,7 +324,7 @@ medusa.customers
})
```
#### Parameters
##### Parameters
<ParameterTypes parameters={[
{
@@ -357,7 +357,7 @@ medusa.customers
}
]} />
#### Returns
##### Returns
<ParameterTypes parameters={[
{
@@ -373,12 +373,12 @@ medusa.customers
___
### listOrders
#### listOrders
Retrieve a list of the logged-in customer's orders. The orders can be filtered by fields such as `status` or `fulfillment_status`. The orders can also be paginated.
This method requires [customer authentication](AuthResource.mdx#authenticate).
#### Example
##### Example
```ts
import Medusa from "@medusajs/medusa-js"
@@ -389,7 +389,7 @@ medusa.customers.listOrders().then(({ orders, limit, offset, count }) => {
})
```
#### Parameters
##### Parameters
<ParameterTypes parameters={[
{
@@ -878,7 +878,7 @@ medusa.customers.listOrders().then(({ orders, limit, offset, count }) => {
}
]} />
#### Returns
##### Returns
<ParameterTypes parameters={[
{
@@ -1446,12 +1446,12 @@ medusa.customers.listOrders().then(({ orders, limit, offset, count }) => {
___
### resetPassword
#### resetPassword
Reset a customer's password using a password token created by a previous request using the [generatePasswordToken](CustomersResource.mdx#generatepasswordtoken) method. If the password token expired,
you must create a new one.
#### Example
##### Example
```ts
import Medusa from "@medusajs/medusa-js"
@@ -1467,7 +1467,7 @@ medusa.customers
})
```
#### Parameters
##### Parameters
<ParameterTypes parameters={[
{
@@ -1518,7 +1518,7 @@ medusa.customers
}
]} />
#### Returns
##### Returns
<ParameterTypes parameters={[
{
@@ -1690,11 +1690,11 @@ medusa.customers
___
### retrieve
#### retrieve
Retrieve the logged-in customer's details. This method requires [customer authentication](AuthResource.mdx#authenticate).
#### Example
##### Example
```ts
import Medusa from "@medusajs/medusa-js"
@@ -1705,7 +1705,7 @@ medusa.customers.retrieve().then(({ customer }) => {
})
```
#### Parameters
##### Parameters
<ParameterTypes parameters={[
{
@@ -1719,7 +1719,7 @@ medusa.customers.retrieve().then(({ customer }) => {
}
]} />
#### Returns
##### Returns
<ParameterTypes parameters={[
{
@@ -1891,11 +1891,11 @@ medusa.customers.retrieve().then(({ customer }) => {
___
### update
#### update
Update the logged-in customer's details. This method requires [customer authentication](AuthResource.mdx#authenticate).
#### Example
##### Example
```ts
import Medusa from "@medusajs/medusa-js"
@@ -1910,7 +1910,7 @@ medusa.customers
})
```
#### Parameters
##### Parameters
<ParameterTypes parameters={[
{
@@ -1997,7 +1997,7 @@ medusa.customers
}
]} />
#### Returns
##### Returns
<ParameterTypes parameters={[
{