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,155 +10,152 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Category = void 0;
13
- var typeorm_1 = require("typeorm");
14
- var __1 = require("..");
15
- var dateTransformer_1 = require("../transformers/dateTransformer");
16
- var jsonTransformer_1 = require("../transformers/jsonTransformer");
17
- var Local_1 = require("./Local");
18
- var Product_1 = require("./Product");
19
- var Category = /** @class */ (function () {
20
- function Category() {
21
- }
22
- __decorate([
23
- (0, typeorm_1.PrimaryGeneratedColumn)({
24
- type: "int",
25
- comment: "Número de identificación (ID) único de cada registro.",
26
- }),
27
- __metadata("design:type", Number)
28
- ], Category.prototype, "id", void 0);
29
- __decorate([
30
- (0, typeorm_1.ManyToOne)(function () { return Local_1.Local; }, function (local) { return local.categories; }, {
31
- onDelete: "CASCADE",
32
- onUpdate: "NO ACTION",
33
- }),
34
- (0, typeorm_1.JoinColumn)({ name: "local" }),
35
- __metadata("design:type", Local_1.Local)
36
- ], Category.prototype, "local", void 0);
37
- __decorate([
38
- (0, typeorm_1.Column)({ length: 30, type: "varchar", comment: "Nombre de la categoría." }),
39
- __metadata("design:type", String)
40
- ], Category.prototype, "name", void 0);
41
- __decorate([
42
- (0, typeorm_1.Column)({
43
- type: "int",
44
- comment: "¿En qué posición se va a mostrar esta categoría?",
45
- }),
46
- __metadata("design:type", Number)
47
- ], Category.prototype, "position", void 0);
48
- __decorate([
49
- (0, typeorm_1.Column)({
50
- nullable: true,
51
- type: "int",
52
- width: 1,
53
- comment: "Campo para saber el tipo de horario que se va a mostrar en la aplicación:\n 1. Días. \n2. Fecha específica.",
54
- default: null,
55
- }),
56
- __metadata("design:type", Object)
57
- ], Category.prototype, "type_sales_hours", void 0);
58
- __decorate([
59
- (0, typeorm_1.Column)({
60
- nullable: true,
61
- type: "int",
62
- width: 1,
63
- comment: "Columna para saber el tipo de horario qué el usuario quiere para el elemento: \n1. Mostrar (Show). \n2. Ocultar (Hide)",
64
- default: null,
65
- }),
66
- __metadata("design:type", Object)
67
- ], Category.prototype, "show_or_hide_item", void 0);
68
- __decorate([
69
- (0, typeorm_1.ManyToOne)(function () { return __1.Partner; }, function (partner) { return partner.partners_category_created_by; }, {
70
- onDelete: "RESTRICT",
71
- onUpdate: "NO ACTION",
72
- }),
73
- (0, typeorm_1.JoinColumn)({ name: "created_by" }),
74
- __metadata("design:type", __1.Partner)
75
- ], Category.prototype, "created_by", void 0);
76
- __decorate([
77
- (0, typeorm_1.Column)({
78
- type: "datetime",
79
- transformer: new dateTransformer_1.DateTransformer(),
80
- comment: "Fecha de creación del registro.",
81
- }),
82
- __metadata("design:type", Date)
83
- ], Category.prototype, "created", void 0);
84
- __decorate([
85
- (0, typeorm_1.Column)({
86
- type: "datetime",
87
- nullable: true,
88
- default: null,
89
- transformer: new dateTransformer_1.DateTransformer(),
90
- comment: "Fecha de actualización del registro.",
91
- }),
92
- __metadata("design:type", Object)
93
- ], Category.prototype, "updated", void 0);
94
- __decorate([
95
- (0, typeorm_1.ManyToOne)(function () { return __1.Partner; }, function (partner) { return partner.partners_category_update_by; }, {
96
- onDelete: "RESTRICT",
97
- onUpdate: "NO ACTION",
98
- nullable: true,
99
- }),
100
- (0, typeorm_1.JoinColumn)({ name: "updated_by" }),
101
- __metadata("design:type", Object)
102
- ], Category.prototype, "updated_by", void 0);
103
- __decorate([
104
- (0, typeorm_1.Column)({
105
- type: "mediumtext",
106
- nullable: true,
107
- default: null,
108
- transformer: jsonTransformer_1.jsonTransformer,
109
- comment: "Valores qué se van a mostrar mientras se aprueban los nuevos cambios.",
110
- }),
111
- __metadata("design:type", Object)
112
- ], Category.prototype, "current_values", void 0);
113
- __decorate([
114
- (0, typeorm_1.Column)({
115
- default: 1,
116
- type: "int",
117
- width: 1,
118
- comment: "Estado en el que está el elemento: \n0. Inactivo. \n1. Activo. \n2. Eliminado.",
119
- }),
120
- __metadata("design:type", Number)
121
- ], Category.prototype, "status", void 0);
122
- __decorate([
123
- (0, typeorm_1.Column)({
124
- default: 1,
125
- type: "int",
126
- width: 1,
127
- comment: "Estado en el que se encuentra la revisión de los cambios: \n1. En revisión. \n2. Rechazado.",
128
- }),
129
- __metadata("design:type", Number)
130
- ], Category.prototype, "status_review", void 0);
131
- __decorate([
132
- (0, typeorm_1.Column)({
133
- nullable: true,
134
- default: null,
135
- type: "varchar",
136
- length: 600,
137
- comment: "Comentario del revisor al rechazar una categoría (master).",
138
- }),
139
- __metadata("design:type", Object)
140
- ], Category.prototype, "review_comment", void 0);
141
- __decorate([
142
- (0, typeorm_1.OneToMany)(function () { return Product_1.Product; }, function (product) { return product.category; }),
143
- __metadata("design:type", Array)
144
- ], Category.prototype, "products", void 0);
145
- __decorate([
146
- (0, typeorm_1.OneToMany)(function () { return __1.ScheduleCategory; }, function (scheduleCategory) { return scheduleCategory.category; }),
147
- __metadata("design:type", Array)
148
- ], Category.prototype, "category_schedules", void 0);
149
- __decorate([
150
- (0, typeorm_1.OneToMany)(function () { return __1.CategoryDate; }, function (categoryDate) { return categoryDate.category; }),
151
- __metadata("design:type", Array)
152
- ], Category.prototype, "category_dates", void 0);
153
- __decorate([
154
- (0, typeorm_1.OneToMany)(function () { return __1.RequestInvoiceCategory; }, function (requestInvoiceCategory) { return requestInvoiceCategory.category; }),
155
- __metadata("design:type", Array)
156
- ], Category.prototype, "request_invoice_categories", void 0);
157
- Category = __decorate([
158
- (0, typeorm_1.Entity)({
159
- comment: "Lista de categorías que tiene un local en su menú: promos, de la semana, completo...\r\n\r\nEsas categorías será visibles a nivel app como un menu horizontal donde cada categoría tendrá sus productos.",
160
- })
161
- ], Category);
162
- return Category;
163
- }());
13
+ const typeorm_1 = require("typeorm");
14
+ const __1 = require("..");
15
+ const dateTransformer_1 = require("../transformers/dateTransformer");
16
+ const jsonTransformer_1 = require("../transformers/jsonTransformer");
17
+ const Local_1 = require("./Local");
18
+ const Product_1 = require("./Product");
19
+ let Category = class Category {
20
+ };
164
21
  exports.Category = Category;
