angular-odata 0.131.0 → 0.140.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/angular-odata.mjs +276 -543
- package/fesm2022/angular-odata.mjs.map +1 -1
- package/index.d.ts +6403 -3
- package/package.json +3 -3
- package/schematics/apigen/angular/base.js +2 -6
- package/schematics/apigen/angular/base.js.map +1 -1
- package/schematics/apigen/angular/entity.js +1 -2
- package/schematics/apigen/angular/entity.js.map +1 -1
- package/schematics/apigen/index.js +2 -6
- package/schematics/apigen/index.js.map +1 -1
- package/schematics/apigen/metadata/csdl/csdl-annotation.js +1 -2
- package/schematics/apigen/metadata/csdl/csdl-annotation.js.map +1 -1
- package/schematics/apigen/metadata/csdl/csdl-entity-container.js.map +1 -1
- package/schematics/apigen/metadata/csdl/csdl-entity-set.js.map +1 -1
- package/schematics/apigen/metadata/csdl/csdl-enum-type.d.ts +1 -1
- package/schematics/apigen/metadata/csdl/csdl-enum-type.js +1 -1
- package/schematics/apigen/metadata/csdl/csdl-enum-type.js.map +1 -1
- package/schematics/apigen/metadata/csdl/csdl-function-action.d.ts +1 -1
- package/schematics/apigen/metadata/csdl/csdl-reference.js +1 -2
- package/schematics/apigen/metadata/csdl/csdl-reference.js.map +1 -1
- package/schematics/apigen/metadata/csdl/csdl-schema.js +1 -2
- package/schematics/apigen/metadata/csdl/csdl-schema.js.map +1 -1
- package/schematics/apigen/metadata/csdl/csdl-singleton.js.map +1 -1
- package/schematics/apigen/metadata/csdl/csdl-structural-property.d.ts +1 -1
- package/schematics/apigen/metadata/csdl/csdl-structural-property.js +2 -3
- package/schematics/apigen/metadata/csdl/csdl-structural-property.js.map +1 -1
- package/schematics/apigen/metadata/csdl/csdl-structured-type.d.ts +1 -1
- package/schematics/apigen/metadata/csdl/csdl-structured-type.js +1 -2
- package/schematics/apigen/metadata/csdl/csdl-structured-type.js.map +1 -1
- package/schematics/apigen/metadata/parser.js +1 -3
- package/schematics/apigen/metadata/parser.js.map +1 -1
- package/schematics/apigen/utils.js +2 -4
- package/schematics/apigen/utils.js.map +1 -1
- package/lib/annotations.d.ts +0 -75
- package/lib/api.d.ts +0 -107
- package/lib/cache/cache.d.ts +0 -104
- package/lib/cache/index.d.ts +0 -3
- package/lib/cache/memory.d.ts +0 -19
- package/lib/cache/storage.d.ts +0 -35
- package/lib/client.d.ts +0 -613
- package/lib/constants.d.ts +0 -70
- package/lib/helper.d.ts +0 -75
- package/lib/index.d.ts +0 -14
- package/lib/loaders.d.ts +0 -21
- package/lib/metadata/csdl/csdl-annotation.d.ts +0 -159
- package/lib/metadata/csdl/csdl-entity-container.d.ts +0 -31
- package/lib/metadata/csdl/csdl-entity-set.d.ts +0 -25
- package/lib/metadata/csdl/csdl-enum-type.d.ts +0 -37
- package/lib/metadata/csdl/csdl-function-action.d.ts +0 -148
- package/lib/metadata/csdl/csdl-navigation-property-binding.d.ts +0 -12
- package/lib/metadata/csdl/csdl-reference.d.ts +0 -53
- package/lib/metadata/csdl/csdl-schema.d.ts +0 -37
- package/lib/metadata/csdl/csdl-singleton.d.ts +0 -21
- package/lib/metadata/csdl/csdl-structural-property.d.ts +0 -86
- package/lib/metadata/csdl/csdl-structured-type.d.ts +0 -94
- package/lib/metadata/csdl/csdl-type-definition.d.ts +0 -25
- package/lib/metadata/index.d.ts +0 -2
- package/lib/metadata/metadata.d.ts +0 -23
- package/lib/metadata/parser.d.ts +0 -110
- package/lib/models/collection.d.ts +0 -183
- package/lib/models/index.d.ts +0 -3
- package/lib/models/model.d.ts +0 -176
- package/lib/models/options.d.ts +0 -368
- package/lib/module.d.ts +0 -19
- package/lib/options.d.ts +0 -101
- package/lib/resources/index.d.ts +0 -6
- package/lib/resources/options.d.ts +0 -18
- package/lib/resources/path/handlers.d.ts +0 -29
- package/lib/resources/path/index.d.ts +0 -2
- package/lib/resources/path/segments.d.ts +0 -54
- package/lib/resources/query/builder.d.ts +0 -103
- package/lib/resources/query/expressions/apply.d.ts +0 -125
- package/lib/resources/query/expressions/base.d.ts +0 -25
- package/lib/resources/query/expressions/compute.d.ts +0 -39
- package/lib/resources/query/expressions/count.d.ts +0 -58
- package/lib/resources/query/expressions/expand.d.ts +0 -69
- package/lib/resources/query/expressions/filter.d.ts +0 -77
- package/lib/resources/query/expressions/index.d.ts +0 -9
- package/lib/resources/query/expressions/orderby.d.ts +0 -55
- package/lib/resources/query/expressions/search.d.ts +0 -63
- package/lib/resources/query/expressions/select.d.ts +0 -34
- package/lib/resources/query/expressions/syntax.d.ts +0 -313
- package/lib/resources/query/handlers.d.ts +0 -270
- package/lib/resources/query/index.d.ts +0 -4
- package/lib/resources/query/options.d.ts +0 -60
- package/lib/resources/request.d.ts +0 -64
- package/lib/resources/resource.d.ts +0 -161
- package/lib/resources/response.d.ts +0 -82
- package/lib/resources/types/action.d.ts +0 -84
- package/lib/resources/types/batch.d.ts +0 -62
- package/lib/resources/types/count.d.ts +0 -20
- package/lib/resources/types/entity-set.d.ts +0 -79
- package/lib/resources/types/entity.d.ts +0 -54
- package/lib/resources/types/function.d.ts +0 -108
- package/lib/resources/types/index.d.ts +0 -14
- package/lib/resources/types/media.d.ts +0 -28
- package/lib/resources/types/metadata.d.ts +0 -13
- package/lib/resources/types/navigation-property.d.ts +0 -157
- package/lib/resources/types/options.d.ts +0 -32
- package/lib/resources/types/property.d.ts +0 -115
- package/lib/resources/types/reference.d.ts +0 -74
- package/lib/resources/types/singleton.d.ts +0 -87
- package/lib/resources/types/value.d.ts +0 -19
- package/lib/schema/annotation.d.ts +0 -28
- package/lib/schema/callable.d.ts +0 -41
- package/lib/schema/element.d.ts +0 -52
- package/lib/schema/entity-container.d.ts +0 -10
- package/lib/schema/entity-set.d.ts +0 -10
- package/lib/schema/enum-type.d.ts +0 -55
- package/lib/schema/index.d.ts +0 -8
- package/lib/schema/parsers/callable.d.ts +0 -47
- package/lib/schema/parsers/edm.d.ts +0 -4
- package/lib/schema/parsers/enum-type.d.ts +0 -56
- package/lib/schema/parsers/index.d.ts +0 -4
- package/lib/schema/parsers/structured-type.d.ts +0 -172
- package/lib/schema/schema.d.ts +0 -26
- package/lib/schema/singleton.d.ts +0 -10
- package/lib/schema/structured-type.d.ts +0 -152
- package/lib/services/base.d.ts +0 -20
- package/lib/services/entity-set.d.ts +0 -120
- package/lib/services/entity.d.ts +0 -11
- package/lib/services/factory.d.ts +0 -33
- package/lib/services/index.d.ts +0 -4
- package/lib/services/singleton.d.ts +0 -44
- package/lib/settings.d.ts +0 -26
- package/lib/types.d.ts +0 -285
- package/lib/utils/arraybuffers.d.ts +0 -4
- package/lib/utils/arrays.d.ts +0 -3
- package/lib/utils/dates.d.ts +0 -3
- package/lib/utils/durations.d.ts +0 -14
- package/lib/utils/enums.d.ts +0 -23
- package/lib/utils/http.d.ts +0 -22
- package/lib/utils/index.d.ts +0 -9
- package/lib/utils/objects.d.ts +0 -37
- package/lib/utils/odata.d.ts +0 -4
- package/lib/utils/strings.d.ts +0 -7
- package/lib/utils/types.d.ts +0 -11
- package/lib/utils/urls.d.ts +0 -4
- package/public-api.d.ts +0 -1
package/lib/types.d.ts
DELETED
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
export type ODataVersion = '2.0' | '3.0' | '4.0';
|
|
3
|
-
export type FetchPolicy = 'cache-first' | 'cache-and-network' | 'network-only' | 'no-cache' | 'cache-only';
|
|
4
|
-
export type ODataMetadataType = 'minimal' | 'full' | 'none';
|
|
5
|
-
export type CacheCacheability = 'public' | 'private' | 'no-cache' | 'no-store';
|
|
6
|
-
export declare enum PathSegment {
|
|
7
|
-
batch = "batch",
|
|
8
|
-
metadata = "metadata",
|
|
9
|
-
entitySet = "entitySet",
|
|
10
|
-
singleton = "singleton",
|
|
11
|
-
type = "type",
|
|
12
|
-
property = "property",
|
|
13
|
-
navigationProperty = "navigationProperty",
|
|
14
|
-
reference = "reference",
|
|
15
|
-
value = "value",
|
|
16
|
-
count = "count",
|
|
17
|
-
function = "function",
|
|
18
|
-
action = "action"
|
|
19
|
-
}
|
|
20
|
-
export declare enum QueryOption {
|
|
21
|
-
select = "select",
|
|
22
|
-
expand = "expand",
|
|
23
|
-
compute = "compute",
|
|
24
|
-
apply = "apply",
|
|
25
|
-
filter = "filter",
|
|
26
|
-
search = "search",
|
|
27
|
-
transform = "transform",
|
|
28
|
-
orderBy = "orderBy",
|
|
29
|
-
top = "top",
|
|
30
|
-
skip = "skip",
|
|
31
|
-
skiptoken = "skiptoken",
|
|
32
|
-
format = "format",
|
|
33
|
-
levels = "levels",
|
|
34
|
-
count = "count"
|
|
35
|
-
}
|
|
36
|
-
export declare enum EdmType {
|
|
37
|
-
Guid = "Edm.Guid",
|
|
38
|
-
Int16 = "Edm.Int16",
|
|
39
|
-
String = "Edm.String",
|
|
40
|
-
Boolean = "Edm.Boolean",
|
|
41
|
-
Byte = "Edm.Byte",
|
|
42
|
-
SByte = "Edm.SByte",
|
|
43
|
-
Int32 = "Edm.Int32",
|
|
44
|
-
Int64 = "Edm.Int64",
|
|
45
|
-
Date = "Edm.Date",
|
|
46
|
-
TimeOfDay = "Edm.TimeOfDay",
|
|
47
|
-
DateTimeOffset = "Edm.DateTimeOffset",
|
|
48
|
-
Duration = "Edm.Duration",
|
|
49
|
-
Decimal = "Edm.Decimal",
|
|
50
|
-
Double = "Edm.Double",
|
|
51
|
-
Single = "Edm.Single",
|
|
52
|
-
Binary = "Edm.Binary",
|
|
53
|
-
Stream = "Edm.Stream",
|
|
54
|
-
Geography = "Edm.Geography",
|
|
55
|
-
GeographyPoint = "Edm.GeographyPoint",
|
|
56
|
-
GeographyLineString = "Edm.GeographyLineString",
|
|
57
|
-
GeographyPolygon = "Edm.GeographyPolygon",
|
|
58
|
-
GeographyMultiPoint = "Edm.GeographyMultiPoint",
|
|
59
|
-
GeographyMultiLineString = "Edm.GeographyMultiLineString",
|
|
60
|
-
GeographyMultiPolygon = "Edm.GeographyMultiPolygon",
|
|
61
|
-
GeographyCollection = "Edm.GeographyCollection",
|
|
62
|
-
Geometry = "Edm.Geometry",
|
|
63
|
-
GeometryPoint = "Edm.GeometryPoint",
|
|
64
|
-
GeometryLineString = "Edm.GeometryLineString",
|
|
65
|
-
GeometryPolygon = "Edm.GeometryPolygon",
|
|
66
|
-
GeometryMultiPoint = "Edm.GeometryMultiPoint",
|
|
67
|
-
GeometryMultiLineString = "Edm.GeometryMultiLineString",
|
|
68
|
-
GeometryMultiPolygon = "Edm.GeometryMultiPolygon",
|
|
69
|
-
GeometryCollection = "Edm.GeometryCollection"
|
|
70
|
-
}
|
|
71
|
-
export declare enum JsonType {
|
|
72
|
-
string = "string",
|
|
73
|
-
number = "number",
|
|
74
|
-
integer = "integer",
|
|
75
|
-
object = "object",
|
|
76
|
-
array = "array",
|
|
77
|
-
boolean = "boolean",
|
|
78
|
-
null = "null"
|
|
79
|
-
}
|
|
80
|
-
export interface ParserOptions {
|
|
81
|
-
version?: ODataVersion;
|
|
82
|
-
exponentialDecimals?: boolean;
|
|
83
|
-
metadata?: ODataMetadataType;
|
|
84
|
-
ieee754Compatible?: boolean;
|
|
85
|
-
streaming?: boolean;
|
|
86
|
-
stringAsEnum?: boolean;
|
|
87
|
-
deleteRefBy?: 'path' | 'id';
|
|
88
|
-
nonParenthesisForEmptyParameterFunction?: boolean;
|
|
89
|
-
}
|
|
90
|
-
export interface ResponseOptions extends ParserOptions {
|
|
91
|
-
cacheability?: CacheCacheability;
|
|
92
|
-
maxAge?: number;
|
|
93
|
-
}
|
|
94
|
-
export interface StructuredTypeFieldOptions extends ParserOptions {
|
|
95
|
-
field: ODataStructuredTypeFieldConfig;
|
|
96
|
-
}
|
|
97
|
-
export interface Parser<T> {
|
|
98
|
-
deserialize(value: any, options?: ParserOptions | StructuredTypeFieldOptions): T;
|
|
99
|
-
serialize(value: any, options?: ParserOptions | StructuredTypeFieldOptions): any;
|
|
100
|
-
encode(value: any, options?: ParserOptions | StructuredTypeFieldOptions): any;
|
|
101
|
-
}
|
|
102
|
-
export interface FieldParser<T> extends Parser<T> {
|
|
103
|
-
nullable?: boolean;
|
|
104
|
-
default?: any;
|
|
105
|
-
maxLength?: number;
|
|
106
|
-
precision?: number;
|
|
107
|
-
scale?: number | 'variable';
|
|
108
|
-
}
|
|
109
|
-
export declare const NONE_PARSER: Parser<any>;
|
|
110
|
-
export interface ODataCache {
|
|
111
|
-
put<T>(key: string, payload: T, ...opts: any[]): void;
|
|
112
|
-
get<T>(key: string, ...opts: any[]): T | undefined;
|
|
113
|
-
handleRequest(req: any, res$: Observable<any>): Observable<any>;
|
|
114
|
-
flush(): void;
|
|
115
|
-
}
|
|
116
|
-
export interface ODataApiConfigOptions {
|
|
117
|
-
version?: ODataVersion;
|
|
118
|
-
params?: {
|
|
119
|
-
[param: string]: string | string[];
|
|
120
|
-
};
|
|
121
|
-
headers?: {
|
|
122
|
-
[param: string]: string | string[];
|
|
123
|
-
};
|
|
124
|
-
withCredentials?: boolean;
|
|
125
|
-
accept?: {
|
|
126
|
-
exponentialDecimals?: boolean;
|
|
127
|
-
metadata?: ODataMetadataType;
|
|
128
|
-
ieee754Compatible?: boolean;
|
|
129
|
-
streaming?: boolean;
|
|
130
|
-
};
|
|
131
|
-
etag?: {
|
|
132
|
-
ifMatch?: boolean;
|
|
133
|
-
ifNoneMatch?: boolean;
|
|
134
|
-
};
|
|
135
|
-
prefer?: {
|
|
136
|
-
maxPageSize?: number;
|
|
137
|
-
return?: 'representation' | 'minimal';
|
|
138
|
-
continueOnError?: boolean;
|
|
139
|
-
includeAnnotations?: string;
|
|
140
|
-
};
|
|
141
|
-
stripMetadata?: ODataMetadataType;
|
|
142
|
-
fetchPolicy?: FetchPolicy;
|
|
143
|
-
bodyQueryOptions?: QueryOption[];
|
|
144
|
-
stringAsEnum?: boolean;
|
|
145
|
-
deleteRefBy?: 'path' | 'id';
|
|
146
|
-
nonParenthesisForEmptyParameterFunction?: boolean;
|
|
147
|
-
jsonBatchFormat?: boolean;
|
|
148
|
-
relativeUrls?: boolean;
|
|
149
|
-
}
|
|
150
|
-
export type ODataApiConfig = {
|
|
151
|
-
serviceRootUrl: string;
|
|
152
|
-
metadataUrl?: string;
|
|
153
|
-
name?: string;
|
|
154
|
-
version?: ODataVersion;
|
|
155
|
-
default?: boolean;
|
|
156
|
-
creation?: Date;
|
|
157
|
-
cache?: ODataCache;
|
|
158
|
-
errorHandler?: (error: any, caught: Observable<any>) => Observable<never>;
|
|
159
|
-
options?: ODataApiConfigOptions;
|
|
160
|
-
parsers?: {
|
|
161
|
-
[type: string]: Parser<any>;
|
|
162
|
-
};
|
|
163
|
-
schemas?: ODataSchemaConfig[];
|
|
164
|
-
references?: ODataReferenceConfig[];
|
|
165
|
-
};
|
|
166
|
-
export type ODataAnnotationConfig = {
|
|
167
|
-
term: string;
|
|
168
|
-
string?: string;
|
|
169
|
-
bool?: boolean;
|
|
170
|
-
int?: number;
|
|
171
|
-
permissions?: string[];
|
|
172
|
-
properties?: string[];
|
|
173
|
-
};
|
|
174
|
-
export type ODataReferenceConfig = {
|
|
175
|
-
uri: string;
|
|
176
|
-
includes?: string;
|
|
177
|
-
annotations?: ODataAnnotationConfig[];
|
|
178
|
-
enums?: ODataEnumTypeConfig[];
|
|
179
|
-
entities?: ODataStructuredTypeConfig[];
|
|
180
|
-
callables?: ODataCallableConfig[];
|
|
181
|
-
containers?: ODataEntityContainerConfig[];
|
|
182
|
-
};
|
|
183
|
-
export type ODataSchemaConfig = {
|
|
184
|
-
namespace: string;
|
|
185
|
-
alias?: string;
|
|
186
|
-
annotations?: ODataAnnotationConfig[];
|
|
187
|
-
enums?: ODataEnumTypeConfig[];
|
|
188
|
-
entities?: ODataStructuredTypeConfig[];
|
|
189
|
-
callables?: ODataCallableConfig[];
|
|
190
|
-
containers?: ODataEntityContainerConfig[];
|
|
191
|
-
};
|
|
192
|
-
export type ODataEntityContainerConfig = {
|
|
193
|
-
name: string;
|
|
194
|
-
annotations?: ODataAnnotationConfig[];
|
|
195
|
-
entitySets?: ODataEntitySetConfig[];
|
|
196
|
-
singletons?: ODataSingletonConfig[];
|
|
197
|
-
};
|
|
198
|
-
export type ODataEnumTypeFieldConfig = {
|
|
199
|
-
value: number;
|
|
200
|
-
annotations?: ODataAnnotationConfig[];
|
|
201
|
-
};
|
|
202
|
-
export type ODataEnumTypeConfig = {
|
|
203
|
-
name: string;
|
|
204
|
-
flags?: boolean;
|
|
205
|
-
annotations?: ODataAnnotationConfig[];
|
|
206
|
-
members: {
|
|
207
|
-
[name: string]: number;
|
|
208
|
-
} | {
|
|
209
|
-
[value: number]: string;
|
|
210
|
-
};
|
|
211
|
-
fields: {
|
|
212
|
-
[member: string]: ODataEnumTypeFieldConfig;
|
|
213
|
-
};
|
|
214
|
-
};
|
|
215
|
-
export type ODataStructuredTypeFieldConfig = {
|
|
216
|
-
type: string;
|
|
217
|
-
default?: any;
|
|
218
|
-
maxLength?: number;
|
|
219
|
-
key?: boolean;
|
|
220
|
-
collection?: boolean;
|
|
221
|
-
nullable?: boolean;
|
|
222
|
-
navigation?: boolean;
|
|
223
|
-
precision?: number;
|
|
224
|
-
annotations?: ODataAnnotationConfig[];
|
|
225
|
-
scale?: number | 'variable';
|
|
226
|
-
referentials?: {
|
|
227
|
-
property: string;
|
|
228
|
-
referencedProperty: string;
|
|
229
|
-
}[];
|
|
230
|
-
referential?: string;
|
|
231
|
-
referenced?: string;
|
|
232
|
-
};
|
|
233
|
-
export type ODataStructuredTypeConfig = {
|
|
234
|
-
name: string;
|
|
235
|
-
base?: string;
|
|
236
|
-
open?: boolean;
|
|
237
|
-
model?: {
|
|
238
|
-
new (...params: any[]): any;
|
|
239
|
-
};
|
|
240
|
-
collection?: {
|
|
241
|
-
new (...params: any[]): any;
|
|
242
|
-
};
|
|
243
|
-
annotations?: ODataAnnotationConfig[];
|
|
244
|
-
keys?: {
|
|
245
|
-
name: string;
|
|
246
|
-
alias?: string;
|
|
247
|
-
}[];
|
|
248
|
-
fields?: {
|
|
249
|
-
[name: string]: ODataStructuredTypeFieldConfig;
|
|
250
|
-
};
|
|
251
|
-
};
|
|
252
|
-
export type ODataParameterConfig = {
|
|
253
|
-
type: string;
|
|
254
|
-
nullable?: boolean;
|
|
255
|
-
collection?: boolean;
|
|
256
|
-
};
|
|
257
|
-
export type ODataCallableConfig = {
|
|
258
|
-
name: string;
|
|
259
|
-
entitySetPath?: string;
|
|
260
|
-
bound?: boolean;
|
|
261
|
-
composable?: boolean;
|
|
262
|
-
parameters?: {
|
|
263
|
-
[name: string]: ODataParameterConfig;
|
|
264
|
-
};
|
|
265
|
-
return?: {
|
|
266
|
-
type: string;
|
|
267
|
-
collection?: boolean;
|
|
268
|
-
};
|
|
269
|
-
};
|
|
270
|
-
export type ODataEntitySetConfig = {
|
|
271
|
-
name: string;
|
|
272
|
-
entityType: string;
|
|
273
|
-
service: {
|
|
274
|
-
new (...params: any[]): any;
|
|
275
|
-
};
|
|
276
|
-
annotations?: ODataAnnotationConfig[];
|
|
277
|
-
};
|
|
278
|
-
export type ODataSingletonConfig = {
|
|
279
|
-
name: string;
|
|
280
|
-
type: string;
|
|
281
|
-
service: {
|
|
282
|
-
new (...params: any[]): any;
|
|
283
|
-
};
|
|
284
|
-
annotations?: ODataAnnotationConfig[];
|
|
285
|
-
};
|
package/lib/utils/arrays.d.ts
DELETED
package/lib/utils/dates.d.ts
DELETED
package/lib/utils/durations.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type Duration = {
|
|
2
|
-
sign?: 1 | -1;
|
|
3
|
-
years?: number;
|
|
4
|
-
months?: number;
|
|
5
|
-
weeks?: number;
|
|
6
|
-
days?: number;
|
|
7
|
-
hours?: number;
|
|
8
|
-
minutes?: number;
|
|
9
|
-
seconds?: number;
|
|
10
|
-
};
|
|
11
|
-
export declare const Durations: {
|
|
12
|
-
toDuration(v: string): Duration;
|
|
13
|
-
toString(v: Duration): string;
|
|
14
|
-
};
|
package/lib/utils/enums.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const Enums: {
|
|
2
|
-
names<E extends {
|
|
3
|
-
[name: string]: any;
|
|
4
|
-
}>(enums: E): string[];
|
|
5
|
-
values<E extends {
|
|
6
|
-
[name: string]: any;
|
|
7
|
-
}>(enums: E): number[];
|
|
8
|
-
toValue<E extends {
|
|
9
|
-
[name: string]: any;
|
|
10
|
-
}>(enums: E, value: any): number | undefined;
|
|
11
|
-
toValues<E extends {
|
|
12
|
-
[name: string]: any;
|
|
13
|
-
}>(enums: E, value: any): number[];
|
|
14
|
-
toName<E extends {
|
|
15
|
-
[name: string]: any;
|
|
16
|
-
}>(enums: E, value: any): string | undefined;
|
|
17
|
-
toNames<E extends {
|
|
18
|
-
[name: string]: any;
|
|
19
|
-
}>(enums: E, value: any): string[];
|
|
20
|
-
toFlags<E extends {
|
|
21
|
-
[name: string]: any;
|
|
22
|
-
}>(enums: E, value: any): string[];
|
|
23
|
-
};
|
package/lib/utils/http.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
|
2
|
-
export declare const Http: {
|
|
3
|
-
mergeHttpHeaders(...values: (HttpHeaders | {
|
|
4
|
-
[header: string]: string | string[];
|
|
5
|
-
})[]): HttpHeaders;
|
|
6
|
-
mergeHttpParams(...values: (HttpParams | {
|
|
7
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
8
|
-
})[]): HttpParams;
|
|
9
|
-
splitHttpParams(params: HttpParams, keys: string[]): [HttpParams, HttpParams];
|
|
10
|
-
withoutHttpParams(params: HttpParams, keys: string[]): HttpParams;
|
|
11
|
-
resolveHeaderKey(headers: HttpHeaders | {
|
|
12
|
-
[param: string]: string | string[];
|
|
13
|
-
}, options: string[]): string | undefined;
|
|
14
|
-
headerValue(header: string): string;
|
|
15
|
-
parseResponseStatus(line: string): {
|
|
16
|
-
status: string;
|
|
17
|
-
code: number;
|
|
18
|
-
message: string;
|
|
19
|
-
};
|
|
20
|
-
boundaryDelimiter(contentType: string): string;
|
|
21
|
-
boundaryEnd(boundaryDelimiter: string): string;
|
|
22
|
-
};
|
package/lib/utils/index.d.ts
DELETED
package/lib/utils/objects.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export declare const Objects: {
|
|
2
|
-
set(obj: {
|
|
3
|
-
[attr: string]: any;
|
|
4
|
-
}, path: string, value: any): void;
|
|
5
|
-
get(obj: {
|
|
6
|
-
[attr: string]: any;
|
|
7
|
-
}, path: string, def?: any): any;
|
|
8
|
-
unset(obj: {
|
|
9
|
-
[attr: string]: any;
|
|
10
|
-
}, path: string): void;
|
|
11
|
-
has(obj: {
|
|
12
|
-
[attr: string]: any;
|
|
13
|
-
}, path: string): boolean;
|
|
14
|
-
merge(target: {
|
|
15
|
-
[attr: string]: any;
|
|
16
|
-
}, source: {
|
|
17
|
-
[attr: string]: any;
|
|
18
|
-
}): {
|
|
19
|
-
[attr: string]: any;
|
|
20
|
-
};
|
|
21
|
-
equal(object1: {
|
|
22
|
-
[attr: string]: any;
|
|
23
|
-
}, object2: {
|
|
24
|
-
[attr: string]: any;
|
|
25
|
-
}): boolean;
|
|
26
|
-
difference(object1: {
|
|
27
|
-
[attr: string]: any;
|
|
28
|
-
}, object2: {
|
|
29
|
-
[attr: string]: any;
|
|
30
|
-
}): {
|
|
31
|
-
[attr: string]: any;
|
|
32
|
-
};
|
|
33
|
-
resolveKey(key: any, { single }?: {
|
|
34
|
-
single?: boolean;
|
|
35
|
-
}): any;
|
|
36
|
-
clone(target: any, map?: WeakMap<object, any>): any;
|
|
37
|
-
};
|
package/lib/utils/odata.d.ts
DELETED
package/lib/utils/strings.d.ts
DELETED
package/lib/utils/types.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const Types: {
|
|
2
|
-
rawType(value: any): string;
|
|
3
|
-
isObject(value: any): boolean;
|
|
4
|
-
isPlainObject(value: any): boolean;
|
|
5
|
-
isFunction(value: any): boolean;
|
|
6
|
-
isArray(value: any): boolean;
|
|
7
|
-
isMap(value: any): boolean;
|
|
8
|
-
isEmpty(value: any): boolean;
|
|
9
|
-
isEqual(value1: any, value2: any): boolean;
|
|
10
|
-
clone(target: any): any;
|
|
11
|
-
};
|
package/lib/utils/urls.d.ts
DELETED
package/public-api.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lib';
|