zentao-api 0.6.2 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -382,7 +382,7 @@ export const BUILTIN_MODULES = [
382
382
  {
383
383
  name: 'product',
384
384
  display: '产品',
385
- description: '产品管理,支持获取产品列表、创建产品、关闭产品、创建产品的需求模块、创建产品的Bug模块、创建产品的用例模块、获取产品详情、修改产品、删除产品',
385
+ description: '产品管理,支持获取产品列表、获取项目集的产品列表、创建产品、关闭产品、创建产品的需求模块、创建产品的Bug模块、创建产品的用例模块、获取产品详情、修改产品、删除产品',
386
386
  actions: [
387
387
  {
388
388
  name: 'list',
@@ -434,6 +434,60 @@ export const BUILTIN_MODULES = [
434
434
  description: '页码,从第1页开始',
435
435
  },
436
436
  ],
437
+ }, {
438
+ name: 'programProducts',
439
+ display: '获取项目集的产品列表',
440
+ type: 'list',
441
+ method: 'get',
442
+ path: '/programs/{programID}/products',
443
+ resultType: 'list',
444
+ pagerGetter: 'pager',
445
+ resultGetter: 'products',
446
+ pathParams: {
447
+ programID: '项目集ID',
448
+ },
449
+ params: [
450
+ {
451
+ name: 'browseType',
452
+ required: false,
453
+ type: 'string',
454
+ description: '状态,默认是noclosed',
455
+ defaultValue: 'noclosed',
456
+ options: [
457
+ { value: 'all', label: '全部' },
458
+ { value: 'noclosed', label: '未关闭' },
459
+ { value: 'closed', label: '已结束' },
460
+ ],
461
+ },
462
+ {
463
+ name: 'orderBy',
464
+ required: false,
465
+ type: 'string',
466
+ description: '排序',
467
+ options: [
468
+ { value: 'id_asc', label: 'ID 升序' },
469
+ { value: 'id_desc', label: 'ID 降序' },
470
+ { value: 'name_asc', label: '名称 升序' },
471
+ { value: 'name_desc', label: '名称 降序' },
472
+ { value: 'begin_asc', label: '计划开始 升序' },
473
+ { value: 'begin_desc', label: '计划开始 降序' },
474
+ { value: 'end_asc', label: '计划结束 升序' },
475
+ { value: 'end_desc', label: '计划结束 降序' },
476
+ ],
477
+ },
478
+ {
479
+ name: 'recPerPage',
480
+ required: false,
481
+ type: 'number',
482
+ description: '每页数量,不超过1000',
483
+ },
484
+ {
485
+ name: 'pageID',
486
+ required: false,
487
+ type: 'number',
488
+ description: '页码,从第1页开始',
489
+ },
490
+ ],
437
491
  }, {
438
492
  name: 'create',
439
493
  display: '创建产品',
@@ -706,7 +760,7 @@ export const BUILTIN_MODULES = [
706
760
  {
707
761
  name: 'project',
708
762
  display: '项目',
709
- description: '项目管理,支持获取项目列表、获取项目团队列表、创建项目、关闭项目、创建项目需求、创建项目Bug、创建项目任务、修改项目、删除项目、维护项目成员',
763
+ description: '项目管理,支持获取项目列表、获取项目集的项目列表、获取项目团队列表、获取项目成员列表、创建项目、关闭项目、创建项目需求、创建项目Bug、创建项目任务、修改项目、删除项目、维护项目成员',
710
764
  actions: [
711
765
  {
712
766
  name: 'list',
@@ -776,6 +830,61 @@ export const BUILTIN_MODULES = [
776
830
  ],
777
831
  },
778
832
  ],
833
+ }, {
834
+ name: 'programProjects',
835
+ display: '获取项目集的项目列表',
836
+ type: 'list',
837
+ method: 'get',
838
+ path: '/programs/{programID}/projects',
839
+ resultType: 'list',
840
+ pagerGetter: 'pager',
841
+ resultGetter: 'projects',
842
+ pathParams: {
843
+ programID: '项目集ID',
844
+ },
845
+ params: [
846
+ {
847
+ name: 'browseType',
848
+ required: false,
849
+ type: 'string',
850
+ description: '项目状态,默认是undone',
851
+ defaultValue: 'undone',
852
+ options: [
853
+ { value: 'all', label: '全部' },
854
+ { value: 'undone', label: '未完成' },
855
+ { value: 'wait', label: '未开始' },
856
+ { value: 'doing', label: '进行中' },
857
+ ],
858
+ },
859
+ {
860
+ name: 'orderBy',
861
+ required: false,
862
+ type: 'string',
863
+ description: '排序',
864
+ options: [
865
+ { value: 'id_asc', label: 'ID 升序' },
866
+ { value: 'id_desc', label: 'ID 降序' },
867
+ { value: 'name_asc', label: '名称 升序' },
868
+ { value: 'name_desc', label: '名称 降序' },
869
+ { value: 'begin_asc', label: '计划开始 升序' },
870
+ { value: 'begin_desc', label: '计划开始 降序' },
871
+ { value: 'end_asc', label: '计划结束 升序' },
872
+ { value: 'end_desc', label: '计划结束 降序' },
873
+ ],
874
+ },
875
+ {
876
+ name: 'recPerPage',
877
+ required: false,
878
+ type: 'number',
879
+ description: '每页数量,不超过1000',
880
+ },
881
+ {
882
+ name: 'pageID',
883
+ required: false,
884
+ type: 'number',
885
+ description: '页码,从第1页开始',
886
+ },
887
+ ],
779
888
  }, {
780
889
  name: 'team',
781
890
  display: '获取项目团队列表',
@@ -783,7 +892,6 @@ export const BUILTIN_MODULES = [
783
892
  method: 'get',
784
893
  path: '/projects/team',
785
894
  resultType: 'list',
786
- pagerGetter: 'pager',
787
895
  resultGetter: 'members',
788
896
  params: [
789
897
  {
@@ -793,6 +901,17 @@ export const BUILTIN_MODULES = [
793
901
  description: '项目ID',
794
902
  },
795
903
  ],
904
+ }, {
905
+ name: 'projectMembers',
906
+ display: '获取项目成员列表',
907
+ type: 'list',
908
+ method: 'get',
909
+ path: '/projects/{projectID}/members',
910
+ resultType: 'list',
911
+ resultGetter: 'members',
912
+ pathParams: {
913
+ projectID: '项目ID',
914
+ },
796
915
  }, {
797
916
  name: 'create',
798
917
  display: '创建项目',
@@ -1199,7 +1318,7 @@ export const BUILTIN_MODULES = [
1199
1318
  {
1200
1319
  name: 'execution',
1201
1320
  display: '执行',
1202
- description: '执行管理,支持获取执行列表、获取执行团队列表、创建执行(迭代/阶段/看板)、关闭执行、创建执行的任务模块、获取执行详情、修改执行、删除执行、维护执行成员',
1321
+ description: '执行管理,支持获取执行列表、获取项目的执行列表、获取执行团队列表、获取执行成员列表、创建执行(迭代/阶段/看板)、关闭执行、创建执行的任务模块、获取执行详情、修改执行、删除执行、维护执行成员',
1203
1322
  actions: [
1204
1323
  {
1205
1324
  name: 'list',
@@ -1269,6 +1388,61 @@ export const BUILTIN_MODULES = [
1269
1388
  ],
1270
1389
  },
1271
1390
  ],
1391
+ }, {
1392
+ name: 'projectExecutions',
1393
+ display: '获取项目的执行列表',
1394
+ type: 'list',
1395
+ method: 'get',
1396
+ path: '/projects/{projectID}/executions',
1397
+ resultType: 'list',
1398
+ pagerGetter: 'pager',
1399
+ resultGetter: 'executions',
1400
+ pathParams: {
1401
+ projectID: '项目ID',
1402
+ },
1403
+ params: [
1404
+ {
1405
+ name: 'browseType',
1406
+ required: false,
1407
+ type: 'string',
1408
+ description: '执行状态,默认是undone',
1409
+ defaultValue: 'undone',
1410
+ options: [
1411
+ { value: 'all', label: '全部' },
1412
+ { value: 'undone', label: '未完成' },
1413
+ { value: 'wait', label: '未开始' },
1414
+ { value: 'doing', label: '进行中' },
1415
+ ],
1416
+ },
1417
+ {
1418
+ name: 'orderBy',
1419
+ required: false,
1420
+ type: 'string',
1421
+ description: '排序',
1422
+ options: [
1423
+ { value: 'rawID_asc', label: 'RAWID 升序' },
1424
+ { value: 'rawID_desc', label: 'RAWID 降序' },
1425
+ { value: 'nameCol_asc', label: '名称 升序' },
1426
+ { value: 'nameCol_desc', label: '名称 降序' },
1427
+ { value: 'begin_asc', label: '计划开始 升序' },
1428
+ { value: 'begin_desc', label: '计划开始 降序' },
1429
+ { value: 'end_asc', label: '计划结束 升序' },
1430
+ { value: 'end_desc', label: '计划结束 降序' },
1431
+ ],
1432
+ },
1433
+ {
1434
+ name: 'recPerPage',
1435
+ required: false,
1436
+ type: 'number',
1437
+ description: '每页数量,不超过1000',
1438
+ },
1439
+ {
1440
+ name: 'pageID',
1441
+ required: false,
1442
+ type: 'number',
1443
+ description: '页码,从第1页开始',
1444
+ },
1445
+ ],
1272
1446
  }, {
1273
1447
  name: 'team',
1274
1448
  display: '获取执行团队列表',
@@ -1276,7 +1450,6 @@ export const BUILTIN_MODULES = [
1276
1450
  method: 'get',
1277
1451
  path: '/executions/team',
1278
1452
  resultType: 'list',
1279
- pagerGetter: 'pager',
1280
1453
  resultGetter: 'members',
1281
1454
  params: [
1282
1455
  {
@@ -1286,6 +1459,17 @@ export const BUILTIN_MODULES = [
1286
1459
  description: '执行ID',
1287
1460
  },
1288
1461
  ],
1462
+ }, {
1463
+ name: 'executionMembers',
1464
+ display: '获取执行成员列表',
1465
+ type: 'list',
1466
+ method: 'get',
1467
+ path: '/executions/{executionID}/members',
1468
+ resultType: 'list',
1469
+ resultGetter: 'members',
1470
+ pathParams: {
1471
+ executionID: '执行ID',
1472
+ },
1289
1473
  }, {
1290
1474
  name: 'create',
1291
1475
  display: '创建执行(迭代/阶段/看板)',
@@ -1889,7 +2073,6 @@ export const BUILTIN_MODULES = [
1889
2073
  method: 'get',
1890
2074
  path: '/products/{productID}/story/modules',
1891
2075
  resultType: 'list',
1892
- pagerGetter: 'pager',
1893
2076
  pathParams: {
1894
2077
  productID: '产品ID',
1895
2078
  },
@@ -2934,7 +3117,6 @@ export const BUILTIN_MODULES = [
2934
3117
  method: 'get',
2935
3118
  path: '/products/{productID}/bug/modules',
2936
3119
  resultType: 'list',
2937
- pagerGetter: 'pager',
2938
3120
  pathParams: {
2939
3121
  productID: '产品ID',
2940
3122
  },
@@ -3374,7 +3556,6 @@ export const BUILTIN_MODULES = [
3374
3556
  method: 'get',
3375
3557
  path: '/products/{productID}/testcase/modules',
3376
3558
  resultType: 'list',
3377
- pagerGetter: 'pager',
3378
3559
  pathParams: {
3379
3560
  productID: '产品ID',
3380
3561
  },
@@ -3662,7 +3843,6 @@ export const BUILTIN_MODULES = [
3662
3843
  method: 'get',
3663
3844
  path: '/executions/{executionID}/task/modules',
3664
3845
  resultType: 'list',
3665
- pagerGetter: 'pager',
3666
3846
  pathParams: {
3667
3847
  executionID: '执行ID',
3668
3848
  },
@@ -4014,7 +4194,7 @@ export const BUILTIN_MODULES = [
4014
4194
  {
4015
4195
  name: 'issue',
4016
4196
  display: '问题',
4017
- description: '问题管理,支持获取问题列表、创建问题、获取问题详情',
4197
+ description: '问题管理,支持获取问题列表、获取项目问题列表、获取执行问题列表、创建问题、获取问题详情',
4018
4198
  actions: [
4019
4199
  {
4020
4200
  name: 'list',
@@ -4038,7 +4218,391 @@ export const BUILTIN_MODULES = [
4038
4218
  { value: 'assignto', label: '指派给我' },
4039
4219
  { value: 'assignby', label: '由我指派' },
4040
4220
  { value: 'closed', label: '已关闭' },
4041
- { value: 'resolved', label: '已解决' },
4221
+ { value: 'resolved', label: '已解决' },
4222
+ { value: 'canceled', label: '已取消' },
4223
+ ],
4224
+ },
4225
+ {
4226
+ name: 'orderBy',
4227
+ required: false,
4228
+ type: 'string',
4229
+ description: '排序',
4230
+ options: [
4231
+ { value: 'id_asc', label: 'ID 升序' },
4232
+ { value: 'id_desc', label: 'ID 降序' },
4233
+ { value: 'title_asc', label: '标题 升序' },
4234
+ { value: 'title_desc', label: '标题 降序' },
4235
+ { value: 'severity_asc', label: '严重程度 升序' },
4236
+ { value: 'severity_desc', label: '严重程度 降序' },
4237
+ { value: 'status_asc', label: '状态 升序' },
4238
+ { value: 'status_desc', label: '状态 降序' },
4239
+ ],
4240
+ },
4241
+ {
4242
+ name: 'recPerPage',
4243
+ required: false,
4244
+ type: 'number',
4245
+ description: '每页数量,不超过1000',
4246
+ },
4247
+ {
4248
+ name: 'pageID',
4249
+ required: false,
4250
+ type: 'number',
4251
+ description: '页码,从第1页开始',
4252
+ },
4253
+ {
4254
+ name: 'filters',
4255
+ required: false,
4256
+ type: 'string',
4257
+ description: '搜索条件数组,每项包含 field/operator/value/join/group;field 必须是该接口支持的搜索字段,operator 使用该接口搜索配置支持的操作符。支持搜索字段:assignedDate,assignedTo,closedBy,closedDate,createdBy,createdDate,editedBy,editedDate,execution,id,pri,project,severity,status,title,type',
4258
+ },
4259
+ {
4260
+ name: 'groupJoin',
4261
+ required: false,
4262
+ type: 'string',
4263
+ description: '条件组之间的连接方式',
4264
+ options: [
4265
+ { value: 'and', label: 'and' },
4266
+ { value: 'or', label: 'or' },
4267
+ ],
4268
+ },
4269
+ ],
4270
+ }, {
4271
+ name: 'projectIssues',
4272
+ display: '获取项目问题列表',
4273
+ type: 'list',
4274
+ method: 'get',
4275
+ path: '/projects/{projectID}/issues',
4276
+ resultType: 'list',
4277
+ pagerGetter: 'pager',
4278
+ resultGetter: 'issues',
4279
+ pathParams: {
4280
+ projectID: '项目ID',
4281
+ },
4282
+ params: [
4283
+ {
4284
+ name: 'browseType',
4285
+ required: false,
4286
+ type: 'string',
4287
+ description: '状态,默认是all',
4288
+ defaultValue: 'all',
4289
+ options: [
4290
+ { value: 'all', label: '全部' },
4291
+ { value: 'open', label: '开放' },
4292
+ { value: 'assignto', label: '指派给我' },
4293
+ { value: 'assignby', label: '由我指派' },
4294
+ { value: 'closed', label: '已关闭' },
4295
+ { value: 'resolved', label: '已解决' },
4296
+ { value: 'canceled', label: '已取消' },
4297
+ ],
4298
+ },
4299
+ {
4300
+ name: 'orderBy',
4301
+ required: false,
4302
+ type: 'string',
4303
+ description: '排序',
4304
+ options: [
4305
+ { value: 'id_asc', label: 'ID 升序' },
4306
+ { value: 'id_desc', label: 'ID 降序' },
4307
+ { value: 'title_asc', label: '标题 升序' },
4308
+ { value: 'title_desc', label: '标题 降序' },
4309
+ { value: 'severity_asc', label: '严重程度 升序' },
4310
+ { value: 'severity_desc', label: '严重程度 降序' },
4311
+ { value: 'status_asc', label: '状态 升序' },
4312
+ { value: 'status_desc', label: '状态 降序' },
4313
+ ],
4314
+ },
4315
+ {
4316
+ name: 'recPerPage',
4317
+ required: false,
4318
+ type: 'number',
4319
+ description: '每页数量,不超过1000',
4320
+ },
4321
+ {
4322
+ name: 'pageID',
4323
+ required: false,
4324
+ type: 'number',
4325
+ description: '页码,从第1页开始',
4326
+ },
4327
+ {
4328
+ name: 'filters',
4329
+ required: false,
4330
+ type: 'string',
4331
+ description: '搜索条件数组,每项包含 field/operator/value/join/group;field 必须是该接口支持的搜索字段,operator 使用该接口搜索配置支持的操作符。支持搜索字段:assignedDate,assignedTo,closedBy,closedDate,createdBy,createdDate,editedBy,editedDate,execution,id,pri,project,severity,status,title,type',
4332
+ },
4333
+ {
4334
+ name: 'groupJoin',
4335
+ required: false,
4336
+ type: 'string',
4337
+ description: '条件组之间的连接方式',
4338
+ options: [
4339
+ { value: 'and', label: 'and' },
4340
+ { value: 'or', label: 'or' },
4341
+ ],
4342
+ },
4343
+ ],
4344
+ }, {
4345
+ name: 'executionIssues',
4346
+ display: '获取执行问题列表',
4347
+ type: 'list',
4348
+ method: 'get',
4349
+ path: '/executions/{executionID}/issues',
4350
+ resultType: 'list',
4351
+ pagerGetter: 'pager',
4352
+ resultGetter: 'issues',
4353
+ pathParams: {
4354
+ executionID: '执行ID',
4355
+ },
4356
+ params: [
4357
+ {
4358
+ name: 'browseType',
4359
+ required: false,
4360
+ type: 'string',
4361
+ description: '状态,默认是all',
4362
+ defaultValue: 'all',
4363
+ options: [
4364
+ { value: 'all', label: '全部' },
4365
+ { value: 'open', label: '开放' },
4366
+ { value: 'assignto', label: '指派给我' },
4367
+ { value: 'assignby', label: '由我指派' },
4368
+ { value: 'closed', label: '已关闭' },
4369
+ { value: 'resolved', label: '已解决' },
4370
+ { value: 'canceled', label: '已取消' },
4371
+ ],
4372
+ },
4373
+ {
4374
+ name: 'orderBy',
4375
+ required: false,
4376
+ type: 'string',
4377
+ description: '排序',
4378
+ options: [
4379
+ { value: 'id_asc', label: 'ID 升序' },
4380
+ { value: 'id_desc', label: 'ID 降序' },
4381
+ { value: 'title_asc', label: '标题 升序' },
4382
+ { value: 'title_desc', label: '标题 降序' },
4383
+ { value: 'severity_asc', label: '严重程度 升序' },
4384
+ { value: 'severity_desc', label: '严重程度 降序' },
4385
+ { value: 'status_asc', label: '状态 升序' },
4386
+ { value: 'status_desc', label: '状态 降序' },
4387
+ ],
4388
+ },
4389
+ {
4390
+ name: 'recPerPage',
4391
+ required: false,
4392
+ type: 'number',
4393
+ description: '每页数量,不超过1000',
4394
+ },
4395
+ {
4396
+ name: 'pageID',
4397
+ required: false,
4398
+ type: 'number',
4399
+ description: '页码,从第1页开始',
4400
+ },
4401
+ {
4402
+ name: 'filters',
4403
+ required: false,
4404
+ type: 'string',
4405
+ description: '搜索条件数组,每项包含 field/operator/value/join/group;field 必须是该接口支持的搜索字段,operator 使用该接口搜索配置支持的操作符。支持搜索字段:assignedDate,assignedTo,closedBy,closedDate,createdBy,createdDate,editedBy,editedDate,execution,id,pri,project,severity,status,title,type',
4406
+ },
4407
+ {
4408
+ name: 'groupJoin',
4409
+ required: false,
4410
+ type: 'string',
4411
+ description: '条件组之间的连接方式',
4412
+ options: [
4413
+ { value: 'and', label: 'and' },
4414
+ { value: 'or', label: 'or' },
4415
+ ],
4416
+ },
4417
+ ],
4418
+ }, {
4419
+ name: 'create',
4420
+ display: '创建问题',
4421
+ type: 'create',
4422
+ method: 'post',
4423
+ path: '/issues',
4424
+ resultType: 'object',
4425
+ requestBody: {
4426
+ required: true,
4427
+ type: 'object',
4428
+ schema: {
4429
+ "type": "object",
4430
+ "properties": {
4431
+ "objectID": {
4432
+ "type": "integer",
4433
+ "description": "所属项目",
4434
+ "format": "int32"
4435
+ },
4436
+ "from": {
4437
+ "type": "integer",
4438
+ "description": "来源,0 表示直接创建",
4439
+ "format": "int32"
4440
+ },
4441
+ "title": {
4442
+ "type": "string",
4443
+ "description": "问题名称"
4444
+ },
4445
+ "type": {
4446
+ "type": "string",
4447
+ "description": "类型(design 设计问题 | code 程序缺陷 | performance 性能问题 | version 版本控制 | storyadd 需求新增 | storychanged 需求修改 | storyremoved 需求删除 | data 数据问题)"
4448
+ },
4449
+ "severity": {
4450
+ "type": "integer",
4451
+ "description": "严重程度(1 严重 | 2 较严重 | 3 较小 | 4 建议)",
4452
+ "format": "int32"
4453
+ },
4454
+ "pri": {
4455
+ "type": "integer",
4456
+ "description": "优先级(1-4)",
4457
+ "format": "int32"
4458
+ },
4459
+ "execution": {
4460
+ "type": "integer",
4461
+ "description": "所属执行",
4462
+ "format": "int32"
4463
+ },
4464
+ "assignedTo": {
4465
+ "type": "string",
4466
+ "description": "指派给"
4467
+ },
4468
+ "owner": {
4469
+ "type": "string",
4470
+ "description": "提出人"
4471
+ },
4472
+ "deadline": {
4473
+ "type": "string",
4474
+ "description": "计划解决日期"
4475
+ },
4476
+ "desc": {
4477
+ "type": "string",
4478
+ "description": "描述"
4479
+ }
4480
+ },
4481
+ "required": [
4482
+ "objectID",
4483
+ "title",
4484
+ "type",
4485
+ "severity"
4486
+ ]
4487
+ },
4488
+ },
4489
+ }, {
4490
+ name: 'get',
4491
+ display: '获取问题详情',
4492
+ type: 'get',
4493
+ method: 'get',
4494
+ path: '/issues/{issueID}',
4495
+ resultType: 'object',
4496
+ resultGetter: 'issue',
4497
+ pathParams: {
4498
+ issueID: '问题ID',
4499
+ },
4500
+ }
4501
+ ],
4502
+ },
4503
+ /* 风险模块 */
4504
+ {
4505
+ name: 'risk',
4506
+ display: '风险',
4507
+ description: '风险管理,支持获取风险列表、获取项目风险列表、获取执行风险列表、创建风险、获取风险详情、修改风险',
4508
+ actions: [
4509
+ {
4510
+ name: 'list',
4511
+ display: '获取风险列表',
4512
+ type: 'list',
4513
+ method: 'get',
4514
+ path: '/risks',
4515
+ resultType: 'list',
4516
+ pagerGetter: 'pager',
4517
+ resultGetter: 'risks',
4518
+ params: [
4519
+ {
4520
+ name: 'browseType',
4521
+ required: false,
4522
+ type: 'string',
4523
+ description: '状态,默认是all',
4524
+ defaultValue: 'all',
4525
+ options: [
4526
+ { value: 'all', label: '全部' },
4527
+ { value: 'active', label: '开放' },
4528
+ { value: 'assignTo', label: '指派给我' },
4529
+ { value: 'assignBy', label: '由我指派' },
4530
+ { value: 'closed', label: '已关闭' },
4531
+ { value: 'hangup', label: '已挂起' },
4532
+ { value: 'canceled', label: '已取消' },
4533
+ ],
4534
+ },
4535
+ {
4536
+ name: 'orderBy',
4537
+ required: false,
4538
+ type: 'string',
4539
+ description: '排序',
4540
+ options: [
4541
+ { value: 'id_asc', label: 'ID 升序' },
4542
+ { value: 'id_desc', label: 'ID 降序' },
4543
+ { value: 'name_asc', label: '名称 升序' },
4544
+ { value: 'name_desc', label: '名称 降序' },
4545
+ { value: 'status_asc', label: '状态 升序' },
4546
+ { value: 'status_desc', label: '状态 降序' },
4547
+ { value: 'pri_asc', label: '优先级 升序' },
4548
+ { value: 'pri_desc', label: '优先级 降序' },
4549
+ ],
4550
+ },
4551
+ {
4552
+ name: 'recPerPage',
4553
+ required: false,
4554
+ type: 'number',
4555
+ description: '每页数量,不超过1000',
4556
+ },
4557
+ {
4558
+ name: 'pageID',
4559
+ required: false,
4560
+ type: 'number',
4561
+ description: '页码,从第1页开始',
4562
+ },
4563
+ {
4564
+ name: 'filters',
4565
+ required: false,
4566
+ type: 'string',
4567
+ description: '搜索条件数组,每项包含 field/operator/value/join/group;field 必须是该接口支持的搜索字段,operator 使用该接口搜索配置支持的操作符。支持搜索字段:activateBy,actualClosedDate,assignedTo,cancelBy,category,createdBy,createdDate,editedBy,editedDate,hangupBy,id,identifiedDate,impact,name,plannedClosedDate,prevention,pri,probability,project,rate,remedy,resolution,resolvedBy,source,status,strategy,trackedBy',
4568
+ },
4569
+ {
4570
+ name: 'groupJoin',
4571
+ required: false,
4572
+ type: 'string',
4573
+ description: '条件组之间的连接方式',
4574
+ options: [
4575
+ { value: 'and', label: 'and' },
4576
+ { value: 'or', label: 'or' },
4577
+ ],
4578
+ },
4579
+ ],
4580
+ }, {
4581
+ name: 'projectRisks',
4582
+ display: '获取项目风险列表',
4583
+ type: 'list',
4584
+ method: 'get',
4585
+ path: '/projects/{projectID}/risks',
4586
+ resultType: 'list',
4587
+ pagerGetter: 'pager',
4588
+ resultGetter: 'risks',
4589
+ pathParams: {
4590
+ projectID: '项目ID',
4591
+ },
4592
+ params: [
4593
+ {
4594
+ name: 'browseType',
4595
+ required: false,
4596
+ type: 'string',
4597
+ description: '状态,默认是all',
4598
+ defaultValue: 'all',
4599
+ options: [
4600
+ { value: 'all', label: '全部' },
4601
+ { value: 'active', label: '开放' },
4602
+ { value: 'assignTo', label: '指派给我' },
4603
+ { value: 'assignBy', label: '由我指派' },
4604
+ { value: 'closed', label: '已关闭' },
4605
+ { value: 'hangup', label: '已挂起' },
4042
4606
  { value: 'canceled', label: '已取消' },
4043
4607
  ],
4044
4608
  },
@@ -4050,12 +4614,12 @@ export const BUILTIN_MODULES = [
4050
4614
  options: [
4051
4615
  { value: 'id_asc', label: 'ID 升序' },
4052
4616
  { value: 'id_desc', label: 'ID 降序' },
4053
- { value: 'title_asc', label: '标题 升序' },
4054
- { value: 'title_desc', label: '标题 降序' },
4055
- { value: 'severity_asc', label: '严重程度 升序' },
4056
- { value: 'severity_desc', label: '严重程度 降序' },
4617
+ { value: 'name_asc', label: '名称 升序' },
4618
+ { value: 'name_desc', label: '名称 降序' },
4057
4619
  { value: 'status_asc', label: '状态 升序' },
4058
4620
  { value: 'status_desc', label: '状态 降序' },
4621
+ { value: 'pri_asc', label: '优先级 升序' },
4622
+ { value: 'pri_desc', label: '优先级 降序' },
4059
4623
  ],
4060
4624
  },
4061
4625
  {
@@ -4074,7 +4638,7 @@ export const BUILTIN_MODULES = [
4074
4638
  name: 'filters',
4075
4639
  required: false,
4076
4640
  type: 'string',
4077
- description: '搜索条件数组,每项包含 field/operator/value/join/group;field 必须是该接口支持的搜索字段,operator 使用该接口搜索配置支持的操作符。支持搜索字段:assignedDate,assignedTo,closedBy,closedDate,createdBy,createdDate,editedBy,editedDate,execution,id,pri,project,severity,status,title,type',
4641
+ description: '搜索条件数组,每项包含 field/operator/value/join/group;field 必须是该接口支持的搜索字段,operator 使用该接口搜索配置支持的操作符。支持搜索字段:activateBy,actualClosedDate,assignedTo,cancelBy,category,createdBy,createdDate,editedBy,editedDate,hangupBy,id,identifiedDate,impact,name,plannedClosedDate,prevention,pri,probability,project,rate,remedy,resolution,resolvedBy,source,status,strategy,trackedBy',
4078
4642
  },
4079
4643
  {
4080
4644
  name: 'groupJoin',
@@ -4088,105 +4652,17 @@ export const BUILTIN_MODULES = [
4088
4652
  },
4089
4653
  ],
4090
4654
  }, {
4091
- name: 'create',
4092
- display: '创建问题',
4093
- type: 'create',
4094
- method: 'post',
4095
- path: '/issues',
4096
- resultType: 'object',
4097
- requestBody: {
4098
- required: true,
4099
- type: 'object',
4100
- schema: {
4101
- "type": "object",
4102
- "properties": {
4103
- "objectID": {
4104
- "type": "integer",
4105
- "description": "所属项目",
4106
- "format": "int32"
4107
- },
4108
- "from": {
4109
- "type": "integer",
4110
- "description": "来源,0 表示直接创建",
4111
- "format": "int32"
4112
- },
4113
- "title": {
4114
- "type": "string",
4115
- "description": "问题名称"
4116
- },
4117
- "type": {
4118
- "type": "string",
4119
- "description": "类型(design 设计问题 | code 程序缺陷 | performance 性能问题 | version 版本控制 | storyadd 需求新增 | storychanged 需求修改 | storyremoved 需求删除 | data 数据问题)"
4120
- },
4121
- "severity": {
4122
- "type": "integer",
4123
- "description": "严重程度(1 严重 | 2 较严重 | 3 较小 | 4 建议)",
4124
- "format": "int32"
4125
- },
4126
- "pri": {
4127
- "type": "integer",
4128
- "description": "优先级(1-4)",
4129
- "format": "int32"
4130
- },
4131
- "execution": {
4132
- "type": "integer",
4133
- "description": "所属执行",
4134
- "format": "int32"
4135
- },
4136
- "assignedTo": {
4137
- "type": "string",
4138
- "description": "指派给"
4139
- },
4140
- "owner": {
4141
- "type": "string",
4142
- "description": "提出人"
4143
- },
4144
- "deadline": {
4145
- "type": "string",
4146
- "description": "计划解决日期"
4147
- },
4148
- "desc": {
4149
- "type": "string",
4150
- "description": "描述"
4151
- }
4152
- },
4153
- "required": [
4154
- "objectID",
4155
- "title",
4156
- "type",
4157
- "severity"
4158
- ]
4159
- },
4160
- },
4161
- }, {
4162
- name: 'get',
4163
- display: '获取问题详情',
4164
- type: 'get',
4165
- method: 'get',
4166
- path: '/issues/{issueID}',
4167
- resultType: 'object',
4168
- resultGetter: 'issue',
4169
- pathParams: {
4170
- issueID: '问题ID',
4171
- },
4172
- }
4173
- ],
4174
- },
4175
- /* 风险模块 */
4176
- {
4177
- name: 'risk',
4178
- display: '风险',
4179
- description: '风险管理,支持获取风险列表、创建风险、获取风险详情、修改风险',
4180
- actions: [
4181
- {
4182
- name: 'list',
4183
- display: '获取风险列表',
4655
+ name: 'executionRisks',
4656
+ display: '获取执行风险列表',
4184
4657
  type: 'list',
4185
4658
  method: 'get',
4186
- path: '/risks',
4659
+ path: '/executions/{executionID}/risks',
4187
4660
  resultType: 'list',
4188
4661
  pagerGetter: 'pager',
4189
4662
  resultGetter: 'risks',
4663
+ pathParams: {
4664
+ executionID: '执行ID',
4665
+ },
4190
4666
  params: [
4191
4667
  {
4192
4668
  name: 'browseType',
@@ -4438,7 +4914,7 @@ export const BUILTIN_MODULES = [
4438
4914
  {
4439
4915
  name: 'meeting',
4440
4916
  display: '会议',
4441
- description: '会议管理,支持获取会议列表、创建会议、获取会议详情、修改会议、删除会议、编辑会议纪要',
4917
+ description: '会议管理,支持获取会议列表、获取项目会议列表、获取执行会议列表、创建会议、获取会议详情、修改会议、删除会议、编辑会议纪要',
4442
4918
  actions: [
4443
4919
  {
4444
4920
  name: 'list',
@@ -4505,6 +4981,142 @@ export const BUILTIN_MODULES = [
4505
4981
  ],
4506
4982
  },
4507
4983
  ],
4984
+ }, {
4985
+ name: 'projectMeetings',
4986
+ display: '获取项目会议列表',
4987
+ type: 'list',
4988
+ method: 'get',
4989
+ path: '/projects/{projectID}/meetings',
4990
+ resultType: 'list',
4991
+ pagerGetter: 'pager',
4992
+ resultGetter: 'meetings',
4993
+ pathParams: {
4994
+ projectID: '项目ID',
4995
+ },
4996
+ params: [
4997
+ {
4998
+ name: 'browseType',
4999
+ required: false,
5000
+ type: 'string',
5001
+ description: '状态,默认是all',
5002
+ defaultValue: 'all',
5003
+ options: [
5004
+ { value: 'all', label: '全部' },
5005
+ { value: 'booked', label: '我预约的' },
5006
+ { value: 'participate', label: '我参加的' },
5007
+ ],
5008
+ },
5009
+ {
5010
+ name: 'orderBy',
5011
+ required: false,
5012
+ type: 'string',
5013
+ description: '排序',
5014
+ options: [
5015
+ { value: 'id_asc', label: 'ID 升序' },
5016
+ { value: 'id_desc', label: 'ID 降序' },
5017
+ { value: 'name_asc', label: '名称 升序' },
5018
+ { value: 'name_desc', label: '名称 降序' },
5019
+ { value: 'date_asc', label: '日期 升序' },
5020
+ { value: 'date_desc', label: '日期 降序' },
5021
+ ],
5022
+ },
5023
+ {
5024
+ name: 'recPerPage',
5025
+ required: false,
5026
+ type: 'number',
5027
+ description: '每页数量,不超过1000',
5028
+ },
5029
+ {
5030
+ name: 'pageID',
5031
+ required: false,
5032
+ type: 'number',
5033
+ description: '页码,从第1页开始',
5034
+ },
5035
+ {
5036
+ name: 'filters',
5037
+ required: false,
5038
+ type: 'string',
5039
+ description: '搜索条件数组,每项包含 field/operator/value/join/group;field 必须是该接口支持的搜索字段,operator 使用该接口搜索配置支持的操作符。支持搜索字段:begin,createdBy,createdDate,date,dept,editedBy,editedDate,end,execution,host,id,minutedBy,minutedDate,mode,name,project,room',
5040
+ },
5041
+ {
5042
+ name: 'groupJoin',
5043
+ required: false,
5044
+ type: 'string',
5045
+ description: '条件组之间的连接方式',
5046
+ options: [
5047
+ { value: 'and', label: 'and' },
5048
+ { value: 'or', label: 'or' },
5049
+ ],
5050
+ },
5051
+ ],
5052
+ }, {
5053
+ name: 'executionMeetings',
5054
+ display: '获取执行会议列表',
5055
+ type: 'list',
5056
+ method: 'get',
5057
+ path: '/executions/{executionID}/meetings',
5058
+ resultType: 'list',
5059
+ pagerGetter: 'pager',
5060
+ resultGetter: 'meetings',
5061
+ pathParams: {
5062
+ executionID: '执行ID',
5063
+ },
5064
+ params: [
5065
+ {
5066
+ name: 'browseType',
5067
+ required: false,
5068
+ type: 'string',
5069
+ description: '状态,默认是all',
5070
+ defaultValue: 'all',
5071
+ options: [
5072
+ { value: 'all', label: '全部' },
5073
+ { value: 'booked', label: '我预约的' },
5074
+ { value: 'participate', label: '我参加的' },
5075
+ ],
5076
+ },
5077
+ {
5078
+ name: 'orderBy',
5079
+ required: false,
5080
+ type: 'string',
5081
+ description: '排序',
5082
+ options: [
5083
+ { value: 'id_asc', label: 'ID 升序' },
5084
+ { value: 'id_desc', label: 'ID 降序' },
5085
+ { value: 'name_asc', label: '名称 升序' },
5086
+ { value: 'name_desc', label: '名称 降序' },
5087
+ { value: 'date_asc', label: '日期 升序' },
5088
+ { value: 'date_desc', label: '日期 降序' },
5089
+ ],
5090
+ },
5091
+ {
5092
+ name: 'recPerPage',
5093
+ required: false,
5094
+ type: 'number',
5095
+ description: '每页数量,不超过1000',
5096
+ },
5097
+ {
5098
+ name: 'pageID',
5099
+ required: false,
5100
+ type: 'number',
5101
+ description: '页码,从第1页开始',
5102
+ },
5103
+ {
5104
+ name: 'filters',
5105
+ required: false,
5106
+ type: 'string',
5107
+ description: '搜索条件数组,每项包含 field/operator/value/join/group;field 必须是该接口支持的搜索字段,operator 使用该接口搜索配置支持的操作符。支持搜索字段:begin,createdBy,createdDate,date,dept,editedBy,editedDate,end,execution,host,id,minutedBy,minutedDate,mode,name,project,room',
5108
+ },
5109
+ {
5110
+ name: 'groupJoin',
5111
+ required: false,
5112
+ type: 'string',
5113
+ description: '条件组之间的连接方式',
5114
+ options: [
5115
+ { value: 'and', label: 'and' },
5116
+ { value: 'or', label: 'or' },
5117
+ ],
5118
+ },
5119
+ ],
4508
5120
  }, {
4509
5121
  name: 'create',
4510
5122
  display: '创建会议',
@@ -6518,7 +7130,6 @@ export const BUILTIN_MODULES = [
6518
7130
  method: 'get',
6519
7131
  path: '/doc/my/spaces',
6520
7132
  resultType: 'list',
6521
- pagerGetter: 'pager',
6522
7133
  resultGetter: 'spaces',
6523
7134
  }, {
6524
7135
  name: 'teamSpaces',
@@ -6527,7 +7138,6 @@ export const BUILTIN_MODULES = [
6527
7138
  method: 'get',
6528
7139
  path: '/doc/team/spaces',
6529
7140
  resultType: 'list',
6530
- pagerGetter: 'pager',
6531
7141
  resultGetter: 'spaces',
6532
7142
  }, {
6533
7143
  name: 'productSpaces',
@@ -6536,7 +7146,6 @@ export const BUILTIN_MODULES = [
6536
7146
  method: 'get',
6537
7147
  path: '/doc/product/spaces',
6538
7148
  resultType: 'list',
6539
- pagerGetter: 'pager',
6540
7149
  resultGetter: 'spaces',
6541
7150
  }, {
6542
7151
  name: 'projectSpaces',
@@ -6545,7 +7154,6 @@ export const BUILTIN_MODULES = [
6545
7154
  method: 'get',
6546
7155
  path: '/doc/project/spaces',
6547
7156
  resultType: 'list',
6548
- pagerGetter: 'pager',
6549
7157
  resultGetter: 'spaces',
6550
7158
  }, {
6551
7159
  name: 'myLibs',
@@ -6554,7 +7162,6 @@ export const BUILTIN_MODULES = [
6554
7162
  method: 'get',
6555
7163
  path: '/doc/my/spaces/{spaceID}/libs',
6556
7164
  resultType: 'list',
6557
- pagerGetter: 'pager',
6558
7165
  resultGetter: 'libs',
6559
7166
  pathParams: {
6560
7167
  spaceID: '空间ID',
@@ -6566,7 +7173,6 @@ export const BUILTIN_MODULES = [
6566
7173
  method: 'get',
6567
7174
  path: '/doc/team/spaces/{spaceID}/libs',
6568
7175
  resultType: 'list',
6569
- pagerGetter: 'pager',
6570
7176
  resultGetter: 'libs',
6571
7177
  pathParams: {
6572
7178
  spaceID: '空间ID',
@@ -6578,7 +7184,6 @@ export const BUILTIN_MODULES = [
6578
7184
  method: 'get',
6579
7185
  path: '/doc/product/spaces/{productID}/libs',
6580
7186
  resultType: 'list',
6581
- pagerGetter: 'pager',
6582
7187
  resultGetter: 'libs',
6583
7188
  pathParams: {
6584
7189
  productID: '产品ID',
@@ -6590,7 +7195,6 @@ export const BUILTIN_MODULES = [
6590
7195
  method: 'get',
6591
7196
  path: '/doc/project/spaces/{projectID}/libs',
6592
7197
  resultType: 'list',
6593
- pagerGetter: 'pager',
6594
7198
  resultGetter: 'libs',
6595
7199
  pathParams: {
6596
7200
  projectID: '项目ID',
@@ -6602,7 +7206,6 @@ export const BUILTIN_MODULES = [
6602
7206
  method: 'get',
6603
7207
  path: '/doc/my/spaces/{spaceID}/libs/{libID}/docs',
6604
7208
  resultType: 'list',
6605
- pagerGetter: 'pager',
6606
7209
  pathParams: {
6607
7210
  spaceID: '空间ID',
6608
7211
  libID: '文档库ID',
@@ -6615,7 +7218,6 @@ export const BUILTIN_MODULES = [
6615
7218
  method: 'get',
6616
7219
  path: '/doc/team/spaces/{spaceID}/libs/{libID}/docs',
6617
7220
  resultType: 'list',
6618
- pagerGetter: 'pager',
6619
7221
  resultGetter: 'docs',
6620
7222
  pathParams: {
6621
7223
  spaceID: '空间ID',
@@ -6628,7 +7230,6 @@ export const BUILTIN_MODULES = [
6628
7230
  method: 'get',
6629
7231
  path: '/doc/product/spaces/{productID}/libs/{libID}/docs',
6630
7232
  resultType: 'list',
6631
- pagerGetter: 'pager',
6632
7233
  pathParams: {
6633
7234
  productID: '产品ID',
6634
7235
  libID: '文档库ID',
@@ -6641,7 +7242,6 @@ export const BUILTIN_MODULES = [
6641
7242
  method: 'get',
6642
7243
  path: '/doc/project/spaces/{projectID}/libs/{libID}/docs',
6643
7244
  resultType: 'list',
6644
- pagerGetter: 'pager',
6645
7245
  pathParams: {
6646
7246
  projectID: '项目ID',
6647
7247
  libID: '文档库ID',
@@ -6654,7 +7254,6 @@ export const BUILTIN_MODULES = [
6654
7254
  method: 'get',
6655
7255
  path: '/doc/my/spaces/{spaceID}/libs/{libID}/modules',
6656
7256
  resultType: 'list',
6657
- pagerGetter: 'pager',
6658
7257
  resultGetter: 'modules',
6659
7258
  pathParams: {
6660
7259
  spaceID: '空间ID',
@@ -6667,7 +7266,6 @@ export const BUILTIN_MODULES = [
6667
7266
  method: 'get',
6668
7267
  path: '/doc/team/spaces/{spaceID}/libs/{libID}/modules',
6669
7268
  resultType: 'list',
6670
- pagerGetter: 'pager',
6671
7269
  resultGetter: 'modules',
6672
7270
  pathParams: {
6673
7271
  spaceID: '空间ID',
@@ -6680,7 +7278,6 @@ export const BUILTIN_MODULES = [
6680
7278
  method: 'get',
6681
7279
  path: '/doc/product/spaces/{productID}/libs/{libID}/modules',
6682
7280
  resultType: 'list',
6683
- pagerGetter: 'pager',
6684
7281
  resultGetter: 'modules',
6685
7282
  pathParams: {
6686
7283
  productID: '产品ID',
@@ -6693,7 +7290,6 @@ export const BUILTIN_MODULES = [
6693
7290
  method: 'get',
6694
7291
  path: '/doc/project/spaces/{projectID}/libs/{libID}/modules',
6695
7292
  resultType: 'list',
6696
- pagerGetter: 'pager',
6697
7293
  resultGetter: 'modules',
6698
7294
  pathParams: {
6699
7295
  projectID: '项目ID',
@@ -8261,7 +8857,6 @@ export const BUILTIN_MODULES = [
8261
8857
  method: 'get',
8262
8858
  path: '/my/issues',
8263
8859
  resultType: 'list',
8264
- pagerGetter: 'pager',
8265
8860
  params: [
8266
8861
  {
8267
8862
  name: 'browseType',
@@ -8316,7 +8911,6 @@ export const BUILTIN_MODULES = [
8316
8911
  method: 'get',
8317
8912
  path: '/my/risks',
8318
8913
  resultType: 'list',
8319
- pagerGetter: 'pager',
8320
8914
  params: [
8321
8915
  {
8322
8916
  name: 'browseType',