@carlosdiazz/lottodiz-shared 2.6.6 → 2.6.8

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.
Files changed (52) hide show
  1. package/dist/enum/method-valid.d.ts +10 -0
  2. package/dist/enum/method-valid.js +12 -0
  3. package/dist/enum/permission-valid.d.ts +8 -0
  4. package/dist/enum/permission-valid.js +10 -0
  5. package/dist/models/channel_yt/channel_yt.base.d.ts +4 -2
  6. package/dist/models/channel_yt/channel_yt.controller.d.ts +1 -1
  7. package/dist/models/channel_yt/channel_yt.datasource.d.ts +1 -1
  8. package/dist/models/channel_yt/channel_yt.resolver.d.ts +1 -1
  9. package/dist/models/channel_yt/channel_yt.service.d.ts +1 -1
  10. package/dist/models/channel_yt/create-template_video.base.d.ts +6 -0
  11. package/dist/models/channel_yt/create-template_video.base.js +2 -0
  12. package/dist/models/channel_yt/index.d.ts +1 -1
  13. package/dist/models/channel_yt/index.js +1 -1
  14. package/dist/models/config_obs/config_obs.base.d.ts +21 -0
  15. package/dist/models/config_obs/config_obs.base.js +2 -0
  16. package/dist/models/config_obs/config_obs.controller.d.ts +12 -0
  17. package/dist/models/config_obs/config_obs.controller.js +2 -0
  18. package/dist/models/config_obs/config_obs.datasource.d.ts +12 -0
  19. package/dist/models/config_obs/config_obs.datasource.js +2 -0
  20. package/dist/models/config_obs/config_obs.resolver.d.ts +13 -0
  21. package/dist/models/config_obs/config_obs.resolver.js +2 -0
  22. package/dist/models/config_obs/config_obs.service.d.ts +12 -0
  23. package/dist/models/config_obs/config_obs.service.js +2 -0
  24. package/dist/models/config_obs/create-config_obs.base.d.ts +8 -0
  25. package/dist/models/config_obs/create-config_obs.base.js +2 -0
  26. package/dist/models/config_obs/index.d.ts +8 -0
  27. package/dist/models/config_obs/index.js +24 -0
  28. package/dist/models/config_obs/response-config_obs.base.d.ts +5 -0
  29. package/dist/models/config_obs/response-config_obs.base.js +2 -0
  30. package/dist/models/config_obs/update-config_obs.base.d.ts +9 -0
  31. package/dist/models/config_obs/update-config_obs.base.js +2 -0
  32. package/dist/models/index.d.ts +2 -0
  33. package/dist/models/index.js +2 -0
  34. package/dist/models/template_video/create-channel_yt.base.d.ts +11 -0
  35. package/dist/models/template_video/create-channel_yt.base.js +2 -0
  36. package/dist/models/template_video/index.d.ts +8 -0
  37. package/dist/models/template_video/index.js +24 -0
  38. package/dist/models/template_video/response-template_video.base.d.ts +5 -0
  39. package/dist/models/template_video/response-template_video.base.js +2 -0
  40. package/dist/models/template_video/template_video.base.d.ts +29 -0
  41. package/dist/models/template_video/template_video.base.js +2 -0
  42. package/dist/models/template_video/template_video.controller.d.ts +12 -0
  43. package/dist/models/template_video/template_video.controller.js +2 -0
  44. package/dist/models/template_video/template_video.datasource.d.ts +12 -0
  45. package/dist/models/template_video/template_video.datasource.js +2 -0
  46. package/dist/models/template_video/template_video.resolver.d.ts +13 -0
  47. package/dist/models/template_video/template_video.resolver.js +2 -0
  48. package/dist/models/template_video/template_video.service.d.ts +12 -0
  49. package/dist/models/template_video/template_video.service.js +2 -0
  50. package/dist/models/template_video/update-channel_yt.base.d.ts +12 -0
  51. package/dist/models/template_video/update-channel_yt.base.js +2 -0
  52. package/package.json +1 -1
