diff --git a/packages/wapi.js/src/client/request-client.ts b/packages/wapi.js/src/client/request-client.ts index fa64643..fdcace5 100644 --- a/packages/wapi.js/src/client/request-client.ts +++ b/packages/wapi.js/src/client/request-client.ts @@ -68,7 +68,7 @@ export class RequestClient implements RequestClientInterface { try { const requestUrl = this.getRequestUrl(); - console.log({ requestUrl, path, body }) + console.log({ requestUrl, path, body }); const response = await fetch(`${requestUrl}${path}`, { method: method, @@ -78,12 +78,11 @@ export class RequestClient implements RequestClientInterface { Authorization: `Bearer ${this.accessToken}`, "User-Agent": this.userAgent, }, - }); const responseBody = await response.json(); - console.log({ responseCode: response.status }) + console.log({ responseCode: response.status }); return responseBody as CloudApiRequesterResourceTypeToResponseTypeMap[T]; } catch (error) { diff --git a/packages/wapi.js/src/manager/media/index.ts b/packages/wapi.js/src/manager/media/index.ts index 1c0a75a..4fa3d21 100644 --- a/packages/wapi.js/src/manager/media/index.ts +++ b/packages/wapi.js/src/manager/media/index.ts @@ -4,11 +4,8 @@ import { BaseManager } from "../base"; import { type MediaManagerInterface } from "./interface"; import { CloudApiGetMediaUrlRequestSuccessResponseSchemaType, - CloudApiResponseSchemaType, type CloudApiRequestResourceType, } from "../../client/schema"; -import { type MediaUploadResponseSchemaType } from "./schema"; - /** * Manager to handle media. diff --git a/packages/wapi.js/src/manager/media/interface.ts b/packages/wapi.js/src/manager/media/interface.ts index 2490005..f21ccca 100644 --- a/packages/wapi.js/src/manager/media/interface.ts +++ b/packages/wapi.js/src/manager/media/interface.ts @@ -1,7 +1,6 @@ import { type z } from "zod"; import { type BaseManagerInterface } from "../base/interface"; import { type CloudApiGetMediaUrlRequestSuccessResponseSchemaType } from "../../client/schema"; -import { type MediaUploadResponseSchemaType } from "./schema"; /** * Media manager interface