@carlosdiazz/lottodiz-shared 2.7.0 → 2.7.1

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.
@@ -155,4 +155,7 @@ export declare class MethodValid {
155
155
  static CONFIG_OBS_FIND_ALL: string;
156
156
  static CONFIG_OBS_UPDATE: string;
157
157
  static CONFIG_OBS_REMOVE: string;
158
+ static CREATE_BROADCAST: string;
159
+ static CREATE_MULTI_BROADCAST: string;
160
+ static FIND_LIVE_BROADCAST_ID: string;
158
161
  }
@@ -187,3 +187,7 @@ MethodValid.CONFIG_OBS_FIND_ONE = "CONFIG_OBS_FIND_ONE";
187
187
  MethodValid.CONFIG_OBS_FIND_ALL = "CONFIG_OBS_FIND_ALL";
188
188
  MethodValid.CONFIG_OBS_UPDATE = "CONFIG_OBS_UPDATE";
189
189
  MethodValid.CONFIG_OBS_REMOVE = "CONFIG_OBS_REMOVE";
190
+ //YOUTUBE
191
+ MethodValid.CREATE_BROADCAST = "CREATE_BROADCAST";
192
+ MethodValid.CREATE_MULTI_BROADCAST = "CREATE_MULTI_BROADCAST";
193
+ MethodValid.FIND_LIVE_BROADCAST_ID = "FIND_LIVE_BROADCAST_ID";
@@ -103,4 +103,7 @@ export declare class PermissionValid {
103
103
  static CONFIG_OBS_VIEW: string;
104
104
  static CONFIG_OBS_UPDATE: string;
105
105
  static CONFIG_OBS_DELETE: string;
106
+ static CREATE_BROADCAST: string;
107
+ static CREATE_MULTI_BROADCAST: string;
108
+ static FIND_LIVE_BROADCAST_ID: string;
106
109
  }
@@ -133,3 +133,7 @@ PermissionValid.CONFIG_OBS_CREATE = "CONFIG_OBS_CREATE";
133
133
  PermissionValid.CONFIG_OBS_VIEW = "CONFIG_OBS_VIEW";
134
134
  PermissionValid.CONFIG_OBS_UPDATE = "CONFIG_OBS_UPDATE";
135
135
  PermissionValid.CONFIG_OBS_DELETE = "CONFIG_OBS_DELETE";
136
+ //YOUTUBE
137
+ PermissionValid.CREATE_BROADCAST = "CREATE_BROADCAST";
138
+ PermissionValid.CREATE_MULTI_BROADCAST = "CREATE_MULTI_BROADCAST";
139
+ PermissionValid.FIND_LIVE_BROADCAST_ID = "FIND_LIVE_BROADCAST_ID";
@@ -0,0 +1,2 @@
1
+ export * from './youtube.dto';
2
+ export * from './youtube.service';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./youtube.dto"), exports);
18
+ __exportStar(require("./youtube.service"), exports);
@@ -0,0 +1,7 @@
1
+ import { ResponseInterface } from "../common";
2
+ import { CreateBroadcastDto, CreateMultiBroadcastDto } from "./youtube.dto";
3
+ export interface YoutubeControllerInterface {
4
+ create_broadcast(dto: CreateBroadcastDto): Promise<ResponseInterface>;
5
+ create_multi_broadcast(dto: CreateMultiBroadcastDto): Promise<ResponseInterface>;
6
+ findLiveStreamId(id_channel: number): Promise<ResponseInterface>;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export interface CreateBroadcastDto {
2
+ id_canal: number;
3
+ id_template_video: number;
4
+ }
5
+ export interface CreateMultiBroadcastDto {
6
+ id_canal: number;
7
+ id_day: number;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { ResponseInterface } from "../common";
2
+ import { UserInterface } from "../user";
3
+ import { CreateBroadcastDto, CreateMultiBroadcastDto } from "./youtube.dto";
4
+ export interface YoutubeControllerInterface {
5
+ create_broadcast(dto: CreateBroadcastDto, user?: UserInterface): Promise<ResponseInterface>;
6
+ create_multi_broadcast(dto: CreateMultiBroadcastDto, user?: UserInterface): Promise<ResponseInterface>;
7
+ findLiveStreamId(id_channel: number, user?: UserInterface): Promise<ResponseInterface>;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { ResponseInterface } from "../common";
2
+ import { CreateBroadcastDto, CreateMultiBroadcastDto } from "./youtube.dto";
3
+ export interface YoutubeServiceInterface {
4
+ create_broadcast(dto: CreateBroadcastDto): Promise<ResponseInterface>;
5
+ create_multi_broadcast(dto: CreateMultiBroadcastDto): Promise<ResponseInterface>;
6
+ findLiveStreamId(id_channel: number): Promise<ResponseInterface>;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlosdiazz/lottodiz-shared",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "Shared Dtos, models, constants and utils",
5
5
  "main": "dist/index.js",
6
6
  "private": false,