@carbonbox/domain 0.7.22 → 0.7.23

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 (79) hide show
  1. package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationSegment.js +0 -2
  2. package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentIncludedSubsegments.js +0 -2
  3. package/build/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/domain/value-objects/EventEditionLifecycleStageConfigurationStage.js +0 -2
  4. package/build/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/event-edition-lifecycle-stages/domain/value-objects/EventEditionLifecycleStageIncludedSubsegments.js +0 -2
  5. package/build/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/domain/value-objects/ProductCarbonFootprintSegmentConfigurationSegment.js +0 -2
  6. package/build/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/domain/value-objects/ProductConfigurationCarbonFootprintSegmentIncludedSubsegments.js +0 -2
  7. package/build/carbonbox/shared/domain/value-objects/CarbonFootprintSegmentReferences.js +16 -103
  8. package/build/carbonbox/shared/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationReferences.js +15 -29
  9. package/build/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentReference.js +6 -131
  10. package/build/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentReference.js +6 -131
  11. package/build/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReference.js +7 -149
  12. package/build/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReferences.js +9 -165
  13. package/build/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageConfigurationReferences.js +42 -50
  14. package/build/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageReference.js +8 -112
  15. package/build/carbonbox/shared/domain/value-objects/NullableCorporateConfigurationCarbonFootprintSubsegmentReference.js +11 -136
  16. package/build/carbonbox/shared/domain/value-objects/NullableEventEditionConfigurationCarbonFootprintSubsegmentReference.js +11 -168
  17. package/build/carbonbox/shared/domain/value-objects/NullableProductConfigurationCarbonFootprintSubsegmentReference.js +11 -136
  18. package/build/carbonbox/shared/domain/value-objects/ProductCarbonFootprintSegmentConfigurationReferences.js +35 -56
  19. package/build/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSegmentReference.js +6 -172
  20. package/build/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentReference.js +6 -172
  21. package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationSegment.d.ts.map +1 -1
  22. package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentIncludedSubsegments.d.ts.map +1 -1
  23. package/build/types/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/domain/value-objects/EventEditionLifecycleStageConfigurationStage.d.ts.map +1 -1
  24. package/build/types/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/event-edition-lifecycle-stages/domain/value-objects/EventEditionLifecycleStageIncludedSubsegments.d.ts.map +1 -1
  25. package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/domain/value-objects/ProductCarbonFootprintSegmentConfigurationSegment.d.ts.map +1 -1
  26. package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/domain/value-objects/ProductConfigurationCarbonFootprintSegmentIncludedSubsegments.d.ts.map +1 -1
  27. package/build/types/carbonbox/shared/domain/types/CorporateConfigurationCarbonFootprintSegmentReference.d.ts +0 -2
  28. package/build/types/carbonbox/shared/domain/types/CorporateConfigurationCarbonFootprintSegmentReference.d.ts.map +1 -1
  29. package/build/types/carbonbox/shared/domain/types/CorporateConfigurationCarbonFootprintSegmentReferencePrimitives.d.ts +0 -2
  30. package/build/types/carbonbox/shared/domain/types/CorporateConfigurationCarbonFootprintSegmentReferencePrimitives.d.ts.map +1 -1
  31. package/build/types/carbonbox/shared/domain/types/CorporateConfigurationCarbonFootprintSubsegmentReference.d.ts +0 -2
  32. package/build/types/carbonbox/shared/domain/types/CorporateConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
  33. package/build/types/carbonbox/shared/domain/types/CorporateConfigurationCarbonFootprintSubsegmentReferencePrimitives.d.ts +0 -2
  34. package/build/types/carbonbox/shared/domain/types/CorporateConfigurationCarbonFootprintSubsegmentReferencePrimitives.d.ts.map +1 -1
  35. package/build/types/carbonbox/shared/domain/types/EventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts +0 -2
  36. package/build/types/carbonbox/shared/domain/types/EventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
  37. package/build/types/carbonbox/shared/domain/types/EventEditionConfigurationCarbonFootprintSubsegmentReferencePrimitives.d.ts +0 -2
  38. package/build/types/carbonbox/shared/domain/types/EventEditionConfigurationCarbonFootprintSubsegmentReferencePrimitives.d.ts.map +1 -1
  39. package/build/types/carbonbox/shared/domain/types/EventEditionLifecycleStageReference.d.ts +0 -2
  40. package/build/types/carbonbox/shared/domain/types/EventEditionLifecycleStageReference.d.ts.map +1 -1
  41. package/build/types/carbonbox/shared/domain/types/EventEditionLifecycleStageReferencePrimitives.d.ts +0 -2
  42. package/build/types/carbonbox/shared/domain/types/EventEditionLifecycleStageReferencePrimitives.d.ts.map +1 -1
  43. package/build/types/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSegmentReference.d.ts +0 -2
  44. package/build/types/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSegmentReference.d.ts.map +1 -1
  45. package/build/types/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSegmentReferencePrimitives.d.ts +0 -2
  46. package/build/types/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSegmentReferencePrimitives.d.ts.map +1 -1
  47. package/build/types/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSubsegmentReference.d.ts +0 -2
  48. package/build/types/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
  49. package/build/types/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSubsegmentReferencePrimitives.d.ts +0 -2
  50. package/build/types/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSubsegmentReferencePrimitives.d.ts.map +1 -1
  51. package/build/types/carbonbox/shared/domain/value-objects/CarbonFootprintSegmentReferences.d.ts +7 -43
  52. package/build/types/carbonbox/shared/domain/value-objects/CarbonFootprintSegmentReferences.d.ts.map +1 -1
  53. package/build/types/carbonbox/shared/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationReferences.d.ts +6 -8
  54. package/build/types/carbonbox/shared/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationReferences.d.ts.map +1 -1
  55. package/build/types/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentReference.d.ts +1 -62
  56. package/build/types/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentReference.d.ts.map +1 -1
  57. package/build/types/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentReference.d.ts +1 -71
  58. package/build/types/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
  59. package/build/types/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts +2 -78
  60. package/build/types/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
  61. package/build/types/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReferences.d.ts +5 -68
  62. package/build/types/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReferences.d.ts.map +1 -1
  63. package/build/types/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageConfigurationReferences.d.ts +20 -19
  64. package/build/types/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageConfigurationReferences.d.ts.map +1 -1
  65. package/build/types/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageReference.d.ts +2 -45
  66. package/build/types/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageReference.d.ts.map +1 -1
  67. package/build/types/carbonbox/shared/domain/value-objects/NullableCorporateConfigurationCarbonFootprintSubsegmentReference.d.ts +2 -62
  68. package/build/types/carbonbox/shared/domain/value-objects/NullableCorporateConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
  69. package/build/types/carbonbox/shared/domain/value-objects/NullableEventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts +2 -77
  70. package/build/types/carbonbox/shared/domain/value-objects/NullableEventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
  71. package/build/types/carbonbox/shared/domain/value-objects/NullableProductConfigurationCarbonFootprintSubsegmentReference.d.ts +2 -62
  72. package/build/types/carbonbox/shared/domain/value-objects/NullableProductConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
  73. package/build/types/carbonbox/shared/domain/value-objects/ProductCarbonFootprintSegmentConfigurationReferences.d.ts +15 -17
  74. package/build/types/carbonbox/shared/domain/value-objects/ProductCarbonFootprintSegmentConfigurationReferences.d.ts.map +1 -1
  75. package/build/types/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSegmentReference.d.ts +1 -81
  76. package/build/types/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSegmentReference.d.ts.map +1 -1
  77. package/build/types/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentReference.d.ts +1 -90
  78. package/build/types/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
  79. package/package.json +1 -1
