@infrab4a/connect 0.15.0 → 0.16.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (725) hide show
  1. package/bundles/infrab4a-connect.umd.js +110 -55
  2. package/bundles/infrab4a-connect.umd.js.map +1 -1
  3. package/{lib/domain → domain}/catalog/repositories/category.repository.d.ts +4 -1
  4. package/esm2015/domain/catalog/index.js +3 -0
  5. package/esm2015/domain/catalog/models/category.js +7 -0
  6. package/esm2015/domain/catalog/models/enums/index.js +2 -0
  7. package/esm2015/domain/catalog/models/enums/shops.enum.js +7 -0
  8. package/esm2015/domain/catalog/models/index.js +6 -0
  9. package/esm2015/domain/catalog/models/product.js +11 -0
  10. package/esm2015/domain/catalog/models/types/category-condition.type.js +2 -0
  11. package/esm2015/domain/catalog/models/types/category-filter.type.js +2 -0
  12. package/esm2015/domain/catalog/models/types/index.js +8 -0
  13. package/esm2015/domain/catalog/models/types/product-review.type.js +2 -0
  14. package/esm2015/domain/catalog/models/types/shops-description.type.js +2 -0
  15. package/esm2015/domain/catalog/models/types/shops-price.type.js +2 -0
  16. package/esm2015/domain/catalog/models/types/stock.type.js +2 -0
  17. package/esm2015/domain/catalog/models/types/variant-grade.type.js +2 -0
  18. package/esm2015/domain/catalog/models/variant.js +7 -0
  19. package/esm2015/domain/catalog/repositories/category.repository.js +2 -0
  20. package/esm2015/domain/catalog/repositories/index.js +5 -0
  21. package/esm2015/domain/catalog/repositories/product.repository.js +2 -0
  22. package/esm2015/domain/catalog/repositories/subscription-product.repository.js +2 -0
  23. package/esm2015/domain/catalog/repositories/variant.repository.js +2 -0
  24. package/esm2015/domain/general/index.js +3 -0
  25. package/esm2015/domain/general/model/base-model-with-identifier-fields.js +2 -0
  26. package/esm2015/domain/general/model/base.model.js +13 -0
  27. package/esm2015/domain/general/model/identifier-fields.js +2 -0
  28. package/esm2015/domain/general/model/index.js +5 -0
  29. package/esm2015/domain/general/model/types/base-model-builder.type.js +2 -0
  30. package/esm2015/domain/general/model/types/index.js +4 -0
  31. package/esm2015/domain/general/model/types/non-function-properties.type.js +2 -0
  32. package/esm2015/domain/general/model/types/non-function-property-name.type.js +2 -0
  33. package/esm2015/domain/general/repository/create.repository.js +2 -0
  34. package/esm2015/domain/general/repository/crud.repository.js +2 -0
  35. package/esm2015/domain/general/repository/delete.repository.js +2 -0
  36. package/esm2015/domain/general/repository/enums/index.js +3 -0
  37. package/esm2015/domain/general/repository/enums/update-option-actions.enum.js +9 -0
  38. package/esm2015/domain/general/repository/enums/where.enum.js +12 -0
  39. package/esm2015/domain/general/repository/find.repository.js +2 -0
  40. package/esm2015/domain/general/repository/get.repository.js +2 -0
  41. package/esm2015/domain/general/repository/index.js +10 -0
  42. package/esm2015/domain/general/repository/read.repository.js +2 -0
  43. package/esm2015/domain/general/repository/types/index.js +6 -0
  44. package/esm2015/domain/general/repository/types/repository-find-filters.type.js +2 -0
  45. package/esm2015/domain/general/repository/types/repository-find-result.type.js +2 -0
  46. package/esm2015/domain/general/repository/types/repository-limit-options.type.js +2 -0
  47. package/esm2015/domain/general/repository/types/repository-order-by-list.type.js +2 -0
  48. package/esm2015/domain/general/repository/types/repository-update-params.type.js +2 -0
  49. package/esm2015/domain/general/repository/update.repository.js +2 -0
  50. package/esm2015/domain/index.js +7 -0
  51. package/esm2015/domain/location/index.js +2 -0
  52. package/esm2015/domain/location/models/address.js +4 -0
  53. package/esm2015/domain/location/models/index.js +3 -0
  54. package/esm2015/domain/location/models/types/index.js +4 -0
  55. package/esm2015/domain/location/models/types/location-bound.type.js +2 -0
  56. package/esm2015/domain/location/models/types/location-geometry.type.js +2 -0
  57. package/esm2015/domain/location/models/types/location-lat-lng.type.js +2 -0
  58. package/esm2015/domain/shop-settings/enums/filter-type.enum.js +21 -0
  59. package/esm2015/domain/shop-settings/enums/index.js +3 -0
  60. package/esm2015/domain/shop-settings/enums/questions-filters.enum.js +21 -0
  61. package/esm2015/domain/shop-settings/helpers/beauty-questions.helper.js +46 -0
  62. package/esm2015/domain/shop-settings/helpers/index.js +2 -0
  63. package/esm2015/domain/shop-settings/index.js +5 -0
  64. package/esm2015/domain/shop-settings/models/home.js +7 -0
  65. package/esm2015/domain/shop-settings/models/index.js +4 -0
  66. package/esm2015/domain/shop-settings/models/shop-menu.js +7 -0
  67. package/esm2015/domain/shop-settings/models/types/banner.type.js +2 -0
  68. package/esm2015/domain/shop-settings/models/types/benefit.type.js +2 -0
  69. package/esm2015/domain/shop-settings/models/types/home-data.type.js +2 -0
  70. package/esm2015/domain/shop-settings/models/types/index.js +6 -0
  71. package/esm2015/domain/shop-settings/models/types/menu-nav.type.js +2 -0
  72. package/esm2015/domain/shop-settings/models/types/sub-menu.type.js +2 -0
  73. package/esm2015/domain/shop-settings/repositories/home.repository.js +2 -0
  74. package/esm2015/domain/shop-settings/repositories/index.js +3 -0
  75. package/esm2015/domain/shop-settings/repositories/shop-menu.repository.js +2 -0
  76. package/esm2015/domain/shopping/index.js +3 -0
  77. package/esm2015/domain/shopping/models/buy-2-win.js +14 -0
  78. package/esm2015/domain/shopping/models/checkout.js +38 -0
  79. package/esm2015/domain/shopping/models/coupons/coupon.js +23 -0
  80. package/esm2015/domain/shopping/models/coupons/enums/coupon-subtypes.enum.js +6 -0
  81. package/esm2015/domain/shopping/models/coupons/enums/coupon-types.enum.js +8 -0
  82. package/esm2015/domain/shopping/models/coupons/enums/exclusivities.enum.js +7 -0
  83. package/esm2015/domain/shopping/models/coupons/enums/index.js +4 -0
  84. package/esm2015/domain/shopping/models/coupons/financial-coupon.js +28 -0
  85. package/esm2015/domain/shopping/models/coupons/index.js +4 -0
  86. package/esm2015/domain/shopping/models/enums/checkout-types.enum.js +6 -0
  87. package/esm2015/domain/shopping/models/enums/index.js +3 -0
  88. package/esm2015/domain/shopping/models/enums/order-status.enum.js +12 -0
  89. package/esm2015/domain/shopping/models/index.js +12 -0
  90. package/esm2015/domain/shopping/models/line-item.js +4 -0
  91. package/esm2015/domain/shopping/models/order.js +11 -0
  92. package/esm2015/domain/shopping/models/payment.js +169 -0
  93. package/esm2015/domain/shopping/models/shipping-method.js +7 -0
  94. package/esm2015/domain/shopping/models/subscription/checkout.js +28 -0
  95. package/esm2015/domain/shopping/models/subscription/index.js +3 -0
  96. package/esm2015/domain/shopping/models/subscription/plan.js +7 -0
  97. package/esm2015/domain/shopping/models/types/index.js +8 -0
  98. package/esm2015/domain/shopping/models/types/payment-address.type.js +2 -0
  99. package/esm2015/domain/shopping/models/types/payment-billing.type.js +2 -0
  100. package/esm2015/domain/shopping/models/types/payment-card.type.js +2 -0
  101. package/esm2015/domain/shopping/models/types/payment-customer.type.js +2 -0
  102. package/esm2015/domain/shopping/models/types/payment-document.type.js +2 -0
  103. package/esm2015/domain/shopping/models/types/payment-item.type.js +2 -0
  104. package/esm2015/domain/shopping/models/types/payment-shipping.type.js +2 -0
  105. package/esm2015/domain/shopping/repositories/buy-2-win.repository.js +2 -0
  106. package/esm2015/domain/shopping/repositories/checkout.repository.js +2 -0
  107. package/esm2015/domain/shopping/repositories/coupon.repository.js +2 -0
  108. package/esm2015/domain/shopping/repositories/index.js +8 -0
  109. package/esm2015/domain/shopping/repositories/legacy-order.repository.js +2 -0
  110. package/esm2015/domain/shopping/repositories/order.repository.js +2 -0
  111. package/esm2015/domain/shopping/repositories/payment.repository.js +2 -0
  112. package/esm2015/domain/shopping/repositories/subscription/checkout.repository.js +2 -0
  113. package/esm2015/domain/shopping/repositories/subscription/index.js +3 -0
  114. package/esm2015/domain/shopping/repositories/subscription/plan.repository.js +2 -0
  115. package/esm2015/domain/users/errors/index.js +4 -0
  116. package/esm2015/domain/users/errors/unauthorized.error.js +7 -0
  117. package/esm2015/domain/users/errors/user-already-registered.error.js +7 -0
  118. package/esm2015/domain/users/errors/weak-password.error.js +7 -0
  119. package/esm2015/domain/users/index.js +6 -0
  120. package/esm2015/domain/users/models/beauty-profile.js +12 -0
  121. package/esm2015/domain/users/models/enums/accessory-importances.enum.js +7 -0
  122. package/esm2015/domain/users/models/enums/area.enum.js +13 -0
  123. package/esm2015/domain/users/models/enums/beard-problems.enum.js +11 -0
  124. package/esm2015/domain/users/models/enums/beard-sizes.enum.js +9 -0
  125. package/esm2015/domain/users/models/enums/beauty-product-importances.enum.js +8 -0
  126. package/esm2015/domain/users/models/enums/body-problems.enum.js +13 -0
  127. package/esm2015/domain/users/models/enums/body-shapes.enum.js +9 -0
  128. package/esm2015/domain/users/models/enums/body-tattoos.enum.js +7 -0
  129. package/esm2015/domain/users/models/enums/face-skin-oilinesses.enum.js +9 -0
  130. package/esm2015/domain/users/models/enums/face-skin-problems.enum.js +12 -0
  131. package/esm2015/domain/users/models/enums/face-skin-tones.enum.js +10 -0
  132. package/esm2015/domain/users/models/enums/family-incomes.enum.js +10 -0
  133. package/esm2015/domain/users/models/enums/fragrance-importances.enum.js +7 -0
  134. package/esm2015/domain/users/models/enums/hair-colors.enum.js +12 -0
  135. package/esm2015/domain/users/models/enums/hair-problems.enum.js +12 -0
  136. package/esm2015/domain/users/models/enums/hair-strands.enum.js +10 -0
  137. package/esm2015/domain/users/models/enums/hair-types.enum.js +9 -0
  138. package/esm2015/domain/users/models/enums/index.js +21 -0
  139. package/esm2015/domain/users/models/enums/office-position.enum.js +8 -0
  140. package/esm2015/domain/users/models/enums/product-spents.enum.js +10 -0
  141. package/esm2015/domain/users/models/enums/user-type.enum.js +10 -0
  142. package/esm2015/domain/users/models/index.js +8 -0
  143. package/esm2015/domain/users/models/lead.js +7 -0
  144. package/esm2015/domain/users/models/subscription/edition.js +7 -0
  145. package/esm2015/domain/users/models/subscription/enums/billing-status.enum.js +5 -0
  146. package/esm2015/domain/users/models/subscription/enums/edition-status.enum.js +6 -0
  147. package/esm2015/domain/users/models/subscription/enums/index.js +5 -0
  148. package/esm2015/domain/users/models/subscription/enums/payment-type.enum.js +7 -0
  149. package/esm2015/domain/users/models/subscription/enums/status.enum.js +6 -0
  150. package/esm2015/domain/users/models/subscription/index.js +5 -0
  151. package/esm2015/domain/users/models/subscription/payment.js +14 -0
  152. package/esm2015/domain/users/models/subscription/subscription.js +43 -0
  153. package/esm2015/domain/users/models/user-address.js +7 -0
  154. package/esm2015/domain/users/models/user-payment-method.js +7 -0
  155. package/esm2015/domain/users/models/user.js +26 -0
  156. package/esm2015/domain/users/repositories/beauty-profile.repository.js +2 -0
  157. package/esm2015/domain/users/repositories/edition.repository.js +2 -0
  158. package/esm2015/domain/users/repositories/index.js +9 -0
  159. package/esm2015/domain/users/repositories/lead.repository.js +2 -0
  160. package/esm2015/domain/users/repositories/subscription-payment.repository.js +2 -0
  161. package/esm2015/domain/users/repositories/subscription.repository.js +2 -0
  162. package/esm2015/domain/users/repositories/user-address.repository.js +2 -0
  163. package/esm2015/domain/users/repositories/user-payment-method.repository.js +2 -0
  164. package/esm2015/domain/users/repositories/user.repository.js +2 -0
  165. package/esm2015/domain/users/services/authentication.service.js +2 -0
  166. package/esm2015/domain/users/services/index.js +4 -0
  167. package/esm2015/domain/users/services/register.service.js +2 -0
  168. package/esm2015/domain/users/services/types/basic-user-data.type.js +2 -0
  169. package/esm2015/domain/users/services/types/index.js +2 -0
  170. package/esm2015/domain/users/use-cases/authentication.js +40 -0
  171. package/esm2015/domain/users/use-cases/index.js +5 -0
  172. package/esm2015/domain/users/use-cases/recovery-password.js +12 -0
  173. package/esm2015/domain/users/use-cases/register.js +34 -0
  174. package/esm2015/domain/users/use-cases/signout.js +12 -0
  175. package/esm2015/errors/duplicated-results.error.js +7 -0
  176. package/esm2015/errors/index.js +5 -0
  177. package/esm2015/errors/invalid-argument.error.js +7 -0
  178. package/esm2015/errors/not-found.error.js +7 -0
  179. package/esm2015/errors/required-argument.error.js +8 -0
  180. package/esm2015/index.js +6 -0
  181. package/esm2015/infra/elasticsearch/adapters/axios.adapter.js +22 -0
  182. package/esm2015/infra/elasticsearch/adapters/elastic-search.adapter.js +2 -0
  183. package/esm2015/infra/elasticsearch/adapters/index.js +3 -0
  184. package/esm2015/infra/elasticsearch/index.js +4 -0
  185. package/esm2015/infra/elasticsearch/indexes/index.js +2 -0
  186. package/esm2015/infra/elasticsearch/indexes/products-index.js +58 -0
  187. package/esm2015/infra/elasticsearch/types/elastic-search-result.js +2 -0
  188. package/esm2015/infra/elasticsearch/types/index.js +2 -0
  189. package/esm2015/infra/firebase/auth/authentication-firebase-auth.service.js +52 -0
  190. package/esm2015/infra/firebase/auth/index.js +3 -0
  191. package/esm2015/infra/firebase/auth/register-firebase-auth.service.js +26 -0
  192. package/esm2015/infra/firebase/auth/types/firebase-user-with-id.type.js +2 -0
  193. package/esm2015/infra/firebase/firestore/index.js +4 -0
  194. package/esm2015/infra/firebase/firestore/mixins/index.js +10 -0
  195. package/esm2015/infra/firebase/firestore/mixins/with-create-firestore.mixin.js +31 -0
  196. package/esm2015/infra/firebase/firestore/mixins/with-crud-firestore.mixin.js +10 -0
  197. package/esm2015/infra/firebase/firestore/mixins/with-delete-firestore.mixin.js +18 -0
  198. package/esm2015/infra/firebase/firestore/mixins/with-find-firestore.mixin.js +87 -0
  199. package/esm2015/infra/firebase/firestore/mixins/with-firestore.mixin.js +26 -0
  200. package/esm2015/infra/firebase/firestore/mixins/with-get-firestore.mixin.js +24 -0
  201. package/esm2015/infra/firebase/firestore/mixins/with-helpers.mixin.js +17 -0
  202. package/esm2015/infra/firebase/firestore/mixins/with-sub-collection.mixin.js +11 -0
  203. package/esm2015/infra/firebase/firestore/mixins/with-update-firestore.mixin.js +45 -0
  204. package/esm2015/infra/firebase/firestore/models/user-search.js +7 -0
  205. package/esm2015/infra/firebase/firestore/repositories/catalog/category-firestore.repository.js +59 -0
  206. package/esm2015/infra/firebase/firestore/repositories/catalog/index.js +5 -0
  207. package/esm2015/infra/firebase/firestore/repositories/catalog/product-firestore.repository.js +23 -0
  208. package/esm2015/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.js +14 -0
  209. package/esm2015/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.js +12 -0
  210. package/esm2015/infra/firebase/firestore/repositories/index.js +5 -0
  211. package/esm2015/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.js +56 -0
  212. package/esm2015/infra/firebase/firestore/repositories/shop-settings/index.js +3 -0
  213. package/esm2015/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.js +12 -0
  214. package/esm2015/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.js +12 -0
  215. package/esm2015/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.js +12 -0
  216. package/esm2015/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.js +12 -0
  217. package/esm2015/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.js +29 -0
  218. package/esm2015/infra/firebase/firestore/repositories/shopping/index.js +9 -0
  219. package/esm2015/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.js +9 -0
  220. package/esm2015/infra/firebase/firestore/repositories/shopping/order-firestore.repository.js +12 -0
  221. package/esm2015/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.js +12 -0
  222. package/esm2015/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.js +12 -0
  223. package/esm2015/infra/firebase/firestore/repositories/users/index.js +10 -0
  224. package/esm2015/infra/firebase/firestore/repositories/users/lead-firestore.repository.js +12 -0
  225. package/esm2015/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.js +14 -0
  226. package/esm2015/infra/firebase/firestore/repositories/users/subscription-firestore.repository.js +12 -0
  227. package/esm2015/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.js +14 -0
  228. package/esm2015/infra/firebase/firestore/repositories/users/user-address-firestore.repository.js +14 -0
  229. package/esm2015/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.js +14 -0
  230. package/esm2015/infra/firebase/firestore/repositories/users/user-firestore.repository.js +70 -0
  231. package/esm2015/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.js +14 -0
  232. package/esm2015/infra/firebase/firestore/repositories/users/user-search-firestore.repository.js +12 -0
  233. package/esm2015/infra/firebase/firestore/types/firestore-sub.repository.type.js +2 -0
  234. package/esm2015/infra/firebase/firestore/types/firestore.helpers.type.js +2 -0
  235. package/esm2015/infra/firebase/firestore/types/firestore.repository.type.js +2 -0
  236. package/esm2015/infra/firebase/firestore/types/index.js +4 -0
  237. package/esm2015/infra/firebase/index.js +3 -0
  238. package/esm2015/infra/index.js +3 -0
  239. package/esm2015/infrab4a-connect.js +2 -2
  240. package/esm2015/utils/index.js +6 -0
  241. package/esm2015/utils/mixins/base.mixin.js +6 -0
  242. package/esm2015/utils/mixins/index.js +3 -0
  243. package/esm2015/utils/mixins/mixin-ctor.type.js +2 -0
  244. package/esm2015/utils/types/index.js +2 -0
  245. package/esm2015/utils/types/prop.type.js +2 -0
  246. package/fesm2015/infrab4a-connect.js +86 -20
  247. package/fesm2015/infrab4a-connect.js.map +1 -1
  248. package/{lib/index.d.ts → index.d.ts} +1 -0
  249. package/infra/elasticsearch/adapters/axios.adapter.d.ts +11 -0
  250. package/infra/elasticsearch/adapters/elastic-search.adapter.d.ts +4 -0
  251. package/infra/elasticsearch/adapters/index.d.ts +2 -0
  252. package/infra/elasticsearch/index.d.ts +3 -0
  253. package/infra/elasticsearch/indexes/index.d.ts +1 -0
  254. package/infra/elasticsearch/indexes/products-index.d.ts +11 -0
  255. package/infra/elasticsearch/types/elastic-search-result.d.ts +7 -0
  256. package/infra/elasticsearch/types/index.d.ts +1 -0
  257. package/{lib/infra → infra}/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +3 -1
  258. package/infra/index.d.ts +2 -0
  259. package/infrab4a-connect.d.ts +1 -1
  260. package/package.json +2 -1
  261. package/esm2015/lib/domain/catalog/index.js +0 -3
  262. package/esm2015/lib/domain/catalog/models/category.js +0 -7
  263. package/esm2015/lib/domain/catalog/models/enums/index.js +0 -2
  264. package/esm2015/lib/domain/catalog/models/enums/shops.enum.js +0 -7
  265. package/esm2015/lib/domain/catalog/models/index.js +0 -6
  266. package/esm2015/lib/domain/catalog/models/product.js +0 -11
  267. package/esm2015/lib/domain/catalog/models/types/category-condition.type.js +0 -2
  268. package/esm2015/lib/domain/catalog/models/types/category-filter.type.js +0 -2
  269. package/esm2015/lib/domain/catalog/models/types/index.js +0 -8
  270. package/esm2015/lib/domain/catalog/models/types/product-review.type.js +0 -2
  271. package/esm2015/lib/domain/catalog/models/types/shops-description.type.js +0 -2
  272. package/esm2015/lib/domain/catalog/models/types/shops-price.type.js +0 -2
  273. package/esm2015/lib/domain/catalog/models/types/stock.type.js +0 -2
  274. package/esm2015/lib/domain/catalog/models/types/variant-grade.type.js +0 -2
  275. package/esm2015/lib/domain/catalog/models/variant.js +0 -7
  276. package/esm2015/lib/domain/catalog/repositories/category.repository.js +0 -2
  277. package/esm2015/lib/domain/catalog/repositories/index.js +0 -5
  278. package/esm2015/lib/domain/catalog/repositories/product.repository.js +0 -2
  279. package/esm2015/lib/domain/catalog/repositories/subscription-product.repository.js +0 -2
  280. package/esm2015/lib/domain/catalog/repositories/variant.repository.js +0 -2
  281. package/esm2015/lib/domain/general/index.js +0 -3
  282. package/esm2015/lib/domain/general/model/base-model-with-identifier-fields.js +0 -2
  283. package/esm2015/lib/domain/general/model/base.model.js +0 -13
  284. package/esm2015/lib/domain/general/model/identifier-fields.js +0 -2
  285. package/esm2015/lib/domain/general/model/index.js +0 -5
  286. package/esm2015/lib/domain/general/model/types/base-model-builder.type.js +0 -2
  287. package/esm2015/lib/domain/general/model/types/index.js +0 -4
  288. package/esm2015/lib/domain/general/model/types/non-function-properties.type.js +0 -2
  289. package/esm2015/lib/domain/general/model/types/non-function-property-name.type.js +0 -2
  290. package/esm2015/lib/domain/general/repository/create.repository.js +0 -2
  291. package/esm2015/lib/domain/general/repository/crud.repository.js +0 -2
  292. package/esm2015/lib/domain/general/repository/delete.repository.js +0 -2
  293. package/esm2015/lib/domain/general/repository/enums/index.js +0 -3
  294. package/esm2015/lib/domain/general/repository/enums/update-option-actions.enum.js +0 -9
  295. package/esm2015/lib/domain/general/repository/enums/where.enum.js +0 -12
  296. package/esm2015/lib/domain/general/repository/find.repository.js +0 -2
  297. package/esm2015/lib/domain/general/repository/get.repository.js +0 -2
  298. package/esm2015/lib/domain/general/repository/index.js +0 -10
  299. package/esm2015/lib/domain/general/repository/read.repository.js +0 -2
  300. package/esm2015/lib/domain/general/repository/types/index.js +0 -6
  301. package/esm2015/lib/domain/general/repository/types/repository-find-filters.type.js +0 -2
  302. package/esm2015/lib/domain/general/repository/types/repository-find-result.type.js +0 -2
  303. package/esm2015/lib/domain/general/repository/types/repository-limit-options.type.js +0 -2
  304. package/esm2015/lib/domain/general/repository/types/repository-order-by-list.type.js +0 -2
  305. package/esm2015/lib/domain/general/repository/types/repository-update-params.type.js +0 -2
  306. package/esm2015/lib/domain/general/repository/update.repository.js +0 -2
  307. package/esm2015/lib/domain/index.js +0 -7
  308. package/esm2015/lib/domain/location/index.js +0 -2
  309. package/esm2015/lib/domain/location/models/address.js +0 -4
  310. package/esm2015/lib/domain/location/models/index.js +0 -3
  311. package/esm2015/lib/domain/location/models/types/index.js +0 -4
  312. package/esm2015/lib/domain/location/models/types/location-bound.type.js +0 -2
  313. package/esm2015/lib/domain/location/models/types/location-geometry.type.js +0 -2
  314. package/esm2015/lib/domain/location/models/types/location-lat-lng.type.js +0 -2
  315. package/esm2015/lib/domain/shop-settings/enums/filter-type.enum.js +0 -21
  316. package/esm2015/lib/domain/shop-settings/enums/index.js +0 -3
  317. package/esm2015/lib/domain/shop-settings/enums/questions-filters.enum.js +0 -21
  318. package/esm2015/lib/domain/shop-settings/helpers/beauty-questions.helper.js +0 -46
  319. package/esm2015/lib/domain/shop-settings/helpers/index.js +0 -2
  320. package/esm2015/lib/domain/shop-settings/index.js +0 -5
  321. package/esm2015/lib/domain/shop-settings/models/home.js +0 -7
  322. package/esm2015/lib/domain/shop-settings/models/index.js +0 -4
  323. package/esm2015/lib/domain/shop-settings/models/shop-menu.js +0 -7
  324. package/esm2015/lib/domain/shop-settings/models/types/banner.type.js +0 -2
  325. package/esm2015/lib/domain/shop-settings/models/types/benefit.type.js +0 -2
  326. package/esm2015/lib/domain/shop-settings/models/types/home-data.type.js +0 -2
  327. package/esm2015/lib/domain/shop-settings/models/types/index.js +0 -6
  328. package/esm2015/lib/domain/shop-settings/models/types/menu-nav.type.js +0 -2
  329. package/esm2015/lib/domain/shop-settings/models/types/sub-menu.type.js +0 -2
  330. package/esm2015/lib/domain/shop-settings/repositories/home.repository.js +0 -2
  331. package/esm2015/lib/domain/shop-settings/repositories/index.js +0 -3
  332. package/esm2015/lib/domain/shop-settings/repositories/shop-menu.repository.js +0 -2
  333. package/esm2015/lib/domain/shopping/index.js +0 -3
  334. package/esm2015/lib/domain/shopping/models/buy-2-win.js +0 -14
  335. package/esm2015/lib/domain/shopping/models/checkout.js +0 -38
  336. package/esm2015/lib/domain/shopping/models/coupons/coupon.js +0 -23
  337. package/esm2015/lib/domain/shopping/models/coupons/enums/coupon-subtypes.enum.js +0 -6
  338. package/esm2015/lib/domain/shopping/models/coupons/enums/coupon-types.enum.js +0 -8
  339. package/esm2015/lib/domain/shopping/models/coupons/enums/exclusivities.enum.js +0 -7
  340. package/esm2015/lib/domain/shopping/models/coupons/enums/index.js +0 -4
  341. package/esm2015/lib/domain/shopping/models/coupons/financial-coupon.js +0 -28
  342. package/esm2015/lib/domain/shopping/models/coupons/index.js +0 -4
  343. package/esm2015/lib/domain/shopping/models/enums/checkout-types.enum.js +0 -6
  344. package/esm2015/lib/domain/shopping/models/enums/index.js +0 -3
  345. package/esm2015/lib/domain/shopping/models/enums/order-status.enum.js +0 -12
  346. package/esm2015/lib/domain/shopping/models/index.js +0 -12
  347. package/esm2015/lib/domain/shopping/models/line-item.js +0 -4
  348. package/esm2015/lib/domain/shopping/models/order.js +0 -11
  349. package/esm2015/lib/domain/shopping/models/payment.js +0 -169
  350. package/esm2015/lib/domain/shopping/models/shipping-method.js +0 -7
  351. package/esm2015/lib/domain/shopping/models/subscription/checkout.js +0 -28
  352. package/esm2015/lib/domain/shopping/models/subscription/index.js +0 -3
  353. package/esm2015/lib/domain/shopping/models/subscription/plan.js +0 -7
  354. package/esm2015/lib/domain/shopping/models/types/index.js +0 -8
  355. package/esm2015/lib/domain/shopping/models/types/payment-address.type.js +0 -2
  356. package/esm2015/lib/domain/shopping/models/types/payment-billing.type.js +0 -2
  357. package/esm2015/lib/domain/shopping/models/types/payment-card.type.js +0 -2
  358. package/esm2015/lib/domain/shopping/models/types/payment-customer.type.js +0 -2
  359. package/esm2015/lib/domain/shopping/models/types/payment-document.type.js +0 -2
  360. package/esm2015/lib/domain/shopping/models/types/payment-item.type.js +0 -2
  361. package/esm2015/lib/domain/shopping/models/types/payment-shipping.type.js +0 -2
  362. package/esm2015/lib/domain/shopping/repositories/buy-2-win.repository.js +0 -2
  363. package/esm2015/lib/domain/shopping/repositories/checkout.repository.js +0 -2
  364. package/esm2015/lib/domain/shopping/repositories/coupon.repository.js +0 -2
  365. package/esm2015/lib/domain/shopping/repositories/index.js +0 -8
  366. package/esm2015/lib/domain/shopping/repositories/legacy-order.repository.js +0 -2
  367. package/esm2015/lib/domain/shopping/repositories/order.repository.js +0 -2
  368. package/esm2015/lib/domain/shopping/repositories/payment.repository.js +0 -2
  369. package/esm2015/lib/domain/shopping/repositories/subscription/checkout.repository.js +0 -2
  370. package/esm2015/lib/domain/shopping/repositories/subscription/index.js +0 -3
  371. package/esm2015/lib/domain/shopping/repositories/subscription/plan.repository.js +0 -2
  372. package/esm2015/lib/domain/users/errors/index.js +0 -4
  373. package/esm2015/lib/domain/users/errors/unauthorized.error.js +0 -7
  374. package/esm2015/lib/domain/users/errors/user-already-registered.error.js +0 -7
  375. package/esm2015/lib/domain/users/errors/weak-password.error.js +0 -7
  376. package/esm2015/lib/domain/users/index.js +0 -6
  377. package/esm2015/lib/domain/users/models/beauty-profile.js +0 -12
  378. package/esm2015/lib/domain/users/models/enums/accessory-importances.enum.js +0 -7
  379. package/esm2015/lib/domain/users/models/enums/area.enum.js +0 -13
  380. package/esm2015/lib/domain/users/models/enums/beard-problems.enum.js +0 -11
  381. package/esm2015/lib/domain/users/models/enums/beard-sizes.enum.js +0 -9
  382. package/esm2015/lib/domain/users/models/enums/beauty-product-importances.enum.js +0 -8
  383. package/esm2015/lib/domain/users/models/enums/body-problems.enum.js +0 -13
  384. package/esm2015/lib/domain/users/models/enums/body-shapes.enum.js +0 -9
  385. package/esm2015/lib/domain/users/models/enums/body-tattoos.enum.js +0 -7
  386. package/esm2015/lib/domain/users/models/enums/face-skin-oilinesses.enum.js +0 -9
  387. package/esm2015/lib/domain/users/models/enums/face-skin-problems.enum.js +0 -12
  388. package/esm2015/lib/domain/users/models/enums/face-skin-tones.enum.js +0 -10
  389. package/esm2015/lib/domain/users/models/enums/family-incomes.enum.js +0 -10
  390. package/esm2015/lib/domain/users/models/enums/fragrance-importances.enum.js +0 -7
  391. package/esm2015/lib/domain/users/models/enums/hair-colors.enum.js +0 -12
  392. package/esm2015/lib/domain/users/models/enums/hair-problems.enum.js +0 -12
  393. package/esm2015/lib/domain/users/models/enums/hair-strands.enum.js +0 -10
  394. package/esm2015/lib/domain/users/models/enums/hair-types.enum.js +0 -9
  395. package/esm2015/lib/domain/users/models/enums/index.js +0 -21
  396. package/esm2015/lib/domain/users/models/enums/office-position.enum.js +0 -8
  397. package/esm2015/lib/domain/users/models/enums/product-spents.enum.js +0 -10
  398. package/esm2015/lib/domain/users/models/enums/user-type.enum.js +0 -10
  399. package/esm2015/lib/domain/users/models/index.js +0 -8
  400. package/esm2015/lib/domain/users/models/lead.js +0 -7
  401. package/esm2015/lib/domain/users/models/subscription/edition.js +0 -7
  402. package/esm2015/lib/domain/users/models/subscription/enums/billing-status.enum.js +0 -5
  403. package/esm2015/lib/domain/users/models/subscription/enums/edition-status.enum.js +0 -6
  404. package/esm2015/lib/domain/users/models/subscription/enums/index.js +0 -5
  405. package/esm2015/lib/domain/users/models/subscription/enums/payment-type.enum.js +0 -7
  406. package/esm2015/lib/domain/users/models/subscription/enums/status.enum.js +0 -6
  407. package/esm2015/lib/domain/users/models/subscription/index.js +0 -5
  408. package/esm2015/lib/domain/users/models/subscription/payment.js +0 -14
  409. package/esm2015/lib/domain/users/models/subscription/subscription.js +0 -43
  410. package/esm2015/lib/domain/users/models/user-address.js +0 -7
  411. package/esm2015/lib/domain/users/models/user-payment-method.js +0 -7
  412. package/esm2015/lib/domain/users/models/user.js +0 -26
  413. package/esm2015/lib/domain/users/repositories/beauty-profile.repository.js +0 -2
  414. package/esm2015/lib/domain/users/repositories/edition.repository.js +0 -2
  415. package/esm2015/lib/domain/users/repositories/index.js +0 -9
  416. package/esm2015/lib/domain/users/repositories/lead.repository.js +0 -2
  417. package/esm2015/lib/domain/users/repositories/subscription-payment.repository.js +0 -2
  418. package/esm2015/lib/domain/users/repositories/subscription.repository.js +0 -2
  419. package/esm2015/lib/domain/users/repositories/user-address.repository.js +0 -2
  420. package/esm2015/lib/domain/users/repositories/user-payment-method.repository.js +0 -2
  421. package/esm2015/lib/domain/users/repositories/user.repository.js +0 -2
  422. package/esm2015/lib/domain/users/services/authentication.service.js +0 -2
  423. package/esm2015/lib/domain/users/services/index.js +0 -4
  424. package/esm2015/lib/domain/users/services/register.service.js +0 -2
  425. package/esm2015/lib/domain/users/services/types/basic-user-data.type.js +0 -2
  426. package/esm2015/lib/domain/users/services/types/index.js +0 -2
  427. package/esm2015/lib/domain/users/use-cases/authentication.js +0 -40
  428. package/esm2015/lib/domain/users/use-cases/index.js +0 -5
  429. package/esm2015/lib/domain/users/use-cases/recovery-password.js +0 -12
  430. package/esm2015/lib/domain/users/use-cases/register.js +0 -34
  431. package/esm2015/lib/domain/users/use-cases/signout.js +0 -12
  432. package/esm2015/lib/errors/duplicated-results.error.js +0 -7
  433. package/esm2015/lib/errors/index.js +0 -5
  434. package/esm2015/lib/errors/invalid-argument.error.js +0 -7
  435. package/esm2015/lib/errors/not-found.error.js +0 -7
  436. package/esm2015/lib/errors/required-argument.error.js +0 -8
  437. package/esm2015/lib/index.js +0 -5
  438. package/esm2015/lib/infra/firebase/auth/authentication-firebase-auth.service.js +0 -52
  439. package/esm2015/lib/infra/firebase/auth/index.js +0 -3
  440. package/esm2015/lib/infra/firebase/auth/register-firebase-auth.service.js +0 -26
  441. package/esm2015/lib/infra/firebase/auth/types/firebase-user-with-id.type.js +0 -2
  442. package/esm2015/lib/infra/firebase/firestore/index.js +0 -4
  443. package/esm2015/lib/infra/firebase/firestore/mixins/index.js +0 -10
  444. package/esm2015/lib/infra/firebase/firestore/mixins/with-create-firestore.mixin.js +0 -31
  445. package/esm2015/lib/infra/firebase/firestore/mixins/with-crud-firestore.mixin.js +0 -10
  446. package/esm2015/lib/infra/firebase/firestore/mixins/with-delete-firestore.mixin.js +0 -18
  447. package/esm2015/lib/infra/firebase/firestore/mixins/with-find-firestore.mixin.js +0 -87
  448. package/esm2015/lib/infra/firebase/firestore/mixins/with-firestore.mixin.js +0 -26
  449. package/esm2015/lib/infra/firebase/firestore/mixins/with-get-firestore.mixin.js +0 -24
  450. package/esm2015/lib/infra/firebase/firestore/mixins/with-helpers.mixin.js +0 -17
  451. package/esm2015/lib/infra/firebase/firestore/mixins/with-sub-collection.mixin.js +0 -11
  452. package/esm2015/lib/infra/firebase/firestore/mixins/with-update-firestore.mixin.js +0 -45
  453. package/esm2015/lib/infra/firebase/firestore/models/user-search.js +0 -7
  454. package/esm2015/lib/infra/firebase/firestore/repositories/catalog/category-firestore.repository.js +0 -70
  455. package/esm2015/lib/infra/firebase/firestore/repositories/catalog/index.js +0 -5
  456. package/esm2015/lib/infra/firebase/firestore/repositories/catalog/product-firestore.repository.js +0 -23
  457. package/esm2015/lib/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.js +0 -14
  458. package/esm2015/lib/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.js +0 -12
  459. package/esm2015/lib/infra/firebase/firestore/repositories/index.js +0 -5
  460. package/esm2015/lib/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.js +0 -56
  461. package/esm2015/lib/infra/firebase/firestore/repositories/shop-settings/index.js +0 -3
  462. package/esm2015/lib/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.js +0 -12
  463. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.js +0 -12
  464. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.js +0 -12
  465. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.js +0 -12
  466. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.js +0 -29
  467. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/index.js +0 -9
  468. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.js +0 -9
  469. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/order-firestore.repository.js +0 -12
  470. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.js +0 -12
  471. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.js +0 -12
  472. package/esm2015/lib/infra/firebase/firestore/repositories/users/index.js +0 -10
  473. package/esm2015/lib/infra/firebase/firestore/repositories/users/lead-firestore.repository.js +0 -12
  474. package/esm2015/lib/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.js +0 -14
  475. package/esm2015/lib/infra/firebase/firestore/repositories/users/subscription-firestore.repository.js +0 -12
  476. package/esm2015/lib/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.js +0 -14
  477. package/esm2015/lib/infra/firebase/firestore/repositories/users/user-address-firestore.repository.js +0 -14
  478. package/esm2015/lib/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.js +0 -14
  479. package/esm2015/lib/infra/firebase/firestore/repositories/users/user-firestore.repository.js +0 -70
  480. package/esm2015/lib/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.js +0 -14
  481. package/esm2015/lib/infra/firebase/firestore/repositories/users/user-search-firestore.repository.js +0 -12
  482. package/esm2015/lib/infra/firebase/firestore/types/firestore-sub.repository.type.js +0 -2
  483. package/esm2015/lib/infra/firebase/firestore/types/firestore.helpers.type.js +0 -2
  484. package/esm2015/lib/infra/firebase/firestore/types/firestore.repository.type.js +0 -2
  485. package/esm2015/lib/infra/firebase/firestore/types/index.js +0 -4
  486. package/esm2015/lib/infra/firebase/index.js +0 -3
  487. package/esm2015/lib/infra/index.js +0 -2
  488. package/esm2015/lib/utils/index.js +0 -6
  489. package/esm2015/lib/utils/mixins/base.mixin.js +0 -6
  490. package/esm2015/lib/utils/mixins/index.js +0 -3
  491. package/esm2015/lib/utils/mixins/mixin-ctor.type.js +0 -2
  492. package/esm2015/lib/utils/types/index.js +0 -2
  493. package/esm2015/lib/utils/types/prop.type.js +0 -2
  494. package/esm2015/public-api.js +0 -3
  495. package/lib/infra/index.d.ts +0 -1
  496. package/public-api.d.ts +0 -2
  497. /package/{lib/domain → domain}/catalog/index.d.ts +0 -0
  498. /package/{lib/domain → domain}/catalog/models/category.d.ts +0 -0
  499. /package/{lib/domain → domain}/catalog/models/enums/index.d.ts +0 -0
  500. /package/{lib/domain → domain}/catalog/models/enums/shops.enum.d.ts +0 -0
  501. /package/{lib/domain → domain}/catalog/models/index.d.ts +0 -0
  502. /package/{lib/domain → domain}/catalog/models/product.d.ts +0 -0
  503. /package/{lib/domain → domain}/catalog/models/types/category-condition.type.d.ts +0 -0
  504. /package/{lib/domain → domain}/catalog/models/types/category-filter.type.d.ts +0 -0
  505. /package/{lib/domain → domain}/catalog/models/types/index.d.ts +0 -0
  506. /package/{lib/domain → domain}/catalog/models/types/product-review.type.d.ts +0 -0
  507. /package/{lib/domain → domain}/catalog/models/types/shops-description.type.d.ts +0 -0
  508. /package/{lib/domain → domain}/catalog/models/types/shops-price.type.d.ts +0 -0
  509. /package/{lib/domain → domain}/catalog/models/types/stock.type.d.ts +0 -0
  510. /package/{lib/domain → domain}/catalog/models/types/variant-grade.type.d.ts +0 -0
  511. /package/{lib/domain → domain}/catalog/models/variant.d.ts +0 -0
  512. /package/{lib/domain → domain}/catalog/repositories/index.d.ts +0 -0
  513. /package/{lib/domain → domain}/catalog/repositories/product.repository.d.ts +0 -0
  514. /package/{lib/domain → domain}/catalog/repositories/subscription-product.repository.d.ts +0 -0
  515. /package/{lib/domain → domain}/catalog/repositories/variant.repository.d.ts +0 -0
  516. /package/{lib/domain → domain}/general/index.d.ts +0 -0
  517. /package/{lib/domain → domain}/general/model/base-model-with-identifier-fields.d.ts +0 -0
  518. /package/{lib/domain → domain}/general/model/base.model.d.ts +0 -0
  519. /package/{lib/domain → domain}/general/model/identifier-fields.d.ts +0 -0
  520. /package/{lib/domain → domain}/general/model/index.d.ts +0 -0
  521. /package/{lib/domain → domain}/general/model/types/base-model-builder.type.d.ts +0 -0
  522. /package/{lib/domain → domain}/general/model/types/index.d.ts +0 -0
  523. /package/{lib/domain → domain}/general/model/types/non-function-properties.type.d.ts +0 -0
  524. /package/{lib/domain → domain}/general/model/types/non-function-property-name.type.d.ts +0 -0
  525. /package/{lib/domain → domain}/general/repository/create.repository.d.ts +0 -0
  526. /package/{lib/domain → domain}/general/repository/crud.repository.d.ts +0 -0
  527. /package/{lib/domain → domain}/general/repository/delete.repository.d.ts +0 -0
  528. /package/{lib/domain → domain}/general/repository/enums/index.d.ts +0 -0
  529. /package/{lib/domain → domain}/general/repository/enums/update-option-actions.enum.d.ts +0 -0
  530. /package/{lib/domain → domain}/general/repository/enums/where.enum.d.ts +0 -0
  531. /package/{lib/domain → domain}/general/repository/find.repository.d.ts +0 -0
  532. /package/{lib/domain → domain}/general/repository/get.repository.d.ts +0 -0
  533. /package/{lib/domain → domain}/general/repository/index.d.ts +0 -0
  534. /package/{lib/domain → domain}/general/repository/read.repository.d.ts +0 -0
  535. /package/{lib/domain → domain}/general/repository/types/index.d.ts +0 -0
  536. /package/{lib/domain → domain}/general/repository/types/repository-find-filters.type.d.ts +0 -0
  537. /package/{lib/domain → domain}/general/repository/types/repository-find-result.type.d.ts +0 -0
  538. /package/{lib/domain → domain}/general/repository/types/repository-limit-options.type.d.ts +0 -0
  539. /package/{lib/domain → domain}/general/repository/types/repository-order-by-list.type.d.ts +0 -0
  540. /package/{lib/domain → domain}/general/repository/types/repository-update-params.type.d.ts +0 -0
  541. /package/{lib/domain → domain}/general/repository/update.repository.d.ts +0 -0
  542. /package/{lib/domain → domain}/index.d.ts +0 -0
  543. /package/{lib/domain → domain}/location/index.d.ts +0 -0
  544. /package/{lib/domain → domain}/location/models/address.d.ts +0 -0
  545. /package/{lib/domain → domain}/location/models/index.d.ts +0 -0
  546. /package/{lib/domain → domain}/location/models/types/index.d.ts +0 -0
  547. /package/{lib/domain → domain}/location/models/types/location-bound.type.d.ts +0 -0
  548. /package/{lib/domain → domain}/location/models/types/location-geometry.type.d.ts +0 -0
  549. /package/{lib/domain → domain}/location/models/types/location-lat-lng.type.d.ts +0 -0
  550. /package/{lib/domain → domain}/shop-settings/enums/filter-type.enum.d.ts +0 -0
  551. /package/{lib/domain → domain}/shop-settings/enums/index.d.ts +0 -0
  552. /package/{lib/domain → domain}/shop-settings/enums/questions-filters.enum.d.ts +0 -0
  553. /package/{lib/domain → domain}/shop-settings/helpers/beauty-questions.helper.d.ts +0 -0
  554. /package/{lib/domain → domain}/shop-settings/helpers/index.d.ts +0 -0
  555. /package/{lib/domain → domain}/shop-settings/index.d.ts +0 -0
  556. /package/{lib/domain → domain}/shop-settings/models/home.d.ts +0 -0
  557. /package/{lib/domain → domain}/shop-settings/models/index.d.ts +0 -0
  558. /package/{lib/domain → domain}/shop-settings/models/shop-menu.d.ts +0 -0
  559. /package/{lib/domain → domain}/shop-settings/models/types/banner.type.d.ts +0 -0
  560. /package/{lib/domain → domain}/shop-settings/models/types/benefit.type.d.ts +0 -0
  561. /package/{lib/domain → domain}/shop-settings/models/types/home-data.type.d.ts +0 -0
  562. /package/{lib/domain → domain}/shop-settings/models/types/index.d.ts +0 -0
  563. /package/{lib/domain → domain}/shop-settings/models/types/menu-nav.type.d.ts +0 -0
  564. /package/{lib/domain → domain}/shop-settings/models/types/sub-menu.type.d.ts +0 -0
  565. /package/{lib/domain → domain}/shop-settings/repositories/home.repository.d.ts +0 -0
  566. /package/{lib/domain → domain}/shop-settings/repositories/index.d.ts +0 -0
  567. /package/{lib/domain → domain}/shop-settings/repositories/shop-menu.repository.d.ts +0 -0
  568. /package/{lib/domain → domain}/shopping/index.d.ts +0 -0
  569. /package/{lib/domain → domain}/shopping/models/buy-2-win.d.ts +0 -0
  570. /package/{lib/domain → domain}/shopping/models/checkout.d.ts +0 -0
  571. /package/{lib/domain → domain}/shopping/models/coupons/coupon.d.ts +0 -0
  572. /package/{lib/domain → domain}/shopping/models/coupons/enums/coupon-subtypes.enum.d.ts +0 -0
  573. /package/{lib/domain → domain}/shopping/models/coupons/enums/coupon-types.enum.d.ts +0 -0
  574. /package/{lib/domain → domain}/shopping/models/coupons/enums/exclusivities.enum.d.ts +0 -0
  575. /package/{lib/domain → domain}/shopping/models/coupons/enums/index.d.ts +0 -0
  576. /package/{lib/domain → domain}/shopping/models/coupons/financial-coupon.d.ts +0 -0
  577. /package/{lib/domain → domain}/shopping/models/coupons/index.d.ts +0 -0
  578. /package/{lib/domain → domain}/shopping/models/enums/checkout-types.enum.d.ts +0 -0
  579. /package/{lib/domain → domain}/shopping/models/enums/index.d.ts +0 -0
  580. /package/{lib/domain → domain}/shopping/models/enums/order-status.enum.d.ts +0 -0
  581. /package/{lib/domain → domain}/shopping/models/index.d.ts +0 -0
  582. /package/{lib/domain → domain}/shopping/models/line-item.d.ts +0 -0
  583. /package/{lib/domain → domain}/shopping/models/order.d.ts +0 -0
  584. /package/{lib/domain → domain}/shopping/models/payment.d.ts +0 -0
  585. /package/{lib/domain → domain}/shopping/models/shipping-method.d.ts +0 -0
  586. /package/{lib/domain → domain}/shopping/models/subscription/checkout.d.ts +0 -0
  587. /package/{lib/domain → domain}/shopping/models/subscription/index.d.ts +0 -0
  588. /package/{lib/domain → domain}/shopping/models/subscription/plan.d.ts +0 -0
  589. /package/{lib/domain → domain}/shopping/models/types/index.d.ts +0 -0
  590. /package/{lib/domain → domain}/shopping/models/types/payment-address.type.d.ts +0 -0
  591. /package/{lib/domain → domain}/shopping/models/types/payment-billing.type.d.ts +0 -0
  592. /package/{lib/domain → domain}/shopping/models/types/payment-card.type.d.ts +0 -0
  593. /package/{lib/domain → domain}/shopping/models/types/payment-customer.type.d.ts +0 -0
  594. /package/{lib/domain → domain}/shopping/models/types/payment-document.type.d.ts +0 -0
  595. /package/{lib/domain → domain}/shopping/models/types/payment-item.type.d.ts +0 -0
  596. /package/{lib/domain → domain}/shopping/models/types/payment-shipping.type.d.ts +0 -0
  597. /package/{lib/domain → domain}/shopping/repositories/buy-2-win.repository.d.ts +0 -0
  598. /package/{lib/domain → domain}/shopping/repositories/checkout.repository.d.ts +0 -0
  599. /package/{lib/domain → domain}/shopping/repositories/coupon.repository.d.ts +0 -0
  600. /package/{lib/domain → domain}/shopping/repositories/index.d.ts +0 -0
  601. /package/{lib/domain → domain}/shopping/repositories/legacy-order.repository.d.ts +0 -0
  602. /package/{lib/domain → domain}/shopping/repositories/order.repository.d.ts +0 -0
  603. /package/{lib/domain → domain}/shopping/repositories/payment.repository.d.ts +0 -0
  604. /package/{lib/domain → domain}/shopping/repositories/subscription/checkout.repository.d.ts +0 -0
  605. /package/{lib/domain → domain}/shopping/repositories/subscription/index.d.ts +0 -0
  606. /package/{lib/domain → domain}/shopping/repositories/subscription/plan.repository.d.ts +0 -0
  607. /package/{lib/domain → domain}/users/errors/index.d.ts +0 -0
  608. /package/{lib/domain → domain}/users/errors/unauthorized.error.d.ts +0 -0
  609. /package/{lib/domain → domain}/users/errors/user-already-registered.error.d.ts +0 -0
  610. /package/{lib/domain → domain}/users/errors/weak-password.error.d.ts +0 -0
  611. /package/{lib/domain → domain}/users/index.d.ts +0 -0
  612. /package/{lib/domain → domain}/users/models/beauty-profile.d.ts +0 -0
  613. /package/{lib/domain → domain}/users/models/enums/accessory-importances.enum.d.ts +0 -0
  614. /package/{lib/domain → domain}/users/models/enums/area.enum.d.ts +0 -0
  615. /package/{lib/domain → domain}/users/models/enums/beard-problems.enum.d.ts +0 -0
  616. /package/{lib/domain → domain}/users/models/enums/beard-sizes.enum.d.ts +0 -0
  617. /package/{lib/domain → domain}/users/models/enums/beauty-product-importances.enum.d.ts +0 -0
  618. /package/{lib/domain → domain}/users/models/enums/body-problems.enum.d.ts +0 -0
  619. /package/{lib/domain → domain}/users/models/enums/body-shapes.enum.d.ts +0 -0
  620. /package/{lib/domain → domain}/users/models/enums/body-tattoos.enum.d.ts +0 -0
  621. /package/{lib/domain → domain}/users/models/enums/face-skin-oilinesses.enum.d.ts +0 -0
  622. /package/{lib/domain → domain}/users/models/enums/face-skin-problems.enum.d.ts +0 -0
  623. /package/{lib/domain → domain}/users/models/enums/face-skin-tones.enum.d.ts +0 -0
  624. /package/{lib/domain → domain}/users/models/enums/family-incomes.enum.d.ts +0 -0
  625. /package/{lib/domain → domain}/users/models/enums/fragrance-importances.enum.d.ts +0 -0
  626. /package/{lib/domain → domain}/users/models/enums/hair-colors.enum.d.ts +0 -0
  627. /package/{lib/domain → domain}/users/models/enums/hair-problems.enum.d.ts +0 -0
  628. /package/{lib/domain → domain}/users/models/enums/hair-strands.enum.d.ts +0 -0
  629. /package/{lib/domain → domain}/users/models/enums/hair-types.enum.d.ts +0 -0
  630. /package/{lib/domain → domain}/users/models/enums/index.d.ts +0 -0
  631. /package/{lib/domain → domain}/users/models/enums/office-position.enum.d.ts +0 -0
  632. /package/{lib/domain → domain}/users/models/enums/product-spents.enum.d.ts +0 -0
  633. /package/{lib/domain → domain}/users/models/enums/user-type.enum.d.ts +0 -0
  634. /package/{lib/domain → domain}/users/models/index.d.ts +0 -0
  635. /package/{lib/domain → domain}/users/models/lead.d.ts +0 -0
  636. /package/{lib/domain → domain}/users/models/subscription/edition.d.ts +0 -0
  637. /package/{lib/domain → domain}/users/models/subscription/enums/billing-status.enum.d.ts +0 -0
  638. /package/{lib/domain → domain}/users/models/subscription/enums/edition-status.enum.d.ts +0 -0
  639. /package/{lib/domain → domain}/users/models/subscription/enums/index.d.ts +0 -0
  640. /package/{lib/domain → domain}/users/models/subscription/enums/payment-type.enum.d.ts +0 -0
  641. /package/{lib/domain → domain}/users/models/subscription/enums/status.enum.d.ts +0 -0
  642. /package/{lib/domain → domain}/users/models/subscription/index.d.ts +0 -0
  643. /package/{lib/domain → domain}/users/models/subscription/payment.d.ts +0 -0
  644. /package/{lib/domain → domain}/users/models/subscription/subscription.d.ts +0 -0
  645. /package/{lib/domain → domain}/users/models/user-address.d.ts +0 -0
  646. /package/{lib/domain → domain}/users/models/user-payment-method.d.ts +0 -0
  647. /package/{lib/domain → domain}/users/models/user.d.ts +0 -0
  648. /package/{lib/domain → domain}/users/repositories/beauty-profile.repository.d.ts +0 -0
  649. /package/{lib/domain → domain}/users/repositories/edition.repository.d.ts +0 -0
  650. /package/{lib/domain → domain}/users/repositories/index.d.ts +0 -0
  651. /package/{lib/domain → domain}/users/repositories/lead.repository.d.ts +0 -0
  652. /package/{lib/domain → domain}/users/repositories/subscription-payment.repository.d.ts +0 -0
  653. /package/{lib/domain → domain}/users/repositories/subscription.repository.d.ts +0 -0
  654. /package/{lib/domain → domain}/users/repositories/user-address.repository.d.ts +0 -0
  655. /package/{lib/domain → domain}/users/repositories/user-payment-method.repository.d.ts +0 -0
  656. /package/{lib/domain → domain}/users/repositories/user.repository.d.ts +0 -0
  657. /package/{lib/domain → domain}/users/services/authentication.service.d.ts +0 -0
  658. /package/{lib/domain → domain}/users/services/index.d.ts +0 -0
  659. /package/{lib/domain → domain}/users/services/register.service.d.ts +0 -0
  660. /package/{lib/domain → domain}/users/services/types/basic-user-data.type.d.ts +0 -0
  661. /package/{lib/domain → domain}/users/services/types/index.d.ts +0 -0
  662. /package/{lib/domain → domain}/users/use-cases/authentication.d.ts +0 -0
  663. /package/{lib/domain → domain}/users/use-cases/index.d.ts +0 -0
  664. /package/{lib/domain → domain}/users/use-cases/recovery-password.d.ts +0 -0
  665. /package/{lib/domain → domain}/users/use-cases/register.d.ts +0 -0
  666. /package/{lib/domain → domain}/users/use-cases/signout.d.ts +0 -0
  667. /package/{lib/errors → errors}/duplicated-results.error.d.ts +0 -0
  668. /package/{lib/errors → errors}/index.d.ts +0 -0
  669. /package/{lib/errors → errors}/invalid-argument.error.d.ts +0 -0
  670. /package/{lib/errors → errors}/not-found.error.d.ts +0 -0
  671. /package/{lib/errors → errors}/required-argument.error.d.ts +0 -0
  672. /package/{lib/infra → infra}/firebase/auth/authentication-firebase-auth.service.d.ts +0 -0
  673. /package/{lib/infra → infra}/firebase/auth/index.d.ts +0 -0
  674. /package/{lib/infra → infra}/firebase/auth/register-firebase-auth.service.d.ts +0 -0
  675. /package/{lib/infra → infra}/firebase/auth/types/firebase-user-with-id.type.d.ts +0 -0
  676. /package/{lib/infra → infra}/firebase/firestore/index.d.ts +0 -0
  677. /package/{lib/infra → infra}/firebase/firestore/mixins/index.d.ts +0 -0
  678. /package/{lib/infra → infra}/firebase/firestore/mixins/with-create-firestore.mixin.d.ts +0 -0
  679. /package/{lib/infra → infra}/firebase/firestore/mixins/with-crud-firestore.mixin.d.ts +0 -0
  680. /package/{lib/infra → infra}/firebase/firestore/mixins/with-delete-firestore.mixin.d.ts +0 -0
  681. /package/{lib/infra → infra}/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +0 -0
  682. /package/{lib/infra → infra}/firebase/firestore/mixins/with-firestore.mixin.d.ts +0 -0
  683. /package/{lib/infra → infra}/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +0 -0
  684. /package/{lib/infra → infra}/firebase/firestore/mixins/with-helpers.mixin.d.ts +0 -0
  685. /package/{lib/infra → infra}/firebase/firestore/mixins/with-sub-collection.mixin.d.ts +0 -0
  686. /package/{lib/infra → infra}/firebase/firestore/mixins/with-update-firestore.mixin.d.ts +0 -0
  687. /package/{lib/infra → infra}/firebase/firestore/models/user-search.d.ts +0 -0
  688. /package/{lib/infra → infra}/firebase/firestore/repositories/catalog/index.d.ts +0 -0
  689. /package/{lib/infra → infra}/firebase/firestore/repositories/catalog/product-firestore.repository.d.ts +0 -0
  690. /package/{lib/infra → infra}/firebase/firestore/repositories/catalog/product-variant-firestore.repository.d.ts +0 -0
  691. /package/{lib/infra → infra}/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.d.ts +0 -0
  692. /package/{lib/infra → infra}/firebase/firestore/repositories/index.d.ts +0 -0
  693. /package/{lib/infra → infra}/firebase/firestore/repositories/shop-settings/home-firestore.repository.d.ts +0 -0
  694. /package/{lib/infra → infra}/firebase/firestore/repositories/shop-settings/index.d.ts +0 -0
  695. /package/{lib/infra → infra}/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.d.ts +0 -0
  696. /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.d.ts +0 -0
  697. /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/checkout-firestore.repository.d.ts +0 -0
  698. /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.d.ts +0 -0
  699. /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/coupon-firestore.repository.d.ts +0 -0
  700. /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/index.d.ts +0 -0
  701. /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.d.ts +0 -0
  702. /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/order-firestore.repository.d.ts +0 -0
  703. /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/payment-firestore.repository.d.ts +0 -0
  704. /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.d.ts +0 -0
  705. /package/{lib/infra → infra}/firebase/firestore/repositories/users/index.d.ts +0 -0
  706. /package/{lib/infra → infra}/firebase/firestore/repositories/users/lead-firestore.repository.d.ts +0 -0
  707. /package/{lib/infra → infra}/firebase/firestore/repositories/users/subscription-edition-firestore.repository.d.ts +0 -0
  708. /package/{lib/infra → infra}/firebase/firestore/repositories/users/subscription-firestore.repository.d.ts +0 -0
  709. /package/{lib/infra → infra}/firebase/firestore/repositories/users/subscription-payment-firestore.repository.d.ts +0 -0
  710. /package/{lib/infra → infra}/firebase/firestore/repositories/users/user-address-firestore.repository.d.ts +0 -0
  711. /package/{lib/infra → infra}/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.d.ts +0 -0
  712. /package/{lib/infra → infra}/firebase/firestore/repositories/users/user-firestore.repository.d.ts +0 -0
  713. /package/{lib/infra → infra}/firebase/firestore/repositories/users/user-payment-method-firestore.repository.d.ts +0 -0
  714. /package/{lib/infra → infra}/firebase/firestore/repositories/users/user-search-firestore.repository.d.ts +0 -0
  715. /package/{lib/infra → infra}/firebase/firestore/types/firestore-sub.repository.type.d.ts +0 -0
  716. /package/{lib/infra → infra}/firebase/firestore/types/firestore.helpers.type.d.ts +0 -0
  717. /package/{lib/infra → infra}/firebase/firestore/types/firestore.repository.type.d.ts +0 -0
  718. /package/{lib/infra → infra}/firebase/firestore/types/index.d.ts +0 -0
  719. /package/{lib/infra → infra}/firebase/index.d.ts +0 -0
  720. /package/{lib/utils → utils}/index.d.ts +0 -0
  721. /package/{lib/utils → utils}/mixins/base.mixin.d.ts +0 -0
  722. /package/{lib/utils → utils}/mixins/index.d.ts +0 -0
  723. /package/{lib/utils → utils}/mixins/mixin-ctor.type.d.ts +0 -0
  724. /package/{lib/utils → utils}/types/index.d.ts +0 -0
  725. /package/{lib/utils → utils}/types/prop.type.d.ts +0 -0
