test-entity-library-asm 3.9.5 → 3.9.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.
Files changed (103) hide show
  1. package/dist/CustomRepository.js +21 -109
  2. package/dist/entities/AuthenticationCredential.js +54 -57
  3. package/dist/entities/Bank.js +50 -53
  4. package/dist/entities/BusinessType.js +47 -50
  5. package/dist/entities/BusinessTypeProduct.js +68 -71
  6. package/dist/entities/Category.js +148 -151
  7. package/dist/entities/CategoryDate.js +39 -42
  8. package/dist/entities/CategorySchedule.js +41 -44
  9. package/dist/entities/City.js +70 -73
  10. package/dist/entities/CodeRedemptionHistoryCompany.js +44 -47
  11. package/dist/entities/CodeRedemptionHistoryUser.js +54 -57
  12. package/dist/entities/Company.js +169 -172
  13. package/dist/entities/Configuration.d.ts +1 -1
  14. package/dist/entities/Configuration.js +25 -26
  15. package/dist/entities/Country.js +91 -94
  16. package/dist/entities/Day.js +38 -41
  17. package/dist/entities/DecorationReserve.js +46 -49
  18. package/dist/entities/DiscountCodeCompany.js +124 -129
  19. package/dist/entities/DiscountCodeUser.js +139 -142
  20. package/dist/entities/Gallery.js +88 -91
  21. package/dist/entities/Local.js +239 -242
  22. package/dist/entities/LocalDecorationReserve.js +64 -67
  23. package/dist/entities/LocalPaymentMethod.js +41 -44
  24. package/dist/entities/LocalPlan.js +88 -91
  25. package/dist/entities/LocalQualification.js +51 -54
  26. package/dist/entities/LocalReserve.js +177 -180
  27. package/dist/entities/LocalReserveStatus.js +85 -88
  28. package/dist/entities/LocalTable.js +163 -166
  29. package/dist/entities/LocalTableReserve.js +22 -25
  30. package/dist/entities/LocalTableReservePayment.js +156 -159
  31. package/dist/entities/LocalTableZone.js +84 -87
  32. package/dist/entities/Master.js +182 -185
  33. package/dist/entities/MasterNotification.js +96 -99
  34. package/dist/entities/MasterPermission.js +65 -68
  35. package/dist/entities/MasterRole.js +83 -86
  36. package/dist/entities/Partner.js +306 -309
  37. package/dist/entities/PartnerNotification.js +97 -100
  38. package/dist/entities/PartnerPlatform.js +66 -69
  39. package/dist/entities/PartnerPlatformSection.js +74 -79
  40. package/dist/entities/PartnerPlatformSectionPermission.js +113 -118
  41. package/dist/entities/PartnerPlatformSectionPermissionAssociate.js +26 -29
  42. package/dist/entities/PartnerRole.js +93 -96
  43. package/dist/entities/PartnerSession.js +94 -97
  44. package/dist/entities/PaymentMethod.js +91 -94
  45. package/dist/entities/Plan.js +86 -89
  46. package/dist/entities/PosSystem.js +69 -74
  47. package/dist/entities/Product.js +219 -222
  48. package/dist/entities/ProductDate.js +39 -42
  49. package/dist/entities/ProductGroup.js +76 -79
  50. package/dist/entities/ProductImage.js +33 -36
  51. package/dist/entities/ProductIngredient.js +54 -57
  52. package/dist/entities/ProductSchedule.js +41 -44
  53. package/dist/entities/ProductTopping.js +47 -50
  54. package/dist/entities/ReceiptConfig.js +184 -187
  55. package/dist/entities/Region.js +46 -49
  56. package/dist/entities/Request.js +152 -155
  57. package/dist/entities/RequestInvoice.js +125 -128
  58. package/dist/entities/RequestInvoiceCategory.js +34 -37
  59. package/dist/entities/RequestLocal.js +164 -169
  60. package/dist/entities/RequestLocalHistory.js +61 -64
  61. package/dist/entities/RequestLocalPayment.js +154 -157
  62. package/dist/entities/RequestLocalTable.js +34 -37
  63. package/dist/entities/RequestPrint.js +60 -63
  64. package/dist/entities/RequestProduct.js +58 -61
  65. package/dist/entities/RequestProductGroupComplement.js +51 -56
  66. package/dist/entities/ServiceDiscountsPlan.js +30 -33
  67. package/dist/entities/ServicePlan.js +84 -87
  68. package/dist/entities/Square.js +130 -133
  69. package/dist/entities/ToppingImage.js +56 -59
  70. package/dist/entities/TypeMeasureIngredient.js +45 -48
  71. package/dist/entities/User.js +234 -237
  72. package/dist/entities/UserAddress.js +114 -117
  73. package/dist/entities/UserPaymentMethod.js +118 -121
  74. package/dist/entities/VerificationCode.js +60 -63
  75. package/dist/entities/VerifyLocal.js +142 -145
  76. package/dist/entities/productGroupComplement.js +117 -120
  77. package/dist/filters/DiscountsCodeCompanyInformation.js +153 -202
  78. package/dist/filters/DiscountsCodeUserInformation.js +173 -220
  79. package/dist/filters/LocalReservesInformation.js +35 -81
  80. package/dist/filters/LocalsCompanyInformation.js +169 -218
  81. package/dist/filters/LocalsCompanyInformationForTheTable.js +157 -203
  82. package/dist/filters/VerifyLocalsInformation.js +131 -179
  83. package/dist/index.js +55 -130
  84. package/dist/transformers/dateTransformer.js +10 -13
  85. package/dist/transformers/jsonEncryptionTransformer.d.ts +2 -0
  86. package/dist/transformers/jsonEncryptionTransformer.js +72 -0
  87. package/dist/transformers/jsonTransformer.js +2 -2
  88. package/dist/utils.js +3 -3
  89. package/dist/views/DiscountsCodeUser.js +120 -123
  90. package/dist/views/LocalReserves.js +280 -283
  91. package/dist/views/LocalTableZonesFilter.js +76 -79
  92. package/dist/views/LocalsCompany.js +172 -175
  93. package/dist/views/LocalsCompanyInformationForTheMap.js +276 -279
  94. package/dist/views/LocalsCompanyInformationForTheTable.js +384 -387
  95. package/dist/views/MasterNotifications.js +132 -135
  96. package/dist/views/PartnerNotifications.js +104 -107
  97. package/dist/views/Partners.js +140 -143
  98. package/dist/views/VerifyLocals.js +152 -155
  99. package/dist/views/ViewLocalsCompanies.js +100 -103
  100. package/package.json +3 -2
  101. package/src/entities/Configuration.ts +3 -1
  102. package/src/transformers/jsonEncryptionTransformer.ts +78 -0
  103. package/tsconfig.json +7 -3
