@tapd/tapd-node-sdk 1.51.1 → 1.52.0
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/node-sdk/src/index.js +109 -4
- package/node-sdk/src/sdk.js +0 -2
- package/package.json +2 -5
package/node-sdk/src/index.js
CHANGED
|
@@ -252,7 +252,7 @@ module.exports = class API extends SDK {
|
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
/**
|
|
255
|
-
* @description
|
|
255
|
+
* @description 旧版创建发布计划接口
|
|
256
256
|
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/release/add_release.html
|
|
257
257
|
* @scope release#w
|
|
258
258
|
|
|
@@ -273,6 +273,28 @@ module.exports = class API extends SDK {
|
|
|
273
273
|
);
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
+
/**
|
|
277
|
+
* @description 创建发布计划接口
|
|
278
|
+
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/release/add_new_release.html
|
|
279
|
+
* @scope release#w
|
|
280
|
+
|
|
281
|
+
* @params - {integer} workspace_id 项目ID
|
|
282
|
+
* @params - {string} name 标题
|
|
283
|
+
* @params - {string} description 详细描述
|
|
284
|
+
* @params - {date} startdate 开始时间
|
|
285
|
+
* @params - {date} enddate 结束时间
|
|
286
|
+
* @params - {string} creator 创建人
|
|
287
|
+
*/
|
|
288
|
+
addNewRelease(...args) {
|
|
289
|
+
return this.oAuthRequest.apply(
|
|
290
|
+
this, [
|
|
291
|
+
'/new_releases',
|
|
292
|
+
'POST',
|
|
293
|
+
...args
|
|
294
|
+
]
|
|
295
|
+
);
|
|
296
|
+
}
|
|
297
|
+
|
|
276
298
|
/**
|
|
277
299
|
* @description 创建基线接口
|
|
278
300
|
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/setting/add_baseline.html
|
|
@@ -1801,7 +1823,7 @@ module.exports = class API extends SDK {
|
|
|
1801
1823
|
}
|
|
1802
1824
|
|
|
1803
1825
|
/**
|
|
1804
|
-
* @description
|
|
1826
|
+
* @description 旧版更新发布计划接口
|
|
1805
1827
|
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/release/update_release.html
|
|
1806
1828
|
* @scope release#w
|
|
1807
1829
|
|
|
@@ -1824,6 +1846,30 @@ module.exports = class API extends SDK {
|
|
|
1824
1846
|
);
|
|
1825
1847
|
}
|
|
1826
1848
|
|
|
1849
|
+
/**
|
|
1850
|
+
* @description 更新发布计划接口
|
|
1851
|
+
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/release/update_new_release.html
|
|
1852
|
+
* @scope release#w
|
|
1853
|
+
|
|
1854
|
+
* @params - {integer} workspace_id 项目ID
|
|
1855
|
+
* @params - {integer} id 发布计划ID
|
|
1856
|
+
* @params - {string} name 标题
|
|
1857
|
+
* @params - {string} description 详细描述
|
|
1858
|
+
* @params - {date} startdate 开始时间
|
|
1859
|
+
* @params - {date} enddate 结束时间
|
|
1860
|
+
* @params - {string} status 状态('open’或'done')
|
|
1861
|
+
|
|
1862
|
+
*/
|
|
1863
|
+
updateNewRelease(...args) {
|
|
1864
|
+
return this.oAuthRequest.apply(
|
|
1865
|
+
this, [
|
|
1866
|
+
'/new_releases',
|
|
1867
|
+
'POST',
|
|
1868
|
+
...args
|
|
1869
|
+
]
|
|
1870
|
+
);
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1827
1873
|
/**
|
|
1828
1874
|
* @description 更新基线接口
|
|
1829
1875
|
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/setting/update_baseline.html
|
|
@@ -3523,7 +3569,7 @@ module.exports = class API extends SDK {
|
|
|
3523
3569
|
}
|
|
3524
3570
|
|
|
3525
3571
|
/**
|
|
3526
|
-
* @description
|
|
3572
|
+
* @description 旧版获取发布计划接口
|
|
3527
3573
|
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/release/get_releases.html
|
|
3528
3574
|
* @scope release#r
|
|
3529
3575
|
|
|
@@ -3556,7 +3602,40 @@ module.exports = class API extends SDK {
|
|
|
3556
3602
|
}
|
|
3557
3603
|
|
|
3558
3604
|
/**
|
|
3559
|
-
* @description
|
|
3605
|
+
* @description 获取发布计划接口
|
|
3606
|
+
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/release/get_new_releases.html
|
|
3607
|
+
* @scope release#r
|
|
3608
|
+
|
|
3609
|
+
* @params - {integer} id id
|
|
3610
|
+
* @params - {integer} workspace_id 项目ID
|
|
3611
|
+
* @params - {string} name 标题
|
|
3612
|
+
* @params - {string} description 详细描述
|
|
3613
|
+
* @params - {date} startdate 开始时间
|
|
3614
|
+
* @params - {date} enddate 结束时间
|
|
3615
|
+
* @params - {string} creator 创建人
|
|
3616
|
+
* @params - {datetime} created 创建时间
|
|
3617
|
+
* @params - {timestamp} modified 最后修改时间
|
|
3618
|
+
* @params - {enum('done','open')} status 状态
|
|
3619
|
+
* @params - {integer} limit 设置返回数量限制,默认为30
|
|
3620
|
+
* @params - {integer} page "返回当前数量限制下第N页的数据,默认为1(第一页)"
|
|
3621
|
+
|
|
3622
|
+
* @params - {string} order "排序规则,规则:字段名 ASC或者DESC,然后 urlencode"
|
|
3623
|
+
|
|
3624
|
+
* @params - {string} fields 设置获取的字段,多个字段间以','逗号隔开
|
|
3625
|
+
|
|
3626
|
+
*/
|
|
3627
|
+
getNewReleases(...args) {
|
|
3628
|
+
return this.oAuthRequest.apply(
|
|
3629
|
+
this, [
|
|
3630
|
+
'/new_releases',
|
|
3631
|
+
'GET',
|
|
3632
|
+
...args
|
|
3633
|
+
]
|
|
3634
|
+
);
|
|
3635
|
+
}
|
|
3636
|
+
|
|
3637
|
+
/**
|
|
3638
|
+
* @description 获取旧版发布计划数量接口
|
|
3560
3639
|
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/release/get_releases_count.html
|
|
3561
3640
|
* @scope release#r
|
|
3562
3641
|
|
|
@@ -3581,6 +3660,32 @@ module.exports = class API extends SDK {
|
|
|
3581
3660
|
);
|
|
3582
3661
|
}
|
|
3583
3662
|
|
|
3663
|
+
/**
|
|
3664
|
+
* @description 获取发布计划数量接口
|
|
3665
|
+
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/release/get_new_releases_count.html
|
|
3666
|
+
* @scope release#r
|
|
3667
|
+
|
|
3668
|
+
* @params - {integer} id id
|
|
3669
|
+
* @params - {integer} workspace_id 项目ID
|
|
3670
|
+
* @params - {string} name 标题
|
|
3671
|
+
* @params - {string} description 详细描述
|
|
3672
|
+
* @params - {date} startdate 开始时间
|
|
3673
|
+
* @params - {date} enddate 结束时间
|
|
3674
|
+
* @params - {string} creator 结束时间
|
|
3675
|
+
* @params - {datetime} created 创建时间
|
|
3676
|
+
* @params - {timestamp} modified 最后修改时间
|
|
3677
|
+
* @params - {enum('done','open')} status 状态
|
|
3678
|
+
*/
|
|
3679
|
+
getNewReleasesCount(...args) {
|
|
3680
|
+
return this.oAuthRequest.apply(
|
|
3681
|
+
this, [
|
|
3682
|
+
'/new_releases/count',
|
|
3683
|
+
'GET',
|
|
3684
|
+
...args
|
|
3685
|
+
]
|
|
3686
|
+
);
|
|
3687
|
+
}
|
|
3688
|
+
|
|
3584
3689
|
/**
|
|
3585
3690
|
* @description 获取发布评审
|
|
3586
3691
|
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/release/get_launch_forms.html
|
package/node-sdk/src/sdk.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tapd/tapd-node-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.52.0",
|
|
4
4
|
"description": "node sdk for open tapd ",
|
|
5
5
|
"main": "node-sdk/src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -44,8 +44,5 @@
|
|
|
44
44
|
"directories": {
|
|
45
45
|
"test": "test"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
48
|
-
"publishConfig": {
|
|
49
|
-
"tag": "1-51-lts"
|
|
50
|
-
}
|
|
47
|
+
"gitHead": "f5514f6f53deb3c07db4816e5af8068f605cd6bc"
|
|
51
48
|
}
|