@@ -21,59 +21,16 @@ export declare abstract class EventEditionLifecycleStageReference extends Object
21
21
  * Valida el ID usando las validaciones de AggregateId.
22
22
  */
23
23
  protected static guardAgainstInvalidId(id: string): void;
24
- /**
25
- * Valida el código de edición del evento usando las validaciones de Code.
26
- */
27
- protected static guardAgainstInvalidCode(code: string): void;
28
- protected static guardAgainstInvalidName(name: string): void;
29
24
  get id(): string;
30
- get code(): string;
31
- get name(): string;
32
- hasCode(code: string): boolean;
33
- /**
34
- * Verifica si la etapa tiene un nombre específico.
35
- */
36
- hasName(name: string): boolean;
37
25
  hasId(id: string): boolean;
38
- /**
39
- * Obtiene una representación completa con código y nombre.
40
- */
41
- getDisplayName(): string;
42
- nameContains(searchText: string): boolean;
43
26
  matches(searchText: string): boolean;
44
- /**
45
- * Verifica si la etapa es de un tipo específico basado en su nombre.
46
- * Útil para categorizar etapas (planificación, ejecución, cierre, etc.).
47
- */
48
- isStageType(stageType: string): boolean;
49
- /**
50
- * Verifica si es una etapa inicial del ciclo de vida.
51
- * Basado en palabras clave comunes para etapas iniciales.
52
- */
53
- isInitialStage(): boolean;
54
- /**
55
- * Verifica si es una etapa final del ciclo de vida.
56
- * Basado en palabras clave comunes para etapas finales.
57
- */
58
- isFinalStage(): boolean;
59
- /**
60
- * Verifica si es una etapa activa/de ejecución.
61
- * Basado en palabras clave comunes para etapas de ejecución.
62
- */
63
- isActiveStage(): boolean;
64
- /**
65
- * Obtiene el nivel de criticidad implícito de la etapa.
66
- * Útil para priorización y gestión de recursos.
67
- */
68
- getCriticalityLevel(): 'low' | 'medium' | 'high' | 'critical';
69
27
  /**
70
28
  * Compara si dos referencias apuntan a la misma etapa
71
- * basándose únicamente en el código (identificador único).
29
+ * basándose únicamente en el ID (identificador único).
72
30
  */
73
31
  hasSameStage(other: EventEditionLifecycleStageReference): boolean;
74
32
  /**
75
33
  * Genera un hash code para usar en colecciones.
76
- * Basado en el código de etapa y nombre.
77
34
  */
78
35
  hashCode(): string;
79
36
  /**
@@ -81,7 +38,7 @@ export declare abstract class EventEditionLifecycleStageReference extends Object
81
38
  */
82
39
  toPrimitives(): EventEditionLifecycleStageReferencePrimitives;
83
40
  /**
84
- * Representación como string (nombre de la etapa).
41
+ * Representación como string (ID de la etapa).
85
42
  */
86
43
  toString(): string;
87
44
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"EventEditionLifecycleStageReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6CAA6C,EAAE,MAAM,wDAAwD,CAAC;AACvH,OAAO,EAAE,mCAAmC,IAAI,oCAAoC,EAAE,MAAM,8CAA8C,CAAC;AAC3I,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAKxD,8BAAsB,mCAAoC,SAAQ,iBAAiB,CAAC,6CAA6C,CAAC;;IAChI,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,gCAAgC;IAQ/E;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,oCAAoC,EAC3C,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAAkE;IAoBlF;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,2CAA2C,CAC1D,KAAK,EAAE,oCAAoC,EAC3C,YAAY,EAAE,MAAM,GACnB,IAAI;IAOP;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAkBhF;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAKxD;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAK5D,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAI5D,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED,IAAW,IAAI,IAAI,MAAM,CAExB;IAED,IAAW,IAAI,IAAI,MAAM,CAExB;IAEM,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIrC;;OAEG;IACI,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI9B,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIjC;;OAEG;IACI,cAAc,IAAI,MAAM;IAIxB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAIzC,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAS3C;;;OAGG;IACI,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAI9C;;;OAGG;IACI,cAAc,IAAI,OAAO;IAMhC;;;OAGG;IACI,YAAY,IAAI,OAAO;IAM9B;;;OAGG;IACI,aAAa,IAAI,OAAO;IAM/B;;;OAGG;IACI,mBAAmB,IAAI,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU;IAmBpE;;;OAGG;IACI,YAAY,CAAC,KAAK,EAAE,mCAAmC,GAAG,OAAO;IAQxE;;;OAGG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACa,YAAY,IAAI,6CAA6C;IAQ7E;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACI,MAAM,IAAI,6CAA6C;CAG/D"}
1
+ {"version":3,"file":"EventEditionLifecycleStageReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6CAA6C,EAAE,MAAM,wDAAwD,CAAC;AACvH,OAAO,EAAE,mCAAmC,IAAI,oCAAoC,EAAE,MAAM,8CAA8C,CAAC;AAC3I,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,8BAAsB,mCAAoC,SAAQ,iBAAiB,CAAC,6CAA6C,CAAC;;IAChI,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,gCAAgC;IAI/E;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,oCAAoC,EAC3C,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAAkE;IAkBlF;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,2CAA2C,CAC1D,KAAK,EAAE,oCAAoC,EAC3C,YAAY,EAAE,MAAM,GACnB,IAAI;IAKP;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAUhF;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAKxD,IAAW,EAAE,IAAI,MAAM,CAEtB;IAEM,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAI1B,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAK3C;;;OAGG;IACI,YAAY,CAAC,KAAK,EAAE,mCAAmC,GAAG,OAAO;IAQxE;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACa,YAAY,IAAI,6CAA6C;IAM7E;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACI,MAAM,IAAI,6CAA6C;CAG/D"}
@@ -22,25 +22,7 @@ export declare abstract class NullableCorporateConfigurationCarbonFootprintSubse
22
22
  * Valida el ID usando las validaciones de AggregateId.
