UNPKG

@mikezimm/npmfunctions

Version:
66 lines (62 loc) 3.25 kB
/*** * db d888888b .d8888. d888888b .d8888. * 88 `88' 88' YP `~~88~~' 88' YP * 88 88 `8bo. 88 `8bo. * 88 88 `Y8b. 88 `Y8b. * 88booo. .88. db 8D 88 db 8D * Y88888P Y888888P `8888Y' YP `8888Y' * * import { SystemLists, TempSysLists, TempContLists, entityMaps, EntityMapsNames } from '@mikezimm/npmfunctions/dist/Lists/Constants'; import { IPickedWebBasic, IPickedList, IPickedView, IZBasicItemInfo, } from '@mikezimm/npmfunctions/dist/Lists/IListInterfaces'; */ /** * Copied from Easy Constants for grouping "System Lists". * Re-using in Pivot Tiles as well because it also has a setting to hide/show system lists. * Technically SystemLists could be under List Types but that is more focused on interfaces and functions * where as this is just a list of List Titles for easy use of filtering. * */ /*** * db d8b db .d8b. d8888b. d8b db d888888b d8b db d888b db db db * 88 I8I 88 d8' `8b 88 `8D 888o 88 `88' 888o 88 88' Y8b 88 88 88 * 88 I8I 88 88ooo88 88oobY' 88V8o 88 88 88V8o 88 88 YP YP YP * Y8 I8I 88 88~~~88 88`8b 88 V8o88 88 88 V8o88 88 ooo * `8b d8'8b d8' 88 88 88 `88. 88 V888 .88. 88 V888 88. ~8~ db db db * `8b8' `8d8' YP YP 88 YD VP V8P Y888888P VP V8P Y888P YP YP YP * * * WARNING ON Using SystemLists array: * If you are using this entire array to build rest filter query, it will cause a 404 error because the length of the query string becomes to long. * From trial and error, I found that 1500 charaters in the string for a short site URL did not throw an error. But due to unkowns, be cautious and maybe * only include 1350 or less characters in the rest filter and manually filter out the rest. * AS OF 2021-03-01 version (v0.0.0.25, 1500 characters means do not include anything starting with OData and beyond.) */ export declare const SystemLists: string[]; /** * This is originally used in Easy Contents to get list of lists that were part of Template sites. * They are grouped in the webpart with similar lists to keep them separate from what a user might create. */ export declare const TempSysLists: string[]; /** * This is originally used in Easy Contents to get list of lists that were part of Template sites but are considered user content. * They are grouped in the webpart with similar lists to keep them separate from what a user might create. */ export declare const TempContLists: string[]; /** * This is originally used in Easy Contents to get list of lists that were part of System List * But also have a mapping to the URL since they didn't always match. especially ones that were buried as pages like ReusableContent. */ export declare const entityMaps: { name: string; url: string; }[]; export declare const EntityMapsNames: string[]; /** * Originally created for https://github.com/mikezimm/pivottiles7/issues/66 */ export declare const SystemPages: string[]; export declare const SystemPagesLowerCase: string[]; export declare function isPageSystemPage(url: string): boolean;