angular-odata 0.105.0 → 0.110.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 (58) hide show
  1. package/esm2020/lib/api.mjs +44 -6
  2. package/esm2020/lib/client.mjs +6 -31
  3. package/esm2020/lib/helper.mjs +17 -7
  4. package/esm2020/lib/models/collection.mjs +25 -31
  5. package/esm2020/lib/models/model.mjs +6 -3
  6. package/esm2020/lib/models/options.mjs +5 -5
  7. package/esm2020/lib/resources/request.mjs +30 -2
  8. package/esm2020/lib/resources/resource.mjs +7 -50
  9. package/esm2020/lib/resources/responses/annotations.mjs +15 -3
  10. package/esm2020/lib/resources/responses/response.mjs +1 -1
  11. package/esm2020/lib/resources/responses/types.mjs +1 -1
  12. package/esm2020/lib/resources/types/batch.mjs +6 -9
  13. package/esm2020/lib/resources/types/count.mjs +1 -1
  14. package/esm2020/lib/resources/types/entity-set.mjs +32 -10
  15. package/esm2020/lib/resources/types/entity.mjs +1 -1
  16. package/esm2020/lib/resources/types/media.mjs +1 -1
  17. package/esm2020/lib/resources/types/metadata.mjs +3 -5
  18. package/esm2020/lib/resources/types/navigation-property.mjs +24 -6
  19. package/esm2020/lib/resources/types/options.mjs +1 -1
  20. package/esm2020/lib/resources/types/property.mjs +24 -4
  21. package/esm2020/lib/resources/types/reference.mjs +1 -1
  22. package/esm2020/lib/resources/types/singleton.mjs +1 -4
  23. package/esm2020/lib/resources/types/value.mjs +2 -2
  24. package/esm2020/lib/schema/parsers/callable.mjs +1 -1
  25. package/esm2020/lib/schema/parsers/edm.mjs +9 -9
  26. package/esm2020/lib/schema/parsers/enum-type.mjs +1 -1
  27. package/esm2020/lib/services/entity-set.mjs +7 -7
  28. package/esm2020/lib/utils/http.mjs +1 -1
  29. package/esm2020/lib/utils/objects.mjs +1 -1
  30. package/fesm2015/angular-odata.mjs +225 -157
  31. package/fesm2015/angular-odata.mjs.map +1 -1
  32. package/fesm2020/angular-odata.mjs +234 -162
  33. package/fesm2020/angular-odata.mjs.map +1 -1
  34. package/lib/api.d.ts +10 -3
  35. package/lib/client.d.ts +139 -1425
  36. package/lib/helper.d.ts +1 -1
  37. package/lib/models/collection.d.ts +11 -5
  38. package/lib/models/model.d.ts +7 -9
  39. package/lib/models/options.d.ts +3 -3
  40. package/lib/resources/query/handlers.d.ts +3 -1
  41. package/lib/resources/request.d.ts +13 -2
  42. package/lib/resources/resource.d.ts +2 -9
  43. package/lib/resources/responses/annotations.d.ts +17 -12
  44. package/lib/resources/responses/types.d.ts +3 -3
  45. package/lib/resources/types/count.d.ts +1 -1
  46. package/lib/resources/types/entity-set.d.ts +23 -6
  47. package/lib/resources/types/entity.d.ts +8 -24
  48. package/lib/resources/types/media.d.ts +7 -15
  49. package/lib/resources/types/metadata.d.ts +1 -1
  50. package/lib/resources/types/navigation-property.d.ts +26 -28
  51. package/lib/resources/types/options.d.ts +4 -2
  52. package/lib/resources/types/property.d.ts +28 -15
  53. package/lib/resources/types/reference.d.ts +3 -12
  54. package/lib/resources/types/singleton.d.ts +8 -27
  55. package/lib/services/entity-set.d.ts +15 -6
  56. package/lib/utils/http.d.ts +1 -1
  57. package/lib/utils/objects.d.ts +19 -5
  58. package/package.json +1 -1
package/lib/api.d.ts CHANGED
@@ -2,10 +2,10 @@ import { Observable } from 'rxjs';
2
2
  import { ODataCache } from './cache/index';
3
3
  import { ODataCollection, ODataModel, ODataModelOptions } from './models/index';
4
4
  import { ODataApiOptions } from './options';
5
- import { ODataActionResource, ODataBatchResource, ODataEntityResource, ODataEntitySetResource, ODataFunctionResource, ODataMetadataResource, ODataNavigationPropertyResource, ODataRequest, ODataSegment, ODataSingletonResource } from './resources/index';
5
+ import { ODataActionResource, ODataBatchResource, ODataEntityResource, ODataEntitySetResource, ODataFunctionResource, ODataMetadataResource, ODataNavigationPropertyResource, ODataOptions, ODataRequest, ODataResource, ODataSegment, ODataSingletonResource } from './resources/index';
6
6
  import { ODataCallable, ODataEntitySet, ODataEnumType, ODataSchema, ODataStructuredType } from './schema';
7
7
  import { ODataEntityService } from './services/entity';
8
- import { ApiConfig, Parser } from './types';
8
+ import { ApiConfig, Parser, QueryOptionNames } from './types';
9
9
  /**
10
10
  * Api abstraction for consuming OData services.
11
11
  */
@@ -72,7 +72,14 @@ export declare class ODataApi {
72
72
  * @returns ODataFunctionResource
73
73
  */
74
74
  function<P, R>(path: string): ODataFunctionResource<P, R>;
75
- request(req: ODataRequest<any>): Observable<any>;
75
+ request<T>(method: string, resource: ODataResource<any>, options: ODataOptions & {
76
+ body?: any;
77
+ etag?: string;
78
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text' | 'value' | 'property' | 'entity' | 'entities';
79
+ observe?: 'body' | 'events' | 'response';
80
+ withCount?: boolean;
81
+ bodyQueryOptions?: QueryOptionNames[];
82
+ }): Observable<any>;
76
83
  private memo;
77
84
  private findSchemaForType;
78
85
  findEnumTypeForType<T>(type: string): ODataEnumType<T> | undefined;