23
23
  */
24
24
  protected static guardAgainstInvalidId(id: string): void;
25
- /**
26
- * Valida el código de subsegmento corporativo usando las validaciones de Code.
27
- * El código debe ser un UUID válido.
28
- */
29
- protected static guardAgainstInvalidSubsegmentCode(code: string): void;
30
- /**
31
- * Valida el nombre del subsegmento corporativo.
32
- * No debe ser vacío después de aplicar trim.
33
- */
34
- protected static guardAgainstInvalidSubsegmentName(name: string): void;
35
25
  get id(): string | null;
36
- /**
37
- * Código único del subsegmento corporativo (UUID) o null.
38
- */
39
- get code(): string | null;
40
- /**
41
- * Nombre descriptivo del subsegmento corporativo o null.
42
- */
43
- get name(): string | null;
44
26
  /**
45
27
  * Indica si la referencia es null (no hay subsegmento asignado).
46
28
  */
@@ -50,58 +32,16 @@ export declare abstract class NullableCorporateConfigurationCarbonFootprintSubse
50
32
  */
51
33
  hasValue(): boolean;
52
34
  hasId(id: string): boolean;
53
- /**
54
- * Verifica si el subsegmento corresponde a un código específico.
55
- * Retorna false si la referencia es null.
56
- */
57
- hasCode(code: string): boolean;
58
- /**
59
- * Verifica si el subsegmento tiene un nombre específico.
60
- * Retorna false si la referencia es null.
61
- */
62
- hasName(name: string): boolean;
63
- /**
64
- * Obtiene una representación legible del subsegmento.
65
- * Retorna un texto indicativo si es null.
66
- */
67
- getDisplayName(): string;
68
- /**
69
- * Obtiene una representación completa con código y nombre.
70
- * Retorna un texto indicativo si es null.
71
- */
72
- getFullDisplayName(): string;
73
- /**
74
- * Verifica si el nombre del subsegmento contiene un texto específico.
75
- * Retorna false si la referencia es null.
76
- */
77
- nameContains(searchText: string): boolean;
78
- /**
79
- * Verifica si el subsegmento coincide con un patrón de búsqueda en código o nombre.
80
- * Retorna false si la referencia es null.
81
- */
82
- matches(searchText: string): boolean;
83
- /**
84
- * Ejecuta una función solo si la referencia tiene valor.
85
- * Útil para operaciones condicionales sin verificar nulos manualmente.
86
- */
87
- ifPresent(callback: (code: string, name: string) => void): void;
88
- /**
89
- * Ejecuta una función si la referencia tiene valor, o una función alternativa si es null.
90
- */
91
- fold<T>(onNull: () => T, onValue: (code: string, name: string) => T): T;
92
35
  /**
93
36
  * Compara la igualdad semántica con otra referencia de subsegmento.
94
- * Dos referencias son iguales si ambas son null o si tienen el mismo código y nombre.
95
37
  */
96
38
  equals(other: NullableCorporateConfigurationCarbonFootprintSubsegmentReference): boolean;
97
39
  /**
98
- * Compara si dos referencias apuntan al mismo subsegmento
99
- * basándose únicamente en el código (identificador único).
40
+ * Compara si dos referencias apuntan al mismo subsegmento.
100
41
  */
101
42
  hasSameSubsegment(other: NullableCorporateConfigurationCarbonFootprintSubsegmentReference): boolean;
102
43
  /**
103
44
  * Genera un hash code para usar en colecciones.
104
- * Basado en el código de subsegmento y nombre, o un valor especial para null.
105
45
  */
106
46
  hashCode(): string;
107
47
  /**
@@ -109,7 +49,7 @@ export declare abstract class NullableCorporateConfigurationCarbonFootprintSubse
109
49
  */
110
50
  toPrimitives(): CorporateConfigurationCarbonFootprintSubsegmentReferencePrimitives | null;
111
51
  /**
112
- * Representación como string (nombre del subsegmento o indicador de null).
52
+ * Representación como string (id del subsegmento o indicador de null).
113
53
  */
114
54
  toString(): string;
