@carbonbox/domain 0.20.1 → 0.21.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/carbonbox/shared/domain/enums/IdentityDocumentType.js +10 -0
- package/build/carbonbox/shared/domain/exceptions/InvalidIdentityDocumentTypeError.js +18 -0
- package/build/carbonbox/shared/domain/types/IdentityDocument.js +2 -0
- package/build/carbonbox/shared/domain/types/IdentityDocumentPrimitives.js +2 -0
- package/build/carbonbox/shared/domain/value-objects/CarbonClientReference.js +33 -13
- package/build/carbonbox/shared/domain/value-objects/CarbonClientReferences.js +24 -10
- package/build/carbonbox/shared/domain/value-objects/IdentityDocument.js +336 -0
- package/build/carbonbox/shared/domain/value-objects/StakeholderReference.js +25 -10
- package/build/carbonbox/shared/domain/value-objects/StakeholderReferences.js +34 -18
- package/build/carbonbox/stakeholders/carbon-clients/domain/entity/CarbonClient.js +22 -5
- package/build/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientIdentityDocument.js +27 -0
- package/build/carbonbox/stakeholders/carbon-coordinators/domain/entity/CarbonCoordinator.js +22 -5
- package/build/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorIdentityDocument.js +27 -0
- package/build/carbonbox/stakeholders/carbon-host/domain/entity/CarbonHost.js +15 -5
- package/build/carbonbox/stakeholders/carbon-managers/domain/entity/CarbonManager.js +22 -5
- package/build/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerIdentityDocument.js +27 -0
- package/build/carbonbox/stakeholders/shared/domain/entity/Stakeholder.js +21 -4
- package/build/carbonbox/stakeholders/shared/domain/value-objects/StakeholderIdentityDocument.js +47 -0
- package/build/main/index.js +16 -1
- package/build/types/carbonbox/shared/domain/enums/IdentityDocumentType.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/enums/IdentityDocumentType.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidIdentityDocumentTypeError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidIdentityDocumentTypeError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/types/CarbonClientReference.d.ts +1 -1
- package/build/types/carbonbox/shared/domain/types/CarbonClientReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/CarbonClientReferencePrimitives.d.ts +1 -1
- package/build/types/carbonbox/shared/domain/types/CarbonClientReferencePrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/IdentityDocument.d.ts +9 -0
- package/build/types/carbonbox/shared/domain/types/IdentityDocument.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/types/IdentityDocumentPrimitives.d.ts +9 -0
- package/build/types/carbonbox/shared/domain/types/IdentityDocumentPrimitives.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/types/StakeholderReference.d.ts +1 -1
- package/build/types/carbonbox/shared/domain/types/StakeholderReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/StakeholderReferencePrimitives.d.ts +1 -1
- package/build/types/carbonbox/shared/domain/types/StakeholderReferencePrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/CarbonClientReference.d.ts +3 -3
- package/build/types/carbonbox/shared/domain/value-objects/CarbonClientReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/CarbonClientReferences.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/IdentityDocument.d.ts +132 -0
- package/build/types/carbonbox/shared/domain/value-objects/IdentityDocument.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/value-objects/StakeholderReference.d.ts +4 -2
- package/build/types/carbonbox/shared/domain/value-objects/StakeholderReference.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/value-objects/StakeholderReferences.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/entity/CarbonClient.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientIdentityDocument.d.ts +10 -0
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientIdentityDocument.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/entity/CarbonCoordinator.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorIdentityDocument.d.ts +10 -0
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorIdentityDocument.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/carbon-host/domain/entity/CarbonHost.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-managers/domain/entity/CarbonManager.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerIdentityDocument.d.ts +10 -0
- package/build/types/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerIdentityDocument.d.ts.map +1 -0
- package/build/types/carbonbox/stakeholders/shared/domain/entity/IStakeholder.d.ts +3 -1
- package/build/types/carbonbox/stakeholders/shared/domain/entity/IStakeholder.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/shared/domain/entity/Stakeholder.d.ts +3 -1
- package/build/types/carbonbox/stakeholders/shared/domain/entity/Stakeholder.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPrimitives.d.ts +3 -1
- package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderProps.d.ts +3 -1
- package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderProps.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPropsWithHashedPassword.d.ts +3 -1
- package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPropsWithHashedPassword.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/shared/domain/value-objects/StakeholderIdentityDocument.d.ts +22 -0
- package/build/types/carbonbox/stakeholders/shared/domain/value-objects/StakeholderIdentityDocument.d.ts.map +1 -0
- package/build/types/main/index.d.ts +9 -0
- package/build/types/main/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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,
|
|
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,
|
|
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();
|
package/build/carbonbox/stakeholders/shared/domain/value-objects/StakeholderIdentityDocument.js
ADDED
|
@@ -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';
|
package/build/main/index.js
CHANGED
|
@@ -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
|
package/build/types/carbonbox/shared/domain/exceptions/InvalidIdentityDocumentTypeError.d.ts.map
ADDED
|
@@ -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"}
|
|
@@ -4,7 +4,7 @@ import { TaxIdentification } from './TaxIdentification';
|
|
|
4
4
|
export type CarbonClientReference = {
|
|
5
5
|
id: string;
|
|
6
6
|
displayName: string;
|
|
7
|
-
taxIdentification: TaxIdentification;
|
|
7
|
+
taxIdentification: TaxIdentification | null;
|
|
8
8
|
roleType: StakeholderRole.CARBON_CLIENT;
|
|
9
9
|
accountType: CarbonClientAccount;
|
|
10
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarbonClientReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/CarbonClientReference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uEAAuE,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"CarbonClientReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/CarbonClientReference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uEAAuE,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC5C,QAAQ,EAAE,eAAe,CAAC,aAAa,CAAC;IACxC,WAAW,EAAE,mBAAmB,CAAC;CAClC,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { TaxIdentificationPrimitives } from './TaxIdentificationPrimitives';
|
|
|
4
4
|
export type CarbonClientReferencePrimitives = {
|
|
5
5
|
id: string;
|
|
6
6
|
displayName: string;
|
|
7
|
-
taxIdentification: TaxIdentificationPrimitives;
|
|
7
|
+
taxIdentification: TaxIdentificationPrimitives | null;
|
|
8
8
|
roleType: StakeholderRole.CARBON_CLIENT;
|
|
9
9
|
accountType: CarbonClientAccount;
|
|
10
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarbonClientReferencePrimitives.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/CarbonClientReferencePrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uEAAuE,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,MAAM,MAAM,+BAA+B,GAAG;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"CarbonClientReferencePrimitives.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/CarbonClientReferencePrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uEAAuE,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,MAAM,MAAM,+BAA+B,GAAG;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,2BAA2B,GAAG,IAAI,CAAC;IACtD,QAAQ,EAAE,eAAe,CAAC,aAAa,CAAC;IACxC,WAAW,EAAE,mBAAmB,CAAC;CAClC,CAAC"}
|
|
@@ -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 @@
|
|
|
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"}
|
|
@@ -3,7 +3,7 @@ import { TaxIdentification } from './TaxIdentification';
|
|
|
3
3
|
export type StakeholderReference = {
|
|
4
4
|
id: string;
|
|
5
5
|
displayName: string;
|
|
6
|
-
taxIdentification: TaxIdentification;
|
|
6
|
+
taxIdentification: TaxIdentification | null;
|
|
7
7
|
roleType: StakeholderRole;
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=StakeholderReference.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StakeholderReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/StakeholderReference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"StakeholderReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/StakeholderReference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC5C,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { TaxIdentificationPrimitives } from './TaxIdentificationPrimitives';
|
|
|
3
3
|
export type StakeholderReferencePrimitives = {
|
|
4
4
|
id: string;
|
|
5
5
|
displayName: string;
|
|
6
|
-
taxIdentification: TaxIdentificationPrimitives;
|
|
6
|
+
taxIdentification: TaxIdentificationPrimitives | null;
|
|
7
7
|
roleType: StakeholderRole;
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=StakeholderReferencePrimitives.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StakeholderReferencePrimitives.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/StakeholderReferencePrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,MAAM,MAAM,8BAA8B,GAAG;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"StakeholderReferencePrimitives.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/StakeholderReferencePrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,MAAM,MAAM,8BAA8B,GAAG;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,2BAA2B,GAAG,IAAI,CAAC;IACtD,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC"}
|
|
@@ -76,7 +76,7 @@ export declare abstract class CarbonClientReference extends ObjectValueObject<Ca
|
|
|
76
76
|
/**
|
|
77
77
|
* Identificación tributaria del cliente de carbono.
|
|
78
78
|
*/
|
|
79
|
-
get taxIdentification(): TaxIdentification;
|
|
79
|
+
get taxIdentification(): TaxIdentification | null;
|
|
80
80
|
/**
|
|
81
81
|
* Tipo de rol del cliente de carbono (siempre CARBON_CLIENT).
|
|
82
82
|
*/
|
|
@@ -148,7 +148,7 @@ export declare abstract class CarbonClientReference extends ObjectValueObject<Ca
|
|
|
148
148
|
/**
|
|
149
149
|
* Compara si dos identificaciones tributarias son iguales.
|
|
150
150
|
*/
|
|
151
|
-
protected taxIdentificationsAreEqual(other: TaxIdentification): boolean;
|
|
151
|
+
protected taxIdentificationsAreEqual(other: TaxIdentification | null): boolean;
|
|
152
152
|
/**
|
|
153
153
|
* Compara si dos clientes representan la misma entidad
|
|
154
154
|
* independientemente del nombre.
|
|
@@ -157,7 +157,7 @@ export declare abstract class CarbonClientReference extends ObjectValueObject<Ca
|
|
|
157
157
|
/**
|
|
158
158
|
* Compara si dos identificaciones tributarias representan el mismo identificador.
|
|
159
159
|
*/
|
|
160
|
-
protected hasSameIdentifier(other: TaxIdentification): boolean;
|
|
160
|
+
protected hasSameIdentifier(other: TaxIdentification | null): boolean;
|
|
161
161
|
/**
|
|
162
162
|
* Genera un hash code para usar en colecciones.
|
|
163
163
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarbonClientReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/CarbonClientReference.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAC3F,OAAO,EAAE,qBAAqB,IAAI,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uEAAuE,CAAC;AAE5G,8BAAsB,qBAAsB,SAAQ,iBAAiB,CAAC,+BAA+B,CAAC;;IACpG,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,2BAA2B;IAE1E,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,iCAAiC;
|
|
1
|
+
{"version":3,"file":"CarbonClientReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/CarbonClientReference.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAC3F,OAAO,EAAE,qBAAqB,IAAI,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uEAAuE,CAAC;AAE5G,8BAAsB,qBAAsB,SAAQ,iBAAiB,CAAC,+BAA+B,CAAC;;IACpG,SAAS,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,CAAC,0BAA0B,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,GAAG,OAAO;IAe9E;;;OAGG;IACI,eAAe,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO;IAQ7D;;OAEG;IACH,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,GAAG,OAAO;IAYrE;;OAEG;IACI,QAAQ,IAAI,MAAM;IAQzB;;OAEG;IACa,YAAY,IAAI,+BAA+B;IAU/D;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACI,MAAM,IAAI,+BAA+B;IAIzC,OAAO,IAAI,sBAAsB;IAUxC;;OAEG;WACW,kBAAkB,CAAC,KAAK,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;CAG5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarbonClientReferences.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/CarbonClientReferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAC3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AAEvF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,8BAAsB,sBAAuB,SAAQ,WAAW,CAAC,+BAA+B,EAAE,CAAC;;IACjG,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,4BAA4B;IAE3E,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,EAAE,6BAA6B,CAEtE;IAMF;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,qBAAqB,EAAE,EAC9B,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAAqD,EACnE,OAAO,GAAE,6BAAsE;IAoBjF;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,wBAAwB,CACvC,KAAK,EAAE,qBAAqB,EAAE,EAC9B,OAAO,EAAE,6BAA6B,EACtC,YAAY,EAAE,MAAM,GACnB,IAAI;IAUP;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,4BAA4B,CAAC,KAAK,EAAE,qBAAqB,EAAE,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAMzG;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,6BAA6B,CAC5C,KAAK,EAAE,qBAAqB,EAAE,EAC9B,OAAO,EAAE,6BAA6B,EACtC,YAAY,EAAE,MAAM,GACnB,IAAI;IAUP;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,6CAA6C,CAAC,KAAK,EAAE,qBAAqB,EAAE,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"CarbonClientReferences.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/CarbonClientReferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAC3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AAEvF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,8BAAsB,sBAAuB,SAAQ,WAAW,CAAC,+BAA+B,EAAE,CAAC;;IACjG,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,4BAA4B;IAE3E,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,EAAE,6BAA6B,CAEtE;IAMF;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,qBAAqB,EAAE,EAC9B,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAAq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BAAwB,CAAC,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO;IAU3G;;OAEG;IACH,SAAS,CAAC,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO;IAenE;;OAEG;IACI,QAAQ,IAAI,MAAM;IAczB;;OAEG;IACa,YAAY,IAAI,+BAA+B,EAAE;IAUjE;;OAEG;IACI,MAAM,IAAI,+BAA+B,EAAE;IAIlD;;OAEG;WACW,uBAAuB,CACnC,KAAK,EAAE,qBAAqB,EAAE,EAC9B,OAAO,GAAE,6BAAsE,GAC9E,OAAO;CASX"}
|
|
@@ -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":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,gBAAgB,IAAI,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGlF,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,oBAAoB,IAAI,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEjG,8BAAsB,gBAAiB,SAAQ,iBAAiB,CAAC,0BAA0B,CAAC;;IAC1F,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,sBAAsB;IAGrE,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,6BAA2C;IAGhF,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,gBAA8B;IAG3E,SAAS,CAAC,MAAM,C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,IAAW,IAAI,IAAI,MAAM,CAExB;IAED;;OAEG;IACH,IAAW,MAAM,IAAI,MAAM,CAE1B;IAED;;OAEG;IACH,IAAW,OAAO,IAAI,MAAM,CAE3B;IAED;;OAEG;IACH,IAAW,QAAQ,IAAI,MAAM,GAAG,IAAI,CAEnC;IAED;;OAEG;IACH,IAAW,SAAS,IAAI,MAAM,GAAG,IAAI,CAEpC;IAED;;OAEG;IACH,IAAW,UAAU,IAAI,MAAM,GAAG,IAAI,CAErC;IAED;;OAEG;IACI,WAAW,IAAI,OAAO;IAI7B;;OAEG;IACI,iBAAiB,IAAI,OAAO;IAInC;;OAEG;IACI,gBAAgB,IAAI,OAAO;IAqBlC;;OAEG;IACI,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAoBzC;;OAEG;IACI,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO;IAIrD;;OAEG;IACI,UAAU,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO;IAInD;;OAEG;IACI,MAAM,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO;IAe/C;;;OAGG;IACI,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO;IAY1D;;OAEG;IACa,YAAY,IAAI,0BAA0B;IAW1D;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACI,MAAM,IAAI,0BAA0B;IAI3C;;OAEG;WACW,kBAAkB,CAC9B,KAAK,EAAE,iBAAiB,EACxB,YAAY,GAAE,MAAmC,GAChD,IAAI;CAGR"}
|
|
@@ -61,7 +61,7 @@ export declare abstract class StakeholderReference extends ObjectValueObject<Sta
|
|
|
61
61
|
/**
|
|
62
62
|
* Identificación tributaria del stakeholder.
|
|
63
63
|
*/
|
|
64
|
-
get taxIdentification(): TaxIdentification;
|
|
64
|
+
get taxIdentification(): TaxIdentification | null;
|
|
65
65
|
/**
|
|
66
66
|
* Tipo de rol del stakeholder.
|
|
67
67
|
*/
|
|
@@ -130,8 +130,10 @@ export declare abstract class StakeholderReference extends ObjectValueObject<Sta
|
|
|
130
130
|
hasSameIdentity(other: StakeholderReference): boolean;
|
|
131
131
|
/**
|
|
132
132
|
* Compara si dos identificaciones tributarias representan el mismo identificador.
|
|
133
|
+
* Si alguna referencia no tiene identificación tributaria (persona natural), no
|
|
134
|
+
* se las considera el mismo identificador por esta vía.
|
|
133
135
|
*/
|
|
134
|
-
protected hasSameIdentifier(other: TaxIdentification): boolean;
|
|
136
|
+
protected hasSameIdentifier(other: TaxIdentification | null): boolean;
|
|
135
137
|
/**
|
|
136
138
|
* Compara si dos stakeholders tienen el mismo rol.
|
|
137
139
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StakeholderReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/StakeholderReference.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,oBAAoB,IAAI,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC9F,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAG3D,8BAAsB,oBAAqB,SAAQ,iBAAiB,CAAC,8BAA8B,CAAC;;IAClG,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,0BAA0B;IAGzE,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,oBAAkC;
|
|
1
|
+
{"version":3,"file":"StakeholderReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/StakeholderReference.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF,O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AAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,GAAG,OAAO;IAYrE;;OAEG;IACI,WAAW,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO;IAQxD;;OAEG;IACI,QAAQ,IAAI,MAAM;IAQzB;;OAEG;IACa,YAAY,IAAI,8BAA8B;IAS9D;;OAEG;IACI,QAAQ,IAAI,MAAM;IAIzB;;OAEG;IACI,MAAM,IAAI,8BAA8B;IAI/C;;OAEG;WACW,kBAAkB,CAC9B,KAAK,EAAE,qBAAqB,EAC5B,YAAY,GAAE,MAAmC,GAChD,IAAI;CAGR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StakeholderReferences.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/StakeholderReferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAErF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,8BAAsB,qBAAsB,SAAQ,WAAW,CAAC,8BAA8B,EAAE,CAAC;;IAC/F,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,2BAA2B;IAE1E,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,EAAE,4BAA4B,CAErE;IAMF;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,oBAAoB,EAAE,EAC7B,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAAoD,EAClE,OAAO,GAAE,4BAAoE;IAoB/E;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,6BAA6B,CAC5C,KAAK,EAAE,oBAAoB,EAAE,EAC7B,OAAO,EAAE,4BAA4B,EACrC,YAAY,EAAE,MAAM,GACnB,IAAI;IAWP;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,4BAA4B,CAAC,KAAK,EAAE,oBAAoB,EAAE,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAMxG;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,6BAA6B,CAC5C,KAAK,EAAE,oBAAoB,EAAE,EAC7B,OAAO,EAAE,4BAA4B,EACrC,YAAY,EAAE,MAAM,GACnB,IAAI;IAUP;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,mCAAmC,CAAC,KAAK,EAAE,oBAAoB,EAAE,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAa/G;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,kDAAkD,CAAC,KAAK,EAAE,oBAAoB,EAAE,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"StakeholderReferences.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/StakeholderReferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAErF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,8BAAsB,qBAAsB,SAAQ,WAAW,CAAC,8BAA8B,EAAE,CAAC;;IAC/F,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,2BAA2B;IAE1E,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,EAAE,4BAA4B,CAErE;IAMF;;;OAGG;IACH,SAAS,aACP,KAAK,EAAE,oBAAoB,EAAE,EAC7B,oBAAoB,EAAE,OAAO,EAC7B,YAAY,GAAE,MAAoD,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,YAAY,IAAI,8BAA8B,EAAE;IAkBhE;;OAEG;IACI,MAAM,IAAI,8BAA8B,EAAE;IAIjD;;OAEG;WACW,4BAA4B,CACxC,KAAK,EAAE,oBAAoB,EAAE,EAC7B,OAAO,GAAE,4BAAoE,GAC5E,OAAO;CASX"}
|
package/build/types/carbonbox/stakeholders/carbon-clients/domain/entity/CarbonClient.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarbonClient.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-clients/domain/entity/CarbonClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CarbonClient.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-clients/domain/entity/CarbonClient.ts"],"names":[],"mappings":"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":"
|
|
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;
|
|
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"}
|
package/build/types/carbonbox/stakeholders/carbon-managers/domain/entity/CarbonManager.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarbonManager.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-managers/domain/entity/CarbonManager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CarbonManager.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/stakeholders/carbon-managers/domain/entity/CarbonManager.ts"],"names":[],"mappings":"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"}
|