proflores-db-model 0.1.34 → 0.2.0

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 (105) hide show
  1. package/dist/entities/Bank/BankAccount.js +2 -2
  2. package/dist/entities/Bank/TransactionBank.js +2 -2
  3. package/dist/entities/BranchImage.js +2 -2
  4. package/dist/entities/Branches.js +2 -2
  5. package/dist/entities/CategoryForCosting.js +2 -2
  6. package/dist/entities/CategoryForPlantType.js +2 -2
  7. package/dist/entities/ContainerType.js +2 -2
  8. package/dist/entities/ExpenseDetail.js +2 -2
  9. package/dist/entities/ExpenseTransaction.js +2 -2
  10. package/dist/entities/ExpenseType.js +2 -2
  11. package/dist/entities/Inventory.js +2 -2
  12. package/dist/entities/InventoryImage.js +2 -2
  13. package/dist/entities/InventoryItem.js +2 -2
  14. package/dist/entities/InventoryMovement.js +2 -2
  15. package/dist/entities/ProductImage.js +2 -2
  16. package/dist/entities/Products.js +2 -2
  17. package/dist/entities/ProjectOrder.js +2 -2
  18. package/dist/entities/SupplierImage.js +2 -2
  19. package/dist/entities/Suppliers.js +2 -2
  20. package/dist/entities/UnitOfMesure.js +2 -2
  21. package/dist/entities/User.js +2 -2
  22. package/dist/index.d.ts +1 -0
  23. package/dist/index.js +1 -0
  24. package/dist/models/technical-sheet/CareInstructions.d.ts +16 -0
  25. package/dist/models/technical-sheet/CareInstructions.js +68 -0
  26. package/dist/models/technical-sheet/ClimateIdeal.d.ts +11 -0
  27. package/dist/models/technical-sheet/ClimateIdeal.js +48 -0
  28. package/dist/models/technical-sheet/FertilizationInfo.d.ts +20 -0
  29. package/dist/models/technical-sheet/FertilizationInfo.js +64 -0
  30. package/dist/models/technical-sheet/GrowthClassInfo.d.ts +15 -0
  31. package/dist/models/technical-sheet/GrowthClassInfo.js +49 -0
  32. package/dist/models/technical-sheet/HumidityInfo.d.ts +10 -0
  33. package/dist/models/technical-sheet/HumidityInfo.js +44 -0
  34. package/dist/models/technical-sheet/ImageInfo.d.ts +29 -0
  35. package/dist/models/technical-sheet/ImageInfo.js +134 -0
  36. package/dist/models/technical-sheet/LightInfo.d.ts +10 -0
  37. package/dist/models/technical-sheet/LightInfo.js +44 -0
  38. package/dist/models/technical-sheet/PestInfo.d.ts +18 -0
  39. package/dist/models/technical-sheet/PestInfo.js +76 -0
  40. package/dist/models/technical-sheet/PlantGrowthType.d.ts +15 -0
  41. package/dist/models/technical-sheet/PlantGrowthType.js +53 -0
  42. package/dist/models/technical-sheet/PlantSize.d.ts +14 -0
  43. package/dist/models/technical-sheet/PlantSize.js +62 -0
  44. package/dist/models/technical-sheet/PlantTechnicalSheet.d.ts +33 -0
  45. package/dist/models/technical-sheet/PlantTechnicalSheet.js +117 -0
  46. package/dist/models/technical-sheet/PropagationMethodInfo.d.ts +12 -0
  47. package/dist/models/technical-sheet/PropagationMethodInfo.js +52 -0
  48. package/dist/models/technical-sheet/SubstrateInfo.d.ts +13 -0
  49. package/dist/models/technical-sheet/SubstrateInfo.js +58 -0
  50. package/dist/models/technical-sheet/catalogs/climate-ideal.d.ts +11 -0
  51. package/dist/models/technical-sheet/catalogs/climate-ideal.js +14 -0
  52. package/dist/models/technical-sheet/catalogs/fertilization-info.d.ts +34 -0
  53. package/dist/models/technical-sheet/catalogs/fertilization-info.js +35 -0
  54. package/dist/models/technical-sheet/catalogs/growth-class.d.ts +10 -0
  55. package/dist/models/technical-sheet/catalogs/growth-class.js +14 -0
  56. package/dist/models/technical-sheet/catalogs/growth-type.d.ts +32 -0
  57. package/dist/models/technical-sheet/catalogs/growth-type.js +35 -0
  58. package/dist/models/technical-sheet/catalogs/humidity-info.d.ts +9 -0
  59. package/dist/models/technical-sheet/catalogs/humidity-info.js +12 -0
  60. package/dist/models/technical-sheet/catalogs/light-info.d.ts +9 -0
  61. package/dist/models/technical-sheet/catalogs/light-info.js +13 -0
  62. package/dist/models/technical-sheet/catalogs/pest-info.d.ts +32 -0
  63. package/dist/models/technical-sheet/catalogs/pest-info.js +33 -0
  64. package/dist/models/technical-sheet/catalogs/plant-size.d.ts +11 -0
  65. package/dist/models/technical-sheet/catalogs/plant-size.js +15 -0
  66. package/dist/models/technical-sheet/catalogs/propagation-method.d.ts +14 -0
  67. package/dist/models/technical-sheet/catalogs/propagation-method.js +18 -0
  68. package/dist/models/technical-sheet/catalogs/substrate-info.d.ts +17 -0
  69. package/dist/models/technical-sheet/catalogs/substrate-info.js +21 -0
  70. package/dist/models/technical-sheet/index.d.ts +13 -0
  71. package/dist/models/technical-sheet/index.js +29 -0
  72. package/dist/models/technical-sheet/utils/enumColumn.d.ts +6 -0
  73. package/dist/models/technical-sheet/utils/enumColumn.js +12 -0
  74. package/dist/models/technical-sheet/utils/makeCatalog.d.ts +8 -0
  75. package/dist/models/technical-sheet/utils/makeCatalog.js +19 -0
  76. package/dist/types/MovementType.js +1 -1
  77. package/package.json +5 -5
  78. package/src/entities/Inventory.ts +1 -0
  79. package/src/index.ts +1 -0
  80. package/src/models/technical-sheet/CareInstructions.ts +52 -0
  81. package/src/models/technical-sheet/ClimateIdeal.ts +34 -0
  82. package/src/models/technical-sheet/FertilizationInfo.ts +59 -0
  83. package/src/models/technical-sheet/GrowthClassInfo.ts +38 -0
  84. package/src/models/technical-sheet/HumidityInfo.ts +31 -0
  85. package/src/models/technical-sheet/ImageInfo.ts +111 -0
  86. package/src/models/technical-sheet/LightInfo.ts +31 -0
  87. package/src/models/technical-sheet/PestInfo.ts +65 -0
  88. package/src/models/technical-sheet/PlantGrowthType.ts +41 -0
  89. package/src/models/technical-sheet/PlantSize.ts +48 -0
  90. package/src/models/technical-sheet/PlantTechnicalSheet.ts +93 -0
  91. package/src/models/technical-sheet/PropagationMethodInfo.ts +37 -0
  92. package/src/models/technical-sheet/SubstrateInfo.ts +45 -0
  93. package/src/models/technical-sheet/catalogs/climate-ideal.ts +16 -0
  94. package/src/models/technical-sheet/catalogs/fertilization-info.ts +41 -0
  95. package/src/models/technical-sheet/catalogs/growth-class.ts +14 -0
  96. package/src/models/technical-sheet/catalogs/growth-type.ts +37 -0
  97. package/src/models/technical-sheet/catalogs/humidity-info.ts +12 -0
  98. package/src/models/technical-sheet/catalogs/light-info.ts +13 -0
  99. package/src/models/technical-sheet/catalogs/pest-info.ts +36 -0
  100. package/src/models/technical-sheet/catalogs/plant-size.ts +15 -0
  101. package/src/models/technical-sheet/catalogs/propagation-method.ts +18 -0
  102. package/src/models/technical-sheet/catalogs/substrate-info.ts +21 -0
  103. package/src/models/technical-sheet/index.ts +14 -0
  104. package/src/models/technical-sheet/utils/enumColumn.ts +17 -0
  105. package/src/models/technical-sheet/utils/makeCatalog.ts +17 -0
