attachment.ts 613 B

1234567891011121314151617181920212223242526
  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 =
  15. (typeof AttachmentMethodType)[keyof typeof AttachmentMethodType];
  16. export type IResAttachmentList = {
  17. paginateResult: PaginateResult<IAttachmentHasId>;
  18. };
  19. export type ICheckLimitResult = {
  20. isUploadable: boolean;
  21. errorMessage?: string;
  22. };