@@ -10,104 +10,101 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.PartnerNotification = void 0;
13
- var typeorm_1 = require("typeorm");
14
- var Partner_1 = require("./Partner");
15
- var dateTransformer_1 = require("../transformers/dateTransformer");
16
- var jsonTransformer_1 = require("../transformers/jsonTransformer");
17
- var Master_1 = require("./Master");
18
- var PartnerNotification = /** @class */ (function () {
19
- function PartnerNotification() {
20
- }
21
- __decorate([
22
- (0, typeorm_1.PrimaryGeneratedColumn)({
23
- type: "int",
24
- comment: "ID único para cada notificación",
25
- }),
26
- __metadata("design:type", Number)
27
- ], PartnerNotification.prototype, "id", void 0);
28
- __decorate([
29
- (0, typeorm_1.ManyToOne)(function () { return Partner_1.Partner; }, function (partner) { return partner.partners_notification; }, {
30
- onDelete: "CASCADE",
31
- onUpdate: "NO ACTION",
32
- nullable: true,
33
- }),
34
- (0, typeorm_1.JoinColumn)({ name: "partner" }),
35
- __metadata("design:type", Object)
36
- ], PartnerNotification.prototype, "partner", void 0);
37
- __decorate([
38
- (0, typeorm_1.ManyToOne)(function () { return Master_1.Master; }, function (master) { return master.masters_notification; }, {
39
- onDelete: "CASCADE",
40
- onUpdate: "NO ACTION",
41
- nullable: true,
42
- }),
43
- (0, typeorm_1.JoinColumn)({ name: "master" }),
44
- __metadata("design:type", Object)
45
- ], PartnerNotification.prototype, "master", void 0);
46
- __decorate([
47
- (0, typeorm_1.Column)({
48
- length: 200,
49
- type: "varchar",
50
- comment: "Nombre de la notificación.",
51
- }),
52
- __metadata("design:type", String)
53
- ], PartnerNotification.prototype, "name", void 0);
54
- __decorate([
55
- (0, typeorm_1.Column)({
56
- length: 400,
57
- type: "varchar",
58
- nullable: true,
59
- default: null,
60
- comment: "Descripción de la notificación.",
61
- }),
62
- __metadata("design:type", Object)
63
- ], PartnerNotification.prototype, "description", void 0);
64
- __decorate([
65
- (0, typeorm_1.Column)({
66
- type: "text",
67
- nullable: true,
68
- default: null,
69
- transformer: jsonTransformer_1.jsonTransformer,
70
- comment: "Configuración adicional de la notificación, como enlaces, qué hace después de darle click...",
71
- }),
72
- __metadata("design:type", Object)
73
- ], PartnerNotification.prototype, "settings", void 0);
74
- __decorate([
75
- (0, typeorm_1.Column)({
76
- default: 1,
77
- type: "int",
78
- width: 1,
79
- comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
80
- }),
81
- __metadata("design:type", Number)
82
- ], PartnerNotification.prototype, "status", void 0);
83
- __decorate([
84
- (0, typeorm_1.Column)({
85
- type: "datetime",
86
- comment: "Fecha de creación de la notificación.",
87
- transformer: new dateTransformer_1.DateTransformer(),
88
- }),
89
- __metadata("design:type", Date)
90
- ], PartnerNotification.prototype, "created", void 0);
91
- __decorate([
92
- (0, typeorm_1.ManyToMany)(function () { return Partner_1.Partner; }, function (partner) { return partner.partners_to_notification; }),
93
- (0, typeorm_1.JoinTable)({
94
- name: "partner_to_notification",
95
- joinColumn: {
96
- name: "partner_notification",
97
- referencedColumnName: "id",
98
- },
99
- inverseJoinColumn: {
100
- name: "partner",
101
- referencedColumnName: "id",
102
- },
103
- }),
104
- __metadata("design:type", Array)
105
- ], PartnerNotification.prototype, "partner_to_notifications", void 0);
106
- PartnerNotification = __decorate([
107
- (0, typeorm_1.Entity)("partner_notification", {
108
- comment: "Tabla creada para almacenar las notificaciones del usuario.",
109
- })
110
- ], PartnerNotification);
111
- return PartnerNotification;
112
- }());
13
+ const typeorm_1 = require("typeorm");
14
+ const Partner_1 = require("./Partner");
15
+ const dateTransformer_1 = require("../transformers/dateTransformer");
16
+ const jsonTransformer_1 = require("../transformers/jsonTransformer");
17
+ const Master_1 = require("./Master");
18
+ let PartnerNotification = class PartnerNotification {
19
+ };
113
20
  exports.PartnerNotification = PartnerNotification;
