@carbonbox/domain 0.4.10 → 0.4.11
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/activity-data-collection/activity-data-submissions/domain/value-objects/ActivityDataSubmissionId.js +1 -1
- package/build/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldId.js +1 -1
- package/build/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleId.js +1 -1
- package/build/carbonbox/activity-data-collection/contextual-labels/domain/value-objects/ContextualLabelId.js +1 -1
- package/build/carbonbox/activity-data-collection/dynamic-forms/domain/value-objects/DynamicFormId.js +1 -1
- package/build/carbonbox/activity-data-collection/stakeholder-adaptations/domain/value-objects/StakeholderAdaptationId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/subsegments/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/domain/value-objects/CorporateCarbonFootprintConfigurationId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/event-configurations/domain/value-objects/EventCarbonFootprintConfigurationId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/domain/value-objects/EventEditionLifecycleStageConfigurationId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/event-edition-lifecycle-stages/domain/value-objects/EventEditionLifecycleStageId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/product-configurations/domain/value-objects/ProductCarbonFootprintConfigurationId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/domain/value-objects/ProductCarbonFootprintSegmentConfigurationId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/domain/value-objects/ProductConfigurationCarbonFootprintSegmentId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/subsegments/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/product-configurations/system-boundaries/domain/value-objects/ProductConfigurationSystemBoundaryId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintConfigurationId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintConfigurationIntensityIndicatorConfigurations.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintIntensityIndicatorId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintSegmentId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintSubsegmentId.js +1 -1
- package/build/carbonbox/company-resources/events/domain/value-objects/EventId.js +1 -1
- package/build/carbonbox/company-resources/events/editions/domain/value-objects/EventEditionId.js +1 -1
- package/build/carbonbox/company-resources/facilities/domain/value-objects/FacilityId.js +1 -1
- package/build/carbonbox/company-resources/products/domain/value-objects/ProductId.js +1 -1
- package/build/carbonbox/emission-calculation-formulas/calculation-variables/domain/value-objects/CalculationVariableActivityDataConditions.js +1 -1
- package/build/carbonbox/emission-calculation-formulas/calculation-variables/domain/value-objects/CalculationVariableId.js +1 -1
- package/build/carbonbox/emission-calculation-formulas/domain/value-objects/EmissionCalculationFormulaId.js +1 -1
- package/build/carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorId.js +1 -1
- package/build/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/value-objects/GlobalWarmingPotentialId.js +1 -1
- package/build/carbonbox/emission-calculation-process/calculation-jobs/domain/value-objects/CalculationJobId.js +1 -1
- package/build/carbonbox/emission-calculation-process/calculation-processes/domain/value-objects/CalculationProcessId.js +1 -1
- package/build/carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowId.js +1 -1
- package/build/carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowParallelJobs.js +1 -1
- package/build/carbonbox/emission-calculation-results/emission-aggregations/domain/value-objects/EmissionAggregationId.js +1 -1
- package/build/carbonbox/emission-calculation-results/emission-calculations/domain/value-objects/EmissionCalculationId.js +1 -1
- package/build/carbonbox/emission-calculation-results/ghg-emission-results/domain/value-objects/GHGEmissionResultId.js +1 -1
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/value-objects/PurchaseContractCarbonClientId.js +1 -1
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/value-objects/PurchaseContractContractAmendments.js +1 -1
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/value-objects/PurchaseContractId.js +1 -1
- package/build/carbonbox/purchase-management-system/purchase-orders/domain/value-objects/PurchaseOrderCarbonClientId.js +1 -1
- package/build/carbonbox/purchase-management-system/purchase-orders/domain/value-objects/PurchaseOrderId.js +1 -1
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogId.js +1 -1
- package/build/carbonbox/purchase-management-system/service-pricing/domain/value-objects/ServicePricingId.js +1 -1
- package/build/carbonbox/shared/domain/authorization/value-objects/SecurityContext.js +1 -1
- package/build/carbonbox/shared/domain/enums/SemanticUuidPrefix.js +65 -0
- package/build/carbonbox/shared/domain/exceptions/InvalidSemanticUuidError.js +19 -0
- package/build/carbonbox/shared/domain/exceptions/InvalidSemanticUuidFormatError.js +19 -0
- package/build/carbonbox/shared/domain/exceptions/InvalidUserIdFormatError.js +19 -0
- package/build/carbonbox/shared/domain/exceptions/InvalidUserPrefixError.js +19 -0
- package/build/carbonbox/shared/domain/exceptions/InvalidUuidFormatError.js +19 -0
- package/build/carbonbox/shared/domain/exceptions/UnknownBoundedContextCodeError.js +19 -0
- package/build/carbonbox/shared/domain/services/contracts/ISemanticUuidDomainService.js +2 -0
- package/build/carbonbox/shared/domain/services/implementations/SemanticUuidDomainService.js +235 -0
- package/build/carbonbox/shared/domain/value-objects/ActivityDataSubmissionReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/AggregateId.js +105 -10
- package/build/carbonbox/shared/domain/value-objects/AggregateIdList.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/CalculationProcessReference.js +3 -3
- package/build/carbonbox/shared/domain/value-objects/CalculationVariableReferences.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/CarbonClientReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/CarbonFootprintConfigurationReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/CarbonFootprintIntensityIndicatorReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/CarbonFootprintSegmentReferences.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/CollectionFieldReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationReferences.js +2 -2
- package/build/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/EmissionCalculationFormulaReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/EmissionCalculationReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/EmissionFactorReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReferences.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageConfigurationReferences.js +2 -2
- package/build/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/EventEditionReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/EventEditionReferences.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/EventReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/FacilityReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/GlobalWarmingPotentialReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/NullableCorporateConfigurationCarbonFootprintSubsegmentReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/NullableEventEditionConfigurationCarbonFootprintSubsegmentReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/NullableProductConfigurationCarbonFootprintSubsegmentReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/ProductCarbonFootprintSegmentConfigurationReferences.js +2 -2
- package/build/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSegmentReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/ProductConfigurationSystemBoundaryReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/ProductReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/ServiceCatalogReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/StakeholderReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/StakeholderReferences.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/UserId.js +129 -1
- package/build/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientId.js +1 -1
- package/build/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorId.js +1 -1
- package/build/carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostId.js +1 -1
- package/build/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerId.js +1 -1
- package/build/carbonbox/stakeholders/shared/domain/value-objects/StakeholderId.js +1 -1
- package/build/main/index.js +22 -6
- package/build/types/carbonbox/shared/domain/enums/SemanticUuidPrefix.d.ts +48 -0
- package/build/types/carbonbox/shared/domain/enums/SemanticUuidPrefix.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidError.d.ts +8 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidFormatError.d.ts +8 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidFormatError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUserIdFormatError.d.ts +8 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUserIdFormatError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUserPrefixError.d.ts +8 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUserPrefixError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUuidFormatError.d.ts +8 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUuidFormatError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/UnknownBoundedContextCodeError.d.ts +8 -0
- package/build/types/carbonbox/shared/domain/exceptions/UnknownBoundedContextCodeError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/services/contracts/ISemanticUuidDomainService.d.ts +85 -0
- package/build/types/carbonbox/shared/domain/services/contracts/ISemanticUuidDomainService.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/services/implementations/DateTimeFormattingDomainService.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/services/implementations/SemanticUuidDomainService.d.ts +67 -0
- package/build/types/carbonbox/shared/domain/services/implementations/SemanticUuidDomainService.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/value-objects/AggregateId.d.ts +57 -4
- package/build/types/carbonbox/shared/domain/value-objects/AggregateId.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/UserId.d.ts +29 -0
- package/build/types/carbonbox/shared/domain/value-objects/UserId.d.ts.map +1 -1
- package/build/types/main/index.d.ts +9 -0
- package/build/types/main/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -105,7 +105,7 @@ class EventEditionConfigurationCarbonFootprintSubsegmentReferences extends Value
|
|
|
105
105
|
*/
|
|
106
106
|
static guardAgainstInvalidSubsegmentId(id, propertyName) {
|
|
107
107
|
String_1.String.guardAgainstEmptyValue(id, propertyName);
|
|
108
|
-
AggregateId_1.AggregateId.
|
|
108
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(id, propertyName);
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
111
111
|
* Valida el código de subsegmento usando las validaciones de Code.
|
|
@@ -110,7 +110,7 @@ class EventEditionLifecycleStageConfigurationReferences extends ValueObject_1.Va
|
|
|
110
110
|
*/
|
|
111
111
|
static guardAgainstInvalidConfigurationId(id, propertyName) {
|
|
112
112
|
String_1.String.guardAgainstEmptyValue(id, propertyName);
|
|
113
|
-
AggregateId_1.AggregateId.
|
|
113
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(id, propertyName);
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
116
|
* Valida la referencia de etapa de edición de evento.
|
|
@@ -162,7 +162,7 @@ class EventEditionLifecycleStageConfigurationReferences extends ValueObject_1.Va
|
|
|
162
162
|
throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create(`${propertyName}.name`, 'string', typeof reference.name);
|
|
163
163
|
}
|
|
164
164
|
String_1.String.guardAgainstEmptyValue(reference.id, `${propertyName}.id`);
|
|
165
|
-
AggregateId_1.AggregateId.
|
|
165
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(reference.id, `${propertyName}.id`);
|
|
166
166
|
String_1.String.guardAgainstEmptyValue(reference.code, `${propertyName}.code`);
|
|
167
167
|
Code_1.Code.guardAgainstInvalidCode(reference.code);
|
|
168
168
|
String_1.String.guardAgainstEmptyValue(reference.name, `${propertyName}.name`);
|
|
@@ -67,7 +67,7 @@ class EventEditionLifecycleStageReference extends ObjectValueObject_1.ObjectValu
|
|
|
67
67
|
*/
|
|
68
68
|
static guardAgainstInvalidId(id) {
|
|
69
69
|
String_1.String.guardAgainstEmptyValue(id, 'id');
|
|
70
|
-
AggregateId_1.AggregateId.
|
|
70
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(id, 'id');
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
* Valida el código de edición del evento usando las validaciones de Code.
|
|
@@ -66,7 +66,7 @@ class EventEditionReference extends ObjectValueObject_1.ObjectValueObject {
|
|
|
66
66
|
*/
|
|
67
67
|
static guardAgainstInvalidId(id) {
|
|
68
68
|
String_1.String.guardAgainstEmptyValue(id, 'id');
|
|
69
|
-
AggregateId_1.AggregateId.
|
|
69
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(id, 'id');
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
72
|
* Valida el código de edición del evento usando las validaciones de Code.
|
|
@@ -96,7 +96,7 @@ class EventEditionReferences extends ValueObject_1.ValueObject {
|
|
|
96
96
|
}
|
|
97
97
|
// Validar usando las reglas de dominio
|
|
98
98
|
String_1.String.guardAgainstEmptyValue(reference.id, `${propertyName}.id`);
|
|
99
|
-
AggregateId_1.AggregateId.
|
|
99
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(reference.id, `${propertyName}.id`);
|
|
100
100
|
String_1.String.guardAgainstEmptyValue(reference.code, `${propertyName}.code`);
|
|
101
101
|
Code_1.Code.guardAgainstInvalidCode(reference.code);
|
|
102
102
|
String_1.String.guardAgainstEmptyValue(reference.name, `${propertyName}.name`);
|
|
@@ -66,7 +66,7 @@ class EventReference extends ObjectValueObject_1.ObjectValueObject {
|
|
|
66
66
|
*/
|
|
67
67
|
static guardAgainstInvalidId(id) {
|
|
68
68
|
String_1.String.guardAgainstEmptyValue(id, 'id');
|
|
69
|
-
AggregateId_1.AggregateId.
|
|
69
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(id, 'id');
|
|
70
70
|
}
|
|
71
71
|
static guardAgainstInvalidCode(code) {
|
|
72
72
|
String_1.String.guardAgainstEmptyValue(code, 'code');
|
|
@@ -56,7 +56,7 @@ class FacilityReference extends ObjectValueObject_1.ObjectValueObject {
|
|
|
56
56
|
}
|
|
57
57
|
static guardAgainstInvalidId(id) {
|
|
58
58
|
String_1.String.guardAgainstEmptyValue(id, 'id');
|
|
59
|
-
AggregateId_1.AggregateId.
|
|
59
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(id, 'id');
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* Valida el nombre comercial de la sucursal.
|
|
@@ -70,7 +70,7 @@ class GlobalWarmingPotentialReference extends ObjectValueObject_1.ObjectValueObj
|
|
|
70
70
|
}
|
|
71
71
|
static guardAgainstInvalidId(id) {
|
|
72
72
|
String_1.String.guardAgainstEmptyValue(id, 'id');
|
|
73
|
-
AggregateId_1.AggregateId.
|
|
73
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(id, 'id');
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* Valida el nombre de referencia.
|
|
@@ -78,7 +78,7 @@ class NullableCorporateConfigurationCarbonFootprintSubsegmentReference extends V
|
|
|
78
78
|
*/
|
|
79
79
|
static guardAgainstInvalidId(id) {
|
|
80
80
|
String_1.String.guardAgainstEmptyValue(id, 'id');
|
|
81
|
-
AggregateId_1.AggregateId.
|
|
81
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(id, 'id');
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
84
|
* Valida el código de subsegmento corporativo usando las validaciones de Code.
|
|
@@ -78,7 +78,7 @@ class NullableEventEditionConfigurationCarbonFootprintSubsegmentReference extend
|
|
|
78
78
|
*/
|
|
79
79
|
static guardAgainstInvalidId(id) {
|
|
80
80
|
String_1.String.guardAgainstEmptyValue(id, 'id');
|
|
81
|
-
AggregateId_1.AggregateId.
|
|
81
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(id, 'id');
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
84
|
* Valida el código de subsegmento de etapa usando las validaciones de Code.
|
|
@@ -78,7 +78,7 @@ class NullableProductConfigurationCarbonFootprintSubsegmentReference extends Val
|
|
|
78
78
|
*/
|
|
79
79
|
static guardAgainstInvalidId(id) {
|
|
80
80
|
String_1.String.guardAgainstEmptyValue(id, 'id');
|
|
81
|
-
AggregateId_1.AggregateId.
|
|
81
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(id, 'id');
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
84
|
* Valida el código de subsegmento de producto usando las validaciones de Code.
|
|
@@ -111,7 +111,7 @@ class ProductCarbonFootprintSegmentConfigurationReferences extends ValueObject_1
|
|
|
111
111
|
*/
|
|
112
112
|
static guardAgainstInvalidId(id, propertyName) {
|
|
113
113
|
String_1.String.guardAgainstEmptyValue(id, propertyName);
|
|
114
|
-
AggregateId_1.AggregateId.
|
|
114
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(id, propertyName);
|
|
115
115
|
}
|
|
116
116
|
/**
|
|
117
117
|
* Valida la referencia de segmento.
|
|
@@ -144,7 +144,7 @@ class ProductCarbonFootprintSegmentConfigurationReferences extends ValueObject_1
|
|
|
144
144
|
throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create(`${propertyName}.name`, 'string', typeof reference.name);
|
|
145
145
|
}
|
|
146
146
|
String_1.String.guardAgainstEmptyValue(reference.id, `${propertyName}.id`);
|
|
147
|
-
AggregateId_1.AggregateId.
|
|
147
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(reference.id, `${propertyName}.id`);
|
|
148
148
|
String_1.String.guardAgainstEmptyValue(reference.code, `${propertyName}.code`);
|
|
149
149
|
Code_1.Code.guardAgainstInvalidCode(reference.code);
|
|
150
150
|
String_1.String.guardAgainstEmptyValue(reference.name, `${propertyName}.name`);
|
|
@@ -70,7 +70,7 @@ class ProductConfigurationCarbonFootprintSegmentReference extends ObjectValueObj
|
|
|
70
70
|
}
|
|
71
71
|
static guardAgainstInvalidId(id) {
|
|
72
72
|
String_1.String.guardAgainstEmptyValue(id, 'id');
|
|
73
|
-
AggregateId_1.AggregateId.
|
|
73
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(id, 'id');
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* Valida el código del segmento de producto.
|
|
@@ -70,7 +70,7 @@ class ProductConfigurationCarbonFootprintSubsegmentReference extends ObjectValue
|
|
|
70
70
|
}
|
|
71
71
|
static guardAgainstInvalidId(id) {
|
|
72
72
|
String_1.String.guardAgainstEmptyValue(id, 'id');
|
|
73
|
-
AggregateId_1.AggregateId.
|
|
73
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(id, 'id');
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* Valida el código del segmento de producto.
|
package/build/carbonbox/shared/domain/value-objects/ProductConfigurationSystemBoundaryReference.js
CHANGED
|
@@ -71,7 +71,7 @@ class ProductConfigurationSystemBoundaryReference extends ObjectValueObject_1.Ob
|
|
|
71
71
|
}
|
|
72
72
|
static guardAgainstInvalidId(id) {
|
|
73
73
|
String_1.String.guardAgainstEmptyValue(id, 'id');
|
|
74
|
-
AggregateId_1.AggregateId.
|
|
74
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(id, 'id');
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
77
|
* Valida el código de límite del sistema usando las validaciones de Code.
|
|
@@ -63,7 +63,7 @@ class ProductReference extends ObjectValueObject_1.ObjectValueObject {
|
|
|
63
63
|
}
|
|
64
64
|
static guardAgainstInvalidId(id) {
|
|
65
65
|
String_1.String.guardAgainstEmptyValue(id, 'id');
|
|
66
|
-
AggregateId_1.AggregateId.
|
|
66
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(id, 'id');
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
69
|
* Valida el código de producto usando las validaciones de Code.
|
|
@@ -70,7 +70,7 @@ class ServiceCatalogReference extends ObjectValueObject_1.ObjectValueObject {
|
|
|
70
70
|
}
|
|
71
71
|
static guardAgainstInvalidId(id) {
|
|
72
72
|
String_1.String.guardAgainstEmptyValue(id, 'id');
|
|
73
|
-
AggregateId_1.AggregateId.
|
|
73
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(id, 'id');
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* Valida el código de servicio usando las validaciones de Code.
|
|
@@ -72,7 +72,7 @@ class StakeholderReference extends ObjectValueObject_1.ObjectValueObject {
|
|
|
72
72
|
}
|
|
73
73
|
static guardAgainstInvalidId(id) {
|
|
74
74
|
String_1.String.guardAgainstEmptyValue(id, 'id');
|
|
75
|
-
AggregateId_1.AggregateId.
|
|
75
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(id, 'id');
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
78
|
* Valida si el valor principal es inválido.
|
|
@@ -121,7 +121,7 @@ class StakeholderReferences extends ValueObject_1.ValueObject {
|
|
|
121
121
|
*/
|
|
122
122
|
static guardAgainstInvalidId(id, propertyName) {
|
|
123
123
|
String_1.String.guardAgainstEmptyValue(id, propertyName);
|
|
124
|
-
AggregateId_1.AggregateId.
|
|
124
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(id, propertyName);
|
|
125
125
|
}
|
|
126
126
|
/**
|
|
127
127
|
* Valida el nombre para mostrar.
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UserId = void 0;
|
|
4
4
|
const AggregateId_1 = require("./AggregateId");
|
|
5
|
+
const SemanticUuidPrefix_1 = require("../enums/SemanticUuidPrefix");
|
|
6
|
+
const StakeholderRole_1 = require("../enums/StakeholderRole");
|
|
7
|
+
const InvalidUserPrefixError_1 = require("../exceptions/InvalidUserPrefixError");
|
|
8
|
+
const InvalidUserIdFormatError_1 = require("../exceptions/InvalidUserIdFormatError");
|
|
5
9
|
class UserId extends AggregateId_1.AggregateId {
|
|
6
10
|
/**
|
|
7
11
|
* Constructor protegido para que solo clases hijas puedan instanciar.
|
|
@@ -13,16 +17,140 @@ class UserId extends AggregateId_1.AggregateId {
|
|
|
13
17
|
static create(value) {
|
|
14
18
|
AggregateId_1.AggregateId.guardAgainstEmptyValue(value, UserId.PROPERTY_NAME);
|
|
15
19
|
AggregateId_1.AggregateId.guardAgainstInvalidType(value, UserId.PROPERTY_NAME);
|
|
16
|
-
AggregateId_1.AggregateId.
|
|
20
|
+
AggregateId_1.AggregateId.guardAgainstInvalidSemanticId(value, UserId.PROPERTY_NAME);
|
|
21
|
+
// Validate that the prefix is a valid user prefix
|
|
22
|
+
UserId.guardAgainstInvalidUserPrefix(value);
|
|
17
23
|
return new UserId(value, false);
|
|
18
24
|
}
|
|
19
25
|
static fromPrimitives(primitive) {
|
|
20
26
|
const value = primitive;
|
|
21
27
|
return new UserId(value, true);
|
|
22
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Validates that the UUID has a valid user prefix
|
|
31
|
+
*/
|
|
32
|
+
static guardAgainstInvalidUserPrefix(value) {
|
|
33
|
+
try {
|
|
34
|
+
const tempInstance = new UserId(value, true); // Skip validation for extraction
|
|
35
|
+
const prefix = tempInstance.extractPrefix();
|
|
36
|
+
if (UserId.VALID_USER_PREFIXES.includes(prefix) === false) {
|
|
37
|
+
throw InvalidUserPrefixError_1.InvalidUserPrefixError.create(value, prefix, UserId.VALID_USER_PREFIXES);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
if (error instanceof InvalidUserPrefixError_1.InvalidUserPrefixError) {
|
|
42
|
+
throw error;
|
|
43
|
+
}
|
|
44
|
+
if (error instanceof Error) {
|
|
45
|
+
throw InvalidUserIdFormatError_1.InvalidUserIdFormatError.create(value, error.message);
|
|
46
|
+
}
|
|
47
|
+
throw error;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Checks if the current UserId has a valid user prefix
|
|
52
|
+
*/
|
|
53
|
+
hasValidUserPrefix() {
|
|
54
|
+
try {
|
|
55
|
+
const prefix = this.extractPrefix();
|
|
56
|
+
return UserId.VALID_USER_PREFIXES.includes(prefix);
|
|
57
|
+
}
|
|
58
|
+
catch {
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Checks if this is a general user (not a stakeholder)
|
|
64
|
+
*/
|
|
65
|
+
isGeneralUser() {
|
|
66
|
+
try {
|
|
67
|
+
return this.extractPrefix() === SemanticUuidPrefix_1.SemanticUuidPrefix.USR;
|
|
68
|
+
}
|
|
69
|
+
catch {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Checks if this is a stakeholder user
|
|
75
|
+
*/
|
|
76
|
+
isStakeholder() {
|
|
77
|
+
try {
|
|
78
|
+
const prefix = this.extractPrefix();
|
|
79
|
+
return [
|
|
80
|
+
SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_CLIENT,
|
|
81
|
+
SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_COORDINATOR,
|
|
82
|
+
SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_HOST,
|
|
83
|
+
SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_MANAGER,
|
|
84
|
+
].includes(prefix);
|
|
85
|
+
}
|
|
86
|
+
catch {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Stakeholder identification methods - checks if user is a specific stakeholder type
|
|
92
|
+
*/
|
|
93
|
+
isStakeholderCarbonClient() {
|
|
94
|
+
try {
|
|
95
|
+
return this.extractPrefix() === SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_CLIENT;
|
|
96
|
+
}
|
|
97
|
+
catch {
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
isStakeholderCarbonCoordinator() {
|
|
102
|
+
try {
|
|
103
|
+
return this.extractPrefix() === SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_COORDINATOR;
|
|
104
|
+
}
|
|
105
|
+
catch {
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
isStakeholderCarbonManager() {
|
|
110
|
+
try {
|
|
111
|
+
return this.extractPrefix() === SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_MANAGER;
|
|
112
|
+
}
|
|
113
|
+
catch {
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
isStakeholderCarbonHost() {
|
|
118
|
+
try {
|
|
119
|
+
return this.extractPrefix() === SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_HOST;
|
|
120
|
+
}
|
|
121
|
+
catch {
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Gets the stakeholder role type from the semantic UUID prefix
|
|
127
|
+
*/
|
|
128
|
+
getStakeholderRole() {
|
|
129
|
+
try {
|
|
130
|
+
const prefix = this.extractPrefix();
|
|
131
|
+
const roleMap = {
|
|
132
|
+
[SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_CLIENT]: StakeholderRole_1.StakeholderRole.CARBON_CLIENT,
|
|
133
|
+
[SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_COORDINATOR]: StakeholderRole_1.StakeholderRole.CARBON_COORDINATOR,
|
|
134
|
+
[SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_MANAGER]: StakeholderRole_1.StakeholderRole.CARBON_MANAGER,
|
|
135
|
+
[SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_HOST]: StakeholderRole_1.StakeholderRole.CARBON_HOST,
|
|
136
|
+
};
|
|
137
|
+
return roleMap[prefix] || 'UNKNOWN';
|
|
138
|
+
}
|
|
139
|
+
catch {
|
|
140
|
+
return 'UNKNOWN';
|
|
141
|
+
}
|
|
142
|
+
}
|
|
23
143
|
toPrimitives() {
|
|
24
144
|
return this.value;
|
|
25
145
|
}
|
|
26
146
|
}
|
|
27
147
|
exports.UserId = UserId;
|
|
28
148
|
UserId.PROPERTY_NAME = 'id';
|
|
149
|
+
// Valid prefixes for User IDs (general users and stakeholders)
|
|
150
|
+
UserId.VALID_USER_PREFIXES = [
|
|
151
|
+
SemanticUuidPrefix_1.SemanticUuidPrefix.USR, // General user (BC-level)
|
|
152
|
+
SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_CLIENT,
|
|
153
|
+
SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_COORDINATOR,
|
|
154
|
+
SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_HOST,
|
|
155
|
+
SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_MANAGER,
|
|
156
|
+
];
|
|
@@ -9,7 +9,7 @@ class CarbonClientId extends StakeholderId_1.StakeholderId {
|
|
|
9
9
|
static create(value) {
|
|
10
10
|
StakeholderId_1.StakeholderId.guardAgainstEmptyValue(value, CarbonClientId.PROPERTY_NAME);
|
|
11
11
|
StakeholderId_1.StakeholderId.guardAgainstInvalidType(value, CarbonClientId.PROPERTY_NAME);
|
|
12
|
-
StakeholderId_1.StakeholderId.
|
|
12
|
+
StakeholderId_1.StakeholderId.guardAgainstInvalidSemanticId(value);
|
|
13
13
|
return new CarbonClientId(value, false);
|
|
14
14
|
}
|
|
15
15
|
static fromPrimitives(primitive) {
|
package/build/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorId.js
CHANGED
|
@@ -9,7 +9,7 @@ class CarbonCoordinatorId extends StakeholderId_1.StakeholderId {
|
|
|
9
9
|
static create(value) {
|
|
10
10
|
StakeholderId_1.StakeholderId.guardAgainstEmptyValue(value, CarbonCoordinatorId.PROPERTY_NAME);
|
|
11
11
|
StakeholderId_1.StakeholderId.guardAgainstInvalidType(value, CarbonCoordinatorId.PROPERTY_NAME);
|
|
12
|
-
StakeholderId_1.StakeholderId.
|
|
12
|
+
StakeholderId_1.StakeholderId.guardAgainstInvalidSemanticId(value);
|
|
13
13
|
return new CarbonCoordinatorId(value, false);
|
|
14
14
|
}
|
|
15
15
|
static fromPrimitives(primitive) {
|
|
@@ -9,7 +9,7 @@ class CarbonHostId extends StakeholderId_1.StakeholderId {
|
|
|
9
9
|
static create(value) {
|
|
10
10
|
StakeholderId_1.StakeholderId.guardAgainstEmptyValue(value, CarbonHostId.PROPERTY_NAME);
|
|
11
11
|
StakeholderId_1.StakeholderId.guardAgainstInvalidType(value, CarbonHostId.PROPERTY_NAME);
|
|
12
|
-
StakeholderId_1.StakeholderId.
|
|
12
|
+
StakeholderId_1.StakeholderId.guardAgainstInvalidSemanticId(value);
|
|
13
13
|
return new CarbonHostId(value, false);
|
|
14
14
|
}
|
|
15
15
|
static fromPrimitives(primitive) {
|
package/build/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerId.js
CHANGED
|
@@ -9,7 +9,7 @@ class CarbonManagerId extends StakeholderId_1.StakeholderId {
|
|
|
9
9
|
static create(value) {
|
|
10
10
|
StakeholderId_1.StakeholderId.guardAgainstEmptyValue(value, CarbonManagerId.PROPERTY_NAME);
|
|
11
11
|
StakeholderId_1.StakeholderId.guardAgainstInvalidType(value, CarbonManagerId.PROPERTY_NAME);
|
|
12
|
-
StakeholderId_1.StakeholderId.
|
|
12
|
+
StakeholderId_1.StakeholderId.guardAgainstInvalidSemanticId(value);
|
|
13
13
|
return new CarbonManagerId(value, false);
|
|
14
14
|
}
|
|
15
15
|
static fromPrimitives(primitive) {
|
|
@@ -9,7 +9,7 @@ class StakeholderId extends UserId_1.UserId {
|
|
|
9
9
|
static create(value) {
|
|
10
10
|
UserId_1.UserId.guardAgainstEmptyValue(value, StakeholderId.PROPERTY_NAME);
|
|
11
11
|
UserId_1.UserId.guardAgainstInvalidType(value, StakeholderId.PROPERTY_NAME);
|
|
12
|
-
UserId_1.UserId.
|
|
12
|
+
UserId_1.UserId.guardAgainstInvalidSemanticId(value, StakeholderId.PROPERTY_NAME);
|
|
13
13
|
return new StakeholderId(value, false);
|
|
14
14
|
}
|
|
15
15
|
static fromPrimitives(primitive) {
|
package/build/main/index.js
CHANGED
|
@@ -9,12 +9,12 @@ exports.EmissionFactorGreenhouseGasValues = exports.EmissionFactorDescription =
|
|
|
9
9
|
exports.EmissionCalculationStatus = exports.EmissionCalculationId = exports.GHGEmissionResult = exports.EmissionAggregation = exports.EmissionCalculation = exports.WorkflowTriggerEnum = exports.WorkflowStatusEnum = exports.ProcessStatusEnum = exports.ProcessPriorityEnum = exports.JobTypeEnum = exports.JobStatusEnum = exports.CalculationWorkflowCarbonClient = exports.CalculationWorkflowFootprintType = exports.CalculationWorkflowIsAutomatic = exports.CalculationWorkflowTriggerType = exports.CalculationWorkflowStatus = exports.CalculationWorkflowDescription = exports.CalculationWorkflowName = exports.CalculationWorkflowCode = exports.CalculationWorkflowId = exports.CalculationProcessCarbonClient = exports.CalculationProcessFootprintConfiguration = exports.CalculationProcessCompletedAt = exports.CalculationProcessStartedAt = exports.CalculationProcessProgressPercentage = exports.CalculationProcessPriority = exports.CalculationProcessStatus = exports.CalculationProcessId = exports.CalculationJobSequenceOrder = exports.CalculationJobParentProcess = exports.CalculationJobCompletedAt = exports.CalculationJobStartedAt = exports.CalculationJobProgressPercentage = exports.CalculationJobStatus = exports.CalculationJobType = exports.CalculationJobId = exports.CalculationWorkflow = exports.CalculationProcess = exports.CalculationJob = exports.UnauthorizedFormulaCreationRoleError = exports.InvalidGreenhouseGasTypeError = exports.DuplicateGreenhouseGasError = exports.ResultUnitEnum = exports.FormulaStatusEnum = exports.GlobalWarmingPotentialGreenhouseGasPotentials = exports.GlobalWarmingPotentialValidityPeriod = exports.GlobalWarmingPotentialTimeHorizonYears = exports.GlobalWarmingPotentialProtocolVersion = exports.GlobalWarmingPotentialReferenceName = exports.GlobalWarmingPotentialId = void 0;
|
|
10
10
|
exports.ServiceCatalogName = exports.ServiceCatalogCode = exports.ServiceCatalogId = exports.PurchaseOrderApprovedByStakeholder = exports.PurchaseOrderCreatedByStakeholder = exports.PurchaseOrderTotalAmount = exports.PurchaseOrderSubtotalAmount = exports.PurchaseOrderPaymentStatus = exports.PurchaseOrderPaymentMethod = exports.PurchaseOrderDate = exports.PurchaseOrderCarbonClientId = exports.PurchaseOrderStatus = exports.PurchaseOrderCode = exports.PurchaseOrderId = exports.PurchaseContractCreatedByStakeholder = exports.PurchaseContractTotalContractValue = exports.PurchaseContractEndDate = exports.PurchaseContractStartDate = exports.PurchaseContractCarbonClientId = exports.PurchaseContractType = exports.PurchaseContractStatus = exports.PurchaseContractTitle = exports.PurchaseContractCode = exports.PurchaseContractId = exports.ServicePricing = exports.ServiceCatalog = exports.PurchaseOrder = exports.PurchaseContract = exports.UnknownGreenhouseGasCategoryError = exports.CalculationStatusEnum = exports.GHGEmissionResultUnit = exports.GHGEmissionResultCo2Equivalent = exports.GHGEmissionResultRawEmission = exports.GHGEmissionResultGlobalWarmingPotential = exports.GHGEmissionResultEmissionFactor = exports.GHGEmissionResultActivityValue = exports.GHGEmissionResultGreenhouseGas = exports.GHGEmissionResultEmissionCalculation = exports.GHGEmissionResultId = exports.EmissionAggregationGhgBreakdown = exports.EmissionAggregationUncertaintyPercentage = exports.EmissionAggregationTotalCO2Equivalent = exports.EmissionAggregationEmissionSource = exports.EmissionAggregationEmissionCalculation = exports.EmissionAggregationId = exports.EmissionCalculationCalculatedByStakeholder = exports.EmissionCalculationCalculatedAt = exports.EmissionCalculationCarbonClient = exports.EmissionCalculationEmissionCalculationFormula = exports.EmissionCalculationActivityDataSubmission = void 0;
|
|
11
11
|
exports.InvalidReportTypeError = exports.InvalidExpertDedicationLevelError = exports.InvalidTotalAmountFactorError = exports.InvalidTaxAmountFactorError = exports.InvalidSubtotalAmountFactorError = exports.InvalidSubtotalAmountError = exports.InvalidPurchaseOrderStatusError = exports.InvalidPercentageRangeError = exports.InvalidPaymentStatusError = exports.InvalidPaymentMethodError = exports.InvalidMaximumSubtotalError = exports.InvalidFixedDiscountAmountError = exports.InvalidDiscountAmountFactorError = exports.InvalidTaxRateError = exports.InvalidPaymentTermsError = exports.InvalidPaymentScheduleError = exports.InvalidContractValueFactorError = exports.InvalidContractTypeError = exports.InvalidContractStatusError = exports.PricingStatusEnum = exports.PricingModelEnum = exports.UserRoleEnum = exports.ReportTypeEnum = exports.ExpertDedicationLevelEnum = exports.ServiceCatalogStatusEnum = exports.ServiceCatalogTypeEnum = exports.ServiceCatalogCategoryEnum = exports.PaymentStatusEnum = exports.PaymentMethodEnum = exports.OrderStatusEnum = exports.PaymentTermsEnum = exports.PaymentScheduleEnum = exports.ContractDurationUnitEnum = exports.ContractTypeEnum = exports.ContractStatusEnum = exports.ServicePricingCreatedByStakeholder = exports.ServicePricingBaseServiceReferenceCode = exports.ServicePricingCurrency = exports.ServicePricingPricePerUnit = exports.ServicePricingBasePrice = exports.ServicePricingPricingStatus = exports.ServicePricingPricingModel = exports.ServicePricingService = exports.ServicePricingId = exports.ServiceCatalogCreatedByStakeholder = exports.ServiceCatalogDependsOnServiceCode = exports.ServiceCatalogStatus = exports.ServiceCatalogType = exports.ServiceCatalogCategory = exports.ServiceCatalogDescription = void 0;
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.StakeholderPermissions = exports.UserPermissions = exports.SecurityContextReconstructionError = exports.SecurityContext = void 0;
|
|
12
|
+
exports.AggregateId = exports.Code = exports.Url = exports.Image = exports.Address = exports.Phone = exports.Email = exports.DateTimeString = exports.DateString = exports.Boolean = exports.Numeric = exports.PositiveInteger = exports.Integer = exports.String = exports.SemanticUuidPrefixEnum = exports.TaxIdentificationEnum = exports.SystemBoundaryEnum = exports.StakeholderRoleEnum = exports.ReportingStandardEnum = exports.ISOCategoryEnum = exports.GreenhouseGasEnum = exports.GenderEnum = exports.GHGSubScopeEnum = exports.GHGScopeEnum = exports.EmissionSourceEnum = exports.EmissionCategoryEnum = exports.DayOfWeekEnum = exports.CurrencyEnum = exports.CountryCodeEnum = exports.BusinessScaleEnum = exports.UserBusinessStatusEnum = exports.UserTypeEnum = exports.RootError = exports.ObjectValueObject = exports.PrimitiveValueObject = exports.ValueObject = exports.User = exports.DomainError = exports.AggregateRoot = exports.InvalidUnitsError = exports.InvalidTaxPercentageError = exports.InvalidPricingStatusError = exports.InvalidPricingModelError = exports.InvalidPricePerUnitError = exports.InvalidMarkupPercentageError = exports.InvalidDiscountPercentageError = exports.InvalidUserRoleError = exports.InvalidServiceCatalogTypeError = exports.InvalidServiceCatalogStatusError = exports.InvalidServiceCatalogCategoryError = void 0;
|
|
13
|
+
exports.CorporateConfigurationCarbonFootprintSegmentReference = exports.CorporateCarbonFootprintSegmentConfigurationReferences = exports.CollectionFieldReference = exports.CarbonFootprintSegmentReferences = exports.CarbonFootprintIntensityIndicatorReference = exports.CarbonFootprintConfigurationReference = exports.GlobalWarmingPotentialReference = exports.EmissionFactorReference = exports.EmissionCalculationFormulaReference = exports.EmissionCalculationReference = exports.CalculationVariableReferences = exports.CalculationProcessReference = exports.ActivityDataSubmissionReference = exports.EmissionSource = exports.EmissionSources = exports.CarbonClientReferences = exports.CarbonClientReference = exports.StakeholderReferences = exports.StakeholderReference = exports.UserType = exports.UserLastAccessAt = exports.UserAvatar = exports.UserBusinessStatus = exports.UserPassword = exports.UserDisplayName = exports.UserId = exports.UserEmail = exports.NullableProductConfigurationCarbonFootprintSubsegmentReference = exports.NullableEventEditionConfigurationCarbonFootprintSubsegmentReference = exports.NullableCorporateConfigurationCarbonFootprintSubsegmentReference = exports.NullableStakeholderReference = exports.NullableColombianNIT = exports.NullableTaxIdentificationNumber = exports.NullablePositiveInteger = exports.NullableNumeric = exports.NullableDateTimeString = exports.NullableDate = exports.NullableCode = exports.NullableString = exports.TaxIdentificationNumberList = exports.UrlList = exports.StringList = exports.CodeList = exports.AggregateIdList = exports.TaxIdentification = exports.Gender = exports.Currency = exports.ColombiaNIT = exports.TaxIdentificationNumber = exports.ExecutionPeriod = void 0;
|
|
14
|
+
exports.MinimumValueViolationError = exports.InvalidUrlListError = exports.InvalidCodeListError = exports.InvalidStringListError = exports.EmptyArrayNotAllowedError = exports.PasswordPolicyViolationError = exports.InvalidNationalNumberError = exports.InvalidFullInternationalNumberError = exports.InvalidEmailPolicyError = exports.InvalidCoordinatesError = exports.InvalidTimeFormatError = exports.InvalidDateRangeError = exports.InvalidDateFormatError = exports.InvalidColombianNITNumberError = exports.InvalidColombianNITCheckDigitError = exports.InvalidColombianNITFormatError = exports.InvalidTaxIdentificationTypeError = exports.InvalidStakeholderRoleTypeError = exports.InvalidGenderError = exports.InvalidCurrencyError = exports.InvalidCountryCodeError = exports.InvalidBusinessScaleError = exports.UnknownBoundedContextCodeError = exports.InvalidUuidFormatError = exports.InvalidUserPrefixError = exports.InvalidUserIdFormatError = exports.InvalidSemanticUuidFormatError = exports.InvalidSemanticUuidError = exports.InvalidPropertyValueError = exports.InvalidPropertyTypeError = exports.InvalidValueObjectConfigurationError = exports.UndefinedValueError = exports.NullValueError = exports.MethodNotImplementedError = exports.CreateMethodNotImplementedError = exports.ServiceCatalogReference = exports.ProductReference = exports.ProductConfigurationSystemBoundaryReference = exports.ProductConfigurationCarbonFootprintSubsegmentReference = exports.ProductConfigurationCarbonFootprintSegmentReference = exports.ProductCarbonFootprintSegmentConfigurationReferences = exports.FacilityReference = exports.EventReference = exports.EventEditionReferences = exports.EventEditionReference = exports.EventEditionLifecycleStageReference = exports.EventEditionLifecycleStageConfigurationReferences = exports.EventEditionConfigurationCarbonFootprintSubsegmentReferences = exports.EventEditionConfigurationCarbonFootprintSubsegmentReference = exports.CorporateConfigurationCarbonFootprintSubsegmentReference = void 0;
|
|
15
|
+
exports.CarbonClientDisplayName = exports.CarbonClientEmail = exports.CarbonClientId = exports.StakeholderUserType = exports.StakeholderLastAccessAt = exports.StakeholderAvatar = exports.StakeholderTaxIdentification = exports.StakeholderRoleType = exports.StakeholderBusinessStatus = exports.StakeholderPassword = exports.StakeholderDisplayName = exports.StakeholderEmail = exports.StakeholderId = exports.CarbonManager = exports.CarbonHost = exports.CarbonCoordinator = exports.CarbonClient = exports.Stakeholder = exports.CannotAccessRightOnLeftValueError = exports.CannotAccessLeftOnRightValueError = exports.ResultExtensions = exports.EitherUtils = exports.ResultFactory = exports.EitherFactory = exports.RightEither = exports.LeftEither = exports.Either = exports.TaxIdentificationNumberWithControlCharactersError = exports.InvalidTaxIdentificationNumberLengthError = exports.InvalidTaxIdentificationNumberFormatError = exports.InvalidSupervisorRoleError = exports.InvalidMinutesDurationError = exports.InvalidMeasurementUnitOperationError = exports.InvalidManagedStakeholderRoleError = exports.InvalidDomainCodeError = exports.InvalidCountrySpecificTaxIdentificationNumberError = exports.InvalidCodeError = exports.InvalidAssignerRoleError = exports.InvalidAggregateIdError = exports.EmptyTaxIdentificationNumberError = exports.EmptySegmentNameError = exports.EmptySegmentCodeError = exports.EmptyDisplayNameError = exports.DateGreaterThanError = exports.InvalidUserBusinessStatusError = exports.InvalidUserTypeError = exports.DivisionByZeroError = exports.MoneyOverflowError = exports.NotIntegerError = exports.NegativeAmountError = void 0;
|
|
16
|
+
exports.CarbonClientAccountEnum = exports.CarbonManagerLastAccessAt = exports.CarbonManagerTaxIdentification = exports.CarbonManagerBusinessStatus = exports.CarbonManagerRoleType = exports.CarbonManagerUserType = exports.CarbonManagerManagedStakeholders = exports.CarbonManagerDisplayName = exports.CarbonManagerEmail = exports.CarbonManagerId = exports.CarbonHostPermissions = exports.CarbonHostAvatar = exports.CarbonHostLastAccessAt = exports.CarbonHostUserType = exports.CarbonHostBusinessStatus = exports.CarbonHostDisplayName = exports.CarbonHostTaxIdentification = exports.CarbonHostRoleType = exports.CarbonHostPassword = exports.CarbonHostEmail = exports.CarbonHostId = exports.CarbonCoordinatorReportsToStakeholder = exports.CarbonCoordinatorAssignedByStakeholder = exports.CarbonCoordinatorLastAccessAt = exports.CarbonCoordinatorTaxIdentification = exports.CarbonCoordinatorBusinessStatus = exports.CarbonCoordinatorRoleType = exports.CarbonCoordinatorManagedCarbonClients = exports.CarbonCoordinatorWeeklyWorkingSchedule = exports.CarbonCoordinatorGender = exports.CarbonCoordinatorUserType = exports.CarbonCoordinatorAvailabilityStatus = exports.CarbonCoordinatorDisplayName = exports.CarbonCoordinatorEmail = exports.CarbonCoordinatorId = exports.CarbonClientBusinessStatus = exports.CarbonClientLastAccessAt = exports.CarbonClientSupervisedByStakeholder = exports.CarbonClientRoleType = exports.CarbonClientTaxIdentification = exports.CarbonClientPrimaryContactPhone = exports.CarbonClientPrimaryContactEmail = exports.CarbonClientLogo = exports.CarbonClientWebsiteUrl = exports.CarbonClientPhysicalAddress = exports.CarbonClientOrganizationSize = exports.CarbonClientIndustryType = exports.CarbonClientUserType = exports.CarbonClientLegalBusinessName = exports.CarbonClientAccountType = void 0;
|
|
17
|
+
exports.StakeholderPermissions = exports.UserPermissions = exports.SecurityContextReconstructionError = exports.SecurityContext = exports.PermissionSet = exports.PermissionEnum = exports.AuthorizationDecisionEnum = exports.SemanticUuidDomainService = exports.DateTimeFormattingDomainService = exports.InvalidCarbonCoordinatorAvailabilityStatusError = exports.InvalidCarbonClientAccountTypeError = exports.CarbonCoordinatorAvailabilityStatusEnum = void 0;
|
|
18
18
|
// ─── Entity Classes (For Application Layer) ─────────────────────────────────
|
|
19
19
|
var ActivityDataSubmission_1 = require("../carbonbox/activity-data-collection/activity-data-submissions/domain/entity/ActivityDataSubmission");
|
|
20
20
|
Object.defineProperty(exports, "ActivityDataSubmission", { enumerable: true, get: function () { return ActivityDataSubmission_1.ActivityDataSubmission; } });
|
|
@@ -785,6 +785,8 @@ var SystemBoundary_1 = require("../carbonbox/shared/domain/enums/SystemBoundary"
|
|
|
785
785
|
Object.defineProperty(exports, "SystemBoundaryEnum", { enumerable: true, get: function () { return SystemBoundary_1.SystemBoundary; } });
|
|
786
786
|
var TaxIdentification_1 = require("../carbonbox/shared/domain/enums/TaxIdentification");
|
|
787
787
|
Object.defineProperty(exports, "TaxIdentificationEnum", { enumerable: true, get: function () { return TaxIdentification_1.TaxIdentification; } });
|
|
788
|
+
var SemanticUuidPrefix_1 = require("../carbonbox/shared/domain/enums/SemanticUuidPrefix");
|
|
789
|
+
Object.defineProperty(exports, "SemanticUuidPrefixEnum", { enumerable: true, get: function () { return SemanticUuidPrefix_1.SemanticUuidPrefix; } });
|
|
788
790
|
// ─── Fundamental Value Objects ───────────────────────────────────────────────
|
|
789
791
|
// Core Primitives
|
|
790
792
|
var String_1 = require("../carbonbox/shared/domain/value-objects/String");
|
|
@@ -967,6 +969,18 @@ var InvalidPropertyTypeError_1 = require("../carbonbox/shared/domain/exceptions/
|
|
|
967
969
|
Object.defineProperty(exports, "InvalidPropertyTypeError", { enumerable: true, get: function () { return InvalidPropertyTypeError_1.InvalidPropertyTypeError; } });
|
|
968
970
|
var InvalidPropertyValueError_1 = require("../carbonbox/shared/domain/exceptions/InvalidPropertyValueError");
|
|
969
971
|
Object.defineProperty(exports, "InvalidPropertyValueError", { enumerable: true, get: function () { return InvalidPropertyValueError_1.InvalidPropertyValueError; } });
|
|
972
|
+
var InvalidSemanticUuidError_1 = require("../carbonbox/shared/domain/exceptions/InvalidSemanticUuidError");
|
|
973
|
+
Object.defineProperty(exports, "InvalidSemanticUuidError", { enumerable: true, get: function () { return InvalidSemanticUuidError_1.InvalidSemanticUuidError; } });
|
|
974
|
+
var InvalidSemanticUuidFormatError_1 = require("../carbonbox/shared/domain/exceptions/InvalidSemanticUuidFormatError");
|
|
975
|
+
Object.defineProperty(exports, "InvalidSemanticUuidFormatError", { enumerable: true, get: function () { return InvalidSemanticUuidFormatError_1.InvalidSemanticUuidFormatError; } });
|
|
976
|
+
var InvalidUserIdFormatError_1 = require("../carbonbox/shared/domain/exceptions/InvalidUserIdFormatError");
|
|
977
|
+
Object.defineProperty(exports, "InvalidUserIdFormatError", { enumerable: true, get: function () { return InvalidUserIdFormatError_1.InvalidUserIdFormatError; } });
|
|
978
|
+
var InvalidUserPrefixError_1 = require("../carbonbox/shared/domain/exceptions/InvalidUserPrefixError");
|
|
979
|
+
Object.defineProperty(exports, "InvalidUserPrefixError", { enumerable: true, get: function () { return InvalidUserPrefixError_1.InvalidUserPrefixError; } });
|
|
980
|
+
var InvalidUuidFormatError_1 = require("../carbonbox/shared/domain/exceptions/InvalidUuidFormatError");
|
|
981
|
+
Object.defineProperty(exports, "InvalidUuidFormatError", { enumerable: true, get: function () { return InvalidUuidFormatError_1.InvalidUuidFormatError; } });
|
|
982
|
+
var UnknownBoundedContextCodeError_1 = require("../carbonbox/shared/domain/exceptions/UnknownBoundedContextCodeError");
|
|
983
|
+
Object.defineProperty(exports, "UnknownBoundedContextCodeError", { enumerable: true, get: function () { return UnknownBoundedContextCodeError_1.UnknownBoundedContextCodeError; } });
|
|
970
984
|
// Business Rule Violations
|
|
971
985
|
var InvalidBusinessScaleError_1 = require("../carbonbox/shared/domain/exceptions/InvalidBusinessScaleError");
|
|
972
986
|
Object.defineProperty(exports, "InvalidBusinessScaleError", { enumerable: true, get: function () { return InvalidBusinessScaleError_1.InvalidBusinessScaleError; } });
|
|
@@ -1232,6 +1246,8 @@ Object.defineProperty(exports, "InvalidCarbonCoordinatorAvailabilityStatusError"
|
|
|
1232
1246
|
// ─── Date and Time Services ──────────────────────────────────────────────────
|
|
1233
1247
|
var DateTimeFormattingDomainService_1 = require("../carbonbox/shared/domain/services/implementations/DateTimeFormattingDomainService");
|
|
1234
1248
|
Object.defineProperty(exports, "DateTimeFormattingDomainService", { enumerable: true, get: function () { return DateTimeFormattingDomainService_1.DateTimeFormattingDomainService; } });
|
|
1249
|
+
var SemanticUuidDomainService_1 = require("../carbonbox/shared/domain/services/implementations/SemanticUuidDomainService");
|
|
1250
|
+
Object.defineProperty(exports, "SemanticUuidDomainService", { enumerable: true, get: function () { return SemanticUuidDomainService_1.SemanticUuidDomainService; } });
|
|
1235
1251
|
// ─── Enums ──────────────────────────────────────────────────────────────────
|
|
1236
1252
|
var AuthorizationDecision_1 = require("../carbonbox/shared/domain/authorization/enums/AuthorizationDecision");
|
|
1237
1253
|
Object.defineProperty(exports, "AuthorizationDecisionEnum", { enumerable: true, get: function () { return AuthorizationDecision_1.AuthorizationDecision; } });
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Semantic UUID Prefixes for Carbon Footprint Management System
|
|
3
|
+
*
|
|
4
|
+
* Format: {BC} or {BC}-{SUB1}-{SUB2}-...{SUBn} (N-level subdomain support)
|
|
5
|
+
*
|
|
6
|
+
* Supports:
|
|
7
|
+
* - BC-level entities: STC_uuid (for bounded context level entities)
|
|
8
|
+
* - Subdomain entities: USR-STH-CHO_uuid (for subdomain level entities)
|
|
9
|
+
* - N-level expansion: BC-SUB1-SUB2-SUBn_uuid (future growth)
|
|
10
|
+
*
|
|
11
|
+
* Usage in backend:
|
|
12
|
+
* - Import and use these prefixes when generating UUIDs: `${SemanticUuidPrefix.USR_STH_HOST}_${uuid}`
|
|
13
|
+
* - Each domain validates against its specific prefix in its value object
|
|
14
|
+
* - Maintains consistency across the entire system
|
|
15
|
+
* - Easily expandable as new domains/subdomains are added
|
|
16
|
+
*/
|
|
17
|
+
export declare enum SemanticUuidPrefix {
|
|
18
|
+
STC = "STC",// Example: System Technical Configuration
|
|
19
|
+
ADC_SUBMISSIONS = "ADC-SUB",
|
|
20
|
+
ADC_FIELDS = "ADC-FLD",
|
|
21
|
+
ADC_LOGIC = "ADC-LOG",
|
|
22
|
+
ADC_LABELS = "ADC-LBL",
|
|
23
|
+
ADC_FORMS = "ADC-FRM",
|
|
24
|
+
ADC_ADAPTATIONS = "ADC-ADP",
|
|
25
|
+
CFC_CORPORATE = "CFC-COR",
|
|
26
|
+
CFC_EVENT = "CFC-EVT",
|
|
27
|
+
CFC_PRODUCT = "CFC-PRD",
|
|
28
|
+
CPR_EVENTS = "CPR-EVT",
|
|
29
|
+
CPR_FACILITIES = "CPR-FAC",
|
|
30
|
+
CPR_PRODUCTS = "CPR-PRD",
|
|
31
|
+
ECF_VARIABLES = "ECF-VAR",
|
|
32
|
+
ECF_FACTORS = "ECF-FAC",
|
|
33
|
+
ECF_GWP = "ECF-GWP",
|
|
34
|
+
ECP_JOBS = "ECP-JOB",
|
|
35
|
+
ECP_PROCESSES = "ECP-PRC",
|
|
36
|
+
ECP_WORKFLOWS = "ECP-WFL",
|
|
37
|
+
ECR_AGGREGATIONS = "ECR-AGG",
|
|
38
|
+
ECR_CALCULATIONS = "ECR-CAL",
|
|
39
|
+
ECR_GHG_RESULTS = "ECR-GHG",
|
|
40
|
+
USR = "USR",// General user (BC-level)
|
|
41
|
+
USR_STH_CLIENT = "USR-STH-CLI",
|
|
42
|
+
USR_STH_COORDINATOR = "USR-STH-CRD",
|
|
43
|
+
USR_STH_HOST = "USR-STH-CHO",
|
|
44
|
+
USR_STH_MANAGER = "USR-STH-MGR",
|
|
45
|
+
SHR_DOMAIN = "SHR-DOM",
|
|
46
|
+
SHR_EITHER = "SHR-ETH"
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=SemanticUuidPrefix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SemanticUuidPrefix.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/enums/SemanticUuidPrefix.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,kBAAkB;IAE5B,GAAG,QAAQ,CAAE,0CAA0C;IAGvD,eAAe,YAAY;IAC3B,UAAU,YAAY;IACtB,SAAS,YAAY;IACrB,UAAU,YAAY;IACtB,SAAS,YAAY;IACrB,eAAe,YAAY;IAG3B,aAAa,YAAY;IACzB,SAAS,YAAY;IACrB,WAAW,YAAY;IAGvB,UAAU,YAAY;IACtB,cAAc,YAAY;IAC1B,YAAY,YAAY;IAGxB,aAAa,YAAY;IACzB,WAAW,YAAY;IACvB,OAAO,YAAY;IAGnB,QAAQ,YAAY;IACpB,aAAa,YAAY;IACzB,aAAa,YAAY;IAGzB,gBAAgB,YAAY;IAC5B,gBAAgB,YAAY;IAC5B,eAAe,YAAY;IAG3B,GAAG,QAAQ,CAAE,0BAA0B;IAGvC,cAAc,gBAAgB;IAC9B,mBAAmB,gBAAgB;IACnC,YAAY,gBAAgB;IAC5B,eAAe,gBAAgB;IAG/B,UAAU,YAAY;IACtB,UAAU,YAAY;CAMvB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RootError } from './RootError';
|
|
2
|
+
export declare class InvalidSemanticUuidError extends RootError {
|
|
3
|
+
private static readonly INVALID_SEMANTIC_UUID_ERROR_MESSAGE;
|
|
4
|
+
private constructor();
|
|
5
|
+
static create(semanticUuid: string, propertyName: string): InvalidSemanticUuidError;
|
|
6
|
+
logError(): string;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=InvalidSemanticUuidError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvalidSemanticUuidError.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/exceptions/InvalidSemanticUuidError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,wBAAyB,SAAQ,SAAS;IACrD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mCAAmC,CAAgJ;IAE3M,OAAO;WASgB,MAAM,CAC3B,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,GACnB,wBAAwB;IAIX,QAAQ,IAAI,MAAM;CAGnC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RootError } from './RootError';
|
|
2
|
+
export declare class InvalidSemanticUuidFormatError extends RootError {
|
|
3
|
+
private static readonly INVALID_SEMANTIC_UUID_FORMAT_ERROR_MESSAGE;
|
|
4
|
+
private constructor();
|
|
5
|
+
static create(semanticUuid: string, reason: string): InvalidSemanticUuidFormatError;
|
|
6
|
+
logError(): string;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=InvalidSemanticUuidFormatError.d.ts.map
|
package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidFormatError.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvalidSemanticUuidFormatError.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/exceptions/InvalidSemanticUuidFormatError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,8BAA+B,SAAQ,SAAS;IAC3D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,0CAA0C,CAA4C;IAE9G,OAAO;WASgB,MAAM,CAC3B,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,GACb,8BAA8B;IAIjB,QAAQ,IAAI,MAAM;CAGnC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RootError } from './RootError';
|
|
2
|
+
export declare class InvalidUserIdFormatError extends RootError {
|
|
3
|
+
private static readonly INVALID_USER_ID_FORMAT_ERROR_MESSAGE;
|
|
4
|
+
private constructor();
|
|
5
|
+
static create(userId: string, reason: string): InvalidUserIdFormatError;
|
|
6
|
+
logError(): string;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=InvalidUserIdFormatError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvalidUserIdFormatError.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/exceptions/InvalidUserIdFormatError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,wBAAyB,SAAQ,SAAS;IACrD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oCAAoC,CAA+C;IAE3G,OAAO;WASgB,MAAM,CAC3B,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,wBAAwB;IAIX,QAAQ,IAAI,MAAM;CAGnC"}
|