UNPKG

@sap-cloud-sdk/core

Version:
35 lines 1.65 kB
import { Entity } from '../../entity'; import { ConstructorOrField } from '../constructor-or-field'; import { EdmTypeField } from '../edm-type-field'; /** * @deprecated Since v1.48.0. Use [[EnumField]] instead. * Represents a property with a enum value. * @typeparam EntityT - Type of the entity the field belongs to */ declare class EnumFieldBase<EntityT extends Entity, SelectableT extends boolean = false> extends EdmTypeField<EntityT, string, false, SelectableT> { } /** * @deprecated Since v1.48.0. Use [[EnumField]] instead. * Represents a complex type property with a enum value. * @typeparam EntityT - Type of the entity the field belongs to */ export declare class ComplexTypeEnumPropertyField<EntityT extends Entity, ComplexT = any> extends EnumFieldBase<EntityT> { /** * The constructor of the entity or the complex type this field belongs to */ readonly fieldOf: ConstructorOrField<EntityT, ComplexT>; /** * Creates an instance of ComplexTypeEnumPropertyField. * @param fieldName - Actual name of the field used in the OData request * @param fieldOf - The constructor of the entity or the complex type this field belongs to * @param edmType - Type of the field according to the metadata description */ constructor(fieldName: string, fieldOf: ConstructorOrField<EntityT, ComplexT>); /** * Path to the field to be used in filter and order by queries. Combines the parent complex type name with the field name. * @returns Path to the field to be used in filter and order by queries. */ fieldPath(): string; } export {}; //# sourceMappingURL=enum-field.d.ts.map