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.
Files changed (139) hide show
  1. package/fesm2022/angular-odata.mjs +276 -543
  2. package/fesm2022/angular-odata.mjs.map +1 -1
  3. package/index.d.ts +6403 -3
  4. package/package.json +3 -3
  5. package/schematics/apigen/angular/base.js +2 -6
  6. package/schematics/apigen/angular/base.js.map +1 -1
  7. package/schematics/apigen/angular/entity.js +1 -2
  8. package/schematics/apigen/angular/entity.js.map +1 -1
  9. package/schematics/apigen/index.js +2 -6
  10. package/schematics/apigen/index.js.map +1 -1
  11. package/schematics/apigen/metadata/csdl/csdl-annotation.js +1 -2
  12. package/schematics/apigen/metadata/csdl/csdl-annotation.js.map +1 -1
  13. package/schematics/apigen/metadata/csdl/csdl-entity-container.js.map +1 -1
  14. package/schematics/apigen/metadata/csdl/csdl-entity-set.js.map +1 -1
  15. package/schematics/apigen/metadata/csdl/csdl-enum-type.d.ts +1 -1
  16. package/schematics/apigen/metadata/csdl/csdl-enum-type.js +1 -1
  17. package/schematics/apigen/metadata/csdl/csdl-enum-type.js.map +1 -1
  18. package/schematics/apigen/metadata/csdl/csdl-function-action.d.ts +1 -1
  19. package/schematics/apigen/metadata/csdl/csdl-reference.js +1 -2
  20. package/schematics/apigen/metadata/csdl/csdl-reference.js.map +1 -1
  21. package/schematics/apigen/metadata/csdl/csdl-schema.js +1 -2
  22. package/schematics/apigen/metadata/csdl/csdl-schema.js.map +1 -1
  23. package/schematics/apigen/metadata/csdl/csdl-singleton.js.map +1 -1
  24. package/schematics/apigen/metadata/csdl/csdl-structural-property.d.ts +1 -1
  25. package/schematics/apigen/metadata/csdl/csdl-structural-property.js +2 -3
  26. package/schematics/apigen/metadata/csdl/csdl-structural-property.js.map +1 -1
  27. package/schematics/apigen/metadata/csdl/csdl-structured-type.d.ts +1 -1
  28. package/schematics/apigen/metadata/csdl/csdl-structured-type.js +1 -2
  29. package/schematics/apigen/metadata/csdl/csdl-structured-type.js.map +1 -1
  30. package/schematics/apigen/metadata/parser.js +1 -3
  31. package/schematics/apigen/metadata/parser.js.map +1 -1
  32. package/schematics/apigen/utils.js +2 -4
  33. package/schematics/apigen/utils.js.map +1 -1
  34. package/lib/annotations.d.ts +0 -75
  35. package/lib/api.d.ts +0 -107
  36. package/lib/cache/cache.d.ts +0 -104
  37. package/lib/cache/index.d.ts +0 -3
  38. package/lib/cache/memory.d.ts +0 -19
  39. package/lib/cache/storage.d.ts +0 -35
  40. package/lib/client.d.ts +0 -613
  41. package/lib/constants.d.ts +0 -70
  42. package/lib/helper.d.ts +0 -75
  43. package/lib/index.d.ts +0 -14
  44. package/lib/loaders.d.ts +0 -21
  45. package/lib/metadata/csdl/csdl-annotation.d.ts +0 -159
  46. package/lib/metadata/csdl/csdl-entity-container.d.ts +0 -31
  47. package/lib/metadata/csdl/csdl-entity-set.d.ts +0 -25
  48. package/lib/metadata/csdl/csdl-enum-type.d.ts +0 -37
  49. package/lib/metadata/csdl/csdl-function-action.d.ts +0 -148
  50. package/lib/metadata/csdl/csdl-navigation-property-binding.d.ts +0 -12
  51. package/lib/metadata/csdl/csdl-reference.d.ts +0 -53
  52. package/lib/metadata/csdl/csdl-schema.d.ts +0 -37
  53. package/lib/metadata/csdl/csdl-singleton.d.ts +0 -21
  54. package/lib/metadata/csdl/csdl-structural-property.d.ts +0 -86
  55. package/lib/metadata/csdl/csdl-structured-type.d.ts +0 -94
  56. package/lib/metadata/csdl/csdl-type-definition.d.ts +0 -25
  57. package/lib/metadata/index.d.ts +0 -2
  58. package/lib/metadata/metadata.d.ts +0 -23
  59. package/lib/metadata/parser.d.ts +0 -110
  60. package/lib/models/collection.d.ts +0 -183
  61. package/lib/models/index.d.ts +0 -3
  62. package/lib/models/model.d.ts +0 -176
  63. package/lib/models/options.d.ts +0 -368
  64. package/lib/module.d.ts +0 -19
  65. package/lib/options.d.ts +0 -101
  66. package/lib/resources/index.d.ts +0 -6
  67. package/lib/resources/options.d.ts +0 -18
  68. package/lib/resources/path/handlers.d.ts +0 -29
  69. package/lib/resources/path/index.d.ts +0 -2
  70. package/lib/resources/path/segments.d.ts +0 -54
  71. package/lib/resources/query/builder.d.ts +0 -103
  72. package/lib/resources/query/expressions/apply.d.ts +0 -125
  73. package/lib/resources/query/expressions/base.d.ts +0 -25
  74. package/lib/resources/query/expressions/compute.d.ts +0 -39
  75. package/lib/resources/query/expressions/count.d.ts +0 -58
  76. package/lib/resources/query/expressions/expand.d.ts +0 -69
  77. package/lib/resources/query/expressions/filter.d.ts +0 -77
  78. package/lib/resources/query/expressions/index.d.ts +0 -9
  79. package/lib/resources/query/expressions/orderby.d.ts +0 -55
  80. package/lib/resources/query/expressions/search.d.ts +0 -63
  81. package/lib/resources/query/expressions/select.d.ts +0 -34
  82. package/lib/resources/query/expressions/syntax.d.ts +0 -313
  83. package/lib/resources/query/handlers.d.ts +0 -270
  84. package/lib/resources/query/index.d.ts +0 -4
  85. package/lib/resources/query/options.d.ts +0 -60
  86. package/lib/resources/request.d.ts +0 -64
  87. package/lib/resources/resource.d.ts +0 -161
  88. package/lib/resources/response.d.ts +0 -82
  89. package/lib/resources/types/action.d.ts +0 -84
  90. package/lib/resources/types/batch.d.ts +0 -62
  91. package/lib/resources/types/count.d.ts +0 -20
  92. package/lib/resources/types/entity-set.d.ts +0 -79
  93. package/lib/resources/types/entity.d.ts +0 -54
  94. package/lib/resources/types/function.d.ts +0 -108
  95. package/lib/resources/types/index.d.ts +0 -14
  96. package/lib/resources/types/media.d.ts +0 -28
  97. package/lib/resources/types/metadata.d.ts +0 -13
  98. package/lib/resources/types/navigation-property.d.ts +0 -157
  99. package/lib/resources/types/options.d.ts +0 -32
  100. package/lib/resources/types/property.d.ts +0 -115
  101. package/lib/resources/types/reference.d.ts +0 -74
  102. package/lib/resources/types/singleton.d.ts +0 -87
  103. package/lib/resources/types/value.d.ts +0 -19
  104. package/lib/schema/annotation.d.ts +0 -28
  105. package/lib/schema/callable.d.ts +0 -41
  106. package/lib/schema/element.d.ts +0 -52
  107. package/lib/schema/entity-container.d.ts +0 -10
  108. package/lib/schema/entity-set.d.ts +0 -10
  109. package/lib/schema/enum-type.d.ts +0 -55
  110. package/lib/schema/index.d.ts +0 -8
  111. package/lib/schema/parsers/callable.d.ts +0 -47
  112. package/lib/schema/parsers/edm.d.ts +0 -4
  113. package/lib/schema/parsers/enum-type.d.ts +0 -56
  114. package/lib/schema/parsers/index.d.ts +0 -4
  115. package/lib/schema/parsers/structured-type.d.ts +0 -172
  116. package/lib/schema/schema.d.ts +0 -26
  117. package/lib/schema/singleton.d.ts +0 -10
  118. package/lib/schema/structured-type.d.ts +0 -152
  119. package/lib/services/base.d.ts +0 -20
  120. package/lib/services/entity-set.d.ts +0 -120
  121. package/lib/services/entity.d.ts +0 -11
  122. package/lib/services/factory.d.ts +0 -33
  123. package/lib/services/index.d.ts +0 -4
  124. package/lib/services/singleton.d.ts +0 -44
  125. package/lib/settings.d.ts +0 -26
  126. package/lib/types.d.ts +0 -285
  127. package/lib/utils/arraybuffers.d.ts +0 -4
  128. package/lib/utils/arrays.d.ts +0 -3
  129. package/lib/utils/dates.d.ts +0 -3
  130. package/lib/utils/durations.d.ts +0 -14
  131. package/lib/utils/enums.d.ts +0 -23
  132. package/lib/utils/http.d.ts +0 -22
  133. package/lib/utils/index.d.ts +0 -9
  134. package/lib/utils/objects.d.ts +0 -37
  135. package/lib/utils/odata.d.ts +0 -4
  136. package/lib/utils/strings.d.ts +0 -7
  137. package/lib/utils/types.d.ts +0 -11
  138. package/lib/utils/urls.d.ts +0 -4
  139. package/public-api.d.ts +0 -1