22
+ __decorate([
23
+ (0, typeorm_1.PrimaryGeneratedColumn)({
24
+ type: "int",
25
+ comment: "Número de identificación (ID) único de cada registro.",
26
+ }),
27
+ __metadata("design:type", Number)
28
+ ], Category.prototype, "id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.ManyToOne)(() => Local_1.Local, (local) => local.categories, {
31
+ onDelete: "CASCADE",
32
+ onUpdate: "NO ACTION",
33
+ }),
34
+ (0, typeorm_1.JoinColumn)({ name: "local" }),
35
+ __metadata("design:type", Local_1.Local)
36
+ ], Category.prototype, "local", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ length: 30, type: "varchar", comment: "Nombre de la categoría." }),
39
+ __metadata("design:type", String)
40
+ ], Category.prototype, "name", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({
43
+ type: "int",
44
+ comment: "¿En qué posición se va a mostrar esta categoría?",
45
+ }),
46
+ __metadata("design:type", Number)
47
+ ], Category.prototype, "position", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)({
50
+ nullable: true,
51
+ type: "int",
52
+ width: 1,
53
+ comment: "Campo para saber el tipo de horario que se va a mostrar en la aplicación:\n 1. Días. \n2. Fecha específica.",
54
+ default: null,
55
+ }),
56
+ __metadata("design:type", Object)
57
+ ], Category.prototype, "type_sales_hours", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({
60
+ nullable: true,
61
+ type: "int",
62
+ width: 1,
63
+ comment: "Columna para saber el tipo de horario qué el usuario quiere para el elemento: \n1. Mostrar (Show). \n2. Ocultar (Hide)",
64
+ default: null,
65
+ }),
66
+ __metadata("design:type", Object)
67
+ ], Category.prototype, "show_or_hide_item", void 0);
68
+ __decorate([
69
+ (0, typeorm_1.ManyToOne)(() => __1.Partner, (partner) => partner.partners_category_created_by, {
70
+ onDelete: "RESTRICT",
71
+ onUpdate: "NO ACTION",
72
+ }),
73
+ (0, typeorm_1.JoinColumn)({ name: "created_by" }),
74
+ __metadata("design:type", __1.Partner)
75
+ ], Category.prototype, "created_by", void 0);
76
+ __decorate([
77
+ (0, typeorm_1.Column)({
78
+ type: "datetime",
79
+ transformer: new dateTransformer_1.DateTransformer(),
80
+ comment: "Fecha de creación del registro.",
81
+ }),
82
+ __metadata("design:type", Date)
83
+ ], Category.prototype, "created", void 0);
84
+ __decorate([
85
+ (0, typeorm_1.Column)({
86
+ type: "datetime",
87
+ nullable: true,
88
+ default: null,
89
+ transformer: new dateTransformer_1.DateTransformer(),
90
+ comment: "Fecha de actualización del registro.",
91
+ }),
92
+ __metadata("design:type", Object)
93
+ ], Category.prototype, "updated", void 0);
94
+ __decorate([
95
+ (0, typeorm_1.ManyToOne)(() => __1.Partner, (partner) => partner.partners_category_update_by, {
96
+ onDelete: "RESTRICT",
97
+ onUpdate: "NO ACTION",
98
+ nullable: true,
99
+ }),
100
+ (0, typeorm_1.JoinColumn)({ name: "updated_by" }),
101
+ __metadata("design:type", Object)
102
+ ], Category.prototype, "updated_by", void 0);
103
+ __decorate([
104
+ (0, typeorm_1.Column)({
105
+ type: "mediumtext",
106
+ nullable: true,
107
+ default: null,
108
+ transformer: jsonTransformer_1.jsonTransformer,
109
+ comment: "Valores qué se van a mostrar mientras se aprueban los nuevos cambios.",
110
+ }),
111
+ __metadata("design:type", Object)
112
+ ], Category.prototype, "current_values", void 0);
113
+ __decorate([
114
+ (0, typeorm_1.Column)({
115
+ default: 1,
116
+ type: "int",
117
+ width: 1,
118
+ comment: "Estado en el que está el elemento: \n0. Inactivo. \n1. Activo. \n2. Eliminado.",
119
+ }),
120
+ __metadata("design:type", Number)
121
+ ], Category.prototype, "status", void 0);
122
+ __decorate([
123
+ (0, typeorm_1.Column)({
124
+ default: 1,
125
+ type: "int",
126
+ width: 1,
127
+ comment: "Estado en el que se encuentra la revisión de los cambios: \n1. En revisión. \n2. Rechazado.",
128
+ }),
129
+ __metadata("design:type", Number)
130
+ ], Category.prototype, "status_review", void 0);
131
+ __decorate([
132
+ (0, typeorm_1.Column)({
133
+ nullable: true,
134
+ default: null,
135
+ type: "varchar",
136
+ length: 600,
137
+ comment: "Comentario del revisor al rechazar una categoría (master).",
138
+ }),
139
+ __metadata("design:type", Object)
140
+ ], Category.prototype, "review_comment", void 0);
141
+ __decorate([
142
+ (0, typeorm_1.OneToMany)(() => Product_1.Product, (product) => product.category),
143
+ __metadata("design:type", Array)
144
+ ], Category.prototype, "products", void 0);
145
+ __decorate([
146
+ (0, typeorm_1.OneToMany)(() => __1.ScheduleCategory, (scheduleCategory) => scheduleCategory.category),
147
+ __metadata("design:type", Array)
148
+ ], Category.prototype, "category_schedules", void 0);
149
+ __decorate([
150
+ (0, typeorm_1.OneToMany)(() => __1.CategoryDate, (categoryDate) => categoryDate.category),
151
+ __metadata("design:type", Array)
152
+ ], Category.prototype, "category_dates", void 0);
153
+ __decorate([
154
+ (0, typeorm_1.OneToMany)(() => __1.RequestInvoiceCategory, (requestInvoiceCategory) => requestInvoiceCategory.category),
155
+ __metadata("design:type", Array)
156
+ ], Category.prototype, "request_invoice_categories", void 0);
157
+ exports.Category = Category = __decorate([
158
+ (0, typeorm_1.Entity)({
159
+ comment: "Lista de categorías que tiene un local en su menú: promos, de la semana, completo...\r\n\r\nEsas categorías será visibles a nivel app como un menu horizontal donde cada categoría tendrá sus productos.",
160
+ })
161
+ ], Category);
@@ -10,46 +10,43 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CategoryDate = void 0;
13
- var typeorm_1 = require("typeorm");
14
- var Category_1 = require("./Category");
15
- var CategoryDate = /** @class */ (function () {
16
- function CategoryDate() {
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
- ], CategoryDate.prototype, "id", void 0);
25
- __decorate([
26
- (0, typeorm_1.ManyToOne)(function () { return Category_1.Category; }, function (category) { return category.category_dates; }, {
27
- onDelete: "CASCADE",
28
- onUpdate: "NO ACTION",
29
- }),
30
- (0, typeorm_1.JoinColumn)({ name: "category" }),
31
- __metadata("design:type", Category_1.Category)
32
- ], CategoryDate.prototype, "category", void 0);
33
- __decorate([
34
- (0, typeorm_1.Column)({
35
- type: "date",
36
- comment: "Fecha en la que va a estar disponible la categoría.",
37
- }),
38
- __metadata("design:type", Date)
39
- ], CategoryDate.prototype, "date", void 0);
40
- __decorate([
41
- (0, typeorm_1.Column)({ type: "varchar", length: 5, comment: "Hora de inicio." }),
42
- __metadata("design:type", String)
43
- ], CategoryDate.prototype, "start_time", void 0);
44
- __decorate([
45
- (0, typeorm_1.Column)({ type: "varchar", length: 5, comment: "Hora de finalización." }),
46
- __metadata("design:type", String)
47
- ], CategoryDate.prototype, "end_time", void 0);
48
- CategoryDate = __decorate([
49
- (0, typeorm_1.Entity)("category_date", {
50
- comment: "Fechas específicas donde se pueden agregar horarios.",
51
- })
52
- ], CategoryDate);
53
- return CategoryDate;
54
- }());
13
+ const typeorm_1 = require("typeorm");
14
+ const Category_1 = require("./Category");
15
+ let CategoryDate = class CategoryDate {
16
+ };
55
17
  exports.CategoryDate = CategoryDate;
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
+ ], CategoryDate.prototype, "id", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.ManyToOne)(() => Category_1.Category, (category) => category.category_dates, {
27
+ onDelete: "CASCADE",
28
+ onUpdate: "NO ACTION",
29
+ }),
30
+ (0, typeorm_1.JoinColumn)({ name: "category" }),
31
+ __metadata("design:type", Category_1.Category)
32
+ ], CategoryDate.prototype, "category", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({
35
+ type: "date",
36
+ comment: "Fecha en la que va a estar disponible la categoría.",
37
+ }),
38
+ __metadata("design:type", Date)
39
+ ], CategoryDate.prototype, "date", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ type: "varchar", length: 5, comment: "Hora de inicio." }),
42
+ __metadata("design:type", String)
43
+ ], CategoryDate.prototype, "start_time", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ type: "varchar", length: 5, comment: "Hora de finalización." }),
46
+ __metadata("design:type", String)
47
+ ], CategoryDate.prototype, "end_time", void 0);
48
+ exports.CategoryDate = CategoryDate = __decorate([
49
+ (0, typeorm_1.Entity)("category_date", {
50
+ comment: "Fechas específicas donde se pueden agregar horarios.",
51
+ })
52
+ ], CategoryDate);
@@ -10,48 +10,45 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ScheduleCategory = void 0;
13
- var typeorm_1 = require("typeorm");
14
- var Category_1 = require("./Category");
15
- var Day_1 = require("./Day");
16
- var ScheduleCategory = /** @class */ (function () {
17
- function ScheduleCategory() {
18
- }
19
- __decorate([
20
- (0, typeorm_1.PrimaryGeneratedColumn)({
21
- type: "int",
22
- comment: "Número de identificación (ID) único de cada registro.",
23
- }),
24
- __metadata("design:type", Number)
25
- ], ScheduleCategory.prototype, "id", void 0);
26
- __decorate([
27
- (0, typeorm_1.ManyToOne)(function () { return Category_1.Category; }, function (category) { return category.category_schedules; }, {
28
- onDelete: "CASCADE",
29
- onUpdate: "NO ACTION",
30
- }),
31
- (0, typeorm_1.JoinColumn)({ name: "category" }),
32
- __metadata("design:type", Category_1.Category)
33
- ], ScheduleCategory.prototype, "category", void 0);
34
- __decorate([
35
- (0, typeorm_1.ManyToOne)(function () { return Day_1.Day; }, function (day) { return day.category_schedules_day; }, {
36
- onDelete: "RESTRICT",
37
- onUpdate: "NO ACTION",
38
- }),
39
- (0, typeorm_1.JoinColumn)({ name: "day" }),
40
- __metadata("design:type", Day_1.Day)
41
- ], ScheduleCategory.prototype, "day", void 0);
42
- __decorate([
43
- (0, typeorm_1.Column)({ type: "varchar", length: 5, comment: "Hora de inicio." }),
44
- __metadata("design:type", String)
45
- ], ScheduleCategory.prototype, "start_time", void 0);
46
- __decorate([
47
- (0, typeorm_1.Column)({ type: "varchar", length: 5, comment: "Hora de finalización." }),
48
- __metadata("design:type", String)
49
- ], ScheduleCategory.prototype, "end_time", void 0);
50
- ScheduleCategory = __decorate([
51
- (0, typeorm_1.Entity)("category_schedule", {
52
- comment: "Horarios en que se puede ver una categoría, si se desea que una categoría esté los lunes de 7 am a 5 pm se puede hacer.",
53
- })
54
- ], ScheduleCategory);
55
- return ScheduleCategory;
56
- }());
13
+ const typeorm_1 = require("typeorm");
14
+ const Category_1 = require("./Category");
15
+ const Day_1 = require("./Day");
16
+ let ScheduleCategory = class ScheduleCategory {
17
+ };
57
18
  exports.ScheduleCategory = ScheduleCategory;
