@medusajs/types
Version:
Medusa Types definition
40 lines • 908 B
TypeScript
import { FileAccessPermission } from "./common";
/**
* The File to be created.
*/
export interface CreateFileDTO {
/**
* The name of the uploaded file
*/
filename: string;
/**
* The mimetype of the uploaded file
*
* @example
* image/png
*/
mimeType: string;
/**
* The file content as a binary-encoded string.
*/
content: string;
/**
* The access level of the file. Defaults to private if not passed
*/
access?: FileAccessPermission;
}
export interface GetUploadFileUrlDTO {
/**
* The name of the file to be uploaded
*/
filename: string;
/**
* The mimetype of the file to be uploaded
*/
mimeType?: string;
/**
* The access level of the file to be uploaded. Defaults to private if not passed
*/
access?: FileAccessPermission;
}
//# sourceMappingURL=mutations.d.ts.map