angular-odata 0.131.0 → 0.140.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/fesm2022/angular-odata.mjs +276 -543
  2. package/fesm2022/angular-odata.mjs.map +1 -1
  3. package/index.d.ts +6403 -3
  4. package/package.json +3 -3
  5. package/schematics/apigen/angular/base.js +2 -6
  6. package/schematics/apigen/angular/base.js.map +1 -1
  7. package/schematics/apigen/angular/entity.js +1 -2
  8. package/schematics/apigen/angular/entity.js.map +1 -1
  9. package/schematics/apigen/index.js +2 -6
  10. package/schematics/apigen/index.js.map +1 -1
  11. package/schematics/apigen/metadata/csdl/csdl-annotation.js +1 -2
  12. package/schematics/apigen/metadata/csdl/csdl-annotation.js.map +1 -1
  13. package/schematics/apigen/metadata/csdl/csdl-entity-container.js.map +1 -1
  14. package/schematics/apigen/metadata/csdl/csdl-entity-set.js.map +1 -1
  15. package/schematics/apigen/metadata/csdl/csdl-enum-type.d.ts +1 -1
  16. package/schematics/apigen/metadata/csdl/csdl-enum-type.js +1 -1
  17. package/schematics/apigen/metadata/csdl/csdl-enum-type.js.map +1 -1
  18. package/schematics/apigen/metadata/csdl/csdl-function-action.d.ts +1 -1
  19. package/schematics/apigen/metadata/csdl/csdl-reference.js +1 -2
  20. package/schematics/apigen/metadata/csdl/csdl-reference.js.map +1 -1
  21. package/schematics/apigen/metadata/csdl/csdl-schema.js +1 -2
  22. package/schematics/apigen/metadata/csdl/csdl-schema.js.map +1 -1
  23. package/schematics/apigen/metadata/csdl/csdl-singleton.js.map +1 -1
  24. package/schematics/apigen/metadata/csdl/csdl-structural-property.d.ts +1 -1
  25. package/schematics/apigen/metadata/csdl/csdl-structural-property.js +2 -3
  26. package/schematics/apigen/metadata/csdl/csdl-structural-property.js.map +1 -1
  27. package/schematics/apigen/metadata/csdl/csdl-structured-type.d.ts +1 -1
  28. package/schematics/apigen/metadata/csdl/csdl-structured-type.js +1 -2
  29. package/schematics/apigen/metadata/csdl/csdl-structured-type.js.map +1 -1
  30. package/schematics/apigen/metadata/parser.js +1 -3
  31. package/schematics/apigen/metadata/parser.js.map +1 -1
  32. package/schematics/apigen/utils.js +2 -4
  33. package/schematics/apigen/utils.js.map +1 -1
  34. package/lib/annotations.d.ts +0 -75
  35. package/lib/api.d.ts +0 -107
  36. package/lib/cache/cache.d.ts +0 -104
  37. package/lib/cache/index.d.ts +0 -3
  38. package/lib/cache/memory.d.ts +0 -19
  39. package/lib/cache/storage.d.ts +0 -35
  40. package/lib/client.d.ts +0 -613
  41. package/lib/constants.d.ts +0 -70
  42. package/lib/helper.d.ts +0 -75
  43. package/lib/index.d.ts +0 -14
  44. package/lib/loaders.d.ts +0 -21
  45. package/lib/metadata/csdl/csdl-annotation.d.ts +0 -159
  46. package/lib/metadata/csdl/csdl-entity-container.d.ts +0 -31
  47. package/lib/metadata/csdl/csdl-entity-set.d.ts +0 -25
  48. package/lib/metadata/csdl/csdl-enum-type.d.ts +0 -37
  49. package/lib/metadata/csdl/csdl-function-action.d.ts +0 -148
  50. package/lib/metadata/csdl/csdl-navigation-property-binding.d.ts +0 -12
  51. package/lib/metadata/csdl/csdl-reference.d.ts +0 -53
  52. package/lib/metadata/csdl/csdl-schema.d.ts +0 -37
  53. package/lib/metadata/csdl/csdl-singleton.d.ts +0 -21
  54. package/lib/metadata/csdl/csdl-structural-property.d.ts +0 -86
  55. package/lib/metadata/csdl/csdl-structured-type.d.ts +0 -94
  56. package/lib/metadata/csdl/csdl-type-definition.d.ts +0 -25
  57. package/lib/metadata/index.d.ts +0 -2
  58. package/lib/metadata/metadata.d.ts +0 -23
  59. package/lib/metadata/parser.d.ts +0 -110
  60. package/lib/models/collection.d.ts +0 -183
  61. package/lib/models/index.d.ts +0 -3
  62. package/lib/models/model.d.ts +0 -176
  63. package/lib/models/options.d.ts +0 -368
  64. package/lib/module.d.ts +0 -19
  65. package/lib/options.d.ts +0 -101
  66. package/lib/resources/index.d.ts +0 -6
  67. package/lib/resources/options.d.ts +0 -18
  68. package/lib/resources/path/handlers.d.ts +0 -29
  69. package/lib/resources/path/index.d.ts +0 -2
  70. package/lib/resources/path/segments.d.ts +0 -54
  71. package/lib/resources/query/builder.d.ts +0 -103
  72. package/lib/resources/query/expressions/apply.d.ts +0 -125
  73. package/lib/resources/query/expressions/base.d.ts +0 -25
  74. package/lib/resources/query/expressions/compute.d.ts +0 -39
  75. package/lib/resources/query/expressions/count.d.ts +0 -58
  76. package/lib/resources/query/expressions/expand.d.ts +0 -69
  77. package/lib/resources/query/expressions/filter.d.ts +0 -77
  78. package/lib/resources/query/expressions/index.d.ts +0 -9
  79. package/lib/resources/query/expressions/orderby.d.ts +0 -55
  80. package/lib/resources/query/expressions/search.d.ts +0 -63
  81. package/lib/resources/query/expressions/select.d.ts +0 -34
  82. package/lib/resources/query/expressions/syntax.d.ts +0 -313
  83. package/lib/resources/query/handlers.d.ts +0 -270
  84. package/lib/resources/query/index.d.ts +0 -4
  85. package/lib/resources/query/options.d.ts +0 -60
  86. package/lib/resources/request.d.ts +0 -64
  87. package/lib/resources/resource.d.ts +0 -161
  88. package/lib/resources/response.d.ts +0 -82
  89. package/lib/resources/types/action.d.ts +0 -84
  90. package/lib/resources/types/batch.d.ts +0 -62
  91. package/lib/resources/types/count.d.ts +0 -20
  92. package/lib/resources/types/entity-set.d.ts +0 -79
  93. package/lib/resources/types/entity.d.ts +0 -54
  94. package/lib/resources/types/function.d.ts +0 -108
  95. package/lib/resources/types/index.d.ts +0 -14
  96. package/lib/resources/types/media.d.ts +0 -28
  97. package/lib/resources/types/metadata.d.ts +0 -13
  98. package/lib/resources/types/navigation-property.d.ts +0 -157
  99. package/lib/resources/types/options.d.ts +0 -32
  100. package/lib/resources/types/property.d.ts +0 -115
  101. package/lib/resources/types/reference.d.ts +0 -74
  102. package/lib/resources/types/singleton.d.ts +0 -87
  103. package/lib/resources/types/value.d.ts +0 -19
  104. package/lib/schema/annotation.d.ts +0 -28
  105. package/lib/schema/callable.d.ts +0 -41
  106. package/lib/schema/element.d.ts +0 -52
  107. package/lib/schema/entity-container.d.ts +0 -10
  108. package/lib/schema/entity-set.d.ts +0 -10
  109. package/lib/schema/enum-type.d.ts +0 -55
  110. package/lib/schema/index.d.ts +0 -8
  111. package/lib/schema/parsers/callable.d.ts +0 -47
  112. package/lib/schema/parsers/edm.d.ts +0 -4
  113. package/lib/schema/parsers/enum-type.d.ts +0 -56
  114. package/lib/schema/parsers/index.d.ts +0 -4
  115. package/lib/schema/parsers/structured-type.d.ts +0 -172
  116. package/lib/schema/schema.d.ts +0 -26
  117. package/lib/schema/singleton.d.ts +0 -10
  118. package/lib/schema/structured-type.d.ts +0 -152
  119. package/lib/services/base.d.ts +0 -20
  120. package/lib/services/entity-set.d.ts +0 -120
  121. package/lib/services/entity.d.ts +0 -11
  122. package/lib/services/factory.d.ts +0 -33
  123. package/lib/services/index.d.ts +0 -4
  124. package/lib/services/singleton.d.ts +0 -44
  125. package/lib/settings.d.ts +0 -26
  126. package/lib/types.d.ts +0 -285
  127. package/lib/utils/arraybuffers.d.ts +0 -4
  128. package/lib/utils/arrays.d.ts +0 -3
  129. package/lib/utils/dates.d.ts +0 -3
  130. package/lib/utils/durations.d.ts +0 -14
  131. package/lib/utils/enums.d.ts +0 -23
  132. package/lib/utils/http.d.ts +0 -22
  133. package/lib/utils/index.d.ts +0 -9
  134. package/lib/utils/objects.d.ts +0 -37
  135. package/lib/utils/odata.d.ts +0 -4
  136. package/lib/utils/strings.d.ts +0 -7
  137. package/lib/utils/types.d.ts +0 -11
  138. package/lib/utils/urls.d.ts +0 -4
  139. package/public-api.d.ts +0 -1
