@carlosdiazz/lottodiz-shared 4.0.5 → 4.0.6

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.
@@ -103,11 +103,13 @@ export declare class MethodValid {
103
103
  static DRAW_WEBSCRAPING_EXECT_AUTOMATIC: string;
104
104
  static PLATFORM_CREATE: string;
105
105
  static PLATFORM_FIND_ONE: string;
106
+ static PLATFORM_FIND_TOPIC: string;
106
107
  static PLATFORM_FIND_ALL: string;
107
108
  static PLATFORM_UPDATE: string;
108
109
  static PLATFORM_REMOVE: string;
109
110
  static PLATFORM_ADS_CREATE: string;
110
111
  static PLATFORM_ADS_FIND_ONE: string;
112
+ static PLATFORM_ADS_FIND_TOPIC: string;
111
113
  static PLATFORM_ADS_FIND_ALL: string;
112
114
  static PLATFORM_ADS_UPDATE: string;
113
115
  static PLATFORM_ADS_REMOVE: string;
@@ -128,12 +128,14 @@ MethodValid.DRAW_WEBSCRAPING_EXECT_AUTOMATIC = "DRAW_WEBSCRAPING_EXECT_AUTOMATIC
128
128
  //PLATFORM
129
129
  MethodValid.PLATFORM_CREATE = "PLATFORM_CREATE";
130
130
  MethodValid.PLATFORM_FIND_ONE = "PLATFORM_FIND_ONE";
131
+ MethodValid.PLATFORM_FIND_TOPIC = "PLATFORM_FIND_TOPIC";
131
132
  MethodValid.PLATFORM_FIND_ALL = "PLATFORM_FIND_ALL";
132
133
  MethodValid.PLATFORM_UPDATE = "PLATFORM_UPDATE";
133
134
  MethodValid.PLATFORM_REMOVE = "PLATFORM_REMOVE";
134
135
  //PLATFORM ADS
135
136
  MethodValid.PLATFORM_ADS_CREATE = "PLATFORM_ADS_CREATE";
136
137
  MethodValid.PLATFORM_ADS_FIND_ONE = "PLATFORM_ADS_FIND_ONE";
138
+ MethodValid.PLATFORM_ADS_FIND_TOPIC = "PLATFORM_ADS_FIND_TOPIC";
137
139
  MethodValid.PLATFORM_ADS_FIND_ALL = "PLATFORM_ADS_FIND_ALL";
138
140
  MethodValid.PLATFORM_ADS_UPDATE = "PLATFORM_ADS_UPDATE";
139
141
  MethodValid.PLATFORM_ADS_REMOVE = "PLATFORM_ADS_REMOVE";
@@ -8,6 +8,7 @@ export interface CountryControllerInterface {
8
8
  create(dto: CreateCountryInterface): Promise<CountryInterface>;
9
9
  findAll(pagination: ParamsCountryInterface): Promise<ResponseCountryInterface>;
10
10
  findOne(id: number): Promise<CountryInterface>;
11
+ findOneByTopic(topic: string): Promise<CountryInterface>;
11
12
  update(dto: UpdateCountryInterface): Promise<CountryInterface>;
12
13
  remove(id: number): Promise<ResponseInterface>;
13
14
  verify_status_lottery(): Promise<ResponseInterface>;
@@ -8,6 +8,7 @@ export interface CountryDatasourceInterface {
8
8
  create(dto: CreateCountryInterface): Promise<CountryInterface>;
9
9
  findAll(pagination: ParamsCountryInterface): Promise<ResponseCountryInterface>;
10
10
  findOne(id: number): Promise<CountryInterface>;
11
+ findOneByTopic(topic: string): Promise<CountryInterface>;
11
12
  update(dto: UpdateCountryInterface): Promise<CountryInterface>;
12
13
  remove(id: number): Promise<ResponseInterface>;
13
14
  }
@@ -9,6 +9,7 @@ export interface CountryResolverInterface {
9
9
  create(dto: CreateCountryInterface, user?: UserInterface): Promise<CountryInterface>;
10
10
  findAll(pagination: ParamsCountryInterface, user?: UserInterface): Promise<ResponseCountryInterface>;
11
11
  findOne(id: number, user?: UserInterface): Promise<CountryInterface>;
12
+ findOneByTopic(topic: string, user?: UserInterface): Promise<CountryInterface>;
12
13
  update(dto: UpdateCountryInterface, user?: UserInterface): Promise<CountryInterface>;
13
14
  remove(id: number, user?: UserInterface): Promise<ResponseInterface>;
14
15
  }
@@ -8,6 +8,7 @@ export interface CountryServiceInterface {
8
8
  create(dto: CreateCountryInterface): Promise<CountryInterface>;
9
9
  findAll(pagination: ParamsCountryInterface): Promise<ResponseCountryInterface>;
10
10
  findOne(id: number): Promise<CountryInterface>;
11
+ findOneByTopic(topic: string): Promise<CountryInterface>;
11
12
  update(dto: UpdateCountryInterface): Promise<CountryInterface>;
12
13
  remove(id: number): Promise<ResponseInterface>;
13
14
  verify_status_lottery(): Promise<ResponseInterface>;
@@ -4,6 +4,7 @@ export interface ParamsCountryInterface extends PaginationInterface {
4
4
  limit?: number;
5
5
  active?: boolean;
6
6
  id_platform?: number | null;
7
+ topic?: string | null;
7
8
  view_screen?: boolean | null;
8
9
  is_global?: boolean | null;
9
10
  }
@@ -4,4 +4,5 @@ export interface ParamsPlatformAdsInterface extends PaginationInterface {
4
4
  limit?: number;
5
5
  active?: boolean;
6
6
  id_platform?: number | null;
7
+ topic?: string | null;
7
8
  }
@@ -8,6 +8,7 @@ export interface PlatformAdsControllerInterface {
8
8
  create(dto: CreatePlatformAdsInterface): Promise<PlatformAdsInterface>;
9
9
  findAll(pagination: ParamsPlatformAdsInterface): Promise<ResponsePlatformAdsInterface>;
10
10
  findOne(id: number): Promise<PlatformAdsInterface>;
11
+ findOneByTopic(topic: string): Promise<PlatformAdsInterface>;
11
12
  update(dto: UpdatePlatformAdsInterface): Promise<PlatformAdsInterface>;
12
13
  remove(id: number): Promise<ResponseInterface>;
13
14
  }
@@ -8,6 +8,7 @@ export interface PlatformAdsDatasourceInterface {
8
8
  create(dto: CreatePlatformAdsInterface): Promise<PlatformAdsInterface>;
9
9
  findAll(pagination: ParamsPlatformAdsInterface): Promise<ResponsePlatformAdsInterface>;
10
10
  findOne(id: number): Promise<PlatformAdsInterface>;
11
+ findOneByTopic(topic: string): Promise<PlatformAdsInterface>;
11
12
  update(dto: UpdatePlatformAdsInterface): Promise<PlatformAdsInterface>;
12
13
  remove(id: number): Promise<ResponseInterface>;
13
14
  }
@@ -9,6 +9,7 @@ export interface PlatformAdsResolverInterface {
9
9
  create(dto: CreatePlatformAdsInterface, user?: UserInterface): Promise<PlatformAdsInterface>;
10
10
  findAll(pagination: ParamsPlatformAdsInterface, user?: UserInterface): Promise<ResponsePlatformAdsInterface>;
11
11
  findOne(id: number, user?: UserInterface): Promise<PlatformAdsInterface>;
12
+ findOneByTopic(topic: string, user?: UserInterface): Promise<PlatformAdsInterface>;
12
13
  update(dto: UpdatePlatformAdsInterface, user?: UserInterface): Promise<PlatformAdsInterface>;
13
14
  remove(id: number, user?: UserInterface): Promise<ResponseInterface>;
14
15
  }
@@ -8,6 +8,7 @@ export interface PlatformAdsServiceInterface {
8
8
  create(dto: CreatePlatformAdsInterface): Promise<PlatformAdsInterface>;
9
9
  findAll(pagination: ParamsPlatformAdsInterface): Promise<ResponsePlatformAdsInterface>;
10
10
  findOne(id: number): Promise<PlatformAdsInterface>;
11
+ findOneByTopic(topic: string): Promise<PlatformAdsInterface>;
11
12
  update(dto: UpdatePlatformAdsInterface): Promise<PlatformAdsInterface>;
12
13
  remove(id: number): Promise<ResponseInterface>;
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlosdiazz/lottodiz-shared",
3
- "version": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "description": "Shared Dtos, models, constants and utils",
5
5
  "main": "dist/index.js",
6
6
  "private": false,