UNPKG

@alfresco/adf-content-services

Version:
322 lines (321 loc) 8.77 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 { SearchCategory } from '../search'; export declare const expandableCategories: { id: string; name: string; expanded: boolean; enabled: boolean; component: { selector: string; settings: any; }; }[]; export declare const disabledCategories: { id: string; name: string; expanded: boolean; enabled: boolean; component: { selector: string; settings: { field: any; pageSize: number; options: { name: string; value: string; }[]; }; }; }[]; export declare const expandedCategories: { id: string; name: string; expanded: boolean; enabled: boolean; component: { selector: string; settings: { field: any; pageSize: number; options: { name: string; value: string; }[]; }; }; }[]; export declare const simpleCategories: SearchCategory[]; export declare const searchFilter: { 'app:fields': string[]; include: string[]; sorting: { options: { key: string; label: string; type: string; field: string; ascending: boolean; }[]; defaults: { key: string; type: string; field: string; ascending: boolean; }[]; }; resetButton: boolean; filterQueries: { query: string; }[]; facetFields: { expanded: boolean; fields: { field: string; mincount: number; label: string; }[]; }; facetQueries: { label: string; pageSize: number; expanded: boolean; mincount: number; queries: ({ query: string; label: string; group?: undefined; } | { query: string; label: string; group: string; })[]; }; facetIntervals: { expanded: boolean; intervals: { label: string; field: string; sets: ({ label: string; start: string; end: string; endInclusive: boolean; } | { label: string; start: string; end: string; endInclusive?: undefined; })[]; }[]; }; categories: ({ id: string; name: string; enabled: boolean; expanded: boolean; component: { selector: string; settings: { pattern: string; field: string; placeholder: string; pageSize?: undefined; operator?: undefined; options?: undefined; min?: undefined; max?: undefined; step?: undefined; thumbLabel?: undefined; format?: undefined; dateFormat?: undefined; displayedLabelsByField?: undefined; }; }; } | { id: string; name: string; enabled: boolean; component: { selector: string; settings: { pageSize: number; operator: string; options: any[]; pattern?: undefined; field?: undefined; placeholder?: undefined; min?: undefined; max?: undefined; step?: undefined; thumbLabel?: undefined; format?: undefined; dateFormat?: undefined; displayedLabelsByField?: undefined; }; }; expanded?: undefined; } | { id: string; name: string; enabled: boolean; component: { selector: string; settings: { field: string; min: number; max: number; step: number; thumbLabel: boolean; pattern?: undefined; placeholder?: undefined; pageSize?: undefined; operator?: undefined; options?: undefined; format?: undefined; dateFormat?: undefined; displayedLabelsByField?: undefined; }; }; expanded?: undefined; } | { id: string; name: string; enabled: boolean; component: { selector: string; settings: { field: string; format: string; pattern?: undefined; placeholder?: undefined; pageSize?: undefined; operator?: undefined; options?: undefined; min?: undefined; max?: undefined; step?: undefined; thumbLabel?: undefined; dateFormat?: undefined; displayedLabelsByField?: undefined; }; }; expanded?: undefined; } | { id: string; name: string; enabled: boolean; component: { selector: string; settings: { field: string; dateFormat: string; displayedLabelsByField: { 'cm:created': string; }; pattern?: undefined; placeholder?: undefined; pageSize?: undefined; operator?: undefined; options?: undefined; min?: undefined; max?: undefined; step?: undefined; thumbLabel?: undefined; format?: undefined; }; }; expanded?: undefined; } | { id: string; name: string; enabled: boolean; component: { selector: string; settings: { field: any; pageSize: number; options: any[]; pattern?: undefined; placeholder?: undefined; operator?: undefined; min?: undefined; max?: undefined; step?: undefined; thumbLabel?: undefined; format?: undefined; dateFormat?: undefined; displayedLabelsByField?: undefined; }; }; expanded?: undefined; })[]; }; export declare const mockSearchResult: { list: { pagination: { count: number; hasMoreItems: boolean; totalItems: number; skipCount: number; maxItems: number; }; context: { consistency: { lastTxId: number; }; facets: { type: string; label: string; buckets: { label: string; filterQuery: string; metrics: { type: string; value: { count: number; }; }[]; }[]; }[]; }; }; }; export declare const stepOne: string[]; export declare const stepTwo: string[]; export declare const stepThree: string[]; export declare const sizeOptions: ({ name: string; value: string; group?: undefined; } | { name: string; group: string; value?: undefined; })[]; export declare const filteredResult: string[]; export declare const mockContentSizeResponseBucket: { label: string; filterQuery: string; metrics: { type: string; value: { count: number; }; }[]; }; export declare const getMockSearchResultWithResponseBucket: () => any;