@carbonbox/domain 0.20.1 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/build/carbonbox/shared/domain/enums/IdentityDocumentType.js +10 -0
  2. package/build/carbonbox/shared/domain/exceptions/InvalidIdentityDocumentTypeError.js +18 -0
  3. package/build/carbonbox/shared/domain/types/IdentityDocument.js +2 -0
  4. package/build/carbonbox/shared/domain/types/IdentityDocumentPrimitives.js +2 -0
  5. package/build/carbonbox/shared/domain/value-objects/IdentityDocument.js +336 -0
  6. package/build/carbonbox/stakeholders/carbon-clients/domain/entity/CarbonClient.js +22 -5
  7. package/build/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientIdentityDocument.js +27 -0
  8. package/build/carbonbox/stakeholders/carbon-coordinators/domain/entity/CarbonCoordinator.js +22 -5
  9. package/build/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorIdentityDocument.js +27 -0
  10. package/build/carbonbox/stakeholders/carbon-host/domain/entity/CarbonHost.js +15 -5
  11. package/build/carbonbox/stakeholders/carbon-managers/domain/entity/CarbonManager.js +22 -5
  12. package/build/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerIdentityDocument.js +27 -0
  13. package/build/carbonbox/stakeholders/shared/domain/entity/Stakeholder.js +21 -4
  14. package/build/carbonbox/stakeholders/shared/domain/value-objects/StakeholderIdentityDocument.js +47 -0
  15. package/build/main/index.js +16 -1
  16. package/build/types/carbonbox/shared/domain/enums/IdentityDocumentType.d.ts +7 -0
  17. package/build/types/carbonbox/shared/domain/enums/IdentityDocumentType.d.ts.map +1 -0
  18. package/build/types/carbonbox/shared/domain/exceptions/InvalidIdentityDocumentTypeError.d.ts +7 -0
  19. package/build/types/carbonbox/shared/domain/exceptions/InvalidIdentityDocumentTypeError.d.ts.map +1 -0
  20. package/build/types/carbonbox/shared/domain/types/IdentityDocument.d.ts +9 -0
  21. package/build/types/carbonbox/shared/domain/types/IdentityDocument.d.ts.map +1 -0
  22. package/build/types/carbonbox/shared/domain/types/IdentityDocumentPrimitives.d.ts +9 -0
  23. package/build/types/carbonbox/shared/domain/types/IdentityDocumentPrimitives.d.ts.map +1 -0
  24. package/build/types/carbonbox/shared/domain/value-objects/IdentityDocument.d.ts +132 -0
  25. package/build/types/carbonbox/shared/domain/value-objects/IdentityDocument.d.ts.map +1 -0
  26. package/build/types/carbonbox/stakeholders/carbon-clients/domain/entity/CarbonClient.d.ts.map +1 -1
  27. package/build/types/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientIdentityDocument.d.ts +10 -0
  28. package/build/types/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientIdentityDocument.d.ts.map +1 -0
  29. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/entity/CarbonCoordinator.d.ts.map +1 -1
  30. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorIdentityDocument.d.ts +10 -0
  31. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorIdentityDocument.d.ts.map +1 -0
  32. package/build/types/carbonbox/stakeholders/carbon-host/domain/entity/CarbonHost.d.ts.map +1 -1
  33. package/build/types/carbonbox/stakeholders/carbon-managers/domain/entity/CarbonManager.d.ts.map +1 -1
  34. package/build/types/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerIdentityDocument.d.ts +10 -0
  35. package/build/types/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerIdentityDocument.d.ts.map +1 -0
  36. package/build/types/carbonbox/stakeholders/shared/domain/entity/IStakeholder.d.ts +3 -1
  37. package/build/types/carbonbox/stakeholders/shared/domain/entity/IStakeholder.d.ts.map +1 -1
  38. package/build/types/carbonbox/stakeholders/shared/domain/entity/Stakeholder.d.ts +3 -1
  39. package/build/types/carbonbox/stakeholders/shared/domain/entity/Stakeholder.d.ts.map +1 -1
  40. package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPrimitives.d.ts +3 -1
  41. package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPrimitives.d.ts.map +1 -1
  42. package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderProps.d.ts +3 -1
  43. package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderProps.d.ts.map +1 -1
  44. package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPropsWithHashedPassword.d.ts +3 -1
  45. package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPropsWithHashedPassword.d.ts.map +1 -1
  46. package/build/types/carbonbox/stakeholders/shared/domain/value-objects/StakeholderIdentityDocument.d.ts +22 -0
  47. package/build/types/carbonbox/stakeholders/shared/domain/value-objects/StakeholderIdentityDocument.d.ts.map +1 -0
  48. package/build/types/main/index.d.ts +9 -0
  49. package/build/types/main/index.d.ts.map +1 -1
  50. package/package.json +1 -1
