cmd-control-client-lib 3.0.79 → 3.0.82

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.
@@ -1,6 +1,7 @@
1
1
  export * from "./protocol/command/icommand";
2
2
  export * from "./protocol/command/action";
3
3
  export * from "./protocol/command/resultcode";
4
+ export * from "./protocol/chat";
4
5
  export * from "./protocol/backend";
5
6
  export * from "./protocol/channel";
6
7
  export * from "./protocol/channelinfo";
@@ -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
@@ -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
+ }
@@ -0,0 +1,10 @@
1
+ import { ACTION, ICOMMAND } from "../cmd-protocol";
2
+ export declare class CMDC_CEXIT implements ICOMMAND {
3
+ action: ACTION;
4
+ params: {
5
+ [key: string]: string;
6
+ chatID: string;
7
+ exitCode: string;
8
+ exitMessage?: string;
9
+ };
10
+ }
@@ -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,7 +1,7 @@
1
1
  import { ACTION } from "./command/action";
2
2
  import { baseParamsType } from "./command/baseparams";
3
3
  import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "./command/icommand";
4
- import { MediaFile, MediaMd5 } from "./message";
4
+ import { MediaFile, MediaMd5, MediaPrice } from "./message";
5
5
  export declare type MayHaveChannelId = {
6
6
  channelId?: string;
7
7
  };
@@ -18,7 +18,7 @@ export declare class CMDC_CMEDIA implements ICOMMAND {
18
18
  action: ACTION;
19
19
  params: MediaFile & MayHaveChannelId & {
20
20
  linkState?: ChannelMediaLinkState;
21
- };
21
+ } & MediaPrice;
22
22
  }
23
23
  /**
24
24
  * check for media already was uploaded.
@@ -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
@@ -154,7 +155,7 @@ export declare type MessageReadOnlyParams = {
154
155
  */
155
156
  export declare class CMDC_CMSG implements ICOMMAND {
156
157
  action: ACTION;
157
- params: MessageParams & MessageReadOnlyParams & IKeyMaybeValue;
158
+ params: MessageParams & MessageReadOnlyParams & MediaFile & MediaOffer & MayHaveChannelId & IKeyMaybeValue;
158
159
  }
159
160
  /**
160
161
  * 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.79",
4
+ "version": "3.0.82",
5
5
  "directories": {
6
6
  "lib": "./dist"
7
7
  },