UNPKG

wa-chat-server-microsoft

Version:

wa-chat-server adapter for the Microsoft Bot Framework

54 lines (53 loc) 1.8 kB
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SessionMock = void 0; class SessionMock { constructor() { this.data = {}; this.sessionId = 'SESSION_ID'; this.runningAssistant = 'ASSISTANT_ID'; this.sessionStorage = null; this.config = null; this.storages = null; } start() { return __awaiter(this, void 0, void 0, function* () { return this; }); } end() { return __awaiter(this, void 0, void 0, function* () { return null; }); } getStorage() { return null; } initStorage() { return __awaiter(this, void 0, void 0, function* () { return null; }); } restartSession() { return __awaiter(this, void 0, void 0, function* () { return null; }); } // eslint-disable-next-line updateContext(newPayload) { } currentData() { return null; } // eslint-disable-next-line setRunningAssistant(runningAssistant) { } } exports.SessionMock = SessionMock;