@carbonbox/domain 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/build/carbonbox/services/additional/domain/Additional.js +82 -0
  2. package/build/carbonbox/services/additional/domain/IAdditionalPrimitives.js +2 -0
  3. package/build/carbonbox/services/additional/domain/value-objects/CreatedAt.js +10 -0
  4. package/build/carbonbox/services/additional/domain/value-objects/Description.js +10 -0
  5. package/build/carbonbox/services/additional/domain/value-objects/Id.js +10 -0
  6. package/build/carbonbox/services/additional/domain/value-objects/Name.js +10 -0
  7. package/build/carbonbox/services/additional/domain/value-objects/PriceType.js +10 -0
  8. package/build/carbonbox/services/additional/domain/value-objects/PriceUnit.js +10 -0
  9. package/build/carbonbox/services/additional/domain/value-objects/PriceValue.js +10 -0
  10. package/build/carbonbox/services/additional/domain/value-objects/ServiceAdditionalType.js +13 -0
  11. package/build/carbonbox/services/additional/domain/value-objects/UpdatedAt.js +10 -0
  12. package/build/carbonbox/services/complement/domain/Complement.js +61 -0
  13. package/build/carbonbox/services/complement/domain/value-objects/PriceType.js +10 -0
  14. package/build/carbonbox/services/complement/domain/value-objects/PriceUnit.js +10 -0
  15. package/build/carbonbox/services/complement/domain/value-objects/PriceValue.js +10 -0
  16. package/build/carbonbox/services/core/domain/Core.js +60 -0
  17. package/build/carbonbox/services/core/domain/value-objects/PriceType.js +10 -0
  18. package/build/carbonbox/services/core/domain/value-objects/PriceUnit.js +10 -0
  19. package/build/carbonbox/services/core/domain/value-objects/PriceValue.js +10 -0
  20. package/build/carbonbox/services/modifier/domain/IModifierPrimitives.js +2 -0
  21. package/build/carbonbox/services/modifier/domain/Modifier.js +82 -0
  22. package/build/carbonbox/services/modifier/domain/value-objects/CreatedAt.js +10 -0
  23. package/build/carbonbox/services/modifier/domain/value-objects/Description.js +10 -0
  24. package/build/carbonbox/services/modifier/domain/value-objects/Id.js +10 -0
  25. package/build/carbonbox/services/modifier/domain/value-objects/Name.js +10 -0
  26. package/build/carbonbox/services/modifier/domain/value-objects/PriceType.js +10 -0
  27. package/build/carbonbox/services/modifier/domain/value-objects/PriceUnit.js +10 -0
  28. package/build/carbonbox/services/modifier/domain/value-objects/PriceValue.js +10 -0
  29. package/build/carbonbox/services/modifier/domain/value-objects/ServiceModifierType.js +13 -0
  30. package/build/carbonbox/services/modifier/domain/value-objects/UpdatedAt.js +10 -0
  31. package/build/carbonbox/services/shared/domain/Service.js +17 -17
  32. package/build/carbonbox/services/shared/domain/value-objects/PriceType.js +27 -0
  33. package/build/carbonbox/services/shared/domain/value-objects/PriceUnit.js +13 -0
  34. package/build/carbonbox/services/shared/domain/value-objects/PriceValue.js +13 -0
  35. package/build/carbonbox/users/carbonBox/coordinator/domain/Coordinator.js +150 -0
  36. package/build/carbonbox/users/carbonBox/coordinator/domain/value-objects/Avatar.js +3 -0
  37. package/build/carbonbox/users/carbonBox/coordinator/domain/value-objects/Biography.js +3 -0
  38. package/build/carbonbox/users/carbonBox/host-manager/domain/HostManager.js +118 -0
  39. package/build/carbonbox/users/carbonBox/host-manager/domain/value-objects/Avatar.js +3 -0
  40. package/build/carbonbox/users/carbonBox/host-manager/domain/value-objects/Biography.js +3 -0
  41. package/build/carbonbox/users/clients/company/domain/Company.js +150 -0
  42. package/build/carbonbox/users/clients/company/domain/ICompanyPrimitives.js +2 -0
  43. package/build/carbonbox/users/clients/company/domain/value-objects/Avatar.js +13 -0
  44. package/build/carbonbox/users/clients/company/domain/value-objects/Biography.js +13 -0
  45. package/build/carbonbox/users/clients/company/domain/value-objects/CreatedAt.js +10 -0
  46. package/build/carbonbox/users/clients/company/domain/value-objects/CreatedByUserId.js +10 -0
  47. package/build/carbonbox/users/clients/company/domain/value-objects/CreatedByUserType.js +10 -0
  48. package/build/carbonbox/users/clients/company/domain/value-objects/Description.js +13 -0
  49. package/build/carbonbox/users/clients/company/domain/value-objects/Email.js +10 -0
  50. package/build/carbonbox/users/clients/company/domain/value-objects/Id.js +10 -0
  51. package/build/carbonbox/users/clients/company/domain/value-objects/OfficialName.js +14 -0
  52. package/build/carbonbox/users/clients/company/domain/value-objects/Password.js +10 -0
  53. package/build/carbonbox/users/clients/company/domain/value-objects/Phone.js +10 -0
  54. package/build/carbonbox/users/clients/company/domain/value-objects/Roles.js +10 -0
  55. package/build/carbonbox/users/clients/company/domain/value-objects/ShortName.js +14 -0
  56. package/build/carbonbox/users/clients/company/domain/value-objects/TaxIdentificationNumber.js +10 -0
  57. package/build/carbonbox/users/clients/company/domain/value-objects/UpdatedAt.js +10 -0
  58. package/build/carbonbox/users/clients/company/domain/value-objects/UserType.js +15 -0
  59. package/build/carbonbox/users/clients/company/domain/value-objects/WorkLocation.js +10 -0
  60. package/build/carbonbox/users/clients/company-host-manager/domain/CompanyHost.js +126 -0
  61. package/build/carbonbox/users/clients/company-host-manager/domain/ICompanyHostManagerPrimitives.js +2 -0
  62. package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/ActiveCustomPlanId.js +14 -0
  63. package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/Avatar.js +13 -0
  64. package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/Biography.js +13 -0
  65. package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/CreatedAt.js +10 -0
  66. package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/Email.js +10 -0
  67. package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/Id.js +10 -0
  68. package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/OfficialName.js +13 -0
  69. package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/Password.js +10 -0
  70. package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/Phone.js +10 -0
  71. package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/Roles.js +10 -0
  72. package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/TaxIdentificationNumber.js +10 -0
  73. package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/UpdatedAt.js +10 -0
  74. package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/UserType.js +15 -0
  75. package/build/carbonbox/users/clients/company-host-manager/domain/value-objects/WorkLocation.js +10 -0
  76. package/build/carbonbox/users/shared/domain/AnySystemUserType.js +1 -0
  77. package/build/main/index.js +16 -1
  78. package/build/types/carbonbox/services/additional/domain/Additional.d.ts +23 -0
  79. package/build/types/carbonbox/services/additional/domain/Additional.d.ts.map +1 -0
  80. package/build/types/carbonbox/services/additional/domain/IAdditionalPrimitives.d.ts +5 -0
  81. package/build/types/carbonbox/services/additional/domain/IAdditionalPrimitives.d.ts.map +1 -0
  82. package/build/types/carbonbox/services/additional/domain/value-objects/CreatedAt.d.ts +5 -0
  83. package/build/types/carbonbox/services/additional/domain/value-objects/CreatedAt.d.ts.map +1 -0
  84. package/build/types/carbonbox/services/additional/domain/value-objects/Description.d.ts +5 -0
  85. package/build/types/carbonbox/services/additional/domain/value-objects/Description.d.ts.map +1 -0
  86. package/build/types/carbonbox/services/additional/domain/value-objects/Id.d.ts +5 -0
  87. package/build/types/carbonbox/services/additional/domain/value-objects/Id.d.ts.map +1 -0
  88. package/build/types/carbonbox/services/additional/domain/value-objects/Name.d.ts +5 -0
  89. package/build/types/carbonbox/services/additional/domain/value-objects/Name.d.ts.map +1 -0
  90. package/build/types/carbonbox/services/additional/domain/value-objects/PriceType.d.ts +5 -0
  91. package/build/types/carbonbox/services/additional/domain/value-objects/PriceType.d.ts.map +1 -0
  92. package/build/types/carbonbox/services/additional/domain/value-objects/PriceUnit.d.ts +5 -0
  93. package/build/types/carbonbox/services/additional/domain/value-objects/PriceUnit.d.ts.map +1 -0
  94. package/build/types/carbonbox/services/additional/domain/value-objects/PriceValue.d.ts +5 -0
  95. package/build/types/carbonbox/services/additional/domain/value-objects/PriceValue.d.ts.map +1 -0
  96. package/build/types/carbonbox/services/additional/domain/value-objects/ServiceAdditionalType.d.ts +6 -0
  97. package/build/types/carbonbox/services/additional/domain/value-objects/ServiceAdditionalType.d.ts.map +1 -0
  98. package/build/types/carbonbox/services/additional/domain/value-objects/UpdatedAt.d.ts +5 -0
  99. package/build/types/carbonbox/services/additional/domain/value-objects/UpdatedAt.d.ts.map +1 -0
  100. package/build/types/carbonbox/services/complement/domain/Complement.d.ts +19 -0
  101. package/build/types/carbonbox/services/complement/domain/Complement.d.ts.map +1 -0
  102. package/build/types/carbonbox/services/complement/domain/IComplementPrimitives.d.ts +1 -2
  103. package/build/types/carbonbox/services/complement/domain/IComplementPrimitives.d.ts.map +1 -1
  104. package/build/types/carbonbox/services/complement/domain/value-objects/PriceType.d.ts +5 -0
  105. package/build/types/carbonbox/services/complement/domain/value-objects/PriceType.d.ts.map +1 -0
  106. package/build/types/carbonbox/services/complement/domain/value-objects/PriceUnit.d.ts +5 -0
  107. package/build/types/carbonbox/services/complement/domain/value-objects/PriceUnit.d.ts.map +1 -0
  108. package/build/types/carbonbox/services/complement/domain/value-objects/PriceValue.d.ts +5 -0
  109. package/build/types/carbonbox/services/complement/domain/value-objects/PriceValue.d.ts.map +1 -0
  110. package/build/types/carbonbox/services/core/domain/Core.d.ts +18 -0
  111. package/build/types/carbonbox/services/core/domain/Core.d.ts.map +1 -1
  112. package/build/types/carbonbox/services/core/domain/ICorePrimitives.d.ts +1 -2
  113. package/build/types/carbonbox/services/core/domain/ICorePrimitives.d.ts.map +1 -1
  114. package/build/types/carbonbox/services/core/domain/value-objects/PriceType.d.ts +5 -0
  115. package/build/types/carbonbox/services/core/domain/value-objects/PriceType.d.ts.map +1 -0
  116. package/build/types/carbonbox/services/core/domain/value-objects/PriceUnit.d.ts +5 -0
  117. package/build/types/carbonbox/services/core/domain/value-objects/PriceUnit.d.ts.map +1 -0
  118. package/build/types/carbonbox/services/core/domain/value-objects/PriceValue.d.ts +5 -0
  119. package/build/types/carbonbox/services/core/domain/value-objects/PriceValue.d.ts.map +1 -0
  120. package/build/types/carbonbox/services/modifier/domain/IModifierPrimitives.d.ts +5 -0
  121. package/build/types/carbonbox/services/modifier/domain/IModifierPrimitives.d.ts.map +1 -0
  122. package/build/types/carbonbox/services/modifier/domain/Modifier.d.ts +23 -0
  123. package/build/types/carbonbox/services/modifier/domain/Modifier.d.ts.map +1 -0
  124. package/build/types/carbonbox/services/modifier/domain/value-objects/CreatedAt.d.ts +5 -0
  125. package/build/types/carbonbox/services/modifier/domain/value-objects/CreatedAt.d.ts.map +1 -0
  126. package/build/types/carbonbox/services/modifier/domain/value-objects/Description.d.ts +5 -0
  127. package/build/types/carbonbox/services/modifier/domain/value-objects/Description.d.ts.map +1 -0
  128. package/build/types/carbonbox/services/modifier/domain/value-objects/Id.d.ts +5 -0
  129. package/build/types/carbonbox/services/modifier/domain/value-objects/Id.d.ts.map +1 -0
  130. package/build/types/carbonbox/services/modifier/domain/value-objects/Name.d.ts +5 -0
  131. package/build/types/carbonbox/services/modifier/domain/value-objects/Name.d.ts.map +1 -0
  132. package/build/types/carbonbox/services/modifier/domain/value-objects/PriceType.d.ts +5 -0
  133. package/build/types/carbonbox/services/modifier/domain/value-objects/PriceType.d.ts.map +1 -0
  134. package/build/types/carbonbox/services/modifier/domain/value-objects/PriceUnit.d.ts +5 -0
  135. package/build/types/carbonbox/services/modifier/domain/value-objects/PriceUnit.d.ts.map +1 -0
  136. package/build/types/carbonbox/services/modifier/domain/value-objects/PriceValue.d.ts +5 -0
  137. package/build/types/carbonbox/services/modifier/domain/value-objects/PriceValue.d.ts.map +1 -0
  138. package/build/types/carbonbox/services/modifier/domain/value-objects/ServiceModifierType.d.ts +6 -0
  139. package/build/types/carbonbox/services/modifier/domain/value-objects/ServiceModifierType.d.ts.map +1 -0
  140. package/build/types/carbonbox/services/modifier/domain/value-objects/UpdatedAt.d.ts +5 -0
  141. package/build/types/carbonbox/services/modifier/domain/value-objects/UpdatedAt.d.ts.map +1 -0
  142. package/build/types/carbonbox/services/shared/domain/IServicePrimitives.d.ts +3 -3
  143. package/build/types/carbonbox/services/shared/domain/IServicePrimitives.d.ts.map +1 -1
  144. package/build/types/carbonbox/services/shared/domain/Service.d.ts +11 -11
  145. package/build/types/carbonbox/services/shared/domain/Service.d.ts.map +1 -1
  146. package/build/types/carbonbox/services/shared/domain/value-objects/PriceType.d.ts +7 -0
  147. package/build/types/carbonbox/services/shared/domain/value-objects/PriceType.d.ts.map +1 -0
  148. package/build/types/carbonbox/services/shared/domain/value-objects/PriceUnit.d.ts +6 -0
  149. package/build/types/carbonbox/services/shared/domain/value-objects/PriceUnit.d.ts.map +1 -0
  150. package/build/types/carbonbox/services/shared/domain/value-objects/PriceValue.d.ts +6 -0
  151. package/build/types/carbonbox/services/shared/domain/value-objects/PriceValue.d.ts.map +1 -0
  152. package/build/types/carbonbox/users/carbonBox/coordinator/domain/Coordinator.d.ts +55 -0
  153. package/build/types/carbonbox/users/carbonBox/coordinator/domain/Coordinator.d.ts.map +1 -0
  154. package/build/types/carbonbox/users/carbonBox/coordinator/domain/value-objects/Avatar.d.ts +2 -0
  155. package/build/types/carbonbox/users/carbonBox/coordinator/domain/value-objects/Avatar.d.ts.map +1 -1
  156. package/build/types/carbonbox/users/carbonBox/coordinator/domain/value-objects/Biography.d.ts +1 -0
  157. package/build/types/carbonbox/users/carbonBox/coordinator/domain/value-objects/Biography.d.ts.map +1 -1
  158. package/build/types/carbonbox/users/carbonBox/host-manager/domain/HostManager.d.ts +42 -0
  159. package/build/types/carbonbox/users/carbonBox/host-manager/domain/HostManager.d.ts.map +1 -0
  160. package/build/types/carbonbox/users/carbonBox/host-manager/domain/value-objects/Avatar.d.ts +2 -0
  161. package/build/types/carbonbox/users/carbonBox/host-manager/domain/value-objects/Avatar.d.ts.map +1 -1
  162. package/build/types/carbonbox/users/carbonBox/host-manager/domain/value-objects/Biography.d.ts +1 -0
  163. package/build/types/carbonbox/users/carbonBox/host-manager/domain/value-objects/Biography.d.ts.map +1 -1
  164. package/build/types/carbonbox/users/clients/company/domain/Company.d.ts +53 -0
  165. package/build/types/carbonbox/users/clients/company/domain/Company.d.ts.map +1 -0
  166. package/build/types/carbonbox/users/clients/company/domain/ICompanyPrimitives.d.ts +11 -0
  167. package/build/types/carbonbox/users/clients/company/domain/ICompanyPrimitives.d.ts.map +1 -0
  168. package/build/types/carbonbox/users/clients/company/domain/value-objects/Avatar.d.ts +7 -0
  169. package/build/types/carbonbox/users/clients/company/domain/value-objects/Avatar.d.ts.map +1 -0
  170. package/build/types/carbonbox/users/clients/company/domain/value-objects/Biography.d.ts +6 -0
  171. package/build/types/carbonbox/users/clients/company/domain/value-objects/Biography.d.ts.map +1 -0
  172. package/build/types/carbonbox/users/clients/company/domain/value-objects/CreatedAt.d.ts +5 -0
  173. package/build/types/carbonbox/users/clients/company/domain/value-objects/CreatedAt.d.ts.map +1 -0
  174. package/build/types/carbonbox/users/clients/company/domain/value-objects/CreatedByUserId.d.ts +5 -0
  175. package/build/types/carbonbox/users/clients/company/domain/value-objects/CreatedByUserId.d.ts.map +1 -0
  176. package/build/types/carbonbox/users/clients/company/domain/value-objects/CreatedByUserType.d.ts +5 -0
  177. package/build/types/carbonbox/users/clients/company/domain/value-objects/CreatedByUserType.d.ts.map +1 -0
  178. package/build/types/carbonbox/users/clients/company/domain/value-objects/Description.d.ts +6 -0
  179. package/build/types/carbonbox/users/clients/company/domain/value-objects/Description.d.ts.map +1 -0
  180. package/build/types/carbonbox/users/clients/company/domain/value-objects/Email.d.ts +5 -0
  181. package/build/types/carbonbox/users/clients/company/domain/value-objects/Email.d.ts.map +1 -0
  182. package/build/types/carbonbox/users/clients/company/domain/value-objects/Id.d.ts +5 -0
  183. package/build/types/carbonbox/users/clients/company/domain/value-objects/Id.d.ts.map +1 -0
  184. package/build/types/carbonbox/users/clients/company/domain/value-objects/OfficialName.d.ts +6 -0
  185. package/build/types/carbonbox/users/clients/company/domain/value-objects/OfficialName.d.ts.map +1 -0
  186. package/build/types/carbonbox/users/clients/company/domain/value-objects/Password.d.ts +5 -0
  187. package/build/types/carbonbox/users/clients/company/domain/value-objects/Password.d.ts.map +1 -0
  188. package/build/types/carbonbox/users/clients/company/domain/value-objects/Phone.d.ts +5 -0
  189. package/build/types/carbonbox/users/clients/company/domain/value-objects/Phone.d.ts.map +1 -0
  190. package/build/types/carbonbox/users/clients/company/domain/value-objects/Roles.d.ts +5 -0
  191. package/build/types/carbonbox/users/clients/company/domain/value-objects/Roles.d.ts.map +1 -0
  192. package/build/types/carbonbox/users/clients/company/domain/value-objects/ShortName.d.ts +6 -0
  193. package/build/types/carbonbox/users/clients/company/domain/value-objects/ShortName.d.ts.map +1 -0
  194. package/build/types/carbonbox/users/clients/company/domain/value-objects/TaxIdentificationNumber.d.ts +5 -0
  195. package/build/types/carbonbox/users/clients/company/domain/value-objects/TaxIdentificationNumber.d.ts.map +1 -0
  196. package/build/types/carbonbox/users/clients/company/domain/value-objects/UpdatedAt.d.ts +5 -0
  197. package/build/types/carbonbox/users/clients/company/domain/value-objects/UpdatedAt.d.ts.map +1 -0
  198. package/build/types/carbonbox/users/clients/company/domain/value-objects/UserType.d.ts +8 -0
  199. package/build/types/carbonbox/users/clients/company/domain/value-objects/UserType.d.ts.map +1 -0
  200. package/build/types/carbonbox/users/clients/company/domain/value-objects/WorkLocation.d.ts +5 -0
  201. package/build/types/carbonbox/users/clients/company/domain/value-objects/WorkLocation.d.ts.map +1 -0
  202. package/build/types/carbonbox/users/clients/company-host-manager/domain/CompanyHost.d.ts +44 -0
  203. package/build/types/carbonbox/users/clients/company-host-manager/domain/CompanyHost.d.ts.map +1 -0
  204. package/build/types/carbonbox/users/clients/company-host-manager/domain/ICompanyHostManagerPrimitives.d.ts +9 -0
  205. package/build/types/carbonbox/users/clients/company-host-manager/domain/ICompanyHostManagerPrimitives.d.ts.map +1 -0
  206. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/ActiveCustomPlanId.d.ts +6 -0
  207. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/ActiveCustomPlanId.d.ts.map +1 -0
  208. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Avatar.d.ts +7 -0
  209. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Avatar.d.ts.map +1 -0
  210. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Biography.d.ts +6 -0
  211. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Biography.d.ts.map +1 -0
  212. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/CreatedAt.d.ts +5 -0
  213. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/CreatedAt.d.ts.map +1 -0
  214. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Email.d.ts +5 -0
  215. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Email.d.ts.map +1 -0
  216. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Id.d.ts +5 -0
  217. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Id.d.ts.map +1 -0
  218. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/OfficialName.d.ts +6 -0
  219. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/OfficialName.d.ts.map +1 -0
  220. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Password.d.ts +5 -0
  221. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Password.d.ts.map +1 -0
  222. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Phone.d.ts +5 -0
  223. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Phone.d.ts.map +1 -0
  224. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Roles.d.ts +5 -0
  225. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/Roles.d.ts.map +1 -0
  226. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/TaxIdentificationNumber.d.ts +5 -0
  227. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/TaxIdentificationNumber.d.ts.map +1 -0
  228. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/UpdatedAt.d.ts +5 -0
  229. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/UpdatedAt.d.ts.map +1 -0
  230. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/UserType.d.ts +8 -0
  231. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/UserType.d.ts.map +1 -0
  232. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/WorkLocation.d.ts +5 -0
  233. package/build/types/carbonbox/users/clients/company-host-manager/domain/value-objects/WorkLocation.d.ts.map +1 -0
  234. package/build/types/carbonbox/users/shared/domain/AnySystemUserType.d.ts +6 -0
  235. package/build/types/carbonbox/users/shared/domain/AnySystemUserType.d.ts.map +1 -1
  236. package/build/types/carbonbox/users/shared/domain/IAnySystemUserTypePrimitives.d.ts +2 -2
  237. package/build/types/carbonbox/users/shared/domain/IAnySystemUserTypePrimitives.d.ts.map +1 -1
  238. package/build/types/carbonbox/users/shared/domain/ICreationContext.d.ts +1 -2
  239. package/build/types/carbonbox/users/shared/domain/ICreationContext.d.ts.map +1 -1
  240. package/build/types/main/index.d.ts +12 -0
  241. package/build/types/main/index.d.ts.map +1 -1
  242. package/package.json +1 -1
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
5
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6
+ };
7
+ var _a, _PriceType_VALID_TYPES, _PriceType_ensureISValidType;
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.PriceType = void 0;
10
+ const String_1 = require("../../../../shared/domain/value-objects/String");
11
+ const InvalidServiceTypeError_1 = require("../exceptions/InvalidServiceTypeError");
12
+ class PriceType extends String_1.String {
13
+ constructor(value) {
14
+ super(value, 'type');
15
+ __classPrivateFieldGet(_a, _a, "m", _PriceType_ensureISValidType).call(_a, value);
16
+ }
17
+ static create(value) {
18
+ return new this(value);
19
+ }
20
+ }
21
+ exports.PriceType = PriceType;
22
+ _a = PriceType, _PriceType_ensureISValidType = function _PriceType_ensureISValidType(type) {
23
+ if (__classPrivateFieldGet(_a, _a, "f", _PriceType_VALID_TYPES).includes(type) === false) {
24
+ throw InvalidServiceTypeError_1.InvalidServiceTypeError.create(type, __classPrivateFieldGet(_a, _a, "f", _PriceType_VALID_TYPES));
25
+ }
26
+ };
27
+ _PriceType_VALID_TYPES = { value: ['PERCENTAGE', 'FIXED'] };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PriceUnit = void 0;
4
+ const String_1 = require("../../../../shared/domain/value-objects/String");
5
+ class PriceUnit extends String_1.String {
6
+ constructor(value) {
7
+ super(value, 'unit');
8
+ }
9
+ static create(value) {
10
+ return new this(value);
11
+ }
12
+ }
13
+ exports.PriceUnit = PriceUnit;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PriceValue = void 0;
4
+ const PositiveInteger_1 = require("../../../../shared/domain/value-objects/PositiveInteger");
5
+ class PriceValue extends PositiveInteger_1.PositiveInteger {
6
+ constructor(value) {
7
+ super(value, 'value');
8
+ }
9
+ static create(value) {
10
+ return new this(value);
11
+ }
12
+ }
13
+ exports.PriceValue = PriceValue;
@@ -0,0 +1,150 @@
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 _Coordinator__name, _Coordinator__gender, _Coordinator__phone, _Coordinator__workLocation, _Coordinator__isAvailable, _Coordinator__workSchedule, _Coordinator__createdByUserId, _Coordinator__createdByUserType, _Coordinator__avatar, _Coordinator__biography;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.Coordinator = void 0;
16
+ const User_1 = require("../../../shared/domain/User");
17
+ const Avatar_1 = require("./value-objects/Avatar");
18
+ const Biography_1 = require("./value-objects/Biography");
19
+ const CreatedAt_1 = require("./value-objects/CreatedAt");
20
+ const CreatedByUserId_1 = require("./value-objects/CreatedByUserId");
21
+ const CreatedByUserType_1 = require("./value-objects/CreatedByUserType");
22
+ const Email_1 = require("./value-objects/Email");
23
+ const Gender_1 = require("./value-objects/Gender");
24
+ const Id_1 = require("./value-objects/Id");
25
+ const IsAvailable_1 = require("./value-objects/IsAvailable");
26
+ const Name_1 = require("./value-objects/Name");
27
+ const Password_1 = require("./value-objects/Password");
28
+ const Phone_1 = require("./value-objects/Phone");
29
+ const Roles_1 = require("./value-objects/Roles");
30
+ const UpdatedAt_1 = require("./value-objects/UpdatedAt");
31
+ const UserType_1 = require("./value-objects/UserType");
32
+ const WorkLocation_1 = require("./value-objects/WorkLocation");
33
+ const WorkSchedule_1 = require("./value-objects/WorkSchedule");
34
+ class Coordinator extends User_1.User {
35
+ constructor(props) {
36
+ const id = Id_1.Id.create(props.id);
37
+ const createdAt = CreatedAt_1.CreatedAt.create(props.createdAt);
38
+ const updatedAt = UpdatedAt_1.UpdatedAt.create(props.createdAt);
39
+ const email = Email_1.Email.create(props.email);
40
+ const userType = UserType_1.UserType.create(props.userType);
41
+ const roles = Roles_1.Roles.create(props.roles);
42
+ const password = Password_1.Password.create(props.password);
43
+ super({
44
+ id: id.value,
45
+ createdAt: createdAt.value,
46
+ updatedAt: updatedAt.value,
47
+ email: email.value,
48
+ userType: userType.value,
49
+ roles: roles.value,
50
+ password: password.value,
51
+ });
52
+ _Coordinator__name.set(this, void 0);
53
+ _Coordinator__gender.set(this, void 0);
54
+ _Coordinator__phone.set(this, void 0);
55
+ _Coordinator__workLocation.set(this, void 0);
56
+ _Coordinator__isAvailable.set(this, void 0);
57
+ _Coordinator__workSchedule.set(this, void 0);
58
+ _Coordinator__createdByUserId.set(this, void 0);
59
+ _Coordinator__createdByUserType.set(this, void 0);
60
+ _Coordinator__avatar.set(this, void 0);
61
+ _Coordinator__biography.set(this, void 0);
62
+ __classPrivateFieldSet(this, _Coordinator__name, Name_1.Name.create(props.name), "f");
63
+ __classPrivateFieldSet(this, _Coordinator__gender, Gender_1.Gender.create(props.gender), "f");
64
+ __classPrivateFieldSet(this, _Coordinator__phone, Phone_1.Phone.create(props.phone), "f");
65
+ __classPrivateFieldSet(this, _Coordinator__workLocation, WorkLocation_1.WorkLocation.create(props.workLocation), "f");
66
+ __classPrivateFieldSet(this, _Coordinator__isAvailable, IsAvailable_1.IsAvailable.create(props.isAvailable), "f");
67
+ __classPrivateFieldSet(this, _Coordinator__workSchedule, WorkSchedule_1.WorkSchedule.create(props.workSchedule), "f");
68
+ __classPrivateFieldSet(this, _Coordinator__createdByUserId, CreatedByUserId_1.CreatedByUserId.create(props.createdByUserId), "f");
69
+ __classPrivateFieldSet(this, _Coordinator__createdByUserType, CreatedByUserType_1.CreatedByUserType.create(props.createdByUserType), "f");
70
+ __classPrivateFieldSet(this, _Coordinator__avatar, Avatar_1.Avatar.create(props.avatar), "f");
71
+ __classPrivateFieldSet(this, _Coordinator__biography, Biography_1.Biography.create(props.biography), "f");
72
+ }
73
+ static create(props) {
74
+ return new Coordinator(props);
75
+ }
76
+ static fromPrimitives(primitives) {
77
+ return new Coordinator({
78
+ id: primitives.id,
79
+ createdAt: primitives.createdAt,
80
+ updatedAt: primitives.updatedAt,
81
+ email: primitives.email,
82
+ password: primitives.password,
83
+ userType: primitives.userType,
84
+ roles: primitives.roles,
85
+ phone: primitives.phone,
86
+ workLocation: primitives.workLocation,
87
+ isAvailable: primitives.isAvailable,
88
+ workSchedule: primitives.workSchedule,
89
+ createdByUserId: primitives.createdByUserId,
90
+ createdByUserType: primitives.createdByUserType,
91
+ avatar: primitives.avatar,
92
+ biography: primitives.biography,
93
+ name: primitives.name,
94
+ gender: primitives.gender,
95
+ });
96
+ }
97
+ get name() {
98
+ return __classPrivateFieldGet(this, _Coordinator__name, "f");
99
+ }
100
+ get gender() {
101
+ return __classPrivateFieldGet(this, _Coordinator__gender, "f");
102
+ }
103
+ get phone() {
104
+ return __classPrivateFieldGet(this, _Coordinator__phone, "f");
105
+ }
106
+ get workLocation() {
107
+ return __classPrivateFieldGet(this, _Coordinator__workLocation, "f");
108
+ }
109
+ get isAvailable() {
110
+ return __classPrivateFieldGet(this, _Coordinator__isAvailable, "f");
111
+ }
112
+ get workSchedule() {
113
+ return __classPrivateFieldGet(this, _Coordinator__workSchedule, "f");
114
+ }
115
+ get createdByUserId() {
116
+ return __classPrivateFieldGet(this, _Coordinator__createdByUserId, "f");
117
+ }
118
+ get createdByUserType() {
119
+ return __classPrivateFieldGet(this, _Coordinator__createdByUserType, "f");
120
+ }
121
+ get avatar() {
122
+ return __classPrivateFieldGet(this, _Coordinator__avatar, "f");
123
+ }
124
+ get biography() {
125
+ return __classPrivateFieldGet(this, _Coordinator__biography, "f");
126
+ }
127
+ get toPrimitives() {
128
+ return {
129
+ id: this.id.value,
130
+ createdAt: this.createdAt.value,
131
+ updatedAt: this.updatedAt.value,
132
+ email: this.email.value,
133
+ password: this.password.value,
134
+ userType: this.userType.value,
135
+ roles: this.roles.value,
136
+ phone: __classPrivateFieldGet(this, _Coordinator__phone, "f").value,
137
+ workLocation: __classPrivateFieldGet(this, _Coordinator__workLocation, "f").value,
138
+ isAvailable: __classPrivateFieldGet(this, _Coordinator__isAvailable, "f").value,
139
+ workSchedule: __classPrivateFieldGet(this, _Coordinator__workSchedule, "f").value,
140
+ createdByUserId: __classPrivateFieldGet(this, _Coordinator__createdByUserId, "f").value,
141
+ createdByUserType: __classPrivateFieldGet(this, _Coordinator__createdByUserType, "f").value,
142
+ avatar: __classPrivateFieldGet(this, _Coordinator__avatar, "f").value,
143
+ biography: __classPrivateFieldGet(this, _Coordinator__biography, "f").value,
144
+ name: __classPrivateFieldGet(this, _Coordinator__name, "f").value,
145
+ gender: __classPrivateFieldGet(this, _Coordinator__gender, "f").value,
146
+ };
147
+ }
148
+ }
149
+ exports.Coordinator = Coordinator;
150
+ _Coordinator__name = new WeakMap(), _Coordinator__gender = new WeakMap(), _Coordinator__phone = new WeakMap(), _Coordinator__workLocation = new WeakMap(), _Coordinator__isAvailable = new WeakMap(), _Coordinator__workSchedule = new WeakMap(), _Coordinator__createdByUserId = new WeakMap(), _Coordinator__createdByUserType = new WeakMap(), _Coordinator__avatar = new WeakMap(), _Coordinator__biography = new WeakMap();
@@ -6,5 +6,8 @@ class Avatar extends Avatar_1.Avatar {
6
6
  constructor(value) {
7
7
  super(value);
8
8
  }
9
+ static create(value) {
10
+ return new Avatar(value);
11
+ }
9
12
  }
