@cloudbase/types 2.0.0-alpha.2 → 2.0.1-alpha.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/index.d.ts CHANGED
@@ -10,6 +10,10 @@ export interface KV<T> {
10
10
  [key: string]: T;
11
11
  }
12
12
 
13
+ export interface KVstring {
14
+ [key: string]: string;
15
+ }
16
+
13
17
  export interface ICloudbaseAppSecret {
14
18
  appAccessKeyId: string;
15
19
  appAccessKey: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/types",
3
- "version": "2.0.0-alpha.2",
3
+ "version": "2.0.1-alpha.0",
4
4
  "description": "cloudbase javascript sdk types",
5
5
  "files": [
6
6
  "index.js",
@@ -45,5 +45,5 @@
45
45
  "eslint-config-alloy": "^3.8.0",
46
46
  "typescript": "^4.0.2"
47
47
  },
48
- "gitHead": "c462902b6702463670d27acb88ebccf93dbd51cd"
48
+ "gitHead": "a1ff9c147bb221fc003d46533e6134ddb76df0ca"
49
49
  }
package/storage.d.ts CHANGED
@@ -1,6 +1,17 @@
1
+ import { KVstring } from ".";
2
+
1
3
  export interface ICloudbaseUploadFileParams {
2
4
  cloudPath: string;
3
5
  filePath: string;
6
+ method?: 'post' | 'put';
7
+ headers?: KVstring[];
8
+ onUploadProgress?: Function;
9
+ }
10
+
11
+ export interface ICloudbaseUploadFileByPutParams {
12
+ cloudPath: string;
13
+ filePath: string;
14
+ headers?: KVstring[];
4
15
  onUploadProgress?: Function;
5
16
  }
6
17