115
55
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"NullableCorporateConfigurationCarbonFootprintSubsegmentReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/NullableCorporateConfigurationCarbonFootprintSubsegmentReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kEAAkE,EAAE,MAAM,6EAA6E,CAAC;AACjK,OAAO,EAAE,wDAAwD,IAAI,yDAAyD,EAAE,MAAM,mEAAmE,CAAC;AAG1M,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,8BAAsB,gEAAiE,SAAQ,WAAW,CAAC,kEAAkE,GAAG,IAAI,CAAC;;IACnL,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,kCAAkC;IAUjF;;;;OAIG;IACH,SAAS,aACP,KAAK,EAAE,yDAAyD,GAAG,IAAI,EACvE,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAA+F;IA4B/G;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,gEAAgE,CAC/E,KAAK,EAAE,yDAAyD,EAChE,YAAY,EAAE,MAAM,GACnB,IAAI;IAOP;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,KAAK,EAAE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AAC,KAAK,EAAE,gEAAgE,GAAG,OAAO;IAmB/F;;;OAGG;IACI,iBAAiB,CAAC,KAAK,EAAE,gEAAgE,GAAG,OAAO;IAgB1G;;;OAGG;IACI,QAAQ,IAAI,MAAM;IAOzB;;OAEG;IACa,YAAY,IAAI,kEAAkE,GAAG,IAAI;IAYzG;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACI,MAAM,IAAI,kEAAkE,GAAG,IAAI;CAG3F"}
1
+ {"version":3,"file":"NullableCorporateConfigurationCarbonFootprintSubsegmentReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/NullableCorporateConfigurationCarbonFootprintSubsegmentReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kEAAkE,EAAE,MAAM,6EAA6E,CAAC;AACjK,OAAO,EAAE,wDAAwD,IAAI,yDAAyD,EAAE,MAAM,mEAAmE,CAAC;AAE1M,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,8BAAsB,gEAAiE,SAAQ,WAAW,CAAC,kEAAkE,GAAG,IAAI,CAAC;;IACnL,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,kCAAkC;IAMjF;;;;OAIG;IACH,SAAS,aACP,KAAK,EAAE,yDAAyD,GAAG,IAAI,EACvE,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAA+F;IAwB/G;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,gEAAgE,CAC/E,KAAK,EAAE,yDAAyD,EAChE,YAAY,EAAE,MAAM,GACnB,IAAI;IAKP;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAUhF;;SAEK;IACL,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAKxD,IAAW,EAAE,IAAI,MAAM,GAAG,IAAI,CAE7B;IAED;;OAEG;IACI,MAAM,IAAI,OAAO;IAIxB;;OAEG;IACI,QAAQ,IAAI,OAAO;IAInB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIjC;;OAEG;IACI,MAAM,CAAC,KAAK,EAAE,gEAAgE,GAAG,OAAO;IAgB/F;;OAEG;IACI,iBAAiB,CAAC,KAAK,EAAE,gEAAgE,GAAG,OAAO;IAgB1G;;OAEG;IACI,QAAQ,IAAI,MAAM;IAOzB;;OAEG;IACa,YAAY,IAAI,kEAAkE,GAAG,IAAI;IAUzG;;OAEG;IACI,QAAQ,IAAI,MAAM;IAOzB;;OAEG;IACI,MAAM,IAAI,kEAAkE,GAAG,IAAI;CAG3F"}
@@ -22,25 +22,7 @@ export declare abstract class NullableEventEditionConfigurationCarbonFootprintSu
22
22
  * Valida el ID usando las validaciones de AggregateId.
23
23
  */
24
24
  protected static guardAgainstInvalidId(id: string): void;
25
- /**
26
- * Valida el código de subsegmento de etapa usando las validaciones de Code.
27
- * El código debe ser un UUID válido.
28
- */
29
- protected static guardAgainstInvalidSubsegmentCode(code: string): void;
30
- /**
31
- * Valida el nombre del subsegmento de etapa.
32
- * No debe ser vacío después de aplicar trim.
33
- */
34
- protected static guardAgainstInvalidSubsegmentName(name: string): void;
35
25
  get id(): string | null;
36
- /**
37
- * Código único del subsegmento de etapa de edición de evento (UUID) o null.
38
- */
39
- get code(): string | null;
40
- /**
41
- * Nombre descriptivo del subsegmento de etapa de edición de evento o null.
42
- */
43
- get name(): string | null;
44
26
  /**
45
27
  * Indica si la referencia es null (no hay subsegmento asignado).
46
28
  */
@@ -50,73 +32,16 @@ export declare abstract class NullableEventEditionConfigurationCarbonFootprintSu
50
32
  */
51
33
  hasValue(): boolean;
52
34
  hasId(id: string): boolean;
53
- /**
54
- * Verifica si el subsegmento corresponde a un código específico.
55
- * Retorna false si la referencia es null.
56
- */
57
- hasCode(code: string): boolean;
58
- /**
59
- * Verifica si el subsegmento tiene un nombre específico.
60
- * Retorna false si la referencia es null.
61
- */
62
- hasName(name: string): boolean;
63
- /**
64
- * Obtiene una representación legible del subsegmento.
65
- * Retorna un texto indicativo si es null.
66
- */
67
- getDisplayName(): string;
68
- /**
69
- * Obtiene una representación completa con código y nombre.
70
- * Retorna un texto indicativo si es null.
71
- */
72
- getFullDisplayName(): string;
73
- /**
74
- * Verifica si el nombre del subsegmento contiene un texto específico.
75
- * Retorna false si la referencia es null.
76
- */
77
- nameContains(searchText: string): boolean;
78
- /**
79
- * Verifica si el subsegmento coincide con un patrón de búsqueda en código o nombre.
80
- * Retorna false si la referencia es null.
81
- */
82
- matches(searchText: string): boolean;
83
- /**
84
- * Verifica si el subsegmento es de un tipo específico basado en su nombre.
85
- * Útil para categorizar subsegmentos de etapa (técnico, comercial, logístico, etc.).
86
- */
87
- isSubsegmentType(subsegmentType: string): boolean;
88
- /**
89
- * Verifica si es un subsegmento crítico para la etapa.
90
- * Basado en palabras clave que indican criticidad.
91
- */
92
- isCriticalSubsegment(): boolean;
93
- /**
94
- * Ejecuta una función solo si la referencia tiene valor.
95
- * Útil para operaciones condicionales sin verificar nulos manualmente.
96
- */
97
- ifPresent(callback: (code: string, name: string) => void): void;
98
- /**
99
- * Ejecuta una función si la referencia tiene valor, o una función alternativa si es null.
100
- */
101
- fold<T>(onNull: () => T, onValue: (code: string, name: string) => T): T;
102
- /**
103
- * Transforma el subsegmento si tiene valor, manteniendo null si es null.
104
- * Útil para transformaciones funcionales.
105
- */
106
- map<T>(transform: (code: string, name: string) => T): T | null;
107
35
  /**
108
36
  * Compara la igualdad semántica con otra referencia de subsegmento.
109
- * Dos referencias son iguales si ambas son null o si tienen el mismo código y nombre.
110
37
  */
111
38
  equals(other: NullableEventEditionConfigurationCarbonFootprintSubsegmentReference): boolean;
112
39
  /**
113
- * Compara si dos referencias apuntan al mismo subsegmento
114
- * basándose únicamente en el código (identificador único).
40
+ * Compara si dos referencias apuntan al mismo subsegmento.
115
41
  */
116
42
  hasSameSubsegment(other: NullableEventEditionConfigurationCarbonFootprintSubsegmentReference): boolean;
117
43
  /**
118
44
  * Genera un hash code para usar en colecciones.
119
- * Basado en el código de subsegmento y nombre, o un valor especial para null.
120
45
  */
121
46
  hashCode(): string;
122
47
  /**
@@ -124,7 +49,7 @@ export declare abstract class NullableEventEditionConfigurationCarbonFootprintSu
124
49
  */
125
50
  toPrimitives(): EventEditionConfigurationCarbonFootprintSubsegmentReferencePrimitives | null;
126
51
  /**
127
- * Representación como string (nombre del subsegmento o indicador de null).
52
+ * Representación como string (id del subsegmento o indicador de null).
128
53
  */