10
13
  exports.Avatar = Avatar;
@@ -6,5 +6,8 @@ class Biography extends NullableString_1.NullableString {
6
6
  constructor(value) {
7
7
  super(value, 'biography');
8
8
  }
9
+ static create(value) {
10
+ return new Biography(value);
11
+ }
9
12
  }
10
13
  exports.Biography = Biography;
@@ -0,0 +1,118 @@
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 _HostManager__name, _HostManager__gender, _HostManager__phone, _HostManager__workLocation, _HostManager__avatar, _HostManager__biography;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.HostManager = void 0;
16
+ const User_1 = require("../../../shared/domain/User");
17
+ const Roles_1 = require("../../../shared/domain/value-objects/Roles");
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 Gender_1 = require("./value-objects/Gender");
23
+ const Id_1 = require("./value-objects/Id");
24
+ const Name_1 = require("./value-objects/Name");
25
+ const Password_1 = require("./value-objects/Password");
26
+ const Phone_1 = require("./value-objects/Phone");
27
+ const UpdatedAt_1 = require("./value-objects/UpdatedAt");
28
+ const UserType_1 = require("./value-objects/UserType");
29
+ const WorkLocation_1 = require("./value-objects/WorkLocation");
30
+ class HostManager extends User_1.User {
31
+ constructor(props) {
32
+ const id = Id_1.Id.create(props.id);
33
+ const createdAt = CreatedAt_1.CreatedAt.create(props.createdAt);
34
+ const updatedAt = UpdatedAt_1.UpdatedAt.create(props.createdAt);
35
+ const email = Email_1.Email.create(props.email);
36
+ const userType = UserType_1.UserType.create(props.userType);
37
+ const roles = Roles_1.Roles.create(props.roles);
38
+ const password = Password_1.Password.create(props.password);
39
+ super({
40
+ id: id.value,
41
+ createdAt: createdAt.value,
42
+ updatedAt: updatedAt.value,
43
+ email: email.value,
44
+ userType: userType.value,
45
+ roles: roles.value,
46
+ password: password.value,
47
+ });
48
+ _HostManager__name.set(this, void 0);
49
+ _HostManager__gender.set(this, void 0);
50
+ _HostManager__phone.set(this, void 0);
51
+ _HostManager__workLocation.set(this, void 0);
52
+ _HostManager__avatar.set(this, void 0);
53
+ _HostManager__biography.set(this, void 0);
54
+ __classPrivateFieldSet(this, _HostManager__name, Name_1.Name.create(props.name), "f");
55
+ __classPrivateFieldSet(this, _HostManager__gender, Gender_1.Gender.create(props.gender), "f");
56
+ __classPrivateFieldSet(this, _HostManager__phone, Phone_1.Phone.create(props.phone), "f");
57
+ __classPrivateFieldSet(this, _HostManager__avatar, Avatar_1.Avatar.create(props.avatar), "f");
58
+ __classPrivateFieldSet(this, _HostManager__biography, Biography_1.Biography.create(props.biography), "f");
59
+ __classPrivateFieldSet(this, _HostManager__workLocation, WorkLocation_1.WorkLocation.create(props.workLocation), "f");
60
+ }
61
+ static create(props) {
62
+ return new HostManager(props);
63
+ }
64
+ static fromPrimitives(primitives) {
65
+ return new HostManager({
66
+ id: primitives.id,
67
+ createdAt: primitives.createdAt,
68
+ updatedAt: primitives.updatedAt,
69
+ email: primitives.email,
70
+ password: primitives.password,
71
+ userType: primitives.userType,
72
+ roles: primitives.roles,
73
+ phone: primitives.phone,
74
+ workLocation: primitives.workLocation,
75
+ avatar: primitives.avatar,
76
+ biography: primitives.biography,
77
+ name: primitives.name,
78
+ gender: primitives.gender,
79
+ });
80
+ }
81
+ get name() {
82
+ return __classPrivateFieldGet(this, _HostManager__name, "f");
83
+ }
84
+ get gender() {
85
+ return __classPrivateFieldGet(this, _HostManager__gender, "f");
86
+ }
87
+ get phone() {
88
+ return __classPrivateFieldGet(this, _HostManager__phone, "f");
89
+ }
90
+ get workLocation() {
91
+ return __classPrivateFieldGet(this, _HostManager__workLocation, "f");
92
+ }
93
+ get avatar() {
94
+ return __classPrivateFieldGet(this, _HostManager__avatar, "f");
95
+ }
96
+ get biography() {
97
+ return __classPrivateFieldGet(this, _HostManager__biography, "f");
98
+ }
99
+ get toPrimitives() {
100
+ return {
101
+ id: this.id.value,
102
+ createdAt: this.createdAt.value,
103
+ updatedAt: this.updatedAt.value,
104
+ email: this.email.value,
105
+ password: this.password.value,
106
+ userType: this.userType.value,
107
+ roles: this.roles.value,
108
+ phone: __classPrivateFieldGet(this, _HostManager__phone, "f").value,
109
+ workLocation: __classPrivateFieldGet(this, _HostManager__workLocation, "f").value,
110
+ avatar: __classPrivateFieldGet(this, _HostManager__avatar, "f").value,
111
+ biography: __classPrivateFieldGet(this, _HostManager__biography, "f").value,
112
+ name: __classPrivateFieldGet(this, _HostManager__name, "f").value,
113
+ gender: __classPrivateFieldGet(this, _HostManager__gender, "f").value,
114
+ };
115
+ }
116
+ }
117
+ exports.HostManager = HostManager;
118
+ _HostManager__name = new WeakMap(), _HostManager__gender = new WeakMap(), _HostManager__phone = new WeakMap(), _HostManager__workLocation = new WeakMap(), _HostManager__avatar = new WeakMap(), _HostManager__biography = new WeakMap();
@@ -6,5 +6,8 @@ class Avatar extends Avatar_1.Avatar {
6
6
  constructor(value) {
7
7
  super(value);
8
8
  }
9
+ static create(value) {
10
+ return new Avatar(value);
11
+ }
9
12
  }
