@cloudbase/types
Advanced tools
+8
-5
@@ -6,2 +6,3 @@ import { CloudbaseAdapter, SDKAdapterInterface } from '@cloudbase/adapter-interface' | ||
| import { ICloudbaseAuth } from './auth' | ||
| import { cloudbase } from '../cloudbase/index' | ||
@@ -53,5 +54,6 @@ export enum LANGS { | ||
| declare type MethodType = 'request' | 'post' | 'get' | 'head' | 'patch' | 'delete' | 'put' | ||
| export interface ICloudbaseApis { | ||
| [apiName: string]: (apiName: string) => { | ||
| [method: string]: (callApiOptions: ICallApiOptions, opts: KV<any>) => Promise<ResponseObject['data']> | ||
| [apiName: string]: { | ||
| [method in MethodType]: (callApiOptions: ICallApiOptions, opts?: KV<any>) => Promise<ResponseObject['data']> | ||
| } | ||
@@ -70,3 +72,3 @@ } | ||
| apis: ICloudbaseApis | ||
| init: (config: ICloudbaseConfig & { lang?: LANGS }) => ICloudbase | ||
| init: (config: ICloudbaseConfig & { lang?: LANGS }) => cloudbase.app | ||
| updateConfig: (config: ICloudbaseUpgradedConfig) => void | ||
@@ -84,3 +86,4 @@ registerExtension: (ext: ICloudbaseExtension) => void | ||
| PROTOCOL: string; | ||
| } | ||
| }, | ||
| auth?: (options?: { persistence: cloudbase.auth.Persistence }) => cloudbase.auth.App | ||
| } | ||
@@ -100,3 +103,3 @@ export interface ICloudbasePlatformInfo { | ||
| /** api标识 */ | ||
| name: string | ||
| name?: string | ||
| /** 请求的path */ | ||
@@ -103,0 +106,0 @@ path?: string |
+2
-2
| { | ||
| "name": "@cloudbase/types", | ||
| "version": "2.22.1", | ||
| "version": "2.22.2", | ||
| "description": "cloudbase javascript sdk types", | ||
@@ -46,3 +46,3 @@ "files": [ | ||
| }, | ||
| "gitHead": "46ebb16422f02fb8cef279ad16d590ad6115abe1" | ||
| "gitHead": "7e8ca8a2f3834924a14320c383e671cada829d19" | ||
| } |
+3
-1
@@ -118,3 +118,5 @@ import { KVstring } from '.' | ||
| cosFileId: string; | ||
| download_url: string | ||
| download_url: string; | ||
| code?: string; | ||
| message?: string; | ||
| } | ||
@@ -121,0 +123,0 @@ |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
35310
0.72%713
0.71%