angular-odata 0.127.0 → 0.130.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/README.md +27 -244
- package/esm2022/lib/annotations.mjs +146 -0
- package/esm2022/lib/api.mjs +238 -173
- package/esm2022/lib/cache/cache.mjs +3 -1
- package/esm2022/lib/cache/memory.mjs +1 -1
- package/esm2022/lib/cache/storage.mjs +3 -1
- package/esm2022/lib/client.mjs +10 -47
- package/esm2022/lib/constants.mjs +4 -1
- package/esm2022/lib/helper.mjs +9 -1
- package/esm2022/lib/index.mjs +4 -1
- package/esm2022/lib/loaders.mjs +27 -17
- package/esm2022/lib/metadata/csdl/csdl-annotation.mjs +273 -0
- package/esm2022/lib/metadata/csdl/csdl-entity-container.mjs +59 -0
- package/esm2022/lib/metadata/csdl/csdl-entity-set.mjs +50 -0
- package/esm2022/lib/metadata/csdl/csdl-enum-type.mjs +74 -0
- package/esm2022/lib/metadata/csdl/csdl-function-action.mjs +204 -0
- package/esm2022/lib/metadata/csdl/csdl-navigation-property-binding.mjs +15 -0
- package/esm2022/lib/metadata/csdl/csdl-reference.mjs +76 -0
- package/esm2022/lib/metadata/csdl/csdl-schema.mjs +87 -0
- package/esm2022/lib/metadata/csdl/csdl-singleton.mjs +37 -0
- package/esm2022/lib/metadata/csdl/csdl-structural-property.mjs +145 -0
- package/esm2022/lib/metadata/csdl/csdl-structured-type.mjs +159 -0
- package/esm2022/lib/metadata/csdl/csdl-type-definition.mjs +46 -0
- package/esm2022/lib/metadata/index.mjs +3 -0
- package/esm2022/lib/metadata/metadata.mjs +41 -0
- package/esm2022/lib/metadata/parser.mjs +564 -0
- package/esm2022/lib/models/collection.mjs +115 -155
- package/esm2022/lib/models/model.mjs +71 -54
- package/esm2022/lib/models/options.mjs +194 -136
- package/esm2022/lib/module.mjs +7 -7
- package/esm2022/lib/options.mjs +57 -2
- package/esm2022/lib/resources/index.mjs +2 -2
- package/esm2022/lib/resources/options.mjs +66 -0
- package/esm2022/lib/resources/path/handlers.mjs +16 -4
- package/esm2022/lib/resources/path/segments.mjs +7 -4
- package/esm2022/lib/resources/query/builder.mjs +17 -8
- package/esm2022/lib/resources/query/expressions/apply.mjs +83 -14
- package/esm2022/lib/resources/query/expressions/base.mjs +2 -1
- package/esm2022/lib/resources/query/expressions/compute.mjs +3 -2
- package/esm2022/lib/resources/query/expressions/count.mjs +3 -1
- package/esm2022/lib/resources/query/expressions/expand.mjs +8 -1
- package/esm2022/lib/resources/query/expressions/filter.mjs +3 -1
- package/esm2022/lib/resources/query/expressions/orderby.mjs +4 -2
- package/esm2022/lib/resources/query/expressions/search.mjs +4 -1
- package/esm2022/lib/resources/query/expressions/select.mjs +8 -2
- package/esm2022/lib/resources/query/expressions/syntax.mjs +37 -7
- package/esm2022/lib/resources/query/handlers.mjs +4 -1
- package/esm2022/lib/resources/query/options.mjs +2 -1
- package/esm2022/lib/resources/request.mjs +19 -5
- package/esm2022/lib/resources/resource.mjs +115 -85
- package/esm2022/lib/resources/response.mjs +180 -0
- package/esm2022/lib/resources/types/action.mjs +31 -26
- package/esm2022/lib/resources/types/batch.mjs +7 -7
- package/esm2022/lib/resources/types/count.mjs +7 -7
- package/esm2022/lib/resources/types/entity-set.mjs +37 -24
- package/esm2022/lib/resources/types/entity.mjs +14 -11
- package/esm2022/lib/resources/types/function.mjs +28 -28
- package/esm2022/lib/resources/types/metadata.mjs +9 -5
- package/esm2022/lib/resources/types/navigation-property.mjs +36 -40
- package/esm2022/lib/resources/types/property.mjs +31 -59
- package/esm2022/lib/resources/types/reference.mjs +3 -4
- package/esm2022/lib/resources/types/singleton.mjs +11 -12
- package/esm2022/lib/resources/types/value.mjs +16 -12
- package/esm2022/lib/schema/annotation.mjs +8 -1
- package/esm2022/lib/schema/callable.mjs +13 -10
- package/esm2022/lib/schema/element.mjs +18 -9
- package/esm2022/lib/schema/entity-container.mjs +6 -2
- package/esm2022/lib/schema/entity-set.mjs +3 -1
- package/esm2022/lib/schema/enum-type.mjs +11 -11
- package/esm2022/lib/schema/index.mjs +2 -1
- package/esm2022/lib/schema/parsers/callable.mjs +23 -7
- package/esm2022/lib/schema/parsers/edm.mjs +6 -4
- package/esm2022/lib/schema/parsers/enum-type.mjs +48 -30
- package/esm2022/lib/schema/parsers/structured-type.mjs +61 -27
- package/esm2022/lib/schema/schema.mjs +25 -34
- package/esm2022/lib/schema/singleton.mjs +11 -0
- package/esm2022/lib/schema/structured-type.mjs +27 -25
- package/esm2022/lib/services/base.mjs +4 -1
- package/esm2022/lib/services/entity-set.mjs +18 -2
- package/esm2022/lib/services/entity.mjs +2 -2
- package/esm2022/lib/services/factory.mjs +16 -10
- package/esm2022/lib/services/singleton.mjs +9 -2
- package/esm2022/lib/settings.mjs +8 -99
- package/esm2022/lib/types.mjs +1 -1
- package/esm2022/lib/utils/arraybuffers.mjs +1 -1
- package/esm2022/lib/utils/dates.mjs +1 -1
- package/esm2022/lib/utils/durations.mjs +1 -1
- package/esm2022/lib/utils/enums.mjs +1 -1
- package/esm2022/lib/utils/http.mjs +1 -1
- package/esm2022/lib/utils/objects.mjs +1 -1
- package/esm2022/lib/utils/odata.mjs +1 -1
- package/esm2022/lib/utils/types.mjs +1 -1
- package/fesm2022/angular-odata.mjs +3476 -2075
- package/fesm2022/angular-odata.mjs.map +1 -1
- package/lib/{resources/responses/annotations.d.ts → annotations.d.ts} +2 -2
- package/lib/api.d.ts +29 -26
- package/lib/cache/memory.d.ts +1 -1
- package/lib/client.d.ts +0 -20
- package/lib/constants.d.ts +3 -0
- package/lib/index.d.ts +2 -0
- package/lib/loaders.d.ts +7 -1
- package/lib/metadata/csdl/csdl-annotation.d.ts +159 -0
- package/lib/metadata/csdl/csdl-entity-container.d.ts +31 -0
- package/lib/metadata/csdl/csdl-entity-set.d.ts +25 -0
- package/lib/metadata/csdl/csdl-enum-type.d.ts +37 -0
- package/lib/metadata/csdl/csdl-function-action.d.ts +148 -0
- package/lib/metadata/csdl/csdl-navigation-property-binding.d.ts +12 -0
- package/lib/metadata/csdl/csdl-reference.d.ts +53 -0
- package/lib/metadata/csdl/csdl-schema.d.ts +37 -0
- package/lib/metadata/csdl/csdl-singleton.d.ts +21 -0
- package/lib/metadata/csdl/csdl-structural-property.d.ts +86 -0
- package/lib/metadata/csdl/csdl-structured-type.d.ts +94 -0
- package/lib/metadata/csdl/csdl-type-definition.d.ts +25 -0
- package/lib/metadata/index.d.ts +2 -0
- package/lib/metadata/metadata.d.ts +23 -0
- package/lib/{resources/responses/metadata.d.ts → metadata/parser.d.ts} +19 -7
- package/lib/models/collection.d.ts +6 -4
- package/lib/models/model.d.ts +20 -27
- package/lib/models/options.d.ts +46 -25
- package/lib/resources/index.d.ts +1 -1
- package/lib/resources/{responses/options.d.ts → options.d.ts} +2 -2
- package/lib/resources/path/handlers.d.ts +4 -2
- package/lib/resources/path/segments.d.ts +6 -4
- package/lib/resources/query/builder.d.ts +3 -2
- package/lib/resources/query/expressions/apply.d.ts +37 -15
- package/lib/resources/query/expressions/base.d.ts +1 -1
- package/lib/resources/query/expressions/compute.d.ts +2 -2
- package/lib/resources/query/expressions/count.d.ts +1 -1
- package/lib/resources/query/expressions/expand.d.ts +3 -1
- package/lib/resources/query/expressions/filter.d.ts +1 -1
- package/lib/resources/query/expressions/orderby.d.ts +5 -4
- package/lib/resources/query/expressions/search.d.ts +1 -1
- package/lib/resources/query/expressions/select.d.ts +2 -1
- package/lib/resources/query/expressions/syntax.d.ts +8 -5
- package/lib/resources/query/options.d.ts +3 -3
- package/lib/resources/resource.d.ts +56 -16
- package/lib/resources/{responses/response.d.ts → response.d.ts} +17 -5
- package/lib/resources/types/action.d.ts +12 -10
- package/lib/resources/types/batch.d.ts +3 -2
- package/lib/resources/types/count.d.ts +1 -5
- package/lib/resources/types/entity-set.d.ts +25 -11
- package/lib/resources/types/entity.d.ts +8 -5
- package/lib/resources/types/function.d.ts +12 -12
- package/lib/resources/types/metadata.d.ts +1 -1
- package/lib/resources/types/navigation-property.d.ts +23 -8
- package/lib/resources/types/property.d.ts +27 -9
- package/lib/resources/types/reference.d.ts +2 -4
- package/lib/resources/types/singleton.d.ts +9 -7
- package/lib/resources/types/value.d.ts +2 -6
- package/lib/schema/callable.d.ts +5 -7
- package/lib/schema/element.d.ts +11 -4
- package/lib/schema/entity-container.d.ts +2 -0
- package/lib/schema/enum-type.d.ts +13 -16
- package/lib/schema/index.d.ts +1 -0
- package/lib/schema/parsers/callable.d.ts +7 -8
- package/lib/schema/parsers/enum-type.d.ts +16 -18
- package/lib/schema/parsers/structured-type.d.ts +11 -10
- package/lib/schema/schema.d.ts +6 -9
- package/lib/schema/singleton.d.ts +10 -0
- package/lib/schema/structured-type.d.ts +10 -10
- package/lib/services/entity-set.d.ts +11 -4
- package/lib/services/factory.d.ts +14 -2
- package/lib/services/singleton.d.ts +4 -2
- package/lib/settings.d.ts +0 -10
- package/lib/types.d.ts +32 -12
- package/lib/utils/enums.d.ts +12 -12
- package/lib/utils/http.d.ts +1 -1
- package/lib/utils/objects.d.ts +1 -1
- package/lib/utils/strings.d.ts +2 -2
- package/package.json +5 -1
- package/schematics/apigen/angular/api-config.d.ts +15 -0
- package/schematics/apigen/angular/api-config.js +40 -0
- package/schematics/apigen/angular/api-config.js.map +1 -0
- package/schematics/apigen/angular/base.d.ts +71 -0
- package/schematics/apigen/angular/base.js +240 -0
- package/schematics/apigen/angular/base.js.map +1 -0
- package/schematics/apigen/angular/entity.d.ts +24 -0
- package/schematics/apigen/angular/entity.js +77 -0
- package/schematics/apigen/angular/entity.js.map +1 -0
- package/schematics/apigen/angular/enum.d.ts +25 -0
- package/schematics/apigen/angular/enum.js +57 -0
- package/schematics/apigen/angular/enum.js.map +1 -0
- package/schematics/apigen/angular/import.d.ts +6 -0
- package/schematics/apigen/angular/import.js +18 -0
- package/schematics/apigen/angular/import.js.map +1 -0
- package/schematics/apigen/angular/module.d.ts +18 -0
- package/schematics/apigen/angular/module.js +41 -0
- package/schematics/apigen/angular/module.js.map +1 -0
- package/schematics/apigen/angular/service.d.ts +20 -0
- package/schematics/apigen/angular/service.js +77 -0
- package/schematics/apigen/angular/service.js.map +1 -0
- package/schematics/apigen/files/api-config/__fileName__.ts +11 -0
- package/schematics/apigen/files/entity/__fileName__.ts +7 -0
- package/schematics/apigen/files/entitycontainer-service/__fileName__.ts +18 -0
- package/schematics/apigen/files/entityset-service/__fileName__.ts +27 -0
- package/schematics/apigen/files/enum/__fileName__.ts +4 -0
- package/schematics/apigen/files/index/__fileName__.ts +2 -0
- package/schematics/apigen/files/metadata/metadata.json +1 -0
- package/schematics/apigen/files/module/__fileName__.ts +9 -0
- package/schematics/apigen/files/singleton-service/__fileName__.ts +18 -0
- package/schematics/apigen/index.d.ts +3 -0
- package/schematics/apigen/index.js +150 -0
- package/schematics/apigen/index.js.map +1 -0
- package/schematics/apigen/metadata/csdl/csdl-annotation.d.ts +153 -0
- package/schematics/apigen/metadata/csdl/csdl-annotation.js +228 -0
- package/schematics/apigen/metadata/csdl/csdl-annotation.js.map +1 -0
- package/schematics/apigen/metadata/csdl/csdl-entity-container.d.ts +29 -0
- package/schematics/apigen/metadata/csdl/csdl-entity-container.js +49 -0
- package/schematics/apigen/metadata/csdl/csdl-entity-container.js.map +1 -0
- package/schematics/apigen/metadata/csdl/csdl-entity-set.d.ts +23 -0
- package/schematics/apigen/metadata/csdl/csdl-entity-set.js +37 -0
- package/schematics/apigen/metadata/csdl/csdl-entity-set.js.map +1 -0
- package/schematics/apigen/metadata/csdl/csdl-enum-type.d.ts +34 -0
- package/schematics/apigen/metadata/csdl/csdl-enum-type.js +50 -0
- package/schematics/apigen/metadata/csdl/csdl-enum-type.js.map +1 -0
- package/schematics/apigen/metadata/csdl/csdl-function-action.d.ts +140 -0
- package/schematics/apigen/metadata/csdl/csdl-function-action.js +136 -0
- package/schematics/apigen/metadata/csdl/csdl-function-action.js.map +1 -0
- package/schematics/apigen/metadata/csdl/csdl-navigation-property-binding.d.ts +12 -0
- package/schematics/apigen/metadata/csdl/csdl-navigation-property-binding.js +17 -0
- package/schematics/apigen/metadata/csdl/csdl-navigation-property-binding.js.map +1 -0
- package/schematics/apigen/metadata/csdl/csdl-reference.d.ts +42 -0
- package/schematics/apigen/metadata/csdl/csdl-reference.js +53 -0
- package/schematics/apigen/metadata/csdl/csdl-reference.js.map +1 -0
- package/schematics/apigen/metadata/csdl/csdl-schema.d.ts +35 -0
- package/schematics/apigen/metadata/csdl/csdl-schema.js +63 -0
- package/schematics/apigen/metadata/csdl/csdl-schema.js.map +1 -0
- package/schematics/apigen/metadata/csdl/csdl-singleton.d.ts +21 -0
- package/schematics/apigen/metadata/csdl/csdl-singleton.js +33 -0
- package/schematics/apigen/metadata/csdl/csdl-singleton.js.map +1 -0
- package/schematics/apigen/metadata/csdl/csdl-structural-property.d.ts +79 -0
- package/schematics/apigen/metadata/csdl/csdl-structural-property.js +103 -0
- package/schematics/apigen/metadata/csdl/csdl-structural-property.js.map +1 -0
- package/schematics/apigen/metadata/csdl/csdl-structured-type.d.ts +83 -0
- package/schematics/apigen/metadata/csdl/csdl-structured-type.js +116 -0
- package/schematics/apigen/metadata/csdl/csdl-structured-type.js.map +1 -0
- package/schematics/apigen/metadata/csdl/csdl-type-definition.d.ts +25 -0
- package/schematics/apigen/metadata/csdl/csdl-type-definition.js +38 -0
- package/schematics/apigen/metadata/csdl/csdl-type-definition.js.map +1 -0
- package/schematics/apigen/metadata/index.d.ts +1 -0
- package/schematics/apigen/metadata/index.js +18 -0
- package/schematics/apigen/metadata/index.js.map +1 -0
- package/schematics/apigen/metadata/metadata.d.ts +21 -0
- package/schematics/apigen/metadata/metadata.js +36 -0
- package/schematics/apigen/metadata/metadata.js.map +1 -0
- package/schematics/apigen/metadata/parser.d.ts +110 -0
- package/schematics/apigen/metadata/parser.js +568 -0
- package/schematics/apigen/metadata/parser.js.map +1 -0
- package/schematics/apigen/schema.d.ts +9 -0
- package/schematics/apigen/schema.js +3 -0
- package/schematics/apigen/schema.js.map +1 -0
- package/schematics/apigen/schema.json +37 -0
- package/schematics/apigen/utils.d.ts +2 -0
- package/schematics/apigen/utils.js +99 -0
- package/schematics/apigen/utils.js.map +1 -0
- package/schematics/collection.json +14 -0
- package/schematics/ng-add/index.d.ts +2 -0
- package/schematics/ng-add/index.js +12 -0
- package/schematics/ng-add/index.js.map +1 -0
- package/schematics/random.d.ts +1 -0
- package/schematics/random.js +604 -0
- package/schematics/random.js.map +1 -0
- package/esm2022/lib/resources/responses/annotations.mjs +0 -140
- package/esm2022/lib/resources/responses/csdl/csdl-annotation.mjs +0 -33
- package/esm2022/lib/resources/responses/csdl/csdl-entity-container.mjs +0 -11
- package/esm2022/lib/resources/responses/csdl/csdl-entity-set.mjs +0 -9
- package/esm2022/lib/resources/responses/csdl/csdl-enum-type.mjs +0 -15
- package/esm2022/lib/resources/responses/csdl/csdl-function-action.mjs +0 -56
- package/esm2022/lib/resources/responses/csdl/csdl-navigation-property-binding.mjs +0 -7
- package/esm2022/lib/resources/responses/csdl/csdl-reference.mjs +0 -23
- package/esm2022/lib/resources/responses/csdl/csdl-schema.mjs +0 -18
- package/esm2022/lib/resources/responses/csdl/csdl-singleton.mjs +0 -8
- package/esm2022/lib/resources/responses/csdl/csdl-structural-property.mjs +0 -39
- package/esm2022/lib/resources/responses/csdl/csdl-structured-type.mjs +0 -34
- package/esm2022/lib/resources/responses/csdl/csdl-type-definition.mjs +0 -14
- package/esm2022/lib/resources/responses/index.mjs +0 -5
- package/esm2022/lib/resources/responses/metadata.mjs +0 -547
- package/esm2022/lib/resources/responses/options.mjs +0 -56
- package/esm2022/lib/resources/responses/response.mjs +0 -174
- package/esm2022/lib/resources/responses/types.mjs +0 -2
- package/lib/resources/responses/csdl/csdl-annotation.d.ts +0 -27
- package/lib/resources/responses/csdl/csdl-entity-container.d.ts +0 -12
- package/lib/resources/responses/csdl/csdl-entity-set.d.ts +0 -8
- package/lib/resources/responses/csdl/csdl-enum-type.d.ts +0 -12
- package/lib/resources/responses/csdl/csdl-function-action.d.ts +0 -49
- package/lib/resources/responses/csdl/csdl-navigation-property-binding.d.ts +0 -5
- package/lib/resources/responses/csdl/csdl-reference.d.ts +0 -18
- package/lib/resources/responses/csdl/csdl-schema.d.ts +0 -20
- package/lib/resources/responses/csdl/csdl-singleton.d.ts +0 -7
- package/lib/resources/responses/csdl/csdl-structural-property.d.ts +0 -31
- package/lib/resources/responses/csdl/csdl-structured-type.d.ts +0 -27
- package/lib/resources/responses/csdl/csdl-type-definition.d.ts +0 -11
- package/lib/resources/responses/index.d.ts +0 -4
- package/lib/resources/responses/types.d.ts +0 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ODataContext, ODataVersionHelper } from '
|
|
2
|
-
import { ODataMetadataType } from '
|
|
1
|
+
import { ODataContext, ODataVersionHelper } from './helper';
|
|
2
|
+
import { ODataMetadataType } from './types';
|
|
3
3
|
export declare abstract class ODataAnnotations<T> {
|
|
4
4
|
helper: ODataVersionHelper;
|
|
5
5
|
protected annotations: Map<string, any>;
|
package/lib/api.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { ODataCache } from './cache
|
|
3
|
-
import { ODataCollection, ODataModel, ODataModelOptions } from './models
|
|
2
|
+
import { ODataCache } from './cache';
|
|
3
|
+
import { ModelOptions, ODataCollection, ODataModel, ODataModelOptions } from './models';
|
|
4
4
|
import { ODataApiOptions } from './options';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { ApiConfig, EdmType, Parser, QueryOption } from './types';
|
|
5
|
+
import { ODataOptions, ODataResource, ODataSegment } from './resources';
|
|
6
|
+
import { ODataRequest, ODataBatchResource, ODataMetadataResource, ODataActionResource, ODataFunctionResource, ODataEntityResource, ODataEntitySetResource, ODataSingletonResource, ODataNavigationPropertyResource } from './resources';
|
|
7
|
+
import { ODataCallable, ODataEntitySet, ODataEnumType, ODataSchema, ODataSingleton, ODataStructuredType } from './schema';
|
|
8
|
+
import { ApiConfig, EdmType, ODataVersion, Parser, QueryOption, SchemaConfig } from './types';
|
|
9
|
+
import { ODataMetadata } from './metadata/metadata';
|
|
9
10
|
/**
|
|
10
11
|
* Api abstraction for consuming OData services.
|
|
11
12
|
*/
|
|
@@ -14,7 +15,7 @@ export declare class ODataApi {
|
|
|
14
15
|
serviceRootUrl: string;
|
|
15
16
|
metadataUrl: string;
|
|
16
17
|
name?: string;
|
|
17
|
-
version:
|
|
18
|
+
version: ODataVersion;
|
|
18
19
|
default: boolean;
|
|
19
20
|
creation: Date;
|
|
20
21
|
options: ODataApiOptions;
|
|
@@ -26,6 +27,7 @@ export declare class ODataApi {
|
|
|
26
27
|
configure(settings?: {
|
|
27
28
|
requester?: (request: ODataRequest<any>) => Observable<any>;
|
|
28
29
|
}): void;
|
|
30
|
+
populate(metadata: ODataMetadata): void;
|
|
29
31
|
fromJson<P, R>(json: {
|
|
30
32
|
segments: ODataSegment[];
|
|
31
33
|
options: {
|
|
@@ -53,13 +55,13 @@ export declare class ODataApi {
|
|
|
53
55
|
* @param path Name of the singleton
|
|
54
56
|
* @returns
|
|
55
57
|
*/
|
|
56
|
-
singleton<T>(
|
|
58
|
+
singleton<T>(name: string): ODataSingletonResource<T>;
|
|
57
59
|
/**
|
|
58
60
|
* Build an entity set resource.
|
|
59
61
|
* @param path Name of the entity set
|
|
60
62
|
* @returns
|
|
61
63
|
*/
|
|
62
|
-
entitySet<T>(
|
|
64
|
+
entitySet<T>(name: string): ODataEntitySetResource<T>;
|
|
63
65
|
/**
|
|
64
66
|
* Unbound Action
|
|
65
67
|
* @param {string} path?
|
|
@@ -72,6 +74,9 @@ export declare class ODataApi {
|
|
|
72
74
|
* @returns ODataFunctionResource
|
|
73
75
|
*/
|
|
74
76
|
function<P, R>(path: string): ODataFunctionResource<P, R>;
|
|
77
|
+
callable<T>(type: string): ODataCallable<T> | undefined;
|
|
78
|
+
enumType<T>(type: string): ODataEnumType<T> | undefined;
|
|
79
|
+
structuredType<T>(type: string): ODataStructuredType<T> | undefined;
|
|
75
80
|
request<T>(method: string, resource: ODataResource<any>, options: ODataOptions & {
|
|
76
81
|
body?: any;
|
|
77
82
|
etag?: string;
|
|
@@ -81,25 +86,23 @@ export declare class ODataApi {
|
|
|
81
86
|
bodyQueryOptions?: QueryOption[];
|
|
82
87
|
}): Observable<any>;
|
|
83
88
|
private memo;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
createSchema(config: SchemaConfig): ODataSchema;
|
|
90
|
+
findSchema(type: string): ODataSchema | undefined;
|
|
91
|
+
findEnumType<T>(value: string): ODataEnumType<T> | undefined;
|
|
92
|
+
findStructuredType<T>(value: string): ODataStructuredType<T> | undefined;
|
|
93
|
+
findCallable<R>(value: string, bindingType?: string): ODataCallable<R> | undefined;
|
|
94
|
+
findEntitySet(value: string): ODataEntitySet | undefined;
|
|
95
|
+
findSingleton(value: string): ODataSingleton | undefined;
|
|
96
|
+
findModel(type: string): typeof ODataModel | undefined;
|
|
97
|
+
createModel(structured: ODataStructuredType<any>): typeof ODataModel;
|
|
90
98
|
modelForType(type: string): typeof ODataModel;
|
|
91
|
-
|
|
99
|
+
findCollection(type: string): typeof ODataCollection | undefined;
|
|
100
|
+
createCollection(structured: ODataStructuredType<any>, model?: typeof ODataModel<any>): typeof ODataCollection;
|
|
92
101
|
collectionForType(type: string): typeof ODataCollection;
|
|
93
|
-
findServiceForType(type: string): typeof ODataEntityService | undefined;
|
|
94
102
|
findEntitySetForEntityType(entityType: string): ODataEntitySet | undefined;
|
|
95
|
-
findServiceForEntityType(entityType: string): typeof ODataEntityService | undefined;
|
|
96
|
-
findEnumTypeByName<T>(name: string): ODataEnumType<T> | undefined;
|
|
97
|
-
findStructuredTypeByName<T>(name: string): ODataStructuredType<T> | undefined;
|
|
98
|
-
findCallableByName<T>(name: string, bindingType?: string): ODataCallable<T> | undefined;
|
|
99
|
-
findEntitySetByName(name: string): ODataEntitySet | undefined;
|
|
100
|
-
findModelByName(name: string): typeof ODataModel | undefined;
|
|
101
|
-
findCollectionByName(name: string): typeof ODataCollection | undefined;
|
|
102
|
-
findServiceByName(name: string): typeof ODataEntityService | undefined;
|
|
103
103
|
parserForType<T>(type: string | EdmType, bindingType?: string): Parser<T>;
|
|
104
|
-
|
|
104
|
+
optionsForType<T>(type: string, { structuredType, config, }?: {
|
|
105
|
+
structuredType?: ODataStructuredType<T>;
|
|
106
|
+
config?: ModelOptions;
|
|
107
|
+
}): ODataModelOptions<T> | undefined;
|
|
105
108
|
}
|
package/lib/cache/memory.d.ts
CHANGED
package/lib/client.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { ODataApi } from './api';
|
|
|
4
4
|
import { ODataConfigLoader } from './loaders';
|
|
5
5
|
import { ODataCollection, ODataModel } from './models/index';
|
|
6
6
|
import { ODataActionResource, ODataBatchResource, ODataEntityResource, ODataEntitySetResource, ODataFunctionResource, ODataMetadataResource, ODataNavigationPropertyResource, ODataOptions, ODataResource, ODataResponse, ODataSegment, ODataSingletonResource } from './resources/index';
|
|
7
|
-
import { ODataEntityService } from './services/entity';
|
|
8
7
|
import { ODataSettings } from './settings';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
9
|
export declare class ODataClient {
|
|
@@ -62,25 +61,6 @@ export declare class ODataClient {
|
|
|
62
61
|
* @returns The collection for the given type.
|
|
63
62
|
*/
|
|
64
63
|
collectionForType(type: string): typeof ODataCollection;
|
|
65
|
-
/**
|
|
66
|
-
* Resolve the service for the given string type.
|
|
67
|
-
* @param type The string type of the service.
|
|
68
|
-
* @returns The service for the given type.
|
|
69
|
-
*/
|
|
70
|
-
serviceForType(type: string): ODataEntityService<any> | undefined;
|
|
71
|
-
/**
|
|
72
|
-
* Resolve the service for the given string entity type.
|
|
73
|
-
* @param type The string entity type binding to the service.
|
|
74
|
-
* @returns The service for the given entity type.
|
|
75
|
-
*/
|
|
76
|
-
serviceForEntityType(type: string): ODataEntityService<any> | undefined;
|
|
77
|
-
enumTypeByName<T>(name: string): import("angular-odata").ODataEnumType<T>;
|
|
78
|
-
structuredTypeByName<T>(name: string): import("angular-odata").ODataStructuredType<T>;
|
|
79
|
-
callableByName<T>(name: string): import("angular-odata").ODataCallable<T>;
|
|
80
|
-
entitySetByName(name: string): import("angular-odata").ODataEntitySet;
|
|
81
|
-
modelByName(name: string): typeof ODataModel;
|
|
82
|
-
collectionByName(name: string): typeof ODataCollection;
|
|
83
|
-
serviceByName(name: string): ODataEntityService<any> | undefined;
|
|
84
64
|
fromJson<E>(json: {
|
|
85
65
|
segments: ODataSegment[];
|
|
86
66
|
options: {
|
package/lib/constants.d.ts
CHANGED
|
@@ -29,7 +29,10 @@ export declare const RETRY_AFTER = "Retry-After";
|
|
|
29
29
|
export declare const RETRY_AFTER_HEADERS: string[];
|
|
30
30
|
export declare const APPLICATION_JSON = "application/json";
|
|
31
31
|
export declare const APPLICATION_HTTP = "application/http";
|
|
32
|
+
export declare const APPLICATION_XHTML = "application/xhtml+xml";
|
|
33
|
+
export declare const APPLICATION_XML = "application/xml";
|
|
32
34
|
export declare const TEXT_PLAIN = "text/plain";
|
|
35
|
+
export declare const CONTENT_TYPE_ANY = "*/*";
|
|
33
36
|
export declare const MULTIPART_MIXED = "multipart/mixed";
|
|
34
37
|
export declare const MULTIPART_MIXED_BOUNDARY = "multipart/mixed;boundary=";
|
|
35
38
|
export declare const CONTENT_TRANSFER_ENCODING = "Content-Transfer-Encoding";
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './types';
|
|
2
2
|
export * from './settings';
|
|
3
|
+
export * from './annotations';
|
|
3
4
|
export * from './api';
|
|
4
5
|
export * from './client';
|
|
5
6
|
export * from './module';
|
|
@@ -10,3 +11,4 @@ export * from './schema/index';
|
|
|
10
11
|
export * from './models/index';
|
|
11
12
|
export * from './resources/index';
|
|
12
13
|
export * from './cache/index';
|
|
14
|
+
export * from './metadata/index';
|
package/lib/loaders.d.ts
CHANGED
|
@@ -10,6 +10,12 @@ export declare class ODataConfigSyncLoader implements ODataConfigLoader {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class ODataConfigAsyncLoader implements ODataConfigLoader {
|
|
12
12
|
private readonly configs$;
|
|
13
|
-
constructor(configs$: Observable<ApiConfig> | Observable<ApiConfig
|
|
13
|
+
constructor(configs$: Observable<ApiConfig>[] | Observable<ApiConfig | ApiConfig[]>);
|
|
14
|
+
loadConfigs(): Observable<ApiConfig[]>;
|
|
15
|
+
}
|
|
16
|
+
export declare class ODataMetadataLoader implements ODataConfigLoader {
|
|
17
|
+
private readonly sources$;
|
|
18
|
+
private readonly baseConfigs;
|
|
19
|
+
constructor(sources$: Observable<string | string[]>, baseConfigs: ApiConfig | ApiConfig[]);
|
|
14
20
|
loadConfigs(): Observable<ApiConfig[]>;
|
|
15
21
|
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { AnnotationConfig } from '../../types';
|
|
2
|
+
import type { CsdlSchema } from './csdl-schema';
|
|
3
|
+
export declare class CsdlAnnotable {
|
|
4
|
+
Annotation?: CsdlAnnotation[];
|
|
5
|
+
constructor({ Annotation }: {
|
|
6
|
+
Annotation?: any[];
|
|
7
|
+
});
|
|
8
|
+
toJson(): {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
toConfig(): {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare class CsdlAnnotations extends CsdlAnnotable {
|
|
16
|
+
private schema;
|
|
17
|
+
Target: string;
|
|
18
|
+
Qualifier?: string;
|
|
19
|
+
constructor(schema: CsdlSchema, { Target, Qualifier, Annotation, }: {
|
|
20
|
+
Target: string;
|
|
21
|
+
Qualifier?: string;
|
|
22
|
+
Annotation: any[];
|
|
23
|
+
});
|
|
24
|
+
toJson(): {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
};
|
|
27
|
+
toConfig(): AnnotationConfig[];
|
|
28
|
+
}
|
|
29
|
+
export declare class CsdlAnnotation {
|
|
30
|
+
Term: string;
|
|
31
|
+
String?: string;
|
|
32
|
+
Bool?: boolean;
|
|
33
|
+
Int?: number;
|
|
34
|
+
Collection?: CsdlCollection[];
|
|
35
|
+
Record?: CsdlRecord[];
|
|
36
|
+
EnumMember?: CsdlEnumMember[];
|
|
37
|
+
constructor({ Term, String, Bool, Int, Collection, Record, EnumMember, }: {
|
|
38
|
+
Term: string;
|
|
39
|
+
String?: string;
|
|
40
|
+
Bool?: boolean;
|
|
41
|
+
Int?: number;
|
|
42
|
+
Collection?: any[];
|
|
43
|
+
Record?: any[];
|
|
44
|
+
EnumMember?: any[];
|
|
45
|
+
});
|
|
46
|
+
toJson(): {
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
};
|
|
49
|
+
toConfig(): AnnotationConfig;
|
|
50
|
+
}
|
|
51
|
+
export declare class CsdlTerm {
|
|
52
|
+
private schema;
|
|
53
|
+
Name: string;
|
|
54
|
+
Type: string;
|
|
55
|
+
BaseTerm?: string;
|
|
56
|
+
DefaultValue?: string;
|
|
57
|
+
AppliesTo?: string;
|
|
58
|
+
Nullable?: boolean;
|
|
59
|
+
MaxLength?: number;
|
|
60
|
+
Precision?: number;
|
|
61
|
+
Scale?: number;
|
|
62
|
+
SRID?: string;
|
|
63
|
+
String?: string;
|
|
64
|
+
Bool?: boolean;
|
|
65
|
+
Int?: number;
|
|
66
|
+
constructor(schema: CsdlSchema, { Name, Type, BaseTerm, DefaultValue, AppliesTo, Nullable, MaxLength, Precision, Scale, SRID, String, Bool, Int, }: {
|
|
67
|
+
Name: string;
|
|
68
|
+
Type: string;
|
|
69
|
+
BaseTerm?: string;
|
|
70
|
+
DefaultValue?: string;
|
|
71
|
+
AppliesTo?: string;
|
|
72
|
+
Nullable?: boolean;
|
|
73
|
+
MaxLength?: number;
|
|
74
|
+
Precision?: number;
|
|
75
|
+
Scale?: number;
|
|
76
|
+
SRID?: string;
|
|
77
|
+
String?: string;
|
|
78
|
+
Bool?: boolean;
|
|
79
|
+
Int?: number;
|
|
80
|
+
});
|
|
81
|
+
toJson(): {
|
|
82
|
+
[key: string]: any;
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
export declare class CsdlCollection {
|
|
86
|
+
String: CsdlString[];
|
|
87
|
+
Record: CsdlRecord[];
|
|
88
|
+
PropertyPath: CsdlPropertyPath[];
|
|
89
|
+
NavigationPropertyPath: CsdlNavigationPropertyPath[];
|
|
90
|
+
constructor({ String, Record, PropertyPath, NavigationPropertyPath, }: {
|
|
91
|
+
String: any[];
|
|
92
|
+
Record: any[];
|
|
93
|
+
PropertyPath: any[];
|
|
94
|
+
NavigationPropertyPath: any[];
|
|
95
|
+
});
|
|
96
|
+
toJson(): {
|
|
97
|
+
[key: string]: any;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
export declare class CsdlRecord {
|
|
101
|
+
PropertyValue: CsdlPropertyValue[];
|
|
102
|
+
constructor({ PropertyValue }: {
|
|
103
|
+
PropertyValue: any[];
|
|
104
|
+
});
|
|
105
|
+
toJson(): {
|
|
106
|
+
[key: string]: any;
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
export declare class CsdlPropertyValue {
|
|
110
|
+
Name: string;
|
|
111
|
+
String?: string;
|
|
112
|
+
Date?: Date;
|
|
113
|
+
EnumMember?: CsdlEnumMember[];
|
|
114
|
+
constructor({ Name, String, Date, EnumMember, }: {
|
|
115
|
+
Name: string;
|
|
116
|
+
String?: string;
|
|
117
|
+
Date?: Date;
|
|
118
|
+
EnumMember?: any[];
|
|
119
|
+
});
|
|
120
|
+
toJson(): {
|
|
121
|
+
[key: string]: any;
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
export declare class CsdlEnumMember {
|
|
125
|
+
TextContent: string;
|
|
126
|
+
constructor({ TextContent }: {
|
|
127
|
+
TextContent: string;
|
|
128
|
+
});
|
|
129
|
+
toJson(): {
|
|
130
|
+
TextContent: string;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
export declare class CsdlString {
|
|
134
|
+
TextContent: string;
|
|
135
|
+
constructor({ TextContent }: {
|
|
136
|
+
TextContent: string;
|
|
137
|
+
});
|
|
138
|
+
toJson(): {
|
|
139
|
+
TextContent: string;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
export declare class CsdlPropertyPath {
|
|
143
|
+
TextContent: string;
|
|
144
|
+
constructor({ TextContent }: {
|
|
145
|
+
TextContent: string;
|
|
146
|
+
});
|
|
147
|
+
toJson(): {
|
|
148
|
+
TextContent: string;
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
export declare class CsdlNavigationPropertyPath {
|
|
152
|
+
TextContent: string;
|
|
153
|
+
constructor({ TextContent }: {
|
|
154
|
+
TextContent: string;
|
|
155
|
+
});
|
|
156
|
+
toJson(): {
|
|
157
|
+
TextContent: string;
|
|
158
|
+
};
|
|
159
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CsdlEntitySet } from './csdl-entity-set';
|
|
2
|
+
import { CsdlSingleton } from './csdl-singleton';
|
|
3
|
+
import { CsdlFunctionImport, CsdlActionImport } from './csdl-function-action';
|
|
4
|
+
import { CsdlAnnotable } from './csdl-annotation';
|
|
5
|
+
import type { CsdlSchema } from './csdl-schema';
|
|
6
|
+
import { EntityContainerConfig } from '../../types';
|
|
7
|
+
export declare class CsdlEntityContainer extends CsdlAnnotable {
|
|
8
|
+
private schema;
|
|
9
|
+
Name: string;
|
|
10
|
+
Extend?: string;
|
|
11
|
+
EntitySet?: CsdlEntitySet[];
|
|
12
|
+
Singleton?: CsdlSingleton[];
|
|
13
|
+
FunctionImport?: CsdlFunctionImport[];
|
|
14
|
+
ActionImport?: CsdlActionImport[];
|
|
15
|
+
constructor(schema: CsdlSchema, { Name, Extend, EntitySet, Singleton, FunctionImport, ActionImport, Annotation, }: {
|
|
16
|
+
Name: string;
|
|
17
|
+
Extend?: string;
|
|
18
|
+
EntitySet?: any[];
|
|
19
|
+
Singleton?: any[];
|
|
20
|
+
FunctionImport?: any[];
|
|
21
|
+
ActionImport?: any[];
|
|
22
|
+
Annotation?: any[];
|
|
23
|
+
});
|
|
24
|
+
toJson(): {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
};
|
|
27
|
+
name(): string;
|
|
28
|
+
namespace(): string;
|
|
29
|
+
fullName(): string;
|
|
30
|
+
toConfig(base?: Partial<EntityContainerConfig>): EntityContainerConfig;
|
|
31
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EntitySetConfig } from '../../types';
|
|
2
|
+
import { CsdlAnnotable } from './csdl-annotation';
|
|
3
|
+
import type { CsdlEntityContainer } from './csdl-entity-container';
|
|
4
|
+
import { CsdlNavigationPropertyBinding } from './csdl-navigation-property-binding';
|
|
5
|
+
export declare class CsdlEntitySet extends CsdlAnnotable {
|
|
6
|
+
private container;
|
|
7
|
+
Name: string;
|
|
8
|
+
EntityType: string;
|
|
9
|
+
NavigationPropertyBinding?: CsdlNavigationPropertyBinding[];
|
|
10
|
+
IncludeInServiceDocument?: boolean;
|
|
11
|
+
constructor(container: CsdlEntityContainer, { Name, EntityType, NavigationPropertyBinding, IncludeInServiceDocument, Annotation, }: {
|
|
12
|
+
Name: string;
|
|
13
|
+
EntityType: string;
|
|
14
|
+
NavigationPropertyBinding?: any[];
|
|
15
|
+
IncludeInServiceDocument?: boolean;
|
|
16
|
+
Annotation?: any[];
|
|
17
|
+
});
|
|
18
|
+
toJson(): {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
name(): string;
|
|
22
|
+
namespace(): string;
|
|
23
|
+
fullName(): string;
|
|
24
|
+
toConfig(): EntitySetConfig;
|
|
25
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EnumTypeConfig, EnumTypeFieldConfig } from '../../types';
|
|
2
|
+
import { CsdlAnnotable } from './csdl-annotation';
|
|
3
|
+
import type { CsdlSchema } from './csdl-schema';
|
|
4
|
+
export declare class CsdlEnumType extends CsdlAnnotable {
|
|
5
|
+
private schema;
|
|
6
|
+
Name: string;
|
|
7
|
+
Member: CsdlMember[];
|
|
8
|
+
UnderlyingType?: string;
|
|
9
|
+
IsFlags?: boolean;
|
|
10
|
+
constructor(schema: CsdlSchema, { Name, Member, UnderlyingType, IsFlags, Annotation, }: {
|
|
11
|
+
Name: string;
|
|
12
|
+
Member: any[];
|
|
13
|
+
UnderlyingType?: string;
|
|
14
|
+
IsFlags?: boolean;
|
|
15
|
+
Annotation?: any[];
|
|
16
|
+
});
|
|
17
|
+
toJson(): {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
20
|
+
name(): string;
|
|
21
|
+
namespace(): string;
|
|
22
|
+
fullName(): string;
|
|
23
|
+
toConfig(base?: Partial<EnumTypeConfig>): EnumTypeConfig;
|
|
24
|
+
}
|
|
25
|
+
export declare class CsdlMember extends CsdlAnnotable {
|
|
26
|
+
Name: string;
|
|
27
|
+
Value?: number;
|
|
28
|
+
constructor({ Name, Value, Annotation, }: {
|
|
29
|
+
Name: string;
|
|
30
|
+
Value?: number;
|
|
31
|
+
Annotation?: any[];
|
|
32
|
+
});
|
|
33
|
+
toJson(): {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
};
|
|
36
|
+
toConfig(base?: Partial<EnumTypeFieldConfig>): EnumTypeFieldConfig;
|
|
37
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { CallableConfig, ParameterConfig } from '../../types';
|
|
2
|
+
import { CsdlAnnotable } from './csdl-annotation';
|
|
3
|
+
import type { CsdlEntityContainer } from './csdl-entity-container';
|
|
4
|
+
import type { CsdlSchema } from './csdl-schema';
|
|
5
|
+
export declare const BINDING_PARAMETER_NAME: string;
|
|
6
|
+
export declare class CsdlCallable {
|
|
7
|
+
private schema;
|
|
8
|
+
Name: string;
|
|
9
|
+
ReturnType?: CsdlReturnType;
|
|
10
|
+
IsBound?: boolean;
|
|
11
|
+
EntitySetPath?: string;
|
|
12
|
+
Parameter?: CsdlParameter[];
|
|
13
|
+
constructor(schema: CsdlSchema, { Name, ReturnType, IsBound, EntitySetPath, Parameter, }: {
|
|
14
|
+
Name: string;
|
|
15
|
+
ReturnType?: any;
|
|
16
|
+
IsBound?: boolean;
|
|
17
|
+
EntitySetPath?: string;
|
|
18
|
+
Parameter?: any[];
|
|
19
|
+
});
|
|
20
|
+
toJson(): {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
};
|
|
23
|
+
name(): string;
|
|
24
|
+
namespace(): string;
|
|
25
|
+
fullName(): string;
|
|
26
|
+
}
|
|
27
|
+
export declare class CsdlFunction extends CsdlCallable {
|
|
28
|
+
IsComposable?: boolean;
|
|
29
|
+
constructor(schema: CsdlSchema, { Name, ReturnType, IsBound, EntitySetPath, IsComposable, Parameter, }: {
|
|
30
|
+
Name: string;
|
|
31
|
+
ReturnType: any;
|
|
32
|
+
IsBound?: boolean;
|
|
33
|
+
EntitySetPath?: string;
|
|
34
|
+
IsComposable?: boolean;
|
|
35
|
+
Parameter?: any[];
|
|
36
|
+
});
|
|
37
|
+
toJson(): {
|
|
38
|
+
IsComposable: boolean | undefined;
|
|
39
|
+
};
|
|
40
|
+
toConfig(base?: Partial<CallableConfig>): CallableConfig;
|
|
41
|
+
}
|
|
42
|
+
export declare class CsdlAction extends CsdlCallable {
|
|
43
|
+
constructor(schema: CsdlSchema, { Name, ReturnType, IsBound, EntitySetPath, Parameter, }: {
|
|
44
|
+
Name: string;
|
|
45
|
+
ReturnType?: any;
|
|
46
|
+
IsBound?: boolean;
|
|
47
|
+
EntitySetPath?: string;
|
|
48
|
+
Parameter?: any[];
|
|
49
|
+
});
|
|
50
|
+
toJson(): {
|
|
51
|
+
[x: string]: any;
|
|
52
|
+
};
|
|
53
|
+
toConfig(base?: Partial<CallableConfig>): CallableConfig;
|
|
54
|
+
}
|
|
55
|
+
export declare class CsdlFunctionImport {
|
|
56
|
+
private container;
|
|
57
|
+
Name: string;
|
|
58
|
+
FunctionName: string;
|
|
59
|
+
EntitySet?: string;
|
|
60
|
+
IncludeInServiceDocument?: boolean;
|
|
61
|
+
constructor(container: CsdlEntityContainer, { Name, FunctionName, EntitySet, IncludeInServiceDocument, }: {
|
|
62
|
+
Name: string;
|
|
63
|
+
FunctionName: string;
|
|
64
|
+
EntitySet?: string;
|
|
65
|
+
IncludeInServiceDocument?: boolean;
|
|
66
|
+
});
|
|
67
|
+
toJson(): {
|
|
68
|
+
Name: string;
|
|
69
|
+
FunctionName: string;
|
|
70
|
+
EntitySet: string | undefined;
|
|
71
|
+
IncludeInServiceDocument: boolean | undefined;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
export declare class CsdlActionImport {
|
|
75
|
+
private container;
|
|
76
|
+
Name: string;
|
|
77
|
+
Action: string;
|
|
78
|
+
EntitySet?: string;
|
|
79
|
+
constructor(container: CsdlEntityContainer, { Name, Action, EntitySet, }: {
|
|
80
|
+
Name: string;
|
|
81
|
+
Action: string;
|
|
82
|
+
EntitySet?: string;
|
|
83
|
+
});
|
|
84
|
+
toJson(): {
|
|
85
|
+
Name: string;
|
|
86
|
+
Action: string;
|
|
87
|
+
EntitySet: string | undefined;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
export declare class CsdlParameter extends CsdlAnnotable {
|
|
91
|
+
Name: string;
|
|
92
|
+
Type: string;
|
|
93
|
+
Collection: boolean;
|
|
94
|
+
Nullable?: boolean;
|
|
95
|
+
MaxLength?: number;
|
|
96
|
+
Precision?: number;
|
|
97
|
+
Scale?: number;
|
|
98
|
+
SRID?: string;
|
|
99
|
+
constructor({ Name, Type, Nullable, MaxLength, Precision, Scale, SRID, Annotation, }: {
|
|
100
|
+
Name: string;
|
|
101
|
+
Type: string;
|
|
102
|
+
Nullable?: boolean;
|
|
103
|
+
MaxLength?: number;
|
|
104
|
+
Precision?: number;
|
|
105
|
+
Scale?: number;
|
|
106
|
+
SRID?: string;
|
|
107
|
+
Annotation?: any[];
|
|
108
|
+
});
|
|
109
|
+
toJson(): {
|
|
110
|
+
Name: string;
|
|
111
|
+
Type: string;
|
|
112
|
+
Nullable: boolean | undefined;
|
|
113
|
+
MaxLength: number | undefined;
|
|
114
|
+
Precision: number | undefined;
|
|
115
|
+
Scale: number | undefined;
|
|
116
|
+
SRID: string | undefined;
|
|
117
|
+
};
|
|
118
|
+
toConfig(): ParameterConfig;
|
|
119
|
+
}
|
|
120
|
+
export declare class CsdlReturnType {
|
|
121
|
+
Type: string;
|
|
122
|
+
Collection: boolean;
|
|
123
|
+
Nullable?: boolean;
|
|
124
|
+
MaxLength?: number;
|
|
125
|
+
Precision?: number;
|
|
126
|
+
Scale?: number;
|
|
127
|
+
SRID?: string;
|
|
128
|
+
constructor({ Type, Nullable, MaxLength, Precision, Scale, SRID, }: {
|
|
129
|
+
Type: string;
|
|
130
|
+
Nullable?: boolean;
|
|
131
|
+
MaxLength?: number;
|
|
132
|
+
Precision?: number;
|
|
133
|
+
Scale?: number;
|
|
134
|
+
SRID?: string;
|
|
135
|
+
});
|
|
136
|
+
toJson(): {
|
|
137
|
+
Type: string;
|
|
138
|
+
Nullable: boolean | undefined;
|
|
139
|
+
MaxLength: number | undefined;
|
|
140
|
+
Precision: number | undefined;
|
|
141
|
+
Scale: number | undefined;
|
|
142
|
+
SRID: string | undefined;
|
|
143
|
+
};
|
|
144
|
+
toConfig(): {
|
|
145
|
+
type: string;
|
|
146
|
+
collection?: boolean | undefined;
|
|
147
|
+
} | undefined;
|
|
148
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ReferenceConfig } from '../../types';
|
|
2
|
+
import { CsdlAnnotable } from './csdl-annotation';
|
|
3
|
+
export declare class CsdlReference extends CsdlAnnotable {
|
|
4
|
+
Uri: string;
|
|
5
|
+
Include?: CsdlInclude[];
|
|
6
|
+
IncludeAnnotations?: CsdlIncludeAnnotations[];
|
|
7
|
+
constructor({ Uri, Include, IncludeAnnotations, Annotation, }: {
|
|
8
|
+
Uri: string;
|
|
9
|
+
Include?: any[];
|
|
10
|
+
IncludeAnnotations?: any[];
|
|
11
|
+
Annotation?: any[];
|
|
12
|
+
});
|
|
13
|
+
toJson(): {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
|
16
|
+
toConfig(base?: Partial<ReferenceConfig>): ReferenceConfig;
|
|
17
|
+
}
|
|
18
|
+
export declare class CsdlInclude {
|
|
19
|
+
Namespace: string;
|
|
20
|
+
Alias?: string;
|
|
21
|
+
constructor({ Namespace, Alias }: {
|
|
22
|
+
Namespace: string;
|
|
23
|
+
Alias?: string;
|
|
24
|
+
});
|
|
25
|
+
toJson(): {
|
|
26
|
+
Namespace: string;
|
|
27
|
+
Alias: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
toConfig(): {
|
|
30
|
+
namespace: string;
|
|
31
|
+
alias: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export declare class CsdlIncludeAnnotations {
|
|
35
|
+
TermNamespace: string;
|
|
36
|
+
Qualifier?: string;
|
|
37
|
+
TargetNamespace?: string;
|
|
38
|
+
constructor({ TermNamespace, Qualifier, TargetNamespace, }: {
|
|
39
|
+
TermNamespace: string;
|
|
40
|
+
Qualifier?: string;
|
|
41
|
+
TargetNamespace?: string;
|
|
42
|
+
});
|
|
43
|
+
toJson(): {
|
|
44
|
+
TermNamespace: string;
|
|
45
|
+
Qualifier: string | undefined;
|
|
46
|
+
TargetNamespace: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
toConfig(): {
|
|
49
|
+
termNamespace: string;
|
|
50
|
+
qualifier: string | undefined;
|
|
51
|
+
targetNamespace: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
}
|