chore: Remove @medusajs/medusa usage + local types from dashboard (#8883)

Closes CC-403
This commit is contained in:
Oli Juhl
2024-08-30 15:37:44 +00:00
committed by GitHub
parent 3da01035f3
commit 4350fe5368
62 changed files with 296 additions and 618 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
import { HttpTypes } from "@medusajs/types"
import { Client } from "../client"
import { Config } from "../types"
@@ -13,7 +14,7 @@ export class Auth {
register = async (
actor: "customer" | "user",
method: "emailpass",
payload: { email: string; password: string }
payload: HttpTypes.AdminSignUpWithEmailPassword
) => {
const { token } = await this.client.fetch<{ token: string }>(
`/auth/${actor}/${method}/register`,
@@ -31,7 +32,7 @@ export class Auth {
login = async (
actor: "customer" | "user",
method: "emailpass",
payload: { email: string; password: string }
payload: HttpTypes.AdminSignInWithEmailPassword
) => {
const { token } = await this.client.fetch<{ token: string }>(
`/auth/${actor}/${method}`,