@cloudbase/manager-node 4.2.3 → 4.2.4

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.
Files changed (125) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/package.json +4 -3
  3. package/lib/access/index.js +0 -141
  4. package/lib/access/types.js +0 -2
  5. package/lib/billing/index.js +0 -36
  6. package/lib/cam/index.js +0 -77
  7. package/lib/cloudBaseRun/index.js +0 -36
  8. package/lib/cloudBaseRun/types.js +0 -2
  9. package/lib/common/index.js +0 -39
  10. package/lib/constant.js +0 -51
  11. package/lib/context.js +0 -14
  12. package/lib/database/index.js +0 -244
  13. package/lib/debug.js +0 -34
  14. package/lib/env/index.js +0 -488
  15. package/lib/environment.js +0 -124
  16. package/lib/environmentManager.js +0 -44
  17. package/lib/error.js +0 -16
  18. package/lib/function/index.js +0 -1022
  19. package/lib/function/packer.js +0 -129
  20. package/lib/function/types.js +0 -2
  21. package/lib/hosting/index.js +0 -461
  22. package/lib/index.js +0 -83
  23. package/lib/interfaces/base.interface.js +0 -2
  24. package/lib/interfaces/billing.interface.js +0 -2
  25. package/lib/interfaces/cam.interface.js +0 -2
  26. package/lib/interfaces/flexdb.interface.js +0 -2
  27. package/lib/interfaces/function.interface.js +0 -2
  28. package/lib/interfaces/index.js +0 -19
  29. package/lib/interfaces/storage.interface.js +0 -2
  30. package/lib/interfaces/tcb.interface.js +0 -2
  31. package/lib/storage/index.js +0 -1037
  32. package/lib/third/index.js +0 -18
  33. package/lib/user/index.js +0 -136
  34. package/lib/user/types.js +0 -2
  35. package/lib/utils/auth.js +0 -97
  36. package/lib/utils/cloud-api-request.js +0 -205
  37. package/lib/utils/cloudbase-request.js +0 -69
  38. package/lib/utils/envLazy.js +0 -18
  39. package/lib/utils/fs.js +0 -64
  40. package/lib/utils/http-request.js +0 -44
  41. package/lib/utils/index.js +0 -103
  42. package/lib/utils/parallel.js +0 -69
  43. package/lib/utils/uuid.js +0 -18
  44. package/src/access/index.ts +0 -168
  45. package/src/access/types.ts +0 -55
  46. package/src/billing/index.ts +0 -43
  47. package/src/cam/index.ts +0 -106
  48. package/src/cloudBaseRun/index.ts +0 -40
  49. package/src/cloudBaseRun/types.ts +0 -24
  50. package/src/common/index.ts +0 -54
  51. package/src/constant.ts +0 -56
  52. package/src/context.ts +0 -18
  53. package/src/database/index.ts +0 -369
  54. package/src/debug.ts +0 -34
  55. package/src/env/index.ts +0 -614
  56. package/src/environment.ts +0 -156
  57. package/src/environmentManager.ts +0 -50
  58. package/src/error.ts +0 -27
  59. package/src/function/index.ts +0 -1378
  60. package/src/function/packer.ts +0 -164
  61. package/src/function/types.ts +0 -165
  62. package/src/hosting/index.ts +0 -698
  63. package/src/index.ts +0 -127
  64. package/src/interfaces/base.interface.ts +0 -8
  65. package/src/interfaces/billing.interface.ts +0 -21
  66. package/src/interfaces/cam.interface.ts +0 -28
  67. package/src/interfaces/flexdb.interface.ts +0 -104
  68. package/src/interfaces/function.interface.ts +0 -75
  69. package/src/interfaces/index.ts +0 -7
  70. package/src/interfaces/storage.interface.ts +0 -29
  71. package/src/interfaces/tcb.interface.ts +0 -642
  72. package/src/storage/index.ts +0 -1290
  73. package/src/third/index.ts +0 -24
  74. package/src/user/index.ts +0 -174
  75. package/src/user/types.ts +0 -21
  76. package/src/utils/auth.ts +0 -112
  77. package/src/utils/cloud-api-request.ts +0 -252
  78. package/src/utils/cloudbase-request.ts +0 -109
  79. package/src/utils/envLazy.ts +0 -15
  80. package/src/utils/fs.ts +0 -57
  81. package/src/utils/http-request.ts +0 -37
  82. package/src/utils/index.ts +0 -103
  83. package/src/utils/parallel.ts +0 -82
  84. package/src/utils/uuid.ts +0 -14
  85. package/types/access/index.d.ts +0 -38
  86. package/types/access/types.d.ts +0 -42
  87. package/types/billing/index.d.ts +0 -21
  88. package/types/cam/index.d.ts +0 -63
  89. package/types/cloudBaseRun/index.d.ts +0 -12
  90. package/types/cloudBaseRun/types.d.ts +0 -21
  91. package/types/common/index.d.ts +0 -18
  92. package/types/constant.d.ts +0 -37
  93. package/types/context.d.ts +0 -17
  94. package/types/database/index.d.ts +0 -66
  95. package/types/debug.d.ts +0 -1
  96. package/types/env/index.d.ts +0 -144
  97. package/types/environment.d.ts +0 -51
  98. package/types/environmentManager.d.ts +0 -13
  99. package/types/error.d.ts +0 -18
  100. package/types/function/index.d.ts +0 -379
  101. package/types/function/packer.d.ts +0 -37
  102. package/types/function/types.d.ts +0 -156
  103. package/types/hosting/index.d.ts +0 -253
  104. package/types/index.d.ts +0 -52
  105. package/types/interfaces/base.interface.d.ts +0 -7
  106. package/types/interfaces/billing.interface.d.ts +0 -18
  107. package/types/interfaces/cam.interface.d.ts +0 -24
  108. package/types/interfaces/flexdb.interface.d.ts +0 -67
  109. package/types/interfaces/function.interface.d.ts +0 -65
  110. package/types/interfaces/index.d.ts +0 -7
  111. package/types/interfaces/storage.interface.d.ts +0 -26
  112. package/types/interfaces/tcb.interface.d.ts +0 -305
  113. package/types/storage/index.d.ts +0 -324
  114. package/types/third/index.d.ts +0 -11
  115. package/types/user/index.d.ts +0 -52
  116. package/types/user/types.d.ts +0 -20
  117. package/types/utils/auth.d.ts +0 -8
  118. package/types/utils/cloud-api-request.d.ts +0 -21
  119. package/types/utils/cloudbase-request.d.ts +0 -14
  120. package/types/utils/envLazy.d.ts +0 -1
  121. package/types/utils/fs.d.ts +0 -7
  122. package/types/utils/http-request.d.ts +0 -2
  123. package/types/utils/index.d.ts +0 -20
  124. package/types/utils/parallel.d.ts +0 -17
  125. package/types/utils/uuid.d.ts +0 -2