@@ -1,11 +1,12 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('reflect-metadata'), require('class-transformer'), require('date-fns'), require('lodash'), require('ts-md5'), require('firebase'), require('firebase/app')) :
3
- typeof define === 'function' && define.amd ? define('@infrab4a/connect', ['exports', 'reflect-metadata', 'class-transformer', 'date-fns', 'lodash', 'ts-md5', 'firebase', 'firebase/app'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.infrab4a = global.infrab4a || {}, global.infrab4a.connect = {}), null, global["class-transformer"], global["date-fns"], global.lodash, global.tsMd5, global.firebase, global.firebase$1));
5
- })(this, (function (exports, reflectMetadata, classTransformer, dateFns, lodash, tsMd5, firebase, firebase$1) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('reflect-metadata'), require('class-transformer'), require('date-fns'), require('lodash'), require('ts-md5'), require('axios'), require('firebase'), require('firebase/app')) :
3
+ typeof define === 'function' && define.amd ? define('@infrab4a/connect', ['exports', 'reflect-metadata', 'class-transformer', 'date-fns', 'lodash', 'ts-md5', 'axios', 'firebase', 'firebase/app'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.infrab4a = global.infrab4a || {}, global.infrab4a.connect = {}), null, global["class-transformer"], global["date-fns"], global.lodash, global.tsMd5, global.axios, global.firebase, global.firebase$1));
5
+ })(this, (function (exports, reflectMetadata, classTransformer, dateFns, lodash, tsMd5, axios, firebase, firebase$1) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
9
+ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
9
10
  var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
10
11
  var firebase__default$1 = /*#__PURE__*/_interopDefaultLegacy(firebase$1);
11
12
 
@@ -1482,6 +1483,99 @@
1482
1483
  return DuplicatedResultsError;
1483
1484
  }(Error));
