@cloudbase/manager-node 4.11.0-alpha.8 → 5.0.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/.claude/settings.local.json +9 -0
- package/jest.config.js +1 -0
- package/lib/agent/index.js +3 -3
- package/lib/cloudApp/index.js +243 -0
- package/lib/cloudApp/types.js +10 -0
- package/lib/cloudrun/index.js +28 -28
- package/lib/env/index.js +92 -0
- package/lib/environment.js +5 -0
- package/lib/index.js +25 -0
- package/lib/interfaces/cloudApp.interface.js +20 -0
- package/lib/interfaces/index.js +1 -0
- package/lib/permission/index.js +4 -7
- package/package.json +2 -2
- package/types/agent/index.d.ts +3 -3
- package/types/agent/type.d.ts +2 -2
- package/types/cloudApp/index.d.ts +73 -0
- package/types/cloudApp/types.d.ts +325 -0
- package/types/cloudrun/index.d.ts +2 -2
- package/types/cloudrun/type.d.ts +5 -3
- package/types/env/index.d.ts +39 -1
- package/types/env/type.d.ts +187 -0
- package/types/environment.d.ts +3 -0
- package/types/index.d.ts +20 -0
- package/types/interfaces/cloudApp.interface.d.ts +4 -0
- package/types/interfaces/index.d.ts +1 -0
- package/types/permission/types.d.ts +1 -1
package/types/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { CloudBaseRunService } from './cloudBaseRun';
|
|
|
16
16
|
import { MysqlService } from './mysql';
|
|
17
17
|
import { DocsService } from './docs';
|
|
18
18
|
import { PermissionService } from './permission';
|
|
19
|
+
import { CloudAppService } from './cloudApp';
|
|
19
20
|
interface CloudBaseConfig {
|
|
20
21
|
secretId?: string;
|
|
21
22
|
secretKey?: string;
|
|
@@ -53,7 +54,26 @@ declare class CloudBase {
|
|
|
53
54
|
get hosting(): HostingService;
|
|
54
55
|
get access(): AccessService;
|
|
55
56
|
get mysql(): MysqlService;
|
|
57
|
+
/**
|
|
58
|
+
* 云托管服务(CloudBaseRun)
|
|
59
|
+
* 提供云托管版本流量配置等能力
|
|
60
|
+
* @deprecated 请使用 cloudBaseRun 代替,避免与 cloudAppService 混淆
|
|
61
|
+
*/
|
|
56
62
|
get cloudApp(): CloudBaseRunService;
|
|
63
|
+
/**
|
|
64
|
+
* 云托管服务(CloudBaseRun)
|
|
65
|
+
* 提供云托管版本流量配置等能力
|
|
66
|
+
*/
|
|
67
|
+
get cloudBaseRun(): CloudBaseRunService;
|
|
68
|
+
/**
|
|
69
|
+
* 云应用服务(CloudApp 统一部署)
|
|
70
|
+
* 提供 Web 应用的创建、部署、版本管理等能力
|
|
71
|
+
*/
|
|
72
|
+
get cloudAppService(): CloudAppService;
|
|
73
|
+
/**
|
|
74
|
+
* 获取云应用服务
|
|
75
|
+
*/
|
|
76
|
+
getCloudAppService(): CloudAppService;
|
|
57
77
|
commonService(service?: string, version?: string): CommonService;
|
|
58
78
|
get env(): EnvService;
|
|
59
79
|
get log(): LogService;
|
|
@@ -2,7 +2,7 @@ export type PermissionResourceType = 'function' | 'storage' | 'table' | 'collect
|
|
|
2
2
|
export type BasePermission = 'READONLY' | 'PRIVATE' | 'ADMINWRITE' | 'ADMINONLY' | 'CUSTOM';
|
|
3
3
|
export interface ModifyResourcePermissionOptions {
|
|
4
4
|
resourceType: PermissionResourceType;
|
|
5
|
-
resource
|
|
5
|
+
resource?: string;
|
|
6
6
|
permission: BasePermission;
|
|
7
7
|
securityRule?: string;
|
|
8
8
|
}
|