test-entity-library-asm 2.7.4 → 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.
@@ -6,7 +6,7 @@ export declare class CustomRepository<T extends ObjectLiteral> extends Repositor
6
6
  data: T[];
7
7
  totalRecords: number;
8
8
  }>;
9
- getDiscountCodeUser({ status, company, lazyEvent, }: IPropsDiscountUserOrCompany): Promise<{
9
+ getDiscountsCodeUser({ status, company, lazyEvent, }: IPropsDiscountUserOrCompany): Promise<{
10
10
  data: T[];
11
11
  totalRecords: number;
12
12
  }>;
@@ -170,7 +170,7 @@ var CustomRepository = /** @class */ (function (_super) {
170
170
  });
171
171
  });
172
172
  };
173
- CustomRepository.prototype.getDiscountCodeUser = function (_a) {
173
+ CustomRepository.prototype.getDiscountsCodeUser = function (_a) {
174
174
  return __awaiter(this, arguments, void 0, function (_b) {
175
175
  var timezone, queryBuilder, globalValue, filters, order, _c, discountsCodeUser, totalRecords;
176
176
  var status = _b.status, company = _b.company, lazyEvent = _b.lazyEvent;
@@ -13,6 +13,16 @@ export interface IDataBaseSource {
13
13
  synchronize: boolean;
14
14
  entitiesRoute?: string;
15
15
  }
16
+ export interface IBasicLazyEvent {
17
+ lazyEvent: {
18
+ first: number;
19
+ rows: number;
20
+ page: number;
21
+ sortField: any;
22
+ sortOrder: any;
23
+ filters: any;
24
+ };
25
+ }
16
26
  export interface IPropsQueryVerifyLocal {
17
27
  status: number;
18
28
  lazyEvent: {
@@ -24,7 +34,8 @@ export interface IPropsQueryVerifyLocal {
24
34
  filters: any;
25
35
  };
26
36
  }
27
- export interface IPropsDiscountUserOrCompany extends IPropsQueryVerifyLocal {
28
- company?: number;
37
+ export interface IPropsDiscountUserOrCompany extends IBasicLazyEvent {
38
+ company: number;
39
+ status: number | null;
29
40
  }
30
41
  export type IType = 'mysql' | 'mariadb';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "2.7.4",
3
+ "version": "2.7.5",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -155,7 +155,7 @@ export class CustomRepository<T extends ObjectLiteral> extends Repository<T> {
155
155
  }
156
156
  }
157
157
 
158
- async getDiscountCodeUser({
158
+ async getDiscountsCodeUser({
159
159
  status,
160
160
  company,
161
161
  lazyEvent,
package/src/interfaces.ts CHANGED
@@ -16,6 +16,17 @@ export interface IDataBaseSource {
16
16
  entitiesRoute?: string
17
17
  }
18
18
 
19
+ export interface IBasicLazyEvent {
20
+ lazyEvent: {
21
+ first: number
22
+ rows: number
23
+ page: number
24
+ sortField: any
25
+ sortOrder: any
26
+ filters: any
27
+ }
28
+ }
29
+
19
30
  export interface IPropsQueryVerifyLocal {
20
31
  status: number
21
32
  lazyEvent: {
@@ -28,8 +39,9 @@ export interface IPropsQueryVerifyLocal {
28
39
  }
29
40
  }
30
41
 
31
- export interface IPropsDiscountUserOrCompany extends IPropsQueryVerifyLocal {
32
- company?: number
42
+ export interface IPropsDiscountUserOrCompany extends IBasicLazyEvent {
43
+ company: number
44
+ status: number | null
33
45
  }
34
46
 
35
47
  export type IType = 'mysql' | 'mariadb'