import { NodeEntry, Node, NodeBodyCreate, NodeBodyUpdate, PersonEntry, SiteEntry, FavoriteEntry, VersionEntry, SharedLinkEntry } from '@alfresco/js-api'; import { RouteLocationRaw } from 'vue-router'; type NodeEntry = NodeEntry; type AlfrescoNode = Node; type NodeBodyCreate = NodeBodyCreate; type NodeBodyUpdate = NodeBodyUpdate; type PersonEntry = PersonEntry; type SiteEntry = SiteEntry; type FavoriteEntry = FavoriteEntry; type VersionEntry = VersionEntry; type SharedLinkEntry = SharedLinkEntry; /** * File content metadata attached to a node. */ type ContentInfo = { /** * - e.g. "application/pdf", "image/png" */ mimeType: string; sizeInBytes: number; encoding?: string; }; /** * A single element in a node's path hierarchy. */ type PathElement = { id: string; name: string; nodeType: string; }; /** * Hierarchical path information for a node. */ type PathInfo = { /** * - Full slash-separated path */ name: string; elements: PathElement[]; }; /** * Lightweight user reference (createdByUser, modifiedByUser, lockOwner…). */ type UserInfo = { /** * - Username */ id: string; displayName: string; }; /** * Full person record returned by the People API. */ type Person = { /** * - Username */ id: string; displayName: string; firstName: string; lastName: string; email: string; properties?: any; aspectNames?: string[]; capabilities?: any; }; /** * Person search/select result used in member pickers. */ type PersonSearchResult = { id: string; firstname: string; lastname: string; email: string; /** * - Formatted as "FirstName LastName (username - email)" */ label: string; group: false; }; /** * Group search/select result used in member pickers. */ type GroupSearchResult = { id: string; label: string; group: true; }; /** * Alfresco node enriched with Pristy-specific fields. */ type Node = { id: string; name: string; /** * - e.g. "cm:folder", "cm:content", "st:site" */ nodeType: string; isFile: boolean; isFolder: boolean; isLocked?: boolean; content?: ContentInfo; /** * - Namespaced properties (cm:, st:, pm:, pk:) */ properties?: any; aspectNames?: string[]; isFavorite?: boolean; path?: PathInfo; /** * - e.g. ["create","update","delete"] */ allowableOperations?: string[]; permissions?: any; /** * - ISO 8601 */ createdAt?: string; /** * - ISO 8601 */ modifiedAt?: string; createdByUser?: UserInfo; modifiedByUser?: UserInfo; }; /** * A node version entry from the version history. */ type Version = { /** * - e.g. "1.0", "1.1" */ versionLabel: string; name: string; nodeType: string; isFile: boolean; /** * - ISO 8601 */ createdAt: string; createdByUser: UserInfo; properties?: any; aspectNames?: string[]; }; /** * A rendition (transformed version) of a node. */ type Rendition = { /** * - e.g. "pdf", "doclib", "imgpreview" */ id: string; status: "CREATED" | "NOT_CREATED" | "IN_PROGRESS"; url?: string; }; /** * A public shared link for a node. */ type SharedLink = { id: string; nodeId: string; /** * - ISO 8601 or null */ expiresAt?: string | null; }; /** * An Alfresco site (workspace). */ type Site = { id: string; guid: string; title: string; description?: string; visibility: "PUBLIC" | "MODERATED" | "PRIVATE"; /** * - Current user's role */ role?: string; properties?: any; }; /** * A site membership entry. */ type SiteMembership = { /** * - User or group ID */ id: string; role: "SiteManager" | "SiteCollaborator" | "SiteConsumer" | "SiteContributor"; person?: Person; }; /** * A user favorite entry. */ type Favorite = { id: string; targetGuid: string; target: { site?: { guid: string; title: string; id: string; }; folder?: { guid: string; id: string; name: string; }; file?: { guid: string; id: string; name: string; }; }; }; /** * Pagination metadata returned by list endpoints. */ type PaginationInfo = { /** * - Items in current page */ count: number; hasMoreItems: boolean; totalItems: number; skipCount: number; maxItems: number; }; /** * Standard list wrapper returned by Alfresco REST endpoints. */ type PaginatedList = { entries: { entry: T; }[]; pagination: PaginationInfo; }; /** * Result of fetching children for a folder or workspace. */ type ChildrenResult = { children: Node[]; pagination: PaginationInfo; /** * - Present when navigating a site root */ documentLibrary?: Node; }; /** * A search facet query definition (from config). */ type FacetQuery = { /** * - i18n key */ label: string; /** * - Alfresco AFTS query */ query: string; /** * - Grouping key */ group: string; }; /** * A search facet field definition (from config). */ type FacetField = { field: string; mincount: number; /** * - i18n key */ label: string; }; /** * A criterion in a saved user view. */ type ViewCriterion = { field: string; operator: string; value: any; }; /** * A location in a saved user view. */ type ViewLocation = { /** * - Node ID */ id: string; name: string; path?: string; }; /** * A saved search/view definition. */ type SavedView = { name: string; criteria: ViewCriterion[]; locations: ViewLocation[]; favorite?: boolean; }; /** * A menu item definition used by ActionMenu. */ type ActionMenuItem = { label?: string; /** * - Remixicon class (ri-*) */ icon?: string; route?: RouteLocationRaw; /** * - External URL */ url?: string; visible?: boolean; /** * - Renders a divider instead of an item */ separator?: boolean; /** * - Nested sub-items */ items?: ActionMenuItem[]; }; /** * An Alfresco property definition from the model API. */ type PropertyDefinition = { /** * - e.g. "cm:title" */ key: string; title: string; /** * - e.g. "d:text", "d:date", "d:int" */ dataType: string; mandatory: boolean; }; /** * An Alfresco type definition from the model API. */ type TypeDefinition = { id: string; title: string; description?: string; properties?: { [x: string]: PropertyDefinition; }; }; /** * An Alfresco aspect definition from the model API. */ type AspectDefinition = { id: string; title: string; description?: string; properties?: { [x: string]: PropertyDefinition; }; }; //# sourceMappingURL=typedef.d.ts.map