21
+ __decorate([
22
+ (0, typeorm_1.PrimaryGeneratedColumn)({
23
+ type: "int",
24
+ comment: "ID único para cada notificación",
25
+ }),
26
+ __metadata("design:type", Number)
27
+ ], PartnerNotification.prototype, "id", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.ManyToOne)(() => Partner_1.Partner, (partner) => partner.partners_notification, {
30
+ onDelete: "CASCADE",
31
+ onUpdate: "NO ACTION",
32
+ nullable: true,
33
+ }),
34
+ (0, typeorm_1.JoinColumn)({ name: "partner" }),
35
+ __metadata("design:type", Object)
36
+ ], PartnerNotification.prototype, "partner", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.ManyToOne)(() => Master_1.Master, (master) => master.masters_notification, {
39
+ onDelete: "CASCADE",
40
+ onUpdate: "NO ACTION",
41
+ nullable: true,
42
+ }),
43
+ (0, typeorm_1.JoinColumn)({ name: "master" }),
44
+ __metadata("design:type", Object)
45
+ ], PartnerNotification.prototype, "master", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({
48
+ length: 200,
49
+ type: "varchar",
50
+ comment: "Nombre de la notificación.",
51
+ }),
52
+ __metadata("design:type", String)
53
+ ], PartnerNotification.prototype, "name", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({
56
+ length: 400,
57
+ type: "varchar",
58
+ nullable: true,
59
+ default: null,
60
+ comment: "Descripción de la notificación.",
61
+ }),
62
+ __metadata("design:type", Object)
63
+ ], PartnerNotification.prototype, "description", void 0);
64
+ __decorate([
65
+ (0, typeorm_1.Column)({
66
+ type: "text",
67
+ nullable: true,
68
+ default: null,
69
+ transformer: jsonTransformer_1.jsonTransformer,
70
+ comment: "Configuración adicional de la notificación, como enlaces, qué hace después de darle click...",
71
+ }),
72
+ __metadata("design:type", Object)
73
+ ], PartnerNotification.prototype, "settings", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.Column)({
76
+ default: 1,
77
+ type: "int",
78
+ width: 1,
79
+ comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
80
+ }),
81
+ __metadata("design:type", Number)
82
+ ], PartnerNotification.prototype, "status", void 0);
83
+ __decorate([
84
+ (0, typeorm_1.Column)({
85
+ type: "datetime",
86
+ comment: "Fecha de creación de la notificación.",
87
+ transformer: new dateTransformer_1.DateTransformer(),
88
+ }),
89
+ __metadata("design:type", Date)
90
+ ], PartnerNotification.prototype, "created", void 0);
91
+ __decorate([
92
+ (0, typeorm_1.ManyToMany)(() => Partner_1.Partner, (partner) => partner.partners_to_notification),
93
+ (0, typeorm_1.JoinTable)({
94
+ name: "partner_to_notification",
95
+ joinColumn: {
96
+ name: "partner_notification",
97
+ referencedColumnName: "id",
98
+ },
99
+ inverseJoinColumn: {
100
+ name: "partner",
101
+ referencedColumnName: "id",
102
+ },
103
+ }),
104
+ __metadata("design:type", Array)
105
+ ], PartnerNotification.prototype, "partner_to_notifications", void 0);
106
+ exports.PartnerNotification = PartnerNotification = __decorate([
107
+ (0, typeorm_1.Entity)("partner_notification", {
108
+ comment: "Tabla creada para almacenar las notificaciones del usuario.",
109
+ })
110
+ ], PartnerNotification);
@@ -10,73 +10,70 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.PartnerPlatform = void 0;
13
- var typeorm_1 = require("typeorm");
14
- var __1 = require("..");
15
- var PartnerPlatform = /** @class */ (function () {
16
- function PartnerPlatform() {
17
- }
18
- __decorate([
19
- (0, typeorm_1.PrimaryGeneratedColumn)({
20
- type: "int",
21
- comment: "Número de identificación (ID) único de cada registro.",
22
- }),
23
- __metadata("design:type", Number)
24
- ], PartnerPlatform.prototype, "id", void 0);
25
- __decorate([
26
- (0, typeorm_1.Column)({
27
- length: 10,
28
- type: "varchar",
29
- unique: true,
30
- comment: "Código de la sección.",
31
- }),
32
- __metadata("design:type", String)
33
- ], PartnerPlatform.prototype, "code", void 0);
34
- __decorate([
35
- (0, typeorm_1.Column)({
36
- length: 40,
37
- type: "varchar",
38
- comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
39
- }),
40
- __metadata("design:type", String)
41
- ], PartnerPlatform.prototype, "name", void 0);
42
- __decorate([
43
- (0, typeorm_1.Column)({
44
- length: 40,
45
- type: "varchar",
46
- comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
47
- nullable: true,
48
- default: null,
49
- }),
50
- __metadata("design:type", Object)
51
- ], PartnerPlatform.prototype, "description", void 0);
52
- __decorate([
53
- (0, typeorm_1.Column)({
54
- length: 20,
55
- type: "varchar",
56
- comment: "Icono de la sección para los permisos.",
57
- nullable: true,
58
- default: null,
59
- }),
60
- __metadata("design:type", Object)
61
- ], PartnerPlatform.prototype, "icon", void 0);
62
- __decorate([
63
- (0, typeorm_1.Column)({
64
- default: 1,
65
- type: "int",
66
- width: 1,
67
- comment: "Estado en el que se encuentra el registro:\r\n1. Activo: El partner tiene acceso.\r\n0. Inactivo: El partner no tiene acceso a la plataforma.",
68
- }),
69
- __metadata("design:type", Number)
70
- ], PartnerPlatform.prototype, "status", void 0);
71
- __decorate([
72
- (0, typeorm_1.OneToMany)(function () { return __1.PartnerPlatformSection; }, function (partnerPlatformSection) { return partnerPlatformSection.platform; }),
73
- __metadata("design:type", Array)
74
- ], PartnerPlatform.prototype, "partner_platform_sections", void 0);
75
- PartnerPlatform = __decorate([
76
- (0, typeorm_1.Entity)("partner_platform", {
77
- comment: "Tabla creada para agregar las plataformas de los usuarios.",
78
- })
79
- ], PartnerPlatform);
80
- return PartnerPlatform;
81
- }());
13
+ const typeorm_1 = require("typeorm");
14
+ const __1 = require("..");
15
+ let PartnerPlatform = class PartnerPlatform {
16
+ };
82
17
  exports.PartnerPlatform = PartnerPlatform;
