cmd-control-client-lib 3.0.81 → 3.0.84

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.
@@ -185,6 +185,8 @@ export declare type getChannelsParamsType = {
185
185
  filterCanReceiveTicket?: EnumChannelFilterValues;
186
186
  /** media purchasing filter */
187
187
  filterCanPurchaseMedia?: EnumChannelFilterValues;
188
+ /** filter by group */
189
+ filterGroupId?: string;
188
190
  };
189
191
  /**
190
192
  * Query for ChannelList
@@ -320,6 +322,8 @@ export declare type channelSummaryInfo = {
320
322
  unseenWithoutArchived: string;
321
323
  /** number of unanswered channels */
322
324
  unanswered: string;
325
+ /** number of unanswered channels */
326
+ unansweredWithoutArchived: string;
323
327
  /** last time of incoming message */
324
328
  lastTimeIn: string;
325
329
  /** last time of outgoing message */
@@ -0,0 +1,72 @@
1
+ import { CMDC_CHANNEL } from "./channel";
2
+ import { ACTION } from "./command/action";
3
+ import { baseParamsType } from "./command/baseparams";
4
+ import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "./command/icommand";
5
+ export declare class CMDC_GROUP implements ICOMMAND {
6
+ action: ACTION;
7
+ params: {
8
+ groupId: string;
9
+ groupName: string;
10
+ groupCreated: string;
11
+ groupChannels: string;
12
+ };
13
+ }
14
+ export declare class CMDP_SGETGROUPS implements ICOMMAND {
15
+ action: ACTION;
16
+ params: baseParamsType;
17
+ }
18
+ export declare class CMDP_SGETGROUPS_RESPONSE extends CMDP_SGETGROUPS implements IRESPONSE {
19
+ result: RESULT;
20
+ commands: CMDC_GROUP[];
21
+ values: IKeyMaybeValue;
22
+ }
23
+ export declare class CMDP_SADDGROUP implements ICOMMAND {
24
+ action: ACTION;
25
+ params: baseParamsType & {
26
+ groupName: string;
27
+ };
28
+ }
29
+ export declare class CMDP_SADDGROUP_RESPONSE extends CMDP_SADDGROUP {
30
+ commands: CMDC_GROUP;
31
+ values: IKeyMaybeValue;
32
+ }
33
+ export declare class CMDP_SDELGROUP implements ICOMMAND {
34
+ action: ACTION;
35
+ params: baseParamsType & {
36
+ groupId: string;
37
+ };
38
+ }
39
+ export declare class CMDP_SDELGROUP_RESPONSE extends CMDP_SDELGROUP {
40
+ commands: ICOMMAND[];
41
+ values: IKeyMaybeValue;
42
+ }
43
+ export declare class CMDP_SGETGROUPCHANNELS implements ICOMMAND {
44
+ action: ACTION;
45
+ params: baseParamsType;
46
+ }
47
+ export declare class CMDP_SGETGROUPCHANNELS_RESPONSE extends CMDP_SGETGROUPCHANNELS implements IRESPONSE {
48
+ result: RESULT;
49
+ commands: CMDC_CHANNEL[];
50
+ values: IKeyMaybeValue;
51
+ }
52
+ export declare class CMDP_SADDCHANNELTOGROUP implements ICOMMAND {
53
+ action: ACTION;
54
+ params: baseParamsType & {
55
+ groupName: string;
56
+ };
57
+ }
58
+ export declare class CMDP_SADDCHANNELTOGROUP_RESPONSE extends CMDP_SADDCHANNELTOGROUP {
59
+ commands: ICOMMAND[];
60
+ values: IKeyMaybeValue;
61
+ }
62
+ export declare class CMDP_SDELLCHANNELFROMGROUP implements ICOMMAND {
63
+ action: ACTION;
64
+ params: baseParamsType & {
65
+ groupId: string;
66
+ channelId: string;
67
+ };
68
+ }
69
+ export declare class CMDP_SDELLCHANNELFROMGROUP_RESPONSE extends CMDP_SDELLCHANNELFROMGROUP {
70
+ commands: ICOMMAND[];
71
+ values: IKeyMaybeValue;
72
+ }
@@ -127,5 +127,12 @@ export declare enum ACTION {
127
127
  CMDP_SGETMSETTINGS = "CMDP_SGETMSETTINGS",
128
128
  CMDP_SSETMSETTING = "CMDP_SSETMSETTING",
129
129
  CMDC_MSETTINGS = "CMDC_MSETTINGS",
130
- CMDP_SDELETE_USER = "CMDP_SDELETE_USER"
130
+ CMDP_SDELETE_USER = "CMDP_SDELETE_USER",
131
+ CMDC_GROUP = "CMDC_GROUP",
132
+ CMDP_SGETGROUPS = "CMDP_SGETGROUPS",
133
+ CMDP_SADDGROUP = "CMDP_SADDGROUP",
134
+ CMDP_SDELGROUP = "CMDP_SDELGROUP",
135
+ CMDP_SGETGROUPCHANNELS = "CMDP_SGETGROUPCHANNELS",
136
+ CMDP_SADDCHANNELTOGROUP = "CMDP_SADDCHANNELTOGROUP",
137
+ CMDP_SDELLCHANNELFROMGROUP = "CMDP_SDELLCHANNELFROMGROUP"
131
138
  }