@@ -14,6 +14,7 @@ const typeorm_1 = require("typeorm");
14
14
  const TransactionBank_1 = require("./TransactionBank");
15
15
  let BankAccount = class BankAccount {
16
16
  };
17
+ exports.BankAccount = BankAccount;
17
18
  __decorate([
18
19
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
19
20
  __metadata("design:type", Number)
@@ -34,7 +35,6 @@ __decorate([
34
35
  (0, typeorm_1.OneToMany)(() => TransactionBank_1.TransactionBank, (transaction) => transaction.bankAccount),
35
36
  __metadata("design:type", Array)
36
37
  ], BankAccount.prototype, "transactions", void 0);
37
- BankAccount = __decorate([
38
+ exports.BankAccount = BankAccount = __decorate([
38
39
  (0, typeorm_1.Entity)("bank_accounts")
39
40
  ], BankAccount);
40
- exports.BankAccount = BankAccount;
@@ -15,6 +15,7 @@ const BankAccount_1 = require("./BankAccount");
15
15
  const ExpenseTransaction_1 = require("../ExpenseTransaction");
16
16
  let TransactionBank = class TransactionBank {
17
17
  };
18
+ exports.TransactionBank = TransactionBank;
18
19
  __decorate([
19
20
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
20
21
  __metadata("design:type", Number)
@@ -45,7 +46,6 @@ __decorate([
45
46
  (0, typeorm_1.JoinColumn)({ name: "expenseTransactionId" }),
46
47
  __metadata("design:type", ExpenseTransaction_1.ExpenseTransaction)
47
48
  ], TransactionBank.prototype, "expenseTransaction", void 0);
48
- TransactionBank = __decorate([
49
+ exports.TransactionBank = TransactionBank = __decorate([
49
50
  (0, typeorm_1.Entity)("transactions_bank")
50
51
  ], TransactionBank);
51
- exports.TransactionBank = TransactionBank;
@@ -14,6 +14,7 @@ const typeorm_1 = require("typeorm");
14
14
  const Branches_1 = require("./Branches");
15
15
  let BranchImage = class BranchImage {
16
16
  };
17
+ exports.BranchImage = BranchImage;
17
18
  __decorate([
18
19
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
19
20
  __metadata("design:type", Number)
@@ -29,7 +30,6 @@ __decorate([
29
30
  (0, typeorm_1.JoinColumn)({ name: "branchId" }),
30
31
  __metadata("design:type", Object)
31
32
  ], BranchImage.prototype, "branch", void 0);
32
- BranchImage = __decorate([
33
+ exports.BranchImage = BranchImage = __decorate([
33
34
  (0, typeorm_1.Entity)("branch_images")
34
35
  ], BranchImage);
35
- exports.BranchImage = BranchImage;
@@ -15,6 +15,7 @@ const Inventory_1 = require("./Inventory");
15
15
  const BranchImage_1 = require("./BranchImage");
16
16
  let Branch = class Branch {
17
17
  };
18
+ exports.Branch = Branch;
18
19
  __decorate([
19
20
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
20
21
  __metadata("design:type", Number)
@@ -49,7 +50,6 @@ __decorate([
49
50
  }),
50
51
  __metadata("design:type", Array)
51
52
  ], Branch.prototype, "images", void 0);
52
- Branch = __decorate([
53
+ exports.Branch = Branch = __decorate([
53
54
  (0, typeorm_1.Entity)("branches")
54
55
  ], Branch);
55
- exports.Branch = Branch;
@@ -14,6 +14,7 @@ const typeorm_1 = require("typeorm");
14
14
  const InventoryItem_1 = require("./InventoryItem");
15
15
  let CategoryForCosting = class CategoryForCosting {
16
16
  };
17
+ exports.CategoryForCosting = CategoryForCosting;
17
18
  __decorate([
18
19
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
19
20
  __metadata("design:type", Number)
@@ -26,7 +27,6 @@ __decorate([
26
27
  (0, typeorm_1.OneToMany)(() => InventoryItem_1.InventoryItem, (inventoryItem) => inventoryItem.categoryForCosting),
27
28
  __metadata("design:type", Array)
28
29
  ], CategoryForCosting.prototype, "inventoryItems", void 0);
29
- CategoryForCosting = __decorate([
30
+ exports.CategoryForCosting = CategoryForCosting = __decorate([
30
31
  (0, typeorm_1.Entity)("categories_for_costing")
31
32
  ], CategoryForCosting);
32
- exports.CategoryForCosting = CategoryForCosting;
@@ -15,6 +15,7 @@ const InventoryItem_1 = require("./InventoryItem");
15
15
  const Products_1 = require("./Products");
16
16
  let CategoryForPlantType = class CategoryForPlantType {
17
17
  };
18
+ exports.CategoryForPlantType = CategoryForPlantType;
18
19
  __decorate([
19
20
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
20
21
  __metadata("design:type", Number)
@@ -31,7 +32,6 @@ __decorate([
31
32
  (0, typeorm_1.OneToMany)(() => Products_1.Product, (product) => product.categoryForPlantType),
32
33
  __metadata("design:type", Array)
33
34
  ], CategoryForPlantType.prototype, "products", void 0);
34
- CategoryForPlantType = __decorate([
35
+ exports.CategoryForPlantType = CategoryForPlantType = __decorate([
35
36
  (0, typeorm_1.Entity)("categories_for_plant_type")
36
37
  ], CategoryForPlantType);
37
- exports.CategoryForPlantType = CategoryForPlantType;
@@ -15,6 +15,7 @@ const InventoryItem_1 = require("./InventoryItem");
15
15
  const Inventory_1 = require("./Inventory");
16
16
  let ContainerType = class ContainerType {
17
17
  };
18
+ exports.ContainerType = ContainerType;
18
19
  __decorate([
19
20
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
20
21
  __metadata("design:type", Number)
@@ -35,7 +36,6 @@ __decorate([
35
36
  (0, typeorm_1.OneToMany)(() => Inventory_1.Inventory, (inventory) => inventory.container),
36
37
  __metadata("design:type", Array)
37
38
  ], ContainerType.prototype, "inventory", void 0);
38
- ContainerType = __decorate([
39
+ exports.ContainerType = ContainerType = __decorate([
39
40
  (0, typeorm_1.Entity)("container_types")
40
41
  ], ContainerType);
41
- exports.ContainerType = ContainerType;
@@ -14,6 +14,7 @@ const typeorm_1 = require("typeorm");
14
14
  const ExpenseTransaction_1 = require("./ExpenseTransaction");
15
15
  let ExpenseDetail = class ExpenseDetail {
16
16
  };
17
+ exports.ExpenseDetail = ExpenseDetail;
17
18
  __decorate([
18
19
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
19
20
  __metadata("design:type", Number)
@@ -43,7 +44,6 @@ __decorate([
43
44
  (0, typeorm_1.Column)("boolean", { default: true }),
44
45
  __metadata("design:type", Boolean)
45
46
  ], ExpenseDetail.prototype, "isActive", void 0);
46
- ExpenseDetail = __decorate([
47
+ exports.ExpenseDetail = ExpenseDetail = __decorate([
47
48
  (0, typeorm_1.Entity)()
48
49
  ], ExpenseDetail);
49
- exports.ExpenseDetail = ExpenseDetail;
@@ -18,6 +18,7 @@ const ExpenseDetail_1 = require("./ExpenseDetail");
18
18
  const TransactionBank_1 = require("./Bank/TransactionBank");
19
19
  let ExpenseTransaction = class ExpenseTransaction {
20
20
  };
21
+ exports.ExpenseTransaction = ExpenseTransaction;
21
22
  __decorate([
22
23
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
23
24
  __metadata("design:type", Number)
@@ -68,7 +69,6 @@ __decorate([
68
69
  }),
69
70
  __metadata("design:type", TransactionBank_1.TransactionBank)
70
71
  ], ExpenseTransaction.prototype, "transactionBank", void 0);
71
- ExpenseTransaction = __decorate([
72
+ exports.ExpenseTransaction = ExpenseTransaction = __decorate([
72
73
  (0, typeorm_1.Entity)()
73
74
  ], ExpenseTransaction);
74
- exports.ExpenseTransaction = ExpenseTransaction;
@@ -14,6 +14,7 @@ exports.ExpenseType = void 0;
14
14
  const typeorm_1 = require("typeorm");
15
15
  let ExpenseType = class ExpenseType {
16
16
  };
17
+ exports.ExpenseType = ExpenseType;
17
18
  __decorate([
18
19
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
19
20
  __metadata("design:type", Number)
@@ -26,7 +27,6 @@ __decorate([
26
27
  (0, typeorm_1.Column)("text"),
27
28
  __metadata("design:type", String)
28
29
  ], ExpenseType.prototype, "description", void 0);
29
- ExpenseType = __decorate([
30
+ exports.ExpenseType = ExpenseType = __decorate([
30
31
  (0, typeorm_1.Entity)()
31
32
  ], ExpenseType);
32
- exports.ExpenseType = ExpenseType;
@@ -20,6 +20,7 @@ const InventoryImage_1 = require("./InventoryImage");
20
20
  const InventoryMovement_1 = require("./InventoryMovement");
21
21
  let Inventory = class Inventory {
22
22
  };
23
+ exports.Inventory = Inventory;
23
24
  __decorate([
24
25
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
25
26
  __metadata("design:type", Number)
@@ -75,7 +76,6 @@ __decorate([
75
76
  (0, typeorm_1.OneToMany)(() => InventoryMovement_1.InventoryMovement, (movement) => movement.inventory),
76
77
  __metadata("design:type", Array)
77
78
  ], Inventory.prototype, "movements", void 0);
78
- Inventory = __decorate([
79
+ exports.Inventory = Inventory = __decorate([
79
80
  (0, typeorm_1.Entity)("inventory")
80
81
  ], Inventory);
81
- exports.Inventory = Inventory;
@@ -14,6 +14,7 @@ const typeorm_1 = require("typeorm");
14
14
  const Inventory_1 = require("./Inventory");
15
15
  let InventoryImage = class InventoryImage {
16
16
  };
17
+ exports.InventoryImage = InventoryImage;
17
18
  __decorate([
18
19
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
19
20
  __metadata("design:type", Number)
@@ -30,7 +31,6 @@ __decorate([
30
31
  (0, typeorm_1.JoinColumn)({ name: "inventoryId" }),
31
32
  __metadata("design:type", Object)
32
33
  ], InventoryImage.prototype, "inventory", void 0);
33
- InventoryImage = __decorate([
34
+ exports.InventoryImage = InventoryImage = __decorate([
34
35
  (0, typeorm_1.Entity)("inventory_images")
35
36
  ], InventoryImage);
36
- exports.InventoryImage = InventoryImage;
@@ -18,6 +18,7 @@ const CategoryForPlantType_1 = require("./CategoryForPlantType");
18
18
  const Suppliers_1 = require("./Suppliers");
19
19
  let InventoryItem = class InventoryItem {
20
20
  };
21
+ exports.InventoryItem = InventoryItem;
21
22
  __decorate([
22
23
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
23
24
  __metadata("design:type", Number)
@@ -67,7 +68,6 @@ __decorate([
67
68
  (0, typeorm_1.JoinColumn)({ name: "supplierId" }),
68
69
  __metadata("design:type", Suppliers_1.Supplier)
69
70
  ], InventoryItem.prototype, "supplier", void 0);
70
- InventoryItem = __decorate([
71
+ exports.InventoryItem = InventoryItem = __decorate([
71
72
  (0, typeorm_1.Entity)("inventory_items")
72
73
  ], InventoryItem);
73
- exports.InventoryItem = InventoryItem;
@@ -15,6 +15,7 @@ const Inventory_1 = require("./Inventory");
15
15
  const MovementType_1 = require("../types/MovementType");
16
16
  let InventoryMovement = class InventoryMovement {
17
17
  };
18
+ exports.InventoryMovement = InventoryMovement;
18
19
  __decorate([
19
20
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
20
21
  __metadata("design:type", Number)
@@ -61,7 +62,6 @@ __decorate([
61
62
  (0, typeorm_1.Column)("varchar", { length: 50, nullable: true }),
62
63
  __metadata("design:type", String)
63
64
  ], InventoryMovement.prototype, "referenceModule", void 0);
64
- InventoryMovement = __decorate([
65
+ exports.InventoryMovement = InventoryMovement = __decorate([
65
66
  (0, typeorm_1.Entity)("inventory_movement")
66
67
  ], InventoryMovement);
67
- exports.InventoryMovement = InventoryMovement;
@@ -14,6 +14,7 @@ const typeorm_1 = require("typeorm");
14
14
  const Products_1 = require("./Products");
15
15
  let ProductImage = class ProductImage {
16
16
  };
17
+ exports.ProductImage = ProductImage;
17
18
  __decorate([
18
19
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
19
20
  __metadata("design:type", Number)
@@ -30,7 +31,6 @@ __decorate([
30
31
  (0, typeorm_1.JoinColumn)({ name: "productId" }),
31
32
  __metadata("design:type", Object)
32
33
  ], ProductImage.prototype, "product", void 0);
33
- ProductImage = __decorate([
34
+ exports.ProductImage = ProductImage = __decorate([
34
35
  (0, typeorm_1.Entity)("product_images")
35
36
  ], ProductImage);
36
- exports.ProductImage = ProductImage;
@@ -16,6 +16,7 @@ const ProductImage_1 = require("./ProductImage");
16
16
  const Inventory_1 = require("./Inventory");
17
17
  let Product = class Product {
18
18
  };
19
+ exports.Product = Product;
19
20
  __decorate([
20
21
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
21
22
  __metadata("design:type", Number)
@@ -51,7 +52,6 @@ __decorate([
51
52
  (0, typeorm_1.Column)("boolean", { default: true }),
52
53
  __metadata("design:type", Boolean)
53
54
  ], Product.prototype, "isActive", void 0);
54
- Product = __decorate([
55
+ exports.Product = Product = __decorate([
55
56
  (0, typeorm_1.Entity)("products")
56
57
  ], Product);
57
- exports.Product = Product;
@@ -14,6 +14,7 @@ exports.ProjectOrder = void 0;
14
14
  const typeorm_1 = require("typeorm");
15
15
  let ProjectOrder = class ProjectOrder {
16
16
  };
17
+ exports.ProjectOrder = ProjectOrder;
17
18
  __decorate([
18
19
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
19
20
  __metadata("design:type", Number)
@@ -46,7 +47,6 @@ __decorate([
46
47
  (0, typeorm_1.Column)("decimal"),
47
48
  __metadata("design:type", Number)
48
49
  ], ProjectOrder.prototype, "estimatedAmount", void 0);
49
- ProjectOrder = __decorate([
50
+ exports.ProjectOrder = ProjectOrder = __decorate([
50
51
  (0, typeorm_1.Entity)()
51
52
  ], ProjectOrder);
52
- exports.ProjectOrder = ProjectOrder;
@@ -14,6 +14,7 @@ const typeorm_1 = require("typeorm");
14
14
  const Suppliers_1 = require("./Suppliers");
15
15
  let SupplierImage = class SupplierImage {
16
16
  };
17
+ exports.SupplierImage = SupplierImage;
17
18
  __decorate([
18
19
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
19
20
  __metadata("design:type", Number)
@@ -30,7 +31,6 @@ __decorate([
30
31
  (0, typeorm_1.JoinColumn)({ name: "supplierId" }),
31
32
  __metadata("design:type", Object)
32
33
  ], SupplierImage.prototype, "supplier", void 0);
33
- SupplierImage = __decorate([
34
+ exports.SupplierImage = SupplierImage = __decorate([
34
35
  (0, typeorm_1.Entity)("supplier_images")
35
36
  ], SupplierImage);
36
- exports.SupplierImage = SupplierImage;
@@ -16,6 +16,7 @@ const Inventory_1 = require("./Inventory");
16
16
  const SupplierImage_1 = require("./SupplierImage");
17
17
  let Supplier = class Supplier {
18
18
  };
19
+ exports.Supplier = Supplier;
19
20
  __decorate([
20
21
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
21
22
  __metadata("design:type", Number)
@@ -54,7 +55,6 @@ __decorate([
54
55
  }),
55
56
  __metadata("design:type", Array)
56
57
  ], Supplier.prototype, "images", void 0);
57
- Supplier = __decorate([
58
+ exports.Supplier = Supplier = __decorate([
58
59
  (0, typeorm_1.Entity)("suppliers")
59
60
  ], Supplier);
60
- exports.Supplier = Supplier;
@@ -15,6 +15,7 @@ const InventoryItem_1 = require("./InventoryItem");
15
15
  const Inventory_1 = require("./Inventory");
16
16
  let UnitOfMeasure = class UnitOfMeasure {
17
17
  };
18
+ exports.UnitOfMeasure = UnitOfMeasure;
18
19
  __decorate([
19
20
  (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
20
21
  __metadata("design:type", Number)
@@ -31,7 +32,6 @@ __decorate([
31
32
  (0, typeorm_1.OneToMany)(() => Inventory_1.Inventory, (inventory) => inventory.unitOfMeasure),
32
33
  __metadata("design:type", Array)
33
34
  ], UnitOfMeasure.prototype, "inventories", void 0);
34
- UnitOfMeasure = __decorate([
35
+ exports.UnitOfMeasure = UnitOfMeasure = __decorate([
35
36
  (0, typeorm_1.Entity)("units_of_measure")
36
37
  ], UnitOfMeasure);
37
- exports.UnitOfMeasure = UnitOfMeasure;
@@ -14,6 +14,7 @@ exports.User = void 0;
14
14
  const typeorm_1 = require("typeorm");
15
15
  let User = class User {
16
16
  };
17
+ exports.User = User;
17
18
  __decorate([
18
19
  (0, typeorm_1.PrimaryGeneratedColumn)('increment'),
19
20
  __metadata("design:type", Number)
@@ -62,7 +63,6 @@ __decorate([
62
63
  (0, typeorm_1.UpdateDateColumn)({ type: 'timestamp' }),
63
64
  __metadata("design:type", Date)
64
65
  ], User.prototype, "updatedAt", void 0);
65
- User = __decorate([
66
+ exports.User = User = __decorate([
66
67
  (0, typeorm_1.Entity)('users')
67
68
  ], User);
68
- exports.User = User;
package/dist/index.d.ts CHANGED
@@ -20,3 +20,4 @@ export { BranchImage } from "./entities/BranchImage";
20
20
  export { SupplierImage } from "./entities/SupplierImage";
21
21
  export { InventoryImage } from "./entities/InventoryImage";
22
22
  export * from "./types";
23
+ export * from "./models/technical-sheet";
package/dist/index.js CHANGED
@@ -58,3 +58,4 @@ Object.defineProperty(exports, "SupplierImage", { enumerable: true, get: functio
58
58
  var InventoryImage_1 = require("./entities/InventoryImage");
59
59
  Object.defineProperty(exports, "InventoryImage", { enumerable: true, get: function () { return InventoryImage_1.InventoryImage; } });
60
60
  __exportStar(require("./types"), exports);
61
+ __exportStar(require("./models/technical-sheet"), exports);
@@ -0,0 +1,16 @@
1
+ import { ObjectLiteral } from 'typeorm';
2
+ import { PlantTechnicalSheet } from './PlantTechnicalSheet';
3
+ export declare class CareInstructions implements ObjectLiteral {
4
+ idCareInstructions: number;
5
+ light: string;
6
+ watering: string;
7
+ humidity: string;
8
+ temperature: string;
9
+ substrate: string;
10
+ fertilization: string;
11
+ pruning: string;
12
+ notes?: string;
13
+ /** Relación inversa con la ficha técnica */
14
+ plantTechnicalSheet?: PlantTechnicalSheet;
15
+ isActive: boolean;
16
+ }
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ // src/models/technical-sheet/entities/CareInstructions.ts
3
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
4
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
7
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
8
+ };
9
+ var __metadata = (this && this.__metadata) || function (k, v) {
10
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.CareInstructions = void 0;
14
+ const typeorm_1 = require("typeorm");
15
+ const PlantTechnicalSheet_1 = require("./PlantTechnicalSheet");
16
+ let CareInstructions = class CareInstructions {
17
+ };
18
+ exports.CareInstructions = CareInstructions;
19
+ __decorate([
20
+ (0, typeorm_1.PrimaryGeneratedColumn)('increment'),
21
+ __metadata("design:type", Number)
22
+ ], CareInstructions.prototype, "idCareInstructions", void 0);
23
+ __decorate([
24
+ (0, typeorm_1.Column)('text'),
25
+ __metadata("design:type", String)
26
+ ], CareInstructions.prototype, "light", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)('text'),
29
+ __metadata("design:type", String)
30
+ ], CareInstructions.prototype, "watering", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)('text'),
33
+ __metadata("design:type", String)
34
+ ], CareInstructions.prototype, "humidity", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)('text'),
37
+ __metadata("design:type", String)
38
+ ], CareInstructions.prototype, "temperature", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)('text'),
41
+ __metadata("design:type", String)
42
+ ], CareInstructions.prototype, "substrate", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)('text'),
45
+ __metadata("design:type", String)
46
+ ], CareInstructions.prototype, "fertilization", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)('text'),
49
+ __metadata("design:type", String)
50
+ ], CareInstructions.prototype, "pruning", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)('text', { nullable: true }),
53
+ __metadata("design:type", String)
54
+ ], CareInstructions.prototype, "notes", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.OneToOne)(() => PlantTechnicalSheet_1.PlantTechnicalSheet, (sheet) => sheet.care, {
57
+ onDelete: 'CASCADE',
58
+ }),
59
+ (0, typeorm_1.JoinColumn)({ name: 'plantTechnicalSheetId' }),
60
+ __metadata("design:type", PlantTechnicalSheet_1.PlantTechnicalSheet)
61
+ ], CareInstructions.prototype, "plantTechnicalSheet", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ type: 'boolean', default: true }),
64
+ __metadata("design:type", Boolean)
65
+ ], CareInstructions.prototype, "isActive", void 0);
66
+ exports.CareInstructions = CareInstructions = __decorate([
67
+ (0, typeorm_1.Entity)('care_instructions')
68
+ ], CareInstructions);
@@ -0,0 +1,11 @@
1
+ import { ObjectLiteral } from 'typeorm';
2
+ import { ClimateType } from './catalogs/climate-ideal';
3
+ import { ImageInfo } from './ImageInfo';
4
+ export declare class ClimateIdeal implements ObjectLiteral {
5
+ idClimateIdeal: number;
6
+ type: ClimateType;
7
+ description?: string;
8
+ temperatureRangeC?: [number, number];
9
+ images?: ImageInfo[];
10
+ isActive: boolean;
11
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ClimateIdeal = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const climate_ideal_1 = require("./catalogs/climate-ideal");
15
+ const ImageInfo_1 = require("./ImageInfo");
16
+ const enumColumn_1 = require("./utils/enumColumn");
17
+ let ClimateIdeal = class ClimateIdeal {
18
+ };
19
+ exports.ClimateIdeal = ClimateIdeal;
20
+ __decorate([
21
+ (0, typeorm_1.PrimaryGeneratedColumn)('increment'),
22
+ __metadata("design:type", Number)
23
+ ], ClimateIdeal.prototype, "idClimateIdeal", void 0);
24
+ __decorate([
25
+ (0, enumColumn_1.EnumColumn)(Object.keys(climate_ideal_1.CLIMATE)),
26
+ __metadata("design:type", String)
27
+ ], ClimateIdeal.prototype, "type", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)('text', { nullable: true }),
30
+ __metadata("design:type", String)
31
+ ], ClimateIdeal.prototype, "description", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)('simple-json', { nullable: true }),
34
+ __metadata("design:type", Array)
35
+ ], ClimateIdeal.prototype, "temperatureRangeC", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.OneToMany)(() => ImageInfo_1.ImageInfo, (image) => image.climateIdeal, {
38
+ cascade: true,
39
+ }),
40
+ __metadata("design:type", Array)
41
+ ], ClimateIdeal.prototype, "images", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'boolean', default: true }),
44
+ __metadata("design:type", Boolean)
45
+ ], ClimateIdeal.prototype, "isActive", void 0);
46
+ exports.ClimateIdeal = ClimateIdeal = __decorate([
47
+ (0, typeorm_1.Entity)('climate_ideal')
48
+ ], ClimateIdeal);
@@ -0,0 +1,20 @@
1
+ import { ObjectLiteral } from "typeorm";
2
+ import { FertilizerType, FertilizerFrequency, FertilizerMethod } from "./catalogs/fertilization-info";
3
+ import { PlantTechnicalSheet } from "./PlantTechnicalSheet";
4
+ import { ImageInfo } from "./ImageInfo";
5
+ export declare class FertilizationInfo implements ObjectLiteral {
6
+ idFertilizationInfo: number;
7
+ /** Tipo de fertilizante según catálogo */
8
+ type: FertilizerType;
9
+ /** Frecuencia de aplicación según catálogo */
10
+ frequency: FertilizerFrequency;
11
+ /** Método de aplicación según catálogo */
12
+ method: FertilizerMethod;
13
+ formula?: string;
14
+ notes?: string;
15
+ /** Imágenes asociadas */
16
+ images?: ImageInfo[];
17
+ /** Ficha técnica a la que pertenece esta fertilización */
18
+ plant: PlantTechnicalSheet;
19
+ isActive: boolean;
20
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.FertilizationInfo = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const fertilization_info_1 = require("./catalogs/fertilization-info");
15
+ const PlantTechnicalSheet_1 = require("./PlantTechnicalSheet");
16
+ const ImageInfo_1 = require("./ImageInfo");
17
+ const enumColumn_1 = require("./utils/enumColumn");
18
+ let FertilizationInfo = class FertilizationInfo {
19
+ };
20
+ exports.FertilizationInfo = FertilizationInfo;
21
+ __decorate([
22
+ (0, typeorm_1.PrimaryGeneratedColumn)("increment"),
23
+ __metadata("design:type", Number)
24
+ ], FertilizationInfo.prototype, "idFertilizationInfo", void 0);
25
+ __decorate([
26
+ (0, enumColumn_1.EnumColumn)(Object.keys(fertilization_info_1.FERTILIZER_TYPE)),
27
+ __metadata("design:type", String)
28
+ ], FertilizationInfo.prototype, "type", void 0);
29
+ __decorate([
30
+ (0, enumColumn_1.EnumColumn)(Object.keys(fertilization_info_1.FERTILIZER_FREQ)),
31
+ __metadata("design:type", String)
32
+ ], FertilizationInfo.prototype, "frequency", void 0);
33
+ __decorate([
34
+ (0, enumColumn_1.EnumColumn)(Object.keys(fertilization_info_1.FERTILIZER_METHOD)),
35
+ __metadata("design:type", String)
36
+ ], FertilizationInfo.prototype, "method", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)("text", { nullable: true }),
39
+ __metadata("design:type", String)
40
+ ], FertilizationInfo.prototype, "formula", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)("text", { nullable: true }),
43
+ __metadata("design:type", String)
44
+ ], FertilizationInfo.prototype, "notes", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.OneToMany)(() => ImageInfo_1.ImageInfo, (image) => image.fertilizationInfo, {
47
+ cascade: true,
48
+ }),
49
+ __metadata("design:type", Array)
50
+ ], FertilizationInfo.prototype, "images", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.ManyToOne)(() => PlantTechnicalSheet_1.PlantTechnicalSheet, (sheet) => sheet.fertilization, {
53
+ nullable: false,
54
+ onDelete: "CASCADE",
55
+ }),
56
+ __metadata("design:type", PlantTechnicalSheet_1.PlantTechnicalSheet)
57
+ ], FertilizationInfo.prototype, "plant", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ type: "boolean", default: true }),
60
+ __metadata("design:type", Boolean)
61
+ ], FertilizationInfo.prototype, "isActive", void 0);
62
+ exports.FertilizationInfo = FertilizationInfo = __decorate([
63
+ (0, typeorm_1.Entity)("fertilization_info")
64
+ ], FertilizationInfo);
@@ -0,0 +1,15 @@
1
+ import { ObjectLiteral } from 'typeorm';
2
+ import { GrowthClass } from './catalogs/growth-class';
3
+ import { PlantTechnicalSheet } from './PlantTechnicalSheet';
4
+ import { ImageInfo } from './ImageInfo';
5
+ export declare class GrowthClassInfo implements ObjectLiteral {
6
+ idGrowthClassInfo: number;
7
+ /** Clase de crecimiento (catálogo) */
8
+ type: GrowthClass;
9
+ description?: string;
10
+ /** Imágenes asociadas */
11
+ images?: ImageInfo[];
12
+ /** Fichas técnicas asociadas */
13
+ sheets: PlantTechnicalSheet[];
14
+ isActive: boolean;
15
+ }