relata-react-aws-s3
Version:
Open Source Module to Upload your Media and files into AWS S3 Bucket directly from Front-end React.
33 lines (32 loc) • 877 B
TypeScript
export declare type DateISOString = string;
export declare type XAmzDate = string;
export declare type DateYMD = string;
export interface IConfig {
bucketName: string;
dirName?: string;
region: string;
accessKeyId: string;
secretAccessKey: string;
s3Url?: string;
}
declare type GenericType = {
[key: string]: string;
};
declare type Conditions = [GenericType, GenericType, string[], string[], string[], GenericType, GenericType, GenericType, GenericType, GenericType];
export declare type Policy = {
conditions: Conditions;
expiration: DateISOString;
};
export declare type UploadResponse = {
bucket: string;
key: string;
location: string;
status: number;
};
export declare type DeleteResponse = {
ok: boolean;
status: number;
message: string;
fileName: string;
};
export {};