/*
 *
 * Create actions
 *
 */

import * as types from './constants';

export function createTemplate(template, callback) {
  
  return {
    type: types.CREATE_TEMPLATE_REQUEST, template, callback,
  };
}

export function clearCreateResponse() {
  
  return {
    type: types.CLEAR_CREATE_RESPONSE_REQUEST,
  };
}

export function defaultAction() {
  return {
    type: types.DEFAULT_ACTION,
  };
}

export function uploadAsset(file, assetType, fileParams) {
  return {
    type: types.UPLOAD_ASSET_REQUEST,
    file,
    assetType,
    fileParams,
  };
}
export function getIosCtas(licenseCode) {
  return {
    type: types.GET_IOS_CTAS, licenseCode,
  };
}
export function clearAsset() {
  return {
    type: types.CLEAR_ASSET,
  };
}

export function resetStore() {
  return {
    type: types.RESET_STORE,
  };
}
