@infrab4a/connect 3.3.0-beta.0 → 3.3.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (674) hide show
  1. package/README.md +24 -24
  2. package/domain/catalog/index.d.ts +2 -2
  3. package/domain/catalog/models/category.d.ts +24 -24
  4. package/domain/catalog/models/enums/index.d.ts +2 -2
  5. package/domain/catalog/models/enums/product-genders.enum.d.ts +5 -5
  6. package/domain/catalog/models/enums/shops.enum.d.ts +6 -6
  7. package/domain/catalog/models/index.d.ts +6 -6
  8. package/domain/catalog/models/kit-product.d.ts +12 -12
  9. package/domain/catalog/models/product.d.ts +39 -39
  10. package/domain/catalog/models/types/category-condition.type.d.ts +4 -4
  11. package/domain/catalog/models/types/category-filter.type.d.ts +4 -4
  12. package/domain/catalog/models/types/category-metadata.type.d.ts +4 -4
  13. package/domain/catalog/models/types/index.d.ts +10 -10
  14. package/domain/catalog/models/types/product-gender.type.d.ts +1 -1
  15. package/domain/catalog/models/types/product-metadata.type.d.ts +4 -4
  16. package/domain/catalog/models/types/product-review.type.d.ts +17 -17
  17. package/domain/catalog/models/types/shop-description.type.d.ts +7 -7
  18. package/domain/catalog/models/types/shop-price.type.d.ts +6 -6
  19. package/domain/catalog/models/types/stock.type.d.ts +3 -3
  20. package/domain/catalog/models/types/variant-grade.type.d.ts +4 -4
  21. package/domain/catalog/models/variant.d.ts +18 -18
  22. package/domain/catalog/repositories/category.repository.d.ts +15 -15
  23. package/domain/catalog/repositories/index.d.ts +4 -4
  24. package/domain/catalog/repositories/product.repository.d.ts +12 -12
  25. package/domain/catalog/repositories/subscription-product.repository.d.ts +4 -4
  26. package/domain/catalog/repositories/variant.repository.d.ts +4 -4
  27. package/domain/generic/index.d.ts +2 -2
  28. package/domain/generic/model/base.model.d.ts +10 -10
  29. package/domain/generic/model/identifier-fields.d.ts +4 -4
  30. package/domain/generic/model/index.d.ts +3 -3
  31. package/domain/generic/model/types/base-model-builder.type.d.ts +15 -15
  32. package/domain/generic/model/types/identifier-model.type.d.ts +7 -7
  33. package/domain/generic/model/types/index.d.ts +5 -5
  34. package/domain/generic/model/types/model-base-structure.type.d.ts +6 -6
  35. package/domain/generic/model/types/non-function-properties.type.d.ts +12 -12
  36. package/domain/generic/model/types/non-function-property-name.type.d.ts +4 -4
  37. package/domain/generic/repository/create.repository.d.ts +8 -8
  38. package/domain/generic/repository/crud.repository.d.ts +19 -19
  39. package/domain/generic/repository/delete.repository.d.ts +7 -7
  40. package/domain/generic/repository/enums/index.d.ts +2 -2
  41. package/domain/generic/repository/enums/update-option-actions.enum.d.ts +7 -7
  42. package/domain/generic/repository/enums/where.enum.d.ts +14 -14
  43. package/domain/generic/repository/find.repository.d.ts +11 -11
  44. package/domain/generic/repository/get.repository.d.ts +5 -5
  45. package/domain/generic/repository/index.d.ts +9 -9
  46. package/domain/generic/repository/read.repository.d.ts +14 -14
  47. package/domain/generic/repository/types/index.d.ts +6 -6
  48. package/domain/generic/repository/types/repository-find-filters.type.d.ts +13 -13
  49. package/domain/generic/repository/types/repository-find-result.type.d.ts +4 -4
  50. package/domain/generic/repository/types/repository-limit-options.type.d.ts +4 -4
  51. package/domain/generic/repository/types/repository-order-by-list.type.d.ts +5 -5
  52. package/domain/generic/repository/types/repository-update-params.type.d.ts +11 -11
  53. package/domain/generic/repository/types/where-options.type.d.ts +2 -2
  54. package/domain/generic/repository/update.repository.d.ts +6 -6
  55. package/domain/index.d.ts +6 -6
  56. package/domain/location/index.d.ts +1 -1
  57. package/domain/location/models/address.d.ts +22 -22
  58. package/domain/location/models/index.d.ts +2 -2
  59. package/domain/location/models/types/index.d.ts +3 -3
  60. package/domain/location/models/types/location-bound.type.d.ts +6 -6
  61. package/domain/location/models/types/location-geometry.type.d.ts +7 -7
  62. package/domain/location/models/types/location-lat-lng.type.d.ts +4 -4
  63. package/domain/shop-settings/enums/filter-type.enum.d.ts +19 -19
  64. package/domain/shop-settings/enums/index.d.ts +2 -2
  65. package/domain/shop-settings/enums/questions-filters.enum.d.ts +19 -19
  66. package/domain/shop-settings/helpers/beauty-questions.helper.d.ts +9 -9
  67. package/domain/shop-settings/helpers/index.d.ts +1 -1
  68. package/domain/shop-settings/index.d.ts +4 -4
  69. package/domain/shop-settings/models/home.d.ts +18 -18
  70. package/domain/shop-settings/models/index.d.ts +3 -4
  71. package/domain/shop-settings/models/shop-menu.d.ts +7 -7
  72. package/domain/shop-settings/models/types/banner.type.d.ts +6 -6
  73. package/domain/shop-settings/models/types/benefit.type.d.ts +5 -5
  74. package/domain/shop-settings/models/types/home-data.type.d.ts +15 -15
  75. package/domain/shop-settings/models/types/index.d.ts +5 -10
  76. package/domain/shop-settings/models/types/menu-nav.type.d.ts +8 -8
  77. package/domain/shop-settings/models/types/sub-menu.type.d.ts +8 -8
  78. package/domain/shop-settings/repositories/home.repository.d.ts +4 -4
  79. package/domain/shop-settings/repositories/index.d.ts +2 -3
  80. package/domain/shop-settings/repositories/shop-menu.repository.d.ts +4 -4
  81. package/domain/shopping/index.d.ts +2 -2
  82. package/domain/shopping/models/buy-2-win.d.ts +16 -16
  83. package/domain/shopping/models/checkout.d.ts +27 -27
  84. package/domain/shopping/models/coupons/coupon.d.ts +32 -32
  85. package/domain/shopping/models/coupons/enums/coupon-club-mens.enum.d.ts +5 -5
  86. package/domain/shopping/models/coupons/enums/coupon-subtypes.enum.d.ts +4 -4
  87. package/domain/shopping/models/coupons/enums/coupon-types.enum.d.ts +4 -4
  88. package/domain/shopping/models/coupons/enums/exclusivities.enum.d.ts +8 -8
  89. package/domain/shopping/models/coupons/enums/index.d.ts +3 -3
  90. package/domain/shopping/models/coupons/index.d.ts +2 -2
  91. package/domain/shopping/models/enums/checkout-types.enum.d.ts +5 -5
  92. package/domain/shopping/models/enums/index.d.ts +2 -2
  93. package/domain/shopping/models/enums/order-status.enum.d.ts +10 -10
  94. package/domain/shopping/models/index.d.ts +11 -11
  95. package/domain/shopping/models/line-item.d.ts +8 -8
  96. package/domain/shopping/models/order.d.ts +9 -9
  97. package/domain/shopping/models/payment.d.ts +67 -67
  98. package/domain/shopping/models/shipping-method.d.ts +16 -16
  99. package/domain/shopping/models/subscription/checkout.d.ts +21 -21
  100. package/domain/shopping/models/subscription/index.d.ts +2 -2
  101. package/domain/shopping/models/subscription/plan.d.ts +10 -10
  102. package/domain/shopping/models/types/index.d.ts +7 -7
  103. package/domain/shopping/models/types/payment-address.type.d.ts +12 -12
  104. package/domain/shopping/models/types/payment-billing.type.d.ts +7 -7
  105. package/domain/shopping/models/types/payment-card.type.d.ts +14 -14
  106. package/domain/shopping/models/types/payment-customer.type.d.ts +18 -18
  107. package/domain/shopping/models/types/payment-document.type.d.ts +6 -6
  108. package/domain/shopping/models/types/payment-item.type.d.ts +11 -11
  109. package/domain/shopping/models/types/payment-shipping.type.d.ts +10 -10
  110. package/domain/shopping/repositories/buy-2-win.repository.d.ts +4 -4
  111. package/domain/shopping/repositories/checkout.repository.d.ts +4 -4
  112. package/domain/shopping/repositories/coupon.repository.d.ts +4 -4
  113. package/domain/shopping/repositories/index.d.ts +7 -7
  114. package/domain/shopping/repositories/legacy-order.repository.d.ts +3 -3
  115. package/domain/shopping/repositories/order.repository.d.ts +4 -4
  116. package/domain/shopping/repositories/payment.repository.d.ts +4 -4
  117. package/domain/shopping/repositories/subscription/checkout.repository.d.ts +4 -4
  118. package/domain/shopping/repositories/subscription/index.d.ts +2 -2
  119. package/domain/shopping/repositories/subscription/plan.repository.d.ts +4 -4
  120. package/domain/users/errors/index.d.ts +3 -3
  121. package/domain/users/errors/unauthorized.error.d.ts +5 -5
  122. package/domain/users/errors/user-already-registered.error.d.ts +5 -5
  123. package/domain/users/errors/weak-password.error.d.ts +5 -5
  124. package/domain/users/index.d.ts +5 -5
  125. package/domain/users/models/beauty-profile.d.ts +11 -11
  126. package/domain/users/models/enums/accessory-importances.enum.d.ts +5 -5
  127. package/domain/users/models/enums/area.enum.d.ts +11 -11
  128. package/domain/users/models/enums/beard-problems.enum.d.ts +9 -9
  129. package/domain/users/models/enums/beard-sizes.enum.d.ts +7 -7
  130. package/domain/users/models/enums/beauty-product-importances.enum.d.ts +6 -6
  131. package/domain/users/models/enums/body-problems.enum.d.ts +11 -11
  132. package/domain/users/models/enums/body-shapes.enum.d.ts +7 -7
  133. package/domain/users/models/enums/body-tattoos.enum.d.ts +5 -5
  134. package/domain/users/models/enums/face-skin-oilinesses.enum.d.ts +7 -7
  135. package/domain/users/models/enums/face-skin-problems.enum.d.ts +10 -10
  136. package/domain/users/models/enums/face-skin-tones.enum.d.ts +8 -8
  137. package/domain/users/models/enums/family-incomes.enum.d.ts +8 -8
  138. package/domain/users/models/enums/fragrance-importances.enum.d.ts +5 -5
  139. package/domain/users/models/enums/hair-colors.enum.d.ts +10 -10
  140. package/domain/users/models/enums/hair-problems.enum.d.ts +10 -10
  141. package/domain/users/models/enums/hair-strands.enum.d.ts +8 -8
  142. package/domain/users/models/enums/hair-types.enum.d.ts +7 -7
  143. package/domain/users/models/enums/index.d.ts +20 -20
  144. package/domain/users/models/enums/office-position.enum.d.ts +6 -6
  145. package/domain/users/models/enums/product-spents.enum.d.ts +8 -8
  146. package/domain/users/models/enums/user-type.enum.d.ts +8 -8
  147. package/domain/users/models/index.d.ts +7 -7
  148. package/domain/users/models/lead.d.ts +7 -7
  149. package/domain/users/models/subscription/edition.d.ts +16 -16
  150. package/domain/users/models/subscription/enums/billing-status.enum.d.ts +3 -3
  151. package/domain/users/models/subscription/enums/edition-status.enum.d.ts +4 -4
  152. package/domain/users/models/subscription/enums/index.d.ts +4 -4
  153. package/domain/users/models/subscription/enums/payment-type.enum.d.ts +5 -5
  154. package/domain/users/models/subscription/enums/status.enum.d.ts +4 -4
  155. package/domain/users/models/subscription/index.d.ts +4 -4
  156. package/domain/users/models/subscription/payment.d.ts +13 -13
  157. package/domain/users/models/subscription/subscription.d.ts +28 -28
  158. package/domain/users/models/user-address.d.ts +7 -7
  159. package/domain/users/models/user-payment-method.d.ts +14 -14
  160. package/domain/users/models/user.d.ts +28 -28
  161. package/domain/users/repositories/beauty-profile.repository.d.ts +4 -4
  162. package/domain/users/repositories/edition.repository.d.ts +4 -4
  163. package/domain/users/repositories/index.d.ts +8 -8
  164. package/domain/users/repositories/lead.repository.d.ts +4 -4
  165. package/domain/users/repositories/subscription-payment.repository.d.ts +4 -4
  166. package/domain/users/repositories/subscription.repository.d.ts +4 -4
  167. package/domain/users/repositories/user-address.repository.d.ts +4 -4
  168. package/domain/users/repositories/user-payment-method.repository.d.ts +4 -4
  169. package/domain/users/repositories/user.repository.d.ts +6 -6
  170. package/domain/users/services/authentication.service.d.ts +12 -12
  171. package/domain/users/services/index.d.ts +3 -3
  172. package/domain/users/services/register.service.d.ts +7 -7
  173. package/domain/users/services/types/basic-user-data.type.d.ts +4 -4
  174. package/domain/users/services/types/index.d.ts +1 -1
  175. package/domain/users/use-cases/authentication.d.ts +21 -21
  176. package/domain/users/use-cases/index.d.ts +4 -4
  177. package/domain/users/use-cases/recovery-password.d.ts +6 -6
  178. package/domain/users/use-cases/register.d.ts +13 -13
  179. package/domain/users/use-cases/signout.d.ts +6 -6
  180. package/errors/duplicated-results.error.d.ts +5 -5
  181. package/errors/index.d.ts +4 -4
  182. package/errors/invalid-argument.error.d.ts +5 -5
  183. package/errors/not-found.error.d.ts +5 -5
  184. package/errors/required-argument.error.d.ts +6 -6
  185. package/{esm2015/domain/catalog/index.js → esm2020/domain/catalog/index.mjs} +3 -3
  186. package/esm2020/domain/catalog/models/category.mjs +10 -0
  187. package/{esm2015/domain/catalog/models/enums/index.js → esm2020/domain/catalog/models/enums/index.mjs} +3 -3
  188. package/{esm2015/domain/catalog/models/enums/product-genders.enum.js → esm2020/domain/catalog/models/enums/product-genders.enum.mjs} +7 -7
  189. package/{esm2015/domain/catalog/models/enums/shops.enum.js → esm2020/domain/catalog/models/enums/shops.enum.mjs} +8 -8
  190. package/{esm2015/domain/catalog/models/index.js → esm2020/domain/catalog/models/index.mjs} +7 -7
  191. package/{esm2015/domain/catalog/models/kit-product.js → esm2020/domain/catalog/models/kit-product.mjs} +18 -18
  192. package/esm2020/domain/catalog/models/product.mjs +17 -0
  193. package/{esm2015/domain/catalog/models/types/category-condition.type.js → esm2020/domain/catalog/models/types/category-condition.type.mjs} +2 -2
  194. package/{esm2015/domain/catalog/models/types/category-filter.type.js → esm2020/domain/catalog/models/types/category-filter.type.mjs} +2 -2
  195. package/{esm2015/domain/catalog/models/types/category-metadata.type.js → esm2020/domain/catalog/models/types/category-metadata.type.mjs} +2 -2
  196. package/{esm2015/domain/catalog/models/types/index.js → esm2020/domain/catalog/models/types/index.mjs} +11 -11
  197. package/{esm2015/domain/catalog/models/types/product-gender.type.js → esm2020/domain/catalog/models/types/product-gender.type.mjs} +2 -2
  198. package/{esm2015/domain/catalog/models/types/product-metadata.type.js → esm2020/domain/catalog/models/types/product-metadata.type.mjs} +2 -2
  199. package/esm2020/domain/catalog/models/types/product-review.type.mjs +2 -0
  200. package/{esm2015/domain/catalog/models/types/shop-description.type.js → esm2020/domain/catalog/models/types/shop-description.type.mjs} +2 -2
  201. package/{esm2015/domain/catalog/models/types/shop-price.type.js → esm2020/domain/catalog/models/types/shop-price.type.mjs} +2 -2
  202. package/{esm2015/domain/catalog/models/types/stock.type.js → esm2020/domain/catalog/models/types/stock.type.mjs} +2 -2
  203. package/{esm2015/domain/catalog/models/types/variant-grade.type.js → esm2020/domain/catalog/models/types/variant-grade.type.mjs} +2 -2
  204. package/esm2020/domain/catalog/models/variant.mjs +10 -0
  205. package/esm2020/domain/catalog/repositories/category.repository.mjs +2 -0
  206. package/{esm2015/domain/catalog/repositories/index.js → esm2020/domain/catalog/repositories/index.mjs} +5 -5
  207. package/esm2020/domain/catalog/repositories/product.repository.mjs +2 -0
  208. package/{esm2015/domain/catalog/repositories/subscription-product.repository.js → esm2020/domain/catalog/repositories/subscription-product.repository.mjs} +2 -2
  209. package/{esm2015/domain/catalog/repositories/variant.repository.js → esm2020/domain/catalog/repositories/variant.repository.mjs} +2 -2
  210. package/{esm2015/domain/generic/index.js → esm2020/domain/generic/index.mjs} +3 -3
  211. package/esm2020/domain/generic/model/base.model.mjs +23 -0
  212. package/{esm2015/domain/generic/model/identifier-fields.js → esm2020/domain/generic/model/identifier-fields.mjs} +2 -2
  213. package/{esm2015/domain/generic/model/index.js → esm2020/domain/generic/model/index.mjs} +4 -4
  214. package/esm2020/domain/generic/model/types/base-model-builder.type.mjs +2 -0
  215. package/esm2020/domain/generic/model/types/identifier-model.type.mjs +2 -0
  216. package/{esm2015/domain/generic/model/types/index.js → esm2020/domain/generic/model/types/index.mjs} +6 -6
  217. package/{esm2015/domain/generic/model/types/model-base-structure.type.js → esm2020/domain/generic/model/types/model-base-structure.type.mjs} +2 -2
  218. package/esm2020/domain/generic/model/types/non-function-properties.type.mjs +2 -0
  219. package/{esm2015/domain/generic/model/types/non-function-property-name.type.js → esm2020/domain/generic/model/types/non-function-property-name.type.mjs} +2 -2
  220. package/esm2020/domain/generic/repository/create.repository.mjs +2 -0
  221. package/esm2020/domain/generic/repository/crud.repository.mjs +2 -0
  222. package/esm2020/domain/generic/repository/delete.repository.mjs +2 -0
  223. package/{esm2015/domain/generic/repository/enums/index.js → esm2020/domain/generic/repository/enums/index.mjs} +3 -3
  224. package/{esm2015/domain/generic/repository/enums/update-option-actions.enum.js → esm2020/domain/generic/repository/enums/update-option-actions.enum.mjs} +9 -9
  225. package/{esm2015/domain/generic/repository/enums/where.enum.js → esm2020/domain/generic/repository/enums/where.enum.mjs} +16 -16
  226. package/esm2020/domain/generic/repository/find.repository.mjs +2 -0
  227. package/esm2020/domain/generic/repository/get.repository.mjs +2 -0
  228. package/{esm2015/domain/generic/repository/index.js → esm2020/domain/generic/repository/index.mjs} +10 -10
  229. package/esm2020/domain/generic/repository/read.repository.mjs +2 -0
  230. package/{esm2015/domain/generic/repository/types/index.js → esm2020/domain/generic/repository/types/index.mjs} +7 -7
  231. package/esm2020/domain/generic/repository/types/repository-find-filters.type.mjs +2 -0
  232. package/{esm2015/domain/generic/repository/types/repository-find-result.type.js → esm2020/domain/generic/repository/types/repository-find-result.type.mjs} +2 -2
  233. package/{esm2015/domain/generic/repository/types/repository-limit-options.type.js → esm2020/domain/generic/repository/types/repository-limit-options.type.mjs} +2 -2
  234. package/{esm2015/domain/generic/repository/types/repository-order-by-list.type.js → esm2020/domain/generic/repository/types/repository-order-by-list.type.mjs} +2 -2
  235. package/esm2020/domain/generic/repository/types/repository-update-params.type.mjs +2 -0
  236. package/{esm2015/domain/generic/repository/types/where-options.type.js → esm2020/domain/generic/repository/types/where-options.type.mjs} +2 -2
  237. package/esm2020/domain/generic/repository/update.repository.mjs +2 -0
  238. package/{esm2015/domain/index.js → esm2020/domain/index.mjs} +7 -7
  239. package/{esm2015/domain/location/index.js → esm2020/domain/location/index.mjs} +2 -2
  240. package/esm2020/domain/location/models/address.mjs +7 -0
  241. package/{esm2015/domain/location/models/index.js → esm2020/domain/location/models/index.mjs} +3 -3
  242. package/{esm2015/domain/location/models/types/index.js → esm2020/domain/location/models/types/index.mjs} +4 -4
  243. package/{esm2015/domain/location/models/types/location-bound.type.js → esm2020/domain/location/models/types/location-bound.type.mjs} +2 -2
  244. package/{esm2015/domain/location/models/types/location-geometry.type.js → esm2020/domain/location/models/types/location-geometry.type.mjs} +2 -2
  245. package/{esm2015/domain/location/models/types/location-lat-lng.type.js → esm2020/domain/location/models/types/location-lat-lng.type.mjs} +2 -2
  246. package/{esm2015/domain/shop-settings/enums/filter-type.enum.js → esm2020/domain/shop-settings/enums/filter-type.enum.mjs} +21 -21
  247. package/{esm2015/domain/shop-settings/enums/index.js → esm2020/domain/shop-settings/enums/index.mjs} +3 -3
  248. package/{esm2015/domain/shop-settings/enums/questions-filters.enum.js → esm2020/domain/shop-settings/enums/questions-filters.enum.mjs} +21 -21
  249. package/{esm2015/domain/shop-settings/helpers/beauty-questions.helper.js → esm2020/domain/shop-settings/helpers/beauty-questions.helper.mjs} +46 -46
  250. package/{esm2015/domain/shop-settings/helpers/index.js → esm2020/domain/shop-settings/helpers/index.mjs} +2 -2
  251. package/{esm2015/domain/shop-settings/index.js → esm2020/domain/shop-settings/index.mjs} +5 -5
  252. package/esm2020/domain/shop-settings/models/home.mjs +7 -0
  253. package/{esm2015/domain/shop-settings/models/index.js → esm2020/domain/shop-settings/models/index.mjs} +4 -5
  254. package/{esm2015/domain/shop-settings/models/shop-menu.js → esm2020/domain/shop-settings/models/shop-menu.mjs} +7 -7
  255. package/{esm2015/domain/shop-settings/models/types/banner.type.js → esm2020/domain/shop-settings/models/types/banner.type.mjs} +2 -2
  256. package/{esm2015/domain/shop-settings/models/types/benefit.type.js → esm2020/domain/shop-settings/models/types/benefit.type.mjs} +2 -2
  257. package/esm2020/domain/shop-settings/models/types/home-data.type.mjs +2 -0
  258. package/esm2020/domain/shop-settings/models/types/index.mjs +6 -0
  259. package/{esm2015/domain/shop-settings/models/types/menu-nav.type.js → esm2020/domain/shop-settings/models/types/menu-nav.type.mjs} +2 -2
  260. package/{esm2015/domain/shop-settings/models/types/sub-menu.type.js → esm2020/domain/shop-settings/models/types/sub-menu.type.mjs} +2 -2
  261. package/{esm2015/domain/shop-settings/repositories/home.repository.js → esm2020/domain/shop-settings/repositories/home.repository.mjs} +2 -2
  262. package/{esm2015/domain/shop-settings/repositories/index.js → esm2020/domain/shop-settings/repositories/index.mjs} +3 -4
  263. package/{esm2015/domain/shop-settings/repositories/shop-menu.repository.js → esm2020/domain/shop-settings/repositories/shop-menu.repository.mjs} +2 -2
  264. package/{esm2015/domain/shopping/index.js → esm2020/domain/shopping/index.mjs} +3 -3
  265. package/{esm2015/domain/shopping/models/buy-2-win.js → esm2020/domain/shopping/models/buy-2-win.mjs} +14 -14
  266. package/esm2020/domain/shopping/models/checkout.mjs +38 -0
  267. package/{esm2015/domain/shopping/models/coupons/coupon.js → esm2020/domain/shopping/models/coupons/coupon.mjs} +38 -38
  268. package/{esm2015/domain/shopping/models/coupons/enums/coupon-club-mens.enum.js → esm2020/domain/shopping/models/coupons/enums/coupon-club-mens.enum.mjs} +7 -7
  269. package/{esm2015/domain/shopping/models/coupons/enums/coupon-subtypes.enum.js → esm2020/domain/shopping/models/coupons/enums/coupon-subtypes.enum.mjs} +6 -6
  270. package/{esm2015/domain/shopping/models/coupons/enums/coupon-types.enum.js → esm2020/domain/shopping/models/coupons/enums/coupon-types.enum.mjs} +10 -10
  271. package/{esm2015/domain/shopping/models/coupons/enums/exclusivities.enum.js → esm2020/domain/shopping/models/coupons/enums/exclusivities.enum.mjs} +10 -10
  272. package/{esm2015/domain/shopping/models/coupons/enums/index.js → esm2020/domain/shopping/models/coupons/enums/index.mjs} +4 -4
  273. package/{esm2015/domain/shopping/models/coupons/index.js → esm2020/domain/shopping/models/coupons/index.mjs} +3 -3
  274. package/{esm2015/domain/shopping/models/enums/checkout-types.enum.js → esm2020/domain/shopping/models/enums/checkout-types.enum.mjs} +7 -7
  275. package/{esm2015/domain/shopping/models/enums/index.js → esm2020/domain/shopping/models/enums/index.mjs} +3 -3
  276. package/{esm2015/domain/shopping/models/enums/order-status.enum.js → esm2020/domain/shopping/models/enums/order-status.enum.mjs} +12 -12
  277. package/{esm2015/domain/shopping/models/index.js → esm2020/domain/shopping/models/index.mjs} +12 -12
  278. package/{esm2015/domain/shopping/models/line-item.js → esm2020/domain/shopping/models/line-item.mjs} +4 -4
  279. package/{esm2015/domain/shopping/models/order.js → esm2020/domain/shopping/models/order.mjs} +11 -11
  280. package/esm2020/domain/shopping/models/payment.mjs +169 -0
  281. package/{esm2015/domain/shopping/models/shipping-method.js → esm2020/domain/shopping/models/shipping-method.mjs} +7 -7
  282. package/{esm2015/domain/shopping/models/subscription/checkout.js → esm2020/domain/shopping/models/subscription/checkout.mjs} +28 -28
  283. package/{esm2015/domain/shopping/models/subscription/index.js → esm2020/domain/shopping/models/subscription/index.mjs} +3 -3
  284. package/{esm2015/domain/shopping/models/subscription/plan.js → esm2020/domain/shopping/models/subscription/plan.mjs} +7 -7
  285. package/{esm2015/domain/shopping/models/types/index.js → esm2020/domain/shopping/models/types/index.mjs} +8 -8
  286. package/esm2020/domain/shopping/models/types/payment-address.type.mjs +2 -0
  287. package/{esm2015/domain/shopping/models/types/payment-billing.type.js → esm2020/domain/shopping/models/types/payment-billing.type.mjs} +2 -2
  288. package/esm2020/domain/shopping/models/types/payment-card.type.mjs +2 -0
  289. package/esm2020/domain/shopping/models/types/payment-customer.type.mjs +2 -0
  290. package/{esm2015/domain/shopping/models/types/payment-document.type.js → esm2020/domain/shopping/models/types/payment-document.type.mjs} +2 -2
  291. package/{esm2015/domain/shopping/models/types/payment-item.type.js → esm2020/domain/shopping/models/types/payment-item.type.mjs} +2 -2
  292. package/{esm2015/domain/shopping/models/types/payment-shipping.type.js → esm2020/domain/shopping/models/types/payment-shipping.type.mjs} +2 -2
  293. package/{esm2015/domain/shopping/repositories/buy-2-win.repository.js → esm2020/domain/shopping/repositories/buy-2-win.repository.mjs} +2 -2
  294. package/{esm2015/domain/shopping/repositories/checkout.repository.js → esm2020/domain/shopping/repositories/checkout.repository.mjs} +2 -2
  295. package/{esm2015/domain/shopping/repositories/coupon.repository.js → esm2020/domain/shopping/repositories/coupon.repository.mjs} +2 -2
  296. package/{esm2015/domain/shopping/repositories/index.js → esm2020/domain/shopping/repositories/index.mjs} +8 -8
  297. package/{esm2015/domain/shopping/repositories/legacy-order.repository.js → esm2020/domain/shopping/repositories/legacy-order.repository.mjs} +2 -2
  298. package/{esm2015/domain/shopping/repositories/order.repository.js → esm2020/domain/shopping/repositories/order.repository.mjs} +2 -2
  299. package/{esm2015/domain/shopping/repositories/payment.repository.js → esm2020/domain/shopping/repositories/payment.repository.mjs} +2 -2
  300. package/{esm2015/domain/shopping/repositories/subscription/checkout.repository.js → esm2020/domain/shopping/repositories/subscription/checkout.repository.mjs} +2 -2
  301. package/{esm2015/domain/shopping/repositories/subscription/index.js → esm2020/domain/shopping/repositories/subscription/index.mjs} +3 -3
  302. package/{esm2015/domain/shopping/repositories/subscription/plan.repository.js → esm2020/domain/shopping/repositories/subscription/plan.repository.mjs} +2 -2
  303. package/{esm2015/domain/users/errors/index.js → esm2020/domain/users/errors/index.mjs} +4 -4
  304. package/{esm2015/domain/users/errors/unauthorized.error.js → esm2020/domain/users/errors/unauthorized.error.mjs} +8 -8
  305. package/{esm2015/domain/users/errors/user-already-registered.error.js → esm2020/domain/users/errors/user-already-registered.error.mjs} +8 -8
  306. package/{esm2015/domain/users/errors/weak-password.error.js → esm2020/domain/users/errors/weak-password.error.mjs} +8 -8
  307. package/{esm2015/domain/users/index.js → esm2020/domain/users/index.mjs} +6 -6
  308. package/{esm2015/domain/users/models/beauty-profile.js → esm2020/domain/users/models/beauty-profile.mjs} +12 -12
  309. package/{esm2015/domain/users/models/enums/accessory-importances.enum.js → esm2020/domain/users/models/enums/accessory-importances.enum.mjs} +7 -7
  310. package/{esm2015/domain/users/models/enums/area.enum.js → esm2020/domain/users/models/enums/area.enum.mjs} +13 -13
  311. package/{esm2015/domain/users/models/enums/beard-problems.enum.js → esm2020/domain/users/models/enums/beard-problems.enum.mjs} +11 -11
  312. package/{esm2015/domain/users/models/enums/beard-sizes.enum.js → esm2020/domain/users/models/enums/beard-sizes.enum.mjs} +9 -9
  313. package/{esm2015/domain/users/models/enums/beauty-product-importances.enum.js → esm2020/domain/users/models/enums/beauty-product-importances.enum.mjs} +8 -8
  314. package/{esm2015/domain/users/models/enums/body-problems.enum.js → esm2020/domain/users/models/enums/body-problems.enum.mjs} +13 -13
  315. package/{esm2015/domain/users/models/enums/body-shapes.enum.js → esm2020/domain/users/models/enums/body-shapes.enum.mjs} +9 -9
  316. package/{esm2015/domain/users/models/enums/body-tattoos.enum.js → esm2020/domain/users/models/enums/body-tattoos.enum.mjs} +7 -7
  317. package/{esm2015/domain/users/models/enums/face-skin-oilinesses.enum.js → esm2020/domain/users/models/enums/face-skin-oilinesses.enum.mjs} +9 -9
  318. package/{esm2015/domain/users/models/enums/face-skin-problems.enum.js → esm2020/domain/users/models/enums/face-skin-problems.enum.mjs} +12 -12
  319. package/{esm2015/domain/users/models/enums/face-skin-tones.enum.js → esm2020/domain/users/models/enums/face-skin-tones.enum.mjs} +10 -10
  320. package/{esm2015/domain/users/models/enums/family-incomes.enum.js → esm2020/domain/users/models/enums/family-incomes.enum.mjs} +10 -10
  321. package/{esm2015/domain/users/models/enums/fragrance-importances.enum.js → esm2020/domain/users/models/enums/fragrance-importances.enum.mjs} +7 -7
  322. package/{esm2015/domain/users/models/enums/hair-colors.enum.js → esm2020/domain/users/models/enums/hair-colors.enum.mjs} +12 -12
  323. package/{esm2015/domain/users/models/enums/hair-problems.enum.js → esm2020/domain/users/models/enums/hair-problems.enum.mjs} +12 -12
  324. package/{esm2015/domain/users/models/enums/hair-strands.enum.js → esm2020/domain/users/models/enums/hair-strands.enum.mjs} +10 -10
  325. package/{esm2015/domain/users/models/enums/hair-types.enum.js → esm2020/domain/users/models/enums/hair-types.enum.mjs} +9 -9
  326. package/{esm2015/domain/users/models/enums/index.js → esm2020/domain/users/models/enums/index.mjs} +21 -21
  327. package/{esm2015/domain/users/models/enums/office-position.enum.js → esm2020/domain/users/models/enums/office-position.enum.mjs} +8 -8
  328. package/{esm2015/domain/users/models/enums/product-spents.enum.js → esm2020/domain/users/models/enums/product-spents.enum.mjs} +10 -10
  329. package/{esm2015/domain/users/models/enums/user-type.enum.js → esm2020/domain/users/models/enums/user-type.enum.mjs} +10 -10
  330. package/{esm2015/domain/users/models/index.js → esm2020/domain/users/models/index.mjs} +8 -8
  331. package/{esm2015/domain/users/models/lead.js → esm2020/domain/users/models/lead.mjs} +7 -7
  332. package/esm2020/domain/users/models/subscription/edition.mjs +7 -0
  333. package/{esm2015/domain/users/models/subscription/enums/billing-status.enum.js → esm2020/domain/users/models/subscription/enums/billing-status.enum.mjs} +5 -5
  334. package/{esm2015/domain/users/models/subscription/enums/edition-status.enum.js → esm2020/domain/users/models/subscription/enums/edition-status.enum.mjs} +6 -6
  335. package/{esm2015/domain/users/models/subscription/enums/index.js → esm2020/domain/users/models/subscription/enums/index.mjs} +5 -5
  336. package/{esm2015/domain/users/models/subscription/enums/payment-type.enum.js → esm2020/domain/users/models/subscription/enums/payment-type.enum.mjs} +7 -7
  337. package/{esm2015/domain/users/models/subscription/enums/status.enum.js → esm2020/domain/users/models/subscription/enums/status.enum.mjs} +6 -6
  338. package/{esm2015/domain/users/models/subscription/index.js → esm2020/domain/users/models/subscription/index.mjs} +5 -5
  339. package/{esm2015/domain/users/models/subscription/payment.js → esm2020/domain/users/models/subscription/payment.mjs} +14 -14
  340. package/{esm2015/domain/users/models/subscription/subscription.js → esm2020/domain/users/models/subscription/subscription.mjs} +43 -43
  341. package/{esm2015/domain/users/models/user-address.js → esm2020/domain/users/models/user-address.mjs} +7 -7
  342. package/{esm2015/domain/users/models/user-payment-method.js → esm2020/domain/users/models/user-payment-method.mjs} +7 -7
  343. package/{esm2015/domain/users/models/user.js → esm2020/domain/users/models/user.mjs} +26 -26
  344. package/{esm2015/domain/users/repositories/beauty-profile.repository.js → esm2020/domain/users/repositories/beauty-profile.repository.mjs} +2 -2
  345. package/{esm2015/domain/users/repositories/edition.repository.js → esm2020/domain/users/repositories/edition.repository.mjs} +2 -2
  346. package/{esm2015/domain/users/repositories/index.js → esm2020/domain/users/repositories/index.mjs} +9 -9
  347. package/{esm2015/domain/users/repositories/lead.repository.js → esm2020/domain/users/repositories/lead.repository.mjs} +2 -2
  348. package/{esm2015/domain/users/repositories/subscription-payment.repository.js → esm2020/domain/users/repositories/subscription-payment.repository.mjs} +2 -2
  349. package/{esm2015/domain/users/repositories/subscription.repository.js → esm2020/domain/users/repositories/subscription.repository.mjs} +2 -2
  350. package/{esm2015/domain/users/repositories/user-address.repository.js → esm2020/domain/users/repositories/user-address.repository.mjs} +2 -2
  351. package/{esm2015/domain/users/repositories/user-payment-method.repository.js → esm2020/domain/users/repositories/user-payment-method.repository.mjs} +2 -2
  352. package/esm2020/domain/users/repositories/user.repository.mjs +2 -0
  353. package/esm2020/domain/users/services/authentication.service.mjs +2 -0
  354. package/{esm2015/domain/users/services/index.js → esm2020/domain/users/services/index.mjs} +4 -4
  355. package/{esm2015/domain/users/services/register.service.js → esm2020/domain/users/services/register.service.mjs} +2 -2
  356. package/{esm2015/domain/users/services/types/basic-user-data.type.js → esm2020/domain/users/services/types/basic-user-data.type.mjs} +2 -2
  357. package/{esm2015/domain/users/services/types/index.js → esm2020/domain/users/services/types/index.mjs} +2 -2
  358. package/esm2020/domain/users/use-cases/authentication.mjs +43 -0
  359. package/{esm2015/domain/users/use-cases/index.js → esm2020/domain/users/use-cases/index.mjs} +5 -5
  360. package/esm2020/domain/users/use-cases/recovery-password.mjs +9 -0
  361. package/esm2020/domain/users/use-cases/register.mjs +38 -0
  362. package/esm2020/domain/users/use-cases/signout.mjs +9 -0
  363. package/{esm2015/errors/duplicated-results.error.js → esm2020/errors/duplicated-results.error.mjs} +8 -8
  364. package/{esm2015/errors/index.js → esm2020/errors/index.mjs} +5 -5
  365. package/{esm2015/errors/invalid-argument.error.js → esm2020/errors/invalid-argument.error.mjs} +8 -8
  366. package/{esm2015/errors/not-found.error.js → esm2020/errors/not-found.error.mjs} +8 -8
  367. package/{esm2015/errors/required-argument.error.js → esm2020/errors/required-argument.error.mjs} +9 -9
  368. package/{esm2015/index.js → esm2020/index.mjs} +6 -6
  369. package/esm2020/infra/elasticsearch/adapters/axios.adapter.mjs +48 -0
  370. package/esm2020/infra/elasticsearch/adapters/elastic-search.adapter.mjs +2 -0
  371. package/{esm2015/infra/elasticsearch/adapters/index.js → esm2020/infra/elasticsearch/adapters/index.mjs} +3 -3
  372. package/{esm2015/infra/elasticsearch/index.js → esm2020/infra/elasticsearch/index.mjs} +4 -4
  373. package/{esm2015/infra/elasticsearch/indexes/index.js → esm2020/infra/elasticsearch/indexes/index.mjs} +2 -2
  374. package/esm2020/infra/elasticsearch/indexes/products-index.mjs +88 -0
  375. package/{esm2015/infra/elasticsearch/types/elastic-search-result.js → esm2020/infra/elasticsearch/types/elastic-search-result.mjs} +2 -2
  376. package/{esm2015/infra/elasticsearch/types/index.js → esm2020/infra/elasticsearch/types/index.mjs} +2 -2
  377. package/esm2020/infra/firebase/auth/authentication-firebase-auth.service.mjs +41 -0
  378. package/{esm2015/infra/firebase/auth/index.js → esm2020/infra/firebase/auth/index.mjs} +3 -3
  379. package/esm2020/infra/firebase/auth/register-firebase-auth.service.mjs +23 -0
  380. package/{esm2015/infra/firebase/auth/types/firebase-user-with-id.type.js → esm2020/infra/firebase/auth/types/firebase-user-with-id.type.mjs} +2 -2
  381. package/esm2020/infra/firebase/firestore/enums/firestore-field-type.enum.mjs +10 -0
  382. package/esm2020/infra/firebase/firestore/enums/index.mjs +2 -0
  383. package/{esm2015/infra/firebase/firestore/index.js → esm2020/infra/firebase/firestore/index.mjs} +4 -4
  384. package/{esm2015/infra/firebase/firestore/mixins/index.js → esm2020/infra/firebase/firestore/mixins/index.mjs} +10 -10
  385. package/esm2020/infra/firebase/firestore/mixins/with-create-firestore.mixin.mjs +25 -0
  386. package/esm2020/infra/firebase/firestore/mixins/with-crud-firestore.mixin.mjs +10 -0
  387. package/esm2020/infra/firebase/firestore/mixins/with-delete-firestore.mixin.mjs +15 -0
  388. package/esm2020/infra/firebase/firestore/mixins/with-find-firestore.mixin.mjs +94 -0
  389. package/esm2020/infra/firebase/firestore/mixins/with-firestore.mixin.mjs +52 -0
  390. package/esm2020/infra/firebase/firestore/mixins/with-get-firestore.mixin.mjs +21 -0
  391. package/{esm2015/infra/firebase/firestore/mixins/with-helpers.mixin.js → esm2020/infra/firebase/firestore/mixins/with-helpers.mixin.mjs} +17 -17
  392. package/esm2020/infra/firebase/firestore/mixins/with-sub-collection.mixin.mjs +11 -0
  393. package/esm2020/infra/firebase/firestore/mixins/with-update-firestore.mixin.mjs +42 -0
  394. package/esm2020/infra/firebase/firestore/repositories/catalog/category-firestore.repository.mjs +64 -0
  395. package/{esm2015/infra/firebase/firestore/repositories/catalog/index.js → esm2020/infra/firebase/firestore/repositories/catalog/index.mjs} +5 -5
  396. package/esm2020/infra/firebase/firestore/repositories/catalog/product-firestore.repository.mjs +45 -0
  397. package/{esm2015/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.js → esm2020/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.mjs} +14 -14
  398. package/{esm2015/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.js → esm2020/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.mjs} +12 -12
  399. package/{esm2015/infra/firebase/firestore/repositories/index.js → esm2020/infra/firebase/firestore/repositories/index.mjs} +5 -5
  400. package/esm2020/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.mjs +54 -0
  401. package/{esm2015/infra/firebase/firestore/repositories/shop-settings/index.js → esm2020/infra/firebase/firestore/repositories/shop-settings/index.mjs} +3 -4
  402. package/{esm2015/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.js → esm2020/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.mjs} +12 -12
  403. package/{esm2015/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.js → esm2020/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.mjs} +12 -12
  404. package/{esm2015/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.js → esm2020/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.mjs} +12 -12
  405. package/{esm2015/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.js → esm2020/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.mjs} +12 -12
  406. package/{esm2015/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.js → esm2020/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.mjs} +29 -29
  407. package/{esm2015/infra/firebase/firestore/repositories/shopping/index.js → esm2020/infra/firebase/firestore/repositories/shopping/index.mjs} +9 -9
  408. package/{esm2015/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.js → esm2020/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.mjs} +9 -9
  409. package/esm2020/infra/firebase/firestore/repositories/shopping/order-firestore.repository.mjs +38 -0
  410. package/{esm2015/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.js → esm2020/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.mjs} +12 -12
  411. package/{esm2015/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.js → esm2020/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.mjs} +12 -12
  412. package/{esm2015/infra/firebase/firestore/repositories/users/index.js → esm2020/infra/firebase/firestore/repositories/users/index.mjs} +9 -9
  413. package/{esm2015/infra/firebase/firestore/repositories/users/lead-firestore.repository.js → esm2020/infra/firebase/firestore/repositories/users/lead-firestore.repository.mjs} +12 -12
  414. package/{esm2015/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.js → esm2020/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.mjs} +14 -14
  415. package/{esm2015/infra/firebase/firestore/repositories/users/subscription-firestore.repository.js → esm2020/infra/firebase/firestore/repositories/users/subscription-firestore.repository.mjs} +12 -12
  416. package/{esm2015/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.js → esm2020/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.mjs} +14 -14
  417. package/{esm2015/infra/firebase/firestore/repositories/users/user-address-firestore.repository.js → esm2020/infra/firebase/firestore/repositories/users/user-address-firestore.repository.mjs} +14 -14
  418. package/{esm2015/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.js → esm2020/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.mjs} +14 -14
  419. package/esm2020/infra/firebase/firestore/repositories/users/user-firestore.repository.mjs +56 -0
  420. package/{esm2015/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.js → esm2020/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.mjs} +14 -14
  421. package/esm2020/infra/firebase/firestore/types/firestore-sub.repository.type.mjs +2 -0
  422. package/esm2020/infra/firebase/firestore/types/firestore.helpers.type.mjs +2 -0
  423. package/esm2020/infra/firebase/firestore/types/firestore.repository.type.mjs +2 -0
  424. package/{esm2015/infra/firebase/firestore/types/index.js → esm2020/infra/firebase/firestore/types/index.mjs} +4 -4
  425. package/{esm2015/infra/firebase/index.js → esm2020/infra/firebase/index.mjs} +3 -3
  426. package/{esm2015/infra/hasura-graphql/enums/hasura-graphql-column-type.enum.js → esm2020/infra/hasura-graphql/enums/hasura-graphql-column-type.enum.mjs} +13 -13
  427. package/{esm2015/infra/hasura-graphql/enums/hasura-graphql-where.enum.js → esm2020/infra/hasura-graphql/enums/hasura-graphql-where.enum.mjs} +15 -15
  428. package/{esm2015/infra/hasura-graphql/enums/index.js → esm2020/infra/hasura-graphql/enums/index.mjs} +3 -3
  429. package/{esm2015/infra/hasura-graphql/index.js → esm2020/infra/hasura-graphql/index.mjs} +5 -5
  430. package/esm2020/infra/hasura-graphql/mixins/helpers/attribute-option.helper.mjs +32 -0
  431. package/esm2020/infra/hasura-graphql/mixins/helpers/bind-filter-query.helper.mjs +68 -0
  432. package/esm2020/infra/hasura-graphql/mixins/helpers/filter-option.helper.mjs +22 -0
  433. package/esm2020/infra/hasura-graphql/mixins/helpers/graphql-field.helper.mjs +96 -0
  434. package/{esm2015/infra/hasura-graphql/mixins/helpers/index.js → esm2020/infra/hasura-graphql/mixins/helpers/index.mjs} +5 -4
  435. package/{esm2015/infra/hasura-graphql/mixins/index.js → esm2020/infra/hasura-graphql/mixins/index.mjs} +8 -8
  436. package/esm2020/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.mjs +37 -0
  437. package/esm2020/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.mjs +10 -0
  438. package/esm2020/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.mjs +29 -0
  439. package/esm2020/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.mjs +46 -0
  440. package/esm2020/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.mjs +34 -0
  441. package/esm2020/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.mjs +92 -0
  442. package/esm2020/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.mjs +58 -0
  443. package/{esm2015/infra/hasura-graphql/models/category-hasura-graphql.js → esm2020/infra/hasura-graphql/models/category-hasura-graphql.mjs} +4 -4
  444. package/{esm2015/infra/hasura-graphql/models/index.js → esm2020/infra/hasura-graphql/models/index.mjs} +5 -5
  445. package/{esm2015/infra/hasura-graphql/models/kit-product-hasura-graphql.js → esm2020/infra/hasura-graphql/models/kit-product-hasura-graphql.mjs} +15 -15
  446. package/{esm2015/infra/hasura-graphql/models/product-hasura-graphql.js → esm2020/infra/hasura-graphql/models/product-hasura-graphql.mjs} +11 -11
  447. package/{esm2015/infra/hasura-graphql/models/variant-hasura-graphql.js → esm2020/infra/hasura-graphql/models/variant-hasura-graphql.mjs} +9 -9
  448. package/esm2020/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.mjs +219 -0
  449. package/{esm2015/infra/hasura-graphql/repositories/catalog/index.js → esm2020/infra/hasura-graphql/repositories/catalog/index.mjs} +4 -4
  450. package/esm2020/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.mjs +466 -0
  451. package/esm2020/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.mjs +106 -0
  452. package/{esm2015/infra/hasura-graphql/repositories/index.js → esm2020/infra/hasura-graphql/repositories/index.mjs} +2 -2
  453. package/{esm2015/infra/hasura-graphql/types/fields.type.js → esm2020/infra/hasura-graphql/types/fields.type.mjs} +2 -2
  454. package/esm2020/infra/hasura-graphql/types/graphql.repository.type.mjs +2 -0
  455. package/{esm2015/infra/hasura-graphql/types/hasura-graphql-auth-options.type.js → esm2020/infra/hasura-graphql/types/hasura-graphql-auth-options.type.mjs} +2 -2
  456. package/esm2020/infra/hasura-graphql/types/hasura-graphql-fields.type.mjs +2 -0
  457. package/{esm2015/infra/hasura-graphql/types/hasura-graphql-headers.type.js → esm2020/infra/hasura-graphql/types/hasura-graphql-headers.type.mjs} +2 -2
  458. package/{esm2015/infra/hasura-graphql/types/index.js → esm2020/infra/hasura-graphql/types/index.mjs} +9 -9
  459. package/{esm2015/infra/hasura-graphql/types/nested-field.type.js → esm2020/infra/hasura-graphql/types/nested-field.type.mjs} +2 -2
  460. package/{esm2015/infra/hasura-graphql/types/query-builder-options.type.js → esm2020/infra/hasura-graphql/types/query-builder-options.type.mjs} +2 -2
  461. package/{esm2015/infra/hasura-graphql/types/variable-options.type.js → esm2020/infra/hasura-graphql/types/variable-options.type.mjs} +2 -2
  462. package/{esm2015/infra/index.js → esm2020/infra/index.mjs} +4 -4
  463. package/{esm2015/infrab4a-connect.js → esm2020/infrab4a-connect.mjs} +4 -4
  464. package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +8 -8
  465. package/{esm2015/utils/is-uuid.js → esm2020/utils/is-uuid.mjs} +3 -3
  466. package/{esm2015/utils/mixins/base.mixin.js → esm2020/utils/mixins/base.mixin.mjs} +6 -6
  467. package/{esm2015/utils/mixins/index.js → esm2020/utils/mixins/index.mjs} +4 -4
  468. package/{esm2015/utils/mixins/merge-constructor-params.type.js → esm2020/utils/mixins/merge-constructor-params.type.mjs} +2 -2
  469. package/{esm2015/utils/mixins/mixin-ctor.type.js → esm2020/utils/mixins/mixin-ctor.type.mjs} +2 -2
  470. package/{esm2015/utils/parse-datetime.js → esm2020/utils/parse-datetime.mjs} +14 -14
  471. package/{esm2015/utils/types/array-element.type.js → esm2020/utils/types/array-element.type.mjs} +2 -2
  472. package/{esm2015/utils/types/index.js → esm2020/utils/types/index.mjs} +3 -3
  473. package/{esm2015/utils/types/prop.type.js → esm2020/utils/types/prop.type.mjs} +2 -2
  474. package/fesm2015/{infrab4a-connect.js → infrab4a-connect.mjs} +3158 -3073
  475. package/fesm2015/infrab4a-connect.mjs.map +1 -0
  476. package/fesm2020/infrab4a-connect.mjs +3261 -0
  477. package/fesm2020/infrab4a-connect.mjs.map +1 -0
  478. package/index.d.ts +5 -5
  479. package/infra/elasticsearch/adapters/axios.adapter.d.ts +14 -14
  480. package/infra/elasticsearch/adapters/elastic-search.adapter.d.ts +7 -7
  481. package/infra/elasticsearch/adapters/index.d.ts +2 -2
  482. package/infra/elasticsearch/index.d.ts +3 -3
  483. package/infra/elasticsearch/indexes/index.d.ts +1 -1
  484. package/infra/elasticsearch/indexes/products-index.d.ts +15 -15
  485. package/infra/elasticsearch/types/elastic-search-result.d.ts +7 -7
  486. package/infra/elasticsearch/types/index.d.ts +1 -1
  487. package/infra/firebase/auth/authentication-firebase-auth.service.d.ts +12 -12
  488. package/infra/firebase/auth/index.d.ts +2 -2
  489. package/infra/firebase/auth/register-firebase-auth.service.d.ts +8 -8
  490. package/infra/firebase/auth/types/firebase-user-with-id.type.d.ts +3 -3
  491. package/infra/firebase/firestore/enums/firestore-field-type.enum.d.ts +8 -0
  492. package/infra/firebase/firestore/enums/index.d.ts +1 -0
  493. package/infra/firebase/firestore/index.d.ts +3 -3
  494. package/infra/firebase/firestore/mixins/index.d.ts +9 -9
  495. package/infra/firebase/firestore/mixins/with-create-firestore.mixin.d.ts +4 -4
  496. package/infra/firebase/firestore/mixins/with-crud-firestore.mixin.d.ts +4 -4
  497. package/infra/firebase/firestore/mixins/with-delete-firestore.mixin.d.ts +4 -4
  498. package/infra/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +4 -4
  499. package/infra/firebase/firestore/mixins/with-firestore.mixin.d.ts +4 -4
  500. package/infra/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +4 -4
  501. package/infra/firebase/firestore/mixins/with-helpers.mixin.d.ts +11 -11
  502. package/infra/firebase/firestore/mixins/with-sub-collection.mixin.d.ts +7 -7
  503. package/infra/firebase/firestore/mixins/with-update-firestore.mixin.d.ts +7 -7
  504. package/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +17 -17
  505. package/infra/firebase/firestore/repositories/catalog/index.d.ts +4 -4
  506. package/infra/firebase/firestore/repositories/catalog/product-firestore.repository.d.ts +11 -11
  507. package/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.d.ts +13 -13
  508. package/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.d.ts +8 -8
  509. package/infra/firebase/firestore/repositories/index.d.ts +4 -4
  510. package/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.d.ts +16 -16
  511. package/infra/firebase/firestore/repositories/shop-settings/index.d.ts +2 -3
  512. package/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.d.ts +8 -8
  513. package/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.d.ts +8 -8
  514. package/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.d.ts +8 -8
  515. package/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.d.ts +8 -8
  516. package/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.d.ts +12 -12
  517. package/infra/firebase/firestore/repositories/shopping/index.d.ts +8 -8
  518. package/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.d.ts +7 -7
  519. package/infra/firebase/firestore/repositories/shopping/order-firestore.repository.d.ts +13 -8
  520. package/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.d.ts +8 -8
  521. package/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.d.ts +8 -8
  522. package/infra/firebase/firestore/repositories/users/index.d.ts +8 -8
  523. package/infra/firebase/firestore/repositories/users/lead-firestore.repository.d.ts +8 -8
  524. package/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.d.ts +13 -13
  525. package/infra/firebase/firestore/repositories/users/subscription-firestore.repository.d.ts +8 -8
  526. package/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.d.ts +13 -13
  527. package/infra/firebase/firestore/repositories/users/user-address-firestore.repository.d.ts +13 -13
  528. package/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.d.ts +13 -13
  529. package/infra/firebase/firestore/repositories/users/user-firestore.repository.d.ts +17 -17
  530. package/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.d.ts +13 -13
  531. package/infra/firebase/firestore/types/firestore-sub.repository.type.d.ts +6 -6
  532. package/infra/firebase/firestore/types/firestore.helpers.type.d.ts +8 -8
  533. package/infra/firebase/firestore/types/firestore.repository.type.d.ts +14 -12
  534. package/infra/firebase/firestore/types/index.d.ts +3 -3
  535. package/infra/firebase/index.d.ts +2 -2
  536. package/infra/hasura-graphql/enums/hasura-graphql-column-type.enum.d.ts +11 -11
  537. package/infra/hasura-graphql/enums/hasura-graphql-where.enum.d.ts +13 -13
  538. package/infra/hasura-graphql/enums/index.d.ts +2 -2
  539. package/infra/hasura-graphql/index.d.ts +4 -4
  540. package/infra/hasura-graphql/mixins/helpers/attribute-option.helper.d.ts +13 -13
  541. package/infra/hasura-graphql/mixins/helpers/bind-filter-query.helper.d.ts +10 -0
  542. package/infra/hasura-graphql/mixins/helpers/filter-option.helper.d.ts +6 -6
  543. package/infra/hasura-graphql/mixins/helpers/graphql-field.helper.d.ts +8 -8
  544. package/infra/hasura-graphql/mixins/helpers/index.d.ts +4 -3
  545. package/infra/hasura-graphql/mixins/index.d.ts +7 -7
  546. package/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.d.ts +8 -8
  547. package/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.d.ts +11 -11
  548. package/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.d.ts +7 -7
  549. package/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.d.ts +25 -31
  550. package/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.d.ts +24 -24
  551. package/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.d.ts +11 -11
  552. package/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.d.ts +14 -14
  553. package/infra/hasura-graphql/models/category-hasura-graphql.d.ts +6 -6
  554. package/infra/hasura-graphql/models/index.d.ts +4 -4
  555. package/infra/hasura-graphql/models/kit-product-hasura-graphql.d.ts +6 -6
  556. package/infra/hasura-graphql/models/product-hasura-graphql.d.ts +14 -14
  557. package/infra/hasura-graphql/models/variant-hasura-graphql.d.ts +9 -9
  558. package/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.d.ts +27 -27
  559. package/infra/hasura-graphql/repositories/catalog/index.d.ts +3 -3
  560. package/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.d.ts +28 -28
  561. package/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.d.ts +14 -14
  562. package/infra/hasura-graphql/repositories/index.d.ts +1 -1
  563. package/infra/hasura-graphql/types/fields.type.d.ts +2 -2
  564. package/infra/hasura-graphql/types/graphql.repository.type.d.ts +21 -21
  565. package/infra/hasura-graphql/types/hasura-graphql-auth-options.type.d.ts +8 -8
  566. package/infra/hasura-graphql/types/hasura-graphql-fields.type.d.ts +40 -36
  567. package/infra/hasura-graphql/types/hasura-graphql-headers.type.d.ts +7 -7
  568. package/infra/hasura-graphql/types/index.d.ts +8 -8
  569. package/infra/hasura-graphql/types/nested-field.type.d.ts +7 -7
  570. package/infra/hasura-graphql/types/query-builder-options.type.d.ts +7 -7
  571. package/infra/hasura-graphql/types/variable-options.type.d.ts +9 -9
  572. package/infra/index.d.ts +3 -3
  573. package/package.json +21 -8
  574. package/utils/index.d.ts +7 -7
  575. package/utils/is-uuid.d.ts +1 -1
  576. package/utils/mixins/base.mixin.d.ts +3 -3
  577. package/utils/mixins/index.d.ts +3 -3
  578. package/utils/mixins/merge-constructor-params.type.d.ts +3 -3
  579. package/utils/mixins/mixin-ctor.type.d.ts +1 -1
  580. package/utils/parse-datetime.d.ts +1 -1
  581. package/utils/types/array-element.type.d.ts +1 -1
  582. package/utils/types/index.d.ts +2 -2
  583. package/utils/types/prop.type.d.ts +1 -1
  584. package/bundles/infrab4a-connect.umd.js +0 -4981
  585. package/bundles/infrab4a-connect.umd.js.map +0 -1
  586. package/domain/shop-settings/models/shop-settings.d.ts +0 -9
  587. package/domain/shop-settings/models/types/shop-banner.type.d.ts +0 -10
  588. package/domain/shop-settings/models/types/shop-brands.type.d.ts +0 -10
  589. package/domain/shop-settings/models/types/shop-carousel.type.d.ts +0 -5
  590. package/domain/shop-settings/models/types/shop-collection.type.d.ts +0 -8
  591. package/domain/shop-settings/models/types/shop-section.type.d.ts +0 -9
  592. package/domain/shop-settings/repositories/shop-settings.repository.d.ts +0 -4
  593. package/esm2015/domain/catalog/models/category.js +0 -10
  594. package/esm2015/domain/catalog/models/product.js +0 -17
  595. package/esm2015/domain/catalog/models/types/product-review.type.js +0 -2
  596. package/esm2015/domain/catalog/models/variant.js +0 -10
  597. package/esm2015/domain/catalog/repositories/category.repository.js +0 -2
  598. package/esm2015/domain/catalog/repositories/product.repository.js +0 -2
  599. package/esm2015/domain/generic/model/base.model.js +0 -23
  600. package/esm2015/domain/generic/model/types/base-model-builder.type.js +0 -2
  601. package/esm2015/domain/generic/model/types/identifier-model.type.js +0 -2
  602. package/esm2015/domain/generic/model/types/non-function-properties.type.js +0 -2
  603. package/esm2015/domain/generic/repository/create.repository.js +0 -2
  604. package/esm2015/domain/generic/repository/crud.repository.js +0 -2
  605. package/esm2015/domain/generic/repository/delete.repository.js +0 -2
  606. package/esm2015/domain/generic/repository/find.repository.js +0 -2
  607. package/esm2015/domain/generic/repository/get.repository.js +0 -2
  608. package/esm2015/domain/generic/repository/read.repository.js +0 -2
  609. package/esm2015/domain/generic/repository/types/repository-find-filters.type.js +0 -2
  610. package/esm2015/domain/generic/repository/types/repository-update-params.type.js +0 -2
  611. package/esm2015/domain/generic/repository/update.repository.js +0 -2
  612. package/esm2015/domain/location/models/address.js +0 -7
  613. package/esm2015/domain/shop-settings/models/home.js +0 -7
  614. package/esm2015/domain/shop-settings/models/shop-settings.js +0 -7
  615. package/esm2015/domain/shop-settings/models/types/home-data.type.js +0 -2
  616. package/esm2015/domain/shop-settings/models/types/index.js +0 -11
  617. package/esm2015/domain/shop-settings/models/types/shop-banner.type.js +0 -2
  618. package/esm2015/domain/shop-settings/models/types/shop-brands.type.js +0 -2
  619. package/esm2015/domain/shop-settings/models/types/shop-carousel.type.js +0 -2
  620. package/esm2015/domain/shop-settings/models/types/shop-collection.type.js +0 -2
  621. package/esm2015/domain/shop-settings/models/types/shop-section.type.js +0 -2
  622. package/esm2015/domain/shop-settings/repositories/shop-settings.repository.js +0 -2
  623. package/esm2015/domain/shopping/models/checkout.js +0 -38
  624. package/esm2015/domain/shopping/models/payment.js +0 -169
  625. package/esm2015/domain/shopping/models/types/payment-address.type.js +0 -2
  626. package/esm2015/domain/shopping/models/types/payment-card.type.js +0 -2
  627. package/esm2015/domain/shopping/models/types/payment-customer.type.js +0 -2
  628. package/esm2015/domain/users/models/subscription/edition.js +0 -7
  629. package/esm2015/domain/users/repositories/user.repository.js +0 -2
  630. package/esm2015/domain/users/services/authentication.service.js +0 -2
  631. package/esm2015/domain/users/use-cases/authentication.js +0 -40
  632. package/esm2015/domain/users/use-cases/recovery-password.js +0 -12
  633. package/esm2015/domain/users/use-cases/register.js +0 -34
  634. package/esm2015/domain/users/use-cases/signout.js +0 -12
  635. package/esm2015/infra/elasticsearch/adapters/axios.adapter.js +0 -57
  636. package/esm2015/infra/elasticsearch/adapters/elastic-search.adapter.js +0 -2
  637. package/esm2015/infra/elasticsearch/indexes/products-index.js +0 -93
  638. package/esm2015/infra/firebase/auth/authentication-firebase-auth.service.js +0 -52
  639. package/esm2015/infra/firebase/auth/register-firebase-auth.service.js +0 -26
  640. package/esm2015/infra/firebase/firestore/mixins/with-create-firestore.mixin.js +0 -31
  641. package/esm2015/infra/firebase/firestore/mixins/with-crud-firestore.mixin.js +0 -10
  642. package/esm2015/infra/firebase/firestore/mixins/with-delete-firestore.mixin.js +0 -18
  643. package/esm2015/infra/firebase/firestore/mixins/with-find-firestore.mixin.js +0 -92
  644. package/esm2015/infra/firebase/firestore/mixins/with-firestore.mixin.js +0 -22
  645. package/esm2015/infra/firebase/firestore/mixins/with-get-firestore.mixin.js +0 -24
  646. package/esm2015/infra/firebase/firestore/mixins/with-sub-collection.mixin.js +0 -11
  647. package/esm2015/infra/firebase/firestore/mixins/with-update-firestore.mixin.js +0 -45
  648. package/esm2015/infra/firebase/firestore/repositories/catalog/category-firestore.repository.js +0 -71
  649. package/esm2015/infra/firebase/firestore/repositories/catalog/product-firestore.repository.js +0 -52
  650. package/esm2015/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.js +0 -56
  651. package/esm2015/infra/firebase/firestore/repositories/shop-settings/shop-settings-firestore.repository.js +0 -12
  652. package/esm2015/infra/firebase/firestore/repositories/shopping/order-firestore.repository.js +0 -12
  653. package/esm2015/infra/firebase/firestore/repositories/users/user-firestore.repository.js +0 -68
  654. package/esm2015/infra/firebase/firestore/types/firestore-sub.repository.type.js +0 -2
  655. package/esm2015/infra/firebase/firestore/types/firestore.helpers.type.js +0 -2
  656. package/esm2015/infra/firebase/firestore/types/firestore.repository.type.js +0 -2
  657. package/esm2015/infra/hasura-graphql/mixins/helpers/attribute-option.helper.js +0 -31
  658. package/esm2015/infra/hasura-graphql/mixins/helpers/filter-option.helper.js +0 -22
  659. package/esm2015/infra/hasura-graphql/mixins/helpers/graphql-field.helper.js +0 -72
  660. package/esm2015/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.js +0 -45
  661. package/esm2015/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.js +0 -10
  662. package/esm2015/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.js +0 -29
  663. package/esm2015/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.js +0 -93
  664. package/esm2015/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.js +0 -35
  665. package/esm2015/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.js +0 -94
  666. package/esm2015/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.js +0 -56
  667. package/esm2015/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.js +0 -230
  668. package/esm2015/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.js +0 -455
  669. package/esm2015/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.js +0 -116
  670. package/esm2015/infra/hasura-graphql/types/graphql.repository.type.js +0 -2
  671. package/esm2015/infra/hasura-graphql/types/hasura-graphql-fields.type.js +0 -2
  672. package/fesm2015/infrab4a-connect.js.map +0 -1
  673. package/infra/firebase/firestore/repositories/shop-settings/shop-settings-firestore.repository.d.ts +0 -8
  674. package/infrab4a-connect.d.ts +0 -5
