@tapd/tapd-node-sdk 1.52.0 → 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 +81 -0
- package/package.json +2 -2
package/node-sdk/src/index.js
CHANGED
|
@@ -8101,6 +8101,39 @@ module.exports = class API extends SDK {
|
|
|
8101
8101
|
);
|
|
8102
8102
|
}
|
|
8103
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
|
+
|
|
8104
8137
|
/**
|
|
8105
8138
|
* @description 删除组织架构
|
|
8106
8139
|
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/org/remove_all_organization.html
|
|
@@ -8290,6 +8323,22 @@ module.exports = class API extends SDK {
|
|
|
8290
8323
|
);
|
|
8291
8324
|
}
|
|
8292
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
|
+
|
|
8293
8342
|
/**
|
|
8294
8343
|
* @description 更新用户所属角色
|
|
8295
8344
|
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/user/update_user_role.html
|
|
@@ -8351,6 +8400,38 @@ module.exports = class API extends SDK {
|
|
|
8351
8400
|
);
|
|
8352
8401
|
}
|
|
8353
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
|
+
|
|
8354
8435
|
/**
|
|
8355
8436
|
* @description 获取插件动态配置
|
|
8356
8437
|
* @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/setting/get_plugin_options.html
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tapd/tapd-node-sdk",
|
|
3
|
-
"version": "1.52.0",
|
|
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,5 +44,5 @@
|
|
|
44
44
|
"directories": {
|
|
45
45
|
"test": "test"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "ee7b0b077655e1b9a14f8af3533ac00286eded8e"
|
|
48
48
|
}
|