import type { GetAppActionCallDetailsParams, GetAppActionCallParams } from '../../common-types'; import type { AppActionCallProps, AppActionCallResponse, CreateAppActionCallProps } from '../../entities/app-action-call'; import type { OptionalDefaults } from '../wrappers/wrap'; export type AppActionCallPlainClientAPI = { /** * Calls (triggers) an App Action * @param params entity IDs to identify the App Action to call * @param payload the payload to be sent to the App Action * @returns basic metadata about the App Action Call * @throws if the request fails, or the App Action is not found * @example * ```javascript * await client.appActionCall.create( * { * spaceId: "", * environmentId: "", * appDefinitionId: "", * appActionId: "", * }, * { * parameters: { // ... }, * } * ); * ``` */ create(params: OptionalDefaults, payload: CreateAppActionCallProps): Promise; /** * Fetches the details of an App Action Call * @param params entity IDs to identify the App Action Call * @returns detailed metadata about the App Action Call * @throws if the request fails, or the App Action is not found * @example * ```javascript * const appActionCall = await client.appActionCall.getCallDetails({ * spaceId: "", * environmentId: "", * appDefinitionId: "", * appActionId: "", * }); * ``` */ getCallDetails(params: OptionalDefaults): Promise; /** * Calls (triggers) an App Action * @param params entity IDs to identify the App Action to call * @param payload the payload to be sent to the App Action * @returns detailed metadata about the App Action Call * @throws if the request fails, or the App Action is not found * @example * ```javascript * const appActionCall = await client.appActionCall.createWithResponse( * { * spaceId: "", * environmentId: "", * appDefinitionId: "", * appActionId: "", * }, * { * parameters: { // ... }, * } * ); * ``` */ createWithResponse(params: OptionalDefaults, payload: CreateAppActionCallProps): Promise; };