1484
1485
 
1486
+ var AxiosAdapter = /** @class */ (function () {
1487
+ function AxiosAdapter(config) {
1488
+ this.config = config;
1489
+ }
1490
+ AxiosAdapter.prototype.query = function (index, query) {
1491
+ return __awaiter(this, void 0, void 0, function () {
1492
+ var data;
1493
+ return __generator(this, function (_a) {
1494
+ switch (_a.label) {
1495
+ case 0: return [4 /*yield*/, axios__default["default"]({
1496
+ url: this.config.url + "/" + index,
1497
+ method: 'POST',
1498
+ headers: { Authorization: "Basic " + this.config.credential },
1499
+ data: query,
1500
+ })];
1501
+ case 1:
1502
+ data = (_a.sent()).data;
1503
+ return [2 /*return*/, {
1504
+ total: data.hits.total.value,
1505
+ hits: data.hits.hits,
1506
+ }];
1507
+ }
1508
+ });
1509
+ });
1510
+ };
1511
+ return AxiosAdapter;
1512
+ }());
1513
+
1514
+ var ProductsIndex = /** @class */ (function () {
1515
+ function ProductsIndex(adapter) {
1516
+ this.adapter = adapter;
1517
+ }
1518
+ ProductsIndex.prototype.findById = function (ids, options) {
1519
+ return __awaiter(this, void 0, void 0, function () {
1520
+ var publishedField, fields, hits;
1521
+ var _a;
1522
+ return __generator(this, function (_b) {
1523
+ switch (_b.label) {
1524
+ case 0:
1525
+ publishedField = options.shop === exports.Shops.GLAMSHOP ? 'publishedGlam' : 'published';
1526
+ fields = [
1527
+ 'brand',
1528
+ 'id',
1529
+ 'images',
1530
+ 'miniatures',
1531
+ 'name',
1532
+ 'price',
1533
+ 'sku',
1534
+ 'stock',
1535
+ 'slug',
1536
+ 'reviews',
1537
+ 'pricePaid',
1538
+ 'isGift',
1539
+ 'stock',
1540
+ 'weight',
1541
+ 'tags',
1542
+ ];
1543
+ return [4 /*yield*/, this.adapter.query('products/_search', Object.assign({ _source: fields, query: {
1544
+ bool: {
1545
+ filter: __spreadArray([
1546
+ {
1547
+ terms: {
1548
+ _id: ids,
1549
+ },
1550
+ },
1551
+ {
1552
+ term: (_a = {},
1553
+ _a[publishedField] = true,
1554
+ _a),
1555
+ }
1556
+ ], __read((options.hasStock
1557
+ ? [
1558
+ {
1559
+ range: {
1560
+ 'stock.quantity': {
1561
+ gt: 0,
1562
+ },
1563
+ },
1564
+ },
1565
+ ]
1566
+ : []))),
1567
+ },
1568
+ } }, (options.size ? { size: options.size } : {})))];
1569
+ case 1:
1570
+ hits = (_b.sent()).hits;
1571
+ return [2 /*return*/, hits.map(function (hit) { return Product.toInstance(hit._source); })];
1572
+ }
1573
+ });
1574
+ });
1575
+ };
1576
+ return ProductsIndex;
1577
+ }());
1578
+
1485
1579
  var withFirestore = function (MixinBase) {
1486
1580
  return /** @class */ (function (_super) {
1487
1581
  __extends(class_1, _super);
@@ -2067,9 +2161,10 @@
2067
2161
 
2068
2162
  var CategoryFirestoreRepository = /** @class */ (function (_super) {
2069
2163
  __extends(CategoryFirestoreRepository, _super);
2070
- function CategoryFirestoreRepository(firestore) {
2164
+ function CategoryFirestoreRepository(firestore, productsIndex) {
2071
2165
  var _this = _super.call(this) || this;
2072
2166
  _this.firestore = firestore;
2167
+ _this.productsIndex = productsIndex;
2073
2168
  _this.collectionName = 'categories';
2074
2169
  _this.model = Category;
2075
2170
  return _this;
@@ -2128,56 +2223,14 @@
2128
2223
  };
2129
2224
  CategoryFirestoreRepository.prototype.mountCategory = function (category, options) {
2130
2225
  return __awaiter(this, void 0, void 0, function () {
2131
- var chunks, products, publishedField, chunks_1, chunks_1_1, productIds, query, productSnap, e_1_1;
2132
- var e_1, _a;
2133
- return __generator(this, function (_b) {
2134
- switch (_b.label) {
2135
- case 0:
2136
- if (!category.products)
2137
- throw new RequiredArgumentError(['Category products is empty']);
2138
- chunks = lodash.chunk(category.products, 10);
2139
- products = [];
2140
- publishedField = category.shop === exports.Shops.GLAMSHOP ? 'publishedGlam' : 'published';
2141
- _b.label = 1;
2142
- case 1:
2143
- _b.trys.push([1, 7, 8, 9]);
2144
- chunks_1 = __values(chunks), chunks_1_1 = chunks_1.next();
2145
- _b.label = 2;
2146
- case 2:
2147
- if (!!chunks_1_1.done) return [3 /*break*/, 6];
2148
- productIds = chunks_1_1.value;
2149
- if ((options === null || options === void 0 ? void 0 : options.limit) && products.length >= (options === null || options === void 0 ? void 0 : options.limit))
2150
- return [3 /*break*/, 6];
2151
- return [4 /*yield*/, this.collection('products').where(publishedField, '==', true).where('id', 'in', productIds)];
2152
- case 3:
2153
- query = _b.sent();
2154
- if (options === null || options === void 0 ? void 0 : options.hasStock)
2155
- query = query.where('stock.quantity', '>', 0);
2156
- if (options === null || options === void 0 ? void 0 : options.limit)
2157
- query = query.limit(options === null || options === void 0 ? void 0 : options.limit);
2158
- return [4 /*yield*/, query.get()];
2159
- case 4:
2160
- productSnap = _b.sent();
2161
- if (productSnap.empty)
2162
- return [3 /*break*/, 5];
2163
- products.push.apply(products, __spreadArray([], __read(productSnap.docs.map(function (doc) { return doc.data(); }))));
2164
- _b.label = 5;
2165
- case 5:
2166
- chunks_1_1 = chunks_1.next();
2167
- return [3 /*break*/, 2];
2168
- case 6: return [3 /*break*/, 9];
2169
- case 7:
2170
- e_1_1 = _b.sent();
2171
- e_1 = { error: e_1_1 };
2172
- return [3 /*break*/, 9];
2173
- case 8:
2174
- try {
2175
- if (chunks_1_1 && !chunks_1_1.done && (_a = chunks_1.return)) _a.call(chunks_1);
2176
- }
2177
- finally { if (e_1) throw e_1.error; }
2178
- return [7 /*endfinally*/];
2179
- case 9: return [2 /*return*/, products];
2180
- }
2226
+ return __generator(this, function (_a) {
2227
+ if (!category.products)
2228
+ throw new RequiredArgumentError(['Category products is empty']);
2229
+ return [2 /*return*/, this.productsIndex.findById(category.products, {
2230
+ hasStock: options === null || options === void 0 ? void 0 : options.hasStock,
2231
+ size: options === null || options === void 0 ? void 0 : options.limit,
2232
+ shop: category.shop,
2233
+ })];
2181
2234
  });
2182
2235
  });
2183
2236
  };
@@ -2584,6 +2637,7 @@
2584
2637
  exports.Address = Address;
2585
2638
  exports.Authentication = Authentication;
2586
2639
  exports.AuthenticationFirebaseAuthService = AuthenticationFirebaseAuthService;
2640
+ exports.AxiosAdapter = AxiosAdapter;
2587
2641
  exports.Base = Base;
2588
2642
  exports.BaseModel = BaseModel;
2589
2643
  exports.BeautyProfile = BeautyProfile;
@@ -2616,6 +2670,7 @@
2616
2670
  exports.Product = Product;
2617
2671
  exports.ProductFirestoreRepository = ProductFirestoreRepository;
2618
2672
  exports.ProductVariantFirestoreRepository = ProductVariantFirestoreRepository;
2673
+ exports.ProductsIndex = ProductsIndex;
2619
2674
  exports.RecoveryPassword = RecoveryPassword;
2620
2675
  exports.Register = Register;
2621
2676
  exports.RegisterFirebaseAuthService = RegisterFirebaseAuthService;