@@ -26,6 +26,7 @@ const CarbonManagerPassword_1 = require("../value-objects/CarbonManagerPassword"
26
26
  const CarbonManagerPermissions_1 = require("../value-objects/CarbonManagerPermissions");
27
27
  const CarbonManagerRoleType_1 = require("../value-objects/CarbonManagerRoleType");
28
28
  const CarbonManagerTaxIdentification_1 = require("../value-objects/CarbonManagerTaxIdentification");
29
+ const CarbonManagerIdentityDocument_1 = require("../value-objects/CarbonManagerIdentityDocument");
29
30
  const CarbonManagerUserType_1 = require("../value-objects/CarbonManagerUserType");
30
31
  class CarbonManager extends Stakeholder_1.Stakeholder {
31
32
  constructor(props, skipDomainValidation) {
@@ -47,9 +48,16 @@ class CarbonManager extends Stakeholder_1.Stakeholder {
47
48
  const lastAccessAt = skipDomainValidation
48
49
  ? CarbonManagerLastAccessAt_1.CarbonManagerLastAccessAt.fromPrimitives(props.lastAccessAt).toPrimitives()
49
50
  : CarbonManagerLastAccessAt_1.CarbonManagerLastAccessAt.create(props.lastAccessAt).toPrimitives();
50
- const taxIdentification = skipDomainValidation
51
- ? CarbonManagerTaxIdentification_1.CarbonManagerTaxIdentification.fromPrimitives(props.taxIdentification).toPrimitives()
52
- : CarbonManagerTaxIdentification_1.CarbonManagerTaxIdentification.create(props.taxIdentification).toPrimitives();
51
+ const taxIdentification = props.taxIdentification === null
52
+ ? null
53
+ : (skipDomainValidation
54
+ ? CarbonManagerTaxIdentification_1.CarbonManagerTaxIdentification.fromPrimitives(props.taxIdentification).toPrimitives()
55
+ : CarbonManagerTaxIdentification_1.CarbonManagerTaxIdentification.create(props.taxIdentification).toPrimitives());
56
+ const identityDocument = props.identityDocument === null
57
+ ? null
58
+ : (skipDomainValidation
59
+ ? CarbonManagerIdentityDocument_1.CarbonManagerIdentityDocument.fromPrimitives(props.identityDocument).toPrimitives()
60
+ : CarbonManagerIdentityDocument_1.CarbonManagerIdentityDocument.create(props.identityDocument).toPrimitives());
53
61
  const roleType = skipDomainValidation
54
62
  ? CarbonManagerRoleType_1.CarbonManagerRoleType.fromPrimitives(props.roleType).toEnum()
55
63
  : CarbonManagerRoleType_1.CarbonManagerRoleType.create(props.roleType).toEnum();
@@ -70,6 +78,7 @@ class CarbonManager extends Stakeholder_1.Stakeholder {
70
78
  displayName,
71
79
  lastAccessAt,
72
80
  taxIdentification,
81
+ identityDocument,
73
82
  roleType,
74
83
  businessStatus,
75
84
  userType,
@@ -98,6 +107,7 @@ class CarbonManager extends Stakeholder_1.Stakeholder {
98
107
  displayName: primitives.displayName,
99
108
  lastAccessAt: primitives.lastAccessAt,
100
109
  taxIdentification: primitives.taxIdentification,
110
+ identityDocument: primitives.identityDocument,
101
111
  roleType: primitives.roleType,
102
112
  businessStatus: primitives.businessStatus,
103
113
  userType: primitives.userType,
@@ -114,7 +124,12 @@ class CarbonManager extends Stakeholder_1.Stakeholder {
114
124
  const email = CarbonManagerEmail_1.CarbonManagerEmail.create(props.email).toPrimitives();
115
125
  const displayName = CarbonManagerDisplayName_1.CarbonManagerDisplayName.create(props.displayName).toPrimitives();
116
126
  const lastAccessAt = CarbonManagerLastAccessAt_1.CarbonManagerLastAccessAt.create(props.lastAccessAt).toPrimitives();
117
- const taxIdentification = CarbonManagerTaxIdentification_1.CarbonManagerTaxIdentification.create(props.taxIdentification).toPrimitives();
127
+ const taxIdentification = props.taxIdentification === null
128
+ ? null
129
+ : CarbonManagerTaxIdentification_1.CarbonManagerTaxIdentification.create(props.taxIdentification).toPrimitives();
130
+ const identityDocument = props.identityDocument === null
131
+ ? null
132
+ : CarbonManagerIdentityDocument_1.CarbonManagerIdentityDocument.create(props.identityDocument).toPrimitives();
118
133
  const roleType = CarbonManagerRoleType_1.CarbonManagerRoleType.create(props.roleType).toEnum();
119
134
  const businessStatus = CarbonManagerBusinessStatus_1.CarbonManagerBusinessStatus.create(props.businessStatus).toEnum();
120
135
  const userType = CarbonManagerUserType_1.CarbonManagerUserType.create(props.userType).toEnum();
@@ -128,6 +143,7 @@ class CarbonManager extends Stakeholder_1.Stakeholder {
128
143
  displayName,
129
144
  lastAccessAt,
130
145
  taxIdentification,
146
+ identityDocument,
131
147
  roleType,
132
148
  businessStatus,
133
149
  userType,
@@ -148,7 +164,8 @@ class CarbonManager extends Stakeholder_1.Stakeholder {
148
164
  roleType: this.roleType.toEnum(),
149
165
  businessStatus: this.businessStatus.toEnum(),
150
166
  userType: this.userType.toEnum(),
151
- taxIdentification: this.taxIdentification.toPrimitives(),
167
+ taxIdentification: this.taxIdentification?.toPrimitives() ?? null,
168
+ identityDocument: this.identityDocument?.toPrimitives() ?? null,
152
169
  permissions: this.permissions.toEnums(),
153
170
  preferredLocale: this.preferredLocale.toEnum(),
154
171
  managedStakeholders: __classPrivateFieldGet(this, _CarbonManager_managedStakeholders, "f").toPrimitives(),
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CarbonManagerIdentityDocument = void 0;
4
+ const StakeholderIdentityDocument_1 = require("../../../shared/domain/value-objects/StakeholderIdentityDocument");
5
+ class CarbonManagerIdentityDocument extends StakeholderIdentityDocument_1.StakeholderIdentityDocument {
6
+ constructor(value, skipDomainValidation) {
7
+ super(value, skipDomainValidation);
8
+ }
9
+ static create(value) {
10
+ return new CarbonManagerIdentityDocument(value, false);
11
+ }
12
+ static fromPrimitives(primitives) {
13
+ const value = {
14
+ country: primitives.country,
15
+ issuedBy: primitives.issuedBy,
16
+ number: primitives.number,
17
+ type: primitives.type,
18
+ validFrom: primitives.validFrom,
19
+ validUntil: primitives.validUntil,
20
+ };
21
+ return new CarbonManagerIdentityDocument(value, true);
22
+ }
23
+ toPrimitives() {
24
+ return this.value;
25
+ }
26
+ }
27
+ exports.CarbonManagerIdentityDocument = CarbonManagerIdentityDocument;
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
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
11
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
12
  };
13
- var _Stakeholder_taxIdentification, _Stakeholder_roleType;
13
+ var _Stakeholder_taxIdentification, _Stakeholder_identityDocument, _Stakeholder_roleType;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.Stakeholder = void 0;
16
16
  const User_1 = require("../../../../shared/domain/entities/User");
@@ -24,6 +24,7 @@ const StakeholderPassword_1 = require("../value-objects/StakeholderPassword");
24
24
  const StakeholderPermissions_1 = require("../value-objects/StakeholderPermissions");
25
25
  const StakeholderRoleType_1 = require("../value-objects/StakeholderRoleType");
26
26
  const StakeholderTaxIdentification_1 = require("../value-objects/StakeholderTaxIdentification");
27
+ const StakeholderIdentityDocument_1 = require("../value-objects/StakeholderIdentityDocument");
27
28
  const StakeholderUserType_1 = require("../value-objects/StakeholderUserType");
28
29
  class Stakeholder extends User_1.User {
29
30
  constructor(props, skipDomainValidation) {
@@ -66,25 +67,41 @@ class Stakeholder extends User_1.User {
66
67
  permissions,
67
68
  preferredLocale: props.preferredLocale,
68
69
  }, skipDomainValidation);
70
+ // USR-020: la identificación depende de la naturaleza (persona vs empresa). Ambos son
71
+ // nullable a nivel de dominio; la obligatoriedad condicional vive en la capa de aplicación.
69
72
  _Stakeholder_taxIdentification.set(this, void 0);
73
+ _Stakeholder_identityDocument.set(this, void 0);
70
74
  _Stakeholder_roleType.set(this, void 0);
71
75
  if (skipDomainValidation === false) {
72
76
  // Initialize with domain validation
73
- __classPrivateFieldSet(this, _Stakeholder_taxIdentification, StakeholderTaxIdentification_1.StakeholderTaxIdentification.create(props.taxIdentification), "f");
77
+ __classPrivateFieldSet(this, _Stakeholder_taxIdentification, props.taxIdentification === null
78
+ ? null
79
+ : StakeholderTaxIdentification_1.StakeholderTaxIdentification.create(props.taxIdentification), "f");
80
+ __classPrivateFieldSet(this, _Stakeholder_identityDocument, props.identityDocument === null
81
+ ? null
82
+ : StakeholderIdentityDocument_1.StakeholderIdentityDocument.create(props.identityDocument), "f");
74
83
  __classPrivateFieldSet(this, _Stakeholder_roleType, StakeholderRoleType_1.StakeholderRoleType.create(props.roleType), "f");
75
84
  }
76
85
  else {
77
86
  // Initialize from primitives (no domain validation)
78
- __classPrivateFieldSet(this, _Stakeholder_taxIdentification, StakeholderTaxIdentification_1.StakeholderTaxIdentification.fromPrimitives(props.taxIdentification), "f");
87
+ __classPrivateFieldSet(this, _Stakeholder_taxIdentification, props.taxIdentification === null
88
+ ? null
89
+ : StakeholderTaxIdentification_1.StakeholderTaxIdentification.fromPrimitives(props.taxIdentification), "f");
90
+ __classPrivateFieldSet(this, _Stakeholder_identityDocument, props.identityDocument === null
91
+ ? null
92
+ : StakeholderIdentityDocument_1.StakeholderIdentityDocument.fromPrimitives(props.identityDocument), "f");
79
93
  __classPrivateFieldSet(this, _Stakeholder_roleType, StakeholderRoleType_1.StakeholderRoleType.fromPrimitives(props.roleType), "f");
80
94
  }
81
95
  }
82
96
  get taxIdentification() {
83
97
  return __classPrivateFieldGet(this, _Stakeholder_taxIdentification, "f");
84
98
  }
99
+ get identityDocument() {
100
+ return __classPrivateFieldGet(this, _Stakeholder_identityDocument, "f");
101
+ }
85
102
  get roleType() {
86
103
  return __classPrivateFieldGet(this, _Stakeholder_roleType, "f");
87
104
  }
88
105
  }
89
106
  exports.Stakeholder = Stakeholder;
90
- _Stakeholder_taxIdentification = new WeakMap(), _Stakeholder_roleType = new WeakMap();
107
+ _Stakeholder_taxIdentification = new WeakMap(), _Stakeholder_identityDocument = new WeakMap(), _Stakeholder_roleType = new WeakMap();
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StakeholderIdentityDocument = void 0;
4
+ const IdentityDocument_1 = require("../../../../shared/domain/value-objects/IdentityDocument");
5
+ class StakeholderIdentityDocument extends IdentityDocument_1.IdentityDocument {
6
+ constructor(value, skipDomainValidation) {
7
+ super(value, skipDomainValidation, StakeholderIdentityDocument.PROPERTY_NAME);
8
+ }
9
+ /**
10
+ * Factory method para crear una nueva instancia de StakeholderIdentityDocument.
11
+ * Valida completamente el valor antes de crear la instancia.
12
+ */
13
+ static create(value) {
14
+ IdentityDocument_1.IdentityDocument.validateCompletely(value, StakeholderIdentityDocument.PROPERTY_NAME);
15
+ return new StakeholderIdentityDocument(value, false);
16
+ }
17
+ /**
18
+ * Factory method para crear desde primitivos.
19
+ * Útil cuando los datos vienen de persistencia o API.
20
+ */
21
+ static fromPrimitives(primitives) {
22
+ const identityDocument = {
23
+ type: primitives.type,
24
+ number: primitives.number,
25
+ country: primitives.country,
26
+ issuedBy: primitives.issuedBy,
27
+ validFrom: primitives.validFrom,
28
+ validUntil: primitives.validUntil,
29
+ };
30
+ return new StakeholderIdentityDocument(identityDocument, true);
31
+ }
32
+ /**
33
+ * Convierte a representación primitiva para persistencia.
34
+ */
35
+ toPrimitives() {
36
+ return {
37
+ type: this.type,
38
+ number: this.number,
39
+ country: this.country,
40
+ issuedBy: this.issuedBy,
41
+ validFrom: this.validFrom,
42
+ validUntil: this.validUntil,
43
+ };
44
+ }
45
+ }
46
+ exports.StakeholderIdentityDocument = StakeholderIdentityDocument;
47
+ StakeholderIdentityDocument.PROPERTY_NAME = 'stakeholderIdentityDocument';
@@ -20,7 +20,7 @@ exports.EmptyDisplayNameError = exports.DateGreaterThanError = exports.InvalidUs
20
20
  exports.CarbonClientIndustryType = exports.CarbonClientUserType = exports.CarbonClientLegalBusinessName = exports.CarbonClientAccountType = exports.CarbonClientDisplayName = exports.CarbonClientEmail = exports.CarbonClientId = exports.StakeholderUserType = exports.StakeholderLastAccessAt = exports.StakeholderAvatar = exports.StakeholderTaxIdentification = exports.StakeholderRoleType = exports.StakeholderBusinessStatus = exports.StakeholderPassword = exports.StakeholderDisplayName = exports.StakeholderEmail = exports.StakeholderId = exports.CarbonManager = exports.CarbonHost = exports.CarbonCoordinator = exports.CarbonClient = exports.Stakeholder = exports.CannotAccessRightOnLeftValueError = exports.CannotAccessLeftOnRightValueError = exports.ResultExtensions = exports.EitherUtils = exports.ResultFactory = exports.EitherFactory = exports.RightEither = exports.LeftEither = exports.Either = exports.EventEditionLifecycleStageConfigurationEmissionSourceConfigurations = exports.ProductCarbonFootprintSegmentConfigurationEmissionSourceConfigurations = exports.EmissionSourceConfiguration = exports.CarbonFootprintSegmentConfigurationReference = exports.TaxIdentificationNumberWithControlCharactersError = exports.InvalidTaxIdentificationNumberLengthError = exports.InvalidTaxIdentificationNumberFormatError = exports.InvalidSupervisorRoleError = exports.InvalidMinutesDurationError = exports.InvalidMeasurementUnitOperationError = exports.InvalidManagedStakeholderRoleError = exports.InvalidDomainCodeError = exports.InvalidCountrySpecificTaxIdentificationNumberError = exports.InvalidCodeError = exports.InvalidAssignerRoleError = exports.InvalidAggregateIdError = exports.EmptyTaxIdentificationNumberError = exports.EmptySegmentNameError = exports.EmptySegmentCodeError = void 0;
21
21
  exports.CarbonManagerPassword = exports.CarbonManagerLastAccessAt = exports.CarbonManagerTaxIdentification = exports.CarbonManagerBusinessStatus = exports.CarbonManagerRoleType = exports.CarbonManagerUserType = exports.CarbonManagerManagedStakeholders = exports.CarbonManagerDisplayName = exports.CarbonManagerEmail = exports.CarbonManagerId = exports.CarbonHostPermissions = exports.CarbonHostAvatar = exports.CarbonHostLastAccessAt = exports.CarbonHostUserType = exports.CarbonHostBusinessStatus = exports.CarbonHostDisplayName = exports.CarbonHostTaxIdentification = exports.CarbonHostRoleType = exports.CarbonHostPassword = exports.CarbonHostEmail = exports.CarbonHostId = exports.CarbonCoordinatorPermissions = exports.CarbonCoordinatorPassword = exports.CarbonCoordinatorReportsToStakeholder = exports.CarbonCoordinatorAssignedByStakeholder = exports.CarbonCoordinatorLastAccessAt = exports.CarbonCoordinatorTaxIdentification = exports.CarbonCoordinatorBusinessStatus = exports.CarbonCoordinatorRoleType = exports.CarbonCoordinatorManagedCarbonClients = exports.CarbonCoordinatorWeeklyWorkingSchedule = exports.CarbonCoordinatorGender = exports.CarbonCoordinatorUserType = exports.CarbonCoordinatorAvailabilityStatus = exports.CarbonCoordinatorDisplayName = exports.CarbonCoordinatorEmail = exports.CarbonCoordinatorId = exports.CarbonClientPermissions = exports.CarbonClientPassword = exports.CarbonClientBusinessStatus = exports.CarbonClientLastAccessAt = exports.CarbonClientSupervisedByStakeholder = exports.CarbonClientRoleType = exports.CarbonClientTaxIdentification = exports.CarbonClientPrimaryContactPhone = exports.CarbonClientPrimaryContactEmail = exports.CarbonClientLogo = exports.CarbonClientWebsiteUrl = exports.CarbonClientPhysicalAddress = exports.CarbonClientOrganizationSize = void 0;
22
22
  exports.CompanyServiceEntitlementAdditionalUserRoles = exports.CompanyServiceEntitlementMaxUsers = exports.CompanyServiceEntitlementIsAvailableForEvent = exports.CompanyServiceEntitlementIsAvailableForProduct = exports.CompanyServiceEntitlementIsAvailableForCorporate = exports.CompanyServiceEntitlementIncludesEsgIndicators = exports.CompanyServiceEntitlementIncludesCarbonBoxAcademy = exports.CompanyServiceEntitlementAllowsSectoralComparison = exports.CompanyServiceEntitlementAllowsDocumentReading = exports.CompanyServiceEntitlementSourceContractIds = exports.CompanyServiceEntitlementActiveServiceCodes = exports.CompanyServiceEntitlementCarbonClientId = exports.CompanyServiceEntitlementId = exports.ServiceCapabilityPolicy = exports.CompanyServiceEntitlement = exports.PurchaseContractServiceRemovedDomainEvent = exports.PurchaseContractServiceAddedDomainEvent = exports.PurchaseContractRenewedDomainEvent = exports.PurchaseContractExpiredDomainEvent = exports.PurchaseContractCancelledDomainEvent = exports.PurchaseContractSuspendedDomainEvent = exports.PurchaseContractActivatedDomainEvent = exports.CalculationProcessFailedDomainEvent = exports.CalculationProcessCompletedDomainEvent = exports.CalculationJobFailedDomainEvent = exports.CalculationJobCompletedDomainEvent = exports.CalculationJobStartedDomainEvent = exports.WorkflowPausedDomainEvent = exports.WorkflowActivatedDomainEvent = exports.CalculationWorkflowReferenceVO = exports.InvalidDomainEventNameError = exports.DomainEventName = exports.DomainEvent = exports.StakeholderPermissions = exports.UserPermissions = exports.UnsupportedUserTypeError = exports.UnsupportedStakeholderRoleError = exports.SecurityContextReconstructionError = exports.SecurityContext = exports.PermissionSet = exports.PermissionEnum = exports.AuthorizationDecisionEnum = exports.UserCreationDomainService = exports.AggregateIdDomainService = exports.DateTimeFormattingDomainService = exports.InvalidCarbonCoordinatorAvailabilityStatusError = exports.InvalidCarbonClientAccountTypeError = exports.CarbonCoordinatorAvailabilityStatusEnum = exports.CarbonClientAccountEnum = exports.CarbonManagerPermissions = void 0;
23
- exports.CompanyServiceEntitlementValidTo = exports.CompanyServiceEntitlementValidFrom = void 0;
23
+ exports.InvalidIdentityDocumentTypeError = exports.CarbonClientIdentityDocument = exports.CarbonCoordinatorIdentityDocument = exports.CarbonManagerIdentityDocument = exports.StakeholderIdentityDocument = exports.IdentityDocument = exports.IdentityDocumentTypeEnum = exports.CompanyServiceEntitlementValidTo = exports.CompanyServiceEntitlementValidFrom = void 0;
24
24
  // ─── Entity Classes (For Application Layer) ─────────────────────────────────
25
25
  var ActivityDataSubmission_1 = require("../carbonbox/activity-data-collection/activity-data-submissions/domain/entity/ActivityDataSubmission");
26
26
  Object.defineProperty(exports, "ActivityDataSubmission", { enumerable: true, get: function () { return ActivityDataSubmission_1.ActivityDataSubmission; } });
@@ -1872,3 +1872,18 @@ var CompanyServiceEntitlementValidFrom_1 = require("../carbonbox/purchase-manage
1872
1872
  Object.defineProperty(exports, "CompanyServiceEntitlementValidFrom", { enumerable: true, get: function () { return CompanyServiceEntitlementValidFrom_1.CompanyServiceEntitlementValidFrom; } });
1873
1873
  var CompanyServiceEntitlementValidTo_1 = require("../carbonbox/purchase-management-system/service-entitlements/domain/value-objects/CompanyServiceEntitlementValidTo");
1874
1874
  Object.defineProperty(exports, "CompanyServiceEntitlementValidTo", { enumerable: true, get: function () { return CompanyServiceEntitlementValidTo_1.CompanyServiceEntitlementValidTo; } });
1875
+ // ─── USR-020: Identity Document (persona natural) — hermano de TaxIdentification ──
1876
+ var IdentityDocumentType_1 = require("../carbonbox/shared/domain/enums/IdentityDocumentType");
1877
+ Object.defineProperty(exports, "IdentityDocumentTypeEnum", { enumerable: true, get: function () { return IdentityDocumentType_1.IdentityDocumentType; } });
1878
+ var IdentityDocument_1 = require("../carbonbox/shared/domain/value-objects/IdentityDocument");
1879
+ Object.defineProperty(exports, "IdentityDocument", { enumerable: true, get: function () { return IdentityDocument_1.IdentityDocument; } });
1880
+ var StakeholderIdentityDocument_1 = require("../carbonbox/stakeholders/shared/domain/value-objects/StakeholderIdentityDocument");
1881
+ Object.defineProperty(exports, "StakeholderIdentityDocument", { enumerable: true, get: function () { return StakeholderIdentityDocument_1.StakeholderIdentityDocument; } });
1882
+ var CarbonManagerIdentityDocument_1 = require("../carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerIdentityDocument");
1883
+ Object.defineProperty(exports, "CarbonManagerIdentityDocument", { enumerable: true, get: function () { return CarbonManagerIdentityDocument_1.CarbonManagerIdentityDocument; } });
1884
+ var CarbonCoordinatorIdentityDocument_1 = require("../carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorIdentityDocument");
1885
+ Object.defineProperty(exports, "CarbonCoordinatorIdentityDocument", { enumerable: true, get: function () { return CarbonCoordinatorIdentityDocument_1.CarbonCoordinatorIdentityDocument; } });
1886
+ var CarbonClientIdentityDocument_1 = require("../carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientIdentityDocument");
1887
+ Object.defineProperty(exports, "CarbonClientIdentityDocument", { enumerable: true, get: function () { return CarbonClientIdentityDocument_1.CarbonClientIdentityDocument; } });
1888
+ var InvalidIdentityDocumentTypeError_1 = require("../carbonbox/shared/domain/exceptions/InvalidIdentityDocumentTypeError");
1889
+ Object.defineProperty(exports, "InvalidIdentityDocumentTypeError", { enumerable: true, get: function () { return InvalidIdentityDocumentTypeError_1.InvalidIdentityDocumentTypeError; } });
@@ -0,0 +1,7 @@
1
+ export declare enum IdentityDocumentType {
2
+ CC = "CC",// Cédula de Ciudadanía (Colombia)
3
+ CE = "CE",// Cédula de Extranjería (Colombia)
4
+ PASSPORT = "PASSPORT",// Pasaporte (documento internacional de persona natural)
5
+ DNI = "DNI"
6
+ }
7
+ //# sourceMappingURL=IdentityDocumentType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdentityDocumentType.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/enums/IdentityDocumentType.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB;IAC9B,EAAE,OAAO,CAAE,kCAAkC;IAC7C,EAAE,OAAO,CAAE,mCAAmC;IAC9C,QAAQ,aAAa,CAAE,yDAAyD;IAChF,GAAG,QAAQ;CACZ"}
@@ -0,0 +1,7 @@
1
+ import { RootError } from './RootError';
2
+ export declare class InvalidIdentityDocumentTypeError extends RootError {
3
+ private constructor();
4
+ static create(invalidType: string, validTypes: string[]): InvalidIdentityDocumentTypeError;
5
+ logError(): string;
6
+ }
7
+ //# sourceMappingURL=InvalidIdentityDocumentTypeError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvalidIdentityDocumentTypeError.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/exceptions/InvalidIdentityDocumentTypeError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,gCAAiC,SAAQ,SAAS;IAC7D,OAAO;WAMgB,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,gCAAgC;IAI1F,QAAQ,IAAI,MAAM;CAGnC"}
@@ -0,0 +1,9 @@
1
+ export type IdentityDocument = {
2
+ type: string;
3
+ number: string;
4
+ country: string;
5
+ issuedBy: string | null;
6
+ validFrom: string | null;
7
+ validUntil: string | null;
8
+ };
9
+ //# sourceMappingURL=IdentityDocument.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdentityDocument.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/IdentityDocument.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC"}
@@ -0,0 +1,9 @@
1
+ export type IdentityDocumentPrimitives = {
2
+ type: string;
3
+ number: string;
4
+ country: string;
5
+ issuedBy: string | null;
6
+ validFrom: string | null;
7
+ validUntil: string | null;
8
+ };
9
+ //# sourceMappingURL=IdentityDocumentPrimitives.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdentityDocumentPrimitives.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/IdentityDocumentPrimitives.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC"}
@@ -0,0 +1,132 @@
1
+ import { ObjectValueObject } from './ObjectValueObject';
2
+ import { IdentityDocumentPrimitives } from '../types/IdentityDocumentPrimitives';
3
+ import { IdentityDocument as TIdentityDocument } from '../types/IdentityDocument';
4
+ import { CountryCode } from '../enums/CountryCode';
5
+ import { IdentityDocumentType as IdentityDocumentTypeEnum } from '../enums/IdentityDocumentType';
6
+ export declare abstract class IdentityDocument extends ObjectValueObject<IdentityDocumentPrimitives> {
7
+ #private;
8
+ protected static readonly DEFAULT_PROPERTY_NAME = "identityDocument";
9
+ protected static readonly VALID_TYPES: IdentityDocumentTypeEnum[];
10
+ protected static readonly VALID_COUNTRY_CODES: CountryCode[];
11
+ protected static readonly MIN_NUMBER_LENGTH = 3;
12
+ protected static readonly MAX_NUMBER_LENGTH = 20;
13
+ /**
14
+ * Constructor protegido para que solo clases hijas puedan instanciar.
15
+ * Aplica todas las validaciones de dominio al momento de construcción.
16
+ */
17
+ protected constructor(value: TIdentityDocument, skipDomainValidation: boolean, propertyName?: string);
18
+ /**
19
+ * Validación estática para reutilización en factory methods y constructores.
20
+ */
21
+ protected static validateIdentityDocument(value: TIdentityDocument, propertyName: string): void;
22
+ /**
23
+ * Valida que el objeto tenga la estructura correcta.
24
+ */
25
+ protected static guardAgainstInvalidType(value: any, propertyName: string): void;
26
+ /**
27
+ * Valida que el tipo de documento de identidad sea válido.
28
+ */
29
+ protected static guardAgainstInvalidDocumentType(type: string): void;
30
+ /**
31
+ * Valida el número del documento de identidad (no vacío y dentro de los límites de longitud).
32
+ */
33
+ protected static guardAgainstInvalidNumber(number: string): void;
34
+ /**
35
+ * Valida el código de país según los valores permitidos en el enum CountryCode.
36
+ */
37
+ protected static guardAgainstInvalidCountryCode(country: string): void;
38
+ /**
39
+ * Valida la entidad emisora si está presente.
40
+ */
41
+ protected static guardAgainstInvalidIssuedBy(issuedBy: string | null): void;
42
+ /**
43
+ * Valida la fecha de inicio de validez si está presente.
44
+ */
45
+ protected static guardAgainstInvalidValidFrom(validFrom: string | null): void;
46
+ /**
47
+ * Valida la fecha de fin de validez si está presente.
48
+ */
49
+ protected static guardAgainstInvalidValidUntil(validUntil: string | null): void;
50
+ /**
51
+ * Valida que el rango de fechas sea consistente.
52
+ */
53
+ protected static guardAgainstInvalidDateRange(validFrom: string | null, validUntil: string | null): void;
54
+ /**
55
+ * Método auxiliar para parsear fechas en formato DD/MM/YYYY.
56
+ */
57
+ protected static parseDate(dateString: string): Date;
58
+ /**
59
+ * Tipo de documento de identidad (CC, CE, PASSPORT, DNI).
60
+ */
61
+ get type(): string;
62
+ /**
63
+ * Número del documento de identidad.
64
+ */
65
+ get number(): string;
66
+ /**
67
+ * País de emisión del documento.
68
+ */
69
+ get country(): string;
70
+ /**
71
+ * Entidad emisora del documento (opcional).
72
+ */
73
+ get issuedBy(): string | null;
74
+ /**
75
+ * Fecha de inicio de validez (opcional).
76
+ */
77
+ get validFrom(): string | null;
78
+ /**
79
+ * Fecha de fin de validez (opcional).
80
+ */
81
+ get validUntil(): string | null;
82
+ /**
83
+ * Verifica si el documento de identidad tiene entidad emisora.
84
+ */
85
+ hasIssuedBy(): boolean;
86
+ /**
87
+ * Verifica si el documento de identidad tiene fechas de validez.
88
+ */
89
+ hasValidityPeriod(): boolean;
90
+ /**
91
+ * Verifica si el documento de identidad está actualmente válido.
92
+ */
93
+ isCurrentlyValid(): boolean;
94
+ /**
95
+ * Verifica si el documento de identidad será válido en una fecha específica.
96
+ */
97
+ isValidOnDate(date: Date): boolean;
98
+ /**
99
+ * Verifica si pertenece a un país específico.
100
+ */
101
+ belongsToCountry(countryCode: string): boolean;
102
+ /**
103
+ * Verifica si es del mismo tipo que otro documento de identidad.
104
+ */
105
+ isSameType(other: IdentityDocument): boolean;
106
+ /**
107
+ * Compara la igualdad semántica con otro objeto IdentityDocument.
108
+ */
109
+ equals(other: IdentityDocument): boolean;
110
+ /**
111
+ * Compara si dos documentos de identidad representan el mismo número
112
+ * independientemente de fechas de validez y entidad emisora.
113
+ */
114
+ hasSameIdentifier(other: IdentityDocument): boolean;
115
+ /**
116
+ * Convierte a representación primitiva para persistencia.
117
+ */
118
+ toPrimitives(): IdentityDocumentPrimitives;
119
+ /**
120
+ * Representación como string.
121
+ */
122
+ toString(): string;
123
+ /**
124
+ * Representación JSON para serialización.
125
+ */
126
+ toJSON(): IdentityDocumentPrimitives;
127
+ /**
128
+ * Método de utilidad para validar completamente un IdentityDocument antes de crear la instancia.
129
+ */
130
+ static validateCompletely(value: TIdentityDocument, propertyName?: string): void;
131
+ }
132
+ //# sourceMappingURL=IdentityDocument.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdentityDocument.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/IdentityDocument.ts"],"names":[],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"CarbonClient.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-clients/domain/entity/CarbonClient.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAExE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,mCAAmC,EAAE,MAAM,8CAA8C,CAAC;AACnG,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAMnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAErF,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAG7F,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AAEnG,OAAO,EAAE,mCAAmC,EAAE,MAAM,sDAAsD,CAAC;AAG3G,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,qBAAa,YACX,SAAQ,WAAW,CAAC,sBAAsB,CAC1C,YAAW,aAAa;;IAqBxB,OAAO;WA6EgB,MAAM,CAAC,KAAK,EAAE,iBAAiB,GAAG,YAAY;WAI9C,cAAc,CAAC,UAAU,EAAE,sBAAsB,GAAG,YAAY;WA4BzE,wBAAwB,CAAC,KAAK,EAAE,mCAAmC,GAAG,YAAY;IAqDhG,IAAoB,YAAY,IAAI,sBAAsB,CAyBzD;IAED,IAAW,iBAAiB,IAAI,6BAA6B,CAE5D;IAED,IAAW,YAAY,IAAI,wBAAwB,CAElD;IAED,IAAW,gBAAgB,IAAI,4BAA4B,CAE1D;IAED,IAAW,eAAe,IAAI,2BAA2B,CAExD;IAED,IAAW,mBAAmB,IAAI,+BAA+B,CAEhE;IAED,IAAW,mBAAmB,IAAI,+BAA+B,CAEhE;IAED,IAAW,UAAU,IAAI,sBAAsB,CAE9C;IAED,IAAW,IAAI,IAAI,gBAAgB,CAElC;IAED,IAAW,WAAW,IAAI,uBAAuB,CAEhD;IAED,IAAW,uBAAuB,IAAI,mCAAmC,CAExE;CACF"}
1
+ {"version":3,"file":"CarbonClient.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-clients/domain/entity/CarbonClient.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAExE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,mCAAmC,EAAE,MAAM,8CAA8C,CAAC;AACnG,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAMnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAErF,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAG7F,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AAEnG,OAAO,EAAE,mCAAmC,EAAE,MAAM,sDAAsD,CAAC;AAI3G,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,qBAAa,YACX,SAAQ,WAAW,CAAC,sBAAsB,CAC1C,YAAW,aAAa;;IAqBxB,OAAO;WAqFgB,MAAM,CAAC,KAAK,EAAE,iBAAiB,GAAG,YAAY;WAI9C,cAAc,CAAC,UAAU,EAAE,sBAAsB,GAAG,YAAY;WA6BzE,wBAAwB,CAAC,KAAK,EAAE,mCAAmC,GAAG,YAAY;IA2DhG,IAAoB,YAAY,IAAI,sBAAsB,CA0BzD;IAED,IAAW,iBAAiB,IAAI,6BAA6B,CAE5D;IAED,IAAW,YAAY,IAAI,wBAAwB,CAElD;IAED,IAAW,gBAAgB,IAAI,4BAA4B,CAE1D;IAED,IAAW,eAAe,IAAI,2BAA2B,CAExD;IAED,IAAW,mBAAmB,IAAI,+BAA+B,CAEhE;IAED,IAAW,mBAAmB,IAAI,+BAA+B,CAEhE;IAED,IAAW,UAAU,IAAI,sBAAsB,CAE9C;IAED,IAAW,IAAI,IAAI,gBAAgB,CAElC;IAED,IAAW,WAAW,IAAI,uBAAuB,CAEhD;IAED,IAAW,uBAAuB,IAAI,mCAAmC,CAExE;CACF"}
@@ -0,0 +1,10 @@
1
+ import { IdentityDocument } from '../../../../shared/domain/types/IdentityDocument';
2
+ import { IdentityDocumentPrimitives } from '../../../../shared/domain/types/IdentityDocumentPrimitives';
3
+ import { StakeholderIdentityDocument } from '../../../shared/domain/value-objects/StakeholderIdentityDocument';
4
+ export declare class CarbonClientIdentityDocument extends StakeholderIdentityDocument {
5
+ private constructor();
6
+ static create(value: IdentityDocument): CarbonClientIdentityDocument;
7
+ static fromPrimitives(primitives: IdentityDocumentPrimitives): CarbonClientIdentityDocument;
8
+ toPrimitives(): IdentityDocumentPrimitives;
9
+ }
10
+ //# sourceMappingURL=CarbonClientIdentityDocument.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarbonClientIdentityDocument.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientIdentityDocument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,4DAA4D,CAAC;AACxG,OAAO,EAAE,2BAA2B,EAAE,MAAM,kEAAkE,CAAC;AAE/G,qBAAa,4BAA6B,SAAQ,2BAA2B;IAC3E,OAAO;WAIgB,MAAM,CAAC,KAAK,EAAE,gBAAgB,GAAG,4BAA4B;WAI7D,cAAc,CAAC,UAAU,EAAE,0BAA0B,GAAG,4BAA4B;IAa3F,YAAY,IAAI,0BAA0B;CAG3D"}
@@ -1 +1 @@
1
- {"version":3,"file":"CarbonCoordinator.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-coordinators/domain/entity/CarbonCoordinator.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAExE,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,wCAAwC,EAAE,MAAM,mDAAmD,CAAC;AAC7G,OAAO,EAAE,sCAAsC,EAAE,MAAM,yDAAyD,CAAC;AACjH,OAAO,EAAE,mCAAmC,EAAE,MAAM,sDAAsD,CAAC;AAK3G,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,OAAO,EAAE,qCAAqC,EAAE,MAAM,wDAAwD,CAAC;AAG/G,OAAO,EAAE,qCAAqC,EAAE,MAAM,wDAAwD,CAAC;AAI/G,OAAO,EAAE,sCAAsC,EAAE,MAAM,yDAAyD,CAAC;AACjH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,iBACX,SAAQ,WAAW,CAAC,2BAA2B,CAC/C,YAAW,kBAAkB;;IAa7B,OAAO;WAqEgB,MAAM,CAAC,KAAK,EAAE,sBAAsB,GAAG,iBAAiB;WAIxD,cAAc,CAAC,UAAU,EAAE,2BAA2B,GAAG,iBAAiB;WAwBnF,wBAAwB,CAAC,KAAK,EAAE,wCAAwC,GAAG,iBAAiB;IA6C1G,IAAoB,YAAY,IAAI,2BAA2B,CAqB9D;IAED,IAAW,kBAAkB,IAAI,mCAAmC,CAEnE;IAED,IAAW,qBAAqB,IAAI,sCAAsC,CAEzE;IAED,IAAW,MAAM,IAAI,uBAAuB,CAE3C;IAED,IAAW,qBAAqB,IAAI,sCAAsC,CAEzE;IAED,IAAW,oBAAoB,IAAI,qCAAqC,CAEvE;IAED,IAAW,oBAAoB,IAAI,qCAAqC,CAEvE;CACF"}
1
+ {"version":3,"file":"CarbonCoordinator.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-coordinators/domain/entity/CarbonCoordinator.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAExE,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,wCAAwC,EAAE,MAAM,mDAAmD,CAAC;AAC7G,OAAO,EAAE,sCAAsC,EAAE,MAAM,yDAAyD,CAAC;AACjH,OAAO,EAAE,mCAAmC,EAAE,MAAM,sDAAsD,CAAC;AAK3G,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,OAAO,EAAE,qCAAqC,EAAE,MAAM,wDAAwD,CAAC;AAG/G,OAAO,EAAE,qCAAqC,EAAE,MAAM,wDAAwD,CAAC;AAK/G,OAAO,EAAE,sCAAsC,EAAE,MAAM,yDAAyD,CAAC;AACjH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,iBACX,SAAQ,WAAW,CAAC,2BAA2B,CAC/C,YAAW,kBAAkB;;IAa7B,OAAO;WA6EgB,MAAM,CAAC,KAAK,EAAE,sBAAsB,GAAG,iBAAiB;WAIxD,cAAc,CAAC,UAAU,EAAE,2BAA2B,GAAG,iBAAiB;WAyBnF,wBAAwB,CAAC,KAAK,EAAE,wCAAwC,GAAG,iBAAiB;IAmD1G,IAAoB,YAAY,IAAI,2BAA2B,CAsB9D;IAED,IAAW,kBAAkB,IAAI,mCAAmC,CAEnE;IAED,IAAW,qBAAqB,IAAI,sCAAsC,CAEzE;IAED,IAAW,MAAM,IAAI,uBAAuB,CAE3C;IAED,IAAW,qBAAqB,IAAI,sCAAsC,CAEzE;IAED,IAAW,oBAAoB,IAAI,qCAAqC,CAEvE;IAED,IAAW,oBAAoB,IAAI,qCAAqC,CAEvE;CACF"}
@@ -0,0 +1,10 @@
1
+ import { IdentityDocument } from '../../../../shared/domain/types/IdentityDocument';
2
+ import { IdentityDocumentPrimitives } from '../../../../shared/domain/types/IdentityDocumentPrimitives';
3
+ import { StakeholderIdentityDocument } from '../../../shared/domain/value-objects/StakeholderIdentityDocument';
4
+ export declare class CarbonCoordinatorIdentityDocument extends StakeholderIdentityDocument {
5
+ private constructor();
6
+ static create(value: IdentityDocument): CarbonCoordinatorIdentityDocument;
7
+ static fromPrimitives(primitives: IdentityDocumentPrimitives): CarbonCoordinatorIdentityDocument;
8
+ toPrimitives(): IdentityDocumentPrimitives;
9
+ }
10
+ //# sourceMappingURL=CarbonCoordinatorIdentityDocument.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarbonCoordinatorIdentityDocument.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorIdentityDocument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,4DAA4D,CAAC;AACxG,OAAO,EAAE,2BAA2B,EAAE,MAAM,kEAAkE,CAAC;AAE/G,qBAAa,iCAAkC,SAAQ,2BAA2B;IAChF,OAAO;WAIgB,MAAM,CAAC,KAAK,EAAE,gBAAgB,GAAG,iCAAiC;WAIlE,cAAc,CAAC,UAAU,EAAE,0BAA0B,GAAG,iCAAiC;IAahG,YAAY,IAAI,0BAA0B;CAG3D"}
@@ -1 +1 @@
1
- {"version":3,"file":"CarbonHost.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-host/domain/entity/CarbonHost.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,iCAAiC,EAAE,MAAM,4CAA4C,CAAC;AAW/F,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,qBAAa,UACX,SAAQ,WAAW,CAAC,oBAAoB,CACxC,YAAW,WAAW;IACtB,OAAO;WAmDgB,MAAM,CAAC,KAAK,EAAE,eAAe,GAAG,UAAU;WAI1C,cAAc,CAAC,UAAU,EAAE,oBAAoB,GAAG,UAAU;WAkBrE,wBAAwB,CAAC,KAAK,EAAE,iCAAiC,GAAG,UAAU;IAiC5F,IAAoB,YAAY,IAAI,oBAAoB,CAevD;CACF"}
1
+ {"version":3,"file":"CarbonHost.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-host/domain/entity/CarbonHost.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,iCAAiC,EAAE,MAAM,4CAA4C,CAAC;AAW/F,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,qBAAa,UACX,SAAQ,WAAW,CAAC,oBAAoB,CACxC,YAAW,WAAW;IACtB,OAAO;WAwDgB,MAAM,CAAC,KAAK,EAAE,eAAe,GAAG,UAAU;WAI1C,cAAc,CAAC,UAAU,EAAE,oBAAoB,GAAG,UAAU;WAmBrE,wBAAwB,CAAC,KAAK,EAAE,iCAAiC,GAAG,UAAU;IAoC5F,IAAoB,YAAY,IAAI,oBAAoB,CAgBvD;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"CarbonManager.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-managers/domain/entity/CarbonManager.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,oCAAoC,EAAE,MAAM,+CAA+C,CAAC;AAOrG,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AAMrG,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,aACX,SAAQ,WAAW,CAAC,uBAAuB,CAC3C,YAAW,cAAc;;IAGzB,OAAO;WA2DgB,MAAM,CAAC,KAAK,EAAE,kBAAkB,GAAG,aAAa;WAIhD,cAAc,CAAC,UAAU,EAAE,uBAAuB,GAAG,aAAa;WAmB3E,wBAAwB,CAAC,KAAK,EAAE,oCAAoC,GAAG,aAAa;IAmClG,IAAoB,YAAY,IAAI,uBAAuB,CAgB1D;IAED,IAAW,mBAAmB,IAAI,gCAAgC,CAEjE;CACF"}
1
+ {"version":3,"file":"CarbonManager.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-managers/domain/entity/CarbonManager.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,oCAAoC,EAAE,MAAM,+CAA+C,CAAC;AAOrG,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AAOrG,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,aACX,SAAQ,WAAW,CAAC,uBAAuB,CAC3C,YAAW,cAAc;;IAGzB,OAAO;WAmEgB,MAAM,CAAC,KAAK,EAAE,kBAAkB,GAAG,aAAa;WAIhD,cAAc,CAAC,UAAU,EAAE,uBAAuB,GAAG,aAAa;WAoB3E,wBAAwB,CAAC,KAAK,EAAE,oCAAoC,GAAG,aAAa;IAyClG,IAAoB,YAAY,IAAI,uBAAuB,CAiB1D;IAED,IAAW,mBAAmB,IAAI,gCAAgC,CAEjE;CACF"}
@@ -0,0 +1,10 @@
1
+ import { IdentityDocument } from '../../../../shared/domain/types/IdentityDocument';
2
+ import { IdentityDocumentPrimitives } from '../../../../shared/domain/types/IdentityDocumentPrimitives';
3
+ import { StakeholderIdentityDocument } from '../../../shared/domain/value-objects/StakeholderIdentityDocument';
4
+ export declare class CarbonManagerIdentityDocument extends StakeholderIdentityDocument {
5
+ private constructor();
6
+ static create(value: IdentityDocument): CarbonManagerIdentityDocument;
7
+ static fromPrimitives(primitives: IdentityDocumentPrimitives): CarbonManagerIdentityDocument;
8
+ toPrimitives(): IdentityDocumentPrimitives;
9
+ }
10
+ //# sourceMappingURL=CarbonManagerIdentityDocument.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarbonManagerIdentityDocument.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerIdentityDocument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,4DAA4D,CAAC;AACxG,OAAO,EAAE,2BAA2B,EAAE,MAAM,kEAAkE,CAAC;AAE/G,qBAAa,6BAA8B,SAAQ,2BAA2B;IAC5E,OAAO;WAIgB,MAAM,CAAC,KAAK,EAAE,gBAAgB,GAAG,6BAA6B;WAI9D,cAAc,CAAC,UAAU,EAAE,0BAA0B,GAAG,6BAA6B;IAa5F,YAAY,IAAI,0BAA0B;CAG3D"}
@@ -1,8 +1,10 @@
1
1
  import { IUser } from '../../../../shared/domain/entities/IUser';
2
2
  import { StakeholderRoleType } from '../value-objects/StakeholderRoleType';
3
3
  import { StakeholderTaxIdentification } from '../value-objects/StakeholderTaxIdentification';
4
+ import { StakeholderIdentityDocument } from '../value-objects/StakeholderIdentityDocument';
4
5
  export interface IStakeholder extends IUser {
5
- taxIdentification: StakeholderTaxIdentification;
6
+ taxIdentification: StakeholderTaxIdentification | null;
7
+ identityDocument: StakeholderIdentityDocument | null;
6
8
  roleType: StakeholderRoleType;
7
9
  }
8
10
  //# sourceMappingURL=IStakeholder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IStakeholder.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/shared/domain/entity/IStakeholder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0CAA0C,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAE7F,MAAM,WAAW,YAAa,SAAQ,KAAK;IACzC,iBAAiB,EAAE,4BAA4B,CAAC;IAChD,QAAQ,EAAE,mBAAmB,CAAC;CAC/B"}
1
+ {"version":3,"file":"IStakeholder.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/shared/domain/entity/IStakeholder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0CAA0C,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAE3F,MAAM,WAAW,YAAa,SAAQ,KAAK;IACzC,iBAAiB,EAAE,4BAA4B,GAAG,IAAI,CAAC;IACvD,gBAAgB,EAAE,2BAA2B,GAAG,IAAI,CAAC;IACrD,QAAQ,EAAE,mBAAmB,CAAC;CAC/B"}
@@ -3,11 +3,13 @@ import { StakeholderPrimitives } from '../types/StakeholderPrimitives';
3
3
  import { StakeholderProps } from '../types/StakeholderProps';
4
4
  import { StakeholderRoleType } from '../value-objects/StakeholderRoleType';
5
5
  import { StakeholderTaxIdentification } from '../value-objects/StakeholderTaxIdentification';
6
+ import { StakeholderIdentityDocument } from '../value-objects/StakeholderIdentityDocument';
6
7
  import { IStakeholder } from './IStakeholder';
7
8
  export declare abstract class Stakeholder<T extends StakeholderPrimitives> extends User<T> implements IStakeholder {
8
9
  #private;
9
10
  protected constructor(props: StakeholderProps, skipDomainValidation: boolean);
10
- get taxIdentification(): StakeholderTaxIdentification;
11
+ get taxIdentification(): StakeholderTaxIdentification | null;
12
+ get identityDocument(): StakeholderIdentityDocument | null;
11
13
  get roleType(): StakeholderRoleType;
12
14
  }
13
15
  //# sourceMappingURL=Stakeholder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Stakeholder.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/shared/domain/entity/Stakeholder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,yCAAyC,CAAC;AAK/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAS7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAE7F,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,8BAAsB,WAAW,CAAC,CAAC,SAAS,qBAAqB,CAC/D,SAAQ,IAAI,CAAC,CAAC,CACd,YAAW,YAAY;;IAKvB,SAAS,aAAa,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,OAAO;IAqD5E,IAAW,iBAAiB,IAAI,4BAA4B,CAE3D;IAED,IAAW,QAAQ,IAAI,mBAAmB,CAEzC;CACF"}
1
+ {"version":3,"file":"Stakeholder.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/shared/domain/entity/Stakeholder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,yCAAyC,CAAC;AAK/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAS7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAE3F,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,8BAAsB,WAAW,CAAC,CAAC,SAAS,qBAAqB,CAC/D,SAAQ,IAAI,CAAC,CAAC,CACd,YAAW,YAAY;;IASvB,SAAS,aAAa,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,OAAO;IA+D5E,IAAW,iBAAiB,IAAI,4BAA4B,GAAG,IAAI,CAElE;IAED,IAAW,gBAAgB,IAAI,2BAA2B,GAAG,IAAI,CAEhE;IAED,IAAW,QAAQ,IAAI,mBAAmB,CAEzC;CACF"}
@@ -1,8 +1,10 @@
1
1
  import { StakeholderRole } from '../../../../shared/domain/enums/StakeholderRole';
2
2
  import { TaxIdentificationPrimitives } from '../../../../shared/domain/types/TaxIdentificationPrimitives';
3
+ import { IdentityDocumentPrimitives } from '../../../../shared/domain/types/IdentityDocumentPrimitives';
3
4
  import { UserPrimitives } from '../../../../shared/domain/types/UserPrimitives';
4
5
  export type StakeholderPrimitives = UserPrimitives & {
5
- taxIdentification: TaxIdentificationPrimitives;
6
+ taxIdentification: TaxIdentificationPrimitives | null;
7
+ identityDocument: IdentityDocumentPrimitives | null;
6
8
  roleType: StakeholderRole;
7
9
  };
8
10
  //# sourceMappingURL=StakeholderPrimitives.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StakeholderPrimitives.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/shared/domain/types/StakeholderPrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAClF,OAAO,EAAE,2BAA2B,EAAE,MAAM,6DAA6D,CAAC;AAC1G,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAEhF,MAAM,MAAM,qBAAqB,GAAG,cAAc,GAAG;IACnD,iBAAiB,EAAE,2BAA2B,CAAC;IAC/C,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC"}
1
+ {"version":3,"file":"StakeholderPrimitives.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/shared/domain/types/StakeholderPrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAClF,OAAO,EAAE,2BAA2B,EAAE,MAAM,6DAA6D,CAAC;AAC1G,OAAO,EAAE,0BAA0B,EAAE,MAAM,4DAA4D,CAAC;AACxG,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAEhF,MAAM,MAAM,qBAAqB,GAAG,cAAc,GAAG;IACnD,iBAAiB,EAAE,2BAA2B,GAAG,IAAI,CAAC;IACtD,gBAAgB,EAAE,0BAA0B,GAAG,IAAI,CAAC;IACpD,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC"}
@@ -1,8 +1,10 @@
1
1
  import { StakeholderRole } from '../../../../shared/domain/enums/StakeholderRole';
2
2
  import { TaxIdentification } from '../../../../shared/domain/types/TaxIdentification';
3
+ import { IdentityDocument } from '../../../../shared/domain/types/IdentityDocument';
3
4
  import { UserProps } from '../../../../shared/domain/types/UserProps';
4
5
  export type StakeholderProps = UserProps & {
5
- taxIdentification: TaxIdentification;
6
+ taxIdentification: TaxIdentification | null;
7
+ identityDocument: IdentityDocument | null;
6
8
  roleType: StakeholderRole;
7
9
  };
8
10
  //# sourceMappingURL=StakeholderProps.d.ts.map