bx-rest 0.0.27 → 0.0.29

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.
@@ -0,0 +1,2 @@
1
+ import iHttpAnswerBX from '../typification/rest/base/httpAnswerBX';
2
+ export declare function mapResult<T>(v: iHttpAnswerBX<T> | undefined): T | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bx-rest",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "description": "bitrix rest api",
5
5
  "keywords": [
6
6
  "bitrxi",
@@ -14,9 +14,7 @@ export declare class BXRestListsElement {
14
14
  getFileUrl: string[];
15
15
  };
16
16
  constructor(http: HttpBXServices, mapResult: BXRestListsElementMap);
17
- get(pram: iBXRestParamListsElementGet): import("rxjs").Observable<(iHttpAnswerBX<iBXRestHttpListsElement[]> & {
18
- result: import("../../typification/rest/lists/element/get").iBXRestListsElement[];
19
- }) | undefined>;
17
+ get(pram: iBXRestParamListsElementGet): import("rxjs").Observable<iHttpAnswerBX<iBXRestHttpListsElement[]> | undefined>;
20
18
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestListsElement, never>;
21
19
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestListsElement>;
22
20
  }
package/rest.d.ts CHANGED
@@ -1,10 +1,16 @@
1
1
  import { BXRestUser } from './request/user';
2
2
  import BXRestLists from './request/lists';
3
3
  import * as i0 from "@angular/core";
4
- export declare class BXRest {
4
+ export declare class BXRestBase {
5
5
  user: BXRestUser;
6
6
  lists: BXRestLists;
7
7
  constructor(user: BXRestUser, lists: BXRestLists);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestBase, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestBase>;
10
+ }
11
+ declare const BXRest_base: typeof BXRestBase;
12
+ export declare class BXRest extends BXRest_base {
8
13
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRest, never>;
9
14
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRest>;
10
15
  }
16
+ export {};