UNPKG

fb-test-module

Version:

How to use: ``` import {store, getStore} from 'fb-test-module'; conf.DialogramApi = "API_BASE_URL"; conf.Platform = "mobile"; //use "web" if you are on webApp getStore(); //Inject store in your provider ``` and you'r readyt to go. # Base ## Act

26 lines (25 loc) 655 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const BaseType_1 = require("../BaseType"); const Type_1 = require("./Type"); exports.createSession = ({ email, password }) => ({ type: BaseType_1.ApiType.Dialogram, payload: { meta: { entity: Type_1.SESSION_ENTITY, method: "post", url: "/api/session", data: { "email": email, "password": password } } } }); exports.removeSession = () => ({ type: Type_1.REMOVE_SESSION, payload: { meta: {}, data: {} } });