lib/service/requestFromAction.js
function requestFromAction (
  { type: action, payload, meta = {} },
  { endpoint, schemas = {} } = {}
) {
  const { data, ...params } = payload
  const { ident = null } = meta
  const typePlural = getPluralType(params.type, schemas)

  return {
    action,
    params,
    data,
    endpoint: (endpoint && endpoint.options) || null,
    access: { ident },
    meta: {
      typePlural
    }
  }
}
function requestFromAction (
  { type: action, payload, meta = {} },
  { endpoint, schemas = {} } = {}
) {
  const { data, ...params } = payload
  const { ident = null } = meta
  const typePlural = getPluralType(params.type, schemas)

  return {
    action,
    params,
    data,
    endpoint: (endpoint && endpoint.options) || null,
    access: { ident },
    meta: {
      typePlural
    }
  }
}
Complete missing props and allow only expected props on the request object.
@param {Object} request - The request object to complete
@returns {Object} The completed request object