129
54
  toString(): string;
130
55
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"NullableEventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/NullableEventEditionConfigurationCarbonFootprintSubsegmentReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qEAAqE,EAAE,MAAM,gFAAgF,CAAC;AACvK,OAAO,EAAE,2DAA2D,IAAI,4DAA4D,EAAE,MAAM,sEAAsE,CAAC;AACnN,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,8BAAsB,mEAAoE,SAAQ,WAAW,CAAC,qEAAqE,GAAG,IAAI,CAAC;;IACzL,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,0CAA0C;IAUzF;;;;OAIG;IACH,SAAS,aACP,KAAK,EAAE,4DAA4D,GAAG,IAAI,EAC1E,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAAkG;IA4BlH;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,mEAAmE,CAClF,KAAK,EAAE,4DAA4D,EACnE,YAAY,EAAE,MAAM,GACnB,IAAI;IAOP;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAkBhF;;WAEO;IACP,SAAS,CAAC,MA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IAOJ;;;OAGG;IACI,GAAG,CAAC,CAAC,EACV,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC,GAC3C,CAAC,GAAG,IAAI;IAOX;;;OAGG;IACI,MAAM,CAAC,KAAK,EAAE,mEAAmE,GAAG,OAAO;IAmBlG;;;OAGG;IACI,iBAAiB,CAAC,KAAK,EAAE,mEAAmE,GAAG,OAAO;IAgB7G;;;OAGG;IACI,QAAQ,IAAI,MAAM;IAOzB;;OAEG;IACa,YAAY,IAAI,qEAAqE,GAAG,IAAI;IAY5G;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACI,MAAM,IAAI,qEAAqE,GAAG,IAAI;CAG9F"}
1
+ {"version":3,"file":"NullableEventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/NullableEventEditionConfigurationCarbonFootprintSubsegmentReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qEAAqE,EAAE,MAAM,gFAAgF,CAAC;AACvK,OAAO,EAAE,2DAA2D,IAAI,4DAA4D,EAAE,MAAM,sEAAsE,CAAC;AACnN,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,8BAAsB,mEAAoE,SAAQ,WAAW,CAAC,qEAAqE,GAAG,IAAI,CAAC;;IACzL,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,0CAA0C;IAMzF;;;;OAIG;IACH,SAAS,aACP,KAAK,EAAE,4DAA4D,GAAG,IAAI,EAC1E,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAAkG;IAwBlH;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,mEAAmE,CAClF,KAAK,EAAE,4DAA4D,EACnE,YAAY,EAAE,MAAM,GACnB,IAAI;IAKP;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAUhF;;WAEO;IACP,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAKxD,IAAW,EAAE,IAAI,MAAM,GAAG,IAAI,CAE7B;IAED;;OAEG;IACI,MAAM,IAAI,OAAO;IAIxB;;OAEG;IACI,QAAQ,IAAI,OAAO;IAInB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIjC;;OAEG;IACI,MAAM,CAAC,KAAK,EAAE,mEAAmE,GAAG,OAAO;IAgBlG;;OAEG;IACI,iBAAiB,CAAC,KAAK,EAAE,mEAAmE,GAAG,OAAO;IAgB7G;;OAEG;IACI,QAAQ,IAAI,MAAM;IAOzB;;OAEG;IACa,YAAY,IAAI,qEAAqE,GAAG,IAAI;IAU5G;;OAEG;IACI,QAAQ,IAAI,MAAM;IAOzB;;OAEG;IACI,MAAM,IAAI,qEAAqE,GAAG,IAAI;CAG9F"}
@@ -22,25 +22,7 @@ export declare abstract class NullableProductConfigurationCarbonFootprintSubsegm
22
22
  * Valida el ID usando las validaciones de AggregateId.
23
23
  */
24
24
  protected static guardAgainstInvalidId(id: string): void;
25
- /**
26
- * Valida el código de subsegmento de producto usando las validaciones de Code.
27
- * El código debe ser un UUID válido.
28
- */
29
- protected static guardAgainstInvalidSubsegmentCode(code: string): void;
30
- /**
31
- * Valida el nombre del subsegmento de producto.
32
- * No debe ser vacío después de aplicar trim.
33
- */
34
- protected static guardAgainstInvalidSubsegmentName(name: string): void;
35
25
  get id(): string | null;
36
- /**
37
- * Código único del subsegmento de producto (UUID) o null.
38
- */
39
- get code(): string | null;
40
- /**
41
- * Nombre descriptivo del subsegmento de producto o null.
42
- */
43
- get name(): string | null;
44
26
  /**
45
27
  * Indica si la referencia es null (no hay subsegmento asignado).
46
28
  */
@@ -50,58 +32,16 @@ export declare abstract class NullableProductConfigurationCarbonFootprintSubsegm
50
32
  * Indica si la referencia tiene un valor (hay subsegmento asignado).
51
33
  */
52
34
  hasValue(): boolean;
53
- /**
54
- * Verifica si el subsegmento corresponde a un código específico.
55
- * Retorna false si la referencia es null.
56
- */
57
- hasCode(code: string): boolean;
58
- /**
59
- * Verifica si el subsegmento tiene un nombre específico.
60
- * Retorna false si la referencia es null.
61
- */
62
- hasName(name: string): boolean;
63
- /**
64
- * Obtiene una representación legible del subsegmento.
65
- * Retorna un texto indicativo si es null.
66
- */
67
- getDisplayName(): string;
68
- /**
69
- * Obtiene una representación completa con código y nombre.
70
- * Retorna un texto indicativo si es null.
71
- */
72
- getFullDisplayName(): string;
73
- /**
74
- * Verifica si el nombre del subsegmento contiene un texto específico.
75
- * Retorna false si la referencia es null.
76
- */
77
- nameContains(searchText: string): boolean;
78
- /**
79
- * Verifica si el subsegmento coincide con un patrón de búsqueda en código o nombre.
80
- * Retorna false si la referencia es null.
81
- */
82
- matches(searchText: string): boolean;
83
- /**
84
- * Ejecuta una función solo si la referencia tiene valor.
85
- * Útil para operaciones condicionales sin verificar nulos manualmente.
86
- */
87
- ifPresent(callback: (code: string, name: string) => void): void;
88
- /**
89
- * Ejecuta una función si la referencia tiene valor, o una función alternativa si es null.
90
- */
91
- fold<T>(onNull: () => T, onValue: (code: string, name: string) => T): T;
92
35
  /**
93
36
  * Compara la igualdad semántica con otra referencia de subsegmento.
94
- * Dos referencias son iguales si ambas son null o si tienen el mismo código y nombre.
95
37
  */
