attachment.ts 606 B

12345678910111213141516171819202122232425
  1. import type { IAttachmentHasId } from '@growi/core/dist/interfaces';
  2. import type { PaginateResult } from './mongoose-utils';
  3. export const AttachmentMethodType = {
  4. aws: 'aws',
  5. gcs: 'gcs',
  6. gcp: 'gcp',
  7. azure: 'azure',
  8. gridfs: 'gridfs',
  9. mongo: 'mongo',
  10. mongodb: 'mongodb',
  11. local: 'local',
  12. none: 'none',
  13. } as const;
  14. export type AttachmentMethodType = typeof AttachmentMethodType[keyof typeof AttachmentMethodType]
  15. export type IResAttachmentList = {
  16. paginateResult: PaginateResult<IAttachmentHasId>
  17. };
  18. export type ICheckLimitResult = {
  19. isUploadable: boolean,
  20. errorMessage?: string,
  21. }