import { CreateRequestBuilder , DeleteRequestBuilder , DeSerializers , GetAllRequestBuilder , GetByKeyRequestBuilder , ODataBatchRequestBuilder , UpdateRequestBuilder , BatchChangeSet } from '@sap-cloud-sdk/odata-v4' ; import { variadicArgumentToArray } from '@sap-cloud-sdk/util' ; import { TestEntity , TestEntityLink } from './index' ; param requests returns export function batch < DeSerializersT extends DeSerializers > ( ... requests ) ; export function batch < DeSerializersT extends DeSerializers > ( requests ) ; export function batch < DeSerializersT extends DeSerializers > ( first , ... rest ) { return new ODataBatchRequestBuilder ( defaultTestServicePath , variadicArgumentToArray ( first , rest ) ) ; } param requests returns export function changeset < DeSerializersT extends DeSerializers > ( ... requests ) ; export function changeset < DeSerializersT extends DeSerializers > ( requests ) ; export function changeset < DeSerializersT extends DeSerializers > ( first , ... rest ) { return new BatchChangeSet ( variadicArgumentToArray ( first , rest ) ) ; } export const defaultTestServicePath = '/odata/test-service' ; export type ReadTestServiceRequestBuilder < DeSerializersT extends DeSerializers > = GetAllRequestBuilder < TestEntity < DeSerializersT > , DeSerializersT > | GetAllRequestBuilder < TestEntityLink < DeSerializersT > , DeSerializersT > | GetByKeyRequestBuilder < TestEntity < DeSerializersT > , DeSerializersT > | GetByKeyRequestBuilder < TestEntityLink < DeSerializersT > , DeSerializersT > ; export type WriteTestServiceRequestBuilder < DeSerializersT extends DeSerializers > = CreateRequestBuilder < TestEntity < DeSerializersT > , DeSerializersT > | UpdateRequestBuilder < TestEntity < DeSerializersT > , DeSerializersT > | DeleteRequestBuilder < TestEntity < DeSerializersT > , DeSerializersT > | CreateRequestBuilder < TestEntityLink < DeSerializersT > , DeSerializersT > | UpdateRequestBuilder < TestEntityLink < DeSerializersT > , DeSerializersT > | DeleteRequestBuilder < TestEntityLink < DeSerializersT > , DeSerializersT > ;