@carbonbox/domain 0.48.1 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/enums/CarbonFootprintConfigurationActivationRequirement.js +61 -0
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/enums/CarbonFootprintConfigurationCompletionRequirement.js +28 -0
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/policies/CarbonFootprintConfigurationActivationPolicy.js +349 -0
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/policies/CarbonFootprintConfigurationCompletionPolicy.js +151 -0
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/types/CarbonFootprintConfigurationActivationFacts.js +2 -0
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/types/CarbonFootprintConfigurationCompletionFacts.js +2 -0
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/types/CarbonFootprintConfigurationRequirementContext.js +2 -0
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/types/CorporateCarbonFootprintConfigurationActivationFacts.js +2 -0
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/types/UnmetCarbonFootprintConfigurationActivationRequirement.js +2 -0
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/types/UnmetCarbonFootprintConfigurationCompletionRequirement.js +2 -0
- package/build/carbonbox/shared/domain/enums/ErrorCode.js +5 -1
- package/build/carbonbox/shared/domain/journeys/enums/CarbonClientJourneyBlockingReason.js +104 -0
- package/build/carbonbox/shared/domain/journeys/enums/CarbonClientJourneyStep.js +52 -0
- package/build/carbonbox/shared/domain/journeys/enums/CarbonClientJourneyStepStatus.js +30 -0
- package/build/carbonbox/shared/domain/journeys/enums/PendingActionType.js +59 -0
- package/build/carbonbox/stakeholders/user-preferences/domain/entity/IUserPreference.js +2 -0
- package/build/carbonbox/stakeholders/user-preferences/domain/entity/UserPreference.js +122 -0
- package/build/carbonbox/stakeholders/user-preferences/domain/exceptions/DuplicateUserPreferenceCodeError.js +31 -0
- package/build/carbonbox/stakeholders/user-preferences/domain/exceptions/InvalidUserPreferenceCodeError.js +33 -0
- package/build/carbonbox/stakeholders/user-preferences/domain/exceptions/UserPreferenceCodeLimitExceededError.js +31 -0
- package/build/carbonbox/stakeholders/user-preferences/domain/repository/IUserPreferenceRepository.js +2 -0
- package/build/carbonbox/stakeholders/user-preferences/domain/types/UserPreferencePrimitives.js +2 -0
- package/build/carbonbox/stakeholders/user-preferences/domain/types/UserPreferenceProps.js +2 -0
- package/build/carbonbox/stakeholders/user-preferences/domain/value-objects/UserPreferenceCodes.js +93 -0
- package/build/carbonbox/stakeholders/user-preferences/domain/value-objects/UserPreferenceDismissedChecklistCodes.js +29 -0
- package/build/carbonbox/stakeholders/user-preferences/domain/value-objects/UserPreferenceSeenOnboardingTourCodes.js +29 -0
- package/build/carbonbox/stakeholders/user-preferences/domain/value-objects/UserPreferenceUserId.js +47 -0
- package/build/main/index.js +53 -16
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/enums/CarbonFootprintConfigurationActivationRequirement.d.ts +48 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/enums/CarbonFootprintConfigurationActivationRequirement.d.ts.map +1 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/enums/CarbonFootprintConfigurationCompletionRequirement.d.ts +22 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/enums/CarbonFootprintConfigurationCompletionRequirement.d.ts.map +1 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/policies/CarbonFootprintConfigurationActivationPolicy.d.ts +121 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/policies/CarbonFootprintConfigurationActivationPolicy.d.ts.map +1 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/policies/CarbonFootprintConfigurationCompletionPolicy.d.ts +71 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/policies/CarbonFootprintConfigurationCompletionPolicy.d.ts.map +1 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/types/CarbonFootprintConfigurationActivationFacts.d.ts +16 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/types/CarbonFootprintConfigurationActivationFacts.d.ts.map +1 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/types/CarbonFootprintConfigurationCompletionFacts.d.ts +29 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/types/CarbonFootprintConfigurationCompletionFacts.d.ts.map +1 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/types/CarbonFootprintConfigurationRequirementContext.d.ts +34 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/types/CarbonFootprintConfigurationRequirementContext.d.ts.map +1 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/types/CorporateCarbonFootprintConfigurationActivationFacts.d.ts +22 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/types/CorporateCarbonFootprintConfigurationActivationFacts.d.ts.map +1 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/types/UnmetCarbonFootprintConfigurationActivationRequirement.d.ts +11 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/types/UnmetCarbonFootprintConfigurationActivationRequirement.d.ts.map +1 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/types/UnmetCarbonFootprintConfigurationCompletionRequirement.d.ts +11 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/types/UnmetCarbonFootprintConfigurationCompletionRequirement.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/enums/ErrorCode.d.ts +4 -1
- package/build/types/carbonbox/shared/domain/enums/ErrorCode.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/journeys/enums/CarbonClientJourneyBlockingReason.d.ts +93 -0
- package/build/types/carbonbox/shared/domain/journeys/enums/CarbonClientJourneyBlockingReason.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/journeys/enums/CarbonClientJourneyStep.d.ts +49 -0
- package/build/types/carbonbox/shared/domain/journeys/enums/CarbonClientJourneyStep.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/journeys/enums/CarbonClientJourneyStepStatus.d.ts +27 -0
- package/build/types/carbonbox/shared/domain/journeys/enums/CarbonClientJourneyStepStatus.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/journeys/enums/PendingActionType.d.ts +56 -0
- package/build/types/carbonbox/shared/domain/journeys/enums/PendingActionType.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/entity/IUserPreference.d.ts +10 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/entity/IUserPreference.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/entity/UserPreference.d.ts +45 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/entity/UserPreference.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/exceptions/DuplicateUserPreferenceCodeError.d.ts +7 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/exceptions/DuplicateUserPreferenceCodeError.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/exceptions/InvalidUserPreferenceCodeError.d.ts +7 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/exceptions/InvalidUserPreferenceCodeError.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/exceptions/UserPreferenceCodeLimitExceededError.d.ts +7 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/exceptions/UserPreferenceCodeLimitExceededError.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/repository/IUserPreferenceRepository.d.ts +21 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/repository/IUserPreferenceRepository.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/types/UserPreferencePrimitives.d.ts +22 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/types/UserPreferencePrimitives.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/types/UserPreferenceProps.d.ts +18 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/types/UserPreferenceProps.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/value-objects/UserPreferenceCodes.d.ts +53 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/value-objects/UserPreferenceCodes.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/value-objects/UserPreferenceDismissedChecklistCodes.d.ts +16 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/value-objects/UserPreferenceDismissedChecklistCodes.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/value-objects/UserPreferenceSeenOnboardingTourCodes.d.ts +16 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/value-objects/UserPreferenceSeenOnboardingTourCodes.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/value-objects/UserPreferenceUserId.d.ts +18 -0
- package/build/types/carbonbox/stakeholders/user-preferences/domain/value-objects/UserPreferenceUserId.d.ts.map +1 -0
- package/build/types/main/index.d.ts +26 -0
- package/build/types/main/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserPreferenceSeenOnboardingTourCodes = void 0;
|
|
4
|
+
const UserPreferenceCodes_1 = require("./UserPreferenceCodes");
|
|
5
|
+
/**
|
|
6
|
+
* Codes of the onboarding tours the user already saw (the user interface does not show them again).
|
|
7
|
+
*/
|
|
8
|
+
class UserPreferenceSeenOnboardingTourCodes extends UserPreferenceCodes_1.UserPreferenceCodes {
|
|
9
|
+
constructor(values, skipDomainValidation) {
|
|
10
|
+
super(values, skipDomainValidation, UserPreferenceSeenOnboardingTourCodes.PROPERTY_NAME);
|
|
11
|
+
}
|
|
12
|
+
static create(values) {
|
|
13
|
+
UserPreferenceCodes_1.UserPreferenceCodes.validateUserPreferenceCodes(values, UserPreferenceSeenOnboardingTourCodes.PROPERTY_NAME);
|
|
14
|
+
return new UserPreferenceSeenOnboardingTourCodes(values, false);
|
|
15
|
+
}
|
|
16
|
+
static fromPrimitives(primitives) {
|
|
17
|
+
const values = primitives.map((primitive) => primitive);
|
|
18
|
+
return new UserPreferenceSeenOnboardingTourCodes(values, true);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns a new list with the union of the current codes and the added ones (idempotent).
|
|
22
|
+
* Throws UserPreferenceCodeLimitExceededError when the union exceeds the maximum.
|
|
23
|
+
*/
|
|
24
|
+
withAddedCodes(addedCodes) {
|
|
25
|
+
return UserPreferenceSeenOnboardingTourCodes.create(UserPreferenceCodes_1.UserPreferenceCodes.mergeCodes(this.toPrimitives(), addedCodes.toPrimitives()));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.UserPreferenceSeenOnboardingTourCodes = UserPreferenceSeenOnboardingTourCodes;
|
|
29
|
+
UserPreferenceSeenOnboardingTourCodes.PROPERTY_NAME = 'seenOnboardingTourCodes';
|
package/build/carbonbox/stakeholders/user-preferences/domain/value-objects/UserPreferenceUserId.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserPreferenceUserId = void 0;
|
|
4
|
+
const UserId_1 = require("../../../../shared/domain/value-objects/UserId");
|
|
5
|
+
const SemanticUuidPrefix_1 = require("../../../../shared/domain/enums/SemanticUuidPrefix");
|
|
6
|
+
const InvalidUserPrefixError_1 = require("../../../../shared/domain/exceptions/InvalidUserPrefixError");
|
|
7
|
+
/**
|
|
8
|
+
* Identity of a UserPreference aggregate: the id of the stakeholder user who owns the preferences
|
|
9
|
+
* (one preference record per user).
|
|
10
|
+
*/
|
|
11
|
+
class UserPreferenceUserId extends UserId_1.UserId {
|
|
12
|
+
constructor(value, skipDomainValidation) {
|
|
13
|
+
super(value, skipDomainValidation);
|
|
14
|
+
}
|
|
15
|
+
static create(value) {
|
|
16
|
+
UserId_1.UserId.guardAgainstEmptyValue(value, UserPreferenceUserId.PROPERTY_NAME);
|
|
17
|
+
UserId_1.UserId.guardAgainstInvalidType(value, UserPreferenceUserId.PROPERTY_NAME);
|
|
18
|
+
UserId_1.UserId.guardAgainstInvalidId(value, UserPreferenceUserId.PROPERTY_NAME);
|
|
19
|
+
// Validate that the prefix belongs to a stakeholder user
|
|
20
|
+
UserPreferenceUserId.guardAgainstInvalidStakeholderUserPrefix(value);
|
|
21
|
+
return new UserPreferenceUserId(value, false);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Validates that the id has a stakeholder user prefix.
|
|
25
|
+
* The id format was already validated, so the prefix can be extracted safely.
|
|
26
|
+
*/
|
|
27
|
+
static guardAgainstInvalidStakeholderUserPrefix(value) {
|
|
28
|
+
const prefix = new UserPreferenceUserId(value, true).extractPrefix();
|
|
29
|
+
if (UserPreferenceUserId.VALID_PREFIXES.includes(prefix) === false) {
|
|
30
|
+
throw InvalidUserPrefixError_1.InvalidUserPrefixError.create(value, prefix, UserPreferenceUserId.VALID_PREFIXES);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
static fromPrimitives(primitive) {
|
|
34
|
+
const value = primitive;
|
|
35
|
+
return new UserPreferenceUserId(value, true);
|
|
36
|
+
}
|
|
37
|
+
toPrimitives() {
|
|
38
|
+
return this.value;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.UserPreferenceUserId = UserPreferenceUserId;
|
|
42
|
+
UserPreferenceUserId.VALID_PREFIXES = [
|
|
43
|
+
SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_CLIENT,
|
|
44
|
+
SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_COORDINATOR,
|
|
45
|
+
SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_HOST,
|
|
46
|
+
SemanticUuidPrefix_1.SemanticUuidPrefix.USR_STH_MANAGER,
|
|
47
|
+
];
|
package/build/main/index.js
CHANGED
|
@@ -7,22 +7,23 @@ exports.CollectionFieldNumericValidation = exports.CollectionFieldOptions = expo
|
|
|
7
7
|
exports.UnknownFootprintTypeError = exports.InvalidUncertaintySourceError = exports.InvalidSubScopeError = exports.InvalidSubmissionStatusError = exports.InvalidReportingStandardError = exports.InvalidFootprintTypeError = exports.InvalidEmissionScopeTypeError = exports.InvalidActivityDataSubmissionFacilityError = exports.InvalidEmissionScopeError = exports.InvalidActivityDataSubmissionStakeholderRoleError = exports.ConditionalActionEnum = exports.DataTypeEnum = exports.CollectionFieldEnum = exports.UncertaintySourceEnum = exports.SubmissionStatusEnum = exports.StakeholderAdaptationHelpText = exports.StakeholderAdaptationLabel = exports.StakeholderAdaptationPlaceholder = exports.StakeholderAdaptationCreatedByStakeholder = exports.StakeholderAdaptationFootprintType = exports.StakeholderAdaptationStakeholderType = exports.StakeholderAdaptationFieldCode = exports.StakeholderAdaptationCode = exports.StakeholderAdaptationId = exports.ContextualLabelDescription = exports.ContextualLabelName = exports.ContextualLabelPlaceholderMappings = exports.ContextualLabelLabelMappings = exports.ContextualLabelCreatedByStakeholder = exports.ContextualLabelDependsOnFieldCode = exports.ContextualLabelFieldCode = exports.ContextualLabelCode = exports.ContextualLabelId = exports.ConditionalFieldRuleCreatedByStakeholder = exports.ConditionalFieldRuleAffectedFieldCodes = exports.ConditionalFieldRuleTriggerValue = exports.ConditionalFieldRuleDescription = exports.ConditionalFieldRuleName = exports.ConditionalFieldRuleAction = exports.ConditionalFieldRuleTriggerFieldCode = exports.ConditionalFieldRuleCode = exports.ConditionalFieldRuleId = exports.DynamicFormConditionalRuleCodes = exports.DynamicFormBaseFieldCodes = exports.DynamicFormDescription = exports.DynamicFormCreatedByStakeholder = exports.DynamicFormEmissionSource = exports.DynamicFormName = exports.DynamicFormCode = exports.DynamicFormId = void 0;
|
|
8
8
|
exports.ProductConfigurationCarbonFootprintSubsegmentCode = exports.ProductConfigurationCarbonFootprintSubsegmentId = exports.ProductConfigurationCarbonFootprintSegmentName = exports.ProductConfigurationCarbonFootprintSegmentCode = exports.ProductConfigurationCarbonFootprintSegmentId = exports.CorporateConfigurationCarbonFootprintSegmentName = exports.CorporateConfigurationCarbonFootprintSegmentCode = exports.CorporateConfigurationCarbonFootprintSegmentId = exports.CorporateCarbonFootprintSegmentConfigurationEmissionSourceConfigurations = exports.CorporateCarbonFootprintSegmentConfigurationSubsegment = exports.CorporateCarbonFootprintSegmentConfigurationSegment = exports.CorporateCarbonFootprintSegmentConfigurationId = exports.CorporateCarbonFootprintConfigurationSegmentConfigurations = exports.CorporateCarbonFootprintConfigurationBaseYear = exports.CorporateCarbonFootprintConfigurationExecutionPeriod = exports.CorporateCarbonFootprintConfigurationIntensityIndicatorConfigurations = exports.CorporateCarbonFootprintConfigurationCollectionPeriod = exports.CorporateCarbonFootprintConfigurationCarbonFootprintObjective = exports.CorporateCarbonFootprintConfigurationFacilities = exports.CorporateCarbonFootprintConfigurationReportingStandard = exports.CorporateCarbonFootprintConfigurationCreatedByStakeholder = exports.CorporateCarbonFootprintConfigurationOwnedByCarbonClient = exports.CorporateCarbonFootprintConfigurationFootprintType = exports.CorporateCarbonFootprintConfigurationStatus = exports.CorporateCarbonFootprintConfigurationName = exports.CorporateCarbonFootprintConfigurationId = exports.CarbonFootprintSubsegment = exports.CarbonFootprintSegment = exports.CarbonFootprintIntensityIndicator = exports.CarbonFootprintConfiguration = exports.ProductConfigurationSystemBoundary = exports.ProductConfigurationCarbonFootprintSubsegment = exports.ProductConfigurationCarbonFootprintSegment = exports.ProductCarbonFootprintSegmentConfiguration = exports.ProductCarbonFootprintConfiguration = exports.EventEditionConfigurationCarbonFootprintSubsegment = exports.EventEditionLifecycleStage = exports.EventEditionLifecycleStageConfiguration = exports.EventCarbonFootprintConfiguration = exports.CorporateConfigurationCarbonFootprintSubsegment = exports.CorporateConfigurationCarbonFootprintSegment = exports.CorporateCarbonFootprintSegmentConfiguration = exports.CorporateCarbonFootprintConfiguration = exports.UnknownConditionalActionCategoryError = exports.TriggerValueStringOperationError = exports.TriggerValueConversionError = exports.TriggerValueComparisonError = exports.InvalidTriggerValueError = exports.InvalidConditionalActionError = exports.UnknownReportingStandardError = void 0;
|
|
9
9
|
exports.CarbonFootprintSubsegmentName = exports.CarbonFootprintSubsegmentCode = exports.CarbonFootprintSubsegmentId = exports.CarbonFootprintSegmentName = exports.CarbonFootprintSegmentCode = exports.CarbonFootprintSegmentId = exports.CarbonFootprintConfigurationReportingStandard = exports.CarbonFootprintConfigurationCollectionPeriod = exports.CarbonFootprintConfigurationFootprintType = exports.CarbonFootprintConfigurationStatus = exports.CarbonFootprintConfigurationName = exports.CarbonFootprintConfigurationId = exports.ProductCarbonFootprintConfigurationProduct = exports.ProductCarbonFootprintConfigurationSystemBoundary = exports.ProductCarbonFootprintConfigurationReportingStandard = exports.ProductCarbonFootprintConfigurationCreatedByStakeholder = exports.ProductCarbonFootprintConfigurationOwnedByCarbonClient = exports.ProductCarbonFootprintConfigurationFootprintType = exports.ProductCarbonFootprintConfigurationStatus = exports.ProductCarbonFootprintConfigurationName = exports.ProductCarbonFootprintConfigurationId = exports.EventEditionConfigurationCarbonFootprintSubsegmentDescription = exports.EventEditionConfigurationCarbonFootprintSubsegmentName = exports.EventEditionConfigurationCarbonFootprintSubsegmentCode = exports.EventEditionConfigurationCarbonFootprintSubsegmentId = exports.EventEditionLifecycleStageConfigurationSubsegment = exports.EventEditionLifecycleStageConfigurationStage = exports.EventEditionLifecycleStageConfigurationId = exports.EventEditionLifecycleStageIncludedSubsegments = exports.EventEditionLifecycleStageExecutionPeriod = exports.EventEditionLifecycleStageDescription = exports.EventEditionLifecycleStageIsActive = exports.EventEditionLifecycleStageName = exports.EventEditionLifecycleStageCode = exports.EventEditionLifecycleStageId = exports.EventCarbonFootprintConfigurationEventEdition = exports.EventCarbonFootprintConfigurationReportingStandard = exports.EventCarbonFootprintConfigurationCreatedByStakeholder = exports.EventCarbonFootprintConfigurationOwnedByCarbonClient = exports.EventCarbonFootprintConfigurationFootprintType = exports.EventCarbonFootprintConfigurationStatus = exports.EventCarbonFootprintConfigurationName = exports.EventCarbonFootprintConfigurationId = exports.CorporateConfigurationCarbonFootprintSubsegmentDescription = exports.CorporateConfigurationCarbonFootprintSubsegmentName = exports.CorporateConfigurationCarbonFootprintSubsegmentCode = exports.CorporateConfigurationCarbonFootprintSubsegmentId = exports.CorporateConfigurationCarbonFootprintSegmentIncludedSubsegments = exports.CorporateConfigurationCarbonFootprintSegmentDescription = exports.ProductConfigurationCarbonFootprintSubsegmentName = void 0;
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
10
|
+
exports.ProductName = exports.ProductCode = exports.ProductId = exports.FacilityIsPrimaryFacility = exports.FacilityOperationalScope = exports.FacilityAddress = exports.FacilityCommercialBranchName = exports.FacilityId = exports.EventEditionStaffCount = exports.EventEditionExpectedAttendees = exports.EventEditionReferenceVenue = exports.EventEditionExecutionPeriod = exports.EventEditionParentEvent = exports.EventEditionName = exports.EventEditionCode = exports.EventEditionId = exports.EventEditions = exports.EventDescription = exports.EventName = exports.EventCode = exports.EventId = exports.Product = exports.Facility = exports.EventEdition = exports.Event = exports.CarbonFootprintConfigurationsInvalidReportingStandardError = exports.InvalidConfigurationStatusError = exports.InvalidCollectionPeriodError = exports.InvalidCarbonFootprintTypeError = exports.CarbonFootprintConfigurationCompletionPolicy = exports.CarbonFootprintConfigurationActivationPolicy = exports.CarbonFootprintConfigurationCompletionRequirementEnum = exports.CarbonFootprintConfigurationActivationRequirementEnum = exports.IntensityIndicatorEnum = exports.ConfigurationStatusEnum = exports.CollectionPeriodEnum = exports.CarbonFootprintEnum = exports.EventLifecycleStageEnum = exports.ProductMeasurementUnitEnum = exports.MeasurementUnitTypeEnum = exports.CarbonFootprintIntensityIndicatorIsCustom = exports.CarbonFootprintIntensityIndicatorCalculationMethod = exports.CarbonFootprintIntensityIndicatorBenchmarkValue = exports.CarbonFootprintIntensityIndicatorTargetValue = exports.CarbonFootprintIntensityIndicatorMeasurementUnit = exports.CarbonFootprintIntensityIndicatorConfigurationScope = exports.CarbonFootprintIntensityIndicatorType = exports.CarbonFootprintIntensityIndicatorName = exports.CarbonFootprintIntensityIndicatorCode = exports.CarbonFootprintIntensityIndicatorId = void 0;
|
|
11
|
+
exports.GlobalWarmingPotentialId = exports.InvalidMethodologicalTierError = exports.InvalidIpccCodeError = exports.EmissionFactorMethodologicalTier = exports.EmissionFactorIpccSubcategory = exports.EmissionFactorIpccCode = exports.EmissionFactorInformationSource = exports.EmissionFactorGreenhouseGasValues = exports.EmissionFactorDescription = exports.EmissionFactorName = exports.EmissionFactorCode = exports.EmissionFactorId = exports.InvalidCalculationVariableResolutionStrategyError = exports.InvalidCalculationVariableActivityDataConditionsForStrategyError = exports.CalculationVariableOptions = exports.CalculationVariableActivityDataConditions = exports.CalculationVariableDefaultValue = exports.CalculationVariableDescription = exports.CalculationVariableResolutionStrategy = exports.CalculationVariableResolutionStrategyEnum = exports.CalculationVariableDataType = exports.CalculationVariableSymbol = exports.CalculationVariableName = exports.CalculationVariableCode = exports.CalculationVariableId = exports.EmissionCalculationFormulaActivityVariableSymbol = exports.EmissionCalculationFormulaGlobalWarmingPotential = exports.EmissionCalculationFormulaEmissionFactor = exports.EmissionCalculationFormulaApplicableGreenhouseGases = exports.EmissionCalculationFormulaInformationSource = exports.EmissionCalculationFormulaSearchTags = exports.EmissionCalculationFormulaCreatedByStakeholder = exports.EmissionCalculationFormulaEmissionSource = exports.EmissionCalculationFormulaSelectionCriteria = exports.EmissionCalculationFormulaVariables = exports.EmissionCalculationFormulaResultUnit = exports.EmissionCalculationFormulaStatus = exports.EmissionCalculationFormulaExpression = exports.EmissionCalculationFormulaDescription = exports.EmissionCalculationFormulaName = exports.EmissionCalculationFormulaCode = exports.EmissionCalculationFormulaId = exports.GlobalWarmingPotential = exports.EmissionFactor = exports.CalculationVariable = exports.EmissionCalculationFormula = exports.InvalidOperationalScopeError = exports.OperationalScopeTypeEnum = exports.ProductProductionLocation = exports.ProductDescription = void 0;
|
|
12
|
+
exports.CalculationWorkflowCode = exports.CalculationWorkflowId = exports.CalculationProcessParentWorkflow = exports.CalculationProcessCalculationsGenerated = exports.CalculationProcessMaxRetries = exports.CalculationProcessProcessNotes = exports.CalculationProcessSubmissionsToProcess = exports.CalculationProcessDependencies = exports.CalculationProcessEstimatedDuration = exports.CalculationProcessScheduledAt = exports.CalculationProcessExecutedByStakeholder = exports.CalculationProcessCarbonClient = exports.CalculationProcessFootprintConfiguration = exports.CalculationProcessCompletedAt = exports.CalculationProcessStartedAt = exports.CalculationProcessProgressPercentage = exports.CalculationProcessPriority = exports.CalculationProcessStatus = exports.CalculationProcessId = exports.CalculationJobAggregationsGenerated = exports.CalculationJobCalculationsGenerated = exports.CalculationJobRecordsProcessed = exports.CalculationJobMaxRetries = exports.CalculationJobDependsOnJobs = exports.CalculationJobInputFormulas = exports.CalculationJobInputSubmissions = 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.InvalidEmissionCalculationFormulaActivityVariableSymbolError = exports.InvalidGreenhouseGasTypeError = exports.DuplicateGreenhouseGasError = exports.MethodologicalTierEnum = exports.ResultUnitEnum = exports.FormulaStatusEnum = exports.GlobalWarmingPotentialInformationSource = exports.GlobalWarmingPotentialGreenhouseGasPotentials = exports.GlobalWarmingPotentialValidityPeriod = exports.GlobalWarmingPotentialTimeHorizonYears = exports.GlobalWarmingPotentialProtocolVersion = exports.GlobalWarmingPotentialReferenceName = void 0;
|
|
13
|
+
exports.GHGEmissionResultEmissionFactor = exports.GHGEmissionResultActivityValue = exports.GreenhouseGasSpecies = exports.GHGEmissionResultGreenhouseGas = exports.GHGEmissionResultEmissionCalculation = exports.GHGEmissionResultId = exports.EmissionAggregationGhgBreakdown = exports.EmissionAggregationUncertaintyPercentage = exports.EmissionAggregationTotalCO2Equivalent = exports.EmissionAggregationEmissionSource = exports.EmissionAggregationEmissionCalculation = exports.EmissionAggregationId = exports.EmissionCalculationDimensions = exports.EmissionCalculationFootprintConfiguration = exports.EmissionCalculationEmissionSource = exports.EmissionCalculationCalculatedByStakeholder = exports.EmissionCalculationCalculatedAt = exports.EmissionCalculationCarbonClient = exports.EmissionCalculationEmissionCalculationFormula = exports.EmissionCalculationActivityDataSubmission = exports.EmissionCalculationStatus = exports.EmissionCalculationId = exports.GHGEmissionResult = exports.EmissionAggregation = exports.EmissionCalculation = exports.WorkflowTriggerEnum = exports.WorkflowStatusEnum = exports.ProcessStatusEnum = exports.ProcessPriorityEnum = exports.JobTypeEnum = exports.JobStatusEnum = exports.CalculationWorkflowWorkflowNotes = exports.CalculationWorkflowNotificationRecipients = exports.CalculationWorkflowEmailNotifications = exports.CalculationWorkflowAllowedExecutors = exports.CalculationWorkflowRetryFailedJobs = exports.CalculationWorkflowTimeoutMinutes = exports.CalculationWorkflowMaxConcurrentProcesses = exports.CalculationWorkflowConditionalSteps = exports.CalculationWorkflowParallelJobs = exports.CalculationWorkflowJobSequence = exports.CalculationWorkflowTriggerSchedule = exports.CalculationWorkflowCreatedByStakeholder = exports.CalculationWorkflowCarbonClient = exports.CalculationWorkflowFootprintType = exports.CalculationWorkflowIsAutomatic = exports.CalculationWorkflowTriggerType = exports.CalculationWorkflowStatus = exports.CalculationWorkflowDescription = exports.CalculationWorkflowName = void 0;
|
|
14
|
+
exports.PurchaseOrderCode = exports.PurchaseOrderId = exports.PurchaseContractCarbonClientSignedBy = exports.PurchaseContractCarbonClientSignedAt = exports.PurchaseContractCarbonBoxSignedBy = exports.PurchaseContractCarbonBoxSignedAt = exports.PurchaseContractInternalNotes = exports.PurchaseContractAttachments = exports.PurchaseContractSpecialTerms = exports.PurchaseContractTerminationClause = exports.PurchaseContractDataProtectionClause = exports.PurchaseContractConfidentialityClause = exports.PurchaseContractJurisdiction = exports.PurchaseContractGoverningLaw = exports.PurchaseContractPaymentSchedule = exports.PurchaseContractCustomPaymentTerms = exports.PurchaseContractPaymentTerms = exports.PurchaseContractCurrency = exports.PurchaseContractContractServices = exports.PurchaseContractRenewalTerms = exports.PurchaseContractIsRenewable = exports.PurchaseContractDuration = exports.PurchaseContractCarbonClientContactPhone = exports.PurchaseContractCarbonClientContactEmail = exports.PurchaseContractCarbonClientContactName = exports.PurchaseContractCarbonClientAddress = exports.PurchaseContractCarbonClientTaxIdentification = exports.PurchaseContractCarbonClientLegalName = exports.PurchaseContractCarbonClientCompanyName = 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.UncertaintyLevelEnum = exports.CalculationStatusEnum = exports.GHGEmissionResultUnit = exports.GHGEmissionResultCo2Equivalent = exports.GHGEmissionResultRawEmission = exports.GHGEmissionResultGlobalWarmingPotential = void 0;
|
|
15
|
+
exports.ServicePricingPricingStatus = exports.ServicePricingPricingModel = exports.ServicePricingService = exports.ServicePricingId = exports.ServiceCatalogIncludesESGIndicators = exports.ServiceCatalogAdditionalUserRoles = exports.ServiceCatalogReportTypes = exports.ServiceCatalogExpertDedicationLevel = exports.ServiceCatalogFixedPriceAmount = exports.ServiceCatalogAllowsSectoralComparison = exports.ServiceCatalogIsAvailableForEvent = exports.ServiceCatalogIsAvailableForCorporate = exports.ServiceCatalogIsAvailableForProduct = exports.ServiceCatalogAllowsDocumentReading = exports.ServiceCatalogIncludesCarbonBoxAcademy = exports.ServiceCatalogMaxUsers = exports.ServiceCatalogHasFixedPrice = exports.ServiceCatalogBasePricePercentage = exports.ServiceCatalogHasBasePrice = exports.ServiceCatalogIsRequiredService = exports.ServiceCatalogCreatedByStakeholder = exports.ServiceCatalogDependsOnServiceCode = exports.ServiceCatalogStatus = exports.ServiceCatalogType = exports.ServiceCatalogCategory = exports.ServiceCatalogDescription = exports.ServiceCatalogName = exports.ServiceCatalogCode = exports.ServiceCatalogId = exports.PurchaseOrderActualDeliveryDate = exports.PurchaseOrderRejectionReason = exports.PurchaseOrderApprovedByStakeholder = exports.PurchaseOrderClientNotes = exports.PurchaseOrderInternalNotes = exports.PurchaseOrderExpectedDeliveryDate = exports.PurchaseOrderCurrency = exports.PurchaseOrderItems = exports.PurchaseOrderCarbonClientContactPhone = exports.PurchaseOrderCarbonClientContactEmail = exports.PurchaseOrderCarbonClientContactName = exports.PurchaseOrderCarbonClientLegalName = exports.PurchaseOrderCarbonClientCompanyName = exports.PurchaseOrderCreatedByStakeholder = exports.PurchaseOrderTotalAmount = exports.PurchaseOrderSubtotalAmount = exports.PurchaseOrderPaymentStatus = exports.PurchaseOrderPaymentMethod = exports.PurchaseOrderDate = exports.PurchaseOrderCarbonClientId = exports.PurchaseOrderStatus = void 0;
|
|
16
|
+
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.ServiceCatalogReportTypeEnum = 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.ServicePricingInternalNotes = exports.ServicePricingPricingNotes = exports.ServicePricingValidToDate = exports.ServicePricingValidFromDate = exports.ServicePricingPromotionalDiscountPercentage = exports.ServicePricingPromotionalEndDate = exports.ServicePricingPromotionalStartDate = exports.ServicePricingPromotionalPricing = exports.ServicePricingMaxDiscountPercentage = exports.ServicePricingAllowsDiscounts = exports.ServicePricingMaximumUnits = exports.ServicePricingMinimumUnits = exports.ServicePricingUsageUnit = exports.ServicePricingPercentageMarkup = exports.ServicePricingRequiresEmployeeTierPricing = exports.ServicePricingEmployeeTierConfigurations = exports.ServicePricingRequiresSectorPricing = exports.ServicePricingSectorPricingConfigurations = exports.ServicePricingMaximumPrice = exports.ServicePricingMinimumPrice = exports.ServicePricingCreatedByStakeholder = exports.ServicePricingBaseServiceReferenceCode = exports.ServicePricingCurrency = exports.ServicePricingPricePerUnit = exports.ServicePricingBasePrice = void 0;
|
|
17
|
+
exports.ReportInstanceCannotBeRejectedError = exports.ReportInstanceCannotBePublishedError = exports.ReportInstanceCannotBeApprovedByClientError = exports.ReportInstanceCannotBeApprovedInternallyError = exports.ReportInstanceCannotBeGeneratedError = exports.VerificationTypeEnum = exports.AssuranceLevelEnum = exports.ReportTypeEnum = exports.ReportStatusEnum = exports.QuestionnaireQuestionOriginEnum = exports.ClientInputFieldTypeEnum = exports.DataBindingSourceEnum = exports.BlockNatureEnum = exports.ReportPreparationQuestionnaireStatusEnum = exports.ReportTemplateStatusEnum = exports.ReportInstanceStatusEnum = exports.ReportAssurance = exports.ReportSection = exports.ReportPreparationQuestionnaireCompletion = exports.PreparationAnswer = exports.PreparationQuestion = exports.ReportPreparationQuestionnaireId = exports.TextBankId = exports.ReportTemplateId = exports.ReportInstanceId = exports.ReportPreparationQuestionnaire = exports.TextBank = exports.ReportTemplate = exports.ReportInstance = exports.InvalidUnitsError = exports.InvalidTaxPercentageError = exports.InvalidPricingStatusError = exports.InvalidPricingModelError = exports.InvalidPricePerUnitError = exports.InvalidMarkupPercentageError = exports.InvalidDiscountPercentageError = exports.InvalidUserRoleError = exports.InvalidServiceCatalogTypeError = exports.InvalidServiceCatalogStatusError = exports.InvalidServiceCatalogCategoryError = exports.InvalidReportTypeError = exports.InvalidExpertDedicationLevelError = exports.InvalidTotalAmountFactorError = exports.InvalidTaxAmountFactorError = exports.InvalidSubtotalAmountFactorError = exports.InvalidSubtotalAmountError = exports.InvalidPurchaseOrderStatusError = exports.InvalidPercentageRangeError = exports.InvalidPaymentStatusError = exports.InvalidPaymentMethodError = void 0;
|
|
18
|
+
exports.CurrencyEnum = exports.CountryCodeEnum = exports.BusinessScaleEnum = exports.LocaleEnum = exports.UserBusinessStatusEnum = exports.UserTypeEnum = exports.ErrorCodeEnum = exports.CodedRootError = exports.RootError = exports.ObjectValueObject = exports.PrimitiveValueObject = exports.ValueObject = exports.User = exports.DomainError = exports.AggregateRoot = exports.ReportContentGenerationJobInvalidStatusTransitionError = exports.ReportContentGenerationJobCompletedAt = exports.ReportContentGenerationJobStartedAt = exports.ReportContentGenerationJobUpdatedAt = exports.ReportContentGenerationJobCreatedAt = exports.ReportContentGenerationJobFailureReason = exports.ReportContentGenerationJobAttemptCount = exports.ReportContentGenerationJobStatus = exports.ReportContentGenerationJobRequestedByStakeholderId = exports.ReportContentGenerationJobCarbonClientId = exports.ReportContentGenerationJobReportInstanceId = exports.ReportContentGenerationJobId = exports.ReportContentGenerationStatusEnum = exports.ReportContentGenerationJob = exports.InvalidReportTemplateIdError = exports.InvalidReportSectionTitleError = exports.InvalidReportSectionOrderError = exports.InvalidReportSectionIdError = exports.InvalidReportInstanceIdError = exports.InvalidReportAssuranceError = exports.InvalidReportBlockDataBindingError = exports.InvalidReportBlockClientInputError = exports.EmptyReportSectionBlocksError = exports.ReportPreparationQuestionnaireCannotBeReopenedError = exports.ReportPreparationQuestionnaireCannotBeCompletedError = exports.ReportPreparationQuestionnaireCannotBeModifiedError = exports.TemplateQuestionCannotBeRemovedError = exports.DuplicatePreparationQuestionError = exports.InvalidPreparationQuestionError = exports.InvalidPreparationAnswerError = exports.PreparationQuestionNotFoundError = exports.ReportTemplateCannotBeVersionedError = exports.ReportTemplateCannotBeDeprecatedError = exports.ReportTemplateCannotBeActivatedError = exports.ReportInstanceInvalidStatusTransitionError = void 0;
|
|
19
|
+
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.BaseYear = exports.ExecutionPeriod = 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.PendingActionTypeEnum = exports.CarbonClientJourneyBlockingReasonEnum = exports.CarbonClientJourneyStepStatusEnum = exports.CarbonClientJourneyStepEnum = exports.SemanticUuidPrefixEnum = exports.TaxIdentificationEnum = exports.SystemBoundaryEnum = exports.StakeholderRoleEnum = exports.ReportingStandardEnum = exports.ISOCategoryEnum = exports.GreenhouseGasCategoryEnum = exports.GenderEnum = exports.GHGSubScopeEnum = exports.GHGScopeEnum = exports.EmissionSourceEnum = exports.EmissionCategoryEnum = exports.DayOfWeekEnum = void 0;
|
|
20
|
+
exports.FacilityReferences = exports.FacilityReference = exports.EventReference = exports.EventEditionReferences = exports.EventEditionReference = exports.EventEditionLifecycleStageReference = exports.EventEditionLifecycleStageConfigurationReferences = exports.EventEditionConfigurationCarbonFootprintSubsegmentReferences = exports.EventEditionConfigurationCarbonFootprintSubsegmentReference = exports.CorporateConfigurationCarbonFootprintSubsegmentReference = 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.ActivityDataSubmissionRejectionReason = exports.ActivityDataSubmissionRejectedAt = exports.ActivityDataSubmissionApprovedAt = exports.ActivityDataSubmissionSubmittedAt = exports.ActivityDataSubmissionDataQualityNotes = exports.ActivityDataSubmissionUncertaintySource = exports.ActivityDataSubmissionOverallUncertaintyPercentage = exports.ActivityDataSubmissionReference = exports.EmissionSource = exports.EmissionSources = exports.CarbonClientReferences = exports.CarbonClientReference = exports.StakeholderReferences = exports.StakeholderReference = exports.UserPreferredLocale = 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 = void 0;
|
|
21
|
+
exports.FormNotFoundError = exports.DuplicateOrderError = exports.OrderExceedsBudgetError = exports.ServiceCatalogNotFoundError = exports.ContractNotFoundError = exports.DuplicateConfigurationError = exports.ConfigurationLockedError = exports.ConfigurationNotFoundError = exports.ManagerRequiredError = exports.InsufficientPermissionsError = exports.InvalidRoleError = exports.InvalidBusinessStatusError = exports.StakeholderExistsError = exports.StakeholderNotFoundError = exports.EmailNotVerifiedError = exports.AccountLockedError = exports.MissingCredentialsError = exports.TokenInvalidError = exports.TokenExpiredError = exports.InvalidCredentialsError = 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.InvalidAggregatePrefixError = exports.InvalidAggregateIdFormatError = 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.NullableFacilityReference = void 0;
|
|
22
|
+
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.InvalidUserPreferredLocaleError = exports.InvalidUserBusinessStatusError = exports.InvalidUserTypeError = exports.DivisionByZeroError = exports.MoneyOverflowError = exports.NotIntegerError = exports.NegativeAmountError = exports.MaximumValueViolationError = exports.MinimumValueViolationError = exports.InvalidUrlListError = exports.InvalidCodeListError = exports.InvalidStringListError = exports.EmptyArrayNotAllowedError = exports.PasswordPolicyViolationError = exports.EmptyValueError = exports.InvalidTaxIdError = exports.InvalidPhoneNumberError = exports.InvalidNationalNumberError = exports.InvalidFullInternationalNumberError = exports.InvalidEmailPolicyError = exports.InvalidCoordinatesError = exports.InvalidTimeFormatError = exports.InvalidDateRangeError = exports.InvalidDateFormatError = exports.ExternalServiceError = exports.DatabaseConnectionError = exports.JobAlreadyRunningError = exports.JobNotFoundError = exports.InvalidFormulaError = exports.MissingEmissionFactorError = exports.CalculationFailedError = exports.InvalidFieldTypeError = exports.MissingRequiredFieldsError = exports.SubmissionLockedError = exports.InvalidSubmissionError = void 0;
|
|
23
|
+
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 = 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.SwapOperationNotImplementedError = exports.FilterOperationNotImplementedError = exports.CannotAccessRightOnLeftValueError = exports.CannotAccessLeftOnRightValueError = exports.ResultExtensions = exports.EitherUtils = exports.ResultFactory = exports.EitherFactory = exports.RightEither = exports.LeftEither = exports.Either = exports.EventEditionLifecycleStageConfigurationEmissionSourceConfigurations = exports.ProductCarbonFootprintSegmentConfigurationEmissionSourceConfigurations = exports.EmissionSourceConfiguration = exports.CarbonFootprintSegmentConfigurationReference = exports.TaxIdentificationNumberWithControlCharactersError = exports.InvalidTaxIdentificationNumberLengthError = void 0;
|
|
24
|
+
exports.InvalidUserPreferenceCodeError = exports.UserPreferenceDismissedChecklistCodes = exports.UserPreferenceSeenOnboardingTourCodes = exports.UserPreferenceCodes = exports.UserPreferenceUserId = exports.UserPreference = exports.InvalidCarbonCoordinatorAvailabilityStatusError = exports.InvalidCarbonClientAccountTypeError = exports.CarbonCoordinatorAvailabilityStatusEnum = exports.CarbonClientAccountEnum = exports.CarbonManagerPermissions = exports.CarbonManagerPassword = 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.CarbonCoordinatorPermissions = exports.CarbonCoordinatorPassword = 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.CarbonClientPermissions = exports.CarbonClientPassword = void 0;
|
|
25
|
+
exports.CompanyServiceEntitlementValidTo = exports.CompanyServiceEntitlementValidFrom = exports.CompanyServiceEntitlementAdditionalUserRoles = exports.CompanyServiceEntitlementMaxUsers = exports.CompanyServiceEntitlementIsAvailableForEvent = exports.CompanyServiceEntitlementIsAvailableForProduct = exports.CompanyServiceEntitlementIsAvailableForCorporate = exports.CompanyServiceEntitlementIncludesEsgIndicators = exports.CompanyServiceEntitlementIncludesCarbonBoxAcademy = exports.CompanyServiceEntitlementAllowsSectoralComparison = exports.CompanyServiceEntitlementAllowsDocumentReading = exports.CompanyServiceEntitlementSourceContractIds = exports.CompanyServiceEntitlementActiveServiceCodes = exports.CompanyServiceEntitlementCarbonClientId = exports.CompanyServiceEntitlementId = exports.ServiceCapabilityPolicy = exports.CompanyServiceEntitlement = exports.PurchaseContractServiceRemovedDomainEvent = exports.PurchaseContractServiceAddedDomainEvent = exports.PurchaseContractRenewedDomainEvent = exports.PurchaseContractExpiredDomainEvent = exports.PurchaseContractCancelledDomainEvent = exports.PurchaseContractSuspendedDomainEvent = exports.PurchaseContractActivatedDomainEvent = exports.CalculationProcessFailedDomainEvent = exports.CalculationProcessCompletedDomainEvent = exports.CalculationJobFailedDomainEvent = exports.CalculationJobCompletedDomainEvent = exports.CalculationJobStartedDomainEvent = exports.WorkflowPausedDomainEvent = exports.WorkflowActivatedDomainEvent = exports.CalculationWorkflowReferenceVO = exports.InvalidDomainEventNameError = exports.DomainEventName = exports.DomainEvent = exports.StakeholderPermissions = exports.UserPermissions = exports.UnsupportedUserTypeError = exports.UnsupportedStakeholderRoleError = exports.SecurityContextReconstructionError = exports.SecurityContext = exports.PermissionSet = exports.PermissionEnum = exports.AuthorizationDecisionEnum = exports.UncertaintyPropagationDomainService = exports.UserCreationDomainService = exports.AggregateIdDomainService = exports.DateTimeFormattingDomainService = exports.UserPreferenceCodeLimitExceededError = exports.DuplicateUserPreferenceCodeError = void 0;
|
|
26
|
+
exports.InvalidIdentityDocumentTypeError = exports.CarbonClientIdentityDocument = exports.CarbonCoordinatorIdentityDocument = exports.CarbonManagerIdentityDocument = exports.StakeholderIdentityDocument = exports.IdentityDocument = exports.IdentityDocumentTypeEnum = void 0;
|
|
26
27
|
// ─── Entity Classes (For Application Layer) ─────────────────────────────────
|
|
27
28
|
var ActivityDataSubmission_1 = require("../carbonbox/activity-data-collection/activity-data-submissions/domain/entity/ActivityDataSubmission");
|
|
28
29
|
Object.defineProperty(exports, "ActivityDataSubmission", { enumerable: true, get: function () { return ActivityDataSubmission_1.ActivityDataSubmission; } });
|
|
@@ -489,6 +490,15 @@ var ConfigurationStatus_1 = require("../carbonbox/carbon-footprint-configuration
|
|
|
489
490
|
Object.defineProperty(exports, "ConfigurationStatusEnum", { enumerable: true, get: function () { return ConfigurationStatus_1.ConfigurationStatus; } });
|
|
490
491
|
var IntensityIndicator_1 = require("../carbonbox/carbon-footprint-configurations/shared/domain/enums/IntensityIndicator");
|
|
491
492
|
Object.defineProperty(exports, "IntensityIndicatorEnum", { enumerable: true, get: function () { return IntensityIndicator_1.IntensityIndicator; } });
|
|
493
|
+
var CarbonFootprintConfigurationActivationRequirement_1 = require("../carbonbox/carbon-footprint-configurations/shared/domain/enums/CarbonFootprintConfigurationActivationRequirement");
|
|
494
|
+
Object.defineProperty(exports, "CarbonFootprintConfigurationActivationRequirementEnum", { enumerable: true, get: function () { return CarbonFootprintConfigurationActivationRequirement_1.CarbonFootprintConfigurationActivationRequirement; } });
|
|
495
|
+
var CarbonFootprintConfigurationCompletionRequirement_1 = require("../carbonbox/carbon-footprint-configurations/shared/domain/enums/CarbonFootprintConfigurationCompletionRequirement");
|
|
496
|
+
Object.defineProperty(exports, "CarbonFootprintConfigurationCompletionRequirementEnum", { enumerable: true, get: function () { return CarbonFootprintConfigurationCompletionRequirement_1.CarbonFootprintConfigurationCompletionRequirement; } });
|
|
497
|
+
// Lifecycle policies (UX-D1 / UX-D2)
|
|
498
|
+
var CarbonFootprintConfigurationActivationPolicy_1 = require("../carbonbox/carbon-footprint-configurations/shared/domain/policies/CarbonFootprintConfigurationActivationPolicy");
|
|
499
|
+
Object.defineProperty(exports, "CarbonFootprintConfigurationActivationPolicy", { enumerable: true, get: function () { return CarbonFootprintConfigurationActivationPolicy_1.CarbonFootprintConfigurationActivationPolicy; } });
|
|
500
|
+
var CarbonFootprintConfigurationCompletionPolicy_1 = require("../carbonbox/carbon-footprint-configurations/shared/domain/policies/CarbonFootprintConfigurationCompletionPolicy");
|
|
501
|
+
Object.defineProperty(exports, "CarbonFootprintConfigurationCompletionPolicy", { enumerable: true, get: function () { return CarbonFootprintConfigurationCompletionPolicy_1.CarbonFootprintConfigurationCompletionPolicy; } });
|
|
492
502
|
// ─── Domain Exceptions ─────────────────────────────────────────────────────
|
|
493
503
|
// Shared Configuration Exceptions
|
|
494
504
|
var InvalidCarbonFootprintTypeError_1 = require("../carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidCarbonFootprintTypeError");
|
|
@@ -1464,6 +1474,15 @@ var TaxIdentification_1 = require("../carbonbox/shared/domain/enums/TaxIdentific
|
|
|
1464
1474
|
Object.defineProperty(exports, "TaxIdentificationEnum", { enumerable: true, get: function () { return TaxIdentification_1.TaxIdentification; } });
|
|
1465
1475
|
var SemanticUuidPrefix_1 = require("../carbonbox/shared/domain/enums/SemanticUuidPrefix");
|
|
1466
1476
|
Object.defineProperty(exports, "SemanticUuidPrefixEnum", { enumerable: true, get: function () { return SemanticUuidPrefix_1.SemanticUuidPrefix; } });
|
|
1477
|
+
// Carbon Client Journey Enums (UX-D3)
|
|
1478
|
+
var CarbonClientJourneyStep_1 = require("../carbonbox/shared/domain/journeys/enums/CarbonClientJourneyStep");
|
|
1479
|
+
Object.defineProperty(exports, "CarbonClientJourneyStepEnum", { enumerable: true, get: function () { return CarbonClientJourneyStep_1.CarbonClientJourneyStep; } });
|
|
1480
|
+
var CarbonClientJourneyStepStatus_1 = require("../carbonbox/shared/domain/journeys/enums/CarbonClientJourneyStepStatus");
|
|
1481
|
+
Object.defineProperty(exports, "CarbonClientJourneyStepStatusEnum", { enumerable: true, get: function () { return CarbonClientJourneyStepStatus_1.CarbonClientJourneyStepStatus; } });
|
|
1482
|
+
var CarbonClientJourneyBlockingReason_1 = require("../carbonbox/shared/domain/journeys/enums/CarbonClientJourneyBlockingReason");
|
|
1483
|
+
Object.defineProperty(exports, "CarbonClientJourneyBlockingReasonEnum", { enumerable: true, get: function () { return CarbonClientJourneyBlockingReason_1.CarbonClientJourneyBlockingReason; } });
|
|
1484
|
+
var PendingActionType_1 = require("../carbonbox/shared/domain/journeys/enums/PendingActionType");
|
|
1485
|
+
Object.defineProperty(exports, "PendingActionTypeEnum", { enumerable: true, get: function () { return PendingActionType_1.PendingActionType; } });
|
|
1467
1486
|
// ─── Fundamental Value Objects ───────────────────────────────────────────────
|
|
1468
1487
|
// Core Primitives
|
|
1469
1488
|
var String_1 = require("../carbonbox/shared/domain/value-objects/String");
|
|
@@ -2043,6 +2062,24 @@ var InvalidCarbonClientAccountTypeError_1 = require("../carbonbox/stakeholders/c
|
|
|
2043
2062
|
Object.defineProperty(exports, "InvalidCarbonClientAccountTypeError", { enumerable: true, get: function () { return InvalidCarbonClientAccountTypeError_1.InvalidCarbonClientAccountTypeError; } });
|
|
2044
2063
|
var InvalidCarbonCoordinatorAvailabilityStatusError_1 = require("../carbonbox/stakeholders/carbon-coordinators/domain/exceptions/InvalidCarbonCoordinatorAvailabilityStatusError");
|
|
2045
2064
|
Object.defineProperty(exports, "InvalidCarbonCoordinatorAvailabilityStatusError", { enumerable: true, get: function () { return InvalidCarbonCoordinatorAvailabilityStatusError_1.InvalidCarbonCoordinatorAvailabilityStatusError; } });
|
|
2065
|
+
var UserPreference_1 = require("../carbonbox/stakeholders/user-preferences/domain/entity/UserPreference");
|
|
2066
|
+
Object.defineProperty(exports, "UserPreference", { enumerable: true, get: function () { return UserPreference_1.UserPreference; } });
|
|
2067
|
+
// Value Objects
|
|
2068
|
+
var UserPreferenceUserId_1 = require("../carbonbox/stakeholders/user-preferences/domain/value-objects/UserPreferenceUserId");
|
|
2069
|
+
Object.defineProperty(exports, "UserPreferenceUserId", { enumerable: true, get: function () { return UserPreferenceUserId_1.UserPreferenceUserId; } });
|
|
2070
|
+
var UserPreferenceCodes_1 = require("../carbonbox/stakeholders/user-preferences/domain/value-objects/UserPreferenceCodes");
|
|
2071
|
+
Object.defineProperty(exports, "UserPreferenceCodes", { enumerable: true, get: function () { return UserPreferenceCodes_1.UserPreferenceCodes; } });
|
|
2072
|
+
var UserPreferenceSeenOnboardingTourCodes_1 = require("../carbonbox/stakeholders/user-preferences/domain/value-objects/UserPreferenceSeenOnboardingTourCodes");
|
|
2073
|
+
Object.defineProperty(exports, "UserPreferenceSeenOnboardingTourCodes", { enumerable: true, get: function () { return UserPreferenceSeenOnboardingTourCodes_1.UserPreferenceSeenOnboardingTourCodes; } });
|
|
2074
|
+
var UserPreferenceDismissedChecklistCodes_1 = require("../carbonbox/stakeholders/user-preferences/domain/value-objects/UserPreferenceDismissedChecklistCodes");
|
|
2075
|
+
Object.defineProperty(exports, "UserPreferenceDismissedChecklistCodes", { enumerable: true, get: function () { return UserPreferenceDismissedChecklistCodes_1.UserPreferenceDismissedChecklistCodes; } });
|
|
2076
|
+
// Exceptions
|
|
2077
|
+
var InvalidUserPreferenceCodeError_1 = require("../carbonbox/stakeholders/user-preferences/domain/exceptions/InvalidUserPreferenceCodeError");
|
|
2078
|
+
Object.defineProperty(exports, "InvalidUserPreferenceCodeError", { enumerable: true, get: function () { return InvalidUserPreferenceCodeError_1.InvalidUserPreferenceCodeError; } });
|
|
2079
|
+
var DuplicateUserPreferenceCodeError_1 = require("../carbonbox/stakeholders/user-preferences/domain/exceptions/DuplicateUserPreferenceCodeError");
|
|
2080
|
+
Object.defineProperty(exports, "DuplicateUserPreferenceCodeError", { enumerable: true, get: function () { return DuplicateUserPreferenceCodeError_1.DuplicateUserPreferenceCodeError; } });
|
|
2081
|
+
var UserPreferenceCodeLimitExceededError_1 = require("../carbonbox/stakeholders/user-preferences/domain/exceptions/UserPreferenceCodeLimitExceededError");
|
|
2082
|
+
Object.defineProperty(exports, "UserPreferenceCodeLimitExceededError", { enumerable: true, get: function () { return UserPreferenceCodeLimitExceededError_1.UserPreferenceCodeLimitExceededError; } });
|
|
2046
2083
|
// =============================================================================
|
|
2047
2084
|
// SHARED DOMAIN SERVICES
|
|
2048
2085
|
// =============================================================================
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Requirements a carbon footprint configuration (corporate, event or
|
|
3
|
+
* product) must meet to move from `DRAFT` to `ACTIVE`.
|
|
4
|
+
*
|
|
5
|
+
* Each member identifies ONE rule evaluated by
|
|
6
|
+
* `CarbonFootprintConfigurationActivationPolicy`. The members are listed in
|
|
7
|
+
* the order the policy evaluates them; a given footprint type only
|
|
8
|
+
* evaluates the members that apply to it (e.g. `FACILITY_*` is corporate
|
|
9
|
+
* only, `ANALYSIS_UNIT_*` is event only).
|
|
10
|
+
*
|
|
11
|
+
* The detail needed to describe an unmet requirement (index, received value,
|
|
12
|
+
* dates...) travels in `CarbonFootprintConfigurationRequirementContext`.
|
|
13
|
+
*/
|
|
14
|
+
export declare enum CarbonFootprintConfigurationActivationRequirement {
|
|
15
|
+
CARBON_CLIENT_NOT_ENTITLED = "CARBON_CLIENT_NOT_ENTITLED",
|
|
16
|
+
CONFIGURATION_MUST_BE_DRAFT = "CONFIGURATION_MUST_BE_DRAFT",
|
|
17
|
+
SEGMENT_CONFIGURATION_REQUIRED = "SEGMENT_CONFIGURATION_REQUIRED",
|
|
18
|
+
SEGMENT_CONFIGURATION_SEGMENT_ID_REQUIRED = "SEGMENT_CONFIGURATION_SEGMENT_ID_REQUIRED",
|
|
19
|
+
SEGMENT_CONFIGURATION_EMISSION_SOURCE_REQUIRED = "SEGMENT_CONFIGURATION_EMISSION_SOURCE_REQUIRED",
|
|
20
|
+
LIFECYCLE_STAGE_CONFIGURATION_REQUIRED = "LIFECYCLE_STAGE_CONFIGURATION_REQUIRED",
|
|
21
|
+
LIFECYCLE_STAGE_CONFIGURATION_STAGE_ID_REQUIRED = "LIFECYCLE_STAGE_CONFIGURATION_STAGE_ID_REQUIRED",
|
|
22
|
+
LIFECYCLE_STAGE_CONFIGURATION_EMISSION_SOURCE_REQUIRED = "LIFECYCLE_STAGE_CONFIGURATION_EMISSION_SOURCE_REQUIRED",
|
|
23
|
+
EVENT_EDITION_REFERENCE_INCOMPLETE = "EVENT_EDITION_REFERENCE_INCOMPLETE",
|
|
24
|
+
ANALYSIS_UNIT_REQUIRED = "ANALYSIS_UNIT_REQUIRED",
|
|
25
|
+
ANALYSIS_UNIT_BENCHMARK_VALUE_INVALID = "ANALYSIS_UNIT_BENCHMARK_VALUE_INVALID",
|
|
26
|
+
ANALYSIS_UNIT_MEASUREMENT_UNIT_INVALID = "ANALYSIS_UNIT_MEASUREMENT_UNIT_INVALID",
|
|
27
|
+
PRODUCT_REFERENCE_INCOMPLETE = "PRODUCT_REFERENCE_INCOMPLETE",
|
|
28
|
+
SYSTEM_BOUNDARY_REFERENCE_INCOMPLETE = "SYSTEM_BOUNDARY_REFERENCE_INCOMPLETE",
|
|
29
|
+
FUNCTIONAL_UNIT_REQUIRED = "FUNCTIONAL_UNIT_REQUIRED",
|
|
30
|
+
FUNCTIONAL_UNIT_BENCHMARK_VALUE_INVALID = "FUNCTIONAL_UNIT_BENCHMARK_VALUE_INVALID",
|
|
31
|
+
FUNCTIONAL_UNIT_MEASUREMENT_UNIT_REQUIRED = "FUNCTIONAL_UNIT_MEASUREMENT_UNIT_REQUIRED",
|
|
32
|
+
EXECUTION_PERIOD_START_DATE_REQUIRED = "EXECUTION_PERIOD_START_DATE_REQUIRED",
|
|
33
|
+
EXECUTION_PERIOD_START_DATE_INVALID_FORMAT = "EXECUTION_PERIOD_START_DATE_INVALID_FORMAT",
|
|
34
|
+
EXECUTION_PERIOD_START_DATE_TOO_OLD = "EXECUTION_PERIOD_START_DATE_TOO_OLD",
|
|
35
|
+
EXECUTION_PERIOD_END_DATE_INVALID_FORMAT = "EXECUTION_PERIOD_END_DATE_INVALID_FORMAT",
|
|
36
|
+
EXECUTION_PERIOD_START_DATE_NOT_BEFORE_END_DATE = "EXECUTION_PERIOD_START_DATE_NOT_BEFORE_END_DATE",
|
|
37
|
+
INTENSITY_INDICATOR_CONFIGURATIONS_INVALID = "INTENSITY_INDICATOR_CONFIGURATIONS_INVALID",
|
|
38
|
+
INTENSITY_INDICATOR_ASSIGNMENT_REQUIRED = "INTENSITY_INDICATOR_ASSIGNMENT_REQUIRED",
|
|
39
|
+
INTENSITY_INDICATOR_TARGET_VALUE_NOT_POSITIVE = "INTENSITY_INDICATOR_TARGET_VALUE_NOT_POSITIVE",
|
|
40
|
+
INTENSITY_INDICATOR_BENCHMARK_VALUE_NOT_POSITIVE = "INTENSITY_INDICATOR_BENCHMARK_VALUE_NOT_POSITIVE",
|
|
41
|
+
FACILITY_REQUIRED = "FACILITY_REQUIRED",
|
|
42
|
+
FACILITY_REFERENCE_INCOMPLETE = "FACILITY_REFERENCE_INCOMPLETE",
|
|
43
|
+
FACILITY_NOT_FOUND = "FACILITY_NOT_FOUND",
|
|
44
|
+
CARBON_FOOTPRINT_OBJECTIVE_TOO_SHORT = "CARBON_FOOTPRINT_OBJECTIVE_TOO_SHORT",
|
|
45
|
+
OWNED_BY_CARBON_CLIENT_REFERENCE_INCOMPLETE = "OWNED_BY_CARBON_CLIENT_REFERENCE_INCOMPLETE",
|
|
46
|
+
CREATED_BY_STAKEHOLDER_REFERENCE_INCOMPLETE = "CREATED_BY_STAKEHOLDER_REFERENCE_INCOMPLETE"
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=CarbonFootprintConfigurationActivationRequirement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarbonFootprintConfigurationActivationRequirement.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/carbon-footprint-configurations/shared/domain/enums/CarbonFootprintConfigurationActivationRequirement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,oBAAY,iDAAiD;IAE3D,0BAA0B,+BAA+B;IACzD,2BAA2B,gCAAgC;IAG3D,8BAA8B,mCAAmC;IACjE,yCAAyC,8CAA8C;IACvF,8CAA8C,mDAAmD;IAGjG,sCAAsC,2CAA2C;IACjF,+CAA+C,oDAAoD;IACnG,sDAAsD,2DAA2D;IAGjH,kCAAkC,uCAAuC;IACzE,sBAAsB,2BAA2B;IACjD,qCAAqC,0CAA0C;IAC/E,sCAAsC,2CAA2C;IAGjF,4BAA4B,iCAAiC;IAC7D,oCAAoC,yCAAyC;IAC7E,wBAAwB,6BAA6B;IACrD,uCAAuC,4CAA4C;IACnF,yCAAyC,8CAA8C;IAGvF,oCAAoC,yCAAyC;IAC7E,0CAA0C,+CAA+C;IACzF,mCAAmC,wCAAwC;IAC3E,wCAAwC,6CAA6C;IACrF,+CAA+C,oDAAoD;IAGnG,0CAA0C,+CAA+C;IACzF,uCAAuC,4CAA4C;IACnF,6CAA6C,kDAAkD;IAC/F,gDAAgD,qDAAqD;IAGrG,iBAAiB,sBAAsB;IACvC,6BAA6B,kCAAkC;IAC/D,kBAAkB,uBAAuB;IAGzC,oCAAoC,yCAAyC;IAG7E,2CAA2C,gDAAgD;IAC3F,2CAA2C,gDAAgD;CAC5F"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Requirements a carbon footprint configuration (corporate, event or
|
|
3
|
+
* product) must meet to move from `ACTIVE` to `COMPLETED`.
|
|
4
|
+
*
|
|
5
|
+
* Each member identifies ONE rule evaluated by
|
|
6
|
+
* `CarbonFootprintConfigurationCompletionPolicy`, listed in evaluation
|
|
7
|
+
* order. The `EXECUTION_PERIOD_*` members are corporate only: event and
|
|
8
|
+
* product footprints have no reporting window at footprint level.
|
|
9
|
+
*
|
|
10
|
+
* The detail needed to describe an unmet requirement travels in
|
|
11
|
+
* `CarbonFootprintConfigurationRequirementContext`.
|
|
12
|
+
*/
|
|
13
|
+
export declare enum CarbonFootprintConfigurationCompletionRequirement {
|
|
14
|
+
CARBON_CLIENT_NOT_ENTITLED = "CARBON_CLIENT_NOT_ENTITLED",
|
|
15
|
+
CONFIGURATION_MUST_BE_ACTIVE = "CONFIGURATION_MUST_BE_ACTIVE",
|
|
16
|
+
EXECUTION_PERIOD_END_DATE_REQUIRED = "EXECUTION_PERIOD_END_DATE_REQUIRED",
|
|
17
|
+
EXECUTION_PERIOD_END_DATE_INVALID_FORMAT = "EXECUTION_PERIOD_END_DATE_INVALID_FORMAT",
|
|
18
|
+
EXECUTION_PERIOD_NOT_ENDED = "EXECUTION_PERIOD_NOT_ENDED",
|
|
19
|
+
ACTIVE_CALCULATION_PROCESSES_PRESENT = "ACTIVE_CALCULATION_PROCESSES_PRESENT",
|
|
20
|
+
SCOPE_1_OR_SCOPE_2_SUBMISSION_REQUIRED = "SCOPE_1_OR_SCOPE_2_SUBMISSION_REQUIRED"
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=CarbonFootprintConfigurationCompletionRequirement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarbonFootprintConfigurationCompletionRequirement.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/carbon-footprint-configurations/shared/domain/enums/CarbonFootprintConfigurationCompletionRequirement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,oBAAY,iDAAiD;IAE3D,0BAA0B,+BAA+B;IACzD,4BAA4B,iCAAiC;IAG7D,kCAAkC,uCAAuC;IACzE,wCAAwC,6CAA6C;IACrF,0BAA0B,+BAA+B;IAGzD,oCAAoC,yCAAyC;IAC7E,sCAAsC,2CAA2C;CAClF"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { CorporateCarbonFootprintConfigurationPrimitives } from '../../../corporate-configurations/domain/types/CorporateCarbonFootprintConfigurationPrimitives';
|
|
2
|
+
import { EventCarbonFootprintConfigurationPrimitives } from '../../../event-configurations/domain/types/EventCarbonFootprintConfigurationPrimitives';
|
|
3
|
+
import { ProductCarbonFootprintConfigurationPrimitives } from '../../../product-configurations/domain/types/ProductCarbonFootprintConfigurationPrimitives';
|
|
4
|
+
import { CarbonFootprintConfigurationActivationFacts } from '../types/CarbonFootprintConfigurationActivationFacts';
|
|
5
|
+
import { CorporateCarbonFootprintConfigurationActivationFacts } from '../types/CorporateCarbonFootprintConfigurationActivationFacts';
|
|
6
|
+
import { UnmetCarbonFootprintConfigurationActivationRequirement } from '../types/UnmetCarbonFootprintConfigurationActivationRequirement';
|
|
7
|
+
/**
|
|
8
|
+
* Pure domain policy that decides whether a carbon footprint configuration
|
|
9
|
+
* (corporate, event or product) can move from `DRAFT` to `ACTIVE`, and if
|
|
10
|
+
* not, which requirements it does not meet.
|
|
11
|
+
*
|
|
12
|
+
* Why this exists: the activation rules used to live only inside the
|
|
13
|
+
* `Activate*` command handlers, which throw on the FIRST broken rule. The
|
|
14
|
+
* web needs the complete list up front (readiness) and the command must keep
|
|
15
|
+
* rejecting exactly as before. Both now call this policy: the command throws
|
|
16
|
+
* from the first item, the readiness query returns the whole list.
|
|
17
|
+
*
|
|
18
|
+
* Every `evaluate*` method returns the unmet requirements in evaluation
|
|
19
|
+
* order (empty list = ready to activate). The order reproduces the command
|
|
20
|
+
* handlers, so `list[0]` is always the error the handler raised before this
|
|
21
|
+
* policy existed:
|
|
22
|
+
* 1. `CARBON_CLIENT_NOT_ENTITLED` (context: `configurationId`) — the
|
|
23
|
+
* entitlement gate runs before the handler body, so it goes first.
|
|
24
|
+
* 2. `CONFIGURATION_MUST_BE_DRAFT` (`configurationId`, `currentStatus`).
|
|
25
|
+
* When the status is not `DRAFT` nothing else is evaluated.
|
|
26
|
+
* 3. Footprint-type specific structure, in handler order:
|
|
27
|
+
* - corporate / product: `SEGMENT_CONFIGURATION_REQUIRED`; then, per
|
|
28
|
+
* item, `SEGMENT_CONFIGURATION_SEGMENT_ID_REQUIRED` and
|
|
29
|
+
* `SEGMENT_CONFIGURATION_EMISSION_SOURCE_REQUIRED` (`index`,
|
|
30
|
+
* `segmentConfigurationId`).
|
|
31
|
+
* - event: `LIFECYCLE_STAGE_CONFIGURATION_REQUIRED`; then, per item,
|
|
32
|
+
* `LIFECYCLE_STAGE_CONFIGURATION_STAGE_ID_REQUIRED` and
|
|
33
|
+
* `LIFECYCLE_STAGE_CONFIGURATION_EMISSION_SOURCE_REQUIRED` (`index`,
|
|
34
|
+
* `lifecycleStageConfigurationId`); `EVENT_EDITION_REFERENCE_INCOMPLETE`;
|
|
35
|
+
* `ANALYSIS_UNIT_REQUIRED` (suppresses the next two),
|
|
36
|
+
* `ANALYSIS_UNIT_BENCHMARK_VALUE_INVALID` (finite and >= 0),
|
|
37
|
+
* `ANALYSIS_UNIT_MEASUREMENT_UNIT_INVALID` (`receivedValue`).
|
|
38
|
+
* - product: `PRODUCT_REFERENCE_INCOMPLETE`,
|
|
39
|
+
* `SYSTEM_BOUNDARY_REFERENCE_INCOMPLETE`, `FUNCTIONAL_UNIT_REQUIRED`
|
|
40
|
+
* (suppresses the next two), `FUNCTIONAL_UNIT_BENCHMARK_VALUE_INVALID`
|
|
41
|
+
* (finite and >= 0), `FUNCTIONAL_UNIT_MEASUREMENT_UNIT_REQUIRED`.
|
|
42
|
+
* - corporate execution period: `EXECUTION_PERIOD_START_DATE_REQUIRED`
|
|
43
|
+
* or `EXECUTION_PERIOD_START_DATE_INVALID_FORMAT` (`startDate`,
|
|
44
|
+
* `parseErrorMessage`); `EXECUTION_PERIOD_START_DATE_TOO_OLD`
|
|
45
|
+
* (`startDate`, `earliestAllowedStartDate`: at most one year before
|
|
46
|
+
* `facts.evaluatedAt`); `EXECUTION_PERIOD_END_DATE_INVALID_FORMAT`
|
|
47
|
+
* (`endDate`, `parseErrorMessage`; only when an end date is set);
|
|
48
|
+
* `EXECUTION_PERIOD_START_DATE_NOT_BEFORE_END_DATE` (`startDate`,
|
|
49
|
+
* `endDate`). A date that is missing or cannot be parsed suppresses
|
|
50
|
+
* the requirements that compare it.
|
|
51
|
+
* 4. Intensity indicators (all types): `INTENSITY_INDICATOR_CONFIGURATIONS_INVALID`
|
|
52
|
+
* (not an array; suppresses the per-item checks); then, per item,
|
|
53
|
+
* `INTENSITY_INDICATOR_ASSIGNMENT_REQUIRED`,
|
|
54
|
+
* `INTENSITY_INDICATOR_TARGET_VALUE_NOT_POSITIVE` and
|
|
55
|
+
* `INTENSITY_INDICATOR_BENCHMARK_VALUE_NOT_POSITIVE` (`index`).
|
|
56
|
+
* 5. Facilities (corporate only): `FACILITY_REQUIRED`; then
|
|
57
|
+
* `FACILITY_REFERENCE_INCOMPLETE` for every reference without `id` or
|
|
58
|
+
* `commercialBranchName` (`index`, `facilityId`, `commercialBranchName`);
|
|
59
|
+
* then `FACILITY_NOT_FOUND` for every COMPLETE reference whose id is not
|
|
60
|
+
* in `facts.existingFacilityIds` (`index`, `facilityId`,
|
|
61
|
+
* `commercialBranchName`). All incomplete references are listed before
|
|
62
|
+
* any missing one because the handler validated completeness of the
|
|
63
|
+
* whole list before looking any facility up.
|
|
64
|
+
* 6. `CARBON_FOOTPRINT_OBJECTIVE_TOO_SHORT` (all types; `reportingStandard`,
|
|
65
|
+
* `minimumLength`) — only for `ISO_14064_1` and `HYBRID`.
|
|
66
|
+
* 7. `OWNED_BY_CARBON_CLIENT_REFERENCE_INCOMPLETE` and
|
|
67
|
+
* `CREATED_BY_STAKEHOLDER_REFERENCE_INCOMPLETE` (all types; both
|
|
68
|
+
* references need `id` and `displayName`).
|
|
69
|
+
*
|
|
70
|
+
* Dates: execution period dates are `DD/MM/YYYY` strings parsed with the
|
|
71
|
+
* domain `DateTimeFormattingDomainService` (pure, no I/O), exactly as the
|
|
72
|
+
* handlers did; "now" is never read from the clock but taken from
|
|
73
|
+
* `facts.evaluatedAt`, so the result only depends on the arguments.
|
|
74
|
+
*
|
|
75
|
+
* The policy is intentionally a pure function — it does not load data,
|
|
76
|
+
* throw, or mutate. Facts that need I/O (entitlement, existing facilities)
|
|
77
|
+
* are gathered by the caller and passed in.
|
|
78
|
+
*/
|
|
79
|
+
export declare class CarbonFootprintConfigurationActivationPolicy {
|
|
80
|
+
private static readonly MINIMUM_CARBON_FOOTPRINT_OBJECTIVE_LENGTH;
|
|
81
|
+
private static readonly MAXIMUM_START_DATE_AGE_IN_YEARS;
|
|
82
|
+
private static readonly STANDARDS_REQUIRING_DETAILED_OBJECTIVE;
|
|
83
|
+
private static readonly DATE_TIME_FORMATTING;
|
|
84
|
+
private constructor();
|
|
85
|
+
static evaluateCorporateConfiguration(primitives: CorporateCarbonFootprintConfigurationPrimitives, facts: CorporateCarbonFootprintConfigurationActivationFacts): ReadonlyArray<UnmetCarbonFootprintConfigurationActivationRequirement>;
|
|
86
|
+
static evaluateEventConfiguration(primitives: EventCarbonFootprintConfigurationPrimitives, facts: CarbonFootprintConfigurationActivationFacts): ReadonlyArray<UnmetCarbonFootprintConfigurationActivationRequirement>;
|
|
87
|
+
static evaluateProductConfiguration(primitives: ProductCarbonFootprintConfigurationPrimitives, facts: CarbonFootprintConfigurationActivationFacts): ReadonlyArray<UnmetCarbonFootprintConfigurationActivationRequirement>;
|
|
88
|
+
private static isDraft;
|
|
89
|
+
private static evaluateGates;
|
|
90
|
+
private static evaluateSegmentConfigurations;
|
|
91
|
+
private static evaluateLifecycleStageConfigurations;
|
|
92
|
+
private static evaluateEventEdition;
|
|
93
|
+
private static evaluateAnalysisUnit;
|
|
94
|
+
private static evaluateProduct;
|
|
95
|
+
private static evaluateSystemBoundary;
|
|
96
|
+
private static evaluateFunctionalUnit;
|
|
97
|
+
private static evaluateExecutionPeriod;
|
|
98
|
+
/**
|
|
99
|
+
* The start date may be at most `MAXIMUM_START_DATE_AGE_IN_YEARS` before
|
|
100
|
+
* the evaluation instant (same calendar arithmetic as the handler:
|
|
101
|
+
* `setFullYear(year - 1)` on a copy of "now").
|
|
102
|
+
*/
|
|
103
|
+
private static evaluateStartDateAge;
|
|
104
|
+
private static evaluateIntensityIndicatorConfigurations;
|
|
105
|
+
private static evaluateFacilities;
|
|
106
|
+
private static evaluateCarbonFootprintObjective;
|
|
107
|
+
private static evaluateOwnershipReferences;
|
|
108
|
+
/**
|
|
109
|
+
* Same predicate as the handlers' benchmark check: rejects non-numbers,
|
|
110
|
+
* `NaN`, `±Infinity` and negatives.
|
|
111
|
+
*/
|
|
112
|
+
private static isNotNonNegativeFiniteNumber;
|
|
113
|
+
/**
|
|
114
|
+
* Same predicate as the handlers' intensity indicator check: rejects
|
|
115
|
+
* non-numbers and values `<= 0`. `NaN` is NOT rejected (`NaN <= 0` is
|
|
116
|
+
* false), exactly as before.
|
|
117
|
+
*/
|
|
118
|
+
private static isNotPositiveNumber;
|
|
119
|
+
private static unmet;
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=CarbonFootprintConfigurationActivationPolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarbonFootprintConfigurationActivationPolicy.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/carbon-footprint-configurations/shared/domain/policies/CarbonFootprintConfigurationActivationPolicy.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,+CAA+C,EAAE,MAAM,gGAAgG,CAAC;AAEjK,OAAO,EAAE,2CAA2C,EAAE,MAAM,wFAAwF,CAAC;AACrJ,OAAO,EAAE,6CAA6C,EAAE,MAAM,4FAA4F,CAAC;AAG3J,OAAO,EAAE,2CAA2C,EAAE,MAAM,sDAAsD,CAAC;AAGnH,OAAO,EAAE,oDAAoD,EAAE,MAAM,+DAA+D,CAAC;AAErI,OAAO,EAAE,sDAAsD,EAAE,MAAM,iEAAiE,CAAC;AAEzI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuEG;AACH,qBAAa,4CAA4C;IACvD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,yCAAyC,CAAc;IAE/E,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,+BAA+B,CAAa;IAEpE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,sCAAsC,CAG5D;IAEF,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAA8E;IAE1H,OAAO;WAIO,8BAA8B,CAC1C,UAAU,EAAE,+CAA+C,EAC3D,KAAK,EAAE,oDAAoD,GAC1D,aAAa,CAAC,sDAAsD,CAAC;WAqB1D,0BAA0B,CACtC,UAAU,EAAE,2CAA2C,EACvD,KAAK,EAAE,2CAA2C,GACjD,aAAa,CAAC,sDAAsD,CAAC;WAqB1D,4BAA4B,CACxC,UAAU,EAAE,6CAA6C,EACzD,KAAK,EAAE,2CAA2C,GACjD,aAAa,CAAC,sDAAsD,CAAC;IAsBxE,OAAO,CAAC,MAAM,CAAC,OAAO;IAItB,OAAO,CAAC,MAAM,CAAC,aAAa;IAuB5B,OAAO,CAAC,MAAM,CAAC,6BAA6B;IA8B5C,OAAO,CAAC,MAAM,CAAC,oCAAoC;IA8BnD,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAcnC,OAAO,CAAC,MAAM,CAAC,oBAAoB;IA6BnC,OAAO,CAAC,MAAM,CAAC,eAAe;IAc9B,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAcrC,OAAO,CAAC,MAAM,CAAC,sBAAsB;IA4BrC,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAoDtC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAyBnC,OAAO,CAAC,MAAM,CAAC,wCAAwC;IAqCvD,OAAO,CAAC,MAAM,CAAC,kBAAkB;IA8BjC,OAAO,CAAC,MAAM,CAAC,gCAAgC;IAoB/C,OAAO,CAAC,MAAM,CAAC,2BAA2B;IAqB1C;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,4BAA4B;IAI3C;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAIlC,OAAO,CAAC,MAAM,CAAC,KAAK;CAMrB"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { CorporateCarbonFootprintConfigurationPrimitives } from '../../../corporate-configurations/domain/types/CorporateCarbonFootprintConfigurationPrimitives';
|
|
2
|
+
import { EventCarbonFootprintConfigurationPrimitives } from '../../../event-configurations/domain/types/EventCarbonFootprintConfigurationPrimitives';
|
|
3
|
+
import { ProductCarbonFootprintConfigurationPrimitives } from '../../../product-configurations/domain/types/ProductCarbonFootprintConfigurationPrimitives';
|
|
4
|
+
import { CarbonFootprintConfigurationCompletionFacts } from '../types/CarbonFootprintConfigurationCompletionFacts';
|
|
5
|
+
import { UnmetCarbonFootprintConfigurationCompletionRequirement } from '../types/UnmetCarbonFootprintConfigurationCompletionRequirement';
|
|
6
|
+
/**
|
|
7
|
+
* Pure domain policy that decides whether a carbon footprint configuration
|
|
8
|
+
* (corporate, event or product) can move from `ACTIVE` to `COMPLETED`, and
|
|
9
|
+
* if not, which requirements it does not meet.
|
|
10
|
+
*
|
|
11
|
+
* Why this exists: the completion rules used to live only inside the
|
|
12
|
+
* `Complete*` command handlers, which throw on the FIRST broken rule. The
|
|
13
|
+
* command (throws from `list[0]`) and the readiness query (returns the whole
|
|
14
|
+
* list) now share this single source of truth.
|
|
15
|
+
*
|
|
16
|
+
* Every `evaluate*` method returns the unmet requirements in evaluation
|
|
17
|
+
* order (empty list = ready to complete), reproducing the handlers so that
|
|
18
|
+
* `list[0]` is always the error they raised before:
|
|
19
|
+
* 1. `CARBON_CLIENT_NOT_ENTITLED` (context: `configurationId`) — the
|
|
20
|
+
* entitlement gate runs before the handler body, so it goes first.
|
|
21
|
+
* 2. `CONFIGURATION_MUST_BE_ACTIVE` (`configurationId`, `currentStatus`).
|
|
22
|
+
* When the status is not `ACTIVE` nothing else is evaluated.
|
|
23
|
+
* 3. Corporate only — the execution period must have ended:
|
|
24
|
+
* `EXECUTION_PERIOD_END_DATE_REQUIRED`;
|
|
25
|
+
* `EXECUTION_PERIOD_END_DATE_INVALID_FORMAT` (`endDate`,
|
|
26
|
+
* `parseErrorMessage`); `EXECUTION_PERIOD_NOT_ENDED` (`endDate`,
|
|
27
|
+
* `evaluatedAt` as ISO-8601) when `facts.evaluatedAt` is before the end
|
|
28
|
+
* date. A missing or unparseable end date suppresses the last one.
|
|
29
|
+
* Event and product footprints have no reporting window at footprint
|
|
30
|
+
* level, so they skip this step.
|
|
31
|
+
* 4. `ACTIVE_CALCULATION_PROCESSES_PRESENT` (`activeCalculationProcessCount`)
|
|
32
|
+
* when calculation processes are still `SCHEDULED`, `QUEUED` or
|
|
33
|
+
* `RUNNING`.
|
|
34
|
+
* 5. `SCOPE_1_OR_SCOPE_2_SUBMISSION_REQUIRED` (`reportingStandard`,
|
|
35
|
+
* `emissionScopesFound`: distinct scopes in first-seen order, empty when
|
|
36
|
+
* there are no submissions) — only for `GHG_PROTOCOL` and `HYBRID`, when
|
|
37
|
+
* no activity data submission (any status) reports `SCOPE_1` or
|
|
38
|
+
* `SCOPE_2`.
|
|
39
|
+
*
|
|
40
|
+
* Dates: the end date is a `DD/MM/YYYY` string parsed with the domain
|
|
41
|
+
* `DateTimeFormattingDomainService` (pure, no I/O), exactly as the handler
|
|
42
|
+
* did; "now" is taken from `facts.evaluatedAt`, never from the clock.
|
|
43
|
+
*
|
|
44
|
+
* The policy is intentionally a pure function — it does not load data,
|
|
45
|
+
* throw, or mutate. Facts that need I/O (entitlement, calculation processes,
|
|
46
|
+
* submissions) are gathered by the caller and passed in.
|
|
47
|
+
*/
|
|
48
|
+
export declare class CarbonFootprintConfigurationCompletionPolicy {
|
|
49
|
+
private static readonly STANDARDS_REQUIRING_SCOPE_1_OR_SCOPE_2_COVERAGE;
|
|
50
|
+
private static readonly SCOPES_SATISFYING_COVERAGE;
|
|
51
|
+
private static readonly DATE_TIME_FORMATTING;
|
|
52
|
+
private constructor();
|
|
53
|
+
static evaluateCorporateConfiguration(primitives: CorporateCarbonFootprintConfigurationPrimitives, facts: CarbonFootprintConfigurationCompletionFacts): ReadonlyArray<UnmetCarbonFootprintConfigurationCompletionRequirement>;
|
|
54
|
+
static evaluateEventConfiguration(primitives: EventCarbonFootprintConfigurationPrimitives, facts: CarbonFootprintConfigurationCompletionFacts): ReadonlyArray<UnmetCarbonFootprintConfigurationCompletionRequirement>;
|
|
55
|
+
static evaluateProductConfiguration(primitives: ProductCarbonFootprintConfigurationPrimitives, facts: CarbonFootprintConfigurationCompletionFacts): ReadonlyArray<UnmetCarbonFootprintConfigurationCompletionRequirement>;
|
|
56
|
+
private static evaluateConfigurationWithoutExecutionPeriod;
|
|
57
|
+
private static isActive;
|
|
58
|
+
private static evaluateGates;
|
|
59
|
+
private static evaluateExecutionPeriodEnded;
|
|
60
|
+
private static evaluateEndDateReached;
|
|
61
|
+
private static evaluateCalculationAndCoverage;
|
|
62
|
+
private static evaluateActiveCalculationProcesses;
|
|
63
|
+
/**
|
|
64
|
+
* GHG Protocol coverage rule: the reporting period must include at least
|
|
65
|
+
* one Scope 1 or Scope 2 emission; Scope 3 alone is not a valid GHG
|
|
66
|
+
* Protocol report. The scope is declared per activity data submission.
|
|
67
|
+
*/
|
|
68
|
+
private static evaluateScopeCoverage;
|
|
69
|
+
private static unmet;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=CarbonFootprintConfigurationCompletionPolicy.d.ts.map
|