bx-rest 0.6.4 → 0.6.6
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/README.md +7 -7
- package/consts/part-name-methods.d.ts +18 -0
- package/esm2022/consts/part-name-methods.mjs +19 -1
- package/esm2022/map/channel/public.mjs +12 -0
- package/esm2022/map/disk/file.mjs +20 -7
- package/esm2022/map/disk/storage.mjs +1 -5
- package/esm2022/map/im/dialog.mjs +16 -0
- package/esm2022/map/im/gialog/messages.mjs +29 -0
- package/esm2022/map/im/gialog/users.mjs +15 -0
- package/esm2022/map/im/recent.mjs +62 -0
- package/esm2022/map/im/user/list.mjs +10 -0
- package/esm2022/map/im/user.mjs +16 -0
- package/esm2022/map/pull/application/config.mjs +34 -0
- package/esm2022/map/pull.mjs +17 -0
- package/esm2022/request/pull/application/config.mjs +11 -0
- package/esm2022/request/pull/channel/public.mjs +18 -0
- package/esm2022/request/pull/config.mjs +13 -0
- package/esm2022/request/pull.mjs +11 -0
- package/esm2022/request-navvy/disk/file.mjs +3 -4
- package/esm2022/request-navvy/disk/storage.mjs +3 -2
- package/esm2022/request-navvy/im/chat/user.mjs +25 -0
- package/esm2022/request-navvy/im/chat.mjs +72 -11
- package/esm2022/request-navvy/im/counters.mjs +11 -0
- package/esm2022/request-navvy/im/dialog/messages.mjs +12 -0
- package/esm2022/request-navvy/im/dialog/read.mjs +19 -0
- package/esm2022/request-navvy/im/dialog/users.mjs +12 -0
- package/esm2022/request-navvy/im/dialog.mjs +39 -0
- package/esm2022/request-navvy/im/recent.mjs +46 -0
- package/esm2022/request-navvy/im/user/list.mjs +13 -0
- package/esm2022/request-navvy/im/user/status/idle.mjs +14 -0
- package/esm2022/request-navvy/im/user/status.mjs +22 -0
- package/esm2022/request-navvy/im/user.mjs +21 -0
- package/esm2022/request-navvy/im.mjs +9 -1
- package/esm2022/request-navvy/pull/application/config.mjs +12 -0
- package/esm2022/request-navvy/pull/channel/public.mjs +15 -0
- package/esm2022/request-navvy/pull/config.mjs +20 -0
- package/esm2022/request-navvy/pull.mjs +15 -0
- package/esm2022/rest/base.mjs +3 -3
- package/esm2022/rest/navvy.mjs +3 -1
- package/esm2022/typification/rest/disk/file.mjs +1 -1
- package/esm2022/typification/rest/im/chat/add.mjs +1 -1
- package/esm2022/typification/rest/im/chat/get.mjs +2 -0
- package/esm2022/typification/rest/im/chat/leave.mjs +2 -0
- package/esm2022/typification/rest/im/chat/mute.mjs +2 -0
- package/esm2022/typification/rest/im/chat/setOwner.mjs +2 -0
- package/esm2022/typification/rest/im/chat/updateAvatar.mjs +2 -0
- package/esm2022/typification/rest/im/chat/updateColor.mjs +2 -0
- package/esm2022/typification/rest/im/chat/updateTitle.mjs +2 -0
- package/esm2022/typification/rest/im/chat/user/add.mjs +2 -0
- package/esm2022/typification/rest/im/chat/user/delete.mjs +2 -0
- package/esm2022/typification/rest/im/chat/user/list.mjs +2 -0
- package/esm2022/typification/rest/im/counters/get.mjs +2 -0
- package/esm2022/typification/rest/im/dialog/get.mjs +2 -0
- package/esm2022/typification/rest/im/dialog/messages/get.mjs +2 -0
- package/esm2022/typification/rest/im/dialog/read.mjs +2 -0
- package/esm2022/typification/rest/im/dialog/recent/get.mjs +2 -0
- package/esm2022/typification/rest/im/dialog/recent/list.mjs +2 -0
- package/esm2022/typification/rest/im/dialog/recent/unread.mjs +2 -0
- package/esm2022/typification/rest/im/dialog/unread.mjs +2 -0
- package/esm2022/typification/rest/im/dialog/user/get.mjs +2 -0
- package/esm2022/typification/rest/im/dialog/writing.mjs +2 -0
- package/esm2022/typification/rest/im/user/get.mjs +2 -0
- package/esm2022/typification/rest/im/user/list/get.mjs +2 -0
- package/esm2022/typification/rest/im/user/status/get.mjs +2 -0
- package/esm2022/typification/rest/im/user/status/idle.mjs +2 -0
- package/esm2022/typification/rest/im/user/status/set.mjs +2 -0
- package/esm2022/typification/rest/pull/application/config/get.mjs +2 -0
- package/esm2022/typification/rest/pull/channel/get.mjs +2 -0
- package/esm2022/typification/rest/pull/config/get.mjs +2 -0
- package/esm2022/typification/rest/pull.mjs +2 -0
- package/esm2022/typification/rest/user/get.mjs +1 -1
- package/fesm2022/bx-rest.mjs +628 -39
- package/fesm2022/bx-rest.mjs.map +1 -1
- package/map/channel/public.d.ts +4 -0
- package/map/disk/file.d.ts +1 -2
- package/map/disk/storage.d.ts +1 -2
- package/map/im/dialog.d.ts +4 -0
- package/map/im/gialog/messages.d.ts +4 -0
- package/map/im/gialog/users.d.ts +4 -0
- package/map/im/recent.d.ts +6 -0
- package/map/im/user/list.d.ts +5 -0
- package/map/im/user.d.ts +4 -0
- package/map/pull/application/config.d.ts +4 -0
- package/map/pull.d.ts +4 -0
- package/package.json +1 -1
- package/request/pull/application/config.d.ts +5 -0
- package/request/pull/channel/public.d.ts +5 -0
- package/request/pull/config.d.ts +7 -0
- package/request/pull.d.ts +8 -0
- package/request-navvy/disk/file.d.ts +2 -3
- package/request-navvy/disk/folder.d.ts +2 -2
- package/request-navvy/im/chat/user.d.ts +17 -0
- package/request-navvy/im/chat.d.ts +65 -2
- package/request-navvy/im/counters.d.ts +5 -0
- package/request-navvy/im/dialog/messages.d.ts +5 -0
- package/request-navvy/im/dialog/read.d.ts +9 -0
- package/request-navvy/im/dialog/users.d.ts +5 -0
- package/request-navvy/im/dialog.d.ts +32 -0
- package/request-navvy/im/recent.d.ts +33 -0
- package/request-navvy/im/user/list.d.ts +7 -0
- package/request-navvy/im/user/status/idle.d.ts +6 -0
- package/request-navvy/im/user/status.d.ts +15 -0
- package/request-navvy/im/user.d.ts +14 -0
- package/request-navvy/im.d.ts +8 -0
- package/request-navvy/pull/application/config.d.ts +5 -0
- package/request-navvy/pull/channel/public.d.ts +8 -0
- package/request-navvy/pull/config.d.ts +13 -0
- package/request-navvy/pull.d.ts +12 -0
- package/rest/base.d.ts +2 -2
- package/rest/navvy.d.ts +4 -1
- package/typification/rest/disk/file.d.ts +4 -5
- package/typification/rest/im/chat/add.d.ts +1 -1
- package/typification/rest/im/chat/get.d.ts +18 -0
- package/typification/rest/im/chat/leave.d.ts +4 -0
- package/typification/rest/im/chat/mute.d.ts +10 -0
- package/typification/rest/im/chat/setOwner.d.ts +6 -0
- package/typification/rest/im/chat/updateAvatar.d.ts +6 -0
- package/typification/rest/im/chat/updateColor.d.ts +9 -0
- package/typification/rest/im/chat/updateTitle.d.ts +8 -0
- package/typification/rest/im/chat/user/add.d.ts +12 -0
- package/typification/rest/im/chat/user/delete.d.ts +6 -0
- package/typification/rest/im/chat/user/list.d.ts +4 -0
- package/typification/rest/im/counters/get.d.ts +13 -0
- package/typification/rest/im/dialog/get.d.ts +83 -0
- package/typification/rest/im/dialog/messages/get.d.ts +180 -0
- package/typification/rest/im/dialog/read.d.ts +25 -0
- package/typification/rest/im/dialog/recent/get.d.ts +172 -0
- package/typification/rest/im/dialog/recent/list.d.ts +186 -0
- package/typification/rest/im/dialog/recent/unread.d.ts +12 -0
- package/typification/rest/im/dialog/unread.d.ts +3 -0
- package/typification/rest/im/dialog/user/get.d.ts +71 -0
- package/typification/rest/im/dialog/writing.d.ts +2 -0
- package/typification/rest/im/user/get.d.ts +73 -0
- package/typification/rest/im/user/list/get.d.ts +5 -0
- package/typification/rest/im/user/status/get.d.ts +7 -0
- package/typification/rest/im/user/status/idle.d.ts +4 -0
- package/typification/rest/im/user/status/set.d.ts +4 -0
- package/typification/rest/pull/application/config/get.d.ts +3 -0
- package/typification/rest/pull/channel/get.d.ts +13 -0
- package/typification/rest/pull/config/get.d.ts +70 -0
- package/typification/rest/pull.d.ts +1 -0
- package/typification/rest/user/get.d.ts +3 -3
- package/esm2022/request/im/chat.mjs +0 -12
- package/esm2022/request/im.mjs +0 -7
- package/request/im/chat.d.ts +0 -6
- package/request/im.d.ts +0 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { iBXRestPullChannelPublicGet, iBXRestPullChannelPublicGetHttp } from '../../typification/rest/pull/channel/get';
|
|
2
|
+
export declare class BXRestMapPullChannelPublic {
|
|
3
|
+
static get(value: iBXRestPullChannelPublicGetHttp | undefined): iBXRestPullChannelPublicGet | undefined;
|
|
4
|
+
}
|
package/map/disk/file.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { iBXRestDiskFile, iBXRestDiskFileHttp } from '../../typification/rest/disk/file';
|
|
2
2
|
export declare class BXRestMapDiskFile {
|
|
3
|
-
get(v: iBXRestDiskFileHttp | undefined): iBXRestDiskFile | undefined;
|
|
4
|
-
markdeleted(v: iBXRestDiskFileHttp | undefined): iBXRestDiskFile | undefined;
|
|
3
|
+
static get(v: iBXRestDiskFileHttp | undefined): iBXRestDiskFile | undefined;
|
|
5
4
|
}
|
package/map/disk/storage.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { BXRestMapDiskBase } from './base';
|
|
2
2
|
import { iBXRestFolder, iBXRestFolderHttp } from '../../typification/rest/disk/folder';
|
|
3
|
-
import {
|
|
3
|
+
import { iBXRestDiskFileHttp } from '../../typification/rest/disk/file';
|
|
4
4
|
export declare class BXRestMapDiskStorage extends BXRestMapDiskBase {
|
|
5
5
|
static getChildren(arr: (iBXRestFolderHttp | iBXRestDiskFileHttp)[] | undefined): import("../../typification/rest/disk/map").iBXRestDiskFileAndFolderMap;
|
|
6
6
|
static addFolder(value: iBXRestFolderHttp | undefined): iBXRestFolder | undefined;
|
|
7
|
-
static uploadFile(value: iBXRestDiskFileHttp | undefined): iBXRestDiskFile | undefined;
|
|
8
7
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { iBXRestImDialogMessagesGet, iBXRestImDialogMessagesGetHttp } from '../../../typification/rest/im/dialog/messages/get';
|
|
2
|
+
export declare class BXRestMapImDialogMessages {
|
|
3
|
+
static get(value: iBXRestImDialogMessagesGetHttp | undefined): iBXRestImDialogMessagesGet | undefined;
|
|
4
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { iBXRestImDialogRecentGet, iBXRestImDialogRecentGetHttp } from '../../typification/rest/im/dialog/recent/get';
|
|
2
|
+
import { iBXRestImDialogRecentList, iBXRestImDialogRecentListHttp } from '../../typification/rest/im/dialog/recent/list';
|
|
3
|
+
export declare class BXRestMapImRecent {
|
|
4
|
+
static get(value: iBXRestImDialogRecentGetHttp[] | undefined): iBXRestImDialogRecentGet[] | undefined;
|
|
5
|
+
static list(value: iBXRestImDialogRecentListHttp | undefined): iBXRestImDialogRecentList | undefined;
|
|
6
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { iBXRestImUserGet, iBXRestImUserGetHttp } from '../../../typification/rest/im/user/get';
|
|
2
|
+
export declare class BXRestMapImUserList {
|
|
3
|
+
/** Получить данные о пользователях */
|
|
4
|
+
static get(value: (iBXRestImUserGetHttp | null)[] | undefined): (iBXRestImUserGet | undefined)[] | undefined;
|
|
5
|
+
}
|
package/map/im/user.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { iBXRestPullApplicationConfigGet, iBXRestPullApplicationConfigGetHttp } from '../../../typification/rest/pull/application/config/get';
|
|
2
|
+
export declare class BXRestMapPullApplicationConfig {
|
|
3
|
+
static get(value: iBXRestPullApplicationConfigGetHttp | undefined): iBXRestPullApplicationConfigGet | undefined;
|
|
4
|
+
}
|
package/map/pull.d.ts
ADDED
package/package.json
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { iBXRestPullApplicationConfigGetHttp } from '../../../typification/rest/pull/application/config/get';
|
|
2
|
+
export declare class BXRestPullApplicationConfig {
|
|
3
|
+
private readonly http;
|
|
4
|
+
get(): import("rxjs").Observable<import("../../../typification/rest/base/answer").iBXRestAnswer<iBXRestPullApplicationConfigGetHttp> | undefined>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { iBXRestPullChannelPublicGetHttp } from '../../../typification/rest/pull/channel/get';
|
|
2
|
+
export declare class BXRestPullChannelPublic {
|
|
3
|
+
private readonly http;
|
|
4
|
+
get(): import("rxjs").Observable<import("../../../typification/rest/base/answer").iBXRestAnswer<iBXRestPullChannelPublicGetHttp> | undefined>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { iBXRestPullConfigGetHttp } from '../../typification/rest/pull/config/get';
|
|
2
|
+
import { BXRestPullApplicationConfig } from './application/config';
|
|
3
|
+
export declare class BXRestPullConfig {
|
|
4
|
+
private readonly http;
|
|
5
|
+
readonly config: BXRestPullApplicationConfig;
|
|
6
|
+
get(): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestPullConfigGetHttp> | undefined>;
|
|
7
|
+
}
|
|
@@ -10,8 +10,7 @@ export declare class BXRestNavvyDiskFile {
|
|
|
10
10
|
*/
|
|
11
11
|
markDeleted: string[];
|
|
12
12
|
};
|
|
13
|
-
private readonly BXRestMapDiskFile;
|
|
14
13
|
private Navvy;
|
|
15
|
-
get(param: iBXRestParamDiskFileGet): import("../../services/navvy/navvy-simple").NavvySimple<import("../../typification/rest/disk/file").iBXRestDiskFileHttp, import("../../typification/rest/disk/file").iBXRestDiskFile,
|
|
16
|
-
markDeleted(param: iBXRestParamDiskFileMarkDeleted): import("../../services/navvy/navvy-simple").NavvySimple<import("../../typification/rest/disk/file").iBXRestDiskFileHttp, import("../../typification/rest/disk/file").iBXRestDiskFile,
|
|
14
|
+
get(param: iBXRestParamDiskFileGet): import("../../services/navvy/navvy-simple").NavvySimple<import("../../typification/rest/disk/file").iBXRestDiskFileHttp, import("../../typification/rest/disk/file").iBXRestDiskFile, import("../../typification/rest/disk/file").iBXRestParamDiskFile | undefined>;
|
|
15
|
+
markDeleted(param: iBXRestParamDiskFileMarkDeleted): import("../../services/navvy/navvy-simple").NavvySimple<import("../../typification/rest/disk/file").iBXRestDiskFileHttp, import("../../typification/rest/disk/file").iBXRestDiskFile, import("../../typification/rest/disk/file").iBXRestParamDiskFile | undefined>;
|
|
17
16
|
}
|
|
@@ -26,7 +26,7 @@ export declare class BXRestNavvyDiskFolder {
|
|
|
26
26
|
*
|
|
27
27
|
* @param param
|
|
28
28
|
*/
|
|
29
|
-
get(param: iBXRestParamDiskFileGet): import("../../services/navvy/navvy-simple").NavvySimple<import("../../typification/rest/disk/folder").iBXRestFolderHttp, import("../../typification/rest/disk/folder").iBXRestFolder,
|
|
29
|
+
get(param: iBXRestParamDiskFileGet): import("../../services/navvy/navvy-simple").NavvySimple<import("../../typification/rest/disk/folder").iBXRestFolderHttp, import("../../typification/rest/disk/folder").iBXRestFolder, import("../../typification/rest/disk/file").iBXRestParamDiskFile | undefined>;
|
|
30
30
|
/**
|
|
31
31
|
* Создает дочернюю папку
|
|
32
32
|
*
|
|
@@ -63,7 +63,7 @@ export declare class BXRestNavvyDiskFolder {
|
|
|
63
63
|
*
|
|
64
64
|
* @param param
|
|
65
65
|
*/
|
|
66
|
-
markDeleted(param: iBXRestParamDiskFileMarkDeleted): import("../../services/navvy/navvy-simple").NavvySimple<import("../../typification/rest/disk/folder").iBXRestFolderHttp, import("../../typification/rest/disk/folder").iBXRestFolder,
|
|
66
|
+
markDeleted(param: iBXRestParamDiskFileMarkDeleted): import("../../services/navvy/navvy-simple").NavvySimple<import("../../typification/rest/disk/folder").iBXRestFolderHttp, import("../../typification/rest/disk/folder").iBXRestFolder, import("../../typification/rest/disk/file").iBXRestParamDiskFile | undefined>;
|
|
67
67
|
/**
|
|
68
68
|
* Восстанавливает папку из корзины
|
|
69
69
|
*
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { iBXRestImChatUserListParam } from '../../../typification/rest/im/chat/user/list';
|
|
2
|
+
import { iBXRestImChatUserDeleteParam } from '../../../typification/rest/im/chat/user/delete';
|
|
3
|
+
import { iBXRestImChatUserAddParam } from '../../../typification/rest/im/chat/user/add';
|
|
4
|
+
export declare class BXRestNavvyImChatUser {
|
|
5
|
+
private Navvy;
|
|
6
|
+
url: {
|
|
7
|
+
add: string[];
|
|
8
|
+
list: string[];
|
|
9
|
+
delete: string[];
|
|
10
|
+
};
|
|
11
|
+
list(param: iBXRestImChatUserListParam): import("../../../services/navvy/navvy-simple").NavvySimple<number[], number[], iBXRestImChatUserListParam | undefined>;
|
|
12
|
+
delete(param: iBXRestImChatUserDeleteParam): import("../../../services/navvy/navvy-simple").NavvySimple<number, number, iBXRestImChatUserDeleteParam | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* Приглаcить участников в чат
|
|
15
|
+
*/
|
|
16
|
+
add(param: iBXRestImChatUserAddParam): import("../../../services/navvy/navvy-simple").NavvySimple<boolean, boolean, iBXRestImChatUserAddParam | undefined>;
|
|
17
|
+
}
|
|
@@ -1,8 +1,71 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { iBXRestImChatAddParam } from '../../typification/rest/im/chat/add';
|
|
2
|
+
import { iBXRestImChatGetParam } from '../../typification/rest/im/chat/get';
|
|
3
|
+
import { iBXRestImChatSetOwnerParam } from '../../typification/rest/im/chat/setOwner';
|
|
4
|
+
import { iBXRestImChatUpdateAvatarParam } from '../../typification/rest/im/chat/updateAvatar';
|
|
5
|
+
import { iBXRestImChatUpdateTitleParam } from '../../typification/rest/im/chat/updateTitle';
|
|
6
|
+
import { iBXRestImChatLeaveParam } from '../../typification/rest/im/chat/leave';
|
|
7
|
+
import { iBXRestImChatMuteParam } from '../../typification/rest/im/chat/mute';
|
|
8
|
+
import { BXRestNavvyImChatUser } from './chat/user';
|
|
9
|
+
import { iBXRestImChatUpdateColor } from '../../typification/rest/im/chat/updateColor';
|
|
2
10
|
export declare class BXRestNavvyImChat {
|
|
3
11
|
url: {
|
|
4
12
|
add: string[];
|
|
13
|
+
get: string[];
|
|
14
|
+
setOwner: string[];
|
|
15
|
+
updateAvatar: string[];
|
|
16
|
+
updateColor: string[];
|
|
17
|
+
updateTitle: string[];
|
|
18
|
+
leave: string[];
|
|
19
|
+
mute: string[];
|
|
5
20
|
};
|
|
6
21
|
private Navvy;
|
|
7
|
-
|
|
22
|
+
readonly user: BXRestNavvyImChatUser;
|
|
23
|
+
/**
|
|
24
|
+
* Создать чат
|
|
25
|
+
*
|
|
26
|
+
* @param param
|
|
27
|
+
*/
|
|
28
|
+
add(param: iBXRestImChatAddParam): import("../../services/navvy/navvy-simple").NavvySimple<number, number, iBXRestImChatAddParam | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* Получить идентификатор чата
|
|
31
|
+
*
|
|
32
|
+
* @param param
|
|
33
|
+
*/
|
|
34
|
+
get(param: iBXRestImChatGetParam): import("../../services/navvy/navvy-simple").NavvySimple<number, number, iBXRestImChatGetParam | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* Сменить владельца чата
|
|
37
|
+
*
|
|
38
|
+
* @param param
|
|
39
|
+
*/
|
|
40
|
+
setOwner(param: iBXRestImChatSetOwnerParam): import("../../services/navvy/navvy-simple").NavvySimple<boolean, boolean, iBXRestImChatSetOwnerParam | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* Изменить аватарку чата
|
|
43
|
+
*
|
|
44
|
+
* @param param
|
|
45
|
+
*/
|
|
46
|
+
updateAvatar(param: iBXRestImChatUpdateAvatarParam): import("../../services/navvy/navvy-simple").NavvySimple<boolean, boolean, iBXRestImChatUpdateAvatarParam | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* Изменить заголовок чата
|
|
49
|
+
*
|
|
50
|
+
* @param param
|
|
51
|
+
*/
|
|
52
|
+
updateTitle(param: iBXRestImChatUpdateTitleParam): import("../../services/navvy/navvy-simple").NavvySimple<boolean, boolean, iBXRestImChatUpdateTitleParam | undefined>;
|
|
53
|
+
/**
|
|
54
|
+
* Покинуть чат
|
|
55
|
+
*
|
|
56
|
+
* @param param
|
|
57
|
+
*/
|
|
58
|
+
leave(param: iBXRestImChatLeaveParam): import("../../services/navvy/navvy-simple").NavvySimple<boolean, boolean, iBXRestImChatLeaveParam | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* Отключить уведомления от чата
|
|
61
|
+
*
|
|
62
|
+
* @param param
|
|
63
|
+
*/
|
|
64
|
+
mute(param: iBXRestImChatMuteParam): import("../../services/navvy/navvy-simple").NavvySimple<boolean, boolean, iBXRestImChatMuteParam | undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* Изменить цвет чата
|
|
67
|
+
*
|
|
68
|
+
* @param param
|
|
69
|
+
*/
|
|
70
|
+
updateColor(param: iBXRestImChatUpdateColor): import("../../services/navvy/navvy-simple").NavvySimple<boolean, boolean, iBXRestImChatUpdateColor | undefined>;
|
|
8
71
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { iBXRestImDialogMessagesGet, iBXRestImDialogMessagesGetHttp, iBXRestImDialogMessagesGetParam } from '../../../typification/rest/im/dialog/messages/get';
|
|
2
|
+
export declare class BXRestNavvyImDialogMessages {
|
|
3
|
+
private Navvy;
|
|
4
|
+
get(param: iBXRestImDialogMessagesGetParam): import("../../../services/navvy/navvy-simple").NavvySimple<iBXRestImDialogMessagesGetHttp, iBXRestImDialogMessagesGet, iBXRestImDialogMessagesGetParam | undefined>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Navvy } from '../../../services/navvy';
|
|
2
|
+
import { iBXRestImDialogRead, iBXRestImDialogReadParam } from '../../../typification/rest/im/dialog/read';
|
|
3
|
+
export declare function BXRestNavvyImDialogRead(navvy: Navvy): {
|
|
4
|
+
(param: iBXRestImDialogReadParam): import("../../../services/navvy/navvy-simple").NavvySimple<iBXRestImDialogRead, iBXRestImDialogRead, iBXRestImDialogReadParam | undefined>;
|
|
5
|
+
/**
|
|
6
|
+
* Установить признак «прочитано» у всех чатов
|
|
7
|
+
*/
|
|
8
|
+
all(): import("../../../services/navvy/navvy-simple").NavvySimple<boolean, boolean, undefined>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { iBXRestImDialogUserGet, iBXRestImDialogUserGetHttp, iBXRestImDialogUserGetParam } from '../../../typification/rest/im/dialog/user/get';
|
|
2
|
+
export declare class BXRestNavvyImDialogUsers {
|
|
3
|
+
private Navvy;
|
|
4
|
+
list(param: iBXRestImDialogUserGetParam): import("../../../services/navvy/navvy-simple").NavvySimple<iBXRestImDialogUserGetHttp, iBXRestImDialogUserGet, iBXRestImDialogUserGetParam | undefined>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BXRestNavvyImDialogUsers } from './dialog/users';
|
|
2
|
+
import { iBXRestImDialogGet, iBXRestImDialogGetHttp, iBXRestImDialogGetParam } from '../../typification/rest/im/dialog/get';
|
|
3
|
+
import { BXRestNavvyImDialogMessages } from './dialog/messages';
|
|
4
|
+
import { iBXRestImDialogUnReadParam } from '../../typification/rest/im/dialog/unread';
|
|
5
|
+
import { iBXRestImDialogWritingParam } from '../../typification/rest/im/dialog/writing';
|
|
6
|
+
export declare class BXRestNavvyImDialog {
|
|
7
|
+
private Navvy;
|
|
8
|
+
readonly users: BXRestNavvyImDialogUsers;
|
|
9
|
+
readonly messages: BXRestNavvyImDialogMessages;
|
|
10
|
+
readonly read: {
|
|
11
|
+
(param: import("../../typification/rest/im/dialog/read").iBXRestImDialogReadParam): import("../../services/navvy/navvy-simple").NavvySimple<import("../../typification/rest/im/dialog/read").iBXRestImDialogRead, import("../../typification/rest/im/dialog/read").iBXRestImDialogRead, import("../../typification/rest/im/dialog/read").iBXRestImDialogReadParam | undefined>;
|
|
12
|
+
all(): import("../../services/navvy/navvy-simple").NavvySimple<boolean, boolean, undefined>;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Получить данные о чате
|
|
16
|
+
*
|
|
17
|
+
* @param param
|
|
18
|
+
*/
|
|
19
|
+
get(param: iBXRestImDialogGetParam): import("../../services/navvy/navvy-simple").NavvySimple<iBXRestImDialogGetHttp, iBXRestImDialogGet, iBXRestImDialogGetParam | undefined>;
|
|
20
|
+
/**
|
|
21
|
+
* Установить признак «прочитано» у сообщений
|
|
22
|
+
*
|
|
23
|
+
* @param param
|
|
24
|
+
*/
|
|
25
|
+
unread(param: iBXRestImDialogUnReadParam): import("../../services/navvy/navvy-simple").NavvySimple<boolean, boolean, iBXRestImDialogUnReadParam | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Отправить признак «вам пишут...»
|
|
28
|
+
*
|
|
29
|
+
* @param param
|
|
30
|
+
*/
|
|
31
|
+
writing(param: iBXRestImDialogWritingParam): import("../../services/navvy/navvy-simple").NavvySimple<boolean, boolean, iBXRestImDialogGetParam | undefined>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { iBXRestImDialogRecentUnreadParam } from '../../typification/rest/im/dialog/recent/unread';
|
|
2
|
+
import { iBXRestImDialogRecentGet, iBXRestImDialogRecentGetHttp, iBXRestImDialogRecentGetParam } from '../../typification/rest/im/dialog/recent/get';
|
|
3
|
+
import { iBXRestImDialogRecentList, iBXRestImDialogRecentListHttp, iBXRestImDialogRecentListParam } from '../../typification/rest/im/dialog/recent/list';
|
|
4
|
+
export declare class BXRestNavvyImRecent {
|
|
5
|
+
private Navvy;
|
|
6
|
+
url: {
|
|
7
|
+
get: string[];
|
|
8
|
+
list: string[];
|
|
9
|
+
hide: string[];
|
|
10
|
+
pin: string[];
|
|
11
|
+
unread: string[];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Получить сокращенный список последних чатов
|
|
15
|
+
*/
|
|
16
|
+
get(param: iBXRestImDialogRecentGetParam): import("../../services/navvy/navvy-simple").NavvySimple<iBXRestImDialogRecentGetHttp[], iBXRestImDialogRecentGet[], iBXRestImDialogRecentGetParam | undefined>;
|
|
17
|
+
/**
|
|
18
|
+
* Получить список чатов
|
|
19
|
+
*/
|
|
20
|
+
list(param: iBXRestImDialogRecentListParam): import("../../services/navvy/navvy-simple").NavvySimple<iBXRestImDialogRecentListHttp, iBXRestImDialogRecentList, iBXRestImDialogRecentListParam | undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* Удалить чат из списка последних
|
|
23
|
+
*/
|
|
24
|
+
hide(param: iBXRestImDialogRecentUnreadParam): import("../../services/navvy/navvy-simple").NavvySimple<boolean, boolean, iBXRestImDialogRecentUnreadParam | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* Закрепить чат вверху списка
|
|
27
|
+
*/
|
|
28
|
+
pin(param: iBXRestImDialogRecentUnreadParam): import("../../services/navvy/navvy-simple").NavvySimple<boolean, boolean, iBXRestImDialogRecentUnreadParam | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* Установить или снять признак «прочитано» у чата
|
|
31
|
+
*/
|
|
32
|
+
unread(param: iBXRestImDialogRecentUnreadParam): import("../../services/navvy/navvy-simple").NavvySimple<boolean, boolean, iBXRestImDialogRecentUnreadParam | undefined>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { iBXRestImUserListGetParam } from '../../../typification/rest/im/user/list/get';
|
|
2
|
+
import { iBXRestImUserGet, iBXRestImUserGetHttp } from '../../../typification/rest/im/user/get';
|
|
3
|
+
export declare class BXRestNavvyImUserList {
|
|
4
|
+
private Navvy;
|
|
5
|
+
/** Получить данные о пользователях */
|
|
6
|
+
get(param: iBXRestImUserListGetParam): import("../../../services/navvy/navvy-simple").NavvySimple<(iBXRestImUserGetHttp | null)[], (iBXRestImUserGet | undefined)[], iBXRestImUserListGetParam | undefined>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { iBXRestImUserStatusIdleStartParam } from '../../../../typification/rest/im/user/status/idle';
|
|
2
|
+
export declare class BXRestNavvyImUserStatusIdle {
|
|
3
|
+
private Navvy;
|
|
4
|
+
start(param: iBXRestImUserStatusIdleStartParam): import("../../../../services/navvy/navvy-simple").NavvySimple<boolean, boolean, iBXRestImUserStatusIdleStartParam | undefined>;
|
|
5
|
+
end(): import("../../../../services/navvy/navvy-simple").NavvySimple<boolean, boolean, undefined>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { iBXRestImUserStatusGet } from '../../../typification/rest/im/user/status/get';
|
|
2
|
+
import { iBXRestImUserStatusSet } from '../../../typification/rest/im/user/status/set';
|
|
3
|
+
import { BXRestNavvyImUserStatusIdle } from './status/idle';
|
|
4
|
+
export declare class BXRestNavvyImUserStatus {
|
|
5
|
+
private Navvy;
|
|
6
|
+
readonly idle: BXRestNavvyImUserStatusIdle;
|
|
7
|
+
/**
|
|
8
|
+
* Получить информацию об установленном статусе пользователя
|
|
9
|
+
*/
|
|
10
|
+
get(): import("../../../services/navvy/navvy-simple").NavvySimple<iBXRestImUserStatusGet, iBXRestImUserStatusGet, undefined>;
|
|
11
|
+
/**
|
|
12
|
+
* Установить статус пользователя
|
|
13
|
+
*/
|
|
14
|
+
set(param: iBXRestImUserStatusSet): import("../../../services/navvy/navvy-simple").NavvySimple<boolean, boolean, iBXRestImUserStatusSet | undefined>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { iBXRestImUserGet, iBXRestImUserGetHttp, iBXRestImUserGetParam } from '../../typification/rest/im/user/get';
|
|
2
|
+
import { BXRestNavvyImUserStatus } from './user/status';
|
|
3
|
+
import { BXRestNavvyImUserList } from './user/list';
|
|
4
|
+
export declare class BXRestNavvyImUser {
|
|
5
|
+
private Navvy;
|
|
6
|
+
readonly list: BXRestNavvyImUserList;
|
|
7
|
+
readonly status: BXRestNavvyImUserStatus;
|
|
8
|
+
/**
|
|
9
|
+
* Получить данные о пользователе
|
|
10
|
+
*
|
|
11
|
+
* @param param
|
|
12
|
+
*/
|
|
13
|
+
get(param: iBXRestImUserGetParam): import("../../services/navvy/navvy-simple").NavvySimple<iBXRestImUserGetHttp, iBXRestImUserGet, iBXRestImUserGetParam | undefined>;
|
|
14
|
+
}
|
package/request-navvy/im.d.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { BXRestNavvyImChat } from './im/chat';
|
|
2
|
+
import { BXRestNavvyImCounters } from './im/counters';
|
|
3
|
+
import { BXRestNavvyImDialog } from './im/dialog';
|
|
4
|
+
import { BXRestNavvyImRecent } from './im/recent';
|
|
5
|
+
import { BXRestNavvyImUser } from './im/user';
|
|
2
6
|
export declare class BXRestNavvyIm {
|
|
3
7
|
readonly chat: BXRestNavvyImChat;
|
|
8
|
+
readonly counters: BXRestNavvyImCounters;
|
|
9
|
+
readonly dialog: BXRestNavvyImDialog;
|
|
10
|
+
readonly recent: BXRestNavvyImRecent;
|
|
11
|
+
readonly user: BXRestNavvyImUser;
|
|
4
12
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { iBXRestPullApplicationConfigGet, iBXRestPullApplicationConfigGetHttp } from '../../../typification/rest/pull/application/config/get';
|
|
2
|
+
export declare class BXRestNavvyPullApplicationConfig {
|
|
3
|
+
private Navvy;
|
|
4
|
+
get(): import("../../../services/navvy/navvy-simple").NavvySimple<iBXRestPullApplicationConfigGetHttp, iBXRestPullApplicationConfigGet, undefined>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { iBXRestPullChannelPublicGet, iBXRestPullChannelPublicGetHttp } from '../../../typification/rest/pull/channel/get';
|
|
2
|
+
export declare class BXRestNavvyPullChannelPublic {
|
|
3
|
+
url: {
|
|
4
|
+
get: string[];
|
|
5
|
+
};
|
|
6
|
+
private Navvy;
|
|
7
|
+
get(): import("../../../services/navvy/navvy-simple").NavvySimple<iBXRestPullChannelPublicGetHttp, iBXRestPullChannelPublicGet, undefined>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { iBXRestPullConfigGet, iBXRestPullConfigGetHttp } from '../../typification/rest/pull';
|
|
2
|
+
import { BXRestMapPullChannelPublic } from '../../map/channel/public';
|
|
3
|
+
export declare class BXRestNavvyPullConfig {
|
|
4
|
+
url: {
|
|
5
|
+
/**
|
|
6
|
+
* Получает информацию для подключения в веб сокету
|
|
7
|
+
*/
|
|
8
|
+
get: string[];
|
|
9
|
+
};
|
|
10
|
+
private Navvy;
|
|
11
|
+
static public: BXRestMapPullChannelPublic;
|
|
12
|
+
get(): import("../../services/navvy/navvy-simple").NavvySimple<iBXRestPullConfigGetHttp, iBXRestPullConfigGet, undefined>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BXRestNavvyPullConfig } from './pull/config';
|
|
2
|
+
import { BXRestNavvyPullChannelPublic } from './pull/channel/public';
|
|
3
|
+
import { BXRestNavvyPullApplicationConfig } from './pull/application/config';
|
|
4
|
+
export declare class BXRestNavvyPull {
|
|
5
|
+
readonly config: BXRestNavvyPullConfig;
|
|
6
|
+
readonly channel: {
|
|
7
|
+
public: BXRestNavvyPullChannelPublic;
|
|
8
|
+
};
|
|
9
|
+
readonly application: {
|
|
10
|
+
config: BXRestNavvyPullApplicationConfig;
|
|
11
|
+
};
|
|
12
|
+
}
|
package/rest/base.d.ts
CHANGED
|
@@ -8,12 +8,12 @@ import { BXRestLog } from '../request/log';
|
|
|
8
8
|
import { BXRestSonetGroup } from '../request/sonet_group';
|
|
9
9
|
import { BXRestServer } from '../request/server';
|
|
10
10
|
import { BXRestDepartment } from '../request/department';
|
|
11
|
-
import { BXRestIm } from '../request/im';
|
|
12
11
|
import { BXRestApp } from '../request/app';
|
|
13
12
|
import { BXRestTimeMan } from '../request/timeman';
|
|
14
13
|
import { iBXRestProfileHttp } from '../typification/rest/profile';
|
|
15
14
|
import { iBXRestBatch, iBXRestParamBatch } from '../typification/rest/batch';
|
|
16
15
|
import { BXRestSocialNetWork } from '../request/socialnetwork';
|
|
16
|
+
import { BXRestPull } from '../request/pull';
|
|
17
17
|
export declare class BXRest {
|
|
18
18
|
private readonly http;
|
|
19
19
|
readonly user: BXRestUser;
|
|
@@ -26,10 +26,10 @@ export declare class BXRest {
|
|
|
26
26
|
readonly sonet_group: BXRestSonetGroup;
|
|
27
27
|
readonly server: BXRestServer;
|
|
28
28
|
readonly department: BXRestDepartment;
|
|
29
|
-
readonly im: BXRestIm;
|
|
30
29
|
readonly app: BXRestApp;
|
|
31
30
|
readonly timeMan: BXRestTimeMan;
|
|
32
31
|
readonly socialNetWork: BXRestSocialNetWork;
|
|
32
|
+
readonly pull: BXRestPull;
|
|
33
33
|
profile(): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<iBXRestProfileHttp> | undefined>;
|
|
34
34
|
batch<T>(param: iBXRestParamBatch): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<iBXRestBatch<T>> | undefined>;
|
|
35
35
|
}
|
package/rest/navvy.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BXRestMap } from '../map/rest';
|
|
2
|
+
import { Navvy } from '../services/navvy';
|
|
2
3
|
import { BXRestNavvyUser } from '../request-navvy/user';
|
|
3
4
|
import { BXRestNavvyLists } from '../request-navvy/lists';
|
|
4
5
|
import { BXRestNavvyTask } from '../request-navvy/task';
|
|
@@ -14,6 +15,7 @@ import { BXRestNavvyIm } from '../request-navvy/im';
|
|
|
14
15
|
import { BXRestNavvyApp } from '../request-navvy/app';
|
|
15
16
|
import { BXRestNavvyTimeMan } from '../request-navvy/timeman';
|
|
16
17
|
import { BXRestNavvySocialNetWork } from '../request-navvy/socialnetwork';
|
|
18
|
+
import { BXRestNavvyPull } from '../request-navvy/pull';
|
|
17
19
|
export declare class BXRestNavvy {
|
|
18
20
|
readonly user: BXRestNavvyUser;
|
|
19
21
|
readonly lists: BXRestNavvyLists;
|
|
@@ -30,6 +32,7 @@ export declare class BXRestNavvy {
|
|
|
30
32
|
readonly app: BXRestNavvyApp;
|
|
31
33
|
readonly timeMan: BXRestNavvyTimeMan;
|
|
32
34
|
readonly socialNetWork: BXRestNavvySocialNetWork;
|
|
33
|
-
|
|
35
|
+
readonly pull: BXRestNavvyPull;
|
|
36
|
+
readonly Navvy: Navvy;
|
|
34
37
|
profile(): import("../services/navvy/navvy-simple").NavvySimple<unknown, unknown, typeof BXRestMap.profile | undefined>;
|
|
35
38
|
}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { iBXRestFolderOrFile, iBXRestFolderOrFileBase } from './folder';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
export interface iBXRestParamDiskFileGet extends iBXRestParamDiskFile {
|
|
5
|
-
}
|
|
2
|
+
export type iBXRestParamDiskFileMarkDeleted = iBXRestParamDiskFile;
|
|
3
|
+
export type iBXRestParamDiskFileGet = iBXRestParamDiskFile;
|
|
6
4
|
export interface iBXRestParamDiskFile {
|
|
7
5
|
id: number;
|
|
8
6
|
}
|
|
9
7
|
export interface iBXRestDiskFile extends iBXRestFolderOrFile, iBXRestDiskFileBase {
|
|
10
8
|
SIZE: number;
|
|
9
|
+
FILE_ID: number;
|
|
11
10
|
}
|
|
12
11
|
export interface iBXRestDiskFileHttp extends iBXRestFolderOrFile, iBXRestDiskFileBase {
|
|
13
12
|
SIZE: string;
|
|
13
|
+
FILE_ID: string;
|
|
14
14
|
}
|
|
15
15
|
export interface iBXRestDiskFileBase extends iBXRestFolderOrFileBase {
|
|
16
16
|
DOWNLOAD_URL: string;
|
|
17
|
-
FILE_ID: number;
|
|
18
17
|
GLOBAL_CONTENT_VERSION: number;
|
|
19
18
|
TYPE: 'file';
|
|
20
19
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface iBXRestImChatGetParam {
|
|
2
|
+
/**
|
|
3
|
+
* Идентификатор сущности. Может быть использован для поиска чата и для легкого определения контекста в обработчиках событий:
|
|
4
|
+
*
|
|
5
|
+
* ONIMBOTMESSAGEADD
|
|
6
|
+
* ONIMBOTMESSAGEUPDATE
|
|
7
|
+
* ONIMBOTMESSAGEDELETE
|
|
8
|
+
*/
|
|
9
|
+
ENTITY_TYPE: string;
|
|
10
|
+
/**
|
|
11
|
+
* Числовой идентификатор сущности. Может быть использован для поиска чата и для легкого определения контекста в обработчиках событий:
|
|
12
|
+
*
|
|
13
|
+
* ONIMBOTMESSAGEADD
|
|
14
|
+
* ONIMBOTMESSAGEUPDATE
|
|
15
|
+
* ONIMBOTMESSAGEDELETE
|
|
16
|
+
*/
|
|
17
|
+
ENTITY_ID: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { iBXRestYesNo } from '../../base/yes-no';
|
|
2
|
+
export interface iBXRestImChatMuteParam {
|
|
3
|
+
/** Идентификатор чата */
|
|
4
|
+
CHAT_ID: number;
|
|
5
|
+
/**
|
|
6
|
+
* Варианты ключа MUTE: Y для отключения уведомлений и N для включения
|
|
7
|
+
*/
|
|
8
|
+
/** Идентификатор чата */
|
|
9
|
+
MUTE: iBXRestYesNo;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface iBXRestImChatUpdateColor {
|
|
2
|
+
/** Идентификатор чата */
|
|
3
|
+
CHAT_ID: number;
|
|
4
|
+
/**
|
|
5
|
+
* Цвет чата для мобильного приложения
|
|
6
|
+
* (RED, GREEN, MINT, LIGHT_BLUE, DARK_BLUE, PURPLE, AQUA, PINK, LIME, BROWN, AZURE, KHAKI, SAND, MARENGO, GRAY, GRAPHITE)
|
|
7
|
+
*/
|
|
8
|
+
COLOR: string;
|
|
9
|
+
}
|