18
+ __decorate([
19
+ (0, typeorm_1.PrimaryGeneratedColumn)({
20
+ type: "int",
21
+ comment: "Número de identificación (ID) único de cada registro.",
22
+ }),
23
+ __metadata("design:type", Number)
24
+ ], PartnerPlatform.prototype, "id", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)({
27
+ length: 10,
28
+ type: "varchar",
29
+ unique: true,
30
+ comment: "Código de la sección.",
31
+ }),
32
+ __metadata("design:type", String)
33
+ ], PartnerPlatform.prototype, "code", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({
36
+ length: 40,
37
+ type: "varchar",
38
+ comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
39
+ }),
40
+ __metadata("design:type", String)
41
+ ], PartnerPlatform.prototype, "name", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({
44
+ length: 40,
45
+ type: "varchar",
46
+ comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
47
+ nullable: true,
48
+ default: null,
49
+ }),
50
+ __metadata("design:type", Object)
51
+ ], PartnerPlatform.prototype, "description", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({
54
+ length: 20,
55
+ type: "varchar",
56
+ comment: "Icono de la sección para los permisos.",
57
+ nullable: true,
58
+ default: null,
59
+ }),
60
+ __metadata("design:type", Object)
61
+ ], PartnerPlatform.prototype, "icon", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({
64
+ default: 1,
65
+ type: "int",
66
+ width: 1,
67
+ comment: "Estado en el que se encuentra el registro:\r\n1. Activo: El partner tiene acceso.\r\n0. Inactivo: El partner no tiene acceso a la plataforma.",
68
+ }),
69
+ __metadata("design:type", Number)
70
+ ], PartnerPlatform.prototype, "status", void 0);
71
+ __decorate([
72
+ (0, typeorm_1.OneToMany)(() => __1.PartnerPlatformSection, (partnerPlatformSection) => partnerPlatformSection.platform),
73
+ __metadata("design:type", Array)
74
+ ], PartnerPlatform.prototype, "partner_platform_sections", void 0);
75
+ exports.PartnerPlatform = PartnerPlatform = __decorate([
76
+ (0, typeorm_1.Entity)("partner_platform", {
77
+ comment: "Tabla creada para agregar las plataformas de los usuarios.",
78
+ })
79
+ ], PartnerPlatform);
@@ -10,83 +10,78 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.PartnerPlatformSection = void 0;
13
- var typeorm_1 = require("typeorm");
14
- var __1 = require("..");
15
- var PartnerPlatformSection = /** @class */ (function () {
16
- function PartnerPlatformSection() {
17
- }
18
- __decorate([
19
- (0, typeorm_1.PrimaryGeneratedColumn)({
20
- type: "int",
21
- comment: "Número de identificación (ID) único de cada registro.",
22
- }),
23
- __metadata("design:type", Number)
24
- ], PartnerPlatformSection.prototype, "id", void 0);
25
- __decorate([
26
- (0, typeorm_1.Column)({
27
- length: 10,
28
- type: "varchar",
29
- unique: true,
30
- comment: "Código del permiso.",
31
- }),
32
- __metadata("design:type", String)
33
- ], PartnerPlatformSection.prototype, "code", void 0);
34
- __decorate([
35
- (0, typeorm_1.ManyToOne)(function () { return __1.PartnerPlatform; }, function (partnerPlatform) { return partnerPlatform.partner_platform_sections; }, {
36
- onDelete: "RESTRICT",
37
- onUpdate: "NO ACTION",
38
- }),
39
- (0, typeorm_1.JoinColumn)({ name: "platform" }),
40
- __metadata("design:type", __1.PartnerPlatform)
41
- ], PartnerPlatformSection.prototype, "platform", void 0);
42
- __decorate([
43
- (0, typeorm_1.Column)({
44
- length: 40,
45
- type: "varchar",
46
- comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
47
- }),
48
- __metadata("design:type", String)
49
- ], PartnerPlatformSection.prototype, "name", void 0);
50
- __decorate([
51
- (0, typeorm_1.Column)({
52
- length: 40,
53
- type: "varchar",
54
- comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
55
- nullable: true,
56
- default: null,
57
- }),
58
- __metadata("design:type", Object)
59
- ], PartnerPlatformSection.prototype, "description", void 0);
60
- __decorate([
61
- (0, typeorm_1.Column)({
62
- length: 20,
63
- type: "varchar",
64
- comment: "Icono de la sección para los permisos.",
65
- nullable: true,
66
- default: null,
67
- }),
68
- __metadata("design:type", Object)
69
- ], PartnerPlatformSection.prototype, "icon", void 0);
70
- __decorate([
71
- (0, typeorm_1.Column)({
72
- default: 1,
73
- type: "int",
74
- width: 1,
75
- comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
76
- }),
77
- __metadata("design:type", Number)
78
- ], PartnerPlatformSection.prototype, "status", void 0);
79
- __decorate([
80
- (0, typeorm_1.OneToMany)(function () { return __1.PartnerPlatformSectionPermission; }, function (partnerPlatformSectionPermission) {
81
- return partnerPlatformSectionPermission.section;
82
- }),
83
- __metadata("design:type", Array)
84
- ], PartnerPlatformSection.prototype, "partner_platform_sections", void 0);
85
- PartnerPlatformSection = __decorate([
86
- (0, typeorm_1.Entity)("partner_platform_section", {
87
- comment: "Tabla creada para agregar las secciones para lo permisos del partner. Acá se va a agregar las páginas y accesos de la plataforma.",
88
- })
89
- ], PartnerPlatformSection);
90
- return PartnerPlatformSection;
91
- }());
13
+ const typeorm_1 = require("typeorm");
14
+ const __1 = require("..");
15
+ let PartnerPlatformSection = class PartnerPlatformSection {
16
+ };
92
17
  exports.PartnerPlatformSection = PartnerPlatformSection;
