@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
24 lines • 1.07 kB
TypeScript
/**
* 2024-09-15: Migrated to SAME FOLDER in fps-library-v2\src\components\molecules\SpHttp...
* export { IJSFetchReturn, createEmptyFetchReturn, doSpJsFetch }
*/
import { IJSFetchReturn } from "../interfaces/IJSFetchReturn";
/**
* 2024-12-10: This does NOT have 429 retry yet.
* See doSpJsFetch for an example of how to handle that
*
* @param fetchAPI
* @param digestValue - REQUIRES digestValue
* @param headerContentType
* @param blob
* @returns
*/
export declare function doSpJsFileFetch(fetchAPI: string, digestValue: string, headerContentType: string, blob: Blob): Promise<IJSFetchReturn>;
/**
* Pass in any SharePoint rest api url and it should return a result or a standard error return object
* @param fetchAPI
* @param digestValue - REQUIRES digestValue for POST operations
* @returns
*/
export declare function doSpJsFileFetchOrPost(fetchAPI: string, method: "GET" | "POST" | undefined, digestValue: string, headerContentType: string, blob: Blob): Promise<IJSFetchReturn>;
//# sourceMappingURL=doSpJsFileFetch.d.ts.map