@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
29 lines • 1.01 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";
export type IJSFecthAcceptOption = 'application/json;odata=verbose' | 'application/json;odata=nometadata';
export interface ISpJsBatchObject {
api: string;
method: 'GET' | 'POST';
version?: 'HTTP/1.1';
accept?: IJSFecthAcceptOption;
ctype?: string;
body?: any;
}
export declare function doSpJsBatchFetchOrPost(batchFetchAPIs: ISpJsBatchObject[], digestValue: string): Promise<IJSFetchReturn[]>;
/**
* The parsedResults will look like this:
*/
/**
* This was generated by ChatGPT and untested as of 2024-11-23.
* https://chatgpt.com/c/67422364-5518-8003-8874-3d520855d96c
* @param response
* @returns
*/
export interface IParsedBatchResults {
headers: any;
body: any;
}
//# sourceMappingURL=doSpJsBatchFetch.d.ts.map