@alicloud/mpserverless-sdk
Advanced tools
Comparing version 3.1.2 to 3.1.3
@@ -22,4 +22,5 @@ import { TransportProtocol, PREFIX } from '../constant'; | ||
get timeoutOption(): number; | ||
get spaceIdOption(): string; | ||
setSpaceId(spaceId: string): void; | ||
request(encoder: HTTPRequestEncoder): Promise<HTTPResponseObject>; | ||
} |
@@ -11,3 +11,3 @@ import { BaseService, GenericObject, HTTPTransport } from './../core'; | ||
export interface OSSUploadHeaders { | ||
'Expires'?: string; | ||
Expires?: string; | ||
'Cache-Control'?: string; | ||
@@ -27,2 +27,3 @@ 'Content-Type'?: string; | ||
cdnDomain: string; | ||
ossCallbackUrl?: string; | ||
} | ||
@@ -58,2 +59,3 @@ export declare function OSSUploadResponseFormat(data: GenericObject<string>): OSSUploadResponseDataJSONObject; | ||
uploadFile(options: FileUploadOptions): Promise<any>; | ||
info(fileIds: string | string[], options?: object): Promise<any>; | ||
getOSSUploadOptionsFromPath(relativePath: string, targetPath: string, fileSize?: number): Promise<any>; | ||
@@ -60,0 +62,0 @@ reportOSSUpload(id: string, contentType?: string): Promise<void>; |
@@ -1,3 +0,5 @@ | ||
import { Validator as FileValidator } from './../../core'; | ||
export { FileValidator }; | ||
import { Validator, GenericObject } from './../../core'; | ||
export declare class FileValidator extends Validator { | ||
constructor(options?: GenericObject<any>); | ||
} | ||
export * from './schema'; |
@@ -60,1 +60,17 @@ export declare const uploadFileSchema: { | ||
}; | ||
export declare const fileInfoSchema: { | ||
fileIds: { | ||
type: string; | ||
required: boolean; | ||
}; | ||
options: { | ||
type: string; | ||
required: boolean; | ||
rule: { | ||
maxAge: { | ||
type: string; | ||
require: boolean; | ||
}; | ||
}; | ||
}; | ||
}; |
{ | ||
"name": "@alicloud/mpserverless-sdk", | ||
"author": "junmo <qwe_lingkun@163.com>", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "Custom FrameWork JavaScript SDK for Alicloud MPServerless", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
242978
47
1078