test-entity-library-asm 2.9.3 → 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.
- package/dist/entities/Master.d.ts +1 -3
- package/dist/entities/Master.js +0 -8
- package/dist/entities.views.routes.d.ts +0 -1
- package/dist/entities.views.routes.js +2 -4
- package/package.json +1 -1
- package/src/entities/Master.ts +1 -11
- package/src/entities.views.routes.ts +0 -1
- package/src/entities/ReassignReview.ts +0 -59
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MasterNotification, PartnerNotification,
|
|
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
|
}
|
package/dist/entities/Master.js
CHANGED
|
@@ -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.
|
|
18
|
-
exports.CustomRepository = exports.PartnerNotifications = exports.DiscountsCodeUser = exports.Partners = exports.ViewLocalsCompanies = exports.MasterNotifications =
|
|
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");
|
package/package.json
CHANGED
package/src/entities/Master.ts
CHANGED
|
@@ -11,8 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
MasterNotification,
|
|
13
13
|
PartnerNotification,
|
|
14
|
-
|
|
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";
|
|
@@ -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
|
-
}
|