19
+ __decorate([
20
+ (0, typeorm_1.PrimaryGeneratedColumn)({
21
+ type: "int",
22
+ comment: "Número de identificación (ID) único de cada registro.",
23
+ }),
24
+ __metadata("design:type", Number)
25
+ ], ScheduleCategory.prototype, "id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.ManyToOne)(() => Category_1.Category, (category) => category.category_schedules, {
28
+ onDelete: "CASCADE",
29
+ onUpdate: "NO ACTION",
30
+ }),
31
+ (0, typeorm_1.JoinColumn)({ name: "category" }),
32
+ __metadata("design:type", Category_1.Category)
33
+ ], ScheduleCategory.prototype, "category", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.ManyToOne)(() => Day_1.Day, (day) => day.category_schedules_day, {
36
+ onDelete: "RESTRICT",
37
+ onUpdate: "NO ACTION",
38
+ }),
39
+ (0, typeorm_1.JoinColumn)({ name: "day" }),
40
+ __metadata("design:type", Day_1.Day)
41
+ ], ScheduleCategory.prototype, "day", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: "varchar", length: 5, comment: "Hora de inicio." }),
44
+ __metadata("design:type", String)
45
+ ], ScheduleCategory.prototype, "start_time", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: "varchar", length: 5, comment: "Hora de finalización." }),
48
+ __metadata("design:type", String)
49
+ ], ScheduleCategory.prototype, "end_time", void 0);
50
+ exports.ScheduleCategory = ScheduleCategory = __decorate([
51
+ (0, typeorm_1.Entity)("category_schedule", {
52
+ comment: "Horarios en que se puede ver una categoría, si se desea que una categoría esté los lunes de 7 am a 5 pm se puede hacer.",
53
+ })
54
+ ], ScheduleCategory);
@@ -10,77 +10,74 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.City = void 0;
13
- var typeorm_1 = require("typeorm");
14
- var __1 = require("..");
15
- var Company_1 = require("./Company");
16
- var Local_1 = require("./Local");
17
- var Master_1 = require("./Master");
18
- var Partner_1 = require("./Partner");
19
- var Region_1 = require("./Region");
20
- var User_1 = require("./User");
21
- var UserAddress_1 = require("./UserAddress");
22
- var City = /** @class */ (function () {
23
- function City() {
24
- }
25
- __decorate([
26
- (0, typeorm_1.PrimaryGeneratedColumn)({
27
- type: "int",
28
- comment: "Número de identificación (ID) único de cada registro.",
29
- }),
30
- __metadata("design:type", Number)
31
- ], City.prototype, "id", void 0);
32
- __decorate([
33
- (0, typeorm_1.ManyToOne)(function () { return Region_1.Region; }, function (region) { return region.cities; }, {
34
- onDelete: "RESTRICT",
35
- onUpdate: "RESTRICT",
36
- }),
37
- (0, typeorm_1.JoinColumn)({ name: "region" }),
38
- __metadata("design:type", Region_1.Region)
39
- ], City.prototype, "region", void 0);
40
- __decorate([
41
- (0, typeorm_1.Column)({ length: 50, type: "varchar", comment: "Nombre de la ciudad." }),
42
- __metadata("design:type", String)
43
- ], City.prototype, "name", void 0);
44
- __decorate([
45
- (0, typeorm_1.Column)({
46
- default: 1,
47
- type: "int",
48
- width: 1,
49
- comment: "Estado de la ciudad, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
50
- }),
51
- __metadata("design:type", Number)
52
- ], City.prototype, "status", void 0);
53
- __decorate([
54
- (0, typeorm_1.OneToMany)(function () { return User_1.User; }, function (user) { return user.city; }),
55
- __metadata("design:type", Array)
56
- ], City.prototype, "users", void 0);
57
- __decorate([
58
- (0, typeorm_1.OneToMany)(function () { return Company_1.Company; }, function (Company) { return Company.city; }),
59
- __metadata("design:type", Array)
60
- ], City.prototype, "companies", void 0);
61
- __decorate([
62
- (0, typeorm_1.OneToMany)(function () { return Local_1.Local; }, function (local) { return local.city; }),
63
- __metadata("design:type", Array)
64
- ], City.prototype, "locals", void 0);
65
- __decorate([
66
- (0, typeorm_1.OneToMany)(function () { return Partner_1.Partner; }, function (partner) { return partner.city; }),
67
- __metadata("design:type", Array)
68
- ], City.prototype, "partners", void 0);
69
- __decorate([
70
- (0, typeorm_1.OneToMany)(function () { return Master_1.Master; }, function (master) { return master.city; }),
71
- __metadata("design:type", Array)
72
- ], City.prototype, "masters", void 0);
73
- __decorate([
74
- (0, typeorm_1.OneToMany)(function () { return UserAddress_1.UserAddress; }, function (userAddress) { return userAddress.city; }),
75
- __metadata("design:type", Array)
76
- ], City.prototype, "user_addresses", void 0);
77
- __decorate([
78
- (0, typeorm_1.OneToMany)(function () { return __1.Square; }, function (square) { return square.city; }),
79
- __metadata("design:type", Array)
80
- ], City.prototype, "squares", void 0);
81
- City = __decorate([
82
- (0, typeorm_1.Entity)({ comment: "Ciudades donde está visible la plataforma." })
83
- ], City);
84
- return City;
85
- }());
13
+ const typeorm_1 = require("typeorm");
14
+ const __1 = require("..");
15
+ const Company_1 = require("./Company");
16
+ const Local_1 = require("./Local");
17
+ const Master_1 = require("./Master");
18
+ const Partner_1 = require("./Partner");
19
+ const Region_1 = require("./Region");
20
+ const User_1 = require("./User");
21
+ const UserAddress_1 = require("./UserAddress");
22
+ let City = class City {
23
+ };
86
24
  exports.City = City;
