
// @ts-nocheck
import React from 'react';
import Base from '../base/base';

import LookupDetail from './components/lookup-detail/lookup-detail';

class LookupTypesAPI extends Base {

    constructor() {
        super();

        this.fields = [
            {
                field: 'name',
                caption: 'Name',
            },

            {
                field: 'description',
                caption: 'Description',
            },

            {
                field: 'path',
                caption: 'Path',
            },
        ];
    }

    get getEndpoint() {
        return 'lookupype';
    }

    get path() {
        return `lookupype`;
    }

    get getName() {
        return this.modelName + `s`;
    }

    get modelName() {
        return `lookupype`;
    }

    get route() {
        return 'lookupype';
    }

    get link() {
        return 'lookups'
    }

    /**
     *
     */
    get columns() {
        return [
            {
                caption: 'Type',
                field: 'type',
                key: 'type',
            },

            {
                caption: 'Description',
                field: 'description',
                key: 'description',
            },

            {
                caption: 'Mode',
                field: 'mode',
                key: 'mode',
            },

            {
                caption: 'Created By',
                field: 'created_by',
                key: 'created_by',
            },

            {
                caption: 'Created at',
                field: 'created_at',
                key: 'created_at',
            },
        ];
    }

    DetailComponent = LookupDetail;

}

export default LookupTypesAPI;
