angular-odata 0.130.0 → 0.131.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 +2298 -2162
- package/fesm2022/angular-odata.mjs.map +1 -1
- package/lib/api.d.ts +10 -11
- package/lib/cache/cache.d.ts +2 -2
- package/lib/cache/memory.d.ts +2 -2
- package/lib/cache/storage.d.ts +2 -2
- package/lib/loaders.d.ts +8 -8
- package/lib/metadata/csdl/csdl-annotation.d.ts +3 -3
- package/lib/metadata/csdl/csdl-entity-container.d.ts +2 -2
- package/lib/metadata/csdl/csdl-entity-set.d.ts +2 -2
- package/lib/metadata/csdl/csdl-enum-type.d.ts +3 -3
- package/lib/metadata/csdl/csdl-function-action.d.ts +4 -4
- package/lib/metadata/csdl/csdl-reference.d.ts +2 -2
- package/lib/metadata/csdl/csdl-schema.d.ts +2 -2
- package/lib/metadata/csdl/csdl-structural-property.d.ts +3 -3
- package/lib/metadata/csdl/csdl-structured-type.d.ts +3 -3
- package/lib/metadata/metadata.d.ts +2 -2
- package/lib/models/options.d.ts +2 -2
- package/lib/module.d.ts +3 -3
- package/lib/options.d.ts +3 -3
- package/lib/resources/query/expressions/apply.d.ts +1 -1
- package/lib/resources/query/expressions/compute.d.ts +1 -1
- package/lib/resources/query/expressions/count.d.ts +1 -1
- package/lib/resources/query/expressions/expand.d.ts +4 -3
- package/lib/resources/query/expressions/filter.d.ts +2 -1
- package/lib/resources/query/expressions/orderby.d.ts +2 -1
- package/lib/resources/query/expressions/search.d.ts +2 -1
- package/lib/resources/query/expressions/select.d.ts +2 -1
- package/lib/resources/query/handlers.d.ts +17 -5
- package/lib/resources/resource.d.ts +5 -5
- package/lib/resources/types/action.d.ts +2 -2
- package/lib/resources/types/entity-set.d.ts +2 -2
- package/lib/resources/types/navigation-property.d.ts +2 -2
- package/lib/resources/types/property.d.ts +2 -2
- package/lib/schema/annotation.d.ts +3 -3
- package/lib/schema/callable.d.ts +3 -3
- package/lib/schema/element.d.ts +3 -3
- package/lib/schema/entity-container.d.ts +2 -2
- package/lib/schema/entity-set.d.ts +2 -2
- package/lib/schema/enum-type.d.ts +2 -2
- package/lib/schema/parsers/callable.d.ts +4 -4
- package/lib/schema/parsers/enum-type.d.ts +3 -3
- package/lib/schema/parsers/structured-type.d.ts +4 -4
- package/lib/schema/schema.d.ts +3 -3
- package/lib/schema/singleton.d.ts +2 -2
- package/lib/schema/structured-type.d.ts +3 -3
- package/lib/services/entity.d.ts +1 -1
- package/lib/settings.d.ts +2 -2
- package/lib/types.d.ts +76 -74
- package/lib/utils/odata.d.ts +2 -2
- package/package.json +3 -5
- package/schematics/apigen/files/api-config/__fileName__.ts +4 -4
- package/esm2022/angular-odata.mjs +0 -5
- package/esm2022/lib/annotations.mjs +0 -146
- package/esm2022/lib/api.mjs +0 -439
- package/esm2022/lib/cache/cache.mjs +0 -177
- package/esm2022/lib/cache/index.mjs +0 -4
- package/esm2022/lib/cache/memory.mjs +0 -30
- package/esm2022/lib/cache/storage.mjs +0 -57
- package/esm2022/lib/client.mjs +0 -215
- package/esm2022/lib/constants.mjs +0 -95
- package/esm2022/lib/helper.mjs +0 -288
- package/esm2022/lib/index.mjs +0 -22
- package/esm2022/lib/loaders.mjs +0 -43
- package/esm2022/lib/metadata/csdl/csdl-annotation.mjs +0 -273
- package/esm2022/lib/metadata/csdl/csdl-entity-container.mjs +0 -59
- package/esm2022/lib/metadata/csdl/csdl-entity-set.mjs +0 -50
- package/esm2022/lib/metadata/csdl/csdl-enum-type.mjs +0 -74
- package/esm2022/lib/metadata/csdl/csdl-function-action.mjs +0 -204
- package/esm2022/lib/metadata/csdl/csdl-navigation-property-binding.mjs +0 -15
- package/esm2022/lib/metadata/csdl/csdl-reference.mjs +0 -76
- package/esm2022/lib/metadata/csdl/csdl-schema.mjs +0 -87
- package/esm2022/lib/metadata/csdl/csdl-singleton.mjs +0 -37
- package/esm2022/lib/metadata/csdl/csdl-structural-property.mjs +0 -145
- package/esm2022/lib/metadata/csdl/csdl-structured-type.mjs +0 -159
- package/esm2022/lib/metadata/csdl/csdl-type-definition.mjs +0 -46
- package/esm2022/lib/metadata/index.mjs +0 -3
- package/esm2022/lib/metadata/metadata.mjs +0 -41
- package/esm2022/lib/metadata/parser.mjs +0 -564
- package/esm2022/lib/models/collection.mjs +0 -816
- package/esm2022/lib/models/index.mjs +0 -4
- package/esm2022/lib/models/model.mjs +0 -577
- package/esm2022/lib/models/options.mjs +0 -1227
- package/esm2022/lib/module.mjs +0 -55
- package/esm2022/lib/options.mjs +0 -91
- package/esm2022/lib/resources/index.mjs +0 -7
- package/esm2022/lib/resources/options.mjs +0 -66
- package/esm2022/lib/resources/path/handlers.mjs +0 -81
- package/esm2022/lib/resources/path/index.mjs +0 -3
- package/esm2022/lib/resources/path/segments.mjs +0 -149
- package/esm2022/lib/resources/query/builder.mjs +0 -645
- package/esm2022/lib/resources/query/expressions/apply.mjs +0 -238
- package/esm2022/lib/resources/query/expressions/base.mjs +0 -26
- package/esm2022/lib/resources/query/expressions/compute.mjs +0 -55
- package/esm2022/lib/resources/query/expressions/count.mjs +0 -118
- package/esm2022/lib/resources/query/expressions/expand.mjs +0 -154
- package/esm2022/lib/resources/query/expressions/filter.mjs +0 -180
- package/esm2022/lib/resources/query/expressions/index.mjs +0 -10
- package/esm2022/lib/resources/query/expressions/orderby.mjs +0 -81
- package/esm2022/lib/resources/query/expressions/search.mjs +0 -144
- package/esm2022/lib/resources/query/expressions/select.mjs +0 -49
- package/esm2022/lib/resources/query/expressions/syntax.mjs +0 -770
- package/esm2022/lib/resources/query/handlers.mjs +0 -423
- package/esm2022/lib/resources/query/index.mjs +0 -5
- package/esm2022/lib/resources/query/options.mjs +0 -140
- package/esm2022/lib/resources/request.mjs +0 -210
- package/esm2022/lib/resources/resource.mjs +0 -316
- package/esm2022/lib/resources/response.mjs +0 -180
- package/esm2022/lib/resources/types/action.mjs +0 -118
- package/esm2022/lib/resources/types/batch.mjs +0 -428
- package/esm2022/lib/resources/types/count.mjs +0 -33
- package/esm2022/lib/resources/types/entity-set.mjs +0 -131
- package/esm2022/lib/resources/types/entity.mjs +0 -112
- package/esm2022/lib/resources/types/function.mjs +0 -149
- package/esm2022/lib/resources/types/index.mjs +0 -15
- package/esm2022/lib/resources/types/media.mjs +0 -44
- package/esm2022/lib/resources/types/metadata.mjs +0 -35
- package/esm2022/lib/resources/types/navigation-property.mjs +0 -246
- package/esm2022/lib/resources/types/options.mjs +0 -2
- package/esm2022/lib/resources/types/property.mjs +0 -187
- package/esm2022/lib/resources/types/reference.mjs +0 -87
- package/esm2022/lib/resources/types/singleton.mjs +0 -125
- package/esm2022/lib/resources/types/value.mjs +0 -48
- package/esm2022/lib/schema/annotation.mjs +0 -44
- package/esm2022/lib/schema/callable.mjs +0 -69
- package/esm2022/lib/schema/element.mjs +0 -70
- package/esm2022/lib/schema/entity-container.mjs +0 -13
- package/esm2022/lib/schema/entity-set.mjs +0 -11
- package/esm2022/lib/schema/enum-type.mjs +0 -69
- package/esm2022/lib/schema/index.mjs +0 -9
- package/esm2022/lib/schema/parsers/callable.mjs +0 -123
- package/esm2022/lib/schema/parsers/edm.mjs +0 -101
- package/esm2022/lib/schema/parsers/enum-type.mjs +0 -148
- package/esm2022/lib/schema/parsers/index.mjs +0 -5
- package/esm2022/lib/schema/parsers/structured-type.mjs +0 -548
- package/esm2022/lib/schema/schema.mjs +0 -52
- package/esm2022/lib/schema/singleton.mjs +0 -11
- package/esm2022/lib/schema/structured-type.mjs +0 -220
- package/esm2022/lib/services/base.mjs +0 -32
- package/esm2022/lib/services/entity-set.mjs +0 -161
- package/esm2022/lib/services/entity.mjs +0 -12
- package/esm2022/lib/services/factory.mjs +0 -39
- package/esm2022/lib/services/index.mjs +0 -5
- package/esm2022/lib/services/singleton.mjs +0 -55
- package/esm2022/lib/settings.mjs +0 -113
- package/esm2022/lib/types.mjs +0 -118
- package/esm2022/lib/utils/arraybuffers.mjs +0 -46
- package/esm2022/lib/utils/arrays.mjs +0 -10
- package/esm2022/lib/utils/dates.mjs +0 -18
- package/esm2022/lib/utils/durations.mjs +0 -40
- package/esm2022/lib/utils/enums.mjs +0 -61
- package/esm2022/lib/utils/http.mjs +0 -95
- package/esm2022/lib/utils/index.mjs +0 -10
- package/esm2022/lib/utils/objects.mjs +0 -204
- package/esm2022/lib/utils/odata.mjs +0 -22
- package/esm2022/lib/utils/strings.mjs +0 -20
- package/esm2022/lib/utils/types.mjs +0 -136
- package/esm2022/lib/utils/urls.mjs +0 -24
- package/esm2022/public-api.mjs +0 -5
package/lib/api.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { ODataCache } from './cache';
|
|
3
2
|
import { ModelOptions, ODataCollection, ODataModel, ODataModelOptions } from './models';
|
|
4
3
|
import { ODataApiOptions } from './options';
|
|
5
4
|
import { ODataOptions, ODataResource, ODataSegment } from './resources';
|
|
6
5
|
import { ODataRequest, ODataBatchResource, ODataMetadataResource, ODataActionResource, ODataFunctionResource, ODataEntityResource, ODataEntitySetResource, ODataSingletonResource, ODataNavigationPropertyResource } from './resources';
|
|
7
6
|
import { ODataCallable, ODataEntitySet, ODataEnumType, ODataSchema, ODataSingleton, ODataStructuredType } from './schema';
|
|
8
|
-
import {
|
|
7
|
+
import { ODataApiConfig, EdmType, ODataVersion, Parser, QueryOption, ODataSchemaConfig, ODataCache } from './types';
|
|
9
8
|
import { ODataMetadata } from './metadata/metadata';
|
|
10
9
|
/**
|
|
11
10
|
* Api abstraction for consuming OData services.
|
|
@@ -19,11 +18,11 @@ export declare class ODataApi {
|
|
|
19
18
|
default: boolean;
|
|
20
19
|
creation: Date;
|
|
21
20
|
options: ODataApiOptions;
|
|
22
|
-
cache
|
|
21
|
+
cache?: ODataCache;
|
|
23
22
|
errorHandler?: (error: any, caught: Observable<any>) => Observable<never>;
|
|
24
23
|
parsers: Map<string, Parser<any>>;
|
|
25
24
|
schemas: ODataSchema[];
|
|
26
|
-
constructor(config:
|
|
25
|
+
constructor(config: ODataApiConfig);
|
|
27
26
|
configure(settings?: {
|
|
28
27
|
requester?: (request: ODataRequest<any>) => Observable<any>;
|
|
29
28
|
}): void;
|
|
@@ -74,9 +73,9 @@ export declare class ODataApi {
|
|
|
74
73
|
* @returns ODataFunctionResource
|
|
75
74
|
*/
|
|
76
75
|
function<P, R>(path: string): ODataFunctionResource<P, R>;
|
|
77
|
-
callable<T>(type: string): ODataCallable<
|
|
78
|
-
enumType<T>(type: string): ODataEnumType<
|
|
79
|
-
structuredType<T>(type: string): ODataStructuredType<T> | undefined;
|
|
76
|
+
callable<T>(type: string): ODataCallable<any> | undefined;
|
|
77
|
+
enumType<T>(type: string): ODataEnumType<any> | undefined;
|
|
78
|
+
structuredType<T>(type: string): ODataStructuredType<any> | ODataStructuredType<T> | undefined;
|
|
80
79
|
request<T>(method: string, resource: ODataResource<any>, options: ODataOptions & {
|
|
81
80
|
body?: any;
|
|
82
81
|
etag?: string;
|
|
@@ -86,11 +85,11 @@ export declare class ODataApi {
|
|
|
86
85
|
bodyQueryOptions?: QueryOption[];
|
|
87
86
|
}): Observable<any>;
|
|
88
87
|
private memo;
|
|
89
|
-
createSchema(config:
|
|
88
|
+
createSchema(config: ODataSchemaConfig): ODataSchema;
|
|
90
89
|
findSchema(type: string): ODataSchema | undefined;
|
|
91
|
-
findEnumType<T>(value: string): ODataEnumType<
|
|
92
|
-
findStructuredType<T>(value: string): ODataStructuredType<T> | undefined;
|
|
93
|
-
findCallable<R>(value: string, bindingType?: string): ODataCallable<
|
|
90
|
+
findEnumType<T>(value: string): ODataEnumType<any> | undefined;
|
|
91
|
+
findStructuredType<T>(value: string): ODataStructuredType<any> | ODataStructuredType<T> | undefined;
|
|
92
|
+
findCallable<R>(value: string, bindingType?: string): ODataCallable<any> | undefined;
|
|
94
93
|
findEntitySet(value: string): ODataEntitySet | undefined;
|
|
95
94
|
findSingleton(value: string): ODataSingleton | undefined;
|
|
96
95
|
findModel(type: string): typeof ODataModel | undefined;
|
package/lib/cache/cache.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { ODataRequest, ODataResponse } from '../resources';
|
|
3
|
-
import {
|
|
3
|
+
import { ODataCache } from '../types';
|
|
4
4
|
/**
|
|
5
5
|
* A cache entry that holds a payload, a last read time, and a timeout for the entry.
|
|
6
6
|
* @param payload The payload to cache.
|
|
@@ -14,7 +14,7 @@ export interface ODataCacheEntry<T> {
|
|
|
14
14
|
timeout: number;
|
|
15
15
|
tags: string[];
|
|
16
16
|
}
|
|
17
|
-
export declare abstract class
|
|
17
|
+
export declare abstract class ODataBaseCache implements ODataCache {
|
|
18
18
|
timeout: number;
|
|
19
19
|
entries: Map<string, ODataCacheEntry<any>>;
|
|
20
20
|
constructor({ timeout }: {
|
package/lib/cache/memory.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ODataRequest, ODataResponse } from '../resources';
|
|
2
|
-
import {
|
|
3
|
-
export declare class ODataInMemoryCache extends
|
|
2
|
+
import { ODataBaseCache } from './cache';
|
|
3
|
+
export declare class ODataInMemoryCache extends ODataBaseCache {
|
|
4
4
|
constructor({ timeout }?: {
|
|
5
5
|
timeout?: number;
|
|
6
6
|
});
|
package/lib/cache/storage.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ODataRequest, ODataResponse } from '../resources';
|
|
2
|
-
import {
|
|
3
|
-
export declare class ODataInStorageCache extends
|
|
2
|
+
import { ODataBaseCache } from './cache';
|
|
3
|
+
export declare class ODataInStorageCache extends ODataBaseCache {
|
|
4
4
|
name: string;
|
|
5
5
|
storage: Storage;
|
|
6
6
|
constructor({ name, storage, timeout, }: {
|
package/lib/loaders.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import {
|
|
2
|
+
import { ODataApiConfig } from './types';
|
|
3
3
|
export declare abstract class ODataConfigLoader {
|
|
4
|
-
abstract loadConfigs(): Observable<
|
|
4
|
+
abstract loadConfigs(): Observable<ODataApiConfig[]>;
|
|
5
5
|
}
|
|
6
6
|
export declare class ODataConfigSyncLoader implements ODataConfigLoader {
|
|
7
7
|
private readonly passedConfigs;
|
|
8
|
-
constructor(passedConfigs:
|
|
9
|
-
loadConfigs(): Observable<
|
|
8
|
+
constructor(passedConfigs: ODataApiConfig | ODataApiConfig[]);
|
|
9
|
+
loadConfigs(): Observable<ODataApiConfig[]>;
|
|
10
10
|
}
|
|
11
11
|
export declare class ODataConfigAsyncLoader implements ODataConfigLoader {
|
|
12
12
|
private readonly configs$;
|
|
13
|
-
constructor(configs$: Observable<
|
|
14
|
-
loadConfigs(): Observable<
|
|
13
|
+
constructor(configs$: Observable<ODataApiConfig>[] | Observable<ODataApiConfig | ODataApiConfig[]>);
|
|
14
|
+
loadConfigs(): Observable<ODataApiConfig[]>;
|
|
15
15
|
}
|
|
16
16
|
export declare class ODataMetadataLoader implements ODataConfigLoader {
|
|
17
17
|
private readonly sources$;
|
|
18
18
|
private readonly baseConfigs;
|
|
19
|
-
constructor(sources$: Observable<string | string[]>, baseConfigs:
|
|
20
|
-
loadConfigs(): Observable<
|
|
19
|
+
constructor(sources$: Observable<string | string[]>, baseConfigs: ODataApiConfig | ODataApiConfig[]);
|
|
20
|
+
loadConfigs(): Observable<ODataApiConfig[]>;
|
|
21
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ODataAnnotationConfig } from '../../types';
|
|
2
2
|
import type { CsdlSchema } from './csdl-schema';
|
|
3
3
|
export declare class CsdlAnnotable {
|
|
4
4
|
Annotation?: CsdlAnnotation[];
|
|
@@ -24,7 +24,7 @@ export declare class CsdlAnnotations extends CsdlAnnotable {
|
|
|
24
24
|
toJson(): {
|
|
25
25
|
[key: string]: any;
|
|
26
26
|
};
|
|
27
|
-
toConfig():
|
|
27
|
+
toConfig(): ODataAnnotationConfig[];
|
|
28
28
|
}
|
|
29
29
|
export declare class CsdlAnnotation {
|
|
30
30
|
Term: string;
|
|
@@ -46,7 +46,7 @@ export declare class CsdlAnnotation {
|
|
|
46
46
|
toJson(): {
|
|
47
47
|
[key: string]: any;
|
|
48
48
|
};
|
|
49
|
-
toConfig():
|
|
49
|
+
toConfig(): ODataAnnotationConfig;
|
|
50
50
|
}
|
|
51
51
|
export declare class CsdlTerm {
|
|
52
52
|
private schema;
|
|
@@ -3,7 +3,7 @@ import { CsdlSingleton } from './csdl-singleton';
|
|
|
3
3
|
import { CsdlFunctionImport, CsdlActionImport } from './csdl-function-action';
|
|
4
4
|
import { CsdlAnnotable } from './csdl-annotation';
|
|
5
5
|
import type { CsdlSchema } from './csdl-schema';
|
|
6
|
-
import {
|
|
6
|
+
import { ODataEntityContainerConfig } from '../../types';
|
|
7
7
|
export declare class CsdlEntityContainer extends CsdlAnnotable {
|
|
8
8
|
private schema;
|
|
9
9
|
Name: string;
|
|
@@ -27,5 +27,5 @@ export declare class CsdlEntityContainer extends CsdlAnnotable {
|
|
|
27
27
|
name(): string;
|
|
28
28
|
namespace(): string;
|
|
29
29
|
fullName(): string;
|
|
30
|
-
toConfig(base?: Partial<
|
|
30
|
+
toConfig(base?: Partial<ODataEntityContainerConfig>): ODataEntityContainerConfig;
|
|
31
31
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ODataEntitySetConfig } from '../../types';
|
|
2
2
|
import { CsdlAnnotable } from './csdl-annotation';
|
|
3
3
|
import type { CsdlEntityContainer } from './csdl-entity-container';
|
|
4
4
|
import { CsdlNavigationPropertyBinding } from './csdl-navigation-property-binding';
|
|
@@ -21,5 +21,5 @@ export declare class CsdlEntitySet extends CsdlAnnotable {
|
|
|
21
21
|
name(): string;
|
|
22
22
|
namespace(): string;
|
|
23
23
|
fullName(): string;
|
|
24
|
-
toConfig():
|
|
24
|
+
toConfig(): ODataEntitySetConfig;
|
|
25
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ODataEnumTypeConfig, ODataEnumTypeFieldConfig } from '../../types';
|
|
2
2
|
import { CsdlAnnotable } from './csdl-annotation';
|
|
3
3
|
import type { CsdlSchema } from './csdl-schema';
|
|
4
4
|
export declare class CsdlEnumType extends CsdlAnnotable {
|
|
@@ -20,7 +20,7 @@ export declare class CsdlEnumType extends CsdlAnnotable {
|
|
|
20
20
|
name(): string;
|
|
21
21
|
namespace(): string;
|
|
22
22
|
fullName(): string;
|
|
23
|
-
toConfig(base?: Partial<
|
|
23
|
+
toConfig(base?: Partial<ODataEnumTypeConfig>): ODataEnumTypeConfig;
|
|
24
24
|
}
|
|
25
25
|
export declare class CsdlMember extends CsdlAnnotable {
|
|
26
26
|
Name: string;
|
|
@@ -33,5 +33,5 @@ export declare class CsdlMember extends CsdlAnnotable {
|
|
|
33
33
|
toJson(): {
|
|
34
34
|
[key: string]: any;
|
|
35
35
|
};
|
|
36
|
-
toConfig(base?: Partial<
|
|
36
|
+
toConfig(base?: Partial<ODataEnumTypeFieldConfig>): ODataEnumTypeFieldConfig;
|
|
37
37
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ODataCallableConfig, ODataParameterConfig } from '../../types';
|
|
2
2
|
import { CsdlAnnotable } from './csdl-annotation';
|
|
3
3
|
import type { CsdlEntityContainer } from './csdl-entity-container';
|
|
4
4
|
import type { CsdlSchema } from './csdl-schema';
|
|
@@ -37,7 +37,7 @@ export declare class CsdlFunction extends CsdlCallable {
|
|
|
37
37
|
toJson(): {
|
|
38
38
|
IsComposable: boolean | undefined;
|
|
39
39
|
};
|
|
40
|
-
toConfig(base?: Partial<
|
|
40
|
+
toConfig(base?: Partial<ODataCallableConfig>): ODataCallableConfig;
|
|
41
41
|
}
|
|
42
42
|
export declare class CsdlAction extends CsdlCallable {
|
|
43
43
|
constructor(schema: CsdlSchema, { Name, ReturnType, IsBound, EntitySetPath, Parameter, }: {
|
|
@@ -50,7 +50,7 @@ export declare class CsdlAction extends CsdlCallable {
|
|
|
50
50
|
toJson(): {
|
|
51
51
|
[x: string]: any;
|
|
52
52
|
};
|
|
53
|
-
toConfig(base?: Partial<
|
|
53
|
+
toConfig(base?: Partial<ODataCallableConfig>): ODataCallableConfig;
|
|
54
54
|
}
|
|
55
55
|
export declare class CsdlFunctionImport {
|
|
56
56
|
private container;
|
|
@@ -115,7 +115,7 @@ export declare class CsdlParameter extends CsdlAnnotable {
|
|
|
115
115
|
Scale: number | undefined;
|
|
116
116
|
SRID: string | undefined;
|
|
117
117
|
};
|
|
118
|
-
toConfig():
|
|
118
|
+
toConfig(): ODataParameterConfig;
|
|
119
119
|
}
|
|
120
120
|
export declare class CsdlReturnType {
|
|
121
121
|
Type: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ODataReferenceConfig } from '../../types';
|
|
2
2
|
import { CsdlAnnotable } from './csdl-annotation';
|
|
3
3
|
export declare class CsdlReference extends CsdlAnnotable {
|
|
4
4
|
Uri: string;
|
|
@@ -13,7 +13,7 @@ export declare class CsdlReference extends CsdlAnnotable {
|
|
|
13
13
|
toJson(): {
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
};
|
|
16
|
-
toConfig(base?: Partial<
|
|
16
|
+
toConfig(base?: Partial<ODataReferenceConfig>): ODataReferenceConfig;
|
|
17
17
|
}
|
|
18
18
|
export declare class CsdlInclude {
|
|
19
19
|
Namespace: string;
|
|
@@ -4,7 +4,7 @@ import { CsdlEnumType } from './csdl-enum-type';
|
|
|
4
4
|
import { CsdlEntityType, CsdlComplexType } from './csdl-structured-type';
|
|
5
5
|
import { CsdlFunction, CsdlAction } from './csdl-function-action';
|
|
6
6
|
import { CsdlEntityContainer } from './csdl-entity-container';
|
|
7
|
-
import {
|
|
7
|
+
import { ODataSchemaConfig } from '../../types';
|
|
8
8
|
export declare class CsdlSchema {
|
|
9
9
|
Namespace: string;
|
|
10
10
|
Alias?: string;
|
|
@@ -33,5 +33,5 @@ export declare class CsdlSchema {
|
|
|
33
33
|
toJson(): {
|
|
34
34
|
[key: string]: any;
|
|
35
35
|
};
|
|
36
|
-
toConfig(base?: Partial<
|
|
36
|
+
toConfig(base?: Partial<ODataSchemaConfig>): ODataSchemaConfig;
|
|
37
37
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ODataStructuredTypeFieldConfig } from '../../types';
|
|
2
2
|
import { CsdlAnnotable } from './csdl-annotation';
|
|
3
3
|
export declare abstract class CsdlStructuralProperty extends CsdlAnnotable {
|
|
4
4
|
Name: string;
|
|
@@ -37,7 +37,7 @@ export declare class CsdlProperty extends CsdlStructuralProperty {
|
|
|
37
37
|
toJson(): {
|
|
38
38
|
[key: string]: any;
|
|
39
39
|
};
|
|
40
|
-
toConfig():
|
|
40
|
+
toConfig(): ODataStructuredTypeFieldConfig & {
|
|
41
41
|
name: string;
|
|
42
42
|
};
|
|
43
43
|
}
|
|
@@ -59,7 +59,7 @@ export declare class CsdlNavigationProperty extends CsdlStructuralProperty {
|
|
|
59
59
|
toJson(): {
|
|
60
60
|
[key: string]: any;
|
|
61
61
|
};
|
|
62
|
-
toConfig():
|
|
62
|
+
toConfig(): ODataStructuredTypeFieldConfig & {
|
|
63
63
|
name: string;
|
|
64
64
|
};
|
|
65
65
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ODataStructuredTypeConfig } from '../../types';
|
|
2
2
|
import { CsdlAnnotable } from './csdl-annotation';
|
|
3
3
|
import { CsdlProperty, CsdlNavigationProperty } from './csdl-structural-property';
|
|
4
4
|
import type { CsdlSchema } from './csdl-schema';
|
|
@@ -39,7 +39,7 @@ export declare class CsdlComplexType extends CsdlStructuredType {
|
|
|
39
39
|
toJson(): {
|
|
40
40
|
[x: string]: any;
|
|
41
41
|
};
|
|
42
|
-
toConfig(base?: Partial<
|
|
42
|
+
toConfig(base?: Partial<ODataStructuredTypeConfig>): ODataStructuredTypeConfig;
|
|
43
43
|
}
|
|
44
44
|
export declare class CsdlEntityType extends CsdlStructuredType {
|
|
45
45
|
Key?: CsdlKey;
|
|
@@ -58,7 +58,7 @@ export declare class CsdlEntityType extends CsdlStructuredType {
|
|
|
58
58
|
toJson(): {
|
|
59
59
|
[key: string]: any;
|
|
60
60
|
};
|
|
61
|
-
toConfig(base?: Partial<
|
|
61
|
+
toConfig(base?: Partial<ODataStructuredTypeConfig>): ODataStructuredTypeConfig;
|
|
62
62
|
}
|
|
63
63
|
export declare class CsdlKey {
|
|
64
64
|
PropertyRef: CsdlPropertyRef[];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { CsdlAction, CsdlFunction } from './csdl/csdl-function-action';
|
|
2
2
|
import { CsdlReference } from './csdl/csdl-reference';
|
|
3
3
|
import { CsdlSchema } from './csdl/csdl-schema';
|
|
4
|
-
import {
|
|
4
|
+
import { ODataApiConfig } from '../types';
|
|
5
5
|
export declare class ODataMetadata {
|
|
6
6
|
Version: string;
|
|
7
7
|
References: CsdlReference[];
|
|
8
8
|
Schemas: CsdlSchema[];
|
|
9
9
|
constructor(Version: string, References: any[], Schemas: any[]);
|
|
10
|
-
toConfig(base?: Partial<
|
|
10
|
+
toConfig(base?: Partial<ODataApiConfig>): ODataApiConfig;
|
|
11
11
|
toJson(): {
|
|
12
12
|
Version: string;
|
|
13
13
|
References: {
|
package/lib/models/options.d.ts
CHANGED
|
@@ -157,7 +157,7 @@ export declare class ODataModelField<F> {
|
|
|
157
157
|
}): void;
|
|
158
158
|
isKey(): boolean;
|
|
159
159
|
hasReferentials(): boolean;
|
|
160
|
-
get referentials(): import("
|
|
160
|
+
get referentials(): import("angular-odata").ODataReferential[];
|
|
161
161
|
isStructuredType(): boolean;
|
|
162
162
|
structuredType(): ODataStructuredType<F>;
|
|
163
163
|
isEnumType(): boolean;
|
|
@@ -200,7 +200,7 @@ export declare class ODataModelAttribute<T> {
|
|
|
200
200
|
get navigation(): boolean;
|
|
201
201
|
get computed(): boolean | undefined;
|
|
202
202
|
get concurrency(): boolean;
|
|
203
|
-
get referentials(): import("
|
|
203
|
+
get referentials(): import("angular-odata").ODataReferential[];
|
|
204
204
|
get options(): ODataModelOptions<any>;
|
|
205
205
|
get name(): string;
|
|
206
206
|
get fieldName(): string;
|
package/lib/module.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { EnvironmentProviders, InjectionToken, ModuleWithProviders, Provider } from '@angular/core';
|
|
2
2
|
import { ODataConfigSyncLoader } from './loaders';
|
|
3
|
-
import {
|
|
3
|
+
import { ODataApiConfig } from './types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "@angular/common";
|
|
6
6
|
import * as i2 from "@angular/common/http";
|
|
7
7
|
export interface PassedInitialConfig {
|
|
8
|
-
config?:
|
|
8
|
+
config?: ODataApiConfig | ODataApiConfig[];
|
|
9
9
|
loader?: Provider;
|
|
10
10
|
}
|
|
11
|
-
export declare const ODATA_CONFIG: InjectionToken<
|
|
11
|
+
export declare const ODATA_CONFIG: InjectionToken<ODataApiConfig>;
|
|
12
12
|
export declare function createSyncLoader(passedConfig: PassedInitialConfig): ODataConfigSyncLoader;
|
|
13
13
|
export declare function provideODataClient(passedConfig: PassedInitialConfig): EnvironmentProviders;
|
|
14
14
|
export declare class ODataModule {
|
package/lib/options.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class ODataApiOptions implements
|
|
1
|
+
import { ODataApiConfigOptions, FetchPolicy, ODataMetadataType, ODataVersion, ParserOptions, QueryOption } from './types';
|
|
2
|
+
export declare class ODataApiOptions implements ODataApiConfigOptions {
|
|
3
3
|
/**
|
|
4
4
|
* Default OData version
|
|
5
5
|
*/
|
|
@@ -95,7 +95,7 @@ export declare class ODataApiOptions implements ApiOptions {
|
|
|
95
95
|
*/
|
|
96
96
|
omitNullValues?: boolean;
|
|
97
97
|
};
|
|
98
|
-
constructor(config:
|
|
98
|
+
constructor(config: ODataApiConfigOptions);
|
|
99
99
|
get parserOptions(): ParserOptions;
|
|
100
100
|
get helper(): import("./helper").ODataVersionHelper;
|
|
101
101
|
}
|
|
@@ -49,7 +49,7 @@ export declare class ApplyExpression<T> extends Expression<T> {
|
|
|
49
49
|
children?: Renderable[];
|
|
50
50
|
});
|
|
51
51
|
get [Symbol.toStringTag](): string;
|
|
52
|
-
static factory<T>(opts: (builder: ApplyExpressionBuilder<T>, current
|
|
52
|
+
static factory<T>(opts: (builder: ApplyExpressionBuilder<T>, current: ApplyExpression<T>) => ApplyExpression<T>, current?: ApplyExpression<T>): ApplyExpression<T>;
|
|
53
53
|
toJson(): {
|
|
54
54
|
$type: string;
|
|
55
55
|
children: any[];
|
|
@@ -13,7 +13,7 @@ export declare class ComputeExpression<T> extends Expression<T> {
|
|
|
13
13
|
names?: string[];
|
|
14
14
|
});
|
|
15
15
|
get [Symbol.toStringTag](): string;
|
|
16
|
-
static factory<T>(opts: (builder: ComputeExpressionBuilder<T>, current
|
|
16
|
+
static factory<T>(opts: (builder: ComputeExpressionBuilder<T>, current: ComputeExpression<T>) => ComputeExpression<T>, current?: ComputeExpression<T>): ComputeExpression<T>;
|
|
17
17
|
toJson(): {
|
|
18
18
|
$type: string;
|
|
19
19
|
children: any[];
|
|
@@ -34,7 +34,7 @@ export declare class CountExpression<T> extends Expression<T> {
|
|
|
34
34
|
children?: Renderable[];
|
|
35
35
|
});
|
|
36
36
|
get [Symbol.toStringTag](): string;
|
|
37
|
-
static factory<T>(opts: (builder: CountExpressionBuilder<T>, current
|
|
37
|
+
static factory<T>(opts: (builder: CountExpressionBuilder<T>, current: CountExpression<T>) => CountExpression<T>, current?: CountExpression<T>): CountExpression<T>;
|
|
38
38
|
private _add;
|
|
39
39
|
toJson(): {
|
|
40
40
|
$type: string;
|
|
@@ -30,8 +30,8 @@ export declare class ExpandField<T> implements Renderable {
|
|
|
30
30
|
expand(opts: (builder: ExpandExpressionBuilder<T>, current?: ExpandExpression<T>) => ExpandExpression<T>): ExpandExpression<T>;
|
|
31
31
|
filter(opts: (builder: FilterExpressionBuilder<T>, current?: FilterExpression<T>) => FilterExpression<T>): FilterExpression<T>;
|
|
32
32
|
search(opts: (builder: SearchExpressionBuilder<T>) => SearchExpression<T>): SearchExpression<T>;
|
|
33
|
-
orderBy(opts: (builder: OrderByExpressionBuilder<T>, current
|
|
34
|
-
compute(opts: (builder: ComputeExpressionBuilder<T>, current
|
|
33
|
+
orderBy(opts: (builder: OrderByExpressionBuilder<T>, current: OrderByExpression<T>) => OrderByExpression<T>): OrderByExpression<T>;
|
|
34
|
+
compute(opts: (builder: ComputeExpressionBuilder<T>, current: ComputeExpression<T>) => ComputeExpression<T>): ComputeExpression<T>;
|
|
35
35
|
skip(n: number): number;
|
|
36
36
|
top(n: number): number;
|
|
37
37
|
levels(n: number | 'max'): number | "max";
|
|
@@ -47,7 +47,7 @@ export declare class ExpandExpression<T> extends Expression<T> {
|
|
|
47
47
|
children?: Renderable[];
|
|
48
48
|
});
|
|
49
49
|
get [Symbol.toStringTag](): string;
|
|
50
|
-
static factory<T>(opts: (builder: ExpandExpressionBuilder<T>, current
|
|
50
|
+
static factory<T>(opts: (builder: ExpandExpressionBuilder<T>, current: ExpandExpression<T>) => ExpandExpression<T>, current?: ExpandExpression<T>): ExpandExpression<T>;
|
|
51
51
|
toJson(): {
|
|
52
52
|
$type: string;
|
|
53
53
|
children: any[];
|
|
@@ -65,4 +65,5 @@ export declare class ExpandExpression<T> extends Expression<T> {
|
|
|
65
65
|
clone(): ExpandExpression<T>;
|
|
66
66
|
private _add;
|
|
67
67
|
field<F>(field: F, opts?: (e: ExpandField<Unpacked<F>>) => void): ExpandExpression<T>;
|
|
68
|
+
combine(expression: ExpandExpression<T>): ExpandExpression<T>;
|
|
68
69
|
}
|
|
@@ -19,7 +19,7 @@ export declare class FilterExpression<F> extends Expression<F> {
|
|
|
19
19
|
negated?: boolean;
|
|
20
20
|
});
|
|
21
21
|
get [Symbol.toStringTag](): string;
|
|
22
|
-
static factory<T>(opts: (builder: FilterExpressionBuilder<T>, current
|
|
22
|
+
static factory<T>(opts: (builder: FilterExpressionBuilder<T>, current: FilterExpression<T>) => FilterExpression<T>, current?: FilterExpression<T>): FilterExpression<T>;
|
|
23
23
|
toJson(): {
|
|
24
24
|
$type: string;
|
|
25
25
|
children: any[];
|
|
@@ -73,4 +73,5 @@ export declare class FilterExpression<F> extends Expression<F> {
|
|
|
73
73
|
}) => CountExpression<N>): FilterExpression<F>;
|
|
74
74
|
isof(type: string): FilterExpression<F>;
|
|
75
75
|
isof(left: F, type: string): FilterExpression<F>;
|
|
76
|
+
combine(exp: FilterExpression<F>, connector?: FilterConnector): FilterExpression<F>;
|
|
76
77
|
}
|
|
@@ -32,7 +32,7 @@ export declare class OrderByExpression<T> extends Expression<T> {
|
|
|
32
32
|
children?: Renderable[];
|
|
33
33
|
});
|
|
34
34
|
get [Symbol.toStringTag](): string;
|
|
35
|
-
static factory<T>(opts: (builder: OrderByExpressionBuilder<T>, current
|
|
35
|
+
static factory<T>(opts: (builder: OrderByExpressionBuilder<T>, current: OrderByExpression<T>) => OrderByExpression<T>, current?: OrderByExpression<T>): OrderByExpression<T>;
|
|
36
36
|
private _add;
|
|
37
37
|
toJson(): {
|
|
38
38
|
$type: string;
|
|
@@ -51,4 +51,5 @@ export declare class OrderByExpression<T> extends Expression<T> {
|
|
|
51
51
|
clone(): OrderByExpression<T>;
|
|
52
52
|
ascending(field: any): OrderByExpression<T>;
|
|
53
53
|
descending(field: any): OrderByExpression<T>;
|
|
54
|
+
combine(expression: OrderByExpression<T>): OrderByExpression<T>;
|
|
54
55
|
}
|
|
@@ -33,7 +33,7 @@ export declare class SearchExpression<T> extends Expression<T> {
|
|
|
33
33
|
negated?: boolean;
|
|
34
34
|
});
|
|
35
35
|
get [Symbol.toStringTag](): string;
|
|
36
|
-
static factory<T>(opts: (builder: SearchExpressionBuilder<T>, current
|
|
36
|
+
static factory<T>(opts: (builder: SearchExpressionBuilder<T>, current: SearchExpression<T>) => SearchExpression<T>, current?: SearchExpression<T>): SearchExpression<T>;
|
|
37
37
|
private _add;
|
|
38
38
|
render({ aliases, escape, prefix, parser, options, }?: {
|
|
39
39
|
aliases?: QueryCustomType[];
|
|
@@ -59,4 +59,5 @@ export declare class SearchExpression<T> extends Expression<T> {
|
|
|
59
59
|
and(exp: SearchExpression<T>): SearchExpression<T>;
|
|
60
60
|
not(exp: SearchExpression<T>): SearchExpression<T>;
|
|
61
61
|
term(value: any): SearchExpression<T>;
|
|
62
|
+
combine(expression: SearchExpression<T>, connector?: SearchConnector): SearchExpression<T>;
|
|
62
63
|
}
|
|
@@ -11,7 +11,7 @@ export declare class SelectExpression<T> extends Expression<T> {
|
|
|
11
11
|
children?: Renderable[];
|
|
12
12
|
});
|
|
13
13
|
get [Symbol.toStringTag](): string;
|
|
14
|
-
static factory<T>(opts: (builder: SelectExpressionBuilder<T>, current
|
|
14
|
+
static factory<T>(opts: (builder: SelectExpressionBuilder<T>, current: SelectExpression<T>) => SelectExpression<T>, current?: SelectExpression<T>): SelectExpression<T>;
|
|
15
15
|
toJson(): {
|
|
16
16
|
$type: string;
|
|
17
17
|
children: any[];
|
|
@@ -30,4 +30,5 @@ export declare class SelectExpression<T> extends Expression<T> {
|
|
|
30
30
|
private _add;
|
|
31
31
|
field(field: any): SelectExpression<T>;
|
|
32
32
|
fields(...fields: any[]): SelectExpression<T>;
|
|
33
|
+
combine(expression: SelectExpression<T>): SelectExpression<T>;
|
|
33
34
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Parser, QueryOption } from '../../types';
|
|
1
|
+
import { Parser, ParserOptions, QueryOption } from '../../types';
|
|
2
2
|
import { Expand, Filter, OrderBy, Select, Transform } from './builder';
|
|
3
3
|
import { ComputeExpression, ComputeExpressionBuilder, FilterExpression, FilterExpressionBuilder, OrderByExpression, OrderByExpressionBuilder, SearchExpression, SearchExpressionBuilder, ExpandExpression, ExpandExpressionBuilder, SelectExpression, SelectExpressionBuilder, ApplyExpression, ApplyExpressionBuilder } from './expressions';
|
|
4
4
|
import { ODataQueryArguments, ODataQueryOptions } from './options';
|
|
@@ -98,7 +98,7 @@ export declare class ODataQueryOptionsHandler<T> {
|
|
|
98
98
|
* @param value The value to raw
|
|
99
99
|
* @returns The raw value
|
|
100
100
|
*/
|
|
101
|
-
raw(value: any): import("
|
|
101
|
+
raw(value: any): import("angular-odata").QueryCustomType;
|
|
102
102
|
/**
|
|
103
103
|
* Create a new odata alias parameter
|
|
104
104
|
* @link https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html#sec_ParameterAliases
|
|
@@ -106,19 +106,19 @@ export declare class ODataQueryOptionsHandler<T> {
|
|
|
106
106
|
* @param name The name of the alias
|
|
107
107
|
* @returns The alias
|
|
108
108
|
*/
|
|
109
|
-
alias(value: any, name?: string): import("
|
|
109
|
+
alias(value: any, name?: string): import("angular-odata").QueryCustomType;
|
|
110
110
|
/**
|
|
111
111
|
* Create a duration odata value
|
|
112
112
|
* @param value The value to duration
|
|
113
113
|
* @returns The duration value
|
|
114
114
|
*/
|
|
115
|
-
duration(value: any): import("
|
|
115
|
+
duration(value: any): import("angular-odata").QueryCustomType;
|
|
116
116
|
/**
|
|
117
117
|
* Create a binary odata value
|
|
118
118
|
* @param value The value to binary
|
|
119
119
|
* @returns The binary value
|
|
120
120
|
*/
|
|
121
|
-
binary(value: any): import("
|
|
121
|
+
binary(value: any): import("angular-odata").QueryCustomType;
|
|
122
122
|
/**
|
|
123
123
|
* Normalize the given value to a valid odata value
|
|
124
124
|
* @param value The value to normalize
|
|
@@ -247,6 +247,11 @@ export declare class ODataQueryOptionsHandler<T> {
|
|
|
247
247
|
* @param options The query to be applied.
|
|
248
248
|
*/
|
|
249
249
|
restore(options: ODataQueryArguments<T>): void;
|
|
250
|
+
/**
|
|
251
|
+
* Combine the given query options with the current query.
|
|
252
|
+
* @param options The query to be combined.
|
|
253
|
+
*/
|
|
254
|
+
combine(options: ODataQueryArguments<T>): void;
|
|
250
255
|
toJson(): {};
|
|
251
256
|
fromJson(json: {
|
|
252
257
|
[name: string]: any;
|
|
@@ -255,4 +260,11 @@ export declare class ODataQueryOptionsHandler<T> {
|
|
|
255
260
|
escape?: boolean;
|
|
256
261
|
parser?: Parser<T>;
|
|
257
262
|
}): string;
|
|
263
|
+
pathAndParams({ escape, parser, options, }?: {
|
|
264
|
+
escape?: boolean;
|
|
265
|
+
parser?: Parser<T>;
|
|
266
|
+
options?: ParserOptions;
|
|
267
|
+
}): [string, {
|
|
268
|
+
[name: string]: any;
|
|
269
|
+
}];
|
|
258
270
|
}
|
|
@@ -2,7 +2,7 @@ import { Observable } from 'rxjs';
|
|
|
2
2
|
import { ODataApi } from '../api';
|
|
3
3
|
import { ModelInterface, ODataCollection, ODataModel } from '../models';
|
|
4
4
|
import { ODataStructuredType } from '../schema';
|
|
5
|
-
import { ParserOptions, QueryOption,
|
|
5
|
+
import { ParserOptions, QueryOption, ODataStructuredTypeFieldConfig } from '../types';
|
|
6
6
|
import { ODataPathSegments, ODataPathSegmentsHandler } from './path';
|
|
7
7
|
import { ODataQueryOptions, ODataQueryOptionsHandler } from './query';
|
|
8
8
|
import { ApplyExpression, ApplyExpressionBuilder, QueryCustomType } from './query';
|
|
@@ -35,9 +35,9 @@ export declare class ODataResource<T> {
|
|
|
35
35
|
* @returns string All covered types of the resource
|
|
36
36
|
*/
|
|
37
37
|
types(): string[];
|
|
38
|
-
callable(): import("
|
|
39
|
-
enumType(): import("
|
|
40
|
-
structuredType(): ODataStructuredType<T> | undefined;
|
|
38
|
+
callable(): import("angular-odata").ODataCallable<any> | undefined;
|
|
39
|
+
enumType(): import("angular-odata").ODataEnumType<any> | undefined;
|
|
40
|
+
structuredType(): ODataStructuredType<any> | ODataStructuredType<T> | undefined;
|
|
41
41
|
/**
|
|
42
42
|
* @returns boolean The resource has key ?
|
|
43
43
|
*/
|
|
@@ -128,7 +128,7 @@ export declare class ODataResource<T> {
|
|
|
128
128
|
transform<R>(opts: (builder: ApplyExpressionBuilder<T>, current?: ApplyExpression<T>) => ApplyExpression<T>, { type, fields, }?: {
|
|
129
129
|
type?: string;
|
|
130
130
|
fields?: {
|
|
131
|
-
[name: string]:
|
|
131
|
+
[name: string]: ODataStructuredTypeFieldConfig;
|
|
132
132
|
};
|
|
133
133
|
}): ODataResource<R>;
|
|
134
134
|
static resolveKey<T>(value: any, schema?: ODataStructuredType<T>): EntityKey<T> | undefined;
|
|
@@ -58,7 +58,7 @@ export declare class ODataActionResource<P, R> extends ODataResource<R> {
|
|
|
58
58
|
*/
|
|
59
59
|
callModel(params: P | null, options?: ODataOptions & {
|
|
60
60
|
ModelType?: typeof ODataModel;
|
|
61
|
-
}): Observable<(ODataModel<R> & import("
|
|
61
|
+
}): Observable<(ODataModel<R> & import("angular-odata").ModelInterface<R>) | null>;
|
|
62
62
|
/**
|
|
63
63
|
* Execute the action and return the result as a entities
|
|
64
64
|
* @param params Parameters for the action
|
|
@@ -74,7 +74,7 @@ export declare class ODataActionResource<P, R> extends ODataResource<R> {
|
|
|
74
74
|
*/
|
|
75
75
|
callCollection(params: P | null, options?: ODataOptions & {
|
|
76
76
|
CollectionType?: typeof ODataCollection;
|
|
77
|
-
}): Observable<ODataCollection<R, ODataModel<R> & import("
|
|
77
|
+
}): Observable<ODataCollection<R, ODataModel<R> & import("angular-odata").ModelInterface<R>> | null>;
|
|
78
78
|
callArraybuffer(params: P | null, { alias, ...options }?: {
|
|
79
79
|
alias?: boolean;
|
|
80
80
|
} & ODataOptions): Observable<ArrayBuffer>;
|