UNPKG

@mikezimm/fps-core-v7

Version:

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

46 lines (45 loc) 2.05 kB
/** * CodeAnalizerComment: Updated 3 imports on 2024-09-22 14:49:52 * Update:: import { IFPSItemUpdateResultObj } to '@mikezimm/fps-core-v7/lib/types/fps-returns/sites/update/IFPSItemUpdateResultObj;' * Update:: import { CommandUpdateFailedMessage } to '@mikezimm/fps-core-v7/lib/components/webparts/Drilldown/QuickCommands/IQuickCommands;' * Update:: import { IFpsErrorObject } to '@mikezimm/fps-core-v7/lib/types/fps-returns/common/IFpsErrorObject;' */ import { IFpsSpHttpServiceMIN } from '../../../components/molecules/SpHttp/Sp/IFpsSpHttpServiceMIN'; import { IFpsErrorObject } from '../../../types/fps-returns/common/IFpsErrorObject'; import { IMinUpdateProps } from '../../../types/fps-returns/sites/update/IMinUpdateProps'; import { IJsxElement } from '../../../types/react/IFPSJSX_Element'; /** * updateCommandItems calls the Pnp function to get the results which returns the raw error. * This function then will convert the error into the helpful error and return the standard IItemsError object. * * @param sourceProps * @param alertMe * @param consoleLog * @returns */ export interface IUpdateCommandItemProps extends IMinUpdateProps { alertMe: string; consoleLog: string; fpsSpService: IFpsSpHttpServiceMIN; } export interface IUpdateCommandItemReturn extends IFpsErrorObject { response: any; statusElement?: IJsxElement; webUrl: string; listTitle: string; Id: number; originalItem?: any; updateObject?: any; idx?: number; copyFileLeafRef?: string; } /** * 2024-12-09: Migrated from fps-library-v2... * Currently untested, but use this fetch: * import { IUpdateCommandItemProps, IUpdateCommandItemReturn, updateCommandItemAPI, } from '@mikezimm/fps-core-v7/lib/restAPIS/lists/items/updateCommandItemAPI'; * * @param commandItemProps * @returns */ export declare function updateCommandItemAPI(commandItemProps: IUpdateCommandItemProps): Promise<IUpdateCommandItemReturn>; //# sourceMappingURL=updateCommandItemAPI.d.ts.map