@@ -145,4 +145,14 @@ export declare class MethodValid {
145
145
  static CHANNEL_YT_FIND_ALL: string;
146
146
  static CHANNEL_YT_UPDATE: string;
147
147
  static CHANNEL_YT_REMOVE: string;
148
+ static TEMPLATE_VIDEO_CREATE: string;
149
+ static TEMPLATE_VIDEO_FIND_ONE: string;
150
+ static TEMPLATE_VIDEO_FIND_ALL: string;
151
+ static TEMPLATE_VIDEO_UPDATE: string;
152
+ static TEMPLATE_VIDEO_REMOVE: string;
153
+ static CONFIG_OBS_CREATE: string;
154
+ static CONFIG_OBS_FIND_ONE: string;
155
+ static CONFIG_OBS_FIND_ALL: string;
156
+ static CONFIG_OBS_UPDATE: string;
157
+ static CONFIG_OBS_REMOVE: string;
148
158
  }
@@ -175,3 +175,15 @@ MethodValid.CHANNEL_YT_FIND_ONE = "CHANNEL_YT_FIND_ONE";
175
175
  MethodValid.CHANNEL_YT_FIND_ALL = "CHANNEL_YT_FIND_ALL";
176
176
  MethodValid.CHANNEL_YT_UPDATE = "CHANNEL_YT_UPDATE";
177
177
  MethodValid.CHANNEL_YT_REMOVE = "CHANNEL_YT_REMOVE";
178
+ //TEMPLATE VIDEO
179
+ MethodValid.TEMPLATE_VIDEO_CREATE = "TEMPLATE_VIDEO_CREATE";
180
+ MethodValid.TEMPLATE_VIDEO_FIND_ONE = "TEMPLATE_VIDEO_FIND_ONE";
181
+ MethodValid.TEMPLATE_VIDEO_FIND_ALL = "TEMPLATE_VIDEO_FIND_ALL";
182
+ MethodValid.TEMPLATE_VIDEO_UPDATE = "TEMPLATE_VIDEO_UPDATE";
183
+ MethodValid.TEMPLATE_VIDEO_REMOVE = "TEMPLATE_VIDEO_REMOVE";
184
+ //CONFIG OBS
185
+ MethodValid.CONFIG_OBS_CREATE = "CONFIG_OBS_CREATE";
186
+ MethodValid.CONFIG_OBS_FIND_ONE = "CONFIG_OBS_FIND_ONE";
187
+ MethodValid.CONFIG_OBS_FIND_ALL = "CONFIG_OBS_FIND_ALL";
188
+ MethodValid.CONFIG_OBS_UPDATE = "CONFIG_OBS_UPDATE";
189
+ MethodValid.CONFIG_OBS_REMOVE = "CONFIG_OBS_REMOVE";
@@ -95,4 +95,12 @@ export declare class PermissionValid {
95
95
  static CHANNEL_YT_VIEW: string;
96
96
  static CHANNEL_YT_UPDATE: string;
97
97
  static CHANNEL_YT_DELETE: string;
98
+ static TEMPLATE_VIDEO_CREATE: string;
99
+ static TEMPLATE_VIDEO_VIEW: string;
100
+ static TEMPLATE_VIDEO_UPDATE: string;
101
+ static TEMPLATE_VIDEO_DELETE: string;
102
+ static CONFIG_OBS_CREATE: string;
103
+ static CONFIG_OBS_VIEW: string;
104
+ static CONFIG_OBS_UPDATE: string;
105
+ static CONFIG_OBS_DELETE: string;
98
106
  }
@@ -123,3 +123,13 @@ PermissionValid.CHANNEL_YT_CREATE = "CHANNEL_YT_CREATE";
123
123
  PermissionValid.CHANNEL_YT_VIEW = "CHANNEL_YT_VIEW";
124
124
  PermissionValid.CHANNEL_YT_UPDATE = "CHANNEL_YT_UPDATE";
125
125
  PermissionValid.CHANNEL_YT_DELETE = "CHANNEL_YT_DELETE";
