import type { CollectionProp, GetFunctionLogParams, GetManyFunctionLogParams } from '../../common-types'; import type { FunctionLogProps } from '../../entities/function-log'; import type { OptionalDefaults } from '../wrappers/wrap'; export type FunctionLogPlainClientAPI = { /** * Fetches the specified FunctionLog * @params spaceId, environmentId, appInstallationId, functionId, logId * @returns the FunctionLog * @throws if the request fails, or the FunctionLog is not found * @example * ```javascript * const functionLog = await client.functionLog.get({ * spaceId: '', * environmentId: '', * appInstallationId: '', * functionId: '', * logId: '' * }); * ``` */ get(params: OptionalDefaults): Promise; /** * Fetches all FunctionLogs for the given function * @params spaceId, environmentId, appInstallationId, functionId, query * @returns an object containing an array of FunctionLogs * @throws if the request fails, or the FunctionLogs are not found * @example * ```javascript * const start = new Date() * const end = new Date() * start.setHours(start.getHours() - 1) * * const functionLogs = await client.functionLog.getMany({ * spaceId: '', * environmentId: '', * appInstallationId: '', * functionId: '', * query: { * // optional limit * limit: 10, * // optional interval query * 'sys.createdAt[gte]': start, * 'sys.createdAt[lt]': end, * // optional cursor based pagination parameters * pageNext: '', * } * }); * ``` */ getMany(params: OptionalDefaults): Promise>; };