UNPKG

fsm-sdk

Version:

Node.JS sdk to interface with SAP Field Service Management APIs.

28 lines (27 loc) 727 B
import { DTOModels } from '../dto-name.model'; declare type Maybe<T> = T | undefined; export interface BatchResponseJson<T> { body: { data: { [dtoName: string]: T; }[]; }; statusCode: Maybe<number>; contentType: Maybe<string>; requestOptions: { url: Maybe<string>; contentId: Maybe<string>; }; } export declare class BatchResponse<T> { private body; private parseResponseContentType; private parseRequestURL; private parseResponseStatusCode; private parseResponseBody; private parseRequestContentId; private parseChildResponse; constructor(body: string); toJson<T extends DTOModels>(): BatchResponseJson<T>[]; } export {};