import { ODataHttpClient } from "@odata2ts/http-client-api"; import { ODataEntityModelResponseV2 } from "@odata2ts/odata-core"; import { ModelQueryBuilderV2 } from "@odata2ts/odata-query-builder"; import { QueryObjectModel } from "@odata2ts/odata-query-objects"; import { ODataServiceOptions } from "../ODataServiceOptions"; import { UrlBuilderRequestCmdV2, UrlRequestCmd } from "../request"; import { ServiceStateHelperV2 } from "./ServiceStateHelperV2.js"; export declare class EntityTypeServiceV2 { protected readonly __base: ServiceStateHelperV2; protected constructor(client: ClientType, basePath: string, name: string, qModel: Q, options?: ODataServiceOptions); getPath(): string; /** * Patch (partially update) the current entity. * Spec: {@link https://www.odata.org/documentation/odata-version-2-0/operations/} - 2.6 Updating Entries * * While the method is called `patch` to align with V4, under the hood a `MERGE` request is sent. * The service should respond with status 204 and no data. * * @param model */ patch(model: Partial, queryFn?: (builder: ModelQueryBuilderV2, qObject: Q) => void): UrlBuilderRequestCmdV2, Partial>; /** * Update the current entity. * Spec: {@link https://www.odata.org/documentation/odata-version-2-0/operations/} - 2.6 Updating Entries * * The service should respond with status 204 and no data. * * @param model */ update(model: EditableT, queryFn?: (builder: ModelQueryBuilderV2, qObject: Q) => void): UrlBuilderRequestCmdV2, EditableT>; /** * Delete the current entity. * Spec: {@link https://www.odata.org/documentation/odata-version-2-0/operations/} - 2.8 Deleting Entries * * The service should respond with status 204 and no data. */ delete(): UrlRequestCmd; query = T>(queryFn?: (builder: ModelQueryBuilderV2, qObject: Q) => void): UrlBuilderRequestCmdV2, Q, ModelQueryBuilderV2, undefined>; }