@carbonbox/domain 0.4.7 → 0.4.9
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/shared/domain/value-objects/ActivityDataSubmissionReference.js +97 -61
- package/build/carbonbox/shared/domain/value-objects/Address.js +63 -52
- package/build/carbonbox/shared/domain/value-objects/AggregateId.js +13 -18
- package/build/carbonbox/shared/domain/value-objects/Boolean.js +29 -30
- package/build/carbonbox/shared/domain/value-objects/CalculationProcessReference.js +36 -32
- package/build/carbonbox/shared/domain/value-objects/CalculationVariableReferences.js +82 -62
- package/build/carbonbox/shared/domain/value-objects/CarbonClientReference.js +181 -114
- package/build/carbonbox/shared/domain/value-objects/CarbonClientReferences.js +109 -74
- package/build/carbonbox/shared/domain/value-objects/CarbonFootprintConfigurationReference.js +37 -27
- package/build/carbonbox/shared/domain/value-objects/CarbonFootprintIntensityIndicatorReference.js +101 -68
- package/build/carbonbox/shared/domain/value-objects/CarbonFootprintSegmentReferences.js +95 -60
- package/build/carbonbox/shared/domain/value-objects/CodeList.js +57 -41
- package/build/carbonbox/shared/domain/value-objects/CollectionFieldReference.js +74 -49
- package/build/carbonbox/shared/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationReferences.js +171 -116
- package/build/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentReference.js +70 -43
- package/build/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentReference.js +70 -43
- package/build/carbonbox/shared/domain/value-objects/Currency.js +10 -15
- package/build/carbonbox/shared/domain/value-objects/DateString.js +15 -20
- package/build/carbonbox/shared/domain/value-objects/DateTimeString.js +17 -22
- package/build/carbonbox/shared/domain/value-objects/Email.js +9 -14
- package/build/carbonbox/shared/domain/value-objects/EmissionCalculationFormulaReference.js +46 -31
- package/build/carbonbox/shared/domain/value-objects/EmissionCalculationReference.js +102 -77
- package/build/carbonbox/shared/domain/value-objects/EmissionFactorReference.js +56 -40
- package/build/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReference.js +58 -38
- package/build/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReferences.js +95 -60
- package/build/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageConfigurationReferences.js +171 -116
- package/build/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageReference.js +43 -30
- package/build/carbonbox/shared/domain/value-objects/EventEditionReference.js +49 -33
- package/build/carbonbox/shared/domain/value-objects/EventEditionReferences.js +65 -49
- package/build/carbonbox/shared/domain/value-objects/EventReference.js +41 -31
- package/build/carbonbox/shared/domain/value-objects/ExecutionPeriod.js +95 -79
- package/build/carbonbox/shared/domain/value-objects/FacilityReference.js +34 -24
- package/build/carbonbox/shared/domain/value-objects/Gender.js +11 -16
- package/build/carbonbox/shared/domain/value-objects/GlobalWarmingPotentialReference.js +72 -53
- package/build/carbonbox/shared/domain/value-objects/Image.js +46 -38
- package/build/carbonbox/shared/domain/value-objects/Integer.js +13 -18
- package/build/carbonbox/shared/domain/value-objects/NullableCode.js +17 -22
- package/build/carbonbox/shared/domain/value-objects/NullableCorporateConfigurationCarbonFootprintSubsegmentReference.js +49 -31
- package/build/carbonbox/shared/domain/value-objects/NullableDate.js +25 -27
- package/build/carbonbox/shared/domain/value-objects/NullableDateTimeString.js +34 -37
- package/build/carbonbox/shared/domain/value-objects/NullableEventEditionConfigurationCarbonFootprintSubsegmentReference.js +49 -31
- package/build/carbonbox/shared/domain/value-objects/NullableNumeric.js +60 -63
- package/build/carbonbox/shared/domain/value-objects/NullablePositiveInteger.js +4 -11
- package/build/carbonbox/shared/domain/value-objects/NullableProductConfigurationCarbonFootprintSubsegmentReference.js +49 -31
- package/build/carbonbox/shared/domain/value-objects/NullableStakeholderReference.js +8 -8
- package/build/carbonbox/shared/domain/value-objects/NullableString.js +22 -25
- package/build/carbonbox/shared/domain/value-objects/NullableTaxIdentificationNumber.js +43 -35
- package/build/carbonbox/shared/domain/value-objects/Numeric.js +72 -69
- package/build/carbonbox/shared/domain/value-objects/Phone.js +66 -47
- package/build/carbonbox/shared/domain/value-objects/ProductCarbonFootprintSegmentConfigurationReferences.js +176 -121
- package/build/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSegmentReference.js +101 -61
- package/build/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentReference.js +101 -61
- package/build/carbonbox/shared/domain/value-objects/ProductConfigurationSystemBoundaryReference.js +60 -40
- package/build/carbonbox/shared/domain/value-objects/ProductReference.js +46 -31
- package/build/carbonbox/shared/domain/value-objects/ServiceCatalogReference.js +60 -40
- package/build/carbonbox/shared/domain/value-objects/StakeholderReference.js +123 -75
- package/build/carbonbox/shared/domain/value-objects/StakeholderReferences.js +124 -81
- package/build/carbonbox/shared/domain/value-objects/String.js +13 -17
- package/build/carbonbox/shared/domain/value-objects/StringList.js +35 -35
- package/build/carbonbox/shared/domain/value-objects/TaxIdentification.js +121 -85
- package/build/carbonbox/shared/domain/value-objects/TaxIdentificationNumberList.js +57 -52
- package/build/carbonbox/shared/domain/value-objects/Url.js +14 -19
- package/build/carbonbox/shared/domain/value-objects/UrlList.js +57 -41
- package/build/carbonbox/shared/domain/value-objects/UserBusinessStatus.js +17 -22
- package/build/carbonbox/shared/domain/value-objects/UserEmail.js +48 -40
- package/build/carbonbox/shared/domain/value-objects/UserPassword.js +29 -32
- package/build/carbonbox/shared/domain/value-objects/UserPermissions.js +47 -46
- package/build/carbonbox/shared/domain/value-objects/UserType.js +17 -22
- package/build/carbonbox/shared/domain/value-objects/ValueObject.js +17 -16
- package/build/main/index.js +4 -2
- package/build/types/carbonbox/shared/domain/value-objects/ActivityDataSubmissionReference.d.ts +37 -1
- package/build/types/carbonbox/shared/domain/value-objects/ActivityDataSubmissionReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/Address.d.ts +22 -4
- package/build/types/carbonbox/shared/domain/value-objects/Address.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/AggregateId.d.ts +4 -3
- package/build/types/carbonbox/shared/domain/value-objects/AggregateId.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/AggregateIdList.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/value-objects/AggregateIdList.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/Boolean.d.ts +5 -1
- package/build/types/carbonbox/shared/domain/value-objects/Boolean.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/CalculationProcessReference.d.ts +5 -1
- package/build/types/carbonbox/shared/domain/value-objects/CalculationProcessReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/CalculationVariableReferences.d.ts +24 -4
- package/build/types/carbonbox/shared/domain/value-objects/CalculationVariableReferences.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/CarbonClientReference.d.ts +70 -2
- package/build/types/carbonbox/shared/domain/value-objects/CarbonClientReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/CarbonClientReferences.d.ts +39 -2
- package/build/types/carbonbox/shared/domain/value-objects/CarbonClientReferences.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/CarbonFootprintConfigurationReference.d.ts +11 -1
- package/build/types/carbonbox/shared/domain/value-objects/CarbonFootprintConfigurationReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/CarbonFootprintIntensityIndicatorReference.d.ts +35 -1
- package/build/types/carbonbox/shared/domain/value-objects/CarbonFootprintIntensityIndicatorReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/CarbonFootprintSegmentReferences.d.ts +38 -2
- package/build/types/carbonbox/shared/domain/value-objects/CarbonFootprintSegmentReferences.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/Code.d.ts +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/Code.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/CodeList.d.ts +18 -2
- package/build/types/carbonbox/shared/domain/value-objects/CodeList.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/CollectionFieldReference.d.ts +26 -1
- package/build/types/carbonbox/shared/domain/value-objects/CollectionFieldReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationReferences.d.ts +64 -2
- 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 +30 -2
- 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 +30 -2
- package/build/types/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/Currency.d.ts +3 -2
- package/build/types/carbonbox/shared/domain/value-objects/Currency.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/DateString.d.ts +5 -3
- package/build/types/carbonbox/shared/domain/value-objects/DateString.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/DateTimeString.d.ts +5 -3
- package/build/types/carbonbox/shared/domain/value-objects/DateTimeString.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/Email.d.ts +3 -2
- package/build/types/carbonbox/shared/domain/value-objects/Email.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/EmissionCalculationFormulaReference.d.ts +16 -1
- package/build/types/carbonbox/shared/domain/value-objects/EmissionCalculationFormulaReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/EmissionCalculationReference.d.ts +26 -1
- package/build/types/carbonbox/shared/domain/value-objects/EmissionCalculationReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/EmissionFactorReference.d.ts +17 -1
- package/build/types/carbonbox/shared/domain/value-objects/EmissionFactorReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/EmissionSource.d.ts +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/EmissionSource.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/EmissionSources.d.ts +3 -3
- package/build/types/carbonbox/shared/domain/value-objects/EmissionSources.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts +22 -2
- 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 +38 -2
- 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 +64 -2
- 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 +14 -1
- package/build/types/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/EventEditionReference.d.ts +17 -1
- package/build/types/carbonbox/shared/domain/value-objects/EventEditionReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/EventEditionReferences.d.ts +20 -4
- package/build/types/carbonbox/shared/domain/value-objects/EventEditionReferences.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/EventReference.d.ts +11 -1
- package/build/types/carbonbox/shared/domain/value-objects/EventReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/ExecutionPeriod.d.ts +16 -1
- package/build/types/carbonbox/shared/domain/value-objects/ExecutionPeriod.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/FacilityReference.d.ts +11 -1
- package/build/types/carbonbox/shared/domain/value-objects/FacilityReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/Gender.d.ts +4 -3
- package/build/types/carbonbox/shared/domain/value-objects/Gender.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/GlobalWarmingPotentialReference.d.ts +21 -2
- package/build/types/carbonbox/shared/domain/value-objects/GlobalWarmingPotentialReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/Image.d.ts +12 -0
- package/build/types/carbonbox/shared/domain/value-objects/Image.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/Integer.d.ts +4 -2
- package/build/types/carbonbox/shared/domain/value-objects/Integer.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableCode.d.ts +4 -2
- package/build/types/carbonbox/shared/domain/value-objects/NullableCode.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableCorporateConfigurationCarbonFootprintSubsegmentReference.d.ts +19 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableCorporateConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableDate.d.ts +6 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableDate.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableDateTimeString.d.ts +5 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableDateTimeString.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableEventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts +19 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableEventEditionConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableNumeric.d.ts +6 -2
- package/build/types/carbonbox/shared/domain/value-objects/NullableNumeric.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullablePositiveInteger.d.ts +3 -2
- package/build/types/carbonbox/shared/domain/value-objects/NullablePositiveInteger.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableProductConfigurationCarbonFootprintSubsegmentReference.d.ts +19 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableProductConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableStakeholderReference.d.ts +2 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableStakeholderReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableString.d.ts +5 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableString.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/NullableTaxIdentificationNumber.d.ts +20 -5
- package/build/types/carbonbox/shared/domain/value-objects/NullableTaxIdentificationNumber.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/Numeric.d.ts +11 -2
- package/build/types/carbonbox/shared/domain/value-objects/Numeric.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/Phone.d.ts +21 -2
- package/build/types/carbonbox/shared/domain/value-objects/Phone.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/PositiveInteger.d.ts +2 -1
- package/build/types/carbonbox/shared/domain/value-objects/PositiveInteger.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/ProductCarbonFootprintSegmentConfigurationReferences.d.ts +60 -2
- 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 +45 -4
- 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 +45 -4
- package/build/types/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/ProductConfigurationSystemBoundaryReference.d.ts +21 -1
- package/build/types/carbonbox/shared/domain/value-objects/ProductConfigurationSystemBoundaryReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/ProductReference.d.ts +16 -1
- package/build/types/carbonbox/shared/domain/value-objects/ProductReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/ServiceCatalogReference.d.ts +21 -1
- package/build/types/carbonbox/shared/domain/value-objects/ServiceCatalogReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/StakeholderReference.d.ts +51 -2
- package/build/types/carbonbox/shared/domain/value-objects/StakeholderReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/StakeholderReferences.d.ts +46 -2
- package/build/types/carbonbox/shared/domain/value-objects/StakeholderReferences.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/String.d.ts +3 -1
- package/build/types/carbonbox/shared/domain/value-objects/String.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/StringList.d.ts +7 -1
- package/build/types/carbonbox/shared/domain/value-objects/StringList.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/TaxIdentification.d.ts +41 -3
- package/build/types/carbonbox/shared/domain/value-objects/TaxIdentification.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/TaxIdentificationNumber.d.ts +4 -4
- package/build/types/carbonbox/shared/domain/value-objects/TaxIdentificationNumber.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/TaxIdentificationNumberList.d.ts +16 -4
- package/build/types/carbonbox/shared/domain/value-objects/TaxIdentificationNumberList.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/Url.d.ts +2 -1
- package/build/types/carbonbox/shared/domain/value-objects/Url.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/UrlList.d.ts +18 -2
- package/build/types/carbonbox/shared/domain/value-objects/UrlList.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/UserBusinessStatus.d.ts +4 -2
- package/build/types/carbonbox/shared/domain/value-objects/UserBusinessStatus.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/UserEmail.d.ts +10 -1
- package/build/types/carbonbox/shared/domain/value-objects/UserEmail.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/UserPassword.d.ts +7 -3
- package/build/types/carbonbox/shared/domain/value-objects/UserPassword.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/UserPermissions.d.ts +11 -3
- package/build/types/carbonbox/shared/domain/value-objects/UserPermissions.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/UserType.d.ts +4 -2
- package/build/types/carbonbox/shared/domain/value-objects/UserType.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/ValueObject.d.ts +2 -0
- package/build/types/carbonbox/shared/domain/value-objects/ValueObject.d.ts.map +1 -1
- package/build/types/main/index.d.ts +1 -0
- package/build/types/main/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { String } from './String';
|
|
2
2
|
import { Currency as CurrencyEnum } from '../enums/Currency';
|
|
3
3
|
export declare abstract class Currency extends String {
|
|
4
|
-
|
|
5
|
-
private static readonly VALID_CURRENCIES;
|
|
4
|
+
protected static readonly VALID_CURRENCIES: readonly string[];
|
|
6
5
|
protected constructor(value: string, skipDomainValidation: boolean, propertyName: string);
|
|
7
6
|
static guardAgainstInvalidCurrency(currency: string, propertyName: string): void;
|
|
7
|
+
protected static currencyIsInvalid(currency: string): boolean;
|
|
8
|
+
protected static currencyIsValid(currency: string): boolean;
|
|
8
9
|
toEnum(): CurrencyEnum;
|
|
9
10
|
static getValidCurrencies(): readonly string[];
|
|
10
11
|
isUSD(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/Currency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG7D,8BAAsB,QAAS,SAAQ,MAAM
|
|
1
|
+
{"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/Currency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG7D,8BAAsB,QAAS,SAAQ,MAAM;IAC3C,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAA+B;IAE5F,SAAS,aACP,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,OAAO,EAC7B,YAAY,EAAE,MAAM;WAaR,2BAA2B,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAQvF,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAI7D,SAAS,CAAC,MAAM,CAAC,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAIpD,MAAM,IAAI,YAAY;WAIf,kBAAkB,IAAI,SAAS,MAAM,EAAE;IAI9C,KAAK,IAAI,OAAO;IAIhB,KAAK,IAAI,OAAO;IAIhB,KAAK,IAAI,OAAO;IAIhB,eAAe,IAAI,OAAO;IAK1B,SAAS,IAAI,MAAM;IAgBnB,eAAe,IAAI,MAAM;CAmBjC"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { String as StringValueObject } from './String';
|
|
2
2
|
export declare abstract class DateString extends StringValueObject {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
private static readonly DATE_FORMAT;
|
|
3
|
+
protected static readonly DATE_REGEX: RegExp;
|
|
4
|
+
protected static readonly DATE_FORMAT: string;
|
|
6
5
|
protected constructor(value: string, skipDomainValidation: boolean, propertyName: string);
|
|
7
6
|
static fromDate(_date: Date): DateString;
|
|
8
7
|
static getCurrentDate(): DateString;
|
|
9
8
|
toDate(): Date;
|
|
10
9
|
static guardAgainstInvalidDateFormat(value: string): void;
|
|
10
|
+
protected static dateFormatIsInvalid(value: string): boolean;
|
|
11
|
+
protected static dateFormatIsValid(value: string): boolean;
|
|
12
|
+
protected parseDateComponents(): [number, number, number];
|
|
11
13
|
/**
|
|
12
14
|
* Gets the supported date format string
|
|
13
15
|
* @returns The date format string
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateString.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/DateString.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEvD,8BAAsB,UAAW,SAAQ,iBAAiB
|
|
1
|
+
{"version":3,"file":"DateString.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/DateString.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEvD,8BAAsB,UAAW,SAAQ,iBAAiB;IACxD,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAmD;IAE/F,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAyB;IAEtE,SAAS,aACP,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,OAAO,EAC7B,YAAY,EAAE,MAAM;WAcR,QAAQ,CAAC,KAAK,EAAE,IAAI,GAAG,UAAU;WAIjC,cAAc,IAAI,UAAU;IAInC,MAAM,IAAI,IAAI;WAKP,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAMhE,SAAS,CAAC,MAAM,CAAC,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAI5D,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAI1D,SAAS,CAAC,mBAAmB,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IAKzD;;;OAGG;WACW,aAAa,IAAI,MAAM;CAGtC"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { String as StringValueObject } from './String';
|
|
2
2
|
export declare abstract class DateTimeString extends StringValueObject {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
private static readonly DATETIME_FORMAT;
|
|
3
|
+
protected static readonly DATETIME_REGEX: RegExp;
|
|
4
|
+
protected static readonly DATETIME_FORMAT: string;
|
|
6
5
|
protected constructor(value: string, skipDomainValidation: boolean, propertyName: string);
|
|
7
6
|
static fromDate(_date: Date): DateTimeString;
|
|
8
7
|
static getCurrentDateTime(): DateTimeString;
|
|
9
8
|
toDate(): Date;
|
|
10
9
|
static guardAgainstInvalidDateTimeFormat(value: string): void;
|
|
10
|
+
protected static dateTimeFormatIsInvalid(value: string): boolean;
|
|
11
|
+
protected static dateTimeFormatIsValid(value: string): boolean;
|
|
12
|
+
protected parseDateTimeComponents(): [number, number, number, number, number, number];
|
|
11
13
|
/**
|
|
12
14
|
* Gets the supported datetime format string
|
|
13
15
|
* @returns The datetime format string
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimeString.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/DateTimeString.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEvD,8BAAsB,cAAe,SAAQ,iBAAiB
|
|
1
|
+
{"version":3,"file":"DateTimeString.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/DateTimeString.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEvD,8BAAsB,cAAe,SAAQ,iBAAiB;IAC5D,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAiG;IAEjJ,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAkC;IAEnF,SAAS,aACP,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,OAAO,EAC7B,YAAY,EAAE,MAAM;WAcR,QAAQ,CAAC,KAAK,EAAE,IAAI,GAAG,cAAc;WAIrC,kBAAkB,IAAI,cAAc;IAI3C,MAAM,IAAI,IAAI;WAKP,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAMpE,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAIhE,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAI9D,SAAS,CAAC,uBAAuB,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IAOrF;;;OAGG;WACW,iBAAiB,IAAI,MAAM;CAG1C"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { String } from './String';
|
|
2
2
|
export declare abstract class Email extends String {
|
|
3
|
-
|
|
4
|
-
private static readonly EMAIL_REGEX;
|
|
3
|
+
protected static readonly EMAIL_REGEX: RegExp;
|
|
5
4
|
protected constructor(value: string, skipDomainValidation: boolean, propertyName: string);
|
|
6
5
|
static guardAgainstInvalidEmail(value: string, propertyName: string): void;
|
|
6
|
+
protected static emailFormatIsInvalid(value: string): boolean;
|
|
7
|
+
protected static emailFormatIsValid(value: string): boolean;
|
|
7
8
|
static isValidEmail(value: string): boolean;
|
|
8
9
|
getDomain(): string;
|
|
9
10
|
getLocalPart(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Email.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/Email.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,8BAAsB,KAAM,SAAQ,MAAM
|
|
1
|
+
{"version":3,"file":"Email.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/Email.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,8BAAsB,KAAM,SAAQ,MAAM;IACxC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAgC;IAE7E,SAAS,aACP,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,OAAO,EAC7B,YAAY,EAAE,MAAM;WAaR,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IASjF,SAAS,CAAC,MAAM,CAAC,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAI7D,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;WAI7C,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAS3C,SAAS,IAAI,MAAM;IAInB,YAAY,IAAI,MAAM;CAG9B"}
|
package/build/types/carbonbox/shared/domain/value-objects/EmissionCalculationFormulaReference.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { EmissionCalculationFormulaReference as TEmissionCalculationFormulaRefer
|
|
|
3
3
|
import { ObjectValueObject } from './ObjectValueObject';
|
|
4
4
|
export declare abstract class EmissionCalculationFormulaReference extends ObjectValueObject<EmissionCalculationFormulaReferencePrimitives> {
|
|
5
5
|
#private;
|
|
6
|
-
|
|
6
|
+
protected static readonly DEFAULT_PROPERTY_NAME = "emissionCalculationFormulaReference";
|
|
7
7
|
/**
|
|
8
8
|
* Constructor protegido para que solo clases hijas puedan instanciar.
|
|
9
9
|
* Aplica todas las validaciones de dominio al momento de construcción.
|
|
@@ -13,6 +13,21 @@ export declare abstract class EmissionCalculationFormulaReference extends Object
|
|
|
13
13
|
* Validación estática para reutilización en factory methods y constructores.
|
|
14
14
|
*/
|
|
15
15
|
protected static validateEmissionCalculationFormulaReference(value: TEmissionCalculationFormulaReference, propertyName: string): void;
|
|
16
|
+
/**
|
|
17
|
+
* Valida que el objeto tenga la estructura correcta.
|
|
18
|
+
*/
|
|
19
|
+
protected static guardAgainstInvalidType(value: any, propertyName: string): void;
|
|
20
|
+
protected static guardAgainstInvalidId(id: string): void;
|
|
21
|
+
/**
|
|
22
|
+
* Valida el código de la fórmula de cálculo de emisiones usando las validaciones de Code.
|
|
23
|
+
* El código debe ser un UUID válido.
|
|
24
|
+
*/
|
|
25
|
+
protected static guardAgainstInvalidCode(code: string): void;
|
|
26
|
+
/**
|
|
27
|
+
* Valida la expresión de la fórmula de cálculo de emisiones.
|
|
28
|
+
* No debe ser vacía después de aplicar trim.
|
|
29
|
+
*/
|
|
30
|
+
protected static guardAgainstInvalidExpression(expression: string): void;
|
|
16
31
|
get id(): string;
|
|
17
32
|
/**
|
|
18
33
|
* Código único de la fórmula de cálculo de emisiones (UUID).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmissionCalculationFormulaReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EmissionCalculationFormulaReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6CAA6C,EAAE,MAAM,wDAAwD,CAAC;AACvH,OAAO,EAAE,mCAAmC,IAAI,oCAAoC,EAAE,MAAM,8CAA8C,CAAC;AAC3I,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAKxD,8BAAsB,mCACpB,SAAQ,iBAAiB,CAAC,6CAA6C,CAAC;;IACxE,
|
|
1
|
+
{"version":3,"file":"EmissionCalculationFormulaReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EmissionCalculationFormulaReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6CAA6C,EAAE,MAAM,wDAAwD,CAAC;AACvH,OAAO,EAAE,mCAAmC,IAAI,oCAAoC,EAAE,MAAM,8CAA8C,CAAC;AAC3I,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAKxD,8BAAsB,mCACpB,SAAQ,iBAAiB,CAAC,6CAA6C,CAAC;;IACxE,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,yCAAyC;IAQxF;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,oCAAoC,EAC3C,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAAkE;IAoBlF;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,2CAA2C,CAC1D,KAAK,EAAE,oCAAoC,EAC3C,YAAY,EAAE,MAAM,GACnB,IAAI;IAOP;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAkBhF,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAKxD;;;OAGG;IACH,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAK5D;;;OAGG;IACH,SAAS,CAAC,MAAM,CAAC,6BAA6B,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAIxE,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED;;OAEG;IACH,IAAW,IAAI,IAAI,MAAM,CAExB;IAED;;OAEG;IACH,IAAW,UAAU,IAAI,MAAM,CAE9B;IAEM,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIjC;;OAEG;IACI,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIrC;;OAEG;IACI,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAIjD;;OAEG;IACI,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAItD;;OAEG;IACI,cAAc,IAAI,MAAM;IAI/B;;OAEG;IACI,kBAAkB,IAAI,MAAM;IAInC;;;OAGG;IACI,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAQ3C;;;OAGG;IACI,MAAM,CAAC,KAAK,EAAE,mCAAmC,GAAG,OAAO;IAYlE;;;OAGG;IACI,cAAc,CAAC,KAAK,EAAE,mCAAmC,GAAG,OAAO;IAQ1E;;;OAGG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACa,YAAY,IAAI,6CAA6C;IAQ7E;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACI,MAAM,IAAI,6CAA6C;IAIvD,OAAO,IAAI,oCAAoC;IAQtD;;OAEG;WACW,kBAAkB,CAC9B,KAAK,EAAE,oCAAoC,EAC3C,YAAY,EAAE,MAAM,GACnB,IAAI;CAGR"}
|
|
@@ -7,7 +7,7 @@ import { EmissionSource } from '../enums/EmissionSource';
|
|
|
7
7
|
import { ObjectValueObject } from './ObjectValueObject';
|
|
8
8
|
export declare abstract class EmissionCalculationReference extends ObjectValueObject<EmissionCalculationReferencePrimitives> {
|
|
9
9
|
#private;
|
|
10
|
-
|
|
10
|
+
protected static readonly DEFAULT_PROPERTY_NAME = "emissionCalculationReference";
|
|
11
11
|
/**
|
|
12
12
|
* Constructor protegido para que solo clases hijas puedan instanciar.
|
|
13
13
|
* Aplica todas las validaciones de dominio al momento de construcción.
|
|
@@ -17,6 +17,31 @@ export declare abstract class EmissionCalculationReference extends ObjectValueOb
|
|
|
17
17
|
* Validación estática para reutilización en factory methods y constructores.
|
|
18
18
|
*/
|
|
19
19
|
protected static validateEmissionCalculationReference(value: TEmissionCalculationReference, propertyName: string): void;
|
|
20
|
+
/**
|
|
21
|
+
* Valida que el objeto tenga la estructura correcta.
|
|
22
|
+
*/
|
|
23
|
+
protected static guardAgainstInvalidType(value: any, propertyName: string): void;
|
|
24
|
+
protected static guardAgainstInvalidId(id: string): void;
|
|
25
|
+
/**
|
|
26
|
+
* Valida la referencia de activity data submission.
|
|
27
|
+
*/
|
|
28
|
+
protected static guardAgainstInvalidActivityDataSubmission(activityDataSubmission: any): void;
|
|
29
|
+
/**
|
|
30
|
+
* Valida la referencia de emission calculation formula.
|
|
31
|
+
*/
|
|
32
|
+
protected static guardAgainstInvalidEmissionCalculationFormula(emissionCalculationFormula: any): void;
|
|
33
|
+
/**
|
|
34
|
+
* Valida el emission source.
|
|
35
|
+
*/
|
|
36
|
+
protected static guardAgainstInvalidEmissionSource(emissionSource: string): void;
|
|
37
|
+
/**
|
|
38
|
+
* Valida la referencia de carbon client.
|
|
39
|
+
*/
|
|
40
|
+
protected static guardAgainstInvalidCarbonClient(carbonClient: any): void;
|
|
41
|
+
/**
|
|
42
|
+
* Valida la fecha/hora de cálculo.
|
|
43
|
+
*/
|
|
44
|
+
protected static guardAgainstInvalidCalculatedAt(calculatedAt: string): void;
|
|
20
45
|
get id(): string;
|
|
21
46
|
/**
|
|
22
47
|
* Referencia del activity data submission utilizado.
|
package/build/types/carbonbox/shared/domain/value-objects/EmissionCalculationReference.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmissionCalculationReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EmissionCalculationReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sCAAsC,EAAE,MAAM,iDAAiD,CAAC;AACzG,OAAO,EAAE,4BAA4B,IAAI,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtH,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAC3F,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,mCAAmC,EAAE,MAAM,8CAA8C,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAKxD,8BAAsB,4BACpB,SAAQ,iBAAiB,CAAC,sCAAsC,CAAC;;IACjE,
|
|
1
|
+
{"version":3,"file":"EmissionCalculationReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EmissionCalculationReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sCAAsC,EAAE,MAAM,iDAAiD,CAAC;AACzG,OAAO,EAAE,4BAA4B,IAAI,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtH,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAC3F,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,mCAAmC,EAAE,MAAM,8CAA8C,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAKxD,8BAAsB,4BACpB,SAAQ,iBAAiB,CAAC,sCAAsC,CAAC;;IACjE,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,kCAAkC;IAcjF;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,6BAA6B,EACpC,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAA2D;IAsB3E;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,oCAAoC,CACnD,KAAK,EAAE,6BAA6B,EACpC,YAAY,EAAE,MAAM,GACnB,IAAI;IAUP;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IA8BhF,SAAS,CAAC,MAAM,CAAC,qBA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G;IACI,cAAc,IAAI,MAAM;IAI/B;;OAEG;IACI,oBAAoB,IAAI,MAAM;IAIrC;;OAEG;IACI,kBAAkB,IAAI,MAAM;IAInC;;OAEG;IACI,mBAAmB,IAAI,MAAM;IAIpC;;OAEG;IACI,UAAU,IAAI,MAAM;IAI3B;;;OAGG;IACI,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAY3C;;;OAGG;IACI,MAAM,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO;IAe3D;;;OAGG;IACI,kBAAkB,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO;IAQvE;;;OAGG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACa,YAAY,IAAI,sCAAsC;IAWtE;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACI,MAAM,IAAI,sCAAsC;IAIhD,OAAO,IAAI,6BAA6B;IAW/C;;OAEG;WACW,kBAAkB,CAC9B,KAAK,EAAE,6BAA6B,EACpC,YAAY,EAAE,MAAM,GACnB,IAAI;CAGR"}
|
|
@@ -3,7 +3,7 @@ import { EmissionFactorReference as TEmissionFactorReference } from '../types/Em
|
|
|
3
3
|
import { ObjectValueObject } from './ObjectValueObject';
|
|
4
4
|
export declare abstract class EmissionFactorReference extends ObjectValueObject<EmissionFactorReferencePrimitives> {
|
|
5
5
|
#private;
|
|
6
|
-
|
|
6
|
+
protected static readonly DEFAULT_PROPERTY_NAME = "formulaEmissionFactorReference";
|
|
7
7
|
/**
|
|
8
8
|
* Constructor protegido para que solo clases hijas puedan instanciar.
|
|
9
9
|
* Aplica todas las validaciones de dominio al momento de construcción.
|
|
@@ -13,6 +13,22 @@ export declare abstract class EmissionFactorReference extends ObjectValueObject<
|
|
|
13
13
|
* Validación estática para reutilización en factory methods y constructores.
|
|
14
14
|
*/
|
|
15
15
|
protected static validateEmissionFactorReference(value: TEmissionFactorReference, propertyName: string): void;
|
|
16
|
+
/**
|
|
17
|
+
* Valida que el objeto tenga la estructura correcta.
|
|
18
|
+
*/
|
|
19
|
+
protected static guardAgainstInvalidType(value: any, propertyName: string): void;
|
|
20
|
+
/**
|
|
21
|
+
* Valida el ID usando las validaciones de AggregateId.
|
|
22
|
+
*/
|
|
23
|
+
protected static guardAgainstInvalidId(id: string): void;
|
|
24
|
+
/**
|
|
25
|
+
* Valida el código del factor de emisión.
|
|
26
|
+
*/
|
|
27
|
+
protected static guardAgainstInvalidCode(code: string): void;
|
|
28
|
+
/**
|
|
29
|
+
* Valida el nombre del factor de emisión.
|
|
30
|
+
*/
|
|
31
|
+
protected static guardAgainstInvalidName(name: string): void;
|
|
16
32
|
/**
|
|
17
33
|
* ID único del factor de emisión (UUID).
|
|
18
34
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmissionFactorReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EmissionFactorReference.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iCAAiC,EAAE,MAAM,4CAA4C,CAAC;AAC/F,OAAO,EAAE,uBAAuB,IAAI,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACvG,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAKxD,8BAAsB,uBAAwB,SAAQ,iBAAiB,CAAC,iCAAiC,CAAC;;IACxG,
|
|
1
|
+
{"version":3,"file":"EmissionFactorReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EmissionFactorReference.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iCAAiC,EAAE,MAAM,4CAA4C,CAAC;AAC/F,OAAO,EAAE,uBAAuB,IAAI,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACvG,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAKxD,8BAAsB,uBAAwB,SAAQ,iBAAiB,CAAC,iCAAiC,CAAC;;IACxG,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qB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AO;IAYtD;;;OAGG;IACI,gBAAgB,CAAC,KAAK,EAAE,uBAAuB,GAAG,OAAO;IAQhE;;OAEG;IACI,WAAW,CAAC,KAAK,EAAE,uBAAuB,GAAG,OAAO;IAQ3D;;OAEG;IACI,WAAW,CAAC,KAAK,EAAE,uBAAuB,GAAG,OAAO;IAQ3D;;OAEG;IACI,gBAAgB,CAAC,KAAK,EAAE,uBAAuB,GAAG,OAAO;IAYhE;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACa,YAAY,IAAI,iCAAiC;IAQjE;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACI,MAAM,IAAI,iCAAiC;CAGnD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmissionSource as EmissionSourceEnum } from '../enums/EmissionSource';
|
|
2
2
|
import { String } from './String';
|
|
3
3
|
export declare abstract class EmissionSource extends String {
|
|
4
|
-
|
|
4
|
+
protected static readonly DEFAULT_PROPERTY_NAME = "emissionSource";
|
|
5
5
|
/**
|
|
6
6
|
* Constructor protegido para que solo clases hijas puedan instanciar.
|
|
7
7
|
* Aplica todas las validaciones de dominio al momento de construcción.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmissionSource.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EmissionSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE/E,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,8BAAsB,cAAe,SAAQ,MAAM;IACjD,
|
|
1
|
+
{"version":3,"file":"EmissionSource.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EmissionSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE/E,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,8BAAsB,cAAe,SAAQ,MAAM;IACjD,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,oBAAoB;IAEnE;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAA6C;IAa7D;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,iCAAiC,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAU7F;;OAEG;IACI,MAAM,IAAI,kBAAkB;IAInC;;OAEG;IACI,QAAQ,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO;IAIpD;;OAEG;IACI,iBAAiB,IAAI,OAAO;IAUnC;;OAEG;IACI,cAAc,IAAI,OAAO;IAUhC;;OAEG;IACI,kBAAkB,IAAI,OAAO;IAWpC;;OAEG;IACI,mBAAmB,IAAI,OAAO;IASrC;;OAEG;IACI,aAAa,IAAI,OAAO;IAS/B;;OAEG;IACI,gBAAgB,IAAI,OAAO;IASlB,YAAY,IAAI,MAAM;CAGvC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmissionSource as EmissionSourceEnum } from '../enums/EmissionSource';
|
|
2
2
|
import { StringList } from './StringList';
|
|
3
3
|
export declare abstract class EmissionSources extends StringList {
|
|
4
|
-
|
|
4
|
+
protected static readonly DEFAULT_PROPERTY_NAME = "emissionSources";
|
|
5
5
|
/**
|
|
6
6
|
* Constructor protegido para que solo clases hijas puedan instanciar.
|
|
7
7
|
* Aplica todas las validaciones de dominio al momento de construcción.
|
|
@@ -14,11 +14,11 @@ export declare abstract class EmissionSources extends StringList {
|
|
|
14
14
|
/**
|
|
15
15
|
* Valida que no haya fuentes duplicadas.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
protected static guardAgainstDuplicateSources(value: string[], propertyName: string): void;
|
|
18
18
|
/**
|
|
19
19
|
* Valida que todos los valores sean enums válidos.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
protected static guardAgainstInvalidEnumValues(value: string[], propertyName: string): void;
|
|
22
22
|
/**
|
|
23
23
|
* Obtiene la lista de fuentes de emisión.
|
|
24
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmissionSources.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EmissionSources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,8BAAsB,eAAgB,SAAQ,UAAU;IACtD,
|
|
1
|
+
{"version":3,"file":"EmissionSources.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EmissionSources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,8BAAsB,eAAgB,SAAQ,UAAU;IACtD,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,qBAAqB;IAEpE;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,MAAM,EAAE,EACf,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAA8C;IAc9D;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,kCAAkC,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAKhG;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,4BAA4B,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAW1F;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,6BAA6B,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAc3F;;OAEG;IACI,UAAU,IAAI,SAAS,kBAAkB,EAAE;IAIlD;;OAEG;IACI,SAAS,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO;IAIrD;;OAEG;IACI,eAAe,IAAI,MAAM;IAIhC;;OAEG;IACI,kBAAkB,IAAI,OAAO;IAIpC;;OAEG;IACI,mBAAmB,IAAI,OAAO;IAUrC;;OAEG;IACI,gBAAgB,IAAI,OAAO;IAUlC;;OAEG;IACI,oBAAoB,IAAI,OAAO;IAWtC;;OAEG;IACI,mBAAmB,IAAI,kBAAkB,EAAE;IAUlD;;OAEG;IACI,gBAAgB,IAAI,kBAAkB,EAAE;IAU/C;;OAEG;IACI,oBAAoB,IAAI,kBAAkB,EAAE;IAWnD;;OAEG;IACI,cAAc,IAAI,MAAM;IAIxB,oBAAoB,IAAI,kBAAkB;IAIjD;;OAEG;IACa,YAAY,IAAI,MAAM,EAAE;IAIjC,OAAO,IAAI,kBAAkB,EAAE;IAItC;;OAEG;IACI,MAAM,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO;IAgB9C;;OAEG;IACI,QAAQ,IAAI,MAAM;IAKzB;;OAEG;IACI,QAAQ,IAAI,MAAM;CAG1B"}
|
|
@@ -3,8 +3,8 @@ import { EventEditionConfigurationCarbonFootprintSubsegmentReference as TEventEd
|
|
|
3
3
|
import { ObjectValueObject } from './ObjectValueObject';
|
|
4
4
|
export declare abstract class EventEditionConfigurationCarbonFootprintSubsegmentReference extends ObjectValueObject<EventEditionConfigurationCarbonFootprintSubsegmentReferencePrimitives> {
|
|
5
5
|
#private;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
protected static readonly DEFAULT_PROPERTY_NAME = "eventEditionStageSubsegmentReference";
|
|
7
|
+
protected static readonly MAX_NAME_LENGTH = 255;
|
|
8
8
|
/**
|
|
9
9
|
* Constructor protegido para que solo clases hijas puedan instanciar.
|
|
10
10
|
* Aplica todas las validaciones de dominio al momento de construcción.
|
|
@@ -14,6 +14,26 @@ export declare abstract class EventEditionConfigurationCarbonFootprintSubsegment
|
|
|
14
14
|
* Validación estática para reutilización en factory methods y constructores.
|
|
15
15
|
*/
|
|
16
16
|
protected static validateEventEditionConfigurationCarbonFootprintSubsegmentReference(value: TEventEditionConfigurationCarbonFootprintSubsegmentReference, propertyName: string): void;
|
|
17
|
+
/**
|
|
18
|
+
* Valida que el objeto tenga la estructura correcta.
|
|
19
|
+
*/
|
|
20
|
+
protected static guardAgainstInvalidType(value: any, propertyName: string): void;
|
|
21
|
+
/**
|
|
22
|
+
* Valida el ID usando las validaciones de AggregateId.
|
|
23
|
+
*/
|
|
24
|
+
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;
|
|
17
37
|
/**
|
|
18
38
|
* ID único del subsegmento (UUID).
|
|
19
39
|
*/
|
|
@@ -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;AAKxD,8BAAsB,2DAA4D,SAAQ,iBAAiB,CAAC,qEAAqE,CAAC;;IAChL,
|
|
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;AAKxD,8BAAsB,2DAA4D,SAAQ,iBAAiB,CAAC,qEAAqE,CAAC;;IAChL,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,0CAA0C;IAEzF,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,OAAO;IAQhD;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,4DAA4D,EACnE,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAA0F;IAoB1G;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,mEAAmE,CAClF,KAAK,EAAE,4DAA4D,EACnE,YAAY,EAAE,MAAM,GACnB,IAAI;IAOP;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAkBhF;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAKxD;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAK5D;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAY5D;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI3D;;OAEG;IACH,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED;;OAEG;IACH,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MAAM;IAIzB;;OAEG;IACI,MAAM,IAAI,qEAAqE;CAGvF"}
|
|
@@ -4,8 +4,8 @@ import { ValueObject } from './ValueObject';
|
|
|
4
4
|
import { EventEditionConfigurationCarbonFootprintSubsegmentReferencesOptions } from '../types/EventEditionConfigurationCarbonFootprintSubsegmentReferencesOptions';
|
|
5
5
|
export declare abstract class EventEditionConfigurationCarbonFootprintSubsegmentReferences extends ValueObject<EventEditionConfigurationCarbonFootprintSubsegmentReferencePrimitives[]> {
|
|
6
6
|
#private;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
protected static readonly DEFAULT_PROPERTY_NAME = "eventEditionStageSubsegmentReferences";
|
|
8
|
+
protected static readonly DEFAULT_OPTIONS: EventEditionConfigurationCarbonFootprintSubsegmentReferencesOptions;
|
|
9
9
|
/**
|
|
10
10
|
* Constructor protegido para que solo clases hijas puedan instanciar.
|
|
11
11
|
* Aplica todas las validaciones de dominio al momento de construcción.
|
|
@@ -15,6 +15,38 @@ export declare abstract class EventEditionConfigurationCarbonFootprintSubsegment
|
|
|
15
15
|
* Validación estática para reutilización en factory methods y constructores.
|
|
16
16
|
*/
|
|
17
17
|
protected static validateSubsegmentReferences(value: EventEditionConfigurationCarbonFootprintSubsegmentReference[], propertyName: string, options: EventEditionConfigurationCarbonFootprintSubsegmentReferencesOptions): void;
|
|
18
|
+
/**
|
|
19
|
+
* Valida que el valor sea un array.
|
|
20
|
+
*/
|
|
21
|
+
protected static guardAgainstInvalidArrayType(value: EventEditionConfigurationCarbonFootprintSubsegmentReference[], propertyName: string): void;
|
|
22
|
+
/**
|
|
23
|
+
* Valida que el array no esté vacío si no se permite.
|
|
24
|
+
*/
|
|
25
|
+
protected static guardAgainstInvalidEmptyArray(value: EventEditionConfigurationCarbonFootprintSubsegmentReference[], options: EventEditionConfigurationCarbonFootprintSubsegmentReferencesOptions, propertyName: string): void;
|
|
26
|
+
/**
|
|
27
|
+
* Valida que no haya códigos de subsegmento duplicados.
|
|
28
|
+
*/
|
|
29
|
+
protected static guardAgainstDuplicateSubsegmentIds(value: EventEditionConfigurationCarbonFootprintSubsegmentReference[], propertyName: string): void;
|
|
30
|
+
/**
|
|
31
|
+
* Valida una referencia de subsegmento individual.
|
|
32
|
+
*/
|
|
33
|
+
protected static guardAgainstInvalidSubsegmentReference(subsegmentReference: EventEditionConfigurationCarbonFootprintSubsegmentReference, index: number, basePropertyName: string): void;
|
|
34
|
+
/**
|
|
35
|
+
* Valida que el objeto de referencia de subsegmento tenga la estructura correcta.
|
|
36
|
+
*/
|
|
37
|
+
protected static guardAgainstInvalidSubsegmentStructure(subsegmentReference: EventEditionConfigurationCarbonFootprintSubsegmentReference, propertyName: string): void;
|
|
38
|
+
/**
|
|
39
|
+
* Valida el ID de subsegmento usando las validaciones de AggregateId.
|
|
40
|
+
*/
|
|
41
|
+
protected static guardAgainstInvalidSubsegmentId(id: string, propertyName: string): void;
|
|
42
|
+
/**
|
|
43
|
+
* Valida el código de subsegmento usando las validaciones de Code.
|
|
44
|
+
*/
|
|
45
|
+
protected static guardAgainstInvalidSubsegmentCode(code: string, propertyName: string): void;
|
|
46
|
+
/**
|
|
47
|
+
* Valida el nombre del subsegmento.
|
|
48
|
+
*/
|
|
49
|
+
protected static guardAgainstInvalidSubsegmentName(name: string, propertyName: string): void;
|
|
18
50
|
/**
|
|
19
51
|
* Referencias de subsegmentos de etapa de edición de evento (inmutable).
|
|
20
52
|
*/
|
|
@@ -142,6 +174,10 @@ export declare abstract class EventEditionConfigurationCarbonFootprintSubsegment
|
|
|
142
174
|
* Compara la igualdad semántica con otra colección de referencias de subsegmento.
|
|
143
175
|
*/
|
|
144
176
|
equals(other: EventEditionConfigurationCarbonFootprintSubsegmentReferences): boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Compara si dos referencias de subsegmento son iguales.
|
|
179
|
+
*/
|
|
180
|
+
protected subsegmentReferencesAreEqual(subsegment1: EventEditionConfigurationCarbonFootprintSubsegmentReference, subsegment2: EventEditionConfigurationCarbonFootprintSubsegmentReference): boolean;
|
|
145
181
|
/**
|
|
146
182
|
* Genera un hash code para usar en colecciones.
|
|
147
183
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventEditionConfigurationCarbonFootprintSubsegmentReferences.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qEAAqE,EAAE,MAAM,gFAAgF,CAAC;AACvK,OAAO,EAAE,2DAA2D,EAAE,MAAM,sEAAsE,CAAC;AACnJ,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,OAAO,EAAE,mEAAmE,EAAE,MAAM,8EAA8E,CAAC;AAEnK,8BAAsB,4DAA6D,SAAQ,WAAW,CAAC,qEAAqE,EAAE,CAAC;;IAC7K,
|
|
1
|
+
{"version":3,"file":"EventEditionConfigurationCarbonFootprintSubsegmentReferences.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qEAAqE,EAAE,MAAM,gFAAgF,CAAC;AACvK,OAAO,EAAE,2DAA2D,EAAE,MAAM,sEAAsE,CAAC;AACnJ,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,OAAO,EAAE,mEAAmE,EAAE,MAAM,8EAA8E,CAAC;AAEnK,8BAAsB,4DAA6D,SAAQ,WAAW,CAAC,qEAAqE,EAAE,CAAC;;IAC7K,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,2CAA2C;IAE1F,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,EAAE,mEAAmE,CAE5G;IAMF;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,2DAA2D,EAAE,EACpE,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAA2F,EAC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ACI,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,2DAA2D,EAAE;IAK/G;;OAEG;IACI,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO;IAIzD;;OAEG;IACI,sBAAsB,IAAI,2DAA2D,EAAE;IAQ9F;;OAEG;IACI,uBAAuB,IAAI,2DAA2D,EAAE;IAQ/F;;OAEG;IACI,uBAAuB,IAAI,2DAA2D,EAAE;IAQ/F;;OAEG;IACI,2BAA2B,IAAI,GAAG,CAAC,MAAM,EAAE,2DAA2D,EAAE,CAAC;IAahH;;OAEG;IACI,aAAa,IAAI;QACtB,gBAAgB,EAAE,MAAM,CAAC;QACzB,cAAc,EAAE,OAAO,CAAC;QACxB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,mBAAmB,EAAE,MAAM,CAAC;QAC5B,oBAAoB,EAAE,MAAM,CAAC;QAC7B,oBAAoB,EAAE,MAAM,CAAC;QAC7B,WAAW,EAAE,OAAO,CAAC;QACrB,YAAY,EAAE,OAAO,CAAC;KACvB;IAsBD;;OAEG;IACI,MAAM,CAAC,KAAK,EAAE,4DAA4D,GAAG,OAAO;IAmB3F;;OAEG;IACH,SAAS,CAAC,4BAA4B,CAAC,WAAW,EAAE,2DAA2D,EAAE,WAAW,EAAE,2DAA2D,GAAG,OAAO;IAQnM;;OAEG;IACI,QAAQ,IAAI,MAAM;IAQzB;;OAEG;IACa,YAAY,IAAI,qEAAqE,EAAE;IAQvG;;OAEG;IACI,QAAQ,IAAI,MAAM;IAKzB;;OAEG;IACI,MAAM,IAAI,qEAAqE,EAAE;IAIxF;;OAEG;WACW,2BAA2B,CACvC,KAAK,EAAE,2DAA2D,EAAE,EACpE,OAAO,GAAE,mEAAkJ,GAC1J,OAAO;CASX"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { EventEditionLifecycleStageConfigurationReferencePrimitives } from '../types/EventEditionLifecycleStageConfigurationReferencePrimitives';
|
|
2
2
|
import { EventEditionLifecycleStageConfigurationReference } from '../types/EventEditionLifecycleStageConfigurationReference';
|
|
3
|
+
import { EventEditionLifecycleStageReference } from '../types/EventEditionLifecycleStageReference';
|
|
4
|
+
import { EventEditionConfigurationCarbonFootprintSubsegmentReference } from '../types/EventEditionConfigurationCarbonFootprintSubsegmentReference';
|
|
3
5
|
import { EmissionSource } from '../enums/EmissionSource';
|
|
4
6
|
import { ValueObject } from './ValueObject';
|
|
5
7
|
import { EventEditionLifecycleStageConfigurationReferencesOptions } from '../types/EventEditionLifecycleStageConfigurationReferencesOptions';
|
|
6
8
|
export declare abstract class EventEditionLifecycleStageConfigurationReferences extends ValueObject<EventEditionLifecycleStageConfigurationReferencePrimitives[]> {
|
|
7
9
|
#private;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
protected static readonly DEFAULT_PROPERTY_NAME = "eventEditionLifecycleStageConfigurationReferences";
|
|
11
|
+
protected static readonly DEFAULT_OPTIONS: EventEditionLifecycleStageConfigurationReferencesOptions;
|
|
10
12
|
/**
|
|
11
13
|
* Constructor protegido para que solo clases hijas puedan instanciar.
|
|
12
14
|
* Aplica todas las validaciones de dominio al momento de construcción.
|
|
@@ -16,6 +18,50 @@ export declare abstract class EventEditionLifecycleStageConfigurationReferences
|
|
|
16
18
|
* Validación estática para reutilización en factory methods y constructores.
|
|
17
19
|
*/
|
|
18
20
|
protected static validateConfigurations(value: EventEditionLifecycleStageConfigurationReference[], propertyName: string, options: EventEditionLifecycleStageConfigurationReferencesOptions): void;
|
|
21
|
+
/**
|
|
22
|
+
* Valida que el valor sea un array.
|
|
23
|
+
*/
|
|
24
|
+
protected static guardAgainstInvalidArrayType(value: EventEditionLifecycleStageConfigurationReference[], propertyName: string): void;
|
|
25
|
+
/**
|
|
26
|
+
* Valida que el array no esté vacío si no se permite.
|
|
27
|
+
*/
|
|
28
|
+
protected static guardAgainstInvalidEmptyArray(value: EventEditionLifecycleStageConfigurationReference[], options: EventEditionLifecycleStageConfigurationReferencesOptions, propertyName: string): void;
|
|
29
|
+
/**
|
|
30
|
+
* Valida que no haya combinaciones duplicadas de etapa y subsegmento.
|
|
31
|
+
*/
|
|
32
|
+
protected static guardAgainstDuplicateConfigurationIds(value: EventEditionLifecycleStageConfigurationReference[], propertyName: string): void;
|
|
33
|
+
/**
|
|
34
|
+
* Valida una configuración individual.
|
|
35
|
+
*/
|
|
36
|
+
protected static guardAgainstInvalidConfiguration(configuration: EventEditionLifecycleStageConfigurationReference, index: number, basePropertyName: string): void;
|
|
37
|
+
/**
|
|
38
|
+
* Valida que el objeto de configuración tenga la estructura correcta.
|
|
39
|
+
*/
|
|
40
|
+
protected static guardAgainstInvalidConfigurationStructure(configuration: EventEditionLifecycleStageConfigurationReference, propertyName: string): void;
|
|
41
|
+
/**
|
|
42
|
+
* Valida el ID de configuración usando las validaciones de AggregateId.
|
|
43
|
+
*/
|
|
44
|
+
protected static guardAgainstInvalidConfigurationId(id: string, propertyName: string): void;
|
|
45
|
+
/**
|
|
46
|
+
* Valida la referencia de etapa de edición de evento.
|
|
47
|
+
*/
|
|
48
|
+
protected static guardAgainstInvalidEventEditionStage(stage: EventEditionLifecycleStageReference, propertyName: string): void;
|
|
49
|
+
/**
|
|
50
|
+
* Valida la referencia de subsegmento de etapa de edición de evento.
|
|
51
|
+
*/
|
|
52
|
+
protected static guardAgainstInvalidEventEditionStageSubsegment(subsegment: EventEditionConfigurationCarbonFootprintSubsegmentReference | null, propertyName: string): void;
|
|
53
|
+
/**
|
|
54
|
+
* Valida el array de fuentes de emisión.
|
|
55
|
+
*/
|
|
56
|
+
protected static guardAgainstInvalidEmissionSources(emissionSources: EmissionSource[], propertyName: string): void;
|
|
57
|
+
/**
|
|
58
|
+
* Valida una referencia de etapa genérica.
|
|
59
|
+
*/
|
|
60
|
+
protected static guardAgainstInvalidStageReference(reference: {
|
|
61
|
+
id: string;
|
|
62
|
+
code: string;
|
|
63
|
+
name: string;
|
|
64
|
+
}, propertyName: string, typeName: string): void;
|
|
19
65
|
/**
|
|
20
66
|
* Configuraciones de etapa del ciclo de vida de edición de evento (inmutable).
|
|
21
67
|
*/
|
|
@@ -130,6 +176,22 @@ export declare abstract class EventEditionLifecycleStageConfigurationReferences
|
|
|
130
176
|
* Compara la igualdad semántica con otra colección de configuraciones.
|
|
131
177
|
*/
|
|
132
178
|
equals(other: EventEditionLifecycleStageConfigurationReferences): boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Compara si dos configuraciones son iguales.
|
|
181
|
+
*/
|
|
182
|
+
protected configurationsAreEqual(config1: EventEditionLifecycleStageConfigurationReference, config2: EventEditionLifecycleStageConfigurationReference): boolean;
|
|
183
|
+
/**
|
|
184
|
+
* Compara referencias de etapa.
|
|
185
|
+
*/
|
|
186
|
+
protected stageReferencesAreEqual(stage1: EventEditionLifecycleStageReference, stage2: EventEditionLifecycleStageReference): boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Compara referencias de subsegmento.
|
|
189
|
+
*/
|
|
190
|
+
protected subsegmentReferencesAreEqual(subseg1: EventEditionConfigurationCarbonFootprintSubsegmentReference | null, subseg2: EventEditionConfigurationCarbonFootprintSubsegmentReference | null): boolean;
|
|
191
|
+
/**
|
|
192
|
+
* Compara arrays de fuentes de emisión.
|
|
193
|
+
*/
|
|
194
|
+
protected emissionSourcesAreEqual(sources1: EmissionSource[], sources2: EmissionSource[]): boolean;
|
|
133
195
|
/**
|
|
134
196
|
* Genera un hash code para usar en colecciones.
|
|
135
197
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventEditionLifecycleStageConfigurationReferences.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageConfigurationReferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0DAA0D,EAAE,MAAM,qEAAqE,CAAC;AACjJ,OAAO,EAAE,gDAAgD,EAAE,MAAM,2DAA2D,CAAC;
|
|
1
|
+
{"version":3,"file":"EventEditionLifecycleStageConfigurationReferences.d.ts","sourceRoot":"","sources":["../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GACpI,OAAO;CASX"}
|
package/build/types/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageReference.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { EventEditionLifecycleStageReference as TEventEditionLifecycleStageRefer
|
|
|
3
3
|
import { ObjectValueObject } from './ObjectValueObject';
|
|
4
4
|
export declare abstract class EventEditionLifecycleStageReference extends ObjectValueObject<EventEditionLifecycleStageReferencePrimitives> {
|
|
5
5
|
#private;
|
|
6
|
-
|
|
6
|
+
protected static readonly DEFAULT_PROPERTY_NAME = "eventEditionStageReference";
|
|
7
7
|
/**
|
|
8
8
|
* Constructor protegido para que solo clases hijas puedan instanciar.
|
|
9
9
|
* Aplica todas las validaciones de dominio al momento de construcción.
|
|
@@ -13,6 +13,19 @@ export declare abstract class EventEditionLifecycleStageReference extends Object
|
|
|
13
13
|
* Validación estática para reutilización en factory methods y constructores.
|
|
14
14
|
*/
|
|
15
15
|
protected static validateEventEditionLifecycleStageReference(value: TEventEditionLifecycleStageReference, propertyName: string): void;
|
|
16
|
+
/**
|
|
17
|
+
* Valida que el objeto tenga la estructura correcta.
|
|
18
|
+
*/
|
|
19
|
+
protected static guardAgainstInvalidType(value: any, propertyName: string): void;
|
|
20
|
+
/**
|
|
21
|
+
* Valida el ID usando las validaciones de AggregateId.
|
|
22
|
+
*/
|
|
23
|
+
protected static guardAgainstInvalidId(id: string): void;
|
|
24
|
+
/**
|
|
25
|
+
* Valida el código de edición del evento usando las validaciones de Code.
|
|
26
|
+
*/
|
|
27
|
+
protected static guardAgainstInvalidCode(code: string): void;
|
|
28
|
+
protected static guardAgainstInvalidName(name: string): void;
|
|
16
29
|
get id(): string;
|
|
17
30
|
get code(): string;
|
|
18
31
|
get name(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventEditionLifecycleStageReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6CAA6C,EAAE,MAAM,wDAAwD,CAAC;AACvH,OAAO,EAAE,mCAAmC,IAAI,oCAAoC,EAAE,MAAM,8CAA8C,CAAC;AAC3I,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAKxD,8BAAsB,mCAAoC,SAAQ,iBAAiB,CAAC,6CAA6C,CAAC;;IAChI,
|
|
1
|
+
{"version":3,"file":"EventEditionLifecycleStageReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageReference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6CAA6C,EAAE,MAAM,wDAAwD,CAAC;AACvH,OAAO,EAAE,mCAAmC,IAAI,oCAAoC,EAAE,MAAM,8CAA8C,CAAC;AAC3I,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAKxD,8BAAsB,mCAAoC,SAAQ,iBAAiB,CAAC,6CAA6C,CAAC;;IAChI,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,gCAAgC;IAQ/E;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,oCAAoC,EAC3C,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAAkE;IAoBlF;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,2CAA2C,CAC1D,KAAK,EAAE,oCAAoC,EAC3C,YAAY,EAAE,MAAM,GACnB,IAAI;IAOP;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAkBhF;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAKxD;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAK5D,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAI5D,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED,IAAW,IAAI,IAAI,MAAM,CAExB;IAED,IAAW,IAAI,IAAI,MAAM,CAExB;IAEM,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIrC;;OAEG;IACI,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI9B,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIjC;;OAEG;IACI,cAAc,IAAI,MAAM;IAIxB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAIzC,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAS3C;;;OAGG;IACI,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAI9C;;;OAGG;IACI,cAAc,IAAI,OAAO;IAMhC;;;OAGG;IACI,YAAY,IAAI,OAAO;IAM9B;;;OAGG;IACI,aAAa,IAAI,OAAO;IAM/B;;;OAGG;IACI,mBAAmB,IAAI,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU;IAmBpE;;;OAGG;IACI,YAAY,CAAC,KAAK,EAAE,mCAAmC,GAAG,OAAO;IAQxE;;;OAGG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACa,YAAY,IAAI,6CAA6C;IAQ7E;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACI,MAAM,IAAI,6CAA6C;CAG/D"}
|
|
@@ -3,7 +3,7 @@ import { EventEditionReference as TEventEditionReference } from '../types/EventE
|
|
|
3
3
|
import { ObjectValueObject } from './ObjectValueObject';
|
|
4
4
|
export declare abstract class EventEditionReference extends ObjectValueObject<EventEditionReferencePrimitives> {
|
|
5
5
|
#private;
|
|
6
|
-
|
|
6
|
+
protected static readonly DEFAULT_PROPERTY_NAME = "eventEditionReference";
|
|
7
7
|
/**
|
|
8
8
|
* Constructor protegido para que solo clases hijas puedan instanciar.
|
|
9
9
|
* Aplica todas las validaciones de dominio al momento de construcción.
|
|
@@ -13,6 +13,22 @@ export declare abstract class EventEditionReference extends ObjectValueObject<Ev
|
|
|
13
13
|
* Validación estática para reutilización en factory methods y constructores.
|
|
14
14
|
*/
|
|
15
15
|
protected static validateEventEditionReference(value: TEventEditionReference, propertyName: string): void;
|
|
16
|
+
/**
|
|
17
|
+
* Valida que el objeto tenga la estructura correcta.
|
|
18
|
+
*/
|
|
19
|
+
protected static guardAgainstInvalidType(value: any, propertyName: string): void;
|
|
20
|
+
/**
|
|
21
|
+
* Valida el ID usando las validaciones de AggregateId.
|
|
22
|
+
*/
|
|
23
|
+
protected static guardAgainstInvalidId(id: string): void;
|
|
24
|
+
/**
|
|
25
|
+
* Valida el código de edición del evento usando las validaciones de Code.
|
|
26
|
+
*/
|
|
27
|
+
protected static guardAgainstInvalidCode(code: string): void;
|
|
28
|
+
/**
|
|
29
|
+
* Valida el nombre de la edición del evento.
|
|
30
|
+
*/
|
|
31
|
+
protected static guardAgainstInvalidName(name: string): void;
|
|
16
32
|
/**
|
|
17
33
|
* ID único de la edición del evento (UUID).
|
|
18
34
|
*/
|