docs: added customer storefront guides (#7685)

* added customer guides

* fixes to sidebar

* remove old customer registration guide

* fix build error

* generate files

* run linter
This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-06-13 12:21:54 +03:00
1 parent d862d03de0
commit c1db40b564
80 files changed
+2301 -701

No files matched your search

@@ -122,11 +122,11 @@ In this guide, you’ll find common examples of how you can use the API Key Modu
```ts collapsibleLines="1-9" expandButtonLabel="Show Imports"
import {
AuthenticatedMedusaRequest,
MedusaResponse
MedusaResponse,
} from "@medusajs/medusa"
import { IApiKeyModuleService } from "@medusajs/types"
import {
ModuleRegistrationName
ModuleRegistrationName,
} from "@medusajs/modules-sdk"
export async function POST(
@@ -139,7 +139,7 @@ In this guide, you’ll find common examples of how you can use the API Key Modu
const revokedKey = await apiKeyModuleService.revoke(
request.params.id,
{
revoked_by: request.auth_context.actor_id
revoked_by: request.auth_context.actor_id,
}
)
@@ -175,7 +175,7 @@ In this guide, you’ll find common examples of how you can use the API Key Modu
const revokedKey = await apiKeyModuleService.revoke(
params.id,
{
revoked_by: params.user_id
revoked_by: params.user_id,
}
)
@@ -260,7 +260,7 @@ In this guide, you’ll find common examples of how you can use the API Key Modu
```ts collapsibleLines="1-8" expandButtonLabel="Show Imports"
import {
AuthenticatedMedusaRequest,
MedusaResponse
MedusaResponse,
} from "@medusajs/medusa"
import { IApiKeyModuleService } from "@medusajs/types"
import { ModuleRegistrationName } from "@medusajs/modules-sdk"
@@ -275,7 +275,7 @@ In this guide, you’ll find common examples of how you can use the API Key Modu
const revokedKey = await apiKeyModuleService.revoke(
request.params.id,
{
revoked_by: request.auth_context.actor_id
revoked_by: request.auth_context.actor_id,
}
)
@@ -315,7 +315,7 @@ In this guide, you’ll find common examples of how you can use the API Key Modu
const apiKeyModuleService = await initializeApiKeyModule()
const revokedKey = await apiKeyModuleService.revoke(params.id, {
revoked_by: params.user_id
revoked_by: params.user_id,
})
const newKey = await apiKeyModuleService.create({
@@ -53,7 +53,7 @@ Revoke keys to disable their use permenantly.
```ts
const revokedKey = await apiKeyModuleService.revoke("apk_1", {
revoked_by: "user_123"
revoked_by: "user_123",
})
```
@@ -63,7 +63,7 @@ Roll API keys by revoking a key then re-creating it.
```ts
const revokedKey = await apiKeyModuleService.revoke("apk_1", {
revoked_by: "user_123"
revoked_by: "user_123",
})
const newKey = await apiKeyModuleService.create({