blob: b75b36a3e9001cf6e0e7b5fe73b1f8bedd141e8e [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import type { PluginConfigType } from '@/plugins';
import { PluginType } from '@/plugins';
import Icon from './assets/icon.svg';
export const ZenTaoConfig: PluginConfigType = {
type: PluginType.Connection,
plugin: 'zentao',
name: 'ZenTao',
isBeta: true,
icon: Icon,
sort: 100,
connection: {
docLink: 'https://devlake.apache.org/docs/Configuration/Zentao',
fields: [
'name',
{
key: 'endpoint',
subLabel: 'Provide the Zentao instance API endpoint (Opensource v16+). E.g. http://<host>:<port>/api.php/v1 or http://<host>:<port>/zentao/api.php/v1',
},
'username',
'password',
'proxy',
{
key: 'rateLimitPerHour',
subLabel:
'By default, DevLake uses 10,000 requests/hour for data collection for ZenTao. But you can adjust the collection speed by setting up your desirable rate limit.',
learnMore: 'https://devlake.apache.org/docs/Configuration/Zentao/#custom-rate-limit-optional',
externalInfo: 'ZenTao does not specify a maximum value of rate limit.',
defaultValue: 10000,
},
],
},
entities: ['TICKET'],
transformation: {},
};