mirror of
https://github.com/outline/outline.git
synced 2026-11-20 21:23:06 +03:00
* chore: Move shared/types.ts to shared/types/index.ts * chore: Split shared/types into domain files shared/types/index.ts re-exports every file, so imports from @shared/types do not change. No definitions are changed. * docs: Add JSDoc to all exports in shared/types
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
import type { AuthenticationType } from "./auth";
|
|
|
|
/** Upload presets that set the ACL, size limit, and expiry of an attachment. */
|
|
export enum AttachmentPreset {
|
|
DocumentAttachment = "documentAttachment",
|
|
WorkspaceImport = "workspaceImport",
|
|
Import = "import",
|
|
Avatar = "avatar",
|
|
Emoji = "emoji",
|
|
}
|
|
|
|
/** Metadata about the origin of a document, collection, or revision. */
|
|
export type SourceMetadata = {
|
|
/** The original source file name. */
|
|
fileName?: string;
|
|
/** The original source mime type. */
|
|
mimeType?: string;
|
|
/** The creator of the original external source. */
|
|
createdByName?: string;
|
|
/** An ID in the external source. */
|
|
externalId?: string;
|
|
/** Original name in the external source. */
|
|
externalName?: string;
|
|
/** Whether the item was created through a trial license. */
|
|
trial?: boolean;
|
|
/** The ID of the original document when this document was duplicated. */
|
|
originalDocumentId?: string;
|
|
/** The ID of the original collection when this collection was duplicated. */
|
|
originalCollectionId?: string;
|
|
/** The type of authentication used to make the change. */
|
|
authType?: AuthenticationType;
|
|
};
|