@carbonbox/domain 0.14.0 → 0.16.1
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/purchase-management-system/purchase-contracts/domain/events/PurchaseContractActivatedDomainEvent.js +38 -0
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractCancelledDomainEvent.js +38 -0
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractExpiredDomainEvent.js +38 -0
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractRenewedDomainEvent.js +38 -0
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractServiceAddedDomainEvent.js +38 -0
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractServiceRemovedDomainEvent.js +38 -0
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractSuspendedDomainEvent.js +38 -0
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractActivatedPayload.js +2 -0
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractCancelledPayload.js +2 -0
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractExpiredPayload.js +2 -0
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractRenewedPayload.js +2 -0
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractServiceAddedPayload.js +2 -0
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractServiceRemovedPayload.js +2 -0
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractSuspendedPayload.js +2 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/entity/CompanyServiceEntitlement.js +171 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/entity/ICompanyServiceEntitlement.js +2 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/policies/ServiceCapabilityPolicy.js +208 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/repository/ICompanyServiceEntitlementRepository.js +2 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/types/CompanyServiceEntitlementPrimitives.js +2 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/types/CompanyServiceEntitlementProjection.js +2 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/types/CompanyServiceEntitlementProps.js +2 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/types/EntitlementInputContract.js +2 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/types/EntitlementInputServiceCatalog.js +2 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementActiveServiceCodes.js +25 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementAdditionalUserRoles.js +22 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementAllowsDocumentReading.js +22 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementAllowsSectoralComparison.js +22 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementCarbonClientId.js +24 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementId.js +48 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIncludesCarbonBoxAcademy.js +22 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIncludesEsgIndicators.js +22 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIsAvailableForCorporate.js +22 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIsAvailableForEvent.js +22 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIsAvailableForProduct.js +22 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementMaxUsers.js +29 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementSourceContractIds.js +22 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementValidFrom.js +24 -0
- package/build/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementValidTo.js +21 -0
- package/build/carbonbox/shared/domain/enums/SemanticUuidPrefix.js +1 -0
- package/build/carbonbox/shared/domain/exceptions/RootError.js +1 -3
- package/build/carbonbox/shared/domain/value-objects/PositiveInteger.js +2 -8
- package/build/carbonbox/shared/domain/value-objects/ValueObject.js +2 -8
- package/build/main/index.js +51 -1
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractActivatedDomainEvent.d.ts +15 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractActivatedDomainEvent.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractCancelledDomainEvent.d.ts +15 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractCancelledDomainEvent.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractExpiredDomainEvent.d.ts +15 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractExpiredDomainEvent.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractRenewedDomainEvent.d.ts +15 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractRenewedDomainEvent.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractServiceAddedDomainEvent.d.ts +15 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractServiceAddedDomainEvent.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractServiceRemovedDomainEvent.d.ts +15 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractServiceRemovedDomainEvent.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractSuspendedDomainEvent.d.ts +15 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractSuspendedDomainEvent.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractActivatedPayload.d.ts +23 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractActivatedPayload.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractCancelledPayload.d.ts +16 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractCancelledPayload.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractExpiredPayload.d.ts +17 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractExpiredPayload.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractRenewedPayload.d.ts +18 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractRenewedPayload.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractServiceAddedPayload.d.ts +17 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractServiceAddedPayload.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractServiceRemovedPayload.d.ts +18 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractServiceRemovedPayload.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractSuspendedPayload.d.ts +18 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractSuspendedPayload.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/entity/CompanyServiceEntitlement.d.ts +40 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/entity/CompanyServiceEntitlement.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/entity/ICompanyServiceEntitlement.d.ts +32 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/entity/ICompanyServiceEntitlement.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/policies/ServiceCapabilityPolicy.d.ts +77 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/policies/ServiceCapabilityPolicy.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/repository/ICompanyServiceEntitlementRepository.d.ts +12 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/repository/ICompanyServiceEntitlementRepository.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/types/CompanyServiceEntitlementPrimitives.d.ts +18 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/types/CompanyServiceEntitlementPrimitives.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/types/CompanyServiceEntitlementProjection.d.ts +30 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/types/CompanyServiceEntitlementProjection.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/types/CompanyServiceEntitlementProps.d.ts +18 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/types/CompanyServiceEntitlementProps.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/types/EntitlementInputContract.d.ts +30 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/types/EntitlementInputContract.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/types/EntitlementInputServiceCatalog.d.ts +32 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/types/EntitlementInputServiceCatalog.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementActiveServiceCodes.d.ts +10 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementActiveServiceCodes.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementAdditionalUserRoles.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementAdditionalUserRoles.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementAllowsDocumentReading.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementAllowsDocumentReading.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementAllowsSectoralComparison.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementAllowsSectoralComparison.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementCarbonClientId.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementCarbonClientId.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementId.d.ts +11 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementId.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIncludesCarbonBoxAcademy.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIncludesCarbonBoxAcademy.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIncludesEsgIndicators.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIncludesEsgIndicators.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIsAvailableForCorporate.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIsAvailableForCorporate.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIsAvailableForEvent.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIsAvailableForEvent.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIsAvailableForProduct.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIsAvailableForProduct.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementMaxUsers.d.ts +10 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementMaxUsers.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementSourceContractIds.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementSourceContractIds.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementValidFrom.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementValidFrom.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementValidTo.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementValidTo.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/enums/SemanticUuidPrefix.d.ts +1 -0
- package/build/types/carbonbox/shared/domain/enums/SemanticUuidPrefix.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/RootError.d.ts +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/RootError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/PositiveInteger.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/value-objects/PositiveInteger.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/ValueObject.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/value-objects/ValueObject.d.ts.map +1 -1
- package/build/types/main/index.d.ts +38 -0
- package/build/types/main/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -7,16 +7,10 @@ class PositiveInteger extends Numeric_1.Numeric {
|
|
|
7
7
|
constructor(value, skipDomainValidation, propertyName) {
|
|
8
8
|
super(value, skipDomainValidation, propertyName, PositiveInteger.POSITIVE_INTEGER_OPTIONS);
|
|
9
9
|
}
|
|
10
|
-
add(
|
|
11
|
-
const result = this.value + other.value;
|
|
12
|
-
const _ = { result, propertyName };
|
|
13
|
-
console.log(_, 'PositiveInteger.add');
|
|
10
|
+
add(_other, _propertyName) {
|
|
14
11
|
throw MethodNotImplementedError_1.MethodNotImplementedError.create('add');
|
|
15
12
|
}
|
|
16
|
-
subtract(
|
|
17
|
-
const result = this.value - other.value;
|
|
18
|
-
const _ = { result, propertyName };
|
|
19
|
-
console.log(_, 'PositiveInteger.subtract');
|
|
13
|
+
subtract(_other, _propertyName) {
|
|
20
14
|
throw MethodNotImplementedError_1.MethodNotImplementedError.create('subtract');
|
|
21
15
|
}
|
|
22
16
|
static isValidPositiveInteger(value) {
|
|
@@ -33,20 +33,14 @@ class ValueObject {
|
|
|
33
33
|
/**
|
|
34
34
|
* Método de fábrica abstracto que debe ser implementado por cada subclase.
|
|
35
35
|
*/
|
|
36
|
-
static create(...
|
|
37
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
38
|
-
const _ = args;
|
|
39
|
-
console.log(_, 'ValueObject.create');
|
|
36
|
+
static create(..._args) {
|
|
40
37
|
throw MethodNotImplementedError_1.MethodNotImplementedError.create('create');
|
|
41
38
|
}
|
|
42
39
|
/**
|
|
43
40
|
* Método abstracto que obliga a las subclases a definir cómo se crean a partir de tipos primitivos.
|
|
44
41
|
* Útil para reconstruir el VO desde datos persistidos o API.
|
|
45
42
|
*/
|
|
46
|
-
static fromPrimitives(...
|
|
47
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
48
|
-
const _ = args;
|
|
49
|
-
console.log(_, 'ValueObject.fromPrimitives');
|
|
43
|
+
static fromPrimitives(..._args) {
|
|
50
44
|
throw MethodNotImplementedError_1.MethodNotImplementedError.create('fromPrimitives');
|
|
51
45
|
}
|
|
52
46
|
get value() {
|
package/build/main/index.js
CHANGED
|
@@ -19,7 +19,7 @@ exports.ProductConfigurationCarbonFootprintSegmentReference = exports.ProductCar
|
|
|
19
19
|
exports.EmptyTaxIdentificationNumberError = exports.EmptySegmentNameError = exports.EmptySegmentCodeError = exports.EmptyDisplayNameError = exports.DateGreaterThanError = exports.InvalidUserBusinessStatusError = exports.InvalidUserTypeError = exports.DivisionByZeroError = exports.MoneyOverflowError = exports.NotIntegerError = exports.NegativeAmountError = exports.MinimumValueViolationError = exports.InvalidUrlListError = exports.InvalidCodeListError = exports.InvalidStringListError = exports.EmptyArrayNotAllowedError = exports.PasswordPolicyViolationError = exports.InvalidNationalNumberError = exports.InvalidFullInternationalNumberError = exports.InvalidEmailPolicyError = exports.InvalidCoordinatesError = exports.InvalidTimeFormatError = exports.InvalidDateRangeError = exports.InvalidDateFormatError = exports.InvalidColombianNITNumberError = exports.InvalidColombianNITCheckDigitError = exports.InvalidColombianNITFormatError = exports.InvalidTaxIdentificationTypeError = exports.InvalidStakeholderRoleTypeError = exports.InvalidGenderError = exports.InvalidCurrencyError = exports.InvalidCountryCodeError = exports.InvalidBusinessScaleError = exports.UnknownBoundedContextCodeError = exports.InvalidUuidFormatError = exports.InvalidUserPrefixError = exports.InvalidUserIdFormatError = exports.InvalidSemanticUuidFormatError = exports.InvalidAggregateIdFormatError = exports.InvalidPropertyValueError = exports.InvalidPropertyTypeError = exports.InvalidValueObjectConfigurationError = exports.UndefinedValueError = exports.NullValueError = exports.MethodNotImplementedError = exports.CreateMethodNotImplementedError = exports.ServiceCatalogReference = exports.ProductReference = exports.ProductConfigurationSystemBoundaryReference = exports.ProductConfigurationCarbonFootprintSubsegmentReference = void 0;
|
|
20
20
|
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.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 = exports.InvalidTaxIdentificationNumberFormatError = exports.InvalidSupervisorRoleError = exports.InvalidMinutesDurationError = exports.InvalidMeasurementUnitOperationError = exports.InvalidManagedStakeholderRoleError = exports.InvalidDomainCodeError = exports.InvalidCountrySpecificTaxIdentificationNumberError = exports.InvalidCodeError = exports.InvalidAssignerRoleError = exports.InvalidAggregateIdError = void 0;
|
|
21
21
|
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 = exports.CarbonClientBusinessStatus = exports.CarbonClientLastAccessAt = exports.CarbonClientSupervisedByStakeholder = exports.CarbonClientRoleType = exports.CarbonClientTaxIdentification = exports.CarbonClientPrimaryContactPhone = exports.CarbonClientPrimaryContactEmail = exports.CarbonClientLogo = void 0;
|
|
22
|
-
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.UserCreationDomainService = exports.AggregateIdDomainService = exports.DateTimeFormattingDomainService = exports.InvalidCarbonCoordinatorAvailabilityStatusError = exports.InvalidCarbonClientAccountTypeError = void 0;
|
|
22
|
+
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.UserCreationDomainService = exports.AggregateIdDomainService = exports.DateTimeFormattingDomainService = exports.InvalidCarbonCoordinatorAvailabilityStatusError = exports.InvalidCarbonClientAccountTypeError = void 0;
|
|
23
23
|
// ─── Entity Classes (For Application Layer) ─────────────────────────────────
|
|
24
24
|
var ActivityDataSubmission_1 = require("../carbonbox/activity-data-collection/activity-data-submissions/domain/entity/ActivityDataSubmission");
|
|
25
25
|
Object.defineProperty(exports, "ActivityDataSubmission", { enumerable: true, get: function () { return ActivityDataSubmission_1.ActivityDataSubmission; } });
|
|
@@ -1815,3 +1815,53 @@ var CalculationProcessCompletedDomainEvent_1 = require("../carbonbox/emission-ca
|
|
|
1815
1815
|
Object.defineProperty(exports, "CalculationProcessCompletedDomainEvent", { enumerable: true, get: function () { return CalculationProcessCompletedDomainEvent_1.CalculationProcessCompletedDomainEvent; } });
|
|
1816
1816
|
var CalculationProcessFailedDomainEvent_1 = require("../carbonbox/emission-calculation-process/calculation-processes/domain/events/CalculationProcessFailedDomainEvent");
|
|
1817
1817
|
Object.defineProperty(exports, "CalculationProcessFailedDomainEvent", { enumerable: true, get: function () { return CalculationProcessFailedDomainEvent_1.CalculationProcessFailedDomainEvent; } });
|
|
1818
|
+
// ─── Purchase Contract Events (DT-62) ───────────────────────────────────────
|
|
1819
|
+
var PurchaseContractActivatedDomainEvent_1 = require("../carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractActivatedDomainEvent");
|
|
1820
|
+
Object.defineProperty(exports, "PurchaseContractActivatedDomainEvent", { enumerable: true, get: function () { return PurchaseContractActivatedDomainEvent_1.PurchaseContractActivatedDomainEvent; } });
|
|
1821
|
+
var PurchaseContractSuspendedDomainEvent_1 = require("../carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractSuspendedDomainEvent");
|
|
1822
|
+
Object.defineProperty(exports, "PurchaseContractSuspendedDomainEvent", { enumerable: true, get: function () { return PurchaseContractSuspendedDomainEvent_1.PurchaseContractSuspendedDomainEvent; } });
|
|
1823
|
+
var PurchaseContractCancelledDomainEvent_1 = require("../carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractCancelledDomainEvent");
|
|
1824
|
+
Object.defineProperty(exports, "PurchaseContractCancelledDomainEvent", { enumerable: true, get: function () { return PurchaseContractCancelledDomainEvent_1.PurchaseContractCancelledDomainEvent; } });
|
|
1825
|
+
var PurchaseContractExpiredDomainEvent_1 = require("../carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractExpiredDomainEvent");
|
|
1826
|
+
Object.defineProperty(exports, "PurchaseContractExpiredDomainEvent", { enumerable: true, get: function () { return PurchaseContractExpiredDomainEvent_1.PurchaseContractExpiredDomainEvent; } });
|
|
1827
|
+
var PurchaseContractRenewedDomainEvent_1 = require("../carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractRenewedDomainEvent");
|
|
1828
|
+
Object.defineProperty(exports, "PurchaseContractRenewedDomainEvent", { enumerable: true, get: function () { return PurchaseContractRenewedDomainEvent_1.PurchaseContractRenewedDomainEvent; } });
|
|
1829
|
+
var PurchaseContractServiceAddedDomainEvent_1 = require("../carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractServiceAddedDomainEvent");
|
|
1830
|
+
Object.defineProperty(exports, "PurchaseContractServiceAddedDomainEvent", { enumerable: true, get: function () { return PurchaseContractServiceAddedDomainEvent_1.PurchaseContractServiceAddedDomainEvent; } });
|
|
1831
|
+
var PurchaseContractServiceRemovedDomainEvent_1 = require("../carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractServiceRemovedDomainEvent");
|
|
1832
|
+
Object.defineProperty(exports, "PurchaseContractServiceRemovedDomainEvent", { enumerable: true, get: function () { return PurchaseContractServiceRemovedDomainEvent_1.PurchaseContractServiceRemovedDomainEvent; } });
|
|
1833
|
+
var CompanyServiceEntitlement_1 = require("../carbonbox/purchase-management-system/service-entitlements/domain/entity/CompanyServiceEntitlement");
|
|
1834
|
+
Object.defineProperty(exports, "CompanyServiceEntitlement", { enumerable: true, get: function () { return CompanyServiceEntitlement_1.CompanyServiceEntitlement; } });
|
|
1835
|
+
var ServiceCapabilityPolicy_1 = require("../carbonbox/purchase-management-system/service-entitlements/domain/policies/ServiceCapabilityPolicy");
|
|
1836
|
+
Object.defineProperty(exports, "ServiceCapabilityPolicy", { enumerable: true, get: function () { return ServiceCapabilityPolicy_1.ServiceCapabilityPolicy; } });
|
|
1837
|
+
// Service Entitlements Value Objects
|
|
1838
|
+
var CompanyServiceEntitlementId_1 = require("../carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementId");
|
|
1839
|
+
Object.defineProperty(exports, "CompanyServiceEntitlementId", { enumerable: true, get: function () { return CompanyServiceEntitlementId_1.CompanyServiceEntitlementId; } });
|
|
1840
|
+
var CompanyServiceEntitlementCarbonClientId_1 = require("../carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementCarbonClientId");
|
|
1841
|
+
Object.defineProperty(exports, "CompanyServiceEntitlementCarbonClientId", { enumerable: true, get: function () { return CompanyServiceEntitlementCarbonClientId_1.CompanyServiceEntitlementCarbonClientId; } });
|
|
1842
|
+
var CompanyServiceEntitlementActiveServiceCodes_1 = require("../carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementActiveServiceCodes");
|
|
1843
|
+
Object.defineProperty(exports, "CompanyServiceEntitlementActiveServiceCodes", { enumerable: true, get: function () { return CompanyServiceEntitlementActiveServiceCodes_1.CompanyServiceEntitlementActiveServiceCodes; } });
|
|
1844
|
+
var CompanyServiceEntitlementSourceContractIds_1 = require("../carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementSourceContractIds");
|
|
1845
|
+
Object.defineProperty(exports, "CompanyServiceEntitlementSourceContractIds", { enumerable: true, get: function () { return CompanyServiceEntitlementSourceContractIds_1.CompanyServiceEntitlementSourceContractIds; } });
|
|
1846
|
+
var CompanyServiceEntitlementAllowsDocumentReading_1 = require("../carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementAllowsDocumentReading");
|
|
1847
|
+
Object.defineProperty(exports, "CompanyServiceEntitlementAllowsDocumentReading", { enumerable: true, get: function () { return CompanyServiceEntitlementAllowsDocumentReading_1.CompanyServiceEntitlementAllowsDocumentReading; } });
|
|
1848
|
+
var CompanyServiceEntitlementAllowsSectoralComparison_1 = require("../carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementAllowsSectoralComparison");
|
|
1849
|
+
Object.defineProperty(exports, "CompanyServiceEntitlementAllowsSectoralComparison", { enumerable: true, get: function () { return CompanyServiceEntitlementAllowsSectoralComparison_1.CompanyServiceEntitlementAllowsSectoralComparison; } });
|
|
1850
|
+
var CompanyServiceEntitlementIncludesCarbonBoxAcademy_1 = require("../carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIncludesCarbonBoxAcademy");
|
|
1851
|
+
Object.defineProperty(exports, "CompanyServiceEntitlementIncludesCarbonBoxAcademy", { enumerable: true, get: function () { return CompanyServiceEntitlementIncludesCarbonBoxAcademy_1.CompanyServiceEntitlementIncludesCarbonBoxAcademy; } });
|
|
1852
|
+
var CompanyServiceEntitlementIncludesEsgIndicators_1 = require("../carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIncludesEsgIndicators");
|
|
1853
|
+
Object.defineProperty(exports, "CompanyServiceEntitlementIncludesEsgIndicators", { enumerable: true, get: function () { return CompanyServiceEntitlementIncludesEsgIndicators_1.CompanyServiceEntitlementIncludesEsgIndicators; } });
|
|
1854
|
+
var CompanyServiceEntitlementIsAvailableForCorporate_1 = require("../carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIsAvailableForCorporate");
|
|
1855
|
+
Object.defineProperty(exports, "CompanyServiceEntitlementIsAvailableForCorporate", { enumerable: true, get: function () { return CompanyServiceEntitlementIsAvailableForCorporate_1.CompanyServiceEntitlementIsAvailableForCorporate; } });
|
|
1856
|
+
var CompanyServiceEntitlementIsAvailableForProduct_1 = require("../carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIsAvailableForProduct");
|
|
1857
|
+
Object.defineProperty(exports, "CompanyServiceEntitlementIsAvailableForProduct", { enumerable: true, get: function () { return CompanyServiceEntitlementIsAvailableForProduct_1.CompanyServiceEntitlementIsAvailableForProduct; } });
|
|
1858
|
+
var CompanyServiceEntitlementIsAvailableForEvent_1 = require("../carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementIsAvailableForEvent");
|
|
1859
|
+
Object.defineProperty(exports, "CompanyServiceEntitlementIsAvailableForEvent", { enumerable: true, get: function () { return CompanyServiceEntitlementIsAvailableForEvent_1.CompanyServiceEntitlementIsAvailableForEvent; } });
|
|
1860
|
+
var CompanyServiceEntitlementMaxUsers_1 = require("../carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementMaxUsers");
|
|
1861
|
+
Object.defineProperty(exports, "CompanyServiceEntitlementMaxUsers", { enumerable: true, get: function () { return CompanyServiceEntitlementMaxUsers_1.CompanyServiceEntitlementMaxUsers; } });
|
|
1862
|
+
var CompanyServiceEntitlementAdditionalUserRoles_1 = require("../carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementAdditionalUserRoles");
|
|
1863
|
+
Object.defineProperty(exports, "CompanyServiceEntitlementAdditionalUserRoles", { enumerable: true, get: function () { return CompanyServiceEntitlementAdditionalUserRoles_1.CompanyServiceEntitlementAdditionalUserRoles; } });
|
|
1864
|
+
var CompanyServiceEntitlementValidFrom_1 = require("../carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementValidFrom");
|
|
1865
|
+
Object.defineProperty(exports, "CompanyServiceEntitlementValidFrom", { enumerable: true, get: function () { return CompanyServiceEntitlementValidFrom_1.CompanyServiceEntitlementValidFrom; } });
|
|
1866
|
+
var CompanyServiceEntitlementValidTo_1 = require("../carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementValidTo");
|
|
1867
|
+
Object.defineProperty(exports, "CompanyServiceEntitlementValidTo", { enumerable: true, get: function () { return CompanyServiceEntitlementValidTo_1.CompanyServiceEntitlementValidTo; } });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DomainEvent } from '../../../../shared/domain/events/DomainEvent';
|
|
2
|
+
import { DomainEventName } from '../../../../shared/domain/events/DomainEventName';
|
|
3
|
+
import { DomainEventFromPrimitivesInput } from '../../../../shared/domain/types/DomainEventFromPrimitivesInput';
|
|
4
|
+
import { PurchaseContractActivatedPayload } from '../types/PurchaseContractActivatedPayload';
|
|
5
|
+
export declare class PurchaseContractActivatedDomainEvent extends DomainEvent<PurchaseContractActivatedPayload> {
|
|
6
|
+
#private;
|
|
7
|
+
static readonly NAME: DomainEventName;
|
|
8
|
+
readonly name: DomainEventName;
|
|
9
|
+
readonly aggregateId: string;
|
|
10
|
+
private constructor();
|
|
11
|
+
static create(payload: PurchaseContractActivatedPayload): PurchaseContractActivatedDomainEvent;
|
|
12
|
+
static fromPrimitives(primitives: DomainEventFromPrimitivesInput<PurchaseContractActivatedPayload>): PurchaseContractActivatedDomainEvent;
|
|
13
|
+
get payload(): PurchaseContractActivatedPayload;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=PurchaseContractActivatedDomainEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PurchaseContractActivatedDomainEvent.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractActivatedDomainEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,8BAA8B,EAAE,MAAM,gEAAgE,CAAC;AAChH,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAE7F,qBAAa,oCAAqC,SAAQ,WAAW,CAAC,gCAAgC,CAAC;;IACrG,gBAAuB,IAAI,EAAE,eAAe,CAAuD;IAEnG,SAAgB,IAAI,EAAE,eAAe,CAA6C;IAElF,SAAgB,WAAW,EAAE,MAAM,CAAC;IAIpC,OAAO;WAMO,MAAM,CAAC,OAAO,EAAE,gCAAgC,GAAG,oCAAoC;WAIvF,cAAc,CAC1B,UAAU,EAAE,8BAA8B,CAAC,gCAAgC,CAAC,GAC3E,oCAAoC;IAIvC,IAAoB,OAAO,IAAI,gCAAgC,CAE9D;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DomainEvent } from '../../../../shared/domain/events/DomainEvent';
|
|
2
|
+
import { DomainEventName } from '../../../../shared/domain/events/DomainEventName';
|
|
3
|
+
import { DomainEventFromPrimitivesInput } from '../../../../shared/domain/types/DomainEventFromPrimitivesInput';
|
|
4
|
+
import { PurchaseContractCancelledPayload } from '../types/PurchaseContractCancelledPayload';
|
|
5
|
+
export declare class PurchaseContractCancelledDomainEvent extends DomainEvent<PurchaseContractCancelledPayload> {
|
|
6
|
+
#private;
|
|
7
|
+
static readonly NAME: DomainEventName;
|
|
8
|
+
readonly name: DomainEventName;
|
|
9
|
+
readonly aggregateId: string;
|
|
10
|
+
private constructor();
|
|
11
|
+
static create(payload: PurchaseContractCancelledPayload): PurchaseContractCancelledDomainEvent;
|
|
12
|
+
static fromPrimitives(primitives: DomainEventFromPrimitivesInput<PurchaseContractCancelledPayload>): PurchaseContractCancelledDomainEvent;
|
|
13
|
+
get payload(): PurchaseContractCancelledPayload;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=PurchaseContractCancelledDomainEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PurchaseContractCancelledDomainEvent.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractCancelledDomainEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,8BAA8B,EAAE,MAAM,gEAAgE,CAAC;AAChH,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAE7F,qBAAa,oCAAqC,SAAQ,WAAW,CAAC,gCAAgC,CAAC;;IACrG,gBAAuB,IAAI,EAAE,eAAe,CAAuD;IAEnG,SAAgB,IAAI,EAAE,eAAe,CAA6C;IAElF,SAAgB,WAAW,EAAE,MAAM,CAAC;IAIpC,OAAO;WAMO,MAAM,CAAC,OAAO,EAAE,gCAAgC,GAAG,oCAAoC;WAIvF,cAAc,CAC1B,UAAU,EAAE,8BAA8B,CAAC,gCAAgC,CAAC,GAC3E,oCAAoC;IAIvC,IAAoB,OAAO,IAAI,gCAAgC,CAE9D;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DomainEvent } from '../../../../shared/domain/events/DomainEvent';
|
|
2
|
+
import { DomainEventName } from '../../../../shared/domain/events/DomainEventName';
|
|
3
|
+
import { DomainEventFromPrimitivesInput } from '../../../../shared/domain/types/DomainEventFromPrimitivesInput';
|
|
4
|
+
import { PurchaseContractExpiredPayload } from '../types/PurchaseContractExpiredPayload';
|
|
5
|
+
export declare class PurchaseContractExpiredDomainEvent extends DomainEvent<PurchaseContractExpiredPayload> {
|
|
6
|
+
#private;
|
|
7
|
+
static readonly NAME: DomainEventName;
|
|
8
|
+
readonly name: DomainEventName;
|
|
9
|
+
readonly aggregateId: string;
|
|
10
|
+
private constructor();
|
|
11
|
+
static create(payload: PurchaseContractExpiredPayload): PurchaseContractExpiredDomainEvent;
|
|
12
|
+
static fromPrimitives(primitives: DomainEventFromPrimitivesInput<PurchaseContractExpiredPayload>): PurchaseContractExpiredDomainEvent;
|
|
13
|
+
get payload(): PurchaseContractExpiredPayload;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=PurchaseContractExpiredDomainEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PurchaseContractExpiredDomainEvent.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractExpiredDomainEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,8BAA8B,EAAE,MAAM,gEAAgE,CAAC;AAChH,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAEzF,qBAAa,kCAAmC,SAAQ,WAAW,CAAC,8BAA8B,CAAC;;IACjG,gBAAuB,IAAI,EAAE,eAAe,CAAqD;IAEjG,SAAgB,IAAI,EAAE,eAAe,CAA2C;IAEhF,SAAgB,WAAW,EAAE,MAAM,CAAC;IAIpC,OAAO;WAMO,MAAM,CAAC,OAAO,EAAE,8BAA8B,GAAG,kCAAkC;WAInF,cAAc,CAC1B,UAAU,EAAE,8BAA8B,CAAC,8BAA8B,CAAC,GACzE,kCAAkC;IAIrC,IAAoB,OAAO,IAAI,8BAA8B,CAE5D;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DomainEvent } from '../../../../shared/domain/events/DomainEvent';
|
|
2
|
+
import { DomainEventName } from '../../../../shared/domain/events/DomainEventName';
|
|
3
|
+
import { DomainEventFromPrimitivesInput } from '../../../../shared/domain/types/DomainEventFromPrimitivesInput';
|
|
4
|
+
import { PurchaseContractRenewedPayload } from '../types/PurchaseContractRenewedPayload';
|
|
5
|
+
export declare class PurchaseContractRenewedDomainEvent extends DomainEvent<PurchaseContractRenewedPayload> {
|
|
6
|
+
#private;
|
|
7
|
+
static readonly NAME: DomainEventName;
|
|
8
|
+
readonly name: DomainEventName;
|
|
9
|
+
readonly aggregateId: string;
|
|
10
|
+
private constructor();
|
|
11
|
+
static create(payload: PurchaseContractRenewedPayload): PurchaseContractRenewedDomainEvent;
|
|
12
|
+
static fromPrimitives(primitives: DomainEventFromPrimitivesInput<PurchaseContractRenewedPayload>): PurchaseContractRenewedDomainEvent;
|
|
13
|
+
get payload(): PurchaseContractRenewedPayload;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=PurchaseContractRenewedDomainEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PurchaseContractRenewedDomainEvent.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractRenewedDomainEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,8BAA8B,EAAE,MAAM,gEAAgE,CAAC;AAChH,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAEzF,qBAAa,kCAAmC,SAAQ,WAAW,CAAC,8BAA8B,CAAC;;IACjG,gBAAuB,IAAI,EAAE,eAAe,CAAqD;IAEjG,SAAgB,IAAI,EAAE,eAAe,CAA2C;IAEhF,SAAgB,WAAW,EAAE,MAAM,CAAC;IAIpC,OAAO;WAMO,MAAM,CAAC,OAAO,EAAE,8BAA8B,GAAG,kCAAkC;WAInF,cAAc,CAC1B,UAAU,EAAE,8BAA8B,CAAC,8BAA8B,CAAC,GACzE,kCAAkC;IAIrC,IAAoB,OAAO,IAAI,8BAA8B,CAE5D;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DomainEvent } from '../../../../shared/domain/events/DomainEvent';
|
|
2
|
+
import { DomainEventName } from '../../../../shared/domain/events/DomainEventName';
|
|
3
|
+
import { DomainEventFromPrimitivesInput } from '../../../../shared/domain/types/DomainEventFromPrimitivesInput';
|
|
4
|
+
import { PurchaseContractServiceAddedPayload } from '../types/PurchaseContractServiceAddedPayload';
|
|
5
|
+
export declare class PurchaseContractServiceAddedDomainEvent extends DomainEvent<PurchaseContractServiceAddedPayload> {
|
|
6
|
+
#private;
|
|
7
|
+
static readonly NAME: DomainEventName;
|
|
8
|
+
readonly name: DomainEventName;
|
|
9
|
+
readonly aggregateId: string;
|
|
10
|
+
private constructor();
|
|
11
|
+
static create(payload: PurchaseContractServiceAddedPayload): PurchaseContractServiceAddedDomainEvent;
|
|
12
|
+
static fromPrimitives(primitives: DomainEventFromPrimitivesInput<PurchaseContractServiceAddedPayload>): PurchaseContractServiceAddedDomainEvent;
|
|
13
|
+
get payload(): PurchaseContractServiceAddedPayload;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=PurchaseContractServiceAddedDomainEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PurchaseContractServiceAddedDomainEvent.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractServiceAddedDomainEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,8BAA8B,EAAE,MAAM,gEAAgE,CAAC;AAChH,OAAO,EAAE,mCAAmC,EAAE,MAAM,8CAA8C,CAAC;AAEnG,qBAAa,uCAAwC,SAAQ,WAAW,CAAC,mCAAmC,CAAC;;IAC3G,gBAAuB,IAAI,EAAE,eAAe,CAA0D;IAEtG,SAAgB,IAAI,EAAE,eAAe,CAAgD;IAErF,SAAgB,WAAW,EAAE,MAAM,CAAC;IAIpC,OAAO;WAMO,MAAM,CAAC,OAAO,EAAE,mCAAmC,GAAG,uCAAuC;WAI7F,cAAc,CAC1B,UAAU,EAAE,8BAA8B,CAAC,mCAAmC,CAAC,GAC9E,uCAAuC;IAI1C,IAAoB,OAAO,IAAI,mCAAmC,CAEjE;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DomainEvent } from '../../../../shared/domain/events/DomainEvent';
|
|
2
|
+
import { DomainEventName } from '../../../../shared/domain/events/DomainEventName';
|
|
3
|
+
import { DomainEventFromPrimitivesInput } from '../../../../shared/domain/types/DomainEventFromPrimitivesInput';
|
|
4
|
+
import { PurchaseContractServiceRemovedPayload } from '../types/PurchaseContractServiceRemovedPayload';
|
|
5
|
+
export declare class PurchaseContractServiceRemovedDomainEvent extends DomainEvent<PurchaseContractServiceRemovedPayload> {
|
|
6
|
+
#private;
|
|
7
|
+
static readonly NAME: DomainEventName;
|
|
8
|
+
readonly name: DomainEventName;
|
|
9
|
+
readonly aggregateId: string;
|
|
10
|
+
private constructor();
|
|
11
|
+
static create(payload: PurchaseContractServiceRemovedPayload): PurchaseContractServiceRemovedDomainEvent;
|
|
12
|
+
static fromPrimitives(primitives: DomainEventFromPrimitivesInput<PurchaseContractServiceRemovedPayload>): PurchaseContractServiceRemovedDomainEvent;
|
|
13
|
+
get payload(): PurchaseContractServiceRemovedPayload;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=PurchaseContractServiceRemovedDomainEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PurchaseContractServiceRemovedDomainEvent.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractServiceRemovedDomainEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,8BAA8B,EAAE,MAAM,gEAAgE,CAAC;AAChH,OAAO,EAAE,qCAAqC,EAAE,MAAM,gDAAgD,CAAC;AAEvG,qBAAa,yCAA0C,SAAQ,WAAW,CAAC,qCAAqC,CAAC;;IAC/G,gBAAuB,IAAI,EAAE,eAAe,CAA4D;IAExG,SAAgB,IAAI,EAAE,eAAe,CAAkD;IAEvF,SAAgB,WAAW,EAAE,MAAM,CAAC;IAIpC,OAAO;WAMO,MAAM,CAAC,OAAO,EAAE,qCAAqC,GAAG,yCAAyC;WAIjG,cAAc,CAC1B,UAAU,EAAE,8BAA8B,CAAC,qCAAqC,CAAC,GAChF,yCAAyC;IAI5C,IAAoB,OAAO,IAAI,qCAAqC,CAEnE;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DomainEvent } from '../../../../shared/domain/events/DomainEvent';
|
|
2
|
+
import { DomainEventName } from '../../../../shared/domain/events/DomainEventName';
|
|
3
|
+
import { DomainEventFromPrimitivesInput } from '../../../../shared/domain/types/DomainEventFromPrimitivesInput';
|
|
4
|
+
import { PurchaseContractSuspendedPayload } from '../types/PurchaseContractSuspendedPayload';
|
|
5
|
+
export declare class PurchaseContractSuspendedDomainEvent extends DomainEvent<PurchaseContractSuspendedPayload> {
|
|
6
|
+
#private;
|
|
7
|
+
static readonly NAME: DomainEventName;
|
|
8
|
+
readonly name: DomainEventName;
|
|
9
|
+
readonly aggregateId: string;
|
|
10
|
+
private constructor();
|
|
11
|
+
static create(payload: PurchaseContractSuspendedPayload): PurchaseContractSuspendedDomainEvent;
|
|
12
|
+
static fromPrimitives(primitives: DomainEventFromPrimitivesInput<PurchaseContractSuspendedPayload>): PurchaseContractSuspendedDomainEvent;
|
|
13
|
+
get payload(): PurchaseContractSuspendedPayload;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=PurchaseContractSuspendedDomainEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PurchaseContractSuspendedDomainEvent.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/purchase-contracts/domain/events/PurchaseContractSuspendedDomainEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,8BAA8B,EAAE,MAAM,gEAAgE,CAAC;AAChH,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAE7F,qBAAa,oCAAqC,SAAQ,WAAW,CAAC,gCAAgC,CAAC;;IACrG,gBAAuB,IAAI,EAAE,eAAe,CAAuD;IAEnG,SAAgB,IAAI,EAAE,eAAe,CAA6C;IAElF,SAAgB,WAAW,EAAE,MAAM,CAAC;IAIpC,OAAO;WAMO,MAAM,CAAC,OAAO,EAAE,gCAAgC,GAAG,oCAAoC;WAIvF,cAAc,CAC1B,UAAU,EAAE,8BAA8B,CAAC,gCAAgC,CAAC,GAC3E,oCAAoC;IAIvC,IAAoB,OAAO,IAAI,gCAAgC,CAE9D;CACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Payload of `PurchaseContractActivatedDomainEvent` — published when a
|
|
3
|
+
* `PurchaseContract` transitions to `ACTIVE` (signatures complete and
|
|
4
|
+
* the activation command succeeded). The `service-entitlements` read
|
|
5
|
+
* model subscribes to this event to recompute the active services of
|
|
6
|
+
* the originating `carbonClientId` (the carbon footprint / activity
|
|
7
|
+
* data collection / company-resources modules then gate their writes
|
|
8
|
+
* on that projection — see DT-62).
|
|
9
|
+
*
|
|
10
|
+
* `serviceCodes` snapshots the codes of every `ContractService`
|
|
11
|
+
* attached to the contract at activation time so the projection can
|
|
12
|
+
* update without re-querying the writer.
|
|
13
|
+
*/
|
|
14
|
+
export type PurchaseContractActivatedPayload = Readonly<{
|
|
15
|
+
contractId: string;
|
|
16
|
+
carbonClientId: string;
|
|
17
|
+
status: string;
|
|
18
|
+
serviceCodes: ReadonlyArray<string>;
|
|
19
|
+
startDate: string;
|
|
20
|
+
endDate: string;
|
|
21
|
+
activatedAt: string;
|
|
22
|
+
}>;
|
|
23
|
+
//# sourceMappingURL=PurchaseContractActivatedPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PurchaseContractActivatedPayload.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractActivatedPayload.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,gCAAgC,GAAG,QAAQ,CAAC;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Payload of `PurchaseContractCancelledDomainEvent` — published when a
|
|
3
|
+
* `PurchaseContract` transitions to `CANCELLED` (terminated before its
|
|
4
|
+
* natural end). Like `…Suspended` and `…Expired`, this is a terminal
|
|
5
|
+
* non-entitling state — the `service-entitlements` projection drops
|
|
6
|
+
* the services contributed by this contract from the active set of
|
|
7
|
+
* the originating `carbonClientId`.
|
|
8
|
+
*/
|
|
9
|
+
export type PurchaseContractCancelledPayload = Readonly<{
|
|
10
|
+
contractId: string;
|
|
11
|
+
carbonClientId: string;
|
|
12
|
+
status: string;
|
|
13
|
+
serviceCodes: ReadonlyArray<string>;
|
|
14
|
+
cancelledAt: string;
|
|
15
|
+
}>;
|
|
16
|
+
//# sourceMappingURL=PurchaseContractCancelledPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PurchaseContractCancelledPayload.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractCancelledPayload.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,gCAAgC,GAAG,QAAQ,CAAC;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Payload of `PurchaseContractExpiredDomainEvent` — published when a
|
|
3
|
+
* `PurchaseContract` transitions to `EXPIRED` because its `endDate`
|
|
4
|
+
* elapsed. Emitted by the scheduled system handler
|
|
5
|
+
* `ExpirePurchaseContractsCommandHandler` (cron, no `UserContext`),
|
|
6
|
+
* NOT by user-issued commands. The `service-entitlements` projection
|
|
7
|
+
* subscribes to drop the services contributed by this contract.
|
|
8
|
+
*/
|
|
9
|
+
export type PurchaseContractExpiredPayload = Readonly<{
|
|
10
|
+
contractId: string;
|
|
11
|
+
carbonClientId: string;
|
|
12
|
+
status: string;
|
|
13
|
+
serviceCodes: ReadonlyArray<string>;
|
|
14
|
+
endDate: string;
|
|
15
|
+
expiredAt: string;
|
|
16
|
+
}>;
|
|
17
|
+
//# sourceMappingURL=PurchaseContractExpiredPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PurchaseContractExpiredPayload.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractExpiredPayload.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,8BAA8B,GAAG,QAAQ,CAAC;IACpD,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Payload of `PurchaseContractRenewedDomainEvent` — published when a
|
|
3
|
+
* `PurchaseContract` is renewed: the dates roll forward (new
|
|
4
|
+
* `startDate`/`endDate`) but the entitlements stay continuous from
|
|
5
|
+
* the consumer's point of view. The `service-entitlements` projection
|
|
6
|
+
* subscribes to refresh `validFrom`/`validTo` for the originating
|
|
7
|
+
* `carbonClientId` without dropping services in between.
|
|
8
|
+
*/
|
|
9
|
+
export type PurchaseContractRenewedPayload = Readonly<{
|
|
10
|
+
contractId: string;
|
|
11
|
+
carbonClientId: string;
|
|
12
|
+
status: string;
|
|
13
|
+
serviceCodes: ReadonlyArray<string>;
|
|
14
|
+
startDate: string;
|
|
15
|
+
endDate: string;
|
|
16
|
+
renewedAt: string;
|
|
17
|
+
}>;
|
|
18
|
+
//# sourceMappingURL=PurchaseContractRenewedPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PurchaseContractRenewedPayload.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractRenewedPayload.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,8BAA8B,GAAG,QAAQ,CAAC;IACpD,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Payload of `PurchaseContractServiceAddedDomainEvent` — published when
|
|
3
|
+
* a new `ContractService` is appended to an existing `PurchaseContract`
|
|
4
|
+
* (mid-life amendment). The `service-entitlements` projection
|
|
5
|
+
* subscribes to add the new `serviceCode` to the active set of the
|
|
6
|
+
* originating `carbonClientId` immediately (no need to wait for a full
|
|
7
|
+
* recompute from `…Activated`).
|
|
8
|
+
*/
|
|
9
|
+
export type PurchaseContractServiceAddedPayload = Readonly<{
|
|
10
|
+
contractId: string;
|
|
11
|
+
carbonClientId: string;
|
|
12
|
+
status: string;
|
|
13
|
+
serviceCode: string;
|
|
14
|
+
serviceCatalogId: string;
|
|
15
|
+
addedAt: string;
|
|
16
|
+
}>;
|
|
17
|
+
//# sourceMappingURL=PurchaseContractServiceAddedPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PurchaseContractServiceAddedPayload.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractServiceAddedPayload.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,mCAAmC,GAAG,QAAQ,CAAC;IACzD,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Payload of `PurchaseContractServiceRemovedDomainEvent` — published
|
|
3
|
+
* when a `ContractService` is removed from an existing
|
|
4
|
+
* `PurchaseContract`. The `service-entitlements` projection subscribes
|
|
5
|
+
* to drop the `serviceCode` from the active set of the originating
|
|
6
|
+
* `carbonClientId` (the projection must verify no OTHER active
|
|
7
|
+
* contract of the same client still grants the same code before
|
|
8
|
+
* removing — multi-contract union; see `ServiceCapabilityPolicy`).
|
|
9
|
+
*/
|
|
10
|
+
export type PurchaseContractServiceRemovedPayload = Readonly<{
|
|
11
|
+
contractId: string;
|
|
12
|
+
carbonClientId: string;
|
|
13
|
+
status: string;
|
|
14
|
+
serviceCode: string;
|
|
15
|
+
serviceCatalogId: string;
|
|
16
|
+
removedAt: string;
|
|
17
|
+
}>;
|
|
18
|
+
//# sourceMappingURL=PurchaseContractServiceRemovedPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PurchaseContractServiceRemovedPayload.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractServiceRemovedPayload.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,MAAM,qCAAqC,GAAG,QAAQ,CAAC;IAC3D,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Payload of `PurchaseContractSuspendedDomainEvent` — published when a
|
|
3
|
+
* `PurchaseContract` transitions to `SUSPENDED`. While suspended the
|
|
4
|
+
* contract is NOT entitlement-granting: the `service-entitlements`
|
|
5
|
+
* projection subscribes to drop the services contributed by this
|
|
6
|
+
* contract from the active set of the originating `carbonClientId`.
|
|
7
|
+
*
|
|
8
|
+
* `serviceCodes` carries the same snapshot as `…Activated` so the
|
|
9
|
+
* projection can compute the diff without re-reading the writer.
|
|
10
|
+
*/
|
|
11
|
+
export type PurchaseContractSuspendedPayload = Readonly<{
|
|
12
|
+
contractId: string;
|
|
13
|
+
carbonClientId: string;
|
|
14
|
+
status: string;
|
|
15
|
+
serviceCodes: ReadonlyArray<string>;
|
|
16
|
+
suspendedAt: string;
|
|
17
|
+
}>;
|
|
18
|
+
//# sourceMappingURL=PurchaseContractSuspendedPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PurchaseContractSuspendedPayload.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/purchase-contracts/domain/types/PurchaseContractSuspendedPayload.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,MAAM,gCAAgC,GAAG,QAAQ,CAAC;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AggregateRoot } from '../../../../shared/domain/entities/AggregateRoot';
|
|
2
|
+
import { CompanyServiceEntitlementPrimitives } from '../types/CompanyServiceEntitlementPrimitives';
|
|
3
|
+
import { CompanyServiceEntitlementProps } from '../types/CompanyServiceEntitlementProps';
|
|
4
|
+
import { CompanyServiceEntitlementActiveServiceCodes } from '../value-objects/CompanyServiceEntitlementActiveServiceCodes';
|
|
5
|
+
import { CompanyServiceEntitlementAdditionalUserRoles } from '../value-objects/CompanyServiceEntitlementAdditionalUserRoles';
|
|
6
|
+
import { CompanyServiceEntitlementAllowsDocumentReading } from '../value-objects/CompanyServiceEntitlementAllowsDocumentReading';
|
|
7
|
+
import { CompanyServiceEntitlementAllowsSectoralComparison } from '../value-objects/CompanyServiceEntitlementAllowsSectoralComparison';
|
|
8
|
+
import { CompanyServiceEntitlementCarbonClientId } from '../value-objects/CompanyServiceEntitlementCarbonClientId';
|
|
9
|
+
import { CompanyServiceEntitlementIncludesCarbonBoxAcademy } from '../value-objects/CompanyServiceEntitlementIncludesCarbonBoxAcademy';
|
|
10
|
+
import { CompanyServiceEntitlementIncludesEsgIndicators } from '../value-objects/CompanyServiceEntitlementIncludesEsgIndicators';
|
|
11
|
+
import { CompanyServiceEntitlementIsAvailableForCorporate } from '../value-objects/CompanyServiceEntitlementIsAvailableForCorporate';
|
|
12
|
+
import { CompanyServiceEntitlementIsAvailableForEvent } from '../value-objects/CompanyServiceEntitlementIsAvailableForEvent';
|
|
13
|
+
import { CompanyServiceEntitlementIsAvailableForProduct } from '../value-objects/CompanyServiceEntitlementIsAvailableForProduct';
|
|
14
|
+
import { CompanyServiceEntitlementMaxUsers } from '../value-objects/CompanyServiceEntitlementMaxUsers';
|
|
15
|
+
import { CompanyServiceEntitlementSourceContractIds } from '../value-objects/CompanyServiceEntitlementSourceContractIds';
|
|
16
|
+
import { CompanyServiceEntitlementValidFrom } from '../value-objects/CompanyServiceEntitlementValidFrom';
|
|
17
|
+
import { CompanyServiceEntitlementValidTo } from '../value-objects/CompanyServiceEntitlementValidTo';
|
|
18
|
+
import { ICompanyServiceEntitlement } from './ICompanyServiceEntitlement';
|
|
19
|
+
export declare class CompanyServiceEntitlement extends AggregateRoot<CompanyServiceEntitlementPrimitives> implements ICompanyServiceEntitlement {
|
|
20
|
+
#private;
|
|
21
|
+
private constructor();
|
|
22
|
+
static create(props: CompanyServiceEntitlementProps): CompanyServiceEntitlement;
|
|
23
|
+
static fromPrimitives(primitives: CompanyServiceEntitlementPrimitives): CompanyServiceEntitlement;
|
|
24
|
+
get toPrimitives(): CompanyServiceEntitlementPrimitives;
|
|
25
|
+
get carbonClientId(): CompanyServiceEntitlementCarbonClientId;
|
|
26
|
+
get activeServiceCodes(): CompanyServiceEntitlementActiveServiceCodes;
|
|
27
|
+
get sourceContractIds(): CompanyServiceEntitlementSourceContractIds;
|
|
28
|
+
get allowsDocumentReading(): CompanyServiceEntitlementAllowsDocumentReading;
|
|
29
|
+
get allowsSectoralComparison(): CompanyServiceEntitlementAllowsSectoralComparison;
|
|
30
|
+
get includesCarbonBoxAcademy(): CompanyServiceEntitlementIncludesCarbonBoxAcademy;
|
|
31
|
+
get includesEsgIndicators(): CompanyServiceEntitlementIncludesEsgIndicators;
|
|
32
|
+
get isAvailableForCorporate(): CompanyServiceEntitlementIsAvailableForCorporate;
|
|
33
|
+
get isAvailableForProduct(): CompanyServiceEntitlementIsAvailableForProduct;
|
|
34
|
+
get isAvailableForEvent(): CompanyServiceEntitlementIsAvailableForEvent;
|
|
35
|
+
get maxUsers(): CompanyServiceEntitlementMaxUsers;
|
|
36
|
+
get additionalUserRoles(): CompanyServiceEntitlementAdditionalUserRoles;
|
|
37
|
+
get validFrom(): CompanyServiceEntitlementValidFrom;
|
|
38
|
+
get validTo(): CompanyServiceEntitlementValidTo;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=CompanyServiceEntitlement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompanyServiceEntitlement.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/service-entitlements/domain/entity/CompanyServiceEntitlement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAE,mCAAmC,EAAE,MAAM,8CAA8C,CAAC;AACnG,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,2CAA2C,EAAE,MAAM,8DAA8D,CAAC;AAC3H,OAAO,EAAE,4CAA4C,EAAE,MAAM,+DAA+D,CAAC;AAC7H,OAAO,EAAE,8CAA8C,EAAE,MAAM,iEAAiE,CAAC;AACjI,OAAO,EAAE,iDAAiD,EAAE,MAAM,oEAAoE,CAAC;AACvI,OAAO,EAAE,uCAAuC,EAAE,MAAM,0DAA0D,CAAC;AAEnH,OAAO,EAAE,iDAAiD,EAAE,MAAM,oEAAoE,CAAC;AACvI,OAAO,EAAE,8CAA8C,EAAE,MAAM,iEAAiE,CAAC;AACjI,OAAO,EAAE,gDAAgD,EAAE,MAAM,mEAAmE,CAAC;AACrI,OAAO,EAAE,4CAA4C,EAAE,MAAM,+DAA+D,CAAC;AAC7H,OAAO,EAAE,8CAA8C,EAAE,MAAM,iEAAiE,CAAC;AACjI,OAAO,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAC;AACvG,OAAO,EAAE,0CAA0C,EAAE,MAAM,6DAA6D,CAAC;AACzH,OAAO,EAAE,kCAAkC,EAAE,MAAM,qDAAqD,CAAC;AACzG,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E,qBAAa,yBACX,SAAQ,aAAa,CAAC,mCAAmC,CACzD,YAAW,0BAA0B;;IA6BrC,OAAO;WAwCgB,MAAM,CAAC,KAAK,EAAE,8BAA8B,GAAG,yBAAyB;WAIxE,cAAc,CAAC,UAAU,EAAE,mCAAmC,GAAG,yBAAyB;IAsBjH,IAAoB,YAAY,IAAI,mCAAmC,CAkBtE;IAED,IAAW,cAAc,IAAI,uCAAuC,CAEnE;IAED,IAAW,kBAAkB,IAAI,2CAA2C,CAE3E;IAED,IAAW,iBAAiB,IAAI,0CAA0C,CAEzE;IAED,IAAW,qBAAqB,IAAI,8CAA8C,CAEjF;IAED,IAAW,wBAAwB,IAAI,iDAAiD,CAEvF;IAED,IAAW,wBAAwB,IAAI,iDAAiD,CAEvF;IAED,IAAW,qBAAqB,IAAI,8CAA8C,CAEjF;IAED,IAAW,uBAAuB,IAAI,gDAAgD,CAErF;IAED,IAAW,qBAAqB,IAAI,8CAA8C,CAEjF;IAED,IAAW,mBAAmB,IAAI,4CAA4C,CAE7E;IAED,IAAW,QAAQ,IAAI,iCAAiC,CAEvD;IAED,IAAW,mBAAmB,IAAI,4CAA4C,CAE7E;IAED,IAAW,SAAS,IAAI,kCAAkC,CAEzD;IAED,IAAW,OAAO,IAAI,gCAAgC,CAErD;CACF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IAggregateRoot } from '../../../../shared/domain/entities/IAggregateRoot';
|
|
2
|
+
import { CompanyServiceEntitlementActiveServiceCodes } from '../value-objects/CompanyServiceEntitlementActiveServiceCodes';
|
|
3
|
+
import { CompanyServiceEntitlementAdditionalUserRoles } from '../value-objects/CompanyServiceEntitlementAdditionalUserRoles';
|
|
4
|
+
import { CompanyServiceEntitlementAllowsDocumentReading } from '../value-objects/CompanyServiceEntitlementAllowsDocumentReading';
|
|
5
|
+
import { CompanyServiceEntitlementAllowsSectoralComparison } from '../value-objects/CompanyServiceEntitlementAllowsSectoralComparison';
|
|
6
|
+
import { CompanyServiceEntitlementCarbonClientId } from '../value-objects/CompanyServiceEntitlementCarbonClientId';
|
|
7
|
+
import { CompanyServiceEntitlementIncludesCarbonBoxAcademy } from '../value-objects/CompanyServiceEntitlementIncludesCarbonBoxAcademy';
|
|
8
|
+
import { CompanyServiceEntitlementIncludesEsgIndicators } from '../value-objects/CompanyServiceEntitlementIncludesEsgIndicators';
|
|
9
|
+
import { CompanyServiceEntitlementIsAvailableForCorporate } from '../value-objects/CompanyServiceEntitlementIsAvailableForCorporate';
|
|
10
|
+
import { CompanyServiceEntitlementIsAvailableForEvent } from '../value-objects/CompanyServiceEntitlementIsAvailableForEvent';
|
|
11
|
+
import { CompanyServiceEntitlementIsAvailableForProduct } from '../value-objects/CompanyServiceEntitlementIsAvailableForProduct';
|
|
12
|
+
import { CompanyServiceEntitlementMaxUsers } from '../value-objects/CompanyServiceEntitlementMaxUsers';
|
|
13
|
+
import { CompanyServiceEntitlementSourceContractIds } from '../value-objects/CompanyServiceEntitlementSourceContractIds';
|
|
14
|
+
import { CompanyServiceEntitlementValidFrom } from '../value-objects/CompanyServiceEntitlementValidFrom';
|
|
15
|
+
import { CompanyServiceEntitlementValidTo } from '../value-objects/CompanyServiceEntitlementValidTo';
|
|
16
|
+
export interface ICompanyServiceEntitlement extends IAggregateRoot {
|
|
17
|
+
carbonClientId: CompanyServiceEntitlementCarbonClientId;
|
|
18
|
+
activeServiceCodes: CompanyServiceEntitlementActiveServiceCodes;
|
|
19
|
+
sourceContractIds: CompanyServiceEntitlementSourceContractIds;
|
|
20
|
+
allowsDocumentReading: CompanyServiceEntitlementAllowsDocumentReading;
|
|
21
|
+
allowsSectoralComparison: CompanyServiceEntitlementAllowsSectoralComparison;
|
|
22
|
+
includesCarbonBoxAcademy: CompanyServiceEntitlementIncludesCarbonBoxAcademy;
|
|
23
|
+
includesEsgIndicators: CompanyServiceEntitlementIncludesEsgIndicators;
|
|
24
|
+
isAvailableForCorporate: CompanyServiceEntitlementIsAvailableForCorporate;
|
|
25
|
+
isAvailableForProduct: CompanyServiceEntitlementIsAvailableForProduct;
|
|
26
|
+
isAvailableForEvent: CompanyServiceEntitlementIsAvailableForEvent;
|
|
27
|
+
maxUsers: CompanyServiceEntitlementMaxUsers;
|
|
28
|
+
additionalUserRoles: CompanyServiceEntitlementAdditionalUserRoles;
|
|
29
|
+
validFrom: CompanyServiceEntitlementValidFrom;
|
|
30
|
+
validTo: CompanyServiceEntitlementValidTo;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=ICompanyServiceEntitlement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICompanyServiceEntitlement.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/service-entitlements/domain/entity/ICompanyServiceEntitlement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,OAAO,EAAE,2CAA2C,EAAE,MAAM,8DAA8D,CAAC;AAC3H,OAAO,EAAE,4CAA4C,EAAE,MAAM,+DAA+D,CAAC;AAC7H,OAAO,EAAE,8CAA8C,EAAE,MAAM,iEAAiE,CAAC;AACjI,OAAO,EAAE,iDAAiD,EAAE,MAAM,oEAAoE,CAAC;AACvI,OAAO,EAAE,uCAAuC,EAAE,MAAM,0DAA0D,CAAC;AACnH,OAAO,EAAE,iDAAiD,EAAE,MAAM,oEAAoE,CAAC;AACvI,OAAO,EAAE,8CAA8C,EAAE,MAAM,iEAAiE,CAAC;AACjI,OAAO,EAAE,gDAAgD,EAAE,MAAM,mEAAmE,CAAC;AACrI,OAAO,EAAE,4CAA4C,EAAE,MAAM,+DAA+D,CAAC;AAC7H,OAAO,EAAE,8CAA8C,EAAE,MAAM,iEAAiE,CAAC;AACjI,OAAO,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAC;AACvG,OAAO,EAAE,0CAA0C,EAAE,MAAM,6DAA6D,CAAC;AACzH,OAAO,EAAE,kCAAkC,EAAE,MAAM,qDAAqD,CAAC;AACzG,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AAErG,MAAM,WAAW,0BAA2B,SAAQ,cAAc;IAChE,cAAc,EAAE,uCAAuC,CAAC;IACxD,kBAAkB,EAAE,2CAA2C,CAAC;IAChE,iBAAiB,EAAE,0CAA0C,CAAC;IAE9D,qBAAqB,EAAE,8CAA8C,CAAC;IACtE,wBAAwB,EAAE,iDAAiD,CAAC;IAC5E,wBAAwB,EAAE,iDAAiD,CAAC;IAC5E,qBAAqB,EAAE,8CAA8C,CAAC;IACtE,uBAAuB,EAAE,gDAAgD,CAAC;IAC1E,qBAAqB,EAAE,8CAA8C,CAAC;IACtE,mBAAmB,EAAE,4CAA4C,CAAC;IAElE,QAAQ,EAAE,iCAAiC,CAAC;IAC5C,mBAAmB,EAAE,4CAA4C,CAAC;IAElE,SAAS,EAAE,kCAAkC,CAAC;IAC9C,OAAO,EAAE,gCAAgC,CAAC;CAC3C"}
|