UNPKG

2.21 kBTypeScriptView Raw
1import { EdmTypeShared } from '../../edm-types';
2import { Entity, ODataVersionOf } from '../../entity';
3import { ConstructorOrField } from '../constructor-or-field';
4import { EdmTypeField } from '../edm-type-field';
5/**
6 * @deprecated Since v1.47.0. Use [[EdmTypeField]] instead.
7 * Represents a property with an unknown or currently unsupported EDM type like Edm.Geography.
8 * @typeparam EntityT - Type of the entity the field belongs to
9 */
10declare class AnyFieldBase<EntityT extends Entity, SelectableT extends boolean = false> extends EdmTypeField<EntityT, any, false, SelectableT> {
11}
12/**
13 * @deprecated Since v1.47.0. Use [[EdmTypeField]] instead.
14 * Represents a selectable property with with an unknown or currently unsupported EDM type like Edm.Geography.
15 * @typeparam EntityT - Type of the entity the field belongs to
16 */
17export declare class AnyField<EntityT extends Entity> extends AnyFieldBase<EntityT, true> {
18}
19/**
20 * @deprecated Since v1.47.0. Use [[EdmTypeField]] instead.
21 * Represents a complex type property with with an unknown or currently unsupported EDM type like Edm.Geography.
22 * @typeparam EntityT - Type of the entity the field belongs to
23 */
24export declare class ComplexTypeAnyPropertyField<EntityT extends Entity, ComplexT = any> extends AnyFieldBase<EntityT> {
25 /**
26 * The constructor of the entity or the complex type this field belongs to
27 */
28 readonly fieldOf: ConstructorOrField<EntityT, ComplexT>;
29 /**
30 * Creates an instance of ComplexTypeAnyPropertyField.
31 * @param fieldName - Actual name of the field used in the OData request
32 * @param fieldOf - The constructor of the entity or the complex type this field belongs to
33 * @param edmType - Type of the field according to the metadata description
34 */
35 constructor(fieldName: string, fieldOf: ConstructorOrField<EntityT, ComplexT>, edmType: EdmTypeShared<ODataVersionOf<EntityT>>);
36 /**
37 * Path to the field to be used in filter and order by queries. Combines the parent complex type name with the field name.
38 * @returns Path to the field to be used in filter and order by queries.
39 */
40 fieldPath(): string;
41}
42export {};
43//# sourceMappingURL=any-field.d.ts.map
\No newline at end of file