@carlosdiazz/lottodiz-shared 2.8.2 → 2.8.4

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.
@@ -160,4 +160,5 @@ export declare class MethodValid {
160
160
  static YOUTUBE_FIND_LIVE_BROADCAST_ID: string;
161
161
  static YOUTUBE_RENEW_TOKEN_ALL_CHANNEL: string;
162
162
  static YOUTUBE_CREATE_ALL_BROADCAST: string;
163
+ static OBS_EXECUTE_ACTION: string;
163
164
  }
@@ -193,3 +193,5 @@ MethodValid.YOUTUBE_CREATE_MULTI_BROADCAST = "YOUTUBE_CREATE_MULTI_BROADCAST";
193
193
  MethodValid.YOUTUBE_FIND_LIVE_BROADCAST_ID = "YOUTUBE_FIND_LIVE_BROADCAST_ID";
194
194
  MethodValid.YOUTUBE_RENEW_TOKEN_ALL_CHANNEL = "YOUTUBE_RENEW_TOKEN_ALL_CHANNEL";
195
195
  MethodValid.YOUTUBE_CREATE_ALL_BROADCAST = "YOUTUBE_CREATE_ALL_BROADCAST";
196
+ //OBS
197
+ MethodValid.OBS_EXECUTE_ACTION = "OBS_EXECUTE_ACTION";
@@ -106,4 +106,5 @@ export declare class PermissionValid {
106
106
  static YOUTUBE_CREATE_BROADCAST: string;
107
107
  static YOUTUBE_CREATE_MULTI_BROADCAST: string;
108
108
  static YOUTUBE_FIND_LIVE_BROADCAST_ID: string;
109
+ static OBS_EXECUTE_ACTION: string;
109
110
  }
@@ -137,3 +137,5 @@ PermissionValid.CONFIG_OBS_DELETE = "CONFIG_OBS_DELETE";
137
137
  PermissionValid.YOUTUBE_CREATE_BROADCAST = "YOUTUBE_CREATE_BROADCAST";
138
138
  PermissionValid.YOUTUBE_CREATE_MULTI_BROADCAST = "YOUTUBE_CREATE_MULTI_BROADCAST";
139
139
  PermissionValid.YOUTUBE_FIND_LIVE_BROADCAST_ID = "YOUTUBE_FIND_LIVE_BROADCAST_ID";
140
+ //OBS
141
+ PermissionValid.OBS_EXECUTE_ACTION = "OBS_EXECUTE_ACTION";
@@ -1,21 +1,29 @@
1
1
  import { TemplateVideoInterface } from "../template_video";
2
2
  export interface ConfigObsInterface {
3
3
  id: number;
4
- name: string;
4
+ name?: string;
5
5
  preference: number;
6
6
  active: boolean;
7
7
  hour: string;
8
8
  action: string;
9
+ value_volumen?: number;
10
+ key_volumen?: string;
11
+ key_stream?: string;
12
+ key_scene?: string;
9
13
  template_video: TemplateVideoInterface;
10
14
  create_at: Date;
11
15
  update_at: Date;
12
16
  }
13
17
  export interface ConfigObsFormInterface {
14
18
  id: number;
15
- name: string;
19
+ name?: string;
16
20
  preference: number;
17
21
  active: boolean;
18
22
  hour: string;
19
23
  action: string;
24
+ value_volumen?: number;
25
+ key_volumen?: string;
26
+ key_stream?: string;
27
+ key_scene?: string;
20
28
  id_template_video: number;
21
29
  }
