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

Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
This commit is contained in:
authored and GitHub committed 2023-05-04 14:23:29 +03:00
1 parent a5707b48fc
commit 0dbca9552e
5 files changed
+12 -8

No files matched your search

@@ -3,6 +3,7 @@ const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
medusa.admin.auth.createSession({
email: 'user@example.com',
password: 'supersecret'
}).then((({ user }) => {
})
.then(({ user }) => {
console.log(user.id);
});
@@ -1,7 +1,8 @@
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.orders.fulfillClaim(order_id, claim_id)
medusa.admin.orders.fulfillClaim(order_id, claim_id, {
})
.then(({ order }) => {
console.log(order.id);
});
@@ -1,7 +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.orders.fulfillSwap(order_id, swap_id)
medusa.admin.orders.fulfillSwap(order_id, swap_id, {
})
.then(({ order }) => {
console.log(order.id);
});