From 1ffa7043cf29d460c8845999546169630786c5e7 Mon Sep 17 00:00:00 2001 From: Roland Osborne Date: Fri, 21 Jun 2024 15:42:11 -0700 Subject: [PATCH] restoring index file --- app/sdk/src/accountSession.ts | 4 ++-- app/sdk/src/{databagSdk.ts => index.ts} | 4 ++++ app/sdk/tsup.config.ts | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) rename app/sdk/src/{databagSdk.ts => index.ts} (92%) diff --git a/app/sdk/src/accountSession.ts b/app/sdk/src/accountSession.ts index 81e96b6b..20100331 100644 --- a/app/sdk/src/accountSession.ts +++ b/app/sdk/src/accountSession.ts @@ -1,5 +1,5 @@ -import { SqlStore } from './databagSdk'; -import { WebStore } from './databagSdk'; +import { SqlStore } from './index'; +import { WebStore } from './index'; export class AccountSession { diff --git a/app/sdk/src/databagSdk.ts b/app/sdk/src/index.ts similarity index 92% rename from app/sdk/src/databagSdk.ts rename to app/sdk/src/index.ts index 18e9284d..596a8828 100644 --- a/app/sdk/src/databagSdk.ts +++ b/app/sdk/src/index.ts @@ -34,6 +34,10 @@ export class DatabagSDK { return new AccountSession(this.sqlStore, this.webStore); } + public async accountLogin(): Promise { + return new AccountSession(this.sqlStore, this.webStore); + } + public async accountAccess(): Promise { return new AccountSession(this.sqlStore, this.webStore); } diff --git a/app/sdk/tsup.config.ts b/app/sdk/tsup.config.ts index c8fb1b2e..03cbfb72 100644 --- a/app/sdk/tsup.config.ts +++ b/app/sdk/tsup.config.ts @@ -1,7 +1,7 @@ import { defineConfig } from "tsup"; export default defineConfig({ - entry: ["src/databagSdk.ts", "src/AccountSession.ts", "src/AdminSession.ts"], + entry: ["src/index.ts", "src/AccountSession.ts", "src/AdminSession.ts"], format: ["cjs", "esm"], // Build for commonJS and ESmodules dts: true, // Generate declaration file (.d.ts) splitting: false,