Merge branch 'master' into develop
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/medusa": patch
|
||||
---
|
||||
|
||||
fix(medusa): use transformer middleware config when querying store products and store orders endpoints
|
||||
@@ -0,0 +1,33 @@
|
||||
---
|
||||
"create-medusa-app": patch
|
||||
"gatsby-source-medusa": patch
|
||||
"@medusajs/inventory": patch
|
||||
"@medusajs/medusa-cli": patch
|
||||
"medusa-core-utils": patch
|
||||
"medusa-dev-cli": patch
|
||||
"medusa-file-minio": patch
|
||||
"medusa-file-s3": patch
|
||||
"medusa-file-spaces": patch
|
||||
"medusa-fulfillment-manual": patch
|
||||
"medusa-fulfillment-webshipper": patch
|
||||
"medusa-interfaces": patch
|
||||
"@medusajs/medusa-js": patch
|
||||
"medusa-payment-adyen": patch
|
||||
"medusa-payment-klarna": patch
|
||||
"medusa-payment-manual": patch
|
||||
"medusa-payment-paypal": patch
|
||||
"medusa-payment-stripe": patch
|
||||
"medusa-plugin-algolia": patch
|
||||
"medusa-plugin-brightpearl": patch
|
||||
"medusa-plugin-contentful": patch
|
||||
"medusa-plugin-discount-generator": patch
|
||||
"medusa-plugin-economic": patch
|
||||
"medusa-plugin-ip-lookup": patch
|
||||
"medusa-plugin-mailchimp": patch
|
||||
"medusa-plugin-meilisearch": patch
|
||||
"medusa-plugin-restock-notification": patch
|
||||
"medusa-plugin-segment": patch
|
||||
"@medusajs/medusa": patch
|
||||
---
|
||||
|
||||
chore: Fix npm packages files included
|
||||
+2755
-379
File diff suppressed because it is too large
Load Diff
+4125
-4925
File diff suppressed because it is too large
Load Diff
+3
-3
@@ -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.productCategories.retrieve("pcat-id")
|
||||
.then(({ productCategory }) => {
|
||||
console.log(productCategory.id);
|
||||
medusa.admin.inventoryItems.list()
|
||||
.then(({ inventory_items }) => {
|
||||
console.log(inventory_items.length);
|
||||
});
|
||||
@@ -0,0 +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.admin.inventoryItems.delete(inventoryItemId)
|
||||
.then(({ id, object, deleted }) => {
|
||||
console.log(id)
|
||||
})
|
||||
@@ -0,0 +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.admin.inventoryItems.retrieve(inventoryItemId)
|
||||
.then(({ inventory_item }) => {
|
||||
console.log(inventory_item.id);
|
||||
});
|
||||
@@ -0,0 +1,9 @@
|
||||
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.admin.inventoryItems.update(inventoryItemId, {
|
||||
origin_country: "US",
|
||||
})
|
||||
.then(({ inventory_item }) => {
|
||||
console.log(inventory_item.id);
|
||||
});
|
||||
@@ -0,0 +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.admin.inventoryItems.listLocationLevels(inventoryItemId)
|
||||
.then(({ inventory_item }) => {
|
||||
console.log(inventory_item.location_levels);
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
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.admin.inventoryItems.createLocationLevel(inventoryItemId, {
|
||||
location_id: 'sloc',
|
||||
stocked_quantity: 10,
|
||||
})
|
||||
.then(({ inventory_item }) => {
|
||||
console.log(inventory_item.id);
|
||||
});
|
||||
+7
@@ -0,0 +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.admin.inventoryItems.deleteLocationLevel(inventoryItemId, locationId)
|
||||
.then(({ inventory_item }) => {
|
||||
console.log(inventory_item.id);
|
||||
});
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
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.admin.inventoryItems.updateLocationLevel(inventoryItemId, locationId, {
|
||||
stocked_quantity: 15,
|
||||
})
|
||||
.then(({ inventory_item }) => {
|
||||
console.log(inventory_item.id);
|
||||
});
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user