test-entity-library-asm 2.3.6 → 2.3.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.
@@ -69,6 +69,7 @@ var CustomRepository = /** @class */ (function (_super) {
69
69
  queryBuilder = this.createQueryBuilder('verify_local')
70
70
  .skip(lazyEvent.first)
71
71
  .take(lazyEvent.rows);
72
+ // Filtro global
72
73
  if (lazyEvent.filters['global'] && lazyEvent.filters['global'].value) {
73
74
  globalValue = "%".concat(lazyEvent.filters['global'].value.toLowerCase(), "%");
74
75
  queryBuilder.andWhere('LOWER(JSON_UNQUOTE(JSON_EXTRACT(verify_local.local_information, "$.name"))) LIKE :globalValue OR LOWER(JSON_UNQUOTE(JSON_EXTRACT(verify_local.local_information, "$.addressElement"))) LIKE :globalValue', { globalValue: globalValue });
@@ -8,6 +8,7 @@ import { Plan } from './Plan';
8
8
  import { ProductTopping } from './ProductTopping';
9
9
  export declare class Company {
10
10
  id: number;
11
+ code: string;
11
12
  name: string;
12
13
  city: City;
13
14
  partner: Partner;
@@ -28,6 +28,10 @@ var Company = /** @class */ (function () {
28
28
  }),
29
29
  __metadata("design:type", Number)
30
30
  ], Company.prototype, "id", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ length: 30, unique: true, comment: 'Código único de la empresa.' }),
33
+ __metadata("design:type", String)
34
+ ], Company.prototype, "code", void 0);
31
35
  __decorate([
32
36
  (0, typeorm_1.Column)({ length: 50, comment: 'Nombre de la empresa.' }),
33
37
  __metadata("design:type", String)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "2.3.6",
3
+ "version": "2.3.7",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,6 +12,7 @@ export class CustomRepository<T extends ObjectLiteral> extends Repository<T> {
12
12
  .skip(lazyEvent.first)
13
13
  .take(lazyEvent.rows)
14
14
 
15
+ // Filtro global
15
16
  if (lazyEvent.filters['global'] && lazyEvent.filters['global'].value) {
16
17
  const globalValue = `%${lazyEvent.filters['global'].value.toLowerCase()}%`
17
18
  queryBuilder.andWhere(
@@ -25,6 +25,9 @@ export class Company {
25
25
  })
26
26
  id: number
27
27
 
28
+ @Column({ length: 30, unique: true, comment: 'Código único de la empresa.' })
29
+ code: string
30
+
28
31
  @Column({ length: 50, comment: 'Nombre de la empresa.' })
29
32
  name: string
30
33