@cloudbase/manager-node 5.5.1 → 5.5.2

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/jest.config.js CHANGED
@@ -12,7 +12,7 @@ module.exports = {
12
12
  testEnvironment: 'node',
13
13
  testPathIgnorePatterns: [
14
14
  // PG 集成测试 / smoke 测试需要 PostgreSQL 环境,流水线默认跳过
15
- '/pg-storage-integration\\.test\\.ts$/'
15
+ 'pg-storage-integration\\.test\\.ts$'
16
16
  ],
17
17
  // https://github.com/facebook/jest/issues/5164
18
18
  globalSetup: './test/global-setup-hook.ts',
package/lib/user/index.js CHANGED
@@ -188,7 +188,7 @@ class UserService {
188
188
  }
189
189
  async describeUserList(options = {}) {
190
190
  const { EnvId } = this.environment.lazyEnvironmentConfig;
191
- const { pageNo = 1, pageSize = 20, name, nickName, phone, email } = options;
191
+ const { pageNo = 1, pageSize = 20, name, nickName, phone, email, uidList } = options;
192
192
  if (!Number.isInteger(pageNo) || pageNo < 1) {
193
193
  throw new Error('Invalid pageNo');
194
194
  }
@@ -208,6 +208,8 @@ class UserService {
208
208
  reqData.Phone = phone;
209
209
  if (this.isValidStr(email))
210
210
  reqData.Email = email;
211
+ if (Array.isArray(uidList) && uidList.length > 0)
212
+ reqData.UidList = uidList;
211
213
  return this.tcbService.request('DescribeUserList', reqData);
212
214
  }
213
215
  async modifyUser(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/manager-node",
3
- "version": "5.5.1",
3
+ "version": "5.5.2",
4
4
  "description": "The node manage service api for cloudbase.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -42,6 +42,7 @@ export interface DescribeUserListOptions {
42
42
  nickName?: string;
43
43
  phone?: string;
44
44
  email?: string;
45
+ uidList?: string[];
45
46
  }
46
47
  export interface TcbUserItem {
47
48
  Uid?: string;