@carbonbox/domain 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/carbonbox/shared/domain/entities/User.js +16 -2
- package/build/carbonbox/shared/domain/enums/UserBusinessStatus.js +10 -0
- package/build/carbonbox/shared/domain/enums/UserType.js +8 -0
- package/build/carbonbox/shared/domain/exceptions/InvalidUserBusinessStatusError.js +18 -0
- package/build/carbonbox/shared/domain/exceptions/InvalidUserTypeError.js +18 -0
- package/build/carbonbox/shared/domain/value-objects/UserBusinessStatus.js +70 -0
- package/build/carbonbox/shared/domain/value-objects/UserType.js +58 -0
- package/build/carbonbox/stakeholders/carbon-clients/domain/entity/CarbonClient.js +7 -0
- package/build/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientUserType.js +18 -0
- package/build/carbonbox/stakeholders/carbon-coordinators/domain/entity/CarbonCoordinator.js +7 -0
- package/build/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorUserType.js +18 -0
- package/build/carbonbox/stakeholders/carbon-host/domain/entity/CarbonHost.js +7 -0
- package/build/carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostUserType.js +18 -0
- package/build/carbonbox/stakeholders/carbon-managers/domain/entity/CarbonManager.js +7 -0
- package/build/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerUserType.js +18 -0
- package/build/carbonbox/stakeholders/shared/domain/entity/Stakeholder.js +11 -8
- package/build/carbonbox/stakeholders/shared/domain/value-objects/StakeholderBusinessStatus.js +7 -58
- package/build/carbonbox/stakeholders/shared/domain/value-objects/StakeholderUserType.js +18 -0
- package/build/main/index.js +27 -9
- package/build/types/carbonbox/shared/domain/entities/IUser.d.ts +4 -0
- package/build/types/carbonbox/shared/domain/entities/IUser.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/entities/User.d.ts +4 -0
- package/build/types/carbonbox/shared/domain/entities/User.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/enums/UserBusinessStatus.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/enums/UserBusinessStatus.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/enums/UserType.d.ts +5 -0
- package/build/types/carbonbox/shared/domain/enums/UserType.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUserBusinessStatusError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUserBusinessStatusError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUserTypeError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUserTypeError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/repositories/IUserRepository.d.ts +6 -0
- package/build/types/carbonbox/shared/domain/repositories/IUserRepository.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/UserPrimitives.d.ts +4 -0
- package/build/types/carbonbox/shared/domain/types/UserPrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/UserProps.d.ts +4 -0
- package/build/types/carbonbox/shared/domain/types/UserProps.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/UserBusinessStatus.d.ts +20 -0
- package/build/types/carbonbox/shared/domain/value-objects/UserBusinessStatus.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/value-objects/UserType.d.ts +16 -0
- package/build/types/carbonbox/shared/domain/value-objects/UserType.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/entity/CarbonClient.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientUserType.d.ts +7 -0
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientUserType.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/entity/CarbonCoordinator.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorUserType.d.ts +7 -0
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorUserType.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/carbon-host/domain/entity/CarbonHost.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostUserType.d.ts +7 -0
- package/build/types/carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostUserType.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/carbon-managers/domain/entity/CarbonManager.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerUserType.d.ts +7 -0
- package/build/types/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerUserType.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/shared/domain/entity/IStakeholder.d.ts +0 -2
- package/build/types/carbonbox/stakeholders/shared/domain/entity/IStakeholder.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/shared/domain/entity/Stakeholder.d.ts +0 -2
- package/build/types/carbonbox/stakeholders/shared/domain/entity/Stakeholder.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPrimitives.d.ts +0 -2
- package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderProps.d.ts +0 -2
- package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderProps.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/shared/domain/value-objects/StakeholderBusinessStatus.d.ts +2 -15
- package/build/types/carbonbox/stakeholders/shared/domain/value-objects/StakeholderBusinessStatus.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/shared/domain/value-objects/StakeholderUserType.d.ts +7 -0
- package/build/types/carbonbox/stakeholders/shared/domain/value-objects/StakeholderUserType.d.ts.map +1 -0
- package/build/types/main/index.d.ts +11 -2
- package/build/types/main/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StakeholderUserType = void 0;
|
|
4
|
+
const UserType_1 = require("../../../../shared/domain/value-objects/UserType");
|
|
5
|
+
class StakeholderUserType extends UserType_1.UserType {
|
|
6
|
+
constructor(value, skipDomainValidation) {
|
|
7
|
+
super(value, skipDomainValidation);
|
|
8
|
+
}
|
|
9
|
+
static create(value) {
|
|
10
|
+
UserType_1.UserType.guardAgainstEmptyValue(value, UserType_1.UserType.PROPERTY_NAME);
|
|
11
|
+
UserType_1.UserType.guardAgainstInvalidType(value, UserType_1.UserType.PROPERTY_NAME);
|
|
12
|
+
return new StakeholderUserType(value, false);
|
|
13
|
+
}
|
|
14
|
+
static fromPrimitives(primitive) {
|
|
15
|
+
return new StakeholderUserType(primitive, true);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.StakeholderUserType = StakeholderUserType;
|
package/build/main/index.js
CHANGED
|
@@ -9,11 +9,11 @@ exports.EmissionFactorGreenhouseGasValues = exports.EmissionFactorDescription =
|
|
|
9
9
|
exports.EmissionCalculationStatus = exports.EmissionCalculationId = exports.GHGEmissionResult = exports.EmissionAggregation = exports.EmissionCalculation = exports.WorkflowTriggerEnum = exports.WorkflowStatusEnum = exports.ProcessStatusEnum = exports.ProcessPriorityEnum = exports.JobTypeEnum = exports.JobStatusEnum = exports.CalculationWorkflowCarbonClient = exports.CalculationWorkflowFootprintType = exports.CalculationWorkflowIsAutomatic = exports.CalculationWorkflowTriggerType = exports.CalculationWorkflowStatus = exports.CalculationWorkflowDescription = exports.CalculationWorkflowName = exports.CalculationWorkflowCode = exports.CalculationWorkflowId = exports.CalculationProcessCarbonClient = exports.CalculationProcessFootprintConfiguration = exports.CalculationProcessCompletedAt = exports.CalculationProcessStartedAt = exports.CalculationProcessProgressPercentage = exports.CalculationProcessPriority = exports.CalculationProcessStatus = exports.CalculationProcessId = exports.CalculationJobSequenceOrder = exports.CalculationJobParentProcess = exports.CalculationJobCompletedAt = exports.CalculationJobStartedAt = exports.CalculationJobProgressPercentage = exports.CalculationJobStatus = exports.CalculationJobType = exports.CalculationJobId = exports.CalculationWorkflow = exports.CalculationProcess = exports.CalculationJob = exports.UnauthorizedFormulaCreationRoleError = exports.InvalidGreenhouseGasTypeError = exports.DuplicateGreenhouseGasError = exports.ResultUnitEnum = exports.FormulaStatusEnum = exports.GlobalWarmingPotentialGreenhouseGasPotentials = exports.GlobalWarmingPotentialValidityPeriod = exports.GlobalWarmingPotentialTimeHorizonYears = exports.GlobalWarmingPotentialProtocolVersion = exports.GlobalWarmingPotentialReferenceName = exports.GlobalWarmingPotentialId = void 0;
|
|
10
10
|
exports.ServiceCatalogName = exports.ServiceCatalogCode = exports.ServiceCatalogId = exports.PurchaseOrderApprovedByStakeholder = exports.PurchaseOrderCreatedByStakeholder = exports.PurchaseOrderTotalAmount = exports.PurchaseOrderSubtotalAmount = exports.PurchaseOrderPaymentStatus = exports.PurchaseOrderPaymentMethod = exports.PurchaseOrderDate = exports.PurchaseOrderCarbonClientId = exports.PurchaseOrderStatus = exports.PurchaseOrderCode = exports.PurchaseOrderId = exports.PurchaseContractCreatedByStakeholder = exports.PurchaseContractTotalContractValue = exports.PurchaseContractEndDate = exports.PurchaseContractStartDate = exports.PurchaseContractCarbonClientId = exports.PurchaseContractType = exports.PurchaseContractStatus = exports.PurchaseContractTitle = exports.PurchaseContractCode = exports.PurchaseContractId = exports.ServicePricing = exports.ServiceCatalog = exports.PurchaseOrder = exports.PurchaseContract = exports.UnknownGreenhouseGasCategoryError = exports.CalculationStatusEnum = exports.GHGEmissionResultUnit = exports.GHGEmissionResultCo2Equivalent = exports.GHGEmissionResultRawEmission = exports.GHGEmissionResultGlobalWarmingPotential = exports.GHGEmissionResultEmissionFactor = exports.GHGEmissionResultActivityValue = exports.GHGEmissionResultGreenhouseGas = exports.GHGEmissionResultEmissionCalculation = exports.GHGEmissionResultId = exports.EmissionAggregationGhgBreakdown = exports.EmissionAggregationUncertaintyPercentage = exports.EmissionAggregationTotalCO2Equivalent = exports.EmissionAggregationEmissionSource = exports.EmissionAggregationEmissionCalculation = exports.EmissionAggregationId = exports.EmissionCalculationCalculatedByStakeholder = exports.EmissionCalculationCalculatedAt = exports.EmissionCalculationCarbonClient = exports.EmissionCalculationEmissionCalculationFormula = exports.EmissionCalculationActivityDataSubmission = void 0;
|
|
11
11
|
exports.InvalidReportTypeError = exports.InvalidExpertDedicationLevelError = exports.InvalidTotalAmountFactorError = exports.InvalidTaxAmountFactorError = exports.InvalidSubtotalAmountFactorError = exports.InvalidSubtotalAmountError = exports.InvalidPurchaseOrderStatusError = exports.InvalidPercentageRangeError = exports.InvalidPaymentStatusError = exports.InvalidPaymentMethodError = exports.InvalidMaximumSubtotalError = exports.InvalidFixedDiscountAmountError = exports.InvalidDiscountAmountFactorError = exports.InvalidTaxRateError = exports.InvalidPaymentTermsError = exports.InvalidPaymentScheduleError = exports.InvalidContractValueFactorError = exports.InvalidContractTypeError = exports.InvalidContractStatusError = exports.PricingStatusEnum = exports.PricingModelEnum = exports.UserRoleEnum = exports.ReportTypeEnum = exports.ExpertDedicationLevelEnum = exports.ServiceCatalogStatusEnum = exports.ServiceCatalogTypeEnum = exports.ServiceCatalogCategoryEnum = exports.PaymentStatusEnum = exports.PaymentMethodEnum = exports.OrderStatusEnum = exports.PaymentTermsEnum = exports.PaymentScheduleEnum = exports.ContractDurationUnitEnum = exports.ContractTypeEnum = exports.ContractStatusEnum = exports.ServicePricingCreatedByStakeholder = exports.ServicePricingBaseServiceReferenceCode = exports.ServicePricingCurrency = exports.ServicePricingPricePerUnit = exports.ServicePricingBasePrice = exports.ServicePricingPricingStatus = exports.ServicePricingPricingModel = exports.ServicePricingService = exports.ServicePricingId = exports.ServiceCatalogCreatedByStakeholder = exports.ServiceCatalogDependsOnServiceCode = exports.ServiceCatalogStatus = exports.ServiceCatalogType = exports.ServiceCatalogCategory = exports.ServiceCatalogDescription = void 0;
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.DateTimeFormattingDomainService = exports.InvalidCarbonCoordinatorAvailabilityStatusError = exports.InvalidCarbonClientAccountTypeError = exports.
|
|
12
|
+
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.TaxIdentificationEnum = exports.SystemBoundaryEnum = exports.StakeholderRoleEnum = exports.ReportingStandardEnum = exports.ISOCategoryEnum = exports.GreenhouseGasEnum = exports.GenderType = exports.GHGSubScopeEnum = exports.GHGScopeEnum = exports.EmissionSourceEnum = exports.EmissionCategoryEnum = exports.DayOfWeekEnum = exports.CurrencyEnum = exports.CountryCodeEnum = exports.BusinessScaleEnum = exports.UserBusinessStatusEnum = exports.UserTypeEnum = exports.RootError = exports.ObjectValueObject = exports.PrimitiveValueObject = exports.ValueObject = exports.User = exports.DomainError = exports.AggregateRoot = exports.InvalidUnitsError = exports.InvalidTaxPercentageError = exports.InvalidPricingStatusError = exports.InvalidPricingModelError = exports.InvalidPricePerUnitError = exports.InvalidMarkupPercentageError = exports.InvalidDiscountPercentageError = exports.InvalidUserRoleError = exports.InvalidServiceCatalogTypeError = exports.InvalidServiceCatalogStatusError = exports.InvalidServiceCatalogCategoryError = void 0;
|
|
13
|
+
exports.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.ActivityDataSubmissionReference = exports.EmissionSource = exports.EmissionSources = exports.CarbonClientReferences = exports.CarbonClientReference = exports.StakeholderReferences = exports.StakeholderReference = exports.UserType = exports.UserLastAccessAt = exports.UserAvatar = exports.UserBusinessStatus = exports.UserPassword = exports.UserDisplayName = exports.UserId = exports.UserEmail = exports.NullableProductConfigurationCarbonFootprintSubsegmentReference = exports.NullableEventEditionConfigurationCarbonFootprintSubsegmentReference = exports.NullableCorporateConfigurationCarbonFootprintSubsegmentReference = exports.NullableStakeholderReference = exports.NullableColombianNIT = exports.NullableTaxIdentificationNumber = exports.NullablePositiveInteger = exports.NullableNumeric = exports.NullableDateTimeString = exports.NullableDate = exports.NullableCode = exports.NullableString = exports.TaxIdentificationNumberList = exports.UrlList = exports.StringList = exports.CodeList = exports.AggregateIdList = exports.TaxIdentification = exports.Gender = exports.Currency = exports.ColombiaNIT = exports.TaxIdentificationNumber = void 0;
|
|
14
|
+
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.InvalidPropertyValueError = exports.InvalidPropertyTypeError = exports.InvalidValueObjectConfigurationError = exports.UndefinedValueError = exports.NullValueError = exports.MethodNotImplementedError = exports.CreateMethodNotImplementedError = exports.ServiceCatalogReference = exports.ProductReference = exports.ProductConfigurationSystemBoundaryReference = exports.ProductConfigurationCarbonFootprintSubsegmentReference = exports.ProductConfigurationCarbonFootprintSegmentReference = exports.ProductCarbonFootprintSegmentConfigurationReferences = exports.FacilityReference = exports.EventReference = exports.EventEditionReferences = exports.EventEditionReference = exports.EventEditionLifecycleStageReference = exports.EventEditionLifecycleStageConfigurationReferences = exports.EventEditionConfigurationCarbonFootprintSubsegmentReferences = exports.EventEditionConfigurationCarbonFootprintSubsegmentReference = void 0;
|
|
15
|
+
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.TaxIdentificationNumberWithControlCharactersError = exports.InvalidTaxIdentificationNumberLengthError = exports.InvalidTaxIdentificationNumberFormatError = exports.InvalidSupervisorRoleError = exports.InvalidMinutesDurationError = exports.InvalidMeasurementUnitOperationError = exports.InvalidManagedStakeholderRoleError = exports.InvalidDomainCodeError = exports.InvalidCountrySpecificTaxIdentificationNumberError = exports.InvalidCodeError = exports.InvalidAssignerRoleError = exports.InvalidAggregateIdError = exports.EmptyTaxIdentificationNumberError = exports.EmptySegmentNameError = exports.EmptySegmentCodeError = exports.EmptyDisplayNameError = void 0;
|
|
16
|
+
exports.DateTimeFormattingDomainService = exports.InvalidCarbonCoordinatorAvailabilityStatusError = exports.InvalidCarbonClientAccountTypeError = exports.CarbonCoordinatorAvailabilityStatusEnum = exports.CarbonClientAccountEnum = exports.CarbonManagerUserType = exports.CarbonManagerManagedStakeholders = exports.CarbonManagerDisplayName = exports.CarbonManagerEmail = exports.CarbonManagerId = exports.CarbonHostUserType = exports.CarbonHostDisplayName = exports.CarbonHostTaxIdentification = exports.CarbonHostBusinessStatus = exports.CarbonHostRoleType = exports.CarbonHostEmail = exports.CarbonHostId = exports.CarbonCoordinatorManagedCarbonClients = exports.CarbonCoordinatorWeeklyWorkingSchedule = exports.CarbonCoordinatorGender = exports.CarbonCoordinatorUserType = exports.CarbonCoordinatorAvailabilityStatus = exports.CarbonCoordinatorDisplayName = exports.CarbonCoordinatorEmail = exports.CarbonCoordinatorId = exports.CarbonClientPrimaryContactPhone = exports.CarbonClientPrimaryContactEmail = exports.CarbonClientLogo = void 0;
|
|
17
17
|
// ─── Entity Classes (For Application Layer) ─────────────────────────────────
|
|
18
18
|
var ActivityDataSubmission_1 = require("../carbonbox/activity-data-collection/activity-data-submissions/domain/entity/ActivityDataSubmission");
|
|
19
19
|
Object.defineProperty(exports, "ActivityDataSubmission", { enumerable: true, get: function () { return ActivityDataSubmission_1.ActivityDataSubmission; } });
|
|
@@ -750,6 +750,10 @@ Object.defineProperty(exports, "ObjectValueObject", { enumerable: true, get: fun
|
|
|
750
750
|
var RootError_1 = require("../carbonbox/shared/domain/exceptions/RootError");
|
|
751
751
|
Object.defineProperty(exports, "RootError", { enumerable: true, get: function () { return RootError_1.RootError; } });
|
|
752
752
|
// ─── Shared Enums (Business Rules) ───────────────────────────────────────────
|
|
753
|
+
var UserType_1 = require("../carbonbox/shared/domain/enums/UserType");
|
|
754
|
+
Object.defineProperty(exports, "UserTypeEnum", { enumerable: true, get: function () { return UserType_1.UserType; } });
|
|
755
|
+
var UserBusinessStatus_1 = require("../carbonbox/shared/domain/enums/UserBusinessStatus");
|
|
756
|
+
Object.defineProperty(exports, "UserBusinessStatusEnum", { enumerable: true, get: function () { return UserBusinessStatus_1.UserBusinessStatus; } });
|
|
753
757
|
var BusinessScale_1 = require("../carbonbox/shared/domain/enums/BusinessScale");
|
|
754
758
|
Object.defineProperty(exports, "BusinessScaleEnum", { enumerable: true, get: function () { return BusinessScale_1.BusinessScale; } });
|
|
755
759
|
var CountryCode_1 = require("../carbonbox/shared/domain/enums/CountryCode");
|
|
@@ -868,10 +872,14 @@ var UserDisplayName_1 = require("../carbonbox/shared/domain/value-objects/UserDi
|
|
|
868
872
|
Object.defineProperty(exports, "UserDisplayName", { enumerable: true, get: function () { return UserDisplayName_1.UserDisplayName; } });
|
|
869
873
|
var UserPassword_1 = require("../carbonbox/shared/domain/value-objects/UserPassword");
|
|
870
874
|
Object.defineProperty(exports, "UserPassword", { enumerable: true, get: function () { return UserPassword_1.UserPassword; } });
|
|
875
|
+
var UserBusinessStatus_2 = require("../carbonbox/shared/domain/value-objects/UserBusinessStatus");
|
|
876
|
+
Object.defineProperty(exports, "UserBusinessStatus", { enumerable: true, get: function () { return UserBusinessStatus_2.UserBusinessStatus; } });
|
|
871
877
|
var UserAvatar_1 = require("../carbonbox/shared/domain/value-objects/UserAvatar");
|
|
872
878
|
Object.defineProperty(exports, "UserAvatar", { enumerable: true, get: function () { return UserAvatar_1.UserAvatar; } });
|
|
873
879
|
var UserLastAccessAt_1 = require("../carbonbox/shared/domain/value-objects/UserLastAccessAt");
|
|
874
880
|
Object.defineProperty(exports, "UserLastAccessAt", { enumerable: true, get: function () { return UserLastAccessAt_1.UserLastAccessAt; } });
|
|
881
|
+
var UserType_2 = require("../carbonbox/shared/domain/value-objects/UserType");
|
|
882
|
+
Object.defineProperty(exports, "UserType", { enumerable: true, get: function () { return UserType_2.UserType; } });
|
|
875
883
|
// Reference Value Objects (Domain Connectivity)
|
|
876
884
|
var StakeholderReference_1 = require("../carbonbox/shared/domain/value-objects/StakeholderReference");
|
|
877
885
|
Object.defineProperty(exports, "StakeholderReference", { enumerable: true, get: function () { return StakeholderReference_1.StakeholderReference; } });
|
|
@@ -1014,6 +1022,10 @@ Object.defineProperty(exports, "MoneyOverflowError", { enumerable: true, get: fu
|
|
|
1014
1022
|
var DivisionByZeroError_1 = require("../carbonbox/shared/domain/exceptions/DivisionByZeroError");
|
|
1015
1023
|
Object.defineProperty(exports, "DivisionByZeroError", { enumerable: true, get: function () { return DivisionByZeroError_1.DivisionByZeroError; } });
|
|
1016
1024
|
// Additional Core Exceptions
|
|
1025
|
+
var InvalidUserTypeError_1 = require("../carbonbox/shared/domain/exceptions/InvalidUserTypeError");
|
|
1026
|
+
Object.defineProperty(exports, "InvalidUserTypeError", { enumerable: true, get: function () { return InvalidUserTypeError_1.InvalidUserTypeError; } });
|
|
1027
|
+
var InvalidUserBusinessStatusError_1 = require("../carbonbox/shared/domain/exceptions/InvalidUserBusinessStatusError");
|
|
1028
|
+
Object.defineProperty(exports, "InvalidUserBusinessStatusError", { enumerable: true, get: function () { return InvalidUserBusinessStatusError_1.InvalidUserBusinessStatusError; } });
|
|
1017
1029
|
var DateGreaterThanError_1 = require("../carbonbox/shared/domain/exceptions/DateGreaterThanError");
|
|
1018
1030
|
Object.defineProperty(exports, "DateGreaterThanError", { enumerable: true, get: function () { return DateGreaterThanError_1.DateGreaterThanError; } });
|
|
1019
1031
|
var EmptyDisplayNameError_1 = require("../carbonbox/shared/domain/exceptions/EmptyDisplayNameError");
|
|
@@ -1093,6 +1105,8 @@ var StakeholderAvatar_1 = require("../carbonbox/stakeholders/shared/domain/value
|
|
|
1093
1105
|
Object.defineProperty(exports, "StakeholderAvatar", { enumerable: true, get: function () { return StakeholderAvatar_1.StakeholderAvatar; } });
|
|
1094
1106
|
var StakeholderLastAccessAt_1 = require("../carbonbox/stakeholders/shared/domain/value-objects/StakeholderLastAccessAt");
|
|
1095
1107
|
Object.defineProperty(exports, "StakeholderLastAccessAt", { enumerable: true, get: function () { return StakeholderLastAccessAt_1.StakeholderLastAccessAt; } });
|
|
1108
|
+
var StakeholderUserType_1 = require("../carbonbox/stakeholders/shared/domain/value-objects/StakeholderUserType");
|
|
1109
|
+
Object.defineProperty(exports, "StakeholderUserType", { enumerable: true, get: function () { return StakeholderUserType_1.StakeholderUserType; } });
|
|
1096
1110
|
// Carbon Client Value Objects
|
|
1097
1111
|
var CarbonClientId_1 = require("../carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientId");
|
|
1098
1112
|
Object.defineProperty(exports, "CarbonClientId", { enumerable: true, get: function () { return CarbonClientId_1.CarbonClientId; } });
|
|
@@ -1104,6 +1118,8 @@ var CarbonClientAccountType_1 = require("../carbonbox/stakeholders/carbon-client
|
|
|
1104
1118
|
Object.defineProperty(exports, "CarbonClientAccountType", { enumerable: true, get: function () { return CarbonClientAccountType_1.CarbonClientAccountType; } });
|
|
1105
1119
|
var CarbonClientLegalBusinessName_1 = require("../carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientLegalBusinessName");
|
|
1106
1120
|
Object.defineProperty(exports, "CarbonClientLegalBusinessName", { enumerable: true, get: function () { return CarbonClientLegalBusinessName_1.CarbonClientLegalBusinessName; } });
|
|
1121
|
+
var CarbonClientUserType_1 = require("../carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientUserType");
|
|
1122
|
+
Object.defineProperty(exports, "CarbonClientUserType", { enumerable: true, get: function () { return CarbonClientUserType_1.CarbonClientUserType; } });
|
|
1107
1123
|
var CarbonClientIndustryType_1 = require("../carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientIndustryType");
|
|
1108
1124
|
Object.defineProperty(exports, "CarbonClientIndustryType", { enumerable: true, get: function () { return CarbonClientIndustryType_1.CarbonClientIndustryType; } });
|
|
1109
1125
|
var CarbonClientOrganizationSize_1 = require("../carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientOrganizationSize");
|
|
@@ -1127,6 +1143,8 @@ var CarbonCoordinatorDisplayName_1 = require("../carbonbox/stakeholders/carbon-c
|
|
|
1127
1143
|
Object.defineProperty(exports, "CarbonCoordinatorDisplayName", { enumerable: true, get: function () { return CarbonCoordinatorDisplayName_1.CarbonCoordinatorDisplayName; } });
|
|
1128
1144
|
var CarbonCoordinatorAvailabilityStatus_1 = require("../carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorAvailabilityStatus");
|
|
1129
1145
|
Object.defineProperty(exports, "CarbonCoordinatorAvailabilityStatus", { enumerable: true, get: function () { return CarbonCoordinatorAvailabilityStatus_1.CarbonCoordinatorAvailabilityStatus; } });
|
|
1146
|
+
var CarbonCoordinatorUserType_1 = require("../carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorUserType");
|
|
1147
|
+
Object.defineProperty(exports, "CarbonCoordinatorUserType", { enumerable: true, get: function () { return CarbonCoordinatorUserType_1.CarbonCoordinatorUserType; } });
|
|
1130
1148
|
var CarbonCoordinatorGender_1 = require("../carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorGender");
|
|
1131
1149
|
Object.defineProperty(exports, "CarbonCoordinatorGender", { enumerable: true, get: function () { return CarbonCoordinatorGender_1.CarbonCoordinatorGender; } });
|
|
1132
1150
|
var CarbonCoordinatorWeeklyWorkingSchedule_1 = require("../carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorWeeklyWorkingSchedule");
|
|
@@ -1146,6 +1164,8 @@ var CarbonHostTaxIdentification_1 = require("../carbonbox/stakeholders/carbon-ho
|
|
|
1146
1164
|
Object.defineProperty(exports, "CarbonHostTaxIdentification", { enumerable: true, get: function () { return CarbonHostTaxIdentification_1.CarbonHostTaxIdentification; } });
|
|
1147
1165
|
var CarbonHostDisplayName_1 = require("../carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostDisplayName");
|
|
1148
1166
|
Object.defineProperty(exports, "CarbonHostDisplayName", { enumerable: true, get: function () { return CarbonHostDisplayName_1.CarbonHostDisplayName; } });
|
|
1167
|
+
var CarbonHostUserType_1 = require("../carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostUserType");
|
|
1168
|
+
Object.defineProperty(exports, "CarbonHostUserType", { enumerable: true, get: function () { return CarbonHostUserType_1.CarbonHostUserType; } });
|
|
1149
1169
|
// Carbon Manager Value Objects
|
|
1150
1170
|
var CarbonManagerId_1 = require("../carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerId");
|
|
1151
1171
|
Object.defineProperty(exports, "CarbonManagerId", { enumerable: true, get: function () { return CarbonManagerId_1.CarbonManagerId; } });
|
|
@@ -1155,16 +1175,14 @@ var CarbonManagerDisplayName_1 = require("../carbonbox/stakeholders/carbon-manag
|
|
|
1155
1175
|
Object.defineProperty(exports, "CarbonManagerDisplayName", { enumerable: true, get: function () { return CarbonManagerDisplayName_1.CarbonManagerDisplayName; } });
|
|
1156
1176
|
var CarbonManagerManagedStakeholders_1 = require("../carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerManagedStakeholders");
|
|
1157
1177
|
Object.defineProperty(exports, "CarbonManagerManagedStakeholders", { enumerable: true, get: function () { return CarbonManagerManagedStakeholders_1.CarbonManagerManagedStakeholders; } });
|
|
1178
|
+
var CarbonManagerUserType_1 = require("../carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerUserType");
|
|
1179
|
+
Object.defineProperty(exports, "CarbonManagerUserType", { enumerable: true, get: function () { return CarbonManagerUserType_1.CarbonManagerUserType; } });
|
|
1158
1180
|
// ─── Enums (Business Rules) ──────────────────────────────────────────────────
|
|
1159
|
-
var StakeholderBusinessStatus_2 = require("../carbonbox/stakeholders/shared/domain/enums/StakeholderBusinessStatus");
|
|
1160
|
-
Object.defineProperty(exports, "StakeholderBusinessStatusEnum", { enumerable: true, get: function () { return StakeholderBusinessStatus_2.StakeholderBusinessStatus; } });
|
|
1161
1181
|
var CarbonClientAccount_1 = require("../carbonbox/stakeholders/carbon-clients/domain/enums/CarbonClientAccount");
|
|
1162
1182
|
Object.defineProperty(exports, "CarbonClientAccountEnum", { enumerable: true, get: function () { return CarbonClientAccount_1.CarbonClientAccount; } });
|
|
1163
1183
|
var CarbonCoordinatorAvailabilityStatus_2 = require("../carbonbox/stakeholders/carbon-coordinators/domain/enums/CarbonCoordinatorAvailabilityStatus");
|
|
1164
1184
|
Object.defineProperty(exports, "CarbonCoordinatorAvailabilityStatusEnum", { enumerable: true, get: function () { return CarbonCoordinatorAvailabilityStatus_2.CarbonCoordinatorAvailabilityStatus; } });
|
|
1165
1185
|
// ─── Domain Exceptions ───────────────────────────────────────────────────────
|
|
1166
|
-
var InvalidStakeholderBusinessStatusError_1 = require("../carbonbox/stakeholders/shared/domain/exceptions/InvalidStakeholderBusinessStatusError");
|
|
1167
|
-
Object.defineProperty(exports, "InvalidStakeholderBusinessStatusError", { enumerable: true, get: function () { return InvalidStakeholderBusinessStatusError_1.InvalidStakeholderBusinessStatusError; } });
|
|
1168
1186
|
var InvalidCarbonClientAccountTypeError_1 = require("../carbonbox/stakeholders/carbon-clients/domain/exceptions/InvalidCarbonClientAccountTypeError");
|
|
1169
1187
|
Object.defineProperty(exports, "InvalidCarbonClientAccountTypeError", { enumerable: true, get: function () { return InvalidCarbonClientAccountTypeError_1.InvalidCarbonClientAccountTypeError; } });
|
|
1170
1188
|
var InvalidCarbonCoordinatorAvailabilityStatusError_1 = require("../carbonbox/stakeholders/carbon-coordinators/domain/exceptions/InvalidCarbonCoordinatorAvailabilityStatusError");
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { IUserCredentials } from '../contracts/IUserCredentials';
|
|
2
2
|
import { IUserProfile } from '../contracts/IUserProfile';
|
|
3
|
+
import { UserBusinessStatus } from '../value-objects/UserBusinessStatus';
|
|
3
4
|
import { UserDisplayName } from '../value-objects/UserDisplayName';
|
|
4
5
|
import { UserLastAccessAt } from '../value-objects/UserLastAccessAt';
|
|
6
|
+
import { UserType } from '../value-objects/UserType';
|
|
5
7
|
import { IAggregateRoot } from './IAggregateRoot';
|
|
6
8
|
export interface IUser extends IAggregateRoot, IUserProfile, IUserCredentials {
|
|
7
9
|
displayName: UserDisplayName;
|
|
8
10
|
lastAccessAt: UserLastAccessAt;
|
|
11
|
+
userType: UserType;
|
|
12
|
+
businessStatus: UserBusinessStatus;
|
|
9
13
|
}
|
|
10
14
|
//# sourceMappingURL=IUser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IUser.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/entities/IUser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,WAAW,KACf,SAAQ,cAAc,EACtB,YAAY,EACZ,gBAAgB;IAChB,WAAW,EAAE,eAAe,CAAC;IAC7B,YAAY,EAAE,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"IUser.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/entities/IUser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,WAAW,KACf,SAAQ,cAAc,EACtB,YAAY,EACZ,gBAAgB;IAChB,WAAW,EAAE,eAAe,CAAC;IAC7B,YAAY,EAAE,gBAAgB,CAAC;IAC/B,QAAQ,EAAE,QAAQ,CAAC;IACnB,cAAc,EAAE,kBAAkB,CAAC;CACpC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { UserPrimitives } from '../types/UserPrimitives';
|
|
2
2
|
import { UserProps } from '../types/UserProps';
|
|
3
3
|
import { UserAvatar } from '../value-objects/UserAvatar';
|
|
4
|
+
import { UserBusinessStatus } from '../value-objects/UserBusinessStatus';
|
|
4
5
|
import { UserDisplayName } from '../value-objects/UserDisplayName';
|
|
5
6
|
import { UserEmail } from '../value-objects/UserEmail';
|
|
6
7
|
import { UserLastAccessAt } from '../value-objects/UserLastAccessAt';
|
|
7
8
|
import { UserPassword } from '../value-objects/UserPassword';
|
|
9
|
+
import { UserType } from '../value-objects/UserType';
|
|
8
10
|
import { AggregateRoot } from './AggregateRoot';
|
|
9
11
|
import { IUser } from './IUser';
|
|
10
12
|
export declare abstract class User<T extends UserPrimitives> extends AggregateRoot<T> implements IUser {
|
|
@@ -14,6 +16,8 @@ export declare abstract class User<T extends UserPrimitives> extends AggregateRo
|
|
|
14
16
|
get avatar(): UserAvatar;
|
|
15
17
|
get email(): UserEmail;
|
|
16
18
|
get password(): UserPassword;
|
|
19
|
+
get businessStatus(): UserBusinessStatus;
|
|
20
|
+
get userType(): UserType;
|
|
17
21
|
get lastAccessAt(): UserLastAccessAt;
|
|
18
22
|
}
|
|
19
23
|
//# sourceMappingURL=User.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/entities/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,8BAAsB,IAAI,CAAC,CAAC,SAAS,cAAc,CACjD,SAAQ,aAAa,CAAC,CAAC,CACvB,YAAW,KAAK;;
|
|
1
|
+
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/entities/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,8BAAsB,IAAI,CAAC,CAAC,SAAS,cAAc,CACjD,SAAQ,aAAa,CAAC,CAAC,CACvB,YAAW,KAAK;;IAehB,SAAS,aAAa,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,OAAO;IA4BrE,IAAI,WAAW,IAAI,eAAe,CAEjC;IAED,IAAI,MAAM,IAAI,UAAU,CAEvB;IAED,IAAI,KAAK,IAAI,SAAS,CAErB;IAED,IAAI,QAAQ,IAAI,YAAY,CAE3B;IAED,IAAI,cAAc,IAAI,kBAAkB,CAEvC;IAED,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,IAAI,YAAY,IAAI,gBAAgB,CAEnC;CACF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare enum UserBusinessStatus {
|
|
2
|
+
ACTIVE_IN_SYSTEM = "ACTIVE_IN_SYSTEM",
|
|
3
|
+
ONBOARDING_PENDING = "ONBOARDING_PENDING",
|
|
4
|
+
TEMPORARILY_SUSPENDED = "TEMPORARILY_SUSPENDED",
|
|
5
|
+
AWAITING_VERIFICATION = "AWAITING_VERIFICATION"
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=UserBusinessStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserBusinessStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/enums/UserBusinessStatus.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,gBAAgB,qBAAqB;IACrC,kBAAkB,uBAAuB;IACzC,qBAAqB,0BAA0B;IAC/C,qBAAqB,0BAA0B;CAChD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserType.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/enums/UserType.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;CAChC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RootError } from './RootError';
|
|
2
|
+
export declare class InvalidUserBusinessStatusError extends RootError {
|
|
3
|
+
private constructor();
|
|
4
|
+
static create(value: string, validStatuses: string[]): InvalidUserBusinessStatusError;
|
|
5
|
+
logError(): string;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=InvalidUserBusinessStatusError.d.ts.map
|
package/build/types/carbonbox/shared/domain/exceptions/InvalidUserBusinessStatusError.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvalidUserBusinessStatusError.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/exceptions/InvalidUserBusinessStatusError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,8BAA+B,SAAQ,SAAS;IAC3D,OAAO;WAMgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,8BAA8B;IAIrF,QAAQ,IAAI,MAAM;CAGnC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RootError } from './RootError';
|
|
2
|
+
export declare class InvalidUserTypeError extends RootError {
|
|
3
|
+
private constructor();
|
|
4
|
+
static create(value: string, validTypes: string[]): InvalidUserTypeError;
|
|
5
|
+
logError(): string;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=InvalidUserTypeError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvalidUserTypeError.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/exceptions/InvalidUserTypeError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,oBAAqB,SAAQ,SAAS;IACjD,OAAO;WAMgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,oBAAoB;IAIxE,QAAQ,IAAI,MAAM;CAGnC"}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { User } from '../entities/User';
|
|
2
2
|
import { Nullable } from '../types/Nullable';
|
|
3
|
+
import { UserBusinessStatus } from '../value-objects/UserBusinessStatus';
|
|
3
4
|
import { UserEmail } from '../value-objects/UserEmail';
|
|
4
5
|
import { UserId } from '../value-objects/UserId';
|
|
5
6
|
import { UserLastAccessAt } from '../value-objects/UserLastAccessAt';
|
|
7
|
+
import { UserType } from '../value-objects/UserType';
|
|
6
8
|
export interface IUserRepository {
|
|
7
9
|
findByEmail<T extends UserEmail>(email: T): Promise<Nullable<User<any>>>;
|
|
8
10
|
findById<T extends UserId>(id: T): Promise<Nullable<User<any>>>;
|
|
9
11
|
save<T extends User<any>>(user: T): Promise<void>;
|
|
10
12
|
updateLastAccessAt<T extends UserId, U extends UserLastAccessAt>(id: T, lastAccessAt: U): Promise<void>;
|
|
13
|
+
findActiveByEmail<T extends UserEmail>(email: T): Promise<Nullable<User<any>>>;
|
|
14
|
+
findAllByBusinessStatus(businessStatus: UserBusinessStatus): Promise<User<any>[]>;
|
|
15
|
+
findAllByUserType(userType: UserType): Promise<User<any>[]>;
|
|
16
|
+
findByBusinessStatusAndUserType(businessStatus: UserBusinessStatus, userType: UserType): Promise<User<any>[]>;
|
|
11
17
|
}
|
|
12
18
|
//# sourceMappingURL=IUserRepository.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IUserRepository.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/repositories/IUserRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"IUserRepository.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/repositories/IUserRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAErD,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,CAAC,SAAS,SAAS,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACzE,QAAQ,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,EAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAChE,IAAI,CAAC,CAAC,SAAS,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClD,kBAAkB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,gBAAgB,EAAE,EAAE,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAGxG,iBAAiB,CAAC,CAAC,SAAS,SAAS,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC/E,uBAAuB,CAAC,cAAc,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAClF,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAC5D,+BAA+B,CAAC,cAAc,EAAE,kBAAkB,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;CAC/G"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { UserBusinessStatus } from '../enums/UserBusinessStatus';
|
|
2
|
+
import { UserType } from '../enums/UserType';
|
|
1
3
|
import { AggregateRootPrimitives } from './AggregateRootPrimitives';
|
|
2
4
|
import { ImagePrimitives } from './ImagePrimitives';
|
|
3
5
|
import { UserEmailPrimitives } from './UserEmailPrimitives';
|
|
@@ -6,6 +8,8 @@ export type UserPrimitives = AggregateRootPrimitives & {
|
|
|
6
8
|
avatar: ImagePrimitives;
|
|
7
9
|
email: UserEmailPrimitives;
|
|
8
10
|
password: string;
|
|
11
|
+
businessStatus: UserBusinessStatus;
|
|
12
|
+
userType: UserType;
|
|
9
13
|
lastAccessAt: string | null;
|
|
10
14
|
};
|
|
11
15
|
//# sourceMappingURL=UserPrimitives.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserPrimitives.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/UserPrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG,uBAAuB,GAAG;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,eAAe,CAAC;IACxB,KAAK,EAAE,mBAAmB,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B,CAAC"}
|
|
1
|
+
{"version":3,"file":"UserPrimitives.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/UserPrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG,uBAAuB,GAAG;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,eAAe,CAAC;IACxB,KAAK,EAAE,mBAAmB,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,kBAAkB,CAAC;IACnC,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { UserBusinessStatus } from '../enums/UserBusinessStatus';
|
|
2
|
+
import { UserType } from '../enums/UserType';
|
|
1
3
|
import { AggregateRootProps } from './AggregateRootProps';
|
|
2
4
|
import { Image } from './Image';
|
|
3
5
|
import { UserEmail } from './UserEmail';
|
|
@@ -6,6 +8,8 @@ export type UserProps = AggregateRootProps & {
|
|
|
6
8
|
avatar: Image;
|
|
7
9
|
email: UserEmail;
|
|
8
10
|
password: string;
|
|
11
|
+
businessStatus: UserBusinessStatus;
|
|
12
|
+
userType: UserType;
|
|
9
13
|
lastAccessAt: string | null;
|
|
10
14
|
};
|
|
11
15
|
//# sourceMappingURL=UserProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserProps.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/UserProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,MAAM,SAAS,GAAG,kBAAkB,GAAG;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,KAAK,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B,CAAC"}
|
|
1
|
+
{"version":3,"file":"UserProps.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/UserProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,MAAM,SAAS,GAAG,kBAAkB,GAAG;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,KAAK,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,kBAAkB,CAAC;IACnC,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { String } from './String';
|
|
2
|
+
import { UserBusinessStatus as TUserBusinessStatus } from '../enums/UserBusinessStatus';
|
|
3
|
+
export declare class UserBusinessStatus extends String {
|
|
4
|
+
#private;
|
|
5
|
+
protected static readonly PROPERTY_NAME = "businessStatus";
|
|
6
|
+
private static readonly VALID_STATUSES;
|
|
7
|
+
protected constructor(value: string, skipDomainValidation: boolean);
|
|
8
|
+
static create(value: string): UserBusinessStatus;
|
|
9
|
+
static fromPrimitives(primitive: string): UserBusinessStatus;
|
|
10
|
+
toPrimitives(): string;
|
|
11
|
+
toEnum(): TUserBusinessStatus;
|
|
12
|
+
isActiveInSystem(): boolean;
|
|
13
|
+
isOnboardingPending(): boolean;
|
|
14
|
+
isTemporarilySuspended(): boolean;
|
|
15
|
+
isAwaitingVerification(): boolean;
|
|
16
|
+
canPerformBusinessOperations(): boolean;
|
|
17
|
+
needsAction(): boolean;
|
|
18
|
+
equals(other: UserBusinessStatus): boolean;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=UserBusinessStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserBusinessStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/UserBusinessStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,kBAAkB,IAAI,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAGxF,qBAAa,kBAAmB,SAAQ,MAAM;;IAC5C,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,oBAAoB;IAE3D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAsC;IAE5E,SAAS,aAAa,KAAK,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO;WAsB3C,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,kBAAkB;WAOzC,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,kBAAkB;IAM5D,YAAY,IAAI,MAAM;IAI/B,MAAM,IAAI,mBAAmB;IAK7B,gBAAgB,IAAI,OAAO;IAI3B,mBAAmB,IAAI,OAAO;IAI9B,sBAAsB,IAAI,OAAO;IAIjC,sBAAsB,IAAI,OAAO;IAIjC,4BAA4B,IAAI,OAAO;IAIvC,WAAW,IAAI,OAAO;IAItB,MAAM,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO;CAGlD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { String } from './String';
|
|
2
|
+
import { UserType as TUserType } from '../enums/UserType';
|
|
3
|
+
export declare class UserType extends String {
|
|
4
|
+
#private;
|
|
5
|
+
protected static readonly PROPERTY_NAME = "userType";
|
|
6
|
+
private static readonly VALID_TYPES;
|
|
7
|
+
protected constructor(value: string, skipDomainValidation: boolean);
|
|
8
|
+
static create(value: string): UserType;
|
|
9
|
+
static fromPrimitives(primitive: string): UserType;
|
|
10
|
+
toPrimitives(): string;
|
|
11
|
+
toEnum(): TUserType;
|
|
12
|
+
isAdministrator(): boolean;
|
|
13
|
+
isStakeholder(): boolean;
|
|
14
|
+
equals(other: UserType): boolean;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=UserType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserType.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/UserType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG1D,qBAAa,QAAS,SAAQ,MAAM;;IAClC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,cAAc;IAErD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,CAA4B;IAE/D,SAAS,aAAa,KAAK,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO;WAsB3C,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ;WAO/B,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ;IAKlD,YAAY,IAAI,MAAM;IAI/B,MAAM,IAAI,SAAS;IAKnB,eAAe,IAAI,OAAO;IAI1B,aAAa,IAAI,OAAO;IAIxB,MAAM,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO;CAGxC"}
|
package/build/types/carbonbox/stakeholders/carbon-clients/domain/entity/CarbonClient.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarbonClient.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-clients/domain/entity/CarbonClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CarbonClient.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-clients/domain/entity/CarbonClient.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAMnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAErF,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAE7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AAEnG,OAAO,EAAE,mCAAmC,EAAE,MAAM,sDAAsD,CAAC;AAG3G,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,qBAAa,YACX,SAAQ,WAAW,CAAC,sBAAsB,CAC1C,YAAW,aAAa;;IAuBxB,OAAO;WA0EgB,MAAM,CAAC,KAAK,EAAE,iBAAiB,GAAG,YAAY;WAI9C,cAAc,CAAC,UAAU,EAAE,sBAAsB,GAAG,YAAY;IA4BvF,IAAoB,YAAY,IAAI,sBAAsB,CAwBzD;IAED,IAAW,iBAAiB,IAAI,6BAA6B,CAE5D;IAED,IAAW,YAAY,IAAI,wBAAwB,CAElD;IAED,IAAW,gBAAgB,IAAI,4BAA4B,CAE1D;IAED,IAAW,eAAe,IAAI,2BAA2B,CAExD;IAED,IAAW,mBAAmB,IAAI,+BAA+B,CAEhE;IAED,IAAW,mBAAmB,IAAI,+BAA+B,CAEhE;IAED,IAAW,UAAU,IAAI,sBAAsB,CAE9C;IAED,IAAW,IAAI,IAAI,gBAAgB,CAElC;IAED,IAAW,WAAW,IAAI,uBAAuB,CAEhD;IAED,IAAW,uBAAuB,IAAI,mCAAmC,CAExE;IAED,IAAW,WAAW,IAAI,uBAAuB,CAEhD;CACF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StakeholderUserType } from '../../../shared/domain/value-objects/StakeholderUserType';
|
|
2
|
+
export declare class CarbonClientUserType extends StakeholderUserType {
|
|
3
|
+
private constructor();
|
|
4
|
+
static create(value: string): CarbonClientUserType;
|
|
5
|
+
static fromPrimitives(primitive: string): CarbonClientUserType;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=CarbonClientUserType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarbonClientUserType.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientUserType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAC;AAE/F,qBAAa,oBAAqB,SAAQ,mBAAmB;IAC3D,OAAO;WAIgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,oBAAoB;WAO3C,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,oBAAoB;CAG/E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarbonCoordinator.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-coordinators/domain/entity/CarbonCoordinator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CarbonCoordinator.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-coordinators/domain/entity/CarbonCoordinator.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,sCAAsC,EAAE,MAAM,yDAAyD,CAAC;AACjH,OAAO,EAAE,mCAAmC,EAAE,MAAM,sDAAsD,CAAC;AAK3G,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,OAAO,EAAE,qCAAqC,EAAE,MAAM,wDAAwD,CAAC;AAE/G,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,qCAAqC,EAAE,MAAM,wDAAwD,CAAC;AAI/G,OAAO,EAAE,sCAAsC,EAAE,MAAM,yDAAyD,CAAC;AACjH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,iBACX,SAAQ,WAAW,CAAC,2BAA2B,CAC/C,YAAW,kBAAkB;;IAe7B,OAAO;WAkEgB,MAAM,CAAC,KAAK,EAAE,sBAAsB,GAAG,iBAAiB;WAIxD,cAAc,CAAC,UAAU,EAAE,2BAA2B,GAAG,iBAAiB;IAwBjG,IAAoB,YAAY,IAAI,2BAA2B,CAoB9D;IAED,IAAW,kBAAkB,IAAI,mCAAmC,CAEnE;IAED,IAAW,qBAAqB,IAAI,sCAAsC,CAEzE;IAED,IAAW,MAAM,IAAI,uBAAuB,CAE3C;IAED,IAAW,WAAW,IAAI,4BAA4B,CAErD;IAED,IAAW,qBAAqB,IAAI,sCAAsC,CAEzE;IAED,IAAW,oBAAoB,IAAI,qCAAqC,CAEvE;IAED,IAAW,oBAAoB,IAAI,qCAAqC,CAEvE;CACF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StakeholderUserType } from '../../../shared/domain/value-objects/StakeholderUserType';
|
|
2
|
+
export declare class CarbonCoordinatorUserType extends StakeholderUserType {
|
|
3
|
+
private constructor();
|
|
4
|
+
static create(value: string): CarbonCoordinatorUserType;
|
|
5
|
+
static fromPrimitives(primitive: string): CarbonCoordinatorUserType;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=CarbonCoordinatorUserType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarbonCoordinatorUserType.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorUserType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAC;AAE/F,qBAAa,yBAA0B,SAAQ,mBAAmB;IAChE,OAAO;WAIgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,yBAAyB;WAOhD,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,yBAAyB;CAGpF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarbonHost.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-host/domain/entity/CarbonHost.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CarbonHost.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-host/domain/entity/CarbonHost.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAQ3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAI/E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,UACX,SAAQ,WAAW,CAAC,oBAAoB,CACxC,YAAW,WAAW;;IAGtB,OAAO;WAsDgB,MAAM,CAAC,KAAK,EAAE,eAAe,GAAG,UAAU;WAI1C,cAAc,CAAC,UAAU,EAAE,oBAAoB,GAAG,UAAU;IAkBnF,IAAoB,YAAY,IAAI,oBAAoB,CAcvD;IAED,IAAW,WAAW,IAAI,qBAAqB,CAE9C;CACF"}
|
package/build/types/carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostUserType.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StakeholderUserType } from '../../../shared/domain/value-objects/StakeholderUserType';
|
|
2
|
+
export declare class CarbonHostUserType extends StakeholderUserType {
|
|
3
|
+
private constructor();
|
|
4
|
+
static create(value: string): CarbonHostUserType;
|
|
5
|
+
static fromPrimitives(primitive: string): CarbonHostUserType;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=CarbonHostUserType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarbonHostUserType.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostUserType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAC;AAE/F,qBAAa,kBAAmB,SAAQ,mBAAmB;IACzD,OAAO;WAIgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,kBAAkB;WAOzC,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,kBAAkB;CAG7E"}
|
package/build/types/carbonbox/stakeholders/carbon-managers/domain/entity/CarbonManager.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarbonManager.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-managers/domain/entity/CarbonManager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CarbonManager.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-managers/domain/entity/CarbonManager.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAOjE,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AAErG,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAIrF,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,aACX,SAAQ,WAAW,CAAC,uBAAuB,CAC3C,YAAW,cAAc;;IAKzB,OAAO;WAwDgB,MAAM,CAAC,KAAK,EAAE,kBAAkB,GAAG,aAAa;WAIhD,cAAc,CAAC,UAAU,EAAE,uBAAuB,GAAG,aAAa;IAmBzF,IAAoB,YAAY,IAAI,uBAAuB,CAe1D;IAED,IAAW,WAAW,IAAI,wBAAwB,CAEjD;IAED,IAAW,mBAAmB,IAAI,gCAAgC,CAEjE;CACF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StakeholderUserType } from '../../../shared/domain/value-objects/StakeholderUserType';
|
|
2
|
+
export declare class CarbonManagerUserType extends StakeholderUserType {
|
|
3
|
+
private constructor();
|
|
4
|
+
static create(value: string): CarbonManagerUserType;
|
|
5
|
+
static fromPrimitives(primitive: string): CarbonManagerUserType;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=CarbonManagerUserType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarbonManagerUserType.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerUserType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAC;AAE/F,qBAAa,qBAAsB,SAAQ,mBAAmB;IAC5D,OAAO;WAIgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,qBAAqB;WAO5C,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,qBAAqB;CAGhF"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { IUser } from '../../../../shared/domain/entities/IUser';
|
|
2
|
-
import { StakeholderBusinessStatus } from '../value-objects/StakeholderBusinessStatus';
|
|
3
2
|
import { StakeholderRoleType } from '../value-objects/StakeholderRoleType';
|
|
4
3
|
import { StakeholderTaxIdentification } from '../value-objects/StakeholderTaxIdentification';
|
|
5
4
|
export interface IStakeholder extends IUser {
|
|
6
5
|
taxIdentification: StakeholderTaxIdentification;
|
|
7
6
|
roleType: StakeholderRoleType;
|
|
8
|
-
businessStatus: StakeholderBusinessStatus;
|
|
9
7
|
}
|
|
10
8
|
//# sourceMappingURL=IStakeholder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IStakeholder.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/shared/domain/entity/IStakeholder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0CAA0C,CAAC;AACjE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"IStakeholder.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/shared/domain/entity/IStakeholder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0CAA0C,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAE7F,MAAM,WAAW,YAAa,SAAQ,KAAK;IACzC,iBAAiB,EAAE,4BAA4B,CAAC;IAChD,QAAQ,EAAE,mBAAmB,CAAC;CAC/B"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { User } from '../../../../shared/domain/entities/User';
|
|
2
2
|
import { StakeholderPrimitives } from '../types/StakeholderPrimitives';
|
|
3
3
|
import { StakeholderProps } from '../types/StakeholderProps';
|
|
4
|
-
import { StakeholderBusinessStatus } from '../value-objects/StakeholderBusinessStatus';
|
|
5
4
|
import { StakeholderRoleType } from '../value-objects/StakeholderRoleType';
|
|
6
5
|
import { StakeholderTaxIdentification } from '../value-objects/StakeholderTaxIdentification';
|
|
7
6
|
import { IStakeholder } from './IStakeholder';
|
|
@@ -10,6 +9,5 @@ export declare abstract class Stakeholder<T extends StakeholderPrimitives> exten
|
|
|
10
9
|
protected constructor(props: StakeholderProps, skipDomainValidation: boolean);
|
|
11
10
|
get taxIdentification(): StakeholderTaxIdentification;
|
|
12
11
|
get roleType(): StakeholderRoleType;
|
|
13
|
-
get businessStatus(): StakeholderBusinessStatus;
|
|
14
12
|
}
|
|
15
13
|
//# sourceMappingURL=Stakeholder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stakeholder.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/shared/domain/entity/Stakeholder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"Stakeholder.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/shared/domain/entity/Stakeholder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yCAAyC,CAAC;AAK/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAQ7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAE7F,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,8BAAsB,WAAW,CAAC,CAAC,SAAS,qBAAqB,CAC/D,SAAQ,IAAI,CAAC,CAAC,CACd,YAAW,YAAY;;IAKvB,SAAS,aAAa,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,OAAO;IAgD5E,IAAW,iBAAiB,IAAI,4BAA4B,CAE3D;IAED,IAAW,QAAQ,IAAI,mBAAmB,CAEzC;CACF"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { StakeholderRole } from '../../../../shared/domain/enums/StakeholderRole';
|
|
2
2
|
import { TaxIdentificationPrimitives } from '../../../../shared/domain/types/TaxIdentificationPrimitives';
|
|
3
3
|
import { UserPrimitives } from '../../../../shared/domain/types/UserPrimitives';
|
|
4
|
-
import { StakeholderBusinessStatus } from '../enums/StakeholderBusinessStatus';
|
|
5
4
|
export type StakeholderPrimitives = UserPrimitives & {
|
|
6
5
|
taxIdentification: TaxIdentificationPrimitives;
|
|
7
6
|
roleType: StakeholderRole;
|
|
8
|
-
businessStatus: StakeholderBusinessStatus;
|
|
9
7
|
};
|
|
10
8
|
//# sourceMappingURL=StakeholderPrimitives.d.ts.map
|
package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPrimitives.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StakeholderPrimitives.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/shared/domain/types/StakeholderPrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAClF,OAAO,EAAE,2BAA2B,EAAE,MAAM,6DAA6D,CAAC;AAC1G,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"StakeholderPrimitives.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/shared/domain/types/StakeholderPrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAClF,OAAO,EAAE,2BAA2B,EAAE,MAAM,6DAA6D,CAAC;AAC1G,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAEhF,MAAM,MAAM,qBAAqB,GAAG,cAAc,GAAG;IACnD,iBAAiB,EAAE,2BAA2B,CAAC;IAC/C,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { StakeholderRole } from '../../../../shared/domain/enums/StakeholderRole';
|
|
2
2
|
import { TaxIdentification } from '../../../../shared/domain/types/TaxIdentification';
|
|
3
3
|
import { UserProps } from '../../../../shared/domain/types/UserProps';
|
|
4
|
-
import { StakeholderBusinessStatus } from '../enums/StakeholderBusinessStatus';
|
|
5
4
|
export type StakeholderProps = UserProps & {
|
|
6
5
|
taxIdentification: TaxIdentification;
|
|
7
6
|
roleType: StakeholderRole;
|
|
8
|
-
businessStatus: StakeholderBusinessStatus;
|
|
9
7
|
};
|
|
10
8
|
//# sourceMappingURL=StakeholderProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StakeholderProps.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/shared/domain/types/StakeholderProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"StakeholderProps.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/shared/domain/types/StakeholderProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AAEtE,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG;IACzC,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC"}
|