UNPKG

@alfresco/adf-content-services

Version:
172 lines (171 loc) 5.16 kB
/*! * @license * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { Node, NodePaging, NodeEntry } from '@alfresco/js-api'; export declare const fakeNodeWithCreatePermission: Node; export declare const fakeNodeWithNoPermission: Node; export declare const fakeNodeAnswerWithEntries: { list: { pagination: { count: number; hasMoreItems: boolean; totalItems: number; skipCount: number; maxItems: number; }; entries: { entry: { isFile: boolean; createdByUser: { id: string; displayName: string; }; modifiedAt: string; nodeType: string; content: { mimeType: string; mimeTypeName: string; sizeInBytes: number; encoding: string; }; parentId: string; createdAt: string; path: { name: string; isComplete: boolean; elements: { id: string; name: string; }[]; }; isFolder: boolean; modifiedByUser: { id: string; displayName: string; }; name: string; id: string; properties: { 'cm:versionLabel': string; 'cm:versionType': string; }; allowableOperations: string[]; }; }[]; }; }; export declare const fakeNodeAnswerWithNOEntries: { list: { pagination: { count: number; hasMoreItems: boolean; totalItems: number; skipCount: number; maxItems: number; }; entries: any[]; }; }; export declare const fakeGetSitesAnswer: { list: { pagination: { count: number; hasMoreItems: boolean; totalItems: number; skipCount: number; maxItems: number; }; entries: ({ entry: { role: string; visibility: string; guid: string; id: string; preset: string; title: string; description?: undefined; }; } | { entry: { role: string; visibility: string; guid: string; description: string; id: string; preset: string; title: string; }; } | { entry: { visibility: string; guid: string; id: string; preset: string; title: string; role?: undefined; description?: undefined; }; })[]; }; }; export declare const fakeGetSiteMembership: { list: { pagination: { count: number; hasMoreItems: boolean; totalItems: number; skipCount: number; maxItems: number; }; entries: ({ entry: { site: { role: string; visibility: string; guid: string; id: string; preset: string; title: string; description?: undefined; }; role: string; guid: string; id: string; }; } | { entry: { site: { role: string; visibility: string; guid: string; description: string; id: string; preset: string; title: string; }; role: string; guid: string; id: string; }; })[]; }; }; export declare const fakeNodePaging: NodePaging; export declare const mockNode1: Node; export declare const mockNode2: Node; export declare const mockNode3: Node; export declare const mockPreselectedNodes: NodeEntry[]; export declare const mockNodePagingWithPreselectedNodes: NodePaging;