UNPKG

integreat

Version:
30 lines (29 loc) 1.07 kB
import type { Action, Response, ActionHandlerResources } from '../types.js'; export declare function getTypeAndId(action: Action, data: unknown): { type: string | string[] | undefined; id: string | string[] | undefined; }; export declare const setIdAndTypeOnAction: (action: Action, id?: string | string[], type?: string | string[]) => { payload: { id: string | string[] | undefined; type: string | string[] | undefined; data?: unknown; sourceService?: string; targetService?: string; service?: string; endpoint?: string; uri?: string; method?: string; headers?: import("../types.js").Headers; page?: number; pageOffset?: number; pageSize?: number; pageAfter?: string; pageBefore?: string; pageId?: string; }; type: string; response?: Response<unknown> | undefined; meta?: import("../types.js").Meta; }; export default function set(action: Action, { getService, dispatch }: ActionHandlerResources): Promise<Response>;