@carlosdiazz/lottodiz-shared 1.9.9 → 2.0.0

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.
@@ -12,6 +12,7 @@ export * from "./draw";
12
12
  export * from "./lottery";
13
13
  export * from "./page_webscraping";
14
14
  export * from "./permission";
15
+ export * from "./platform_ads";
15
16
  export * from "./platform";
16
17
  export * from "./position_result";
17
18
  export * from "./queue";
@@ -28,6 +28,7 @@ __exportStar(require("./draw"), exports);
28
28
  __exportStar(require("./lottery"), exports);
29
29
  __exportStar(require("./page_webscraping"), exports);
30
30
  __exportStar(require("./permission"), exports);
31
+ __exportStar(require("./platform_ads"), exports);
31
32
  __exportStar(require("./platform"), exports);
32
33
  __exportStar(require("./position_result"), exports);
33
34
  __exportStar(require("./queue"), exports);
@@ -0,0 +1,10 @@
1
+ export interface CreatePlatformAdsInterface {
2
+ title: string;
3
+ body: string;
4
+ active?: boolean;
5
+ preference?: number;
6
+ image: string;
7
+ days_active?: number;
8
+ url_link?: string;
9
+ id_platform: number;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export * from "./create-platform-ads.base";
2
+ export * from "./platform-ads.base";
3
+ export * from "./platform-ads.controller";
4
+ export * from "./platform-ads.datasource";
5
+ export * from "./platform-ads.resolver";
6
+ export * from "./platform-ads.service";
7
+ export * from "./response-platform-ads.base";
8
+ export * from "./update-platform-ads.base";
9
+ export * from "./params-platform-ads.base";
@@ -0,0 +1,25 @@
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("./create-platform-ads.base"), exports);
18
+ __exportStar(require("./platform-ads.base"), exports);
19
+ __exportStar(require("./platform-ads.controller"), exports);
20
+ __exportStar(require("./platform-ads.datasource"), exports);
21
+ __exportStar(require("./platform-ads.resolver"), exports);
22
+ __exportStar(require("./platform-ads.service"), exports);
23
+ __exportStar(require("./response-platform-ads.base"), exports);
24
+ __exportStar(require("./update-platform-ads.base"), exports);
25
+ __exportStar(require("./params-platform-ads.base"), exports);
@@ -0,0 +1,7 @@
1
+ import { PaginationInterface } from "../common";
2
+ export interface ParamsPlatformAdsInterface extends PaginationInterface {
3
+ offset: number;
4
+ limit: number;
5
+ active: boolean;
6
+ id_platform?: number | null;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ export interface PlatformAdsInterface {
2
+ id: number;
3
+ title: string;
4
+ body: string;
5
+ active?: boolean;
6
+ preference?: number;
7
+ image: string;
8
+ days_active?: number;
9
+ url_link?: string;
10
+ id_platform: number;
11
+ create_at: Date;
12
+ update_at: Date;
13
+ }
14
+ export interface PlatformAdsFormInterface {
15
+ id: number;
16
+ title: string;
17
+ body: string;
18
+ active?: boolean;
19
+ preference?: number;
20
+ image: string;
21
+ days_active?: number;
22
+ url_link?: string;
23
+ id_platform: number;
24
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { CreatePlatformAdsInterface } from "./create-platform-ads.base";
2
+ import { ParamsPlatformAdsInterface } from "./params-platform-ads.base";
3
+ import { PlatformAdsInterface } from "./platform-ads.base";
4
+ import { ResponsePlatformAdsInterface } from "./response-platform-ads.base";
5
+ import { UpdatePlatformAdsInterface } from "./update-platform-ads.base";
6
+ import { ResponseInterface } from "../common";
7
+ export interface PlatformAdsControllerInterface {
8
+ create(dto: CreatePlatformAdsInterface): Promise<PlatformAdsInterface>;
9
+ findAll(pagination: ParamsPlatformAdsInterface): Promise<ResponsePlatformAdsInterface>;
10
+ findOne(id: number): Promise<PlatformAdsInterface>;
11
+ update(dto: UpdatePlatformAdsInterface): Promise<PlatformAdsInterface>;
12
+ remove(id: number): Promise<ResponseInterface>;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { CreatePlatformAdsInterface } from "./create-platform-ads.base";
2
+ import { ParamsPlatformAdsInterface } from "./params-platform-ads.base";
3
+ import { PlatformAdsInterface } from "./platform-ads.base";
4
+ import { ResponsePlatformAdsInterface } from "./response-platform-ads.base";
5
+ import { UpdatePlatformAdsInterface } from "./update-platform-ads.base";
6
+ import { ResponseInterface } from "../common";
7
+ export interface PlatformAdsDatasourceInterface {
8
+ create(dto: CreatePlatformAdsInterface): Promise<PlatformAdsInterface>;
9
+ findAll(pagination: ParamsPlatformAdsInterface): Promise<ResponsePlatformAdsInterface>;
10
+ findOne(id: number): Promise<PlatformAdsInterface>;
11
+ update(dto: UpdatePlatformAdsInterface): Promise<PlatformAdsInterface>;
12
+ remove(id: number): Promise<ResponseInterface>;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { CreatePlatformAdsInterface } from "./create-platform-ads.base";
2
+ import { ParamsPlatformAdsInterface } from "./params-platform-ads.base";
3
+ import { PlatformAdsInterface } from "./platform-ads.base";
4
+ import { ResponsePlatformAdsInterface } from "./response-platform-ads.base";
5
+ import { UpdatePlatformAdsInterface } from "./update-platform-ads.base";
6
+ import { ResponseInterface } from "../common";
7
+ import { UserInterface } from "../user";
8
+ export interface PlatformAdsResolverInterface {
9
+ create(dto: CreatePlatformAdsInterface, user?: UserInterface): Promise<PlatformAdsInterface>;
10
+ findAll(pagination: ParamsPlatformAdsInterface, user?: UserInterface): Promise<ResponsePlatformAdsInterface>;
11
+ findOne(id: number, user?: UserInterface): Promise<PlatformAdsInterface>;
12
+ update(dto: UpdatePlatformAdsInterface, user?: UserInterface): Promise<PlatformAdsInterface>;
13
+ remove(id: number, user?: UserInterface): Promise<ResponseInterface>;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { CreatePlatformAdsInterface } from "./create-platform-ads.base";
2
+ import { ParamsPlatformAdsInterface } from "./params-platform-ads.base";
3
+ import { PlatformAdsInterface } from "./platform-ads.base";
4
+ import { ResponsePlatformAdsInterface } from "./response-platform-ads.base";
5
+ import { UpdatePlatformAdsInterface } from "./update-platform-ads.base";
6
+ import { ResponseInterface } from "../common";
7
+ export interface PlatformAdsServiceInterface {
8
+ create(dto: CreatePlatformAdsInterface): Promise<PlatformAdsInterface>;
9
+ findAll(pagination: ParamsPlatformAdsInterface): Promise<ResponsePlatformAdsInterface>;
10
+ findOne(id: number): Promise<PlatformAdsInterface>;
11
+ update(dto: UpdatePlatformAdsInterface): Promise<PlatformAdsInterface>;
12
+ remove(id: number): Promise<ResponseInterface>;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { PlatformAdsInterface } from "./platform-ads.base";
2
+ export interface ResponsePlatformAdsInterface {
3
+ items: PlatformAdsInterface[];
4
+ total: number;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ export interface UpdatePlatformAdsInterface {
2
+ id: number;
3
+ title: string;
4
+ body: string;
5
+ active?: boolean;
6
+ preference?: number;
7
+ image: string;
8
+ days_active?: number;
9
+ url_link?: string;
10
+ id_platform: number;
11
+ }
@@ -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": "1.9.9",
3
+ "version": "2.0.0",
4
4
  "description": "Shared Dtos, models, constants and utils",
5
5
  "main": "dist/index.js",
6
6
  "private": false,