cmd-control-client-lib 3.0.38 → 3.0.42

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,5 +1,6 @@
1
1
  import { ACTION, baseParamsType, IBACKENDPAYLOAD, ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../cmd-protocol";
2
2
  import { channelIdType } from "./channel";
3
+ import { MayHaveChannelId } from "./media";
3
4
  import { Currency, EnumTicketType, MediaFile, MediaPrice, MessageId } from "./message";
4
5
  export declare type PriceInstruction = {
5
6
  min: string;
@@ -27,7 +28,7 @@ export declare type MediaPrices = {
27
28
  */
28
29
  export declare class CMDP_SMEDIAGETPRICES implements ICOMMAND {
29
30
  action: ACTION;
30
- params: baseParamsType & channelIdType;
31
+ params: baseParamsType & MayHaveChannelId;
31
32
  }
32
33
  /**
33
34
  * Response command for CMDP_SMEDIAGETPRICES
@@ -5,7 +5,7 @@ import { MediaMd5, MediaOffer, Ticket } from "./message";
5
5
  declare type TicketOrMediaMd5 = Ticket | MediaMd5;
6
6
  /**
7
7
  * Frontent command for offer media.
8
- * the Ticket.mediaMd5 should be MD5(32 chars) of new GUID or empty (will be set by server)
8
+ * the Ticket.mediaMd5 should be not set, will be set by server.
9
9
  */
10
10
  export declare class CMDP_SOPENMEDIAOFFER implements ICOMMAND {
11
11
  action: ACTION;
@@ -22,7 +22,7 @@ export declare class CMDP_SOPENMEDIAOFFER_PRESPONSE extends CMDP_SOPENMEDIAOFFER
22
22
  values: IKeyMaybeValue;
23
23
  }
24
24
  /**
25
- * Frontent command for close of offer.
25
+ * Frontend command for close of offer.
26
26
  */
27
27
  export declare class CMDP_SCLOSEMEDIAOFFER implements ICOMMAND {
28
28
  action: ACTION;
@@ -8,6 +8,7 @@ export declare enum UploadStep {
8
8
  lateaccept = "lateaccept",
9
9
  informuploaded = "informuploaded",
10
10
  transcoded = "transcoded",
11
+ transcodeerror = "transcodeError",
11
12
  error = "error"
12
13
  }
13
14
  /** internal use only, may be changed without announce*/
@@ -46,7 +47,10 @@ export declare class CMDP_SUPLOADMEDIA implements ICOMMAND {
46
47
  export declare class CMDP_SUPLOADMEDIA_RESPONSE extends CMDP_SUPLOADMEDIA implements IRESPONSE, IBACKENDPAYLOAD {
47
48
  result: RESULT;
48
49
  commands: ICOMMAND[];
49
- values: IKeyMaybeValue;
50
+ values: IKeyMaybeValue & {
51
+ /** channels skipped from upload if media already was purchased and you try to make a new offer */
52
+ skippedChannels?: string;
53
+ };
50
54
  /** backendpayload */
51
55
  payload?: unknown;
52
56
  }
@@ -32,7 +32,8 @@ export declare enum EnumMediaType {
32
32
  export declare enum EnumMediaState {
33
33
  OK = "ok",
34
34
  TRANSCODING = "transcode",
35
- ERROR = "error"
35
+ ERROR = "error",
36
+ TRANSCODING_ERROR = "transcodeError"
36
37
  }
37
38
  export declare enum EnumTicketType {
38
39
  SingleC2C = "singleC2C"
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.38",
4
+ "version": "3.0.42",
5
5
  "directories": {
6
6
  "lib": "./dist"
7
7
  },