import { edmToTs , entityDeserializer , ActionImportRequestBuilder , ActionImportParameter , transformReturnValueForUndefined , transformReturnValueForComplexType , transformReturnValueForEdmType , transformReturnValueForEntity , DeSerializers , DefaultDeSerializers , defaultDeSerializers , throwErrorWhenReturnTypeIsUnionType } from '@sap-cloud-sdk/odata-v4' ; import { testService } from './service' ; import { TestComplexType } from './TestComplexType' ; import { TestEntity } from './TestEntity' ; import { TestEntityApi } from './TestEntityApi' ; /**
 * Type of the parameters to be passed to [[testActionImportNoParameterNoReturnType]].
 */ export interface TestActionImportNoParameterNoReturnTypeParameters < DeSerializersT extends DeSerializers > { } param parameters returns export function testActionImportNoParameterNoReturnType < DeSerializersT extends DeSerializers = DefaultDeSerializers > ( parameters , deSerializers = defaultDeSerializers as any ) { const params = { } ; return new ActionImportRequestBuilder ( '/sap/opu/odata/sap/API_TEST_SRV' , 'TestActionImportNoParameterNoReturnType' , data => transformReturnValueForUndefined ( data , val => undefined ) , params , deSerializers ) ; } /**
 * Type of the parameters to be passed to [[testActionImportMultipleParameterComplexReturnType]].
 */ export interface TestActionImportMultipleParameterComplexReturnTypeParameters < DeSerializersT extends DeSerializers > { /**
     * String Param.
     */ stringParam : string ; /**
     * Non Nullable String Param.
     */ nonNullableStringParam : string ; /**
     * Nullable Boolean Param.
     */ nullableBooleanParam ? : boolean | null ; /**
     * Nullable Geography Point Param.
     */ nullableGeographyPointParam ? : any | null ; } param parameters returns export function testActionImportMultipleParameterComplexReturnType < DeSerializersT extends DeSerializers = DefaultDeSerializers > ( parameters , deSerializers = defaultDeSerializers as any ) { const params = { stringParam : new ActionImportParameter ( 'StringParam' , 'Edm.String' , parameters . stringParam ) , nonNullableStringParam : new ActionImportParameter ( 'NonNullableStringParam' , 'Edm.String' , parameters . nonNullableStringParam ) , nullableBooleanParam : new ActionImportParameter ( 'NullableBooleanParam' , 'Edm.Boolean' , parameters . nullableBooleanParam ) , nullableGeographyPointParam : new ActionImportParameter ( 'NullableGeographyPointParam' , 'Edm.Any' , parameters . nullableGeographyPointParam ) } ; return new ActionImportRequestBuilder ( '/sap/opu/odata/sap/API_TEST_SRV' , 'TestActionImportMultipleParameterComplexReturnType' , data => transformReturnValueForComplexType ( data , data => entityDeserializer ( deSerializers ) . deserializeComplexType ( data , TestComplexType ) ) , params , deSerializers ) ; } /**
 * Type of the parameters to be passed to [[testActionImportUnsupportedEdmTypes]].
 */ export interface TestActionImportUnsupportedEdmTypesParameters < DeSerializersT extends DeSerializers > { /**
     * Simple Param.
     */ simpleParam : any ; } param parameters returns export function testActionImportUnsupportedEdmTypes < DeSerializersT extends DeSerializers = DefaultDeSerializers > ( parameters , deSerializers = defaultDeSerializers as any ) { const params = { simpleParam : new ActionImportParameter ( 'SimpleParam' , 'Edm.Any' , parameters . simpleParam ) } ; return new ActionImportRequestBuilder ( '/sap/opu/odata/sap/API_TEST_SRV' , 'TestActionImportUnsupportedEdmTypes' , data => transformReturnValueForEdmType ( data , val => edmToTs ( val . value , 'Edm.Any' , deSerializers ) ) , params , deSerializers ) ; } /**
 * Type of the parameters to be passed to [[testActionImportNoParameterEntityReturnType]].
 */ export interface TestActionImportNoParameterEntityReturnTypeParameters < DeSerializersT extends DeSerializers > { } param parameters returns export function testActionImportNoParameterEntityReturnType < DeSerializersT extends DeSerializers = DefaultDeSerializers > ( parameters , deSerializers = defaultDeSerializers as any ) { const params = { } ; return new ActionImportRequestBuilder ( '/sap/opu/odata/sap/API_TEST_SRV' , 'TestActionImportNoParameterEntityReturnType' , data => transformReturnValueForEntity ( data , testService ( deSerializers ) . testEntityApi ) , params , deSerializers ) ; } /**
 * Type of the parameters to be passed to [[testActionImportSharedEntityReturnType]].
 */ export interface TestActionImportSharedEntityReturnTypeParameters < DeSerializersT extends DeSerializers > { } param parameters returns export function testActionImportSharedEntityReturnType < DeSerializersT extends DeSerializers = DefaultDeSerializers > ( parameters , deSerializers = defaultDeSerializers as any ) { const params = { } ; return new ActionImportRequestBuilder ( '/sap/opu/odata/sap/API_TEST_SRV' , 'TestActionImportSharedEntityReturnType' , data => throwErrorWhenReturnTypeIsUnionType ( data , 'TestActionImportSharedEntityReturnType' ) , params , deSerializers ) ; } /**
 * Type of the parameters to be passed to [[testActionImportSharedEntityReturnTypeCollection]].
 */ export interface TestActionImportSharedEntityReturnTypeCollectionParameters < DeSerializersT extends DeSerializers > { } param parameters returns export function testActionImportSharedEntityReturnTypeCollection < DeSerializersT extends DeSerializers = DefaultDeSerializers > ( parameters , deSerializers = defaultDeSerializers as any ) { const params = { } ; return new ActionImportRequestBuilder ( '/sap/opu/odata/sap/API_TEST_SRV' , 'TestActionImportSharedEntityReturnTypeCollection' , data => throwErrorWhenReturnTypeIsUnionType ( data , 'TestActionImportSharedEntityReturnTypeCollection' ) , params , deSerializers ) ; } /**
 * Type of the parameters to be passed to [[testActionImportNullableTest]].
 */ export interface TestActionImportNullableTestParameters < DeSerializersT extends DeSerializers > { /**
     * Nullable Per Default.
     */ nullablePerDefault ? : string | null ; /**
     * Nullable Explicit.
     */ nullableExplicit ? : string | null ; /**
     * Non Nullable.
     */ nonNullable : string ; } param parameters returns export function testActionImportNullableTest < DeSerializersT extends DeSerializers = DefaultDeSerializers > ( parameters , deSerializers = defaultDeSerializers as any ) { const params = { nullablePerDefault : new ActionImportParameter ( 'NullablePerDefault' , 'Edm.String' , parameters . nullablePerDefault ) , nullableExplicit : new ActionImportParameter ( 'NullableExplicit' , 'Edm.String' , parameters . nullableExplicit ) , nonNullable : new ActionImportParameter ( 'NonNullable' , 'Edm.String' , parameters . nonNullable ) } ; return new ActionImportRequestBuilder ( '/sap/opu/odata/sap/API_TEST_SRV' , 'TestActionImportNullableTest' , data => transformReturnValueForComplexType ( data , data => entityDeserializer ( deSerializers ) . deserializeComplexType ( data , TestComplexType ) ) , params , deSerializers ) ; } export const actionImports = { testActionImportNoParameterNoReturnType , testActionImportMultipleParameterComplexReturnType , testActionImportUnsupportedEdmTypes , testActionImportNoParameterEntityReturnType , testActionImportSharedEntityReturnType , testActionImportSharedEntityReturnTypeCollection , testActionImportNullableTest } ;