@carbonbox/domain 0.4.13 → 0.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/value-objects/ActivityDataSubmissionId.js +1 -1
- package/build/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldId.js +1 -1
- package/build/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleId.js +1 -1
- package/build/carbonbox/activity-data-collection/contextual-labels/domain/value-objects/ContextualLabelId.js +1 -1
- package/build/carbonbox/activity-data-collection/dynamic-forms/domain/value-objects/DynamicFormId.js +1 -1
- package/build/carbonbox/activity-data-collection/stakeholder-adaptations/domain/value-objects/StakeholderAdaptationId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/subsegments/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/domain/value-objects/CorporateCarbonFootprintConfigurationId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/event-configurations/domain/value-objects/EventCarbonFootprintConfigurationId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/domain/value-objects/EventEditionLifecycleStageConfigurationId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/event-edition-lifecycle-stages/domain/value-objects/EventEditionLifecycleStageId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/product-configurations/domain/value-objects/ProductCarbonFootprintConfigurationId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/domain/value-objects/ProductCarbonFootprintSegmentConfigurationId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/domain/value-objects/ProductConfigurationCarbonFootprintSegmentId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/subsegments/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/product-configurations/system-boundaries/domain/value-objects/ProductConfigurationSystemBoundaryId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintConfigurationId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintConfigurationIntensityIndicatorConfigurations.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintIntensityIndicatorId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintSegmentId.js +1 -1
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintSubsegmentId.js +1 -1
- package/build/carbonbox/company-resources/events/domain/value-objects/EventId.js +1 -1
- package/build/carbonbox/company-resources/events/editions/domain/value-objects/EventEditionId.js +1 -1
- package/build/carbonbox/company-resources/facilities/domain/value-objects/FacilityId.js +1 -1
- package/build/carbonbox/company-resources/products/domain/value-objects/ProductId.js +1 -1
- package/build/carbonbox/emission-calculation-formulas/calculation-variables/domain/value-objects/CalculationVariableActivityDataConditions.js +1 -1
- package/build/carbonbox/emission-calculation-formulas/calculation-variables/domain/value-objects/CalculationVariableId.js +1 -1
- package/build/carbonbox/emission-calculation-formulas/domain/value-objects/EmissionCalculationFormulaId.js +1 -1
- package/build/carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorId.js +1 -1
- package/build/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/value-objects/GlobalWarmingPotentialId.js +1 -1
- package/build/carbonbox/emission-calculation-process/calculation-jobs/domain/value-objects/CalculationJobId.js +1 -1
- package/build/carbonbox/emission-calculation-process/calculation-processes/domain/value-objects/CalculationProcessId.js +1 -1
- package/build/carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowId.js +1 -1
- package/build/carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowParallelJobs.js +1 -1
- package/build/carbonbox/emission-calculation-results/emission-aggregations/domain/value-objects/EmissionAggregationId.js +1 -1
- package/build/carbonbox/emission-calculation-results/emission-calculations/domain/value-objects/EmissionCalculationId.js +1 -1
- package/build/carbonbox/emission-calculation-results/ghg-emission-results/domain/value-objects/GHGEmissionResultId.js +1 -1
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/value-objects/PurchaseContractCarbonClientId.js +1 -1
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/value-objects/PurchaseContractContractAmendments.js +1 -1
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/value-objects/PurchaseContractId.js +1 -1
- package/build/carbonbox/purchase-management-system/purchase-orders/domain/value-objects/PurchaseOrderCarbonClientId.js +1 -1
- package/build/carbonbox/purchase-management-system/purchase-orders/domain/value-objects/PurchaseOrderId.js +1 -1
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogId.js +1 -1
- package/build/carbonbox/purchase-management-system/service-pricing/domain/value-objects/ServicePricingId.js +1 -1
- package/build/carbonbox/shared/domain/authorization/enums/Permission.js +12 -64
- package/build/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.js +19 -0
- package/build/carbonbox/shared/domain/services/contracts/IAggregateIdDomainService.js +2 -0
- package/build/carbonbox/shared/domain/services/implementations/AggregateIdDomainService.js +290 -0
- package/build/carbonbox/shared/domain/value-objects/ActivityDataSubmissionReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/AggregateId.js +34 -38
- package/build/carbonbox/shared/domain/value-objects/AggregateIdList.js +3 -3
- package/build/carbonbox/shared/domain/value-objects/CalculationProcessReference.js +3 -3
- package/build/carbonbox/shared/domain/value-objects/CalculationVariableReferences.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/CarbonClientReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/CarbonFootprintConfigurationReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/CarbonFootprintIntensityIndicatorReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/CarbonFootprintSegmentReferences.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/CollectionFieldReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationReferences.js +2 -2
- package/build/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/EmissionCalculationFormulaReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/EmissionCalculationReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/EmissionFactorReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentReferences.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageConfigurationReferences.js +2 -2
- package/build/carbonbox/shared/domain/value-objects/EventEditionLifecycleStageReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/EventEditionReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/EventEditionReferences.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/EventReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/FacilityReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/GlobalWarmingPotentialReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/NullableCorporateConfigurationCarbonFootprintSubsegmentReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/NullableEventEditionConfigurationCarbonFootprintSubsegmentReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/NullableProductConfigurationCarbonFootprintSubsegmentReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/ProductCarbonFootprintSegmentConfigurationReferences.js +2 -2
- package/build/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSegmentReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/ProductConfigurationSystemBoundaryReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/ProductReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/ServiceCatalogReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/StakeholderReference.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/StakeholderReferences.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/UserId.js +1 -1
- package/build/carbonbox/shared/domain/value-objects/UserPermissions.js +0 -227
- package/build/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientId.js +1 -1
- package/build/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientPermissions.js +0 -5
- package/build/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorId.js +1 -1
- package/build/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorPermissions.js +0 -5
- package/build/carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostId.js +1 -1
- package/build/carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostPermissions.js +0 -5
- package/build/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerId.js +1 -1
- package/build/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerPermissions.js +0 -5
- package/build/carbonbox/stakeholders/shared/domain/value-objects/StakeholderId.js +1 -1
- package/build/main/index.js +6 -6
- package/build/types/carbonbox/shared/domain/authorization/enums/Permission.d.ts +10 -62
- package/build/types/carbonbox/shared/domain/authorization/enums/Permission.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.d.ts +8 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/services/contracts/IAggregateIdDomainService.d.ts +85 -0
- package/build/types/carbonbox/shared/domain/services/contracts/IAggregateIdDomainService.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/services/implementations/AggregateIdDomainService.d.ts +67 -0
- package/build/types/carbonbox/shared/domain/services/implementations/AggregateIdDomainService.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/value-objects/AggregateId.d.ts +17 -19
- package/build/types/carbonbox/shared/domain/value-objects/AggregateId.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/UserPermissions.d.ts +0 -5
- package/build/types/carbonbox/shared/domain/value-objects/UserPermissions.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientPermissions.d.ts +0 -1
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientPermissions.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorPermissions.d.ts +0 -1
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorPermissions.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostPermissions.d.ts +0 -1
- package/build/types/carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostPermissions.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerPermissions.d.ts +0 -1
- package/build/types/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerPermissions.d.ts.map +1 -1
- package/build/types/main/index.d.ts +3 -3
- package/build/types/main/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,65 +1,13 @@
|
|
|
1
1
|
export declare enum Permission {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
CAN_MANAGE_EVENT_CARBON_FOOTPRINT_CONFIGURATIONS = "CAN_MANAGE_EVENT_CARBON_FOOTPRINT_CONFIGURATIONS",
|
|
13
|
-
CAN_MANAGE_EVENT_LIFECYCLE_STAGE_CONFIGURATIONS = "CAN_MANAGE_EVENT_LIFECYCLE_STAGE_CONFIGURATIONS",
|
|
14
|
-
CAN_MANAGE_PRODUCT_CARBON_FOOTPRINT_CONFIGURATIONS = "CAN_MANAGE_PRODUCT_CARBON_FOOTPRINT_CONFIGURATIONS",
|
|
15
|
-
CAN_MANAGE_PRODUCT_SEGMENT_CONFIGURATIONS = "CAN_MANAGE_PRODUCT_SEGMENT_CONFIGURATIONS",
|
|
16
|
-
CAN_MANAGE_PRODUCT_SYSTEM_BOUNDARIES = "CAN_MANAGE_PRODUCT_SYSTEM_BOUNDARIES",
|
|
17
|
-
CAN_MANAGE_INTENSITY_INDICATORS = "CAN_MANAGE_INTENSITY_INDICATORS",
|
|
18
|
-
CAN_MANAGE_COLLECTION_FIELDS = "CAN_MANAGE_COLLECTION_FIELDS",
|
|
19
|
-
CAN_MANAGE_DYNAMIC_FORMS = "CAN_MANAGE_DYNAMIC_FORMS",
|
|
20
|
-
CAN_MANAGE_CONDITIONAL_LOGIC = "CAN_MANAGE_CONDITIONAL_LOGIC",
|
|
21
|
-
CAN_MANAGE_CONTEXTUAL_LABELS = "CAN_MANAGE_CONTEXTUAL_LABELS",
|
|
22
|
-
CAN_MANAGE_STAKEHOLDER_ADAPTATIONS = "CAN_MANAGE_STAKEHOLDER_ADAPTATIONS",
|
|
23
|
-
CAN_MANAGE_ACTIVITY_DATA_SUBMISSIONS = "CAN_MANAGE_ACTIVITY_DATA_SUBMISSIONS",
|
|
24
|
-
CAN_APPROVE_ACTIVITY_DATA_SUBMISSIONS = "CAN_APPROVE_ACTIVITY_DATA_SUBMISSIONS",
|
|
25
|
-
CAN_REJECT_ACTIVITY_DATA_SUBMISSIONS = "CAN_REJECT_ACTIVITY_DATA_SUBMISSIONS",
|
|
26
|
-
CAN_MANAGE_FORMULAS = "CAN_MANAGE_FORMULAS",
|
|
27
|
-
CAN_MANAGE_EMISSION_FACTORS = "CAN_MANAGE_EMISSION_FACTORS",
|
|
28
|
-
CAN_MANAGE_CALCULATION_VARIABLES = "CAN_MANAGE_CALCULATION_VARIABLES",
|
|
29
|
-
CAN_MANAGE_CONSTANTS = "CAN_MANAGE_CONSTANTS",
|
|
30
|
-
CAN_MANAGE_GLOBAL_WARMING_POTENTIALS = "CAN_MANAGE_GLOBAL_WARMING_POTENTIALS",
|
|
31
|
-
CAN_MANAGE_CALCULATION_PROCESSES = "CAN_MANAGE_CALCULATION_PROCESSES",
|
|
32
|
-
CAN_MANAGE_CALCULATION_WORKFLOWS = "CAN_MANAGE_CALCULATION_WORKFLOWS",
|
|
33
|
-
CAN_MANAGE_CALCULATION_JOBS = "CAN_MANAGE_CALCULATION_JOBS",
|
|
34
|
-
CAN_EXECUTE_CALCULATION_JOBS = "CAN_EXECUTE_CALCULATION_JOBS",
|
|
35
|
-
CAN_MONITOR_CALCULATION_PROCESSES = "CAN_MONITOR_CALCULATION_PROCESSES",
|
|
36
|
-
CAN_CANCEL_CALCULATION_JOBS = "CAN_CANCEL_CALCULATION_JOBS",
|
|
37
|
-
CAN_RETRY_FAILED_CALCULATIONS = "CAN_RETRY_FAILED_CALCULATIONS",
|
|
38
|
-
CAN_VIEW_EMISSION_CALCULATION_RESULTS = "CAN_VIEW_EMISSION_CALCULATION_RESULTS",
|
|
39
|
-
CAN_MANAGE_EMISSION_CALCULATION_RESULTS = "CAN_MANAGE_EMISSION_CALCULATION_RESULTS",
|
|
40
|
-
CAN_VIEW_EMISSION_AGGREGATIONS = "CAN_VIEW_EMISSION_AGGREGATIONS",
|
|
41
|
-
CAN_MANAGE_EMISSION_AGGREGATIONS = "CAN_MANAGE_EMISSION_AGGREGATIONS",
|
|
42
|
-
CAN_VIEW_GHG_EMISSION_RESULTS = "CAN_VIEW_GHG_EMISSION_RESULTS",
|
|
43
|
-
CAN_MANAGE_GHG_EMISSION_RESULTS = "CAN_MANAGE_GHG_EMISSION_RESULTS",
|
|
44
|
-
CAN_EXPORT_CALCULATION_RESULTS = "CAN_EXPORT_CALCULATION_RESULTS",
|
|
45
|
-
CAN_GENERATE_EMISSION_REPORTS = "CAN_GENERATE_EMISSION_REPORTS",
|
|
46
|
-
CAN_MANAGE_EVENTS = "CAN_MANAGE_EVENTS",
|
|
47
|
-
CAN_MANAGE_EVENT_EDITIONS = "CAN_MANAGE_EVENT_EDITIONS",
|
|
48
|
-
CAN_MANAGE_FACILITIES = "CAN_MANAGE_FACILITIES",
|
|
49
|
-
CAN_MANAGE_PRODUCTS = "CAN_MANAGE_PRODUCTS",
|
|
50
|
-
CAN_VIEW_COMPANY_RESOURCES = "CAN_VIEW_COMPANY_RESOURCES",
|
|
51
|
-
CAN_VIEW_PURCHASES = "CAN_VIEW_PURCHASES",
|
|
52
|
-
CAN_CREATE_PURCHASE_ORDERS = "CAN_CREATE_PURCHASE_ORDERS",
|
|
53
|
-
CAN_UPDATE_PURCHASE_ORDERS = "CAN_UPDATE_PURCHASE_ORDERS",
|
|
54
|
-
CAN_DELETE_PURCHASE_ORDERS = "CAN_DELETE_PURCHASE_ORDERS",
|
|
55
|
-
CAN_MANAGE_PURCHASE_CONTRACTS = "CAN_MANAGE_PURCHASE_CONTRACTS",
|
|
56
|
-
CAN_CONFIGURE_SERVICE_PRICING = "CAN_CONFIGURE_SERVICE_PRICING",
|
|
57
|
-
CAN_MANAGE_CARBON_CLIENTS = "CAN_MANAGE_CARBON_CLIENTS",
|
|
58
|
-
CAN_MANAGE_CARBON_COORDINATORS = "CAN_MANAGE_CARBON_COORDINATORS",
|
|
59
|
-
CAN_MANAGE_CARBON_MANAGERS = "CAN_MANAGE_CARBON_MANAGERS",
|
|
60
|
-
CAN_MANAGE_CARBON_HOSTS = "CAN_MANAGE_CARBON_HOSTS",
|
|
61
|
-
CAN_VIEW_STAKEHOLDER_HIERARCHY = "CAN_VIEW_STAKEHOLDER_HIERARCHY",
|
|
62
|
-
CAN_ASSIGN_STAKEHOLDER_ROLES = "CAN_ASSIGN_STAKEHOLDER_ROLES",
|
|
63
|
-
CAN_MANAGE_STAKEHOLDER_ROLES = "CAN_MANAGE_STAKEHOLDER_ROLES"
|
|
2
|
+
CAN_VIEW_CARBON_HOST = "CAN_VIEW_CARBON_HOST",
|
|
3
|
+
CAN_UPDATE_CARBON_HOST_PROFILE = "CAN_UPDATE_CARBON_HOST_PROFILE",
|
|
4
|
+
CAN_CHANGE_CARBON_HOST_PASSWORD = "CAN_CHANGE_CARBON_HOST_PASSWORD",
|
|
5
|
+
CAN_VIEW_CARBON_HOST_PROFILE = "CAN_VIEW_CARBON_HOST_PROFILE",
|
|
6
|
+
CAN_UPDATE_OWN_PROFILE = "CAN_UPDATE_OWN_PROFILE",
|
|
7
|
+
CAN_CHANGE_OWN_PASSWORD = "CAN_CHANGE_OWN_PASSWORD",
|
|
8
|
+
CAN_VIEW_OWN_PROFILE = "CAN_VIEW_OWN_PROFILE",
|
|
9
|
+
CAN_UPDATE_OTHER_USER_PROFILES = "CAN_UPDATE_OTHER_USER_PROFILES",
|
|
10
|
+
CAN_CHANGE_OTHER_USER_PASSWORDS = "CAN_CHANGE_OTHER_USER_PASSWORDS",
|
|
11
|
+
CAN_VIEW_OTHER_USER_PROFILES = "CAN_VIEW_OTHER_USER_PROFILES"
|
|
64
12
|
}
|
|
65
13
|
//# sourceMappingURL=Permission.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Permission.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/shared/domain/authorization/enums/Permission.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;
|
|
1
|
+
{"version":3,"file":"Permission.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/shared/domain/authorization/enums/Permission.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IAkBpB,oBAAoB,yBAAyB;IAC7C,8BAA8B,mCAAmC;IACjE,+BAA+B,oCAAoC;IACnE,4BAA4B,iCAAiC;IAG7D,sBAAsB,2BAA2B;IACjD,uBAAuB,4BAA4B;IACnD,oBAAoB,yBAAyB;IAC7C,8BAA8B,mCAAmC;IACjE,+BAA+B,oCAAoC;IACnE,4BAA4B,iCAAiC;CAC9D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RootError } from './RootError';
|
|
2
|
+
export declare class InvalidAggregateIdFormatError extends RootError {
|
|
3
|
+
private static readonly INVALID_AGGREGATE_ID_ERROR_MESSAGE;
|
|
4
|
+
private constructor();
|
|
5
|
+
static create(aggregateId: string, propertyName: string): InvalidAggregateIdFormatError;
|
|
6
|
+
logError(): string;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=InvalidAggregateIdFormatError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvalidAggregateIdFormatError.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,6BAA8B,SAAQ,SAAS;IAC1D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,kCAAkC,CAA6I;IAEvM,OAAO;WASgB,MAAM,CAC3B,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GACnB,6BAA6B;IAIhB,QAAQ,IAAI,MAAM;CAGnC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { IEither } from '../../../either';
|
|
2
|
+
import { SemanticUuidPrefix } from '../../enums/SemanticUuidPrefix';
|
|
3
|
+
import { InvalidAggregateIdFormatError } from '../../exceptions/InvalidAggregateIdFormatError';
|
|
4
|
+
/**
|
|
5
|
+
* Interface for Aggregate ID parsing and validation domain service.
|
|
6
|
+
* Provides centralized business logic for aggregate ID handling across the domain.
|
|
7
|
+
* Uses Either pattern for functional error handling.
|
|
8
|
+
*
|
|
9
|
+
* This service is designed to be used in factories, application services, and other
|
|
10
|
+
* non-value-object contexts to maintain Value Object purity.
|
|
11
|
+
*/
|
|
12
|
+
export interface IAggregateIdDomainService {
|
|
13
|
+
/**
|
|
14
|
+
* Validates if a string is a valid aggregate ID prefix
|
|
15
|
+
* @param prefix The prefix string to validate
|
|
16
|
+
* @returns Either with validation result or error
|
|
17
|
+
*/
|
|
18
|
+
isValidPrefix(prefix: string): IEither<InvalidAggregateIdFormatError, boolean>;
|
|
19
|
+
/**
|
|
20
|
+
* Gets the bounded context name from an aggregate ID prefix
|
|
21
|
+
* @param prefix The aggregate ID prefix
|
|
22
|
+
* @returns Either with bounded context name or error
|
|
23
|
+
*/
|
|
24
|
+
getBoundedContext(prefix: SemanticUuidPrefix): IEither<InvalidAggregateIdFormatError, string>;
|
|
25
|
+
/**
|
|
26
|
+
* Gets the subdomain from an aggregate ID prefix
|
|
27
|
+
* @param prefix The aggregate ID prefix
|
|
28
|
+
* @returns Either with subdomain name or error
|
|
29
|
+
*/
|
|
30
|
+
getSubdomain(prefix: SemanticUuidPrefix): IEither<InvalidAggregateIdFormatError, string>;
|
|
31
|
+
/**
|
|
32
|
+
* Gets all available prefixes as an array
|
|
33
|
+
* @returns Either with array of all prefixes or error
|
|
34
|
+
*/
|
|
35
|
+
getAllPrefixes(): IEither<InvalidAggregateIdFormatError, string[]>;
|
|
36
|
+
/**
|
|
37
|
+
* Gets prefixes by bounded context
|
|
38
|
+
* @param boundedContext The bounded context name
|
|
39
|
+
* @returns Either with array of prefixes for the context or error
|
|
40
|
+
*/
|
|
41
|
+
getPrefixesByBoundedContext(boundedContext: string): IEither<InvalidAggregateIdFormatError, SemanticUuidPrefix[]>;
|
|
42
|
+
/**
|
|
43
|
+
* Validates a complete aggregate ID format
|
|
44
|
+
* @param aggregateId The complete aggregate ID to validate
|
|
45
|
+
* @returns Either with validation result or error
|
|
46
|
+
*/
|
|
47
|
+
validateAggregateIdFormat(aggregateId: string): IEither<InvalidAggregateIdFormatError, boolean>;
|
|
48
|
+
/**
|
|
49
|
+
* Extracts and validates the prefix from an aggregate ID
|
|
50
|
+
* @param aggregateId The complete aggregate ID
|
|
51
|
+
* @returns Either with extracted prefix or error
|
|
52
|
+
*/
|
|
53
|
+
extractPrefix(aggregateId: string): IEither<InvalidAggregateIdFormatError, string>;
|
|
54
|
+
/**
|
|
55
|
+
* Extracts and validates the ID from an aggregate ID
|
|
56
|
+
* @param aggregateId The complete aggregate ID
|
|
57
|
+
* @returns Either with extracted ID or error
|
|
58
|
+
*/
|
|
59
|
+
extractId(aggregateId: string): IEither<InvalidAggregateIdFormatError, string>;
|
|
60
|
+
/**
|
|
61
|
+
* Extracts the bounded context code (first 3 letters) from an aggregate ID
|
|
62
|
+
* @param aggregateId The complete aggregate ID
|
|
63
|
+
* @returns Either with bounded context code or error
|
|
64
|
+
*/
|
|
65
|
+
extractBoundedContextCode(aggregateId: string): IEither<InvalidAggregateIdFormatError, string>;
|
|
66
|
+
/**
|
|
67
|
+
* Extracts all subdomain parts from an aggregate ID
|
|
68
|
+
* @param aggregateId The complete aggregate ID
|
|
69
|
+
* @returns Either with array of subdomain parts or error
|
|
70
|
+
*/
|
|
71
|
+
extractSubdomains(aggregateId: string): IEither<InvalidAggregateIdFormatError, string[]>;
|
|
72
|
+
/**
|
|
73
|
+
* Checks if an aggregate ID has subdomains or is BC-level only
|
|
74
|
+
* @param aggregateId The complete aggregate ID
|
|
75
|
+
* @returns Either with boolean indicating if it has subdomains or error
|
|
76
|
+
*/
|
|
77
|
+
hasSubdomains(aggregateId: string): IEither<InvalidAggregateIdFormatError, boolean>;
|
|
78
|
+
/**
|
|
79
|
+
* Creates a human-readable log representation of an aggregate ID
|
|
80
|
+
* @param aggregateId The complete aggregate ID
|
|
81
|
+
* @returns Either with log string or error
|
|
82
|
+
*/
|
|
83
|
+
toLogString(aggregateId: string): IEither<InvalidAggregateIdFormatError, string>;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=IAggregateIdDomainService.d.ts.map
|
package/build/types/carbonbox/shared/domain/services/contracts/IAggregateIdDomainService.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAggregateIdDomainService.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/shared/domain/services/contracts/IAggregateIdDomainService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAE/F;;;;;;;GAOG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;IAE/E;;;;OAIG;IACH,iBAAiB,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC;IAE9F;;;;OAIG;IACH,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC;IAEzF;;;OAGG;IACH,cAAc,IAAI,OAAO,CAAC,6BAA6B,EAAE,MAAM,EAAE,CAAC,CAAC;IAEnE;;;;OAIG;IACH,2BAA2B,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAElH;;;;OAIG;IACH,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;IAEhG;;;;OAIG;IACH,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC;IAEnF;;;;OAIG;IACH,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC;IAE/E;;;;OAIG;IACH,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC;IAE/F;;;;OAIG;IACH,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,EAAE,MAAM,EAAE,CAAC,CAAC;IAEzF;;;;OAIG;IACH,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;IAEpF;;;;OAIG;IACH,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC;CAClF"}
|
package/build/types/carbonbox/shared/domain/services/implementations/AggregateIdDomainService.d.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { IEither } from '../../../either';
|
|
2
|
+
import { SemanticUuidPrefix } from '../../enums/SemanticUuidPrefix';
|
|
3
|
+
import { InvalidAggregateIdFormatError } from '../../exceptions/InvalidAggregateIdFormatError';
|
|
4
|
+
import { IAggregateIdDomainService } from '../contracts/IAggregateIdDomainService';
|
|
5
|
+
/**
|
|
6
|
+
* Domain Service for aggregate ID parsing, validation and business logic operations.
|
|
7
|
+
* Provides centralized business logic for aggregate ID handling across the domain.
|
|
8
|
+
* Refactored to support dependency injection and Either pattern for error handling.
|
|
9
|
+
*
|
|
10
|
+
* This service maintains Value Object purity by being used in factories,
|
|
11
|
+
* application services, and other appropriate contexts.
|
|
12
|
+
*/
|
|
13
|
+
export declare class AggregateIdDomainService implements IAggregateIdDomainService {
|
|
14
|
+
private constructor();
|
|
15
|
+
static create(): AggregateIdDomainService;
|
|
16
|
+
private readonly AGGREGATE_ID_REGEX;
|
|
17
|
+
private readonly ID_REGEX;
|
|
18
|
+
/**
|
|
19
|
+
* Validates if a string is a valid aggregate ID prefix
|
|
20
|
+
*/
|
|
21
|
+
isValidPrefix(prefix: string): IEither<InvalidAggregateIdFormatError, boolean>;
|
|
22
|
+
/**
|
|
23
|
+
* Gets the bounded context name from an aggregate ID prefix
|
|
24
|
+
*/
|
|
25
|
+
getBoundedContext(prefix: SemanticUuidPrefix): IEither<InvalidAggregateIdFormatError, string>;
|
|
26
|
+
/**
|
|
27
|
+
* Gets the subdomain from an aggregate ID prefix
|
|
28
|
+
*/
|
|
29
|
+
getSubdomain(prefix: SemanticUuidPrefix): IEither<InvalidAggregateIdFormatError, string>;
|
|
30
|
+
/**
|
|
31
|
+
* Gets all available prefixes as an array
|
|
32
|
+
*/
|
|
33
|
+
getAllPrefixes(): IEither<InvalidAggregateIdFormatError, string[]>;
|
|
34
|
+
/**
|
|
35
|
+
* Gets prefixes by bounded context
|
|
36
|
+
*/
|
|
37
|
+
getPrefixesByBoundedContext(boundedContext: string): IEither<InvalidAggregateIdFormatError, SemanticUuidPrefix[]>;
|
|
38
|
+
/**
|
|
39
|
+
* Validates a complete aggregate ID format
|
|
40
|
+
*/
|
|
41
|
+
validateAggregateIdFormat(aggregateId: string): IEither<InvalidAggregateIdFormatError, boolean>;
|
|
42
|
+
/**
|
|
43
|
+
* Extracts and validates the prefix from an aggregate ID
|
|
44
|
+
*/
|
|
45
|
+
extractPrefix(aggregateId: string): IEither<InvalidAggregateIdFormatError, string>;
|
|
46
|
+
/**
|
|
47
|
+
* Extracts and validates the ID from an aggregate ID
|
|
48
|
+
*/
|
|
49
|
+
extractId(aggregateId: string): IEither<InvalidAggregateIdFormatError, string>;
|
|
50
|
+
/**
|
|
51
|
+
* Extracts the bounded context code (first 3 letters) from an aggregate ID
|
|
52
|
+
*/
|
|
53
|
+
extractBoundedContextCode(aggregateId: string): IEither<InvalidAggregateIdFormatError, string>;
|
|
54
|
+
/**
|
|
55
|
+
* Extracts all subdomain parts from an aggregate ID
|
|
56
|
+
*/
|
|
57
|
+
extractSubdomains(aggregateId: string): IEither<InvalidAggregateIdFormatError, string[]>;
|
|
58
|
+
/**
|
|
59
|
+
* Checks if an aggregate ID has subdomains or is BC-level only
|
|
60
|
+
*/
|
|
61
|
+
hasSubdomains(aggregateId: string): IEither<InvalidAggregateIdFormatError, boolean>;
|
|
62
|
+
/**
|
|
63
|
+
* Creates a human-readable log representation of an aggregate ID
|
|
64
|
+
*/
|
|
65
|
+
toLogString(aggregateId: string): IEither<InvalidAggregateIdFormatError, string>;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=AggregateIdDomainService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AggregateIdDomainService.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/shared/domain/services/implementations/AggregateIdDomainService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAI/F,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF;;;;;;;GAOG;AACH,qBAAa,wBAAyB,YAAW,yBAAyB;IACxE,OAAO;WAIO,MAAM,IAAI,wBAAwB;IAKhD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAiG;IAGpI,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA4E;IAErG;;OAEG;IACI,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,EAAE,OAAO,CAAC;IAmBrF;;OAEG;IACI,iBAAiB,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,6BAA6B,EAAE,MAAM,CAAC;IAqEpG;;OAEG;IACI,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,6BAA6B,EAAE,MAAM,CAAC;IAqB/F;;OAEG;IACI,cAAc,IAAI,OAAO,CAAC,6BAA6B,EAAE,MAAM,EAAE,CAAC;IAazE;;OAEG;IACI,2BAA2B,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,EAAE,kBAAkB,EAAE,CAAC;IAoDxH;;OAEG;IACI,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,EAAE,OAAO,CAAC;IAmBtG;;OAEG;IACI,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,EAAE,MAAM,CAAC;IAwBzF;;OAEG;IACI,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,EAAE,MAAM,CAAC;IAiCrF;;OAEG;IACI,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,EAAE,MAAM,CAAC;IAarG;;OAEG;IACI,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,EAAE,MAAM,EAAE,CAAC;IAiB/F;;OAEG;IACI,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,EAAE,OAAO,CAAC;IAI1F;;OAEG;IACI,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,EAAE,MAAM,CAAC;CAaxF"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { String } from './String';
|
|
2
2
|
/**
|
|
3
|
-
* Pure AggregateId Value Object with
|
|
3
|
+
* Pure AggregateId Value Object with structured ID format
|
|
4
4
|
*
|
|
5
|
-
* Format: {BC}_{
|
|
5
|
+
* Format: {BC}_{ID} or {BC}-{SUB1}-{SUB2}-...{SUBn}_{ID}
|
|
6
6
|
* Examples:
|
|
7
7
|
* - STC_550e8400-e29b-41d4-a716-446655440000 (BC-level entity)
|
|
8
8
|
* - USR-STH-CHO_550e8400-e29b-41d4-a716-446655440000 (subdomain entity)
|
|
9
9
|
* - ADC-SUB-FLD_123e4567-e89b-12d3-a456-426614174000 (future N-level expansion)
|
|
10
10
|
*
|
|
11
11
|
* This is a PURE Value Object - no external dependencies or business logic.
|
|
12
|
-
* For semantic parsing and business logic, use SemanticUuidDomainService.
|
|
13
12
|
*
|
|
14
13
|
* Benefits:
|
|
15
14
|
* - Immutable and pure value object design
|
|
@@ -19,17 +18,17 @@ import { String } from './String';
|
|
|
19
18
|
*/
|
|
20
19
|
export declare class AggregateId extends String {
|
|
21
20
|
protected static readonly DEFAULT_PROPERTY_NAME = "id";
|
|
22
|
-
private static readonly
|
|
23
|
-
private static readonly
|
|
21
|
+
private static readonly ID_REGEX;
|
|
22
|
+
private static readonly AGGREGATE_ID_REGEX;
|
|
24
23
|
protected constructor(value: string, skipDomainValidation: boolean, propertyName?: string);
|
|
25
24
|
static create(id: string): AggregateId;
|
|
26
25
|
static fromPrimitives(id: string): AggregateId;
|
|
27
26
|
/**
|
|
28
|
-
* Extracts the raw
|
|
27
|
+
* Extracts the raw ID from the aggregate ID
|
|
29
28
|
*/
|
|
30
|
-
|
|
29
|
+
extractId(): string;
|
|
31
30
|
/**
|
|
32
|
-
* Extracts the full prefix from the
|
|
31
|
+
* Extracts the full prefix from the aggregate ID (BC-SUB1-SUB2-...SUBn)
|
|
33
32
|
*/
|
|
34
33
|
extractPrefix(): string;
|
|
35
34
|
/**
|
|
@@ -38,7 +37,7 @@ export declare class AggregateId extends String {
|
|
|
38
37
|
extractBoundedContext(): string;
|
|
39
38
|
/**
|
|
40
39
|
* Extracts all subdomain parts from the prefix
|
|
41
|
-
* Returns empty array if BC has no subdomains (e.g.,
|
|
40
|
+
* Returns empty array if BC has no subdomains (e.g., STC_id)
|
|
42
41
|
*/
|
|
43
42
|
extractSubdomains(): string[];
|
|
44
43
|
/**
|
|
@@ -47,21 +46,20 @@ export declare class AggregateId extends String {
|
|
|
47
46
|
*/
|
|
48
47
|
extractPrimarySubdomain(): string;
|
|
49
48
|
/**
|
|
50
|
-
* Checks if this
|
|
49
|
+
* Checks if this ID has subdomains or is BC-level only
|
|
51
50
|
*/
|
|
52
51
|
hasSubdomains(): boolean;
|
|
53
52
|
/**
|
|
54
53
|
* Validation methods
|
|
55
54
|
*/
|
|
56
|
-
static
|
|
57
|
-
protected static
|
|
58
|
-
protected static
|
|
59
|
-
protected static
|
|
60
|
-
protected static
|
|
61
|
-
protected static
|
|
62
|
-
static
|
|
63
|
-
static
|
|
64
|
-
static isValidUuidValue(uuid: string): boolean;
|
|
55
|
+
static guardAgainstInvalidId(id: string, propertyName?: string): void;
|
|
56
|
+
protected static guardAgainstInvalidRawId(rawId: string, propertyName?: string): void;
|
|
57
|
+
protected static isInvalidId(id: string): boolean;
|
|
58
|
+
protected static isInvalidRawId(rawId: string): boolean;
|
|
59
|
+
protected static isValidId(id: string): boolean;
|
|
60
|
+
protected static isValidRawId(rawId: string): boolean;
|
|
61
|
+
static isValidIdValue(id: string): boolean;
|
|
62
|
+
static isValidRawIdValue(rawId: string): boolean;
|
|
65
63
|
toPrimitives(): string;
|
|
66
64
|
}
|
|
67
65
|
//# sourceMappingURL=AggregateId.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AggregateId.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/AggregateId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC
|
|
1
|
+
{"version":3,"file":"AggregateId.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/AggregateId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,WAAY,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|
|
@@ -21,11 +21,6 @@ export declare class UserPermissions extends StringList {
|
|
|
21
21
|
hasAnyPermission(permissions: Permission[]): boolean;
|
|
22
22
|
hasAllPermissions(permissions: Permission[]): boolean;
|
|
23
23
|
getAllPermissions(): Permission[];
|
|
24
|
-
static createForCarbonHost(): UserPermissions;
|
|
25
|
-
static createForCarbonManager(): UserPermissions;
|
|
26
|
-
static createForCarbonCoordinator(): UserPermissions;
|
|
27
|
-
static createForCarbonClient(): UserPermissions;
|
|
28
|
-
static createWithFullAccess(): UserPermissions;
|
|
29
24
|
static createEmpty(): UserPermissions;
|
|
30
25
|
static getAllValidPermissions(): Permission[];
|
|
31
26
|
static isValidPermission(value: string): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserPermissions.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/UserPermissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,qBAAa,eAAgB,SAAQ,UAAU;IAC7C,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,iBAAiB;IAExD,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,iBAAiB,CAAwB;IAElF,SAAS,aAAa,KAAK,EAAE,MAAM,EAAE,EAAE,oBAAoB,EAAE,OAAO;WAa7C,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,eAAe;WAIxC,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,eAAe;IAM5E,SAAS,CAAC,8BAA8B,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI;IAQ/D,SAAS,CAAC,gCAAgC,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI;IAYjE,SAAS,CAAC,6BAA6B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}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StakeholderPermissions } from '../../../shared/domain/value-objects/StakeholderPermissions';
|
|
2
2
|
export declare class CarbonClientPermissions extends StakeholderPermissions {
|
|
3
|
-
static createWithFullAccess(): CarbonClientPermissions;
|
|
4
3
|
}
|
|
5
4
|
//# sourceMappingURL=CarbonClientPermissions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarbonClientPermissions.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientPermissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6DAA6D,CAAC;AAErG,qBAAa,uBAAwB,SAAQ,sBAAsB;
|
|
1
|
+
{"version":3,"file":"CarbonClientPermissions.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientPermissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6DAA6D,CAAC;AAErG,qBAAa,uBAAwB,SAAQ,sBAAsB;CAAG"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StakeholderPermissions } from '../../../shared/domain/value-objects/StakeholderPermissions';
|
|
2
2
|
export declare class CarbonCoordinatorPermissions extends StakeholderPermissions {
|
|
3
|
-
static createWithFullAccess(): CarbonCoordinatorPermissions;
|
|
4
3
|
}
|
|
5
4
|
//# sourceMappingURL=CarbonCoordinatorPermissions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarbonCoordinatorPermissions.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorPermissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6DAA6D,CAAC;AAErG,qBAAa,4BAA6B,SAAQ,sBAAsB;
|
|
1
|
+
{"version":3,"file":"CarbonCoordinatorPermissions.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorPermissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6DAA6D,CAAC;AAErG,qBAAa,4BAA6B,SAAQ,sBAAsB;CAAG"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StakeholderPermissions } from '../../../shared/domain/value-objects/StakeholderPermissions';
|
|
2
2
|
export declare class CarbonHostPermissions extends StakeholderPermissions {
|
|
3
|
-
static createWithFullAccess(): CarbonHostPermissions;
|
|
4
3
|
}
|
|
5
4
|
//# sourceMappingURL=CarbonHostPermissions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarbonHostPermissions.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostPermissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6DAA6D,CAAC;AAErG,qBAAa,qBAAsB,SAAQ,sBAAsB;
|
|
1
|
+
{"version":3,"file":"CarbonHostPermissions.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostPermissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6DAA6D,CAAC;AAErG,qBAAa,qBAAsB,SAAQ,sBAAsB;CAAG"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StakeholderPermissions } from '../../../shared/domain/value-objects/StakeholderPermissions';
|
|
2
2
|
export declare class CarbonManagerPermissions extends StakeholderPermissions {
|
|
3
|
-
static createWithFullAccess(): CarbonManagerPermissions;
|
|
4
3
|
}
|
|
5
4
|
//# sourceMappingURL=CarbonManagerPermissions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarbonManagerPermissions.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerPermissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6DAA6D,CAAC;AAErG,qBAAa,wBAAyB,SAAQ,sBAAsB;
|
|
1
|
+
{"version":3,"file":"CarbonManagerPermissions.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerPermissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6DAA6D,CAAC;AAErG,qBAAa,wBAAyB,SAAQ,sBAAsB;CAAG"}
|
|
@@ -615,7 +615,7 @@ export { UndefinedValueError } from '../carbonbox/shared/domain/exceptions/Undef
|
|
|
615
615
|
export { InvalidValueObjectConfigurationError } from '../carbonbox/shared/domain/exceptions/InvalidValueObjectConfigurationError';
|
|
616
616
|
export { InvalidPropertyTypeError } from '../carbonbox/shared/domain/exceptions/InvalidPropertyTypeError';
|
|
617
617
|
export { InvalidPropertyValueError } from '../carbonbox/shared/domain/exceptions/InvalidPropertyValueError';
|
|
618
|
-
export {
|
|
618
|
+
export { InvalidAggregateIdFormatError } from '../carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError';
|
|
619
619
|
export { InvalidSemanticUuidFormatError } from '../carbonbox/shared/domain/exceptions/InvalidSemanticUuidFormatError';
|
|
620
620
|
export { InvalidUserIdFormatError } from '../carbonbox/shared/domain/exceptions/InvalidUserIdFormatError';
|
|
621
621
|
export { InvalidUserPrefixError } from '../carbonbox/shared/domain/exceptions/InvalidUserPrefixError';
|
|
@@ -894,8 +894,8 @@ export type { SystemAdministrationPermissionsPrimitives } from '../carbonbox/sha
|
|
|
894
894
|
export type { UserManagementPermissionsPrimitives } from '../carbonbox/shared/domain/types/UserManagementPermissionsPrimitives';
|
|
895
895
|
export { DateTimeFormattingDomainService } from '../carbonbox/shared/domain/services/implementations/DateTimeFormattingDomainService';
|
|
896
896
|
export { IDateTimeFormattingDomainService } from '../carbonbox/shared/domain/services/contracts/IDateTimeFormattingDomainService';
|
|
897
|
-
export {
|
|
898
|
-
export {
|
|
897
|
+
export { IAggregateIdDomainService } from '../carbonbox/shared/domain/services/contracts/IAggregateIdDomainService';
|
|
898
|
+
export { AggregateIdDomainService } from '../carbonbox/shared/domain/services/implementations/AggregateIdDomainService';
|
|
899
899
|
export type { IAuthorizationPolicy } from '../carbonbox/shared/domain/authorization/contracts/IAuthorizationPolicy';
|
|
900
900
|
export type { IPermissionSpecification } from '../carbonbox/shared/domain/authorization/contracts/IPermissionSpecification';
|
|
901
901
|
export { AuthorizationDecision as AuthorizationDecisionEnum } from '../carbonbox/shared/domain/authorization/enums/AuthorizationDecision';
|