test-entity-library-asm 2.9.2 → 2.9.4

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.
@@ -1,4 +1,4 @@
1
- import { MasterNotification, PartnerNotification, ReassignReview, VerifyLocal } from "..";
1
+ import { MasterNotification, PartnerNotification, VerifyLocal } from "..";
2
2
  import { City } from "./City";
3
3
  import { DiscountCodeCompany } from "./DiscountCodeCompany";
4
4
  import { MasterRole } from "./MasterRole";
@@ -22,8 +22,6 @@ export declare class Master {
22
22
  masters_roles: MasterRole[];
23
23
  verifyLocals: VerifyLocal[];
24
24
  master_notifications: MasterNotification[];
25
- reassign_reviews: ReassignReview[];
26
- reassign_review_news: ReassignReview[];
27
25
  masters_to_notification: MasterNotification[];
28
26
  masters_notification: PartnerNotification[];
29
27
  }
@@ -148,14 +148,6 @@ var Master = /** @class */ (function () {
148
148
  (0, typeorm_1.OneToMany)(function () { return __1.MasterNotification; }, function (masterNotification) { return masterNotification.master; }),
149
149
  __metadata("design:type", Array)
150
150
  ], Master.prototype, "master_notifications", void 0);
151
- __decorate([
152
- (0, typeorm_1.OneToMany)(function () { return __1.ReassignReview; }, function (reassignReview) { return reassignReview.previous_master; }),
153
- __metadata("design:type", Array)
154
- ], Master.prototype, "reassign_reviews", void 0);
155
- __decorate([
156
- (0, typeorm_1.OneToMany)(function () { return __1.ReassignReview; }, function (reassignReview) { return reassignReview.new_user; }),
157
- __metadata("design:type", Array)
158
- ], Master.prototype, "reassign_review_news", void 0);
159
151
  __decorate([
160
152
  (0, typeorm_1.ManyToMany)(function () { return __1.MasterNotification; }),
161
153
  (0, typeorm_1.JoinTable)({
@@ -42,7 +42,6 @@ export { AuthenticationCredential } from "./entities/AuthenticationCredential";
42
42
  export { PosSystem } from "./entities/PosSystem";
43
43
  export { VerifyLocal } from "./entities/VerifyLocal";
44
44
  export { MasterNotification } from "./entities/MasterNotification";
45
- export { ReassignReview } from "./entities/ReassignReview";
46
45
  export { LocalPlan } from "./entities/LocalPlan";
47
46
  export { PartnerPermissionSection } from "./entities/PartnerPermissionSection";
48
47
  export { PartnerPlatform } from "./entities/PartnerPlatform";
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.LocalsCompany = exports.ServicePlan = exports.PartnerPlatform = exports.PartnerPermissionSection = exports.LocalPlan = exports.ReassignReview = exports.MasterNotification = exports.VerifyLocal = exports.PosSystem = exports.AuthenticationCredential = exports.BusinessType = exports.UserAddress = exports.User = exports.TypeMeasureIngredient = exports.TerminalSession = exports.Terminal = exports.Square = exports.RequestStatus = exports.RequestProductGroupComplement = exports.RequestProduct = exports.Request = exports.Region = exports.ProductTopping = exports.ProductIngredient = exports.ProductGroupComplement = exports.ProductGroup = exports.Product = exports.Plan = exports.PaymentMethod = exports.PartnerRole = exports.PartnerPermission = exports.PartnerNotification = exports.Partner = exports.MasterRole = exports.MasterPermission = exports.Master = exports.LocalQualification = exports.Local = exports.DiscountCodeUser = exports.DiscountCodeCompany = exports.Day = exports.Country = exports.Configuration = exports.Company = exports.CodeRedemptionHistoryUser = exports.CodeRedemptionHistoryCompany = exports.City = exports.ScheduleCategory = exports.Category = exports.BusinessTypeProduct = void 0;
18
- exports.CustomRepository = exports.PartnerNotifications = exports.DiscountsCodeUser = exports.Partners = exports.ViewLocalsCompanies = exports.MasterNotifications = exports.VerifyLocals = void 0;
17
+ exports.VerifyLocals = exports.LocalsCompany = exports.ServicePlan = exports.PartnerPlatform = exports.PartnerPermissionSection = exports.LocalPlan = exports.MasterNotification = exports.VerifyLocal = exports.PosSystem = exports.AuthenticationCredential = exports.BusinessType = exports.UserAddress = exports.User = exports.TypeMeasureIngredient = exports.TerminalSession = exports.Terminal = exports.Square = exports.RequestStatus = exports.RequestProductGroupComplement = exports.RequestProduct = exports.Request = exports.Region = exports.ProductTopping = exports.ProductIngredient = exports.ProductGroupComplement = exports.ProductGroup = exports.Product = exports.Plan = exports.PaymentMethod = exports.PartnerRole = exports.PartnerPermission = exports.PartnerNotification = exports.Partner = exports.MasterRole = exports.MasterPermission = exports.Master = exports.LocalQualification = exports.Local = exports.DiscountCodeUser = exports.DiscountCodeCompany = exports.Day = exports.Country = exports.Configuration = exports.Company = exports.CodeRedemptionHistoryUser = exports.CodeRedemptionHistoryCompany = exports.City = exports.ScheduleCategory = exports.Category = exports.BusinessTypeProduct = void 0;
18
+ exports.CustomRepository = exports.PartnerNotifications = exports.DiscountsCodeUser = exports.Partners = exports.ViewLocalsCompanies = exports.MasterNotifications = void 0;
19
19
  var BusinessTypeProduct_1 = require("./entities/BusinessTypeProduct");
20
20
  Object.defineProperty(exports, "BusinessTypeProduct", { enumerable: true, get: function () { return BusinessTypeProduct_1.BusinessTypeProduct; } });
21
21
  var Category_1 = require("./entities/Category");
@@ -104,8 +104,6 @@ var VerifyLocal_1 = require("./entities/VerifyLocal");
104
104
  Object.defineProperty(exports, "VerifyLocal", { enumerable: true, get: function () { return VerifyLocal_1.VerifyLocal; } });
105
105
  var MasterNotification_1 = require("./entities/MasterNotification");
106
106
  Object.defineProperty(exports, "MasterNotification", { enumerable: true, get: function () { return MasterNotification_1.MasterNotification; } });
107
- var ReassignReview_1 = require("./entities/ReassignReview");
108
- Object.defineProperty(exports, "ReassignReview", { enumerable: true, get: function () { return ReassignReview_1.ReassignReview; } });
109
107
  var LocalPlan_1 = require("./entities/LocalPlan");
110
108
  Object.defineProperty(exports, "LocalPlan", { enumerable: true, get: function () { return LocalPlan_1.LocalPlan; } });
111
109
  var PartnerPermissionSection_1 = require("./entities/PartnerPermissionSection");
@@ -25,4 +25,7 @@ export declare class MasterNotifications {
25
25
  verify_local_assigned_master: number;
26
26
  verify_local_status: number;
27
27
  master_assigned_notification: number;
28
+ company_name: string;
29
+ company_profile: any;
30
+ company_status: number;
28
31
  }
@@ -133,6 +133,18 @@ var MasterNotifications = /** @class */ (function () {
133
133
  (0, typeorm_1.ViewColumn)(),
134
134
  __metadata("design:type", Number)
135
135
  ], MasterNotifications.prototype, "master_assigned_notification", void 0);
136
+ __decorate([
137
+ (0, typeorm_1.ViewColumn)(),
138
+ __metadata("design:type", String)
139
+ ], MasterNotifications.prototype, "company_name", void 0);
140
+ __decorate([
141
+ (0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
142
+ __metadata("design:type", Object)
143
+ ], MasterNotifications.prototype, "company_profile", void 0);
144
+ __decorate([
145
+ (0, typeorm_1.ViewColumn)(),
146
+ __metadata("design:type", Number)
147
+ ], MasterNotifications.prototype, "company_status", void 0);
136
148
  MasterNotifications = __decorate([
137
149
  (0, typeorm_1.ViewEntity)({
138
150
  name: "master_notifications",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "2.9.2",
3
+ "version": "2.9.4",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,8 +11,7 @@ import {
11
11
  import {
12
12
  MasterNotification,
13
13
  PartnerNotification,
14
- ReassignReview,
15
- VerifyLocal,
14
+ VerifyLocal
16
15
  } from "..";
17
16
  import { DateTransformer } from "../transformers/dateTransformer";
18
17
  import { jsonTransformer } from "../transformers/jsonTransformer";
@@ -142,15 +141,6 @@ export class Master {
142
141
  )
143
142
  master_notifications: MasterNotification[];
144
143
 
145
- @OneToMany(
146
- () => ReassignReview,
147
- (reassignReview) => reassignReview.previous_master
148
- )
149
- reassign_reviews: ReassignReview[];
150
-
151
- @OneToMany(() => ReassignReview, (reassignReview) => reassignReview.new_user)
152
- reassign_review_news: ReassignReview[];
153
-
154
144
  @ManyToMany(() => MasterNotification)
155
145
  @JoinTable({
156
146
  name: "master_to_notification",
@@ -42,7 +42,6 @@ export { AuthenticationCredential } from "./entities/AuthenticationCredential";
42
42
  export { PosSystem } from "./entities/PosSystem";
43
43
  export { VerifyLocal } from "./entities/VerifyLocal";
44
44
  export { MasterNotification } from "./entities/MasterNotification";
45
- export { ReassignReview } from "./entities/ReassignReview";
46
45
  export { LocalPlan } from "./entities/LocalPlan";
47
46
  export { PartnerPermissionSection } from "./entities/PartnerPermissionSection";
48
47
  export { PartnerPlatform } from "./entities/PartnerPlatform";
@@ -45,7 +45,6 @@ export class MasterNotifications {
45
45
  @ViewColumn()
46
46
  status: number;
47
47
 
48
- // Partner columns
49
48
  @ViewColumn()
50
49
  partner_name: string;
51
50
 
@@ -62,9 +61,8 @@ export class MasterNotifications {
62
61
  partner_phone: string;
63
62
 
64
63
  @ViewColumn()
65
- partner_status: number; // Added missing partner_status column
64
+ partner_status: number;
66
65
 
67
- // Master columns
68
66
  @ViewColumn()
69
67
  master_document: string;
70
68
 
@@ -86,7 +84,6 @@ export class MasterNotifications {
86
84
  @ViewColumn()
87
85
  master_status: number;
88
86
 
89
- // Verify local columns
90
87
  @ViewColumn()
91
88
  verify_local_id: number;
92
89
 
@@ -101,4 +98,13 @@ export class MasterNotifications {
101
98
 
102
99
  @ViewColumn()
103
100
  master_assigned_notification: number;
101
+
102
+ @ViewColumn()
103
+ company_name: string;
104
+
105
+ @ViewColumn({ transformer: jsonTransformer })
106
+ company_profile: any;
107
+
108
+ @ViewColumn()
109
+ company_status: number;
104
110
  }
@@ -1,59 +0,0 @@
1
- import {
2
- Column,
3
- Entity,
4
- JoinColumn,
5
- ManyToOne,
6
- OneToMany,
7
- PrimaryGeneratedColumn,
8
- } from 'typeorm'
9
- import { Master } from '..'
10
- import { DateTransformer } from '../transformers/dateTransformer'
11
- import { jsonTransformer } from '../transformers/jsonTransformer'
12
- import { ProductGroup } from './ProductGroup'
13
-
14
- @Entity('reassign_review', {
15
- comment: 'Tabla creada para almacenar las solicitudes de reasignar tareas.',
16
- })
17
- export class ReassignReview {
18
- @PrimaryGeneratedColumn({
19
- comment: 'Número de identificación (ID) único de cada registro.',
20
- })
21
- id: number
22
-
23
- @ManyToOne(() => Master, (master) => master.reassign_reviews, {
24
- onDelete: 'CASCADE',
25
- onUpdate: 'NO ACTION',
26
- })
27
- @JoinColumn({ name: 'previous_master' })
28
- previous_master: Master
29
-
30
- @ManyToOne(() => Master, (master) => master.reassign_review_news, {
31
- onDelete: 'CASCADE',
32
- onUpdate: 'NO ACTION',
33
- })
34
- @JoinColumn({ name: 'new_user' })
35
- new_user: Master
36
-
37
- @Column({
38
- type: 'text',
39
- nullable: true,
40
- transformer: jsonTransformer,
41
- comment:
42
- 'Configuración de tipo JSON donde se guarda la información necesaria.',
43
- })
44
- settings: any
45
-
46
- @Column({
47
- type: 'datetime',
48
- comment: 'Fecha creación del registro.',
49
- transformer: new DateTransformer(),
50
- })
51
- created: Date
52
-
53
- @Column({
54
- default: 1,
55
- comment:
56
- 'Estado del registro, es decir:\r\n\r\n1. Activo: El registro es visible.\r\n\r\n0. Inactivo: El registro no es visible.',
57
- })
58
- status: number
59
- }