attachment.ts 544 B

1234567891011121314151617181920212223
  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. fileName: string,
  9. fileFormat: string,
  10. fileSize: number,
  11. originalName: string,
  12. temporaryUrlCached?: string,
  13. temporaryUrlExpiredAt?: Date,
  14. createdAt: Date,
  15. // virtual property
  16. filePathProxied: string,
  17. downloadPathProxied: string,
  18. };
  19. export type IAttachmentHasId = IAttachment & HasObjectId;