package/lib/client.d.ts DELETED
@@ -1,613 +0,0 @@
1
- import { HttpClient, HttpEvent } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { ODataApi } from './api';
4
- import { ODataConfigLoader } from './loaders';
5
- import { ODataCollection, ODataModel } from './models/index';
6
- import { ODataActionResource, ODataBatchResource, ODataEntityResource, ODataEntitySetResource, ODataFunctionResource, ODataMetadataResource, ODataNavigationPropertyResource, ODataOptions, ODataResource, ODataResponse, ODataSegment, ODataSingletonResource } from './resources/index';
7
- import { ODataSettings } from './settings';
8
- import * as i0 from "@angular/core";
9
- export declare class ODataClient {
10
- private http;
11
- private loader;
12
- settings?: ODataSettings;
13
- constructor(http: HttpClient, loader: ODataConfigLoader);
14
- /**
15
- * Resolve the api for the given value.
16
- * Where value is: string type or an string name or an instance of resource.
17
- * @param value The value to resolve.
18
- * @returns The api for the value.
19
- */
20
- apiFor(value?: ODataResource<any> | string): ODataApi;
21
- defaultApi(): ODataApi;
22
- /**
23
- * Resolve the parser for the given string type.
24
- * @param type The string type of the parser.
25
- * @returns The parser for the given type.
26
- */
27
- parserForType<T>(type: string): import("angular-odata").Parser<T>;
28
- /**
29
- * Resolve the enum type for the given string type.
30
- * @param type The string type of the enum type.
31
- * @returns The enum type for the given type.
32
- */
33
- enumTypeForType<T>(type: string): import("angular-odata").ODataEnumType<T>;
34
- /**
35
- * Resolve the structured type for the given string type.
36
- * @param type The string type of the structured type.
37
- * @returns The structured type for the given type.
38
- */
39
- structuredTypeForType<T>(type: string): import("angular-odata").ODataStructuredType<T>;
40
- /**
41
- * Resolve the callable for the given string type.
42
- * @param type The string type of the callable.
43
- * @returns The callable for the given type.
44
- */
45
- callableForType<T>(type: string): import("angular-odata").ODataCallable<T>;
46
- /**
47
- * Resolve the entity set for the given string type.
48
- * @param type The string type of the entity set.
49
- * @returns The entity set for the given type.
50
- */
51
- entitySetForType(type: string): import("angular-odata").ODataEntitySet;
52
- /**
53
- * Resolve the model for the given string type.
54
- * @param type The string type of the model.
55
- * @returns The model for the given type.
56
- */
57
- modelForType(type: string): typeof ODataModel;
58
- /**
59
- * Resolve the collection for the given string type.
60
- * @param type The string type of the collection.
61
- * @returns The collection for the given type.
62
- */
63
- collectionForType(type: string): typeof ODataCollection;
64
- fromJson<E>(json: {
65
- segments: ODataSegment[];
66
- options: {
67
- [name: string]: any;
68
- };
69
- }, apiNameOrType?: string): ODataEntityResource<E> | ODataEntitySetResource<E> | ODataNavigationPropertyResource<E> | ODataSingletonResource<E>;
70
- /**
71
- * Build a resource for the metadata.
72
- * @param apiName The name of the API.
73
- * @returns The metadata resource.
74
- */
75
- metadata(apiName?: string): ODataMetadataResource;
76
- /**
77
- * Build a resource for the batch.
78
- * @param apiName The name of the API.
79
- * @returns The batch resource.
80
- */
81
- batch(apiName?: string): ODataBatchResource;
82
- /**
83
- * Build a resource for the singleton.
84
- * @param path The full path to the singleton.
85
- * @param apiNameOrType The name of the API or the type of the singleton.
86
- * @returns The singleton resource.
87
- */
88
- singleton<T>(path: string, apiNameOrType?: string): ODataSingletonResource<T>;
89
- /**
90
- * Build a resource for the entity set.
91
- * @param path The full path to the entity set.
92
- * @param apiNameOrType The name of the API or the type of the entity set.
93
- * @returns The entity set resource.
94
- */
95
- entitySet<T>(path: string, apiNameOrType?: string): ODataEntitySetResource<T>;
96
- /**
97
- * Build a resource for unbound action.
98
- * @param path The full path to the action.
99
- * @param apiNameOrType The name of the API or the type of the entity.
100
- * @returns The unbound action resource.
101
- */
102
- action<P, R>(path: string, apiNameOrType?: string): ODataActionResource<P, R>;
103
- /**
104
- * Build a resource for unbound function.
105
- * @param path The full path to the function.
106
- * @param apiNameOrType The name of the API or the type of the callable.
107
- * @returns The unbound function resource.
108
- */
109
- function<P, R>(path: string, apiNameOrType?: string): ODataFunctionResource<P, R>;
110
- request(method: string, resource: ODataResource<any>, options: ODataOptions & {
111
- body: any | null;
112
- observe?: 'body';
113
- responseType: 'arraybuffer';
114
- }): Observable<ArrayBuffer>;
115
- request(method: string, resource: ODataResource<any>, options: ODataOptions & {
116
- body: any | null;
117
- observe?: 'body';
118
- responseType: 'blob';
119
- }): Observable<Blob>;
120
- request(method: string, resource: ODataResource<any>, options: ODataOptions & {
121
- body: any | null;
122
- observe?: 'body';
123
- responseType: 'text';
124
- }): Observable<string>;
125
- request(method: string, resource: ODataResource<any>, options: ODataOptions & {
126
- body: any | null;
127
- observe: 'events';
128
- responseType: 'arraybuffer';
129
- }): Observable<HttpEvent<ArrayBuffer>>;
130
- request(method: string, resource: ODataResource<any>, options: ODataOptions & {
131
- body: any | null;
132
- observe: 'events';
133
- responseType: 'blob';
134
- }): Observable<HttpEvent<Blob>>;
135
- request(method: string, resource: ODataResource<any>, options: ODataOptions & {
136
- body: any | null;
137
- observe: 'events';
138
- responseType: 'text';
139
- }): Observable<HttpEvent<string>>;
140
- request(method: string, resource: ODataResource<any>, options: ODataOptions & {
141
- body: any | null;
142
- observe: 'events';
143
- responseType?: 'json';
144
- }): Observable<HttpEvent<any>>;
145
- request<R>(method: string, resource: ODataResource<any>, options: ODataOptions & {
146
- body: any | null;
147
- observe: 'events';
148
- responseType?: 'json';
149
- }): Observable<HttpEvent<R>>;
150
- request(method: string, resource: ODataResource<any>, options: ODataOptions & {
151
- body: any | null;
152
- observe: 'response';
153
- responseType: 'arraybuffer';
154
- }): Observable<ODataResponse<ArrayBuffer>>;
155
- request(method: string, resource: ODataResource<any>, options: ODataOptions & {
156
- body: any | null;
157
- observe: 'response';
158
- responseType: 'blob';
159
- }): Observable<ODataResponse<Blob>>;
160
- request(method: string, resource: ODataResource<any>, options: ODataOptions & {
161
- body: any | null;
162
- observe: 'response';
163
- responseType: 'text';
164
- }): Observable<ODataResponse<string>>;
165
- request(method: string, resource: ODataResource<any>, options: ODataOptions & {
166
- body: any | null;
167
- observe: 'response';
168
- responseType?: 'json';
169
- }): Observable<ODataResponse<Object>>;
170
- request<R>(method: string, resource: ODataResource<any>, options: ODataOptions & {
171
- body: any | null;
172
- observe: 'response';
173
- responseType?: 'json';
174
- }): Observable<ODataResponse<R>>;
175
- request(method: string, resource: ODataResource<any>, options: ODataOptions & {
176
- body: any | null;
177
- observe?: 'body';
178
- responseType?: 'json';
179
- }): Observable<Object>;
180
- request<R>(method: string, resource: ODataResource<any>, options: ODataOptions & {
181
- body: any | null;
182
- observe?: 'body';
183
- responseType?: 'json';
184
- }): Observable<R>;
185
- delete(resource: ODataResource<any>, options: ODataOptions & {
186
- observe?: 'body';
187
- responseType: 'arraybuffer';
188
- }): Observable<ArrayBuffer>;
189
- delete(resource: ODataResource<any>, options: ODataOptions & {
190
- observe?: 'body';
191
- responseType: 'blob';
192
- }): Observable<Blob>;
193
- delete(resource: ODataResource<any>, options: ODataOptions & {
194
- observe?: 'body';
195
- responseType: 'text';
196
- }): Observable<string>;
197
- delete(resource: ODataResource<any>, options: ODataOptions & {
198
- observe: 'events';
199
- responseType: 'arraybuffer';
200
- }): Observable<HttpEvent<ArrayBuffer>>;
201
- delete(resource: ODataResource<any>, options: ODataOptions & {
202
- observe: 'events';
203
- responseType: 'blob';
204
- }): Observable<HttpEvent<Blob>>;
205
- delete(resource: ODataResource<any>, options: ODataOptions & {
206
- observe: 'events';
207
- responseType: 'text';
208
- }): Observable<HttpEvent<string>>;
209
- delete(resource: ODataResource<any>, options: ODataOptions & {
210
- observe: 'events';
211
- responseType?: 'json';
212
- }): Observable<HttpEvent<Object>>;
213
- delete<T>(resource: ODataResource<any>, options: ODataOptions & {
214
- observe: 'events';
215
- responseType?: 'json';
216
- }): Observable<HttpEvent<T>>;
217
- delete(resource: ODataResource<any>, options: ODataOptions & {
218
- observe: 'response';
219
- responseType: 'arraybuffer';
220
- }): Observable<ODataResponse<ArrayBuffer>>;
221
- delete(resource: ODataResource<any>, options: ODataOptions & {
222
- observe: 'response';
223
- responseType: 'blob';
224
- }): Observable<ODataResponse<Blob>>;
225
- delete(resource: ODataResource<any>, options: ODataOptions & {
226
- observe: 'response';
227
- responseType: 'text';
228
- }): Observable<ODataResponse<string>>;
229
- delete(resource: ODataResource<any>, options: ODataOptions & {
230
- observe: 'response';
231
- responseType?: 'json';
232
- }): Observable<ODataResponse<Object>>;
233
- delete<T>(resource: ODataResource<any>, options: ODataOptions & {
234
- observe: 'response';
235
- responseType?: 'json';
236
- }): Observable<ODataResponse<T>>;
237
- delete(resource: ODataResource<any>, options: ODataOptions & {
238
- observe?: 'body';
239
- responseType?: 'json';
240
- }): Observable<Object>;
241
- delete<T>(resource: ODataResource<any>, options: ODataOptions & {
242
- observe?: 'body';
243
- responseType?: 'json';
244
- }): Observable<T>;
245
- get(resource: ODataResource<any>, options: ODataOptions & {
246
- observe?: 'body';
247
- responseType: 'arraybuffer';
248
- }): Observable<ArrayBuffer>;
249
- get(resource: ODataResource<any>, options: ODataOptions & {
250
- observe?: 'body';
251
- responseType: 'blob';
252
- }): Observable<Blob>;
253
- get(resource: ODataResource<any>, options: ODataOptions & {
254
- observe?: 'body';
255
- responseType: 'text';
256
- }): Observable<string>;
257
- get(resource: ODataResource<any>, options: ODataOptions & {
258
- observe: 'events';
259
- responseType: 'arraybuffer';
260
- }): Observable<HttpEvent<ArrayBuffer>>;
261
- get(resource: ODataResource<any>, options: ODataOptions & {
262
- observe: 'events';
263
- responseType: 'blob';
264
- }): Observable<HttpEvent<Blob>>;
265
- get(resource: ODataResource<any>, options: ODataOptions & {
266
- observe: 'events';
267
- responseType: 'text';
268
- }): Observable<HttpEvent<string>>;
269
- get(resource: ODataResource<any>, options: ODataOptions & {
270
- observe: 'events';
271
- responseType?: 'json';
272
- }): Observable<HttpEvent<Object>>;
273
- get<T>(resource: ODataResource<any>, options: ODataOptions & {
274
- observe: 'events';
275
- responseType?: 'json';
276
- }): Observable<HttpEvent<T>>;
277
- get(resource: ODataResource<any>, options: ODataOptions & {
278
- observe: 'response';
279
- responseType: 'arraybuffer';
280
- }): Observable<ODataResponse<ArrayBuffer>>;
281
- get(resource: ODataResource<any>, options: ODataOptions & {
282
- observe: 'response';
283
- responseType: 'blob';
284
- }): Observable<ODataResponse<Blob>>;
285
- get(resource: ODataResource<any>, options: ODataOptions & {
286
- observe: 'response';
287
- responseType: 'text';
288
- }): Observable<ODataResponse<string>>;
289
- get(resource: ODataResource<any>, options: ODataOptions & {
290
- observe: 'response';
291
- responseType?: 'json';
292
- }): Observable<ODataResponse<Object>>;
293
- get<T>(resource: ODataResource<any>, options: ODataOptions & {
294
- observe: 'response';
295
- responseType?: 'json';
296
- }): Observable<ODataResponse<T>>;
297
- get(resource: ODataResource<any>, options: ODataOptions & {
298
- observe?: 'body';
299
- responseType?: 'json';
300
- }): Observable<Object>;
301
- get<T>(resource: ODataResource<any>, options: ODataOptions & {
302
- observe?: 'body';
303
- responseType?: 'json';
304
- }): Observable<T>;
305
- head(resource: ODataResource<any>, options: ODataOptions & {
306
- observe?: 'body';
307
- responseType: 'arraybuffer';
308
- }): Observable<ArrayBuffer>;
309
- head(resource: ODataResource<any>, options: ODataOptions & {
310
- observe?: 'body';
311
- responseType: 'blob';
312
- }): Observable<Blob>;
313
- head(resource: ODataResource<any>, options: ODataOptions & {
314
- observe?: 'body';
315
- responseType: 'text';
316
- }): Observable<string>;
317
- head(resource: ODataResource<any>, options: ODataOptions & {
318
- observe: 'events';
319
- responseType: 'arraybuffer';
320
- }): Observable<HttpEvent<ArrayBuffer>>;
321
- head(resource: ODataResource<any>, options: ODataOptions & {
322
- observe: 'events';
323
- responseType: 'blob';
324
- }): Observable<HttpEvent<Blob>>;
325
- head(resource: ODataResource<any>, options: ODataOptions & {
326
- observe: 'events';
327
- responseType: 'text';
328
- }): Observable<HttpEvent<string>>;
329
- head(resource: ODataResource<any>, options: ODataOptions & {
330
- observe: 'events';
331
- responseType?: 'json';
332
- }): Observable<HttpEvent<Object>>;
333
- head<T>(resource: ODataResource<any>, options: ODataOptions & {
334
- observe: 'events';
335
- responseType?: 'json';
336
- }): Observable<HttpEvent<T>>;
337
- head(resource: ODataResource<any>, options: ODataOptions & {
338
- observe: 'response';
339
- responseType: 'arraybuffer';
340
- }): Observable<ODataResponse<ArrayBuffer>>;
341
- head(resource: ODataResource<any>, options: ODataOptions & {
342
- observe: 'response';
343
- responseType: 'blob';
344
- }): Observable<ODataResponse<Blob>>;
345
- head(resource: ODataResource<any>, options: ODataOptions & {
346
- observe: 'response';
347
- responseType: 'text';
348
- }): Observable<ODataResponse<string>>;
349
- head(resource: ODataResource<any>, options: ODataOptions & {
350
- observe: 'response';
351
- responseType?: 'json';
352
- }): Observable<ODataResponse<Object>>;
353
- head<T>(resource: ODataResource<any>, options: ODataOptions & {
354
- observe: 'response';
355
- responseType?: 'json';
356
- }): Observable<ODataResponse<T>>;
357
- head(resource: ODataResource<any>, options: ODataOptions & {
358
- observe?: 'body';
359
- responseType?: 'json';
360
- }): Observable<Object>;
361
- head<T>(resource: ODataResource<any>, options: ODataOptions & {
362
- observe?: 'body';
363
- responseType?: 'json';
364
- }): Observable<T>;
365
- jsonp(resource: ODataResource<any>, callbackParam: string): Observable<Object>;
366
- jsonp<T>(resource: ODataResource<any>, callbackParam: string): Observable<T>;
367
- options(resource: ODataResource<any>, options: ODataOptions & {
368
- observe?: 'body';
369
- responseType: 'arraybuffer';
370
- }): Observable<ArrayBuffer>;
371
- options(resource: ODataResource<any>, options: ODataOptions & {
372
- observe?: 'body';
373
- responseType: 'blob';
374
- }): Observable<Blob>;
375
- options(resource: ODataResource<any>, options: ODataOptions & {
376
- observe?: 'body';
377
- responseType: 'text';
378
- }): Observable<string>;
379
- options(resource: ODataResource<any>, options: ODataOptions & {
380
- observe: 'events';
381
- responseType: 'arraybuffer';
382
- }): Observable<HttpEvent<ArrayBuffer>>;
383
- options(resource: ODataResource<any>, options: ODataOptions & {
384
- observe: 'events';
385
- responseType: 'blob';
386
- }): Observable<HttpEvent<Blob>>;
387
- options(resource: ODataResource<any>, options: ODataOptions & {
388
- observe: 'events';
389
- responseType: 'text';
390
- }): Observable<HttpEvent<string>>;
391
- options(resource: ODataResource<any>, options: ODataOptions & {
392
- observe: 'events';
393
- responseType?: 'json';
394
- }): Observable<HttpEvent<Object>>;
395
- options(resource: ODataResource<any>, options: ODataOptions & {
396
- observe: 'events';
397
- responseType?: 'json';
398
- }): Observable<HttpEvent<Object>>;
399
- options<T>(resource: ODataResource<any>, options: ODataOptions & {
400
- observe: 'events';
401
- responseType?: 'json';
402
- }): Observable<HttpEvent<T>>;
403
- options(resource: ODataResource<any>, options: ODataOptions & {
404
- observe: 'response';
405
- responseType: 'arraybuffer';
406
- }): Observable<ODataResponse<ArrayBuffer>>;
407
- options(resource: ODataResource<any>, options: ODataOptions & {
408
- observe: 'response';
409
- responseType: 'blob';
410
- }): Observable<ODataResponse<Blob>>;
411
- options(resource: ODataResource<any>, options: ODataOptions & {
412
- observe: 'response';
413
- responseType: 'text';
414
- }): Observable<ODataResponse<string>>;
415
- options(resource: ODataResource<any>, options: ODataOptions & {
416
- observe: 'response';
417
- responseType?: 'json';
418
- }): Observable<ODataResponse<Object>>;
419
- options<T>(resource: ODataResource<any>, options: ODataOptions & {
420
- observe: 'response';
421
- responseType?: 'json';
422
- }): Observable<ODataResponse<T>>;
423
- options(resource: ODataResource<any>, options: ODataOptions & {
424
- observe?: 'body';
425
- responseType?: 'json';
426
- }): Observable<Object>;
427
- options<T>(resource: ODataResource<any>, options: ODataOptions & {
428
- observe?: 'body';
429
- responseType?: 'json';
430
- }): Observable<T>;
431
- patch(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
432
- observe?: 'body';
433
- responseType: 'arraybuffer';
434
- }): Observable<ArrayBuffer>;
435
- patch(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
436
- observe?: 'body';
437
- responseType: 'blob';
438
- }): Observable<Blob>;
439
- patch(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
440
- observe?: 'body';
441
- responseType: 'text';
442
- }): Observable<string>;
443
- patch(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
444
- observe: 'events';
445
- responseType: 'arraybuffer';
446
- }): Observable<HttpEvent<ArrayBuffer>>;
447
- patch(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
448
- observe: 'events';
449
- responseType: 'blob';
450
- }): Observable<HttpEvent<Blob>>;
451
- patch(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
452
- observe: 'events';
453
- responseType: 'text';
454
- }): Observable<HttpEvent<string>>;
455
- patch(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
456
- observe: 'events';
457
- responseType?: 'json';
458
- }): Observable<HttpEvent<Object>>;
459
- patch<T>(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
460
- observe: 'events';
461
- responseType?: 'json';
462
- }): Observable<HttpEvent<T>>;
463
- patch(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
464
- observe: 'response';
465
- responseType: 'arraybuffer';
466
- }): Observable<ODataResponse<ArrayBuffer>>;
467
- patch(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
468
- observe: 'response';
469
- responseType: 'blob';
470
- }): Observable<ODataResponse<Blob>>;
471
- patch(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
472
- observe: 'response';
473
- responseType: 'text';
474
- }): Observable<ODataResponse<string>>;
475
- patch(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
476
- observe: 'response';
477
- responseType?: 'json';
478
- }): Observable<ODataResponse<Object>>;
479
- patch<T>(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
480
- observe: 'response';
481
- responseType?: 'json';
482
- }): Observable<ODataResponse<T>>;
483
- patch(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
484
- observe?: 'body';
485
- responseType?: 'json';
486
- }): Observable<Object>;
487
- patch<T>(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
488
- observe?: 'body';
489
- responseType?: 'json';
490
- }): Observable<T>;
491
- post(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
492
- observe?: 'body';
493
- responseType: 'arraybuffer';
494
- }): Observable<ArrayBuffer>;
495
- post(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
496
- observe?: 'body';
497
- responseType: 'blob';
498
- }): Observable<Blob>;
499
- post(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
500
- observe?: 'body';
501
- responseType: 'text';
502
- }): Observable<string>;
503
- post(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
504
- observe: 'events';
505
- responseType: 'arraybuffer';
506
- }): Observable<HttpEvent<ArrayBuffer>>;
507
- post(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
508
- observe: 'events';
509
- responseType: 'blob';
510
- }): Observable<HttpEvent<Blob>>;
511
- post(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
512
- observe: 'events';
513
- responseType: 'text';
514
- }): Observable<HttpEvent<string>>;
515
- post(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
516
- observe: 'events';
517
- responseType?: 'json';
518
- }): Observable<HttpEvent<Object>>;
519
- post<T>(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
520
- observe: 'events';
521
- responseType?: 'json';
522
- }): Observable<HttpEvent<T>>;
523
- post(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
524
- observe: 'response';
525
- responseType: 'arraybuffer';
526
- }): Observable<ODataResponse<ArrayBuffer>>;
527
- post(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
528
- observe: 'response';
529
- responseType: 'blob';
530
- }): Observable<ODataResponse<Blob>>;
531
- post(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
532
- observe: 'response';
533
- responseType: 'text';
534
- }): Observable<ODataResponse<string>>;
535
- post(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
536
- observe: 'response';
537
- responseType?: 'json';
538
- }): Observable<ODataResponse<Object>>;
539
- post<T>(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
540
- observe: 'response';
541
- responseType?: 'json';
542
- }): Observable<ODataResponse<T>>;
543
- post(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
544
- observe?: 'body';
545
- responseType?: 'json';
546
- }): Observable<Object>;
547
- post<T>(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
548
- observe?: 'body';
549
- responseType?: 'json';
550
- }): Observable<T>;
551
- put(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
552
- observe?: 'body';
553
- responseType: 'arraybuffer';
554
- }): Observable<ArrayBuffer>;
555
- put(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
556
- observe?: 'body';
557
- responseType: 'blob';
558
- }): Observable<Blob>;
559
- put(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
560
- observe?: 'body';
561
- responseType: 'text';
562
- }): Observable<string>;
563
- put(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
564
- observe: 'events';
565
- responseType: 'arraybuffer';
566
- }): Observable<HttpEvent<ArrayBuffer>>;
567
- put(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
568
- observe: 'events';
569
- responseType: 'blob';
570
- }): Observable<HttpEvent<Blob>>;
571
- put(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
572
- observe: 'events';
573
- responseType: 'text';
574
- }): Observable<HttpEvent<string>>;
575
- put(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
576
- observe: 'events';
577
- responseType?: 'json';
578
- }): Observable<HttpEvent<Object>>;
579
- put<T>(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
580
- observe: 'events';
581
- responseType?: 'json';
582
- }): Observable<HttpEvent<T>>;
583
- put(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
584
- observe: 'response';
585
- responseType: 'arraybuffer';
586
- }): Observable<ODataResponse<ArrayBuffer>>;
587
- put(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
588
- observe: 'response';
589
- responseType: 'blob';
590
- }): Observable<ODataResponse<Blob>>;
591
- put(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
592
- observe: 'response';
593
- responseType: 'text';
594
- }): Observable<ODataResponse<string>>;
595
- put(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
596
- observe: 'response';
597
- responseType?: 'json';
598
- }): Observable<ODataResponse<Object>>;
599
- put<T>(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
600
- observe: 'response';
601
- responseType?: 'json';
602
- }): Observable<ODataResponse<T>>;
603
- put(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
604
- observe?: 'body';
605
- responseType?: 'json';
606
- }): Observable<Object>;
607
- put<T>(resource: ODataResource<any>, body: any | null, options: ODataOptions & {
608
- observe?: 'body';
609
- responseType?: 'json';
610
- }): Observable<T>;
611
- static ɵfac: i0.ɵɵFactoryDeclaration<ODataClient, never>;
612
- static ɵprov: i0.ɵɵInjectableDeclaration<ODataClient>;
613
- }
@@ -1,70 +0,0 @@
1
- export declare const $ID = "$id";
2
- export declare const ODATA_ID = "@odata.id";
3
- export declare const $METADATA = "$metadata";
4
- export declare const $BATCH = "$batch";
5
- export declare const $REF = "$ref";
6
- export declare const $VALUE = "$value";
7
- export declare const $COUNT = "$count";
8
- export declare const $QUERY = "$query";
9
- export declare const $INLINECOUNT = "$inlinecount";
10
- export declare const IF_MATCH_HEADER = "If-Match";
11
- export declare const IF_NONE_MATCH_HEADER = "If-None-Match";
12
- export declare const CONTENT_TYPE = "Content-Type";
13
- export declare const HTTP11 = "HTTP/1.1";
14
- export declare const ACCEPT = "Accept";
15
- export declare const PREFER = "Prefer";
16
- export declare const CACHE_CONTROL = "Cache-Control";
17
- export declare const CACHE_CONTROL_HEADERS: string[];
18
- export declare const ODATA_VERSION = "OData-Version";
19
- export declare const ODATA_VERSION_HEADERS: string[];
20
- export declare const LOCATION_HEADER = "Location";
21
- export declare const LOCATION_HEADERS: string[];
22
- export declare const ODATA_ENTITYID = "OData-EntityId";
23
- export declare const ODATA_ENTITYID_HEADERS: string[];
24
- export declare const PREFERENCE_APPLIED = "Preference-Applied";
25
- export declare const PREFERENCE_APPLIED_HEADERS: string[];
26
- export declare const ETAG_HEADER = "ETag";
27
- export declare const ETAG_HEADERS: string[];
28
- export declare const RETRY_AFTER = "Retry-After";
29
- export declare const RETRY_AFTER_HEADERS: string[];
30
- export declare const APPLICATION_JSON = "application/json";
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";
34
- export declare const TEXT_PLAIN = "text/plain";
35
- export declare const CONTENT_TYPE_ANY = "*/*";
36
- export declare const MULTIPART_MIXED = "multipart/mixed";
37
- export declare const MULTIPART_MIXED_BOUNDARY = "multipart/mixed;boundary=";
38
- export declare const CONTENT_TRANSFER_ENCODING = "Content-Transfer-Encoding";
39
- export declare const CONTENT_ID = "Content-ID";
40
- export declare const MAX_AGE = "max-age";
41
- export declare const VERSION_4_0 = "4.0";
42
- export declare const VERSION_3_0 = "3.0";
43
- export declare const VERSION_2_0 = "2.0";
44
- export declare const DEFAULT_VERSION = "4.0";
45
- export declare const BINARY = "binary";
46
- export declare const BOUNDARY_PREFIX_SUFFIX = "--";
47
- export declare const BATCH_PREFIX = "batch_";
48
- export declare const CHANGESET_PREFIX = "changeset_";
49
- export declare const DEFAULT_METADATA = "minimal";
50
- export declare const DEFAULT_STRIP_METADATA = "full";
51
- export declare const DEFAULT_FETCH_POLICY = "network-only";
52
- export declare const DEFAULT_TIMEOUT = 60;
53
- export declare const CALLABLE_BINDING_PARAMETER = "bindingParameter";
54
- export declare const XSSI_PREFIX: RegExp;
55
- export declare const QUERY_SEPARATOR = "?";
56
- export declare const PARAM_SEPARATOR = "&";
57
- export declare const VALUE_SEPARATOR = "=";
58
- export declare const PATH_SEPARATOR = "/";
59
- export declare const ODATA_PARAM_PREFIX = "$";
60
- export declare const ODATA_ALIAS_PREFIX = "@";
61
- export declare const NEWLINE = "\r\n";
62
- export declare const NEWLINE_REGEXP: RegExp;
63
- export declare const CACHE_KEY_SEPARATOR = ":";
64
- export declare const CID_FIELD_NAME = "_cid";
65
- export declare const EVENT_SPLITTER: RegExp;
66
- export declare const COMPUTED: RegExp;
67
- export declare const OPTIMISTIC_CONCURRENCY: RegExp;
68
- export declare const DESCRIPTION: RegExp;
69
- export declare const LONG_DESCRIPTION: RegExp;
70
- export declare const OPTIONARL_PARAMETER: RegExp;