bx-rest 0.9.0 → 0.9.2

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.
@@ -4,4 +4,6 @@ export declare class BXRestMapImRecent {
4
4
  static get(value: iBXRestImDialogRecentGetHttp[] | undefined): iBXRestImDialogRecentGet[] | undefined;
5
5
  static list(value: iBXRestImDialogRecentListHttp | undefined): iBXRestImDialogRecentList | undefined;
6
6
  static isIBXRestImDialogRecentGetChatChatDataHttp(item: iBXRestImDialogRecentGetChatChatDataHttp | iBXRestImDialogRecentGetChatUserDataBase): item is iBXRestImDialogRecentGetChatChatDataHttp;
7
+ private static mapUser;
8
+ private static mapChat;
7
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bx-rest",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Bitrix24 REST API client angular, vue or typescript",
5
5
  "keywords": [
6
6
  "bitrix",
@@ -21,25 +21,35 @@
21
21
  "url": "https://github.com/Aricatofuka/bx-rest/issues"
22
22
  },
23
23
  "homepage": "https://github.com/Aricatofuka/bx-rest#readme",
24
- "peerDependencies": {
25
- "just-clone": "^6.2.0",
24
+ "dependencies": {
25
+ "axios": "^1.13.2",
26
+ "countries-and-timezones": "^3.7.2",
26
27
  "just-camel-case": "^6.2.0",
28
+ "just-clone": "^6.2.0",
27
29
  "just-flatten-it": "^5.2.0",
28
30
  "just-values": "^2.2.0",
29
- "snake-camel-types": "^1.0.1",
30
31
  "luxon": "^3.4.4",
31
- "axios": "^1.13.2"
32
- },
33
- "dependencies": {
32
+ "qs": "^6.13.1",
33
+ "rxjs": "^7.8.1",
34
+ "snake-camel-types": "^1.0.1",
35
+ "ts-case-convert": "^2.1.0",
34
36
  "tslib": "^2.3.0"
35
37
  },
38
+ "files": [
39
+ "README.md",
40
+ "*.d.ts",
41
+ "consts",
42
+ "esm2022",
43
+ "fesm2022",
44
+ "functions",
45
+ "map",
46
+ "request",
47
+ "request-navvy",
48
+ "rest",
49
+ "services",
50
+ "typification"
51
+ ],
36
52
  "exports": {
37
- ".": {
38
- "types": "./index.d.ts",
39
- "default": "./fesm2022/bx-rest.mjs",
40
- "esm2022": "./esm2022/bx-rest.mjs",
41
- "esm": "./esm2022/bx-rest.mjs"
42
- },
43
53
  "./typification/base": {
44
54
  "types": "./typification/rest/base.d.ts"
45
55
  },
@@ -102,6 +112,12 @@
102
112
  },
103
113
  "./package.json": {
104
114
  "default": "./package.json"
115
+ },
116
+ ".": {
117
+ "types": "./index.d.ts",
118
+ "esm2022": "./esm2022/bx-rest.mjs",
119
+ "esm": "./esm2022/bx-rest.mjs",
120
+ "default": "./fesm2022/bx-rest.mjs"
105
121
  }
106
122
  },
107
123
  "module": "fesm2022/bx-rest.mjs",
@@ -2,16 +2,13 @@ import { Observable } from 'rxjs';
2
2
  import { iBXRestAnswer } from '../../../typification/rest/base/answer';
3
3
  import { HttpBXServices } from '../../http/HttpBX';
4
4
  import { ReturnTypeNavvy } from '../navvy-support';
5
- /**
6
- * Грядущая повсеместная замена для NavvyPagNavBase
7
- */
8
5
  export declare abstract class NavvyPagBase<T, R, P> {
9
6
  protected url: string[];
10
7
  protected param: P;
11
8
  protected map: ((param: T | undefined) => R | undefined) | undefined;
12
9
  protected readonly http: HttpBXServices;
13
10
  pageSize: number;
14
- constructor(url: string[], param: P, map: ((param: T | undefined) => R | undefined) | undefined);
11
+ constructor(url: string[], param: P, map?: ((param: T | undefined) => R | undefined) | undefined);
15
12
  resVanilla(): Observable<iBXRestAnswer<T> | undefined>;
16
13
  mapForVanilla(): Observable<iBXRestAnswer<ReturnTypeNavvy<T, R>> | undefined>;
17
14
  res(): Observable<ReturnTypeNavvy<T, R> | undefined>;
@@ -10,21 +10,13 @@ export interface iBXRestParamUserGet extends iBXRestBaseParam {
10
10
  export interface iBXRestParamUserGetFilter {
11
11
  ID?: number[] | number;
12
12
  PERSONAL_BIRTHDAY?: string | string[];
13
- /**
14
- * Принадлежность к структуре компании
15
- */
13
+ /** Принадлежность к структуре компании */
16
14
  UF_DEPARTMENT?: number[];
17
- /**
18
- * Внутренний телефонный номер
19
- */
15
+ /** Внутренний телефонный номер */
20
16
  UF_PHONE_INNER?: string;
21
- /**
22
- * Позволяет показать только авторизованных или нет пользователей
23
- */
17
+ /** Позволяет показать только авторизованных или нет пользователей */
24
18
  IS_ONLINE?: iBXRestYesNo;
25
- /**
26
- * Быстрый поиск по персональным данны
27
- */
19
+ /** Быстрый поиск по персональным данны */
28
20
  NAME_SEARCH?: string;
29
21
  /**
30
22
  * Тип пользователя. Может принимать следующие значения:
@@ -1,5 +0,0 @@
1
- /**
2
- * Файл для возможности импорта интерфейсов данного пакета в локальные проекты
3
- */
4
- export * from './base/answers';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2J4LXJlc3Qvc3JjL3R5cGlmaWNhdGlvbi9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsY0FBYyxnQkFBZ0IsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxyXG4gKiDQpNCw0LnQuyDQtNC70Y8g0LLQvtC30LzQvtC20L3QvtGB0YLQuCDQuNC80L/QvtGA0YLQsCDQuNC90YLQtdGA0YTQtdC50YHQvtCyINC00LDQvdC90L7Qs9C+INC/0LDQutC10YLQsCDQsiDQu9C+0LrQsNC70YzQvdGL0LUg0L/RgNC+0LXQutGC0YtcclxuICovXHJcbmV4cG9ydCAqIGZyb20gJy4vYmFzZS9hbnN3ZXJzJ1xyXG4iXX0=
@@ -1,4 +0,0 @@
1
- /**
2
- * Файл для возможности импорта интерфейсов данного пакета в локальные проекты
3
- */
4
- export * from './base/answers';