96
38
  equals(other: NullableProductConfigurationCarbonFootprintSubsegmentReference): boolean;
97
39
  /**
98
- * Compara si dos referencias apuntan al mismo subsegmento
99
- * basándose únicamente en el código (identificador único).
40
+ * Compara si dos referencias apuntan al mismo subsegmento.
100
41
  */
101
42
  hasSameSubsegment(other: NullableProductConfigurationCarbonFootprintSubsegmentReference): boolean;
102
43
  /**
103
44
  * Genera un hash code para usar en colecciones.
104
- * Basado en el código de subsegmento y nombre, o un valor especial para null.
105
45
  */
106
46
  hashCode(): string;
107
47
  /**
@@ -109,7 +49,7 @@ export declare abstract class NullableProductConfigurationCarbonFootprintSubsegm
109
49
  */
110
50
  toPrimitives(): ProductConfigurationCarbonFootprintSubsegmentReferencePrimitives | null;
111
51
  /**
112
- * Representación como string (nombre del subsegmento o indicador de null).
52
+ * Representación como string (id del subsegmento o indicador de null).
113
53
  */
114
54
  toString(): string;
115
55
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"NullableProductConfigurationCarbonFootprintSubsegmentReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/NullableProductConfigurationCarbonFootprintSubsegmentReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gEAAgE,EAAE,MAAM,2EAA2E,CAAC;AAC7J,OAAO,EAAE,sDAAsD,IAAI,uDAAuD,EAAE,MAAM,iEAAiE,CAAC;AAGpM,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,8BAAsB,8DAA+D,SAAQ,WAAW,CAAC,gEAAgE,GAAG,IAAI,CAAC;;IAC/K,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,gCAAgC;IAU/E;;;;OAIG;IACH,SAAS,aACP,KAAK,EAAE,uDAAuD,GAAG,IAAI,EACrE,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAA6F;IA4B7G;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,8DAA8D,CAC7E,KAAK,EAAE,uDAAuD,EAC9D,YAAY,EAAE,MAAM,GACnB,IAAI;IAOP;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAkBhF;;WAEO;IACP,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAKxD;;;OAGG;IACH,SAAS,CAAC,MAAM,CAAC,iCAAiC,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKtE;;;OAGG;IACH,SAAS,CAAC,MAA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MAAM,IAAI,gEAAgE,GAAG,IAAI;CAGzF"}
1
+ {"version":3,"file":"NullableProductConfigurationCarbonFootprintSubsegmentReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/NullableProductConfigurationCarbonFootprintSubsegmentReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gEAAgE,EAAE,MAAM,2EAA2E,CAAC;AAC7J,OAAO,EAAE,sDAAsD,IAAI,uDAAuD,EAAE,MAAM,iEAAiE,CAAC;AAEpM,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,8BAAsB,8DAA+D,SAAQ,WAAW,CAAC,gEAAgE,GAAG,IAAI,CAAC;;IAC/K,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,gCAAgC;IAM/E;;;;OAIG;IACH,SAAS,aACP,KAAK,EAAE,uDAAuD,GAAG,IAAI,EACrE,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAA6F;IAwB7G;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,8DAA8D,CAC7E,KAAK,EAAE,uDAAuD,EAC9D,YAAY,EAAE,MAAM,GACnB,IAAI;IAKP;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAUhF;;WAEO;IACP,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAKxD,IAAW,EAAE,IAAI,MAAM,GAAG,IAAI,CAE7B;IAED;;OAEG;IACI,MAAM,IAAI,OAAO;IAIjB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIjC;;OAEG;IACI,QAAQ,IAAI,OAAO;IAI1B;;OAEG;IACI,MAAM,CAAC,KAAK,EAAE,8DAA8D,GAAG,OAAO;IAgB7F;;OAEG;IACI,iBAAiB,CAAC,KAAK,EAAE,8DAA8D,GAAG,OAAO;IAgBxG;;OAEG;IACI,QAAQ,IAAI,MAAM;IAOzB;;OAEG;IACa,YAAY,IAAI,gEAAgE,GAAG,IAAI;IAUvG;;OAEG;IACI,QAAQ,IAAI,MAAM;IAOzB;;OAEG;IACI,MAAM,IAAI,gEAAgE,GAAG,IAAI;CAGzF"}
@@ -91,25 +91,25 @@ export declare abstract class ProductCarbonFootprintSegmentConfigurationReferenc
91
91
  */
92
92
  isValidState(): boolean;
93
93
  /**
94
- * Obtiene una configuración por combinación de códigos de segmento y subsegmento.
94
+ * Obtiene una configuración por su ID.
95
95
  */
96
- getConfigurationBySegmentAndSubsegment(segmentCode: string, subsegmentCode?: string): ProductCarbonFootprintSegmentConfigurationReference | null;
96
+ getConfigurationById(configurationId: string): ProductCarbonFootprintSegmentConfigurationReference | null;
97
97
  /**
98
- * Verifica si existe una configuración con la combinación especificada.
98
+ * Verifica si existe una configuración con el ID especificado.
99
99
  */
100
- hasSegmentSubsegmentCombination(segmentCode: string, subsegmentCode?: string): boolean;
100
+ hasConfigurationId(configurationId: string): boolean;
101
101
  /**
102
102
  * Obtiene una configuración por su índice.
103
103
  */
104
104
  getConfigurationAt(index: number): ProductCarbonFootprintSegmentConfigurationReference | null;
105
105
  /**
106
- * Obtiene todas las configuraciones por código de segmento.
106
+ * Obtiene todas las configuraciones por ID de segmento.
107
107
  */
108
- getConfigurationsBySegmentCode(segmentCode: string): ProductCarbonFootprintSegmentConfigurationReference[];
108
+ getConfigurationsBySegmentId(segmentId: string): ProductCarbonFootprintSegmentConfigurationReference[];
109
109
  /**
110
- * Obtiene todas las configuraciones por código de subsegmento.
110
+ * Obtiene todas las configuraciones por ID de subsegmento.
111
111
  */
112
- getConfigurationsBySubsegmentCode(subsegmentCode: string): ProductCarbonFootprintSegmentConfigurationReference[];
112
+ getConfigurationsBySubsegmentId(subsegmentId: string): ProductCarbonFootprintSegmentConfigurationReference[];
113
113
  /**
114
114
  * Obtiene todas las configuraciones que no tienen subsegmento (null).
115
115
  */
