diff --git a/packages/js/src/api/inbox-service.ts b/packages/js/src/api/inbox-service.ts deleted file mode 100644 index 6b18307e5cd..00000000000 --- a/packages/js/src/api/inbox-service.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { HttpClient, ApiOptions } from '@novu/client'; - -import type { Session } from '../types'; - -export type InboxServiceOptions = ApiOptions; - -export class InboxService { - #token: string | undefined; - #httpClient: HttpClient; - - constructor(options: InboxServiceOptions = {}) { - this.#httpClient = new HttpClient(options); - } - - async initializeSession({ - applicationIdentifier, - subscriberId, - subscriberHash, - }: { - applicationIdentifier: string; - subscriberId: string; - subscriberHash?: string; - }): Promise { - const response = (await this.#httpClient.post(`/inbox/session`, { - applicationIdentifier, - subscriberId, - subscriberHash, - })) as Session; - - this.#token = response.token; - - return response; - } -} diff --git a/packages/js/src/api/index.ts b/packages/js/src/api/index.ts deleted file mode 100644 index c43d9b20265..00000000000 --- a/packages/js/src/api/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './inbox-service';