@tapd/tapd-node-sdk 1.32.0-beta.4 → 1.32.0-beta.6
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.
- package/package.json +1 -1
- package/src/index.js +50 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1566,6 +1566,24 @@ module.exports = class API extends SDK {
|
|
|
1566
1566
|
);
|
|
1567
1567
|
}
|
|
1568
1568
|
|
|
1569
|
+
/**
|
|
1570
|
+
* @description 获取单个图片下载链接
|
|
1571
|
+
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/attachment/get_image.html
|
|
1572
|
+
* @scope attachment#r
|
|
1573
|
+
|
|
1574
|
+
* @params - {integer} workspace_id 项目ID
|
|
1575
|
+
* @params - {string} image_path 图片路径, 支持完整url地址, 图片所属项目必须和传入的项目id一致
|
|
1576
|
+
*/
|
|
1577
|
+
getImage(...args) {
|
|
1578
|
+
return this.oAuthRequest.apply(
|
|
1579
|
+
this, [
|
|
1580
|
+
'/files/get_image',
|
|
1581
|
+
'GET',
|
|
1582
|
+
...args
|
|
1583
|
+
]
|
|
1584
|
+
);
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1569
1587
|
/**
|
|
1570
1588
|
* @description 复制缺陷
|
|
1571
1589
|
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/bug/copy_bug.html
|
|
@@ -7435,6 +7453,38 @@ module.exports = class API extends SDK {
|
|
|
7435
7453
|
);
|
|
7436
7454
|
}
|
|
7437
7455
|
|
|
7456
|
+
/**
|
|
7457
|
+
* @description 项目集关联项目
|
|
7458
|
+
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/program/program_relate_workspace.html
|
|
7459
|
+
* @scope program#w
|
|
7460
|
+
|
|
7461
|
+
*/
|
|
7462
|
+
programRelateWorkspace(...args) {
|
|
7463
|
+
return this.oAuthRequest.apply(
|
|
7464
|
+
this, [
|
|
7465
|
+
'/program/program_relate_workspace',
|
|
7466
|
+
'POST',
|
|
7467
|
+
...args
|
|
7468
|
+
]
|
|
7469
|
+
);
|
|
7470
|
+
}
|
|
7471
|
+
|
|
7472
|
+
/**
|
|
7473
|
+
* @description 项目集批量关联/取消关联业务对象
|
|
7474
|
+
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/program/program_bind_entities.html
|
|
7475
|
+
* @scope program#w
|
|
7476
|
+
|
|
7477
|
+
*/
|
|
7478
|
+
programBindEntities(...args) {
|
|
7479
|
+
return this.oAuthRequest.apply(
|
|
7480
|
+
this, [
|
|
7481
|
+
'/program/program_bind_entities',
|
|
7482
|
+
'POST',
|
|
7483
|
+
...args
|
|
7484
|
+
]
|
|
7485
|
+
);
|
|
7486
|
+
}
|
|
7487
|
+
|
|
7438
7488
|
|
|
7439
7489
|
}
|
|
7440
7490
|
module.exports.FILE = FILE;
|