1 | import moment from 'moment';
|
2 | import { EdmTypeShared } from '../../edm-types';
|
3 | import { Entity, ODataVersionOf, Constructable } from '../../entity';
|
4 | import { Filter } from '../../filter';
|
5 | import { ConstructorOrField } from '../constructor-or-field';
|
6 | import { EdmTypeField } from '../edm-type-field';
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export declare class DurtionFieldBase<EntityT extends Entity, SelectableT extends boolean = false> extends EdmTypeField<EntityT, moment.Duration, false, SelectableT> {
|
13 | |
14 |
|
15 |
|
16 |
|
17 |
|
18 | greaterThan(value: moment.Duration): Filter<EntityT, moment.Duration>;
|
19 | |
20 |
|
21 |
|
22 |
|
23 |
|
24 | greaterOrEqual(value: moment.Duration): Filter<EntityT, moment.Duration>;
|
25 | |
26 |
|
27 |
|
28 |
|
29 |
|
30 | lessThan(value: moment.Duration): Filter<EntityT, moment.Duration>;
|
31 | |
32 |
|
33 |
|
34 |
|
35 |
|
36 | lessOrEqual(value: moment.Duration): Filter<EntityT, moment.Duration>;
|
37 | }
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 | export declare class DurationField<EntityT extends Entity> extends DurtionFieldBase<EntityT, true> {
|
44 | }
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 | export declare class ComplexTypeDurationPropertyField<EntityT extends Entity, ComplexT = any> extends DurtionFieldBase<EntityT> {
|
51 | |
52 |
|
53 |
|
54 | readonly fieldOf: ConstructorOrField<EntityT, ComplexT>;
|
55 | |
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 | constructor(fieldName: string, fieldOf: ConstructorOrField<EntityT, ComplexT>, edmType: EdmTypeShared<ODataVersionOf<EntityT>>);
|
62 | /**
|
63 | * @deprecated Since v1.19.0.
|
64 | *
|
65 | * Creates an instance of ComplexTypeDurationPropertyField.
|
66 | * @param fieldName - Actual name of the field used in the OData request
|
67 | * @param entityConstructor - Constructor type of the entity the field belongs to
|
68 | * @param parentTypeName - Name of the parent complex type
|
69 | * @param edmType - Type of the field according to the metadata description
|
70 | */
|
71 | constructor(fieldName: string, entityConstructor: Constructable<EntityT>, parentTypeName: string, edmType: EdmTypeShared<ODataVersionOf<EntityT>>);
|
72 | /**
|
73 | * Path to the field to be used in filter and order by queries. Combines the parent complex type name with the field name.
|
74 | * @returns Path to the field to be used in filter and order by queries.
|
75 | */
|
76 | fieldPath(): string;
|
77 | }
|
78 | //# sourceMappingURL=duration-field.d.ts.map |
\ | No newline at end of file |