import type { CollectionProp, GetFunctionParams, GetFunctionForEnvParams, GetManyFunctionParams } from '../../common-types'; import type { FunctionProps } from '../../entities/function'; import type { OptionalDefaults } from '../wrappers/wrap'; export type FunctionPlainClientAPI = { /** * Fetches the specified Function * @params organizationId, appDefinitionId, functionId * @returns the Function * @throws if the request fails, or the Function is not found * @example * ```javascript * const func = await client.function.get({ * organizationId: "", * appDefinitionId: "", * functionId: "", * }); * ``` */ get(params: OptionalDefaults): Promise; /** * Fetches all Functions for the given app * @params organizationId, appDefinitionId, query * @returns an object containing an array of Functions * @throws if the request fails, or the App is not found * @example * ```javascript * const functions = await client.function.getMany({ * organizationId: "", * appDefinitionId: "", * query: { 'accepts[all]': '' }, * }); * ``` */ getMany(params: OptionalDefaults): Promise>; /** * Fetches all Functions for the given environment * @params spaceId, environmentId, appInstallationId, query * @returns an object containing an array of Functions * @throws if the request fails, or the Environment is not found * @example * ```javascript * const functions = await client.function.getManyForEnvironment({ * spaceId: "", * environmentId: "", * appInstallationId: "", * query: { 'accepts[all]': '' }, * }); * ``` */ getManyForEnvironment(params: OptionalDefaults): Promise>; };