restoring index file

This commit is contained in:
Roland Osborne 2024-06-21 15:42:11 -07:00
parent 41e606e298
commit 1ffa7043cf
3 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import { SqlStore } from './databagSdk'; import { SqlStore } from './index';
import { WebStore } from './databagSdk'; import { WebStore } from './index';
export class AccountSession { export class AccountSession {

View File

@ -34,6 +34,10 @@ export class DatabagSDK {
return new AccountSession(this.sqlStore, this.webStore); return new AccountSession(this.sqlStore, this.webStore);
} }
public async accountLogin(): Promise<AccountSession> {
return new AccountSession(this.sqlStore, this.webStore);
}
public async accountAccess(): Promise<AccountSession> { public async accountAccess(): Promise<AccountSession> {
return new AccountSession(this.sqlStore, this.webStore); return new AccountSession(this.sqlStore, this.webStore);
} }

View File

@ -1,7 +1,7 @@
import { defineConfig } from "tsup"; import { defineConfig } from "tsup";
export default defineConfig({ 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 format: ["cjs", "esm"], // Build for commonJS and ESmodules
dts: true, // Generate declaration file (.d.ts) dts: true, // Generate declaration file (.d.ts)
splitting: false, splitting: false,