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:
co-authored by
Oli Juhl
Shahed Nasser
parent
dc6b815b12
commit
cdd42dbdcd
@@ -8,13 +8,13 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
|
||||
## Methods
|
||||
|
||||
### create
|
||||
#### create
|
||||
|
||||
`**create**(input, context?): Promise<[StockLocationDTO](../types/StockLocationDTO.mdx)>`
|
||||
|
||||
This method is used to create a stock location.
|
||||
|
||||
#### Example
|
||||
##### Example
|
||||
|
||||
```ts
|
||||
import {
|
||||
@@ -32,7 +32,7 @@ async function createStockLocation (name: string) {
|
||||
}
|
||||
```
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -55,7 +55,7 @@ async function createStockLocation (name: string) {
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[StockLocationDTO](../types/StockLocationDTO.mdx)>
|
||||
|
||||
@@ -73,13 +73,13 @@ Promise<[StockLocationDTO](../types/StockLocationDTO.mdx)>
|
||||
|
||||
___
|
||||
|
||||
### delete
|
||||
#### delete
|
||||
|
||||
`**delete**(id, context?): Promise<void>`
|
||||
|
||||
This method is used to delete a stock location.
|
||||
|
||||
#### Example
|
||||
##### Example
|
||||
|
||||
```ts
|
||||
import {
|
||||
@@ -93,7 +93,7 @@ async function deleteStockLocation (id:string) {
|
||||
}
|
||||
```
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -116,7 +116,7 @@ async function deleteStockLocation (id:string) {
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<void>
|
||||
|
||||
@@ -134,13 +134,13 @@ Promise<void>
|
||||
|
||||
___
|
||||
|
||||
### list
|
||||
#### list
|
||||
|
||||
`**list**(selector, config?, context?): Promise<[StockLocationDTO](../types/StockLocationDTO.mdx)[]>`
|
||||
|
||||
This method is used to retrieve a paginated list of stock locations based on optional filters and configuration.
|
||||
|
||||
#### Example
|
||||
##### Example
|
||||
|
||||
To retrieve a list of stock locations using their IDs:
|
||||
|
||||
@@ -202,7 +202,7 @@ async function listStockLocations (ids: string[], skip: number, take: number) {
|
||||
}
|
||||
```
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -234,7 +234,7 @@ async function listStockLocations (ids: string[], skip: number, take: number) {
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[StockLocationDTO](../types/StockLocationDTO.mdx)[]>
|
||||
|
||||
@@ -252,13 +252,13 @@ Promise<[StockLocationDTO](../types/StockLocationDTO.mdx)[]>
|
||||
|
||||
___
|
||||
|
||||
### listAndCount
|
||||
#### listAndCount
|
||||
|
||||
`**listAndCount**(selector, config?, context?): Promise<[[StockLocationDTO](../types/StockLocationDTO.mdx)[], number]>`
|
||||
|
||||
This method is used to retrieve a paginated list of stock locations along with the total count of available stock locations satisfying the provided filters.
|
||||
|
||||
#### Example
|
||||
##### Example
|
||||
|
||||
To retrieve a list of stock locations using their IDs:
|
||||
|
||||
@@ -320,7 +320,7 @@ async function listStockLocations (ids: string[], skip: number, take: number) {
|
||||
}
|
||||
```
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -352,7 +352,7 @@ async function listStockLocations (ids: string[], skip: number, take: number) {
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[[StockLocationDTO](../types/StockLocationDTO.mdx)[], number]>
|
||||
|
||||
@@ -370,13 +370,13 @@ Promise<[[StockLocationDTO](../types/StockLocationDTO.mdx)[], number]>
|
||||
|
||||
___
|
||||
|
||||
### retrieve
|
||||
#### retrieve
|
||||
|
||||
`**retrieve**(id, config?, context?): Promise<[StockLocationDTO](../types/StockLocationDTO.mdx)>`
|
||||
|
||||
This method is used to retrieve a stock location by its ID
|
||||
|
||||
#### Example
|
||||
##### Example
|
||||
|
||||
A simple example that retrieves a inventory item by its ID:
|
||||
|
||||
@@ -412,7 +412,7 @@ async function retrieveStockLocation (id: string) {
|
||||
}
|
||||
```
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -444,7 +444,7 @@ async function retrieveStockLocation (id: string) {
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[StockLocationDTO](../types/StockLocationDTO.mdx)>
|
||||
|
||||
@@ -462,13 +462,13 @@ Promise<[StockLocationDTO](../types/StockLocationDTO.mdx)>
|
||||
|
||||
___
|
||||
|
||||
### update
|
||||
#### update
|
||||
|
||||
`**update**(id, input, context?): Promise<[StockLocationDTO](../types/StockLocationDTO.mdx)>`
|
||||
|
||||
This method is used to update a stock location.
|
||||
|
||||
#### Example
|
||||
##### Example
|
||||
|
||||
```ts
|
||||
import {
|
||||
@@ -486,7 +486,7 @@ async function updateStockLocation (id:string, name: string) {
|
||||
}
|
||||
```
|
||||
|
||||
#### Parameters
|
||||
##### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -518,7 +518,7 @@ async function updateStockLocation (id:string, name: string) {
|
||||
}
|
||||
]} />
|
||||
|
||||
#### Returns
|
||||
##### Returns
|
||||
|
||||
Promise<[StockLocationDTO](../types/StockLocationDTO.mdx)>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user