bx-rest 0.6.8 → 0.8.1

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": "bx-rest",
3
- "version": "0.6.8",
3
+ "version": "0.8.1",
4
4
  "description": "Bitrix24 REST API client angular, vue or typescript",
5
5
  "keywords": [
6
6
  "bitrix",
@@ -9,5 +9,9 @@ export declare class BXRestNavvyPullConfig {
9
9
  };
10
10
  private Navvy;
11
11
  static public: BXRestMapPullChannelPublic;
12
+ /**
13
+ * @experimental
14
+ * Этот метод находится в процессе тестирования и может измениться.
15
+ */
12
16
  get(): import("../../services/navvy/navvy-simple").NavvySimple<iBXRestPullConfigGetHttp, iBXRestPullConfigGet, undefined>;
13
17
  }
@@ -27,6 +27,7 @@ export declare class HttpBXServices extends HttpServices {
27
27
  */
28
28
  get<T>(name: string[], params?: any): Observable<iBXRestAnswer<T> | undefined>;
29
29
  httpPost<T>(url: string, params?: any): Observable<T | undefined>;
30
+ serializeBitrixParams(obj: any, prefix?: string): string;
30
31
  httpGet<T>(url: string, params?: any): Observable<T | undefined>;
31
32
  getNameMethod(arr: string[]): string;
32
33
  }
@@ -1,11 +1,11 @@
1
1
  export interface iBXRestSettings {
2
2
  auth: {
3
- source: 'cookies' | 'localStorage' | 'off';
3
+ source: 'cookies' | 'localStorage' | 'off' | (() => string);
4
4
  key: 'auth' | 'sessid' | string;
5
5
  };
6
6
  urls: {
7
7
  source: 'string' | 'localStorage';
8
- key: string;
8
+ key: string | 'OAuth2';
9
9
  additional_part?: string;
10
10
  };
11
11
  }