@@ -126,25 +126,23 @@ export declare abstract class ProductCarbonFootprintSegmentConfigurationReferenc
126
126
  * Obtiene todas las combinaciones únicas de segmento-subsegmento.
127
127
  */
128
128
  getAllSegmentSubsegmentCombinations(): Array<{
129
- segmentCode: string;
130
- segmentName: string;
131
- subsegmentCode: string | null;
132
- subsegmentName: string | null;
129
+ segmentId: string;
130
+ subsegmentId: string | null;
133
131
  }>;
134
132
  /**
135
- * Obtiene todos los códigos únicos de segmentos.
133
+ * Obtiene todos los IDs únicos de segmentos.
136
134
  */
137
- getUniqueSegmentCodes(): string[];
135
+ getUniqueSegmentIds(): string[];
138
136
  /**
139
- * Obtiene todos los códigos únicos de subsegmentos (excluyendo null).
137
+ * Obtiene todos los IDs únicos de subsegmentos (excluyendo null).
140
138
  */
141
- getUniqueSubsegmentCodes(): string[];
139
+ getUniqueSubsegmentIds(): string[];
142
140
  /**
143
141
  * Obtiene todas las fuentes de emisión únicas.
144
142
  */
145
143
  getUniqueEmissionSources(): EmissionSource[];
146
144
  /**
147
- * Busca configuraciones que coincidan con un patrón de búsqueda.
145
+ * Busca configuraciones que coincidan con un patrón de búsqueda por ID.
148
146
  */
149
147
  findConfigurationsMatching(searchText: string): ProductCarbonFootprintSegmentConfigurationReference[];
