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

@@ -328,7 +328,7 @@ async function addPricesToPriceSet (priceSetId: string) {
"description": "The details of the relation between the money amount and its associated price set.",
"optional": true,
"defaultValue": "",
"expandable": true,
"expandable": false,
"children": []
}
]

View File

@@ -224,7 +224,7 @@ async function addRulesToPriceSet (priceSetId: string) {
"description": "The details of the relation between the money amount and its associated price set.",
"optional": true,
"defaultValue": "",
"expandable": true,
"expandable": false,
"children": []
}
]

View File

@@ -188,83 +188,93 @@ async function calculatePrice (priceSetId: string, currencyCode: string) {
<ParameterTypes parameters={[
{
"name": "Promise",
"type": "Promise&#60;[CalculatedPriceSetDTO](../../interfaces/CalculatedPriceSetDTO.mdx)&#62;",
"type": "Promise&#60;[CalculatedPriceSet](../../interfaces/CalculatedPriceSet.mdx)[]&#62;",
"optional": false,
"defaultValue": "",
"description": "The calculated price matching the context and filters provided.",
"description": "The calculated prices matching the context and filters provided.",
"expandable": false,
"children": [
{
"name": "amount",
"type": "`null` \\| `string`",
"description": "The calculated amount. It can possibly be `null` if there's no price set up for the provided context.",
"name": "CalculatedPriceSet[]",
"type": "[CalculatedPriceSet](../../interfaces/CalculatedPriceSet.mdx)[]",
"optional": false,
"defaultValue": "",
"description": "",
"expandable": false,
"children": []
},
{
"name": "currency_code",
"type": "`null` \\| `string`",
"description": "The currency code of the calculated price. It can possibly be `null`.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "The ID of the money amount.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "max_quantity",
"type": "`null` \\| `string`",
"description": "The maximum quantity required to be purchased for this price to apply. It's set if the `quantity` property is provided in the context. Otherwise, its value will be `null`.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "min_quantity",
"type": "`null` \\| `string`",
"description": "The minimum quantity required to be purchased for this price to apply. It's set if the `quantity` property is provided in the context. Otherwise, its value will be `null`.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "price_list_id",
"type": "`null` \\| `string`",
"description": "The ID of the associated price list, if any.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "price_list_type",
"type": "`null` \\| `string`",
"description": "The type of the associated price list, if any.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "price_set_id",
"type": "`string`",
"description": "The ID of the associated price set.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
"children": [
{
"name": "calculated_amount",
"type": "`null` \\| `number`",
"description": "The amount of the calculated price, or `null` if there isn't a calculated price.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "calculated_price",
"type": "`object`",
"description": "The details of the calculated price.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "currency_code",
"type": "`null` \\| `string`",
"description": "The currency code of the calculated price, or null if there isn't a calculated price.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "The ID of the price set.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "is_calculated_price_price_list",
"type": "`boolean`",
"description": "Whether the calculated price is associated with a price list. During the calculation process, if no valid price list is found, the calculated price is set to the original price, which doesn't belong to a price list. In that case, the value of this property is `false`.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "is_original_price_price_list",
"type": "`boolean`",
"description": "Whether the original price is associated with a price list. During the calculation process, if the price list of the calculated price is of type override, the original price will be the same as the calculated price. In that case, the value of this property is `true`.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "original_amount",
"type": "`null` \\| `number`",
"description": "The amount of the original price, or `null` if there isn't a calculated price.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "original_price",
"type": "`object`",
"description": "The details of the original price.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
}
]
}
]
}

View File

@@ -341,7 +341,7 @@ async function createPriceSet() {
"description": "The details of the relation between the money amount and its associated price set.",
"optional": true,
"defaultValue": "",
"expandable": true,
"expandable": false,
"children": []
}
]

View File

@@ -280,7 +280,7 @@ async function retrieveMoneyAmounts() {
"description": "The details of the relation between the money amount and its associated price set.",
"optional": true,
"defaultValue": "",
"expandable": true,
"expandable": false,
"children": []
}
]

View File

@@ -18,7 +18,7 @@ This method is used to create price lists.
## Example
```ts
import {
import {
initialize as initializePricingModule,
} from "@medusajs/pricing"

View File

@@ -18,7 +18,7 @@ This method is used to delete price lists.
## Example
```ts
import {
import {
initialize as initializePricingModule,
} from "@medusajs/pricing"

View File

@@ -220,17 +220,7 @@ async function retrievePriceSets (priceSetIds: string[], moneyAmountIds: string[
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -252,7 +242,7 @@ async function retrievePriceSets (priceSetIds: string[], moneyAmountIds: string[
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -261,7 +251,7 @@ async function retrievePriceSets (priceSetIds: string[], moneyAmountIds: string[
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -220,17 +220,7 @@ async function retrievePriceSets (priceSetIds: string[], moneyAmountIds: string[
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -252,7 +242,7 @@ async function retrievePriceSets (priceSetIds: string[], moneyAmountIds: string[
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -261,7 +251,7 @@ async function retrievePriceSets (priceSetIds: string[], moneyAmountIds: string[
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -140,17 +140,7 @@ async function retrieveCurrencies (codes: string[], skip: number, take: number)
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -172,7 +162,7 @@ async function retrieveCurrencies (codes: string[], skip: number, take: number)
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -181,7 +171,7 @@ async function retrieveCurrencies (codes: string[], skip: number, take: number)
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -181,17 +181,7 @@ async function retrieveMoneyAmounts (moneyAmountIds: string[], currencyCode: str
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -213,7 +203,7 @@ async function retrieveMoneyAmounts (moneyAmountIds: string[], currencyCode: str
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -222,7 +212,7 @@ async function retrieveMoneyAmounts (moneyAmountIds: string[], currencyCode: str
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -199,17 +199,7 @@ async function listAndCountPriceListRules (priceListRuleIds: string[], ruleTypeI
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -231,7 +221,7 @@ async function listAndCountPriceListRules (priceListRuleIds: string[], ruleTypeI
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -240,7 +230,7 @@ async function listAndCountPriceListRules (priceListRuleIds: string[], ruleTypeI
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -227,17 +227,7 @@ async function retrievePriceLists (priceListIds: string[], titles: string[], ski
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -259,7 +249,7 @@ async function retrievePriceLists (priceListIds: string[], titles: string[], ski
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -268,7 +258,7 @@ async function retrievePriceLists (priceListIds: string[], titles: string[], ski
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -188,17 +188,7 @@ async function retrievePriceRules (ids: string[], name: string[], skip: number,
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -220,7 +210,7 @@ async function retrievePriceRules (ids: string[], name: string[], skip: number,
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -229,7 +219,7 @@ async function retrievePriceRules (ids: string[], name: string[], skip: number,
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -189,17 +189,7 @@ async function retrievePriceSetMoneyAmountRules (ids: string[], ruleTypeId: stri
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -221,7 +211,7 @@ async function retrievePriceSetMoneyAmountRules (ids: string[], ruleTypeId: stri
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -230,7 +220,7 @@ async function retrievePriceSetMoneyAmountRules (ids: string[], ruleTypeId: stri
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -180,17 +180,7 @@ async function retrievePriceSetMoneyAmounts (ids: string[], titles: string[], sk
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -212,7 +202,7 @@ async function retrievePriceSetMoneyAmounts (ids: string[], titles: string[], sk
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -221,7 +211,7 @@ async function retrievePriceSetMoneyAmounts (ids: string[], titles: string[], sk
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -185,17 +185,7 @@ async function retrieveRuleTypes (ruleTypeId: string[], name: string[], skip: nu
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -217,7 +207,7 @@ async function retrieveRuleTypes (ruleTypeId: string[], name: string[], skip: nu
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -226,7 +216,7 @@ async function retrieveRuleTypes (ruleTypeId: string[], name: string[], skip: nu
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -140,17 +140,7 @@ async function retrieveCurrencies (codes: string[], skip: number, take: number)
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -172,7 +162,7 @@ async function retrieveCurrencies (codes: string[], skip: number, take: number)
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -181,7 +171,7 @@ async function retrieveCurrencies (codes: string[], skip: number, take: number)
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -181,17 +181,7 @@ async function retrieveMoneyAmounts (moneyAmountIds: string[], currencyCode: str
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -213,7 +203,7 @@ async function retrieveMoneyAmounts (moneyAmountIds: string[], currencyCode: str
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -222,7 +212,7 @@ async function retrieveMoneyAmounts (moneyAmountIds: string[], currencyCode: str
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",
@@ -376,7 +366,7 @@ async function retrieveMoneyAmounts (moneyAmountIds: string[], currencyCode: str
"description": "The details of the relation between the money amount and its associated price set.",
"optional": true,
"defaultValue": "",
"expandable": true,
"expandable": false,
"children": []
}
]

View File

@@ -199,17 +199,7 @@ async function listPriceListRules (priceListRuleIds: string[], ruleTypeIDs: stri
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -231,7 +221,7 @@ async function listPriceListRules (priceListRuleIds: string[], ruleTypeIDs: stri
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -240,7 +230,7 @@ async function listPriceListRules (priceListRuleIds: string[], ruleTypeIDs: stri
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -227,17 +227,7 @@ async function listPriceLists (priceListIds: string[], titles: string[], skip: n
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -259,7 +249,7 @@ async function listPriceLists (priceListIds: string[], titles: string[], skip: n
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -268,7 +258,7 @@ async function listPriceLists (priceListIds: string[], titles: string[], skip: n
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -188,17 +188,7 @@ async function retrievePriceRules (ids: string[], name: string[], skip: number,
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -220,7 +210,7 @@ async function retrievePriceRules (ids: string[], name: string[], skip: number,
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -229,7 +219,7 @@ async function retrievePriceRules (ids: string[], name: string[], skip: number,
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -188,17 +188,7 @@ async function retrievePriceSetMoneyAmountRules (ids: string[], ruleTypeId: stri
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -220,7 +210,7 @@ async function retrievePriceSetMoneyAmountRules (ids: string[], ruleTypeId: stri
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -229,7 +219,7 @@ async function retrievePriceSetMoneyAmountRules (ids: string[], ruleTypeId: stri
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -179,17 +179,7 @@ async function retrievePriceSetMoneyAmounts (ids: string[], titles: string[], sk
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -211,7 +201,7 @@ async function retrievePriceSetMoneyAmounts (ids: string[], titles: string[], sk
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -220,7 +210,7 @@ async function retrievePriceSetMoneyAmounts (ids: string[], titles: string[], sk
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -185,17 +185,7 @@ async function retrieveRuleTypes (ruleTypeId: string[], name: string[], skip: nu
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -217,7 +207,7 @@ async function retrieveRuleTypes (ruleTypeId: string[], name: string[], skip: nu
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -226,7 +216,7 @@ async function retrieveRuleTypes (ruleTypeId: string[], name: string[], skip: nu
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -219,7 +219,7 @@ async function setPriceListRules (priceListId: string) {
"description": "The details of the relation between the money amount and its associated price set.",
"optional": true,
"defaultValue": "",
"expandable": true,
"expandable": false,
"children": []
}
]

View File

@@ -83,17 +83,7 @@ async function retrievePriceSet (priceSetId: string) {
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -115,7 +105,7 @@ async function retrievePriceSet (priceSetId: string) {
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -124,7 +114,7 @@ async function retrievePriceSet (priceSetId: string) {
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",
@@ -287,7 +277,7 @@ async function retrievePriceSet (priceSetId: string) {
"description": "The details of the relation between the money amount and its associated price set.",
"optional": true,
"defaultValue": "",
"expandable": true,
"expandable": false,
"children": []
}
]

View File

@@ -83,17 +83,7 @@ async function retrieveCurrency (code: string) {
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -115,7 +105,7 @@ async function retrieveCurrency (code: string) {
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -124,7 +114,7 @@ async function retrieveCurrency (code: string) {
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -83,17 +83,7 @@ async function retrieveMoneyAmount (moneyAmountId: string) {
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -115,7 +105,7 @@ async function retrieveMoneyAmount (moneyAmountId: string) {
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -124,7 +114,7 @@ async function retrieveMoneyAmount (moneyAmountId: string) {
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",
@@ -307,7 +297,7 @@ async function retrieveMoneyAmount (moneyAmountId: string) {
"description": "The details of the relation between the money amount and its associated price set.",
"optional": true,
"defaultValue": "",
"expandable": true,
"expandable": false,
"children": [
{
"name": "id",

View File

@@ -83,17 +83,7 @@ async function retrievePriceList (priceListId: string) {
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -115,7 +105,7 @@ async function retrievePriceList (priceListId: string) {
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -124,7 +114,7 @@ async function retrievePriceList (priceListId: string) {
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",
@@ -296,7 +286,7 @@ async function retrievePriceList (priceListId: string) {
"description": "The details of the relation between the money amount and its associated price set.",
"optional": true,
"defaultValue": "",
"expandable": true,
"expandable": false,
"children": []
}
]

View File

@@ -83,17 +83,7 @@ async function retrievePriceListRule (priceListRuleId: string) {
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -115,7 +105,7 @@ async function retrievePriceListRule (priceListRuleId: string) {
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -124,7 +114,7 @@ async function retrievePriceListRule (priceListRuleId: string) {
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -78,17 +78,7 @@ async function retrievePriceRule (id: string) {
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -110,7 +100,7 @@ async function retrievePriceRule (id: string) {
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -119,7 +109,7 @@ async function retrievePriceRule (id: string) {
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -78,17 +78,7 @@ async function retrievePriceSetMoneyAmountRule (id: string) {
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -110,7 +100,7 @@ async function retrievePriceSetMoneyAmountRule (id: string) {
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -119,7 +109,7 @@ async function retrievePriceSetMoneyAmountRule (id: string) {
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -78,17 +78,7 @@ async function retrieveRuleType (ruleTypeId: string) {
"optional": true,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "__type",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
"children": []
},
{
"name": "relations",
@@ -110,7 +100,7 @@ async function retrieveRuleType (ruleTypeId: string) {
},
{
"name": "skip",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to skip before retrieving the results.",
"optional": true,
"defaultValue": "",
@@ -119,7 +109,7 @@ async function retrieveRuleType (ruleTypeId: string) {
},
{
"name": "take",
"type": "`number`",
"type": "`null` \\| `number`",
"description": "A number indicating the number of records to return in the result.",
"optional": true,
"defaultValue": "",

View File

@@ -221,7 +221,7 @@ async function setPriceListRules (priceListId: string) {
"description": "The details of the relation between the money amount and its associated price set.",
"optional": true,
"defaultValue": "",
"expandable": true,
"expandable": false,
"children": []
}
]

View File

@@ -230,7 +230,7 @@ async function updateMoneyAmounts (moneyAmountId: string, amount: number) {
"description": "The details of the relation between the money amount and its associated price set.",
"optional": true,
"defaultValue": "",
"expandable": true,
"expandable": false,
"children": []
}
]

View File

@@ -18,7 +18,7 @@ This method is used to update price lists.
## Example
```ts
import {
import {
initialize as initializePricingModule,
} from "@medusajs/pricing"
@@ -50,7 +50,7 @@ async function updatePriceLists (items: {
"children": [
{
"name": "ends_at",
"type": "`string`",
"type": "`null` \\| `string`",
"description": "The price list expires after this date.",
"optional": true,
"defaultValue": "",
@@ -86,7 +86,7 @@ async function updatePriceLists (items: {
},
{
"name": "starts_at",
"type": "`string`",
"type": "`null` \\| `string`",
"description": "The price list is enabled starting from this date.",
"optional": true,
"defaultValue": "",