export default (function (_ref) {
  var formatMessage = _ref.formatMessage,
      intlPrefix = _ref.intlPrefix;
  return {
    selection: false,
    pageSize: 10,
    transport: {},
    fields: [{
      name: 'realName',
      type: 'string',
      label: formatMessage({
        id: "".concat(intlPrefix, ".environment.permission.user")
      })
    }, {
      name: 'loginName',
      type: 'string',
      label: formatMessage({
        id: "".concat(intlPrefix, ".environment.permission.name")
      })
    }, {
      name: 'roles',
      type: 'object',
      label: formatMessage({
        id: "".concat(intlPrefix, ".environment.permission.role")
      })
    }, {
      name: 'creationDate',
      type: 'dateTime',
      label: formatMessage({
        id: "".concat(intlPrefix, ".environment.permission.addTime")
      })
    }, {
      name: 'iamUserId',
      type: 'string',
      textField: 'realName',
      valueField: 'iamUserId',
      label: formatMessage({
        id: "".concat(intlPrefix, ".project.member")
      })
    }],
    queryFields: [{
      name: 'realName',
      type: 'string',
      label: formatMessage({
        id: "".concat(intlPrefix, ".environment.permission.user")
      })
    }, {
      name: 'loginName',
      type: 'string',
      label: formatMessage({
        id: "".concat(intlPrefix, ".environment.permission.name")
      })
    }]
  };
});