import React from 'react';
import Tips from "../../../../../components/new-tips";
export default (function (formatMessage) {
  return {
    autoQuery: false,
    selection: false,
    transport: {
      read: {
        method: 'get'
      }
    },
    fields: [{
      name: 'status',
      type: 'string',
      label: formatMessage({
        id: 'ciPipeline.status'
      })
    }, {
      name: 'pipelineId',
      type: 'string',
      label: /*#__PURE__*/React.createElement(Tips, {
        title: formatMessage({
          id: 'ciPipeline.sign'
        }),
        helpText: formatMessage({
          id: 'ciPipeline.sign.tip'
        })
      })
    }, {
      name: 'gitlabProjectId',
      type: 'string'
    }, {
      name: 'commit',
      type: 'string',
      label: /*#__PURE__*/React.createElement(Tips, {
        title: formatMessage({
          id: 'ciPipeline.commit'
        }),
        helpText: formatMessage({
          id: 'ciPipeline.commit.tip'
        })
      })
    }, {
      name: 'stages',
      type: 'string',
      label: /*#__PURE__*/React.createElement(Tips, {
        title: formatMessage({
          id: 'ciPipeline.jobs'
        }),
        helpText: formatMessage({
          id: 'ciPipeline.jobs.tip'
        })
      })
    }, {
      name: 'pipelineTime',
      type: 'string',
      label: formatMessage({
        id: 'ciPipeline.time'
      })
    }, {
      name: 'creationDate',
      type: 'string',
      label: formatMessage({
        id: 'ciPipeline.createdAt'
      })
    }]
  };
});