126
+ //TEMPLATE VIDEO
127
+ PermissionValid.TEMPLATE_VIDEO_CREATE = "TEMPLATE_VIDEO_CREATE";
128
+ PermissionValid.TEMPLATE_VIDEO_VIEW = "TEMPLATE_VIDEO_VIEW";
129
+ PermissionValid.TEMPLATE_VIDEO_UPDATE = "TEMPLATE_VIDEO_UPDATE";
130
+ PermissionValid.TEMPLATE_VIDEO_DELETE = "TEMPLATE_VIDEO_DELETE";
131
+ //CONFIG OBS
132
+ PermissionValid.CONFIG_OBS_CREATE = "CONFIG_OBS_CREATE";
133
+ PermissionValid.CONFIG_OBS_VIEW = "CONFIG_OBS_VIEW";
134
+ PermissionValid.CONFIG_OBS_UPDATE = "CONFIG_OBS_UPDATE";
135
+ PermissionValid.CONFIG_OBS_DELETE = "CONFIG_OBS_DELETE";
@@ -1,9 +1,11 @@
1
+ import { TemplateVideoInterface } from "../template_video";
1
2
  export interface ChannelYtInterface {
2
3
  id: number;
3
4
  name: string;
4
5
  preference: number;
5
6
  active: boolean;
6
- imagen: string;
7
+ imagen?: string;
8
+ template_video?: TemplateVideoInterface[];
7
9
  create_at: Date;
8
10
  update_at: Date;
9
11
  }
@@ -12,5 +14,5 @@ export interface ChannelYtFormInterface {
12
14
  name: string;
13
15
  preference: number;
14
16
  active: boolean;
15
- imagen: string;
17
+ imagen?: string;
16
18
  }
@@ -1,6 +1,6 @@
1
1
  import { PaginationInterface, ResponseInterface } from "../common";
2
2
  import { ChannelYtInterface } from "./channel_yt.base";
3
- import { CreateChanelYtInterface } from "./create-channel_yt.base";
3
+ import { CreateChanelYtInterface } from "./create-template_video.base";
4
4
  import { ResponseChannelYtInterface } from "./response-channel_yt.base";
5
5
  import { UpdateChanelYtInterface } from "./update-channel_yt.base";
