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.
- package/fesm2022/angular-odata.mjs +276 -543
- package/fesm2022/angular-odata.mjs.map +1 -1
- package/index.d.ts +6403 -3
- package/package.json +3 -3
- package/schematics/apigen/angular/base.js +2 -6
- package/schematics/apigen/angular/base.js.map +1 -1
- package/schematics/apigen/angular/entity.js +1 -2
- package/schematics/apigen/angular/entity.js.map +1 -1
- package/schematics/apigen/index.js +2 -6
- package/schematics/apigen/index.js.map +1 -1
- package/schematics/apigen/metadata/csdl/csdl-annotation.js +1 -2
- package/schematics/apigen/metadata/csdl/csdl-annotation.js.map +1 -1
- package/schematics/apigen/metadata/csdl/csdl-entity-container.js.map +1 -1
- package/schematics/apigen/metadata/csdl/csdl-entity-set.js.map +1 -1
- package/schematics/apigen/metadata/csdl/csdl-enum-type.d.ts +1 -1
- package/schematics/apigen/metadata/csdl/csdl-enum-type.js +1 -1
- package/schematics/apigen/metadata/csdl/csdl-enum-type.js.map +1 -1
- package/schematics/apigen/metadata/csdl/csdl-function-action.d.ts +1 -1
- package/schematics/apigen/metadata/csdl/csdl-reference.js +1 -2
- package/schematics/apigen/metadata/csdl/csdl-reference.js.map +1 -1
- package/schematics/apigen/metadata/csdl/csdl-schema.js +1 -2
- package/schematics/apigen/metadata/csdl/csdl-schema.js.map +1 -1
- package/schematics/apigen/metadata/csdl/csdl-singleton.js.map +1 -1
- package/schematics/apigen/metadata/csdl/csdl-structural-property.d.ts +1 -1
- package/schematics/apigen/metadata/csdl/csdl-structural-property.js +2 -3
- package/schematics/apigen/metadata/csdl/csdl-structural-property.js.map +1 -1
- package/schematics/apigen/metadata/csdl/csdl-structured-type.d.ts +1 -1
- package/schematics/apigen/metadata/csdl/csdl-structured-type.js +1 -2
- package/schematics/apigen/metadata/csdl/csdl-structured-type.js.map +1 -1
- package/schematics/apigen/metadata/parser.js +1 -3
- package/schematics/apigen/metadata/parser.js.map +1 -1
- package/schematics/apigen/utils.js +2 -4
- package/schematics/apigen/utils.js.map +1 -1
- package/lib/annotations.d.ts +0 -75
- package/lib/api.d.ts +0 -107
- package/lib/cache/cache.d.ts +0 -104
- package/lib/cache/index.d.ts +0 -3
- package/lib/cache/memory.d.ts +0 -19
- package/lib/cache/storage.d.ts +0 -35
- package/lib/client.d.ts +0 -613
- package/lib/constants.d.ts +0 -70
- package/lib/helper.d.ts +0 -75
- package/lib/index.d.ts +0 -14
- package/lib/loaders.d.ts +0 -21
- package/lib/metadata/csdl/csdl-annotation.d.ts +0 -159
- package/lib/metadata/csdl/csdl-entity-container.d.ts +0 -31
- package/lib/metadata/csdl/csdl-entity-set.d.ts +0 -25
- package/lib/metadata/csdl/csdl-enum-type.d.ts +0 -37
- package/lib/metadata/csdl/csdl-function-action.d.ts +0 -148
- package/lib/metadata/csdl/csdl-navigation-property-binding.d.ts +0 -12
- package/lib/metadata/csdl/csdl-reference.d.ts +0 -53
- package/lib/metadata/csdl/csdl-schema.d.ts +0 -37
- package/lib/metadata/csdl/csdl-singleton.d.ts +0 -21
- package/lib/metadata/csdl/csdl-structural-property.d.ts +0 -86
- package/lib/metadata/csdl/csdl-structured-type.d.ts +0 -94
- package/lib/metadata/csdl/csdl-type-definition.d.ts +0 -25
- package/lib/metadata/index.d.ts +0 -2
- package/lib/metadata/metadata.d.ts +0 -23
- package/lib/metadata/parser.d.ts +0 -110
- package/lib/models/collection.d.ts +0 -183
- package/lib/models/index.d.ts +0 -3
- package/lib/models/model.d.ts +0 -176
- package/lib/models/options.d.ts +0 -368
- package/lib/module.d.ts +0 -19
- package/lib/options.d.ts +0 -101
- package/lib/resources/index.d.ts +0 -6
- package/lib/resources/options.d.ts +0 -18
- package/lib/resources/path/handlers.d.ts +0 -29
- package/lib/resources/path/index.d.ts +0 -2
- package/lib/resources/path/segments.d.ts +0 -54
- package/lib/resources/query/builder.d.ts +0 -103
- package/lib/resources/query/expressions/apply.d.ts +0 -125
- package/lib/resources/query/expressions/base.d.ts +0 -25
- package/lib/resources/query/expressions/compute.d.ts +0 -39
- package/lib/resources/query/expressions/count.d.ts +0 -58
- package/lib/resources/query/expressions/expand.d.ts +0 -69
- package/lib/resources/query/expressions/filter.d.ts +0 -77
- package/lib/resources/query/expressions/index.d.ts +0 -9
- package/lib/resources/query/expressions/orderby.d.ts +0 -55
- package/lib/resources/query/expressions/search.d.ts +0 -63
- package/lib/resources/query/expressions/select.d.ts +0 -34
- package/lib/resources/query/expressions/syntax.d.ts +0 -313
- package/lib/resources/query/handlers.d.ts +0 -270
- package/lib/resources/query/index.d.ts +0 -4
- package/lib/resources/query/options.d.ts +0 -60
- package/lib/resources/request.d.ts +0 -64
- package/lib/resources/resource.d.ts +0 -161
- package/lib/resources/response.d.ts +0 -82
- package/lib/resources/types/action.d.ts +0 -84
- package/lib/resources/types/batch.d.ts +0 -62
- package/lib/resources/types/count.d.ts +0 -20
- package/lib/resources/types/entity-set.d.ts +0 -79
- package/lib/resources/types/entity.d.ts +0 -54
- package/lib/resources/types/function.d.ts +0 -108
- package/lib/resources/types/index.d.ts +0 -14
- package/lib/resources/types/media.d.ts +0 -28
- package/lib/resources/types/metadata.d.ts +0 -13
- package/lib/resources/types/navigation-property.d.ts +0 -157
- package/lib/resources/types/options.d.ts +0 -32
- package/lib/resources/types/property.d.ts +0 -115
- package/lib/resources/types/reference.d.ts +0 -74
- package/lib/resources/types/singleton.d.ts +0 -87
- package/lib/resources/types/value.d.ts +0 -19
- package/lib/schema/annotation.d.ts +0 -28
- package/lib/schema/callable.d.ts +0 -41
- package/lib/schema/element.d.ts +0 -52
- package/lib/schema/entity-container.d.ts +0 -10
- package/lib/schema/entity-set.d.ts +0 -10
- package/lib/schema/enum-type.d.ts +0 -55
- package/lib/schema/index.d.ts +0 -8
- package/lib/schema/parsers/callable.d.ts +0 -47
- package/lib/schema/parsers/edm.d.ts +0 -4
- package/lib/schema/parsers/enum-type.d.ts +0 -56
- package/lib/schema/parsers/index.d.ts +0 -4
- package/lib/schema/parsers/structured-type.d.ts +0 -172
- package/lib/schema/schema.d.ts +0 -26
- package/lib/schema/singleton.d.ts +0 -10
- package/lib/schema/structured-type.d.ts +0 -152
- package/lib/services/base.d.ts +0 -20
- package/lib/services/entity-set.d.ts +0 -120
- package/lib/services/entity.d.ts +0 -11
- package/lib/services/factory.d.ts +0 -33
- package/lib/services/index.d.ts +0 -4
- package/lib/services/singleton.d.ts +0 -44
- package/lib/settings.d.ts +0 -26
- package/lib/types.d.ts +0 -285
- package/lib/utils/arraybuffers.d.ts +0 -4
- package/lib/utils/arrays.d.ts +0 -3
- package/lib/utils/dates.d.ts +0 -3
- package/lib/utils/durations.d.ts +0 -14
- package/lib/utils/enums.d.ts +0 -23
- package/lib/utils/http.d.ts +0 -22
- package/lib/utils/index.d.ts +0 -9
- package/lib/utils/objects.d.ts +0 -37
- package/lib/utils/odata.d.ts +0 -4
- package/lib/utils/strings.d.ts +0 -7
- package/lib/utils/types.d.ts +0 -11
- package/lib/utils/urls.d.ts +0 -4
- package/public-api.d.ts +0 -1
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { Parser, ParserOptions, QueryOption } from '../../types';
|
|
2
|
-
import { Expand, Filter, OrderBy, Select, Transform } from './builder';
|
|
3
|
-
import { ComputeExpression, Expression, FilterExpression, OrderByExpression, SearchExpression } from './expressions';
|
|
4
|
-
import { ApplyExpression } from './expressions/apply';
|
|
5
|
-
import { ExpandExpression } from './expressions/expand';
|
|
6
|
-
import { SelectExpression } from './expressions/select';
|
|
7
|
-
import { ODataQueryOptionHandler } from './handlers';
|
|
8
|
-
export type ODataQueryArguments<T> = {
|
|
9
|
-
[QueryOption.select]?: Select<T> | SelectExpression<T> | null;
|
|
10
|
-
[QueryOption.expand]?: Expand<T> | ExpandExpression<T> | null;
|
|
11
|
-
[QueryOption.compute]?: string | ComputeExpression<T> | null;
|
|
12
|
-
[QueryOption.apply]?: string | ApplyExpression<T> | null;
|
|
13
|
-
[QueryOption.filter]?: Filter<T> | FilterExpression<T> | null;
|
|
14
|
-
[QueryOption.search]?: string | SearchExpression<T> | null;
|
|
15
|
-
[QueryOption.transform]?: Transform<T> | null;
|
|
16
|
-
[QueryOption.orderBy]?: OrderBy<T> | OrderByExpression<T> | null;
|
|
17
|
-
[QueryOption.top]?: number | null;
|
|
18
|
-
[QueryOption.skip]?: number | null;
|
|
19
|
-
[QueryOption.skiptoken]?: string | null;
|
|
20
|
-
[QueryOption.format]?: string | null;
|
|
21
|
-
[QueryOption.levels]?: number | 'max' | null;
|
|
22
|
-
[QueryOption.count]?: boolean | null;
|
|
23
|
-
};
|
|
24
|
-
export declare const pathAndParamsFromQueryOptions: <T>(values: Map<QueryOption, any>, { escape, parser, options, }?: {
|
|
25
|
-
escape?: boolean;
|
|
26
|
-
parser?: Parser<T>;
|
|
27
|
-
options?: ParserOptions;
|
|
28
|
-
}) => [string, {
|
|
29
|
-
[name: string]: any;
|
|
30
|
-
}];
|
|
31
|
-
export declare class ODataQueryOptions<T> {
|
|
32
|
-
private _values;
|
|
33
|
-
constructor(values?: Map<QueryOption, any>);
|
|
34
|
-
pathAndParams({ escape, parser, options, }?: {
|
|
35
|
-
escape?: boolean;
|
|
36
|
-
parser?: Parser<T>;
|
|
37
|
-
options?: ParserOptions;
|
|
38
|
-
}): [string, {
|
|
39
|
-
[name: string]: any;
|
|
40
|
-
}];
|
|
41
|
-
toString({ escape, parser, }?: {
|
|
42
|
-
escape?: boolean;
|
|
43
|
-
parser?: Parser<T>;
|
|
44
|
-
}): string;
|
|
45
|
-
toJson(): {};
|
|
46
|
-
fromJson<T>(json: {
|
|
47
|
-
[name: string]: any;
|
|
48
|
-
}): this;
|
|
49
|
-
static fromJson<T>(json: {
|
|
50
|
-
[name: string]: any;
|
|
51
|
-
}): ODataQueryOptions<T>;
|
|
52
|
-
toQueryArguments(): ODataQueryArguments<T>;
|
|
53
|
-
clone<O>(): ODataQueryOptions<O>;
|
|
54
|
-
expression(key: QueryOption, exp?: Expression<T>): any;
|
|
55
|
-
option<O>(key: QueryOption, opts?: O): ODataQueryOptionHandler<O>;
|
|
56
|
-
has(key: QueryOption): boolean;
|
|
57
|
-
remove(...keys: QueryOption[]): void;
|
|
58
|
-
keep(...keys: QueryOption[]): void;
|
|
59
|
-
clear(): void;
|
|
60
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { HttpContext, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
2
|
-
import { ODataApi } from '../api';
|
|
3
|
-
import { FetchPolicy, ParserOptions, QueryOption } from '../types';
|
|
4
|
-
import { ODataResource } from './resource';
|
|
5
|
-
import { ODataOptions } from './types';
|
|
6
|
-
export declare class ODataRequest<T> {
|
|
7
|
-
readonly api: ODataApi;
|
|
8
|
-
readonly observe: 'events' | 'response';
|
|
9
|
-
readonly context?: HttpContext;
|
|
10
|
-
readonly reportProgress?: boolean;
|
|
11
|
-
readonly withCredentials?: boolean;
|
|
12
|
-
readonly bodyQueryOptions: QueryOption[];
|
|
13
|
-
readonly fetchPolicy: 'cache-first' | 'cache-and-network' | 'network-only' | 'no-cache' | 'cache-only';
|
|
14
|
-
readonly resource: ODataResource<T>;
|
|
15
|
-
private readonly _responseType?;
|
|
16
|
-
private readonly _method;
|
|
17
|
-
private readonly _body;
|
|
18
|
-
private readonly _headers;
|
|
19
|
-
private readonly _params;
|
|
20
|
-
private readonly _path;
|
|
21
|
-
constructor(init: {
|
|
22
|
-
method: string;
|
|
23
|
-
api: ODataApi;
|
|
24
|
-
resource: ODataResource<T>;
|
|
25
|
-
body: any;
|
|
26
|
-
observe: 'events' | 'response';
|
|
27
|
-
context?: HttpContext;
|
|
28
|
-
etag?: string;
|
|
29
|
-
headers?: HttpHeaders | {
|
|
30
|
-
[header: string]: string | string[];
|
|
31
|
-
};
|
|
32
|
-
reportProgress?: boolean;
|
|
33
|
-
params?: HttpParams | {
|
|
34
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
35
|
-
};
|
|
36
|
-
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text' | 'value' | 'property' | 'entity' | 'entities';
|
|
37
|
-
fetchPolicy?: FetchPolicy;
|
|
38
|
-
parserOptions?: ParserOptions;
|
|
39
|
-
withCredentials?: boolean;
|
|
40
|
-
bodyQueryOptions?: QueryOption[];
|
|
41
|
-
});
|
|
42
|
-
static factory(api: ODataApi, method: string, resource: ODataResource<any>, options: ODataOptions & {
|
|
43
|
-
body?: any;
|
|
44
|
-
etag?: string;
|
|
45
|
-
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text' | 'value' | 'property' | 'entity' | 'entities';
|
|
46
|
-
observe: 'events' | 'response';
|
|
47
|
-
withCount?: boolean;
|
|
48
|
-
bodyQueryOptions?: QueryOption[];
|
|
49
|
-
}): ODataRequest<any>;
|
|
50
|
-
get responseType(): 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
51
|
-
get path(): string;
|
|
52
|
-
get method(): string;
|
|
53
|
-
get body(): any;
|
|
54
|
-
get params(): HttpParams;
|
|
55
|
-
get headers(): HttpHeaders;
|
|
56
|
-
get pathWithParams(): string;
|
|
57
|
-
get url(): string;
|
|
58
|
-
get urlWithParams(): string;
|
|
59
|
-
get cacheKey(): string;
|
|
60
|
-
isQueryBody(): boolean;
|
|
61
|
-
isBatch(): boolean;
|
|
62
|
-
isFetch(): boolean;
|
|
63
|
-
isMutate(): boolean;
|
|
64
|
-
}
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ODataApi } from '../api';
|
|
3
|
-
import { ModelInterface, ODataCollection, ODataModel } from '../models';
|
|
4
|
-
import { ODataStructuredType } from '../schema';
|
|
5
|
-
import { ParserOptions, QueryOption, ODataStructuredTypeFieldConfig } from '../types';
|
|
6
|
-
import { ODataPathSegments, ODataPathSegmentsHandler } from './path';
|
|
7
|
-
import { ODataQueryOptions, ODataQueryOptionsHandler } from './query';
|
|
8
|
-
import { ApplyExpression, ApplyExpressionBuilder, QueryCustomType } from './query';
|
|
9
|
-
import { ODataOptions } from './types';
|
|
10
|
-
import { ODataEntitiesAnnotations, ODataEntityAnnotations } from '../annotations';
|
|
11
|
-
export type EntityKey<T> = {
|
|
12
|
-
readonly [P in keyof T]?: T[P];
|
|
13
|
-
} | QueryCustomType | string | number;
|
|
14
|
-
export declare class ODataResource<T> {
|
|
15
|
-
api: ODataApi;
|
|
16
|
-
protected pathSegments: ODataPathSegments;
|
|
17
|
-
protected queryOptions: ODataQueryOptions<T>;
|
|
18
|
-
constructor(api: ODataApi, { segments, query, }?: {
|
|
19
|
-
segments?: ODataPathSegments;
|
|
20
|
-
query?: ODataQueryOptions<T>;
|
|
21
|
-
});
|
|
22
|
-
/**
|
|
23
|
-
* @returns string The outgoing type of the resource
|
|
24
|
-
*/
|
|
25
|
-
outgoingType(): string | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* @returns string The incoming type of the resource
|
|
28
|
-
*/
|
|
29
|
-
incomingType(): string | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* @returns string The binding type of the resource
|
|
32
|
-
*/
|
|
33
|
-
bindingType(): string | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* @returns string All covered types of the resource
|
|
36
|
-
*/
|
|
37
|
-
types(): string[];
|
|
38
|
-
callable(): import("angular-odata").ODataCallable<any> | undefined;
|
|
39
|
-
enumType(): import("angular-odata").ODataEnumType<any> | undefined;
|
|
40
|
-
structuredType(): ODataStructuredType<any> | ODataStructuredType<T> | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* @returns boolean The resource has key ?
|
|
43
|
-
*/
|
|
44
|
-
hasKey(): boolean;
|
|
45
|
-
hasEntityKey(): boolean;
|
|
46
|
-
clearKey(): void | undefined;
|
|
47
|
-
asModel(entity?: Partial<T> | {
|
|
48
|
-
[name: string]: any;
|
|
49
|
-
}): ODataModel<T> & ModelInterface<T>;
|
|
50
|
-
asModel(entity: Partial<T> | {
|
|
51
|
-
[name: string]: any;
|
|
52
|
-
}, { reset, annots, ModelType, }: {
|
|
53
|
-
reset?: boolean;
|
|
54
|
-
annots?: ODataEntityAnnotations<T>;
|
|
55
|
-
ModelType?: typeof ODataModel;
|
|
56
|
-
}): ODataModel<T> & ModelInterface<T>;
|
|
57
|
-
asModel<M extends ODataModel<T>>(entity?: Partial<T> | {
|
|
58
|
-
[name: string]: any;
|
|
59
|
-
}): M;
|
|
60
|
-
asModel<M extends ODataModel<T>>(entity: Partial<T> | {
|
|
61
|
-
[name: string]: any;
|
|
62
|
-
}, { reset, annots, ModelType, }: {
|
|
63
|
-
reset?: boolean;
|
|
64
|
-
annots?: ODataEntityAnnotations<T>;
|
|
65
|
-
ModelType?: typeof ODataModel;
|
|
66
|
-
}): M;
|
|
67
|
-
asCollection(entities?: Partial<T>[] | {
|
|
68
|
-
[name: string]: any;
|
|
69
|
-
}[]): ODataCollection<T, ODataModel<T> & ModelInterface<T>>;
|
|
70
|
-
asCollection(entities: Partial<T>[] | {
|
|
71
|
-
[name: string]: any;
|
|
72
|
-
}[], { reset, annots, CollectionType, }: {
|
|
73
|
-
reset?: boolean;
|
|
74
|
-
annots?: ODataEntitiesAnnotations<T>;
|
|
75
|
-
CollectionType?: typeof ODataCollection;
|
|
76
|
-
}): ODataCollection<T, ODataModel<T> & ModelInterface<T>>;
|
|
77
|
-
asCollection<M extends ODataModel<T>, C extends ODataCollection<T, M>>(entities?: Partial<T>[] | {
|
|
78
|
-
[name: string]: any;
|
|
79
|
-
}[]): C;
|
|
80
|
-
asCollection<M extends ODataModel<T>, C extends ODataCollection<T, M>>(entities: Partial<T>[] | {
|
|
81
|
-
[name: string]: any;
|
|
82
|
-
}[], { reset, annots, CollectionType, }: {
|
|
83
|
-
reset?: boolean;
|
|
84
|
-
annots?: ODataEntitiesAnnotations<T>;
|
|
85
|
-
CollectionType?: typeof ODataCollection;
|
|
86
|
-
}): C;
|
|
87
|
-
isTypeOf(other: ODataResource<any>): boolean;
|
|
88
|
-
isSubtypeOf(other: ODataResource<any>): boolean;
|
|
89
|
-
isSupertypeOf(other: ODataResource<any>): boolean;
|
|
90
|
-
isEqualTo(other: ODataResource<any>, test?: 'path' | 'params'): boolean;
|
|
91
|
-
pathAndParams({ escape, ...options }?: ParserOptions & {
|
|
92
|
-
escape?: boolean;
|
|
93
|
-
}): [string, {
|
|
94
|
-
[name: string]: any;
|
|
95
|
-
}];
|
|
96
|
-
endpointUrl({ escape, params, ...options }?: ParserOptions & {
|
|
97
|
-
escape?: boolean;
|
|
98
|
-
params?: boolean;
|
|
99
|
-
}): string;
|
|
100
|
-
toString({ escape, ...options }?: ParserOptions & {
|
|
101
|
-
escape?: boolean;
|
|
102
|
-
}): string;
|
|
103
|
-
clone(): ODataResource<T>;
|
|
104
|
-
private __parser;
|
|
105
|
-
deserialize(value: any, options?: ParserOptions): any;
|
|
106
|
-
serialize(value: any, options?: ParserOptions): any;
|
|
107
|
-
encode(value: any, options?: ParserOptions): any;
|
|
108
|
-
toJson(): {
|
|
109
|
-
segments: any[];
|
|
110
|
-
options: {};
|
|
111
|
-
};
|
|
112
|
-
cloneSegments(): ODataPathSegments;
|
|
113
|
-
clearQuery(): this;
|
|
114
|
-
cloneQuery<P>(): ODataQueryOptions<P>;
|
|
115
|
-
/**
|
|
116
|
-
* Handle the path segments of the resource
|
|
117
|
-
* Create an object handler for mutate the path segments of the resource
|
|
118
|
-
* @param f Function context for handle the segments
|
|
119
|
-
* @returns ODataActionResource
|
|
120
|
-
*/
|
|
121
|
-
segment(f: (q: ODataPathSegmentsHandler<T>, s?: ODataStructuredType<T>) => void): this;
|
|
122
|
-
/**
|
|
123
|
-
* Handle the query options of the resource
|
|
124
|
-
* Create an object handler for mutate the query options of the resource
|
|
125
|
-
* @param f Function context for handle the query options
|
|
126
|
-
*/
|
|
127
|
-
query(f: (q: ODataQueryOptionsHandler<T>, s?: ODataStructuredType<T>) => void): this;
|
|
128
|
-
transform<R>(opts: (builder: ApplyExpressionBuilder<T>, current?: ApplyExpression<T>) => ApplyExpression<T>, { type, fields, }?: {
|
|
129
|
-
type?: string;
|
|
130
|
-
fields?: {
|
|
131
|
-
[name: string]: ODataStructuredTypeFieldConfig;
|
|
132
|
-
};
|
|
133
|
-
}): ODataResource<R>;
|
|
134
|
-
static resolveKey<T>(value: any, schema?: ODataStructuredType<T>): EntityKey<T> | undefined;
|
|
135
|
-
protected resolveKey(value: any): EntityKey<T> | undefined;
|
|
136
|
-
protected get(options?: ODataOptions & {
|
|
137
|
-
etag?: string;
|
|
138
|
-
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text' | 'value' | 'property' | 'entity' | 'entities';
|
|
139
|
-
withCount?: boolean;
|
|
140
|
-
bodyQueryOptions?: QueryOption[];
|
|
141
|
-
}): Observable<any>;
|
|
142
|
-
protected post(body: any, options?: ODataOptions & {
|
|
143
|
-
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text' | 'value' | 'property' | 'entity' | 'entities';
|
|
144
|
-
withCount?: boolean;
|
|
145
|
-
}): Observable<any>;
|
|
146
|
-
protected put(body: any, options?: ODataOptions & {
|
|
147
|
-
etag?: string;
|
|
148
|
-
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text' | 'value' | 'property' | 'entity' | 'entities';
|
|
149
|
-
withCount?: boolean;
|
|
150
|
-
}): Observable<any>;
|
|
151
|
-
protected patch(body: any, options?: ODataOptions & {
|
|
152
|
-
etag?: string;
|
|
153
|
-
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text' | 'value' | 'property' | 'entity' | 'entities';
|
|
154
|
-
withCount?: boolean;
|
|
155
|
-
}): Observable<any>;
|
|
156
|
-
protected delete(options?: ODataOptions & {
|
|
157
|
-
etag?: string;
|
|
158
|
-
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text' | 'value' | 'property' | 'entity' | 'entities';
|
|
159
|
-
withCount?: boolean;
|
|
160
|
-
}): Observable<any>;
|
|
161
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { HttpHeaders, HttpResponse } from '@angular/common/http';
|
|
2
|
-
import { ODataEntityAnnotations, ODataEntitiesAnnotations, ODataPropertyAnnotations } from '../annotations';
|
|
3
|
-
import { ODataResource } from './resource';
|
|
4
|
-
import { ODataApi } from '../api';
|
|
5
|
-
import { ODataRequest } from './request';
|
|
6
|
-
import { ODataContext } from '../helper';
|
|
7
|
-
import { ODataResponseOptions } from './options';
|
|
8
|
-
export type ODataEntity<T> = {
|
|
9
|
-
entity: T | null;
|
|
10
|
-
annots: ODataEntityAnnotations<T>;
|
|
11
|
-
};
|
|
12
|
-
export type ODataEntities<T> = {
|
|
13
|
-
entities: T[] | null;
|
|
14
|
-
annots: ODataEntitiesAnnotations<T>;
|
|
15
|
-
};
|
|
16
|
-
export type ODataProperty<T> = {
|
|
17
|
-
property: T | null;
|
|
18
|
-
annots: ODataPropertyAnnotations<T>;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* OData Response
|
|
22
|
-
*/
|
|
23
|
-
export declare class ODataResponse<T> extends HttpResponse<T> {
|
|
24
|
-
readonly api: ODataApi;
|
|
25
|
-
readonly resource: ODataResource<T>;
|
|
26
|
-
constructor(init: {
|
|
27
|
-
api: ODataApi;
|
|
28
|
-
resource: ODataResource<T>;
|
|
29
|
-
body: T | null;
|
|
30
|
-
headers: HttpHeaders;
|
|
31
|
-
status: number;
|
|
32
|
-
statusText: string;
|
|
33
|
-
url?: string;
|
|
34
|
-
});
|
|
35
|
-
static fromHttpResponse<T>(req: ODataRequest<T>, res: HttpResponse<T>): ODataResponse<T>;
|
|
36
|
-
static fromJson<T>(req: ODataRequest<T>, json: {
|
|
37
|
-
body: T | null;
|
|
38
|
-
headers: {
|
|
39
|
-
[name: string]: string | string[];
|
|
40
|
-
};
|
|
41
|
-
status: number;
|
|
42
|
-
statusText: string;
|
|
43
|
-
url: string | null;
|
|
44
|
-
}): ODataResponse<T>;
|
|
45
|
-
toJson(): {
|
|
46
|
-
body: T | null;
|
|
47
|
-
headers: {
|
|
48
|
-
[x: string]: string[];
|
|
49
|
-
};
|
|
50
|
-
status: number;
|
|
51
|
-
statusText: string;
|
|
52
|
-
url: string | null;
|
|
53
|
-
};
|
|
54
|
-
private _options?;
|
|
55
|
-
get options(): ODataResponseOptions;
|
|
56
|
-
private _payload?;
|
|
57
|
-
get payload(): any;
|
|
58
|
-
private _context?;
|
|
59
|
-
get context(): ODataContext;
|
|
60
|
-
private _annotations?;
|
|
61
|
-
get annotations(): Map<string, any>;
|
|
62
|
-
/**
|
|
63
|
-
* Handle the response body as an entity
|
|
64
|
-
* @returns
|
|
65
|
-
*/
|
|
66
|
-
entity(): ODataEntity<T>;
|
|
67
|
-
/**
|
|
68
|
-
* Handle the response body as entities
|
|
69
|
-
* @returns
|
|
70
|
-
*/
|
|
71
|
-
entities(): ODataEntities<T>;
|
|
72
|
-
/**
|
|
73
|
-
* Handle the response body as a property
|
|
74
|
-
* @returns
|
|
75
|
-
*/
|
|
76
|
-
property(): ODataProperty<T>;
|
|
77
|
-
/**
|
|
78
|
-
* Handle the response body as a value
|
|
79
|
-
* @returns
|
|
80
|
-
*/
|
|
81
|
-
value(): T | null;
|
|
82
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ODataApi } from '../../api';
|
|
3
|
-
import { ODataCollection, ODataModel } from '../../models';
|
|
4
|
-
import { ODataPathSegments } from '../path';
|
|
5
|
-
import { ODataResource } from '../resource';
|
|
6
|
-
import { ODataEntitiesOptions, ODataEntityOptions, ODataOptions, ODataPropertyOptions } from './options';
|
|
7
|
-
import { ODataEntities, ODataEntity, ODataProperty } from '../response';
|
|
8
|
-
export declare class ODataActionResource<P, R> extends ODataResource<R> {
|
|
9
|
-
static factory<P, R>(api: ODataApi, { path, outgoingType, incomingType, bindingType, segments, }: {
|
|
10
|
-
path: string;
|
|
11
|
-
outgoingType?: string;
|
|
12
|
-
incomingType?: string;
|
|
13
|
-
bindingType?: string;
|
|
14
|
-
segments?: ODataPathSegments;
|
|
15
|
-
}): ODataActionResource<P, R>;
|
|
16
|
-
static fromResource<P, R>(resource: ODataResource<any>, path: string): ODataActionResource<P, R>;
|
|
17
|
-
clone(): ODataActionResource<P, R>;
|
|
18
|
-
protected post(params: P | null, options?: ODataEntityOptions & ODataEntitiesOptions & ODataPropertyOptions): Observable<any>;
|
|
19
|
-
/**
|
|
20
|
-
* Execute the action
|
|
21
|
-
* @param params Parameters to be sent to the action
|
|
22
|
-
* @param options Options for the request
|
|
23
|
-
*/
|
|
24
|
-
call(params: P | null, options?: ODataEntityOptions): Observable<ODataEntity<R>>;
|
|
25
|
-
call(params: P | null, options?: ODataEntitiesOptions): Observable<ODataEntities<R>>;
|
|
26
|
-
call(params: P | null, options?: ODataPropertyOptions): Observable<ODataProperty<R>>;
|
|
27
|
-
call(params: P | null, options?: {
|
|
28
|
-
alias?: boolean;
|
|
29
|
-
responseType?: 'blob';
|
|
30
|
-
} & ODataOptions): Observable<Blob>;
|
|
31
|
-
call(params: P | null, options?: {
|
|
32
|
-
alias?: boolean;
|
|
33
|
-
responseType?: 'arraybuffer';
|
|
34
|
-
} & ODataOptions): Observable<ArrayBuffer>;
|
|
35
|
-
call(params: P | null, options?: {
|
|
36
|
-
alias?: boolean;
|
|
37
|
-
responseType?: 'none';
|
|
38
|
-
} & ODataOptions): Observable<null>;
|
|
39
|
-
/**
|
|
40
|
-
* Execute the action and return the result as a property
|
|
41
|
-
* @param params Parameters for the action
|
|
42
|
-
* @param options Options for the request
|
|
43
|
-
* @returns Observable of the result of the action
|
|
44
|
-
*/
|
|
45
|
-
callProperty(params: P | null, options?: ODataOptions): Observable<R | null>;
|
|
46
|
-
/**
|
|
47
|
-
* Execute the action and return the result as a entity
|
|
48
|
-
* @param params Parameters for the action
|
|
49
|
-
* @param options Options for the request
|
|
50
|
-
* @returns Observable of the result of the action
|
|
51
|
-
*/
|
|
52
|
-
callEntity(params: P | null, options?: ODataOptions): Observable<R | null>;
|
|
53
|
-
/**
|
|
54
|
-
* Execute the action and return the result as a model
|
|
55
|
-
* @param params Parameters for the action
|
|
56
|
-
* @param options Options for the request
|
|
57
|
-
* @returns Observable of the result of the action
|
|
58
|
-
*/
|
|
59
|
-
callModel(params: P | null, options?: ODataOptions & {
|
|
60
|
-
ModelType?: typeof ODataModel;
|
|
61
|
-
}): Observable<(ODataModel<R> & import("angular-odata").ModelInterface<R>) | null>;
|
|
62
|
-
/**
|
|
63
|
-
* Execute the action and return the result as a entities
|
|
64
|
-
* @param params Parameters for the action
|
|
65
|
-
* @param options Options for the request
|
|
66
|
-
* @returns Observable of the result of the action
|
|
67
|
-
*/
|
|
68
|
-
callEntities(params: P | null, options?: ODataOptions): Observable<R[] | null>;
|
|
69
|
-
/**
|
|
70
|
-
* Execute the action and return the result as a collection
|
|
71
|
-
* @param params Parameters for the action
|
|
72
|
-
* @param options Options for the request
|
|
73
|
-
* @returns Observable of the result of the action
|
|
74
|
-
*/
|
|
75
|
-
callCollection(params: P | null, options?: ODataOptions & {
|
|
76
|
-
CollectionType?: typeof ODataCollection;
|
|
77
|
-
}): Observable<ODataCollection<R, ODataModel<R> & import("angular-odata").ModelInterface<R>> | null>;
|
|
78
|
-
callArraybuffer(params: P | null, { alias, ...options }?: {
|
|
79
|
-
alias?: boolean;
|
|
80
|
-
} & ODataOptions): Observable<ArrayBuffer>;
|
|
81
|
-
callBlob(params: P | null, { alias, ...options }?: {
|
|
82
|
-
alias?: boolean;
|
|
83
|
-
} & ODataOptions): Observable<Blob>;
|
|
84
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { HttpErrorResponse, HttpResponseBase } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { Subject } from 'rxjs';
|
|
4
|
-
import { ODataApi } from '../../api';
|
|
5
|
-
import { ODataRequest } from '../request';
|
|
6
|
-
import { ODataResource } from '../resource';
|
|
7
|
-
import { ODataOptions } from './options';
|
|
8
|
-
import { ODataApiOptions } from '../../options';
|
|
9
|
-
import { ODataResponse } from '../response';
|
|
10
|
-
export declare class ODataBatchRequest<T> extends Subject<HttpResponseBase> {
|
|
11
|
-
request: ODataRequest<any>;
|
|
12
|
-
id: string;
|
|
13
|
-
group: string;
|
|
14
|
-
constructor(request: ODataRequest<any>);
|
|
15
|
-
toString(): string;
|
|
16
|
-
toLegacy({ relativeUrls }?: {
|
|
17
|
-
relativeUrls?: boolean;
|
|
18
|
-
}): string;
|
|
19
|
-
toJson({ relativeUrls }?: {
|
|
20
|
-
relativeUrls?: boolean;
|
|
21
|
-
}): {
|
|
22
|
-
[name: string]: any;
|
|
23
|
-
};
|
|
24
|
-
onLoad(response: HttpResponseBase): void;
|
|
25
|
-
onError(response: HttpErrorResponse): void;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* OData Batch Resource
|
|
29
|
-
* https://www.odata.org/getting-started/advanced-tutorial/#batch
|
|
30
|
-
*/
|
|
31
|
-
export declare class ODataBatchResource extends ODataResource<any> {
|
|
32
|
-
private _requests;
|
|
33
|
-
requests(): ODataRequest<any>[];
|
|
34
|
-
private _responses;
|
|
35
|
-
responses(): HttpResponseBase[] | null;
|
|
36
|
-
static factory(api: ODataApi): ODataBatchResource;
|
|
37
|
-
clone(): ODataBatchResource;
|
|
38
|
-
private storeRequester;
|
|
39
|
-
private restoreRequester;
|
|
40
|
-
/**
|
|
41
|
-
* Add to batch request
|
|
42
|
-
* @param ctx The context for the request
|
|
43
|
-
* @returns The result of execute the context
|
|
44
|
-
*/
|
|
45
|
-
add<R>(ctx: (batch: this) => R): R;
|
|
46
|
-
send(options?: ODataOptions): Observable<ODataResponse<any>>;
|
|
47
|
-
private sendJson;
|
|
48
|
-
private sendLegacy;
|
|
49
|
-
/**
|
|
50
|
-
* Execute the batch request
|
|
51
|
-
* @param ctx The context for the request
|
|
52
|
-
* @param options The options of the batch request
|
|
53
|
-
* @returns The result of execute the context
|
|
54
|
-
*/
|
|
55
|
-
exec<R>(ctx: (batch: this) => R, options?: ODataOptions): Observable<[R, ODataResponse<string>]>;
|
|
56
|
-
body(): string;
|
|
57
|
-
json(): Object;
|
|
58
|
-
static buildLegacyBody(batchBoundary: string, requests: ODataBatchRequest<any>[], options: ODataApiOptions): string;
|
|
59
|
-
static buildJsonBody(requests: ODataBatchRequest<any>[], options: ODataApiOptions): Object;
|
|
60
|
-
static parseLegacyResponse(requests: ODataBatchRequest<any>[], response: ODataResponse<string>): HttpResponseBase[];
|
|
61
|
-
static parseJsonResponse(requests: ODataBatchRequest<any>[], response: ODataResponse<any>): HttpResponseBase[];
|
|
62
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ODataApi } from '../../api';
|
|
3
|
-
import { ODataPathSegments } from '../path';
|
|
4
|
-
import { ODataQueryOptions } from '../query';
|
|
5
|
-
import { ODataResource } from '../resource';
|
|
6
|
-
import { ODataOptions } from './options';
|
|
7
|
-
export declare class ODataCountResource<T> extends ODataResource<T> {
|
|
8
|
-
static factory<T>(api: ODataApi, { segments, query, }: {
|
|
9
|
-
segments: ODataPathSegments;
|
|
10
|
-
query?: ODataQueryOptions<T>;
|
|
11
|
-
}): ODataCountResource<T>;
|
|
12
|
-
clone(): ODataCountResource<T>;
|
|
13
|
-
protected get(options?: ODataOptions): Observable<any>;
|
|
14
|
-
/**
|
|
15
|
-
* Fetch the count of the set.
|
|
16
|
-
* @param options Options for the request
|
|
17
|
-
* @returns The count of the set
|
|
18
|
-
*/
|
|
19
|
-
fetch(options?: ODataOptions): Observable<number>;
|
|
20
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ODataApi } from '../../api';
|
|
3
|
-
import type { ModelInterface, ODataCollection, ODataModel } from '../../models';
|
|
4
|
-
import { QueryOption, ODataStructuredTypeFieldConfig } from '../../types';
|
|
5
|
-
import { ApplyExpression, ApplyExpressionBuilder, ODataQueryOptions } from '../query';
|
|
6
|
-
import { ODataResource } from '../resource';
|
|
7
|
-
import { ODataActionResource } from './action';
|
|
8
|
-
import { ODataCountResource } from './count';
|
|
9
|
-
import { ODataEntityResource } from './entity';
|
|
10
|
-
import { ODataFunctionResource } from './function';
|
|
11
|
-
import { ODataOptions } from './options';
|
|
12
|
-
import { ODataEntities, ODataEntity } from '../response';
|
|
13
|
-
export declare class ODataEntitySetResource<T> extends ODataResource<T> {
|
|
14
|
-
static factory<E>(api: ODataApi, { path, type, query, }: {
|
|
15
|
-
path: string;
|
|
16
|
-
type?: string;
|
|
17
|
-
query?: ODataQueryOptions<E>;
|
|
18
|
-
}): ODataEntitySetResource<E>;
|
|
19
|
-
clone(): ODataEntitySetResource<T>;
|
|
20
|
-
transform<R>(opts: (builder: ApplyExpressionBuilder<T>, current?: ApplyExpression<T>) => ApplyExpression<T>, { type, fields, }?: {
|
|
21
|
-
type?: string;
|
|
22
|
-
fields?: {
|
|
23
|
-
[name: string]: ODataStructuredTypeFieldConfig;
|
|
24
|
-
};
|
|
25
|
-
}): ODataEntitySetResource<R>;
|
|
26
|
-
entity(key?: any): ODataEntityResource<T>;
|
|
27
|
-
action<P, R>(path: string): ODataActionResource<P, R>;
|
|
28
|
-
function<P, R>(path: string): ODataFunctionResource<P, R>;
|
|
29
|
-
count(): ODataCountResource<T>;
|
|
30
|
-
cast<C>(type: string): ODataEntitySetResource<C>;
|
|
31
|
-
protected post(attrs: Partial<T>, options?: ODataOptions): Observable<any>;
|
|
32
|
-
protected get(options?: ODataOptions & {
|
|
33
|
-
withCount?: boolean;
|
|
34
|
-
bodyQueryOptions?: QueryOption[];
|
|
35
|
-
}): Observable<any>;
|
|
36
|
-
create(attrs: Partial<T>, options?: ODataOptions): Observable<ODataEntity<T>>;
|
|
37
|
-
fetch(options?: ODataOptions & {
|
|
38
|
-
withCount?: boolean;
|
|
39
|
-
bodyQueryOptions?: QueryOption[];
|
|
40
|
-
}): Observable<ODataEntities<T>>;
|
|
41
|
-
fetchAll(options?: ODataOptions & {
|
|
42
|
-
withCount?: boolean;
|
|
43
|
-
bodyQueryOptions?: QueryOption[];
|
|
44
|
-
}): Observable<{
|
|
45
|
-
entities: any[];
|
|
46
|
-
annots: import("angular-odata").ODataEntitiesAnnotations<any>;
|
|
47
|
-
}>;
|
|
48
|
-
fetchMany(top: number, options?: ODataOptions & {
|
|
49
|
-
withCount?: boolean;
|
|
50
|
-
bodyQueryOptions?: QueryOption[];
|
|
51
|
-
}): Observable<{
|
|
52
|
-
entities: T[];
|
|
53
|
-
annots: import("angular-odata").ODataEntitiesAnnotations<T>;
|
|
54
|
-
} | {
|
|
55
|
-
entities: T[];
|
|
56
|
-
annots: import("angular-odata").ODataEntitiesAnnotations<any>;
|
|
57
|
-
}>;
|
|
58
|
-
fetchOne(options?: ODataOptions & {
|
|
59
|
-
withCount?: boolean;
|
|
60
|
-
bodyQueryOptions?: QueryOption[];
|
|
61
|
-
}): Observable<{
|
|
62
|
-
entity: T | null;
|
|
63
|
-
annots: import("angular-odata").ODataEntitiesAnnotations<T>;
|
|
64
|
-
}>;
|
|
65
|
-
fetchEntities(options?: ODataOptions & {
|
|
66
|
-
withCount?: boolean;
|
|
67
|
-
bodyQueryOptions?: QueryOption[];
|
|
68
|
-
}): Observable<T[] | null>;
|
|
69
|
-
fetchCollection(options?: ODataOptions & {
|
|
70
|
-
withCount?: boolean;
|
|
71
|
-
bodyQueryOptions?: QueryOption[];
|
|
72
|
-
CollectionType?: typeof ODataCollection;
|
|
73
|
-
}): Observable<ODataCollection<T, ODataModel<T> & ModelInterface<T>> | null>;
|
|
74
|
-
fetchCollection<M extends ODataModel<T>, C extends ODataCollection<T, M>>(options?: ODataOptions & {
|
|
75
|
-
withCount?: boolean;
|
|
76
|
-
bodyQueryOptions?: QueryOption[];
|
|
77
|
-
CollectionType?: typeof ODataCollection;
|
|
78
|
-
}): Observable<C | null>;
|
|
79
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ODataApi } from '../../api';
|
|
3
|
-
import { ModelInterface, ODataModel } from '../../models';
|
|
4
|
-
import { QueryOption } from '../../types';
|
|
5
|
-
import { ODataPathSegments } from '../path';
|
|
6
|
-
import { ODataQueryOptions } from '../query';
|
|
7
|
-
import { ODataResource } from '../resource';
|
|
8
|
-
import { ODataEntity } from '../response';
|
|
9
|
-
import { ODataActionResource } from './action';
|
|
10
|
-
import { ODataFunctionResource } from './function';
|
|
11
|
-
import { ODataMediaResource } from './media';
|
|
12
|
-
import { ODataNavigationPropertyResource } from './navigation-property';
|
|
13
|
-
import { ODataOptions } from './options';
|
|
14
|
-
import { ODataPropertyResource } from './property';
|
|
15
|
-
export declare class ODataEntityResource<T> extends ODataResource<T> {
|
|
16
|
-
static factory<E>(api: ODataApi, { segments, query, }: {
|
|
17
|
-
segments: ODataPathSegments;
|
|
18
|
-
query?: ODataQueryOptions<E>;
|
|
19
|
-
}): ODataEntityResource<E>;
|
|
20
|
-
clone(): ODataEntityResource<T>;
|
|
21
|
-
key(value: any): ODataEntityResource<T>;
|
|
22
|
-
keys(values: any[]): ODataEntityResource<T>;
|
|
23
|
-
media(): ODataMediaResource;
|
|
24
|
-
navigationProperty<N>(path: string): ODataNavigationPropertyResource<N>;
|
|
25
|
-
property<P>(path: string): ODataPropertyResource<P>;
|
|
26
|
-
action<P, R>(path: string): ODataActionResource<P, R>;
|
|
27
|
-
function<P, R>(path: string): ODataFunctionResource<P, R>;
|
|
28
|
-
cast<C>(type: string): ODataEntityResource<C>;
|
|
29
|
-
protected post(attrs: Partial<T>, options?: ODataOptions): Observable<any>;
|
|
30
|
-
protected put(attrs: Partial<T>, options?: ODataOptions): Observable<any>;
|
|
31
|
-
protected patch(attrs: Partial<T>, options?: ODataOptions): Observable<any>;
|
|
32
|
-
protected delete(options?: ODataOptions): Observable<any>;
|
|
33
|
-
protected get(options?: ODataOptions & {
|
|
34
|
-
bodyQueryOptions?: QueryOption[];
|
|
35
|
-
}): Observable<any>;
|
|
36
|
-
create(attrs: Partial<T>, options?: ODataOptions): Observable<ODataEntity<T>>;
|
|
37
|
-
update(attrs: Partial<T>, options?: ODataOptions): Observable<ODataEntity<T>>;
|
|
38
|
-
modify(attrs: Partial<T>, options?: ODataOptions): Observable<ODataEntity<T>>;
|
|
39
|
-
destroy(options?: ODataOptions): Observable<any>;
|
|
40
|
-
fetch(options?: ODataOptions & {
|
|
41
|
-
bodyQueryOptions?: QueryOption[];
|
|
42
|
-
}): Observable<ODataEntity<T>>;
|
|
43
|
-
fetchEntity(options?: ODataOptions & {
|
|
44
|
-
bodyQueryOptions?: QueryOption[];
|
|
45
|
-
}): Observable<T | null>;
|
|
46
|
-
fetchModel(options?: ODataOptions & {
|
|
47
|
-
bodyQueryOptions?: QueryOption[];
|
|
48
|
-
ModelType?: typeof ODataModel;
|
|
49
|
-
}): Observable<(ODataModel<T> & ModelInterface<T>) | null>;
|
|
50
|
-
fetchModel<M extends ODataModel<T>>(options?: ODataOptions & {
|
|
51
|
-
bodyQueryOptions?: QueryOption[];
|
|
52
|
-
ModelType?: typeof ODataModel;
|
|
53
|
-
}): Observable<M | null>;
|
|
54
|
-
}
|