25
+ __decorate([
26
+ (0, typeorm_1.PrimaryGeneratedColumn)({
27
+ type: "int",
28
+ comment: "Número de identificación (ID) único de cada registro.",
29
+ }),
30
+ __metadata("design:type", Number)
31
+ ], City.prototype, "id", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.ManyToOne)(() => Region_1.Region, (region) => region.cities, {
34
+ onDelete: "RESTRICT",
35
+ onUpdate: "RESTRICT",
36
+ }),
37
+ (0, typeorm_1.JoinColumn)({ name: "region" }),
38
+ __metadata("design:type", Region_1.Region)
39
+ ], City.prototype, "region", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ length: 50, type: "varchar", comment: "Nombre de la ciudad." }),
42
+ __metadata("design:type", String)
43
+ ], City.prototype, "name", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({
46
+ default: 1,
47
+ type: "int",
48
+ width: 1,
49
+ comment: "Estado de la ciudad, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
50
+ }),
51
+ __metadata("design:type", Number)
52
+ ], City.prototype, "status", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.OneToMany)(() => User_1.User, (user) => user.city),
55
+ __metadata("design:type", Array)
56
+ ], City.prototype, "users", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.OneToMany)(() => Company_1.Company, (Company) => Company.city),
59
+ __metadata("design:type", Array)
60
+ ], City.prototype, "companies", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.OneToMany)(() => Local_1.Local, (local) => local.city),
63
+ __metadata("design:type", Array)
64
+ ], City.prototype, "locals", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.OneToMany)(() => Partner_1.Partner, (partner) => partner.city),
67
+ __metadata("design:type", Array)
68
+ ], City.prototype, "partners", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.OneToMany)(() => Master_1.Master, (master) => master.city),
71
+ __metadata("design:type", Array)
72
+ ], City.prototype, "masters", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.OneToMany)(() => UserAddress_1.UserAddress, (userAddress) => userAddress.city),
75
+ __metadata("design:type", Array)
76
+ ], City.prototype, "user_addresses", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.OneToMany)(() => __1.Square, (square) => square.city),
79
+ __metadata("design:type", Array)
80
+ ], City.prototype, "squares", void 0);
81
+ exports.City = City = __decorate([
82
+ (0, typeorm_1.Entity)({ comment: "Ciudades donde está visible la plataforma." })
83
+ ], City);