OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
74
app/Domain/Connector/Models/Provider.php
Normal file
74
app/Domain/Connector/Models/Provider.php
Normal file
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
namespace Leantime\Domain\Connector\Models;
|
||||
|
||||
class Provider
|
||||
{
|
||||
// Unique identifier of provider
|
||||
public $id;
|
||||
|
||||
// Friendly name
|
||||
public string $name;
|
||||
|
||||
public string $description;
|
||||
|
||||
// Image to show in UI
|
||||
public string $image;
|
||||
|
||||
// Entities available to sync/import as part of this provider
|
||||
// This should be a list of strings with the exact entity name as they appear in the provider api
|
||||
// project, issue, epic, ticket or similar
|
||||
public array $availableEntities = [];
|
||||
|
||||
public array $availableMethods = []; // import and/or sync
|
||||
|
||||
/**
|
||||
* Define the steps for provider integration. Some steps may not be needed for some providers
|
||||
* (for example CSV does not need a sync)
|
||||
* Only used for status indicator. Controller does not check this.
|
||||
*
|
||||
* @var array|string[]
|
||||
*/
|
||||
public array $steps = [
|
||||
'connect',
|
||||
'entity',
|
||||
'fields',
|
||||
'sync',
|
||||
'parse',
|
||||
'import',
|
||||
];
|
||||
|
||||
public array $stepDetails = [
|
||||
'connect' => [
|
||||
'title' => 'Connect',
|
||||
'position' => 1,
|
||||
],
|
||||
'entity' => [
|
||||
'title' => 'Entity Mapping',
|
||||
'position' => 2,
|
||||
],
|
||||
'fields' => [
|
||||
'title' => 'Field Matching',
|
||||
'position' => 3,
|
||||
],
|
||||
'sync' => [
|
||||
'title' => 'Synchonize',
|
||||
'position' => 4,
|
||||
],
|
||||
'parse' => [
|
||||
'title' => 'Validate',
|
||||
'position' => 5,
|
||||
],
|
||||
'import' => [
|
||||
'title' => 'Import',
|
||||
'position' => 6,
|
||||
],
|
||||
];
|
||||
|
||||
public array $button = [
|
||||
'url' => '',
|
||||
'text' => '',
|
||||
];
|
||||
|
||||
public function __construct() {}
|
||||
}
|
||||
Reference in New Issue
Block a user