@@ -1,86 +0,0 @@
1
- import { ODataStructuredTypeFieldConfig } from '../../types';
2
- import { CsdlAnnotable } from './csdl-annotation';
3
- export declare abstract class CsdlStructuralProperty extends CsdlAnnotable {
4
- Name: string;
5
- Type: string;
6
- Collection: boolean;
7
- Nullable?: boolean;
8
- constructor({ Name, Type, Nullable, Annotation, }: {
9
- Name: string;
10
- Type: string;
11
- Nullable?: boolean;
12
- Annotation?: any[];
13
- });
14
- toJson(): {
15
- [key: string]: any;
16
- };
17
- }
18
- export declare class CsdlProperty extends CsdlStructuralProperty {
19
- MaxLength?: number;
20
- Precision?: number;
21
- Scale?: number;
22
- Unicode?: boolean;
23
- SRID?: string;
24
- DefaultValue?: string;
25
- constructor({ Name, Type, Nullable, MaxLength, Precision, Scale, Unicode, SRID, DefaultValue, Annotation, }: {
26
- Name: string;
27
- Type: string;
28
- Nullable?: boolean;
29
- MaxLength?: number;
30
- Precision?: number;
31
- Scale?: number;
32
- Unicode?: boolean;
33
- SRID?: string;
34
- DefaultValue?: string;
35
- Annotation?: any[];
36
- });
37
- toJson(): {
38
- [key: string]: any;
39
- };
40
- toConfig(): ODataStructuredTypeFieldConfig & {
41
- name: string;
42
- };
43
- }
44
- export declare class CsdlNavigationProperty extends CsdlStructuralProperty {
45
- Partner?: string;
46
- ContainsTarget?: boolean;
47
- ReferentialConstraints?: CsdlReferentialConstraint[];
48
- OnDelete?: CsdlOnDelete;
49
- constructor({ Name, Type, Nullable, Partner, ContainsTarget, ReferentialConstraints, OnDelete, Annotation, }: {
50
- Name: string;
51
- Type: string;
52
- Nullable?: boolean;
53
- Partner?: string;
54
- ContainsTarget?: boolean;
55
- ReferentialConstraints?: any[];
56
- OnDelete?: any;
57
- Annotation?: any[];
58
- });
59
- toJson(): {
60
- [key: string]: any;
61
- };
62
- toConfig(): ODataStructuredTypeFieldConfig & {
63
- name: string;
64
- };
65
- }
66
- export declare class CsdlReferentialConstraint {
67
- Property: string;
68
- ReferencedProperty: string;
69
- constructor({ Property, ReferencedProperty, }: {
70
- Property: string;
71
- ReferencedProperty: string;
72
- });
73
- toJson(): {
74
- Property: string;
75
- ReferencedProperty: string;
76
- };
77
- }
78
- export declare class CsdlOnDelete {
79
- Action: string;
80
- constructor({ Action }: {
81
- Action: string;
82
- });
83
- toJson(): {
84
- Action: string;
85
- };
86
- }
@@ -1,94 +0,0 @@
1
- import { ODataStructuredTypeConfig } from '../../types';
2
- import { CsdlAnnotable } from './csdl-annotation';
3
- import { CsdlProperty, CsdlNavigationProperty } from './csdl-structural-property';
4
- import type { CsdlSchema } from './csdl-schema';
5
- export declare class CsdlStructuredType extends CsdlAnnotable {
6
- private schema;
7
- Name: string;
8
- Property?: CsdlProperty[];
9
- NavigationProperty?: CsdlNavigationProperty[];
10
- BaseType?: string;
11
- OpenType?: boolean;
12
- Abstract?: boolean;
13
- constructor(schema: CsdlSchema, { Name, Property, NavigationProperty, BaseType, OpenType, Abstract, Annotation, }: {
14
- Name: string;
15
- Property?: any[];
16
- NavigationProperty?: any[];
17
- BaseType?: string;
18
- OpenType?: boolean;
19
- Abstract?: boolean;
20
- Annotation?: any[];
21
- });
22
- toJson(): {
23
- [key: string]: any;
24
- };
25
- name(): string;
26
- namespace(): string;
27
- fullName(): string;
28
- }
29
- export declare class CsdlComplexType extends CsdlStructuredType {
30
- constructor(schema: CsdlSchema, { Name, Property, NavigationProperty, BaseType, OpenType, Abstract, Annotation, }: {
31
- Name: string;
32
- Property?: any[];
33
- NavigationProperty?: any[];
34
- BaseType?: string;
35
- OpenType?: boolean;
36
- Abstract?: boolean;
37
- Annotation?: any[];
38
- });
39
- toJson(): {
40
- [x: string]: any;
41
- };
42
- toConfig(base?: Partial<ODataStructuredTypeConfig>): ODataStructuredTypeConfig;
43
- }
44
- export declare class CsdlEntityType extends CsdlStructuredType {
45
- Key?: CsdlKey;
46
- HasStream?: boolean;
47
- constructor(schema: CsdlSchema, { Name, Key, Property, NavigationProperty, BaseType, OpenType, Abstract, HasStream, Annotation, }: {
48
- Name: string;
49
- Key?: any;
50
- Property?: any[];
51
- NavigationProperty?: any[];
52
- BaseType?: string;
53
- OpenType?: boolean;
54
- Abstract?: boolean;
55
- HasStream?: boolean;
56
- Annotation?: any[];
57
- });
58
- toJson(): {
59
- [key: string]: any;
60
- };
61
- toConfig(base?: Partial<ODataStructuredTypeConfig>): ODataStructuredTypeConfig;
62
- }
63
- export declare class CsdlKey {
64
- PropertyRef: CsdlPropertyRef[];
65
- constructor({ PropertyRef }: {
66
- PropertyRef: any[];
67
- });
68
- toJson(): {
69
- PropertyRef: {
70
- Name: string;
71
- Alias: string | undefined;
72
- }[];
73
- };
74
- toConfig(): {
75
- name: string;
76
- alias?: string;
77
- }[];
78
- }
79
- export declare class CsdlPropertyRef {
80
- Name: string;
81
- Alias?: string;
82
- constructor({ Name, Alias }: {
83
- Name: string;
84
- Alias?: string;
85
- });
86
- toJson(): {
87
- Name: string;
88
- Alias: string | undefined;
89
- };
90
- toConfig(): {
91
- name: string;
92
- alias?: string;
93
- };
94
- }
@@ -1,25 +0,0 @@
1
- import { CsdlAnnotable, CsdlAnnotation } from './csdl-annotation';
2
- import type { CsdlSchema } from './csdl-schema';
3
- export declare class CsdlTypeDefinition extends CsdlAnnotable {
4
- private schema;
5
- Name: string;
6
- UnderlayingType: string;
7
- MaxLength?: number;
8
- Precision?: number;
9
- Scale?: number;
10
- Unicode?: boolean;
11
- SRID?: string;
12
- constructor(schema: CsdlSchema, { Name, UnderlayingType, MaxLength, Precision, Scale, Unicode, SRID, Annotation, }: {
13
- Name: string;
14
- UnderlayingType: string;
15
- MaxLength?: number;
16
- Precision?: number;
17
- Scale?: number;
18
- Unicode?: boolean;
19
- SRID?: string;
20
- Annotation?: CsdlAnnotation[];
21
- });
22
- toJson(): {
23
- [key: string]: any;
24
- };
25
- }
@@ -1,2 +0,0 @@
1
- export * from './metadata';
2
- export * from './parser';
@@ -1,23 +0,0 @@
1
- import { CsdlAction, CsdlFunction } from './csdl/csdl-function-action';
2
- import { CsdlReference } from './csdl/csdl-reference';
3
- import { CsdlSchema } from './csdl/csdl-schema';
4
- import { ODataApiConfig } from '../types';
5
- export declare class ODataMetadata {
6
- Version: string;
7
- References: CsdlReference[];
8
- Schemas: CsdlSchema[];
9
- constructor(Version: string, References: any[], Schemas: any[]);
10
- toConfig(base?: Partial<ODataApiConfig>): ODataApiConfig;
11
- toJson(): {
12
- Version: string;
13
- References: {
14
- [key: string]: any;
15
- }[];
16
- Schemas: {
17
- [key: string]: any;
18
- }[];
19
- };
20
- functions(): CsdlFunction[];
21
- actions(): CsdlAction[];
22
- static fromJson(json: any): ODataMetadata;
23
- }
@@ -1,110 +0,0 @@
1
- import { ODataMetadata } from './metadata';
2
- declare enum FieldType {
3
- ATTRIBUTE = 0,
4
- TAG = 1
5
- }
6
- declare class Field {
7
- name: string;
8
- fieldType: FieldType;
9
- constructor(name: string, fieldType: FieldType);
10
- }
11
- export declare class ODataMetadataParser {
12
- private static readonly TAG_EDMX;
13
- private static readonly TAG_DATA_SERVICES;
14
- private static readonly TAG_REFERENCE;
15
- private static readonly TAG_INCLUDE;
16
- private static readonly TAG_INCLUDE_ANNOTATIONS;
17
- private static readonly TAG_TERM;
18
- private static readonly TAG_ANNOTATIONS;
19
- private static readonly TAG_ANNOTATION;
20
- private static readonly TAG_SCHEMA;
21
- private static readonly TAG_ENUM_TYPE;
22
- private static readonly TAG_MEMBER;
23
- private static readonly TAG_COMPLEX_TYPE;
24
- private static readonly TAG_ENTITY_TYPE;
25
- private static readonly TAG_PROPERTY;
26
- private static readonly TAG_KEY;
27
- private static readonly TAG_PROPERTY_REF;
28
- private static readonly TAG_NAVIGATION_PROPERTY;
29
- private static readonly TAG_REFERENTIAL_CONSTRAINT;
30
- private static readonly TAG_ON_DELETE;
31
- private static readonly TAG_FUNCTION;
32
- private static readonly TAG_RETURN_TYPE;
33
- private static readonly TAG_PARAMETER;
34
- private static readonly TAG_ACTION;
35
- private static readonly TAG_ENTITY_CONTAINER;
36
- private static readonly TAG_ENTITY_SET;
37
- private static readonly TAG_SINGLETON;
38
- private static readonly TAG_COLLECTION;
39
- private static readonly TAG_RECORD;
40
- private static readonly TAG_STRING;
41
- private static readonly TAG_ENUM_MEMBER;
42
- private static readonly TAG_PROPERTY_VALUE;
43
- private static readonly TAG_PROPERTY_PATH;
44
- private static readonly TAG_NAVIGATION_PROPERTY_PATH;
45
- private static readonly TAG_FUNCTION_IMPORT;
46
- private static readonly TAG_ACTION_IMPORT;
47
- private static readonly TAG_NAVIGATION_PROPERTY_BINDING;
48
- private static readonly TAG_TYPE_DEFINITION;
49
- private static readonly ATTRIBUTE_VERSION;
50
- private static readonly ATTRIBUTE_URI;
51
- private static readonly ATTRIBUTE_ALIAS;
52
- private static readonly ATTRIBUTE_NAMESPACE;
53
- private static readonly ATTRIBUTE_TERM_NAMESPACE;
54
- private static readonly ATTRIBUTE_QUALIFIER;
55
- private static readonly ATTRIBUTE_STRING;
56
- private static readonly ATTRIBUTE_DATE;
57
- private static readonly ATTRIBUTE_BOOL;
58
- private static readonly ATTRIBUTE_INT;
59
- private static readonly ATTRIBUTE_TARGET_NAMESPACE;
60
- private static readonly ATTRIBUTE_TERM;
61
- private static readonly ATTRIBUTE_NAME;
62
- private static readonly ATTRIBUTE_VALUE;
63
- private static readonly ATTRIBUTE_BASE_TYPE;
64
- private static readonly ATTRIBUTE_OPEN_TYPE;
65
- private static readonly ATTRIBUTE_TYPE;
66
- private static readonly ATTRIBUTE_NULLABLE;
67
- private static readonly ATTRIBUTE_MAX_LENGTH;
68
- private static readonly ATTRIBUTE_PRECISION;
69
- private static readonly ATTRIBUTE_SCALE;
70
- private static readonly ATTRIBUTE_UNICODE;
71
- private static readonly ATTRIBUTE_SRID;
72
- private static readonly ATTRIBUTE_DEFAULT_VALUE;
73
- private static readonly ATTRIBUTE_PARTNER;
74
- private static readonly ATTRIBUTE_PROPERTY;
75
- private static readonly ATTRIBUTE_REFERENCED_PROPERTY;
76
- private static readonly ATTRIBUTE_HAS_STREAM;
77
- private static readonly ATTRIBUTE_CONTAINS_TARGET;
78
- private static readonly ATTRIBUTE_IS_BOUND;
79
- private static readonly ATTRIBUTE_ENTITY_SET_PATH;
80
- private static readonly ATTRIBUTE_IS_COMPOSABLE;
81
- private static readonly ATTRIBUTE_ENTITY_TYPE;
82
- private static readonly ATTRIBUTE_PATH;
83
- private static readonly ATTRIBUTE_TARGET;
84
- private static readonly ATTRIBUTE_FUNCTION;
85
- private static readonly ATTRIBUTE_ACTION;
86
- private static readonly ATTRIBUTE_ENTITY_SET;
87
- private static readonly ATTRIBUTE_INCLUDE_IN_SERVICE_DOCUMENT;
88
- private static readonly ATTRIBUTE_ABSTRACT;
89
- private static readonly ATTRIBUTE_UNDERLYING_TYPE;
90
- private static readonly ATTRIBUTE_IS_FLAGS;
91
- private static readonly ATTRIBUTE_EXTENDS;
92
- private static readonly ATTRIBUTE_BASE_TERM;
93
- private static readonly ATTRIBUTE_APPLIES_TO;
94
- readonly document: Document;
95
- constructor(xml: string);
96
- metadata(): ODataMetadata;
97
- protected checkVersion(document: Document): void;
98
- protected getObjects(parentElement: Element, tag: string, fieldNames: Field[]): any[];
99
- protected getObject(parentElement: Element, tag: string, fieldNames: Field[]): any;
100
- protected getFieldValues(fields: Field[], attributes: NamedNodeMap, element: Element): {
101
- [name: string]: any;
102
- };
103
- protected getFieldValueByAttribute(field: Field, attributes: NamedNodeMap): any;
104
- protected getFieldValueByTag(field: Field, element: Element): any[];
105
- protected getAttributeValue(attributes: NamedNodeMap, attributeName: string): string | undefined;
106
- protected propertyValueToNumber(attributeValue?: string): number | undefined;
107
- protected propertyValueToBoolean(attributeValue?: string): boolean;
108
- protected propertyValueToDate(attributeValue?: string): Date | undefined;
109
- }
110
- export {};
@@ -1,183 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { ODataActionOptions, ODataEntitySetResource, ODataFunctionOptions, ODataNavigationPropertyResource, ODataOptions, ODataPropertyResource, ODataQueryOptionsHandler, ODataResource } from '../resources';
3
- import { ODataStructuredType } from '../schema/structured-type';
4
- import { ODataModel } from './model';
5
- import { ModelFieldOptions, ODataModelEntry, ODataModelEventEmitter, ODataModelField } from './options';
6
- import { ODataEntitiesAnnotations } from '../annotations';
7
- export declare class ODataCollection<T, M extends ODataModel<T>> implements Iterable<M> {
8
- static model: typeof ODataModel | null;
9
- _parent: [
10
- ODataModel<any> | ODataCollection<any, ODataModel<any>>,
11
- ODataModelField<any> | null
12
- ] | null;
13
- _resource: ODataEntitySetResource<T> | ODataNavigationPropertyResource<T> | ODataPropertyResource<T> | null;
14
- _resources: {
15
- parent: [
16
- ODataModel<any> | ODataCollection<any, ODataModel<any>>,
17
- ODataModelField<any> | null
18
- ] | null;
19
- resource: ODataEntitySetResource<T> | ODataNavigationPropertyResource<T> | ODataPropertyResource<T> | null;
20
- }[];
21
- _annotations: ODataEntitiesAnnotations<T>;
22
- _entries: ODataModelEntry<T, M>[];
23
- _model: typeof ODataModel;
24
- models(): M[];
25
- get length(): number;
26
- events$: ODataModelEventEmitter<T>;
27
- constructor(entities?: Partial<T>[] | {
28
- [name: string]: any;
29
- }[], { parent, resource, annots, model, reset, }?: {
30
- parent?: [ODataModel<any>, ODataModelField<any>];
31
- resource?: ODataResource<T> | null;
32
- annots?: ODataEntitiesAnnotations<T>;
33
- model?: typeof ODataModel;
34
- reset?: boolean;
35
- });
36
- isParentOf(child: ODataModel<any> | ODataCollection<any, ODataModel<any>>): boolean;
37
- resource(): ODataEntitySetResource<T> | ODataNavigationPropertyResource<T> | ODataPropertyResource<T> | null;
38
- pushResource(resource: ODataEntitySetResource<T> | ODataNavigationPropertyResource<T> | ODataPropertyResource<T> | null): void;
39
- popResource(): {
40
- parent: [ODataModel<any> | ODataCollection<any, ODataModel<any>>, ODataModelField<any> | null] | null;
41
- resource: ODataEntitySetResource<T> | ODataNavigationPropertyResource<T> | ODataPropertyResource<T> | null;
42
- } | undefined;
43
- attach(resource: ODataEntitySetResource<T> | ODataNavigationPropertyResource<T> | ODataPropertyResource<T>): void;
44
- withResource<R>(resource: ODataEntitySetResource<T> | ODataNavigationPropertyResource<T> | ODataPropertyResource<T> | null, ctx: (collection: this) => R): R;
45
- asEntitySet<R>(ctx: (collection: this) => R): R;
46
- annots(): ODataEntitiesAnnotations<T>;
47
- private modelFactory;
48
- toEntities({ client_id, include_navigation, include_concurrency, include_computed, include_key, include_id, include_non_field, changes_only, field_mapping, chain, }?: {
49
- client_id?: boolean;
50
- include_navigation?: boolean;
51
- include_concurrency?: boolean;
52
- include_computed?: boolean;
53
- include_key?: boolean;
54
- include_id?: boolean;
55
- include_non_field?: boolean;
56
- changes_only?: boolean;
57
- field_mapping?: boolean;
58
- chain?: (ODataModel<any> | ODataCollection<any, ODataModel<any>>)[];
59
- }): (Partial<T> | {
60
- [name: string]: any;
61
- })[];
62
- toJson(): (Partial<T> | {
63
- [name: string]: any;
64
- })[];
65
- hasChanged({ include_navigation }?: {
66
- include_navigation?: boolean;
67
- }): boolean;
68
- clone<C extends ODataCollection<T, M>>(): C;
69
- private _request;
70
- fetch({ add, merge, remove, withCount, ...options }?: ODataOptions & {
71
- add?: boolean;
72
- merge?: boolean;
73
- remove?: boolean;
74
- withCount?: boolean;
75
- }): Observable<M[]>;
76
- fetchAll({ add, merge, remove, withCount, ...options }?: ODataOptions & {
77
- add?: boolean;
78
- merge?: boolean;
79
- remove?: boolean;
80
- withCount?: boolean;
81
- }): Observable<M[]>;
82
- fetchMany(top: number, { add, merge, remove, withCount, ...options }?: ODataOptions & {
83
- add?: boolean;
84
- merge?: boolean;
85
- remove?: boolean;
86
- withCount?: boolean;
87
- }): Observable<M[]>;
88
- fetchOne({ add, merge, remove, withCount, ...options }?: ODataOptions & {
89
- add?: boolean;
90
- merge?: boolean;
91
- remove?: boolean;
92
- withCount?: boolean;
93
- }): Observable<M | null>;
94
- /**
95
- * Save all models in the collection
96
- * @param relModel The model is relationship
97
- * @param method The method to use
98
- * @param options HttpOptions
99
- */
100
- save({ relModel, method, ...options }?: ODataOptions & {
101
- relModel?: boolean;
102
- method?: 'update' | 'modify';
103
- }): Observable<M[]>;
104
- private _addServer;
105
- private _addModel;
106
- add(model: M, { silent, reparent, server, merge, position, reset, }?: {
107
- silent?: boolean;
108
- reparent?: boolean;
109
- server?: boolean;
110
- merge?: boolean;
111
- position?: number;
112
- reset?: boolean;
113
- }): Observable<M>;
114
- private _removeServer;
115
- private _removeModel;
116
- remove(model: M, { silent, server, reset, }?: {
117
- silent?: boolean;
118
- server?: boolean;
119
- reset?: boolean;
120
- }): Observable<M>;
121
- private _moveModel;
122
- create(attrs?: T, { silent, server, }?: {
123
- silent?: boolean;
124
- server?: boolean;
125
- }): Observable<M>;
126
- set(path: string | string[], value: any, {}: {} & ModelFieldOptions): any;
127
- get(path: number): M | undefined;
128
- get(path: string | string[]): any;
129
- has(path: number | string | string[]): boolean;
130
- reset({ path, silent, }?: {
131
- path?: string | string[];
132
- silent?: boolean;
133
- }): void;
134
- clear({ silent }?: {
135
- silent?: boolean;
136
- }): void;
137
- assign(objects: Partial<T>[] | {
138
- [name: string]: any;
139
- }[] | M[], { add, merge, remove, reset, reparent, silent, }?: {
140
- add?: boolean;
141
- merge?: boolean;
142
- remove?: boolean;
143
- reset?: boolean;
144
- reparent?: boolean;
145
- silent?: boolean;
146
- }): M[];
147
- query(ctx: (q: ODataQueryOptionsHandler<T>, s?: ODataStructuredType<T>) => void): this;
148
- callFunction<P, R>(name: string, params: P | null, responseType: 'property' | 'model' | 'collection' | 'none', options?: ODataFunctionOptions<R>): Observable<R | ODataModel<R> | ODataCollection<R, ODataModel<R>> | null>;
149
- callAction<P, R>(name: string, params: P | null, responseType: 'property' | 'model' | 'collection' | 'none', options?: ODataActionOptions<R>): Observable<R | ODataModel<R> | ODataCollection<R, ODataModel<R>> | null>;
150
- private _unlink;
151
- private _link;
152
- private _findEntry;
153
- equals(other: ODataCollection<T, ODataModel<T>>): boolean;
154
- get [Symbol.toStringTag](): string;
155
- [Symbol.iterator](): Iterator<M>;
156
- filter(predicate: (value: M, index: number, array: M[]) => unknown, thisArg?: any): M[];
157
- map<U>(callbackfn: (value: M, index: number, array: M[]) => U, thisArg?: any): U[];
158
- find(predicate: (value: M, index: number, obj: M[]) => unknown): M | undefined;
159
- reduce<U>(callbackfn: (previousValue: U, currentValue: M, currentIndex: number, array: M[]) => U, initialValue: U): U;
160
- first(): M | undefined;
161
- last(): M | undefined;
162
- next(model: M): M | undefined;
163
- prev(model: M): M | undefined;
164
- every(predicate: (m: M, index: number) => boolean): boolean;
165
- some(predicate: (m: M, index: number) => boolean): boolean;
166
- includes(model: M, start?: number): boolean;
167
- indexOf(model: M): number;
168
- forEach(predicate: (value: M, index: number, array: M[]) => void, thisArg?: any): void;
169
- isEmpty(): boolean;
170
- private _compare;
171
- _sortBy: {
172
- field: string | keyof T;
173
- order?: 1 | -1;
174
- }[] | null;
175
- isSorted(): boolean;
176
- sort(by: {
177
- field: string | keyof T;
178
- order?: 1 | -1;
179
- comparator?: (a: any, b: any) => number;
180
- }[], { silent }?: {
181
- silent?: boolean;
182
- }): void;
183
- }
@@ -1,3 +0,0 @@
1
- export * from './options';
2
- export * from './model';
3
- export * from './collection';