@@ -0,0 +1,25 @@
1
+ import { ACTION, ICOMMAND } from "../../cmd-protocol";
2
+ import { IKeyMaybeValue } from "../command/icommand";
3
+ export declare class CMDC_CINIT_LIVE implements ICOMMAND {
4
+ action: ACTION;
5
+ params: IKeyMaybeValue & {
6
+ login?: string;
7
+ lang?: string;
8
+ fsk?: string;
9
+ canBan?: string;
10
+ admin?: string;
11
+ channelId?: string;
12
+ canDiscount?: string;
13
+ showAdmin?: string;
14
+ jsonStats?: string;
15
+ voyeur2single?: string;
16
+ canSingle?: string;
17
+ hasDiscount?: string;
18
+ ticketId?: string;
19
+ canCam2Cam?: string;
20
+ isLobby?: string;
21
+ isPublicText?: string;
22
+ infoMessage?: string;
23
+ imgSrc?: string;
24
+ };
25
+ }
@@ -1,6 +1,6 @@
1
- import { ACTION, baseParamsType, ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../cmd-protocol";
1
+ import { ACTION, baseParamsType, ChannelMediaLinkState, ICOMMAND, IKeyMaybeValue, IRESPONSE, MayHaveChannelId, RESULT } from "../cmd-protocol";
2
2
  import { channelIdType } from "./channel";
3
- import { CMDC_CMSG, MediaFile, MediaPrice, MessageId } from "./message";
3
+ import { CMDC_CMSG, MediaFile, MediaPrice, MessageId, MessageParams, MessageReadOnlyParams } from "./message";
4
4
  /**
5
5
  * Frontent command for media purchase. Will be forwarded to users pool B2B backend with additional infos
6
6
  */
@@ -27,4 +27,7 @@ export declare class CMDP_SMEDIAPURCHASE_PRESPONSE extends CMDP_SMEDIAPURCHASE i
27
27
  */
28
28
  export declare class CMDC_MEDIAPURCHASED extends CMDC_CMSG {
29
29
  action: ACTION;
30
+ params: MessageParams & MessageReadOnlyParams & MediaFile & MediaPrice & MayHaveChannelId & {
31
+ linkState?: ChannelMediaLinkState;
32
+ } & IKeyMaybeValue;
30
33
  }
@@ -5,6 +5,7 @@ import { IBACKENDPAYLOAD } from "./backend";
5
5
  import { ACTION } from "./command/action";
6
6
  import { baseParamsType } from "./command/baseparams";
7
7
  import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "./command/icommand";
8
+ import { MayHaveChannelId } from "./media";
8
9
  export declare enum MessageFlags {
9
10
  "canDeleted" = 0,
10
11
  "isDeleted" = 1
@@ -68,6 +69,7 @@ export declare type MessageParams = IMayHaveChannelId & {
68
69
  currency?: EnumCurrency;
69
70
  link?: string;
70
71
  clientData?: string;
72
+ isBulk?: EnumBooleanStringified;
71
73
  };
72
74
  export declare type MediaMd5 = {
73
75
  mediaMd5?: string;
@@ -154,7 +156,7 @@ export declare type MessageReadOnlyParams = {
154
156
  */
155
157
  export declare class CMDC_CMSG implements ICOMMAND {
156
158
  action: ACTION;
157
- params: MessageParams & MessageReadOnlyParams & IKeyMaybeValue;
159
+ params: MessageParams & MessageReadOnlyParams & MediaFile & MediaOffer & MayHaveChannelId & IKeyMaybeValue;
158
160
  }
159
161
  /**
160
162
  * send message
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cmd-control-client-lib",
3
3
  "description": "Cmd-Client-Library",
4
- "version": "3.0.81",
4
+ "version": "3.0.84",
5
5
  "directories": {
6
6
  "lib": "./dist"
7
7
  },