@tapd/tapd-node-sdk 1.31.0-beta.2 → 1.31.0-beta.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +19 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapd/tapd-node-sdk",
3
- "version": "1.31.0-beta.2",
3
+ "version": "1.31.0-beta.3",
4
4
  "description": "node sdk for open tapd ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -66,6 +66,25 @@ module.exports = class API extends SDK {
66
66
  );
67
67
  }
68
68
 
69
+ /**
70
+ * @description 获取自定义对象关联的需求
71
+ * @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/tobject/get_tobject_relative_stories.html
72
+ * @scope tobject#r
73
+
74
+ * @params - {string} system_name 自定义对象的系统名字(英文)
75
+ * @params - {int} workspace_id 所属TAPD项目ID
76
+ * @params - {string} tobject_instance_id 自定义对象的id
77
+ */
78
+ getTobjectRelativeStories(...args) {
79
+ return this.oAuthRequest.apply(
80
+ this, [
81
+ '/tobjects/get_relative_stories',
82
+ 'GET',
83
+ ...args
84
+ ]
85
+ );
86
+ }
87
+
69
88
  /**
70
89
  * @description 分配测试用例
71
90
  * @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/tcase/assign_tcase_instance.html