@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 +1 -1
- package/lib/user/index.js +3 -1
- package/package.json +1 -1
- package/types/user/types.d.ts +1 -0
package/jest.config.js
CHANGED
|
@@ -12,7 +12,7 @@ module.exports = {
|
|
|
12
12
|
testEnvironment: 'node',
|
|
13
13
|
testPathIgnorePatterns: [
|
|
14
14
|
// PG 集成测试 / smoke 测试需要 PostgreSQL 环境,流水线默认跳过
|
|
15
|
-
'
|
|
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