test-entity-library-asm 2.8.3 → 2.8.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,6 +6,7 @@ import { Partner } from './Partner';
6
6
  import { PartnerRole } from './PartnerRole';
7
7
  import { Plan } from './Plan';
8
8
  import { ProductTopping } from './ProductTopping';
9
+ import { IPropsContactDetails } from '../interfaces';
9
10
  export declare class Company {
10
11
  id: number;
11
12
  code: string;
@@ -13,6 +14,7 @@ export declare class Company {
13
14
  city: City;
14
15
  partner: Partner;
15
16
  profile: any;
17
+ contact_details: IPropsContactDetails | null;
16
18
  legal_information: any;
17
19
  legal_agent: any;
18
20
  created: Date;
@@ -63,6 +63,15 @@ var Company = /** @class */ (function () {
63
63
  }),
64
64
  __metadata("design:type", Object)
65
65
  ], Company.prototype, "profile", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({
68
+ type: 'text',
69
+ nullable: true,
70
+ transformer: jsonTransformer_1.jsonTransformer,
71
+ comment: 'Campo de tipo JSON donde se guarda información para guardar el teléfono y el correo electrónico, también los nuevos valores qué tengan esos 2 campos.',
72
+ }),
73
+ __metadata("design:type", Object)
74
+ ], Company.prototype, "contact_details", void 0);
66
75
  __decorate([
67
76
  (0, typeorm_1.Column)({
68
77
  type: 'longtext',
@@ -44,4 +44,10 @@ export interface IPropsDiscountUserOrCompany extends IBasicLazyEvent {
44
44
  company: number | null;
45
45
  status: number | null;
46
46
  }
47
+ export interface IPropsContactDetails {
48
+ phone: string;
49
+ email: string;
50
+ new_phone: string;
51
+ new_email: string;
52
+ }
47
53
  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.8.3",
3
+ "version": "2.8.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",
@@ -16,6 +16,7 @@ import { Plan } from './Plan'
16
16
  import { ProductTopping } from './ProductTopping'
17
17
  import { jsonTransformer } from '../transformers/jsonTransformer'
18
18
  import { DateTransformer } from '../transformers/dateTransformer'
19
+ import { IPropsContactDetails } from '../interfaces'
19
20
 
20
21
  @Entity({
21
22
  comment:
@@ -56,6 +57,15 @@ export class Company {
56
57
  })
57
58
  profile: any
58
59
 
60
+ @Column({
61
+ type: 'text',
62
+ nullable: true,
63
+ transformer: jsonTransformer,
64
+ comment:
65
+ 'Campo de tipo JSON donde se guarda información para guardar el teléfono y el correo electrónico, también los nuevos valores qué tengan esos 2 campos.',
66
+ })
67
+ contact_details: IPropsContactDetails | null
68
+
59
69
  @Column({
60
70
  type: 'longtext',
61
71
  nullable: true,
package/src/interfaces.ts CHANGED
@@ -51,4 +51,11 @@ export interface IPropsDiscountUserOrCompany extends IBasicLazyEvent {
51
51
  status: number | null
52
52
  }
53
53
 
54
+ export interface IPropsContactDetails {
55
+ phone: string
56
+ email: string
57
+ new_phone: string
58
+ new_email: string
59
+ }
60
+
54
61
  export type IType = 'mysql' | 'mariadb'