@carbonbox/domain 0.7.22 → 0.7.24
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/build/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationSegment.js +0 -2
- package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentIncludedSubsegments.js +0 -2
- package/build/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/domain/value-objects/EventEditionLifecycleStageConfigurationStage.js +0 -2
- package/build/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/event-edition-lifecycle-stages/domain/value-objects/EventEditionLifecycleStageIncludedSubsegments.js +0 -2
- package/build/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/domain/value-objects/ProductCarbonFootprintSegmentConfigurationSegment.js +0 -2
- package/build/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/domain/value-objects/ProductConfigurationCarbonFootprintSegmentIncludedSubsegments.js +0 -2
- package/build/carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowJobSequence.js +3 -5
- package/build/carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowParallelJobs.js +28 -27
- package/build/carbonbox/shared/domain/value-objects/CarbonFootprintSegmentReferences.js +16 -103
- package/build/carbonbox/shared/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationReferences.js +15 -29
- package/build/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentReference.js +6 -131
- package/build/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentReference.js +6 -131
- package/build/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReference.js +7 -149
- package/build/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReferences.js +9 -165
- package/build/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageConfigurationReferences.js +42 -50
- package/build/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageReference.js +8 -112
- package/build/carbonbox/shared/domain/value-objects/NullableCorporateConfigurationCarbonFootprintSubsegmentReference.js +11 -136
- package/build/carbonbox/shared/domain/value-objects/NullableEventEditionConfigurationCarbonFootprintSubsegmentReference.js +11 -168
- package/build/carbonbox/shared/domain/value-objects/NullableProductConfigurationCarbonFootprintSubsegmentReference.js +11 -136
- package/build/carbonbox/shared/domain/value-objects/ProductCarbonFootprintSegmentConfigurationReferences.js +35 -56
- package/build/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSegmentReference.js +6 -172
- package/build/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentReference.js +6 -172
- package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationSegment.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentIncludedSubsegments.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/domain/value-objects/EventEditionLifecycleStageConfigurationStage.d.ts.map +1 -1
- 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
- package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/domain/value-objects/ProductCarbonFootprintSegmentConfigurationSegment.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/domain/value-objects/ProductConfigurationCarbonFootprintSegmentIncludedSubsegments.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowJobSequence.d.ts +2 -2
- package/build/types/carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowJobSequence.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowParallelJobs.d.ts +5 -5
- package/build/types/carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowParallelJobs.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/CorporateConfigurationCarbonFootprintSegmentReference.d.ts +0 -2
- package/build/types/carbonbox/shared/domain/types/CorporateConfigurationCarbonFootprintSegmentReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/CorporateConfigurationCarbonFootprintSegmentReferencePrimitives.d.ts +0 -2
- package/build/types/carbonbox/shared/domain/types/CorporateConfigurationCarbonFootprintSegmentReferencePrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/CorporateConfigurationCarbonFootprintSubsegmentReference.d.ts +0 -2
- package/build/types/carbonbox/shared/domain/types/CorporateConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/CorporateConfigurationCarbonFootprintSubsegmentReferencePrimitives.d.ts +0 -2
- package/build/types/carbonbox/shared/domain/types/CorporateConfigurationCarbonFootprintSubsegmentReferencePrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/EventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts +0 -2
- package/build/types/carbonbox/shared/domain/types/EventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/EventEditionConfigurationCarbonFootprintSubsegmentReferencePrimitives.d.ts +0 -2
- package/build/types/carbonbox/shared/domain/types/EventEditionConfigurationCarbonFootprintSubsegmentReferencePrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/EventEditionLifecycleStageReference.d.ts +0 -2
- package/build/types/carbonbox/shared/domain/types/EventEditionLifecycleStageReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/EventEditionLifecycleStageReferencePrimitives.d.ts +0 -2
- package/build/types/carbonbox/shared/domain/types/EventEditionLifecycleStageReferencePrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSegmentReference.d.ts +0 -2
- package/build/types/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSegmentReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSegmentReferencePrimitives.d.ts +0 -2
- package/build/types/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSegmentReferencePrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSubsegmentReference.d.ts +0 -2
- package/build/types/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSubsegmentReferencePrimitives.d.ts +0 -2
- package/build/types/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSubsegmentReferencePrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/CarbonFootprintSegmentReferences.d.ts +7 -43
- package/build/types/carbonbox/shared/domain/value-objects/CarbonFootprintSegmentReferences.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationReferences.d.ts +6 -8
- package/build/types/carbonbox/shared/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationReferences.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentReference.d.ts +1 -62
- package/build/types/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentReference.d.ts +1 -71
- package/build/types/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts +2 -78
- package/build/types/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReferences.d.ts +5 -68
- package/build/types/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReferences.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageConfigurationReferences.d.ts +20 -19
- package/build/types/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageConfigurationReferences.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageReference.d.ts +2 -45
- package/build/types/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableCorporateConfigurationCarbonFootprintSubsegmentReference.d.ts +2 -62
- package/build/types/carbonbox/shared/domain/value-objects/NullableCorporateConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableEventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts +2 -77
- package/build/types/carbonbox/shared/domain/value-objects/NullableEventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableProductConfigurationCarbonFootprintSubsegmentReference.d.ts +2 -62
- package/build/types/carbonbox/shared/domain/value-objects/NullableProductConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/ProductCarbonFootprintSegmentConfigurationReferences.d.ts +15 -17
- package/build/types/carbonbox/shared/domain/value-objects/ProductCarbonFootprintSegmentConfigurationReferences.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSegmentReference.d.ts +1 -81
- package/build/types/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSegmentReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentReference.d.ts +1 -90
- package/build/types/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
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 (
|
|
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;
|
|
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
|
|
94
|
+
* Obtiene una configuración por su ID.
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
getConfigurationById(configurationId: string): ProductCarbonFootprintSegmentConfigurationReference | null;
|
|
97
97
|
/**
|
|
98
|
-
* Verifica si existe una configuración con
|
|
98
|
+
* Verifica si existe una configuración con el ID especificado.
|
|
99
99
|
*/
|
|
100
|
-
|
|
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
|
|
106
|
+
* Obtiene todas las configuraciones por ID de segmento.
|
|
107
107
|
*/
|
|
108
|
-
|
|
108
|
+
getConfigurationsBySegmentId(segmentId: string): ProductCarbonFootprintSegmentConfigurationReference[];
|
|
109
109
|
/**
|
|
110
|
-
* Obtiene todas las configuraciones por
|
|
110
|
+
* Obtiene todas las configuraciones por ID de subsegmento.
|
|
111
111
|
*/
|
|
112
|
-
|
|
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
|
-
|
|
130
|
-
|
|
131
|
-
subsegmentCode: string | null;
|
|
132
|
-
subsegmentName: string | null;
|
|
129
|
+
segmentId: string;
|
|
130
|
+
subsegmentId: string | null;
|
|
133
131
|
}>;
|
|
134
132
|
/**
|
|
135
|
-
* Obtiene todos los
|
|
133
|
+
* Obtiene todos los IDs únicos de segmentos.
|
|
136
134
|
*/
|
|
137
|
-
|
|
135
|
+
getUniqueSegmentIds(): string[];
|
|
138
136
|
/**
|
|
139
|
-
* Obtiene todos los
|
|
137
|
+
* Obtiene todos los IDs únicos de subsegmentos (excluyendo null).
|
|
140
138
|
*/
|
|
141
|
-
|
|
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,MAAM,eAAe,CAAC;
|
|
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,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,2DAA2D,EAAE,MAAM,sEAAsE,CAAC;AAEnJ,8BAAsB,oDAAqD,SAAQ,WAAW,CAAC,6DAA6D,EAAE,CAAC;;IAC7J,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,2CAA2C;IAE1F,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,EAAE,2DAA2D,CAEpG;IAMF;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,mDAAmD,EAAE,EAC5D,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAAmF,EACjG,OAAO,GAAE,2DAAkI;IAqB7I;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,sBAAsB,CACrC,KAAK,EAAE,mDAAmD,EAAE,EAC5D,YAAY,EAAE,MAAM,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AAC,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 (
|
|
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,EAAE,mDAAmD,IAAI,oDAAoD,EAAE,MAAM,8DAA8D,CAAC;AAC3L,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;
|
|
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;;OAEG;IACI,MAAM,CAAC,KAAK,EAAE,mDAAmD,GAAG,OAAO;IAQlF;;OAEG;IACH,SAAS,CAAC,6DAA6D,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO;IAI5F;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACa,YAAY,IAAI,6DAA6D;IAM7F;;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"}
|
|
@@ -4,9 +4,6 @@ import { ObjectValueObject } from './ObjectValueObject';
|
|
|
4
4
|
export declare abstract class ProductConfigurationCarbonFootprintSubsegmentReference extends ObjectValueObject<ProductConfigurationCarbonFootprintSubsegmentReferencePrimitives> {
|
|
5
5
|
#private;
|
|
6
6
|
protected static readonly DEFAULT_PROPERTY_NAME = "productSubsegmentReference";
|
|
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,86 +22,8 @@ export declare abstract class ProductConfigurationCarbonFootprintSubsegmentRefer
|
|
|
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 guardAgainstInvalidSubsegmentCode(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 guardAgainstInvalidSubsegmentName(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
|
-
hasName(name: string): boolean;
|
|
66
26
|
hasId(id: 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
|
-
isTechnologySubsegment(): boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Verifica si es un segmento financiero.
|
|
81
|
-
*/
|
|
82
|
-
isFinancialSubsegment(): boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Verifica si es un segmento de manufactura.
|
|
85
|
-
*/
|
|
86
|
-
isManufacturingSubsegment(): boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Verifica si es un segmento de servicios.
|
|
89
|
-
*/
|
|
90
|
-
isServicesSubsegment(): 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
|
-
/**
|
|
100
|
-
* Crea una nueva instancia con un código diferente.
|
|
101
|
-
* Mantiene inmutabilidad creando un nuevo objeto.
|
|
102
|
-
*/
|
|
103
|
-
abstract withSubsegmentCode(code: string): ProductConfigurationCarbonFootprintSubsegmentReference;
|
|
104
|
-
/**
|
|
105
|
-
* Crea una nueva instancia con un nombre diferente.
|
|
106
|
-
*/
|
|
107
|
-
abstract withSubsegmentName(name: string): ProductConfigurationCarbonFootprintSubsegmentReference;
|
|
108
27
|
/**
|
|
109
28
|
* Compara la igualdad semántica con otro objeto ProductConfigurationCarbonFootprintSubsegmentReference.
|
|
110
29
|
*/
|
|
@@ -113,14 +32,6 @@ export declare abstract class ProductConfigurationCarbonFootprintSubsegmentRefer
|
|
|
113
32
|
* Verifica si el otro objeto no es una instancia de ProductConfigurationCarbonFootprintSubsegmentReference.
|
|
114
33
|
*/
|
|
115
34
|
protected otherIsNotProductConfigurationCarbonFootprintSubsegmentReference(other: any): boolean;
|
|
116
|
-
/**
|
|
117
|
-
* Compara si dos segmentos tienen el mismo código.
|
|
118
|
-
*/
|
|
119
|
-
hasSameCode(other: ProductConfigurationCarbonFootprintSubsegmentReference): boolean;
|
|
120
|
-
/**
|
|
121
|
-
* Compara si dos segmentos tienen el mismo nombre.
|
|
122
|
-
*/
|
|
123
|
-
hasSameName(other: ProductConfigurationCarbonFootprintSubsegmentReference): boolean;
|
|
124
35
|
/**
|
|
125
36
|
* Genera un hash code para usar en colecciones.
|
|
126
37
|
*/
|
|
@@ -130,7 +41,7 @@ export declare abstract class ProductConfigurationCarbonFootprintSubsegmentRefer
|
|
|
130
41
|
*/
|
|
131
42
|
toPrimitives(): ProductConfigurationCarbonFootprintSubsegmentReferencePrimitives;
|
|
132
43
|
/**
|
|
133
|
-
* Representación como string (
|
|
44
|
+
* Representación como string (id del subsegmento).
|
|
134
45
|
*/
|
|
135
46
|
toString(): string;
|
|
136
47
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductConfigurationCarbonFootprintSubsegmentReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gEAAgE,EAAE,MAAM,2EAA2E,CAAC;AAC7J,OAAO,EAAE,sDAAsD,IAAI,uDAAuD,EAAE,MAAM,iEAAiE,CAAC;AACpM,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"ProductConfigurationCarbonFootprintSubsegmentReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gEAAgE,EAAE,MAAM,2EAA2E,CAAC;AAC7J,OAAO,EAAE,sDAAsD,IAAI,uDAAuD,EAAE,MAAM,iEAAiE,CAAC;AACpM,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,8BAAsB,sDAAuD,SAAQ,iBAAiB,CAAC,gEAAgE,CAAC;;IACtK,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,gCAAgC;IAI/E;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,uDAA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