angular-odata 0.148.0 → 0.149.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-odata",
3
- "version": "0.148.0",
3
+ "version": "0.149.0",
4
4
  "license": "MIT",
5
5
  "description": "Client side OData typescript library for Angular",
6
6
  "repository": {
@@ -18,3 +18,5 @@ export const <%= classify(name) %> = ODataMetadata.fromJson(json).toConfig({
18
18
  '<%= col.entityType() %>': <%= col.importedName(imports) %>, <% } %>
19
19
  }
20
20
  }) as ODataApiConfig;
21
+ // #region Custom
22
+ // #endregion Custom
@@ -22,3 +22,5 @@ export class <%= classify(name) %><E extends <%= entity.name() %>, M extends <%=
22
22
  // #region Custom
23
23
  // #endregion Custom
24
24
  }
25
+ // #region Custom
26
+ // #endregion Custom
@@ -10,3 +10,5 @@ export interface <%= classify(name) %><% if (baseType) { %> extends <%= toTypesc
10
10
  // #region Custom
11
11
  // #endregion Custom
12
12
  }
13
+ // #region Custom
14
+ // #endregion Custom
@@ -20,3 +20,5 @@ export class <%= classify(name) %> extends ODataBaseService {
20
20
  // #region Custom
21
21
  // #endregion Custom
22
22
  }
23
+ // #region Custom
24
+ // #endregion Custom
@@ -29,3 +29,5 @@ export class <%= classify(name) %> extends ODataEntitySetService<<%= toTypescrip
29
29
  // #region Custom
30
30
  // #endregion Custom
31
31
  }
32
+ // #region Custom
33
+ // #endregion Custom
@@ -6,3 +6,5 @@ export enum <%= classify(name) %> {<% for(let value of values) { %>
6
6
  // #region Custom
7
7
  // #endregion Custom
8
8
  }
9
+ // #region Custom
10
+ // #endregion Custom
@@ -32,4 +32,6 @@ export class <%= classify(name) %><E extends <%= entity.name() %>> extends <% if
32
32
  <% } %>
33
33
  // #region Custom
34
34
  // #endregion Custom
35
- }
35
+ }
36
+ // #region Custom
37
+ // #endregion Custom
@@ -9,3 +9,5 @@ import { <%= imp.resolve().join(", ") %> } from '<%= imp.path() %>';<% } %>
9
9
  ]
10
10
  })
11
11
  export class <%= classify(name) %> { }
12
+ // #region Custom
13
+ // #endregion Custom
@@ -20,3 +20,5 @@ export class <%= classify(name) %> extends ODataSingletonService<<%= toTypescrip
20
20
  // #region Custom
21
21
  // #endregion Custom
22
22
  }
