angular-odata 0.131.0 → 0.140.1
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 +322 -580
- package/fesm2022/angular-odata.mjs.map +1 -1
- package/index.d.ts +6397 -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
package/lib/helper.d.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { ODataMetadataType } from './types';
|
|
2
|
-
export declare const COLLECTION: RegExp;
|
|
3
|
-
export declare const PROPERTY: RegExp;
|
|
4
|
-
export declare const EXPAND: RegExp;
|
|
5
|
-
export type ODataContext = {
|
|
6
|
-
serviceRootUrl?: string;
|
|
7
|
-
metadataUrl?: string;
|
|
8
|
-
entitySet?: string;
|
|
9
|
-
key?: string;
|
|
10
|
-
expand?: string;
|
|
11
|
-
type?: string;
|
|
12
|
-
property?: string;
|
|
13
|
-
entity?: boolean;
|
|
14
|
-
};
|
|
15
|
-
export interface ODataVersionHelper {
|
|
16
|
-
VALUE: string;
|
|
17
|
-
ODATA_ANNOTATION_PREFIX: string;
|
|
18
|
-
ODATA_FUNCTION_PREFIX: string;
|
|
19
|
-
ODATA_ID: string;
|
|
20
|
-
ODATA_TYPE: string;
|
|
21
|
-
ODATA_COUNT: string;
|
|
22
|
-
ODATA_ETAG: string;
|
|
23
|
-
ODATA_CONTEXT: string;
|
|
24
|
-
ODATA_MEDIA_ETAG: string;
|
|
25
|
-
ODATA_NEXTLINK: string;
|
|
26
|
-
ODATA_DEFERRED: string;
|
|
27
|
-
ODATA_ANNOTATION: string;
|
|
28
|
-
entity(value: {
|
|
29
|
-
[name: string]: any;
|
|
30
|
-
}): any;
|
|
31
|
-
entities(value: {
|
|
32
|
-
[name: string]: any;
|
|
33
|
-
}): any;
|
|
34
|
-
property(value: {
|
|
35
|
-
[name: string]: any;
|
|
36
|
-
}): any;
|
|
37
|
-
annotations(value: {
|
|
38
|
-
[name: string]: any;
|
|
39
|
-
}): Map<string, any>;
|
|
40
|
-
attributes(value: {
|
|
41
|
-
[name: string]: any;
|
|
42
|
-
}, metadata: ODataMetadataType): any;
|
|
43
|
-
context(annots: Map<string, any> | {
|
|
44
|
-
[name: string]: any;
|
|
45
|
-
}): ODataContext;
|
|
46
|
-
id(annots: Map<string, any> | {
|
|
47
|
-
[name: string]: any;
|
|
48
|
-
}): string | undefined;
|
|
49
|
-
etag(annots: Map<string, any> | {
|
|
50
|
-
[name: string]: any;
|
|
51
|
-
}): string | undefined;
|
|
52
|
-
type(annots: Map<string, any> | {
|
|
53
|
-
[name: string]: any;
|
|
54
|
-
}): string | undefined;
|
|
55
|
-
count(annots: Map<string, any>): number | undefined;
|
|
56
|
-
functions(annots: Map<string, any>): Map<string, any>;
|
|
57
|
-
properties<T>(annots: Map<string, any>): Map<keyof T, Map<string, any>>;
|
|
58
|
-
mediaEtag(annots: Map<string, any>): string | undefined;
|
|
59
|
-
metadataEtag(annots: Map<string, any>): string | undefined;
|
|
60
|
-
nextLink(annots: Map<string, any>): string | undefined;
|
|
61
|
-
readLink(annots: Map<string, any>): string | undefined;
|
|
62
|
-
mediaReadLink(annots: Map<string, any>): string | undefined;
|
|
63
|
-
editLink(annots: Map<string, any>): string | undefined;
|
|
64
|
-
mediaEditLink(annots: Map<string, any>): string | undefined;
|
|
65
|
-
mediaContentType(annots: Map<string, any>): string | undefined;
|
|
66
|
-
deltaLink(annots: Map<string, any>): string | undefined;
|
|
67
|
-
countParam(): {
|
|
68
|
-
[name: string]: string;
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
export declare const ODataHelper: {
|
|
72
|
-
"4.0": ODataVersionHelper;
|
|
73
|
-
"3.0": ODataVersionHelper;
|
|
74
|
-
"2.0": ODataVersionHelper;
|
|
75
|
-
};
|
package/lib/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export * from './types';
|
|
2
|
-
export * from './settings';
|
|
3
|
-
export * from './annotations';
|
|
4
|
-
export * from './api';
|
|
5
|
-
export * from './client';
|
|
6
|
-
export * from './module';
|
|
7
|
-
export * from './loaders';
|
|
8
|
-
export * from './utils/index';
|
|
9
|
-
export * from './services/index';
|
|
10
|
-
export * from './schema/index';
|
|
11
|
-
export * from './models/index';
|
|
12
|
-
export * from './resources/index';
|
|
13
|
-
export * from './cache/index';
|
|
14
|
-
export * from './metadata/index';
|
package/lib/loaders.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ODataApiConfig } from './types';
|
|
3
|
-
export declare abstract class ODataConfigLoader {
|
|
4
|
-
abstract loadConfigs(): Observable<ODataApiConfig[]>;
|
|
5
|
-
}
|
|
6
|
-
export declare class ODataConfigSyncLoader implements ODataConfigLoader {
|
|
7
|
-
private readonly passedConfigs;
|
|
8
|
-
constructor(passedConfigs: ODataApiConfig | ODataApiConfig[]);
|
|
9
|
-
loadConfigs(): Observable<ODataApiConfig[]>;
|
|
10
|
-
}
|
|
11
|
-
export declare class ODataConfigAsyncLoader implements ODataConfigLoader {
|
|
12
|
-
private readonly configs$;
|
|
13
|
-
constructor(configs$: Observable<ODataApiConfig>[] | Observable<ODataApiConfig | ODataApiConfig[]>);
|
|
14
|
-
loadConfigs(): Observable<ODataApiConfig[]>;
|
|
15
|
-
}
|
|
16
|
-
export declare class ODataMetadataLoader implements ODataConfigLoader {
|
|
17
|
-
private readonly sources$;
|
|
18
|
-
private readonly baseConfigs;
|
|
19
|
-
constructor(sources$: Observable<string | string[]>, baseConfigs: ODataApiConfig | ODataApiConfig[]);
|
|
20
|
-
loadConfigs(): Observable<ODataApiConfig[]>;
|
|
21
|
-
}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { ODataAnnotationConfig } 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(): ODataAnnotationConfig[];
|
|
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(): ODataAnnotationConfig;
|
|
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
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
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 { ODataEntityContainerConfig } 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<ODataEntityContainerConfig>): ODataEntityContainerConfig;
|
|
31
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ODataEntitySetConfig } 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(): ODataEntitySetConfig;
|
|
25
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ODataEnumTypeConfig, ODataEnumTypeFieldConfig } 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<ODataEnumTypeConfig>): ODataEnumTypeConfig;
|
|
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<ODataEnumTypeFieldConfig>): ODataEnumTypeFieldConfig;
|
|
37
|
-
}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { ODataCallableConfig, ODataParameterConfig } 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<ODataCallableConfig>): ODataCallableConfig;
|
|
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<ODataCallableConfig>): ODataCallableConfig;
|
|
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(): ODataParameterConfig;
|
|
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
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ODataReferenceConfig } 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<ODataReferenceConfig>): ODataReferenceConfig;
|
|
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
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { CsdlTerm, CsdlAnnotations } from './csdl-annotation';
|
|
2
|
-
import { CsdlTypeDefinition } from './csdl-type-definition';
|
|
3
|
-
import { CsdlEnumType } from './csdl-enum-type';
|
|
4
|
-
import { CsdlEntityType, CsdlComplexType } from './csdl-structured-type';
|
|
5
|
-
import { CsdlFunction, CsdlAction } from './csdl-function-action';
|
|
6
|
-
import { CsdlEntityContainer } from './csdl-entity-container';
|
|
7
|
-
import { ODataSchemaConfig } from '../../types';
|
|
8
|
-
export declare class CsdlSchema {
|
|
9
|
-
Namespace: string;
|
|
10
|
-
Alias?: string;
|
|
11
|
-
EnumType?: CsdlEnumType[];
|
|
12
|
-
ComplexType?: CsdlComplexType[];
|
|
13
|
-
EntityType?: CsdlEntityType[];
|
|
14
|
-
Function?: CsdlFunction[];
|
|
15
|
-
Action?: CsdlAction[];
|
|
16
|
-
EntityContainer?: CsdlEntityContainer[];
|
|
17
|
-
TypeDefinition?: CsdlTypeDefinition[];
|
|
18
|
-
Term?: CsdlTerm[];
|
|
19
|
-
Annotations?: CsdlAnnotations[];
|
|
20
|
-
constructor({ Namespace, Alias, EnumType, ComplexType, EntityType, Function, Action, EntityContainer, TypeDefinition, Term, Annotations, }: {
|
|
21
|
-
Namespace: string;
|
|
22
|
-
Alias?: string;
|
|
23
|
-
EnumType?: any[];
|
|
24
|
-
ComplexType?: any[];
|
|
25
|
-
EntityType?: any[];
|
|
26
|
-
Function?: any[];
|
|
27
|
-
Action?: any[];
|
|
28
|
-
EntityContainer?: any[];
|
|
29
|
-
TypeDefinition?: any[];
|
|
30
|
-
Term?: any[];
|
|
31
|
-
Annotations?: any[];
|
|
32
|
-
});
|
|
33
|
-
toJson(): {
|
|
34
|
-
[key: string]: any;
|
|
35
|
-
};
|
|
36
|
-
toConfig(base?: Partial<ODataSchemaConfig>): ODataSchemaConfig;
|
|
37
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CsdlAnnotable } from './csdl-annotation';
|
|
2
|
-
import type { CsdlEntityContainer } from './csdl-entity-container';
|
|
3
|
-
import { CsdlNavigationPropertyBinding } from './csdl-navigation-property-binding';
|
|
4
|
-
export declare class CsdlSingleton extends CsdlAnnotable {
|
|
5
|
-
private container;
|
|
6
|
-
Name: string;
|
|
7
|
-
Type: string;
|
|
8
|
-
NavigationPropertyBindings?: CsdlNavigationPropertyBinding[];
|
|
9
|
-
constructor(container: CsdlEntityContainer, { Name, Type, NavigationPropertyBindings, Annotation, }: {
|
|
10
|
-
Name: string;
|
|
11
|
-
Type: string;
|
|
12
|
-
NavigationPropertyBindings?: any[];
|
|
13
|
-
Annotation?: any[];
|
|
14
|
-
});
|
|
15
|
-
toJson(): {
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
};
|
|
18
|
-
name(): string;
|
|
19
|
-
namespace(): string;
|
|
20
|
-
fullName(): string;
|
|
21
|
-
}
|