@carbonbox/domain 0.0.6 → 0.0.9
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/services/additional/domain/Additional.js +82 -0
- package/build/carbonbox/services/additional/domain/IAdditionalPrimitives.js +2 -0
- package/build/carbonbox/services/additional/domain/value-objects/CreatedAt.js +10 -0
- package/build/carbonbox/services/additional/domain/value-objects/Description.js +10 -0
- package/build/carbonbox/services/additional/domain/value-objects/Id.js +10 -0
- package/build/carbonbox/services/additional/domain/value-objects/Name.js +10 -0
- package/build/carbonbox/services/additional/domain/value-objects/PriceType.js +10 -0
- package/build/carbonbox/services/additional/domain/value-objects/PriceUnit.js +10 -0
- package/build/carbonbox/services/additional/domain/value-objects/PriceValue.js +10 -0
- package/build/carbonbox/services/additional/domain/value-objects/ServiceAdditionalType.js +13 -0
- package/build/carbonbox/services/additional/domain/value-objects/UpdatedAt.js +10 -0
- package/build/carbonbox/services/complement/domain/Complement.js +61 -0
- package/build/carbonbox/services/complement/domain/value-objects/PriceType.js +10 -0
- package/build/carbonbox/services/complement/domain/value-objects/PriceUnit.js +10 -0
- package/build/carbonbox/services/complement/domain/value-objects/PriceValue.js +10 -0
- package/build/carbonbox/services/core/domain/Core.js +60 -0
- package/build/carbonbox/services/core/domain/value-objects/PriceType.js +10 -0
- package/build/carbonbox/services/core/domain/value-objects/PriceUnit.js +10 -0
- package/build/carbonbox/services/core/domain/value-objects/PriceValue.js +10 -0
- package/build/carbonbox/services/modifier/domain/IModifierPrimitives.js +2 -0
- package/build/carbonbox/services/modifier/domain/Modifier.js +82 -0
- package/build/carbonbox/services/modifier/domain/value-objects/CreatedAt.js +10 -0
- package/build/carbonbox/services/modifier/domain/value-objects/Description.js +10 -0
- package/build/carbonbox/services/modifier/domain/value-objects/Id.js +10 -0
- package/build/carbonbox/services/modifier/domain/value-objects/Name.js +10 -0
- package/build/carbonbox/services/modifier/domain/value-objects/PriceType.js +10 -0
- package/build/carbonbox/services/modifier/domain/value-objects/PriceUnit.js +10 -0
- package/build/carbonbox/services/modifier/domain/value-objects/PriceValue.js +10 -0
- package/build/carbonbox/services/modifier/domain/value-objects/ServiceModifierType.js +13 -0
- package/build/carbonbox/services/modifier/domain/value-objects/UpdatedAt.js +10 -0
- package/build/carbonbox/services/shared/domain/Service.js +17 -17
- package/build/carbonbox/services/shared/domain/value-objects/PriceType.js +27 -0
- package/build/carbonbox/services/shared/domain/value-objects/PriceUnit.js +13 -0
- package/build/carbonbox/services/shared/domain/value-objects/PriceValue.js +13 -0
- package/build/carbonbox/users/carbonBox/coordinator/domain/Coordinator.js +150 -0
- package/build/carbonbox/users/carbonBox/coordinator/domain/repository/ICoordinatorRepository.js +2 -0
- package/build/carbonbox/users/carbonBox/coordinator/domain/value-objects/Avatar.js +3 -0
- package/build/carbonbox/users/carbonBox/coordinator/domain/value-objects/Biography.js +3 -0
- package/build/carbonbox/users/carbonBox/host/domain/repository/IHostRepository.js +2 -0
- package/build/carbonbox/users/carbonBox/host-manager/domain/HostManager.js +118 -0
- package/build/carbonbox/users/carbonBox/host-manager/domain/repository/IHostManagerRepository.js +2 -0
- package/build/carbonbox/users/carbonBox/host-manager/domain/value-objects/Avatar.js +3 -0
- package/build/carbonbox/users/carbonBox/host-manager/domain/value-objects/Biography.js +3 -0
- package/build/carbonbox/users/clients/company/domain/Company.js +150 -0
- package/build/carbonbox/users/clients/company/domain/ICompanyPrimitives.js +2 -0
- package/build/carbonbox/users/clients/company/domain/repository/ICompanyManagerRepository.js +2 -0
- package/build/carbonbox/users/clients/company/domain/repository/ICompanyRepository.js +2 -0
- package/build/carbonbox/users/clients/company/domain/value-objects/Avatar.js +13 -0
- package/build/carbonbox/users/clients/company/domain/value-objects/Biography.js +13 -0
- package/build/carbonbox/users/clients/company/domain/value-objects/CreatedAt.js +10 -0
- package/build/carbonbox/users/clients/company/domain/value-objects/CreatedByUserId.js +10 -0
- package/build/carbonbox/users/clients/company/domain/value-objects/CreatedByUserType.js +10 -0
- package/build/carbonbox/users/clients/company/domain/value-objects/Description.js +13 -0
- package/build/carbonbox/users/clients/company/domain/value-objects/Email.js +10 -0
- package/build/carbonbox/users/clients/company/domain/value-objects/Id.js +10 -0
- package/build/carbonbox/users/clients/company/domain/value-objects/OfficialName.js +14 -0
- package/build/carbonbox/users/clients/company/domain/value-objects/Password.js +10 -0
- package/build/carbonbox/users/clients/company/domain/value-objects/Phone.js +10 -0
- package/build/carbonbox/users/clients/company/domain/value-objects/Roles.js +10 -0
- package/build/carbonbox/users/clients/company/domain/value-objects/ShortName.js +14 -0
- package/build/carbonbox/users/clients/company/domain/value-objects/TaxIdentificationNumber.js +10 -0
- package/build/carbonbox/users/clients/company/domain/value-objects/UpdatedAt.js +10 -0
- package/build/carbonbox/users/clients/company/domain/value-objects/UserType.js +15 -0
- package/build/carbonbox/users/clients/company/domain/value-objects/WorkLocation.js +10 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/CompanyHost.js +126 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/CompanyHostManager.js +126 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/ICompanyHostManagerPrimitives.js +2 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/repository/ICompanyHostManagerRepository.js +2 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/repository/IHostManagerRepository.js +2 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/ActiveCustomPlanId.js +14 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/Avatar.js +13 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/Biography.js +13 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/CreatedAt.js +10 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/Email.js +10 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/Id.js +10 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/OfficialName.js +13 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/Password.js +10 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/Phone.js +10 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/Roles.js +10 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/TaxIdentificationNumber.js +10 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/UpdatedAt.js +10 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/UserType.js +15 -0
- package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/WorkLocation.js +10 -0
- package/build/carbonbox/users/shared/domain/AnySystemUserType.js +1 -0
- package/build/main/index.js +16 -1
- package/build/types/carbonbox/services/additional/domain/Additional.d.ts +23 -0
- package/build/types/carbonbox/services/additional/domain/Additional.d.ts.map +1 -0
- package/build/types/carbonbox/services/additional/domain/IAdditionalPrimitives.d.ts +5 -0
- package/build/types/carbonbox/services/additional/domain/IAdditionalPrimitives.d.ts.map +1 -0
- package/build/types/carbonbox/services/additional/domain/value-objects/CreatedAt.d.ts +5 -0
- package/build/types/carbonbox/services/additional/domain/value-objects/CreatedAt.d.ts.map +1 -0
- package/build/types/carbonbox/services/additional/domain/value-objects/Description.d.ts +5 -0
- package/build/types/carbonbox/services/additional/domain/value-objects/Description.d.ts.map +1 -0
- package/build/types/carbonbox/services/additional/domain/value-objects/Id.d.ts +5 -0
- package/build/types/carbonbox/services/additional/domain/value-objects/Id.d.ts.map +1 -0
- package/build/types/carbonbox/services/additional/domain/value-objects/Name.d.ts +5 -0
- package/build/types/carbonbox/services/additional/domain/value-objects/Name.d.ts.map +1 -0
- package/build/types/carbonbox/services/additional/domain/value-objects/PriceType.d.ts +5 -0
- package/build/types/carbonbox/services/additional/domain/value-objects/PriceType.d.ts.map +1 -0
- package/build/types/carbonbox/services/additional/domain/value-objects/PriceUnit.d.ts +5 -0
- package/build/types/carbonbox/services/additional/domain/value-objects/PriceUnit.d.ts.map +1 -0
- package/build/types/carbonbox/services/additional/domain/value-objects/PriceValue.d.ts +5 -0
- package/build/types/carbonbox/services/additional/domain/value-objects/PriceValue.d.ts.map +1 -0
- package/build/types/carbonbox/services/additional/domain/value-objects/ServiceAdditionalType.d.ts +6 -0
- package/build/types/carbonbox/services/additional/domain/value-objects/ServiceAdditionalType.d.ts.map +1 -0
- package/build/types/carbonbox/services/additional/domain/value-objects/UpdatedAt.d.ts +5 -0
- package/build/types/carbonbox/services/additional/domain/value-objects/UpdatedAt.d.ts.map +1 -0
- package/build/types/carbonbox/services/complement/domain/Complement.d.ts +19 -0
- package/build/types/carbonbox/services/complement/domain/Complement.d.ts.map +1 -0
- package/build/types/carbonbox/services/complement/domain/IComplementPrimitives.d.ts +1 -2
- package/build/types/carbonbox/services/complement/domain/IComplementPrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/services/complement/domain/value-objects/PriceType.d.ts +5 -0
- package/build/types/carbonbox/services/complement/domain/value-objects/PriceType.d.ts.map +1 -0
- package/build/types/carbonbox/services/complement/domain/value-objects/PriceUnit.d.ts +5 -0
- package/build/types/carbonbox/services/complement/domain/value-objects/PriceUnit.d.ts.map +1 -0
- package/build/types/carbonbox/services/complement/domain/value-objects/PriceValue.d.ts +5 -0
- package/build/types/carbonbox/services/complement/domain/value-objects/PriceValue.d.ts.map +1 -0
- package/build/types/carbonbox/services/core/domain/Core.d.ts +18 -0
- package/build/types/carbonbox/services/core/domain/Core.d.ts.map +1 -1
- package/build/types/carbonbox/services/core/domain/ICorePrimitives.d.ts +1 -2
- package/build/types/carbonbox/services/core/domain/ICorePrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/services/core/domain/value-objects/PriceType.d.ts +5 -0
- package/build/types/carbonbox/services/core/domain/value-objects/PriceType.d.ts.map +1 -0
- package/build/types/carbonbox/services/core/domain/value-objects/PriceUnit.d.ts +5 -0
- package/build/types/carbonbox/services/core/domain/value-objects/PriceUnit.d.ts.map +1 -0
- package/build/types/carbonbox/services/core/domain/value-objects/PriceValue.d.ts +5 -0
- package/build/types/carbonbox/services/core/domain/value-objects/PriceValue.d.ts.map +1 -0
- package/build/types/carbonbox/services/modifier/domain/IModifierPrimitives.d.ts +5 -0
- package/build/types/carbonbox/services/modifier/domain/IModifierPrimitives.d.ts.map +1 -0
- package/build/types/carbonbox/services/modifier/domain/Modifier.d.ts +23 -0
- package/build/types/carbonbox/services/modifier/domain/Modifier.d.ts.map +1 -0
- package/build/types/carbonbox/services/modifier/domain/value-objects/CreatedAt.d.ts +5 -0
- package/build/types/carbonbox/services/modifier/domain/value-objects/CreatedAt.d.ts.map +1 -0
- package/build/types/carbonbox/services/modifier/domain/value-objects/Description.d.ts +5 -0
- package/build/types/carbonbox/services/modifier/domain/value-objects/Description.d.ts.map +1 -0
- package/build/types/carbonbox/services/modifier/domain/value-objects/Id.d.ts +5 -0
- package/build/types/carbonbox/services/modifier/domain/value-objects/Id.d.ts.map +1 -0
- package/build/types/carbonbox/services/modifier/domain/value-objects/Name.d.ts +5 -0
- package/build/types/carbonbox/services/modifier/domain/value-objects/Name.d.ts.map +1 -0
- package/build/types/carbonbox/services/modifier/domain/value-objects/PriceType.d.ts +5 -0
- package/build/types/carbonbox/services/modifier/domain/value-objects/PriceType.d.ts.map +1 -0
- package/build/types/carbonbox/services/modifier/domain/value-objects/PriceUnit.d.ts +5 -0
- package/build/types/carbonbox/services/modifier/domain/value-objects/PriceUnit.d.ts.map +1 -0
- package/build/types/carbonbox/services/modifier/domain/value-objects/PriceValue.d.ts +5 -0
- package/build/types/carbonbox/services/modifier/domain/value-objects/PriceValue.d.ts.map +1 -0
- package/build/types/carbonbox/services/modifier/domain/value-objects/ServiceModifierType.d.ts +6 -0
- package/build/types/carbonbox/services/modifier/domain/value-objects/ServiceModifierType.d.ts.map +1 -0
- package/build/types/carbonbox/services/modifier/domain/value-objects/UpdatedAt.d.ts +5 -0
- package/build/types/carbonbox/services/modifier/domain/value-objects/UpdatedAt.d.ts.map +1 -0
- package/build/types/carbonbox/services/shared/domain/IServicePrimitives.d.ts +3 -3
- package/build/types/carbonbox/services/shared/domain/IServicePrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/services/shared/domain/Service.d.ts +11 -11
- package/build/types/carbonbox/services/shared/domain/Service.d.ts.map +1 -1
- package/build/types/carbonbox/services/shared/domain/value-objects/PriceType.d.ts +7 -0
- package/build/types/carbonbox/services/shared/domain/value-objects/PriceType.d.ts.map +1 -0
- package/build/types/carbonbox/services/shared/domain/value-objects/PriceUnit.d.ts +6 -0
- package/build/types/carbonbox/services/shared/domain/value-objects/PriceUnit.d.ts.map +1 -0
- package/build/types/carbonbox/services/shared/domain/value-objects/PriceValue.d.ts +6 -0
- package/build/types/carbonbox/services/shared/domain/value-objects/PriceValue.d.ts.map +1 -0
- package/build/types/carbonbox/users/carbonBox/coordinator/domain/Coordinator.d.ts +55 -0
- package/build/types/carbonbox/users/carbonBox/coordinator/domain/Coordinator.d.ts.map +1 -0
- package/build/types/carbonbox/users/carbonBox/coordinator/domain/repository/ICoordinatorRepository.d.ts +11 -0
- package/build/types/carbonbox/users/carbonBox/coordinator/domain/repository/ICoordinatorRepository.d.ts.map +1 -0
- package/build/types/carbonbox/users/carbonBox/coordinator/domain/value-objects/Avatar.d.ts +2 -0
- package/build/types/carbonbox/users/carbonBox/coordinator/domain/value-objects/Avatar.d.ts.map +1 -1
- package/build/types/carbonbox/users/carbonBox/coordinator/domain/value-objects/Biography.d.ts +1 -0
- package/build/types/carbonbox/users/carbonBox/coordinator/domain/value-objects/Biography.d.ts.map +1 -1
- package/build/types/carbonbox/users/carbonBox/host/domain/repository/IHostRepository.d.ts +11 -0
- package/build/types/carbonbox/users/carbonBox/host/domain/repository/IHostRepository.d.ts.map +1 -0
- package/build/types/carbonbox/users/carbonBox/host-manager/domain/HostManager.d.ts +42 -0
- package/build/types/carbonbox/users/carbonBox/host-manager/domain/HostManager.d.ts.map +1 -0
- package/build/types/carbonbox/users/carbonBox/host-manager/domain/repository/IHostManagerRepository.d.ts +11 -0
- package/build/types/carbonbox/users/carbonBox/host-manager/domain/repository/IHostManagerRepository.d.ts.map +1 -0
- package/build/types/carbonbox/users/carbonBox/host-manager/domain/value-objects/Avatar.d.ts +2 -0
- package/build/types/carbonbox/users/carbonBox/host-manager/domain/value-objects/Avatar.d.ts.map +1 -1
- package/build/types/carbonbox/users/carbonBox/host-manager/domain/value-objects/Biography.d.ts +1 -0
- package/build/types/carbonbox/users/carbonBox/host-manager/domain/value-objects/Biography.d.ts.map +1 -1
- package/build/types/carbonbox/users/clients/company/domain/Company.d.ts +53 -0
- package/build/types/carbonbox/users/clients/company/domain/Company.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/ICompanyPrimitives.d.ts +11 -0
- package/build/types/carbonbox/users/clients/company/domain/ICompanyPrimitives.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/repository/ICompanyManagerRepository.d.ts +11 -0
- package/build/types/carbonbox/users/clients/company/domain/repository/ICompanyManagerRepository.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/repository/ICompanyRepository.d.ts +11 -0
- package/build/types/carbonbox/users/clients/company/domain/repository/ICompanyRepository.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/Avatar.d.ts +7 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/Avatar.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/Biography.d.ts +6 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/Biography.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/CreatedAt.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/CreatedAt.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/CreatedByUserId.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/CreatedByUserId.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/CreatedByUserType.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/CreatedByUserType.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/Description.d.ts +6 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/Description.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/Email.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/Email.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/Id.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/Id.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/OfficialName.d.ts +6 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/OfficialName.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/Password.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/Password.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/Phone.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/Phone.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/Roles.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/Roles.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/ShortName.d.ts +6 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/ShortName.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/TaxIdentificationNumber.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/TaxIdentificationNumber.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/UpdatedAt.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/UpdatedAt.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/UserType.d.ts +8 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/UserType.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/WorkLocation.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company/domain/value-objects/WorkLocation.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/CompanyHost.d.ts +44 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/CompanyHost.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/CompanyHostManager.d.ts +44 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/CompanyHostManager.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/ICompanyHostManagerPrimitives.d.ts +9 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/ICompanyHostManagerPrimitives.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/repository/ICompanyHostManagerRepository.d.ts +11 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/repository/ICompanyHostManagerRepository.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/repository/IHostManagerRepository.d.ts +11 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/repository/IHostManagerRepository.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/ActiveCustomPlanId.d.ts +6 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/ActiveCustomPlanId.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Avatar.d.ts +7 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Avatar.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Biography.d.ts +6 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Biography.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/CreatedAt.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/CreatedAt.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Email.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Email.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Id.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Id.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/OfficialName.d.ts +6 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/OfficialName.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Password.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Password.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Phone.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Phone.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Roles.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Roles.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/TaxIdentificationNumber.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/TaxIdentificationNumber.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/UpdatedAt.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/UpdatedAt.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/UserType.d.ts +8 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/UserType.d.ts.map +1 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/WorkLocation.d.ts +5 -0
- package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/WorkLocation.d.ts.map +1 -0
- package/build/types/carbonbox/users/shared/domain/AnySystemUserType.d.ts +6 -0
- package/build/types/carbonbox/users/shared/domain/AnySystemUserType.d.ts.map +1 -1
- package/build/types/carbonbox/users/shared/domain/IAnySystemUserTypePrimitives.d.ts +2 -2
- package/build/types/carbonbox/users/shared/domain/IAnySystemUserTypePrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/users/shared/domain/ICreationContext.d.ts +1 -2
- package/build/types/carbonbox/users/shared/domain/ICreationContext.d.ts.map +1 -1
- package/build/types/main/index.d.ts +17 -0
- package/build/types/main/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OfficialName = void 0;
|
|
4
|
+
const String_1 = require("../../../../../shared/domain/value-objects/String");
|
|
5
|
+
// TODO: Agregar regex y validaciones de negocio - ManuelR
|
|
6
|
+
class OfficialName extends String_1.String {
|
|
7
|
+
constructor(value) {
|
|
8
|
+
super(value, 'officialName');
|
|
9
|
+
}
|
|
10
|
+
static create(value) {
|
|
11
|
+
return new OfficialName(value);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.OfficialName = OfficialName;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Password = void 0;
|
|
4
|
+
const Password_1 = require("../../../../shared/domain/value-objects/Password");
|
|
5
|
+
class Password extends Password_1.Password {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(value);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.Password = Password;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Phone = void 0;
|
|
4
|
+
const Phone_1 = require("../../../../../shared/domain/value-objects/Phone");
|
|
5
|
+
class Phone extends Phone_1.Phone {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(value);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.Phone = Phone;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Roles = void 0;
|
|
4
|
+
const Roles_1 = require("../../../../shared/domain/value-objects/Roles");
|
|
5
|
+
class Roles extends Roles_1.Roles {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(value);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.Roles = Roles;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShortName = void 0;
|
|
4
|
+
const NullableString_1 = require("../../../../../shared/domain/value-objects/NullableString");
|
|
5
|
+
// TODO: Agregar validaciones de negocio - ManuelR
|
|
6
|
+
class ShortName extends NullableString_1.NullableString {
|
|
7
|
+
constructor(value) {
|
|
8
|
+
super(value, 'shortName');
|
|
9
|
+
}
|
|
10
|
+
static create(value) {
|
|
11
|
+
return new ShortName(value);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.ShortName = ShortName;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaxIdentificationNumber = void 0;
|
|
4
|
+
const TaxIdentificationNumber_1 = require("../../../../shared/domain/value-objects/TaxIdentificationNumber");
|
|
5
|
+
class TaxIdentificationNumber extends TaxIdentificationNumber_1.TaxIdentificationNumber {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(value);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.TaxIdentificationNumber = TaxIdentificationNumber;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdatedAt = void 0;
|
|
4
|
+
const UpdatedAt_1 = require("../../../../../shared/domain/value-objects/UpdatedAt");
|
|
5
|
+
class UpdatedAt extends UpdatedAt_1.UpdatedAt {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(value);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.UpdatedAt = UpdatedAt;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserType = void 0;
|
|
4
|
+
const UserTypeEnum_1 = require("../../../../shared/domain/UserTypeEnum");
|
|
5
|
+
const UserType_1 = require("../../../../shared/domain/value-objects/UserType");
|
|
6
|
+
class UserType extends UserType_1.UserType {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(UserTypeEnum_1.UserTypeEnum.CLIENT_COMPANY);
|
|
9
|
+
}
|
|
10
|
+
static get value() {
|
|
11
|
+
return UserTypeEnum_1.UserTypeEnum.CLIENT_COMPANY;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.UserType = UserType;
|
|
15
|
+
UserType.TYPE = UserTypeEnum_1.UserTypeEnum.CLIENT_COMPANY;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkLocation = void 0;
|
|
4
|
+
const WorkLocation_1 = require("../../../../../shared/domain/value-objects/WorkLocation");
|
|
5
|
+
class WorkLocation extends WorkLocation_1.WorkLocation {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(value);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.WorkLocation = WorkLocation;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
+
};
|
|
13
|
+
var _CompanyHostManager__officialName, _CompanyHostManager__taxIdentificationNumber, _CompanyHostManager__activeCustomPlanId, _CompanyHostManager__phone, _CompanyHostManager__workLocation, _CompanyHostManager__avatar, _CompanyHostManager__biography;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CompanyHostManager = void 0;
|
|
16
|
+
const User_1 = require("../../../shared/domain/User");
|
|
17
|
+
const ActiveCustomPlanId_1 = require("./value-objects/ActiveCustomPlanId");
|
|
18
|
+
const Avatar_1 = require("./value-objects/Avatar");
|
|
19
|
+
const Biography_1 = require("./value-objects/Biography");
|
|
20
|
+
const CreatedAt_1 = require("./value-objects/CreatedAt");
|
|
21
|
+
const Email_1 = require("./value-objects/Email");
|
|
22
|
+
const Id_1 = require("./value-objects/Id");
|
|
23
|
+
const OfficialName_1 = require("./value-objects/OfficialName");
|
|
24
|
+
const Password_1 = require("./value-objects/Password");
|
|
25
|
+
const Phone_1 = require("./value-objects/Phone");
|
|
26
|
+
const Roles_1 = require("./value-objects/Roles");
|
|
27
|
+
const TaxIdentificationNumber_1 = require("./value-objects/TaxIdentificationNumber");
|
|
28
|
+
const UpdatedAt_1 = require("./value-objects/UpdatedAt");
|
|
29
|
+
const UserType_1 = require("./value-objects/UserType");
|
|
30
|
+
const WorkLocation_1 = require("./value-objects/WorkLocation");
|
|
31
|
+
class CompanyHostManager extends User_1.User {
|
|
32
|
+
constructor(props) {
|
|
33
|
+
const id = Id_1.Id.create(props.id);
|
|
34
|
+
const createdAt = CreatedAt_1.CreatedAt.create(props.createdAt);
|
|
35
|
+
const updatedAt = UpdatedAt_1.UpdatedAt.create(props.createdAt);
|
|
36
|
+
const email = Email_1.Email.create(props.email);
|
|
37
|
+
const userType = UserType_1.UserType.create(props.userType);
|
|
38
|
+
const roles = Roles_1.Roles.create(props.roles);
|
|
39
|
+
const password = Password_1.Password.create(props.password);
|
|
40
|
+
super({
|
|
41
|
+
id: id.value,
|
|
42
|
+
createdAt: createdAt.value,
|
|
43
|
+
updatedAt: updatedAt.value,
|
|
44
|
+
email: email.value,
|
|
45
|
+
userType: userType.value,
|
|
46
|
+
roles: roles.value,
|
|
47
|
+
password: password.value,
|
|
48
|
+
});
|
|
49
|
+
_CompanyHostManager__officialName.set(this, void 0);
|
|
50
|
+
_CompanyHostManager__taxIdentificationNumber.set(this, void 0);
|
|
51
|
+
_CompanyHostManager__activeCustomPlanId.set(this, void 0);
|
|
52
|
+
_CompanyHostManager__phone.set(this, void 0);
|
|
53
|
+
_CompanyHostManager__workLocation.set(this, void 0);
|
|
54
|
+
_CompanyHostManager__avatar.set(this, void 0);
|
|
55
|
+
_CompanyHostManager__biography.set(this, void 0);
|
|
56
|
+
__classPrivateFieldSet(this, _CompanyHostManager__officialName, OfficialName_1.OfficialName.create(props.officialName), "f");
|
|
57
|
+
__classPrivateFieldSet(this, _CompanyHostManager__taxIdentificationNumber, TaxIdentificationNumber_1.TaxIdentificationNumber.create(props.taxIdentificationNumber), "f");
|
|
58
|
+
__classPrivateFieldSet(this, _CompanyHostManager__activeCustomPlanId, ActiveCustomPlanId_1.ActiveCustomPlanId.create(props.activeCustomPlanId), "f");
|
|
59
|
+
__classPrivateFieldSet(this, _CompanyHostManager__phone, Phone_1.Phone.create(props.phone), "f");
|
|
60
|
+
__classPrivateFieldSet(this, _CompanyHostManager__workLocation, WorkLocation_1.WorkLocation.create(props.workLocation), "f");
|
|
61
|
+
__classPrivateFieldSet(this, _CompanyHostManager__avatar, Avatar_1.Avatar.create(props.avatar), "f");
|
|
62
|
+
__classPrivateFieldSet(this, _CompanyHostManager__biography, Biography_1.Biography.create(props.biography), "f");
|
|
63
|
+
}
|
|
64
|
+
static create(props) {
|
|
65
|
+
return new CompanyHostManager(props);
|
|
66
|
+
}
|
|
67
|
+
static fromPrimitives(primitives) {
|
|
68
|
+
return new CompanyHostManager({
|
|
69
|
+
id: primitives.id,
|
|
70
|
+
createdAt: primitives.createdAt,
|
|
71
|
+
updatedAt: primitives.updatedAt,
|
|
72
|
+
email: primitives.email,
|
|
73
|
+
password: primitives.password,
|
|
74
|
+
userType: primitives.userType,
|
|
75
|
+
roles: primitives.roles,
|
|
76
|
+
phone: primitives.phone,
|
|
77
|
+
workLocation: primitives.workLocation,
|
|
78
|
+
avatar: primitives.avatar,
|
|
79
|
+
biography: primitives.biography,
|
|
80
|
+
officialName: primitives.officialName,
|
|
81
|
+
taxIdentificationNumber: primitives.taxIdentificationNumber,
|
|
82
|
+
activeCustomPlanId: primitives.activeCustomPlanId,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
get officialName() {
|
|
86
|
+
return __classPrivateFieldGet(this, _CompanyHostManager__officialName, "f");
|
|
87
|
+
}
|
|
88
|
+
get taxIdentificationNumber() {
|
|
89
|
+
return __classPrivateFieldGet(this, _CompanyHostManager__taxIdentificationNumber, "f");
|
|
90
|
+
}
|
|
91
|
+
get activeCustomPlanId() {
|
|
92
|
+
return __classPrivateFieldGet(this, _CompanyHostManager__activeCustomPlanId, "f");
|
|
93
|
+
}
|
|
94
|
+
get phone() {
|
|
95
|
+
return __classPrivateFieldGet(this, _CompanyHostManager__phone, "f");
|
|
96
|
+
}
|
|
97
|
+
get workLocation() {
|
|
98
|
+
return __classPrivateFieldGet(this, _CompanyHostManager__workLocation, "f");
|
|
99
|
+
}
|
|
100
|
+
get avatar() {
|
|
101
|
+
return __classPrivateFieldGet(this, _CompanyHostManager__avatar, "f");
|
|
102
|
+
}
|
|
103
|
+
get biography() {
|
|
104
|
+
return __classPrivateFieldGet(this, _CompanyHostManager__biography, "f");
|
|
105
|
+
}
|
|
106
|
+
get toPrimitives() {
|
|
107
|
+
return {
|
|
108
|
+
id: this.id.value,
|
|
109
|
+
createdAt: this.createdAt.value,
|
|
110
|
+
updatedAt: this.updatedAt.value,
|
|
111
|
+
email: this.email.value,
|
|
112
|
+
password: this.password.value,
|
|
113
|
+
userType: this.userType.value,
|
|
114
|
+
roles: this.roles.value,
|
|
115
|
+
phone: __classPrivateFieldGet(this, _CompanyHostManager__phone, "f").value,
|
|
116
|
+
workLocation: __classPrivateFieldGet(this, _CompanyHostManager__workLocation, "f").value,
|
|
117
|
+
avatar: __classPrivateFieldGet(this, _CompanyHostManager__avatar, "f").value,
|
|
118
|
+
biography: __classPrivateFieldGet(this, _CompanyHostManager__biography, "f").value,
|
|
119
|
+
officialName: __classPrivateFieldGet(this, _CompanyHostManager__officialName, "f").value,
|
|
120
|
+
taxIdentificationNumber: __classPrivateFieldGet(this, _CompanyHostManager__taxIdentificationNumber, "f").value,
|
|
121
|
+
activeCustomPlanId: __classPrivateFieldGet(this, _CompanyHostManager__activeCustomPlanId, "f").value,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.CompanyHostManager = CompanyHostManager;
|
|
126
|
+
_CompanyHostManager__officialName = new WeakMap(), _CompanyHostManager__taxIdentificationNumber = new WeakMap(), _CompanyHostManager__activeCustomPlanId = new WeakMap(), _CompanyHostManager__phone = new WeakMap(), _CompanyHostManager__workLocation = new WeakMap(), _CompanyHostManager__avatar = new WeakMap(), _CompanyHostManager__biography = new WeakMap();
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
+
};
|
|
13
|
+
var _CompanyHostManager__officialName, _CompanyHostManager__taxIdentificationNumber, _CompanyHostManager__activeCustomPlanId, _CompanyHostManager__phone, _CompanyHostManager__workLocation, _CompanyHostManager__avatar, _CompanyHostManager__biography;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CompanyHostManager = void 0;
|
|
16
|
+
const User_1 = require("../../../shared/domain/User");
|
|
17
|
+
const ActiveCustomPlanId_1 = require("./value-objects/ActiveCustomPlanId");
|
|
18
|
+
const Avatar_1 = require("./value-objects/Avatar");
|
|
19
|
+
const Biography_1 = require("./value-objects/Biography");
|
|
20
|
+
const CreatedAt_1 = require("./value-objects/CreatedAt");
|
|
21
|
+
const Email_1 = require("./value-objects/Email");
|
|
22
|
+
const Id_1 = require("./value-objects/Id");
|
|
23
|
+
const OfficialName_1 = require("./value-objects/OfficialName");
|
|
24
|
+
const Password_1 = require("./value-objects/Password");
|
|
25
|
+
const Phone_1 = require("./value-objects/Phone");
|
|
26
|
+
const Roles_1 = require("./value-objects/Roles");
|
|
27
|
+
const TaxIdentificationNumber_1 = require("./value-objects/TaxIdentificationNumber");
|
|
28
|
+
const UpdatedAt_1 = require("./value-objects/UpdatedAt");
|
|
29
|
+
const UserType_1 = require("./value-objects/UserType");
|
|
30
|
+
const WorkLocation_1 = require("./value-objects/WorkLocation");
|
|
31
|
+
class CompanyHostManager extends User_1.User {
|
|
32
|
+
constructor(props) {
|
|
33
|
+
const id = Id_1.Id.create(props.id);
|
|
34
|
+
const createdAt = CreatedAt_1.CreatedAt.create(props.createdAt);
|
|
35
|
+
const updatedAt = UpdatedAt_1.UpdatedAt.create(props.createdAt);
|
|
36
|
+
const email = Email_1.Email.create(props.email);
|
|
37
|
+
const userType = UserType_1.UserType.create(props.userType);
|
|
38
|
+
const roles = Roles_1.Roles.create(props.roles);
|
|
39
|
+
const password = Password_1.Password.create(props.password);
|
|
40
|
+
super({
|
|
41
|
+
id: id.value,
|
|
42
|
+
createdAt: createdAt.value,
|
|
43
|
+
updatedAt: updatedAt.value,
|
|
44
|
+
email: email.value,
|
|
45
|
+
userType: userType.value,
|
|
46
|
+
roles: roles.value,
|
|
47
|
+
password: password.value,
|
|
48
|
+
});
|
|
49
|
+
_CompanyHostManager__officialName.set(this, void 0);
|
|
50
|
+
_CompanyHostManager__taxIdentificationNumber.set(this, void 0);
|
|
51
|
+
_CompanyHostManager__activeCustomPlanId.set(this, void 0);
|
|
52
|
+
_CompanyHostManager__phone.set(this, void 0);
|
|
53
|
+
_CompanyHostManager__workLocation.set(this, void 0);
|
|
54
|
+
_CompanyHostManager__avatar.set(this, void 0);
|
|
55
|
+
_CompanyHostManager__biography.set(this, void 0);
|
|
56
|
+
__classPrivateFieldSet(this, _CompanyHostManager__officialName, OfficialName_1.OfficialName.create(props.officialName), "f");
|
|
57
|
+
__classPrivateFieldSet(this, _CompanyHostManager__taxIdentificationNumber, TaxIdentificationNumber_1.TaxIdentificationNumber.create(props.taxIdentificationNumber), "f");
|
|
58
|
+
__classPrivateFieldSet(this, _CompanyHostManager__activeCustomPlanId, ActiveCustomPlanId_1.ActiveCustomPlanId.create(props.activeCustomPlanId), "f");
|
|
59
|
+
__classPrivateFieldSet(this, _CompanyHostManager__phone, Phone_1.Phone.create(props.phone), "f");
|
|
60
|
+
__classPrivateFieldSet(this, _CompanyHostManager__workLocation, WorkLocation_1.WorkLocation.create(props.workLocation), "f");
|
|
61
|
+
__classPrivateFieldSet(this, _CompanyHostManager__avatar, Avatar_1.Avatar.create(props.avatar), "f");
|
|
62
|
+
__classPrivateFieldSet(this, _CompanyHostManager__biography, Biography_1.Biography.create(props.biography), "f");
|
|
63
|
+
}
|
|
64
|
+
static create(props) {
|
|
65
|
+
return new CompanyHostManager(props);
|
|
66
|
+
}
|
|
67
|
+
static fromPrimitives(primitives) {
|
|
68
|
+
return new CompanyHostManager({
|
|
69
|
+
id: primitives.id,
|
|
70
|
+
createdAt: primitives.createdAt,
|
|
71
|
+
updatedAt: primitives.updatedAt,
|
|
72
|
+
email: primitives.email,
|
|
73
|
+
password: primitives.password,
|
|
74
|
+
userType: primitives.userType,
|
|
75
|
+
roles: primitives.roles,
|
|
76
|
+
phone: primitives.phone,
|
|
77
|
+
workLocation: primitives.workLocation,
|
|
78
|
+
avatar: primitives.avatar,
|
|
79
|
+
biography: primitives.biography,
|
|
80
|
+
officialName: primitives.officialName,
|
|
81
|
+
taxIdentificationNumber: primitives.taxIdentificationNumber,
|
|
82
|
+
activeCustomPlanId: primitives.activeCustomPlanId,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
get officialName() {
|
|
86
|
+
return __classPrivateFieldGet(this, _CompanyHostManager__officialName, "f");
|
|
87
|
+
}
|
|
88
|
+
get taxIdentificationNumber() {
|
|
89
|
+
return __classPrivateFieldGet(this, _CompanyHostManager__taxIdentificationNumber, "f");
|
|
90
|
+
}
|
|
91
|
+
get activeCustomPlanId() {
|
|
92
|
+
return __classPrivateFieldGet(this, _CompanyHostManager__activeCustomPlanId, "f");
|
|
93
|
+
}
|
|
94
|
+
get phone() {
|
|
95
|
+
return __classPrivateFieldGet(this, _CompanyHostManager__phone, "f");
|
|
96
|
+
}
|
|
97
|
+
get workLocation() {
|
|
98
|
+
return __classPrivateFieldGet(this, _CompanyHostManager__workLocation, "f");
|
|
99
|
+
}
|
|
100
|
+
get avatar() {
|
|
101
|
+
return __classPrivateFieldGet(this, _CompanyHostManager__avatar, "f");
|
|
102
|
+
}
|
|
103
|
+
get biography() {
|
|
104
|
+
return __classPrivateFieldGet(this, _CompanyHostManager__biography, "f");
|
|
105
|
+
}
|
|
106
|
+
get toPrimitives() {
|
|
107
|
+
return {
|
|
108
|
+
id: this.id.value,
|
|
109
|
+
createdAt: this.createdAt.value,
|
|
110
|
+
updatedAt: this.updatedAt.value,
|
|
111
|
+
email: this.email.value,
|
|
112
|
+
password: this.password.value,
|
|
113
|
+
userType: this.userType.value,
|
|
114
|
+
roles: this.roles.value,
|
|
115
|
+
phone: __classPrivateFieldGet(this, _CompanyHostManager__phone, "f").value,
|
|
116
|
+
workLocation: __classPrivateFieldGet(this, _CompanyHostManager__workLocation, "f").value,
|
|
117
|
+
avatar: __classPrivateFieldGet(this, _CompanyHostManager__avatar, "f").value,
|
|
118
|
+
biography: __classPrivateFieldGet(this, _CompanyHostManager__biography, "f").value,
|
|
119
|
+
officialName: __classPrivateFieldGet(this, _CompanyHostManager__officialName, "f").value,
|
|
120
|
+
taxIdentificationNumber: __classPrivateFieldGet(this, _CompanyHostManager__taxIdentificationNumber, "f").value,
|
|
121
|
+
activeCustomPlanId: __classPrivateFieldGet(this, _CompanyHostManager__activeCustomPlanId, "f").value,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.CompanyHostManager = CompanyHostManager;
|
|
126
|
+
_CompanyHostManager__officialName = new WeakMap(), _CompanyHostManager__taxIdentificationNumber = new WeakMap(), _CompanyHostManager__activeCustomPlanId = new WeakMap(), _CompanyHostManager__phone = new WeakMap(), _CompanyHostManager__workLocation = new WeakMap(), _CompanyHostManager__avatar = new WeakMap(), _CompanyHostManager__biography = new WeakMap();
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActiveCustomPlanId = void 0;
|
|
4
|
+
const NullableId_1 = require("../../../../../shared/domain/value-objects/NullableId");
|
|
5
|
+
// TODO: Eliminar propiedad por la nueva relación que tiene la entidad Plan
|
|
6
|
+
class ActiveCustomPlanId extends NullableId_1.NullableId {
|
|
7
|
+
constructor(value) {
|
|
8
|
+
super(value);
|
|
9
|
+
}
|
|
10
|
+
static create(value) {
|
|
11
|
+
return new ActiveCustomPlanId(value);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.ActiveCustomPlanId = ActiveCustomPlanId;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Avatar = void 0;
|
|
4
|
+
const Avatar_1 = require("../../../../shared/domain/value-objects/Avatar");
|
|
5
|
+
class Avatar extends Avatar_1.Avatar {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(value);
|
|
8
|
+
}
|
|
9
|
+
static create(value) {
|
|
10
|
+
return new Avatar(value);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.Avatar = Avatar;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Biography = void 0;
|
|
4
|
+
const NullableString_1 = require("../../../../../shared/domain/value-objects/NullableString");
|
|
5
|
+
class Biography extends NullableString_1.NullableString {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(value, 'biography');
|
|
8
|
+
}
|
|
9
|
+
static create(value) {
|
|
10
|
+
return new Biography(value);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.Biography = Biography;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreatedAt = void 0;
|
|
4
|
+
const CreatedAt_1 = require("../../../../../shared/domain/value-objects/CreatedAt");
|
|
5
|
+
class CreatedAt extends CreatedAt_1.CreatedAt {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(value);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.CreatedAt = CreatedAt;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Email = void 0;
|
|
4
|
+
const Email_1 = require("../../../../shared/domain/value-objects/Email");
|
|
5
|
+
class Email extends Email_1.Email {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(value);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.Email = Email;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Id = void 0;
|
|
4
|
+
const Id_1 = require("../../../../../shared/domain/value-objects/Id");
|
|
5
|
+
class Id extends Id_1.Id {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(value);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.Id = Id;
|
package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/OfficialName.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OfficialName = void 0;
|
|
4
|
+
const String_1 = require("../../../../../shared/domain/value-objects/String");
|
|
5
|
+
class OfficialName extends String_1.String {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(value, 'officialName');
|
|
8
|
+
}
|
|
9
|
+
static create(value) {
|
|
10
|
+
return new OfficialName(value);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.OfficialName = OfficialName;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Password = void 0;
|
|
4
|
+
const Password_1 = require("../../../../shared/domain/value-objects/Password");
|
|
5
|
+
class Password extends Password_1.Password {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(value);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.Password = Password;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Phone = void 0;
|
|
4
|
+
const Phone_1 = require("../../../../../shared/domain/value-objects/Phone");
|
|
5
|
+
class Phone extends Phone_1.Phone {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(value);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.Phone = Phone;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Roles = void 0;
|
|
4
|
+
const Roles_1 = require("../../../../shared/domain/value-objects/Roles");
|
|
5
|
+
class Roles extends Roles_1.Roles {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(value);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.Roles = Roles;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaxIdentificationNumber = void 0;
|
|
4
|
+
const TaxIdentificationNumber_1 = require("../../../../shared/domain/value-objects/TaxIdentificationNumber");
|
|
5
|
+
class TaxIdentificationNumber extends TaxIdentificationNumber_1.TaxIdentificationNumber {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(value);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.TaxIdentificationNumber = TaxIdentificationNumber;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdatedAt = void 0;
|
|
4
|
+
const UpdatedAt_1 = require("../../../../../shared/domain/value-objects/UpdatedAt");
|
|
5
|
+
class UpdatedAt extends UpdatedAt_1.UpdatedAt {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(value);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.UpdatedAt = UpdatedAt;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserType = void 0;
|
|
4
|
+
const UserTypeEnum_1 = require("../../../../shared/domain/UserTypeEnum");
|
|
5
|
+
const UserType_1 = require("../../../../shared/domain/value-objects/UserType");
|
|
6
|
+
class UserType extends UserType_1.UserType {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(UserTypeEnum_1.UserTypeEnum.CLIENT_COMPANY_HOST_MANAGER);
|
|
9
|
+
}
|
|
10
|
+
static get value() {
|
|
11
|
+
return UserTypeEnum_1.UserTypeEnum.CLIENT_COMPANY_HOST_MANAGER;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.UserType = UserType;
|
|
15
|
+
UserType.TYPE = UserTypeEnum_1.UserTypeEnum.CLIENT_COMPANY_HOST_MANAGER;
|
package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/WorkLocation.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkLocation = void 0;
|
|
4
|
+
const WorkLocation_1 = require("../../../../../shared/domain/value-objects/WorkLocation");
|
|
5
|
+
class WorkLocation extends WorkLocation_1.WorkLocation {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(value);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.WorkLocation = WorkLocation;
|
package/build/main/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.User = exports.InvalidValueObjectConfigurationError = exports.NotIntegerError = exports.NullValueError = exports.UndefinedValueError = exports.MinimumValueViolationError = exports.InvalidStringArrayError = exports.InvalidPropertyTypeError = exports.InvalidNationalNumberError = exports.InvalidMinutesDurationError = exports.InvalidGenderError = exports.InvalidFullInternationalNumberError = exports.InvalidDomainIdError = exports.InvalidDateFormatError = exports.InvalidCountryCodeError = exports.InvalidCoordinatesError = exports.CreateMethodNotImplementedError = exports.RootError = exports.AggregateRoot = exports.DomainError = exports.HttpStatus = exports.Either = void 0;
|
|
3
|
+
exports.CompanyHostManager = exports.Company = exports.HostManager = exports.Host = exports.Coordinator = exports.User = exports.InvalidValueObjectConfigurationError = exports.NotIntegerError = exports.NullValueError = exports.UndefinedValueError = exports.MinimumValueViolationError = exports.InvalidStringArrayError = exports.InvalidPropertyTypeError = exports.InvalidNationalNumberError = exports.InvalidMinutesDurationError = exports.InvalidGenderError = exports.InvalidFullInternationalNumberError = exports.InvalidDomainIdError = exports.InvalidDateFormatError = exports.InvalidCountryCodeError = exports.InvalidCoordinatesError = exports.CreateMethodNotImplementedError = exports.RootError = exports.AggregateRoot = exports.DomainError = exports.HttpStatus = exports.Either = void 0;
|
|
4
4
|
// Shared
|
|
5
5
|
var Either_1 = require("../carbonbox/shared/domain/either/Either");
|
|
6
6
|
Object.defineProperty(exports, "Either", { enumerable: true, get: function () { return Either_1.Either; } });
|
|
@@ -47,3 +47,18 @@ Object.defineProperty(exports, "InvalidValueObjectConfigurationError", { enumera
|
|
|
47
47
|
// Users Shared
|
|
48
48
|
var User_1 = require("../carbonbox/users/shared/domain/User");
|
|
49
49
|
Object.defineProperty(exports, "User", { enumerable: true, get: function () { return User_1.User; } });
|
|
50
|
+
// Users CarbonBox Coordinator
|
|
51
|
+
var Coordinator_1 = require("../carbonbox/users/carbonBox/coordinator/domain/Coordinator");
|
|
52
|
+
Object.defineProperty(exports, "Coordinator", { enumerable: true, get: function () { return Coordinator_1.Coordinator; } });
|
|
53
|
+
// Users CarbonBox Host
|
|
54
|
+
var Host_1 = require("../carbonbox/users/carbonBox/host/domain/Host");
|
|
55
|
+
Object.defineProperty(exports, "Host", { enumerable: true, get: function () { return Host_1.Host; } });
|
|
56
|
+
// Users CarbonBox Host Manager
|
|
57
|
+
var HostManager_1 = require("../carbonbox/users/carbonBox/host-manager/domain/HostManager");
|
|
58
|
+
Object.defineProperty(exports, "HostManager", { enumerable: true, get: function () { return HostManager_1.HostManager; } });
|
|
59
|
+
// Users Clients Company
|
|
60
|
+
var Company_1 = require("../carbonbox/users/clients/company/domain/Company");
|
|
61
|
+
Object.defineProperty(exports, "Company", { enumerable: true, get: function () { return Company_1.Company; } });
|
|
62
|
+
// Users Clients Company Host Manager
|
|
63
|
+
var CompanyHostManager_1 = require("../carbonbox/users/clients/company-host-manager/domain/CompanyHostManager");
|
|
64
|
+
Object.defineProperty(exports, "CompanyHostManager", { enumerable: true, get: function () { return CompanyHostManager_1.CompanyHostManager; } });
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Service } from '../../shared/domain/Service';
|
|
2
|
+
import { IAdditionalPrimitives } from './IAdditionalPrimitives';
|
|
3
|
+
import { ServiceAdditionalType } from './value-objects/ServiceAdditionalType';
|
|
4
|
+
export interface IAdditionalProps {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
serviceAdditionalType: string;
|
|
9
|
+
priceType: string;
|
|
10
|
+
priceValue: number;
|
|
11
|
+
priceUnit: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
updatedAt: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class Additional extends Service<IAdditionalPrimitives> {
|
|
16
|
+
#private;
|
|
17
|
+
private constructor();
|
|
18
|
+
static create(props: IAdditionalProps): Additional;
|
|
19
|
+
static fromPrimitives(primitives: IAdditionalPrimitives): Additional;
|
|
20
|
+
get serviceAdditionalType(): ServiceAdditionalType;
|
|
21
|
+
get toPrimitives(): IAdditionalPrimitives;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=Additional.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Additional.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/services/additional/domain/Additional.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAQhE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAG9E,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,UAAW,SAAQ,OAAO,CAAC,qBAAqB,CAAC;;IAG5D,OAAO;WAwBO,MAAM,CAAC,KAAK,EAAE,gBAAgB,GAAG,UAAU;WAI3C,cAAc,CAAC,UAAU,EAAE,qBAAqB,GAAG,UAAU;IAc3E,IAAW,qBAAqB,IAAI,qBAAqB,CAExD;IAED,IAAoB,YAAY,IAAI,qBAAqB,CAYxD;CACF"}
|