@@ -1,116 +0,0 @@
1
- import { __awaiter, __rest } from "tslib";
2
- import { Where, } from '../../../../domain';
3
- import { NotFoundError } from '../../../../errors';
4
- import { Base, isNil } from '../../../../utils';
5
- import { HasuraGraphQLColumnType } from '../../enums';
6
- import { withCrudHasuraGraphQL, withHasuraGraphQL } from '../../mixins';
7
- import { VariantHasuraGraphQL } from '../../models';
8
- export class VariantHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
9
- constructor(endpoint, authOptions) {
10
- super({
11
- tableName: 'product',
12
- model: VariantHasuraGraphQL,
13
- endpoint,
14
- authOptions,
15
- fields: [
16
- { id: { columnName: 'id', to: (value) => +value, from: (value) => value.toString() } },
17
- { firestoreId: { columnName: 'firestore_id' } },
18
- { productId: { columnName: 'main_product_id', to: (value) => +value, from: (value) => value === null || value === void 0 ? void 0 : value.toString() } },
19
- { EAN: { columnName: 'ean' } },
20
- { costPrice: { columnName: 'cost_price' } },
21
- {
22
- price: {
23
- columnName: 'price',
24
- from: (price, data) => ({
25
- price,
26
- fullPrice: data.full_price,
27
- subscriberDiscountPercentage: data.subscriber_discount_percentage,
28
- subscriberPrice: data.subscriber_price,
29
- }),
30
- bindFindFilter: (sentence) => {
31
- const filters = Object.values(sentence).shift();
32
- return Object.assign(Object.assign(Object.assign(Object.assign({}, (((filters === null || filters === void 0 ? void 0 : filters.price) || (filters === null || filters === void 0 ? void 0 : filters.price) === 0) && { price: filters.price })), ((filters.fullPrice || filters.fullPrice === 0) && { full_price: filters.fullPrice })), ((filters.subscriberDiscountPercentage || filters.subscriberDiscountPercentage === 0) && {
33
- subscriber_discount_percentage: filters.subscriberDiscountPercentage,
34
- })), ((filters.subscriberPrice || filters.subscriberPrice === 0) && {
35
- subscriber_price: filters.subscriberPrice,
36
- }));
37
- },
38
- bindPersistData: (priceData) => (Object.assign(Object.assign(Object.assign(Object.assign({}, ((priceData === null || priceData === void 0 ? void 0 : priceData.price) >= 0 && { price: priceData.price })), (priceData.fullPrice >= 0 && { full_price: priceData.fullPrice })), (priceData.subscriberDiscountPercentage >= 0 && {
39
- subscriber_discount_percentage: priceData.subscriberDiscountPercentage,
40
- })), (priceData.subscriberPrice >= 0 && { subscriber_price: priceData.subscriberPrice }))),
41
- },
42
- },
43
- { fullPrice: { columnName: 'full_price' } },
44
- { subscriberDiscountPercentage: { columnName: 'subscriber_discount_percentage' } },
45
- { subscriberPrice: { columnName: 'subscriber_price' } },
46
- 'sku',
47
- {
48
- stock: {
49
- columnName: 'stock',
50
- from: (quantity) => ({ quantity }),
51
- to: (value) => (isNil(value === null || value === void 0 ? void 0 : value.quantity) ? value : value === null || value === void 0 ? void 0 : value.quantity),
52
- },
53
- },
54
- 'weight',
55
- { name: { to: () => '', from: () => undefined } },
56
- { hasVariants: { columnName: 'has_variants', to: () => false, from: () => undefined } },
57
- { createdAt: { columnName: 'created_at' } },
58
- { updatedAt: { columnName: 'updated_at' } },
59
- {
60
- grade: {
61
- columnName: 'grade',
62
- type: HasuraGraphQLColumnType.Jsonb,
63
- },
64
- },
65
- ],
66
- });
67
- }
68
- get(identifiers) {
69
- const _super = Object.create(null, {
70
- get: { get: () => super.get }
71
- });
72
- var _a;
73
- return __awaiter(this, void 0, void 0, function* () {
74
- const variant = Number.isNaN(+identifiers.id)
75
- ? (_a = (yield this.find({ filters: { firestoreId: identifiers.id } })).data) === null || _a === void 0 ? void 0 : _a[0]
76
- : yield _super.get.call(this, identifiers);
77
- if (!variant.productId)
78
- throw new NotFoundError(`Variant not found, it is a product`);
79
- return variant;
80
- });
81
- }
82
- find(params) {
83
- const _super = Object.create(null, {
84
- find: { get: () => super.find }
85
- });
86
- return __awaiter(this, void 0, void 0, function* () {
87
- const _a = params || {}, { filters } = _a, options = __rest(_a, ["filters"]);
88
- return _super.find.call(this, Object.assign(Object.assign({}, options), { filters: Object.assign({ productId: { operator: Where.ISNOTNULL } }, filters) }));
89
- });
90
- }
91
- update(params) {
92
- const _super = Object.create(null, {
93
- update: { get: () => super.update }
94
- });
95
- return __awaiter(this, void 0, void 0, function* () {
96
- const { productId, id: checkId } = params, data = __rest(params, ["productId", "id"]);
97
- const dataWithProductId = this.paramsToPlain({ id: checkId, productId });
98
- const id = yield this.getId(dataWithProductId.id);
99
- const product = yield _super.update.call(this, Object.assign({ id }, data));
100
- product.productId = dataWithProductId.productId;
101
- return product;
102
- });
103
- }
104
- getId(id) {
105
- var _a, _b;
106
- return __awaiter(this, void 0, void 0, function* () {
107
- if (!Number.isNaN(+id))
108
- return id;
109
- const { data } = yield this.find({ filters: { firestoreId: id } });
110
- if ((_a = data === null || data === void 0 ? void 0 : data[0]) === null || _a === void 0 ? void 0 : _a.id)
111
- return (_b = data === null || data === void 0 ? void 0 : data[0]) === null || _b === void 0 ? void 0 : _b.id;
112
- throw new NotFoundError(`Product with id ${id} not found`);
113
- });
114
- }
115
- }
116
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFyaWFudC1oYXN1cmEtZ3JhcGhxbC5yZXBvc2l0b3J5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvaW5mcmEvaGFzdXJhLWdyYXBocWwvcmVwb3NpdG9yaWVzL2NhdGFsb2cvdmFyaWFudC1oYXN1cmEtZ3JhcGhxbC5yZXBvc2l0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3M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2VudGFnZSxcclxuICAgICAgICAgICAgICBzdWJzY3JpYmVyUHJpY2U6IGRhdGEuc3Vic2NyaWJlcl9wcmljZSxcclxuICAgICAgICAgICAgfSksXHJcbiAgICAgICAgICAgIGJpbmRGaW5kRmlsdGVyOiAoc2VudGVuY2UpID0+IHtcclxuICAgICAgICAgICAgICBjb25zdCBmaWx0ZXJzID0gT2JqZWN0LnZhbHVlcyhzZW50ZW5jZSkuc2hpZnQoKVxyXG5cclxuICAgICAgICAgICAgICByZXR1cm4ge1xyXG4gICAgICAgICAgICAgICAgLi4uKChmaWx0ZXJzPy5wcmljZSB8fCBmaWx0ZXJzPy5wcmljZSA9PT0gMCkgJiYgeyBwcmljZTogZmlsdGVycy5wcmljZSB9KSxcclxuICAgICAgICAgICAgICAgIC4uLigoZmlsdGVycy5mdWxsUHJpY2UgfHwgZmlsdGVycy5mdWxsUHJpY2UgPT09IDApICYmIHsgZnVsbF9wcmljZTogZmlsdGVycy5mdWxsUHJpY2UgfSksXHJcbiAgICAgICAgICAgICAgICAuLi4oKGZpbHRlcnMuc3Vic2NyaWJlckRpc2NvdW50UGVyY2VudGFnZSB8fCBmaWx0ZXJzLnN1YnNjcmliZXJEaXNjb3VudFBlcmNlbnRhZ2UgPT09IDApICYmIHtcclxuICAgICAgICAgICAgICAgICAgc3Vic2NyaWJlcl9kaXNjb3VudF9wZXJjZW50YWdlOiBmaWx0ZXJzLnN1YnNjcmliZXJEaXNjb3VudFBlcmNlbnRhZ2UsXHJcbiAgICAgICAgICAgICAgICB9KSxcclxuICAgICAgICAgICAgICAgIC4uLigoZmlsdGVycy5zdWJzY3JpYmVyUHJpY2UgfHwgZmlsdGVycy5zdWJzY3JpYmVyUHJpY2UgPT09IDApICYmIHtcclxuICAgICAgICAgICAgICAgICAgc3Vic2NyaWJlcl9wcmljZTogZmlsdGVycy5zdWJzY3JpYmVyUHJpY2UsXHJcbiAgICAgICAgICAgICAgICB9KSxcclxuICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIGJpbmRQZXJzaXN0RGF0YTogKHByaWNlRGF0YSkgPT4gKHtcclxuICAgICAgICAgICAgICAuLi4ocHJpY2VEYXRhPy5wcmljZSA+PSAwICYmIHsgcHJpY2U6IHByaWNlRGF0YS5wcmljZSB9KSxcclxuICAgICAgICAgICAgICAuLi4ocHJpY2VEYXRhLmZ1bGxQcmljZSA+PSAwICYmIHsgZnVsbF9wcmljZTogcHJpY2VEYXRhLmZ1bGxQcmljZSB9KSxcclxuICAgICAgICAgICAgICAuLi4ocHJpY2VEYXRhLnN1YnNjcmliZXJEaXNjb3VudFBlcmNlbnRhZ2UgPj0gMCAmJiB7XHJcbiAgICAgICAgICAgICAgICBzdWJzY3JpYmVyX2Rpc2NvdW50X3BlcmNlbnRhZ2U6IHByaWNlRGF0YS5zdWJzY3JpYmVyRGlzY291bnRQZXJjZW50YWdlLFxyXG4gICAgICAgICAgICAgIH0pLFxyXG4gICAgICAgICAgICAgIC4uLihwcmljZURhdGEuc3Vic2NyaWJlclByaWNlID49IDAgJiYgeyBzdWJzY3JpYmVyX3ByaWNlOiBwcmljZURhdGEuc3Vic2NyaWJlclByaWNlIH0pLFxyXG4gICAgICAgICAgICB9KSxcclxuICAgICAgICAgIH0sXHJcbiAgICAgICAgfSxcclxuICAgICAgICB7IGZ1bGxQcmljZTogeyBjb2x1bW5OYW1lOiAnZnVsbF9wcmljZScgfSB9LFxyXG4gICAgICAgIHsgc3Vic2NyaWJlckRpc2NvdW50UGVyY2VudGFnZTogeyBjb2x1bW5OYW1lOiAnc3Vic2NyaWJlcl9kaXNjb3VudF9wZXJjZW50YWdlJyB9IH0sXHJcbiAgICAgICAgeyBzdWJzY3JpYmVyUHJpY2U6IHsgY29sdW1uTmFtZTogJ3N1YnNjcmliZXJfcHJpY2UnIH0gfSxcclxuICAgICAgICAnc2t1JyxcclxuICAgICAgICB7XHJcbiAgICAgICAgICBzdG9jazoge1xyXG4gICAgICAgICAgICBjb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3VudCc+IH1cclxuICB8ICdhZmZlY3RlZF9yb3dzJ1xyXG4pW11cclxuIl19