export const signIn = (email, password) => {
  return {
    type: 'SIGN_IN',
    email,
    password
  };
};

export const signUp = (firstName, lastName, email, password, phone) => {
  return {
    type: 'SIGN_UP',
    firstName,
    lastName,
    email,
    password,
    phone
  };
};

export const postMessage = (senderId, body, priority, isComment, token) => {
  return {
    type: 'POST_MESSAGE',
    body,
    priority,
    isComment,
    senderId,
    token
  };
};

export const addUser = (email, groupId, adderId, token) => {
  return {
    type: 'ADD_MEMBER',
    email,
    groupId,
    adderId,
    token
  };
};

export const deleteGroup = (ownerId, groupId, token) => {
  return {
    type: 'DELETE_GROUP',
    ownerId,
    groupId,
    token
  };
};

export const createGroup = (creatorId, title, description, initialMembers, token) => {
  return {
    type: 'CREATE_GROUP',
    creatorId,
    title,
    description,
    initialMembers,
    token
  };
};

export const getMessages = (groupId, offset, limit, token) => {
  return {
    type: 'GET_MESSAGES',
    groupId,
    offset,
    limit,
    token
  };
};

export const getGroupMembers = (groupId, offset, limit, token) => {
  return {
    type: 'GET_GROUP_MEMBERS',
    groupId,
    offset,
    limit,
    token
  };
};

export const getPostItMembers = (offset, limit, token) => {
  return {
    type: 'GET_POST_IT_MEMBERS',
    offset,
    limit,
    token
  };
};

export const getAllGroups = (offset, limit, token) => {
  return {
    type: 'GET_ALL_GROUPS',
    offset,
    limit,
    token
  };
};

export const getGroupsForUser = (userId, offset, limit, token) => {
  return {
    type: 'GET_ALL_GROUPS_FOR_A_USER',
    userId,
    offset,
    limit,
    token
  };
};

export const deleteMember = (ownerId, idToDelete, groupId, token) => {
  return {
    type: 'DELETE_MEMBER',
    ownerId,
    idToDelete,
    groupId,
    token
  };
};

export const resetErrorLog = () => {
  return {
    type: 'RESET_ERROR_LOG',
  };
};

@@ -1315,39 +1315,24 @@
 tMembers = (
-offset, limit, 
 token) =%3E %7B%0A
@@ -1375,39 +1375,16 @@
 MBERS',%0A
-    offset,%0A    limit,%0A
     toke

update action that gets members