| 1234567891011121314151617181920212223242526272829303132333435363738 |
- export const AttachmentType = {
- BRAND_LOGO: 'BRAND_LOGO',
- WIKI_PAGE: 'WIKI_PAGE',
- PROFILE_IMAGE: 'PROFILE_IMAGE',
- PAGE_BULK_EXPORT: 'PAGE_BULK_EXPORT',
- } as const;
- export type AttachmentType = typeof AttachmentType[keyof typeof AttachmentType];
- export type ExpressHttpHeader<Field = string> = {
- field: Field,
- value: string | string[]
- };
- export type IContentHeaders = {
- contentType?: ExpressHttpHeader<'Content-Type'>;
- contentLength?: ExpressHttpHeader<'Content-Length'>;
- contentSecurityPolicy?: ExpressHttpHeader<'Content-Security-Policy'>;
- contentDisposition?: ExpressHttpHeader<'Content-Disposition'>;
- }
- export type RespondOptions = {
- download?: boolean,
- }
- export const ResponseMode = {
- RELAY: 'relay',
- REDIRECT: 'redirect',
- DELEGATE: 'delegate',
- } as const;
- export type ResponseMode = typeof ResponseMode[keyof typeof ResponseMode];
- export const FilePathOnStoragePrefix = {
- attachment: 'attachment',
- user: 'user',
- pageBulkExport: 'page-bulk-export',
- } as const;
|