From 061a0a37fa21574f7951d9f5b335b99bd33b7cb1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 30 Jan 2023 15:37:43 +0200 Subject: [PATCH] chore(docs): Updated API Reference (#3142) * chore(docs): Generated API Reference * Update admin-spec3.json * Update admin-spec3.yaml * Update openapi.yaml --------- Co-authored-by: shahednasser Co-authored-by: Shahed Nasser --- docs/api/store-spec3.json | 4 ++-- docs/api/store-spec3.yaml | 4 ++-- .../store/code_samples/JavaScript/product-tags/getundefined | 2 +- .../store/code_samples/JavaScript/product-types/getundefined | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/api/store-spec3.json b/docs/api/store-spec3.json index 78ce2600e0..61259dedfb 100644 --- a/docs/api/store-spec3.json +++ b/docs/api/store-spec3.json @@ -3313,7 +3313,7 @@ paths: const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 }) - medusa.store.productTags.list() + medusa.productTags.list() .then(({ product_tags }) => { console.log(product_tags.length); @@ -3463,7 +3463,7 @@ paths: // must be previously logged in or use api token - medusa.store.productTypes.list() + medusa.productTypes.list() .then(({ product_types }) => { console.log(product_types.length); diff --git a/docs/api/store-spec3.yaml b/docs/api/store-spec3.yaml index 78ce2600e0..61259dedfb 100644 --- a/docs/api/store-spec3.yaml +++ b/docs/api/store-spec3.yaml @@ -3313,7 +3313,7 @@ paths: const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 }) - medusa.store.productTags.list() + medusa.productTags.list() .then(({ product_tags }) => { console.log(product_tags.length); @@ -3463,7 +3463,7 @@ paths: // must be previously logged in or use api token - medusa.store.productTypes.list() + medusa.productTypes.list() .then(({ product_types }) => { console.log(product_types.length); diff --git a/docs/api/store/code_samples/JavaScript/product-tags/getundefined b/docs/api/store/code_samples/JavaScript/product-tags/getundefined index 7d0a963010..4cb9290fe8 100644 --- a/docs/api/store/code_samples/JavaScript/product-tags/getundefined +++ b/docs/api/store/code_samples/JavaScript/product-tags/getundefined @@ -1,6 +1,6 @@ import Medusa from "@medusajs/medusa-js" const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 }) -medusa.store.productTags.list() +medusa.productTags.list() .then(({ product_tags }) => { console.log(product_tags.length); }); diff --git a/docs/api/store/code_samples/JavaScript/product-types/getundefined b/docs/api/store/code_samples/JavaScript/product-types/getundefined index 355ccb321a..448cefcb2a 100644 --- a/docs/api/store/code_samples/JavaScript/product-types/getundefined +++ b/docs/api/store/code_samples/JavaScript/product-types/getundefined @@ -1,7 +1,7 @@ import Medusa from "@medusajs/medusa-js" const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 }) // must be previously logged in or use api token -medusa.store.productTypes.list() +medusa.productTypes.list() .then(({ product_types }) => { console.log(product_types.length); });