@tapd/tapd-node-sdk 1.51.2 → 1.52.1-alpha.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 +190 -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
|
|
@@ -7996,6 +8101,39 @@ module.exports = class API extends SDK {
|
|
|
7996
8101
|
);
|
|
7997
8102
|
}
|
|
7998
8103
|
|
|
8104
|
+
/**
|
|
8105
|
+
* @description 删除组织架构
|
|
8106
|
+
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/org/batch_remove_organization.html
|
|
8107
|
+
* @scope org#w
|
|
8108
|
+
|
|
8109
|
+
*/
|
|
8110
|
+
batchRemoveOrganization(...args) {
|
|
8111
|
+
return this.oAuthRequest.apply(
|
|
8112
|
+
this, [
|
|
8113
|
+
'/organizations/batch_remove',
|
|
8114
|
+
'POST',
|
|
8115
|
+
...args
|
|
8116
|
+
]
|
|
8117
|
+
);
|
|
8118
|
+
}
|
|
8119
|
+
|
|
8120
|
+
/**
|
|
8121
|
+
* @description 删除组织架构
|
|
8122
|
+
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/org/get_root_organization.html
|
|
8123
|
+
* @scope org#r
|
|
8124
|
+
|
|
8125
|
+
* @params - {integer} workspace_id 公司ID
|
|
8126
|
+
*/
|
|
8127
|
+
getRootOrganization(...args) {
|
|
8128
|
+
return this.oAuthRequest.apply(
|
|
8129
|
+
this, [
|
|
8130
|
+
'/organizations/root_organization',
|
|
8131
|
+
'GET',
|
|
8132
|
+
...args
|
|
8133
|
+
]
|
|
8134
|
+
);
|
|
8135
|
+
}
|
|
8136
|
+
|
|
7999
8137
|
/**
|
|
8000
8138
|
* @description 删除组织架构
|
|
8001
8139
|
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/org/remove_all_organization.html
|
|
@@ -8185,6 +8323,22 @@ module.exports = class API extends SDK {
|
|
|
8185
8323
|
);
|
|
8186
8324
|
}
|
|
8187
8325
|
|
|
8326
|
+
/**
|
|
8327
|
+
* @description 批量更新用户所属部门
|
|
8328
|
+
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/user/batch_update_user_organization.html
|
|
8329
|
+
* @scope user#w
|
|
8330
|
+
|
|
8331
|
+
*/
|
|
8332
|
+
batchUpdateUserOrganization(...args) {
|
|
8333
|
+
return this.oAuthRequest.apply(
|
|
8334
|
+
this, [
|
|
8335
|
+
'/users/batch_update_user_organization',
|
|
8336
|
+
'POST',
|
|
8337
|
+
...args
|
|
8338
|
+
]
|
|
8339
|
+
);
|
|
8340
|
+
}
|
|
8341
|
+
|
|
8188
8342
|
/**
|
|
8189
8343
|
* @description 更新用户所属角色
|
|
8190
8344
|
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/user/update_user_role.html
|
|
@@ -8246,6 +8400,38 @@ module.exports = class API extends SDK {
|
|
|
8246
8400
|
);
|
|
8247
8401
|
}
|
|
8248
8402
|
|
|
8403
|
+
/**
|
|
8404
|
+
* @description 批量删除用户
|
|
8405
|
+
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/user/batch_remove_user.html
|
|
8406
|
+
* @scope user#w
|
|
8407
|
+
|
|
8408
|
+
*/
|
|
8409
|
+
batchRemoveUser(...args) {
|
|
8410
|
+
return this.oAuthRequest.apply(
|
|
8411
|
+
this, [
|
|
8412
|
+
'/users/batch_remove',
|
|
8413
|
+
'POST',
|
|
8414
|
+
...args
|
|
8415
|
+
]
|
|
8416
|
+
);
|
|
8417
|
+
}
|
|
8418
|
+
|
|
8419
|
+
/**
|
|
8420
|
+
* @description 批量新建用户
|
|
8421
|
+
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/user/batch_new_user.html
|
|
8422
|
+
* @scope user#w
|
|
8423
|
+
|
|
8424
|
+
*/
|
|
8425
|
+
batchNewUser(...args) {
|
|
8426
|
+
return this.oAuthRequest.apply(
|
|
8427
|
+
this, [
|
|
8428
|
+
'/users/batch_new',
|
|
8429
|
+
'POST',
|
|
8430
|
+
...args
|
|
8431
|
+
]
|
|
8432
|
+
);
|
|
8433
|
+
}
|
|
8434
|
+
|
|
8249
8435
|
/**
|
|
8250
8436
|
* @description 获取插件动态配置
|
|
8251
8437
|
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/setting/get_plugin_options.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.1-alpha.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": "latest"
|
|
50
|
-
}
|
|
47
|
+
"gitHead": "ee7b0b077655e1b9a14f8af3533ac00286eded8e"
|
|
51
48
|
}
|