@trash-streamers/contracts 1.1.45 → 1.1.47

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.
@@ -2,3 +2,4 @@ export * from "./auth";
2
2
  export * from "./media";
3
3
  export * from "./users";
4
4
  export * from "./video";
5
+ export * from "./messages";
@@ -18,3 +18,4 @@ __exportStar(require("./auth"), exports);
18
18
  __exportStar(require("./media"), exports);
19
19
  __exportStar(require("./users"), exports);
20
20
  __exportStar(require("./video"), exports);
21
+ __exportStar(require("./messages"), exports);
@@ -1 +1,2 @@
1
1
  export * from "./avatar-requsted.interface";
2
+ export * from "./video-downloaded";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./avatar-requsted.interface"), exports);
18
+ __exportStar(require("./video-downloaded"), exports);
@@ -1,5 +1,5 @@
1
1
  export interface VideoDownloadedEvent {
2
2
  videoId: string;
3
- location: string;
3
+ videoUrl: string;
4
4
  videoContainer: string;
5
5
  }
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,15 @@
1
+ export declare enum EncodingId {
2
+ "360p" = "360p",
3
+ "480p" = "480p",
4
+ "720p" = "720p",
5
+ "1080p" = "1080p",
6
+ "preview" = "preview",
7
+ "preview_360p" = "preview_360p",
8
+ "preview_480p" = "preview_480p",
9
+ "preview_720p" = "preview_720p",
10
+ "preview_1080p" = "preview_1080p",
11
+ "thumbnails" = "thumbnails"
12
+ }
13
+ export declare function isFullVideoFormat(encodingId: EncodingId): boolean;
14
+ export declare function isPreviewFormat(encodingId: EncodingId): boolean;
15
+ export declare function isThumbnailsFormat(encodingId: EncodingId): boolean;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EncodingId = void 0;
4
+ exports.isFullVideoFormat = isFullVideoFormat;
5
+ exports.isPreviewFormat = isPreviewFormat;
6
+ exports.isThumbnailsFormat = isThumbnailsFormat;
7
+ var EncodingId;
8
+ (function (EncodingId) {
9
+ EncodingId["360p"] = "360p";
10
+ EncodingId["480p"] = "480p";
11
+ EncodingId["720p"] = "720p";
12
+ EncodingId["1080p"] = "1080p";
13
+ EncodingId["preview"] = "preview";
14
+ EncodingId["preview_360p"] = "preview_360p";
15
+ EncodingId["preview_480p"] = "preview_480p";
16
+ EncodingId["preview_720p"] = "preview_720p";
17
+ EncodingId["preview_1080p"] = "preview_1080p";
18
+ EncodingId["thumbnails"] = "thumbnails";
19
+ })(EncodingId || (exports.EncodingId = EncodingId = {}));
20
+ function isFullVideoFormat(encodingId) {
21
+ return [
22
+ EncodingId["360p"],
23
+ EncodingId["480p"],
24
+ EncodingId["720p"],
25
+ EncodingId["1080p"],
26
+ ].includes(encodingId);
27
+ }
28
+ function isPreviewFormat(encodingId) {
29
+ return [
30
+ EncodingId["preview"],
31
+ EncodingId["preview_360p"],
32
+ EncodingId["preview_480p"],
33
+ EncodingId["preview_720p"],
34
+ EncodingId["preview_1080p"],
35
+ ].includes(encodingId);
36
+ }
37
+ function isThumbnailsFormat(encodingId) {
38
+ return encodingId === EncodingId.thumbnails;
39
+ }
@@ -0,0 +1 @@
1
+ export * from "./video-encoder";
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./video-downloaded"), exports);
17
+ __exportStar(require("./video-encoder"), exports);
@@ -0,0 +1,5 @@
1
+ export interface VideoEncoderEvent {
2
+ videoId: string;
3
+ location: string;
4
+ videoContainer: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1 @@
1
- export * from "./downloaded";
1
+ export * from "./downloader";
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./downloaded"), exports);
17
+ __exportStar(require("./downloader"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trash-streamers/contracts",
3
- "version": "1.1.45",
3
+ "version": "1.1.47",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "scripts": {
@@ -1 +0,0 @@
1
- export * from "./video-downloaded";