6
6
  export interface ChannelYtControllerInterface {
@@ -1,6 +1,6 @@
1
1
  import { PaginationInterface, ResponseInterface } from "../common";
2
2
  import { ChannelYtInterface } from "./channel_yt.base";
3
- import { CreateChanelYtInterface } from "./create-channel_yt.base";
3
+ import { CreateChanelYtInterface } from "./create-template_video.base";
4
4
  import { ResponseChannelYtInterface } from "./response-channel_yt.base";
5
5
  import { UpdateChanelYtInterface } from "./update-channel_yt.base";
6
6
  export interface ChannelYtDatasourceInterface {
@@ -1,7 +1,7 @@
1
1
  import { PaginationInterface, ResponseInterface } from "../common";
2
2
  import { UserInterface } from "../user";
3
3
  import { ChannelYtInterface } from "./channel_yt.base";
4
- import { CreateChanelYtInterface } from "./create-channel_yt.base";
4
+ import { CreateChanelYtInterface } from "./create-template_video.base";
5
5
  import { ResponseChannelYtInterface } from "./response-channel_yt.base";
6
6
  import { UpdateChanelYtInterface } from "./update-channel_yt.base";
7
7
  export interface ChannelYtResolverInterface {
@@ -1,6 +1,6 @@
1
1
  import { PaginationInterface, ResponseInterface } from "../common";
2
2
  import { ChannelYtInterface } from "./channel_yt.base";
3
- import { CreateChanelYtInterface } from "./create-channel_yt.base";
3
+ import { CreateChanelYtInterface } from "./create-template_video.base";
4
4
  import { ResponseChannelYtInterface } from "./response-channel_yt.base";
5
5
  import { UpdateChanelYtInterface } from "./update-channel_yt.base";
6
6
  export interface ChannelYtServiceInterface {
@@ -0,0 +1,6 @@
1
+ export interface CreateChanelYtInterface {
2
+ name: string;
3
+ preference?: number;
4
+ active?: boolean;
5
+ imagen?: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,6 +3,6 @@ export * from "./channel_yt.controller";
3
3
  export * from "./channel_yt.datasource";
4
4
  export * from "./channel_yt.resolver";
5
5
  export * from "./channel_yt.service";
6
- export * from "./create-channel_yt.base";
6
+ export * from "./create-template_video.base";
7
7
  export * from "./response-channel_yt.base";
8
8
  export * from "./update-channel_yt.base";
@@ -19,6 +19,6 @@ __exportStar(require("./channel_yt.controller"), exports);
19
19
  __exportStar(require("./channel_yt.datasource"), exports);
20
20
  __exportStar(require("./channel_yt.resolver"), exports);
21
21
  __exportStar(require("./channel_yt.service"), exports);
22
- __exportStar(require("./create-channel_yt.base"), exports);
22
+ __exportStar(require("./create-template_video.base"), exports);
23
23
  __exportStar(require("./response-channel_yt.base"), exports);
24
24
  __exportStar(require("./update-channel_yt.base"), exports);
@@ -0,0 +1,21 @@
1
+ import { TemplateVideoInterface } from "../template_video";
2
+ export interface ConfigObsInterface {
3
+ id: number;
4
+ name: string;
5
+ preference: number;
6
+ active: boolean;
7
+ hour: string;
8
+ action: string;
9
+ template_video: TemplateVideoInterface;
10
+ create_at: Date;
11
+ update_at: Date;
12
+ }
13
+ export interface ConfigObsFormInterface {
14
+ id: number;
15
+ name: string;
16
+ preference: number;
17
+ active: boolean;
18
+ hour: string;
19
+ action: string;
20
+ id_template_video: number;
21
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { PaginationInterface, ResponseInterface } from "../common";
2
+ import { ConfigObsInterface } from "./config_obs.base";
3
+ import { CreateConfigObsInterface } from "./create-config_obs.base";
4
+ import { ResponseConfigObsInterface } from "./response-config_obs.base";
5
+ import { UpdateConfigObsInterface } from "./update-config_obs.base";
6
+ export interface ConfigObsControllerInterface {
7
+ create(dto: CreateConfigObsInterface): Promise<ConfigObsInterface>;
8
+ findAll(pagination: PaginationInterface): Promise<ResponseConfigObsInterface>;
9
+ findOne(id: number): Promise<ConfigObsInterface>;
10
+ update(dto: UpdateConfigObsInterface): Promise<ConfigObsInterface>;
11
+ remove(id: number): Promise<ResponseInterface>;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { PaginationInterface, ResponseInterface } from "../common";
2
+ import { ConfigObsInterface } from "./config_obs.base";
3
+ import { CreateConfigObsInterface } from "./create-config_obs.base";
4
+ import { ResponseConfigObsInterface } from "./response-config_obs.base";
5
+ import { UpdateConfigObsInterface } from "./update-config_obs.base";
6
+ export interface ConfigObsDatasourceInterface {
7
+ create(dto: CreateConfigObsInterface): Promise<ConfigObsInterface>;
8
+ findAll(pagination: PaginationInterface): Promise<ResponseConfigObsInterface>;
9
+ findOne(id: number): Promise<ConfigObsInterface>;
10
+ update(dto: UpdateConfigObsInterface): Promise<ConfigObsInterface>;
11
+ remove(id: number): Promise<ResponseInterface>;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { PaginationInterface, ResponseInterface } from "../common";
2
+ import { UserInterface } from "../user";
3
+ import { ConfigObsInterface } from "./config_obs.base";
4
+ import { CreateConfigObsInterface } from "./create-config_obs.base";
5
+ import { ResponseConfigObsInterface } from "./response-config_obs.base";
6
+ import { UpdateConfigObsInterface } from "./update-config_obs.base";
7
+ export interface ConfigObsResolverInterface {
8
+ create(dto: CreateConfigObsInterface, user?: UserInterface): Promise<ConfigObsInterface>;
9
+ findAll(pagination: PaginationInterface, user?: UserInterface): Promise<ResponseConfigObsInterface>;
10
+ findOne(id: number, user?: UserInterface): Promise<ConfigObsInterface>;
11
+ update(dto: UpdateConfigObsInterface, user?: UserInterface): Promise<ConfigObsInterface>;
12
+ remove(id: number, user?: UserInterface): Promise<ResponseInterface>;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { PaginationInterface, ResponseInterface } from "../common";
2
+ import { ConfigObsInterface } from "./config_obs.base";
3
+ import { CreateConfigObsInterface } from "./create-config_obs.base";
4
+ import { ResponseConfigObsInterface } from "./response-config_obs.base";
5
+ import { UpdateConfigObsInterface } from "./update-config_obs.base";
6
+ export interface ConfigObsServiceInterface {
7
+ create(dto: CreateConfigObsInterface): Promise<ConfigObsInterface>;
8
+ findAll(pagination: PaginationInterface): Promise<ResponseConfigObsInterface>;
9
+ findOne(id: number): Promise<ConfigObsInterface>;
10
+ update(dto: UpdateConfigObsInterface): Promise<ConfigObsInterface>;
11
+ remove(id: number): Promise<ResponseInterface>;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export interface CreateConfigObsInterface {
2
+ name: string;
3
+ preference?: number;
4
+ active?: boolean;
5
+ hour: string;
6
+ action: string;
7
+ id_template_video: number;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export * from "./config_obs.base";
2
+ export * from "./config_obs.controller";
3
+ export * from "./config_obs.datasource";
4
+ export * from "./config_obs.resolver";
5
+ export * from "./config_obs.service";
6
+ export * from "./create-config_obs.base";
7
+ export * from "./response-config_obs.base";
8
+ export * from "./update-config_obs.base";
@@ -0,0 +1,24 @@
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("./config_obs.base"), exports);
18
+ __exportStar(require("./config_obs.controller"), exports);
19
+ __exportStar(require("./config_obs.datasource"), exports);
20
+ __exportStar(require("./config_obs.resolver"), exports);
21
+ __exportStar(require("./config_obs.service"), exports);
22
+ __exportStar(require("./create-config_obs.base"), exports);
23
+ __exportStar(require("./response-config_obs.base"), exports);
24
+ __exportStar(require("./update-config_obs.base"), exports);
@@ -0,0 +1,5 @@
1
+ import { ConfigObsInterface } from "./config_obs.base";
2
+ export interface ResponseConfigObsInterface {
3
+ items: ConfigObsInterface[];
4
+ total: number;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface UpdateConfigObsInterface {
2
+ id: number;
3
+ name: string;
4
+ preference: number;
5
+ active: boolean;
6
+ hour: string;
7
+ action: string;
8
+ id_template_video: number;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -26,3 +26,5 @@ export * from "./template_result";
26
26
  export * from "./user";
27
27
  export * from "./webscraping";
28
28
  export * from "./channel_yt";
29
+ export * from "./template_video";
30
+ export * from "./config_obs";
@@ -42,3 +42,5 @@ __exportStar(require("./template_result"), exports);
42
42
  __exportStar(require("./user"), exports);
43
43
  __exportStar(require("./webscraping"), exports);
44
44
  __exportStar(require("./channel_yt"), exports);
45
+ __exportStar(require("./template_video"), exports);
46
+ __exportStar(require("./config_obs"), exports);
@@ -0,0 +1,11 @@
1
+ export interface CreateTemplateVideoInterface {
2
+ title: string;
3
+ description: string;
4
+ imagen: string;
5
+ preference?: number;
6
+ active?: boolean;
7
+ stream_key: string;
8
+ start_time: string;
9
+ id_channel_yt: number;
10
+ days: number[];
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export * from "./template_video.base";
2
+ export * from "./template_video.controller";
3
+ export * from "./template_video.datasource";
4
+ export * from "./template_video.resolver";
5
+ export * from "./template_video.service";
6
+ export * from "./create-channel_yt.base";
7
+ export * from "./response-template_video.base";
8
+ export * from "./update-channel_yt.base";
@@ -0,0 +1,24 @@
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("./template_video.base"), exports);
18
+ __exportStar(require("./template_video.controller"), exports);
19
+ __exportStar(require("./template_video.datasource"), exports);
20
+ __exportStar(require("./template_video.resolver"), exports);
21
+ __exportStar(require("./template_video.service"), exports);
22
+ __exportStar(require("./create-channel_yt.base"), exports);
23
+ __exportStar(require("./response-template_video.base"), exports);
24
+ __exportStar(require("./update-channel_yt.base"), exports);
@@ -0,0 +1,5 @@
1
+ import { TemplateVideoInterface } from "./template_video.base";
2
+ export interface ResponseTemplateVideoInterface {
3
+ items: TemplateVideoInterface[];
4
+ total: number;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ import { ChannelYtInterface } from "../channel_yt";
2
+ import { ConfigObsInterface } from "../config_obs";
3
+ export interface TemplateVideoInterface {
4
+ id: number;
5
+ title: string;
6
+ description: string;
7
+ imagen: string;
8
+ preference: number;
9
+ active: boolean;
10
+ stream_key: string;
11
+ start_time: string;
12
+ channel_yt: ChannelYtInterface;
13
+ config_obs?: ConfigObsInterface[];
14
+ days: number[];
15
+ create_at: Date;
16
+ update_at: Date;
17
+ }
18
+ export interface TemplateVideoFormInterface {
19
+ id: number;
20
+ title: string;
21
+ description: string;
22
+ imagen: string;
23
+ preference: number;
24
+ active: boolean;
25
+ stream_key: string;
26
+ start_time: string;
27
+ id_channel_yt: number;
28
+ days: number[];
29
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { PaginationInterface, ResponseInterface } from "../common";
2
+ import { CreateTemplateVideoInterface } from "./create-channel_yt.base";
3
+ import { ResponseTemplateVideoInterface } from "./response-template_video.base";
4
+ import { TemplateVideoInterface } from "./template_video.base";
5
+ import { UpdateTemplateVideoInterface } from "./update-channel_yt.base";
6
+ export interface TemplateVideoControllerInterface {
7
+ create(dto: CreateTemplateVideoInterface): Promise<TemplateVideoInterface>;
8
+ findAll(pagination: PaginationInterface): Promise<ResponseTemplateVideoInterface>;
9
+ findOne(id: number): Promise<TemplateVideoInterface>;
10
+ update(dto: UpdateTemplateVideoInterface): Promise<TemplateVideoInterface>;
11
+ remove(id: number): Promise<ResponseInterface>;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { PaginationInterface, ResponseInterface } from "../common";
2
+ import { CreateTemplateVideoInterface } from "./create-channel_yt.base";
3
+ import { ResponseTemplateVideoInterface } from "./response-template_video.base";
4
+ import { TemplateVideoInterface } from "./template_video.base";
5
+ import { UpdateTemplateVideoInterface } from "./update-channel_yt.base";
6
+ export interface TemplateVideoDatasourceInterface {
7
+ create(dto: CreateTemplateVideoInterface): Promise<TemplateVideoInterface>;
8
+ findAll(pagination: PaginationInterface): Promise<ResponseTemplateVideoInterface>;
9
+ findOne(id: number): Promise<TemplateVideoInterface>;
10
+ update(dto: UpdateTemplateVideoInterface): Promise<TemplateVideoInterface>;
11
+ remove(id: number): Promise<ResponseInterface>;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { PaginationInterface, ResponseInterface } from "../common";
2
+ import { UserInterface } from "../user";
3
+ import { CreateTemplateVideoInterface } from "./create-channel_yt.base";
4
+ import { ResponseTemplateVideoInterface } from "./response-template_video.base";
5
+ import { TemplateVideoInterface } from "./template_video.base";
6
+ import { UpdateTemplateVideoInterface } from "./update-channel_yt.base";
7
+ export interface TemplateVideoResolverInterface {
8
+ create(dto: CreateTemplateVideoInterface, user?: UserInterface): Promise<TemplateVideoInterface>;
9
+ findAll(pagination: PaginationInterface, user?: UserInterface): Promise<ResponseTemplateVideoInterface>;
10
+ findOne(id: number, user?: UserInterface): Promise<TemplateVideoInterface>;
11
+ update(dto: UpdateTemplateVideoInterface, user?: UserInterface): Promise<TemplateVideoInterface>;
12
+ remove(id: number, user?: UserInterface): Promise<ResponseInterface>;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { PaginationInterface, ResponseInterface } from "../common";
2
+ import { CreateTemplateVideoInterface } from "./create-channel_yt.base";
3
+ import { ResponseTemplateVideoInterface } from "./response-template_video.base";
4
+ import { TemplateVideoInterface } from "./template_video.base";
5
+ import { UpdateTemplateVideoInterface } from "./update-channel_yt.base";
6
+ export interface TemplateVideoServiceInterface {
7
+ create(dto: CreateTemplateVideoInterface): Promise<TemplateVideoInterface>;
8
+ findAll(pagination: PaginationInterface): Promise<ResponseTemplateVideoInterface>;
9
+ findOne(id: number): Promise<TemplateVideoInterface>;
10
+ update(dto: UpdateTemplateVideoInterface): Promise<TemplateVideoInterface>;
11
+ remove(id: number): Promise<ResponseInterface>;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ export interface UpdateTemplateVideoInterface {
2
+ id: number;
3
+ title?: string;
4
+ description?: string;
5
+ imagen?: string;
6
+ preference?: number;
7
+ active?: boolean;
8
+ stream_key?: string;
9
+ start_time?: string;
10
+ id_channel_yt?: number;
11
+ days?: number[];
12
+ }
@@ -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.6.6",
3
+ "version": "2.6.8",
4
4
  "description": "Shared Dtos, models, constants and utils",
5
5
  "main": "dist/index.js",
6
6
  "private": false,