liferay-headless-rest-client
Version:
A collection of Headless Clients used in Liferay Portal
20 lines (19 loc) • 1.08 kB
TypeScript
import type { Options as ClientOptions, TDataShape, Client } from '@hey-api/client-fetch';
import type { PostPunchOutSessionRequestData, PostPunchOutSessionRequestResponses } from './types.gen';
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
/**
* You can provide a client instance returned by `createClient()` instead of
* individual options. This might be also useful if you want to implement a
* custom client.
*/
client?: Client;
/**
* You can pass arbitrary values through the `meta` object. This can be
* used to access values that aren't defined as part of the SDK function.
*/
meta?: Record<string, unknown>;
};
/**
* Create a punch out session.
*/
export declare const postPunchOutSessionRequest: <ThrowOnError extends boolean = false>(options?: Options<PostPunchOutSessionRequestData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<PostPunchOutSessionRequestResponses, unknown, ThrowOnError, "fields">;