summaryrefslogtreecommitdiff
path: root/data/openitag
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-07-12 16:56:35 +0800
committerZhineng Li <im@zhineng.li>2026-07-12 16:56:35 +0800
commit814ec806c22e2782390af5a4a05cb6281aabd5e1 (patch)
tree29e1692a067b17e56886a7d246d2b9521b2b7777 /data/openitag
parenteccd5cd5a067f5659982685afdeea209b1888efb (diff)
downloadafterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.tar.gz
afterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.zip
update APIs 20260712
Diffstat (limited to 'data/openitag')
-rw-r--r--data/openitag/2022-06-16/api-docs.php3099
1 files changed, 823 insertions, 2276 deletions
diff --git a/data/openitag/2022-06-16/api-docs.php b/data/openitag/2022-06-16/api-docs.php
index 50e2f11..7cb5ace 100644
--- a/data/openitag/2022-06-16/api-docs.php
+++ b/data/openitag/2022-06-16/api-docs.php
@@ -1,45 +1,23 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'ROA',
- 'product' => 'OpenITag',
- 'version' => '2022-06-16',
- ],
+ 'info' => ['style' => 'ROA', 'product' => 'OpenITag', 'version' => '2022-06-16'],
'components' => [
'schemas' => [
'CreateTaskDetail' => [
'type' => 'object',
'properties' => [
- 'TaskName' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'UUID' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'TemplateId' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'AllowAppendData' => [
- 'type' => 'boolean',
- ],
- 'TaskTemplateConfig' => [
- '$ref' => '#/components/schemas/TaskTemplateConfig',
- ],
- 'Exif' => [
- 'type' => 'object',
- 'required' => false,
- ],
+ 'TaskName' => ['type' => 'string', 'required' => true],
+ 'UUID' => ['type' => 'string', 'required' => true],
+ 'TemplateId' => ['type' => 'string', 'required' => true],
+ 'AllowAppendData' => ['type' => 'boolean'],
+ 'TaskTemplateConfig' => ['$ref' => '#/components/schemas/TaskTemplateConfig'],
+ 'Exif' => ['type' => 'object', 'required' => false],
'Admins' => [
'type' => 'object',
'properties' => [
'Users' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/SimpleUser',
- ],
+ 'items' => ['$ref' => '#/components/schemas/SimpleUser'],
],
],
],
@@ -51,51 +29,32 @@
'properties' => [
'NodeName' => [
'type' => 'string',
- 'enum' => [
- 'MARK',
- 'CHECK',
- 'SAMPLING',
- ],
+ 'enum' => ['MARK', 'CHECK', 'SAMPLING'],
],
],
],
],
- 'AssignConfig' => [
- '$ref' => '#/components/schemas/TaskAssginConfig',
- 'required' => true,
- ],
+ 'AssignConfig' => ['$ref' => '#/components/schemas/TaskAssginConfig', 'required' => true],
'Tags' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string'],
],
'VoteConfigs' => [
'type' => 'object',
- 'additionalProperties' => [
- '$ref' => '#/components/schemas/CreateTaskDetailVoteInfo',
- ],
+ 'additionalProperties' => ['$ref' => '#/components/schemas/CreateTaskDetailVoteInfo'],
],
'DatasetProxyRelations' => [
'type' => 'array',
'required' => true,
- 'items' => [
- '$ref' => '#/components/schemas/DatasetProxyConfig',
- ],
+ 'items' => ['$ref' => '#/components/schemas/DatasetProxyConfig'],
],
],
],
'CreateTaskDetailVoteInfo' => [
'type' => 'object',
'properties' => [
- 'VoteNum' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'MinVote' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
+ 'VoteNum' => ['type' => 'integer', 'format' => 'int64'],
+ 'MinVote' => ['type' => 'integer', 'format' => 'int64'],
],
],
'DatasetProxyConfig' => [
@@ -103,278 +62,137 @@
'properties' => [
'Source' => [
'type' => 'string',
- 'enum' => [
- 'PAI',
- ],
- ],
- 'SourceDatasetId' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'DatasetType' => [
- 'type' => 'string',
+ 'enum' => ['PAI'],
],
+ 'SourceDatasetId' => ['type' => 'string', 'required' => true],
+ 'DatasetType' => ['type' => 'string'],
],
],
'FlowJobInfo' => [
'type' => 'object',
'properties' => [
- 'JobId' => [
- 'type' => 'string',
- ],
- 'JobType' => [
- 'type' => 'string',
- ],
- 'ProcessType' => [
- 'type' => 'string',
- ],
- 'MessageId' => [
- 'type' => 'string',
- ],
- 'TaskId' => [
- 'type' => 'string',
- ],
- 'Display' => [
- 'type' => 'boolean',
- ],
+ 'JobId' => ['type' => 'string'],
+ 'JobType' => ['type' => 'string'],
+ 'ProcessType' => ['type' => 'string'],
+ 'MessageId' => ['type' => 'string'],
+ 'TaskId' => ['type' => 'string'],
+ 'Display' => ['type' => 'boolean'],
],
],
'Job' => [
'type' => 'object',
'properties' => [
- 'Status' => [
- 'type' => 'string',
- ],
+ 'Status' => ['type' => 'string'],
'JobResult' => [
'type' => 'object',
'properties' => [
- 'ResultLink' => [
- 'type' => 'string',
- ],
+ 'ResultLink' => ['type' => 'string'],
],
],
- 'JobType' => [
- 'type' => 'string',
- ],
- 'GmtCreateTime' => [
- 'type' => 'string',
- ],
- 'GmtModifiedTime' => [
- 'type' => 'string',
- ],
- 'Creator' => [
- '$ref' => '#/components/schemas/SimpleUser',
- ],
- 'JobId' => [
- 'type' => 'string',
- ],
+ 'JobType' => ['type' => 'string'],
+ 'GmtCreateTime' => ['type' => 'string'],
+ 'GmtModifiedTime' => ['type' => 'string'],
+ 'Creator' => ['$ref' => '#/components/schemas/SimpleUser'],
+ 'JobId' => ['type' => 'string'],
],
],
'MarkResult' => [
'type' => 'object',
'properties' => [
- 'MarkResultId' => [
- 'type' => 'string',
- ],
- 'MarkTitle' => [
- 'type' => 'string',
- ],
- 'MarkResult' => [
- 'type' => 'string',
- ],
- 'QuestionId' => [
- 'type' => 'string',
- ],
- 'ResultType' => [
- 'type' => 'string',
- ],
- 'Progress' => [
- 'type' => 'string',
- ],
- 'Version' => [
- 'type' => 'string',
- ],
- 'MarkTime' => [
- 'type' => 'string',
- ],
- 'UserMarkResultId' => [
- 'type' => 'string',
- ],
- 'IsNeedVoteJudge' => [
- 'type' => 'boolean',
- ],
+ 'MarkResultId' => ['type' => 'string'],
+ 'MarkTitle' => ['type' => 'string'],
+ 'MarkResult' => ['type' => 'string'],
+ 'QuestionId' => ['type' => 'string'],
+ 'ResultType' => ['type' => 'string'],
+ 'Progress' => ['type' => 'string'],
+ 'Version' => ['type' => 'string'],
+ 'MarkTime' => ['type' => 'string'],
+ 'UserMarkResultId' => ['type' => 'string'],
+ 'IsNeedVoteJudge' => ['type' => 'boolean'],
],
],
'OpenDatasetProxyAppendDataRequest' => [
'type' => 'object',
'properties' => [
- 'TaskId' => [
- 'type' => 'string',
- ],
- 'UUID' => [
- 'type' => 'string',
- ],
+ 'TaskId' => ['type' => 'string'],
+ 'UUID' => ['type' => 'string'],
'DataMeta' => [
'type' => 'array',
'items' => [
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- ],
+ 'additionalProperties' => ['type' => 'string'],
],
],
- 'TraceId' => [
- 'type' => 'string',
- ],
+ 'TraceId' => ['type' => 'string'],
+ 'BizCode' => ['type' => 'string'],
],
],
'QuestionOption' => [
'type' => 'object',
'properties' => [
- 'Label' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'Key' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'Shortcut' => [
- 'type' => 'string',
- ],
- 'Color' => [
- 'type' => 'string',
- ],
- 'Remark' => [
- 'type' => 'string',
- ],
+ 'Label' => ['type' => 'string', 'required' => true],
+ 'Key' => ['type' => 'string', 'required' => true],
+ 'Shortcut' => ['type' => 'string'],
+ 'Color' => ['type' => 'string'],
+ 'Remark' => ['type' => 'string'],
'Children' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/QuestionOption',
- ],
+ 'items' => ['$ref' => '#/components/schemas/QuestionOption'],
],
],
],
'QuestionPlugin' => [
'type' => 'object',
'properties' => [
- 'MarkTitle' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'MarkTitleAlias' => [
- 'type' => 'string',
- ],
- 'Type' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'MustFill' => [
- 'type' => 'boolean',
- 'required' => true,
- ],
- 'Display' => [
- 'type' => 'boolean',
- 'required' => true,
- ],
- 'Selected' => [
- 'type' => 'boolean',
- ],
- 'SelectGroup' => [
- 'type' => 'string',
- ],
- 'DefaultResult' => [
- 'type' => 'string',
- ],
- 'Rule' => [
- 'type' => 'string',
- ],
- 'CanSelect' => [
- 'type' => 'boolean',
- ],
+ 'MarkTitle' => ['type' => 'string', 'required' => true],
+ 'MarkTitleAlias' => ['type' => 'string'],
+ 'Type' => ['type' => 'string', 'required' => true],
+ 'MustFill' => ['type' => 'boolean', 'required' => true],
+ 'Display' => ['type' => 'boolean', 'required' => true],
+ 'Selected' => ['type' => 'boolean'],
+ 'SelectGroup' => ['type' => 'string'],
+ 'DefaultResult' => ['type' => 'string'],
+ 'Rule' => ['type' => 'string'],
+ 'CanSelect' => ['type' => 'boolean'],
'Children' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/QuestionPlugin',
- ],
- ],
- 'Exif' => [
- 'type' => 'object',
+ 'items' => ['$ref' => '#/components/schemas/QuestionPlugin'],
],
+ 'Exif' => ['type' => 'object'],
'PreOptions' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string'],
],
'Options' => [
'type' => 'array',
'required' => true,
- 'items' => [
- '$ref' => '#/components/schemas/QuestionOption',
- ],
- ],
- 'HotKeyMap' => [
- 'type' => 'string',
- ],
- 'QuestionId' => [
- 'type' => 'string',
- 'required' => true,
+ 'items' => ['$ref' => '#/components/schemas/QuestionOption'],
],
+ 'HotKeyMap' => ['type' => 'string'],
+ 'QuestionId' => ['type' => 'string', 'required' => true],
],
],
'SimpleSubtask' => [
'type' => 'object',
'properties' => [
- 'SubtaskId' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'Status' => [
- 'type' => 'string',
- ],
+ 'SubtaskId' => ['type' => 'integer', 'format' => 'int64'],
+ 'Status' => ['type' => 'string'],
'Items' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'FeedbackRemark' => [
- 'type' => 'string',
- ],
- 'FeedbackFlag' => [
- 'type' => 'boolean',
- ],
- 'DataId' => [
- 'type' => 'string',
- ],
- 'State' => [
- 'type' => 'string',
- ],
- 'Mine' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'RejectFlag' => [
- 'type' => 'boolean',
- ],
- 'FixedFlag' => [
- 'type' => 'boolean',
- ],
- 'AbandonFlag' => [
- 'type' => 'boolean',
- ],
- 'AbandonRemark' => [
- 'type' => 'string',
- ],
- 'Weight' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'ItemId' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
+ 'FeedbackRemark' => ['type' => 'string'],
+ 'FeedbackFlag' => ['type' => 'boolean'],
+ 'DataId' => ['type' => 'string'],
+ 'State' => ['type' => 'string'],
+ 'Mine' => ['type' => 'integer', 'format' => 'int64'],
+ 'RejectFlag' => ['type' => 'boolean'],
+ 'FixedFlag' => ['type' => 'boolean'],
+ 'AbandonFlag' => ['type' => 'boolean'],
+ 'AbandonRemark' => ['type' => 'string'],
+ 'Weight' => ['type' => 'integer', 'format' => 'int64'],
+ 'ItemId' => ['type' => 'integer', 'format' => 'int64'],
],
],
],
@@ -383,338 +201,160 @@
'SimpleTask' => [
'type' => 'object',
'properties' => [
- 'Creator' => [
- '$ref' => '#/components/schemas/SimpleUser',
- ],
- 'Modifier' => [
- '$ref' => '#/components/schemas/SimpleUser',
- ],
- 'GmtCreateTime' => [
- 'type' => 'string',
- ],
- 'GmtModifiedTime' => [
- 'type' => 'string',
- ],
- 'TaskName' => [
- 'type' => 'string',
- ],
- 'TaskId' => [
- 'type' => 'string',
- ],
- 'TemplateId' => [
- 'type' => 'string',
- ],
- 'TaskType' => [
- 'type' => 'string',
- ],
- 'TenantId' => [
- 'type' => 'string',
- ],
- 'Remark' => [
- 'type' => 'string',
- ],
- 'LabelStyle' => [
- 'type' => 'string',
- ],
+ 'Creator' => ['$ref' => '#/components/schemas/SimpleUser'],
+ 'Modifier' => ['$ref' => '#/components/schemas/SimpleUser'],
+ 'GmtCreateTime' => ['type' => 'string'],
+ 'GmtModifiedTime' => ['type' => 'string'],
+ 'TaskName' => ['type' => 'string'],
+ 'TaskId' => ['type' => 'string'],
+ 'TemplateId' => ['type' => 'string'],
+ 'TaskType' => ['type' => 'string'],
+ 'TenantId' => ['type' => 'string'],
+ 'Remark' => ['type' => 'string'],
+ 'LabelStyle' => ['type' => 'string'],
'WorkflowNodes' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string'],
],
'Tags' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'string',
- ],
- ],
- 'Archived' => [
- 'type' => 'boolean',
- ],
- 'Stage' => [
- 'type' => 'string',
- ],
- 'ArchivedInfos' => [
- 'type' => 'string',
- ],
- 'Status' => [
- 'type' => 'string',
- ],
- 'RefTaskId' => [
- 'type' => 'string',
- ],
- 'UUID' => [
- 'type' => 'string',
+ 'items' => ['type' => 'string'],
],
+ 'Archived' => ['type' => 'boolean'],
+ 'Stage' => ['type' => 'string'],
+ 'ArchivedInfos' => ['type' => 'string'],
+ 'Status' => ['type' => 'string'],
+ 'RefTaskId' => ['type' => 'string'],
+ 'UUID' => ['type' => 'string'],
],
],
'SimpleTemplate' => [
'type' => 'object',
'properties' => [
- 'TemplateId' => [
- 'type' => 'string',
- ],
- 'TemplateName' => [
- 'type' => 'string',
- ],
- 'TenantId' => [
- 'type' => 'string',
- ],
- 'Description' => [
- 'type' => 'string',
- ],
- 'Status' => [
- 'type' => 'string',
- ],
+ 'TemplateId' => ['type' => 'string'],
+ 'TemplateName' => ['type' => 'string'],
+ 'TenantId' => ['type' => 'string'],
+ 'Description' => ['type' => 'string'],
+ 'Status' => ['type' => 'string'],
'Tags' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- ],
- 'SharedMode' => [
- 'type' => 'string',
- ],
- 'AbandonReasons' => [
- 'type' => 'string',
- ],
- 'Type' => [
- 'type' => 'string',
- ],
- 'GmtCreateTime' => [
- 'type' => 'string',
- ],
- 'GmtModifiedTime' => [
- 'type' => 'string',
+ 'items' => ['type' => 'string'],
],
+ 'SharedMode' => ['type' => 'string'],
+ 'AbandonReasons' => ['type' => 'string'],
+ 'Type' => ['type' => 'string'],
+ 'GmtCreateTime' => ['type' => 'string'],
+ 'GmtModifiedTime' => ['type' => 'string'],
],
],
'SimpleTenant' => [
'type' => 'object',
'properties' => [
- 'Creator' => [
- '$ref' => '#/components/schemas/SimpleUser',
- ],
- 'GmtCreateTime' => [
- 'type' => 'string',
- ],
- 'GmtModifiedTime' => [
- 'type' => 'string',
- ],
- 'TenantId' => [
- 'type' => 'string',
- ],
- 'TenantName' => [
- 'type' => 'string',
- ],
- 'UUID' => [
- 'type' => 'string',
- ],
- 'Description' => [
- 'type' => 'string',
- ],
- 'Role' => [
- 'type' => 'string',
- ],
- 'Modifier' => [
- '$ref' => '#/components/schemas/SimpleUser',
- ],
+ 'Creator' => ['$ref' => '#/components/schemas/SimpleUser'],
+ 'GmtCreateTime' => ['type' => 'string'],
+ 'GmtModifiedTime' => ['type' => 'string'],
+ 'TenantId' => ['type' => 'string'],
+ 'TenantName' => ['type' => 'string'],
+ 'UUID' => ['type' => 'string'],
+ 'Description' => ['type' => 'string'],
+ 'Role' => ['type' => 'string'],
+ 'Modifier' => ['$ref' => '#/components/schemas/SimpleUser'],
],
],
'SimpleUser' => [
'type' => 'object',
'properties' => [
- 'UserId' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'AccountType' => [
- 'type' => 'string',
- ],
- 'AccountNo' => [
- 'type' => 'string',
- ],
- 'UserName' => [
- 'type' => 'string',
- ],
- 'Role' => [
- 'type' => 'string',
- ],
+ 'UserId' => ['type' => 'integer', 'format' => 'int64'],
+ 'AccountType' => ['type' => 'string'],
+ 'AccountNo' => ['type' => 'string'],
+ 'UserName' => ['type' => 'string'],
+ 'Role' => ['type' => 'string'],
],
],
'SimpleWorkforce' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'WorkNodeId' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
+ 'WorkNodeId' => ['type' => 'integer', 'format' => 'int32'],
'UserIds' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
+ 'items' => ['type' => 'integer', 'format' => 'int64'],
],
],
],
'SingleTenant' => [
'type' => 'object',
'properties' => [
- 'Description' => [
- 'type' => 'string',
- ],
- 'TenantName' => [
- 'type' => 'string',
- ],
- 'UUID' => [
- 'type' => 'string',
- ],
- 'TenantId' => [
- 'type' => 'string',
- ],
- 'Status' => [
- 'type' => 'string',
- ],
+ 'Description' => ['type' => 'string'],
+ 'TenantName' => ['type' => 'string'],
+ 'UUID' => ['type' => 'string'],
+ 'TenantId' => ['type' => 'string'],
+ 'Status' => ['type' => 'string'],
],
],
'SubtaskDetail' => [
'type' => 'object',
'properties' => [
- 'SubtaskId' => [
- 'type' => 'string',
- ],
- 'Status' => [
- 'type' => 'string',
- ],
+ 'SubtaskId' => ['type' => 'string'],
+ 'Status' => ['type' => 'string'],
'Items' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'FeedbackRemark' => [
- 'type' => 'string',
- ],
- 'FeedbackFlag' => [
- 'type' => 'boolean',
- ],
- 'DataId' => [
- 'type' => 'string',
- ],
- 'State' => [
- 'type' => 'string',
- ],
- 'Mine' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'RejectFlag' => [
- 'type' => 'boolean',
- ],
- 'FixedFlag' => [
- 'type' => 'boolean',
- ],
- 'AbandonFlag' => [
- 'type' => 'boolean',
- ],
- 'AbandonRemark' => [
- 'type' => 'string',
- ],
- 'Weight' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
+ 'FeedbackRemark' => ['type' => 'string'],
+ 'FeedbackFlag' => ['type' => 'boolean'],
+ 'DataId' => ['type' => 'string'],
+ 'State' => ['type' => 'string'],
+ 'Mine' => ['type' => 'integer', 'format' => 'int64'],
+ 'RejectFlag' => ['type' => 'boolean'],
+ 'FixedFlag' => ['type' => 'boolean'],
+ 'AbandonFlag' => ['type' => 'boolean'],
+ 'AbandonRemark' => ['type' => 'string'],
+ 'Weight' => ['type' => 'integer', 'format' => 'int64'],
],
],
],
- 'TaskId' => [
- 'type' => 'string',
- ],
- 'CurrentWorkNode' => [
- 'type' => 'string',
- ],
- 'WorkNodeState' => [
- 'type' => 'string',
- ],
+ 'TaskId' => ['type' => 'string'],
+ 'CurrentWorkNode' => ['type' => 'string'],
+ 'WorkNodeState' => ['type' => 'string'],
'Workforce' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/Workforce',
- ],
- ],
- 'CanReassign' => [
- 'type' => 'boolean',
- ],
- 'CanRelease' => [
- 'type' => 'boolean',
- ],
- 'CanDiscard' => [
- 'type' => 'boolean',
- ],
- 'Weight' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'ExtConfigs' => [
- 'type' => 'string',
- 'deprecated' => false,
+ 'items' => ['$ref' => '#/components/schemas/Workforce'],
],
+ 'CanReassign' => ['type' => 'boolean'],
+ 'CanRelease' => ['type' => 'boolean'],
+ 'CanDiscard' => ['type' => 'boolean'],
+ 'Weight' => ['type' => 'integer', 'format' => 'int64'],
+ 'ExtConfigs' => ['type' => 'string', 'deprecated' => false],
],
],
'SubtaskItemDetail' => [
'type' => 'object',
'properties' => [
- 'ItemId' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
+ 'ItemId' => ['type' => 'integer', 'format' => 'int64'],
'Annotations' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'FeedbackRemark' => [
- 'type' => 'string',
- ],
- 'FeedbackFlag' => [
- 'type' => 'boolean',
- ],
- 'DataId' => [
- 'type' => 'string',
- ],
- 'State' => [
- 'type' => 'string',
- ],
- 'Mine' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'RejectFlag' => [
- 'type' => 'boolean',
- ],
- 'FixedFlag' => [
- 'type' => 'boolean',
- ],
- 'AbandonFlag' => [
- 'type' => 'boolean',
- ],
- 'AbandonRemark' => [
- 'type' => 'string',
- ],
- 'Weight' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
+ 'FeedbackRemark' => ['type' => 'string'],
+ 'FeedbackFlag' => ['type' => 'boolean'],
+ 'DataId' => ['type' => 'string'],
+ 'State' => ['type' => 'string'],
+ 'Mine' => ['type' => 'integer', 'format' => 'int64'],
+ 'RejectFlag' => ['type' => 'boolean'],
+ 'FixedFlag' => ['type' => 'boolean'],
+ 'AbandonFlag' => ['type' => 'boolean'],
+ 'AbandonRemark' => ['type' => 'string'],
+ 'Weight' => ['type' => 'integer', 'format' => 'int64'],
],
],
],
- 'DataSource' => [
- 'type' => 'object',
- ],
+ 'DataSource' => ['type' => 'object'],
],
],
'TaskAssginConfig' => [
@@ -722,326 +362,135 @@
'properties' => [
'AssignType' => [
'type' => 'string',
- 'enum' => [
- 'FIXED_SIZE',
- 'AVG_SIZE',
- 'FIELD_BASE',
- ],
- ],
- 'AssignCount' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'AssignField' => [
- 'type' => 'string',
- ],
- 'AssignSubTaskCount' => [
- 'type' => 'string',
+ 'enum' => ['FIXED_SIZE', 'AVG_SIZE', 'FIELD_BASE'],
],
+ 'AssignCount' => ['type' => 'integer', 'format' => 'int64'],
+ 'AssignField' => ['type' => 'string'],
+ 'AssignSubTaskCount' => ['type' => 'string'],
],
],
'TaskDetail' => [
'type' => 'object',
'properties' => [
- 'Creator' => [
- '$ref' => '#/components/schemas/SimpleUser',
- ],
- 'Modifier' => [
- '$ref' => '#/components/schemas/SimpleUser',
- ],
- 'GmtCreateTime' => [
- 'type' => 'string',
- ],
- 'GmtModifiedTime' => [
- 'type' => 'string',
- ],
- 'TaskName' => [
- 'type' => 'string',
- ],
- 'TaskId' => [
- 'type' => 'string',
- ],
- 'TemplateId' => [
- 'type' => 'string',
- ],
- 'TaskType' => [
- 'type' => 'string',
- ],
- 'TenantId' => [
- 'type' => 'string',
- ],
- 'Remark' => [
- 'type' => 'string',
- ],
- 'LabelStyle' => [
- 'type' => 'string',
- ],
+ 'Creator' => ['$ref' => '#/components/schemas/SimpleUser'],
+ 'Modifier' => ['$ref' => '#/components/schemas/SimpleUser'],
+ 'GmtCreateTime' => ['type' => 'string'],
+ 'GmtModifiedTime' => ['type' => 'string'],
+ 'TaskName' => ['type' => 'string'],
+ 'TaskId' => ['type' => 'string'],
+ 'TemplateId' => ['type' => 'string'],
+ 'TaskType' => ['type' => 'string'],
+ 'TenantId' => ['type' => 'string'],
+ 'Remark' => ['type' => 'string'],
+ 'LabelStyle' => ['type' => 'string'],
'WorkflowNodes' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string'],
],
'Tags' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'string',
- ],
- ],
- 'Archived' => [
- 'type' => 'boolean',
- ],
- 'Stage' => [
- 'type' => 'string',
- ],
- 'ArchivedInfos' => [
- 'type' => 'string',
- ],
- 'Status' => [
- 'type' => 'string',
- ],
- 'RefTaskId' => [
- 'type' => 'string',
- ],
- 'UUID' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string'],
+ ],
+ 'Archived' => ['type' => 'boolean'],
+ 'Stage' => ['type' => 'string'],
+ 'ArchivedInfos' => ['type' => 'string'],
+ 'Status' => ['type' => 'string'],
+ 'RefTaskId' => ['type' => 'string'],
+ 'UUID' => ['type' => 'string'],
'TaskWorkflow' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'NodeName' => [
- 'type' => 'string',
- ],
- 'Exif' => [
- 'type' => 'object',
- ],
+ 'NodeName' => ['type' => 'string'],
+ 'Exif' => ['type' => 'object'],
'Users' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/SimpleUser',
- ],
+ 'items' => ['$ref' => '#/components/schemas/SimpleUser'],
],
'Groups' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string'],
],
],
],
],
- 'Exif' => [
- 'type' => 'object',
- ],
+ 'Exif' => ['type' => 'object'],
'Admins' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/SimpleUser',
- ],
- ],
- 'AssignConfig' => [
- 'type' => 'object',
+ 'items' => ['$ref' => '#/components/schemas/SimpleUser'],
],
+ 'AssignConfig' => ['type' => 'object'],
'TaskTemplateConfig' => [
'type' => 'object',
'properties' => [
- 'Exif' => [
- 'type' => 'object',
- ],
- 'TemplateOptionMap' => [
- 'type' => 'object',
- ],
+ 'Exif' => ['type' => 'object'],
+ 'TemplateOptionMap' => ['type' => 'object'],
'SelectQuestions' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- ],
- 'RobotConfig' => [
- 'type' => 'object',
- ],
- 'TemplateRelationId' => [
- 'type' => 'string',
- ],
- 'ResourceKey' => [
- 'type' => 'string',
+ 'items' => ['type' => 'string'],
],
+ 'RobotConfig' => ['type' => 'object'],
+ 'TemplateRelationId' => ['type' => 'string'],
+ 'ResourceKey' => ['type' => 'string'],
],
],
- 'TenantName' => [
- 'type' => 'string',
- ],
+ 'TenantName' => ['type' => 'string'],
'DatasetProxyRelations' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'DatasetId' => [
- 'type' => 'string',
- ],
- 'Source' => [
- 'type' => 'string',
- ],
- 'SourceBizId' => [
- 'type' => 'string',
- ],
- 'DatasetType' => [
- 'type' => 'string',
- ],
- 'Exif' => [
- 'type' => 'object',
- ],
- 'SourceDatasetId' => [
- 'type' => 'string',
- ],
+ 'DatasetId' => ['type' => 'string'],
+ 'Source' => ['type' => 'string'],
+ 'SourceBizId' => ['type' => 'string'],
+ 'DatasetType' => ['type' => 'string'],
+ 'Exif' => ['type' => 'object'],
+ 'SourceDatasetId' => ['type' => 'string'],
],
],
],
- 'AllowAppendData' => [
- 'type' => 'boolean',
- ],
- 'RelateTaskConfig' => [
- 'type' => 'object',
- ],
- 'PeriodConfig' => [
- 'type' => 'object',
- ],
- 'MineConfigs' => [
- 'type' => 'object',
- ],
- 'VoteConfigs' => [
- 'type' => 'object',
- ],
- 'NoticeConfig' => [
- 'type' => 'object',
- ],
- 'ResultCallbackConfig' => [
- 'type' => 'object',
- ],
- 'runMsg' => [
- 'type' => 'string',
- ],
- 'AlertTime' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
+ 'AllowAppendData' => ['type' => 'boolean'],
+ 'RelateTaskConfig' => ['type' => 'object'],
+ 'PeriodConfig' => ['type' => 'object'],
+ 'MineConfigs' => ['type' => 'object'],
+ 'VoteConfigs' => ['type' => 'object'],
+ 'NoticeConfig' => ['type' => 'object'],
+ 'ResultCallbackConfig' => ['type' => 'object'],
+ 'runMsg' => ['type' => 'string'],
+ 'AlertTime' => ['type' => 'integer', 'format' => 'int64'],
],
],
'TaskStatistic' => [
'type' => 'object',
'properties' => [
- 'TotalItemCount' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'TotalSubtaskCount' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'minimum' => '0',
- ],
- 'FinishedItemCount' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'FinishedSubtaskCount' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'FinalAbandonCount' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'PreMarkFixedCount' => [
- 'type' => 'number',
- 'format' => 'float',
- 'minimum' => '0',
- ],
- 'AcceptItemCount' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'TotalCheckedCount' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'CheckedError' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'CheckAbandon' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'CheckedAccuracy' => [
- 'type' => 'number',
- 'format' => 'float',
- 'minimum' => '0',
- ],
- 'CheckedRejectCount' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'TotalSampledCount' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'SampledErrorCount' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'SampledRejectCount' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'SampledAccuracy' => [
- 'type' => 'number',
- 'format' => 'float',
- 'minimum' => '0',
- ],
- 'TotalSamplingCount' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'TotalCheckCount' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'TotalWorkTime' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'TotalMarkTime' => [
- 'type' => 'number',
- 'format' => 'float',
- 'minimum' => '0',
- ],
- 'MarkEfficiency' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'TotalCheckTime' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'CheckEfficiency' => [
- 'type' => 'number',
- 'format' => 'float',
- 'minimum' => '0',
- ],
- 'SamplingAccuracy' => [
- 'type' => 'number',
- 'format' => 'float',
- 'minimum' => '0',
- ],
- 'CheckAccuracy' => [
- 'type' => 'number',
- 'format' => 'float',
- 'minimum' => '0',
- ],
+ 'TotalItemCount' => ['type' => 'integer', 'format' => 'int64'],
+ 'TotalSubtaskCount' => ['type' => 'integer', 'format' => 'int64', 'minimum' => '0'],
+ 'FinishedItemCount' => ['type' => 'integer', 'format' => 'int64'],
+ 'FinishedSubtaskCount' => ['type' => 'integer', 'format' => 'int64'],
+ 'FinalAbandonCount' => ['type' => 'number', 'format' => 'float'],
+ 'PreMarkFixedCount' => ['type' => 'number', 'format' => 'float', 'minimum' => '0'],
+ 'AcceptItemCount' => ['type' => 'number', 'format' => 'float'],
+ 'TotalCheckedCount' => ['type' => 'number', 'format' => 'float'],
+ 'CheckedError' => ['type' => 'number', 'format' => 'float'],
+ 'CheckAbandon' => ['type' => 'number', 'format' => 'float'],
+ 'CheckedAccuracy' => ['type' => 'number', 'format' => 'float', 'minimum' => '0'],
+ 'CheckedRejectCount' => ['type' => 'number', 'format' => 'float'],
+ 'TotalSampledCount' => ['type' => 'number', 'format' => 'float'],
+ 'SampledErrorCount' => ['type' => 'number', 'format' => 'float'],
+ 'SampledRejectCount' => ['type' => 'number', 'format' => 'float'],
+ 'SampledAccuracy' => ['type' => 'number', 'format' => 'float', 'minimum' => '0'],
+ 'TotalSamplingCount' => ['type' => 'number', 'format' => 'float'],
+ 'TotalCheckCount' => ['type' => 'number', 'format' => 'float'],
+ 'TotalWorkTime' => ['type' => 'number', 'format' => 'float'],
+ 'TotalMarkTime' => ['type' => 'number', 'format' => 'float', 'minimum' => '0'],
+ 'MarkEfficiency' => ['type' => 'number', 'format' => 'float'],
+ 'TotalCheckTime' => ['type' => 'number', 'format' => 'float'],
+ 'CheckEfficiency' => ['type' => 'number', 'format' => 'float', 'minimum' => '0'],
+ 'SamplingAccuracy' => ['type' => 'number', 'format' => 'float', 'minimum' => '0'],
+ 'CheckAccuracy' => ['type' => 'number', 'format' => 'float', 'minimum' => '0'],
],
],
'TaskTemplateConfig' => [
@@ -1049,215 +498,126 @@
'properties' => [
'Exif' => [
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- ],
+ 'additionalProperties' => ['type' => 'string'],
],
'TemplateOptionMap' => [
'type' => 'object',
- 'additionalProperties' => [
- '$ref' => '#/components/schemas/TaskTemplateOptionConfig',
- ],
+ 'additionalProperties' => ['$ref' => '#/components/schemas/TaskTemplateOptionConfig'],
],
'SelectQuestions' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- ],
- 'TemplateRelationId' => [
- 'type' => 'string',
- ],
- 'ResourceKey' => [
- 'type' => 'string',
+ 'items' => ['type' => 'string'],
],
+ 'TemplateRelationId' => ['type' => 'string'],
+ 'ResourceKey' => ['type' => 'string'],
],
],
'TaskTemplateOptionConfig' => [
'type' => 'object',
'properties' => [
- 'DefaultResult' => [
- 'type' => 'string',
- ],
- 'Rule' => [
- 'type' => 'string',
- ],
+ 'DefaultResult' => ['type' => 'string'],
+ 'Rule' => ['type' => 'string'],
'PreOptions' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string'],
],
'Options' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/QuestionOption',
- ],
+ 'items' => ['$ref' => '#/components/schemas/QuestionOption'],
],
],
],
- 'TemplateDTO' => [
+ 'TemplateDetail' => [
'type' => 'object',
'properties' => [
- 'TemplateName' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'Description' => [
- 'type' => 'string',
+ 'GmtCreateTime' => ['type' => 'string'],
+ 'GmtModifiedTime' => ['type' => 'string'],
+ 'TemplateId' => ['type' => 'string'],
+ 'TemplateName' => ['type' => 'string'],
+ 'Description' => ['type' => 'string'],
+ 'Exif' => ['type' => 'object'],
+ 'Status' => ['type' => 'string'],
+ 'Tags' => [
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
],
- 'Exif' => [
- 'type' => 'object',
+ 'AbandonReasons' => [
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
],
- 'Tags' => [
+ 'Type' => ['type' => 'string'],
+ 'QuestionConfigs' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['$ref' => '#/components/schemas/QuestionPlugin'],
],
+ 'Creator' => ['$ref' => '#/components/schemas/SimpleUser'],
+ 'Modifier' => ['$ref' => '#/components/schemas/SimpleUser'],
+ 'Classify' => ['type' => 'string'],
+ 'TenantId' => ['type' => 'string'],
+ 'SharedMode' => ['type' => 'string'],
'ViewConfigs' => [
'type' => 'object',
- 'required' => true,
'properties' => [
'ViewPlugins' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/ViewPlugin',
- 'required' => false,
- ],
+ 'items' => ['$ref' => '#/components/schemas/ViewPlugin'],
],
],
],
- 'QuestionConfigs' => [
- 'type' => 'array',
- 'required' => true,
- 'items' => [
- '$ref' => '#/components/schemas/QuestionPlugin',
- ],
- ],
- 'Classify' => [
- 'type' => 'string',
- ],
- 'SharedMode' => [
- 'type' => 'string',
- ],
- 'RobotConfigs' => [
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- ],
- ],
- 'TemplateId' => [
- 'type' => 'string',
- ],
],
],
- 'TemplateDetail' => [
+ 'TemplateDTO' => [
'type' => 'object',
'properties' => [
- 'GmtCreateTime' => [
- 'type' => 'string',
- ],
- 'GmtModifiedTime' => [
- 'type' => 'string',
- ],
- 'TemplateId' => [
- 'type' => 'string',
- ],
- 'TemplateName' => [
- 'type' => 'string',
- ],
- 'Description' => [
- 'type' => 'string',
- ],
- 'Exif' => [
- 'type' => 'object',
- ],
- 'Status' => [
- 'type' => 'string',
- ],
+ 'TemplateName' => ['type' => 'string', 'required' => true],
+ 'Description' => ['type' => 'string'],
+ 'Exif' => ['type' => 'object'],
'Tags' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- ],
- 'AbandonReasons' => [
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- ],
- 'Type' => [
- 'type' => 'string',
- ],
- 'QuestionConfigs' => [
- 'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/QuestionPlugin',
- ],
- ],
- 'Creator' => [
- '$ref' => '#/components/schemas/SimpleUser',
- ],
- 'Modifier' => [
- '$ref' => '#/components/schemas/SimpleUser',
- ],
- 'Classify' => [
- 'type' => 'string',
- ],
- 'TenantId' => [
- 'type' => 'string',
- ],
- 'SharedMode' => [
- 'type' => 'string',
+ 'items' => ['type' => 'string'],
],
'ViewConfigs' => [
'type' => 'object',
+ 'required' => true,
'properties' => [
'ViewPlugins' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/ViewPlugin',
- ],
+ 'items' => ['$ref' => '#/components/schemas/ViewPlugin', 'required' => false],
],
],
],
+ 'QuestionConfigs' => [
+ 'type' => 'array',
+ 'required' => true,
+ 'items' => ['$ref' => '#/components/schemas/QuestionPlugin'],
+ ],
+ 'Classify' => ['type' => 'string'],
+ 'SharedMode' => ['type' => 'string'],
+ 'RobotConfigs' => [
+ 'type' => 'array',
+ 'items' => ['type' => 'object'],
+ ],
+ 'TemplateId' => ['type' => 'string'],
],
],
'TemplateQuestion' => [
'type' => 'object',
'properties' => [
- 'QuestionId' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'MarkTitle' => [
- 'type' => 'string',
- ],
- 'Type' => [
- 'type' => 'string',
- ],
+ 'QuestionId' => ['type' => 'integer', 'format' => 'int64'],
+ 'MarkTitle' => ['type' => 'string'],
+ 'Type' => ['type' => 'string'],
'PreOptions' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string'],
],
'Options' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/QuestionOption',
- ],
- ],
- 'Exif' => [
- 'type' => 'object',
+ 'items' => ['$ref' => '#/components/schemas/QuestionOption'],
],
+ 'Exif' => ['type' => 'object'],
'Children' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/TemplateQuestion',
- ],
+ 'items' => ['$ref' => '#/components/schemas/TemplateQuestion'],
],
],
],
@@ -1269,24 +629,14 @@
'items' => [
'type' => 'object',
'properties' => [
- 'Type' => [
- 'type' => 'string',
- ],
- 'FieldName' => [
- 'type' => 'string',
- ],
- 'DisplayOriImg' => [
- 'type' => 'boolean',
- ],
+ 'Type' => ['type' => 'string'],
+ 'FieldName' => ['type' => 'string'],
+ 'DisplayOriImg' => ['type' => 'boolean'],
'VisitInfo' => [
'type' => 'object',
'properties' => [
- 'OssConf' => [
- 'type' => 'object',
- ],
- 'AftsConf' => [
- 'type' => 'object',
- ],
+ 'OssConf' => ['type' => 'object'],
+ 'AftsConf' => ['type' => 'object'],
],
],
],
@@ -1297,258 +647,104 @@
'UpdateTaskDTO' => [
'type' => 'object',
'properties' => [
- 'TaskName' => [
- 'type' => 'string',
- ],
+ 'TaskName' => ['type' => 'string'],
'Exif' => [
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- ],
+ 'additionalProperties' => ['type' => 'string'],
],
'Tags' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- ],
- 'Remark' => [
- 'type' => 'string',
+ 'items' => ['type' => 'string'],
],
+ 'Remark' => ['type' => 'string'],
],
],
'UserStatistic' => [
'type' => 'object',
'properties' => [
- 'UserId' => [
- 'type' => 'string',
- ],
- 'TotalMarkItemsCount' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'AcceptedMarkItemsCount' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'MarkTime' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'MarkEfficiency' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'CheckCount' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'CheckedAcceptedCount' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'CheckedAccuracy' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'SamplingAccuracy' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'SamplingCount' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'SamplingErrorCount' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
+ 'UserId' => ['type' => 'string'],
+ 'TotalMarkItemsCount' => ['type' => 'number', 'format' => 'float'],
+ 'AcceptedMarkItemsCount' => ['type' => 'number', 'format' => 'float'],
+ 'MarkTime' => ['type' => 'number', 'format' => 'float'],
+ 'MarkEfficiency' => ['type' => 'number', 'format' => 'float'],
+ 'CheckCount' => ['type' => 'number', 'format' => 'float'],
+ 'CheckedAcceptedCount' => ['type' => 'number', 'format' => 'float'],
+ 'CheckedAccuracy' => ['type' => 'number', 'format' => 'float'],
+ 'SamplingAccuracy' => ['type' => 'number', 'format' => 'float'],
+ 'SamplingCount' => ['type' => 'number', 'format' => 'float'],
+ 'SamplingErrorCount' => ['type' => 'number', 'format' => 'float'],
],
],
'ViewPlugin' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'Type' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'CorsProxy' => [
- 'type' => 'boolean',
- 'required' => true,
- ],
+ 'Type' => ['type' => 'string', 'required' => true],
+ 'CorsProxy' => ['type' => 'boolean', 'required' => true],
'RelationQuestionIds' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'string',
- ],
- ],
- 'Hide' => [
- 'type' => 'boolean',
- 'required' => false,
+ 'items' => ['type' => 'string'],
],
+ 'Hide' => ['type' => 'boolean', 'required' => false],
'VisitInfo' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'ossConf' => [
- 'type' => 'object',
- ],
- 'aftsConf' => [
- 'type' => 'object',
- ],
+ 'ossConf' => ['type' => 'object'],
+ 'aftsConf' => ['type' => 'object'],
],
],
- 'Convertor' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Plugins' => [
- 'type' => 'object',
- 'required' => false,
- ],
- 'Exif' => [
- 'type' => 'object',
- 'required' => false,
- ],
- 'BindField' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'DisplayOriImg' => [
- 'type' => 'boolean',
- 'required' => true,
- ],
+ 'Convertor' => ['type' => 'string', 'required' => false],
+ 'Plugins' => ['type' => 'object', 'required' => false],
+ 'Exif' => ['type' => 'object', 'required' => false],
+ 'BindField' => ['type' => 'string', 'required' => true],
+ 'DisplayOriImg' => ['type' => 'boolean', 'required' => true],
],
],
'Workforce' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'NodeType' => [
- 'type' => 'string',
- ],
- 'WorkNodeId' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
+ 'NodeType' => ['type' => 'string'],
+ 'WorkNodeId' => ['type' => 'integer', 'format' => 'int32'],
'Users' => [
'type' => 'array',
'required' => false,
- 'items' => [
- '$ref' => '#/components/schemas/SimpleUser',
- ],
+ 'items' => ['$ref' => '#/components/schemas/SimpleUser'],
],
],
],
],
],
'apis' => [
- 'ListTenants' => [
- 'path' => '/openapi/api/v1/tenants',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
- [
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
- ],
- ],
- 'GetTenant' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'AddWorkNodeWorkforce' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/worknodes/{WorkNodeId}/workforce',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
- ],
- ],
- 'UpdateTenant' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
[
- 'AK' => [],
+ 'name' => 'TaskId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true],
],
- ],
- 'consumes' => [
- 'multipart/form-data',
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
[
- 'name' => 'TenantId',
+ 'name' => 'WorkNodeId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => true],
],
[
'name' => 'body',
@@ -1558,811 +754,553 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'TenantName' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Description' => [
- 'type' => 'string',
+ 'UserIds' => [
+ 'type' => 'array',
'required' => false,
+ 'items' => ['type' => 'integer', 'format' => 'int64', 'required' => false],
],
],
],
],
],
],
- 'ListTemplates' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/templates',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'AppendAllDataToTask' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/appendAllDataToTask',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'minimum' => '0',
- ],
+ 'name' => 'TaskId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'minimum' => '1',
- 'maximum' => '20',
- ],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'schema' => ['$ref' => '#/components/schemas/OpenDatasetProxyAppendDataRequest', 'required' => false],
],
+ ],
+ ],
+ 'CreateTask' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'SearchKey',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
[
- 'name' => 'Types',
- 'in' => 'query',
- 'style' => 'simple',
- 'schema' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- 'enum' => [
- 'COMMON',
- 'CUSTOM',
- ],
- ],
- ],
+ 'name' => 'TenantId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'schema' => ['$ref' => '#/components/schemas/CreateTaskDetail', 'required' => true],
],
],
],
'CreateTemplate' => [
'path' => '/openapi/api/v1/tenants/{TenantId}/templates',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'body',
'in' => 'body',
- 'schema' => [
- '$ref' => '#/components/schemas/TemplateDTO',
- 'required' => true,
- ],
+ 'schema' => ['$ref' => '#/components/schemas/TemplateDTO', 'required' => true],
],
],
],
- 'UpdateTemplate' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/templates/{TemplateId}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateUser' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/users',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'TemplateId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'body',
'in' => 'body',
+ 'style' => 'json',
'schema' => [
- '$ref' => '#/components/schemas/TemplateDTO',
+ 'type' => 'object',
'required' => false,
+ 'properties' => [
+ 'AccountNo' => ['type' => 'string', 'required' => true],
+ 'AccountType' => ['type' => 'string', 'required' => true],
+ 'Role' => ['type' => 'string', 'required' => true],
+ 'UserName' => ['type' => 'string', 'required' => false],
+ ],
],
],
],
],
- 'DeleteTemplate' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/templates/{TemplateId}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteTask' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'TemplateId',
+ 'name' => 'TaskId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'GetTemplateView' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/templates/{TemplateId}/views',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteTemplate' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/templates/{TemplateId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'TemplateId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'GetTemplateQuestions' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/templates/{TemplateId}/questions',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteUser' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/users/{UserId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'TemplateId',
+ 'name' => 'UserId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'GetTemplate' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/templates/{TemplateId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ExportAnnotations' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/annotations/export',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'TemplateId',
+ 'name' => 'TaskId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'Target',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'OssPath',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'RegisterDataset',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'AppendAllDataToTask' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/appendAllDataToTask',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetJob' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/jobs/{JobId}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'TaskId',
+ 'name' => 'JobId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'schema' => [
- '$ref' => '#/components/schemas/OpenDatasetProxyAppendDataRequest',
- 'required' => false,
- ],
+ 'name' => 'JobType',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'ListTasks' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetSubtask' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskID}/subtasks/{SubtaskId}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'minimum' => '0',
- ],
+ 'name' => 'TaskID',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'minimum' => '1',
- 'maximum' => '10',
- ],
+ 'name' => 'SubtaskId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'CreateTask' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetSubtaskItem' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/subtasks/{SubtaskId}/items/{ItemId}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'schema' => [
- '$ref' => '#/components/schemas/CreateTaskDetail',
- 'required' => true,
- ],
+ 'name' => 'TaskId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'SubtaskId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'ItemId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
'GetTask' => [
'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'TaskId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'UpdateTask' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetTaskStatistics' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/statistics',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'TaskId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'schema' => [
- '$ref' => '#/components/schemas/UpdateTaskDTO',
- 'required' => true,
- ],
+ 'name' => 'StatType',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'DeleteTask' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetTaskStatus' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/status',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'TaskId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'GetTaskTemplateViews' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/template/views',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetTaskTemplate' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/template',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'TaskId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
'GetTaskTemplateQuestions' => [
'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/template/questions',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'TaskId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'GetTaskTemplate' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/template',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetTaskTemplateViews' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/template/views',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'TaskId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'GetTaskStatus' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/status',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetTaskWorkforce' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/workforce',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'TaskId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true],
],
],
],
- 'GetTaskStatistics' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/statistics',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetTaskWorkforceStatistic' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/workforce/statistic',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'TaskId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'StatType',
@@ -2370,600 +1308,402 @@
'schema' => [
'type' => 'string',
'required' => false,
+ 'enum' => ['ITEM', 'OPERATORCELL'],
],
],
],
],
- 'ListSubtasks' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskID}/subtasks',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetTemplate' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/templates/{TemplateId}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'TaskID',
+ 'name' => 'TemplateId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
+ ],
+ ],
+ 'GetTemplateQuestions' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/templates/{TemplateId}/questions',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'minimum' => '0',
- ],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
[
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'name' => 'TenantId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'TemplateId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'GetSubtask' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskID}/subtasks/{SubtaskId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetTemplateView' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/templates/{TemplateId}/views',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'TaskID',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'SubtaskId',
+ 'name' => 'TemplateId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'ListSubtaskItems' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskID}/subtasks/{SubtaskId}/items',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetTenant' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
+ ],
+ ],
+ 'GetUser' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/users/{UserId}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'TaskID',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
[
- 'name' => 'SubtaskId',
+ 'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'minimum' => '0',
- ],
- ],
- [
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'minimum' => '1',
- 'maximum' => '20',
- ],
+ 'name' => 'UserId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true],
],
],
],
- 'GetSubtaskItem' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/subtasks/{SubtaskId}/items/{ItemId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListJobs' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/jobs',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'TaskId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
- 'name' => 'SubtaskId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
- 'name' => 'ItemId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'name' => 'JobType',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'ExportAnnotations' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/annotations/export',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListSubtaskItems' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskID}/subtasks/{SubtaskId}/items',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'TaskId',
+ 'name' => 'TaskID',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'Target',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'name' => 'SubtaskId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'OssPath',
+ 'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '0'],
],
[
- 'name' => 'RegisterDataset',
+ 'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '20'],
],
],
],
- 'ListJobs' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/jobs',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListSubtasks' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskID}/subtasks',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'name' => 'TaskID',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '0'],
],
[
- 'name' => 'JobType',
+ 'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
],
],
- 'GetJob' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/jobs/{JobId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListTasks' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'JobId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '0'],
],
[
- 'name' => 'JobType',
+ 'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '10'],
],
],
],
- 'ListUsers' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/users',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListTemplates' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/templates',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '0'],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '20'],
],
[
- 'name' => 'PageNumber',
+ 'name' => 'SearchKey',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Types',
'in' => 'query',
+ 'style' => 'simple',
'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
+ 'type' => 'array',
'required' => false,
+ 'items' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'enum' => ['COMMON', 'CUSTOM'],
+ ],
],
],
],
],
- 'GetUser' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/users/{UserId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListTenants' => [
+ 'path' => '/openapi/api/v1/tenants',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'TenantId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
- 'name' => 'UserId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- ],
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
],
],
- 'CreateUser' => [
+ 'ListUsers' => [
'path' => '/openapi/api/v1/tenants/{TenantId}/users',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'AccountNo' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'AccountType' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'Role' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'UserName' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
],
],
- 'UpdateUser' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/users/{UserId}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'RemoveWorkNodeWorkforce' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/worknodes/{WorkNodeId}/workforce',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'multipart/form-data',
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'UserId',
+ 'name' => 'TaskId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'WorkNodeId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => true, 'minimum' => '0'],
],
[
'name' => 'body',
@@ -2973,147 +1713,68 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Role' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'UserName' => [
- 'type' => 'string',
- 'required' => true,
+ 'UserIds' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => ['type' => 'integer', 'format' => 'int64', 'required' => false],
],
],
],
],
],
],
- 'DeleteUser' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/users/{UserId}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'UpdateTask' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'UserId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],
- ],
- 'GetTaskWorkforce' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/workforce',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
- [
- 'name' => 'TenantId',
+ 'name' => 'TaskId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'TaskId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- ],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'schema' => ['$ref' => '#/components/schemas/UpdateTaskDTO', 'required' => true],
],
],
],
- 'AddWorkNodeWorkforce' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/worknodes/{WorkNodeId}/workforce',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'UpdateTaskWorkforce' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/workforce',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'TaskId',
'in' => 'path',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'WorkNodeId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'body',
@@ -3123,127 +1784,63 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'UserIds' => [
+ 'Workforce' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
+ 'items' => ['$ref' => '#/components/schemas/SimpleWorkforce', 'required' => false],
],
],
],
],
],
],
- 'GetTaskWorkforceStatistic' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/workforce/statistic',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'UpdateTemplate' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/templates/{TemplateId}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'TaskId',
+ 'name' => 'TemplateId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'StatType',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- 'enum' => [
- 'ITEM',
- 'OPERATORCELL',
- ],
- ],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'schema' => ['$ref' => '#/components/schemas/TemplateDTO', 'required' => false],
],
],
],
- 'UpdateTaskWorkforce' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/workforce',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'UpdateTenant' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['multipart/form-data', 'application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'TaskId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'body',
@@ -3253,66 +1850,35 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Workforce' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- '$ref' => '#/components/schemas/SimpleWorkforce',
- 'required' => false,
- ],
- ],
+ 'TenantName' => ['type' => 'string', 'required' => false],
+ 'Description' => ['type' => 'string', 'required' => false],
],
],
],
],
],
- 'RemoveWorkNodeWorkforce' => [
- 'path' => '/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/worknodes/{WorkNodeId}/workforce',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'UpdateUser' => [
+ 'path' => '/openapi/api/v1/tenants/{TenantId}/users/{UserId}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['multipart/form-data', 'application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TenantId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'TaskId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'WorkNodeId',
+ 'name' => 'UserId',
'in' => 'path',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'minimum' => '0',
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'body',
@@ -3322,15 +1888,8 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'UserIds' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
- ],
+ 'Role' => ['type' => 'string', 'required' => true],
+ 'UserName' => ['type' => 'string', 'required' => true],
],
],
],
@@ -3338,21 +1897,9 @@
],
],
'endpoints' => [
- [
- 'regionId' => 'cn-beijing',
- 'endpoint' => 'openitag.cn-beijing.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-hangzhou',
- 'endpoint' => 'openitag.cn-hangzhou.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shanghai',
- 'endpoint' => 'openitag.cn-shanghai.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shenzhen',
- 'endpoint' => 'openitag.cn-shenzhen.aliyuncs.com',
- ],
+ ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'openitag.cn-beijing.aliyuncs.com', 'endpoint' => 'openitag.cn-beijing.aliyuncs.com', 'vpc' => 'openitag-vpc.cn-beijing.aliyuncs.com'],
+ ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'openitag.cn-hangzhou.aliyuncs.com', 'endpoint' => 'openitag.cn-hangzhou.aliyuncs.com', 'vpc' => 'openitag-vpc.cn-hangzhou.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'openitag.cn-shanghai.aliyuncs.com', 'endpoint' => 'openitag.cn-shanghai.aliyuncs.com', 'vpc' => 'openitag-vpc.cn-shanghai.aliyuncs.com'],
+ ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'openitag.cn-shenzhen.aliyuncs.com', 'endpoint' => 'openitag.cn-shenzhen.aliyuncs.com', 'vpc' => 'openitag-vpc.cn-shenzhen.aliyuncs.com'],
],
];