@carlosdiazz/lottodiz-shared 2.7.3 → 2.7.5

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.
@@ -1,11 +1,12 @@
1
- import { PaginationInterface, ResponseInterface } from "../common";
1
+ import { ResponseInterface } from "../common";
2
2
  import { ConfigObsInterface } from "./config_obs.base";
3
3
  import { CreateConfigObsInterface } from "./create-config_obs.base";
4
+ import { ParamsConfigObsInterface } from "./params-config_obs.base";
4
5
  import { ResponseConfigObsInterface } from "./response-config_obs.base";
5
6
  import { UpdateConfigObsInterface } from "./update-config_obs.base";
6
7
  export interface ConfigObsControllerInterface {
7
8
  create(dto: CreateConfigObsInterface): Promise<ConfigObsInterface>;
8
- findAll(pagination: PaginationInterface): Promise<ResponseConfigObsInterface>;
9
+ findAll(pagination: ParamsConfigObsInterface): Promise<ResponseConfigObsInterface>;
9
10
  findOne(id: number): Promise<ConfigObsInterface>;
10
11
  update(dto: UpdateConfigObsInterface): Promise<ConfigObsInterface>;
11
12
  remove(id: number): Promise<ResponseInterface>;
@@ -1,11 +1,12 @@
1
- import { PaginationInterface, ResponseInterface } from "../common";
1
+ import { ResponseInterface } from "../common";
2
2
  import { ConfigObsInterface } from "./config_obs.base";
3
3
  import { CreateConfigObsInterface } from "./create-config_obs.base";
4
+ import { ParamsConfigObsInterface } from "./params-config_obs.base";
4
5
  import { ResponseConfigObsInterface } from "./response-config_obs.base";
5
6
  import { UpdateConfigObsInterface } from "./update-config_obs.base";
6
7
  export interface ConfigObsDatasourceInterface {
7
8
  create(dto: CreateConfigObsInterface): Promise<ConfigObsInterface>;
8
- findAll(pagination: PaginationInterface): Promise<ResponseConfigObsInterface>;
9
+ findAll(pagination: ParamsConfigObsInterface): Promise<ResponseConfigObsInterface>;
9
10
  findOne(id: number): Promise<ConfigObsInterface>;
10
11
  update(dto: UpdateConfigObsInterface): Promise<ConfigObsInterface>;
11
12
  remove(id: number): Promise<ResponseInterface>;
@@ -1,12 +1,13 @@
1
- import { PaginationInterface, ResponseInterface } from "../common";
1
+ import { ResponseInterface } from "../common";
2
2
  import { UserInterface } from "../user";
3
3
  import { ConfigObsInterface } from "./config_obs.base";
4
4
  import { CreateConfigObsInterface } from "./create-config_obs.base";
5
+ import { ParamsConfigObsInterface } from "./params-config_obs.base";
5
6
  import { ResponseConfigObsInterface } from "./response-config_obs.base";
6
7
  import { UpdateConfigObsInterface } from "./update-config_obs.base";
7
8
  export interface ConfigObsResolverInterface {
8
9
  create(dto: CreateConfigObsInterface, user?: UserInterface): Promise<ConfigObsInterface>;
9
- findAll(pagination: PaginationInterface, user?: UserInterface): Promise<ResponseConfigObsInterface>;
10
+ findAll(pagination: ParamsConfigObsInterface, user?: UserInterface): Promise<ResponseConfigObsInterface>;
10
11
  findOne(id: number, user?: UserInterface): Promise<ConfigObsInterface>;
11
12
  update(dto: UpdateConfigObsInterface, user?: UserInterface): Promise<ConfigObsInterface>;
12
13
  remove(id: number, user?: UserInterface): Promise<ResponseInterface>;
@@ -1,11 +1,12 @@
1
- import { PaginationInterface, ResponseInterface } from "../common";
1
+ import { ResponseInterface } from "../common";
2
2
  import { ConfigObsInterface } from "./config_obs.base";
3
3
  import { CreateConfigObsInterface } from "./create-config_obs.base";
4
+ import { ParamsConfigObsInterface } from "./params-config_obs.base";
4
5
  import { ResponseConfigObsInterface } from "./response-config_obs.base";
5
6
  import { UpdateConfigObsInterface } from "./update-config_obs.base";
6
7
  export interface ConfigObsServiceInterface {
7
8
  create(dto: CreateConfigObsInterface): Promise<ConfigObsInterface>;
8
- findAll(pagination: PaginationInterface): Promise<ResponseConfigObsInterface>;
9
+ findAll(pagination: ParamsConfigObsInterface): Promise<ResponseConfigObsInterface>;
9
10
  findOne(id: number): Promise<ConfigObsInterface>;
10
11
  update(dto: UpdateConfigObsInterface): Promise<ConfigObsInterface>;
11
12
  remove(id: number): Promise<ResponseInterface>;
@@ -4,5 +4,6 @@ export * from "./config_obs.datasource";
4
4
  export * from "./config_obs.resolver";
5
5
  export * from "./config_obs.service";
6
6
  export * from "./create-config_obs.base";
7
+ export * from "./params-config_obs.base";
7
8
  export * from "./response-config_obs.base";
8
9
  export * from "./update-config_obs.base";
@@ -20,5 +20,6 @@ __exportStar(require("./config_obs.datasource"), exports);
20
20
  __exportStar(require("./config_obs.resolver"), exports);
21
21
  __exportStar(require("./config_obs.service"), exports);
22
22
  __exportStar(require("./create-config_obs.base"), exports);
23
+ __exportStar(require("./params-config_obs.base"), exports);
23
24
  __exportStar(require("./response-config_obs.base"), exports);
24
25
  __exportStar(require("./update-config_obs.base"), exports);
@@ -0,0 +1,7 @@
1
+ import { PaginationInterface } from "../common";
2
+ export interface ParamsConfigObsInterface extends PaginationInterface {
3
+ offset: number;
4
+ limit: number;
5
+ active: boolean;
6
+ id_template_video?: number | null;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,9 @@
1
+ export * from "./create-channel_yt.base";
2
+ export * from "./params-template_video.base";
3
+ export * from "./response-template_video.base";
1
4
  export * from "./template_video.base";
2
5
  export * from "./template_video.controller";
3
6
  export * from "./template_video.datasource";
4
7
  export * from "./template_video.resolver";
5
8
  export * from "./template_video.service";
6
- export * from "./create-channel_yt.base";
7
- export * from "./response-template_video.base";
8
9
  export * from "./update-channel_yt.base";
@@ -14,11 +14,12 @@ 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("./create-channel_yt.base"), exports);
18
+ __exportStar(require("./params-template_video.base"), exports);
19
+ __exportStar(require("./response-template_video.base"), exports);
17
20
  __exportStar(require("./template_video.base"), exports);
18
21
  __exportStar(require("./template_video.controller"), exports);
19
22
  __exportStar(require("./template_video.datasource"), exports);
20
23
  __exportStar(require("./template_video.resolver"), exports);
21
24
  __exportStar(require("./template_video.service"), exports);
22
- __exportStar(require("./create-channel_yt.base"), exports);
23
- __exportStar(require("./response-template_video.base"), exports);
24
25
  __exportStar(require("./update-channel_yt.base"), exports);
@@ -0,0 +1,8 @@
1
+ import { PaginationInterface } from "../common";
2
+ export interface ParamsTemplateVideoInterface extends PaginationInterface {
3
+ offset: number;
4
+ limit: number;
5
+ active: boolean;
6
+ id_channel_yt?: number | null;
7
+ id_day?: number | null;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -25,5 +25,5 @@ export interface TemplateVideoFormInterface {
25
25
  stream_key: string;
26
26
  start_time: string;
27
27
  id_channel_yt: number;
28
- days: number[];
28
+ days: string[];
29
29
  }
@@ -1,11 +1,12 @@
1
- import { PaginationInterface, ResponseInterface } from "../common";
1
+ import { ResponseInterface } from "../common";
2
2
  import { CreateTemplateVideoInterface } from "./create-channel_yt.base";
3
+ import { ParamsTemplateVideoInterface } from "./params-template_video.base";
3
4
  import { ResponseTemplateVideoInterface } from "./response-template_video.base";
4
5
  import { TemplateVideoInterface } from "./template_video.base";
5
6
  import { UpdateTemplateVideoInterface } from "./update-channel_yt.base";
6
7
  export interface TemplateVideoControllerInterface {
7
8
  create(dto: CreateTemplateVideoInterface): Promise<TemplateVideoInterface>;
8
- findAll(pagination: PaginationInterface): Promise<ResponseTemplateVideoInterface>;
9
+ findAll(pagination: ParamsTemplateVideoInterface): Promise<ResponseTemplateVideoInterface>;
9
10
  findOne(id: number): Promise<TemplateVideoInterface>;
10
11
  update(dto: UpdateTemplateVideoInterface): Promise<TemplateVideoInterface>;
11
12
  remove(id: number): Promise<ResponseInterface>;
@@ -1,11 +1,12 @@
1
- import { PaginationInterface, ResponseInterface } from "../common";
1
+ import { ResponseInterface } from "../common";
2
2
  import { CreateTemplateVideoInterface } from "./create-channel_yt.base";
3
+ import { ParamsTemplateVideoInterface } from "./params-template_video.base";
3
4
  import { ResponseTemplateVideoInterface } from "./response-template_video.base";
4
5
  import { TemplateVideoInterface } from "./template_video.base";
5
6
  import { UpdateTemplateVideoInterface } from "./update-channel_yt.base";
6
7
  export interface TemplateVideoDatasourceInterface {
7
8
  create(dto: CreateTemplateVideoInterface): Promise<TemplateVideoInterface>;
8
- findAll(pagination: PaginationInterface): Promise<ResponseTemplateVideoInterface>;
9
+ findAll(pagination: ParamsTemplateVideoInterface): Promise<ResponseTemplateVideoInterface>;
9
10
  findOne(id: number): Promise<TemplateVideoInterface>;
10
11
  update(dto: UpdateTemplateVideoInterface): Promise<TemplateVideoInterface>;
11
12
  remove(id: number): Promise<ResponseInterface>;
@@ -1,12 +1,13 @@
1
- import { PaginationInterface, ResponseInterface } from "../common";
1
+ import { ResponseInterface } from "../common";
2
2
  import { UserInterface } from "../user";
3
3
  import { CreateTemplateVideoInterface } from "./create-channel_yt.base";
4
+ import { ParamsTemplateVideoInterface } from "./params-template_video.base";
4
5
  import { ResponseTemplateVideoInterface } from "./response-template_video.base";
5
6
  import { TemplateVideoInterface } from "./template_video.base";
6
7
  import { UpdateTemplateVideoInterface } from "./update-channel_yt.base";
7
8
  export interface TemplateVideoResolverInterface {
8
9
  create(dto: CreateTemplateVideoInterface, user?: UserInterface): Promise<TemplateVideoInterface>;
9
- findAll(pagination: PaginationInterface, user?: UserInterface): Promise<ResponseTemplateVideoInterface>;
10
+ findAll(pagination: ParamsTemplateVideoInterface, user?: UserInterface): Promise<ResponseTemplateVideoInterface>;
10
11
  findOne(id: number, user?: UserInterface): Promise<TemplateVideoInterface>;
11
12
  update(dto: UpdateTemplateVideoInterface, user?: UserInterface): Promise<TemplateVideoInterface>;
12
13
  remove(id: number, user?: UserInterface): Promise<ResponseInterface>;
@@ -1,11 +1,12 @@
1
- import { PaginationInterface, ResponseInterface } from "../common";
1
+ import { ResponseInterface } from "../common";
2
2
  import { CreateTemplateVideoInterface } from "./create-channel_yt.base";
3
+ import { ParamsTemplateVideoInterface } from "./params-template_video.base";
3
4
  import { ResponseTemplateVideoInterface } from "./response-template_video.base";
4
5
  import { TemplateVideoInterface } from "./template_video.base";
5
6
  import { UpdateTemplateVideoInterface } from "./update-channel_yt.base";
6
7
  export interface TemplateVideoServiceInterface {
7
8
  create(dto: CreateTemplateVideoInterface): Promise<TemplateVideoInterface>;
8
- findAll(pagination: PaginationInterface): Promise<ResponseTemplateVideoInterface>;
9
+ findAll(pagination: ParamsTemplateVideoInterface): Promise<ResponseTemplateVideoInterface>;
9
10
  findOne(id: number): Promise<TemplateVideoInterface>;
10
11
  update(dto: UpdateTemplateVideoInterface): Promise<TemplateVideoInterface>;
11
12
  remove(id: number): Promise<ResponseInterface>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlosdiazz/lottodiz-shared",
3
- "version": "2.7.3",
3
+ "version": "2.7.5",
4
4
  "description": "Shared Dtos, models, constants and utils",
5
5
  "main": "dist/index.js",
6
6
  "private": false,