proflores-db-model 0.1.34 → 0.2.1
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/Bank/BankAccount.js +2 -2
- package/dist/entities/Bank/TransactionBank.js +2 -2
- package/dist/entities/BranchImage.js +2 -2
- package/dist/entities/Branches.js +2 -2
- package/dist/entities/CategoryForCosting.js +2 -2
- package/dist/entities/CategoryForPlantType.js +2 -2
- package/dist/entities/ContainerType.js +2 -2
- package/dist/entities/ExpenseDetail.js +2 -2
- package/dist/entities/ExpenseTransaction.js +2 -2
- package/dist/entities/ExpenseType.js +2 -2
- package/dist/entities/Inventory.js +2 -2
- package/dist/entities/InventoryImage.js +2 -2
- package/dist/entities/InventoryItem.js +2 -2
- package/dist/entities/InventoryMovement.js +2 -2
- package/dist/entities/ProductImage.js +2 -2
- package/dist/entities/Products.js +2 -2
- package/dist/entities/ProjectOrder.js +2 -2
- package/dist/entities/SupplierImage.js +2 -2
- package/dist/entities/Suppliers.js +2 -2
- package/dist/entities/UnitOfMesure.js +2 -2
- package/dist/entities/User.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/technical-sheet/CareInstructions.d.ts +13 -0
- package/dist/models/technical-sheet/CareInstructions.js +60 -0
- package/dist/models/technical-sheet/ClimateIdeal.d.ts +11 -0
- package/dist/models/technical-sheet/ClimateIdeal.js +46 -0
- package/dist/models/technical-sheet/FertilizationInfo.d.ts +17 -0
- package/dist/models/technical-sheet/FertilizationInfo.js +54 -0
- package/dist/models/technical-sheet/GrowthClassInfo.d.ts +12 -0
- package/dist/models/technical-sheet/GrowthClassInfo.js +44 -0
- package/dist/models/technical-sheet/HumidityInfo.d.ts +10 -0
- package/dist/models/technical-sheet/HumidityInfo.js +44 -0
- package/dist/models/technical-sheet/ImageInfo.d.ts +29 -0
- package/dist/models/technical-sheet/ImageInfo.js +124 -0
- package/dist/models/technical-sheet/LightInfo.d.ts +10 -0
- package/dist/models/technical-sheet/LightInfo.js +44 -0
- package/dist/models/technical-sheet/PestInfo.d.ts +18 -0
- package/dist/models/technical-sheet/PestInfo.js +76 -0
- package/dist/models/technical-sheet/PlantGrowthType.d.ts +13 -0
- package/dist/models/technical-sheet/PlantGrowthType.js +48 -0
- package/dist/models/technical-sheet/PlantSize.d.ts +12 -0
- package/dist/models/technical-sheet/PlantSize.js +53 -0
- package/dist/models/technical-sheet/PlantTechnicalSheet.d.ts +33 -0
- package/dist/models/technical-sheet/PlantTechnicalSheet.js +117 -0
- package/dist/models/technical-sheet/PropagationMethodInfo.d.ts +10 -0
- package/dist/models/technical-sheet/PropagationMethodInfo.js +47 -0
- package/dist/models/technical-sheet/SubstrateInfo.d.ts +11 -0
- package/dist/models/technical-sheet/SubstrateInfo.js +49 -0
- package/dist/models/technical-sheet/catalogs/climate-ideal.d.ts +11 -0
- package/dist/models/technical-sheet/catalogs/climate-ideal.js +14 -0
- package/dist/models/technical-sheet/catalogs/fertilization-info.d.ts +34 -0
- package/dist/models/technical-sheet/catalogs/fertilization-info.js +35 -0
- package/dist/models/technical-sheet/catalogs/growth-class.d.ts +10 -0
- package/dist/models/technical-sheet/catalogs/growth-class.js +14 -0
- package/dist/models/technical-sheet/catalogs/growth-type.d.ts +32 -0
- package/dist/models/technical-sheet/catalogs/growth-type.js +35 -0
- package/dist/models/technical-sheet/catalogs/humidity-info.d.ts +9 -0
- package/dist/models/technical-sheet/catalogs/humidity-info.js +12 -0
- package/dist/models/technical-sheet/catalogs/light-info.d.ts +9 -0
- package/dist/models/technical-sheet/catalogs/light-info.js +13 -0
- package/dist/models/technical-sheet/catalogs/pest-info.d.ts +32 -0
- package/dist/models/technical-sheet/catalogs/pest-info.js +33 -0
- package/dist/models/technical-sheet/catalogs/plant-size.d.ts +11 -0
- package/dist/models/technical-sheet/catalogs/plant-size.js +15 -0
- package/dist/models/technical-sheet/catalogs/propagation-method.d.ts +14 -0
- package/dist/models/technical-sheet/catalogs/propagation-method.js +18 -0
- package/dist/models/technical-sheet/catalogs/substrate-info.d.ts +17 -0
- package/dist/models/technical-sheet/catalogs/substrate-info.js +21 -0
- package/dist/models/technical-sheet/index.d.ts +13 -0
- package/dist/models/technical-sheet/index.js +29 -0
- package/dist/models/technical-sheet/utils/enumColumn.d.ts +6 -0
- package/dist/models/technical-sheet/utils/enumColumn.js +12 -0
- package/dist/models/technical-sheet/utils/makeCatalog.d.ts +8 -0
- package/dist/models/technical-sheet/utils/makeCatalog.js +19 -0
- package/dist/types/MovementType.js +1 -1
- package/package.json +5 -5
- package/src/entities/Inventory.ts +1 -0
- package/src/index.ts +1 -0
- package/src/models/technical-sheet/CareInstructions.ts +45 -0
- package/src/models/technical-sheet/ClimateIdeal.ts +32 -0
- package/src/models/technical-sheet/FertilizationInfo.ts +50 -0
- package/src/models/technical-sheet/GrowthClassInfo.ts +35 -0
- package/src/models/technical-sheet/HumidityInfo.ts +31 -0
- package/src/models/technical-sheet/ImageInfo.ts +102 -0
- package/src/models/technical-sheet/LightInfo.ts +31 -0
- package/src/models/technical-sheet/PestInfo.ts +65 -0
- package/src/models/technical-sheet/PlantGrowthType.ts +38 -0
- package/src/models/technical-sheet/PlantSize.ts +41 -0
- package/src/models/technical-sheet/PlantTechnicalSheet.ts +93 -0
- package/src/models/technical-sheet/PropagationMethodInfo.ts +33 -0
- package/src/models/technical-sheet/SubstrateInfo.ts +36 -0
- package/src/models/technical-sheet/catalogs/climate-ideal.ts +16 -0
- package/src/models/technical-sheet/catalogs/fertilization-info.ts +41 -0
- package/src/models/technical-sheet/catalogs/growth-class.ts +14 -0
- package/src/models/technical-sheet/catalogs/growth-type.ts +37 -0
- package/src/models/technical-sheet/catalogs/humidity-info.ts +12 -0
- package/src/models/technical-sheet/catalogs/light-info.ts +13 -0
- package/src/models/technical-sheet/catalogs/pest-info.ts +36 -0
- package/src/models/technical-sheet/catalogs/plant-size.ts +15 -0
- package/src/models/technical-sheet/catalogs/propagation-method.ts +18 -0
- package/src/models/technical-sheet/catalogs/substrate-info.ts +21 -0
- package/src/models/technical-sheet/index.ts +14 -0
- package/src/models/technical-sheet/utils/enumColumn.ts +17 -0
- package/src/models/technical-sheet/utils/makeCatalog.ts +17 -0
|
@@ -0,0 +1,47 @@
|
|
|
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.PropagationMethodInfo = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const propagation_method_1 = require("./catalogs/propagation-method");
|
|
15
|
+
const ImageInfo_1 = require("./ImageInfo");
|
|
16
|
+
const enumColumn_1 = require("./utils/enumColumn");
|
|
17
|
+
let PropagationMethodInfo = class PropagationMethodInfo {
|
|
18
|
+
};
|
|
19
|
+
exports.PropagationMethodInfo = PropagationMethodInfo;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("increment"),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], PropagationMethodInfo.prototype, "idPropagationMethodInfo", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, enumColumn_1.EnumColumn)(Object.keys(propagation_method_1.PROPAGATION), {
|
|
26
|
+
nullable: false,
|
|
27
|
+
}),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], PropagationMethodInfo.prototype, "type", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)("text", { nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], PropagationMethodInfo.prototype, "description", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.OneToMany)(() => ImageInfo_1.ImageInfo, (image) => image.propagationMethod, {
|
|
36
|
+
cascade: true,
|
|
37
|
+
nullable: true,
|
|
38
|
+
}),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], PropagationMethodInfo.prototype, "images", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], PropagationMethodInfo.prototype, "isActive", void 0);
|
|
45
|
+
exports.PropagationMethodInfo = PropagationMethodInfo = __decorate([
|
|
46
|
+
(0, typeorm_1.Entity)("propagation_method_info")
|
|
47
|
+
], PropagationMethodInfo);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ObjectLiteral } from 'typeorm';
|
|
2
|
+
import { SubstrateType } from './catalogs/substrate-info';
|
|
3
|
+
import { ImageInfo } from './ImageInfo';
|
|
4
|
+
export declare class SubstrateInfo implements ObjectLiteral {
|
|
5
|
+
idSubstrateInfo: number;
|
|
6
|
+
type: SubstrateType;
|
|
7
|
+
recipe?: string;
|
|
8
|
+
notes?: string;
|
|
9
|
+
images?: ImageInfo[];
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.SubstrateInfo = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const substrate_info_1 = require("./catalogs/substrate-info");
|
|
15
|
+
const ImageInfo_1 = require("./ImageInfo");
|
|
16
|
+
const enumColumn_1 = require("./utils/enumColumn");
|
|
17
|
+
let SubstrateInfo = class SubstrateInfo {
|
|
18
|
+
};
|
|
19
|
+
exports.SubstrateInfo = SubstrateInfo;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('increment'),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], SubstrateInfo.prototype, "idSubstrateInfo", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, enumColumn_1.EnumColumn)(Object.keys(substrate_info_1.SUBSTRATE)),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], SubstrateInfo.prototype, "type", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)('text', { nullable: true }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SubstrateInfo.prototype, "recipe", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)('text', { nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], SubstrateInfo.prototype, "notes", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.OneToMany)(() => ImageInfo_1.ImageInfo, (image) => image.substrateInfo, {
|
|
38
|
+
cascade: true,
|
|
39
|
+
nullable: true,
|
|
40
|
+
}),
|
|
41
|
+
__metadata("design:type", Array)
|
|
42
|
+
], SubstrateInfo.prototype, "images", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], SubstrateInfo.prototype, "isActive", void 0);
|
|
47
|
+
exports.SubstrateInfo = SubstrateInfo = __decorate([
|
|
48
|
+
(0, typeorm_1.Entity)('substrate_info')
|
|
49
|
+
], SubstrateInfo);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const CLIMATE: {
|
|
2
|
+
TROPICAL: string;
|
|
3
|
+
SUBTROPICAL: string;
|
|
4
|
+
TEMPLADO: string;
|
|
5
|
+
MEDITERRÁNEO: string;
|
|
6
|
+
DESÉRTICO: string;
|
|
7
|
+
FRÍO_MONTANO: string;
|
|
8
|
+
UNIVERSAL: string;
|
|
9
|
+
};
|
|
10
|
+
export type ClimateType = keyof typeof CLIMATE;
|
|
11
|
+
export type TemperatureRangeC = [min: number, max: number];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CLIMATE = void 0;
|
|
4
|
+
// src/models/technical-sheet/catalogs/climate-ideal.ts
|
|
5
|
+
const makeCatalog_1 = require("../utils/makeCatalog");
|
|
6
|
+
exports.CLIMATE = (0, makeCatalog_1.makeCatalog)({
|
|
7
|
+
TROPICAL: '18–35 °C, sin heladas.',
|
|
8
|
+
SUBTROPICAL: '12–30 °C, invierno suave.',
|
|
9
|
+
TEMPLADO: '5–28 °C, estaciones marcadas.',
|
|
10
|
+
MEDITERRÁNEO: 'Invierno templado, verano seco.',
|
|
11
|
+
DESÉRTICO: '5–45 °C, muy seco.',
|
|
12
|
+
FRÍO_MONTANO: '–5–20 °C, heladas frecuentes.',
|
|
13
|
+
UNIVERSAL: 'Amplio rango 5–35 °C.',
|
|
14
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const FERTILIZER_TYPE: {
|
|
2
|
+
ORGÁNICO: string;
|
|
3
|
+
MINERAL: string;
|
|
4
|
+
LIBERACIÓN_LENTA: string;
|
|
5
|
+
LÍQUIDO: string;
|
|
6
|
+
FOLIAR: string;
|
|
7
|
+
ESPECÍFICO_PARA_FLORACIÓN: string;
|
|
8
|
+
ESPECÍFICO_PARA_HOJAS: string;
|
|
9
|
+
ENRAIZANTE: string;
|
|
10
|
+
ABONO_COMPLETO: string;
|
|
11
|
+
NINGUNO: string;
|
|
12
|
+
};
|
|
13
|
+
export type FertilizerType = keyof typeof FERTILIZER_TYPE;
|
|
14
|
+
export declare const FERTILIZER_FREQ: {
|
|
15
|
+
SEMANAL: string;
|
|
16
|
+
CADA_15_DÍAS: string;
|
|
17
|
+
MENSUAL: string;
|
|
18
|
+
CADA_3_MESES: string;
|
|
19
|
+
EN_PRIMAVERA_VERANO: string;
|
|
20
|
+
EN_PERÍODOS_ACTIVOS: string;
|
|
21
|
+
OCASIONAL: string;
|
|
22
|
+
NINGUNA: string;
|
|
23
|
+
};
|
|
24
|
+
export type FertilizerFrequency = keyof typeof FERTILIZER_FREQ;
|
|
25
|
+
export declare const FERTILIZER_METHOD: {
|
|
26
|
+
EN_EL_RIEGO: string;
|
|
27
|
+
DIRECTO_EN_SUSTRATO: string;
|
|
28
|
+
FOLIAR: string;
|
|
29
|
+
GRANULADO: string;
|
|
30
|
+
EN_TABLETAS: string;
|
|
31
|
+
HIDROPONÍA: string;
|
|
32
|
+
NO_APLICA: string;
|
|
33
|
+
};
|
|
34
|
+
export type FertilizerMethod = keyof typeof FERTILIZER_METHOD;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FERTILIZER_METHOD = exports.FERTILIZER_FREQ = exports.FERTILIZER_TYPE = void 0;
|
|
4
|
+
const makeCatalog_1 = require("../utils/makeCatalog");
|
|
5
|
+
exports.FERTILIZER_TYPE = (0, makeCatalog_1.makeCatalog)({
|
|
6
|
+
ORGÁNICO: 'Humus, compost, estiércol.',
|
|
7
|
+
MINERAL: 'Sales NPK solubles.',
|
|
8
|
+
LIBERACIÓN_LENTA: 'Gránulos 3–6 meses.',
|
|
9
|
+
LÍQUIDO: 'Soluble para riego.',
|
|
10
|
+
FOLIAR: 'Aplicación foliar.',
|
|
11
|
+
ESPECÍFICO_PARA_FLORACIÓN: 'Alto P y K.',
|
|
12
|
+
ESPECÍFICO_PARA_HOJAS: 'Alto N.',
|
|
13
|
+
ENRAIZANTE: 'Auxinas para raíces.',
|
|
14
|
+
ABONO_COMPLETO: 'NPK balanceado + micro.',
|
|
15
|
+
NINGUNO: 'No se fertiliza regularmente.',
|
|
16
|
+
});
|
|
17
|
+
exports.FERTILIZER_FREQ = (0, makeCatalog_1.makeCatalog)({
|
|
18
|
+
SEMANAL: 'Cada semana.',
|
|
19
|
+
CADA_15_DÍAS: 'Cada 15 días.',
|
|
20
|
+
MENSUAL: 'Mensual.',
|
|
21
|
+
CADA_3_MESES: 'Trimestral.',
|
|
22
|
+
EN_PRIMAVERA_VERANO: 'Solo temporada activa.',
|
|
23
|
+
EN_PERÍODOS_ACTIVOS: 'Cuando la planta crece.',
|
|
24
|
+
OCASIONAL: 'Ante carencias.',
|
|
25
|
+
NINGUNA: 'Nunca.',
|
|
26
|
+
});
|
|
27
|
+
exports.FERTILIZER_METHOD = (0, makeCatalog_1.makeCatalog)({
|
|
28
|
+
EN_EL_RIEGO: 'Disuelto en riego.',
|
|
29
|
+
DIRECTO_EN_SUSTRATO: 'Espolvoreado en sustrato.',
|
|
30
|
+
FOLIAR: 'Pulverizado en hojas.',
|
|
31
|
+
GRANULADO: 'Gránulos superficiales.',
|
|
32
|
+
EN_TABLETAS: 'Tabletas enterradas.',
|
|
33
|
+
HIDROPONÍA: 'En solución nutritiva.',
|
|
34
|
+
NO_APLICA: 'No corresponde.',
|
|
35
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const GROWTH_CLASS: {
|
|
2
|
+
EFÍMERA_ANUAL: string;
|
|
3
|
+
HEMIANUAL_ESTACIONAL: string;
|
|
4
|
+
PERENNE_CRECIMIENTO_CONTINUO: string;
|
|
5
|
+
LEÑOSA_LENTA: string;
|
|
6
|
+
HERBÁCEA_MODERADA: string;
|
|
7
|
+
TREPADORA_RÁPIDA: string;
|
|
8
|
+
ESTOLONIFERA_EXPANSIVA: string;
|
|
9
|
+
};
|
|
10
|
+
export type GrowthClass = keyof typeof GROWTH_CLASS;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GROWTH_CLASS = void 0;
|
|
4
|
+
// src/models/technical-sheet/catalogs/growth-class.ts
|
|
5
|
+
const makeCatalog_1 = require("../utils/makeCatalog");
|
|
6
|
+
exports.GROWTH_CLASS = (0, makeCatalog_1.makeCatalog)({
|
|
7
|
+
EFÍMERA_ANUAL: 'Ciclo <1 año.',
|
|
8
|
+
HEMIANUAL_ESTACIONAL: 'Activa 1–2 estaciones/año.',
|
|
9
|
+
PERENNE_CRECIMIENTO_CONTINUO: 'Activa todo el año.',
|
|
10
|
+
LEÑOSA_LENTA: '<20 cm/año.',
|
|
11
|
+
HERBÁCEA_MODERADA: '30–80 cm/año.',
|
|
12
|
+
TREPADORA_RÁPIDA: '>1.5 m/año.',
|
|
13
|
+
ESTOLONIFERA_EXPANSIVA: 'Expansión horizontal veloz.',
|
|
14
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const GROWTH_AREA: {
|
|
2
|
+
INTERIOR: string;
|
|
3
|
+
EXTERIOR_SOMBRA: string;
|
|
4
|
+
EXTERIOR_MEDIA_SOMBRA: string;
|
|
5
|
+
EXTERIOR_SOL_DIRECTO: string;
|
|
6
|
+
INVERNADERO: string;
|
|
7
|
+
ACUÁTICA: string;
|
|
8
|
+
TERRARIO: string;
|
|
9
|
+
};
|
|
10
|
+
export type PlantGrowthArea = keyof typeof GROWTH_AREA;
|
|
11
|
+
export declare const GROWTH_HABIT: {
|
|
12
|
+
ERGIDA: string;
|
|
13
|
+
TREPADORA: string;
|
|
14
|
+
COLGANTE: string;
|
|
15
|
+
HELECHO: string;
|
|
16
|
+
SUCULENTA: string;
|
|
17
|
+
CACTUS: string;
|
|
18
|
+
BROMELIA: string;
|
|
19
|
+
ORQUÍDEA_EPÍFITA: string;
|
|
20
|
+
ARBUSTO: string;
|
|
21
|
+
COBERTORA: string;
|
|
22
|
+
ENREDADERA: string;
|
|
23
|
+
FLOR_PERENNE: string;
|
|
24
|
+
ÁRBOL: string;
|
|
25
|
+
PALMERA: string;
|
|
26
|
+
PASTO_ORNAMENTAL: string;
|
|
27
|
+
FLOTANTE: string;
|
|
28
|
+
EMERGENTE: string;
|
|
29
|
+
MUSGO: string;
|
|
30
|
+
MINI_HELECHO: string;
|
|
31
|
+
};
|
|
32
|
+
export type PlantGrowthHabit = keyof typeof GROWTH_HABIT;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// src/models/technical-sheet/catalogs.ts
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.GROWTH_HABIT = exports.GROWTH_AREA = void 0;
|
|
5
|
+
const makeCatalog_1 = require("../utils/makeCatalog");
|
|
6
|
+
exports.GROWTH_AREA = (0, makeCatalog_1.makeCatalog)({
|
|
7
|
+
INTERIOR: 'Dentro de edificaciones; temperatura controlada.',
|
|
8
|
+
EXTERIOR_SOMBRA: '<2 h de sol directo.',
|
|
9
|
+
EXTERIOR_MEDIA_SOMBRA: '2–4 h de sol suave.',
|
|
10
|
+
EXTERIOR_SOL_DIRECTO: '>6 h de sol pleno.',
|
|
11
|
+
INVERNADERO: 'Estructura con temp. y HR controladas.',
|
|
12
|
+
ACUÁTICA: 'Raíces en agua o sustrato inundado.',
|
|
13
|
+
TERRARIO: 'Recinto cerrado, humedad muy alta.',
|
|
14
|
+
});
|
|
15
|
+
exports.GROWTH_HABIT = (0, makeCatalog_1.makeCatalog)({
|
|
16
|
+
ERGIDA: 'Porte vertical.',
|
|
17
|
+
TREPADORA: 'Escala tutores o cuelga.',
|
|
18
|
+
COLGANTE: 'Tallos péndulos.',
|
|
19
|
+
HELECHO: 'Frondas divididas.',
|
|
20
|
+
SUCULENTA: 'Tejidos carnosos con agua.',
|
|
21
|
+
CACTUS: 'Tallo suculento con espinas.',
|
|
22
|
+
BROMELIA: 'Epífita de copa.',
|
|
23
|
+
ORQUÍDEA_EPÍFITA: 'Raíces aéreas.',
|
|
24
|
+
ARBUSTO: 'Leñoso <5 m.',
|
|
25
|
+
COBERTORA: 'Cubre el suelo.',
|
|
26
|
+
ENREDADERA: 'Tallo que se enrosca.',
|
|
27
|
+
FLOR_PERENNE: 'Herbácea plurianual.',
|
|
28
|
+
ÁRBOL: 'Leñoso ≥5 m.',
|
|
29
|
+
PALMERA: 'Tronco no ramificado.',
|
|
30
|
+
PASTO_ORNAMENTAL: 'Gramínea decorativa.',
|
|
31
|
+
FLOTANTE: 'Flota sobre el agua.',
|
|
32
|
+
EMERGENTE: 'Sobresale del agua.',
|
|
33
|
+
MUSGO: 'Briofita sin raíces.',
|
|
34
|
+
MINI_HELECHO: 'Helecho pequeño.',
|
|
35
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HUMIDITY = void 0;
|
|
4
|
+
const makeCatalog_1 = require("../utils/makeCatalog");
|
|
5
|
+
exports.HUMIDITY = (0, makeCatalog_1.makeCatalog)({
|
|
6
|
+
XERICO: 'Sequía extrema (<10 % HR).',
|
|
7
|
+
SECO: 'Riego escaso (sustrato seco).',
|
|
8
|
+
MESICO: 'Sustrato ligeramente húmedo.',
|
|
9
|
+
HUMEDO: 'HR 60–80 %; riego frecuente.',
|
|
10
|
+
HUMEDO_CONSTANTE: 'Sustrato siempre húmedo.',
|
|
11
|
+
ACUATICO: 'Raíces permanentemente sumergidas.',
|
|
12
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LIGHT = void 0;
|
|
4
|
+
// src/models/technical-sheet/catalogs/light-info.ts
|
|
5
|
+
const makeCatalog_1 = require("../utils/makeCatalog");
|
|
6
|
+
exports.LIGHT = (0, makeCatalog_1.makeCatalog)({
|
|
7
|
+
SOMBRA_PROFUNDA: '<2 h luz directa (100–200 lux).',
|
|
8
|
+
SOMBRA_PARCIAL: '2–4 h luz filtrada (200–500 lux).',
|
|
9
|
+
LUZ_INDIRECTA_BRILLANTE: 'Junto a ventana (500–1500 lux).',
|
|
10
|
+
SOL_SUAVE: 'Sol suave 2–4 h.',
|
|
11
|
+
SOL_PARCIAL: 'Sol 4–6 h.',
|
|
12
|
+
SOL_PLENO: 'Sol >6 h; >30 klux.',
|
|
13
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const PLANT_PART: {
|
|
2
|
+
HOJAS: string;
|
|
3
|
+
TALLOS: string;
|
|
4
|
+
RAÍCES: string;
|
|
5
|
+
FLORES: string;
|
|
6
|
+
FRUTOS: string;
|
|
7
|
+
TODA_LA_PLANTA: string;
|
|
8
|
+
};
|
|
9
|
+
export type PlantPart = keyof typeof PLANT_PART;
|
|
10
|
+
export declare const CONTROL_METHOD: {
|
|
11
|
+
JABÓN_POTÁSICO: string;
|
|
12
|
+
ACEITE_DE_NEEM: string;
|
|
13
|
+
INSECTICIDA_SISTÉMICO: string;
|
|
14
|
+
INSECTICIDA_CONTACTO: string;
|
|
15
|
+
FUNGICIDA_SISTÉMICO: string;
|
|
16
|
+
FUNGICIDA_CONTACTO: string;
|
|
17
|
+
TRAMPAS: string;
|
|
18
|
+
PODA_SANITARIA: string;
|
|
19
|
+
CONTROL_BIOLÓGICO: string;
|
|
20
|
+
OTRO: string;
|
|
21
|
+
};
|
|
22
|
+
export type ControlMethod = keyof typeof CONTROL_METHOD;
|
|
23
|
+
export declare const PEST_TYPE: {
|
|
24
|
+
INSECTO: string;
|
|
25
|
+
HONGO: string;
|
|
26
|
+
ÁCARO: string;
|
|
27
|
+
BACTERIA: string;
|
|
28
|
+
VIRUS: string;
|
|
29
|
+
NEMATODO: string;
|
|
30
|
+
OTRO: string;
|
|
31
|
+
};
|
|
32
|
+
export type PestType = keyof typeof PEST_TYPE;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PEST_TYPE = exports.CONTROL_METHOD = exports.PLANT_PART = void 0;
|
|
4
|
+
const makeCatalog_1 = require("../utils/makeCatalog");
|
|
5
|
+
exports.PLANT_PART = (0, makeCatalog_1.makeCatalog)({
|
|
6
|
+
HOJAS: 'Hojas.',
|
|
7
|
+
TALLOS: 'Tallos.',
|
|
8
|
+
RAÍCES: 'Raíces.',
|
|
9
|
+
FLORES: 'Flores.',
|
|
10
|
+
FRUTOS: 'Frutos.',
|
|
11
|
+
TODA_LA_PLANTA: 'Daño sistémico.',
|
|
12
|
+
});
|
|
13
|
+
exports.CONTROL_METHOD = (0, makeCatalog_1.makeCatalog)({
|
|
14
|
+
JABÓN_POTÁSICO: 'Insecticida suave.',
|
|
15
|
+
ACEITE_DE_NEEM: 'Azadiractina sistémica.',
|
|
16
|
+
INSECTICIDA_SISTÉMICO: 'Absorción interna.',
|
|
17
|
+
INSECTICIDA_CONTACTO: 'Mata por contacto.',
|
|
18
|
+
FUNGICIDA_SISTÉMICO: 'Control interno hongos.',
|
|
19
|
+
FUNGICIDA_CONTACTO: 'Barrera superficial.',
|
|
20
|
+
TRAMPAS: 'Captura física.',
|
|
21
|
+
PODA_SANITARIA: 'Eliminación partes infectadas.',
|
|
22
|
+
CONTROL_BIOLÓGICO: 'Depredadores benéficos.',
|
|
23
|
+
OTRO: 'Otro método.',
|
|
24
|
+
});
|
|
25
|
+
exports.PEST_TYPE = (0, makeCatalog_1.makeCatalog)({
|
|
26
|
+
INSECTO: 'Insectos.',
|
|
27
|
+
HONGO: 'Hongos.',
|
|
28
|
+
ÁCARO: 'Aácaros.',
|
|
29
|
+
BACTERIA: 'Bacterias.',
|
|
30
|
+
VIRUS: 'Virus.',
|
|
31
|
+
NEMATODO: 'Nematodos.',
|
|
32
|
+
OTRO: 'Otro.',
|
|
33
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const GROWTH_HABIT_GEOM: {
|
|
2
|
+
COMPACTA: string;
|
|
3
|
+
EXPANSIVA: string;
|
|
4
|
+
ERECTA: string;
|
|
5
|
+
RASERA: string;
|
|
6
|
+
TREPADORA: string;
|
|
7
|
+
COLGANTE: string;
|
|
8
|
+
ARBUSTIVA: string;
|
|
9
|
+
ARBOREA: string;
|
|
10
|
+
};
|
|
11
|
+
export type GrowthHabit = keyof typeof GROWTH_HABIT_GEOM;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GROWTH_HABIT_GEOM = void 0;
|
|
4
|
+
// src/models/technical-sheet/catalogs/plant-size.ts
|
|
5
|
+
const makeCatalog_1 = require("../utils/makeCatalog");
|
|
6
|
+
exports.GROWTH_HABIT_GEOM = (0, makeCatalog_1.makeCatalog)({
|
|
7
|
+
COMPACTA: 'Poco volumen.',
|
|
8
|
+
EXPANSIVA: 'Brotes laterales extensos.',
|
|
9
|
+
ERECTA: 'Vertical sin soporte.',
|
|
10
|
+
RASERA: 'Se extiende sobre el suelo.',
|
|
11
|
+
TREPADORA: 'Escala estructuras.',
|
|
12
|
+
COLGANTE: 'Tallos péndulos.',
|
|
13
|
+
ARBUSTIVA: 'Múltiples ramas leñosas.',
|
|
14
|
+
ARBOREA: 'Tronco leñoso único.',
|
|
15
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const PROPAGATION: {
|
|
2
|
+
ESQUEJE_TALLO: string;
|
|
3
|
+
ESQUEJE_HOJA: string;
|
|
4
|
+
ESQUEJE_RAÍZ: string;
|
|
5
|
+
SEMILLA: string;
|
|
6
|
+
DIVISIÓN_MATA: string;
|
|
7
|
+
ACODO_SIMPLE: string;
|
|
8
|
+
ACODO_AÉREO: string;
|
|
9
|
+
IN_VITRO: string;
|
|
10
|
+
BULBO_RIZOMA_TUBÉRCULO: string;
|
|
11
|
+
HIJUELOS: string;
|
|
12
|
+
NO_APLICA: string;
|
|
13
|
+
};
|
|
14
|
+
export type PropagationMethod = keyof typeof PROPAGATION;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PROPAGATION = void 0;
|
|
4
|
+
// src/models/technical-sheet/catalogs/propagation-method.ts
|
|
5
|
+
const makeCatalog_1 = require("../utils/makeCatalog");
|
|
6
|
+
exports.PROPAGATION = (0, makeCatalog_1.makeCatalog)({
|
|
7
|
+
ESQUEJE_TALLO: 'Corte de tallo.',
|
|
8
|
+
ESQUEJE_HOJA: 'Esqueje de hoja.',
|
|
9
|
+
ESQUEJE_RAÍZ: 'Fragmento de raíz.',
|
|
10
|
+
SEMILLA: 'Propagación sexual.',
|
|
11
|
+
DIVISIÓN_MATA: 'División de mata.',
|
|
12
|
+
ACODO_SIMPLE: 'Acodo simple.',
|
|
13
|
+
ACODO_AÉREO: 'Acodo aéreo.',
|
|
14
|
+
IN_VITRO: 'Cultivo in vitro.',
|
|
15
|
+
BULBO_RIZOMA_TUBÉRCULO: 'Ãrgano subterráneo.',
|
|
16
|
+
HIJUELOS: 'Brotes basales.',
|
|
17
|
+
NO_APLICA: 'No aplicable.',
|
|
18
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const SUBSTRATE: {
|
|
2
|
+
UNIVERSAL: string;
|
|
3
|
+
INTERIOR_LIGERO: string;
|
|
4
|
+
CACTUS_SUCULENTAS: string;
|
|
5
|
+
ORQUÍDEAS_EPÍFITAS: string;
|
|
6
|
+
BROMELIAS: string;
|
|
7
|
+
ACUÁTICO: string;
|
|
8
|
+
HELECHOS_HUMEDOS: string;
|
|
9
|
+
SEMILLERO: string;
|
|
10
|
+
BONSAI: string;
|
|
11
|
+
HIDROPONÍA: string;
|
|
12
|
+
ARENA_GRAVILLA: string;
|
|
13
|
+
FIBRA_COCO_PURA: string;
|
|
14
|
+
TURBA: string;
|
|
15
|
+
COMPOST_HOJARASCA: string;
|
|
16
|
+
};
|
|
17
|
+
export type SubstrateType = keyof typeof SUBSTRATE;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SUBSTRATE = void 0;
|
|
4
|
+
// src/models/technical-sheet/catalogs/substrate-info.ts
|
|
5
|
+
const makeCatalog_1 = require("../utils/makeCatalog");
|
|
6
|
+
exports.SUBSTRATE = (0, makeCatalog_1.makeCatalog)({
|
|
7
|
+
UNIVERSAL: 'Mezcla equilibrada.',
|
|
8
|
+
INTERIOR_LIGERO: 'Turba + perlita.',
|
|
9
|
+
CACTUS_SUCULENTAS: 'Arena + grava, baja materia orgánica.',
|
|
10
|
+
ORQUÍDEAS_EPÍFITAS: 'Corteza gruesa + carbón.',
|
|
11
|
+
BROMELIAS: 'Fibra coco + corteza.',
|
|
12
|
+
ACUÁTICO: 'Arcilla y arena sumergida.',
|
|
13
|
+
HELECHOS_HUMEDOS: 'Turba + musgo esfagno.',
|
|
14
|
+
SEMILLERO: 'Turba fina esterilizada.',
|
|
15
|
+
BONSAI: 'Akadama + kiryuzuna + grava.',
|
|
16
|
+
HIDROPONÍA: 'Sustrato inerte.',
|
|
17
|
+
ARENA_GRAVILLA: '100 % mineral.',
|
|
18
|
+
FIBRA_COCO_PURA: 'Coco hidratado.',
|
|
19
|
+
TURBA: 'Turba rubia o negra.',
|
|
20
|
+
COMPOST_HOJARASCA: 'Orgánico descompuesto.',
|
|
21
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './PlantTechnicalSheet';
|
|
2
|
+
export * from './GrowthClassInfo';
|
|
3
|
+
export * from './CareInstructions';
|
|
4
|
+
export * from './ImageInfo';
|
|
5
|
+
export * from './LightInfo';
|
|
6
|
+
export * from './HumidityInfo';
|
|
7
|
+
export * from './PestInfo';
|
|
8
|
+
export * from './PlantGrowthType';
|
|
9
|
+
export * from './PlantSize';
|
|
10
|
+
export * from './SubstrateInfo';
|
|
11
|
+
export * from './ClimateIdeal';
|
|
12
|
+
export * from './FertilizationInfo';
|
|
13
|
+
export * from './PropagationMethodInfo';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./PlantTechnicalSheet"), exports);
|
|
18
|
+
__exportStar(require("./GrowthClassInfo"), exports);
|
|
19
|
+
__exportStar(require("./CareInstructions"), exports);
|
|
20
|
+
__exportStar(require("./ImageInfo"), exports);
|
|
21
|
+
__exportStar(require("./LightInfo"), exports);
|
|
22
|
+
__exportStar(require("./HumidityInfo"), exports);
|
|
23
|
+
__exportStar(require("./PestInfo"), exports);
|
|
24
|
+
__exportStar(require("./PlantGrowthType"), exports);
|
|
25
|
+
__exportStar(require("./PlantSize"), exports);
|
|
26
|
+
__exportStar(require("./SubstrateInfo"), exports);
|
|
27
|
+
__exportStar(require("./ClimateIdeal"), exports);
|
|
28
|
+
__exportStar(require("./FertilizationInfo"), exports);
|
|
29
|
+
__exportStar(require("./PropagationMethodInfo"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ColumnOptions } from "typeorm";
|
|
2
|
+
/**
|
|
3
|
+
* Utilidad para columnas enum basadas en catálogos TypeScript.
|
|
4
|
+
* Permite usar `keyof typeof ENUM` como tipo en la entidad.
|
|
5
|
+
*/
|
|
6
|
+
export declare function EnumColumn<T extends string>(values: readonly T[], options?: Omit<ColumnOptions, "type" | "enum">): PropertyDecorator;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnumColumn = EnumColumn;
|
|
4
|
+
// src/models/technical-sheet/utils/enumColumn.ts
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
/**
|
|
7
|
+
* Utilidad para columnas enum basadas en catálogos TypeScript.
|
|
8
|
+
* Permite usar `keyof typeof ENUM` como tipo en la entidad.
|
|
9
|
+
*/
|
|
10
|
+
function EnumColumn(values, options = {}) {
|
|
11
|
+
return (0, typeorm_1.Column)(Object.assign({ type: "enum", enum: values }, options));
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Define un catálogo estático e inmutable y devuelve el mismo objeto.
|
|
3
|
+
* TypeScript infiere correctamente los tipos de clave.
|
|
4
|
+
*
|
|
5
|
+
* @param c Objeto Record<string, string> que representa el catálogo
|
|
6
|
+
* @returns El mismo objeto `c`, como constante tipada
|
|
7
|
+
*/
|
|
8
|
+
export declare function makeCatalog<C extends Record<string, string>>(c: C): C;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* =============================================================================
|
|
3
|
+
* UTILITY ───────────── makeCatalog
|
|
4
|
+
* ---------------------------------------------------------------------------
|
|
5
|
+
* Crea un Record<K, string> inmutable para catálogos
|
|
6
|
+
* y permite derivar tipos clave (keyof).
|
|
7
|
+
* ===========================================================================*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.makeCatalog = makeCatalog;
|
|
10
|
+
/**
|
|
11
|
+
* Define un catálogo estático e inmutable y devuelve el mismo objeto.
|
|
12
|
+
* TypeScript infiere correctamente los tipos de clave.
|
|
13
|
+
*
|
|
14
|
+
* @param c Objeto Record<string, string> que representa el catálogo
|
|
15
|
+
* @returns El mismo objeto `c`, como constante tipada
|
|
16
|
+
*/
|
|
17
|
+
function makeCatalog(c) {
|
|
18
|
+
return c;
|
|
19
|
+
}
|
|
@@ -8,4 +8,4 @@ var MovementType;
|
|
|
8
8
|
MovementType["ADJUSTMENT"] = "ADJUSTMENT";
|
|
9
9
|
MovementType["TRANSFER_IN"] = "TRANSFER_IN";
|
|
10
10
|
MovementType["TRANSFER_OUT"] = "TRANSFER_OUT";
|
|
11
|
-
})(MovementType
|
|
11
|
+
})(MovementType || (exports.MovementType = MovementType = {}));
|