angular-odata 0.101.0 → 0.102.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.
- package/esm2020/lib/cache/memory.mjs +3 -3
- package/esm2020/lib/cache/storage.mjs +3 -3
- package/esm2020/lib/client.mjs +3 -3
- package/esm2020/lib/models/collection.mjs +2 -3
- package/esm2020/lib/models/model.mjs +1 -3
- package/esm2020/lib/models/options.mjs +47 -25
- package/esm2020/lib/module.mjs +5 -5
- package/esm2020/lib/resources/query/builder.mjs +1 -1
- package/esm2020/lib/resources/query/handlers.mjs +139 -19
- package/esm2020/lib/resources/query/options.mjs +15 -11
- package/esm2020/lib/resources/request.mjs +24 -35
- package/esm2020/lib/resources/resource.mjs +15 -3
- package/esm2020/lib/resources/types/navigation-property.mjs +4 -2
- package/esm2020/lib/resources/types/options.mjs +1 -1
- package/esm2020/lib/services/base.mjs +1 -1
- package/esm2020/lib/services/factory.mjs +3 -3
- package/fesm2015/angular-odata.mjs +251 -105
- package/fesm2015/angular-odata.mjs.map +1 -1
- package/fesm2020/angular-odata.mjs +250 -105
- package/fesm2020/angular-odata.mjs.map +1 -1
- package/{angular-odata.d.ts → index.d.ts} +0 -0
- package/lib/models/collection.d.ts +3 -3
- package/lib/models/model.d.ts +4 -4
- package/lib/models/options.d.ts +11 -6
- package/lib/resources/query/builder.d.ts +1 -1
- package/lib/resources/query/handlers.d.ts +32 -3
- package/lib/resources/query/options.d.ts +14 -12
- package/lib/resources/request.d.ts +2 -1
- package/lib/resources/resource.d.ts +3 -2
- package/lib/resources/types/options.d.ts +4 -2
- package/lib/services/base.d.ts +9 -9
- package/lib/utils/objects.d.ts +1 -1
- package/lib/utils/strings.d.ts +1 -1
- package/package.json +5 -5
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { ODataEntitiesAnnotations, ODataEntitySetResource, ODataNavigationPropertyResource, ODataOptions, ODataPropertyResource,
|
|
3
|
+
import { ODataActionOptions, ODataEntitiesAnnotations, ODataEntitySetResource, ODataFunctionOptions, ODataNavigationPropertyResource, ODataOptions, ODataPropertyResource, ODataQueryOptionsHandler, ODataResource } from '../resources';
|
|
4
4
|
import { ODataModel } from './model';
|
|
5
5
|
import { ODataModelEntry, ODataModelEvent, ODataModelField } from './options';
|
|
6
6
|
export declare class ODataCollection<T, M extends ODataModel<T>> implements Iterable<M> {
|
|
@@ -104,8 +104,8 @@ export declare class ODataCollection<T, M extends ODataModel<T>> implements Iter
|
|
|
104
104
|
silent?: boolean;
|
|
105
105
|
}): void;
|
|
106
106
|
query(func: (q: ODataQueryOptionsHandler<T>) => void): this;
|
|
107
|
-
callFunction<P, R>(name: string, params: P | null, responseType: 'property' | 'model' | 'collection' | 'none', { ...options }?: {} &
|
|
108
|
-
callAction<P, R>(name: string, params: P | null, responseType: 'property' | 'model' | 'collection' | 'none', { ...options }?: {} &
|
|
107
|
+
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>;
|
|
108
|
+
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>;
|
|
109
109
|
private _unlink;
|
|
110
110
|
private _link;
|
|
111
111
|
private _findEntry;
|
package/lib/models/model.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EntityKey, ODataEntityAnnotations, ODataEntityResource, ODataNavigationPropertyResource, ODataOptions, ODataPropertyResource, ODataQueryArgumentsOptions, ODataQueryOptionsHandler, ODataResource, ODataSingletonResource } from '../resources';
|
|
3
|
+
import { EntityKey, ODataActionOptions, ODataEntityAnnotations, ODataEntityResource, ODataFunctionOptions, ODataNavigationPropertyResource, ODataOptions, ODataPropertyResource, ODataQueryArgumentsOptions, ODataQueryOptionsHandler, ODataResource, ODataSingletonResource } from '../resources';
|
|
4
4
|
import { ODataStructuredType } from '../schema';
|
|
5
5
|
import { ODataCollection } from './collection';
|
|
6
6
|
import { ModelOptions, ODataModelEvent, ODataModelField, ODataModelOptions, ODataModelRelation } from './options';
|
|
@@ -137,7 +137,7 @@ export declare class ODataModel<T> {
|
|
|
137
137
|
* Create an execution context for change the internal query of a resource
|
|
138
138
|
* @param func Function to execute
|
|
139
139
|
*/
|
|
140
|
-
query(func: (q: ODataQueryOptionsHandler<T>) => void): this;
|
|
140
|
+
query(func: (q: ODataQueryOptionsHandler<T>, s?: ODataStructuredType<T>) => void): this;
|
|
141
141
|
/**
|
|
142
142
|
* Perform a check on the internal state of the model and return true if the model is changed.
|
|
143
143
|
* @param include_navigation Check in navigation properties
|
|
@@ -152,8 +152,8 @@ export declare class ODataModel<T> {
|
|
|
152
152
|
* @returns The result of the context
|
|
153
153
|
*/
|
|
154
154
|
asEntity<R>(ctx: (model: this) => R): R;
|
|
155
|
-
callFunction<P, R>(name: string, params: P | null, responseType: 'property' | 'model' | 'collection' | 'none', { ...options }?: {} &
|
|
156
|
-
callAction<P, R>(name: string, params: P | null, responseType: 'property' | 'model' | 'collection' | 'none', { ...options }?: {} &
|
|
155
|
+
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>;
|
|
156
|
+
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>;
|
|
157
157
|
cast<S>(type: string): ODataModel<S>;
|
|
158
158
|
fetchNavigationProperty<S>(name: keyof T | string, responseType: 'model' | 'collection', { ...options }?: {} & ODataQueryArgumentsOptions<S>): Observable<ODataModel<S> | ODataCollection<S, ODataModel<S>> | null>;
|
|
159
159
|
getValue<P>(name: keyof T | string, options?: ODataOptions): Observable<P | ODataModel<P> | ODataCollection<P, ODataModel<P>> | null>;
|
package/lib/models/options.d.ts
CHANGED
|
@@ -10,10 +10,10 @@ export declare class ODataModelEvent<T> {
|
|
|
10
10
|
value?: any;
|
|
11
11
|
previous?: any;
|
|
12
12
|
options?: any;
|
|
13
|
-
constructor(name: ODataModelEventType, { model, collection, previous, value,
|
|
13
|
+
constructor(name: ODataModelEventType, { model, collection, previous, value, field, options, }?: {
|
|
14
14
|
model?: ODataModel<T>;
|
|
15
15
|
collection?: ODataCollection<T, ODataModel<T>>;
|
|
16
|
-
|
|
16
|
+
field?: ODataModelField<any> | number;
|
|
17
17
|
previous?: any;
|
|
18
18
|
value?: any;
|
|
19
19
|
options?: any;
|
|
@@ -22,9 +22,9 @@ export declare class ODataModelEvent<T> {
|
|
|
22
22
|
stopPropagation(): void;
|
|
23
23
|
chain: [
|
|
24
24
|
ODataModel<any> | ODataCollection<any, ODataModel<any>>,
|
|
25
|
-
|
|
25
|
+
ODataModelField<any> | number | null
|
|
26
26
|
][];
|
|
27
|
-
push(model: ODataModel<any> | ODataCollection<any, ODataModel<any>>,
|
|
27
|
+
push(model: ODataModel<any> | ODataCollection<any, ODataModel<any>>, field: ODataModelField<any> | number): ODataModelEvent<T>;
|
|
28
28
|
visited(model: ODataModel<any> | ODataCollection<any, ODataModel<any>>): boolean;
|
|
29
29
|
get path(): string;
|
|
30
30
|
model?: ODataModel<T>;
|
|
@@ -162,8 +162,13 @@ export declare class ODataModelOptions<T> {
|
|
|
162
162
|
schema: ODataStructuredType<T>;
|
|
163
163
|
});
|
|
164
164
|
get api(): import("angular-odata").ODataApi;
|
|
165
|
-
type(
|
|
165
|
+
type({ alias }?: {
|
|
166
|
+
alias?: boolean;
|
|
167
|
+
}): string;
|
|
166
168
|
isTypeOf(type: string): boolean;
|
|
169
|
+
isModelFor(entity: T | {
|
|
170
|
+
[name: string]: any;
|
|
171
|
+
}): boolean;
|
|
167
172
|
findChildOptions(predicate: (options: ODataModelOptions<any>) => boolean): ODataModelOptions<any> | undefined;
|
|
168
173
|
configure({ findOptionsForType, options, }: {
|
|
169
174
|
findOptionsForType: (type: string) => ODataModelOptions<any> | undefined;
|
|
@@ -191,7 +196,7 @@ export declare class ODataModelOptions<T> {
|
|
|
191
196
|
resource?: ODataResource<T>;
|
|
192
197
|
annots?: ODataEntityAnnotations;
|
|
193
198
|
}): void;
|
|
194
|
-
query(self: ODataModel<T>, resource: ODataEntityResource<T> | ODataPropertyResource<T> | ODataNavigationPropertyResource<T> | ODataSingletonResource<T>, func: (q: ODataQueryOptionsHandler<T>) => void): ODataModel<T>;
|
|
199
|
+
query(self: ODataModel<T>, resource: ODataEntityResource<T> | ODataPropertyResource<T> | ODataNavigationPropertyResource<T> | ODataSingletonResource<T>, func: (q: ODataQueryOptionsHandler<T>, s?: ODataStructuredType<T>) => void): ODataModel<T>;
|
|
195
200
|
resolveKey(value: ODataModel<T> | T | {
|
|
196
201
|
[name: string]: any;
|
|
197
202
|
}, { field_mapping, resolve, }?: {
|
|
@@ -59,7 +59,7 @@ export declare type QueryCustomType = {
|
|
|
59
59
|
};
|
|
60
60
|
export declare type Value = string | Date | number | boolean | QueryCustomType;
|
|
61
61
|
export declare const raw: (value: string) => QueryCustomType;
|
|
62
|
-
export declare const alias: (value: any, name?: string
|
|
62
|
+
export declare const alias: (value: any, name?: string) => QueryCustomType;
|
|
63
63
|
export declare const duration: (value: string) => QueryCustomType;
|
|
64
64
|
export declare const binary: (value: string) => QueryCustomType;
|
|
65
65
|
export declare const isQueryCustomType: (value: any) => boolean;
|
|
@@ -45,6 +45,9 @@ export declare class ODataQueryOptionHandler<T> {
|
|
|
45
45
|
* @returns The value
|
|
46
46
|
*/
|
|
47
47
|
at(index: number): any;
|
|
48
|
+
some(predicate: (value: any) => boolean): boolean;
|
|
49
|
+
every(predicate: (value: any) => boolean): boolean;
|
|
50
|
+
find(predicate: (value: any) => boolean): any;
|
|
48
51
|
private assertObject;
|
|
49
52
|
/**
|
|
50
53
|
* Set the value for path in the managed odata query option.
|
|
@@ -86,6 +89,12 @@ export declare class ODataQueryOptionHandler<T> {
|
|
|
86
89
|
export declare class ODataQueryOptionsHandler<T> {
|
|
87
90
|
protected options: ODataQueryOptions<T>;
|
|
88
91
|
constructor(options: ODataQueryOptions<T>);
|
|
92
|
+
/**
|
|
93
|
+
* Create a raw odata value
|
|
94
|
+
* @param value The value to raw
|
|
95
|
+
* @returns The raw value
|
|
96
|
+
*/
|
|
97
|
+
raw(value: any): import("./builder").QueryCustomType;
|
|
89
98
|
/**
|
|
90
99
|
* Create a new odata alias parameter
|
|
91
100
|
* @link https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html#sec_ParameterAliases
|
|
@@ -94,6 +103,18 @@ export declare class ODataQueryOptionsHandler<T> {
|
|
|
94
103
|
* @returns The alias
|
|
95
104
|
*/
|
|
96
105
|
alias(value: any, name?: string): import("./builder").QueryCustomType;
|
|
106
|
+
/**
|
|
107
|
+
* Create a duration odata value
|
|
108
|
+
* @param value The value to duration
|
|
109
|
+
* @returns The duration value
|
|
110
|
+
*/
|
|
111
|
+
duration(value: any): import("./builder").QueryCustomType;
|
|
112
|
+
/**
|
|
113
|
+
* Create a binary odata value
|
|
114
|
+
* @param value The value to binary
|
|
115
|
+
* @returns The binary value
|
|
116
|
+
*/
|
|
117
|
+
binary(value: any): import("./builder").QueryCustomType;
|
|
97
118
|
/**
|
|
98
119
|
* Normalize the given value to a valid odata value
|
|
99
120
|
* @param value The value to normalize
|
|
@@ -211,14 +232,22 @@ export declare class ODataQueryOptionsHandler<T> {
|
|
|
211
232
|
* @param param0 skip or top or skiptoken
|
|
212
233
|
*/
|
|
213
234
|
paging({ skip, skiptoken, top, }?: {
|
|
214
|
-
skip?: number;
|
|
215
|
-
skiptoken?: string;
|
|
216
|
-
top?: number;
|
|
235
|
+
skip?: number | null;
|
|
236
|
+
skiptoken?: string | null;
|
|
237
|
+
top?: number | null;
|
|
217
238
|
}): void;
|
|
218
239
|
/**
|
|
219
240
|
* Shortcut for clear pagination by unset $top, $skip, $skiptoken.
|
|
220
241
|
*/
|
|
221
242
|
clearPaging(): void;
|
|
243
|
+
/**
|
|
244
|
+
* Shortcut for clear query.
|
|
245
|
+
*/
|
|
246
|
+
clear(): void;
|
|
247
|
+
/**
|
|
248
|
+
* Retrun the query.
|
|
249
|
+
*/
|
|
250
|
+
query(): ODataQueryArguments<T>;
|
|
222
251
|
/**
|
|
223
252
|
* Apply the given query options to the current query.
|
|
224
253
|
* @param query The query to be applied.
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { QueryOptionNames } from '../../types';
|
|
2
2
|
import { Expand, Filter, OrderBy, Select, Transform } from './builder';
|
|
3
|
-
import { Expression, FilterExpression, OrderByExpression, SearchExpression } from './expressions';
|
|
3
|
+
import { ComputeExpression, Expression, FilterExpression, OrderByExpression, SearchExpression } from './expressions';
|
|
4
4
|
import { ExpandExpression } from './expressions/expand';
|
|
5
5
|
import { SelectExpression } from './expressions/select';
|
|
6
6
|
import { ODataQueryOptionHandler } from './handlers';
|
|
7
7
|
export declare type ODataQueryArguments<T> = {
|
|
8
|
-
[QueryOptionNames.select]?: Select<T> | SelectExpression<T
|
|
9
|
-
[QueryOptionNames.
|
|
10
|
-
[QueryOptionNames.
|
|
11
|
-
[QueryOptionNames.
|
|
12
|
-
[QueryOptionNames.
|
|
13
|
-
[QueryOptionNames.
|
|
14
|
-
[QueryOptionNames.
|
|
15
|
-
[QueryOptionNames.
|
|
16
|
-
[QueryOptionNames.
|
|
17
|
-
[QueryOptionNames.
|
|
18
|
-
[QueryOptionNames.format]?: string;
|
|
8
|
+
[QueryOptionNames.select]?: Select<T> | SelectExpression<T> | null;
|
|
9
|
+
[QueryOptionNames.expand]?: Expand<T> | ExpandExpression<T> | null;
|
|
10
|
+
[QueryOptionNames.compute]?: string | ComputeExpression<T> | null;
|
|
11
|
+
[QueryOptionNames.filter]?: Filter<T> | FilterExpression<T> | null;
|
|
12
|
+
[QueryOptionNames.search]?: string | SearchExpression<T> | null;
|
|
13
|
+
[QueryOptionNames.transform]?: Transform<T> | null;
|
|
14
|
+
[QueryOptionNames.orderBy]?: OrderBy<T> | OrderByExpression<T> | null;
|
|
15
|
+
[QueryOptionNames.top]?: number | null;
|
|
16
|
+
[QueryOptionNames.skip]?: number | null;
|
|
17
|
+
[QueryOptionNames.skiptoken]?: string | null;
|
|
18
|
+
[QueryOptionNames.format]?: string | null;
|
|
19
|
+
[QueryOptionNames.levels]?: number | 'max' | null;
|
|
20
|
+
[QueryOptionNames.count]?: boolean | null;
|
|
19
21
|
};
|
|
20
22
|
export declare class ODataQueryOptions<T> {
|
|
21
23
|
values: Map<QueryOptionNames, any>;
|
|
@@ -16,7 +16,6 @@ export declare class ODataRequest<T> {
|
|
|
16
16
|
private readonly _headers;
|
|
17
17
|
private readonly _params;
|
|
18
18
|
private readonly _path;
|
|
19
|
-
private readonly _queryBody;
|
|
20
19
|
constructor(init: {
|
|
21
20
|
method: string;
|
|
22
21
|
api: ODataApi;
|
|
@@ -45,6 +44,8 @@ export declare class ODataRequest<T> {
|
|
|
45
44
|
get pathWithParams(): string;
|
|
46
45
|
get url(): string;
|
|
47
46
|
get urlWithParams(): string;
|
|
47
|
+
get cacheKey(): string;
|
|
48
|
+
isQueryBody(): boolean;
|
|
48
49
|
isBatch(): boolean;
|
|
49
50
|
isFetch(): boolean;
|
|
50
51
|
isMutate(): boolean;
|
|
@@ -37,6 +37,7 @@ export declare class ODataResource<T> {
|
|
|
37
37
|
* @returns boolean The resource has key ?
|
|
38
38
|
*/
|
|
39
39
|
hasKey(): boolean;
|
|
40
|
+
hasEntityKey(): boolean;
|
|
40
41
|
clearKey(): void | undefined;
|
|
41
42
|
asModel<M extends ODataModel<T>>(entity?: Partial<T> | {
|
|
42
43
|
[name: string]: any;
|
|
@@ -76,13 +77,13 @@ export declare class ODataResource<T> {
|
|
|
76
77
|
* @param f Function context for handle the segments
|
|
77
78
|
* @returns ODataActionResource
|
|
78
79
|
*/
|
|
79
|
-
segment(f: (q: ODataPathSegmentsHandler<T>) => void): this;
|
|
80
|
+
segment(f: (q: ODataPathSegmentsHandler<T>, s?: ODataStructuredType<T>) => void): this;
|
|
80
81
|
/**
|
|
81
82
|
* Handle the query options of the resource
|
|
82
83
|
* Create an object handler for mutate the query options of the resource
|
|
83
84
|
* @param f Function context for handle the query options
|
|
84
85
|
*/
|
|
85
|
-
query(f: (q: ODataQueryOptionsHandler<T>) => void): this;
|
|
86
|
+
query(f: (q: ODataQueryOptionsHandler<T>, s?: ODataStructuredType<T>) => void): this;
|
|
86
87
|
static resolveKey<T>(value: any, schema?: ODataStructuredType<T>): EntityKey<T> | undefined;
|
|
87
88
|
protected resolveKey(value: any): EntityKey<T> | undefined;
|
|
88
89
|
protected request(method: string, options: ODataOptions & {
|
|
@@ -25,6 +25,8 @@ export declare type ODataPropertyOptions = ODataOptions & {
|
|
|
25
25
|
export declare type ODataNoneOptions = ODataOptions & {
|
|
26
26
|
responseType?: 'none';
|
|
27
27
|
};
|
|
28
|
-
export declare type ODataQueryArgumentsOptions<T> = ODataQueryArguments<T
|
|
28
|
+
export declare type ODataQueryArgumentsOptions<T> = ODataOptions & ODataQueryArguments<T>;
|
|
29
|
+
export declare type ODataActionOptions<T> = ODataQueryArgumentsOptions<T>;
|
|
30
|
+
export declare type ODataFunctionOptions<T> = ODataQueryArgumentsOptions<T> & {
|
|
29
31
|
alias?: boolean;
|
|
30
|
-
}
|
|
32
|
+
};
|
package/lib/services/base.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { ODataClient } from '../client';
|
|
3
|
-
import { ODataActionResource, ODataEntities, ODataEntity, ODataFunctionResource, ODataNavigationPropertyResource, ODataProperty, ODataQueryArgumentsOptions } from '../resources';
|
|
3
|
+
import { ODataActionOptions, ODataActionResource, ODataEntities, ODataEntity, ODataFunctionOptions, ODataFunctionResource, ODataNavigationPropertyResource, ODataProperty, ODataQueryArgumentsOptions } from '../resources';
|
|
4
4
|
export declare abstract class ODataBaseService {
|
|
5
5
|
protected client: ODataClient;
|
|
6
6
|
protected name: string;
|
|
7
7
|
protected apiNameOrEntityType?: string | undefined;
|
|
8
8
|
constructor(client: ODataClient, name: string, apiNameOrEntityType?: string | undefined);
|
|
9
9
|
get api(): import("angular-odata").ODataApi;
|
|
10
|
-
protected callFunction<P, R>(params: P | null, resource: ODataFunctionResource<P, R>, responseType: 'entity', options?:
|
|
11
|
-
protected callFunction<P, R>(params: P | null, resource: ODataFunctionResource<P, R>, responseType: 'entities', options?:
|
|
12
|
-
protected callFunction<P, R>(params: P | null, resource: ODataFunctionResource<P, R>, responseType: 'property', options?:
|
|
13
|
-
protected callFunction<P, R>(params: P | null, resource: ODataFunctionResource<P, R>, responseType: 'none', options?:
|
|
14
|
-
protected callAction<P, R>(params: P | null, resource: ODataActionResource<P, R>, responseType: 'entity', options?:
|
|
15
|
-
protected callAction<P, R>(params: P | null, resource: ODataActionResource<P, R>, responseType: 'entities', options?:
|
|
16
|
-
protected callAction<P, R>(params: P | null, resource: ODataActionResource<P, R>, responseType: 'property', options?:
|
|
17
|
-
protected callAction<P, R>(params: P | null, resource: ODataActionResource<P, R>, responseType: 'none', options?:
|
|
10
|
+
protected callFunction<P, R>(params: P | null, resource: ODataFunctionResource<P, R>, responseType: 'entity', options?: ODataFunctionOptions<R>): Observable<ODataEntity<R>>;
|
|
11
|
+
protected callFunction<P, R>(params: P | null, resource: ODataFunctionResource<P, R>, responseType: 'entities', options?: ODataFunctionOptions<R>): Observable<ODataEntities<R>>;
|
|
12
|
+
protected callFunction<P, R>(params: P | null, resource: ODataFunctionResource<P, R>, responseType: 'property', options?: ODataFunctionOptions<R>): Observable<ODataProperty<R>>;
|
|
13
|
+
protected callFunction<P, R>(params: P | null, resource: ODataFunctionResource<P, R>, responseType: 'none', options?: ODataFunctionOptions<R>): Observable<null>;
|
|
14
|
+
protected callAction<P, R>(params: P | null, resource: ODataActionResource<P, R>, responseType: 'entity', options?: ODataActionOptions<R>): Observable<ODataEntity<R>>;
|
|
15
|
+
protected callAction<P, R>(params: P | null, resource: ODataActionResource<P, R>, responseType: 'entities', options?: ODataActionOptions<R>): Observable<ODataEntities<R>>;
|
|
16
|
+
protected callAction<P, R>(params: P | null, resource: ODataActionResource<P, R>, responseType: 'property', options?: ODataActionOptions<R>): Observable<ODataProperty<R>>;
|
|
17
|
+
protected callAction<P, R>(params: P | null, resource: ODataActionResource<P, R>, responseType: 'none', options?: ODataActionOptions<R>): Observable<null>;
|
|
18
18
|
protected fetchNavigationProperty<S>(resource: ODataNavigationPropertyResource<S>, responseType: 'entity', options?: ODataQueryArgumentsOptions<S>): Observable<ODataEntity<S>>;
|
|
19
19
|
protected fetchNavigationProperty<S>(resource: ODataNavigationPropertyResource<S>, responseType: 'entities', options?: ODataQueryArgumentsOptions<S>): Observable<ODataEntities<S>>;
|
|
20
20
|
}
|
package/lib/utils/objects.d.ts
CHANGED
package/lib/utils/strings.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-odata",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.102.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Client side OData typescript library for Angular",
|
|
6
6
|
"repository": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"homepage": "https://github.com/diegomvh/angular-odata",
|
|
26
26
|
"private": false,
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@angular/common": "
|
|
29
|
-
"@angular/core": "
|
|
28
|
+
"@angular/common": ">=13.0.0",
|
|
29
|
+
"@angular/core": ">=13.0.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"tslib": "^2.3.0"
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"esm2020": "esm2020/angular-odata.mjs",
|
|
37
37
|
"fesm2020": "fesm2020/angular-odata.mjs",
|
|
38
38
|
"fesm2015": "fesm2015/angular-odata.mjs",
|
|
39
|
-
"typings": "
|
|
39
|
+
"typings": "index.d.ts",
|
|
40
40
|
"exports": {
|
|
41
41
|
"./package.json": {
|
|
42
42
|
"default": "./package.json"
|
|
43
43
|
},
|
|
44
44
|
".": {
|
|
45
|
-
"types": "./
|
|
45
|
+
"types": "./index.d.ts",
|
|
46
46
|
"esm2020": "./esm2020/angular-odata.mjs",
|
|
47
47
|
"es2020": "./fesm2020/angular-odata.mjs",
|
|
48
48
|
"es2015": "./fesm2015/angular-odata.mjs",
|