attachment.ts 459 B

123456789101112131415161718
  1. import type { Ref } from './common';
  2. import { HasObjectId } from './has-object-id';
  3. import type { IPage } from './page';
  4. import type { IUser } from './user';
  5. export type IAttachment = {
  6. page?: Ref<IPage>,
  7. creator?: Ref<IUser>,
  8. createdAt: Date,
  9. fileSize: number,
  10. // virtual property
  11. filePathProxied: string,
  12. fileFormat: string,
  13. downloadPathProxied: string,
  14. originalName: string,
  15. };
  16. export type IAttachmentHasId = IAttachment & HasObjectId;