@carbonbox/domain 0.7.21 → 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.
- 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/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/main/index.js +25 -13
- 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/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/build/types/main/index.d.ts +6 -0
- package/build/types/main/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductConfigurationCarbonFootprintSegmentReferencePrimitives.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSegmentReferencePrimitives.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,6DAA6D,GAAG;IAC1E,EAAE,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ProductConfigurationCarbonFootprintSegmentReferencePrimitives.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSegmentReferencePrimitives.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,6DAA6D,GAAG;IAC1E,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductConfigurationCarbonFootprintSubsegmentReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSubsegmentReference.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sDAAsD,GAAG;IACnE,EAAE,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ProductConfigurationCarbonFootprintSubsegmentReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSubsegmentReference.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sDAAsD,GAAG;IACnE,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductConfigurationCarbonFootprintSubsegmentReferencePrimitives.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSubsegmentReferencePrimitives.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gEAAgE,GAAG;IAC7E,EAAE,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ProductConfigurationCarbonFootprintSubsegmentReferencePrimitives.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/ProductConfigurationCarbonFootprintSubsegmentReferencePrimitives.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gEAAgE,GAAG;IAC7E,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC"}
|
package/build/types/carbonbox/shared/domain/value-objects/CarbonFootprintSegmentReferences.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare abstract class CarbonFootprintSegmentReferences extends ValueObje
|
|
|
24
24
|
*/
|
|
25
25
|
protected static guardAgainstInvalidEmptyArray(value: SegmentReference[], options: CarbonFootprintSegmentReferencesOptions, propertyName: string): void;
|
|
26
26
|
/**
|
|
27
|
-
* Valida que no haya
|
|
27
|
+
* Valida que no haya IDs de segmento duplicados.
|
|
28
28
|
*/
|
|
29
29
|
protected static guardAgainstDuplicateSegmentCodes(value: SegmentReference[], propertyName: string): void;
|
|
30
30
|
/**
|
|
@@ -39,14 +39,6 @@ export declare abstract class CarbonFootprintSegmentReferences extends ValueObje
|
|
|
39
39
|
* Valida el ID de segmento usando las validaciones de AggregateId.
|
|
40
40
|
*/
|
|
41
41
|
protected static guardAgainstInvalidSegmentId(id: string, propertyName: string): void;
|
|
42
|
-
/**
|
|
43
|
-
* Valida el código de segmento usando las validaciones de Code.
|
|
44
|
-
*/
|
|
45
|
-
protected static guardAgainstInvalidSegmentCode(code: string, propertyName: string): void;
|
|
46
|
-
/**
|
|
47
|
-
* Valida el nombre del segmento.
|
|
48
|
-
*/
|
|
49
|
-
protected static guardAgainstInvalidSegmentName(name: string, propertyName: string): void;
|
|
50
42
|
/**
|
|
51
43
|
* Referencias de segmentos (inmutable).
|
|
52
44
|
*/
|
|
@@ -68,41 +60,21 @@ export declare abstract class CarbonFootprintSegmentReferences extends ValueObje
|
|
|
68
60
|
*/
|
|
69
61
|
hasSegments(): boolean;
|
|
70
62
|
/**
|
|
71
|
-
* Obtiene un segmento por su
|
|
63
|
+
* Obtiene un segmento por su ID.
|
|
72
64
|
*/
|
|
73
|
-
|
|
65
|
+
getSegmentById(segmentId: string): SegmentReference | null;
|
|
74
66
|
/**
|
|
75
|
-
* Verifica si existe un segmento con el
|
|
67
|
+
* Verifica si existe un segmento con el ID especificado.
|
|
76
68
|
*/
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Obtiene un segmento por su nombre.
|
|
80
|
-
*/
|
|
81
|
-
getSegmentByName(segmentName: string): SegmentReference | null;
|
|
82
|
-
/**
|
|
83
|
-
* Verifica si existe un segmento con el nombre especificado.
|
|
84
|
-
*/
|
|
85
|
-
hasSegmentName(segmentName: string): boolean;
|
|
69
|
+
hasSegmentId(segmentId: string): boolean;
|
|
86
70
|
/**
|
|
87
71
|
* Obtiene un segmento por su índice.
|
|
88
72
|
*/
|
|
89
73
|
getSegmentAt(index: number): SegmentReference | null;
|
|
90
74
|
/**
|
|
91
|
-
* Obtiene todos los
|
|
92
|
-
*/
|
|
93
|
-
getAllSegmentCodes(): string[];
|
|
94
|
-
/**
|
|
95
|
-
* Obtiene todos los nombres de segmento.
|
|
96
|
-
*/
|
|
97
|
-
getAllSegmentNames(): string[];
|
|
98
|
-
/**
|
|
99
|
-
* Busca segmentos por texto en el nombre.
|
|
100
|
-
*/
|
|
101
|
-
findSegmentsByNameContaining(searchText: string): SegmentReference[];
|
|
102
|
-
/**
|
|
103
|
-
* Busca segmentos que coincidan con un patrón en código o nombre.
|
|
75
|
+
* Obtiene todos los IDs de segmento.
|
|
104
76
|
*/
|
|
105
|
-
|
|
77
|
+
getAllSegmentIds(): string[];
|
|
106
78
|
/**
|
|
107
79
|
* Obtiene los primeros N segmentos.
|
|
108
80
|
*/
|
|
@@ -111,14 +83,6 @@ export declare abstract class CarbonFootprintSegmentReferences extends ValueObje
|
|
|
111
83
|
* Obtiene los últimos N segmentos.
|
|
112
84
|
*/
|
|
113
85
|
getLastN(count: number): SegmentReference[];
|
|
114
|
-
/**
|
|
115
|
-
* Verifica si todos los segmentos tienen nombres únicos.
|
|
116
|
-
*/
|
|
117
|
-
hasUniqueNames(): boolean;
|
|
118
|
-
/**
|
|
119
|
-
* Obtiene segmentos con nombres duplicados.
|
|
120
|
-
*/
|
|
121
|
-
getDuplicateNameSegments(): SegmentReference[];
|
|
122
86
|
/**
|
|
123
87
|
* Compara la igualdad semántica con otra colección de referencias de segmento.
|
|
124
88
|
*/
|
package/build/types/carbonbox/shared/domain/value-objects/CarbonFootprintSegmentReferences.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarbonFootprintSegmentReferences.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/CarbonFootprintSegmentReferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"CarbonFootprintSegmentReferences.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/CarbonFootprintSegmentReferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,uCAAuC,EAAE,MAAM,kDAAkD,CAAC;AAE3G,8BAAsB,gCAAiC,SAAQ,WAAW,CAAC,0BAA0B,EAAE,CAAC;;IACtG,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,sCAAsC;IAErF,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,EAAE,uCAAuC,CAEhF;IAMF;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,gBAAgB,EAAE,EACzB,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAA+D,EAC7E,OAAO,GAAE,uCAA0F;IAoBrG;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,yBAAyB,CACxC,KAAK,EAAE,gBAAgB,EAAE,EACzB,OAAO,EAAE,uCAAuC,EAChD,YAAY,EAAE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GAAG,IAAI;IAO3D;;OAEG;IACI,gBAAgB,IAAI,MAAM,EAAE;IAInC;;OAEG;IACI,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,EAAE;IAOnD;;OAEG;IACI,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,EAAE;IAQlD;;OAEG;IACI,MAAM,CAAC,KAAK,EAAE,gCAAgC,GAAG,OAAO;IAmB/D;;OAEG;IACH,SAAS,CAAC,yBAAyB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,gBAAgB,GAAG,OAAO;IAIpG;;OAEG;IACI,QAAQ,IAAI,MAAM;IAQzB;;OAEG;IACa,YAAY,IAAI,0BAA0B,EAAE;IAM5D;;OAEG;IACI,MAAM,IAAI,0BAA0B,EAAE;IAI7C;;OAEG;WACW,wBAAwB,CACpC,KAAK,EAAE,gBAAgB,EAAE,EACzB,OAAO,GAAE,uCAA0F,GAClG,OAAO;CASX"}
|
|
@@ -59,8 +59,6 @@ export declare abstract class CorporateCarbonFootprintSegmentConfigurationRefere
|
|
|
59
59
|
*/
|
|
60
60
|
protected static guardAgainstInvalidSegmentReference(reference: {
|
|
61
61
|
id: string;
|
|
62
|
-
code: string;
|
|
63
|
-
name: string;
|
|
64
62
|
}, propertyName: string, typeName: string): void;
|
|
65
63
|
/**
|
|
66
64
|
* Configuraciones de segmento corporativo (inmutable).
|
|
@@ -107,13 +105,13 @@ export declare abstract class CorporateCarbonFootprintSegmentConfigurationRefere
|
|
|
107
105
|
*/
|
|
108
106
|
getConfigurationAt(index: number): CorporateCarbonFootprintSegmentConfigurationReference | null;
|
|
109
107
|
/**
|
|
110
|
-
* Obtiene todos los
|
|
108
|
+
* Obtiene todos los IDs de configuración.
|
|
111
109
|
*/
|
|
112
110
|
getAllConfigurationIds(): string[];
|
|
113
111
|
/**
|
|
114
|
-
* Obtiene todas las configuraciones por
|
|
112
|
+
* Obtiene todas las configuraciones por ID de segmento corporativo.
|
|
115
113
|
*/
|
|
116
|
-
|
|
114
|
+
getConfigurationsBySegmentId(segmentId: string): CorporateCarbonFootprintSegmentConfigurationReference[];
|
|
117
115
|
/**
|
|
118
116
|
* Obtiene todas las configuraciones por fuente de emisión.
|
|
119
117
|
*/
|
|
@@ -131,15 +129,15 @@ export declare abstract class CorporateCarbonFootprintSegmentConfigurationRefere
|
|
|
131
129
|
*/
|
|
132
130
|
hasAnyConfigurationWithSubsegment(): boolean;
|
|
133
131
|
/**
|
|
134
|
-
* Obtiene todos los
|
|
132
|
+
* Obtiene todos los IDs únicos de segmentos corporativos.
|
|
135
133
|
*/
|
|
136
|
-
|
|
134
|
+
getUniqueSegmentIds(): string[];
|
|
137
135
|
/**
|
|
138
136
|
* Obtiene todas las fuentes de emisión únicas.
|
|
139
137
|
*/
|
|
140
138
|
getUniqueEmissionSources(): EmissionSource[];
|
|
141
139
|
/**
|
|
142
|
-
* Busca configuraciones que coincidan con un patrón en
|
|
140
|
+
* Busca configuraciones que coincidan con un patrón en ID de configuración o fuentes de emisión.
|
|
143
141
|
*/
|
|
144
142
|
findConfigurationsMatching(searchText: string): CorporateCarbonFootprintSegmentConfigurationReference[];
|
|
145
143
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CorporateCarbonFootprintSegmentConfigurationReferences.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationReferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,+DAA+D,EAAE,MAAM,0EAA0E,CAAC;AAC3J,OAAO,EAAE,qDAAqD,EAAE,MAAM,gEAAgE,CAAC;AACvI,OAAO,EAAE,qDAAqD,EAAE,MAAM,gEAAgE,CAAC;AACvI,OAAO,EAAE,wDAAwD,EAAE,MAAM,mEAAmE,CAAC;AAC7I,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"CorporateCarbonFootprintSegmentConfigurationReferences.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationReferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,+DAA+D,EAAE,MAAM,0EAA0E,CAAC;AAC3J,OAAO,EAAE,qDAAqD,EAAE,MAAM,gEAAgE,CAAC;AACvI,OAAO,EAAE,qDAAqD,EAAE,MAAM,gEAAgE,CAAC;AACvI,OAAO,EAAE,wDAAwD,EAAE,MAAM,mEAAmE,CAAC;AAC7I,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,6DAA6D,EAAE,MAAM,wEAAwE,CAAC;AAEvJ,8BAAsB,sDAAuD,SAAQ,WAAW,CAAC,+DAA+D,EAAE,CAAC;;IACjK,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,6CAA6C;IAE5F,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,EAAE,6DAA6D,CAEtG;IAMF;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,qDAAqD,EAAE,EAC9D,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAAqF,EACnG,OAAO,GAAE,6DAAsI;IAoBjJ;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,sBAAsB,CACrC,KAAK,EAAE,qDAAqD,EAAE,EAC9D,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,6DAA6D,GACrE,IAAI;IAUP;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,4BAA4B,CAAC,KAAK,EAAE,qDAAqD,EAAE,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAMzI;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,6BAA6B,CAC5C,KAAK,EAAE,qDAAqD,EAAE,EAC9D,OAAO,EAAE,6DAA6D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AC9B,WAAW,EAAE,OAAO,CAAC;QACrB,YAAY,EAAE,OAAO,CAAC;KACvB;IAkBD;;OAEG;IACI,MAAM,CAAC,KAAK,EAAE,sDAAsD,GAAG,OAAO;IAmBrF;;OAEG;IACH,SAAS,CAAC,sBAAsB,CAAC,OAAO,EAAE,qDAAqD,EAAE,OAAO,EAAE,qDAAqD,GAAG,OAAO;IASzK;;OAEG;IACH,SAAS,CAAC,yBAAyB,CAAC,IAAI,EAAE,qDAAqD,EAAE,IAAI,EAAE,qDAAqD,GAAG,OAAO;IAItK;;OAEG;IACH,SAAS,CAAC,4BAA4B,CAAC,OAAO,EAAE,wDAAwD,GAAG,IAAI,EAAE,OAAO,EAAE,wDAAwD,GAAG,IAAI,GAAG,OAAO;IAUnM;;OAEG;IACH,SAAS,CAAC,uBAAuB,CAAC,QAAQ,EAAE,cAAc,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,OAAO;IASlG;;OAEG;IACI,QAAQ,IAAI,MAAM;IAQzB;;OAEG;IACa,YAAY,IAAI,+DAA+D,EAAE;IAajG;;OAEG;IACI,QAAQ,IAAI,MAAM;IAKzB;;OAEG;IACI,MAAM,IAAI,+DAA+D,EAAE;IAIlF;;OAEG;WACW,qBAAqB,CACjC,KAAK,EAAE,qDAAqD,EAAE,EAC9D,OAAO,GAAE,6DAAsI,GAC9I,OAAO;CASX"}
|
|
@@ -4,7 +4,6 @@ import { ObjectValueObject } from './ObjectValueObject';
|
|
|
4
4
|
export declare abstract class CorporateConfigurationCarbonFootprintSegmentReference extends ObjectValueObject<CorporateConfigurationCarbonFootprintSegmentReferencePrimitives> {
|
|
5
5
|
#private;
|
|
6
6
|
protected static readonly DEFAULT_PROPERTY_NAME = "corporateSegmentReference";
|
|
7
|
-
protected static readonly MAX_NAME_LENGTH = 255;
|
|
8
7
|
/**
|
|
9
8
|
* Constructor protegido para que solo clases hijas puedan instanciar.
|
|
10
9
|
* Aplica todas las validaciones de dominio al momento de construcción.
|
|
@@ -26,62 +25,10 @@ export declare abstract class CorporateConfigurationCarbonFootprintSegmentRefere
|
|
|
26
25
|
* Valida el ID usando las validaciones de AggregateId.
|
|
27
26
|
*/
|
|
28
27
|
protected static guardAgainstInvalidId(id: string): void;
|
|
29
|
-
/**
|
|
30
|
-
* Valida el código del segmento corporativo.
|
|
31
|
-
*/
|
|
32
|
-
protected static guardAgainstInvalidCode(code: string): void;
|
|
33
|
-
/**
|
|
34
|
-
* Valida el nombre del segmento corporativo.
|
|
35
|
-
*/
|
|
36
|
-
protected static guardAgainstInvalidName(name: string): void;
|
|
37
|
-
/**
|
|
38
|
-
* Verifica si la longitud del nombre de segmento es inválida.
|
|
39
|
-
*/
|
|
40
|
-
protected static nameLengthIsInvalid(name: string): boolean;
|
|
41
28
|
/**
|
|
42
29
|
* ID único del segmento corporativo.
|
|
43
30
|
*/
|
|
44
31
|
get id(): string;
|
|
45
|
-
/**
|
|
46
|
-
* Código del segmento corporativo.
|
|
47
|
-
*/
|
|
48
|
-
get code(): string;
|
|
49
|
-
/**
|
|
50
|
-
* Nombre del segmento corporativo.
|
|
51
|
-
*/
|
|
52
|
-
get name(): string;
|
|
53
|
-
/**
|
|
54
|
-
* Verifica si el segmento tiene un código específico.
|
|
55
|
-
*/
|
|
56
|
-
hasCode(code: string): boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Verifica si el nombre del segmento contiene una palabra específica.
|
|
59
|
-
*/
|
|
60
|
-
nameContains(keyword: string): boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Verifica si es un segmento de tecnología.
|
|
63
|
-
*/
|
|
64
|
-
isTechnologySegment(): boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Verifica si es un segmento financiero.
|
|
67
|
-
*/
|
|
68
|
-
isFinancialSegment(): boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Verifica si es un segmento de manufactura.
|
|
71
|
-
*/
|
|
72
|
-
isManufacturingSegment(): boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Verifica si es un segmento de servicios.
|
|
75
|
-
*/
|
|
76
|
-
isServicesSegment(): boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Obtiene una representación formateada para mostrar al usuario.
|
|
79
|
-
*/
|
|
80
|
-
getFormattedDisplay(): string;
|
|
81
|
-
/**
|
|
82
|
-
* Obtiene una versión abreviada del nombre si es muy largo.
|
|
83
|
-
*/
|
|
84
|
-
getAbbreviatedName(maxLength?: number): string;
|
|
85
32
|
/**
|
|
86
33
|
* Compara la igualdad semántica con otro objeto CorporateConfigurationCarbonFootprintSegmentReference.
|
|
87
34
|
*/
|
|
@@ -90,14 +37,6 @@ export declare abstract class CorporateConfigurationCarbonFootprintSegmentRefere
|
|
|
90
37
|
* Verifica si el otro objeto no es una instancia de CorporateConfigurationCarbonFootprintSegmentReference.
|
|
91
38
|
*/
|
|
92
39
|
protected otherIsNotCorporateConfigurationCarbonFootprintSegmentReference(other: any): boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Compara si dos segmentos tienen el mismo código.
|
|
95
|
-
*/
|
|
96
|
-
hasSameCode(other: CorporateConfigurationCarbonFootprintSegmentReference): boolean;
|
|
97
|
-
/**
|
|
98
|
-
* Compara si dos segmentos tienen el mismo nombre.
|
|
99
|
-
*/
|
|
100
|
-
hasSameName(other: CorporateConfigurationCarbonFootprintSegmentReference): boolean;
|
|
101
40
|
/**
|
|
102
41
|
* Compara si dos segmentos tienen el mismo ID.
|
|
103
42
|
*/
|
|
@@ -111,7 +50,7 @@ export declare abstract class CorporateConfigurationCarbonFootprintSegmentRefere
|
|
|
111
50
|
*/
|
|
112
51
|
toPrimitives(): CorporateConfigurationCarbonFootprintSegmentReferencePrimitives;
|
|
113
52
|
/**
|
|
114
|
-
* Representación como string (
|
|
53
|
+
* Representación como string (ID del segmento).
|
|
115
54
|
*/
|
|
116
55
|
toString(): string;
|
|
117
56
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CorporateConfigurationCarbonFootprintSegmentReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+DAA+D,EAAE,MAAM,0EAA0E,CAAC;AAC3J,OAAO,EAAE,qDAAqD,IAAI,sDAAsD,EAAE,MAAM,gEAAgE,CAAC;AACjM,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"CorporateConfigurationCarbonFootprintSegmentReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+DAA+D,EAAE,MAAM,0EAA0E,CAAC;AAC3J,OAAO,EAAE,qDAAqD,IAAI,sDAAsD,EAAE,MAAM,gEAAgE,CAAC;AACjM,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,8BAAsB,qDAAsD,SAAQ,iBAAiB,CAAC,+DAA+D,CAAC;;IACpK,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,+BAA+B;IAI9E;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,sDAAsD,EAC7D,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAAoF;IAkBpG;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,6DAA6D,CAAC,KAAK,EAAE,sDAAsD,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAKzK;;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;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAKxD;;OAEG;IACH,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED;;OAEG;IACI,MAAM,CAAC,KAAK,EAAE,qDAAqD,GAAG,OAAO;IAQpF;;OAEG;IACH,SAAS,CAAC,+DAA+D,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO;IAI9F;;OAEG;IACI,SAAS,CAAC,KAAK,EAAE,qDAAqD,GAAG,OAAO;IAQvF;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACa,YAAY,IAAI,+DAA+D;IAM/F;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACI,MAAM,IAAI,+DAA+D;IAIhF;;OAEG;WACW,kBAAkB,CAC9B,KAAK,EAAE,sDAAsD,EAC7D,YAAY,GAAE,MAAmC,GAChD,IAAI;CAGR"}
|
|
@@ -4,7 +4,6 @@ import { ObjectValueObject } from './ObjectValueObject';
|
|
|
4
4
|
export declare abstract class CorporateConfigurationCarbonFootprintSubsegmentReference extends ObjectValueObject<CorporateConfigurationCarbonFootprintSubsegmentReferencePrimitives> {
|
|
5
5
|
#private;
|
|
6
6
|
protected static readonly DEFAULT_PROPERTY_NAME = "corporateSubsegmentReference";
|
|
7
|
-
protected static readonly MAX_NAME_LENGTH = 255;
|
|
8
7
|
/**
|
|
9
8
|
* Constructor protegido para que solo clases hijas puedan instanciar.
|
|
10
9
|
* Aplica todas las validaciones de dominio al momento de construcción.
|
|
@@ -26,72 +25,11 @@ export declare abstract class CorporateConfigurationCarbonFootprintSubsegmentRef
|
|
|
26
25
|
* Valida el ID usando las validaciones de AggregateId.
|
|
27
26
|
*/
|
|
28
27
|
protected static guardAgainstInvalidId(id: string): void;
|
|
29
|
-
/**
|
|
30
|
-
* Valida el código del subsegmento corporativo.
|
|
31
|
-
*/
|
|
32
|
-
protected static guardAgainstInvalidCode(code: string): void;
|
|
33
|
-
/**
|
|
34
|
-
* Valida el nombre del subsegmento corporativo.
|
|
35
|
-
*/
|
|
36
|
-
protected static guardAgainstInvalidName(name: string): void;
|
|
37
|
-
/**
|
|
38
|
-
* Verifica si la longitud del nombre de subsegmento es inválida.
|
|
39
|
-
*/
|
|
40
|
-
protected static nameLengthIsInvalid(name: string): boolean;
|
|
41
28
|
/**
|
|
42
29
|
* ID único del subsegmento corporativo.
|
|
43
30
|
*/
|
|
44
31
|
get id(): string;
|
|
45
|
-
/**
|
|
46
|
-
* Código del subsegmento corporativo.
|
|
47
|
-
*/
|
|
48
|
-
get code(): string;
|
|
49
|
-
/**
|
|
50
|
-
* Nombre del subsegmento corporativo.
|
|
51
|
-
*/
|
|
52
|
-
get name(): string;
|
|
53
32
|
hasId(id: string): boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Verifica si el subsegmento tiene un código específico.
|
|
56
|
-
*/
|
|
57
|
-
hasCode(code: string): boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Verifica si el nombre del subsegmento contiene una palabra específica.
|
|
60
|
-
*/
|
|
61
|
-
nameContains(keyword: string): boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Verifica si es un segmento de tecnología.
|
|
64
|
-
*/
|
|
65
|
-
isTechnologySegment(): boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Verifica si es un segmento financiero.
|
|
68
|
-
*/
|
|
69
|
-
isFinancialSegment(): boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Verifica si es un segmento de manufactura.
|
|
72
|
-
*/
|
|
73
|
-
isManufacturingSegment(): boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Verifica si es un segmento de servicios.
|
|
76
|
-
*/
|
|
77
|
-
isServicesSegment(): boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Obtiene una representación formateada para mostrar al usuario.
|
|
80
|
-
*/
|
|
81
|
-
getFormattedDisplay(): string;
|
|
82
|
-
/**
|
|
83
|
-
* Obtiene una versión abreviada del nombre si es muy largo.
|
|
84
|
-
*/
|
|
85
|
-
getAbbreviatedName(maxLength?: number): string;
|
|
86
|
-
/**
|
|
87
|
-
* Crea una nueva instancia con un código diferente.
|
|
88
|
-
* Mantiene inmutabilidad creando un nuevo objeto.
|
|
89
|
-
*/
|
|
90
|
-
abstract withCode(code: string): CorporateConfigurationCarbonFootprintSubsegmentReference;
|
|
91
|
-
/**
|
|
92
|
-
* Crea una nueva instancia con un nombre diferente.
|
|
93
|
-
*/
|
|
94
|
-
abstract withName(name: string): CorporateConfigurationCarbonFootprintSubsegmentReference;
|
|
95
33
|
/**
|
|
96
34
|
* Compara la igualdad semántica con otro objeto CorporateConfigurationCarbonFootprintSubsegmentReference.
|
|
97
35
|
*/
|
|
@@ -100,14 +38,6 @@ export declare abstract class CorporateConfigurationCarbonFootprintSubsegmentRef
|
|
|
100
38
|
* Verifica si el otro objeto no es una instancia de CorporateConfigurationCarbonFootprintSubsegmentReference.
|
|
101
39
|
*/
|
|
102
40
|
protected otherIsNotCorporateConfigurationCarbonFootprintSubsegmentReference(other: any): boolean;
|
|
103
|
-
/**
|
|
104
|
-
* Compara si dos segmentos tienen el mismo código.
|
|
105
|
-
*/
|
|
106
|
-
hasSameCode(other: CorporateConfigurationCarbonFootprintSubsegmentReference): boolean;
|
|
107
|
-
/**
|
|
108
|
-
* Compara si dos subsegmentos tienen el mismo nombre.
|
|
109
|
-
*/
|
|
110
|
-
hasSameName(other: CorporateConfigurationCarbonFootprintSubsegmentReference): boolean;
|
|
111
41
|
/**
|
|
112
42
|
* Compara si dos subsegmentos tienen el mismo ID.
|
|
113
43
|
*/
|
|
@@ -121,7 +51,7 @@ export declare abstract class CorporateConfigurationCarbonFootprintSubsegmentRef
|
|
|
121
51
|
*/
|
|
122
52
|
toPrimitives(): CorporateConfigurationCarbonFootprintSubsegmentReferencePrimitives;
|
|
123
53
|
/**
|
|
124
|
-
* Representación como string (
|
|
54
|
+
* Representación como string (id del subsegmento).
|
|
125
55
|
*/
|
|
126
56
|
toString(): string;
|
|
127
57
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CorporateConfigurationCarbonFootprintSubsegmentReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kEAAkE,EAAE,MAAM,6EAA6E,CAAC;AACjK,OAAO,EAAE,wDAAwD,IAAI,yDAAyD,EAAE,MAAM,mEAAmE,CAAC;AAC1M,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"CorporateConfigurationCarbonFootprintSubsegmentReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kEAAkE,EAAE,MAAM,6EAA6E,CAAC;AACjK,OAAO,EAAE,wDAAwD,IAAI,yDAAyD,EAAE,MAAM,mEAAmE,CAAC;AAC1M,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,8BAAsB,wDAAyD,SAAQ,iBAAiB,CAAC,kEAAkE,CAAC;;IAC1K,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,kCAAkC;IAIjF;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,yDAAyD,EAChE,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAAuF;IAkBvG;;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;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO;IAIpD;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAKxD;;OAEG;IACH,IAAW,EAAE,IAAI,MAAM,CAEtB;IAEM,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIjC;;OAEG;IACI,MAAM,CAAC,KAAK,EAAE,wDAAwD,GAAG,OAAO;IAQvF;;OAEG;IACH,SAAS,CAAC,kEAAkE,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO;IAIjG;;OAEG;IACI,SAAS,CAAC,KAAK,EAAE,wDAAwD,GAAG,OAAO;IAQ1F;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACa,YAAY,IAAI,kEAAkE;IAMlG;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACI,MAAM,IAAI,kEAAkE;IAInF;;OAEG;WACW,kBAAkB,CAC9B,KAAK,EAAE,yDAAyD,EAChE,YAAY,GAAE,MAAmC,GAChD,IAAI;CAGR"}
|
|
@@ -4,7 +4,6 @@ import { ObjectValueObject } from './ObjectValueObject';
|
|
|
4
4
|
export declare abstract class EventEditionConfigurationCarbonFootprintSubsegmentReference extends ObjectValueObject<EventEditionConfigurationCarbonFootprintSubsegmentReferencePrimitives> {
|
|
5
5
|
#private;
|
|
6
6
|
protected static readonly DEFAULT_PROPERTY_NAME = "eventEditionStageSubsegmentReference";
|
|
7
|
-
protected static readonly MAX_NAME_LENGTH = 255;
|
|
8
7
|
/**
|
|
9
8
|
* Constructor protegido para que solo clases hijas puedan instanciar.
|
|
10
9
|
* Aplica todas las validaciones de dominio al momento de construcción.
|
|
@@ -22,99 +21,24 @@ export declare abstract class EventEditionConfigurationCarbonFootprintSubsegment
|
|
|
22
21
|
* Valida el ID usando las validaciones de AggregateId.
|
|
23
22
|
*/
|
|
24
23
|
protected static guardAgainstInvalidId(id: string): void;
|
|
25
|
-
/**
|
|
26
|
-
* Valida el código de subsegmento usando las validaciones de Code.
|
|
27
|
-
*/
|
|
28
|
-
protected static guardAgainstInvalidCode(code: string): void;
|
|
29
|
-
/**
|
|
30
|
-
* Valida el nombre del subsegmento.
|
|
31
|
-
*/
|
|
32
|
-
protected static guardAgainstInvalidName(name: string): void;
|
|
33
|
-
/**
|
|
34
|
-
* Verifica si la longitud del nombre es inválida.
|
|
35
|
-
*/
|
|
36
|
-
protected static nameLengthIsInvalid(name: string): boolean;
|
|
37
24
|
/**
|
|
38
25
|
* ID único del subsegmento (UUID).
|
|
39
26
|
*/
|
|
40
27
|
get id(): string;
|
|
41
|
-
/**
|
|
42
|
-
* Código del subsegmento.
|
|
43
|
-
*/
|
|
44
|
-
get code(): string;
|
|
45
|
-
/**
|
|
46
|
-
* Nombre descriptivo del subsegmento.
|
|
47
|
-
*/
|
|
48
|
-
get name(): string;
|
|
49
|
-
/**
|
|
50
|
-
* Verifica si el subsegmento corresponde a un código específico.
|
|
51
|
-
*/
|
|
52
|
-
hasCode(code: string): boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Verifica si el subsegmento tiene un nombre específico.
|
|
55
|
-
*/
|
|
56
|
-
hasName(name: string): boolean;
|
|
57
28
|
/**
|
|
58
29
|
* Verifica si el subsegmento tiene un ID específico.
|
|
59
30
|
*/
|
|
60
31
|
hasId(id: string): boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Obtiene una representación legible del subsegmento.
|
|
63
|
-
*/
|
|
64
|
-
getDisplayName(): string;
|
|
65
|
-
/**
|
|
66
|
-
* Obtiene una representación completa con código y nombre.
|
|
67
|
-
*/
|
|
68
|
-
getFullDisplayName(): string;
|
|
69
|
-
/**
|
|
70
|
-
* Verifica si el nombre del subsegmento contiene un texto específico.
|
|
71
|
-
*/
|
|
72
|
-
nameContains(searchText: string): boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Verifica si el subsegmento coincide con un patrón de búsqueda en código o nombre.
|
|
75
|
-
*/
|
|
76
|
-
matches(searchText: string): boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Verifica si el subsegmento es de un tipo específico basado en su nombre.
|
|
79
|
-
* Útil para categorizar subsegmentos de etapa (técnico, comercial, logístico, etc.).
|
|
80
|
-
*/
|
|
81
|
-
isSubsegmentType(subsegmentType: string): boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Verifica si es un subsegmento crítico para la etapa.
|
|
84
|
-
* Basado en palabras clave que indican criticidad.
|
|
85
|
-
*/
|
|
86
|
-
isCriticalSubsegment(): boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Ejecuta una función con el código y nombre del subsegmento.
|
|
89
|
-
* Útil para operaciones funcionales.
|
|
90
|
-
*/
|
|
91
|
-
apply(callback: (id: string, code: string, name: string) => void): void;
|
|
92
|
-
/**
|
|
93
|
-
* Transforma el subsegmento aplicando una función.
|
|
94
|
-
* Útil para transformaciones funcionales.
|
|
95
|
-
*/
|
|
96
|
-
map<T>(transform: (id: string, code: string, name: string) => T): T;
|
|
97
32
|
/**
|
|
98
33
|
* Compara la igualdad semántica con otra referencia de subsegmento.
|
|
99
|
-
* Dos referencias son iguales si tienen el mismo código y nombre.
|
|
100
34
|
*/
|
|
101
35
|
equals(other: EventEditionConfigurationCarbonFootprintSubsegmentReference): boolean;
|
|
102
36
|
/**
|
|
103
|
-
* Compara si dos referencias apuntan al mismo subsegmento
|
|
104
|
-
* basándose únicamente en el código (identificador único).
|
|
37
|
+
* Compara si dos referencias apuntan al mismo subsegmento.
|
|
105
38
|
*/
|
|
106
39
|
hasSameSubsegment(other: EventEditionConfigurationCarbonFootprintSubsegmentReference): boolean;
|
|
107
|
-
/**
|
|
108
|
-
* Compara si dos subsegmentos tienen el mismo código.
|
|
109
|
-
*/
|
|
110
|
-
hasSameCode(other: EventEditionConfigurationCarbonFootprintSubsegmentReference): boolean;
|
|
111
|
-
/**
|
|
112
|
-
* Compara si dos subsegmentos tienen el mismo nombre.
|
|
113
|
-
*/
|
|
114
|
-
hasSameName(other: EventEditionConfigurationCarbonFootprintSubsegmentReference): boolean;
|
|
115
40
|
/**
|
|
116
41
|
* Genera un hash code para usar en colecciones.
|
|
117
|
-
* Basado en el código de subsegmento y nombre.
|
|
118
42
|
*/
|
|
119
43
|
hashCode(): string;
|
|
120
44
|
/**
|
|
@@ -122,7 +46,7 @@ export declare abstract class EventEditionConfigurationCarbonFootprintSubsegment
|
|
|
122
46
|
*/
|
|
123
47
|
toPrimitives(): EventEditionConfigurationCarbonFootprintSubsegmentReferencePrimitives;
|
|
124
48
|
/**
|
|
125
|
-
* Representación como string (
|
|
49
|
+
* Representación como string (id del subsegmento).
|
|
126
50
|
*/
|
|
127
51
|
toString(): string;
|
|
128
52
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qEAAqE,EAAE,MAAM,gFAAgF,CAAC;AACvK,OAAO,EAAE,2DAA2D,IAAI,4DAA4D,EAAE,MAAM,sEAAsE,CAAC;AACnN,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"EventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qEAAqE,EAAE,MAAM,gFAAgF,CAAC;AACvK,OAAO,EAAE,2DAA2D,IAAI,4DAA4D,EAAE,MAAM,sEAAsE,CAAC;AACnN,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,8BAAsB,2DAA4D,SAAQ,iBAAiB,CAAC,qEAAqE,CAAC;;IAChL,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,0CAA0C;IAIzF;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,4DAA4D,EACnE,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAA0F;IAkB1G;;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;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAKxD;;OAEG;IACH,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED;;OAEG;IACI,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIjC;;OAEG;IACI,MAAM,CAAC,KAAK,EAAE,2DAA2D,GAAG,OAAO;IAQ1F;;OAEG;IACI,iBAAiB,CAAC,KAAK,EAAE,2DAA2D,GAAG,OAAO;IAQrG;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACa,YAAY,IAAI,qEAAqE;IAMrG;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACI,MAAM,IAAI,qEAAqE;CAGvF"}
|