chore(docs): Generated API Reference (#3813)

Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
This commit is contained in:
github-actions[bot]andolivermrbl authored and GitHub committed 2023-04-12 11:56:12 +02:00
1 parent 25672dbb77
commit d83fcfd9ea
10 files changed
+32 -12

No files matched your search

+11 -3
View File
@@ -1901,7 +1901,7 @@
{ {
"lang": "JavaScript", "lang": "JavaScript",
"label": "JS Client", "label": "JS Client",
"source": "import Medusa from \"@medusajs/medusa-js\"\nconst medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })\n// must be previously logged in or use api token\nmedusa.admin.currencies.update(code, {\n includes_tax: true\n})\n.then(({ currency }) => {\n console.log(currency.id);\n});\n" "source": "import Medusa from \"@medusajs/medusa-js\"\nconst medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })\n// must be previously logged in or use api token\nmedusa.admin.currencies.update(code, {\n includes_tax: true\n})\n.then(({ currency }) => {\n console.log(currency.code);\n});\n"
}, },
{ {
"lang": "Shell", "lang": "Shell",
@@ -21062,7 +21062,7 @@
{ {
"lang": "JavaScript", "lang": "JavaScript",
"label": "JS Client", "label": "JS Client",
"source": "import Medusa from \"@medusajs/medusa-js\"\nconst medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })\n// must be previously logged in or use api token\nmedusa.admin.store.addCurrency('eur')\n.then(({ store }) => {\n console.log(store.id);\n});\n" "source": "import Medusa from \"@medusajs/medusa-js\"\nconst medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })\n// must be previously logged in or use api token\nmedusa.admin.store.addCurrency('eur')\n.then(({ store }) => {\n console.log(store.currencies);\n});\n"
}, },
{ {
"lang": "Shell", "lang": "Shell",
@@ -21139,7 +21139,7 @@
{ {
"lang": "JavaScript", "lang": "JavaScript",
"label": "JS Client", "label": "JS Client",
"source": "import Medusa from \"@medusajs/medusa-js\"\nconst medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })\n// must be previously logged in or use api token\nmedusa.admin.store.deleteCurrency('eur')\n.then(({ store }) => {\n console.log(store.id);\n});\n" "source": "import Medusa from \"@medusajs/medusa-js\"\nconst medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })\n// must be previously logged in or use api token\nmedusa.admin.store.deleteCurrency('eur')\n.then(({ store }) => {\n console.log(store.currencies);\n});\n"
}, },
{ {
"lang": "Shell", "lang": "Shell",
@@ -28547,6 +28547,10 @@
"type": "string", "type": "string",
"description": "The name to identify the Product Category by." "description": "The name to identify the Product Category by."
}, },
"description": {
"type": "string",
"description": "An optional text field to describe the Product Category by."
},
"handle": { "handle": {
"type": "string", "type": "string",
"description": "A handle to be used in slugs." "description": "A handle to be used in slugs."
@@ -28579,6 +28583,10 @@
"type": "string", "type": "string",
"description": "The name to identify the Product Category by." "description": "The name to identify the Product Category by."
}, },
"description": {
"type": "string",
"description": "An optional text field to describe the Product Category by."
},
"handle": { "handle": {
"type": "string", "type": "string",
"description": "An optional handle to be used in slugs, if none is provided we will kebab-case the title." "description": "An optional handle to be used in slugs, if none is provided we will kebab-case the title."
+9 -3
View File
@@ -1602,7 +1602,7 @@ paths:
includes_tax: true includes_tax: true
}) })
.then(({ currency }) => { .then(({ currency }) => {
console.log(currency.id); console.log(currency.code);
}); });
- lang: Shell - lang: Shell
label: cURL label: cURL
@@ -16196,7 +16196,7 @@ paths:
// must be previously logged in or use api token // must be previously logged in or use api token
medusa.admin.store.addCurrency('eur') medusa.admin.store.addCurrency('eur')
.then(({ store }) => { .then(({ store }) => {
console.log(store.id); console.log(store.currencies);
}); });
- lang: Shell - lang: Shell
label: cURL label: cURL
@@ -16253,7 +16253,7 @@ paths:
// must be previously logged in or use api token // must be previously logged in or use api token
medusa.admin.store.deleteCurrency('eur') medusa.admin.store.deleteCurrency('eur')
.then(({ store }) => { .then(({ store }) => {
console.log(store.id); console.log(store.currencies);
}); });
- lang: Shell - lang: Shell
label: cURL label: cURL
@@ -21814,6 +21814,9 @@ components:
name: name:
type: string type: string
description: The name to identify the Product Category by. description: The name to identify the Product Category by.
description:
type: string
description: An optional text field to describe the Product Category by.
handle: handle:
type: string type: string
description: A handle to be used in slugs. description: A handle to be used in slugs.
@@ -21837,6 +21840,9 @@ components:
name: name:
type: string type: string
description: The name to identify the Product Category by. description: The name to identify the Product Category by.
description:
type: string
description: An optional text field to describe the Product Category by.
handle: handle:
type: string type: string
description: An optional handle to be used in slugs, if none is provided we will kebab-case the title. description: An optional handle to be used in slugs, if none is provided we will kebab-case the title.
@@ -5,5 +5,5 @@ medusa.admin.currencies.update(code, {
includes_tax: true includes_tax: true
}) })
.then(({ currency }) => { .then(({ currency }) => {
console.log(currency.id); console.log(currency.code);
}); });
@@ -3,5 +3,5 @@ const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
// must be previously logged in or use api token // must be previously logged in or use api token
medusa.admin.store.deleteCurrency('eur') medusa.admin.store.deleteCurrency('eur')
.then(({ store }) => { .then(({ store }) => {
console.log(store.id); console.log(store.currencies);
}); });
@@ -3,5 +3,5 @@ const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
// must be previously logged in or use api token // must be previously logged in or use api token
medusa.admin.store.addCurrency('eur') medusa.admin.store.addCurrency('eur')
.then(({ store }) => { .then(({ store }) => {
console.log(store.id); console.log(store.currencies);
}); });
@@ -3,6 +3,9 @@ properties:
name: name:
type: string type: string
description: The name to identify the Product Category by. description: The name to identify the Product Category by.
description:
type: string
description: An optional text field to describe the Product Category by.
handle: handle:
type: string type: string
description: A handle to be used in slugs. description: A handle to be used in slugs.
@@ -5,6 +5,9 @@ properties:
name: name:
type: string type: string
description: The name to identify the Product Category by. description: The name to identify the Product Category by.
description:
type: string
description: An optional text field to describe the Product Category by.
handle: handle:
type: string type: string
description: >- description: >-
+1 -1
View File
@@ -14280,7 +14280,7 @@
], ],
"properties": { "properties": {
"code": { "code": {
"description": "The code that a Discount is identifed by.", "description": "The code that a Discount is identified by.",
"type": "string" "type": "string"
} }
} }
+1 -1
View File
@@ -11288,7 +11288,7 @@ components:
- code - code
properties: properties:
code: code:
description: The code that a Discount is identifed by. description: The code that a Discount is identified by.
type: string type: string
customer_id: customer_id:
description: The ID of the Customer to associate the Cart with. description: The ID of the Customer to associate the Cart with.
@@ -51,7 +51,7 @@ properties:
- code - code
properties: properties:
code: code:
description: The code that a Discount is identifed by. description: The code that a Discount is identified by.
type: string type: string
customer_id: customer_id:
description: The ID of the Customer to associate the Cart with. description: The ID of the Customer to associate the Cart with.