23
+ // #region Custom
24
+ // #endregion Custom
@@ -3796,8 +3796,18 @@ declare class ODataModel<T> {
3796
3796
  * @returns The result of the context
3797
3797
  */
3798
3798
  asEntity<R>(ctx: (model: this) => R): R;
3799
- callFunction<P, R>(name: string, params: P | null, responseType: 'property' | 'model' | 'collection' | 'none' | 'blob' | 'arraybuffer', options?: ODataFunctionOptions<R>): Observable<R | ODataModel<R> | ODataCollection<R, ODataModel<R>> | null | Blob | ArrayBuffer>;
3800
- callAction<P, R>(name: string, params: P | null, responseType?: 'property' | 'model' | 'collection' | 'none' | 'blob' | 'arraybuffer', { ...options }?: {} & ODataActionOptions<R>): Observable<R | ODataModel<R> | ODataCollection<R, ODataModel<R>> | null | Blob | ArrayBuffer>;
3799
+ protected callFunction<P, R>(name: string, params: P | null, responseType: 'property', options?: ODataFunctionOptions<R>): Observable<R>;
3800
+ protected callFunction<P, R>(name: string, params: P | null, responseType: 'model', options?: ODataFunctionOptions<R>): Observable<ODataModel<R>>;
3801
+ protected callFunction<P, R>(name: string, params: P | null, responseType: 'collection', options?: ODataFunctionOptions<R>): Observable<ODataCollection<R, ODataModel<R>>>;
3802
+ protected callFunction<P, R>(name: string, params: P | null, responseType: 'none', options?: ODataFunctionOptions<R>): Observable<null>;
3803
+ protected callFunction<P, R>(name: string, params: P | null, responseType: 'blob', options?: ODataFunctionOptions<R>): Observable<Blob>;
3804
+ protected callFunction<P, R>(name: string, params: P | null, responseType: 'arraybuffer', options?: ODataFunctionOptions<R>): Observable<ArrayBuffer>;
3805
+ protected callAction<P, R>(name: string, params: P | null, responseType: 'model', { ...options }: ODataActionOptions<R>): Observable<ODataModel<R>>;
3806
+ protected callAction<P, R>(name: string, params: P | null, responseType: 'collection', { ...options }: ODataActionOptions<R>): Observable<ODataCollection<R, ODataModel<R>>>;
3807
+ protected callAction<P, R>(name: string, params: P | null, responseType: 'property', { ...options }: ODataActionOptions<R>): Observable<R>;
3808
+ protected callAction<P, R>(name: string, params: P | null, responseType: 'none', { ...options }: ODataActionOptions<R>): Observable<null>;
3809
+ protected callAction<P, R>(name: string, params: P | null, responseType: 'blob', { ...options }: ODataActionOptions<R>): Observable<Blob>;
3810
+ protected callAction<P, R>(name: string, params: P | null, responseType: 'arraybuffer', { ...options }: ODataActionOptions<R>): Observable<ArrayBuffer>;
3801
3811
  cast<S>(type: string, ModelType?: typeof ODataModel<S>): ODataModel<S> & ModelInterface<S>;
3802
3812
  cast<S, M extends ODataModel<S>>(type: string, ModelType?: typeof ODataModel<S>): M;
3803
3813
  fetchNavigationProperty<S>(name: keyof T | string, responseType: 'model' | 'collection', options?: ODataQueryArgumentsOptions<S>): Observable<ODataModel<S> | ODataCollection<S, ODataModel<S>> | null>;
@@ -6093,10 +6103,14 @@ declare abstract class ODataBaseService {
6093
6103
  protected callFunction<P, R>(params: P | null, resource: ODataFunctionResource<P, R>, responseType: 'entities', options?: ODataFunctionOptions<R>): Observable<ODataEntities<R>>;
6094
6104
  protected callFunction<P, R>(params: P | null, resource: ODataFunctionResource<P, R>, responseType: 'property', options?: ODataFunctionOptions<R>): Observable<ODataProperty<R>>;
6095
6105
  protected callFunction<P, R>(params: P | null, resource: ODataFunctionResource<P, R>, responseType: 'none', options?: ODataFunctionOptions<R>): Observable<null>;
6106
+ protected callFunction<P, R>(params: P | null, resource: ODataFunctionResource<P, R>, responseType: 'blob', options?: ODataFunctionOptions<R>): Observable<Blob>;
6107
+ protected callFunction<P, R>(params: P | null, resource: ODataFunctionResource<P, R>, responseType: 'arraybuffer', options?: ODataFunctionOptions<R>): Observable<ArrayBuffer>;
6096
6108
  protected callAction<P, R>(params: P | null, resource: ODataActionResource<P, R>, responseType: 'entity', options?: ODataActionOptions<R>): Observable<ODataEntity<R>>;
6097
6109
  protected callAction<P, R>(params: P | null, resource: ODataActionResource<P, R>, responseType: 'entities', options?: ODataActionOptions<R>): Observable<ODataEntities<R>>;
6098
6110
  protected callAction<P, R>(params: P | null, resource: ODataActionResource<P, R>, responseType: 'property', options?: ODataActionOptions<R>): Observable<ODataProperty<R>>;
6099
6111
  protected callAction<P, R>(params: P | null, resource: ODataActionResource<P, R>, responseType: 'none', options?: ODataActionOptions<R>): Observable<null>;
6112
+ protected callAction<P, R>(params: P | null, resource: ODataActionResource<P, R>, responseType: 'blob', options?: ODataActionOptions<R>): Observable<Blob>;
6113
+ protected callAction<P, R>(params: P | null, resource: ODataActionResource<P, R>, responseType: 'arraybuffer', options?: ODataActionOptions<R>): Observable<ArrayBuffer>;
6100
6114
  protected fetchNavigationProperty<S>(resource: ODataNavigationPropertyResource<S>, responseType: 'entity', options?: ODataQueryArgumentsOptions<S>): Observable<ODataEntity<S>>;
6101
6115
  protected fetchNavigationProperty<S>(resource: ODataNavigationPropertyResource<S>, responseType: 'entities', options?: ODataQueryArgumentsOptions<S>): Observable<ODataEntities<S>>;
6102
6116
  }