"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.setValues = exports.setValueActionType = exports.setValue = exports.setLoadingActionType = exports.setLoading = exports.inFlightCompleteActionType = exports.inFlightComplete = exports.inFlightActiveActionType = exports.inFlightActive = exports.clearValues = exports.clearValue = void 0;
var _reduxActions = require("redux-actions");
/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License
 * 2.0; you may not use this file except in compliance with the Elastic License
 * 2.0.
 */

const setLoadingActionType = 'setResolvedLoading';
exports.setLoadingActionType = setLoadingActionType;
const setValueActionType = 'setResolvedValue';
exports.setValueActionType = setValueActionType;
const inFlightActiveActionType = 'inFlightActive';
exports.inFlightActiveActionType = inFlightActiveActionType;
const inFlightCompleteActionType = 'inFlightComplete';
exports.inFlightCompleteActionType = inFlightCompleteActionType;
const setLoading = (0, _reduxActions.createAction)(setLoadingActionType);
exports.setLoading = setLoading;
const setValue = (0, _reduxActions.createAction)(setValueActionType);
exports.setValue = setValue;
const setValues = (0, _reduxActions.createAction)('setResolvedValues');
exports.setValues = setValues;
const clearValue = (0, _reduxActions.createAction)('clearResolvedValue');
exports.clearValue = clearValue;
const clearValues = (0, _reduxActions.createAction)('clearResolvedValues');
exports.clearValues = clearValues;
const inFlightActive = (0, _reduxActions.createAction)(inFlightActiveActionType, () => undefined);
exports.inFlightActive = inFlightActive;
const inFlightComplete = (0, _reduxActions.createAction)(inFlightCompleteActionType, () => undefined);
exports.inFlightComplete = inFlightComplete;