@@ -1,21 +0,0 @@
1
- import { CloudBaseContext } from '../context';
2
- export declare class CloudService {
3
- service: string;
4
- version: string;
5
- url: string;
6
- action: string;
7
- method: 'POST' | 'GET';
8
- secretId: string;
9
- secretKey: string;
10
- token: string;
11
- timeout: number;
12
- data: Record<string, any>;
13
- payload: Record<string, any>;
14
- baseParams: Record<string, any>;
15
- cloudBaseContext: CloudBaseContext;
16
- constructor(context: CloudBaseContext, service: string, version: string, baseParams?: Record<string, any>);
17
- get baseUrl(): any;
18
- request<T extends {}>(action: string, data?: Record<string, any>, method?: 'POST' | 'GET'): Promise<T>;
19
- requestWithSign(): Promise<any>;
20
- getRequestSign(timestamp: number): string;
21
- }
@@ -1,14 +0,0 @@
1
- export declare function cloudBaseRequest(options: {
2
- config: {
3
- envId: string;
4
- secretId: string;
5
- secretKey: string;
6
- token?: string;
7
- timeout?: number;
8
- proxy: string;
9
- region: string;
10
- };
11
- params: Record<string, any>;
12
- method?: string;
13
- headers?: Record<string, any>;
14
- }): Promise<any>;
@@ -1 +0,0 @@
1
- export declare function preLazy(): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
@@ -1,7 +0,0 @@
1
- declare type SizeUnit = 'MB' | 'GB';
2
- export declare function checkFullAccess(dest: string, throwError?: boolean): boolean;
3
- export declare function checkReadable(dest: string, throwError?: boolean): boolean;
4
- export declare function isDirectory(dest: string): boolean;
5
- export declare function formateFileSize(size: number, unit: SizeUnit): string;
6
- export declare function delSync(patterns: string | readonly string[]): void;
7
- export {};
@@ -1,2 +0,0 @@
1
- export declare function fetch(url: string, config: Record<string, any>, proxy: any): Promise<any>;
2
- export declare function fetchStream(url: string, config: Record<string, any>, proxy: any): Promise<import("node-fetch").Response>;
@@ -1,20 +0,0 @@
1
- export { guid6 } from './uuid';
2
- export * from './cloud-api-request';
3
- export * from './auth';
4
- export * from './cloudbase-request';
5
- export * from './http-request';
6
- export * from './envLazy';
7
- export * from './fs';
8
- interface IZipOption {
9
- dirPath: string;
10
- outputPath: string;
11
- ignore?: string | string[];
12
- pattern?: string;
13
- }
14
- export declare function compressToZip(option: IZipOption): Promise<unknown>;
15
- export declare function getRuntime(): string;
16
- export declare function getEnvVar(envName: string): string;
17
- export declare function rsaEncrypt(data: string): string;
18
- export declare function sleep(time: number): Promise<void>;
19
- export declare function upperCaseStringFisrt(str: string): string;
20
- export declare function upperCaseObjKey(object: any): any;
@@ -1,17 +0,0 @@
1
- export declare type AsyncTask = () => Promise<any>;
2
- /**
3
- * 异步任务并发控制器,以一定的并发数执行所有任务
4
- * 不具备队列性质,异步任务随机执行
5
- * 单个任务异常,错误会返回,单不会退出执行
6
- * 所有任务执行
7
- */
8
- export declare class AsyncTaskParallelController {
9
- maxParallel: number;
10
- tasks: AsyncTask[];
11
- checkInterval: number;
12
- totalTasks: number;
13
- constructor(maxParallel: number, checkInterval?: number);
14
- loadTasks(tasks: AsyncTask[]): void;
15
- push(task: AsyncTask): void;
16
- run(): Promise<any[]>;
17
- }
@@ -1,2 +0,0 @@
1
- export declare function guid6(): string;
2
- export declare function uuidv4(): string;