@carbonbox/domain 0.2.2 → 0.2.4
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/collection-fields/domain/value-objects/CollectionFieldCollectionType.js +1 -1
- package/build/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldDataType.js +3 -3
- package/build/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldDefaultValue.js +2 -2
- package/build/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleAction.js +20 -16
- package/build/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleTriggerValue.js +14 -10
- package/build/carbonbox/activity-data-collection/contextual-labels/domain/value-objects/ContextualLabelLabelMappings.js +7 -7
- package/build/carbonbox/activity-data-collection/contextual-labels/domain/value-objects/ContextualLabelPlaceholderMappings.js +6 -6
- package/build/carbonbox/activity-data-collection/stakeholder-adaptations/domain/value-objects/StakeholderAdaptationFootprintType.js +1 -1
- package/build/carbonbox/activity-data-collection/stakeholder-adaptations/domain/value-objects/StakeholderAdaptationStakeholderType.js +1 -1
- package/build/carbonbox/emission-calculation-process/calculation-processes/domain/entity/CalculationProcess.js +2 -1
- package/build/carbonbox/purchase-management-system/service-catalog/domain/entity/IServiceCatalog.js +2 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/entity/ServiceCatalog.js +263 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogCategory.js +20 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogStatus.js +9 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogType.js +10 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogCategoryError.js +19 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogStatusError.js +19 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogTypeError.js +19 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceCatalogRepository.js +2 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceCatalogPrimitives.js +2 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceCatalogProps.js +2 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAdditionalUserRoles.js +131 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAllowsDocumentReading.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAllowsSectoralComparison.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogBasePricePercentage.js +140 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCategory.js +247 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCode.js +24 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCreatedByStakeholder.js +26 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogDependsOnServiceCode.js +21 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogDescription.js +23 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogExpertDedicationLevel.js +212 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogFixedPriceAmount.js +193 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogHasBasePrice.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogHasFixedPrice.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogId.js +24 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIncludesCarbonBoxAcademy.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIncludesESGIndicators.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForCorporate.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForEvent.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForProduct.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsRequiredService.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogMaxUsers.js +246 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogName.js +23 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogReportTypes.js +246 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogStatus.js +221 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogType.js +235 -0
- package/build/carbonbox/purchase-management-system/service-pricing/domain/value-objects/ServicePricingService.js +2 -2
- package/build/carbonbox/shared/domain/types/ServiceCatalogReference.js +2 -0
- package/build/carbonbox/shared/domain/types/ServiceCatalogReferencePrimitives.js +2 -0
- package/build/carbonbox/shared/domain/value-objects/ServiceCatalogReference.js +301 -0
- package/build/carbonbox/shared/domain/value-objects/ServiceReference.js +75 -75
- package/build/main/index.js +43 -37
- package/build/types/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldDataType.d.ts +1 -1
- package/build/types/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldDataType.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldDefaultValue.d.ts +1 -1
- package/build/types/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldDefaultValue.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleAction.d.ts +1 -4
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleAction.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleTriggerValue.d.ts +2 -5
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleTriggerValue.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/IServiceCatalog.d.ts +52 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/IServiceCatalog.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/ServiceCatalog.d.ts +60 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/ServiceCatalog.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogCategory.d.ts +17 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogCategory.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogStatus.d.ts +6 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogStatus.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogType.d.ts +7 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogType.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogCategoryError.d.ts +8 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogCategoryError.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogStatusError.d.ts +8 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogStatusError.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogTypeError.d.ts +8 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogTypeError.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceCatalogRepository.d.ts +22 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceCatalogRepository.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceRepository.d.ts +19 -19
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceRepository.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceCatalogPrimitives.d.ts +35 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceCatalogPrimitives.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceCatalogProps.d.ts +35 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceCatalogProps.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAdditionalUserRoles.d.ts +71 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAdditionalUserRoles.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAllowsDocumentReading.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAllowsDocumentReading.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAllowsSectoralComparison.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAllowsSectoralComparison.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogBasePricePercentage.d.ts +54 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogBasePricePercentage.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCategory.d.ts +120 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCategory.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCode.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCode.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCreatedByStakeholder.d.ts +11 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCreatedByStakeholder.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogDependsOnServiceCode.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogDependsOnServiceCode.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogDescription.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogDescription.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogExpertDedicationLevel.d.ts +92 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogExpertDedicationLevel.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogFixedPriceAmount.d.ts +83 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogFixedPriceAmount.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogHasBasePrice.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogHasBasePrice.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogHasFixedPrice.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogHasFixedPrice.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogId.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogId.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIncludesCarbonBoxAcademy.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIncludesCarbonBoxAcademy.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIncludesESGIndicators.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIncludesESGIndicators.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForCorporate.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForCorporate.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForEvent.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForEvent.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForProduct.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForProduct.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsRequiredService.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsRequiredService.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogMaxUsers.d.ts +99 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogMaxUsers.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogName.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogName.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogReportTypes.d.ts +119 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogReportTypes.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogStatus.d.ts +110 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogStatus.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogType.d.ts +111 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogType.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/types/ServicePricingPrimitives.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/types/ServicePricingPrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/types/ServicePricingProps.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/types/ServicePricingProps.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/value-objects/ServicePricingService.d.ts +7 -7
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/value-objects/ServicePricingService.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/ServiceCatalogReference.d.ts +8 -0
- package/build/types/carbonbox/shared/domain/types/ServiceCatalogReference.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/types/ServiceCatalogReferencePrimitives.d.ts +8 -0
- package/build/types/carbonbox/shared/domain/types/ServiceCatalogReferencePrimitives.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/value-objects/ServiceCatalogReference.d.ts +134 -0
- package/build/types/carbonbox/shared/domain/value-objects/ServiceCatalogReference.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/value-objects/ServiceReference.d.ts +18 -18
- package/build/types/carbonbox/shared/domain/value-objects/ServiceReference.d.ts.map +1 -1
- package/build/types/main/index.d.ts +24 -21
- package/build/types/main/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -108,7 +108,7 @@ class CollectionFieldCollectionType extends String_1.String {
|
|
|
108
108
|
}
|
|
109
109
|
exports.CollectionFieldCollectionType = CollectionFieldCollectionType;
|
|
110
110
|
_a = CollectionFieldCollectionType, _CollectionFieldCollectionType_instances = new WeakSet(), _CollectionFieldCollectionType_guardAgainstInvalidCollectionType = function _CollectionFieldCollectionType_guardAgainstInvalidCollectionType(value) {
|
|
111
|
-
if (
|
|
111
|
+
if (_a.VALID_COLLECTION_TYPES.includes(value) === false) {
|
|
112
112
|
throw InvalidPropertyValueError_1.InvalidPropertyValueError.create(_a.PROPERTY_NAME, `one of: ${_a.VALID_COLLECTION_TYPES.join(', ')}`, value);
|
|
113
113
|
}
|
|
114
114
|
};
|
|
@@ -100,13 +100,13 @@ class CollectionFieldDataType extends String_1.String {
|
|
|
100
100
|
case DataType_1.DataType.STRING:
|
|
101
101
|
return typeof value === 'string';
|
|
102
102
|
case DataType_1.DataType.NUMBER:
|
|
103
|
-
return typeof value === 'number' &&
|
|
103
|
+
return typeof value === 'number' && Number.isNaN(value) === false;
|
|
104
104
|
case DataType_1.DataType.BOOLEAN:
|
|
105
105
|
return typeof value === 'boolean';
|
|
106
106
|
case DataType_1.DataType.ARRAY:
|
|
107
107
|
return Array.isArray(value);
|
|
108
108
|
case DataType_1.DataType.OBJECT:
|
|
109
|
-
return typeof value === 'object' && value !== null &&
|
|
109
|
+
return typeof value === 'object' && value !== null && Array.isArray(value) === false;
|
|
110
110
|
default:
|
|
111
111
|
return false;
|
|
112
112
|
}
|
|
@@ -117,7 +117,7 @@ class CollectionFieldDataType extends String_1.String {
|
|
|
117
117
|
}
|
|
118
118
|
exports.CollectionFieldDataType = CollectionFieldDataType;
|
|
119
119
|
_a = CollectionFieldDataType, _CollectionFieldDataType_instances = new WeakSet(), _CollectionFieldDataType_guardAgainstInvalidDataType = function _CollectionFieldDataType_guardAgainstInvalidDataType(value) {
|
|
120
|
-
if (
|
|
120
|
+
if (_a.VALID_DATA_TYPES.includes(value) === false) {
|
|
121
121
|
throw InvalidPropertyValueError_1.InvalidPropertyValueError.create(_a.PROPERTY_NAME, `one of: ${_a.VALID_DATA_TYPES.join(', ')}`, value);
|
|
122
122
|
}
|
|
123
123
|
};
|
|
@@ -100,7 +100,7 @@ class CollectionFieldDefaultValue extends ValueObject_1.ValueObject {
|
|
|
100
100
|
isDateLike() {
|
|
101
101
|
if (this.isString()) {
|
|
102
102
|
const str = this.value;
|
|
103
|
-
return
|
|
103
|
+
return Number.isNaN(Date.parse(str)) === false;
|
|
104
104
|
}
|
|
105
105
|
return false;
|
|
106
106
|
}
|
|
@@ -156,7 +156,7 @@ _a = CollectionFieldDefaultValue, _CollectionFieldDefaultValue_instances = new W
|
|
|
156
156
|
if (value !== null && typeof value !== 'string' && typeof value !== 'number') {
|
|
157
157
|
throw InvalidPropertyValueError_1.InvalidPropertyValueError.create(_a.PROPERTY_NAME, 'string, number, or null', typeof value);
|
|
158
158
|
}
|
|
159
|
-
if (typeof value === 'number' &&
|
|
159
|
+
if (typeof value === 'number' && Number.isFinite(value) === false) {
|
|
160
160
|
throw InvalidPropertyValueError_1.InvalidPropertyValueError.create(_a.PROPERTY_NAME, 'finite number', value.toString());
|
|
161
161
|
}
|
|
162
162
|
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
+
};
|
|
7
|
+
var _ConditionalFieldRuleAction_instances, _a, _ConditionalFieldRuleAction_validateConditionalAction;
|
|
2
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
9
|
exports.ConditionalFieldRuleAction = void 0;
|
|
4
10
|
const String_1 = require("../../../../shared/domain/value-objects/String");
|
|
@@ -7,27 +13,20 @@ const InvalidConditionalActionError_1 = require("../exceptions/InvalidConditiona
|
|
|
7
13
|
const UnknownConditionalActionCategoryError_1 = require("../exceptions/UnknownConditionalActionCategoryError");
|
|
8
14
|
class ConditionalFieldRuleAction extends String_1.String {
|
|
9
15
|
constructor(value, skipDomainValidation) {
|
|
10
|
-
super(value, skipDomainValidation,
|
|
16
|
+
super(value, skipDomainValidation, _a.PROPERTY_NAME);
|
|
17
|
+
_ConditionalFieldRuleAction_instances.add(this);
|
|
11
18
|
if (skipDomainValidation === false) {
|
|
12
|
-
this.
|
|
19
|
+
__classPrivateFieldGet(this, _ConditionalFieldRuleAction_instances, "m", _ConditionalFieldRuleAction_validateConditionalAction).call(this, value);
|
|
13
20
|
}
|
|
14
21
|
}
|
|
15
22
|
static create(value) {
|
|
16
|
-
String_1.String.guardAgainstEmptyValue(value,
|
|
17
|
-
String_1.String.guardAgainstInvalidType(value,
|
|
18
|
-
return new
|
|
23
|
+
String_1.String.guardAgainstEmptyValue(value, _a.PROPERTY_NAME);
|
|
24
|
+
String_1.String.guardAgainstInvalidType(value, _a.PROPERTY_NAME);
|
|
25
|
+
return new _a(value, false);
|
|
19
26
|
}
|
|
20
27
|
static fromPrimitives(primitive) {
|
|
21
28
|
const value = primitive;
|
|
22
|
-
return new
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Valida que el valor sea una acción condicional válida.
|
|
26
|
-
*/
|
|
27
|
-
validateConditionalAction(value) {
|
|
28
|
-
if (!ConditionalFieldRuleAction.VALID_CONDITIONAL_ACTIONS.includes(value)) {
|
|
29
|
-
throw InvalidConditionalActionError_1.InvalidConditionalActionError.create(value, ConditionalFieldRuleAction.VALID_CONDITIONAL_ACTIONS);
|
|
30
|
-
}
|
|
29
|
+
return new _a(value, true);
|
|
31
30
|
}
|
|
32
31
|
/**
|
|
33
32
|
* Verifica si la acción es agregar campos.
|
|
@@ -69,13 +68,13 @@ class ConditionalFieldRuleAction extends String_1.String {
|
|
|
69
68
|
* Obtiene las acciones condicionales válidas.
|
|
70
69
|
*/
|
|
71
70
|
static getValidConditionalActions() {
|
|
72
|
-
return Object.freeze([...
|
|
71
|
+
return Object.freeze([..._a.VALID_CONDITIONAL_ACTIONS]);
|
|
73
72
|
}
|
|
74
73
|
/**
|
|
75
74
|
* Verifica si un valor es una acción condicional válida.
|
|
76
75
|
*/
|
|
77
76
|
static isValidConditionalAction(value) {
|
|
78
|
-
return
|
|
77
|
+
return _a.VALID_CONDITIONAL_ACTIONS.includes(value);
|
|
79
78
|
}
|
|
80
79
|
/**
|
|
81
80
|
* Verifica si la acción modifica la estructura del formulario.
|
|
@@ -252,6 +251,11 @@ class ConditionalFieldRuleAction extends String_1.String {
|
|
|
252
251
|
}
|
|
253
252
|
}
|
|
254
253
|
exports.ConditionalFieldRuleAction = ConditionalFieldRuleAction;
|
|
254
|
+
_a = ConditionalFieldRuleAction, _ConditionalFieldRuleAction_instances = new WeakSet(), _ConditionalFieldRuleAction_validateConditionalAction = function _ConditionalFieldRuleAction_validateConditionalAction(value) {
|
|
255
|
+
if (_a.VALID_CONDITIONAL_ACTIONS.includes(value) === false) {
|
|
256
|
+
throw InvalidConditionalActionError_1.InvalidConditionalActionError.create(value, _a.VALID_CONDITIONAL_ACTIONS);
|
|
257
|
+
}
|
|
258
|
+
};
|
|
255
259
|
ConditionalFieldRuleAction.PROPERTY_NAME = 'action';
|
|
256
260
|
// Acciones condicionales válidas
|
|
257
261
|
ConditionalFieldRuleAction.VALID_CONDITIONAL_ACTIONS = Object.values(ConditionalAction_1.ConditionalAction);
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
+
};
|
|
7
|
+
var _ConditionalFieldRuleTriggerValue_instances, _ConditionalFieldRuleTriggerValue_validateTriggerValue;
|
|
2
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
9
|
exports.ConditionalFieldRuleTriggerValue = void 0;
|
|
4
10
|
const ValueObject_1 = require("../../../../shared/domain/value-objects/ValueObject");
|
|
@@ -9,8 +15,9 @@ const TriggerValueStringOperationError_1 = require("../exceptions/TriggerValueSt
|
|
|
9
15
|
class ConditionalFieldRuleTriggerValue extends ValueObject_1.ValueObject {
|
|
10
16
|
constructor(value, skipDomainValidation) {
|
|
11
17
|
super(value, skipDomainValidation, ConditionalFieldRuleTriggerValue.PROPERTY_NAME, 'The provided value must be of type string or number');
|
|
18
|
+
_ConditionalFieldRuleTriggerValue_instances.add(this);
|
|
12
19
|
if (skipDomainValidation === false) {
|
|
13
|
-
this.
|
|
20
|
+
__classPrivateFieldGet(this, _ConditionalFieldRuleTriggerValue_instances, "m", _ConditionalFieldRuleTriggerValue_validateTriggerValue).call(this, value);
|
|
14
21
|
}
|
|
15
22
|
}
|
|
16
23
|
static create(value) {
|
|
@@ -20,15 +27,6 @@ class ConditionalFieldRuleTriggerValue extends ValueObject_1.ValueObject {
|
|
|
20
27
|
const value = primitive;
|
|
21
28
|
return new ConditionalFieldRuleTriggerValue(value, true);
|
|
22
29
|
}
|
|
23
|
-
/**
|
|
24
|
-
* Valida que el valor sea string o number.
|
|
25
|
-
*/
|
|
26
|
-
validateTriggerValue(value) {
|
|
27
|
-
const valueType = typeof value;
|
|
28
|
-
if (valueType !== 'string' && valueType !== 'number') {
|
|
29
|
-
throw InvalidTriggerValueError_1.InvalidTriggerValueError.create(valueType);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
30
|
/**
|
|
33
31
|
* Verifica si el valor es un string.
|
|
34
32
|
*/
|
|
@@ -249,4 +247,10 @@ class ConditionalFieldRuleTriggerValue extends ValueObject_1.ValueObject {
|
|
|
249
247
|
}
|
|
250
248
|
}
|
|
251
249
|
exports.ConditionalFieldRuleTriggerValue = ConditionalFieldRuleTriggerValue;
|
|
250
|
+
_ConditionalFieldRuleTriggerValue_instances = new WeakSet(), _ConditionalFieldRuleTriggerValue_validateTriggerValue = function _ConditionalFieldRuleTriggerValue_validateTriggerValue(value) {
|
|
251
|
+
const valueType = typeof value;
|
|
252
|
+
if (valueType !== 'string' && valueType !== 'number') {
|
|
253
|
+
throw InvalidTriggerValueError_1.InvalidTriggerValueError.create(valueType);
|
|
254
|
+
}
|
|
255
|
+
};
|
|
252
256
|
ConditionalFieldRuleTriggerValue.PROPERTY_NAME = 'triggerValue';
|
|
@@ -43,7 +43,7 @@ class ContextualLabelLabelMappings extends ValueObject_1.ValueObject {
|
|
|
43
43
|
static validateMappings(value, propertyName, options) {
|
|
44
44
|
__classPrivateFieldGet(this, _a, "m", _ContextualLabelLabelMappings_guardAgainstInvalidType).call(this, value, propertyName);
|
|
45
45
|
__classPrivateFieldGet(this, _a, "m", _ContextualLabelLabelMappings_guardAgainstInvalidEmptyArray).call(this, value, options, propertyName);
|
|
46
|
-
if (
|
|
46
|
+
if (options.allowDuplicates === false) {
|
|
47
47
|
__classPrivateFieldGet(this, _a, "m", _ContextualLabelLabelMappings_guardAgainstDuplicatedFieldValues).call(this, value, propertyName);
|
|
48
48
|
}
|
|
49
49
|
value.forEach((mapping, index) => {
|
|
@@ -84,7 +84,7 @@ class ContextualLabelLabelMappings extends ValueObject_1.ValueObject {
|
|
|
84
84
|
return __classPrivateFieldGet(this, _ContextualLabelLabelMappings_options, "f").allowDuplicates === true;
|
|
85
85
|
}
|
|
86
86
|
isValidState() {
|
|
87
|
-
if (
|
|
87
|
+
if (this.allowsEmpty() === false && this.isEmpty()) {
|
|
88
88
|
return false;
|
|
89
89
|
}
|
|
90
90
|
return true;
|
|
@@ -177,14 +177,14 @@ class ContextualLabelLabelMappings extends ValueObject_1.ValueObject {
|
|
|
177
177
|
if (__classPrivateFieldGet(this, _ContextualLabelLabelMappings_labelMappings, "f").length !== __classPrivateFieldGet(other, _ContextualLabelLabelMappings_labelMappings, "f").length) {
|
|
178
178
|
return false;
|
|
179
179
|
}
|
|
180
|
-
if (
|
|
180
|
+
if (this.allowsDuplicates() === false) {
|
|
181
181
|
const thisFieldValues = new Set(this.getFieldValues());
|
|
182
182
|
const otherFieldValues = new Set(other.getFieldValues());
|
|
183
183
|
if (thisFieldValues.size !== otherFieldValues.size) {
|
|
184
184
|
return false;
|
|
185
185
|
}
|
|
186
186
|
for (const fieldValue of thisFieldValues) {
|
|
187
|
-
if (
|
|
187
|
+
if (otherFieldValues.has(fieldValue) === false) {
|
|
188
188
|
return false;
|
|
189
189
|
}
|
|
190
190
|
const thisMapping = this.getByFieldValue(fieldValue);
|
|
@@ -238,11 +238,11 @@ class ContextualLabelLabelMappings extends ValueObject_1.ValueObject {
|
|
|
238
238
|
}
|
|
239
239
|
exports.ContextualLabelLabelMappings = ContextualLabelLabelMappings;
|
|
240
240
|
_a = ContextualLabelLabelMappings, _ContextualLabelLabelMappings_labelMappings = new WeakMap(), _ContextualLabelLabelMappings_options = new WeakMap(), _ContextualLabelLabelMappings_guardAgainstInvalidType = function _ContextualLabelLabelMappings_guardAgainstInvalidType(value, propertyName) {
|
|
241
|
-
if (
|
|
241
|
+
if (Array.isArray(value) === false) {
|
|
242
242
|
throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create(propertyName, 'array of ContextualLabelMapping', typeof value);
|
|
243
243
|
}
|
|
244
244
|
}, _ContextualLabelLabelMappings_guardAgainstInvalidEmptyArray = function _ContextualLabelLabelMappings_guardAgainstInvalidEmptyArray(value, options, propertyName) {
|
|
245
|
-
if (
|
|
245
|
+
if (options.allowEmpty === false && value.length === 0) {
|
|
246
246
|
throw InvalidPropertyValueError_1.InvalidPropertyValueError.create(propertyName, 'non-empty array', 'empty array');
|
|
247
247
|
}
|
|
248
248
|
}, _ContextualLabelLabelMappings_guardAgainstDuplicatedFieldValues = function _ContextualLabelLabelMappings_guardAgainstDuplicatedFieldValues(value, propertyName) {
|
|
@@ -253,7 +253,7 @@ _a = ContextualLabelLabelMappings, _ContextualLabelLabelMappings_labelMappings =
|
|
|
253
253
|
}
|
|
254
254
|
}, _ContextualLabelLabelMappings_guardAgainstInvalidMapping = function _ContextualLabelLabelMappings_guardAgainstInvalidMapping(mapping, index, basePropertyName) {
|
|
255
255
|
const propertyName = `${basePropertyName}[${index}]`;
|
|
256
|
-
if (
|
|
256
|
+
if (mapping === null || mapping === undefined || typeof mapping !== 'object') {
|
|
257
257
|
throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create(propertyName, 'ContextualLabelMapping object', typeof mapping);
|
|
258
258
|
}
|
|
259
259
|
if (typeof mapping.fieldValue !== 'string') {
|
|
@@ -84,7 +84,7 @@ class ContextualLabelPlaceholderMappings extends ValueObject_1.ValueObject {
|
|
|
84
84
|
return __classPrivateFieldGet(this, _ContextualLabelPlaceholderMappings_options, "f").allowDuplicates === true;
|
|
85
85
|
}
|
|
86
86
|
isValidState() {
|
|
87
|
-
if (
|
|
87
|
+
if (this.allowsEmpty() === false && this.isEmpty()) {
|
|
88
88
|
return false;
|
|
89
89
|
}
|
|
90
90
|
return true;
|
|
@@ -177,14 +177,14 @@ class ContextualLabelPlaceholderMappings extends ValueObject_1.ValueObject {
|
|
|
177
177
|
if (__classPrivateFieldGet(this, _ContextualLabelPlaceholderMappings_placeholderMappings, "f").length !== __classPrivateFieldGet(other, _ContextualLabelPlaceholderMappings_placeholderMappings, "f").length) {
|
|
178
178
|
return false;
|
|
179
179
|
}
|
|
180
|
-
if (
|
|
180
|
+
if (this.allowsDuplicates() === false) {
|
|
181
181
|
const thisFieldValues = new Set(this.getFieldValues());
|
|
182
182
|
const otherFieldValues = new Set(other.getFieldValues());
|
|
183
183
|
if (thisFieldValues.size !== otherFieldValues.size) {
|
|
184
184
|
return false;
|
|
185
185
|
}
|
|
186
186
|
for (const fieldValue of thisFieldValues) {
|
|
187
|
-
if (
|
|
187
|
+
if (otherFieldValues.has(fieldValue) === false) {
|
|
188
188
|
return false;
|
|
189
189
|
}
|
|
190
190
|
const thisMapping = this.getByFieldValue(fieldValue);
|
|
@@ -238,11 +238,11 @@ class ContextualLabelPlaceholderMappings extends ValueObject_1.ValueObject {
|
|
|
238
238
|
}
|
|
239
239
|
exports.ContextualLabelPlaceholderMappings = ContextualLabelPlaceholderMappings;
|
|
240
240
|
_a = ContextualLabelPlaceholderMappings, _ContextualLabelPlaceholderMappings_placeholderMappings = new WeakMap(), _ContextualLabelPlaceholderMappings_options = new WeakMap(), _ContextualLabelPlaceholderMappings_guardAgainstInvalidType = function _ContextualLabelPlaceholderMappings_guardAgainstInvalidType(value, propertyName) {
|
|
241
|
-
if (
|
|
241
|
+
if (Array.isArray(value) === false) {
|
|
242
242
|
throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create(propertyName, 'array of ContextualPlaceholderMapping', typeof value);
|
|
243
243
|
}
|
|
244
244
|
}, _ContextualLabelPlaceholderMappings_guardAgainstInvalidEmptyArray = function _ContextualLabelPlaceholderMappings_guardAgainstInvalidEmptyArray(value, options, propertyName) {
|
|
245
|
-
if (
|
|
245
|
+
if (options.allowEmpty === false && value.length === 0) {
|
|
246
246
|
throw InvalidPropertyValueError_1.InvalidPropertyValueError.create(propertyName, 'non-empty array', 'empty array');
|
|
247
247
|
}
|
|
248
248
|
}, _ContextualLabelPlaceholderMappings_guardAgainstDuplicatedFieldValues = function _ContextualLabelPlaceholderMappings_guardAgainstDuplicatedFieldValues(value, propertyName) {
|
|
@@ -253,7 +253,7 @@ _a = ContextualLabelPlaceholderMappings, _ContextualLabelPlaceholderMappings_pla
|
|
|
253
253
|
}
|
|
254
254
|
}, _ContextualLabelPlaceholderMappings_guardAgainstInvalidMapping = function _ContextualLabelPlaceholderMappings_guardAgainstInvalidMapping(mapping, index, basePropertyName) {
|
|
255
255
|
const propertyName = `${basePropertyName}[${index}]`;
|
|
256
|
-
if (
|
|
256
|
+
if (mapping === null || mapping === undefined || typeof mapping !== 'object') {
|
|
257
257
|
throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create(propertyName, 'ContextualPlaceholderMapping object', typeof mapping);
|
|
258
258
|
}
|
|
259
259
|
if (typeof mapping.fieldValue !== 'string') {
|
|
@@ -53,7 +53,7 @@ class StakeholderAdaptationFootprintType extends String_1.String {
|
|
|
53
53
|
}
|
|
54
54
|
exports.StakeholderAdaptationFootprintType = StakeholderAdaptationFootprintType;
|
|
55
55
|
_a = StakeholderAdaptationFootprintType, _StakeholderAdaptationFootprintType_guardAgainstInvalidFootprintType = function _StakeholderAdaptationFootprintType_guardAgainstInvalidFootprintType(value) {
|
|
56
|
-
if (
|
|
56
|
+
if (__classPrivateFieldGet(_a, _a, "m", _StakeholderAdaptationFootprintType_footprintTypeIsValid).call(_a, value) === false) {
|
|
57
57
|
throw InvalidCarbonFootprintTypeError_1.InvalidCarbonFootprintTypeError.create(value, _a.VALID_FOOTPRINT_TYPES);
|
|
58
58
|
}
|
|
59
59
|
}, _StakeholderAdaptationFootprintType_footprintTypeIsValid = function _StakeholderAdaptationFootprintType_footprintTypeIsValid(value) {
|
|
@@ -71,7 +71,7 @@ class StakeholderAdaptationStakeholderType extends String_1.String {
|
|
|
71
71
|
}
|
|
72
72
|
exports.StakeholderAdaptationStakeholderType = StakeholderAdaptationStakeholderType;
|
|
73
73
|
_a = StakeholderAdaptationStakeholderType, _StakeholderAdaptationStakeholderType_guardAgainstInvalidStakeholderRole = function _StakeholderAdaptationStakeholderType_guardAgainstInvalidStakeholderRole(value) {
|
|
74
|
-
if (
|
|
74
|
+
if (__classPrivateFieldGet(_a, _a, "m", _StakeholderAdaptationStakeholderType_stakeholderRoleIsValid).call(_a, value) === false) {
|
|
75
75
|
throw InvalidStakeholderRoleTypeError_1.InvalidStakeholderRoleTypeError.create(value, _a.VALID_STAKEHOLDER_ROLES);
|
|
76
76
|
}
|
|
77
77
|
}, _StakeholderAdaptationStakeholderType_stakeholderRoleIsValid = function _StakeholderAdaptationStakeholderType_stakeholderRoleIsValid(value) {
|
|
@@ -216,13 +216,14 @@ class CalculationProcess extends AggregateRoot_1.AggregateRoot {
|
|
|
216
216
|
}
|
|
217
217
|
exports.CalculationProcess = CalculationProcess;
|
|
218
218
|
_CalculationProcess_carbonClient = new WeakMap(), _CalculationProcess_footprintConfiguration = new WeakMap(), _CalculationProcess_scheduledAt = new WeakMap(), _CalculationProcess_estimatedDuration = new WeakMap(), _CalculationProcess_priority = new WeakMap(), _CalculationProcess_dependencies = new WeakMap(), _CalculationProcess_executedByStakeholder = new WeakMap(), _CalculationProcess_startedAt = new WeakMap(), _CalculationProcess_completedAt = new WeakMap(), _CalculationProcess_actualDuration = new WeakMap(), _CalculationProcess_status = new WeakMap(), _CalculationProcess_errorMessage = new WeakMap(), _CalculationProcess_progressPercentage = new WeakMap(), _CalculationProcess_submissionsToProcess = new WeakMap(), _CalculationProcess_calculationsGenerated = new WeakMap(), _CalculationProcess_totalEmissionsCalculated = new WeakMap(), _CalculationProcess_processNotes = new WeakMap(), _CalculationProcess_retryCount = new WeakMap(), _CalculationProcess_maxRetries = new WeakMap();
|
|
219
|
+
// TODO: Pasar todo el módulo de service-catalog a ServiceCatalog
|
|
219
220
|
// TODO: Validar que todo lo que herede de String, Boolean, Numeric, PositiveInteger, DateTimeString
|
|
220
221
|
// AggregateId, AggregateIdList, Code, CodeList, tenga guardas en el create
|
|
221
222
|
// TODO: Auditar proyecto con
|
|
222
223
|
/*
|
|
223
224
|
Auditar y corregir negaciones implícitas (!)
|
|
224
225
|
Convertir métodos privados a sintaxis # en módulo
|
|
225
|
-
Todo método público , ya sea estático
|
|
226
|
+
Todo método público , ya sea estático , abstract debe de tener la palabra clave public
|
|
226
227
|
Eliminar todos los 'any' y mejorar tipado en módulo
|
|
227
228
|
Implementar null safety apropiado en módulo
|
|
228
229
|
Verificar tipado fuerte y corregir type assertions
|
package/build/carbonbox/purchase-management-system/service-catalog/domain/entity/ServiceCatalog.js
ADDED
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
+
};
|
|
13
|
+
var _ServiceCatalog_code, _ServiceCatalog_name, _ServiceCatalog_description, _ServiceCatalog_type, _ServiceCatalog_category, _ServiceCatalog_status, _ServiceCatalog_isRequiredService, _ServiceCatalog_dependsOnServiceCode, _ServiceCatalog_hasBasePrice, _ServiceCatalog_basePricePercentage, _ServiceCatalog_hasFixedPrice, _ServiceCatalog_fixedPriceAmount, _ServiceCatalog_expertDedicationLevel, _ServiceCatalog_reportTypes, _ServiceCatalog_additionalUserRoles, _ServiceCatalog_maxUsers, _ServiceCatalog_allowsDocumentReading, _ServiceCatalog_allowsSectoralComparison, _ServiceCatalog_includesCarbonBoxAcademy, _ServiceCatalog_includesESGIndicators, _ServiceCatalog_isAvailableForCorporate, _ServiceCatalog_isAvailableForProduct, _ServiceCatalog_isAvailableForEvent, _ServiceCatalog_createdByStakeholder;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ServiceCatalog = void 0;
|
|
16
|
+
const AggregateRoot_1 = require("../../../../shared/domain/entities/AggregateRoot");
|
|
17
|
+
const ServiceCatalogAdditionalUserRoles_1 = require("../value-objects/ServiceCatalogAdditionalUserRoles");
|
|
18
|
+
const ServiceCatalogAllowsDocumentReading_1 = require("../value-objects/ServiceCatalogAllowsDocumentReading");
|
|
19
|
+
const ServiceCatalogAllowsSectoralComparison_1 = require("../value-objects/ServiceCatalogAllowsSectoralComparison");
|
|
20
|
+
const ServiceCatalogBasePricePercentage_1 = require("../value-objects/ServiceCatalogBasePricePercentage");
|
|
21
|
+
const ServiceCatalogCategory_1 = require("../value-objects/ServiceCatalogCategory");
|
|
22
|
+
const ServiceCatalogCode_1 = require("../value-objects/ServiceCatalogCode");
|
|
23
|
+
const ServiceCatalogCreatedByStakeholder_1 = require("../value-objects/ServiceCatalogCreatedByStakeholder");
|
|
24
|
+
const ServiceCatalogDependsOnServiceCode_1 = require("../value-objects/ServiceCatalogDependsOnServiceCode");
|
|
25
|
+
const ServiceCatalogDescription_1 = require("../value-objects/ServiceCatalogDescription");
|
|
26
|
+
const ServiceCatalogExpertDedicationLevel_1 = require("../value-objects/ServiceCatalogExpertDedicationLevel");
|
|
27
|
+
const ServiceCatalogFixedPriceAmount_1 = require("../value-objects/ServiceCatalogFixedPriceAmount");
|
|
28
|
+
const ServiceCatalogHasBasePrice_1 = require("../value-objects/ServiceCatalogHasBasePrice");
|
|
29
|
+
const ServiceCatalogHasFixedPrice_1 = require("../value-objects/ServiceCatalogHasFixedPrice");
|
|
30
|
+
const ServiceCatalogId_1 = require("../value-objects/ServiceCatalogId");
|
|
31
|
+
const ServiceCatalogIncludesCarbonBoxAcademy_1 = require("../value-objects/ServiceCatalogIncludesCarbonBoxAcademy");
|
|
32
|
+
const ServiceCatalogIncludesESGIndicators_1 = require("../value-objects/ServiceCatalogIncludesESGIndicators");
|
|
33
|
+
const ServiceCatalogIsAvailableForCorporate_1 = require("../value-objects/ServiceCatalogIsAvailableForCorporate");
|
|
34
|
+
const ServiceCatalogIsAvailableForEvent_1 = require("../value-objects/ServiceCatalogIsAvailableForEvent");
|
|
35
|
+
const ServiceCatalogIsAvailableForProduct_1 = require("../value-objects/ServiceCatalogIsAvailableForProduct");
|
|
36
|
+
const ServiceCatalogIsRequiredService_1 = require("../value-objects/ServiceCatalogIsRequiredService");
|
|
37
|
+
const ServiceCatalogMaxUsers_1 = require("../value-objects/ServiceCatalogMaxUsers");
|
|
38
|
+
const ServiceCatalogName_1 = require("../value-objects/ServiceCatalogName");
|
|
39
|
+
const ServiceCatalogReportTypes_1 = require("../value-objects/ServiceCatalogReportTypes");
|
|
40
|
+
const ServiceCatalogStatus_1 = require("../value-objects/ServiceCatalogStatus");
|
|
41
|
+
const ServiceCatalogType_1 = require("../value-objects/ServiceCatalogType");
|
|
42
|
+
class ServiceCatalog extends AggregateRoot_1.AggregateRoot {
|
|
43
|
+
constructor(props, skipDomainValidation) {
|
|
44
|
+
const id = skipDomainValidation
|
|
45
|
+
? ServiceCatalogId_1.ServiceCatalogId.fromPrimitives(props.id).toPrimitives()
|
|
46
|
+
: ServiceCatalogId_1.ServiceCatalogId.create(props.id).toPrimitives();
|
|
47
|
+
super({ id }, skipDomainValidation);
|
|
48
|
+
_ServiceCatalog_code.set(this, void 0);
|
|
49
|
+
_ServiceCatalog_name.set(this, void 0);
|
|
50
|
+
_ServiceCatalog_description.set(this, void 0);
|
|
51
|
+
_ServiceCatalog_type.set(this, void 0);
|
|
52
|
+
_ServiceCatalog_category.set(this, void 0);
|
|
53
|
+
_ServiceCatalog_status.set(this, void 0);
|
|
54
|
+
_ServiceCatalog_isRequiredService.set(this, void 0);
|
|
55
|
+
_ServiceCatalog_dependsOnServiceCode.set(this, void 0);
|
|
56
|
+
_ServiceCatalog_hasBasePrice.set(this, void 0);
|
|
57
|
+
_ServiceCatalog_basePricePercentage.set(this, void 0);
|
|
58
|
+
_ServiceCatalog_hasFixedPrice.set(this, void 0);
|
|
59
|
+
_ServiceCatalog_fixedPriceAmount.set(this, void 0);
|
|
60
|
+
_ServiceCatalog_expertDedicationLevel.set(this, void 0);
|
|
61
|
+
_ServiceCatalog_reportTypes.set(this, void 0);
|
|
62
|
+
_ServiceCatalog_additionalUserRoles.set(this, void 0);
|
|
63
|
+
_ServiceCatalog_maxUsers.set(this, void 0);
|
|
64
|
+
_ServiceCatalog_allowsDocumentReading.set(this, void 0);
|
|
65
|
+
_ServiceCatalog_allowsSectoralComparison.set(this, void 0);
|
|
66
|
+
_ServiceCatalog_includesCarbonBoxAcademy.set(this, void 0);
|
|
67
|
+
_ServiceCatalog_includesESGIndicators.set(this, void 0);
|
|
68
|
+
_ServiceCatalog_isAvailableForCorporate.set(this, void 0);
|
|
69
|
+
_ServiceCatalog_isAvailableForProduct.set(this, void 0);
|
|
70
|
+
_ServiceCatalog_isAvailableForEvent.set(this, void 0);
|
|
71
|
+
_ServiceCatalog_createdByStakeholder.set(this, void 0);
|
|
72
|
+
if (skipDomainValidation === false) {
|
|
73
|
+
// Initialize with domain validation
|
|
74
|
+
__classPrivateFieldSet(this, _ServiceCatalog_code, ServiceCatalogCode_1.ServiceCatalogCode.create(props.code), "f");
|
|
75
|
+
__classPrivateFieldSet(this, _ServiceCatalog_name, ServiceCatalogName_1.ServiceCatalogName.create(props.name), "f");
|
|
76
|
+
__classPrivateFieldSet(this, _ServiceCatalog_description, ServiceCatalogDescription_1.ServiceCatalogDescription.create(props.description), "f");
|
|
77
|
+
__classPrivateFieldSet(this, _ServiceCatalog_type, ServiceCatalogType_1.ServiceCatalogType.create(props.type), "f");
|
|
78
|
+
__classPrivateFieldSet(this, _ServiceCatalog_category, ServiceCatalogCategory_1.ServiceCatalogCategory.create(props.category), "f");
|
|
79
|
+
__classPrivateFieldSet(this, _ServiceCatalog_status, ServiceCatalogStatus_1.ServiceCatalogStatus.create(props.status), "f");
|
|
80
|
+
__classPrivateFieldSet(this, _ServiceCatalog_isRequiredService, ServiceCatalogIsRequiredService_1.ServiceCatalogIsRequiredService.create(props.isRequiredService), "f");
|
|
81
|
+
__classPrivateFieldSet(this, _ServiceCatalog_dependsOnServiceCode, ServiceCatalogDependsOnServiceCode_1.ServiceCatalogDependsOnServiceCode.create(props.dependsOnServiceCode), "f");
|
|
82
|
+
__classPrivateFieldSet(this, _ServiceCatalog_hasBasePrice, ServiceCatalogHasBasePrice_1.ServiceCatalogHasBasePrice.create(props.hasBasePrice), "f");
|
|
83
|
+
__classPrivateFieldSet(this, _ServiceCatalog_basePricePercentage, ServiceCatalogBasePricePercentage_1.ServiceCatalogBasePricePercentage.create(props.basePricePercentage), "f");
|
|
84
|
+
__classPrivateFieldSet(this, _ServiceCatalog_hasFixedPrice, ServiceCatalogHasFixedPrice_1.ServiceCatalogHasFixedPrice.create(props.hasFixedPrice), "f");
|
|
85
|
+
__classPrivateFieldSet(this, _ServiceCatalog_fixedPriceAmount, ServiceCatalogFixedPriceAmount_1.ServiceCatalogFixedPriceAmount.create(props.fixedPriceAmount), "f");
|
|
86
|
+
__classPrivateFieldSet(this, _ServiceCatalog_expertDedicationLevel, ServiceCatalogExpertDedicationLevel_1.ServiceCatalogExpertDedicationLevel.create(props.expertDedicationLevel), "f");
|
|
87
|
+
__classPrivateFieldSet(this, _ServiceCatalog_reportTypes, ServiceCatalogReportTypes_1.ServiceCatalogReportTypes.create(props.reportTypes), "f");
|
|
88
|
+
__classPrivateFieldSet(this, _ServiceCatalog_additionalUserRoles, ServiceCatalogAdditionalUserRoles_1.ServiceCatalogAdditionalUserRoles.create(props.additionalUserRoles), "f");
|
|
89
|
+
__classPrivateFieldSet(this, _ServiceCatalog_maxUsers, ServiceCatalogMaxUsers_1.ServiceCatalogMaxUsers.create(props.maxUsers), "f");
|
|
90
|
+
__classPrivateFieldSet(this, _ServiceCatalog_allowsDocumentReading, ServiceCatalogAllowsDocumentReading_1.ServiceCatalogAllowsDocumentReading.create(props.allowsDocumentReading), "f");
|
|
91
|
+
__classPrivateFieldSet(this, _ServiceCatalog_allowsSectoralComparison, ServiceCatalogAllowsSectoralComparison_1.ServiceCatalogAllowsSectoralComparison.create(props.allowsSectoralComparison), "f");
|
|
92
|
+
__classPrivateFieldSet(this, _ServiceCatalog_includesCarbonBoxAcademy, ServiceCatalogIncludesCarbonBoxAcademy_1.ServiceCatalogIncludesCarbonBoxAcademy.create(props.includesCarbonBoxAcademy), "f");
|
|
93
|
+
__classPrivateFieldSet(this, _ServiceCatalog_includesESGIndicators, ServiceCatalogIncludesESGIndicators_1.ServiceCatalogIncludesESGIndicators.create(props.includesESGIndicators), "f");
|
|
94
|
+
__classPrivateFieldSet(this, _ServiceCatalog_isAvailableForCorporate, ServiceCatalogIsAvailableForCorporate_1.ServiceCatalogIsAvailableForCorporate.create(props.isAvailableForCorporate), "f");
|
|
95
|
+
__classPrivateFieldSet(this, _ServiceCatalog_isAvailableForProduct, ServiceCatalogIsAvailableForProduct_1.ServiceCatalogIsAvailableForProduct.create(props.isAvailableForProduct), "f");
|
|
96
|
+
__classPrivateFieldSet(this, _ServiceCatalog_isAvailableForEvent, ServiceCatalogIsAvailableForEvent_1.ServiceCatalogIsAvailableForEvent.create(props.isAvailableForEvent), "f");
|
|
97
|
+
__classPrivateFieldSet(this, _ServiceCatalog_createdByStakeholder, ServiceCatalogCreatedByStakeholder_1.ServiceCatalogCreatedByStakeholder.create(props.createdByStakeholder), "f");
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
// Initialize from primitives (no domain validation)
|
|
101
|
+
__classPrivateFieldSet(this, _ServiceCatalog_code, ServiceCatalogCode_1.ServiceCatalogCode.fromPrimitives(props.code), "f");
|
|
102
|
+
__classPrivateFieldSet(this, _ServiceCatalog_name, ServiceCatalogName_1.ServiceCatalogName.fromPrimitives(props.name), "f");
|
|
103
|
+
__classPrivateFieldSet(this, _ServiceCatalog_description, ServiceCatalogDescription_1.ServiceCatalogDescription.fromPrimitives(props.description), "f");
|
|
104
|
+
__classPrivateFieldSet(this, _ServiceCatalog_type, ServiceCatalogType_1.ServiceCatalogType.fromPrimitives(props.type), "f");
|
|
105
|
+
__classPrivateFieldSet(this, _ServiceCatalog_category, ServiceCatalogCategory_1.ServiceCatalogCategory.fromPrimitives(props.category), "f");
|
|
106
|
+
__classPrivateFieldSet(this, _ServiceCatalog_status, ServiceCatalogStatus_1.ServiceCatalogStatus.fromPrimitives(props.status), "f");
|
|
107
|
+
__classPrivateFieldSet(this, _ServiceCatalog_isRequiredService, ServiceCatalogIsRequiredService_1.ServiceCatalogIsRequiredService.fromPrimitives(props.isRequiredService), "f");
|
|
108
|
+
__classPrivateFieldSet(this, _ServiceCatalog_dependsOnServiceCode, ServiceCatalogDependsOnServiceCode_1.ServiceCatalogDependsOnServiceCode.fromPrimitives(props.dependsOnServiceCode), "f");
|
|
109
|
+
__classPrivateFieldSet(this, _ServiceCatalog_hasBasePrice, ServiceCatalogHasBasePrice_1.ServiceCatalogHasBasePrice.fromPrimitives(props.hasBasePrice), "f");
|
|
110
|
+
__classPrivateFieldSet(this, _ServiceCatalog_basePricePercentage, ServiceCatalogBasePricePercentage_1.ServiceCatalogBasePricePercentage.fromPrimitives(props.basePricePercentage), "f");
|
|
111
|
+
__classPrivateFieldSet(this, _ServiceCatalog_hasFixedPrice, ServiceCatalogHasFixedPrice_1.ServiceCatalogHasFixedPrice.fromPrimitives(props.hasFixedPrice), "f");
|
|
112
|
+
__classPrivateFieldSet(this, _ServiceCatalog_fixedPriceAmount, ServiceCatalogFixedPriceAmount_1.ServiceCatalogFixedPriceAmount.fromPrimitives(props.fixedPriceAmount), "f");
|
|
113
|
+
__classPrivateFieldSet(this, _ServiceCatalog_expertDedicationLevel, ServiceCatalogExpertDedicationLevel_1.ServiceCatalogExpertDedicationLevel.fromPrimitives(props.expertDedicationLevel), "f");
|
|
114
|
+
__classPrivateFieldSet(this, _ServiceCatalog_reportTypes, ServiceCatalogReportTypes_1.ServiceCatalogReportTypes.fromPrimitives(props.reportTypes), "f");
|
|
115
|
+
__classPrivateFieldSet(this, _ServiceCatalog_additionalUserRoles, ServiceCatalogAdditionalUserRoles_1.ServiceCatalogAdditionalUserRoles.fromPrimitives(props.additionalUserRoles), "f");
|
|
116
|
+
__classPrivateFieldSet(this, _ServiceCatalog_maxUsers, ServiceCatalogMaxUsers_1.ServiceCatalogMaxUsers.fromPrimitives(props.maxUsers), "f");
|
|
117
|
+
__classPrivateFieldSet(this, _ServiceCatalog_allowsDocumentReading, ServiceCatalogAllowsDocumentReading_1.ServiceCatalogAllowsDocumentReading.fromPrimitives(props.allowsDocumentReading), "f");
|
|
118
|
+
__classPrivateFieldSet(this, _ServiceCatalog_allowsSectoralComparison, ServiceCatalogAllowsSectoralComparison_1.ServiceCatalogAllowsSectoralComparison.fromPrimitives(props.allowsSectoralComparison), "f");
|
|
119
|
+
__classPrivateFieldSet(this, _ServiceCatalog_includesCarbonBoxAcademy, ServiceCatalogIncludesCarbonBoxAcademy_1.ServiceCatalogIncludesCarbonBoxAcademy.fromPrimitives(props.includesCarbonBoxAcademy), "f");
|
|
120
|
+
__classPrivateFieldSet(this, _ServiceCatalog_includesESGIndicators, ServiceCatalogIncludesESGIndicators_1.ServiceCatalogIncludesESGIndicators.fromPrimitives(props.includesESGIndicators), "f");
|
|
121
|
+
__classPrivateFieldSet(this, _ServiceCatalog_isAvailableForCorporate, ServiceCatalogIsAvailableForCorporate_1.ServiceCatalogIsAvailableForCorporate.fromPrimitives(props.isAvailableForCorporate), "f");
|
|
122
|
+
__classPrivateFieldSet(this, _ServiceCatalog_isAvailableForProduct, ServiceCatalogIsAvailableForProduct_1.ServiceCatalogIsAvailableForProduct.fromPrimitives(props.isAvailableForProduct), "f");
|
|
123
|
+
__classPrivateFieldSet(this, _ServiceCatalog_isAvailableForEvent, ServiceCatalogIsAvailableForEvent_1.ServiceCatalogIsAvailableForEvent.fromPrimitives(props.isAvailableForEvent), "f");
|
|
124
|
+
__classPrivateFieldSet(this, _ServiceCatalog_createdByStakeholder, ServiceCatalogCreatedByStakeholder_1.ServiceCatalogCreatedByStakeholder.fromPrimitives(props.createdByStakeholder), "f");
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
static create(props) {
|
|
128
|
+
return new ServiceCatalog(props, false);
|
|
129
|
+
}
|
|
130
|
+
static fromPrimitives(primitives) {
|
|
131
|
+
const props = {
|
|
132
|
+
id: primitives.id,
|
|
133
|
+
code: primitives.code,
|
|
134
|
+
name: primitives.name,
|
|
135
|
+
description: primitives.description,
|
|
136
|
+
type: primitives.type,
|
|
137
|
+
category: primitives.category,
|
|
138
|
+
status: primitives.status,
|
|
139
|
+
isRequiredService: primitives.isRequiredService,
|
|
140
|
+
dependsOnServiceCode: primitives.dependsOnServiceCode,
|
|
141
|
+
hasBasePrice: primitives.hasBasePrice,
|
|
142
|
+
basePricePercentage: primitives.basePricePercentage,
|
|
143
|
+
hasFixedPrice: primitives.hasFixedPrice,
|
|
144
|
+
fixedPriceAmount: primitives.fixedPriceAmount,
|
|
145
|
+
expertDedicationLevel: primitives.expertDedicationLevel,
|
|
146
|
+
reportTypes: primitives.reportTypes,
|
|
147
|
+
additionalUserRoles: primitives.additionalUserRoles,
|
|
148
|
+
maxUsers: primitives.maxUsers,
|
|
149
|
+
allowsDocumentReading: primitives.allowsDocumentReading,
|
|
150
|
+
allowsSectoralComparison: primitives.allowsSectoralComparison,
|
|
151
|
+
includesCarbonBoxAcademy: primitives.includesCarbonBoxAcademy,
|
|
152
|
+
includesESGIndicators: primitives.includesESGIndicators,
|
|
153
|
+
isAvailableForCorporate: primitives.isAvailableForCorporate,
|
|
154
|
+
isAvailableForProduct: primitives.isAvailableForProduct,
|
|
155
|
+
isAvailableForEvent: primitives.isAvailableForEvent,
|
|
156
|
+
createdByStakeholder: primitives.createdByStakeholder,
|
|
157
|
+
};
|
|
158
|
+
return new ServiceCatalog(props, true);
|
|
159
|
+
}
|
|
160
|
+
get toPrimitives() {
|
|
161
|
+
return {
|
|
162
|
+
id: this.id.toPrimitives(),
|
|
163
|
+
code: __classPrivateFieldGet(this, _ServiceCatalog_code, "f").toPrimitives(),
|
|
164
|
+
name: __classPrivateFieldGet(this, _ServiceCatalog_name, "f").toPrimitives(),
|
|
165
|
+
description: __classPrivateFieldGet(this, _ServiceCatalog_description, "f").toPrimitives(),
|
|
166
|
+
type: __classPrivateFieldGet(this, _ServiceCatalog_type, "f").toEnum(),
|
|
167
|
+
category: __classPrivateFieldGet(this, _ServiceCatalog_category, "f").toEnum(),
|
|
168
|
+
status: __classPrivateFieldGet(this, _ServiceCatalog_status, "f").toEnum(),
|
|
169
|
+
isRequiredService: __classPrivateFieldGet(this, _ServiceCatalog_isRequiredService, "f").toPrimitives(),
|
|
170
|
+
dependsOnServiceCode: __classPrivateFieldGet(this, _ServiceCatalog_dependsOnServiceCode, "f").toPrimitives(),
|
|
171
|
+
hasBasePrice: __classPrivateFieldGet(this, _ServiceCatalog_hasBasePrice, "f").toPrimitives(),
|
|
172
|
+
basePricePercentage: __classPrivateFieldGet(this, _ServiceCatalog_basePricePercentage, "f").toPrimitives(),
|
|
173
|
+
hasFixedPrice: __classPrivateFieldGet(this, _ServiceCatalog_hasFixedPrice, "f").toPrimitives(),
|
|
174
|
+
fixedPriceAmount: __classPrivateFieldGet(this, _ServiceCatalog_fixedPriceAmount, "f").toPrimitives(),
|
|
175
|
+
expertDedicationLevel: __classPrivateFieldGet(this, _ServiceCatalog_expertDedicationLevel, "f").toEnum(),
|
|
176
|
+
reportTypes: __classPrivateFieldGet(this, _ServiceCatalog_reportTypes, "f").toEnums(),
|
|
177
|
+
additionalUserRoles: __classPrivateFieldGet(this, _ServiceCatalog_additionalUserRoles, "f").toEnums(),
|
|
178
|
+
maxUsers: __classPrivateFieldGet(this, _ServiceCatalog_maxUsers, "f").toPrimitives(),
|
|
179
|
+
allowsDocumentReading: __classPrivateFieldGet(this, _ServiceCatalog_allowsDocumentReading, "f").toPrimitives(),
|
|
180
|
+
allowsSectoralComparison: __classPrivateFieldGet(this, _ServiceCatalog_allowsSectoralComparison, "f").toPrimitives(),
|
|
181
|
+
includesCarbonBoxAcademy: __classPrivateFieldGet(this, _ServiceCatalog_includesCarbonBoxAcademy, "f").toPrimitives(),
|
|
182
|
+
includesESGIndicators: __classPrivateFieldGet(this, _ServiceCatalog_includesESGIndicators, "f").toPrimitives(),
|
|
183
|
+
isAvailableForCorporate: __classPrivateFieldGet(this, _ServiceCatalog_isAvailableForCorporate, "f").toPrimitives(),
|
|
184
|
+
isAvailableForProduct: __classPrivateFieldGet(this, _ServiceCatalog_isAvailableForProduct, "f").toPrimitives(),
|
|
185
|
+
isAvailableForEvent: __classPrivateFieldGet(this, _ServiceCatalog_isAvailableForEvent, "f").toPrimitives(),
|
|
186
|
+
createdByStakeholder: __classPrivateFieldGet(this, _ServiceCatalog_createdByStakeholder, "f").toPrimitives(),
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
get code() {
|
|
190
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_code, "f");
|
|
191
|
+
}
|
|
192
|
+
get name() {
|
|
193
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_name, "f");
|
|
194
|
+
}
|
|
195
|
+
get description() {
|
|
196
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_description, "f");
|
|
197
|
+
}
|
|
198
|
+
get type() {
|
|
199
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_type, "f");
|
|
200
|
+
}
|
|
201
|
+
get category() {
|
|
202
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_category, "f");
|
|
203
|
+
}
|
|
204
|
+
get status() {
|
|
205
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_status, "f");
|
|
206
|
+
}
|
|
207
|
+
get isRequiredService() {
|
|
208
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_isRequiredService, "f");
|
|
209
|
+
}
|
|
210
|
+
get dependsOnServiceCode() {
|
|
211
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_dependsOnServiceCode, "f");
|
|
212
|
+
}
|
|
213
|
+
get hasBasePrice() {
|
|
214
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_hasBasePrice, "f");
|
|
215
|
+
}
|
|
216
|
+
get basePricePercentage() {
|
|
217
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_basePricePercentage, "f");
|
|
218
|
+
}
|
|
219
|
+
get hasFixedPrice() {
|
|
220
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_hasFixedPrice, "f");
|
|
221
|
+
}
|
|
222
|
+
get fixedPriceAmount() {
|
|
223
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_fixedPriceAmount, "f");
|
|
224
|
+
}
|
|
225
|
+
get expertDedicationLevel() {
|
|
226
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_expertDedicationLevel, "f");
|
|
227
|
+
}
|
|
228
|
+
get reportTypes() {
|
|
229
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_reportTypes, "f");
|
|
230
|
+
}
|
|
231
|
+
get additionalUserRoles() {
|
|
232
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_additionalUserRoles, "f");
|
|
233
|
+
}
|
|
234
|
+
get maxUsers() {
|
|
235
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_maxUsers, "f");
|
|
236
|
+
}
|
|
237
|
+
get allowsDocumentReading() {
|
|
238
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_allowsDocumentReading, "f");
|
|
239
|
+
}
|
|
240
|
+
get allowsSectoralComparison() {
|
|
241
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_allowsSectoralComparison, "f");
|
|
242
|
+
}
|
|
243
|
+
get includesCarbonBoxAcademy() {
|
|
244
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_includesCarbonBoxAcademy, "f");
|
|
245
|
+
}
|
|
246
|
+
get includesESGIndicators() {
|
|
247
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_includesESGIndicators, "f");
|
|
248
|
+
}
|
|
249
|
+
get isAvailableForCorporate() {
|
|
250
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_isAvailableForCorporate, "f");
|
|
251
|
+
}
|
|
252
|
+
get isAvailableForProduct() {
|
|
253
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_isAvailableForProduct, "f");
|
|
254
|
+
}
|
|
255
|
+
get isAvailableForEvent() {
|
|
256
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_isAvailableForEvent, "f");
|
|
257
|
+
}
|
|
258
|
+
get createdByStakeholder() {
|
|
259
|
+
return __classPrivateFieldGet(this, _ServiceCatalog_createdByStakeholder, "f");
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
exports.ServiceCatalog = ServiceCatalog;
|
|
263
|
+
_ServiceCatalog_code = new WeakMap(), _ServiceCatalog_name = new WeakMap(), _ServiceCatalog_description = new WeakMap(), _ServiceCatalog_type = new WeakMap(), _ServiceCatalog_category = new WeakMap(), _ServiceCatalog_status = new WeakMap(), _ServiceCatalog_isRequiredService = new WeakMap(), _ServiceCatalog_dependsOnServiceCode = new WeakMap(), _ServiceCatalog_hasBasePrice = new WeakMap(), _ServiceCatalog_basePricePercentage = new WeakMap(), _ServiceCatalog_hasFixedPrice = new WeakMap(), _ServiceCatalog_fixedPriceAmount = new WeakMap(), _ServiceCatalog_expertDedicationLevel = new WeakMap(), _ServiceCatalog_reportTypes = new WeakMap(), _ServiceCatalog_additionalUserRoles = new WeakMap(), _ServiceCatalog_maxUsers = new WeakMap(), _ServiceCatalog_allowsDocumentReading = new WeakMap(), _ServiceCatalog_allowsSectoralComparison = new WeakMap(), _ServiceCatalog_includesCarbonBoxAcademy = new WeakMap(), _ServiceCatalog_includesESGIndicators = new WeakMap(), _ServiceCatalog_isAvailableForCorporate = new WeakMap(), _ServiceCatalog_isAvailableForProduct = new WeakMap(), _ServiceCatalog_isAvailableForEvent = new WeakMap(), _ServiceCatalog_createdByStakeholder = new WeakMap();
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceCatalogCategory = void 0;
|
|
4
|
+
var ServiceCatalogCategory;
|
|
5
|
+
(function (ServiceCatalogCategory) {
|
|
6
|
+
ServiceCatalogCategory["CORPORATE_FOOTPRINT"] = "CORPORATE_FOOTPRINT";
|
|
7
|
+
ServiceCatalogCategory["PRODUCT_FOOTPRINT"] = "PRODUCT_FOOTPRINT";
|
|
8
|
+
ServiceCatalogCategory["EVENT_FOOTPRINT"] = "EVENT_FOOTPRINT";
|
|
9
|
+
ServiceCatalogCategory["EXPERT_SUPPORT"] = "EXPERT_SUPPORT";
|
|
10
|
+
ServiceCatalogCategory["TRAINING"] = "TRAINING";
|
|
11
|
+
ServiceCatalogCategory["AUDIT_SUPPORT"] = "AUDIT_SUPPORT";
|
|
12
|
+
ServiceCatalogCategory["DATA_VALIDATION"] = "DATA_VALIDATION";
|
|
13
|
+
ServiceCatalogCategory["REPORTING"] = "REPORTING";
|
|
14
|
+
ServiceCatalogCategory["DOCUMENT_READING"] = "DOCUMENT_READING";
|
|
15
|
+
ServiceCatalogCategory["SECTORAL_COMPARISON"] = "SECTORAL_COMPARISON";
|
|
16
|
+
ServiceCatalogCategory["ADDITIONAL_USERS"] = "ADDITIONAL_USERS";
|
|
17
|
+
ServiceCatalogCategory["CARBONBOX_ACADEMY"] = "CARBONBOX_ACADEMY";
|
|
18
|
+
ServiceCatalogCategory["ESG_INDICATORS"] = "ESG_INDICATORS";
|
|
19
|
+
ServiceCatalogCategory["CARBON_OFFSETTING"] = "CARBON_OFFSETTING";
|
|
20
|
+
})(ServiceCatalogCategory || (exports.ServiceCatalogCategory = ServiceCatalogCategory = {}));
|