18
+ __decorate([
19
+ (0, typeorm_1.PrimaryGeneratedColumn)({
20
+ type: "int",
21
+ comment: "Número de identificación (ID) único de cada registro.",
22
+ }),
23
+ __metadata("design:type", Number)
24
+ ], PartnerPlatformSection.prototype, "id", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)({
27
+ length: 10,
28
+ type: "varchar",
29
+ unique: true,
30
+ comment: "Código del permiso.",
31
+ }),
32
+ __metadata("design:type", String)
33
+ ], PartnerPlatformSection.prototype, "code", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.ManyToOne)(() => __1.PartnerPlatform, (partnerPlatform) => partnerPlatform.partner_platform_sections, {
36
+ onDelete: "RESTRICT",
37
+ onUpdate: "NO ACTION",
38
+ }),
39
+ (0, typeorm_1.JoinColumn)({ name: "platform" }),
40
+ __metadata("design:type", __1.PartnerPlatform)
41
+ ], PartnerPlatformSection.prototype, "platform", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({
44
+ length: 40,
45
+ type: "varchar",
46
+ comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
47
+ }),
48
+ __metadata("design:type", String)
49
+ ], PartnerPlatformSection.prototype, "name", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({
52
+ length: 40,
53
+ type: "varchar",
54
+ comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
55
+ nullable: true,
56
+ default: null,
57
+ }),
58
+ __metadata("design:type", Object)
59
+ ], PartnerPlatformSection.prototype, "description", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)({
62
+ length: 20,
63
+ type: "varchar",
64
+ comment: "Icono de la sección para los permisos.",
65
+ nullable: true,
66
+ default: null,
67
+ }),
68
+ __metadata("design:type", Object)
69
+ ], PartnerPlatformSection.prototype, "icon", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({
72
+ default: 1,
73
+ type: "int",
74
+ width: 1,
75
+ comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
76
+ }),
77
+ __metadata("design:type", Number)
78
+ ], PartnerPlatformSection.prototype, "status", void 0);
79
+ __decorate([
80
+ (0, typeorm_1.OneToMany)(() => __1.PartnerPlatformSectionPermission, (partnerPlatformSectionPermission) => partnerPlatformSectionPermission.section),
81
+ __metadata("design:type", Array)
82
+ ], PartnerPlatformSection.prototype, "partner_platform_sections", void 0);
83
+ exports.PartnerPlatformSection = PartnerPlatformSection = __decorate([
84
+ (0, typeorm_1.Entity)("partner_platform_section", {
85
+ comment: "Tabla creada para agregar las secciones para lo permisos del partner. Acá se va a agregar las páginas y accesos de la plataforma.",
86
+ })
87
+ ], PartnerPlatformSection);