150
148
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCarbonFootprintSegmentConfigurationReferences.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/ProductCarbonFootprintSegmentConfigurationReferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6DAA6D,EAAE,MAAM,wEAAwE,CAAC;AACvJ,OAAO,EAAE,mDAAmD,EAAE,MAAM,8DAA8D,CAAC;AACnI,OAAO,EAAE,mDAAmD,EAAE,MAAM,8DAA8D,CAAC;AACnI,OAAO,EAAE,sDAAsD,EAAE,MAAM,iEAAiE,CAAC;AACzI,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MA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iB,EAAE,MAAM,CAAC;QAC1B,4BAA4B,EAAE,MAAM,CAAC;QACrC,+BAA+B,EAAE,MAAM,CAAC;QACxC,qBAAqB,EAAE,MAAM,CAAC;QAC9B,+BAA+B,EAAE,MAAM,CAAC;QACxC,WAAW,EAAE,OAAO,CAAC;QACrB,YAAY,EAAE,OAAO,CAAC;KACvB;IAsBD;;OAEG;IACI,MAAM,CAAC,KAAK,EAAE,oDAAoD,GAAG,OAAO;IAmBnF;;OAEG;IACH,SAAS,CAAC,sBAAsB,CAAC,OAAO,EAAE,mDAAmD,EAAE,OAAO,EAAE,mDAAmD,GAAG,OAAO;IAQrK;;OAEG;IACH,SAAS,CAAC,yBAAyB,CAAC,QAAQ,EAAE,mDAAmD,EAAE,QAAQ,EAAE,mDAAmD,GAAG,OAAO;IAI1K;;OAEG;IACH,SAAS,CAAC,4BAA4B,CAAC,OAAO,EAAE,sDAAsD,GAAG,IAAI,EAAE,OAAO,EAAE,sDAAsD,GAAG,IAAI,GAAG,OAAO;IAY/L;;OAEG;IACH,SAAS,CAAC,uBAAuB,CAAC,QAAQ,EAAE,cAAc,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,OAAO;IAWlG;;OAEG;IACI,QAAQ,IAAI,MAAM;IAYzB;;OAEG;IACa,YAAY,IAAI,6DAA6D,EAAE;IAiB/F;;OAEG;IACI,QAAQ,IAAI,MAAM;IAKzB;;OAEG;IACI,MAAM,IAAI,6DAA6D,EAAE;IAIhF;;OAEG;WACW,qBAAqB,CACjC,KAAK,EAAE,mDAAmD,EAAE,EAC5D,OAAO,GAAE,2DAAkI,GAC1I,OAAO;CASX"}
1
+ {"version":3,"file":"ProductCarbonFootprintSegmentConfigurationReferences.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/ProductCarbonFootprintSegmentConfigurationReferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6DAA6D,EAAE,MAAM,wEAAwE,CAAC;AACvJ,OAAO,EAA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IACI,aAAa,IAAI;QACtB,mBAAmB,EAAE,MAAM,CAAC;QAC5B,cAAc,EAAE,MAAM,CAAC;QACvB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,4BAA4B,EAAE,MAAM,CAAC;QACrC,+BAA+B,EAAE,MAAM,CAAC;QACxC,qBAAqB,EAAE,MAAM,CAAC;QAC9B,+BAA+B,EAAE,MAAM,CAAC;QACxC,WAAW,EAAE,OAAO,CAAC;QACrB,YAAY,EAAE,OAAO,CAAC;KACvB;IAsBD;;OAEG;IACI,MAAM,CAAC,KAAK,EAAE,oDAAoD,GAAG,OAAO;IAmBnF;;OAEG;IACH,SAAS,CAAC,sBAAsB,CAAC,OAAO,EAAE,mDAAmD,EAAE,OAAO,EAAE,mDAAmD,GAAG,OAAO;IAQrK;;OAEG;IACH,SAAS,CAAC,yBAAyB,CAAC,QAAQ,EAAE,mDAAmD,EAAE,QAAQ,EAAE,mDAAmD,GAAG,OAAO;IAI1K;;OAEG;IACH,SAAS,CAAC,4BAA4B,CAAC,OAAO,EAAE,sDAAsD,GAAG,IAAI,EAAE,OAAO,EAAE,sDAAsD,GAAG,IAAI,GAAG,OAAO;IAY/L;;OAEG;IACH,SAAS,CAAC,uBAAuB,CAAC,QAAQ,EAAE,cAAc,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,OAAO;IAWlG;;OAEG;IACI,QAAQ,IAAI,MAAM;IAYzB;;OAEG;IACa,YAAY,IAAI,6DAA6D,EAAE;IAa/F;;OAEG;IACI,QAAQ,IAAI,MAAM;IAKzB;;OAEG;IACI,MAAM,IAAI,6DAA6D,EAAE;IAIhF;;OAEG;WACW,qBAAqB,CACjC,KAAK,EAAE,mDAAmD,EAAE,EAC5D,OAAO,GAAE,2DAAkI,GAC1I,OAAO;CASX"}
@@ -4,9 +4,6 @@ import { ObjectValueObject } from './ObjectValueObject';
4
4
  export declare abstract class ProductConfigurationCarbonFootprintSegmentReference extends ObjectValueObject<ProductConfigurationCarbonFootprintSegmentReferencePrimitives> {
5
5
  #private;
6
6
  protected static readonly DEFAULT_PROPERTY_NAME = "productSegmentReference";
7
- protected static readonly MIN_CODE_LENGTH = 2;
8
- protected static readonly MAX_CODE_LENGTH = 10;
9
- protected static readonly MAX_NAME_LENGTH = 255;
10
7
  /**
11
8
  * Constructor protegido para que solo clases hijas puedan instanciar.
12
9
  * Aplica todas las validaciones de dominio al momento de construcción.
@@ -25,77 +22,8 @@ export declare abstract class ProductConfigurationCarbonFootprintSegmentReferenc
25
22
  */
26
23
  protected static valueIsInvalid(value: any): boolean;
27
24
  protected static guardAgainstInvalidId(id: string): void;
28
- /**
29
- * Valida el código del segmento de producto.
30
- */
31
- protected static guardAgainstInvalidSegmentCode(code: string): void;
32
- /**
33
- * Verifica si el código de segmento está vacío.
34
- */
35
- protected static codeIsEmpty(code: string): boolean;
36
- /**
37
- * Verifica si la longitud del código de segmento es inválida.
38
- */
39
- protected static codeLengthIsInvalid(trimmedCode: string): boolean;
40
- /**
41
- * Verifica si el formato del código de segmento es inválido.
42
- */
43
- protected static codeFormatIsInvalid(trimmedCode: string, propertyName: string): void;
44
- /**
45
- * Valida el nombre del segmento de producto.
46
- */
47
- protected static guardAgainstInvalidSegmentName(name: string): void;
48
- /**
49
- * Verifica si el nombre de segmento está vacío.
50
- */
51
- protected static nameIsEmpty(name: string): boolean;
52
- /**
53
- * Verifica si la longitud del nombre de segmento es inválida.
54
- */
55
- protected static nameLengthIsInvalid(name: string): boolean;
56
25
  get id(): string;
57
- /**
58
- * Código del segmento de producto.
59
- */
60
- get code(): string;
61
- /**
62
- * Nombre del segmento de producto.
63
- */
64
- get name(): string;
65
26
  hasId(id: string): boolean;
66
- hasName(name: string): boolean;
67
- /**
68
- * Verifica si el segmento tiene un código específico.
69
- */
70
- hasCode(code: string): boolean;
71
- /**
72
- * Verifica si el nombre del segmento contiene una palabra específica.
73
- */
74
- nameContains(keyword: string): boolean;
75
- /**
76
- * Verifica si es un segmento de tecnología.
77
- */
78
- isTechnologySegment(): boolean;
79
- /**
80
- * Verifica si es un segmento financiero.
81
- */
82
- isFinancialSegment(): boolean;
83
- /**
84
- * Verifica si es un segmento de manufactura.
85
- */
86
- isManufacturingSegment(): boolean;
87
- /**
88
- * Verifica si es un segmento de servicios.
89
- */
90
- isServicesSegment(): boolean;
91
- /**
92
- * Obtiene una representación formateada para mostrar al usuario.
93
- */
94
- getFormattedDisplay(): string;
95
- /**
96
- * Obtiene una versión abreviada del nombre si es muy largo.
97
- */
98
- getAbbreviatedName(maxLength?: number): string;
99
27
  /**
100
28
  * Compara la igualdad semántica con otro objeto ProductConfigurationCarbonFootprintSegmentReference.
101
29
  */
@@ -104,14 +32,6 @@ export declare abstract class ProductConfigurationCarbonFootprintSegmentReferenc
104
32
  * Verifica si el otro objeto no es una instancia de ProductConfigurationCarbonFootprintSegmentReference.
105
33
  */
106
34
  protected otherIsNotProductConfigurationCarbonFootprintSegmentReference(other: any): boolean;
107
- /**
108
- * Compara si dos segmentos tienen el mismo código.
109
- */
110
- hasSameCode(other: ProductConfigurationCarbonFootprintSegmentReference): boolean;
111
- /**
112
- * Compara si dos segmentos tienen el mismo nombre.
113
- */
114
- hasSameName(other: ProductConfigurationCarbonFootprintSegmentReference): boolean;
115
35
  /**
116
36
  * Genera un hash code para usar en colecciones.
117
37
  */
@@ -121,7 +41,7 @@ export declare abstract class ProductConfigurationCarbonFootprintSegmentReferenc
121
41
  */
122
42
  toPrimitives(): ProductConfigurationCarbonFootprintSegmentReferencePrimitives;
123
43
  /**
124
- * Representación como string (código del segmento).
44
+ * Representación como string (id del segmento).
125
45
  */
126
46
  toString(): string;
127
47
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ProductConfigurationCarbonFootprintSegmentReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSegmentReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6DAA6D,EAAE,MAAM,wEAAwE,CAAC;AACvJ,OAAO,E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IACa,YAAY,IAAI,6DAA6D;IAQ7F;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACI,MAAM,IAAI,6DAA6D;IAI9E;;OAEG;WACW,kBAAkB,CAC9B,KAAK,EAAE,oDAAoD,EAC3D,YAAY,GAAE,MAAmC,GAChD,IAAI;CAGR"}
1
+ {"version":3,"file":"ProductConfigurationCarbonFootprintSegmentReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSegmentReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6DAA6D,EAAE,MAAM,wEAAwE,CAAC;AACvJ,OAAO,EAAE,mDAAmD,IAAI,oDAAoD,EAAE,MAAM,8DAA8D,CAAC;AAC3L,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,8BAAsB,mDAAoD,SAAQ,iBAAiB,CAAC,6DAA6D,CAAC;;IAChK,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,6BAA6B;IAI5E;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,oDAAoD,EAC3D,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAAkF;IAkBlG;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,2DAA2D,CAAC,KAAK,EAAE,oDAAoD,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAKrK;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAUhF;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO;IAIpD,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAKxD,IAAW,EAAE,IAAI,MAAM,CAEtB;IAEM,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIjC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