UNPKG

@mikezimm/fps-core-v7

Version:

Library of reusable core interfaces, types and constants migrated from fps-library-v2

26 lines 1.78 kB
import { IFpsSpHttpServiceMIN } from '../../../components/molecules/SpHttp/Sp/IFpsSpHttpServiceMIN'; /** * 2025-01-03: Migrated from fps-library-v2/lib/pnpjs/Permissions, pnp2/lib/services/sp/perms * combination of v2: savePermissionHistoryD, savePermissionAnalyticsD fetchAnalyticsDD * * import { savePermissionHistory } from "@mikezimm/fps-core-v7/lib/restAPIs/logging/Permissions/savePermissionHistory"; * * * This function is for automatically saving permissions from a web, list or library to list for later comparison. * In Easy Contents, it's fired upon viewing rail function to view list permissions. * It's also intended to be used in Pivot Tiles when clicking to view list and web permissions. * * It does require the list and web with the correct struture to save and then be recoverd in this webpart for comparison. * * So it's only going to execute in certain tenanats. * If you see this and want to re-purpose it, update the function to suit your needs and adjust the window.location.origin check * * Best practice is just to update your site and list Url in strings: * Or just create the site: SharePointAssist * And create the list: Assists * And add the columns listed below in the save item "analyticsListPermissionsHistory": "PermissionsHistory", * */ export declare function savePermissionHistory(fpsSpService: IFpsSpHttpServiceMIN, analyticsWeb: string, analyticsList: string, SiteLink: any, webTitle: string, saveTitle: string, TargetSite: any, TargetList: any, itemInfo1: string, itemInfo2: string, result: string, RichTextJSON1: any, Setting: string, RichTextJSON2: any, RichTextJSON3: any, userName: string, BaseTrace: string): Promise<string>; //# sourceMappingURL=savePermissionHistory.d.ts.map