10
13
  exports.Avatar = Avatar;
@@ -6,5 +6,8 @@ class Biography extends NullableString_1.NullableString {
6
6
  constructor(value) {
7
7
  super(value, 'biography');
8
8
  }
9
+ static create(value) {
10
+ return new Biography(value);
11
+ }
9
12
  }
10
13
  exports.Biography = Biography;
@@ -0,0 +1,150 @@
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 _Company__officialName, _Company__shortName, _Company__taxIdentificationNumber, _Company__description, _Company__phone, _Company__workLocation, _Company__createdByUserId, _Company__createdByUserType, _Company__avatar, _Company__biography;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.Company = void 0;
16
+ const User_1 = require("../../../shared/domain/User");
17
+ const Avatar_1 = require("./value-objects/Avatar");
18
+ const Biography_1 = require("./value-objects/Biography");
19
+ const CreatedAt_1 = require("./value-objects/CreatedAt");
20
+ const CreatedByUserId_1 = require("./value-objects/CreatedByUserId");
21
+ const CreatedByUserType_1 = require("./value-objects/CreatedByUserType");
22
+ const Description_1 = require("./value-objects/Description");
23
+ const Email_1 = require("./value-objects/Email");
24
+ const Id_1 = require("./value-objects/Id");
25
+ const OfficialName_1 = require("./value-objects/OfficialName");
26
+ const Password_1 = require("./value-objects/Password");
27
+ const Phone_1 = require("./value-objects/Phone");
28
+ const Roles_1 = require("./value-objects/Roles");
29
+ const ShortName_1 = require("./value-objects/ShortName");
30
+ const TaxIdentificationNumber_1 = require("./value-objects/TaxIdentificationNumber");
31
+ const UpdatedAt_1 = require("./value-objects/UpdatedAt");
32
+ const UserType_1 = require("./value-objects/UserType");
33
+ const WorkLocation_1 = require("./value-objects/WorkLocation");
34
+ class Company extends User_1.User {
35
+ constructor(props) {
36
+ const id = Id_1.Id.create(props.id);
37
+ const createdAt = CreatedAt_1.CreatedAt.create(props.createdAt);
38
+ const updatedAt = UpdatedAt_1.UpdatedAt.create(props.createdAt);
39
+ const email = Email_1.Email.create(props.email);
40
+ const userType = UserType_1.UserType.create(props.userType);
41
+ const roles = Roles_1.Roles.create(props.roles);
42
+ const password = Password_1.Password.create(props.password);
43
+ super({
44
+ id: id.value,
45
+ createdAt: createdAt.value,
46
+ updatedAt: updatedAt.value,
47
+ email: email.value,
48
+ userType: userType.value,
49
+ roles: roles.value,
50
+ password: password.value,
51
+ });
52
+ _Company__officialName.set(this, void 0);
53
+ _Company__shortName.set(this, void 0);
54
+ _Company__taxIdentificationNumber.set(this, void 0);
55
+ _Company__description.set(this, void 0);
56
+ _Company__phone.set(this, void 0);
57
+ _Company__workLocation.set(this, void 0);
58
+ _Company__createdByUserId.set(this, void 0);
59
+ _Company__createdByUserType.set(this, void 0);
60
+ _Company__avatar.set(this, void 0);
61
+ _Company__biography.set(this, void 0);
62
+ __classPrivateFieldSet(this, _Company__officialName, OfficialName_1.OfficialName.create(props.officialName), "f");
63
+ __classPrivateFieldSet(this, _Company__shortName, ShortName_1.ShortName.create(props.shortName), "f");
64
+ __classPrivateFieldSet(this, _Company__taxIdentificationNumber, TaxIdentificationNumber_1.TaxIdentificationNumber.create(props.taxIdentificationNumber), "f");
65
+ __classPrivateFieldSet(this, _Company__description, Description_1.Description.create(props.description), "f");
66
+ __classPrivateFieldSet(this, _Company__phone, Phone_1.Phone.create(props.phone), "f");
67
+ __classPrivateFieldSet(this, _Company__workLocation, WorkLocation_1.WorkLocation.create(props.workLocation), "f");
68
+ __classPrivateFieldSet(this, _Company__createdByUserId, CreatedByUserId_1.CreatedByUserId.create(props.createdByUserId), "f");
69
+ __classPrivateFieldSet(this, _Company__createdByUserType, CreatedByUserType_1.CreatedByUserType.create(props.createdByUserType), "f");
70
+ __classPrivateFieldSet(this, _Company__avatar, Avatar_1.Avatar.create(props.avatar), "f");
71
+ __classPrivateFieldSet(this, _Company__biography, Biography_1.Biography.create(props.biography), "f");
72
+ }
73
+ static create(props) {
74
+ return new Company(props);
75
+ }
76
+ static fromPrimitives(primitives) {
77
+ return new Company({
78
+ id: primitives.id,
79
+ createdAt: primitives.createdAt,
80
+ updatedAt: primitives.updatedAt,
81
+ email: primitives.email,
82
+ password: primitives.password,
83
+ userType: primitives.userType,
84
+ roles: primitives.roles,
85
+ phone: primitives.phone,
86
+ workLocation: primitives.workLocation,
87
+ createdByUserId: primitives.createdByUserId,
88
+ createdByUserType: primitives.createdByUserType,
89
+ avatar: primitives.avatar,
90
+ biography: primitives.biography,
91
+ officialName: primitives.officialName,
92
+ shortName: primitives.shortName,
93
+ taxIdentificationNumber: primitives.taxIdentificationNumber,
94
+ description: primitives.description,
95
+ });
96
+ }
97
+ get officialName() {
98
+ return __classPrivateFieldGet(this, _Company__officialName, "f");
99
+ }
100
+ get shortName() {
101
+ return __classPrivateFieldGet(this, _Company__shortName, "f");
102
+ }
103
+ get taxIdentificationNumber() {
104
+ return __classPrivateFieldGet(this, _Company__taxIdentificationNumber, "f");
105
+ }
106
+ get description() {
107
+ return __classPrivateFieldGet(this, _Company__description, "f");
108
+ }
109
+ get phone() {
110
+ return __classPrivateFieldGet(this, _Company__phone, "f");
111
+ }
112
+ get workLocation() {
113
+ return __classPrivateFieldGet(this, _Company__workLocation, "f");
114
+ }
115
+ get createdByUserId() {
116
+ return __classPrivateFieldGet(this, _Company__createdByUserId, "f");
117
+ }
118
+ get createdByUserType() {
119
+ return __classPrivateFieldGet(this, _Company__createdByUserType, "f");
120
+ }
121
+ get avatar() {
122
+ return __classPrivateFieldGet(this, _Company__avatar, "f");
123
+ }
124
+ get biography() {
125
+ return __classPrivateFieldGet(this, _Company__biography, "f");
126
+ }
127
+ get toPrimitives() {
128
+ return {
129
+ id: this.id.value,
130
+ createdAt: this.createdAt.value,
131
+ updatedAt: this.updatedAt.value,
132
+ email: this.email.value,
133
+ password: this.password.value,
134
+ userType: this.userType.value,
135
+ roles: this.roles.value,
136
+ phone: __classPrivateFieldGet(this, _Company__phone, "f").value,
137
+ workLocation: __classPrivateFieldGet(this, _Company__workLocation, "f").value,
138
+ createdByUserId: __classPrivateFieldGet(this, _Company__createdByUserId, "f").value,
139
+ createdByUserType: __classPrivateFieldGet(this, _Company__createdByUserType, "f").value,
140
+ avatar: __classPrivateFieldGet(this, _Company__avatar, "f").value,
141
+ biography: __classPrivateFieldGet(this, _Company__biography, "f").value,
142
+ officialName: __classPrivateFieldGet(this, _Company__officialName, "f").value,
143
+ shortName: __classPrivateFieldGet(this, _Company__shortName, "f").value,
144
+ taxIdentificationNumber: __classPrivateFieldGet(this, _Company__taxIdentificationNumber, "f").value,
145
+ description: __classPrivateFieldGet(this, _Company__description, "f").value,
146
+ };
147
+ }
148
+ }
149
+ exports.Company = Company;
150
+ _Company__officialName = new WeakMap(), _Company__shortName = new WeakMap(), _Company__taxIdentificationNumber = new WeakMap(), _Company__description = new WeakMap(), _Company__phone = new WeakMap(), _Company__workLocation = new WeakMap(), _Company__createdByUserId = new WeakMap(), _Company__createdByUserType = new WeakMap(), _Company__avatar = new WeakMap(), _Company__biography = new WeakMap();
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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.CreatedByUserId = void 0;
4
+ const CreatedByUserId_1 = require("../../../../shared/domain/value-objects/CreatedByUserId");
5
+ class CreatedByUserId extends CreatedByUserId_1.CreatedByUserId {
6
+ constructor(value) {
7
+ super(value);
8
+ }
9
+ }
10
+ exports.CreatedByUserId = CreatedByUserId;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreatedByUserType = void 0;
4
+ const CreatedByUserType_1 = require("../../../../shared/domain/value-objects/CreatedByUserType");
5
+ class CreatedByUserType extends CreatedByUserType_1.CreatedByUserType {
6
+ constructor(value) {
7
+ super(value);
8
+ }
9
+ }
10
+ exports.CreatedByUserType = CreatedByUserType;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Description = void 0;
4
+ const NullableString_1 = require("../../../../../shared/domain/value-objects/NullableString");
5
+ class Description extends NullableString_1.NullableString {
6
+ constructor(value) {
7
+ super(value, 'description');
8
+ }
9
+ static create(value) {
10
+ return new Description(value);
11
+ }
12
+ }
13
+ exports.Description = Description;
@@ -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;
@@ -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;