import { ApolloClient, DocumentNode, NormalizedCacheObject } from '@apollo/client'; import { Order } from '../types'; /** * GetOrders options * @param patientId Filter order by patient id * @param patientName Filter order by patient name * @param after Paginated query after this cursor * @param first Specify page size limit (default: 25) * @param fragment Allows you to override the default query to request more fields */ export interface GetOrdersOptions { patientId?: string; patientName?: string; after?: string; first?: number; fragment?: Record; } /** * GetOrder options * @param id The id of the order * @param fragment Allows you to override the default query to request more fields */ export interface GetOrderOptions { id?: string; fragment?: Record; } /** * CreateORder options * @param fragment Allows you to override the default query to request more fields */ export interface CreateOrderOptions { id?: string; fragment?: Record; } /** * Contains various methods for Photon Orders */ export declare class OrderQueryManager { private apollo; /** * @param apollo - An Apollo client instance */ constructor(apollo: ApolloClient | ApolloClient); /** * Retrieves all orders in a paginated fashion, optionally filtered by patientId, patientName * @param options - Query options * @returns */ getOrders({ patientId, patientName, after, first, fragment }?: GetOrdersOptions): Promise>; /** * Retrieves order by id * @param options - Query options * @returns */ getOrder({ id, fragment }?: GetOrderOptions): Promise>; /** * Creates a new order * @param options - Query options * @returns */ createOrder({ fragment }: CreateOrderOptions): import("../utils").MakeMutationReturn<{ createOrder: Order; } | null | undefined>; }