UNPKG

calamarcopollo

Version:
23 lines (17 loc) 912 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateChatSession = exports.updateOutcome = exports.updateExpression = undefined; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _actionTypes = require('./actionTypes'); const basicCreator = type => payload => ({ type, payload: _extends({}, payload) }); const updateExpression = basicCreator(_actionTypes.UPDATE_EXPRESSION); const updateOutcome = basicCreator(_actionTypes.UPDATE_OUTCOME); const updateChatSession = basicCreator(_actionTypes.UPDATE_CHAT_SESSION); exports.updateExpression = updateExpression; exports.updateOutcome = updateOutcome; exports.updateChatSession = updateChatSession;