INNER CODE UNIT · TypeScript

DatabagSDK

balzack/databag · app/sdk/src/index.ts:27

export class DatabagSDK {
  private log: Logging;
  private crypto: Crypto | null;
  private staging: Staging | null;
  private store: Store;
  private params: Params;

  constructor(params: Params, crypto?: Crypto, staging?: Staging, log?: Logging) {
    this.store = new NoStore();
    this.params = params;
    this.crypto = crypto ? crypto : null;
    this.staging = staging ? staging : null;
    this.log = log ? log : new ConsoleLogging();
    this.log.info('databag sdk');
  }

  public async initOfflineStore(sql: SqlStore): Promise<Session | null> {
    const { channelTypes } = this.params;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…