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.
- package/esm2020/lib/api.mjs +44 -6
- package/esm2020/lib/client.mjs +6 -31
- package/esm2020/lib/helper.mjs +17 -7
- package/esm2020/lib/models/collection.mjs +25 -31
- package/esm2020/lib/models/model.mjs +6 -3
- package/esm2020/lib/models/options.mjs +5 -5
- package/esm2020/lib/resources/request.mjs +30 -2
- package/esm2020/lib/resources/resource.mjs +7 -50
- package/esm2020/lib/resources/responses/annotations.mjs +15 -3
- package/esm2020/lib/resources/responses/response.mjs +1 -1
- package/esm2020/lib/resources/responses/types.mjs +1 -1
- package/esm2020/lib/resources/types/batch.mjs +6 -9
- package/esm2020/lib/resources/types/count.mjs +1 -1
- package/esm2020/lib/resources/types/entity-set.mjs +32 -10
- package/esm2020/lib/resources/types/entity.mjs +1 -1
- package/esm2020/lib/resources/types/media.mjs +1 -1
- package/esm2020/lib/resources/types/metadata.mjs +3 -5
- package/esm2020/lib/resources/types/navigation-property.mjs +24 -6
- package/esm2020/lib/resources/types/options.mjs +1 -1
- package/esm2020/lib/resources/types/property.mjs +24 -4
- package/esm2020/lib/resources/types/reference.mjs +1 -1
- package/esm2020/lib/resources/types/singleton.mjs +1 -4
- package/esm2020/lib/resources/types/value.mjs +2 -2
- package/esm2020/lib/schema/parsers/callable.mjs +1 -1
- package/esm2020/lib/schema/parsers/edm.mjs +9 -9
- package/esm2020/lib/schema/parsers/enum-type.mjs +1 -1
- package/esm2020/lib/services/entity-set.mjs +7 -7
- package/esm2020/lib/utils/http.mjs +1 -1
- package/esm2020/lib/utils/objects.mjs +1 -1
- package/fesm2015/angular-odata.mjs +225 -157
- package/fesm2015/angular-odata.mjs.map +1 -1
- package/fesm2020/angular-odata.mjs +234 -162
- package/fesm2020/angular-odata.mjs.map +1 -1
- package/lib/api.d.ts +10 -3
- package/lib/client.d.ts +139 -1425
- package/lib/helper.d.ts +1 -1
- package/lib/models/collection.d.ts +11 -5
- package/lib/models/model.d.ts +7 -9
- package/lib/models/options.d.ts +3 -3
- package/lib/resources/query/handlers.d.ts +3 -1
- package/lib/resources/request.d.ts +13 -2
- package/lib/resources/resource.d.ts +2 -9
- package/lib/resources/responses/annotations.d.ts +17 -12
- package/lib/resources/responses/types.d.ts +3 -3
- package/lib/resources/types/count.d.ts +1 -1
- package/lib/resources/types/entity-set.d.ts +23 -6
- package/lib/resources/types/entity.d.ts +8 -24
- package/lib/resources/types/media.d.ts +7 -15
- package/lib/resources/types/metadata.d.ts +1 -1
- package/lib/resources/types/navigation-property.d.ts +26 -28
- package/lib/resources/types/options.d.ts +4 -2
- package/lib/resources/types/property.d.ts +28 -15
- package/lib/resources/types/reference.d.ts +3 -12
- package/lib/resources/types/singleton.d.ts +8 -27
- package/lib/services/entity-set.d.ts +15 -6
- package/lib/utils/http.d.ts +1 -1
- package/lib/utils/objects.d.ts +19 -5
- 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(
|
|
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;
|