@cloudbase/manager-node 5.5.2-beta.0 → 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/environment.js +0 -5
- package/lib/index.js +0 -3
- package/lib/user/index.js +3 -1
- package/package.json +1 -1
- package/types/environment.d.ts +0 -3
- package/types/index.d.ts +0 -2
- package/types/user/types.d.ts +1 -0
- package/lib/talosSandbox/index.js +0 -1121
- package/lib/talosSandbox/type.js +0 -3
- package/types/talosSandbox/index.d.ts +0 -182
- package/types/talosSandbox/type.d.ts +0 -689
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/environment.js
CHANGED
|
@@ -22,7 +22,6 @@ const cloudApp_1 = require("./cloudApp");
|
|
|
22
22
|
const permission_1 = require("./permission");
|
|
23
23
|
const sandbox_1 = require("./sandbox");
|
|
24
24
|
const aiModel_1 = require("./aiModel");
|
|
25
|
-
const talosSandbox_1 = require("./talosSandbox");
|
|
26
25
|
class Environment {
|
|
27
26
|
constructor(context, envId) {
|
|
28
27
|
this.inited = false;
|
|
@@ -48,7 +47,6 @@ class Environment {
|
|
|
48
47
|
this.cloudAppService = new cloudApp_1.CloudAppService(this);
|
|
49
48
|
this.sandboxService = new sandbox_1.SandboxService(this);
|
|
50
49
|
this.aiModelService = new aiModel_1.AiModelService(this);
|
|
51
|
-
this.talosSandboxService = new talosSandbox_1.TalosSandboxService(this);
|
|
52
50
|
}
|
|
53
51
|
async lazyInit() {
|
|
54
52
|
if (!this.inited) {
|
|
@@ -123,9 +121,6 @@ class Environment {
|
|
|
123
121
|
getAiModelService() {
|
|
124
122
|
return this.aiModelService;
|
|
125
123
|
}
|
|
126
|
-
getTalosSandboxService() {
|
|
127
|
-
return this.talosSandboxService;
|
|
128
|
-
}
|
|
129
124
|
getCommonService(serviceType = 'tcb', serviceVersion) {
|
|
130
125
|
return new common_1.CommonService(this, serviceType, serviceVersion);
|
|
131
126
|
}
|
package/lib/index.js
CHANGED
|
@@ -122,9 +122,6 @@ class CloudBase {
|
|
|
122
122
|
get aiModel() {
|
|
123
123
|
return this.currentEnvironment().getAiModelService();
|
|
124
124
|
}
|
|
125
|
-
get talosSandbox() {
|
|
126
|
-
return this.currentEnvironment().getTalosSandboxService();
|
|
127
|
-
}
|
|
128
125
|
get docs() {
|
|
129
126
|
if (!this.docsService) {
|
|
130
127
|
this.docsService = new docs_1.DocsService();
|
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
package/types/environment.d.ts
CHANGED
|
@@ -18,7 +18,6 @@ import { EnvInfo } from './interfaces';
|
|
|
18
18
|
import { PermissionService } from './permission';
|
|
19
19
|
import { SandboxService } from './sandbox';
|
|
20
20
|
import { AiModelService } from './aiModel';
|
|
21
|
-
import { TalosSandboxService } from './talosSandbox';
|
|
22
21
|
export declare class Environment {
|
|
23
22
|
inited: boolean;
|
|
24
23
|
cloudBaseContext: CloudBaseContext;
|
|
@@ -42,7 +41,6 @@ export declare class Environment {
|
|
|
42
41
|
private cloudAppService;
|
|
43
42
|
private sandboxService;
|
|
44
43
|
private aiModelService;
|
|
45
|
-
private talosSandboxService;
|
|
46
44
|
constructor(context: CloudBaseContext, envId: string);
|
|
47
45
|
lazyInit(): Promise<any>;
|
|
48
46
|
getEnvId(): string;
|
|
@@ -64,7 +62,6 @@ export declare class Environment {
|
|
|
64
62
|
getPermissionService(): PermissionService;
|
|
65
63
|
getSandboxService(): SandboxService;
|
|
66
64
|
getAiModelService(): AiModelService;
|
|
67
|
-
getTalosSandboxService(): TalosSandboxService;
|
|
68
65
|
getCommonService(serviceType: string, serviceVersion: any): CommonService;
|
|
69
66
|
getServicesEnvInfo(): Promise<any>;
|
|
70
67
|
getAuthConfig(): {
|
package/types/index.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ import { PermissionService } from './permission';
|
|
|
19
19
|
import { SandboxService } from './sandbox';
|
|
20
20
|
import { CloudAppService } from './cloudApp';
|
|
21
21
|
import { AiModelService } from './aiModel';
|
|
22
|
-
import { TalosSandboxService } from './talosSandbox';
|
|
23
22
|
interface CloudBaseConfig {
|
|
24
23
|
secretId?: string;
|
|
25
24
|
secretKey?: string;
|
|
@@ -85,7 +84,6 @@ declare class CloudBase {
|
|
|
85
84
|
get permission(): PermissionService;
|
|
86
85
|
get sandbox(): SandboxService;
|
|
87
86
|
get aiModel(): AiModelService;
|
|
88
|
-
get talosSandbox(): TalosSandboxService;
|
|
89
87
|
get docs(): DocsService;
|
|
90
88
|
getEnvironmentManager(): EnvironmentManager;
|
|
91
89
|
getManagerConfig(): CloudBaseConfig;
|