@cloudbase/types 2.9.3 → 2.9.5-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/cloudrun.d.ts +9 -0
- package/functions.d.ts +13 -8
- package/package.json +3 -2
package/cloudrun.d.ts
ADDED
package/functions.d.ts
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import { KV } from '.'
|
|
2
2
|
|
|
3
3
|
export interface ICallFunctionOptions {
|
|
4
|
-
name: string
|
|
5
|
-
data?: KV<any
|
|
6
|
-
query?: KV<any
|
|
7
|
-
search?: string
|
|
8
|
-
parse?: boolean
|
|
4
|
+
name: string
|
|
5
|
+
data?: KV<any>
|
|
6
|
+
query?: KV<any>
|
|
7
|
+
search?: string
|
|
8
|
+
parse?: boolean
|
|
9
|
+
// Used for 云函数2.0 CallContainer
|
|
10
|
+
type?: string
|
|
11
|
+
method?: string
|
|
12
|
+
path?: string
|
|
13
|
+
header?: KV<any>
|
|
9
14
|
}
|
|
10
15
|
|
|
11
16
|
export interface ICallFunctionResponse {
|
|
12
|
-
requestId: string
|
|
13
|
-
result: any
|
|
17
|
+
requestId: string
|
|
18
|
+
result: any
|
|
14
19
|
}
|
|
15
20
|
|
|
16
|
-
export type ICallFunction = (options: ICallFunctionOptions, callback?: Function) => Promise<ICallFunctionResponse
|
|
21
|
+
export type ICallFunction = (options: ICallFunctionOptions, callback?: Function) => Promise<ICallFunctionResponse>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/types",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.5-alpha.0",
|
|
4
4
|
"description": "cloudbase javascript sdk types",
|
|
5
5
|
"files": [
|
|
6
6
|
"index.js",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"auth.d.ts",
|
|
12
12
|
"component.d.ts",
|
|
13
13
|
"functions.d.ts",
|
|
14
|
+
"cloudrun.d.ts",
|
|
14
15
|
"storage.d.ts",
|
|
15
16
|
"realtime.d.ts",
|
|
16
17
|
"database.d.ts"
|
|
@@ -42,5 +43,5 @@
|
|
|
42
43
|
"lint": "eslint --fix \"./**/*.ts\"",
|
|
43
44
|
"precommit": "npm run lint"
|
|
44
45
|
},
|
|
45
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "78bd900955b6d9030860fe50251463928d356bd4"
|
|
46
47
|
}
|