@@ -1,7 +1,11 @@
1
1
  export interface CreateConfigObsInterface {
2
- name: string;
2
+ name?: string;
3
3
  preference?: number;
4
4
  active?: boolean;
5
+ value_volumen?: number;
6
+ key_volumen?: string;
7
+ key_stream?: string;
8
+ key_scene?: string;
5
9
  hour: string;
6
10
  action: string;
7
11
  id_template_video: number;
@@ -6,4 +6,8 @@ export interface UpdateConfigObsInterface {
6
6
  hour?: string;
7
7
  action?: string;
8
8
  id_template_video?: number;
9
+ value_volumen?: number;
10
+ key_volumen?: string;
11
+ key_stream?: string;
12
+ key_scene?: string;
9
13
  }
@@ -1,5 +1,7 @@
1
1
  export * from "./auth";
2
+ export * from "./channel_yt";
2
3
  export * from "./common";
4
+ export * from "./config_obs";
3
5
  export * from "./country";
4
6
  export * from "./draw_day";
5
7
  export * from "./draw_number";
@@ -10,6 +12,7 @@ export * from "./draw_webscraping";
10
12
  export * from "./draw_youtube";
11
13
  export * from "./draw";
12
14
  export * from "./lottery";
15
+ export * from "./obs";
13
16
  export * from "./page_webscraping";
14
17
  export * from "./permission";
15
18
  export * from "./platform_ads";
@@ -23,9 +26,7 @@ export * from "./template_draw_webscraping";
23
26
  export * from "./template_draw";
24
27
  export * from "./template_page_webscraping";
25
28
  export * from "./template_result";
29
+ export * from "./template_video";
26
30
  export * from "./user";
27
31
  export * from "./webscraping";
28
- export * from "./channel_yt";
29
- export * from "./template_video";
30
- export * from "./config_obs";
31
32
  export * from "./youtube";
@@ -15,7 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./auth"), exports);
18
+ __exportStar(require("./channel_yt"), exports);
18
19
  __exportStar(require("./common"), exports);
20
+ __exportStar(require("./config_obs"), exports);
19
21
  __exportStar(require("./country"), exports);
20
22
  __exportStar(require("./draw_day"), exports);
21
23
  __exportStar(require("./draw_number"), exports);
@@ -26,6 +28,7 @@ __exportStar(require("./draw_webscraping"), exports);
26
28
  __exportStar(require("./draw_youtube"), exports);
27
29
  __exportStar(require("./draw"), exports);
28
30
  __exportStar(require("./lottery"), exports);
31
+ __exportStar(require("./obs"), exports);
29
32
  __exportStar(require("./page_webscraping"), exports);
30
33
  __exportStar(require("./permission"), exports);
31
34
  __exportStar(require("./platform_ads"), exports);
@@ -39,9 +42,7 @@ __exportStar(require("./template_draw_webscraping"), exports);
39
42
  __exportStar(require("./template_draw"), exports);
40
43
  __exportStar(require("./template_page_webscraping"), exports);
41
44
  __exportStar(require("./template_result"), exports);
45
+ __exportStar(require("./template_video"), exports);
42
46
  __exportStar(require("./user"), exports);
43
47
  __exportStar(require("./webscraping"), exports);
44
- __exportStar(require("./channel_yt"), exports);
45
- __exportStar(require("./template_video"), exports);
46
- __exportStar(require("./config_obs"), exports);
47
48
  __exportStar(require("./youtube"), exports);
@@ -0,0 +1,3 @@
1
+ export * from './obs.controller';
2
+ export * from './obs.resolver';
3
+ export * from './obs.service';
@@ -0,0 +1,19 @@
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("./obs.controller"), exports);
18
+ __exportStar(require("./obs.resolver"), exports);
19
+ __exportStar(require("./obs.service"), exports);
@@ -0,0 +1,5 @@
1
+ import { ResponseInterface } from "../common";
2
+ export interface ObsControllerInterface {
3
+ verify_obs(): Promise<ResponseInterface>;
4
+ execute_action(id_config_obs: number): Promise<ResponseInterface>;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { ResponseInterface } from "../common";
2
+ export interface ObsResolverInterface {
3
+ execute_action(id_config_obs: number): Promise<ResponseInterface>;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { ResponseInterface } from "../common";
2
+ export interface ObsServiceInterface {
3
+ startStream(key: string): Promise<ResponseInterface>;
4
+ stopStream(): Promise<ResponseInterface>;
5
+ showScene(scene_name: string): Promise<ResponseInterface>;
6
+ changeVolumen(key_volumen: string, value_volumen: number): Promise<ResponseInterface>;
7
+ verify_obs(): Promise<ResponseInterface>;
8
+ execute_action(id_config_obs: number): Promise<ResponseInterface>;
9
+ }
@@ -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.8.2",
3
+ "version": "2.8.4",
4
4
  "description": "Shared Dtos, models, constants and utils",
5
5
  "main": "dist/index.js",
6
6
  "private": false,