@carlosdiazz/lottodiz-shared 2.6.6 → 2.6.7
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.
- package/dist/enum/method-valid.d.ts +10 -0
- package/dist/enum/method-valid.js +12 -0
- package/dist/enum/permission-valid.d.ts +8 -0
- package/dist/enum/permission-valid.js +10 -0
- package/dist/models/channel_yt/channel_yt.base.d.ts +2 -2
- package/dist/models/channel_yt/channel_yt.controller.d.ts +1 -1
- package/dist/models/channel_yt/channel_yt.datasource.d.ts +1 -1
- package/dist/models/channel_yt/channel_yt.resolver.d.ts +1 -1
- package/dist/models/channel_yt/channel_yt.service.d.ts +1 -1
- package/dist/models/channel_yt/create-template_video.base.d.ts +6 -0
- package/dist/models/channel_yt/create-template_video.base.js +2 -0
- package/dist/models/channel_yt/index.d.ts +1 -1
- package/dist/models/channel_yt/index.js +1 -1
- package/dist/models/config_obs/config_obs.base.d.ts +21 -0
- package/dist/models/config_obs/config_obs.base.js +2 -0
- package/dist/models/config_obs/config_obs.controller.d.ts +12 -0
- package/dist/models/config_obs/config_obs.controller.js +2 -0
- package/dist/models/config_obs/config_obs.datasource.d.ts +12 -0
- package/dist/models/config_obs/config_obs.datasource.js +2 -0
- package/dist/models/config_obs/config_obs.resolver.d.ts +13 -0
- package/dist/models/config_obs/config_obs.resolver.js +2 -0
- package/dist/models/config_obs/config_obs.service.d.ts +12 -0
- package/dist/models/config_obs/config_obs.service.js +2 -0
- package/dist/models/config_obs/create-config_obs.base.d.ts +8 -0
- package/dist/models/config_obs/create-config_obs.base.js +2 -0
- package/dist/models/config_obs/index.d.ts +8 -0
- package/dist/models/config_obs/index.js +24 -0
- package/dist/models/config_obs/response-config_obs.base.d.ts +5 -0
- package/dist/models/config_obs/response-config_obs.base.js +2 -0
- package/dist/models/config_obs/update-config_obs.base.d.ts +9 -0
- package/dist/models/config_obs/update-config_obs.base.js +2 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/template_video/create-channel_yt.base.d.ts +11 -0
- package/dist/models/template_video/create-channel_yt.base.js +2 -0
- package/dist/models/template_video/index.d.ts +8 -0
- package/dist/models/template_video/index.js +24 -0
- package/dist/models/template_video/response-template_video.base.d.ts +5 -0
- package/dist/models/template_video/response-template_video.base.js +2 -0
- package/dist/models/template_video/template_video.base.d.ts +27 -0
- package/dist/models/template_video/template_video.base.js +2 -0
- package/dist/models/template_video/template_video.controller.d.ts +12 -0
- package/dist/models/template_video/template_video.controller.js +2 -0
- package/dist/models/template_video/template_video.datasource.d.ts +12 -0
- package/dist/models/template_video/template_video.datasource.js +2 -0
- package/dist/models/template_video/template_video.resolver.d.ts +13 -0
- package/dist/models/template_video/template_video.resolver.js +2 -0
- package/dist/models/template_video/template_video.service.d.ts +12 -0
- package/dist/models/template_video/template_video.service.js +2 -0
- package/dist/models/template_video/update-channel_yt.base.d.ts +12 -0
- package/dist/models/template_video/update-channel_yt.base.js +2 -0
- 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";
|
|
@@ -3,7 +3,7 @@ export interface ChannelYtInterface {
|
|
|
3
3
|
name: string;
|
|
4
4
|
preference: number;
|
|
5
5
|
active: boolean;
|
|
6
|
-
imagen
|
|
6
|
+
imagen?: string;
|
|
7
7
|
create_at: Date;
|
|
8
8
|
update_at: Date;
|
|
9
9
|
}
|
|
@@ -12,5 +12,5 @@ export interface ChannelYtFormInterface {
|
|
|
12
12
|
name: string;
|
|
13
13
|
preference: number;
|
|
14
14
|
active: boolean;
|
|
15
|
-
imagen
|
|
15
|
+
imagen?: string;
|
|
16
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PaginationInterface, ResponseInterface } from "../common";
|
|
2
2
|
import { ChannelYtInterface } from "./channel_yt.base";
|
|
3
|
-
import { CreateChanelYtInterface } from "./create-
|
|
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-
|
|
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-
|
|
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-
|
|
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 {
|
|
@@ -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-
|
|
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-
|
|
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,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,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,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,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,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);
|
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED
|
@@ -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,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,27 @@
|
|
|
1
|
+
import { ChannelYtInterface } from "../channel_yt";
|
|
2
|
+
export interface TemplateVideoInterface {
|
|
3
|
+
id: number;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
imagen: string;
|
|
7
|
+
preference: number;
|
|
8
|
+
active: boolean;
|
|
9
|
+
stream_key: string;
|
|
10
|
+
start_time: string;
|
|
11
|
+
channel_yt: ChannelYtInterface;
|
|
12
|
+
days: number[];
|
|
13
|
+
create_at: Date;
|
|
14
|
+
update_at: Date;
|
|
15
|
+
}
|
|
16
|
+
export interface TemplateVideoFormInterface {
|
|
17
|
+
id: number;
|
|
18
|
+
title: string;
|
|
19
|
+
description: string;
|
|
20
|
+
imagen: string;
|
|
21
|
+
preference: number;
|
|
22
|
+
active: boolean;
|
|
23
|
+
stream_key: string;
|
|
24
|
+
start_time: string;
|
|
25
|
+
id_channel_yt: number;
|
|
26
|
+
days: number[];
|
|
27
|
+
}
|
|
@@ -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,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,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,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,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
|
+
}
|