@sap-cloud-sdk/core
Version:
SAP Cloud SDK for JavaScript core
53 lines • 2.67 kB
TypeScript
import { EdmTypeShared } from '../../edm-types';
import { Entity, ODataVersionOf, Constructable } from '../../entity';
import { ConstructorOrField } from '../constructor-or-field';
import { EdmTypeField } from '../edm-type-field';
/**
* @deprecated Since v1.47.0. Use [[EdmTypeField]] instead.
* Represents a property with a string value.
* @typeparam EntityT - Type of the entity the field belongs to
*/
declare class StringFieldBase<EntityT extends Entity, SelectableT extends boolean = false> extends EdmTypeField<EntityT, string, false, SelectableT> {
}
/**
* @deprecated Since v1.47.0. Use [[EdmTypeField]] instead.
* Represents a selectable property with a string value.
* @typeparam EntityT - Type of the entity the field belongs to
*/
export declare class StringField<EntityT extends Entity> extends StringFieldBase<EntityT, true> {
}
/**
* @deprecated Since v1.47.0. Use [[EdmTypeField]] instead.
* Represents a complex type property with a string value.
* @typeparam EntityT - Type of the entity the field belongs to
*/
export declare class ComplexTypeStringPropertyField<EntityT extends Entity, ComplexT = any> extends StringFieldBase<EntityT> {
/**
* The constructor of the entity or the complex type this field belongs to
*/
readonly fieldOf: ConstructorOrField<EntityT, ComplexT>;
/**
* Creates an instance of ComplexTypeStringPropertyField.
* @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>, edmType: EdmTypeShared<ODataVersionOf<EntityT>>);
/**
* @deprecated Since v1.19.0.
*
* Creates an instance of ComplexTypeStringPropertyField.
* @param fieldName - Actual name of the field used in the OData request
* @param entityConstructor - Constructor type of the entity the field belongs to
* @param parentTypeName - Name of the parent complex type
* @param edmType - Type of the field according to the metadata description
*/
constructor(fieldName: string, entityConstructor: Constructable<EntityT>, parentTypeName: string, edmType: EdmTypeShared<ODataVersionOf<EntityT>>);
/**
* 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=string-field.d.ts.map